yamlover 0.3.14 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/agent-docs/AGENTS.md +4 -2
- package/dist/builtin-taxonomy/$defs/board +7 -7
- package/dist/builtin-taxonomy/$defs/chapter +17 -11
- package/dist/builtin-taxonomy/$defs/chunk +5 -3
- package/dist/builtin-taxonomy/$defs/task +15 -16
- package/dist/builtin-taxonomy/$defs/workflow +1 -1
- package/dist/client/assets/decoded-CY5-anyl.js +1 -0
- package/dist/client/assets/djvu-CbL4_9ak.js +1 -0
- package/dist/client/assets/{docx-GVXp5L4P.js → docx-CCEuxO9n.js} +1 -1
- package/dist/client/assets/{heic-DbBlQvYf.js → heic-BvS6Unla.js} +2 -2
- package/dist/client/assets/imagemap-DBji1qL1.js +1 -0
- package/dist/client/assets/index-1sCxQdj3.css +1 -0
- package/dist/client/assets/index-DqdQvRi4.js +632 -0
- package/dist/client/assets/map-BfHrzAqt.js +1 -0
- package/dist/client/assets/openable-DIyqYrzm.js +4 -0
- package/dist/client/assets/{paged-WlIU9WQ1.js → paged-COP9CRTO.js} +1 -1
- package/dist/client/assets/{pdf-DHNv60yi.js → pdf-C-kvASQl.js} +9 -9
- package/dist/client/assets/psd-KxbPOIwA.js +11 -0
- package/dist/client/assets/{spreadsheet-SjJAxcQm.js → spreadsheet-DkG5umsc.js} +1 -1
- package/dist/client/assets/tiff-sq_Q9sNj.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server.js +631 -205
- package/package.json +1 -1
- package/dist/client/assets/decoded-CA1l_3Ew.js +0 -1
- package/dist/client/assets/djvu-DrHEpWlg.js +0 -1
- package/dist/client/assets/imagemap-cqYX2ztK.js +0 -1
- package/dist/client/assets/index-B9oI2Pn6.css +0 -1
- package/dist/client/assets/index-BPmg78f6.js +0 -624
- package/dist/client/assets/map-v0EOTKqe.js +0 -1
- package/dist/client/assets/panzoom-ClH7Eo7o.js +0 -4
- package/dist/client/assets/psd-BW2r7SHQ.js +0 -11
- package/dist/client/assets/tiff-BMu2DrjN.js +0 -1
- /package/dist/client/assets/{panzoom-CIGW-MKW.css → openable-CIGW-MKW.css} +0 -0
|
@@ -1,624 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DHNv60yi.js","assets/paged-WlIU9WQ1.js","assets/pdf-m5e3jsV4.css","assets/djvu-DrHEpWlg.js","assets/psd-BW2r7SHQ.js","assets/decoded-CA1l_3Ew.js","assets/imagemap-cqYX2ztK.js","assets/panzoom-ClH7Eo7o.js","assets/panzoom-CIGW-MKW.css","assets/tiff-BMu2DrjN.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-DbBlQvYf.js","assets/docx-GVXp5L4P.js","assets/map-v0EOTKqe.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var O8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b_={exports:{}},Tu={},x_={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 Gl=Symbol.for("react.element"),Zv=Symbol.for("react.portal"),Jv=Symbol.for("react.fragment"),Ov=Symbol.for("react.strict_mode"),ey=Symbol.for("react.profiler"),ty=Symbol.for("react.provider"),ry=Symbol.for("react.context"),ny=Symbol.for("react.forward_ref"),iy=Symbol.for("react.suspense"),sy=Symbol.for("react.memo"),ay=Symbol.for("react.lazy"),Ud=Symbol.iterator;function ly(e){return e===null||typeof e!="object"?null:(e=Ud&&e[Ud]||e["@@iterator"],typeof e=="function"?e:null)}var w_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k_=Object.assign,S_={};function za(e,t,r){this.props=e,this.context=t,this.refs=S_,this.updater=r||w_}za.prototype.isReactComponent={};za.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")};za.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function A_(){}A_.prototype=za.prototype;function t0(e,t,r){this.props=e,this.context=t,this.refs=S_,this.updater=r||w_}var r0=t0.prototype=new A_;r0.constructor=t0;k_(r0,za.prototype);r0.isPureReactComponent=!0;var Hd=Array.isArray,E_=Object.prototype.hasOwnProperty,n0={current:null},C_={key:!0,ref:!0,__self:!0,__source:!0};function T_(e,t,r){var n,i={},s=null,c=null;if(t!=null)for(n in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(s=""+t.key),t)E_.call(t,n)&&!C_.hasOwnProperty(n)&&(i[n]=t[n]);var f=arguments.length-2;if(f===1)i.children=r;else if(1<f){for(var p=Array(f),h=0;h<f;h++)p[h]=arguments[h+2];i.children=p}if(e&&e.defaultProps)for(n in f=e.defaultProps,f)i[n]===void 0&&(i[n]=f[n]);return{$$typeof:Gl,type:e,key:s,ref:c,props:i,_owner:n0.current}}function oy(e,t){return{$$typeof:Gl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function i0(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gl}function uy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Vd=/\/+/g;function wc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uy(""+e.key):t.toString(36)}function Io(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case Gl:case Zv:c=!0}}if(c)return c=e,i=i(c),e=n===""?"."+wc(c,0):n,Hd(i)?(r="",e!=null&&(r=e.replace(Vd,"$&/")+"/"),Io(i,t,r,"",function(h){return h})):i!=null&&(i0(i)&&(i=oy(i,r+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(Vd,"$&/")+"/")+e)),t.push(i)),1;if(c=0,n=n===""?".":n+":",Hd(e))for(var f=0;f<e.length;f++){s=e[f];var p=n+wc(s,f);c+=Io(s,t,r,p,i)}else if(p=ly(e),typeof p=="function")for(e=p.call(e),f=0;!(s=e.next()).done;)s=s.value,p=n+wc(s,f++),c+=Io(s,t,r,p,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function so(e,t,r){if(e==null)return e;var n=[],i=0;return Io(e,n,"","",function(s){return t.call(r,s,i++)}),n}function cy(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 $n={current:null},qo={transition:null},$y={ReactCurrentDispatcher:$n,ReactCurrentBatchConfig:qo,ReactCurrentOwner:n0};function z_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:so,forEach:function(e,t,r){so(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return so(e,function(){t++}),t},toArray:function(e){return so(e,function(t){return t})||[]},only:function(e){if(!i0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=za;Ot.Fragment=Jv;Ot.Profiler=ey;Ot.PureComponent=t0;Ot.StrictMode=Ov;Ot.Suspense=iy;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$y;Ot.act=z_;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=k_({},e.props),i=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=n0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(p in t)E_.call(t,p)&&!C_.hasOwnProperty(p)&&(n[p]=t[p]===void 0&&f!==void 0?f[p]:t[p])}var p=arguments.length-2;if(p===1)n.children=r;else if(1<p){f=Array(p);for(var h=0;h<p;h++)f[h]=arguments[h+2];n.children=f}return{$$typeof:Gl,type:e.type,key:i,ref:s,props:n,_owner:c}};Ot.createContext=function(e){return e={$$typeof:ry,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ty,_context:e},e.Consumer=e};Ot.createElement=T_;Ot.createFactory=function(e){var t=T_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:ny,render:e}};Ot.isValidElement=i0;Ot.lazy=function(e){return{$$typeof:ay,_payload:{_status:-1,_result:e},_init:cy}};Ot.memo=function(e,t){return{$$typeof:sy,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=qo.transition;qo.transition={};try{e()}finally{qo.transition=t}};Ot.unstable_act=z_;Ot.useCallback=function(e,t){return $n.current.useCallback(e,t)};Ot.useContext=function(e){return $n.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return $n.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return $n.current.useEffect(e,t)};Ot.useId=function(){return $n.current.useId()};Ot.useImperativeHandle=function(e,t,r){return $n.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return $n.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return $n.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return $n.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return $n.current.useReducer(e,t,r)};Ot.useRef=function(e){return $n.current.useRef(e)};Ot.useState=function(e){return $n.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return $n.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return $n.current.useTransition()};Ot.version="18.3.1";x_.exports=Ot;var mt=x_.exports;const fy=Qv(mt);/**
|
|
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 dy=mt,hy=Symbol.for("react.element"),py=Symbol.for("react.fragment"),_y=Object.prototype.hasOwnProperty,my=dy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gy={key:!0,ref:!0,__self:!0,__source:!0};function R_(e,t,r){var n,i={},s=null,c=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(c=t.ref);for(n in t)_y.call(t,n)&&!gy.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:hy,type:e,key:s,ref:c,props:i,_owner:my.current}}Tu.Fragment=py;Tu.jsx=R_;Tu.jsxs=R_;b_.exports=Tu;var Ce=b_.exports,N_={exports:{}},Nn={},I_={exports:{}},q_={};/**
|
|
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(ue,U){var v=ue.length;ue.push(U);e:for(;0<v;){var $=v-1>>>1,l=ue[$];if(0<i(l,U))ue[$]=U,ue[v]=l,v=$;else break e}}function r(ue){return ue.length===0?null:ue[0]}function n(ue){if(ue.length===0)return null;var U=ue[0],v=ue.pop();if(v!==U){ue[0]=v;e:for(var $=0,l=ue.length,u=l>>>1;$<u;){var d=2*($+1)-1,_=ue[d],S=d+1,T=ue[S];if(0>i(_,v))S<l&&0>i(T,_)?(ue[$]=T,ue[S]=v,$=S):(ue[$]=_,ue[d]=v,$=d);else if(S<l&&0>i(T,v))ue[$]=T,ue[S]=v,$=S;else break e}}return U}function i(ue,U){var v=ue.sortIndex-U.sortIndex;return v!==0?v:ue.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],z=1,D=null,j=3,he=!1,be=!1,ee=!1,Y=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(ue){for(var U=r(h);U!==null;){if(U.callback===null)n(h);else if(U.startTime<=ue)n(h),U.sortIndex=U.expirationTime,t(p,U);else break;U=r(h)}}function me(ue){if(ee=!1,se(ue),!be)if(r(p)!==null)be=!0,B(Z);else{var U=r(h);U!==null&&Fe(me,U.startTime-ue)}}function Z(ue,U){be=!1,ee&&(ee=!1,X(Ae),Ae=-1),he=!0;var v=j;try{for(se(U),D=r(p);D!==null&&(!(D.expirationTime>U)||ue&&!ce());){var $=D.callback;if(typeof $=="function"){D.callback=null,j=D.priorityLevel;var l=$(D.expirationTime<=U);U=e.unstable_now(),typeof l=="function"?D.callback=l:D===r(p)&&n(p),se(U)}else n(p);D=r(p)}if(D!==null)var u=!0;else{var d=r(h);d!==null&&Fe(me,d.startTime-U),u=!1}return u}finally{D=null,j=v,he=!1}}var xe=!1,fe=null,Ae=-1,J=5,Ee=-1;function ce(){return!(e.unstable_now()-Ee<J)}function w(){if(fe!==null){var ue=e.unstable_now();Ee=ue;var U=!0;try{U=fe(!0,ue)}finally{U?Se():(xe=!1,fe=null)}}else xe=!1}var Se;if(typeof ge=="function")Se=function(){ge(w)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ne=I.port2;I.port1.onmessage=w,Se=function(){ne.postMessage(null)}}else Se=function(){Y(w,0)};function B(ue){fe=ue,xe||(xe=!0,Se())}function Fe(ue,U){Ae=Y(function(){ue(e.unstable_now())},U)}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(ue){ue.callback=null},e.unstable_continueExecution=function(){be||he||(be=!0,B(Z))},e.unstable_forceFrameRate=function(ue){0>ue||125<ue?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<ue?Math.floor(1e3/ue):5},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(ue){switch(j){case 1:case 2:case 3:var U=3;break;default:U=j}var v=j;j=U;try{return ue()}finally{j=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ue,U){switch(ue){case 1:case 2:case 3:case 4:case 5:break;default:ue=3}var v=j;j=ue;try{return U()}finally{j=v}},e.unstable_scheduleCallback=function(ue,U,v){var $=e.unstable_now();switch(typeof v=="object"&&v!==null?(v=v.delay,v=typeof v=="number"&&0<v?$+v:$):v=$,ue){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=v+l,ue={id:z++,callback:U,priorityLevel:ue,startTime:v,expirationTime:l,sortIndex:-1},v>$?(ue.sortIndex=v,t(h,ue),r(p)===null&&ue===r(h)&&(ee?(X(Ae),Ae=-1):ee=!0,Fe(me,v-$))):(ue.sortIndex=l,t(p,ue),be||he||(be=!0,B(Z))),ue},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(ue){var U=j;return function(){var v=j;j=U;try{return ue.apply(this,arguments)}finally{j=v}}}})(q_);I_.exports=q_;var vy=I_.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 yy=mt,zn=vy;function zt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M_=new Set,kl={};function Fs(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(kl[e]=t,e=0;e<t.length;e++)M_.add(t[e])}var Ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),A$=Object.prototype.hasOwnProperty,by=/^[: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]*$/,Yd={},Wd={};function xy(e){return A$.call(Wd,e)?!0:A$.call(Yd,e)?!1:by.test(e)?Wd[e]=!0:(Yd[e]=!0,!1)}function wy(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 ky(e,t,r,n){if(t===null||typeof t>"u"||wy(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 fn(e,t,r,n,i,s,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=c}var Wr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Wr[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Wr[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Wr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Wr[e]=new fn(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){Wr[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Wr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Wr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Wr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Wr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var s0=/[\-:]([a-z])/g;function a0(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(s0,a0);Wr[t]=new fn(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(s0,a0);Wr[t]=new fn(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(s0,a0);Wr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Wr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Wr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Wr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function l0(e,t,r,n){var i=Wr.hasOwnProperty(t)?Wr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ky(t,r,i,n)&&(r=null),n||i===null?xy(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 Ni=yy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ao=Symbol.for("react.element"),Qs=Symbol.for("react.portal"),Zs=Symbol.for("react.fragment"),o0=Symbol.for("react.strict_mode"),E$=Symbol.for("react.profiler"),D_=Symbol.for("react.provider"),L_=Symbol.for("react.context"),u0=Symbol.for("react.forward_ref"),C$=Symbol.for("react.suspense"),T$=Symbol.for("react.suspense_list"),c0=Symbol.for("react.memo"),Hi=Symbol.for("react.lazy"),F_=Symbol.for("react.offscreen"),Gd=Symbol.iterator;function Ha(e){return e===null||typeof e!="object"?null:(e=Gd&&e[Gd]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,kc;function nl(e){if(kc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);kc=t&&t[1]||""}return`
|
|
35
|
-
`+kc+e}var Sc=!1;function Ac(e,t){if(!e||Sc)return"";Sc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var n=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){n=h}e.call(t.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
|
|
36
|
-
`),s=n.stack.split(`
|
|
37
|
-
`),c=i.length-1,f=s.length-1;1<=c&&0<=f&&i[c]!==s[f];)f--;for(;1<=c&&0<=f;c--,f--)if(i[c]!==s[f]){if(c!==1||f!==1)do if(c--,f--,0>f||i[c]!==s[f]){var p=`
|
|
38
|
-
`+i[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=c&&0<=f);break}}}finally{Sc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?nl(e):""}function Sy(e){switch(e.tag){case 5:return nl(e.type);case 16:return nl("Lazy");case 13:return nl("Suspense");case 19:return nl("SuspenseList");case 0:case 2:case 15:return e=Ac(e.type,!1),e;case 11:return e=Ac(e.type.render,!1),e;case 1:return e=Ac(e.type,!0),e;default:return""}}function z$(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 Zs:return"Fragment";case Qs:return"Portal";case E$:return"Profiler";case o0:return"StrictMode";case C$:return"Suspense";case T$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case L_:return(e.displayName||"Context")+".Consumer";case D_:return(e._context.displayName||"Context")+".Provider";case u0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case c0:return t=e.displayName||null,t!==null?t:z$(e.type)||"Memo";case Hi:t=e._payload,e=e._init;try{return z$(e(t))}catch{}}return null}function Ay(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 z$(t);case 8:return t===o0?"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 is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function B_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ey(e){var t=B_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){n=""+c,s.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lo(e){e._valueTracker||(e._valueTracker=Ey(e))}function j_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=B_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Xo(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 R$(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Kd(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=is(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 P_(e,t){t=t.checked,t!=null&&l0(e,"checked",t,!1)}function N$(e,t){P_(e,t);var r=is(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")?I$(e,t.type,r):t.hasOwnProperty("defaultValue")&&I$(e,t.type,is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xd(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 I$(e,t,r){(t!=="number"||Xo(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var il=Array.isArray;function $a(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=""+is(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 q$(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(zt(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qd(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(zt(92));if(il(r)){if(1<r.length)throw Error(zt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:is(r)}}function U_(e,t){var r=is(t.value),n=is(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 Zd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function H_(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 M$(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?H_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var oo,V_=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(oo=oo||document.createElement("div"),oo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var $l={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},Cy=["Webkit","ms","Moz","O"];Object.keys($l).forEach(function(e){Cy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$l[t]=$l[e]})});function Y_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||$l.hasOwnProperty(e)&&$l[e]?(""+t).trim():t+"px"}function W_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Y_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Ty=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 D$(e,t){if(t){if(Ty[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(zt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(zt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(zt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(zt(62))}}function L$(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 F$=null;function $0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B$=null,fa=null,da=null;function Jd(e){if(e=Ql(e)){if(typeof B$!="function")throw Error(zt(280));var t=e.stateNode;t&&(t=qu(t),B$(e.stateNode,e.type,t))}}function G_(e){fa?da?da.push(e):da=[e]:fa=e}function K_(){if(fa){var e=fa,t=da;if(da=fa=null,Jd(e),t)for(e=0;e<t.length;e++)Jd(t[e])}}function X_(e,t){return e(t)}function Q_(){}var Ec=!1;function Z_(e,t,r){if(Ec)return e(t,r);Ec=!0;try{return X_(e,t,r)}finally{Ec=!1,(fa!==null||da!==null)&&(Q_(),K_())}}function Al(e,t){var r=e.stateNode;if(r===null)return null;var n=qu(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(zt(231,t,typeof r));return r}var j$=!1;if(Ai)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){j$=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{j$=!1}function zy(e,t,r,n,i,s,c,f,p){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(z){this.onError(z)}}var fl=!1,Qo=null,Zo=!1,P$=null,Ry={onError:function(e){fl=!0,Qo=e}};function Ny(e,t,r,n,i,s,c,f,p){fl=!1,Qo=null,zy.apply(Ry,arguments)}function Iy(e,t,r,n,i,s,c,f,p){if(Ny.apply(this,arguments),fl){if(fl){var h=Qo;fl=!1,Qo=null}else throw Error(zt(198));Zo||(Zo=!0,P$=h)}}function Bs(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 J_(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 Od(e){if(Bs(e)!==e)throw Error(zt(188))}function qy(e){var t=e.alternate;if(!t){if(t=Bs(e),t===null)throw Error(zt(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 Od(i),e;if(s===n)return Od(i),t;s=s.sibling}throw Error(zt(188))}if(r.return!==n.return)r=i,n=s;else{for(var c=!1,f=i.child;f;){if(f===r){c=!0,r=i,n=s;break}if(f===n){c=!0,n=i,r=s;break}f=f.sibling}if(!c){for(f=s.child;f;){if(f===r){c=!0,r=s,n=i;break}if(f===n){c=!0,n=s,r=i;break}f=f.sibling}if(!c)throw Error(zt(189))}}if(r.alternate!==n)throw Error(zt(190))}if(r.tag!==3)throw Error(zt(188));return r.stateNode.current===r?e:t}function O_(e){return e=qy(e),e!==null?em(e):null}function em(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=em(e);if(t!==null)return t;e=e.sibling}return null}var tm=zn.unstable_scheduleCallback,eh=zn.unstable_cancelCallback,My=zn.unstable_shouldYield,Dy=zn.unstable_requestPaint,Ar=zn.unstable_now,Ly=zn.unstable_getCurrentPriorityLevel,f0=zn.unstable_ImmediatePriority,rm=zn.unstable_UserBlockingPriority,Jo=zn.unstable_NormalPriority,Fy=zn.unstable_LowPriority,nm=zn.unstable_IdlePriority,zu=null,ci=null;function By(e){if(ci&&typeof ci.onCommitFiberRoot=="function")try{ci.onCommitFiberRoot(zu,e,void 0,(e.current.flags&128)===128)}catch{}}var ei=Math.clz32?Math.clz32:Uy,jy=Math.log,Py=Math.LN2;function Uy(e){return e>>>=0,e===0?32:31-(jy(e)/Py|0)|0}var uo=64,co=4194304;function sl(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 Oo(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,c=r&268435455;if(c!==0){var f=c&~i;f!==0?n=sl(f):(s&=c,s!==0&&(n=sl(s)))}else c=r&~i,c!==0?n=sl(c):s!==0&&(n=sl(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-ei(t),i=1<<r,n|=e[r],t&=~i;return n}function Hy(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 Vy(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-ei(s),f=1<<c,p=i[c];p===-1?(!(f&r)||f&n)&&(i[c]=Hy(f,t)):p<=t&&(e.expiredLanes|=f),s&=~f}}function U$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function im(){var e=uo;return uo<<=1,!(uo&4194240)&&(uo=64),e}function Cc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Kl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ei(t),e[t]=r}function Yy(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-ei(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function d0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ei(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var lr=0;function sm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var am,h0,lm,om,um,H$=!1,$o=[],Qi=null,Zi=null,Ji=null,El=new Map,Cl=new Map,Yi=[],Wy="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 th(e,t){switch(e){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Ji=null;break;case"pointerover":case"pointerout":El.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(t.pointerId)}}function Ya(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=Ql(t),t!==null&&h0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gy(e,t,r,n,i){switch(t){case"focusin":return Qi=Ya(Qi,e,t,r,n,i),!0;case"dragenter":return Zi=Ya(Zi,e,t,r,n,i),!0;case"mouseover":return Ji=Ya(Ji,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return El.set(s,Ya(El.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Cl.set(s,Ya(Cl.get(s)||null,e,t,r,n,i)),!0}return!1}function cm(e){var t=Ss(e.target);if(t!==null){var r=Bs(t);if(r!==null){if(t=r.tag,t===13){if(t=J_(r),t!==null){e.blockedOn=t,um(e.priority,function(){lm(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 Mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=V$(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);F$=n,r.target.dispatchEvent(n),F$=null}else return t=Ql(r),t!==null&&h0(t),e.blockedOn=r,!1;t.shift()}return!0}function rh(e,t,r){Mo(e)&&r.delete(t)}function Ky(){H$=!1,Qi!==null&&Mo(Qi)&&(Qi=null),Zi!==null&&Mo(Zi)&&(Zi=null),Ji!==null&&Mo(Ji)&&(Ji=null),El.forEach(rh),Cl.forEach(rh)}function Wa(e,t){e.blockedOn===t&&(e.blockedOn=null,H$||(H$=!0,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,Ky)))}function Tl(e){function t(i){return Wa(i,e)}if(0<$o.length){Wa($o[0],e);for(var r=1;r<$o.length;r++){var n=$o[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Qi!==null&&Wa(Qi,e),Zi!==null&&Wa(Zi,e),Ji!==null&&Wa(Ji,e),El.forEach(t),Cl.forEach(t),r=0;r<Yi.length;r++)n=Yi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Yi.length&&(r=Yi[0],r.blockedOn===null);)cm(r),r.blockedOn===null&&Yi.shift()}var ha=Ni.ReactCurrentBatchConfig,eu=!0;function Xy(e,t,r,n){var i=lr,s=ha.transition;ha.transition=null;try{lr=1,p0(e,t,r,n)}finally{lr=i,ha.transition=s}}function Qy(e,t,r,n){var i=lr,s=ha.transition;ha.transition=null;try{lr=4,p0(e,t,r,n)}finally{lr=i,ha.transition=s}}function p0(e,t,r,n){if(eu){var i=V$(e,t,r,n);if(i===null)Fc(e,t,n,tu,r),th(e,n);else if(Gy(i,e,t,r,n))n.stopPropagation();else if(th(e,n),t&4&&-1<Wy.indexOf(e)){for(;i!==null;){var s=Ql(i);if(s!==null&&am(s),s=V$(e,t,r,n),s===null&&Fc(e,t,n,tu,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Fc(e,t,n,null,r)}}var tu=null;function V$(e,t,r,n){if(tu=null,e=$0(n),e=Ss(e),e!==null)if(t=Bs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=J_(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 tu=e,null}function $m(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(Ly()){case f0:return 1;case rm:return 4;case Jo:case Fy:return 16;case nm:return 536870912;default:return 16}default:return 16}}var Gi=null,_0=null,Do=null;function fm(){if(Do)return Do;var e,t=_0,r=t.length,n,i="value"in Gi?Gi.value:Gi.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var c=r-e;for(n=1;n<=c&&t[r-n]===i[s-n];n++);return Do=i.slice(e,1<n?1-n:void 0)}function Lo(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 fo(){return!0}function nh(){return!1}function In(e){function t(r,n,i,s,c){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(r=e[f],this[f]=r?r(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?fo:nh,this.isPropagationStopped=nh,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=fo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=fo)},persist:function(){},isPersistent:fo}),t}var Ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},m0=In(Ra),Xl=br({},Ra,{view:0,detail:0}),Zy=In(Xl),Tc,zc,Ga,Ru=br({},Xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:g0,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!==Ga&&(Ga&&e.type==="mousemove"?(Tc=e.screenX-Ga.screenX,zc=e.screenY-Ga.screenY):zc=Tc=0,Ga=e),Tc)},movementY:function(e){return"movementY"in e?e.movementY:zc}}),ih=In(Ru),Jy=br({},Ru,{dataTransfer:0}),Oy=In(Jy),e2=br({},Xl,{relatedTarget:0}),Rc=In(e2),t2=br({},Ra,{animationName:0,elapsedTime:0,pseudoElement:0}),r2=In(t2),n2=br({},Ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),i2=In(n2),s2=br({},Ra,{data:0}),sh=In(s2),a2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l2={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"},o2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o2[e])?!!t[e]:!1}function g0(){return u2}var c2=br({},Xl,{key:function(e){if(e.key){var t=a2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:g0,charCode:function(e){return e.type==="keypress"?Lo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$2=In(c2),f2=br({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=In(f2),d2=br({},Xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:g0}),h2=In(d2),p2=br({},Ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),_2=In(p2),m2=br({},Ru,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),g2=In(m2),v2=[9,13,27,32],v0=Ai&&"CompositionEvent"in window,dl=null;Ai&&"documentMode"in document&&(dl=document.documentMode);var y2=Ai&&"TextEvent"in window&&!dl,dm=Ai&&(!v0||dl&&8<dl&&11>=dl),lh=" ",oh=!1;function hm(e,t){switch(e){case"keyup":return v2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Js=!1;function b2(e,t){switch(e){case"compositionend":return pm(t);case"keypress":return t.which!==32?null:(oh=!0,lh);case"textInput":return e=t.data,e===lh&&oh?null:e;default:return null}}function x2(e,t){if(Js)return e==="compositionend"||!v0&&hm(e,t)?(e=fm(),Do=_0=Gi=null,Js=!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 dm&&t.locale!=="ko"?null:t.data;default:return null}}var w2={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 uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w2[e.type]:t==="textarea"}function _m(e,t,r,n){G_(n),t=ru(t,"onChange"),0<t.length&&(r=new m0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var hl=null,zl=null;function k2(e){Em(e,0)}function Nu(e){var t=ta(e);if(j_(t))return e}function S2(e,t){if(e==="change")return t}var mm=!1;if(Ai){var Nc;if(Ai){var Ic="oninput"in document;if(!Ic){var ch=document.createElement("div");ch.setAttribute("oninput","return;"),Ic=typeof ch.oninput=="function"}Nc=Ic}else Nc=!1;mm=Nc&&(!document.documentMode||9<document.documentMode)}function $h(){hl&&(hl.detachEvent("onpropertychange",gm),zl=hl=null)}function gm(e){if(e.propertyName==="value"&&Nu(zl)){var t=[];_m(t,zl,e,$0(e)),Z_(k2,t)}}function A2(e,t,r){e==="focusin"?($h(),hl=t,zl=r,hl.attachEvent("onpropertychange",gm)):e==="focusout"&&$h()}function E2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nu(zl)}function C2(e,t){if(e==="click")return Nu(t)}function T2(e,t){if(e==="input"||e==="change")return Nu(t)}function z2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ri=typeof Object.is=="function"?Object.is:z2;function Rl(e,t){if(ri(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!A$.call(t,i)||!ri(e[i],t[i]))return!1}return!0}function fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dh(e,t){var r=fh(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=fh(r)}}function vm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ym(){for(var e=window,t=Xo();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Xo(e.document)}return t}function y0(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 R2(e){var t=ym(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vm(r.ownerDocument.documentElement,r)){if(n!==null&&y0(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=dh(r,s);var c=dh(r,n);i&&c&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var N2=Ai&&"documentMode"in document&&11>=document.documentMode,Os=null,Y$=null,pl=null,W$=!1;function hh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;W$||Os==null||Os!==Xo(n)||(n=Os,"selectionStart"in n&&y0(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}),pl&&Rl(pl,n)||(pl=n,n=ru(Y$,"onSelect"),0<n.length&&(t=new m0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Os)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ea={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},qc={},bm={};Ai&&(bm=document.createElement("div").style,"AnimationEvent"in window||(delete ea.animationend.animation,delete ea.animationiteration.animation,delete ea.animationstart.animation),"TransitionEvent"in window||delete ea.transitionend.transition);function Iu(e){if(qc[e])return qc[e];if(!ea[e])return e;var t=ea[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in bm)return qc[e]=t[r];return e}var xm=Iu("animationend"),wm=Iu("animationiteration"),km=Iu("animationstart"),Sm=Iu("transitionend"),Am=new Map,ph="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 fs(e,t){Am.set(e,t),Fs(t,[e])}for(var Mc=0;Mc<ph.length;Mc++){var Dc=ph[Mc],I2=Dc.toLowerCase(),q2=Dc[0].toUpperCase()+Dc.slice(1);fs(I2,"on"+q2)}fs(xm,"onAnimationEnd");fs(wm,"onAnimationIteration");fs(km,"onAnimationStart");fs("dblclick","onDoubleClick");fs("focusin","onFocus");fs("focusout","onBlur");fs(Sm,"onTransitionEnd");va("onMouseEnter",["mouseout","mouseover"]);va("onMouseLeave",["mouseout","mouseover"]);va("onPointerEnter",["pointerout","pointerover"]);va("onPointerLeave",["pointerout","pointerover"]);Fs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var al="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(" "),M2=new Set("cancel close invalid load scroll toggle".split(" ").concat(al));function _h(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Iy(n,t,void 0,e),e.currentTarget=null}function Em(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var c=n.length-1;0<=c;c--){var f=n[c],p=f.instance,h=f.currentTarget;if(f=f.listener,p!==s&&i.isPropagationStopped())break e;_h(i,f,h),s=p}else for(c=0;c<n.length;c++){if(f=n[c],p=f.instance,h=f.currentTarget,f=f.listener,p!==s&&i.isPropagationStopped())break e;_h(i,f,h),s=p}}}if(Zo)throw e=P$,Zo=!1,P$=null,e}function cr(e,t){var r=t[Z$];r===void 0&&(r=t[Z$]=new Set);var n=e+"__bubble";r.has(n)||(Cm(t,e,2,!1),r.add(n))}function Lc(e,t,r){var n=0;t&&(n|=4),Cm(r,e,n,t)}var po="_reactListening"+Math.random().toString(36).slice(2);function Nl(e){if(!e[po]){e[po]=!0,M_.forEach(function(r){r!=="selectionchange"&&(M2.has(r)||Lc(r,!1,e),Lc(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[po]||(t[po]=!0,Lc("selectionchange",!1,t))}}function Cm(e,t,r,n){switch($m(t)){case 1:var i=Xy;break;case 4:i=Qy;break;default:i=p0}r=i.bind(null,t,r,e),i=void 0,!j$||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 Fc(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var f=n.stateNode.containerInfo;if(f===i||f.nodeType===8&&f.parentNode===i)break;if(c===4)for(c=n.return;c!==null;){var p=c.tag;if((p===3||p===4)&&(p=c.stateNode.containerInfo,p===i||p.nodeType===8&&p.parentNode===i))return;c=c.return}for(;f!==null;){if(c=Ss(f),c===null)return;if(p=c.tag,p===5||p===6){n=s=c;continue e}f=f.parentNode}}n=n.return}Z_(function(){var h=s,z=$0(r),D=[];e:{var j=Am.get(e);if(j!==void 0){var he=m0,be=e;switch(e){case"keypress":if(Lo(r)===0)break e;case"keydown":case"keyup":he=$2;break;case"focusin":be="focus",he=Rc;break;case"focusout":be="blur",he=Rc;break;case"beforeblur":case"afterblur":he=Rc;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":he=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=Oy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=h2;break;case xm:case wm:case km:he=r2;break;case Sm:he=_2;break;case"scroll":he=Zy;break;case"wheel":he=g2;break;case"copy":case"cut":case"paste":he=i2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=ah}var ee=(t&4)!==0,Y=!ee&&e==="scroll",X=ee?j!==null?j+"Capture":null:j;ee=[];for(var ge=h,se;ge!==null;){se=ge;var me=se.stateNode;if(se.tag===5&&me!==null&&(se=me,X!==null&&(me=Al(ge,X),me!=null&&ee.push(Il(ge,me,se)))),Y)break;ge=ge.return}0<ee.length&&(j=new he(j,be,null,r,z),D.push({event:j,listeners:ee}))}}if(!(t&7)){e:{if(j=e==="mouseover"||e==="pointerover",he=e==="mouseout"||e==="pointerout",j&&r!==F$&&(be=r.relatedTarget||r.fromElement)&&(Ss(be)||be[Ei]))break e;if((he||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,he?(be=r.relatedTarget||r.toElement,he=h,be=be?Ss(be):null,be!==null&&(Y=Bs(be),be!==Y||be.tag!==5&&be.tag!==6)&&(be=null)):(he=null,be=h),he!==be)){if(ee=ih,me="onMouseLeave",X="onMouseEnter",ge="mouse",(e==="pointerout"||e==="pointerover")&&(ee=ah,me="onPointerLeave",X="onPointerEnter",ge="pointer"),Y=he==null?j:ta(he),se=be==null?j:ta(be),j=new ee(me,ge+"leave",he,r,z),j.target=Y,j.relatedTarget=se,me=null,Ss(z)===h&&(ee=new ee(X,ge+"enter",be,r,z),ee.target=se,ee.relatedTarget=Y,me=ee),Y=me,he&&be)t:{for(ee=he,X=be,ge=0,se=ee;se;se=Ws(se))ge++;for(se=0,me=X;me;me=Ws(me))se++;for(;0<ge-se;)ee=Ws(ee),ge--;for(;0<se-ge;)X=Ws(X),se--;for(;ge--;){if(ee===X||X!==null&&ee===X.alternate)break t;ee=Ws(ee),X=Ws(X)}ee=null}else ee=null;he!==null&&mh(D,j,he,ee,!1),be!==null&&Y!==null&&mh(D,Y,be,ee,!0)}}e:{if(j=h?ta(h):window,he=j.nodeName&&j.nodeName.toLowerCase(),he==="select"||he==="input"&&j.type==="file")var Z=S2;else if(uh(j))if(mm)Z=T2;else{Z=E2;var xe=A2}else(he=j.nodeName)&&he.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(Z=C2);if(Z&&(Z=Z(e,h))){_m(D,Z,r,z);break e}xe&&xe(e,j,h),e==="focusout"&&(xe=j._wrapperState)&&xe.controlled&&j.type==="number"&&I$(j,"number",j.value)}switch(xe=h?ta(h):window,e){case"focusin":(uh(xe)||xe.contentEditable==="true")&&(Os=xe,Y$=h,pl=null);break;case"focusout":pl=Y$=Os=null;break;case"mousedown":W$=!0;break;case"contextmenu":case"mouseup":case"dragend":W$=!1,hh(D,r,z);break;case"selectionchange":if(N2)break;case"keydown":case"keyup":hh(D,r,z)}var fe;if(v0)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Js?hm(e,r)&&(Ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ae="onCompositionStart");Ae&&(dm&&r.locale!=="ko"&&(Js||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Js&&(fe=fm()):(Gi=z,_0="value"in Gi?Gi.value:Gi.textContent,Js=!0)),xe=ru(h,Ae),0<xe.length&&(Ae=new sh(Ae,e,null,r,z),D.push({event:Ae,listeners:xe}),fe?Ae.data=fe:(fe=pm(r),fe!==null&&(Ae.data=fe)))),(fe=y2?b2(e,r):x2(e,r))&&(h=ru(h,"onBeforeInput"),0<h.length&&(z=new sh("onBeforeInput","beforeinput",null,r,z),D.push({event:z,listeners:h}),z.data=fe))}Em(D,t)})}function Il(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ru(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Al(e,r),s!=null&&n.unshift(Il(e,s,i)),s=Al(e,t),s!=null&&n.push(Il(e,s,i))),e=e.return}return n}function Ws(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mh(e,t,r,n,i){for(var s=t._reactName,c=[];r!==null&&r!==n;){var f=r,p=f.alternate,h=f.stateNode;if(p!==null&&p===n)break;f.tag===5&&h!==null&&(f=h,i?(p=Al(r,s),p!=null&&c.unshift(Il(r,p,f))):i||(p=Al(r,s),p!=null&&c.push(Il(r,p,f)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var D2=/\r\n?/g,L2=/\u0000|\uFFFD/g;function gh(e){return(typeof e=="string"?e:""+e).replace(D2,`
|
|
39
|
-
`).replace(L2,"")}function _o(e,t,r){if(t=gh(t),gh(e)!==t&&r)throw Error(zt(425))}function nu(){}var G$=null,K$=null;function X$(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 Q$=typeof setTimeout=="function"?setTimeout:void 0,F2=typeof clearTimeout=="function"?clearTimeout:void 0,vh=typeof Promise=="function"?Promise:void 0,B2=typeof queueMicrotask=="function"?queueMicrotask:typeof vh<"u"?function(e){return vh.resolve(null).then(e).catch(j2)}:Q$;function j2(e){setTimeout(function(){throw e})}function Bc(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),Tl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Tl(t)}function Oi(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 yh(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 Na=Math.random().toString(36).slice(2),li="__reactFiber$"+Na,ql="__reactProps$"+Na,Ei="__reactContainer$"+Na,Z$="__reactEvents$"+Na,P2="__reactListeners$"+Na,U2="__reactHandles$"+Na;function Ss(e){var t=e[li];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ei]||r[li]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=yh(e);e!==null;){if(r=e[li])return r;e=yh(e)}return t}e=r,r=e.parentNode}return null}function Ql(e){return e=e[li]||e[Ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ta(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(zt(33))}function qu(e){return e[ql]||null}var J$=[],ra=-1;function ds(e){return{current:e}}function fr(e){0>ra||(e.current=J$[ra],J$[ra]=null,ra--)}function ur(e,t){ra++,J$[ra]=e.current,e.current=t}var ss={},en=ds(ss),vn=ds(!1),zs=ss;function ya(e,t){var r=e.type.contextTypes;if(!r)return ss;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 yn(e){return e=e.childContextTypes,e!=null}function iu(){fr(vn),fr(en)}function bh(e,t,r){if(en.current!==ss)throw Error(zt(168));ur(en,t),ur(vn,r)}function Tm(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(zt(108,Ay(e)||"Unknown",i));return br({},r,n)}function su(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ss,zs=en.current,ur(en,e),ur(vn,vn.current),!0}function xh(e,t,r){var n=e.stateNode;if(!n)throw Error(zt(169));r?(e=Tm(e,t,zs),n.__reactInternalMemoizedMergedChildContext=e,fr(vn),fr(en),ur(en,e)):fr(vn),ur(vn,r)}var yi=null,Mu=!1,jc=!1;function zm(e){yi===null?yi=[e]:yi.push(e)}function H2(e){Mu=!0,zm(e)}function hs(){if(!jc&&yi!==null){jc=!0;var e=0,t=lr;try{var r=yi;for(lr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}yi=null,Mu=!1}catch(i){throw yi!==null&&(yi=yi.slice(e+1)),tm(f0,hs),i}finally{lr=t,jc=!1}}return null}var na=[],ia=0,au=null,lu=0,Fn=[],Bn=0,Rs=null,xi=1,wi="";function bs(e,t){na[ia++]=lu,na[ia++]=au,au=e,lu=t}function Rm(e,t,r){Fn[Bn++]=xi,Fn[Bn++]=wi,Fn[Bn++]=Rs,Rs=e;var n=xi;e=wi;var i=32-ei(n)-1;n&=~(1<<i),r+=1;var s=32-ei(t)+i;if(30<s){var c=i-i%5;s=(n&(1<<c)-1).toString(32),n>>=c,i-=c,xi=1<<32-ei(t)+i|r<<i|n,wi=s+e}else xi=1<<s|r<<i|n,wi=e}function b0(e){e.return!==null&&(bs(e,1),Rm(e,1,0))}function x0(e){for(;e===au;)au=na[--ia],na[ia]=null,lu=na[--ia],na[ia]=null;for(;e===Rs;)Rs=Fn[--Bn],Fn[Bn]=null,wi=Fn[--Bn],Fn[Bn]=null,xi=Fn[--Bn],Fn[Bn]=null}var Cn=null,An=null,hr=!1,Zn=null;function Nm(e,t){var r=jn(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 wh(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,An=Oi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cn=e,An=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Rs!==null?{id:xi,overflow:wi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=jn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Cn=e,An=null,!0):!1;default:return!1}}function O$(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ef(e){if(hr){var t=An;if(t){var r=t;if(!wh(e,t)){if(O$(e))throw Error(zt(418));t=Oi(r.nextSibling);var n=Cn;t&&wh(e,t)?Nm(n,r):(e.flags=e.flags&-4097|2,hr=!1,Cn=e)}}else{if(O$(e))throw Error(zt(418));e.flags=e.flags&-4097|2,hr=!1,Cn=e}}}function kh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cn=e}function mo(e){if(e!==Cn)return!1;if(!hr)return kh(e),hr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!X$(e.type,e.memoizedProps)),t&&(t=An)){if(O$(e))throw Im(),Error(zt(418));for(;t;)Nm(e,t),t=Oi(t.nextSibling)}if(kh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(zt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){An=Oi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}An=null}}else An=Cn?Oi(e.stateNode.nextSibling):null;return!0}function Im(){for(var e=An;e;)e=Oi(e.nextSibling)}function ba(){An=Cn=null,hr=!1}function w0(e){Zn===null?Zn=[e]:Zn.push(e)}var V2=Ni.ReactCurrentBatchConfig;function Ka(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(zt(309));var n=r.stateNode}if(!n)throw Error(zt(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(c){var f=i.refs;c===null?delete f[s]:f[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(zt(284));if(!r._owner)throw Error(zt(290,e))}return e}function go(e,t){throw e=Object.prototype.toString.call(t),Error(zt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Sh(e){var t=e._init;return t(e._payload)}function qm(e){function t(X,ge){if(e){var se=X.deletions;se===null?(X.deletions=[ge],X.flags|=16):se.push(ge)}}function r(X,ge){if(!e)return null;for(;ge!==null;)t(X,ge),ge=ge.sibling;return null}function n(X,ge){for(X=new Map;ge!==null;)ge.key!==null?X.set(ge.key,ge):X.set(ge.index,ge),ge=ge.sibling;return X}function i(X,ge){return X=ns(X,ge),X.index=0,X.sibling=null,X}function s(X,ge,se){return X.index=se,e?(se=X.alternate,se!==null?(se=se.index,se<ge?(X.flags|=2,ge):se):(X.flags|=2,ge)):(X.flags|=1048576,ge)}function c(X){return e&&X.alternate===null&&(X.flags|=2),X}function f(X,ge,se,me){return ge===null||ge.tag!==6?(ge=Gc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function p(X,ge,se,me){var Z=se.type;return Z===Zs?z(X,ge,se.props.children,me,se.key):ge!==null&&(ge.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Hi&&Sh(Z)===ge.type)?(me=i(ge,se.props),me.ref=Ka(X,ge,se),me.return=X,me):(me=Vo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ka(X,ge,se),me.return=X,me)}function h(X,ge,se,me){return ge===null||ge.tag!==4||ge.stateNode.containerInfo!==se.containerInfo||ge.stateNode.implementation!==se.implementation?(ge=Kc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se.children||[]),ge.return=X,ge)}function z(X,ge,se,me,Z){return ge===null||ge.tag!==7?(ge=Ts(se,X.mode,me,Z),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function D(X,ge,se){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ge=Gc(""+ge,X.mode,se),ge.return=X,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case ao:return se=Vo(ge.type,ge.key,ge.props,null,X.mode,se),se.ref=Ka(X,null,ge),se.return=X,se;case Qs:return ge=Kc(ge,X.mode,se),ge.return=X,ge;case Hi:var me=ge._init;return D(X,me(ge._payload),se)}if(il(ge)||Ha(ge))return ge=Ts(ge,X.mode,se,null),ge.return=X,ge;go(X,ge)}return null}function j(X,ge,se,me){var Z=ge!==null?ge.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return Z!==null?null:f(X,ge,""+se,me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case ao:return se.key===Z?p(X,ge,se,me):null;case Qs:return se.key===Z?h(X,ge,se,me):null;case Hi:return Z=se._init,j(X,ge,Z(se._payload),me)}if(il(se)||Ha(se))return Z!==null?null:z(X,ge,se,me,null);go(X,se)}return null}function he(X,ge,se,me,Z){if(typeof me=="string"&&me!==""||typeof me=="number")return X=X.get(se)||null,f(ge,X,""+me,Z);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case ao:return X=X.get(me.key===null?se:me.key)||null,p(ge,X,me,Z);case Qs:return X=X.get(me.key===null?se:me.key)||null,h(ge,X,me,Z);case Hi:var xe=me._init;return he(X,ge,se,xe(me._payload),Z)}if(il(me)||Ha(me))return X=X.get(se)||null,z(ge,X,me,Z,null);go(ge,me)}return null}function be(X,ge,se,me){for(var Z=null,xe=null,fe=ge,Ae=ge=0,J=null;fe!==null&&Ae<se.length;Ae++){fe.index>Ae?(J=fe,fe=null):J=fe.sibling;var Ee=j(X,fe,se[Ae],me);if(Ee===null){fe===null&&(fe=J);break}e&&fe&&Ee.alternate===null&&t(X,fe),ge=s(Ee,ge,Ae),xe===null?Z=Ee:xe.sibling=Ee,xe=Ee,fe=J}if(Ae===se.length)return r(X,fe),hr&&bs(X,Ae),Z;if(fe===null){for(;Ae<se.length;Ae++)fe=D(X,se[Ae],me),fe!==null&&(ge=s(fe,ge,Ae),xe===null?Z=fe:xe.sibling=fe,xe=fe);return hr&&bs(X,Ae),Z}for(fe=n(X,fe);Ae<se.length;Ae++)J=he(fe,X,Ae,se[Ae],me),J!==null&&(e&&J.alternate!==null&&fe.delete(J.key===null?Ae:J.key),ge=s(J,ge,Ae),xe===null?Z=J:xe.sibling=J,xe=J);return e&&fe.forEach(function(ce){return t(X,ce)}),hr&&bs(X,Ae),Z}function ee(X,ge,se,me){var Z=Ha(se);if(typeof Z!="function")throw Error(zt(150));if(se=Z.call(se),se==null)throw Error(zt(151));for(var xe=Z=null,fe=ge,Ae=ge=0,J=null,Ee=se.next();fe!==null&&!Ee.done;Ae++,Ee=se.next()){fe.index>Ae?(J=fe,fe=null):J=fe.sibling;var ce=j(X,fe,Ee.value,me);if(ce===null){fe===null&&(fe=J);break}e&&fe&&ce.alternate===null&&t(X,fe),ge=s(ce,ge,Ae),xe===null?Z=ce:xe.sibling=ce,xe=ce,fe=J}if(Ee.done)return r(X,fe),hr&&bs(X,Ae),Z;if(fe===null){for(;!Ee.done;Ae++,Ee=se.next())Ee=D(X,Ee.value,me),Ee!==null&&(ge=s(Ee,ge,Ae),xe===null?Z=Ee:xe.sibling=Ee,xe=Ee);return hr&&bs(X,Ae),Z}for(fe=n(X,fe);!Ee.done;Ae++,Ee=se.next())Ee=he(fe,X,Ae,Ee.value,me),Ee!==null&&(e&&Ee.alternate!==null&&fe.delete(Ee.key===null?Ae:Ee.key),ge=s(Ee,ge,Ae),xe===null?Z=Ee:xe.sibling=Ee,xe=Ee);return e&&fe.forEach(function(w){return t(X,w)}),hr&&bs(X,Ae),Z}function Y(X,ge,se,me){if(typeof se=="object"&&se!==null&&se.type===Zs&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case ao:e:{for(var Z=se.key,xe=ge;xe!==null;){if(xe.key===Z){if(Z=se.type,Z===Zs){if(xe.tag===7){r(X,xe.sibling),ge=i(xe,se.props.children),ge.return=X,X=ge;break e}}else if(xe.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===Hi&&Sh(Z)===xe.type){r(X,xe.sibling),ge=i(xe,se.props),ge.ref=Ka(X,xe,se),ge.return=X,X=ge;break e}r(X,xe);break}else t(X,xe);xe=xe.sibling}se.type===Zs?(ge=Ts(se.props.children,X.mode,me,se.key),ge.return=X,X=ge):(me=Vo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ka(X,ge,se),me.return=X,X=me)}return c(X);case Qs:e:{for(xe=se.key;ge!==null;){if(ge.key===xe)if(ge.tag===4&&ge.stateNode.containerInfo===se.containerInfo&&ge.stateNode.implementation===se.implementation){r(X,ge.sibling),ge=i(ge,se.children||[]),ge.return=X,X=ge;break e}else{r(X,ge);break}else t(X,ge);ge=ge.sibling}ge=Kc(se,X.mode,me),ge.return=X,X=ge}return c(X);case Hi:return xe=se._init,Y(X,ge,xe(se._payload),me)}if(il(se))return be(X,ge,se,me);if(Ha(se))return ee(X,ge,se,me);go(X,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,ge!==null&&ge.tag===6?(r(X,ge.sibling),ge=i(ge,se),ge.return=X,X=ge):(r(X,ge),ge=Gc(se,X.mode,me),ge.return=X,X=ge),c(X)):r(X,ge)}return Y}var xa=qm(!0),Mm=qm(!1),ou=ds(null),uu=null,sa=null,k0=null;function S0(){k0=sa=uu=null}function A0(e){var t=ou.current;fr(ou),e._currentValue=t}function tf(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 pa(e,t){uu=e,k0=sa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mn=!0),e.firstContext=null)}function Hn(e){var t=e._currentValue;if(k0!==e)if(e={context:e,memoizedValue:t,next:null},sa===null){if(uu===null)throw Error(zt(308));sa=e,uu.dependencies={lanes:0,firstContext:e}}else sa=sa.next=e;return t}var As=null;function E0(e){As===null?As=[e]:As.push(e)}function Dm(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,E0(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ci(e,n)}function Ci(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 Vi=!1;function C0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lm(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 ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function es(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,Ci(e,r)}return i=n.interleaved,i===null?(t.next=t,E0(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ci(e,r)}function Fo(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,d0(e,r)}}function Ah(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var c={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=c:s=s.next=c,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function cu(e,t,r,n){var i=e.updateQueue;Vi=!1;var s=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var p=f,h=p.next;p.next=null,c===null?s=h:c.next=h,c=p;var z=e.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==c&&(f===null?z.firstBaseUpdate=h:f.next=h,z.lastBaseUpdate=p))}if(s!==null){var D=i.baseState;c=0,z=h=p=null,f=s;do{var j=f.lane,he=f.eventTime;if((n&j)===j){z!==null&&(z=z.next={eventTime:he,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var be=e,ee=f;switch(j=t,he=r,ee.tag){case 1:if(be=ee.payload,typeof be=="function"){D=be.call(he,D,j);break e}D=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=ee.payload,j=typeof be=="function"?be.call(he,D,j):be,j==null)break e;D=br({},D,j);break e;case 2:Vi=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,j=i.effects,j===null?i.effects=[f]:j.push(f))}else he={eventTime:he,lane:j,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(h=z=he,p=D):z=z.next=he,c|=j;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;j=f,f=j.next,j.next=null,i.lastBaseUpdate=j,i.shared.pending=null}}while(!0);if(z===null&&(p=D),i.baseState=p,i.firstBaseUpdate=h,i.lastBaseUpdate=z,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Is|=c,e.lanes=c,e.memoizedState=D}}function Eh(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(zt(191,i));i.call(n)}}}var Zl={},$i=ds(Zl),Ml=ds(Zl),Dl=ds(Zl);function Es(e){if(e===Zl)throw Error(zt(174));return e}function T0(e,t){switch(ur(Dl,t),ur(Ml,e),ur($i,Zl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:M$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=M$(t,e)}fr($i),ur($i,t)}function wa(){fr($i),fr(Ml),fr(Dl)}function Fm(e){Es(Dl.current);var t=Es($i.current),r=M$(t,e.type);t!==r&&(ur(Ml,e),ur($i,r))}function z0(e){Ml.current===e&&(fr($i),fr(Ml))}var gr=ds(0);function $u(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 Pc=[];function R0(){for(var e=0;e<Pc.length;e++)Pc[e]._workInProgressVersionPrimary=null;Pc.length=0}var Bo=Ni.ReactCurrentDispatcher,Uc=Ni.ReactCurrentBatchConfig,Ns=0,yr=null,Mr=null,jr=null,fu=!1,_l=!1,Ll=0,Y2=0;function Xr(){throw Error(zt(321))}function N0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ri(e[r],t[r]))return!1;return!0}function I0(e,t,r,n,i,s){if(Ns=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bo.current=e===null||e.memoizedState===null?X2:Q2,e=r(n,i),_l){s=0;do{if(_l=!1,Ll=0,25<=s)throw Error(zt(301));s+=1,jr=Mr=null,t.updateQueue=null,Bo.current=Z2,e=r(n,i)}while(_l)}if(Bo.current=du,t=Mr!==null&&Mr.next!==null,Ns=0,jr=Mr=yr=null,fu=!1,t)throw Error(zt(300));return e}function q0(){var e=Ll!==0;return Ll=0,e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jr===null?yr.memoizedState=jr=e:jr=jr.next=e,jr}function Vn(){if(Mr===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=Mr.next;var t=jr===null?yr.memoizedState:jr.next;if(t!==null)jr=t,Mr=e;else{if(e===null)throw Error(zt(310));Mr=e,e={memoizedState:Mr.memoizedState,baseState:Mr.baseState,baseQueue:Mr.baseQueue,queue:Mr.queue,next:null},jr===null?yr.memoizedState=jr=e:jr=jr.next=e}return jr}function Fl(e,t){return typeof t=="function"?t(e):t}function Hc(e){var t=Vn(),r=t.queue;if(r===null)throw Error(zt(311));r.lastRenderedReducer=e;var n=Mr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var c=i.next;i.next=s.next,s.next=c}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var f=c=null,p=null,h=s;do{var z=h.lane;if((Ns&z)===z)p!==null&&(p=p.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),n=h.hasEagerState?h.eagerState:e(n,h.action);else{var D={lane:z,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};p===null?(f=p=D,c=n):p=p.next=D,yr.lanes|=z,Is|=z}h=h.next}while(h!==null&&h!==s);p===null?c=n:p.next=f,ri(n,t.memoizedState)||(mn=!0),t.memoizedState=n,t.baseState=c,t.baseQueue=p,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,yr.lanes|=s,Is|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Vc(e){var t=Vn(),r=t.queue;if(r===null)throw Error(zt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var c=i=i.next;do s=e(s,c.action),c=c.next;while(c!==i);ri(s,t.memoizedState)||(mn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function Bm(){}function jm(e,t){var r=yr,n=Vn(),i=t(),s=!ri(n.memoizedState,i);if(s&&(n.memoizedState=i,mn=!0),n=n.queue,M0(Hm.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||jr!==null&&jr.memoizedState.tag&1){if(r.flags|=2048,Bl(9,Um.bind(null,r,n,i,t),void 0,null),Pr===null)throw Error(zt(349));Ns&30||Pm(r,t,i)}return i}function Pm(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 Um(e,t,r,n){t.value=r,t.getSnapshot=n,Vm(t)&&Ym(e)}function Hm(e,t,r){return r(function(){Vm(t)&&Ym(e)})}function Vm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ri(e,r)}catch{return!0}}function Ym(e){var t=Ci(e,1);t!==null&&ti(t,e,1,-1)}function Ch(e){var t=si();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fl,lastRenderedState:e},t.queue=e,e=e.dispatch=K2.bind(null,yr,e),[t.memoizedState,e]}function Bl(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 Wm(){return Vn().memoizedState}function jo(e,t,r,n){var i=si();yr.flags|=e,i.memoizedState=Bl(1|t,r,void 0,n===void 0?null:n)}function Du(e,t,r,n){var i=Vn();n=n===void 0?null:n;var s=void 0;if(Mr!==null){var c=Mr.memoizedState;if(s=c.destroy,n!==null&&N0(n,c.deps)){i.memoizedState=Bl(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Bl(1|t,r,s,n)}function Th(e,t){return jo(8390656,8,e,t)}function M0(e,t){return Du(2048,8,e,t)}function Gm(e,t){return Du(4,2,e,t)}function Km(e,t){return Du(4,4,e,t)}function Xm(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 Qm(e,t,r){return r=r!=null?r.concat([e]):null,Du(4,4,Xm.bind(null,t,e),r)}function D0(){}function Zm(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Jm(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Om(e,t,r){return Ns&21?(ri(r,t)||(r=im(),yr.lanes|=r,Is|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,mn=!0),e.memoizedState=r)}function W2(e,t){var r=lr;lr=r!==0&&4>r?r:4,e(!0);var n=Uc.transition;Uc.transition={};try{e(!1),t()}finally{lr=r,Uc.transition=n}}function e1(){return Vn().memoizedState}function G2(e,t,r){var n=rs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},t1(e))r1(t,r);else if(r=Dm(e,t,r,n),r!==null){var i=on();ti(r,e,n,i),n1(r,t,n)}}function K2(e,t,r){var n=rs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(t1(e))r1(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,f=s(c,r);if(i.hasEagerState=!0,i.eagerState=f,ri(f,c)){var p=t.interleaved;p===null?(i.next=i,E0(t)):(i.next=p.next,p.next=i),t.interleaved=i;return}}catch{}finally{}r=Dm(e,t,i,n),r!==null&&(i=on(),ti(r,e,n,i),n1(r,t,n))}}function t1(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function r1(e,t){_l=fu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function n1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,d0(e,r)}}var du={readContext:Hn,useCallback:Xr,useContext:Xr,useEffect:Xr,useImperativeHandle:Xr,useInsertionEffect:Xr,useLayoutEffect:Xr,useMemo:Xr,useReducer:Xr,useRef:Xr,useState:Xr,useDebugValue:Xr,useDeferredValue:Xr,useTransition:Xr,useMutableSource:Xr,useSyncExternalStore:Xr,useId:Xr,unstable_isNewReconciler:!1},X2={readContext:Hn,useCallback:function(e,t){return si().memoizedState=[e,t===void 0?null:t],e},useContext:Hn,useEffect:Th,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,jo(4194308,4,Xm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return jo(4,2,e,t)},useMemo:function(e,t){var r=si();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=si();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=G2.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=si();return e={current:e},t.memoizedState=e},useState:Ch,useDebugValue:D0,useDeferredValue:function(e){return si().memoizedState=e},useTransition:function(){var e=Ch(!1),t=e[0];return e=W2.bind(null,e[1]),si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=si();if(hr){if(r===void 0)throw Error(zt(407));r=r()}else{if(r=t(),Pr===null)throw Error(zt(349));Ns&30||Pm(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Th(Hm.bind(null,n,s,e),[e]),n.flags|=2048,Bl(9,Um.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=si(),t=Pr.identifierPrefix;if(hr){var r=wi,n=xi;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ll++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Y2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Q2={readContext:Hn,useCallback:Zm,useContext:Hn,useEffect:M0,useImperativeHandle:Qm,useInsertionEffect:Gm,useLayoutEffect:Km,useMemo:Jm,useReducer:Hc,useRef:Wm,useState:function(){return Hc(Fl)},useDebugValue:D0,useDeferredValue:function(e){var t=Vn();return Om(t,Mr.memoizedState,e)},useTransition:function(){var e=Hc(Fl)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:Bm,useSyncExternalStore:jm,useId:e1,unstable_isNewReconciler:!1},Z2={readContext:Hn,useCallback:Zm,useContext:Hn,useEffect:M0,useImperativeHandle:Qm,useInsertionEffect:Gm,useLayoutEffect:Km,useMemo:Jm,useReducer:Vc,useRef:Wm,useState:function(){return Vc(Fl)},useDebugValue:D0,useDeferredValue:function(e){var t=Vn();return Mr===null?t.memoizedState=e:Om(t,Mr.memoizedState,e)},useTransition:function(){var e=Vc(Fl)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:Bm,useSyncExternalStore:jm,useId:e1,unstable_isNewReconciler:!1};function Xn(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 rf(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 Lu={isMounted:function(e){return(e=e._reactInternals)?Bs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=on(),i=rs(e),s=ki(n,i);s.payload=t,r!=null&&(s.callback=r),t=es(e,s,i),t!==null&&(ti(t,e,i,n),Fo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=on(),i=rs(e),s=ki(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=es(e,s,i),t!==null&&(ti(t,e,i,n),Fo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=on(),n=rs(e),i=ki(r,n);i.tag=2,t!=null&&(i.callback=t),t=es(e,i,n),t!==null&&(ti(t,e,n,r),Fo(t,e,n))}};function zh(e,t,r,n,i,s,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,c):t.prototype&&t.prototype.isPureReactComponent?!Rl(r,n)||!Rl(i,s):!0}function i1(e,t,r){var n=!1,i=ss,s=t.contextType;return typeof s=="object"&&s!==null?s=Hn(s):(i=yn(t)?zs:en.current,n=t.contextTypes,s=(n=n!=null)?ya(e,i):ss),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rh(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&&Lu.enqueueReplaceState(t,t.state,null)}function nf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},C0(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Hn(s):(s=yn(t)?zs:en.current,i.context=ya(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(rf(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&&Lu.enqueueReplaceState(i,i.state,null),cu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ka(e,t){try{var r="",n=t;do r+=Sy(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 Yc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function sf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var J2=typeof WeakMap=="function"?WeakMap:Map;function s1(e,t,r){r=ki(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){pu||(pu=!0,pf=n),sf(e,t)},r}function a1(e,t,r){r=ki(-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(){sf(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){sf(e,t),typeof n!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function Nh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new J2;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=f4.bind(null,e,t,r),t.then(e,e))}function Ih(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 qh(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=ki(-1,1),t.tag=2,es(r,t,1))),r.lanes|=1),e)}var O2=Ni.ReactCurrentOwner,mn=!1;function sn(e,t,r,n){t.child=e===null?Mm(t,null,r,n):xa(t,e.child,r,n)}function Mh(e,t,r,n,i){r=r.render;var s=t.ref;return pa(t,i),n=I0(e,t,r,n,s,i),r=q0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ti(e,t,i)):(hr&&r&&b0(t),t.flags|=1,sn(e,t,n,i),t.child)}function Dh(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!V0(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,l1(e,t,s,n,i)):(e=Vo(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var c=s.memoizedProps;if(r=r.compare,r=r!==null?r:Rl,r(c,n)&&e.ref===t.ref)return Ti(e,t,i)}return t.flags|=1,e=ns(s,n),e.ref=t.ref,e.return=t,t.child=e}function l1(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Rl(s,n)&&e.ref===t.ref)if(mn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(mn=!0);else return t.lanes=e.lanes,Ti(e,t,i)}return af(e,t,r,n,i)}function o1(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(la,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(la,kn),kn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(la,kn),kn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(la,kn),kn|=n;return sn(e,t,i,r),t.child}function u1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function af(e,t,r,n,i){var s=yn(r)?zs:en.current;return s=ya(t,s),pa(t,i),r=I0(e,t,r,n,s,i),n=q0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ti(e,t,i)):(hr&&n&&b0(t),t.flags|=1,sn(e,t,r,i),t.child)}function Lh(e,t,r,n,i){if(yn(r)){var s=!0;su(t)}else s=!1;if(pa(t,i),t.stateNode===null)Po(e,t),i1(t,r,n),nf(t,r,n,i),n=!0;else if(e===null){var c=t.stateNode,f=t.memoizedProps;c.props=f;var p=c.context,h=r.contextType;typeof h=="object"&&h!==null?h=Hn(h):(h=yn(r)?zs:en.current,h=ya(t,h));var z=r.getDerivedStateFromProps,D=typeof z=="function"||typeof c.getSnapshotBeforeUpdate=="function";D||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==n||p!==h)&&Rh(t,c,n,h),Vi=!1;var j=t.memoizedState;c.state=j,cu(t,n,c,i),p=t.memoizedState,f!==n||j!==p||vn.current||Vi?(typeof z=="function"&&(rf(t,r,z,n),p=t.memoizedState),(f=Vi||zh(t,r,f,n,j,p,h))?(D||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=p),c.props=n,c.state=p,c.context=h,n=f):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Lm(e,t),f=t.memoizedProps,h=t.type===t.elementType?f:Xn(t.type,f),c.props=h,D=t.pendingProps,j=c.context,p=r.contextType,typeof p=="object"&&p!==null?p=Hn(p):(p=yn(r)?zs:en.current,p=ya(t,p));var he=r.getDerivedStateFromProps;(z=typeof he=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==D||j!==p)&&Rh(t,c,n,p),Vi=!1,j=t.memoizedState,c.state=j,cu(t,n,c,i);var be=t.memoizedState;f!==D||j!==be||vn.current||Vi?(typeof he=="function"&&(rf(t,r,he,n),be=t.memoizedState),(h=Vi||zh(t,r,h,n,j,be,p)||!1)?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,be,p),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,be,p)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=be),c.props=n,c.state=be,c.context=p,n=h):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),n=!1)}return lf(e,t,r,n,s,i)}function lf(e,t,r,n,i,s){u1(e,t);var c=(t.flags&128)!==0;if(!n&&!c)return i&&xh(t,r,!1),Ti(e,t,s);n=t.stateNode,O2.current=t;var f=c&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&c?(t.child=xa(t,e.child,null,s),t.child=xa(t,null,f,s)):sn(e,t,f,s),t.memoizedState=n.state,i&&xh(t,r,!0),t.child}function c1(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),T0(e,t.containerInfo)}function Fh(e,t,r,n,i){return ba(),w0(i),t.flags|=256,sn(e,t,r,n),t.child}var of={dehydrated:null,treeContext:null,retryLane:0};function uf(e){return{baseLanes:e,cachePool:null,transitions:null}}function $1(e,t,r){var n=t.pendingProps,i=gr.current,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(i&2)!==0),f?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ur(gr,i&1),e===null)return ef(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=n.children,e=n.fallback,s?(n=t.mode,s=t.child,c={mode:"hidden",children:c},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=c):s=ju(c,n,0,null),e=Ts(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=uf(r),t.memoizedState=of,e):L0(t,c));if(i=e.memoizedState,i!==null&&(f=i.dehydrated,f!==null))return e4(e,t,c,n,f,i,r);if(s){s=n.fallback,c=t.mode,i=e.child,f=i.sibling;var p={mode:"hidden",children:n.children};return!(c&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=p,t.deletions=null):(n=ns(i,p),n.subtreeFlags=i.subtreeFlags&14680064),f!==null?s=ns(f,s):(s=Ts(s,c,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,c=e.child.memoizedState,c=c===null?uf(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=of,n}return s=e.child,e=s.sibling,n=ns(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 L0(e,t){return t=ju({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vo(e,t,r,n){return n!==null&&w0(n),xa(t,e.child,null,r),e=L0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e4(e,t,r,n,i,s,c){if(r)return t.flags&256?(t.flags&=-257,n=Yc(Error(zt(422))),vo(e,t,c,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=ju({mode:"visible",children:n.children},i,0,null),s=Ts(s,i,c,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&xa(t,e.child,null,c),t.child.memoizedState=uf(c),t.memoizedState=of,s);if(!(t.mode&1))return vo(e,t,c,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var f=n.dgst;return n=f,s=Error(zt(419)),n=Yc(s,n,void 0),vo(e,t,c,n)}if(f=(c&e.childLanes)!==0,mn||f){if(n=Pr,n!==null){switch(c&-c){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|c)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ci(e,i),ti(n,e,i,-1))}return H0(),n=Yc(Error(zt(421))),vo(e,t,c,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=d4.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,An=Oi(i.nextSibling),Cn=t,hr=!0,Zn=null,e!==null&&(Fn[Bn++]=xi,Fn[Bn++]=wi,Fn[Bn++]=Rs,xi=e.id,wi=e.overflow,Rs=t),t=L0(t,n.children),t.flags|=4096,t)}function Bh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),tf(e.return,t,r)}function Wc(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 f1(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(sn(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&&Bh(e,r,t);else if(e.tag===19)Bh(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&&$u(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Wc(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&&$u(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Wc(t,!0,r,null,s);break;case"together":Wc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Po(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ti(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Is|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(zt(153));if(t.child!==null){for(e=t.child,r=ns(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ns(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function t4(e,t,r){switch(t.tag){case 3:c1(t),ba();break;case 5:Fm(t);break;case 1:yn(t.type)&&su(t);break;case 4:T0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(ou,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?$1(e,t,r):(ur(gr,gr.current&1),e=Ti(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 f1(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,o1(e,t,r)}return Ti(e,t,r)}var d1,cf,h1,p1;d1=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}};cf=function(){};h1=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Es($i.current);var s=null;switch(r){case"input":i=R$(e,i),n=R$(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=q$(e,i),n=q$(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=nu)}D$(r,n);var c;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var f=i[h];for(c in f)f.hasOwnProperty(c)&&(r||(r={}),r[c]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(kl.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var p=n[h];if(f=i?.[h],n.hasOwnProperty(h)&&p!==f&&(p!=null||f!=null))if(h==="style")if(f){for(c in f)!f.hasOwnProperty(c)||p&&p.hasOwnProperty(c)||(r||(r={}),r[c]="");for(c in p)p.hasOwnProperty(c)&&f[c]!==p[c]&&(r||(r={}),r[c]=p[c])}else r||(s||(s=[]),s.push(h,r)),r=p;else h==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,f=f?f.__html:void 0,p!=null&&f!==p&&(s=s||[]).push(h,p)):h==="children"?typeof p!="string"&&typeof p!="number"||(s=s||[]).push(h,""+p):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(kl.hasOwnProperty(h)?(p!=null&&h==="onScroll"&&cr("scroll",e),s||f===p||(s=[])):(s=s||[]).push(h,p))}r&&(s=s||[]).push("style",r);var h=s;(t.updateQueue=h)&&(t.flags|=4)}};p1=function(e,t,r,n){r!==n&&(t.flags|=4)};function Xa(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 Qr(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 r4(e,t,r){var n=t.pendingProps;switch(x0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(t),null;case 1:return yn(t.type)&&iu(),Qr(t),null;case 3:return n=t.stateNode,wa(),fr(vn),fr(en),R0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(mo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zn!==null&&(gf(Zn),Zn=null))),cf(e,t),Qr(t),null;case 5:z0(t);var i=Es(Dl.current);if(r=t.type,e!==null&&t.stateNode!=null)h1(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(zt(166));return Qr(t),null}if(e=Es($i.current),mo(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[li]=t,n[ql]=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<al.length;i++)cr(al[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":Kd(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":Qd(n,s),cr("invalid",n)}D$(r,s),i=null;for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];c==="children"?typeof f=="string"?n.textContent!==f&&(s.suppressHydrationWarning!==!0&&_o(n.textContent,f,e),i=["children",f]):typeof f=="number"&&n.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&_o(n.textContent,f,e),i=["children",""+f]):kl.hasOwnProperty(c)&&f!=null&&c==="onScroll"&&cr("scroll",n)}switch(r){case"input":lo(n),Xd(n,s,!0);break;case"textarea":lo(n),Zd(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=nu)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{c=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=H_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),r==="select"&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[li]=t,e[ql]=n,d1(e,t,!1,!1),t.stateNode=e;e:{switch(c=L$(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<al.length;i++)cr(al[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":Kd(e,n),i=R$(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":Qd(e,n),i=q$(e,n),cr("invalid",e);break;default:i=n}D$(r,i),f=i;for(s in f)if(f.hasOwnProperty(s)){var p=f[s];s==="style"?W_(e,p):s==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&V_(e,p)):s==="children"?typeof p=="string"?(r!=="textarea"||p!=="")&&Sl(e,p):typeof p=="number"&&Sl(e,""+p):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(kl.hasOwnProperty(s)?p!=null&&s==="onScroll"&&cr("scroll",e):p!=null&&l0(e,s,p,c))}switch(r){case"input":lo(e),Xd(e,n,!1);break;case"textarea":lo(e),Zd(e);break;case"option":n.value!=null&&e.setAttribute("value",""+is(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?$a(e,!!n.multiple,s,!1):n.defaultValue!=null&&$a(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=nu)}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 Qr(t),null;case 6:if(e&&t.stateNode!=null)p1(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(zt(166));if(r=Es(Dl.current),Es($i.current),mo(t)){if(n=t.stateNode,r=t.memoizedProps,n[li]=t,(s=n.nodeValue!==r)&&(e=Cn,e!==null))switch(e.tag){case 3:_o(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_o(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[li]=t,t.stateNode=n}return Qr(t),null;case 13:if(fr(gr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(hr&&An!==null&&t.mode&1&&!(t.flags&128))Im(),ba(),t.flags|=98560,s=!1;else if(s=mo(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(zt(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(zt(317));s[li]=t}else ba(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qr(t),s=!1}else Zn!==null&&(gf(Zn),Zn=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?Dr===0&&(Dr=3):H0())),t.updateQueue!==null&&(t.flags|=4),Qr(t),null);case 4:return wa(),cf(e,t),e===null&&Nl(t.stateNode.containerInfo),Qr(t),null;case 10:return A0(t.type._context),Qr(t),null;case 17:return yn(t.type)&&iu(),Qr(t),null;case 19:if(fr(gr),s=t.memoizedState,s===null)return Qr(t),null;if(n=(t.flags&128)!==0,c=s.rendering,c===null)if(n)Xa(s,!1);else{if(Dr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=$u(e),c!==null){for(t.flags|=128,Xa(s,!1),n=c.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ur(gr,gr.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ar()>Sa&&(t.flags|=128,n=!0,Xa(s,!1),t.lanes=4194304)}else{if(!n)if(e=$u(c),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Xa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!hr)return Qr(t),null}else 2*Ar()-s.renderingStartTime>Sa&&r!==1073741824&&(t.flags|=128,n=!0,Xa(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(r=s.last,r!==null?r.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ar(),t.sibling=null,r=gr.current,ur(gr,n?r&1|2:r&1),t):(Qr(t),null);case 22:case 23:return U0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kn&1073741824&&(Qr(t),t.subtreeFlags&6&&(t.flags|=8192)):Qr(t),null;case 24:return null;case 25:return null}throw Error(zt(156,t.tag))}function n4(e,t){switch(x0(t),t.tag){case 1:return yn(t.type)&&iu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wa(),fr(vn),fr(en),R0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return z0(t),null;case 13:if(fr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(zt(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(gr),null;case 4:return wa(),null;case 10:return A0(t.type._context),null;case 22:case 23:return U0(),null;case 24:return null;default:return null}}var yo=!1,Zr=!1,i4=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function aa(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){wr(e,t,n)}else r.current=null}function $f(e,t,r){try{r()}catch(n){wr(e,t,n)}}var jh=!1;function s4(e,t){if(G$=eu,e=ym(),y0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var c=0,f=-1,p=-1,h=0,z=0,D=e,j=null;t:for(;;){for(var he;D!==r||i!==0&&D.nodeType!==3||(f=c+i),D!==s||n!==0&&D.nodeType!==3||(p=c+n),D.nodeType===3&&(c+=D.nodeValue.length),(he=D.firstChild)!==null;)j=D,D=he;for(;;){if(D===e)break t;if(j===r&&++h===i&&(f=c),j===s&&++z===n&&(p=c),(he=D.nextSibling)!==null)break;D=j,j=D.parentNode}D=he}r=f===-1||p===-1?null:{start:f,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(K$={focusedElem:e,selectionRange:r},eu=!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 be=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(be!==null){var ee=be.memoizedProps,Y=be.memoizedState,X=t.stateNode,ge=X.getSnapshotBeforeUpdate(t.elementType===t.type?ee:Xn(t.type,ee),Y);X.__reactInternalSnapshotBeforeUpdate=ge}break;case 3:var se=t.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(zt(163))}}catch(me){wr(t,t.return,me)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return be=jh,jh=!1,be}function ml(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&&$f(t,r,s)}i=i.next}while(i!==n)}}function Fu(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 ff(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 _1(e){var t=e.alternate;t!==null&&(e.alternate=null,_1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[li],delete t[ql],delete t[Z$],delete t[P2],delete t[U2])),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 m1(e){return e.tag===5||e.tag===3||e.tag===4}function Ph(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m1(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 df(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=nu));else if(n!==4&&(e=e.child,e!==null))for(df(e,t,r),e=e.sibling;e!==null;)df(e,t,r),e=e.sibling}function hf(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(hf(e,t,r),e=e.sibling;e!==null;)hf(e,t,r),e=e.sibling}var Ur=null,Qn=!1;function Li(e,t,r){for(r=r.child;r!==null;)g1(e,t,r),r=r.sibling}function g1(e,t,r){if(ci&&typeof ci.onCommitFiberUnmount=="function")try{ci.onCommitFiberUnmount(zu,r)}catch{}switch(r.tag){case 5:Zr||aa(r,t);case 6:var n=Ur,i=Qn;Ur=null,Li(e,t,r),Ur=n,Qn=i,Ur!==null&&(Qn?(e=Ur,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ur.removeChild(r.stateNode));break;case 18:Ur!==null&&(Qn?(e=Ur,r=r.stateNode,e.nodeType===8?Bc(e.parentNode,r):e.nodeType===1&&Bc(e,r),Tl(e)):Bc(Ur,r.stateNode));break;case 4:n=Ur,i=Qn,Ur=r.stateNode.containerInfo,Qn=!0,Li(e,t,r),Ur=n,Qn=i;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,c=s.destroy;s=s.tag,c!==void 0&&(s&2||s&4)&&$f(r,t,c),i=i.next}while(i!==n)}Li(e,t,r);break;case 1:if(!Zr&&(aa(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(f){wr(r,t,f)}Li(e,t,r);break;case 21:Li(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Li(e,t,r),Zr=n):Li(e,t,r);break;default:Li(e,t,r)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new i4),t.forEach(function(n){var i=h4.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Gn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 5:Ur=f.stateNode,Qn=!1;break e;case 3:Ur=f.stateNode.containerInfo,Qn=!0;break e;case 4:Ur=f.stateNode.containerInfo,Qn=!0;break e}f=f.return}if(Ur===null)throw Error(zt(160));g1(s,c,i),Ur=null,Qn=!1;var p=i.alternate;p!==null&&(p.return=null),i.return=null}catch(h){wr(i,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)v1(t,e),t=t.sibling}function v1(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gn(t,e),ni(e),n&4){try{ml(3,e,e.return),Fu(3,e)}catch(ee){wr(e,e.return,ee)}try{ml(5,e,e.return)}catch(ee){wr(e,e.return,ee)}}break;case 1:Gn(t,e),ni(e),n&512&&r!==null&&aa(r,r.return);break;case 5:if(Gn(t,e),ni(e),n&512&&r!==null&&aa(r,r.return),e.flags&32){var i=e.stateNode;try{Sl(i,"")}catch(ee){wr(e,e.return,ee)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,c=r!==null?r.memoizedProps:s,f=e.type,p=e.updateQueue;if(e.updateQueue=null,p!==null)try{f==="input"&&s.type==="radio"&&s.name!=null&&P_(i,s),L$(f,c);var h=L$(f,s);for(c=0;c<p.length;c+=2){var z=p[c],D=p[c+1];z==="style"?W_(i,D):z==="dangerouslySetInnerHTML"?V_(i,D):z==="children"?Sl(i,D):l0(i,z,D,h)}switch(f){case"input":N$(i,s);break;case"textarea":U_(i,s);break;case"select":var j=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var he=s.value;he!=null?$a(i,!!s.multiple,he,!1):j!==!!s.multiple&&(s.defaultValue!=null?$a(i,!!s.multiple,s.defaultValue,!0):$a(i,!!s.multiple,s.multiple?[]:"",!1))}i[ql]=s}catch(ee){wr(e,e.return,ee)}}break;case 6:if(Gn(t,e),ni(e),n&4){if(e.stateNode===null)throw Error(zt(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(ee){wr(e,e.return,ee)}}break;case 3:if(Gn(t,e),ni(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Tl(t.containerInfo)}catch(ee){wr(e,e.return,ee)}break;case 4:Gn(t,e),ni(e);break;case 13:Gn(t,e),ni(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(j0=Ar())),n&4&&Uh(e);break;case 22:if(z=r!==null&&r.memoizedState!==null,e.mode&1?(Zr=(h=Zr)||z,Gn(t,e),Zr=h):Gn(t,e),ni(e),n&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!z&&e.mode&1)for(Ft=e,z=e.child;z!==null;){for(D=Ft=z;Ft!==null;){switch(j=Ft,he=j.child,j.tag){case 0:case 11:case 14:case 15:ml(4,j,j.return);break;case 1:aa(j,j.return);var be=j.stateNode;if(typeof be.componentWillUnmount=="function"){n=j,r=j.return;try{t=n,be.props=t.memoizedProps,be.state=t.memoizedState,be.componentWillUnmount()}catch(ee){wr(n,r,ee)}}break;case 5:aa(j,j.return);break;case 22:if(j.memoizedState!==null){Vh(D);continue}}he!==null?(he.return=j,Ft=he):Vh(D)}z=z.sibling}e:for(z=null,D=e;;){if(D.tag===5){if(z===null){z=D;try{i=D.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=D.stateNode,p=D.memoizedProps.style,c=p!=null&&p.hasOwnProperty("display")?p.display:null,f.style.display=Y_("display",c))}catch(ee){wr(e,e.return,ee)}}}else if(D.tag===6){if(z===null)try{D.stateNode.nodeValue=h?"":D.memoizedProps}catch(ee){wr(e,e.return,ee)}}else if((D.tag!==22&&D.tag!==23||D.memoizedState===null||D===e)&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===e)break e;for(;D.sibling===null;){if(D.return===null||D.return===e)break e;z===D&&(z=null),D=D.return}z===D&&(z=null),D.sibling.return=D.return,D=D.sibling}}break;case 19:Gn(t,e),ni(e),n&4&&Uh(e);break;case 21:break;default:Gn(t,e),ni(e)}}function ni(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(m1(r)){var n=r;break e}r=r.return}throw Error(zt(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Sl(i,""),n.flags&=-33);var s=Ph(e);hf(e,s,i);break;case 3:case 4:var c=n.stateNode.containerInfo,f=Ph(e);df(e,f,c);break;default:throw Error(zt(161))}}catch(p){wr(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function a4(e,t,r){Ft=e,y1(e)}function y1(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var c=i.memoizedState!==null||yo;if(!c){var f=i.alternate,p=f!==null&&f.memoizedState!==null||Zr;f=yo;var h=Zr;if(yo=c,(Zr=p)&&!h)for(Ft=i;Ft!==null;)c=Ft,p=c.child,c.tag===22&&c.memoizedState!==null?Yh(i):p!==null?(p.return=c,Ft=p):Yh(i);for(;s!==null;)Ft=s,y1(s),s=s.sibling;Ft=i,yo=f,Zr=h}Hh(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):Hh(e)}}function Hh(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:Zr||Fu(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Zr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Xn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Eh(t,s,n);break;case 3:var c=t.updateQueue;if(c!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Eh(t,c,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&r.focus();break;case"img":p.src&&(r.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var z=h.memoizedState;if(z!==null){var D=z.dehydrated;D!==null&&Tl(D)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(zt(163))}Zr||t.flags&512&&ff(t)}catch(j){wr(t,t.return,j)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function Vh(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 Yh(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Fu(4,t)}catch(p){wr(t,r,p)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(p){wr(t,i,p)}}var s=t.return;try{ff(t)}catch(p){wr(t,s,p)}break;case 5:var c=t.return;try{ff(t)}catch(p){wr(t,c,p)}}}catch(p){wr(t,t.return,p)}if(t===e){Ft=null;break}var f=t.sibling;if(f!==null){f.return=t.return,Ft=f;break}Ft=t.return}}var l4=Math.ceil,hu=Ni.ReactCurrentDispatcher,F0=Ni.ReactCurrentOwner,Un=Ni.ReactCurrentBatchConfig,rr=0,Pr=null,zr=null,Yr=0,kn=0,la=ds(0),Dr=0,jl=null,Is=0,Bu=0,B0=0,gl=null,_n=null,j0=0,Sa=1/0,vi=null,pu=!1,pf=null,ts=null,bo=!1,Ki=null,_u=0,vl=0,_f=null,Uo=-1,Ho=0;function on(){return rr&6?Ar():Uo!==-1?Uo:Uo=Ar()}function rs(e){return e.mode&1?rr&2&&Yr!==0?Yr&-Yr:V2.transition!==null?(Ho===0&&(Ho=im()),Ho):(e=lr,e!==0||(e=window.event,e=e===void 0?16:$m(e.type)),e):1}function ti(e,t,r,n){if(50<vl)throw vl=0,_f=null,Error(zt(185));Kl(e,r,n),(!(rr&2)||e!==Pr)&&(e===Pr&&(!(rr&2)&&(Bu|=r),Dr===4&&Wi(e,Yr)),bn(e,n),r===1&&rr===0&&!(t.mode&1)&&(Sa=Ar()+500,Mu&&hs()))}function bn(e,t){var r=e.callbackNode;Vy(e,t);var n=Oo(e,e===Pr?Yr:0);if(n===0)r!==null&&eh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&eh(r),t===1)e.tag===0?H2(Wh.bind(null,e)):zm(Wh.bind(null,e)),B2(function(){!(rr&6)&&hs()}),r=null;else{switch(sm(n)){case 1:r=f0;break;case 4:r=rm;break;case 16:r=Jo;break;case 536870912:r=nm;break;default:r=Jo}r=C1(r,b1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function b1(e,t){if(Uo=-1,Ho=0,rr&6)throw Error(zt(327));var r=e.callbackNode;if(_a()&&e.callbackNode!==r)return null;var n=Oo(e,e===Pr?Yr: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=w1();(Pr!==e||Yr!==t)&&(vi=null,Sa=Ar()+500,Cs(e,t));do try{c4();break}catch(f){x1(e,f)}while(!0);S0(),hu.current=s,rr=i,zr!==null?t=0:(Pr=null,Yr=0,t=Dr)}if(t!==0){if(t===2&&(i=U$(e),i!==0&&(n=i,t=mf(e,i))),t===1)throw r=jl,Cs(e,0),Wi(e,n),bn(e,Ar()),r;if(t===6)Wi(e,n);else{if(i=e.current.alternate,!(n&30)&&!o4(i)&&(t=mu(e,n),t===2&&(s=U$(e),s!==0&&(n=s,t=mf(e,s))),t===1))throw r=jl,Cs(e,0),Wi(e,n),bn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(zt(345));case 2:xs(e,_n,vi);break;case 3:if(Wi(e,n),(n&130023424)===n&&(t=j0+500-Ar(),10<t)){if(Oo(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){on(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Q$(xs.bind(null,e,_n,vi),t);break}xs(e,_n,vi);break;case 4:if(Wi(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var c=31-ei(n);s=1<<c,c=t[c],c>i&&(i=c),n&=~s}if(n=i,n=Ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*l4(n/1960))-n,10<n){e.timeoutHandle=Q$(xs.bind(null,e,_n,vi),n);break}xs(e,_n,vi);break;case 5:xs(e,_n,vi);break;default:throw Error(zt(329))}}}return bn(e,Ar()),e.callbackNode===r?b1.bind(null,e):null}function mf(e,t){var r=gl;return e.current.memoizedState.isDehydrated&&(Cs(e,t).flags|=256),e=mu(e,t),e!==2&&(t=_n,_n=r,t!==null&&gf(t)),e}function gf(e){_n===null?_n=e:_n.push.apply(_n,e)}function o4(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!ri(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wi(e,t){for(t&=~B0,t&=~Bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ei(t),n=1<<r;e[r]=-1,t&=~n}}function Wh(e){if(rr&6)throw Error(zt(327));_a();var t=Oo(e,0);if(!(t&1))return bn(e,Ar()),null;var r=mu(e,t);if(e.tag!==0&&r===2){var n=U$(e);n!==0&&(t=n,r=mf(e,n))}if(r===1)throw r=jl,Cs(e,0),Wi(e,t),bn(e,Ar()),r;if(r===6)throw Error(zt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,_n,vi),bn(e,Ar()),null}function P0(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(Sa=Ar()+500,Mu&&hs())}}function qs(e){Ki!==null&&Ki.tag===0&&!(rr&6)&&_a();var t=rr;rr|=1;var r=Un.transition,n=lr;try{if(Un.transition=null,lr=1,e)return e()}finally{lr=n,Un.transition=r,rr=t,!(rr&6)&&hs()}}function U0(){kn=la.current,fr(la)}function Cs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,F2(r)),zr!==null)for(r=zr.return;r!==null;){var n=r;switch(x0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&iu();break;case 3:wa(),fr(vn),fr(en),R0();break;case 5:z0(n);break;case 4:wa();break;case 13:fr(gr);break;case 19:fr(gr);break;case 10:A0(n.type._context);break;case 22:case 23:U0()}r=r.return}if(Pr=e,zr=e=ns(e.current,null),Yr=kn=t,Dr=0,jl=null,B0=Bu=Is=0,_n=gl=null,As!==null){for(t=0;t<As.length;t++)if(r=As[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var c=s.next;s.next=i,n.next=c}r.pending=n}As=null}return e}function x1(e,t){do{var r=zr;try{if(S0(),Bo.current=du,fu){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}fu=!1}if(Ns=0,jr=Mr=yr=null,_l=!1,Ll=0,F0.current=null,r===null||r.return===null){Dr=1,jl=t,zr=null;break}e:{var s=e,c=r.return,f=r,p=t;if(t=Yr,f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var h=p,z=f,D=z.tag;if(!(z.mode&1)&&(D===0||D===11||D===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var he=Ih(c);if(he!==null){he.flags&=-257,qh(he,c,f,s,t),he.mode&1&&Nh(s,h,t),t=he,p=h;var be=t.updateQueue;if(be===null){var ee=new Set;ee.add(p),t.updateQueue=ee}else be.add(p);break e}else{if(!(t&1)){Nh(s,h,t),H0();break e}p=Error(zt(426))}}else if(hr&&f.mode&1){var Y=Ih(c);if(Y!==null){!(Y.flags&65536)&&(Y.flags|=256),qh(Y,c,f,s,t),w0(ka(p,f));break e}}s=p=ka(p,f),Dr!==4&&(Dr=2),gl===null?gl=[s]:gl.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var X=s1(s,p,t);Ah(s,X);break e;case 1:f=p;var ge=s.type,se=s.stateNode;if(!(s.flags&128)&&(typeof ge.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(ts===null||!ts.has(se)))){s.flags|=65536,t&=-t,s.lanes|=t;var me=a1(s,f,t);Ah(s,me);break e}}s=s.return}while(s!==null)}S1(r)}catch(Z){t=Z,zr===r&&r!==null&&(zr=r=r.return);continue}break}while(!0)}function w1(){var e=hu.current;return hu.current=du,e===null?du:e}function H0(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),Pr===null||!(Is&268435455)&&!(Bu&268435455)||Wi(Pr,Yr)}function mu(e,t){var r=rr;rr|=2;var n=w1();(Pr!==e||Yr!==t)&&(vi=null,Cs(e,t));do try{u4();break}catch(i){x1(e,i)}while(!0);if(S0(),rr=r,hu.current=n,zr!==null)throw Error(zt(261));return Pr=null,Yr=0,Dr}function u4(){for(;zr!==null;)k1(zr)}function c4(){for(;zr!==null&&!My();)k1(zr)}function k1(e){var t=E1(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?S1(e):zr=t,F0.current=null}function S1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=n4(r,t),r!==null){r.flags&=32767,zr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dr=6,zr=null;return}}else if(r=r4(r,t,kn),r!==null){zr=r;return}if(t=t.sibling,t!==null){zr=t;return}zr=t=e}while(t!==null);Dr===0&&(Dr=5)}function xs(e,t,r){var n=lr,i=Un.transition;try{Un.transition=null,lr=1,$4(e,t,r,n)}finally{Un.transition=i,lr=n}return null}function $4(e,t,r,n){do _a();while(Ki!==null);if(rr&6)throw Error(zt(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(zt(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(Yy(e,s),e===Pr&&(zr=Pr=null,Yr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||bo||(bo=!0,C1(Jo,function(){return _a(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Un.transition,Un.transition=null;var c=lr;lr=1;var f=rr;rr|=4,F0.current=null,s4(e,r),v1(r,e),R2(K$),eu=!!G$,K$=G$=null,e.current=r,a4(r),Dy(),rr=f,lr=c,Un.transition=s}else e.current=r;if(bo&&(bo=!1,Ki=e,_u=i),s=e.pendingLanes,s===0&&(ts=null),By(r.stateNode),bn(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(pu)throw pu=!1,e=pf,pf=null,e;return _u&1&&e.tag!==0&&_a(),s=e.pendingLanes,s&1?e===_f?vl++:(vl=0,_f=e):vl=0,hs(),null}function _a(){if(Ki!==null){var e=sm(_u),t=Un.transition,r=lr;try{if(Un.transition=null,lr=16>e?16:e,Ki===null)var n=!1;else{if(e=Ki,Ki=null,_u=0,rr&6)throw Error(zt(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,c=s.child;if(Ft.flags&16){var f=s.deletions;if(f!==null){for(var p=0;p<f.length;p++){var h=f[p];for(Ft=h;Ft!==null;){var z=Ft;switch(z.tag){case 0:case 11:case 15:ml(8,z,s)}var D=z.child;if(D!==null)D.return=z,Ft=D;else for(;Ft!==null;){z=Ft;var j=z.sibling,he=z.return;if(_1(z),z===h){Ft=null;break}if(j!==null){j.return=he,Ft=j;break}Ft=he}}}var be=s.alternate;if(be!==null){var ee=be.child;if(ee!==null){be.child=null;do{var Y=ee.sibling;ee.sibling=null,ee=Y}while(ee!==null)}}Ft=s}}if(s.subtreeFlags&2064&&c!==null)c.return=s,Ft=c;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ml(9,s,s.return)}var X=s.sibling;if(X!==null){X.return=s.return,Ft=X;break e}Ft=s.return}}var ge=e.current;for(Ft=ge;Ft!==null;){c=Ft;var se=c.child;if(c.subtreeFlags&2064&&se!==null)se.return=c,Ft=se;else e:for(c=ge;Ft!==null;){if(f=Ft,f.flags&2048)try{switch(f.tag){case 0:case 11:case 15:Fu(9,f)}}catch(Z){wr(f,f.return,Z)}if(f===c){Ft=null;break e}var me=f.sibling;if(me!==null){me.return=f.return,Ft=me;break e}Ft=f.return}}if(rr=i,hs(),ci&&typeof ci.onPostCommitFiberRoot=="function")try{ci.onPostCommitFiberRoot(zu,e)}catch{}n=!0}return n}finally{lr=r,Un.transition=t}}return!1}function Gh(e,t,r){t=ka(r,t),t=s1(e,t,1),e=es(e,t,1),t=on(),e!==null&&(Kl(e,1,t),bn(e,t))}function wr(e,t,r){if(e.tag===3)Gh(e,e,r);else for(;t!==null;){if(t.tag===3){Gh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ts===null||!ts.has(n))){e=ka(r,e),e=a1(t,e,1),t=es(t,e,1),e=on(),t!==null&&(Kl(t,1,e),bn(t,e));break}}t=t.return}}function f4(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=on(),e.pingedLanes|=e.suspendedLanes&r,Pr===e&&(Yr&r)===r&&(Dr===4||Dr===3&&(Yr&130023424)===Yr&&500>Ar()-j0?Cs(e,0):B0|=r),bn(e,t)}function A1(e,t){t===0&&(e.mode&1?(t=co,co<<=1,!(co&130023424)&&(co=4194304)):t=1);var r=on();e=Ci(e,t),e!==null&&(Kl(e,t,r),bn(e,r))}function d4(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),A1(e,r)}function h4(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(zt(314))}n!==null&&n.delete(t),A1(e,r)}var E1;E1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||vn.current)mn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mn=!1,t4(e,t,r);mn=!!(e.flags&131072)}else mn=!1,hr&&t.flags&1048576&&Rm(t,lu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Po(e,t),e=t.pendingProps;var i=ya(t,en.current);pa(t,r),i=I0(null,t,n,e,i,r);var s=q0();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,yn(n)?(s=!0,su(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,C0(t),i.updater=Lu,t.stateNode=i,i._reactInternals=t,nf(t,n,e,r),t=lf(null,t,n,!0,s,r)):(t.tag=0,hr&&s&&b0(t),sn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Po(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=_4(n),e=Xn(n,e),i){case 0:t=af(null,t,n,e,r);break e;case 1:t=Lh(null,t,n,e,r);break e;case 11:t=Mh(null,t,n,e,r);break e;case 14:t=Dh(null,t,n,Xn(n.type,e),r);break e}throw Error(zt(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),af(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),Lh(e,t,n,i,r);case 3:e:{if(c1(t),e===null)throw Error(zt(387));n=t.pendingProps,s=t.memoizedState,i=s.element,Lm(e,t),cu(t,n,null,r);var c=t.memoizedState;if(n=c.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ka(Error(zt(423)),t),t=Fh(e,t,n,r,i);break e}else if(n!==i){i=ka(Error(zt(424)),t),t=Fh(e,t,n,r,i);break e}else for(An=Oi(t.stateNode.containerInfo.firstChild),Cn=t,hr=!0,Zn=null,r=Mm(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ba(),n===i){t=Ti(e,t,r);break e}sn(e,t,n,r)}t=t.child}return t;case 5:return Fm(t),e===null&&ef(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,c=i.children,X$(n,i)?c=null:s!==null&&X$(n,s)&&(t.flags|=32),u1(e,t),sn(e,t,c,r),t.child;case 6:return e===null&&ef(t),null;case 13:return $1(e,t,r);case 4:return T0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xa(t,null,n,r):sn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),Mh(e,t,n,i,r);case 7:return sn(e,t,t.pendingProps,r),t.child;case 8:return sn(e,t,t.pendingProps.children,r),t.child;case 12:return sn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,c=i.value,ur(ou,n._currentValue),n._currentValue=c,s!==null)if(ri(s.value,c)){if(s.children===i.children&&!vn.current){t=Ti(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var f=s.dependencies;if(f!==null){c=s.child;for(var p=f.firstContext;p!==null;){if(p.context===n){if(s.tag===1){p=ki(-1,r&-r),p.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var z=h.pending;z===null?p.next=p:(p.next=z.next,z.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),tf(s.return,r,t),f.lanes|=r;break}p=p.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(zt(341));c.lanes|=r,f=c.alternate,f!==null&&(f.lanes|=r),tf(c,r,t),c=s.sibling}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===t){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}sn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,pa(t,r),i=Hn(i),n=n(i),t.flags|=1,sn(e,t,n,r),t.child;case 14:return n=t.type,i=Xn(n,t.pendingProps),i=Xn(n.type,i),Dh(e,t,n,i,r);case 15:return l1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),Po(e,t),t.tag=1,yn(n)?(e=!0,su(t)):e=!1,pa(t,r),i1(t,n,i),nf(t,n,i,r),lf(null,t,n,!0,e,r);case 19:return f1(e,t,r);case 22:return o1(e,t,r)}throw Error(zt(156,t.tag))};function C1(e,t){return tm(e,t)}function p4(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 jn(e,t,r,n){return new p4(e,t,r,n)}function V0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _4(e){if(typeof e=="function")return V0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===u0)return 11;if(e===c0)return 14}return 2}function ns(e,t){var r=e.alternate;return r===null?(r=jn(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 Vo(e,t,r,n,i,s){var c=2;if(n=e,typeof e=="function")V0(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Zs:return Ts(r.children,i,s,t);case o0:c=8,i|=8;break;case E$:return e=jn(12,r,t,i|2),e.elementType=E$,e.lanes=s,e;case C$:return e=jn(13,r,t,i),e.elementType=C$,e.lanes=s,e;case T$:return e=jn(19,r,t,i),e.elementType=T$,e.lanes=s,e;case F_:return ju(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D_:c=10;break e;case L_:c=9;break e;case u0:c=11;break e;case c0:c=14;break e;case Hi:c=16,n=null;break e}throw Error(zt(130,e==null?e:typeof e,""))}return t=jn(c,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Ts(e,t,r,n){return e=jn(7,e,n,t),e.lanes=r,e}function ju(e,t,r,n){return e=jn(22,e,n,t),e.elementType=F_,e.lanes=r,e.stateNode={isHidden:!1},e}function Gc(e,t,r){return e=jn(6,e,null,t),e.lanes=r,e}function Kc(e,t,r){return t=jn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m4(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=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Y0(e,t,r,n,i,s,c,f,p){return e=new m4(e,t,r,f,p),t===1?(t=1,s===!0&&(t|=8)):t=0,s=jn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},C0(s),e}function g4(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function T1(e){if(!e)return ss;e=e._reactInternals;e:{if(Bs(e)!==e||e.tag!==1)throw Error(zt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(zt(171))}if(e.tag===1){var r=e.type;if(yn(r))return Tm(e,r,t)}return t}function z1(e,t,r,n,i,s,c,f,p){return e=Y0(r,n,!0,e,i,s,c,f,p),e.context=T1(null),r=e.current,n=on(),i=rs(r),s=ki(n,i),s.callback=t??null,es(r,s,i),e.current.lanes=i,Kl(e,i,n),bn(e,n),e}function Pu(e,t,r,n){var i=t.current,s=on(),c=rs(i);return r=T1(r),t.context===null?t.context=r:t.pendingContext=r,t=ki(s,c),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=es(i,t,c),e!==null&&(ti(e,i,c,s),Fo(e,i,c)),c}function gu(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 Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function W0(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function v4(){return null}var R1=typeof reportError=="function"?reportError:function(e){console.error(e)};function G0(e){this._internalRoot=e}Uu.prototype.render=G0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(zt(409));Pu(e,t,null,null)};Uu.prototype.unmount=G0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qs(function(){Pu(null,e,null,null)}),t[Ei]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=om();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Yi.length&&t!==0&&t<Yi[r].priority;r++);Yi.splice(r,0,e),r===0&&cm(e)}};function K0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xh(){}function y4(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var h=gu(c);s.call(h)}}var c=z1(t,n,e,0,null,!1,!1,"",Xh);return e._reactRootContainer=c,e[Ei]=c.current,Nl(e.nodeType===8?e.parentNode:e),qs(),c}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var f=n;n=function(){var h=gu(p);f.call(h)}}var p=Y0(e,0,!1,null,null,!1,!1,"",Xh);return e._reactRootContainer=p,e[Ei]=p.current,Nl(e.nodeType===8?e.parentNode:e),qs(function(){Pu(t,p,r,n)}),p}function Vu(e,t,r,n,i){var s=r._reactRootContainer;if(s){var c=s;if(typeof i=="function"){var f=i;i=function(){var p=gu(c);f.call(p)}}Pu(t,c,e,i)}else c=y4(r,t,e,i,n);return gu(c)}am=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=sl(t.pendingLanes);r!==0&&(d0(t,r|1),bn(t,Ar()),!(rr&6)&&(Sa=Ar()+500,hs()))}break;case 13:qs(function(){var n=Ci(e,1);if(n!==null){var i=on();ti(n,e,1,i)}}),W0(e,1)}};h0=function(e){if(e.tag===13){var t=Ci(e,134217728);if(t!==null){var r=on();ti(t,e,134217728,r)}W0(e,134217728)}};lm=function(e){if(e.tag===13){var t=rs(e),r=Ci(e,t);if(r!==null){var n=on();ti(r,e,t,n)}W0(e,t)}};om=function(){return lr};um=function(e,t){var r=lr;try{return lr=e,t()}finally{lr=r}};B$=function(e,t,r){switch(t){case"input":if(N$(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=qu(n);if(!i)throw Error(zt(90));j_(n),N$(n,i)}}}break;case"textarea":U_(e,r);break;case"select":t=r.value,t!=null&&$a(e,!!r.multiple,t,!1)}};X_=P0;Q_=qs;var b4={usingClientEntryPoint:!1,Events:[Ql,ta,qu,G_,K_,P0]},Qa={findFiberByHostInstance:Ss,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x4={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ni.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=O_(e),e===null?null:e.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance||v4,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 xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{zu=xo.inject(x4),ci=xo}catch{}}Nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b4;Nn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!K0(t))throw Error(zt(200));return g4(e,t,null,r)};Nn.createRoot=function(e,t){if(!K0(e))throw Error(zt(299));var r=!1,n="",i=R1;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Y0(e,1,!1,null,null,r,!1,n,i),e[Ei]=t.current,Nl(e.nodeType===8?e.parentNode:e),new G0(t)};Nn.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(zt(188)):(e=Object.keys(e).join(","),Error(zt(268,e)));return e=O_(t),e=e===null?null:e.stateNode,e};Nn.flushSync=function(e){return qs(e)};Nn.hydrate=function(e,t,r){if(!Hu(t))throw Error(zt(200));return Vu(null,e,t,!0,r)};Nn.hydrateRoot=function(e,t,r){if(!K0(e))throw Error(zt(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",c=R1;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=z1(t,null,e,1,r??null,i,!1,s,c),e[Ei]=t.current,Nl(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 Uu(t)};Nn.render=function(e,t,r){if(!Hu(t))throw Error(zt(200));return Vu(null,e,t,!1,r)};Nn.unmountComponentAtNode=function(e){if(!Hu(e))throw Error(zt(40));return e._reactRootContainer?(qs(function(){Vu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1};Nn.unstable_batchedUpdates=P0;Nn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Hu(r))throw Error(zt(200));if(e==null||e._reactInternals===void 0)throw Error(zt(38));return Vu(e,t,r,!1,n)};Nn.version="18.3.1-next-f1338f8080-20240426";function N1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(N1)}catch(e){console.error(e)}}N1(),N_.exports=Nn;var I1=N_.exports,q1,Qh=I1;q1=Qh.createRoot,Qh.hydrateRoot;const oa=typeof window<"u"&&window.__BASE__||"",Er=e=>oa+e;async function Ii(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 Zh(){return Ii(Er("/api/info"))}function w4(){return Ii(Er("/api/tasks"))}function Za(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Ii(Er(`/api/tree?${r}`))}function gn(e,t,r){const n=new URLSearchParams({path:e});return M1(n,t),r?.binary&&n.set("binary","1"),Ii(Er(`/api/json?${n}`))}function M1(e,t){t===null?e.set("depth",".inf"):t!==void 0&&e.set("depth",String(t))}function ps(e){return Er(`/api/blob?path=${encodeURIComponent(e)}`)}function k4(e,t,r){return Er(`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`)}function S4(e,t){const r=new URLSearchParams({path:e});return M1(r,t),Ii(Er(`/api/schema?${r}`))}function Aa(e){return Ii(Er(`/api/annotations?path=${encodeURIComponent(e)}`))}function A4(e){return Ii(Er(`/api/tagged?path=${encodeURIComponent(e)}`))}function E4(e,t=":"){const r=new URLSearchParams({q:e,path:t});return Ii(Er(`/api/query?${r}`)).then(n=>n.results)}async function Ia(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 D1(){return Ii(Er("/api/config"))}function C4(e){return Ia(Er("/api/config"),{source:e})}function T4(e){return Ia(Er("/api/last-tag"),{tag:e})}function z4(e,t,r){return Ia(Er("/api/fragment"),{target:e,selector:t,...r?{imageBase64:r}:{}})}function Ms(e){return Ia(Er("/api/annotate"),e)}function R4(e,t){return Ia(Er("/api/board"),{path:e,columns:t})}function N4(e){return fetch(Er("/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 Jh(e=!1){return Ia(Er("/api/agent-docs"),{overwrite:e})}function X0(e){return fetch(Er("/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 I4(e,t,r){return X0({path:e,filename:t,contentBase64:r})}function q4(e,t){return X0({path:e,text:t})}function M4(e,t){return X0({path:e,rich:t})}function Q0(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(Er(`/api/annotate?${r}`),{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const D4="modulepreload",L4=function(e){return"/"+e},Oh={},qn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");i=Promise.allSettled(r.map(p=>{if(p=L4(p),p in Oh)return;Oh[p]=!0;const h=p.endsWith(".css"),z=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${z}`))return;const D=document.createElement("link");if(D.rel=h?"stylesheet":D4,h||(D.as="script"),D.crossOrigin="",D.href=p,f&&D.setAttribute("nonce",f),document.head.appendChild(D),h)return new Promise((j,he)=>{D.addEventListener("load",j),D.addEventListener("error",()=>he(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return i.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},L1=new Set(["json","json5","json5p"]),F1=new Set(["yaml","yamlover"]);function B1(e){return!!e&&e.startsWith("file/")}function Yu(e){return e==="dir"||e==="dir/yamlover"}function j1(e){if(!e)return null;const t=e.startsWith("file/")?e.slice(5):e;return L1.has(t)||F1.has(t)?t:null}function Wu(e){const t=j1(e);return t!=null&&L1.has(t)}function P1(e){const t=j1(e);return t!=null&&F1.has(t)}function fi(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const F4=/\[\d+\]|[^:\[\]]+/g,B4=/\[\d+\]|[^/\[\]]+/g;function Gr(e){const t=[];for(const r of e.match(F4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Z0(r));return t}function Hr(e){return fi(Gr(e))}function Z0(e){try{return decodeURIComponent(e)}catch{return e}}function ep(){let e=window.location.pathname;oa&&(e===oa||e.startsWith(oa+"/"))&&(e=e.slice(oa.length)||"/");const t=[];for(const r of e.match(B4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Z0(r));return fi(t)}function j4(e){const r=Gr(e).map(n=>typeof n=="number"?`[${n}]`:`/${encodeURIComponent(n)}`).join("")||"/";return oa+r}function J0(e,t){return Gr(t).slice(Gr(e).length).map(n=>typeof n=="number"?`[${n}]`:`/${n}`).join("")}function Jl(e){const t=Gr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function P4(e){const t=Gr(Hr(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 U4(e){return e.replace(/[^:/\[\]]+/g,t=>Z0(t))}function yl(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function tp(e){return new URLSearchParams(window.location.search).get("format")||e}function ex(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function tx(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 Gs(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${j4(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function H4(e,t){const r=Gr(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:fi(r.slice(0,s+1))})}),n}const V4="$yamloverLink",Y4="$yamloverBinary",W4="$yamloverRef",G4="$yamloverMixed",K4="$yamloverNum";function Ol(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 un=e=>Ol(e,V4),X4=e=>Ol(e,Y4),Gu=e=>Ol(e,W4),qa=e=>Ol(e,G4),Ku=e=>Ol(e,K4);function U1(e,t){return t==="json"?e:e==="NaN"?".nan":e==="-Infinity"?"-.inf":".inf"}function _s(e){const t=qa(e),r=t&&t.kind==="omni"?t.value:e,n=Ku(r);return n?n==="NaN"?NaN:n==="-Infinity"?-1/0:1/0:r}function zi(e,t){if(!e.comments)return;const r=e.comments[t.slice(e.base.length)];return r&&!Array.isArray(r)?r:void 0}function Xu(e,t){return(t==="yaml"?"#":"//")+" "+e.trim()}function O0(e,t){return t==="json"?"*"+JSON.stringify(e):e!==e.trim()?`*'${e.replace(/'/g,"''")}'`:"*"+e}function Q4(e,t){return t==="json"?"&"+JSON.stringify(e):"&"+e}function Pl(e,t,r){const n=zi(e,t);if(!n)return null;const i=r==="yaml"?n.tag:void 0,s=n.anchors??[];return!i&&s.length===0?null:Ce.jsxs(Ce.Fragment,{children:[i&&Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"b",children:i})]}),s.map((c,f)=>Ce.jsxs(mt.Fragment,{children:[" ",Ce.jsx("span",{className:"anchor",children:Q4(c,r)})]},`an${f}`))]})}function Qu({ctx:e,frag:t,pad:r,syntax:n}){const i=zi(e,t)?.leading;return i?.length?Ce.jsx(Ce.Fragment,{children:i.map((s,c)=>Ce.jsxs(mt.Fragment,{children:[r,Ce.jsx("span",{className:"c",children:Xu(s,n)}),`
|
|
42
|
-
`]},`lc${c}`))}):null}function Zu(e,t,r){const n=zi(e,t)?.trailing;return n?.length?Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"c",children:n.map(i=>Xu(i,r)).join(" ")})]}):null}function H1(e,t,r){const n=zi(e,t)?.valueTrailing;return n?.length?Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"c",children:n.map(i=>Xu(i,r)).join(" ")})]}):null}function rp({texts:e,syntax:t}){return Ce.jsx(Ce.Fragment,{children:e.map((r,n)=>Ce.jsxs(mt.Fragment,{children:[Ce.jsx("span",{className:"c",children:Xu(r,t)}),`
|
|
43
|
-
`]},`fc${n}`))})}function np(e,t){const r=e?.[t];return Array.isArray(r)&&r.length?r:void 0}function Z4(e){const t=window.location.pathname+window.location.search;window.history.pushState({},"",t+"#"+e),document.getElementById(e)?.scrollIntoView?.()}function Ul({ctx:e,frag:t}){return!e.anchors||!t?null:Ce.jsx("span",{id:t,className:"frag-anchor"})}function ip({value:e,syntax:t,onNavigate:r,documentPath:n=":",nodePath:i=":",anchors:s=!0,comments:c}){const f=J0(n,i),p={nav:r,doc:n,node:i,anchors:s,comments:c,base:f},h=X4(e);if(h&&t==="yaml")return Ce.jsx(J4,{bin:h});const z=h??e,D=np(c,"$head"),j=np(c,"$tail");return Ce.jsxs(Ce.Fragment,{children:[D&&Ce.jsx(rp,{texts:D,syntax:t}),t==="yaml"?Ce.jsx(eb,{value:z,indent:0,ctx:p,frag:f}):Ce.jsx(nd,{value:z,indent:0,ctx:p,frag:f,root:!0}),j&&Ce.jsx(rp,{texts:j,syntax:t})]})}function J4({bin:e}){const t=[];for(let r=0;r<e.base64.length;r+=76)t.push(" "+e.base64.slice(r,r+76));return Ce.jsxs(Ce.Fragment,{children:[Ce.jsx("span",{className:"b",children:"!!binary"})," ",Ce.jsx("span",{className:"punct",children:"|"})," ",Ce.jsx("span",{className:"c",children:`# ${e.format??"binary"}, ${e.size} bytes`}),`
|
|
44
|
-
`,Ce.jsx("span",{className:"s",children:t.join(`
|
|
45
|
-
`)})]})}function ed(e,t,r){const n=e.kind==="scalar"?td(e.value,t):O4(e);return Ce.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r.nav(e.path)},children:n})}function td(e,t){if(e==null)return"null";const r=Ku(e);return r?U1(r,t):typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function rd(e,t,r,n){const i=n??(t==="json"?JSON.stringify(e.text):e.text);if(!e.path)return Ce.jsx("span",{className:"s",children:i});if(e.path===r.node||yl(r.node,e.path)){const f=J0(r.doc,e.path);return Ce.jsx("a",{className:"descend ref-local",href:"#"+f,onClick:p=>{p.preventDefault(),Z4(f)},children:i})}const c=e.path;return Ce.jsx("a",{className:"descend",href:c,onClick:f=>{f.preventDefault(),r.nav(c)},children:i})}function O4(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 ${td(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function Ju(e,t){if(e===null)return Ce.jsx("span",{className:"null",children:"null"});if(typeof e=="boolean")return Ce.jsx("span",{className:"b",children:String(e)});const r=Ku(e);if(r)return Ce.jsx("span",{className:"n",children:U1(r,t)});if(typeof e=="number")return Ce.jsx("span",{className:"n",children:String(e)});const n=t==="json"?JSON.stringify(e):String(e);return Ce.jsx("span",{className:"s",children:n})}const Ma=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!Ku(e);function as(e){return un(e)||Gu(e)?!1:qa(e)?!0:Ma(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function Ou(e){const t=qa(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${td(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 ec({open:e,onToggle:t}){return Ce.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:Ce.jsx("span",{className:"chevron",children:"›"})})}function eb({value:e,indent:t,ctx:r,frag:n}){const i=un(e);if(i)return Ce.jsxs(Ce.Fragment,{children:[ed(i,"yaml",r),`
|
|
46
|
-
`]});const s=Gu(e);return s?Ce.jsxs(Ce.Fragment,{children:[rd(s,"yaml",r),`
|
|
47
|
-
`]}):as(e)?Ce.jsx(vu,{value:e,indent:t,ctx:r,frag:n}):Ma(e)?Ce.jsxs(Ce.Fragment,{children:[Ce.jsx("span",{className:"punct",children:"{}"}),`
|
|
48
|
-
`]}):Array.isArray(e)?Ce.jsxs(Ce.Fragment,{children:[Ce.jsx("span",{className:"punct",children:"[]"}),`
|
|
49
|
-
`]}):Ce.jsxs(Ce.Fragment,{children:[Ju(e,"yaml"),H1(r,n,"yaml"),`
|
|
50
|
-
`]})}function vu({value:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=qa(e);return s?Ce.jsx(ib,{mixed:s,indent:t,ctx:r,frag:n}):Ma(e)?Ce.jsx(tb,{entries:Object.entries(e),indent:t,ctx:r,frag:n,inlineHead:i}):Ce.jsx(rb,{items:e,indent:t,ctx:r,frag:n,inlineHead:i})}function tb({entries:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=" ".repeat(t);return Ce.jsx(Ce.Fragment,{children:e.map(([c,f],p)=>Ce.jsx(V1,{k:c,v:f,pad:s,indent:t,ctx:r,frag:`${n}/${c}`,noPad:i&&p===0},p))})}function rb({items:e,indent:t,ctx:r,frag:n,inlineHead:i=!1}){const s=" ".repeat(t);return Ce.jsx(Ce.Fragment,{children:e.map((c,f)=>Ce.jsx(Y1,{v:c,pad:s,indent:t,ctx:r,frag:`${n}[${f}]`,noPad:i&&f===0},f))})}function nb(e){if(qa(e))return!1;if(Ma(e)){const t=Object.values(e);return t.length>0&&!as(t[0])}return Array.isArray(e)?e.length>0&&!as(e[0]):!1}function ib({mixed:e,indent:t,ctx:r,frag:n}){const i=" ".repeat(t);return Ce.jsxs(Ce.Fragment,{children:[e.kind==="omni"&&Ce.jsxs(Ce.Fragment,{children:[i,Ju(e.value,"yaml"),H1(r,n,"yaml"),`
|
|
51
|
-
`]}),e.entries.map((s,c)=>s.key===null?Ce.jsx(Y1,{v:s.value,pad:i,indent:t,ctx:r,frag:`${n}[${c}]`},c):Ce.jsx(V1,{k:s.key,v:s.value,pad:i,indent:t,ctx:r,frag:`${n}/${s.key}`},c))]})}function V1({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,noPad:c=!1}){const[f,p]=mt.useState(!0),h=!c&&zi(i,s)?.blankBefore?`
|
|
52
|
-
`:null,z=c?null:Ce.jsx(Qu,{ctx:i,frag:s,pad:r,syntax:"yaml"}),D=Zu(i,s,"yaml"),j=zi(i,s)?.pointer,he=Pl(i,s,"yaml"),be=Ce.jsxs(Ce.Fragment,{children:[c?null:r,Ce.jsx(Ul,{ctx:i,frag:s}),Ce.jsx("span",{className:"k",children:e}),Ce.jsx("span",{className:"punct",children:":"})]});return as(t)?Ce.jsxs(Ce.Fragment,{children:[h,z,Ce.jsx(ec,{open:f,onToggle:()=>p(ee=>!ee)}),be,he,f?Ce.jsxs(Ce.Fragment,{children:[D,`
|
|
53
|
-
`,Ce.jsx(vu,{value:t,indent:n+2,ctx:i,frag:s})]}):Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"fold-summary",children:Ou(t)}),D,`
|
|
54
|
-
`]})]}):Ce.jsxs(Ce.Fragment,{children:[h,z,be,he,W1(t,i,D,j&&O0(j,"yaml"))]})}function Y1({v:e,pad:t,indent:r,ctx:n,frag:i,noPad:s=!1}){const[c,f]=mt.useState(!0),p=!s&&zi(n,i)?.blankBefore?`
|
|
55
|
-
`:null,h=s?null:Ce.jsx(Qu,{ctx:n,frag:i,pad:t,syntax:"yaml"}),z=Zu(n,i,"yaml"),D=zi(n,i)?.pointer,j=Pl(n,i,"yaml"),he=Ce.jsxs(Ce.Fragment,{children:[s?null:t,Ce.jsx(Ul,{ctx:n,frag:i}),Ce.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(!as(e))return Ce.jsxs(Ce.Fragment,{children:[p,h,he,j,W1(e,n,z,D&&O0(D,"yaml"))]});const be=nb(e);return Ce.jsxs(Ce.Fragment,{children:[p,h,Ce.jsx(ec,{open:c,onToggle:()=>f(ee=>!ee)}),he,j,c?be?Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx(vu,{value:e,indent:r+2,ctx:n,frag:i,inlineHead:!0})]}):Ce.jsxs(Ce.Fragment,{children:[z,`
|
|
56
|
-
`,Ce.jsx(vu,{value:e,indent:r+2,ctx:n,frag:i})]}):Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"fold-summary",children:Ou(e)}),z,`
|
|
57
|
-
`]})]})}function W1(e,t,r=null,n){const i=un(e);if(i)return Ce.jsxs(Ce.Fragment,{children:[" ",ed(i,"yaml",t),r,`
|
|
58
|
-
`]});const s=Gu(e);return s?Ce.jsxs(Ce.Fragment,{children:[" ",rd(s,"yaml",t,n),r,`
|
|
59
|
-
`]}):Ma(e)&&Object.keys(e).length===0?Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"punct",children:"{}"}),r,`
|
|
60
|
-
`]}):Array.isArray(e)&&e.length===0?Ce.jsxs(Ce.Fragment,{children:[" ",Ce.jsx("span",{className:"punct",children:"[]"}),r,`
|
|
61
|
-
`]}):Ce.jsxs(Ce.Fragment,{children:[" ",Ju(e,"yaml"),r,`
|
|
62
|
-
`]})}function nd({value:e,indent:t,ctx:r,frag:n,root:i=!1}){const s=un(e);if(s)return ed(s,"json",r);const c=Gu(e);if(c){const p=zi(r,n)?.pointer;return rd(c,"json",r,p&&O0(p,"json"))}if(i&&as(e))return Ce.jsx(bl,{value:e,indent:t,ctx:r,frag:n});const f=G1(e);return f?f.length?Ce.jsx(bl,{value:e,indent:t,ctx:r,frag:n}):Ce.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?Ce.jsx(bl,{value:e,indent:t,ctx:r,frag:n}):Ce.jsx("span",{className:"punct",children:"[]"}):Ju(e,"json")}function G1(e){const t=qa(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:Ma(e)?Object.entries(e):null}function bl({value:e,indent:t,ctx:r,frag:n}){const i=G1(e);return i?Ce.jsx(sb,{entries:i,indent:t,ctx:r,frag:n}):Ce.jsx(ab,{items:e,indent:t,ctx:r,frag:n})}function sb({entries:e,indent:t,ctx:r,frag:n}){const i=" ".repeat(t+2);return Ce.jsxs(Ce.Fragment,{children:[Ce.jsx("span",{className:"punct",children:"{"}),`
|
|
63
|
-
`,e.map(([s,c],f)=>Ce.jsx(lb,{k:s,v:c,pad:i,indent:t+2,ctx:r,frag:`${n}/${s}`,last:f===e.length-1},f))," ".repeat(t),Ce.jsx("span",{className:"punct",children:"}"})]})}function ab({items:e,indent:t,ctx:r,frag:n}){const i=" ".repeat(t+2);return Ce.jsxs(Ce.Fragment,{children:[Ce.jsx("span",{className:"punct",children:"["}),`
|
|
64
|
-
`,e.map((s,c)=>Ce.jsx(ob,{v:s,pad:i,indent:t+2,ctx:r,frag:`${n}[${c}]`,last:c===e.length-1},c))," ".repeat(t),Ce.jsx("span",{className:"punct",children:"]"})]})}function lb({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,last:c}){const[f,p]=mt.useState(!0),h=Ce.jsx(Qu,{ctx:i,frag:s,pad:r,syntax:"json"}),z=Ce.jsxs(Ce.Fragment,{children:[r,Ce.jsx(Ul,{ctx:i,frag:s}),Ce.jsx("span",{className:"k",children:`"${e}"`}),Ce.jsx("span",{className:"punct",children:": "}),Pl(i,s,"json")]}),D=Ce.jsxs(Ce.Fragment,{children:[c?"":",",Zu(i,s,"json"),`
|
|
65
|
-
`]});return as(t)?Ce.jsxs(Ce.Fragment,{children:[h,Ce.jsx(ec,{open:f,onToggle:()=>p(j=>!j)}),z,f?Ce.jsx(bl,{value:t,indent:n,ctx:i,frag:s}):Ce.jsx("span",{className:"fold-summary",children:Ou(t)}),D]}):Ce.jsxs(Ce.Fragment,{children:[h,z,Ce.jsx(nd,{value:t,indent:n,ctx:i,frag:s}),D]})}function ob({v:e,pad:t,indent:r,ctx:n,frag:i,last:s}){const[c,f]=mt.useState(!0),p=Ce.jsx(Qu,{ctx:n,frag:i,pad:t,syntax:"json"}),h=Ce.jsxs(Ce.Fragment,{children:[s?"":",",Zu(n,i,"json"),`
|
|
66
|
-
`]});return as(e)?Ce.jsxs(Ce.Fragment,{children:[p,Ce.jsx(ec,{open:c,onToggle:()=>f(z=>!z)}),t,Ce.jsx(Ul,{ctx:n,frag:i}),Pl(n,i,"json"),c?Ce.jsx(bl,{value:e,indent:r,ctx:n,frag:i}):Ce.jsx("span",{className:"fold-summary",children:Ou(e)}),h]}):Ce.jsxs(Ce.Fragment,{children:[p,t,Ce.jsx(Ul,{ctx:n,frag:i}),Pl(n,i,"json"),Ce.jsx(nd,{value:e,indent:r,ctx:n,frag:i}),h]})}function ub(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function cb(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 K1(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=cb(n.id||ub(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 tc(e){mt.useEffect(()=>{const t=decodeURIComponent(window.location.hash.slice(1));t&&document.getElementById(t)?.scrollIntoView?.()},[e])}function X1({node:e,onNavigate:t}){const r=e.value??{},n=Array.isArray(r.chunks)?r.chunks:[],i=Array.isArray(r.children)?r.children:[];return tc(e),Ce.jsxs("div",{className:"chapter",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),n.map((s,c)=>Ce.jsx($b,{index:c,item:s,basePath:e.path,documentPath:e.documentPath,onNavigate:t},c)),i.map((s,c)=>{const f=un(s);return Ce.jsx("h2",{className:"chapter-link",children:Ce.jsx("a",{className:"descend",href:f?.path??"#",onClick:p=>{p.preventDefault(),f&&t(f.path)},children:fb(f)})},c)})]})}function $b({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=un(t),c={value:s?s.value:t,path:s?.path??"",type:s?.type??"string",format:s?.format??null,valueType:s?.valueType??"string",hasKeyed:s?.hasKeyed??!1,hasOrdinal:s?.hasOrdinal??!1,documentPath:n},f=no(c),p=f?.renderChunk?f.renderChunk(c,i):Ce.jsx("p",{className:"chapter-prose",children:String(c.value??"")}),h=c.path?J0(r,c.path):null;return Ce.jsxs("div",{className:"chunk",id:h??void 0,children:[h?Ce.jsxs("a",{className:"chunk-index",href:`#${h}`,children:["§",e]}):Ce.jsxs("span",{className:"chunk-index",children:["§",e]}),Ce.jsx("div",{className:"chunk-body",children:p})]})}function fb(e){return e?.title??"(untitled chapter)"}const Hl="yamlover:diff";function db(e){window.dispatchEvent(new CustomEvent(Hl,{detail:e}))}const js=e=>e.paths.some(t=>t.endsWith(".yamlover"));function Da(e=()=>!0){const[t,r]=mt.useState(0);return mt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>c+1)};return window.addEventListener(Hl,n),()=>window.removeEventListener(Hl,n)},[]),t}function hb(e=()=>!0){const[t,r]=mt.useState({seq:0,paths:[]});return mt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>({seq:c.seq+1,paths:s.paths}))};return window.addEventListener(Hl,n),()=>window.removeEventListener(Hl,n)},[]),t}const La="x-yamlover-tag";function id(e){return/(^|:)tags:colors:/.test(Hr(e))}function Q1({color:e,title:t,onClick:r}){return Ce.jsx("span",{className:"tagswatch",style:{background:e},title:t,role:r?"button":void 0,onClick:r})}function pb(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=un(i);s&&s.format===La?t.push({path:s.path,label:rc(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function _b(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 cn(e){return e.color??_b(e.name)}const Z1="$yamloverMixed";function xn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[Z1];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function J1(e){if(typeof e=="string")return e;const t=e?.[Z1];return typeof t?.value=="string"?t.value:null}function sd(e){const t=xn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function mb({tags:e,onNavigate:t}){return e.length===0?null:Ce.jsx(Ce.Fragment,{children:e.map(r=>{const n=cn({name:r.label,color:r.color});return id(r.path)?Ce.jsx(Q1,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):Ce.jsx("a",{className:"tagtag",style:{background:n},href:r.path,title:r.label,onClick:i=>{i.preventDefault(),t(r.path)},children:r.label},r.path)})})}function rc(e,t){if(t)return t;const r=Gr(e);return r.length?String(r[r.length-1]):e}const gb="$yamloverRef",vb="x-yamlover-workflow";function Ds(e){const t=un(e);if(t)return t.path;const r=e?.[gb];return r&&typeof r.path=="string"?r.path:null}function O1(e){const t=xn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(Ds).filter(n=>n!=null);const r=Ds(t);return r?[r]:[]}async function yb(e){const t=await gn(e,1),r=Ds(xn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,c]of xn(t.value)){if(s==="initial"||s==="color")continue;const f=un(c);!f||f.format!==La||n.has(f.path)||(n.add(f.path),i.push({path:f.path,label:rc(f.path,f.title),color:f.color??null,next:[],initial:f.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=O1((await gn(s.path,2)).value)}catch{}})),i}async function eg(e,t,r){t!==r&&(t&&await Q0(e,t),await Ms({target:e,tag:r}))}async function bb(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await gn(e.slice(0,t),0)).format===vb}catch{return!1}}async function vf(e){const t=await gn(e,2);return{path:e,label:rc(e,t.title),color:sd(t.value),next:O1(t.value)}}const Ja=(e,t)=>{const r=xn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null};function xb({node:e,onNavigate:t}){const r=Da(js),[n,i]=mt.useState(null),s=Ja(e.value,"description"),c=Ja(e.value,"priority"),f=Ja(e.value,"assignee"),p=Ja(e.value,"due"),h=Ja(e.value,"estimate");mt.useEffect(()=>{let D=!1;return(async()=>{const j=await Aa(e.path).catch(()=>[]);let he=null;for(const be of j){const ee=be.tag?.path;if(!ee||!await bb(ee))continue;const Y=await vf(ee),X=await Promise.all(Y.next.map(ge=>vf(ge)));he={...Y,nextStates:X};break}D||i(he)})(),()=>{D=!0}},[e.path,r]);const z=async D=>{n&&await eg(e.path,n.path,D).catch(()=>{})};return Ce.jsxs("div",{className:"task",children:[Ce.jsxs("div",{className:"task-strip",children:[n&&Ce.jsx("span",{className:"task-state",style:{background:cn({name:n.label,color:n.color})},children:n.label}),n?.nextStates.map(D=>Ce.jsxs("button",{className:"task-advance",style:{borderColor:cn({name:D.label,color:D.color})},onClick:()=>z(D.path),title:`Move to ${D.label}`,children:["→ ",D.label]},D.path)),c&&Ce.jsx("span",{className:"board-chip prio-"+c,children:c}),f&&Ce.jsxs("span",{className:"board-chip board-assignee",children:["@",f]}),p&&Ce.jsx("span",{className:"board-chip board-due",children:p.slice(0,10)}),h&&Ce.jsx("span",{className:"board-chip board-estimate",children:h})]}),s&&Ce.jsx("p",{className:"task-description",children:s}),Ce.jsx(X1,{node:e,onNavigate:t})]})}function wb(){const[e,t]=mt.useState(""),[r,n]=mt.useState(null),[i,s]=mt.useState(":.yamlover:settings.yamlover"),[c,f]=mt.useState("loading"),[p,h]=mt.useState(null),[z,D]=mt.useState(!1),j=Da(js);mt.useEffect(()=>{let be=!0;return D1().then(ee=>{be&&(t(Y=>z?Y:ee.source),n(ee.settings),s(ee.path),f(Y=>Y==="loading"?"ready":Y))}).catch(ee=>be&&h(String(ee.message||ee))),()=>{be=!1}},[j]);const he=mt.useCallback(async()=>{f("saving"),h(null);try{const{settings:be}=await C4(e);n(be),D(!1),f("ready")}catch(be){h(String(be.message||be)),f("ready")}},[e]);return Ce.jsxs("div",{className:"settings-view",children:[Ce.jsxs("header",{className:"settings-head",children:[Ce.jsx("span",{className:"settings-title",children:"⚙ Project configuration"}),Ce.jsx("span",{className:"settings-path",children:i})]}),c==="loading"?Ce.jsx("div",{className:"settings-dim",children:"loading…"}):Ce.jsxs(Ce.Fragment,{children:[r&&Ce.jsxs("dl",{className:"settings-summary",children:[Ce.jsx("dt",{children:"URI"}),Ce.jsx("dd",{children:r.uri??Ce.jsx("span",{className:"settings-dim",children:"— (no declared identity)"})}),Ce.jsx("dt",{children:"Exports"}),Ce.jsx("dd",{children:r.exports.length?r.exports.map(be=>Ce.jsx("code",{className:"settings-chip",children:be},be)):Ce.jsx("span",{className:"settings-dim",children:"— (nothing exported)"})}),Ce.jsx("dt",{children:"Tags location"}),Ce.jsx("dd",{children:Ce.jsx("code",{children:r.tags})}),Ce.jsx("dt",{children:"Annotations location"}),Ce.jsx("dd",{children:Ce.jsx("code",{children:r.annotations})}),Ce.jsx("dt",{children:"Sidecars"}),Ce.jsx("dd",{children:Ce.jsx("code",{children:r.sidecars})}),Ce.jsx("dt",{children:"Last tag"}),Ce.jsx("dd",{children:r.annotationTag?Ce.jsx("code",{children:r.annotationTag}):Ce.jsx("span",{className:"settings-dim",children:"— (none yet)"})})]}),Ce.jsx("label",{className:"settings-raw-label",children:"Source — settings.yamlover"}),Ce.jsx("textarea",{className:"settings-raw",spellCheck:!1,value:e,onChange:be=>{t(be.target.value),D(!0)}}),p&&Ce.jsx("div",{className:"settings-error",children:p}),Ce.jsxs("div",{className:"settings-actions",children:[Ce.jsx("span",{className:"settings-dim",children:"Defaults, never constraints — a node works wherever it lives."}),Ce.jsx("button",{type:"button",className:"settings-save",onClick:he,disabled:c!=="ready"||!z,children:c==="saving"?"Saving…":"Save"})]})]})]})}function ad(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ps=ad();function tg(e){Ps=e}var ws={exec:()=>null};function Ks(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),i=t[n];return i||(i=e(n),t[n]=i),i}}function tr(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let c=typeof s=="string"?s:s.source;return c=c.replace(Jr.caret,"$1"),r=r.replace(i,c),n},getRegex:()=>new RegExp(r,t)};return n}var kb=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Jr={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:Ks(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ks(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ks(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ks(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ks(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ks(e=>new RegExp(`^ {0,${e}}>`))},Sb=/^(?:[ \t]*(?:\n|$))+/,Ab=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Eb=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,eo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ld=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,rg=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ng=tr(rg).replace(/bull/g,ld).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(),Tb=tr(rg).replace(/bull/g,ld).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(),od=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zb=/^[^\n]+/,ud=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rb=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ud).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nb=tr(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ld).getRegex(),nc="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",cd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ib=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",cd).replace("tag",nc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ig=tr(od).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nc).getRegex(),qb=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ig).getRegex(),$d={blockquote:qb,code:Ab,def:Rb,fences:Eb,heading:Cb,hr:eo,html:Ib,lheading:ng,list:Nb,newline:Sb,paragraph:ig,table:ws,text:zb},sp=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eo).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",nc).getRegex(),Mb={...$d,lheading:Tb,table:sp,paragraph:tr(od).replace("hr",eo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nc).getRegex()},Db={...$d,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",cd).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:ws,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(od).replace("hr",eo).replace("heading",` *#{1,6} *[^
|
|
67
|
-
]`).replace("lheading",ng).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sg=/^( {2,}|\\)\n(?!\s*$)/,Bb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Fa=/[\p{P}\p{S}]/u,ic=/[\s\p{P}\p{S}]/u,fd=/[^\s\p{P}\p{S}]/u,jb=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ic).getRegex(),ag=/(?!~)[\p{P}\p{S}]/u,Pb=/(?!~)[\s\p{P}\p{S}]/u,Ub=/(?:[^\s\p{P}\p{S}]|~)/u,Hb=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kb?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),lg=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Vb=tr(lg,"u").replace(/punct/g,Fa).getRegex(),Yb=tr(lg,"u").replace(/punct/g,ag).getRegex(),og="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Wb=tr(og,"gu").replace(/notPunctSpace/g,fd).replace(/punctSpace/g,ic).replace(/punct/g,Fa).getRegex(),Gb=tr(og,"gu").replace(/notPunctSpace/g,Ub).replace(/punctSpace/g,Pb).replace(/punct/g,ag).getRegex(),Kb=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fd).replace(/punctSpace/g,ic).replace(/punct/g,Fa).getRegex(),Xb=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Fa).getRegex(),Qb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Zb=tr(Qb,"gu").replace(/notPunctSpace/g,fd).replace(/punctSpace/g,ic).replace(/punct/g,Fa).getRegex(),Jb=tr(/\\(punct)/,"gu").replace(/punct/g,Fa).getRegex(),Ob=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(),e3=tr(cd).replace("(?:-->|$)","-->").getRegex(),t3=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",e3).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,r3=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",yu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ug=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",yu).replace("ref",ud).getRegex(),cg=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",ud).getRegex(),n3=tr("reflink|nolink(?!\\()","g").replace("reflink",ug).replace("nolink",cg).getRegex(),ap=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dd={_backpedal:ws,anyPunctuation:Jb,autolink:Ob,blockSkip:Hb,br:sg,code:Fb,del:ws,delLDelim:ws,delRDelim:ws,emStrongLDelim:Vb,emStrongRDelimAst:Wb,emStrongRDelimUnd:Kb,escape:Lb,link:r3,nolink:cg,punctuation:jb,reflink:ug,reflinkSearch:n3,tag:t3,text:Bb,url:ws},i3={...dd,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",yu).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yu).getRegex()},yf={...dd,emStrongRDelimAst:Gb,emStrongLDelim:Yb,delLDelim:Xb,delRDelim:Zb,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ap).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",ap).getRegex()},s3={...yf,br:tr(sg).replace("{2,}","*").getRegex(),text:tr(yf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wo={normal:$d,gfm:Mb,pedantic:Db},Oa={normal:dd,gfm:yf,breaks:s3,pedantic:i3},a3={"&":"&","<":"<",">":">",'"':""","'":"'"},lp=e=>a3[e];function ii(e,t){if(t){if(Jr.escapeTest.test(e))return e.replace(Jr.escapeReplace,lp)}else if(Jr.escapeTestNoEncode.test(e))return e.replace(Jr.escapeReplaceNoEncode,lp);return e}function op(e){try{e=encodeURI(e).replace(Jr.percentDecode,"%")}catch{return null}return e}function up(e,t){let r=e.replace(Jr.findPipe,(s,c,f)=>{let p=!1,h=c;for(;--h>=0&&f[h]==="\\";)p=!p;return p?"|":" |"}),n=r.split(Jr.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(Jr.slashPipe,"|");return n}function Fi(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 cp(e){let t=e.split(`
|
|
68
|
-
`),r=t.length-1;for(;r>=0&&Jr.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
|
|
69
|
-
`)}function l3(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 o3(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 $p(e,t,r,n,i){let s=t.href,c=t.title||null,f=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let p={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:c,text:f,tokens:n.inlineTokens(f)};return n.state.inLink=!1,p}function u3(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
70
|
-
`).map(s=>{let c=s.match(r.other.beginningSpace);if(c===null)return s;let[f]=c;return f.length>=i.length?s.slice(i.length):s}).join(`
|
|
71
|
-
`)}var bu=class{options;rules;lexer;constructor(e){this.options=e||Ps}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]:cp(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=u3(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=Fi(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Fi(t[0],`
|
|
72
|
-
`),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:Fi(t[0],`
|
|
73
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Fi(t[0],`
|
|
74
|
-
`).split(`
|
|
75
|
-
`),n="",i="",s=[];for(;r.length>0;){let c=!1,f=[],p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))f.push(r[p]),c=!0;else if(!c)f.push(r[p]);else break;r=r.slice(p);let h=f.join(`
|
|
76
|
-
`),z=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
77
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
78
|
-
${h}`:h,i=i?`${i}
|
|
79
|
-
${z}`:z;let D=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(z,s,!0),this.lexer.state.top=D,r.length===0)break;let j=s.at(-1);if(j?.type==="code")break;if(j?.type==="blockquote"){let he=j,be=he.raw+`
|
|
80
|
-
`+r.join(`
|
|
81
|
-
`),ee=this.blockquote(be);s[s.length-1]=ee,n=n.substring(0,n.length-he.raw.length)+ee.raw,i=i.substring(0,i.length-he.text.length)+ee.text;break}else if(j?.type==="list"){let he=j,be=he.raw+`
|
|
82
|
-
`+r.join(`
|
|
83
|
-
`),ee=this.list(be);s[s.length-1]=ee,n=n.substring(0,n.length-j.raw.length)+ee.raw,i=i.substring(0,i.length-he.raw.length)+ee.raw,r=be.substring(s.at(-1).raw.length).split(`
|
|
84
|
-
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),c=!1;for(;e;){let p=!1,h="",z="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let D=o3(t[2].split(`
|
|
85
|
-
`,1)[0],t[1].length),j=e.split(`
|
|
86
|
-
`,1)[0],he=!D.trim(),be=0;if(this.options.pedantic?(be=2,z=D.trimStart()):he?be=t[1].length+1:(be=D.search(this.rules.other.nonSpaceChar),be=be>4?1:be,z=D.slice(be),be+=t[1].length),he&&this.rules.other.blankLine.test(j)&&(h+=j+`
|
|
87
|
-
`,e=e.substring(j.length+1),p=!0),!p){let ee=this.rules.other.nextBulletRegex(be),Y=this.rules.other.hrRegex(be),X=this.rules.other.fencesBeginRegex(be),ge=this.rules.other.headingBeginRegex(be),se=this.rules.other.htmlBeginRegex(be),me=this.rules.other.blockquoteBeginRegex(be);for(;e;){let Z=e.split(`
|
|
88
|
-
`,1)[0],xe;if(j=Z,this.options.pedantic?(j=j.replace(this.rules.other.listReplaceNesting," "),xe=j):xe=j.replace(this.rules.other.tabCharGlobal," "),X.test(j)||ge.test(j)||se.test(j)||me.test(j)||ee.test(j)||Y.test(j))break;if(xe.search(this.rules.other.nonSpaceChar)>=be||!j.trim())z+=`
|
|
89
|
-
`+xe.slice(be);else{if(he||D.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(D)||ge.test(D)||Y.test(D))break;z+=`
|
|
90
|
-
`+j}he=!j.trim(),h+=Z+`
|
|
91
|
-
`,e=e.substring(Z.length+1),D=xe.slice(be)}}i.loose||(c?i.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),i.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(z),loose:!1,text:z,tokens:[]}),i.raw+=h}let f=i.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p of i.items){this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]);let h=p.tokens[0];if(p.task&&(h?.type==="text"||h?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let D=this.lexer.inlineQueue.length-1;D>=0;D--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[D].src)){this.lexer.inlineQueue[D].src=this.lexer.inlineQueue[D].src.replace(this.rules.other.listReplaceTask,"");break}let z=this.rules.other.listTaskCheckbox.exec(p.raw);if(z){let D={type:"checkbox",raw:z[0]+" ",checked:z[0]!=="[ ]"};p.checked=D.checked,i.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=D.raw+p.tokens[0].raw,p.tokens[0].text=D.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(D)):p.tokens.unshift({type:"paragraph",raw:D.raw,text:D.raw,tokens:[D]}):p.tokens.unshift(D)}}else p.task&&(p.task=!1);if(!i.loose){let z=p.tokens.filter(j=>j.type==="space"),D=z.length>0&&z.some(j=>this.rules.other.anyLine.test(j.raw));i.loose=D}}if(i.loose)for(let p of i.items){p.loose=!0;for(let h of p.tokens)h.type==="text"&&(h.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=cp(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:Fi(t[0],`
|
|
92
|
-
`),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=up(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
93
|
-
`):[],s={type:"table",raw:Fi(t[0],`
|
|
94
|
-
`),header:[],align:[],rows:[]};if(r.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?s.align.push("right"):this.rules.other.tableAlignCenter.test(c)?s.align.push("center"):this.rules.other.tableAlignLeft.test(c)?s.align.push("left"):s.align.push(null);for(let c=0;c<r.length;c++)s.header.push({text:r[c],tokens:this.lexer.inline(r[c]),header:!0,align:s.align[c]});for(let c of i)s.rows.push(up(c,s.header.length).map((f,p)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:s.align[p]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Fi(t[0],`
|
|
95
|
-
`),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)===`
|
|
96
|
-
`?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=Fi(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=l3(t[2],"()");if(s===-2)return;if(s>-1){let c=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,c).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),$p(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 $p(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(c=[...s].length,n[3]||n[4]){f+=c;continue}else if((n[5]||n[6])&&i%3&&!((i+c)%3)){p+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+p);let z=[...n[0]][0].length,D=e.slice(0,i+n.index+z+c);if(Math.min(i,c)%2){let he=D.slice(1,-1);return{type:"em",raw:D,text:he,tokens:this.lexer.inlineTokens(he)}}let j=D.slice(2,-2);return{type:"strong",raw:D,text:j,tokens:this.lexer.inlineTokens(j)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=this.rules.inline.delRDelim;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(n=p.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(c=[...s].length,c!==i))continue;if(n[3]||n[4]){f+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f);let h=[...n[0]][0].length,z=e.slice(0,i+n.index+h+c),D=z.slice(i,-i);return{type:"del",raw:z,text:D,tokens:this.lexer.inlineTokens(D)}}}}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}}}},Jn=class bf{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ps,this.options.tokenizer=this.options.tokenizer||new bu,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:Jr,block:wo.normal,inline:Oa.normal};this.options.pedantic?(r.block=wo.pedantic,r.inline=Oa.pedantic):this.options.gfm&&(r.block=wo.gfm,this.options.breaks?r.inline=Oa.breaks:r.inline=Oa.gfm),this.tokenizer.rules=r}static get rules(){return{block:wo,inline:Oa}}static lex(t,r){return new bf(r).lex(t)}static lexInline(t,r){return new bf(r).inlineTokens(t)}lex(t){t=t.replace(Jr.carriageReturn,`
|
|
97
|
-
`),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(Jr.tabCharGlobal," ").replace(Jr.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+=`
|
|
98
|
-
`: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(`
|
|
99
|
-
`)?"":`
|
|
100
|
-
`)+s.raw,f.text+=`
|
|
101
|
-
`+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(`
|
|
102
|
-
`)?"":`
|
|
103
|
-
`)+s.raw,f.text+=`
|
|
104
|
-
`+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let c=t;if(this.options.extensions?.startBlock){let f=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(z=>{h=z.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(c=t.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(c))){let f=r.at(-1);n&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
105
|
-
`)?"":`
|
|
106
|
-
`)+s.raw,f.text+=`
|
|
107
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s),n=c.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
|
|
108
|
-
`)?"":`
|
|
109
|
-
`)+s.raw,f.text+=`
|
|
110
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let c=!1,f="",p=1/0;for(;t;){if(t.length<p)p=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}c||(f=""),c=!1;let h;if(this.options.extensions?.inline?.some(D=>(h=D.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let D=r.at(-1);h.type==="text"&&D?.type==="text"?(D.raw+=h.raw,D.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let z=t;if(this.options.extensions?.startInline){let D=1/0,j=t.slice(1),he;this.options.extensions.startInline.forEach(be=>{he=be.call({lexer:this},j),typeof he=="number"&&he>=0&&(D=Math.min(D,he))}),D<1/0&&D>=0&&(z=t.substring(0,D+1))}if(h=this.tokenizer.inlineText(z)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(f=h.raw.slice(-1)),c=!0;let D=r.at(-1);D?.type==="text"?(D.raw+=h.raw,D.text+=h.text):r.push(h);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},xu=class{options;parser;constructor(e){this.options=e||Ps}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Jr.notSpaceStart)?.[0],i=e.replace(Jr.endingNewline,"")+`
|
|
111
|
-
`;return n?'<pre><code class="language-'+ii(n)+'">'+(r?i:ii(i,!0))+`</code></pre>
|
|
112
|
-
`:"<pre><code>"+(r?i:ii(i,!0))+`</code></pre>
|
|
113
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
114
|
-
${this.parser.parse(e)}</blockquote>
|
|
115
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
116
|
-
`}hr(e){return`<hr>
|
|
117
|
-
`}list(e){let t=e.ordered,r=e.start,n="";for(let c=0;c<e.items.length;c++){let f=e.items[c];n+=this.listitem(f)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
118
|
-
`+n+"</"+i+`>
|
|
119
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
120
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
121
|
-
`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let c=0;c<s.length;c++)r+=this.tablecell(s[c]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
122
|
-
<thead>
|
|
123
|
-
`+t+`</thead>
|
|
124
|
-
`+n+`</table>
|
|
125
|
-
`}tablerow({text:e}){return`<tr>
|
|
126
|
-
${e}</tr>
|
|
127
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
128
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ii(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=op(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+ii(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=op(e);if(i===null)return ii(r);e=i;let s=`<img src="${e}" alt="${ii(r)}"`;return t&&(s+=` title="${ii(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ii(e.text)}},hd=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}},On=class xf{options;renderer;textRenderer;constructor(t){this.options=t||Ps,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 hd}static parse(t,r){return new xf(r).parse(t)}static parseInline(t,r){return new xf(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let c=i,f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){r+=f||"";continue}}let s=i;switch(s.type){case"space":{r+=this.renderer.space(s);break}case"hr":{r+=this.renderer.hr(s);break}case"heading":{r+=this.renderer.heading(s);break}case"code":{r+=this.renderer.code(s);break}case"table":{r+=this.renderer.table(s);break}case"blockquote":{r+=this.renderer.blockquote(s);break}case"list":{r+=this.renderer.list(s);break}case"checkbox":{r+=this.renderer.checkbox(s);break}case"html":{r+=this.renderer.html(s);break}case"def":{r+=this.renderer.def(s);break}case"paragraph":{r+=this.renderer.paragraph(s);break}case"text":{r+=this.renderer.text(s);break}default:{let c='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let f=this.options.extensions.renderers[s.type].call({parser:this},s);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=f||"";continue}}let c=s;switch(c.type){case"escape":{n+=r.text(c);break}case"html":{n+=r.html(c);break}case"link":{n+=r.link(c);break}case"image":{n+=r.image(c);break}case"checkbox":{n+=r.checkbox(c);break}case"strong":{n+=r.strong(c);break}case"em":{n+=r.em(c);break}case"codespan":{n+=r.codespan(c);break}case"br":{n+=r.br(c);break}case"del":{n+=r.del(c);break}case"text":{n+=r.text(c);break}default:{let f='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},ll=class{options;block;constructor(e){this.options=e||Ps}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?Jn.lex:Jn.lexInline}provideParser(e=this.block){return e?On.parse:On.parseInline}},c3=class{defaults=ad();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=On;Renderer=xu;TextRenderer=hd;Lexer=Jn;Tokenizer=bu;Hooks=ll;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let i=n;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,t));for(let s of i.rows)for(let c of s)r=r.concat(this.walkTokens(c.tokens,t));break}case"list":{let i=n;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=n;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let c=i[s].flat(1/0);r=r.concat(this.walkTokens(c,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...c){let f=i.renderer.apply(this,c);return f===!1&&(f=s.apply(this,c)),f}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),r.renderer){let i=this.defaults.renderer||new 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 c=s,f=r.renderer[c],p=i[c];i[c]=(...h)=>{let z=f.apply(i,h);return z===!1&&(z=p.apply(i,h)),z||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new bu(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let c=s,f=r.tokenizer[c],p=i[c];i[c]=(...h)=>{let z=f.apply(i,h);return z===!1&&(z=p.apply(i,h)),z}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new ll;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let c=s,f=r.hooks[c],p=i[c];ll.passThroughHooks.has(s)?i[c]=h=>{if(this.defaults.async&&ll.passThroughHooksRespectAsync.has(s))return(async()=>{let D=await f.call(i,h);return p.call(i,D)})();let z=f.call(i,h);return p.call(i,z)}:i[c]=(...h)=>{if(this.defaults.async)return(async()=>{let D=await f.apply(i,h);return D===!1&&(D=await p.apply(i,h)),D})();let z=f.apply(i,h);return z===!1&&(z=p.apply(i,h)),z}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(c){let f=[];return f.push(s.call(this,c)),i&&(f=f.concat(i.call(this,c))),f}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Jn.lex(e,t??this.defaults)}parser(e,t){return On.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let c=i.hooks?await i.hooks.preprocess(t):t,f=await(i.hooks?await i.hooks.provideLexer(e):e?Jn.lex:Jn.lexInline)(c,i),p=i.hooks?await i.hooks.processAllTokens(f):f;i.walkTokens&&await Promise.all(this.walkTokens(p,i.walkTokens));let h=await(i.hooks?await i.hooks.provideParser(e):e?On.parse:On.parseInline)(p,i);return i.hooks?await i.hooks.postprocess(h):h})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let c=(i.hooks?i.hooks.provideLexer(e):e?Jn.lex:Jn.lexInline)(t,i);i.hooks&&(c=i.hooks.processAllTokens(c)),i.walkTokens&&this.walkTokens(c,i.walkTokens);let f=(i.hooks?i.hooks.provideParser(e):e?On.parse:On.parseInline)(c,i);return i.hooks&&(f=i.hooks.postprocess(f)),f}catch(c){return s(c)}}}onError(e,t){return r=>{if(r.message+=`
|
|
129
|
-
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+ii(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Ls=new c3;function ar(e,t){return Ls.parse(e,t)}ar.options=ar.setOptions=function(e){return Ls.setOptions(e),ar.defaults=Ls.defaults,tg(ar.defaults),ar};ar.getDefaults=ad;ar.defaults=Ps;ar.use=function(...e){return Ls.use(...e),ar.defaults=Ls.defaults,tg(ar.defaults),ar};ar.walkTokens=function(e,t){return Ls.walkTokens(e,t)};ar.parseInline=Ls.parseInline;ar.Parser=On;ar.parser=On.parse;ar.Renderer=xu;ar.TextRenderer=hd;ar.Lexer=Jn;ar.lexer=Jn.lex;ar.Tokenizer=bu;ar.Hooks=ll;ar.parse=ar;ar.options;ar.setOptions;ar.use;ar.walkTokens;ar.parseInline;On.parse;Jn.lex;const $g=72,wf=20,kf=400,fg=()=>new URLSearchParams(window.location.search);function dg(){const e=Number(fg().get("width"));return Number.isFinite(e)&&e>=wf&&e<=kf?e:$g}function $3(e){const t=fg();e===$g?t.delete("width"):t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function hg({html:e}){return Ce.jsx("div",{className:"markup",style:{maxWidth:`${dg()}ch`},dangerouslySetInnerHTML:{__html:e}})}function fp({rerender:e}){const t=dg(),[r,n]=mt.useState(String(t));mt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=wf&&i<=kf;return Ce.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:c=>{const f=c.target.value;n(f);const p=Number(f);f.trim()!==""&&Number.isInteger(p)&&p>=wf&&p<=kf&&($3(p),e())}})}const f3=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function d3(e){try{return decodeURIComponent(e)}catch{return e}}function h3(e,t){if(!t)return null;const r=e.trim();if(!r||f3.test(r))return null;const n=r.split(/[?#]/,1)[0],i=Gr(t).slice(0,-1);for(const s of n.split("/"))s===""||s==="."||(s===".."?i.pop():i.push(d3(s)));return ps(fi(i))}function p3(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=h3(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function pg(e,t){const r=K1(ar.parse(String(e??""),{async:!1}));return p3(r,t)}function _3({node:e}){return tc(e),Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx(hg,{html:pg(_s(e.value),e.path)})]})}function m3({chunk:e}){return Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:pg(e.value,e.documentPath)}})}class Nt extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,c=r&&r.loc;if(c&&c.start<=c.end){var f=c.lexer.input;i=c.start,s=c.end,i===f.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var p=f.slice(i,s).replace(/[^]/g,"$&̲"),h;i>15?h="…"+f.slice(i-15,i):h=f.slice(0,i);var z;s+15<f.length?z=f.slice(s,s+15)+"…":z=f.slice(s),n+=h+p+z}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Nt.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var g3=/([A-Z])/g,v3=e=>e.replace(g3,"-$1").toLowerCase(),y3={"&":"&",">":">","<":"<",'"':""","'":"'"},b3=/[&><"']/g,Or=e=>String(e).replace(b3,t=>y3[t]),Yo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Yo(e.body[0]):e:e.type==="font"?Yo(e.body):e,x3=new Set(["mathord","textord","atom"]),qi=e=>x3.has(Yo(e).type),w3=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Sf={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 k3(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 S3(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return k3(t)}function A3(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:S3(n)}class pd{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(Sf)){var n=Sf[r];n&&A3(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 Nt("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=w3(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Bi{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return ai[E3[this.id]]}sub(){return ai[C3[this.id]]}fracNum(){return ai[T3[this.id]]}fracDen(){return ai[z3[this.id]]}cramp(){return ai[R3[this.id]]}text(){return ai[N3[this.id]]}isTight(){return this.size>=2}}var _d=0,wu=1,ma=2,Si=3,Vl=4,Pn=5,Ea=6,ln=7,ai=[new Bi(_d,0,!1),new Bi(wu,0,!0),new Bi(ma,1,!1),new Bi(Si,1,!0),new Bi(Vl,2,!1),new Bi(Pn,2,!0),new Bi(Ea,3,!1),new Bi(ln,3,!0)],E3=[Vl,Pn,Vl,Pn,Ea,ln,Ea,ln],C3=[Pn,Pn,Pn,Pn,ln,ln,ln,ln],T3=[ma,Si,Vl,Pn,Ea,ln,Ea,ln],z3=[Si,Si,Pn,Pn,ln,ln,ln,ln],R3=[wu,wu,Si,Si,Pn,Pn,ln,ln],N3=[_d,wu,ma,Si,ma,Si,ma,Si],Gt={DISPLAY:ai[_d],TEXT:ai[ma],SCRIPT:ai[Vl],SCRIPTSCRIPT:ai[Ea]},Af=[{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 I3(e){for(var t=0;t<Af.length;t++)for(var r=Af[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 Wo=[];Af.forEach(e=>e.blocks.forEach(t=>Wo.push(...t)));function _g(e){for(var t=0;t<Wo.length;t+=2)if(e>=Wo[t]&&e<=Wo[t+1])return!0;return!1}var qr=e=>e+" "+e,Xs=80,q3=function(t,r){return"M95,"+(622+t+r)+`
|
|
130
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
131
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
132
|
-
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
|
|
133
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
134
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
135
|
-
l`+t/2.075+" -"+t+`
|
|
136
|
-
c5.3,-9.3,12,-14,20,-14
|
|
137
|
-
H400000v`+(40+t)+`H845.2724
|
|
138
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
139
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
140
|
-
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},M3=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
141
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
142
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
143
|
-
l`+t/2.084+" -"+t+`
|
|
144
|
-
c4.7,-7.3,11,-11,19,-11
|
|
145
|
-
H40000v`+(40+t)+`H1012.3
|
|
146
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
147
|
-
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
|
|
148
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
149
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
150
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},D3=function(t,r){return"M983 "+(10+t+r)+`
|
|
151
|
-
l`+t/3.13+" -"+t+`
|
|
152
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
153
|
-
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
|
|
154
|
-
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
|
|
155
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
156
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
157
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
158
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
159
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},L3=function(t,r){return"M424,"+(2398+t+r)+`
|
|
160
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
161
|
-
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
|
|
162
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
163
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
164
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
165
|
-
v`+(40+t)+`H1014.6
|
|
166
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
167
|
-
c-2,6,-10,9,-24,9
|
|
168
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
169
|
-
h400000v`+(40+t)+"h-400000z"},F3=function(t,r){return"M473,"+(2713+t+r)+`
|
|
170
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
171
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
172
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
173
|
-
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
|
|
174
|
-
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
|
|
175
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
176
|
-
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},B3=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},j3=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
177
|
-
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
|
|
178
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
179
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
180
|
-
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},P3=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=q3(r,Xs);break;case"sqrtSize1":i=M3(r,Xs);break;case"sqrtSize2":i=D3(r,Xs);break;case"sqrtSize3":i=L3(r,Xs);break;case"sqrtSize4":i=F3(r,Xs);break;case"sqrtTall":i=j3(r,Xs,n)}return i},U3=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""}},dp={doubleleftarrow:`M262 157
|
|
181
|
-
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
|
|
182
|
-
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
|
|
183
|
-
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
|
|
184
|
-
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
|
|
185
|
-
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
|
|
186
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
187
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
188
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
189
|
-
-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
|
|
190
|
-
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
|
|
191
|
-
-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
|
|
192
|
-
-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
|
|
193
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
194
|
-
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
|
|
195
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
196
|
-
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
|
|
197
|
-
-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
|
|
198
|
-
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
|
|
199
|
-
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
|
|
200
|
-
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
|
|
201
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
202
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
203
|
-
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
|
|
204
|
-
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
|
|
205
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
206
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
207
|
-
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
|
|
208
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
209
|
-
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
|
|
210
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
211
|
-
-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
|
|
212
|
-
-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
|
|
213
|
-
-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
|
|
214
|
-
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
|
|
215
|
-
-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
|
|
216
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
217
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
218
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
219
|
-
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
|
|
220
|
-
-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
|
|
221
|
-
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
|
|
222
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
223
|
-
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
|
|
224
|
-
-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
|
|
225
|
-
-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
|
|
226
|
-
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
|
|
227
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
228
|
-
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
|
|
229
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:qr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
230
|
-
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
|
|
231
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
232
|
-
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
|
|
233
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
234
|
-
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
|
|
235
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
236
|
-
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
|
|
237
|
-
-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
|
|
238
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
239
|
-
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
|
|
240
|
-
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
|
|
241
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
242
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
243
|
-
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
|
|
244
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
245
|
-
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
|
|
246
|
-
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
|
|
247
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
248
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
249
|
-
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
|
|
250
|
-
-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
|
|
251
|
-
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
|
|
252
|
-
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
|
|
253
|
-
-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
|
|
254
|
-
-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
|
|
255
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
256
|
-
-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
|
|
257
|
-
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
|
|
258
|
-
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
|
|
259
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
260
|
-
-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
|
|
261
|
-
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
|
|
262
|
-
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
|
|
263
|
-
-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
|
|
264
|
-
-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
|
|
265
|
-
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
|
|
266
|
-
-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
|
|
267
|
-
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
|
|
268
|
-
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
|
|
269
|
-
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
|
|
270
|
-
-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
|
|
271
|
-
-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
|
|
272
|
-
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
|
|
273
|
-
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
|
|
274
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
275
|
-
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
|
|
276
|
-
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
|
|
277
|
-
-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
|
|
278
|
-
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
|
|
279
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
280
|
-
-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
|
|
281
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
282
|
-
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
|
|
283
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
284
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
285
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
286
|
-
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
|
|
287
|
-
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
|
|
288
|
-
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
|
|
289
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
290
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
291
|
-
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
|
|
292
|
-
-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
|
|
293
|
-
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
|
|
294
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
295
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
296
|
-
-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
|
|
297
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
298
|
-
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
|
|
299
|
-
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
|
|
300
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
301
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
302
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
303
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
304
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
305
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
306
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
307
|
-
-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
|
|
308
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
309
|
-
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
|
|
310
|
-
-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
|
|
311
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
312
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
313
|
-
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
|
|
314
|
-
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
|
|
315
|
-
-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
|
|
316
|
-
-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
|
|
317
|
-
-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,
|
|
318
|
-
-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,
|
|
319
|
-
-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,
|
|
320
|
-
-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,
|
|
321
|
-
-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
|
|
322
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
323
|
-
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
|
|
324
|
-
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
|
|
325
|
-
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
|
|
326
|
-
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
|
|
327
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
328
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
329
|
-
-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
|
|
330
|
-
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
|
|
331
|
-
-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
|
|
332
|
-
-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
|
|
333
|
-
-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
|
|
334
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
335
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
336
|
-
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
|
|
337
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
338
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
339
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
340
|
-
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,
|
|
341
|
-
-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
|
|
342
|
-
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
|
|
343
|
-
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
|
|
344
|
-
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,
|
|
345
|
-
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,
|
|
346
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
347
|
-
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
|
|
348
|
-
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,
|
|
349
|
-
-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
|
|
350
|
-
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
|
|
351
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},H3=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
352
|
-
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
|
|
353
|
-
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
|
|
354
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
355
|
-
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
|
|
356
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
357
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
358
|
-
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
359
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
360
|
-
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
|
|
361
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
362
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
363
|
-
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
364
|
-
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
|
|
365
|
-
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,
|
|
366
|
-
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
367
|
-
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
|
|
368
|
-
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,
|
|
369
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
370
|
-
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
371
|
-
-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,
|
|
372
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
373
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
374
|
-
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
|
|
375
|
-
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
|
|
376
|
-
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
|
|
377
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
378
|
-
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
379
|
-
-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 V3(e){return"toText"in e}class Ba{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(V3(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var Ef={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},Y3={ex:!0,em:!0,mu:!0},mg=function(t){return typeof t!="string"&&(t=t.unit),t in Ef||t in Y3||t==="ex"},vr=function(t,r){var n;if(t.unit in Ef)n=Ef[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 Nt("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},qt=function(t){return+t.toFixed(4)+"em"},ls=function(t){return t.filter(r=>r).join(" ")},md=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=v3(n)+":"+i+";")}return r},gg=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)}},vg=function(t){var r=document.createElement(t);r.className=ls(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},W3=/[\s"'>/=\x00-\x1f]/,yg=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Or(ls(this.classes))+'"');var n=md(this.style);n&&(r+=' style="'+Or(n)+'"');for(var i of Object.keys(this.attributes)){if(W3.test(i))throw new Nt("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Or(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,gg.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return vg.call(this,"span")}toMarkup(){return yg.call(this,"span")}}class sc{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,gg.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 vg.call(this,"a")}toMarkup(){return yg.call(this,"a")}}class G3{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="'+Or(this.src)+'"'+(' alt="'+Or(this.alt)+'"'),r=md(this.style);return r&&(t+=' style="'+Or(r)+'"'),t+="'/>",t}}var K3={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Rn{constructor(t,r,n,i,s,c,f,p){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=c||0,this.classes=f||[],this.style=p||{},this.maxFontSize=0;var h=I3(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=K3[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=qt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ls(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+=Or(ls(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+qt(this.italic)+";"),n+=md(this.style),n&&(t=!0,r+=' style="'+Or(n)+'"');var i=Or(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Ri{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+'="'+Or(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class os{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",dp[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Or(this.alternate)+'"/>':'<path d="'+Or(dp[this.pathName])+'"/>'}}class Cf{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+'="'+Or(this.attributes[r])+'"';return t+="/>",t}}function X3(e){if(e instanceof Rn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Q3(e){if(e instanceof ja)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Z3=e=>e instanceof ja||e instanceof sc||e instanceof Ba,ui={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ko={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]},hp={Å:"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 J3(e,t){ui[e]=t}function gd(e,t,r){if(!ui[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ui[t][n];if(!i&&e[0]in hp&&(n=hp[e[0]].charCodeAt(0),i=ui[t][n]),!i&&r==="text"&&_g(n)&&(i=ui[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Xc={};function O3(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Xc[t]){var r=Xc[t]={cssEmPerMu:ko.quad[t]/18};for(var n in ko)ko.hasOwnProperty(n)&&(r[n]=ko[n][t])}return Xc[t]}var pr={math:{},text:{}};function pe(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",kt="text",Ve="main",ot="ams",_r="accent-token",Lt="bin",dn="close",Pa="inner",jt="mathord",Ir="op-token",Mn="open",to="punct",ct="rel",Mi="spacing",pt="textord";pe(Te,Ve,ct,"≡","\\equiv",!0);pe(Te,Ve,ct,"≺","\\prec",!0);pe(Te,Ve,ct,"≻","\\succ",!0);pe(Te,Ve,ct,"∼","\\sim",!0);pe(Te,Ve,ct,"⊥","\\perp");pe(Te,Ve,ct,"⪯","\\preceq",!0);pe(Te,Ve,ct,"⪰","\\succeq",!0);pe(Te,Ve,ct,"≃","\\simeq",!0);pe(Te,Ve,ct,"∣","\\mid",!0);pe(Te,Ve,ct,"≪","\\ll",!0);pe(Te,Ve,ct,"≫","\\gg",!0);pe(Te,Ve,ct,"≍","\\asymp",!0);pe(Te,Ve,ct,"∥","\\parallel");pe(Te,Ve,ct,"⋈","\\bowtie",!0);pe(Te,Ve,ct,"⌣","\\smile",!0);pe(Te,Ve,ct,"⊑","\\sqsubseteq",!0);pe(Te,Ve,ct,"⊒","\\sqsupseteq",!0);pe(Te,Ve,ct,"≐","\\doteq",!0);pe(Te,Ve,ct,"⌢","\\frown",!0);pe(Te,Ve,ct,"∋","\\ni",!0);pe(Te,Ve,ct,"∝","\\propto",!0);pe(Te,Ve,ct,"⊢","\\vdash",!0);pe(Te,Ve,ct,"⊣","\\dashv",!0);pe(Te,Ve,ct,"∋","\\owns");pe(Te,Ve,to,".","\\ldotp");pe(Te,Ve,to,"⋅","\\cdotp");pe(Te,Ve,to,"⋅","·");pe(kt,Ve,pt,"⋅","·");pe(Te,Ve,pt,"#","\\#");pe(kt,Ve,pt,"#","\\#");pe(Te,Ve,pt,"&","\\&");pe(kt,Ve,pt,"&","\\&");pe(Te,Ve,pt,"ℵ","\\aleph",!0);pe(Te,Ve,pt,"∀","\\forall",!0);pe(Te,Ve,pt,"ℏ","\\hbar",!0);pe(Te,Ve,pt,"∃","\\exists",!0);pe(Te,Ve,pt,"∇","\\nabla",!0);pe(Te,Ve,pt,"♭","\\flat",!0);pe(Te,Ve,pt,"ℓ","\\ell",!0);pe(Te,Ve,pt,"♮","\\natural",!0);pe(Te,Ve,pt,"♣","\\clubsuit",!0);pe(Te,Ve,pt,"℘","\\wp",!0);pe(Te,Ve,pt,"♯","\\sharp",!0);pe(Te,Ve,pt,"♢","\\diamondsuit",!0);pe(Te,Ve,pt,"ℜ","\\Re",!0);pe(Te,Ve,pt,"♡","\\heartsuit",!0);pe(Te,Ve,pt,"ℑ","\\Im",!0);pe(Te,Ve,pt,"♠","\\spadesuit",!0);pe(Te,Ve,pt,"§","\\S",!0);pe(kt,Ve,pt,"§","\\S");pe(Te,Ve,pt,"¶","\\P",!0);pe(kt,Ve,pt,"¶","\\P");pe(Te,Ve,pt,"†","\\dag");pe(kt,Ve,pt,"†","\\dag");pe(kt,Ve,pt,"†","\\textdagger");pe(Te,Ve,pt,"‡","\\ddag");pe(kt,Ve,pt,"‡","\\ddag");pe(kt,Ve,pt,"‡","\\textdaggerdbl");pe(Te,Ve,dn,"⎱","\\rmoustache",!0);pe(Te,Ve,Mn,"⎰","\\lmoustache",!0);pe(Te,Ve,dn,"⟯","\\rgroup",!0);pe(Te,Ve,Mn,"⟮","\\lgroup",!0);pe(Te,Ve,Lt,"∓","\\mp",!0);pe(Te,Ve,Lt,"⊖","\\ominus",!0);pe(Te,Ve,Lt,"⊎","\\uplus",!0);pe(Te,Ve,Lt,"⊓","\\sqcap",!0);pe(Te,Ve,Lt,"∗","\\ast");pe(Te,Ve,Lt,"⊔","\\sqcup",!0);pe(Te,Ve,Lt,"◯","\\bigcirc",!0);pe(Te,Ve,Lt,"∙","\\bullet",!0);pe(Te,Ve,Lt,"‡","\\ddagger");pe(Te,Ve,Lt,"≀","\\wr",!0);pe(Te,Ve,Lt,"⨿","\\amalg");pe(Te,Ve,Lt,"&","\\And");pe(Te,Ve,ct,"⟵","\\longleftarrow",!0);pe(Te,Ve,ct,"⇐","\\Leftarrow",!0);pe(Te,Ve,ct,"⟸","\\Longleftarrow",!0);pe(Te,Ve,ct,"⟶","\\longrightarrow",!0);pe(Te,Ve,ct,"⇒","\\Rightarrow",!0);pe(Te,Ve,ct,"⟹","\\Longrightarrow",!0);pe(Te,Ve,ct,"↔","\\leftrightarrow",!0);pe(Te,Ve,ct,"⟷","\\longleftrightarrow",!0);pe(Te,Ve,ct,"⇔","\\Leftrightarrow",!0);pe(Te,Ve,ct,"⟺","\\Longleftrightarrow",!0);pe(Te,Ve,ct,"↦","\\mapsto",!0);pe(Te,Ve,ct,"⟼","\\longmapsto",!0);pe(Te,Ve,ct,"↗","\\nearrow",!0);pe(Te,Ve,ct,"↩","\\hookleftarrow",!0);pe(Te,Ve,ct,"↪","\\hookrightarrow",!0);pe(Te,Ve,ct,"↘","\\searrow",!0);pe(Te,Ve,ct,"↼","\\leftharpoonup",!0);pe(Te,Ve,ct,"⇀","\\rightharpoonup",!0);pe(Te,Ve,ct,"↙","\\swarrow",!0);pe(Te,Ve,ct,"↽","\\leftharpoondown",!0);pe(Te,Ve,ct,"⇁","\\rightharpoondown",!0);pe(Te,Ve,ct,"↖","\\nwarrow",!0);pe(Te,Ve,ct,"⇌","\\rightleftharpoons",!0);pe(Te,ot,ct,"≮","\\nless",!0);pe(Te,ot,ct,"","\\@nleqslant");pe(Te,ot,ct,"","\\@nleqq");pe(Te,ot,ct,"⪇","\\lneq",!0);pe(Te,ot,ct,"≨","\\lneqq",!0);pe(Te,ot,ct,"","\\@lvertneqq");pe(Te,ot,ct,"⋦","\\lnsim",!0);pe(Te,ot,ct,"⪉","\\lnapprox",!0);pe(Te,ot,ct,"⊀","\\nprec",!0);pe(Te,ot,ct,"⋠","\\npreceq",!0);pe(Te,ot,ct,"⋨","\\precnsim",!0);pe(Te,ot,ct,"⪹","\\precnapprox",!0);pe(Te,ot,ct,"≁","\\nsim",!0);pe(Te,ot,ct,"","\\@nshortmid");pe(Te,ot,ct,"∤","\\nmid",!0);pe(Te,ot,ct,"⊬","\\nvdash",!0);pe(Te,ot,ct,"⊭","\\nvDash",!0);pe(Te,ot,ct,"⋪","\\ntriangleleft");pe(Te,ot,ct,"⋬","\\ntrianglelefteq",!0);pe(Te,ot,ct,"⊊","\\subsetneq",!0);pe(Te,ot,ct,"","\\@varsubsetneq");pe(Te,ot,ct,"⫋","\\subsetneqq",!0);pe(Te,ot,ct,"","\\@varsubsetneqq");pe(Te,ot,ct,"≯","\\ngtr",!0);pe(Te,ot,ct,"","\\@ngeqslant");pe(Te,ot,ct,"","\\@ngeqq");pe(Te,ot,ct,"⪈","\\gneq",!0);pe(Te,ot,ct,"≩","\\gneqq",!0);pe(Te,ot,ct,"","\\@gvertneqq");pe(Te,ot,ct,"⋧","\\gnsim",!0);pe(Te,ot,ct,"⪊","\\gnapprox",!0);pe(Te,ot,ct,"⊁","\\nsucc",!0);pe(Te,ot,ct,"⋡","\\nsucceq",!0);pe(Te,ot,ct,"⋩","\\succnsim",!0);pe(Te,ot,ct,"⪺","\\succnapprox",!0);pe(Te,ot,ct,"≆","\\ncong",!0);pe(Te,ot,ct,"","\\@nshortparallel");pe(Te,ot,ct,"∦","\\nparallel",!0);pe(Te,ot,ct,"⊯","\\nVDash",!0);pe(Te,ot,ct,"⋫","\\ntriangleright");pe(Te,ot,ct,"⋭","\\ntrianglerighteq",!0);pe(Te,ot,ct,"","\\@nsupseteqq");pe(Te,ot,ct,"⊋","\\supsetneq",!0);pe(Te,ot,ct,"","\\@varsupsetneq");pe(Te,ot,ct,"⫌","\\supsetneqq",!0);pe(Te,ot,ct,"","\\@varsupsetneqq");pe(Te,ot,ct,"⊮","\\nVdash",!0);pe(Te,ot,ct,"⪵","\\precneqq",!0);pe(Te,ot,ct,"⪶","\\succneqq",!0);pe(Te,ot,ct,"","\\@nsubseteqq");pe(Te,ot,Lt,"⊴","\\unlhd");pe(Te,ot,Lt,"⊵","\\unrhd");pe(Te,ot,ct,"↚","\\nleftarrow",!0);pe(Te,ot,ct,"↛","\\nrightarrow",!0);pe(Te,ot,ct,"⇍","\\nLeftarrow",!0);pe(Te,ot,ct,"⇏","\\nRightarrow",!0);pe(Te,ot,ct,"↮","\\nleftrightarrow",!0);pe(Te,ot,ct,"⇎","\\nLeftrightarrow",!0);pe(Te,ot,ct,"△","\\vartriangle");pe(Te,ot,pt,"ℏ","\\hslash");pe(Te,ot,pt,"▽","\\triangledown");pe(Te,ot,pt,"◊","\\lozenge");pe(Te,ot,pt,"Ⓢ","\\circledS");pe(Te,ot,pt,"®","\\circledR");pe(kt,ot,pt,"®","\\circledR");pe(Te,ot,pt,"∡","\\measuredangle",!0);pe(Te,ot,pt,"∄","\\nexists");pe(Te,ot,pt,"℧","\\mho");pe(Te,ot,pt,"Ⅎ","\\Finv",!0);pe(Te,ot,pt,"⅁","\\Game",!0);pe(Te,ot,pt,"‵","\\backprime");pe(Te,ot,pt,"▲","\\blacktriangle");pe(Te,ot,pt,"▼","\\blacktriangledown");pe(Te,ot,pt,"■","\\blacksquare");pe(Te,ot,pt,"⧫","\\blacklozenge");pe(Te,ot,pt,"★","\\bigstar");pe(Te,ot,pt,"∢","\\sphericalangle",!0);pe(Te,ot,pt,"∁","\\complement",!0);pe(Te,ot,pt,"ð","\\eth",!0);pe(kt,Ve,pt,"ð","ð");pe(Te,ot,pt,"╱","\\diagup");pe(Te,ot,pt,"╲","\\diagdown");pe(Te,ot,pt,"□","\\square");pe(Te,ot,pt,"□","\\Box");pe(Te,ot,pt,"◊","\\Diamond");pe(Te,ot,pt,"¥","\\yen",!0);pe(kt,ot,pt,"¥","\\yen",!0);pe(Te,ot,pt,"✓","\\checkmark",!0);pe(kt,ot,pt,"✓","\\checkmark");pe(Te,ot,pt,"ℶ","\\beth",!0);pe(Te,ot,pt,"ℸ","\\daleth",!0);pe(Te,ot,pt,"ℷ","\\gimel",!0);pe(Te,ot,pt,"ϝ","\\digamma",!0);pe(Te,ot,pt,"ϰ","\\varkappa");pe(Te,ot,Mn,"┌","\\@ulcorner",!0);pe(Te,ot,dn,"┐","\\@urcorner",!0);pe(Te,ot,Mn,"└","\\@llcorner",!0);pe(Te,ot,dn,"┘","\\@lrcorner",!0);pe(Te,ot,ct,"≦","\\leqq",!0);pe(Te,ot,ct,"⩽","\\leqslant",!0);pe(Te,ot,ct,"⪕","\\eqslantless",!0);pe(Te,ot,ct,"≲","\\lesssim",!0);pe(Te,ot,ct,"⪅","\\lessapprox",!0);pe(Te,ot,ct,"≊","\\approxeq",!0);pe(Te,ot,Lt,"⋖","\\lessdot");pe(Te,ot,ct,"⋘","\\lll",!0);pe(Te,ot,ct,"≶","\\lessgtr",!0);pe(Te,ot,ct,"⋚","\\lesseqgtr",!0);pe(Te,ot,ct,"⪋","\\lesseqqgtr",!0);pe(Te,ot,ct,"≑","\\doteqdot");pe(Te,ot,ct,"≓","\\risingdotseq",!0);pe(Te,ot,ct,"≒","\\fallingdotseq",!0);pe(Te,ot,ct,"∽","\\backsim",!0);pe(Te,ot,ct,"⋍","\\backsimeq",!0);pe(Te,ot,ct,"⫅","\\subseteqq",!0);pe(Te,ot,ct,"⋐","\\Subset",!0);pe(Te,ot,ct,"⊏","\\sqsubset",!0);pe(Te,ot,ct,"≼","\\preccurlyeq",!0);pe(Te,ot,ct,"⋞","\\curlyeqprec",!0);pe(Te,ot,ct,"≾","\\precsim",!0);pe(Te,ot,ct,"⪷","\\precapprox",!0);pe(Te,ot,ct,"⊲","\\vartriangleleft");pe(Te,ot,ct,"⊴","\\trianglelefteq");pe(Te,ot,ct,"⊨","\\vDash",!0);pe(Te,ot,ct,"⊪","\\Vvdash",!0);pe(Te,ot,ct,"⌣","\\smallsmile");pe(Te,ot,ct,"⌢","\\smallfrown");pe(Te,ot,ct,"≏","\\bumpeq",!0);pe(Te,ot,ct,"≎","\\Bumpeq",!0);pe(Te,ot,ct,"≧","\\geqq",!0);pe(Te,ot,ct,"⩾","\\geqslant",!0);pe(Te,ot,ct,"⪖","\\eqslantgtr",!0);pe(Te,ot,ct,"≳","\\gtrsim",!0);pe(Te,ot,ct,"⪆","\\gtrapprox",!0);pe(Te,ot,Lt,"⋗","\\gtrdot");pe(Te,ot,ct,"⋙","\\ggg",!0);pe(Te,ot,ct,"≷","\\gtrless",!0);pe(Te,ot,ct,"⋛","\\gtreqless",!0);pe(Te,ot,ct,"⪌","\\gtreqqless",!0);pe(Te,ot,ct,"≖","\\eqcirc",!0);pe(Te,ot,ct,"≗","\\circeq",!0);pe(Te,ot,ct,"≜","\\triangleq",!0);pe(Te,ot,ct,"∼","\\thicksim");pe(Te,ot,ct,"≈","\\thickapprox");pe(Te,ot,ct,"⫆","\\supseteqq",!0);pe(Te,ot,ct,"⋑","\\Supset",!0);pe(Te,ot,ct,"⊐","\\sqsupset",!0);pe(Te,ot,ct,"≽","\\succcurlyeq",!0);pe(Te,ot,ct,"⋟","\\curlyeqsucc",!0);pe(Te,ot,ct,"≿","\\succsim",!0);pe(Te,ot,ct,"⪸","\\succapprox",!0);pe(Te,ot,ct,"⊳","\\vartriangleright");pe(Te,ot,ct,"⊵","\\trianglerighteq");pe(Te,ot,ct,"⊩","\\Vdash",!0);pe(Te,ot,ct,"∣","\\shortmid");pe(Te,ot,ct,"∥","\\shortparallel");pe(Te,ot,ct,"≬","\\between",!0);pe(Te,ot,ct,"⋔","\\pitchfork",!0);pe(Te,ot,ct,"∝","\\varpropto");pe(Te,ot,ct,"◀","\\blacktriangleleft");pe(Te,ot,ct,"∴","\\therefore",!0);pe(Te,ot,ct,"∍","\\backepsilon");pe(Te,ot,ct,"▶","\\blacktriangleright");pe(Te,ot,ct,"∵","\\because",!0);pe(Te,ot,ct,"⋘","\\llless");pe(Te,ot,ct,"⋙","\\gggtr");pe(Te,ot,Lt,"⊲","\\lhd");pe(Te,ot,Lt,"⊳","\\rhd");pe(Te,ot,ct,"≂","\\eqsim",!0);pe(Te,Ve,ct,"⋈","\\Join");pe(Te,ot,ct,"≑","\\Doteq",!0);pe(Te,ot,Lt,"∔","\\dotplus",!0);pe(Te,ot,Lt,"∖","\\smallsetminus");pe(Te,ot,Lt,"⋒","\\Cap",!0);pe(Te,ot,Lt,"⋓","\\Cup",!0);pe(Te,ot,Lt,"⩞","\\doublebarwedge",!0);pe(Te,ot,Lt,"⊟","\\boxminus",!0);pe(Te,ot,Lt,"⊞","\\boxplus",!0);pe(Te,ot,Lt,"⋇","\\divideontimes",!0);pe(Te,ot,Lt,"⋉","\\ltimes",!0);pe(Te,ot,Lt,"⋊","\\rtimes",!0);pe(Te,ot,Lt,"⋋","\\leftthreetimes",!0);pe(Te,ot,Lt,"⋌","\\rightthreetimes",!0);pe(Te,ot,Lt,"⋏","\\curlywedge",!0);pe(Te,ot,Lt,"⋎","\\curlyvee",!0);pe(Te,ot,Lt,"⊝","\\circleddash",!0);pe(Te,ot,Lt,"⊛","\\circledast",!0);pe(Te,ot,Lt,"⋅","\\centerdot");pe(Te,ot,Lt,"⊺","\\intercal",!0);pe(Te,ot,Lt,"⋒","\\doublecap");pe(Te,ot,Lt,"⋓","\\doublecup");pe(Te,ot,Lt,"⊠","\\boxtimes",!0);pe(Te,ot,ct,"⇢","\\dashrightarrow",!0);pe(Te,ot,ct,"⇠","\\dashleftarrow",!0);pe(Te,ot,ct,"⇇","\\leftleftarrows",!0);pe(Te,ot,ct,"⇆","\\leftrightarrows",!0);pe(Te,ot,ct,"⇚","\\Lleftarrow",!0);pe(Te,ot,ct,"↞","\\twoheadleftarrow",!0);pe(Te,ot,ct,"↢","\\leftarrowtail",!0);pe(Te,ot,ct,"↫","\\looparrowleft",!0);pe(Te,ot,ct,"⇋","\\leftrightharpoons",!0);pe(Te,ot,ct,"↶","\\curvearrowleft",!0);pe(Te,ot,ct,"↺","\\circlearrowleft",!0);pe(Te,ot,ct,"↰","\\Lsh",!0);pe(Te,ot,ct,"⇈","\\upuparrows",!0);pe(Te,ot,ct,"↿","\\upharpoonleft",!0);pe(Te,ot,ct,"⇃","\\downharpoonleft",!0);pe(Te,Ve,ct,"⊶","\\origof",!0);pe(Te,Ve,ct,"⊷","\\imageof",!0);pe(Te,ot,ct,"⊸","\\multimap",!0);pe(Te,ot,ct,"↭","\\leftrightsquigarrow",!0);pe(Te,ot,ct,"⇉","\\rightrightarrows",!0);pe(Te,ot,ct,"⇄","\\rightleftarrows",!0);pe(Te,ot,ct,"↠","\\twoheadrightarrow",!0);pe(Te,ot,ct,"↣","\\rightarrowtail",!0);pe(Te,ot,ct,"↬","\\looparrowright",!0);pe(Te,ot,ct,"↷","\\curvearrowright",!0);pe(Te,ot,ct,"↻","\\circlearrowright",!0);pe(Te,ot,ct,"↱","\\Rsh",!0);pe(Te,ot,ct,"⇊","\\downdownarrows",!0);pe(Te,ot,ct,"↾","\\upharpoonright",!0);pe(Te,ot,ct,"⇂","\\downharpoonright",!0);pe(Te,ot,ct,"⇝","\\rightsquigarrow",!0);pe(Te,ot,ct,"⇝","\\leadsto");pe(Te,ot,ct,"⇛","\\Rrightarrow",!0);pe(Te,ot,ct,"↾","\\restriction");pe(Te,Ve,pt,"‘","`");pe(Te,Ve,pt,"$","\\$");pe(kt,Ve,pt,"$","\\$");pe(kt,Ve,pt,"$","\\textdollar");pe(Te,Ve,pt,"%","\\%");pe(kt,Ve,pt,"%","\\%");pe(Te,Ve,pt,"_","\\_");pe(kt,Ve,pt,"_","\\_");pe(kt,Ve,pt,"_","\\textunderscore");pe(Te,Ve,pt,"∠","\\angle",!0);pe(Te,Ve,pt,"∞","\\infty",!0);pe(Te,Ve,pt,"′","\\prime");pe(Te,Ve,pt,"△","\\triangle");pe(Te,Ve,pt,"Γ","\\Gamma",!0);pe(Te,Ve,pt,"Δ","\\Delta",!0);pe(Te,Ve,pt,"Θ","\\Theta",!0);pe(Te,Ve,pt,"Λ","\\Lambda",!0);pe(Te,Ve,pt,"Ξ","\\Xi",!0);pe(Te,Ve,pt,"Π","\\Pi",!0);pe(Te,Ve,pt,"Σ","\\Sigma",!0);pe(Te,Ve,pt,"Υ","\\Upsilon",!0);pe(Te,Ve,pt,"Φ","\\Phi",!0);pe(Te,Ve,pt,"Ψ","\\Psi",!0);pe(Te,Ve,pt,"Ω","\\Omega",!0);pe(Te,Ve,pt,"A","Α");pe(Te,Ve,pt,"B","Β");pe(Te,Ve,pt,"E","Ε");pe(Te,Ve,pt,"Z","Ζ");pe(Te,Ve,pt,"H","Η");pe(Te,Ve,pt,"I","Ι");pe(Te,Ve,pt,"K","Κ");pe(Te,Ve,pt,"M","Μ");pe(Te,Ve,pt,"N","Ν");pe(Te,Ve,pt,"O","Ο");pe(Te,Ve,pt,"P","Ρ");pe(Te,Ve,pt,"T","Τ");pe(Te,Ve,pt,"X","Χ");pe(Te,Ve,pt,"¬","\\neg",!0);pe(Te,Ve,pt,"¬","\\lnot");pe(Te,Ve,pt,"⊤","\\top");pe(Te,Ve,pt,"⊥","\\bot");pe(Te,Ve,pt,"∅","\\emptyset");pe(Te,ot,pt,"∅","\\varnothing");pe(Te,Ve,jt,"α","\\alpha",!0);pe(Te,Ve,jt,"β","\\beta",!0);pe(Te,Ve,jt,"γ","\\gamma",!0);pe(Te,Ve,jt,"δ","\\delta",!0);pe(Te,Ve,jt,"ϵ","\\epsilon",!0);pe(Te,Ve,jt,"ζ","\\zeta",!0);pe(Te,Ve,jt,"η","\\eta",!0);pe(Te,Ve,jt,"θ","\\theta",!0);pe(Te,Ve,jt,"ι","\\iota",!0);pe(Te,Ve,jt,"κ","\\kappa",!0);pe(Te,Ve,jt,"λ","\\lambda",!0);pe(Te,Ve,jt,"μ","\\mu",!0);pe(Te,Ve,jt,"ν","\\nu",!0);pe(Te,Ve,jt,"ξ","\\xi",!0);pe(Te,Ve,jt,"ο","\\omicron",!0);pe(Te,Ve,jt,"π","\\pi",!0);pe(Te,Ve,jt,"ρ","\\rho",!0);pe(Te,Ve,jt,"σ","\\sigma",!0);pe(Te,Ve,jt,"τ","\\tau",!0);pe(Te,Ve,jt,"υ","\\upsilon",!0);pe(Te,Ve,jt,"ϕ","\\phi",!0);pe(Te,Ve,jt,"χ","\\chi",!0);pe(Te,Ve,jt,"ψ","\\psi",!0);pe(Te,Ve,jt,"ω","\\omega",!0);pe(Te,Ve,jt,"ε","\\varepsilon",!0);pe(Te,Ve,jt,"ϑ","\\vartheta",!0);pe(Te,Ve,jt,"ϖ","\\varpi",!0);pe(Te,Ve,jt,"ϱ","\\varrho",!0);pe(Te,Ve,jt,"ς","\\varsigma",!0);pe(Te,Ve,jt,"φ","\\varphi",!0);pe(Te,Ve,Lt,"∗","*",!0);pe(Te,Ve,Lt,"+","+");pe(Te,Ve,Lt,"−","-",!0);pe(Te,Ve,Lt,"⋅","\\cdot",!0);pe(Te,Ve,Lt,"∘","\\circ",!0);pe(Te,Ve,Lt,"÷","\\div",!0);pe(Te,Ve,Lt,"±","\\pm",!0);pe(Te,Ve,Lt,"×","\\times",!0);pe(Te,Ve,Lt,"∩","\\cap",!0);pe(Te,Ve,Lt,"∪","\\cup",!0);pe(Te,Ve,Lt,"∖","\\setminus",!0);pe(Te,Ve,Lt,"∧","\\land");pe(Te,Ve,Lt,"∨","\\lor");pe(Te,Ve,Lt,"∧","\\wedge",!0);pe(Te,Ve,Lt,"∨","\\vee",!0);pe(Te,Ve,pt,"√","\\surd");pe(Te,Ve,Mn,"⟨","\\langle",!0);pe(Te,Ve,Mn,"∣","\\lvert");pe(Te,Ve,Mn,"∥","\\lVert");pe(Te,Ve,dn,"?","?");pe(Te,Ve,dn,"!","!");pe(Te,Ve,dn,"⟩","\\rangle",!0);pe(Te,Ve,dn,"∣","\\rvert");pe(Te,Ve,dn,"∥","\\rVert");pe(Te,Ve,ct,"=","=");pe(Te,Ve,ct,":",":");pe(Te,Ve,ct,"≈","\\approx",!0);pe(Te,Ve,ct,"≅","\\cong",!0);pe(Te,Ve,ct,"≥","\\ge");pe(Te,Ve,ct,"≥","\\geq",!0);pe(Te,Ve,ct,"←","\\gets");pe(Te,Ve,ct,">","\\gt",!0);pe(Te,Ve,ct,"∈","\\in",!0);pe(Te,Ve,ct,"","\\@not");pe(Te,Ve,ct,"⊂","\\subset",!0);pe(Te,Ve,ct,"⊃","\\supset",!0);pe(Te,Ve,ct,"⊆","\\subseteq",!0);pe(Te,Ve,ct,"⊇","\\supseteq",!0);pe(Te,ot,ct,"⊈","\\nsubseteq",!0);pe(Te,ot,ct,"⊉","\\nsupseteq",!0);pe(Te,Ve,ct,"⊨","\\models");pe(Te,Ve,ct,"←","\\leftarrow",!0);pe(Te,Ve,ct,"≤","\\le");pe(Te,Ve,ct,"≤","\\leq",!0);pe(Te,Ve,ct,"<","\\lt",!0);pe(Te,Ve,ct,"→","\\rightarrow",!0);pe(Te,Ve,ct,"→","\\to");pe(Te,ot,ct,"≱","\\ngeq",!0);pe(Te,ot,ct,"≰","\\nleq",!0);pe(Te,Ve,Mi," ","\\ ");pe(Te,Ve,Mi," ","\\space");pe(Te,Ve,Mi," ","\\nobreakspace");pe(kt,Ve,Mi," ","\\ ");pe(kt,Ve,Mi," "," ");pe(kt,Ve,Mi," ","\\space");pe(kt,Ve,Mi," ","\\nobreakspace");pe(Te,Ve,Mi,"","\\nobreak");pe(Te,Ve,Mi,"","\\allowbreak");pe(Te,Ve,to,",",",");pe(Te,Ve,to,";",";");pe(Te,ot,Lt,"⊼","\\barwedge",!0);pe(Te,ot,Lt,"⊻","\\veebar",!0);pe(Te,Ve,Lt,"⊙","\\odot",!0);pe(Te,Ve,Lt,"⊕","\\oplus",!0);pe(Te,Ve,Lt,"⊗","\\otimes",!0);pe(Te,Ve,pt,"∂","\\partial",!0);pe(Te,Ve,Lt,"⊘","\\oslash",!0);pe(Te,ot,Lt,"⊚","\\circledcirc",!0);pe(Te,ot,Lt,"⊡","\\boxdot",!0);pe(Te,Ve,Lt,"△","\\bigtriangleup");pe(Te,Ve,Lt,"▽","\\bigtriangledown");pe(Te,Ve,Lt,"†","\\dagger");pe(Te,Ve,Lt,"⋄","\\diamond");pe(Te,Ve,Lt,"⋆","\\star");pe(Te,Ve,Lt,"◃","\\triangleleft");pe(Te,Ve,Lt,"▹","\\triangleright");pe(Te,Ve,Mn,"{","\\{");pe(kt,Ve,pt,"{","\\{");pe(kt,Ve,pt,"{","\\textbraceleft");pe(Te,Ve,dn,"}","\\}");pe(kt,Ve,pt,"}","\\}");pe(kt,Ve,pt,"}","\\textbraceright");pe(Te,Ve,Mn,"{","\\lbrace");pe(Te,Ve,dn,"}","\\rbrace");pe(Te,Ve,Mn,"[","\\lbrack",!0);pe(kt,Ve,pt,"[","\\lbrack",!0);pe(Te,Ve,dn,"]","\\rbrack",!0);pe(kt,Ve,pt,"]","\\rbrack",!0);pe(Te,Ve,Mn,"(","\\lparen",!0);pe(Te,Ve,dn,")","\\rparen",!0);pe(kt,Ve,pt,"<","\\textless",!0);pe(kt,Ve,pt,">","\\textgreater",!0);pe(Te,Ve,Mn,"⌊","\\lfloor",!0);pe(Te,Ve,dn,"⌋","\\rfloor",!0);pe(Te,Ve,Mn,"⌈","\\lceil",!0);pe(Te,Ve,dn,"⌉","\\rceil",!0);pe(Te,Ve,pt,"\\","\\backslash");pe(Te,Ve,pt,"∣","|");pe(Te,Ve,pt,"∣","\\vert");pe(kt,Ve,pt,"|","\\textbar",!0);pe(Te,Ve,pt,"∥","\\|");pe(Te,Ve,pt,"∥","\\Vert");pe(kt,Ve,pt,"∥","\\textbardbl");pe(kt,Ve,pt,"~","\\textasciitilde");pe(kt,Ve,pt,"\\","\\textbackslash");pe(kt,Ve,pt,"^","\\textasciicircum");pe(Te,Ve,ct,"↑","\\uparrow",!0);pe(Te,Ve,ct,"⇑","\\Uparrow",!0);pe(Te,Ve,ct,"↓","\\downarrow",!0);pe(Te,Ve,ct,"⇓","\\Downarrow",!0);pe(Te,Ve,ct,"↕","\\updownarrow",!0);pe(Te,Ve,ct,"⇕","\\Updownarrow",!0);pe(Te,Ve,Ir,"∐","\\coprod");pe(Te,Ve,Ir,"⋁","\\bigvee");pe(Te,Ve,Ir,"⋀","\\bigwedge");pe(Te,Ve,Ir,"⨄","\\biguplus");pe(Te,Ve,Ir,"⋂","\\bigcap");pe(Te,Ve,Ir,"⋃","\\bigcup");pe(Te,Ve,Ir,"∫","\\int");pe(Te,Ve,Ir,"∫","\\intop");pe(Te,Ve,Ir,"∬","\\iint");pe(Te,Ve,Ir,"∭","\\iiint");pe(Te,Ve,Ir,"∏","\\prod");pe(Te,Ve,Ir,"∑","\\sum");pe(Te,Ve,Ir,"⨂","\\bigotimes");pe(Te,Ve,Ir,"⨁","\\bigoplus");pe(Te,Ve,Ir,"⨀","\\bigodot");pe(Te,Ve,Ir,"∮","\\oint");pe(Te,Ve,Ir,"∯","\\oiint");pe(Te,Ve,Ir,"∰","\\oiiint");pe(Te,Ve,Ir,"⨆","\\bigsqcup");pe(Te,Ve,Ir,"∫","\\smallint");pe(kt,Ve,Pa,"…","\\textellipsis");pe(Te,Ve,Pa,"…","\\mathellipsis");pe(kt,Ve,Pa,"…","\\ldots",!0);pe(Te,Ve,Pa,"…","\\ldots",!0);pe(Te,Ve,Pa,"⋯","\\@cdots",!0);pe(Te,Ve,Pa,"⋱","\\ddots",!0);pe(Te,Ve,pt,"⋮","\\varvdots");pe(kt,Ve,pt,"⋮","\\varvdots");pe(Te,Ve,_r,"ˊ","\\acute");pe(Te,Ve,_r,"ˋ","\\grave");pe(Te,Ve,_r,"¨","\\ddot");pe(Te,Ve,_r,"~","\\tilde");pe(Te,Ve,_r,"ˉ","\\bar");pe(Te,Ve,_r,"˘","\\breve");pe(Te,Ve,_r,"ˇ","\\check");pe(Te,Ve,_r,"^","\\hat");pe(Te,Ve,_r,"⃗","\\vec");pe(Te,Ve,_r,"˙","\\dot");pe(Te,Ve,_r,"˚","\\mathring");pe(Te,Ve,jt,"","\\@imath");pe(Te,Ve,jt,"","\\@jmath");pe(Te,Ve,pt,"ı","ı");pe(Te,Ve,pt,"ȷ","ȷ");pe(kt,Ve,pt,"ı","\\i",!0);pe(kt,Ve,pt,"ȷ","\\j",!0);pe(kt,Ve,pt,"ß","\\ss",!0);pe(kt,Ve,pt,"æ","\\ae",!0);pe(kt,Ve,pt,"œ","\\oe",!0);pe(kt,Ve,pt,"ø","\\o",!0);pe(kt,Ve,pt,"Æ","\\AE",!0);pe(kt,Ve,pt,"Œ","\\OE",!0);pe(kt,Ve,pt,"Ø","\\O",!0);pe(kt,Ve,_r,"ˊ","\\'");pe(kt,Ve,_r,"ˋ","\\`");pe(kt,Ve,_r,"ˆ","\\^");pe(kt,Ve,_r,"˜","\\~");pe(kt,Ve,_r,"ˉ","\\=");pe(kt,Ve,_r,"˘","\\u");pe(kt,Ve,_r,"˙","\\.");pe(kt,Ve,_r,"¸","\\c");pe(kt,Ve,_r,"˚","\\r");pe(kt,Ve,_r,"ˇ","\\v");pe(kt,Ve,_r,"¨",'\\"');pe(kt,Ve,_r,"˝","\\H");pe(kt,Ve,_r,"◯","\\textcircled");var bg={"--":!0,"---":!0,"``":!0,"''":!0};pe(kt,Ve,pt,"–","--",!0);pe(kt,Ve,pt,"–","\\textendash");pe(kt,Ve,pt,"—","---",!0);pe(kt,Ve,pt,"—","\\textemdash");pe(kt,Ve,pt,"‘","`",!0);pe(kt,Ve,pt,"‘","\\textquoteleft");pe(kt,Ve,pt,"’","'",!0);pe(kt,Ve,pt,"’","\\textquoteright");pe(kt,Ve,pt,"“","``",!0);pe(kt,Ve,pt,"“","\\textquotedblleft");pe(kt,Ve,pt,"”","''",!0);pe(kt,Ve,pt,"”","\\textquotedblright");pe(Te,Ve,pt,"°","\\degree",!0);pe(kt,Ve,pt,"°","\\degree");pe(kt,Ve,pt,"°","\\textdegree",!0);pe(Te,Ve,pt,"£","\\pounds");pe(Te,Ve,pt,"£","\\mathsterling",!0);pe(kt,Ve,pt,"£","\\pounds");pe(kt,Ve,pt,"£","\\textsterling",!0);pe(Te,ot,pt,"✠","\\maltese");pe(kt,ot,pt,"✠","\\maltese");var pp='0123456789/@."';for(var Qc=0;Qc<pp.length;Qc++){var _p=pp.charAt(Qc);pe(Te,Ve,pt,_p,_p)}var mp='0123456789!@*()-=+";:?/.,';for(var Zc=0;Zc<mp.length;Zc++){var gp=mp.charAt(Zc);pe(kt,Ve,pt,gp,gp)}var ku="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Jc=0;Jc<ku.length;Jc++){var So=ku.charAt(Jc);pe(Te,Ve,jt,So,So),pe(kt,Ve,pt,So,So)}pe(Te,ot,pt,"C","ℂ");pe(kt,ot,pt,"C","ℂ");pe(Te,ot,pt,"H","ℍ");pe(kt,ot,pt,"H","ℍ");pe(Te,ot,pt,"N","ℕ");pe(kt,ot,pt,"N","ℕ");pe(Te,ot,pt,"P","ℙ");pe(kt,ot,pt,"P","ℙ");pe(Te,ot,pt,"Q","ℚ");pe(kt,ot,pt,"Q","ℚ");pe(Te,ot,pt,"R","ℝ");pe(kt,ot,pt,"R","ℝ");pe(Te,ot,pt,"Z","ℤ");pe(kt,ot,pt,"Z","ℤ");pe(Te,Ve,jt,"h","ℎ");pe(kt,Ve,jt,"h","ℎ");var Vt;for(var nn=0;nn<ku.length;nn++){var xr=ku.charAt(nn);Vt=String.fromCharCode(55349,56320+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56372+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56424+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56580+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56684+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56736+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56788+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56840+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56944+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),nn<26&&(Vt=String.fromCharCode(55349,56632+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56476+nn),pe(Te,Ve,jt,xr,Vt),pe(kt,Ve,pt,xr,Vt))}Vt="𝕜";pe(Te,Ve,jt,"k",Vt);pe(kt,Ve,pt,"k",Vt);for(var vs=0;vs<10;vs++){var ji=vs.toString();Vt=String.fromCharCode(55349,57294+vs),pe(Te,Ve,jt,ji,Vt),pe(kt,Ve,pt,ji,Vt),Vt=String.fromCharCode(55349,57314+vs),pe(Te,Ve,jt,ji,Vt),pe(kt,Ve,pt,ji,Vt),Vt=String.fromCharCode(55349,57324+vs),pe(Te,Ve,jt,ji,Vt),pe(kt,Ve,pt,ji,Vt),Vt=String.fromCharCode(55349,57334+vs),pe(Te,Ve,jt,ji,Vt),pe(kt,Ve,pt,ji,Vt)}var Tf="ÐÞþ";for(var Oc=0;Oc<Tf.length;Oc++){var Ao=Tf.charAt(Oc);pe(Te,Ve,jt,Ao,Ao),pe(kt,Ve,pt,Ao,Ao)}var zf={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},vp={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},yp={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},e5={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},ks={mathClass:"",textClass:"",font:""},bp={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},xp={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},wp={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Rf={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Nf={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},kp={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},If={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Sp=[zf,zf,vp,vp,yp,yp,e5,ks,ks,ks,bp,bp,xp,xp,wp,wp,Rf,Rf,Nf,Nf,kp,kp,ks,ks,If,If],t5=[zf,ks,Rf,Nf,If],r5=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 Sp[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return t5[s]}else{if(n===120485||n===120486)return Sp[0];if(120486<n&&n<120782)return ks;throw new Nt("Unsupported character: "+e)}},ac=function(t,r,n){if(pr[n][t]){var i=pr[n][t].replace;i&&(t=i)}return{value:t,metrics:gd(t,r,n)}},an=function(t,r,n,i,s){var c=ac(t,r,n),f=c.metrics;t=c.value;var p;if(f){var h=f.italic;(n==="text"||i&&i.font==="mathit")&&(h=0),p=new Rn(t,f.height,f.depth,h,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),p=new Rn(t,0,0,0,0,0,s);if(i){p.maxFontSize=i.sizeMultiplier,i.style.isTight()&&p.classes.push("mtight");var z=i.getColor();z&&(p.style.color=z)}return p},vd=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&ac(t,"Main-Bold",r).metrics?an(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||pr[r][t].font==="main"?an(t,"Main-Regular",r,n,i):an(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},n5=function(t,r,n){return n!=="textord"&&ac(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},lc=function(t,r,n){var i=t.mode,s=t.text,c=["mord"],{font:f,fontFamily:p,fontWeight:h,fontShape:z}=r,D=i==="math"||i==="text"&&!!f,j=D?f:p,he="",be="";if(s.charCodeAt(0)===55349){var ee=r5(s);he=ee.font,be=ee[i+"Class"]}if(he)return an(s,he,i,r,c.concat(be));if(j){var Y,X;if(j==="boldsymbol"){var ge=n5(s,i,n);Y=ge.fontName,X=[ge.fontClass]}else D?(Y=qf[f].fontName,X=[f]):(Y=Eo(p,h,z),X=[p,h,z]);if(ac(s,Y,i).metrics)return an(s,Y,i,r,c.concat(X));if(bg.hasOwnProperty(s)&&Y.slice(0,10)==="Typewriter"){for(var se=[],me=0;me<s.length;me++)se.push(an(s[me],Y,i,r,c.concat(X)));return Di(se)}}if(n==="mathord")return an(s,"Math-Italic",i,r,c.concat(["mathnormal"]));if(n==="textord"){var Z=pr[i][s]&&pr[i][s].font;if(Z==="ams"){var xe=Eo("amsrm",h,z);return an(s,xe,i,r,c.concat("amsrm",h,z))}else if(Z==="main"||!Z){var fe=Eo("textrm",h,z);return an(s,fe,i,r,c.concat(h,z))}else{var Ae=Eo(Z,h,z);return an(s,Ae,i,r,c.concat(Ae,h,z))}}else throw new Error("unexpected type: "+n+" in makeOrd")},i5=(e,t)=>{if(ls(e.classes)!==ls(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},xg=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Rn&&n instanceof Rn&&i5(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},yd=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>i&&(i=c.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Et=function(t,r,n,i){var s=new ja(t,r,n,i);return yd(s),s},us=(e,t,r,n)=>new ja(e,t,r,n),Ca=function(t,r,n){var i=Et([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=qt(i.height),i.maxFontSize=1,i},s5=function(t,r,n,i){var s=new sc(t,r,n,i);return yd(s),s},Di=function(t){var r=new Ba(t);return yd(r),r},Ta=function(t,r){return t instanceof Ba?Et([],[t],r):t},a5=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,c=1;c<r.length;c++){var f=-r[c].shift-s-r[c].elem.depth,p=f-(r[c-1].elem.height+r[c-1].elem.depth);s=s+f,n.push({type:"kern",size:p}),n.push(r[c])}return{children:n,depth:i}}var h;if(t.positionType==="top"){for(var z=t.positionData,D=0;D<t.children.length;D++){var j=t.children[D];z-=j.type==="kern"?j.size:j.elem.height+j.elem.depth}h=z}else if(t.positionType==="bottom")h=-t.positionData;else{var he=t.children[0];if(he.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-he.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-he.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},ir=function(t,r){for(var{children:n,depth:i}=a5(t),s=0,c=0;c<n.length;c++){var f=n[c];if(f.type==="elem"){var p=f.elem;s=Math.max(s,p.maxFontSize,p.height)}}s+=2;var h=Et(["pstrut"],[]);h.style.height=qt(s);for(var z=[],D=i,j=i,he=i,be=0;be<n.length;be++){var ee=n[be];if(ee.type==="kern")he+=ee.size;else{var Y=ee.elem,X=ee.wrapperClasses||[],ge=ee.wrapperStyle||{},se=Et(X,[h,Y],void 0,ge);se.style.top=qt(-s-he-Y.depth),ee.marginLeft&&(se.style.marginLeft=ee.marginLeft),ee.marginRight&&(se.style.marginRight=ee.marginRight),z.push(se),he+=Y.height+Y.depth}D=Math.min(D,he),j=Math.max(j,he)}var me=Et(["vlist"],z);me.style.height=qt(j);var Z;if(D<0){var xe=Et([],[]),fe=Et(["vlist"],[xe]);fe.style.height=qt(-D);var Ae=Et(["vlist-s"],[new Rn("")]);Z=[Et(["vlist-r"],[me,Ae]),Et(["vlist-r"],[fe])]}else Z=[Et(["vlist-r"],[me])];var J=Et(["vlist-t"],Z);return Z.length===2&&J.classes.push("vlist-t2"),J.height=j,J.depth=-D,J},wg=(e,t)=>{var r=Et(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=qt(n),r},Eo=(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},qf={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"}},kg={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Sg=function(t,r){var[n,i,s]=kg[t],c=new os(n),f=new Ri([c],{width:qt(i),height:qt(s),style:"width:"+qt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),p=us(["overlay"],[f],r);return p.height=s,p.style.height=qt(s),p.style.width=qt(i),p},mr={number:3,unit:"mu"},ys={number:4,unit:"mu"},mi={number:5,unit:"mu"},l5={mord:{mop:mr,mbin:ys,mrel:mi,minner:mr},mop:{mord:mr,mop:mr,mrel:mi,minner:mr},mbin:{mord:ys,mop:ys,mopen:ys,minner:ys},mrel:{mord:mi,mop:mi,mopen:mi,minner:mi},mopen:{},mclose:{mop:mr,mbin:ys,mrel:mi,minner:mr},mpunct:{mord:mr,mop:mr,mrel:mi,mopen:mr,mclose:mr,mpunct:mr,minner:mr},minner:{mord:mr,mop:mr,mbin:ys,mrel:mi,mopen:mr,mpunct:mr,minner:mr}},o5={mord:{mop:mr},mop:{mord:mr,mop:mr},mbin:{},mrel:{},mopen:{},mclose:{mop:mr},mpunct:{},minner:{mop:mr}},Ag={},Su={},Au={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},p=0;p<r.length;++p)Ag[r[p]]=f;t&&(s&&(Su[t]=s),c&&(Au[t]=c))}function Us(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 Eu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Rr=function(t){return t.type==="ordgroup"?t.body:[t]},u5=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),c5=new Set(["rightmost","mrel","mclose","mpunct"]),$5={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},f5={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Lr=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],c=0;c<t.length;c++){var f=sr(t[c],r);if(f instanceof Ba){var p=f.children;s.push(...p)}else s.push(f)}if(xg(s),!n)return s;var h=r;if(t.length===1){var z=t[0];z.type==="sizing"?h=r.havingSize(z.size):z.type==="styling"&&(h=r.havingStyle($5[z.style]))}var D=Et([i[0]||"leftmost"],[],r),j=Et([i[1]||"rightmost"],[],r),he=n==="root";return Mf(s,(be,ee)=>{var Y=ee.classes[0],X=be.classes[0];Y==="mbin"&&c5.has(X)?ee.classes[0]="mord":X==="mbin"&&u5.has(Y)&&(be.classes[0]="mord")},{node:D},j,he),Mf(s,(be,ee)=>{var Y,X,ge=Lf(ee),se=Lf(be),me=ge&&se?be.hasClass("mtight")?(Y=o5[ge])==null?void 0:Y[se]:(X=l5[ge])==null?void 0:X[se]:null;if(me)return wg(me,h)},{node:D},j,he),s},Mf=function(t,r,n,i,s){i&&t.push(i);for(var c=0;c<t.length;c++){var f=t[c],p=Eg(f);if(p){Mf(p.children,r,n,null,s);continue}var h=!f.hasClass("mspace");if(h){var z=r(f,n.node);z&&(n.insertAfter?n.insertAfter(z):(t.unshift(z),c++))}h?n.node=f:s&&f.hasClass("newline")&&(n.node=Et(["leftmost"])),n.insertAfter=(D=>j=>{t.splice(D+1,0,j),c++})(c)}i&&t.pop()},Eg=function(t){return t instanceof Ba||t instanceof sc||t instanceof ja&&t.hasClass("enclosing")?t:null},Df=function(t,r){var n=Eg(t);if(n){var i=n.children;if(i.length){if(r==="right")return Df(i[i.length-1],"right");if(r==="left")return Df(i[0],"left")}}return t},Lf=function(t,r){if(!t)return null;r&&(t=Df(t,r));var n=t.classes[0];return f5[n]||null},Yl=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Et(r.concat(n))},sr=function(t,r,n){if(!t)return Et();if(Su[t.type]){var i=Su[t.type](t,r);if(n&&r.size!==n.size){i=Et(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new Nt("Got group of unknown type: '"+t.type+"'")};function Co(e,t){var r=Et(["base"],e,t),n=Et(["strut"]);return n.style.height=qt(r.height+r.depth),r.depth&&(n.style.verticalAlign=qt(-r.depth)),r.children.unshift(n),r}function Ff(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Lr(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],c=[],f=0;f<n.length;f++)if(c.push(n[f]),n[f].hasClass("mbin")||n[f].hasClass("mrel")||n[f].hasClass("allowbreak")){for(var p=!1;f<n.length-1&&n[f+1].hasClass("mspace")&&!n[f+1].hasClass("newline");)f++,c.push(n[f]),n[f].hasClass("nobreak")&&(p=!0);p||(s.push(Co(c,t)),c=[])}else n[f].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(Co(c,t)),c=[]),s.push(n[f]));c.length>0&&s.push(Co(c,t));var h;r?(h=Co(Lr(r,t,!0),t),h.classes=["tag"],s.push(h)):i&&s.push(i);var z=Et(["katex-html"],s);if(z.setAttribute("aria-hidden","true"),h){var D=h.children[0];D.style.height=qt(z.height+z.depth),z.depth&&(D.style.verticalAlign=qt(-z.depth))}return z}function Cg(e){return new Ba(e)}class It{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=ls(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+=Or(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Or(ls(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 Or(this.toText())}toText(){return this.text}}class Tg{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",qt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+qt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var d5=new Set(["\\imath","\\jmath"]),h5=new Set(["mrow","mtable"]),Yn=function(t,r,n){return pr[r][t]&&pr[r][t].replace&&t.charCodeAt(0)!==55349&&!(bg.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)},bd=function(t){return t.length===1?t[0]:new It("mrow",t)},p5={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"},xd=(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=p5[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(d5.has(s))return null;if(pr[n][s]){var c=pr[n][s].replace;c&&(s=c)}var f=qf[r].fontName;return gd(s,f,n)?qf[r].variant:null};function e$(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 Dn=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof It&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],c,f=0;f<t.length;f++){var p=or(t[f],r);if(p instanceof It&&c instanceof It){if(p.type==="mtext"&&c.type==="mtext"&&p.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...p.children);continue}else if(p.type==="mn"&&c.type==="mn"){c.children.push(...p.children);continue}else if(e$(p)&&c.type==="mn"){c.children.push(...p.children);continue}else if(p.type==="mn"&&e$(c))p.children=[...c.children,...p.children],s.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(c.type==="mn"||e$(c))){var h=p.children[0];h instanceof It&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var z=c.children[0];if(z instanceof Nr&&z.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var D=p.children[0];D instanceof Nr&&D.text.length>0&&(D.text=D.text.slice(0,1)+"̸"+D.text.slice(1),s.pop())}}}s.push(p),c=p}return s},cs=function(t,r,n){return bd(Dn(t,r,n))},or=function(t,r){if(!t)return new It("mrow");if(Au[t.type])return Au[t.type](t,r);throw new Nt("Got group of unknown type: '"+t.type+"'")};function Ap(e,t,r,n,i){var s=Dn(e,r),c;s.length===1&&s[0]instanceof It&&h5.has(s[0].type)?c=s[0]:c=new It("mrow",s);var f=new It("annotation",[new Nr(t)]);f.setAttribute("encoding","application/x-tex");var p=new It("semantics",[c,f]),h=new It("math",[p]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var z=i?"katex":"katex-mathml";return Et([z],[h])}var _5=[[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]],Ep=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Cp=function(t,r){return r.size<2?t:_5[t-1][r.size-1]};class bi{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||bi.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=Ep[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 bi(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Cp(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:Ep[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Cp(bi.BASESIZE,t);return this.size===r&&this.textSize===bi.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!==bi.BASESIZE?["sizing","reset-size"+this.size,"size"+bi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=O3(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}bi.BASESIZE=6;var zg=function(t){return new bi({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Rg=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Et(n,[t])}return t},m5=function(t,r,n){var i=zg(n),s;if(n.output==="mathml")return Ap(t,r,i,n.displayMode,!0);if(n.output==="html"){var c=Ff(t,i);s=Et(["katex"],[c])}else{var f=Ap(t,r,i,n.displayMode,!1),p=Ff(t,i);s=Et(["katex"],[f,p])}return Rg(s,n)},g5=function(t,r,n){var i=zg(n),s=Ff(t,i),c=Et(["katex"],[s]);return Rg(c,n)},v5={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":"="},oc=function(t){var r=new It("mo",[new Nr(v5[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},y5={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]},b5=new Set(["widehat","widecheck","widetilde","utilde"]),uc=function(t,r){function n(){var f=4e5,p=t.label.slice(1);if(b5.has(p)&&"base"in t){var h=t.base.type==="ordgroup"?t.base.body.length:1,z,D,j;if(h>5)p==="widehat"||p==="widecheck"?(z=420,f=2364,j=.42,D=p+"4"):(z=312,f=2340,j=.34,D="tilde4");else{var he=[1,1,2,2,3,3][h];p==="widehat"||p==="widecheck"?(f=[0,1062,2364,2364,2364][he],z=[0,239,300,360,420][he],j=[0,.24,.3,.3,.36,.42][he],D=p+he):(f=[0,600,1033,2339,2340][he],z=[0,260,286,306,312][he],j=[0,.26,.286,.3,.306,.34][he],D="tilde"+he)}var be=new os(D),ee=new Ri([be],{width:"100%",height:qt(j),viewBox:"0 0 "+f+" "+z,preserveAspectRatio:"none"});return{span:us([],[ee],r),minWidth:0,height:j}}else{var Y=[],X=y5[p];if(!X)throw new Error('No SVG data for "'+p+'".');var[ge,se,me]=X,Z=me/1e3,xe=ge.length,fe,Ae;if(xe===1){if(X.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+p+'".');fe=["hide-tail"],Ae=[X[3]]}else if(xe===2)fe=["halfarrow-left","halfarrow-right"],Ae=["xMinYMin","xMaxYMin"];else if(xe===3)fe=["brace-left","brace-center","brace-right"],Ae=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
380
|
-
`+xe+" children.");for(var J=0;J<xe;J++){var Ee=new os(ge[J]),ce=new Ri([Ee],{width:"400em",height:qt(Z),viewBox:"0 0 "+f+" "+me,preserveAspectRatio:Ae[J]+" slice"}),w=us([fe[J]],[ce],r);if(xe===1)return{span:w,minWidth:se,height:Z};w.style.height=qt(Z),Y.push(w)}return{span:Et(["stretchy"],Y,r),minWidth:se,height:Z}}}var{span:i,minWidth:s,height:c}=n();return i.height=c,i.style.height=qt(c),s>0&&(i.style.minWidth=qt(s)),i},x5=function(t,r,n,i,s){var c,f=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(c=Et(["stretchy",r],[],s),r==="fbox"){var p=s.color&&s.getColor();p&&(c.style.borderColor=p)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new Cf({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new Cf({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var z=new Ri(h,{width:"100%",height:qt(f)});c=us([],[z],s)}return c.height=f,c.style.height=qt(f),c},w5={bin:1,close:1,inner:1,open:1,punct:1,rel:1},k5={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function S5(e){return e in w5}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 cc(e){var t=$c(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 $c(e){return e&&(e.type==="atom"||k5.hasOwnProperty(e.type))?e:null}var Ng=e=>{if(e instanceof Rn)return e;if(Z3(e)&&e.children.length===1)return Ng(e.children[0])},wd=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=Q3(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),c=n.isShifty&&qi(r),f=0;if(c){var p,h;f=(p=(h=Ng(s))==null?void 0:h.skew)!=null?p:0}var z=n.label==="\\c",D=z?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),j;if(n.isStretchy)j=uc(n,t),j=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:j,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+qt(2*f)+")",marginLeft:qt(2*f)}:void 0}]});else{var he,be;n.label==="\\vec"?(he=Sg("vec",t),be=kg.vec[1]):(he=lc({mode:n.mode,text:n.label},t,"textord"),he=X3(he),he.italic=0,be=he.width,z&&(D+=he.depth)),j=Et(["accent-body"],[he]);var ee=n.label==="\\textcircled";ee&&(j.classes.push("accent-full"),D=s.height);var Y=f;ee||(Y-=be/2),j.style.left=qt(Y),n.label==="\\textcircled"&&(j.style.top=".2em"),j=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-D},{type:"elem",elem:j}]})}var X=Et(["mord","accent"],[j],t);return i?(i.children[0]=X,i.height=Math.max(X.height,i.height),i.classes[0]="mord",i):X},Ig=(e,t)=>{var r=e.isStretchy?oc(e.label):new It("mo",[Yn(e.label,e.mode)]),n=new It("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},A5=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=Eu(t[0]),n=!A5.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:wd,mathmlBuilder:Ig});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:wd,mathmlBuilder:Ig});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=uc(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 Et(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=oc(e.label),n=new It("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var To=e=>{var t=new It("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=Ta(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var c;e.below&&(n=t.havingStyle(r.sub()),c=Ta(sr(e.below,n,t),t),c.classes.push(s+"-arrow-pad"));var f=uc(e,t),p=-t.fontMetrics().axisHeight+.5*f.height,h=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var z;if(c){var D=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;z=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:c,shift:D}]})}else z=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]}]});return Et(["mrel","x-arrow"],[z],t)},mathmlBuilder(e,t){var r=oc(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=To(or(e.body,t));if(e.below){var s=To(or(e.below,t));n=new It("munderover",[r,s,i])}else n=new It("mover",[r,i])}else if(e.below){var c=To(or(e.below,t));n=new It("munder",[r,c])}else n=To(),n=new It("mover",[r,n]);return n}});function qg(e,t){var r=Lr(e.body,t,!0);return Et([e.mclass],r,t)}function Mg(e,t){var r,n=Dn(e.body,t);return e.mclass==="minner"?r=new It("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new It("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new It("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:Rr(i),isCharacterBox:qi(i)}},htmlBuilder:qg,mathmlBuilder:Mg});var fc=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:fc(t[0]),body:Rr(t[1]),isCharacterBox:qi(t[1])}}});Dt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],s=t[0],c;n!=="\\stackrel"?c=fc(i):c="mrel";var f={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Rr(i)},p={type:"supsub",mode:s.mode,base:f,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:c,body:[p],isCharacterBox:qi(p)}},htmlBuilder:qg,mathmlBuilder:Mg});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:fc(t[0]),body:Rr(t[0])}},htmlBuilder(e,t){var r=Lr(e.body,t,!0),n=Et([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Dn(e.body,t),n=new It("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var E5={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Tp=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),zp=e=>e.type==="textord"&&e.text==="@",C5=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function T5(e,t,r){var n=E5[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:n,mode:"math",family:"rel"},c=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),p={type:"ordgroup",mode:"math",body:[i,c,f]};return r.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function z5(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 Nt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var c=t[s],f=Tp(),p=0;p<c.length;p++)if(!zp(c[p]))f.body.push(c[p]);else{n.push(f),p+=1;var h=cc(c[p]).text,z=new Array(2);if(z[0]={type:"ordgroup",mode:"math",body:[]},z[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var D=0;D<2;D++){for(var j=!0,he=p+1;he<c.length;he++){if(C5(c[he],h)){j=!1,p=he;break}if(zp(c[he]))throw new Nt("Missing a "+h+" character to complete a CD arrow.",c[he]);z[D].body.push(c[he])}if(j)throw new Nt("Missing a "+h+" character to complete a CD arrow.",c[p])}else throw new Nt('Expected one of "<>AV=|." after @',c[p]);var be=T5(h,z,e),ee={type:"styling",body:[be],mode:"math",style:"display",resetFont:!0};n.push(ee),f=Tp()}s%2===0?n.push(f):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var Y=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:Y,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=Ta(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=qt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new It("mrow",[or(e.label,t)]);return r=new It("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new It("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=Ta(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new It("mrow",[or(e.fragment,t)])}});Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Qt(t[0],"ordgroup"),i=n.body,s="",c=0;c<i.length;c++){var f=Qt(i[c],"textord");s+=f.text}var p=parseInt(s),h;if(isNaN(p))throw new Nt("\\@char has non-numeric argument "+s);if(p<0||p>=1114111)throw new Nt("\\@char with invalid code point "+s);return p<=65535?h=String.fromCharCode(p):(p-=65536,h=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var Dg=(e,t)=>{var r=Lr(e.body,t.withColor(e.color),!1);return Di(r)},Lg=(e,t)=>{var r=Dn(e.body,t.withColor(e.color)),n=new It("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:Rr(i)}},htmlBuilder:Dg,mathmlBuilder:Lg});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:Dg,mathmlBuilder:Lg});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=Et(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=qt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new It("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",qt(vr(e.size,t)))),r}});var Bf={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Fg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Nt("Expected a control sequence",e);return t},R5=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Bg=(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(Bf[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Bf[n.text]),Qt(t.parseFunction(),"internal");throw new Nt("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 Nt("Expected a control sequence",n);for(var s=0,c,f=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Nt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new Nt('Argument number "'+n.text+'" out of order');s++,f.push([])}else{if(n.text==="EOF")throw new Nt("Expected a macro definition");f[s].push(n.text)}var{tokens:p}=t.gullet.consumeArg();return c&&p.unshift(c),(r==="\\edef"||r==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(i,{tokens:p,numArgs:s,delimiters:f},r===Bf[r]),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Fg(t.gullet.popToken());t.gullet.consumeSpaces();var i=R5(t);return Bg(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Dt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Fg(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return Bg(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ol=function(t,r,n){var i=pr.math[t]&&pr.math[t].replace,s=gd(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},kd=function(t,r,n,i){var s=n.havingBaseStyle(r),c=Et(i.concat(s.sizingClasses(n)),[t],n),f=s.sizeMultiplier/n.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=s.sizeMultiplier,c},jg=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=qt(s),t.height-=s,t.depth+=s},N5=function(t,r,n,i,s,c){var f=an(t,"Main-Regular",s,i),p=kd(f,r,i,c);return jg(p,i,r),p},I5=function(t,r,n,i){return an(t,"Size"+r+"-Regular",n,i)},Pg=function(t,r,n,i,s,c){var f=I5(t,r,s,i),p=kd(Et(["delimsizing","size"+r],[f],i),Gt.TEXT,i,c);return n&&jg(p,i,Gt.TEXT),p},t$=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=Et(["delimsizinginner",i],[Et([],[an(t,r,n)])]);return{type:"elem",elem:s}},r$=function(t,r,n){var i=ui["Size4-Regular"][t.charCodeAt(0)]?ui["Size4-Regular"][t.charCodeAt(0)][4]:ui["Size1-Regular"][t.charCodeAt(0)][4],s=new os("inner",U3(t,Math.round(1e3*r))),c=new Ri([s],{width:qt(i),height:qt(r),style:"width:"+qt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=us([],[c],n);return f.height=r,f.style.height=qt(r),f.style.width=qt(i),{type:"elem",elem:f}},jf=.008,zo={type:"kern",size:-1*jf},q5=new Set(["|","\\lvert","\\rvert","\\vert"]),M5=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Ug=function(t,r,n,i,s,c){var f,p,h,z,D="",j=0;f=h=z=t,p=null;var he="Size1-Regular";t==="\\uparrow"?h=z="⏐":t==="\\Uparrow"?h=z="‖":t==="\\downarrow"?f=h="⏐":t==="\\Downarrow"?f=h="‖":t==="\\updownarrow"?(f="\\uparrow",h="⏐",z="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",h="‖",z="\\Downarrow"):q5.has(t)?(h="∣",D="vert",j=333):M5.has(t)?(h="∥",D="doublevert",j=556):t==="["||t==="\\lbrack"?(f="⎡",h="⎢",z="⎣",he="Size4-Regular",D="lbrack",j=667):t==="]"||t==="\\rbrack"?(f="⎤",h="⎥",z="⎦",he="Size4-Regular",D="rbrack",j=667):t==="\\lfloor"||t==="⌊"?(h=f="⎢",z="⎣",he="Size4-Regular",D="lfloor",j=667):t==="\\lceil"||t==="⌈"?(f="⎡",h=z="⎢",he="Size4-Regular",D="lceil",j=667):t==="\\rfloor"||t==="⌋"?(h=f="⎥",z="⎦",he="Size4-Regular",D="rfloor",j=667):t==="\\rceil"||t==="⌉"?(f="⎤",h=z="⎥",he="Size4-Regular",D="rceil",j=667):t==="("||t==="\\lparen"?(f="⎛",h="⎜",z="⎝",he="Size4-Regular",D="lparen",j=875):t===")"||t==="\\rparen"?(f="⎞",h="⎟",z="⎠",he="Size4-Regular",D="rparen",j=875):t==="\\{"||t==="\\lbrace"?(f="⎧",p="⎨",z="⎩",h="⎪",he="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",p="⎬",z="⎭",h="⎪",he="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",z="⎩",h="⎪",he="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",z="⎭",h="⎪",he="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",z="⎭",h="⎪",he="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",z="⎩",h="⎪",he="Size4-Regular");var be=ol(f,he,s),ee=be.height+be.depth,Y=ol(h,he,s),X=Y.height+Y.depth,ge=ol(z,he,s),se=ge.height+ge.depth,me=0,Z=1;if(p!==null){var xe=ol(p,he,s);me=xe.height+xe.depth,Z=2}var fe=ee+se+me,Ae=Math.max(0,Math.ceil((r-fe)/(Z*X))),J=fe+Ae*Z*X,Ee=i.fontMetrics().axisHeight;n&&(Ee*=i.sizeMultiplier);var ce=J/2-Ee,w=[];if(D.length>0){var Se=J-ee-se,I=Math.round(J*1e3),ne=H3(D,Math.round(Se*1e3)),B=new os(D,ne),Fe=qt(j/1e3),ue=qt(I/1e3),U=new Ri([B],{width:Fe,height:ue,viewBox:"0 0 "+j+" "+I}),v=us([],[U],i);v.height=I/1e3,v.style.width=Fe,v.style.height=ue,w.push({type:"elem",elem:v})}else{if(w.push(t$(z,he,s)),w.push(zo),p===null){var $=J-ee-se+2*jf;w.push(r$(h,$,i))}else{var l=(J-ee-se-me)/2+2*jf;w.push(r$(h,l,i)),w.push(zo),w.push(t$(p,he,s)),w.push(zo),w.push(r$(h,l,i))}w.push(zo),w.push(t$(f,he,s))}var u=i.havingBaseStyle(Gt.TEXT),d=ir({positionType:"bottom",positionData:ce,children:w});return kd(Et(["delimsizing","mult"],[d],u),Gt.TEXT,i,c)},n$=80,i$=.08,s$=function(t,r,n,i,s){var c=P3(t,i,n),f=new os(t,c),p=new Ri([f],{width:"400em",height:qt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return us(["hide-tail"],[p],s)},D5=function(t,r){var n=r.havingBaseSizing(),i=Gg("\\surd",t*n.sizeMultiplier,Wg,n),s=n.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,p,h,z,D;return i.type==="small"?(z=1e3+1e3*c+n$,t<1?s=1:t<1.4&&(s=.7),p=(1+c+i$)/s,h=(1+c)/s,f=s$("sqrtMain",p,z,c,r),f.style.minWidth="0.853em",D=.833/s):i.type==="large"?(z=(1e3+n$)*xl[i.size],h=(xl[i.size]+c)/s,p=(xl[i.size]+c+i$)/s,f=s$("sqrtSize"+i.size,p,z,c,r),f.style.minWidth="1.02em",D=1/s):(p=t+c+i$,h=t+c,z=Math.floor(1e3*t+c)+n$,f=s$("sqrtTall",p,z,c,r),f.style.minWidth="0.742em",D=1.056),f.height=h,f.style.height=qt(p),{span:f,advanceWidth:D,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},Hg=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),L5=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Vg=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),xl=[0,1.2,1.8,2.4,3],Yg=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Hg.has(t)||Vg.has(t))return Pg(t,r,!1,n,i,s);if(L5.has(t))return Ug(t,xl[r],!1,n,i,s);throw new Nt("Illegal delimiter: '"+t+"'")},F5=[{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}],B5=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],Wg=[{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"}],j5=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.")},Gg=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),c=s;c<n.length;c++){var f=n[c];if(f.type==="stack")break;var p=ol(t,j5(f),"math"),h=p.height+p.depth;if(f.type==="small"){var z=i.havingBaseStyle(f.style);h*=z.sizeMultiplier}if(h>r)return f}return n[n.length-1]},Pf=function(t,r,n,i,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;Vg.has(t)?f=F5:Hg.has(t)?f=Wg:f=B5;var p=Gg(t,r,f,i);return p.type==="small"?N5(t,p.style,n,i,s,c):p.type==="large"?Pg(t,p.size,n,i,s,c):Ug(t,r,n,i,s,c)},a$=function(t,r,n,i,s,c){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,p=901,h=5/i.fontMetrics().ptPerEm,z=Math.max(r-f,n+f),D=Math.max(z/500*p,2*z-h);return Pf(t,D,!0,i,s,c)},Rp={"\\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}},P5=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 Np(e){return"isMiddle"in e}function dc(e,t){var r=$c(e);if(r&&P5.has(r.text))return r;throw r?new Nt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Nt("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=dc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Rp[e.funcName].size,mclass:Rp[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Et([e.mclass]):Yg(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Yn(e.delim,e.mode));var r=new It("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=qt(xl[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ip(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 Nt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:dc(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=dc(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)=>{Ip(e);for(var r=Lr(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,c=0;c<r.length;c++){var f=r[c];Np(f)?s=!0:(n=Math.max(r[c].height,n),i=Math.max(r[c].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var p;if(e.left==="."?p=Yl(t,["mopen"]):p=a$(e.left,n,i,t,e.mode,["mopen"]),r.unshift(p),s)for(var h=1;h<r.length;h++){var z=r[h];if(Np(z)){var D=z.isMiddle;r[h]=a$(D.delim,n,i,D.options,e.mode,[])}}var j;if(e.right===".")j=Yl(t,["mclose"]);else{var he=e.rightColor?t.withColor(e.rightColor):t;j=a$(e.right,n,i,he,e.mode,["mclose"])}return r.push(j),Et(["minner"],r,t)},mathmlBuilder:(e,t)=>{Ip(e);var r=Dn(e.body,t);if(e.left!=="."){var n=new It("mo",[Yn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new It("mo",[Yn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return bd(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=dc(t[0],e);if(!e.parser.leftrightDepth)throw new Nt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=Yl(t,[]):(r=Yg(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Yn("|","text"):Yn(e.delim,e.mode),n=new It("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var hc=(e,t)=>{var r=Ta(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,c,f=qi(e.body);if(n==="sout")s=Et(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,c=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var p=vr({number:.6,unit:"pt"},t),h=vr({number:.35,unit:"ex"},t),z=t.havingBaseSizing();i=i/z.sizeMultiplier;var D=r.height+r.depth+p+h;r.style.paddingLeft=qt(D/2+p);var j=Math.floor(1e3*D*i),he=B3(j),be=new Ri([new os("phase",he)],{width:"400em",height:qt(j/1e3),viewBox:"0 0 400000 "+j,preserveAspectRatio:"xMinYMin slice"});s=us(["hide-tail"],[be],t),s.style.height=qt(D),c=r.depth+p+h}else{/cancel/.test(n)?f||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var ee,Y,X=0;/box/.test(n)?(X=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),ee=t.fontMetrics().fboxsep+(n==="colorbox"?0:X),Y=ee):n==="angl"?(X=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),ee=4*X,Y=Math.max(0,.25-r.depth)):(ee=f?.2:0,Y=ee),s=x5(r,n,ee,Y,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=qt(X)):n==="angl"&&X!==.049&&(s.style.borderTopWidth=qt(X),s.style.borderRightWidth=qt(X)),c=r.depth+Y,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var ge;if(e.backgroundColor)ge=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]});else{var se=/cancel|phase/.test(n)?["svg-align"]:[];ge=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:se}]})}return/cancel/.test(n)&&(ge.height=r.height,ge.depth=r.depth),/cancel/.test(n)&&!f?Et(["mord","cancel-lap"],[ge],t):Et(["mord"],[ge],t)},pc=(e,t)=>{var r,n=new It(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: "+qt(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:c}},htmlBuilder:hc,mathmlBuilder:pc});Dt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,c=Qt(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:c,borderColor:s,body:f}},htmlBuilder:hc,mathmlBuilder:pc});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:hc,mathmlBuilder:pc});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:hc,mathmlBuilder:pc});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 Kg={};function hi(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},p=0;p<r.length;++p)Kg[r[p]]=f;s&&(Su[t]=s),c&&(Au[t]=c)}var Xg={};function Qe(e,t){Xg[e]=t}class pn{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 pn(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,pn.range(this,t))}}function qp(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 _c=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Nt("{"+e.envName+"} can be used only in display mode.")},U5=new Set(["gather","gather*"]);function Sd(e){if(!e.includes("ed"))return!e.includes("*")}function ms(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:c,colSeparationType:f,autoTag:p,singleRow:h,emptySingleRow:z,maxNumCols:D,leqno:j}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var he=e.gullet.expandMacroAsText("\\arraystretch");if(he==null)c=1;else if(c=parseFloat(he),!c||c<0)throw new Nt("Invalid \\arraystretch: "+he)}e.gullet.beginGroup();var be=[],ee=[be],Y=[],X=[],ge=p!=null?[]:void 0;function se(){p&&e.gullet.macros.set("\\@eqnsw","1",!0)}function me(){ge&&(e.gullet.macros.get("\\df@tag")?(ge.push(e.subparse([new Tn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):ge.push(!!p&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(se(),X.push(qp(e));;){var Z=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var xe={type:"ordgroup",mode:e.mode,body:Z};r&&(xe={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[xe]}),be.push(xe);var fe=e.fetch().text;if(fe==="&"){if(D&&be.length===D){if(h||f)throw new Nt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(fe==="\\end"){me(),be.length===1&&xe.type==="styling"&&xe.body.length===1&&xe.body[0].type==="ordgroup"&&xe.body[0].body.length===0&&(ee.length>1||!z)&&ee.pop(),X.length<ee.length+1&&X.push([]);break}else if(fe==="\\\\"){e.consume();var Ae=void 0;e.gullet.future().text!==" "&&(Ae=e.parseSizeGroup(!0)),Y.push(Ae?Ae.value:null),me(),X.push(qp(e)),be=[],ee.push(be),se()}else throw new Nt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:c,body:ee,cols:s,rowGaps:Y,hskipBeforeAndAfter:n,hLinesBeforeRow:X,colSeparationType:f,tags:ge,leqno:j}}function Ad(e){return e.slice(0,1)==="d"?"display":"text"}var pi=function(t,r){var n,i,s=t.body.length,c=t.hLinesBeforeRow,f=0,p=new Array(s),h=[],z=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),D=1/r.fontMetrics().ptPerEm,j=5*D;if(t.colSeparationType&&t.colSeparationType==="small"){var he=r.havingStyle(Gt.SCRIPT).sizeMultiplier;j=.2778*(he/r.sizeMultiplier)}var be=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*D,ee=3*D,Y=t.arraystretch*be,X=.7*Y,ge=.3*Y,se=0;function me($t){for(var a=0;a<$t.length;++a)a>0&&(se+=.25),h.push({pos:se,isDashed:$t[a]})}for(me(c[0]),n=0;n<t.body.length;++n){var Z=t.body[n],xe=X,fe=ge;f<Z.length&&(f=Z.length);var Ae={cells:new Array(Z.length),height:0,depth:0,pos:0};for(i=0;i<Z.length;++i){var J=sr(Z[i],r);fe<J.depth&&(fe=J.depth),xe<J.height&&(xe=J.height),Ae.cells[i]=J}var Ee=t.rowGaps[n],ce=0;Ee&&(ce=vr(Ee,r),ce>0&&(ce+=ge,fe<ce&&(fe=ce),ce=0)),t.addJot&&n<t.body.length-1&&(fe+=ee),Ae.height=xe,Ae.depth=fe,se+=xe,Ae.pos=se,se+=fe+ce,p[n]=Ae,me(c[n+1])}var w=se/2+r.fontMetrics().axisHeight,Se=t.cols||[],I=[],ne,B,Fe=[];if(t.tags&&t.tags.some($t=>$t))for(n=0;n<s;++n){var ue=p[n],U=ue.pos-w,v=t.tags[n],$=void 0;v===!0?$=Et(["eqn-num"],[],r):v===!1?$=Et([],[],r):$=Et([],Lr(v,r,!0),r),$.depth=ue.depth,$.height=ue.height,Fe.push({type:"elem",elem:$,shift:U})}for(i=0,B=0;i<f||B<Se.length;++i,++B){for(var l,u=Se[B],d=!0;((_=u)==null?void 0:_.type)==="separator";){var _;if(d||(ne=Et(["arraycolsep"],[]),ne.style.width=qt(r.fontMetrics().doubleRuleSep),I.push(ne)),u.separator==="|"||u.separator===":"){var S=u.separator==="|"?"solid":"dashed",T=Et(["vertical-separator"],[],r);T.style.height=qt(se),T.style.borderRightWidth=qt(z),T.style.borderRightStyle=S,T.style.margin="0 "+qt(-z/2);var te=se-w;te&&(T.style.verticalAlign=qt(-te)),I.push(T)}else throw new Nt("Invalid separator type: "+u.separator);B++,u=Se[B],d=!1}if(!(i>=f)){var Ie=void 0;if(i>0||t.hskipBeforeAndAfter){var Je,ut;Ie=(Je=(ut=u)==null?void 0:ut.pregap)!=null?Je:j,Ie!==0&&(ne=Et(["arraycolsep"],[]),ne.style.width=qt(Ie),I.push(ne))}var _t=[];for(n=0;n<s;++n){var wt=p[n],bt=wt.cells[i];if(bt){var At=wt.pos-w;bt.depth=wt.depth,bt.height=wt.height,_t.push({type:"elem",elem:bt,shift:At})}}var St=ir({positionType:"individualShift",children:_t}),Mt=Et(["col-align-"+(((l=u)==null?void 0:l.align)||"c")],[St]);if(I.push(Mt),i<f-1||t.hskipBeforeAndAfter){var Ct,nt;Ie=(Ct=(nt=u)==null?void 0:nt.postgap)!=null?Ct:j,Ie!==0&&(ne=Et(["arraycolsep"],[]),ne.style.width=qt(Ie),I.push(ne))}}}var Ne=Et(["mtable"],I);if(h.length>0){for(var je=Ca("hline",r,z),Ke=Ca("hdashline",r,z),x=[{type:"elem",elem:Ne,shift:0}];h.length>0;){var N=h.pop(),ve=N.pos-w;N.isDashed?x.push({type:"elem",elem:Ke,shift:ve}):x.push({type:"elem",elem:je,shift:ve})}Ne=ir({positionType:"individualShift",children:x})}if(Fe.length===0)return Et(["mord"],[Ne],r);var Le=ir({positionType:"individualShift",children:Fe}),Ze=Et(["tag"],[Le],r);return Di([Ne,Ze])},H5={c:"center ",l:"left ",r:"right "},_i=function(t,r){for(var n=[],i=new It("mtd",[],["mtr-glue"]),s=new It("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],p=[],h=0;h<f.length;h++)p.push(new It("mtd",[or(f[h],r)]));t.tags&&t.tags[c]&&(p.unshift(i),p.push(i),t.leqno?p.unshift(s):p.push(s)),n.push(new It("mtr",p))}var z=new It("mtable",n),D=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);z.setAttribute("rowspacing",qt(D));var j="",he="";if(t.cols&&t.cols.length>0){var be=t.cols,ee="",Y=!1,X=0,ge=be.length;be[0].type==="separator"&&(j+="top ",X=1),be[be.length-1].type==="separator"&&(j+="bottom ",ge-=1);for(var se=X;se<ge;se++){var me=be[se];me.type==="align"?(he+=H5[me.align],Y&&(ee+="none "),Y=!0):me.type==="separator"&&Y&&(ee+=me.separator==="|"?"solid ":"dashed ",Y=!1)}z.setAttribute("columnalign",he.trim()),/[sd]/.test(ee)&&z.setAttribute("columnlines",ee.trim())}if(t.colSeparationType==="align"){for(var Z=t.cols||[],xe="",fe=1;fe<Z.length;fe++)xe+=fe%2?"0em ":"1em ";z.setAttribute("columnspacing",xe.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?z.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?z.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?z.setAttribute("columnspacing","0.5em"):z.setAttribute("columnspacing","1em");var Ae="",J=t.hLinesBeforeRow;j+=J[0].length>0?"left ":"",j+=J[J.length-1].length>0?"right ":"";for(var Ee=1;Ee<J.length-1;Ee++)Ae+=J[Ee].length===0?"none ":J[Ee][0]?"dashed ":"solid ";return/[sd]/.test(Ae)&&z.setAttribute("rowlines",Ae.trim()),j!==""&&(z=new It("menclose",[z]),z.setAttribute("notation",j.trim())),t.arraystretch&&t.arraystretch<1&&(z=new It("mstyle",[z]),z.setAttribute("scriptlevel","1")),z},Qg=function(t,r){t.envName.includes("ed")||_c(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=ms(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:Sd(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,p=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var z="",D=0;D<r[0].body.length;D++){var j=Qt(r[0].body[D],"textord");z+=j.text}f=Number(z),p=f*2}var he=!p;c.body.forEach(function(X){for(var ge=1;ge<X.length;ge+=2){var se=Qt(X[ge],"styling"),me=Qt(se.body[0],"ordgroup");me.body.unshift(h)}if(he)p<X.length&&(p=X.length);else{var Z=X.length/2;if(f<Z)throw new Nt("Too many math in a row: "+("expected "+f+", but got "+Z),X[0])}});for(var be=0;be<p;++be){var ee="r",Y=0;be%2===1?ee="l":be>0&&he&&(Y=1),n[be]={type:"align",align:ee,pregap:Y,postgap:0}}return c.colSeparationType=he?"align":"alignat",c};hi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=$c(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(c){var f=cc(c),p=f.text;if("lcr".includes(p))return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new Nt("Unknown column alignment: "+p,c)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ms(e.parser,s,Ad(e.envName))},htmlBuilder:pi,mathmlBuilder:_i});hi({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 Nt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=ms(e.parser,n,Ad(e.envName)),c=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(c).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=ms(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=$c(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(f){var p=cc(f),h=p.text;if("lc".includes(h))return{type:"align",align:h};throw new Nt("Unknown column alignment: "+h,f)});if(i.length>1)throw new Nt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},c=ms(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new Nt("{subarray} can contain only one column");return c},htmlBuilder:pi,mathmlBuilder:_i});hi({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=ms(e.parser,t,Ad(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qg,htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){U5.has(e.envName)&&_c(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Sd(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qg,htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_c(e);var t={autoTag:Sd(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ms(e.parser,t,"display")},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _c(e),z5(e.parser)},htmlBuilder:pi,mathmlBuilder:_i});Qe("\\nonumber","\\gdef\\@eqnsw{0}");Qe("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Nt(e.funcName+" valid only within array environment")}});var Mp=Kg;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 Nt("Invalid environment name",i);for(var s="",c=0;c<i.body.length;++c)s+=Qt(i.body[c],"textord").text;if(n==="\\begin"){if(!Mp.hasOwnProperty(s))throw new Nt("No such environment: "+s,i);var f=Mp[s],{args:p,optArgs:h}=r.parseArguments("\\begin{"+s+"}",f),z={mode:r.mode,envName:s,parser:r},D=f.handler(z,p,h);r.expect("\\end",!1);var j=r.nextToken,he=Qt(r.parseFunction(),"environment");if(he.name!==s)throw new Nt("Mismatch: \\begin{"+s+"} matched by \\end{"+he.name+"}",j);return D}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var Zg=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},Jg=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},Dp={"\\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=Eu(t[0]),s=n;return s in Dp&&(s=Dp[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:Zg,mathmlBuilder:Jg});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:fc(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:qi(n)}}});Dt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:s}=r,c=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:c}}},htmlBuilder:Zg,mathmlBuilder:Jg});var V5=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var c=sr(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;c.height=c.height<f?f:c.height,c.depth=c.depth<p?p:c.depth}s=t.havingStyle(i);var h=sr(e.denom,s,t),z,D,j;e.hasBarLine?(e.barSize?(D=vr(e.barSize,t),z=Ca("frac-line",t,D)):z=Ca("frac-line",t),D=z.height,j=z.height):(z=null,D=0,j=t.fontMetrics().defaultRuleThickness);var he,be,ee;r.size===Gt.DISPLAY.size?(he=t.fontMetrics().num1,D>0?be=3*j:be=7*j,ee=t.fontMetrics().denom1):(D>0?(he=t.fontMetrics().num2,be=j):(he=t.fontMetrics().num3,be=3*j),ee=t.fontMetrics().denom2);var Y;if(z){var ge=t.fontMetrics().axisHeight;he-c.depth-(ge+.5*D)<be&&(he+=be-(he-c.depth-(ge+.5*D))),ge-.5*D-(h.height-ee)<be&&(ee+=be-(ge-.5*D-(h.height-ee)));var se=-(ge-.5*D);Y=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:ee},{type:"elem",elem:z,shift:se},{type:"elem",elem:c,shift:-he}]})}else{var X=he-c.depth-(h.height-ee);X<be&&(he+=.5*(be-X),ee+=.5*(be-X)),Y=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:ee},{type:"elem",elem:c,shift:-he}]})}s=t.havingStyle(r),Y.height*=s.sizeMultiplier/t.sizeMultiplier,Y.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 Z,xe;return e.leftDelim==null?Z=Yl(t,["mopen"]):Z=Pf(e.leftDelim,me,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?xe=Et([]):e.rightDelim==null?xe=Yl(t,["mclose"]):xe=Pf(e.rightDelim,me,!0,t.havingStyle(r),e.mode,["mclose"]),Et(["mord"].concat(s.sizingClasses(t)),[Z,Et(["mfrac"],[Y]),xe],t)},Y5=(e,t)=>{var r=new It("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",qt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new It("mo",[new Nr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var c=new It("mo",[new Nr(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),i.push(c)}return bd(i)}return r},Og=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Dt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1],c,f=null,p=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",p=")";break;case"\\\\bracefrac":c=!1,f="\\{",p="\\}";break;case"\\\\brackfrac":c=!1,f="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",z=null;return h||n.startsWith("\\d")?z="display":n.startsWith("\\t")&&(z="text"),Og({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:h,hasBarLine:c,leftDelim:f,rightDelim:p,barSize:null},z)},htmlBuilder:V5,mathmlBuilder:Y5});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 Lp=["display","text","script","scriptscript"],Fp=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=Eu(t[0]),c=s.type==="atom"&&s.family==="open"?Fp(s.text):null,f=Eu(t[1]),p=f.type==="atom"&&f.family==="close"?Fp(f.text):null,h=Qt(t[2],"size"),z,D=null;h.isBlank?z=!0:(D=h.value,z=D.number>0);var j=null,he=t[3];if(he.type==="ordgroup"){if(he.body.length>0){var be=Qt(he.body[0],"textord");j=Lp[Number(be.text)]}}else he=Qt(he,"textord"),j=Lp[Number(he.text)];return Og({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:z,barSize:D,leftDelim:c,rightDelim:p},j)}});Dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Qt(t[0],"size").value,token:i}}});Dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=Qt(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:c,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var ev=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?sr(e.sup,t.havingStyle(r.sup()),t):sr(e.sub,t.havingStyle(r.sub()),t),i=Qt(e.base,"horizBrace")):i=Qt(e,"horizBrace");var s=sr(i.base,t.havingBaseStyle(Gt.DISPLAY)),c=uc(i,t),f;if(i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c,wrapperClasses:["svg-align"]}]}):f=ir({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var p=Et(["minner",i.isOver?"mover":"munder"],[f],t);i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:n}]}):f=ir({positionType:"bottom",positionData:p.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:p}]})}return Et(["minner",i.isOver?"mover":"munder"],[f],t)},W5=(e,t)=>{var r=oc(e.label);return new It(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:ev,mathmlBuilder:W5});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:Rr(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Lr(e.body,t,!1);return s5(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=cs(e.body,t);return r instanceof It||(r=new It("mrow",[r])),r.setAttribute("href",e.href),r}});Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Rr(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:Rr(t[0])}},htmlBuilder(e,t){var r=Lr(e.body,t.withFont(""),!1);return Di(r)},mathmlBuilder(e,t){return new It("mrow",Dn(e.body,t.withFont("")))}});Dt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,s=Qt(t[0],"raw").string,c=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,p={};switch(n){case"\\htmlClass":p.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":p.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":p.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var h=s.split(","),z=0;z<h.length;z++){var D=h[z],j=D.indexOf("=");if(j<0)throw new Nt("\\htmlData key/value '"+D+"' missing equals sign");var he=D.slice(0,j),be=D.slice(j+1);p["data-"+he.trim()]=be}f={command:"\\htmlData",attributes:p};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:p,body:Rr(c)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Lr(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Et(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)=>cs(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:Rr(t[0]),mathml:Rr(t[1])}},htmlBuilder:(e,t)=>{var r=Lr(e.html,t,!1);return Di(r)},mathmlBuilder:(e,t)=>cs(e.mathml,t)});var l$=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 Nt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!mg(n))throw new Nt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(r[0])for(var p=Qt(r[0],"raw").string,h=p.split(","),z=0;z<h.length;z++){var D=h[z].split("=");if(D.length===2){var j=D[1].trim();switch(D[0].trim()){case"alt":f=j;break;case"width":i=l$(j);break;case"height":s=l$(j);break;case"totalheight":c=l$(j);break;default:throw new Nt("Invalid key: '"+D[0]+"' in \\includegraphics.")}}}var he=Qt(t[0],"url").url;return f===""&&(f=he,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:he})?{type:"includegraphics",mode:n.mode,alt:f,width:i,height:s,totalheight:c,src:he}: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:qt(r+n)};i>0&&(s.width=qt(i)),n>0&&(s.verticalAlign=qt(-n));var c=new G3(e.src,e.alt,s);return c.height=r,c.depth=n,c},mathmlBuilder:(e,t)=>{var r=new It("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",qt(-i))),r.setAttribute("height",qt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",qt(s))}return r.setAttribute("src",e.src),r}});Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Qt(t[0],"size");if(r.settings.strict){var s=n[1]==="m",c=i.value.unit==="mu";s?(c||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):c&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return wg(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new Tg(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=Et([],[sr(e.body,t)]),r=Et(["inner"],[r],t)):r=Et(["inner"],[sr(e.body,t)]);var n=Et(["fix"],[]),i=Et([e.alignment],[r,n],t),s=Et(["strut"]);return s.style.height=qt(i.height+i.depth),i.depth&&(s.style.verticalAlign=qt(-i.depth)),i.children.unshift(s),i=Et(["thinbox"],[i],t),Et(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new It("mpadded",[or(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",c=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:c}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Nt("Mismatched "+e.funcName)}});var Bp=(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:Rr(t[0]),text:Rr(t[1]),script:Rr(t[2]),scriptscript:Rr(t[3])}},htmlBuilder:(e,t)=>{var r=Bp(e,t),n=Lr(r,t,!1);return Di(n)},mathmlBuilder:(e,t)=>{var r=Bp(e,t);return cs(r,t)}});var tv=(e,t,r,n,i,s,c)=>{e=Et([],[e]);var f=r&&qi(r),p,h;if(t){var z=sr(t,n.havingStyle(i.sup()),n);h={elem:z,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-z.depth)}}if(r){var D=sr(r,n.havingStyle(i.sub()),n);p={elem:D,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-D.height)}}var j;if(h&&p){var he=n.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+c;j=ir({positionType:"bottom",positionData:he,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:qt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:qt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(p){var be=e.height-c;j=ir({positionType:"top",positionData:be,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:qt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(h){var ee=e.depth+c;j=ir({positionType:"bottom",positionData:ee,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:qt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var Y=[j];if(p&&s!==0&&!f){var X=Et(["mspace"],[],n);X.style.marginRight=qt(s),Y.unshift(X)}return Et(["mop","op-limits"],Y,n)},rv=new Set(["\\smallint"]),Ua=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"op"),i=!0):s=Qt(e,"op");var c=t.style,f=!1;c.size===Gt.DISPLAY.size&&s.symbol&&!rv.has(s.name)&&(f=!0);var p,h;if(s.symbol){var z=f?"Size2-Regular":"Size1-Regular",D="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(D=s.name.slice(1),s.name=D==="oiint"?"\\iint":"\\iiint"),p=an(s.name,z,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),h=p.italic,D.length>0){var j=Sg(D+"Size"+(f?"2":"1"),t);p=ir({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:j,shift:f?.08:0}]}),s.name="\\"+D,p.classes.unshift("mop"),p.italic=h}}else if(s.body){var he=Lr(s.body,t,!0);he.length===1&&he[0]instanceof Rn?(p=he[0],p.classes[0]="mop"):p=Et(["mop"],he,t)}else{for(var be=[],ee=1;ee<s.name.length;ee++)be.push(vd(s.name[ee],s.mode,t));p=Et(["mop"],be,t)}var Y=0,X=0;if((p instanceof Rn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var ge;Y=(p.height-p.depth)/2-t.fontMetrics().axisHeight,X=(ge=p.italic)!=null?ge:0}return i?tv(p,r,n,t,c,X,Y):(Y&&(p.style.position="relative",p.style.top=qt(Y)),p)},ro=(e,t)=>{var r;if(e.symbol)r=new It("mo",[Yn(e.name,e.mode)]),rv.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new It("mo",Dn(e.body,t));else{r=new It("mi",[new Nr(e.name.slice(1))]);var n=new It("mo",[Yn("","text")]);e.parentIsSupSub?r=new It("mrow",[r,n]):r=Cg([r,n])}return r},G5={"∏":"\\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=G5[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ua,mathmlBuilder:ro});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:Rr(n)}},htmlBuilder:Ua,mathmlBuilder:ro});var K5={"∫":"\\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:Ua,mathmlBuilder:ro});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:Ua,mathmlBuilder:ro});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=K5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Ua,mathmlBuilder:ro});var nv=(e,t)=>{var r,n,i=!1,s;e.type==="supsub"?(r=e.sup,n=e.sub,s=Qt(e.base,"operatorname"),i=!0):s=Qt(e,"operatorname");var c;if(s.body.length>0){for(var f=s.body.map(D=>{var j="text"in D?D.text:void 0;return typeof j=="string"?{type:"textord",mode:D.mode,text:j}:D}),p=Lr(f,t.withFont("mathrm"),!0),h=0;h<p.length;h++){var z=p[h];z instanceof Rn&&(z.text=z.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=Et(["mop"],p,t)}else c=Et(["mop"],[],t);return i?tv(c,r,n,t,t.style,0,0):c},X5=(e,t)=>{for(var r=Dn(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof Tg))if(s instanceof It)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof Nr?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var f=r.map(z=>z.toText()).join("");r=[new Nr(f)]}var p=new It("mi",r);p.setAttribute("mathvariant","normal");var h=new It("mo",[Yn("","text")]);return e.parentIsSupSub?new It("mrow",[p,h]):Cg([p,h])};Dt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Rr(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:nv,mathmlBuilder:X5});Qe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Us({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Di(Lr(e.body,t,!1)):Et(["mord"],Lr(e.body,t,!0),t)},mathmlBuilder(e,t){return cs(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=Ca("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 Et(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new It("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new It("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:Rr(n)}},htmlBuilder:(e,t)=>{var r=Lr(e.body,t.withPhantom(),!1);return Di(r)},mathmlBuilder:(e,t)=>{var r=Dn(e.body,t);return new It("mphantom",r)}});Qe("\\hphantom","\\smash{\\phantom{#1}}");Dt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Et(["inner"],[sr(e.body,t.withPhantom())]),n=Et(["fix"],[]);return Et(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Dn(Rr(e.body),t),n=new It("mphantom",r),i=new It("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 It("mpadded",[or(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Dt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=Qt(t[0],"size"),c=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=Et(["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=qt(n),r.style.borderTopWidth=qt(i),r.style.bottom=qt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=vr(e.width,t),n=vr(e.height,t),i=e.shift?vr(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new It("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",qt(r)),c.setAttribute("height",qt(n));var f=new It("mpadded",[c]);return i>=0?f.setAttribute("height",qt(i)):(f.setAttribute("height",qt(i)),f.setAttribute("depth",qt(-i))),f.setAttribute("voffset",qt(i)),f}});function iv(e,t,r){for(var n=Lr(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var c=n[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[c+1]==="reset-size"+t.size&&(n[s].classes[c+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return Di(n)}var jp=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Q5=(e,t)=>{var r=t.havingSize(e.size);return iv(e.body,r,t)};Dt({type:"sizing",names:jp,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:jp.indexOf(n)+1,body:s}},htmlBuilder:Q5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Dn(e.body,r),i=new It("mstyle",n);return i.setAttribute("mathsize",qt(r.sizeMultiplier)),i}});Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,c=r[0]&&Qt(r[0],"ordgroup");if(c)for(var f,p=0;p<c.body.length;++p){var h=c.body[p];if(f=cc(h).text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var z=t[0];return{type:"smash",mode:n.mode,body:z,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=Et([],[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 Et(["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 Et(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new It("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=Ta(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var c=i+s/4,f=r.height+r.depth+c+i,{span:p,ruleWidth:h,advanceWidth:z}=D5(f,t),D=p.height-h;D>r.height+r.depth+c&&(c=(c+D-r.height-r.depth)/2);var j=p.height-r.height-c-h;r.style.paddingLeft=qt(z);var he=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+j)},{type:"elem",elem:p},{type:"kern",size:h}]});if(e.index){var be=t.havingStyle(Gt.SCRIPTSCRIPT),ee=sr(e.index,be,t),Y=.6*(he.height-he.depth),X=ir({positionType:"shift",positionData:-Y,children:[{type:"elem",elem:ee}]}),ge=Et(["root"],[X]);return Et(["mord","sqrt"],[ge,he],t)}else return Et(["mord","sqrt"],[he],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new It("mroot",[or(r,t),or(n,t)]):new It("msqrt",[or(r,t)])}});var Uf={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function Z5(e){return e in Uf}Dt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,s=i.parseExpression(!0,r),c=n.slice(1,n.length-5);if(!Z5(c))throw new Error("Unknown style: "+c);return{type:"styling",mode:i.mode,style:c,body:s}},htmlBuilder(e,t){var r=Uf[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),iv(e.body,n,t)},mathmlBuilder(e,t){var r=Uf[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Dn(e.body,n),s=new It("mstyle",i),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var J5=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?Ua:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?nv:null}else{if(n.type==="accent")return qi(n.base)?wd:null;if(n.type==="horizBrace"){var c=!t.sub;return c===n.isOver?ev:null}else return null}else return null};Us({type:"supsub",htmlBuilder(e,t){var r=J5(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,c=sr(n,t),f,p,h=t.fontMetrics(),z=0,D=0,j=n&&qi(n);if(i){var he=t.havingStyle(t.style.sup());f=sr(i,he,t),j||(z=c.height-he.fontMetrics().supDrop*he.sizeMultiplier/t.sizeMultiplier)}if(s){var be=t.havingStyle(t.style.sub());p=sr(s,be,t),j||(D=c.depth+be.fontMetrics().subDrop*be.sizeMultiplier/t.sizeMultiplier)}var ee;t.style===Gt.DISPLAY?ee=h.sup1:t.style.cramped?ee=h.sup3:ee=h.sup2;var Y=t.sizeMultiplier,X=qt(.5/h.ptPerEm/Y),ge=null;if(p){var se=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(c instanceof Rn||se){var me;ge=qt(-((me=c.italic)!=null?me:0))}}var Z;if(f&&p){z=Math.max(z,ee,f.depth+.25*h.xHeight),D=Math.max(D,h.sub2);var xe=h.defaultRuleThickness,fe=4*xe;if(z-f.depth-(p.height-D)<fe){D=fe-(z-f.depth)+p.height;var Ae=.8*h.xHeight-(z-f.depth);Ae>0&&(z+=Ae,D-=Ae)}var J=[{type:"elem",elem:p,shift:D,marginRight:X,marginLeft:ge},{type:"elem",elem:f,shift:-z,marginRight:X}];Z=ir({positionType:"individualShift",children:J})}else if(p){D=Math.max(D,h.sub1,p.height-.8*h.xHeight);var Ee=[{type:"elem",elem:p,marginLeft:ge,marginRight:X}];Z=ir({positionType:"shift",positionData:D,children:Ee})}else if(f)z=Math.max(z,ee,f.depth+.25*h.xHeight),Z=ir({positionType:"shift",positionData:-z,children:[{type:"elem",elem:f,marginRight:X}]});else throw new Error("supsub must have either sup or sub.");var ce=Lf(c,"right")||"mord";return Et([ce],[c,Et(["msupsub"],[Z])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[or(e.base,t)];e.sub&&s.push(or(e.sub,t)),e.sup&&s.push(or(e.sup,t));var c;if(r)c=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Gt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var p=e.base;p&&p.type==="op"&&p.limits&&(t.style===Gt.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===Gt.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Gt.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Gt.DISPLAY)?c="mover":c="msup"}return new It(c,s)}});Us({type:"atom",htmlBuilder(e,t){return vd(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new It("mo",[Yn(e.text,e.mode)]);if(e.family==="bin"){var n=xd(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 sv={mi:"italic",mn:"normal",mtext:"normal"};Us({type:"mathord",htmlBuilder(e,t){return lc(e,t,"mathord")},mathmlBuilder(e,t){var r=new It("mi",[Yn(e.text,e.mode,t)]),n=xd(e,t)||"italic";return n!==sv[r.type]&&r.setAttribute("mathvariant",n),r}});Us({type:"textord",htmlBuilder(e,t){return lc(e,t,"textord")},mathmlBuilder(e,t){var r=Yn(e.text,e.mode,t),n=xd(e,t)||"normal",i;return e.mode==="text"?i=new It("mtext",[r]):/[0-9]/.test(e.text)?i=new It("mn",[r]):e.text==="\\prime"?i=new It("mo",[r]):i=new It("mi",[r]),n!==sv[i.type]&&i.setAttribute("mathvariant",n),i}});var o$={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},u$={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Us({type:"spacing",htmlBuilder(e,t){if(u$.hasOwnProperty(e.text)){var r=u$[e.text].className||"";if(e.mode==="text"){var n=lc(e,t,"textord");return n.classes.push(r),n}else return Et(["mspace",r],[vd(e.text,e.mode,t)],t)}else{if(o$.hasOwnProperty(e.text))return Et(["mspace",o$[e.text]],[],t);throw new Nt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(u$.hasOwnProperty(e.text))r=new It("mtext",[new Nr(" ")]);else{if(o$.hasOwnProperty(e.text))return new It("mspace");throw new Nt('Unknown type of space "'+e.text+'"')}return r}});var Pp=()=>{var e=new It("mtd",[]);return e.setAttribute("width","50%"),e};Us({type:"tag",mathmlBuilder(e,t){var r=new It("mtable",[new It("mtr",[Pp(),new It("mtd",[cs(e.body,t)]),Pp(),new It("mtd",[cs(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Up={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Hp={"\\textbf":"textbf","\\textmd":"textmd"},O5={"\\textit":"textit","\\textup":"textup"},Vp=(e,t)=>{var r=e.font;if(r){if(Up[r])return t.withTextFontFamily(Up[r]);if(Hp[r])return t.withTextFontWeight(Hp[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(O5[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:Rr(i),font:n}},htmlBuilder(e,t){var r=Vp(e,t),n=Lr(e.body,r,!0);return Et(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Vp(e,t);return cs(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=Ca("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 Et(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new It("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new It("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 It("mpadded",[or(e.body,t)],["vcenter"]);return new It("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Nt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Yp(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var c=r[s];c==="~"&&(c="\\textasciitilde"),n.push(an(c,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Et(["mord","text"].concat(i.sizingClasses(t)),xg(n),i)},mathmlBuilder(e,t){var r=new Nr(Yp(e)),n=new It("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Yp=e=>e.body.replace(/ /g,e.star?"␣":" "),Xi=Ag,av=`[ \r
|
|
381
|
-
]`,e6="\\\\[a-zA-Z@]+",t6="\\\\[^\uD800-\uDFFF]",r6="("+e6+")"+av+"*",n6=`\\\\(
|
|
382
|
-
|[ \r ]+
|
|
383
|
-
?)[ \r ]*`,Hf="[̀-ͯ]",i6=new RegExp(Hf+"+$"),s6="("+av+"+)|"+(n6+"|")+"([!-\\[\\]-‧-豈-]"+(Hf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Hf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+r6)+("|"+t6+")");class Wp{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(s6,"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 pn(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Nt("Unexpected character: '"+t[r]+"'",new Tn(t[r],new pn(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
|
|
384
|
-
`,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 pn(this,r,this.tokenRegex.lastIndex))}}class a6{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 Nt("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 l6=Xg;Qe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Qe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Qe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Qe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Qe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});Qe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Qe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Gp={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Qe("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Nt("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Gp[t.text],n==null||n>=r)throw new Nt("Invalid base-"+r+" digit "+t.text);for(var i;(i=Gp[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Ed=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new Nt("\\newcommand's first argument must be a macro name");var s=i[0].text,c=e.isDefined(s);if(c&&!t)throw new Nt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new Nt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var p="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)p+=h.text,h=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Nt("Invalid number of arguments: "+p);f=parseInt(p),i=e.consumeArg().tokens}return c&&n||e.macros.set(s,{tokens:i,numArgs:f}),""};Qe("\\newcommand",e=>Ed(e,!1,!0,!1));Qe("\\renewcommand",e=>Ed(e,!0,!1,!1));Qe("\\providecommand",e=>Ed(e,!0,!0,!0));Qe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Qe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Qe("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Xi[r],pr.math[r],pr.text[r]),""});Qe("\\bgroup","{");Qe("\\egroup","}");Qe("~","\\nobreakspace");Qe("\\lq","`");Qe("\\rq","'");Qe("\\aa","\\r a");Qe("\\AA","\\r A");Qe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Qe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Qe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Qe("ℬ","\\mathscr{B}");Qe("ℰ","\\mathscr{E}");Qe("ℱ","\\mathscr{F}");Qe("ℋ","\\mathscr{H}");Qe("ℐ","\\mathscr{I}");Qe("ℒ","\\mathscr{L}");Qe("ℳ","\\mathscr{M}");Qe("ℛ","\\mathscr{R}");Qe("ℭ","\\mathfrak{C}");Qe("ℌ","\\mathfrak{H}");Qe("ℨ","\\mathfrak{Z}");Qe("\\Bbbk","\\Bbb{k}");Qe("\\llap","\\mathllap{\\textrm{#1}}");Qe("\\rlap","\\mathrlap{\\textrm{#1}}");Qe("\\clap","\\mathclap{\\textrm{#1}}");Qe("\\mathstrut","\\vphantom{(}");Qe("\\underbar","\\underline{\\text{#1}}");Qe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Qe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Qe("\\ne","\\neq");Qe("≠","\\neq");Qe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Qe("∉","\\notin");Qe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Qe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Qe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Qe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Qe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Qe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Qe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Qe("⟂","\\perp");Qe("‼","\\mathclose{!\\mkern-0.8mu!}");Qe("∌","\\notni");Qe("⌜","\\ulcorner");Qe("⌝","\\urcorner");Qe("⌞","\\llcorner");Qe("⌟","\\lrcorner");Qe("©","\\copyright");Qe("®","\\textregistered");Qe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Qe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Qe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Qe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Qe("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Qe("⋮","\\vdots");Qe("\\varGamma","\\mathit{\\Gamma}");Qe("\\varDelta","\\mathit{\\Delta}");Qe("\\varTheta","\\mathit{\\Theta}");Qe("\\varLambda","\\mathit{\\Lambda}");Qe("\\varXi","\\mathit{\\Xi}");Qe("\\varPi","\\mathit{\\Pi}");Qe("\\varSigma","\\mathit{\\Sigma}");Qe("\\varUpsilon","\\mathit{\\Upsilon}");Qe("\\varPhi","\\mathit{\\Phi}");Qe("\\varPsi","\\mathit{\\Psi}");Qe("\\varOmega","\\mathit{\\Omega}");Qe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Qe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Qe("\\boxed","\\fbox{$\\displaystyle{#1}$}");Qe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Qe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Qe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Qe("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Qe("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Kp={",":"\\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"},o6=new Set(["bin","rel"]);Qe("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Kp?t=Kp[r]:(r.slice(0,4)==="\\not"||r in pr.math&&o6.has(pr.math[r].group))&&(t="\\dotsb"),t});var Cd={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Qe("\\dotso",function(e){var t=e.future().text;return t in Cd?"\\ldots\\,":"\\ldots"});Qe("\\dotsc",function(e){var t=e.future().text;return t in Cd&&t!==","?"\\ldots\\,":"\\ldots"});Qe("\\cdots",function(e){var t=e.future().text;return t in Cd?"\\@cdots\\,":"\\@cdots"});Qe("\\dotsb","\\cdots");Qe("\\dotsm","\\cdots");Qe("\\dotsi","\\!\\cdots");Qe("\\dotsx","\\ldots\\,");Qe("\\DOTSI","\\relax");Qe("\\DOTSB","\\relax");Qe("\\DOTSX","\\relax");Qe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Qe("\\,","\\tmspace+{3mu}{.1667em}");Qe("\\thinspace","\\,");Qe("\\>","\\mskip{4mu}");Qe("\\:","\\tmspace+{4mu}{.2222em}");Qe("\\medspace","\\:");Qe("\\;","\\tmspace+{5mu}{.2777em}");Qe("\\thickspace","\\;");Qe("\\!","\\tmspace-{3mu}{.1667em}");Qe("\\negthinspace","\\!");Qe("\\negmedspace","\\tmspace-{4mu}{.2222em}");Qe("\\negthickspace","\\tmspace-{5mu}{.277em}");Qe("\\enspace","\\kern.5em ");Qe("\\enskip","\\hskip.5em\\relax");Qe("\\quad","\\hskip1em\\relax");Qe("\\qquad","\\hskip2em\\relax");Qe("\\tag","\\@ifstar\\tag@literal\\tag@paren");Qe("\\tag@paren","\\tag@literal{({#1})}");Qe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Nt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Qe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Qe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Qe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Qe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Qe("\\newline","\\\\\\relax");Qe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var lv=qt(ui["Main-Regular"][84][1]-.7*ui["Main-Regular"][65][1]);Qe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+lv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Qe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+lv+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Qe("\\hspace","\\@ifstar\\@hspacer\\@hspace");Qe("\\@hspace","\\hskip #1\\relax");Qe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Qe("\\ordinarycolon",":");Qe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Qe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Qe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Qe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Qe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Qe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Qe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Qe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Qe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Qe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Qe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Qe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Qe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Qe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Qe("∷","\\dblcolon");Qe("∹","\\eqcolon");Qe("≔","\\coloneqq");Qe("≕","\\eqqcolon");Qe("⩴","\\Coloneqq");Qe("\\ratio","\\vcentcolon");Qe("\\coloncolon","\\dblcolon");Qe("\\colonequals","\\coloneqq");Qe("\\coloncolonequals","\\Coloneqq");Qe("\\equalscolon","\\eqqcolon");Qe("\\equalscoloncolon","\\Eqqcolon");Qe("\\colonminus","\\coloneq");Qe("\\coloncolonminus","\\Coloneq");Qe("\\minuscolon","\\eqcolon");Qe("\\minuscoloncolon","\\Eqcolon");Qe("\\coloncolonapprox","\\Colonapprox");Qe("\\coloncolonsim","\\Colonsim");Qe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Qe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Qe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Qe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Qe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Qe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Qe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Qe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Qe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Qe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Qe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Qe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Qe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Qe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Qe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Qe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Qe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Qe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Qe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Qe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Qe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Qe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Qe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Qe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Qe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Qe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Qe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Qe("\\imath","\\html@mathml{\\@imath}{ı}");Qe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Qe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Qe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Qe("⟦","\\llbracket");Qe("⟧","\\rrbracket");Qe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Qe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Qe("⦃","\\lBrace");Qe("⦄","\\rBrace");Qe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Qe("⦵","\\minuso");Qe("\\darr","\\downarrow");Qe("\\dArr","\\Downarrow");Qe("\\Darr","\\Downarrow");Qe("\\lang","\\langle");Qe("\\rang","\\rangle");Qe("\\uarr","\\uparrow");Qe("\\uArr","\\Uparrow");Qe("\\Uarr","\\Uparrow");Qe("\\N","\\mathbb{N}");Qe("\\R","\\mathbb{R}");Qe("\\Z","\\mathbb{Z}");Qe("\\alef","\\aleph");Qe("\\alefsym","\\aleph");Qe("\\Alpha","\\mathrm{A}");Qe("\\Beta","\\mathrm{B}");Qe("\\bull","\\bullet");Qe("\\Chi","\\mathrm{X}");Qe("\\clubs","\\clubsuit");Qe("\\cnums","\\mathbb{C}");Qe("\\Complex","\\mathbb{C}");Qe("\\Dagger","\\ddagger");Qe("\\diamonds","\\diamondsuit");Qe("\\empty","\\emptyset");Qe("\\Epsilon","\\mathrm{E}");Qe("\\Eta","\\mathrm{H}");Qe("\\exist","\\exists");Qe("\\harr","\\leftrightarrow");Qe("\\hArr","\\Leftrightarrow");Qe("\\Harr","\\Leftrightarrow");Qe("\\hearts","\\heartsuit");Qe("\\image","\\Im");Qe("\\infin","\\infty");Qe("\\Iota","\\mathrm{I}");Qe("\\isin","\\in");Qe("\\Kappa","\\mathrm{K}");Qe("\\larr","\\leftarrow");Qe("\\lArr","\\Leftarrow");Qe("\\Larr","\\Leftarrow");Qe("\\lrarr","\\leftrightarrow");Qe("\\lrArr","\\Leftrightarrow");Qe("\\Lrarr","\\Leftrightarrow");Qe("\\Mu","\\mathrm{M}");Qe("\\natnums","\\mathbb{N}");Qe("\\Nu","\\mathrm{N}");Qe("\\Omicron","\\mathrm{O}");Qe("\\plusmn","\\pm");Qe("\\rarr","\\rightarrow");Qe("\\rArr","\\Rightarrow");Qe("\\Rarr","\\Rightarrow");Qe("\\real","\\Re");Qe("\\reals","\\mathbb{R}");Qe("\\Reals","\\mathbb{R}");Qe("\\Rho","\\mathrm{P}");Qe("\\sdot","\\cdot");Qe("\\sect","\\S");Qe("\\spades","\\spadesuit");Qe("\\sub","\\subset");Qe("\\sube","\\subseteq");Qe("\\supe","\\supseteq");Qe("\\Tau","\\mathrm{T}");Qe("\\thetasym","\\vartheta");Qe("\\weierp","\\wp");Qe("\\Zeta","\\mathrm{Z}");Qe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Qe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Qe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Qe("\\bra","\\mathinner{\\langle{#1}|}");Qe("\\ket","\\mathinner{|{#1}\\rangle}");Qe("\\braket","\\mathinner{\\langle{#1}\\rangle}");Qe("\\Bra","\\left\\langle#1\\right|");Qe("\\Ket","\\left|#1\\right\\rangle");var ov=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var p=D=>j=>{e&&(j.macros.set("|",c),i.length&&j.macros.set("\\|",f));var he=D;if(!D&&i.length){var be=j.future();be.text==="|"&&(j.popToken(),he=!0)}return{tokens:he?i:n,numArgs:0}};t.macros.set("|",p(!1)),i.length&&t.macros.set("\\|",p(!0));var h=t.consumeArg().tokens,z=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:z.reverse(),numArgs:0}};Qe("\\bra@ket",ov(!1));Qe("\\bra@set",ov(!0));Qe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Qe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Qe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Qe("\\angln","{\\angl n}");Qe("\\blue","\\textcolor{##6495ed}{#1}");Qe("\\orange","\\textcolor{##ffa500}{#1}");Qe("\\pink","\\textcolor{##ff00af}{#1}");Qe("\\red","\\textcolor{##df0030}{#1}");Qe("\\green","\\textcolor{##28ae7b}{#1}");Qe("\\gray","\\textcolor{gray}{#1}");Qe("\\purple","\\textcolor{##9d38bd}{#1}");Qe("\\blueA","\\textcolor{##ccfaff}{#1}");Qe("\\blueB","\\textcolor{##80f6ff}{#1}");Qe("\\blueC","\\textcolor{##63d9ea}{#1}");Qe("\\blueD","\\textcolor{##11accd}{#1}");Qe("\\blueE","\\textcolor{##0c7f99}{#1}");Qe("\\tealA","\\textcolor{##94fff5}{#1}");Qe("\\tealB","\\textcolor{##26edd5}{#1}");Qe("\\tealC","\\textcolor{##01d1c1}{#1}");Qe("\\tealD","\\textcolor{##01a995}{#1}");Qe("\\tealE","\\textcolor{##208170}{#1}");Qe("\\greenA","\\textcolor{##b6ffb0}{#1}");Qe("\\greenB","\\textcolor{##8af281}{#1}");Qe("\\greenC","\\textcolor{##74cf70}{#1}");Qe("\\greenD","\\textcolor{##1fab54}{#1}");Qe("\\greenE","\\textcolor{##0d923f}{#1}");Qe("\\goldA","\\textcolor{##ffd0a9}{#1}");Qe("\\goldB","\\textcolor{##ffbb71}{#1}");Qe("\\goldC","\\textcolor{##ff9c39}{#1}");Qe("\\goldD","\\textcolor{##e07d10}{#1}");Qe("\\goldE","\\textcolor{##a75a05}{#1}");Qe("\\redA","\\textcolor{##fca9a9}{#1}");Qe("\\redB","\\textcolor{##ff8482}{#1}");Qe("\\redC","\\textcolor{##f9685d}{#1}");Qe("\\redD","\\textcolor{##e84d39}{#1}");Qe("\\redE","\\textcolor{##bc2612}{#1}");Qe("\\maroonA","\\textcolor{##ffbde0}{#1}");Qe("\\maroonB","\\textcolor{##ff92c6}{#1}");Qe("\\maroonC","\\textcolor{##ed5fa6}{#1}");Qe("\\maroonD","\\textcolor{##ca337c}{#1}");Qe("\\maroonE","\\textcolor{##9e034e}{#1}");Qe("\\purpleA","\\textcolor{##ddd7ff}{#1}");Qe("\\purpleB","\\textcolor{##c6b9fc}{#1}");Qe("\\purpleC","\\textcolor{##aa87ff}{#1}");Qe("\\purpleD","\\textcolor{##7854ab}{#1}");Qe("\\purpleE","\\textcolor{##543b78}{#1}");Qe("\\mintA","\\textcolor{##f5f9e8}{#1}");Qe("\\mintB","\\textcolor{##edf2df}{#1}");Qe("\\mintC","\\textcolor{##e0e5cc}{#1}");Qe("\\grayA","\\textcolor{##f6f7f7}{#1}");Qe("\\grayB","\\textcolor{##f0f1f2}{#1}");Qe("\\grayC","\\textcolor{##e3e5e6}{#1}");Qe("\\grayD","\\textcolor{##d6d8da}{#1}");Qe("\\grayE","\\textcolor{##babec2}{#1}");Qe("\\grayF","\\textcolor{##888d93}{#1}");Qe("\\grayG","\\textcolor{##626569}{#1}");Qe("\\grayH","\\textcolor{##3b3e40}{#1}");Qe("\\grayI","\\textcolor{##21242c}{#1}");Qe("\\kaBlue","\\textcolor{##314453}{#1}");Qe("\\kaGreen","\\textcolor{##71B307}{#1}");var uv={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class u6{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 a6(l6,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Wp(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("",pn.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),s,c=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new Nt("Extra }",s)}else if(s.text==="EOF")throw new Nt("Unexpected end of input in a macro argument, expected '"+(t&&n?t[f]:"}")+"'",s);if(t&&n)if((c===0||c===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(c!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Nt("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 Nt("Use of the macro doesn't match its definition",s)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(r&&r[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Nt("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 Nt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,c=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var p=s[f];if(p.text==="#"){if(f===0)throw new Nt("Incomplete placeholder at end of macro body",p);if(p=s[--f],p.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(p.text))s.splice(f,2,...c[+p.text-1]);else throw new Nt("Not a valid argument number",p)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new 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 c=i.replace(/##/g,"");c.includes("#"+(s+1));)++s;for(var f=new Wp(i,this.settings),p=[],h=f.lex();h.text!=="EOF";)p.push(h),h=f.lex();p.reverse();var z={tokens:p,numArgs:s};return z}return i}isDefined(t){return this.macros.has(t)||Xi.hasOwnProperty(t)||pr.math.hasOwnProperty(t)||pr.text.hasOwnProperty(t)||uv.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Xi.hasOwnProperty(t)&&!Xi[t].primitive}}var Xp=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ro=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),c$={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Qp={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class mc{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 u6(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 Nt("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(mc.endOfExpression.has(i.text)||r&&i.text===r||t&&Xi[i.text]&&Xi[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 Nt("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var c,f,p=t.slice(0,r),h=t.slice(r+1);p.length===1&&p[0].type==="ordgroup"?c=p[0]:c={type:"ordgroup",mode:this.mode,body:p},h.length===1&&h[0].type==="ordgroup"?f=h[0]:f={type:"ordgroup",mode:this.mode,body:h};var z;return n==="\\\\abovefrac"?z=this.callFunction(n,[c,t[r],f],[]):z=this.callFunction(n,[c,f],[]),[z]}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 Nt("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new Nt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new Nt("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new Nt("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new Nt("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},p=[f];for(this.consume();this.fetch().text==="'";)p.push(f),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:p}}else if(Ro[s.text]){var h=Xp.test(s.text),z=[];for(z.push(new Tn(Ro[s.text])),this.consume();;){var D=this.fetch().text;if(!Ro[D]||Xp.test(D)!==h)break;z.unshift(new Tn(Ro[D])),this.consume()}var j=this.subparse(z);h?i={type:"ordgroup",mode:"math",body:j}:n={type:"ordgroup",mode:"math",body:j}}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=Xi[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new Nt("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new Nt("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new Nt("Can't use function '"+i+"' in math mode",n);var{args:c,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,c,f,n,t)}callFunction(t,r,n,i,s){var c={funcName:t,parser:this,token:i,breakOnTokenText:s},f=Xi[t];if(f&&f.handler)return f.handler(c,r,n);throw new Nt("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],c=0;c<n;c++){var f=r.argTypes&&r.argTypes[c],p=c<r.numOptionalArgs;("primitive"in r&&r.primitive&&f==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(f="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",f,p);if(p)s.push(h);else if(h!=null)i.push(h);else throw new Nt("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 Nt("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new Nt("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Nt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)i=c,s+=i.text,this.consume();if(s==="")throw new Nt("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 Nt("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 Nt("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!mg(s))throw new Nt("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),c}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var c=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),p=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:pn.range(n,p),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!uv.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Nt("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var s=i.text,c=t[n+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var f=t[n+2];n+1<r&&f&&f.type==="textord"&&f.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:pn.range(i,f),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:pn.range(i,c),text:"--"}),r-=1)}(s==="'"||s==="`")&&c.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:pn.range(i,c),text:s+s}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Nt(`\\verb assertion failed --
|
|
385
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Qp.hasOwnProperty(r[0])&&!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=Qp[r[0]]+r.slice(1));var s=i6.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var c;if(pr[this.mode][r]){this.settings.strict&&this.mode==="math"&&Tf.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,p=pn.range(t),h;S5(f)?h={type:"atom",mode:this.mode,family:f,loc:p,text:r}:h={type:f,mode:this.mode,loc:p,text:r},c=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(_g(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:pn.range(t),text:r};else return null;if(this.consume(),s)for(var z=0;z<s[0].length;z++){var D=s[0][z];if(!c$[D])throw new Nt("Unknown accent ' "+D+"'",t);var j=c$[D][this.mode]||c$[D].text;if(!j)throw new Nt("Accent "+D+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:pn.range(t),label:j,isStretchy:!1,isShifty:!0,base:c}}return c}}mc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Td=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new mc(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 Nt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Tn("\\df@tag")])}]}return i},cv=function(t,r,n){r.textContent="";var i=zd(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."),cv=function(){throw new Nt("KaTeX doesn't work in quirks mode.")});var c6=function(t,r){var n=zd(t,r).toMarkup();return n},$6=function(t,r){var n=new pd(r);return Td(t,n)},$v=function(t,r,n){if(n.throwOnError||!(t instanceof Nt))throw t;var i=Et(["katex-error"],[new Rn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},zd=function(t,r){var n=new pd(r);try{var i=Td(t,n);return m5(i,t,n)}catch(s){return $v(s,t,n)}},f6=function(t,r){var n=new pd(r);try{var i=Td(t,n);return g5(i,t,n)}catch(s){return $v(s,t,n)}},d6="0.16.47",h6={Span:ja,Anchor:sc,SymbolNode:Rn,SvgNode:Ri,PathNode:os,LineNode:Cf},p6={version:d6,render:cv,renderToString:c6,ParseError:Nt,SETTINGS_SCHEMA:Sf,__parse:$6,__renderToDomTree:zd,__renderToHTMLTree:f6,__setFontMetrics:J3,__defineSymbol:pe,__defineFunction:Dt,__defineMacro:Qe,__domTree:h6};function Rd(e,t){return p6.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function _6({node:e}){return Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:Rd(_s(e.value),!0)}})]})}function m6({chunk:e}){return Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:Rd(e.value,!0)}})}const Zp={path:null,href:null},g6=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function v6(e,t){return fi([...Gr(e),...Gr(t)])}function Jp(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 y6(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:fi(Gr(r.slice(2))),href:null}:r.startsWith(":")?{path:v6(t,r),href:null}:r.startsWith("//")?{path:fi(Jp(r)),href:null}:g6(r)?{path:null,href:r}:r.startsWith("/")?{path:fi([...Gr(t),...Jp(r)]),href:null}:Zp:Zp}function b6({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=y6(e,t);return s?Ce.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?Ce.jsx("a",{className:"descend",href:i,onClick:c=>{c.preventDefault(),r(i)},children:n}):Ce.jsx(Ce.Fragment,{children:n})}function fv(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $$(e){return fv(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 x6=/\$\$([\s\S]+?)\$\$|`([^`]+?)`|\[((?:[^\[\]]|\[[^\]]*\])*?)\]\(([^)]+?)\)/g;function dv(e,t,r){const n=String(e??""),i=[];let s="",c=0;const f=()=>{s&&(i.push(Ce.jsx("span",{dangerouslySetInnerHTML:{__html:s}},c++)),s="")};let p=0;for(const h of n.matchAll(x6))s+=$$(n.slice(p,h.index)),h[1]!==void 0?s+=Rd(h[1],!1):h[2]!==void 0?s+=`<code>${fv(h[2])}</code>`:(f(),i.push(Ce.jsx(b6,{target:h[4],documentPath:r,onNavigate:t,children:Ce.jsx("span",{dangerouslySetInnerHTML:{__html:$$(h[3])}})},c++))),p=h.index+h[0].length;return s+=$$(n.slice(p)),f(),i}function w6({node:e,onNavigate:t}){return Ce.jsxs("div",{className:"marklower",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx("p",{className:"chapter-prose",children:dv(_s(e.value),t,e.documentPath)})]})}function k6({chunk:e,onNavigate:t}){return Ce.jsx("p",{className:"chapter-prose",children:dv(e.value,t,e.documentPath)})}/**
|
|
386
|
-
* @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
387
|
-
*/(function(e){var t;if(typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof window<"u"&&(e=window),e.console==null&&(e.console={}),typeof e.console=="object"?t=e.console:t={},"log"in t||(t.log=function(){}),"warn"in t||(t.warn=t.log),typeof e.Opal<"u")return t.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),e.Opal;var r,n,i,s,c,f,p,h=e.Opal={};h.global=e,h.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var z=Function.prototype.call,D=Function.prototype.bind,j=Object.hasOwn||z.bind(Object.prototype.hasOwnProperty),he=Object.setPrototypeOf,be=z.bind(Array.prototype.slice),ee=z.bind(Array.prototype.splice),Y=4,X=Y;function ge(){return X+=2,X}h.uid=ge,h.id=function(x){return x.$$is_number?x*2+1:(x.$$id==null&&Z(x,"$$id",ge()),x.$$id)};var se=h.gvars={};h.exit=function(x){se.DEBUG&&t.log("Exited with status "+x)},h.exceptions=[],h.pop_exception=function(){var x=h.exceptions.pop();x?(se["!"]=x,se["@"]=x.$backtrace()):se["!"]=se["@"]=r};function me(x,N){if(x||(x=h.Exception||Error),p&&p.$raise)arguments.length>2?p.$raise(x.$new.apply(x,be(arguments,1))):p.$raise(x,N);else throw x.$new?x.$new(N):new x(N)}function Z(x,N,ve){typeof x=="string"?x[N]=ve:Object.defineProperty(x,N,{value:ve,enumerable:!1,configurable:!0,writable:!0})}h.prop=Z,h.defineProperty=h.prop,h.slice=be;var xe=h.truthy=function(x){return x!==!1&&r!==x&&x!==void 0&&x!==null&&(!(x instanceof Boolean)||x.valueOf()===!0)};h.falsy=function(x){return!xe(x)},h.type_error=function(x,N,ve,Le){x=x.$$class,Le&&ve?(Le=Le.$$class,me(h.TypeError,"can't convert "+x+" into "+N+" ("+x+"#"+ve+" gives "+Le+")")):me(h.TypeError,"no implicit conversion of "+x+" into "+N)},h.coerce_to=function(x,N,ve,Le){var Ze;return ve==="to_int"&&N===h.Integer&&x.$$is_number?x<0?Math.ceil(x):Math.floor(x):ve==="to_str"&&N===h.String&&x.$$is_string||h.is_a(x,N)?x:x["$respond_to?"].$$pristine&&x.$method_missing.$$pristine?(Ze=x[bt(ve)],(Ze==null||Ze.$$stub)&&h.type_error(x,N),Ze.apply(x,Le)):(x["$respond_to?"](ve)||h.type_error(x,N),Le==null&&(Le=[]),h.send(x,ve,Le))},h.respond_to=function(x,N,ve){if(x==null||!x.$$class)return!1;ve=!!ve;var Le=x[N];if(x["$respond_to?"].$$pristine){if(typeof Le=="function"&&!Le.$$stub)return!0;if(!x["$respond_to_missing?"].$$pristine)return h.send(x,x["$respond_to_missing?"],[N.substr(1),ve])}else return h.send(x,x["$respond_to?"],[N.substr(1),ve])},h.trace_class=!1,h.tracers_for_class=[];function fe(x){var N,ve,Le;for(N=0,ve=h.tracers_for_class.length;N<ve;N++)Le=h.tracers_for_class[N],Le.trace_object=x,Le.block.$call(Le)}function Ae(x,N){if(x.$$autoload[N].loaded){if(x.$$autoload[N].loaded&&!x.$$autoload[N].required&&x.$$autoload[N].exception)throw x.$$autoload[N].exception}else{x.$$autoload[N].loaded=!0;try{h.Kernel.$require(x.$$autoload[N].path)}catch(ve){throw x.$$autoload[N].exception=ve,ve}if(x.$$autoload[N].required=!0,x.$$const[N]!=null)return x.$$autoload[N].success=!0,x.$$const[N]}}function J(x,N){if(x){if(x.$$const[N]!=null)return x.$$const[N];if(x.$$autoload&&x.$$autoload[N])return Ae(x,N)}}function Ee(x,N){var ve,Le,Ze;if(x.length!==0)for(ve=0,Le=x.length;ve<Le;ve++){if(Ze=x[ve].$$const[N],Ze!=null)return Ze;if(x[ve].$$autoload&&x[ve].$$autoload[N])return Ae(x[ve],N)}}function ce(x,N){var ve,Le,Ze;if(x!=null)for(Ze=Je(x),ve=0,Le=Ze.length;ve<Le;ve++){if(Ze[ve].$$const&&j(Ze[ve].$$const,N))return Ze[ve].$$const[N];if(Ze[ve].$$autoload&&Ze[ve].$$autoload[N])return Ae(Ze[ve],N)}}function w(x,N){if(x==null||x.$$is_module)return ce(i,N)}function Se(x,N){return(x||i).$const_missing(N)}h.const_get_local=function(x,N,ve){var Le;if(x!=null)return x==="::"&&(x=i),!x.$$is_module&&!x.$$is_class&&me(h.TypeError,x.toString()+" is not a class/module"),Le=J(x,N),Le!=null||ve?Le:Se(x,N)},h.const_get_qualified=function(x,N,ve){var Le,Ze,$t,a=h.const_cache_version;if(N==null)return Le=J(i,x),Le??h.const_get_qualified(i,x,ve);if(x!=null)return x==="::"&&(x=i),!x.$$is_module&&!x.$$is_class&&me(h.TypeError,x.toString()+" is not a class/module"),(Ze=x.$$const_cache)==null&&(Z(x,"$$const_cache",Object.create(null)),Ze=x.$$const_cache),$t=Ze[N],$t==null||$t[0]!==a?((Le=J(x,N))!=null||(Le=ce(x,N))!=null,Ze[N]=[a,Le]):Le=$t[1],Le!=null||ve?Le:Se(x,N)},h.const_cache_version=1,h.const_get_relative=function(x,N,ve){var Le=x[0],Ze,$t=h.const_cache_version,a,ae;return(a=x.$$const_cache)==null&&(Z(x,"$$const_cache",Object.create(null)),a=x.$$const_cache),ae=a[N],ae==null||ae[0]!==$t?((Ze=J(Le,N))!=null||(Ze=Ee(x,N))!=null||(Ze=ce(Le,N))!=null||(Ze=w(Le,N))!=null,a[N]=[$t,Ze]):Ze=ae[1],Ze!=null||ve?Ze:Se(Le,N)};function I(x,N,ve){var Le=!0;return(x==null||x==="::")&&(x=i),ve.$$is_a_module&&((ve.$$name==null||ve.$$name===r)&&(ve.$$name=N),ve.$$base_module==null&&(ve.$$base_module=x)),x.$$const=x.$$const||Object.create(null),(N in x.$$const||"$$autoload"in x&&N in x.$$autoload)&&(Le=!1),x.$$const[N]=ve,x.$$=x.$$const,h.const_cache_version++,x===i&&(h[N]=ve),Z(x,N,ve),Le&&x.$const_added&&!x.$const_added.$$pristine&&x.$const_added(N),ve}h.const_set=I,h.constants=function(x,N){N==null&&(N=!0);var ve,Le=[x],Ze,$t,a={},ae;for(N&&(Le=Le.concat(Je(x))),N&&x.$$is_module&&(Le=Le.concat([h.Object]).concat(Je(h.Object))),Ze=0,$t=Le.length;Ze<$t&&(ve=Le[Ze],!(x!==i&&ve==i));Ze++){for(ae in ve.$$const)a[ae]=!0;if(ve.$$autoload)for(ae in ve.$$autoload)a[ae]=!0}return Object.keys(a)},h.const_remove=function(x,N){if(h.const_cache_version++,x.$$const[N]!=null){var ve=x.$$const[N];return delete x.$$const[N],ve}if(x.$$autoload&&x.$$autoload[N])return delete x.$$autoload[N],r;me(h.NameError,"constant "+x+"::"+x.$name()+" not defined")},h.const_get_relative_factory=function(x){return function(N,ve){return h.$$(x,N,ve)}},h.$$=h.const_get_relative,h.$$$=h.const_get_qualified,h.$r=h.const_get_relative_factory;function ne(x,N,ve){var Le;if(N!=null&&N.$$bridge?Le=function(){var ae=be(arguments),re=new(D.apply(N.$$constructor,[null].concat(ae)));return he(re,Le.$$prototype),re}:Le=function(){},x&&x!==r&&Z(Le,"displayName","::"+x),Z(Le,"$$name",x),Z(Le,"$$constructor",Le),Z(Le,"$$prototype",Le.prototype),Z(Le,"$$const",{}),Z(Le,"$$is_class",!0),Z(Le,"$$is_a_module",!0),Z(Le,"$$super",N),Z(Le,"$$cvars",{}),Z(Le,"$$own_included_modules",[]),Z(Le,"$$own_prepended_modules",[]),Z(Le,"$$ancestors",[]),Z(Le,"$$ancestors_cache_version",null),Z(Le,"$$subclasses",[]),Z(Le.$$prototype,"$$class",Le),h.Class&&he(Le,h.Class.prototype),N!=null){if(he(Le.$$prototype,N.$$prototype),ve!==!0)if(typeof WeakRef<"u"){var Ze,$t,a=[];for(Ze=0;Ze<N.$$subclasses.length;Ze++)$t=N.$$subclasses[Ze],$t.deref()!==void 0&&a.push($t);a.push(new WeakRef(Le)),N.$$subclasses=a}else N.$$subclasses.push(Le);N.$$meta&&h.build_class_singleton_class(Le)}return Le}h.allocate_class=ne;function B(x,N){var ve=J(x,N);if(ve)return ve.$$is_class||me(h.TypeError,N+" is not a class"),ve}function Fe(x,N){x.$$super!==N&&me(h.TypeError,"superclass mismatch for class "+x.$$name)}h.klass=function(x,N,ve){var Le;x==null||x=="::"?x=i:!x.$$is_class&&!x.$$is_module&&(x=x.$$class),N!=null&&(!N.hasOwnProperty||N.hasOwnProperty&&!N.hasOwnProperty("$$is_class"))&&(N.constructor&&N.constructor.name=="Function"?(Le=N,N=i):me(h.TypeError,"superclass must be a Class ("+(N.constructor&&(N.constructor.name||N.constructor.$$name)||typeof N)+" given)"));var Ze=B(x,ve);return Ze!=null?N&&Fe(Ze,N):(N==null&&(N=i),Ze=ne(ve,N),I(x,ve,Ze),N.$inherited&&N.$inherited(Ze),Le&&h.bridge(Le,Ze)),h.trace_class&&fe(Ze),Ze};function ue(x){var N=function(){},ve=N;return x&&Z(N,"displayName",x+".constructor"),Z(ve,"$$name",x),Z(ve,"$$prototype",N.prototype),Z(ve,"$$const",{}),Z(ve,"$$is_module",!0),Z(ve,"$$is_a_module",!0),Z(ve,"$$cvars",{}),Z(ve,"$$iclasses",[]),Z(ve,"$$own_included_modules",[]),Z(ve,"$$own_prepended_modules",[]),Z(ve,"$$ancestors",[ve]),Z(ve,"$$ancestors_cache_version",null),he(ve,h.Module.prototype),ve}h.allocate_module=ue;function U(x,N){var ve=J(x,N);return ve==null&&x===i&&(ve=ce(i,N)),ve&&!ve.$$is_module&&ve!==i&&me(h.TypeError,N+" is not a module"),ve}h.module=function(x,N){var ve;return x==null||x=="::"?x=i:!x.$$is_class&&!x.$$is_module&&(x=x.$$class),ve=U(x,N),ve==null&&(ve=ue(N),I(x,N,ve)),h.trace_class&&fe(ve),ve},h.get_singleton_class=function(x){return x.$$is_number&&me(h.TypeError,"can't define singleton"),x.$$meta?x.$$meta:x.hasOwnProperty("$$is_class")?h.build_class_singleton_class(x):x.hasOwnProperty("$$is_module")?h.build_module_singleton_class(x):h.build_object_singleton_class(x)};function v(x,N){x.hasOwnProperty("$$meta")?x.$$meta=N:Z(x,"$$meta",N),x.$$frozen?x.$$meta.$freeze():he(x,N.$$prototype)}h.build_class_singleton_class=function(x){if(x.$$meta)return x.$$meta;var N=x===n?c:h.get_singleton_class(x.$$super),ve=ne(null,N,!0);return Z(ve,"$$is_singleton",!0),Z(ve,"$$singleton_of",x),v(x,ve),Z(x,"$$class",h.Class),ve},h.build_module_singleton_class=function(x){if(x.$$meta)return x.$$meta;var N=ne(null,h.Module,!0);return Z(N,"$$is_singleton",!0),Z(N,"$$singleton_of",x),v(x,N),Z(x,"$$class",h.Module),N},h.build_object_singleton_class=function(x){var N=x.$$class,ve=ne(r,N,!0);return Z(ve,"$$is_singleton",!0),Z(ve,"$$singleton_of",x),delete ve.$$prototype.$$class,v(x,ve),ve},h.is_method=function(x){return x[0]==="$"&&x[1]!=="$"},h.instance_methods=function(x){for(var N=[],ve=[],Le=Je(x),Ze=0,$t=Le.length;Ze<$t;Ze++){var a=Le[Ze],ae=a.$$prototype;ae.hasOwnProperty("$$dummy")&&(ae=ae.$$define_methods_on);for(var re=Object.getOwnPropertyNames(ae),V=0,_e=re.length;V<_e;V++){var y=re[V];if(h.is_method(y)){var W=y.slice(1),Ue=ae[y];Ue.$$stub&&N.indexOf(W)===-1&&N.push(W),!Ue.$$stub&&ve.indexOf(W)===-1&&N.indexOf(W)===-1&&ve.push(W)}}}return ve},h.own_instance_methods=function(x){var N=[],ve=x.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);for(var Le=Object.getOwnPropertyNames(ve),Ze=0,$t=Le.length;Ze<$t;Ze++){var a=Le[Ze];if(h.is_method(a)){var ae=ve[a];if(!ae.$$stub){var re=a.slice(1);N.push(re)}}}return N},h.methods=function(x){return h.instance_methods(x.$$meta||x.$$class)},h.own_methods=function(x){return x.$$meta?h.own_instance_methods(x.$$meta):[]},h.receiver_methods=function(x){var N=h.get_singleton_class(x),ve=h.own_instance_methods(N),Le=h.own_instance_methods(N.$$super);return ve.concat(Le)},h.class_variables=function(x){var N=Je(x),ve,Le=N.length,Ze={};for(ve=Le-1;ve>=0;ve--){var $t=N[ve];for(var a in $t.$$cvars)Ze[a]=$t.$$cvars[a]}return Ze},h.class_variable_set=function(x,N,ve){var Le=Je(x),Ze,$t=Le.length;for(Ze=$t-2;Ze>=0;Ze--){var a=Le[Ze];if(j(a.$$cvars,N))return a.$$cvars[N]=ve,ve}return x.$$cvars[N]=ve,ve},h.class_variable_get=function(x,N,ve){if(j(x.$$cvars,N))return x.$$cvars[N];var Le=Je(x),Ze,$t=Le.length;for(Ze=0;Ze<$t;Ze++){var a=Le[Ze];if(j(a.$$cvars,N))return a.$$cvars[N]}return ve||me(h.NameError,"uninitialized class variable "+N+" in "+x.$name()),r};function $(x){return x.hasOwnProperty("$$iclass")&&x.hasOwnProperty("$$root")}function l(x){for(var N=[],ve,Le=Object.getPrototypeOf(x.$$prototype);Le&&!Le.hasOwnProperty("$$class");)ve=te(Le),ve&&N.push(ve),Le=Object.getPrototypeOf(Le);return N}function u(x){var N=[],ve,Le=Object.getPrototypeOf(x.$$prototype);if(x.$$prototype.hasOwnProperty("$$dummy"))for(;Le&&Le!==x.$$prototype.$$define_methods_on;)ve=te(Le),ve&&N.push(ve),Le=Object.getPrototypeOf(Le);return N}h.append_features=function(x,N){var ve=Je(x),Le=[];ve.indexOf(N)!==-1&&me(h.ArgumentError,"cyclic include detected");for(var Ze=0,$t=ve.length;Ze<$t;Ze++){var a=ve[Ze],ae=_(a);Z(ae,"$$included",!0),Le.push(ae)}var re=Je(N),V=T(Le),_e,y;if(re.indexOf(x)===-1)_e=N.$$prototype,y=Object.getPrototypeOf(N.$$prototype);else{for(var W=N.$$prototype,Ue=Object.getPrototypeOf(W);Ue!=null&&!(Ue.$$module===x&&$(Ue));)W=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var G=Object.getPrototypeOf(Ue);G.hasOwnProperty("$$iclass")&&!$(G);)G=Object.getPrototypeOf(G);_e=W,y=G}else _e=N.$$prototype,y=Object.getPrototypeOf(N.$$prototype)}he(_e,V.first),he(V.last,y),N.$$own_included_modules=l(N),h.const_cache_version++},h.prepend_features=function(x,N){var ve=Je(x),Le=[];ve.indexOf(N)!==-1&&me(h.ArgumentError,"cyclic prepend detected");for(var Ze=0,$t=ve.length;Ze<$t;Ze++){var a=ve[Ze],ae=_(a);Z(ae,"$$prepended",!0),Le.push(ae)}var re=T(Le),V=N.$$prototype,_e=Object.getPrototypeOf(V),y,W,Ue;V.hasOwnProperty("$$dummy")?y=V.$$define_methods_on:(y=S(N),d(N),Z(V,"$$dummy",!0),Z(V,"$$define_methods_on",y),he(V,y),he(y,_e));var G=Je(N);if(G.indexOf(x)===-1)for(W=V,Ue=Object.getPrototypeOf(V);Ue!=null&&!(Ue.hasOwnProperty("$$root")||Ue===y||!Ue.hasOwnProperty("$$iclass"));)Ue=Object.getPrototypeOf(Ue);else me(h.RuntimeError,"Prepending a module multiple times is not supported");he(W,re.first),he(re.last,Ue),N.$$own_prepended_modules=u(N),h.const_cache_version++};function d(x){for(var N=x.$$prototype,ve=Object.getOwnPropertyNames(N),Le=0;Le<ve.length;Le++){var Ze=ve[Le];h.is_method(Ze)&&delete N[Ze]}}function _(x){var N=S(x);return x.$$is_module&&x.$$iclasses.push(N),N}function S(x){var N={},ve=x.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);var Le=Object.getOwnPropertyNames(ve),Ze=Le.length,$t;for($t=0;$t<Ze;$t++){var a=Le[$t];Z(N,a,ve[a])}return Z(N,"$$iclass",!0),Z(N,"$$module",x),N}function T(x){var N=x.length,ve=x[0];if(Z(ve,"$$root",!0),N===1)return{first:ve,last:ve};for(var Le=ve,Ze=1;Ze<N;Ze++){var $t=x[Ze];he(Le,$t),Le=$t}return{first:x[0],last:x[N-1]}}h.bridge=function(x,N){x.hasOwnProperty("$$bridge")&&me(h.ArgumentError,"already bridged"),Z(x,"$$bridge",N),he(x.prototype,(N.$$super||h.Object).$$prototype),Z(N,"$$prototype",x.prototype),Z(N.$$prototype,"$$class",N),Z(N,"$$constructor",x),Z(N,"$$bridge",!0)};function te(x){if(!x.hasOwnProperty("$$dummy")){if(x.hasOwnProperty("$$iclass"))return x.$$module;if(x.hasOwnProperty("$$class"))return x.$$class}}function Ie(x){return x.$$own_prepended_modules.concat([x]).concat(x.$$own_included_modules)}function Je(x){if(!x)return[];if(x.$$ancestors_cache_version===h.const_cache_version)return x.$$ancestors;var N=[],ve,Le,Ze;for(ve=0,Le=Ie(x),Ze=Le.length;ve<Ze;ve++)N.push(Le[ve]);if(x.$$super)for(ve=0,Le=Je(x.$$super),Ze=Le.length;ve<Ze;ve++)N.push(Le[ve]);return x.$$ancestors_cache_version=h.const_cache_version,x.$$ancestors=N,N}h.ancestors=Je,h.included_modules=function(x){for(var N=[],ve=null,Le=Object.getPrototypeOf(x.$$prototype);Le&&Object.getPrototypeOf(Le);Le=Object.getPrototypeOf(Le))ve=te(Le),ve&&ve.$$is_module&&Le.$$iclass&&Le.$$included&&N.push(ve);return N},h.add_stubs=function(x){var N=h.BasicObject.$$prototype,ve,Le;x=x.split(",");for(var Ze=0,$t=x.length;Ze<$t;Ze++)ve=bt(x[Ze]),Le=N[ve],(Le==null||Le.$$stub)&&h.add_stub_for(N,ve)},h.add_stub_for=function(x,N){Z(x,N,h.stub_for(N))},h.stub_for=function(x){function N(){this.$method_missing.$$p=N.$$p,N.$$p=null;for(var ve=new Array(arguments.length),Le=0,Ze=ve.length;Le<Ze;Le++)ve[Le]=arguments[Le];return this.$method_missing.apply(this,[x.slice(1)].concat(ve))}return N.$$stub=!0,N},h.ac=function(x,N,ve,Le){var Ze="";ve.$$is_a_module?Ze+=ve.$$name+".":Ze+=ve.$$class.$$name+"#",Ze+=Le,me(h.ArgumentError,"["+Ze+"] wrong number of arguments (given "+x+", expected "+N+")")},h.block_ac=function(x,N,ve){var Le="`block in "+ve+"'";me(h.ArgumentError,Le+": wrong number of arguments (given "+x+", expected "+N+")")};function ut(x){return x.hasOwnProperty("$$meta")&&x.$$meta!==null?Je(x.$$meta):Je(x.$$class)}h.find_super=function(x,N,ve,Le,Ze){var $t=bt(N),a,ae;a=ut(x);for(var re=a.indexOf(ve.$$owner),V=re+1;V<a.length;V++){var _e=a[V],y=_e.$$prototype;if(y.hasOwnProperty("$$dummy")&&(y=y.$$define_methods_on),y.hasOwnProperty($t)){ae=y[$t];break}}return!Le&&ae&&ae.$$stub&&x.$method_missing.$$pristine&&me(h.NoMethodError,"super: no superclass method `"+N+"' for "+x,N),ae.$$stub&&!Ze?null:ae},h.find_block_super=function(x,N,ve,Le,Ze){var $t=N;return ve||me(h.RuntimeError,"super called outside of method"),Ze&&ve.$$define_meth&&me(h.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),ve.$$def&&($t=ve.$$jsid),h.find_super(x,$t,ve,Le)},h.find_super_dispatcher=h.find_super,h.find_iter_super_dispatcher=h.find_block_super,h.yield1=function(x,N){typeof x!="function"&&me(h.LocalJumpError,"no block given");var ve=x.$$has_top_level_mlhs_arg,Le=x.$$has_trailing_comma_in_args;return(x.length>1||(ve||Le)&&x.length===1)&&(N=h.to_ary(N)),(x.length>1||Le&&x.length===1)&&N.$$is_array?x.apply(null,N):x(N)},h.yieldX=function(x,N){if(typeof x!="function"&&me(h.LocalJumpError,"no block given"),x.length>1&&N.length===1&&N[0].$$is_array)return x.apply(null,N[0]);if(!N.$$is_array){for(var ve=new Array(N.length),Le=0,Ze=ve.length;Le<Ze;Le++)ve[Le]=N[Le];return x.apply(null,ve)}return x.apply(null,N)},h.rescue=function(x,N){for(var ve=0;ve<N.length;ve++){var Le=N[ve];if(Le.$$is_array){var Ze=h.rescue(x,Le);if(Ze)return Ze}else if(Le===h.JS.Error||Le["$==="](x))return Le}return null},h.is_a=function(x,N){if(N!=null&&x.$$meta===N||x.$$class===N)return!0;if(x.$$is_number&&N.$$is_number_class)return N.$$is_integer_class?x%1===0:!0;var ve=Je(x.$$is_class?h.get_singleton_class(x):x.$$meta||x.$$class);return ve.indexOf(N)!==-1},h.to_hash=function(x){if(x.$$is_hash)return x;if(x["$respond_to?"]("to_hash",!0)){var N=x.$to_hash();if(N.$$is_hash)return N;me(h.TypeError,"Can't convert "+x.$$class+" to Hash ("+x.$$class+"#to_hash gives "+N.$$class+")")}else me(h.TypeError,"no implicit conversion of "+x.$$class+" into Hash")},h.to_ary=function(x){if(x.$$is_array)return x;if(x["$respond_to?"]("to_ary",!0)){var N=x.$to_ary();if(N===r)return[x];if(N.$$is_array)return N;me(h.TypeError,"Can't convert "+x.$$class+" to Array ("+x.$$class+"#to_ary gives "+N.$$class+")")}else return[x]},h.to_a=function(x){if(x.$$is_array)return x.slice();if(x["$respond_to?"]("to_a",!0)){var N=x.$to_a();if(N===r)return[x];if(N.$$is_array)return N;me(h.TypeError,"Can't convert "+x.$$class+" to Array ("+x.$$class+"#to_a gives "+N.$$class+")")}else return[x]},h.extract_kwargs=function(x){var N=x[x.length-1];if(N!=null&&h.respond_to(N,"$to_hash",!0))return ee(x,x.length-1),N},h.kwrestargs=function(x,N){var ve=[],Le={},Ze,$t=x.$$smap;for(Ze in $t)N[Ze]||(ve.push(Ze),Le[Ze]=$t[Ze]);return h.hash2(ve,Le)};function _t(x,N){typeof N=="number"?x.$$arity=N:typeof N=="object"&&Object.assign(x,N)}var wt={};function bt(x){return wt[x]||(wt[x]="$"+x)}h.jsid=bt,h.send=function(x,N,ve,Le,Ze){var $t;return typeof N=="function"?($t=N,N=null):typeof N=="string"?$t=x[bt(N)]:me(h.NameError,"Passed method should be a string or a function"),h.send2(x,$t,N,ve,Le,Ze)},h.send2=function(x,N,ve,Le,Ze,$t){return N==null&&ve!=null&&x.$method_missing&&(N=x.$method_missing,Le=[ve].concat(Le)),_t(Ze,$t),typeof Ze=="function"&&(N.$$p=Ze),N.apply(x,Le)},h.refined_send=function(x,N,ve,Le,Ze,$t){var a,ae,re,V,_e,y,W,Ue,G,Me;for(V=ut(N),a=0;a<V.length;a++)for(_e=h.id(V[a]),ae=0;ae<x.length;ae++)for(y=x[ae],re=y.length-1;re>=0;re--)if(W=y[re],!(typeof W.$$refine_modules>"u")&&(Ue=W.$$refine_modules,!(typeof Ue[_e]>"u")&&(G=Ue[_e],typeof G.$$prototype[bt(ve)]<"u")))return Me=G.$$prototype[bt(ve)],h.send2(N,Me,ve,Le,Ze,$t);return h.send(N,ve,Le,Ze,$t)},h.lambda=function(x,N){return x.$$is_lambda=!0,_t(x,N),x},h.def=function(x,N,ve,Le){return _t(ve,Le),x===h.top?h.defn(h.Object,N,ve):!x.$$eval&&x.$$is_a_module?h.defn(x,N,ve):h.defs(x,N,ve)},h.defn=function(x,N,ve){Mt(x),ve.displayName=N,ve.$$owner=x;var Le=N.substr(1),Ze=x.$$prototype;if(Ze.hasOwnProperty("$$dummy")&&(Ze=Ze.$$define_methods_on),Z(Ze,N,ve),x.$$is_module){x.$$module_function&&h.defs(x,N,ve);for(var $t=0,a=x.$$iclasses,ae=a.length;$t<ae;$t++){var re=a[$t];Z(re,N,ve)}}var V=x.$$singleton_of;return x.$method_added&&!x.$method_added.$$stub&&!V?x.$method_added(Le):V&&V.$singleton_method_added&&!V.$singleton_method_added.$$stub&&V.$singleton_method_added(Le),Le},h.defs=function(x,N,ve,Le){return _t(ve,Le),(x.$$is_string||x.$$is_number)&&me(h.TypeError,"can't define singleton"),h.defn(h.get_singleton_class(x),N,ve)},h.rdef=function(x,N){j(x.$$prototype,N)||me(h.NameError,"method '"+N.substr(1)+"' not defined in "+x.$name()),delete x.$$prototype[N],x.$$is_singleton?x.$$prototype.$singleton_method_removed&&!x.$$prototype.$singleton_method_removed.$$stub&&x.$$prototype.$singleton_method_removed(N.substr(1)):x.$method_removed&&!x.$method_removed.$$stub&&x.$method_removed(N.substr(1))},h.udef=function(x,N){(!x.$$prototype[N]||x.$$prototype[N].$$stub)&&me(h.NameError,"method '"+N.substr(1)+"' not defined in "+x.$name()),h.add_stub_for(x.$$prototype,N),x.$$is_singleton?x.$$prototype.$singleton_method_undefined&&!x.$$prototype.$singleton_method_undefined.$$stub&&x.$$prototype.$singleton_method_undefined(N.substr(1)):x.$method_undefined&&!x.$method_undefined.$$stub&&x.$method_undefined(N.substr(1))};function At(x){return typeof x=="function"&&!x.$$stub}h.alias=function(x,N,ve){var Le=bt(N),Ze=bt(ve),$t,a;if(typeof x.$$prototype>"u"&&(x=h.Object),$t=x.$$prototype[Ze],x.$$eval)return h.alias(h.get_singleton_class(x),N,ve);if(!At($t)){for(var ae=x.$$super;typeof $t!="function"&&ae;)$t=ae[Ze],ae=ae.$$super;!At($t)&&x.$$is_module&&($t=h.Object.$$prototype[Ze]),At($t)||me(h.NameError,"undefined method `"+ve+"' for class `"+x.$name()+"'")}$t.$$alias_of&&($t=$t.$$alias_of),a=function(){var re=a.$$p,V,_e,y;for(V=new Array(arguments.length),_e=0,y=arguments.length;_e<y;_e++)V[_e]=arguments[_e];return a.$$p=null,h.send(this,$t,V,re)};try{Object.defineProperty(a,"length",{value:$t.length})}catch{}return a.displayName=N,a.$$arity=$t.$$arity==null?$t.length:$t.$$arity,a.$$parameters=$t.$$parameters,a.$$source_location=$t.$$source_location,a.$$alias_of=$t,a.$$alias_name=N,h.defn(x,Le,a),x},h.alias_gvar=function(x,N){return Object.defineProperty(se,x,{configurable:!0,enumerable:!0,get:function(){return se[N]},set:function(ve){se[N]=ve}}),r},h.alias_native=function(x,N,ve){var Le=bt(N),Ze=x.$$prototype[ve];return(typeof Ze!="function"||Ze.$$stub)&&me(h.NameError,"undefined native method `"+ve+"' for class `"+x.$name()+"'"),h.defn(x,Le,Ze),x},h.hash_init=function(x){x.$$smap=Object.create(null),x.$$map=Object.create(null),x.$$keys=[]},h.hash_clone=function(x,N){N.$$none=x.$$none,N.$$proc=x.$$proc;for(var ve=0,Le=x.$$keys,Ze=x.$$smap,$t=Le.length,a,ae;ve<$t;ve++)a=Le[ve],a.$$is_string?ae=Ze[a]:(ae=a.value,a=a.key),h.hash_put(N,a,ae)},h.hash_put=function(x,N,ve){if(N.$$is_string){j(x.$$smap,N)||x.$$keys.push(N),x.$$smap[N]=ve;return}var Le,Ze,$t;if(Le=x.$$by_identity?h.id(N):N.$hash(),!j(x.$$map,Le)){Ze={key:N,key_hash:Le,value:ve},x.$$keys.push(Ze),x.$$map[Le]=Ze;return}for(Ze=x.$$map[Le];Ze;){if(N===Ze.key||N["$eql?"](Ze.key)){$t=void 0,Ze.value=ve;break}$t=Ze,Ze=Ze.next}$t&&(Ze={key:N,key_hash:Le,value:ve},x.$$keys.push(Ze),$t.next=Ze)},h.hash_get=function(x,N){if(N.$$is_string)return j(x.$$smap,N)?x.$$smap[N]:void 0;var ve,Le;if(ve=x.$$by_identity?h.id(N):N.$hash(),j(x.$$map,ve))for(Le=x.$$map[ve];Le;){if(N===Le.key||N["$eql?"](Le.key))return Le.value;Le=Le.next}},h.hash_delete=function(x,N){var ve,Le=x.$$keys,Ze=Le.length,$t,a;if(N.$$is_string){if(typeof N!="string"&&(N=N.valueOf()),!j(x.$$smap,N))return;for(ve=0;ve<Ze;ve++)if(a=Le[ve],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===N){Le.splice(ve,1);break}return $t=x.$$smap[N],delete x.$$smap[N],$t}var ae=N.$hash();if(j(x.$$map,ae))for(var re=x.$$map[ae],V;re;){if(N===re.key||N["$eql?"](re.key)){for($t=re.value,ve=0;ve<Ze;ve++)if(Le[ve]===re){Le.splice(ve,1);break}return V&&re.next?V.next=re.next:V?delete V.next:re.next?x.$$map[ae]=re.next:delete x.$$map[ae],$t}V=re,re=re.next}},h.hash_rehash=function(x){for(var N=0,ve=x.$$keys.length,Le,Ze,$t;N<ve;N++)if(!x.$$keys[N].$$is_string&&(Le=x.$$keys[N].key.$hash(),Le!==x.$$keys[N].key_hash)){for(Ze=x.$$map[x.$$keys[N].key_hash],$t=void 0;Ze;){if(Ze===x.$$keys[N]){$t&&Ze.next?$t.next=Ze.next:$t?delete $t.next:Ze.next?x.$$map[x.$$keys[N].key_hash]=Ze.next:delete x.$$map[x.$$keys[N].key_hash];break}$t=Ze,Ze=Ze.next}if(x.$$keys[N].key_hash=Le,!j(x.$$map,Le)){x.$$map[Le]=x.$$keys[N];continue}for(Ze=x.$$map[Le],$t=void 0;Ze;){if(Ze===x.$$keys[N]){$t=void 0;break}$t=Ze,Ze=Ze.next}$t&&($t.next=x.$$keys[N])}},h.hash=function(){var x=arguments.length,N,ve,Le,Ze,$t,a;if(x===1&&arguments[0].$$is_hash)return arguments[0];if(ve=new h.Hash,h.hash_init(ve),x===1)if(N=arguments[0],arguments[0].$$is_array){for(Ze=N.length,Le=0;Le<Ze;Le++)N[Le].length!==2&&me(h.ArgumentError,"value not of length 2: "+N[Le].$inspect()),$t=N[Le][0],a=N[Le][1],h.hash_put(ve,$t,a);return ve}else{N=arguments[0];for($t in N)j(N,$t)&&(a=N[$t],h.hash_put(ve,$t,a));return ve}for(x%2!==0&&me(h.ArgumentError,"odd number of arguments for Hash"),Le=0;Le<x;Le+=2)$t=arguments[Le],a=arguments[Le+1],h.hash_put(ve,$t,a);return ve},h.hash2=function(x,N){var ve=new h.Hash;return ve.$$smap=N,ve.$$map=Object.create(null),ve.$$keys=x,ve},h.range=function(x,N,ve){var Le=new h.Range;return Le.begin=x,Le.end=N,Le.excl=ve,Le};var St=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];h.ivar=function(x){return St.indexOf(x)!==-1&&(x+="$"),x};function Mt(x){x.$$frozen&&me(h.FrozenError,"can't modify frozen "+x.$class()+": "+x,h.hash2(["receiver"],{receiver:x}))}h.deny_frozen_access=Mt,h.freeze=function(x){return Z(x,"$$frozen",!0),x.hasOwnProperty("$$id")||Z(x,"$$id",ge()),x.hasOwnProperty("$$meta")?x.$$meta.$freeze():Z(x,"$$meta",null),x.hasOwnProperty("$$comparable")||Z(x,"$$comparable",null),Object.seal(x),x},h.freeze_props=function(x){var N,ve,Le;for(N in x)ve=typeof N,!((ve==="string"||ve==="object")&&N[0]==="$")&&(Le=Object.getOwnPropertyDescriptor(x,N),Le&&Le.enumerable&&Le.writable&&function(){var Ze=x[N];Object.defineProperty(x,N,{get:function(){return Ze},set:function($t){Mt(x)},enumerable:!0})}())},h.escape_regexp=function(x){return x.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},h.global_regexp=function(x){return x.global?x:(x.$$g==null?x.$$g=new RegExp(x.source,(x.multiline?"gm":"g")+(x.ignoreCase?"i":"")):x.$$g.lastIndex=null,x.$$g)},h.global_multiline_regexp=function(x){var N,ve;return x.global&&x.multiline?x:(ve="gm"+(x.ignoreCase?"i":""),x.multiline?(x.$$g==null&&(x.$$g=new RegExp(x.source,ve)),N=x.$$g):(x.$$gm==null&&(x.$$gm=new RegExp(x.source,ve)),N=x.$$gm),N.lastIndex=null,N)},h.regexp=function(x,N){for(var ve,Le=typeof N<"u"&&N&&N.indexOf("i")>=0,Ze=0,$t=x.length;Ze<$t;Ze++)ve=x[Ze],ve instanceof RegExp&&(ve.ignoreCase!==Le&&h.Kernel.$warn("ignore case doesn't match for "+ve.source.$inspect(),h.hash({uplevel:1})),ve=ve.source),ve===""&&(ve="(?:"+ve+")"),x[Ze]=ve;return N?new RegExp(x.join(""),N):new RegExp(x.join(""))},h.modules={},h.loaded_features=["corelib/runtime"],h.current_dir=".",h.require_table={"corelib/runtime":!0},h.normalize=function(x){var N,ve,Le=[],Ze="/";h.current_dir!=="."&&(x=h.current_dir.replace(/\/*$/,"/")+x),x=x.replace(/^\.\//,""),x=x.replace(/\.(rb|opal|js)$/,""),N=x.split(Ze);for(var $t=0,a=N.length;$t<a;$t++)ve=N[$t],ve!==""&&(ve===".."?Le.pop():Le.push(ve));return Le.join(Ze)},h.loaded=function(x){var N,ve,Le;for(N=0,ve=x.length;N<ve;N++)Le=h.normalize(x[N]),!h.require_table[Le]&&(h.loaded_features.push(Le),h.require_table[Le]=!0)},h.load_normalized=function(x){h.loaded([x]);var N=h.modules[x];if(N){var ve=N(h);if(typeof Promise<"u"&&ve instanceof Promise)return ve.then(je(!0))}else{var Le=h.config.missing_require_severity,Ze="cannot load such file -- "+x;Le==="error"?me(h.LoadError,Ze):Le==="warning"&&t.warn("WARNING: LoadError: "+Ze)}return!0},h.load=function(x){return x=h.normalize(x),h.load_normalized(x)},h.require=function(x){return x=h.normalize(x),h.require_table[x]?!1:h.load_normalized(x)},h.encodings=Object.create(null),h.set_encoding=function(x,N,ve){typeof ve>"u"&&(ve="encoding"),(typeof x=="string"||x.$$frozen===!0)&&me(h.FrozenError,"can't modify frozen String");var Le=h.find_encoding(N);return Le===x[ve]||(x[ve]=Le),x},h.find_encoding=function(x){var N=h.encodings,ve=N[x]||N[x.toUpperCase()];return ve||me(h.ArgumentError,"unknown encoding name - "+x),ve},h.enc=function(x,N){var ve=new String(x);return ve=h.set_encoding(ve,N),ve.internal_encoding=ve.encoding,ve},h.binary=function(x){var N=new String(x);return h.set_encoding(N,"binary","internal_encoding")},h.last_promise=null,h.promise_unhandled_exception=!1,h.queue=function(x){if(h.last_promise)return h.last_promise=h.last_promise.then(function(){if(!h.promise_unhandled_exception)return x(h)}).catch(function(ve){h.respond_to(ve,"$full_message")&&(ve=ve.$full_message()),t.error(ve),h.promise_unhandled_exception=!0,h.exit(1)}),h.last_promise;var N=x(h);return typeof Promise=="function"&&typeof N=="object"&&N instanceof Promise&&(h.last_promise=N),N};function Ct(x,N){return typeof x=="number"&&typeof N=="number"}h.rb_plus=function(x,N){return Ct(x,N)?x+N:x["$+"](N)},h.rb_minus=function(x,N){return Ct(x,N)?x-N:x["$-"](N)},h.rb_times=function(x,N){return Ct(x,N)?x*N:x["$*"](N)},h.rb_divide=function(x,N){return Ct(x,N)?x/N:x["$/"](N)},h.rb_lt=function(x,N){return Ct(x,N)?x<N:x["$<"](N)},h.rb_gt=function(x,N){return Ct(x,N)?x>N:x["$>"](N)},h.rb_le=function(x,N){return Ct(x,N)?x<=N:x["$<="](N)},h.rb_ge=function(x,N){return Ct(x,N)?x>=N:x["$>="](N)};function nt(x,N){return typeof x=="number"&&typeof N=="number"||typeof x=="string"&&typeof N=="string"}function Ne(x,N){return nt(x,N)?x===N:xe(x["$=="](N))}h.eqeq=Ne,h.eqeqeq=function(x,N){return nt(x,N)?x===N:xe(x["$==="](N))},h.neqeq=function(x,N){return nt(x,N)?x!==N:xe(x["$!="](N))},h.not=function(x){return x==null||x===!1||r===x?!0:x===!0||x["$!"].$$pristine?!1:xe(x["$!"]())};function je(x){return function(){return x}}h.return_val=je,h.return_self=function(){return this},h.return_ivar=function(x){return function(){return this[x]==null?r:this[x]}},h.assign_ivar=function(x){return function(N){return Mt(this),this[x]=N}},h.assign_ivar_val=function(x,N){return function(){return Mt(this),this[x]=N}},h.ensure_kwargs=function(x){if(x==null)return h.hash2([],{});if(x.$$is_hash)return x;me(h.ArgumentError,"expected kwargs")},h.get_kwarg=function(x,N){return j(x.$$smap,N)||me(h.ArgumentError,"missing keyword: "+N),x.$$smap[N]},h.large_array_unpack=function(x){var N=x.split(","),ve=N.length,Le;for(Le=0;Le<ve;Le++)switch(N[Le][0]){case void 0:N[Le]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":N[Le]=+N[Le]}return N},h.BasicObject=n=ne("BasicObject",null),h.Object=i=ne("Object",h.BasicObject),h.Module=s=ne("Module",h.Object),h.Class=c=ne("Class",h.Module),h.Opal=f=ue("Opal"),h.Kernel=p=ue("Kernel"),he(h.BasicObject,h.Class.$$prototype),he(h.Object,h.Class.$$prototype),he(h.Module,h.Class.$$prototype),he(h.Class,h.Class.$$prototype),n.$$const.BasicObject=n,I(i,"BasicObject",n),I(i,"Object",i),I(i,"Module",s),I(i,"Class",c),I(i,"Opal",f),I(i,"Kernel",p),n.$$class=c,i.$$class=c,s.$$class=c,c.$$class=c,f.$$class=s,p.$$class=s,Z(i.$$prototype,"toString",function(){var x=this.$to_s();return x.$$is_string&&typeof x=="object"?x.valueOf():x}),Z(i.$$prototype,"$require",h.require),h.top=new i,h.top.$to_s=h.top.$inspect=je("main"),h.top.$define_method=Ke;function Ke(){var x=be(arguments),N=Ke.$$p;return Ke.$$p=null,h.send(i,"define_method",x,N)}h.NilClass=ne("NilClass",h.Object),I(i,"NilClass",h.NilClass),r=h.nil=new h.NilClass,r.$$id=Y,r.call=r.apply=function(){me(h.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),h.thrower=function(x){var N=new Error("unexpected "+x);return N.$thrower_type=x,N.$throw=function(ve){throw ve==null&&(ve=r),N.$v=ve,N},N},h.t_eval_return=h.thrower("return"),TypeError.$$super=Error,h.file_sources={}}).call(void 0);Opal.loaded(["corelib/runtime.js"]);Opal.modules["corelib/helpers"]=function(e){var t=e.type_error,r=e.coerce_to,n=e.module,i=e.defs,s=e.slice,c=e.eqeqeq,f=e.Kernel,p=e.truthy,h=e.Opal,z=e.nil,D=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(j){var he=n(j,"Opal");i(he,"$bridge",function(Y,X){return e.bridge(Y,X)}),i(he,"$coerce_to!",function(Y,X,ge,se){var me,Z,xe=z;return me=s(arguments,3),Z=me,xe=r(Y,X,ge,Z),c(X,xe)||f.$raise(t(Y,X,ge,xe)),xe},-4),i(he,"$coerce_to?",function(Y,X,ge,se){var me,Z,xe=z;return me=s(arguments,3),Z=me,!p(Y["$respond_to?"](ge))||(xe=r(Y,X,ge,Z),p(xe["$nil?"]()))?z:(c(X,xe)||f.$raise(t(Y,X,ge,xe)),xe)},-4),i(he,"$try_convert",function(Y,X,ge){return c(X,Y)?Y:p(Y["$respond_to?"](ge))?Y.$__send__(ge):z}),i(he,"$compare",function(Y,X){var ge=z;return ge=Y["$<=>"](X),p(ge===z)&&f.$raise(D("ArgumentError"),"comparison of "+Y.$class()+" with "+X.$class()+" failed"),ge}),i(he,"$destructure",function(Y){if(Y.length==1)return Y[0];if(Y.$$is_array)return Y;for(var X=new Array(Y.length),ge=0,se=X.length;ge<se;ge++)X[ge]=Y[ge];return X}),i(he,"$respond_to?",function(Y,X,ge){return ge==null&&(ge=!1),Y==null||!Y.$$class?!1:Y["$respond_to?"](X,ge)},-3),i(he,"$instance_variable_name!",function(Y){return Y=h["$coerce_to!"](Y,D("String"),"to_str"),p(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(Y))||f.$raise(D("NameError").$new("'"+Y+"' is not allowed as an instance variable name",Y)),Y}),i(he,"$class_variable_name!",function(Y){return Y=h["$coerce_to!"](Y,D("String"),"to_str"),p(Y.length<3||Y.slice(0,2)!=="@@")&&f.$raise(D("NameError").$new("`"+Y+"' is not allowed as a class variable name",Y)),Y}),i(he,"$const_name?",function(Y){return typeof Y!="string"&&(Y=h["$coerce_to!"](Y,D("String"),"to_str")),Y[0]===Y[0].toUpperCase()}),i(he,"$const_name!",function(Y){var X=this;return p(D("::","String","skip_raise")?"constant":z)&&(Y=h["$coerce_to!"](Y,D("String"),"to_str")),(!Y||Y[0]!=Y[0].toUpperCase())&&X.$raise(D("NameError"),"wrong constant name "+Y),Y}),i(he,"$pristine",function(Y,X){var ge,se;ge=s(arguments,1),se=ge;for(var me,Z,xe=se.length-1;xe>=0;xe--)me=se[xe],Z=Y.$$prototype[e.jsid(me)],Z&&!Z.$$stub&&(Z.$$pristine=!0);return z},-2);var be=[];return i(he,"$inspect",function(Y){var X=z,ge=!1;return function(){try{try{return Y===null?"null":Y===void 0?"undefined":typeof Y.$$class>"u"?Object.prototype.toString.apply(Y):typeof Y.$inspect!="function"||Y.$inspect.$$stub||be.indexOf(Y.$__id__())!==-1?"#<"+Y.$$class+":0x"+Y.$__id__().$to_s(16)+">":(be.push(Y.$__id__()),ge=!0,Y.$inspect())}catch(se){if(e.rescue(se,[D("Exception")])){X=se;try{return"#<"+Y.$$class+":0x"+Y.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw se}}finally{ge&&be.pop()}}()},-1)}("::")};Opal.modules["corelib/module"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.const_set,i=e.Object,s=e.return_ivar,c=e.assign_ivar,f=e.ivar,p=e.deny_frozen_access,h=e.freeze,z=e.prop,D=e.jsid,j=e.klass,he=e.defs,be=e.send,ee=e.def,Y=e.eqeqeq,X=e.Module,ge=e.Kernel,se=e.rb_lt,me=e.rb_gt,Z=e.slice,xe=e.to_a,fe=e.hash2,Ae=e.Opal,J=e.return_val,Ee=e.eqeq,ce=e.lambda,w=e.range,Se=e.send2,I=e.find_super,ne=e.alias,B=[],Fe=e.nil,ue=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(U,v,$){var l=j(U,v,"Module"),u=[l].concat($),d=e.$r(u);return he(l,"$allocate",function(){var S=this,T=e.allocate_module(Fe,function(){});return S!==e.Module&&Object.setPrototypeOf(T,S.$$prototype),T}),ee(l,"$initialize",function _(){var S=_.$$p||Fe,T=this;return _.$$p=null,S!==Fe?be(T,"module_eval",[],S.$to_proc()):Fe}),ee(l,"$===",function(S){var T=this;return t(S==null)?!1:e.is_a(S,T)}),ee(l,"$<",function(S){var T=this;Y(X,S)||ge.$raise(ue("TypeError"),"compared with non class/module");var te=T,Ie,Je,ut;if(te===S)return!1;for(Je=0,Ie=e.ancestors(T),ut=Ie.length;Je<ut;Je++)if(Ie[Je]===S)return!0;for(Je=0,Ie=e.ancestors(S),ut=Ie.length;Je<ut;Je++)if(Ie[Je]===T)return!1;return Fe}),ee(l,"$<=",function(S){var T=this,te=Fe;return t(te=T["$equal?"](S))?te:se(T,S)}),ee(l,"$>",function(S){var T=this;return Y(X,S)||ge.$raise(ue("TypeError"),"compared with non class/module"),se(S,T)}),ee(l,"$>=",function(S){var T=this,te=Fe;return t(te=T["$equal?"](S))?te:me(T,S)}),ee(l,"$<=>",function(S){var T=this,te=Fe;return T===S?0:!Y(X,S)||(te=se(T,S),t(te["$nil?"]()))?Fe:t(te)?-1:1}),ee(l,"$alias_method",function(S,T){var te=this;return p(te),S=r(S,ue("String"),"to_str"),T=r(T,ue("String"),"to_str"),e.alias(te,S,T),te}),ee(l,"$alias_native",function(S,T){var te=this;return T==null&&(T=S),p(te),e.alias_native(te,S,T),te},-2),ee(l,"$ancestors",function(){var S=this;return e.ancestors(S)}),ee(l,"$append_features",function(S){var T=this;return p(S),e.append_features(T,S),T}),ee(l,"$attr_accessor",function(S){var T,te,Ie=this;return T=Z(arguments),te=T,be(Ie,"attr_reader",xe(te)),be(Ie,"attr_writer",xe(te))},-1),ee(l,"$attr",function(S){var T,te,Ie=this;return T=Z(arguments),te=T,te.length==2&&(te[1]===!0||te[1]===!1)?(Ie.$warn("optional boolean argument is obsoleted",fe(["uplevel"],{uplevel:1})),te[1]?Ie.$attr_accessor(te[0]):Ie.$attr_reader(te[0]),Fe):be(Ie,"attr_reader",xe(te))},-1),ee(l,"$attr_reader",function(S){var T,te,Ie=this;T=Z(arguments),te=T,p(Ie);for(var Je=Ie.$$prototype,ut=te.length-1;ut>=0;ut--){var _t=te[ut],wt=D(_t),bt=f(_t),At=s(bt);e.prop(Je,bt,Fe),At.$$parameters=[],At.$$arity=0,e.defn(Ie,wt,At)}return Fe},-1),ee(l,"$attr_writer",function(S){var T,te,Ie=this;T=Z(arguments),te=T,p(Ie);for(var Je=Ie.$$prototype,ut=te.length-1;ut>=0;ut--){var _t=te[ut],wt=D(_t+"="),bt=f(_t),At=c(bt);At.$$parameters=[["req"]],At.$$arity=1,e.prop(Je,bt,Fe),e.defn(Ie,wt,At)}return Fe},-1),ee(l,"$autoload",function(S,T){var te=this;return p(te),d("Opal")["$const_name?"](S)||ge.$raise(ue("NameError"),"autoload must be constant name: "+S),T==""&&ge.$raise(ue("ArgumentError"),"empty file name"),te.$$const.hasOwnProperty(S)||(te.$$autoload||(te.$$autoload={}),e.const_cache_version++,te.$$autoload[S]={path:T,loaded:!1,required:!1,success:!1,exception:!1},te.$const_added&&!te.$const_added.$$pristine&&te.$const_added(S)),Fe}),ee(l,"$autoload?",function(S){var T=this;if(T.$$autoload&&T.$$autoload[S]&&!T.$$autoload[S].required&&!T.$$autoload[S].success)return T.$$autoload[S].path;for(var te=T.$ancestors(),Ie=0,Je=te.length;Ie<Je;Ie++)if(te[Ie].$$autoload&&te[Ie].$$autoload[S]&&!te[Ie].$$autoload[S].required&&!te[Ie].$$autoload[S].success)return te[Ie].$$autoload[S].path;return Fe}),ee(l,"$class_variables",function(){var S=this;return Object.keys(e.class_variables(S))}),ee(l,"$class_variable_get",function(S){var T=this;return S=Ae["$class_variable_name!"](S),e.class_variable_get(T,S,!1)}),ee(l,"$class_variable_set",function(S,T){var te=this;return p(te),S=Ae["$class_variable_name!"](S),e.class_variable_set(te,S,T)}),ee(l,"$class_variable_defined?",function(S){var T=this;return S=Ae["$class_variable_name!"](S),e.class_variables(T).hasOwnProperty(S)}),ee(l,"$const_added",J(Fe)),Ae.$pristine(l,"const_added"),ee(l,"$remove_class_variable",function(S){var T=this;if(p(T),S=Ae["$class_variable_name!"](S),e.hasOwnProperty.call(T.$$cvars,S)){var te=T.$$cvars[S];return delete T.$$cvars[S],te}else ge.$raise(ue("NameError"),"cannot remove "+S+" for "+T)}),ee(l,"$constants",function(S){var T=this;return S==null&&(S=!0),e.constants(T,S)},-1),he(l,"$constants",function(S){var T=this;if(S==null){var te=(T.$$nesting||[]).concat(i),Ie,Je={},ut,_t;for(ut=0,_t=te.length;ut<_t;ut++)for(Ie in te[ut].$$const)Je[Ie]=!0;return Object.keys(Je)}else return e.constants(T,S)},-1),he(l,"$nesting",function(){var S=this;return S.$$nesting||[]}),ee(l,"$const_defined?",function(S,T){var te=this;T==null&&(T=!0),S=d("Opal")["$const_name!"](S),t(S["$=~"](ue(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ue("NameError").$new("wrong constant name "+S,S));var Ie,Je=[te],ut,_t;for(T&&(Je=Je.concat(e.ancestors(te)),te.$$is_module&&(Je=Je.concat([i]).concat(e.ancestors(i)))),ut=0,_t=Je.length;ut<_t;ut++)if(Ie=Je[ut],Ie.$$const[S]!=null||Ie.$$autoload&&Ie.$$autoload[S]&&!Ie.$$autoload[S].required&&!Ie.$$autoload[S].success)return!0;return!1},-2),ee(l,"$const_get",function(S,T){var te=this;return T==null&&(T=!0),S=d("Opal")["$const_name!"](S),S.indexOf("::")===0&&S!=="::"&&(S=S.slice(2)),t(S.indexOf("::")!=-1&&S!="::")?be(S.$split("::"),"inject",[te],function(Je,ut){return Je==null&&(Je=Fe),ut==null&&(ut=Fe),Je.$const_get(ut)}):(t(S["$=~"](ue(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ue("NameError").$new("wrong constant name "+S,S)),T?e.$$([te],S):e.const_get_local(te,S))},-2),ee(l,"$const_missing",function(S){var T=this,te=Fe;return te=Ee(T,i)?S:""+T+"::"+S,ge.$raise(ue("NameError").$new("uninitialized constant "+te,S))}),ee(l,"$const_set",function(S,T){var te=this;return p(te),S=Ae["$const_name!"](S),(t(S["$!~"](ue(Ae,"CONST_NAME_REGEXP")))||t(S["$start_with?"]("::")))&&ge.$raise(ue("NameError").$new("wrong constant name "+S,S)),n(te,S,T),T}),ee(l,"$public_constant",J(Fe)),ee(l,"$define_method",function _(S,T){var te=_.$$p||Fe,Ie=this,Je=Fe,ut=Fe;return _.$$p=null,p(Ie),T===void 0&&te===Fe&&ge.$raise(ue("ArgumentError"),"tried to create a Proc object without a block"),te=t(Je=te)?Je:Y(ue("Proc"),ut=T)?T:Y(ue("Method"),ut)?T.$to_proc().$$unbound:Y(ue("UnboundMethod"),ut)?ce(function _t(wt){var bt,At,St=_t.$$s==null?this:_t.$$s,Mt=Fe;return bt=Z(arguments),At=bt,Mt=T.$bind(St),be(Mt,"call",xe(At))},{$$arity:-1,$$s:Ie}):ge.$raise(ue("TypeError"),"wrong argument type "+te.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(te.$$proxy_target=te,te=new Proxy(te,{apply:function(_t,wt,bt){var At=_t.$$jsid;_t.$$jsid=S;try{return _t.apply(wt,bt)}catch(St){if(St===_t.$$brk||St===_t.$$ret)return St.$v;throw St}finally{_t.$$jsid=At}}})),te.$$jsid=S,te.$$s=null,te.$$def=te,te.$$define_meth=!0,e.defn(Ie,D(S),te)},-2),ee(l,"$freeze",function(){var S=this;return t(S["$frozen?"]())?S:(S.hasOwnProperty("$$base_module")||z(S,"$$base_module",null),h(S))}),ee(l,"$remove_method",function(S){var T,te,Ie=this;T=Z(arguments),te=T;for(var Je=0;Je<te.length;Je++){var ut=te[Je];typeof ut=="string"||ut.$$is_string||Ie.$raise(ue("TypeError"),""+Ie.$name()+" is not a symbol nor a string"),p(Ie),e.rdef(Ie,"$"+ut)}return Ie},-1),ee(l,"$singleton_class?",function(){var S=this;return!!S.$$is_singleton}),ee(l,"$include",function(S){var T,te,Ie=this;T=Z(arguments),te=T;for(var Je=te.length-1;Je>=0;Je--){var ut=te[Je];ut.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+ut.$class()+" (expected Module)"),ut.$append_features(Ie),ut.$included(Ie)}return Ie},-1),ee(l,"$included_modules",function(){var S=this;return e.included_modules(S)}),ee(l,"$include?",function(S){var T=this;S.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+S.$class()+" (expected Module)");var te,Ie,Je,ut=e.ancestors(T);for(te=0,Ie=ut.length;te<Ie;te++)if(Je=ut[te],Je===S&&Je!==T)return!0;return!1}),ee(l,"$instance_method",function(S){var T=this,te=T.$$prototype[D(S)];return(!te||te.$$stub)&&ge.$raise(ue("NameError").$new("undefined method `"+S+"' for class `"+T.$name()+"'",S)),ue("UnboundMethod").$new(T,te.$$owner||T,te,S)}),ee(l,"$instance_methods",function(S){var T=this;return S==null&&(S=!0),t(S)?e.instance_methods(T):e.own_instance_methods(T)},-1),ee(l,"$included",J(Fe)),ee(l,"$extended",J(Fe)),ee(l,"$extend_object",function(S){return p(S),Fe}),ee(l,"$method_added",function(S){return Z(arguments),Fe},-1),ee(l,"$method_removed",function(S){return Z(arguments),Fe},-1),ee(l,"$method_undefined",function(S){return Z(arguments),Fe},-1),ee(l,"$module_eval",function _(S){var T=_.$$p||Fe,te,Ie,Je,ut=this,_t=Fe,wt=Fe,bt=Fe,At=Fe,St=Fe,Mt=Fe;_.$$p=null,te=Z(arguments),Ie=te,t(T["$nil?"]())&&t(!!e.compile)?(t(w(1,3,!1)["$cover?"](Ie.$size()))||ge.$raise(ue("ArgumentError"),"wrong number of arguments (0 for 1..3)"),Je=[].concat(xe(Ie)),_t=Je[0]==null?Fe:Je[0],wt=Je[1]==null?Fe:Je[1],Je[2]==null||Je[2],bt=fe(["file","eval"],{file:t(At=wt)?At:"(eval)",eval:!0}),St=e.hash({arity_check:!1}).$merge(bt),Mt=Ae.$compile(_t,St),T=be(ge,"proc",[],function Ne(){var je=Ne.$$s==null?this:Ne.$$s;return new Function("Opal,self","return "+Mt)(e,je)},{$$s:ut})):t(Ie["$any?"]())&&ge.$raise(ue("ArgumentError"),"wrong number of arguments ("+Ie.$size()+` for 0)
|
|
388
|
-
|
|
389
|
-
NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
|
|
390
|
-
`);var Ct=T.$$s,nt;return T.$$s=null,nt=T.apply(ut,[ut]),T.$$s=Ct,nt},-1),ee(l,"$module_exec",function _(S){var T=_.$$p||Fe,te,Ie,Je=this;_.$$p=null,te=Z(arguments),Ie=te,T===Fe&&ge.$raise(ue("LocalJumpError"),"no block given");var ut=T.$$s,_t;return T.$$s=null,_t=T.apply(Je,Ie),T.$$s=ut,_t},-1),ee(l,"$method_defined?",function(S){var T=this,te=T.$$prototype[D(S)];return!!te&&!te.$$stub}),ee(l,"$module_function",function(S){var T,te,Ie=this;if(T=Z(arguments),te=T,p(Ie),te.length===0)return Ie.$$module_function=!0,Fe;for(var Je=0,ut=te.length;Je<ut;Je++){var _t=te[Je],wt=D(_t),bt=Ie.$$prototype[wt];e.defs(Ie,wt,bt)}return te.length===1?te[0]:te},-1),ee(l,"$name",function(){var S=this;if(S.$$full_name)return S.$$full_name;for(var T=[],te=S;te;){if(te.$$name===Fe||te.$$name==null)return Fe;if(T.unshift(te.$$name),te=te.$$base_module,te===i)break}return T.length===0?Fe:S.$$full_name=T.join("::")}),ee(l,"$prepend",function(S){var T,te,Ie=this;T=Z(arguments),te=T,te.length===0&&ge.$raise(ue("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var Je=te.length-1;Je>=0;Je--){var ut=te[Je];ut.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+ut.$class()+" (expected Module)"),ut.$prepend_features(Ie),ut.$prepended(Ie)}return Ie},-1),ee(l,"$prepend_features",function(S){var T=this;return p(S),T.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+T.$class()+" (expected Module)"),e.prepend_features(T,S),T}),ee(l,"$prepended",J(Fe)),ee(l,"$remove_const",function(S){var T=this;return p(T),e.const_remove(T,S)}),ee(l,"$to_s",function(){var S=this,T=Fe;return t(T=e.Module.$name.call(S))?T:"#<"+(S.$$is_module?"Module":"Class")+":0x"+S.$__id__().$to_s(16)+">"}),ee(l,"$undef_method",function(S){var T,te,Ie=this;T=Z(arguments),te=T;for(var Je=0;Je<te.length;Je++){var ut=te[Je];typeof ut=="string"||ut.$$is_string||Ie.$raise(ue("TypeError"),""+Ie.$name()+" is not a symbol nor a string"),p(Ie),e.udef(Ie,"$"+te[Je])}return Ie},-1),ee(l,"$instance_variables",function(){var S=this,T=Fe;T=(e.Module.$$nesting=u,S.$constants());var te=[];for(var Ie in S)S.hasOwnProperty(Ie)&&Ie.charAt(0)!=="$"&&Ie!=="constructor"&&!T["$include?"](Ie)&&te.push("@"+Ie);return te}),ee(l,"$dup",function _(){var S=_.$$p||Fe,T=this,te=Fe;return _.$$p=null,te=Se(T,I(T,"dup",_,!1,!0),"dup",[],S),te.$copy_class_variables(T),te.$copy_constants(T),te}),ee(l,"$copy_class_variables",function(S){var T=this;for(var te in S.$$cvars)T.$$cvars[te]=S.$$cvars[te]}),ee(l,"$copy_constants",function(S){var T=this,te,Ie=S.$$const;for(te in Ie)n(T,te,Ie[te])}),ee(l,"$refine",function _(S){var T=_.$$p||Fe,te,Ie=this,Je=Fe,ut=Fe,_t=Fe;return _.$$p=null,te=[Ie,Fe,Fe],Je=te[0],ut=te[1],_t=te[2],_t=e.id(S),typeof Ie.$$refine_modules>"u"&&(Ie.$$refine_modules=Object.create(null)),typeof Ie.$$refine_modules[_t]>"u"?ut=Ie.$$refine_modules[_t]=ue("Refinement").$new():ut=Ie.$$refine_modules[_t],ut.refinement_module=Je,ut.refined_class=S,be(ut,"class_exec",[],T.$to_proc()),ut}),ee(l,"$refinements",function(){var S=this,T=S.$$refine_modules,te=fe([],{});if(typeof T>"u")return te;for(var Ie in T)te["$[]="](T[Ie].refined_class,T[Ie]);return te}),ee(l,"$using",function(S){return ge.$raise("Module#using is not permitted in methods")}),ne(l,"class_eval","module_eval"),ne(l,"class_exec","module_exec"),ne(l,"inspect","to_s")}("::",null,B),function(U,v){var $=j(U,v,"Refinement"),l=$.$$prototype;return l.refinement_module=l.refined_class=Fe,$.$attr_reader("refined_class"),ee($,"$inspect",function u(){var d=u.$$p||Fe,_=this;return u.$$p=null,t(_.refinement_module)?"#<refinement:"+_.refined_class.$inspect()+"@"+_.refinement_module.$inspect()+">":Se(_,I(_,"inspect",u,!1,!0),"inspect",[],d)})}("::",X)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,c=e.return_val,f=e.slice,p=e.send2,h=e.find_super,z=e.Kernel,D=e.alias,j=e.top,he=[],be=e.nil,ee=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),j.$require("corelib/module"),function(Y,X,ge){var se=t(Y,X,"Class"),me=[se].concat(ge),Z=e.$r(me);return n(se,"$new",function xe(fe){var Ae=xe.$$p||be;if(xe.$$p=null,fe==null&&(fe=Z("Object")),!fe.$$is_class)throw e.TypeError.$new("superclass must be a Class");var J=e.allocate_class(be,fe);return fe.$inherited(J),Ae!==be&&r(J,"class_eval",[],Ae.$to_proc()),J},-1),i(se,"$allocate",function(){var fe=this,Ae=new fe.$$constructor;return Ae.$$id=e.uid(),Ae}),i(se,"$descendants",function(){var fe=this;return s(fe.$subclasses(),r(fe.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(se,"$inherited",c(be)),i(se,"$initialize_dup",function(fe){var Ae=this;Ae.$initialize_copy(fe),Ae.$$name=null,Ae.$$full_name=null}),i(se,"$new",function xe(fe){var Ae=xe.$$p||be,J,Ee,ce=this;xe.$$p=null,J=f(arguments),Ee=J;var w=ce.$allocate();return e.send(w,w.$initialize,Ee,Ae),w},-1),i(se,"$subclasses",function(){var fe=this;if(typeof WeakRef<"u"){var Ae,J,Ee=[];for(Ae=0;Ae<fe.$$subclasses.length;Ae++)J=fe.$$subclasses[Ae].deref(),J!==void 0&&Ee.push(J);return Ee}else return fe.$$subclasses}),i(se,"$superclass",function(){var fe=this;return fe.$$super||be}),i(se,"$to_s",function xe(){xe.$$p;var fe=this;xe.$$p=null;var Ae=fe.$$singleton_of;return Ae&&Ae.$$is_a_module?"#<Class:"+Ae.$name()+">":Ae?"#<Class:#<"+Ae.$$class.$name()+":0x"+e.id(Ae).$to_s(16)+">>":p(fe,h(fe,"to_s",xe,!1,!0),"to_s",[],null)}),i(se,"$attached_object",function(){var fe=this;if(fe.$$singleton_of!=null)return fe.$$singleton_of;z.$raise(ee("TypeError"),"`"+fe+"' is not a singleton class")}),D(se,"inspect","to_s")}("::",null,he)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,c=e.Opal,f=e.truthy,p=e.range,h=e.Kernel,z=e.to_a,D=e.hash2,j=e.send,he=e.eqeq,be=e.rb_ge,ee=e.nil,Y=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(X,ge){var se=t(X,ge,"BasicObject");return n(se,"$initialize",function(Z){return r(arguments),ee},-1),n(se,"$==",function(Z){var xe=this;return xe===Z}),n(se,"$eql?",function(Z){var xe=this;return xe["$=="](Z)}),i(se,"equal?","=="),n(se,"$__id__",function(){var Z=this;return Z.$$id!=null||e.prop(Z,"$$id",e.uid()),Z.$$id}),n(se,"$__send__",function me(Z,xe){var fe=me.$$p||ee,Ae,J,Ee=this;me.$$p=null,Ae=r(arguments,1),J=Ae,Z.$$is_string||Ee.$raise(Y("TypeError"),""+Ee.$inspect()+" is not a symbol nor a string");var ce=Ee[e.jsid(Z)];return ce?(fe!==ee&&(ce.$$p=fe),ce.apply(Ee,J)):(fe!==ee&&(Ee.$method_missing.$$p=fe),Ee.$method_missing.apply(Ee,[Z].concat(J)))},-2),n(se,"$!",s(!1)),c.$pristine("!"),n(se,"$!=",function(Z){var xe=this;return xe["$=="](Z)["$!"]()}),n(se,"$instance_eval",function me(Z){var xe=me.$$p||ee,fe,Ae,J,Ee=this,ce=ee,w=ee,Se=ee,I=ee,ne=ee,B=ee;if(me.$$p=null,fe=r(arguments),Ae=fe,f(xe["$nil?"]())&&f(!!e.compile))f(p(1,3,!1)["$cover?"](Ae.$size()))||h.$raise(Y("ArgumentError"),"wrong number of arguments (0 for 1..3)"),J=[].concat(z(Ae)),ce=J[0]==null?ee:J[0],w=J[1]==null?ee:J[1],J[2]==null||J[2],Se=D(["file","eval"],{file:f(I=w)?I:"(eval)",eval:!0}),ne=e.hash({arity_check:!1}).$merge(Se),B=c.$compile(ce,ne),xe=j(h,"proc",[],function U(){var v=U.$$s==null?this:U.$$s;return new Function("Opal,self","return "+B)(e,v)},{$$s:Ee});else{if(f(xe["$nil?"]())&&f(be(Ae.$length(),1))&&he(Ae.$first()["$[]"](0),"@"))return Ee.$instance_variable_get(Ae.$first());f(Ae["$any?"]())&&h.$raise(Y("ArgumentError"),"wrong number of arguments ("+Ae.$size()+" for 0)")}var Fe=xe.$$s,ue;if(xe.$$s=null,Ee.$$is_a_module){Ee.$$eval=!0;try{ue=xe.call(Ee,Ee)}finally{Ee.$$eval=!1}}else ue=xe.call(Ee,Ee);return xe.$$s=Fe,ue},-1),n(se,"$instance_exec",function me(Z){var xe=me.$$p||ee,fe,Ae,J=this;me.$$p=null,fe=r(arguments),Ae=fe,f(xe)||h.$raise(Y("ArgumentError"),"no block given");var Ee=xe.$$s,ce;if(xe.$$s=null,J.$$is_a_module){J.$$eval=!0;try{ce=xe.apply(J,Ae)}finally{J.$$eval=!1}}else ce=xe.apply(J,Ae);return xe.$$s=Ee,ce},-1),n(se,"$singleton_method_added",function(Z){return r(arguments),ee},-1),n(se,"$singleton_method_removed",function(Z){return r(arguments),ee},-1),n(se,"$singleton_method_undefined",function(Z){return r(arguments),ee},-1),n(se,"$method_missing",function me(Z,xe){me.$$p;var fe,Ae,J=this,Ee=ee;return me.$$p=null,fe=r(arguments,1),Ae=fe,Ee=c.$inspect(J),h.$raise(Y("NoMethodError").$new("undefined method `"+Z+"' for "+Ee,Z,Ae),ee,h.$caller(1))},-2),c.$pristine(se,"method_missing"),n(se,"$respond_to_missing?",function(Z,xe){return!1},-2)}("::",null)};Opal.modules["corelib/kernel"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.respond_to,i=e.Opal,s=e.deny_frozen_access,c=e.freeze,f=e.freeze_props,p=e.jsid,h=e.module,z=e.return_val,D=e.def,j=e.Kernel,he=e.gvars,be=e.slice,ee=e.send,Y=e.to_a,X=e.ensure_kwargs,ge=e.eqeq,se=e.hash2,me=e.rb_plus,Z=e.eqeqeq,xe=e.return_self,fe=e.rb_le,Ae=e.extract_kwargs,J=e.rb_lt,Ee=e.Object,ce=e.alias,w=e.klass,Se=[],I=e.nil,ne=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(B,Fe){var ue=h(B,"Kernel"),U=[ue].concat(Fe),v=e.$r(U);D(ue,"$=~",z(!1)),D(ue,"$!~",function(u){var d=this;return d["$=~"](u)["$!"]()}),D(ue,"$===",function(u){var d=this,_=I;return t(_=d.$object_id()["$=="](u.$object_id()))?_:d["$=="](u)}),D(ue,"$<=>",function(u){var d=this;d.$$comparable=!0;var _=d["$=="](u);return _&&_!==I?0:I}),D(ue,"$method",function(u){var d=this,_=d[p(u)];return(!_||_.$$stub)&&j.$raise(ne("NameError").$new("undefined method `"+u+"' for class `"+d.$class()+"'",u)),ne("Method").$new(d,_.$$owner||d.$class(),_,u)}),D(ue,"$methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.own_methods(d)},-1),D(ue,"$public_methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.receiver_methods(d)},-1),D(ue,"$Array",function(u){var d;return u===I?[]:u.$$is_array?u:(d=i["$coerce_to?"](u,ne("Array"),"to_ary"),d!==I||(d=i["$coerce_to?"](u,ne("Array"),"to_a"),d!==I)?d:[u])}),D(ue,"$at_exit",function l(){var u=l.$$p||I,d=I;return he.__at_exit__==null&&(he.__at_exit__=I),l.$$p=null,he.__at_exit__=t(d=he.__at_exit__)?d:[],he.__at_exit__["$<<"](u),u}),D(ue,"$caller",function(u,d){u==null&&(u=1),d==null&&(d=I);var _,S;_=new Error().$backtrace(),S=[];for(var T=u+1,te=_.length;T<te;T++)_[T].match(/runtime\.js/)||S.push(_[T]);return d!=I&&(S=S.slice(0,d)),S},-1),D(ue,"$caller_locations",function(u){var d,_,S=this;return d=be(arguments),_=d,ee(ee(S,"caller",Y(_)),"map",[],function(te){return te==null&&(te=I),ne(ne(ne("Thread"),"Backtrace"),"Location").$new(te)})},-1),D(ue,"$class",function(){var u=this;return u.$$class}),D(ue,"$copy_instance_variables",function(u){var d=this,_=Object.keys(u),S,T,te;for(S=0,T=_.length;S<T;S++)te=_[S],te.charAt(0)!=="$"&&u.hasOwnProperty(te)&&(d[te]=u[te])}),D(ue,"$copy_singleton_methods",function(u){var d=this,_,S,T,te;if(u.hasOwnProperty("$$meta")&&u.$$meta!==null){var Ie=e.get_singleton_class(u),Je=e.get_singleton_class(d);for(T=Object.getOwnPropertyNames(Ie.$$prototype),_=0,te=T.length;_<te;_++)S=T[_],e.is_method(S)&&(Je.$$prototype[S]=Ie.$$prototype[S]);Je.$$const=Object.assign({},Ie.$$const),Object.setPrototypeOf(Je.$$prototype,Object.getPrototypeOf(Ie.$$prototype))}for(_=0,T=Object.getOwnPropertyNames(u),te=T.length;_<te;_++)S=T[_],S.charAt(0)==="$"&&S.charAt(1)!=="$"&&u.hasOwnProperty(S)&&(d[S]=u[S])}),D(ue,"$clone",function(u){var d,_=this,S=I;return u=X(u),d=u.$$smap.freeze,d==null&&(d=I),t(d["$nil?"]())||ge(d,!0)||ge(d,!1)||_.$raise(v("ArgumentError"),"unexpected value for freeze: "+d.$class()),S=_.$class().$allocate(),S.$copy_instance_variables(_),S.$copy_singleton_methods(_),S.$initialize_clone(_,se(["freeze"],{freeze:d})),(ge(d,!0)||t(d["$nil?"]())&&t(_["$frozen?"]()))&&S.$freeze(),S},-1),D(ue,"$initialize_clone",function(u,d){var _=this;return d=X(d),d.$$smap.freeze,_.$initialize_copy(u),_},-2),D(ue,"$define_singleton_method",function l(u,d){var _=l.$$p||I,S=this;return l.$$p=null,ee(S.$singleton_class(),"define_method",[u,d],_.$to_proc())},-2),D(ue,"$dup",function(){var u=this,d=I;return d=u.$class().$allocate(),d.$copy_instance_variables(u),d.$initialize_dup(u),d}),D(ue,"$initialize_dup",function(u){var d=this;return d.$initialize_copy(u)}),D(ue,"$enum_for",function l(u,d){var _=l.$$p||I,S,T,te,Ie=this;return l.$$p=null,S=be(arguments),S.length>0&&(T=S.shift()),T==null&&(T="each"),te=S,ee(ne("Enumerator"),"for",[Ie,T].concat(Y(te)),_.$to_proc())},-1),D(ue,"$equal?",function(u){var d=this;return d===u}),D(ue,"$exit",function(u){var d=I,_=I;for(he.__at_exit__==null&&(he.__at_exit__=I),u==null&&(u=!0),he.__at_exit__=t(d=he.__at_exit__)?d:[];!t(he.__at_exit__["$empty?"]());)_=he.__at_exit__.$pop(),_.$call();return u.$$is_boolean?u=u?0:1:u=r(u,ne("Integer"),"to_int"),e.exit(u),I},-1),D(ue,"$extend",function(u){var d,_,S=this;d=be(arguments),_=d,_.length==0&&S.$raise(ne("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(S);for(var T=S.$singleton_class(),te=_.length-1;te>=0;te--){var Ie=_[te];Ie.$$is_module||j.$raise(ne("TypeError"),"wrong argument type "+Ie.$class()+" (expected Module)"),Ie.$append_features(T),Ie.$extend_object(S),Ie.$extended(S)}return S},-1),D(ue,"$freeze",function(){var u=this;return t(u["$frozen?"]())?u:typeof u=="object"?(f(u),c(u)):u}),D(ue,"$frozen?",function(){var u=this;switch(typeof u){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return u.$$frozen||!1;default:return!1}}),D(ue,"$gets",function(u){var d,_;return he.stdin==null&&(he.stdin=I),d=be(arguments),_=d,ee(he.stdin,"gets",Y(_))},-1),D(ue,"$hash",function(){var u=this;return u.$__id__()}),D(ue,"$initialize_copy",z(I));var $=[];return D(ue,"$inspect",function(){var u=this,d=I,_=I,S=I,T=I;return function(){try{try{return d="",_=u.$__id__(),t($["$include?"](_))?d=" ...":($["$<<"](_),S=!0,ee(u.$instance_variables(),"each",[],function te(Ie){var Je=te.$$s==null?this:te.$$s,ut=I,_t=I;return Ie==null&&(Ie=I),ut=Je.$instance_variable_get(Ie),_t=v("Opal").$inspect(ut),d=me(d," "+Ie+"="+_t)},{$$s:u})),"#<"+u.$class()+":0x"+_.$to_s(16)+d+">"}catch(te){if(e.rescue(te,[v("StandardError")])){T=te;try{return"#<"+u.$class()+":0x"+_.$to_s(16)+">"}finally{e.pop_exception()}}else throw te}}finally{t(S)&&$.$pop()}}()}),D(ue,"$instance_of?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&j.$raise(ne("TypeError"),"class or module required"),d.$$class===u}),D(ue,"$instance_variable_defined?",function(u){var d=this;return u=i["$instance_variable_name!"](u),e.hasOwnProperty.call(d,u.substr(1))}),D(ue,"$instance_variable_get",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=d[e.ivar(u.substr(1))];return _??I}),D(ue,"$instance_variable_set",function(u,d){var _=this;return s(_),u=i["$instance_variable_name!"](u),_[e.ivar(u.substr(1))]=d}),D(ue,"$remove_instance_variable",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=e.ivar(u.substr(1)),S;return d.hasOwnProperty(_)?(S=d[_],delete d[_],S):j.$raise(ne("NameError"),"instance variable "+u+" not defined")}),D(ue,"$instance_variables",function(){var u=this,d=[],_;for(var S in u)u.hasOwnProperty(S)&&S.charAt(0)!=="$"&&(S.substr(-1)==="$"?_=S.slice(0,S.length-1):_=S,d.push("@"+_));return d}),D(ue,"$Integer",function(u,d){var _,S,T;return u.$$is_string?u==="0"?0:(d===void 0?d=0:(d=r(d,ne("Integer"),"to_int"),(d===1||d<0||d>36)&&j.$raise(ne("ArgumentError"),"invalid radix "+d)),S=u.toLowerCase(),S=S.replace(/(\d)_(?=\d)/g,"$1"),S=S.replace(/^(\s*[+-]?)(0[bodx]?)/,function(te,Ie,Je){switch(Je){case"0b":if(d===0||d===2)return d=2,Ie;case"0":case"0o":if(d===0||d===8)return d=8,Ie;case"0d":if(d===0||d===10)return d=10,Ie;case"0x":if(d===0||d===16)return d=16,Ie}j.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"')}),d=d===0?10:d,T="0-"+(d<=10?d-1:"9a-"+String.fromCharCode(97+(d-11))),new RegExp("^\\s*[+-]?["+T+"]+\\s*$").test(S)||j.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_=parseInt(S,d),isNaN(_)&&j.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_):(d!==void 0&&j.$raise(ne("ArgumentError"),"base specified for non string value"),u===I&&j.$raise(ne("TypeError"),"can't convert nil into Integer"),u.$$is_number?((u===1/0||u===-1/0||isNaN(u))&&j.$raise(ne("FloatDomainError"),u),Math.floor(u)):u["$respond_to?"]("to_int")&&(_=u.$to_int(),_!==I)?_:i["$coerce_to!"](u,ne("Integer"),"to_i"))},-2),D(ue,"$Float",function(u){var d;return u===I&&j.$raise(ne("TypeError"),"can't convert nil into Float"),u.$$is_string?(d=u.toString(),d=d.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(d)?j.$Integer(d):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(d)||j.$raise(ne("ArgumentError"),'invalid value for Float(): "'+u+'"'),parseFloat(d))):i["$coerce_to!"](u,ne("Float"),"to_f")}),D(ue,"$Hash",function(u){return t(u["$nil?"]())||ge(u,[])?se([],{}):Z(ne("Hash"),u)?u:i["$coerce_to!"](u,ne("Hash"),"to_hash")}),D(ue,"$is_a?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&j.$raise(ne("TypeError"),"class or module required"),e.is_a(d,u)}),D(ue,"$itself",xe),D(ue,"$lambda",function l(){var u=l.$$p||I;return l.$$p=null,e.lambda(u)}),D(ue,"$load",function(u){return u=i["$coerce_to!"](u,ne("String"),"to_str"),e.load(u)}),D(ue,"$loop",function l(){var u=l.$$p||I,d=this,_=I;if(l.$$p=null,u===I)return ee(d,"enum_for",["loop"],function(){return ne(ne("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(u,[])}catch(S){if(e.rescue(S,[ne("StopIteration")])){_=S;try{return _.$result()}finally{e.pop_exception()}}else throw S}return d}),D(ue,"$nil?",z(!1)),D(ue,"$printf",function(u){var d,_,S=this;return d=be(arguments),_=d,t(_["$any?"]())&&S.$print(ee(S,"format",Y(_))),I},-1),D(ue,"$proc",function l(){var u=l.$$p||I;return l.$$p=null,t(u)||j.$raise(ne("ArgumentError"),"tried to create Proc object without a block"),u.$$is_lambda=!1,u}),D(ue,"$puts",function(u){var d,_;return he.stdout==null&&(he.stdout=I),d=be(arguments),_=d,ee(he.stdout,"puts",Y(_))},-1),D(ue,"$p",function(u){var d,_;return d=be(arguments),_=d,ee(_,"each",[],function(T){return he.stdout==null&&(he.stdout=I),T==null&&(T=I),he.stdout.$puts(T.$inspect())}),t(fe(_.$length(),1))?_["$[]"](0):_},-1),D(ue,"$print",function(u){var d,_;return he.stdout==null&&(he.stdout=I),d=be(arguments),_=d,ee(he.stdout,"print",Y(_))},-1),D(ue,"$readline",function(u){var d,_;return he.stdin==null&&(he.stdin=I),d=be(arguments),_=d,ee(he.stdin,"readline",Y(_))},-1),D(ue,"$warn",function(u,d){var _,S,T,te,Ie,Je,ut=this,_t=I;return he.VERBOSE==null&&(he.VERBOSE=I),he.stderr==null&&(he.stderr=I),_=be(arguments),S=Ae(_),S=X(S),T=_,te=S.$$smap.uplevel,te==null&&(te=I),t(te)&&(te=i["$coerce_to!"](te,ne("Integer"),"to_str"),t(J(te,0))&&j.$raise(ne("ArgumentError"),"negative level ("+te+")"),_t=(Ie=(Je=ut.$caller(me(te,1),1).$first(),Je===I||Je==null?I:Je.$split(":in `")),Ie===I||Ie==null?I:Ie.$first()),t(_t)&&(_t=""+_t+": "),T=ee(T,"map",[],function(bt){return bt==null&&(bt=I),""+_t+"warning: "+bt})),t(he.VERBOSE["$nil?"]())||t(T["$empty?"]())?I:ee(he.stderr,"puts",Y(T))},-1),D(ue,"$raise",function(u,d,_){throw he["!"]==null&&(he["!"]=I),he["@"]==null&&(he["@"]=I),d==null&&(d=I),_==null&&(_=I),u==null&&he["!"]!==I?he["!"]:(u==null?u=ne("RuntimeError").$new(""):n(u,"$to_str")?u=ne("RuntimeError").$new(u.$to_str()):u.$$is_class&&n(u,"$exception")?u=u.$exception(d):u.$$is_exception||(u=ne("TypeError").$new("exception class/object expected")),_!==I&&u.$set_backtrace(_),he["!"]!==I&&e.exceptions.push(he["!"]),he["!"]=u,he["@"]=u.$backtrace(),u)},-1),D(ue,"$rand",function(u){return u===void 0?ne(ne("Random"),"DEFAULT").$rand():(u.$$is_number&&(u<0&&(u=Math.abs(u)),u%1!==0&&(u=u.$to_i()),u===0&&(u=void 0)),ne(ne("Random"),"DEFAULT").$rand(u))},-1),D(ue,"$respond_to?",function(u,d){var _=this;d==null&&(d=!1);var S=_[p(u)];return typeof S=="function"&&!S.$$stub?!0:_["$respond_to_missing?"].$$pristine===!0?!1:_["$respond_to_missing?"](u,d)},-2),D(ue,"$respond_to_missing?",function(u,d){return!1},-2),i.$pristine(ue,"respond_to?","respond_to_missing?"),D(ue,"$require",function(u){return typeof u!="string"&&e.String&&e.Array&&(u=i["$coerce_to!"](u,ne("String"),"to_str")),e.require(u)}),D(ue,"$require_relative",function(u){return i["$try_convert!"](u,ne("String"),"to_str"),u=ne("File").$expand_path(ne("File").$join(e.current_file,"..",u)),e.require(u)}),D(ue,"$require_tree",function(u,d){var _;d=X(d),_=d.$$smap.autoload,_==null&&(_=!1);var S=[];u=ne("File").$expand_path(u),u=e.normalize(u),u==="."&&(u="");for(var T in e.modules)T["$start_with?"](u)&&(_?S.push([T,!0]):S.push([T,e.require(T)]));return S},-2),D(ue,"$singleton_class",function(){var u=this;return e.get_singleton_class(u)}),D(ue,"$sleep",function(u){u==null&&(u=I),u===I&&j.$raise(ne("TypeError"),"can't convert NilClass into time interval"),u.$$is_number||j.$raise(ne("TypeError"),"can't convert "+u.$class()+" into time interval"),u<0&&j.$raise(ne("ArgumentError"),"time interval must be positive");for(var d=e.global.performance?function(){return performance.now()}:function(){return new Date},_=d();d()-_<=u*1e3;);return Math.round(u)},-1),D(ue,"$srand",function(u){return u==null&&(u=v("Random").$new_seed()),ne("Random").$srand(u)},-1),D(ue,"$String",function(u){var d=I;return t(d=i["$coerce_to?"](u,ne("String"),"to_str"))?d:i["$coerce_to!"](u,ne("String"),"to_s")}),D(ue,"$tap",function l(){var u=l.$$p||I,d=this;return l.$$p=null,e.yield1(u,d),d}),D(ue,"$to_proc",xe),D(ue,"$to_s",function(){var u=this;return"#<"+u.$class()+":0x"+u.$__id__().$to_s(16)+">"}),D(ue,"$catch",function l(u){var d=l.$$p||I,_=I,S=I;l.$$p=null,u==null&&(u=I);try{return u=t(_=u)?_:Ee.$new(),e.yield1(d,u)}catch(T){if(e.rescue(T,[ne("UncaughtThrowError")])){S=T;try{return ge(S.$tag(),u)?S.$value():j.$raise()}finally{e.pop_exception()}}else throw T}},-1),D(ue,"$throw",function(u,d){return d==null&&(d=I),j.$raise(ne("UncaughtThrowError").$new(u,d))},-2),D(ue,"$open",function l(u){var d=l.$$p||I,_,S;return l.$$p=null,_=be(arguments),S=_,ee(ne("File"),"open",Y(S),d.$to_proc())},-1),D(ue,"$yield_self",function l(){var u=l.$$p||I,d=this;return l.$$p=null,u===I?ee(d,"enum_for",["yield_self"],z(1)):e.yield1(u,d)}),ce(ue,"fail","raise"),ce(ue,"kind_of?","is_a?"),ce(ue,"object_id","__id__"),ce(ue,"public_send","__send__"),ce(ue,"send","__send__"),ce(ue,"then","yield_self"),ce(ue,"to_enum","enum_for")}("::",Se),function(B,Fe){var ue=w(B,Fe,"Object");return delete Ee.$$prototype.$require,ue.$include(j)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,c=e.top;return e.nil,e.add_stubs("include,raise"),function(f,p){return r(f,"$to_s",t("main")),r(f,"$include",function(z){return n.$include(z)}),r(f,"$autoload",function(z){var D,j;return D=i(arguments),j=D,e.Object.$autoload.apply(e.Object,j)},-1),r(f,"$using",function(z){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(c))};Opal.modules["corelib/error/errno"]=function(e){var t=e.module,r=e.truthy,n=e.rb_plus,i=e.send2,s=e.find_super,c=e.def,f=e.klass,p=e.nil,h=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(z,D){var j=t(z,"Errno"),he=p,be=p;he=[["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]],be=p;var ee;for(ee=0;ee<he.length;ee++)(function(){var Y=he[ee][0],X=he[ee][1],ge=he[ee][2];be=e.klass(j,e.SystemCallError,Y),be.errno=ge,function(se,me){return c(se,"$new",function Z(xe){Z.$$p;var fe=this,Ae=p;return Z.$$p=null,xe==null&&(xe=p),Ae=X,r(xe)&&(Ae=n(Ae," - "+xe)),i(fe,s(fe,"new",Z,!1,!0),"new",[Ae],null)},-1)}(e.get_singleton_class(be))})()}("::"),function(z,D,j){var he=f(z,D,"SystemCallError");return c(he,"$errno",function(){var ee=this;return ee.$class().$errno()}),function(be,ee){return be.$attr_reader("errno")}(e.get_singleton_class(he))}("::",h("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,c=e.to_a,f=e.def,p=e.truthy,h=e.hash2,z=e.Kernel,D=e.not,j=e.rb_plus,he=e.eqeq,be=e.Object,ee=e.ensure_kwargs,Y=e.send2,X=e.find_super,ge=e.module,se=[],me=e.nil,Z=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(xe,fe,Ae){var J=t(xe,fe,"Exception"),Ee=[J].concat(Ae),ce=e.$r(Ee),w=J.$$prototype;w.message=me,e.prop(J.$$prototype,"$$is_exception",!0);var Se;Error.stackTraceLimit=100,i(J,"$new",function(B){var Fe,ue,U=this;n["!"]==null&&(n["!"]=me),Fe=r(arguments),ue=Fe;var v=ue.length>0?ue[0]:me,$=new U.$$constructor(v);return $.name=U.$$name,$.message=v,$.cause=n["!"],e.send($,$.$initialize,ue),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Se),$},-1),Se=J.$new,i(J,"$exception",function(B){var Fe,ue,U=this;return Fe=r(arguments),ue=Fe,s(U,"new",c(ue))},-1),f(J,"$initialize",function(B){var Fe,ue,U=this;return Fe=r(arguments),ue=Fe,U.message=ue.length>0?ue[0]:me},-1);function I(ne){for(var B=[],Fe,ue=0;ue<ne.length;ue++){var U=ne[ue];!U||!U.$$is_string||((Fe=U.match(/^ at (.*?) \((.*?)\)$/))?B.push(Fe[2]+":in `"+Fe[1]+"'"):(Fe=U.match(/^ at (.*?)$/))?B.push(Fe[1]+":in `undefined'"):(Fe=U.match(/^ from (.*?)$/))?B.push(Fe[1]):(Fe=U.match(/^(.*?)@(.*?)$/))&&B.push(Fe[2]+":in `"+Fe[1]+"'"))}return B}return f(J,"$backtrace",function(){var B=this;if(B.backtrace)return B.backtrace;var Fe=B.stack;return typeof Fe<"u"&&Fe.$$is_string?B.backtrace=I(Fe.split(`
|
|
391
|
-
`)):Fe?B.backtrace=I(Fe):[]}),f(J,"$backtrace_locations",function(){var B,Fe=this;return Fe.backtrace_locations||(Fe.backtrace_locations=(B=Fe.$backtrace(),B===me||B==null?me:s(B,"map",[],function(U){return U==null&&(U=me),Z(Z(Z("Thread"),"Backtrace"),"Location").$new(U)}))),Fe.backtrace_locations}),f(J,"$cause",function(){var B=this;return B.cause||me}),f(J,"$exception",function(B){var Fe=this;if(B==null&&(B=me),B===me||Fe===B)return Fe;var ue=Fe.$clone();return ue.message=B,Fe.backtrace&&(ue.backtrace=Fe.backtrace.$dup()),ue.stack=Fe.stack,ue.cause=Fe.cause,ue},-1),f(J,"$message",function(){var B=this;return B.$to_s()}),f(J,"$full_message",function(B){var Fe,ue=this,U=me,v=me,$=me,l=me,u=me,d=me,_=me,S=me,T=me;return n.stderr==null&&(n.stderr=me),B==null&&(B=me),p(ce("Hash","skip_raise")?"constant":me)?(B=h(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(p(U=B)?U:h([],{})),Fe=[B["$[]"]("highlight"),B["$[]"]("order")],v=Fe[0],$=Fe[1],p([!0,!1]["$include?"](v))||z.$raise(Z("ArgumentError"),"expected true or false as highlight: "+v),p(["top","bottom"]["$include?"]($))||z.$raise(Z("ArgumentError"),"expected :top or :bottom as order: "+$),p(v)?(l="\x1B[1;4m",u="\x1B[1m",d="\x1B[m"):l=u=d="",_=ue.$backtrace().$dup(),(D(_)||p(_["$empty?"]()))&&(_=ue.$caller()),S=_.$shift(),T=""+S+": ",T=j(T,""+u+ue.$to_s()+" ("+l+ue.$class()+d+u+")"+d+`
|
|
392
|
-
`),T=j(T,s(_,"map",[],function(Ie){return Ie==null&&(Ie=me)," from "+Ie+`
|
|
393
|
-
`}).$join()),p(ue.$cause())&&(T=j(T,ue.$cause().$full_message(h(["highlight"],{highlight:v})))),he($,"bottom")&&(T=T.$split(`
|
|
394
|
-
`).$reverse().$join(`
|
|
395
|
-
`),T=j(""+u+"Traceback"+d+` (most recent call last):
|
|
396
|
-
`,T)),T):""+ue.message+`
|
|
397
|
-
`+ue.stack},-1),f(J,"$inspect",function(){var B=this,Fe=me;return Fe=B.$to_s(),p(Fe["$empty?"]())?B.$class().$to_s():"#<"+B.$class().$to_s()+": "+B.$to_s()+">"}),f(J,"$set_backtrace",function(B){var Fe=this,ue=!0,U,v;if(B===me)Fe.backtrace=me,Fe.stack="";else if(B.$$is_string)Fe.backtrace=[B],Fe.stack=" from "+B;else{if(B.$$is_array){for(U=0,v=B.length;U<v;U++)if(!B[U].$$is_string){ue=!1;break}}else ue=!1;ue===!1&&z.$raise(Z("TypeError"),"backtrace must be Array of String"),Fe.backtrace=B,Fe.stack=s(B,"map",[],function(l){return l==null&&(l=me),j(" from ",l)}).join(`
|
|
398
|
-
`)}return B}),f(J,"$to_s",function(){var B=this,Fe=me,ue=me;return p(Fe=p(ue=B.message)?B.message.$to_s():ue)?Fe:B.$class().$to_s()})}("::",Error,se),t("::",Z("Exception"),"ScriptError"),t("::",Z("ScriptError"),"SyntaxError"),t("::",Z("ScriptError"),"LoadError"),t("::",Z("ScriptError"),"NotImplementedError"),t("::",Z("Exception"),"SystemExit"),t("::",Z("Exception"),"NoMemoryError"),t("::",Z("Exception"),"SignalException"),t("::",Z("SignalException"),"Interrupt"),t("::",Z("Exception"),"SecurityError"),t("::",Z("Exception"),"SystemStackError"),t("::",Z("Exception"),"StandardError"),t("::",Z("StandardError"),"EncodingError"),t("::",Z("StandardError"),"ZeroDivisionError"),t("::",Z("StandardError"),"NameError"),t("::",Z("NameError"),"NoMethodError"),t("::",Z("StandardError"),"RuntimeError"),t("::",Z("RuntimeError"),"FrozenError"),t("::",Z("StandardError"),"LocalJumpError"),t("::",Z("StandardError"),"TypeError"),t("::",Z("StandardError"),"ArgumentError"),t("::",Z("ArgumentError"),"UncaughtThrowError"),t("::",Z("StandardError"),"IndexError"),t("::",Z("IndexError"),"StopIteration"),t("::",Z("StopIteration"),"ClosedQueueError"),t("::",Z("IndexError"),"KeyError"),t("::",Z("StandardError"),"RangeError"),t("::",Z("RangeError"),"FloatDomainError"),t("::",Z("StandardError"),"IOError"),t("::",Z("IOError"),"EOFError"),t("::",Z("StandardError"),"SystemCallError"),t("::",Z("StandardError"),"RegexpError"),t("::",Z("StandardError"),"ThreadError"),t("::",Z("StandardError"),"FiberError"),be.$autoload("Errno","corelib/error/errno"),function(xe,fe){var Ae=t(xe,fe,"FrozenError");return Ae.$attr_reader("receiver"),f(Ae,"$initialize",function J(Ee,ce){var w;J.$$p;var Se=this;return J.$$p=null,ce=ee(ce),w=ce.$$smap.receiver,w==null&&(w=me),Y(Se,X(Se,"initialize",J,!1,!0),"initialize",[Ee],null),Se.receiver=w},-2)}("::",Z("RuntimeError")),function(xe,fe){var Ae=t(xe,fe,"UncaughtThrowError"),J=Ae.$$prototype;return J.tag=me,Ae.$attr_reader("tag","value"),f(Ae,"$initialize",function Ee(ce,w){Ee.$$p;var Se=this;return Ee.$$p=null,w==null&&(w=me),Se.tag=ce,Se.value=w,Y(Se,X(Se,"initialize",Ee,!1,!0),"initialize",["uncaught throw "+Se.tag.$inspect()],null)},-2)}("::",Z("ArgumentError")),function(xe,fe){var Ae=t(xe,fe,"NameError");return Ae.$attr_reader("name"),f(Ae,"$initialize",function J(Ee,ce){J.$$p;var w=this;return J.$$p=null,ce==null&&(ce=me),Y(w,X(w,"initialize",J,!1,!0),"initialize",[Ee],null),w.name=ce},-2)}("::",null),function(xe,fe){var Ae=t(xe,fe,"NoMethodError");return Ae.$attr_reader("args"),f(Ae,"$initialize",function J(Ee,ce,w){J.$$p;var Se=this;return J.$$p=null,ce==null&&(ce=me),w==null&&(w=[]),Y(Se,X(Se,"initialize",J,!1,!0),"initialize",[Ee,ce],null),Se.args=w},-2)}("::",null),function(xe,fe){var Ae=t(xe,fe,"StopIteration");return Ae.$attr_reader("result")}("::",null),function(xe,fe){var Ae=t(xe,fe,"KeyError"),J=Ae.$$prototype;return J.receiver=J.key=me,f(Ae,"$initialize",function Ee(ce,w){var Se,I;Ee.$$p;var ne=this;return Ee.$$p=null,w=ee(w),Se=w.$$smap.receiver,Se==null&&(Se=me),I=w.$$smap.key,I==null&&(I=me),Y(ne,X(ne,"initialize",Ee,!1,!0),"initialize",[ce],null),ne.receiver=Se,ne.key=I},-2),f(Ae,"$receiver",function(){var ce=this,w=me;return p(w=ce.receiver)?w:z.$raise(Z("ArgumentError"),"no receiver is available")}),f(Ae,"$key",function(){var ce=this,w=me;return p(w=ce.key)?w:z.$raise(Z("ArgumentError"),"no key is available")})}("::",null),function(xe,fe){var Ae=ge(xe,"JS"),J=[Ae].concat(fe);return t(J[0],null,"Error"),me}("::",se)};Opal.modules["corelib/constants"]=function(e){var t=e.const_set;e.nil;var r=e.$$$;return t("::","RUBY_PLATFORM","opal"),t("::","RUBY_ENGINE","opal"),t("::","RUBY_VERSION","3.2.0"),t("::","RUBY_ENGINE_VERSION","1.7.3"),t("::","RUBY_RELEASE_DATE","2023-03-23"),t("::","RUBY_PATCHLEVEL",0),t("::","RUBY_REVISION","0"),t("::","RUBY_COPYRIGHT","opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contributors"),t("::","RUBY_DESCRIPTION","opal "+r("RUBY_ENGINE_VERSION")+" ("+r("RUBY_RELEASE_DATE")+" revision "+r("RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("corelib/runtime"),t.$require("corelib/helpers"),t.$require("corelib/module"),t.$require("corelib/class"),t.$require("corelib/basic_object"),t.$require("corelib/kernel"),t.$require("corelib/main"),t.$require("corelib/error"),t.$require("corelib/constants")};Opal.modules["corelib/nil"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_val,s=e.ensure_kwargs,c=e.NilClass,f=e.slice,p=e.truthy,h=e.rb_gt,z=e.alias,D=e.nil,j=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(he,be,ee){var Y=t(he,be,"NilClass");return Y.$$prototype.$$meta=Y,function(X,ge){return n(X,"$allocate",function(){var me=this;return r.$raise(j("TypeError"),"allocator undefined for "+me.$name())}),e.udef(X,"$new"),D}(e.get_singleton_class(Y)),n(Y,"$!",i(!0)),n(Y,"$&",i(!1)),n(Y,"$|",function(ge){return ge!==!1&&ge!==D}),n(Y,"$^",function(ge){return ge!==!1&&ge!==D}),n(Y,"$==",function(ge){return ge===D}),n(Y,"$dup",i(D)),n(Y,"$clone",function(ge){return ge=s(ge),ge.$$smap.freeze,D},-1),n(Y,"$inspect",i("nil")),n(Y,"$nil?",i(!0)),n(Y,"$singleton_class",function(){return c}),n(Y,"$to_a",function(){return[]}),n(Y,"$to_h",function(){return e.hash()}),n(Y,"$to_i",i(0)),n(Y,"$to_s",i("")),n(Y,"$to_c",function(){return j("Complex").$new(0,0)}),n(Y,"$rationalize",function(ge){var se,me;return se=f(arguments),me=se,p(h(me.$length(),1))&&r.$raise(j("ArgumentError")),r.$Rational(0,1)},-1),n(Y,"$to_r",function(){return r.$Rational(0,1)}),n(Y,"$instance_variables",function(){return[]}),z(Y,"to_f","to_i")}("::",null)};Opal.modules["corelib/boolean"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_self,s=e.ensure_kwargs,c=e.slice,f=e.truthy,p=e.send2,h=e.find_super,z=e.to_a,D=e.alias,j=e.nil,he=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(be,ee,Y){var X=t(be,ee,"Boolean");e.prop(X.$$prototype,"$$is_boolean",!0);for(var ge=["$$class","$$meta"],se=0;se<ge.length;se++)Object.defineProperty(X.$$prototype,ge[se],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(X.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:j}}),function(me,Z){return n(me,"$allocate",function(){var fe=this;return r.$raise(he("TypeError"),"allocator undefined for "+fe.$name())}),e.udef(me,"$new"),j}(e.get_singleton_class(X)),n(X,"$__id__",function(){var Z=this;return Z.valueOf()?2:0}),n(X,"$!",function(){var Z=this;return Z!=!0}),n(X,"$&",function(Z){var xe=this;return xe==!0?Z!==!1&&Z!==j:!1}),n(X,"$|",function(Z){var xe=this;return xe==!0?!0:Z!==!1&&Z!==j}),n(X,"$^",function(Z){var xe=this;return xe==!0?Z===!1||Z===j:Z!==!1&&Z!==j}),n(X,"$==",function(Z){var xe=this;return xe==!0===Z.valueOf()}),n(X,"$singleton_class",function(){var Z=this;return Z.$$meta}),n(X,"$to_s",function(){var Z=this;return Z==!0?"true":"false"}),n(X,"$dup",i),n(X,"$clone",function(Z){var xe=this;return Z=s(Z),Z.$$smap.freeze,xe},-1),n(X,"$method_missing",function me(Z,xe){var fe=me.$$p||j,Ae,J,Ee=this;me.$$p=null,Ae=c(arguments,1),J=Ae;var ce=Ee.$$class.$$prototype[e.jsid(Z)];return f(typeof ce<"u"&&!ce.$$stub)||p(Ee,h(Ee,"method_missing",me,!1,!0),"method_missing",[Z].concat(z(J)),fe),e.send(Ee,ce,J,fe)},-2),n(X,"$respond_to_missing?",function(Z,xe){var fe=this,Ae=fe.$$class.$$prototype[e.jsid(Z)];return typeof Ae<"u"&&!Ae.$$stub},-2),D(X,"eql?","=="),D(X,"equal?","=="),D(X,"inspect","to_s"),D(X,"object_id","__id__")}("::",Boolean),t("::",he("Boolean"),"TrueClass"),t("::",he("Boolean"),"FalseClass"),j};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,c=e.Kernel,f=e.def,p=e.nil,h=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(z){var D=r(z,"Comparable"),j=p;function he(Y){return e.is_a(Y,e.Integer)?Y:n(Y,0)?1:i(Y,0)?-1:0}function be(Y,X){var ge;s(p,j=X)||s(!0,j)||s(!1,j)||s(h("Integer"),j)||s(h("Float"),j)?ge=X.$inspect():ge=X.$$class,c.$raise(h("ArgumentError"),"comparison of "+Y.$class()+" with "+ge+" failed")}function ee(Y,X){var ge=Y["$<=>"](X);return t(ge)||be(Y,X),he(ge)}return f(D,"$==",function(X){var ge=this,se=p;return t(ge["$equal?"](X))?!0:ge["$<=>"]==e.Kernel["$<=>"]?!1:ge.$$comparable?(ge.$$comparable=!1,!1):t(se=ge["$<=>"](X))?he(se)==0:!1}),f(D,"$>",function(X){var ge=this;return ee(ge,X)>0}),f(D,"$>=",function(X){var ge=this;return ee(ge,X)>=0}),f(D,"$<",function(X){var ge=this;return ee(ge,X)<0}),f(D,"$<=",function(X){var ge=this;return ee(ge,X)<=0}),f(D,"$between?",function(X,ge){var se=this;return!(i(se,X)||n(se,ge))}),f(D,"$clamp",function(X,ge){var se=this;ge==null&&(ge=p);var me,Z;if(ge===p&&(e.is_a(X,e.Range)||c.$raise(h("TypeError"),"wrong argument type "+X.$class()+" (expected Range)"),Z=X.excl,ge=X.end,X=X.begin,ge!==p&&Z&&c.$raise(h("ArgumentError"),"cannot clamp with an exclusive range")),X!==p&&ge!==p&&ee(X,ge)>0&&c.$raise(h("ArgumentError"),"min argument must be smaller than max argument"),X!==p){if(me=ee(se,X),me==0)return se;if(me<0)return X}return ge!==p&&(me=ee(se,ge),me>0)?ge:se},-2)}("::")};Opal.modules["corelib/regexp"]=function(e){var t=e.coerce_to,r=e.prop,n=e.freeze,i=e.klass,s=e.const_set,c=e.send2,f=e.find_super,p=e.def,h=e.truthy,z=e.gvars,D=e.slice,j=e.Kernel,he=e.Opal,be=e.alias,ee=e.send,Y=e.hash2,X=e.rb_plus,ge=e.ensure_kwargs,se=e.rb_ge,me=e.to_a,Z=e.eqeqeq,xe=e.rb_minus,fe=e.return_ivar,Ae=[],J=e.nil,Ee=e.$$$;return e.add_stubs("nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,frozen?,uniq,map,scan,source,to_proc,transform_values,group_by,each_with_index,+,last,=~,==,attr_reader,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a"),i("::",Ee("StandardError"),"RegexpError"),function(ce,w,Se){var I=i(ce,w,"Regexp"),ne=[I].concat(Se),B=e.$r(ne);return s(I,"IGNORECASE",1),s(I,"EXTENDED",2),s(I,"MULTILINE",4),e.prop(I.$$prototype,"$$is_regexp",!0),function(Fe,ue){var U=[Fe].concat(ue),v=e.$r(U);return p(Fe,"$allocate",function $(){var l=$.$$p||J,u=this,d=J;return $.$$p=null,d=c(u,f(u,"allocate",$,!1,!0),"allocate",[],l),d.uninitialized=!0,d}),p(Fe,"$escape",function(l){return e.escape_regexp(l)}),p(Fe,"$last_match",function(l){return z["~"]==null&&(z["~"]=J),l==null&&(l=J),h(l["$nil?"]())?z["~"]:h(z["~"])?z["~"]["$[]"](l):J},-1),p(Fe,"$union",function(l){var u,d,_=this;u=D(arguments),d=u;var S,T,te,Ie,Je;if(d.length==0)return/(?!)/;if(d.length==1&&d[0].$$is_regexp)return d[0];S=d[0].$$is_array,d.length>1&&S&&j.$raise(Ee("TypeError"),"no implicit conversion of Array into String"),S&&(d=d[0]),Ie=void 0,T=[];for(var ut=0;ut<d.length;ut++)te=d[ut],te.$$is_string?T.push(_.$escape(te)):te.$$is_regexp?(Je=te.$options(),Ie!=null&&Ie!=Je&&j.$raise(Ee("TypeError"),"All expressions must use the same options"),Ie=Je,T.push("("+te.source+")")):T.push(_.$escape(te.$to_str()));return _.$new(T.$join("|"),Ie)},-1),p(Fe,"$new",function(l,u){if(l.$$is_regexp)return new RegExp(l);if(l=he["$coerce_to!"](l,Ee("String"),"to_str"),l.charAt(l.length-1)==="\\"&&l.charAt(l.length-2)!=="\\"&&j.$raise(Ee("RegexpError"),"too short escape sequence: /"+l+"/"),l=l.replace("\\A","^").replace("\\z","$"),u===void 0||u["$!"]())return new RegExp(l);if(u.$$is_number){var d="";v("IGNORECASE")&u&&(d+="i"),v("MULTILINE")&u&&(d+="m"),u=d}else u="i";return new RegExp(l,u)},-2),be(Fe,"compile","new"),be(Fe,"quote","escape")}(e.get_singleton_class(I),ne),p(I,"$==",function(ue){var U=this;return ue instanceof RegExp&&U.toString()===ue.toString()}),p(I,"$===",function(ue){var U=this;return U.$match(he["$coerce_to?"](ue,Ee("String"),"to_str"))!==J}),p(I,"$=~",function(ue){var U=this,v=J;return z["~"]==null&&(z["~"]=J),h(v=U.$match(ue))?z["~"].$begin(0):v}),p(I,"$freeze",function(){var ue=this;return h(ue["$frozen?"]())?ue:(ue.hasOwnProperty("$$g")||r(ue,"$$g",null),ue.hasOwnProperty("$$gm")||r(ue,"$$gm",null),n(ue))}),p(I,"$inspect",function(){var ue=this,U=/^\/(.*)\/([^\/]*)$/,v=ue.toString(),$=U.exec(v);if($){for(var l=$[1],u=$[2],d=l.split(""),_=d.length,S=!1,T="",te=0;te<_;te++){var Ie=d[te];!S&&Ie=="/"&&(T=T.concat("\\")),T=T.concat(Ie),Ie=="\\"?S?S=!1:S=!0:S=!1}return"/"+T+"/"+u}else return v}),p(I,"$match",function Fe(ue,U){var v=Fe.$$p||J,$=this;if(z["~"]==null&&(z["~"]=J),Fe.$$p=null,$.uninitialized&&j.$raise(Ee("TypeError"),"uninitialized Regexp"),U===void 0){if(ue===J)return z["~"]=J;var l=$.exec(t(ue,Ee("String"),"to_str"));return l?(z["~"]=Ee("MatchData").$new($,l),v===J?z["~"]:e.yield1(v,z["~"])):z["~"]=J}if(U=t(U,Ee("Integer"),"to_int"),ue===J||(ue=t(ue,Ee("String"),"to_str"),U<0&&(U+=ue.length,U<0)))return z["~"]=J;for(var u,d=e.global_regexp($);;){if(u=d.exec(ue),u===null)return z["~"]=J;if(u.index>=U)return z["~"]=Ee("MatchData").$new(d,u),v===J?z["~"]:e.yield1(v,z["~"]);d.lastIndex=u.index+1}},-2),p(I,"$match?",function(ue,U){var v=this;if(v.uninitialized&&j.$raise(Ee("TypeError"),"uninitialized Regexp"),U===void 0)return ue===J?!1:v.test(t(ue,Ee("String"),"to_str"));if(U=t(U,Ee("Integer"),"to_int"),ue===J||(ue=t(ue,Ee("String"),"to_str"),U<0&&(U+=ue.length,U<0)))return!1;var $,l=e.global_regexp(v);return $=l.exec(ue),!($===null||$.index<U)},-2),p(I,"$names",function(){var ue=this;return ee(ue.$source().$scan(/\(?<(\w+)>/,Y(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),p(I,"$named_captures",function(){var ue=this;return ee(ee(ee(ue.$source().$scan(/\(?<(\w+)>/,Y(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(v){return v==null&&(v=J),ee(v,"map",[],function(l){return l==null&&(l=J),X(l.$last(),1)})})}),p(I,"$~",function(){var ue=this;return z._==null&&(z._=J),ue["$=~"](z._)}),p(I,"$source",function(){var ue=this;return ue.source}),p(I,"$options",function(){var ue=this;ue.uninitialized&&j.$raise(Ee("TypeError"),"uninitialized Regexp");var U=0;return ue.multiline&&(U|=B("MULTILINE")),ue.ignoreCase&&(U|=B("IGNORECASE")),U}),p(I,"$casefold?",function(){var ue=this;return ue.ignoreCase}),be(I,"eql?","=="),be(I,"to_s","source")}("::",RegExp,Ae),function(ce,w,Se){var I=i(ce,w,"MatchData"),ne=[I].concat(Se),B=e.$r(ne),Fe=I.$$prototype;return Fe.matches=J,I.$attr_reader("post_match","pre_match","regexp","string"),p(I,"$initialize",function(U,v,$){var l,u=this;$=ge($),l=$.$$smap.no_matchdata,l==null&&(l=!1),h(l)||(z["~"]=u),u.regexp=U,u.begin=v.index,u.string=v.input,u.pre_match=v.input.slice(0,v.index),u.post_match=v.input.slice(v.index+v[0].length),u.matches=[];for(var d=0,_=v.length;d<_;d++){var S=v[d];S==null?u.matches.push(J):u.matches.push(S)}},-3),p(I,"$match",function(U){var v=this,$=J;return h($=v["$[]"](U))?$:h(U["$is_a?"](B("Integer")))&&h(se(U,v.$length()))?j.$raise(Ee("IndexError"),"index "+U+" out of matches"):J}),p(I,"$match_length",function(U){var v,$=this;return v=$.$match(U),v===J||v==null?J:v.$length()}),p(I,"$[]",function(U){var v,$,l=this;return v=D(arguments),$=v,$[0].$$is_string?(l.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&j.$raise(Ee("IndexError"),"undefined group name reference: "+$["$[]"](0)),l.$named_captures()["$[]"]($["$[]"](0))):ee(l.matches,"[]",me($))},-1),p(I,"$offset",function(U){var v=this;return U!==0&&j.$raise(Ee("ArgumentError"),"MatchData#offset only supports 0th element"),[v.begin,v.begin+v.matches[U].length]}),p(I,"$==",function(U){var v=this,$=J,l=J,u=J,d=J;return Z(Ee("MatchData"),U)?h($=h(l=h(u=h(d=v.string==U.string)?v.regexp.toString()==U.regexp.toString():d)?v.pre_match==U.pre_match:u)?v.post_match==U.post_match:l)?v.begin==U.begin:$:!1}),p(I,"$begin",function(U){var v=this;return U!==0&&j.$raise(Ee("ArgumentError"),"MatchData#begin only supports 0th element"),v.begin}),p(I,"$end",function(U){var v=this;return U!==0&&j.$raise(Ee("ArgumentError"),"MatchData#end only supports 0th element"),v.begin+v.matches[U].length}),p(I,"$captures",function(){var U=this;return U.matches.slice(1)}),p(I,"$named_captures",function(){var U=this,v=J;return v=U.$captures(),ee(U.$regexp().$named_captures(),"transform_values",[],function(l){return l==null&&(l=J),v["$[]"](xe(l.$last(),1))})}),p(I,"$names",function(){var U=this;return U.$regexp().$names()}),p(I,"$inspect",function(){var U=this,v="#<MatchData "+U.matches[0].$inspect();if(U.$regexp().$names()["$empty?"]())for(var $=1,l=U.matches.length;$<l;$++)v+=" "+$+":"+U.matches[$].$inspect();else ee(U.$named_captures(),"each",[],function(d,_){return d==null&&(d=J),_==null&&(_=J),v+=" "+d+":"+_.$inspect()});return v+">"}),p(I,"$length",function(){var U=this;return U.matches.length}),p(I,"$to_a",fe("matches")),p(I,"$to_s",function(){var U=this;return U.matches[0]}),p(I,"$values_at",function(U){var v,$,l=this;v=D(arguments),$=v;var u,d,_,S=[];for(u=0;u<$.length;u++){if($[u].$$is_range&&(d=$[u].$to_a(),d.unshift(u,1),Array.prototype.splice.apply($,d)),_=he["$coerce_to!"]($[u],Ee("Integer"),"to_int"),_<0&&(_+=l.matches.length,_<0)){S.push(J);continue}S.push(l.matches[_])}return S},-1),be(I,"eql?","=="),be(I,"size","length")}(Ae[0],null,Ae)};Opal.modules["corelib/string"]=function(e){var t=e.coerce_to,r=e.respond_to,n=e.global_multiline_regexp,i=e.prop,s=e.klass,c=e.def,f=e.Opal,p=e.defs,h=e.slice,z=e.send,D=e.to_a,j=e.extract_kwargs,he=e.ensure_kwargs,be=e.eqeqeq,ee=e.Kernel,Y=e.truthy,X=e.gvars,ge=e.rb_divide,se=e.rb_plus,me=e.eqeq,Z=e.hash2,xe=e.alias,fe=e.const_set,Ae=e.top,J=[],Ee=e.$r(J),ce=e.nil,w=e.$$$;return e.add_stubs("require,include,coerce_to?,initialize,===,format,raise,respond_to?,to_s,to_str,<=>,==,=~,new,force_encoding,casecmp,empty?,ljust,ceil,/,+,rjust,floor,coerce_to!,nil?,class,copy_singleton_methods,initialize_clone,initialize_dup,enum_for,chomp,[],to_i,length,each_line,to_proc,to_a,match,match?,captures,proc,succ,escape,include?,upcase,unicode_normalize,dup,__id__,next,intern,pristine"),Ae.$require("corelib/comparable"),Ae.$require("corelib/regexp"),function(Se,I,ne){var B=s(Se,I,"String"),Fe=[B].concat(ne),ue=e.$r(Fe);B.$include(w("Comparable")),e.prop(B.$$prototype,"$$is_string",!0),c(B,"$__id__",function(){var $=this;return $.toString()}),p(B,"$try_convert",function($){return f["$coerce_to?"]($,w("String"),"to_str")}),p(B,"$new",function($){var l,u,d=this;l=h(arguments),u=l;var _=u[0]||"",S=u[u.length-1];return _=t(_,w("String"),"to_str"),S&&S.$$is_hash&&S.$$smap.encoding&&(_=_.$force_encoding(S.$$smap.encoding)),_=new d.$$constructor(_),_.$initialize.$$pristine||z(_,"initialize",D(u)),_},-1),c(B,"$initialize",function($,l){var u,d;return u=h(arguments),d=j(u),d=he(d),u.length>0&&u.shift(),d.$$smap.encoding,d.$$smap.capacity,ce},-1),c(B,"$%",function($){var l=this;return be(w("Array"),$)?z(l,"format",[l].concat(D($))):l.$format(l,$)}),c(B,"$*",function($){var l=this;if($=t($,w("Integer"),"to_int"),$<0&&ee.$raise(w("ArgumentError"),"negative argument"),$===0)return"";var u="",d=l.toString();for(d.length*$>=1<<28&&ee.$raise(w("RangeError"),"multiply count must not overflow maximum string size");($&1)===1&&(u+=d),$>>>=1,$!==0;)d+=d;return u}),c(B,"$+",function($){var l=this;if($=t($,w("String"),"to_str"),$==""&&l.$$class===e.String)return l;if(l==""&&$.$$class===e.String)return $;var u=l+$;return l.encoding===u.encoding&&$.encoding===u.encoding||l.encoding.name==="UTF-8"||$.encoding.name==="UTF-8"?u:e.enc(u,l.encoding)}),c(B,"$<=>",function($){var l=this;if(Y($["$respond_to?"]("to_str")))return $=$.$to_str().$to_s(),l>$?1:l<$?-1:0;var u=$["$<=>"](l);return u===ce?ce:u>0?-1:u<0?1:0}),c(B,"$==",function($){var l=this;return $.$$is_string?l.toString()===$.toString():r($,"$to_str")?$["$=="](l):!1}),c(B,"$=~",function($){var l=this;return $.$$is_string&&ee.$raise(w("TypeError"),"type mismatch: String given"),$["$=~"](l)}),c(B,"$[]",function($,l){var u=this,d=u.length,_,S;if($.$$is_range)return _=$.excl,S=$,l=$.end===ce?-1:t($.end,w("Integer"),"to_int"),$=$.begin===ce?0:t($.begin,w("Integer"),"to_int"),Math.abs($)>d?ce:($<0&&($+=d),l<0&&(l+=d),(!_||S.end===ce)&&(l+=1),l=l-$,l<0&&(l=0),u.substr($,l));if($.$$is_string)return l!=null&&ee.$raise(w("TypeError")),u.indexOf($)!==-1?$:ce;if($.$$is_regexp){var T=u.match($);return T===null?(X["~"]=ce,ce):(X["~"]=w("MatchData").$new($,T),l==null?T[0]:(l=t(l,w("Integer"),"to_int"),l<0&&-l<T.length?T[l+=T.length]:l>=0&&l<T.length?T[l]:ce))}return $=t($,w("Integer"),"to_int"),$<0&&($+=d),l==null?$>=d||$<0?ce:u.substr($,1):(l=t(l,w("Integer"),"to_int"),l<0||$>d||$<0?ce:u.substr($,l))},-2),c(B,"$b",function(){var $=this;return new String($).$force_encoding("binary")}),c(B,"$capitalize",function(){var $=this;return $.charAt(0).toUpperCase()+$.substr(1).toLowerCase()}),c(B,"$casecmp",function($){var l=this;if(!Y($["$respond_to?"]("to_str")))return ce;$=t($,w("String"),"to_str").$to_s();var u=/^[\x00-\x7F]*$/;return u.test(l)&&u.test($)&&(l=l.toLowerCase(),$=$.toLowerCase()),l["$<=>"]($)}),c(B,"$casecmp?",function($){var l=this,u=l.$casecmp($);return u===ce?ce:u===0}),c(B,"$center",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),Y(l["$empty?"]())&&ee.$raise(w("ArgumentError"),"zero width padding"),Y($<=u.length))return u;var d=u.$ljust(ge(se($,u.length),2).$ceil(),l),_=u.$rjust(ge(se($,u.length),2).$floor(),l);return _+d.slice(u.length)},-2),c(B,"$chomp",function($){var l=this;if(X["/"]==null&&(X["/"]=ce),$==null&&($=X["/"]),Y($===ce||l.length===0))return l;$=f["$coerce_to!"]($,w("String"),"to_str").$to_s();var u;if($===`
|
|
399
|
-
`)u=l.replace(/\r?\n?$/,"");else if($==="")u=l.replace(/(\r?\n)+$/,"");else if(l.length>=$.length){var d=l.substr(l.length-$.length,$.length);d===$&&(u=l.substr(0,l.length-$.length))}return u??l},-1),c(B,"$chop",function(){var $=this,l=$.length,u;return l<=1?u="":$.charAt(l-1)===`
|
|
400
|
-
`&&$.charAt(l-2)==="\r"?u=$.substr(0,l-2):u=$.substr(0,l-1),u}),c(B,"$chr",function(){var $=this;return $.charAt(0)}),c(B,"$clone",function($){var l,u=this,d=ce;return $=he($),l=$.$$smap.freeze,l==null&&(l=ce),Y(l["$nil?"]())||me(l,!0)||me(l,!1)||u.$raise(ue("ArgumentError"),"unexpected value for freeze: "+l.$class()),d=new String(u),d.$copy_singleton_methods(u),d.$initialize_clone(u,Z(["freeze"],{freeze:l})),me(l,!0)?d.$$frozen||(d.$$frozen=!0):Y(l["$nil?"]())&&u.$$frozen&&(d.$$frozen=!0),d},-1),c(B,"$dup",function(){var $=this,l=ce;return l=new String($),l.$initialize_dup($),l}),c(B,"$count",function($){var l,u,d=this;l=h(arguments),u=l,u.length===0&&ee.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=U(u);return _===null?0:d.length-d.replace(new RegExp(_,"g"),"").length},-1),c(B,"$delete",function($){var l,u,d=this;l=h(arguments),u=l,u.length===0&&ee.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=U(u);return _===null?d:d.replace(new RegExp(_,"g"),"")},-1),c(B,"$delete_prefix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(0,$.length)===$?l.slice($.length):l}),c(B,"$delete_suffix",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.slice(l.length-$.length)===$?l.slice(0,l.length-$.length):l}),c(B,"$downcase",function(){var $=this;return $.toLowerCase()}),c(B,"$each_line",function v($,l){var u=v.$$p||ce,d,_,S,T,te=this;if(X["/"]==null&&(X["/"]=ce),v.$$p=null,d=h(arguments),_=j(d),_=he(_),d.length>0&&(S=d.shift()),S==null&&(S=X["/"]),T=_.$$smap.chomp,T==null&&(T=!1),u===ce)return te.$enum_for("each_line",S,Z(["chomp"],{chomp:T}));if(S===ce)return e.yield1(u,te),te;S=t(S,w("String"),"to_str");var Ie,Je,ut,_t,wt,bt,At,St;if(S.length===0){for(Ie=te.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),Je=0,ut=Ie.length;Je<ut;Je+=2)(Ie[Je]||Ie[Je+1])&&(St=(Ie[Je]||"")+(Ie[Je+1]||""),T&&(St=St.$chomp(`
|
|
401
|
-
`)),e.yield1(u,St));return te}for(wt=te.$chomp(S),bt=te.length!=wt.length,At=wt.split(S),Je=0,_t=At.length;Je<_t;Je++)St=At[Je],(Je<_t-1||bt)&&(St+=S),T&&(St=St.$chomp(S)),e.yield1(u,St);return te},-1),c(B,"$empty?",function(){var $=this;return $.length===0}),c(B,"$end_with?",function($){var l,u,d=this;l=h(arguments),u=l;for(var _=0,S=u.length;_<S;_++){var T=t(u[_],w("String"),"to_str").$to_s();if(d.length>=T.length&&d.substr(d.length-T.length,T.length)==T)return!0}return!1},-1),c(B,"$gsub",function v($,l){var u=v.$$p||ce,d=this;if(v.$$p=null,l===void 0&&u===ce)return d.$enum_for("gsub",$);var _="",S=ce,T=0,te,Ie;$.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var Je;;){if(te=$.exec(d),te===null){X["~"]=ce,_+=d.slice(T);break}S=w("MatchData").$new($,te),l===void 0?(Je=$.lastIndex,Ie=u(te[0]),$.lastIndex=Je):l.$$is_hash?Ie=l["$[]"](te[0]).$to_s():(l.$$is_string||(l=t(l,w("String"),"to_str")),Ie=l.replace(/([\\]+)([0-9+&`'])/g,function(ut,_t,wt){if(_t.length%2===0)return ut;switch(wt){case"+":for(var bt=te.length-1;bt>0;bt--)if(te[bt]!==void 0)return _t.slice(1)+te[bt];return"";case"&":return _t.slice(1)+te[0];case"`":return _t.slice(1)+d.slice(0,te.index);case"'":return _t.slice(1)+d.slice(te.index+te[0].length);default:return _t.slice(1)+(te[wt]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===te.index?(_+=d.slice(T,te.index)+Ie+(d[te.index]||""),$.lastIndex+=1):_+=d.slice(T,te.index)+Ie,T=$.lastIndex}return X["~"]=S,_},-2),c(B,"$hash",function(){var $=this;return $.toString()}),c(B,"$hex",function(){var $=this;return $.$to_i(16)}),c(B,"$include?",function($){var l=this;return $.$$is_string||($=t($,w("String"),"to_str")),l.indexOf($)!==-1}),c(B,"$index",function($,l){var u=this,d,_,S;if(l===void 0)l=0;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=u.length,l<0))return ce;if($.$$is_regexp)for(S=n($);;){if(_=S.exec(u),_===null){X["~"]=ce,d=-1;break}if(_.index>=l){X["~"]=w("MatchData").$new(S,_),d=_.index;break}S.lastIndex=_.index+1}else $=t($,w("String"),"to_str"),$.length===0&&l>u.length?d=-1:d=u.indexOf($,l);return d===-1?ce:d},-2),c(B,"$inspect",function(){var $=this,l=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},d=$.replace(l,function(_){return u[_]?u[_]:(_=_.charCodeAt(0),_<=255&&($.encoding["$binary?"]()||$.internal_encoding["$binary?"]())?"\\x"+("00"+_.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+_.toString(16).toUpperCase()).slice(-4))});return'"'+d.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),c(B,"$intern",function(){var $=this;return $.toString()}),c(B,"$length",function(){var $=this;return $.length}),xe(B,"size","length"),c(B,"$lines",function v($,l){var u=v.$$p||ce,d,_,S,T,te=this,Ie=ce;return X["/"]==null&&(X["/"]=ce),v.$$p=null,d=h(arguments),_=j(d),_=he(_),d.length>0&&(S=d.shift()),S==null&&(S=X["/"]),T=_.$$smap.chomp,T==null&&(T=!1),Ie=z(te,"each_line",[S,Z(["chomp"],{chomp:T})],u.$to_proc()),Y(u)?te:Ie.$to_a()},-1),c(B,"$ljust",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),Y(l["$empty?"]())&&ee.$raise(w("ArgumentError"),"zero width padding"),Y($<=u.length))return u;var d=-1,_="";for($-=u.length;++d<$;)_+=l;return u+_.slice(0,$)},-2),c(B,"$lstrip",function(){var $=this;return $.replace(/^[\u0000\s]*/,"")}),c(B,"$ascii_only?",function(){var $=this;return $.encoding.ascii?/^[\x00-\x7F]*$/.test($):!1}),c(B,"$match",function v($,l){var u=v.$$p||ce,d=this;return v.$$p=null,(be(ue("String"),$)||Y($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),be(w("Regexp"),$)||ee.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),z($,"match",[d,l],u.$to_proc())},-2),c(B,"$match?",function($,l){var u=this;return(be(ue("String"),$)||Y($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),be(w("Regexp"),$)||ee.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),$["$match?"](u,l)},-2),c(B,"$next",function(){var $=this,l=$.length;if(l===0)return"";for(var u=$,d=$.search(/[a-zA-Z0-9]/),_=!1,S;l--;){if(S=$.charCodeAt(l),S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122)switch(S){case 57:_=!0,S=48;break;case 90:_=!0,S=65;break;case 122:_=!0,S=97;break;default:_=!1,S+=1}else d===-1?S===255?(_=!0,S=0):(_=!1,S+=1):_=!0;if(u=u.slice(0,l)+String.fromCharCode(S)+u.slice(l+1),_&&(l===0||l===d)){switch(S){case 65:break;case 97:break;default:S+=1}l===0?u=String.fromCharCode(S)+u:u=u.slice(0,l)+String.fromCharCode(S)+u.slice(l),_=!1}if(!_)break}return u}),c(B,"$oct",function(){var $=this,l,u=$,d=8;return/^\s*_/.test(u)?0:(u=u.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(_,S,T,te){switch(te.charAt(0)){case"+":case"-":return _;case"0":if(te.charAt(1)==="x"&&T==="0x")return _}switch(T){case"0b":d=2;break;case"0":case"0o":d=8;break;case"0d":d=10;break;case"0x":d=16;break}return S+te}),l=parseInt(u.replace(/_(?!_)/g,""),d),isNaN(l)?0:l)}),c(B,"$ord",function(){var $=this;return typeof $.codePointAt=="function"?$.codePointAt(0):$.charCodeAt(0)}),c(B,"$partition",function($){var l=this,u,d;return $.$$is_regexp?(d=$.exec(l),d===null?u=-1:(w("MatchData").$new($,d),$=d[0],u=d.index)):($=t($,w("String"),"to_str"),u=l.indexOf($)),u===-1?[l,"",""]:[l.slice(0,u),l.slice(u,u+$.length),l.slice(u+$.length)]}),c(B,"$reverse",function(){var $=this;return $.split("").reverse().join("")}),c(B,"$rindex",function($,l){var u=this,d,_,S,T;if(l===void 0)l=u.length;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=u.length,l<0))return ce;if($.$$is_regexp){for(_=null,S=n($);T=S.exec(u),!(T===null||T.index>l);)_=T,S.lastIndex=_.index+1;_===null?(X["~"]=ce,d=-1):(w("MatchData").$new(S,_),d=_.index)}else $=t($,w("String"),"to_str"),d=u.lastIndexOf($,l);return d===-1?ce:d},-2),c(B,"$rjust",function($,l){var u=this;if(l==null&&(l=" "),$=t($,w("Integer"),"to_int"),l=t(l,w("String"),"to_str").$to_s(),Y(l["$empty?"]())&&ee.$raise(w("ArgumentError"),"zero width padding"),Y($<=u.length))return u;var d=Math.floor($-u.length),_=Math.floor(d/l.length),S=Array(_+1).join(l),T=d-S.length;return S+l.slice(0,T)+u},-2),c(B,"$rpartition",function($){var l=this,u,d,_,S;if($.$$is_regexp){for(d=null,_=n($);S=_.exec(l),S!==null;)d=S,_.lastIndex=d.index+1;d===null?u=-1:(w("MatchData").$new(_,d),$=d[0],u=d.index)}else $=t($,w("String"),"to_str"),u=l.lastIndexOf($);return u===-1?["","",l]:[l.slice(0,u),l.slice(u,u+$.length),l.slice(u+$.length)]}),c(B,"$rstrip",function(){var $=this;return $.replace(/[\s\u0000]*$/,"")}),c(B,"$scan",function v($,l){var u=v.$$p||ce,d,_=this;v.$$p=null,l=he(l),d=l.$$smap.no_matchdata,d==null&&(d=!1);var S=[],T=ce,te;for($.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(te=$.exec(_))!=null;)T=w("MatchData").$new($,te,Z(["no_matchdata"],{no_matchdata:d})),u===ce?te.length==1?S.push(te[0]):S.push(T.$captures()):te.length==1?e.yield1(u,te[0]):e.yield1(u,T.$captures()),$.lastIndex===te.index&&($.lastIndex+=1);return d||(X["~"]=T),u!==ce?_:S},-2),c(B,"$singleton_class",function(){var $=this;return e.get_singleton_class($)}),c(B,"$split",function($,l){var u=this,d=ce;if(X[";"]==null&&(X[";"]=ce),u.length===0)return[];if(l===void 0)l=0;else if(l=f["$coerce_to!"](l,w("Integer"),"to_int"),l===1)return[u];($===void 0||$===ce)&&($=Y(d=X[";"])?d:" ");var _=[],S=u.toString(),T=0,te,Ie,Je;if($.$$is_regexp?$=n($):($=t($,w("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,S=S.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),_=S.split($),_.length===1&&_[0]===S)return[_[0]];for(;(Ie=_.indexOf(void 0))!==-1;)_.splice(Ie,1);if(l===0){for(;_[_.length-1]==="";)_.length-=1;return _}if(te=$.exec(S),l<0){if(te!==null&&te[0]===""&&$.source.indexOf("(?=")===-1)for(Ie=0,Je=te.length;Ie<Je;Ie++)_.push("");return _}if(te!==null&&te[0]==="")return _.splice(l-1,_.length-1,_.slice(l-1).join("")),_;if(l>=_.length)return _;for(Ie=0;te!==null&&(Ie++,T=$.lastIndex,Ie+1!==l);)te=$.exec(S);return _.splice(l-1,_.length-1,S.slice(T)),_},-1),c(B,"$squeeze",function($){var l,u,d=this;if(l=h(arguments),u=l,u.length===0)return d.replace(/(.)\1+/g,"$1");var _=U(u);return _===null?d:d.replace(new RegExp("("+_+")\\1+","g"),"$1")},-1),c(B,"$start_with?",function($){var l,u,d=this;l=h(arguments),u=l;for(var _=0,S=u.length;_<S;_++)if(u[_].$$is_regexp){var T=u[_],te=T.exec(d);if(te!=null&&te.index===0)return X["~"]=w("MatchData").$new(T,te),!0;X["~"]=ce}else{var Ie=t(u[_],w("String"),"to_str").$to_s();if(d.indexOf(Ie)===0)return!0}return!1},-1),c(B,"$strip",function(){var $=this;return $.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),c(B,"$sub",function v($,l){var u=v.$$p||ce,d=this;v.$$p=null,$.$$is_regexp||($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var _,S=$.exec(d);return S===null?(X["~"]=ce,_=d.toString()):(w("MatchData").$new($,S),l===void 0?(u===ce&&ee.$raise(w("ArgumentError"),"wrong number of arguments (1 for 2)"),_=d.slice(0,S.index)+u(S[0])+d.slice(S.index+S[0].length)):l.$$is_hash?_=d.slice(0,S.index)+l["$[]"](S[0]).$to_s()+d.slice(S.index+S[0].length):(l=t(l,w("String"),"to_str"),l=l.replace(/([\\]+)([0-9+&`'])/g,function(T,te,Ie){if(te.length%2===0)return T;switch(Ie){case"+":for(var Je=S.length-1;Je>0;Je--)if(S[Je]!==void 0)return te.slice(1)+S[Je];return"";case"&":return te.slice(1)+S[0];case"`":return te.slice(1)+d.slice(0,S.index);case"'":return te.slice(1)+d.slice(S.index+S[0].length);default:return te.slice(1)+(S[Ie]||"")}}).replace(/\\\\/g,"\\"),_=d.slice(0,S.index)+l+d.slice(S.index+S[0].length))),_},-2),c(B,"$sum",function($){var l=this;$==null&&($=16),$=t($,w("Integer"),"to_int");for(var u=0,d=l.length,_=0;_<d;_++)u+=l.charCodeAt(_);return $<=0?u:u&Math.pow(2,$)-1},-1),c(B,"$swapcase",function(){var $=this,l=$.replace(/([a-z]+)|([A-Z]+)/g,function(u,d,_){return d?u.toUpperCase():u.toLowerCase()});return l}),c(B,"$to_f",function(){var $=this;if($.charAt(0)==="_")return 0;var l=parseFloat($.replace(/_/g,""));return isNaN(l)||l==1/0||l==-1/0?0:l}),c(B,"$to_i",function($){var l=this;$==null&&($=10);var u,d=l.toLowerCase(),_=t($,w("Integer"),"to_int");return(_===1||_<0||_>36)&&ee.$raise(w("ArgumentError"),"invalid radix "+_),/^\s*_/.test(d)?0:(d=d.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(S,T,te,Ie){switch(Ie.charAt(0)){case"+":case"-":return S;case"0":if(Ie.charAt(1)==="x"&&te==="0x"&&(_===0||_===16))return S}switch(te){case"0b":if(_===0||_===2)return _=2,T+Ie;break;case"0":case"0o":if(_===0||_===8)return _=8,T+Ie;break;case"0d":if(_===0||_===10)return _=10,T+Ie;break;case"0x":if(_===0||_===16)return _=16,T+Ie;break}return S}),u=parseInt(d.replace(/_(?!_)/g,""),_),isNaN(u)?0:u)},-1),c(B,"$to_proc",function v(){v.$$p;var $=this,l=ce,u=ce,d=ce;return v.$$p=null,l=$.valueOf(),u=e.jsid(l),d=z(ee,"proc",[],function _(S){var T=_.$$p||ce,te,Ie;_.$$p=null,te=h(arguments),Ie=te,Ie.length===0&&ee.$raise(w("ArgumentError"),"no receiver given");var Je=Ie[0];Je==null&&(Je=ce);var ut=Je[u];return ut?Ie=Ie.slice(1):(ut=Je.$method_missing,Ie[0]=l),typeof T=="function"&&(ut.$$p=T),Ie.length===0?ut.call(Je):ut.apply(Je,Ie)},-1),d.$$source_location=ce,d}),c(B,"$to_s",function(){var $=this;return $.toString()}),c(B,"$tr",function($,l){var u=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0||$===l)return u;var d,_,S,T,te,Ie,Je,ut={},_t=$.split(""),wt=_t.length,bt=l.split(""),At=bt.length,St=!1,Mt=null;_t[0]==="^"&&_t.length>1&&(St=!0,_t.shift(),Mt=bt[At-1],wt-=1);var Ct=[],nt=null;for(_=!1,d=0;d<wt;d++)if(T=_t[d],nt==null)nt=T,Ct.push(T);else if(T==="-")nt==="-"?(Ct.push("-"),Ct.push("-")):d==wt-1?Ct.push("-"):_=!0;else if(_){for(te=nt.charCodeAt(0),Ie=T.charCodeAt(0),te>Ie&&ee.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(te)+"-"+String.fromCharCode(Ie)+'" in string transliteration'),S=te+1;S<Ie;S++)Ct.push(String.fromCharCode(S));Ct.push(T),_=null,nt=null}else Ct.push(T);if(_t=Ct,wt=_t.length,St)for(d=0;d<wt;d++)ut[_t[d]]=!0;else{if(At>0){var Ne=[],je=null;for(_=!1,d=0;d<At;d++)if(T=bt[d],je==null)je=T,Ne.push(T);else if(T==="-")je==="-"?(Ne.push("-"),Ne.push("-")):d==At-1?Ne.push("-"):_=!0;else if(_){for(te=je.charCodeAt(0),Ie=T.charCodeAt(0),te>Ie&&ee.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(te)+"-"+String.fromCharCode(Ie)+'" in string transliteration'),S=te+1;S<Ie;S++)Ne.push(String.fromCharCode(S));Ne.push(T),_=null,je=null}else Ne.push(T);bt=Ne,At=bt.length}var Ke=wt-At;if(Ke>0){var x=At>0?bt[At-1]:"";for(d=0;d<Ke;d++)bt.push(x)}for(d=0;d<wt;d++)ut[_t[d]]=bt[d]}var N="";for(d=0,Je=u.length;d<Je;d++){T=u.charAt(d);var ve=ut[T];St?N+=ve==null?Mt:T:N+=ve??T}return N}),c(B,"$tr_s",function($,l){var u=this;if($=t($,w("String"),"to_str").$to_s(),l=t(l,w("String"),"to_str").$to_s(),$.length==0)return u;var d,_,S,T,te,Ie,Je,ut={},_t=$.split(""),wt=_t.length,bt=l.split(""),At=bt.length,St=!1,Mt=null;_t[0]==="^"&&_t.length>1&&(St=!0,_t.shift(),Mt=bt[At-1],wt-=1);var Ct=[],nt=null;for(_=!1,d=0;d<wt;d++)if(T=_t[d],nt==null)nt=T,Ct.push(T);else if(T==="-")nt==="-"?(Ct.push("-"),Ct.push("-")):d==wt-1?Ct.push("-"):_=!0;else if(_){for(te=nt.charCodeAt(0),Ie=T.charCodeAt(0),te>Ie&&ee.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(te)+"-"+String.fromCharCode(Ie)+'" in string transliteration'),S=te+1;S<Ie;S++)Ct.push(String.fromCharCode(S));Ct.push(T),_=null,nt=null}else Ct.push(T);if(_t=Ct,wt=_t.length,St)for(d=0;d<wt;d++)ut[_t[d]]=!0;else{if(At>0){var Ne=[],je=null;for(_=!1,d=0;d<At;d++)if(T=bt[d],nt==null)nt=T,Ne.push(T);else if(T==="-")je==="-"?(Ne.push("-"),Ne.push("-")):d==At-1?Ne.push("-"):_=!0;else if(_){for(te=nt.charCodeAt(0),Ie=T.charCodeAt(0),te>Ie&&ee.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(te)+"-"+String.fromCharCode(Ie)+'" in string transliteration'),S=te+1;S<Ie;S++)Ne.push(String.fromCharCode(S));Ne.push(T),_=null,nt=null}else Ne.push(T);bt=Ne,At=bt.length}var Ke=wt-At;if(Ke>0){var x=At>0?bt[At-1]:"";for(d=0;d<Ke;d++)bt.push(x)}for(d=0;d<wt;d++)ut[_t[d]]=bt[d]}var N="",ve=null;for(d=0,Je=u.length;d<Je;d++){T=u.charAt(d);var Le=ut[T];St?Le==null?ve==null&&(N+=Mt,ve=!0):(N+=T,ve=null):Le!=null?(ve==null||ve!==Le)&&(N+=Le,ve=Le):(N+=T,ve=null)}return N}),c(B,"$upcase",function(){var $=this;return $.toUpperCase()}),c(B,"$upto",function v($,l){var u=v.$$p||ce,d=this;if(v.$$p=null,l==null&&(l=!1),u===ce)return d.$enum_for("upto",$,l);var _,S,T=d.toString();if($=t($,w("String"),"to_str"),T.length===1&&$.length===1)for(_=T.charCodeAt(0),S=$.charCodeAt(0);_<=S&&!(l&&_===S);)u(String.fromCharCode(_)),_+=1;else if(parseInt(T,10).toString()===T&&parseInt($,10).toString()===$)for(_=parseInt(T,10),S=parseInt($,10);_<=S&&!(l&&_===S);)u(_.toString()),_+=1;else for(;T.length<=$.length&&T<=$&&!(l&&T===$);)u(T),T=T.$succ();return d},-2);function U(v){function $(ut){var _t="",wt,bt=ut.length,At,St,Mt,Ct,nt;for(wt=0;wt<bt;wt++)if(At=ut.charAt(wt),At==="-"&&wt>0&&wt<bt-1&&!St){for(Mt=ut.charCodeAt(wt-1),Ct=ut.charCodeAt(wt+1),Mt>Ct&&ee.$raise(w("ArgumentError"),'invalid range "'+Mt+"-"+Ct+'" in string transliteration'),nt=Mt+1;nt<Ct+1;nt++)_t+=String.fromCharCode(nt);St=!0,wt++}else St=At==="\\",_t+=At;return _t}function l(ut,_t){if(ut.length===0)return _t;var wt="",bt,At=ut.length,St;for(bt=0;bt<At;bt++)St=ut.charAt(bt),_t.indexOf(St)!==-1&&(wt+=St);return wt}var u,d,_,S,T,te,Ie="",Je="";for(u=0,d=v.length;u<d;u++)_=t(v[u],w("String"),"to_str"),S=_.charAt(0)==="^"&&_.length>1,_=$(S?_.slice(1):_),S?Je=l(Je,_):Ie=l(Ie,_);if(Ie.length>0&&Je.length>0){for(te="",u=0,d=Ie.length;u<d;u++)T=Ie.charAt(u),Je.indexOf(T)===-1&&(te+=T);Ie=te,Je=""}return Ie.length>0?"["+w("Regexp").$escape(Ie)+"]":Je.length>0?"[^"+w("Regexp").$escape(Je)+"]":null}return c(B,"$instance_variables",function(){return[]}),p(B,"$_load",function($){var l,u,d=this;return l=h(arguments),u=l,z(d,"new",D(u))},-1),c(B,"$unicode_normalize",function($){var l=this;return $==null&&($="nfc"),Y(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||ee.$raise(w("ArgumentError"),"Invalid normalization form "+$),l.normalize($.$upcase())},-1),c(B,"$unicode_normalized?",function($){var l=this;return $==null&&($="nfc"),l.$unicode_normalize($)["$=="](l)},-1),c(B,"$unpack",function($){return ee.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),c(B,"$unpack1",function($){return ee.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),c(B,"$freeze",function(){var $=this;return typeof $=="string"||i($,"$$frozen",!0),$}),c(B,"$-@",function(){var $=this;return typeof $=="string"||$.$$frozen?$:$.encoding.name=="UTF-8"&&$.internal_encoding.name=="UTF-8"?$.toString():$.$dup().$freeze()}),c(B,"$frozen?",function(){var $=this;return typeof $=="string"||$.$$frozen===!0}),xe(B,"+@","dup"),xe(B,"===","=="),xe(B,"byteslice","[]"),xe(B,"eql?","=="),xe(B,"equal?","==="),xe(B,"object_id","__id__"),xe(B,"slice","[]"),xe(B,"succ","next"),xe(B,"to_str","to_s"),xe(B,"to_sym","intern"),f.$pristine(B,"initialize")}("::",String,J),fe(J[0],"Symbol",Ee("String"))};Opal.modules["corelib/enumerable"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.module,f=e.send,p=e.slice,h=e.to_a,z=e.Opal,D=e.thrower,j=e.def,he=e.Kernel,be=e.return_val,ee=e.rb_gt,Y=e.rb_times,X=e.rb_lt,ge=e.eqeq,se=e.rb_plus,me=e.rb_minus,Z=e.rb_divide,xe=e.rb_le,fe=e.hash2,Ae=e.lambda,J=e.not,Ee=e.alias,ce=[],w=e.nil,Se=e.$$$;return e.add_stubs("each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,try_convert,<,+,-,ceil,/,size,select,__send__,length,<=,[],push,<<,[]=,===,inspect,<=>,first,reverse,sort,take,sort_by,compare,call,dup,sort!,map!,include?,-@,key?,values,transform_values,group_by,fetch,to_h,coerce_to?,class,zip,detect,find_all,collect_concat,collect,inject,entries"),function(I,ne){var B=c(I,"Enumerable"),Fe=[B].concat(ne),ue=e.$r(Fe);function U(v){return v.length===0&&(v=[w]),v.length>1&&(v=[v]),v}return j(B,"$all?",function v($){try{var l=D("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var T,te,Ie=w;if(T=p(arguments),te=T,Ie=U(te),t(f($,"public_send",["==="].concat(h(Ie)))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var T,te;if(T=p(arguments),te=T,t(e.yieldX(u,h(te))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var T,te;if(T=p(arguments),te=T,t(z.$destructure(te)))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),j(B,"$any?",function v($){try{var l=D("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var T,te,Ie=w;if(T=p(arguments),te=T,Ie=U(te),t(f($,"public_send",["==="].concat(h(Ie)))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var T,te;if(T=p(arguments),te=T,t(e.yieldX(u,h(te))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var T,te;if(T=p(arguments),te=T,t(z.$destructure(te)))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(_){if(_===l)return _.$v;throw _}},-1),j(B,"$chunk",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w?f(l,"to_enum",["chunk"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(Se("Enumerator"),"new",[],function u(d){var _=u.$$s==null?this:u.$$s;d==null&&(d=w);var S=w,T=[];function te(){T.length>0&&d.$yield(S,T)}_.$each.$$p=function(Ie){var Je=n($,Ie);Je===w?(te(),T=[],S=w):(S===w||S===Je?T.push(Ie):(te(),T=[Ie]),S=Je)},_.$each(),te()},{$$s:l})}),j(B,"$chunk_while",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w&&he.$raise(Se("ArgumentError"),"no block given"),f(l,"slice_when",[],function(d,_){return d==null&&(d=w),_==null&&(_=w),e.yieldX($,[d,_])["$!"]()})}),j(B,"$collect",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["collect"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=i($,arguments);u.push(d)},l.$each(),u}),j(B,"$collect_concat",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w?f(l,"enum_for",["collect_concat"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(l,"map",[],$.$to_proc()).$flatten(1)}),j(B,"$compact",function(){var $=this;return $.$to_a().$compact()}),j(B,"$count",function v($){var l=v.$$p||w,u=this,d=w;return v.$$p=null,d=0,$!=null&&l!==w&&u.$warn("warning: given block not used"),t($!=null)?l=f(he,"proc",[],function(S){var T,te;return T=p(arguments),te=T,z.$destructure(te)["$=="]($)},-1):t(l["$nil?"]())&&(l=f(he,"proc",[],be(!0))),f(u,"each",[],function(S){var T,te;return T=p(arguments),te=T,t(i(l,te))?d++:w},-1),d},-1),j(B,"$cycle",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$==null&&($=w),l===w)return f(u,"enum_for",["cycle",$],function T(){var te=T.$$s==null?this:T.$$s;return t($["$nil?"]())?t(te["$respond_to?"]("size"))?Se(Se("Float"),"INFINITY"):w:($=z["$coerce_to!"]($,Se("Integer"),"to_int"),t(ee($,0))?Y(te.$enumerator_size(),$):0)},{$$s:u});if(!t($["$nil?"]())&&($=z["$coerce_to!"]($,Se("Integer"),"to_int"),t($<=0)))return w;var d=[],_,S;if(u.$each.$$p=function(){var T=z.$destructure(arguments);n(l,T),d.push(T)},u.$each(),d.length===0)return w;if($===w)for(;;)for(_=0,S=d.length;_<S;_++)n(l,d[_]);else for(;$>1;){for(_=0,S=d.length;_<S;_++)n(l,d[_]);$--}},-1),j(B,"$detect",function v($){try{var l=D("return"),u=v.$$p||w,d=this;return v.$$p=null,u===w?d.$enum_for("detect",$):(f(d,"each",[],function(S){var T,te,Ie=w;if(T=p(arguments),te=T,Ie=z.$destructure(te),t(e.yield1(u,Ie)))l.$throw(Ie);else return w},{$$arity:-1,$$ret:l}),$!==void 0?typeof $=="function"?$():$:w)}catch(_){if(_===l)return _.$v;throw _}},-1),j(B,"$drop",function($){var l=this;$=r($,Se("Integer"),"to_int"),t($<0)&&he.$raise(Se("ArgumentError"),"attempt to drop negative size");var u=[],d=0;return l.$each.$$p=function(){$<=d&&u.push(z.$destructure(arguments)),d++},l.$each(),u}),j(B,"$drop_while",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return l.$enum_for("drop_while");var u=[],d=!0;return l.$each.$$p=function(){var _=z.$destructure(arguments);if(d){var S=n($,_);t(S)||(d=!1,u.push(_))}else u.push(_)},l.$each(),u}),j(B,"$each_cons",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,t(arguments.length!=1)&&he.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=z.$try_convert($,Se("Integer"),"to_int"),t($<=0)&&he.$raise(Se("ArgumentError"),"invalid size"),l===w)return f(u,"enum_for",["each_cons",$],function _(){var S=_.$$s==null?this:_.$$s,T=w;return T=S.$enumerator_size(),t(T["$nil?"]())?w:ge(T,0)||t(X(T,$))?0:se(me(T,$),1)},{$$s:u});var d=[];return u.$each.$$p=function(){var _=z.$destructure(arguments);d.push(_),d.length>$&&d.shift(),d.length==$&&n(l,d.slice(0,$))},u.$each(),u}),j(B,"$each_entry",function v($){var l=v.$$p||w,u,d,_=this;return v.$$p=null,u=p(arguments),d=u,l===w?f(_,"to_enum",["each_entry"].concat(h(d)),function S(){var T=S.$$s==null?this:S.$$s;return T.$enumerator_size()},{$$s:_}):(_.$each.$$p=function(){var S=z.$destructure(arguments);n(l,S)},_.$each.apply(_,d),_)},-1),j(B,"$each_slice",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$=r($,Se("Integer"),"to_int"),t($<=0)&&he.$raise(Se("ArgumentError"),"invalid slice size"),l===w)return f(u,"enum_for",["each_slice",$],function _(){var S=_.$$s==null?this:_.$$s;return t(S["$respond_to?"]("size"))?Z(S.$size(),$).$ceil():w},{$$s:u});var d=[];return u.$each.$$p=function(){var _=z.$destructure(arguments);d.push(_),d.length===$&&(n(l,d),d=[])},u.$each(),d.length>0&&n(l,d),u}),j(B,"$each_with_index",function v($){var l=v.$$p||w,u,d,_=this;if(v.$$p=null,u=p(arguments),d=u,l===w)return f(_,"enum_for",["each_with_index"].concat(h(d)),function T(){var te=T.$$s==null?this:T.$$s;return te.$enumerator_size()},{$$s:_});var S=0;return _.$each.$$p=function(){var T=z.$destructure(arguments);l(T,S),S++},_.$each.apply(_,d),_},-1),j(B,"$each_with_object",function v($){var l=v.$$p||w,u=this;return v.$$p=null,l===w?f(u,"enum_for",["each_with_object",$],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:u}):(u.$each.$$p=function(){var d=z.$destructure(arguments);l(d,$)},u.$each(),$)}),j(B,"$entries",function($){var l,u,d=this;l=p(arguments),u=l;var _=[];return d.$each.$$p=function(){_.push(z.$destructure(arguments))},d.$each.apply(d,u),_},-1),j(B,"$filter_map",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w?f(l,"enum_for",["filter_map"],function u(){var d=u.$$s==null?this:u.$$s;return d.$enumerator_size()},{$$s:l}):f(f(l,"map",[],$.$to_proc()),"select",[],"itself".$to_proc())}),j(B,"$find_all",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["find_all"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=z.$destructure(arguments),_=n($,d);t(_)&&u.push(d)},l.$each(),u}),j(B,"$find_index",function v($){try{var l=D("return"),u=v.$$p||w,d=this,_=w;return v.$$p=null,t($===void 0&&u===w)?d.$enum_for("find_index"):($!=null&&u!==w&&d.$warn("warning: given block not used"),_=0,t($!=null)?f(d,"each",[],function(T){var te,Ie;return te=p(arguments),Ie=te,ge(z.$destructure(Ie),$)&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}):f(d,"each",[],function(T){var te,Ie;return te=p(arguments),Ie=te,t(e.yieldX(u,h(Ie)))&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}),w)}catch(S){if(S===l)return S.$v;throw S}},-1),j(B,"$first",function($){try{var l=D("return"),u=this,d=w,_=w;return t($===void 0)?f(u,"each",[],function(T){T==null&&(T=w),l.$throw(T)},{$$ret:l}):(d=[],$=r($,Se("Integer"),"to_int"),t($<0)&&he.$raise(Se("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(_=0,f(u,"each",[],function(T){var te,Ie;if(te=p(arguments),Ie=te,d.push(z.$destructure(Ie)),t($<=++_))l.$throw(d);else return w},{$$arity:-1,$$ret:l}),d))}catch(S){if(S===l)return S.$v;throw S}},-1),j(B,"$grep",function v($){var l=v.$$p||w,u=this,d=w;return v.$$p=null,d=[],f(u,"each",[],function(S){var T,te,Ie=w;return T=p(arguments),te=T,Ie=U(te),t(f($,"__send__",["==="].concat(h(Ie))))?(l!==w?(t(ee(te.$length(),1))&&(te=[te]),te=e.yieldX(l,h(te))):t(xe(te.$length(),1))&&(te=te["$[]"](0)),d.$push(te)):w},-1),d}),j(B,"$grep_v",function v($){var l=v.$$p||w,u=this,d=w;return v.$$p=null,d=[],f(u,"each",[],function(S){var T,te,Ie=w;return T=p(arguments),te=T,Ie=U(te),t(f($,"__send__",["==="].concat(h(Ie))))?w:(l!==w?(t(ee(te.$length(),1))&&(te=[te]),te=e.yieldX(l,h(te))):t(xe(te.$length(),1))&&(te=te["$[]"](0)),d.$push(te))},-1),d}),j(B,"$group_by",function v(){var $=v.$$p||w,l,u=this,d=w,_=w;return v.$$p=null,$===w?f(u,"enum_for",["group_by"],function S(){var T=S.$$s==null?this:S.$$s;return T.$enumerator_size()},{$$s:u}):(d=fe([],{}),u.$each.$$p=function(){var S=z.$destructure(arguments),T=n($,S);(t(_=d["$[]"](T))?_:(l=[T,[]],f(d,"[]=",l),l[l.length-1]))["$<<"](S)},u.$each(),d)}),j(B,"$include?",function($){try{var l=D("return"),u=this;return f(u,"each",[],function(_){var S,T;if(S=p(arguments),T=S,ge(z.$destructure(T),$))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(d){if(d===l)return d.$v;throw d}}),j(B,"$inject",function v($,l){var u=v.$$p||w,d=this;v.$$p=null;var _=$;return u!==w&&l===void 0?d.$each.$$p=function(){var S=z.$destructure(arguments);if(_===void 0){_=S;return}S=i(u,[_,S]),_=S}:(l===void 0&&(Se("Symbol")["$==="]($)||he.$raise(Se("TypeError"),""+$.$inspect()+" is not a Symbol"),l=$,_=void 0),d.$each.$$p=function(){var S=z.$destructure(arguments);if(_===void 0){_=S;return}_=_.$__send__(l,S)}),d.$each(),_??w},-1),j(B,"$lazy",function(){var $=this;return f(Se(Se("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(u,d){var _,S;return u==null&&(u=w),_=p(arguments,1),S=_,f(u,"yield",h(S))},-2)}),j(B,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():w}),j(B,"$max",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$===void 0||$===w){var d,_;return u.$each.$$p=function(){var S=z.$destructure(arguments);if(d===void 0){d=S;return}l!==w?_=i(l,[S,d]):_=S["$<=>"](d),_===w&&he.$raise(Se("ArgumentError"),"comparison failed"),_>0&&(d=S)},u.$each(),d===void 0?w:d}return $=r($,Se("Integer"),"to_int"),f(u,"sort",[],l.$to_proc()).$reverse().$first($)},-1),j(B,"$max_by",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$==null&&($=w),!t(l))return f(u,"enum_for",["max_by",$],function S(){var T=S.$$s==null?this:S.$$s;return T.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$reverse().$take($);var d,_;return u.$each.$$p=function(){var S=z.$destructure(arguments),T=n(l,S);if(d===void 0){d=S,_=T;return}T["$<=>"](_)>0&&(d=S,_=T)},u.$each(),d===void 0?w:d},-1),j(B,"$min",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$==null&&($=w),!t($["$nil?"]()))return l!==w?f(u,"sort",[],function(S,T){return S==null&&(S=w),T==null&&(T=w),e.yieldX(l,[S,T])}).$take($):u.$sort().$take($);var d;return l!==w?u.$each.$$p=function(){var _=z.$destructure(arguments);if(d===void 0){d=_;return}var S=l(_,d);S===w&&he.$raise(Se("ArgumentError"),"comparison failed"),S<0&&(d=_)}:u.$each.$$p=function(){var _=z.$destructure(arguments);if(d===void 0){d=_;return}z.$compare(_,d)<0&&(d=_)},u.$each(),d===void 0?w:d},-1),j(B,"$min_by",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$==null&&($=w),!t(l))return f(u,"enum_for",["min_by",$],function S(){var T=S.$$s==null?this:S.$$s;return T.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$take($);var d,_;return u.$each.$$p=function(){var S=z.$destructure(arguments),T=n(l,S);if(d===void 0){d=S,_=T;return}T["$<=>"](_)<0&&(d=S,_=T)},u.$each(),d===void 0?w:d},-1),j(B,"$minmax",function v(){var $=v.$$p||w,l=this,u=w;v.$$p=null,$=t(u=$)?u:f(he,"proc",[],function(te,Ie){return te==null&&(te=w),Ie==null&&(Ie=w),te["$<=>"](Ie)});var d=w,_=w,S=!0;return l.$each.$$p=function(){var T=z.$destructure(arguments);if(S)d=_=T,S=!1;else{var te=$.$call(d,T);te===w?he.$raise(Se("ArgumentError"),"comparison failed"):te>0&&(d=T);var Ie=$.$call(_,T);Ie===w?he.$raise(Se("ArgumentError"),"comparison failed"):Ie<0&&(_=T)}},l.$each(),[d,_]}),j(B,"$minmax_by",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,!t($))return f(l,"enum_for",["minmax_by"],function T(){var te=T.$$s==null?this:T.$$s;return te.$enumerator_size()},{$$s:l});var u=w,d=w,_,S;return l.$each.$$p=function(){var T=z.$destructure(arguments),te=n($,T);(_===void 0||te["$<=>"](_)<0)&&(u=T,_=te),(S===void 0||te["$<=>"](S)>0)&&(d=T,S=te)},l.$each(),[u,d]}),j(B,"$none?",function v($){try{var l=D("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(S){var T,te,Ie=w;if(T=p(arguments),te=T,Ie=U(te),t(f($,"public_send",["==="].concat(h(Ie)))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(S){var T,te;if(T=p(arguments),te=T,t(e.yieldX(u,h(te))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(S){var T,te,Ie=w;if(T=p(arguments),te=T,Ie=z.$destructure(te),t(Ie))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),j(B,"$one?",function v($){try{var l=D("return"),u=v.$$p||w,d=this,_=w;return v.$$p=null,_=0,t($!==void 0)?f(d,"each",[],function(T){var te,Ie,Je=w;if(te=p(arguments),Ie=te,Je=U(Ie),t(f($,"public_send",["==="].concat(h(Je)))))if(_=se(_,1),t(ee(_,1)))l.$throw(!1);else return w;else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(T){var te,Ie;if(te=p(arguments),Ie=te,!t(e.yieldX(u,h(Ie))))return w;if(_=se(_,1),t(ee(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(T){var te,Ie;if(te=p(arguments),Ie=te,!t(z.$destructure(Ie)))return w;if(_=se(_,1),t(ee(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),_["$=="](1)}catch(S){if(S===l)return S.$v;throw S}},-1),j(B,"$partition",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["partition"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var u=[],d=[];return l.$each.$$p=function(){var _=z.$destructure(arguments),S=n($,_);t(S)?u.push(_):d.push(_)},l.$each(),[u,d]}),j(B,"$reject",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["reject"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l});var u=[];return l.$each.$$p=function(){var d=z.$destructure(arguments),_=n($,d);t(_)||u.push(d)},l.$each(),u}),j(B,"$reverse_each",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["reverse_each"],function _(){var S=_.$$s==null?this:_.$$s;return S.$enumerator_size()},{$$s:l});var u=[];l.$each.$$p=function(){u.push(arguments)},l.$each();for(var d=u.length-1;d>=0;d--)i($,u[d]);return u}),j(B,"$slice_before",function v($){var l=v.$$p||w,u=this;return v.$$p=null,t($===void 0&&l===w)&&he.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&he.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),f(Se("Enumerator"),"new",[],function d(_){var S=d.$$s==null?this:d.$$s;_==null&&(_=w);var T=[];l!==w?$===void 0?S.$each.$$p=function(){var te=z.$destructure(arguments),Ie=n(l,te);t(Ie)&&T.length>0&&(_["$<<"](T),T=[]),T.push(te)}:S.$each.$$p=function(){var te=z.$destructure(arguments),Ie=l(te,$.$dup());t(Ie)&&T.length>0&&(_["$<<"](T),T=[]),T.push(te)}:S.$each.$$p=function(){var te=z.$destructure(arguments),Ie=$["$==="](te);t(Ie)&&T.length>0&&(_["$<<"](T),T=[]),T.push(te)},S.$each(),T.length>0&&_["$<<"](T)},{$$s:u})},-1),j(B,"$slice_after",function v($){var l=v.$$p||w,u=this;return v.$$p=null,t($===void 0&&l===w)&&he.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&he.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(l=f(he,"proc",[],function(_){return _==null&&(_=w),$["$==="](_)})),f(Se("Enumerator"),"new",[],function d(_){var S=d.$$s==null?this:d.$$s;_==null&&(_=w);var T;S.$each.$$p=function(){var te=z.$destructure(arguments),Ie=n(l,te);T==null&&(T=[]),t(Ie)?(T.push(te),_.$yield(T),T=null):T.push(te)},S.$each(),T!=null&&_.$yield(T)},{$$s:u})},-1),j(B,"$slice_when",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w&&he.$raise(Se("ArgumentError"),"wrong number of arguments (0 for 1)"),f(Se("Enumerator"),"new",[],function u(d){var _=u.$$s==null?this:u.$$s;d==null&&(d=w);var S=w,T=w;_.$each_cons.$$p=function(){var te=z.$destructure(arguments),Ie=te[0],Je=te[1],ut=i($,[Ie,Je]);T=Je,S===w&&(S=[]),t(ut)?(S.push(Ie),d.$yield(S),S=[]):S.push(Ie)},_.$each_cons(2),S!==w&&(S.push(T),d.$yield(S))},{$$s:l})}),j(B,"$sort",function v(){var $=v.$$p||w,l=this,u=w;return v.$$p=null,u=l.$to_a(),$===w&&($=Ae(function(_,S){return _==null&&(_=w),S==null&&(S=w),_["$<=>"](S)})),f(u,"sort",[],$.$to_proc())}),j(B,"$sort_by",function v(){var $=v.$$p||w,l=this,u=w;return v.$$p=null,$===w?f(l,"enum_for",["sort_by"],function d(){var _=d.$$s==null?this:d.$$s;return _.$enumerator_size()},{$$s:l}):(u=f(l,"map",[],function(){var _=w;return _=z.$destructure(arguments),[e.yield1($,_),_]}),f(u,"sort!",[],function(_,S){return _==null&&(_=w),S==null&&(S=w),_[0]["$<=>"](S[0])}),f(u,"map!",[],function(_){return _==null&&(_=w),_[1]}))}),j(B,"$sum",function v($){var l=v.$$p||w,u=this,d=w,_=w;return v.$$p=null,$==null&&($=0),d=$,_=0,f(u,"each",[],function(T){var te,Ie,Je=w,ut=w,_t=w;return te=p(arguments),Ie=te,Je=l!==w?e.yieldX(l,h(Ie)):z.$destructure(Ie),J([Se(Se("Float"),"INFINITY"),Se(Se("Float"),"INFINITY")["$-@"]()]["$include?"](Je))&&t(Je["$respond_to?"]("-"))?(ut=me(Je,_),_t=se(d,ut),_=me(me(_t,d),ut),d=_t):d=se(d,Je)},-1),d},-1),j(B,"$take",function($){var l=this;return l.$first($)}),j(B,"$take_while",function v(){try{var $=D("return"),l=v.$$p||w,u=this,d=w;return v.$$p=null,t(l)?(d=[],f(u,"each",[],function(S){var T,te,Ie=w;return T=p(arguments),te=T,Ie=z.$destructure(te),t(e.yield1(l,Ie))||$.$throw(d),d.push(Ie)},{$$arity:-1,$$ret:$})):u.$enum_for("take_while")}catch(_){if(_===$)return _.$v;throw _}}),j(B,"$uniq",function v(){var $=v.$$p||w,l=this,u=w;return v.$$p=null,u=fe([],{}),f(l,"each",[],function(_){var S,T,te,Ie=w,Je=w;return S=p(arguments),T=S,Ie=z.$destructure(T),Je=$!==w?e.yield1($,Ie):Ie,t(u["$key?"](Je))?w:(te=[Je,Ie],f(u,"[]=",te),te[te.length-1])},-1),u.$values()}),j(B,"$tally",function($){var l=this,u=w;return $&&$!==w&&s($),u=f(f(l,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t($)?(f(u,"each",[],function(_,S){var T;return _==null&&(_=w),S==null&&(S=w),T=[_,se($.$fetch(_,0),S)],f($,"[]=",T),T[T.length-1]}),$):u},-1),j(B,"$to_h",function v($){var l=v.$$p||w,u,d,_=this;if(v.$$p=null,u=p(arguments),d=u,l!==w)return f(f(_,"map",[],l.$to_proc()),"to_h",h(d));var S=fe([],{});return _.$each.$$p=function(){var T=z.$destructure(arguments),te=z["$coerce_to?"](T,Se("Array"),"to_ary"),Ie,Je;te.$$is_array||he.$raise(Se("TypeError"),"wrong element type "+te.$class()+" (expected array)"),te.length!==2&&he.$raise(Se("ArgumentError"),"wrong array length (expected 2, was "+te.$length()+")"),Ie=te[0],Je=te[1],e.hash_put(S,Ie,Je)},_.$each.apply(_,d),S},-1),j(B,"$to_set",function v($,l){var u=v.$$p||w,d,_,S,T=this;return v.$$p=null,d=p(arguments),d.length>0&&(_=d.shift()),_==null&&(_=ue("Set")),S=d,f(_,"new",[T].concat(h(S)),u.$to_proc())},-1),j(B,"$zip",function v($){v.$$p;var l,u,d=this;return v.$$p=null,l=p(arguments),u=l,f(d.$to_a(),"zip",h(u))},-1),Ee(B,"find","detect"),Ee(B,"filter","find_all"),Ee(B,"flat_map","collect_concat"),Ee(B,"map","collect"),Ee(B,"member?","include?"),Ee(B,"reduce","inject"),Ee(B,"select","find_all"),Ee(B,"to_a","entries")}("::",ce)};Opal.modules["corelib/enumerator/arithmetic_sequence"]=function(e){var t=e.klass,r=e.truthy,n=e.to_a,i=e.eqeq,s=e.Kernel,c=e.def,f=e.rb_gt,p=e.rb_lt,h=e.rb_le,z=e.rb_ge,D=e.rb_plus,j=e.rb_minus,he=e.eqeqeq,be=e.not,ee=e.rb_times,Y=e.rb_divide,X=e.alias,ge=[],se=e.nil,me=e.$$$;return e.add_stubs("is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=,-@,_lesser_than_end?,<<,+,-,===,%,_greater_than_begin?,reverse,!,include?,*,to_i,abs,/,hash,inspect"),function(Z,xe,fe){var Ae=t(Z,xe,"Enumerator"),J=[Ae].concat(fe);return function(Ee,ce,w){var Se=t(Ee,ce,"ArithmeticSequence"),I=[Se].concat(w),ne=e.$r(I),B=Se.$$prototype;B.step_arg2=B.receiver_num=B.step_arg1=B.step=B.range=B.topfx=B.bypfx=B.creation_method=B.skipped_arg=se,e.prop(Se.$$prototype,"$$is_arithmetic_seq",!0);var Fe=1/0;return c(Se,"$initialize",function(U,v,$){var l,u=this,d=se;return $==null&&($="step"),u.creation_method=$,r(U["$is_a?"](me("Array")))?(l=[].concat(n(U)),u.step_arg1=l[0]==null?se:l[0],u.step_arg2=l[1]==null?se:l[1],u.topfx=l[2]==null?se:l[2],u.bypfx=l[3]==null?se:l[3],u.receiver_num=v,u.step=1,u.range=r(u.step_arg2)?(u.step=u.step_arg2,e.Range.$new(u.receiver_num,u.step_arg1,!1)):r(u.step_arg1)?e.Range.$new(u.receiver_num,u.step_arg1,!1):e.Range.$new(u.receiver_num,se,!1)):(r(v)||(u.skipped_arg=!0),l=[U,r(d=v)?d:1],u.range=l[0],u.step=l[1]),u.object=u,i(u.step,0)&&s.$raise(ne("ArgumentError"),"step can't be 0"),r(u.step["$respond_to?"]("to_int"))?se:s.$raise(ne("ArgumentError"),"no implicit conversion of "+u.step.$class()+" into Integer")},-2),Se.$attr_reader("step"),c(Se,"$begin",function(){var U=this;return U.range.$begin()}),c(Se,"$end",function(){var U=this;return U.range.$end()}),c(Se,"$exclude_end?",function(){var U=this;return U.range["$exclude_end?"]()}),c(Se,"$_lesser_than_end?",function(U){var v=this,$=se,l=se;return $=r(l=v.$end())?l:Fe,r(f(v.$step(),0))?r(v["$exclude_end?"]())?p(U,$):h(U,$):r(v["$exclude_end?"]())?f(U,$):z(U,$)}),c(Se,"$_greater_than_begin?",function(U){var v=this,$=se,l=se;return $=r(l=v.$begin())?l:Fe["$-@"](),r(f(v.$step(),0))?f(U,$):p(U,$)}),c(Se,"$first",function(U){var v=this,$=se,l=se,u=se;if($=r(l=v.$begin())?l:Fe["$-@"](),!r(U))return r(v["$_lesser_than_end?"]($))?$:se;for(u=[];r(r(l=v["$_lesser_than_end?"]($))?f(U,0):l);)u["$<<"]($),$=D($,v.$step()),U=j(U,1);return u},-1),c(Se,"$each",function ue(){var U=ue.$$p||se,v=this,$=se,l=se;if(ue.$$p=null,U===se)return v;for(he(se,$=v.$begin())&&s.$raise(ne("TypeError"),"nil can't be coerced into Integer"),l=r($=v.$begin())?$:Fe["$-@"]();r(v["$_lesser_than_end?"](l));)e.yield1(U,l),l=D(l,v.$step());return v}),c(Se,"$last",function(U){var v=this,$=se,l=se,u=se;if(he(Fe,$=v.$end())||he(Fe["$-@"](),$)?s.$raise(me("FloatDomainError"),v.$end()):he(se,$)&&s.$raise(me("RangeError"),"cannot get the last element of endless arithmetic sequence"),l=j(v.$end(),j(v.$end(),v.$begin())["$%"](v.$step())),r(v["$_lesser_than_end?"](l))||(l=j(l,v.$step())),!r(U))return r(v["$_greater_than_begin?"](l))?l:se;for(u=[];r(r($=v["$_greater_than_begin?"](l))?f(U,0):$);)u["$<<"](l),l=j(l,v.$step()),U=j(U,1);return u.$reverse()},-1),c(Se,"$size",function(){var U=this,v=se,$=se;return v=r(f(U.$step(),0))?1:-1,be(U["$_lesser_than_end?"](U.$begin()))?0:r([Fe["$-@"](),Fe]["$include?"](U.$step()))?1:r([ee(Fe["$-@"](),v),se]["$include?"](U.$begin()))||r([ee(Fe,v),se]["$include?"](U.$end()))?Fe:($=j(U.$end(),j(U.$end(),U.$begin())["$%"](U.$step())),r(U["$_lesser_than_end?"]($))||($=j($,U.$step())),D(Y(j($,U.$begin()),U.$step()).$abs().$to_i(),1))}),c(Se,"$==",function(U){var v=this,$=se,l=se,u=se,d=se;return r($=r(l=r(u=r(d=v.$class()["$=="](U.$class()))?v.$begin()["$=="](U.$begin()):d)?v.$end()["$=="](U.$end()):u)?v.$step()["$=="](U.$step()):l)?v["$exclude_end?"]()["$=="](U["$exclude_end?"]()):$}),c(Se,"$hash",function(){var U=this;return[U.$begin(),U.$end(),U.$step(),U["$exclude_end?"]()].$hash()}),c(Se,"$inspect",function(){var U=this,v=se;return r(U.receiver_num)?(v=r(U.step_arg2)?"("+U.topfx+U.step_arg1.$inspect()+", "+U.bypfx+U.step_arg2.$inspect()+")":r(U.step_arg1)?"("+U.topfx+U.step_arg1.$inspect()+")":se,"("+U.receiver_num.$inspect()+"."+U.creation_method+v+")"):(v=r(U.skipped_arg)?se:"("+U.step+")","(("+U.range.$inspect()+")."+U.creation_method+v+")")}),X(Se,"===","=="),X(Se,"eql?","==")}(Ae,Ae,J)}("::",null,ge)};Opal.modules["corelib/enumerator/chain"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.slice,i=e.def,s=e.send,c=e.to_a,f=e.truthy,p=e.rb_plus,h=e.thrower,z=e.nil,D=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(j,he){var be=r(j,he,"Enumerator");return function(ee,Y){var X=r(ee,Y,"Chain"),ge=X.$$prototype;return ge.enums=ge.iterated=z,i(X,"$initialize",function(me){var Z,xe,fe=this;return Z=n(arguments),xe=Z,t(fe),fe.enums=xe,fe.iterated=[],fe.object=fe},-1),i(X,"$each",function se(me){var Z=se.$$p||z,xe,fe,Ae=this;return se.$$p=null,xe=n(arguments),fe=xe,Z===z?s(Ae,"to_enum",["each"].concat(c(fe)),function J(){var Ee=J.$$s==null?this:J.$$s;return Ee.$size()},{$$s:Ae}):(s(Ae.enums,"each",[],function J(Ee){var ce=J.$$s==null?this:J.$$s;return ce.iterated==null&&(ce.iterated=z),Ee==null&&(Ee=z),ce.iterated["$<<"](Ee),s(Ee,"each",c(fe),Z.$to_proc())},{$$s:Ae}),Ae)},-1),i(X,"$size",function(me){try{var Z=h("return"),xe,fe,Ae=this,J=z;return xe=n(arguments),fe=xe,J=0,s(Ae.enums,"each",[],function(ce){var w=z;return ce==null&&(ce=z),w=s(ce,"size",c(fe)),f([z,D(D("Float"),"INFINITY")]["$include?"](w))&&Z.$throw(w),J=p(J,w)},{$$ret:Z}),J}catch(Ee){if(Ee===Z)return Ee.$v;throw Ee}},-1),i(X,"$rewind",function(){var me=this;return s(me.iterated,"reverse_each",[],function(xe){return xe==null&&(xe=z),f(xe["$respond_to?"]("rewind"))?xe.$rewind():z}),me.iterated=[],me}),i(X,"$inspect",function(){var me=this;return"#<Enumerator::Chain: "+me.enums.$inspect()+">"})}(be,be)}("::",null)};Opal.modules["corelib/enumerator/generator"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.truthy,i=e.Kernel,s=e.def,c=e.slice,f=e.send,p=[],h=e.nil,z=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(D,j,he){var be=r(D,j,"Enumerator"),ee=[be].concat(he);return function(Y,X,ge){var se=r(Y,X,"Generator"),me=[se].concat(ge),Z=e.$r(me),xe=se.$$prototype;return xe.block=h,se.$include(z("Enumerable")),s(se,"$initialize",function fe(){var Ae=fe.$$p||h,J=this;return fe.$$p=null,t(J),n(Ae)||i.$raise(z("LocalJumpError"),"no block given"),J.block=Ae}),s(se,"$each",function fe(Ae){var J=fe.$$p||h,Ee,ce,w=this,Se=h;fe.$$p=null,Ee=c(arguments),ce=Ee,Se=f(Z("Yielder"),"new",[],J.$to_proc());try{ce.unshift(Se),e.yieldX(w.block,ce)}catch(I){if(I&&I.$thrower_type=="breaker")return I.$v;throw I}return w},-1)}(ee[0],null,ee)}(p[0],null,p)};Opal.modules["corelib/enumerator/lazy"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.klass,f=e.slice,p=e.send2,h=e.find_super,z=e.to_a,D=e.defs,j=e.Kernel,he=e.send,be=e.def,ee=e.return_self,Y=e.Opal,X=e.rb_lt,ge=e.eqeqeq,se=e.rb_plus,me=e.alias,Z=[],xe=e.nil,fe=e.$$$;return e.add_stubs("raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_concat,collect,enum_for"),function(Ae,J,Ee){var ce=c(Ae,J,"Enumerator"),w=[ce].concat(Ee);return function(Se,I,ne){var B=c(Se,I,"Lazy"),Fe=[B].concat(ne),ue=e.$r(Fe),U=B.$$prototype;return U.enumerator=xe,c(B,fe("Exception"),"StopLazyError"),D(B,"$for",function v($,l){var u,d,_=v.$$p||xe,S=this,T=xe;return v.$$p=null,u=f(arguments,1),d=u,T=p(S,h(S,"for",v,!1,!0),"for",[$].concat(z(d)),_),T.enumerator=$,T},-2),be(B,"$initialize",function v($,l){var u=v.$$p||xe,d=this;return v.$$p=null,l==null&&(l=xe),s(d),u===xe&&j.$raise(fe("ArgumentError"),"tried to call lazy new without a block"),d.enumerator=$,p(d,h(d,"initialize",v,!1,!0),"initialize",[l],function(S,T){var te,Ie;S==null&&(S=xe),te=f(arguments,1),Ie=te;try{return he($,"each",z(Ie),function(ut){var _t,wt;_t=f(arguments),wt=_t,wt.unshift(S),i(u,wt)},-1)}catch(Je){if(e.rescue(Je,[ue("StopLazyError")]))try{return xe}finally{e.pop_exception()}else throw Je}},-2)},-2),be(B,"$lazy",ee),be(B,"$collect",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),he(ue("Lazy"),"new",[l,l.$enumerator_size()],function(d,_){var S,T;d==null&&(d=xe),S=f(arguments,1),T=S;var te=i($,T);d.$yield(te)},-2)}),be(B,"$collect_concat",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),he(ue("Lazy"),"new",[l,xe],function(d,_){var S,T;d==null&&(d=xe),S=f(arguments,1),T=S;var te=i($,T);if(te["$respond_to?"]("force")&&te["$respond_to?"]("each"))he(te,"each",[],function(ut){return ut==null&&(ut=xe),d.$yield(ut)});else{var Ie=Y.$try_convert(te,fe("Array"),"to_ary");Ie===xe?d.$yield(te):he(te,"each",[],function(ut){return ut==null&&(ut=xe),d.$yield(ut)})}},-2)}),be(B,"$drop",function($){var l=this,u=xe,d=xe,_=xe;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&j.$raise(fe("ArgumentError"),"attempt to drop negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,he(ue("Lazy"),"new",[l,d],function(T,te){var Ie,Je;return T==null&&(T=xe),Ie=f(arguments,1),Je=Ie,t(X(_,$))?_=se(_,1):he(T,"yield",z(Je))},-2)}),be(B,"$drop_while",function v(){var $=v.$$p||xe,l=this,u=xe;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy drop_while without a block"),u=!0,he(ue("Lazy"),"new",[l,xe],function(_,S){var T,te;if(_==null&&(_=xe),T=f(arguments,1),te=T,t(u)){var Ie=i($,te);t(Ie)||(u=!1,he(_,"yield",z(te)))}else return he(_,"yield",z(te))},-2)}),be(B,"$enum_for",function v($,l){var u=v.$$p||xe,d,_,S,T=this;return v.$$p=null,d=f(arguments),d.length>0&&(_=d.shift()),_==null&&(_="each"),S=d,he(T.$class(),"for",[T,_].concat(z(S)),u.$to_proc())},-1),be(B,"$find_all",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy select without a block"),he(ue("Lazy"),"new",[l,xe],function(d,_){var S,T;d==null&&(d=xe),S=f(arguments,1),T=S;var te=i($,T);t(te)&&he(d,"yield",z(T))},-2)}),be(B,"$grep",function v($){var l=v.$$p||xe,u=this;return v.$$p=null,t(l)?he(ue("Lazy"),"new",[u,xe],function(_,S){var T,te;_==null&&(_=xe),T=f(arguments,1),te=T;var Ie=Y.$destructure(te),Je=$["$==="](Ie);t(Je)&&(Je=n(l,Ie),_.$yield(n(l,Ie)))},-2):he(ue("Lazy"),"new",[u,xe],function(_,S){var T,te;_==null&&(_=xe),T=f(arguments,1),te=T;var Ie=Y.$destructure(te),Je=$["$==="](Ie);t(Je)&&_.$yield(Ie)},-2)}),be(B,"$reject",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy reject without a block"),he(ue("Lazy"),"new",[l,xe],function(d,_){var S,T;d==null&&(d=xe),S=f(arguments,1),T=S;var te=i($,T);t(te)||he(d,"yield",z(T))},-2)}),be(B,"$take",function($){var l=this,u=xe,d=xe,_=xe;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&j.$raise(fe("ArgumentError"),"attempt to take negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,he(ue("Lazy"),"new",[l,d],function(T,te){var Ie,Je;return T==null&&(T=xe),Ie=f(arguments,1),Je=Ie,t(X(_,$))?(he(T,"yield",z(Je)),_=se(_,1)):j.$raise(ue("StopLazyError"))},-2)}),be(B,"$take_while",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||j.$raise(fe("ArgumentError"),"tried to call lazy take_while without a block"),he(ue("Lazy"),"new",[l,xe],function(d,_){var S,T;d==null&&(d=xe),S=f(arguments,1),T=S;var te=i($,T);t(te)?he(d,"yield",z(T)):j.$raise(ue("StopLazyError"))},-2)}),be(B,"$inspect",function(){var $=this;return"#<"+$.$class()+": "+$.enumerator.$inspect()+">"}),me(B,"force","to_a"),me(B,"filter","find_all"),me(B,"flat_map","collect_concat"),me(B,"map","collect"),me(B,"select","find_all"),me(B,"to_enum","enum_for")}(ce,ce,w)}("::",null,Z)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,c=[],f=e.nil;return e.add_stubs("yield,proc"),function(p,h,z){var D=t(p,h,"Enumerator"),j=[D].concat(z);return function(he,be){var ee=t(he,be,"Yielder"),Y=ee.$$prototype;return Y.block=f,r(ee,"$initialize",function X(){var ge=X.$$p||f,se=this;return X.$$p=null,se.block=ge,se}),r(ee,"$yield",function(ge){var se,me,Z=this;se=n(arguments),me=se;var xe=e.yieldX(Z.block,me);if(xe&&xe.$thrower_type=="break")throw xe;return xe},-1),r(ee,"$<<",function(ge){var se=this;return se.$yield(ge),se}),r(ee,"$to_proc",function(){var ge=this;return i(ge,"proc",[],function se(me){var Z,xe,fe=se.$$s==null?this:se.$$s;return Z=n(arguments),xe=Z,i(fe,"yield",s(xe))},{$$arity:-1,$$s:ge})})}(j[0],null)}(c[0],null,c)};Opal.modules["corelib/enumerator"]=function(e){var t=e.slice,r=e.coerce_to,n=e.deny_frozen_access,i=e.klass,s=e.defs,c=e.truthy,f=e.send,p=e.not,h=e.def,z=e.rb_plus,D=e.to_a,j=e.Opal,he=e.send2,be=e.find_super,ee=e.rb_ge,Y=e.Kernel,X=e.rb_le,ge=e.alias,se=e.top,me=[],Z=e.nil,xe=e.$$$;return e.add_stubs("require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,call,enum_for,size,destructure,map,>=,length,raise,[],peek_values,<=,next_values,inspect,any?,each_with_object,autoload"),se.$require("corelib/enumerable"),function(fe,Ae,J){var Ee=i(fe,Ae,"Enumerator"),ce=[Ee].concat(J),w=e.$r(ce),Se=Ee.$$prototype;return Se.size=Se.args=Se.object=Se.method=Se.values=Se.cursor=Z,Ee.$include(xe("Enumerable")),Ee.$$prototype.$$is_enumerator=!0,s(Ee,"$for",function I(ne,B,Fe){var ue=I.$$p||Z,U,v,$,l=this;I.$$p=null,U=t(arguments,1),U.length>0&&(v=U.shift()),v==null&&(v="each"),$=U;var u=l.$allocate();return u.object=ne,u.size=ue,u.method=v,u.args=$,u.cursor=0,u},-2),h(Ee,"$initialize",function I(ne){var B=I.$$p||Z,Fe=this;return I.$$p=null,t(arguments),n(Fe),Fe.cursor=0,c(B)?(Fe.object=f(w("Generator"),"new",[],B.$to_proc()),Fe.method="each",Fe.args=[],Fe.size=arguments[0]||Z,c(Fe.size)&&p(Fe.size["$respond_to?"]("call"))?Fe.size=r(Fe.size,xe("Integer"),"to_int"):Z):(Fe.object=arguments[0],Fe.method=arguments[1]||"each",Fe.args=t(arguments,2),Fe.size=Z)},-1),h(Ee,"$each",function I(ne){var B=I.$$p||Z,Fe,ue,U=this;return I.$$p=null,Fe=t(arguments),ue=Fe,c(B["$nil?"]())&&c(ue["$empty?"]())?U:(ue=z(U.args,ue),c(B["$nil?"]())?f(U.$class(),"new",[U.object,U.method].concat(D(ue))):f(U.object,"__send__",[U.method].concat(D(ue)),B.$to_proc()))},-1),h(Ee,"$size",function(){var ne=this;return c(ne.size["$respond_to?"]("call"))?f(ne.size,"call",D(ne.args)):ne.size}),h(Ee,"$with_index",function I(ne){var B=I.$$p||Z,Fe=this;if(I.$$p=null,ne==null&&(ne=0),ne=c(ne)?r(ne,xe("Integer"),"to_int"):0,!c(B))return f(Fe,"enum_for",["with_index",ne],function U(){var v=U.$$s==null?this:U.$$s;return v.$size()},{$$s:Fe});var ue=ne;return Fe.$each.$$p=function(){var U=j.$destructure(arguments),v=B(U,ue);return ue++,v},Fe.$each()},-1),h(Ee,"$each_with_index",function I(){var ne=I.$$p||Z,B=this;return I.$$p=null,ne===Z?f(B,"enum_for",["each_with_index"],function Fe(){var ue=Fe.$$s==null?this:Fe.$$s;return ue.$size()},{$$s:B}):(he(B,be(B,"each_with_index",I,!1,!0),"each_with_index",[],ne),B.object)}),h(Ee,"$rewind",function(){var ne=this;return ne.cursor=0,ne}),h(Ee,"$peek_values",function(){var ne=this,B=Z;return ne.values=c(B=ne.values)?B:f(ne,"map",[],function(ue){var U,v;return U=t(arguments),v=U,v},-1),c(ee(ne.cursor,ne.values.$length()))&&Y.$raise(xe("StopIteration"),"iteration reached an end"),ne.values["$[]"](ne.cursor)}),h(Ee,"$peek",function(){var ne=this,B=Z;return B=ne.$peek_values(),c(X(B.$length(),1))?B["$[]"](0):B}),h(Ee,"$next_values",function(){var ne=this,B=Z;return B=ne.$peek_values(),ne.cursor=z(ne.cursor,1),B}),h(Ee,"$next",function(){var ne=this,B=Z;return B=ne.$next_values(),c(X(B.$length(),1))?B["$[]"](0):B}),h(Ee,"$feed",function(ne){var B=this;return B.$raise(w("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),h(Ee,"$+",function(ne){var B=this;return xe(xe("Enumerator"),"Chain").$new(B,ne)}),h(Ee,"$inspect",function(){var ne=this,B=Z;return B="#<"+ne.$class()+": "+ne.object.$inspect()+":"+ne.method,c(ne.args["$any?"]())&&(B=z(B,"("+ne.args.$inspect()["$[]"](xe("Range").$new(1,-2))+")")),z(B,">")}),ge(Ee,"with_object","each_with_object"),Ee.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ee.$autoload("Chain","corelib/enumerator/chain"),Ee.$autoload("Generator","corelib/enumerator/generator"),Ee.$autoload("Lazy","corelib/enumerator/lazy"),Ee.$autoload("Yielder","corelib/enumerator/yielder")}("::",null,me)};Opal.modules["corelib/numeric"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.to_ary,c=e.return_self,f=e.rb_minus,p=e.rb_times,h=e.rb_lt,z=e.eqeq,D=e.rb_divide,j=e.return_val,he=e.Opal,be=e.slice,ee=e.extract_kwargs,Y=e.ensure_kwargs,X=e.not,ge=e.send,se=e.rb_ge,me=e.rb_le,Z=e.rb_plus,xe=e.rb_gt,fe=e.alias,Ae=e.top,J=e.nil,Ee=e.$$$;return e.add_stubs("require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,abs,arg,coerce_to!,round,<=>,compare,is_a?,!,new,enum_for,to_proc,negative?,>=,<=,+,to_i,truncate,>,angle,conj,imag,rect"),Ae.$require("corelib/comparable"),function(ce,w){var Se=t(ce,w,"Numeric");return Se.$include(Ee("Comparable")),i(Se,"$coerce",function(ne){var B=this;return r(ne["$instance_of?"](B.$class()))?[ne,B]:[n.$Float(ne),n.$Float(B)]}),i(Se,"$__coerced__",function(ne,B){var Fe,ue,U=this,v=J,$=J;if(r(B["$respond_to?"]("coerce")))return ue=B.$coerce(U),Fe=s(ue),v=Fe[0]==null?J:Fe[0],$=Fe[1]==null?J:Fe[1],v.$__send__(ne,$);switch(ne){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ee("TypeError"),""+B.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ee("ArgumentError"),"comparison of "+U.$class()+" with "+B.$class()+" failed");default:return J}}),i(Se,"$<=>",function(ne){var B=this;return r(B["$equal?"](ne))?0:J}),i(Se,"$+@",c),i(Se,"$-@",function(){var ne=this;return f(0,ne)}),i(Se,"$%",function(ne){var B=this;return f(B,p(ne,B.$div(ne)))}),i(Se,"$abs",function(){var ne=this;return h(ne,0)?ne["$-@"]():ne}),i(Se,"$abs2",function(){var ne=this;return p(ne,ne)}),i(Se,"$angle",function(){var ne=this;return h(ne,0)?Ee(Ee("Math"),"PI"):0}),i(Se,"$ceil",function(ne){var B=this;return ne==null&&(ne=0),B.$to_f().$ceil(ne)},-1),i(Se,"$conj",c),i(Se,"$denominator",function(){var ne=this;return ne.$to_r().$denominator()}),i(Se,"$div",function(ne){var B=this;return z(ne,0)&&n.$raise(Ee("ZeroDivisionError"),"divided by o"),D(B,ne).$floor()}),i(Se,"$divmod",function(ne){var B=this;return[B.$div(ne),B["$%"](ne)]}),i(Se,"$fdiv",function(ne){var B=this;return D(B.$to_f(),ne)}),i(Se,"$floor",function(ne){var B=this;return ne==null&&(ne=0),B.$to_f().$floor(ne)},-1),i(Se,"$i",function(){var ne=this;return n.$Complex(0,ne)}),i(Se,"$imag",j(0)),i(Se,"$integer?",j(!1)),i(Se,"$nonzero?",function(){var ne=this;return r(ne["$zero?"]())?J:ne}),i(Se,"$numerator",function(){var ne=this;return ne.$to_r().$numerator()}),i(Se,"$polar",function(){var ne=this;return[ne.$abs(),ne.$arg()]}),i(Se,"$quo",function(ne){var B=this;return D(he["$coerce_to!"](B,Ee("Rational"),"to_r"),ne)}),i(Se,"$real",c),i(Se,"$real?",j(!0)),i(Se,"$rect",function(){var ne=this;return[ne,0]}),i(Se,"$round",function(ne){var B=this;return B.$to_f().$round(ne)},-1),i(Se,"$step",function I(ne,B,Fe){var ue=I.$$p||J,U,v,$,l,u,d,_=this,S=J;I.$$p=null,U=be(arguments),v=ee(U),v=Y(v),U.length>0&&($=U.shift()),U.length>0&&(l=U.shift()),u=v.$$smap.to,d=v.$$smap.by,$!==void 0&&u!==void 0&&n.$raise(Ee("ArgumentError"),"to is given twice"),l!==void 0&&d!==void 0&&n.$raise(Ee("ArgumentError"),"step is given twice"),u!==void 0&&($=u),d!==void 0&&(l=d),$===void 0&&($=J);function T(){l===J&&n.$raise(Ee("TypeError"),"step must be numeric"),l!=null&&l["$=="](0)&&n.$raise(Ee("ArgumentError"),"step can't be 0"),(l===J||l==null)&&(l=1);var Mt=l["$<=>"](0);Mt===J&&n.$raise(Ee("ArgumentError"),"0 can't be coerced into "+l.$class()),($===J||$==null)&&($=Mt>0?Ee(Ee("Float"),"INFINITY"):Ee(Ee("Float"),"INFINITY")["$-@"]()),he.$compare(_,$)}function te(){if(l>0&&_>$||l<0&&_<$)return 0;if(l===1/0||l===-1/0)return 1;var Mt=Math.abs,Ct=Math.floor,nt=(Mt(_)+Mt($)+Mt($-_))/Mt(l)*Ee(Ee("Float"),"EPSILON");return nt===1/0||nt===-1/0?0:(nt>.5&&(nt=.5),Ct(($-_)/l+nt)+1)}function Ie(){if(T(),l===0)return 1/0;if(l%1!==0)return te();if(l>0&&_>$||l<0&&_<$)return 0;var Mt=Math.ceil,Ct=Math.abs,nt=Ct(_-$)+1,Ne=Ct(l);return Mt(nt/Ne)}if(ue===J)return(X($)||r($["$is_a?"](Ee("Numeric"))))&&(X(l)||r(l["$is_a?"](Ee("Numeric"))))?Ee(Ee("Enumerator"),"ArithmeticSequence").$new([$,l,r(u)?"to: ":J,r(d)?"by: ":J],_):ge(_,"enum_for",["step",$,l],Ie.$to_proc());T();var Je=l["$negative?"](),ut=l["$=="](0)||$===1/0&&!Je||$===-1/0&&Je;if(_.$$is_number&&l.$$is_number&&$.$$is_number)if(_%1===0&&(ut||$%1===0)&&l%1===0){var _t=_;if(ut)for(;;_t+=l)ue(_t);else if(Je)for(;_t>=$;_t+=l)ue(_t);else for(;_t<=$;_t+=l)ue(_t);return _}else{var wt=_.$to_f().valueOf();l=l.$to_f().valueOf(),$=$.$to_f().valueOf();var bt=te();if(!isFinite(l))bt!==0&&ue(wt);else if(l===0)for(;;)ue(wt);else for(var At=0;At<bt;At++){var St=At*l+_;(l>=0?$<St:$>St)&&(St=$),ue(St)}return _}for(S=_;r(Je?se(S,$):me(S,$));)e.yield1(ue,S),S=Z(S,l)},-1),i(Se,"$to_c",function(){var ne=this;return n.$Complex(ne,0)}),i(Se,"$to_int",function(){var ne=this;return ne.$to_i()}),i(Se,"$truncate",function(ne){var B=this;return ne==null&&(ne=0),B.$to_f().$truncate(ne)},-1),i(Se,"$zero?",function(){var ne=this;return ne["$=="](0)}),i(Se,"$positive?",function(){var ne=this;return xe(ne,0)}),i(Se,"$negative?",function(){var ne=this;return h(ne,0)}),i(Se,"$dup",c),i(Se,"$clone",function(ne){var B=this;return ne=Y(ne),ne.$$smap.freeze,B},-1),i(Se,"$finite?",j(!0)),i(Se,"$infinite?",j(J)),fe(Se,"arg","angle"),fe(Se,"conjugate","conj"),fe(Se,"imaginary","imag"),fe(Se,"magnitude","abs"),fe(Se,"modulo","%"),fe(Se,"phase","arg"),fe(Se,"rectangular","rect")}("::",null)};Opal.modules["corelib/array"]=function(e){var t=e.truthy,r=e.falsy,n=e.hash_ids,i=e.yield1,s=e.hash_get,c=e.hash_put,f=e.hash_delete,p=e.coerce_to,h=e.respond_to,z=e.deny_frozen_access,D=e.freeze,j=e.klass,he=e.slice,be=e.defs,ee=e.Kernel,Y=e.def,X=e.Opal,ge=e.eqeqeq,se=e.hash2,me=e.send2,Z=e.find_super,xe=e.send,fe=e.rb_gt,Ae=e.rb_times,J=e.eqeq,Ee=e.rb_minus,ce=e.to_a,w=e.to_ary,Se=e.gvars,I=e.rb_ge,ne=e.assign_ivar,B=e.rb_lt,Fe=e.return_self,ue=e.neqeq,U=e.alias,v=e.top,$=[],l=e.nil,u=e.$$$;return e.add_stubs("require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_str,hash,<=>,==,object_id,inspect,enum_for,class,bsearch_index,to_proc,nil?,coerce_to!,>,*,enumerator_size,empty?,size,map,equal?,dup,each,reduce,-,[],dig,eql?,length,exclude_end?,flatten,frozen?,__id__,&,!,intersection,to_s,new,item,max,min,>=,**,delete_if,reverse,rotate,rand,at,keep_if,shuffle!,<,sort,sort_by,!=,times,[]=,<<,uniq,|,values,is_a?,end,begin,upto,reject,push,select,select!,collect,collect!,unshift,pristine,singleton_class"),v.$require("corelib/enumerable"),v.$require("corelib/numeric"),function(d,_,S){var T=j(d,_,"Array"),te=[T].concat(S),Ie=e.$r(te);T.$include(u("Enumerable")),e.prop(T.$$prototype,"$$is_array",!0);function Je(nt){for(var Ne=nt[0],je=1,Ke=nt.length;je<Ke;je++)nt[je-1]=nt[je];return nt.pop(),Ne}function ut(nt,Ne){return Ne.$$name===e.Array?nt:Ne.$allocate().$replace(nt.$to_a())}function _t(nt,Ne,je){for(var Ke,x=null,N=new Array(nt.length),ve=0,Le=0,Ze=nt.length;ve<Ze;ve++){if(!x)try{Ke=i(je,nt[ve])}catch($t){x=$t}(x||Ne(Ke))&&(N[Le]=nt[ve],Le+=1)}if(Le!==ve&&(nt.splice.apply(nt,[0,N.length].concat(N)),nt.splice(Le,N.length)),x)throw x}be(T,"$[]",function(Ne){var je,Ke,x=this;return je=he(arguments),Ke=je,ut(Ke,x)},-1),Y(T,"$initialize",function nt(Ne,je){var Ke=nt.$$p||l,x=this;if(nt.$$p=null,Ne==null&&(Ne=l),je==null&&(je=l),z(x),je!==l&&Ke!==l&&ee.$warn("warning: block supersedes default value argument"),Ne>u(u("Integer"),"MAX")&&ee.$raise(u("ArgumentError"),"array size too big"),arguments.length>2&&ee.$raise(u("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return x.splice(0,x.length),x;if(arguments.length===1){if(Ne.$$is_array)return x.$replace(Ne.$to_a()),x;if(Ne["$respond_to?"]("to_ary"))return x.$replace(Ne.$to_ary()),x}Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&ee.$raise(u("ArgumentError"),"negative array size"),x.splice(0,x.length);var N,ve;if(Ke===l)for(N=0;N<Ne;N++)x.push(je);else for(N=0,ve;N<Ne;N++)ve=Ke(N),x[N]=ve;return x},-1),be(T,"$try_convert",function(Ne){return X["$coerce_to?"](Ne,u("Array"),"to_ary")}),Y(T,"$&",function(Ne){var je=this;Ne=ge(u("Array"),Ne)?Ne.$to_a():p(Ne,u("Array"),"to_ary").$to_a();var Ke=[],x=se([],{}),N,ve,Le;for(N=0,ve=Ne.length;N<ve;N++)c(x,Ne[N],!0);for(N=0,ve=je.length;N<ve;N++)Le=je[N],f(x,Le)!==void 0&&Ke.push(Le);return Ke}),Y(T,"$|",function(Ne){var je=this;Ne=ge(u("Array"),Ne)?Ne.$to_a():p(Ne,u("Array"),"to_ary").$to_a();var Ke=se([],{}),x,N;for(x=0,N=je.length;x<N;x++)c(Ke,je[x],!0);for(x=0,N=Ne.length;x<N;x++)c(Ke,Ne[x],!0);return Ke.$keys()}),Y(T,"$*",function(Ne){var je=this;if(t(Ne["$respond_to?"]("to_str")))return je.$join(Ne.$to_str());Ne=p(Ne,u("Integer"),"to_int"),t(Ne<0)&&ee.$raise(u("ArgumentError"),"negative argument");for(var Ke=[],x=je.$to_a(),N=0;N<Ne;N++)Ke=Ke.concat(x);return Ke}),Y(T,"$+",function(Ne){var je=this;return Ne=ge(u("Array"),Ne)?Ne.$to_a():p(Ne,u("Array"),"to_ary").$to_a(),je.concat(Ne)}),Y(T,"$-",function(Ne){var je=this;if(Ne=ge(u("Array"),Ne)?Ne.$to_a():p(Ne,u("Array"),"to_ary").$to_a(),t(je.length===0))return[];if(t(Ne.length===0))return je.slice();var Ke=[],x=se([],{}),N,ve,Le;for(N=0,ve=Ne.length;N<ve;N++)c(x,Ne[N],!0);for(N=0,ve=je.length;N<ve;N++)Le=je[N],s(x,Le)===void 0&&Ke.push(Le);return Ke}),Y(T,"$<<",function(Ne){var je=this;return z(je),je.push(Ne),je}),Y(T,"$<=>",function(Ne){var je=this;if(ge(u("Array"),Ne))Ne=Ne.$to_a();else if(t(Ne["$respond_to?"]("to_ary")))Ne=Ne.$to_ary().$to_a();else return l;if(je.$hash()===Ne.$hash())return 0;for(var Ke=Math.min(je.length,Ne.length),x=0;x<Ke;x++){var N=je[x]["$<=>"](Ne[x]);if(N!==0)return N}return je.length["$<=>"](Ne.length)}),Y(T,"$==",function(Ne){var je=this,Ke={};function x(N,ve){var Le,Ze,$t,a;if(N===ve)return!0;if(!ve.$$is_array)return h(ve,"$to_ary")?ve["$=="](N):!1;if(N.$$constructor!==Array&&(N=N.$to_a()),ve.$$constructor!==Array&&(ve=ve.$to_a()),N.length!==ve.length)return!1;for(Ke[N.$object_id()]=!0,Le=0,Ze=N.length;Le<Ze;Le++)if($t=N[Le],a=ve[Le],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ke.hasOwnProperty($t.$object_id())&&!x($t,a))return!1}else if(!$t["$=="](a))return!1;return!0}return x(je,Ne)});function wt(nt,Ne){var je=nt.length,Ke,x,N,ve;return Ke=Ne.excl,x=Ne.begin===l?0:p(Ne.begin,e.Integer,"to_int"),N=Ne.end===l?-1:p(Ne.end,e.Integer,"to_int"),x<0&&(x+=je,x<0)||(Ne.excl_rev&&Ne.begin!==l&&(x+=1),x>je)?l:N<0&&(N+=je,N<0)?[]:((!Ke||Ne.end===l)&&(N+=1),ve=nt.slice(x,N),ve)}function bt(nt,Ne){var je,Ke=[],x=0,N;for(Ne.step<0?(N={begin:Ne.range.end,end:Ne.range.begin,excl:!1,excl_rev:Ne.range.excl},je=wt(nt,N).$reverse()):je=wt(nt,Ne.range);x<je.length;)Ke.push(je[x]),x+=Math.abs(Ne.step);return Ke}function At(nt,Ne,je){var Ke=nt.length,x;return Ne=p(Ne,e.Integer,"to_int"),Ne<0&&(Ne+=Ke,Ne<0)?l:je===void 0?Ne>=Ke||Ne<0?l:nt[Ne]:(je=p(je,e.Integer,"to_int"),je<0||Ne>Ke||Ne<0?l:(x=nt.slice(Ne,Ne+je),x))}Y(T,"$[]",function(Ne,je){var Ke=this;return Ne.$$is_range?wt(Ke,Ne):Ne.$$is_arithmetic_seq?bt(Ke,Ne):At(Ke,Ne,je)},-2),Y(T,"$[]=",function(Ne,je,Ke){var x=this,N=l,ve=l;z(x),N=l;var Le,Ze=x.length;if(Ne.$$is_range){je.$$is_array?N=je.$to_a():je["$respond_to?"]("to_ary")?N=je.$to_ary().$to_a():N=[je];var $t=Ne.excl,a=Ne.begin===l?0:p(Ne.begin,e.Integer,"to_int"),ae=Ne.end===l?-1:p(Ne.end,e.Integer,"to_int");if(a<0&&(a+=Ze,a<0&&ee.$raise(u("RangeError"),""+Ne.$inspect()+" out of range")),ae<0&&(ae+=Ze),(!$t||Ne.end===l)&&(ae+=1),a>Ze)for(Le=Ze;Le<a;Le++)x[Le]=l;return ae<0?x.splice.apply(x,[a,0].concat(N)):x.splice.apply(x,[a,ae-a].concat(N)),je}else{Ke===void 0?ve=1:(ve=je,je=Ke,je.$$is_array?N=je.$to_a():je["$respond_to?"]("to_ary")?N=je.$to_ary().$to_a():N=[je]);var re;if(Ne=p(Ne,u("Integer"),"to_int"),ve=p(ve,u("Integer"),"to_int"),Ne<0&&(re=Ne,Ne+=Ze,Ne<0&&ee.$raise(u("IndexError"),"index "+re+" too small for array; minimum "+-x.length)),ve<0&&ee.$raise(u("IndexError"),"negative length ("+ve+")"),Ne>Ze)for(Le=Ze;Le<Ne;Le++)x[Le]=l;return Ke===void 0?x[Ne]=je:x.splice.apply(x,[Ne,ve].concat(N)),je}},-3),Y(T,"$any?",function nt(Ne){var je=nt.$$p||l,Ke=this;return nt.$$p=null,Ke.length===0?!1:me(Ke,Z(Ke,"any?",nt,!1,!0),"any?",[Ne],je)},-1),Y(T,"$assoc",function(Ne){for(var je=this,Ke=0,x=je.length,N;Ke<x;Ke++)if(N=je[Ke],N.length&&N[0]["$=="](Ne))return N;return l}),Y(T,"$at",function(Ne){var je=this;return Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&(Ne+=je.length),Ne<0||Ne>=je.length?l:je[Ne]}),Y(T,"$bsearch_index",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return je.$enum_for("bsearch_index");for(var Ke=0,x=je.length,N,ve,Le,Ze=!1,$t=l;Ke<x;){if(N=Ke+Math.floor((x-Ke)/2),ve=je[N],Le=i(Ne,ve),Le===!0)$t=N,Ze=!0;else if(Le===!1||Le===l)Ze=!1;else if(Le.$$is_number){if(Le===0)return N;Ze=Le<0}else ee.$raise(u("TypeError"),"wrong argument type "+Le.$class()+" (must be numeric, true, false or nil)");Ze?x=N:Ke=N+1}return $t}),Y(T,"$bsearch",function nt(){var Ne=nt.$$p||l,je=this,Ke=l;return nt.$$p=null,Ne===l?je.$enum_for("bsearch"):(Ke=xe(je,"bsearch_index",[],Ne.$to_proc()),Ke!=null&&Ke.$$is_number?je[Ke]:Ke)}),Y(T,"$cycle",function nt(Ne){var je=nt.$$p||l,Ke=this;if(nt.$$p=null,Ne==null&&(Ne=l),je===l)return xe(Ke,"enum_for",["cycle",Ne],function ve(){var Le=ve.$$s==null?this:ve.$$s;return t(Ne["$nil?"]())?u(u("Float"),"INFINITY"):(Ne=X["$coerce_to!"](Ne,u("Integer"),"to_int"),t(fe(Ne,0))?Ae(Le.$enumerator_size(),Ne):0)},{$$s:Ke});if(t(Ke["$empty?"]())||J(Ne,0))return l;var x,N;if(Ne===l)for(;;)for(x=0,N=Ke.length;x<N;x++)i(je,Ke[x]);else{if(Ne=X["$coerce_to!"](Ne,u("Integer"),"to_int"),Ne<=0)return Ke;for(;Ne>0;){for(x=0,N=Ke.length;x<N;x++)i(je,Ke[x]);Ne--}}return Ke},-1),Y(T,"$clear",function(){var Ne=this;return z(Ne),Ne.splice(0,Ne.length),Ne}),Y(T,"$count",function nt(Ne){var je=nt.$$p||l,Ke=this;return nt.$$p=null,t(Ne!==void 0)||t(je)?me(Ke,Z(Ke,"count",nt,!1,!0),"count",[Ne],je):Ke.$size()},-1),Y(T,"$initialize_copy",function(Ne){var je=this;return je.$replace(Ne)}),Y(T,"$collect",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["collect"],function Le(){var Ze=Le.$$s==null?this:Le.$$s;return Ze.$size()},{$$s:je});for(var Ke=[],x=0,N=je.length;x<N;x++){var ve=i(Ne,je[x]);Ke.push(ve)}return Ke}),Y(T,"$collect!",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["collect!"],function ve(){var Le=ve.$$s==null?this:ve.$$s;return Le.$size()},{$$s:je});z(je);for(var Ke=0,x=je.length;Ke<x;Ke++){var N=i(Ne,je[Ke]);je[Ke]=N}return je});function St(nt,Ne){return nt===Ne||Ne===0?1:Ne>0&&nt>Ne?St(nt-1,Ne-1)+St(nt-1,Ne):0}Y(T,"$combination",function nt(Ne){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Ne,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["combination",x],function re(){var V=re.$$s==null?this:re.$$s;return St(V.length,x)},{$$s:Ke});var N,ve,Le,Ze,$t,a,ae;if(x===0)e.yield1(je,[]);else if(x===1)for(N=0,ve=Ke.length;N<ve;N++)e.yield1(je,[Ke[N]]);else if(x===Ke.length)e.yield1(je,Ke.slice());else if(x>=0&&x<Ke.length){for(Le=[],N=0;N<=x+1;N++)Le.push(0);for(Ze=[],$t=0,a=!1,Le[0]=-1;!a;){for(Ze[$t]=Ke[Le[$t+1]];$t<x-1;)$t++,ae=Le[$t+1]=Le[$t]+1,Ze[$t]=Ke[ae];e.yield1(je,Ze.slice()),$t++;do a=$t===0,Le[$t]++,$t--;while(Le[$t+1]+x===Ke.length+$t+1)}}return Ke}),Y(T,"$repeated_combination",function nt(Ne){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Ne,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["repeated_combination",x],function ve(){var Le=ve.$$s==null?this:ve.$$s;return St(Le.length+x-1,x)},{$$s:Ke});function N(ve,Le,Ze,$t){if(Ze.length==ve){var a=Ze.slice();e.yield1(je,a);return}for(var ae=Le;ae<$t.length;ae++)Ze.push($t[ae]),N(ve,ae,Ze,$t),Ze.pop()}return x>=0&&N(x,0,[],Ke),Ke}),Y(T,"$compact",function(){for(var Ne=this,je=[],Ke=0,x=Ne.length,N;Ke<x;Ke++)(N=Ne[Ke])!==l&&je.push(N);return je}),Y(T,"$compact!",function(){var Ne=this;z(Ne);for(var je=Ne.length,Ke=0,x=Ne.length;Ke<x;Ke++)Ne[Ke]===l&&(Ne.splice(Ke,1),x--,Ke--);return Ne.length===je?l:Ne}),Y(T,"$concat",function(Ne){var je,Ke,x=this;return je=he(arguments),Ke=je,z(x),Ke=xe(Ke,"map",[],function N(ve){var Le=N.$$s==null?this:N.$$s;return ve==null&&(ve=l),ve=ge(u("Array"),ve)?ve.$to_a():p(ve,u("Array"),"to_ary").$to_a(),t(ve["$equal?"](Le))&&(ve=ve.$dup()),ve},{$$s:x}),xe(Ke,"each",[],function N(ve){var Le=N.$$s==null?this:N.$$s;ve==null&&(ve=l);for(var Ze=0,$t=ve.length;Ze<$t;Ze++)Le.push(ve[Ze])},{$$s:x}),x},-1),Y(T,"$delete",function nt(Ne){var je=nt.$$p||l,Ke=this;nt.$$p=null;for(var x=Ke.length,N=0,ve=x;N<ve;N++)Ke[N]["$=="](Ne)&&(z(Ke),Ke.splice(N,1),ve--,N--);return Ke.length===x?je!==l?e.yieldX(je,[]):l:Ne}),Y(T,"$delete_at",function(Ne){var je=this;if(z(je),Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&(Ne+=je.length),Ne<0||Ne>=je.length)return l;var Ke=je[Ne];return je.splice(Ne,1),Ke}),Y(T,"$delete_if",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,Ne===l?xe(je,"enum_for",["delete_if"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(z(je),_t(je,r,Ne),je)}),Y(T,"$difference",function(Ne){var je,Ke,x=this;return je=he(arguments),Ke=je,xe(Ke,"reduce",[x.$to_a().$dup()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),Ee(ve,Le)})},-1),Y(T,"$dig",function(Ne,je){var Ke,x,N=this,ve=l;return Ke=he(arguments,1),x=Ke,ve=N["$[]"](Ne),ve===l||x.length===0?ve:(t(ve["$respond_to?"]("dig"))||ee.$raise(u("TypeError"),""+ve.$class()+" does not have #dig method"),xe(ve,"dig",ce(x)))},-2),Y(T,"$drop",function(Ne){var je=this;return Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&ee.$raise(u("ArgumentError")),je.slice(Ne)}),Y(T,"$dup",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,je.$$class===e.Array&&je.$$class.$allocate.$$pristine&&je.$copy_instance_variables.$$pristine&&je.$initialize_dup.$$pristine?je.slice(0):me(je,Z(je,"dup",nt,!1,!0),"dup",[],Ne)}),Y(T,"$each",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["each"],function N(){var ve=N.$$s==null?this:N.$$s;return ve.$size()},{$$s:je});for(var Ke=0,x=je.length;Ke<x;Ke++)i(Ne,je[Ke]);return je}),Y(T,"$each_index",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["each_index"],function N(){var ve=N.$$s==null?this:N.$$s;return ve.$size()},{$$s:je});for(var Ke=0,x=je.length;Ke<x;Ke++)i(Ne,Ke);return je}),Y(T,"$empty?",function(){var Ne=this;return Ne.length===0}),Y(T,"$eql?",function(Ne){var je=this,Ke={};function x(N,ve){var Le,Ze,$t,a;if(!ve.$$is_array||(ve=ve.$to_a(),N.length!==ve.length))return!1;for(Ke[N.$object_id()]=!0,Le=0,Ze=N.length;Le<Ze;Le++)if($t=N[Le],a=ve[Le],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ke.hasOwnProperty($t.$object_id())&&!x($t,a))return!1}else if(!$t["$eql?"](a))return!1;return!0}return x(je,Ne)}),Y(T,"$fetch",function nt(Ne,je){var Ke=nt.$$p||l,x=this;nt.$$p=null;var N=Ne;if(Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&(Ne+=x.length),Ne>=0&&Ne<x.length)return x[Ne];if(Ke!==l&&je!=null&&x.$warn("warning: block supersedes default value argument"),Ke!==l)return Ke(N);if(je!=null)return je;x.length===0?ee.$raise(u("IndexError"),"index "+N+" outside of array bounds: 0...0"):ee.$raise(u("IndexError"),"index "+N+" outside of array bounds: -"+x.length+"..."+x.length)},-2),Y(T,"$fill",function nt(Ne){var je=nt.$$p||l,Ke,x,N,ve,Le=this,Ze=l,$t=l,a=l,ae=l,re=l;nt.$$p=null,Ke=he(arguments),x=Ke,z(Le);var V,_e;if(t(je)?(t(x.length>2)&&ee.$raise(u("ArgumentError"),"wrong number of arguments ("+x.$length()+" for 0..2)"),ve=x,N=w(ve),Ze=N[0]==null?l:N[0],$t=N[1]==null?l:N[1]):(t(x.length==0)?ee.$raise(u("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(x.length>3)&&ee.$raise(u("ArgumentError"),"wrong number of arguments ("+x.$length()+" for 1..3)"),ve=x,N=w(ve),a=N[0]==null?l:N[0],Ze=N[1]==null?l:N[1],$t=N[2]==null?l:N[2]),ge(u("Range"),Ze)){if(t($t)&&ee.$raise(u("TypeError"),"length invalid with range"),ae=Ze.begin===l?0:p(Ze.begin,u("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&ee.$raise(u("RangeError"),""+Ze.$inspect()+" out of range"),re=Ze.end===l?-1:p(Ze.end,u("Integer"),"to_int"),t(re<0)&&(re+=this.length),t(Ze["$exclude_end?"]())||(re+=1),t(re<=ae))return Le}else if(t(Ze))if(ae=p(Ze,u("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&(ae=0),t($t)){if(re=p($t,u("Integer"),"to_int"),t(re==0))return Le;re+=ae}else re=this.length;else ae=0,re=this.length;if(t(ae>this.length))for(V=this.length;V<re;V++)Le[V]=l;if(t(re>this.length)&&(this.length=re),t(je))for(this.length;ae<re;ae++)_e=je(ae),Le[ae]=_e;else for(this.length;ae<re;ae++)Le[ae]=a;return Le},-1),Y(T,"$first",function(Ne){var je=this;return Ne==null?je.length===0?l:je[0]:(Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&ee.$raise(u("ArgumentError"),"negative array size"),je.slice(0,Ne))},-1),Y(T,"$flatten",function(Ne){var je=this;function Ke(x,N){var ve=[],Le,Ze,$t,a;for(x=x.$to_a(),Le=0,Ze=x.length;Le<Ze;Le++){if($t=x[Le],!h($t,"$to_ary",!0)){ve.push($t);continue}if(a=$t.$to_ary(),a===l){ve.push($t);continue}switch(a.$$is_array||ee.$raise(u("TypeError")),a===je&&ee.$raise(u("ArgumentError")),N){case void 0:ve=ve.concat(Ke(a));break;case 0:ve.push(a);break;default:ve.push.apply(ve,Ke(a,N-1))}}return ve}return Ne!==void 0&&(Ne=p(Ne,u("Integer"),"to_int")),Ke(je,Ne)},-1),Y(T,"$flatten!",function(Ne){var je=this;z(je);var Ke=je.$flatten(Ne);if(je.length==Ke.length){for(var x=0,N=je.length;x<N&&je[x]===Ke[x];x++);if(x==N)return l}return je.$replace(Ke),je},-1),Y(T,"$freeze",function(){var Ne=this;return t(Ne["$frozen?"]())?Ne:D(Ne)}),Y(T,"$hash",function(){var Ne=this,je=n===void 0,Ke=["A"],x=Ne.$object_id(),N,ve,Le;try{if(je&&(n=Object.create(null)),n[x])return"self";for(Le in n)if(N=n[Le],Ne["$eql?"](N))return"self";for(n[x]=Ne,ve=0;ve<Ne.length;ve++)N=Ne[ve],Ke.push(N.$hash());return Ke.join(",")}finally{je&&(n=void 0)}}),Y(T,"$include?",function(Ne){for(var je=this,Ke=0,x=je.length;Ke<x;Ke++)if(je[Ke]["$=="](Ne))return!0;return!1}),Y(T,"$index",function nt(Ne){var je=nt.$$p||l,Ke=this;nt.$$p=null;var x,N,ve;if(Ne!=null&&je!==l&&Ke.$warn("warning: given block not used"),Ne!=null){for(x=0,N=Ke.length;x<N;x++)if(Ke[x]["$=="](Ne))return x}else if(je!==l){for(x=0,N=Ke.length;x<N;x++)if(ve=je(Ke[x]),ve!==!1&&ve!==l)return x}else return Ke.$enum_for("index");return l},-1),Y(T,"$insert",function(Ne,je){var Ke,x,N=this;if(Ke=he(arguments,1),x=Ke,z(N),Ne=p(Ne,u("Integer"),"to_int"),x.length>0){if(Ne<0&&(Ne+=N.length+1,Ne<0&&ee.$raise(u("IndexError"),""+Ne+" is out of bounds")),Ne>N.length)for(var ve=N.length;ve<Ne;ve++)N.push(l);N.splice.apply(N,[Ne,0].concat(x))}return N},-2);var Mt=[];Y(T,"$inspect",function(){var Ne=this,je=[],Ke=Ne.$__id__(),x=!0;return function(){try{if(Mt.indexOf(Ke)!==-1)return x=!1,"[...]";Mt.push(Ke);for(var N=0,ve=Ne.length;N<ve;N++){var Le=Ne["$[]"](N);je.push(Ie("Opal").$inspect(Le))}return"["+je.join(", ")+"]"}finally{x&&Mt.pop()}}()}),Y(T,"$intersection",function(Ne){var je,Ke,x=this;return je=he(arguments),Ke=je,xe(Ke,"reduce",[x.$to_a().$dup()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),ve["$&"](Le)})},-1),Y(T,"$intersect?",function(Ne){var je=this;return je.$intersection(Ne)["$empty?"]()["$!"]()}),Y(T,"$join",function(Ne){var je=this;if(Se[","]==null&&(Se[","]=l),Ne==null&&(Ne=l),t(je.length===0))return"";t(Ne===l)&&(Ne=Se[","]);var Ke=[],x,N,ve,Le;for(x=0,N=je.length;x<N;x++){if(ve=je[x],h(ve,"$to_str")&&(Le=ve.$to_str(),Le!==l)){Ke.push(Le.$to_s());continue}if(h(ve,"$to_ary")&&(Le=ve.$to_ary(),Le===je&&ee.$raise(u("ArgumentError")),Le!==l)){Ke.push(Le.$join(Ne));continue}if(h(ve,"$to_s")&&(Le=ve.$to_s(),Le!==l)){Ke.push(Le);continue}ee.$raise(u("NoMethodError").$new(""+Ie("Opal").$inspect(je.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return Ne===l?Ke.join(""):Ke.join(X["$coerce_to!"](Ne,u("String"),"to_str").$to_s())},-1),Y(T,"$keep_if",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,Ne===l?xe(je,"enum_for",["keep_if"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(z(je),_t(je,t,Ne),je)}),Y(T,"$last",function(Ne){var je=this;return Ne==null?je.length===0?l:je[je.length-1]:(Ne=p(Ne,u("Integer"),"to_int"),Ne<0&&ee.$raise(u("ArgumentError"),"negative array size"),Ne>je.length&&(Ne=je.length),je.slice(je.length-Ne,je.length))},-1),Y(T,"$length",function(){var Ne=this;return Ne.length}),Y(T,"$max",function nt(Ne){var je=nt.$$p||l,Ke=this;return nt.$$p=null,xe(Ke.$each(),"max",[Ne],je.$to_proc())},-1),Y(T,"$min",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,xe(je.$each(),"min",[],Ne.$to_proc())});function Ct(nt,Ne){for(var je=Ne>=0?1:0;Ne;)je*=nt,nt--,Ne--;return je}return Y(T,"$permutation",function nt(Ne){var je=nt.$$p||l,Ke=this,x=l,N=l;if(nt.$$p=null,je===l)return xe(Ke,"enum_for",["permutation",Ne],function a(){var ae=a.$$s==null?this:a.$$s;return Ct(ae.length,Ne===void 0?ae.length:Ne)},{$$s:Ke});var ve,Le,Ze;if(Ne===void 0?Ne=Ke.length:Ne=p(Ne,u("Integer"),"to_int"),!(Ne<0||Ke.length<Ne))if(Ne===0)e.yield1(je,[]);else if(Ne===1)for(var $t=0;$t<Ke.length;$t++)e.yield1(je,[Ke[$t]]);else x=Ie("Array").$new(Ne),N=Ie("Array").$new(Ke.length,!1),ve=function(a,ae,re,V,_e){Ke=this;for(var y=0;y<Ke.length;y++)if(V["$[]"](y)["$!"]())if(ae[re]=y,re<a-1)V[y]=!0,ve.call(Ke,a,ae,re+1,V,_e),V[y]=!1;else{Ze=[];for(var W=0;W<ae.length;W++)Ze.push(Ke[ae[W]]);i(_e,Ze)}},je!==l?(Le=Ke.slice(),ve.call(Le,Ne,x,0,N,je)):ve.call(Ke,Ne,x,0,N,je);return Ke},-1),Y(T,"$repeated_permutation",function nt(Ne){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Ne,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["repeated_permutation",x],function ve(){var Le=ve.$$s==null?this:ve.$$s;return t(I(x,0))?Le.$size()["$**"](x):0},{$$s:Ke});function N(ve,Le,Ze){if(Le.length==ve){var $t=Le.slice();e.yield1(je,$t);return}for(var a=0;a<Ze.length;a++)Le.push(Ze[a]),N(ve,Le,Ze),Le.pop()}return N(x,[],Ke.slice()),Ke}),Y(T,"$pop",function(Ne){var je=this;return z(je),t(Ne===void 0)?t(je.length===0)?l:je.pop():(Ne=p(Ne,u("Integer"),"to_int"),t(Ne<0)&&ee.$raise(u("ArgumentError"),"negative array size"),t(je.length===0)?[]:t(Ne===1)?[je.pop()]:t(Ne>je.length)?je.splice(0,je.length):je.splice(je.length-Ne,je.length))},-1),Y(T,"$product",function nt(Ne){var je=nt.$$p||l,Ke,x,N=this;nt.$$p=null,Ke=he(arguments),x=Ke;var ve=je!==l?null:[],Le=x.length+1,Ze=new Array(Le),$t=new Array(Le),a=new Array(Le),ae,re,V,_e,y=1;for(a[0]=N,ae=1;ae<Le;ae++)a[ae]=p(x[ae-1],u("Array"),"to_ary");for(ae=0;ae<Le;ae++){if(_e=a[ae].length,_e===0)return ve||N;y*=_e,y>2147483647&&ee.$raise(u("RangeError"),"too big to product"),$t[ae]=_e,Ze[ae]=0}e:for(;;){for(V=[],ae=0;ae<Le;ae++)V.push(a[ae][Ze[ae]]);for(ve?ve.push(V):e.yield1(je,V),re=Le-1,Ze[re]++;Ze[re]===$t[re];){if(Ze[re]=0,--re<0)break e;Ze[re]++}}return ve||N},-1),Y(T,"$push",function(Ne){var je,Ke,x=this;je=he(arguments),Ke=je,z(x);for(var N=0,ve=Ke.length;N<ve;N++)x.push(Ke[N]);return x},-1),Y(T,"$rassoc",function(Ne){for(var je=this,Ke=0,x=je.length,N;Ke<x;Ke++)if(N=je[Ke],N.length&&N[1]!==void 0&&N[1]["$=="](Ne))return N;return l}),Y(T,"$reject",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["reject"],function Le(){var Ze=Le.$$s==null?this:Le.$$s;return Ze.$size()},{$$s:je});for(var Ke=[],x=0,N=je.length,ve;x<N;x++)ve=Ne(je[x]),(ve===!1||ve===l)&&Ke.push(je[x]);return Ke}),Y(T,"$reject!",function nt(){var Ne=nt.$$p||l,je=this,Ke=l;return nt.$$p=null,Ne===l?xe(je,"enum_for",["reject!"],function x(){var N=x.$$s==null?this:x.$$s;return N.$size()},{$$s:je}):(z(je),Ke=je.$length(),xe(je,"delete_if",[],Ne.$to_proc()),J(je.$length(),Ke)?l:je)}),Y(T,"$replace",function(Ne){var je=this;return z(je),Ne=ge(u("Array"),Ne)?Ne.$to_a():p(Ne,u("Array"),"to_ary").$to_a(),je.splice(0,je.length),je.push.apply(je,Ne),je}),Y(T,"$reverse",function(){var Ne=this;return Ne.slice(0).reverse()}),Y(T,"$reverse!",function(){var Ne=this;return z(Ne),Ne.reverse()}),Y(T,"$reverse_each",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,Ne===l?xe(je,"enum_for",["reverse_each"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(xe(je.$reverse(),"each",[],Ne.$to_proc()),je)}),Y(T,"$rindex",function nt(Ne){var je=nt.$$p||l,Ke=this;nt.$$p=null;var x,N;if(Ne!=null&&je!==l&&Ke.$warn("warning: given block not used"),Ne!=null){for(x=Ke.length-1;x>=0&&!(x>=Ke.length);x--)if(Ke[x]["$=="](Ne))return x}else if(je!==l){for(x=Ke.length-1;x>=0&&!(x>=Ke.length);x--)if(N=je(Ke[x]),N!==!1&&N!==l)return x}else if(Ne==null)return Ke.$enum_for("rindex");return l},-1),Y(T,"$rotate",function(Ne){var je=this;Ne==null&&(Ne=1);var Ke,x,N,ve;return Ne=p(Ne,u("Integer"),"to_int"),je.length===1?je.slice():je.length===0?[]:(Ke=je.slice(),x=Ne%Ke.length,N=Ke.slice(x),ve=Ke.slice(0,x),N.concat(ve))},-1),Y(T,"$rotate!",function(Ne){var je=this,Ke=l;return Ne==null&&(Ne=1),z(je),je.length===0||je.length===1?je:(Ne=p(Ne,u("Integer"),"to_int"),Ke=je.$rotate(Ne),je.$replace(Ke))},-1),function(nt,Ne){var je=j(nt,Ne,"SampleRandom"),Ke=je.$$prototype;return Ke.rng=l,Y(je,"$initialize",ne("rng")),Y(je,"$rand",function(N){var ve=this,Le=l;return Le=p(ve.rng.$rand(N),u("Integer"),"to_int"),t(Le<0)&&ee.$raise(u("RangeError"),"random value must be >= 0"),t(Le<N)||ee.$raise(u("RangeError"),"random value must be less than Array size"),Le})}(T,null),Y(T,"$sample",function(Ne,je){var Ke=this,x=l,N=l;if(t(Ne===void 0))return Ke.$at(ee.$rand(Ke.length));if(t(je===void 0)?t(x=X["$coerce_to?"](Ne,u("Hash"),"to_hash"))?(je=x,Ne=l):(je=l,Ne=p(Ne,u("Integer"),"to_int")):(Ne=p(Ne,u("Integer"),"to_int"),je=p(je,u("Hash"),"to_hash")),t(Ne)&&t(Ne<0)&&ee.$raise(u("ArgumentError"),"count must be greater than 0"),t(je)&&(N=je["$[]"]("random")),N=t(N)&&t(N["$respond_to?"]("rand"))?Ie("SampleRandom").$new(N):ee,!t(Ne))return Ke[N.$rand(Ke.length)];var ve,Le,Ze,$t,a,ae,re,V;switch(Ne>Ke.length&&(Ne=Ke.length),Ne){case 0:return[];case 1:return[Ke[N.$rand(Ke.length)]];case 2:return $t=N.$rand(Ke.length),a=N.$rand(Ke.length-1),$t<=a&&a++,[Ke[$t],Ke[a]];default:if(Ke.length/Ne>3){for(ve=!1,Le=0,Ze=Ie("Array").$new(Ne),$t=1,Ze[0]=N.$rand(Ke.length);$t<Ne;){for(ae=N.$rand(Ke.length),a=0;a<$t;){for(;ae===Ze[a];){if(Le++,Le>100){ve=!0;break}ae=N.$rand(Ke.length)}if(ve)break;a++}if(ve)break;Ze[$t]=ae,$t++}if(!ve){for($t=0;$t<Ne;)Ze[$t]=Ke[Ze[$t]],$t++;return Ze}}Ze=Ke.slice();for(var _e=0;_e<Ne;_e++)re=N.$rand(Ke.length-_e)+_e,V=Ze[_e],Ze[_e]=Ze[re],Ze[re]=V;return Ne===Ke.length?Ze:Ze["$[]"](0,Ne)}},-1),Y(T,"$select",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["select"],function Ze(){var $t=Ze.$$s==null?this:Ze.$$s;return $t.$size()},{$$s:je});for(var Ke=[],x=0,N=je.length,ve,Le;x<N;x++)ve=je[x],Le=i(Ne,ve),t(Le)&&Ke.push(ve);return Ke}),Y(T,"$select!",function nt(){var Ne=nt.$$p||l,je=this;if(nt.$$p=null,Ne===l)return xe(je,"enum_for",["select!"],function x(){var N=x.$$s==null?this:x.$$s;return N.$size()},{$$s:je});z(je);var Ke=je.length;return xe(je,"keep_if",[],Ne.$to_proc()),je.length===Ke?l:je}),Y(T,"$shift",function(Ne){var je=this;return z(je),t(Ne===void 0)?t(je.length===0)?l:Je(je):(Ne=p(Ne,u("Integer"),"to_int"),t(Ne<0)&&ee.$raise(u("ArgumentError"),"negative array size"),t(je.length===0)?[]:je.splice(0,Ne))},-1),Y(T,"$shuffle",function(Ne){var je=this;return je.$dup().$to_a()["$shuffle!"](Ne)},-1),Y(T,"$shuffle!",function(Ne){var je=this;z(je);var Ke,x=je.length,N,ve;for(Ne!==void 0&&(Ne=X["$coerce_to?"](Ne,u("Hash"),"to_hash"),Ne!==l&&(Ne=Ne["$[]"]("random"),Ne!==l&&Ne["$respond_to?"]("rand")&&(Ke=Ne)));x;)Ke?(N=Ke.$rand(x).$to_int(),N<0&&ee.$raise(u("RangeError"),"random number too small "+N),N>=x&&ee.$raise(u("RangeError"),"random number too big "+N)):N=je.$rand(x),ve=je[--x],je[x]=je[N],je[N]=ve;return je},-1),Y(T,"$slice!",function(Ne,je){var Ke=this,x=l,N=l,ve=l,Le=l,Ze=l;if(z(Ke),x=l,t(je===void 0))if(ge(u("Range"),Ne)){N=Ne,x=Ke["$[]"](N),ve=N.begin===l?0:p(N.begin,u("Integer"),"to_int"),Le=N.end===l?-1:p(N.end,u("Integer"),"to_int"),ve<0&&(ve+=Ke.length),Le<0?Le+=Ke.length:Le>=Ke.length&&(Le=Ke.length-1,N.excl&&(Le+=1));var $t=Le-ve;N.excl&&N.end!==l?Le-=1:$t+=1,ve<Ke.length&&ve>=0&&Le<Ke.length&&Le>=0&&$t>0&&Ke.splice(ve,$t)}else{if(Ze=p(Ne,u("Integer"),"to_int"),Ze<0&&(Ze+=Ke.length),Ze<0||Ze>=Ke.length)return l;x=Ke[Ze],Ze===0?Ke.shift():Ke.splice(Ze,1)}else{if(Ze=p(Ne,u("Integer"),"to_int"),je=p(je,u("Integer"),"to_int"),je<0)return l;x=Ke["$[]"](Ze,je),Ze<0&&(Ze+=Ke.length),Ze+je>Ke.length&&(je=Ke.length-Ze),Ze<Ke.length&&Ze>=0&&Ke.splice(Ze,je)}return x},-2),Y(T,"$sort",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,t(je.length>1)?(Ne===l&&(Ne=function(Ke,x){return Ke["$<=>"](x)}),je.slice().sort(function(Ke,x){var N=Ne(Ke,x);return N===l&&ee.$raise(u("ArgumentError"),"comparison of "+Ke.$inspect()+" with "+x.$inspect()+" failed"),fe(N,0)?1:B(N,0)?-1:0})):je}),Y(T,"$sort!",function nt(){var Ne=nt.$$p||l,je=this;nt.$$p=null,z(je);var Ke;Ne!==l?Ke=xe(je.slice(),"sort",[],Ne.$to_proc()):Ke=je.slice().$sort(),je.length=0;for(var x=0,N=Ke.length;x<N;x++)je.push(Ke[x]);return je}),Y(T,"$sort_by!",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,Ne===l?xe(je,"enum_for",["sort_by!"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(z(je),je.$replace(xe(je,"sort_by",[],Ne.$to_proc())))}),Y(T,"$take",function(Ne){var je=this;return Ne<0&&ee.$raise(u("ArgumentError")),je.slice(0,Ne)}),Y(T,"$take_while",function nt(){var Ne=nt.$$p||l,je=this;nt.$$p=null;for(var Ke=[],x=0,N=je.length,ve,Le;x<N;x++){if(ve=je[x],Le=Ne(ve),Le===!1||Le===l)return Ke;Ke.push(ve)}return Ke}),Y(T,"$to_a",function(){var Ne=this;return Ne.$$class===e.Array?Ne:e.Array.$new(Ne)}),Y(T,"$to_ary",Fe),Y(T,"$to_h",function nt(){var Ne=nt.$$p||l,je=this,Ke=l;nt.$$p=null,Ke=je,Ne!==l&&(Ke=xe(Ke,"map",[],Ne.$to_proc()));var x,N=Ke.length,ve,Le,Ze,$t=se([],{});for(x=0;x<N;x++)ve=X["$coerce_to?"](Ke[x],u("Array"),"to_ary"),ve.$$is_array||ee.$raise(u("TypeError"),"wrong element type "+ve.$class()+" at "+x+" (expected array)"),ve.length!==2&&ee.$raise(u("ArgumentError"),"wrong array length at "+x+" (expected 2, was "+ve.$length()+")"),Le=ve[0],Ze=ve[1],c($t,Le,Ze);return $t}),Y(T,"$transpose",function(){var Ne=this,je=l,Ke=l;return t(Ne["$empty?"]())?[]:(je=[],Ke=l,xe(Ne,"each",[],function(N){var ve=l;return N==null&&(N=l),N=ge(u("Array"),N)?N.$to_a():p(N,u("Array"),"to_ary").$to_a(),Ke=t(ve=Ke)?ve:N.length,ue(N.length,Ke)&&ee.$raise(u("IndexError"),"element size differs ("+N.length+" should be "+Ke+")"),xe(N.length,"times",[],function(Ze){var $t,a=l;return Ze==null&&(Ze=l),a=t(ve=je["$[]"](Ze))?ve:($t=[Ze,[]],xe(je,"[]=",$t),$t[$t.length-1]),a["$<<"](N.$at(Ze))})}),je)}),Y(T,"$union",function(Ne){var je,Ke,x=this;return je=he(arguments),Ke=je,xe(Ke,"reduce",[x.$uniq()],function(ve,Le){return ve==null&&(ve=l),Le==null&&(Le=l),ve["$|"](Le)})},-1),Y(T,"$uniq",function nt(){var Ne=nt.$$p||l,je=this;nt.$$p=null;var Ke=se([],{}),x,N,ve,Le;if(Ne===l)for(x=0,N=je.length;x<N;x++)ve=je[x],s(Ke,ve)===void 0&&c(Ke,ve,ve);else for(x=0,N=je.length;x<N;x++)ve=je[x],Le=i(Ne,ve),s(Ke,Le)===void 0&&c(Ke,Le,ve);return Ke.$values()}),Y(T,"$uniq!",function nt(){var Ne=nt.$$p||l,je=this;nt.$$p=null,z(je);var Ke=je.length,x=se([],{}),N,ve,Le,Ze;for(N=0,ve=Ke;N<ve;N++){if(Le=je[N],Ze=Ne===l?Le:i(Ne,Le),s(x,Ze)===void 0){c(x,Ze,Le);continue}je.splice(N,1),ve--,N--}return je.length===Ke?l:je}),Y(T,"$unshift",function(Ne){var je,Ke,x=this;je=he(arguments),Ke=je,z(x);var N=x.length,ve=Ke.length;if(ve==0)return x;for(var Le=N-ve,Ze=0;Ze<ve;Ze++)x.push(x[Le+Ze]);for(var $t=N-1;$t-ve>=0;)x[$t]=x[$t-ve],$t--;for(var a=0;a<ve;a++)x[a]=Ke[a];return x},-1),Y(T,"$values_at",function(Ne){var je,Ke,x=this,N=l;return je=he(arguments),Ke=je,N=[],xe(Ke,"each",[],function ve(Le){var Ze=ve.$$s==null?this:ve.$$s,$t=l,a=l,ae=l;return Le==null&&(Le=l),t(Le["$is_a?"](u("Range")))?($t=Le.$end()===l?-1:p(Le.$end(),u("Integer"),"to_int"),a=Le.$begin()===l?0:p(Le.$begin(),u("Integer"),"to_int"),a<0?(a=a+Ze.length,l):($t<0&&($t=$t+Ze.length),Le["$exclude_end?"]()&&Le.$end()!==l&&$t--,$t<a?l:xe(a,"upto",[$t],function re(V){var _e=re.$$s==null?this:re.$$s;return V==null&&(V=l),N["$<<"](_e.$at(V))},{$$s:Ze}))):(ae=p(Le,u("Integer"),"to_int"),N["$<<"](Ze.$at(ae)))},{$$s:x}),N},-1),Y(T,"$zip",function nt(Ne){var je=nt.$$p||l,Ke,x,N=this,ve=l;nt.$$p=null,Ke=he(arguments),x=Ke;var Le=[],Ze=N.length,$t,a,ae,re,V;for(re=0,V=x.length;re<V;re++)if(a=x[re],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){x[re]=a.$take(Ze);continue}x[re]=(t(ve=X["$coerce_to?"](a,u("Array"),"to_ary"))?ve:X["$coerce_to!"](a,u("Enumerator"),"to_enum","each")).$to_a()}for(ae=0;ae<Ze;ae++){for($t=[N[ae]],re=0,V=x.length;re<V;re++)a=x[re][ae],a==null&&(a=l),$t[re+1]=a;Le[ae]=$t}if(je!==l){for(ae=0;ae<Ze;ae++)e.yield1(je,Le[ae]);return l}return Le},-1),be(T,"$inherited",function(Ne){Ne.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),Y(T,"$instance_variables",function nt(){var Ne=nt.$$p||l,je=this;return nt.$$p=null,xe(me(je,Z(je,"instance_variables",nt,!1,!0),"instance_variables",[],Ne),"reject",[],function(x){var N=l;return x==null&&(x=l),t(N=/^@\d+$/.test(x))?N:x["$=="]("@length")})}),Y(T,"$pack",function(Ne){return he(arguments),ee.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),U(T,"append","push"),U(T,"filter","select"),U(T,"filter!","select!"),U(T,"map","collect"),U(T,"map!","collect!"),U(T,"prepend","unshift"),U(T,"size","length"),U(T,"slice","[]"),U(T,"to_s","inspect"),X.$pristine(T.$singleton_class(),"allocate"),X.$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,c=e.hash_delete,f=e.deny_frozen_access,p=e.freeze,h=e.klass,z=e.slice,D=e.Opal,j=e.Kernel,he=e.defs,be=e.def,ee=e.send,Y=e.rb_ge,X=e.rb_gt,ge=e.hash2,se=e.truthy,me=e.to_a,Z=e.return_self,xe=e.alias,fe=e.top,Ae=[],J=e.nil,Ee=e.$$$;return e.add_stubs("require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,except!,dup,delete,new,inspect,map,to_proc,flatten,frozen?,eql?,default,default_proc,default_proc=,default=,to_h,proc,clone,select,select!,has_key?,indexes,index,length,[]=,has_value?"),fe.$require("corelib/enumerable"),function(ce,w,Se){var I=h(ce,w,"Hash"),ne=[I].concat(Se),B=e.$r(ne);I.$include(Ee("Enumerable")),I.$$prototype.$$is_hash=!0,he(I,"$[]",function(U){var v,$,l=this;v=z(arguments),$=v;var u,d=$.length,_;if(d===1){if(u=D["$coerce_to?"]($["$[]"](0),Ee("Hash"),"to_hash"),u!==J)return l.$allocate()["$merge!"](u);for($=D["$coerce_to?"]($["$[]"](0),Ee("Array"),"to_ary"),$===J&&j.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),d=$.length,u=l.$allocate(),_=0;_<d;_++)if($[_].$$is_array)switch($[_].length){case 1:u.$store($[_][0],J);break;case 2:u.$store($[_][0],$[_][1]);break;default:j.$raise(Ee("ArgumentError"),"invalid number of elements ("+$[_].length+" for 1..2)")}return u}for(d%2!==0&&j.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),u=l.$allocate(),_=0;_<d;_+=2)u.$store($[_],$[_+1]);return u},-1),he(I,"$allocate",function(){var U=this,v=new U.$$constructor;return n(v),v.$$none=J,v.$$proc=J,v}),he(I,"$try_convert",function(U){return D["$coerce_to?"](U,Ee("Hash"),"to_hash")}),be(I,"$initialize",function ue(U){var v=ue.$$p||J,$=this;return ue.$$p=null,f($),U!==void 0&&v!==J&&j.$raise(Ee("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=U===void 0?J:U,$.$$proc=v,$},-1),be(I,"$==",function(U){var v=this;if(v===U)return!0;if(!U.$$is_hash||v.$$keys.length!==U.$$keys.length)return!1;for(var $=0,l=v.$$keys,u=l.length,d,_,S;$<u;$++)if(d=l[$],d.$$is_string?(_=v.$$smap[d],S=U.$$smap[d]):(_=d.value,S=i(U,d.key)),S===void 0||!_["$eql?"](S))return!1;return!0}),be(I,"$>=",function(U){var v=this,$=J;return U=D["$coerce_to!"](U,Ee("Hash"),"to_hash"),v.$$keys.length<U.$$keys.length?!1:($=!0,ee(U,"each",[],function l(u,d){var _=l.$$s==null?this:l.$$s,S=J;if(u==null&&(u=J),d==null&&(d=J),S=_.$fetch(u,null),S==null||S!==d){$=!1;return}},{$$s:v}),$)}),be(I,"$>",function(U){var v=this;return U=D["$coerce_to!"](U,Ee("Hash"),"to_hash"),v.$$keys.length<=U.$$keys.length?!1:Y(v,U)}),be(I,"$<",function(U){var v=this;return U=D["$coerce_to!"](U,Ee("Hash"),"to_hash"),X(U,v)}),be(I,"$<=",function(U){var v=this;return U=D["$coerce_to!"](U,Ee("Hash"),"to_hash"),Y(U,v)}),be(I,"$[]",function(U){var v=this,$=i(v,U);return $!==void 0?$:v.$default(U)}),be(I,"$[]=",function(U,v){var $=this;return f($),s($,U,v),v}),be(I,"$assoc",function(U){for(var v=this,$=0,l=v.$$keys,u=l.length,d;$<u;$++)if(d=l[$],d.$$is_string){if(d["$=="](U))return[d,v.$$smap[d]]}else if(d.key["$=="](U))return[d.key,d.value];return J}),be(I,"$clear",function(){var U=this;return f(U),n(U),U}),be(I,"$clone",function(){var U=this,v=new U.$$class;return n(v),e.hash_clone(U,v),v}),be(I,"$compact",function(){for(var U=this,v=r(),$=0,l=U.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=U.$$smap[d]:(_=d.value,d=d.key),_!==J&&s(v,d,_);return v}),be(I,"$compact!",function(){var U=this;f(U);for(var v=!1,$=0,l=U.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=U.$$smap[d]:(_=d.value,d=d.key),_===J&&c(U,d)!==void 0&&(v=!0,u--,$--);return v?U:J}),be(I,"$compare_by_identity",function(){var U=this;f(U);var v,$,l,u=U.$$keys,d;if(U.$$by_identity)return U;if(U.$$keys.length===0)return U.$$by_identity=!0,U;for(d=ge([],{}).$compare_by_identity(),v=0,$=u.length;v<$;v++)l=u[v],l.$$is_string||(l=l.key),s(d,l,i(U,l));return U.$$by_identity=!0,U.$$map=d.$$map,U.$$smap=d.$$smap,U}),be(I,"$compare_by_identity?",function(){var U=this;return U.$$by_identity===!0}),be(I,"$default",function(U){var v=this;return U!==void 0&&v.$$proc!==J&&v.$$proc!==void 0?v.$$proc.$call(v,U):v.$$none===void 0?J:v.$$none},-1),be(I,"$default=",function(U){var v=this;return f(v),v.$$proc=J,v.$$none=U,U}),be(I,"$default_proc",function(){var U=this;return U.$$proc!==void 0?U.$$proc:J}),be(I,"$default_proc=",function(U){var v=this;f(v);var $=U;return $!==J&&($=D["$coerce_to!"]($,Ee("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&j.$raise(Ee("TypeError"),"default_proc takes two arguments")),v.$$none=J,v.$$proc=$,U}),be(I,"$delete",function ue(U){var v=ue.$$p||J,$=this;ue.$$p=null,f($);var l=c($,U);return l!==void 0?l:v!==J?e.yield1(v,U):J}),be(I,"$delete_if",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["delete_if"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:v});f(v);for(var $=0,l=v.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),S=U(d,_),S!==!1&&S!==J&&c(v,d)!==void 0&&(u--,$--);return v}),be(I,"$dig",function(U,v){var $,l,u=this,d=J;return $=z(arguments,1),l=$,d=u["$[]"](U),d===J||l.length===0?d:(se(d["$respond_to?"]("dig"))||j.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),ee(d,"dig",me(l)))},-2),be(I,"$each",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["each"],function S(){var T=S.$$s==null?this:S.$$s;return T.$size()},{$$s:v});for(var $=0,l=v.$$keys.slice(),u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),t(U,[d,_]);return v}),be(I,"$each_key",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["each_key"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:v});for(var $=0,l=v.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],U(d.$$is_string?d:d.key);return v}),be(I,"$each_value",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["each_value"],function _(){var S=_.$$s==null?this:_.$$s;return S.$size()},{$$s:v});for(var $=0,l=v.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],U(d.$$is_string?v.$$smap[d]:d.value);return v}),be(I,"$empty?",function(){var U=this;return U.$$keys.length===0}),be(I,"$except",function(U){var v,$,l=this;return v=z(arguments),$=v,ee(l.$dup(),"except!",me($))},-1),be(I,"$except!",function(U){var v,$,l=this;return v=z(arguments),$=v,ee($,"each",[],function u(d){var _=u.$$s==null?this:u.$$s;return d==null&&(d=J),_.$delete(d)},{$$s:l}),l},-1),be(I,"$fetch",function ue(U,v){var $=ue.$$p||J,l=this;ue.$$p=null;var u=i(l,U);return u!==void 0?u:$!==J?$(U):v!==void 0?v:j.$raise(Ee("KeyError").$new("key not found: "+U.$inspect(),ge(["key","receiver"],{key:U,receiver:l})))},-2),be(I,"$fetch_values",function ue(U){var v=ue.$$p||J,$,l,u=this;return ue.$$p=null,$=z(arguments),l=$,ee(l,"map",[],function d(_){var S=d.$$s==null?this:d.$$s;return _==null&&(_=J),ee(S,"fetch",[_],v.$to_proc())},{$$s:u})},-1),be(I,"$flatten",function(U){var v=this;U==null&&(U=1),U=D["$coerce_to!"](U,Ee("Integer"),"to_int");for(var $=[],l=0,u=v.$$keys,d=u.length,_,S;l<d;l++){if(_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),$.push(_),S.$$is_array){if(U===1){$.push(S);continue}$=$.concat(S.$flatten(U-2));continue}$.push(S)}return $},-1),be(I,"$freeze",function(){var U=this;return se(U["$frozen?"]())?U:p(U)}),be(I,"$has_key?",function(U){var v=this;return i(v,U)!==void 0}),be(I,"$has_value?",function(U){for(var v=this,$=0,l=v.$$keys,u=l.length,d;$<u;$++)if(d=l[$],(d.$$is_string?v.$$smap[d]:d.value)["$=="](U))return!0;return!1}),be(I,"$hash",function(){var U=this,v=e.hash_ids===void 0,$=U.$object_id(),l=["Hash"],u,d;try{if(v&&(e.hash_ids=Object.create(null)),e[$])return"self";for(u in e.hash_ids)if(d=e.hash_ids[u],U["$eql?"](d))return"self";e.hash_ids[$]=U;for(var _=0,S=U.$$keys,T=S.length;_<T;_++)u=S[_],u.$$is_string?l.push([u,U.$$smap[u].$hash()]):l.push([u.key_hash,u.value.$hash()]);return l.sort().join()}finally{v&&(e.hash_ids=void 0)}}),be(I,"$index",function(U){for(var v=this,$=0,l=v.$$keys,u=l.length,d,_;$<u;$++)if(d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),_["$=="](U))return d;return J}),be(I,"$indexes",function(U){var v,$,l=this;v=z(arguments),$=v;for(var u=[],d=0,_=$.length,S,T;d<_;d++){if(S=$[d],T=i(l,S),T===void 0){u.push(l.$default());continue}u.push(T)}return u},-1);var Fe;return be(I,"$inspect",function(){var U=this,v=Fe===void 0,$=U.$object_id(),l=[];return function(){try{if(v&&(Fe={}),Fe.hasOwnProperty($))return"{...}";Fe[$]=!0;for(var u=0,d=U.$$keys,_=d.length,S,T;u<_;u++)S=d[u],S.$$is_string?T=U.$$smap[S]:(T=S.value,S=S.key),S=B("Opal").$inspect(S),T=B("Opal").$inspect(T),l.push(S+"=>"+T);return"{"+l.join(", ")+"}"}finally{v&&(Fe=void 0)}}()}),be(I,"$invert",function(){for(var U=this,v=r(),$=0,l=U.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=U.$$smap[d]:(_=d.value,d=d.key),s(v,_,d);return v}),be(I,"$keep_if",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["keep_if"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:v});f(v);for(var $=0,l=v.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),S=U(d,_),(S===!1||S===J)&&c(v,d)!==void 0&&(u--,$--);return v}),be(I,"$keys",function(){for(var U=this,v=[],$=0,l=U.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?v.push(d):v.push(d.key);return v}),be(I,"$length",function(){var U=this;return U.$$keys.length}),be(I,"$merge",function ue(U){var v=ue.$$p||J,$,l,u=this;return ue.$$p=null,$=z(arguments),l=$,ee(u.$dup(),"merge!",me(l),v.$to_proc())},-1),be(I,"$merge!",function ue(U){var v=ue.$$p||J,$,l,u=this;ue.$$p=null,$=z(arguments),l=$,f(u);var d,_,S,T,te,Ie,Je,ut;for(d=0;d<l.length;++d)if(S=D["$coerce_to!"](l[d],Ee("Hash"),"to_hash"),T=S.$$keys,te=T.length,v===J)for(_=0;_<te;_++)Ie=T[_],Ie.$$is_string?ut=S.$$smap[Ie]:(ut=Ie.value,Ie=Ie.key),s(u,Ie,ut);else for(_=0;_<te;_++){if(Ie=T[_],Ie.$$is_string?ut=S.$$smap[Ie]:(ut=Ie.value,Ie=Ie.key),Je=i(u,Ie),Je===void 0){s(u,Ie,ut);continue}s(u,Ie,v(Ie,Je,ut))}return u},-1),be(I,"$rassoc",function(U){for(var v=this,$=0,l=v.$$keys,u=l.length,d,_;$<u;$++)if(d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),_["$=="](U))return[d,_];return J}),be(I,"$rehash",function(){var U=this;return f(U),e.hash_rehash(U),U}),be(I,"$reject",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["reject"],function te(){var Ie=te.$$s==null?this:te.$$s;return Ie.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,S,T;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),T=U(_,S),(T===!1||T===J)&&s($,_,S);return $}),be(I,"$reject!",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["reject!"],function te(){var Ie=te.$$s==null?this:te.$$s;return Ie.$size()},{$$s:v});f(v);for(var $=!1,l=0,u=v.$$keys,d=u.length,_,S,T;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),T=U(_,S),T!==!1&&T!==J&&c(v,_)!==void 0&&($=!0,d--,l--);return $?v:J}),be(I,"$replace",function(U){var v=this;f(v),U=D["$coerce_to!"](U,Ee("Hash"),"to_hash"),n(v);for(var $=0,l=U.$$keys,u=l.length,d,_,S;$<u;$++)d=l[$],d.$$is_string?S=U.$$smap[d]:(S=d.value,d=d.key),s(v,d,S);return se(U.$default_proc())?v["$default_proc="](U.$default_proc()):v["$default="](U.$default()),v}),be(I,"$select",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["select"],function te(){var Ie=te.$$s==null?this:te.$$s;return Ie.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,S,T;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),T=U(_,S),T!==!1&&T!==J&&s($,_,S);return $}),be(I,"$select!",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["select!"],function te(){var Ie=te.$$s==null?this:te.$$s;return Ie.$size()},{$$s:v});f(v);for(var $=J,l=0,u=v.$$keys,d=u.length,_,S,T;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),T=U(_,S),(T===!1||T===J)&&(c(v,_)!==void 0&&(d--,l--),$=v);return $}),be(I,"$shift",function(){var U=this;f(U);var v=U.$$keys,$;return v.length>0?($=v[0],$=$.$$is_string?$:$.key,[$,c(U,$)]):J}),be(I,"$slice",function(U){var v,$,l=this;v=z(arguments),$=v;for(var u=r(),d=0,_=$.length;d<_;d++){var S=$[d],T=i(l,S);T!==void 0&&s(u,S,T)}return u},-1),be(I,"$to_a",function(){for(var U=this,v=[],$=0,l=U.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=U.$$smap[d]:(_=d.value,d=d.key),v.push([d,_]);return v}),be(I,"$to_h",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,U!==J)return ee(v,"map",[],U.$to_proc()).$to_h();if(v.$$class===e.Hash)return v;var $=new e.Hash;return n($),e.hash_clone(v,$),$}),be(I,"$to_hash",Z),be(I,"$to_proc",function(){var U=this;return ee(U,"proc",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&j.$raise(Ee("ArgumentError"),"no key given"),l["$[]"]($)},{$$arity:-1,$$s:U})}),be(I,"$transform_keys",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["transform_keys"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,S;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),_=t(U,_),s($,_,S);return $}),be(I,"$transform_keys!",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["transform_keys!"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:v});f(v);var $=e.slice(v.$$keys),l,u=$.length,d,_,S;for(l=0;l<u;l++)d=$[l],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),S=t(U,d),c(v,d),s(v,S,_);return v}),be(I,"$transform_values",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["transform_values"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,S;l<d;l++)_=u[l],_.$$is_string?S=v.$$smap[_]:(S=_.value,_=_.key),S=t(U,S),s($,_,S);return $}),be(I,"$transform_values!",function ue(){var U=ue.$$p||J,v=this;if(ue.$$p=null,!se(U))return ee(v,"enum_for",["transform_values!"],function S(){var T=S.$$s==null?this:S.$$s;return T.$size()},{$$s:v});f(v);for(var $=0,l=v.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),_=t(U,_),s(v,d,_);return v}),be(I,"$values",function(){for(var U=this,v=[],$=0,l=U.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?v.push(U.$$smap[d]):v.push(d.value);return v}),xe(I,"dup","clone"),xe(I,"each_pair","each"),xe(I,"eql?","=="),xe(I,"filter","select"),xe(I,"filter!","select!"),xe(I,"include?","has_key?"),xe(I,"indices","indexes"),xe(I,"key","index"),xe(I,"key?","has_key?"),xe(I,"member?","has_key?"),xe(I,"size","length"),xe(I,"store","[]="),xe(I,"to_s","inspect"),xe(I,"update","merge!"),xe(I,"value?","has_value?"),xe(I,"values_at","indexes")}("::",null,Ae)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,c=e.truthy,f=e.rb_gt,p=e.not,h=e.rb_lt,z=e.alias,D=e.send2,j=e.find_super,he=e.send,be=e.rb_plus,ee=e.rb_minus,Y=e.eqeq,X=e.return_self,ge=e.rb_divide,se=e.to_ary,me=e.rb_times,Z=e.rb_le,xe=e.rb_ge,fe=e.return_val,Ae=e.const_set,J=e.top,Ee=[],ce=e.nil,w=e.$$$;return e.add_stubs("require,bridge,raise,name,class,Float,respond_to?,coerce_to!,__coerced__,===,>,!,**,new,<,to_f,==,nan?,infinite?,enum_for,+,-,gcd,lcm,%,/,frexp,to_i,ldexp,rationalize,*,<<,to_r,truncate,-@,size,<=,>=,inspect,angle,to_s,is_a?,abs,__id__,next,coerce_to?"),J.$require("corelib/numeric"),function(Se,I,ne){var B=t(Se,I,"Number");r.$bridge(Number,B),e.prop(B.$$prototype,"$$is_number",!0),B.$$is_number_class=!0,function(l,u){return i(l,"$allocate",function(){var _=this;return n.$raise(w("TypeError"),"allocator undefined for "+_.$name())}),e.udef(l,"$new"),ce}(e.get_singleton_class(B)),i(B,"$coerce",function(u){var d=this;if(u===ce)n.$raise(w("TypeError"),"can't convert "+u.$class()+" into Float");else{if(u.$$is_string)return[n.$Float(u),d];if(u["$respond_to?"]("to_f"))return[r["$coerce_to!"](u,w("Float"),"to_f"),d];if(u.$$is_number)return[u,d];n.$raise(w("TypeError"),"can't convert "+u.$class()+" into Float")}}),i(B,"$__id__",function(){var u=this;return u*2+1}),i(B,"$+",function(u){var d=this;return u.$$is_number?d+u:d.$__coerced__("+",u)}),i(B,"$-",function(u){var d=this;return u.$$is_number?d-u:d.$__coerced__("-",u)}),i(B,"$*",function(u){var d=this;return u.$$is_number?d*u:d.$__coerced__("*",u)}),i(B,"$/",function(u){var d=this;return u.$$is_number?d/u:d.$__coerced__("/",u)}),i(B,"$%",function(u){var d=this;if(u.$$is_number){if(u==-1/0)return u;if(u==0)n.$raise(w("ZeroDivisionError"),"divided by 0");else return u<0||d<0?(d%u+u)%u:d%u}else return d.$__coerced__("%",u)}),i(B,"$&",function(u){var d=this;return u.$$is_number?d&u:d.$__coerced__("&",u)}),i(B,"$|",function(u){var d=this;return u.$$is_number?d|u:d.$__coerced__("|",u)}),i(B,"$^",function(u){var d=this;return u.$$is_number?d^u:d.$__coerced__("^",u)}),i(B,"$<",function(u){var d=this;return u.$$is_number?d<u:d.$__coerced__("<",u)}),i(B,"$<=",function(u){var d=this;return u.$$is_number?d<=u:d.$__coerced__("<=",u)}),i(B,"$>",function(u){var d=this;return u.$$is_number?d>u:d.$__coerced__(">",u)}),i(B,"$>=",function(u){var d=this;return u.$$is_number?d>=u:d.$__coerced__(">=",u)});var Fe=function(l,u){return u.$$is_number?isNaN(l)||isNaN(u)?ce:l>u?1:l<u?-1:0:l.$__coerced__("<=>",u)};i(B,"$<=>",function(u){var d=this;try{return Fe(d,u)}catch(_){if(e.rescue(_,[w("ArgumentError")]))try{return ce}finally{e.pop_exception()}else throw _}}),i(B,"$<<",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u>0?d<<u:d>>-u}),i(B,"$>>",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u>0?d>>u:d<<-u}),i(B,"$[]",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u<0?0:u>=32?d<0?1:0:d>>u&1}),i(B,"$+@",function(){var u=this;return+u}),i(B,"$-@",function(){var u=this;return-u}),i(B,"$~",function(){var u=this;return~u}),i(B,"$**",function(u){var d=this;return s(w("Integer"),u)?p(w("Integer")["$==="](d))||c(f(u,0))?Math.pow(d,u):w("Rational").$new(d,1)["$**"](u):h(d,0)&&(s(w("Float"),u)||s(w("Rational"),u))?w("Complex").$new(d,0)["$**"](u.$to_f()):c(u.$$is_number!=null)?Math.pow(d,u):d.$__coerced__("**",u)}),i(B,"$==",function(u){var d=this;return u.$$is_number?d.valueOf()===u.valueOf():u["$respond_to?"]("==")?u["$=="](d):!1}),z(B,"===","=="),i(B,"$abs",function(){var u=this;return Math.abs(u)}),i(B,"$abs2",function(){var u=this;return Math.abs(u*u)}),i(B,"$allbits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)==u}),i(B,"$anybits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)!==0}),i(B,"$angle",function(){var u=this;return c(u["$nan?"]())?u:u==0?1/u>0?0:Math.PI:u<0?Math.PI:0}),i(B,"$bit_length",function(){var u=this;if(s(w("Integer"),u)||n.$raise(w("NoMethodError").$new("undefined method `bit_length` for "+u+":Float","bit_length")),u===0||u===-1)return 0;for(var d=0,_=u<0?~u:u;_!=0;)d+=1,_>>>=1;return d}),i(B,"$ceil",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),T=Math.ceil(_*S)/S;return _%1===0&&(T=Math.round(T)),T},-1),i(B,"$chr",function(u){var d=this;return e.enc(String.fromCharCode(d),u||"BINARY")},-1),i(B,"$denominator",function l(){var u=l.$$p||ce,d=this;return l.$$p=null,c(d["$nan?"]())||c(d["$infinite?"]())?1:D(d,j(d,"denominator",l,!1,!0),"denominator",[],u)}),i(B,"$downto",function l(u){var d=l.$$p||ce,_=this;if(l.$$p=null,d===ce)return he(_,"enum_for",["downto",u],function T(){var te=T.$$s==null?this:T.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+te.$class()+" with "+u.$class()+" failed"),c(f(u,te))?0:be(ee(te,u),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var S=_;S>=u;S--)d(S);return _}),i(B,"$equal?",function(u){var d=this,_=ce;return c(_=d["$=="](u))?_:isNaN(d)&&isNaN(u)}),i(B,"$even?",function(){var u=this;return u%2===0}),i(B,"$floor",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),T=Math.floor(_*S)/S;return _%1===0&&(T=Math.round(T)),T},-1),i(B,"$gcd",function(u){var d=this;s(w("Integer"),u)||n.$raise(w("TypeError"),"not an integer");for(var _=Math.abs(d),S=Math.abs(u);_>0;){var T=_;_=S%_,S=T}return S}),i(B,"$gcdlcm",function(u){var d=this;return[d.$gcd(u),d.$lcm(u)]}),i(B,"$integer?",function(){var u=this;return u%1===0}),i(B,"$is_a?",function l(u){var d=l.$$p||ce,_=this;return l.$$p=null,Y(u,w("Integer"))&&s(w("Integer"),_)||Y(u,w("Integer"))&&s(w("Integer"),_)||Y(u,w("Float"))&&s(w("Float"),_)?!0:D(_,j(_,"is_a?",l,!1,!0),"is_a?",[u],d)}),i(B,"$instance_of?",function l(u){var d=l.$$p||ce,_=this;return l.$$p=null,Y(u,w("Integer"))&&s(w("Integer"),_)||Y(u,w("Integer"))&&s(w("Integer"),_)||Y(u,w("Float"))&&s(w("Float"),_)?!0:D(_,j(_,"instance_of?",l,!1,!0),"instance_of?",[u],d)}),i(B,"$lcm",function(u){var d=this;return s(w("Integer"),u)||n.$raise(w("TypeError"),"not an integer"),d==0||u==0?0:Math.abs(d*u/d.$gcd(u))}),i(B,"$next",function(){var u=this;return u+1}),i(B,"$nobits?",function(u){var d=this;return u=r["$coerce_to!"](u,w("Integer"),"to_int"),(d&u)==0}),i(B,"$nonzero?",function(){var u=this;return u==0?ce:u}),i(B,"$numerator",function l(){var u=l.$$p||ce,d=this;return l.$$p=null,c(d["$nan?"]())||c(d["$infinite?"]())?d:D(d,j(d,"numerator",l,!1,!0),"numerator",[],u)}),i(B,"$odd?",function(){var u=this;return u%2!==0}),i(B,"$ord",X),i(B,"$pow",function(u,d){var _=this;return _==0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),d===void 0?_["$**"](u):(w("Integer")["$==="](u)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),u<0&&n.$raise(w("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),w("Integer")["$==="](d)||n.$raise(w("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),d===0&&n.$raise(w("ZeroDivisionError"),"divided by 0"),_["$**"](u)["$%"](d))},-2),i(B,"$pred",function(){var u=this;return u-1}),i(B,"$quo",function l(u){var d=l.$$p||ce,_=this;return l.$$p=null,s(w("Integer"),_)?D(_,j(_,"quo",l,!1,!0),"quo",[u],d):ge(_,u)}),i(B,"$rationalize",function(u){var d,_,S=this,T=ce,te=ce;return arguments.length>1&&n.$raise(w("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(w("Integer"),S)?w("Rational").$new(S,1):c(S["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):c(S["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):c(u==null)?(_=w("Math").$frexp(S),d=se(_),T=d[0]==null?ce:d[0],te=d[1]==null?ce:d[1],T=w("Math").$ldexp(T,w(w("Float"),"MANT_DIG")).$to_i(),te=ee(te,w(w("Float"),"MANT_DIG")),w("Rational").$new(me(2,T),1["$<<"](ee(1,te))).$rationalize(w("Rational").$new(1,1["$<<"](ee(1,te))))):S.$to_r().$rationalize(u)},-1),i(B,"$remainder",function(u){var d=this;return ee(d,me(u,ge(d,u).$truncate()))}),i(B,"$round",function(u){var d,_,S=this,T=ce;if(s(w("Integer"),S)){if(c(u==null)||(s(w("Float"),u)&&c(u["$infinite?"]())&&n.$raise(w("RangeError"),"Infinity"),u=r["$coerce_to!"](u,w("Integer"),"to_int"),c(h(u,w(w("Integer"),"MIN")))&&n.$raise(w("RangeError"),"out of bounds"),c(u>=0)))return S;if(u=u["$-@"](),.415241*u-.125>S.$size())return 0;var te=Math.pow(10,u),Ie=Math.floor((Math.abs(S)+te/2)/te)*te;return S<0?-Ie:Ie}else{if(c(S["$nan?"]())&&c(u==null)&&n.$raise(w("FloatDomainError"),"NaN"),u=r["$coerce_to!"](u||0,w("Integer"),"to_int"),c(Z(u,0)))c(S["$nan?"]())?n.$raise(w("RangeError"),"NaN"):c(S["$infinite?"]())&&n.$raise(w("FloatDomainError"),"Infinity");else{if(Y(u,0))return Math.round(S);if(c(S["$nan?"]())||c(S["$infinite?"]()))return S}return _=w("Math").$frexp(S),d=se(_),d[0]==null||d[0],T=d[1]==null?ce:d[1],c(xe(u,ee(be(w(w("Float"),"DIG"),2),c(f(T,0))?ge(T,4):ee(ge(T,3),1))))?S:c(h(u,(c(f(T,0))?be(ge(T,3),1):ge(T,4))["$-@"]()))?0:Math.round(S*Math.pow(10,u))/Math.pow(10,u)}},-1),i(B,"$times",function l(){var u=l.$$p||ce,d=this;if(l.$$p=null,!c(u))return he(d,"enum_for",["times"],function S(){var T=S.$$s==null?this:S.$$s;return T},{$$s:d});for(var _=0;_<d;_++)u(_);return d}),i(B,"$to_f",X),i(B,"$to_i",function(){var u=this;return u<0?Math.ceil(u):Math.floor(u)}),i(B,"$to_r",function(){var u,d,_=this,S=ce,T=ce;return s(w("Integer"),_)?w("Rational").$new(_,1):(d=w("Math").$frexp(_),u=se(d),S=u[0]==null?ce:u[0],T=u[1]==null?ce:u[1],S=w("Math").$ldexp(S,w(w("Float"),"MANT_DIG")).$to_i(),T=ee(T,w(w("Float"),"MANT_DIG")),me(S,w(w("Float"),"RADIX")["$**"](T)).$to_r())}),i(B,"$to_s",function(u){var d=this;return u==null&&(u=10),u=r["$coerce_to!"](u,w("Integer"),"to_int"),(c(h(u,2))||c(f(u,36)))&&n.$raise(w("ArgumentError"),"invalid radix "+u),Y(d,0)&&c(1/d===-1/0)?"-0.0":d.toString(u)},-1),i(B,"$truncate",function(u){var d=this;u==null&&(u=0);var _=d.$to_f();if(_%1===0&&u>=0)return _;var S=Math.pow(10,u),T=parseInt(_*S,10)/S;return _%1===0&&(T=Math.round(T)),T},-1),i(B,"$digits",function(u){var d=this;u==null&&(u=10),h(d,0)&&n.$raise(w(w("Math"),"DomainError"),"out of domain"),u=r["$coerce_to!"](u,w("Integer"),"to_int"),c(h(u,2))&&n.$raise(w("ArgumentError"),"invalid radix "+u),d!=parseInt(d)&&n.$raise(w("NoMethodError"),"undefined method `digits' for "+d.$inspect());var _=d,S=[];if(d==0)return[0];for(;_!=0;)S.push(_%u),_=parseInt(_/u,10);return S},-1),i(B,"$divmod",function l(u){var d=l.$$p||ce,_=this;return l.$$p=null,c(_["$nan?"]())||c(u["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):c(_["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):D(_,j(_,"divmod",l,!1,!0),"divmod",[u],d)}),i(B,"$upto",function l(u){var d=l.$$p||ce,_=this;if(l.$$p=null,d===ce)return he(_,"enum_for",["upto",u],function T(){var te=T.$$s==null?this:T.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+te.$class()+" with "+u.$class()+" failed"),c(h(u,te))?0:be(ee(u,te),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var S=_;S<=u;S++)d(S);return _}),i(B,"$zero?",function(){var u=this;return u==0}),i(B,"$size",fe(4)),i(B,"$nan?",function(){var u=this;return isNaN(u)}),i(B,"$finite?",function(){var u=this;return u!=1/0&&u!=-1/0&&!isNaN(u)}),i(B,"$infinite?",function(){var u=this;return u==1/0?1:u==-1/0?-1:ce}),i(B,"$positive?",function(){var u=this;return u!=0&&(u==1/0||1/u>0)}),i(B,"$negative?",function(){var u=this;return u==-1/0||1/u<0});function ue(l){var u=new Uint8Array(8);return new DataView(u.buffer).setFloat64(0,l,!0),u}function U(l){return new DataView(l.buffer).getFloat64(0,!0)}function v(l){for(var u=ue(l),d=0;d<u.length;d++)if(u[d]===255)u[d]=0;else{u[d]++;break}return U(u)}function $(l){for(var u=ue(l),d=0;d<u.length;d++)if(u[d]===0)u[d]=255;else{u[d]--;break}return U(u)}return i(B,"$next_float",function(){var u=this;return Y(u,w(w("Float"),"INFINITY"))?w(w("Float"),"INFINITY"):c(u["$nan?"]())?w(w("Float"),"NAN"):xe(u,0)?v(Math.abs(u)):$(u)}),i(B,"$prev_float",function(){var u=this;return Y(u,w(w("Float"),"INFINITY")["$-@"]())?w(w("Float"),"INFINITY")["$-@"]():c(u["$nan?"]())?w(w("Float"),"NAN"):f(u,0)?$(u):-v(Math.abs(u))}),z(B,"arg","angle"),z(B,"eql?","=="),z(B,"fdiv","/"),z(B,"inspect","to_s"),z(B,"kind_of?","is_a?"),z(B,"magnitude","abs"),z(B,"modulo","%"),z(B,"object_id","__id__"),z(B,"phase","angle"),z(B,"succ","next"),z(B,"to_int","to_i")}("::",w("Numeric")),Ae("::","Fixnum",w("Number")),function(Se,I,ne){var B=t(Se,I,"Integer"),Fe=[B].concat(ne);return B.$$is_number_class=!0,B.$$is_integer_class=!0,function(ue,U){var v=[ue].concat(U),$=e.$r(v);return i(ue,"$allocate",function(){var u=this;return n.$raise(w("TypeError"),"allocator undefined for "+u.$name())}),e.udef(ue,"$new"),i(ue,"$sqrt",function(u){return u=r["$coerce_to!"](u,w("Integer"),"to_int"),u<0&&n.$raise(w(w("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(u),10)}),i(ue,"$try_convert",function(u){var d=this;return $("Opal")["$coerce_to?"](u,d,"to_int")})}(e.get_singleton_class(B),Fe),Ae(B,"MAX",Math.pow(2,30)-1),Ae(B,"MIN",-Math.pow(2,30))}("::",w("Numeric"),Ee),function(Se,I,ne){var B=t(Se,I,"Float");return B.$$is_number_class=!0,function(Fe,ue){return i(Fe,"$allocate",function(){var v=this;return n.$raise(w("TypeError"),"allocator undefined for "+v.$name())}),e.udef(Fe,"$new"),i(Fe,"$===",function(v){return!!v.$$is_number})}(e.get_singleton_class(B)),Ae(B,"INFINITY",1/0),Ae(B,"MAX",Number.MAX_VALUE),Ae(B,"MIN",Number.MIN_VALUE),Ae(B,"NAN",NaN),Ae(B,"DIG",15),Ae(B,"MANT_DIG",53),Ae(B,"RADIX",2),Ae(B,"EPSILON",Number.EPSILON||2220446049250313e-31)}("::",w("Numeric"))};Opal.modules["corelib/range"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.not,c=e.send2,f=e.find_super,p=e.rb_lt,h=e.rb_le,z=e.send,D=e.eqeq,j=e.eqeqeq,he=e.return_ivar,be=e.rb_gt,ee=e.rb_minus,Y=e.Opal,X=e.rb_divide,ge=e.rb_plus,se=e.rb_times,me=e.rb_ge,Z=e.thrower,xe=e.alias,fe=e.top,Ae=[],J=e.nil,Ee=e.$$$;return e.add_stubs("require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_to!,ceil,/,is_a?,new,loop,+,*,>=,each_with_index,%,step,bsearch,inspect,[],hash,cover?"),fe.$require("corelib/enumerable"),function(ce,w,Se){var I=t(ce,w,"Range"),ne=[I].concat(Se),B=e.$r(ne),Fe=I.$$prototype;Fe.begin=Fe.end=Fe.excl=J,I.$include(Ee("Enumerable")),I.$$prototype.$$is_range=!0,I.$attr_reader("begin","end"),i(I,"$initialize",function(v,$,l){var u=this;return l==null&&(l=!1),r(u.begin)&&n.$raise(Ee("NameError"),"'initialize' called twice"),r(v["$<=>"]($))||r(v["$nil?"]())||r($["$nil?"]())||n.$raise(Ee("ArgumentError"),"bad value for range"),u.begin=v,u.end=$,u.excl=l},-3),i(I,"$===",function(v){var $=this;return $["$include?"](v)});function ue(U){return U.begin===J||U.end===J||U.begin===-1/0||U.end===1/0||U.begin===1/0||U.end===-1/0}return i(I,"$count",function U(){var v=U.$$p||J,$=this;return U.$$p=null,s(v!==J)&&r(ue($))?Ee(Ee("Float"),"INFINITY"):c($,f($,"count",U,!1,!0),"count",[],v)}),i(I,"$to_a",function U(){var v=U.$$p||J,$=this;return U.$$p=null,r(ue($))&&n.$raise(Ee("TypeError"),"cannot convert endless range to an array"),c($,f($,"to_a",U,!1,!0),"to_a",[],v)}),i(I,"$cover?",function(v){var $=this,l=J,u=J,d=J,_=J,S=J;return l=r(u=r(d=r(_=$.begin["$nil?"]())?-1:_)?d:$.begin["$<=>"](v))&&u,S=r(u=r(d=r(_=$.end["$nil?"]())?-1:_)?d:v["$<=>"]($.end))&&u,r(u=r(d=r($.excl)?r(_=S)?p(S,0):_:r(_=S)?h(S,0):_)?l:d)?h(l,0):u}),i(I,"$each",function U(){var v=U.$$p||J,$=this,l=J,u=J,d=J;if(U.$$p=null,v===J)return z($,"enum_for",["each"],function T(){var te=T.$$s==null?this:T.$$s;return te.$size()},{$$s:$});var _,S;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ee("TypeError"),"can't iterate from Float"),_=$.begin,S=$.end+(r($.excl)?0:1);_<S;_++)v(_);return $}if($.begin.$$is_string&&$.end.$$is_string)return z($.begin,"upto",[$.end,$.excl],v.$to_proc()),$;for(l=$.begin,u=$.end,r(l["$respond_to?"]("succ"))||n.$raise(Ee("TypeError"),"can't iterate from "+l.$class());r(r(d=$.end["$nil?"]())?d:p(l["$<=>"](u),0));)e.yield1(v,l),l=l.$succ();return s($.excl)&&D(l,u)&&e.yield1(v,l),$}),i(I,"$eql?",function(v){var $=this,l=J,u=J;return j(Ee("Range"),v)?r(l=r(u=$.excl["$==="](v["$exclude_end?"]()))?$.begin["$eql?"](v.$begin()):u)?$.end["$eql?"](v.$end()):l:!1}),i(I,"$exclude_end?",he("excl")),i(I,"$first",function U(v){var $=U.$$p||J,l=this;return U.$$p=null,r(l.begin["$nil?"]())&&n.$raise(Ee("RangeError"),"cannot get the minimum of beginless range"),r(v==null)?l.begin:c(l,f(l,"first",U,!1,!0),"first",[v],$)},-1),i(I,"$last",function(v){var $=this;return r($.end["$nil?"]())&&n.$raise(Ee("RangeError"),"cannot get the maximum of endless range"),r(v==null)?$.end:$.$to_a().$last(v)},-1),i(I,"$max",function U(){var v=U.$$p||J,$=this;return U.$$p=null,r($.end["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the maximum of endless range"):v!==J?c($,f($,"max",U,!1,!0),"max",[],v):s($.begin["$nil?"]())&&(r(be($.begin,$.end))||r($.excl)&&D($.begin,$.end))?J:$.excl?$.end-1:$.end}),i(I,"$min",function U(){var v=U.$$p||J,$=this;return U.$$p=null,r($.begin["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the minimum of beginless range"):v!==J?c($,f($,"min",U,!1,!0),"min",[],v):s($.end["$nil?"]())&&(r(be($.begin,$.end))||r($.excl)&&D($.begin,$.end))?J:$.begin}),i(I,"$size",function(){var v=this,$=J,l=J,u=J;return $=Ee(Ee("Float"),"INFINITY"),D(v.begin,$)&&s(v.end["$nil?"]())||D(v.end,$["$-@"]())&&s(v.begin["$nil?"]())?0:r(ue(v))?$:j(Ee("Numeric"),v.begin)&&j(Ee("Numeric"),v.end)?(l=v.begin,u=v.end,r(v.excl)&&(u=ee(u,1)),r(p(u,l))?0:(Math.abs(u-l)+1).$to_i()):J}),i(I,"$step",function U(v){var $=U.$$p||J,l=this,u=J,d=J;U.$$p=null;function _(){v==null?v=1:v.$$is_number||(v=Y["$coerce_to!"](v,Ee("Integer"),"to_int")),v<0?n.$raise(Ee("ArgumentError"),"step can't be negative"):v===0&&n.$raise(Ee("ArgumentError"),"step can't be 0")}function S(){if(!l.begin["$respond_to?"]("succ")||l.begin.$$is_string&&l.end.$$is_string)return J;if(v%1===0)return X(l.$size(),v).$ceil();var T=l.begin,te=l.end,Ie=Math.abs,Je=Math.floor,ut=(Ie(T)+Ie(te)+Ie(te-T))/Ie(v)*Ee(Ee("Float"),"EPSILON"),_t;return ut>.5&&(ut=.5),l.excl?(_t=Je((te-T)/v-ut),_t*v+T<te&&_t++):_t=Je((te-T)/v+ut)+1,_t}return $===J?(r(l.begin["$is_a?"](B("Numeric")))||r(l.begin["$nil?"]()))&&(r(l.end["$is_a?"](B("Numeric")))||r(l.end["$nil?"]()))&&s(r(u=l.begin["$nil?"]())?l.end["$nil?"]():u)?Ee(Ee("Enumerator"),"ArithmeticSequence").$new(l,v,"step"):z(l,"enum_for",["step",v],function(){return _(),S()}):(_(),r(l.begin.$$is_number&&l.end.$$is_number)?(d=0,function(){try{var T=Z("break");return z(l,"loop",[],function te(){var Ie=te.$$s==null?this:te.$$s,Je=J;return Ie.begin==null&&(Ie.begin=J),Ie.excl==null&&(Ie.excl=J),Ie.end==null&&(Ie.end=J),Je=ge(Ie.begin,se(d,v)),r(Ie.excl)?r(me(Je,Ie.end))&&T.$throw():r(be(Je,Ie.end))&&T.$throw(),e.yield1($,Je),d=ge(d,1)},{$$s:l})}catch(te){if(te===T)return te.$v;throw te}}()):(l.begin.$$is_string&&l.end.$$is_string&&v%1!==0&&n.$raise(Ee("TypeError"),"no implicit conversion to float from string"),z(l,"each_with_index",[],function(te,Ie){return te==null&&(te=J),Ie==null&&(Ie=J),D(Ie["$%"](v),0)?e.yield1($,te):J})),l)},-1),i(I,"$%",function(v){var $=this;return r($.begin["$is_a?"](B("Numeric")))&&r($.end["$is_a?"](B("Numeric")))?Ee(Ee("Enumerator"),"ArithmeticSequence").$new($,v,"%"):$.$step(v)}),i(I,"$bsearch",function U(){var v=U.$$p||J,$=this;return U.$$p=null,v===J?$.$enum_for("bsearch"):(r(ue($)&&($.begin.$$is_number||$.end.$$is_number))&&n.$raise(Ee("NotImplementedError"),"Can't #bsearch an infinite range"),r($.begin.$$is_number&&$.end.$$is_number)||n.$raise(Ee("TypeError"),"can't do binary search for "+$.begin.$class()),z($.$to_a(),"bsearch",[],v.$to_proc()))}),i(I,"$to_s",function(){var v=this,$=J;return""+(r($=v.begin)?$:"")+(r(v.excl)?"...":"..")+(r($=v.end)?$:"")}),i(I,"$inspect",function(){var v=this,$=J;return""+(r($=v.begin)?v.begin.$inspect():$)+(r(v.excl)?"...":"..")+(r($=v.end)?v.end.$inspect():$)}),i(I,"$marshal_load",function(v){var $=this;return $.begin=v["$[]"]("begin"),$.end=v["$[]"]("end"),$.excl=v["$[]"]("excl")}),i(I,"$hash",function(){var v=this;return[v.begin,v.end,v.excl].$hash()}),xe(I,"==","eql?"),xe(I,"include?","cover?"),xe(I,"member?","cover?")}("::",null,Ae)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,c=e.def,f=e.send,p=e.to_a,h=e.return_self,z=e.ensure_kwargs,D=e.Opal,j=e.alias,he=e.nil,be=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(ee,Y){var X=r(ee,Y,"Proc");return e.prop(X.$$prototype,"$$is_proc",!0),e.prop(X.$$prototype,"$$is_lambda",!1),s(X,"$new",function ge(){var se=ge.$$p||he;return ge.$$p=null,n(se)||i.$raise(be("ArgumentError"),"tried to create a Proc object without a block"),se}),c(X,"$call",function ge(se){var me=ge.$$p||he,Z,xe,fe=this;ge.$$p=null,Z=t(arguments),xe=Z,me!==he&&(fe.$$p=me);var Ae,J=fe.$$brk,Ee=fe.$$ret;if(J||Ee&&fe.$$is_lambda)try{fe.$$is_lambda?Ae=fe.apply(null,xe):Ae=e.yieldX(fe,xe)}catch(ce){if(ce===J)return ce.$v;if(fe.$$is_lambda&&ce===Ee)return ce.$v;throw ce}else fe.$$is_lambda?Ae=fe.apply(null,xe):Ae=e.yieldX(fe,xe);return Ae},-1),c(X,"$>>",function ge(se){ge.$$p;var me=this;return ge.$$p=null,f(i,"proc",[],function Z(xe){var fe=Z.$$p||he,Ae,J,Ee=Z.$$s==null?this:Z.$$s,ce=he;return Z.$$p=null,Ae=t(arguments),J=Ae,ce=f(Ee,"call",p(J),fe.$to_proc()),se.$call(ce)},{$$arity:-1,$$s:me})}),c(X,"$<<",function ge(se){ge.$$p;var me=this;return ge.$$p=null,f(i,"proc",[],function Z(xe){var fe=Z.$$p||he,Ae,J,Ee=Z.$$s==null?this:Z.$$s,ce=he;return Z.$$p=null,Ae=t(arguments),J=Ae,ce=f(se,"call",p(J),fe.$to_proc()),Ee.$call(ce)},{$$arity:-1,$$s:me})}),c(X,"$to_proc",h),c(X,"$lambda?",function(){var se=this;return!!se.$$is_lambda}),c(X,"$arity",function(){var se=this;return se.$$is_curried?-1:se.$$arity!=null?se.$$arity:se.length}),c(X,"$source_location",function(){var se=this,me=he;return se.$$is_curried?he:n(me=se.$$source_location)?me:he}),c(X,"$binding",function(){var se=this;return se.$$is_curried&&i.$raise(be("ArgumentError"),"Can't create Binding"),n(be("::","Binding","skip_raise")?"constant":he)?be("Binding").$new(he,[],se.$$s,se.$source_location()):he}),c(X,"$parameters",function(se){var me,Z=this;if(se=z(se),me=se.$$smap.lambda,Z.$$is_curried)return[["rest"]];if(Z.$$parameters){if(me??Z.$$is_lambda)return Z.$$parameters;var xe=[],fe,Ae;for(fe=0,Ae=Z.$$parameters.length;fe<Ae;fe++){var J=Z.$$parameters[fe];J[0]==="req"&&(J=["opt",J[1]]),xe.push(J)}return xe}else return[]},-1),c(X,"$curry",function(se){var me=this;se===void 0?se=me.length:(se=D["$coerce_to!"](se,be("Integer"),"to_int"),me.$$is_lambda&&se!==me.length&&i.$raise(be("ArgumentError"),"wrong number of arguments ("+se+" for "+me.length+")"));function Z(){var xe=t(arguments),fe=xe.length,Ae;return fe>se&&me.$$is_lambda&&!me.$$is_curried&&i.$raise(be("ArgumentError"),"wrong number of arguments ("+fe+" for "+se+")"),fe>=se?me.$call.apply(me,xe):(Ae=function(){return Z.apply(null,xe.concat(t(arguments)))},Ae.$$is_lambda=me.$$is_lambda,Ae.$$is_curried=!0,Ae)}return Z.$$is_lambda=me.$$is_lambda,Z.$$is_curried=!0,Z},-1),c(X,"$dup",function(){var se=this,me=se.$$original_proc||se,Z=function(){return me.apply(this,arguments)};for(var xe in se)se.hasOwnProperty(xe)&&(Z[xe]=se[xe]);return Z}),j(X,"===","call"),j(X,"clone","dup"),j(X,"yield","call"),j(X,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,c=e.Kernel,f=e.send,p=e.to_a,h=e.nil,z=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(D,j){var he=t(D,j,"Method"),be=he.$$prototype;return be.method=be.receiver=be.owner=be.name=h,he.$attr_reader("owner","receiver","name"),r(he,"$initialize",function(Y,X,ge,se){var me=this;return me.receiver=Y,me.owner=X,me.name=se,me.method=ge}),r(he,"$arity",function(){var Y=this;return Y.method.$arity()}),r(he,"$parameters",function(){var Y=this;return Y.method.$$parameters}),r(he,"$source_location",function(){var Y=this,X=h;return n(X=Y.method.$$source_location)?X:["(eval)",0]}),r(he,"$comments",function(){var Y=this,X=h;return n(X=Y.method.$$comments)?X:[]}),r(he,"$call",function ee(Y){var X=ee.$$p||h,ge,se,me=this;return ee.$$p=null,ge=i(arguments),se=ge,me.method.$$p=X,me.method.apply(me.receiver,se)},-1),r(he,"$curry",function(Y){var X=this;return X.method.$curry(Y)},-1),r(he,"$>>",function(Y){var X=this;return X.method["$>>"](Y)}),r(he,"$<<",function(Y){var X=this;return X.method["$<<"](Y)}),r(he,"$unbind",function(){var Y=this;return z("UnboundMethod").$new(Y.receiver.$class(),Y.owner,Y.method,Y.name)}),r(he,"$to_proc",function(){var Y=this,X=Y.$call.bind(Y);return X.$$unbound=Y.method,X.$$is_lambda=!0,X.$$arity=Y.method.$$arity==null?Y.method.length:Y.method.$$arity,X.$$parameters=Y.method.$$parameters,X}),r(he,"$inspect",function(){var Y=this;return"#<"+Y.$class()+": "+Y.receiver.$class()+"#"+Y.name+" (defined in "+Y.owner+" in "+Y.$source_location().$join(":")+")>"}),s(he,"[]","call"),s(he,"===","call")}("::",null),function(D,j){var he=t(D,j,"UnboundMethod"),be=he.$$prototype;return be.method=be.owner=be.name=be.source=h,he.$attr_reader("source","owner","name"),r(he,"$initialize",function(Y,X,ge,se){var me=this;return me.source=Y,me.owner=X,me.method=ge,me.name=se}),r(he,"$arity",function(){var Y=this;return Y.method.$arity()}),r(he,"$parameters",function(){var Y=this;return Y.method.$$parameters}),r(he,"$source_location",function(){var Y=this,X=h;return n(X=Y.method.$$source_location)?X:["(eval)",0]}),r(he,"$comments",function(){var Y=this,X=h;return n(X=Y.method.$$comments)?X:[]}),r(he,"$bind",function(Y){var X=this;if(X.owner.$$is_module||e.is_a(Y,X.owner))return z("Method").$new(Y,X.owner,X.method,X.name);c.$raise(z("TypeError"),"can't bind singleton method to a different class (expected "+Y+".kind_of?("+X.owner+" to be true)")}),r(he,"$bind_call",function ee(Y,X){var ge=ee.$$p||h,se,me,Z=this;return ee.$$p=null,se=i(arguments,1),me=se,f(Z.$bind(Y),"call",p(me),ge.$to_proc())},-2),r(he,"$inspect",function(){var Y=this;return"#<"+Y.$class()+": "+Y.source+"#"+Y.name+" (defined in "+Y.owner+" in "+Y.$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["/"]=`
|
|
402
|
-
`,t[","]=s,r("::","ARGV",[]),r("::","ARGF",n.$new()),r("::","ENV",i([],{})),t.VERBOSE=!1,t.DEBUG=!1,t.SAFE=0};Opal.modules["corelib/io"]=function(e){var t=e.klass,r=e.const_set,n=e.not,i=e.truthy,s=e.def,c=e.return_ivar,f=e.return_val,p=e.slice,h=e.Kernel,z=e.gvars,D=e.send,j=e.to_a,he=e.rb_plus,be=e.neqeq,ee=e.range,Y=e.hash2,X=e.eqeq,ge=e.to_ary,se=e.rb_gt,me=e.assign_ivar_val,Z=e.alias,xe,fe=e.nil,Ae=e.$$$;e.add_stubs("attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread_noraise,+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,getbyte,closed_write?,closed_read?,each,eof,new,write_proc=,read_proc="),function(Ee,ce){var w=t(Ee,ce,"IO"),Se=w.$$prototype;return Se.read_buffer=Se.closed=fe,r(w,"SEEK_SET",0),r(w,"SEEK_CUR",1),r(w,"SEEK_END",2),r(w,"SEEK_DATA",3),r(w,"SEEK_HOLE",4),r(w,"READABLE",1),r(w,"WRITABLE",4),w.$attr_reader("eof"),w.$attr_accessor("read_proc","sync","tty","write_proc"),s(w,"$initialize",function(ne,B){var Fe=this;return B==null&&(B="r"),Fe.fd=ne,Fe.flags=B,Fe.eof=!1,i(B["$include?"]("r"))&&n(B["$match?"](/[wa+]/))?Fe.closed="write":i(B["$match?"](/[wa]/))&&n(B["$match?"](/[r+]/))?Fe.closed="read":fe},-2),s(w,"$fileno",c("fd")),s(w,"$tty?",function(){var ne=this;return ne.tty==!0}),s(w,"$write",function(ne){var B=this;return B.write_proc(ne),ne.$size()}),s(w,"$flush",f(fe)),s(w,"$<<",function(ne){var B=this;return B.$write(ne),B}),s(w,"$print",function(ne){var B,Fe,ue=this;z[","]==null&&(z[","]=fe),B=p(arguments),Fe=B;for(var U=0,v=Fe.length;U<v;U++)Fe[U]=h.$String(Fe[U]);return ue.$write(Fe.join(z[","])),fe},-1),s(w,"$puts",function(ne){var B,Fe,ue=this;B=p(arguments),Fe=B;var U;if(Fe.length===0)return ue.$write(`
|
|
403
|
-
`),fe;for(var v=0,$=Fe.length;v<$;v++)if(Fe[v].$$is_array){var l=Fe[v].$flatten();l.length>0&&D(ue,"puts",j(l))}else Fe[v].$$is_string?U=Fe[v].valueOf():U=h.$String(Fe[v]),U.endsWith(`
|
|
404
|
-
`)||(U+=`
|
|
405
|
-
`),ue.$write(U);return fe},-1),s(w,"$getc",function(){var ne=this,B=fe,Fe=fe,ue=fe;ne.read_buffer=i(B=ne.read_buffer)?B:"",Fe="";do if(ne.read_buffer=he(ne.read_buffer,Fe),be(ne.read_buffer,""))return ue=ne.read_buffer["$[]"](0),ne.read_buffer=ne.read_buffer["$[]"](ee(1,-1,!1)),ue;while(i(Fe=ne.$sysread_noraise(1)));return fe}),s(w,"$getbyte",function(){var ne,B=this;return ne=B.$getc(),ne===fe||ne==null?fe:ne.$ord()}),s(w,"$readbyte",function(){var ne=this;return ne.$readchar().$ord()}),s(w,"$readchar",function(){var ne=this,B=fe;return i(B=ne.$getc())?B:h.$raise(Ae("EOFError"),"end of file reached")}),s(w,"$readline",function(ne){var B,Fe,ue=this,U=fe;return B=p(arguments),Fe=B,i(U=D(ue,"gets",j(Fe)))?U:h.$raise(Ae("EOFError"),"end of file reached")},-1),s(w,"$gets",function(ne,B,Fe){var ue,U,v=this,$=fe,l=fe,u=fe,d=fe,_=fe,S=fe;z["/"]==null&&(z["/"]=fe),ne==null&&(ne=!1),B==null&&(B=fe),Fe==null&&(Fe=Y([],{})),i(ne.$$is_number)&&n(B)&&(ue=[!1,ne,B],ne=ue[0],B=ue[1],Fe=ue[2]),i(ne.$$is_hash)&&n(B)&&X(Fe,Y([],{}))?(ue=[!1,fe,ne],ne=ue[0],B=ue[1],Fe=ue[2]):i(B.$$is_hash)&&X(Fe,Y([],{}))&&(ue=[ne,fe,B],ne=ue[0],B=ue[1],Fe=ue[2]),$=ne,X(ne,!1)&&(ne=z["/"]),X(ne,"")&&(ne=/\r?\n\r?\n/),ne=i(l=ne)?l:"",X($,"")||(ne=ne.$to_str()),u=X($,"")?2:ne.$length(),X(ne," ")&&(ne=/ /),v.read_buffer=i(l=v.read_buffer)?l:"",d="",_=fe;do if(v.read_buffer=he(v.read_buffer,d),be(ne,"")&&i(i(ne.$$is_regexp)?v.read_buffer["$match?"](ne):v.read_buffer["$include?"](ne))){S=v.read_buffer,U=v.read_buffer.$split(ne,2),ue=ge(U),_=ue[0]==null?fe:ue[0],v.read_buffer=ue[1]==null?fe:ue[1],be(_,S)&&(_=he(_,S["$[]"](_.$length(),u)));break}while(i(d=v.$sysread_noraise(X(ne,"")?65536:1)));return i(_)||(ue=[i(l=v.read_buffer)?l:"",""],_=ue[0],v.read_buffer=ue[1],X(_,"")&&(_=fe)),i(_)&&(i(B)&&(_=_["$[]"](e.Range.$new(0,B,!0)),v.read_buffer=he(_["$[]"](e.Range.$new(B,-1,!1)),v.read_buffer)),i(Fe["$[]"]("chomp"))&&(_=_.$sub(/\r?\n$/,"")),X($,"")&&(_=_.$sub(/^[\r\n]+/,""))),X($,!1)&&(z._=_),_},-1),s(w,"$sysread",function(ne){var B=this,Fe=fe;return i(Fe=B.read_proc(ne))?Fe:(B.eof=!0,h.$raise(Ae("EOFError"),"end of file reached"))}),s(w,"$sysread_noraise",function(ne){var B=this;try{return B.$sysread(ne)}catch(Fe){if(e.rescue(Fe,[Ae("EOFError")]))try{return fe}finally{e.pop_exception()}else throw Fe}}),s(w,"$readpartial",function(ne){var B,Fe=this,ue=fe,U=fe,v=fe;return Fe.read_buffer=i(ue=Fe.read_buffer)?ue:"",U=Fe.$sysread(ne),B=[he(Fe.read_buffer,i(ue=U)?ue:""),""],v=B[0],Fe.read_buffer=B[1],X(v,"")&&(v=fe),v}),s(w,"$read",function(ne){var B,Fe=this,ue=fe,U=fe,v=fe;ne==null&&(ne=fe),Fe.read_buffer=i(ue=Fe.read_buffer)?ue:"",U="",v=fe;do if(Fe.read_buffer=he(Fe.read_buffer,U),i(ne)&&i(se(Fe.read_buffer.$length(),ne)))return B=[Fe.read_buffer["$[]"](e.Range.$new(0,ne,!0)),Fe.read_buffer["$[]"](e.Range.$new(ne,-1,!1))],v=B[0],Fe.read_buffer=B[1],v;while(i(U=Fe.$sysread_noraise(i(ue=ne)?ue:65536)));return B=[Fe.read_buffer,""],v=B[0],Fe.read_buffer=B[1],v},-1),s(w,"$readlines",function(ne){var B=this;return z["/"]==null&&(z["/"]=fe),ne==null&&(ne=z["/"]),B.$each_line(ne).$to_a()},-1),s(w,"$each",function I(ne,B){var Fe=I.$$p||fe,ue,U,v,$=this,l=fe;if(z["/"]==null&&(z["/"]=fe),I.$$p=null,ue=p(arguments),ue.length>0&&(U=ue.shift()),U==null&&(U=z["/"]),v=ue,Fe===fe)return D($,"enum_for",["each",U].concat(j(v)));for(;i(l=D($,"gets",[U].concat(j(v))));)e.yield1(Fe,l);return $},-1),s(w,"$each_byte",function I(){var ne=I.$$p||fe,B=this,Fe=fe;if(I.$$p=null,ne===fe)return B.$enum_for("each_byte");for(;i(Fe=B.$getbyte());)e.yield1(ne,Fe);return B}),s(w,"$each_char",function I(){var ne=I.$$p||fe,B=this,Fe=fe;if(I.$$p=null,ne===fe)return B.$enum_for("each_char");for(;i(Fe=B.$getc());)e.yield1(ne,Fe);return B}),s(w,"$close",me("closed","both")),s(w,"$close_read",function(){var ne=this;return X(ne.closed,"write")?ne.closed="both":ne.closed="read"}),s(w,"$close_write",function(){var ne=this;return X(ne.closed,"read")?ne.closed="both":ne.closed="write"}),s(w,"$closed?",function(){var ne=this;return ne.closed["$=="]("both")}),s(w,"$closed_read?",function(){var ne=this,B=fe;return i(B=ne.closed["$=="]("read"))?B:ne.closed["$=="]("both")}),s(w,"$closed_write?",function(){var ne=this,B=fe;return i(B=ne.closed["$=="]("write"))?B:ne.closed["$=="]("both")}),s(w,"$check_writable",function(){var ne=this;return i(ne["$closed_write?"]())?h.$raise(Ae("IOError"),"not opened for writing"):fe}),s(w,"$check_readable",function(){var ne=this;return i(ne["$closed_read?"]())?h.$raise(Ae("IOError"),"not opened for reading"):fe}),Z(w,"each_line","each"),Z(w,"eof?","eof")}("::",null),r("::","STDIN",z.stdin=Ae("IO").$new(0,"r")),r("::","STDOUT",z.stdout=Ae("IO").$new(1,"w")),r("::","STDERR",z.stderr=Ae("IO").$new(2,"w"));var J=e.global.console;return Ae("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ee){process.stdout.write(Ee)}:function(Ee){J.log(Ee)}),Ae("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ee){process.stderr.write(Ee)}:function(Ee){J.warn(Ee)}),xe=[function(Ee){var ce=prompt();return ce!==null?ce+`
|
|
406
|
-
`:fe}],D(Ae("STDIN"),"read_proc=",xe),xe[xe.length-1]};Opal.modules["opal/regexp_anchors"]=function(e){var t=e.module,r=e.const_set,n=[];e.nil;var i=e.$$$;return e.add_stubs("new"),function(s,c){var f=t(s,"Opal"),p=[f].concat(c),h=e.$r(p);return r(f,"REGEXP_START","^"),r(f,"REGEXP_END","$"),r(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"INLINE_IDENTIFIER_REGEXP",h("Regexp").$new("[^"+i(f,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+i(f,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),r(f,"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r(f,"CONST_NAME_REGEXP",h("Regexp").$new(""+i(f,"REGEXP_START")+"(::)?[A-Z][^"+i(f,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+i(f,"REGEXP_END")))}(n[0],n)};Opal.modules["opal/mini"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("opal/base"),t.$require("corelib/nil"),t.$require("corelib/boolean"),t.$require("corelib/string"),t.$require("corelib/comparable"),t.$require("corelib/enumerable"),t.$require("corelib/enumerator"),t.$require("corelib/array"),t.$require("corelib/hash"),t.$require("corelib/number"),t.$require("corelib/range"),t.$require("corelib/proc"),t.$require("corelib/method"),t.$require("corelib/regexp"),t.$require("corelib/variables"),t.$require("corelib/io"),t.$require("opal/regexp_anchors")};Opal.modules["corelib/kernel/format"]=function(e){var t=e.coerce_to,r=e.module,n=e.slice,i=e.truthy,s=e.eqeq,c=e.Opal,f=e.Kernel,p=e.gvars,h=e.def,z=e.alias,D=e.nil,j=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(he){var be=r(he,"Kernel");return h(be,"$format",function(Y,X){var ge,se,me=D;p.DEBUG==null&&(p.DEBUG=D),ge=n(arguments,1),se=ge,s(se.$length(),1)&&i(se["$[]"](0)["$respond_to?"]("to_ary"))&&(me=c["$coerce_to?"](se["$[]"](0),j("Array"),"to_ary"),i(me["$nil?"]())||(se=me.$to_a()));var Z="",xe=0,fe,Ae,J=Y.length,Ee,ce,w,Se,I,ne,B,Fe,ue,U,v,$,l,u=1,d=0,_,S=0,T=1,te=2,Ie=4,Je=8,ut=16,_t=32,wt=64,bt=128;function At(){_&_t&&f.$raise(j("ArgumentError"),"flag after width"),_&bt&&f.$raise(j("ArgumentError"),"flag after precision")}function St(){_&_t&&f.$raise(j("ArgumentError"),"width given twice"),_&bt&&f.$raise(j("ArgumentError"),"width after precision")}function Mt(x){return x>=se.length&&f.$raise(j("ArgumentError"),"too few arguments"),se[x]}function Ct(){switch(d){case-1:f.$raise(j("ArgumentError"),"unnumbered("+u+") mixed with numbered");case-2:f.$raise(j("ArgumentError"),"unnumbered("+u+") mixed with named")}return d=u++,Mt(d-1)}function nt(x){return d>0&&f.$raise(j("ArgumentError"),"numbered("+x+") after unnumbered("+d+")"),d===-2&&f.$raise(j("ArgumentError"),"numbered("+x+") after named"),x<1&&f.$raise(j("ArgumentError"),"invalid index - "+x+"$"),d=-1,Mt(x-1)}function Ne(){return l===void 0?Ct():l}function je(x){for(var N,ve="";;Ae++){if(Ae===J&&f.$raise(j("ArgumentError"),"malformed format string - %*[0-9]"),Y.charCodeAt(Ae)<48||Y.charCodeAt(Ae)>57)return Ae--,N=parseInt(ve,10)||0,N>2147483647&&f.$raise(j("ArgumentError"),""+x+" too big"),N;ve+=Y.charAt(Ae)}}function Ke(x){var N,ve=je(x);return Y.charAt(Ae+1)==="$"?(Ae++,N=nt(ve)):N=Ct(),N.$to_int()}for(Ae=Y.indexOf("%");Ae!==-1;Ae=Y.indexOf("%",Ae)){switch(ce=void 0,_=S,Se=-1,I=-1,l=void 0,fe=Ae,Ae++,Y.charAt(Ae)){case"%":xe=Ae;case"":case`
|
|
407
|
-
`:case"\0":Ae++;continue}e:for(;Ae<J;Ae++)switch(Y.charAt(Ae)){case" ":At(),_|=ut;continue e;case"#":At(),_|=T;continue e;case"+":At(),_|=Ie;continue e;case"-":At(),_|=te;continue e;case"0":At(),_|=Je;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(ne=je("width"),Y.charAt(Ae+1)==="$"){if(Ae+2===J){ce="%",Ae++;break e}l!==void 0&&f.$raise(j("ArgumentError"),"value given twice - %"+ne+"$"),l=nt(ne),Ae++}else St(),_|=_t,Se=ne;continue e;case"<":case"{":for(Fe=Y.charAt(Ae)==="<"?">":"}",B="",Ae++;;Ae++){if(Ae===J&&f.$raise(j("ArgumentError"),"malformed name - unmatched parenthesis"),Y.charAt(Ae)===Fe){if(d>0&&f.$raise(j("ArgumentError"),"named "+B+" after unnumbered("+d+")"),d===-1&&f.$raise(j("ArgumentError"),"named "+B+" after numbered"),d=-2,(se[0]===void 0||!se[0].$$is_hash)&&f.$raise(j("ArgumentError"),"one hash required"),l=se[0].$fetch(B),Fe===">")continue e;if(ce=l.toString(),I!==-1&&(ce=ce.slice(0,I)),_&te)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e}B+=Y.charAt(Ae)}case"*":Ae++,St(),_|=_t,Se=Ke("width"),Se<0&&(_|=te,Se=-Se);continue e;case".":if(_&bt&&f.$raise(j("ArgumentError"),"precision given twice"),_|=wt|bt,I=0,Ae++,Y.charAt(Ae)==="*"){Ae++,I=Ke("precision"),I<0&&(_&=~wt);continue e}I=je("precision");continue e;case"d":case"i":case"u":if(Ee=f.$Integer(Ne()),Ee>=0){for(ce=Ee.toString();ce.length<I;)ce="0"+ce;if(_&te)for((_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce);ce.length<Se;)ce=ce+" ";else if(_&Je&&I===-1){for(;ce.length<Se-(_&Ie||_&ut?1:0);)ce="0"+ce;(_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce)}else for((_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else{for(ce=(-Ee).toString();ce.length<I;)ce="0"+ce;if(_&te)for(ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&Je&&I===-1){for(;ce.length<Se-1;)ce="0"+ce;ce="-"+ce}else for(ce="-"+ce;ce.length<Se;)ce=" "+ce}break e;case"b":case"B":case"o":case"x":case"X":switch(Y.charAt(Ae)){case"b":case"B":ue=2,U="0b",v=/^1+/,$="1";break;case"o":ue=8,U="0",v=/^3?7+/,$="7";break;case"x":case"X":ue=16,U="0x",v=/^f+/,$="f";break}if(Ee=f.$Integer(Ne()),Ee>=0){for(ce=Ee.toString(ue);ce.length<I;)ce="0"+ce;if(_&te)for((_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce),_&T&&Ee!==0&&(ce=U+ce);ce.length<Se;)ce=ce+" ";else if(_&Je&&I===-1){for(;ce.length<Se-(_&Ie||_&ut?1:0)-(_&T&&Ee!==0?U.length:0);)ce="0"+ce;_&T&&Ee!==0&&(ce=U+ce),(_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce)}else for(_&T&&Ee!==0&&(ce=U+ce),(_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else if(_&Ie||_&ut){for(ce=(-Ee).toString(ue);ce.length<I;)ce="0"+ce;if(_&te)for(_&T&&(ce=U+ce),ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&Je&&I===-1){for(;ce.length<Se-1-(_&T?2:0);)ce="0"+ce;_&T&&(ce=U+ce),ce="-"+ce}else for(_&T&&(ce=U+ce),ce="-"+ce;ce.length<Se;)ce=" "+ce}else{for(ce=(Ee>>>0).toString(ue).replace(v,$);ce.length<I-2;)ce=$+ce;if(_&te)for(ce=".."+ce,_&T&&(ce=U+ce);ce.length<Se;)ce=ce+" ";else if(_&Je&&I===-1){for(;ce.length<Se-2-(_&T?U.length:0);)ce=$+ce;ce=".."+ce,_&T&&(ce=U+ce)}else for(ce=".."+ce,_&T&&(ce=U+ce);ce.length<Se;)ce=" "+ce}Y.charAt(Ae)===Y.charAt(Ae).toUpperCase()&&(ce=ce.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ee=f.$Float(Ne()),Ee>=0||isNaN(Ee)){if(Ee===1/0)ce="Inf";else switch(Y.charAt(Ae)){case"f":ce=Ee.toFixed(I===-1?6:I);break;case"e":case"E":ce=Ee.toExponential(I===-1?6:I);break;case"g":case"G":ce=Ee.toExponential(),w=parseInt(ce.split("e")[1],10),w<-4||w>=(I===-1?6:I)||(ce=Ee.toPrecision(I===-1?_&T?6:void 0:I));break}if(_&te)for((_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce);ce.length<Se;)ce=ce+" ";else if(_&Je&&Ee!==1/0&&!isNaN(Ee)){for(;ce.length<Se-(_&Ie||_&ut?1:0);)ce="0"+ce;(_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce)}else for((_&Ie||_&ut)&&(ce=(_&Ie?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else{if(Ee===-1/0)ce="Inf";else switch(Y.charAt(Ae)){case"f":ce=(-Ee).toFixed(I===-1?6:I);break;case"e":case"E":ce=(-Ee).toExponential(I===-1?6:I);break;case"g":case"G":ce=(-Ee).toExponential(),w=parseInt(ce.split("e")[1],10),w<-4||w>=(I===-1?6:I)||(ce=(-Ee).toPrecision(I===-1?_&T?6:void 0:I));break}if(_&te)for(ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&Je&&Ee!==-1/0){for(;ce.length<Se-1;)ce="0"+ce;ce="-"+ce}else for(ce="-"+ce;ce.length<Se;)ce=" "+ce}Y.charAt(Ae)===Y.charAt(Ae).toUpperCase()&&Ee!==1/0&&Ee!==-1/0&&!isNaN(Ee)&&(ce=ce.toUpperCase()),ce=ce.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":f.$raise(j("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ee=Ne(),Ee["$respond_to?"]("to_ary")&&(Ee=Ee.$to_ary()[0]),Ee["$respond_to?"]("to_str")?ce=Ee.$to_str():ce=String.fromCharCode(t(Ee,j("Integer"),"to_int")),ce.length!==1&&f.$raise(j("ArgumentError"),"%c requires a character"),_&te)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;case"p":if(ce=Ne().$inspect(),I!==-1&&(ce=ce.slice(0,I)),_&te)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;case"s":if(ce=Ne().$to_s(),I!==-1&&(ce=ce.slice(0,I)),_&te)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;default:f.$raise(j("ArgumentError"),"malformed format string - %"+Y.charAt(Ae))}ce===void 0&&f.$raise(j("ArgumentError"),"malformed format string - %"),Z+=Y.slice(xe,fe)+ce,xe=Ae+1}return p.DEBUG&&d>=0&&u<se.length&&f.$raise(j("ArgumentError"),"too many arguments for format string"),Z+Y.slice(xe)},-2),z(be,"sprintf","format")}("::")};Opal.modules["corelib/string/encoding"]=function(e){var t=e.klass,r=e.hash2,n=e.rb_plus,i=e.truthy,s=e.send,c=e.defs,f=e.eqeq,p=e.def,h=e.return_ivar,z=e.return_val,D=e.slice,j=e.Kernel,he=e.Opal,be=e.rb_lt,ee,Y=e.top,X=[],ge=e.$r(X),se=e.nil,me=e.$$$;return e.add_stubs("require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,default_external,attr_accessor,singleton_class,attr_reader,raise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_codepoint,coerce_to!,find,<,default_external="),Y.$require("corelib/string"),function(Z,xe){var fe=t(Z,xe,"Encoding"),Ae=fe.$$prototype;return Ae.name=Ae.dummy=se,c(fe,"$register",function J(Ee,ce){var w=J.$$p||se,Se=this,I=se,ne=se,B=se,Fe=se,ue=se,U=se;return J.$$p=null,ce==null&&(ce=r([],{})),I=n([Ee],i(ne=ce["$[]"]("aliases"))?ne:[]),B=i(ne=ce["$[]"]("ascii"))&&ne,Fe=i(ne=ce["$[]"]("dummy"))&&ne,i(ce["$[]"]("inherits"))?(ue=ce["$[]"]("inherits").$clone(),ue.$initialize(Ee,I,B,Fe)):ue=Se.$new(Ee,I,B,Fe),w!==se&&s(ue,"instance_eval",[],w.$to_proc()),U=e.encodings,s(I,"each",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&($=se),l.$const_set($.$tr("-","_"),ue),U[$]=ue},{$$s:Se})},-2),c(fe,"$find",function(Ee){var ce=this;return f(Ee,"default_external")?ce.$default_external():e.find_encoding(Ee)}),fe.$singleton_class().$attr_accessor("default_external"),fe.$attr_reader("name","names"),p(fe,"$initialize",function(Ee,ce,w,Se){var I=this;return I.name=Ee,I.names=ce,I.ascii=w,I.dummy=Se}),p(fe,"$ascii_compatible?",h("ascii")),p(fe,"$dummy?",h("dummy")),p(fe,"$binary?",z(!1)),p(fe,"$to_s",h("name")),p(fe,"$inspect",function(){var Ee=this;return"#<Encoding:"+Ee.name+(i(Ee.dummy)?" (dummy)":se)+">"}),p(fe,"$charsize",function(Ee){for(var ce=0,w=0,Se=Ee.length;w<Se;w++){var I=Ee.charCodeAt(w);I>=55296&&I<=56319||ce++}return ce}),p(fe,"$each_char",function J(Ee){var ce=J.$$p||se;J.$$p=null;for(var w="",Se=0,I=Ee.length;Se<I;Se++){var ne=Ee.charCodeAt(Se),B=Ee.charAt(Se);if(ne>=56320&&ne<=57343){w=B;continue}else ne>=55296&&ne<=56319&&(B=w+B);Ee.encoding.name!="UTF-8"&&(B=new String(B),B.encoding=Ee.encoding),e.yield1(ce,B)}}),p(fe,"$each_byte",function(Ee){return D(arguments),j.$raise(me("NotImplementedError"))},-1),p(fe,"$bytesize",function(Ee){return D(arguments),j.$raise(me("NotImplementedError"))},-1),t("::",me("StandardError"),"EncodingError"),t("::",me("EncodingError"),"CompatibilityError"),se}("::",null),s(me("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=1/0,ce,w=Ae.length,Se=null,I=0;I<w;++I){if(ce=Ae.charCodeAt(I),ce>55295&&ce<57344){if(!Se){if(ce>56319){(Ee-=3)>-1&&(e.yield1(J,239),e.yield1(J,191),e.yield1(J,189));continue}else if(I+1===w){(Ee-=3)>-1&&(e.yield1(J,239),e.yield1(J,191),e.yield1(J,189));continue}Se=ce;continue}if(ce<56320){(Ee-=3)>-1&&(e.yield1(J,239),e.yield1(J,191),e.yield1(J,189)),Se=ce;continue}ce=(Se-55296<<10|ce-56320)+65536}else Se&&(Ee-=3)>-1&&(e.yield1(J,239),e.yield1(J,191),e.yield1(J,189));if(Se=null,ce<128){if((Ee-=1)<0)break;e.yield1(J,ce)}else if(ce<2048){if((Ee-=2)<0)break;e.yield1(J,ce>>6|192),e.yield1(J,ce&63|128)}else if(ce<65536){if((Ee-=3)<0)break;e.yield1(J,ce>>12|224),e.yield1(J,ce>>6&63|128),e.yield1(J,ce&63|128)}else if(ce<1114112){if((Ee-=4)<0)break;e.yield1(J,ce>>18|240),e.yield1(J,ce>>12&63|128),e.yield1(J,ce>>6&63|128),e.yield1(J,ce&63|128)}}}),p(xe,"$bytesize",function(Ae){return Ae.$bytes().$length()})},{$$s:Y}),s(me("Encoding"),"register",["UTF-16LE"],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(J,w&255),e.yield1(J,w>>8)}}),p(xe,"$bytesize",function(Ae){return Ae.length*2})},{$$s:Y}),s(me("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_16LE")})],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(J,w>>8),e.yield1(J,w&255)}})},{$$s:Y}),s(me("Encoding"),"register",["UTF-32LE"],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(J,w&255),e.yield1(J,w>>8),e.yield1(J,0),e.yield1(J,0)}}),p(xe,"$bytesize",function(Ae){return Ae.length*4})},{$$s:Y}),s(me("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_32LE")})],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(J,0),e.yield1(J,0),e.yield1(J,w>>8),e.yield1(J,w&255)}})},{$$s:Y}),s(me("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function Z(){var xe=Z.$$s==null?this:Z.$$s;return p(xe,"$each_char",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=new String(Ae.charAt(Ee));w.encoding=Ae.encoding,e.yield1(J,w)}}),p(xe,"$charsize",function(Ae){return Ae.length}),p(xe,"$each_byte",function fe(Ae){var J=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(J,w&255)}}),p(xe,"$bytesize",function(Ae){return Ae.length}),p(xe,"$binary?",z(!0))},{$$s:Y}),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(Z,xe){var fe=t(Z,xe,"String"),Ae=fe.$$prototype;return Ae.internal_encoding=Ae.bytes=Ae.encoding=se,fe.$attr_reader("encoding"),fe.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",se),e.prop(String.prototype,"encoding",me(me("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",me(me("Encoding"),"UTF_8")),p(fe,"$b",function(){var Ee=this;return Ee.$dup().$force_encoding("binary")}),p(fe,"$bytesize",function(){var Ee=this;return Ee.internal_encoding.$bytesize(Ee)}),p(fe,"$each_byte",function J(){var Ee=J.$$p||se,ce=this;return J.$$p=null,Ee===se?s(ce,"enum_for",["each_byte"],function w(){var Se=w.$$s==null?this:w.$$s;return Se.$bytesize()},{$$s:ce}):(s(ce.internal_encoding,"each_byte",[ce],Ee.$to_proc()),ce)}),p(fe,"$bytes",function(){var Ee=this,ce=se;return typeof Ee=="string"?new String(Ee).$each_byte().$to_a():(Ee.bytes=i(ce=Ee.bytes)?ce:Ee.$each_byte().$to_a(),Ee.bytes.$dup())}),p(fe,"$each_char",function J(){var Ee=J.$$p||se,ce=this;return J.$$p=null,Ee===se?s(ce,"enum_for",["each_char"],function w(){var Se=w.$$s==null?this:w.$$s;return Se.$length()},{$$s:ce}):(s(ce.encoding,"each_char",[ce],Ee.$to_proc()),ce)}),p(fe,"$chars",function J(){var Ee=J.$$p||se,ce=this;return J.$$p=null,i(Ee)?s(ce,"each_char",[],Ee.$to_proc()):ce.$each_char().$to_a()}),p(fe,"$each_codepoint",function J(){var Ee=J.$$p||se,ce=this;if(J.$$p=null,Ee===se)return ce.$enum_for("each_codepoint");for(var w=0,Se=ce.length;w<Se;w++)e.yield1(Ee,ce.codePointAt(w));return ce}),p(fe,"$codepoints",function J(){var Ee=J.$$p||se,ce=this;return J.$$p=null,Ee!==se?s(ce,"each_codepoint",[],Ee.$to_proc()):ce.$each_codepoint().$to_a()}),p(fe,"$encode",function(Ee){var ce=this;return e.enc(ce,Ee)}),p(fe,"$force_encoding",function(Ee){var ce=this,w=ce;return Ee===w.encoding||(Ee=he["$coerce_to!"](Ee,me("String"),"to_s"),Ee=me("Encoding").$find(Ee),Ee===w.encoding)||(w=e.set_encoding(w,Ee)),w}),p(fe,"$getbyte",function(Ee){var ce=this,w=se;return w=ce.$bytes(),Ee=he["$coerce_to!"](Ee,me("Integer"),"to_int"),i(be(w.$length(),Ee))?se:w["$[]"](Ee)}),p(fe,"$initialize_copy",function(Ee){return`
|
|
408
|
-
self.encoding = other.encoding;
|
|
409
|
-
self.internal_encoding = other.internal_encoding;
|
|
410
|
-
`}),p(fe,"$valid_encoding?",z(!0))}("::",null),ee=[me(ge("Encoding"),"UTF_8")],s(me("Encoding"),"default_external=",ee),ee[ee.length-1]};Opal.modules["corelib/math"]=function(e){var t=e.type_error,r=e.module,n=e.const_set,i=e.Class,s=e.slice,c=e.Kernel,f=e.defs,p=e.truthy,h=e.send,z=e.def,D=e.rb_minus,j=e.eqeqeq,he=e.rb_divide,be=[],ee=e.nil,Y=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(X,ge){var se=r(X,"Math"),me=[se].concat(ge),Z=e.$r(me);return n(se,"E",Math.E),n(se,"PI",Math.PI),n(se,"DomainError",i.$new(Y("StandardError"))),f(se,"$checked",function(fe,Ae){var J,Ee;if(J=s(arguments,1),Ee=J,isNaN(Ee[0])||Ee.length==2&&isNaN(Ee[1]))return NaN;var ce=Math[fe].apply(null,Ee);return isNaN(ce)&&c.$raise(Z("DomainError"),'Numerical argument is out of domain - "'+fe+'"'),ce},-2),f(se,"$float!",function(fe){try{return c.$Float(fe)}catch(Ae){if(e.rescue(Ae,[Y("ArgumentError")]))try{return c.$raise(t(fe,Y("Float")))}finally{e.pop_exception()}else throw Ae}}),f(se,"$integer!",function(fe){try{return c.$Integer(fe)}catch(Ae){if(e.rescue(Ae,[Y("ArgumentError")]))try{return c.$raise(t(fe,Y("Integer")))}finally{e.pop_exception()}else throw Ae}}),se.$module_function(),p(typeof Math.erf<"u")||e.prop(Math,"erf",function(xe){var fe=.254829592,Ae=-.284496736,J=1.421413741,Ee=-1.453152027,ce=1.061405429,w=.3275911,Se=1;xe<0&&(Se=-1),xe=Math.abs(xe);var I=1/(1+w*xe),ne=1-((((ce*I+Ee)*I+J)*I+Ae)*I+fe)*I*Math.exp(-xe*xe);return Se*ne}),p(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(xe){var fe=Math.abs(xe),Ae=1/(.5*fe+1),J=Ae*.17087277+-.82215223,Ee=Ae*J+1.48851587,ce=Ae*Ee+-1.13520398,w=Ae*ce+.27886807,Se=Ae*w+-.18628806,I=Ae*Se+.09678418,ne=Ae*I+.37409196,B=Ae*ne+1.00002368,Fe=Ae*B,ue=-fe*fe-1.26551223+Fe,U=Ae*Math.exp(ue);return xe<0?2-U:U}),h(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function xe(fe){var Ae=xe.$$s==null?this:xe.$$s;return fe==null&&(fe=ee),h(Ae,"define_method",[fe],function(Ee){return Ee==null&&(Ee=ee),Y("Math").$checked(fe,Y("Math")["$float!"](Ee))})},{$$s:se}),z(se,"$atan2",function(fe,Ae){return Y("Math").$checked("atan2",Y("Math")["$float!"](fe),Y("Math")["$float!"](Ae))}),z(se,"$hypot",function(fe,Ae){return Y("Math").$checked("hypot",Y("Math")["$float!"](fe),Y("Math")["$float!"](Ae))}),z(se,"$frexp",function(fe){if(fe=Z("Math")["$float!"](fe),isNaN(fe))return[NaN,0];var Ae=Math.floor(Math.log(Math.abs(fe))/Math.log(2))+1,J=fe/Math.pow(2,Ae);return[J,Ae]}),z(se,"$gamma",function(fe){fe=Z("Math")["$float!"](fe);var Ae,J,Ee,ce,w,Se,I,ne,B,Fe=4.7421875,ue=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];if(isNaN(fe))return NaN;if(fe===0&&1/fe<0)return-1/0;if((fe===-1||fe===-1/0)&&c.$raise(Z("DomainError"),'Numerical argument is out of domain - "gamma"'),Z("Integer")["$==="](fe)){if(fe<=0)return isFinite(fe)?1/0:NaN;if(fe>171)return 1/0;for(ce=fe-2,w=fe-1;ce>1;)w*=ce,ce--;return w==0&&(w=1),w}if(fe<.5)return Math.PI/(Math.sin(Math.PI*fe)*Y("Math").$gamma(D(1,fe)));if(fe>=171.35)return 1/0;if(fe>85)return Se=fe*fe,I=Se*fe,ne=I*fe,B=ne*fe,Math.sqrt(2*Math.PI/fe)*Math.pow(fe/Math.E,fe)*(1+1/(12*fe)+1/(288*Se)-139/(51840*I)-571/(2488320*ne)+163879/(209018880*B)+5246819/(75246796800*B*fe));for(fe-=1,Ee=ue[0],Ae=1;Ae<ue.length;++Ae)Ee+=ue[Ae]/(fe+Ae);return J=fe+Fe+.5,Math.sqrt(2*Math.PI)*Math.pow(J,fe+.5)*Math.exp(-J)*Ee}),z(se,"$ldexp",function(fe,Ae){return fe=Z("Math")["$float!"](fe),Ae=Z("Math")["$integer!"](Ae),isNaN(Ae)&&c.$raise(Y("RangeError"),"float NaN out of range of integer"),fe*Math.pow(2,Ae)}),z(se,"$lgamma",function(fe){return fe==-1?[1/0,1]:[Math.log(Math.abs(Y("Math").$gamma(fe))),Y("Math").$gamma(fe)<0?-1:1]}),z(se,"$log",function(fe,Ae){return j(Y("String"),fe)&&c.$raise(t(fe,Y("Float"))),p(Ae==null)?Y("Math").$checked("log",Y("Math")["$float!"](fe)):(j(Y("String"),Ae)&&c.$raise(t(Ae,Y("Float"))),he(Y("Math").$checked("log",Y("Math")["$float!"](fe)),Y("Math").$checked("log",Y("Math")["$float!"](Ae))))},-2),z(se,"$log10",function(fe){return j(Y("String"),fe)&&c.$raise(t(fe,Y("Float"))),Y("Math").$checked("log10",Y("Math")["$float!"](fe))}),z(se,"$log2",function(fe){return j(Y("String"),fe)&&c.$raise(t(fe,Y("Float"))),Y("Math").$checked("log2",Y("Math")["$float!"](fe))}),z(se,"$tan",function(fe){return fe=Y("Math")["$float!"](fe),p(fe["$infinite?"]())?Y(Y("Float"),"NAN"):Y("Math").$checked("tan",Y("Math")["$float!"](fe))})}("::",be)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],c=e.nil;return e.add_stubs("new,from_string"),function(f,p){var h=t(f,"Kernel"),z=[h].concat(p),D=e.$r(z);return n(h,"$Complex",function(he,be){return be==null&&(be=c),r(be)?D("Complex").$new(he,be):D("Complex").$new(he,0)},-2)}("::",s),function(f,p,h){var z=i(f,p,"String"),D=[z].concat(h),j=e.$r(D);return n(z,"$to_c",function(){var be=this;return j("Complex").$from_string(be)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,c=e.rb_times,f=e.def,p=e.rb_plus,h=e.rb_minus,z=e.rb_divide,D=e.eqeq,j=e.to_ary,he=e.rb_gt,be=e.neqeq,ee=e.return_val,Y=e.const_set,X=e.alias,ge=e.top,se=[],me=e.nil,Z=e.$$$;return e.add_stubs("require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,-,nan?,/,conj,abs2,quo,polar,exp,log,>,!=,divmod,**,hypot,atan2,lcm,denominator,finite?,infinite?,numerator,abs,arg,rationalize,to_f,to_i,to_r,inspect,zero?,positive?,Rational,rect,angle"),ge.$require("corelib/numeric"),ge.$require("corelib/complex/base"),function(xe,fe,Ae){var J=t(xe,fe,"Complex"),Ee=[J].concat(Ae),ce=e.$r(Ee),w=J.$$prototype;return w.real=w.imag=me,s(J,"$rect",function(I,ne){var B=this;return ne==null&&(ne=0),n(Z("Numeric"),I)&&r(I["$real?"]())&&n(Z("Numeric"),ne)&&r(ne["$real?"]())||i.$raise(Z("TypeError"),"not a real"),B.$new(I,ne)},-2),s(J,"$polar",function(I,ne){var B=this;return ne==null&&(ne=0),n(Z("Numeric"),I)&&r(I["$real?"]())&&n(Z("Numeric"),ne)&&r(ne["$real?"]())||i.$raise(Z("TypeError"),"not a real"),B.$new(c(I,Z("Math").$cos(ne)),c(I,Z("Math").$sin(ne)))},-2),J.$attr_reader("real","imag"),f(J,"$initialize",function(I,ne){var B=this;return ne==null&&(ne=0),B.real=I,B.imag=ne,B.$freeze()},-2),f(J,"$coerce",function(I){var ne=this;return n(Z("Complex"),I)?[I,ne]:n(Z("Numeric"),I)&&r(I["$real?"]())?[Z("Complex").$new(I,0),ne]:i.$raise(Z("TypeError"),""+I.$class()+" can't be coerced into Complex")}),f(J,"$==",function(I){var ne=this,B=me;return n(Z("Complex"),I)?r(B=ne.real["$=="](I.$real()))?ne.imag["$=="](I.$imag()):B:n(Z("Numeric"),I)&&r(I["$real?"]())?r(B=ne.real["$=="](I))?ne.imag["$=="](0):B:I["$=="](ne)}),f(J,"$-@",function(){var I=this;return i.$Complex(I.real["$-@"](),I.imag["$-@"]())}),f(J,"$+",function(I){var ne=this;return n(Z("Complex"),I)?i.$Complex(p(ne.real,I.$real()),p(ne.imag,I.$imag())):n(Z("Numeric"),I)&&r(I["$real?"]())?i.$Complex(p(ne.real,I),ne.imag):ne.$__coerced__("+",I)}),f(J,"$-",function(I){var ne=this;return n(Z("Complex"),I)?i.$Complex(h(ne.real,I.$real()),h(ne.imag,I.$imag())):n(Z("Numeric"),I)&&r(I["$real?"]())?i.$Complex(h(ne.real,I),ne.imag):ne.$__coerced__("-",I)}),f(J,"$*",function(I){var ne=this;return n(Z("Complex"),I)?i.$Complex(h(c(ne.real,I.$real()),c(ne.imag,I.$imag())),p(c(ne.real,I.$imag()),c(ne.imag,I.$real()))):n(Z("Numeric"),I)&&r(I["$real?"]())?i.$Complex(c(ne.real,I),c(ne.imag,I)):ne.$__coerced__("*",I)}),f(J,"$/",function(I){var ne=this;return n(Z("Complex"),I)?n(Z("Number"),ne.real)&&r(ne.real["$nan?"]())||n(Z("Number"),ne.imag)&&r(ne.imag["$nan?"]())||n(Z("Number"),I.$real())&&r(I.$real()["$nan?"]())||n(Z("Number"),I.$imag())&&r(I.$imag()["$nan?"]())?Z("Complex").$new(Z(Z("Float"),"NAN"),Z(Z("Float"),"NAN")):z(c(ne,I.$conj()),I.$abs2()):n(Z("Numeric"),I)&&r(I["$real?"]())?i.$Complex(ne.real.$quo(I),ne.imag.$quo(I)):ne.$__coerced__("/",I)}),f(J,"$**",function(I){var ne,B,Fe=this,ue=me,U=me,v=me,$=me,l=me,u=me,d=me,_=me,S=me,T=me,te=me;if(D(I,0))return Z("Complex").$new(1,0);if(n(Z("Complex"),I))return B=Fe.$polar(),ne=j(B),ue=ne[0]==null?me:ne[0],U=ne[1]==null?me:ne[1],v=I.$real(),$=I.$imag(),l=Z("Math").$exp(h(c(v,Z("Math").$log(ue)),c($,U))),u=p(c(U,v),c($,Z("Math").$log(ue))),Z("Complex").$polar(l,u);if(n(Z("Integer"),I))if(r(he(I,0))){for(d=Fe,_=d,S=h(I,1);be(S,0);){for(B=S.$divmod(2),ne=j(B),T=ne[0]==null?me:ne[0],te=ne[1]==null?me:ne[1];D(te,0);)d=i.$Complex(h(c(d.$real(),d.$real()),c(d.$imag(),d.$imag())),c(c(2,d.$real()),d.$imag())),S=T,B=S.$divmod(2),ne=j(B),T=ne[0]==null?me:ne[0],te=ne[1]==null?me:ne[1];_=c(_,d),S=h(S,1)}return _}else return z(Z("Rational").$new(1,1),Fe)["$**"](I["$-@"]());else return n(Z("Float"),I)||n(Z("Rational"),I)?(B=Fe.$polar(),ne=j(B),ue=ne[0]==null?me:ne[0],U=ne[1]==null?me:ne[1],Z("Complex").$polar(ue["$**"](I),c(U,I))):Fe.$__coerced__("**",I)}),f(J,"$abs",function(){var I=this;return Z("Math").$hypot(I.real,I.imag)}),f(J,"$abs2",function(){var I=this;return p(c(I.real,I.real),c(I.imag,I.imag))}),f(J,"$angle",function(){var I=this;return Z("Math").$atan2(I.imag,I.real)}),f(J,"$conj",function(){var I=this;return i.$Complex(I.real,I.imag["$-@"]())}),f(J,"$denominator",function(){var I=this;return I.real.$denominator().$lcm(I.imag.$denominator())}),f(J,"$eql?",function(I){var ne=this,B=me,Fe=me;return r(B=r(Fe=ce("Complex")["$==="](I))?ne.real.$class()["$=="](ne.imag.$class()):Fe)?ne["$=="](I):B}),f(J,"$fdiv",function(I){var ne=this;return n(Z("Numeric"),I)||i.$raise(Z("TypeError"),""+I.$class()+" can't be coerced into Complex"),z(ne,I)}),f(J,"$finite?",function(){var I=this,ne=me;return r(ne=I.real["$finite?"]())?I.imag["$finite?"]():ne}),f(J,"$hash",function(){var I=this;return"Complex:"+I.real+":"+I.imag}),f(J,"$infinite?",function(){var I=this,ne=me;return r(ne=I.real["$infinite?"]())?ne:I.imag["$infinite?"]()}),f(J,"$inspect",function(){var I=this;return"("+I+")"}),f(J,"$numerator",function(){var I=this,ne=me;return ne=I.$denominator(),i.$Complex(c(I.real.$numerator(),z(ne,I.real.$denominator())),c(I.imag.$numerator(),z(ne,I.imag.$denominator())))}),f(J,"$polar",function(){var I=this;return[I.$abs(),I.$arg()]}),f(J,"$rationalize",function(I){var ne=this;return arguments.length>1&&i.$raise(Z("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),be(ne.imag,0)&&i.$raise(Z("RangeError"),"can't convert "+ne+" into Rational"),ne.$real().$rationalize(I)},-1),f(J,"$real?",ee(!1)),f(J,"$rect",function(){var I=this;return[I.real,I.imag]}),f(J,"$to_f",function(){var I=this;return D(I.imag,0)||i.$raise(Z("RangeError"),"can't convert "+I+" into Float"),I.real.$to_f()}),f(J,"$to_i",function(){var I=this;return D(I.imag,0)||i.$raise(Z("RangeError"),"can't convert "+I+" into Integer"),I.real.$to_i()}),f(J,"$to_r",function(){var I=this;return D(I.imag,0)||i.$raise(Z("RangeError"),"can't convert "+I+" into Rational"),I.real.$to_r()}),f(J,"$to_s",function(){var I=this,ne=me;return ne=I.real.$inspect(),ne=p(ne,n(Z("Number"),I.imag)&&r(I.imag["$nan?"]())||r(I.imag["$positive?"]())||r(I.imag["$zero?"]())?"+":"-"),ne=p(ne,I.imag.$abs().$inspect()),n(Z("Number"),I.imag)&&(r(I.imag["$nan?"]())||r(I.imag["$infinite?"]()))&&(ne=p(ne,"*")),p(ne,"i")}),Y(Ee[0],"I",J.$new(0,1)),s(J,"$from_string",function(I){var ne=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;I.match(ne);var B,Fe;function ue(){return ne.test(I)}function U(){var $=I.match(ne),l=$[0];return I=I.slice(l.length),l.replace(/_/g,"")}function v(){if(ue()){var $=parseFloat(U());if(I[0]==="/")if(I=I.slice(1),ue()){var l=parseFloat(U());return i.$Rational($,l)}else return I="/"+I,$;else return $}else return null}return B=v(),B?(Fe=v(),Fe?i.$Complex(B,Fe):I[0]==="i"?i.$Complex(0,B):i.$Complex(B,0)):I[0]==="i"?i.$Complex(0,1):I[0]==="-"&&I[1]==="i"?i.$Complex(0,-1):I[0]==="+"&&I[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Se,I){return X(Se,"rectangular","rect")}(e.get_singleton_class(J)),X(J,"arg","angle"),X(J,"conjugate","conj"),X(J,"divide","/"),X(J,"imaginary","imag"),X(J,"magnitude","abs"),X(J,"phase","arg"),X(J,"quo","/"),X(J,"rectangular","rect"),e.udef(J,"$negative?"),e.udef(J,"$positive?"),e.udef(J,"$step"),me}("::",Z("Numeric"),se)};Opal.modules["corelib/rational/base"]=function(e){var t=e.module,r=e.def,n=e.klass;e.nil;var i=e.$$$;return e.add_stubs("convert,from_string"),function(s){var c=t(s,"Kernel");return r(c,"$Rational",function(p,h){return h==null&&(h=1),i("Rational").$convert(p,h)},-2)}("::"),function(s,c){var f=n(s,c,"String");return r(f,"$to_r",function(){var h=this;return i("Rational").$from_string(h)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,c=e.rb_divide,f=e.defs,p=e.eqeqeq,h=e.not,z=e.Opal,D=e.def,j=e.return_ivar,he=e.rb_minus,be=e.rb_times,ee=e.rb_plus,Y=e.rb_gt,X=e.rb_le,ge=e.return_self,se=e.alias,me=e.top,Z=e.nil,xe=e.$$$;return e.add_stubs("require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,freeze,to_f,numerator,denominator,<=>,-,*,__coerced__,+,Rational,>,**,abs,ceil,with_precision,floor,<=,truncate,send"),me.$require("corelib/numeric"),me.$require("corelib/rational/base"),function(fe,Ae){var J=t(fe,Ae,"Rational"),Ee=J.$$prototype;return Ee.num=Ee.den=Z,f(J,"$reduce",function(w,Se){var I=this,ne=Z;if(w=w.$to_i(),Se=Se.$to_i(),r(Se,0))n.$raise(xe("ZeroDivisionError"),"divided by 0");else if(i(s(Se,0)))w=w["$-@"](),Se=Se["$-@"]();else if(r(Se,1))return I.$new(w,Se);return ne=w.$gcd(Se),I.$new(c(w,ne),c(Se,ne))}),f(J,"$convert",function(w,Se){var I=this;return(i(w["$nil?"]())||i(Se["$nil?"]()))&&n.$raise(xe("TypeError"),"cannot convert nil into Rational"),p(xe("Integer"),w)&&p(xe("Integer"),Se)?I.$reduce(w,Se):((p(xe("Float"),w)||p(xe("String"),w)||p(xe("Complex"),w))&&(w=w.$to_r()),(p(xe("Float"),Se)||p(xe("String"),Se)||p(xe("Complex"),Se))&&(Se=Se.$to_r()),i(Se["$equal?"](1))&&h(xe("Integer")["$==="](w))?z["$coerce_to!"](w,xe("Rational"),"to_r"):p(xe("Numeric"),w)&&p(xe("Numeric"),Se)?c(w,Se):I.$reduce(w,Se))}),D(J,"$initialize",function(w,Se){var I=this;return I.num=w,I.den=Se,I.$freeze()}),D(J,"$numerator",j("num")),D(J,"$denominator",j("den")),D(J,"$coerce",function(w){var Se=this,I=Z;return p(xe("Rational"),I=w)?[w,Se]:p(xe("Integer"),I)?[w.$to_r(),Se]:p(xe("Float"),I)?[w,Se.$to_f()]:Z}),D(J,"$==",function(w){var Se=this,I=Z,ne=Z;return p(xe("Rational"),I=w)?i(ne=Se.num["$=="](w.$numerator()))?Se.den["$=="](w.$denominator()):ne:p(xe("Integer"),I)?i(ne=Se.num["$=="](w))?Se.den["$=="](1):ne:p(xe("Float"),I)?Se.$to_f()["$=="](w):w["$=="](Se)}),D(J,"$<=>",function(w){var Se=this,I=Z;return p(xe("Rational"),I=w)?he(be(Se.num,w.$denominator()),be(Se.den,w.$numerator()))["$<=>"](0):p(xe("Integer"),I)?he(Se.num,be(Se.den,w))["$<=>"](0):p(xe("Float"),I)?Se.$to_f()["$<=>"](w):Se.$__coerced__("<=>",w)}),D(J,"$+",function(w){var Se=this,I=Z,ne=Z,B=Z;return p(xe("Rational"),I=w)?(ne=ee(be(Se.num,w.$denominator()),be(Se.den,w.$numerator())),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),I)?n.$Rational(ee(Se.num,be(w,Se.den)),Se.den):p(xe("Float"),I)?ee(Se.$to_f(),w):Se.$__coerced__("+",w)}),D(J,"$-",function(w){var Se=this,I=Z,ne=Z,B=Z;return p(xe("Rational"),I=w)?(ne=he(be(Se.num,w.$denominator()),be(Se.den,w.$numerator())),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),I)?n.$Rational(he(Se.num,be(w,Se.den)),Se.den):p(xe("Float"),I)?he(Se.$to_f(),w):Se.$__coerced__("-",w)}),D(J,"$*",function(w){var Se=this,I=Z,ne=Z,B=Z;return p(xe("Rational"),I=w)?(ne=be(Se.num,w.$numerator()),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),I)?n.$Rational(be(Se.num,w),Se.den):p(xe("Float"),I)?be(Se.$to_f(),w):Se.$__coerced__("*",w)}),D(J,"$/",function(w){var Se=this,I=Z,ne=Z,B=Z;return p(xe("Rational"),I=w)?(ne=be(Se.num,w.$denominator()),B=be(Se.den,w.$numerator()),n.$Rational(ne,B)):p(xe("Integer"),I)?r(w,0)?c(Se.$to_f(),0):n.$Rational(Se.num,be(Se.den,w)):p(xe("Float"),I)?c(Se.$to_f(),w):Se.$__coerced__("/",w)}),D(J,"$**",function(w){var Se=this,I=Z;return p(xe("Integer"),I=w)?r(Se,0)&&i(s(w,0))?xe(xe("Float"),"INFINITY"):i(Y(w,0))?n.$Rational(Se.num["$**"](w),Se.den["$**"](w)):i(s(w,0))?n.$Rational(Se.den["$**"](w["$-@"]()),Se.num["$**"](w["$-@"]())):n.$Rational(1,1):p(xe("Float"),I)?Se.$to_f()["$**"](w):p(xe("Rational"),I)?r(w,0)?n.$Rational(1,1):r(w.$denominator(),1)?i(s(w,0))?n.$Rational(Se.den["$**"](w.$numerator().$abs()),Se.num["$**"](w.$numerator().$abs())):n.$Rational(Se.num["$**"](w.$numerator()),Se.den["$**"](w.$numerator())):r(Se,0)&&i(s(w,0))?n.$raise(xe("ZeroDivisionError"),"divided by 0"):Se.$to_f()["$**"](w):Se.$__coerced__("**",w)}),D(J,"$abs",function(){var w=this;return n.$Rational(w.num.$abs(),w.den.$abs())}),D(J,"$ceil",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$ceil():Se.$with_precision("ceil",w)},-1),D(J,"$floor",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$floor():Se.$with_precision("floor",w)},-1),D(J,"$hash",function(){var w=this;return"Rational:"+w.num+":"+w.den}),D(J,"$inspect",function(){var w=this;return"("+w+")"}),D(J,"$rationalize",function(w){var Se=this;if(arguments.length>1&&n.$raise(xe("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),w==null)return Se;for(var I=w.$abs(),ne=he(Se,I),B=ee(Se,I),Fe=0,ue=1,U=1,v=0,$,l,u,d,_;u=ne.$ceil(),!X(u,B);)d=u-1,$=d*ue+Fe,l=d*v+U,_=c(1,he(B,d)),B=c(1,he(ne,d)),ne=_,Fe=ue,U=v,ue=$,v=l;return n.$Rational(u*ue+Fe,u*v+U)},-1),D(J,"$round",function(w){var Se=this,I=Z,ne=Z,B=Z;return w==null&&(w=0),r(w,0)?r(Se.num,0)?0:r(Se.den,1)?Se.num:(I=ee(be(Se.num.$abs(),2),Se.den),ne=be(Se.den,2),B=c(I,ne).$truncate(),i(s(Se.num,0))?B["$-@"]():B):Se.$with_precision("round",w)},-1),D(J,"$to_f",function(){var w=this;return c(w.num,w.den)}),D(J,"$to_i",function(){var w=this;return w.$truncate()}),D(J,"$to_r",ge),D(J,"$to_s",function(){var w=this;return""+w.num+"/"+w.den}),D(J,"$truncate",function(w){var Se=this;return w==null&&(w=0),r(w,0)?i(s(Se.num,0))?Se.$ceil():Se.$floor():Se.$with_precision("truncate",w)},-1),D(J,"$with_precision",function(w,Se){var I=this,ne=Z,B=Z;return p(xe("Integer"),Se)||n.$raise(xe("TypeError"),"not an Integer"),ne=10["$**"](Se),B=be(I,ne),i(s(Se,1))?c(B.$send(w),ne).$to_i():n.$Rational(B.$send(w),ne)}),f(J,"$from_string",function(w){var Se=w.trimLeft(),I=/^[+-]?[\d_]+(\.[\d_]+)?/;Se.match(I);var ne,B;function Fe(){return I.test(Se)}function ue(){var U=Se.match(I),v=U[0];return Se=Se.slice(v.length),v.replace(/_/g,"")}return Fe()?(ne=parseFloat(ue()),Se[0]==="/"?(Se=Se.slice(1),Fe()?(B=parseFloat(ue()),n.$Rational(ne,B)):n.$Rational(ne,1)):n.$Rational(ne,1)):n.$Rational(0,1)}),se(J,"divide","/"),se(J,"quo","/")}("::",xe("Numeric"))};Opal.modules["corelib/time"]=function(e){var t=e.slice,r=e.deny_frozen_access,n=e.klass,i=e.Kernel,s=e.Opal,c=e.defs,f=e.eqeqeq,p=e.def,h=e.truthy,z=e.rb_gt,D=e.rb_lt,j=e.send,he=e.rb_plus,be=e.rb_divide,ee=e.rb_minus,Y=e.range,X=e.neqeq,ge=e.rb_le,se=e.eqeq,me=e.alias,Z=e.top,xe=[],fe=e.nil,Ae=e.$$$;return e.add_stubs("require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>,to_f,nil?,>,<,strftime,each,define_method,year,month,day,+,round,/,-,copy_instance_variables,initialize_dup,is_a?,zero?,wday,utc?,mon,yday,hour,min,sec,rjust,ljust,zone,to_s,[],cweek_cyear,jd,to_date,format,isdst,!=,<=,==,ceil,local,gm,asctime,getgm,gmt_offset,inspect,usec,gmtime,gmt?"),Z.$require("corelib/comparable"),function(J,Ee,ce){var w=n(J,Ee,"Time"),Se=[w].concat(ce),I=e.$r(Se);w.$include(Ae("Comparable"));var ne=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],B=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ue=["January","February","March","April","May","June","July","August","September","October","November","December"];c(w,"$at",function($,l){var u;return Ae("Time")["$==="]($)?(l!==void 0&&i.$raise(Ae("TypeError"),"can't convert Time into an exact number"),u=new Date($.getTime()),u.timezone=$.timezone,u):($.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int")),l===void 0?new Date($*1e3):(l.$$is_number||(l=s["$coerce_to!"](l,Ae("Integer"),"to_int")),new Date($*1e3+l/1e3)))},-2);function U(v,$,l,u,d,_){if(v.$$is_string?v=parseInt(v,10):v=s["$coerce_to!"](v,Ae("Integer"),"to_int"),$===fe)$=1;else if(!$.$$is_number)if($["$respond_to?"]("to_str"))switch($=$.$to_str(),$.toLowerCase()){case"jan":$=1;break;case"feb":$=2;break;case"mar":$=3;break;case"apr":$=4;break;case"may":$=5;break;case"jun":$=6;break;case"jul":$=7;break;case"aug":$=8;break;case"sep":$=9;break;case"oct":$=10;break;case"nov":$=11;break;case"dec":$=12;break;default:$=$.$to_i()}else $=s["$coerce_to!"]($,Ae("Integer"),"to_int");return($<1||$>12)&&i.$raise(Ae("ArgumentError"),"month out of range: "+$),$=$-1,l===fe?l=1:l.$$is_string?l=parseInt(l,10):l=s["$coerce_to!"](l,Ae("Integer"),"to_int"),(l<1||l>31)&&i.$raise(Ae("ArgumentError"),"day out of range: "+l),u===fe?u=0:u.$$is_string?u=parseInt(u,10):u=s["$coerce_to!"](u,Ae("Integer"),"to_int"),(u<0||u>24)&&i.$raise(Ae("ArgumentError"),"hour out of range: "+u),d===fe?d=0:d.$$is_string?d=parseInt(d,10):d=s["$coerce_to!"](d,Ae("Integer"),"to_int"),(d<0||d>59)&&i.$raise(Ae("ArgumentError"),"min out of range: "+d),_===fe?_=0:_.$$is_number||(_.$$is_string?_=parseInt(_,10):_=s["$coerce_to!"](_,Ae("Integer"),"to_int")),(_<0||_>60)&&i.$raise(Ae("ArgumentError"),"sec out of range: "+_),[v,$,l,u,d,_]}return c(w,"$new",function($,l,u,d,_,S,T){var te=this;l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),T==null&&(T=fe);var Ie,Je,ut,_t;return $===void 0?new Date:(Ie=U($,l,u,d,_,S),$=Ie[0],l=Ie[1],u=Ie[2],d=Ie[3],_=Ie[4],S=Ie[5],T===fe?(Je=new Date($,l,u,d,_,0,S*1e3),$<100&&Je.setFullYear($),Je):(ut=te.$_parse_offset(T),_t=new Date(Date.UTC($,l,u,d,_,0,S*1e3)),$<100&&_t.setUTCFullYear($),Je=new Date(_t.getTime()-ut*36e5),Je.timezone=ut,Je))},-1),c(w,"$_parse_offset",function($){var l;if($.$$is_string)if($=="UTC")l=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var u,d,_;u=$[0],d=+($[1]+$[2]),_=+($[4]+$[5]),l=(u=="-"?-1:1)*(d+_/60)}else i.$raise(Ae("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?l=$/3600:i.$raise(Ae("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return l}),c(w,"$local",function($,l,u,d,_,S,T,te,Ie,Je){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),T==null&&(T=fe),te==null&&(te=fe),Ie==null&&(Ie=fe),Je==null&&(Je=fe);var ut,_t;return arguments.length===10&&(ut=t(arguments),$=ut[5],l=ut[4],u=ut[3],d=ut[2],_=ut[1],S=ut[0]),ut=U($,l,u,d,_,S),$=ut[0],l=ut[1],u=ut[2],d=ut[3],_=ut[4],S=ut[5],_t=new Date($,l,u,d,_,0,S*1e3),$<100&&_t.setFullYear($),_t},-2),c(w,"$gm",function($,l,u,d,_,S,T,te,Ie,Je){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),S==null&&(S=fe),T==null&&(T=fe),te==null&&(te=fe),Ie==null&&(Ie=fe),Je==null&&(Je=fe);var ut,_t;return arguments.length===10&&(ut=t(arguments),$=ut[5],l=ut[4],u=ut[3],d=ut[2],_=ut[1],S=ut[0]),ut=U($,l,u,d,_,S),$=ut[0],l=ut[1],u=ut[2],d=ut[3],_=ut[4],S=ut[5],_t=new Date(Date.UTC($,l,u,d,_,0,S*1e3)),$<100&&_t.setUTCFullYear($),_t.timezone=0,_t},-2),c(w,"$now",function(){var $=this;return $.$new()}),p(w,"$+",function($){var l=this;f(Ae("Time"),$)&&i.$raise(Ae("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()+$*1e3);return u.timezone=l.timezone,u}),p(w,"$-",function($){var l=this;if(f(Ae("Time"),$))return(l.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()-$*1e3);return u.timezone=l.timezone,u}),p(w,"$<=>",function($){var l=this,u=fe;return f(Ae("Time"),$)?l.$to_f()["$<=>"]($.$to_f()):(u=$["$<=>"](l),h(u["$nil?"]())?fe:h(z(u,0))?-1:h(D(u,0))?1:0)}),p(w,"$==",function($){var l=this,u=fe;return h(u=Ae("Time")["$==="]($))?l.$to_f()===$.$to_f():u}),p(w,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),j([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function v($,l,u,d){var _=v.$$s==null?this:v.$$s;return $==null&&($=fe),l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=0),j(_,"define_method",[$],function S(){var T=S.$$s==null?this:S.$$s;return d+(T.timezone!=null?new Date(T.getTime()+T.timezone*36e5)[u]():T[l]())},{$$s:_})},{$$arity:-4,$$s:w}),p(w,"$yday",function(){var $=this,l=fe,u=fe,d=fe;return l=I("Time").$new($.$year()).$to_i(),u=I("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),d=86400,he(be(ee(u,l),d).$round(),1)}),p(w,"$isdst",function(){var $=this,l=new Date($.getFullYear(),0,1),u=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(l.getTimezoneOffset(),u.getTimezoneOffset())}),p(w,"$dup",function(){var $=this,l=fe;return l=new Date($.getTime()),l.$copy_instance_variables($),l.$initialize_dup($),l}),p(w,"$eql?",function($){var l=this,u=fe;return h(u=$["$is_a?"](Ae("Time")))?l["$<=>"]($)["$zero?"]():u}),j([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function v($,l){var u=v.$$s==null?this:v.$$s;return $==null&&($=fe),l==null&&(l=fe),j(u,"define_method",[$],function d(){var _=d.$$s==null?this:d.$$s;return _.$wday()===l},{$$s:u})},{$$s:w}),p(w,"$hash",function(){var $=this;return"Time:"+$.getTime()}),p(w,"$inspect",function(){var $=this;return h($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),p(w,"$succ",function(){var $=this,l=new Date($.getTime()+1e3);return l.timezone=$.timezone,l}),p(w,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),p(w,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return fe;var l=$.toString(),u;return l.indexOf("(")==-1?u=l.match(/[A-Z]{3,4}/)[0]:u=l.match(/\((.+)\)(?:\s|$)/)[1],u=="GMT"&&/(GMT\W*\d{4})/.test(l)?RegExp.$1:u}),p(w,"$getgm",function(){var $=this,l=new Date($.getTime());return l.timezone=0,l}),p(w,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),p(w,"$gmt?",function(){var $=this;return $.timezone===0}),p(w,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),p(w,"$strftime",function($){var l=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(u,d,_,S,T){var te="",Ie,Je,ut,_t=d.indexOf("0")!==-1,wt=d.indexOf("-")===-1,bt=d.indexOf("_")!==-1,At=d.indexOf("^")!==-1,St=d.indexOf("#")!==-1,Mt=(d.match(":")||[]).length;switch(_=parseInt(_,10),_t&&bt&&(d.indexOf("0")<d.indexOf("_")?_t=!1:bt=!1),T){case"Y":te+=l.$year();break;case"C":_t=!bt,te+=Math.round(l.$year()/100);break;case"y":_t=!bt,te+=l.$year()%100;break;case"m":_t=!bt,te+=l.$mon();break;case"B":te+=ue[l.$mon()-1];break;case"b":case"h":bt=!_t,te+=Fe[l.$mon()-1];break;case"d":_t=!bt,te+=l.$day();break;case"e":bt=!_t,te+=l.$day();break;case"j":_t=!bt,_=isNaN(_)?3:_,te+=l.$yday();break;case"H":_t=!bt,te+=l.$hour();break;case"k":bt=!_t,te+=l.$hour();break;case"I":_t=!bt,te+=l.$hour()%12||12;break;case"l":bt=!_t,te+=l.$hour()%12||12;break;case"P":te+=l.$hour()>=12?"pm":"am";break;case"p":te+=l.$hour()>=12?"PM":"AM";break;case"M":_t=!bt,te+=l.$min();break;case"S":_t=!bt,te+=l.$sec();break;case"L":_t=!bt,_=isNaN(_)?3:_,te+=l.getMilliseconds();break;case"N":_=isNaN(_)?9:_,te+=l.getMilliseconds().toString().$rjust(3,"0"),te=te.$ljust(_,"0");break;case"z":var Ct=l.timezone==null?l.getTimezoneOffset():-l.timezone*60,nt=Math.floor(Math.abs(Ct)/60),Ne=Math.abs(Ct)%60;te+=Ct<0?"+":"-",te+=nt<10?"0":"",te+=nt,Mt>0&&(te+=":"),te+=Ne<10?"0":"",te+=Ne,Mt>1&&(te+=":00");break;case"Z":te+=l.$zone();break;case"A":te+=ne[l.$wday()];break;case"a":te+=B[l.$wday()];break;case"u":te+=l.$wday()+1;break;case"w":te+=l.$wday();break;case"V":te+=l.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":te+=l.$cweek_cyear()["$[]"](1);break;case"g":te+=l.$cweek_cyear()["$[]"](1)["$[]"](Y(-2,-1,!1));break;case"s":te+=l.$to_i();break;case"n":te+=`
|
|
411
|
-
`;break;case"t":te+=" ";break;case"%":te+="%";break;case"c":te+=l.$strftime("%a %b %e %T %Y");break;case"D":case"x":te+=l.$strftime("%m/%d/%y");break;case"F":te+=l.$strftime("%Y-%m-%d");break;case"v":te+=l.$strftime("%e-%^b-%4Y");break;case"r":te+=l.$strftime("%I:%M:%S %p");break;case"R":te+=l.$strftime("%H:%M");break;case"T":case"X":te+=l.$strftime("%H:%M:%S");break;case"J":if(Ie=l.$to_date().$jd(),Ie<2405160){te+=l.$strftime("%Y-%m-%d");break}else Ie<2419614?(Je="M",ut=1867):Ie<2424875?(Je="T",ut=1911):Ie<2447535?(Je="S",ut=1925):Ie<2458605?(Je="H",ut=1988):(Je="R",ut=2018);te+=l.$format("%c%02d",Je,ee(l.$year(),ut)),te+=l.$strftime("-%m-%d");break;default:return u}return At&&(te=te.toUpperCase()),St&&(te=te.replace(/[A-Z]/,function(je){je.toLowerCase()}).replace(/[a-z]/,function(je){je.toUpperCase()})),wt&&(_t||bt)&&(te=te.$rjust(isNaN(_)?2:_,bt?" ":"0")),te})}),p(w,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),p(w,"$to_f",function(){var $=this;return $.getTime()/1e3}),p(w,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),p(w,"$cweek_cyear",function(){var $=this,l=fe,u=fe,d=fe,_=fe,S=fe,T=fe,te=fe;return l=Ae("Time").$new($.$year(),1,1),u=l.$wday(),d=$.$year(),h(ge(u,4))&&X(u,0)?_=ee(u,1):(_=ee(ee(u,7),1),se(_,-8)&&(_=-1)),S=be(he($.$yday(),_),7).$ceil(),h(ge(S,0))?Ae("Time").$new(ee($.$year(),1),12,31).$cweek_cyear():(se(S,53)&&(T=Ae("Time").$new($.$year(),12,31),te=T.$wday(),h(ge(te,3))&&X(te,0)&&(S=1,d=he(d,1))),[S,d])}),function(v,$){return me(v,"mktime","local"),me(v,"utc","gm")}(e.get_singleton_class(w)),me(w,"ctime","asctime"),me(w,"dst?","isdst"),me(w,"getutc","getgm"),me(w,"gmtoff","gmt_offset"),me(w,"mday","day"),me(w,"month","mon"),me(w,"to_s","inspect"),me(w,"tv_sec","to_i"),me(w,"tv_usec","usec"),me(w,"utc","gmtime"),me(w,"utc?","gmt?"),me(w,"utc_offset","gmt_offset")}("::",Date,xe)};Opal.modules["corelib/struct"]=function(e){var t=e.klass,r=e.slice,n=e.extract_kwargs,i=e.ensure_kwargs,s=e.truthy,c=e.neqeq,f=e.eqeq,p=e.Opal,h=e.send,z=e.Class,D=e.to_a,j=e.def,he=e.defs,be=e.Kernel,ee=e.hash2,Y=e.rb_gt,X=e.rb_minus,ge=e.eqeqeq,se=e.rb_lt,me=e.rb_ge,Z=e.rb_plus,xe=e.alias,fe=e.top,Ae=[],J=e.nil,Ee=e.$$$;return e.add_stubs("require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,define_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members,define_method,instance_eval,last,>,length,-,keys,any?,join,[]=,each_with_index,hash,===,<,-@,size,>=,include?,to_sym,instance_of?,__id__,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig"),fe.$require("corelib/enumerable"),function(ce,w,Se){var I=t(ce,w,"Struct"),ne=[I].concat(Se),B=e.$r(ne);I.$include(Ee("Enumerable")),he(I,"$new",function ue(U,v,$){var l=ue.$$p||J,u,d,_,S,T=this,te=J;if(ue.$$p=null,u=r(arguments,1),d=n(u),d=i(d),_=u,S=d.$$smap.keyword_init,S==null&&(S=!1),s(U))if(f(U.$class(),Ee("String"))&&c(U["$[]"](0).$upcase(),U["$[]"](0)))_.$unshift(U),U=J;else try{U=p["$const_name!"](U)}catch(Ie){if(e.rescue(Ie,[Ee("TypeError"),Ee("NameError")]))try{_.$unshift(U),U=J}finally{e.pop_exception()}else throw Ie}return h(_,"map",[],function(Je){return Je==null&&(Je=J),p["$coerce_to!"](Je,Ee("String"),"to_str")}),te=h(z,"new",[T],function Ie(){var Je=Ie.$$s==null?this:Ie.$$s;return h(_,"each",[],function ut(_t){var wt=ut.$$s==null?this:ut.$$s;return _t==null&&(_t=J),wt.$define_struct_attribute(_t)},{$$s:Je}),function(ut,_t){return j(ut,"$new",function(bt){var At,St,Mt=this,Ct=J;return At=r(arguments),St=At,Ct=Mt.$allocate(),Ct.$$data={},h(Ct,"initialize",D(St)),Ct},-1),ut.$alias_method("[]","new")}(e.get_singleton_class(Je))},{$$s:T}),s(l)&&h(te,"module_eval",[],l.$to_proc()),te.$$keyword_init=S,s(U)&&Ee("Struct").$const_set(U,te),te},-2),he(I,"$define_struct_attribute",function(U){var v=this;return f(v,Ee("Struct"))&&be.$raise(Ee("ArgumentError"),"you cannot define attributes to the Struct class"),v.$members()["$<<"](U),h(v,"define_method",[U],function $(){var l=$.$$s==null?this:$.$$s;return l.$$data[U]},{$$s:v}),h(v,"define_method",[""+U+"="],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=J),u.$$data[U]=l},{$$s:v})}),he(I,"$members",function(){var U=this,v=J;return U.members==null&&(U.members=J),f(U,Ee("Struct"))&&be.$raise(Ee("ArgumentError"),"the Struct class has no members"),U.members=s(v=U.members)?v:[]}),he(I,"$inherited",function(U){var v=this,$=J;return v.members==null&&(v.members=J),$=v.members,h(U,"instance_eval",[],function l(){var u=l.$$s==null?this:l.$$s;return u.members=$},{$$s:v})}),j(I,"$initialize",function(U){var v,$,l=this,u=J,d=J,_=J;return v=r(arguments),$=v,s(l.$class().$$keyword_init)?(u=s(d=$.$last())?d:ee([],{}),(s(Y($.$length(),1))||s($.length===1&&!u.$$is_hash))&&be.$raise(Ee("ArgumentError"),"wrong number of arguments (given "+$.$length()+", expected 0)"),_=X(u.$keys(),l.$class().$members()),s(_["$any?"]())&&be.$raise(Ee("ArgumentError"),"unknown keywords: "+_.$join(", ")),h(l.$class().$members(),"each",[],function S(T){var te,Ie=S.$$s==null?this:S.$$s;return T==null&&(T=J),te=[T,u["$[]"](T)],h(Ie,"[]=",te),te[te.length-1]},{$$s:l})):(s(Y($.$length(),l.$class().$members().$length()))&&be.$raise(Ee("ArgumentError"),"struct size differs"),h(l.$class().$members(),"each_with_index",[],function S(T,te){var Ie,Je=S.$$s==null?this:S.$$s;return T==null&&(T=J),te==null&&(te=J),Ie=[T,$["$[]"](te)],h(Je,"[]=",Ie),Ie[Ie.length-1]},{$$s:l}))},-1),j(I,"$initialize_copy",function(U){var v=this;v.$$data={};var $=Object.keys(U.$$data),l,u,d;for(l=0,u=$.length;l<u;l++)d=$[l],v.$$data[d]=U.$$data[d]}),he(I,"$keyword_init?",function(){var U=this;return U.$$keyword_init}),j(I,"$members",function(){var U=this;return U.$class().$members()}),j(I,"$hash",function(){var U=this;return B("Hash").$new(U.$$data).$hash()}),j(I,"$[]",function(U){var v=this;return ge(Ee("Integer"),U)?(s(se(U,v.$class().$members().$size()["$-@"]()))&&be.$raise(Ee("IndexError"),"offset "+U+" too small for struct(size:"+v.$class().$members().$size()+")"),s(me(U,v.$class().$members().$size()))&&be.$raise(Ee("IndexError"),"offset "+U+" too large for struct(size:"+v.$class().$members().$size()+")"),U=v.$class().$members()["$[]"](U)):ge(Ee("String"),U)?v.$$data.hasOwnProperty(U)||be.$raise(Ee("NameError").$new("no member '"+U+"' in struct",U)):be.$raise(Ee("TypeError"),"no implicit conversion of "+U.$class()+" into Integer"),U=p["$coerce_to!"](U,Ee("String"),"to_str"),v.$$data[U]}),j(I,"$[]=",function(U,v){var $=this;return ge(Ee("Integer"),U)?(s(se(U,$.$class().$members().$size()["$-@"]()))&&be.$raise(Ee("IndexError"),"offset "+U+" too small for struct(size:"+$.$class().$members().$size()+")"),s(me(U,$.$class().$members().$size()))&&be.$raise(Ee("IndexError"),"offset "+U+" too large for struct(size:"+$.$class().$members().$size()+")"),U=$.$class().$members()["$[]"](U)):ge(Ee("String"),U)?s($.$class().$members()["$include?"](U.$to_sym()))||be.$raise(Ee("NameError").$new("no member '"+U+"' in struct",U)):be.$raise(Ee("TypeError"),"no implicit conversion of "+U.$class()+" into Integer"),U=p["$coerce_to!"](U,Ee("String"),"to_str"),$.$$data[U]=v}),j(I,"$==",function(U){var v=this;if(!s(U["$instance_of?"](v.$class())))return!1;var $={},l={};function u(d,_){var S,T,te;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(S in d.$$data)if(T=d.$$data[S],te=_.$$data[S],Ee("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!l.hasOwnProperty(te.$__id__()))&&!u(T,te))return!1}else if(!T["$=="](te))return!1;return!0}return u(v,U)}),j(I,"$eql?",function(U){var v=this;if(!s(U["$instance_of?"](v.$class())))return!1;var $={},l={};function u(d,_){var S,T,te;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(S in d.$$data)if(T=d.$$data[S],te=_.$$data[S],Ee("Struct")["$==="](T)){if((!$.hasOwnProperty(T.$__id__())||!l.hasOwnProperty(te.$__id__()))&&!u(T,te))return!1}else if(!T["$eql?"](te))return!1;return!0}return u(v,U)}),j(I,"$each",function ue(){var U=ue.$$p||J,v=this;return ue.$$p=null,U===J?h(v,"enum_for",["each"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:v}):(h(v.$class().$members(),"each",[],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=J),e.yield1(U,u["$[]"](l))},{$$s:v}),v)}),j(I,"$each_pair",function ue(){var U=ue.$$p||J,v=this;return ue.$$p=null,U===J?h(v,"enum_for",["each_pair"],function $(){var l=$.$$s==null?this:$.$$s;return l.$size()},{$$s:v}):(h(v.$class().$members(),"each",[],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=J),e.yield1(U,[l,u["$[]"](l)])},{$$s:v}),v)}),j(I,"$length",function(){var U=this;return U.$class().$members().$length()}),j(I,"$to_a",function(){var U=this;return h(U.$class().$members(),"map",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&($=J),l["$[]"]($)},{$$s:U})});var Fe=[];return j(I,"$inspect",function(){var U=this,v=J,$=J;return function(){try{return v="#<struct ",s(Fe["$include?"](U.$__id__()))?Z(v,":...>"):(Fe["$<<"](U.$__id__()),$=!0,ge(Ee("Struct"),U)&&s(U.$class().$name())&&(v=Z(v,""+U.$class()+" ")),v=Z(v,h(U.$each_pair(),"map",[],function(u,d){return u==null&&(u=J),d==null&&(d=J),""+u+"="+B("Opal").$inspect(d)}).$join(", ")),v=Z(v,">"),v)}finally{s($)&&Fe.pop()}}()}),j(I,"$to_h",function ue(){var U=ue.$$p||J,v=this;return ue.$$p=null,U!==J?h(h(v,"map",[],U.$to_proc()),"to_h",D(v.$args())):h(v.$class().$members(),"each_with_object",[ee([],{})],function $(l,u){var d,_=$.$$s==null?this:$.$$s;return l==null&&(l=J),u==null&&(u=J),d=[l,_["$[]"](l)],h(u,"[]=",d),d[d.length-1]},{$$s:v})}),j(I,"$values_at",function(U){var v,$,l=this;v=r(arguments),$=v,$=h($,"map",[],function(T){return T==null&&(T=J),T.$$is_range?T.$to_a():T}).$flatten();for(var u=[],d=0,_=$.length;d<_;d++)$[d].$$is_number||be.$raise(Ee("TypeError"),"no implicit conversion of "+$[d].$class()+" into Integer"),u.push(l["$[]"]($[d]));return u},-1),j(I,"$dig",function(U,v){var $,l,u=this,d=J;return $=r(arguments,1),l=$,d=s(U.$$is_string&&u.$$data.hasOwnProperty(U))&&u.$$data[U]||J,d===J||l.length===0?d:(s(d["$respond_to?"]("dig"))||be.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),h(d,"dig",D(l)))},-2),xe(I,"size","length"),xe(I,"to_s","inspect"),xe(I,"values","to_a")}("::",null,Ae)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,c=e.truthy,f=e.eqeqeq,p=e.Kernel,h=e.send,z=e.def,D=e.eqeq,j=e.rb_lt,he=e.rb_le,be=e.alias,ee=[],Y=e.nil,X=e.$$$;return e.add_stubs("include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?,==,instance_variable_get,size,is_a?,all?,include?,[]=,enum_for,[],<<,replace,compare_by_identity,name,compare_by_identity?,delete,select,frozen?,freeze,reject,delete_if,to_proc,keep_if,each_key,empty?,eql?,instance_eval,clear,<,<=,any?,!,intersect?,keys,|,proper_subset?,subset?,proper_superset?,superset?,-,select!,collect!"),function(ge,se,me){var Z=r(ge,se,"Set"),xe=[Z].concat(me),fe=e.$r(xe),Ae=Y,J=Z.$$prototype;J.hash=Y,Z.$include(X("Enumerable")),i(Z,"$[]",function(w){var Se,I,ne=this;return Se=n(arguments),I=Se,ne.$new(I)},-1),z(Z,"$initialize",function ce(w){var Se=ce.$$p||Y,I=this;return ce.$$p=null,w==null&&(w=Y),I.hash=s([],{}),c(w["$nil?"]())?Y:(f(X("Enumerable"),w)||p.$raise(X("ArgumentError"),"value must be enumerable"),c(Se)?h(w,"each",[],function ne(B){var Fe=ne.$$s==null?this:ne.$$s;return B==null&&(B=Y),Fe.$add(e.yield1(Se,B))},{$$s:I}):I.$merge(w))},-1),z(Z,"$dup",function(){var w=this,Se=Y;return Se=w.$class().$new(),Se.$merge(w)}),z(Z,"$-",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$subtract(w)}),z(Z,"$inspect",function(){var w=this;return"#<Set: {"+w.$to_a().$join(",")+"}>"}),z(Z,"$==",function(w){var Se=this;return c(Se["$equal?"](w))?!0:c(w["$instance_of?"](Se.$class()))?Se.hash["$=="](w.$instance_variable_get("@hash")):c(w["$is_a?"](X("Set")))&&D(Se.$size(),w.$size())?h(w,"all?",[],function I(ne){var B=I.$$s==null?this:I.$$s;return B.hash==null&&(B.hash=Y),ne==null&&(ne=Y),B.hash["$include?"](ne)},{$$s:Se}):!1}),z(Z,"$add",function(w){var Se=this;return Se.hash["$[]="](w,!0),Se}),z(Z,"$classify",function ce(){var w=ce.$$p||Y,Se=this,I=Y;return ce.$$p=null,w===Y?Se.$enum_for("classify"):(I=h(X("Hash"),"new",[],function ne(B,Fe){var ue,U=ne.$$s==null?this:ne.$$s;return B==null&&(B=Y),Fe==null&&(Fe=Y),ue=[Fe,U.$class().$new()],h(B,"[]=",ue),ue[ue.length-1]},{$$s:Se}),h(Se,"each",[],function(B){return B==null&&(B=Y),I["$[]"](e.yield1(w,B)).$add(B)}),I)}),z(Z,"$collect!",function ce(){var w=ce.$$p||Y,Se=this,I=Y;return ce.$$p=null,w===Y?Se.$enum_for("collect!"):(I=Se.$class().$new(),h(Se,"each",[],function(B){return B==null&&(B=Y),I["$<<"](e.yield1(w,B))}),Se.$replace(I))}),z(Z,"$compare_by_identity",function(){var w=this;return c(w.hash["$respond_to?"]("compare_by_identity"))?(w.hash.$compare_by_identity(),w):w.$raise(fe("NotImplementedError"),""+w.$class().$name()+"#compare_by_identity is not implemented")}),z(Z,"$compare_by_identity?",function(){var w=this,Se=Y;return c(Se=w.hash["$respond_to?"]("compare_by_identity?"))?w.hash["$compare_by_identity?"]():Se}),z(Z,"$delete",function(w){var Se=this;return Se.hash.$delete(w),Se}),z(Z,"$delete?",function(w){var Se=this;return c(Se["$include?"](w))?(Se.$delete(w),Se):Y}),z(Z,"$delete_if",function ce(){var w=ce.$$p||Y,Se=this;return ce.$$p=null,w===Y?Se.$enum_for("delete_if"):(h(h(Se,"select",[],function(ne){return ne==null&&(ne=Y),e.yield1(w,ne)}),"each",[],function I(ne){var B=I.$$s==null?this:I.$$s;return B.hash==null&&(B.hash=Y),ne==null&&(ne=Y),B.hash.$delete(ne)},{$$s:Se}),Se)}),z(Z,"$freeze",function(){var w=this;return c(w["$frozen?"]())?w:(w.hash.$freeze(),t(w))}),z(Z,"$keep_if",function ce(){var w=ce.$$p||Y,Se=this;return ce.$$p=null,w===Y?Se.$enum_for("keep_if"):(h(h(Se,"reject",[],function(ne){return ne==null&&(ne=Y),e.yield1(w,ne)}),"each",[],function I(ne){var B=I.$$s==null?this:I.$$s;return B.hash==null&&(B.hash=Y),ne==null&&(ne=Y),B.hash.$delete(ne)},{$$s:Se}),Se)}),z(Z,"$reject!",function ce(){var w=ce.$$p||Y,Se=this,I=Y;return ce.$$p=null,w===Y?Se.$enum_for("reject!"):(I=Se.$size(),h(Se,"delete_if",[],w.$to_proc()),D(Se.$size(),I)?Y:Se)}),z(Z,"$select!",function ce(){var w=ce.$$p||Y,Se=this,I=Y;return ce.$$p=null,w===Y?Se.$enum_for("select!"):(I=Se.$size(),h(Se,"keep_if",[],w.$to_proc()),D(Se.$size(),I)?Y:Se)}),z(Z,"$add?",function(w){var Se=this;return c(Se["$include?"](w))?Y:Se.$add(w)}),z(Z,"$each",function ce(){var w=ce.$$p||Y,Se=this;return ce.$$p=null,w===Y?Se.$enum_for("each"):(h(Se.hash,"each_key",[],w.$to_proc()),Se)}),z(Z,"$empty?",function(){var w=this;return w.hash["$empty?"]()}),z(Z,"$eql?",function(w){var Se=this;return Se.hash["$eql?"](h(w,"instance_eval",[],function I(){var ne=I.$$s==null?this:I.$$s;return ne.hash==null&&(ne.hash=Y),ne.hash},{$$s:Se}))}),z(Z,"$clear",function(){var w=this;return w.hash.$clear(),w}),z(Z,"$include?",function(w){var Se=this;return Se.hash["$include?"](w)}),z(Z,"$merge",function(w){var Se=this;return h(w,"each",[],function I(ne){var B=I.$$s==null?this:I.$$s;return ne==null&&(ne=Y),B.$add(ne)},{$$s:Se}),Se}),z(Z,"$replace",function(w){var Se=this;return Se.$clear(),Se.$merge(w),Se}),z(Z,"$size",function(){var w=this;return w.hash.$size()}),z(Z,"$subtract",function(w){var Se=this;return h(w,"each",[],function I(ne){var B=I.$$s==null?this:I.$$s;return ne==null&&(ne=Y),B.$delete(ne)},{$$s:Se}),Se}),z(Z,"$|",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$merge(w)});function Ee(ce){c(Ae=ce["$is_a?"](X("Set")))||p.$raise(X("ArgumentError"),"value must be a set")}return z(Z,"$superset?",function(w){var Se=this;return Ee(w),c(j(Se.$size(),w.$size()))?!1:h(w,"all?",[],function I(ne){var B=I.$$s==null?this:I.$$s;return ne==null&&(ne=Y),B["$include?"](ne)},{$$s:Se})}),z(Z,"$proper_superset?",function(w){var Se=this;return Ee(w),c(he(Se.$size(),w.$size()))?!1:h(w,"all?",[],function I(ne){var B=I.$$s==null?this:I.$$s;return ne==null&&(ne=Y),B["$include?"](ne)},{$$s:Se})}),z(Z,"$subset?",function(w){var Se=this;return Ee(w),c(j(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(ne){return ne==null&&(ne=Y),w["$include?"](ne)})}),z(Z,"$proper_subset?",function(w){var Se=this;return Ee(w),c(he(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(ne){return ne==null&&(ne=Y),w["$include?"](ne)})}),z(Z,"$intersect?",function(w){var Se=this;return Ee(w),c(j(Se.$size(),w.$size()))?h(Se,"any?",[],function(ne){return ne==null&&(ne=Y),w["$include?"](ne)}):h(w,"any?",[],function I(ne){var B=I.$$s==null?this:I.$$s;return ne==null&&(ne=Y),B["$include?"](ne)},{$$s:Se})}),z(Z,"$disjoint?",function(w){var Se=this;return Se["$intersect?"](w)["$!"]()}),z(Z,"$to_a",function(){var w=this;return w.hash.$keys()}),be(Z,"+","|"),be(Z,"<","proper_subset?"),be(Z,"<<","add"),be(Z,"<=","subset?"),be(Z,">","proper_superset?"),be(Z,">=","superset?"),be(Z,"difference","-"),be(Z,"filter!","select!"),be(Z,"length","size"),be(Z,"map!","collect!"),be(Z,"member?","include?"),be(Z,"union","|")}("::",null,ee)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,c=e.$$$;return e.add_stubs("[],pwd"),function(f,p,h){var z=t(f,p,"Dir");return function(D,j){return r(D,"$chdir",function he(be){var ee=he.$$p||s,Y=s;return he.$$p=null,function(){try{return Y=e.current_dir,e.current_dir=be,e.yieldX(ee,[])}finally{e.current_dir=Y}}()}),r(D,"$pwd",function(){return e.current_dir||"."}),r(D,"$home",function(){var be=s;return n(be=c("ENV")["$[]"]("HOME"))?be:"."}),i(D,"getwd","pwd")}(e.get_singleton_class(z))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,c=e.rb_plus,f=e.def,p=e.Kernel,h=e.eqeq,z=e.rb_lt,D=e.rb_minus,j=e.range,he=e.send,be=e.slice,ee=e.alias,Y=[],X=e.nil,ge=e.$$$;return e.add_stubs("respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?,absolute_path,==,<,dirname,-,basename,empty?,rindex,[],length,nil?,gsub,find,=~,map,each_with_index,flatten,reject,to_proc,end_with?,expand_path,exist?"),function(se,me,Z){var xe=r(se,me,"File"),fe=[xe].concat(Z),Ae=X;return n(fe[0],"Separator",n(fe[0],"SEPARATOR","/")),n(fe[0],"ALT_SEPARATOR",X),n(fe[0],"PATH_SEPARATOR",":"),n(fe[0],"FNM_SYSCASE",0),Ae=/^[a-zA-Z]:(?:\\|\/)/,function(J,Ee){var ce=[J].concat(Ee),w=e.$r(ce);f(J,"$absolute_path",function(B,Fe){var ue=X,U=X,v=X,$=X,l=X,u=X,d=X,_=X,S=X,T=X;Fe==null&&(Fe=X),ue=w("SEPARATOR"),U=I(),v=[],B=t(B["$respond_to?"]("to_path"))?B.$to_path():B,B=i["$coerce_to!"](B,ge("String"),"to_str"),Fe=t($=Fe)?$:ge("Dir").$pwd(),l=B.substr(0,ue.length)===ue||Ae.test(B),u=Fe.substr(0,ue.length)===ue||Ae.test(Fe),t(l)?(d=B.$split(s(["[",U,"]"])),_=Ae.test(B)?"":B.$sub(s(["^([",U,"]+).*$"]),"\\1"),S=!0):(d=c(Fe.$split(s(["[",U,"]"])),B.$split(s(["[",U,"]"]))),_=Ae.test(Fe)?"":Fe.$sub(s(["^([",U,"]+).*$"]),"\\1"),S=u);for(var te,Ie=0,Je=d.length;Ie<Je;Ie++)te=d[Ie],!(te===X||te===""&&(v.length===0||S)||te==="."&&(v.length===0||S))&&(te===".."?v.pop():v.push(te));return!S&&d[0]!=="."&&v.$unshift("."),T=v.$join(ue),t(S)&&(T=c(_,T)),T},-2),f(J,"$expand_path",function(B,Fe){var ue=this,U=X,v=X,$=X,l=X,u=X;return Fe==null&&(Fe=X),U=w("SEPARATOR"),v=I(),t(B[0]==="~"||Fe&&Fe[0]==="~")&&($=w("Dir").$home(),t($)||p.$raise(ge("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),l=Ae.test($)?"":$.$sub(s(["^([",v,"]+).*$"]),"\\1"),t($["$start_with?"](l))||p.$raise(ge("ArgumentError"),"non-absolute home"),$=c($,U),u=s(["^\\~(?:",U,"|$)"]),B=B.$sub(u,$),t(Fe)&&(Fe=Fe.$sub(u,$))),ue.$absolute_path(B,Fe)},-2);function Se(ne){return t(ne["$respond_to?"]("to_path"))&&(ne=ne.$to_path()),ne=i["$coerce_to!"](ne,ge("String"),"to_str"),ne}function I(){return w("ALT_SEPARATOR")===X?e.escape_regexp(w("SEPARATOR")):e.escape_regexp(c(w("SEPARATOR"),w("ALT_SEPARATOR")))}return f(J,"$dirname",function(B,Fe){var ue=this,U=X;if(Fe==null&&(Fe=1),h(Fe,0))return B;t(z(Fe,0))&&p.$raise(ge("ArgumentError"),"level can't be negative"),U=I(),B=Se(B);var v=B.match(new RegExp("^["+U+"]")),$;return B=B.replace(new RegExp("["+U+"]+$"),""),B=B.replace(new RegExp("[^"+U+"]+$"),""),B=B.replace(new RegExp("["+U+"]+$"),""),B===""?$=v?"/":".":$=B,Fe==1?$:ue.$dirname($,D(Fe,1))},-2),f(J,"$basename",function(B,Fe){var ue=X;return Fe==null&&(Fe=X),ue=I(),B=Se(B),B.length==0||(Fe!==X?Fe=i["$coerce_to!"](Fe,ge("String"),"to_str"):Fe=null,B=B.replace(new RegExp("(.)["+ue+"]*$"),"$1"),B=B.replace(new RegExp("^(?:.*["+ue+"])?([^"+ue+"]+)$"),"$1"),Fe===".*"?B=B.replace(/\.[^\.]+$/,""):Fe!==null&&(Fe=e.escape_regexp(Fe),B=B.replace(new RegExp(""+Fe+"$"),""))),B},-2),f(J,"$extname",function(B){var Fe=this,ue=X,U=X;return B=Se(B),ue=Fe.$basename(B),t(ue["$empty?"]())||(U=ue["$[]"](j(1,-1,!1)).$rindex("."),t(U["$nil?"]())||h(c(U,1),D(ue.$length(),1)))?"":ue["$[]"](e.Range.$new(c(U,1),-1,!1))}),f(J,"$exist?",function(B){return e.modules[B]!=null}),f(J,"$directory?",function(B){var Fe=X;Fe=[];for(var ue in e.modules)Fe.push(ue);return B=B.$gsub(s(["(^.",w("SEPARATOR"),"+|",w("SEPARATOR"),"+$)"])),he(Fe,"find",[],function(v){return v==null&&(v=X),v["$=~"](s(["^",B]))})}),f(J,"$join",function(B){var Fe,ue,U=X;return Fe=be(arguments),ue=Fe,t(ue["$empty?"]())?"":(U="",ue=he(ue.$flatten().$each_with_index(),"map",[],function($,l){return $==null&&($=X),l==null&&(l=X),h(l,0)&&t($["$empty?"]())||h(ue.$length(),c(l,1))&&t($["$empty?"]())?w("SEPARATOR"):$}),ue=he(ue,"reject",[],"empty?".$to_proc()),he(ue,"each_with_index",[],function($,l){var u=X;return $==null&&($=X),l==null&&(l=X),u=ue["$[]"](c(l,1)),t(u["$nil?"]())?U=""+U+$:(t($["$end_with?"](w("SEPARATOR")))&&t(u["$start_with?"](w("SEPARATOR")))&&($=$.$sub(s([w("SEPARATOR"),"+$"]),"")),U=t($["$end_with?"](w("SEPARATOR")))||t(u["$start_with?"](w("SEPARATOR")))?""+U+$:""+U+$+w("SEPARATOR"))}),U)},-1),f(J,"$split",function(B){return B.$split(w("SEPARATOR"))}),ee(J,"realpath","expand_path"),ee(J,"exists?","exist?")}(e.get_singleton_class(xe),fe)}("::",ge("IO"),Y)};Opal.modules["corelib/process/base"]=function(e){var t=e.klass,r=e.slice,n=e.defs,i=e.return_val,s=e.nil;return function(c,f){var p=t(c,f,"Signal");return n(p,"$trap",function(z){return r(arguments),s},-1)}("::",null),function(c,f){var p=t(c,f,"GC");return n(p,"$start",i(s))}("::",null)};Opal.modules["corelib/process"]=function(e){var t=e.module,r=e.defs,n=e.truthy,i=e.return_val,s=e.Kernel,c=e.nil,f=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(p){var h=t(p,"Process"),z=c;if(h.__clocks__=[],r(h,"$__register_clock__",function(he,be){var ee=this;return ee.__clocks__==null&&(ee.__clocks__=c),ee.$const_set(he,ee.__clocks__.$size()),ee.__clocks__["$<<"](be)}),h.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),z=!1,e.global.performance)z=function(){return performance.now()};else if(e.global.process&&process.hrtime){var D=process.hrtime();z=function(){var j=process.hrtime(D),he=j[1]/1e3|0;return j[0]*1e3+he/1e3}}return n(z)&&h.$__register_clock__("CLOCK_MONOTONIC",z),r(h,"$pid",i(0)),r(h,"$times",function(){var he=c;return he=f("Time").$now().$to_f(),f(f("Benchmark"),"Tms").$new(he,he,he,he,he)}),r(h,"$clock_gettime",function(he,be){var ee=this,Y=c;ee.__clocks__==null&&(ee.__clocks__=c),be==null&&(be="float_second"),n(Y=ee.__clocks__["$[]"](he))||s.$raise(f(f("Errno"),"EINVAL"),"clock_gettime("+he+") "+ee.__clocks__["$[]"](he));var X=Y();switch(be){case"float_second":return X/1e3;case"float_millisecond":return X/1;case"float_microsecond":return X*1e3;case"second":return X/1e3|0;case"millisecond":return X/1|0;case"microsecond":return X*1e3|0;case"nanosecond":return X*1e6|0;default:s.$raise(f("ArgumentError"),"unexpected unit: "+be)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,c=e.rb_divide,f=e.Kernel,p=e.Opal,h=[],z=e.nil,D=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(j,he,be){var ee=t(j,he,"Random"),Y=[ee].concat(be);return function(X,ge){var se=r(X,"Formatter"),me=[se].concat(ge),Z=e.$r(me);return n(se,"$hex",function(fe){var Ae=this;fe==null&&(fe=z),fe=D("Random").$_verify_count(fe);for(var J=Ae.$bytes(fe),Ee="",ce=0;ce<fe;ce++)Ee+=J.charCodeAt(ce).toString(16).padStart(2,"0");return Ee.$encode("US-ASCII")},-1),n(se,"$random_bytes",function(fe){var Ae=this;return fe==null&&(fe=z),Ae.$bytes(fe)},-1),n(se,"$base64",function(fe){var Ae=this;return fe==null&&(fe=z),D("Base64").$strict_encode64(Ae.$random_bytes(fe)).$encode("US-ASCII")},-1),n(se,"$urlsafe_base64",function(fe,Ae){var J=this;return fe==null&&(fe=z),Ae==null&&(Ae=!1),D("Base64").$urlsafe_encode64(J.$random_bytes(fe),Ae).$encode("US-ASCII")},-1),n(se,"$uuid",function(){var fe=this,Ae=z;return Ae=fe.$hex(16).$split(""),Ae["$[]="](12,"4"),Ae["$[]="](16,(parseInt(Ae["$[]"](16),16)&3|8).toString(16)),Ae=[Ae["$[]"](i(0,8,!0)),Ae["$[]"](i(8,12,!0)),Ae["$[]"](i(12,16,!0)),Ae["$[]"](i(16,20,!0)),Ae["$[]"](i(20,32,!0))],Ae=s(Ae,"map",[],"join".$to_proc()),Ae.$join("-")}),n(se,"$random_float",function(){var fe=this,Ae=z,J=z;return Ae=fe.$bytes(4),J=0,s(4,"times",[],function(ce){return ce==null&&(ce=z),J=J["$<<"](8),J=J["$|"](Ae["$[]"](ce).$ord())}),c(J.$abs(),2147483647)}),n(se,"$random_number",function(fe){var Ae=this;function J(){return Ae.$random_float()}function Ee(w){return Math.floor(J()*w)}function ce(){var w=fe.begin,Se=fe.end;if(w===z||Se===z)return z;var I=Se-w;return I<0?z:I===0?w:(Se%1===0&&w%1===0&&!fe.excl&&I++,Ee(I)+w)}return fe==null?J():fe.$$is_range?ce():fe.$$is_number?(fe<=0&&f.$raise(D("ArgumentError"),"invalid argument - "+fe),fe%1===0?Ee(fe):J()*fe):(fe=p["$coerce_to!"](fe,D("Integer"),"to_int"),fe<=0&&f.$raise(D("ArgumentError"),"invalid argument - "+fe),Ee(fe))},-1),n(se,"$alphanumeric",function(fe){var Ae=this,J=z;return fe==null&&(fe=z),fe=Z("Random").$_verify_count(fe),J=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(D("Array"),"new",[fe],function Ee(ce){var w=Ee.$$s==null?this:Ee.$$s;return J["$[]"](w.$random_number(J.$length()))},{$$s:Ae}).$join()},-1)}(ee,Y),ee.$include(D(D("Random"),"Formatter")),ee.$extend(D(D("Random"),"Formatter"))}("::",null,h)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,c=i;return e.add_stubs("generator="),c=function(){var f=624,p=397,h=2567483615,z=2147483648,D=2147483647,j=function(me,Z){return me&z|Z&D},he=function(me,Z){return j(me,Z)>>>1^(Z&1?h:0)};function be(me){var Z={left:0,next:f,state:new Array(f)};return ee(Z,me),Z}function ee(me,Z){var xe;for(me.state[0]=Z>>>0,xe=1;xe<f;xe++)me.state[xe]=1812433253*(me.state[xe-1]^me.state[xe-1]>>30>>>0)+xe,me.state[xe]&=4294967295;me.left=1,me.next=f}function Y(me){var Z=0,xe=me.state,fe;for(me.left=f,me.next=0,fe=f-p+1;--fe;Z++)xe[Z]=xe[Z+p]^he(xe[Z+0],xe[Z+1]);for(fe=p;--fe;Z++)xe[Z]=xe[Z+(p-f)]^he(xe[Z+0],xe[Z+1]);xe[Z]=xe[Z+(p-f)]^he(xe[Z+0],xe[0])}function X(me){var Z;return--me.left<=0&&Y(me),Z=me.state[me.next++],Z^=Z>>>11,Z^=Z<<7&2636928640,Z^=Z<<15&4022730752,Z^=Z>>>18,Z>>>0}function ge(me,Z){return me>>>=5,Z>>>=6,(me*67108864+Z)*(1/9007199254740992)}function se(me){var Z=X(me),xe=X(me);return ge(Z,xe)}return{genrand_real:se,init:be}}(),function(f,p){var h=t(f,p,"Random"),z,D=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(h,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*D)},reseed:function(j){return c.init(j)},rand:function(j){return c.genrand_real(j)}}),z=[s(h,"MERSENNE_TWISTER_GENERATOR")],n(h,"generator=",z),z[z.length-1]}("::",null)};Opal.modules["corelib/random"]=function(e){var t=e.truthy,r=e.klass,n=e.Kernel,i=e.defs,s=e.Opal,c=e.def,f=e.eqeqeq,p=e.send,h=e.top,z=e.nil,D=e.$$$;return e.add_stubs("require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set"),h.$require("corelib/random/formatter"),function(j,he){var be=r(j,he,"Random");return be.$attr_reader("seed","state"),i(be,"$_verify_count",function(Y){return t(Y)||(Y=16),typeof Y!="number"&&(Y=Y.$to_int()),Y<0&&n.$raise(D("ArgumentError"),"negative string size (or size too big)"),Y=Math.floor(Y),Y}),c(be,"$initialize",function(Y){var X=this;return Y==null&&(Y=D("Random").$new_seed()),Y=s["$coerce_to!"](Y,D("Integer"),"to_int"),X.state=Y,X.$reseed(Y)},-1),c(be,"$reseed",function(Y){var X=this;return X.seed=Y,X.$rng=e.$$rand.reseed(Y)}),i(be,"$new_seed",function(){return e.$$rand.new_seed()}),i(be,"$rand",function(Y){var X=this;return D(X,"DEFAULT").$rand(Y)},-1),i(be,"$srand",function(Y){var X=this,ge=z;return Y==null&&(Y=D("Random").$new_seed()),Y=s["$coerce_to!"](Y,D("Integer"),"to_int"),ge=D(X,"DEFAULT").$seed(),D(X,"DEFAULT").$reseed(Y),ge},-1),i(be,"$urandom",function(Y){return D("SecureRandom").$bytes(Y)}),c(be,"$==",function(Y){var X=this,ge=z;return f(D("Random"),Y)?t(ge=X.$seed()["$=="](Y.$seed()))?X.$state()["$=="](Y.$state()):ge:!1}),c(be,"$bytes",function(Y){var X=this;return Y=D("Random").$_verify_count(Y),p(D("Array"),"new",[Y],function ge(){var se=ge.$$s==null?this:ge.$$s;return se.$rand(255).$chr()},{$$s:X}).$join().$encode("ASCII-8BIT")}),i(be,"$bytes",function(Y){var X=this;return D(X,"DEFAULT").$bytes(Y)}),c(be,"$rand",function(Y){var X=this;return X.$random_number(Y)},-1),c(be,"$random_float",function(){var Y=this;return Y.state++,e.$$rand.rand(Y.$rng)}),i(be,"$random_float",function(){var Y=this;return D(Y,"DEFAULT").$random_float()}),i(be,"$generator=",function(Y){var X=this;return e.$$rand=Y,t(X["$const_defined?"]("DEFAULT"))?D(X,"DEFAULT").$reseed():X.$const_set("DEFAULT",X.$new(X.$new_seed()))})}("::",null),h.$require("corelib/random/mersenne_twister")};Opal.modules["corelib/unsupported"]=function(e){var t=e.Kernel,r=e.klass,n=e.send,i=e.slice,s=e.module,c=e.def,f=e.return_val,p=e.alias,h=e.defs,z=e.top,D=[],j=e.nil,he=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 be={};function ee(X){switch(e.config.unsupported_features_severity){case"error":t.$raise(he("NotImplementedError"),X);break;case"warning":Y(X);break}}function Y(X){be[X]||(be[X]=!0,z.$warn(X))}return function(X,ge){var se=r(X,ge,"String"),me="String#%s not supported. Mutable String methods are not supported in Opal.";return n(["<<","capitalize!","chomp!","chop!","downcase!","gsub!","lstrip!","next!","reverse!","slice!","squeeze!","strip!","sub!","succ!","swapcase!","tr!","tr_s!","upcase!","prepend","[]=","clear","encode!","unicode_normalize!"],"each",[],function Z(xe){var fe=Z.$$s==null?this:Z.$$s;return xe==null&&(xe=j),n(fe,"define_method",[xe],function(J){return i(arguments),t.$raise(he("NotImplementedError"),me["$%"](xe))},-1)},{$$s:se})}("::",null),function(X){var ge=s(X,"Kernel"),se="Object tainting is not supported by Opal";return c(ge,"$taint",function(){var Z=this;return ee(se),Z}),c(ge,"$untaint",function(){var Z=this;return ee(se),Z}),c(ge,"$tainted?",function(){return ee(se),!1})}("::"),function(X,ge){var se=r(X,ge,"Module");return c(se,"$public",function(Z){var xe,fe,Ae=this;return xe=i(arguments),fe=xe,fe.length===0?(Ae.$$module_function=!1,j):fe.length===1?fe[0]:fe},-1),c(se,"$private_class_method",function(Z){var xe,fe;return xe=i(arguments),fe=xe,fe.length===1?fe[0]:fe},-1),c(se,"$private_method_defined?",f(!1)),c(se,"$private_constant",function(Z){return i(arguments),j},-1),p(se,"nesting","public"),p(se,"private","public"),p(se,"protected","public"),p(se,"protected_method_defined?","private_method_defined?"),p(se,"public_class_method","private_class_method"),p(se,"public_instance_method","instance_method"),p(se,"public_instance_methods","instance_methods"),p(se,"public_method_defined?","method_defined?")}("::",null),function(X){var ge=s(X,"Kernel");return c(ge,"$private_methods",function(me){return i(arguments),[]},-1),p(ge,"protected_methods","private_methods"),p(ge,"private_instance_methods","private_methods"),p(ge,"protected_instance_methods","private_methods")}("::"),function(X,ge){var se=s(X,"Kernel"),me=[se].concat(ge),Z=e.$r(me);return c(se,"$eval",function(fe){return i(arguments),t.$raise(he("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+Z("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",D),h(z,"$public",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1),h(z,"$private",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1)};Opal.queue(function(e){var t=e.Object;return e.nil,e.add_stubs("require,autoload"),t.$require("opal/base"),t.$require("opal/mini"),t.$require("corelib/kernel/format"),t.$require("corelib/string/encoding"),t.$autoload("Math","corelib/math"),t.$require("corelib/complex/base"),t.$autoload("Complex","corelib/complex"),t.$require("corelib/rational/base"),t.$autoload("Rational","corelib/rational"),t.$require("corelib/time"),t.$autoload("Struct","corelib/struct"),t.$autoload("Set","corelib/set"),t.$autoload("Dir","corelib/dir"),t.$autoload("File","corelib/file"),t.$require("corelib/process/base"),t.$autoload("Process","corelib/process"),t.$autoload("Random","corelib/random"),t.$require("corelib/unsupported")});function S6(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ae=a.klass,re=a.defs,V=[];return a.nil,a.add_stubs("new"),function(_e,y,W){var Ue=ae(_e,y,"File"),G=[Ue].concat(W),Me=a.$r(G);return re(Ue,"$read",function(et){var Re="",Ge=-1;try{var De=new XMLHttpRequest;De.open("GET",et,!1),De.addEventListener("load",function(){Ge=this.status,(Ge===0||Ge===200)&&(Re=this.responseText)}),De.overrideMimeType("text/plain"),De.send()}catch(Pe){throw Me("IOError").$new("Error reading file or directory: "+et+"; reason: "+Pe.message)}if(Ge===404||Ge===0&&!Re)throw Me("IOError").$new("No such file or directory: "+et);return Re})}(V[0],null,V)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ae=a.const_set,re=a.top,V=[];a.nil,a.add_stubs("require");var _e,y,W,Ue;return Ue=Ue||"xmlhttprequest",_e=_e||"browser",y=y||"",W=W||"",ae(V[0],"JAVASCRIPT_IO_MODULE",Ue),ae(V[0],"JAVASCRIPT_PLATFORM",_e),ae(V[0],"JAVASCRIPT_ENGINE",y),ae(V[0],"JAVASCRIPT_FRAMEWORK",W),re.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.truthy,y=a.def,W=[],Ue=a.nil,G=a.$$$;return a.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(Me,E){var et=ae(Me,"Asciidoctor"),Re=[et].concat(E);return function(Ge,De,Pe){var dt=re(Ge,De,"AbstractNode"),Ye=[dt].concat(Pe),st=a.$r(Ye),We=dt.$$prototype;return We.document=Ue,y(dt,"$read_contents",function(ft,R){var tt=this,A=Ue,rt=Ue,lt=Ue;if(R==null&&(R=V([],{})),A=tt.document,_e(st("Helpers")["$uriish?"](ft))||_e(rt=R["$[]"]("start"))&&_e(st("Helpers")["$uriish?"](rt))&&_e(ft=A.$path_resolver().$web_path(ft,rt)))if(_e(A.$path_resolver()["$descends_from?"](ft,A.$base_dir()))||_e(ft["$start_with?"]("chrome://"))||_e(A["$attr?"]("allow-uri-read")))try{return _e(R["$[]"]("normalize"))?st("Helpers").$prepare_source_string(G("File").$read(ft)).$join(st("LF")):G("File").$read(ft)}catch(K){if(a.rescue(K,[st("StandardError")]))try{return _e(R.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("could not retrieve contents of "+(_e(lt=R["$[]"]("label"))?lt:"asset")+" at URI: "+ft),Ue}finally{a.pop_exception()}else throw K}else return _e(R.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("cannot retrieve contents of "+(_e(lt=R["$[]"]("label"))?lt:"asset")+" at URI: "+ft+" (allow-uri-read attribute not enabled)"),Ue;else return ft=tt.$normalize_system_path(ft,R["$[]"]("start"),Ue,V(["target_name"],{target_name:_e(lt=R["$[]"]("label"))?lt:"asset"})),tt.$read_asset(ft,V(["normalize","warn_on_failure","label"],{normalize:R["$[]"]("normalize"),warn_on_failure:R.$fetch("warn_on_failure",!0),label:R["$[]"]("label")}))},-2),y(dt,"$generate_data_uri_from_uri",function(ft,R){var tt=this,A="",rt="",lt=-1;try{var K=new XMLHttpRequest;K.open("GET",ft,!1),K.overrideMimeType("text/plain; charset=x-user-defined"),K.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var M="",He=this.responseText,we=0,qe=He.length;we<qe;++we){var ze=He.charCodeAt(we),oe=ze&255;M+=String.fromCharCode(oe)}rt=btoa(M),A=this.getResponseHeader("content-type")}}),K.send(null),A||(ft.endsWith(".jpeg")||ft.endsWith(".jpg")||ft.endsWith(".jpe")?A="image/jpg":ft.endsWith(".png")?A="image/png":ft.endsWith(".svg")?A="image/svg+xml":ft.endsWith(".bmp")?A="image/bmp":(ft.endsWith(".tif")||ft.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: "+ft),ft):"data:"+A+";base64,"+rt},-2)}(Re[0],null,Re)}(W[0],W)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ae=a.module,re=a.slice,V=a.send,_e=a.to_a,y=a.defs,W=[],Ue=a.nil;return a.add_stubs("new,path"),function(G,Me){var E=ae(G,"OpenURI"),et=[E].concat(Me),Re=a.$r(et);return y(Re("OpenURI"),"$open_uri",function Ge(De,Pe){var dt,Ye,st=Ge.$$p||Ue,We=this,Oe=Ue;return Ge.$$p=null,dt=re(arguments,1),Ye=dt,Oe=V(Re("File"),"new",[We.$path()].concat(_e(Ye))),st!==Ue?a.yield1(st,Oe):Oe},-2)}(W[0],W)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ae=a.module,re=a.klass,V=a.truthy,_e=a.def,y=[],W=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,G){var Me=ae(Ue,"Asciidoctor"),E=[Me].concat(G);return function(et,Re){var Ge=re(et,Re,"PathResolver");return _e(Ge,"$root?",function(Pe){var dt=this,Ye=W;return V(Ye=dt["$absolute_path?"](Pe))?Ye:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(E[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ae=a.module,re=a.klass,V=a.truthy,_e=a.eqeq,y=a.not,W=a.def,Ue=[],G=a.nil;return a.add_stubs("posixify,new,base_dir,start_with?,uriish?,key?,attributes,descends_from?,replace_next_line,absolute_path?,==,empty?,!,slice,length"),function(Me,E){var et=ae(Me,"Asciidoctor"),Re=[et].concat(E),Ge=a.$r(Re);return function(De,Pe,dt){var Ye=re(De,Pe,"PreprocessorReader"),st=[Ye].concat(dt),We=a.$r(st),Oe=Ye.$$prototype;return Oe.path_resolver=Oe.document=Oe.include_stack=Oe.dir=G,W(Ye,"$resolve_include_path",function(R,tt,A){var rt,lt=this,K=G,M=G,He=G,we=G,qe=G,ze=G,oe=G,ye=G;if(K=(lt.path_resolver=V(M=lt.path_resolver)?M:We("PathResolver").$new("\\")).$posixify(R),rt=["file",lt.document.$base_dir()],rt[0],He=rt[1],V(K["$start_with?"]("file://")))we=qe=K;else if(V(We("Helpers")["$uriish?"](K))){if(!(V(lt.path_resolver["$descends_from?"](K,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+R+"["+tt+"]");we=qe=K}else if(V(lt.path_resolver["$absolute_path?"](K)))we=qe="file://"+(V(K["$start_with?"]("/"))?"":"/")+K;else if(_e(ze=V(oe=lt.include_stack["$empty?"]())?He:lt.dir,"."))we=qe=K;else if(V(ze["$start_with?"]("file://"))||y(We("Helpers")["$uriish?"](ze)))we=""+ze+"/"+K,V(oe)?qe=K:_e(He,".")||y(ye=lt.path_resolver["$descends_from?"](we,He))?qe=we:qe=we.$slice(ye,we.$length());else if(V(oe))we=""+ze+"/"+(qe=K);else if(V(ye=lt.path_resolver["$descends_from?"](ze,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read")))we=""+ze+"/"+K,qe=V(ye)?we.$slice(ye,we.$length()):K;else return lt.$replace_next_line("link:"+R+"["+tt+"]");return[we,"file",qe]})}(Re[0],Ge("Reader"),Re)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ae=a.eqeq,re=a.top,V=[],_e=a.$r(V),y=a.nil;return a.add_stubs("==,require"),ae(_e("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(re.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),re.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),re.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),re.$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 ae=a.module,re=a.slice,V=a.send,_e=a.to_a,y=a.def,W=a.return_val,Ue=[],G=a.nil;return a.add_stubs("new"),function(Me,E){var et=ae(Me,"Kernel"),Re=[et].concat(E),Ge=a.$r(Re);return y(et,"$open",function De(Pe,dt){var Ye,st,We=De.$$p||G,Oe=G;return De.$$p=null,Ye=re(arguments,1),st=Ye,Oe=V(Ge("File"),"new",[Pe].concat(_e(st))),We!==G?a.yield1(We,Oe):Oe},-2),y(et,"$__dir__",W(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ae=a.klass,re=a.def,V=a.truthy,_e=a.gvars,y=a.return_val,W=a.defs,Ue=[],G=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(Me,E,et){var Re=ae(Me,E,"File"),Ge=[Re].concat(et),De=a.$r(Ge),Pe=Re.$$prototype;return Pe.eof=Pe.path=G,Re.$attr_reader("eof"),Re.$attr_reader("lineno"),Re.$attr_reader("path"),re(Re,"$initialize",function(Ye,st){var We=this,Oe=G;return st==null&&(st="r"),We.path=Ye,We.contents=G,We.eof=!1,We.lineno=0,st=st.$delete("b"),Oe=/:(.*)/,st=st.$gsub(Oe,""),We.flags=st},-2),re(Re,"$read",function(){var Ye=this,st=G;return V(Ye.eof)?"":(st=De("File").$read(Ye.path),Ye.eof=!0,Ye.lineno=st.$size(),st)}),re(Re,"$each_line",function dt(Ye){var st=dt.$$p||G,We=this,Oe=G;if(_e["/"]==null&&(_e["/"]=G),dt.$$p=null,Ye==null&&(Ye=_e["/"]),V(We.eof))return st!==G?We:[].$to_enum();if(st!==G){Oe=De("File").$read(We.path),We.eof=!1,We.lineno=0;for(var ft=Oe.$chomp(),R=Oe.length!=ft.length,tt=ft.split(Ye),A=0,rt=tt.length;A<rt;A++)We.lineno+=1,A<rt-1||R?a.yield1(st,tt[A]+Ye):a.yield1(st,tt[A]);return We.eof=!0,We}else return We.$read().$each_line()},-1),re(Re,"$readlines",function(){var Ye=this;return De("File").$readlines(Ye.path)}),function(dt,Ye){var st=[dt].concat(Ye),We=a.$r(st);return re(dt,"$readlines",function(ft,R){var tt=G;return _e["/"]==null&&(_e["/"]=G),R==null&&(R=_e["/"]),tt=We("File").$read(ft),tt.$split(R)},-2),re(dt,"$file?",y(!0)),re(dt,"$readable?",y(!0)),re(dt,"$read",y(""))}(a.get_singleton_class(Re),Ge)}(Ue[0],null,Ue),function(Me,E,et){var Re=ae(Me,E,"IO"),Ge=[Re].concat(et),De=a.$r(Ge);return W(Re,"$read",function(dt){return De("File").$read(dt)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ae=a.klass,re=a.send,V=a.def,_e=[],y=a.nil;return a.add_stubs("[]="),function(W,Ue){var G=ae(W,Ue,"MatchData"),Me=G.$$prototype;return Me.matches=y,V(G,"$[]=",function(et,Re){var Ge,De=this;return Ge=[et,Re],re(De.matches,"[]=",Ge),Ge[Ge.length-1]})}(_e[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ae=a.klass,re=a.truthy,V=a.rb_lt,_e=a.def,y=a.alias,W=a.rb_ge,Ue=a.eqeq,G=a.rb_minus,Me=[],E=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(et,Re){var Ge=ae(et,Re,"String");return re(Ge["$method_defined?"]("limit_bytesize"))||_e(Ge,"$limit_bytesize",function(Pe){var dt=this,Ye=E;return re(V(Pe,dt.$bytes().$length()))?(Ye=dt.$byteslice(0,Pe),Ye.$to_s()):dt.$to_s()}),re(Ge["$method_defined?"]("limit"))||y(Ge,"limit","limit_bytesize"),y(Ge,"_original_byteslice","byteslice"),_e(Ge,"$byteslice",function(Pe,dt){var Ye=this;return dt==null&&(dt=1),Ue(Pe,3)&&re(W(dt,Pe))&&re(Ye.charCodeAt()===65279)?Ye.substr(1).$byteslice(0,G(dt,3)):Ye.$_original_byteslice(Pe,dt)},-2),y(Ge,"_original_unpack","unpack"),_e(Ge,"$unpack",function(Pe){var dt=this;if(Ue(Pe,"C3")){if(re(dt.charCodeAt()===65279))return[239,187,191];for(var Ye=[],st=0;st<3;st++)st<dt.length?Ye.push(dt.charCodeAt(st)):Ye.push(E);return Ye}else return dt.$_original_unpack(Pe)})}(Me[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ae=a.module,re=a.defs,V=a.return_self,_e=a.def,y=[];return a.nil,a.add_stubs("extend"),function(W,Ue){var G=ae(W,"URI"),Me=[G].concat(Ue),E=a.$r(Me);return re(G,"$parse",function(Re){return Re.$extend(E("URI"))}),_e(G,"$path",V)}(y[0],y)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ae=a.module,re=a.defs,V=a.ensure_kwargs,_e=a.truthy,y=[],W=a.nil;return a.add_stubs("delete"),function(Ue){var G=ae(Ue,"Base64"),Me,E;return Me=a.global.btoa||function(et){var Re;return et instanceof Buffer?Re=et:Re=Buffer.from(et.toString(),"binary"),Re.toString("base64")},E=a.global.atob||function(et){return Buffer.from(et,"base64").toString("binary")},re(G,"$decode64",function(Re){return E(Re.replace(/\r?\n/g,""))}),re(G,"$encode64",function(Re){return Me(Re).replace(/(.{60})/g,`$1
|
|
412
|
-
`).replace(/([^\n])$/g,`$1
|
|
413
|
-
`)}),re(G,"$strict_decode64",function(Re){return E(Re)}),re(G,"$strict_encode64",function(Re){return Me(Re)}),re(G,"$urlsafe_decode64",function(Re){return E(Re.replace(/\-/g,"+").replace(/_/g,"/"))}),re(G,"$urlsafe_encode64",function(Re,Ge){var De,Pe=W;return Ge=V(Ge),De=Ge.$$smap.padding,De==null&&(De=!0),Pe=Me(Re).replace(/\+/g,"-").replace(/\//g,"_"),_e(De)||(Pe=Pe.$delete("=")),Pe},-2)}(y[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ae=a.klass,re=a.truthy,V=a.rb_gt,_e=a.def,y=[],W=a.$r(y);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,G,Me){var E=ae(Ue,G,"Number"),et=[E].concat(Me),Re=a.$r(et);return _e(E,"$round",function(De){var Pe=this;return De=Re("Opal")["$coerce_to!"](De,Re("Integer"),"to_int"),re(V(De,0))?Number(Pe.toFixed(De)):Math.round(Pe)},-1)}(y[0],W("Numeric"),y)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext/kernel"),ae.$require("asciidoctor/js/opal_ext/file"),ae.$require("asciidoctor/js/opal_ext/match_data"),ae.$require("asciidoctor/js/opal_ext/string"),ae.$require("asciidoctor/js/opal_ext/uri"),ae.$require("asciidoctor/js/opal_ext/base64"),ae.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",ae.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var ae=a.module,re=a.const_set,V=a.send,_e=a.gvars,y=a.truthy,W=a.defs,Ue=a.rb_plus,G=[],Me=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(E,et){var Re=ae(E,"Asciidoctor"),Ge=[Re].concat(et),De=a.$r(Ge);return re(Ge[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),W(Re,"$unpack_hex_range",function(dt){return V(dt,"gsub",[De("HEX_RANGE_RX")],function(){var st,We=Me;return"\\u"+((st=_e["~"])===Me?Me:st["$[]"](1))+(y(We=(st=_e["~"])===Me?Me:st["$[]"](2))?"-\\u"+((st=_e["~"])===Me?Me:st["$[]"](2)):We)})}),re(Ge[0],"P_L",Ue("A-Za-z",Re.$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"))),re(Ge[0],"P_Nl",Re.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),re(Ge[0],"P_Nd",Ue("0-9",Re.$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"))),re(Ge[0],"P_Pc",Re.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),re(Ge[0],"CC_ALPHA",""+De("P_L")+De("P_Nl")),re(Ge[0],"CG_ALPHA","["+De("CC_ALPHA")+"]"),re(Ge[0],"CC_ALNUM",""+De("CC_ALPHA")+De("P_Nd")),re(Ge[0],"CG_ALNUM","["+De("CC_ALNUM")+"]"),re(Ge[0],"CC_WORD",""+De("CC_ALNUM")+De("P_Pc")),re(Ge[0],"CG_WORD","["+De("CC_WORD")+"]"),re(Ge[0],"CG_BLANK","[ \\t]"),re(Ge[0],"CC_EOL","(?=\\n|$)"),re(Ge[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),re(Ge[0],"CC_ALL","[\\s\\S]"),re(Ge[0],"CC_ANY","[^\\n]")}(G[0],G)},Opal.modules.strscan=function(a){var ae=a.klass,re=a.def,V=a.truthy,_e=a.eqeqeq,y=a.Opal,W=a.return_ivar,Ue=a.send,G=a.alias,Me=[],E=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,Re,Ge){var De=ae(et,Re,"StringScanner"),Pe=[De].concat(Ge),dt=a.$r(Pe),Ye=De.$$prototype;return Ye.pos=Ye.string=Ye.working=Ye.matched=Ye.prev_pos=Ye.match=E,De.$attr_reader("pos","matched"),re(De,"$initialize",function(We){var Oe=this;return Oe.string=We,Oe.pos=0,Oe.matched=E,Oe.working=We,Oe.match=[]}),De.$attr_reader("string"),re(De,"$beginning_of_line?",function(){var We=this;return We.pos===0||We.string.charAt(We.pos-1)===`
|
|
414
|
-
`}),re(De,"$scan",function(We){var Oe=this;We=Oe.$anchor(We);var ft=We.exec(Oe.working);return ft==null?Oe.matched=E:(Oe.prev_pos=Oe.pos,Oe.pos+=ft[0].length,Oe.working=Oe.working.substring(ft[0].length),Oe.matched=ft[0],Oe.match=ft,ft[0])}),re(De,"$scan_until",function(We){var Oe=this;We=Oe.$anchor(We);for(var ft=Oe.working,R=0;ft.length!=R;++R){var tt=We.exec(ft.substr(R));if(tt!==null){var A=R+tt[0].length,rt=ft.substr(0,A);return Oe.matched=tt[0],Oe.match=tt,Oe.prev_pos=Oe.pos+R,Oe.pos+=A,Oe.working=ft.substr(A),rt}}return Oe.matched=E}),re(De,"$[]",function(We){var Oe=this,ft=E;if(V(Oe.match["$empty?"]()))return E;_e(dt("Symbol"),ft=We)?We=We.$to_s():_e(dt("String"),ft)||(We=y["$coerce_to!"](We,dt("Integer"),"to_int"));var R=Oe.match;return We<0&&(We+=R.length),We<0||We>=R.length||R[We]==null?E:R[We]}),re(De,"$check",function(We){var Oe=this;We=Oe.$anchor(We);var ft=We.exec(Oe.working);return ft==null?Oe.matched=E:Oe.matched=ft[0]}),re(De,"$check_until",function(We){var Oe=this,ft=Oe.prev_pos,R=Oe.pos,tt=Oe.working,A=Oe.$scan_until(We);return Oe.prev_pos=ft,Oe.pos=R,Oe.working=tt,A}),re(De,"$peek",function(We){var Oe=this;return Oe.working.substring(0,We)}),re(De,"$eos?",function(){var We=this;return We.working.length===0}),re(De,"$exist?",function(We){var Oe=this,ft=We.exec(Oe.working);return ft==null?E:ft.index==0?0:ft.index+1}),re(De,"$skip",function(We){var Oe=this;We=Oe.$anchor(We);var ft=We.exec(Oe.working);if(ft==null)return Oe.match=[],Oe.matched=E;var R=ft[0],tt=R.length;return Oe.matched=R,Oe.match=ft,Oe.prev_pos=Oe.pos,Oe.pos+=tt,Oe.working=Oe.working.substring(tt),tt}),re(De,"$skip_until",function(We){var Oe=this,ft=Oe.$scan_until(We);return ft===E?E:(Oe.matched=ft.substr(-1),ft.length)}),re(De,"$get_byte",function(){var We=this,Oe=E;return We.pos<We.string.length?(We.prev_pos=We.pos,We.pos+=1,Oe=We.matched=We.working.substring(0,1),We.working=We.working.substring(1)):We.matched=E,Oe}),re(De,"$match?",function(We){var Oe=this;We=Oe.$anchor(We);var ft=We.exec(Oe.working);return ft==null?E:(Oe.prev_pos=Oe.pos,ft[0].length)}),re(De,"$pos=",function(We){var Oe=this;return We<0&&(We+=Oe.string.$length()),Oe.pos=We,Oe.working=Oe.string.slice(We)}),re(De,"$matched_size",function(){var We=this;return We.matched===E?E:We.matched.length}),re(De,"$post_match",function(){var We=this;return We.matched===E?E:We.string.substr(We.pos)}),re(De,"$pre_match",function(){var We=this;return We.matched===E?E:We.string.substr(0,We.prev_pos)}),re(De,"$reset",function(){var We=this;return We.working=We.string,We.matched=E,We.pos=0}),re(De,"$rest",W("working")),re(De,"$rest?",function(){var We=this;return We.working.length!==0}),re(De,"$rest_size",function(){var We=this;return We.$rest().$size()}),re(De,"$terminate",function(){var We,Oe=this;return Oe.match=E,We=[Oe.string.$length()],Ue(Oe,"pos=",We),We[We.length-1]}),re(De,"$unscan",function(){var We=this;return We.pos=We.prev_pos,We.prev_pos=E,We.match=E,We}),G(De,"bol?","beginning_of_line?"),G(De,"getch","get_byte"),De.$private(),re(De,"$anchor",function(We){var Oe=We.toString().match(/\/([^\/]+)$/);return Oe=Oe?Oe[1]:void 0,new RegExp("^(?:"+We.source+")",Oe)})}(Me[0],null,Me)},Opal.modules["asciidoctor/js"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext"),ae.$require("asciidoctor/js/rx"),ae.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ae=a.klass,re=a.truthy,V=a.alias,_e=[],y=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(W,Ue){var G=ae(W,Ue,"NilClass");return re(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","nil?")}(_e[0],null),function(W,Ue){var G=ae(W,Ue,"String");return re(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(W,Ue){var G=ae(W,Ue,"Array");return re(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(W,Ue){var G=ae(W,Ue,"Hash");return re(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(W,Ue){var G=ae(W,Ue,"Numeric");return re(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","nil?")}(_e[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ae=a.eqeq,re=a.send,V=a.slice,_e=a.truthy,y=a.rb_lt,W=a.rb_gt,Ue=a.send2,G=a.find_super,Me=a.def,E=a.top,et=[],Re=a.$r(et),Ge=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ae(Re("Hash").$instance_method("merge").$arity(),1)?Re("Hash").$send("prepend",re(Re("Module"),"new",[],function De(){var Pe=De.$$s==null?this:De.$$s;return Me(Pe,"$merge",function dt(Ye){var st,We;dt.$$p;var Oe=this,ft=Ge;return dt.$$p=null,st=V(arguments),We=st,_e(y(ft=We.$length(),1))?Oe.$dup():_e(W(ft,1))?re(We,"inject",[Oe],function(tt,A){return tt==null&&(tt=Ge),A==null&&(A=Ge),tt.$merge(A)}):Ue(Oe,G(Oe,"merge",dt,!1,!0),"merge",[We["$[]"](0)],null)},-1)},{$$s:E})):Ge},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ae=a.truthy,re=a.klass,V=a.def,_e=[],y=a.$r(_e),W=a.nil;return a.add_stubs("method_defined?"),ae(y("MatchData")["$method_defined?"]("names"))?W:function(Ue,G){var Me=re(Ue,G,"MatchData");return V(Me,"$names",function(){return[]})}(_e[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ae=a.top;return a.nil,ae.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ae.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ae.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ae=a.module,re=a.truthy,V=a.eqeq,_e=a.gvars,y=a.def,W=a.send,Ue=a.neqeq,G=a.const_set,Me=a.hash2,E=a.to_ary,et=a.rb_times,Re=a.eqeqeq,Ge=a.rb_plus,De=a.Class,Pe=a.Object,dt=[],Ye=a.nil,st=a.$$$;return a.add_stubs("module_function,require,include?,include,==,path,message,raise,warn,logger,chomp,empty?,slice,unpack,[],[]=,byteslice,bytesize,map,rstrip,encode,encoding,nil_or_empty?,!=,tap,each_line,<<,!,start_with?,match?,gsub,rindex,index,basename,extname,length,directory?,dirname,mkdir_p,mkdir,private_constant,join,divmod,*,===,+,to_s,to_i,succ,class_for_name,const_get"),function(We,Oe){var ft=ae(We,"Asciidoctor"),R=[ft].concat(Oe);return function(tt,A){var rt=ae(tt,"Helpers"),lt=[rt].concat(A),K=a.$r(lt);return rt.$module_function(),y(rt,"$require_library",function(He,we,qe){var ze=this,oe=Ye;_e["!"]==null&&(_e["!"]=Ye),we==null&&(we=!0),qe==null&&(qe="abort");try{return ze.$require(He)}catch(ye){if(a.rescue(ye,[st("LoadError")]))try{if(re(ze["$include?"](K("Logging")))||ze.$include(K("Logging")),re(we))switch(V(we,!0)&&(we=He),qe){case"abort":oe=V(_e["!"].$path(),we)?"":" (reason: "+(re(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",ze.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+we+"' is not available"+oe+". Processing aborted.");break;case"warn":oe=V(_e["!"].$path(),we)?"":" (reason: "+(re(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",ze.$logger().$warn("optional gem '"+we+"' is not available"+oe+". Functionality disabled.");break;default:}else switch(qe){case"abort":ze.$raise(st("LoadError"),"asciidoctor: FAILED: "+_e["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":ze.$logger().$warn(""+_e["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return Ye}finally{a.pop_exception()}else throw ye}},-2),y(rt,"$prepare_source_array",function(He,we){var qe=Ye,ze=Ye,oe=Ye;return we==null&&(we=!0),re(He["$empty?"]())?[]:V(qe=(ze=(oe=He["$[]"](0)).$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),re(we)?W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):V(qe,K("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),re(we)?W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(V(ze,K("BOM_BYTES_UTF_8"))&&He["$[]="](0,oe.$byteslice(3,oe.$bytesize())),V(oe.$encoding(),K("UTF_8"))?re(we)?W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$rstrip()}):W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$chomp()}):re(we)?W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8")).$rstrip()}):W(He,"map",[],function(Q){return Q==null&&(Q=Ye),Q.$encode(K("UTF_8")).$chomp()}))},-2),y(rt,"$prepare_source_string",function(He,we){var qe=Ye,ze=Ye;return we==null&&(we=!0),re(He["$nil_or_empty?"]())?[]:(V(qe=(ze=He.$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")):V(qe,K("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")):V(ze,K("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),V(He.$encoding(),K("UTF_8"))||(He=He.$encode(K("UTF_8")))):Ue(He.$encoding(),K("UTF_8"))&&(He=He.$encode(K("UTF_8"))),re(we)?W([],"tap",[],function(ye){return ye==null&&(ye=Ye),W(He,"each_line",[],function(F){return F==null&&(F=Ye),ye["$<<"](F.$rstrip())})}):W([],"tap",[],function(ye){return ye==null&&(ye=Ye),W(He,"each_line",[],function(F){return F==null&&(F=Ye),ye["$<<"](F.$chomp())})}))},-2),V(st("RUBY_ENGINE"),"jruby")?y(rt,"$uriish?",function(He){var we=Ye,qe=Ye;return re(we=re(qe=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():qe)?K("UriSniffRx")["$match?"](He):we}):y(rt,"$uriish?",function(He){var we=Ye;return re(we=He["$include?"](":"))?K("UriSniffRx")["$match?"](He):we}),y(rt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(we){return we==="%20"?"+":"%"+we.charCodeAt(0).toString(16)})}),y(rt,"$encode_spaces_in_uri",function(He){return re(He["$include?"](" "))?He.$gsub(" ","%20"):He}),y(rt,"$rootname",function(He){var we=Ye;return re(we=He.$rindex("."))?re(He.$index("/",we))?He:He.$slice(0,we):He}),y(rt,"$basename",function(He,we){var qe=this;return we==null&&(we=Ye),re(we)?st("File").$basename(He,V(we,!0)?qe.$extname(He):we):st("File").$basename(He)},-2),y(rt,"$extname?",function(He){var we=Ye,qe=Ye;return re(we=qe=He.$rindex("."))?He.$index("/",qe)["$!"]():we}),re(st(st("File"),"ALT_SEPARATOR"))?y(rt,"$extname",function(He,we){var qe=Ye;return we==null&&(we=""),re(qe=He.$rindex("."))?re(He.$index("/",qe))||re(He.$index(st(st("File"),"ALT_SEPARATOR"),qe))?we:He.$slice(qe,He.$length()):we},-2):y(rt,"$extname",function(He,we){var qe=Ye;return we==null&&(we=""),re(qe=He.$rindex("."))?re(He.$index("/",qe))?we:He.$slice(qe,He.$length()):we},-2),y(rt,"$mkdir_p",function(He){var we=this,qe=Ye;if(re(st("File")["$directory?"](He)))return Ye;V(qe=st("File").$dirname(He),".")||we.$mkdir_p(qe);try{return st("Dir").$mkdir(He)}catch(ze){if(a.rescue(ze,[st("SystemCallError")]))try{return re(st("File")["$directory?"](He))?Ye:we.$raise()}finally{a.pop_exception()}else throw ze}}),G(lt[0],"ROMAN_NUMERALS",Me(["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 W(K("ROMAN_NUMERALS"),"map",[],function(qe,ze){var oe,ye,Q=Ye;return qe==null&&(qe=Ye),ze==null&&(ze=Ye),ye=He.$divmod(ze),oe=E(ye),Q=oe[0]==null?Ye:oe[0],He=oe[1]==null?Ye:oe[1],et(qe,Q)}).$join()}),y(rt,"$nextval",function(He){var we=Ye;return Re(st("Integer"),He)?Ge(He,1):V((we=He.$to_i()).$to_s(),He.$to_s())?Ge(we,1):He.$succ()}),y(rt,"$resolve_class",function(He){var we=this;return Re(De,He)?He:Re(st("String"),He)?we.$class_for_name(He):Ye}),y(rt,"$class_for_name",function(He){var we=this,qe=Ye;try{return Re(De,qe=Pe.$const_get(He,!1))||we.$raise(),qe}catch(ze){if(a.rescue(ze,[K("StandardError")]))try{return we.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw ze}})}(R[0],R)}(dt[0],dt)},Opal.modules.logger=function(a){var ae=a.klass,re=a.module,V=a.const_set,_e=a.send,y=a.def,W=a.eqeqeq,Ue=a.rb_plus,G=a.truthy,Me=a.rb_le,E=a.rb_lt,et=[],Re=a.nil,Ge=a.$$$;return a.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(De,Pe,dt){var Ye=ae(De,Pe,"Logger"),st=[Ye].concat(dt),We=a.$r(st),Oe=Ye.$$prototype;return Oe.level=Oe.progname=Oe.pipe=Oe.formatter=Re,function(ft,R){var tt=re(ft,"Severity"),A=[tt].concat(R);return V(A[0],"DEBUG",0),V(A[0],"INFO",1),V(A[0],"WARN",2),V(A[0],"ERROR",3),V(A[0],"FATAL",4),V(A[0],"UNKNOWN",5)}(st[0],st),Ye.$include(We("Severity")),V(st[0],"SEVERITY_LABELS",_e(We("Severity").$constants(),"map",[],function(R){return R==null&&(R=Re),[We("Severity").$const_get(R),R.$to_s()]}).$to_h()),function(ft,R,tt){var A=ae(ft,R,"Formatter"),rt=[A].concat(tt),lt=a.$r(rt);return V(rt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
|
|
415
|
-
`),V(rt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),y(A,"$call",function(M,He,we,qe){var ze=this;return ze.$format(lt("MESSAGE_FORMAT"),M.$chr(),He.$strftime(lt("DATE_TIME_FORMAT")),M,we,ze.$message_as_string(qe))}),y(A,"$message_as_string",function(M){var He=Re,we=Re;return W(Ge("String"),He=M)?M:W(Ge("Exception"),He)?Ue(""+M.$message()+" ("+M.$class()+`)
|
|
416
|
-
`,(G(we=M.$backtrace())?we:[]).$join(`
|
|
417
|
-
`)):M.$inspect()})}(st[0],null,st),Ye.$attr_reader("level"),Ye.$attr_accessor("progname"),Ye.$attr_accessor("formatter"),y(Ye,"$initialize",function(R){var tt=this;return tt.pipe=R,tt.level=We("DEBUG"),tt.formatter=We("Formatter").$new()}),y(Ye,"$level=",function(R){var tt=this,A=Re;return W(Ge("Integer"),R)?tt.level=R:G(A=We("SEVERITY_LABELS").$key(R.$to_s().$upcase()))?tt.level=A:tt.$raise(We("ArgumentError"),"invalid log level: "+R)}),y(Ye,"$info",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("INFO"),Re,R],tt.$to_proc())},-1),y(Ye,"$debug",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("DEBUG"),Re,R],tt.$to_proc())},-1),y(Ye,"$warn",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("WARN"),Re,R],tt.$to_proc())},-1),y(Ye,"$error",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("ERROR"),Re,R],tt.$to_proc())},-1),y(Ye,"$fatal",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("FATAL"),Re,R],tt.$to_proc())},-1),y(Ye,"$unknown",function ft(R){var tt=ft.$$p||Re,A=this;return ft.$$p=null,R==null&&(R=Re),_e(A,"add",[We("UNKNOWN"),Re,R],tt.$to_proc())},-1),y(Ye,"$info?",function(){var R=this;return Me(R.level,We("INFO"))}),y(Ye,"$debug?",function(){var R=this;return Me(R.level,We("DEBUG"))}),y(Ye,"$warn?",function(){var R=this;return Me(R.level,We("WARN"))}),y(Ye,"$error?",function(){var R=this;return Me(R.level,We("ERROR"))}),y(Ye,"$fatal?",function(){var R=this;return Me(R.level,We("FATAL"))}),y(Ye,"$add",function ft(R,tt,A){var rt=ft.$$p||Re,lt=this,K=Re;return ft.$$p=null,tt==null&&(tt=Re),A==null&&(A=Re),G(E(R=G(K=R)?K:We("UNKNOWN"),lt.level))||(A=G(K=A)?K:lt.progname,G(tt)||(rt!==Re?tt=a.yieldX(rt,[]):(tt=A,A=lt.progname)),lt.pipe.$write(lt.formatter.$call(G(K=We("SEVERITY_LABELS")["$[]"](R))?K:"ANY",Ge("Time").$now(),A,tt))),!0},-2)}(et[0],null,et)},Opal.modules["asciidoctor/logging"]=function(a){var ae=a.module,re=a.klass,V=a.slice,_e=a.send2,y=a.find_super,W=a.to_a,Ue=a.send,G=a.def,Me=a.truthy,E=a.rb_gt,et=a.const_set,Re=a.hash2,Ge=a.eqeqeq,De=a.gvars,Pe=a.alias,dt=a.defs,Ye=a.top,st=[],We=a.nil,Oe=a.$$$;return a.add_stubs("require,attr_reader,progname=,formatter=,new,level=,>,[],===,inspect,to_h,map,constants,const_get,<<,clear,empty?,max,attr_accessor,memoize_logger,private,logger,extend,private_class_method,merge"),Ye.$require("logger"),function(ft,R){var tt=ae(ft,"Asciidoctor"),A=[tt].concat(R);return function(rt,lt,K){var M=re(rt,lt,"Logger"),He=[M].concat(K),we=a.$r(He),qe=M.$$prototype;return qe.max_severity=We,M.$attr_reader("max_severity"),G(M,"$initialize",function ze(oe){var ye,Q,F,q=ze.$$p||We,ie=this;return ze.$$p=null,ye=V(arguments),Q=ye,_e(ie,y(ie,"initialize",ze,!1,!0),"initialize",W(Q),q),ie["$progname="]("asciidoctor"),ie["$formatter="](we("BasicFormatter").$new()),F=[we("WARN")],Ue(ie,"level=",F),F[F.length-1]},-1),G(M,"$add",function ze(oe,ye,Q){var F=ze.$$p||We,q=this,ie=We;return ze.$$p=null,ye==null&&(ye=We),Q==null&&(Q=We),Me(E(oe=Me(ie=oe)?ie:we("UNKNOWN"),q.max_severity=Me(ie=q.max_severity)?ie:oe))&&(q.max_severity=oe),_e(q,y(q,"add",ze,!1,!0),"add",[oe,ye,Q],F)},-2),function(ze,oe,ye){var Q=re(ze,oe,"BasicFormatter"),F=[Q].concat(ye),q=a.$r(F);return et(F[0],"SEVERITY_LABEL_SUBSTITUTES",Re(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),G(Q,"$call",function(O,$e,H,g){var o=We;return""+H+": "+(Me(o=q("SEVERITY_LABEL_SUBSTITUTES")["$[]"](O))?o:O)+": "+(Ge(Oe("String"),g)?g:g.$inspect())+q("LF")})}(He[0],we("Formatter"),He),function(ze){var oe=ae(ze,"AutoFormattingMessage");return G(oe,"$inspect",function(){var Q=this,F=We;return Me(F=Q["$[]"]("source_location"))?""+F+": "+Q["$[]"]("text"):Q["$[]"]("text")})}(He[0])}(A[0],Oe("Logger"),A),function(rt,lt,K){var M=re(rt,lt,"MemoryLogger"),He=[M].concat(K),we=a.$r(He),qe=M.$$prototype;return qe.messages=We,et(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(we("Severity").$constants(!1),"map",[],function(oe){return oe==null&&(oe=We),[we("Severity").$const_get(oe),oe]}).$to_h()),M.$attr_reader("messages"),G(M,"$initialize",function(){var oe=this;return oe["$level="](we("WARN")),oe.messages=[]}),G(M,"$add",function ze(oe,ye,Q){var F=ze.$$p||We,q=this,ie=We;return ze.$$p=null,ye==null&&(ye=We),Q==null&&(Q=We),ye=Me(ie=ye)?ie:F!==We?a.yieldX(F,[]):Q,q.messages["$<<"](Re(["severity","message"],{severity:we("SEVERITY_SYMBOL_BY_VALUE")["$[]"](Me(ie=oe)?ie:we("UNKNOWN")),message:ye})),!0},-2),G(M,"$clear",function(){var oe=this;return oe.messages.$clear()}),G(M,"$empty?",function(){var oe=this;return oe.messages["$empty?"]()}),G(M,"$max_severity",function(){var oe=this;return Me(oe["$empty?"]())?We:Ue(oe.messages,"map",[],function(Q){return Q==null&&(Q=We),we("Severity").$const_get(Q["$[]"]("severity"))}).$max()})}(A[0],Oe("Logger"),A),function(rt,lt,K){var M=re(rt,lt,"NullLogger"),He=[M].concat(K),we=a.$r(He),qe=M.$$prototype;return qe.max_severity=We,M.$attr_reader("max_severity"),G(M,"$initialize",function(){var oe,ye=this;return oe=[we("WARN")],Ue(ye,"level=",oe),oe[oe.length-1]}),G(M,"$add",function(oe,ye,Q){var F=this,q=We;return Me(E(oe=Me(q=oe)?q:we("UNKNOWN"),F.max_severity=Me(q=F.max_severity)?q:oe))&&(F.max_severity=oe),!0},-2)}(A[0],Oe("Logger"),A),function(rt,lt){var K=ae(rt,"LoggerManager"),M=[K].concat(lt),He=a.$r(M);return K.logger_class=He("Logger"),function(we,qe){return we.$attr_accessor("logger_class"),G(we,"$logger",function(oe){var ye=this,Q=We;return ye.logger==null&&(ye.logger=We),ye.logger_class==null&&(ye.logger_class=We),De.stderr==null&&(De.stderr=We),oe==null&&(oe=De.stderr),ye.$memoize_logger(),ye.logger=Me(Q=ye.logger)?Q:ye.logger_class.$new(oe)},-1),G(we,"$logger=",function(oe){var ye=this,Q=We;return ye.logger_class==null&&(ye.logger_class=We),De.stderr==null&&(De.stderr=We),ye.logger=Me(Q=oe)?Q:ye.logger_class.$new(De.stderr)}),we.$private(),G(we,"$memoize_logger",function(){var oe=this;return function(ye,Q){return Pe(ye,"logger","logger"),ye.$attr_reader("logger")}(a.get_singleton_class(oe))})}(a.get_singleton_class(K))}(A[0],A),function(rt,lt){var K=ae(rt,"Logging"),M=[K].concat(lt),He=a.$r(M);return dt(K,"$included",function(qe){return qe.$extend(He("Logging"))}),K.$private_class_method("included"),G(K,"$logger",function(){return He("LoggerManager").$logger()}),G(K,"$message_with_context",function(qe,ze){return ze==null&&(ze=Re([],{})),Re(["text"],{text:qe}).$merge(ze).$extend(Oe(He("Logger"),"AutoFormattingMessage"))},-2)}(A[0],A)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ae=a.module,re=a.const_set,V=a.regexp,_e=a.hash2,y=a.send,W=a.truthy,Ue=a.hash,G=[],Me=a.nil,E=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(et,Re){var Ge=ae(et,"Asciidoctor"),De=[Ge].concat(Re),Pe=a.$r(De);return ae(De[0],"Rx"),re(De[0],"AuthorInfoLineRx",V(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),re(De[0],"AuthorDelimiterRx",/;(?: |$)/),re(De[0],"RevisionInfoLineRx",V(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),re(De[0],"ManpageTitleVolnumRx",V(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),re(De[0],"ManpageNamePurposeRx",V(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),re(De[0],"ConditionalDirectiveRx",V(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"EvalExpressionRx",V(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),re(De[0],"IncludeDirectiveRx",V(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),re(De[0],"AttributeEntryRx",V(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),re(De[0],"InvalidAttributeNameCharsRx",V(["[^",Pe("CC_WORD"),"-]"])),re(De[0],"AttributeEntryPassMacroRx",V(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),re(De[0],"AttributeReferenceRx",V(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),re(De[0],"BlockAnchorRx",V(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),re(De[0],"BlockAttributeListRx",V(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),re(De[0],"BlockAttributeLineRx",V(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),re(De[0],"BlockTitleRx",V(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),re(De[0],"AdmonitionParagraphRx",V(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),re(De[0],"LiteralParagraphRx",V(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),re(De[0],"AtxSectionTitleRx",V(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),re(De[0],"ExtAtxSectionTitleRx",V(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),re(De[0],"SetextSectionTitleRx",V(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),re(De[0],"InlineSectionAnchorRx",V([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),re(De[0],"InvalidSectionIdCharsRx",V(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",Pe("CC_WORD"),"\\-.]+?"])),re(De[0],"SectionLevelStyleRx",/^sect\d$/),re(De[0],"AnyListRx",V(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),re(De[0],"UnorderedListRx",V(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"OrderedListRx",V(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"OrderedListMarkerRxMap",_e(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),re(De[0],"DescriptionListRx",V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),re(De[0],"DescriptionListSiblingRx",_e(["::",":::","::::",";;"],{"::":V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),":::":V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),"::::":V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),";;":V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])})),re(De[0],"CalloutListRx",V(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),re(De[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),re(De[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),re(De[0],"CalloutExtractRxMap",y(E("Hash"),"new",[],function(Ye,st){var We;return Ye==null&&(Ye=Me),st==null&&(st=Me),We=[st,V(["(",W(st["$empty?"]())?"":""+E("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],y(Ye,"[]=",We),We[We.length-1]})),re(De[0],"CalloutScanRx",V(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),re(De[0],"CalloutSourceRx",V(["((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*",Pe("CC_EOL"),")"])),re(De[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+Pe("CC_EOL")+")"),re(De[0],"CalloutSourceRxMap",y(E("Hash"),"new",[],function(Ye,st){var We;return Ye==null&&(Ye=Me),st==null&&(st=Me),We=[st,V(["(",W(st["$empty?"]())?"":""+E("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],y(Ye,"[]=",We),We[We.length-1]})),re(De[0],"ListRxMap",_e(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),re(De[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),re(De[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),re(De[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),re(De[0],"CustomBlockMacroRx",V(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"BlockMediaMacroRx",V(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"BlockTocMacroRx",V(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),re(De[0],"InlineAnchorRx",V(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),re(De[0],"InlineAnchorScanRx",V(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),re(De[0],"LeadingInlineAnchorRx",V(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),re(De[0],"InlineBiblioAnchorRx",V(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),re(De[0],"InlineEmailRx",V(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),re(De[0],"InlineFootnoteMacroRx",V(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),re(De[0],"InlineImageMacroRx",V(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineIndextermMacroRx",V(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),re(De[0],"InlineKbdBtnMacroRx",V(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineLinkRx",V(["(^|link:|",Pe("CG_BLANK"),`|<|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),re(De[0],"InlineLinkMacroRx",V(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"MacroNameRx",V(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),re(De[0],"InlineStemMacroRx",V(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),re(De[0],"InlineMenuMacroRx",V(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),re(De[0],"InlineMenuRx",V(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'])),re(De[0],"InlinePassRx",Ue(!1,["+","-]",V(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",Me,V(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),re(De[0],"InlinePassMacroRx",V(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),re(De[0],"InlineXrefMacroRx",V(["\\\\?(?:<<([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)>>|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),re(De[0],"HardLineBreakRx",V(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),re(De[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),re(De[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),re(De[0],"BlankLineRx",/\n{2,}/),re(De[0],"EscapedSpaceRx",/\\([ \t\n])/),re(De[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),re(De[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),re(De[0],"SubModifierSniffRx",/[+-]/),re(De[0],"TrailingDigitsRx",/\d+$/),re(De[0],"UriSniffRx",V(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),re(De[0],"XmlSanitizeRx",/<[^>]+>/)}(G[0],G)},Opal.modules["asciidoctor/substitutors"]=function(a){var ae=a.module,re=a.const_set,V=a.hash2,_e=a.hash,y=a.rb_plus,W=a.regexp,Ue=a.not,G=a.truthy,Me=a.send,E=a.def,et=a.alias,Re=a.gvars,Ge=a.eqeq,De=a.to_ary,Pe=a.neqeq,dt=a.to_a,Ye=a.eqeqeq,st=a.rb_gt,We=a.slice,Oe=a.rb_minus,ft=a.rb_lt,R=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,K){var M=ae(lt,"Asciidoctor"),He=[M].concat(K);return function(we,qe){var ze=ae(we,"Substitutors"),oe=[ze].concat(qe),ye=a.$r(oe);return re(oe[0],"SpecialCharsRx",/[<&>]/),re(oe[0],"SpecialCharsTr",V([">","<","&"],{">":">","<":"<","&":"&"})),re(oe[0],"QuotedTextSniffRx",_e(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),re(oe[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),re(oe[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),re(oe[0],"NO_SUBS",[]).$freeze(),re(oe[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),re(oe[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),re(oe[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),re(oe[0],"SUB_GROUPS",V(["none","normal","verbatim","specialchars"],{none:ye("NO_SUBS"),normal:ye("NORMAL_SUBS"),verbatim:ye("VERBATIM_SUBS"),specialchars:ye("BASIC_SUBS")})),re(oe[0],"SUB_HINTS",V(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),re(oe[0],"SUB_OPTIONS",V(["block","inline"],{block:y(y(ye("SUB_GROUPS").$keys(),ye("NORMAL_SUBS")),["callouts"]),inline:y(ye("SUB_GROUPS").$keys(),ye("NORMAL_SUBS"))})),re(oe[0],"CAN",""),re(oe[0],"DEL",""),re(oe[0],"PASS_START",""),re(oe[0],"PASS_END",""),re(oe[0],"PassSlotRx",W([ye("PASS_START"),"(\\d+)",ye("PASS_END")])),re(oe[0],"HighlightedPassSlotRx",W(["<span\\b[^>]*>",ye("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",ye("PASS_END"),"</span>"])),re(oe[0],"RS","\\"),re(oe[0],"R_SB","]"),re(oe[0],"ESC_R_SB","\\]"),re(oe[0],"PLUS","+"),E(ze,"$apply_subs",function(F,q){var ie=this,O=A,$e=A,H=A,g=A;return ie.passthroughs==null&&(ie.passthroughs=A),ie.passthroughs_locked==null&&(ie.passthroughs_locked=A),q==null&&(q=ye("NORMAL_SUBS")),G(F["$empty?"]())||Ue(q)?F:(G(O=rt("Array")["$==="](F))&&(F=G(F["$[]"](1))?F.$join(ye("LF")):F["$[]"](0)),G(q["$include?"]("macros"))&&(F=ie.$extract_passthroughs(F),G(ie.passthroughs["$empty?"]())||($e=ie.passthroughs,ie.passthroughs_locked=G(H=ie.passthroughs_locked)?H:g=!0)),Me(q,"each",[],function o(m){var C=o.$$s==null?this:o.$$s;switch(m==null&&(m=A),m){case"specialcharacters":return F=C.$sub_specialchars(F);case"quotes":return F=C.$sub_quotes(F);case"attributes":return G(F["$include?"](ye("ATTR_REF_HEAD")))?F=C.$sub_attributes(F):A;case"replacements":return F=C.$sub_replacements(F);case"macros":return F=C.$sub_macros(F);case"highlight":return F=C.$highlight_source(F,q["$include?"]("callouts"));case"callouts":return G(q["$include?"]("highlight"))?A:F=C.$sub_callouts(F);case"post_replacements":return F=C.$sub_post_replacements(F);default:return C.$logger().$warn("unknown substitution type "+m)}},{$$s:ie}),G($e)&&(F=ie.$restore_passthroughs(F),G(g)&&($e.$clear(),ie.passthroughs_locked=A)),G(O)?F.$split(ye("LF"),-1):F)},-2),E(ze,"$apply_normal_subs",function(F){var q=this;return q.$apply_subs(F,ye("NORMAL_SUBS"))}),E(ze,"$apply_header_subs",function(F){var q=this;return q.$apply_subs(F,ye("HEADER_SUBS"))}),et(ze,"apply_title_subs","apply_subs"),E(ze,"$apply_reftext_subs",function(F){var q=this;return q.$apply_subs(F,ye("REFTEXT_SUBS"))}),E(ze,"$sub_specialchars",function(F){return G(F["$include?"](">"))||G(F["$include?"]("&"))||G(F["$include?"]("<"))?F.$gsub(ye("SpecialCharsRx"),ye("SpecialCharsTr")):F}),et(ze,"sub_specialcharacters","sub_specialchars"),E(ze,"$sub_quotes",function(F){var q=this,ie=A;return q.document==null&&(q.document=A),G(ye("QuotedTextSniffRx")["$[]"](ie=q.document.$compat_mode())["$match?"](F))&&Me(ye("QUOTE_SUBS")["$[]"](ie),"each",[],function O($e,H,g){var o=O.$$s==null?this:O.$$s;return $e==null&&($e=A),H==null&&(H=A),g==null&&(g=A),F=Me(F,"gsub",[g],function m(){var C=m.$$s==null?this:m.$$s;return Re["~"]==null&&(Re["~"]=A),C.$convert_quoted_text(Re["~"],$e,H)},{$$s:o})},{$$s:q}),F}),E(ze,"$sub_attributes",function(F,q){var ie=this,O=A,$e=A,H=A,g=A,o=A,m=A,C=A,k=A;return ie.document==null&&(ie.document=A),q==null&&(q=V([],{})),O=ie.document.$attributes(),$e=H=g=o=m=C=A,F=Me(F,"gsub",[ye("AttributeReferenceRx")],function b(){var L,P,de=b.$$s==null?this:b.$$s,le=A,ke=A,Be=A,Xe=A,it=A,ht=A;if(de.document==null&&(de.document=A),Ge((L=Re["~"])===A?A:L["$[]"](1),ye("RS"))||Ge((L=Re["~"])===A?A:L["$[]"](4),ye("RS")))return"{"+((L=Re["~"])===A?A:L["$[]"](2))+"}";if(G((L=Re["~"])===A?A:L["$[]"](3)))switch((le=((L=Re["~"])===A?A:L["$[]"](2)).$split(":",3)).$shift()){case"set":return P=ye("Parser").$store_attribute(le["$[]"](0),G(ke=le["$[]"](1))?ke:"",de.document),L=De(P),L[0]==null||L[0],Be=L[1]==null?A:L[1],G(Be)||Pe(m=G(ke=m)?ke:G(Xe=O["$[]"]("attribute-undefined"))?Xe:ye("Compliance").$attribute_undefined(),"drop-line")?$e=o=ye("DEL"):$e=H=ye("CAN");case"counter2":return Me(de.document,"counter",dt(le)),$e=o=ye("DEL");default:return Me(de.document,"counter",dt(le))}else{if(G(O["$key?"](it=((L=Re["~"])===A?A:L["$[]"](2)).$downcase())))return O["$[]"](it);if(G(Be=ye("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(C=G(ke=C)?ke:G(Xe=G(ht=q["$[]"]("attribute_missing"))?ht:O["$[]"]("attribute-missing"))?Xe:ye("Compliance").$attribute_missing()){case"drop":return $e=o=ye("DEL");case"drop-line":return Ge(g=G(ke=g)?ke:G(Xe=q["$[]"]("drop_line_severity"))?Xe:"info","info")&&Me(de.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),$e=H=ye("CAN");case"warn":return de.$logger().$warn("skipping reference to missing attribute: "+it),(L=Re["~"])===A?A:L["$[]"](0);default:return(L=Re["~"])===A?A:L["$[]"](0)}}},{$$s:ie}),G($e)?G(o)?(k=F.$squeeze(ye("DEL")).$split(ye("LF"),-1),G(H)?Me(k,"reject",[],function(L){var P=A,de=A,le=A;return L==null&&(L=A),G(P=G(de=G(le=L["$=="](ye("DEL")))?le:L["$=="](ye("CAN")))?de:L["$start_with?"](ye("CAN")))?P:L["$include?"](ye("CAN"))}).$join(ye("LF")).$delete(ye("DEL")):Me(k,"reject",[],function(L){return L==null&&(L=A),L["$=="](ye("DEL"))}).$join(ye("LF")).$delete(ye("DEL"))):G(F["$include?"](ye("LF")))?Me(F.$split(ye("LF"),-1),"reject",[],function(L){var P=A,de=A;return L==null&&(L=A),G(P=G(de=L["$=="](ye("CAN")))?de:L["$start_with?"](ye("CAN")))?P:L["$include?"](ye("CAN"))}).$join(ye("LF")):"":F},-2),E(ze,"$sub_replacements",function(F){var q=this;return G(ye("ReplaceableTextRx")["$match?"](F))&&Me(ye("REPLACEMENTS"),"each",[],function ie(O,$e,H){var g=ie.$$s==null?this:ie.$$s;return O==null&&(O=A),$e==null&&($e=A),H==null&&(H=A),F=Me(F,"gsub",[O],function o(){var m=o.$$s==null?this:o.$$s;return Re["~"]==null&&(Re["~"]=A),m.$do_replacement(Re["~"],$e,H)},{$$s:g})},{$$s:q}),F}),E(ze,"$sub_macros",function(F){var q=this,ie=A,O=A,$e=A,H=A,g=A,o=A,m=A,C=A;return q.document==null&&(q.document=A),q.parent==null&&(q.parent=A),q.context==null&&(q.context=A),ie=F["$include?"]("["),O=F["$include?"](":"),$e=G(H=ie)?O:H,g=G(H=$e)?F["$include?"](":["):H,o=(m=q.document).$attributes(),G(C=m.$extensions())&&G(C["$inline_macros?"]())&&Me(C.$inline_macros(),"each",[],function k(b){var L=k.$$s==null?this:k.$$s;return b==null&&(b=A),F=Me(F,"gsub",[b.$instance().$regexp()],function P(){var de,le,ke=P.$$s==null?this:P.$$s,Be=A,Xe=A,it=A,ht=A,at=A,gt=A,yt=A,xt=A,vt=A;return Re["~"]==null&&(Re["~"]=A),G((Be=(de=Re["~"])===A?A:de["$[]"](0))["$start_with?"](ye("RS")))?((de=Re["~"])===A?A:de["$[]"](0)).$slice(1,((de=Re["~"])===A?A:de["$[]"](0)).$length()):(G(Re["~"].$names()["$empty?"]())?(de=[(le=Re["~"])===A?A:le["$[]"](1),(le=Re["~"])===A?A:le["$[]"](2)],Xe=de[0],it=de[1]):(de=[function(){try{return Re["~"]["$[]"]("target")}catch(Rt){if(a.rescue(Rt,[ye("StandardError")]))try{return A}finally{a.pop_exception()}else throw Rt}}(),function(){try{return Re["~"]["$[]"]("content")}catch(Rt){if(a.rescue(Rt,[ye("StandardError")]))try{return A}finally{a.pop_exception()}else throw Rt}}()],Xe=de[0],it=de[1]),ht=G(at=(gt=b.$config())["$[]"]("default_attrs"))?at.$merge():V([],{}),G(it)&&(G(it["$empty?"]())?Ge(gt["$[]"]("content_model"),"attributes")||ht["$[]="]("text",it):(it=ke.$normalize_text(it,!0,!0),Ge(gt["$[]"]("content_model"),"attributes")?ke.$parse_attributes(it,G(H=G(yt=gt["$[]"]("positional_attrs"))?yt:gt["$[]"]("pos_attrs"))?H:[],V(["into"],{into:ht})):ht["$[]="]("text",it)),Xe=G(H=Xe)?H:Ge(gt["$[]"]("format"),"short")?it:Xe),Ye(ye("Inline"),xt=b.$process_method()["$[]"](ke,Xe,ht))?(G(vt=xt.$attributes().$delete("subs"))&&G(vt=ke.$expand_subs(vt,"custom inline macro"))&&xt["$text="](ke.$apply_subs(xt.$text(),vt)),xt.$convert()):G(xt)?(Me(ke.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+xt.$class()+": "+Be}),xt):"")},{$$s:L})},{$$s:q}),G(o["$key?"]("experimental"))&&(G(g)&&(G(F["$include?"]("kbd:"))||G(F["$include?"]("btn:")))&&(F=Me(F,"gsub",[ye("InlineKbdBtnMacroRx")],function k(){var b,L=k.$$s==null?this:k.$$s,P=A,de=A,le=A;return G((b=Re["~"])===A?A:b["$[]"](1))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):Ge((b=Re["~"])===A?A:b["$[]"](2),"kbd")?(G((P=((b=Re["~"])===A?A:b["$[]"](3)).$strip())["$include?"](ye("R_SB")))&&(P=P.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(st(P.$length(),1))&&G(de=G(de=P.$index(",",1))?[de,P.$index("+",1)].$compact().$min():P.$index("+",1))?(le=P.$slice(de,1),G(P["$end_with?"](le))?(P=Me(P.$chop().$split(le,-1),"map",[],function(Be){return Be==null&&(Be=A),Be.$strip()}),P["$[]="](-1,y(P["$[]"](-1),le))):P=Me(P.$split(le),"map",[],function(Be){return Be==null&&(Be=A),Be.$strip()})):P=[P],ye("Inline").$new(L,"kbd",A,V(["attributes"],{attributes:V(["keys"],{keys:P})})).$convert()):ye("Inline").$new(L,"button",L.$normalize_text((b=Re["~"])===A?A:b["$[]"](3),!0,!0)).$convert()},{$$s:q})),G($e)&&G(F["$include?"]("menu:"))&&(F=Me(F,"gsub",[ye("InlineMenuMacroRx")],function k(){var b,L=k.$$s==null?this:k.$$s,P=A,de=A,le=A,ke=A,Be=A;return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(P=(b=Re["~"])===A?A:b["$[]"](1),G(de=(b=Re["~"])===A?A:b["$[]"](2))?(G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(le=G(de["$include?"](">"))?">":G(de["$include?"](","))?",":A)?(ke=Me(de.$split(le),"map",[],function(it){return it==null&&(it=A),it.$strip()}),Be=ke.$pop()):(b=[[],de.$rstrip()],ke=b[0],Be=b[1])):(b=[[],A],ke=b[0],Be=b[1]),ye("Inline").$new(L,"menu",A,V(["attributes"],{attributes:V(["menu","submenus","menuitem"],{menu:P,submenus:ke,menuitem:Be})})).$convert())},{$$s:q})),G(F["$include?"]('"'))&&G(F["$include?"](">"))&&(F=Me(F,"gsub",[ye("InlineMenuRx")],function k(){var b,L,P,de=k.$$s==null?this:k.$$s,le=A,ke=A,Be=A;return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(L=Me(((P=Re["~"])===A?A:P["$[]"](1)).$split(">"),"map",[],function(it){return it==null&&(it=A),it.$strip()}),b=De(L),le=b[0]==null?A:b[0],ke=We(b,1),Be=ke.$pop(),ye("Inline").$new(de,"menu",A,V(["attributes"],{attributes:V(["menu","submenus","menuitem"],{menu:le,submenus:ke,menuitem:Be})})).$convert())},{$$s:q}))),G($e)&&(G(F["$include?"]("image:"))||G(F["$include?"]("icon:")))&&(F=Me(F,"gsub",[ye("InlineImageMacroRx")],function k(){var b,L=k.$$s==null?this:k.$$s,P=A,de=A,le=A,ke=A;return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"]("icon:"))?(b=["icon",["size"]],P=b[0],de=b[1]):(b=["image",["alt","width","height"]],P=b[0],de=b[1]),le=(b=Re["~"])===A?A:b["$[]"](1),ke=L.$parse_attributes((b=Re["~"])===A?A:b["$[]"](2),de,V(["unescape_input"],{unescape_input:!0})),Ge(P,"icon")||(m.$register("images",le),ke["$[]="]("imagesdir",o["$[]"]("imagesdir"))),G(H=ke["$[]"]("alt"))||ke["$[]="]("alt",(b=["default-alt",ye("Helpers").$basename(le,!0).$tr("_-"," ")],Me(ke,"[]=",b),b[b.length-1])),ye("Inline").$new(L,"image",A,V(["type","target","attributes"],{type:P,target:le,attributes:ke})).$convert())},{$$s:q})),(G(F["$include?"]("(("))&&G(F["$include?"]("))"))||G(g)&&G(F["$include?"]("dexterm")))&&(F=Me(F,"gsub",[ye("InlineIndextermMacroRx")],function k(){var b,L,P=k.$$s==null?this:k.$$s,de=A,le=A,ke=A,Be=A,Xe=A,it=A,ht=A,at=A,gt=A,yt=A,xt=A,vt=A,Rt=A,Tt=A;switch((b=Re["~"])===A?A:b["$[]"](1)){case"indexterm":return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(G((de=P.$normalize_text((b=Re["~"])===A?A:b["$[]"](2),!0,!0))["$include?"]("="))?G(le=(ke=ye("AttributeList").$new(de,P).$parse())["$[]"](1))?(ke["$[]="]("terms",[le]),G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Me(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=A),Bt.$lstrip()}):[Be])):ke=V(["terms"],{terms:de}):ke=V(["terms"],{terms:P.$split_simple_csv(de)}),ye("Inline").$new(P,"indexterm",A,V(["attributes"],{attributes:ke})).$convert());case"indexterm2":return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(G((Xe=P.$normalize_text((b=Re["~"])===A?A:b["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=G(it=G(ht=(ke=ye("AttributeList").$new(Xe,P).$parse())["$[]"](1))?ht:ke=A)?it:Xe,G(ke)&&G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Me(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=A),Bt.$lstrip()}):[Be])),ye("Inline").$new(P,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert());default:if(at=(b=Re["~"])===A?A:b["$[]"](3),G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS"))))if(G(at["$start_with?"]("("))&&G(at["$end_with?"](")")))at=at.$slice(1,Oe(at.$length(),2)),b=[!0,"(",")"],gt=b[0],yt=b[1],xt=b[2];else return((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length());else gt=!0,G(at["$start_with?"]("("))?G(at["$end_with?"](")"))?(b=[at.$slice(1,Oe(at.$length(),2)),!1],at=b[0],gt=b[1]):(b=[at.$slice(1,at.$length()),"(",""],at=b[0],yt=b[1],xt=b[2]):G(at["$end_with?"](")"))&&(b=[at.$chop(),"",")"],at=b[0],yt=b[1],xt=b[2]);return G(gt)?(G((Xe=P.$normalize_text(at,!0))["$include?"](";&"))&&(G(Xe["$include?"](" >> "))?(L=Xe.$partition(" >> "),b=De(L),Xe=b[0]==null?A:b[0],b[1]==null||b[1],vt=b[2]==null?A:b[2],ke=V(["see"],{see:vt})):G(Xe["$include?"](" &> "))&&(L=Xe.$split(" &> "),b=De(L),Xe=b[0]==null?A:b[0],Be=We(b,1),ke=V(["see-also"],{"see-also":Be}))),Rt=ye("Inline").$new(P,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert()):(ke=V([],{}),G((Tt=P.$normalize_text(at,!0))["$include?"](";&"))&&(G(Tt["$include?"](" >> "))?(L=Tt.$partition(" >> "),b=De(L),Tt=b[0]==null?A:b[0],b[1]==null||b[1],vt=b[2]==null?A:b[2],ke["$[]="]("see",vt)):G(Tt["$include?"](" &> "))&&(L=Tt.$split(" &> "),b=De(L),Tt=b[0]==null?A:b[0],Be=We(b,1),ke["$[]="]("see-also",Be))),ke["$[]="]("terms",P.$split_simple_csv(Tt)),Rt=ye("Inline").$new(P,"indexterm",A,V(["attributes"],{attributes:ke})).$convert()),G(yt)?""+yt+Rt+xt:Rt}},{$$s:q})),G(O)&&G(F["$include?"]("://"))&&(F=Me(F,"gsub",[ye("InlineLinkRx")],function k(){var b,L,P=k.$$s==null?this:k.$$s,de=A,le=A,ke=A,Be=A,Xe=A,it=A,ht=A,at=A,gt=A;if(G((de=y((b=Re["~"])===A?A:b["$[]"](2),G(H=(b=Re["~"])===A?A:b["$[]"](3))?H:(b=Re["~"])===A?A:b["$[]"](5)))["$start_with?"](ye("RS"))))return y(((b=Re["~"])===A?A:b["$[]"](0)).$slice(0,le=((b=Re["~"])===A?A:b["$[]"](1)).$length()),((b=Re["~"])===A?A:b["$[]"](0)).$slice(y(le,1),((b=Re["~"])===A?A:b["$[]"](0)).$length()));if(b=[(L=Re["~"])===A?A:L["$[]"](1),""],ke=b[0],Be=b[1],G((b=Re["~"])===A?A:b["$[]"](4)))Ge(ke,"link:")&&(ke=""),G((Xe=(b=Re["~"])===A?A:b["$[]"](4))["$empty?"]())&&(Xe=A);else{switch(ke){case"link:":case'"':case"'":return(b=Re["~"])===A?A:b["$[]"](0)}switch((b=Re["~"])===A?A:b["$[]"](6)){case";":if(G(ke["$start_with?"]("<"))&&G(de["$end_with?"](">"))?(ke=ke.$slice(4,ke.$length()),de=de.$slice(0,Oe(de.$length(),4))):G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be=");"):Be=";",G(de["$end_with?"]("://")))return(b=Re["~"])===A?A:b["$[]"](0);break;case":":if(G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be="):"):Be=":",G(de["$end_with?"]("://")))return(b=Re["~"])===A?A:b["$[]"](0);break}}return b=[A,V(["type"],{type:"link"})],it=b[0],ht=b[1],G(Xe)?(G(Xe["$include?"](ye("R_SB")))&&(at=Xe=Xe.$gsub(ye("ESC_R_SB"),ye("R_SB"))),Ue(m.$compat_mode())&&G(Xe["$include?"]("="))&&(L=P.$extract_attributes_from_text(Xe,""),b=De(L),Xe=b[0]==null?A:b[0],it=b[1]==null?A:b[1],at=Xe,ht["$[]="]("id",it["$[]"]("id"))),G(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),G(it)?G(H=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=V(["window"],{window:"_blank"})),G(at)&&G(at["$empty?"]())&&(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,gt=!0)):(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,gt=!0),G(gt)&&(G(it)?it["$[]="]("role",G(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=V(["role"],{role:"bare"})),m.$register("links",(b=["target",de],Me(ht,"[]=",b),b[b.length-1])),G(it)&&ht["$[]="]("attributes",it),""+ke+ye("Inline").$new(P,"anchor",Xe,ht).$convert()+Be},{$$s:q})),G($e)&&(G(F["$include?"]("link:"))||G(F["$include?"]("ilto:")))&&(F=Me(F,"gsub",[ye("InlineLinkMacroRx")],function k(){var b,L,P=k.$$s==null?this:k.$$s,de=A,le=A,ke=A,Be=A,Xe=A,it=A;return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(G(de=(b=Re["~"])===A?A:b["$[]"](1))?le=y("mailto:",ke=(b=Re["~"])===A?A:b["$[]"](2)):le=(b=Re["~"])===A?A:b["$[]"](2),b=[A,V(["type"],{type:"link"})],Be=b[0],Xe=b[1],G((it=(b=Re["~"])===A?A:b["$[]"](3))["$empty?"]())||(G(it["$include?"](ye("R_SB")))&&(it=it.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(de)?Ue(m.$compat_mode())&&G(it["$include?"](","))&&(L=P.$extract_attributes_from_text(it,""),b=De(L),it=b[0]==null?A:b[0],Be=b[1]==null?A:b[1],Xe["$[]="]("id",Be["$[]"]("id")),G(Be["$key?"](2))&&(G(Be["$key?"](3))?le=""+le+"?subject="+ye("Helpers").$encode_uri_component(Be["$[]"](2))+"&body="+ye("Helpers").$encode_uri_component(Be["$[]"](3)):le=""+le+"?subject="+ye("Helpers").$encode_uri_component(Be["$[]"](2)))):Ue(m.$compat_mode())&&G(it["$include?"]("="))&&(L=P.$extract_attributes_from_text(it,""),b=De(L),it=b[0]==null?A:b[0],Be=b[1]==null?A:b[1],Xe["$[]="]("id",Be["$[]"]("id"))),G(it["$end_with?"]("^"))&&(it=it.$chop(),G(Be)?G(H=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=V(["window"],{window:"_blank"}))),G(it["$empty?"]())&&(G(de)?it=ke:(G(o["$key?"]("hide-uri-scheme"))?G((it=le.$sub(ye("UriSniffRx"),""))["$empty?"]())&&(it=le):it=le,G(Be)?Be["$[]="]("role",G(Be["$key?"]("role"))?"bare "+Be["$[]"]("role"):"bare"):Be=V(["role"],{role:"bare"}))),m.$register("links",(b=["target",le],Me(Xe,"[]=",b),b[b.length-1])),G(Be)&&Xe["$[]="]("attributes",Be),ye("Inline").$new(P,"anchor",it,Xe).$convert())},{$$s:q})),G(F["$include?"]("@"))&&(F=Me(F,"gsub",[ye("InlineEmailRx")],function k(){var b,L=k.$$s==null?this:k.$$s,P=A,de=A;return G((b=Re["~"])===A?A:b["$[]"](1))?Ge((b=Re["~"])===A?A:b["$[]"](1),ye("RS"))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(b=Re["~"])===A?A:b["$[]"](0):(P=y("mailto:",de=(b=Re["~"])===A?A:b["$[]"](0)),m.$register("links",P),ye("Inline").$new(L,"anchor",de,V(["type","target"],{type:"link",target:P})).$convert())},{$$s:q})),G(ie)&&Ge(q.context,"list_item")&&Ge(q.parent.$style(),"bibliography")&&(F=Me(F,"sub",[ye("InlineBiblioAnchorRx")],function k(){var b,L=k.$$s==null?this:k.$$s;return ye("Inline").$new(L,"anchor",(b=Re["~"])===A?A:b["$[]"](2),V(["type","id"],{type:"bibref",id:(b=Re["~"])===A?A:b["$[]"](1)})).$convert()},{$$s:q})),(G(ie)&&G(F["$include?"]("[["))||G($e)&&G(F["$include?"]("or:")))&&(F=Me(F,"gsub",[ye("InlineAnchorRx")],function k(){var b,L=k.$$s==null?this:k.$$s,P=A,de=A;return G((b=Re["~"])===A?A:b["$[]"](1))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(G(P=(b=Re["~"])===A?A:b["$[]"](2))?de=(b=Re["~"])===A?A:b["$[]"](3):(P=(b=Re["~"])===A?A:b["$[]"](4),G(de=(b=Re["~"])===A?A:b["$[]"](5))&&G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB")))),ye("Inline").$new(L,"anchor",de,V(["type","id"],{type:"ref",id:P})).$convert())},{$$s:q})),(G(F["$include?"]("&"))&&G(F["$include?"](";&l"))||G($e)&&G(F["$include?"]("xref:")))&&(F=Me(F,"gsub",[ye("InlineXrefMacroRx")],function k(){var b,L,P=k.$$s==null?this:k.$$s,de=A,le=A,ke=A,Be=A,Xe=A,it=A,ht=A,at=A,gt=A,yt=A;return G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS")))?((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length()):(de=V([],{}),G(le=(b=Re["~"])===A?A:b["$[]"](1))?G(le["$include?"](","))&&(L=le.$partition(","),b=De(L),le=b[0]==null?A:b[0],b[1]==null||b[1],ke=b[2]==null?A:b[2],G((ke=ke.$lstrip())["$empty?"]())&&(ke=A)):(Be=!0,le=(b=Re["~"])===A?A:b["$[]"](2),G(ke=(b=Re["~"])===A?A:b["$[]"](3))&&(G(ke["$include?"](ye("R_SB")))&&(ke=ke.$gsub(ye("ESC_R_SB"),ye("R_SB"))),Ue(m.$compat_mode())&&G(ke["$include?"]("="))&&(L=P.$extract_attributes_from_text(ke),b=De(L),ke=b[0]==null?A:b[0],de=b[1]==null?A:b[1]))),G(m.$compat_mode())?Xe=le:G(it=le.$index("#"))&&Pe(le["$[]"](Oe(it,1)),"&")?G(st(it,0))?(G(st(ht=Oe(Oe(le.$length(),1),it),0))?(b=[le.$slice(0,it),le.$slice(y(it,1),ht)],at=b[0],Xe=b[1]):at=le.$chop(),G(Be)?G(at["$end_with?"](".adoc"))?gt=at=at.$slice(0,Oe(at.$length(),5)):Ue(ye("Helpers")["$extname?"](at))&&(gt=at):G(Me(at,"end_with?",dt(ye("ASCIIDOC_EXTENSIONS").$keys())))?gt=at=at.$slice(0,at.$rindex(".")):gt=at):(b=[le,le.$slice(1,le.$length())],yt=b[0],Xe=b[1]):G(Be)?G(le["$end_with?"](".adoc"))?gt=at=le.$slice(0,Oe(le.$length(),5)):G(ye("Helpers")["$extname?"](le))?at=le:Xe=le:Xe=le,G(yt)?(le=Xe,G(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):G(at)?G(gt)&&(Ge(m.$attributes()["$[]"]("docname"),at)||G(m.$catalog()["$[]"]("includes")["$[]"](at)))?G(Xe)?(b=[Xe,A,"#"+Xe],le=b[0],at=b[1],yt=b[2],G(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):(b=[A,A,"#"],le=b[0],at=b[1],yt=b[2]):(b=[at,""+(G(H=m.$attributes()["$[]"]("relfileprefix"))?H:"")+at+(G(gt)?m.$attributes().$fetch("relfilesuffix",m.$outfilesuffix()):"")],le=b[0],at=b[1],G(Xe)?(b=[""+le+"#"+Xe,""+at+"#"+Xe],le=b[0],yt=b[1]):yt=at):G(m.$compat_mode())||Ue(ye("Compliance").$natural_xrefs())?(b=[Xe,"#"+Xe],le=b[0],yt=b[1],G(P.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&P.$logger().$info("possible invalid reference: "+le)):G(m.$catalog()["$[]"]("refs")["$[]"](Xe))?(b=[Xe,"#"+Xe],le=b[0],yt=b[1]):(G(Xe["$include?"](" "))||Pe(Xe.$downcase(),Xe))&&G(le=m.$resolve_id(Xe))?(b=[le,"#"+le],Xe=b[0],yt=b[1]):(b=[Xe,"#"+Xe],le=b[0],yt=b[1],G(P.$logger()["$info?"]())&&P.$logger().$info("possible invalid reference: "+le)),de["$[]="]("path",at),de["$[]="]("fragment",Xe),de["$[]="]("refid",le),ye("Inline").$new(P,"anchor",ke,V(["type","target","attributes"],{type:"xref",target:yt,attributes:de})).$convert())},{$$s:q})),G($e)&&G(F["$include?"]("tnote"))&&(F=Me(F,"gsub",[ye("InlineFootnoteMacroRx")],function k(){var b,L,P,de=k.$$s==null?this:k.$$s,le=A,ke=A,Be=A,Xe=A,it=A,ht=A;if(G(((b=Re["~"])===A?A:b["$[]"](0))["$start_with?"](ye("RS"))))return((b=Re["~"])===A?A:b["$[]"](0)).$slice(1,((b=Re["~"])===A?A:b["$[]"](0)).$length());if(G((b=Re["~"])===A?A:b["$[]"](1)))if(G((b=Re["~"])===A?A:b["$[]"](3)))L=((P=Re["~"])===A?A:P["$[]"](3)).$split(",",2),b=De(L),le=b[0]==null?A:b[0],ke=b[1]==null?A:b[1],G(m.$compat_mode())||de.$logger().$warn("found deprecated footnoteref macro: "+((b=Re["~"])===A?A:b["$[]"](0))+"; use footnote macro with target instead");else return(b=Re["~"])===A?A:b["$[]"](0);else le=(b=Re["~"])===A?A:b["$[]"](2),ke=(b=Re["~"])===A?A:b["$[]"](3);if(G(le))G(Be=Me(m.$footnotes(),"find",[],function(gt){return gt==null&&(gt=A),gt.$id()["$=="](le)}))?(b=[Be.$index(),Be.$text()],Xe=b[0],ke=b[1],b=["xref",le,A],it=b[0],ht=b[1],le=b[2]):G(ke)?(ke=de.$restore_passthroughs(de.$normalize_text(ke,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",rt(ye("Document"),"Footnote").$new(Xe,le,ke)),b=["ref",A],it=b[0],ht=b[1]):(de.$logger().$warn("invalid footnote reference: "+le),b=["xref",le,le,A],it=b[0],ht=b[1],ke=b[2],le=b[3]);else if(G(ke))ke=de.$restore_passthroughs(de.$normalize_text(ke,!0,!0)),Xe=m.$counter("footnote-number"),m.$register("footnotes",rt(ye("Document"),"Footnote").$new(Xe,le,ke)),it=ht=A;else return(b=Re["~"])===A?A:b["$[]"](0);return ye("Inline").$new(de,"footnote",ke,V(["attributes","id","target","type"],{attributes:V(["index"],{index:Xe}),id:le,target:ht,type:it})).$convert()},{$$s:q})),F}),E(ze,"$sub_post_replacements",function(F){var q=this,ie=A,O=A;return q.document==null&&(q.document=A),q.attributes==null&&(q.attributes=A),G(q.attributes["$[]"]("hardbreaks-option"))||G(q.document.$attributes()["$[]"]("hardbreaks-option"))?(ie=F.$split(ye("LF"),-1),G(ft(ie.$size(),2))?F:(O=ie.$pop(),Me(ie,"map",[],function $e(H){var g=$e.$$s==null?this:$e.$$s;return H==null&&(H=A),ye("Inline").$new(g,"break",G(H["$end_with?"](ye("HARD_LINE_BREAK")))?H.$slice(0,Oe(H.$length(),2)):H,V(["type"],{type:"line"})).$convert()},{$$s:q})["$<<"](O).$join(ye("LF")))):G(F["$include?"](ye("PLUS")))&&G(F["$include?"](ye("HARD_LINE_BREAK")))?Me(F,"gsub",[ye("HardLineBreakRx")],function $e(){var H,g=$e.$$s==null?this:$e.$$s;return ye("Inline").$new(g,"break",(H=Re["~"])===A?A:H["$[]"](1),V(["type"],{type:"line"})).$convert()},{$$s:q}):F}),E(ze,"$sub_source",function(F,q){var ie=this;return G(q)?ie.$sub_callouts(ie.$sub_specialchars(F)):ie.$sub_specialchars(F)}),E(ze,"$sub_callouts",function(F){var q=this,ie=A,O=A;return ie=G(q["$attr?"]("line-comment"))?ye("CalloutSourceRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutSourceRx"),O=0,Me(F,"gsub",[ie],function $e(){var H,g=$e.$$s==null?this:$e.$$s,o=A;return g.document==null&&(g.document=A),G((H=Re["~"])===A?A:H["$[]"](2))?((H=Re["~"])===A?A:H["$[]"](0)).$sub(ye("RS"),""):ye("Inline").$new(g,"callout",Ge((H=Re["~"])===A?A:H["$[]"](4),".")?(O=y(O,1)).$to_s():(H=Re["~"])===A?A:H["$[]"](4),V(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:G(o=(H=Re["~"])===A?A:H["$[]"](1))?o:Ge((H=Re["~"])===A?A:H["$[]"](3),"--")?["<!--","-->"]:A})})).$convert()},{$$s:q})}),E(ze,"$highlight_source",function(F,q){var ie,O,$e=this,H=A,g=A,o=A,m=A,C=A,k=A,b=A,L=A,P=A,de=A;return $e.document==null&&($e.document=A),$e.passthroughs==null&&($e.passthroughs=A),G(H=$e.document.$syntax_highlighter())&&G(H["$highlight?"]())?(G(q)&&(O=$e.$extract_callouts(F),ie=De(O),F=ie[0]==null?A:ie[0],g=ie[1]==null?A:ie[1]),o=$e.document.$attributes(),m=H.$name(),G(k=G($e["$attr?"]("linenums"))?(G(b=o["$[]"](""+m+"-linenums-mode"))?b:"table").$to_sym():A)&&G(ft(C=$e.$attr("start",1).$to_i(),1))&&(C=1),G($e["$attr?"]("highlight"))&&(L=$e.$resolve_lines_to_highlight(F,$e.$attr("highlight"),C)),O=H.$highlight($e,F,$e.$attr("language"),V(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(G(b=o["$[]"](""+m+"-css"))?b:"class").$to_sym(),highlight_lines:L,number_lines:k,start_line_number:C,style:o["$[]"](""+m+"-style")})),ie=De(O),P=ie[0]==null?A:ie[0],de=ie[1]==null?A:ie[1],G($e.passthroughs["$empty?"]())||(P=P.$gsub(ye("HighlightedPassSlotRx"),""+ye("PASS_START")+"\\1"+ye("PASS_END"))),G(g["$nil_or_empty?"]())?P:$e.$restore_callouts(P,g,de)):$e.$sub_source(F,q)}),E(ze,"$resolve_lines_to_highlight",function(F,q,ie){var O=A,$e=A;return ie==null&&(ie=A),O=[],G(q["$include?"](" "))&&(q=q.$delete(" ")),Me(G(q["$include?"](","))?q.$split(","):q.$split(";"),"map",[],function(g){var o,m,C=A,k=A,b=A,L=A,P=A;return g==null&&(g=A),G(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),C=!0),G(k=G(g["$include?"](".."))?"..":G(g["$include?"]("-"))?"-":A)?(m=g.$partition(k),o=De(m),b=o[0]==null?A:o[0],o[1]==null||o[1],L=o[2]==null?A:o[2],(G(L["$empty?"]())||G(ft(L=L.$to_i(),0)))&&(L=y(F.$count(ye("LF")),1)),G(C)?O=Oe(O,a.Range.$new(b.$to_i(),L,!1).$to_a()):O=O["$|"](a.Range.$new(b.$to_i(),L,!1).$to_a())):G(C)?O.$delete(g.$to_i()):Ue(O["$include?"](P=g.$to_i()))?O["$<<"](P):A}),Ge($e=G(ie)?Oe(ie,1):0,0)||(O=Me(O,"map",[],function(g){return g==null&&(g=A),Oe(g,$e)})),O.$sort()},-3),E(ze,"$extract_passthroughs",function(F){var q,ie,O=this,$e=A,H=A,g=A,o=A,m=A;return O.document==null&&(O.document=A),O.passthroughs==null&&(O.passthroughs=A),$e=O.document.$compat_mode(),H=O.passthroughs,(G(F["$include?"]("++"))||G(F["$include?"]("$$"))||G(F["$include?"]("ss:")))&&(F=Me(F,"gsub",[ye("InlinePassMacroRx")],function C(){var k,b=C.$$s==null?this:C.$$s,L=A,P=A,de=A,le=A,ke=A,Be=A,Xe=A,it=A,ht=A;if(G(L=(k=Re["~"])===A?A:k["$[]"](4))){if(G($e)&&Ge(L,"++"))return(G((k=Re["~"])===A?A:k["$[]"](2))?""+((k=Re["~"])===A?A:k["$[]"](1))+"["+((k=Re["~"])===A?A:k["$[]"](2))+"]"+((k=Re["~"])===A?A:k["$[]"](3)):""+((k=Re["~"])===A?A:k["$[]"](1))+((k=Re["~"])===A?A:k["$[]"](3)))+"++"+b.$extract_passthroughs((k=Re["~"])===A?A:k["$[]"](5))+"++";if(G(P=(k=Re["~"])===A?A:k["$[]"](2))){if(G(st(de=((k=Re["~"])===A?A:k["$[]"](3)).$length(),0)))return""+((k=Re["~"])===A?A:k["$[]"](1))+"["+P+"]"+R(ye("RS"),Oe(de,1))+L+((k=Re["~"])===A?A:k["$[]"](5))+L;Ge((k=Re["~"])===A?A:k["$[]"](1),ye("RS"))?le="["+P+"]":Ge(L,"++")?Ge(P,"x-")?(ke=!0,Be=V([],{})):G(P["$end_with?"](" x-"))?(ke=!0,Be=b.$parse_quoted_text_attributes(P.$slice(0,Oe(P.$length(),3)))):Be=b.$parse_quoted_text_attributes(P):Be=b.$parse_quoted_text_attributes(P)}else if(G(st(de=((k=Re["~"])===A?A:k["$[]"](3)).$length(),0)))return""+R(ye("RS"),Oe(de,1))+L+((k=Re["~"])===A?A:k["$[]"](5))+L;Xe=Ge(L,"+++")?[]:ye("BASIC_SUBS"),G(Be)?G(ke)?H["$[]="](it=H.$size(),V(["text","subs","type","attributes"],{text:(k=Re["~"])===A?A:k["$[]"](5),subs:ye("NORMAL_SUBS"),type:"monospaced",attributes:Be})):H["$[]="](it=H.$size(),V(["text","subs","type","attributes"],{text:(k=Re["~"])===A?A:k["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):H["$[]="](it=H.$size(),V(["text","subs"],{text:(k=Re["~"])===A?A:k["$[]"](5),subs:Xe}))}else{if(Ge((k=Re["~"])===A?A:k["$[]"](6),ye("RS")))return((k=Re["~"])===A?A:k["$[]"](0)).$slice(1,((k=Re["~"])===A?A:k["$[]"](0)).$length());G(Xe=(k=Re["~"])===A?A:k["$[]"](7))?H["$[]="](it=H.$size(),V(["text","subs"],{text:b.$normalize_text((k=Re["~"])===A?A:k["$[]"](8),A,!0),subs:b.$resolve_pass_subs(Xe)})):H["$[]="](it=H.$size(),V(["text"],{text:b.$normalize_text((k=Re["~"])===A?A:k["$[]"](8),A,!0)}))}return""+(G(ht=le)?ht:"")+ye("PASS_START")+it+ye("PASS_END")},{$$s:O})),ie=ye("InlinePassRx")["$[]"]($e),q=De(ie),g=q[0]==null?A:q[0],o=q[1]==null?A:q[1],m=q[2]==null?A:q[2],(G(F["$include?"](g))||G(o)&&G(F["$include?"](o)))&&(F=Me(F,"gsub",[m],function C(){var k,b=C.$$s==null?this:C.$$s,L=A,P=A,de=A,le=A,ke=A,Be=A,Xe=A,it=A,ht=A,at=A,gt=A,yt=A;if(L=(k=Re["~"])===A?A:k["$[]"](1),P=G(de=(k=Re["~"])===A?A:k["$[]"](4))?de:(k=Re["~"])===A?A:k["$[]"](3),G((k=Re["~"])===A?A:k["$[]"](5))&&(le=!0),ke=(k=Re["~"])===A?A:k["$[]"](6),Be=(k=Re["~"])===A?A:k["$[]"](7),Xe=(k=Re["~"])===A?A:k["$[]"](8),G($e)?it=!0:G(P)&&(Ge(P,"x-")||G(P["$end_with?"](" x-")))&&(it=ht=!0),G(P)){if(G(le))return""+L+"["+P+"]"+ke.$slice(1,ke.$length());if(Ge(L,ye("RS"))){if(G(ht)&&Ge(Be,"`"))return""+L+"["+P+"]"+ke;L="["+P+"]"}else G(ht)?at=Ge(P,"x-")?V([],{}):b.$parse_quoted_text_attributes(P.$slice(0,Oe(P.$length(),3))):at=b.$parse_quoted_text_attributes(P)}else{if(G(le))return""+L+ke.$slice(1,ke.$length());if(G($e)&&Ge(L,ye("RS")))return ke}return G($e)?H["$[]="](gt=H.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"monospaced"})):G(at)?G(it)?(yt=Ge(Be,"`")?ye("BASIC_SUBS"):ye("NORMAL_SUBS"),H["$[]="](gt=H.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:yt,attributes:at,type:"monospaced"}))):H["$[]="](gt=H.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"unquoted"})):H["$[]="](gt=H.$size(),V(["text","subs"],{text:Xe,subs:ye("BASIC_SUBS")})),""+L+ye("PASS_START")+gt+ye("PASS_END")},{$$s:O})),G(F["$include?"](":"))&&(G(F["$include?"]("stem:"))||G(F["$include?"]("math:")))&&(F=Me(F,"gsub",[ye("InlineStemMacroRx")],function C(){var k,b=C.$$s==null?this:C.$$s,L=A,P=A,de=A,le=A;return b.document==null&&(b.document=A),G(((k=Re["~"])===A?A:k["$[]"](0))["$start_with?"](ye("RS")))?((k=Re["~"])===A?A:k["$[]"](0)).$slice(1,((k=Re["~"])===A?A:k["$[]"](0)).$length()):(Ge(L=((k=Re["~"])===A?A:k["$[]"](1)).$to_sym(),"stem")&&(L=ye("STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym()),P=(k=Re["~"])===A?A:k["$[]"](2),de=b.$normalize_text((k=Re["~"])===A?A:k["$[]"](3),A,!0),Ge(L,"latexmath")&&G(de["$start_with?"]("$"))&&G(de["$end_with?"]("$"))&&(de=de.$slice(1,Oe(de.$length(),2))),P=G(P)?b.$resolve_pass_subs(P):G(b.document["$basebackend?"]("html"))?ye("BASIC_SUBS"):A,H["$[]="](le=H.$size(),V(["text","subs","type"],{text:de,subs:P,type:L})),""+ye("PASS_START")+le+ye("PASS_END"))},{$$s:O})),F}),E(ze,"$restore_passthroughs",function(F){var q=this,ie=A;return q.passthroughs==null&&(q.passthroughs=A),ie=q.passthroughs,Me(F,"gsub",[ye("PassSlotRx")],function O(){var $e,H=O.$$s==null?this:O.$$s,g=A,o=A,m=A,C=A,k=A;return G(g=ie["$[]"]((($e=Re["~"])===A?A:$e["$[]"](1)).$to_i()))?(o=H.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),G(m=g["$[]"]("type"))&&(G(C=g["$[]"]("attributes"))&&(k=C["$[]"]("id")),o=ye("Inline").$new(H,"quoted",o,V(["type","id","attributes"],{type:m,id:k,attributes:C})).$convert()),G(o["$include?"](ye("PASS_START")))?H.$restore_passthroughs(o):o):(H.$logger().$error("unresolved passthrough detected: "+F),"??pass??")},{$$s:q})}),E(ze,"$resolve_subs",function(F,q,ie,O){var $e=this,H=A,g=A,o=A,m=A;return q==null&&(q="block"),ie==null&&(ie=A),O==null&&(O=A),G(F["$nil_or_empty?"]())||(H=A,G(F["$include?"](" "))&&(F=F.$delete(" ")),g=ye("SubModifierSniffRx")["$match?"](F),Me(F.$split(","),"each",[],function(k){var b=A,L=A,P=A,de=A,le=A,ke=A;if(k==null&&(k=A),b=A,G(g)&&(Ge(L=k.$chr(),"+")?(b="append",k=k.$slice(1,k.$length())):Ge(L,"-")?(b="remove",k=k.$slice(1,k.$length())):G(k["$end_with?"]("+"))&&(b="prepend",k=k.$chop())),k=k.$to_sym(),Ge(q,"inline")&&(Ge(k,"verbatim")||Ge(k,"v"))?P=ye("BASIC_SUBS"):G(ye("SUB_GROUPS")["$key?"](k))?P=ye("SUB_GROUPS")["$[]"](k):Ge(q,"inline")&&Ge(k.$length(),1)&&G(ye("SUB_HINTS")["$key?"](k))?(de=ye("SUB_HINTS")["$[]"](k),G(le=ye("SUB_GROUPS")["$[]"](de))?P=le:P=[de]):P=[k],G(b))switch(H=G(ke=H)?ke:G(ie)?ie.$drop(0):[],b){case"append":return H=y(H,P);case"prepend":return H=y(P,H);case"remove":return H=Oe(H,P);default:return A}else return H=G(ke=H)?ke:[],H=y(H,P)}),!G(H))?A:(o=H["$&"](ye("SUB_OPTIONS")["$[]"](q)),G(Oe(H,o)["$empty?"]())||(m=Oe(H,o),$e.$logger().$warn("invalid substitution type"+(G(st(m.$size(),1))?"s":"")+(G(O)?" for ":"")+O+": "+m.$join(", "))),o)},-2),E(ze,"$resolve_block_subs",function(F,q,ie){var O=this;return O.$resolve_subs(F,"block",q,ie)}),E(ze,"$resolve_pass_subs",function(F){var q=this;return q.$resolve_subs(F,"inline",A,"passthrough macro")}),E(ze,"$expand_subs",function(F,q){var ie=this,O=A,$e=A,H=A;return q==null&&(q=A),Ye(rt("Symbol"),O=F)?Ge(F,"none")?A:G($e=ye("SUB_GROUPS")["$[]"](F))?$e:[F]:Ye(rt("Array"),O)?(H=[],Me(F,"each",[],function(o){var m=A;return o==null&&(o=A),Ge(o,"none")?A:G(m=ye("SUB_GROUPS")["$[]"](o))?H=y(H,m):H["$<<"](o)}),G(H["$empty?"]())?A:H):ie.$resolve_subs(F,"inline",A,q)},-2),E(ze,"$commit_subs",function(){var F=this,q=A,ie=A,O=A,$e=A,H=A;if(F.default_subs==null&&(F.default_subs=A),F.content_model==null&&(F.content_model=A),F.context==null&&(F.context=A),F.subs==null&&(F.subs=A),F.attributes==null&&(F.attributes=A),F.document==null&&(F.document=A),F.style==null&&(F.style=A),!G(q=F.default_subs))switch(F.content_model){case"simple":q=ye("NORMAL_SUBS");break;case"verbatim":q=Ge(F.context,"verse")?ye("NORMAL_SUBS"):ye("VERBATIM_SUBS");break;case"raw":q=Ge(F.context,"stem")?ye("BASIC_SUBS"):ye("NO_SUBS");break;default:return F.subs}return G(ie=F.attributes["$[]"]("subs"))?F.subs=G(O=F.$resolve_block_subs(ie,q,F.context))?O:[]:F.subs=q.$drop(0),Ge(F.context,"listing")&&Ge(F.style,"source")&&G(H=F.document.$syntax_highlighter())&&G(H["$highlight?"]())&&G($e=F.subs.$index("specialcharacters"))&&F.subs["$[]="]($e,"highlight"),A}),E(ze,"$parse_attributes",function(F,q,ie){var O=this,$e=A,H=A;return O.document==null&&(O.document=A),q==null&&(q=[]),ie==null&&(ie=V([],{})),G(G(F)?F["$empty?"]():!0)?V([],{}):(G(ie["$[]"]("unescape_input"))&&(F=O.$normalize_text(F,!0,!0)),G(ie["$[]"]("sub_input"))&&G(F["$include?"](ye("ATTR_REF_HEAD")))&&(F=O.document.$sub_attributes(F)),G(ie["$[]"]("sub_result"))&&($e=O),G(H=ie["$[]"]("into"))?ye("AttributeList").$new(F,$e).$parse_into(H,q):ye("AttributeList").$new(F,$e).$parse(q))},-2),ze.$private(),E(ze,"$extract_attributes_from_text",function(F,q){var ie=this,O=A,$e=A,H=A;return q==null&&(q=A),O=G(F["$include?"](ye("LF")))?F.$tr(ye("LF")," "):F,G($e=(H=ye("AttributeList").$new(O,ie).$parse())["$[]"](1))?Ge($e,O)?[F,H.$clear()]:[$e,H]:[q,H]},-2),E(ze,"$extract_callouts",function(F){var q=this,ie=A,O=A,$e=A,H=A,g=A;return ie=V([],{}),O=$e=0,H=A,g=G(q["$attr?"]("line-comment"))?ye("CalloutExtractRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutExtractRx"),F=Me(F.$split(ye("LF"),-1),"map",[],function(m){return m==null&&(m=A),$e=y($e,1),Me(m,"gsub",[g],function(){var k,b=A;return G((k=Re["~"])===A?A:k["$[]"](2))?((k=Re["~"])===A?A:k["$[]"](0)).$sub(ye("RS"),""):((G(b=ie["$[]"]($e))?b:(k=[$e,[]],Me(ie,"[]=",k),k[k.length-1]))["$<<"]([G(b=(k=Re["~"])===A?A:k["$[]"](1))?b:Ge((k=Re["~"])===A?A:k["$[]"](3),"--")?["<!--","-->"]:A,Ge((k=Re["~"])===A?A:k["$[]"](4),".")?(O=y(O,1)).$to_s():(k=Re["~"])===A?A:k["$[]"](4)]),H=$e,"")})}).$join(ye("LF")),G(H)?Ge(H,$e)&&(F=""+F+ye("LF")):ie=A,[F,ie]}),E(ze,"$restore_callouts",function(F,q,ie){var O=this,$e=A,H=A;return ie==null&&(ie=A),G(ie)?($e=F.$slice(0,ie),F=F.$slice(ie,F.$length())):$e="",H=0,y($e,Me(F.$split(ye("LF"),-1),"map",[],function g(o){var m,C,k=g.$$s==null?this:g.$$s,b=A,L=A,P=A;return k.document==null&&(k.document=A),o==null&&(o=A),G(b=q.$delete(H=y(H,1)))?Ge(b.$size(),1)?(C=b["$[]"](0),m=De(C),L=m[0]==null?A:m[0],P=m[1]==null?A:m[1],""+o+ye("Inline").$new(k,"callout",P,V(["id","attributes"],{id:k.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:L})})).$convert()):""+o+Me(b,"map",[],function de(le,ke){var Be=de.$$s==null?this:de.$$s;return Be.document==null&&(Be.document=A),le==null&&(le=A),ke==null&&(ke=A),ye("Inline").$new(Be,"callout",ke,V(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:le})})).$convert()},{$$s:k}).$join(" "):o},{$$s:O}).$join(ye("LF")))},-3),E(ze,"$convert_quoted_text",function(F,q,ie){var O=this,$e=A,H=A,g=A,o=A,m=A;if(G(F["$[]"](0)["$start_with?"](ye("RS"))))if(Ge(ie,"constrained")&&G($e=F["$[]"](2)))H="["+$e+"]";else return F["$[]"](0).$slice(1,F["$[]"](0).$length());return Ge(ie,"constrained")?G(H)?""+H+ye("Inline").$new(O,"quoted",F["$[]"](3),V(["type"],{type:q})).$convert():(G(g=F["$[]"](2))&&(o=(m=O.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),""+F["$[]"](1)+ye("Inline").$new(O,"quoted",F["$[]"](3),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert()):(G(g=F["$[]"](1))&&(o=(m=O.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),ye("Inline").$new(O,"quoted",F["$[]"](2),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert())}),E(ze,"$do_replacement",function(F,q,ie){var O=A;if(G((O=F["$[]"](0))["$include?"](ye("RS"))))return O.$sub(ye("RS"),"");switch(ie){case"none":return q;case"bounding":return y(y(F["$[]"](1),q),F["$[]"](2));default:return y(F["$[]"](1),q)}}),E(ze,"$parse_quoted_text_attributes",function(F){var q,ie,O=this,$e=A,H=A,g=A,o=A,m=A;return G(F["$include?"](ye("ATTR_REF_HEAD")))&&(F=O.$sub_attributes(F)),G(F["$include?"](","))&&(F=F.$slice(0,F.$index(","))),G((F=F.$strip())["$empty?"]())?V([],{}):G(F["$start_with?"](".","#"))&&G(ye("Compliance").$shorthand_property_syntax())?(ie=F.$partition("#"),q=De(ie),$e=q[0]==null?A:q[0],q[1]==null||q[1],H=q[2]==null?A:q[2],g=V([],{}),G(H["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):(ie=H.$partition("."),q=De(ie),o=q[0]==null?A:q[0],q[1]==null||q[1],m=q[2]==null?A:q[2],G(o["$empty?"]())||g["$[]="]("id",o),G(m["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):G(st($e.$length(),1))?g["$[]="]("role",y(y($e,"."),m).$tr("."," ").$lstrip()):g["$[]="]("role",m.$tr("."," "))),g):V(["role"],{role:F})}),E(ze,"$normalize_text",function(F,q,ie){return q==null&&(q=A),ie==null&&(ie=A),G(F["$empty?"]())||(G(q)&&(F=F.$strip().$tr(ye("LF")," ")),G(ie)&&G(F["$include?"](ye("R_SB")))&&(F=F.$gsub(ye("ESC_R_SB"),ye("R_SB")))),F},-2),E(ze,"$split_simple_csv",function(F){var q=A,ie=A,O=A;return G(F["$empty?"]())?[]:G(F["$include?"]('"'))?(q=[],ie="",O=A,Me(F,"each_char",[],function(H){switch(H==null&&(H=A),H){case",":return G(O)?ie=y(ie,H):(q["$<<"](ie.$strip()),ie="");case'"':return O=O["$!"]();default:return ie=y(ie,H)}}),q["$<<"](ie.$strip())):Me(F.$split(","),"map",[],function(H){return H==null&&(H=A),H.$strip()})})}(He[0],He)}(tt[0],tt)},Opal.modules["asciidoctor/version"]=function(a){var ae=a.module,re=a.const_set,V=[];return a.nil,function(_e,y){var W=ae(_e,"Asciidoctor"),Ue=[W].concat(y);return re(Ue[0],"VERSION","2.0.20")}(V[0],V)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.eqeq,y=a.truthy,W=a.def,Ue=a.send,G=a.rb_minus,Me=a.eqeqeq,E=a.rb_lt,et=a.not,Re=a.to_ary,Ge=[],De=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(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye);return function(Oe,ft,R){var tt=re(Oe,ft,"AbstractNode"),A=[tt].concat(R),rt=a.$r(A),lt=tt.$$prototype;return lt.document=lt.attributes=lt.parent=De,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"),W(tt,"$initialize",function(M,He,we){var qe=this,ze=De;return we==null&&(we=V([],{})),_e(He,"document")?qe.document=qe:y(M)&&(qe.document=(qe.parent=M).$document()),qe.node_name=(qe.context=He).$to_s(),qe.attributes=y(ze=we["$[]"]("attributes"))?ze.$merge():V([],{}),qe.passthroughs=[]},-3),W(tt,"$block?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),W(tt,"$inline?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),W(tt,"$converter",function(){var M=this;return M.document.$converter()}),W(tt,"$parent=",function(M){var He,we=this;return He=[M,M.$document()],we.parent=He[0],we.document=He[1],He}),W(tt,"$attr",function(M,He,we){var qe=this,ze=De,oe=De,ye=De,Q=De;return He==null&&(He=De),we==null&&(we=De),y(ze=qe.attributes["$[]"](M.$to_s()))?ze:y(oe=y(ye=y(Q=we)?qe.parent:Q)?qe.document.$attributes()["$[]"]((_e(we,!0)?M:we).$to_s()):ye)?oe:He},-2),W(tt,"$attr?",function(M,He,we){var qe=this,ze=De;return He==null&&(He=De),we==null&&(we=De),y(He)?He["$=="](y(ze=qe.attributes["$[]"](M.$to_s()))?ze:y(we)&&y(qe.parent)?qe.document.$attributes()["$[]"]((_e(we,!0)?M:we).$to_s()):De):y(ze=qe.attributes["$key?"](M.$to_s()))?ze:y(we)&&y(qe.parent)?qe.document.$attributes()["$key?"]((_e(we,!0)?M:we).$to_s()):!1},-2),W(tt,"$set_attr",function(M,He,we){var qe=this;return He==null&&(He=""),we==null&&(we=!0),_e(we,!1)&&y(qe.attributes["$key?"](M))?!1:(qe.attributes["$[]="](M,He),!0)},-2),W(tt,"$remove_attr",function(M){var He=this;return He.attributes.$delete(M)}),W(tt,"$option?",function(M){var He=this;return!!y(He.attributes["$[]"](""+M+"-option"))}),W(tt,"$set_option",function(M){var He=this;return He.attributes["$[]="](""+M+"-option",""),De}),W(tt,"$enabled_options",function(){var M=this;return Ue(Pe("Set").$new(),"tap",[],function He(we){var qe=He.$$s==null?this:He.$$s;return qe.attributes==null&&(qe.attributes=De),we==null&&(we=De),Ue(qe.attributes,"each_key",[],function(oe){return oe==null&&(oe=De),y(oe.$to_s()["$end_with?"]("-option"))?we["$<<"](oe.$slice(0,G(oe.$length(),7))):De})},{$$s:M})}),W(tt,"$update_attributes",function(M){var He=this;return He.attributes.$update(M)}),W(tt,"$role",function(){var M=this;return M.attributes["$[]"]("role")}),W(tt,"$roles",function(){var M=this,He=De;return y(He=M.attributes["$[]"]("role"))?He.$split():[]}),W(tt,"$role?",function(M){var He=this;return M==null&&(M=De),y(M)?M["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),W(tt,"$has_role?",function(M){var He=this,we=De;return y(we=He.attributes["$[]"]("role"))?(" "+we+" ")["$include?"](" "+M+" "):!1}),W(tt,"$role=",function(M){var He,we=this;return He=["role",Me(Pe("Array"),M)?M.$join(" "):M],Ue(we.attributes,"[]=",He),He[He.length-1]}),W(tt,"$add_role",function(M){var He=this,we=De;return y(we=He.attributes["$[]"]("role"))?y((" "+we+" ")["$include?"](" "+M+" "))?!1:(He.attributes["$[]="]("role",""+we+" "+M),!0):(He.attributes["$[]="]("role",M),!0)}),W(tt,"$remove_role",function(M){var He=this,we=De;return y(we=He.attributes["$[]"]("role"))&&y((we=we.$split()).$delete(M))?(y(we["$empty?"]())?He.attributes.$delete("role"):He.attributes["$[]="]("role",we.$join(" ")),!0):!1}),W(tt,"$reftext",function(){var M=this,He=De;return y(He=M.attributes["$[]"]("reftext"))?M.$apply_reftext_subs(He):De}),W(tt,"$reftext?",function(){var M=this;return M.attributes["$key?"]("reftext")}),W(tt,"$icon_uri",function(M){var He=this,we=De;return y(He["$attr?"]("icon"))?(we=He.$attr("icon"),y(rt("Helpers")["$extname?"](we))||(we=""+we+"."+He.document.$attr("icontype","png"))):we=""+M+"."+He.document.$attr("icontype","png"),He.$image_uri(we,"iconsdir")}),W(tt,"$image_uri",function(M,He){var we=this,qe=De,ze=De;return He==null&&(He="imagesdir"),y(E((qe=we.document).$safe(),Pe(rt("SafeMode"),"SECURE")))&&y(qe["$attr?"]("data-uri"))?y(rt("Helpers")["$uriish?"](M))&&y(M=rt("Helpers").$encode_spaces_in_uri(M))||y(He)&&y(ze=qe.$attr(He))&&y(rt("Helpers")["$uriish?"](ze))&&y(M=we.$normalize_web_path(M,ze,!1))?y(qe["$attr?"]("allow-uri-read"))?we.$generate_data_uri_from_uri(M,qe["$attr?"]("cache-uri")):M:we.$generate_data_uri(M,He):we.$normalize_web_path(M,y(He)?qe.$attr(He):De)},-2),W(tt,"$media_uri",function(M,He){var we=this;return He==null&&(He="imagesdir"),we.$normalize_web_path(M,y(He)?we.document.$attr(He):De)},-2),W(tt,"$generate_data_uri",function(M,He){var we=this,qe=De,ze=De,oe=De;return He==null&&(He=De),y(qe=rt("Helpers").$extname(M,De))?ze=_e(qe,".svg")?"image/svg+xml":"image/"+qe.$slice(1,qe.$length()):ze="application/octet-stream",y(He)?oe=we.$normalize_system_path(M,we.document.$attr(He),De,V(["target_name"],{target_name:"image"})):oe=we.$normalize_system_path(M),y(Pe("File")["$readable?"](oe))?"data:"+ze+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread(oe)):(we.$logger().$warn("image to embed not found or not readable: "+oe),"data:"+ze+";base64,")},-2),W(tt,"$generate_data_uri_from_uri",function(M,He){var we,qe,ze=this,oe=De,ye=De;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 qe=Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(F){return F==null&&(F=De),[F.$content_type(),F.$read()]}),we=Re(qe),oe=we[0]==null?De:we[0],ye=we[1]==null?De:we[1],"data:"+oe+";base64,"+Pe("Base64").$strict_encode64(ye)}catch(Q){if(a.rescue(Q,[rt("StandardError")]))try{return ze.$logger().$warn("could not retrieve image data from URI: "+M),M}finally{a.pop_exception()}else throw Q}},-2),W(tt,"$normalize_asset_path",function(M,He,we){var qe=this;return He==null&&(He="path"),we==null&&(we=!0),qe.$normalize_system_path(M,qe.document.$base_dir(),De,V(["target_name","recover"],{target_name:He,recover:we}))},-2),W(tt,"$normalize_system_path",function(M,He,we,qe){var ze=this,oe=De,ye=De;return He==null&&(He=De),we==null&&(we=De),qe==null&&(qe=V([],{})),y(E((oe=ze.document).$safe(),Pe(rt("SafeMode"),"SAFE")))?y(He)?y(oe.$path_resolver()["$root?"](He))||(He=Pe("File").$join(oe.$base_dir(),He)):He=oe.$base_dir():(He=y(ye=He)?ye:oe.$base_dir(),we=y(ye=we)?ye:oe.$base_dir()),oe.$path_resolver().$system_path(M,He,we,qe)},-2),W(tt,"$normalize_web_path",function(M,He,we){var qe=this;return He==null&&(He=De),we==null&&(we=!0),y(we)&&y(rt("Helpers")["$uriish?"](M))?rt("Helpers").$encode_spaces_in_uri(M):qe.document.$path_resolver().$web_path(M,He)},-2),W(tt,"$read_asset",function(M,He){var we=this,qe=De;return He==null&&(He=V([],{})),Me(Pe("Hash"),He)||(He=V(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),y(Pe("File")["$readable?"](M))?y(He["$[]"]("normalize"))?rt("Helpers").$prepare_source_string(Pe("File").$read(M,V(["mode"],{mode:rt("FILE_READ_MODE")}))).$join(rt("LF")):Pe("File").$read(M,V(["mode"],{mode:rt("FILE_READ_MODE")})):(y(He["$[]"]("warn_on_failure"))&&we.$logger().$warn(""+(y(qe=we.$attr("docfile"))?qe:"<stdin>")+": "+(y(qe=He["$[]"]("label"))?qe:"file")+" does not exist or cannot be read: "+M),De)},-2),W(tt,"$read_contents",function(M,He){var we=this,qe=De,ze=De,oe=De,ye=De;if(He==null&&(He=V([],{})),qe=we.document,y(rt("Helpers")["$uriish?"](M))||y(ze=He["$[]"]("start"))&&y(rt("Helpers")["$uriish?"](ze))&&y(M=qe.$path_resolver().$web_path(M,ze)))if(y(qe["$attr?"]("allow-uri-read"))){y(qe["$attr?"]("cache-uri"))&&rt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{y(He["$[]"]("normalize"))?oe=rt("Helpers").$prepare_source_string(Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(F){return F==null&&(F=De),F.$read()})).$join(rt("LF")):oe=Ue(Pe("OpenURI"),"open_uri",[M,rt("URI_READ_MODE")],function(F){return F==null&&(F=De),F.$read()})}catch(Q){if(a.rescue(Q,[rt("StandardError")]))try{y(He.$fetch("warn_on_failure",!0))&&we.$logger().$warn("could not retrieve contents of "+(y(ye=He["$[]"]("label"))?ye:"asset")+" at URI: "+M)}finally{a.pop_exception()}else throw Q}}else y(He.$fetch("warn_on_failure",!0))&&we.$logger().$warn("cannot retrieve contents of "+(y(ye=He["$[]"]("label"))?ye:"asset")+" at URI: "+M+" (allow-uri-read attribute not enabled)");else M=we.$normalize_system_path(M,He["$[]"]("start"),De,V(["target_name"],{target_name:y(ye=He["$[]"]("label"))?ye:"asset"})),oe=we.$read_asset(M,V(["normalize","warn_on_failure","label"],{normalize:He["$[]"]("normalize"),warn_on_failure:He.$fetch("warn_on_failure",!0),label:He["$[]"]("label")}));return y(oe)&&y(He["$[]"]("warn_if_empty"))&&y(oe["$empty?"]())&&we.$logger().$warn("contents of "+(y(ye=He["$[]"]("label"))?ye:"asset")+" is empty: "+M),oe},-2),W(tt,"$is_uri?",function(M){return rt("Helpers")["$uriish?"](M)})}(We[0],null,We)}(Ge[0],Ge)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,W=a.eqeq,Ue=a.eqeqeq,G=a.def,Me=a.return_val,E=a.truthy,et=a.alias,Re=a.send,Ge=a.rb_plus,De=a.not,Pe=a.neqeq,dt=[],Ye=a.nil,st=a.$$$;return a.add_stubs("attr_reader,attr_writer,attr_accessor,==,===,level,file,lineno,playback_attributes,convert,converter,join,map,to_s,parent,parent=,<<,empty?,Integer,find_by_internal,to_proc,find_by,context,[],items,+,find_index,include?,next_adjacent_block,blocks,select,sub_specialchars,match?,sub_replacements,title,apply_title_subs,delete,!,reftext,nil_or_empty?,sub_placeholder,sub_quotes,compat_mode,attributes,chomp,increment_and_store_counter,index=,numbered,sectname,numeral=,counter,caption=,numeral,int_to_roman,each,assign_numeral,reindex_sections,protected,has_role?,raise,header?,!=,flatten,head,rows,merge,body,foot,style,inner_document"),function(We,Oe){var ft=ae(We,"Asciidoctor"),R=[ft].concat(Oe),tt=a.$r(R);return function(A,rt,lt){var K=re(A,rt,"AbstractBlock"),M=[K].concat(lt),He=a.$r(M),we=K.$$prototype;return we.source_location=we.document=we.attributes=we.blocks=we.numeral=we.context=we.parent=we.caption=we.style=we.converted_title=we.title=we.subs=we.next_section_index=we.next_section_ordinal=we.id=we.header=Ye,K.$attr_reader("blocks"),K.$attr_writer("caption"),K.$attr_accessor("content_model"),K.$attr_accessor("level"),K.$attr_accessor("numeral"),K.$attr_accessor("source_location"),K.$attr_accessor("style"),K.$attr_reader("subs"),G(K,"$initialize",function qe(ze,oe,ye){var Q=qe.$$p||Ye,F=this;return qe.$$p=null,ye==null&&(ye=V([],{})),_e(F,y(F,"initialize",qe,!1,!0),"initialize",[ze,oe,ye],Q),F.content_model="compound",F.blocks=[],F.subs=[],F.id=F.title=F.caption=F.numeral=F.style=F.default_subs=F.source_location=Ye,W(oe,"document")||W(oe,"section")?(F.level=F.next_section_index=0,F.next_section_ordinal=1):Ue(He("AbstractBlock"),ze)?F.level=ze.$level():F.level=Ye},-3),G(K,"$block?",Me(!0)),G(K,"$inline?",Me(!1)),G(K,"$file",function(){var ze=this,oe=Ye;return E(oe=ze.source_location)?ze.source_location.$file():oe}),G(K,"$lineno",function(){var ze=this,oe=Ye;return E(oe=ze.source_location)?ze.source_location.$lineno():oe}),G(K,"$convert",function(){var ze=this;return ze.document.$playback_attributes(ze.attributes),ze.$converter().$convert(ze)}),et(K,"render","convert"),G(K,"$content",function(){var ze=this;return Re(ze.blocks,"map",[],function(ye){return ye==null&&(ye=Ye),ye.$convert()}).$join(He("LF"))}),G(K,"$context=",function(ze){var oe=this;return oe.node_name=(oe.context=ze).$to_s()}),G(K,"$<<",function(ze){var oe=this;return W(ze.$parent(),oe)||ze["$parent="](oe),oe.blocks["$<<"](ze),oe}),et(K,"append","<<"),G(K,"$blocks?",function(){var ze=this;return!E(ze.blocks["$empty?"]())}),G(K,"$sections?",Me(!1)),G(K,"$number",function(){var ze=this;try{return ze.$Integer(ze.numeral)}catch(oe){if(a.rescue(oe,[He("StandardError")]))try{return ze.numeral}finally{a.pop_exception()}else throw oe}}),G(K,"$number=",function(ze){var oe=this;return oe.numeral=ze.$to_s()}),G(K,"$find_by",function qe(ze){var oe=qe.$$p||Ye,ye=this,Q=Ye;qe.$$p=null,ze==null&&(ze=V([],{}));try{return Re(ye,"find_by_internal",[ze,Q=[]],oe.$to_proc())}catch(F){if(a.rescue(F,[st("StopIteration")]))try{return Q}finally{a.pop_exception()}else throw F}},-1),et(K,"query","find_by"),G(K,"$next_adjacent_block",function(){var ze=this,oe=Ye,ye=Ye;return W(ze.context,"document")?Ye:W((oe=ze.parent).$context(),"dlist")&&W(ze.context,"list_item")?E(ye=oe.$items()["$[]"](Ge(Re(oe.$items(),"find_index",[],function Q(F,q){var ie=Q.$$s==null?this:Q.$$s,O=Ye;return F==null&&(F=Ye),q==null&&(q=Ye),E(O=F["$include?"](ie))?O:q["$=="](ie)},{$$s:ze}),1)))?ye:oe.$next_adjacent_block():E(ye=oe.$blocks()["$[]"](Ge(oe.$blocks().$find_index(ze),1)))?ye:oe.$next_adjacent_block()}),G(K,"$sections",function(){var ze=this;return Re(ze.blocks,"select",[],function(ye){return ye==null&&(ye=Ye),ye.$context()["$=="]("section")})}),G(K,"$alt",function(){var ze=this,oe=Ye;return E(oe=ze.attributes["$[]"]("alt"))?W(oe,ze.attributes["$[]"]("default-alt"))?ze.$sub_specialchars(oe):(oe=ze.$sub_specialchars(oe),E(He("ReplaceableTextRx")["$match?"](oe))?ze.$sub_replacements(oe):oe):""}),G(K,"$caption",function(){var ze=this;return W(ze.context,"admonition")?ze.attributes["$[]"]("textlabel"):ze.caption}),G(K,"$captioned_title",function(){var ze=this;return""+ze.caption+ze.$title()}),G(K,"$list_marker_keyword",function(ze){var oe=this,ye=Ye;return ze==null&&(ze=Ye),He("ORDERED_LIST_KEYWORDS")["$[]"](E(ye=ze)?ye:oe.style)},-1),G(K,"$title",function(){var ze=this,oe=Ye,ye=Ye;return ze.converted_title=E(oe=ze.converted_title)?oe:E(ye=ze.title)?ze.$apply_title_subs(ze.title):ye}),G(K,"$title?",function(){var ze=this;return!!E(ze.title)}),G(K,"$title=",function(ze){var oe=this;return oe.converted_title=Ye,oe.title=ze}),G(K,"$sub?",function(ze){var oe=this;return oe.subs["$include?"](ze)}),G(K,"$remove_sub",function(ze){var oe=this;return oe.subs.$delete(ze),Ye}),G(K,"$xreftext",function(ze){var oe=this,ye=Ye,Q=Ye,F=Ye,q=Ye;if(ze==null&&(ze=Ye),E(ye=oe.$reftext())&&De(ye["$empty?"]()))return ye;if(E(ze)&&E(oe.title)&&De(oe.caption["$nil_or_empty?"]()))switch(ze){case"full":return Q=oe.$sub_placeholder(oe.$sub_quotes(E(oe.document.$compat_mode())?"``%s''":'"`%s`"'),oe.$title()),E(oe.numeral)&&E(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&E(F=oe.document.$attributes()["$[]"](q))?""+F+" "+oe.numeral+", "+Q:""+oe.caption.$chomp(". ")+", "+Q;case"short":return E(oe.numeral)&&E(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&E(F=oe.document.$attributes()["$[]"](q))?""+F+" "+oe.numeral:oe.caption.$chomp(". ");default:return oe.$title()}else return oe.$title()},-1),G(K,"$assign_caption",function(ze,oe){var ye=this,Q=Ye,F=Ye,q=Ye;return oe==null&&(oe=ye.context),E(ye.caption)||De(ye.title)||E(ye.caption=E(Q=ze)?Q:ye.document.$attributes()["$[]"]("caption"))||E(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe))&&E(F=ye.document.$attributes()["$[]"](q))&&(ye.caption=""+F+" "+(ye.numeral=ye.document.$increment_and_store_counter(""+oe+"-number",ye))+". "),Ye},-2),G(K,"$assign_numeral",function(ze){var oe,ye=this,Q=Ye,F=Ye,q=Ye;return ye.next_section_index=Ge((oe=[ye.next_section_index],Re(ze,"index=",oe),oe[oe.length-1]),1),E(Q=ze.$numbered())&&(W(F=ze.$sectname(),"appendix")?(ze["$numeral="](ye.document.$counter("appendix-number","A")),ze["$caption="](E(q=ye.document.$attributes()["$[]"]("appendix-caption"))?""+q+" "+ze.$numeral()+": ":""+ze.$numeral()+". ")):W(F,"chapter")||W(Q,"chapter")?ze["$numeral="](ye.document.$counter("chapter-number",1).$to_s()):(ze["$numeral="](W(F,"part")?He("Helpers").$int_to_roman(ye.next_section_ordinal):ye.next_section_ordinal.$to_s()),ye.next_section_ordinal=Ge(ye.next_section_ordinal,1))),Ye}),G(K,"$reindex_sections",function(){var ze=this;return ze.next_section_index=0,ze.next_section_ordinal=1,Re(ze.blocks,"each",[],function oe(ye){var Q=oe.$$s==null?this:oe.$$s;return ye==null&&(ye=Ye),W(ye.$context(),"section")?(Q.$assign_numeral(ye),ye.$reindex_sections()):Ye},{$$s:ze})}),K.$protected(),G(K,"$find_by_internal",function qe(ze,oe){var ye=qe.$$p||Ye,Q=this,F=Ye,q=Ye,ie=Ye,O=Ye,$e=Ye,H=Ye;if(qe.$$p=null,ze==null&&(ze=V([],{})),oe==null&&(oe=[]),(E(O=E($e=ze["$[]"]("context"))?Ye:!0)||W($e,Q.context))&&(De(ie=ze["$[]"]("style"))||W(ie,Q.style))&&(De(q=ze["$[]"]("role"))||E(Q["$has_role?"](q)))&&(De(F=ze["$[]"]("id"))||W(F,Q.id)))if(ye!==Ye)if(E(H=a.yield1(ye,Q)))switch(H){case"prune":return oe["$<<"](Q),E(F)&&Q.$raise(st("StopIteration")),oe;case"reject":return E(F)&&Q.$raise(st("StopIteration")),oe;case"stop":Q.$raise(st("StopIteration"));break;default:oe["$<<"](Q),E(F)&&Q.$raise(st("StopIteration"))}else E(F)&&Q.$raise(st("StopIteration"));else oe["$<<"](Q),E(F)&&Q.$raise(st("StopIteration"));switch(Q.context){case"document":W($e,"document")||(E(Q["$header?"]())&&(E(O)||W($e,"section"))&&Re(Q.header,"find_by_internal",[ze,oe],ye.$to_proc()),Re(Q.blocks,"each",[],function(o){return o==null&&(o=Ye),W($e,"section")&&Pe(o.$context(),"section")?Ye:Re(o,"find_by_internal",[ze,oe],ye.$to_proc())}));break;case"dlist":(E(O)||Pe($e,"section"))&&Re(Q.blocks.$flatten(),"each",[],function(o){return o==null&&(o=Ye),E(o)?Re(o,"find_by_internal",[ze,oe],ye.$to_proc()):Ye});break;case"table":E(ze["$[]"]("traverse_documents"))?(Re(Q.$rows().$head(),"each",[],function(o){return o==null&&(o=Ye),Re(o,"each",[],function(C){return C==null&&(C=Ye),Re(C,"find_by_internal",[ze,oe],ye.$to_proc())})}),W($e,"inner_document")&&(ze=ze.$merge(V(["context"],{context:"document"}))),Re(Ge(Q.$rows().$body(),Q.$rows().$foot()),"each",[],function(o){return o==null&&(o=Ye),Re(o,"each",[],function(C){return C==null&&(C=Ye),Re(C,"find_by_internal",[ze,oe],ye.$to_proc()),W(C.$style(),"asciidoc")?Re(C.$inner_document(),"find_by_internal",[ze,oe],ye.$to_proc()):Ye})})):Re(Ge(Ge(Q.$rows().$head(),Q.$rows().$body()),Q.$rows().$foot()),"each",[],function(o){return o==null&&(o=Ye),Re(o,"each",[],function(C){return C==null&&(C=Ye),Re(C,"find_by_internal",[ze,oe],ye.$to_proc())})});break;default:Re(Q.blocks,"each",[],function(o){return o==null&&(o=Ye),W($e,"section")&&Pe(o.$context(),"section")?Ye:Re(o,"find_by_internal",[ze,oe],ye.$to_proc())})}return oe},-1)}(R[0],tt("AbstractNode"),R)}(dt[0],dt)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.hash,y=a.regexp,W=a.hash2,Ue=a.def,G=a.truthy,Me=a.rb_plus,E=a.send,et=a.defs,Re=a.eqeqeq,Ge=a.eqeq,De=a.rb_times,Pe=[],dt=a.nil,Ye=a.$$$;return a.add_stubs("new,[],update,parse,parse_attribute,eos?,skip_delimiter,+,rekey,each_with_index,[]=,private,skip_blank,===,peek,parse_attribute_value,get_byte,start_with?,scan_name,end_with?,rstrip,string,==,unscan,scan_to_delimiter,*,include?,delete,each,split,empty?,apply_subs,scan_to_quote,gsub,skip,scan"),function(st,We){var Oe=ae(st,"Asciidoctor"),ft=[Oe].concat(We);return function(R,tt,A){var rt=re(R,tt,"AttributeList"),lt=[rt].concat(A),K=a.$r(lt),M=rt.$$prototype;return M.attributes=M.scanner=M.delimiter=M.block=M.delimiter_skip_pattern=M.delimiter_boundary_pattern=dt,V(lt[0],"APOS","'"),V(lt[0],"BACKSLASH","\\"),V(lt[0],"QUOT",'"'),V(lt[0],"BoundaryRx",_e(K("QUOT"),/.*?[^\\](?=")/,K("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),V(lt[0],"EscapedQuotes",_e(K("QUOT"),'\\"',K("APOS"),"\\'")),V(lt[0],"NameRx",y([K("CG_WORD"),"[",K("CC_WORD"),"\\-.]*"])),V(lt[0],"BlankRx",/[ \t]+/),V(lt[0],"SkipRx",W([","],{",":/[ \t]*(,|$)/})),Ue(rt,"$initialize",function(we,qe,ze){var oe=this;return qe==null&&(qe=dt),ze==null&&(ze=","),oe.scanner=Ye("StringScanner").$new(we),oe.block=qe,oe.delimiter=ze,oe.delimiter_skip_pattern=K("SkipRx")["$[]"](ze),oe.delimiter_boundary_pattern=K("BoundaryRx")["$[]"](ze),oe.attributes=dt},-2),Ue(rt,"$parse_into",function(we,qe){var ze=this;return qe==null&&(qe=[]),we.$update(ze.$parse(qe))},-2),Ue(rt,"$parse",function(we){var qe=this,ze=dt;if(we==null&&(we=[]),G(qe.attributes))return qe.attributes;for(qe.attributes=W([],{}),ze=0;G(qe.$parse_attribute(ze,we))&&!G(qe.scanner["$eos?"]());)qe.$skip_delimiter(),ze=Me(ze,1);return qe.attributes},-1),Ue(rt,"$rekey",function(we){var qe=this;return K("AttributeList").$rekey(qe.attributes,we)}),et(rt,"$rekey",function(we,qe){return E(qe,"each_with_index",[],function(oe,ye){var Q,F=dt;return oe==null&&(oe=dt),ye==null&&(ye=dt),G(oe)&&G(F=we["$[]"](Me(ye,1)))?(Q=[oe,F],E(we,"[]=",Q),Q[Q.length-1]):dt}),we}),rt.$private(),Ue(rt,"$parse_attribute",function(we,qe){var ze=this,oe=dt,ye=dt,Q=dt,F=dt,q=dt,ie=dt,O=dt,$e=dt,H=dt,g=dt;if(oe=!0,ze.$skip_blank(),Re(K("QUOT"),ye=ze.scanner.$peek(1)))Q=ze.$parse_attribute_value(ze.scanner.$get_byte());else if(Re(K("APOS"),ye))Q=ze.$parse_attribute_value(ze.scanner.$get_byte()),G(Q["$start_with?"](K("APOS")))||(F=!0);else if(q=G(ie=G(O=Q=ze.$scan_name())?ze.$skip_blank():O)?ie:0,G(ze.scanner["$eos?"]())){if(!(G(Q)||G(ze.scanner.$string().$rstrip()["$end_with?"](ze.delimiter))))return dt;oe=dt}else if(Ge($e=ze.scanner.$get_byte(),ze.delimiter))ze.scanner.$unscan();else if(G(Q))if(Ge($e,"=")){if(ze.$skip_blank(),Re(K("QUOT"),ie=$e=ze.scanner.$get_byte()))H=ze.$parse_attribute_value($e);else if(Re(K("APOS"),ie))H=ze.$parse_attribute_value($e),G(H["$start_with?"](K("APOS")))||(F=!0);else if(Re(ze.delimiter,ie))H="",ze.scanner.$unscan();else if(Re(dt,ie))H="";else if(H=""+$e+ze.$scan_to_delimiter(),Ge(H,"None"))return!0}else Q=""+Q+De(" ",q)+$e+ze.$scan_to_delimiter();else Q=""+$e+ze.$scan_to_delimiter();if(G(H))switch(Q){case"options":case"opts":G(H["$include?"](","))?(G(H["$include?"](" "))&&(H=H.$delete(" ")),E(H.$split(","),"each",[],function o(m){var C,k=o.$$s==null?this:o.$$s;return k.attributes==null&&(k.attributes=dt),m==null&&(m=dt),G(m["$empty?"]())?dt:(C=[""+m+"-option",""],E(k.attributes,"[]=",C),C[C.length-1])},{$$s:ze})):G(H["$empty?"]())||ze.attributes["$[]="](""+H+"-option","");break;default:if(G(F)&&G(ze.block))switch(Q){case"title":case"reftext":ze.attributes["$[]="](Q,H);break;default:ze.attributes["$[]="](Q,ze.block.$apply_subs(H))}else ze.attributes["$[]="](Q,H)}else G(F)&&G(ze.block)&&(Q=ze.block.$apply_subs(Q)),G(g=qe["$[]"](we))&&G(Q)&&ze.attributes["$[]="](g,Q),ze.attributes["$[]="](Me(we,1),Q);return oe}),Ue(rt,"$parse_attribute_value",function(we){var qe=this,ze=dt;return Ge(qe.scanner.$peek(1),we)?(qe.scanner.$get_byte(),""):G(ze=qe.$scan_to_quote(we))?(qe.scanner.$get_byte(),G(ze["$include?"](K("BACKSLASH")))?ze.$gsub(K("EscapedQuotes")["$[]"](we),we):ze):""+we+qe.$scan_to_delimiter()}),Ue(rt,"$skip_blank",function(){var we=this;return we.scanner.$skip(K("BlankRx"))}),Ue(rt,"$skip_delimiter",function(){var we=this;return we.scanner.$skip(we.delimiter_skip_pattern)}),Ue(rt,"$scan_name",function(){var we=this;return we.scanner.$scan(K("NameRx"))}),Ue(rt,"$scan_to_delimiter",function(){var we=this;return we.scanner.$scan(we.delimiter_boundary_pattern)}),Ue(rt,"$scan_to_quote",function(we){var qe=this;return qe.scanner.$scan(K("BoundaryRx")["$[]"](we))})}(ft[0],null,ft)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.hash2,y=a.alias,W=a.send2,Ue=a.find_super,G=a.truthy,Me=a.eqeqeq,E=a.def,et=a.rb_lt,Re=a.eqeq,Ge=[],De=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(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Oe=a.$r(We);return function(ft,R,tt){var A=re(ft,R,"Block"),rt=[A].concat(tt),lt=a.$r(rt),K=A.$$prototype;return K.attributes=K.content_model=K.lines=K.subs=K.blocks=K.context=K.style=De,V(rt[0],"DEFAULT_CONTENT_MODEL",_e(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"}))["$default="]("simple"),y(A,"blockname","context"),A.$attr_accessor("lines"),E(A,"$initialize",function M(He,we,qe){var ze=M.$$p||De,oe=this,ye=De,Q=De,F=De;return M.$$p=null,qe==null&&(qe=_e([],{})),W(oe,Ue(oe,"initialize",M,!1,!0),"initialize",[He,we,qe],ze),oe.content_model=G(ye=qe["$[]"]("content_model"))?ye:lt("DEFAULT_CONTENT_MODEL")["$[]"](we),G(qe["$key?"]("subs"))?G(Q=qe["$[]"]("subs"))?(Me("default",ye=Q)?oe.default_subs=qe["$[]"]("default_subs"):Me(Pe("Array"),ye)?(oe.default_subs=Q.$drop(0),oe.attributes.$delete("subs")):(oe.default_subs=De,oe.attributes["$[]="]("subs",Q.$to_s())),oe.$commit_subs()):(oe.default_subs=[],oe.attributes.$delete("subs")):oe.default_subs=De,G((F=qe["$[]"]("source"))["$nil_or_empty?"]())?oe.lines=[]:Me(Pe("String"),F)?oe.lines=lt("Helpers").$prepare_source_string(F):oe.lines=F.$drop(0)},-3),E(A,"$content",function M(){var He=M.$$p||De,we=this,qe=De,ze=De,oe=De,ye=De;switch(M.$$p=null,we.content_model){case"compound":return W(we,Ue(we,"content",M,!1,!0),"content",[],He);case"simple":return we.$apply_subs(we.lines.$join(lt("LF")),we.subs);case"verbatim":case"raw":if(qe=we.$apply_subs(we.lines,we.subs),G(et(qe.$size(),2)))return G(ze=qe["$[]"](0))?ze:"";for(;G(G(ze=oe=qe["$[]"](0))?oe.$rstrip()["$empty?"]():ze);)qe.$shift();for(;G(G(ze=ye=qe["$[]"](-1))?ye.$rstrip()["$empty?"]():ze);)qe.$pop();return qe.$join(lt("LF"));default:return Re(we.content_model,"empty")||we.$logger().$warn("unknown content model '"+we.content_model+"' for block: "+we),De}}),E(A,"$source",function(){var He=this;return He.lines.$join(lt("LF"))}),E(A,"$to_s",function(){var He=this,we=De;return we=Re(He.content_model,"compound")?"blocks: "+He.blocks.$size():"lines: "+He.lines.$size(),"#<"+He.$class()+"@"+He.$object_id()+" {context: "+He.context.$inspect()+", content_model: "+He.content_model.$inspect()+", style: "+He.style.$inspect()+", "+we+"}>"})}(We[0],Oe("AbstractBlock"),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/callouts"]=function(a){var ae=a.module,re=a.klass,V=a.def,_e=a.hash2,y=a.rb_plus,W=a.truthy,Ue=a.rb_le,G=a.rb_minus,Me=a.send,E=a.eqeq,et=a.rb_lt,Re=[],Ge=a.nil;return a.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),function(De,Pe){var dt=ae(De,"Asciidoctor"),Ye=[dt].concat(Pe);return function(st,We){var Oe=re(st,We,"Callouts"),ft=Oe.$$prototype;return ft.co_index=ft.lists=ft.list_index=Ge,V(Oe,"$initialize",function(){var tt=this;return tt.lists=[],tt.list_index=0,tt.$next_list()}),V(Oe,"$register",function(tt){var A=this,rt=Ge;return A.$current_list()["$<<"](_e(["ordinal","id"],{ordinal:tt.$to_i(),id:rt=A.$generate_next_callout_id()})),A.co_index=y(A.co_index,1),rt}),V(Oe,"$read_next_id",function(){var tt=this,A=Ge,rt=Ge;return A=Ge,rt=tt.$current_list(),W(Ue(tt.co_index,rt.$size()))&&(A=rt["$[]"](G(tt.co_index,1))["$[]"]("id")),tt.co_index=y(tt.co_index,1),A}),V(Oe,"$callout_ids",function(tt){var A=this;return Me(A.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ge),E(lt["$[]"]("ordinal"),tt)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),V(Oe,"$current_list",function(){var tt=this;return tt.lists["$[]"](G(tt.list_index,1))}),V(Oe,"$next_list",function(){var tt=this;return tt.list_index=y(tt.list_index,1),W(et(tt.lists.$size(),tt.list_index))&&tt.lists["$<<"]([]),tt.co_index=1,Ge}),V(Oe,"$rewind",function(){var tt=this;return tt.list_index=1,tt.co_index=1,Ge}),Oe.$private(),V(Oe,"$generate_next_callout_id",function(){var tt=this;return tt.$generate_callout_id(tt.list_index,tt.co_index)}),V(Oe,"$generate_callout_id",function(tt,A){return"CO"+tt+"-"+A})}(Ye[0],null)}(Re[0],Re)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ae=a.module,re=a.klass,V=a.slice,_e=a.extract_kwargs,y=a.ensure_kwargs,W=a.send,Ue=a.truthy,G=a.def,Me=a.thrower,E=[],et=a.nil,Re=a.$$$;return a.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(Ge,De){var Pe=ae(Ge,"Asciidoctor"),dt=[Pe].concat(De),Ye=a.$r(dt);return function(st,We){var Oe=re(st,We,"CompositeConverter"),ft=Oe.$$prototype;return ft.converter_cache=ft.converters=et,Oe.$attr_reader("converters"),G(Oe,"$initialize",function(tt,A,rt){var lt,K,M,He,we=this;return lt=V(arguments,1),K=_e(lt),K=y(K),M=lt,He=K.$$smap.backend_traits_source,He==null&&(He=et),we.backend=tt,W(we.converters=M,"each",[],function qe(ze){var oe=qe.$$s==null?this:qe.$$s;return ze==null&&(ze=et),Ue(ze["$respond_to?"]("composed"))?ze.$composed(oe):et},{$$s:we}),Ue(He)&&we.$init_backend_traits(He.$backend_traits()),we.converter_cache=W(Re("Hash"),"new",[],function qe(ze,oe){var ye,Q=qe.$$s==null?this:qe.$$s;return ze==null&&(ze=et),oe==null&&(oe=et),ye=[oe,Q.$find_converter(oe)],W(ze,"[]=",ye),ye[ye.length-1]},{$$s:we})},-2),G(Oe,"$convert",function(tt,A,rt){var lt=this,K=et;return A==null&&(A=et),rt==null&&(rt=et),lt.$converter_for(A=Ue(K=A)?K:tt.$node_name()).$convert(tt,A,rt)},-2),G(Oe,"$converter_for",function(tt){var A=this;return A.converter_cache["$[]"](tt)}),G(Oe,"$find_converter",function(tt){try{var A=Me("return"),rt=this;return W(rt.converters,"each",[],function(K){if(K==null&&(K=et),Ue(K["$handles?"](tt)))A.$throw(K);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}})}(Ye("Converter"),Re(Ye("Converter"),"Base"))}(E[0],E)},Opal.modules["asciidoctor/converter"]=function(a){var ae=a.module,re=a.hash2,V=a.def,_e=a.return_val,y=a.truthy,W=a.eqeq,Ue=a.defs,G=a.send,Me=a.alias,E=a.slice,et=a.to_a,Re=a.extract_kwargs,Ge=a.ensure_kwargs,De=a.eqeqeq,Pe=a.Class,dt=a.klass,Ye=a.class_variable_set,st=a.class_variable_get,We=a.rb_plus,Oe=a.gvars,ft=[],R=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=ae(A,"Asciidoctor"),K=[lt].concat(rt);return function(M,He){var we=ae(M,"Converter"),qe=[we].concat(He),ze=a.$r(qe);return we.$autoload("CompositeConverter","asciidoctor/converter/composite"),we.$attr_reader("backend"),V(we,"$initialize",function(ye,Q){var F=this;return Q==null&&(Q=re([],{})),F.backend=ye},-2),V(we,"$convert",function(ye,Q,F){var q=this;return q.backend==null&&(q.backend=R),q.$raise(tt("NotImplementedError"),""+q.$class()+" (backend: "+q.backend+") must implement the #convert method")},-2),V(we,"$handles?",_e(!0)),Ue(we,"$derive_backend_traits",function(ye,Q){var F=R,q=R,ie=R;return Q==null&&(Q=R),y(ye)?(y(F=ze("DEFAULT_EXTENSIONS")["$[]"](Q=y(q=Q)?q:ye.$sub(ze("TrailingDigitsRx"),"")))?ie=F.$slice(1,F.$length()):F="."+(ie=Q),W(ie,"html")?re(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:Q,filetype:ie,htmlsyntax:"html",outfilesuffix:F}):re(["basebackend","filetype","outfilesuffix"],{basebackend:Q,filetype:ie,outfilesuffix:F})):re([],{})},-2),function(oe,ye){var Q=ae(oe,"BackendTraits"),F=[Q].concat(ye),q=a.$r(F);return V(Q,"$basebackend",function(O){var $e,H=this;return O==null&&(O=R),y(O)?($e=["basebackend",O],G(H.$backend_traits(O),"[]=",$e),$e[$e.length-1]):H.$backend_traits()["$[]"]("basebackend")},-1),V(Q,"$filetype",function(O){var $e,H=this;return O==null&&(O=R),y(O)?($e=["filetype",O],G(H.$backend_traits(),"[]=",$e),$e[$e.length-1]):H.$backend_traits()["$[]"]("filetype")},-1),V(Q,"$htmlsyntax",function(O){var $e,H=this;return O==null&&(O=R),y(O)?($e=["htmlsyntax",O],G(H.$backend_traits(),"[]=",$e),$e[$e.length-1]):H.$backend_traits()["$[]"]("htmlsyntax")},-1),V(Q,"$outfilesuffix",function(O){var $e,H=this;return O==null&&(O=R),y(O)?($e=["outfilesuffix",O],G(H.$backend_traits(),"[]=",$e),$e[$e.length-1]):H.$backend_traits()["$[]"]("outfilesuffix")},-1),V(Q,"$supports_templates",function(O){var $e,H=this;return O==null&&(O=!0),$e=["supports_templates",O],G(H.$backend_traits(),"[]=",$e),$e[$e.length-1]},-1),V(Q,"$supports_templates?",function(){var O=this;return O.$backend_traits()["$[]"]("supports_templates")}),V(Q,"$init_backend_traits",function(O){var $e=this,H=R;return O==null&&(O=R),$e.backend_traits=y(H=O)?H:re([],{})},-1),V(Q,"$backend_traits",function(O){var $e=this,H=R;return $e.backend_traits==null&&($e.backend_traits=R),$e.backend==null&&($e.backend=R),O==null&&(O=R),$e.backend_traits=y(H=$e.backend_traits)?H:q("Converter").$derive_backend_traits($e.backend,O)},-1),Me(Q,"backend_info","backend_traits"),Ue(Q,"$derive_backend_traits",function(O,$e){return $e==null&&($e=R),q("Converter").$derive_backend_traits(O,$e)},-2)}(qe[0],qe),function(oe,ye){var Q=ae(oe,"Config"),F=[Q].concat(ye),q=a.$r(F);return V(Q,"$register_for",function(O){var $e,H,g=this;return $e=E(arguments),H=$e,G(q("Converter"),"register",[g].concat(et(G(H,"map",[],function(m){return m==null&&(m=R),m.$to_s()}))))},-1)}(qe[0],qe),function(oe,ye){var Q=ae(oe,"Factory"),F=[Q].concat(ye),q=a.$r(F);return Ue(Q,"$new",function(O,$e){var H,g,o,m;return H=E(arguments),g=Re(H),g=Ge(g),H.length>0&&(o=H.shift()),o==null&&(o=R),m=g.$$smap.proxy_default,m==null&&(m=!0),y(m)?q("DefaultFactoryProxy").$new(o):q("CustomFactory").$new(o)},-1),Ue(Q,"$default",function(O){return E(arguments),q("Converter")},-1),Ue(Q,"$create",function(O,$e){var H=this;return $e==null&&($e=re([],{})),H.$default().$create(O,$e)},-2),V(Q,"$register",function(O,$e){var H,g,o=this;return H=E(arguments,1),g=H,G(g,"each",[],function m(C){var k,b=m.$$s==null?this:m.$$s;return C==null&&(C=R),W(C,"*")?(k=[O],G(b.$registry(),"default=",k),k[k.length-1]):(k=[C,O],G(b.$registry(),"[]=",k),k[k.length-1])},{$$s:o})},-2),V(Q,"$for",function(O){var $e=this;return $e.$registry()["$[]"](O)}),V(Q,"$create",function(O,$e){var H=this,g=R,o=R,m=R;return $e==null&&($e=re([],{})),y(g=H.$for(O))?(De(Pe,g)&&(g=g.$new(O,$e)),y(o=$e["$[]"]("template_dirs"))&&De(q("BackendTraits"),g)&&y(g["$supports_templates?"]())?q("CompositeConverter").$new(O,q("TemplateConverter").$new(O,o,$e),g,re(["backend_traits_source"],{backend_traits_source:g})):g):y(o=$e["$[]"]("template_dirs"))?y(m=$e["$[]"]("delegate_backend"))&&y(g=H.$for(m))?(De(Pe,g)&&(g=g.$new(m,$e)),q("CompositeConverter").$new(O,q("TemplateConverter").$new(O,o,$e),g,re(["backend_traits_source"],{backend_traits_source:g}))):q("TemplateConverter").$new(O,o,$e):R},-2),V(Q,"$converters",function(){var O=this;return O.$registry().$merge()}),Q.$private(),V(Q,"$registry",function(){var O=this;return O.$raise(tt("NotImplementedError"),""+q("Factory")+" subclass "+O.$class()+" must implement the #registry method")})}(qe[0],qe),function(oe,ye,Q){var F=dt(oe,ye,"CustomFactory"),q=[F].concat(Q),ie=a.$r(q);return F.$include(ie("Factory")),V(F,"$initialize",function($e){var H=this;return $e==null&&($e=R),y($e)?($e["$default="]($e.$delete("*")),H.registry=$e):H.registry=re([],{})},-1),V(F,"$unregister_all",function(){var $e,H=this;return $e=[R],G(H.$registry().$clear(),"default=",$e),$e[$e.length-1]}),F.$private(),F.$attr_reader("registry")}(qe[0],null,qe),function(oe,ye){var Q=ae(oe,"DefaultFactory"),F=[Q].concat(ye),q=a.$r(F);return Q.$include(q("Factory")),Q.$private(),Ye(F[0],"@@registry",re([],{})),V(Q,"$registry",function(){return st(F[0],"@@registry",!1)}),R}(qe[0],qe),function(oe,ye,Q){var F=dt(oe,ye,"DefaultFactoryProxy"),q=[F].concat(Q),ie=a.$r(q);return F.$include(ie("DefaultFactory")),R}(qe[0],ze("CustomFactory"),qe),Ue(we,"$included",function(ye){return ye.$send("include",ze("BackendTraits")),ye.$extend(ze("Config"))}),we.$private_class_method("included"),function(oe,ye,Q){var F=dt(oe,ye,"Base"),q=[F].concat(Q),ie=a.$r(q),O=F.$$prototype;return O.backend=R,F.$include(ie("Logging")),F.$include(ie("Converter")),V(F,"$convert",function(H,g,o){var m=this,C=R;Oe["!"]==null&&(Oe["!"]=R),g==null&&(g=H.$node_name()),o==null&&(o=R);try{return y(o)?m.$send(We("convert_",g),H,o):m.$send(We("convert_",g),H)}catch(k){if(a.rescue(k,[ie("StandardError")]))try{return De(tt("NoMethodError"),C=Oe["!"])&&W(C.$receiver(),m)&&W(C.$name().$to_s(),g)||m.$raise(),m.$logger().$warn("missing convert handler for "+C.$name()+" node in "+m.backend+" backend ("+m.$class()+")"),R}finally{a.pop_exception()}else throw k}},-2),V(F,"$handles?",function(H){var g=this;return g["$respond_to?"]("convert_"+H)}),V(F,"$content_only",function(H){return H.$content()}),V(F,"$skip",_e(R))}(qe[0],null,qe),we.$extend(ze("DefaultFactory"))}(K[0],K)}(ft[0],ft)},Opal.modules["asciidoctor/document"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.send,y=a.alias,W=a.truthy,Ue=a.def,G=a.hash2,Me=a.not,E=a.to_ary,et=a.return_ivar,Re=a.send2,Ge=a.find_super,De=a.rb_minus,Pe=a.eqeq,dt=a.eqeqeq,Ye=a.hash,st=a.rb_ge,We=a.rb_plus,Oe=a.neqeq,ft=a.thrower,R=a.rb_gt,tt=a.rb_lt,A=a.gvars,rt=a.to_a,lt=[],K=a.nil,M=a.$$$;return a.add_stubs("new,target,attr_reader,nil?,<<,[],[]=,main,include?,strip,squeeze,gsub,!,empty?,rpartition,attr_accessor,catalog,delete,base_dir,options,merge,instance_variable_get,attributes,safe,compat_mode,outfilesuffix,sourcemap,path_resolver,converter,extensions,syntax_highlighter,each,end_with?,start_with?,slice,-,length,chop,==,downcase,===,extname,value_for_name,key?,freeze,attribute_undefined,attribute_missing,update,&,keys,name_for_value,expand_path,pwd,to_s,>=,+,abs,to_i,delete_if,update_doctype_attributes,cursor,parse,restore_attributes,update_backend_attributes,fetch,fill_datetime_attributes,activate,groups,create,to_proc,preprocessors?,preprocessors,process_method,tree_processors?,tree_processors,!=,counter,nil_or_empty?,attribute_locked?,nextval,value,save_to,increment_and_store_counter,register,tap,xreftext,>,source,source_lines,doctitle,sectname=,title=,first_section,title,reftext,<,find,context,header?,assign_numeral,clear_playback_attributes,save_attributes,name,negate,rewind,replace,apply_attribute_value_subs,delete?,start,doctype,content_model,warn,logger,content,convert,postprocessors?,postprocessors,record,write,respond_to?,chomp,class,write_alternate_pages,map,split,resolve_docinfo_subs,normalize_system_path,read_asset,apply_subs,docinfo_processors?,join,concat,compact,docinfo_processors,object_id,inspect,size,private,=~,resolve_pass_subs,apply_header_subs,limit_bytesize,bytesize,valid_encoding?,byteslice,resolve_subs,utc,at,Integer,now,index,strftime,year,utc_offset,partition,create_converter,basebackend,filetype,htmlsyntax,derive_backend_traits,raise"),function(He,we){var qe=ae(He,"Asciidoctor"),ze=[qe].concat(we),oe=a.$r(ze);return function(ye,Q,F){var q=re(ye,Q,"Document"),ie=[q].concat(F),O=a.$r(ie),$e=q.$$prototype;return $e.attributes=$e.safe=$e.sourcemap=$e.reader=$e.base_dir=$e.parsed=$e.parent_document=$e.extensions=$e.options=$e.counters=$e.catalog=$e.reftexts=$e.next_section_index=$e.header=$e.blocks=$e.header_attributes=$e.attributes_modified=$e.backend=$e.attribute_overrides=$e.timings=$e.converter=$e.outfilesuffix=$e.docinfo_processor_extensions=$e.document=$e.max_attribute_value_size=$e.id=$e.doctype=K,V(ie[0],"ImageReference",_e(M("Struct"),"new",["target","imagesdir"],function H(){var g=H.$$s==null?this:H.$$s;return y(g,"to_s","target")},{$$s:q})),V(ie[0],"Footnote",M("Struct").$new("index","id","text")),function(H,g){var o=re(H,g,"AttributeEntry");return o.$attr_reader("name","value","negate"),Ue(o,"$initialize",function(C,k,b){var L=this;return b==null&&(b=K),L.name=C,L.value=k,L.negate=W(b["$nil?"]())?k["$nil?"]():b},-3),Ue(o,"$save_to",function(C){var k,b=this,L=K;return(W(L=C["$[]"]("attribute_entries"))?L:(k=["attribute_entries",[]],_e(C,"[]=",k),k[k.length-1]))["$<<"](b),b})}(ie[0],null),function(H,g,o){var m=re(H,g,"Title"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.subtitle=K,m.$attr_reader("main"),y(m,"title","main"),m.$attr_reader("subtitle"),m.$attr_reader("combined"),Ue(m,"$initialize",function(P,de){var le,ke,Be=this,Xe=K,it=K;return de==null&&(de=G([],{})),W(Be.sanitized=de["$[]"]("sanitize"))&&W(P["$include?"]("<"))&&(P=P.$gsub(k("XmlSanitizeRx"),"").$squeeze(" ").$strip()),W((Xe=W(it=de["$[]"]("separator"))?it:":")["$empty?"]())||Me(P["$include?"](Xe=""+Xe+" "))?(Be.main=P,Be.subtitle=K):(ke=P.$rpartition(Xe),le=E(ke),Be.main=le[0]==null?K:le[0],le[1]==null||le[1],Be.subtitle=le[2]==null?K:le[2]),Be.combined=P},-2),Ue(m,"$sanitized?",et("sanitized")),Ue(m,"$subtitle?",function(){var P=this;return!!W(P.subtitle)}),Ue(m,"$to_s",et("combined"))}(ie[0],null,ie),V(ie[0],"Author",M("Struct").$new("name","firstname","middlename","lastname","initials","email")),q.$attr_reader("safe"),q.$attr_reader("compat_mode"),q.$attr_reader("backend"),q.$attr_reader("doctype"),q.$attr_accessor("sourcemap"),q.$attr_reader("catalog"),y(q,"references","catalog"),q.$attr_reader("counters"),q.$attr_reader("header"),q.$attr_reader("base_dir"),q.$attr_reader("options"),q.$attr_reader("outfilesuffix"),q.$attr_reader("parent_document"),q.$attr_reader("reader"),q.$attr_reader("path_resolver"),q.$attr_reader("converter"),q.$attr_reader("syntax_highlighter"),q.$attr_reader("extensions"),Ue(q,"$initialize",function H(g,o){var m,C,k,b;H.$$p;var L=this,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,gt=K,yt=K,xt=K,vt=K,Rt=K,Tt=K,Yt=K,Bt=K,er=K;return H.$$p=null,g==null&&(g=K),o==null&&(o=G([],{})),Re(L,Ge(L,"initialize",H,!1,!0),"initialize",[L,"document"],null),W(P=o.$delete("parent"))?(L.parent_document=P,W(de=o["$[]"]("base_dir"))||o["$[]="]("base_dir",P.$base_dir()),W(P.$options()["$[]"]("catalog_assets"))&&o["$[]="]("catalog_assets",!0),W(P.$options()["$[]"]("to_dir"))&&o["$[]="]("to_dir",P.$options()["$[]"]("to_dir")),L.catalog=P.$catalog().$merge(G(["footnotes"],{footnotes:[]})),L.attribute_overrides=le=P.$instance_variable_get("@attribute_overrides").$merge(P.$attributes()),le.$delete("compat-mode"),ke=le.$delete("doctype"),le.$delete("notitle"),le.$delete("showtitle"),le.$delete("toc"),L.attributes["$[]="]("toc-placement",W(de=le.$delete("toc-placement"))?de:"auto"),le.$delete("toc-position"),L.safe=P.$safe(),W(L.compat_mode=P.$compat_mode())&&L.attributes["$[]="]("compat-mode",""),L.outfilesuffix=P.$outfilesuffix(),L.sourcemap=P.$sourcemap(),L.timings=K,L.path_resolver=P.$path_resolver(),L.converter=P.$converter(),Be=K,L.extensions=P.$extensions(),L.syntax_highlighter=P.$syntax_highlighter()):(L.parent_document=K,L.catalog=G(["ids","refs","footnotes","links","images","callouts","includes"],{ids:G([],{}),refs:G([],{}),footnotes:[],links:[],images:[],callouts:O("Callouts").$new(),includes:G([],{})}),L.attribute_overrides=le=G([],{}),_e(W(de=o["$[]"]("attributes"))?de:G([],{}),"each",[],function(Pt,Wt){var Xt;return Pt==null&&(Pt=K),Wt==null&&(Wt=K),W(Pt["$end_with?"]("@"))?W(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,De(Pt.$length(),2)),!1],Pt=Xt[0],Wt=Xt[1]):W(Pt["$end_with?"]("!@"))?(Xt=[Pt.$slice(0,De(Pt.$length(),2)),!1],Pt=Xt[0],Wt=Xt[1]):(Xt=[Pt.$chop(),""+Wt+"@"],Pt=Xt[0],Wt=Xt[1]):W(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Pt.$length()),Pe(Wt,"@")?!1:K],Pt=Xt[0],Wt=Xt[1]):W(Pt["$end_with?"]("!"))&&(Xt=[Pt.$chop(),Pe(Wt,"@")?!1:K],Pt=Xt[0],Wt=Xt[1]),Xt=[Pt.$downcase(),Wt],_e(le,"[]=",Xt),Xt[Xt.length-1]}),dt(M("String"),Xe=o["$[]"]("to_file"))&&le["$[]="]("outfilesuffix",O("Helpers").$extname(Xe)),Me(it=o["$[]"]("safe"))?L.safe=M(O("SafeMode"),"SECURE"):dt(M("Integer"),it)?L.safe=it:L.safe=function(){try{return O("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[O("StandardError")]))try{return M(O("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),ht=o.$delete("input_mtime"),L.compat_mode=le["$key?"]("compat-mode"),L.sourcemap=o["$[]"]("sourcemap"),L.timings=o.$delete("timings"),L.path_resolver=O("PathResolver").$new(),Be=W((m=M("::","Asciidoctor","skip_raise"))&&M(m,"Extensions","skip_raise")?"constant":K)||W(o["$key?"]("extensions"))?M(M("Asciidoctor"),"Extensions"):K,L.extensions=K,W(o["$key?"]("header_footer"))&&Me(o["$key?"]("standalone"))&&o["$[]="]("standalone",o["$[]"]("header_footer"))),L.parsed=L.reftexts=L.header=L.header_attributes=K,L.counters=G([],{}),L.attributes_modified=M("Set").$new(),L.docinfo_processor_extensions=G([],{}),at=o["$[]"]("standalone"),(L.options=o).$freeze(),gt=L.attributes,W(P)||(gt["$[]="]("attribute-undefined",O("Compliance").$attribute_undefined()),gt["$[]="]("attribute-missing",O("Compliance").$attribute_missing()),gt.$update(O("DEFAULT_ATTRIBUTES"))),W(at)?(le["$[]="]("embedded",K),gt["$[]="]("copycss",""),gt["$[]="]("iconfont-remote",""),gt["$[]="]("stylesheet",""),gt["$[]="]("webfonts","")):(le["$[]="]("embedded",""),W(le["$key?"]("showtitle"))&&Pe(le.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?le["$[]="]("notitle",Ye(K,"",!1,"@","@",!1)["$[]"](le["$[]"]("showtitle"))):W(le["$key?"]("notitle"))?le["$[]="]("showtitle",Ye(K,"",!1,"@","@",!1)["$[]"](le["$[]"]("notitle"))):gt["$[]="]("notitle","")),le["$[]="]("asciidoctor",""),le["$[]="]("asciidoctor-version",M(M("Asciidoctor"),"VERSION")),le["$[]="]("safe-mode-name",yt=O("SafeMode").$name_for_value(L.safe)),le["$[]="]("safe-mode-"+yt,""),le["$[]="]("safe-mode-level",L.safe),W(de=le["$[]"]("max-include-depth"))||le["$[]="]("max-include-depth",64),W(de=le["$[]"]("allow-uri-read"))||le["$[]="]("allow-uri-read",K),W(le["$key?"]("numbered"))&&le["$[]="]("sectnums",le.$delete("numbered")),W(le["$key?"]("hardbreaks"))&&le["$[]="]("hardbreaks-option",le.$delete("hardbreaks")),W(xt=o["$[]"]("base_dir"))?L.base_dir=(C=["docdir",M("File").$expand_path(xt)],_e(le,"[]=",C),C[C.length-1]):W(le["$[]"]("docdir"))?L.base_dir=le["$[]"]("docdir"):L.base_dir=(C=["docdir",M("Dir").$pwd()],_e(le,"[]=",C),C[C.length-1]),W(vt=o["$[]"]("backend"))&&le["$[]="]("backend",vt.$to_s()),W(Rt=o["$[]"]("doctype"))&&le["$[]="]("doctype",Rt.$to_s()),W(st(L.safe,M(O("SafeMode"),"SERVER")))?(W(de=le["$[]"]("copycss"))||le["$[]="]("copycss",K),W(de=le["$[]"]("source-highlighter"))||le["$[]="]("source-highlighter",K),W(de=le["$[]"]("backend"))||le["$[]="]("backend",O("DEFAULT_BACKEND")),Me(P)&&W(le["$key?"]("docfile"))&&le["$[]="]("docfile",le["$[]"]("docfile")["$[]"](a.Range.$new(We(le["$[]"]("docdir").$length(),1),-1,!1))),le["$[]="]("docdir",""),W(de=le["$[]"]("user-home"))||le["$[]="]("user-home","."),W(st(L.safe,M(O("SafeMode"),"SECURE")))&&(W(le["$key?"]("max-attribute-value-size"))||le["$[]="]("max-attribute-value-size",4096),W(le["$key?"]("linkcss"))||le["$[]="]("linkcss",""),W(de=le["$[]"]("icons"))||le["$[]="]("icons",K))):W(de=le["$[]"]("user-home"))||le["$[]="]("user-home",O("USER_HOME")),L.max_attribute_value_size=W(Tt=W(de=le["$[]"]("max-attribute-value-size"))?de:(C=["max-attribute-value-size",K],_e(le,"[]=",C),C[C.length-1]))?Tt.$to_i().$abs():K,_e(le,"delete_if",[],function(Pt,Wt){var Xt,nr=K;return Pt==null&&(Pt=K),Wt==null&&(Wt=K),W(Wt)?(dt(M("String"),Wt)&&W(Wt["$end_with?"]("@"))&&(Xt=[Wt.$chop(),!0],Wt=Xt[0],nr=Xt[1]),gt["$[]="](Pt,Wt)):(gt.$delete(Pt),nr=Wt["$=="](!1)),nr}),W(P)?(L.backend=gt["$[]"]("backend"),Pe(L.doctype=(C=["doctype",ke],_e(gt,"[]=",C),C[C.length-1]),O("DEFAULT_DOCTYPE"))||L.$update_doctype_attributes(O("DEFAULT_DOCTYPE")),L.reader=O("Reader").$new(g,o["$[]"]("cursor")),W(L.sourcemap)&&(L.source_location=L.reader.$cursor()),O("Parser").$parse(L.reader,L),L.$restore_attributes(),L.parsed=!0):(L.backend=K,Pe(Yt=W(de=gt["$[]"]("backend"))?de:O("DEFAULT_BACKEND"),"manpage")?L.doctype=(C=["doctype",(k=["doctype","manpage"],_e(le,"[]=",k),k[k.length-1])],_e(gt,"[]=",C),C[C.length-1]):L.doctype=W(de=gt["$[]"]("doctype"))?de:(C=["doctype",O("DEFAULT_DOCTYPE")],_e(gt,"[]=",C),C[C.length-1]),L.$update_backend_attributes(Yt,!0),W(de=gt["$[]"]("stylesdir"))||gt["$[]="]("stylesdir","."),W(de=gt["$[]"]("iconsdir"))||gt["$[]="]("iconsdir",""+gt.$fetch("imagesdir","./images")+"/icons"),L.$fill_datetime_attributes(gt,ht),W(Be)&&(W(Bt=o["$[]"]("extension_registry"))?(dt(M(O("Extensions"),"Registry"),Bt)||W((b=M("::","AsciidoctorJ","skip_raise"))&&(k=M(b,"Extensions","skip_raise"))&&(C=M(k,"ExtensionRegistry","skip_raise"))?"constant":K)&&dt(M(M(M("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),Bt))&&(L.extensions=Bt.$activate(L)):W((er=o["$[]"]("extensions"))["$nil?"]())?W(O("Extensions").$groups()["$empty?"]())||(L.extensions=M(O("Extensions"),"Registry").$new().$activate(L)):dt(M("Proc"),er)&&(L.extensions=_e(O("Extensions"),"create",[],er.$to_proc()).$activate(L))),L.reader=O("PreprocessorReader").$new(L,g,M(O("Reader"),"Cursor").$new(gt["$[]"]("docfile"),L.base_dir),G(["normalize"],{normalize:!0})),W(L.sourcemap)?L.source_location=L.reader.$cursor():K)},-1),Ue(q,"$parse",function(g){var o=this,m=K,C=K;return g==null&&(g=K),W(o.parsed)?o:(m=o,W(g)&&(o.reader=O("PreprocessorReader").$new(m,g,M(O("Reader"),"Cursor").$new(o.attributes["$[]"]("docfile"),o.base_dir),G(["normalize"],{normalize:!0})),W(o.sourcemap)&&(o.source_location=o.reader.$cursor())),W(C=W(o.parent_document)?K:o.extensions)&&W(C["$preprocessors?"]())&&_e(C.$preprocessors(),"each",[],function k(b){var L=k.$$s==null?this:k.$$s,P=K;return L.reader==null&&(L.reader=K),b==null&&(b=K),L.reader=W(P=b.$process_method()["$[]"](m,L.reader))?P:L.reader},{$$s:o}),O("Parser").$parse(o.reader,m,G(["header_only"],{header_only:o.options["$[]"]("parse_header_only")})),o.$restore_attributes(),W(C)&&W(C["$tree_processors?"]())&&_e(C.$tree_processors(),"each",[],function(b){var L=K;return b==null&&(b=K),W(L=b.$process_method()["$[]"](m))&&dt(O("Document"),L)&&Oe(L,m)?m=L:K}),o.parsed=!0,m)},-1),Ue(q,"$parsed?",et("parsed")),Ue(q,"$counter",function(g,o){var m,C=this,k=K,b=K,L=K;return o==null&&(o=K),W(C.parent_document)?C.parent_document.$counter(g,o):(W(b=C["$attribute_locked?"](g))&&W(k=C.counters["$[]"](g))||Me((k=C.attributes["$[]"](g))["$nil_or_empty?"]())?L=(m=[g,O("Helpers").$nextval(k)],_e(C.counters,"[]=",m),m[m.length-1]):W(o)?L=(m=[g,Pe(o,o.$to_i().$to_s())?o.$to_i():o],_e(C.counters,"[]=",m),m[m.length-1]):L=(m=[g,1],_e(C.counters,"[]=",m),m[m.length-1]),W(b)||C.attributes["$[]="](g,L),L)},-2),Ue(q,"$increment_and_store_counter",function(g,o){var m=this;return O("AttributeEntry").$new(g,m.$counter(g)).$save_to(o.$attributes()).$value()}),y(q,"counter_increment","increment_and_store_counter"),Ue(q,"$register",function(g,o){var m=this,C=K,k=K,b=K;switch(g){case"ids":return m.$register("refs",[C=o["$[]"](0),O("Inline").$new(m,"anchor",o["$[]"](1),G(["type","id"],{type:"ref",id:C}))]);case"refs":return k=m.catalog["$[]"]("refs"),W(k["$[]"](o["$[]"](0)))||k["$[]="](o["$[]"](0),b=o["$[]"](1)),b;case"footnotes":return m.catalog["$[]"](g)["$<<"](o);default:return W(m.options["$[]"]("catalog_assets"))?m.catalog["$[]"](g)["$<<"](Pe(g,"images")?O("ImageReference").$new(o,m.attributes["$[]"]("imagesdir")):o):K}}),Ue(q,"$resolve_id",function(g){var o=this,m=K,C=K;return W(o.reftexts)?o.reftexts["$[]"](g):W(o.parsed)?_e(o.reftexts=G([],{}),"tap",[],function k(b){var L=k.$$s==null?this:k.$$s;return L.catalog==null&&(L.catalog=K),b==null&&(b=K),_e(L.catalog["$[]"]("refs"),"each",[],function(de,le){var ke,Be=K;return de==null&&(de=K),le==null&&(le=K),W(Be=b["$[]"](le.$xreftext()))?Be:(ke=[le.$xreftext(),de],_e(b,"[]=",ke),ke[ke.length-1])})},{$$s:o})["$[]"](g):(m=K,o.reftexts=C=G([],{}),function(){try{var k=ft("break");return _e(o.catalog["$[]"]("refs"),"each",[],function(L,P){var de,le=K,ke=K;return L==null&&(L=K),P==null&&(P=K),Pe(le=P.$xreftext(),g)&&(m=L,k.$throw()),W(ke=C["$[]"](le))?ke:(de=[le,L],_e(C,"[]=",de),de[de.length-1])})}catch(b){if(b===k)return b.$v;throw b}}(),o.reftexts=K,m)}),Ue(q,"$sections?",function(){var g=this;return R(g.next_section_index,0)}),Ue(q,"$footnotes?",function(){var g=this;return!W(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(q,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(q,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(q,"$nested?",function(){var g=this;return!!W(g.parent_document)}),Ue(q,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(q,"$extensions?",function(){var g=this;return!!W(g.extensions)}),Ue(q,"$source",function(){var g=this;return W(g.reader)?g.reader.$source():K}),Ue(q,"$source_lines",function(){var g=this;return W(g.reader)?g.reader.$source_lines():K}),Ue(q,"$basebackend?",function(g){var o=this;return o.attributes["$[]"]("basebackend")["$=="](g)}),Ue(q,"$title",function(){var g=this;return g.$doctitle()}),Ue(q,"$title=",function(g){var o,m=this,C=K;return W(C=m.header)||(C=m.header=O("Section").$new(m,0))["$sectname="]("header"),o=[g],_e(C,"title=",o),o[o.length-1]}),Ue(q,"$doctitle",function(g){var o=this,m=K,C=K,k=K,b=K;if(g==null&&(g=G([],{})),!W(m=o.attributes["$[]"]("title"))){if(W(C=o.$first_section()))m=C.$title();else if(Me(W(k=g["$[]"]("use_fallback"))?m=o.attributes["$[]"]("untitled-label"):k))return K}return W(b=g["$[]"]("partition"))?O("Title").$new(m,g.$merge(G(["separator"],{separator:Pe(b,!0)?o.attributes["$[]"]("title-separator"):b}))):W(g["$[]"]("sanitize"))&&W(m["$include?"]("<"))?m.$gsub(O("XmlSanitizeRx"),"").$squeeze(" ").$strip():m},-1),y(q,"name","doctitle"),Ue(q,"$xreftext",function(g){var o=this,m=K;return W(m=o.$reftext())&&Me(m["$empty?"]())?m:o.$title()},-1),Ue(q,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(q,"$authors",function(){var g=this,o=K,m=K,C=K,k=K,b=K;if(W((o=g.attributes)["$key?"]("author"))){if(m=[O("Author").$new(o["$[]"]("author"),o["$[]"]("firstname"),o["$[]"]("middlename"),o["$[]"]("lastname"),o["$[]"]("authorinitials"),o["$[]"]("email"))],W(R(C=W(k=o["$[]"]("authorcount"))?k:0,1)))for(b=1;W(tt(b,C));)b=We(b,1),m["$<<"](O("Author").$new(o["$[]"]("author_"+b),o["$[]"]("firstname_"+b),o["$[]"]("middlename_"+b),o["$[]"]("lastname_"+b),o["$[]"]("authorinitials_"+b),o["$[]"]("email_"+b)));return m}else return[]}),Ue(q,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),Ue(q,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),Ue(q,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),Ue(q,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),Ue(q,"$first_section",function(){var g=this,o=K;return W(o=g.header)?o:_e(g.blocks,"find",[],function(C){return C==null&&(C=K),C.$context()["$=="]("section")})}),Ue(q,"$header?",function(){var g=this;return!!W(g.header)}),y(q,"has_header?","header?"),Ue(q,"$<<",function H(g){var o=H.$$p||K,m=this;return H.$$p=null,Pe(g.$context(),"section")&&m.$assign_numeral(g),Re(m,Ge(m,"<<",H,!1,!0),"<<",[g],o)}),Ue(q,"$finalize_header",function(g,o){var m=this;return o==null&&(o=!0),m.$clear_playback_attributes(g),m.$save_attributes(),W(o)||g["$[]="]("invalid-header",!0),g},-2),Ue(q,"$playback_attributes",function(g){var o=this;return W(g["$key?"]("attribute_entries"))?_e(g["$[]"]("attribute_entries"),"each",[],function m(C){var k=m.$$s==null?this:m.$$s,b=K;return k.attributes==null&&(k.attributes=K),C==null&&(C=K),b=C.$name(),W(C.$negate())?(k.attributes.$delete(b),Pe(b,"compat-mode")?k.compat_mode=!1:K):(k.attributes["$[]="](b,C.$value()),Pe(b,"compat-mode")?k.compat_mode=!0:K)},{$$s:o}):K}),Ue(q,"$restore_attributes",function(){var g=this;return W(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(q,"$set_attribute",function(g,o){var m=this,C=K;if(o==null&&(o=""),W(m["$attribute_locked?"](g)))return K;if(W(o["$empty?"]())||(o=m.$apply_attribute_value_subs(o)),W(m.header_attributes))m.attributes["$[]="](g,o);else{switch(g){case"backend":m.$update_backend_attributes(o,W(C=m.attributes_modified["$delete?"]("htmlsyntax"))?o["$=="](m.backend):C);break;case"doctype":m.$update_doctype_attributes(o);break;default:m.attributes["$[]="](g,o)}m.attributes_modified["$<<"](g)}return o},-2),Ue(q,"$delete_attribute",function(g){var o=this;return W(o["$attribute_locked?"](g))?!1:(o.attributes.$delete(g),o.attributes_modified["$<<"](g),!0)}),Ue(q,"$attribute_locked?",function(g){var o=this;return o.attribute_overrides["$key?"](g)}),Ue(q,"$set_header_attribute",function(g,o,m){var C=this,k=K,b=K;return o==null&&(o=""),m==null&&(m=!0),k=W(b=C.header_attributes)?b:C.attributes,Pe(m,!1)&&W(k["$key?"](g))?!1:(k["$[]="](g,o),!0)},-2),Ue(q,"$convert",function(g){var o,m=this,C=K,k=K,b=K,L=K,P=K;return g==null&&(g=G([],{})),W(m.timings)&&m.timings.$start("convert"),W(m.parsed)||m.$parse(),W(st(m.safe,M(O("SafeMode"),"SERVER")))||W(g["$empty?"]())||(W((o=["outfile",g["$[]"]("outfile")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outfile"),W((o=["outdir",g["$[]"]("outdir")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outdir")),Pe(m.$doctype(),"inline")?W(C=W(k=m.blocks["$[]"](0))?k:m.header)&&(Pe(C.$content_model(),"compound")||Pe(C.$content_model(),"empty")?m.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):b=C.$content()):(W(g["$key?"]("standalone"))?L=W(g["$[]"]("standalone"))?"document":"embedded":W(g["$key?"]("header_footer"))?L=W(g["$[]"]("header_footer"))?"document":"embedded":L=W(m.options["$[]"]("standalone"))?"document":"embedded",b=m.converter.$convert(m,L)),W(m.parent_document)||W(P=m.extensions)&&W(P["$postprocessors?"]())&&_e(P.$postprocessors(),"each",[],function de(le){var ke=de.$$s==null?this:de.$$s;return le==null&&(le=K),b=le.$process_method()["$[]"](ke,b)},{$$s:m}),W(m.timings)&&m.timings.$record("convert"),b},-1),y(q,"render","convert"),Ue(q,"$write",function(g,o){var m=this;return W(m.timings)&&m.timings.$start("write"),dt(O("Writer"),m.converter)?m.converter.$write(g,o):(W(o["$respond_to?"]("write"))?W(g["$nil_or_empty?"]())||(o.$write(g.$chomp()),o.$write(O("LF"))):M("File").$write(o,g,G(["mode"],{mode:O("FILE_WRITE_MODE")})),Pe(m.backend,"manpage")&&dt(M("String"),o)&&W(m.converter.$class()["$respond_to?"]("write_alternate_pages"))&&m.converter.$class().$write_alternate_pages(m.attributes["$[]"]("mannames"),m.attributes["$[]"]("manvolnum"),o)),W(m.timings)&&m.timings.$record("write"),K}),Ue(q,"$content",function H(){var g=H.$$p||K,o=this;return H.$$p=null,o.attributes.$delete("title"),Re(o,Ge(o,"content",H,!1,!0),"content",[],g)}),Ue(q,"$docinfo",function(g,o){var m,C=this,k=K,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K;return g==null&&(g="head"),o==null&&(o=K),W(tt(C.$safe(),M(O("SafeMode"),"SECURE")))&&(Pe(g,"head")||(k="-"+g),o=W(b=o)?b:C.outfilesuffix,W((L=C.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?W(C.attributes["$key?"]("docinfo2"))?L=["private","shared"]:W(C.attributes["$key?"]("docinfo1"))?L=["shared"]:L=W(L)?["private"]:K:L=_e(L.$split(","),"map",[],function(at){return at==null&&(at=K),at.$strip()}),W(L)&&(P=[],m=["docinfo"+k+o,C.attributes["$[]"]("docinfodir"),C.$resolve_docinfo_subs()],de=m[0],le=m[1],ke=m[2],W(L["$&"](["shared","shared-"+g])["$empty?"]())||(Be=C.$normalize_system_path(de,le),W(Xe=C.$read_asset(Be,G(["normalize"],{normalize:!0})))&&P["$<<"](C.$apply_subs(Xe,ke))),W(C.attributes["$[]"]("docname")["$nil_or_empty?"]())||W(L["$&"](["private","private-"+g])["$empty?"]())||(Be=C.$normalize_system_path(""+C.attributes["$[]"]("docname")+"-"+de,le),W(it=C.$read_asset(Be,G(["normalize"],{normalize:!0})))&&P["$<<"](C.$apply_subs(it,ke))))),W(C.extensions)&&W(C["$docinfo_processors?"](g))?(W(b=P)?b:[]).$concat(_e(C.docinfo_processor_extensions["$[]"](g),"map",[],function ht(at){var gt=ht.$$s==null?this:ht.$$s;return at==null&&(at=K),at.$process_method()["$[]"](gt)},{$$s:C}).$compact()).$join(O("LF")):W(P)?P.$join(O("LF")):""},-1),Ue(q,"$docinfo_processors?",function(g){var o,m=this;return g==null&&(g="head"),W(m.docinfo_processor_extensions["$key?"](g))?m.docinfo_processor_extensions["$[]"](g)["$!="](!1):W(m.extensions)&&W(m.document.$extensions()["$docinfo_processors?"](g))?(o=[g,m.document.$extensions().$docinfo_processors(g)],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])["$!"]()["$!"]():(o=[g,!1],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])},-1),Ue(q,"$to_s",function(){var g=this,o=K;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(W(o=g.header)?g.header.$title():o).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),q.$private(),Ue(q,"$apply_attribute_value_subs",function(g){var o,m=this;return W(O("AttributeEntryPassMacroRx")["$=~"](g))?(g=(o=A["~"])===K?K:o["$[]"](2),W((o=A["~"])===K?K:o["$[]"](1))&&(g=m.$apply_subs(g,m.$resolve_pass_subs((o=A["~"])===K?K:o["$[]"](1))))):g=m.$apply_header_subs(g),W(m.max_attribute_value_size)?m.$limit_bytesize(g,m.max_attribute_value_size):g}),Ue(q,"$limit_bytesize",function(g,o){if(W(R(g.$bytesize(),o)))for(;!W((g=g.$byteslice(0,o))["$valid_encoding?"]());)o=De(o,1);return g}),Ue(q,"$resolve_docinfo_subs",function(){var g=this;return W(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",K,"docinfo"):["attributes"]}),Ue(q,"$create_converter",function(g,o){var m=this,C=K,k=K,b=K,L=K,P=K;return C=G(["document","htmlsyntax"],{document:m,htmlsyntax:m.attributes["$[]"]("htmlsyntax")}),W(k=W(b=(L=m.options)["$[]"]("template_dirs"))?b:L["$[]"]("template_dir"))&&(C["$[]="]("template_dirs",[].concat(rt(k))),C["$[]="]("template_cache",L.$fetch("template_cache",!0)),C["$[]="]("template_engine",L["$[]"]("template_engine")),C["$[]="]("template_engine_options",L["$[]"]("template_engine_options")),C["$[]="]("eruby",L["$[]"]("eruby")),C["$[]="]("safe",m.safe),W(o)&&C["$[]="]("delegate_backend",o)),W(P=L["$[]"]("converter"))?M(O("Converter"),"CustomFactory").$new(Ye(g,P)).$create(g,C):L.$fetch("converter_factory",O("Converter")).$create(g,C)}),Ue(q,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(q,"$save_attributes",function(){var g=this,o=K,m=K,C=K,k=K,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K;if(W((m=g.attributes)["$key?"]("doctitle"))||Me(o=g.$doctitle())||m["$[]="]("doctitle",o),g.id=W(C=g.id)?C:m["$[]"]("css-signature"),W(k=W(m.$delete("toc2"))?"left":m["$[]"]("toc"))&&(b=W(L=m.$fetch("toc-placement","macro"))&&Oe(L,"auto")?L:m["$[]"]("toc-position"),!(W(k["$empty?"]())&&W(b["$nil_or_empty?"]())))){switch(P="left",de="toc2",le=W(b["$nil_or_empty?"]())?W(k["$empty?"]())?P:k:b,m["$[]="]("toc",""),m["$[]="]("toc-placement","auto"),le){case"left":case"<":case"<":m["$[]="]("toc-position","left");break;case"right":case">":case">":m["$[]="]("toc-position","right");break;case"top":case"^":m["$[]="]("toc-position","top");break;case"bottom":case"v":m["$[]="]("toc-position","bottom");break;case"preamble":case"macro":m["$[]="]("toc-position","content"),m["$[]="]("toc-placement",le),de=K;break;default:m.$delete("toc-position"),de=K}W(de)&&(W(C=m["$[]"]("toc-class"))||m["$[]="]("toc-class",de))}if(W(ke=m["$[]"]("icons"))&&Me(m["$key?"]("icontype")))switch(ke){case"":case"font":break;default:m["$[]="]("icons",""),Pe(ke,"image")||m["$[]="]("icontype",ke)}return W(g.compat_mode=m["$key?"]("compat-mode"))&&W(m["$key?"]("language"))&&m["$[]="]("source-language",m["$[]"]("language")),W(g.parent_document)||(Pe(Be=m["$[]"]("basebackend"),"html")?W(Xe=m["$[]"]("source-highlighter"))&&Me(m["$[]"](""+Xe+"-unavailable"))&&(W(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,G(["document"],{document:g})):W(ht=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=M(O("SyntaxHighlighter"),"DefaultFactoryProxy").$new(ht).$create(Xe,g.backend,G(["document"],{document:g})):g.syntax_highlighter=O("SyntaxHighlighter").$create(Xe,g.backend,G(["document"],{document:g}))):Pe(Be,"docbook")&&(W(g["$attribute_locked?"]("toc"))||W(g.attributes_modified["$include?"]("toc"))||m["$[]="]("toc",""),W(g["$attribute_locked?"]("sectnums"))||W(g.attributes_modified["$include?"]("sectnums"))||m["$[]="]("sectnums","")),g.outfilesuffix=m["$[]"]("outfilesuffix"),_e(O("FLEXIBLE_ATTRIBUTES"),"each",[],function at(gt){var yt=at.$$s==null?this:at.$$s;return yt.attribute_overrides==null&&(yt.attribute_overrides=K),gt==null&&(gt=K),W(yt.attribute_overrides["$key?"](gt))&&W(yt.attribute_overrides["$[]"](gt))?yt.attribute_overrides.$delete(gt):K},{$$s:g})),g.header_attributes=m.$merge()}),Ue(q,"$fill_datetime_attributes",function(g,o){var m,C=this,k=K,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K;return k=W(M("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?b=M("Time").$at(C.$Integer(M("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():M("Time").$now(),W(L=g["$[]"]("localdate"))?W(P=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(L.$index("-"),4)?L.$slice(0,4):K):(L=(m=["localdate",k.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),W(P=g["$[]"]("localyear"))||g["$[]="]("localyear",k.$year().$to_s())),de=W(P=g["$[]"]("localtime"))?P:(m=["localtime",k.$strftime("%T "+(Pe(k.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),W(P=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+L+" "+de),o=W(P=W(le=b)?le:o)?P:k,W(ke=g["$[]"]("docdate"))?W(P=g["$[]"]("docyear"))||g["$[]="]("docyear",Pe(ke.$index("-"),4)?ke.$slice(0,4):K):(ke=(m=["docdate",o.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),W(P=g["$[]"]("docyear"))||g["$[]="]("docyear",o.$year().$to_s())),Be=W(P=g["$[]"]("doctime"))?P:(m=["doctime",o.$strftime("%T "+(Pe(o.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),W(P=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+ke+" "+Be),K}),Ue(q,"$update_backend_attributes",function(g,o){var m,C,k=this,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,gt=K,yt=K,xt=K;return o==null&&(o=K),W(o)||Oe(g,k.backend)?(b=k.backend,L=(P=k.attributes)["$[]"]("basebackend"),de=k.doctype,W(g["$include?"](":"))&&(C=g.$partition(":"),m=E(C),le=m[0]==null?K:m[0],m[1]==null||m[1],g=m[2]==null?K:m[2]),W(g["$start_with?"]("xhtml"))?(P["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):W(g["$start_with?"]("html"))&&(W(ke=P["$[]"]("htmlsyntax"))||P["$[]="]("htmlsyntax","html")),g=W(ke=O("BACKEND_ALIASES")["$[]"](g))?ke:g,W(le)&&(m=[le,g],g=m[0],Be=m[1]),W(de)?(W(b)&&(P.$delete("backend-"+b),P.$delete("backend-"+b+"-doctype-"+de)),P["$[]="]("backend-"+g+"-doctype-"+de,""),P["$[]="]("doctype-"+de,"")):W(b)&&P.$delete("backend-"+b),P["$[]="]("backend-"+g,""),k.backend=(m=["backend",g],_e(P,"[]=",m),m[m.length-1]),dt(M(O("Converter"),"BackendTraits"),Xe=k.$create_converter(g,Be))?(it=Xe.$basebackend(),ht=Xe.$filetype(),W(at=Xe.$htmlsyntax())&&P["$[]="]("htmlsyntax",at),W(o)?W(ke=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Xe.$outfilesuffix()):W(k["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",Xe.$outfilesuffix())):W(Xe)?(gt=O("Converter").$derive_backend_traits(g),it=gt["$[]"]("basebackend"),ht=gt["$[]"]("filetype"),W(o)?W(ke=P["$[]"]("outfilesuffix"))||P["$[]="]("outfilesuffix",gt["$[]"]("outfilesuffix")):W(k["$attribute_locked?"]("outfilesuffix"))||P["$[]="]("outfilesuffix",gt["$[]"]("outfilesuffix"))):k.$raise(M("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),k.converter=Xe,W(yt=P["$[]"]("filetype"))&&P.$delete("filetype-"+yt),P["$[]="]("filetype",ht),P["$[]="]("filetype-"+ht,""),W(xt=O("DEFAULT_PAGE_WIDTHS")["$[]"](it))?P["$[]="]("pagewidth",xt):P.$delete("pagewidth"),Oe(it,L)&&(W(de)?(W(L)&&(P.$delete("basebackend-"+L),P.$delete("basebackend-"+L+"-doctype-"+de)),P["$[]="]("basebackend-"+it+"-doctype-"+de,"")):W(L)&&P.$delete("basebackend-"+L),P["$[]="]("basebackend-"+it,""),P["$[]="]("basebackend",it)),g):K},-2),Ue(q,"$update_doctype_attributes",function(g){var o,m=this,C=K,k=K,b=K,L=K;return W(g)&&Oe(g,m.doctype)?(o=[m.backend,(C=m.attributes)["$[]"]("basebackend"),m.doctype],k=o[0],b=o[1],L=o[2],W(L)?(C.$delete("doctype-"+L),W(k)&&(C.$delete("backend-"+k+"-doctype-"+L),C["$[]="]("backend-"+k+"-doctype-"+g,"")),W(b)&&(C.$delete("basebackend-"+b+"-doctype-"+L),C["$[]="]("basebackend-"+b+"-doctype-"+g,""))):(W(k)&&C["$[]="]("backend-"+k+"-doctype-"+g,""),W(b)&&C["$[]="]("basebackend-"+b+"-doctype-"+g,"")),C["$[]="]("doctype-"+g,""),m.doctype=(o=["doctype",g],_e(C,"[]=",o),o[o.length-1])):K})}(ze[0],oe("AbstractBlock"),ze)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,W=a.def,Ue=a.return_val,G=a.alias,Me=a.truthy,E=[],et=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(Re,Ge){var De=ae(Re,"Asciidoctor"),Pe=[De].concat(Ge),dt=a.$r(Pe);return function(Ye,st){var We=re(Ye,st,"Inline"),Oe=We.$$prototype;return Oe.text=Oe.type=et,We.$attr_accessor("text"),We.$attr_reader("type"),We.$attr_accessor("target"),W(We,"$initialize",function ft(R,tt,A,rt){ft.$$p;var lt=this;return ft.$$p=null,A==null&&(A=et),rt==null&&(rt=V([],{})),_e(lt,y(lt,"initialize",ft,!1,!0),"initialize",[R,tt,rt],null),lt.node_name="inline_"+tt,lt.text=A,lt.id=rt["$[]"]("id"),lt.type=rt["$[]"]("type"),lt.target=rt["$[]"]("target")},-3),W(We,"$block?",Ue(!1)),W(We,"$inline?",Ue(!0)),W(We,"$convert",function(){var R=this;return R.$converter().$convert(R)}),G(We,"render","convert"),W(We,"$alt",function(){var R=this,tt=et;return Me(tt=R.$attr("alt"))?tt:""}),W(We,"$reftext?",function(){var R=this,tt=et,A=et;return Me(tt=R.text)?Me(A=R.type["$=="]("ref"))?A:R.type["$=="]("bibref"):tt}),W(We,"$reftext",function(){var R=this,tt=et;return Me(tt=R.text)?R.$apply_reftext_subs(tt):et}),W(We,"$xreftext",function(R){var tt=this;return tt.$reftext()},-1)}(Pe[0],dt("AbstractNode"))}(E[0],E)},Opal.modules["asciidoctor/list"]=function(a){var ae=a.module,re=a.klass,V=a.alias,_e=a.hash2,y=a.send2,W=a.find_super,Ue=a.def,G=a.truthy,Me=a.eqeq,E=[],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(Re,Ge){var De=ae(Re,"Asciidoctor"),Pe=[De].concat(Ge),dt=a.$r(Pe);return function(Ye,st){var We=re(Ye,st,"List"),Oe=We.$$prototype;return Oe.context=Oe.document=Oe.style=et,V(We,"items","blocks"),V(We,"content","blocks"),V(We,"items?","blocks?"),Ue(We,"$initialize",function ft(R,tt,A){var rt=ft.$$p||et,lt=this;return ft.$$p=null,A==null&&(A=_e([],{})),y(lt,W(lt,"initialize",ft,!1,!0),"initialize",[R,tt,A],rt)},-3),Ue(We,"$outline?",function(){var R=this,tt=et;return G(tt=R.context["$=="]("ulist"))?tt:R.context["$=="]("olist")}),Ue(We,"$convert",function ft(){var R=ft.$$p||et,tt=this,A=et;return ft.$$p=null,Me(tt.context,"colist")?(A=y(tt,W(tt,"convert",ft,!1,!0),"convert",[],R),tt.document.$callouts().$next_list(),A):y(tt,W(tt,"convert",ft,!1,!0),"convert",[],R)}),V(We,"render","convert"),Ue(We,"$to_s",function(){var R=this;return"#<"+R.$class()+"@"+R.$object_id()+" {context: "+R.context.$inspect()+", style: "+R.style.$inspect()+", items: "+R.$items().$size()+"}>"})}(Pe[0],dt("AbstractBlock")),function(Ye,st,We){var Oe=re(Ye,st,"ListItem"),ft=[Oe].concat(We),R=a.$r(ft),tt=Oe.$$prototype;return tt.text=tt.subs=tt.blocks=et,V(Oe,"list","parent"),Oe.$attr_accessor("marker"),Ue(Oe,"$initialize",function A(rt,lt){A.$$p;var K=this;return A.$$p=null,lt==null&&(lt=et),y(K,W(K,"initialize",A,!1,!0),"initialize",[rt,"list_item"],null),K.text=lt,K.level=rt.$level(),K.subs=R("NORMAL_SUBS").$drop(0)},-2),Ue(Oe,"$text?",function(){var rt=this;return!G(rt.text["$nil_or_empty?"]())}),Ue(Oe,"$text",function(){var rt=this,lt=et;return G(lt=rt.text)?rt.$apply_subs(rt.text,rt.subs):lt}),Oe.$attr_writer("text"),Ue(Oe,"$simple?",function(){var rt=this,lt=et,K=et,M=et,He=et;return G(lt=rt.blocks["$empty?"]())?lt:G(K=G(M=rt.blocks.$size()["$=="](1))?R("List")["$==="](He=rt.blocks["$[]"](0)):M)?He["$outline?"]():K}),Ue(Oe,"$compound?",function(){var rt=this;return rt["$simple?"]()["$!"]()}),Ue(Oe,"$fold_first",function(){var rt=this;return rt.text=G(rt.text["$nil_or_empty?"]())?rt.blocks.$shift().$source():""+rt.text+R("LF")+rt.blocks.$shift().$source(),et}),Ue(Oe,"$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: "+(G(lt=rt.blocks)?lt:[]).$size()+"}>"})}(Pe[0],dt("AbstractBlock"),Pe)}(E[0],E)},Opal.modules["asciidoctor/parser"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.send,y=a.truthy,W=a.hash2,Ue=a.to_ary,G=a.defs,Me=a.eqeq,E=a.not,et=a.gvars,Re=a.neqeq,Ge=a.rb_plus,De=a.rb_lt,Pe=a.rb_gt,dt=a.to_a,Ye=a.eqeqeq,st=a.rb_minus,We=a.rb_times,Oe=a.thrower,ft=[],R=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=ae(A,"Asciidoctor"),K=[lt].concat(rt);return function(M,He,we){var qe=re(M,He,"Parser"),ze=[qe].concat(we),oe=a.$r(ze);return qe.$include(oe("Logging")),V(ze[0],"BlockMatchData",oe("Struct").$new("context","masq","tip","terminator")),V(ze[0],"TAB"," "),V(ze[0],"TabIndentRx",/^\t+/),V(ze[0],"StartOfBlockProc",_e(qe,"proc",[],function ye(Q){var F=ye.$$s==null?this:ye.$$s,q=R,ie=R;return Q==null&&(Q=R),y(q=y(ie=Q["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](Q):ie)?q:F["$is_delimited_block?"](Q)},{$$s:qe})),V(ze[0],"StartOfListProc",_e(qe,"proc",[],function(Q){return Q==null&&(Q=R),oe("AnyListRx")["$match?"](Q)})),V(ze[0],"StartOfBlockOrListProc",_e(qe,"proc",[],function ye(Q){var F=ye.$$s==null?this:ye.$$s,q=R,ie=R,O=R;return Q==null&&(Q=R),y(q=y(ie=F["$is_delimited_block?"](Q))?ie:y(O=Q["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](Q):O)?q:oe("AnyListRx")["$match?"](Q)},{$$s:qe})),V(ze[0],"NoOp",R),V(ze[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),V(ze[0],"TableCellHorzAlignments",W(["<",">","^"],{"<":"left",">":"right","^":"center"})),V(ze[0],"TableCellVertAlignments",W(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),V(ze[0],"TableCellStyles",W(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),qe.$private_class_method("new"),G(qe,"$parse",function(Q,F,q){var ie,O,$e=this,H=R,g=R,o=R;if(q==null&&(q=W([],{})),H=$e.$parse_document_header(Q,F,g=q["$[]"]("header_only")),!y(g))for(;y(Q["$has_more_lines?"]());)O=$e.$next_section(Q,F,H),ie=Ue(O),o=ie[0]==null?R:ie[0],H=ie[1]==null?R:ie[1],y(o)&&(F.$assign_numeral(o),F.$blocks()["$<<"](o));return F},-3),G(qe,"$parse_document_header",function(Q,F,q){var ie,O,$e,H=this,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R;return q==null&&(q=!1),g=y(Q.$skip_blank_lines())?H.$parse_block_metadata_lines(Q,F):W([],{}),o=F.$attributes(),y(m=H["$is_next_line_doctitle?"](Q,g,o["$[]"]("leveloffset")))&&y(g["$[]"]("title"))?(o["$[]="]("authorcount",0),F.$finalize_header(g,!1)):(y((C=o["$[]"]("doctitle"))["$nil_or_empty?"]())||F["$title="](k=C),y(m)?(y(F.$sourcemap())&&(b=Q.$cursor()),O=H.$parse_section_title(Q,F),ie=Ue(O),$e=[ie[0]==null?R:ie[0]],_e(F,"id=",$e),$e[$e.length-1],ie[1]==null||ie[1],L=ie[2]==null?R:ie[2],ie[3]==null||ie[3],P=ie[4]==null?R:ie[4],y(k)?L=R:(F["$title="](L),y((ie=["doctitle",k=F.$sub_specialchars(L)],_e(o,"[]=",ie),ie[ie.length-1])["$include?"](oe("ATTR_REF_HEAD")))&&o["$[]="]("doctitle",k=F.$sub_attributes(k,W(["attribute_missing"],{attribute_missing:"skip"})))),y(b)&&F.$header()["$source_location="](b),y(P)||y(F["$attribute_locked?"]("compat-mode"))||o["$[]="]("compat-mode",""),y(de=g["$[]"]("separator"))&&(y(F["$attribute_locked?"]("title-separator"))||o["$[]="]("title-separator",de)),y(le=g["$[]"]("id"))?F["$id="](le):le=F.$id(),y(ke=g["$[]"]("role"))&&o["$[]="]("role",ke),y(Be=g["$[]"]("reftext"))&&o["$[]="]("reftext",Be),g.$clear(),(Xe=F.$instance_variable_get("@attributes_modified")).$delete("doctitle"),H.$parse_header_metadata(Q,F,R),y(Xe["$include?"]("doctitle"))?y((C=o["$[]"]("doctitle"))["$nil_or_empty?"]())||Me(C,k)?o["$[]="]("doctitle",k):F["$title="](C):E(L)&&Xe["$<<"]("doctitle"),y(le)&&F.$register("refs",[le,F])):y(it=o["$[]"]("author"))?(ht=H.$process_authors(it,!0,!1),y(o["$[]"]("authorinitials"))&&ht.$delete("authorinitials"),o.$update(ht)):y(it=o["$[]"]("authors"))?(ht=H.$process_authors(it,!0),o.$update(ht)):o["$[]="]("authorcount",0),Me(F.$doctype(),"manpage")&&H.$parse_manpage_header(Q,F,g,q),F.$finalize_header(g))},-3),G(qe,"$parse_manpage_header",function(Q,F,q,ie){var O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R;return ie==null&&(ie=!1),y(oe("ManpageTitleVolnumRx")["$=~"]((H=F.$attributes())["$[]"]("doctitle")))?(H["$[]="]("manvolnum",g=(O=et["~"])===R?R:O["$[]"](2)),H["$[]="]("mantitle",(y((o=(O=et["~"])===R?R:O["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))?F.$sub_attributes(o):o).$downcase())):($e.$logger().$error($e.$message_with_context("non-conforming manpage title",W(["source_location"],{source_location:Q.$cursor_at_line(1)}))),H["$[]="]("mantitle",y(m=y(C=H["$[]"]("doctitle"))?C:H["$[]"]("docname"))?m:"command"),H["$[]="]("manvolnum",g="1")),y(k=H["$[]"]("manname"))&&y(H["$[]"]("manpurpose"))?(y(m=H["$[]"]("manname-title"))||H["$[]="]("manname-title","Name"),H["$[]="]("mannames",[k]),Me(F.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):y(ie)||(Q.$skip_blank_lines(),Q.$save(),q.$update($e.$parse_block_metadata_lines(Q,F)),y(b=$e["$is_next_line_section?"](Q,W([],{})))?Me(b,1)?(L=$e.$initialize_section(Q,F,W([],{})),P=_e(Q.$read_lines_until(W(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=R),Xe.$lstrip()}).$join(" "),y(oe("ManpageNamePurposeRx")["$=~"](P))?(y((k=(O=et["~"])===R?R:O["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))&&(k=F.$sub_attributes(k)),y(k["$include?"](","))?k=(de=_e(k.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=R),Xe.$lstrip()}))["$[]"](0):de=[k],y((le=(O=et["~"])===R?R:O["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))&&(le=F.$sub_attributes(le)),y(m=H["$[]"]("manname-title"))||H["$[]="]("manname-title",L.$title()),y(L.$id())&&H["$[]="]("manname-id",L.$id()),H["$[]="]("manname",k),H["$[]="]("mannames",de),H["$[]="]("manpurpose",le),Me(F.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):ke="non-conforming name section body"):ke="name section must be at level 1":ke="name section expected",y(ke)?(Q.$restore_save(),$e.$logger().$error($e.$message_with_context(ke,W(["source_location"],{source_location:Q.$cursor()}))),H["$[]="]("manname",k=y(m=H["$[]"]("docname"))?m:"command"),H["$[]="]("mannames",[k]),Me(F.$backend(),"manpage")&&(H["$[]="]("docname",k),H["$[]="]("outfilesuffix","."+g))):Q.$discard_save()),R},-4),G(qe,"$next_section",function(Q,F,q){var ie,O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R,gt=R,yt=R,xt=R;for(q==null&&(q=W([],{})),H=g=o=!1,Me(F.$context(),"document")&&y(F.$blocks()["$empty?"]())&&(y(m=F["$header?"]())||y(q.$delete("invalid-header"))||E($e["$is_next_line_section?"](Q,q)))?(C=(k=F).$doctype()["$=="]("book"),(y(m)||y(C)&&Re(q["$[]"](1),"abstract"))&&(H=g=oe("Block").$new(F,"preamble",W(["content_model"],{content_model:"compound"})),y(C)&&y(F["$attr?"]("preface-title"))&&H["$title="](F.$attr("preface-title")),F.$blocks()["$<<"](H)),b=F,L=0,y(F.$attributes()["$key?"]("fragment"))?P=-1:y(C)?(ie=[1,0],P=ie[0],de=ie[1]):P=1):(C=(k=F.$document()).$doctype()["$=="]("book"),b=$e.$initialize_section(Q,F,q),q=y(le=q["$[]"]("title"))?W(["title"],{title:le}):W([],{}),P=Ge(L=b.$level(),1),Me(L,0)?o=C:Me(L,1)&&y(b.$special())&&(Me(ke=b.$sectname(),"appendix")||Me(ke,"preface")||Me(ke,"abstract")||(P=R))),Q.$skip_blank_lines();y(Q["$has_more_lines?"]());){if($e.$parse_block_metadata_lines(Q,k,q),y(Be=$e["$is_next_line_section?"](Q,q)))if(y(k["$attr?"]("leveloffset"))&&(Be=Ge(Be,k.$attr("leveloffset").$to_i()),y(De(Be,0))&&(Be=0)),y(Pe(Be,L)))y(P)?Me(Be,P)||y(de)&&Me(Be,de)||y(De(P,0))||(Xe=y(de)?"expected levels "+de+" or "+P:"expected level "+P,$e.$logger().$warn($e.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,W(["source_location"],{source_location:Q.$cursor()})))):$e.$logger().$error($e.$message_with_context(""+ke+" sections do not support nested sections",W(["source_location"],{source_location:Q.$cursor()}))),O=$e.$next_section(Q,b,q),ie=Ue(O),it=ie[0]==null?R:ie[0],q=ie[1]==null?R:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else if(Me(Be,0)&&Me(b,k))y(C)||$e.$logger().$error($e.$message_with_context("level 0 sections can only be used when doctype is book",W(["source_location"],{source_location:Q.$cursor()}))),O=$e.$next_section(Q,b,q),ie=Ue(O),it=ie[0]==null?R:ie[0],q=ie[1]==null?R:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else break;else ht=Q.$cursor(),y(at=$e.$next_block(Q,y(gt=g)?gt:b,q,W(["parse_metadata"],{parse_metadata:!1})))&&(y(o)&&(E(b["$blocks?"]())?Re(at.$style(),"partintro")?Me(at.$style(),"open")&&Me(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=oe("Block").$new(b,"open",W(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),b.$blocks()["$<<"](g)):Me(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](oe("Block").$new(at,"paragraph",W(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):Me(b.$blocks().$size(),1)&&(yt=b.$blocks()["$[]"](0),E(g)&&Me(yt.$content_model(),"compound")?$e.$logger().$error($e.$message_with_context("illegal block content outside of partintro block",W(["source_location"],{source_location:ht}))):Re(yt.$content_model(),"compound")&&(at["$parent="](g=oe("Block").$new(b,"open",W(["content_model"],{content_model:"compound"}))),Me(yt.$style(),(ie=["partintro"],_e(g,"style=",ie),ie[ie.length-1]))&&(yt["$context="]("paragraph"),yt["$style="](R)),b.$blocks().$shift(),g["$<<"](yt),b.$blocks()["$<<"](g)))),(y(gt=g)?gt:b).$blocks()["$<<"](at),q.$clear());if(!y(gt=Q.$skip_blank_lines()))break}if(y(o))y(b["$blocks?"]())&&Me(b.$blocks()["$[]"](-1).$context(),"section")||$e.$logger().$error($e.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",W(["source_location"],{source_location:Q.$cursor()})));else if(y(H))if(y(H["$blocks?"]()))if(y(C)||y(k.$blocks()["$[]"](1))||E(oe("Compliance").$unwrap_standalone_preamble()))y(k.$sourcemap())&&H["$source_location="](H.$blocks()["$[]"](0).$source_location());else for(k.$blocks().$shift();y(xt=H.$blocks().$shift());)k["$<<"](xt);else k.$blocks().$shift();return[Me(b,F)?R:b,q.$merge()]},-3),G(qe,"$next_block",function(Q,F,q,ie){var O,$e,H=this,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R,gt=R,yt=R,xt=R,vt=R,Rt=R,Tt=R,Yt=R,Bt=R,er=R,Kt=R,Pt=R,Wt=R,Xt=R,nr=R,Wn=R,tn=R,Jt=R,Ut=R,Zt=R,Cr=R,Ht=R,kr=R,hn=R,Tr=R,Sr=R,wn=R,Fr=R,Kr=R,Hs=R,Vs=R,bc=R,Ys=R,xc=R;if(et["~"]==null&&(et["~"]=R),q==null&&(q=W([],{})),ie==null&&(ie=W([],{})),!y(g=Q.$skip_blank_lines()))return R;if(y(o=ie["$[]"]("text_only"))&&y(Pe(g,0))&&(ie.$delete("text_only"),o=R),m=F.$document(),y(ie.$fetch("parse_metadata",!0))){for(;y(H.$parse_block_metadata_line(Q,m,q,ie));)if(Q.$shift(),!y(C=Q.$skip_blank_lines()))return R}if(y(k=m.$extensions())&&(O=[k["$blocks?"](),k["$block_macros?"]()],b=O[0],L=O[1]),Q.$mark(),O=[Q.$read_line(),m.$attributes(),q["$[]"](1)],P=O[0],de=O[1],le=O[2],ke=Be=Xe=it=R,y(ht=H["$is_delimited_block?"](P,!0))&&(Be=Xe=ht.$context(),it=ht.$terminator(),y(le)?Me(le,Be.$to_s())||(y(ht.$masq()["$include?"](le))?Be=le.$to_sym():y(ht.$masq()["$include?"]("admonition"))&&y(oe("ADMONITION_STYLES")["$include?"](le))?Be="admonition":y(b)&&y(k["$registered_for_block?"](le,Be))?Be=le.$to_sym():(y(H.$logger()["$debug?"]())&&H.$logger().$debug(H.$message_with_context("unknown style for "+Be+" block: "+le,W(["source_location"],{source_location:Q.$cursor_at_mark()}))),le=Be.$to_s())):le=(O=["style",Be.$to_s()],_e(q,"[]=",O),O[O.length-1])),!y(ht))for(;y(!0);){if(y(le)&&y(oe("Compliance").$strict_verbatim_paragraphs())&&y(oe("VERBATIM_STYLES")["$include?"](le))){Be=le.$to_sym(),Q.$unshift_line(P);break}if(y(o))at=P["$start_with?"](" ",oe("TAB"));else if(gt=oe("Compliance").$markdown_syntax(),y(P["$start_with?"](" "))){if(O=[!0," "],at=O[0],yt=O[1],y(gt)&&y(_e(P.$lstrip(),"start_with?",dt(oe("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&y(oe("MarkdownThematicBreakRx")["$match?"](P))){ke=oe("Block").$new(F,"thematic_break",W(["content_model"],{content_model:"empty"}));break}}else if(y(P["$start_with?"](oe("TAB"))))O=[!0,oe("TAB")],at=O[0],yt=O[1];else if(O=[!1,P.$chr()],at=O[0],yt=O[1],xt=y(gt)?oe("HYBRID_LAYOUT_BREAK_CHARS"):oe("LAYOUT_BREAK_CHARS"),y(xt["$key?"](yt))&&y(y(gt)?oe("ExtLayoutBreakRx")["$match?"](P):y(C=H["$uniform?"](P,yt,vt=P.$length()))?Pe(vt,2):C)){ke=oe("Block").$new(F,xt["$[]"](yt),W(["content_model"],{content_model:"empty"}));break}else if(y(P["$end_with?"]("]"))&&y(P["$include?"]("::"))){if((Me(yt,"i")||y(P["$start_with?"]("video:","audio:")))&&y(oe("BlockMediaMacroRx")["$=~"](P))){if(O=[(($e=et["~"])===R?R:$e["$[]"](1)).$to_sym(),($e=et["~"])===R?R:$e["$[]"](2),($e=et["~"])===R?R:$e["$[]"](3)],Rt=O[0],Tt=O[1],Yt=O[2],ke=oe("Block").$new(F,Rt,W(["content_model"],{content_model:"empty"})),y(Yt)){switch(Rt){case"video":Bt=["poster","width","height"];break;case"audio":Bt=[];break;default:Bt=["alt","width","height"]}ke.$parse_attributes(Yt,Bt,W(["sub_input","into"],{sub_input:!0,into:q}))}if(y(q["$key?"]("style"))&&q.$delete("style"),y(Tt["$include?"](oe("ATTR_REF_HEAD")))){if(y((er=ke.$sub_attributes(Tt))["$empty?"]())&&Me(y(C=de["$[]"]("attribute-missing"))?C:oe("Compliance").$attribute_missing(),"drop-line")&&y(ke.$sub_attributes(Ge(Tt," "),W(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),R;Tt=er}Me(Rt,"image")&&(m.$register("images",Tt),q["$[]="]("imagesdir",de["$[]"]("imagesdir")),y(C=q["$[]"]("alt"))||q["$[]="]("alt",y(Kt=le)?Kt:(O=["default-alt",oe("Helpers").$basename(Tt,!0).$tr("_-"," ")],_e(q,"[]=",O),O[O.length-1])),y((Pt=q.$delete("scaledwidth"))["$nil_or_empty?"]())||q["$[]="]("scaledwidth",y(oe("TrailingDigitsRx")["$match?"](Pt))?""+Pt+"%":Pt),y(q["$[]"]("title"))&&(ke["$title="](Wt=q.$delete("title")),ke.$assign_caption(q.$delete("caption"),"figure"))),q["$[]="]("target",Tt);break}else if(Me(yt,"t")&&y(P["$start_with?"]("toc:"))&&y(oe("BlockTocMacroRx")["$=~"](P))){ke=oe("Block").$new(F,"toc",W(["content_model"],{content_model:"empty"})),y((O=et["~"])===R?R:O["$[]"](1))&&ke.$parse_attributes((O=et["~"])===R?R:O["$[]"](1),[],W(["into"],{into:q}));break}else if(y(y(L)?y(C=y(Kt=oe("CustomBlockMacroRx")["$=~"](P))?Xt=k["$registered_for_block_macro?"]((O=et["~"])===R?R:O["$[]"](1)):Kt)?C:nr=H.$logger()["$debug?"]():y(C=H.$logger()["$debug?"]())?nr=oe("CustomBlockMacroRx")["$=~"](P):C))if(y(nr))H.$logger().$debug(H.$message_with_context("unknown name for block macro: "+((O=et["~"])===R?R:O["$[]"](1)),W(["source_location"],{source_location:Q.$cursor_at_mark()})));else{if(Wn=(O=et["~"])===R?R:O["$[]"](3),y((Tt=(O=et["~"])===R?R:O["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))){if(y((er=F.$sub_attributes(Tt))["$empty?"]())&&Me(y(C=de["$[]"]("attribute-missing"))?C:oe("Compliance").$attribute_missing(),"drop-line")&&y(F.$sub_attributes(Ge(Tt," "),W(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),R;Tt=er}if(Me((tn=Xt.$config())["$[]"]("content_model"),"attributes")?y(Wn)&&m.$parse_attributes(Wn,y(C=y(Kt=tn["$[]"]("positional_attrs"))?Kt:tn["$[]"]("pos_attrs"))?C:[],W(["sub_input","into"],{sub_input:!0,into:q})):q["$[]="]("text",y(C=Wn)?C:""),y(Jt=tn["$[]"]("default_attrs"))&&_e(q,"update",[Jt],function(rn,gs){return gs==null&&(gs=R),gs}),y(ke=Xt.$process_method()["$[]"](F,Tt,q))&&Re(ke,F)){q.$replace(ke.$attributes());break}else return q.$clear(),R}}if(E(at)&&Me(yt=y(C=yt)?C:P.$chr(),"<")&&y(oe("CalloutListRx")["$=~"](P))){Q.$unshift_line(P),ke=H.$parse_callout_list(Q,et["~"],F,m.$callouts()),q["$[]="]("style","arabic");break}else if(y(oe("UnorderedListRx")["$match?"](P))){Q.$unshift_line(P),E(le)&&Ye(oe("Section"),F)&&Me(F.$sectname(),"bibliography")&&q["$[]="]("style",le="bibliography"),ke=H.$parse_list(Q,"ulist",F,le);break}else if(y(oe("OrderedListRx")["$match?"](P))){Q.$unshift_line(P),ke=H.$parse_list(Q,"olist",F,le),y(ke.$style())&&q["$[]="]("style",ke.$style());break}else if((y(P["$include?"]("::"))||y(P["$include?"](";;")))&&y(oe("DescriptionListRx")["$=~"](P))){Q.$unshift_line(P),ke=H.$parse_description_list(Q,et["~"],F);break}else if((Me(le,"float")||Me(le,"discrete"))&&y(y(oe("Compliance").$underline_style_section_titles())?H["$is_section_title?"](P,Q.$peek_line()):y(C=at["$!"]())?H["$atx_section_title?"](P):C)){Q.$unshift_line(P),$e=H.$parse_section_title(Q,m,q["$[]"]("id")),O=Ue($e),Ut=O[0]==null?R:O[0],Zt=O[1]==null?R:O[1],Wt=O[2]==null?R:O[2],Cr=O[3]==null?R:O[3],y(Zt)&&q["$[]="]("reftext",Zt),ke=oe("Block").$new(F,"floating_title",W(["content_model"],{content_model:"empty"})),ke["$title="](Wt),q.$delete("title"),ke["$id="](y(C=Ut)?C:y(de["$key?"]("sectids"))?oe("Section").$generate_id(ke.$title(),m):R),ke["$level="](Cr);break}else if(y(le)&&Re(le,"normal"))if(y(oe("PARAGRAPH_STYLES")["$include?"](le))){Be=le.$to_sym(),Xe="paragraph",Q.$unshift_line(P);break}else if(y(oe("ADMONITION_STYLES")["$include?"](le))){Be="admonition",Xe="paragraph",Q.$unshift_line(P);break}else if(y(b)&&y(k["$registered_for_block?"](le,"paragraph"))){Be=le.$to_sym(),Xe="paragraph",Q.$unshift_line(P);break}else y(H.$logger()["$debug?"]())&&H.$logger().$debug(H.$message_with_context("unknown style for paragraph: "+le,W(["source_location"],{source_location:Q.$cursor_at_mark()}))),le=R;if(Q.$unshift_line(P),y(at)&&E(le))Ht=H.$read_paragraph_lines(Q,kr=Me(g,0)?ie["$[]"]("list_type"):R,W(["skip_line_comments"],{skip_line_comments:o})),H["$adjust_indentation!"](Ht),y(o)||Me(kr,"dlist")?ke=oe("Block").$new(F,"paragraph",W(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})):ke=oe("Block").$new(F,"literal",W(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:q}));else{if(Ht=H.$read_paragraph_lines(Q,y(C=g["$=="](0))?ie["$[]"]("list_type"):C,W(["skip_line_comments"],{skip_line_comments:!0})),y(o))y(at)&&Me(le,"normal")&&H["$adjust_indentation!"](Ht),ke=oe("Block").$new(F,"paragraph",W(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(y(oe("ADMONITION_STYLE_HEADS")["$include?"](yt))&&y(P["$include?"](":"))&&y(oe("AdmonitionParagraphRx")["$=~"](P)))Ht["$[]="](0,(O=et["~"])===R?R:O.$post_match()),q["$[]="]("name",hn=(O=["style",($e=et["~"])===R?R:$e["$[]"](1)],_e(q,"[]=",O),O[O.length-1]).$downcase()),q["$[]="]("textlabel",y(C=q.$delete("caption"))?C:de["$[]"](""+hn+"-caption")),ke=oe("Block").$new(F,"admonition",W(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(y(gt)&&Me(yt,">")&&y(P["$start_with?"]("> "))){if(_e(Ht,"map!",[],function(rn){return rn==null&&(rn=R),Me(rn,">")?rn.$slice(1,rn.$length()):y(rn["$start_with?"]("> "))?rn.$slice(2,rn.$length()):rn}),y(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length()),!y(Ht["$empty?"]())))for(;y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();q["$[]="]("style","quote"),ke=H.$build_block("quote","compound",!1,F,oe("Reader").$new(Ht),q),y(Tr)&&($e=ke.$apply_subs(Tr).$split(", ",2),O=Ue($e),Sr=O[0]==null?R:O[0],wn=O[1]==null?R:O[1],y(Sr)&&q["$[]="]("attribution",Sr),y(wn)&&q["$[]="]("citetitle",wn))}else if(Me(yt,'"')&&y(Pe(Ht.$size(),1))&&y(Ht["$[]"](-1)["$start_with?"]("-- "))&&y(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,P.$slice(1,P.$length())),Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length());y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),q["$[]="]("style","quote"),ke=oe("Block").$new(F,"quote",W(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})),$e=ke.$apply_subs(Tr).$split(", ",2),O=Ue($e),Sr=O[0]==null?R:O[0],wn=O[1]==null?R:O[1],y(Sr)&&q["$[]="]("attribution",Sr),y(wn)&&q["$[]="]("citetitle",wn)}else y(at)&&Me(le,"normal")&&H["$adjust_indentation!"](Ht),ke=oe("Block").$new(F,"paragraph",W(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));H.$catalog_inline_anchors(Ht.$join(oe("LF")),ke,m,Q)}break}if(!y(ke))switch(Be){case"listing":case"source":(Me(Be,"source")||E(q["$[]"](1))&&y(Fr=y(Kt=q["$[]"](2))?Kt:de["$[]"]("source-language")))&&(y(Fr)?(q["$[]="]("style","source"),q["$[]="]("language",Fr),oe("AttributeList").$rekey(q,[R,R,"linenums"])):(oe("AttributeList").$rekey(q,[R,"language","linenums"]),y(q["$key?"]("language"))||y(de["$key?"]("source-language"))&&q["$[]="]("language",de["$[]"]("source-language"))),y(q["$key?"]("linenums"))||(y(q["$[]"]("linenums-option"))||y(de["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),y(q["$key?"]("indent"))||y(de["$key?"]("source-indent"))&&q["$[]="]("indent",de["$[]"]("source-indent"))),ke=H.$build_block("listing","verbatim",it,F,Q,q);break;case"fenced_code":q["$[]="]("style","source"),y(Pe(vt=P.$length(),3))&&(y(Kr=(Fr=P.$slice(3,vt)).$index(","))?y(Pe(Kr,0))?(Fr=Fr.$slice(0,Kr).$strip(),y(De(Kr,st(vt,4)))&&q["$[]="]("linenums","")):y(Pe(vt,4))&&q["$[]="]("linenums",""):Fr=Fr.$lstrip()),y(Fr["$nil_or_empty?"]())?y(de["$key?"]("source-language"))&&q["$[]="]("language",de["$[]"]("source-language")):q["$[]="]("language",Fr),y(q["$key?"]("linenums"))||(y(q["$[]"]("linenums-option"))||y(de["$[]"]("source-linenums-option")))&&q["$[]="]("linenums",""),y(q["$key?"]("indent"))||y(de["$key?"]("source-indent"))&&q["$[]="]("indent",de["$[]"]("source-indent")),it=it.$slice(0,3),ke=H.$build_block("listing","verbatim",it,F,Q,q);break;case"table":Hs=Q.$cursor(),Vs=oe("Reader").$new(Q.$read_lines_until(W(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Hs),y(it["$start_with?"]("|","!"))||y(Kt=q["$[]"]("format"))||q["$[]="]("format",y(it["$start_with?"](","))?"csv":"dsv"),ke=H.$parse_table(Vs,F,q);break;case"sidebar":ke=H.$build_block(Be,"compound",it,F,Q,q);break;case"admonition":q["$[]="]("name",hn=le.$downcase()),q["$[]="]("textlabel",y(Kt=q.$delete("caption"))?Kt:de["$[]"](""+hn+"-caption")),ke=H.$build_block(Be,"compound",it,F,Q,q);break;case"open":case"abstract":case"partintro":ke=H.$build_block("open","compound",it,F,Q,q);break;case"literal":ke=H.$build_block(Be,"verbatim",it,F,Q,q);break;case"example":y(q["$[]"]("collapsible-option"))&&q["$[]="]("caption",""),ke=H.$build_block(Be,"compound",it,F,Q,q);break;case"quote":case"verse":oe("AttributeList").$rekey(q,[R,"attribution","citetitle"]),ke=H.$build_block(Be,Me(Be,"verse")?"verbatim":"compound",it,F,Q,q);break;case"stem":case"latexmath":case"asciimath":Me(Be,"stem")&&q["$[]="]("style",oe("STEM_TYPE_ALIASES")["$[]"](y(Kt=q["$[]"](2))?Kt:de["$[]"]("stem"))),ke=H.$build_block("stem","raw",it,F,Q,q);break;case"pass":ke=H.$build_block(Be,"raw",it,F,Q,q);break;case"comment":return H.$build_block(Be,"skip",it,F,Q,q),q.$clear(),R;default:if(y(b)&&y(Xt=k["$registered_for_block?"](Be,Xe))){if(Me(bc=(tn=Xt.$config())["$[]"]("content_model"),"skip")||(y((Ys=y(Kt=tn["$[]"]("positional_attrs"))?Kt:tn["$[]"]("pos_attrs"))["$nil_or_empty?"]())||oe("AttributeList").$rekey(q,Ge([R],Ys)),y(Jt=tn["$[]"]("default_attrs"))&&_e(Jt,"each",[],function(rn,gs){var io;return rn==null&&(rn=R),gs==null&&(gs=R),y(Kt=q["$[]"](rn))?Kt:(io=[rn,gs],_e(q,"[]=",io),io[io.length-1])}),q["$[]="]("cloaked-context",Xe)),!y(ke=H.$build_block(Be,bc,it,F,Q,q,W(["extension"],{extension:Xt}))))return q.$clear(),R}else H.$raise("Unsupported block type "+Be+" at "+Q.$cursor())}return y(m.$sourcemap())&&ke["$source_location="](Q.$cursor_at_mark()),y(q["$[]"]("title"))&&(ke["$title="](Wt=q.$delete("title")),y(oe("CAPTION_ATTRIBUTE_NAMES")["$[]"](ke.$context()))&&ke.$assign_caption(q.$delete("caption"))),ke["$style="](q["$[]"]("style")),y(xc=y(C=ke.$id())?C:(O=[q["$[]"]("id")],_e(ke,"id=",O),O[O.length-1]))&&(y(y(Wt)?Wt["$include?"](oe("ATTR_REF_HEAD")):ke["$title?"]())&&ke.$title(),y(m.$register("refs",[xc,ke]))||H.$logger().$warn(H.$message_with_context("id assigned to block already in use: "+xc,W(["source_location"],{source_location:Q.$cursor_at_mark()})))),y(q["$empty?"]())||ke.$update_attributes(q),ke.$commit_subs(),y(ke["$sub?"]("callouts"))&&(y(H.$catalog_callouts(ke.$source(),m))||ke.$remove_sub("callouts")),ke},-3),G(qe,"$read_paragraph_lines",function(Q,F,q){var ie=R;return q==null&&(q=W([],{})),q["$[]="]("break_on_blank_lines",!0),q["$[]="]("break_on_list_continuation",!0),q["$[]="]("preserve_last_line",!0),ie=y(F)?y(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockOrListProc"):oe("StartOfListProc"):y(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockProc"):oe("NoOp"),_e(Q,"read_lines_until",[q],ie.$to_proc())},-3),G(qe,"$is_delimited_block?",function(Q,F){var q,ie,O=this,$e=R,H=R,g=R,o=R,m=R;if(F==null&&(F=R),!(y(Pe($e=Q.$length(),1))&&y(oe("DELIMITED_BLOCK_HEADS")["$[]"](Q.$slice(0,2)))))return R;if(Me($e,2))H=Q,g=2;else if(y(De($e,5))?(H=Q,g=$e):H=Q.$slice(0,g=4),y(oe("Compliance").$markdown_syntax())&&y(H["$start_with?"]("`"))){if(Me(g,4)){if(Me(H,"````")||Re(H=H.$chop(),"```"))return R;Q=H,$e=g=3}else if(Re(H,"```"))return R}else if(Me(g,3))return R;return ie=oe("DELIMITED_BLOCKS")["$[]"](H),q=Ue(ie),o=q[0]==null?R:q[0],m=q[1]==null?R:q[1],y(o)&&(Me($e,g)||y(O["$uniform?"](Q.$slice(1,$e),oe("DELIMITED_BLOCK_TAILS")["$[]"](H),st($e,1))))?y(F)?oe("BlockMatchData").$new(o,m,H,Q):!0:R},-2),G(qe,"$build_block",function(Q,F,q,ie,O,$e,H){var g,o=this,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R;switch(H==null&&(H=W([],{})),F){case"skip":g=[!0,"simple"],m=g[0],C=g[1];break;case"raw":g=[!1,"simple"],m=g[0],C=g[1];break;default:g=[!1,F],m=g[0],C=g[1]}switch(y(q["$nil?"]())?(Me(C,"verbatim")?k=O.$read_lines_until(W(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(Me(F,"compound")&&(F="simple"),k=o.$read_paragraph_lines(O,!1,W(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),b=R):Re(C,"compound")?(k=O.$read_lines_until(W(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Q,cursor:"at_mark"})),b=R):Me(q,!1)?(k=R,b=O):(k=R,L=O.$cursor(),b=oe("Reader").$new(O.$read_lines_until(W(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Q,cursor:"at_mark"})),L)),F){case"verbatim":P=(y(de=$e["$[]"]("tabsize"))?de:ie.$document().$attributes()["$[]"]("tabsize")).$to_i(),y(le=$e["$[]"]("indent"))?o["$adjust_indentation!"](k,le.$to_i(),P):y(Pe(P,0))&&o["$adjust_indentation!"](k,-1,P);break;case"skip":return R}if(y(ke=H["$[]"]("extension")))if($e.$delete("style"),y(Be=ke.$process_method()["$[]"](ie,y(Xe=b)?Xe:oe("Reader").$new(k),$e.$merge()))&&Re(Be,ie))$e.$replace(Be.$attributes()),Me(Be.$content_model(),"compound")&&Ye(oe("Block"),Be)&&E((k=Be.$lines())["$empty?"]())&&(F="compound",b=oe("Reader").$new(k));else return R;else Be=oe("Block").$new(ie,Q,W(["content_model","source","attributes"],{content_model:F,source:k,attributes:$e}));return Me(F,"compound")&&o.$parse_blocks(b,Be),Be},-7),G(qe,"$parse_blocks",function(Q,F,q){var ie=this,O=R,$e=R,H=R;if(q==null&&(q=R),y(q))for(;y(y(O=y($e=H=ie.$next_block(Q,F,q.$merge()))?F.$blocks()["$<<"](H):$e)?O:Q["$has_more_lines?"]()););else for(;y(y(O=y($e=H=ie.$next_block(Q,F))?F.$blocks()["$<<"](H):$e)?O:Q["$has_more_lines?"]()););return R},-3),G(qe,"$parse_list",function(Q,F,q,ie){var O,$e=this,H=R,g=R,o=R,m=R;for(et["~"]==null&&(et["~"]=R),H=oe("List").$new(q,F),g=oe("ListRxMap")["$[]"](F);y(y(o=Q["$has_more_lines?"]())?g["$=~"](Q.$peek_line()):o)&&(y(m=$e.$parse_list_item(Q,H,et["~"],(O=et["~"])===R?R:O["$[]"](1),ie))&&H.$items()["$<<"](m),!!y(o=Q.$skip_blank_lines())););return H}),G(qe,"$catalog_callouts",function(Q,F){var q=R,ie=R;return q=!1,ie=0,y(Q["$include?"]("<"))&&_e(Q,"scan",[oe("CalloutScanRx")],function(){var $e;return y((($e=et["~"])===R?R:$e["$[]"](0))["$start_with?"]("\\"))||F.$callouts().$register(Me(($e=et["~"])===R?R:$e["$[]"](2),".")?(ie=Ge(ie,1)).$to_s():($e=et["~"])===R?R:$e["$[]"](2)),q=!0}),q}),G(qe,"$catalog_inline_anchor",function(Q,F,q,ie,O){var $e=this;return O==null&&(O=q.$document()),y(F)&&y(F["$include?"](oe("ATTR_REF_HEAD")))&&(F=O.$sub_attributes(F)),y(O.$register("refs",[Q,oe("Inline").$new(q,"anchor",F,W(["type","id"],{type:"ref",id:Q}))]))||(Ye(oe("Reader"),ie)&&(ie=ie.$cursor()),$e.$logger().$warn($e.$message_with_context("id assigned to anchor already in use: "+Q,W(["source_location"],{source_location:ie})))),R},-5),G(qe,"$catalog_inline_anchors",function(Q,F,q,ie){var O=this;return(y(Q["$include?"]("[["))||y(Q["$include?"]("or:")))&&_e(Q,"scan",[oe("InlineAnchorScanRx")],function $e(){var H,g=$e.$$s==null?this:$e.$$s,o=R,m=R,C=R,k=R;if(y(o=(H=et["~"])===R?R:H["$[]"](1))){if(y(m=(H=et["~"])===R?R:H["$[]"](2))&&y(m["$include?"](oe("ATTR_REF_HEAD")))&&y((m=q.$sub_attributes(m))["$empty?"]()))return R}else o=(H=et["~"])===R?R:H["$[]"](3),y(m=(H=et["~"])===R?R:H["$[]"](4))&&(y(m["$include?"]("]"))?(m=m.$gsub("\\]","]"),y(m["$include?"](oe("ATTR_REF_HEAD")))&&(m=q.$sub_attributes(m))):y(m["$include?"](oe("ATTR_REF_HEAD")))&&y((m=q.$sub_attributes(m))["$empty?"]())&&(m=R));return y(q.$register("refs",[o,oe("Inline").$new(F,"anchor",m,W(["type","id"],{type:"ref",id:o}))]))?R:(C=ie.$cursor_at_mark(),y(Pe(k=Ge(((H=et["~"])===R?R:H.$pre_match()).$count(oe("LF")),y(((H=et["~"])===R?R:H["$[]"](0))["$start_with?"](oe("LF")))?1:0),0))&&(C=C.$dup()).$advance(k),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+o,W(["source_location"],{source_location:C}))))},{$$s:O}),R}),G(qe,"$catalog_inline_biblio_anchor",function(Q,F,q,ie){var O=this,$e=R;return y(q.$document().$register("refs",[Q,oe("Inline").$new(q,"anchor",y($e=F)?"["+F+"]":$e,W(["type","id"],{type:"bibref",id:Q}))]))||O.$logger().$warn(O.$message_with_context("id assigned to bibliography anchor already in use: "+Q,W(["source_location"],{source_location:ie.$cursor()}))),R}),G(qe,"$parse_description_list",function(Q,F,q){var ie=this,O=R,$e=R,H=R,g=R,o=R;for(et["~"]==null&&(et["~"]=R),O=oe("List").$new(q,"dlist"),$e=oe("DescriptionListSiblingRx")["$[]"](F["$[]"](2)),O.$items()["$<<"](H=ie.$parse_list_item(Q,O,F,$e));y(y(g=Q["$has_more_lines?"]())?$e["$=~"](Q.$peek_line()):g);)o=ie.$parse_list_item(Q,O,et["~"],$e),y(H["$[]"](1))?O.$items()["$<<"](H=o):(H["$[]"](0)["$<<"](o["$[]"](0)["$[]"](0)),H["$[]="](1,o["$[]"](1)));return O}),G(qe,"$parse_callout_list",function(Q,F,q,ie){var O=this,$e=R,H=R,g=R,o=R,m=R,C=R,k=R,b=R;for($e=oe("List").$new(q,"colist"),H=1,g=0;y(y(o=F)?o:y(m=F=oe("CalloutListRx").$match(Q.$peek_line()))?Q.$mark():m);)Me(C=F["$[]"](1),".")&&(C=(g=Ge(g,1)).$to_s()),Me(C,H.$to_s())||O.$logger().$warn(O.$message_with_context("callout list item index: expected "+H+", got "+C,W(["source_location"],{source_location:Q.$cursor_at_mark()}))),y(k=O.$parse_list_item(Q,$e,F,"<1>"))&&($e.$items()["$<<"](k),y((b=ie.$callout_ids($e.$items().$size()))["$empty?"]())?O.$logger().$warn(O.$message_with_context("no callout found for <"+$e.$items().$size()+">",W(["source_location"],{source_location:Q.$cursor_at_mark()}))):k.$attributes()["$[]="]("coids",b)),H=Ge(H,1),F=R;return ie.$next_list(),$e}),G(qe,"$parse_list_item",function(Q,F,q,ie,O){var $e,H,g=this,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R,gt=R,yt=R,xt=R,vt=R,Rt=R;if(O==null&&(O=R),Me(o=F.$context(),"dlist"))m=!0,C=oe("ListItem").$new(F,k=q["$[]"](1)),y(k["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](k))&&g.$catalog_inline_anchor(($e=et["~"])===R?R:$e["$[]"](1),y(b=($e=et["~"])===R?R:$e["$[]"](2))?b:(($e=et["~"])===R?R:$e.$post_match()).$lstrip(),C,Q),y(L=q["$[]"](3))&&(P=!0),de=oe("ListItem").$new(F,L),y(F.$document().$sourcemap())&&(C["$source_location="](Q.$cursor()),y(P)?de["$source_location="](C.$source_location()):le=!0);else switch(P=!0,de=oe("ListItem").$new(F,L=q["$[]"](2)),y(F.$document().$sourcemap())&&de["$source_location="](Q.$cursor()),o){case"ulist":de["$marker="](ie),y(L["$start_with?"]("["))&&(y(O)&&Me(O,"bibliography")?y(oe("InlineBiblioAnchorRx")["$=~"](L))&&g.$catalog_inline_biblio_anchor(($e=et["~"])===R?R:$e["$[]"](1),($e=et["~"])===R?R:$e["$[]"](2),de,Q):y(L["$start_with?"]("[["))?y(oe("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=et["~"])===R?R:$e["$[]"](1),($e=et["~"])===R?R:$e["$[]"](2),de,Q):y(L["$start_with?"]("[ ] ","[x] ","[*] "))&&(F.$set_option("checklist"),de.$attributes()["$[]="]("checkbox",""),y(L["$start_with?"]("[ "))||de.$attributes()["$[]="]("checked",""),de["$text="](L.$slice(4,L.$length()))));break;case"olist":H=g.$resolve_ordered_list_marker(ie,ke=F.$items().$size(),!0,Q),$e=Ue(H),ie=$e[0]==null?R:$e[0],Be=$e[1]==null?R:$e[1],de["$marker="](ie),Me(ke,0)&&E(O)&&F["$style="](y(Xe=Be)?Xe:(y(it=oe("ORDERED_LIST_STYLES")["$[]"](st(ie.$length(),1)))?it:"arabic").$to_s()),y(L["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=et["~"])===R?R:$e["$[]"](1),($e=et["~"])===R?R:$e["$[]"](2),de,Q);break;default:de["$marker="](ie),y(L["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](L))&&g.$catalog_inline_anchor(($e=et["~"])===R?R:$e["$[]"](1),($e=et["~"])===R?R:$e["$[]"](2),de,Q)}if(Q.$shift(),ht=Q.$cursor(),at=oe("Reader").$new(g.$read_lines_for_list_item(Q,o,ie,P),ht),y(at["$has_more_lines?"]())){for(y(le)&&de["$source_location="](ht),gt=at.$skip_line_comments(),y(yt=at.$peek_line())&&(y(gt["$empty?"]())||at.$unshift_lines(gt),y(yt["$empty?"]())||(xt=!0,y(m)||(P=R))),y(vt=g.$next_block(at,de,W([],{}),W(["text_only","list_type"],{text_only:y(P)?R:!0,list_type:o})))&&de.$blocks()["$<<"](vt);y(at["$has_more_lines?"]());)y(vt=g.$next_block(at,de,W([],{}),W(["list_type"],{list_type:o})))&&de.$blocks()["$<<"](vt);y(xt)&&y(Rt=de.$blocks()["$[]"](0))&&Me(Rt.$context(),"paragraph")&&de.$fold_first()}return y(m)?[[C],y(de["$text?"]())||y(de["$blocks?"]())?de:R]:de},-5),G(qe,"$read_lines_for_list_item",function(Q,F,q,ie){var O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R;for(q==null&&(q=R),ie==null&&(ie=!0),H=[],g="inactive",o=!1,m=R,C=F["$=="]("dlist");y(Q["$has_more_lines?"]())&&(k=Q.$read_line(),!y($e["$is_sibling_list_item?"](k,F,q)));){if(b=y(H["$empty?"]())?R:H["$[]"](-1),Me(b,oe("LIST_CONTINUATION"))&&(Me(g,"inactive")&&(g="active",ie=!0,y(o)||H["$[]="](-1,"")),Me(k,oe("LIST_CONTINUATION")))){Re(g,"frozen")&&(g="frozen",H["$<<"](k)),k=R;continue}if(y(L=$e["$is_delimited_block?"](k,!0))){if(!Me(g,"active"))break;H["$<<"](k),H.$concat(Q.$read_lines_until(W(["terminator","read_last_line","context"],{terminator:L.$terminator(),read_last_line:!0,context:R}))),g="inactive"}else if(y(C)&&Re(g,"active")&&y(k["$start_with?"]("["))&&y(oe("BlockAttributeLineRx")["$match?"](k))){for(P=[k];y(de=Q.$peek_line());){if(y($e["$is_delimited_block?"](de)))le=!0;else if(y(de["$empty?"]())||y(de["$start_with?"]("["))&&y(oe("BlockAttributeLineRx")["$match?"](de))){P["$<<"](Q.$read_line());continue}else y(oe("AnyListRx")["$match?"](de))&&E($e["$is_sibling_list_item?"](de,F,q))?H.$concat(P):le=!0;break}if(y(le)){Q.$unshift_lines(P);break}}else if(Me(g,"active")&&E(k["$empty?"]()))y(oe("LiteralParagraphRx")["$match?"](k))?(Q.$unshift_line(k),y(C)?H.$concat(_e(Q,"read_lines_until",[W(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function ht(at){var gt=ht.$$s==null?this:ht.$$s;return at==null&&(at=R),gt["$is_sibling_list_item?"](at,F,q)},{$$s:$e})):H.$concat(Q.$read_lines_until(W(["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"):Me(ke=k.$chr(),".")&&y(oe("BlockTitleRx")["$match?"](k))||Me(ke,"[")&&y(oe("BlockAttributeLineRx")["$match?"](k))||Me(ke,":")&&y(oe("AttributeEntryRx")["$match?"](k))?H["$<<"](k):(y(Be=_e(y(o)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=R),oe("ListRxMap")["$[]"](at)["$match?"](k)}))&&(o=!0,Me(Be,"dlist")&&y(((O=et["~"])===R?R:O["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),H["$<<"](k),g="inactive");else if(y(b)&&y(b["$empty?"]())){if(y(k["$empty?"]())&&(!y(k=y(Xe=Q.$skip_blank_lines())?Q.$read_line():Xe)||y($e["$is_sibling_list_item?"](k,F,q))))break;if(Me(k,oe("LIST_CONTINUATION")))m=H.$size(),H["$<<"](k);else if(y(ie)){if(y($e["$is_sibling_list_item?"](k,F,q)))break;if(y(Be=_e(oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=R),oe("ListRxMap")["$[]"](at)["$=~"](k)})))H["$<<"](k),o=!0,Me(Be,"dlist")&&y(((O=et["~"])===R?R:O["$[]"](3))["$nil_or_empty?"]())&&(ie=!1);else if(y(oe("LiteralParagraphRx")["$match?"](k)))Q.$unshift_line(k),y(C)?H.$concat(_e(Q,"read_lines_until",[W(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function ht(at){var gt=ht.$$s==null?this:ht.$$s;return at==null&&(at=R),gt["$is_sibling_list_item?"](at,F,q)},{$$s:$e})):H.$concat(Q.$read_lines_until(W(["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(o)||H.$pop(),H["$<<"](k),ie=!0}else y(k["$empty?"]())||(ie=!0),y(Be=_e(y(o)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=R),oe("ListRxMap")["$[]"](at)["$=~"](k)}))&&(o=!0,Me(Be,"dlist")&&y(((O=et["~"])===R?R:O["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),H["$<<"](k);k=R}for(y(k)&&Q.$unshift_line(k),y(m)&&H["$[]="](m,"");!y(H["$empty?"]());)if(y((it=H["$[]"](-1))["$empty?"]()))H.$pop();else{Me(it,oe("LIST_CONTINUATION"))&&H.$pop();break}return H},-3),G(qe,"$initialize_section",function(Q,F,q){var ie,O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R;return q==null&&(q=W([],{})),H=F.$document(),g=(o=H.$doctype())["$=="]("book"),y(H.$sourcemap())&&(m=Q.$cursor()),C=q["$[]"](1),O=$e.$parse_section_title(Q,H,q["$[]"]("id")),ie=Ue(O),k=ie[0]==null?R:ie[0],b=ie[1]==null?R:ie[1],L=ie[2]==null?R:ie[2],P=ie[3]==null?R:ie[3],de=ie[4]==null?R:ie[4],y(C)?y(g)&&Me(C,"abstract")?(ie=["chapter",1],le=ie[0],P=ie[1]):y(C["$start_with?"]("sect"))&&y(oe("SectionLevelStyleRx")["$match?"](C))?le="section":(ie=[C,!0],le=ie[0],ke=ie[1],Me(P,0)&&(P=1),Be=le["$=="]("appendix")):y(g)?le=Me(P,0)?"part":y(Pe(P,1))?"section":"chapter":Me(o,"manpage")&&Me(L.$casecmp("synopsis"),0)?(ie=["synopsis",!0],le=ie[0],ke=ie[1]):le="section",y(b)&&q["$[]="]("reftext",b),Xe=oe("Section").$new(F,P),ie=[k,L,le,m],O=[ie[0]],_e(Xe,"id=",O),O[O.length-1],O=[ie[1]],_e(Xe,"title=",O),O[O.length-1],O=[ie[2]],_e(Xe,"sectname=",O),O[O.length-1],O=[ie[3]],_e(Xe,"source_location=",O),O[O.length-1],y(ke)?(Xe["$special="](!0),y(Be)?Xe["$numbered="](!0):Me(H.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](y(g)&&Me(P,1)?"chapter":!0)):y(H.$attributes()["$[]"]("sectnums"))&&y(Pe(P,0))?Xe["$numbered="](y(Xe.$special())?y(it=F.$numbered())||it:!0):y(g)&&Me(P,0)&&y(H.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),y(ht=y(it=Xe.$id())?it:(ie=[y(H.$attributes()["$key?"]("sectids"))?at=oe("Section").$generate_id(Xe.$title(),H):R],_e(Xe,"id=",ie),ie[ie.length-1]))&&(y(at)||E(L["$include?"](oe("ATTR_REF_HEAD")))||Xe.$title(),y(H.$register("refs",[ht,Xe]))||$e.$logger().$warn($e.$message_with_context("id assigned to section already in use: "+ht,W(["source_location"],{source_location:Q.$cursor_at_line(st(Q.$lineno(),y(de)?1:2))})))),Xe.$update_attributes(q),Q.$skip_blank_lines(),Xe},-3),G(qe,"$is_next_line_section?",function(Q,F){var q=this,ie=R,O=R,$e=R;return y(ie=F["$[]"](1))&&(Me(ie,"discrete")||Me(ie,"float"))?R:y(oe("Compliance").$underline_style_section_titles())?(O=Q.$peek_lines(2,y($e=ie)?ie["$=="]("comment"):$e),q["$is_section_title?"](y($e=O["$[]"](0))?$e:"",O["$[]"](1))):q["$atx_section_title?"](y($e=Q.$peek_line())?$e:"")}),G(qe,"$is_next_line_doctitle?",function(Q,F,q){var ie=this,O=R,$e=R;return y(q)?y(O=$e=ie["$is_next_line_section?"](Q,F))?Ge($e,q.$to_i())["$=="](0):O:ie["$is_next_line_section?"](Q,F)["$=="](0)}),G(qe,"$is_section_title?",function(Q,F){var q=this,ie=R;return F==null&&(F=R),y(ie=q["$atx_section_title?"](Q))?ie:y(F["$nil_or_empty?"]())?R:q["$setext_section_title?"](Q,F)},-2),G(qe,"$atx_section_title?",function(Q){var F,q=R;return y(y(oe("Compliance").$markdown_syntax())?y(q=Q["$start_with?"]("=","#"))?oe("ExtAtxSectionTitleRx")["$=~"](Q):q:y(q=Q["$start_with?"]("="))?oe("AtxSectionTitleRx")["$=~"](Q):q)?st(((F=et["~"])===R?R:F["$[]"](1)).$length(),1):R}),G(qe,"$setext_section_title?",function(Q,F){var q=this,ie=R,O=R,$e=R;return y(O=oe("SETEXT_SECTION_LEVELS")["$[]"]($e=F.$chr()))&&y(q["$uniform?"](F,$e,ie=F.$length()))&&y(oe("SetextSectionTitleRx")["$match?"](Q))&&y(De(st(Q.$length(),ie).$abs(),2))?O:R}),G(qe,"$parse_section_title",function(Q,F,q){var ie,O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R;return q==null&&(q=R),H=R,g=Q.$read_line(),y(y(oe("Compliance").$markdown_syntax())?y(o=g["$start_with?"]("=","#"))?oe("ExtAtxSectionTitleRx")["$=~"](g):o:y(o=g["$start_with?"]("="))?oe("AtxSectionTitleRx")["$=~"](g):o)?(ie=[st(((O=et["~"])===R?R:O["$[]"](1)).$length(),1),(O=et["~"])===R?R:O["$[]"](2),!0],m=ie[0],C=ie[1],k=ie[2],y(q)||y(C["$end_with?"]("]]"))&&y(oe("InlineSectionAnchorRx")["$=~"](C))&&E((ie=et["~"])===R?R:ie["$[]"](1))&&(ie=[C.$slice(0,st(C.$length(),((O=et["~"])===R?R:O["$[]"](0)).$length())),(O=et["~"])===R?R:O["$[]"](2),(O=et["~"])===R?R:O["$[]"](3)],C=ie[0],q=ie[1],H=ie[2])):y(oe("Compliance").$underline_style_section_titles())&&y(P=Q.$peek_line(!0))&&y(m=oe("SETEXT_SECTION_LEVELS")["$[]"](L=P.$chr()))&&y($e["$uniform?"](P,L,b=P.$length()))&&y(C=y(o=oe("SetextSectionTitleRx")["$=~"](g))?(ie=et["~"])===R?R:ie["$[]"](1):o)&&y(De(st(g.$length(),b).$abs(),2))?(k=!1,y(q)||y(C["$end_with?"]("]]"))&&y(oe("InlineSectionAnchorRx")["$=~"](C))&&E((ie=et["~"])===R?R:ie["$[]"](1))&&(ie=[C.$slice(0,st(C.$length(),((O=et["~"])===R?R:O["$[]"](0)).$length())),(O=et["~"])===R?R:O["$[]"](2),(O=et["~"])===R?R:O["$[]"](3)],C=ie[0],q=ie[1],H=ie[2]),Q.$shift()):$e.$raise("Unrecognized section at "+Q.$cursor_at_prev_line()),y(F["$attr?"]("leveloffset"))&&(m=Ge(m,F.$attr("leveloffset").$to_i()),y(De(m,0))&&(m=0)),[q,H,C,m,k]},-3),G(qe,"$parse_header_metadata",function(Q,F,q){var ie,O=this,$e=R,H=R,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R,gt=R;if(F==null&&(F=R),q==null&&(q=!0),$e=y(H=F)?F.$attributes():H,O.$process_attribute_entries(Q,F),y(Q["$has_more_lines?"]())&&E(Q["$next_line_empty?"]())?(g=(o=O.$process_authors(Q.$read_line())).$delete("authorcount"),y(F)&&y(Pe((ie=["authorcount",g],_e($e,"[]=",ie),ie[ie.length-1]),0))&&(_e(o,"each",[],function(xt,vt){var Rt;return xt==null&&(xt=R),vt==null&&(vt=R),y($e["$key?"](xt))?R:(Rt=[xt,F.$apply_header_subs(vt)],_e($e,"[]=",Rt),Rt[Rt.length-1])}),m=$e["$[]"]("author"),C=$e["$[]"]("authorinitials"),k=$e["$[]"]("authors")),o["$[]="]("authorcount",g),O.$process_attribute_entries(Q,F),y(Q["$has_more_lines?"]())&&E(Q["$next_line_empty?"]())&&(b=Q.$read_line(),y(L=oe("RevisionInfoLineRx").$match(b))?(P=W([],{}),y(L["$[]"](1))&&P["$[]="]("revnumber",L["$[]"](1).$rstrip()),y((de=L["$[]"](2).$strip())["$empty?"]())||(E(L["$[]"](1))&&y(de["$start_with?"]("v"))?P["$[]="]("revnumber",de.$slice(1,de.$length())):P["$[]="]("revdate",de)),y(L["$[]"](3))&&P["$[]="]("revremark",L["$[]"](3).$rstrip()),y(F)&&E(P["$empty?"]())&&_e(P,"each",[],function(xt,vt){var Rt;return xt==null&&(xt=R),vt==null&&(vt=R),y($e["$key?"](xt))?R:(Rt=[xt,F.$apply_header_subs(vt)],_e($e,"[]=",Rt),Rt[Rt.length-1])})):Q.$unshift_line(b)),O.$process_attribute_entries(Q,F),Q.$skip_blank_lines()):o=W([],{}),y(F)){if(y($e["$key?"]("author"))&&Re(le=$e["$[]"]("author"),m))ke=O.$process_authors(le,!0,!1),Re($e["$[]"]("authorinitials"),C)&&ke.$delete("authorinitials");else if(y($e["$key?"]("authors"))&&Re(le=$e["$[]"]("authors"),k))ke=O.$process_authors(le,!0);else{for(ie=[[],1,"author_1",!1,!1],Be=ie[0],Xe=ie[1],it=ie[2],ht=ie[3],at=ie[4];y($e["$key?"](it));)Me(gt=$e["$[]"](it),o["$[]"](it))?(Be["$<<"](R),at=!0):(Be["$<<"](gt),ht=!0),it="author_"+(Xe=Ge(Xe,1));y(ht)?(y(at)&&_e(Be,"each_with_index",[],function(xt,vt){var Rt,Tt=R;return xt==null&&(xt=R),vt==null&&(vt=R),y(xt)?R:(Rt=[vt,_e([o["$[]"]("firstname_"+(Tt=Ge(vt,1))),o["$[]"]("middlename_"+Tt),o["$[]"]("lastname_"+Tt)].$compact(),"map",[],function(Bt){return Bt==null&&(Bt=R),Bt.$tr(" ","_")}).$join(" ")],_e(Be,"[]=",Rt),Rt[Rt.length-1])}),ke=O.$process_authors(Be,!0,!1)):ke=W(["authorcount"],{authorcount:0})}Me(ke["$[]"]("authorcount"),0)?y(g)?ke=R:$e["$[]="]("authorcount",0):($e.$update(ke),E($e["$key?"]("email"))&&y($e["$key?"]("email_1"))&&$e["$[]="]("email",$e["$[]"]("email_1")))}return y(q)?o.$merge(P.$to_h(),ke.$to_h()):R},-2),G(qe,"$process_authors",function(Q,F,q){var ie=R,O=R;return F==null&&(F=!1),q==null&&(q=!0),ie=W([],{}),O=0,_e(y(q)&&y(Q["$include?"](";"))?Q.$split(oe("AuthorDelimiterRx")):[].concat(dt(Q)),"each",[],function(H){var g,o=R,m=R,C=R,k=R,b=R,L=R,P=R;return H==null&&(H=R),y(H["$empty?"]())?R:(o=W([],{}),Me(O=Ge(O,1),1)?_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=R),ke=[le.$to_sym(),le],_e(o,"[]=",ke),ke[ke.length-1]}):_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=R),ke=[le.$to_sym(),""+le+"_"+O],_e(o,"[]=",ke),ke[ke.length-1]}),y(F)?(y(H["$include?"]("<"))&&(ie["$[]="](o["$[]"]("author"),H.$tr("_"," ")),H=H.$gsub(oe("XmlSanitizeRx"),"")),Me((m=H.$split(R,3)).$size(),3)&&m["$<<"](m.$pop().$squeeze(" "))):y(C=oe("AuthorInfoLineRx").$match(H))&&(m=C.$to_a()).$shift(),y(m)?(k=(g=[o["$[]"]("firstname"),b=m["$[]"](0).$tr("_"," ")],_e(ie,"[]=",g),g[g.length-1]),ie["$[]="](o["$[]"]("authorinitials"),b.$chr()),y(m["$[]"](1))&&(y(m["$[]"](2))?(ie["$[]="](o["$[]"]("middlename"),L=m["$[]"](1).$tr("_"," ")),ie["$[]="](o["$[]"]("lastname"),P=m["$[]"](2).$tr("_"," ")),k=Ge(Ge(Ge(Ge(b," "),L)," "),P),ie["$[]="](o["$[]"]("authorinitials"),""+b.$chr()+L.$chr()+P.$chr())):(ie["$[]="](o["$[]"]("lastname"),P=m["$[]"](1).$tr("_"," ")),k=Ge(Ge(b," "),P),ie["$[]="](o["$[]"]("authorinitials"),""+b.$chr()+P.$chr()))),y(ie["$[]"](o["$[]"]("author")))||ie["$[]="](o["$[]"]("author"),k),y(F)||E(m["$[]"](3))||ie["$[]="](o["$[]"]("email"),m["$[]"](3))):(ie["$[]="](o["$[]"]("author"),(g=[o["$[]"]("firstname"),b=H.$squeeze(" ").$strip()],_e(ie,"[]=",g),g[g.length-1])),ie["$[]="](o["$[]"]("authorinitials"),b.$chr())),Me(O,1)?(g=["authors",ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]):(Me(O,2)&&_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=R),y(ie["$key?"](le))?(ke=[""+le+"_1",ie["$[]"](le)],_e(ie,"[]=",ke),ke[ke.length-1]):R}),g=["authors",""+ie["$[]"]("authors")+", "+ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]))}),ie["$[]="]("authorcount",O),ie},-2),G(qe,"$parse_block_metadata_lines",function(Q,F,q,ie){var O=this;for(q==null&&(q=W([],{})),ie==null&&(ie=W([],{}));y(O.$parse_block_metadata_line(Q,F,q,ie))&&(Q.$shift(),!!y(Q.$skip_blank_lines())););return q},-3),G(qe,"$parse_block_metadata_line",function(Q,F,q,ie){var O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R;if(et["~"]==null&&(et["~"]=R),ie==null&&(ie=W([],{})),y(g=Q.$peek_line())&&y(y(ie["$[]"]("text_only"))?g["$start_with?"]("[","/"):H=g["$start_with?"]("[",".","/",":"))){if(y(g["$start_with?"]("["))){if(y(g["$start_with?"]("[["))){if(y(g["$end_with?"]("]]"))&&y(oe("BlockAnchorRx")["$=~"](g)))return q["$[]="]("id",(O=et["~"])===R?R:O["$[]"](1)),y(o=(O=et["~"])===R?R:O["$[]"](2))&&q["$[]="]("reftext",y(o["$include?"](oe("ATTR_REF_HEAD")))?F.$sub_attributes(o):o),!0}else if(y(g["$end_with?"]("]"))&&y(oe("BlockAttributeListRx")["$=~"](g)))return m=q["$[]"](1),y(F.$parse_attributes((O=et["~"])===R?R:O["$[]"](1),[],W(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:q}))["$[]"](1))&&q["$[]="](1,y(C=$e.$parse_style_attribute(q,Q))?C:m),!0}else if(y(H)&&y(g["$start_with?"]("."))){if(y(oe("BlockTitleRx")["$=~"](g)))return q["$[]="]("title",(O=et["~"])===R?R:O["$[]"](1)),!0}else if(E(H)||y(g["$start_with?"]("/"))){if(y(g["$start_with?"]("//"))){if(Me(g,"//"))return!0;if(y(H)&&y($e["$uniform?"](g,"/",k=g.$length()))){if(!Me(k,3))return Q.$read_lines_until(W(["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(H)&&y(g["$start_with?"](":"))&&y(oe("AttributeEntryRx")["$=~"](g)))return $e.$process_attribute_entry(Q,F,q,et["~"]),!0}return R},-4),G(qe,"$process_attribute_entries",function(Q,F,q){var ie=this;for(q==null&&(q=R),Q.$skip_comment_lines();y(ie.$process_attribute_entry(Q,F,q));)Q.$shift(),Q.$skip_comment_lines()},-3),G(qe,"$process_attribute_entry",function(Q,F,q,ie){var O,$e=this,H=R,g=R,o=R,m=R,C=R,k=R;if(q==null&&(q=R),ie==null&&(ie=R),y(ie)||y(ie=y(Q["$has_more_lines?"]())?oe("AttributeEntryRx").$match(Q.$peek_line()):R)){if(y((H=ie["$[]"](2))["$nil_or_empty?"]()))H="";else if(y(H["$end_with?"](oe("LINE_CONTINUATION"),oe("LINE_CONTINUATION_LEGACY"))))for(O=[H.$slice(st(H.$length(),2),2),H.$slice(0,st(H.$length(),2)).$rstrip()],g=O[0],H=O[1];y(y(o=Q.$advance())?(m=y(C=Q.$peek_line())?C:"")["$empty?"]()["$!"]():o)&&(m=m.$lstrip(),y(k=m["$end_with?"](g))&&(m=m.$slice(0,st(m.$length(),2)).$rstrip()),H=""+H+(y(H["$end_with?"](oe("HARD_LINE_BREAK")))?oe("LF"):" ")+m,!!y(k)););return $e.$store_attribute(ie["$[]"](1),H,F,q),!0}else return R},-3),G(qe,"$store_attribute",function(Q,F,q,ie){var O=this,$e=R;return q==null&&(q=R),ie==null&&(ie=R),y(Q["$end_with?"]("!"))?(Q=Q.$chop(),F=R):y(Q["$start_with?"]("!"))&&(Q=Q.$slice(1,Q.$length()),F=R),Me(Q=O.$sanitize_attribute_name(Q),"numbered")?Q="sectnums":Me(Q,"hardbreaks")?Q="hardbreaks-option":Me(Q,"showtitle")&&O.$store_attribute("notitle",y(F)?R:"",q,ie),y(q)?y(F)?(Me(Q,"leveloffset")&&(y(F["$start_with?"]("+"))?F=Ge(q.$attr("leveloffset",0).$to_i(),F.$slice(1,F.$length()).$to_i()).$to_s():y(F["$start_with?"]("-"))&&(F=st(q.$attr("leveloffset",0).$to_i(),F.$slice(1,F.$length()).$to_i()).$to_s())),y($e=q.$set_attribute(Q,F))&&(F=$e,y(ie)&&tt(oe("Document"),"AttributeEntry").$new(Q,F).$save_to(ie))):y(q.$delete_attribute(Q))&&y(ie)&&tt(oe("Document"),"AttributeEntry").$new(Q,F).$save_to(ie):y(ie)&&tt(oe("Document"),"AttributeEntry").$new(Q,F).$save_to(ie),[Q,F]},-3),G(qe,"$resolve_list_marker",function(Q,F,q,ie,O){var $e=this;switch(q==null&&(q=0),ie==null&&(ie=!1),O==null&&(O=R),Q){case"ulist":return F;case"olist":return $e.$resolve_ordered_list_marker(F,q,ie,O)["$[]"](0);default:return"<1>"}},-3),G(qe,"$resolve_ordered_list_marker",function(Q,F,q,ie){var O=this,$e=R,H=R,g=R;if(F==null&&(F=0),q==null&&(q=!1),ie==null&&(ie=R),y(Q["$start_with?"](".")))return[Q];switch($e=_e(oe("ORDERED_LIST_STYLES"),"find",[],function(m){return m==null&&(m=R),oe("OrderedListMarkerRxMap")["$[]"](m)["$match?"](Q)})){case"arabic":y(q)&&(H=Ge(F,1),g=Q.$to_i()),Q="1.";break;case"loweralpha":y(q)&&(H=Ge("a"["$[]"](0).$ord(),F).$chr(),g=Q.$chop()),Q="a.";break;case"upperalpha":y(q)&&(H=Ge("A"["$[]"](0).$ord(),F).$chr(),g=Q.$chop()),Q="A.";break;case"lowerroman":y(q)&&(H=oe("Helpers").$int_to_roman(Ge(F,1)).$downcase(),g=Q.$chop()),Q="i)";break;case"upperroman":y(q)&&(H=oe("Helpers").$int_to_roman(Ge(F,1)),g=Q.$chop()),Q="I)";break}return y(q)&&Re(H,g)&&O.$logger().$warn(O.$message_with_context("list item index: expected "+H+", got "+g,W(["source_location"],{source_location:ie.$cursor()}))),[Q,$e]},-2),G(qe,"$is_sibling_list_item?",function(Q,F,q){var ie,O=this,$e=R;return Ye(tt("Regexp"),q)?q["$match?"](Q):y($e=oe("ListRxMap")["$[]"](F)["$=~"](Q))?q["$=="](O.$resolve_list_marker(F,(ie=et["~"])===R?R:ie["$[]"](1))):$e}),G(qe,"$parse_table",function(Q,F,q){var ie,O,$e,H=this,g=R,o=R,m=R,C=R,k=R,b=R,L=R,P=R,de=R,le=R,ke=R,Be=R,Xe=R,it=R,ht=R,at=R,gt=R,yt=R;for(g=oe("Table").$new(F,q),y(q["$key?"]("cols"))&&E((o=H.$parse_colspecs(q["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(o),m=!0),C=y(k=Q.$skip_blank_lines())?k:0,y(q["$[]"]("header-option"))?g["$has_header_option="](!0):Me(C,0)&&E(q["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),b=!0),L=tt(oe("Table"),"ParserContext").$new(Q,g,q),ie=[L.$format(),-1,R],P=ie[0],de=ie[1],le=ie[2];y(ke=Q.$read_line());){for(y(Be=Pe(de=Ge(de,1),0))&&y(ke["$empty?"]())?(ke=R,y(le)&&(le=Ge(le,1))):Me(P,"psv")&&(y(L["$starts_with_delimiter?"](ke))?(ke=ke.$slice(1,ke.$length()),L.$close_open_cell(),y(le)&&(le=R)):(O=H.$parse_cellspec(ke,"start",L.$delimiter()),ie=Ue(O),Xe=ie[0]==null?R:ie[0],ke=ie[1]==null?R:ie[1],y(Xe)?(L.$close_open_cell(Xe),y(le)&&(le=R)):y(le)&&Me(le,de)&&g["$has_header_option="](b=le=R))),y(Be)||(Q.$mark(),y(b)&&(y(Q["$has_more_lines?"]())&&y(Q.$peek_line()["$empty?"]())?le=1:g["$has_header_option="](b=R))),ie=!1;ie||y(!0);)if(ie=!1,y(ke)&&y(it=L.$match_delimiter(ke))){if(O=[it.$pre_match(),it.$post_match()],ht=O[0],at=O[1],Ye("csv",k=P)){if(y(L["$buffer_has_unclosed_quotes?"](ht))){if(L.$skip_past_delimiter(ht),y((ke=at)["$empty?"]()))break;ie=!0;continue}L["$buffer="](""+L.$buffer()+ht)}else if(Ye("dsv",k)){if(y(ht["$end_with?"]("\\"))){if(L.$skip_past_escaped_delimiter(ht),y((ke=at)["$empty?"]())){L["$buffer="](""+L.$buffer()+oe("LF")),L.$keep_cell_open();break}ie=!0;continue}L["$buffer="](""+L.$buffer()+ht)}else{if(y(ht["$end_with?"]("\\"))){if(L.$skip_past_escaped_delimiter(ht),y((ke=at)["$empty?"]())){L["$buffer="](""+L.$buffer()+oe("LF")),L.$keep_cell_open();break}ie=!0;continue}$e=H.$parse_cellspec(ht),O=Ue($e),Xe=O[0]==null?R:O[0],gt=O[1]==null?R:O[1],L.$push_cellspec(Xe),L["$buffer="](""+L.$buffer()+gt)}y((ke=at)["$empty?"]())&&(ke=R),L.$close_cell()}else{switch(L["$buffer="](""+L.$buffer()+ke+oe("LF")),P){case"csv":y(L["$buffer_has_unclosed_quotes?"]())?(y(le)&&Me(de,0)&&g["$has_header_option="](b=le=R),L.$keep_cell_open()):L.$close_cell(!0);break;case"dsv":L.$close_cell(!0);break;default:L.$keep_cell_open()}break}if(y(L["$cell_open?"]()))y(Q["$has_more_lines?"]())||L.$close_cell(!0);else if(!y(k=Q.$skip_blank_lines()))break}return Me((yt=g.$attributes(),y(k=yt["$[]"]("colcount"))?k:(ie=["colcount",g.$columns().$size()],_e(yt,"[]=",ie),ie[ie.length-1])),0)||y(m)||g.$assign_column_widths(),y(b)&&g["$has_header_option="](!0),g.$partition_header_footer(q),g}),G(qe,"$parse_colspecs",function(Q){var F=R;return y(Q["$include?"](" "))&&(Q=Q.$delete(" ")),Me(Q,Q.$to_i().$to_s())?_e(tt("Array"),"new",[Q.$to_i()],function(){return W(["width"],{width:1})}):(F=[],_e(y(Q["$include?"](","))?Q.$split(",",-1):Q.$split(";",-1),"each",[],function(ie){var O,$e,H=R,g=R,o=R,m=R,C=R;return ie==null&&(ie=R),y(ie["$empty?"]())?F["$<<"](W(["width"],{width:1})):y(H=oe("ColumnSpecRx").$match(ie))?(g=W([],{}),y(H["$[]"](2))&&($e=H["$[]"](2).$split("."),O=Ue($e),o=O[0]==null?R:O[0],m=O[1]==null?R:O[1],E(o["$nil_or_empty?"]())&&y(oe("TableCellHorzAlignments")["$key?"](o))&&g["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](o)),E(m["$nil_or_empty?"]())&&y(oe("TableCellVertAlignments")["$key?"](m))&&g["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](m))),y(C=H["$[]"](3))?g["$[]="]("width",Me(C,"~")?-1:C.$to_i()):g["$[]="]("width",1),y(H["$[]"](4))&&y(oe("TableCellStyles")["$key?"](H["$[]"](4)))&&g["$[]="]("style",oe("TableCellStyles")["$[]"](H["$[]"](4))),y(H["$[]"](1))?_e(1,"upto",[H["$[]"](1).$to_i()],function(){return F["$<<"](g.$merge())}):F["$<<"](g)):R}),F)}),G(qe,"$parse_cellspec",function(Q,F,q){var ie,O,$e=R,H=R,g=R,o=R,m=R,C=R;if(F==null&&(F="end"),q==null&&(q=R),ie=[R,""],$e=ie[0],H=ie[1],Me(F,"start"))if(y(Q["$include?"](q)))if(O=Q.$partition(q),ie=Ue(O),g=ie[0]==null?R:ie[0],ie[1]==null||ie[1],H=ie[2]==null?R:ie[2],y($e=oe("CellSpecStartRx").$match(g))){if(y($e["$[]"](0)["$empty?"]()))return[W([],{}),H]}else return[R,Q];else return[R,Q];else if(y($e=oe("CellSpecEndRx").$match(Q))){if(y($e["$[]"](0).$lstrip()["$empty?"]()))return[W([],{}),Q.$rstrip()];H=$e.$pre_match()}else return[W([],{}),Q];if(o=W([],{}),y($e["$[]"](1)))switch(O=$e["$[]"](1).$split("."),ie=Ue(O),m=ie[0]==null?R:ie[0],C=ie[1]==null?R:ie[1],m=y(m["$nil_or_empty?"]())?1:m.$to_i(),C=y(C["$nil_or_empty?"]())?1:C.$to_i(),$e["$[]"](2)){case"+":Me(m,1)||o["$[]="]("colspan",m),Me(C,1)||o["$[]="]("rowspan",C);break;case"*":Me(m,1)||o["$[]="]("repeatcol",m);break}return y($e["$[]"](3))&&(O=$e["$[]"](3).$split("."),ie=Ue(O),m=ie[0]==null?R:ie[0],C=ie[1]==null?R:ie[1],E(m["$nil_or_empty?"]())&&y(oe("TableCellHorzAlignments")["$key?"](m))&&o["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](m)),E(C["$nil_or_empty?"]())&&y(oe("TableCellVertAlignments")["$key?"](C))&&o["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](C))),y($e["$[]"](4))&&y(oe("TableCellStyles")["$key?"]($e["$[]"](4)))&&o["$[]="]("style",oe("TableCellStyles")["$[]"]($e["$[]"](4))),[o,H]},-2),G(qe,"$parse_style_attribute",function(Q,F){var q,ie=this,O=R,$e=R,H=R,g=R,o=R,m=R;return F==null&&(F=R),y(O=Q["$[]"](1))&&E(O["$include?"](" "))&&y(oe("Compliance").$shorthand_property_syntax())?($e=R,H="",g=W([],{}),_e(O,"each_char",[],function C(k){var b=C.$$s==null?this:C.$$s;switch(k==null&&(k=R),k){case".":return b.$yield_buffered_attribute(g,$e,H,F),H="",$e="role";case"#":return b.$yield_buffered_attribute(g,$e,H,F),H="",$e="id";case"%":return b.$yield_buffered_attribute(g,$e,H,F),H="",$e="option";default:return H=Ge(H,k)}},{$$s:ie}),y($e)?(ie.$yield_buffered_attribute(g,$e,H,F),y(o=g["$[]"]("style"))&&Q["$[]="]("style",o),y(g["$key?"]("id"))&&Q["$[]="]("id",g["$[]"]("id")),y(g["$key?"]("role"))&&Q["$[]="]("role",y((m=Q["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+m+" "+g["$[]"]("role").$join(" ")),y(g["$key?"]("option"))&&_e(g["$[]"]("option"),"each",[],function(k){var b;return k==null&&(k=R),b=[""+k+"-option",""],_e(Q,"[]=",b),b[b.length-1]}),o):(q=["style",O],_e(Q,"[]=",q),q[q.length-1])):(q=["style",O],_e(Q,"[]=",q),q[q.length-1])},-2),G(qe,"$yield_buffered_attribute",function(Q,F,q,ie){var O,$e=this,H=R;return y(F)?y(q["$empty?"]())?y(ie)?$e.$logger().$warn($e.$message_with_context("invalid empty "+F+" detected in style attribute",W(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("invalid empty "+F+" detected in style attribute"):Me(F,"id")?(y(Q["$key?"]("id"))&&(y(ie)?$e.$logger().$warn($e.$message_with_context("multiple ids detected in style attribute",W(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("multiple ids detected in style attribute")),Q["$[]="](F,q)):(y(H=Q["$[]"](F))?H:(O=[F,[]],_e(Q,"[]=",O),O[O.length-1]))["$<<"](q):y(q["$empty?"]())||Q["$[]="]("style",q),R}),G(qe,"$adjust_indentation!",function(Q,F,q){var ie=R,O=R,$e=R;return F==null&&(F=0),q==null&&(q=0),y(Q["$empty?"]())||(y(Pe(q,0))&&y(_e(Q,"any?",[],function(g){return g==null&&(g=R),g["$include?"](oe("TAB"))}))&&(ie=We(" ",q),_e(Q,"map!",[],function(g){var o=R,m=R,C=R,k=R,b=R;return g==null&&(g=R),y(g["$empty?"]())||y((o=g.$index(oe("TAB")))["$nil?"]())||Me(o,0)&&(m=0,function(){try{var L=Oe("break");return _e(g,"each_byte",[],function(de){return de==null&&(de=R),Me(de,9)||L.$throw(),m=Ge(m,1)})}catch(P){if(P===L)return P.$v;throw P}}(),g=""+We(ie,m)+g.$slice(m,g.$length()),!y(g["$include?"](oe("TAB"))))?g:(C=0,k=0,b="",_e(g,"each_char",[],function(P){var de=R,le=R;return P==null&&(P=R),Me(P,oe("TAB"))?Me((de=Ge(k,C))["$%"](q),0)?(C=Ge(C,st(q,1)),b=Ge(b,ie)):(Me(le=st(q,de["$%"](q)),1)||(C=Ge(C,st(le,1))),b=Ge(b,We(" ",le))):b=Ge(b,P),k=Ge(k,1)}),b)})),y(De(F,0)))||(O=R,function(){try{var H=Oe("break");return _e(Q,"each",[],function(o){var m=R;return o==null&&(o=R),y(o["$empty?"]())||(Me(m=st(o.$length(),o.$lstrip().$length()),0)&&(O=R,H.$throw()),y(O)&&y(De(O,m)))?R:O=m})}catch(g){if(g===H)return g.$v;throw g}}(),Me(F,0)?y(O)&&_e(Q,"map!",[],function(g){return g==null&&(g=R),y(g["$empty?"]())?g:g.$slice(O,g.$length())}):($e=We(" ",F),y(O)?_e(Q,"map!",[],function(g){return g==null&&(g=R),y(g["$empty?"]())?g:Ge($e,g.$slice(O,g.$length()))}):_e(Q,"map!",[],function(g){return g==null&&(g=R),y(g["$empty?"]())?g:Ge($e,g)}))),R},-2),G(qe,"$uniform?",function(Q,F,q){return Q.$count(F)["$=="](q)}),G(qe,"$sanitize_attribute_name",function(Q){return Q.$gsub(oe("InvalidAttributeNameCharsRx"),"").$downcase()})}(K[0],null,K)}(ft[0],ft)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.truthy,y=a.hash2,W=a.def,Ue=a.eqeq,G=a.alias,Me=a.rb_plus,E=a.to_ary,et=a.send,Re=a.not,Ge=a.neqeq,De=a.rb_gt,Pe=a.gvars,dt=[],Ye=a.nil,st=a.$$$;return a.add_stubs("include,attr_accessor,root?,posixify,expand_path,pwd,start_with?,==,match?,absolute_path?,+,length,descends_from?,slice,to_s,relative_path_from,new,include?,tr,partition_path,each,pop,<<,join_path,[],web_root?,unc?,index,split,delete,[]=,join,raise,!,fetch,warn,logger,empty?,nil_or_empty?,chomp,!=,>,size,extract_uri_prefix,end_with?,gsub,private,=~"),function(We,Oe){var ft=ae(We,"Asciidoctor"),R=[ft].concat(Oe);return function(tt,A,rt){var lt=re(tt,A,"PathResolver"),K=[lt].concat(rt),M=a.$r(K),He=lt.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=Ye,lt.$include(M("Logging")),V(K[0],"DOT","."),V(K[0],"DOT_DOT",".."),V(K[0],"DOT_SLASH","./"),V(K[0],"SLASH","/"),V(K[0],"BACKSLASH","\\"),V(K[0],"DOUBLE_SLASH","//"),V(K[0],"URI_CLASSLOADER","uri:classloader:"),V(K[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),lt.$attr_accessor("file_separator"),lt.$attr_accessor("working_dir"),W(lt,"$initialize",function(qe,ze){var oe=this,ye=Ye,Q=Ye;return qe==null&&(qe=Ye),ze==null&&(ze=Ye),oe.file_separator=_e(ye=_e(Q=qe)?Q:st(st("File"),"ALT_SEPARATOR"))?ye:st(st("File"),"SEPARATOR"),oe.working_dir=_e(ze)?_e(oe["$root?"](ze))?oe.$posixify(ze):st("File").$expand_path(ze):st("Dir").$pwd(),oe._partition_path_sys=y([],{}),oe._partition_path_web=y([],{})},-1),W(lt,"$absolute_path?",function(qe){var ze=this,oe=Ye,ye=Ye;return _e(oe=qe["$start_with?"](M("SLASH")))?oe:_e(ye=ze.file_separator["$=="](M("BACKSLASH")))?M("WindowsRootRx")["$match?"](qe):ye}),Ue(M("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?W(lt,"$root?",function(qe){var ze=this,oe=Ye;return _e(oe=ze["$absolute_path?"](qe))?oe:qe["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?W(lt,"$root?",function(qe){var ze=this,oe=Ye;return _e(oe=ze["$absolute_path?"](qe))?oe:qe["$start_with?"](M("URI_CLASSLOADER"))}):G(lt,"root?","absolute_path?"),W(lt,"$unc?",function(qe){return qe["$start_with?"](M("DOUBLE_SLASH"))}),W(lt,"$web_root?",function(qe){return qe["$start_with?"](M("SLASH"))}),W(lt,"$descends_from?",function(qe,ze){var oe=Ye;return Ue(ze,qe)?0:Ue(ze,M("SLASH"))?_e(oe=qe["$start_with?"](M("SLASH")))?1:oe:_e(oe=qe["$start_with?"](Me(ze,M("SLASH"))))?Me(ze.$length(),1):oe}),W(lt,"$relative_path",function(qe,ze){var oe=this,ye=Ye;if(_e(oe["$root?"](qe))){if(_e(ye=oe["$descends_from?"](qe,ze)))return qe.$slice(ye,qe.$length());try{return M("Pathname").$new(qe).$relative_path_from(M("Pathname").$new(ze)).$to_s()}catch(Q){if(a.rescue(Q,[M("StandardError")]))try{return qe}finally{a.pop_exception()}else throw Q}}else return qe}),W(lt,"$posixify",function(qe){var ze=this;return _e(qe)?Ue(ze.file_separator,M("BACKSLASH"))&&_e(qe["$include?"](M("BACKSLASH")))?qe.$tr(M("BACKSLASH"),M("SLASH")):qe:""}),G(lt,"posixfy","posixify"),W(lt,"$expand_path",function(qe){var ze,oe,ye=this,Q=Ye,F=Ye,q=Ye;return oe=ye.$partition_path(qe),ze=E(oe),Q=ze[0]==null?Ye:ze[0],F=ze[1]==null?Ye:ze[1],_e(qe["$include?"](M("DOT_DOT")))?(q=[],et(Q,"each",[],function(O){return O==null&&(O=Ye),Ue(O,M("DOT_DOT"))?q.$pop():q["$<<"](O)}),ye.$join_path(q,F)):ye.$join_path(Q,F)}),W(lt,"$partition_path",function(qe,ze){var oe,ye=this,Q=Ye,F=Ye,q=Ye,ie=Ye,O=Ye;return ze==null&&(ze=Ye),_e(Q=(F=_e(ze)?ye._partition_path_web:ye._partition_path_sys)["$[]"](qe))?Q:(q=ye.$posixify(qe),_e(ze)?_e(ye["$web_root?"](q))?ie=M("SLASH"):_e(q["$start_with?"](M("DOT_SLASH")))&&(ie=M("DOT_SLASH")):_e(ye["$root?"](q))?_e(ye["$unc?"](q))?ie=M("DOUBLE_SLASH"):_e(q["$start_with?"](M("SLASH")))?ie=M("SLASH"):_e(q["$start_with?"](M("URI_CLASSLOADER")))?ie=q.$slice(0,M("URI_CLASSLOADER").$length()):ie=q.$slice(0,Me(q.$index(M("SLASH")),1)):_e(q["$start_with?"](M("DOT_SLASH")))&&(ie=M("DOT_SLASH")),O=(_e(ie)?q.$slice(ie.$length(),q.$length()):q).$split(M("SLASH")),O.$delete(M("DOT")),oe=[qe,[O,ie]],et(F,"[]=",oe),oe[oe.length-1])},-2),W(lt,"$join_path",function(qe,ze){return ze==null&&(ze=Ye),_e(ze)?""+ze+qe.$join(M("SLASH")):qe.$join(M("SLASH"))},-2),W(lt,"$system_path",function(qe,ze,oe,ye){var Q,F,q=this,ie=Ye,O=Ye,$e=Ye,H=Ye,g=Ye,o=Ye,m=Ye,C=Ye,k=Ye,b=Ye,L=Ye;if(ze==null&&(ze=Ye),oe==null&&(oe=Ye),ye==null&&(ye=y([],{})),_e(oe)&&(_e(q["$root?"](oe))||q.$raise(st("SecurityError"),"Jail is not an absolute path: "+oe),oe=q.$posixify(oe)),_e(qe))if(_e(q["$root?"](qe))){if(ie=q.$expand_path(qe),_e(oe)&&Re(q["$descends_from?"](ie,oe))){if(_e(ye.$fetch("recover",!0)))return q.$logger().$warn(""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" is outside of jail; recovering automatically"),F=q.$partition_path(ie),Q=E(F),$e=Q[0]==null?Ye:Q[0],F=q.$partition_path(oe),Q=E(F),H=Q[0]==null?Ye:Q[0],g=Q[1]==null?Ye:Q[1],q.$join_path(Me(H,$e),g);q.$raise(st("SecurityError"),""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" "+qe+" is outside of jail: "+oe+" (disallowed in safe mode)")}return ie}else F=q.$partition_path(qe),Q=E(F),$e=Q[0]==null?Ye:Q[0];else $e=[];if(_e($e["$empty?"]())){if(_e(ze["$nil_or_empty?"]()))return _e(O=oe)?O:q.working_dir;if(_e(q["$root?"](ze)))if(_e(oe))ze=q.$posixify(ze);else return q.$expand_path(ze);else F=q.$partition_path(ze),Q=E(F),$e=Q[0]==null?Ye:Q[0],ze=_e(O=oe)?O:q.working_dir}else _e(ze["$nil_or_empty?"]())?ze=_e(O=oe)?O:q.working_dir:_e(q["$root?"](ze))?_e(oe)&&(ze=q.$posixify(ze)):ze=""+(_e(O=oe)?O:q.working_dir).$chomp("/")+"/"+ze;return _e(oe)&&_e(o=q["$descends_from?"](ze,oe)["$!"]())&&Ue(q.file_separator,M("BACKSLASH"))?(F=q.$partition_path(ze),Q=E(F),m=Q[0]==null?Ye:Q[0],C=Q[1]==null?Ye:Q[1],F=q.$partition_path(oe),Q=E(F),H=Q[0]==null?Ye:Q[0],g=Q[1]==null?Ye:Q[1],Ge(C,g)&&(_e(ye.$fetch("recover",!0))?(q.$logger().$warn("start path for "+(_e(O=ye["$[]"]("target_name"))?O:"path")+" is outside of jail root; recovering automatically"),m=H,o=!1):q.$raise(st("SecurityError"),"start path for "+(_e(O=ye["$[]"]("target_name"))?O:"path")+" "+ze+" refers to location outside jail root: "+oe+" (disallowed in safe mode)"))):(F=q.$partition_path(ze),Q=E(F),m=Q[0]==null?Ye:Q[0],g=Q[1]==null?Ye:Q[1]),_e((k=Me(m,$e))["$include?"](M("DOT_DOT")))&&(Q=[k,[]],b=Q[0],k=Q[1],_e(oe)?(_e(H)||(F=q.$partition_path(oe),Q=E(F),H=Q[0]==null?Ye:Q[0]),L=!1,et(b,"each",[],function P(de){var le=P.$$s==null?this:P.$$s;return de==null&&(de=Ye),Ue(de,M("DOT_DOT"))?_e(De(k.$size(),H.$size()))?k.$pop():_e(ye.$fetch("recover",!0))?_e(L)?Ye:(le.$logger().$warn(""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" has illegal reference to ancestor of jail; recovering automatically"),L=!0):le.$raise(st("SecurityError"),""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" "+qe+" refers to location outside jail: "+oe+" (disallowed in safe mode)"):k["$<<"](de)},{$$s:q})):et(b,"each",[],function(de){return de==null&&(de=Ye),Ue(de,M("DOT_DOT"))?k.$pop():k["$<<"](de)})),_e(o)?(ie=q.$join_path(k,g),_e(q["$descends_from?"](ie,oe))?ie:_e(ye.$fetch("recover",!0))?(q.$logger().$warn(""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" is outside of jail; recovering automatically"),_e(H)||(F=q.$partition_path(oe),Q=E(F),H=Q[0]==null?Ye:Q[0]),q.$join_path(Me(H,$e),g)):q.$raise(st("SecurityError"),""+(_e(O=ye["$[]"]("target_name"))?O:"path")+" "+qe+" is outside of jail: "+oe+" (disallowed in safe mode)")):q.$join_path(k,g)},-2),W(lt,"$web_path",function(qe,ze){var oe,ye,Q=this,F=Ye,q=Ye,ie=Ye,O=Ye,$e=Ye;return ze==null&&(ze=Ye),qe=Q.$posixify(qe),ze=Q.$posixify(ze),_e(ze["$nil_or_empty?"]())||_e(Q["$web_root?"](qe))||(ye=Q.$extract_uri_prefix(""+ze+(_e(ze["$end_with?"](M("SLASH")))?"":M("SLASH"))+qe),oe=E(ye),qe=oe[0]==null?Ye:oe[0],F=oe[1]==null?Ye:oe[1]),ye=Q.$partition_path(qe,!0),oe=E(ye),q=oe[0]==null?Ye:oe[0],ie=oe[1]==null?Ye:oe[1],O=[],et(q,"each",[],function(g){return g==null&&(g=Ye),Ue(g,M("DOT_DOT"))?_e(O["$empty?"]())?_e(ie)&&Ge(ie,M("DOT_SLASH"))?Ye:O["$<<"](g):Ue(O["$[]"](-1),M("DOT_DOT"))?O["$<<"](g):O.$pop():O["$<<"](g)}),_e(($e=Q.$join_path(O,ie))["$include?"](" "))&&($e=$e.$gsub(" ","%20")),_e(F)?""+F+$e:$e},-2),lt.$private(),W(lt,"$extract_uri_prefix",function(qe){var ze;return _e(qe["$include?"](":"))&&_e(M("UriSniffRx")["$=~"](qe))?[qe.$slice(((ze=Pe["~"])===Ye?Ye:ze["$[]"](0)).$length(),qe.$length()),(ze=Pe["~"])===Ye?Ye:ze["$[]"](0)]:qe})}(R[0],null,R)}(dt[0],dt)},Opal.modules["asciidoctor/reader"]=function(a){var ae=a.module,re=a.klass,V=a.def,_e=a.rb_plus,y=a.alias,W=a.hash2,Ue=a.not,G=a.eqeqeq,Me=a.to_ary,E=a.truthy,et=a.rb_gt,Re=a.send,Ge=a.rb_minus,De=a.thrower,Pe=a.eqeq,dt=a.rb_times,Ye=a.neqeq,st=a.to_a,We=a.assign_ivar_val,Oe=a.send2,ft=a.find_super,R=a.rb_ge,tt=a.gvars,A=a.rb_lt,rt=a.hash,lt=[],K=a.nil,M=a.$$$;return a.add_stubs("include,attr_reader,+,line_info,attr_accessor,!,===,split,file,dir,dirname,path,basename,lineno,reverse,prepare_lines,empty?,nil_or_empty?,peek_line,[],>,slice,length,process_line,times,shift,read_line,<<,-,unshift_all,has_more_lines?,read_lines,join,unshift,unshift_line,unshift_lines,replace_next_line,start_with?,==,*,read_lines_until,size,clear,cursor,[]=,fetch,!=,cursor_at_mark,warn,logger,message_with_context,pop,push,respond_to?,reverse_each,new,tap,each,instance_variables,instance_variable_get,drop,instance_variable_set,class,object_id,inspect,private,prepare_source_array,prepare_source_string,chomp,valid_encoding?,to_s,raise,to_i,attributes,catalog,pop_include,parse,path=,dup,end_with?,keys,rindex,rootname,key?,attr,reverse!,>=,exceeds_max_depth?,nil?,include_processors?,extensions,extensions?,include_processors,map,skip_front_matter!,adjust_indentation!,include?,=~,preprocess_conditional_directive,preprocess_include_directive,downcase,error,none?,any?,all?,strip,send,resolve_expr_val,rstrip,sub_attributes,attribute_missing,info,parse_attributes,find,handles?,instance,process_method,safe,resolve_include_path,method,split_delimited_value,partition,<,to_a,uniq,sort,call,each_line,infinite?,push_include,delete,first,values,value?,create_include_cursor,delete_at,keep_if,read,uriish?,attr?,require_library,normalize_system_path,file?,relative_path,path_resolver,base_dir,to_f"),function(He,we){var qe=ae(He,"Asciidoctor"),ze=[qe].concat(we),oe=a.$r(ze);return function(ye,Q,F){var q=re(ye,Q,"Reader"),ie=[q].concat(F),O=a.$r(ie),$e=q.$$prototype;return $e.file=$e.lines=$e.look_ahead=$e.unescape_next_line=$e.lineno=$e.process_lines=$e.dir=$e.path=$e.mark=$e.source_lines=$e.saved=K,q.$include(O("Logging")),function(H,g){var o=re(H,g,"Cursor"),m=o.$$prototype;return m.lineno=m.path=K,o.$attr_reader("file","dir","path","lineno"),V(o,"$initialize",function(k,b,L,P){var de,le=this;return b==null&&(b=K),L==null&&(L=K),P==null&&(P=1),de=[k,b,L,P],le.file=de[0],le.dir=de[1],le.path=de[2],le.lineno=de[3],de},-2),V(o,"$advance",function(k){var b=this;return b.lineno=_e(b.lineno,k)}),V(o,"$line_info",function(){var k=this;return""+k.path+": line "+k.lineno}),y(o,"to_s","line_info")}(ie[0],null),q.$attr_reader("file"),q.$attr_reader("dir"),q.$attr_reader("path"),q.$attr_reader("lineno"),q.$attr_reader("source_lines"),q.$attr_accessor("process_lines"),q.$attr_accessor("unterminated"),V(q,"$initialize",function(g,o,m){var C,k,b=this,L=K;return g==null&&(g=K),o==null&&(o=K),m==null&&(m=W([],{})),Ue(o)?(b.file=K,b.dir=".",b.path="<stdin>",b.lineno=1):G(M("String"),o)?(b.file=o,k=M("File").$split(b.file),C=Me(k),b.dir=C[0]==null?K:C[0],b.path=C[1]==null?K:C[1],b.lineno=1):(E(b.file=o.$file())?(b.dir=E(L=o.$dir())?L:M("File").$dirname(b.file),b.path=E(L=o.$path())?L:M("File").$basename(b.file)):(b.dir=E(L=o.$dir())?L:".",b.path=E(L=o.$path())?L:"<stdin>"),b.lineno=E(L=o.$lineno())?L:1),b.lines=(b.source_lines=b.$prepare_lines(g,m)).$reverse(),b.mark=K,b.look_ahead=0,b.process_lines=!0,b.unescape_next_line=!1,b.unterminated=K,b.saved=K},-1),V(q,"$has_more_lines?",function(){var g=this;return E(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),V(q,"$empty?",function(){var g=this;return E(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),y(q,"eof?","empty?"),V(q,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),V(q,"$peek_line",function(g){var o=this,m=K,C=K;for(g==null&&(g=!1);E(!0);){if(m=o.lines["$[]"](-1),E(g)||E(et(o.look_ahead,0)))return E(o.unescape_next_line)?m.$slice(1,m.$length()):m;if(E(m)){if(E(C=o.$process_line(m)))return C}else return o.look_ahead=0,K}},-1),V(q,"$peek_lines",function(g,o){var m=this,C=K,k=K,b=K;return g==null&&(g=K),o==null&&(o=!1),C=m.look_ahead,k=[],function(){try{var L=De("break");return Re(E(b=g)?b:O("MAX_INT"),"times",[],function P(){var de=P.$$s==null?this:P.$$s,le=K;if(de.lineno==null&&(de.lineno=K),E(le=E(o)?de.$shift():de.$read_line()))return k["$<<"](le);E(o)&&(de.lineno=Ge(de.lineno,1)),L.$throw()},{$$s:m})}catch(P){if(P===L)return P.$v;throw P}}(),E(k["$empty?"]())||(m.$unshift_all(k),E(o)&&(m.look_ahead=C)),k},-1),V(q,"$read_line",function(){var g=this;return E(et(g.look_ahead,0))||E(g["$has_more_lines?"]())?g.$shift():K}),V(q,"$read_lines",function(){var g=this,o=K;for(o=[];E(g["$has_more_lines?"]());)o["$<<"](g.$shift());return o}),y(q,"readlines","read_lines"),V(q,"$read",function(){var g=this;return g.$read_lines().$join(O("LF"))}),V(q,"$advance",function(){var g=this;return!!E(g.$shift())}),V(q,"$unshift_line",function(g){var o=this;return o.$unshift(g),K}),y(q,"restore_line","unshift_line"),V(q,"$unshift_lines",function(g){var o=this;return o.$unshift_all(g)}),y(q,"restore_lines","unshift_lines"),V(q,"$replace_next_line",function(g){var o=this;return o.$shift(),o.$unshift(g),!0}),y(q,"replace_line","replace_next_line"),V(q,"$skip_blank_lines",function(){var g=this,o=K,m=K;if(E(g["$empty?"]()))return K;for(o=0;E(m=g.$peek_line());)if(E(m["$empty?"]()))g.$shift(),o=_e(o,1);else return o}),V(q,"$skip_comment_lines",function(){var g=this,o=K,m=K,C=K;if(E(g["$empty?"]()))return K;for(;E(E(o=m=g.$peek_line())?m["$empty?"]()["$!"]():o)&&E(m["$start_with?"]("//"));)if(E(m["$start_with?"]("///")))if(E(et(C=m.$length(),3))&&Pe(m,dt("/",C)))g.$read_lines_until(W(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:m,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return K}),V(q,"$skip_line_comments",function(){var g=this,o=K,m=K,C=K;if(E(g["$empty?"]()))return[];for(o=[];E(E(m=C=g.$peek_line())?C["$empty?"]()["$!"]():m)&&E(C["$start_with?"]("//"));)o["$<<"](g.$shift());return o}),V(q,"$terminate",function(){var g=this;return g.lineno=_e(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,K}),V(q,"$read_lines_until",function H(g){var o,m=H.$$p||K,C=this,k=K,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,gt=K,yt=K,xt=K,vt=K;for(H.$$p=null,g==null&&(g=W([],{})),k=[],E(C.process_lines)&&E(g["$[]"]("skip_processing"))&&(C.process_lines=!1,b=!0),E(L=g["$[]"]("terminator"))?(P=E(de=g["$[]"]("cursor"))?de:C.$cursor(),le=!1,ke=!1):(le=g["$[]"]("break_on_blank_lines"),ke=g["$[]"]("break_on_list_continuation")),Be=g["$[]"]("skip_line_comments"),Xe=it=K,E(g["$[]"]("skip_first_line"))&&C.$shift();E(ht=C.$read_line());){if(E(E(L)?ht["$=="](L):E(de=E(at=E(gt=le)?ht["$empty?"]():gt)?at:E(gt=E(yt=E(xt=ke)?Xe:xt)?ht["$=="](O("LIST_CONTINUATION")):yt)?(o=["preserve_last_line",!0],Re(g,"[]=",o),o[o.length-1]):gt)?de:E(at=m!==K)?a.yield1(m,ht):at)){E(g["$[]"]("read_last_line"))&&k["$<<"](ht),E(g["$[]"]("preserve_last_line"))&&(C.$unshift(ht),it=!0);break}E(Be)&&E(ht["$start_with?"]("//"))&&Ue(ht["$start_with?"]("///"))||(k["$<<"](ht),Xe=!0)}return E(b)&&(C.process_lines=!0,E(it)&&Ue(L)&&(C.look_ahead=Ge(C.look_ahead,1))),E(L)&&Ye(L,ht)&&E(vt=g.$fetch("context",L))&&(Pe(P,"at_mark")&&(P=C.$cursor_at_mark()),C.$logger().$warn(C.$message_with_context("unterminated "+vt+" block",W(["source_location"],{source_location:P}))),C.unterminated=!0),k},-1),V(q,"$shift",function(){var g=this;return g.lineno=_e(g.lineno,1),Pe(g.look_ahead,0)||(g.look_ahead=Ge(g.look_ahead,1)),g.lines.$pop()}),V(q,"$unshift",function(g){var o=this;return o.lineno=Ge(o.lineno,1),o.look_ahead=_e(o.look_ahead,1),o.lines.$push(g),K}),Pe(M("RUBY_ENGINE"),"jruby")?V(q,"$unshift_all",function(g){var o=this;return o.lineno=Ge(o.lineno,g.$size()),o.look_ahead=_e(o.look_ahead,g.$size()),E(g["$respond_to?"]("reverse"))?Re(o.lines,"push",st(g.$reverse())):Re(g,"reverse_each",[],function m(C){var k=m.$$s==null?this:m.$$s;return k.lines==null&&(k.lines=K),C==null&&(C=K),k.lines.$push(C)},{$$s:o}),K}):V(q,"$unshift_all",function(g){var o=this;return o.lineno=Ge(o.lineno,g.$size()),o.look_ahead=_e(o.look_ahead,g.$size()),Re(o.lines,"push",st(g.$reverse())),K}),V(q,"$cursor",function(){var g=this;return O("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),V(q,"$cursor_at_line",function(g){var o=this;return O("Cursor").$new(o.file,o.dir,o.path,g)}),V(q,"$cursor_at_mark",function(){var g=this;return E(g.mark)?Re(O("Cursor"),"new",st(g.mark)):g.$cursor()}),V(q,"$cursor_before_mark",function(){var g,o,m=this,C=K,k=K,b=K,L=K;return E(m.mark)?(o=m.mark,g=Me(o),C=g[0]==null?K:g[0],k=g[1]==null?K:g[1],b=g[2]==null?K:g[2],L=g[3]==null?K:g[3],O("Cursor").$new(C,k,b,Ge(L,1))):O("Cursor").$new(m.file,m.dir,m.path,Ge(m.lineno,1))}),V(q,"$cursor_at_prev_line",function(){var g=this;return O("Cursor").$new(g.file,g.dir,g.path,Ge(g.lineno,1))}),V(q,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),V(q,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),V(q,"$lines",function(){var g=this;return g.lines.$reverse()}),V(q,"$string",function(){var g=this;return g.lines.$reverse().$join(O("LF"))}),V(q,"$source",function(){var g=this;return g.source_lines.$join(O("LF"))}),V(q,"$save",function(){var g=this;return g.saved=Re(W([],{}),"tap",[],function o(m){var C=o.$$s==null?this:o.$$s;return m==null&&(m=K),Re(C.$instance_variables(),"each",[],function k(b){var L,P=k.$$s==null?this:k.$$s,de=K;return b==null&&(b=K),Pe(b,"@saved")||Pe(b,"@source_lines")?K:(L=[b,G(M("Array"),de=P.$instance_variable_get(b))?de.$drop(0):de],Re(m,"[]=",L),L[L.length-1])},{$$s:C})},{$$s:g}),K}),V(q,"$restore_save",function(){var g=this;return E(g.saved)?(Re(g.saved,"each",[],function o(m,C){var k=o.$$s==null?this:o.$$s;return m==null&&(m=K),C==null&&(C=K),k.$instance_variable_set(m,C)},{$$s:g}),g.saved=K):K}),V(q,"$discard_save",We("saved",K)),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),q.$private(),V(q,"$prepare_lines",function(g,o){var m=this,C=K;o==null&&(o=W([],{}));try{return E(C=o["$[]"]("normalize"))?G(M("Array"),g)?O("Helpers").$prepare_source_array(g,C["$!="]("chomp")):O("Helpers").$prepare_source_string(g,C["$!="]("chomp")):G(M("Array"),g)?g.$drop(0):E(g)?g.$chomp().$split(O("LF"),-1):[]}catch(k){if(a.rescue(k,[O("StandardError")]))try{return E((G(M("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?m.$raise():m.$raise(M("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw k}},-2),V(q,"$process_line",function(g){var o=this;return E(o.process_lines)&&(o.look_ahead=_e(o.look_ahead,1)),g})}(ze[0],null,ze),function(ye,Q,F){var q=re(ye,Q,"PreprocessorReader"),ie=[q].concat(F),O=a.$r(ie),$e=q.$$prototype;return $e.include_stack=$e.lines=$e.file=$e.dir=$e.path=$e.lineno=$e.maxdepth=$e.process_lines=$e.includes=$e.document=$e.unescape_next_line=$e.include_processor_extensions=$e.look_ahead=$e.skipping=$e.conditional_stack=K,q.$attr_reader("include_stack"),V(q,"$initialize",function H(g,o,m,C){H.$$p;var k=this,b=K,L=K;return H.$$p=null,o==null&&(o=K),m==null&&(m=K),C==null&&(C=W([],{})),k.document=g,Oe(k,ft(k,"initialize",H,!1,!0),"initialize",[o,m,C],null),E(et(b=(E(L=g.$attributes()["$[]"]("max-include-depth"))?L:64).$to_i(),0))?k.maxdepth=W(["abs","curr","rel"],{abs:b,curr:b,rel:b}):k.maxdepth=K,k.include_stack=[],k.includes=g.$catalog()["$[]"]("includes"),k.skipping=!1,k.conditional_stack=[],k.include_processor_extensions=K},-2),V(q,"$has_more_lines?",function(){var g=this;return!!E(g.$peek_line())}),V(q,"$empty?",function(){var g=this;return!E(g.$peek_line())}),y(q,"eof?","empty?"),V(q,"$peek_line",function H(g){var o=H.$$p||K,m=this,C=K;return H.$$p=null,g==null&&(g=!1),E(C=Oe(m,ft(m,"peek_line",H,!1,!0),"peek_line",[g],o))?C:E(m.include_stack["$empty?"]())?K:(m.$pop_include(),m.$peek_line(g))},-1),V(q,"$push_include",function(g,o,m,C,k){var b=this,L=K,P=K,de=K,le=K,ke=K,Be=K;return o==null&&(o=K),m==null&&(m=K),C==null&&(C=1),k==null&&(k=W([],{})),b.include_stack["$<<"]([b.lines,b.file,b.dir,b.path,b.lineno,b.maxdepth,b.process_lines]),E(b.file=o)?(G(M("String"),o)?b.dir=M("File").$dirname(o):E(O("RUBY_ENGINE_OPAL"))?b.dir=M("URI").$parse(M("File").$dirname(o=o.$to_s())):((b.dir=o.$dup())["$path="](Pe(L=M("File").$dirname(o.$path()),"/")?"":L),o=o.$to_s()),b.path=m=E(P=m)?P:M("File").$basename(o),E(b.process_lines=Re(o,"end_with?",st(O("ASCIIDOC_EXTENSIONS").$keys())))&&(E(P=b.includes["$[]"](m.$slice(0,m.$rindex("."))))||b.includes["$[]="](m.$slice(0,m.$rindex(".")),E(k["$[]"]("partial-option"))?K:!0))):(b.dir=".",b.process_lines=!0,E(b.path=m)?E(P=b.includes["$[]"](O("Helpers").$rootname(m)))||b.includes["$[]="](O("Helpers").$rootname(m),E(k["$[]"]("partial-option"))?K:!0):b.path="<stdin>"),b.lineno=C,E(b.maxdepth)&&E(k["$key?"]("depth"))&&(E(et(de=k["$[]"]("depth").$to_i(),0))?(E(et(le=_e(b.include_stack.$size(),de),ke=b.maxdepth["$[]"]("abs")))&&(le=de=ke),b.maxdepth=W(["abs","curr","rel"],{abs:ke,curr:le,rel:de})):b.maxdepth=W(["abs","curr","rel"],{abs:b.maxdepth["$[]"]("abs"),curr:b.include_stack.$size(),rel:0})),E((b.lines=b.$prepare_lines(g,W(["normalize","condense","indent"],{normalize:E(P=b.process_lines)?P:"chomp",condense:!1,indent:k["$[]"]("indent")})))["$empty?"]())?b.$pop_include():(E(k["$key?"]("leveloffset"))?(b.lines=_e(_e([E(Be=b.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],b.lines.$reverse()),["",":leveloffset: "+k["$[]"]("leveloffset")]),b.lineno=Ge(b.lineno,2)):b.lines["$reverse!"](),b.look_ahead=0),b},-2),V(q,"$include_depth",function(){var g=this;return g.include_stack.$size()}),V(q,"$exceeds_max_depth?",function(){var g=this,o=K,m=K;return E(o=E(m=g.maxdepth)?R(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):m)?g.maxdepth["$[]"]("rel"):o}),y(q,"exceeded_max_depth?","exceeds_max_depth?"),V(q,"$shift",function H(){var g=H.$$p||K,o=this,m=K;return H.$$p=null,E(o.unescape_next_line)?(o.unescape_next_line=!1,(m=Oe(o,ft(o,"shift",H,!1,!0),"shift",[],g)).$slice(1,m.$length())):Oe(o,ft(o,"shift",H,!1,!0),"shift",[],g)}),V(q,"$include_processors?",function(){var g=this;return E(g.include_processor_extensions["$nil?"]())?E(g.document["$extensions?"]())&&E(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),V(q,"$create_include_cursor",function(g,o,m){var C=K;return G(M("String"),g)?C=M("File").$dirname(g):E(O("RUBY_ENGINE_OPAL"))?C=M("File").$dirname(g=g.$to_s()):(C=Pe(C=M("File").$dirname(g.$path()),"")?"/":C,g=g.$to_s()),O("Cursor").$new(g,C,o,m)}),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+", include depth: "+g.include_stack.$size()+", include stack: ["+Re(g.include_stack,"map",[],function(m){return m==null&&(m=K),m.$to_s()}).$join(", ")+"]}>"}),q.$private(),V(q,"$prepare_lines",function H(g,o){var m=H.$$p||K,C=this,k=K,b=K,L=K,P=K;if(H.$$p=null,o==null&&(o=W([],{})),k=Oe(C,ft(C,"prepare_lines",H,!1,!0),"prepare_lines",[g,o],m),E(C.document)&&E(C.document.$attributes()["$[]"]("skip-front-matter"))&&E(b=C["$skip_front_matter!"](k))&&C.document.$attributes()["$[]="]("front-matter",b.$join(O("LF"))),E(o.$fetch("condense",!0)))for(;E(E(L=P=k["$[]"](-1))?P["$empty?"]():L);)k.$pop();return E(o["$[]"]("indent"))&&O("Parser")["$adjust_indentation!"](k,o["$[]"]("indent").$to_i(),C.document.$attr("tabsize").$to_i()),k},-2),V(q,"$process_line",function(g){var o,m=this;return E(m.process_lines)?E(g["$empty?"]())?(m.look_ahead=_e(m.look_ahead,1),g):E(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&E(g["$include?"]("::"))?E(g["$include?"]("if"))&&E(O("ConditionalDirectiveRx")["$=~"](g))?Pe((o=tt["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):E(m.$preprocess_conditional_directive((o=tt["~"])===K?K:o["$[]"](2),(o=tt["~"])===K?K:o["$[]"](3),(o=tt["~"])===K?K:o["$[]"](4),(o=tt["~"])===K?K:o["$[]"](5)))?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):E(m.skipping)?(m.$shift(),K):E(g["$start_with?"]("inc","\\inc"))&&E(O("IncludeDirectiveRx")["$=~"](g))?Pe((o=tt["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):E(m.$preprocess_include_directive((o=tt["~"])===K?K:o["$[]"](2),(o=tt["~"])===K?K:o["$[]"](3)))?K:(m.look_ahead=_e(m.look_ahead,1),g):(m.look_ahead=_e(m.look_ahead,1),g):E(m.skipping)?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):g}),V(q,"$preprocess_conditional_directive",function(g,o,m,C){var k,b=this,L=K,P=K,de=K,le=K,ke=K,Be=K;if(E(L=o["$empty?"]())||(o=o.$downcase()),Pe(g,"endif"))return E(C)?b.$logger().$error(b.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+o+"["+C+"]",W(["source_location"],{source_location:b.$cursor()}))):E(b.conditional_stack["$empty?"]())?b.$logger().$error(b.$message_with_context("unmatched preprocessor directive: endif::"+o+"[]",W(["source_location"],{source_location:b.$cursor()}))):E(L)||Pe(o,(P=b.conditional_stack["$[]"](-1))["$[]"]("target"))?(b.conditional_stack.$pop(),b.skipping=E(b.conditional_stack["$empty?"]())?!1:b.conditional_stack["$[]"](-1)["$[]"]("skipping")):b.$logger().$error(b.$message_with_context("mismatched preprocessor directive: endif::"+o+"[], expected endif::"+P["$[]"]("target")+"[]",W(["source_location"],{source_location:b.$cursor()}))),!0;if(E(b.skipping))de=!1;else switch(g){case"ifdef":if(E(L))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+C+"]",W(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":de=Re(o.$split(",",-1),"none?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":de=Re(o.$split("+",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)["$!"]()},{$$s:b});break;default:de=b.document.$attributes()["$key?"](o)["$!"]()}break;case"ifndef":if(E(L))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+C+"]",W(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":de=Re(o.$split(",",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":de=Re(o.$split("+",-1),"all?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;default:de=b.document.$attributes()["$key?"](o)}break;case"ifeval":if(E(L))if(E(C)&&E(O("EvalExpressionRx")["$=~"](C.$strip())))le=(k=tt["~"])===K?K:k["$[]"](1),ke=(k=tt["~"])===K?K:k["$[]"](2),Be=(k=tt["~"])===K?K:k["$[]"](3),de=function(){try{return!E(b.$resolve_expr_val(le).$send(ke,b.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[O("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - "+(E(C)?"invalid expression":"missing expression")+": ifeval::["+C+"]",W(["source_location"],{source_location:b.$cursor()}))),!0;else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+o+"["+C+"]",W(["source_location"],{source_location:b.$cursor()}))),!0;break}return Pe(g,"ifeval")||Ue(C)?(E(de)&&(b.skipping=!0),b.conditional_stack["$<<"](W(["target","skip","skipping"],{target:o,skip:de,skipping:b.skipping}))):E(b.skipping)||E(de)||(b.$replace_next_line(C.$rstrip()),b.$unshift(""),E(C["$start_with?"]("include::"))&&(b.look_ahead=Ge(b.look_ahead,1))),!0}),V(q,"$preprocess_include_directive",function(g,o){var m,C,k=this,b=K,L=K,P=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,gt=K,yt=K,xt=K,vt=K,Rt=K,Tt=K,Yt=K,Bt=K,er=K,Kt=K,Pt=K,Wt=K,Xt=K,nr=K,Wn=K,tn=K;if(b=k.document,E((L=g)["$include?"](O("ATTR_REF_HEAD")))&&E((L=b.$sub_attributes(g,W(["attribute_missing"],{attribute_missing:Pe(P=E(de=b.$attributes()["$[]"]("attribute-missing"))?de:O("Compliance").$attribute_missing(),"warn")?"drop-line":P})))["$empty?"]()))return Pe(P,"drop-line")&&E(b.$sub_attributes(_e(g," "),W(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(Re(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("include dropped due to missing attribute: include::"+g+"["+o+"]",W(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):E(b.$parse_attributes(o,[],W(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(Re(k.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(P,"warn")&&E(b.$sub_attributes(_e(g," "),W(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",W(["source_location"],{source_location:Ut.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$warn(k.$message_with_context("include dropped "+(Pe(P,"warn")&&E(b.$sub_attributes(_e(g," "),W(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",W(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+o+"]"));if(E(k["$include_processors?"]())&&E(le=Re(k.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=K),Ut.$instance()["$handles?"](L)})))return k.$shift(),le.$process_method()["$[]"](b,k,L,b.$parse_attributes(o,[],W(["sub_input"],{sub_input:!0}))),!0;if(E(R(b.$safe(),M(O("SafeMode"),"SECURE"))))return k.$replace_next_line("link:"+L+"[role=include]");if(E(k.maxdepth)){if(E(R(k.include_stack.$size(),k.maxdepth["$[]"]("curr"))))return k.$logger().$error(k.$message_with_context("maximum include depth of "+k.maxdepth["$[]"]("rel")+" exceeded",W(["source_location"],{source_location:k.$cursor()}))),K;switch(ke=b.$parse_attributes(o,[],W(["sub_input"],{sub_input:!0})),C=k.$resolve_include_path(L,o,ke),m=Me(C),Be=m[0]==null?K:m[0],Xe=m[1]==null?K:m[1],it=m[2]==null?K:m[2],Xe){case"file":ht=M("File").$method("open"),at=O("FILE_READ_MODE");break;case"uri":ht=M("OpenURI").$method("open_uri"),at=O("URI_READ_MODE");break;default:return Be}if(E(O("RUBY_ENGINE_OPAL"))||E(gt=ke["$[]"]("encoding"))&&E(function(){try{return M("Encoding").$find(gt)}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return K}finally{a.pop_exception()}else throw Jt}}())&&((yt=at.$split(":"))["$[]="](1,gt),at=yt.$join(":")),xt=vt=K,E(o)&&(E(ke["$key?"]("lines"))?(xt=[],Re(k.$split_delimited_value(ke["$[]"]("lines")),"each",[],function(Ut){var Zt,Cr,Ht=K,kr=K;return Ut==null&&(Ut=K),E(Ut["$include?"](".."))?(Cr=Ut.$partition(".."),Zt=Me(Cr),Ht=Zt[0]==null?K:Zt[0],Zt[1]==null||Zt[1],kr=Zt[2]==null?K:Zt[2],xt=_e(xt,E(kr["$empty?"]())||E(A(kr=kr.$to_i(),0))?[Ht.$to_i(),M(M("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),kr,!1).$to_a())):xt["$<<"](Ut.$to_i())}),xt=E(xt["$empty?"]())?K:xt.$sort().$uniq()):E(ke["$key?"]("tag"))?E((Rt=ke["$[]"]("tag"))["$empty?"]())||Pe(Rt,"!")||(vt=E(Rt["$start_with?"]("!"))?rt(Rt.$slice(1,Rt.$length()),!1):rt(Rt,!0)):E(ke["$key?"]("tags"))&&(vt=W([],{}),Re(k.$split_delimited_value(ke["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=K),E(Ut["$empty?"]())||Pe(Ut,"!")?K:E(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],Re(vt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],Re(vt,"[]=",Zt),Zt[Zt.length-1])}),E(vt["$empty?"]())&&(vt=K))),E(xt)){m=[[],K,0],Tt=m[0],Yt=m[1],Bt=m[2];try{Re(ht,"call",[Be,at],function(Ut){var Zt=K;return Ut==null&&(Ut=K),Zt=K,function(){try{var Cr=De("break");return Re(Ut,"each_line",[],function(kr){var hn=K;if(kr==null&&(kr=K),Bt=_e(Bt,1),E(Zt)||G(M("Float"),hn=xt["$[]"](0))&&E(Zt=hn["$infinite?"]()))return Yt=E(de=Yt)?de:Bt,Tt["$<<"](kr);if(Pe(hn,Bt)&&(Yt=E(de=Yt)?de:Bt,Tt["$<<"](kr),xt.$shift()),E(xt["$empty?"]()))Cr.$throw();else return K})}catch(Ht){if(Ht===Cr)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,W(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}k.$shift(),E(Yt)&&(ke["$[]="]("partial-option",""),k.$push_include(Tt,Be,it,Yt,ke))}else if(E(vt)){m=[[],K,0,[],M("Set").$new(),K],Tt=m[0],Yt=m[1],Bt=m[2],er=m[3],Kt=m[4],Pt=m[5],E(vt["$key?"]("**"))?(Wt=Xt=vt.$delete("**"),E(vt["$key?"]("*"))?nr=vt.$delete("*"):Ue(Wt)&&Pe(vt.$values().$first(),!1)&&(nr=!0)):E(vt["$key?"]("*"))?Pe(vt.$keys().$first(),"*")?Wt=Xt=(nr=vt.$delete("*"))["$!"]():(Wt=Xt=!1,nr=vt.$delete("*")):Wt=Xt=vt["$value?"](!0)["$!"]();try{Re(ht,"call",[Be,at],function Jt(Ut){var Zt,Cr=Jt.$$s==null?this:Jt.$$s,Ht=K,kr=K;return Ut==null&&(Ut=K),Zt=["::","[]"],Ht=Zt[0],kr=Zt[1],Re(Ut,"each_line",[],function hn(Tr){var Sr,wn,Fr=hn.$$s==null?this:hn.$$s,Kr=K,Hs=K,Vs=K;return Tr==null&&(Tr=K),Bt=_e(Bt,1),E(Tr["$include?"](Ht))&&E(Tr["$include?"](kr))&&E(O("TagDirectiveRx")["$=~"](Tr))?(Kr=(Sr=tt["~"])===K?K:Sr["$[]"](2),E((Sr=tt["~"])===K?K:Sr["$[]"](1))?Pe(Kr,Pt)?(er.$pop(),wn=E(er["$empty?"]())?[K,Xt]:er["$[]"](-1),Sr=Me(wn),Pt=Sr[0]==null?K:Sr[0],Wt=Sr[1]==null?K:Sr[1],wn):E(vt["$key?"](Kr))?(Hs=Fr.$create_include_cursor(Be,L,Bt),E(Vs=Re(er,"rindex",[],function(Ys){return Ys==null&&(Ys=K),Ys["$=="](Kr)},{$$has_trailing_comma_in_args:!0}))?(Pe(Vs,0)?er.$shift():er.$delete_at(Vs),Fr.$logger().$warn(Fr.$message_with_context("mismatched end tag (expected '"+Pt+"' but found '"+Kr+"') at line "+Bt+" of include "+Xe+": "+Be,W(["source_location","include_location"],{source_location:Fr.$cursor(),include_location:Hs})))):Fr.$logger().$warn(Fr.$message_with_context("unexpected end tag '"+Kr+"' at line "+Bt+" of include "+Xe+": "+Be,W(["source_location","include_location"],{source_location:Fr.$cursor(),include_location:Hs})))):K:E(vt["$key?"](Kr))?(E(Wt=vt["$[]"](Kr))&&Kt["$<<"](Kr),er["$<<"]([Pt=Kr,Wt,Bt])):Ue(nr["$nil?"]())?(Wt=E(Pt)&&Ue(Wt)?!1:nr,er["$<<"]([Pt=Kr,Wt,Bt])):K):E(Wt)?(Yt=E(de=Yt)?de:Bt,Tt["$<<"](Tr)):K},{$$s:Cr})},{$$s:k})}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,W(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}E(er["$empty?"]())||Re(er,"each",[],function Jt(Ut,Zt,Cr){var Ht=Jt.$$s==null?this:Jt.$$s;return Ut==null&&(Ut=K),Cr==null&&(Cr=K),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Cr+" of include "+Xe+": "+Be,W(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,L,Cr)})))},{$$s:k}),E((Wn=Ge(Re(vt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=K),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||k.$logger().$warn(k.$message_with_context("tag"+(E(et(Wn.$size(),1))?"s":"")+" '"+Wn.$join(", ")+"' not found in include "+Xe+": "+Be,W(["source_location"],{source_location:k.$cursor()}))),k.$shift(),E(Yt)&&(E(Xt)&&Ye(nr,!1)&&E(vt["$empty?"]())||ke["$[]="]("partial-option",""),k.$push_include(Tt,Be,it,Yt,ke))}else{tn=K;try{tn=Re(ht,"call",[Be,at],function(Ut){return Ut==null&&(Ut=K),Ut.$read()}),k.$shift()}catch(Jt){if(a.rescue(Jt,[O("StandardError")]))try{return k.$logger().$error(k.$message_with_context("include "+Xe+" not readable: "+Be,W(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+L+"["+o+"]")}finally{a.pop_exception()}else throw Jt}k.$push_include(tn,Be,it,1,ke)}return!0}else return K}),V(q,"$resolve_include_path",function(g,o,m){var C,k=this,b=K,L=K,P=K;return b=k.document,E(O("Helpers")["$uriish?"](g))||E(G(M("String"),k.dir)?K:g=""+k.dir+"/"+g)?E(b["$attr?"]("allow-uri-read"))?(E(b["$attr?"]("cache-uri"))?E((C=M("::","OpenURI","skip_raise"))&&M(C,"Cache","skip_raise")?"constant":K)||O("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(O("RUBY_ENGINE_OPAL"))&&M("OpenURI"),[M("URI").$parse(g),"uri",g]):k.$replace_next_line("link:"+g+"[role=include]"):(L=b.$normalize_system_path(g,k.dir,K,W(["target_name"],{target_name:"include file"})),E(M("File")["$file?"](L))?(P=b.$path_resolver().$relative_path(L,b.$base_dir()),[L,"file",P]):E(m["$[]"]("optional-option"))?(Re(k.$logger(),"info",[],function de(){var le=de.$$s==null?this:de.$$s;return le.$message_with_context("optional include dropped because include file not found: "+L,W(["source_location"],{source_location:le.$cursor()}))},{$$s:k}),k.$shift(),!0):(k.$logger().$error(k.$message_with_context("include file not found: "+L,W(["source_location"],{source_location:k.$cursor()}))),k.$replace_next_line("Unresolved directive in "+k.path+" - include::"+g+"["+o+"]")))}),V(q,"$pop_include",function(){var g,o,m=this;return E(m.include_stack["$empty?"]())||(o=m.include_stack.$pop(),g=Me(o),m.lines=g[0]==null?K:g[0],m.file=g[1]==null?K:g[1],m.dir=g[2]==null?K:g[2],m.path=g[3]==null?K:g[3],m.lineno=g[4]==null?K:g[4],m.maxdepth=g[5]==null?K:g[5],m.process_lines=g[6]==null?K:g[6],m.look_ahead=0),K}),V(q,"$split_delimited_value",function(g){return E(g["$include?"](","))?g.$split(","):g.$split(";")}),V(q,"$skip_front_matter!",function(g,o){var m=this,C=K,k=K,b=K,L=K,P=K;if(o==null&&(o=!0),!Pe(C=g["$[]"](0),"---"))return K;for(k=g.$drop(0),g.$shift(),b=[],E(o)&&(m.lineno=_e(m.lineno,1));!E(E(L=P=g["$empty?"]())?L:g["$[]"](0)["$=="](C));)b["$<<"](g.$shift()),E(o)&&(m.lineno=_e(m.lineno,1));return E(P)?(Re(g,"unshift",st(k)),E(o)&&(m.lineno=Ge(m.lineno,k.$size())),K):(g.$shift(),E(o)&&(m.lineno=_e(m.lineno,1)),b)},-2),V(q,"$resolve_expr_val",function(g){var o=this,m=K;return E(g["$start_with?"]('"'))&&E(g["$end_with?"]('"'))||E(g["$start_with?"]("'"))&&E(g["$end_with?"]("'"))?(m=!0,g=g.$slice(1,Ge(g.$length(),1))):m=!1,E(g["$include?"](O("ATTR_REF_HEAD")))&&(g=o.document.$sub_attributes(g,W(["attribute_missing"],{attribute_missing:"drop"}))),E(m)?g:E(g["$empty?"]())?K:Pe(g,"true")?!0:Pe(g,"false")?!1:E(g.$rstrip()["$empty?"]())?" ":E(g["$include?"]("."))?g.$to_f():g.$to_i()})}(ze[0],oe("Reader"),ze)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,W=a.eqeqeq,Ue=a.truthy,G=a.rb_plus,Me=a.def,E=a.alias,et=a.rb_gt,Re=a.eqeq,Ge=a.not,De=a.send,Pe=a.defs,dt=[],Ye=a.nil;return a.add_stubs("attr_accessor,attr_reader,===,+,level,special,title,generate_id,>,==,sectnum,!,empty?,reftext,sub_placeholder,sub_quotes,compat_mode,[],attributes,context,assign_numeral,class,object_id,inspect,size,[]=,chr,length,gsub,downcase,delete,tr_s,end_with?,chop,start_with?,slice,key?,catalog,unique_id_start_index"),function(st,We){var Oe=ae(st,"Asciidoctor"),ft=[Oe].concat(We),R=a.$r(ft);return function(tt,A,rt){var lt=re(tt,A,"Section"),K=[lt].concat(rt),M=a.$r(K),He=lt.$$prototype;return He.document=He.next_section_index=He.parent=He.level=He.numeral=He.numbered=He.sectname=He.title=He.blocks=Ye,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),Me(lt,"$initialize",function we(qe,ze,oe,ye){var Q;we.$$p;var F=this,q=Ye;return we.$$p=null,qe==null&&(qe=Ye),ze==null&&(ze=Ye),oe==null&&(oe=!1),ye==null&&(ye=V([],{})),_e(F,y(F,"initialize",we,!1,!0),"initialize",[qe,"section",ye],null),W(M("Section"),qe)?(Q=[Ue(q=ze)?q:G(qe.$level(),1),qe.$special()],F.level=Q[0],F.special=Q[1]):(Q=[Ue(q=ze)?q:1,!1],F.level=Q[0],F.special=Q[1]),F.numbered=oe,F.index=0},-1),E(lt,"name","title"),Me(lt,"$generate_id",function(){var qe=this;return M("Section").$generate_id(qe.$title(),qe.document)}),Me(lt,"$sections?",function(){var qe=this;return et(qe.next_section_index,0)}),Me(lt,"$sectnum",function(qe,ze){var oe=this,ye=Ye;return qe==null&&(qe="."),ze==null&&(ze=Ye),ze=Ue(ye=ze)?ye:Re(ze,!1)?"":qe,Ue(et(oe.level,1))&&W(M("Section"),oe.parent)?""+oe.parent.$sectnum(qe,qe)+oe.numeral+ze:""+oe.numeral+ze},-1),Me(lt,"$xreftext",function(qe){var ze=this,oe=Ye,ye=Ye,Q=Ye,F=Ye;if(qe==null&&(qe=Ye),Ue(oe=ze.$reftext())&&Ge(oe["$empty?"]()))return oe;if(Ue(qe))if(Ue(ze.numbered))switch(qe){case"full":return Re(ye=ze.sectname,"chapter")||Re(ye,"appendix")?Q=ze.$sub_placeholder(ze.$sub_quotes("_%s_"),ze.$title()):Q=ze.$sub_placeholder(ze.$sub_quotes(Ue(ze.document.$compat_mode())?"``%s''":'"`%s`"'),ze.$title()),Ue(F=ze.document.$attributes()["$[]"](""+ye+"-refsig"))?""+F+" "+ze.$sectnum(".",",")+" "+Q:""+ze.$sectnum(".",",")+" "+Q;case"short":return Ue(F=ze.document.$attributes()["$[]"](""+ze.sectname+"-refsig"))?""+F+" "+ze.$sectnum(".",""):ze.$sectnum(".","");default:return Re(ye=ze.sectname,"chapter")||Re(ye,"appendix")?ze.$sub_placeholder(ze.$sub_quotes("_%s_"),ze.$title()):ze.$title()}else return Re(ye=ze.sectname,"chapter")||Re(ye,"appendix")?ze.$sub_placeholder(ze.$sub_quotes("_%s_"),ze.$title()):ze.$title();else return ze.$title()},-1),Me(lt,"$<<",function we(qe){var ze=we.$$p||Ye,oe=this;return we.$$p=null,Re(qe.$context(),"section")&&oe.$assign_numeral(qe),_e(oe,y(oe,"<<",we,!1,!0),"<<",[qe],ze)}),Me(lt,"$to_s",function we(){var qe=we.$$p||Ye,ze=this,oe=Ye;return we.$$p=null,Ue(ze.title)?(oe=Ue(ze.numbered)?""+ze.$sectnum()+" "+ze.title:ze.title,"#<"+ze.$class()+"@"+ze.$object_id()+" {level: "+ze.level+", title: "+oe.$inspect()+", blocks: "+ze.blocks.$size()+"}>"):_e(ze,y(ze,"to_s",we,!1,!0),"to_s",[],qe)}),Pe(lt,"$generate_id",function(qe,ze){var oe,ye=Ye,Q=Ye,F=Ye,q=Ye,ie=Ye,O=Ye,$e=Ye,H=Ye,g=Ye,o=Ye;if(ye=ze.$attributes(),Q=Ue(F=ye["$[]"]("idprefix"))?F:"_",Ue(q=ye["$[]"]("idseparator"))?(Re(q.$length(),1)||Ge(ie=q["$empty?"]())&&Ue(q=(oe=["idseparator",q.$chr()],De(ye,"[]=",oe),oe[oe.length-1])))&&(O=Re(q,"-")||Re(q,".")?" .-":" "+q+".-"):(oe=["_"," _.-"],q=oe[0],O=oe[1]),$e=""+Q+qe.$downcase().$gsub(M("InvalidSectionIdCharsRx"),""),Ue(ie)?$e=$e.$delete(" "):($e=$e.$tr_s(O,q),Ue($e["$end_with?"](q))&&($e=$e.$chop()),Ue(Q["$empty?"]())&&Ue($e["$start_with?"](q))&&($e=$e.$slice(1,$e.$length()))),Ue(ze.$catalog()["$[]"]("refs")["$key?"]($e))){for(H=ze.$catalog()["$[]"]("refs"),g=M("Compliance").$unique_id_start_index();Ue(H["$[]"](o=""+$e+q+g));)g=G(g,1);return o}else return $e})}(ft[0],R("AbstractBlock"),ft)}(dt[0],dt)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.return_ivar,y=a.defs,W=a.def,Ue=a.truthy,G=a.hash2,Me=[],E=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(Re,Ge){var De=ae(Re,"Asciidoctor"),Pe=[De].concat(Ge);return function(dt,Ye,st){var We=re(dt,Ye,"Stylesheets"),Oe=[We].concat(st),ft=a.$r(Oe),R=We.$$prototype;return R.primary_stylesheet_data=E,V(Oe[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),V(Oe[0],"STYLESHEETS_DIR",et("File").$join(ft("DATA_DIR"),"stylesheets")),We.__instance__=We.$new(),y(We,"$instance",_e("__instance__")),W(We,"$primary_stylesheet_name",function(){return ft("DEFAULT_STYLESHEET_NAME")}),W(We,"$primary_stylesheet_data",function(){var A=this,rt=E;return A.primary_stylesheet_data=Ue(rt=A.primary_stylesheet_data)?rt:et("File").$read(et("File").$join(ft("STYLESHEETS_DIR"),"asciidoctor-default.css"),G(["mode"],{mode:ft("FILE_READ_MODE")})).$rstrip()}),W(We,"$embed_primary_stylesheet",function(){var A=this;return`<style>
|
|
418
|
-
`+A.$primary_stylesheet_data()+`
|
|
419
|
-
</style>`}),W(We,"$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(),G(["mode"],{mode:ft("FILE_WRITE_MODE")}))},-1),W(We,"$coderay_stylesheet_name",function(){return ft("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),W(We,"$coderay_stylesheet_data",function(){return ft("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),W(We,"$embed_coderay_stylesheet",function(){var A=this;return`<style>
|
|
420
|
-
`+A.$coderay_stylesheet_data()+`
|
|
421
|
-
</style>`}),W(We,"$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(),G(["mode"],{mode:ft("FILE_WRITE_MODE")}))},-1),W(We,"$pygments_stylesheet_name",function(A){return A==null&&(A=E),ft("SyntaxHighlighter").$for("pygments").$stylesheet_basename(A)},-1),W(We,"$pygments_stylesheet_data",function(A){return A==null&&(A=E),ft("SyntaxHighlighter").$for("pygments").$read_stylesheet(A)},-1),W(We,"$embed_pygments_stylesheet",function(A){var rt=this;return A==null&&(A=E),`<style>
|
|
422
|
-
`+rt.$pygments_stylesheet_data(A)+`
|
|
423
|
-
</style>`},-1),W(We,"$write_pygments_stylesheet",function(A,rt){var lt=this;return A==null&&(A="."),rt==null&&(rt=E),et("File").$write(et("File").$join(A,lt.$pygments_stylesheet_name(rt)),lt.$pygments_stylesheet_data(rt),G(["mode"],{mode:ft("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(Me[0],Me)},Opal.modules["asciidoctor/table"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.def,y=a.alias,W=a.hash2,Ue=a.send2,G=a.find_super,Me=a.truthy,E=a.rb_lt,et=a.rb_gt,Re=a.eqeq,Ge=a.rb_times,De=a.rb_divide,Pe=a.send,dt=a.rb_plus,Ye=a.rb_minus,st=a.return_val,We=a.to_a,Oe=a.gvars,ft=a.neqeq,R=a.return_ivar,tt=a.to_ary,A=a.regexp,rt=a.not,lt=a.thrower,K=[],M=a.nil,He=a.$$$;return a.add_stubs("attr_accessor,send,attr_reader,new,[],<,>,to_i,==,[]=,attributes,truncate,*,/,to_f,empty?,body,each,<<,size,+,assign_column_widths,warn,logger,-,update_attributes,assign_width,round,head=,map,shift,reinitialize,nil?,unshift,foot=,pop,parent,sourcemap,dup,header_row?,table,style,merge,delete,start_with?,rstrip,slice,length,advance,lstrip,strip,split,include?,readlines,catalog_inline_anchor,=~,apply_subs,attr_writer,convert,text,!=,file,lineno,include,to_set,mark,key?,nested?,document,error,message_with_context,cursor_at_prev_line,nil_or_empty?,escape,columns,match,chop,end_with?,gsub,!,push_cellspec,cell_open?,close_cell,take_cellspec,squeeze,upto,times,cursor_before_mark,rowspan,activate_rowspan,colspan,end_of_row?,close_row,private,rows,effective_column_visits"),function(we,qe){var ze=ae(we,"Asciidoctor"),oe=[ze].concat(qe),ye=a.$r(oe);return function(Q,F,q){var ie=re(Q,F,"Table"),O=[ie].concat(q),$e=a.$r(O),H=ie.$$prototype;return H.attributes=H.document=H.rows=H.has_header_option=H.columns=M,V(O[0],"DEFAULT_PRECISION",4),function(g,o){var m=re(g,o,"Rows"),C=m.$$prototype;return C.head=C.body=C.foot=M,m.$attr_accessor("head","foot","body"),_e(m,"$initialize",function(b,L,P){var de=this;return b==null&&(b=[]),L==null&&(L=[]),P==null&&(P=[]),de.head=b,de.foot=L,de.body=P},-1),y(m,"[]","send"),_e(m,"$by_section",function(){var b=this;return[["head",b.head],["body",b.body],["foot",b.foot]]}),_e(m,"$to_h",function(){var b=this;return W(["head","body","foot"],{head:b.head,body:b.body,foot:b.foot})})}(O[0],null),ie.$attr_accessor("columns"),ie.$attr_accessor("rows"),ie.$attr_accessor("has_header_option"),ie.$attr_reader("caption"),_e(ie,"$initialize",function g(o,m){var C;g.$$p;var k=this,b=M,L=M,P=M;return g.$$p=null,Ue(k,G(k,"initialize",g,!1,!0),"initialize",[o,"table"],null),k.rows=$e("Rows").$new(),k.columns=[],k.has_header_option=!1,Me(b=m["$[]"]("width"))?(Me(et(L=b.$to_i(),100))||Me(E(L,1)))&&(Re(L,0)&&(Re(b,"0")||Re(b,"0%"))||(L=100)):L=100,k.attributes["$[]="]("tablepcwidth",L),Me(k.document.$attributes()["$[]"]("pagewidth"))&&k.attributes["$[]="]("tableabswidth",Re(P=Ge(De(L,100),k.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate($e("DEFAULT_PRECISION")),P.$to_i())?P.$to_i():P),Me(m["$[]"]("rotate-option"))?(C=["orientation","landscape"],Pe(k.attributes,"[]=",C),C[C.length-1]):M}),_e(ie,"$header_row?",function(){var o=this,m=M;return Me(m=o.has_header_option)&&Me(o.rows.$body()["$empty?"]())?m:M}),_e(ie,"$create_columns",function(o){var m=this,C=M,k=M,b=M,L=M;return C=[],k=M,b=0,Pe(o,"each",[],function P(de){var le=P.$$s==null?this:P.$$s,ke=M,Be=M;return de==null&&(de=M),ke=de["$[]"]("width"),C["$<<"]($e("Column").$new(le,C.$size(),de)),Me(E(ke,0))?(k=Me(Be=k)?Be:[])["$<<"](C["$[]"](-1)):b=dt(b,ke)},{$$s:m}),Me(et(L=(m.columns=C).$size(),0))&&(m.attributes["$[]="]("colcount",L),Me(et(b,0))||Me(k)||(b=M),m.$assign_column_widths(b,k)),M}),_e(ie,"$assign_column_widths",function(o,m){var C=this,k=M,b=M,L=M,P=M,de=M;return o==null&&(o=M),m==null&&(m=M),k=$e("DEFAULT_PRECISION"),b=L=0,Me(o)?(Me(m)&&(Me(et(o,100))?(P=0,C.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+o+"%")):(P=De(Ye(100,o),m.$size()).$truncate(k),Re(P.$to_i(),P)&&(P=P.$to_i()),o=100),de=W(["width","autowidth-option"],{width:P,"autowidth-option":""}),Pe(m,"each",[],function(ke){return ke==null&&(ke=M),ke.$update_attributes(de)})),Pe(C.columns,"each",[],function(ke){return ke==null&&(ke=M),b=dt(b,L=ke.$assign_width(M,o,k))})):(L=De(100,C.columns.$size()).$truncate(k),Re(L.$to_i(),L)&&(L=L.$to_i()),Pe(C.columns,"each",[],function(ke){return ke==null&&(ke=M),b=dt(b,ke.$assign_width(L,M,k))})),Re(b,100)||C.columns["$[]"](-1).$assign_width(dt(Ye(100,b),L).$round(k),M,k),M},-1),_e(ie,"$partition_header_footer",function(o){var m,C=this,k=M,b=M;return k=(m=["rowcount",(b=C.rows.$body()).$size()],Pe(C.attributes,"[]=",m),m[m.length-1]),Me(et(k,0))&&(Me(C.has_header_option)?(C.rows["$head="]([Pe(b.$shift(),"map",[],function(P){return P==null&&(P=M),P.$reinitialize(!0)})]),k=Ye(k,1)):Me(C.has_header_option["$nil?"]())&&(C.has_header_option=!1,b.$unshift(Pe(b.$shift(),"map",[],function(P){return P==null&&(P=M),P.$reinitialize(!1)})))),Me(et(k,0))&&Me(o["$[]"]("footer-option"))&&C.rows["$foot="]([b.$pop()]),M})}(oe[0],ye("AbstractBlock"),oe),function(Q,F){var q=re(Q,F,"Column"),ie=q.$$prototype;return ie.attributes=M,q.$attr_accessor("style"),_e(q,"$initialize",function O($e,H,g){O.$$p;var o=this;return O.$$p=null,g==null&&(g=W([],{})),Ue(o,G(o,"initialize",O,!1,!0),"initialize",[$e,"table_column"],null),o.style=g["$[]"]("style"),g["$[]="]("colnumber",dt(H,1)),Me(g["$[]"]("width"))||g["$[]="]("width",1),Me(g["$[]"]("halign"))||g["$[]="]("halign","left"),Me(g["$[]"]("valign"))||g["$[]="]("valign","top"),o.$update_attributes(g)},-3),y(q,"table","parent"),_e(q,"$assign_width",function($e,H,g){var o,m=this,C=M;return Me(H)&&($e=De(Ge(m.attributes["$[]"]("width").$to_f(),100),H).$truncate(g),Re($e.$to_i(),$e)&&($e=$e.$to_i())),Me(m.$parent().$attributes()["$[]"]("tableabswidth"))&&m.attributes["$[]="]("colabswidth",Re(C=Ge(De($e,100),m.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),C.$to_i())?C.$to_i():C),o=["colpcwidth",$e],Pe(m.attributes,"[]=",o),o[o.length-1]}),_e(q,"$block?",st(!1)),_e(q,"$inline?",st(!1))}(ye("Table"),ye("AbstractNode")),function(Q,F,q){var ie=re(Q,F,"Cell"),O=[ie].concat(q),$e=a.$r(O),H=ie.$$prototype;return H.document=H.reinitialize_args=H.attributes=H.cursor=H.text=H.subs=H.style=H.inner_document=H.source_location=H.colspan=H.rowspan=M,V(O[0],"DOUBLE_LF",Ge($e("LF"),2)),ie.$attr_accessor("colspan"),ie.$attr_accessor("rowspan"),y(ie,"column","parent"),ie.$attr_reader("inner_document"),_e(ie,"$initialize",function g(o,m,C,k){var b;g.$$p;var L=this,P=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,gt=M,yt=M,xt=M,vt=M;if(g.$$p=null,C==null&&(C=W([],{})),k==null&&(k=W([],{})),Ue(L,G(L,"initialize",g,!1,!0),"initialize",[o,"table_cell"],null),L.cursor=L.reinitialize_args=M,Me(L.document.$sourcemap())&&(L.source_location=k["$[]"]("cursor").$dup()),Me(o)&&(Me(P=o.$table()["$header_row?"]())?Re(P,"implicit")&&Me(de=Me(le=o.$style())?le:Me(ke=C)?C["$[]"]("style"):ke)&&((Re(de,"asciidoc")||Re(de,"literal"))&&(L.reinitialize_args=[o,m,Me(le=C)?C.$merge():le,k]),de=M):de=o.$style(),L.$update_attributes(o.$attributes())),Me(C))switch(Me(C["$empty?"]())?L.colspan=L.rowspan=M:(b=[C.$delete("colspan"),C.$delete("rowspan")],L.colspan=b[0],L.rowspan=b[1],Me(P)||(de=Me(le=C["$[]"]("style"))?le:de),L.$update_attributes(C)),de){case"asciidoc":if(Be=!0,Xe=k["$[]"]("cursor"),Me((m=m.$rstrip())["$start_with?"]($e("LF")))){for(it=1;Me((m=m.$slice(1,m.$length()))["$start_with?"]($e("LF")));)it=dt(it,1);Xe.$advance(it)}else m=m.$lstrip();break;case"literal":for(ht=!0,m=m.$rstrip();Me(m["$start_with?"]($e("LF")));)m=m.$slice(1,m.$length());break;default:at=!0,m=Me(m)?m.$strip():""}else L.colspan=L.rowspan=M,Re(de,"asciidoc")&&(Be=!0,Xe=k["$[]"]("cursor"));return Me(Be)?(gt=L.document.$attributes().$delete("doctitle"),yt=m.$split($e("LF"),-1),Me(yt["$empty?"]())||Me((xt=yt["$[]"](0))["$include?"]("::"))&&(vt=$e("PreprocessorReader").$new(L.document,[xt]).$readlines(),Re(xt,vt["$[]"](0))&&Me(E(vt.$size(),2))||(yt.$shift(),Me(vt["$empty?"]())||Pe(yt,"unshift",We(vt)))),L.inner_document=$e("Document").$new(yt,W(["standalone","parent","cursor"],{standalone:!1,parent:L.document,cursor:Xe})),Me(gt["$nil?"]())||L.document.$attributes()["$[]="]("doctitle",gt),L.subs=M):Me(ht)?(L.content_model="verbatim",L.subs=$e("BASIC_SUBS")):(Me(at)&&(Me(P)?L.cursor=k["$[]"]("cursor"):L.$catalog_inline_anchor(m,k["$[]"]("cursor"))),L.content_model="simple",L.subs=$e("NORMAL_SUBS")),L.text=m,L.style=de},-3),_e(ie,"$reinitialize",function(o){var m=this;if(Me(o))m.reinitialize_args=M;else{if(Me(m.reinitialize_args))return Pe(He($e("Table"),"Cell"),"new",We(m.reinitialize_args));m.style=m.attributes["$[]"]("style")}return Me(m.cursor)&&m.$catalog_inline_anchor(),m}),_e(ie,"$catalog_inline_anchor",function(o,m){var C,k=this;return o==null&&(o=k.text),m==null&&(m=M),Me(m)||(C=[k.cursor,M],m=C[0],k.cursor=C[1]),Me(o["$start_with?"]("[["))&&Me($e("LeadingInlineAnchorRx")["$=~"](o))?$e("Parser").$catalog_inline_anchor((C=Oe["~"])===M?M:C["$[]"](1),(C=Oe["~"])===M?M:C["$[]"](2),k,m,k.document):M},-1),_e(ie,"$text",function(){var o=this;return o.$apply_subs(o.text,o.subs)}),ie.$attr_writer("text"),_e(ie,"$content",function(){var o=this,m=M,C=M;return Re(m=o.style,"asciidoc")?o.inner_document.$convert():Me(o.text["$include?"]($e("DOUBLE_LF")))?Pe(o.$text().$split($e("BlankLineRx")),"map",[],function k(b){var L=k.$$s==null?this:k.$$s;return b==null&&(b=M),Me(m)&&ft(m,"header")?$e("Inline").$new(L.$parent(),"quoted",b,W(["type"],{type:m})).$convert():b},{$$s:o}):Me((C=o.$text())["$empty?"]())?[]:Me(m)&&ft(m,"header")?[$e("Inline").$new(o.$parent(),"quoted",C,W(["type"],{type:m})).$convert()]:[C]}),_e(ie,"$lines",function(){var o=this;return o.text.$split($e("LF"))}),_e(ie,"$source",R("text")),_e(ie,"$file",function(){var o=this,m=M;return Me(m=o.source_location)?o.source_location.$file():m}),_e(ie,"$lineno",function(){var o=this,m=M;return Me(m=o.source_location)?o.source_location.$lineno():m}),_e(ie,"$to_s",function g(){var o=g.$$p||M,m=this,C=M;return g.$$p=null,""+Ue(m,G(m,"to_s",g,!1,!0),"to_s",[],o)+" - [text: "+m.text+", colspan: "+(Me(C=m.colspan)?C:1)+", rowspan: "+(Me(C=m.rowspan)?C:1)+", attributes: "+m.attributes+"]"})}(ye("Table"),ye("AbstractBlock"),oe),function(Q,F,q){var ie=re(Q,F,"ParserContext"),O=[ie].concat(q),$e=a.$r(O),H=ie.$$prototype;return H.delimiter=H.delimiter_rx=H.buffer=H.cellspecs=H.cell_open=H.format=H.start_cursor_data=H.reader=H.table=H.current_row=H.colcount=H.column_visits=H.active_rowspans=H.linenum=M,ie.$include($e("Logging")),V(O[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),V(O[0],"DELIMITERS",W(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ie.$attr_accessor("table"),ie.$attr_accessor("format"),ie.$attr_reader("colcount"),ie.$attr_accessor("buffer"),ie.$attr_reader("delimiter"),ie.$attr_reader("delimiter_re"),_e(ie,"$initialize",function(o,m,C){var k,b,L=this,P=M,de=M;return C==null&&(C=W([],{})),L.start_cursor_data=(L.reader=o).$mark(),L.table=m,Me(C["$key?"]("format"))?Me($e("FORMATS")["$include?"](P=C["$[]"]("format")))?Re(P,"tsv")?L.format="csv":Re(L.format=P,"psv")&&Me(m.$document()["$nested?"]())&&(P="!sv"):(L.$logger().$error(L.$message_with_context("illegal table format: "+P,W(["source_location"],{source_location:o.$cursor_at_prev_line()}))),k=["psv",Me(m.$document()["$nested?"]())?"!sv":"psv"],L.format=k[0],P=k[1]):(k=["psv",Me(m.$document()["$nested?"]())?"!sv":"psv"],L.format=k[0],P=k[1]),Me(C["$key?"]("separator"))?Me((de=C["$[]"]("separator"))["$nil_or_empty?"]())?(b=$e("DELIMITERS")["$[]"](P),k=tt(b),L.delimiter=k[0]==null?M:k[0],L.delimiter_rx=k[1]==null?M:k[1]):Re(de,"\\t")?(b=$e("DELIMITERS")["$[]"]("tsv"),k=tt(b),L.delimiter=k[0]==null?M:k[0],L.delimiter_rx=k[1]==null?M:k[1]):(k=[de,A([He("Regexp").$escape(de)])],L.delimiter=k[0],L.delimiter_rx=k[1]):(b=$e("DELIMITERS")["$[]"](P),k=tt(b),L.delimiter=k[0]==null?M:k[0],L.delimiter_rx=k[1]==null?M:k[1]),L.colcount=Me(m.$columns()["$empty?"]())?-1:m.$columns().$size(),L.buffer="",L.cellspecs=[],L.cell_open=!1,L.active_rowspans=[0],L.column_visits=0,L.current_row=[],L.linenum=-1},-3),_e(ie,"$starts_with_delimiter?",function(o){var m=this;return o["$start_with?"](m.delimiter)}),_e(ie,"$match_delimiter",function(o){var m=this;return m.delimiter_rx.$match(o)}),_e(ie,"$skip_past_delimiter",function(o){var m=this;return m.buffer=""+m.buffer+o+m.delimiter,M}),_e(ie,"$skip_past_escaped_delimiter",function(o){var m=this;return m.buffer=""+m.buffer+o.$chop()+m.delimiter,M}),_e(ie,"$buffer_has_unclosed_quotes?",function(o,m){var C=this,k=M,b=M,L=M,P=M;return o==null&&(o=M),m==null&&(m='"'),Re(k=Me(o)?dt(C.buffer,o).$strip():C.buffer.$strip(),m)?!0:Me(k["$start_with?"](m))?(b=dt(m,m),Me(L=k["$end_with?"](m))&&Me(k["$end_with?"](b))||Me(k["$start_with?"](b))?Me(P=(k=k.$gsub(b,""))["$start_with?"](m))?k["$end_with?"](m)["$!"]():P:L["$!"]()):!1},-1),_e(ie,"$take_cellspec",function(){var o=this;return o.cellspecs.$shift()}),_e(ie,"$push_cellspec",function(o){var m=this,C=M;return o==null&&(o=W([],{})),m.cellspecs["$<<"](Me(C=o)?C:W([],{})),M},-1),_e(ie,"$keep_cell_open",function(){var o=this;return o.cell_open=!0,M}),_e(ie,"$mark_cell_closed",function(){var o=this;return o.cell_open=!1,M}),_e(ie,"$cell_open?",R("cell_open")),_e(ie,"$cell_closed?",function(){var o=this;return o.cell_open["$!"]()}),_e(ie,"$close_open_cell",function(o){var m=this;return o==null&&(o=W([],{})),m.$push_cellspec(o),Me(m["$cell_open?"]())&&m.$close_cell(!0),m.$advance(),M},-1),_e(ie,"$close_cell",function(o){try{var m=lt("return"),C=this,k=M,b=M,L=M,P=M,de=M;return o==null&&(o=!1),Re(C.format,"psv")?(k=C.buffer,C.buffer="",Me(b=C.$take_cellspec())?L=Me(P=b.$delete("repeatcol"))?P:1:(C.$logger().$error(C.$message_with_context("table missing leading separator; recovering automatically",W(["source_location"],{source_location:Pe(He($e("Reader"),"Cursor"),"new",We(C.start_cursor_data))}))),b=W([],{}),L=1)):(k=C.buffer.$strip(),C.buffer="",b=M,L=1,Re(C.format,"csv")&&rt(k["$empty?"]())&&Me(k["$include?"](de='"'))&&(Me(k["$start_with?"](de))&&Me(k["$end_with?"](de))?Me(k=k.$slice(1,Ye(k.$length(),2)))?k=k.$strip().$squeeze(de):(C.$logger().$error(C.$message_with_context("unclosed quote in CSV data; setting cell to empty",W(["source_location"],{source_location:C.reader.$cursor_at_prev_line()}))),k=""):k=k.$squeeze(de))),Pe(1,"upto",[L],function le(ke){var Be=le.$$s==null?this:le.$$s,Xe=M,it=M,ht=M,at=M;return Be.colcount==null&&(Be.colcount=M),Be.table==null&&(Be.table=M),Be.current_row==null&&(Be.current_row=M),Be.reader==null&&(Be.reader=M),Be.column_visits==null&&(Be.column_visits=M),Be.linenum==null&&(Be.linenum=M),ke==null&&(ke=M),Re(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He($e("Table"),"Column").$new(Be.table,Ye(dt(Be.table.$columns().$size(),ke),1))),Me(b)&&Me(b["$key?"]("colspan"))&&Me(et(it=Ye(b["$[]"]("colspan").$to_i(),1),0))&&(ht=Be.table.$columns().$size(),Pe(it,"times",[],function gt(yt){var xt=gt.$$s==null?this:gt.$$s;return xt.table==null&&(xt.table=M),yt==null&&(yt=M),xt.table.$columns()["$<<"](He($e("Table"),"Column").$new(xt.table,dt(ht,yt)))},{$$s:Be}))):Me(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",W(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),m.$throw()),at=He($e("Table"),"Cell").$new(Xe,k,b,W(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),rt(at.$rowspan())||Re(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),Me(P=at.$colspan())?P:1),Be.column_visits=dt(Be.column_visits,Me(P=at.$colspan())?P:1),Be.current_row["$<<"](at),Me(Be["$end_of_row?"]())&&(ft(Be.colcount,-1)||Me(et(Be.linenum,0))||Me(o)&&Re(ke,L))?Be.$close_row():M},{$$s:C,$$ret:m}),C.cell_open=!1,M}catch(le){if(le===m)return le.$v;throw le}},-1),ie.$private(),_e(ie,"$close_row",function(){var o=this;return o.table.$rows().$body()["$<<"](o.current_row),Re(o.colcount,-1)&&(o.colcount=o.column_visits),o.column_visits=0,o.current_row=[],o.active_rowspans.$shift(),Me(o.active_rowspans["$[]"](0))||o.active_rowspans["$[]="](0,0),M}),_e(ie,"$activate_rowspan",function(o,m){var C=this;return Pe(1,"upto",[Ye(o,1)],function k(b){var L,P=k.$$s==null?this:k.$$s,de=M;return P.active_rowspans==null&&(P.active_rowspans=M),b==null&&(b=M),L=[b,dt(Me(de=P.active_rowspans["$[]"](b))?de:0,m)],Pe(P.active_rowspans,"[]=",L),L[L.length-1]},{$$s:C}),M}),_e(ie,"$end_of_row?",function(){var o=this,m=M;return Me(m=o.colcount["$=="](-1))?m:o.$effective_column_visits()["$=="](o.colcount)}),_e(ie,"$effective_column_visits",function(){var o=this;return dt(o.column_visits,o.active_rowspans["$[]"](0))}),_e(ie,"$advance",function(){var o=this;return o.linenum=dt(o.linenum,1)})}(ye("Table"),null,oe)}(K[0],K)},Opal.modules["asciidoctor/writer"]=function(a){var ae=a.module,re=a.truthy,V=a.rb_plus,_e=a.hash2,y=a.def,W=a.return_val,Ue=[],G=a.nil,Me=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(E,et){var Re=ae(E,"Asciidoctor"),Ge=[Re].concat(et);return function(De,Pe){var dt=ae(De,"Writer"),Ye=[dt].concat(Pe),st=a.$r(Ye);return y(dt,"$write",function(Oe,ft){return re(ft["$respond_to?"]("write"))?ft.$write(V(Oe.$chomp(),st("LF"))):Me("File").$write(ft,Oe,_e(["mode"],{mode:st("FILE_WRITE_MODE")})),G})}(Ge[0],Ge),function(De,Pe){var dt=ae(De,"VoidWriter"),Ye=[dt].concat(Pe),st=a.$r(Ye);return dt.$include(st("Writer")),y(dt,"$write",W(G))}(Ge[0],Ge)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var ae=a.module,re=a.hash2,V=a.truthy,_e=a.neqeq,y=a.not,W=a.eqeqeq,Ue=a.send,G=a.to_ary,Me=a.rb_plus,E=a.eqeq,et=a.def,Re=[],Ge=a.nil,De=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,dt){var Ye=ae(Pe,"Asciidoctor"),st=[Ye].concat(dt);return function(We,Oe){var ft=[We].concat(Oe),R=a.$r(ft);return et(We,"$load",function(A,rt){var lt,K,M,He,we=this,qe=Ge,ze=Ge,oe=Ge,ye=Ge,Q=Ge,F=Ge,q=Ge,ie=Ge,O=Ge,$e=Ge;rt==null&&(rt=re([],{}));try{if(rt=rt.$merge(),V(qe=rt["$[]"]("timings"))&&qe.$start("read"),V(rt["$key?"]("logger"))&&_e(ze=rt["$[]"]("logger"),R("LoggerManager").$logger())&&R("LoggerManager")["$logger="](V(oe=ze)?oe:R("NullLogger").$new()),y(ye=rt["$[]"]("attributes"))?ye=re([],{}):W(De("Hash"),ye)?ye=ye.$merge():V((M=De("::","Java","skip_raise"))&&(K=De(M,"JavaUtil","skip_raise"))&&(lt=De(K,"Map","skip_raise"))?"constant":Ge)&&W(De(De(De("Java"),"JavaUtil"),"Map"),ye)?ye=ye.$dup():W(De("Array"),ye)?ye=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye,"each",[],function(m){var C,k,b=Ge,L=Ge,P=Ge;return m==null&&(m=Ge),k=m.$partition("="),C=G(k),b=C[0]==null?Ge:C[0],L=C[1]==null?Ge:C[1],P=C[2]==null?Ge:C[2],C=[b,P],Ue(g,"[]=",C),C[C.length-1]})}):W(De("String"),ye)?ye=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$gsub(R("SpaceDelimiterRx"),Me("\\1",R("NULL"))).$gsub(R("EscapedSpaceRx"),"\\1").$split(R("NULL")),"each",[],function(m){var C,k,b=Ge,L=Ge,P=Ge;return m==null&&(m=Ge),k=m.$partition("="),C=G(k),b=C[0]==null?Ge:C[0],L=C[1]==null?Ge:C[1],P=C[2]==null?Ge:C[2],C=[b,P],Ue(g,"[]=",C),C[C.length-1]})}):V(ye["$respond_to?"]("keys"))&&V(ye["$respond_to?"]("[]"))?ye=Ue(re([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$keys(),"each",[],function(m){var C;return m==null&&(m=Ge),C=[m,ye["$[]"](m)],Ue(g,"[]=",C),C[C.length-1]})}):we.$raise(De("ArgumentError"),"illegal type for attributes option: "+ye.$class().$ancestors().$join(" < ")),W(De("File"),A))rt["$[]="]("input_mtime",E(R("RUBY_ENGINE"),"jruby")?De("Time").$at(A.$mtime().$to_i()):A.$mtime()),ye["$[]="]("docfile",Q=De("File").$absolute_path(A.$path())),ye["$[]="]("docdir",De("File").$dirname(Q)),ye["$[]="]("docname",R("Helpers").$basename(Q,(He=["docfilesuffix",R("Helpers").$extname(Q)],Ue(ye,"[]=",He),He[He.length-1]))),F=A.$read();else if(V(A["$respond_to?"]("read"))){try{A.$rewind()}catch(H){if(a.rescue(H,[R("StandardError")]))try{}finally{a.pop_exception()}else throw H}F=A.$read()}else W(De("String"),A)?F=A:W(De("Array"),A)?F=A.$drop(0):V(A)&&we.$raise(De("ArgumentError"),"unsupported input type: "+A.$class());return V(qe)&&(qe.$record("read"),qe.$start("parse")),rt["$[]="]("attributes",ye),q=E(rt["$[]"]("parse"),!1)?R("Document").$new(F,rt):R("Document").$new(F,rt).$parse(),V(qe)&&qe.$record("parse"),q}catch(H){if(a.rescue(H,[R("StandardError")])){ie=H;try{try{O="asciidoctor: FAILED: "+(V(oe=ye["$[]"]("docfile"))?oe:"<stdin>")+": Failed to load AsciiDoc document",V(ie["$respond_to?"]("exception"))?($e=ie.$exception(""+O+" - "+ie.$message()),$e.$set_backtrace(ie.$backtrace())):($e=ie.$class().$new(O,ie),$e["$stack_trace="](ie.$stack_trace()))}catch(g){if(a.rescue(g,[R("StandardError")]))try{$e=ie}finally{a.pop_exception()}else throw g}return we.$raise($e)}finally{a.pop_exception()}}else throw H}},-2),et(We,"$load_file",function(A,rt){var lt=this;return rt==null&&(rt=re([],{})),Ue(De("File"),"open",[A,R("FILE_READ_MODE")],function K(M){var He=K.$$s==null?this:K.$$s;return M==null&&(M=Ge),He.$load(M,rt)},{$$s:lt})},-2)}(a.get_singleton_class(Ye),st)}(Re[0],Re)},Opal.modules["asciidoctor/convert"]=function(a){var ae=a.module,re=a.hash2,V=a.eqeqeq,_e=a.truthy,y=a.eqeq,W=a.rb_ge,Ue=a.not,G=a.rb_lt,Me=a.neqeq,E=a.def,et=a.send,Re=a.alias,Ge=[],De=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(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye);return function(Oe,ft){var R=[Oe].concat(ft),tt=a.$r(R);return E(Oe,"$convert",function(rt,lt){var K=this,M=De,He=De,we=De,qe=De,ze=De,oe=De,ye=De,Q=De,F=De,q=De,ie=De,O=De,$e=De,H=De,g=De,o=De,m=De,C=De,k=De,b=De,L=De,P=De,de=De,le=De;if(lt==null&&(lt=re([],{})),(lt=lt.$merge()).$delete("parse"),M=lt.$delete("to_dir"),He=lt.$delete("mkdirs"),V(!0,we=qe=lt.$delete("to_file"))||V(De,we))_e(ze=M)||V(Pe("File"),rt)&&(oe=Pe("File").$absolute_path(rt.$path())),qe=De;else if(V(!1,we))qe=De;else{if(V("/dev/null",we))return K.$load(rt,lt);_e(ye=qe["$respond_to?"]("write"))||lt["$[]="]("to_file",ze=qe)}return _e(lt["$key?"]("standalone"))||(_e(oe)||_e(ze)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):_e(lt["$key?"]("header_footer"))&<["$[]="]("standalone",lt["$[]"]("header_footer"))),_e(oe)?lt["$[]="]("to_dir",Q=Pe("File").$dirname(oe)):_e(ze)&&(_e(M)?_e(qe)?lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(qe,M))):lt["$[]="]("to_dir",Pe("File").$expand_path(M)):_e(qe)&<["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(qe)))),F=K.$load(rt,lt),_e(oe)?(q=Pe("File").$join(Q,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix()),y(q,oe)&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q)):_e(ze)?(ie=_e(lt["$key?"]("base_dir"))?Pe("File").$expand_path(lt["$[]"]("base_dir")):Pe("Dir").$pwd(),O=_e(W(F.$safe(),Pe(tt("SafeMode"),"SAFE")))?ie:De,_e(M)?(Q=F.$normalize_system_path(M,ie,O,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),_e(qe)?(q=F.$normalize_system_path(qe,Q,De,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),Q=Pe("File").$dirname(q)):q=Pe("File").$join(Q,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix())):_e(qe)&&(q=F.$normalize_system_path(qe,ie,O,re(["target_name","recover"],{target_name:"to_dir",recover:!1})),Q=Pe("File").$dirname(q)),V(Pe("File"),rt)&&y(q,Pe("File").$absolute_path(rt.$path()))&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q),_e(He)?tt("Helpers").$mkdir_p(Q):_e(Pe("File")["$directory?"](Q))||K.$raise(Pe("IOError"),"target directory does not exist: "+M+" (hint: set :mkdirs option)")):(q=qe,Q=De),_e(q)&&Ue(ye)?$e=F.$convert(re(["outfile","outdir"],{outfile:q,outdir:Q})):$e=F.$convert(),_e(q)?(F.$write($e,q),Ue(ye)&&_e(G(F.$safe(),Pe(tt("SafeMode"),"SECURE")))&&_e(F["$attr?"]("linkcss"))&&_e(F["$attr?"]("copycss"))&&_e(F["$basebackend?"]("html"))&&Ue(_e(we=H=F.$attr("stylesdir"))?tt("Helpers")["$uriish?"](H):we)&&(_e(g=F.$attr("stylesheet"))&&(_e(tt("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?o=!0:Ue(tt("Helpers")["$uriish?"](g))&&(m=!0)),C=_e(we=k=F.$syntax_highlighter())?k["$write_stylesheet?"](F):we,(_e(o)||_e(m)||_e(C))&&(b=F.$normalize_system_path(H,Q,_e(W(F.$safe(),Pe(tt("SafeMode"),"SAFE")))?Q:De),_e(He)?tt("Helpers").$mkdir_p(b):_e(Pe("File")["$directory?"](b))||K.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+b+" (hint: set :mkdirs option)"),_e(o)?tt("Stylesheets").$instance().$write_primary_stylesheet(b):_e(m)&&(y(L=F.$attr("copycss"),"")||y(L,!0)?L=F.$normalize_system_path(g):L=F.$normalize_system_path(L.$to_s()),P=F.$normalize_system_path(g,b,_e(W(F.$safe(),Pe(tt("SafeMode"),"SAFE")))?Q:De),Me(L,P)&&_e(de=F.$read_asset(L,re(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](P)["$!"](),label:"stylesheet"})))&&(Me(le=Pe("File").$dirname(P),b)&&Ue(Pe("File")["$directory?"](le))&&(_e(He)?tt("Helpers").$mkdir_p(le):K.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+le+" (hint: set :mkdirs option)")),Pe("File").$write(P,de,re(["mode"],{mode:tt("FILE_WRITE_MODE")})))),_e(C)&&k.$write_stylesheet(F,b))),F):$e},-2),E(Oe,"$convert_file",function(rt,lt){var K=this;return lt==null&&(lt=re([],{})),et(Pe("File"),"open",[rt,tt("FILE_READ_MODE")],function M(He){var we=M.$$s==null?this:M.$$s;return He==null&&(He=De),we.$convert(He,lt)},{$$s:K})},-2),Re(Oe,"render","convert"),Re(Oe,"render_file","convert_file")}(a.get_singleton_class(st),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ae=a.module,re=a.klass,V=a.slice,_e=a.send2,y=a.find_super,W=a.to_a,Ue=a.def,G=a.hash2,Me=a.send,E=a.truthy,et=a.return_val,Re=a.eqeq,Ge=[],De=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Oe=a.$r(We);return function(ft,R,tt){var A=re(ft,R,"HighlightJsAdapter"),rt=[A].concat(tt),lt=a.$r(rt);return A.$register_for("highlightjs","highlight.js"),Ue(A,"$initialize",function K(M){var He,we,qe=K.$$p||De,ze=this;return K.$$p=null,He=V(arguments),we=He,_e(ze,y(ze,"initialize",K,!1,!0),"initialize",W(we),qe),ze.name=ze.pre_class="highlightjs"},-1),Ue(A,"$format",function K(M,He,we){K.$$p;var qe=this;return K.$$p=null,_e(qe,y(qe,"format",K,!1,!0),"format",[M,He,we.$merge(G(["transform"],{transform:Me(qe,"proc",[],function(oe,ye){var Q,F=De;return ye==null&&(ye=De),Q=["class","language-"+(E(F=He)?F:"none")+" hljs"],Me(ye,"[]=",Q),Q[Q.length-1]})}))],null)}),Ue(A,"$docinfo?",et(!0)),Ue(A,"$docinfo",function(M,He,we){var qe=De;return qe=He.$attr("highlightjsdir",""+we["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),Re(M,"head")?'<link rel="stylesheet" href="'+qe+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+we["$[]"]("self_closing_tag_slash")+">":'<script src="'+qe+`/highlight.min.js"><\/script>
|
|
424
|
-
`+(E(He["$attr?"]("highlightjs-languages"))?Me(He.$attr("highlightjs-languages").$split(","),"map",[],function(oe){return oe==null&&(oe=De),'<script src="'+qe+"/languages/"+oe.$lstrip()+`.min.js"><\/script>
|
|
425
|
-
`}).$join():"")+`<script>
|
|
426
|
-
if (!hljs.initHighlighting.called) {
|
|
427
|
-
hljs.initHighlighting.called = true
|
|
428
|
-
;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
|
|
429
|
-
}
|
|
430
|
-
<\/script>`})}(Oe("SyntaxHighlighter"),Pe(Oe("SyntaxHighlighter"),"Base"),We)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ae=a.module,re=a.hash2,V=a.def,_e=a.return_val,y=a.defs,W=a.slice,Ue=a.send,G=a.to_a,Me=a.truthy,E=a.eqeqeq,et=a.Class,Re=a.klass,Ge=a.class_variable_set,De=a.class_variable_get,Pe=a.top,dt=[],Ye=a.nil,st=a.$$$;return a.add_stubs("attr_reader,raise,class,extend,private_class_method,register,map,to_s,each,[]=,registry,[],for,===,new,name,private,include,delete,join,content"),function(We,Oe){var ft=ae(We,"Asciidoctor"),R=[ft].concat(Oe);return function(tt,A){var rt=ae(tt,"SyntaxHighlighter"),lt=[rt].concat(A),K=a.$r(lt);return rt.$attr_reader("name"),V(rt,"$initialize",function(He,we,qe){var ze=this;return qe==null&&(qe=re([],{})),ze.name=ze.pre_class=He},-2),V(rt,"$docinfo?",_e(Ye)),V(rt,"$docinfo",function(He,we,qe){var ze=this;return ze.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+ze.$class()+" must implement the #docinfo method since #docinfo? returns true")}),V(rt,"$highlight?",_e(Ye)),V(rt,"$highlight",function(He,we,qe,ze){var oe=this;return oe.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+oe.$class()+" must implement the #highlight method since #highlight? returns true")}),V(rt,"$format",function(He,we,qe){var ze=this;return ze.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+ze.$class()+" must implement the #format method")}),V(rt,"$write_stylesheet?",_e(Ye)),V(rt,"$write_stylesheet",function(He,we){var qe=this;return qe.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+qe.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),y(rt,"$included",function(He){return He.$extend(K("Config"))}),rt.$private_class_method("included"),function(M,He){var we=ae(M,"Config"),qe=[we].concat(He),ze=a.$r(qe);return V(we,"$register_for",function(ye){var Q,F,q=this;return Q=W(arguments),F=Q,Ue(ze("SyntaxHighlighter"),"register",[q].concat(G(Ue(F,"map",[],function(O){return O==null&&(O=Ye),O.$to_s()}))))},-1)}(lt[0],lt),function(M,He){var we=ae(M,"Factory"),qe=[we].concat(He),ze=a.$r(qe);return V(we,"$register",function(ye,Q){var F,q,ie=this;return F=W(arguments,1),q=F,Ue(q,"each",[],function O($e){var H,g=O.$$s==null?this:O.$$s;return $e==null&&($e=Ye),H=[$e,ye],Ue(g.$registry(),"[]=",H),H[H.length-1]},{$$s:ie})},-2),V(we,"$for",function(ye){var Q=this;return Q.$registry()["$[]"](ye)}),V(we,"$create",function(ye,Q,F){var q=this,ie=Ye;return Q==null&&(Q="html5"),F==null&&(F=re([],{})),Me(ie=q.$for(ye))?(E(et,ie)&&(ie=ie.$new(ye,Q,F)),Me(ie.$name())||q.$raise(st("NameError"),""+ie.$class()+" must specify a value for `name'"),ie):Ye},-2),we.$private(),V(we,"$registry",function(){var ye=this;return ye.$raise(st("NotImplementedError"),""+ze("Factory")+" subclass "+ye.$class()+" must implement the #registry method")})}(lt[0],lt),function(M,He,we){var qe=Re(M,He,"CustomFactory"),ze=[qe].concat(we),oe=a.$r(ze);return qe.$include(oe("Factory")),V(qe,"$initialize",function(Q){var F=this,q=Ye;return Q==null&&(Q=Ye),F.registry=Me(q=Q)?q:re([],{})},-1),qe.$private(),qe.$attr_reader("registry")}(lt[0],null,lt),function(M,He){var we=ae(M,"DefaultFactory"),qe=[we].concat(He),ze=a.$r(qe);return we.$include(ze("Factory")),Ge(qe[0],"@@registry",re([],{})),we.$private(),V(we,"$registry",function(){return De(qe[0],"@@registry",!1)}),Ye}(lt[0],lt),function(M,He,we){var qe=Re(M,He,"DefaultFactoryProxy"),ze=[qe].concat(we),oe=a.$r(ze);return qe.$include(oe("DefaultFactory")),Ye}(lt[0],K("CustomFactory"),lt),function(M,He,we){var qe=Re(M,He,"Base"),ze=[qe].concat(we),oe=a.$r(ze),ye=qe.$$prototype;return ye.pre_class=Ye,qe.$include(oe("SyntaxHighlighter")),V(qe,"$format",function(F,q,ie){var O=this,$e=Ye,H=Ye,g=Ye,o=Ye;return $e=Me(ie["$[]"]("nowrap"))?""+O.pre_class+" highlight nowrap":""+O.pre_class+" highlight",Me(H=ie["$[]"]("transform"))?(H["$[]"](g=re(["class"],{class:$e}),o=Me(q)?re(["data-lang"],{"data-lang":q}):re([],{})),Me(q=o.$delete("data-lang"))&&o["$[]="]("data-lang",q),"<pre"+Ue(g,"map",[],function(C,k){return C==null&&(C=Ye),k==null&&(k=Ye)," "+C+'="'+k+'"'}).$join()+"><code"+Ue(o,"map",[],function(C,k){return C==null&&(C=Ye),k==null&&(k=Ye)," "+C+'="'+k+'"'}).$join()+">"+F.$content()+"</code></pre>"):'<pre class="'+$e+'"><code'+(Me(q)?' data-lang="'+q+'"':"")+">"+F.$content()+"</code></pre>"})}(lt[0],null,lt),rt.$extend(K("DefaultFactory"))}(R[0],R)}(dt[0],dt),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),Ye},Opal.modules["asciidoctor/timings"]=function(a){var ae=a.module,re=a.klass,V=a.hash2,_e=a.def,y=a.send,W=a.rb_minus,Ue=a.slice,G=a.rb_plus,Me=a.truthy,E=a.rb_gt,et=a.gvars,Re=a.eqeq,Ge=a.const_set,De=[],Pe=a.nil,dt=a.$$$;return a.add_stubs("[]=,now,-,delete,reduce,+,[],>,time,puts,sprintf,to_f,read_parse,convert,read_parse_convert,private,==,const_defined?,clock_gettime"),function(Ye,st){var We=ae(Ye,"Asciidoctor"),Oe=[We].concat(st);return function(ft,R,tt){var A=re(ft,R,"Timings"),rt,lt,K,M,He=[A].concat(tt),we=a.$r(He),qe=A.$$prototype;return qe.timers=qe.log=Pe,_e(A,"$initialize",function(){var oe=this;return oe.log=V([],{}),oe.timers=V([],{})}),_e(A,"$start",function(oe){var ye,Q=this;return ye=[oe,Q.$now()],y(Q.timers,"[]=",ye),ye[ye.length-1]}),_e(A,"$record",function(oe){var ye,Q=this;return ye=[oe,W(Q.$now(),Q.timers.$delete(oe))],y(Q.log,"[]=",ye),ye[ye.length-1]}),_e(A,"$time",function(oe){var ye,Q,F=this,q=Pe;return ye=Ue(arguments),Q=ye,q=y(Q,"reduce",[0],function ie(O,$e){var H=ie.$$s==null?this:ie.$$s,g=Pe;return H.log==null&&(H.log=Pe),O==null&&(O=Pe),$e==null&&($e=Pe),G(O,Me(g=H.log["$[]"]($e))?g:0)},{$$s:F}),Me(E(q,0))?q:Pe},-1),_e(A,"$read",function(){var oe=this;return oe.$time("read")}),_e(A,"$parse",function(){var oe=this;return oe.$time("parse")}),_e(A,"$read_parse",function(){var oe=this;return oe.$time("read","parse")}),_e(A,"$convert",function(){var oe=this;return oe.$time("convert")}),_e(A,"$read_parse_convert",function(){var oe=this;return oe.$time("read","parse","convert")}),_e(A,"$write",function(){var oe=this;return oe.$time("write")}),_e(A,"$total",function(){var oe=this;return oe.$time("read","parse","convert","write")}),_e(A,"$print_report",function(oe,ye){var Q=this;return et.stdout==null&&(et.stdout=Pe),oe==null&&(oe=et.stdout),ye==null&&(ye=Pe),Me(ye)&&oe.$puts("Input file: "+ye),oe.$puts(" Time to read and parse source: "+Q.$sprintf("%05.5f",Q.$read_parse().$to_f())),oe.$puts(" Time to convert document: "+Q.$sprintf("%05.5f",Q.$convert().$to_f())),oe.$puts(" Total time (read, parse and convert): "+Q.$sprintf("%05.5f",Q.$read_parse_convert().$to_f()))},-1),A.$private(),Me(dt("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&Re((rt=dt("::","Process","skip_raise"))&&(lt=rt,lt)&&(K=lt)&&((M=K.$clock_gettime)&&!M.$$stub||K["$respond_to_missing?"]("clock_gettime"))?"method":Pe,"method")?(Ge(He[0],"CLOCK_ID",dt(dt("Process"),"CLOCK_MONOTONIC")),_e(A,"$now",function(){return dt("Process").$clock_gettime(we("CLOCK_ID"))})):_e(A,"$now",function(){return dt("Time").$now()})}(Oe[0],null,Oe)}(De[0],De)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ae=a.module,re=a.klass,V=a.const_set,_e=a.hash2,y=a.regexp,W=a.eqeq,Ue=a.def,G=a.send2,Me=a.find_super,E=a.truthy,et=a.send,Re=a.rb_gt,Ge=a.rb_plus,De=a.not,Pe=a.neqeq,dt=a.rb_le,Ye=a.rb_lt,st=a.to_ary,We=a.rb_times,Oe=a.rb_minus,ft=a.gvars,R=a.return_val,tt=a.alias,A=a.eqeqeq,rt=a.slice,lt=a.to_a,K=[],M=a.nil,He=a.$$$;return a.add_stubs("register_for,default=,==,[],init_backend_traits,node_name,convert_inline_quoted,convert_paragraph,convert_inline_anchor,convert_section,convert_listing,convert_literal,convert_ulist,convert_olist,convert_dlist,convert_admonition,convert_colist,convert_embedded,convert_example,convert_floating_title,convert_image,convert_inline_break,convert_inline_button,convert_inline_callout,convert_inline_footnote,convert_inline_image,convert_inline_indexterm,convert_inline_kbd,convert_inline_menu,convert_open,convert_page_break,convert_preamble,convert_quote,convert_sidebar,convert_stem,convert_table,convert_thematic_break,convert_verse,convert_video,convert_document,convert_toc,convert_pass,convert_audio,empty?,attr,attr?,<<,include?,sub_replacements,gsub,extname,slice,length,doctitle,normalize_web_path,primary_stylesheet_data,instance,read_contents,syntax_highlighter,size,docinfo,id,sections?,doctype,role?,role,join,noheader,convert,converter,generate_manname_section,header?,notitle,title,header,each,authors,>,name,email,sub_macros,+,downcase,concat,content,!,footnotes?,footnotes,index,text,nofooter,docinfo?,[]=,delete_at,inspect,!=,to_i,attributes,document,sections,level,caption,captioned_title,<=,numbered,<,sectname,sectnum,convert_outline,title?,icon_uri,compact,media_uri,option?,append_boolean_attribute,style,items,blocks?,text?,chomp,safe,read_svg_contents,alt,image_uri,encode_attribute_value,append_link_constraint_attrs,highlight?,to_sym,format,*,-,count,end_with?,start_with?,list_marker_keyword,parent,warn,logger,context,error,content_only,new,columns,to_h,rows,colspan,rowspan,unshift,shift,split,pop,nil_or_empty?,type,===,catalog,get_root_document,xreftext,target,reftext,chop,sub,match,private,upcase,nested?,parent_document,handles?,to_s,send"),function(we,qe){var ze=ae(we,"Asciidoctor"),oe=[ze].concat(qe),ye=a.$r(oe);return function(Q,F,q){var ie=re(Q,F,"Html5Converter"),O=[ie].concat(q),$e=a.$r(O),H=ie.$$prototype;return H.void_element_slash=H.xml_mode=H.refs=H.resolving_xref=M,ie.$register_for("html5"),V(O[0],"QUOTE_TAGS",_e(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["“","”"],single:["‘","’"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),V(O[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),V(O[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),V(O[0],"SvgPreambleRx",y(["^",$e("CC_ALL"),"*?(?=<svg[\\s>])"])),V(O[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),V(O[0],"DimensionAttributeRx",y([`\\s(?:width|height|style)=(["'])`,$e("CC_ANY"),"*?\\1"])),Ue(ie,"$initialize",function(o,m){var C=this,k=M;return m==null&&(m=_e([],{})),C.backend=o,W(m["$[]"]("htmlsyntax"),"xml")?(k="xml",C.xml_mode=!0,C.void_element_slash="/"):(k="html",C.xml_mode=M,C.void_element_slash=""),C.$init_backend_traits(_e(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:k,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ie,"$convert",function g(o,m,C){var k=g.$$p||M,b=this;switch(g.$$p=null,m==null&&(m=o.$node_name()),C==null&&(C=M),m){case"inline_quoted":return b.$convert_inline_quoted(o);case"paragraph":return b.$convert_paragraph(o);case"inline_anchor":return b.$convert_inline_anchor(o);case"section":return b.$convert_section(o);case"listing":return b.$convert_listing(o);case"literal":return b.$convert_literal(o);case"ulist":return b.$convert_ulist(o);case"olist":return b.$convert_olist(o);case"dlist":return b.$convert_dlist(o);case"admonition":return b.$convert_admonition(o);case"colist":return b.$convert_colist(o);case"embedded":return b.$convert_embedded(o);case"example":return b.$convert_example(o);case"floating_title":return b.$convert_floating_title(o);case"image":return b.$convert_image(o);case"inline_break":return b.$convert_inline_break(o);case"inline_button":return b.$convert_inline_button(o);case"inline_callout":return b.$convert_inline_callout(o);case"inline_footnote":return b.$convert_inline_footnote(o);case"inline_image":return b.$convert_inline_image(o);case"inline_indexterm":return b.$convert_inline_indexterm(o);case"inline_kbd":return b.$convert_inline_kbd(o);case"inline_menu":return b.$convert_inline_menu(o);case"open":return b.$convert_open(o);case"page_break":return b.$convert_page_break(o);case"preamble":return b.$convert_preamble(o);case"quote":return b.$convert_quote(o);case"sidebar":return b.$convert_sidebar(o);case"stem":return b.$convert_stem(o);case"table":return b.$convert_table(o);case"thematic_break":return b.$convert_thematic_break(o);case"verse":return b.$convert_verse(o);case"video":return b.$convert_video(o);case"document":return b.$convert_document(o);case"toc":return b.$convert_toc(o);case"pass":return b.$convert_pass(o);case"audio":return b.$convert_audio(o);default:return G(b,Me(b,"convert",g,!1,!0),"convert",[o,m,C],k)}},-2),Ue(ie,"$convert_document",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,gt=M,yt=M,xt=M,vt=M,Rt=M,Tt=M,Yt=M,Bt=M,er=M,Kt=M,Pt=M,Wt=M;return C="<br"+(k=m.void_element_slash)+">",E((b=o.$attr("asset-uri-scheme","https"))["$empty?"]())||(b=""+b+":"),L=""+b+"//cdnjs.cloudflare.com/ajax/libs",P=o["$attr?"]("linkcss"),de=E(o["$attr?"]("max-width"))?' style="max-width: '+o.$attr("max-width")+';"':"",le=["<!DOCTYPE html>"],ke=E(o["$attr?"]("nolang"))?"":' lang="'+o.$attr("lang","en")+'"',le["$<<"]("<html"+(E(m.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+ke+">"),le["$<<"](`<head>
|
|
431
|
-
<meta charset="`+o.$attr("encoding","UTF-8")+'"'+k+`>
|
|
432
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"`+k+`>
|
|
433
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"`+k+`>
|
|
434
|
-
<meta name="generator" content="Asciidoctor `+o.$attr("asciidoctor-version")+'"'+k+">"),E(o["$attr?"]("app-name"))&&le["$<<"]('<meta name="application-name" content="'+o.$attr("app-name")+'"'+k+">"),E(o["$attr?"]("description"))&&le["$<<"]('<meta name="description" content="'+o.$attr("description")+'"'+k+">"),E(o["$attr?"]("keywords"))&&le["$<<"]('<meta name="keywords" content="'+o.$attr("keywords")+'"'+k+">"),E(o["$attr?"]("authors"))&&le["$<<"]('<meta name="author" content="'+(E((Be=o.$sub_replacements(o.$attr("authors")))["$include?"]("<"))?Be.$gsub($e("XmlSanitizeRx"),""):Be)+'"'+k+">"),E(o["$attr?"]("copyright"))&&le["$<<"]('<meta name="copyright" content="'+o.$attr("copyright")+'"'+k+">"),E(o["$attr?"]("favicon"))&&(E((Xe=o.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):E(ht=$e("Helpers").$extname(Xe,M))?it=W(ht,".ico")?"image/x-icon":"image/"+ht.$slice(1,ht.$length()):it="image/x-icon",le["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+k+">")),le["$<<"]("<title>"+o.$doctitle(_e(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),E($e("DEFAULT_STYLESHEET_KEYS")["$include?"](o.$attr("stylesheet")))?(E(at=o.$attr("webfonts"))&&le["$<<"]('<link rel="stylesheet" href="'+b+"//fonts.googleapis.com/css?family="+(E(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+k+">"),E(P)?le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path($e("DEFAULT_STYLESHEET_NAME"),o.$attr("stylesdir",""),!1)+'"'+k+">"):le["$<<"](`<style>
|
|
435
|
-
`+$e("Stylesheets").$instance().$primary_stylesheet_data()+`
|
|
436
|
-
</style>`)):E(o["$attr?"]("stylesheet"))&&(E(P)?le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(o.$attr("stylesheet"),o.$attr("stylesdir",""))+'"'+k+">"):le["$<<"](`<style>
|
|
437
|
-
`+o.$read_contents(o.$attr("stylesheet"),_e(["start","warn_on_failure","label"],{start:o.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
|
|
438
|
-
</style>`)),E(o["$attr?"]("icons","font"))&&(E(o["$attr?"]("iconfont-remote"))?le["$<<"]('<link rel="stylesheet" href="'+o.$attr("iconfont-cdn",""+L+"/font-awesome/"+$e("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+k+">"):(gt=""+o.$attr("iconfont-name","font-awesome")+".css",le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(gt,o.$attr("stylesdir",""),!1)+'"'+k+">"))),E(yt=o.$syntax_highlighter())&&le["$<<"](xt=le.$size()),E((vt=o.$docinfo())["$empty?"]())||le["$<<"](vt),le["$<<"]("</head>"),Rt=E(o.$id())?' id="'+o.$id()+'"':"",E(Tt=o["$sections?"]())&&E(o["$attr?"]("toc-class"))&&E(o["$attr?"]("toc"))&&E(o["$attr?"]("toc-placement","auto"))?Yt=[o.$doctype(),o.$attr("toc-class"),"toc-"+o.$attr("toc-position","header")]:Yt=[o.$doctype()],E(o["$role?"]())&&Yt["$<<"](o.$role()),le["$<<"]("<body"+Rt+' class="'+Yt.$join(" ")+'">'),E((vt=o.$docinfo("header"))["$empty?"]())||le["$<<"](vt),E(o.$noheader())||(le["$<<"]('<div id="header"'+de+">"),W(o.$doctype(),"manpage")?(le["$<<"]("<h1>"+o.$doctitle()+" Manual Page</h1>"),E(Tt)&&E(o["$attr?"]("toc"))&&E(o["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
|
|
439
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
440
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
441
|
-
</div>`),E(o["$attr?"]("manpurpose"))&&le["$<<"](m.$generate_manname_section(o))):(E(o["$header?"]())&&(E(o.$notitle())||le["$<<"]("<h1>"+o.$header().$title()+"</h1>"),Bt=[],er=1,et(o.$authors(),"each",[],function(nr){return nr==null&&(nr=M),Bt["$<<"]('<span id="author'+(E(Re(er,1))?er:"")+'" class="author">'+o.$sub_replacements(nr.$name())+"</span>"+C),E(nr.$email())&&Bt["$<<"]('<span id="email'+(E(Re(er,1))?er:"")+'" class="email">'+o.$sub_macros(nr.$email())+"</span>"+C),er=Ge(er,1)}),E(o["$attr?"]("revnumber"))&&Bt["$<<"]('<span id="revnumber">'+(E(Kt=o.$attr("version-label"))?Kt:"").$downcase()+" "+o.$attr("revnumber")+(E(o["$attr?"]("revdate"))?",":"")+"</span>"),E(o["$attr?"]("revdate"))&&Bt["$<<"]('<span id="revdate">'+o.$attr("revdate")+"</span>"),E(o["$attr?"]("revremark"))&&Bt["$<<"](""+C+'<span id="revremark">'+o.$attr("revremark")+"</span>"),E(Bt["$empty?"]())||(le["$<<"]('<div class="details">'),le.$concat(Bt),le["$<<"]("</div>"))),E(Tt)&&E(o["$attr?"]("toc"))&&E(o["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
|
|
442
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
443
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
444
|
-
</div>`)),le["$<<"]("</div>")),le["$<<"]('<div id="content"'+de+`>
|
|
445
|
-
`+o.$content()+`
|
|
446
|
-
</div>`),E(o["$footnotes?"]())&&De(o["$attr?"]("nofootnotes"))&&(le["$<<"]('<div id="footnotes"'+de+`>
|
|
447
|
-
<hr`+k+">"),et(o.$footnotes(),"each",[],function(nr){return nr==null&&(nr=M),le["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
|
|
448
|
-
<a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
|
|
449
|
-
</div>`)}),le["$<<"]("</div>")),E(o.$nofooter())||(le["$<<"]('<div id="footer"'+de+">"),le["$<<"]('<div id="footer-text">'),E(o["$attr?"]("revnumber"))&&le["$<<"](""+o.$attr("version-label")+" "+o.$attr("revnumber")+C),E(o["$attr?"]("last-update-label"))&&De(o["$attr?"]("reproducible"))&&le["$<<"](""+o.$attr("last-update-label")+" "+o.$attr("docdatetime")),le["$<<"]("</div>"),le["$<<"]("</div>")),E(yt)&&(E(yt["$docinfo?"]("head"))?le["$[]="](xt,yt.$docinfo("head",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:L,linkcss:P,self_closing_tag_slash:k}))):le.$delete_at(xt),E(yt["$docinfo?"]("footer"))&&le["$<<"](yt.$docinfo("footer",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:L,linkcss:P,self_closing_tag_slash:k})))),E(o["$attr?"]("stem"))&&(Pt=o.$attr("eqnums","none"),E(Pt["$empty?"]())&&(Pt="AMS"),Wt=' equationNumbers: { autoNumber: "'+Pt+'" } ',le["$<<"](`<script type="text/x-mathjax-config">
|
|
450
|
-
MathJax.Hub.Config({
|
|
451
|
-
messageStyle: "none",
|
|
452
|
-
tex2jax: {
|
|
453
|
-
inlineMath: [`+$e("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
454
|
-
displayMath: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
455
|
-
ignoreClass: "nostem|nolatexmath"
|
|
456
|
-
},
|
|
457
|
-
asciimath2jax: {
|
|
458
|
-
delimiters: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
|
|
459
|
-
ignoreClass: "nostem|noasciimath"
|
|
460
|
-
},
|
|
461
|
-
TeX: {`+Wt+`}
|
|
462
|
-
})
|
|
463
|
-
MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
|
|
464
|
-
MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
|
|
465
|
-
if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
|
|
466
|
-
data.math.root.display = "block"
|
|
467
|
-
}
|
|
468
|
-
return data
|
|
469
|
-
})
|
|
470
|
-
})
|
|
471
|
-
<\/script>
|
|
472
|
-
<script src="`+L+"/mathjax/"+$e("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),E((vt=o.$docinfo("footer"))["$empty?"]())||le["$<<"](vt),le["$<<"]("</body>"),le["$<<"]("</html>"),le.$join($e("LF"))}),Ue(ie,"$convert_embedded",function(o){var m=this,C=M,k=M,b=M;return C=[],W(o.$doctype(),"manpage")?(E(o.$notitle())||(k=E(o.$id())?' id="'+o.$id()+'"':"",C["$<<"]("<h1"+k+">"+o.$doctitle()+" Manual Page</h1>")),E(o["$attr?"]("manpurpose"))&&C["$<<"](m.$generate_manname_section(o))):E(o["$header?"]())&&De(o.$notitle())&&(k=E(o.$id())?' id="'+o.$id()+'"':"",C["$<<"]("<h1"+k+">"+o.$header().$title()+"</h1>")),E(o["$sections?"]())&&E(o["$attr?"]("toc"))&&Pe(b=o.$attr("toc-placement"),"macro")&&Pe(b,"preamble")&&C["$<<"](`<div id="toc" class="toc">
|
|
473
|
-
<div id="toctitle">`+o.$attr("toc-title")+`</div>
|
|
474
|
-
`+o.$converter().$convert(o,"outline")+`
|
|
475
|
-
</div>`),C["$<<"](o.$content()),E(o["$footnotes?"]())&&De(o["$attr?"]("nofootnotes"))&&(C["$<<"](`<div id="footnotes">
|
|
476
|
-
<hr`+m.void_element_slash+">"),et(o.$footnotes(),"each",[],function(P){return P==null&&(P=M),C["$<<"]('<div class="footnote" id="_footnotedef_'+P.$index()+`">
|
|
477
|
-
<a href="#_footnoteref_`+P.$index()+'">'+P.$index()+"</a>. "+P.$text()+`
|
|
478
|
-
</div>`)}),C["$<<"]("</div>")),C.$join($e("LF"))}),Ue(ie,"$convert_outline",function(o,m){var C=this,k=M,b=M,L=M,P=M,de=M,le=M;return m==null&&(m=_e([],{})),E(o["$sections?"]())?(k=E(b=m["$[]"]("sectnumlevels"))?b:(E(L=o.$document().$attributes()["$[]"]("sectnumlevels"))?L:3).$to_i(),P=E(b=m["$[]"]("toclevels"))?b:(E(L=o.$document().$attributes()["$[]"]("toclevels"))?L:2).$to_i(),de=o.$sections(),le=['<ul class="sectlevel'+de["$[]"](0).$level()+'">'],et(de,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=M,ht=M,at=M,gt=M;if(Be==null&&(Be=M),it=Be.$level(),E(Be.$caption()))ht=Be.$captioned_title();else if(E(Be.$numbered())&&E(dt(it,k)))if(E(Ye(it,2))&&W(o.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":ht=(E(at=o.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":ht=(E(at=o.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(M,":")+" "+Be.$title();break;default:ht=""+Be.$sectnum()+" "+Be.$title()}else ht=""+Be.$sectnum()+" "+Be.$title();else ht=Be.$title();return E(ht["$include?"]("<a"))&&(ht=ht.$gsub($e("DropAnchorRx"),"")),E(Ye(it,P))&&E(gt=Xe.$convert_outline(Be,_e(["toclevels","sectnumlevels"],{toclevels:P,sectnumlevels:k})))?(le["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a>"),le["$<<"](gt),le["$<<"]("</li>")):le["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a></li>")},{$$s:C}),le["$<<"]("</ul>"),le.$join($e("LF"))):M},-2),Ue(ie,"$convert_section",function(o){var m=M,C=M,k=M,b=M,L=M,P=M,de=M,le=M;if(m=o.$document().$attributes(),C=o.$level(),E(o.$caption()))k=o.$captioned_title();else if(E(o.$numbered())&&E(dt(C,(E(b=m["$[]"]("sectnumlevels"))?b:3).$to_i())))if(E(Ye(C,2))&&W(o.$document().$doctype(),"book"))switch(o.$sectname()){case"chapter":k=(E(L=m["$[]"]("chapter-signifier"))?""+L+" ":"")+o.$sectnum()+" "+o.$title();break;case"part":k=(E(L=m["$[]"]("part-signifier"))?""+L+" ":"")+o.$sectnum(M,":")+" "+o.$title();break;default:k=""+o.$sectnum()+" "+o.$title()}else k=""+o.$sectnum()+" "+o.$title();else k=o.$title();return E(o.$id())?(P=' id="'+(de=o.$id())+'"',E(m["$[]"]("sectlinks"))&&(k='<a class="link" href="#'+de+'">'+k+"</a>"),E(m["$[]"]("sectanchors"))&&(W(m["$[]"]("sectanchors"),"after")?k=""+k+'<a class="anchor" href="#'+de+'"></a>':k='<a class="anchor" href="#'+de+'"></a>'+k)):P="",W(C,0)?"<h1"+P+' class="sect0'+(E(le=o.$role())?" "+le:"")+'">'+k+`</h1>
|
|
479
|
-
`+o.$content():'<div class="sect'+C+(E(le=o.$role())?" "+le:"")+`">
|
|
480
|
-
<h`+Ge(C,1)+P+">"+k+"</h"+Ge(C,1)+`>
|
|
481
|
-
`+(W(C,1)?`<div class="sectionbody">
|
|
482
|
-
`+o.$content()+`
|
|
483
|
-
</div>`:o.$content())+`
|
|
484
|
-
</div>`}),Ue(ie,"$convert_admonition",function(o){var m=this,C=M,k=M,b=M,L=M,P=M;return C=E(o.$id())?' id="'+o.$id()+'"':"",k=o.$attr("name"),b=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
485
|
-
`:"",E(o.$document()["$attr?"]("icons"))?E(o.$document()["$attr?"]("icons","font"))&&De(o["$attr?"]("icon"))?L='<i class="fa icon-'+k+'" title="'+o.$attr("textlabel")+'"></i>':L='<img src="'+o.$icon_uri(k)+'" alt="'+o.$attr("textlabel")+'"'+m.void_element_slash+">":L='<div class="title">'+o.$attr("textlabel")+"</div>","<div"+C+' class="admonitionblock '+k+(E(P=o.$role())?" "+P:"")+`">
|
|
486
|
-
<table>
|
|
487
|
-
<tr>
|
|
488
|
-
<td class="icon">
|
|
489
|
-
`+L+`
|
|
490
|
-
</td>
|
|
491
|
-
<td class="content">
|
|
492
|
-
`+b+o.$content()+`
|
|
493
|
-
</td>
|
|
494
|
-
</tr>
|
|
495
|
-
</table>
|
|
496
|
-
</div>`}),Ue(ie,"$convert_audio",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M;return C=m.xml_mode,k=E(o.$id())?' id="'+o.$id()+'"':"",b=["audioblock",o.$role()].$compact(),L=' class="'+b.$join(" ")+'"',P=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
497
|
-
`:"",de=o.$attr("start"),le=o.$attr("end"),ke=E(de)||E(le)?"#t="+(E(Be=de)?Be:"")+(E(le)?","+le:""):"","<div"+k+L+`>
|
|
498
|
-
`+P+`<div class="content">
|
|
499
|
-
<audio src="`+o.$media_uri(o.$attr("target"))+ke+'"'+(E(o["$option?"]("autoplay"))?m.$append_boolean_attribute("autoplay",C):"")+(E(o["$option?"]("nocontrols"))?"":m.$append_boolean_attribute("controls",C))+(E(o["$option?"]("loop"))?m.$append_boolean_attribute("loop",C):"")+`>
|
|
500
|
-
Your browser does not support the audio tag.
|
|
501
|
-
</audio>
|
|
502
|
-
</div>
|
|
503
|
-
</div>`}),Ue(ie,"$convert_colist",function(o){var m,C=this,k=M,b=M,L=M,P=M,de=M,le=M;return k=[],b=E(o.$id())?' id="'+o.$id()+'"':"",L=["colist",o.$style(),o.$role()].$compact(),P=' class="'+L.$join(" ")+'"',k["$<<"]("<div"+b+P+">"),E(o["$title?"]())&&k["$<<"]('<div class="title">'+o.$title()+"</div>"),E(o.$document()["$attr?"]("icons"))?(k["$<<"]("<table>"),m=[o.$document()["$attr?"]("icons","font"),0],de=m[0],le=m[1],et(o.$items(),"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=M;return Xe.void_element_slash==null&&(Xe.void_element_slash=M),Be==null&&(Be=M),le=Ge(le,1),E(de)?it='<i class="conum" data-value="'+le+'"></i><b>'+le+"</b>":it='<img src="'+o.$icon_uri("callouts/"+le)+'" alt="'+le+'"'+Xe.void_element_slash+">",k["$<<"](`<tr>
|
|
504
|
-
<td>`+it+`</td>
|
|
505
|
-
<td>`+Be.$text()+(E(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`</td>
|
|
506
|
-
</tr>`)},{$$s:C}),k["$<<"]("</table>")):(k["$<<"]("<ol>"),et(o.$items(),"each",[],function(Be){return Be==null&&(Be=M),k["$<<"](`<li>
|
|
507
|
-
<p>`+Be.$text()+"</p>"+(E(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`
|
|
508
|
-
</li>`)}),k["$<<"]("</ol>")),k["$<<"]("</div>"),k.$join($e("LF"))}),Ue(ie,"$convert_dlist",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M;switch(C=[],k=E(o.$id())?' id="'+o.$id()+'"':"",o.$style()){case"qanda":b=["qlist","qanda",o.$role()];break;case"horizontal":b=["hdlist",o.$role()];break;default:b=["dlist",o.$style(),o.$role()]}switch(L=' class="'+b.$compact().$join(" ")+'"',C["$<<"]("<div"+k+L+">"),E(o["$title?"]())&&C["$<<"]('<div class="title">'+o.$title()+"</div>"),o.$style()){case"qanda":C["$<<"]("<ol>"),et(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),C["$<<"]("<li>"),et(Be,"each",[],function(ht){return ht==null&&(ht=M),C["$<<"]("<p><em>"+ht.$text()+"</em></p>")}),E(Xe)&&(E(Xe["$text?"]())&&C["$<<"]("<p>"+Xe.$text()+"</p>"),E(Xe["$blocks?"]())&&C["$<<"](Xe.$content())),C["$<<"]("</li>")}),C["$<<"]("</ol>");break;case"horizontal":P=m.void_element_slash,C["$<<"]("<table>"),(E(o["$attr?"]("labelwidth"))||E(o["$attr?"]("itemwidth")))&&(C["$<<"]("<colgroup>"),de=E(o["$attr?"]("labelwidth"))?' style="width: '+o.$attr("labelwidth").$chomp("%")+'%;"':"",C["$<<"]("<col"+de+P+">"),de=E(o["$attr?"]("itemwidth"))?' style="width: '+o.$attr("itemwidth").$chomp("%")+'%;"':"",C["$<<"]("<col"+de+P+">"),C["$<<"]("</colgroup>")),et(o.$items(),"each",[],function(Be,Xe){var it=M;return Be==null&&(Be=M),Xe==null&&(Xe=M),C["$<<"]("<tr>"),C["$<<"]('<td class="hdlist1'+(E(o["$option?"]("strong"))?" strong":"")+'">'),it=!0,et(Be,"each",[],function(at){return at==null&&(at=M),E(it)||C["$<<"]("<br"+P+">"),C["$<<"](at.$text()),it=M}),C["$<<"]("</td>"),C["$<<"]('<td class="hdlist2">'),E(Xe)&&(E(Xe["$text?"]())&&C["$<<"]("<p>"+Xe.$text()+"</p>"),E(Xe["$blocks?"]())&&C["$<<"](Xe.$content())),C["$<<"]("</td>"),C["$<<"]("</tr>")}),C["$<<"]("</table>");break;default:C["$<<"]("<dl>"),le=E(o.$style())?"":' class="hdlist1"',et(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),et(Be,"each",[],function(ht){return ht==null&&(ht=M),C["$<<"]("<dt"+le+">"+ht.$text()+"</dt>")}),E(Xe)?(C["$<<"]("<dd>"),E(Xe["$text?"]())&&C["$<<"]("<p>"+Xe.$text()+"</p>"),E(Xe["$blocks?"]())&&C["$<<"](Xe.$content()),C["$<<"]("</dd>")):M}),C["$<<"]("</dl>")}return C["$<<"]("</div>"),C.$join($e("LF"))}),Ue(ie,"$convert_example",function(o){var m=M,C=M,k=M,b=M,L=M;return m=E(o.$id())?' id="'+o.$id()+'"':"",E(o["$option?"]("collapsible"))?(C=E(o.$role())?' class="'+o.$role()+'"':"",k=E(o["$title?"]())?'<summary class="title">'+o.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+m+C+(E(o["$option?"]("open"))?" open":"")+`>
|
|
509
|
-
`+k+`
|
|
510
|
-
<div class="content">
|
|
511
|
-
`+o.$content()+`
|
|
512
|
-
</div>
|
|
513
|
-
</details>`):(b=E(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
|
|
514
|
-
`:"","<div"+m+' class="exampleblock'+(E(L=o.$role())?" "+L:"")+`">
|
|
515
|
-
`+b+`<div class="content">
|
|
516
|
-
`+o.$content()+`
|
|
517
|
-
</div>
|
|
518
|
-
</div>`)}),Ue(ie,"$convert_floating_title",function(o){var m=M,C=M,k=M;return m="h"+Ge(o.$level(),1),C=E(o.$id())?' id="'+o.$id()+'"':"",k=[o.$style(),o.$role()].$compact(),"<"+m+C+' class="'+k.$join(" ")+'">'+o.$title()+"</"+m+">"}),Ue(ie,"$convert_image",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M;return C=o.$attr("target"),k=E(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",b=E(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",(E(o["$attr?"]("format","svg"))||E(C["$include?"](".svg")))&&E(Ye(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?E(o["$option?"]("inline"))?L=E(P=m.$read_svg_contents(o,C))?P:'<span class="alt">'+o.$alt()+"</span>":E(o["$option?"]("interactive"))?(de=E(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+b+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",L='<object type="image/svg+xml" data="'+o.$image_uri(C)+'"'+k+b+">"+de+"</object>"):L='<img src="'+o.$image_uri(C)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+b+m.void_element_slash+">":L='<img src="'+o.$image_uri(C)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+k+b+m.void_element_slash+">",E(o["$attr?"]("link"))&&(L='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+L+"</a>"),le=E(o.$id())?' id="'+o.$id()+'"':"",ke=["imageblock"],E(o["$attr?"]("float"))&&ke["$<<"](o.$attr("float")),E(o["$attr?"]("align"))&&ke["$<<"]("text-"+o.$attr("align")),E(o.$role())&&ke["$<<"](o.$role()),Be=' class="'+ke.$join(" ")+'"',Xe=E(o["$title?"]())?`
|
|
519
|
-
<div class="title">`+o.$captioned_title()+"</div>":"","<div"+le+Be+`>
|
|
520
|
-
<div class="content">
|
|
521
|
-
`+L+`
|
|
522
|
-
</div>`+Xe+`
|
|
523
|
-
</div>`}),Ue(ie,"$convert_listing",function(o){var m=M,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M;return m=E(C=o["$option?"]("nowrap"))?C:o.$document()["$attr?"]("prewrap")["$!"](),W(o.$style(),"source")?(k=o.$attr("language"),E(b=o.$document().$syntax_highlighter())?(L=E(b["$highlight?"]())?_e(["css_mode","style"],{css_mode:(E(C=(P=o.$document().$attributes())["$[]"](""+b.$name()+"-css"))?C:"class").$to_sym(),style:P["$[]"](""+b.$name()+"-style")}):_e([],{}),L["$[]="]("nowrap",m)):(de='<pre class="highlight'+(E(m)?" nowrap":"")+'"><code'+(E(k)?' class="language-'+k+'" data-lang="'+k+'"':"")+">",le="</code></pre>")):(de="<pre"+(E(m)?' class="nowrap"':"")+">",le="</pre>"),ke=E(o.$id())?' id="'+o.$id()+'"':"",Be=E(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
|
|
524
|
-
`:"","<div"+ke+' class="listingblock'+(E(Xe=o.$role())?" "+Xe:"")+`">
|
|
525
|
-
`+Be+`<div class="content">
|
|
526
|
-
`+(E(b)?b.$format(o,k,L):Ge(Ge(de,o.$content()),le))+`
|
|
527
|
-
</div>
|
|
528
|
-
</div>`}),Ue(ie,"$convert_literal",function(o){var m=M,C=M,k=M,b=M,L=M;return m=E(o.$id())?' id="'+o.$id()+'"':"",C=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
529
|
-
`:"",k=E(b=o.$document()["$attr?"]("prewrap")["$!"]())?b:o["$option?"]("nowrap"),"<div"+m+' class="literalblock'+(E(L=o.$role())?" "+L:"")+`">
|
|
530
|
-
`+C+`<div class="content">
|
|
531
|
-
<pre`+(E(k)?' class="nowrap"':"")+">"+o.$content()+`</pre>
|
|
532
|
-
</div>
|
|
533
|
-
</div>`}),Ue(ie,"$convert_stem",function(o){var m,C,k=this,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M;return b=E(o.$id())?' id="'+o.$id()+'"':"",L=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
534
|
-
`:"",C=$e("BLOCK_MATH_DELIMITERS")["$[]"](P=o.$style().$to_sym()),m=st(C),de=m[0]==null?M:m[0],le=m[1]==null?M:m[1],E(ke=o.$content())?(W(P,"asciimath")&&E(ke["$include?"]($e("LF")))&&(Be=""+$e("LF")+"<br"+k.void_element_slash+">",ke=et(ke,"gsub",[$e("StemBreakRx")],function(){var ht;return""+le+We(Be,Oe(((ht=ft["~"])===M?M:ht["$[]"](0)).$count($e("LF")),1))+$e("LF")+de})),E(ke["$start_with?"](de))&&E(ke["$end_with?"](le))||(ke=""+de+ke+le)):ke="","<div"+b+' class="stemblock'+(E(Xe=o.$role())?" "+Xe:"")+`">
|
|
535
|
-
`+L+`<div class="content">
|
|
536
|
-
`+ke+`
|
|
537
|
-
</div>
|
|
538
|
-
</div>`}),Ue(ie,"$convert_olist",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M;return C=[],k=E(o.$id())?' id="'+o.$id()+'"':"",b=["olist",o.$style(),o.$role()].$compact(),L=' class="'+b.$join(" ")+'"',C["$<<"]("<div"+k+L+">"),E(o["$title?"]())&&C["$<<"]('<div class="title">'+o.$title()+"</div>"),P=E(de=o.$list_marker_keyword())?' type="'+de+'"':"",le=E(o["$attr?"]("start"))?' start="'+o.$attr("start")+'"':"",ke=E(o["$option?"]("reversed"))?m.$append_boolean_attribute("reversed",m.xml_mode):"",C["$<<"]('<ol class="'+o.$style()+'"'+P+le+ke+">"),et(o.$items(),"each",[],function(Xe){return Xe==null&&(Xe=M),E(Xe.$id())?C["$<<"]('<li id="'+Xe.$id()+'"'+(E(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):E(Xe.$role())?C["$<<"]('<li class="'+Xe.$role()+'">'):C["$<<"]("<li>"),C["$<<"]("<p>"+Xe.$text()+"</p>"),E(Xe["$blocks?"]())&&C["$<<"](Xe.$content()),C["$<<"]("</li>")}),C["$<<"]("</ol>"),C["$<<"]("</div>"),C.$join($e("LF"))}),Ue(ie,"$convert_open",function(o){var m=this,C=M,k=M,b=M,L=M;return W(C=o.$style(),"abstract")?W(o.$parent(),o.$document())&&W(o.$document().$doctype(),"book")?(m.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(k=E(o.$id())?' id="'+o.$id()+'"':"",b=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
539
|
-
`:"","<div"+k+' class="quoteblock abstract'+(E(L=o.$role())?" "+L:"")+`">
|
|
540
|
-
`+b+`<blockquote>
|
|
541
|
-
`+o.$content()+`
|
|
542
|
-
</blockquote>
|
|
543
|
-
</div>`):W(C,"partintro")&&(E(Re(o.$level(),0))||Pe(o.$parent().$context(),"section")||Pe(o.$document().$doctype(),"book"))?(m.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(k=E(o.$id())?' id="'+o.$id()+'"':"",b=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
544
|
-
`:"","<div"+k+' class="openblock'+(E(C)&&Pe(C,"open")?" "+C:"")+(E(L=o.$role())?" "+L:"")+`">
|
|
545
|
-
`+b+`<div class="content">
|
|
546
|
-
`+o.$content()+`
|
|
547
|
-
</div>
|
|
548
|
-
</div>`)}),Ue(ie,"$convert_page_break",R('<div style="page-break-after: always;"></div>')),Ue(ie,"$convert_paragraph",function(o){var m=M;return E(o.$role())?m=(E(o.$id())?' id="'+o.$id()+'"':"")+' class="paragraph '+o.$role()+'"':E(o.$id())?m=' id="'+o.$id()+'" class="paragraph"':m=' class="paragraph"',E(o["$title?"]())?"<div"+m+`>
|
|
549
|
-
<div class="title">`+o.$title()+`</div>
|
|
550
|
-
<p>`+o.$content()+`</p>
|
|
551
|
-
</div>`:"<div"+m+`>
|
|
552
|
-
<p>`+o.$content()+`</p>
|
|
553
|
-
</div>`}),tt(ie,"convert_pass","content_only"),Ue(ie,"$convert_preamble",function(o){var m=M,C=M;return E((m=o.$document())["$attr?"]("toc-placement","preamble"))&&E(m["$sections?"]())&&E(m["$attr?"]("toc"))?C=`
|
|
554
|
-
<div id="toc" class="`+m.$attr("toc-class","toc")+`">
|
|
555
|
-
<div id="toctitle">`+m.$attr("toc-title")+`</div>
|
|
556
|
-
`+m.$converter().$convert(m,"outline")+`
|
|
557
|
-
</div>`:C="",`<div id="preamble">
|
|
558
|
-
<div class="sectionbody">
|
|
559
|
-
`+o.$content()+`
|
|
560
|
-
</div>`+C+`
|
|
561
|
-
</div>`}),Ue(ie,"$convert_quote",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M;return C=E(o.$id())?' id="'+o.$id()+'"':"",k=["quoteblock",o.$role()].$compact(),b=' class="'+k.$join(" ")+'"',L=E(o["$title?"]())?`
|
|
562
|
-
<div class="title">`+o.$title()+"</div>":"",P=E(o["$attr?"]("attribution"))?o.$attr("attribution"):M,de=E(o["$attr?"]("citetitle"))?o.$attr("citetitle"):M,E(P)||E(de)?(le=E(de)?"<cite>"+de+"</cite>":"",ke=E(P)?"— "+P+(E(de)?"<br"+m.void_element_slash+`>
|
|
563
|
-
`:""):"",Be=`
|
|
564
|
-
<div class="attribution">
|
|
565
|
-
`+ke+le+`
|
|
566
|
-
</div>`):Be="","<div"+C+b+">"+L+`
|
|
567
|
-
<blockquote>
|
|
568
|
-
`+o.$content()+`
|
|
569
|
-
</blockquote>`+Be+`
|
|
570
|
-
</div>`}),Ue(ie,"$convert_thematic_break",function(o){var m=this;return"<hr"+m.void_element_slash+">"}),Ue(ie,"$convert_sidebar",function(o){var m=M,C=M,k=M;return m=E(o.$id())?' id="'+o.$id()+'"':"",C=E(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
|
|
571
|
-
`:"","<div"+m+' class="sidebarblock'+(E(k=o.$role())?" "+k:"")+`">
|
|
572
|
-
<div class="content">
|
|
573
|
-
`+C+o.$content()+`
|
|
574
|
-
</div>
|
|
575
|
-
</div>`}),Ue(ie,"$convert_table",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M;return C=[],k=E(o.$id())?' id="'+o.$id()+'"':"",W(b=o.$attr("frame","all","table-frame"),"topbot")&&(b="ends"),L=["tableblock","frame-"+b,"grid-"+o.$attr("grid","all","table-grid")],E(P=o.$attr("stripes",M,"table-stripes"))&&L["$<<"]("stripes-"+P),de="",E(le=o["$option?"]("autowidth"))&&De(o["$attr?"]("width"))?L["$<<"]("fit-content"):W(ke=o.$attr("tablepcwidth"),100)?L["$<<"]("stretch"):de=' style="width: '+ke+'%;"',E(o["$attr?"]("float"))&&L["$<<"](o.$attr("float")),E(Be=o.$role())&&L["$<<"](Be),Xe=' class="'+L.$join(" ")+'"',C["$<<"]("<table"+k+Xe+de+">"),E(o["$title?"]())&&C["$<<"]('<caption class="title">'+o.$captioned_title()+"</caption>"),E(Re(o.$attr("rowcount"),0))&&(it=m.void_element_slash,C["$<<"]("<colgroup>"),E(le)?C=Ge(C,$e("Array").$new(o.$columns().$size(),"<col"+it+">")):et(o.$columns(),"each",[],function(at){return at==null&&(at=M),C["$<<"](E(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),C["$<<"]("</colgroup>"),et(o.$rows().$to_h(),"each",[],function(at,gt){return at==null&&(at=M),gt==null&&(gt=M),E(gt["$empty?"]())?M:(C["$<<"]("<t"+at+">"),et(gt,"each",[],function(xt){return xt==null&&(xt=M),C["$<<"]("<tr>"),et(xt,"each",[],function(Rt){var Tt=M,Yt=M,Bt=M,er=M,Kt=M,Pt=M;if(Rt==null&&(Rt=M),W(at,"head"))Tt=Rt.$text();else switch(Rt.$style()){case"asciidoc":Tt='<div class="content">'+Rt.$content()+"</div>";break;case"literal":Tt='<div class="literal"><pre>'+Rt.$text()+"</pre></div>";break;default:Tt=E((Tt=Rt.$content())["$empty?"]())?"":'<p class="tableblock">'+Tt.$join(`</p>
|
|
576
|
-
<p class="tableblock">`)+"</p>"}return Yt=W(at,"head")||W(Rt.$style(),"header")?"th":"td",Bt=' class="tableblock halign-'+Rt.$attr("halign")+" valign-"+Rt.$attr("valign")+'"',er=E(Rt.$colspan())?' colspan="'+Rt.$colspan()+'"':"",Kt=E(Rt.$rowspan())?' rowspan="'+Rt.$rowspan()+'"':"",Pt=E(o.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+o.$document().$attr("cellbgcolor")+';"':"",C["$<<"]("<"+Yt+Bt+er+Kt+Pt+">"+Tt+"</"+Yt+">")}),C["$<<"]("</tr>")}),C["$<<"]("</t"+at+">"))})),C["$<<"]("</table>"),C.$join($e("LF"))}),Ue(ie,"$convert_toc",function(o){var m=M,C=M,k=M,b=M,L=M,P=M;return E((m=o.$document())["$attr?"]("toc-placement","macro"))&&E(m["$sections?"]())&&E(m["$attr?"]("toc"))?(E(o.$id())?(C=' id="'+o.$id()+'"',k=' id="'+o.$id()+'title"'):(C=' id="toc"',k=' id="toctitle"'),b=E(o["$title?"]())?o.$title():m.$attr("toc-title"),L=E(o["$attr?"]("levels"))?o.$attr("levels").$to_i():M,P=E(o["$role?"]())?o.$role():m.$attr("toc-class","toc"),"<div"+C+' class="'+P+`">
|
|
577
|
-
<div`+k+' class="title">'+b+`</div>
|
|
578
|
-
`+m.$converter().$convert(m,"outline",_e(["toclevels"],{toclevels:L}))+`
|
|
579
|
-
</div>`):"<!-- toc disabled -->"}),Ue(ie,"$convert_ulist",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M;return C=[],k=E(o.$id())?' id="'+o.$id()+'"':"",b=["ulist",o.$style(),o.$role()].$compact(),L=P="",E(de=o["$option?"]("checklist"))?(b.$unshift(b.$shift(),"checklist"),le=' class="checklist"',E(o["$option?"]("interactive"))?E(m.xml_mode)?(L='<input type="checkbox" data-item-complete="1" checked="checked"/> ',P='<input type="checkbox" data-item-complete="0"/> '):(L='<input type="checkbox" data-item-complete="1" checked> ',P='<input type="checkbox" data-item-complete="0"> '):E(o.$document()["$attr?"]("icons","font"))?(L='<i class="fa fa-check-square-o"></i> ',P='<i class="fa fa-square-o"></i> '):(L="✓ ",P="❏ ")):le=E(o.$style())?' class="'+o.$style()+'"':"",C["$<<"]("<div"+k+' class="'+b.$join(" ")+'">'),E(o["$title?"]())&&C["$<<"]('<div class="title">'+o.$title()+"</div>"),C["$<<"]("<ul"+le+">"),et(o.$items(),"each",[],function(Be){return Be==null&&(Be=M),E(Be.$id())?C["$<<"]('<li id="'+Be.$id()+'"'+(E(Be.$role())?' class="'+Be.$role()+'"':"")+">"):E(Be.$role())?C["$<<"]('<li class="'+Be.$role()+'">'):C["$<<"]("<li>"),E(de)&&E(Be["$attr?"]("checkbox"))?C["$<<"]("<p>"+(E(Be["$attr?"]("checked"))?L:P)+Be.$text()+"</p>"):C["$<<"]("<p>"+Be.$text()+"</p>"),E(Be["$blocks?"]())&&C["$<<"](Be.$content()),C["$<<"]("</li>")}),C["$<<"]("</ul>"),C["$<<"]("</div>"),C.$join($e("LF"))}),Ue(ie,"$convert_verse",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M;return C=E(o.$id())?' id="'+o.$id()+'"':"",k=["verseblock",o.$role()].$compact(),b=' class="'+k.$join(" ")+'"',L=E(o["$title?"]())?`
|
|
580
|
-
<div class="title">`+o.$title()+"</div>":"",P=E(o["$attr?"]("attribution"))?o.$attr("attribution"):M,de=E(o["$attr?"]("citetitle"))?o.$attr("citetitle"):M,E(P)||E(de)?(le=E(de)?"<cite>"+de+"</cite>":"",ke=E(P)?"— "+P+(E(de)?"<br"+m.void_element_slash+`>
|
|
581
|
-
`:""):"",Be=`
|
|
582
|
-
<div class="attribution">
|
|
583
|
-
`+ke+le+`
|
|
584
|
-
</div>`):Be="","<div"+C+b+">"+L+`
|
|
585
|
-
<pre class="content">`+o.$content()+"</pre>"+Be+`
|
|
586
|
-
</div>`}),Ue(ie,"$convert_video",function(o){var m,C,k=this,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,gt=M,yt=M,xt=M,vt=M,Rt=M,Tt=M,Yt=M,Bt=M,er=M,Kt=M,Pt=M,Wt=M,Xt=M,nr=M,Wn=M,tn=M,Jt=M,Ut=M,Zt=M,Cr=M,Ht=M,kr=M,hn=M,Tr=M,Sr=M,wn=M;switch(b=k.xml_mode,L=E(o.$id())?' id="'+o.$id()+'"':"",P=["videoblock"],E(o["$attr?"]("float"))&&P["$<<"](o.$attr("float")),E(o["$attr?"]("align"))&&P["$<<"]("text-"+o.$attr("align")),E(o.$role())&&P["$<<"](o.$role()),de=' class="'+P.$join(" ")+'"',le=E(o["$title?"]())?`
|
|
587
|
-
<div class="title">`+o.$title()+"</div>":"",ke=E(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",Be=E(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",o.$attr("poster")){case"vimeo":return E((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=E(o["$attr?"]("start"))?"#at="+o.$attr("start"):"",ht=["?"],C=o.$attr("target").$split("/",2),m=st(C),at=m[0]==null?M:m[0],gt=m[1]==null?M:m[1],yt=E(gt=E(xt=gt)?xt:o.$attr("hash"))?""+(E(xt=ht.$pop())?xt:"&")+"h="+gt:"",vt=E(o["$option?"]("autoplay"))?""+(E(xt=ht.$pop())?xt:"&")+"autoplay=1":"",Rt=E(o["$option?"]("loop"))?""+(E(xt=ht.$pop())?xt:"&")+"loop=1":"",Tt=E(o["$option?"]("muted"))?""+(E(xt=ht.$pop())?xt:"&")+"muted=1":"","<div"+L+de+">"+le+`
|
|
588
|
-
<div class="content">
|
|
589
|
-
<iframe`+ke+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+yt+vt+Rt+Tt+it+'" frameborder="0"'+(E(o["$option?"]("nofullscreen"))?"":k.$append_boolean_attribute("allowfullscreen",b))+`></iframe>
|
|
590
|
-
</div>
|
|
591
|
-
</div>`;case"youtube":return E((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Yt=E(o["$option?"]("related"))?1:0,Bt=E(o["$attr?"]("start"))?"&start="+o.$attr("start"):"",er=E(o["$attr?"]("end"))?"&end="+o.$attr("end"):"",vt=E(o["$option?"]("autoplay"))?"&autoplay=1":"",Rt=E(Kt=o["$option?"]("loop"))?"&loop=1":"",Pt=E(o["$option?"]("muted"))?"&mute=1":"",Wt=E(o["$option?"]("nocontrols"))?"&controls=0":"",E(o["$option?"]("nofullscreen"))?(Xt="&fs=0",nr=""):(Xt="",nr=k.$append_boolean_attribute("allowfullscreen",b)),Wn=E(o["$option?"]("modest"))?"&modestbranding=1":"",tn=E(o["$attr?"]("theme"))?"&theme="+o.$attr("theme"):"",Jt=E(o["$attr?"]("lang"))?"&hl="+o.$attr("lang"):"",C=o.$attr("target").$split("/",2),m=st(C),at=m[0]==null?M:m[0],Ut=m[1]==null?M:m[1],E(Ut=E(xt=Ut)?xt:o.$attr("list"))?Zt="&list="+Ut:(C=at.$split(",",2),m=st(C),at=m[0]==null?M:m[0],Cr=m[1]==null?M:m[1],E(Cr=E(xt=Cr)?xt:o.$attr("playlist"))?Zt="&playlist="+at+","+Cr:Zt=E(Kt)?"&playlist="+at:""),"<div"+L+de+">"+le+`
|
|
592
|
-
<div class="content">
|
|
593
|
-
<iframe`+ke+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Yt+Bt+er+vt+Rt+Pt+Wt+Zt+Xt+Wn+tn+Jt+'" frameborder="0"'+nr+`></iframe>
|
|
594
|
-
</div>
|
|
595
|
-
</div>`;default:return Ht=E((kr=o.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+o.$media_uri(kr)+'"',hn=E((kr=o.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+kr+'"',Tr=o.$attr("start"),Sr=o.$attr("end"),wn=E(Tr)||E(Sr)?"#t="+(E(xt=Tr)?xt:"")+(E(Sr)?","+Sr:""):"","<div"+L+de+">"+le+`
|
|
596
|
-
<div class="content">
|
|
597
|
-
<video src="`+o.$media_uri(o.$attr("target"))+wn+'"'+ke+Be+Ht+(E(o["$option?"]("autoplay"))?k.$append_boolean_attribute("autoplay",b):"")+(E(o["$option?"]("muted"))?k.$append_boolean_attribute("muted",b):"")+(E(o["$option?"]("nocontrols"))?"":k.$append_boolean_attribute("controls",b))+(E(o["$option?"]("loop"))?k.$append_boolean_attribute("loop",b):"")+hn+`>
|
|
598
|
-
Your browser does not support the video tag.
|
|
599
|
-
</video>
|
|
600
|
-
</div>
|
|
601
|
-
</div>`}}),Ue(ie,"$convert_inline_anchor",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M;switch(o.$type()){case"xref":return E(C=o.$attributes()["$[]"]("path"))?(k=m.$append_link_constraint_attrs(o,E(o.$role())?[' class="'+o.$role()+'"']:[]).$join(),b=E(L=o.$text())?L:C):(k=E(o.$role())?' class="'+o.$role()+'"':"",E(b=o.$text())||(A($e("AbstractNode"),P=E(L=(m.refs=E(de=m.refs)?de:o.$document().$catalog()["$[]"]("refs"))["$[]"](le=o.$attributes()["$[]"]("refid")))?L:E(le["$nil_or_empty?"]())?ke=m.$get_root_document(o):M)?E(m.resolving_xref=E(L=m.resolving_xref)?L:Be=!0)&&E(Be)?(E(b=P.$xreftext(o.$attr("xrefstyle",M,!0)))?E(b["$include?"]("<a"))&&(b=b.$gsub($e("DropAnchorRx"),"")):b=E(ke)?"[^top]":"["+le+"]",m.resolving_xref=M):b=E(ke)?"[^top]":"["+le+"]":b="["+le+"]")),'<a href="'+o.$target()+'"'+k+">"+b+"</a>";case"ref":return'<a id="'+o.$id()+'"></a>';case"link":return k=E(o.$id())?[' id="'+o.$id()+'"']:[],E(o.$role())&&k["$<<"](' class="'+o.$role()+'"'),E(o["$attr?"]("title"))&&k["$<<"](' title="'+o.$attr("title")+'"'),'<a href="'+o.$target()+'"'+m.$append_link_constraint_attrs(o,k).$join()+">"+o.$text()+"</a>";case"bibref":return'<a id="'+o.$id()+'"></a>['+(E(L=o.$reftext())?L:o.$id())+"]";default:return m.$logger().$warn("unknown anchor type: "+o.$type().$inspect()),M}}),Ue(ie,"$convert_inline_break",function(o){var m=this;return""+o.$text()+"<br"+m.void_element_slash+">"}),Ue(ie,"$convert_inline_button",function(o){return'<b class="button">'+o.$text()+"</b>"}),Ue(ie,"$convert_inline_callout",function(o){var m=this,C=M,k=M;return E(o.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+o.$text()+'"></i><b>('+o.$text()+")</b>":E(o.$document()["$attr?"]("icons"))?(C=o.$icon_uri("callouts/"+o.$text()),'<img src="'+C+'" alt="'+o.$text()+'"'+m.void_element_slash+">"):A(He("Array"),k=o.$attributes()["$[]"]("guard"))?'<!--<b class="conum">('+o.$text()+")</b>-->":""+k+'<b class="conum">('+o.$text()+")</b>"}),Ue(ie,"$convert_inline_footnote",function(o){var m=M,C=M;return E(m=o.$attr("index"))?W(o.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>":(C=E(o.$id())?' id="_footnote_'+o.$id()+'"':"",'<sup class="footnote"'+C+'>[<a id="_footnoteref_'+m+'" class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>"):W(o.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+o.$text()+"]</sup>":M}),Ue(ie,"$convert_inline_image",function(o){var m=this,C=M,k=M,b=M,L=M,P=M,de=M,le=M,ke=M,Be=M,Xe=M;return C=o.$target(),W(k=E(b=o.$type())?b:"image","icon")?W(L=o.$document().$attr("icons"),"font")?(P="fa fa-"+C,E(o["$attr?"]("size"))&&(P=""+P+" fa-"+o.$attr("size")),E(o["$attr?"]("flip"))?P=""+P+" fa-flip-"+o.$attr("flip"):E(o["$attr?"]("rotate"))&&(P=""+P+" fa-rotate-"+o.$attr("rotate")),de=E(o["$attr?"]("title"))?' title="'+o.$attr("title")+'"':"",le='<i class="'+P+'"'+de+"></i>"):E(L)?(de=E(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",E(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),E(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),le='<img src="'+o.$icon_uri(C)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"):le="["+o.$alt()+"]":(de=E(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",E(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),E(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),(E(o["$attr?"]("format","svg"))||E(C["$include?"](".svg")))&&E(Ye(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?E(o["$option?"]("inline"))?le=E(b=m.$read_svg_contents(o,C))?b:'<span class="alt">'+o.$alt()+"</span>":E(o["$option?"]("interactive"))?(ke=E(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",le='<object type="image/svg+xml" data="'+o.$image_uri(C)+'"'+de+">"+ke+"</object>"):le='<img src="'+o.$image_uri(C)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":le='<img src="'+o.$image_uri(C)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"),E(o["$attr?"]("link"))&&(le='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+le+"</a>"),Be=k,E(Xe=o.$role())?Be=E(o["$attr?"]("float"))?""+Be+" "+o.$attr("float")+" "+Xe:""+Be+" "+Xe:E(o["$attr?"]("float"))&&(Be=""+Be+" "+o.$attr("float")),'<span class="'+Be+'">'+le+"</span>"}),Ue(ie,"$convert_inline_indexterm",function(o){return W(o.$type(),"visible")?o.$text():""}),Ue(ie,"$convert_inline_kbd",function(o){var m=M;return W((m=o.$attr("keys")).$size(),1)?"<kbd>"+m["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+m.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ie,"$convert_inline_menu",function(o){var m=M,C=M,k=M,b=M,L=M;return m=E(o.$document()["$attr?"]("icons","font"))?' <i class="fa fa-angle-right caret"></i> ':' <b class="caret">›</b> ',C="</b>"+m+'<b class="submenu">',k=o.$attr("menu"),E((b=o.$attr("submenus"))["$empty?"]())?E(L=o.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="menuitem">'+L+"</b></span>":'<b class="menuref">'+k+"</b>":'<span class="menuseq"><b class="menu">'+k+"</b>"+m+'<b class="submenu">'+b.$join(C)+"</b>"+m+'<b class="menuitem">'+o.$attr("menuitem")+"</b></span>"}),Ue(ie,"$convert_inline_quoted",function(o){var m,C,k=M,b=M,L=M,P=M;return C=$e("QUOTE_TAGS")["$[]"](o.$type()),m=st(C),k=m[0]==null?M:m[0],b=m[1]==null?M:m[1],L=m[2]==null?M:m[2],E(o.$id())?(P=E(o.$role())?' class="'+o.$role()+'"':"",E(L)?""+k.$chop()+' id="'+o.$id()+'"'+P+">"+o.$text()+b:'<span id="'+o.$id()+'"'+P+">"+k+o.$text()+b+"</span>"):E(o.$role())?E(L)?""+k.$chop()+' class="'+o.$role()+'">'+o.$text()+b:'<span class="'+o.$role()+'">'+k+o.$text()+b+"</span>":""+k+o.$text()+b}),Ue(ie,"$read_svg_contents",function(o,m){var C=M,k=M,b=M,L=M;if(E(C=o.$read_contents(m,_e(["start","normalize","label","warn_if_empty"],{start:o.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(E(C["$empty?"]()))return M;E(C["$start_with?"]("<svg"))||(C=C.$sub($e("SvgPreambleRx"),"")),k=b=L=M,et(["width","height"],"each",[],function(de){var le=M,ke=M;if(de==null&&(de=M),!E(o["$attr?"](de)))return M;if(!E(b)){if(W(L=E(le=L)?le:E(ke=C.$match($e("SvgStartTagRx")))?ke:"no_match","no_match"))return M;b=(k=L["$[]"](0)).$gsub($e("DimensionAttributeRx"),"")}return b=""+b.$chop()+" "+de+'="'+o.$attr(de)+'">'}),E(b)&&(C=""+b+C["$[]"](a.Range.$new(k.$length(),-1,!1)))}return C}),ie.$private(),Ue(ie,"$append_boolean_attribute",function(o,m){return E(m)?" "+o+'="'+o+'"':" "+o}),Ue(ie,"$append_link_constraint_attrs",function(o,m){var C=M,k=M;return m==null&&(m=[]),E(o["$option?"]("nofollow"))&&(C="nofollow"),E(k=o.$attributes()["$[]"]("window"))?(m["$<<"](' target="'+k+'"'),(W(k,"_blank")||E(o["$option?"]("noopener")))&&m["$<<"](E(C)?' rel="'+C+' noopener"':' rel="noopener"')):E(C)&&m["$<<"](' rel="'+C+'"'),m},-2),Ue(ie,"$encode_attribute_value",function(o){return E(o["$include?"]('"'))?o.$gsub('"',"""):o}),Ue(ie,"$generate_manname_section",function(o){var m=M,C=M,k=M,b=M,L=M;return m=o.$attr("manname-title","Name"),E(k=o.$sections()["$[]"](0))&&W(C=k.$title(),C.$upcase())&&(m=m.$upcase()),b=E(L=o.$attr("manname-id"))?' id="'+L+'"':"","<h2"+b+">"+m+`</h2>
|
|
602
|
-
<div class="sectionbody">
|
|
603
|
-
<p>`+o.$attr("mannames").$join(", ")+" - "+o.$attr("manpurpose")+`</p>
|
|
604
|
-
</div>`}),Ue(ie,"$get_root_document",function(o){for(;E((o=o.$document())["$nested?"]());)o=o.$parent_document();return o}),Ue(ie,"$method_missing",function g(o,m){var C,k,b=g.$$p||M,L=this,P=M;return g.$$p=null,C=rt(arguments,1),k=C,De((P=o.$to_s())["$start_with?"]("convert_"))&&E(L["$handles?"](P))?et(L,"send",["convert_"+P].concat(lt(k))):G(L,Me(L,"method_missing",g,!1,!0),"method_missing",[o].concat(lt(k)),b)},-2),Ue(ie,"$respond_to_missing?",function(o,m){var C=this,k=M,b=M;return rt(arguments,1),E(k=(b=o.$to_s())["$start_with?"]("convert_")["$!"]())?C["$handles?"](b):k},-2)}(ye("Converter"),He(ye("Converter"),"Base"),oe)}(K[0],K)},Opal.modules["asciidoctor/extensions"]=function(a){var ae=a.module,re=a.klass,V=a.truthy,_e=a.hash2,y=a.def,W=a.send,Ue=a.alias,G=a.slice,Me=a.rb_plus,E=a.eqeq,et=a.rb_gt,Re=a.not,Ge=a.eqeqeq,De=a.to_a,Pe=a.to_ary,dt=a.const_set,Ye=a.return_val,st=a.send2,We=a.find_super,Oe=a.NilClass,ft=a.class_variable_set,R=a.class_variable_get,tt=a.regexp,A=a.Class,rt=a.return_ivar,lt=a.rb_lt,K=a.rb_minus,M=a.hash,He=[],we=a.nil,qe=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(ze,oe){var ye=ae(ze,"Asciidoctor"),Q=[ye].concat(oe);return function(F,q){var ie=ae(F,"Extensions"),O=[ie].concat(q),$e=a.$r(O);return function(H,g,o){var m=re(H,g,"Processor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.config=we,function(L,P){return y(L,"$config",function(){var le=this,ke=we;return le.config==null&&(le.config=we),le.config=V(ke=le.config)?ke:_e([],{})}),y(L,"$option",function(le,ke){var Be,Xe=this;return Be=[le,ke],W(Xe.$config(),"[]=",Be),Be[Be.length-1]}),y(L,"$enable_dsl",function(){var le=this;return V(le["$const_defined?"]("DSL"))?V(le["$singleton_class?"]())?le.$include(le.$const_get("DSL")):le.$extend(le.$const_get("DSL")):we}),Ue(L,"use_dsl","enable_dsl")}(a.get_singleton_class(m)),m.$attr_reader("config"),y(m,"$initialize",function(P){var de=this;return P==null&&(P=_e([],{})),de.config=de.$class().$config().$merge(P)},-1),y(m,"$update_config",function(P){var de=this;return de.config.$update(P)}),y(m,"$process",function(P){var de=this;return G(arguments),de.$raise(qe("NotImplementedError"),""+k("Processor")+" subclass "+de.$class()+" must implement the #process method")},-1),y(m,"$create_section",function(P,de,le,ke){var Be,Xe,it=we,ht=we,at=we,gt=we,yt=we,xt=we,vt=we,Rt=we,Tt=we,Yt=we;return ke==null&&(ke=_e([],{})),it=P.$document(),ht=(at=it.$doctype())["$=="]("book"),gt=V(yt=ke["$[]"]("level"))?yt:Me(P.$level(),1),V(xt=le.$delete("style"))?V(ht)&&E(xt,"abstract")?(Be=["chapter",1],vt=Be[0],gt=Be[1]):(Be=[xt,!0],vt=Be[0],Rt=Be[1],E(gt,0)&&(gt=1)):V(ht)?vt=E(gt,0)?"part":V(et(gt,1))?"section":"chapter":E(at,"manpage")&&E(de.$casecmp("synopsis"),0)?(Be=["synopsis",!0],vt=Be[0],Rt=Be[1]):vt="section",Tt=k("Section").$new(P,gt),Be=[de,vt],Xe=[Be[0]],W(Tt,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],W(Tt,"sectname=",Xe),Xe[Xe.length-1],V(Rt)?(Tt["$special="](!0),V(ke.$fetch("numbered",xt["$=="]("appendix")))?Tt["$numbered="](!0):Re(ke["$key?"]("numbered"))&&V(it["$attr?"]("sectnums","all"))&&Tt["$numbered="](V(ht)&&E(gt,1)?"chapter":!0)):V(et(gt,0))?V(ke.$fetch("numbered",it["$attr?"]("sectnums")))&&Tt["$numbered="](V(Tt.$special())?V(yt=P.$numbered())||yt:!0):V(ke.$fetch("numbered",V(yt=ht)?it["$attr?"]("partnums"):yt))&&Tt["$numbered="](!0),E(Yt=le["$[]"]("id"),!1)?le.$delete("id"):Tt["$id="]((Be=["id",V(yt=Yt)?yt:V(it["$attr?"]("sectids"))?k("Section").$generate_id(Tt.$title(),it):we],W(le,"[]=",Be),Be[Be.length-1])),Tt.$update_attributes(le),Tt},-4),y(m,"$create_block",function(P,de,le,ke,Be){return Be==null&&(Be=_e([],{})),k("Block").$new(P,de,_e(["source","attributes"],{source:le,attributes:ke}).$merge(Be))},-5),y(m,"$create_list",function(P,de,le){var ke=we;return le==null&&(le=we),ke=k("List").$new(P,de),V(le)&&ke.$update_attributes(le),ke},-3),y(m,"$create_list_item",function(P,de){return de==null&&(de=we),k("ListItem").$new(P,de)},-2),y(m,"$create_image_block",function(P,de,le){var ke,Be=this,Xe=we,it=we,ht=we;return le==null&&(le=_e([],{})),V(Xe=de["$[]"]("target"))||Be.$raise(qe("ArgumentError"),"Unable to create an image block, target attribute is required"),V(de["$[]"]("alt"))||de["$[]="]("alt",(ke=["default-alt",k("Helpers").$basename(Xe,!0).$tr("_-"," ")],W(de,"[]=",ke),ke[ke.length-1])),it=V(de["$key?"]("title"))?de.$delete("title"):we,ht=Be.$create_block(P,"image",we,de,le),V(it)&&(ht["$title="](it),ht.$assign_caption(de.$delete("caption"),"figure")),ht},-3),y(m,"$create_inline",function(P,de,le,ke){return ke==null&&(ke=_e([],{})),k("Inline").$new(P,de,le,E(de,"quoted")?_e(["type"],{type:"unquoted"}).$merge(ke):ke)},-4),y(m,"$parse_content",function(P,de,le){var ke=we;return le==null&&(le=we),ke=Ge(k("Reader"),de)?de:k("Reader").$new(de),k("Parser").$parse_blocks(ke,P,le),P},-3),y(m,"$parse_attributes",function(P,de,le){var ke=we;return le==null&&(le=_e([],{})),V(V(de)?de["$empty?"]():!0)?_e([],{}):(V(le["$[]"]("sub_attributes"))&&V(de["$include?"](k("ATTR_REF_HEAD")))&&(de=P.$sub_attributes(de)),k("AttributeList").$new(de).$parse(V(ke=le["$[]"]("positional_attributes"))?ke:[]))},-3),W([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block","create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],function L(P,de,le){var ke=L.$$s==null?this:L.$$s;return P==null&&(P=we),de==null&&(de=we),le==null&&(le=we),W(ke,"define_method",[P],function Be(Xe){var it,ht,at=Be.$$s==null?this:Be.$$s;return it=G(arguments),ht=it,ht.$unshift(ht.$shift(),le),W(at,"send",[de].concat(De(ht)))},{$$arity:-1,$$s:ke})},{$$s:m})}(O[0],null,O),function(H){var g=ae(H,"ProcessorDsl");return y(g,"$option",function(m,C){var k,b=this;return k=[m,C],W(b.$config(),"[]=",k),k[k.length-1]}),y(g,"$process",function o(m){var C=o.$$p||we,k,b,L,P=this,de=we;return P.process_block==null&&(P.process_block=we),o.$$p=null,k=G(arguments),b=k,C!==we?(V(b["$empty?"]())||P.$raise(qe("ArgumentError"),"wrong number of arguments (given "+b.$size()+", expected 0)"),V(C.$binding())&&E(P,C.$binding().$receiver())||(de=P,W(C,"define_singleton_method",["call"],function(ke){var Be,Xe;return Be=G(arguments),Xe=Be,W(de,"instance_exec",De(Xe),C.$to_proc())},-1)),P.process_block=C):V((L=P.process_block,L!=null&&L!==we?"instance-variable":we))?W(P.process_block,"call",De(b)):P.$raise(qe("NotImplementedError"),""+P.$class()+" #process method called before being registered")},-1),y(g,"$process_block_given?",function(){var m,C=this;return m=C.process_block,m!=null&&m!==we?"instance-variable":we})}(O[0]),function(H,g){var o=ae(H,"DocumentProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("ProcessorDsl")),y(o,"$prefer",function(){var b=this;return b.$option("position",">>")})}(O[0],O),function(H,g){var o=ae(H,"SyntaxProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("ProcessorDsl")),y(o,"$named",function(b){var L=this;return Ge(C("Processor"),L)?L.name=b:L.$option("name",b)}),y(o,"$content_model",function(b){var L=this;return L.$option("content_model",b)}),Ue(o,"parse_content_as","content_model"),y(o,"$positional_attributes",function(b){var L,P,de=this;return L=G(arguments),P=L,de.$option("positional_attrs",P.$flatten())},-1),Ue(o,"name_positional_attributes","positional_attributes"),Ue(o,"positional_attrs","positional_attributes"),y(o,"$default_attributes",function(b){var L=this;return L.$option("default_attrs",b)}),Ue(o,"default_attrs","default_attributes"),y(o,"$resolve_attributes",function(b){var L,P,de,le=this,ke=we,Be=we,Xe=we;return L=G(arguments),P=L,V(et(P.$size(),1))||V((P=P.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(P=[P]),Ge(!0,ke=P)?(le.$option("positional_attrs",[]),le.$option("default_attrs",_e([],{}))):Ge(qe("Array"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],W(P,"each",[],function(ht){var at,gt,yt=we,xt=we,vt=we;return ht==null&&(ht=we),V((ht=ht.$to_s())["$include?"]("="))?(gt=ht.$partition("="),at=Pe(gt),yt=at[0]==null?we:at[0],at[1]==null||at[1],xt=at[2]==null?we:at[2],V(yt["$include?"](":"))&&(gt=yt.$partition(":"),at=Pe(gt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=E(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,yt)),at=[yt,xt],W(Xe,"[]=",at),at[at.length-1]):V(ht["$include?"](":"))?(gt=ht.$partition(":"),at=Pe(gt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=E(vt,"@")?Be.$size():vt.$to_i(),at=[vt,yt],W(Be,"[]=",at),at[at.length-1]):Be["$<<"](ht)}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):Ge(qe("Hash"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],W(P,"each",[],function(ht,at){var gt,yt,xt=we,vt=we;return ht==null&&(ht=we),at==null&&(at=we),V((xt=ht.$to_s())["$include?"](":"))&&(yt=xt.$partition(":"),gt=Pe(yt),vt=gt[0]==null?we:gt[0],gt[1]==null||gt[1],xt=gt[2]==null?we:gt[2],vt=E(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,xt)),V(at)?(gt=[xt,at],W(Xe,"[]=",gt),gt[gt.length-1]):we}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):le.$raise(qe("ArgumentError"),"unsupported attributes specification for macro: "+P.$inspect())},-1),Ue(o,"resolves_attributes","resolve_attributes")}(O[0],O),function(H,g,o){var m=re(H,g,"Preprocessor"),C=[m].concat(o),k=a.$r(C);return y(m,"$process",function(L,P){var de=this;return de.$raise(qe("NotImplementedError"),""+k("Preprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),dt($e("Preprocessor"),"DSL",$e("DocumentProcessorDsl")),function(H,g,o){var m=re(H,g,"TreeProcessor"),C=[m].concat(o),k=a.$r(C);return y(m,"$process",function(L){var P=this;return P.$raise(qe("NotImplementedError"),""+k("TreeProcessor")+" subclass "+P.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),dt($e("TreeProcessor"),"DSL",$e("DocumentProcessorDsl")),dt(O[0],"Treeprocessor",$e("TreeProcessor")),function(H,g,o){var m=re(H,g,"Postprocessor"),C=[m].concat(o),k=a.$r(C);return y(m,"$process",function(L,P){var de=this;return de.$raise(qe("NotImplementedError"),""+k("Postprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),dt($e("Postprocessor"),"DSL",$e("DocumentProcessorDsl")),function(H,g,o){var m=re(H,g,"IncludeProcessor"),C=[m].concat(o),k=a.$r(C);return y(m,"$process",function(L,P,de,le){var ke=this;return ke.$raise(qe("NotImplementedError"),""+k("IncludeProcessor")+" subclass "+ke.$class()+" must implement the #process method")}),y(m,"$handles?",Ye(!0))}(O[0],$e("Processor"),O),function(H,g){var o=ae(H,"IncludeProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("DocumentProcessorDsl")),y(o,"$handles?",function k(b){var L=k.$$p||we,P,de,le,ke=this;return ke.handles_block==null&&(ke.handles_block=we),k.$$p=null,P=G(arguments),de=P,L!==we?(V(de["$empty?"]())||ke.$raise(qe("ArgumentError"),"wrong number of arguments (given "+de.$size()+", expected 0)"),ke.handles_block=L):V((le=ke.handles_block,le!=null&&le!==we?"instance-variable":we))?ke.handles_block.$call(de["$[]"](0)):!0},-1)}(O[0],O),dt($e("IncludeProcessor"),"DSL",$e("IncludeProcessorDsl")),function(H,g,o){var m=re(H,g,"DocinfoProcessor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.config=we,y(m,"$initialize",function L(P){var de;L.$$p;var le=this,ke=we;return L.$$p=null,P==null&&(P=_e([],{})),st(le,We(le,"initialize",L,!1,!0),"initialize",[P],null),V(ke=le.config["$[]"]("location"))?ke:(de=["location","head"],W(le.config,"[]=",de),de[de.length-1])},-1),y(m,"$process",function(P){var de=this;return de.$raise(qe("NotImplementedError"),""+k("DocinfoProcessor")+" subclass "+de.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),function(H,g){var o=ae(H,"DocinfoProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("DocumentProcessorDsl")),y(o,"$at_location",function(b){var L=this;return L.$option("location",b)})}(O[0],O),dt($e("DocinfoProcessor"),"DSL",$e("DocinfoProcessorDsl")),function(H,g,o){var m=re(H,g,"BlockProcessor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.config=we,m.$attr_accessor("name"),y(m,"$initialize",function L(P,de){var le;L.$$p;var ke=this,Be=we;return L.$$p=null,P==null&&(P=we),de==null&&(de=_e([],{})),st(ke,We(ke,"initialize",L,!1,!0),"initialize",[de],null),ke.name=V(Be=P)?Be:ke.config["$[]"]("name"),Ge(Oe,Be=ke.config["$[]"]("contexts"))?V(ke.config["$[]"]("contexts"))||ke.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ge(qe("Symbol"),Be)?ke.config["$[]="]("contexts",[ke.config["$[]"]("contexts")].$to_set()):ke.config["$[]="]("contexts",ke.config["$[]"]("contexts").$to_set()),V(Be=ke.config["$[]"]("content_model"))?Be:(le=["content_model","compound"],W(ke.config,"[]=",le),le[le.length-1])},-1),y(m,"$process",function(P,de,le){var ke=this;return ke.$raise(qe("NotImplementedError"),""+k("BlockProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),function(H,g){var o=ae(H,"BlockProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("SyntaxProcessorDsl")),y(o,"$contexts",function(b){var L,P,de=this;return L=G(arguments),P=L,de.$option("contexts",P.$flatten().$to_set())},-1),Ue(o,"on_contexts","contexts"),Ue(o,"on_context","contexts"),Ue(o,"bind_to","contexts")}(O[0],O),dt($e("BlockProcessor"),"DSL",$e("BlockProcessorDsl")),function(H,g,o){var m=re(H,g,"MacroProcessor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.config=we,m.$attr_accessor("name"),y(m,"$initialize",function L(P,de){var le;L.$$p;var ke=this,Be=we;return L.$$p=null,P==null&&(P=we),de==null&&(de=_e([],{})),st(ke,We(ke,"initialize",L,!1,!0),"initialize",[de],null),ke.name=V(Be=P)?Be:ke.config["$[]"]("name"),V(Be=ke.config["$[]"]("content_model"))?Be:(le=["content_model","attributes"],W(ke.config,"[]=",le),le[le.length-1])},-1),y(m,"$process",function(P,de,le){var ke=this;return ke.$raise(qe("NotImplementedError"),""+k("MacroProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(O[0],$e("Processor"),O),function(H,g){var o=ae(H,"MacroProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("SyntaxProcessorDsl")),y(o,"$resolve_attributes",function k(b){var L,P,de=k.$$p||we,le=this;return k.$$p=null,L=G(arguments),P=L,E(P.$size(),1)&&Re(P["$[]"](0))?le.$option("content_model","text"):(st(le,We(le,"resolve_attributes",k,!1,!0),"resolve_attributes",De(P),de),le.$option("content_model","attributes"))},-1),Ue(o,"resolves_attributes","resolve_attributes")}(O[0],O),function(H,g,o){var m=re(H,g,"BlockMacroProcessor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.name=we,y(m,"$name",function(){var P=this;return V(k("MacroNameRx")["$match?"](P.name.$to_s()))||P.$raise(qe("ArgumentError"),"invalid name for block macro: "+P.name),P.name})}(O[0],$e("MacroProcessor"),O),dt($e("BlockMacroProcessor"),"DSL",$e("MacroProcessorDsl")),function(H,g,o){var m=re(H,g,"InlineMacroProcessor"),C=[m].concat(o),k=a.$r(C),b=m.$$prototype;return b.config=b.name=we,ft(C[0],"@@rx_cache",_e([],{})),y(m,"$regexp",function(){var P,de=this,le=we;return V(le=de.config["$[]"]("regexp"))?le:(P=["regexp",de.$resolve_regexp(de.name.$to_s(),de.config["$[]"]("format"))],W(de.config,"[]=",P),P[P.length-1])}),y(m,"$resolve_regexp",function(P,de){var le,ke=this,Be=we;return V(k("MacroNameRx")["$match?"](P))||ke.$raise(qe("ArgumentError"),"invalid name for inline macro: "+P),V(Be=R(C[0],"@@rx_cache",!1)["$[]"]([P,de]))?Be:(le=[[P,de],tt(["\\\\?",P,":",E(de,"short")?"(){0}":"(\\S+?)","\\[(|",k("CC_ANY"),"*?[^\\\\])\\]"])],W(R(C[0],"@@rx_cache",!1),"[]=",le),le[le.length-1])})}(O[0],$e("MacroProcessor"),O),function(H,g){var o=ae(H,"InlineMacroProcessorDsl"),m=[o].concat(g),C=a.$r(m);return o.$include(C("MacroProcessorDsl")),y(o,"$format",function(b){var L=this;return L.$option("format",b)}),Ue(o,"match_format","format"),Ue(o,"using_format","format"),y(o,"$match",function(b){var L=this;return L.$option("regexp",b)})}(O[0],O),dt($e("InlineMacroProcessor"),"DSL",$e("InlineMacroProcessorDsl")),function(H,g){var o=re(H,g,"Extension");return o.$attr_reader("kind"),o.$attr_reader("config"),o.$attr_reader("instance"),y(o,"$initialize",function(C,k,b){var L=this;return L.kind=C,L.instance=k,L.config=b})}(O[0],null),function(H,g){var o=re(H,g,"ProcessorExtension");return o.$attr_reader("process_method"),y(o,"$initialize",function m(C,k,b){m.$$p;var L=this,P=we;return m.$$p=null,b==null&&(b=we),st(L,We(L,"initialize",m,!1,!0),"initialize",[C,k,k.$config()],null),L.process_method=V(P=b)?P:k.$method("process")},-3)}(O[0],$e("Extension")),function(H,g,o){var m=re(H,g,"Group"),C=[m].concat(o);return function(k,b){var L=[k].concat(b),P=a.$r(L);return y(k,"$register",function(le){var ke=this;return le==null&&(le=we),P("Extensions").$register(le,ke)},-1)}(a.get_singleton_class(m),C),y(m,"$activate",function(b){var L=this;return L.$raise(qe("NotImplementedError"))})}(O[0],null,O),function(H,g,o){var m=re(H,g,"Registry"),C=[m].concat(o),k=a.$r(C),b=m.$$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=we,m.$attr_reader("document"),m.$attr_reader("groups"),y(m,"$initialize",function(P){var de=this;return P==null&&(P=_e([],{})),de.groups=P,de.$reset(),de.preprocessor_extensions=de.tree_processor_extensions=de.postprocessor_extensions=de.include_processor_extensions=de.docinfo_processor_extensions=de.block_extensions=de.block_macro_extensions=de.inline_macro_extensions=we,de.document=we},-1),y(m,"$activate",function(P){var de=this,le=we;return V(de.document)&&de.$reset(),de.document=P,V((le=Me(k("Extensions").$groups().$values(),de.groups.$values()))["$empty?"]())||W(le,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=we;if(Be==null&&(Be=we),Ge(qe("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return W(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return we}else return Ge(A,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:de}),de}),y(m,"$preprocessor",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_document_processor",["preprocessor",ke],de.$to_proc())},-1),y(m,"$preprocessors?",function(){var P=this;return P.preprocessor_extensions["$!"]()["$!"]()}),y(m,"$preprocessors",rt("preprocessor_extensions")),y(m,"$tree_processor",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_document_processor",["tree_processor",ke],de.$to_proc())},-1),y(m,"$tree_processors?",function(){var P=this;return P.tree_processor_extensions["$!"]()["$!"]()}),y(m,"$tree_processors",rt("tree_processor_extensions")),Ue(m,"treeprocessor","tree_processor"),Ue(m,"treeprocessors?","tree_processors?"),Ue(m,"treeprocessors","tree_processors"),y(m,"$postprocessor",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_document_processor",["postprocessor",ke],de.$to_proc())},-1),y(m,"$postprocessors?",function(){var P=this;return P.postprocessor_extensions["$!"]()["$!"]()}),y(m,"$postprocessors",rt("postprocessor_extensions")),y(m,"$include_processor",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_document_processor",["include_processor",ke],de.$to_proc())},-1),y(m,"$include_processors?",function(){var P=this;return P.include_processor_extensions["$!"]()["$!"]()}),y(m,"$include_processors",rt("include_processor_extensions")),y(m,"$docinfo_processor",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_document_processor",["docinfo_processor",ke],de.$to_proc())},-1),y(m,"$docinfo_processors?",function(P){var de=this;return P==null&&(P=we),V(de.docinfo_processor_extensions)?V(P)?W(de.docinfo_processor_extensions,"any?",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](P)}):!0:!1},-1),y(m,"$docinfo_processors",function(P){var de=this;return P==null&&(P=we),V(de.docinfo_processor_extensions)?V(P)?W(de.docinfo_processor_extensions,"select",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](P)}):de.docinfo_processor_extensions:we},-1),y(m,"$block",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_syntax_processor",["block",ke],de.$to_proc())},-1),y(m,"$blocks?",function(){var P=this;return P.block_extensions["$!"]()["$!"]()}),y(m,"$registered_for_block?",function(P,de){var le=this,ke=we;return V(ke=le.block_extensions["$[]"](P.$to_sym()))&&V(ke.$config()["$[]"]("contexts")["$include?"](de))?ke:!1}),y(m,"$find_block_extension",function(P){var de=this;return de.block_extensions["$[]"](P.$to_sym())}),y(m,"$block_macro",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_syntax_processor",["block_macro",ke],de.$to_proc())},-1),y(m,"$block_macros?",function(){var P=this;return P.block_macro_extensions["$!"]()["$!"]()}),y(m,"$registered_for_block_macro?",function(P){var de=this,le=we;return V(le=de.block_macro_extensions["$[]"](P.$to_sym()))?le:!1}),y(m,"$find_block_macro_extension",function(P){var de=this;return de.block_macro_extensions["$[]"](P.$to_sym())}),y(m,"$inline_macro",function L(P){var de=L.$$p||we,le,ke,Be=this;return L.$$p=null,le=G(arguments),ke=le,W(Be,"add_syntax_processor",["inline_macro",ke],de.$to_proc())},-1),y(m,"$inline_macros?",function(){var P=this;return P.inline_macro_extensions["$!"]()["$!"]()}),y(m,"$registered_for_inline_macro?",function(P){var de=this,le=we;return V(le=de.inline_macro_extensions["$[]"](P.$to_sym()))?le:!1}),y(m,"$find_inline_macro_extension",function(P){var de=this;return de.inline_macro_extensions["$[]"](P.$to_sym())}),y(m,"$inline_macros",function(){var P=this;return P.inline_macro_extensions.$values()}),y(m,"$prefer",function L(P){var de=L.$$p||we,le,ke,Be=this,Xe=we,it=we,ht=we;return L.$$p=null,le=G(arguments),ke=le,Xe=Ge(k("ProcessorExtension"),it=ke.$shift())?it:W(Be,"send",[it].concat(De(ke)),de.$to_proc()),ht=Be.$instance_variable_get(("@"+Xe.$kind()+"_extensions").$to_sym()),ht.$unshift(ht.$delete(Xe)),Xe},-1),m.$private(),y(m,"$add_document_processor",function L(P,de){var le=L.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,gt=we,yt=we,xt=we,vt=we,Rt=we,Tt=we,Yt=we,Bt=we;return L.$$p=null,it=P.$to_s().$tr("_"," "),ht=W(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()}).$join().$to_sym(),at=k("Extensions").$const_get(ht,!1),gt=V(qe("::","AsciidoctorJ","skip_raise")?"constant":we)?qe(qe("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+P+"_extensions").$to_sym(),[]),le!==we?(vt=Xe.$resolve_args(de,1),(Rt=at.$new(vt)).$singleton_class().$enable_dsl(),E(le.$arity(),0)?W(Rt,"instance_exec",[],le.$to_proc()):a.yield1(le,Rt),V(Rt["$process_block_given?"]())||Xe.$raise(qe("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),Rt.$freeze(),Tt=k("ProcessorExtension").$new(P,Rt)):(Be=Xe.$resolve_args(de,2),ke=Pe(Be),Rt=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],V(Yt=k("Helpers").$resolve_class(Rt))?(V(lt(Yt,at))||V(gt)&&V(lt(Yt,gt))||Xe.$raise(qe("ArgumentError"),"Invalid type for "+it+" extension: "+Rt),Bt=Yt.$new(vt),Bt.$freeze(),Tt=k("ProcessorExtension").$new(P,Bt)):Ge(at,Rt)||V(gt)&&Ge(gt,Rt)?(Rt.$update_config(vt),Rt.$freeze(),Tt=k("ProcessorExtension").$new(P,Rt)):Xe.$raise(qe("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de)),E(Tt.$config()["$[]"]("position"),">>")?yt.$unshift(Tt):yt["$<<"](Tt),Tt}),y(m,"$add_syntax_processor",function L(P,de){var le=L.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,gt=we,yt=we,xt=we,vt=we,Rt=we,Tt=we,Yt=we,Bt=we;return L.$$p=null,it=P.$to_s().$tr("_"," "),ht=W(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=k("Extensions").$const_get(ht,!1),gt=V(qe("::","AsciidoctorJ","skip_raise")?"constant":we)?qe(qe("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+P+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+P+"_extensions").$to_sym(),_e([],{})),le!==we?(Be=Xe.$resolve_args(de,2),ke=Pe(Be),vt=ke[0]==null?we:ke[0],Rt=ke[1]==null?we:ke[1],(Tt=at.$new(Xe.$as_symbol(vt),Rt)).$singleton_class().$enable_dsl(),E(le.$arity(),0)?W(Tt,"instance_exec",[],le.$to_proc()):a.yield1(le,Tt),V(vt=Xe.$as_symbol(Tt.$name()))||Xe.$raise(qe("ArgumentError"),"No name specified for "+it+" extension at "+le.$source_location().$join(":")),V(Tt["$process_block_given?"]())||Xe.$raise(qe("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),Tt.$freeze(),ke=[vt,k("ProcessorExtension").$new(P,Tt)],W(yt,"[]=",ke),ke[ke.length-1]):(Be=Xe.$resolve_args(de,3),ke=Pe(Be),Tt=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],Rt=ke[2]==null?we:ke[2],V(Yt=k("Helpers").$resolve_class(Tt))?(V(lt(Yt,at))||V(gt)&&V(lt(Yt,gt))||Xe.$raise(qe("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+Tt),Bt=Yt.$new(Xe.$as_symbol(vt),Rt),V(vt=Xe.$as_symbol(Bt.$name()))||Xe.$raise(qe("ArgumentError"),"No name specified for "+it+" extension: "+Tt),Bt.$freeze(),ke=[vt,k("ProcessorExtension").$new(P,Bt)],W(yt,"[]=",ke),ke[ke.length-1]):Ge(at,Tt)||V(gt)&&Ge(gt,Tt)?(Tt.$update_config(Rt),V(vt=V(vt)?(ke=[Xe.$as_symbol(vt)],W(Tt,"name=",ke),ke[ke.length-1]):Xe.$as_symbol(Tt.$name()))||Xe.$raise(qe("ArgumentError"),"No name specified for "+it+" extension: "+Tt),Tt.$freeze(),ke=[vt,k("ProcessorExtension").$new(P,Tt)],W(yt,"[]=",ke),ke[ke.length-1]):Xe.$raise(qe("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de))}),y(m,"$reset",function(){var P=this;return P.preprocessor_extensions=P.tree_processor_extensions=P.postprocessor_extensions=P.include_processor_extensions=P.docinfo_processor_extensions=P.block_extensions=P.block_macro_extensions=P.inline_macro_extensions=we,P.document=we}),y(m,"$resolve_args",function(P,de){var le=we,ke=we;return le=Ge(qe("Hash"),P["$[]"](-1))?P.$pop():_e([],{}),E(de,1)?le:(V(et(ke=K(K(de,1),P.$size()),0))?P=Me(P,qe("Array").$new(ke)):V(lt(ke,0))&&P.$pop(ke["$-@"]()),P["$<<"](le),P)}),y(m,"$as_symbol",function(P){return V(P)?P.$to_sym():we})}(O[0],null,O),function(H,g){var o=[H].concat(g),m=a.$r(o);return y(H,"$generate_name",function(){var k=this;return"extgrp"+k.$next_auto_id()}),y(H,"$next_auto_id",function(){var k=this,b=we;return k.auto_id==null&&(k.auto_id=we),k.auto_id=V(b=k.auto_id)?b:-1,k.auto_id=Me(k.auto_id,1)}),y(H,"$groups",function(){var k=this,b=we;return k.groups==null&&(k.groups=we),k.groups=V(b=k.groups)?b:_e([],{})}),y(H,"$create",function C(k){var b=C.$$p||we,L=this,P=we;return C.$$p=null,k==null&&(k=we),b!==we?m("Registry").$new(M(V(P=k)?P:L.$generate_name(),b)):m("Registry").$new()},-1),y(H,"$register",function C(k){var b=C.$$p||we,L,P,de,le=this,ke=we,Be=we,Xe=we,it=we,ht=we;return C.$$p=null,L=G(arguments),P=L,ke=P.$size(),b!==we?Be=b:V(Xe=P.$pop())?Be=V(it=m("Helpers").$resolve_class(Xe))?it:Xe:le.$raise(qe("ArgumentError"),"Extension group to register not specified"),ht=V(it=P.$pop())?it:le.$generate_name(),V(P["$empty?"]())||le.$raise(qe("ArgumentError"),"Wrong number of arguments ("+ke+" for 1..2)"),de=[ht.$to_sym(),Be],W(le.$groups(),"[]=",de),de[de.length-1]},-1),y(H,"$unregister_all",function(){var k=this;return k.groups=_e([],{}),we}),y(H,"$unregister",function(k){var b,L,P=this;return b=G(arguments),L=b,W(L,"each_with_object",[P.$groups()],function(le,ke){return le==null&&(le=we),ke==null&&(ke=we),ke.$delete(le.$to_sym())}),we},-1)}(a.get_singleton_class(ie),O)}(Q[0],Q)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ae=a.module,re=a.klass,V=a.truthy,_e=a.def,y=[],W=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(G,Me){var E=ae(G,"Asciidoctor"),et=[E].concat(Me);return function(Re,Ge){var De=re(Re,Ge,"Stylesheets"),Pe=De.$$prototype;return Pe.primary_stylesheet_data=W,_e(De,"$primary_stylesheet_data",function(){var Ye=this,st=W;return Ye.primary_stylesheet_data=V(st=Ye.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 ae=a.module,re=a.klass,V=a.def,_e=[];return a.nil,function(y,W){var Ue=ae(y,"Asciidoctor"),G=[Ue].concat(W),Me=a.$r(G);return function(E,et){var Re=re(E,et,"Document");return V(Re,"$fill_datetime_attributes",function(De,Pe){var dt=a.truthy,Ye=a.falsy,st=a.nil,We,Oe,ft,R,tt,A,rt,lt,K=function(C,k){return k===0?C.getUTCFullYear():C.getFullYear()},M=function(C,k){return k===0?C.getUTCMonth():C.getMonth()},He=function(C,k){return k===0?C.getUTCDate():C.getDate()},we=function(C,k){return k===0?C.getUTCHours():C.getHours()},qe=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(qe.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Oe=qe,We=0):We=-qe.getTimezoneOffset()/60,dt(ft=De["$[]"]("localdate")))Ye(R=De["$[]"]("localyear"))&&(R=ft.indexOf("-")===4?ft.substring(0,4):st,De["$[]="]("localyear",R));else{var ze=K(qe,We).toString(),oe=("0"+(M(qe,We)+1)).slice(-2),ye=("0"+He(qe,We)).slice(-2);ft=ze+"-"+oe+"-"+ye,De["$[]="]("localdate",ft),R=ze,De["$[]="]("localyear",ze)}if(Ye(tt=De["$[]"]("localtime"))){var Q=("0"+we(qe,We)).slice(-2),F=("0"+qe.getMinutes()).slice(-2),q=("0"+qe.getSeconds()).slice(-2),ie;We===0?ie="UTC":We>0?ie=("+0"+We*100).slice(-5):ie=("-0"+-We*100).slice(-5),tt=Q+":"+F+":"+q+" "+ie,De["$[]="]("localtime",tt)}if(Ye(A=De["$[]"]("localdatetime"))&&(A=ft+" "+tt,De["$[]="]("localdatetime",A)),dt(Oe)?Pe=Oe:dt(Pe)?We=-Pe.getTimezoneOffset()/60:Pe=qe,dt(rt=De["$[]"]("docdate")))De["$[]="]("docyear",rt.indexOf("-")===4?rt.substring(0,4):st);else{var O=K(Pe,We).toString(),$e=("0"+(M(Pe,We)+1)).slice(-2),H=("0"+He(Pe,We)).slice(-2);rt=O+"-"+$e+"-"+H,De["$[]="]("docdate",rt),Ye(De["$[]"]("docyear"))&&De["$[]="]("docyear",O)}if(Ye(lt=De["$[]"]("doctime"))){var g=("0"+we(Pe,We)).slice(-2),o=("0"+Pe.getMinutes()).slice(-2),m=("0"+Pe.getSeconds()).slice(-2),ie;We===0?ie="UTC":We>0?ie=("+0"+We*100).slice(-5):ie=("-0"+-We*100).slice(-5),lt=g+":"+o+":"+m+" "+ie,De["$[]="]("doctime",lt)}return Ye(De["$[]"]("docdatetime"))&&De["$[]="]("docdatetime",rt+" "+lt),st})}(G[0],Me("AbstractBlock"))}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ae=a.module,re=a.def,V=[];return a.nil,function(_e,y){var W=ae(_e,"Asciidoctor"),Ue=[W].concat(y);return function(G){var Me=ae(G,"Substitutors");return re(Me,"$sub_placeholder",function(et,Re){return et.replace("%s",Re)})}(Ue[0])}(V[0],V)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ae=a.module,re=a.klass,V=a.truthy,_e=a.defs,y=[];return a.nil,function(W,Ue){var G=ae(W,"Asciidoctor"),Me=[G].concat(Ue);return function(E,et){var Re=re(E,et,"Parser");return V(String.prototype.repeat)?_e(Re,"$uniform?",function(De,Pe,dt){return Pe.repeat(dt)===De}):_e(Re,"$uniform?",function(De,Pe,dt){return Array.apply(null,{length:dt}).map(function(){return Pe}).join("")===De})}(Me[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ae=a.module,re=a.truthy,V=a.def,_e=[],y=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(W,Ue){var G=ae(W,"Asciidoctor"),Me=[G].concat(Ue);return function(E,et){var Re=ae(E,"SyntaxHighlighter"),Ge=[Re].concat(et);return function(De,Pe){var dt=ae(De,"Factory"),Ye=[dt].concat(Pe),st=a.$r(Ye);return V(dt,"$for",function(Oe){var ft=this;return re(ft.$registry()["$key?"](Oe))?ft.$registry()["$[]"](Oe):(re(ft["$include?"](st("Logging")))||ft.$include(st("Logging")),re(ft.$registry()["$empty?"]())?ft.$logger().$debug("no syntax highlighter available, functionality disabled."):ft.$logger().$debug("syntax highlighter named '"+Oe+"' is not available, must be one of: '"+ft.$registry().$keys().$join("', '")+"'."),y)})}(Ge[0],Ge)}(Me[0],Me)}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ae.$require("asciidoctor/js/asciidoctor_ext/document"),ae.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ae.$require("asciidoctor/js/asciidoctor_ext/parser"),ae.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ae.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ae=a.klass,re=a.def,V=a.truthy,_e=a.rb_lt,y=[],W=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,G,Me){var E=ae(Ue,G,"Logger"),et=[E].concat(Me),Re=a.$r(et),Ge=E.$$prototype;return Ge.level=Ge.progname=Ge.pipe=Ge.formatter=W,function(De,Pe){var dt=ae(De,Pe,"Formatter");return re(dt,"$call",function(st,We,Oe,ft){var R=this,tt=W;return tt=We.getFullYear()+"-"+("0"+(We.getMonth()+1)).slice(-2)+"-"+("0"+We.getDate()).slice(-2)+"T"+("0"+We.getHours()).slice(-2)+":"+("0"+We.getMinutes()).slice(-2)+":"+("0"+We.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+tt+"] "+st.$rjust(5)+" -- "+Oe+": "+R.$message_as_string(ft)})}(et[0],null),re(E,"$add",function De(Pe,dt,Ye){var st=De.$$p||W,We=this,Oe=W;return De.$$p=null,dt==null&&(dt=W),Ye==null&&(Ye=W),V(_e(Pe=V(Oe=Pe)?Oe:Re("UNKNOWN"),We.level))||(Ye=V(Oe=Ye)?Oe:We.progname,V(dt)||(st!==W?dt=a.yieldX(st,[]):(dt=Ye,Ye=We.progname)),We.pipe.$write(We.formatter.$call(V(Oe=Re("SEVERITY_LABELS")["$[]"](Pe))?Oe:"ANY",new Date,Ye,dt))),!0},-2)}(y[0],null,y)},Opal.modules["asciidoctor/js/postscript"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/converter/composite"),ae.$require("asciidoctor/converter/html5"),ae.$require("asciidoctor/extensions"),ae.$require("asciidoctor/js/asciidoctor_ext"),ae.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var ae=a.module,re=a.const_set,V=a.send,_e=a.to_ary,y=a.defs,W=a.def,Ue=a.truthy,G=a.hash2,Me=a.eqeq,E=a.rb_minus,et=a.regexp,Re=a.top,Ge=[],De=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"),Re.$require("set"),Re.$require("asciidoctor/js"),function(dt,Ye){var st=ae(dt,"Asciidoctor"),We=[st].concat(Ye),Oe=a.$r(We),ft=De;return re(We[0],"RUBY_ENGINE_OPAL",re(We[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(R,tt){var A=ae(R,"SafeMode"),rt=[A].concat(tt);return re(rt[0],"UNSAFE",0),re(rt[0],"SAFE",1),re(rt[0],"SERVER",10),re(rt[0],"SECURE",20),A.names_by_value=V(V(A.$constants(!1),"map",[],function lt(K){var M=lt.$$s==null?this:lt.$$s;return K==null&&(K=De),[M.$const_get(K),K.$to_s().$downcase()]},{$$s:A}),"sort",[],function(K,M){var He,we,qe=De,ze=De;return K==null&&(K=De),M==null&&(M=De),we=K,He=_e(we),qe=He[0]==null?De:He[0],we=M,He=_e(we),ze=He[0]==null?De:He[0],qe["$<=>"](ze)},{$$has_top_level_mlhs_arg:!0}).$to_h(),y(A,"$value_for_name",function(K){var M=this;return M.$const_get(K.$upcase(),!1)}),y(A,"$name_for_value",function(K){var M=this;return M.names_by_value==null&&(M.names_by_value=De),M.names_by_value["$[]"](K)}),y(A,"$names",function(){var K=this;return K.names_by_value==null&&(K.names_by_value=De),K.names_by_value.$values()})}(We[0],We),function(R,tt){var A=ae(R,"Compliance");return A.keys=Pe("Set").$new(),function(rt,lt){return rt.$attr_reader("keys"),W(rt,"$define",function(M,He){var we=this;return we.keys==null&&(we.keys=De),we.$instance_variable_set("@"+M,He),we.$singleton_class().$send("attr_accessor",M),we.keys["$<<"](M),De})}(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)}(We[0]),Ue(Oe("ROOT_DIR","skip_raise")?"constant":De)||re(We[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),re(We[0],"LIB_DIR",Pe("File").$join(Oe("ROOT_DIR"),"lib")),re(We[0],"DATA_DIR",Pe("File").$join(Oe("ROOT_DIR"),"data")),re(We[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(R){if(a.rescue(R,[Oe("StandardError")]))try{return Ue(ft=Pe("ENV")["$[]"]("HOME"))?ft:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw R}}()),re(We[0],"LF",`
|
|
605
|
-
`),re(We[0],"NULL","\0"),re(We[0],"TAB"," "),re(We[0],"MAX_INT",9007199254740991),re(We[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),re(We[0],"BOM_BYTES_UTF_8",[239,187,191]),re(We[0],"BOM_BYTES_UTF_16LE",[255,254]),re(We[0],"BOM_BYTES_UTF_16BE",[254,255]),re(We[0],"FILE_READ_MODE",Ue(Oe("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),re(We[0],"URI_READ_MODE",Oe("FILE_READ_MODE")),re(We[0],"FILE_WRITE_MODE",Ue(Oe("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),re(We[0],"DEFAULT_DOCTYPE","article"),re(We[0],"DEFAULT_BACKEND","html5"),re(We[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),re(We[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),re(We[0],"BACKEND_ALIASES",G(["html","docbook"],{html:"html5",docbook:"docbook5"})),re(We[0],"DEFAULT_PAGE_WIDTHS",G(["docbook"],{docbook:425})),re(We[0],"DEFAULT_EXTENSIONS",G(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),re(We[0],"ASCIIDOC_EXTENSIONS",G([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),re(We[0],"SETEXT_SECTION_LEVELS",G(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),re(We[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),re(We[0],"ADMONITION_STYLE_HEADS",V(Pe("Set").$new(),"tap",[],function(tt){return tt==null&&(tt=De),V(Oe("ADMONITION_STYLES"),"each",[],function(rt){return rt==null&&(rt=De),tt["$<<"](rt.$chr())})})),re(We[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),re(We[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),re(We[0],"DELIMITED_BLOCKS",G(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["open",["comment","example","literal","listing","pass","quote","sidebar","source","verse","admonition","abstract","partintro"].$to_set()],"----":["listing",["literal","source"].$to_set()],"....":["literal",["listing","source"].$to_set()],"====":["example",["admonition"].$to_set()],"****":["sidebar",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()]})),re(We[0],"DELIMITED_BLOCK_HEADS",V(G([],{}),"tap",[],function(tt){return tt==null&&(tt=De),V(Oe("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=De),lt=[rt.$slice(0,2),!0],V(tt,"[]=",lt),lt[lt.length-1]})})),re(We[0],"DELIMITED_BLOCK_TAILS",V(G([],{}),"tap",[],function(tt){return tt==null&&(tt=De),V(Oe("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=De),Me(rt.$length(),4)?(lt=[rt,rt["$[]"](E(rt.$length(),1))],V(tt,"[]=",lt),lt[lt.length-1]):De})})),re(We[0],"CAPTION_ATTRIBUTE_NAMES",G(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),re(We[0],"LAYOUT_BREAK_CHARS",G(["'","<"],{"'":"thematic_break","<":"page_break"})),re(We[0],"MARKDOWN_THEMATIC_BREAK_CHARS",G(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),re(We[0],"HYBRID_LAYOUT_BREAK_CHARS",Oe("LAYOUT_BREAK_CHARS").$merge(Oe("MARKDOWN_THEMATIC_BREAK_CHARS"))),re(We[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),re(We[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),re(We[0],"ORDERED_LIST_KEYWORDS",G(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),re(We[0],"ATTR_REF_HEAD","{"),re(We[0],"LIST_CONTINUATION","+"),re(We[0],"HARD_LINE_BREAK"," +"),re(We[0],"LINE_CONTINUATION"," \\"),re(We[0],"LINE_CONTINUATION_LEGACY"," +"),re(We[0],"BLOCK_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),re(We[0],"INLINE_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),re(We[0],"STEM_TYPE_ALIASES",G(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),re(We[0],"FONT_AWESOME_VERSION","4.7.0"),re(We[0],"HIGHLIGHT_JS_VERSION","9.18.3"),re(We[0],"MATHJAX_VERSION","2.7.9"),re(We[0],"DEFAULT_ATTRIBUTES",G(["appendix-caption","appendix-refsig","caution-caption","chapter-refsig","example-caption","figure-caption","important-caption","last-update-label","note-caption","part-refsig","prewrap","sectids","section-refsig","table-caption","tip-caption","toc-placement","toc-title","untitled-label","version-label","warning-caption"],{"appendix-caption":"Appendix","appendix-refsig":"Appendix","caution-caption":"Caution","chapter-refsig":"Chapter","example-caption":"Example","figure-caption":"Figure","important-caption":"Important","last-update-label":"Last updated","note-caption":"Note","part-refsig":"Part",prewrap:"",sectids:"","section-refsig":"Section","table-caption":"Table","tip-caption":"Tip","toc-placement":"auto","toc-title":"Table of Contents","untitled-label":"Untitled","version-label":"Version","warning-caption":"Warning"})),re(We[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),re(We[0],"INTRINSIC_ATTRIBUTES",G(["startsb","endsb","vbar","caret","asterisk","tilde","plus","backslash","backtick","blank","empty","sp","two-colons","two-semicolons","nbsp","deg","zwsp","quot","apos","lsquo","rsquo","ldquo","rdquo","wj","brvbar","pp","cpp","amp","lt","gt"],{startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",plus:"+",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:" ",deg:"°",zwsp:"​",quot:""",apos:"'",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",wj:"⁠",brvbar:"¦",pp:"++",cpp:"C++",amp:"&",lt:"<",gt:">"})),re(We[0],"QUOTE_SUBS",V(G([],{}),"tap",[],function(tt){var A=De,rt=De;return tt==null&&(tt=De),tt["$[]="](!1,A=[["strong","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Oe("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Oe("CC_ALL"),"*?\\S)\\*(?!",Oe("CG_WORD"),")"],"m")],["double","constrained",et(["(^|[^",Oe("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Oe("CC_ALL"),'*?\\S)`"(?!',Oe("CG_WORD"),")"],"m")],["single","constrained",et(["(^|[^",Oe("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Oe("CC_ALL"),"*?\\S)`'(?!",Oe("CG_WORD"),")"],"m")],["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?``(",Oe("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",et(["(^|[^",Oe("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Oe("CC_ALL"),"*?\\S)`(?![",Oe("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?__(",Oe("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Oe("CC_ALL"),"*?\\S)_(?!",Oe("CG_WORD"),")"],"m")],["mark","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?##(",Oe("CC_ALL"),"+?)##"],"m")],["mark","constrained",et(["(^|[^",Oe("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Oe("CC_ALL"),"*?\\S)#(?!",Oe("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),tt["$[]="](!0,rt=A.$drop(0)),rt["$[]="](2,["double","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Oe("CC_ALL"),"*?\\S)''(?!",Oe("CG_WORD"),")"],"m")]),rt["$[]="](3,["single","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Oe("CC_ALL"),"*?\\S)'(?!",Oe("CG_WORD"),")"],"m")]),rt["$[]="](4,["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Oe("CC_ALL"),"+?)\\+\\+"],"m")]),rt["$[]="](5,["monospaced","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Oe("CC_ALL"),"*?\\S)\\+(?!",Oe("CG_WORD"),")"],"m")]),rt.$insert(3,["emphasis","constrained",et(["(^|[^",Oe("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Oe("CC_ALL"),"*?\\S)'(?!",Oe("CG_WORD"),")"],"m")])})),re(We[0],"REPLACEMENTS",[[/\\?\(C\)/,"©","none"],[/\\?\(R\)/,"®","none"],[/\\?\(TM\)/,"™","none"],[/(?: |\n|^|\\)--(?: |\n|$)/," — ","none"],[et(["(",Oe("CG_WORD"),")\\\\?--(?=",Oe("CG_WORD"),")"]),"—​","leading"],[/\\?\.\.\./,"…​","none"],[/\\?`'/,"’","none"],[et(["(",Oe("CG_ALNUM"),")\\\\?'(?=",Oe("CG_ALPHA"),")"]),"’","leading"],[/\\?->/,"→","none"],[/\\?=>/,"⇒","none"],[/\\?<-/,"←","none"],[/\\?<=/,"⇐","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]),De}(Ge[0],Ge),Re.$require("asciidoctor.rb/../asciidoctor/core_ext"),Re.$require("asciidoctor.rb/../asciidoctor/helpers"),Re.$require("asciidoctor.rb/../asciidoctor/logging"),Re.$require("asciidoctor.rb/../asciidoctor/rx"),Re.$require("asciidoctor.rb/../asciidoctor/substitutors"),Re.$require("asciidoctor.rb/../asciidoctor/version"),Re.$require("asciidoctor.rb/../asciidoctor/abstract_node"),Re.$require("asciidoctor.rb/../asciidoctor/abstract_block"),Re.$require("asciidoctor.rb/../asciidoctor/attribute_list"),Re.$require("asciidoctor.rb/../asciidoctor/block"),Re.$require("asciidoctor.rb/../asciidoctor/callouts"),Re.$require("asciidoctor.rb/../asciidoctor/converter"),Re.$require("asciidoctor.rb/../asciidoctor/document"),Re.$require("asciidoctor.rb/../asciidoctor/inline"),Re.$require("asciidoctor.rb/../asciidoctor/list"),Re.$require("asciidoctor.rb/../asciidoctor/parser"),Re.$require("asciidoctor.rb/../asciidoctor/path_resolver"),Re.$require("asciidoctor.rb/../asciidoctor/reader"),Re.$require("asciidoctor.rb/../asciidoctor/section"),Re.$require("asciidoctor.rb/../asciidoctor/stylesheets"),Re.$require("asciidoctor.rb/../asciidoctor/table"),Re.$require("asciidoctor.rb/../asciidoctor/writer"),Re.$require("asciidoctor.rb/../asciidoctor/load"),Re.$require("asciidoctor.rb/../asciidoctor/convert"),Re.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),Re.$require("asciidoctor.rb/../asciidoctor/timings"),Re.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ae={};if(a){const re=a.$$smap;for(const _e in re){const y=re[_e];ae[_e]=y===Opal.nil?void 0:y}const V=a.$$map;if(V){const _e=[];for(const y in V){const W=V[y],Ue=W.value,G=W.key-1;_e[G]=Ue===Opal.nil?void 0:Ue}_e.length>0&&(ae.$positional=_e)}}return ae},n=function(a){const ae={};if(a){const re=a.$$keys;for(const V in re){const _e=re[V].value;ae[V.toString()]=_e===Opal.nil?void 0:_e}}return ae},i=function(a){if(a=t(a),a){const ae=a["$[]"]("converter");ae&&ae!==Opal.nil&&a["$[]="]("converter",s(ae));const re=a["$[]"]("attributes");re&&typeof re=="object"&&re.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(re)))}return a},s=function(a){const ae=function(Me){return Object.assign({},Me.basebackend?{basebackend:Me.basebackend}:{},Me.outfilesuffix?{outfilesuffix:Me.outfilesuffix}:{},Me.filetype?{filetype:Me.filetype}:{},Me.htmlsyntax?{htmlsyntax:Me.htmlsyntax}:{},Me.supports_templates?{supports_templates:Me.supports_templates}:{})},re=function(Me,E){Me.backend_traits?E.backend_traits=t(Me.backend_traits):Me.backendTraits?E.backend_traits=t(Me.backendTraits):(Me.basebackend||Me.outfilesuffix||Me.filetype||Me.htmlsyntax||Me.supports_templates)&&(E.backend_traits=t(ae(Me)))},V=function(Me,E){Ue(Me,E,"$handles?","handles",function(){return!0})},_e=function(Me,E){Ue(Me,E,"$composed","composed")},y=function(Me,E){Ue(Me,E,"$==","==",function(et){return E===et})},W=function(Me,E){Ue(Me,E,"$send","send",function(et){const[,...Re]=Array.from(arguments),Ge=E["$"+et];if(Ge)return Ge.apply(E,Re);throw new Error(`undefined method \`${et}\` for \`${E.toString()}\``)})},Ue=function(Me,E,et,Re,Ge){typeof Me[et]>"u"&&(typeof Me[Re]=="function"?E[et]=Me[Re]:Ge&&(E[et]=Ge))},G=function(Me){typeof Me["$respond_to?"]!="function"&&(Me["$respond_to?"]=function(E){return typeof this[E]=="function"})};if(typeof a=="function"){const Me=c(ut,a.constructor.name,{initialize:function(E,et){const Re=this,Ge=new a(E,et);Object.assign(this,Ge),re(Ge,Re);const De=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<De.length;Pe++){const dt=De[Pe];dt!=="constructor"&&(Re[dt]=Ge[dt])}typeof Ge.$convert>"u"&&typeof Ge.convert=="function"&&(Re.$convert=Ge.convert),V(Ge,Re),_e(Ge,Re),G(Re),Re.super(E,et)}});return Me.$extend(_t),Me}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),re(a,a),a.backend_traits){const Me=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const E of Me)a["$"+E]=_t.prototype["$"+E];a.$$meta=_t}return V(a,a),_e(a,a),y(a,a),W(a,a),G(a),a}return a};function c(a,ae,re,V,_e){const y=Opal.klass(Opal.Object,a,ae,function(){});let W,Ue,G;const Me={};for(const Re in re)Object.prototype.hasOwnProperty.call(re,Re)&&function(Ge){const De=re[Ge];if(Ge==="postConstruct")W=De;else if(Ge==="initialize")Ue=De;else if(Ge==="constructor")G=De;else{V&&Object.prototype.hasOwnProperty.call(V,Ge)&&(Me[Ge]=!0);let Pe;Opal.def(y,"$"+Ge,Pe=function(){let dt;_e&&Object.prototype.hasOwnProperty.call(_e,Ge)?dt=_e[Ge](arguments):dt=arguments;const Ye=Pe.$$p;return Ye&&(dt[dt.length]=function(){return Opal.yield1(Ye)},dt.length+=1,Pe.$$p=null),De.apply(this,dt)})}}(Re);let E;typeof G=="function"?E=function(){const Re=Array.from(arguments);for(let De=0;De<Re.length;De++)typeof Re[De]=="object"&&"$$smap"in Re[De]&&(Re[De]=r(Re[De]));Re.unshift(null);const Ge=new(Function.prototype.bind.apply(G,Re));Object.assign(this,Ge),typeof W=="function"&&W.bind(this)()}:typeof Ue=="function"?E=function(){const Re=Array.from(arguments);for(let Ge=0;Ge<Re.length;Ge++)typeof Re[Ge]=="object"&&"$$smap"in Re[Ge]&&(Re[Ge]=r(Re[Ge]));Ue.apply(this,Re),typeof W=="function"&&W.bind(this)()}:E=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",E)),typeof W=="function"&&W.bind(this)()},Opal.def(y,"$initialize",E);let et;Opal.def(y,"super",et=function(Re){if(typeof Re=="function")Opal.send(this,Opal.find_super_dispatcher(this,Re.name,Re));else{const Ge=Array.from(arguments);for(let De=0;De<Ge.length;De++)typeof Ge[De]=="object"&&(Ge[De]=t(Ge[De]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",E),Ge)}});for(const Re in re)et[Re]=function(){const Ge=Array.from(arguments);for(let Pe=0;Pe<Ge.length;Pe++)typeof Ge[Pe]=="object"&&typeof Ge[Pe].constructor=="function"&&Ge[Pe].constructor.name==="Object"&&(Ge[Pe]=t(Ge[Pe]));const De=y.$$prototype;return Opal.send(De,Opal.find_super_dispatcher(De,Re,De[`$${Re}`]),Ge)};if(V)for(const Re in V)Object.prototype.hasOwnProperty.call(V,Re)&&!Object.prototype.hasOwnProperty.call(Me,Re)&&function(Ge){const De=V[Ge];Opal.def(y,"$"+Ge,function(){return De.apply(this,arguments)})}(Re);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,ae){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const re=ae&&ae.to_file;typeof re=="object"&&re.constructor.name==="Writable"&&typeof re.write=="function"&&(re["$respond_to?"]=y=>y==="write",re.$object_id=()=>"",re.$write=function(y){this.write(y)});const V=i(ae),_e=this.$convert(a,V);return typeof re=="object"&&re.constructor.name==="Writable"&&typeof re.end=="function"&&re.end(),_e===Opal.nil?"":_e},f.prototype.convertFile=function(a,ae){return this.$convert_file(a,i(ae))},f.prototype.load=function(a,ae){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ae))},f.prototype.loadFile=function(a,ae){return this.$load_file(a,i(ae))};const p=Opal.Asciidoctor.AbstractBlock;p.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},p.prototype.setContentModel=function(a){this.content_model=a},p.prototype.append=function(a){return this.$append(a),this},p.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},p.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},p.prototype.assignCaption=function(a,ae){a=typeof a>"u"?Opal.nil:a,ae=typeof ae>"u"?null:ae,this.$assign_caption(a,ae)},p.prototype.getCaptionedTitle=function(){return this.$captioned_title()},p.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},p.prototype.setStyle=function(a){this.style=a},p.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ae=this.file;return ae===Opal.nil?void 0:ae},a.getDirectory=function(){const ae=this.dir;return ae===Opal.nil?void 0:ae},a.getPath=function(){const ae=this.path;return ae===Opal.nil?void 0:ae},a.getLineNumber=function(){const ae=this.lineno;return ae===Opal.nil?void 0:ae},a},p.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},p.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},p.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},p.prototype.getSubstitutions=function(){return this.subs},p.prototype.hasSubstitution=function(a){return this["$sub?"](a)},p.prototype.removeSubstitution=function(a){this.$remove_sub(a)},p.prototype.hasBlocks=function(){return this.blocks.length>0},p.prototype.getBlocks=function(){return this.blocks},p.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},p.prototype.convert=function(){return this.$convert()},p.prototype.findBy=function(a,ae){return typeof ae>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ae=="function"?Opal.send(this,"find_by",[t(a)],ae):this.$find_by(t(a))},p.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},p.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},p.prototype.getSections=function(){return this.$sections()},p.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},p.prototype.setNumeral=function(a){this["$numeral="](a)},p.prototype.hasTitle=function(){return this["$title?"]()},p.prototype.getAlt=function(){return this.$alt()};const h=Opal.Asciidoctor.Section;h.create=function(a,ae,re,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$new(a,ae,re,t(V))},h.prototype.setLevel=function(a){this.level=a},h.prototype.getIndex=function(){return this.index},h.prototype.setIndex=function(a){this.index=a},h.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},h.prototype.setSectionName=function(a){this.sectname=a},h.prototype.getSectionNumeral=function(){return this.$sectnum()},h.prototype.getSectionNumber=h.prototype.getSectionNumeral,h.prototype.isSpecial=function(){return this.special},h.prototype.setSpecial=function(a){this.special=a},h.prototype.isNumbered=function(){return this.numbered},h.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},h.prototype.getName=function(){return this.getTitle()};const z=Opal.Asciidoctor.Block;z.create=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$new(a,ae,t(re))},z.prototype.getSource=function(){return this.$source()},z.prototype.getSourceLines=function(){return this.lines};const D=Opal.Asciidoctor.AbstractNode;D.prototype.applySubstitutions=function(a,ae){return this.$apply_subs(a,ae)},D.prototype.resolveSubstitutions=function(a,ae,re,V){typeof ae>"u"&&(ae="block"),typeof re>"u"&&(re=Opal.nil),typeof V>"u"&&(V=Opal.nil);const _e=this.$resolve_subs(a,ae,re,V);return _e===Opal.nil?void 0:_e},D.prototype.resolveBlockSubstitutions=function(a,ae,re){return this.resolveSubstitutions(a,"block",ae,re)},D.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},D.prototype.getNodeName=function(){return this.node_name},D.prototype.getAttributes=function(){return r(this.attributes)},D.prototype.getAttribute=function(a,ae,re){const V=this.$attr(a,ae,re);return V===Opal.nil?void 0:V},D.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},D.prototype.isAttribute=function(a,ae,re){return this["$attr?"](a,ae,re)},D.prototype.setAttribute=function(a,ae,re){return typeof re>"u"&&(re=!0),this.$set_attr(a,ae,re)},D.prototype.removeAttribute=function(a){const ae=this.$remove_attr(a);return ae===Opal.nil?void 0:ae},D.prototype.getDocument=function(){return this.document},D.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},D.prototype.isInline=function(){return this["$inline?"]()},D.prototype.isBlock=function(){return this["$block?"]()},D.prototype.isRole=function(a){return this["$role?"](a)},D.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},D.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},D.prototype.hasRole=function(a){return this["$has_role?"](a)},D.prototype.getRoles=function(){return this.$roles()},D.prototype.addRole=function(a){return this.$add_role(a)},D.prototype.removeRole=function(a){return this.$remove_role(a)},D.prototype.isReftext=function(){return this["$reftext?"]()},D.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},D.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},D.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},D.prototype.setId=function(a){this.id=a},D.prototype.isOption=function(a){return this["$option?"](a)},D.prototype.setOption=function(a){return this.$set_option(a)},D.prototype.getIconUri=function(a){return this.$icon_uri(a)},D.prototype.getMediaUri=function(a,ae){return this.$media_uri(a,ae)},D.prototype.getImageUri=function(a,ae){return this.$image_uri(a,ae)},D.prototype.getConverter=function(){return this.$converter()},D.prototype.readContents=function(a,ae){return this.$read_contents(a,t(ae))},D.prototype.readAsset=function(a,ae){const re=this.$read_asset(a,t(ae));return re===Opal.nil?void 0:re},D.prototype.normalizeWebPath=function(a,ae,re){return this.$normalize_web_path(a,ae,re)},D.prototype.normalizeSystemPath=function(a,ae,re,V){return this.$normalize_system_path(a,ae,re,t(V))},D.prototype.normalizeAssetPath=function(a,ae,re){return this.$normalize_asset_path(a,ae,re)};const j=Opal.Asciidoctor.Document;j.prototype.append=function(a){return this["$<<"](a),this},j.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ae=a.__proto__;return ae&&(typeof ae["$highlight?"]=="function"&&(ae.handlesHighlighting=function(){const re=ae["$highlight?"]();return re===Opal.nil?!1:re}),typeof ae["$docinfo?"]=="function"&&(ae.hasDocinfo=ae["$docinfo?"]),typeof ae.$format=="function"&&(ae.format=function(re,V,_e){return this.$format(re,V,t(_e))}),typeof ae.$docinfo=="function"&&(ae.docinfo=function(re,V,_e){return this.$docinfo(re,V,t(_e))})),a},j.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},j.prototype.getImages=function(){return this.catalog.$$smap.images},j.prototype.getLinks=function(){return this.catalog.$$smap.links},j.prototype.hasFootnotes=function(){return this["$footnotes?"]()},j.prototype.getFootnotes=function(){return this.$footnotes()},j.prototype.getHeader=function(){return this.header},j.prototype.setAttribute=function(a,ae){return this.$set_attribute(a,ae)},j.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},j.prototype.convert=function(a){const ae=this.$convert(t(a));return ae===Opal.nil?"":ae},j.prototype.write=function(a,ae){return this.$write(a,ae)},j.prototype.getAuthor=function(){return this.$author()},j.prototype.getSource=function(){return this.$source()},j.prototype.getSourceLines=function(){return this.$source_lines()},j.prototype.isNested=function(){return this["$nested?"]()},j.prototype.isEmbedded=function(){return this["$embedded?"]()},j.prototype.hasExtensions=function(){return this["$extensions?"]()},j.prototype.getDoctype=function(){return this.doctype},j.prototype.getBackend=function(){return this.backend},j.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},j.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},j.prototype.setTitle=function(a){return this["$title="](a)},j.prototype.getDocumentTitle=function(a){const ae=this.$doctitle(t(a));return ae===Opal.nil?void 0:ae},j.prototype.getDoctitle=j.prototype.getDocumentTitle,j.prototype.getCatalog=function(){return r(this.catalog)},j.prototype.getReferences=j.prototype.getCatalog,j.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},j.prototype.getRevdate=function(){return this.getRevisionDate()},j.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},j.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},j.prototype.setHeaderAttribute=function(a,ae,re){return typeof re>"u"&&(re=!0),typeof ae>"u"&&(ae=""),this.$set_header_attribute(a,ae,re)},j.prototype.getAuthors=function(){return this.$authors()};const he=j.Footnote;he.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},he.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},he.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const be=j.ImageReference;be.prototype.getTarget=function(){return this.$$data.target},be.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const ee=j.Author;ee.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},ee.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},ee.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},ee.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},ee.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},ee.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},j.RevisionInfo=function(a,ae,re){this.date=a,this.number=ae,this.remark=re};const Y=j.RevisionInfo;Y.prototype.getDate=function(){return this.date},Y.prototype.getNumber=function(){return this.number},Y.prototype.getRemark=function(){return this.remark},Y.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const X=Opal.Asciidoctor.SafeMode;X.getValueForName=function(a){return this.$value_for_name(a)},X.getNameForValue=function(a){const ae=this.$name_for_value(a);return ae===Opal.nil?void 0:ae},X.getNames=function(){return this.$names()};const ge=Opal.Asciidoctor.Callouts;ge.create=function(){return this.$new()},ge.prototype.register=function(a){return this.$register(a)},ge.prototype.readNextId=function(){return this.$read_next_id()},ge.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},ge.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ae=0;ae<a.length;ae++){const re=a[ae];if(re&&re.length>0)for(let V=0;V<re.length;V++)typeof re[V]=="object"&&"$$smap"in re[V]&&(re[V]=r(re[V]))}return a},ge.prototype.getListIndex=function(){return this.list_index},ge.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ae=0;ae<a.length;ae++)typeof a[ae]=="object"&&"$$smap"in a[ae]&&(a[ae]=r(a[ae]));return a},ge.prototype.nextList=function(){return this.$nextList()},ge.prototype.rewind=function(){return this.$rewind()},j.prototype.getRevisionInfo=function(){return new j.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},j.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},j.prototype.getNotitle=function(){return this.$notitle()},j.prototype.getNoheader=function(){return this.$noheader()},j.prototype.getNofooter=function(){return this.$nofooter()},j.prototype.hasHeader=function(){return this["$header?"]()},j.prototype.playbackAttributes=function(a){if(a=t(a),a){const ae=a["$[]"]("attribute_entries");if(ae&&Array.isArray(ae)){const re=[];for(let V=0;V<ae.length;V++){const _e=ae[V];_e&&typeof _e=="object"&&_e.constructor.name==="Object"&&(_e.$name=function(){return this.name},_e.$value=function(){return this.value},_e.$negate=function(){return this.negate}),re.push(_e)}a["$[]="]("attribute_entries",re)}}this.$playback_attributes(a)},j.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},j.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},j.prototype.restoreAttributes=function(){return this.$restore_attributes()},j.prototype.parse=function(a){return this.$parse(a)},j.prototype.getDocinfo=function(a,ae){return this.$docinfo(a,ae)},j.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},j.prototype.incrementAndStoreCounter=function(a,ae){return this.$increment_and_store_counter(a,ae)},j.prototype.counterIncrement=j.prototype.incrementAndStoreCounter,j.prototype.counter=function(a,ae){return this.$counter(a,ae)},j.prototype.getSafe=function(){return this.safe},j.prototype.getCompatMode=function(){return this.compat_mode},j.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},j.prototype.setSourcemap=function(a){this.sourcemap=a},j.prototype.getCounters=function(){return r(this.counters)},j.prototype.getCallouts=function(){return this.$callouts()},j.prototype.getBaseDir=function(){return this.base_dir},j.prototype.getOptions=function(){return r(this.options)},j.prototype.getOutfilesuffix=function(){return this.outfilesuffix},j.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},j.prototype.getReader=function(){return this.reader},j.prototype.getConverter=function(){return this.converter},j.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const se=j.Title;se.prototype.getMain=function(){return this.main},se.prototype.getCombined=function(){return this.combined},se.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},se.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},se.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const me=Opal.Asciidoctor.Inline;me.create=function(a,ae,re,V){return this.$new(a,ae,re,i(V))},me.prototype.convert=function(){return this.$convert()},me.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},me.prototype.getType=function(){return this.$type()},me.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},me.prototype.getAlt=function(){return this.$alt()};const Z=Opal.Asciidoctor.List;Z.prototype.hasItems=function(){return this["$items?"]()},Z.prototype.getItems=function(){return this.blocks};const xe=Opal.Asciidoctor.ListItem;xe.prototype.getText=function(){return this.$text()},xe.prototype.setText=function(a){return this["$text="](a)},xe.prototype.hasText=function(){return this["$text?"]()},xe.prototype.getMarker=function(){return this.marker},xe.prototype.setMarker=function(a){this.marker=a},xe.prototype.getList=function(){return this.$list()},xe.prototype.getParent=xe.prototype.getList;const fe=Opal.Asciidoctor.Reader;fe.prototype.pushInclude=function(a,ae,re,V,_e){return this.$push_include(a,ae,re,V,t(_e))},fe.prototype.getCursor=function(){return this.$cursor()},fe.prototype.getLines=function(){return this.$lines()},fe.prototype.getString=function(){return this.$string()},fe.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},fe.prototype.isEmpty=function(){return this["$empty?"]()},fe.prototype.peekLine=function(a){a=a||!1;const ae=this.$peek_line(a);return ae===Opal.nil?void 0:ae},fe.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},fe.prototype.readLines=function(){return this.$read_lines()},fe.prototype.read=function(){return this.$read()},fe.prototype.advance=function(){return this.$advance()};const Ae=Opal.Asciidoctor.Reader.Cursor;Ae.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ae.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ae.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ae.prototype.getLineNumber=function(){return this.lineno};function J(a,ae){const re=Opal.const_get_qualified(Opal.Logger,"Formatter");return c(re,a,ae,{},{call:function(V){for(let _e=0;_e<V.length;_e++)typeof V[_e]=="object"&&"$$smap"in V[_e]&&(V[_e]=r(V[_e]));return V}})}function Ee(a,ae){const re=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return c(re,a,ae,{},{add:function(V){if(V.length>=2&&typeof V[2]=="object"&&"$$smap"in V[2]){const _e=V[2],y=r(_e);y.getText=function(){return this.text},y.getSourceLocation=function(){return this.source_location},y.$inspect=function(){const W=this.getSourceLocation();return W?W.getPath()+": line "+W.getLineNumber()+": "+this.getText():this.getText()},V[2]=y}return V.length>=1&&(V[1]=V[1]===Opal.nil?void 0:V[1]),V}})}const ce=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=ce,ce.getLogger=function(){return this.$logger()},ce.setLogger=function(a){this["$logger="](a)},ce.newLogger=function(a,ae){return Ee(a,ae).$new()},ce.newFormatter=function(a,ae){return J(a,ae).$new()};const w=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=w,w.get=function(a){return w.$constants()[a]};const Se=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Se,Se.prototype.call=function(a,ae,re,V){return this.$call(w.get(a),ae,re,V)};const I=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=I,I.create=function(){return this.$new()},I.prototype.getMessages=function(){const a=this.messages,ae=[];for(let re=0;re<a.length;re++){const V=a[re],_e=r(V);typeof _e.message=="string"?_e.getText=function(){return this.message}:(_e.message=r(_e.message),_e.getText=function(){return this.message.text}),_e.getSeverity=function(){return this.severity.toString()},_e.getSourceLocation=function(){return this.message.source_location},ae.push(_e)}return ae};const ne=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=ne,ne.getLogger=function(){return ce.$logger()},ne.createLogMessage=function(a,ae){return ne.prototype.$message_with_context(a,t(ae))},fe.prototype.getLogger=ne.getLogger,fe.prototype.createLogMessage=ne.createLogMessage,D.prototype.getLogger=ne.getLogger,D.prototype.createLogMessage=ne.createLogMessage;const B=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=B,B.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},B.prototype.getFormatter=function(){return this.formatter},B.prototype.setFormatter=function(a){this.formatter=a},B.prototype.getLevel=function(){return this.level},B.prototype.setLevel=function(a){this.level=a},B.prototype.getProgramName=function(){return this.progname},B.prototype.setProgramName=function(a){this.progname=a};const Fe=Opal.const_get_qualified("::","Logger"),ue=function(a,ae,re){a["$"+ae](re)};Fe.prototype.add=function(a,ae,re){const V=typeof a=="string"?w[a.toUpperCase()]:a;this.$add(V,ae,re)},Fe.prototype.log=Fe.prototype.add,Fe.prototype.debug=function(a){ue(this,"debug",a)},Fe.prototype.info=function(a){ue(this,"info",a)},Fe.prototype.warn=function(a){ue(this,"warn",a)},Fe.prototype.error=function(a){ue(this,"error",a)},Fe.prototype.fatal=function(a){ue(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 U=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=U,U.create=function(){return this.$new()},U.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const v=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=v,v.create=function(){return this.$new()},v.prototype.printReport=function(a,ae){let re;if(a)if(typeof a.$add=="function")re=function(V){a.$add(1,V)};else if(typeof a.log=="function")re=a.log;else if(typeof a.write=="function")re=function(V){a.write(V,"utf-8")};else throw new Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");else re=function(V){Opal.gvars.stdout.$write(V)};ae&&re("Input file: "+ae),re(" Time to read and parse source: "+this.$read_parse().toFixed(2)),re(" Time to convert document: "+this.$convert().toFixed(2)),re(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};const $=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=$,$.register=function(a,ae){const re=typeof a=="string"?a:a[0];if(typeof ae=="function"){const y=ae.prototype,W=Object.getOwnPropertyNames(y);ae={};for(const Ue in W){const G=W[Ue];ae[G]=y[G]}}const V=c(l,re,ae,{},{format:function(_e){return _e.length>=2&&typeof _e[2]=="object"&&"$$smap"in _e[2]&&(_e[2]=r(_e[2])),_e.length>=1&&(_e[1]=_e[1]===Opal.nil?void 0:_e[1]),_e},highlight:function(_e){if(_e.length>=3&&typeof _e[3]=="object"&&"$$smap"in _e[3]){let y=_e[3];y=r(y);for(const W in y){const Ue=y[W];if(W==="callouts"){const G=n(Ue);for(const Me in G){const E=G[Me];for(let et=0;et<E.length;et++){const Re=E[et];for(let Ge=0;Ge<Re.length;Ge++)Re[Ge]=Re[Ge]===Opal.nil?void 0:Re[Ge]}}y[W]=G}else y[W]=Ue===Opal.nil?void 0:Ue}_e[3]=y}return _e.length>=2&&(_e[2]=_e[2]===Opal.nil?void 0:_e[2]),_e}});for(const _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&function(y){const W=ae[y];y==="handlesHighlighting"?Opal.def(V,"$highlight?",function(){return W.call()}):y==="hasDocinfo"&&Opal.def(V,"$docinfo?",function(Ue){return W.apply(this,[Ue])})}(_e);return Opal.def(V,"$name",function(){return re}),$.$register(V,a),V},$.get=function(a){const ae=$.$for(a);return ae===Opal.nil?void 0:ae},$.for=$.get;const l=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=l,l.prototype.registerFor=function(a){$.$register(this,a)};const u=Opal.Asciidoctor.Table;u.create=function(a,ae){return this.$new(a,t(ae))},u.prototype.getCaption=function(){return this.caption},u.prototype.getRows=function(){return this.rows},u.prototype.getColumns=function(){return this.columns},u.prototype.getHeadRows=function(){return this.rows.head},u.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},u.prototype.getBodyRows=function(){return this.rows.body},u.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},u.prototype.getFootRows=function(){return this.rows.foot},u.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},u.prototype.hasHeaderOption=function(){return this.has_header_option},u.prototype.hasFooterOption=function(){return this.isOption("footer")},u.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},u.prototype.getRowCount=function(){return this.getAttribute("rowcount")},u.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},u.prototype.getColumnCount=function(){return this.getAttribute("colcount")},u.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const d=Opal.Asciidoctor.Table.Rows;d.create=function(a,ae,re){return this.$new(a,ae,re)},d.prototype.getHead=function(){return this.head},d.prototype.getFoot=function(){return this.foot},d.prototype.getBody=function(){return this.body},d.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const _=Opal.Asciidoctor.Table.Column;_.create=function(a,ae,re){return this.$new(a,ae,t(re))},_.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},_.prototype.getWidth=function(){return this.getAttribute("width")},_.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},_.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},_.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const S=Opal.Asciidoctor.Table.Cell;S.create=function(a,ae,re,V){return this.$new(a,ae,t(re),t(V))},S.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},S.prototype.setColumnSpan=function(a){return this["$colspan="](a)},S.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},S.prototype.setRowSpan=function(a){return this["$rowspan="](a)},S.prototype.getContent=function(){return this.$content()},S.prototype.getText=function(){return this.$text()},S.prototype.getSource=function(){return this.$source()},S.prototype.getLines=function(){return this.$lines()},S.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},S.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},S.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},S.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},S.prototype.getWidth=function(){return this.getAttribute("width")},S.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},S.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const T=Opal.Asciidoctor.Converter.TemplateConverter;if(T){Opal.Asciidoctor.TemplateConverter=T,T.create=function(ae,re,V){V&&V.template_cache&&(V.template_cache=t(V.template_cache)),this.$new(ae,re,t(V))},T.getCache=function(){const ae=r(this.caches);if(ae){if(ae.scans){ae.scans=r(ae.scans);for(const re in ae.scans)ae.scans[re]=r(ae.scans[re])}ae.templates&&(ae.templates=r(ae.templates))}return ae},T.clearCache=function(){this.$clear_caches()},T.prototype.convert=function(ae,re,V){return this.$convert(ae,re,t(V))},T.prototype.handles=function(ae){return this["$handles?"](ae)},T.prototype.getContentOnly=function(ae){return this.$content_only(ae)},T.prototype.skip=function(ae){this.$skip(ae)},T.prototype.getTemplates=function(){return r(this.$templates())},T.prototype.register=function(ae,re){return this.$register(ae,re)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ae,re){if(typeof ae=="string")this.registry[ae]=re;else for(let V=0;V<ae.length;V++){const _e=ae[V];this.registry[_e]=re}}}const te=Opal.Asciidoctor.Converter.CompositeConverter;te&&(Opal.Asciidoctor.CompositeConverter=te,te.prototype.convert=function(a,ae,re){return this.$convert(a,ae,t(re))},te.prototype.getContentOnly=function(a){return this.$content_only(a)},te.prototype.skip=function(a){this.$skip(a)},te.prototype.getConverters=function(){return this.converters},te.prototype.getConverter=function(a){const ae=this.$converter_for(a);return ae===Opal.nil?void 0:ae},te.prototype.findConverter=function(a){return this.$find_converter(a)});const Ie=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=Ie,Ie.prototype.convert=function(a,ae,re){return this.$convert(a,ae,t(re))},Ie.create=function(a,ae){return this.$create(a,t(ae))};const Je=Opal.Asciidoctor.Converter.Factory,ut=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=Je;const _t=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=_t,Je.register=function(a,ae){const re=[s(a)].concat(ae);return Ie.$register.apply(Ie,re)},Je.getDefault=function(a){return this.$default(a)},Je.prototype.create=function(a,ae){return this.$create(a,t(ae))},Je.getRegistry=function(){return r(Ie.$registry())},Je.for=function(a){const ae=Ie.$for(a);return ae===Opal.nil?void 0:ae},Je.unregisterAll=function(){const a=Ie.DefaultFactory.$$cvars["@@registry"];Ie.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const wt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=wt,wt.create=function(){return this.$new()},wt.prototype.convert=function(a,ae,re){return this.$convert(a,ae,re)};const bt=function(a){return a.$$arity=a.length,a},At=function(a,ae,re,V){return typeof re=="object"||re.$$is_class?a["$"+ae](re,V):Opal.send(a,ae,V&&[V],bt(re))},St=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=St,St.create=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"create",null,bt(a)):typeof ae=="function"?Opal.send(this,"create",[a],bt(ae)):this.$create()},St.register=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"register",null,bt(a)):Opal.send(this,"register",[a],bt(ae))},St.getGroups=function(){return r(this.$groups())},St.unregisterAll=function(){this.$unregister_all()},St.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ae=this.$groups(),re={};let V=0;const _e=ae.$$keys;for(;V<_e.length;V++){const y=_e[V];re[y.toString()]=y}for(let y=0;y<a.length;y++){const W=a[y];W in re&&Opal.hash_delete(ae,re[W])}};const Mt=St.Registry;Mt.prototype.getGroups=St.getGroups,Mt.prototype.unregisterAll=function(){this.groups=Opal.hash()},Mt.prototype.unregister=St.unregister,Mt.prototype.prefer=function(a,ae){return arguments.length===1&&(ae=a,a=null),typeof ae=="object"||ae.$$is_class?this.$prefer(a,ae):Opal.send(this,"prefer",a&&[a],bt(ae))},Mt.prototype.block=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"block",ae,a)},Mt.prototype.inlineMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"inline_macro",ae,a)},Mt.prototype.includeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"include_processor",ae,a)},Mt.prototype.blockMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"block_macro",ae,a)},Mt.prototype.treeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"tree_processor",ae,a)},Mt.prototype.postprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"postprocessor",ae,a)},Mt.prototype.preprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"preprocessor",ae,a)},Mt.prototype.docinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),At(this,"docinfo_processor",ae,a)},Mt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},Mt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},Mt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},Mt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},Mt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},Mt.prototype.hasBlocks=function(){return this["$blocks?"]()},Mt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},Mt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},Mt.prototype.getPreprocessors=function(){return this.$preprocessors()},Mt.prototype.getTreeProcessors=function(){return this.$tree_processors()},Mt.prototype.getIncludeProcessors=function(){return this.$include_processors()},Mt.prototype.getPostprocessors=function(){return this.$postprocessors()},Mt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},Mt.prototype.getBlocks=function(){return this.block_extensions.$values()},Mt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},Mt.prototype.getInlineMacros=function(){return this.$inline_macros()},Mt.prototype.getInlineMacroFor=function(a){const ae=this["$registered_for_inline_macro?"](a);return ae===!1?void 0:ae},Mt.prototype.getBlockFor=function(a,ae){if(typeof ae>"u"){const V=this.$find_block_extension(a);return V===Opal.nil?void 0:V}const re=this["$registered_for_block?"](a,ae);return re===!1?void 0:re},Mt.prototype.getBlockMacroFor=function(a){const ae=this["$registered_for_block_macro?"](a);return ae===!1?void 0:ae};const Ct=St.Processor;Ct.prototype.prepend=function(){this.$option("position",">>")},Ct.prototype.process=function(a){const ae={apply:function(V,_e,y){for(let W=0;W<y.length;W++)typeof y[W]=="object"&&"$$smap"in y[W]&&(y[W]=r(y[W]));return V.apply(_e,y)}},re=new Proxy(a,ae);return Opal.send(this,"process",null,bt(re))},Ct.prototype.named=function(a){return this.$named(a)},Ct.prototype.createBlock=function(a,ae,re,V,_e){return this.$create_block(a,ae,re,t(V),t(_e))},Ct.prototype.createList=function(a,ae,re){return this.$create_list(a,ae,t(re))},Ct.prototype.createListItem=function(a,ae){return this.$create_list_item(a,ae)},Ct.prototype.createImageBlock=function(a,ae,re){return this.$create_image_block(a,t(ae),t(re))},Ct.prototype.createParagraph=function(a,ae,re,V){return this.$create_paragraph(a,ae,t(re),t(V))},Ct.prototype.createOpenBlock=function(a,ae,re,V){return this.$create_open_block(a,ae,t(re),t(V))},Ct.prototype.createExampleBlock=function(a,ae,re,V){return this.$create_example_block(a,ae,t(re),t(V))},Ct.prototype.createPassBlock=function(a,ae,re,V){return this.$create_pass_block(a,ae,t(re),t(V))},Ct.prototype.createListingBlock=function(a,ae,re,V){return this.$create_listing_block(a,ae,t(re),t(V))},Ct.prototype.createLiteralBlock=function(a,ae,re,V){return this.$create_literal_block(a,ae,t(re),t(V))},Ct.prototype.createAnchor=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$create_anchor(a,ae,t(re))},Ct.prototype.createInlinePass=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),this.$create_inline_pass(a,ae,t(re))},Ct.prototype.createInline=function(a,ae,re,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$create_inline(a,ae,re,t(V))},Ct.prototype.parseContent=function(a,ae,re){return this.$parse_content(a,ae,t(re))},Ct.prototype.parseAttributes=function(a,ae,re){return re&&re.attributes&&(re.attributes=t(re.attributes)),r(this.$parse_attributes(a,ae,t(re)))},Ct.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},Ct.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)},Ct.prototype.resolvesAttributes=Ct.prototype.resolveAttributes,Ct.prototype.getConfig=function(){return r(this.config)},Ct.prototype.option=function(a,ae){this.$option(a,ae)};const nt=St.BlockProcessor;nt.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},nt.prototype.onContext=function(a){return this.$on_context(a)},nt.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},nt.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},nt.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Ne=St.BlockMacroProcessor;Ne.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Ne.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Ne.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const je=St.InlineMacroProcessor;je.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},je.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},je.prototype.parseContentAs=function(a){this.$parse_content_as(a)},je.prototype.matchFormat=function(a){this.$match_format(a)},je.prototype.match=function(a){this.$match(a)};const Ke=St.IncludeProcessor;Ke.prototype.handles=function(a){return Opal.send(this,"handles?",null,bt(a))},Ke.prototype.prefer=function(){this.$prefer()};const x=St.TreeProcessor;x.prototype.prefer=function(){this.$prefer()};const N=St.Postprocessor;N.prototype.prefer=function(){this.$prefer()};const ve=St.Preprocessor;ve.prototype.prefer=function(){this.$prefer()};const Le=St.DocinfoProcessor;Le.prototype.prefer=function(){this.$prefer()},Le.prototype.atLocation=function(a){this.$at_location(a)};function Ze(a,ae,re){const V=Opal.const_get_qualified(St,a);return c(V,ae,re,{"handles?":function(){return!0}})}St.createPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Postprocessor",a,ae)},St.newPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPostprocessor(a,ae).$new()},St.createPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Preprocessor",a,ae)},St.newPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPreprocessor(a,ae).$new()},St.createTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("TreeProcessor",a,ae)},St.newTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createTreeProcessor(a,ae).$new()},St.createIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("IncludeProcessor",a,ae)},St.newIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createIncludeProcessor(a,ae).$new()},St.createDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("DocinfoProcessor",a,ae)},St.newDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createDocinfoProcessor(a,ae).$new()},St.createBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockProcessor",a,ae)},St.newBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockProcessor(a,ae).$new()},St.createInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("InlineMacroProcessor",a,ae)},St.newInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createInlineMacroProcessor(a,ae).$new()},St.createBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockMacroProcessor",a,ae)},St.newBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockMacroProcessor(a,ae).$new()};var $t="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return $t},Opal.Asciidoctor}const A6=S6();function hv(e){return K1(A6.convert(String(e??""),{standalone:!1}))}function E6({node:e}){return tc(e),Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx(hg,{html:hv(_s(e.value))})]})}function C6({chunk:e}){return Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:hv(e.value)}})}function pv(e,t,r='"'){const n=[];let i=[],s="",c=!1,f=0;const p=()=>{i.push(s),s=""},h=()=>{p(),n.push(i),i=[]};for(;f<e.length;){const z=e[f];if(c){z===r?e[f+1]===r?(s+=r,f+=2):(c=!1,f++):(s+=z,f++);continue}z===r?(c=!0,f++):z===t?(p(),f++):z===`
|
|
606
|
-
`||z==="\r"?(z==="\r"&&e[f+1]===`
|
|
607
|
-
`&&f++,h(),f++):(s+=z,f++)}return(s!==""||i.length)&&h(),n}function T6(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function _v(e,t){if(t==="text/tab-separated-values")return" ";const r=e.split(/\r?\n/,1)[0]??"";let n=",",i=0;for(const s of[",",";"," ","|"]){const c=r.split(s).length-1;c>i&&(i=c,n=s)}return n}const z6=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],Vf=()=>new URLSearchParams(window.location.search);function mv(e){const t=e.get("header");return!(t==="false"||t==="0")}function Op(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function gv({rows:e,header:t}){if(!e.length)return Ce.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,c)=>Math.max(s,c.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return Ce.jsx("div",{className:"csv-scroll",children:Ce.jsxs("table",{className:"csv-table",children:[n&&Ce.jsx("thead",{children:Ce.jsx("tr",{children:Op(n,r).map((s,c)=>Ce.jsx("th",{children:s},c))})}),Ce.jsx("tbody",{children:i.map((s,c)=>Ce.jsx("tr",{children:Op(s,r).map((f,p)=>Ce.jsx("td",{children:f},p))},c))})]})})}function R6({node:e}){const t=Vf(),r=mv(t),n=String(_s(e.value)??""),i=T6(t.get("sep"))??_v(n,e.format??null),s=pv(n,i);return Ce.jsxs("div",{className:"csv",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx(gv,{rows:s,header:r})]})}function N6({rerender:e}){const t=Vf(),r=t.get("sep")??"",n=mv(t),i=(s,c)=>{const f=Vf();c?f.set(s,c):f.delete(s);const p=f.toString();window.history.replaceState({},"",window.location.pathname+(p?"?"+p:"")),e()};return Ce.jsxs("div",{className:"csv-toolbar",children:[Ce.jsxs("label",{children:["separator"," ",Ce.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:z6.map(s=>Ce.jsx("option",{value:s.value,children:s.label},s.value))})]}),Ce.jsxs("label",{children:[Ce.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function I6({chunk:e}){const t=String(e.value??""),r=pv(t,_v(t,e.format??null));return Ce.jsx("div",{className:"csv",children:Ce.jsx(gv,{rows:r,header:!0})})}const vv=()=>new URLSearchParams(window.location.search),yv=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],Nd="utf-8",q6=e=>yv.some(t=>t.value===e);function bv(){const e=vv().get("enc")??"";return q6(e)?e:Nd}function xv(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function wv(e){const[t,r]=mt.useState(null),[n,i]=mt.useState(null);return mt.useEffect(()=>{let s=!1;if(r(null),i(null),e!=null)return fetch(ps(e)).then(c=>c.arrayBuffer()).then(c=>!s&&r(new Uint8Array(c))).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{bytes:t,error:n}}function M6({node:e}){const t=B1(e.concrete),r=t?null:_s(e.value),n=typeof r=="string"?r:t?null:"",{bytes:i,error:s}=wv(t?e.path:null),c=bv(),f=mt.useMemo(()=>n??(i?xv(i,c):null),[n,i,c]);return s?Ce.jsxs("div",{className:"error",children:["text: ",s]}):f==null?Ce.jsx("div",{className:"loading",children:"reading…"}):Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx("pre",{className:"plaintext",children:f})]})}function D6({chunk:e}){const{bytes:t,error:r}=wv(e.path),n=mt.useMemo(()=>t?xv(t,Nd):null,[t]);return r?Ce.jsxs("div",{className:"error",children:["text: ",r]}):n==null?Ce.jsx("div",{className:"loading",children:"reading…"}):Ce.jsx("pre",{className:"plaintext",children:n})}function L6({rerender:e}){const t=bv(),r=n=>{const i=vv();n&&n!==Nd?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return Ce.jsxs("label",{className:"enc-control",children:["encoding"," ",Ce.jsx("select",{value:t,onChange:n=>r(n.target.value),children:yv.map(n=>Ce.jsx("option",{value:n.value,children:n.label},n.value))})]})}const F6={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:"Ÿ"},B6=e=>e<128?String.fromCharCode(e):F6[e]??String.fromCharCode(e),j6=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 P6(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function U6(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,c=1/0;const f=e.length;let p=0;const h=()=>s<c,z=be=>{if(!be||!h())return;const ee=r[r.length-1];ee&&ee.b===n.b&&ee.i===n.i&&ee.u===n.u?ee.text+=be:r.push({text:be,b:n.b,i:n.i,u:n.u})},D=()=>{h()&&(t.push(r),r=[])},j=(be,ee)=>{switch(be){case"b":n.b=ee!==0;break;case"i":n.i=ee!==0;break;case"ul":n.u=ee!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=ee??1;break;case"par":case"row":D();break;case"line":case"sect":z(`
|
|
608
|
-
`);break;case"tab":case"cell":z(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:j6.has(be)&&(c=Math.min(c,s));break}};for(;p<f;){const be=e[p];if(be==="{")i.push({...n}),s++,p++;else if(be==="}")s--,s<c&&(c=1/0),n=i.pop()??n,p++;else if(be==="\\"){const ee=e[p+1];if(ee==="\\"||ee==="{"||ee==="}")z(ee),p+=2;else if(ee==="*")c=Math.min(c,s),p+=2;else if(ee==="'"){const Y=parseInt(e.substr(p+2,2),16);isNaN(Y)||z(B6(Y)),p+=4}else if(ee==="~")z(" "),p+=2;else if(ee==="-")p+=2;else if(/[a-zA-Z]/.test(ee??"")){let Y=p+1;for(;Y<f&&/[a-zA-Z]/.test(e[Y]);)Y++;const X=e.slice(p+1,Y);let ge="";for(e[Y]==="-"&&(ge+="-",Y++);Y<f&&/[0-9]/.test(e[Y]);)ge+=e[Y++];const se=ge===""?null:parseInt(ge,10);if(e[Y]===" "&&Y++,p=Y,X==="u"&&se!==null){h()&&z(String.fromCodePoint(se<0?se+65536:se));for(let me=n.uc;me>0&&p<f;me--)if(e[p]==="\\"&&e[p+1]==="'")p+=4;else if(e[p]==="\\")p+=2;else{if(e[p]==="{"||e[p]==="}")break;p++}}else j(X,se)}else p++}else be==="\r"||be===`
|
|
609
|
-
`||z(be),p++}D();const he=be=>{let ee=P6(be.text).replace(/\t/g," ").replace(/\n/g,"<br>");return be.u&&(ee=`<u>${ee}</u>`),be.i&&(ee=`<em>${ee}</em>`),be.b&&(ee=`<strong>${ee}</strong>`),ee};return t.filter(be=>be.some(ee=>ee.text.trim()||ee.text.includes(`
|
|
610
|
-
`))).map(be=>`<p>${be.map(he).join("")}</p>`).join(`
|
|
611
|
-
`)}function kv(e){const[t,r]=mt.useState(null),[n,i]=mt.useState(null);return mt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(ps(e)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new TextDecoder("windows-1252").decode(new Uint8Array(c));r(U6(f))}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{html:t,error:n}}function H6({node:e}){const{html:t,error:r}=kv(e.path);return r?Ce.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Ce.jsx("div",{className:"loading",children:"reading RTF…"}):Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function V6({chunk:e}){const{html:t,error:r}=kv(e.path);return r?Ce.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?Ce.jsx("div",{className:"loading",children:"reading RTF…"}):Ce.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function Sv({path:e}){return Ce.jsxs("div",{className:"office-fallback",children:[Ce.jsxs("p",{children:["Legacy ",Ce.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",Ce.jsx("code",{children:".docx"})," files render in full."]}),Ce.jsxs("p",{children:[Ce.jsx("a",{className:"descend",href:ps(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function Y6({node:e}){return Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx(Sv,{path:e.path})]})}function W6({chunk:e}){return Ce.jsx(Sv,{path:e.path})}var Vr=Uint8Array,En=Uint16Array,Id=Int32Array,gc=new Vr([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 Vr([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]),Yf=new Vr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Av=function(e,t){for(var r=new En(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Id(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}},Ev=Av(gc,2),Cv=Ev.b,Wf=Ev.r;Cv[28]=258,Wf[258]=28;var Tv=Av(vc,0),G6=Tv.b,e_=Tv.r,Gf=new En(32768);for(var $r=0;$r<32768;++$r){var Pi=($r&43690)>>1|($r&21845)<<1;Pi=(Pi&52428)>>2|(Pi&13107)<<2,Pi=(Pi&61680)>>4|(Pi&3855)<<4,Gf[$r]=((Pi&65280)>>8|(Pi&255)<<8)>>1}var di=function(e,t,r){for(var n=e.length,i=0,s=new En(t);i<n;++i)e[i]&&++s[e[i]-1];var c=new En(t);for(i=1;i<t;++i)c[i]=c[i-1]+s[i-1]<<1;var f;if(r){f=new En(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var h=i<<4|e[i],z=t-e[i],D=c[e[i]-1]++<<z,j=D|(1<<z)-1;D<=j;++D)f[Gf[D]>>p]=h}else for(f=new En(n),i=0;i<n;++i)e[i]&&(f[i]=Gf[c[e[i]-1]++]>>15-e[i]);return f},$s=new Vr(288);for(var $r=0;$r<144;++$r)$s[$r]=8;for(var $r=144;$r<256;++$r)$s[$r]=9;for(var $r=256;$r<280;++$r)$s[$r]=7;for(var $r=280;$r<288;++$r)$s[$r]=8;var Wl=new Vr(32);for(var $r=0;$r<32;++$r)Wl[$r]=5;var K6=di($s,9,0),X6=di($s,9,1),Q6=di(Wl,5,0),Z6=di(Wl,5,1),f$=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Kn=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},d$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},qd=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 Vr(e.subarray(t,r))},J6=["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||J6[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,Sn),!r)throw n;return n},O6=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Vr(0);var c=!r,f=c||t.i!=2,p=t.i;c&&(r=new Vr(i*3));var h=function(ut){var _t=r.length;if(ut>_t){var wt=new Vr(Math.max(_t*2,ut));wt.set(r),r=wt}},z=t.f||0,D=t.p||0,j=t.b||0,he=t.l,be=t.d,ee=t.m,Y=t.n,X=i*8;do{if(!he){z=Kn(e,D,1);var ge=Kn(e,D+1,3);if(D+=3,ge)if(ge==1)he=X6,be=Z6,ee=9,Y=5;else if(ge==2){var xe=Kn(e,D,31)+257,fe=Kn(e,D+10,15)+4,Ae=xe+Kn(e,D+5,31)+1;D+=14;for(var J=new Vr(Ae),Ee=new Vr(19),ce=0;ce<fe;++ce)Ee[Yf[ce]]=Kn(e,D+ce*3,7);D+=fe*3;for(var w=f$(Ee),Se=(1<<w)-1,I=di(Ee,w,1),ce=0;ce<Ae;){var ne=I[Kn(e,D,Se)];D+=ne&15;var se=ne>>4;if(se<16)J[ce++]=se;else{var B=0,Fe=0;for(se==16?(Fe=3+Kn(e,D,3),D+=2,B=J[ce-1]):se==17?(Fe=3+Kn(e,D,7),D+=3):se==18&&(Fe=11+Kn(e,D,127),D+=7);Fe--;)J[ce++]=B}}var ue=J.subarray(0,xe),U=J.subarray(xe);ee=f$(ue),Y=f$(U),he=di(ue,ee,1),be=di(U,Y,1)}else Sn(1);else{var se=qd(D)+4,me=e[se-4]|e[se-3]<<8,Z=se+me;if(Z>i){p&&Sn(0);break}f&&h(j+me),r.set(e.subarray(se,Z),j),t.b=j+=me,t.p=D=Z*8,t.f=z;continue}if(D>X){p&&Sn(0);break}}f&&h(j+131072);for(var v=(1<<ee)-1,$=(1<<Y)-1,l=D;;l=D){var B=he[d$(e,D)&v],u=B>>4;if(D+=B&15,D>X){p&&Sn(0);break}if(B||Sn(2),u<256)r[j++]=u;else if(u==256){l=D,he=null;break}else{var d=u-254;if(u>264){var ce=u-257,_=gc[ce];d=Kn(e,D,(1<<_)-1)+Cv[ce],D+=_}var S=be[d$(e,D)&$],T=S>>4;S||Sn(3),D+=S&15;var U=G6[T];if(T>3){var _=vc[T];U+=d$(e,D)&(1<<_)-1,D+=_}if(D>X){p&&Sn(0);break}f&&h(j+131072);var te=j+d;if(j<U){var Ie=s-U,Je=Math.min(U,te);for(Ie+j<0&&Sn(3);j<Je;++j)r[j]=n[Ie+j]}for(;j<te;++j)r[j]=r[j-U]}}t.l=he,t.p=l,t.b=j,t.f=z,he&&(z=1,t.m=ee,t.d=be,t.n=Y)}while(!z);return j!=r.length&&c?yc(r,0,j):r.subarray(0,j)},gi=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},el=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:Rv,l:0};if(i==1){var c=new Vr(r[0].s+1);return c[r[0].s]=1,{t:c,l:1}}r.sort(function(Z,xe){return Z.f-xe.f}),r.push({s:-1,f:25001});var f=r[0],p=r[1],h=0,z=1,D=2;for(r[0]={s:-1,f:f.f+p.f,l:f,r:p};z!=i-1;)f=r[r[h].f<r[D].f?h++:D++],p=r[h!=z&&r[h].f<r[D].f?h++:D++],r[z++]={s:-1,f:f.f+p.f,l:f,r:p};for(var j=s[0].s,n=1;n<i;++n)s[n].s>j&&(j=s[n].s);var he=new En(j+1),be=Kf(r[z-1],he,0);if(be>t){var n=0,ee=0,Y=be-t,X=1<<Y;for(s.sort(function(xe,fe){return he[fe.s]-he[xe.s]||xe.f-fe.f});n<i;++n){var ge=s[n].s;if(he[ge]>t)ee+=X-(1<<be-he[ge]),he[ge]=t;else break}for(ee>>=Y;ee>0;){var se=s[n].s;he[se]<t?ee-=1<<t-he[se]++-1:++n}for(;n>=0&ⅇ--n){var me=s[n].s;he[me]==t&&(--he[me],++ee)}be=t}return{t:new Vr(he),l:be}},Kf=function(e,t,r){return e.s==-1?Math.max(Kf(e.l,t,r+1),Kf(e.r,t,r+1)):t[e.s]=r},t_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new En(++t),n=0,i=e[0],s=1,c=function(p){r[n++]=p},f=1;f<=t;++f)if(e[f]==i&&f!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(i),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(i);s=1,i=e[f]}return{c:r.subarray(0,n),n:t}},tl=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},zv=function(e,t,r){var n=r.length,i=qd(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},r_=function(e,t,r,n,i,s,c,f,p,h,z){gi(t,z++,r),++i[256];for(var D=h$(i,15),j=D.t,he=D.l,be=h$(s,15),ee=be.t,Y=be.l,X=t_(j),ge=X.c,se=X.n,me=t_(ee),Z=me.c,xe=me.n,fe=new En(19),Ae=0;Ae<ge.length;++Ae)++fe[ge[Ae]&31];for(var Ae=0;Ae<Z.length;++Ae)++fe[Z[Ae]&31];for(var J=h$(fe,7),Ee=J.t,ce=J.l,w=19;w>4&&!Ee[Yf[w-1]];--w);var Se=h+5<<3,I=tl(i,$s)+tl(s,Wl)+c,ne=tl(i,j)+tl(s,ee)+c+14+3*w+tl(fe,Ee)+2*fe[16]+3*fe[17]+7*fe[18];if(p>=0&&Se<=I&&Se<=ne)return zv(t,z,e.subarray(p,p+h));var B,Fe,ue,U;if(gi(t,z,1+(ne<I)),z+=2,ne<I){B=di(j,he,0),Fe=j,ue=di(ee,Y,0),U=ee;var v=di(Ee,ce,0);gi(t,z,se-257),gi(t,z+5,xe-1),gi(t,z+10,w-4),z+=14;for(var Ae=0;Ae<w;++Ae)gi(t,z+3*Ae,Ee[Yf[Ae]]);z+=3*w;for(var $=[ge,Z],l=0;l<2;++l)for(var u=$[l],Ae=0;Ae<u.length;++Ae){var d=u[Ae]&31;gi(t,z,v[d]),z+=Ee[d],d>15&&(gi(t,z,u[Ae]>>5&127),z+=u[Ae]>>12)}}else B=K6,Fe=$s,ue=Q6,U=Wl;for(var Ae=0;Ae<f;++Ae){var _=n[Ae];if(_>255){var d=_>>18&31;el(t,z,B[d+257]),z+=Fe[d+257],d>7&&(gi(t,z,_>>23&31),z+=gc[d]);var S=_&31;el(t,z,ue[S]),z+=U[S],S>3&&(el(t,z,_>>5&8191),z+=vc[S])}else el(t,z,B[_]),z+=Fe[_]}return el(t,z,B[256]),z+Fe[256]},e7=new Id([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rv=new Vr(0),t7=function(e,t,r,n,i,s){var c=s.z||e.length,f=new Vr(n+c+5*(1+Math.ceil(c/7e3))+i),p=f.subarray(n,f.length-i),h=s.l,z=(s.r||0)&7;if(t){z&&(p[0]=s.r>>3);for(var D=e7[t-1],j=D>>13,he=D&8191,be=(1<<r)-1,ee=s.p||new En(32768),Y=s.h||new En(be+1),X=Math.ceil(r/3),ge=2*X,se=function(bt){return(e[bt]^e[bt+1]<<X^e[bt+2]<<ge)&be},me=new Id(25e3),Z=new En(288),xe=new En(32),fe=0,Ae=0,J=s.i||0,Ee=0,ce=s.w||0,w=0;J+2<c;++J){var Se=se(J),I=J&32767,ne=Y[Se];if(ee[I]=ne,Y[Se]=I,ce<=J){var B=c-J;if((fe>7e3||Ee>24576)&&(B>423||!h)){z=r_(e,p,0,me,Z,xe,Ae,Ee,w,J-w,z),Ee=fe=Ae=0,w=J;for(var Fe=0;Fe<286;++Fe)Z[Fe]=0;for(var Fe=0;Fe<30;++Fe)xe[Fe]=0}var ue=2,U=0,v=he,$=I-ne&32767;if(B>2&&Se==se(J-$))for(var l=Math.min(j,B)-1,u=Math.min(32767,J),d=Math.min(258,B);$<=u&&--v&&I!=ne;){if(e[J+ue]==e[J+ue-$]){for(var _=0;_<d&&e[J+_]==e[J+_-$];++_);if(_>ue){if(ue=_,U=$,_>l)break;for(var S=Math.min($,_-2),T=0,Fe=0;Fe<S;++Fe){var te=J-$+Fe&32767,Ie=ee[te],Je=te-Ie&32767;Je>T&&(T=Je,ne=te)}}}I=ne,ne=ee[I],$+=I-ne&32767}if(U){me[Ee++]=268435456|Wf[ue]<<18|e_[U];var ut=Wf[ue]&31,_t=e_[U]&31;Ae+=gc[ut]+vc[_t],++Z[257+ut],++xe[_t],ce=J+ue,++fe}else me[Ee++]=e[J],++Z[e[J]]}}for(J=Math.max(J,ce);J<c;++J)me[Ee++]=e[J],++Z[e[J]];z=r_(e,p,h,me,Z,xe,Ae,Ee,w,J-w,z),h||(s.r=z&7|p[z/8|0]<<3,z-=7,s.h=Y,s.p=ee,s.i=J,s.w=ce)}else{for(var J=s.w||0;J<c+h;J+=65535){var wt=J+65535;wt>=c&&(p[z/8|0]=h,wt=c),z=zv(p,z+1,e.subarray(J,wt))}s.i=c}return yc(f,0,n+qd(z)+i)},r7=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),c=new Vr(s.length+e.length);c.set(s),c.set(e,s.length),e=c,i.w=s.length}return t7(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},oi=function(e,t){return e[t]|e[t+1]<<8},Ln=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},p$=function(e,t){return Ln(e,t)+Ln(e,t+4)*4294967296};function n7(e,t){return r7(e,t||{},0,0)}function i7(e,t){return O6(e,{i:2},t&&t.out,t&&t.dictionary)}var Xf=typeof TextDecoder<"u"&&new TextDecoder,s7=0;try{Xf.decode(Rv,{stream:!0}),s7=1}catch{}var a7=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 Qf(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(Xf)return Xf.decode(e);var i=a7(e),s=i.s,r=i.r;return r.length&&Sn(8),s}}var l7=function(e,t){return t+30+oi(e,t+26)+oi(e,t+28)},o7=function(e,t,r){var n=oi(e,t+28),i=oi(e,t+30),s=Qf(e.subarray(t+46,t+46+n),!(oi(e,t+8)&2048)),c=t+46+n,f=u7(e,c,i,r,Ln(e,t+20),Ln(e,t+24),Ln(e,t+42)),p=f[0],h=f[1],z=f[2];return[oi(e,t+10),p,h,s,c+i+oi(e,t+32),z]},u7=function(e,t,r,n,i,s,c){var f=i==4294967295,p=s==4294967295,h=c==4294967295,z=t+r,D=f+p+h;if(n&&D){for(;t+4<z;t+=4+oi(e,t+2))if(oi(e,t)==1)return[f?p$(e,t+4+8*p):i,p?p$(e,t+4):s,h?p$(e,t+4+8*(p+f)):c,1];n<2&&Sn(13)}return[i,s,c,0]};function c7(e,t){for(var r={},n=e.length-22;Ln(e,n)!=101010256;--n)(!n||e.length-n>65558)&&Sn(13);var i=oi(e,n+8);if(!i)return{};var s=Ln(e,n+16),c=Ln(e,n-20)==117853008;if(c){var f=Ln(e,n-12);c=Ln(e,f)==101075792,c&&(i=Ln(e,f+32),s=Ln(e,f+48))}for(var p=0;p<i;++p){var h=o7(e,s,c),z=h[0],D=h[1],j=h[2],he=h[3],be=h[4],ee=h[5],Y=l7(e,ee);s=be,z?z==8?r[he]=i7(e.subarray(Y,Y+D),{out:new Vr(j)}):Sn(14,"unknown compression type "+z):r[he]=yc(e,Y,Y+D)}return r}const $7={},f7=$7?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function No(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 _$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,c=r&63;return No(n&63)+No(i&63)+No(s&63)+No(c&63)}function d7(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=_$(e[r],e[r+1],0):r+1===e.length?t+=_$(e[r],0,0):t+=_$(e[r],e[r+1],e[r+2]);return t}function h7(e){const t=n7(new TextEncoder().encode(e),{level:9});return`${f7}/svg/${d7(t)}`}function Nv({source:e}){return Ce.jsx("div",{className:"filemedia",children:Ce.jsx("img",{className:"fileimage plantuml",src:h7(e),alt:"PlantUML diagram"})})}function p7({node:e}){return Ce.jsxs("div",{className:"text",children:[e.title&&Ce.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&Ce.jsx("p",{className:"chapter-subtitle",children:e.description}),Ce.jsx(Nv,{source:String(_s(e.value)??"")})]})}function _7({chunk:e}){return Ce.jsx(Nv,{source:String(e.value??"")})}const m7={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"}},g7={"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 v7(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 Cu(e,t,r){if(t){const i=g7[t]??v7(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=m7[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const m$=new Map;function wl({tag:e,body:t,children:r}){const n=mt.useRef(null),[i,s]=mt.useState(null),[c,f]=mt.useState(t??m$.get(e.path)??null);mt.useEffect(()=>{if(!i||t!=null||m$.has(e.path))return;let j=!0;return gn(e.path,1).then(he=>J1(he.value)).catch(()=>null).then(he=>{m$.set(e.path,he??null),j&&f(he??null)}),()=>{j=!1}},[i,e.path,t]);const p=()=>{const j=n.current?.getBoundingClientRect();j&&s({left:j.left,top:j.bottom+4})},h=()=>s(null),z=cn({name:e.name,color:e.color}),D=t??c;return Ce.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:p,onMouseLeave:h,children:[r,i&&I1.createPortal(Ce.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,background:z},children:[Ce.jsx("span",{className:"tagtip-path",children:P4(e.path)}),D&&Ce.jsx("span",{className:"tagtip-value",children:D})]}),document.body)]})}const Md=[{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"}],Iv=Md[0],y7=Iv.color,Dd="yo-annotate-recent-tags";function b7(e){return e.tag?cn(e.tag):y7}function ua(e){return JSON.stringify([e.selector??null,e.tag?.path?Hr(e.tag.path):null])}function Zf(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function x7(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let n_=null;async function w7(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await gn(e,2),r=[];for(const[n,i]of xn(t.value)){const s=sd(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return Md}function k7(){const[e,t]=mt.useState(Md);return mt.useEffect(()=>{n_??=w7();let r=!1;return n_.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const S7=": ...: !!<format: x-yamlover-tag>";function A7(e){const t=new Map;for(const r of e){if(id(r))continue;const n=Hr(r);t.has(n)||t.set(n,r)}return[...t.values()].map(r=>({path:r,name:Fd(r),color:null}))}function E7(){const[e,t]=mt.useState([]),r=Da(js);return mt.useEffect(()=>{let n=!1;return E4(S7).then(i=>{n||t(A7(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}function qv(){const[e,t]=mt.useState(Iv);return mt.useEffect(()=>{let n=!0;return D1().then(i=>{const s=i.settings.annotationTag;n&&s&&t({path:s,name:Fd(s),color:null})}).catch(()=>{}),()=>{n=!1}},[]),[e,n=>{C7(n),t(n),T4(n.path).catch(()=>{})}]}function Ld(){try{const e=JSON.parse(localStorage.getItem(Dd)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function C7(e){if(Hr(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...Ld().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(Dd,JSON.stringify(t))}function T7(){const e=r=>gn(r.path,0).then(n=>n.format===La).catch(()=>!1),t=Ld();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(Dd,JSON.stringify(n)),n})}async function z7(e,t,r,n){if(!t)return Ms({target:e,tag:r.path});const{fragmentPath:i}=await z4(e,t,n);return Ms({target:i,tag:r.path})}function i_(e,t){return t.fragmentSlug?(e===":"?"":e)+":yamlover-fragments:"+t.fragmentSlug:e}function Mv(e,t=0){const[r,n]=mt.useState([]),i=Da(js);return mt.useEffect(()=>{let s=!1;return Aa(e).then(c=>!s&&n(c)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function R7(e){const[t,r]=mt.useState(0),n=Mv(e,t),[i,s]=mt.useState([]),[c,f]=mt.useState(new Set);mt.useEffect(()=>{const X=new Set(n.map(ua));s(ge=>ge.filter(se=>!X.has(ua(se)))),f(ge=>new Set([...ge].filter(se=>X.has(se))))},[n]);const p=()=>r(X=>X+1),h=(X,ge,se)=>{s(me=>me.filter(Z=>Z!==X)),se||window.alert("save failed: "+ge.message)},z=(X,ge,se)=>{const me={path:"(pending)",selector:X??void 0,tag:ge};s(Z=>[...Z,me]),z7(e,X,ge,se?.imageBase64).then(p).catch(Z=>h(me,Z,se?.silent))},D=X=>{if(!X?.tag||X.path==="(pending)")return;const ge=ua(X);f(se=>new Set(se).add(ge)),Q0(i_(e,X),X.tag.path).then(p).catch(se=>{f(me=>{const Z=new Set(me);return Z.delete(ge),Z}),window.alert("delete failed: "+se.message)})},j=mt.useRef([]),he=X=>{const ge=n.find(se=>se.fragmentSlug&&se.path!=="(pending)"&&Zf(se.selector,X));return ge?i_(e,ge):null},be=(X,ge,se)=>{const me=he(X);if(me){const Z={path:"(pending)",selector:X,tag:ge};s(xe=>[...xe,Z]),Ms({target:me,tag:ge.path}).then(p).catch(xe=>h(Z,xe,se?.silent));return}if(i.some(Z=>Zf(Z.selector,X))){const Z={path:"(pending)",selector:X,tag:ge};s(xe=>[...xe,Z]),j.current.push({selector:X,tag:ge,entry:Z});return}z(X,ge,se)};mt.useEffect(()=>{if(!j.current.length)return;const X=[];for(const ge of j.current){const se=he(ge.selector);se?Ms({target:se,tag:ge.tag.path}).then(p).catch(me=>h(ge.entry,me)):X.push(ge)}j.current=X},[n]);const ee=new Set,Y=[];for(const X of[...i,...n]){const ge=ua(X);c.has(ge)||ee.has(ge)||(ee.add(ge),Y.push(X))}return{annotations:Y,create:z,remove:D,annotateRegion:be}}function Fd(e){const t=Gr(e);return t.length?String(t[t.length-1]):e}function N7(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}const Go=e=>({"--tag":e});function Bd({x:e,y:t,applied:r,mode:n,onPick:i,onUnpick:s,onCopy:c,onClose:f,menuRef:p}){const h=k7(),z=E7(),[D,j]=mt.useState(Ld),[he,be]=mt.useState(""),[ee,Y]=mt.useState(-1),[X,ge]=mt.useState(!1),se=n==="edit"?"re-tag":"tag";mt.useEffect(()=>{let I=!0;return T7().then(ne=>{I&&j(ne)}),()=>{I=!1}},[]);const me=(I,ne)=>Hr(I)===Hr(ne),Z=I=>h.some(ne=>me(ne.path,I.path)),xe=new Set(r.map(I=>Hr(I.path))),fe=I=>xe.has(Hr(I)),Ae=[],J=new Set;for(const I of[...r.filter(ne=>!Z(ne)),...D]){const ne=Hr(I.path);J.has(ne)||(J.add(ne),Ae.push(I))}const Ee=I=>(fe(I.path)?s??i:i)(I),ce=he.trim().toLowerCase(),w=[];if(ce){const I=z.filter(B=>!Z(B)&&!Ae.some(Fe=>me(Fe.path,B.path))&&(B.name.toLowerCase().includes(ce)||Hr(B.path).toLowerCase().includes(ce))).map(B=>({t:B,rank:N7(B,ce)})).sort((B,Fe)=>B.rank-Fe.rank||B.t.name.localeCompare(Fe.t.name)),ne=new Set;for(const{t:B}of I){const Fe=B.name.toLowerCase();if(!ne.has(Fe)&&(ne.add(Fe),w.push(B),w.length>=8))break}}mt.useEffect(()=>{Y(w.length?0:-1)},[he]);const Se=I=>{const ne=(I??he).trim();!ne||X||(ge(!0),gn(ne.startsWith(":")?ne:ne.startsWith("/")?":"+ne.slice(1).split("/").join(":"):":"+ne,1).then(B=>{if(B.format!==La)throw new Error("not a tag node");i({path:B.path,name:B.title||Fd(B.path),color:sd(B.value)})}).catch(B=>{if(ne.includes(":")||ne.includes("/"))throw new Error(`cannot ${se} with "${ne}": `+B.message);return N4(ne).then(i).catch(Fe=>{throw new Error(`cannot create tag "${ne}": `+Fe.message)})}).catch(B=>window.alert(B.message)).finally(()=>ge(!1)))};return Ce.jsxs("div",{ref:p,className:"annotate-menu",style:{left:e,top:t},role:"menu",children:[Ce.jsx("div",{className:"annotate-palette",children:h.map(I=>Ce.jsx(wl,{tag:I,children:Ce.jsx("button",{type:"button",className:"annotate-swatch"+(fe(I.path)?" on":""),style:Go(cn(I)),onClick:()=>Ee(I)})},I.path))}),c&&Ce.jsx("button",{type:"button",className:"annotate-tool",title:"copy text to clipboard (don't annotate)",onClick:c,children:"⧉"}),Ce.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:f,children:"✕"}),Ae.length>0&&Ce.jsx("div",{className:"annotate-recents",children:Ae.map(I=>Ce.jsx("span",{className:"tagframe",children:Ce.jsx(wl,{tag:I,children:Ce.jsx("button",{type:"button",className:"tagtag"+(fe(I.path)?" on":""),style:Go(cn(I)),onClick:()=>Ee(I),children:Ce.jsx("span",{className:"tt-label",children:I.name})})})},I.path))}),Ce.jsxs("div",{className:"annotate-typeahead",children:[Ce.jsx("input",{className:"annotate-taginput",type:"text",placeholder:X?"creating tag…":`${se}: tag path or new name… ⏎`,value:he,disabled:X,autoComplete:"off",onChange:I=>be(I.target.value),onKeyDown:I=>{if(w.length&&I.key==="ArrowDown"){I.preventDefault(),I.stopPropagation(),Y(ne=>(ne+1)%w.length);return}if(w.length&&I.key==="ArrowUp"){I.preventDefault(),I.stopPropagation(),Y(ne=>(ne-1+w.length)%w.length);return}if(I.key==="Escape"&&he){I.preventDefault(),I.stopPropagation(),be("");return}I.key==="Enter"&&(I.preventDefault(),I.stopPropagation(),ee>=0&&w[ee]?Se(w[ee].path):Se())}}),!X&&w.length>0&&Ce.jsx("div",{className:"annotate-suggest",role:"listbox",children:w.map((I,ne)=>Ce.jsx("span",{className:"tagframe",children:Ce.jsx(wl,{tag:I,children:Ce.jsx("button",{type:"button",role:"option","aria-selected":ne===ee,className:"tagtag"+(ne===ee?" hi":""),style:Go(cn(I)),onMouseDown:B=>{B.preventDefault(),Se(I.path)},onMouseEnter:()=>Y(ne),children:Ce.jsx("span",{className:"tt-label",children:I.name})})})},I.path))})]})]})}function I7(e){const[t,r]=qv(),[n,i]=mt.useState(null),s=mt.useRef(null),c=()=>i(null),f=(ee,Y,X,ge)=>{i({selector:ee,seedTag:t,copy:X,imageBase64:ge,x:Y.x,y:Y.y}),e.annotateRegion(ee,t,{imageBase64:ge,silent:!0})},p=(ee,Y)=>i({selector:ee.selector??{},seedTag:ee.tag??t,x:Y.x,y:Y.y}),h=n?e.annotations.filter(ee=>Zf(ee.selector,n.selector)):[],z=h.map(ee=>ee.tag).filter(ee=>!!ee),D=ee=>{n&&(r(ee),!z.some(Y=>Hr(Y.path)===Hr(ee.path))&&e.annotateRegion(n.selector,ee,{imageBase64:n.imageBase64}))},j=ee=>{if(!n)return;const Y=h.find(X=>X.tag&&Hr(X.tag.path)===Hr(ee.path));Y&&e.remove(Y)};mt.useEffect(()=>{if(!n)return;const ee=Y=>{s.current?.contains(Y.target)||c()};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[n]);const he=n?Ce.jsx(Bd,{menuRef:s,x:n.x,y:n.y,applied:z,mode:"create",onPick:D,onUnpick:j,onCopy:n.copy?()=>{n.copy(),c()}:void 0,onClose:c}):null,be=n&&z.length===0?{selector:n.selector,tag:n.seedTag,color:cn(n.seedTag)}:null;return{openCreate:f,openEdit:p,palette:he,preview:be,color:cn(t)}}function q7({path:e,children:t}){const r=mt.useRef(null),n=R7(e),{openCreate:i,openEdit:s,palette:c}=I7(n),{annotations:f}=n;mt.useEffect(()=>{const h=r.current;if(!h)return;const z=requestAnimationFrame(()=>D7(h,f));return()=>cancelAnimationFrame(z)}),mt.useEffect(()=>{const h=z=>{const D=r.current;if(!D||z.target?.closest?.(".annotate-menu")||z.target?.closest?.("mark.yo-annotation"))return;const j=window.getSelection();if(!j||j.isCollapsed||!j.anchorNode||!D.contains(j.anchorNode))return;const he=M7(j);if(!he)return;const be=j.getRangeAt(0).getBoundingClientRect(),ee=()=>navigator.clipboard?.writeText(he.exact).catch(()=>{});i({type:"text",exact:he.exact,prefix:he.prefix,suffix:he.suffix},{x:be.left,y:be.bottom+6},ee)};return document.addEventListener("mouseup",h),()=>document.removeEventListener("mouseup",h)},[]);const p=h=>{const z=h.target.closest("mark.yo-annotation");if(!z)return;const D=f.find(j=>ua(j)===z.dataset.annSel);!D||!x7(D)||(h.preventDefault(),s(D,{x:h.clientX,y:h.clientY}))};return Ce.jsxs("div",{className:"annotated",children:[f.length>0&&Ce.jsx("div",{className:"annotate-bar",children:Ce.jsxs("span",{className:"annotate-count",children:[f.length," annotation",f.length>1?"s":""]})}),Ce.jsx("div",{ref:r,onClick:p,children:t}),c]})}function M7(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 D7(e,t){e.querySelectorAll("mark.yo-annotation").forEach(r=>{const n=r.parentNode;if(n){for(;r.firstChild;)n.insertBefore(r.firstChild,r);n.removeChild(r),n.normalize()}});for(const r of t)r.selector?.type!=="text"||!r.selector.exact||L7(e,r.selector.exact,r)}function L7(e,t,r){const n=b7(r),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let s;for(;s=i.nextNode();){const c=(s.nodeValue??"").indexOf(t);if(c<0)continue;const f=document.createRange();f.setStart(s,c),f.setEnd(s,c+t.length);const p=document.createElement("mark");p.className="yo-annotation",p.style.backgroundColor=`color-mix(in srgb, ${n} 30%, transparent)`,p.style.borderBottomColor=n,p.dataset.annSel=ua(r),p.title=r.description||"click to re-tag or delete";try{f.surroundContents(p);return}catch{}}}function F7(){const[e,t]=qv(),[r,n]=mt.useState(null),[i,s]=mt.useState([]),c=mt.useRef(null),f=()=>{n(null),s([])},p=be=>Aa(be).then(s).catch(()=>s([])),h=(be,ee,Y)=>{n({target:be,x:ee,y:Y}),s([]),Aa(be).then(X=>{X.length===0?(s([{path:"(pending)",tag:e}]),Ms({target:be,tag:e.path}).then(()=>p(be)).catch(()=>s([]))):s(X)}).catch(()=>s([]))},z=be=>{if(!r)return;t(be);const ee={path:"(pending)",tag:be};s(Y=>[...Y,ee]),Ms({target:r.target,tag:be.path}).then(()=>p(r.target)).catch(Y=>{s(X=>X.filter(ge=>ge!==ee)),window.alert("tag failed: "+Y.message)})},D=be=>{if(!r)return;const ee=i.find(Y=>Y.tag&&Hr(Y.tag.path)===Hr(be.path));s(Y=>Y.filter(X=>X!==ee)),Q0(r.target,ee?.tag?.path??be.path).then(()=>p(r.target)).catch(Y=>{ee&&s(X=>[...X,ee]),window.alert("untag failed: "+Y.message)})};mt.useEffect(()=>{if(!r)return;const be=ee=>{c.current?.contains(ee.target)||f()};return document.addEventListener("mousedown",be),()=>document.removeEventListener("mousedown",be)},[r]);const j=i.map(be=>be.tag).filter(be=>!!be),he=r?Ce.jsx(Bd,{menuRef:c,x:r.x,y:r.y,applied:j,mode:"create",onPick:z,onUnpick:D,onClose:f}):null;return{openAt:h,tagMenu:he}}const B7="x-yamlover-board",j7=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function P7(e){return e.format===B7?!0:xn(e.value).some(([t])=>t==="workflow"||t==="columns")}const U7=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),g$=e=>U7.has(e.toLowerCase()),v$=(e,t)=>{const r=xn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},H7=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function V7(e){return Ds(xn(e.value).find(([t])=>t==="workflow")?.[1])}function Y7(e){const t=xn(e.value).find(([r])=>r==="columns")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(Ds).filter(n=>!!n):[]):null}function W7(e){const t=[];for(const[r,n]of xn(e.value)){if(r==="workflow"||r==="columns"||r==="yamlover"||r==="tags")continue;const i=un(n);!i||i.format&&j7.has(i.format)||t.push(i.path)}return t}function G7(e){const t=xn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=Ds(i)??Ds(xn(i).find(([c])=>c==="tag")?.[1]);s&&n.push(s)}return n}function K7({node:e,onNavigate:t,openContextMenu:r}){const n=Da(js),[i,s]=mt.useState([]),[c,f]=mt.useState([]),[p,h]=mt.useState(null),[z,D]=mt.useState(null),[j,he]=mt.useState(null),[be,ee]=mt.useState(null),Y=mt.useRef(null);mt.useEffect(()=>{let Ae=!1;return(async()=>{try{const J=V7(e),ce=xn(e.value).some(([ne])=>ne==="columns")?Y7(await gn(e.path,3)):null;let w=[];if(ce)w=await Promise.all(ce.map(async ne=>({tags:await Promise.all(ne.map(vf))})));else if(J){const ne=(await yb(J)).filter(ue=>!ue.initial),B=ne.filter(ue=>ue.next.length>0),Fe=ne.filter(ue=>ue.next.length===0);Fe.sort((ue,U)=>Number(g$(ue.label))-Number(g$(U.label))),w=[...B.map(ue=>({tags:[ue]})),...Fe.length?[{tags:Fe}]:[]]}const Se=W7(e),I=await Promise.all(Se.map(async ne=>{const B=await gn(ne,2);return{path:ne,title:B.title??H7(ne),priority:v$(B.value,"priority"),assignee:v$(B.value,"assignee"),due:v$(B.value,"due"),tags:G7(B.value)}}));if(Ae)return;s(w),f(I),h(null)}catch(J){Ae||h(String(J?.message||J))}})(),()=>{Ae=!0}},[e.path,n]);const X=()=>i.map(Ae=>Ae.tags.map(J=>J.path)),ge=Ae=>{R4(e.path,Ae).catch(J=>h(String(J?.message||J)))},se=(Ae,J)=>{const Ee=X();Ee[Ae]||(Ee[Ae]=[]),Ee[Ae].includes(J)||Ee[Ae].push(J),ge(Ee)},me=(Ae,J)=>{const Ee=X().map((ce,w)=>w===Ae?ce.filter(Se=>Se!==J):ce);ge(Ee)},Z=()=>ge([...X(),[]]),xe=Ae=>ge(X().filter((J,Ee)=>Ee!==Ae)),fe=async Ae=>{const J=z;if(D(null),he(null),!(!J||Ae===J.from))try{await eg(J.task,J.from,Ae),f(Ee=>Ee.map(ce=>ce.path===J.task?{...ce,tags:[...ce.tags.filter(w=>w!==J.from),Ae]}:ce))}catch(Ee){h(String(Ee?.message||Ee))}};return mt.useEffect(()=>{if(!be)return;const Ae=J=>{Y.current?.contains(J.target)||ee(null)};return document.addEventListener("mousedown",Ae),()=>document.removeEventListener("mousedown",Ae)},[be]),p?Ce.jsxs("div",{className:"board-error",children:["Board error: ",p]}):Ce.jsxs("div",{className:"board",children:[i.map((Ae,J)=>{const Ee=Ae.tags[0]?cn({name:Ae.tags[0].label,color:Ae.tags[0].color}):"#6c7086",ce=Ae.tags.reduce((w,Se)=>w+c.filter(I=>I.tags.includes(Se.path)).length,0);return Ce.jsxs("section",{className:"board-col",children:[Ce.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ee},children:[Ce.jsxs("div",{className:"board-col-tags",children:[Ae.tags.map(w=>Ce.jsx(wl,{tag:{path:w.path,name:w.label,color:w.color},children:Ce.jsx("button",{type:"button",className:"tagtag on",style:Go(cn({name:w.label,color:w.color})),onClick:()=>me(J,w.path),children:Ce.jsx("span",{className:"tt-label",children:w.label})})},w.path)),Ce.jsx("button",{className:"board-lane-add",title:"add a tag to this lane",onClick:w=>ee({lane:J,x:w.clientX,y:w.clientY}),children:"+"})]}),Ce.jsx("span",{className:"board-col-count",children:ce}),Ce.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>xe(J),children:"🗑"})]}),Ce.jsx("div",{className:"board-col-body",children:Ae.tags.map((w,Se)=>{const I=c.filter(Fe=>Fe.tags.includes(w.path)),ne=cn({name:w.label,color:w.color}),B=g$(w.label);return Ce.jsxs("div",{className:"board-group"+(Se>0?" board-group-split":"")+(j===w.path?" board-group-over":""),onDragOver:Fe=>{z&&(Fe.preventDefault(),j!==w.path&&he(w.path))},onDrop:Fe=>{Fe.preventDefault(),fe(w.path)},children:[Ae.tags.length>1&&Ce.jsxs("div",{className:"board-group-head",children:[Ce.jsx("span",{className:"board-group-dot",style:{background:ne}}),Ce.jsx("span",{className:"board-group-title",children:w.label}),Ce.jsx("span",{className:"board-col-count",children:I.length})]}),Ce.jsx("div",{className:"board-group-cards",children:I.map(Fe=>Ce.jsxs("article",{className:"board-card"+(B?" board-card-negative":""),draggable:!0,onDragStart:()=>D({task:Fe.path,from:w.path}),onDragEnd:()=>{D(null),he(null)},onClick:()=>t(Fe.path),onContextMenu:r?ue=>{ue.preventDefault(),r(Fe.path,ue.clientX,ue.clientY)}:void 0,title:Jl(Fe.path),style:{borderLeftColor:ne},children:[Ce.jsx("div",{className:"board-card-title",children:Fe.title}),Ce.jsxs("div",{className:"board-card-meta",children:[Fe.priority&&Ce.jsx("span",{className:"board-chip prio-"+Fe.priority,children:Fe.priority}),Fe.assignee&&Ce.jsxs("span",{className:"board-chip board-assignee",children:["@",Fe.assignee]}),Fe.due&&Ce.jsx("span",{className:"board-chip board-due",children:Fe.due.slice(0,10)})]})]},Fe.path))})]},w.path)})})]},J)}),Ce.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:Z,children:"+ lane"}),be&&Ce.jsx(Bd,{menuRef:Y,x:be.x,y:be.y,applied:[],mode:"create",onPick:Ae=>{se(be.lane,Ae.path),ee(null)},onClose:()=>ee(null)})]})}function X7(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):Yu(t.concrete)?"folder":t.type??t.kind??"":"scalar"}function Q7(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 Z7({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=hb(js),[s,c]=mt.useState({}),f=e.map(h=>h.link?.path).filter(h=>!!h),p=f.join("|");return mt.useEffect(()=>{let h=!1;return Promise.all(f.map(z=>Aa(z).then(D=>[z,D]).catch(()=>[z,[]]))).then(z=>{h||c(Object.fromEntries(z))}),()=>{h=!0}},[p]),mt.useEffect(()=>{if(n===0)return;const h=f.filter(D=>i.some(j=>j===D||j.startsWith(D+":")));if(h.length===0)return;let z=!1;return Promise.all(h.map(D=>Aa(D).then(j=>[D,j]).catch(()=>[D,[]]))).then(D=>{z||c(j=>({...j,...Object.fromEntries(D)}))}),()=>{z=!0}},[n]),Ce.jsx("div",{className:"detailsview",children:Ce.jsxs("table",{className:"details",children:[Ce.jsx("thead",{children:Ce.jsxs("tr",{children:[Ce.jsx("th",{className:"details-name",children:"Name"}),Ce.jsx("th",{className:"details-kind",children:"Kind"}),Ce.jsx("th",{className:"details-tags",children:"Tags"}),Ce.jsx("th",{className:"details-size",children:"Size"})]})}),Ce.jsxs("tbody",{children:[e.map((h,z)=>{const D=h.link;if(!D)return null;const j=Cu(D.type??D.kind,D.format??null,D.concrete),he=D.title??h.key,be=s[D.path]??[];return Ce.jsxs("tr",{className:"details-row",onClick:()=>t(D.path),onContextMenu:r?ee=>{ee.preventDefault(),r(D.path,ee.clientX,ee.clientY)}:void 0,title:Jl(D.path),children:[Ce.jsxs("td",{className:"details-name",children:[Ce.jsx("span",{className:"details-icon "+j.cls,title:j.title,children:j.glyph}),Ce.jsx("span",{className:"details-label",children:he})]}),Ce.jsx("td",{className:"details-kind",children:X7(h)}),Ce.jsx("td",{className:"details-tags",children:be.map((ee,Y)=>{if(!ee.tag)return null;const X=cn({name:ee.tag.name,color:ee.tag.color});return Ce.jsx(wl,{tag:ee.tag,children:id(ee.tag.path)?Ce.jsx(Q1,{color:X,title:""}):Ce.jsx("span",{className:"tagtag",style:{background:X},children:ee.tag.name})},Y)})}),Ce.jsx("td",{className:"details-size",children:Q7(h)})]},`${D.path}#${z}`)}),e.length===0&&Ce.jsx("tr",{children:Ce.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const J7="x-yamlover-annotation",O7="$yamloverMixed",s_={large:256,thumbnails:512};function e8(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:un(r),up:!0})).filter(t=>t.link!=null)}function t8(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:un(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[O7];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:un(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:un(i),raw:i}))}function r8(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 a_(e){if(e==null)return"~";const t=String(e).split(`
|
|
612
|
-
`,1)[0];return t.length>80?t.slice(0,79)+"…":t}function n8(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function i8(e,t,r,n){if(r==="ArrowRight")return Math.min(t+1,n-1);if(r==="ArrowLeft")return Math.max(t-1,0);if(r==="Home")return 0;if(r==="End")return n-1;const i=e[t];if(!i)return t;const s=i.getBoundingClientRect(),c=s.left+s.width/2,f=s.top+s.height/2,p=r==="ArrowDown";let h=t,z=1/0;for(let D=0;D<n;D++){const j=e[D];if(!j||D===t)continue;const he=j.getBoundingClientRect(),be=he.left+he.width/2,ee=he.top+he.height/2;if(p?ee<=f+1:ee>=f-1)continue;const Y=Math.abs(be-c)*2+Math.abs(ee-f);Y<z&&(z=Y,h=D)}return h}function s8(e,t){const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?ps(e.path):k4(e.path,t,t)}function a8({link:e,glyph:t,box:r}){const[n,i]=mt.useState(!1),s=n?null:s8(e,r);return s?Ce.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):Ce.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function l8({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:c}){const f=e.link,p=t?0:-1,h=f&&!e.up&&c?{onContextMenu:he=>{he.preventDefault(),c(f.path,he.clientX,he.clientY)}}:{};if(!f){const he=Cu(r8(e.raw),null);return Ce.jsxs("span",{className:"dirview-item",ref:n,tabIndex:p,onFocus:i,children:[Ce.jsx("span",{className:"dirview-icon "+he.cls,title:he.title,children:he.glyph}),Ce.jsxs("span",{className:"dirview-label",children:[e.key,": ",a_(e.raw)]})]})}const z=Cu(f.type??f.kind,f.format??null,f.concrete),D=e.up?U4(e.key):f.title??e.key,j=f.format===La?Ce.jsx("span",{className:"tagtag",style:{background:cn({name:D,color:f.color})},children:D}):f.kind==="scalar"&&!n8(f.format)?Ce.jsxs(Ce.Fragment,{children:[D,": ",Ce.jsx("span",{className:"val",children:a_(f.value)})]}):D;return Ce.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:f.path,title:Jl(f.path),ref:n,tabIndex:p,onFocus:i,onClick:he=>{he.preventDefault(),s(f.path)},...h,children:[s_[r]&&!e.up?Ce.jsx(a8,{link:f,glyph:z,box:s_[r]}):Ce.jsx("span",{className:"dirview-icon "+z.cls,title:z.title,children:z.glyph}),Ce.jsx("span",{className:"dirview-label",children:j})]})}function o8({node:e,view:t,onNavigate:r}){const n=e.format===La,[i,s]=mt.useState([]),c=Da(js),{openAt:f,tagMenu:p}=F7();mt.useEffect(()=>{if(s([]),!n)return;let me=!1;return A4(e.path).then(Z=>{me||s(Z.map(un).filter(xe=>xe!=null))}).catch(()=>{}),()=>{me=!0}},[e.path,n,c]);const h=e8(e.relations);let z=t8(e);if(n){z=z.filter(Z=>Z.link?.format!==J7);const me=new Set(z.map(Z=>Z.link?.path).filter(Boolean));for(const Z of i)me.has(Z.path)||z.push({key:rc(Z.path,Z.title),link:Z})}const D=[...h,...z],j=mt.useRef(null),he=mt.useRef([]);he.current.length=D.length;const[be,ee]=mt.useState(0);mt.useEffect(()=>{be>D.length-1&&ee(Math.max(0,D.length-1))},[D.length,be]);const Y=mt.useRef(!0);mt.useEffect(()=>{ee(0),Y.current=!0},[e.path]),mt.useEffect(()=>{!Y.current||!D.length||(Y.current=!1,!j.current?.closest(".chunk-body")&&he.current[0]?.focus({preventScroll:!0}))},[D.length,e.path]);const X=me=>{if(me.ctrlKey||me.altKey||me.metaKey||!D.length)return;if(me.key==="Enter"){const xe=D[be]?.link;xe&&(me.preventDefault(),r(xe.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(me.key))return;me.preventDefault();const Z=i8(he.current,be,me.key,D.length);Z!==be&&(ee(Z),he.current[Z]?.focus())};if(t==="board")return Ce.jsxs(Ce.Fragment,{children:[p,Ce.jsx(K7,{node:e,onNavigate:r,openContextMenu:f})]});if(t==="details")return Ce.jsxs(Ce.Fragment,{children:[p,Ce.jsx(Z7,{members:z,onNavigate:r,openContextMenu:f})]});const ge=(n?J1(e.value):null)??e.description,se="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return Ce.jsxs("div",{className:"explorerview",children:[p,ge&&Ce.jsx("div",{className:"dirhead",children:Ce.jsx("p",{className:"tagdesc",children:ge})}),Ce.jsxs("div",{ref:j,className:se,onKeyDown:X,children:[D.map((me,Z)=>Ce.jsx(l8,{it:me,active:Z===be,view:t,setRef:xe=>{he.current[Z]=xe},onFocus:()=>ee(Z),onNavigate:r,onContext:f},`${me.up?"^":""}${me.link?.path??me.key}#${Z}`)),D.length===0&&Ce.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const Dv="http://www.w3.org/1999/xlink",u8=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function c8(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(u8,"")}function $8(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Lv(e,t){if(e.nodeType===3)return $8(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>Lv(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(Dv,"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 l_({node:e}){const[t,r]=mt.useState(null),[n,i]=mt.useState(null);return mt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(ps(e.path)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new DOMParser().parseFromString(c8(c),"application/xml"),p=f.getElementsByTagName("parsererror")[0];if(p)throw new Error(p.textContent?.trim().split(`
|
|
613
|
-
`)[0]||"invalid FB2 XML");const h=new Map;for(const se of Array.from(f.getElementsByTagNameNS("*","binary"))){const me=se.getAttribute("id");if(me){const Z=se.getAttribute("content-type")||"image/jpeg";h.set(me,`data:${Z};base64,${(se.textContent||"").replace(/\s+/g,"")}`)}}const z=f.getElementsByTagNameNS("*","title-info")[0],D=(se,me)=>se?.getElementsByTagNameNS("*",me)[0]?.textContent?.trim()||"",j=D(z,"book-title")||void 0,he=z&&Array.from(z.getElementsByTagNameNS("*","author")).map(se=>[D(se,"first-name"),D(se,"middle-name"),D(se,"last-name")].filter(Boolean).join(" ")||D(se,"nickname")).filter(Boolean).join(", "),be=z?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],ee=(be?.getAttributeNS(Dv,"href")||be?.getAttribute("l:href")||"").replace(/^#/,""),Y=Array.from(f.getElementsByTagNameNS("*","body")),X=Y.find(se=>se.getAttribute("name")!=="notes")||Y[0],ge=X?Array.from(X.childNodes).map(se=>Lv(se,h)).join(""):"";r({title:j,author:he||void 0,cover:ee?h.get(ee):void 0,html:ge})}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e.path]),n?Ce.jsxs("div",{className:"error",children:["fb2: ",n]}):t?Ce.jsxs("div",{className:"text fb2",children:[t.cover&&Ce.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Ce.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Ce.jsx("p",{className:"chapter-subtitle",children:t.author}),Ce.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Ce.jsx("div",{className:"loading",children:"loading FB2…"})}const o_="http://www.w3.org/1999/xlink";function y$(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 u_(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function c_({node:e}){const[t,r]=mt.useState(null),[n,i]=mt.useState(null);return mt.useEffect(()=>{let s=!1;const c=[];return r(null),i(null),fetch(ps(e.path)).then(f=>f.arrayBuffer()).then(f=>{if(s)return;const p=c7(new Uint8Array(f)),h=fe=>p[fe]?Qf(p[fe]):"",z=fe=>new DOMParser().parseFromString(h(fe),"application/xml"),D=z("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!D||!p[D])throw new Error("no OPF package document");const j=z(D),he=u_(D),be=new Map,ee=(fe,Ae="")=>{if(!p[fe])return"";const J=be.get(fe);if(J)return J;const Ee=URL.createObjectURL(new Blob([p[fe]],{type:Ae}));return be.set(fe,Ee),c.push(Ee),Ee},Y=j.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),X=Array.from(j.getElementsByTagNameNS("*","creator")).map(fe=>fe.textContent?.trim()).filter(Boolean).join(", "),ge=new Map;for(const fe of Array.from(j.getElementsByTagNameNS("*","item"))){const Ae=fe.getAttribute("id"),J=fe.getAttribute("href");Ae&&J&&ge.set(Ae,{path:y$(he,J),type:fe.getAttribute("media-type")||""})}const se=Array.from(j.getElementsByTagNameNS("*","meta")).find(fe=>fe.getAttribute("name")==="cover")?.getAttribute("content"),me=se?ge.get(se):void 0,Z=me?ee(me.path,me.type):void 0,xe=[];for(const fe of Array.from(j.getElementsByTagNameNS("*","itemref"))){const Ae=ge.get(fe.getAttribute("idref")||"");if(!Ae||!/html/.test(Ae.type)||!p[Ae.path])continue;const J=u_(Ae.path),ce=new DOMParser().parseFromString(Qf(p[Ae.path]),"text/html").body;if(ce){ce.querySelectorAll("script, style, link").forEach(w=>w.remove());for(const w of Array.from(ce.querySelectorAll("img"))){const Se=w.getAttribute("src"),I=Se?ee(y$(J,Se)):"";I?w.setAttribute("src",I):w.removeAttribute("src")}for(const w of Array.from(ce.querySelectorAll("image"))){const Se=w.getAttributeNS(o_,"href")||w.getAttribute("href")||w.getAttribute("xlink:href"),I=Se?ee(y$(J,Se)):"";I&&w.setAttributeNS(o_,"xlink:href",I)}xe.push(`<section class="epub-doc">${ce.innerHTML}</section>`)}}if(s){c.forEach(URL.revokeObjectURL);return}r({title:Y,author:X||void 0,cover:Z,html:xe.join(`
|
|
614
|
-
`)})}).catch(f=>!s&&i(String(f.message||f))),()=>{s=!0,c.forEach(URL.revokeObjectURL)}},[e.path]),n?Ce.jsxs("div",{className:"error",children:["epub: ",n]}):t?Ce.jsxs("div",{className:"text epub",children:[t.cover&&Ce.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&Ce.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&Ce.jsx("p",{className:"chapter-subtitle",children:t.author}),Ce.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):Ce.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function $_({node:e}){return Ce.jsx("iframe",{className:"filehtml",src:ps(e.path),sandbox:"allow-same-origin",title:e.title??Jl(e.path)})}const f_=mt.lazy(()=>qn(()=>import("./pdf-DHNv60yi.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),d_=mt.lazy(()=>qn(()=>import("./djvu-DrHEpWlg.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),h_=mt.lazy(()=>qn(()=>import("./psd-BW2r7SHQ.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),p_=mt.lazy(()=>qn(()=>import("./tiff-BMu2DrjN.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),__=mt.lazy(()=>qn(()=>import("./heic-DbBlQvYf.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),f8=mt.lazy(()=>qn(()=>import("./docx-GVXp5L4P.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),d8=mt.lazy(()=>qn(()=>import("./docx-GVXp5L4P.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),h8=mt.lazy(()=>qn(()=>import("./spreadsheet-SjJAxcQm.js"),[]).then(e=>({default:e.SpreadsheetView}))),p8=mt.lazy(()=>qn(()=>import("./spreadsheet-SjJAxcQm.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),_8=mt.lazy(()=>qn(()=>import("./map-v0EOTKqe.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),m8=mt.lazy(()=>qn(()=>import("./map-v0EOTKqe.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),g8=mt.lazy(()=>qn(()=>import("./imagemap-cqYX2ztK.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),v8=mt.lazy(()=>qn(()=>import("./imagemap-cqYX2ztK.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Br=e=>Ce.jsx(mt.Suspense,{fallback:Ce.jsx("div",{className:"loading",children:"…"}),children:e}),Ui=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),y8=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),ul=(e,t,r)=>({name:e,label:t,accepts:dr("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(n,i)=>Ce.jsx(o8,{node:n,view:r,onNavigate:i})}),Fv=ul("tag-board","tag board","board"),Jf=[ul("thumbnails","thumbnails","thumbnails"),ul("large-icons","large icons","large"),ul("small-icons","small icons","small"),ul("details","details","details")],ga=Jf.find(e=>e.name==="large-icons"),Bv=[{name:"settings",accepts:dr("x-yamlover-config"),specificity:2,render:()=>Ce.jsx(wb,{})},{name:"chapter",accepts:dr("x-yamlover-chapter"),specificity:2,depth:2,tocView:m_,render:(e,t)=>Ce.jsx(X1,{node:e,onNavigate:t})},{name:"task",accepts:dr("x-yamlover-task"),specificity:2,depth:2,tocView:m_,render:(e,t)=>Ce.jsx(xb,{node:e,onNavigate:t})},{name:"marklower",accepts:e=>e.format==="text/marklower"||e.format===null&&e.valueType==="string",specificity:1,render:(e,t)=>Ce.jsx(w6,{node:e,onNavigate:t}),renderChunk:(e,t)=>Ce.jsx(k6,{chunk:e,onNavigate:t})},{name:"markdown",accepts:dr("text/markdown"),specificity:2,render:e=>Ce.jsx(_3,{node:e}),renderChunk:e=>Ce.jsx(m3,{chunk:e}),config:e=>Ce.jsx(fp,{rerender:e})},{name:"asciidoc",accepts:dr("text/asciidoc"),specificity:2,render:e=>Ce.jsx(E6,{node:e}),renderChunk:e=>Ce.jsx(C6,{chunk:e}),config:e=>Ce.jsx(fp,{rerender:e})},{name:"csv",accepts:dr("text/csv","text/tab-separated-values"),specificity:2,render:e=>Ce.jsx(R6,{node:e}),renderChunk:e=>Ce.jsx(I6,{chunk:e}),config:e=>Ce.jsx(N6,{rerender:e})},{name:"plaintext",accepts:dr("text/plain"),specificity:2,render:e=>Ce.jsx(M6,{node:e}),renderChunk:e=>Ce.jsx(D6,{chunk:e}),config:e=>Ce.jsx(L6,{rerender:e})},{name:"rtf",accepts:dr("application/rtf"),specificity:2,render:e=>Ce.jsx(H6,{node:e}),renderChunk:e=>Ce.jsx(V6,{chunk:e})},{name:"docx",accepts:dr("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Br(Ce.jsx(f8,{node:e})),renderChunk:e=>Br(Ce.jsx(d8,{chunk:e}))},{name:"spreadsheet",accepts:dr("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Br(Ce.jsx(h8,{node:e})),renderChunk:e=>Br(Ce.jsx(p8,{chunk:e}))},{name:"doc",accepts:dr("application/msword"),specificity:2,render:e=>Ce.jsx(Y6,{node:e}),renderChunk:e=>Ce.jsx(W6,{chunk:e})},{name:"map",accepts:dr("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Br(Ce.jsx(_8,{node:e})),renderChunk:e=>Br(Ce.jsx(m8,{chunk:e}))},{name:"latex",accepts:dr("text/x-latex"),specificity:2,render:e=>Ce.jsx(_6,{node:e}),renderChunk:e=>Ce.jsx(m6,{chunk:e})},{name:"plantuml",accepts:dr("text/x-plantuml"),specificity:2,render:e=>Ce.jsx(p7,{node:e}),renderChunk:e=>Ce.jsx(_7,{chunk:e})},ga,{name:"image",accepts:dr("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Br(Ce.jsx(g8,{node:e})),renderChunk:e=>Br(Ce.jsx(v8,{chunk:e}))},{name:"html",accepts:dr("text/html"),specificity:2,render:e=>Ce.jsx($_,{node:e}),renderChunk:e=>Ce.jsx($_,{node:Ui(e)})},{name:"fb2",accepts:dr("application/x-fictionbook+xml"),specificity:2,render:e=>Ce.jsx(l_,{node:e}),renderChunk:e=>Ce.jsx(l_,{node:Ui(e)})},{name:"epub",accepts:dr("application/epub+zip"),specificity:2,render:e=>Ce.jsx(c_,{node:e}),renderChunk:e=>Ce.jsx(c_,{node:Ui(e)})},{name:"pdf",accepts:dr("application/pdf"),specificity:2,render:e=>Br(Ce.jsx(f_,{node:e})),renderChunk:e=>Br(Ce.jsx(f_,{node:Ui(e)}))},{name:"djvu",accepts:dr("image/vnd.djvu"),specificity:2,render:e=>Br(Ce.jsx(d_,{node:e})),renderChunk:e=>Br(Ce.jsx(d_,{node:Ui(e)}))},{name:"psd",accepts:dr("image/vnd.adobe.photoshop"),specificity:2,render:e=>Br(Ce.jsx(h_,{node:e})),renderChunk:e=>Br(Ce.jsx(h_,{node:Ui(e)}))},{name:"tiff",accepts:dr("image/tiff"),specificity:2,render:e=>Br(Ce.jsx(p_,{node:e})),renderChunk:e=>Br(Ce.jsx(p_,{node:Ui(e)}))},{name:"heic",accepts:dr("image/heic"),specificity:2,render:e=>Br(Ce.jsx(__,{node:e})),renderChunk:e=>Br(Ce.jsx(__,{node:Ui(e)}))}];function b8(e){const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function m_(e){const t=e.children.find(r=>b8(r.path)==="children");return t?{children:t.children,expandable:t.hasChildren,loaded:t.children.length>0||!t.hasChildren,loadDepth:3}:{children:[],expandable:e.hasChildren,loaded:e.children.length>0,loadDepth:3}}function no(e){const t=y8(e);let r=null;for(const n of Bv)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function x8(e){return P7(e)?[Fv,...Jf]:Jf}function b$(e){const t=[],r=no(e);return r&&r!==ga&&t.push(r),(r===ga||k8(e))&&t.push(...x8(e)),t}const w8=new Set(["object","array","mixed","variant"]),jv=e=>!!e.type&&w8.has(e.type);function k8(e){const t=e.concrete;return(Yu(t)||Wu(t)||P1(t))&&jv(e)}const g_=Bv.find(e=>e.name==="plaintext");function x$(e){return Yu(e.concrete)||no(e)===g_||!(Wu(e.concrete)||P1(e.concrete)||e.format==="text/markdown"||e.format==="text/asciidoc")?null:B1(e.concrete)||typeof _s(e.value)=="string"?g_:null}function Ko(e,t){const r=no(e);return r&&r!==ga?r.name:r===ga||Yu(t)&&jv(e)?e.format==="x-yamlover-board"?Fv.name:ga.name:null}function Pv(e){const t=no(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 S8=mt.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,depth:s=0}){const{children:c,expandable:f,loaded:p,loadDepth:h}=Pv(t),[z,D]=mt.useState(c.length>0),[j,he]=mt.useState(!1),be=t.path===r,ee=yl(t.path,r),Y=mt.useRef(null);mt.useEffect(()=>{ee&&D(!0)},[ee]),mt.useEffect(()=>{be&&Y.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[be]);const X=Cu(t.type,t.format,t.concrete),ge=z&&X.glyph==="📁"?"📂":X.glyph,se=async()=>{if(!z&&f&&!p){he(!0);try{await i(t.path,h)}finally{he(!1)}}D(me=>!me)};return Ce.jsxs("div",{className:"tree-branch",children:[Ce.jsxs("div",{ref:Y,className:"tree-row"+(be?" selected":""),style:{paddingLeft:s*14+4},children:[f?Ce.jsx("button",{className:"toggle"+(z?" open":"")+(j?" loading":""),onClick:se,"aria-label":z?"collapse":"expand",children:Ce.jsx("span",{className:"chevron",children:"›"})}):Ce.jsx("span",{className:"toggle leaf"}),Ce.jsx("span",{className:"icon "+X.cls,title:X.title,children:ge}),Ce.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${Jl(t.path)} (${t.type})`,children:t.label})]}),z&&c.map(me=>Ce.jsx(e,{node:me,current:r,onSelect:n,onLoadChildren:i,depth:s+1},me.path))]})});function A8({tasks:e}){return e.length?Ce.jsx("div",{className:"task-strip",children:e.map(t=>{const{done:r,total:n,message:i}=t.progress,s=t.state==="done"?100:n?Math.min(100,Math.floor(r/n*100)):null,c=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return Ce.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[Ce.jsxs("span",{className:"task-label",children:[t.label,c&&Ce.jsxs("span",{className:"task-counts",children:[" ",c]}),t.state==="error"&&" — failed"]}),Ce.jsx("span",{className:"task-bar",children:s!==null?Ce.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):Ce.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function E8(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 C8(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 T8(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,`
|
|
615
|
-
`),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const c=(r.author_url??"").split("/").filter(Boolean).pop(),f=i?Array.from(i.querySelectorAll(":scope > a")):[],p=f[f.length-1]?.textContent?.trim(),h=[r.author_name,c&&`@${c}`].filter(Boolean).join(" "),z=[h&&`— ${h}`,p].filter(Boolean).join(", ");return[s,"",[z,r.url??e].filter(Boolean).join(`
|
|
616
|
-
`)].join(`
|
|
617
|
-
`)}const Uv=new Set(["script","style","noscript","template","iframe","svg","head","title"]),z8=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 R8(e){const t=new DOMParser().parseFromString(e,"text/html"),r=q8(N8(t.body));if(!r.some(s=>s.kind!=="text"))return null;const n={chunks:[],children:[]},i=[{node:n,level:0}];for(const s of r)if(s.kind==="heading"){for(;i.length>1&&i[i.length-1].level>=s.level;)i.pop();const c={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(c),i.push({node:c,level:s.level})}else i[i.length-1].node.chunks.push(s.kind==="image"?{image:{url:s.url,alt:s.alt}}:{text:s.text});return n}function N8(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
|
|
618
|
-
`).replace(/\n{2,}/g,`
|
|
619
|
-
`).trim();r="",s&&t.push({kind:"text",text:s})},i=s=>{if(s.nodeType===Node.TEXT_NODE){r+=s.textContent??"";return}if(!(s instanceof Element))return;const c=s.tagName.toLowerCase();if(!Uv.has(c)){if(/^h[1-6]$/.test(c)){n(),t.push({kind:"heading",level:Number(c[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(c==="img"){n();const f=I8(s);f&&t.push({kind:"image",url:f,alt:s.getAttribute("alt")??""});return}if(c==="li"){n(),s.childNodes.forEach(i);const f=r.replace(/\s+/g," ").trim();r="",f&&t.push({kind:"text",text:"- "+f});return}if(c==="pre"){n();const f=(s.textContent??"").replace(/\n+$/,"");f.trim()&&t.push({kind:"text",text:"```\n"+f+"\n```"});return}if(c==="blockquote"){n(),s.childNodes.forEach(i);const f=r.trim();r="",f&&t.push({kind:"text",text:f.split(`
|
|
620
|
-
`).map(p=>"> "+p).join(`
|
|
621
|
-
`)});return}if(c==="br"){r+=`
|
|
622
|
-
`;return}if(c==="td"||c==="th"){s.childNodes.forEach(i),r+=" ";return}if(z8.has(c)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=Hv(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function Hv(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.tagName.toLowerCase();if(Uv.has(t))return"";if(t==="br")return`
|
|
623
|
-
`;const r=Array.from(e.childNodes).map(Hv).join("");if(t==="a"){const n=e.getAttribute("href")??"",i=r.trim();return/^https?:\/\//.test(n)&&i?`[${i}](${n})`:r}return t==="strong"||t==="b"?r.trim()?`**${r.trim()}**`:"":t==="em"||t==="i"?r.trim()?`*${r.trim()}*`:"":t==="code"?r.trim()?"`"+r.trim()+"`":"":r}function I8(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 q8(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+=`
|
|
624
|
-
`+r.text:t.push(r)}return t}const M8={"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 Vv(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:D8(t.image.url,n.type),contentBase64:await L8(n)}}}catch{return{text:``}}})),children:await Promise.all(e.children.map(Vv))}}function D8(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+="."+(M8[t]||"bin")),r}function L8(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 Yv(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+Yv(r),0)}const Wv=1,Gv=()=>new URLSearchParams(window.location.search);function jd(e){const t=e.trim().toLowerCase();return t===".inf"||t==="inf"}function v_(e){if(jd(e))return!0;const t=Number(e);return e.trim()!==""&&Number.isInteger(t)&&t>=Wv}function Of(){const e=Gv().get("depth");if(e==null||e===""||jd(e))return null;const t=Number(e);return Number.isInteger(t)&&t>=Wv?t:null}function F8(e){const t=Gv();e==null?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function B8({onChange:e}){const t=Of(),r=t==null?".inf":String(t),[n,i]=mt.useState(r);mt.useEffect(()=>i(r),[r]);const s=v_(n);return Ce.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",title:"depth",value:n,onChange:c=>{const f=c.target.value;i(f),v_(f)&&(F8(jd(f)?null:Number(f)),e())}})}const j8=new Set(["chapter","markdown","asciidoc","marklower"]),P8=["yamlover","json5p","yamlover/schema"],cl="yamlover",w$=e=>e.endsWith("schema"),y_=e=>e==="json5p"?"json":"yaml";function k$(e){return Wu(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function S$(e,t,r){return r.includes(e)?e:Ko(t,t.concrete)??cl}function U8(e){const t=Gr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const H8={"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 V8(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 Y8(e){return e.name?e.name:`pasted.${H8[e.type]||"bin"}`}function W8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read file")),n.readAsDataURL(e)})}const G8=mt.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:c,onOpenUploaded:f}){const[p,h]=mt.useState(null),[z,D]=mt.useState(null),[j,he]=mt.useState(null),[be,ee]=mt.useState(null),[Y,X]=mt.useState(0),[ge,se]=mt.useState(null),[me,Z]=mt.useState(!1),xe=mt.useRef(t),[,fe]=mt.useReducer(Ie=>Ie+1,0),Ae=Mv(t);tc(p),mt.useEffect(()=>{ee(null),xe.current!==t&&(h(null),xe.current=t);let Ie=!1;return gn(t).then(Je=>{if(Ie)return;const ut=b$(Je),_t=x$(Je),wt=[...ut.map(Ct=>Ct.name),...k$(Je),..._t?[_t.name]:[]],bt=S$(r,Je,wt),At=[...ut,..._t?[_t]:[]].find(Ct=>Ct.name===bt),St=Ct=>!Ie&&h(Ct),Mt=Ct=>!Ie&&ee(Ct.message);if(At){const Ct=At.depth??1;Ct>1?gn(t,Ct).then(St).catch(Mt):h(Je)}else{const Ct=Of();Ct===null?h(Je):gn(t,Ct).then(St).catch(Mt)}}).catch(Je=>!Ie&&ee(Je.message)),()=>{Ie=!0}},[t,Y,n,r]),mt.useEffect(()=>{if(!p)return;const Ie=Je=>{const ut=Je.target;if(ut&&(ut.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(ut.tagName)))return;const _t=V8(Je);if(_t.length>0){Je.preventDefault(),J(_t);return}const wt=Je.clipboardData?.getData("text/html")??"",bt=wt?R8(wt):null;if(bt){Je.preventDefault(),ce(bt);return}const At=Je.clipboardData?.getData("text/plain")??"";if(!At.trim())return;Je.preventDefault();const St=E8(At);if(St){Ee(St);return}const Mt=C8(At);if(Mt){w(Mt);return}Se(At)};return document.addEventListener("paste",Ie),()=>document.removeEventListener("paste",Ie)},[p,t]),mt.useEffect(()=>{if(!p)return;const Ie=At=>Array.from(At.dataTransfer?.types||[]).includes("Files");let Je=0;const ut=At=>{Ie(At)&&(At.preventDefault(),Je++,Z(!0))},_t=At=>{Ie(At)&&(At.preventDefault(),At.dataTransfer&&(At.dataTransfer.dropEffect="copy"))},wt=()=>{Je=Math.max(0,Je-1),Je===0&&Z(!1)},bt=At=>{if(!Ie(At))return;At.preventDefault(),Je=0,Z(!1);const St=Array.from(At.dataTransfer?.files||[]);St.length&&J(St)};return document.addEventListener("dragenter",ut),document.addEventListener("dragover",_t),document.addEventListener("dragleave",wt),document.addEventListener("drop",bt),()=>{document.removeEventListener("dragenter",ut),document.removeEventListener("dragover",_t),document.removeEventListener("dragleave",wt),document.removeEventListener("drop",bt)}},[p,t]);const J=async Ie=>{try{se(`uploading ${Ie.length} file${Ie.length>1?"s":""}…`);let Je=null;for(const ut of Ie){const _t=await W8(ut);Je=await I4(t,Y8(ut),_t)}se(Ie.length>1?`uploaded ${Ie.length} files`:"uploaded"),window.setTimeout(()=>se(null),1500),Je?.open?f?.(Je):(X(ut=>ut+1),c?.(t))}catch(Je){se("paste failed: "+Je.message),window.setTimeout(()=>se(null),4e3)}},Ee=async({url:Ie,name:Je})=>{try{se(`downloading ${Je}…`);const ut=await fetch(Ie);if(!ut.ok)throw new Error(`HTTP ${ut.status} fetching ${Ie}`);const _t=await ut.blob();await J([new File([_t],Je,{type:"application/pdf"})])}catch(ut){se("download failed: "+ut.message),window.setTimeout(()=>se(null),4e3)}},ce=async Ie=>{try{const Je=Yv(Ie);Je&&se(`downloading ${Je} image${Je>1?"s":""}…`);const ut=await Vv(Ie);se("pasting…");const _t=await M4(t,ut);se(_t.chapter?"chunks added":"chapter created"),window.setTimeout(()=>se(null),1500),_t.open?f?.(_t):(X(wt=>wt+1),c?.(t))}catch(Je){se("paste failed: "+Je.message),window.setTimeout(()=>se(null),4e3)}},w=async Ie=>{try{se("fetching tweet…"),await Se(await T8(Ie))}catch(Je){se("tweet fetch failed: "+Je.message),window.setTimeout(()=>se(null),4e3)}},Se=async Ie=>{try{se("pasting text…");const Je=await q4(t,Ie);se(Je.chapter?"chunk added":"chapter created"),window.setTimeout(()=>se(null),1500),Je.open?f?.(Je):(X(ut=>ut+1),c?.(t))}catch(Je){se("paste failed: "+Je.message),window.setTimeout(()=>se(null),4e3)}};if(mt.useEffect(()=>{p&&(document.title=p.title?.trim()||U8(t)||"yamlover")},[p,t]),mt.useEffect(()=>{if(D(null),he(null),!p)return;const Ie=b$(p),Je=x$(p),ut=[...Ie.map(wt=>wt.name),...k$(p),...Je?[Je.name]:[]],_t=S$(r,p,ut);[...Ie,...Je?[Je]:[]].some(wt=>wt.name===_t)||(w$(_t)?S4(t,Of()??void 0).then(D).catch(wt=>ee(wt.message)):p.type==="binary"&&gn(t,void 0,{binary:!0}).then(wt=>he(wt.value)).catch(wt=>ee(wt.message)))},[r,t,p]),be)return Ce.jsx("div",{className:"error",children:be});if(!p)return Ce.jsx("div",{className:"loading",children:"…"});const I=b$(p),ne=k$(p),B=x$(p),Fe=B?[...I,B]:I,ue=[...I.map(Ie=>Ie.name),...ne,...B?[B.name]:[]],U=S$(r,p,ue),v=Ie=>Fe.find(Je=>Je.name===Ie)?.label??Ie,$=Fe.find(Ie=>Ie.name===U)??null,l=$!=null,u=p.documentPath??t;let d,_;l?(d=p.value,_=!0):w$(U)?(d=z,_=z!=null):p.type==="binary"?(d=j,_=j!=null):(d=p.value,_=!0);const{tags:S,rest:T}=pb(p.relations),te=[...S];for(const Ie of Ae)Ie.tag&&!te.some(Je=>Je.path===Ie.tag.path)&&te.push({path:Ie.tag.path,label:Ie.tag.name,color:Ie.tag.color});return Ce.jsxs("div",{className:"nodeview",children:[ge&&Ce.jsx("div",{className:"paste-toast",children:ge}),me&&Ce.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),Ce.jsxs("div",{className:"nodehead",children:[Ce.jsxs("div",{className:"nodemeta",children:[Ce.jsx("span",{className:"tag",children:p.type}),p.concrete&&Ce.jsx("span",{className:"tag dim",children:p.concrete}),Ce.jsx(mb,{tags:te,onNavigate:s})]}),Ce.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),Ce.jsxs("div",{className:"tabs",children:[ue.map(Ie=>Ce.jsxs(mt.Fragment,{children:[Ce.jsx("button",{className:"tab"+(U===Ie?" active":""),onClick:()=>i(Ie),children:v(Ie)}),l&&$&&Ie===$.name&&$.config?.(fe,p)]},Ie)),!l&&Ce.jsx(B8,{onChange:()=>X(Ie=>Ie+1)})]})]}),!l&&p.description&&Ce.jsx("p",{className:"nodedesc",children:p.description}),l?j8.has($.name)?Ce.jsx(q7,{path:t,children:$.render(p,s)}):$.render(p,s):Ce.jsxs("pre",{className:"code",children:[!w$(U)&&Object.keys(T).length>0&&Ce.jsxs(Ce.Fragment,{children:[Ce.jsx(ip,{value:T,syntax:y_(U),onNavigate:s,documentPath:u,nodePath:t,anchors:!1}),Ce.jsx("hr",{className:"reldiv"})]}),_?Ce.jsx(ip,{value:d,syntax:y_(U),onNavigate:s,documentPath:u,nodePath:t,comments:p.comments}):"…"]})]})}),K8=e=>P8.includes(e),X8=(e,t)=>K8(e)&&(e!=="json5p"||Wu(t)),rl=1;function e0(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>e0(n,t,r))}:e}function Kv(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=>Kv(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function Xv(e,t,r){return e.path===t?Kv(e,r):e.children.length?{...e,children:e.children.map(n=>Xv(n,t,r))}:e}function ca(e,t){if(e.path===t)return e;for(const r of e.children){const n=ca(r,t);if(n)return n}return null}function Q8(e,t){const r=Gr(t);for(let n=0;n<r.length;n++){const i=fi(r.slice(0,n)),s=ca(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function Z8(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of Pv(n).children)r(i)};return r(e),t}function J8(){const[e,t]=mt.useState(null),[r,n]=mt.useState(null),[i,s]=mt.useState(ep()),[c,f]=mt.useState(tp(cl)),[p,h]=mt.useState(""),[z,D]=mt.useState("idle"),j=mt.useCallback(()=>{const v=":.yamlover:settings.yamlover";Gs(v,"settings",!1),s(v),f("settings")},[]),[he,be]=mt.useState(320),ee=mt.useRef(null);mt.useEffect(()=>{Zh().then(v=>h(v.root)).catch(()=>{})},[]);const[Y,X]=mt.useState([]);mt.useEffect(()=>{w4().then(X).catch(()=>{})},[]);const ge=mt.useCallback(v=>{X($=>[...$.filter(l=>l.id!==v.id),v].sort((l,u)=>l.startedAt-u.startedAt)),v.state!=="running"&&setTimeout(()=>X($=>$.filter(l=>l.id!==v.id)),3e3)},[]),se=mt.useRef(new URLSearchParams(window.location.search).has("format"));mt.useEffect(()=>{Gs(i,c,!0)},[]),mt.useEffect(()=>{Za(":",rl).then(t).catch(v=>n(v.message))},[]);const me=mt.useRef(!1);mt.useEffect(()=>{if(se.current||me.current||!e)return;const v=ca(e,i);if(!v)return;me.current=!0;const $=Ko(v,v.concrete);$&&(f($),Gs(i,$,!0))},[e,i]);const Z=mt.useCallback(async(v,$=rl)=>{const l=await Za(v,$);t(u=>u&&e0(u,v,l.children))},[]);mt.useEffect(()=>{if(!e)return;const v=Q8(e,i);v&&Z(v).catch(()=>{})},[e,i,Z]);const xe=mt.useRef(e);xe.current=e;const fe=mt.useRef(i);fe.current=i;const[Ae,J]=mt.useState(0),Ee=mt.useCallback(async v=>{const $=xe.current;if(!$)return;const l=new Set;for(const d of v){const _=Gr(d);let S=":";for(let T=0;T<_.length;T++){const te=fi(_.slice(0,T)),Ie=ca($,te);if(!Ie)break;(te===":"||Ie.children.length>0)&&(S=te)}l.add(S)}const u=[...l].filter(d=>![...l].some(_=>_!==d&&yl(_,d)));await Promise.all(u.map(async d=>{const _=await Za(d,rl);t(S=>S&&Xv(S,d,_))}))},[]),ce=mt.useCallback(()=>{xe.current||(Za(":",rl).then(v=>{t(v),n(null)}).catch(()=>{}),Zh().then(v=>h(v.root)).catch(()=>{}))},[]);mt.useEffect(()=>{if(typeof EventSource>"u")return;const v=new EventSource(Er("/api/events"));return v.onmessage=$=>{try{const l=JSON.parse($.data);if(l.type==="task"){const S=l.task;ge(S),S.state==="done"&&ce();return}const u=l;ce();const d=[...u.added,...u.changed,...u.removed,...(u.moved??[]).flatMap(S=>[S.from,S.to])];if(!d.length)return;db({paths:d,removed:u.removed}),Ee(d).catch(()=>{});const _=fe.current;d.some(S=>S===_||yl(S,_)||yl(_,S))&&J(S=>S+1)}catch{}},()=>v.close()},[Ee,ge,ce]),mt.useEffect(()=>{const v=()=>{s(ep()),f(tp(cl))};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)},[]);const w=mt.useCallback(v=>{const $=e?ca(e,v):null;let l=c;$&&(l=Ko($,$.concrete)??(X8(c,$.concrete)?c:cl)),Gs(v,l,!1),s(v),l!==c&&f(l)},[c,e]),Se=mt.useCallback(v=>{w(v),ee.current?.focus()},[w]),I=mt.useRef(w);I.current=w,mt.useEffect(()=>{const v=$=>{if(!($.ctrlKey||$.altKey)||$.key!=="ArrowDown"&&$.key!=="ArrowUp")return;const l=$.target;if(l&&(l.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(l.tagName)))return;const u=Z8(xe.current),d=u.indexOf(fe.current);if(d<0)return;const _=Math.min(Math.max(d+($.key==="ArrowDown"?1:-1),0),u.length-1);$.preventDefault(),_!==d&&I.current(u[_])};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[]);const ne=mt.useCallback(v=>{Gs(i,v,!0),f(v)},[i]),B=mt.useCallback(v=>{const $=e?ca(e,v):null;Z($?v:":").catch(()=>{})},[e,Z]),Fe=mt.useCallback(async v=>{const $=v.dir??":";try{const l=await Za($,rl);t(_=>_&&e0(_,$,l.children));const u=l.children.find(_=>_.path===v.path),d=(u?Ko(u,u.concrete):null)??cl;Gs(v.path,d,!1),s(v.path),f(d)}catch{w(v.path)}},[w]),ue=mt.useRef(!1);mt.useEffect(()=>{const v=l=>{ue.current&&be(Math.min(Math.max(l.clientX,160),window.innerWidth-240))},$=()=>{ue.current=!1,document.body.style.userSelect=""};return window.addEventListener("mousemove",v),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",$)}},[]);const U=mt.useCallback(async()=>{if(z!=="busy"){D("busy");try{let{files:v}=await Jh();if(v.every(l=>l.status==="exists")){const l=v.map(u=>u.name).join(" and ");window.confirm(`${l} already exist in this project. Overwrite with the bundled version?`)&&(v=(await Jh(!0)).files)}const $=v.filter(l=>l.status!=="exists").map(l=>l.name);n(null),$.length&&window.alert(`Installed agent guide: ${$.join(", ")}.`)}catch(v){n(`agent docs: ${v.message}`)}finally{D("idle")}}},[z]);return Ce.jsxs("div",{className:"app",children:[Ce.jsxs("header",{className:"topbar",children:[Ce.jsxs("nav",{className:"crumbs",children:[Ce.jsx("button",{type:"button",className:"crumb-action crumb-settings",title:"Project configuration (settings.yamlover)","aria-label":"Project configuration",onClick:j,children:"⚙"}),Ce.jsx("button",{type:"button",className:"crumb-action",disabled:z==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:U,children:"🤖"}),H4(i,p).map((v,$)=>Ce.jsxs("span",{children:[$>0&&Ce.jsx("span",{className:"crumb-sep",children:":"}),Ce.jsx("a",{className:"crumb",href:v.path,onClick:l=>{l.preventDefault(),w(v.path)},children:v.label})]},v.path))]}),Ce.jsx(A8,{tasks:Y})]}),Ce.jsxs("div",{className:"body",children:[Ce.jsx("aside",{className:"pane left",style:{width:he},children:(()=>{const v=e?void 0:Y.find($=>$.state==="running");if(v){const{done:$,total:l}=v.progress;return Ce.jsxs("div",{className:"loading",children:[v.label,"… ",l?`${$}/${l}`:""]})}return r?Ce.jsx("div",{className:"error",children:r}):e?Ce.jsx(S8,{node:e,current:i,onSelect:Se,onLoadChildren:Z}):Ce.jsx("div",{className:"loading",children:"loading…"})})()}),Ce.jsx("div",{className:"splitter",onMouseDown:()=>{ue.current=!0,document.body.style.userSelect="none"}}),Ce.jsx("main",{className:"pane right",ref:ee,tabIndex:-1,children:(()=>{const v=e?void 0:Y.find($=>$.state==="running");if(v){const{done:$,total:l}=v.progress;return Ce.jsxs("div",{className:"loading",children:[v.label,"… ",l?`${$}/${l}`:""]})}return Ce.jsx(G8,{path:i,format:c,refreshSignal:Ae,onFormat:ne,onNavigate:w,onContentChanged:B,onOpenUploaded:Fe})})()})]})]})}q1(document.getElementById("root")).render(Ce.jsx(fy.StrictMode,{children:Ce.jsx(J8,{})}));export{y7 as D,O8 as a,ps as b,b7 as c,I7 as d,x7 as e,R7 as f,Qv as g,Ce as j,ex as p,mt as r,Qf as s,c7 as u,tx as w};
|