yamlover 0.3.13 → 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.
Files changed (34) hide show
  1. package/README.md +11 -2
  2. package/dist/agent-docs/AGENTS.md +4 -2
  3. package/dist/builtin-taxonomy/$defs/board +7 -7
  4. package/dist/builtin-taxonomy/$defs/chapter +17 -11
  5. package/dist/builtin-taxonomy/$defs/chunk +5 -3
  6. package/dist/builtin-taxonomy/$defs/task +15 -16
  7. package/dist/builtin-taxonomy/$defs/workflow +1 -1
  8. package/dist/client/assets/decoded-CY5-anyl.js +1 -0
  9. package/dist/client/assets/djvu-CbL4_9ak.js +1 -0
  10. package/dist/client/assets/{docx-B_9I-KwO.js → docx-CCEuxO9n.js} +1 -1
  11. package/dist/client/assets/{heic-Ce7tu8UK.js → heic-BvS6Unla.js} +2 -2
  12. package/dist/client/assets/imagemap-DBji1qL1.js +1 -0
  13. package/dist/client/assets/index-1sCxQdj3.css +1 -0
  14. package/dist/client/assets/index-DqdQvRi4.js +632 -0
  15. package/dist/client/assets/map-BfHrzAqt.js +1 -0
  16. package/dist/client/assets/openable-DIyqYrzm.js +4 -0
  17. package/dist/client/assets/{paged-CBui7Gsu.js → paged-COP9CRTO.js} +1 -1
  18. package/dist/client/assets/{pdf-DEAMWCiJ.js → pdf-C-kvASQl.js} +9 -9
  19. package/dist/client/assets/psd-KxbPOIwA.js +11 -0
  20. package/dist/client/assets/{spreadsheet-DM8lRCkI.js → spreadsheet-DkG5umsc.js} +1 -1
  21. package/dist/client/assets/tiff-sq_Q9sNj.js +1 -0
  22. package/dist/client/index.html +2 -2
  23. package/dist/server.js +1014 -274
  24. package/package.json +1 -1
  25. package/dist/client/assets/decoded-7CsibQKd.js +0 -1
  26. package/dist/client/assets/djvu-BXFlPnkK.js +0 -1
  27. package/dist/client/assets/imagemap-DlsYOgu-.js +0 -1
  28. package/dist/client/assets/index-D7TqaRqy.js +0 -620
  29. package/dist/client/assets/index-DEBdytA6.css +0 -1
  30. package/dist/client/assets/map-CKyCg437.js +0 -1
  31. package/dist/client/assets/panzoom-BDtxTlLr.js +0 -4
  32. package/dist/client/assets/psd-BUfV7J7j.js +0 -11
  33. package/dist/client/assets/tiff-DvGVB25t.js +0 -1
  34. /package/dist/client/assets/{panzoom-CIGW-MKW.css → openable-CIGW-MKW.css} +0 -0
@@ -1,620 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DEAMWCiJ.js","assets/paged-CBui7Gsu.js","assets/pdf-m5e3jsV4.css","assets/djvu-BXFlPnkK.js","assets/psd-BUfV7J7j.js","assets/decoded-7CsibQKd.js","assets/imagemap-DlsYOgu-.js","assets/panzoom-BDtxTlLr.js","assets/panzoom-CIGW-MKW.css","assets/tiff-DvGVB25t.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-Ce7tu8UK.js","assets/docx-B_9I-KwO.js","assets/map-CKyCg437.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 C8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a_={exports:{}},wu={},l_={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 Hl=Symbol.for("react.element"),Cv=Symbol.for("react.portal"),Tv=Symbol.for("react.fragment"),zv=Symbol.for("react.strict_mode"),Rv=Symbol.for("react.profiler"),Nv=Symbol.for("react.provider"),Iv=Symbol.for("react.context"),qv=Symbol.for("react.forward_ref"),Mv=Symbol.for("react.suspense"),Dv=Symbol.for("react.memo"),Lv=Symbol.for("react.lazy"),Rd=Symbol.iterator;function Fv(e){return e===null||typeof e!="object"?null:(e=Rd&&e[Rd]||e["@@iterator"],typeof e=="function"?e:null)}var o_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},u_=Object.assign,c_={};function Ca(e,t,r){this.props=e,this.context=t,this.refs=c_,this.updater=r||o_}Ca.prototype.isReactComponent={};Ca.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")};Ca.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $_(){}$_.prototype=Ca.prototype;function Yf(e,t,r){this.props=e,this.context=t,this.refs=c_,this.updater=r||o_}var Gf=Yf.prototype=new $_;Gf.constructor=Yf;u_(Gf,Ca.prototype);Gf.isPureReactComponent=!0;var Nd=Array.isArray,f_=Object.prototype.hasOwnProperty,Kf={current:null},d_={key:!0,ref:!0,__self:!0,__source:!0};function h_(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)f_.call(t,n)&&!d_.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:Hl,type:e,key:s,ref:c,props:i,_owner:Kf.current}}function Bv(e,t){return{$$typeof:Hl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hl}function jv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Id=/\/+/g;function fc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jv(""+e.key):t.toString(36)}function Eo(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 Hl:case Cv:c=!0}}if(c)return c=e,i=i(c),e=n===""?"."+fc(c,0):n,Nd(i)?(r="",e!=null&&(r=e.replace(Id,"$&/")+"/"),Eo(i,t,r,"",function(h){return h})):i!=null&&(Xf(i)&&(i=Bv(i,r+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(Id,"$&/")+"/")+e)),t.push(i)),1;if(c=0,n=n===""?".":n+":",Nd(e))for(var f=0;f<e.length;f++){s=e[f];var p=n+fc(s,f);c+=Eo(s,t,r,p,i)}else if(p=Fv(e),typeof p=="function")for(e=p.call(e),f=0;!(s=e.next()).done;)s=s.value,p=n+fc(s,f++),c+=Eo(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 Ol(e,t,r){if(e==null)return e;var n=[],i=0;return Eo(e,n,"","",function(s){return t.call(r,s,i++)}),n}function Pv(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},Co={transition:null},Uv={ReactCurrentDispatcher:$n,ReactCurrentBatchConfig:Co,ReactCurrentOwner:Kf};function p_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:Ol,forEach:function(e,t,r){Ol(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ol(e,function(){t++}),t},toArray:function(e){return Ol(e,function(t){return t})||[]},only:function(e){if(!Xf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=Ca;Ot.Fragment=Tv;Ot.Profiler=Rv;Ot.PureComponent=Yf;Ot.StrictMode=zv;Ot.Suspense=Mv;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uv;Ot.act=p_;Ot.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=u_({},e.props),i=e.key,s=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,c=Kf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(p in t)f_.call(t,p)&&!d_.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:Hl,type:e.type,key:i,ref:s,props:n,_owner:c}};Ot.createContext=function(e){return e={$$typeof:Iv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nv,_context:e},e.Consumer=e};Ot.createElement=h_;Ot.createFactory=function(e){var t=h_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:qv,render:e}};Ot.isValidElement=Xf;Ot.lazy=function(e){return{$$typeof:Lv,_payload:{_status:-1,_result:e},_init:Pv}};Ot.memo=function(e,t){return{$$typeof:Dv,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=Co.transition;Co.transition={};try{e()}finally{Co.transition=t}};Ot.unstable_act=p_;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";l_.exports=Ot;var gt=l_.exports;const Hv=Ev(gt);/**
11
- * @license React
12
- * react-jsx-runtime.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var Vv=gt,Wv=Symbol.for("react.element"),Yv=Symbol.for("react.fragment"),Gv=Object.prototype.hasOwnProperty,Kv=Vv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xv={key:!0,ref:!0,__self:!0,__source:!0};function __(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)Gv.call(t,n)&&!Xv.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:Wv,type:e,key:s,ref:c,props:i,_owner:Kv.current}}wu.Fragment=Yv;wu.jsx=__;wu.jsxs=__;a_.exports=wu;var qe=a_.exports,m_={exports:{}},Nn={},g_={exports:{}},v_={};/**
19
- * @license React
20
- * scheduler.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(ue,P){var v=ue.length;ue.push(P);e:for(;0<v;){var $=v-1>>>1,l=ue[$];if(0<i(l,P))ue[$]=P,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 P=ue[0],v=ue.pop();if(v!==P){ue[0]=v;e:for(var $=0,l=ue.length,u=l>>>1;$<u;){var d=2*($+1)-1,_=ue[d],k=d+1,A=ue[k];if(0>i(_,v))k<l&&0>i(A,_)?(ue[$]=A,ue[k]=v,$=k):(ue[$]=_,ue[d]=v,$=d);else if(k<l&&0>i(A,v))ue[$]=A,ue[k]=v,$=k;else break e}}return P}function i(ue,P){var v=ue.sortIndex-P.sortIndex;return v!==0?v:ue.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],I=1,L=null,H=3,pe=!1,be=!1,re=!1,W=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,ge=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function se(ue){for(var P=r(h);P!==null;){if(P.callback===null)n(h);else if(P.startTime<=ue)n(h),P.sortIndex=P.expirationTime,t(p,P);else break;P=r(h)}}function me(ue){if(re=!1,se(ue),!be)if(r(p)!==null)be=!0,B(J);else{var P=r(h);P!==null&&Le(me,P.startTime-ue)}}function J(ue,P){be=!1,re&&(re=!1,X(Ae),Ae=-1),pe=!0;var v=H;try{for(se(P),L=r(p);L!==null&&(!(L.expirationTime>P)||ue&&!ce());){var $=L.callback;if(typeof $=="function"){L.callback=null,H=L.priorityLevel;var l=$(L.expirationTime<=P);P=e.unstable_now(),typeof l=="function"?L.callback=l:L===r(p)&&n(p),se(P)}else n(p);L=r(p)}if(L!==null)var u=!0;else{var d=r(h);d!==null&&Le(me,d.startTime-P),u=!1}return u}finally{L=null,H=v,pe=!1}}var xe=!1,fe=null,Ae=-1,O=5,Ee=-1;function ce(){return!(e.unstable_now()-Ee<O)}function w(){if(fe!==null){var ue=e.unstable_now();Ee=ue;var P=!0;try{P=fe(!0,ue)}finally{P?Se():(xe=!1,fe=null)}}else xe=!1}var Se;if(typeof ge=="function")Se=function(){ge(w)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,ne=N.port2;N.port1.onmessage=w,Se=function(){ne.postMessage(null)}}else Se=function(){W(w,0)};function B(ue){fe=ue,xe||(xe=!0,Se())}function Le(ue,P){Ae=W(function(){ue(e.unstable_now())},P)}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||pe||(be=!0,B(J))},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"):O=0<ue?Math.floor(1e3/ue):5},e.unstable_getCurrentPriorityLevel=function(){return H},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(ue){switch(H){case 1:case 2:case 3:var P=3;break;default:P=H}var v=H;H=P;try{return ue()}finally{H=v}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ue,P){switch(ue){case 1:case 2:case 3:case 4:case 5:break;default:ue=3}var v=H;H=ue;try{return P()}finally{H=v}},e.unstable_scheduleCallback=function(ue,P,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:I++,callback:P,priorityLevel:ue,startTime:v,expirationTime:l,sortIndex:-1},v>$?(ue.sortIndex=v,t(h,ue),r(p)===null&&ue===r(h)&&(re?(X(Ae),Ae=-1):re=!0,Le(me,v-$))):(ue.sortIndex=l,t(p,ue),be||pe||(be=!0,B(J))),ue},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(ue){var P=H;return function(){var v=H;H=P;try{return ue.apply(this,arguments)}finally{H=v}}}})(v_);g_.exports=v_;var Qv=g_.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 Zv=gt,zn=Qv;function Ct(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y_=new Set,xl={};function Ds(e,t){ma(e,t),ma(e+"Capture",t)}function ma(e,t){for(xl[e]=t,e=0;e<t.length;e++)y_.add(t[e])}var Ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p$=Object.prototype.hasOwnProperty,Jv=/^[: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]*$/,qd={},Md={};function Ov(e){return p$.call(Md,e)?!0:p$.call(qd,e)?!1:Jv.test(e)?Md[e]=!0:(qd[e]=!0,!1)}function ey(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 ty(e,t,r,n){if(t===null||typeof t>"u"||ey(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 Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yr[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];Yr[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yr[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){Yr[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qf=/[\-:]([a-z])/g;function Zf(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(Qf,Zf);Yr[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(Qf,Zf);Yr[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(Qf,Zf);Yr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jf(e,t,r,n){var i=Yr.hasOwnProperty(t)?Yr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ty(t,r,i,n)&&(r=null),n||i===null?Ov(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 Ri=Zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eo=Symbol.for("react.element"),Ks=Symbol.for("react.portal"),Xs=Symbol.for("react.fragment"),Of=Symbol.for("react.strict_mode"),_$=Symbol.for("react.profiler"),b_=Symbol.for("react.provider"),x_=Symbol.for("react.context"),e0=Symbol.for("react.forward_ref"),m$=Symbol.for("react.suspense"),g$=Symbol.for("react.suspense_list"),t0=Symbol.for("react.memo"),Ui=Symbol.for("react.lazy"),w_=Symbol.for("react.offscreen"),Dd=Symbol.iterator;function Ua(e){return e===null||typeof e!="object"?null:(e=Dd&&e[Dd]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,dc;function rl(e){if(dc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);dc=t&&t[1]||""}return`
35
- `+dc+e}var hc=!1;function pc(e,t){if(!e||hc)return"";hc=!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{hc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rl(e):""}function ry(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=pc(e.type,!1),e;case 11:return e=pc(e.type.render,!1),e;case 1:return e=pc(e.type,!0),e;default:return""}}function v$(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 Xs:return"Fragment";case Ks:return"Portal";case _$:return"Profiler";case Of:return"StrictMode";case m$:return"Suspense";case g$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x_:return(e.displayName||"Context")+".Consumer";case b_:return(e._context.displayName||"Context")+".Provider";case e0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t0:return t=e.displayName||null,t!==null?t:v$(e.type)||"Memo";case Ui:t=e._payload,e=e._init;try{return v$(e(t))}catch{}}return null}function ny(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 v$(t);case 8:return t===Of?"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 ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function k_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iy(e){var t=k_(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 to(e){e._valueTracker||(e._valueTracker=iy(e))}function S_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=k_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ho(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 y$(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ld(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ns(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 A_(e,t){t=t.checked,t!=null&&Jf(e,"checked",t,!1)}function b$(e,t){A_(e,t);var r=ns(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")?x$(e,t.type,r):t.hasOwnProperty("defaultValue")&&x$(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fd(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 x$(e,t,r){(t!=="number"||Ho(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var nl=Array.isArray;function ua(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=""+ns(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 w$(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ct(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Bd(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ct(92));if(nl(r)){if(1<r.length)throw Error(Ct(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ns(r)}}function E_(e,t){var r=ns(t.value),n=ns(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 jd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function C_(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 k$(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?C_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ro,T_=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(ro=ro||document.createElement("div"),ro.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ro.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cl={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},sy=["Webkit","ms","Moz","O"];Object.keys(cl).forEach(function(e){sy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cl[t]=cl[e]})});function z_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||cl.hasOwnProperty(e)&&cl[e]?(""+t).trim():t+"px"}function R_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=z_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var ay=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 S$(e,t){if(t){if(ay[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ct(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ct(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ct(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ct(62))}}function A$(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 E$=null;function r0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var C$=null,ca=null,$a=null;function Pd(e){if(e=Yl(e)){if(typeof C$!="function")throw Error(Ct(280));var t=e.stateNode;t&&(t=Cu(t),C$(e.stateNode,e.type,t))}}function N_(e){ca?$a?$a.push(e):$a=[e]:ca=e}function I_(){if(ca){var e=ca,t=$a;if($a=ca=null,Pd(e),t)for(e=0;e<t.length;e++)Pd(t[e])}}function q_(e,t){return e(t)}function M_(){}var _c=!1;function D_(e,t,r){if(_c)return e(t,r);_c=!0;try{return q_(e,t,r)}finally{_c=!1,(ca!==null||$a!==null)&&(M_(),I_())}}function kl(e,t){var r=e.stateNode;if(r===null)return null;var n=Cu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Ct(231,t,typeof r));return r}var T$=!1;if(Ai)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){T$=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{T$=!1}function ly(e,t,r,n,i,s,c,f,p){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(I){this.onError(I)}}var $l=!1,Vo=null,Wo=!1,z$=null,oy={onError:function(e){$l=!0,Vo=e}};function uy(e,t,r,n,i,s,c,f,p){$l=!1,Vo=null,ly.apply(oy,arguments)}function cy(e,t,r,n,i,s,c,f,p){if(uy.apply(this,arguments),$l){if($l){var h=Vo;$l=!1,Vo=null}else throw Error(Ct(198));Wo||(Wo=!0,z$=h)}}function Ls(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 L_(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 Ud(e){if(Ls(e)!==e)throw Error(Ct(188))}function $y(e){var t=e.alternate;if(!t){if(t=Ls(e),t===null)throw Error(Ct(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return Ud(i),e;if(s===n)return Ud(i),t;s=s.sibling}throw Error(Ct(188))}if(r.return!==n.return)r=i,n=s;else{for(var c=!1,f=i.child;f;){if(f===r){c=!0,r=i,n=s;break}if(f===n){c=!0,n=i,r=s;break}f=f.sibling}if(!c){for(f=s.child;f;){if(f===r){c=!0,r=s,n=i;break}if(f===n){c=!0,n=s,r=i;break}f=f.sibling}if(!c)throw Error(Ct(189))}}if(r.alternate!==n)throw Error(Ct(190))}if(r.tag!==3)throw Error(Ct(188));return r.stateNode.current===r?e:t}function F_(e){return e=$y(e),e!==null?B_(e):null}function B_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=B_(e);if(t!==null)return t;e=e.sibling}return null}var j_=zn.unstable_scheduleCallback,Hd=zn.unstable_cancelCallback,fy=zn.unstable_shouldYield,dy=zn.unstable_requestPaint,Ar=zn.unstable_now,hy=zn.unstable_getCurrentPriorityLevel,n0=zn.unstable_ImmediatePriority,P_=zn.unstable_UserBlockingPriority,Yo=zn.unstable_NormalPriority,py=zn.unstable_LowPriority,U_=zn.unstable_IdlePriority,ku=null,$i=null;function _y(e){if($i&&typeof $i.onCommitFiberRoot=="function")try{$i.onCommitFiberRoot(ku,e,void 0,(e.current.flags&128)===128)}catch{}}var ei=Math.clz32?Math.clz32:vy,my=Math.log,gy=Math.LN2;function vy(e){return e>>>=0,e===0?32:31-(my(e)/gy|0)|0}var no=64,io=4194304;function il(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 Go(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=il(f):(s&=c,s!==0&&(n=il(s)))}else c=r&~i,c!==0?n=il(c):s!==0&&(n=il(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 yy(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 by(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]=yy(f,t)):p<=t&&(e.expiredLanes|=f),s&=~f}}function R$(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function H_(){var e=no;return no<<=1,!(no&4194240)&&(no=64),e}function mc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Vl(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 xy(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 i0(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 V_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var W_,s0,Y_,G_,K_,N$=!1,so=[],Xi=null,Qi=null,Zi=null,Sl=new Map,Al=new Map,Vi=[],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 Vd(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Al.delete(t.pointerId)}}function Va(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=Yl(t),t!==null&&s0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ky(e,t,r,n,i){switch(t){case"focusin":return Xi=Va(Xi,e,t,r,n,i),!0;case"dragenter":return Qi=Va(Qi,e,t,r,n,i),!0;case"mouseover":return Zi=Va(Zi,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return Sl.set(s,Va(Sl.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Al.set(s,Va(Al.get(s)||null,e,t,r,n,i)),!0}return!1}function X_(e){var t=ws(e.target);if(t!==null){var r=Ls(t);if(r!==null){if(t=r.tag,t===13){if(t=L_(r),t!==null){e.blockedOn=t,K_(e.priority,function(){Y_(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 To(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=I$(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);E$=n,r.target.dispatchEvent(n),E$=null}else return t=Yl(r),t!==null&&s0(t),e.blockedOn=r,!1;t.shift()}return!0}function Wd(e,t,r){To(e)&&r.delete(t)}function Sy(){N$=!1,Xi!==null&&To(Xi)&&(Xi=null),Qi!==null&&To(Qi)&&(Qi=null),Zi!==null&&To(Zi)&&(Zi=null),Sl.forEach(Wd),Al.forEach(Wd)}function Wa(e,t){e.blockedOn===t&&(e.blockedOn=null,N$||(N$=!0,zn.unstable_scheduleCallback(zn.unstable_NormalPriority,Sy)))}function El(e){function t(i){return Wa(i,e)}if(0<so.length){Wa(so[0],e);for(var r=1;r<so.length;r++){var n=so[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xi!==null&&Wa(Xi,e),Qi!==null&&Wa(Qi,e),Zi!==null&&Wa(Zi,e),Sl.forEach(t),Al.forEach(t),r=0;r<Vi.length;r++)n=Vi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Vi.length&&(r=Vi[0],r.blockedOn===null);)X_(r),r.blockedOn===null&&Vi.shift()}var fa=Ri.ReactCurrentBatchConfig,Ko=!0;function Ay(e,t,r,n){var i=lr,s=fa.transition;fa.transition=null;try{lr=1,a0(e,t,r,n)}finally{lr=i,fa.transition=s}}function Ey(e,t,r,n){var i=lr,s=fa.transition;fa.transition=null;try{lr=4,a0(e,t,r,n)}finally{lr=i,fa.transition=s}}function a0(e,t,r,n){if(Ko){var i=I$(e,t,r,n);if(i===null)Ec(e,t,n,Xo,r),Vd(e,n);else if(ky(i,e,t,r,n))n.stopPropagation();else if(Vd(e,n),t&4&&-1<wy.indexOf(e)){for(;i!==null;){var s=Yl(i);if(s!==null&&W_(s),s=I$(e,t,r,n),s===null&&Ec(e,t,n,Xo,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Ec(e,t,n,null,r)}}var Xo=null;function I$(e,t,r,n){if(Xo=null,e=r0(n),e=ws(e),e!==null)if(t=Ls(e),t===null)e=null;else if(r=t.tag,r===13){if(e=L_(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 Xo=e,null}function Q_(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(hy()){case n0:return 1;case P_:return 4;case Yo:case py:return 16;case U_:return 536870912;default:return 16}default:return 16}}var Yi=null,l0=null,zo=null;function Z_(){if(zo)return zo;var e,t=l0,r=t.length,n,i="value"in Yi?Yi.value:Yi.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 zo=i.slice(e,1<n?1-n:void 0)}function Ro(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 ao(){return!0}function Yd(){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)?ao:Yd,this.isPropagationStopped=Yd,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=ao)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ao)},persist:function(){},isPersistent:ao}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},o0=In(Ta),Wl=br({},Ta,{view:0,detail:0}),Cy=In(Wl),gc,vc,Ya,Su=br({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:u0,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!==Ya&&(Ya&&e.type==="mousemove"?(gc=e.screenX-Ya.screenX,vc=e.screenY-Ya.screenY):vc=gc=0,Ya=e),gc)},movementY:function(e){return"movementY"in e?e.movementY:vc}}),Gd=In(Su),Ty=br({},Su,{dataTransfer:0}),zy=In(Ty),Ry=br({},Wl,{relatedTarget:0}),yc=In(Ry),Ny=br({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),Iy=In(Ny),qy=br({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),My=In(qy),Dy=br({},Ta,{data:0}),Kd=In(Dy),Ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fy={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"},By={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=By[e])?!!t[e]:!1}function u0(){return jy}var Py=br({},Wl,{key:function(e){if(e.key){var t=Ly[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:u0,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uy=In(Py),Hy=br({},Su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xd=In(Hy),Vy=br({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:u0}),Wy=In(Vy),Yy=br({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=In(Yy),Ky=br({},Su,{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}),Xy=In(Ky),Qy=[9,13,27,32],c0=Ai&&"CompositionEvent"in window,fl=null;Ai&&"documentMode"in document&&(fl=document.documentMode);var Zy=Ai&&"TextEvent"in window&&!fl,J_=Ai&&(!c0||fl&&8<fl&&11>=fl),Qd=" ",Zd=!1;function O_(e,t){switch(e){case"keyup":return Qy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qs=!1;function Jy(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(Zd=!0,Qd);case"textInput":return e=t.data,e===Qd&&Zd?null:e;default:return null}}function Oy(e,t){if(Qs)return e==="compositionend"||!c0&&O_(e,t)?(e=Z_(),zo=l0=Yi=null,Qs=!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 J_&&t.locale!=="ko"?null:t.data;default:return null}}var e2={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 Jd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e2[e.type]:t==="textarea"}function tm(e,t,r,n){N_(n),t=Qo(t,"onChange"),0<t.length&&(r=new o0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var dl=null,Cl=null;function t2(e){fm(e,0)}function Au(e){var t=Os(e);if(S_(t))return e}function r2(e,t){if(e==="change")return t}var rm=!1;if(Ai){var bc;if(Ai){var xc="oninput"in document;if(!xc){var Od=document.createElement("div");Od.setAttribute("oninput","return;"),xc=typeof Od.oninput=="function"}bc=xc}else bc=!1;rm=bc&&(!document.documentMode||9<document.documentMode)}function eh(){dl&&(dl.detachEvent("onpropertychange",nm),Cl=dl=null)}function nm(e){if(e.propertyName==="value"&&Au(Cl)){var t=[];tm(t,Cl,e,r0(e)),D_(t2,t)}}function n2(e,t,r){e==="focusin"?(eh(),dl=t,Cl=r,dl.attachEvent("onpropertychange",nm)):e==="focusout"&&eh()}function i2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Au(Cl)}function s2(e,t){if(e==="click")return Au(t)}function a2(e,t){if(e==="input"||e==="change")return Au(t)}function l2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ni=typeof Object.is=="function"?Object.is:l2;function Tl(e,t){if(ni(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(!p$.call(t,i)||!ni(e[i],t[i]))return!1}return!0}function th(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rh(e,t){var r=th(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=th(r)}}function im(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?im(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sm(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ho(e.document)}return t}function $0(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 o2(e){var t=sm(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&im(r.ownerDocument.documentElement,r)){if(n!==null&&$0(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=rh(r,s);var c=rh(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 u2=Ai&&"documentMode"in document&&11>=document.documentMode,Zs=null,q$=null,hl=null,M$=!1;function nh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;M$||Zs==null||Zs!==Ho(n)||(n=Zs,"selectionStart"in n&&$0(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}),hl&&Tl(hl,n)||(hl=n,n=Qo(q$,"onSelect"),0<n.length&&(t=new o0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Zs)))}function lo(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Js={animationend:lo("Animation","AnimationEnd"),animationiteration:lo("Animation","AnimationIteration"),animationstart:lo("Animation","AnimationStart"),transitionend:lo("Transition","TransitionEnd")},wc={},am={};Ai&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete Js.animationend.animation,delete Js.animationiteration.animation,delete Js.animationstart.animation),"TransitionEvent"in window||delete Js.transitionend.transition);function Eu(e){if(wc[e])return wc[e];if(!Js[e])return e;var t=Js[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in am)return wc[e]=t[r];return e}var lm=Eu("animationend"),om=Eu("animationiteration"),um=Eu("animationstart"),cm=Eu("transitionend"),$m=new Map,ih="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 $s(e,t){$m.set(e,t),Ds(t,[e])}for(var kc=0;kc<ih.length;kc++){var Sc=ih[kc],c2=Sc.toLowerCase(),$2=Sc[0].toUpperCase()+Sc.slice(1);$s(c2,"on"+$2)}$s(lm,"onAnimationEnd");$s(om,"onAnimationIteration");$s(um,"onAnimationStart");$s("dblclick","onDoubleClick");$s("focusin","onFocus");$s("focusout","onBlur");$s(cm,"onTransitionEnd");ma("onMouseEnter",["mouseout","mouseover"]);ma("onMouseLeave",["mouseout","mouseover"]);ma("onPointerEnter",["pointerout","pointerover"]);ma("onPointerLeave",["pointerout","pointerover"]);Ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sl="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(" "),f2=new Set("cancel close invalid load scroll toggle".split(" ").concat(sl));function sh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,cy(n,t,void 0,e),e.currentTarget=null}function fm(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;sh(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;sh(i,f,h),s=p}}}if(Wo)throw e=z$,Wo=!1,z$=null,e}function cr(e,t){var r=t[j$];r===void 0&&(r=t[j$]=new Set);var n=e+"__bubble";r.has(n)||(dm(t,e,2,!1),r.add(n))}function Ac(e,t,r){var n=0;t&&(n|=4),dm(r,e,n,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function zl(e){if(!e[oo]){e[oo]=!0,y_.forEach(function(r){r!=="selectionchange"&&(f2.has(r)||Ac(r,!1,e),Ac(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,Ac("selectionchange",!1,t))}}function dm(e,t,r,n){switch(Q_(t)){case 1:var i=Ay;break;case 4:i=Ey;break;default:i=a0}r=i.bind(null,t,r,e),i=void 0,!T$||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 Ec(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=ws(f),c===null)return;if(p=c.tag,p===5||p===6){n=s=c;continue e}f=f.parentNode}}n=n.return}D_(function(){var h=s,I=r0(r),L=[];e:{var H=$m.get(e);if(H!==void 0){var pe=o0,be=e;switch(e){case"keypress":if(Ro(r)===0)break e;case"keydown":case"keyup":pe=Uy;break;case"focusin":be="focus",pe=yc;break;case"focusout":be="blur",pe=yc;break;case"beforeblur":case"afterblur":pe=yc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Wy;break;case lm:case om:case um:pe=Iy;break;case cm:pe=Gy;break;case"scroll":pe=Cy;break;case"wheel":pe=Xy;break;case"copy":case"cut":case"paste":pe=My;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Xd}var re=(t&4)!==0,W=!re&&e==="scroll",X=re?H!==null?H+"Capture":null:H;re=[];for(var ge=h,se;ge!==null;){se=ge;var me=se.stateNode;if(se.tag===5&&me!==null&&(se=me,X!==null&&(me=kl(ge,X),me!=null&&re.push(Rl(ge,me,se)))),W)break;ge=ge.return}0<re.length&&(H=new pe(H,be,null,r,I),L.push({event:H,listeners:re}))}}if(!(t&7)){e:{if(H=e==="mouseover"||e==="pointerover",pe=e==="mouseout"||e==="pointerout",H&&r!==E$&&(be=r.relatedTarget||r.fromElement)&&(ws(be)||be[Ei]))break e;if((pe||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,pe?(be=r.relatedTarget||r.toElement,pe=h,be=be?ws(be):null,be!==null&&(W=Ls(be),be!==W||be.tag!==5&&be.tag!==6)&&(be=null)):(pe=null,be=h),pe!==be)){if(re=Gd,me="onMouseLeave",X="onMouseEnter",ge="mouse",(e==="pointerout"||e==="pointerover")&&(re=Xd,me="onPointerLeave",X="onPointerEnter",ge="pointer"),W=pe==null?H:Os(pe),se=be==null?H:Os(be),H=new re(me,ge+"leave",pe,r,I),H.target=W,H.relatedTarget=se,me=null,ws(I)===h&&(re=new re(X,ge+"enter",be,r,I),re.target=se,re.relatedTarget=W,me=re),W=me,pe&&be)t:{for(re=pe,X=be,ge=0,se=re;se;se=Vs(se))ge++;for(se=0,me=X;me;me=Vs(me))se++;for(;0<ge-se;)re=Vs(re),ge--;for(;0<se-ge;)X=Vs(X),se--;for(;ge--;){if(re===X||X!==null&&re===X.alternate)break t;re=Vs(re),X=Vs(X)}re=null}else re=null;pe!==null&&ah(L,H,pe,re,!1),be!==null&&W!==null&&ah(L,W,be,re,!0)}}e:{if(H=h?Os(h):window,pe=H.nodeName&&H.nodeName.toLowerCase(),pe==="select"||pe==="input"&&H.type==="file")var J=r2;else if(Jd(H))if(rm)J=a2;else{J=i2;var xe=n2}else(pe=H.nodeName)&&pe.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(J=s2);if(J&&(J=J(e,h))){tm(L,J,r,I);break e}xe&&xe(e,H,h),e==="focusout"&&(xe=H._wrapperState)&&xe.controlled&&H.type==="number"&&x$(H,"number",H.value)}switch(xe=h?Os(h):window,e){case"focusin":(Jd(xe)||xe.contentEditable==="true")&&(Zs=xe,q$=h,hl=null);break;case"focusout":hl=q$=Zs=null;break;case"mousedown":M$=!0;break;case"contextmenu":case"mouseup":case"dragend":M$=!1,nh(L,r,I);break;case"selectionchange":if(u2)break;case"keydown":case"keyup":nh(L,r,I)}var fe;if(c0)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 Qs?O_(e,r)&&(Ae="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ae="onCompositionStart");Ae&&(J_&&r.locale!=="ko"&&(Qs||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Qs&&(fe=Z_()):(Yi=I,l0="value"in Yi?Yi.value:Yi.textContent,Qs=!0)),xe=Qo(h,Ae),0<xe.length&&(Ae=new Kd(Ae,e,null,r,I),L.push({event:Ae,listeners:xe}),fe?Ae.data=fe:(fe=em(r),fe!==null&&(Ae.data=fe)))),(fe=Zy?Jy(e,r):Oy(e,r))&&(h=Qo(h,"onBeforeInput"),0<h.length&&(I=new Kd("onBeforeInput","beforeinput",null,r,I),L.push({event:I,listeners:h}),I.data=fe))}fm(L,t)})}function Rl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Qo(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=kl(e,r),s!=null&&n.unshift(Rl(e,s,i)),s=kl(e,t),s!=null&&n.push(Rl(e,s,i))),e=e.return}return n}function Vs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ah(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=kl(r,s),p!=null&&c.unshift(Rl(r,p,f))):i||(p=kl(r,s),p!=null&&c.push(Rl(r,p,f)))),r=r.return}c.length!==0&&e.push({event:t,listeners:c})}var d2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function lh(e){return(typeof e=="string"?e:""+e).replace(d2,`
39
- `).replace(h2,"")}function uo(e,t,r){if(t=lh(t),lh(e)!==t&&r)throw Error(Ct(425))}function Zo(){}var D$=null,L$=null;function F$(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 B$=typeof setTimeout=="function"?setTimeout:void 0,p2=typeof clearTimeout=="function"?clearTimeout:void 0,oh=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof oh<"u"?function(e){return oh.resolve(null).then(e).catch(m2)}:B$;function m2(e){setTimeout(function(){throw e})}function Cc(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),El(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);El(t)}function Ji(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 uh(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 za=Math.random().toString(36).slice(2),oi="__reactFiber$"+za,Nl="__reactProps$"+za,Ei="__reactContainer$"+za,j$="__reactEvents$"+za,g2="__reactListeners$"+za,v2="__reactHandles$"+za;function ws(e){var t=e[oi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ei]||r[oi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=uh(e);e!==null;){if(r=e[oi])return r;e=uh(e)}return t}e=r,r=e.parentNode}return null}function Yl(e){return e=e[oi]||e[Ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Os(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ct(33))}function Cu(e){return e[Nl]||null}var P$=[],ea=-1;function fs(e){return{current:e}}function fr(e){0>ea||(e.current=P$[ea],P$[ea]=null,ea--)}function ur(e,t){ea++,P$[ea]=e.current,e.current=t}var is={},en=fs(is),gn=fs(!1),Cs=is;function ga(e,t){var r=e.type.contextTypes;if(!r)return is;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 vn(e){return e=e.childContextTypes,e!=null}function Jo(){fr(gn),fr(en)}function ch(e,t,r){if(en.current!==is)throw Error(Ct(168));ur(en,t),ur(gn,r)}function hm(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(Ct(108,ny(e)||"Unknown",i));return br({},r,n)}function Oo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||is,Cs=en.current,ur(en,e),ur(gn,gn.current),!0}function $h(e,t,r){var n=e.stateNode;if(!n)throw Error(Ct(169));r?(e=hm(e,t,Cs),n.__reactInternalMemoizedMergedChildContext=e,fr(gn),fr(en),ur(en,e)):fr(gn),ur(gn,r)}var yi=null,Tu=!1,Tc=!1;function pm(e){yi===null?yi=[e]:yi.push(e)}function y2(e){Tu=!0,pm(e)}function ds(){if(!Tc&&yi!==null){Tc=!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,Tu=!1}catch(i){throw yi!==null&&(yi=yi.slice(e+1)),j_(n0,ds),i}finally{lr=t,Tc=!1}}return null}var ta=[],ra=0,eu=null,tu=0,Fn=[],Bn=0,Ts=null,xi=1,wi="";function vs(e,t){ta[ra++]=tu,ta[ra++]=eu,eu=e,tu=t}function _m(e,t,r){Fn[Bn++]=xi,Fn[Bn++]=wi,Fn[Bn++]=Ts,Ts=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 f0(e){e.return!==null&&(vs(e,1),_m(e,1,0))}function d0(e){for(;e===eu;)eu=ta[--ra],ta[ra]=null,tu=ta[--ra],ta[ra]=null;for(;e===Ts;)Ts=Fn[--Bn],Fn[Bn]=null,wi=Fn[--Bn],Fn[Bn]=null,xi=Fn[--Bn],Fn[Bn]=null}var En=null,Sn=null,hr=!1,Zn=null;function mm(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 fh(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,En=e,Sn=Ji(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,En=e,Sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ts!==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,En=e,Sn=null,!0):!1;default:return!1}}function U$(e){return(e.mode&1)!==0&&(e.flags&128)===0}function H$(e){if(hr){var t=Sn;if(t){var r=t;if(!fh(e,t)){if(U$(e))throw Error(Ct(418));t=Ji(r.nextSibling);var n=En;t&&fh(e,t)?mm(n,r):(e.flags=e.flags&-4097|2,hr=!1,En=e)}}else{if(U$(e))throw Error(Ct(418));e.flags=e.flags&-4097|2,hr=!1,En=e}}}function dh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;En=e}function co(e){if(e!==En)return!1;if(!hr)return dh(e),hr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!F$(e.type,e.memoizedProps)),t&&(t=Sn)){if(U$(e))throw gm(),Error(Ct(418));for(;t;)mm(e,t),t=Ji(t.nextSibling)}if(dh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ct(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=Ji(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=En?Ji(e.stateNode.nextSibling):null;return!0}function gm(){for(var e=Sn;e;)e=Ji(e.nextSibling)}function va(){Sn=En=null,hr=!1}function h0(e){Zn===null?Zn=[e]:Zn.push(e)}var b2=Ri.ReactCurrentBatchConfig;function Ga(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Ct(309));var n=r.stateNode}if(!n)throw Error(Ct(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(c){var f=i.refs;c===null?delete f[s]:f[s]=c},t._stringRef=s,t)}if(typeof e!="string")throw Error(Ct(284));if(!r._owner)throw Error(Ct(290,e))}return e}function $o(e,t){throw e=Object.prototype.toString.call(t),Error(Ct(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hh(e){var t=e._init;return t(e._payload)}function vm(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=rs(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=Dc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function p(X,ge,se,me){var J=se.type;return J===Xs?I(X,ge,se.props.children,me,se.key):ge!==null&&(ge.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ui&&hh(J)===ge.type)?(me=i(ge,se.props),me.ref=Ga(X,ge,se),me.return=X,me):(me=Fo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ga(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=Lc(se,X.mode,me),ge.return=X,ge):(ge=i(ge,se.children||[]),ge.return=X,ge)}function I(X,ge,se,me,J){return ge===null||ge.tag!==7?(ge=Es(se,X.mode,me,J),ge.return=X,ge):(ge=i(ge,se),ge.return=X,ge)}function L(X,ge,se){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return ge=Dc(""+ge,X.mode,se),ge.return=X,ge;if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case eo:return se=Fo(ge.type,ge.key,ge.props,null,X.mode,se),se.ref=Ga(X,null,ge),se.return=X,se;case Ks:return ge=Lc(ge,X.mode,se),ge.return=X,ge;case Ui:var me=ge._init;return L(X,me(ge._payload),se)}if(nl(ge)||Ua(ge))return ge=Es(ge,X.mode,se,null),ge.return=X,ge;$o(X,ge)}return null}function H(X,ge,se,me){var J=ge!==null?ge.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return J!==null?null:f(X,ge,""+se,me);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case eo:return se.key===J?p(X,ge,se,me):null;case Ks:return se.key===J?h(X,ge,se,me):null;case Ui:return J=se._init,H(X,ge,J(se._payload),me)}if(nl(se)||Ua(se))return J!==null?null:I(X,ge,se,me,null);$o(X,se)}return null}function pe(X,ge,se,me,J){if(typeof me=="string"&&me!==""||typeof me=="number")return X=X.get(se)||null,f(ge,X,""+me,J);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case eo:return X=X.get(me.key===null?se:me.key)||null,p(ge,X,me,J);case Ks:return X=X.get(me.key===null?se:me.key)||null,h(ge,X,me,J);case Ui:var xe=me._init;return pe(X,ge,se,xe(me._payload),J)}if(nl(me)||Ua(me))return X=X.get(se)||null,I(ge,X,me,J,null);$o(ge,me)}return null}function be(X,ge,se,me){for(var J=null,xe=null,fe=ge,Ae=ge=0,O=null;fe!==null&&Ae<se.length;Ae++){fe.index>Ae?(O=fe,fe=null):O=fe.sibling;var Ee=H(X,fe,se[Ae],me);if(Ee===null){fe===null&&(fe=O);break}e&&fe&&Ee.alternate===null&&t(X,fe),ge=s(Ee,ge,Ae),xe===null?J=Ee:xe.sibling=Ee,xe=Ee,fe=O}if(Ae===se.length)return r(X,fe),hr&&vs(X,Ae),J;if(fe===null){for(;Ae<se.length;Ae++)fe=L(X,se[Ae],me),fe!==null&&(ge=s(fe,ge,Ae),xe===null?J=fe:xe.sibling=fe,xe=fe);return hr&&vs(X,Ae),J}for(fe=n(X,fe);Ae<se.length;Ae++)O=pe(fe,X,Ae,se[Ae],me),O!==null&&(e&&O.alternate!==null&&fe.delete(O.key===null?Ae:O.key),ge=s(O,ge,Ae),xe===null?J=O:xe.sibling=O,xe=O);return e&&fe.forEach(function(ce){return t(X,ce)}),hr&&vs(X,Ae),J}function re(X,ge,se,me){var J=Ua(se);if(typeof J!="function")throw Error(Ct(150));if(se=J.call(se),se==null)throw Error(Ct(151));for(var xe=J=null,fe=ge,Ae=ge=0,O=null,Ee=se.next();fe!==null&&!Ee.done;Ae++,Ee=se.next()){fe.index>Ae?(O=fe,fe=null):O=fe.sibling;var ce=H(X,fe,Ee.value,me);if(ce===null){fe===null&&(fe=O);break}e&&fe&&ce.alternate===null&&t(X,fe),ge=s(ce,ge,Ae),xe===null?J=ce:xe.sibling=ce,xe=ce,fe=O}if(Ee.done)return r(X,fe),hr&&vs(X,Ae),J;if(fe===null){for(;!Ee.done;Ae++,Ee=se.next())Ee=L(X,Ee.value,me),Ee!==null&&(ge=s(Ee,ge,Ae),xe===null?J=Ee:xe.sibling=Ee,xe=Ee);return hr&&vs(X,Ae),J}for(fe=n(X,fe);!Ee.done;Ae++,Ee=se.next())Ee=pe(fe,X,Ae,Ee.value,me),Ee!==null&&(e&&Ee.alternate!==null&&fe.delete(Ee.key===null?Ae:Ee.key),ge=s(Ee,ge,Ae),xe===null?J=Ee:xe.sibling=Ee,xe=Ee);return e&&fe.forEach(function(w){return t(X,w)}),hr&&vs(X,Ae),J}function W(X,ge,se,me){if(typeof se=="object"&&se!==null&&se.type===Xs&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case eo:e:{for(var J=se.key,xe=ge;xe!==null;){if(xe.key===J){if(J=se.type,J===Xs){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===J||typeof J=="object"&&J!==null&&J.$$typeof===Ui&&hh(J)===xe.type){r(X,xe.sibling),ge=i(xe,se.props),ge.ref=Ga(X,xe,se),ge.return=X,X=ge;break e}r(X,xe);break}else t(X,xe);xe=xe.sibling}se.type===Xs?(ge=Es(se.props.children,X.mode,me,se.key),ge.return=X,X=ge):(me=Fo(se.type,se.key,se.props,null,X.mode,me),me.ref=Ga(X,ge,se),me.return=X,X=me)}return c(X);case Ks: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=Lc(se,X.mode,me),ge.return=X,X=ge}return c(X);case Ui:return xe=se._init,W(X,ge,xe(se._payload),me)}if(nl(se))return be(X,ge,se,me);if(Ua(se))return re(X,ge,se,me);$o(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=Dc(se,X.mode,me),ge.return=X,X=ge),c(X)):r(X,ge)}return W}var ya=vm(!0),ym=vm(!1),ru=fs(null),nu=null,na=null,p0=null;function _0(){p0=na=nu=null}function m0(e){var t=ru.current;fr(ru),e._currentValue=t}function V$(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 da(e,t){nu=e,p0=na=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(p0!==e)if(e={context:e,memoizedValue:t,next:null},na===null){if(nu===null)throw Error(Ct(308));na=e,nu.dependencies={lanes:0,firstContext:e}}else na=na.next=e;return t}var ks=null;function g0(e){ks===null?ks=[e]:ks.push(e)}function bm(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,g0(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 Hi=!1;function v0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xm(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 Oi(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,g0(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ci(e,r)}function No(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,i0(e,r)}}function ph(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 iu(e,t,r,n){var i=e.updateQueue;Hi=!1;var s=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var p=f,h=p.next;p.next=null,c===null?s=h:c.next=h,c=p;var I=e.alternate;I!==null&&(I=I.updateQueue,f=I.lastBaseUpdate,f!==c&&(f===null?I.firstBaseUpdate=h:f.next=h,I.lastBaseUpdate=p))}if(s!==null){var L=i.baseState;c=0,I=h=p=null,f=s;do{var H=f.lane,pe=f.eventTime;if((n&H)===H){I!==null&&(I=I.next={eventTime:pe,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var be=e,re=f;switch(H=t,pe=r,re.tag){case 1:if(be=re.payload,typeof be=="function"){L=be.call(pe,L,H);break e}L=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=re.payload,H=typeof be=="function"?be.call(pe,L,H):be,H==null)break e;L=br({},L,H);break e;case 2:Hi=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,H=i.effects,H===null?i.effects=[f]:H.push(f))}else pe={eventTime:pe,lane:H,tag:f.tag,payload:f.payload,callback:f.callback,next:null},I===null?(h=I=pe,p=L):I=I.next=pe,c|=H;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;H=f,f=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);if(I===null&&(p=L),i.baseState=p,i.firstBaseUpdate=h,i.lastBaseUpdate=I,t=i.shared.interleaved,t!==null){i=t;do c|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Rs|=c,e.lanes=c,e.memoizedState=L}}function _h(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(Ct(191,i));i.call(n)}}}var Gl={},fi=fs(Gl),Il=fs(Gl),ql=fs(Gl);function Ss(e){if(e===Gl)throw Error(Ct(174));return e}function y0(e,t){switch(ur(ql,t),ur(Il,e),ur(fi,Gl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=k$(t,e)}fr(fi),ur(fi,t)}function ba(){fr(fi),fr(Il),fr(ql)}function wm(e){Ss(ql.current);var t=Ss(fi.current),r=k$(t,e.type);t!==r&&(ur(Il,e),ur(fi,r))}function b0(e){Il.current===e&&(fr(fi),fr(Il))}var gr=fs(0);function su(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 zc=[];function x0(){for(var e=0;e<zc.length;e++)zc[e]._workInProgressVersionPrimary=null;zc.length=0}var Io=Ri.ReactCurrentDispatcher,Rc=Ri.ReactCurrentBatchConfig,zs=0,yr=null,Mr=null,jr=null,au=!1,pl=!1,Ml=0,x2=0;function Xr(){throw Error(Ct(321))}function w0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ni(e[r],t[r]))return!1;return!0}function k0(e,t,r,n,i,s){if(zs=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Io.current=e===null||e.memoizedState===null?A2:E2,e=r(n,i),pl){s=0;do{if(pl=!1,Ml=0,25<=s)throw Error(Ct(301));s+=1,jr=Mr=null,t.updateQueue=null,Io.current=C2,e=r(n,i)}while(pl)}if(Io.current=lu,t=Mr!==null&&Mr.next!==null,zs=0,jr=Mr=yr=null,au=!1,t)throw Error(Ct(300));return e}function S0(){var e=Ml!==0;return Ml=0,e}function ai(){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(Ct(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 Dl(e,t){return typeof t=="function"?t(e):t}function Nc(e){var t=Vn(),r=t.queue;if(r===null)throw Error(Ct(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 I=h.lane;if((zs&I)===I)p!==null&&(p=p.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),n=h.hasEagerState?h.eagerState:e(n,h.action);else{var L={lane:I,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};p===null?(f=p=L,c=n):p=p.next=L,yr.lanes|=I,Rs|=I}h=h.next}while(h!==null&&h!==s);p===null?c=n:p.next=f,ni(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,Rs|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ic(e){var t=Vn(),r=t.queue;if(r===null)throw Error(Ct(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var c=i=i.next;do s=e(s,c.action),c=c.next;while(c!==i);ni(s,t.memoizedState)||(mn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function km(){}function Sm(e,t){var r=yr,n=Vn(),i=t(),s=!ni(n.memoizedState,i);if(s&&(n.memoizedState=i,mn=!0),n=n.queue,A0(Cm.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||jr!==null&&jr.memoizedState.tag&1){if(r.flags|=2048,Ll(9,Em.bind(null,r,n,i,t),void 0,null),Pr===null)throw Error(Ct(349));zs&30||Am(r,t,i)}return i}function Am(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 Em(e,t,r,n){t.value=r,t.getSnapshot=n,Tm(t)&&zm(e)}function Cm(e,t,r){return r(function(){Tm(t)&&zm(e)})}function Tm(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ni(e,r)}catch{return!0}}function zm(e){var t=Ci(e,1);t!==null&&ti(t,e,1,-1)}function mh(e){var t=ai();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dl,lastRenderedState:e},t.queue=e,e=e.dispatch=S2.bind(null,yr,e),[t.memoizedState,e]}function Ll(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 Rm(){return Vn().memoizedState}function qo(e,t,r,n){var i=ai();yr.flags|=e,i.memoizedState=Ll(1|t,r,void 0,n===void 0?null:n)}function zu(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&&w0(n,c.deps)){i.memoizedState=Ll(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Ll(1|t,r,s,n)}function gh(e,t){return qo(8390656,8,e,t)}function A0(e,t){return zu(2048,8,e,t)}function Nm(e,t){return zu(4,2,e,t)}function Im(e,t){return zu(4,4,e,t)}function qm(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 Mm(e,t,r){return r=r!=null?r.concat([e]):null,zu(4,4,qm.bind(null,t,e),r)}function E0(){}function Dm(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&w0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Lm(e,t){var r=Vn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&w0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Fm(e,t,r){return zs&21?(ni(r,t)||(r=H_(),yr.lanes|=r,Rs|=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=Rc.transition;Rc.transition={};try{e(!1),t()}finally{lr=r,Rc.transition=n}}function Bm(){return Vn().memoizedState}function k2(e,t,r){var n=ts(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},jm(e))Pm(t,r);else if(r=bm(e,t,r,n),r!==null){var i=on();ti(r,e,n,i),Um(r,t,n)}}function S2(e,t,r){var n=ts(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(jm(e))Pm(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,ni(f,c)){var p=t.interleaved;p===null?(i.next=i,g0(t)):(i.next=p.next,p.next=i),t.interleaved=i;return}}catch{}finally{}r=bm(e,t,i,n),r!==null&&(i=on(),ti(r,e,n,i),Um(r,t,n))}}function jm(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function Pm(e,t){pl=au=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Um(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,i0(e,r)}}var lu={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},A2={readContext:Hn,useCallback:function(e,t){return ai().memoizedState=[e,t===void 0?null:t],e},useContext:Hn,useEffect:gh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,qo(4194308,4,qm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var r=ai();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ai();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=k2.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=ai();return e={current:e},t.memoizedState=e},useState:mh,useDebugValue:E0,useDeferredValue:function(e){return ai().memoizedState=e},useTransition:function(){var e=mh(!1),t=e[0];return e=w2.bind(null,e[1]),ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=ai();if(hr){if(r===void 0)throw Error(Ct(407));r=r()}else{if(r=t(),Pr===null)throw Error(Ct(349));zs&30||Am(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,gh(Cm.bind(null,n,s,e),[e]),n.flags|=2048,Ll(9,Em.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=ai(),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=Ml++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=x2++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},E2={readContext:Hn,useCallback:Dm,useContext:Hn,useEffect:A0,useImperativeHandle:Mm,useInsertionEffect:Nm,useLayoutEffect:Im,useMemo:Lm,useReducer:Nc,useRef:Rm,useState:function(){return Nc(Dl)},useDebugValue:E0,useDeferredValue:function(e){var t=Vn();return Fm(t,Mr.memoizedState,e)},useTransition:function(){var e=Nc(Dl)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:km,useSyncExternalStore:Sm,useId:Bm,unstable_isNewReconciler:!1},C2={readContext:Hn,useCallback:Dm,useContext:Hn,useEffect:A0,useImperativeHandle:Mm,useInsertionEffect:Nm,useLayoutEffect:Im,useMemo:Lm,useReducer:Ic,useRef:Rm,useState:function(){return Ic(Dl)},useDebugValue:E0,useDeferredValue:function(e){var t=Vn();return Mr===null?t.memoizedState=e:Fm(t,Mr.memoizedState,e)},useTransition:function(){var e=Ic(Dl)[0],t=Vn().memoizedState;return[e,t]},useMutableSource:km,useSyncExternalStore:Sm,useId:Bm,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 W$(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 Ru={isMounted:function(e){return(e=e._reactInternals)?Ls(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=on(),i=ts(e),s=ki(n,i);s.payload=t,r!=null&&(s.callback=r),t=Oi(e,s,i),t!==null&&(ti(t,e,i,n),No(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=on(),i=ts(e),s=ki(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Oi(e,s,i),t!==null&&(ti(t,e,i,n),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=on(),n=ts(e),i=ki(r,n);i.tag=2,t!=null&&(i.callback=t),t=Oi(e,i,n),t!==null&&(ti(t,e,n,r),No(t,e,n))}};function vh(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?!Tl(r,n)||!Tl(i,s):!0}function Hm(e,t,r){var n=!1,i=is,s=t.contextType;return typeof s=="object"&&s!==null?s=Hn(s):(i=vn(t)?Cs:en.current,n=t.contextTypes,s=(n=n!=null)?ga(e,i):is),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ru,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function yh(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&&Ru.enqueueReplaceState(t,t.state,null)}function Y$(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},v0(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Hn(s):(s=vn(t)?Cs:en.current,i.context=ga(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(W$(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&&Ru.enqueueReplaceState(i,i.state,null),iu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xa(e,t){try{var r="",n=t;do r+=ry(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 qc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function G$(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var T2=typeof WeakMap=="function"?WeakMap:Map;function Vm(e,t,r){r=ki(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){uu||(uu=!0,nf=n),G$(e,t)},r}function Wm(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(){G$(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){G$(e,t),typeof n!="function"&&(es===null?es=new Set([this]):es.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),r}function bh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new T2;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=H2.bind(null,e,t,r),t.then(e,e))}function xh(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 wh(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,Oi(r,t,1))),r.lanes|=1),e)}var z2=Ri.ReactCurrentOwner,mn=!1;function sn(e,t,r,n){t.child=e===null?ym(t,null,r,n):ya(t,e.child,r,n)}function kh(e,t,r,n,i){r=r.render;var s=t.ref;return da(t,i),n=k0(e,t,r,n,s,i),r=S0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ti(e,t,i)):(hr&&r&&f0(t),t.flags|=1,sn(e,t,n,i),t.child)}function Sh(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!M0(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,Ym(e,t,s,n,i)):(e=Fo(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:Tl,r(c,n)&&e.ref===t.ref)return Ti(e,t,i)}return t.flags|=1,e=rs(s,n),e.ref=t.ref,e.return=t,t.child=e}function Ym(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Tl(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 K$(e,t,r,n,i)}function Gm(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(sa,wn),wn|=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(sa,wn),wn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(sa,wn),wn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(sa,wn),wn|=n;return sn(e,t,i,r),t.child}function Km(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function K$(e,t,r,n,i){var s=vn(r)?Cs:en.current;return s=ga(t,s),da(t,i),r=k0(e,t,r,n,s,i),n=S0(),e!==null&&!mn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ti(e,t,i)):(hr&&n&&f0(t),t.flags|=1,sn(e,t,r,i),t.child)}function Ah(e,t,r,n,i){if(vn(r)){var s=!0;Oo(t)}else s=!1;if(da(t,i),t.stateNode===null)Mo(e,t),Hm(t,r,n),Y$(t,r,n,i),n=!0;else if(e===null){var c=t.stateNode,f=t.memoizedProps;c.props=f;var p=c.context,h=r.contextType;typeof h=="object"&&h!==null?h=Hn(h):(h=vn(r)?Cs:en.current,h=ga(t,h));var I=r.getDerivedStateFromProps,L=typeof I=="function"||typeof c.getSnapshotBeforeUpdate=="function";L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==n||p!==h)&&yh(t,c,n,h),Hi=!1;var H=t.memoizedState;c.state=H,iu(t,n,c,i),p=t.memoizedState,f!==n||H!==p||gn.current||Hi?(typeof I=="function"&&(W$(t,r,I,n),p=t.memoizedState),(f=Hi||vh(t,r,f,n,H,p,h))?(L||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,xm(e,t),f=t.memoizedProps,h=t.type===t.elementType?f:Xn(t.type,f),c.props=h,L=t.pendingProps,H=c.context,p=r.contextType,typeof p=="object"&&p!==null?p=Hn(p):(p=vn(r)?Cs:en.current,p=ga(t,p));var pe=r.getDerivedStateFromProps;(I=typeof pe=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==L||H!==p)&&yh(t,c,n,p),Hi=!1,H=t.memoizedState,c.state=H,iu(t,n,c,i);var be=t.memoizedState;f!==L||H!==be||gn.current||Hi?(typeof pe=="function"&&(W$(t,r,pe,n),be=t.memoizedState),(h=Hi||vh(t,r,h,n,H,be,p)||!1)?(I||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&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&H===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&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),n=!1)}return X$(e,t,r,n,s,i)}function X$(e,t,r,n,i,s){Km(e,t);var c=(t.flags&128)!==0;if(!n&&!c)return i&&$h(t,r,!1),Ti(e,t,s);n=t.stateNode,z2.current=t;var f=c&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&c?(t.child=ya(t,e.child,null,s),t.child=ya(t,null,f,s)):sn(e,t,f,s),t.memoizedState=n.state,i&&$h(t,r,!0),t.child}function Xm(e){var t=e.stateNode;t.pendingContext?ch(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ch(e,t.context,!1),y0(e,t.containerInfo)}function Eh(e,t,r,n,i){return va(),h0(i),t.flags|=256,sn(e,t,r,n),t.child}var Q$={dehydrated:null,treeContext:null,retryLane:0};function Z$(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qm(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 H$(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=qu(c,n,0,null),e=Es(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Z$(r),t.memoizedState=Q$,e):C0(t,c));if(i=e.memoizedState,i!==null&&(f=i.dehydrated,f!==null))return R2(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=rs(i,p),n.subtreeFlags=i.subtreeFlags&14680064),f!==null?s=rs(f,s):(s=Es(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?Z$(r):{baseLanes:c.baseLanes|r,cachePool:null,transitions:c.transitions},s.memoizedState=c,s.childLanes=e.childLanes&~r,t.memoizedState=Q$,n}return s=e.child,e=s.sibling,n=rs(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 C0(e,t){return t=qu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fo(e,t,r,n){return n!==null&&h0(n),ya(t,e.child,null,r),e=C0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function R2(e,t,r,n,i,s,c){if(r)return t.flags&256?(t.flags&=-257,n=qc(Error(Ct(422))),fo(e,t,c,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=qu({mode:"visible",children:n.children},i,0,null),s=Es(s,i,c,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&ya(t,e.child,null,c),t.child.memoizedState=Z$(c),t.memoizedState=Q$,s);if(!(t.mode&1))return fo(e,t,c,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var f=n.dgst;return n=f,s=Error(Ct(419)),n=qc(s,n,void 0),fo(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 q0(),n=qc(Error(Ct(421))),fo(e,t,c,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=V2.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Sn=Ji(i.nextSibling),En=t,hr=!0,Zn=null,e!==null&&(Fn[Bn++]=xi,Fn[Bn++]=wi,Fn[Bn++]=Ts,xi=e.id,wi=e.overflow,Ts=t),t=C0(t,n.children),t.flags|=4096,t)}function Ch(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),V$(e.return,t,r)}function Mc(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 Zm(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&&Ch(e,r,t);else if(e.tag===19)Ch(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&&su(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Mc(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&&su(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Mc(t,!0,r,null,s);break;case"together":Mc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mo(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),Rs|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ct(153));if(t.child!==null){for(e=t.child,r=rs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=rs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function N2(e,t,r){switch(t.tag){case 3:Xm(t),va();break;case 5:wm(t);break;case 1:vn(t.type)&&Oo(t);break;case 4:y0(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(ru,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?Qm(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 Zm(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,Gm(e,t,r)}return Ti(e,t,r)}var Jm,J$,Om,e1;Jm=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}};J$=function(){};Om=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ss(fi.current);var s=null;switch(r){case"input":i=y$(e,i),n=y$(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=w$(e,i),n=w$(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Zo)}S$(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"&&(xl.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"&&(xl.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)}};e1=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ka(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 I2(e,t,r){var n=t.pendingProps;switch(d0(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 vn(t.type)&&Jo(),Qr(t),null;case 3:return n=t.stateNode,ba(),fr(gn),fr(en),x0(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(co(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zn!==null&&(lf(Zn),Zn=null))),J$(e,t),Qr(t),null;case 5:b0(t);var i=Ss(ql.current);if(r=t.type,e!==null&&t.stateNode!=null)Om(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ct(166));return Qr(t),null}if(e=Ss(fi.current),co(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[oi]=t,n[Nl]=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<sl.length;i++)cr(sl[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":Ld(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":Bd(n,s),cr("invalid",n)}S$(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&&uo(n.textContent,f,e),i=["children",f]):typeof f=="number"&&n.textContent!==""+f&&(s.suppressHydrationWarning!==!0&&uo(n.textContent,f,e),i=["children",""+f]):xl.hasOwnProperty(c)&&f!=null&&c==="onScroll"&&cr("scroll",n)}switch(r){case"input":to(n),Fd(n,s,!0);break;case"textarea":to(n),jd(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=Zo)}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=C_(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[oi]=t,e[Nl]=n,Jm(e,t,!1,!1),t.stateNode=e;e:{switch(c=A$(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<sl.length;i++)cr(sl[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":Ld(e,n),i=y$(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":Bd(e,n),i=w$(e,n),cr("invalid",e);break;default:i=n}S$(r,i),f=i;for(s in f)if(f.hasOwnProperty(s)){var p=f[s];s==="style"?R_(e,p):s==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,p!=null&&T_(e,p)):s==="children"?typeof p=="string"?(r!=="textarea"||p!=="")&&wl(e,p):typeof p=="number"&&wl(e,""+p):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(xl.hasOwnProperty(s)?p!=null&&s==="onScroll"&&cr("scroll",e):p!=null&&Jf(e,s,p,c))}switch(r){case"input":to(e),Fd(e,n,!1);break;case"textarea":to(e),jd(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ns(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?ua(e,!!n.multiple,s,!1):n.defaultValue!=null&&ua(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Zo)}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)e1(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ct(166));if(r=Ss(ql.current),Ss(fi.current),co(t)){if(n=t.stateNode,r=t.memoizedProps,n[oi]=t,(s=n.nodeValue!==r)&&(e=En,e!==null))switch(e.tag){case 3:uo(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&uo(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[oi]=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&&Sn!==null&&t.mode&1&&!(t.flags&128))gm(),va(),t.flags|=98560,s=!1;else if(s=co(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Ct(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Ct(317));s[oi]=t}else va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qr(t),s=!1}else Zn!==null&&(lf(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):q0())),t.updateQueue!==null&&(t.flags|=4),Qr(t),null);case 4:return ba(),J$(e,t),e===null&&zl(t.stateNode.containerInfo),Qr(t),null;case 10:return m0(t.type._context),Qr(t),null;case 17:return vn(t.type)&&Jo(),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)Ka(s,!1);else{if(Dr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=su(e),c!==null){for(t.flags|=128,Ka(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()>wa&&(t.flags|=128,n=!0,Ka(s,!1),t.lanes=4194304)}else{if(!n)if(e=su(c),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ka(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!hr)return Qr(t),null}else 2*Ar()-s.renderingStartTime>wa&&r!==1073741824&&(t.flags|=128,n=!0,Ka(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 I0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?wn&1073741824&&(Qr(t),t.subtreeFlags&6&&(t.flags|=8192)):Qr(t),null;case 24:return null;case 25:return null}throw Error(Ct(156,t.tag))}function q2(e,t){switch(d0(t),t.tag){case 1:return vn(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ba(),fr(gn),fr(en),x0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return b0(t),null;case 13:if(fr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ct(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fr(gr),null;case 4:return ba(),null;case 10:return m0(t.type._context),null;case 22:case 23:return I0(),null;case 24:return null;default:return null}}var ho=!1,Zr=!1,M2=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function ia(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 O$(e,t,r){try{r()}catch(n){wr(e,t,n)}}var Th=!1;function D2(e,t){if(D$=Ko,e=sm(),$0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var c=0,f=-1,p=-1,h=0,I=0,L=e,H=null;t:for(;;){for(var pe;L!==r||i!==0&&L.nodeType!==3||(f=c+i),L!==s||n!==0&&L.nodeType!==3||(p=c+n),L.nodeType===3&&(c+=L.nodeValue.length),(pe=L.firstChild)!==null;)H=L,L=pe;for(;;){if(L===e)break t;if(H===r&&++h===i&&(f=c),H===s&&++I===n&&(p=c),(pe=L.nextSibling)!==null)break;L=H,H=L.parentNode}L=pe}r=f===-1||p===-1?null:{start:f,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(L$={focusedElem:e,selectionRange:r},Ko=!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 re=be.memoizedProps,W=be.memoizedState,X=t.stateNode,ge=X.getSnapshotBeforeUpdate(t.elementType===t.type?re:Xn(t.type,re),W);X.__reactInternalSnapshotBeforeUpdate=ge}break;case 3:var se=t.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ct(163))}}catch(me){wr(t,t.return,me)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return be=Th,Th=!1,be}function _l(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&&O$(t,r,s)}i=i.next}while(i!==n)}}function Nu(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 ef(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 t1(e){var t=e.alternate;t!==null&&(e.alternate=null,t1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[Nl],delete t[j$],delete t[g2],delete t[v2])),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 r1(e){return e.tag===5||e.tag===3||e.tag===4}function zh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r1(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 tf(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=Zo));else if(n!==4&&(e=e.child,e!==null))for(tf(e,t,r),e=e.sibling;e!==null;)tf(e,t,r),e=e.sibling}function rf(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(rf(e,t,r),e=e.sibling;e!==null;)rf(e,t,r),e=e.sibling}var Ur=null,Qn=!1;function Di(e,t,r){for(r=r.child;r!==null;)n1(e,t,r),r=r.sibling}function n1(e,t,r){if($i&&typeof $i.onCommitFiberUnmount=="function")try{$i.onCommitFiberUnmount(ku,r)}catch{}switch(r.tag){case 5:Zr||ia(r,t);case 6:var n=Ur,i=Qn;Ur=null,Di(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?Cc(e.parentNode,r):e.nodeType===1&&Cc(e,r),El(e)):Cc(Ur,r.stateNode));break;case 4:n=Ur,i=Qn,Ur=r.stateNode.containerInfo,Qn=!0,Di(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)&&O$(r,t,c),i=i.next}while(i!==n)}Di(e,t,r);break;case 1:if(!Zr&&(ia(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)}Di(e,t,r);break;case 21:Di(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Di(e,t,r),Zr=n):Di(e,t,r);break;default:Di(e,t,r)}}function Rh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new M2),t.forEach(function(n){var i=W2.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(Ct(160));n1(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;)i1(t,e),t=t.sibling}function i1(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gn(t,e),ii(e),n&4){try{_l(3,e,e.return),Nu(3,e)}catch(re){wr(e,e.return,re)}try{_l(5,e,e.return)}catch(re){wr(e,e.return,re)}}break;case 1:Gn(t,e),ii(e),n&512&&r!==null&&ia(r,r.return);break;case 5:if(Gn(t,e),ii(e),n&512&&r!==null&&ia(r,r.return),e.flags&32){var i=e.stateNode;try{wl(i,"")}catch(re){wr(e,e.return,re)}}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&&A_(i,s),A$(f,c);var h=A$(f,s);for(c=0;c<p.length;c+=2){var I=p[c],L=p[c+1];I==="style"?R_(i,L):I==="dangerouslySetInnerHTML"?T_(i,L):I==="children"?wl(i,L):Jf(i,I,L,h)}switch(f){case"input":b$(i,s);break;case"textarea":E_(i,s);break;case"select":var H=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var pe=s.value;pe!=null?ua(i,!!s.multiple,pe,!1):H!==!!s.multiple&&(s.defaultValue!=null?ua(i,!!s.multiple,s.defaultValue,!0):ua(i,!!s.multiple,s.multiple?[]:"",!1))}i[Nl]=s}catch(re){wr(e,e.return,re)}}break;case 6:if(Gn(t,e),ii(e),n&4){if(e.stateNode===null)throw Error(Ct(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(re){wr(e,e.return,re)}}break;case 3:if(Gn(t,e),ii(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{El(t.containerInfo)}catch(re){wr(e,e.return,re)}break;case 4:Gn(t,e),ii(e);break;case 13:Gn(t,e),ii(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(R0=Ar())),n&4&&Rh(e);break;case 22:if(I=r!==null&&r.memoizedState!==null,e.mode&1?(Zr=(h=Zr)||I,Gn(t,e),Zr=h):Gn(t,e),ii(e),n&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!I&&e.mode&1)for(Ft=e,I=e.child;I!==null;){for(L=Ft=I;Ft!==null;){switch(H=Ft,pe=H.child,H.tag){case 0:case 11:case 14:case 15:_l(4,H,H.return);break;case 1:ia(H,H.return);var be=H.stateNode;if(typeof be.componentWillUnmount=="function"){n=H,r=H.return;try{t=n,be.props=t.memoizedProps,be.state=t.memoizedState,be.componentWillUnmount()}catch(re){wr(n,r,re)}}break;case 5:ia(H,H.return);break;case 22:if(H.memoizedState!==null){Ih(L);continue}}pe!==null?(pe.return=H,Ft=pe):Ih(L)}I=I.sibling}e:for(I=null,L=e;;){if(L.tag===5){if(I===null){I=L;try{i=L.stateNode,h?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(f=L.stateNode,p=L.memoizedProps.style,c=p!=null&&p.hasOwnProperty("display")?p.display:null,f.style.display=z_("display",c))}catch(re){wr(e,e.return,re)}}}else if(L.tag===6){if(I===null)try{L.stateNode.nodeValue=h?"":L.memoizedProps}catch(re){wr(e,e.return,re)}}else if((L.tag!==22&&L.tag!==23||L.memoizedState===null||L===e)&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===e)break e;for(;L.sibling===null;){if(L.return===null||L.return===e)break e;I===L&&(I=null),L=L.return}I===L&&(I=null),L.sibling.return=L.return,L=L.sibling}}break;case 19:Gn(t,e),ii(e),n&4&&Rh(e);break;case 21:break;default:Gn(t,e),ii(e)}}function ii(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(r1(r)){var n=r;break e}r=r.return}throw Error(Ct(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(wl(i,""),n.flags&=-33);var s=zh(e);rf(e,s,i);break;case 3:case 4:var c=n.stateNode.containerInfo,f=zh(e);tf(e,f,c);break;default:throw Error(Ct(161))}}catch(p){wr(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function L2(e,t,r){Ft=e,s1(e)}function s1(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||ho;if(!c){var f=i.alternate,p=f!==null&&f.memoizedState!==null||Zr;f=ho;var h=Zr;if(ho=c,(Zr=p)&&!h)for(Ft=i;Ft!==null;)c=Ft,p=c.child,c.tag===22&&c.memoizedState!==null?qh(i):p!==null?(p.return=c,Ft=p):qh(i);for(;s!==null;)Ft=s,s1(s),s=s.sibling;Ft=i,ho=f,Zr=h}Nh(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):Nh(e)}}function Nh(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||Nu(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&&_h(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}_h(t,c,r)}break;case 5:var f=t.stateNode;if(r===null&&t.flags&4){r=f;var p=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":p.autoFocus&&r.focus();break;case"img":p.src&&(r.src=p.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var I=h.memoizedState;if(I!==null){var L=I.dehydrated;L!==null&&El(L)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ct(163))}Zr||t.flags&512&&ef(t)}catch(H){wr(t,t.return,H)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function Ih(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 qh(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Nu(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{ef(t)}catch(p){wr(t,s,p)}break;case 5:var c=t.return;try{ef(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 F2=Math.ceil,ou=Ri.ReactCurrentDispatcher,T0=Ri.ReactCurrentOwner,Un=Ri.ReactCurrentBatchConfig,rr=0,Pr=null,zr=null,Wr=0,wn=0,sa=fs(0),Dr=0,Fl=null,Rs=0,Iu=0,z0=0,ml=null,_n=null,R0=0,wa=1/0,vi=null,uu=!1,nf=null,es=null,po=!1,Gi=null,cu=0,gl=0,sf=null,Do=-1,Lo=0;function on(){return rr&6?Ar():Do!==-1?Do:Do=Ar()}function ts(e){return e.mode&1?rr&2&&Wr!==0?Wr&-Wr:b2.transition!==null?(Lo===0&&(Lo=H_()),Lo):(e=lr,e!==0||(e=window.event,e=e===void 0?16:Q_(e.type)),e):1}function ti(e,t,r,n){if(50<gl)throw gl=0,sf=null,Error(Ct(185));Vl(e,r,n),(!(rr&2)||e!==Pr)&&(e===Pr&&(!(rr&2)&&(Iu|=r),Dr===4&&Wi(e,Wr)),yn(e,n),r===1&&rr===0&&!(t.mode&1)&&(wa=Ar()+500,Tu&&ds()))}function yn(e,t){var r=e.callbackNode;by(e,t);var n=Go(e,e===Pr?Wr:0);if(n===0)r!==null&&Hd(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Hd(r),t===1)e.tag===0?y2(Mh.bind(null,e)):pm(Mh.bind(null,e)),_2(function(){!(rr&6)&&ds()}),r=null;else{switch(V_(n)){case 1:r=n0;break;case 4:r=P_;break;case 16:r=Yo;break;case 536870912:r=U_;break;default:r=Yo}r=d1(r,a1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function a1(e,t){if(Do=-1,Lo=0,rr&6)throw Error(Ct(327));var r=e.callbackNode;if(ha()&&e.callbackNode!==r)return null;var n=Go(e,e===Pr?Wr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=$u(e,n);else{t=n;var i=rr;rr|=2;var s=o1();(Pr!==e||Wr!==t)&&(vi=null,wa=Ar()+500,As(e,t));do try{P2();break}catch(f){l1(e,f)}while(!0);_0(),ou.current=s,rr=i,zr!==null?t=0:(Pr=null,Wr=0,t=Dr)}if(t!==0){if(t===2&&(i=R$(e),i!==0&&(n=i,t=af(e,i))),t===1)throw r=Fl,As(e,0),Wi(e,n),yn(e,Ar()),r;if(t===6)Wi(e,n);else{if(i=e.current.alternate,!(n&30)&&!B2(i)&&(t=$u(e,n),t===2&&(s=R$(e),s!==0&&(n=s,t=af(e,s))),t===1))throw r=Fl,As(e,0),Wi(e,n),yn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Ct(345));case 2:ys(e,_n,vi);break;case 3:if(Wi(e,n),(n&130023424)===n&&(t=R0+500-Ar(),10<t)){if(Go(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){on(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=B$(ys.bind(null,e,_n,vi),t);break}ys(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*F2(n/1960))-n,10<n){e.timeoutHandle=B$(ys.bind(null,e,_n,vi),n);break}ys(e,_n,vi);break;case 5:ys(e,_n,vi);break;default:throw Error(Ct(329))}}}return yn(e,Ar()),e.callbackNode===r?a1.bind(null,e):null}function af(e,t){var r=ml;return e.current.memoizedState.isDehydrated&&(As(e,t).flags|=256),e=$u(e,t),e!==2&&(t=_n,_n=r,t!==null&&lf(t)),e}function lf(e){_n===null?_n=e:_n.push.apply(_n,e)}function B2(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(!ni(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&=~z0,t&=~Iu,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 Mh(e){if(rr&6)throw Error(Ct(327));ha();var t=Go(e,0);if(!(t&1))return yn(e,Ar()),null;var r=$u(e,t);if(e.tag!==0&&r===2){var n=R$(e);n!==0&&(t=n,r=af(e,n))}if(r===1)throw r=Fl,As(e,0),Wi(e,t),yn(e,Ar()),r;if(r===6)throw Error(Ct(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ys(e,_n,vi),yn(e,Ar()),null}function N0(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(wa=Ar()+500,Tu&&ds())}}function Ns(e){Gi!==null&&Gi.tag===0&&!(rr&6)&&ha();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)&&ds()}}function I0(){wn=sa.current,fr(sa)}function As(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,p2(r)),zr!==null)for(r=zr.return;r!==null;){var n=r;switch(d0(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Jo();break;case 3:ba(),fr(gn),fr(en),x0();break;case 5:b0(n);break;case 4:ba();break;case 13:fr(gr);break;case 19:fr(gr);break;case 10:m0(n.type._context);break;case 22:case 23:I0()}r=r.return}if(Pr=e,zr=e=rs(e.current,null),Wr=wn=t,Dr=0,Fl=null,z0=Iu=Rs=0,_n=ml=null,ks!==null){for(t=0;t<ks.length;t++)if(r=ks[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}ks=null}return e}function l1(e,t){do{var r=zr;try{if(_0(),Io.current=lu,au){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}au=!1}if(zs=0,jr=Mr=yr=null,pl=!1,Ml=0,T0.current=null,r===null||r.return===null){Dr=1,Fl=t,zr=null;break}e:{var s=e,c=r.return,f=r,p=t;if(t=Wr,f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){var h=p,I=f,L=I.tag;if(!(I.mode&1)&&(L===0||L===11||L===15)){var H=I.alternate;H?(I.updateQueue=H.updateQueue,I.memoizedState=H.memoizedState,I.lanes=H.lanes):(I.updateQueue=null,I.memoizedState=null)}var pe=xh(c);if(pe!==null){pe.flags&=-257,wh(pe,c,f,s,t),pe.mode&1&&bh(s,h,t),t=pe,p=h;var be=t.updateQueue;if(be===null){var re=new Set;re.add(p),t.updateQueue=re}else be.add(p);break e}else{if(!(t&1)){bh(s,h,t),q0();break e}p=Error(Ct(426))}}else if(hr&&f.mode&1){var W=xh(c);if(W!==null){!(W.flags&65536)&&(W.flags|=256),wh(W,c,f,s,t),h0(xa(p,f));break e}}s=p=xa(p,f),Dr!==4&&(Dr=2),ml===null?ml=[s]:ml.push(s),s=c;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var X=Vm(s,p,t);ph(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"&&(es===null||!es.has(se)))){s.flags|=65536,t&=-t,s.lanes|=t;var me=Wm(s,f,t);ph(s,me);break e}}s=s.return}while(s!==null)}c1(r)}catch(J){t=J,zr===r&&r!==null&&(zr=r=r.return);continue}break}while(!0)}function o1(){var e=ou.current;return ou.current=lu,e===null?lu:e}function q0(){(Dr===0||Dr===3||Dr===2)&&(Dr=4),Pr===null||!(Rs&268435455)&&!(Iu&268435455)||Wi(Pr,Wr)}function $u(e,t){var r=rr;rr|=2;var n=o1();(Pr!==e||Wr!==t)&&(vi=null,As(e,t));do try{j2();break}catch(i){l1(e,i)}while(!0);if(_0(),rr=r,ou.current=n,zr!==null)throw Error(Ct(261));return Pr=null,Wr=0,Dr}function j2(){for(;zr!==null;)u1(zr)}function P2(){for(;zr!==null&&!fy();)u1(zr)}function u1(e){var t=f1(e.alternate,e,wn);e.memoizedProps=e.pendingProps,t===null?c1(e):zr=t,T0.current=null}function c1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=q2(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=I2(r,t,wn),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 ys(e,t,r){var n=lr,i=Un.transition;try{Un.transition=null,lr=1,U2(e,t,r,n)}finally{Un.transition=i,lr=n}return null}function U2(e,t,r,n){do ha();while(Gi!==null);if(rr&6)throw Error(Ct(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Ct(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(xy(e,s),e===Pr&&(zr=Pr=null,Wr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||po||(po=!0,d1(Yo,function(){return ha(),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,T0.current=null,D2(e,r),i1(r,e),o2(L$),Ko=!!D$,L$=D$=null,e.current=r,L2(r),dy(),rr=f,lr=c,Un.transition=s}else e.current=r;if(po&&(po=!1,Gi=e,cu=i),s=e.pendingLanes,s===0&&(es=null),_y(r.stateNode),yn(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(uu)throw uu=!1,e=nf,nf=null,e;return cu&1&&e.tag!==0&&ha(),s=e.pendingLanes,s&1?e===sf?gl++:(gl=0,sf=e):gl=0,ds(),null}function ha(){if(Gi!==null){var e=V_(cu),t=Un.transition,r=lr;try{if(Un.transition=null,lr=16>e?16:e,Gi===null)var n=!1;else{if(e=Gi,Gi=null,cu=0,rr&6)throw Error(Ct(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,c=s.child;if(Ft.flags&16){var f=s.deletions;if(f!==null){for(var p=0;p<f.length;p++){var h=f[p];for(Ft=h;Ft!==null;){var I=Ft;switch(I.tag){case 0:case 11:case 15:_l(8,I,s)}var L=I.child;if(L!==null)L.return=I,Ft=L;else for(;Ft!==null;){I=Ft;var H=I.sibling,pe=I.return;if(t1(I),I===h){Ft=null;break}if(H!==null){H.return=pe,Ft=H;break}Ft=pe}}}var be=s.alternate;if(be!==null){var re=be.child;if(re!==null){be.child=null;do{var W=re.sibling;re.sibling=null,re=W}while(re!==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:_l(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:Nu(9,f)}}catch(J){wr(f,f.return,J)}if(f===c){Ft=null;break e}var me=f.sibling;if(me!==null){me.return=f.return,Ft=me;break e}Ft=f.return}}if(rr=i,ds(),$i&&typeof $i.onPostCommitFiberRoot=="function")try{$i.onPostCommitFiberRoot(ku,e)}catch{}n=!0}return n}finally{lr=r,Un.transition=t}}return!1}function Dh(e,t,r){t=xa(r,t),t=Vm(e,t,1),e=Oi(e,t,1),t=on(),e!==null&&(Vl(e,1,t),yn(e,t))}function wr(e,t,r){if(e.tag===3)Dh(e,e,r);else for(;t!==null;){if(t.tag===3){Dh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(es===null||!es.has(n))){e=xa(r,e),e=Wm(t,e,1),t=Oi(t,e,1),e=on(),t!==null&&(Vl(t,1,e),yn(t,e));break}}t=t.return}}function H2(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=on(),e.pingedLanes|=e.suspendedLanes&r,Pr===e&&(Wr&r)===r&&(Dr===4||Dr===3&&(Wr&130023424)===Wr&&500>Ar()-R0?As(e,0):z0|=r),yn(e,t)}function $1(e,t){t===0&&(e.mode&1?(t=io,io<<=1,!(io&130023424)&&(io=4194304)):t=1);var r=on();e=Ci(e,t),e!==null&&(Vl(e,t,r),yn(e,r))}function V2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$1(e,r)}function W2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ct(314))}n!==null&&n.delete(t),$1(e,r)}var f1;f1=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gn.current)mn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mn=!1,N2(e,t,r);mn=!!(e.flags&131072)}else mn=!1,hr&&t.flags&1048576&&_m(t,tu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Mo(e,t),e=t.pendingProps;var i=ga(t,en.current);da(t,r),i=k0(null,t,n,e,i,r);var s=S0();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,vn(n)?(s=!0,Oo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,v0(t),i.updater=Ru,t.stateNode=i,i._reactInternals=t,Y$(t,n,e,r),t=X$(null,t,n,!0,s,r)):(t.tag=0,hr&&s&&f0(t),sn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Mo(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=G2(n),e=Xn(n,e),i){case 0:t=K$(null,t,n,e,r);break e;case 1:t=Ah(null,t,n,e,r);break e;case 11:t=kh(null,t,n,e,r);break e;case 14:t=Sh(null,t,n,Xn(n.type,e),r);break e}throw Error(Ct(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),K$(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),Ah(e,t,n,i,r);case 3:e:{if(Xm(t),e===null)throw Error(Ct(387));n=t.pendingProps,s=t.memoizedState,i=s.element,xm(e,t),iu(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=xa(Error(Ct(423)),t),t=Eh(e,t,n,r,i);break e}else if(n!==i){i=xa(Error(Ct(424)),t),t=Eh(e,t,n,r,i);break e}else for(Sn=Ji(t.stateNode.containerInfo.firstChild),En=t,hr=!0,Zn=null,r=ym(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(va(),n===i){t=Ti(e,t,r);break e}sn(e,t,n,r)}t=t.child}return t;case 5:return wm(t),e===null&&H$(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,c=i.children,F$(n,i)?c=null:s!==null&&F$(n,s)&&(t.flags|=32),Km(e,t),sn(e,t,c,r),t.child;case 6:return e===null&&H$(t),null;case 13:return Qm(e,t,r);case 4:return y0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ya(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),kh(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(ru,n._currentValue),n._currentValue=c,s!==null)if(ni(s.value,c)){if(s.children===i.children&&!gn.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 I=h.pending;I===null?p.next=p:(p.next=I.next,I.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),V$(s.return,r,t),f.lanes|=r;break}p=p.next}}else if(s.tag===10)c=s.type===t.type?null:s.child;else if(s.tag===18){if(c=s.return,c===null)throw Error(Ct(341));c.lanes|=r,f=c.alternate,f!==null&&(f.lanes|=r),V$(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,da(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),Sh(e,t,n,i,r);case 15:return Ym(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Xn(n,i),Mo(e,t),t.tag=1,vn(n)?(e=!0,Oo(t)):e=!1,da(t,r),Hm(t,n,i),Y$(t,n,i,r),X$(null,t,n,!0,e,r);case 19:return Zm(e,t,r);case 22:return Gm(e,t,r)}throw Error(Ct(156,t.tag))};function d1(e,t){return j_(e,t)}function Y2(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 Y2(e,t,r,n)}function M0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function G2(e){if(typeof e=="function")return M0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===e0)return 11;if(e===t0)return 14}return 2}function rs(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 Fo(e,t,r,n,i,s){var c=2;if(n=e,typeof e=="function")M0(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case Xs:return Es(r.children,i,s,t);case Of:c=8,i|=8;break;case _$:return e=jn(12,r,t,i|2),e.elementType=_$,e.lanes=s,e;case m$:return e=jn(13,r,t,i),e.elementType=m$,e.lanes=s,e;case g$:return e=jn(19,r,t,i),e.elementType=g$,e.lanes=s,e;case w_:return qu(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b_:c=10;break e;case x_:c=9;break e;case e0:c=11;break e;case t0:c=14;break e;case Ui:c=16,n=null;break e}throw Error(Ct(130,e==null?e:typeof e,""))}return t=jn(c,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Es(e,t,r,n){return e=jn(7,e,n,t),e.lanes=r,e}function qu(e,t,r,n){return e=jn(22,e,n,t),e.elementType=w_,e.lanes=r,e.stateNode={isHidden:!1},e}function Dc(e,t,r){return e=jn(6,e,null,t),e.lanes=r,e}function Lc(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 K2(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=mc(0),this.expirationTimes=mc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function D0(e,t,r,n,i,s,c,f,p){return e=new K2(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},v0(s),e}function X2(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ks,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function h1(e){if(!e)return is;e=e._reactInternals;e:{if(Ls(e)!==e||e.tag!==1)throw Error(Ct(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(vn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ct(171))}if(e.tag===1){var r=e.type;if(vn(r))return hm(e,r,t)}return t}function p1(e,t,r,n,i,s,c,f,p){return e=D0(r,n,!0,e,i,s,c,f,p),e.context=h1(null),r=e.current,n=on(),i=ts(r),s=ki(n,i),s.callback=t??null,Oi(r,s,i),e.current.lanes=i,Vl(e,i,n),yn(e,n),e}function Mu(e,t,r,n){var i=t.current,s=on(),c=ts(i);return r=h1(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=Oi(i,t,c),e!==null&&(ti(e,i,c,s),No(e,i,c)),c}function fu(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 Lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function L0(e,t){Lh(e,t),(e=e.alternate)&&Lh(e,t)}function Q2(){return null}var _1=typeof reportError=="function"?reportError:function(e){console.error(e)};function F0(e){this._internalRoot=e}Du.prototype.render=F0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ct(409));Mu(e,t,null,null)};Du.prototype.unmount=F0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ns(function(){Mu(null,e,null,null)}),t[Ei]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var t=G_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Vi.length&&t!==0&&t<Vi[r].priority;r++);Vi.splice(r,0,e),r===0&&X_(e)}};function B0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Lu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fh(){}function Z2(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var h=fu(c);s.call(h)}}var c=p1(t,n,e,0,null,!1,!1,"",Fh);return e._reactRootContainer=c,e[Ei]=c.current,zl(e.nodeType===8?e.parentNode:e),Ns(),c}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var f=n;n=function(){var h=fu(p);f.call(h)}}var p=D0(e,0,!1,null,null,!1,!1,"",Fh);return e._reactRootContainer=p,e[Ei]=p.current,zl(e.nodeType===8?e.parentNode:e),Ns(function(){Mu(t,p,r,n)}),p}function Fu(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=fu(c);f.call(p)}}Mu(t,c,e,i)}else c=Z2(r,t,e,i,n);return fu(c)}W_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=il(t.pendingLanes);r!==0&&(i0(t,r|1),yn(t,Ar()),!(rr&6)&&(wa=Ar()+500,ds()))}break;case 13:Ns(function(){var n=Ci(e,1);if(n!==null){var i=on();ti(n,e,1,i)}}),L0(e,1)}};s0=function(e){if(e.tag===13){var t=Ci(e,134217728);if(t!==null){var r=on();ti(t,e,134217728,r)}L0(e,134217728)}};Y_=function(e){if(e.tag===13){var t=ts(e),r=Ci(e,t);if(r!==null){var n=on();ti(r,e,t,n)}L0(e,t)}};G_=function(){return lr};K_=function(e,t){var r=lr;try{return lr=e,t()}finally{lr=r}};C$=function(e,t,r){switch(t){case"input":if(b$(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=Cu(n);if(!i)throw Error(Ct(90));S_(n),b$(n,i)}}}break;case"textarea":E_(e,r);break;case"select":t=r.value,t!=null&&ua(e,!!r.multiple,t,!1)}};q_=N0;M_=Ns;var J2={usingClientEntryPoint:!1,Events:[Yl,Os,Cu,N_,I_,N0]},Xa={findFiberByHostInstance:ws,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O2={bundleType:Xa.bundleType,version:Xa.version,rendererPackageName:Xa.rendererPackageName,rendererConfig:Xa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ri.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=F_(e),e===null?null:e.stateNode},findFiberByHostInstance:Xa.findFiberByHostInstance||Q2,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 _o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_o.isDisabled&&_o.supportsFiber)try{ku=_o.inject(O2),$i=_o}catch{}}Nn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J2;Nn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!B0(t))throw Error(Ct(200));return X2(e,t,null,r)};Nn.createRoot=function(e,t){if(!B0(e))throw Error(Ct(299));var r=!1,n="",i=_1;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=D0(e,1,!1,null,null,r,!1,n,i),e[Ei]=t.current,zl(e.nodeType===8?e.parentNode:e),new F0(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(Ct(188)):(e=Object.keys(e).join(","),Error(Ct(268,e)));return e=F_(t),e=e===null?null:e.stateNode,e};Nn.flushSync=function(e){return Ns(e)};Nn.hydrate=function(e,t,r){if(!Lu(t))throw Error(Ct(200));return Fu(null,e,t,!0,r)};Nn.hydrateRoot=function(e,t,r){if(!B0(e))throw Error(Ct(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",c=_1;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),t=p1(t,null,e,1,r??null,i,!1,s,c),e[Ei]=t.current,zl(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 Du(t)};Nn.render=function(e,t,r){if(!Lu(t))throw Error(Ct(200));return Fu(null,e,t,!1,r)};Nn.unmountComponentAtNode=function(e){if(!Lu(e))throw Error(Ct(40));return e._reactRootContainer?(Ns(function(){Fu(null,null,e,!1,function(){e._reactRootContainer=null,e[Ei]=null})}),!0):!1};Nn.unstable_batchedUpdates=N0;Nn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Lu(r))throw Error(Ct(200));if(e==null||e._reactInternals===void 0)throw Error(Ct(38));return Fu(e,t,r,!1,n)};Nn.version="18.3.1-next-f1338f8080-20240426";function m1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m1)}catch(e){console.error(e)}}m1(),m_.exports=Nn;var g1=m_.exports,v1,Bh=g1;v1=Bh.createRoot,Bh.hydrateRoot;const aa=typeof window<"u"&&window.__BASE__||"",Er=e=>aa+e;async function Ni(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 jh(){return Ni(Er("/api/info"))}function e4(){return Ni(Er("/api/tasks"))}function Qa(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Ni(Er(`/api/tree?${r}`))}function Cn(e,t,r){const n=new URLSearchParams({path:e});return t!=null&&n.set("depth",String(t)),r?.binary&&n.set("binary","1"),Ni(Er(`/api/json?${n}`))}function hs(e){return Er(`/api/blob?path=${encodeURIComponent(e)}`)}function t4(e,t,r){return Er(`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`)}function r4(e,t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Ni(Er(`/api/schema?${r}`))}function ka(e){return Ni(Er(`/api/annotations?path=${encodeURIComponent(e)}`))}function n4(e){return Ni(Er(`/api/tagged?path=${encodeURIComponent(e)}`))}function i4(e,t=":"){const r=new URLSearchParams({q:e,path:t});return Ni(Er(`/api/query?${r}`)).then(n=>n.results)}async function Ra(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 y1(){return Ni(Er("/api/config"))}function s4(e){return Ra(Er("/api/config"),{source:e})}function a4(e){return Ra(Er("/api/last-tag"),{tag:e})}function l4(e,t,r){return Ra(Er("/api/fragment"),{target:e,selector:t,...r?{imageBase64:r}:{}})}function Is(e){return Ra(Er("/api/annotate"),e)}function o4(e,t){return Ra(Er("/api/board"),{path:e,columns:t})}function u4(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 Ph(e=!1){return Ra(Er("/api/agent-docs"),{overwrite:e})}function j0(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 c4(e,t,r){return j0({path:e,filename:t,contentBase64:r})}function $4(e,t){return j0({path:e,text:t})}function f4(e,t){return j0({path:e,rich:t})}function P0(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",h4=function(e){return"/"+e},Uh={},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=h4(p),p in Uh)return;Uh[p]=!0;const h=p.endsWith(".css"),I=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${I}`))return;const L=document.createElement("link");if(L.rel=h?"stylesheet":d4,h||(L.as="script"),L.crossOrigin="",L.href=p,f&&L.setAttribute("nonce",f),document.head.appendChild(L),h)return new Promise((H,pe)=>{L.addEventListener("load",H),L.addEventListener("error",()=>pe(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return i.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},p4="$yamloverLink",_4="$yamloverBinary",m4="$yamloverRef",g4="$yamloverMixed";function Bu(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=>Bu(e,p4),v4=e=>Bu(e,_4),ju=e=>Bu(e,m4),Na=e=>Bu(e,g4);function Ia(e){const t=Na(e);return t&&t.kind==="omni"?t.value:e}function Hh({value:e,syntax:t,onNavigate:r}){const n=v4(e);if(n&&t==="yaml")return qe.jsx(y4,{bin:n});const i=n??e;return t==="yaml"?qe.jsx(x4,{value:i,indent:0,nav:r}):qe.jsx(W0,{value:i,indent:0,nav:r,root:!0})}function y4({bin:e}){const t=[];for(let r=0;r<e.base64.length;r+=76)t.push(" "+e.base64.slice(r,r+76));return qe.jsxs(qe.Fragment,{children:[qe.jsx("span",{className:"b",children:"!!binary"})," ",qe.jsx("span",{className:"punct",children:"|"})," ",qe.jsx("span",{className:"c",children:`# ${e.format??"binary"}, ${e.size} bytes`}),`
42
- `,qe.jsx("span",{className:"s",children:t.join(`
43
- `)})]})}function U0(e,t,r){const n=e.kind==="scalar"?H0(e.value,t):b4(e);return qe.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r(e.path)},children:n})}function H0(e,t){return e==null?t==="json"?"null":"~":typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function V0(e,t,r){const n=t==="json"?JSON.stringify(e.text):e.text;if(!e.path)return qe.jsx("span",{className:"s",children:n});const i=e.path;return qe.jsx("a",{className:"descend",href:i,onClick:s=>{s.preventDefault(),r(i)},children:n})}function b4(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 ${H0(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function Pu(e,t){if(e===null)return qe.jsx("span",{className:"null",children:t==="json"?"null":"~"});if(typeof e=="boolean")return qe.jsx("span",{className:"b",children:String(e)});if(typeof e=="number")return qe.jsx("span",{className:"n",children:String(e)});const r=t==="json"?JSON.stringify(e):String(e);return qe.jsx("span",{className:"s",children:r})}const qa=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function ss(e){return un(e)||ju(e)?!1:Na(e)?!0:qa(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function Uu(e){const t=Na(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${H0(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 Hu({open:e,onToggle:t}){return qe.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:qe.jsx("span",{className:"chevron",children:"›"})})}function x4({value:e,indent:t,nav:r}){const n=un(e);if(n)return qe.jsxs(qe.Fragment,{children:[U0(n,"yaml",r),`
44
- `]});const i=ju(e);return i?qe.jsxs(qe.Fragment,{children:[V0(i,"yaml",r),`
45
- `]}):ss(e)?qe.jsx(du,{value:e,indent:t,nav:r}):qa(e)?qe.jsxs(qe.Fragment,{children:[qe.jsx("span",{className:"punct",children:"{}"}),`
46
- `]}):Array.isArray(e)?qe.jsxs(qe.Fragment,{children:[qe.jsx("span",{className:"punct",children:"[]"}),`
47
- `]}):qe.jsxs(qe.Fragment,{children:[Pu(e,"yaml"),`
48
- `]})}function du({value:e,indent:t,nav:r,inlineHead:n=!1}){const i=Na(e);return i?qe.jsx(A4,{mixed:i,indent:t,nav:r}):qa(e)?qe.jsx(w4,{entries:Object.entries(e),indent:t,nav:r,inlineHead:n}):qe.jsx(k4,{items:e,indent:t,nav:r,inlineHead:n})}function w4({entries:e,indent:t,nav:r,inlineHead:n=!1}){const i=" ".repeat(t);return qe.jsx(qe.Fragment,{children:e.map(([s,c],f)=>qe.jsx(b1,{k:s,v:c,pad:i,indent:t,nav:r,noPad:n&&f===0},f))})}function k4({items:e,indent:t,nav:r,inlineHead:n=!1}){const i=" ".repeat(t);return qe.jsx(qe.Fragment,{children:e.map((s,c)=>qe.jsx(x1,{v:s,pad:i,indent:t,nav:r,noPad:n&&c===0},c))})}function S4(e){if(Na(e))return!1;if(qa(e)){const t=Object.values(e);return t.length>0&&!ss(t[0])}return Array.isArray(e)?e.length>0&&!ss(e[0]):!1}function A4({mixed:e,indent:t,nav:r}){const n=" ".repeat(t);return qe.jsxs(qe.Fragment,{children:[e.kind==="omni"&&qe.jsxs(qe.Fragment,{children:[n,Pu(e.value,"yaml"),`
49
- `]}),e.entries.map((i,s)=>i.key===null?qe.jsx(x1,{v:i.value,pad:n,indent:t,nav:r},s):qe.jsx(b1,{k:i.key,v:i.value,pad:n,indent:t,nav:r},s))]})}function b1({k:e,v:t,pad:r,indent:n,nav:i,noPad:s=!1}){const[c,f]=gt.useState(!0),p=qe.jsxs(qe.Fragment,{children:[s?null:r,qe.jsx("span",{className:"k",children:e}),qe.jsx("span",{className:"punct",children:":"})]});return ss(t)?qe.jsxs(qe.Fragment,{children:[qe.jsx(Hu,{open:c,onToggle:()=>f(h=>!h)}),p,c?qe.jsxs(qe.Fragment,{children:[`
50
- `,qe.jsx(du,{value:t,indent:n+2,nav:i})]}):qe.jsxs(qe.Fragment,{children:[" ",qe.jsx("span",{className:"fold-summary",children:Uu(t)}),`
51
- `]})]}):qe.jsxs(qe.Fragment,{children:[p,w1(t,i)]})}function x1({v:e,pad:t,indent:r,nav:n,noPad:i=!1}){const[s,c]=gt.useState(!0),f=qe.jsxs(qe.Fragment,{children:[i?null:t,qe.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(!ss(e))return qe.jsxs(qe.Fragment,{children:[f,w1(e,n)]});const p=S4(e);return qe.jsxs(qe.Fragment,{children:[qe.jsx(Hu,{open:s,onToggle:()=>c(h=>!h)}),f,s?p?qe.jsxs(qe.Fragment,{children:[" ",qe.jsx(du,{value:e,indent:r+2,nav:n,inlineHead:!0})]}):qe.jsxs(qe.Fragment,{children:[`
52
- `,qe.jsx(du,{value:e,indent:r+2,nav:n})]}):qe.jsxs(qe.Fragment,{children:[" ",qe.jsx("span",{className:"fold-summary",children:Uu(e)}),`
53
- `]})]})}function w1(e,t){const r=un(e);if(r)return qe.jsxs(qe.Fragment,{children:[" ",U0(r,"yaml",t),`
54
- `]});const n=ju(e);return n?qe.jsxs(qe.Fragment,{children:[" ",V0(n,"yaml",t),`
55
- `]}):qa(e)&&Object.keys(e).length===0?qe.jsxs(qe.Fragment,{children:[" ",qe.jsx("span",{className:"punct",children:"{}"}),`
56
- `]}):Array.isArray(e)&&e.length===0?qe.jsxs(qe.Fragment,{children:[" ",qe.jsx("span",{className:"punct",children:"[]"}),`
57
- `]}):qe.jsxs(qe.Fragment,{children:[" ",Pu(e,"yaml"),`
58
- `]})}function W0({value:e,indent:t,nav:r,root:n=!1}){const i=un(e);if(i)return U0(i,"json",r);const s=ju(e);if(s)return V0(s,"json",r);if(n&&ss(e))return qe.jsx(vl,{value:e,indent:t,nav:r});const c=k1(e);return c?c.length?qe.jsx(vl,{value:e,indent:t,nav:r}):qe.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?qe.jsx(vl,{value:e,indent:t,nav:r}):qe.jsx("span",{className:"punct",children:"[]"}):Pu(e,"json")}function k1(e){const t=Na(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:qa(e)?Object.entries(e):null}function vl({value:e,indent:t,nav:r}){const n=k1(e);return n?qe.jsx(E4,{entries:n,indent:t,nav:r}):qe.jsx(C4,{items:e,indent:t,nav:r})}function E4({entries:e,indent:t,nav:r}){const n=" ".repeat(t+2);return qe.jsxs(qe.Fragment,{children:[qe.jsx("span",{className:"punct",children:"{"}),`
59
- `,e.map(([i,s],c)=>qe.jsx(T4,{k:i,v:s,pad:n,indent:t+2,nav:r,last:c===e.length-1},c))," ".repeat(t),qe.jsx("span",{className:"punct",children:"}"})]})}function C4({items:e,indent:t,nav:r}){const n=" ".repeat(t+2);return qe.jsxs(qe.Fragment,{children:[qe.jsx("span",{className:"punct",children:"["}),`
60
- `,e.map((i,s)=>qe.jsx(z4,{v:i,pad:n,indent:t+2,nav:r,last:s===e.length-1},s))," ".repeat(t),qe.jsx("span",{className:"punct",children:"]"})]})}function T4({k:e,v:t,pad:r,indent:n,nav:i,last:s}){const[c,f]=gt.useState(!0),p=qe.jsxs(qe.Fragment,{children:[r,qe.jsx("span",{className:"k",children:`"${e}"`}),qe.jsx("span",{className:"punct",children:": "})]}),h=qe.jsxs(qe.Fragment,{children:[s?"":",",`
61
- `]});return ss(t)?qe.jsxs(qe.Fragment,{children:[qe.jsx(Hu,{open:c,onToggle:()=>f(I=>!I)}),p,c?qe.jsx(vl,{value:t,indent:n,nav:i}):qe.jsx("span",{className:"fold-summary",children:Uu(t)}),h]}):qe.jsxs(qe.Fragment,{children:[p,qe.jsx(W0,{value:t,indent:n,nav:i}),h]})}function z4({v:e,pad:t,indent:r,nav:n,last:i}){const[s,c]=gt.useState(!0),f=qe.jsxs(qe.Fragment,{children:[i?"":",",`
62
- `]});return ss(e)?qe.jsxs(qe.Fragment,{children:[qe.jsx(Hu,{open:s,onToggle:()=>c(p=>!p)}),t,s?qe.jsx(vl,{value:e,indent:r,nav:n}):qe.jsx("span",{className:"fold-summary",children:Uu(e)}),f]}):qe.jsxs(qe.Fragment,{children:[t,qe.jsx(W0,{value:e,indent:r,nav:n}),f]})}function ri(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const R4=/\[\d+\]|[^:\[\]]+/g,N4=/\[\d+\]|[^/\[\]]+/g;function Gr(e){const t=[];for(const r of e.match(R4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Y0(r));return t}function Hr(e){return ri(Gr(e))}function Y0(e){try{return decodeURIComponent(e)}catch{return e}}function Vh(){let e=window.location.pathname;aa&&(e===aa||e.startsWith(aa+"/"))&&(e=e.slice(aa.length)||"/");const t=[];for(const r of e.match(N4)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Y0(r));return ri(t)}function I4(e){const r=Gr(e).map(n=>typeof n=="number"?`[${n}]`:`/${encodeURIComponent(n)}`).join("")||"/";return aa+r}function Kl(e){const t=Gr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function q4(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 M4(e){return e.replace(/[^:/\[\]]+/g,t=>Y0(t))}function Bo(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function Wh(e){return new URLSearchParams(window.location.search).get("format")||e}function T8(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function z8(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 Ws(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${I4(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function D4(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:ri(r.slice(0,s+1))})}),n}function L4(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function F4(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 S1(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=F4(n.id||L4(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 G0(e){gt.useEffect(()=>{const t=decodeURIComponent(window.location.hash.slice(1));t&&document.getElementById(t)?.scrollIntoView?.()},[e])}function A1({node:e,onNavigate:t}){const r=e.value??{},n=Array.isArray(r.chunks)?r.chunks:[],i=Array.isArray(r.children)?r.children:[];return G0(e),qe.jsxs("div",{className:"chapter",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),n.map((s,c)=>qe.jsx(B4,{index:c,item:s,basePath:e.path,documentPath:e.documentPath,onNavigate:t},c)),i.map((s,c)=>{const f=un(s);return qe.jsx("h2",{className:"chapter-link",children:qe.jsx("a",{className:"descend",href:f?.path??"#",onClick:p=>{p.preventDefault(),f&&t(f.path)},children:P4(f)})},c)})]})}function B4({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=uc(c),p=f?.renderChunk?f.renderChunk(c,i):qe.jsx("p",{className:"chapter-prose",children:String(c.value??"")}),h=c.path?j4(r,c.path):null;return qe.jsxs("div",{className:"chunk",id:h??void 0,children:[h?qe.jsxs("a",{className:"chunk-index",href:`#${h}`,children:["§",e]}):qe.jsxs("span",{className:"chunk-index",children:["§",e]}),qe.jsx("div",{className:"chunk-body",children:p})]})}function j4(e,t){return ri(Gr(t).slice(Gr(e).length))}function P4(e){return e?.title??"(untitled chapter)"}const Bl="yamlover:diff";function U4(e){window.dispatchEvent(new CustomEvent(Bl,{detail:e}))}const Fs=e=>e.paths.some(t=>t.endsWith(".yamlover"));function Ma(e=()=>!0){const[t,r]=gt.useState(0);return gt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>c+1)};return window.addEventListener(Bl,n),()=>window.removeEventListener(Bl,n)},[]),t}function H4(e=()=>!0){const[t,r]=gt.useState({seq:0,paths:[]});return gt.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(c=>({seq:c.seq+1,paths:s.paths}))};return window.addEventListener(Bl,n),()=>window.removeEventListener(Bl,n)},[]),t}const Da="x-yamlover-tag";function K0(e){return/(^|:)tags:colors:/.test(Hr(e))}function E1({color:e,title:t,onClick:r}){return qe.jsx("span",{className:"tagswatch",style:{background:e},title:t,role:r?"button":void 0,onClick:r})}function V4(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=un(i);s&&s.format===Da?t.push({path:s.path,label:Vu(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function W4(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??W4(e.name)}const C1="$yamloverMixed";function bn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[C1];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function T1(e){if(typeof e=="string")return e;const t=e?.[C1];return typeof t?.value=="string"?t.value:null}function X0(e){const t=bn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function Y4({tags:e,onNavigate:t}){return e.length===0?null:qe.jsx(qe.Fragment,{children:e.map(r=>{const n=cn({name:r.label,color:r.color});return K0(r.path)?qe.jsx(E1,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):qe.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 Vu(e,t){if(t)return t;const r=Gr(e);return r.length?String(r[r.length-1]):e}const G4="$yamloverRef",K4="x-yamlover-workflow";function qs(e){const t=un(e);if(t)return t.path;const r=e?.[G4];return r&&typeof r.path=="string"?r.path:null}function z1(e){const t=bn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(qs).filter(n=>n!=null);const r=qs(t);return r?[r]:[]}async function X4(e){const t=await Cn(e,1),r=qs(bn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,c]of bn(t.value)){if(s==="initial"||s==="color")continue;const f=un(c);!f||f.format!==Da||n.has(f.path)||(n.add(f.path),i.push({path:f.path,label:Vu(f.path,f.title),color:f.color??null,next:[],initial:f.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=z1((await Cn(s.path,2)).value)}catch{}})),i}async function R1(e,t,r){t!==r&&(t&&await P0(e,t),await Is({target:e,tag:r}))}async function Q4(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await Cn(e.slice(0,t),0)).format===K4}catch{return!1}}async function of(e){const t=await Cn(e,2);return{path:e,label:Vu(e,t.title),color:X0(t.value),next:z1(t.value)}}const Za=(e,t)=>{const r=bn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null};function Z4({node:e,onNavigate:t}){const r=Ma(Fs),[n,i]=gt.useState(null),s=Za(e.value,"description"),c=Za(e.value,"priority"),f=Za(e.value,"assignee"),p=Za(e.value,"due"),h=Za(e.value,"estimate");gt.useEffect(()=>{let L=!1;return(async()=>{const H=await ka(e.path).catch(()=>[]);let pe=null;for(const be of H){const re=be.tag?.path;if(!re||!await Q4(re))continue;const W=await of(re),X=await Promise.all(W.next.map(ge=>of(ge)));pe={...W,nextStates:X};break}L||i(pe)})(),()=>{L=!0}},[e.path,r]);const I=async L=>{n&&await R1(e.path,n.path,L).catch(()=>{})};return qe.jsxs("div",{className:"task",children:[qe.jsxs("div",{className:"task-strip",children:[n&&qe.jsx("span",{className:"task-state",style:{background:cn({name:n.label,color:n.color})},children:n.label}),n?.nextStates.map(L=>qe.jsxs("button",{className:"task-advance",style:{borderColor:cn({name:L.label,color:L.color})},onClick:()=>I(L.path),title:`Move to ${L.label}`,children:["→ ",L.label]},L.path)),c&&qe.jsx("span",{className:"board-chip prio-"+c,children:c}),f&&qe.jsxs("span",{className:"board-chip board-assignee",children:["@",f]}),p&&qe.jsx("span",{className:"board-chip board-due",children:p.slice(0,10)}),h&&qe.jsx("span",{className:"board-chip board-estimate",children:h})]}),s&&qe.jsx("p",{className:"task-description",children:s}),qe.jsx(A1,{node:e,onNavigate:t})]})}function J4(){const[e,t]=gt.useState(""),[r,n]=gt.useState(null),[i,s]=gt.useState(":.yamlover:settings.yamlover"),[c,f]=gt.useState("loading"),[p,h]=gt.useState(null),[I,L]=gt.useState(!1),H=Ma(Fs);gt.useEffect(()=>{let be=!0;return y1().then(re=>{be&&(t(W=>I?W:re.source),n(re.settings),s(re.path),f(W=>W==="loading"?"ready":W))}).catch(re=>be&&h(String(re.message||re))),()=>{be=!1}},[H]);const pe=gt.useCallback(async()=>{f("saving"),h(null);try{const{settings:be}=await s4(e);n(be),L(!1),f("ready")}catch(be){h(String(be.message||be)),f("ready")}},[e]);return qe.jsxs("div",{className:"settings-view",children:[qe.jsxs("header",{className:"settings-head",children:[qe.jsx("span",{className:"settings-title",children:"⚙ Project configuration"}),qe.jsx("span",{className:"settings-path",children:i})]}),c==="loading"?qe.jsx("div",{className:"settings-dim",children:"loading…"}):qe.jsxs(qe.Fragment,{children:[r&&qe.jsxs("dl",{className:"settings-summary",children:[qe.jsx("dt",{children:"URI"}),qe.jsx("dd",{children:r.uri??qe.jsx("span",{className:"settings-dim",children:"— (no declared identity)"})}),qe.jsx("dt",{children:"Exports"}),qe.jsx("dd",{children:r.exports.length?r.exports.map(be=>qe.jsx("code",{className:"settings-chip",children:be},be)):qe.jsx("span",{className:"settings-dim",children:"— (nothing exported)"})}),qe.jsx("dt",{children:"Tags location"}),qe.jsx("dd",{children:qe.jsx("code",{children:r.tags})}),qe.jsx("dt",{children:"Annotations location"}),qe.jsx("dd",{children:qe.jsx("code",{children:r.annotations})}),qe.jsx("dt",{children:"Sidecars"}),qe.jsx("dd",{children:qe.jsx("code",{children:r.sidecars})}),qe.jsx("dt",{children:"Last tag"}),qe.jsx("dd",{children:r.annotationTag?qe.jsx("code",{children:r.annotationTag}):qe.jsx("span",{className:"settings-dim",children:"— (none yet)"})})]}),qe.jsx("label",{className:"settings-raw-label",children:"Source — settings.yamlover"}),qe.jsx("textarea",{className:"settings-raw",spellCheck:!1,value:e,onChange:be=>{t(be.target.value),L(!0)}}),p&&qe.jsx("div",{className:"settings-error",children:p}),qe.jsxs("div",{className:"settings-actions",children:[qe.jsx("span",{className:"settings-dim",children:"Defaults, never constraints — a node works wherever it lives."}),qe.jsx("button",{type:"button",className:"settings-save",onClick:pe,disabled:c!=="ready"||!I,children:c==="saving"?"Saving…":"Save"})]})]})]})}function Q0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Bs=Q0();function N1(e){Bs=e}var bs={exec:()=>null};function Ys(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 O4=((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:Ys(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ys(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ys(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ys(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ys(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ys(e=>new RegExp(`^ {0,${e}}>`))},eb=/^(?:[ \t]*(?:\n|$))+/,tb=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rb=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Z0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,I1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,q1=tr(I1).replace(/bull/g,Z0).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(),ib=tr(I1).replace(/bull/g,Z0).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(),J0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sb=/^[^\n]+/,O0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ab=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",O0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),lb=tr(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Z0).getRegex(),Wu="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",ed=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ob=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",ed).replace("tag",Wu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M1=tr(J0).replace("hr",Xl).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",Wu).getRegex(),ub=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",M1).getRegex(),td={blockquote:ub,code:tb,def:ab,fences:rb,heading:nb,hr:Xl,html:ob,lheading:q1,list:lb,newline:eb,paragraph:M1,table:bs,text:sb},Yh=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xl).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",Wu).getRegex(),cb={...td,lheading:ib,table:Yh,paragraph:tr(J0).replace("hr",Xl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yh).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",Wu).getRegex()},$b={...td,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ed).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:bs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(J0).replace("hr",Xl).replace("heading",` *#{1,6} *[^
63
- ]`).replace("lheading",q1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,db=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,D1=/^( {2,}|\\)\n(?!\s*$)/,hb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,La=/[\p{P}\p{S}]/u,Yu=/[\s\p{P}\p{S}]/u,rd=/[^\s\p{P}\p{S}]/u,pb=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Yu).getRegex(),L1=/(?!~)[\p{P}\p{S}]/u,_b=/(?!~)[\s\p{P}\p{S}]/u,mb=/(?:[^\s\p{P}\p{S}]|~)/u,gb=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",O4?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),F1=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vb=tr(F1,"u").replace(/punct/g,La).getRegex(),yb=tr(F1,"u").replace(/punct/g,L1).getRegex(),B1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bb=tr(B1,"gu").replace(/notPunctSpace/g,rd).replace(/punctSpace/g,Yu).replace(/punct/g,La).getRegex(),xb=tr(B1,"gu").replace(/notPunctSpace/g,mb).replace(/punctSpace/g,_b).replace(/punct/g,L1).getRegex(),wb=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,rd).replace(/punctSpace/g,Yu).replace(/punct/g,La).getRegex(),kb=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,La).getRegex(),Sb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ab=tr(Sb,"gu").replace(/notPunctSpace/g,rd).replace(/punctSpace/g,Yu).replace(/punct/g,La).getRegex(),Eb=tr(/\\(punct)/,"gu").replace(/punct/g,La).getRegex(),Cb=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(),Tb=tr(ed).replace("(?:-->|$)","-->").getRegex(),zb=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",Tb).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rb=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",hu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),j1=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",hu).replace("ref",O0).getRegex(),P1=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",O0).getRegex(),Nb=tr("reflink|nolink(?!\\()","g").replace("reflink",j1).replace("nolink",P1).getRegex(),Gh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nd={_backpedal:bs,anyPunctuation:Eb,autolink:Cb,blockSkip:gb,br:D1,code:db,del:bs,delLDelim:bs,delRDelim:bs,emStrongLDelim:vb,emStrongRDelimAst:bb,emStrongRDelimUnd:wb,escape:fb,link:Rb,nolink:P1,punctuation:pb,reflink:j1,reflinkSearch:Nb,tag:zb,text:hb,url:bs},Ib={...nd,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",hu).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hu).getRegex()},uf={...nd,emStrongRDelimAst:xb,emStrongLDelim:yb,delLDelim:kb,delRDelim:Ab,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Gh).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",Gh).getRegex()},qb={...uf,br:tr(D1).replace("{2,}","*").getRegex(),text:tr(uf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mo={normal:td,gfm:cb,pedantic:$b},Ja={normal:nd,gfm:uf,breaks:qb,pedantic:Ib},Mb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kh=e=>Mb[e];function si(e,t){if(t){if(Jr.escapeTest.test(e))return e.replace(Jr.escapeReplace,Kh)}else if(Jr.escapeTestNoEncode.test(e))return e.replace(Jr.escapeReplaceNoEncode,Kh);return e}function Xh(e){try{e=encodeURI(e).replace(Jr.percentDecode,"%")}catch{return null}return e}function Qh(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 Li(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 Zh(e){let t=e.split(`
64
- `),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(`
65
- `)}function Db(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 Lb(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 Jh(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 Fb(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
66
- `).map(s=>{let c=s.match(r.other.beginningSpace);if(c===null)return s;let[f]=c;return f.length>=i.length?s.slice(i.length):s}).join(`
67
- `)}var pu=class{options;rules;lexer;constructor(e){this.options=e||Bs}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]:Zh(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=Fb(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=Li(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Li(t[0],`
68
- `),depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Li(t[0],`
69
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Li(t[0],`
70
- `).split(`
71
- `),n="",i="",s=[];for(;r.length>0;){let c=!1,f=[],p;for(p=0;p<r.length;p++)if(this.rules.other.blockquoteStart.test(r[p]))f.push(r[p]),c=!0;else if(!c)f.push(r[p]);else break;r=r.slice(p);let h=f.join(`
72
- `),I=h.replace(this.rules.other.blockquoteSetextReplace,`
73
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
74
- ${h}`:h,i=i?`${i}
75
- ${I}`:I;let L=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(I,s,!0),this.lexer.state.top=L,r.length===0)break;let H=s.at(-1);if(H?.type==="code")break;if(H?.type==="blockquote"){let pe=H,be=pe.raw+`
76
- `+r.join(`
77
- `),re=this.blockquote(be);s[s.length-1]=re,n=n.substring(0,n.length-pe.raw.length)+re.raw,i=i.substring(0,i.length-pe.text.length)+re.text;break}else if(H?.type==="list"){let pe=H,be=pe.raw+`
78
- `+r.join(`
79
- `),re=this.list(be);s[s.length-1]=re,n=n.substring(0,n.length-H.raw.length)+re.raw,i=i.substring(0,i.length-pe.raw.length)+re.raw,r=be.substring(s.at(-1).raw.length).split(`
80
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let s=this.rules.other.listItemRegex(r),c=!1;for(;e;){let p=!1,h="",I="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let L=Lb(t[2].split(`
81
- `,1)[0],t[1].length),H=e.split(`
82
- `,1)[0],pe=!L.trim(),be=0;if(this.options.pedantic?(be=2,I=L.trimStart()):pe?be=t[1].length+1:(be=L.search(this.rules.other.nonSpaceChar),be=be>4?1:be,I=L.slice(be),be+=t[1].length),pe&&this.rules.other.blankLine.test(H)&&(h+=H+`
83
- `,e=e.substring(H.length+1),p=!0),!p){let re=this.rules.other.nextBulletRegex(be),W=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 J=e.split(`
84
- `,1)[0],xe;if(H=J,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting," "),xe=H):xe=H.replace(this.rules.other.tabCharGlobal," "),X.test(H)||ge.test(H)||se.test(H)||me.test(H)||re.test(H)||W.test(H))break;if(xe.search(this.rules.other.nonSpaceChar)>=be||!H.trim())I+=`
85
- `+xe.slice(be);else{if(pe||L.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||X.test(L)||ge.test(L)||W.test(L))break;I+=`
86
- `+H}pe=!H.trim(),h+=J+`
87
- `,e=e.substring(J.length+1),L=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(I),loose:!1,text:I,tokens:[]}),i.raw+=h}let f=i.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let p of i.items){this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]);let h=p.tokens[0];if(p.task&&(h?.type==="text"||h?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let L=this.lexer.inlineQueue.length-1;L>=0;L--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[L].src)){this.lexer.inlineQueue[L].src=this.lexer.inlineQueue[L].src.replace(this.rules.other.listReplaceTask,"");break}let I=this.rules.other.listTaskCheckbox.exec(p.raw);if(I){let L={type:"checkbox",raw:I[0]+" ",checked:I[0]!=="[ ]"};p.checked=L.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=L.raw+p.tokens[0].raw,p.tokens[0].text=L.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(L)):p.tokens.unshift({type:"paragraph",raw:L.raw,text:L.raw,tokens:[L]}):p.tokens.unshift(L)}}else p.task&&(p.task=!1);if(!i.loose){let I=p.tokens.filter(H=>H.type==="space"),L=I.length>0&&I.some(H=>this.rules.other.anyLine.test(H.raw));i.loose=L}}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=Zh(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:Li(t[0],`
88
- `),href:n,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Qh(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
89
- `):[],s={type:"table",raw:Li(t[0],`
90
- `),header:[],align:[],rows:[]};if(r.length===n.length){for(let c of n)this.rules.other.tableAlignRight.test(c)?s.align.push("right"):this.rules.other.tableAlignCenter.test(c)?s.align.push("center"):this.rules.other.tableAlignLeft.test(c)?s.align.push("left"):s.align.push(null);for(let c=0;c<r.length;c++)s.header.push({text:r[c],tokens:this.lexer.inline(r[c]),header:!0,align:s.align[c]});for(let c of i)s.rows.push(Qh(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:Li(t[0],`
91
- `),depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
92
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Li(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=Db(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)),Jh(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 Jh(r,i,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=0,h=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(c=[...s].length,n[3]||n[4]){f+=c;continue}else if((n[5]||n[6])&&i%3&&!((i+c)%3)){p+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+p);let I=[...n[0]][0].length,L=e.slice(0,i+n.index+I+c);if(Math.min(i,c)%2){let pe=L.slice(1,-1);return{type:"em",raw:L,text:pe,tokens:this.lexer.inlineTokens(pe)}}let H=L.slice(2,-2);return{type:"strong",raw:L,text:H,tokens:this.lexer.inlineTokens(H)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...n[0]].length-1,s,c,f=i,p=this.rules.inline.delRDelim;for(p.lastIndex=0,t=t.slice(-1*e.length+i);(n=p.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(c=[...s].length,c!==i))continue;if(n[3]||n[4]){f+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f);let h=[...n[0]][0].length,I=e.slice(0,i+n.index+h+c),L=I.slice(i,-i);return{type:"del",raw:I,text:L,tokens:this.lexer.inlineTokens(L)}}}}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 cf{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Bs,this.options.tokenizer=this.options.tokenizer||new pu,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:mo.normal,inline:Ja.normal};this.options.pedantic?(r.block=mo.pedantic,r.inline=Ja.pedantic):this.options.gfm&&(r.block=mo.gfm,this.options.breaks?r.inline=Ja.breaks:r.inline=Ja.gfm),this.tokenizer.rules=r}static get rules(){return{block:mo,inline:Ja}}static lex(t,r){return new cf(r).lex(t)}static lexInline(t,r){return new cf(r).inlineTokens(t)}lex(t){t=t.replace(Jr.carriageReturn,`
93
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(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+=`
94
- `:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
95
- `)?"":`
96
- `)+s.raw,f.text+=`
97
- `+s.text,this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="paragraph"||f?.type==="text"?(f.raw+=(f.raw.endsWith(`
98
- `)?"":`
99
- `)+s.raw,f.text+=`
100
- `+s.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},r.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}let c=t;if(this.options.extensions?.startBlock){let f=1/0,p=t.slice(1),h;this.options.extensions.startBlock.forEach(I=>{h=I.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(c=t.substring(0,f+1))}if(this.state.top&&(s=this.tokenizer.paragraph(c))){let f=r.at(-1);n&&f?.type==="paragraph"?(f.raw+=(f.raw.endsWith(`
101
- `)?"":`
102
- `)+s.raw,f.text+=`
103
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s),n=c.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let f=r.at(-1);f?.type==="text"?(f.raw+=(f.raw.endsWith(`
104
- `)?"":`
105
- `)+s.raw,f.text+=`
106
- `+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let c=!1,f="",p=1/0;for(;t;){if(t.length<p)p=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}c||(f=""),c=!1;let h;if(this.options.extensions?.inline?.some(L=>(h=L.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 L=r.at(-1);h.type==="text"&&L?.type==="text"?(L.raw+=h.raw,L.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t,n,f)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let I=t;if(this.options.extensions?.startInline){let L=1/0,H=t.slice(1),pe;this.options.extensions.startInline.forEach(be=>{pe=be.call({lexer:this},H),typeof pe=="number"&&pe>=0&&(L=Math.min(L,pe))}),L<1/0&&L>=0&&(I=t.substring(0,L+1))}if(h=this.tokenizer.inlineText(I)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(f=h.raw.slice(-1)),c=!0;let L=r.at(-1);L?.type==="text"?(L.raw+=h.raw,L.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)}},_u=class{options;parser;constructor(e){this.options=e||Bs}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Jr.notSpaceStart)?.[0],i=e.replace(Jr.endingNewline,"")+`
107
- `;return n?'<pre><code class="language-'+si(n)+'">'+(r?i:si(i,!0))+`</code></pre>
108
- `:"<pre><code>"+(r?i:si(i,!0))+`</code></pre>
109
- `}blockquote({tokens:e}){return`<blockquote>
110
- ${this.parser.parse(e)}</blockquote>
111
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
112
- `}hr(e){return`<hr>
113
- `}list(e){let t=e.ordered,r=e.start,n="";for(let c=0;c<e.items.length;c++){let f=e.items[c];n+=this.listitem(f)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
114
- `+n+"</"+i+`>
115
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
116
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
117
- `}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let s=e.rows[i];r="";for(let c=0;c<s.length;c++)r+=this.tablecell(s[c]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
118
- <thead>
119
- `+t+`</thead>
120
- `+n+`</table>
121
- `}tablerow({text:e}){return`<tr>
122
- ${e}</tr>
123
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
124
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${si(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=Xh(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+si(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=Xh(e);if(i===null)return si(r);e=i;let s=`<img src="${e}" alt="${si(r)}"`;return t&&(s+=` title="${si(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:si(e.text)}},id=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 $f{options;renderer;textRenderer;constructor(t){this.options=t||Bs,this.options.renderer=this.options.renderer||new _u,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new id}static parse(t,r){return new $f(r).parse(t)}static parseInline(t,r){return new $f(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}},al=class{options;block;constructor(e){this.options=e||Bs}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}},Bb=class{defaults=Q0();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=On;Renderer=_u;TextRenderer=id;Lexer=Jn;Tokenizer=pu;Hooks=al;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 _u(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let c=s,f=r.renderer[c],p=i[c];i[c]=(...h)=>{let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new pu(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let c=s,f=r.tokenizer[c],p=i[c];i[c]=(...h)=>{let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new al;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];al.passThroughHooks.has(s)?i[c]=h=>{if(this.defaults.async&&al.passThroughHooksRespectAsync.has(s))return(async()=>{let L=await f.call(i,h);return p.call(i,L)})();let I=f.call(i,h);return p.call(i,I)}:i[c]=(...h)=>{if(this.defaults.async)return(async()=>{let L=await f.apply(i,h);return L===!1&&(L=await p.apply(i,h)),L})();let I=f.apply(i,h);return I===!1&&(I=p.apply(i,h)),I}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(c){let f=[];return f.push(s.call(this,c)),i&&(f=f.concat(i.call(this,c))),f}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return 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+=`
125
- Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+si(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Ms=new Bb;function ar(e,t){return Ms.parse(e,t)}ar.options=ar.setOptions=function(e){return Ms.setOptions(e),ar.defaults=Ms.defaults,N1(ar.defaults),ar};ar.getDefaults=Q0;ar.defaults=Bs;ar.use=function(...e){return Ms.use(...e),ar.defaults=Ms.defaults,N1(ar.defaults),ar};ar.walkTokens=function(e,t){return Ms.walkTokens(e,t)};ar.parseInline=Ms.parseInline;ar.Parser=On;ar.parser=On.parse;ar.Renderer=_u;ar.TextRenderer=id;ar.Lexer=Jn;ar.lexer=Jn.lex;ar.Tokenizer=pu;ar.Hooks=al;ar.parse=ar;ar.options;ar.setOptions;ar.use;ar.walkTokens;ar.parseInline;On.parse;Jn.lex;const U1=72,ff=20,df=400,H1=()=>new URLSearchParams(window.location.search);function V1(){const e=Number(H1().get("width"));return Number.isFinite(e)&&e>=ff&&e<=df?e:U1}function jb(e){const t=H1();e===U1?t.delete("width"):t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function W1({html:e}){return qe.jsx("div",{className:"markup",style:{maxWidth:`${V1()}ch`},dangerouslySetInnerHTML:{__html:e}})}function Oh({rerender:e}){const t=V1(),[r,n]=gt.useState(String(t));gt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=ff&&i<=df;return qe.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>=ff&&p<=df&&(jb(p),e())}})}const Pb=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function Ub(e){try{return decodeURIComponent(e)}catch{return e}}function Hb(e,t){if(!t)return null;const r=e.trim();if(!r||Pb.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(Ub(s)));return hs(ri(i))}function Vb(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=Hb(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function Y1(e,t){const r=S1(ar.parse(String(e??""),{async:!1}));return Vb(r,t)}function Wb({node:e}){return G0(e),qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx(W1,{html:Y1(Ia(e.value),e.path)})]})}function Yb({chunk:e}){return qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:Y1(e.value,e.documentPath)}})}class zt extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,c=r&&r.loc;if(c&&c.start<=c.end){var f=c.lexer.input;i=c.start,s=c.end,i===f.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var p=f.slice(i,s).replace(/[^]/g,"$&̲"),h;i>15?h="…"+f.slice(i-15,i):h=f.slice(0,i);var I;s+15<f.length?I=f.slice(s,s+15)+"…":I=f.slice(s),n+=h+p+I}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,zt.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var Gb=/([A-Z])/g,Kb=e=>e.replace(Gb,"-$1").toLowerCase(),Xb={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Qb=/[&><"']/g,Or=e=>String(e).replace(Qb,t=>Xb[t]),jo=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?jo(e.body[0]):e:e.type==="font"?jo(e.body):e,Zb=new Set(["mathord","textord","atom"]),Ii=e=>Zb.has(jo(e).type),Jb=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},hf={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 Ob(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 e3(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return Ob(t)}function t3(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:e3(n)}class sd{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(hf)){var n=hf[r];n&&t3(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new zt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=Jb(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Fi{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 li[r3[this.id]]}sub(){return li[n3[this.id]]}fracNum(){return li[i3[this.id]]}fracDen(){return li[s3[this.id]]}cramp(){return li[a3[this.id]]}text(){return li[l3[this.id]]}isTight(){return this.size>=2}}var ad=0,mu=1,pa=2,Si=3,jl=4,Pn=5,Sa=6,ln=7,li=[new Fi(ad,0,!1),new Fi(mu,0,!0),new Fi(pa,1,!1),new Fi(Si,1,!0),new Fi(jl,2,!1),new Fi(Pn,2,!0),new Fi(Sa,3,!1),new Fi(ln,3,!0)],r3=[jl,Pn,jl,Pn,Sa,ln,Sa,ln],n3=[Pn,Pn,Pn,Pn,ln,ln,ln,ln],i3=[pa,Si,jl,Pn,Sa,ln,Sa,ln],s3=[Si,Si,Pn,Pn,ln,ln,ln,ln],a3=[mu,mu,Si,Si,Pn,Pn,ln,ln],l3=[ad,mu,pa,Si,pa,Si,pa,Si],Gt={DISPLAY:li[ad],TEXT:li[pa],SCRIPT:li[jl],SCRIPTSCRIPT:li[Sa]},pf=[{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 o3(e){for(var t=0;t<pf.length;t++)for(var r=pf[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 Po=[];pf.forEach(e=>e.blocks.forEach(t=>Po.push(...t)));function G1(e){for(var t=0;t<Po.length;t+=2)if(e>=Po[t]&&e<=Po[t+1])return!0;return!1}var qr=e=>e+" "+e,Gs=80,u3=function(t,r){return"M95,"+(622+t+r)+`
126
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
127
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
128
- c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
129
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
130
- c69,-144,104.5,-217.7,106.5,-221
131
- l`+t/2.075+" -"+t+`
132
- c5.3,-9.3,12,-14,20,-14
133
- H400000v`+(40+t)+`H845.2724
134
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
135
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
136
- M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},c3=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
137
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
138
- c340,-704.7,510.7,-1060.3,512,-1067
139
- l`+t/2.084+" -"+t+`
140
- c4.7,-7.3,11,-11,19,-11
141
- H40000v`+(40+t)+`H1012.3
142
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
143
- c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
144
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
145
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
146
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},$3=function(t,r){return"M983 "+(10+t+r)+`
147
- l`+t/3.13+" -"+t+`
148
- c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
149
- H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
150
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
151
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
152
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
153
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
154
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
155
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},f3=function(t,r){return"M424,"+(2398+t+r)+`
156
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
157
- c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
158
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
159
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
160
- l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
161
- v`+(40+t)+`H1014.6
162
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
163
- c-2,6,-10,9,-24,9
164
- c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
165
- h400000v`+(40+t)+"h-400000z"},d3=function(t,r){return"M473,"+(2713+t+r)+`
166
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
167
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
168
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
169
- c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
170
- c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
171
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
172
- 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},h3=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},p3=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
173
- H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
174
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
175
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
176
- 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},_3=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=u3(r,Gs);break;case"sqrtSize1":i=c3(r,Gs);break;case"sqrtSize2":i=$3(r,Gs);break;case"sqrtSize3":i=f3(r,Gs);break;case"sqrtSize4":i=d3(r,Gs);break;case"sqrtTall":i=p3(r,Gs,n)}return i},m3=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""}},ep={doubleleftarrow:`M262 157
177
- l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
178
- 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
179
- 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
180
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
181
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
182
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
183
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
184
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
185
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
186
- 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
187
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
188
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
189
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
190
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
191
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
192
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
193
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
194
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
195
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
196
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
197
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
198
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
199
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
200
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
201
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
202
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
203
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
204
- 435 0h399565z`,leftgroupunder:`M400000 262
205
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
206
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
207
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
208
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
209
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
210
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
211
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
212
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
213
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
214
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
215
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
216
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
217
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
218
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
219
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
220
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
221
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
222
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment: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
223
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
224
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
225
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:qr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
226
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
227
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
228
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
229
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
230
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
231
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
232
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
233
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
234
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
235
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
236
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
237
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
238
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
239
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
240
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
241
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
242
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
243
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
244
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
245
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
246
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
247
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
248
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
249
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
250
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
251
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
252
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
253
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
254
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
255
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
256
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
257
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
258
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
259
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
260
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
261
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
262
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
263
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
264
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
265
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
266
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
267
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
268
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
269
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
270
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
271
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
272
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
273
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
274
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment: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
275
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
276
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
277
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
278
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
279
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
280
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
281
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
282
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
283
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
284
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
285
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
286
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
287
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
288
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
289
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
290
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
291
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
292
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
293
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
294
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
295
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
296
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
297
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
298
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
299
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
300
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
301
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
302
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
303
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
304
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
305
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
306
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
307
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
308
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
309
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
310
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
311
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
312
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
313
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
314
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
315
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
316
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
317
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
318
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
319
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
320
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
321
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
322
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
323
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
324
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
325
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
326
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
327
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
328
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
329
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
330
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
331
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
332
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
333
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
334
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
335
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
336
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
337
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
338
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
339
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
340
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
341
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
342
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
343
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
344
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
345
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
346
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
347
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},g3=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
348
- H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
349
- M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
350
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
351
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
352
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
353
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
354
- M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
355
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
356
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
357
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
358
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
359
- M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
360
- M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
361
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
362
- -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
363
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
364
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
365
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
366
- l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
367
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
368
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
369
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
370
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
371
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
372
- c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
373
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
374
- l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
375
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function v3(e){return"toText"in e}class Fa{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 _f={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},K1=function(t){return typeof t!="string"&&(t=t.unit),t in _f||t in y3||t==="ex"},vr=function(t,r){var n;if(t.unit in _f)n=_f[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new zt("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Nt=function(t){return+t.toFixed(4)+"em"},as=function(t){return t.filter(r=>r).join(" ")},ld=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=Kb(n)+":"+i+";")}return r},X1=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)}},Q1=function(t){var r=document.createElement(t);r.className=as(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},b3=/[\s"'>/=\x00-\x1f]/,Z1=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Or(as(this.classes))+'"');var n=ld(this.style);n&&(r+=' style="'+Or(n)+'"');for(var i of Object.keys(this.attributes)){if(b3.test(i))throw new zt("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 Ba{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,X1.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Q1.call(this,"span")}toMarkup(){return Z1.call(this,"span")}}class Gu{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,X1.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 Q1.call(this,"a")}toMarkup(){return Z1.call(this,"a")}}class x3{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=ld(this.style);return r&&(t+=' style="'+Or(r)+'"'),t+="'/>",t}}var w3={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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=o3(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=w3[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Nt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=as(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(as(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Nt(this.italic)+";"),n+=ld(this.style),n&&(t=!0,r+=' style="'+Or(n)+'"');var i=Or(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class zi{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 ls{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",ep[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Or(this.alternate)+'"/>':'<path d="'+Or(ep[this.pathName])+'"/>'}}class mf{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 k3(e){if(e instanceof Rn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function S3(e){if(e instanceof Ba)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var A3=e=>e instanceof Ba||e instanceof Gu||e instanceof Fa,ci={"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]}},go={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]},tp={Å:"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 E3(e,t){ci[e]=t}function od(e,t,r){if(!ci[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=ci[t][n];if(!i&&e[0]in tp&&(n=tp[e[0]].charCodeAt(0),i=ci[t][n]),!i&&r==="text"&&G1(n)&&(i=ci[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Fc={};function C3(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Fc[t]){var r=Fc[t]={cssEmPerMu:go.quad[t]/18};for(var n in go)go.hasOwnProperty(n)&&(r[n]=go[n][t])}return Fc[t]}var pr={math:{},text:{}};function he(e,t,r,n,i,s){pr[e][i]={font:t,group:r,replace:n},s&&n&&(pr[e][n]=pr[e][i])}var Ce="math",wt="text",Ve="main",ot="ams",_r="accent-token",Lt="bin",dn="close",ja="inner",jt="mathord",Ir="op-token",Mn="open",Ql="punct",ut="rel",qi="spacing",pt="textord";he(Ce,Ve,ut,"≡","\\equiv",!0);he(Ce,Ve,ut,"≺","\\prec",!0);he(Ce,Ve,ut,"≻","\\succ",!0);he(Ce,Ve,ut,"∼","\\sim",!0);he(Ce,Ve,ut,"⊥","\\perp");he(Ce,Ve,ut,"⪯","\\preceq",!0);he(Ce,Ve,ut,"⪰","\\succeq",!0);he(Ce,Ve,ut,"≃","\\simeq",!0);he(Ce,Ve,ut,"∣","\\mid",!0);he(Ce,Ve,ut,"≪","\\ll",!0);he(Ce,Ve,ut,"≫","\\gg",!0);he(Ce,Ve,ut,"≍","\\asymp",!0);he(Ce,Ve,ut,"∥","\\parallel");he(Ce,Ve,ut,"⋈","\\bowtie",!0);he(Ce,Ve,ut,"⌣","\\smile",!0);he(Ce,Ve,ut,"⊑","\\sqsubseteq",!0);he(Ce,Ve,ut,"⊒","\\sqsupseteq",!0);he(Ce,Ve,ut,"≐","\\doteq",!0);he(Ce,Ve,ut,"⌢","\\frown",!0);he(Ce,Ve,ut,"∋","\\ni",!0);he(Ce,Ve,ut,"∝","\\propto",!0);he(Ce,Ve,ut,"⊢","\\vdash",!0);he(Ce,Ve,ut,"⊣","\\dashv",!0);he(Ce,Ve,ut,"∋","\\owns");he(Ce,Ve,Ql,".","\\ldotp");he(Ce,Ve,Ql,"⋅","\\cdotp");he(Ce,Ve,Ql,"⋅","·");he(wt,Ve,pt,"⋅","·");he(Ce,Ve,pt,"#","\\#");he(wt,Ve,pt,"#","\\#");he(Ce,Ve,pt,"&","\\&");he(wt,Ve,pt,"&","\\&");he(Ce,Ve,pt,"ℵ","\\aleph",!0);he(Ce,Ve,pt,"∀","\\forall",!0);he(Ce,Ve,pt,"ℏ","\\hbar",!0);he(Ce,Ve,pt,"∃","\\exists",!0);he(Ce,Ve,pt,"∇","\\nabla",!0);he(Ce,Ve,pt,"♭","\\flat",!0);he(Ce,Ve,pt,"ℓ","\\ell",!0);he(Ce,Ve,pt,"♮","\\natural",!0);he(Ce,Ve,pt,"♣","\\clubsuit",!0);he(Ce,Ve,pt,"℘","\\wp",!0);he(Ce,Ve,pt,"♯","\\sharp",!0);he(Ce,Ve,pt,"♢","\\diamondsuit",!0);he(Ce,Ve,pt,"ℜ","\\Re",!0);he(Ce,Ve,pt,"♡","\\heartsuit",!0);he(Ce,Ve,pt,"ℑ","\\Im",!0);he(Ce,Ve,pt,"♠","\\spadesuit",!0);he(Ce,Ve,pt,"§","\\S",!0);he(wt,Ve,pt,"§","\\S");he(Ce,Ve,pt,"¶","\\P",!0);he(wt,Ve,pt,"¶","\\P");he(Ce,Ve,pt,"†","\\dag");he(wt,Ve,pt,"†","\\dag");he(wt,Ve,pt,"†","\\textdagger");he(Ce,Ve,pt,"‡","\\ddag");he(wt,Ve,pt,"‡","\\ddag");he(wt,Ve,pt,"‡","\\textdaggerdbl");he(Ce,Ve,dn,"⎱","\\rmoustache",!0);he(Ce,Ve,Mn,"⎰","\\lmoustache",!0);he(Ce,Ve,dn,"⟯","\\rgroup",!0);he(Ce,Ve,Mn,"⟮","\\lgroup",!0);he(Ce,Ve,Lt,"∓","\\mp",!0);he(Ce,Ve,Lt,"⊖","\\ominus",!0);he(Ce,Ve,Lt,"⊎","\\uplus",!0);he(Ce,Ve,Lt,"⊓","\\sqcap",!0);he(Ce,Ve,Lt,"∗","\\ast");he(Ce,Ve,Lt,"⊔","\\sqcup",!0);he(Ce,Ve,Lt,"◯","\\bigcirc",!0);he(Ce,Ve,Lt,"∙","\\bullet",!0);he(Ce,Ve,Lt,"‡","\\ddagger");he(Ce,Ve,Lt,"≀","\\wr",!0);he(Ce,Ve,Lt,"⨿","\\amalg");he(Ce,Ve,Lt,"&","\\And");he(Ce,Ve,ut,"⟵","\\longleftarrow",!0);he(Ce,Ve,ut,"⇐","\\Leftarrow",!0);he(Ce,Ve,ut,"⟸","\\Longleftarrow",!0);he(Ce,Ve,ut,"⟶","\\longrightarrow",!0);he(Ce,Ve,ut,"⇒","\\Rightarrow",!0);he(Ce,Ve,ut,"⟹","\\Longrightarrow",!0);he(Ce,Ve,ut,"↔","\\leftrightarrow",!0);he(Ce,Ve,ut,"⟷","\\longleftrightarrow",!0);he(Ce,Ve,ut,"⇔","\\Leftrightarrow",!0);he(Ce,Ve,ut,"⟺","\\Longleftrightarrow",!0);he(Ce,Ve,ut,"↦","\\mapsto",!0);he(Ce,Ve,ut,"⟼","\\longmapsto",!0);he(Ce,Ve,ut,"↗","\\nearrow",!0);he(Ce,Ve,ut,"↩","\\hookleftarrow",!0);he(Ce,Ve,ut,"↪","\\hookrightarrow",!0);he(Ce,Ve,ut,"↘","\\searrow",!0);he(Ce,Ve,ut,"↼","\\leftharpoonup",!0);he(Ce,Ve,ut,"⇀","\\rightharpoonup",!0);he(Ce,Ve,ut,"↙","\\swarrow",!0);he(Ce,Ve,ut,"↽","\\leftharpoondown",!0);he(Ce,Ve,ut,"⇁","\\rightharpoondown",!0);he(Ce,Ve,ut,"↖","\\nwarrow",!0);he(Ce,Ve,ut,"⇌","\\rightleftharpoons",!0);he(Ce,ot,ut,"≮","\\nless",!0);he(Ce,ot,ut,"","\\@nleqslant");he(Ce,ot,ut,"","\\@nleqq");he(Ce,ot,ut,"⪇","\\lneq",!0);he(Ce,ot,ut,"≨","\\lneqq",!0);he(Ce,ot,ut,"","\\@lvertneqq");he(Ce,ot,ut,"⋦","\\lnsim",!0);he(Ce,ot,ut,"⪉","\\lnapprox",!0);he(Ce,ot,ut,"⊀","\\nprec",!0);he(Ce,ot,ut,"⋠","\\npreceq",!0);he(Ce,ot,ut,"⋨","\\precnsim",!0);he(Ce,ot,ut,"⪹","\\precnapprox",!0);he(Ce,ot,ut,"≁","\\nsim",!0);he(Ce,ot,ut,"","\\@nshortmid");he(Ce,ot,ut,"∤","\\nmid",!0);he(Ce,ot,ut,"⊬","\\nvdash",!0);he(Ce,ot,ut,"⊭","\\nvDash",!0);he(Ce,ot,ut,"⋪","\\ntriangleleft");he(Ce,ot,ut,"⋬","\\ntrianglelefteq",!0);he(Ce,ot,ut,"⊊","\\subsetneq",!0);he(Ce,ot,ut,"","\\@varsubsetneq");he(Ce,ot,ut,"⫋","\\subsetneqq",!0);he(Ce,ot,ut,"","\\@varsubsetneqq");he(Ce,ot,ut,"≯","\\ngtr",!0);he(Ce,ot,ut,"","\\@ngeqslant");he(Ce,ot,ut,"","\\@ngeqq");he(Ce,ot,ut,"⪈","\\gneq",!0);he(Ce,ot,ut,"≩","\\gneqq",!0);he(Ce,ot,ut,"","\\@gvertneqq");he(Ce,ot,ut,"⋧","\\gnsim",!0);he(Ce,ot,ut,"⪊","\\gnapprox",!0);he(Ce,ot,ut,"⊁","\\nsucc",!0);he(Ce,ot,ut,"⋡","\\nsucceq",!0);he(Ce,ot,ut,"⋩","\\succnsim",!0);he(Ce,ot,ut,"⪺","\\succnapprox",!0);he(Ce,ot,ut,"≆","\\ncong",!0);he(Ce,ot,ut,"","\\@nshortparallel");he(Ce,ot,ut,"∦","\\nparallel",!0);he(Ce,ot,ut,"⊯","\\nVDash",!0);he(Ce,ot,ut,"⋫","\\ntriangleright");he(Ce,ot,ut,"⋭","\\ntrianglerighteq",!0);he(Ce,ot,ut,"","\\@nsupseteqq");he(Ce,ot,ut,"⊋","\\supsetneq",!0);he(Ce,ot,ut,"","\\@varsupsetneq");he(Ce,ot,ut,"⫌","\\supsetneqq",!0);he(Ce,ot,ut,"","\\@varsupsetneqq");he(Ce,ot,ut,"⊮","\\nVdash",!0);he(Ce,ot,ut,"⪵","\\precneqq",!0);he(Ce,ot,ut,"⪶","\\succneqq",!0);he(Ce,ot,ut,"","\\@nsubseteqq");he(Ce,ot,Lt,"⊴","\\unlhd");he(Ce,ot,Lt,"⊵","\\unrhd");he(Ce,ot,ut,"↚","\\nleftarrow",!0);he(Ce,ot,ut,"↛","\\nrightarrow",!0);he(Ce,ot,ut,"⇍","\\nLeftarrow",!0);he(Ce,ot,ut,"⇏","\\nRightarrow",!0);he(Ce,ot,ut,"↮","\\nleftrightarrow",!0);he(Ce,ot,ut,"⇎","\\nLeftrightarrow",!0);he(Ce,ot,ut,"△","\\vartriangle");he(Ce,ot,pt,"ℏ","\\hslash");he(Ce,ot,pt,"▽","\\triangledown");he(Ce,ot,pt,"◊","\\lozenge");he(Ce,ot,pt,"Ⓢ","\\circledS");he(Ce,ot,pt,"®","\\circledR");he(wt,ot,pt,"®","\\circledR");he(Ce,ot,pt,"∡","\\measuredangle",!0);he(Ce,ot,pt,"∄","\\nexists");he(Ce,ot,pt,"℧","\\mho");he(Ce,ot,pt,"Ⅎ","\\Finv",!0);he(Ce,ot,pt,"⅁","\\Game",!0);he(Ce,ot,pt,"‵","\\backprime");he(Ce,ot,pt,"▲","\\blacktriangle");he(Ce,ot,pt,"▼","\\blacktriangledown");he(Ce,ot,pt,"■","\\blacksquare");he(Ce,ot,pt,"⧫","\\blacklozenge");he(Ce,ot,pt,"★","\\bigstar");he(Ce,ot,pt,"∢","\\sphericalangle",!0);he(Ce,ot,pt,"∁","\\complement",!0);he(Ce,ot,pt,"ð","\\eth",!0);he(wt,Ve,pt,"ð","ð");he(Ce,ot,pt,"╱","\\diagup");he(Ce,ot,pt,"╲","\\diagdown");he(Ce,ot,pt,"□","\\square");he(Ce,ot,pt,"□","\\Box");he(Ce,ot,pt,"◊","\\Diamond");he(Ce,ot,pt,"¥","\\yen",!0);he(wt,ot,pt,"¥","\\yen",!0);he(Ce,ot,pt,"✓","\\checkmark",!0);he(wt,ot,pt,"✓","\\checkmark");he(Ce,ot,pt,"ℶ","\\beth",!0);he(Ce,ot,pt,"ℸ","\\daleth",!0);he(Ce,ot,pt,"ℷ","\\gimel",!0);he(Ce,ot,pt,"ϝ","\\digamma",!0);he(Ce,ot,pt,"ϰ","\\varkappa");he(Ce,ot,Mn,"┌","\\@ulcorner",!0);he(Ce,ot,dn,"┐","\\@urcorner",!0);he(Ce,ot,Mn,"└","\\@llcorner",!0);he(Ce,ot,dn,"┘","\\@lrcorner",!0);he(Ce,ot,ut,"≦","\\leqq",!0);he(Ce,ot,ut,"⩽","\\leqslant",!0);he(Ce,ot,ut,"⪕","\\eqslantless",!0);he(Ce,ot,ut,"≲","\\lesssim",!0);he(Ce,ot,ut,"⪅","\\lessapprox",!0);he(Ce,ot,ut,"≊","\\approxeq",!0);he(Ce,ot,Lt,"⋖","\\lessdot");he(Ce,ot,ut,"⋘","\\lll",!0);he(Ce,ot,ut,"≶","\\lessgtr",!0);he(Ce,ot,ut,"⋚","\\lesseqgtr",!0);he(Ce,ot,ut,"⪋","\\lesseqqgtr",!0);he(Ce,ot,ut,"≑","\\doteqdot");he(Ce,ot,ut,"≓","\\risingdotseq",!0);he(Ce,ot,ut,"≒","\\fallingdotseq",!0);he(Ce,ot,ut,"∽","\\backsim",!0);he(Ce,ot,ut,"⋍","\\backsimeq",!0);he(Ce,ot,ut,"⫅","\\subseteqq",!0);he(Ce,ot,ut,"⋐","\\Subset",!0);he(Ce,ot,ut,"⊏","\\sqsubset",!0);he(Ce,ot,ut,"≼","\\preccurlyeq",!0);he(Ce,ot,ut,"⋞","\\curlyeqprec",!0);he(Ce,ot,ut,"≾","\\precsim",!0);he(Ce,ot,ut,"⪷","\\precapprox",!0);he(Ce,ot,ut,"⊲","\\vartriangleleft");he(Ce,ot,ut,"⊴","\\trianglelefteq");he(Ce,ot,ut,"⊨","\\vDash",!0);he(Ce,ot,ut,"⊪","\\Vvdash",!0);he(Ce,ot,ut,"⌣","\\smallsmile");he(Ce,ot,ut,"⌢","\\smallfrown");he(Ce,ot,ut,"≏","\\bumpeq",!0);he(Ce,ot,ut,"≎","\\Bumpeq",!0);he(Ce,ot,ut,"≧","\\geqq",!0);he(Ce,ot,ut,"⩾","\\geqslant",!0);he(Ce,ot,ut,"⪖","\\eqslantgtr",!0);he(Ce,ot,ut,"≳","\\gtrsim",!0);he(Ce,ot,ut,"⪆","\\gtrapprox",!0);he(Ce,ot,Lt,"⋗","\\gtrdot");he(Ce,ot,ut,"⋙","\\ggg",!0);he(Ce,ot,ut,"≷","\\gtrless",!0);he(Ce,ot,ut,"⋛","\\gtreqless",!0);he(Ce,ot,ut,"⪌","\\gtreqqless",!0);he(Ce,ot,ut,"≖","\\eqcirc",!0);he(Ce,ot,ut,"≗","\\circeq",!0);he(Ce,ot,ut,"≜","\\triangleq",!0);he(Ce,ot,ut,"∼","\\thicksim");he(Ce,ot,ut,"≈","\\thickapprox");he(Ce,ot,ut,"⫆","\\supseteqq",!0);he(Ce,ot,ut,"⋑","\\Supset",!0);he(Ce,ot,ut,"⊐","\\sqsupset",!0);he(Ce,ot,ut,"≽","\\succcurlyeq",!0);he(Ce,ot,ut,"⋟","\\curlyeqsucc",!0);he(Ce,ot,ut,"≿","\\succsim",!0);he(Ce,ot,ut,"⪸","\\succapprox",!0);he(Ce,ot,ut,"⊳","\\vartriangleright");he(Ce,ot,ut,"⊵","\\trianglerighteq");he(Ce,ot,ut,"⊩","\\Vdash",!0);he(Ce,ot,ut,"∣","\\shortmid");he(Ce,ot,ut,"∥","\\shortparallel");he(Ce,ot,ut,"≬","\\between",!0);he(Ce,ot,ut,"⋔","\\pitchfork",!0);he(Ce,ot,ut,"∝","\\varpropto");he(Ce,ot,ut,"◀","\\blacktriangleleft");he(Ce,ot,ut,"∴","\\therefore",!0);he(Ce,ot,ut,"∍","\\backepsilon");he(Ce,ot,ut,"▶","\\blacktriangleright");he(Ce,ot,ut,"∵","\\because",!0);he(Ce,ot,ut,"⋘","\\llless");he(Ce,ot,ut,"⋙","\\gggtr");he(Ce,ot,Lt,"⊲","\\lhd");he(Ce,ot,Lt,"⊳","\\rhd");he(Ce,ot,ut,"≂","\\eqsim",!0);he(Ce,Ve,ut,"⋈","\\Join");he(Ce,ot,ut,"≑","\\Doteq",!0);he(Ce,ot,Lt,"∔","\\dotplus",!0);he(Ce,ot,Lt,"∖","\\smallsetminus");he(Ce,ot,Lt,"⋒","\\Cap",!0);he(Ce,ot,Lt,"⋓","\\Cup",!0);he(Ce,ot,Lt,"⩞","\\doublebarwedge",!0);he(Ce,ot,Lt,"⊟","\\boxminus",!0);he(Ce,ot,Lt,"⊞","\\boxplus",!0);he(Ce,ot,Lt,"⋇","\\divideontimes",!0);he(Ce,ot,Lt,"⋉","\\ltimes",!0);he(Ce,ot,Lt,"⋊","\\rtimes",!0);he(Ce,ot,Lt,"⋋","\\leftthreetimes",!0);he(Ce,ot,Lt,"⋌","\\rightthreetimes",!0);he(Ce,ot,Lt,"⋏","\\curlywedge",!0);he(Ce,ot,Lt,"⋎","\\curlyvee",!0);he(Ce,ot,Lt,"⊝","\\circleddash",!0);he(Ce,ot,Lt,"⊛","\\circledast",!0);he(Ce,ot,Lt,"⋅","\\centerdot");he(Ce,ot,Lt,"⊺","\\intercal",!0);he(Ce,ot,Lt,"⋒","\\doublecap");he(Ce,ot,Lt,"⋓","\\doublecup");he(Ce,ot,Lt,"⊠","\\boxtimes",!0);he(Ce,ot,ut,"⇢","\\dashrightarrow",!0);he(Ce,ot,ut,"⇠","\\dashleftarrow",!0);he(Ce,ot,ut,"⇇","\\leftleftarrows",!0);he(Ce,ot,ut,"⇆","\\leftrightarrows",!0);he(Ce,ot,ut,"⇚","\\Lleftarrow",!0);he(Ce,ot,ut,"↞","\\twoheadleftarrow",!0);he(Ce,ot,ut,"↢","\\leftarrowtail",!0);he(Ce,ot,ut,"↫","\\looparrowleft",!0);he(Ce,ot,ut,"⇋","\\leftrightharpoons",!0);he(Ce,ot,ut,"↶","\\curvearrowleft",!0);he(Ce,ot,ut,"↺","\\circlearrowleft",!0);he(Ce,ot,ut,"↰","\\Lsh",!0);he(Ce,ot,ut,"⇈","\\upuparrows",!0);he(Ce,ot,ut,"↿","\\upharpoonleft",!0);he(Ce,ot,ut,"⇃","\\downharpoonleft",!0);he(Ce,Ve,ut,"⊶","\\origof",!0);he(Ce,Ve,ut,"⊷","\\imageof",!0);he(Ce,ot,ut,"⊸","\\multimap",!0);he(Ce,ot,ut,"↭","\\leftrightsquigarrow",!0);he(Ce,ot,ut,"⇉","\\rightrightarrows",!0);he(Ce,ot,ut,"⇄","\\rightleftarrows",!0);he(Ce,ot,ut,"↠","\\twoheadrightarrow",!0);he(Ce,ot,ut,"↣","\\rightarrowtail",!0);he(Ce,ot,ut,"↬","\\looparrowright",!0);he(Ce,ot,ut,"↷","\\curvearrowright",!0);he(Ce,ot,ut,"↻","\\circlearrowright",!0);he(Ce,ot,ut,"↱","\\Rsh",!0);he(Ce,ot,ut,"⇊","\\downdownarrows",!0);he(Ce,ot,ut,"↾","\\upharpoonright",!0);he(Ce,ot,ut,"⇂","\\downharpoonright",!0);he(Ce,ot,ut,"⇝","\\rightsquigarrow",!0);he(Ce,ot,ut,"⇝","\\leadsto");he(Ce,ot,ut,"⇛","\\Rrightarrow",!0);he(Ce,ot,ut,"↾","\\restriction");he(Ce,Ve,pt,"‘","`");he(Ce,Ve,pt,"$","\\$");he(wt,Ve,pt,"$","\\$");he(wt,Ve,pt,"$","\\textdollar");he(Ce,Ve,pt,"%","\\%");he(wt,Ve,pt,"%","\\%");he(Ce,Ve,pt,"_","\\_");he(wt,Ve,pt,"_","\\_");he(wt,Ve,pt,"_","\\textunderscore");he(Ce,Ve,pt,"∠","\\angle",!0);he(Ce,Ve,pt,"∞","\\infty",!0);he(Ce,Ve,pt,"′","\\prime");he(Ce,Ve,pt,"△","\\triangle");he(Ce,Ve,pt,"Γ","\\Gamma",!0);he(Ce,Ve,pt,"Δ","\\Delta",!0);he(Ce,Ve,pt,"Θ","\\Theta",!0);he(Ce,Ve,pt,"Λ","\\Lambda",!0);he(Ce,Ve,pt,"Ξ","\\Xi",!0);he(Ce,Ve,pt,"Π","\\Pi",!0);he(Ce,Ve,pt,"Σ","\\Sigma",!0);he(Ce,Ve,pt,"Υ","\\Upsilon",!0);he(Ce,Ve,pt,"Φ","\\Phi",!0);he(Ce,Ve,pt,"Ψ","\\Psi",!0);he(Ce,Ve,pt,"Ω","\\Omega",!0);he(Ce,Ve,pt,"A","Α");he(Ce,Ve,pt,"B","Β");he(Ce,Ve,pt,"E","Ε");he(Ce,Ve,pt,"Z","Ζ");he(Ce,Ve,pt,"H","Η");he(Ce,Ve,pt,"I","Ι");he(Ce,Ve,pt,"K","Κ");he(Ce,Ve,pt,"M","Μ");he(Ce,Ve,pt,"N","Ν");he(Ce,Ve,pt,"O","Ο");he(Ce,Ve,pt,"P","Ρ");he(Ce,Ve,pt,"T","Τ");he(Ce,Ve,pt,"X","Χ");he(Ce,Ve,pt,"¬","\\neg",!0);he(Ce,Ve,pt,"¬","\\lnot");he(Ce,Ve,pt,"⊤","\\top");he(Ce,Ve,pt,"⊥","\\bot");he(Ce,Ve,pt,"∅","\\emptyset");he(Ce,ot,pt,"∅","\\varnothing");he(Ce,Ve,jt,"α","\\alpha",!0);he(Ce,Ve,jt,"β","\\beta",!0);he(Ce,Ve,jt,"γ","\\gamma",!0);he(Ce,Ve,jt,"δ","\\delta",!0);he(Ce,Ve,jt,"ϵ","\\epsilon",!0);he(Ce,Ve,jt,"ζ","\\zeta",!0);he(Ce,Ve,jt,"η","\\eta",!0);he(Ce,Ve,jt,"θ","\\theta",!0);he(Ce,Ve,jt,"ι","\\iota",!0);he(Ce,Ve,jt,"κ","\\kappa",!0);he(Ce,Ve,jt,"λ","\\lambda",!0);he(Ce,Ve,jt,"μ","\\mu",!0);he(Ce,Ve,jt,"ν","\\nu",!0);he(Ce,Ve,jt,"ξ","\\xi",!0);he(Ce,Ve,jt,"ο","\\omicron",!0);he(Ce,Ve,jt,"π","\\pi",!0);he(Ce,Ve,jt,"ρ","\\rho",!0);he(Ce,Ve,jt,"σ","\\sigma",!0);he(Ce,Ve,jt,"τ","\\tau",!0);he(Ce,Ve,jt,"υ","\\upsilon",!0);he(Ce,Ve,jt,"ϕ","\\phi",!0);he(Ce,Ve,jt,"χ","\\chi",!0);he(Ce,Ve,jt,"ψ","\\psi",!0);he(Ce,Ve,jt,"ω","\\omega",!0);he(Ce,Ve,jt,"ε","\\varepsilon",!0);he(Ce,Ve,jt,"ϑ","\\vartheta",!0);he(Ce,Ve,jt,"ϖ","\\varpi",!0);he(Ce,Ve,jt,"ϱ","\\varrho",!0);he(Ce,Ve,jt,"ς","\\varsigma",!0);he(Ce,Ve,jt,"φ","\\varphi",!0);he(Ce,Ve,Lt,"∗","*",!0);he(Ce,Ve,Lt,"+","+");he(Ce,Ve,Lt,"−","-",!0);he(Ce,Ve,Lt,"⋅","\\cdot",!0);he(Ce,Ve,Lt,"∘","\\circ",!0);he(Ce,Ve,Lt,"÷","\\div",!0);he(Ce,Ve,Lt,"±","\\pm",!0);he(Ce,Ve,Lt,"×","\\times",!0);he(Ce,Ve,Lt,"∩","\\cap",!0);he(Ce,Ve,Lt,"∪","\\cup",!0);he(Ce,Ve,Lt,"∖","\\setminus",!0);he(Ce,Ve,Lt,"∧","\\land");he(Ce,Ve,Lt,"∨","\\lor");he(Ce,Ve,Lt,"∧","\\wedge",!0);he(Ce,Ve,Lt,"∨","\\vee",!0);he(Ce,Ve,pt,"√","\\surd");he(Ce,Ve,Mn,"⟨","\\langle",!0);he(Ce,Ve,Mn,"∣","\\lvert");he(Ce,Ve,Mn,"∥","\\lVert");he(Ce,Ve,dn,"?","?");he(Ce,Ve,dn,"!","!");he(Ce,Ve,dn,"⟩","\\rangle",!0);he(Ce,Ve,dn,"∣","\\rvert");he(Ce,Ve,dn,"∥","\\rVert");he(Ce,Ve,ut,"=","=");he(Ce,Ve,ut,":",":");he(Ce,Ve,ut,"≈","\\approx",!0);he(Ce,Ve,ut,"≅","\\cong",!0);he(Ce,Ve,ut,"≥","\\ge");he(Ce,Ve,ut,"≥","\\geq",!0);he(Ce,Ve,ut,"←","\\gets");he(Ce,Ve,ut,">","\\gt",!0);he(Ce,Ve,ut,"∈","\\in",!0);he(Ce,Ve,ut,"","\\@not");he(Ce,Ve,ut,"⊂","\\subset",!0);he(Ce,Ve,ut,"⊃","\\supset",!0);he(Ce,Ve,ut,"⊆","\\subseteq",!0);he(Ce,Ve,ut,"⊇","\\supseteq",!0);he(Ce,ot,ut,"⊈","\\nsubseteq",!0);he(Ce,ot,ut,"⊉","\\nsupseteq",!0);he(Ce,Ve,ut,"⊨","\\models");he(Ce,Ve,ut,"←","\\leftarrow",!0);he(Ce,Ve,ut,"≤","\\le");he(Ce,Ve,ut,"≤","\\leq",!0);he(Ce,Ve,ut,"<","\\lt",!0);he(Ce,Ve,ut,"→","\\rightarrow",!0);he(Ce,Ve,ut,"→","\\to");he(Ce,ot,ut,"≱","\\ngeq",!0);he(Ce,ot,ut,"≰","\\nleq",!0);he(Ce,Ve,qi," ","\\ ");he(Ce,Ve,qi," ","\\space");he(Ce,Ve,qi," ","\\nobreakspace");he(wt,Ve,qi," ","\\ ");he(wt,Ve,qi," "," ");he(wt,Ve,qi," ","\\space");he(wt,Ve,qi," ","\\nobreakspace");he(Ce,Ve,qi,"","\\nobreak");he(Ce,Ve,qi,"","\\allowbreak");he(Ce,Ve,Ql,",",",");he(Ce,Ve,Ql,";",";");he(Ce,ot,Lt,"⊼","\\barwedge",!0);he(Ce,ot,Lt,"⊻","\\veebar",!0);he(Ce,Ve,Lt,"⊙","\\odot",!0);he(Ce,Ve,Lt,"⊕","\\oplus",!0);he(Ce,Ve,Lt,"⊗","\\otimes",!0);he(Ce,Ve,pt,"∂","\\partial",!0);he(Ce,Ve,Lt,"⊘","\\oslash",!0);he(Ce,ot,Lt,"⊚","\\circledcirc",!0);he(Ce,ot,Lt,"⊡","\\boxdot",!0);he(Ce,Ve,Lt,"△","\\bigtriangleup");he(Ce,Ve,Lt,"▽","\\bigtriangledown");he(Ce,Ve,Lt,"†","\\dagger");he(Ce,Ve,Lt,"⋄","\\diamond");he(Ce,Ve,Lt,"⋆","\\star");he(Ce,Ve,Lt,"◃","\\triangleleft");he(Ce,Ve,Lt,"▹","\\triangleright");he(Ce,Ve,Mn,"{","\\{");he(wt,Ve,pt,"{","\\{");he(wt,Ve,pt,"{","\\textbraceleft");he(Ce,Ve,dn,"}","\\}");he(wt,Ve,pt,"}","\\}");he(wt,Ve,pt,"}","\\textbraceright");he(Ce,Ve,Mn,"{","\\lbrace");he(Ce,Ve,dn,"}","\\rbrace");he(Ce,Ve,Mn,"[","\\lbrack",!0);he(wt,Ve,pt,"[","\\lbrack",!0);he(Ce,Ve,dn,"]","\\rbrack",!0);he(wt,Ve,pt,"]","\\rbrack",!0);he(Ce,Ve,Mn,"(","\\lparen",!0);he(Ce,Ve,dn,")","\\rparen",!0);he(wt,Ve,pt,"<","\\textless",!0);he(wt,Ve,pt,">","\\textgreater",!0);he(Ce,Ve,Mn,"⌊","\\lfloor",!0);he(Ce,Ve,dn,"⌋","\\rfloor",!0);he(Ce,Ve,Mn,"⌈","\\lceil",!0);he(Ce,Ve,dn,"⌉","\\rceil",!0);he(Ce,Ve,pt,"\\","\\backslash");he(Ce,Ve,pt,"∣","|");he(Ce,Ve,pt,"∣","\\vert");he(wt,Ve,pt,"|","\\textbar",!0);he(Ce,Ve,pt,"∥","\\|");he(Ce,Ve,pt,"∥","\\Vert");he(wt,Ve,pt,"∥","\\textbardbl");he(wt,Ve,pt,"~","\\textasciitilde");he(wt,Ve,pt,"\\","\\textbackslash");he(wt,Ve,pt,"^","\\textasciicircum");he(Ce,Ve,ut,"↑","\\uparrow",!0);he(Ce,Ve,ut,"⇑","\\Uparrow",!0);he(Ce,Ve,ut,"↓","\\downarrow",!0);he(Ce,Ve,ut,"⇓","\\Downarrow",!0);he(Ce,Ve,ut,"↕","\\updownarrow",!0);he(Ce,Ve,ut,"⇕","\\Updownarrow",!0);he(Ce,Ve,Ir,"∐","\\coprod");he(Ce,Ve,Ir,"⋁","\\bigvee");he(Ce,Ve,Ir,"⋀","\\bigwedge");he(Ce,Ve,Ir,"⨄","\\biguplus");he(Ce,Ve,Ir,"⋂","\\bigcap");he(Ce,Ve,Ir,"⋃","\\bigcup");he(Ce,Ve,Ir,"∫","\\int");he(Ce,Ve,Ir,"∫","\\intop");he(Ce,Ve,Ir,"∬","\\iint");he(Ce,Ve,Ir,"∭","\\iiint");he(Ce,Ve,Ir,"∏","\\prod");he(Ce,Ve,Ir,"∑","\\sum");he(Ce,Ve,Ir,"⨂","\\bigotimes");he(Ce,Ve,Ir,"⨁","\\bigoplus");he(Ce,Ve,Ir,"⨀","\\bigodot");he(Ce,Ve,Ir,"∮","\\oint");he(Ce,Ve,Ir,"∯","\\oiint");he(Ce,Ve,Ir,"∰","\\oiiint");he(Ce,Ve,Ir,"⨆","\\bigsqcup");he(Ce,Ve,Ir,"∫","\\smallint");he(wt,Ve,ja,"…","\\textellipsis");he(Ce,Ve,ja,"…","\\mathellipsis");he(wt,Ve,ja,"…","\\ldots",!0);he(Ce,Ve,ja,"…","\\ldots",!0);he(Ce,Ve,ja,"⋯","\\@cdots",!0);he(Ce,Ve,ja,"⋱","\\ddots",!0);he(Ce,Ve,pt,"⋮","\\varvdots");he(wt,Ve,pt,"⋮","\\varvdots");he(Ce,Ve,_r,"ˊ","\\acute");he(Ce,Ve,_r,"ˋ","\\grave");he(Ce,Ve,_r,"¨","\\ddot");he(Ce,Ve,_r,"~","\\tilde");he(Ce,Ve,_r,"ˉ","\\bar");he(Ce,Ve,_r,"˘","\\breve");he(Ce,Ve,_r,"ˇ","\\check");he(Ce,Ve,_r,"^","\\hat");he(Ce,Ve,_r,"⃗","\\vec");he(Ce,Ve,_r,"˙","\\dot");he(Ce,Ve,_r,"˚","\\mathring");he(Ce,Ve,jt,"","\\@imath");he(Ce,Ve,jt,"","\\@jmath");he(Ce,Ve,pt,"ı","ı");he(Ce,Ve,pt,"ȷ","ȷ");he(wt,Ve,pt,"ı","\\i",!0);he(wt,Ve,pt,"ȷ","\\j",!0);he(wt,Ve,pt,"ß","\\ss",!0);he(wt,Ve,pt,"æ","\\ae",!0);he(wt,Ve,pt,"œ","\\oe",!0);he(wt,Ve,pt,"ø","\\o",!0);he(wt,Ve,pt,"Æ","\\AE",!0);he(wt,Ve,pt,"Œ","\\OE",!0);he(wt,Ve,pt,"Ø","\\O",!0);he(wt,Ve,_r,"ˊ","\\'");he(wt,Ve,_r,"ˋ","\\`");he(wt,Ve,_r,"ˆ","\\^");he(wt,Ve,_r,"˜","\\~");he(wt,Ve,_r,"ˉ","\\=");he(wt,Ve,_r,"˘","\\u");he(wt,Ve,_r,"˙","\\.");he(wt,Ve,_r,"¸","\\c");he(wt,Ve,_r,"˚","\\r");he(wt,Ve,_r,"ˇ","\\v");he(wt,Ve,_r,"¨",'\\"');he(wt,Ve,_r,"˝","\\H");he(wt,Ve,_r,"◯","\\textcircled");var J1={"--":!0,"---":!0,"``":!0,"''":!0};he(wt,Ve,pt,"–","--",!0);he(wt,Ve,pt,"–","\\textendash");he(wt,Ve,pt,"—","---",!0);he(wt,Ve,pt,"—","\\textemdash");he(wt,Ve,pt,"‘","`",!0);he(wt,Ve,pt,"‘","\\textquoteleft");he(wt,Ve,pt,"’","'",!0);he(wt,Ve,pt,"’","\\textquoteright");he(wt,Ve,pt,"“","``",!0);he(wt,Ve,pt,"“","\\textquotedblleft");he(wt,Ve,pt,"”","''",!0);he(wt,Ve,pt,"”","\\textquotedblright");he(Ce,Ve,pt,"°","\\degree",!0);he(wt,Ve,pt,"°","\\degree");he(wt,Ve,pt,"°","\\textdegree",!0);he(Ce,Ve,pt,"£","\\pounds");he(Ce,Ve,pt,"£","\\mathsterling",!0);he(wt,Ve,pt,"£","\\pounds");he(wt,Ve,pt,"£","\\textsterling",!0);he(Ce,ot,pt,"✠","\\maltese");he(wt,ot,pt,"✠","\\maltese");var rp='0123456789/@."';for(var Bc=0;Bc<rp.length;Bc++){var np=rp.charAt(Bc);he(Ce,Ve,pt,np,np)}var ip='0123456789!@*()-=+";:?/.,';for(var jc=0;jc<ip.length;jc++){var sp=ip.charAt(jc);he(wt,Ve,pt,sp,sp)}var gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Pc=0;Pc<gu.length;Pc++){var vo=gu.charAt(Pc);he(Ce,Ve,jt,vo,vo),he(wt,Ve,pt,vo,vo)}he(Ce,ot,pt,"C","ℂ");he(wt,ot,pt,"C","ℂ");he(Ce,ot,pt,"H","ℍ");he(wt,ot,pt,"H","ℍ");he(Ce,ot,pt,"N","ℕ");he(wt,ot,pt,"N","ℕ");he(Ce,ot,pt,"P","ℙ");he(wt,ot,pt,"P","ℙ");he(Ce,ot,pt,"Q","ℚ");he(wt,ot,pt,"Q","ℚ");he(Ce,ot,pt,"R","ℝ");he(wt,ot,pt,"R","ℝ");he(Ce,ot,pt,"Z","ℤ");he(wt,ot,pt,"Z","ℤ");he(Ce,Ve,jt,"h","ℎ");he(wt,Ve,jt,"h","ℎ");var Vt;for(var nn=0;nn<gu.length;nn++){var xr=gu.charAt(nn);Vt=String.fromCharCode(55349,56320+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56372+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56424+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56580+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56684+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56736+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56788+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56840+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56944+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),nn<26&&(Vt=String.fromCharCode(55349,56632+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt),Vt=String.fromCharCode(55349,56476+nn),he(Ce,Ve,jt,xr,Vt),he(wt,Ve,pt,xr,Vt))}Vt="𝕜";he(Ce,Ve,jt,"k",Vt);he(wt,Ve,pt,"k",Vt);for(var ms=0;ms<10;ms++){var Bi=ms.toString();Vt=String.fromCharCode(55349,57294+ms),he(Ce,Ve,jt,Bi,Vt),he(wt,Ve,pt,Bi,Vt),Vt=String.fromCharCode(55349,57314+ms),he(Ce,Ve,jt,Bi,Vt),he(wt,Ve,pt,Bi,Vt),Vt=String.fromCharCode(55349,57324+ms),he(Ce,Ve,jt,Bi,Vt),he(wt,Ve,pt,Bi,Vt),Vt=String.fromCharCode(55349,57334+ms),he(Ce,Ve,jt,Bi,Vt),he(wt,Ve,pt,Bi,Vt)}var gf="ÐÞþ";for(var Uc=0;Uc<gf.length;Uc++){var yo=gf.charAt(Uc);he(Ce,Ve,jt,yo,yo),he(wt,Ve,pt,yo,yo)}var vf={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},ap={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},lp={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},T3={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},xs={mathClass:"",textClass:"",font:""},op={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},up={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},cp={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},yf={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},bf={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},$p={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},xf={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},fp=[vf,vf,ap,ap,lp,lp,T3,xs,xs,xs,op,op,up,up,cp,cp,yf,yf,bf,bf,$p,$p,xs,xs,xf,xf],z3=[vf,xs,yf,bf,xf],R3=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 fp[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return z3[s]}else{if(n===120485||n===120486)return fp[0];if(120486<n&&n<120782)return xs;throw new zt("Unsupported character: "+e)}},Ku=function(t,r,n){if(pr[n][t]){var i=pr[n][t].replace;i&&(t=i)}return{value:t,metrics:od(t,r,n)}},an=function(t,r,n,i,s){var c=Ku(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 I=i.getColor();I&&(p.style.color=I)}return p},ud=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Ku(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"]))},N3=function(t,r,n){return n!=="textord"&&Ku(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Xu=function(t,r,n){var i=t.mode,s=t.text,c=["mord"],{font:f,fontFamily:p,fontWeight:h,fontShape:I}=r,L=i==="math"||i==="text"&&!!f,H=L?f:p,pe="",be="";if(s.charCodeAt(0)===55349){var re=R3(s);pe=re.font,be=re[i+"Class"]}if(pe)return an(s,pe,i,r,c.concat(be));if(H){var W,X;if(H==="boldsymbol"){var ge=N3(s,i,n);W=ge.fontName,X=[ge.fontClass]}else L?(W=wf[f].fontName,X=[f]):(W=bo(p,h,I),X=[p,h,I]);if(Ku(s,W,i).metrics)return an(s,W,i,r,c.concat(X));if(J1.hasOwnProperty(s)&&W.slice(0,10)==="Typewriter"){for(var se=[],me=0;me<s.length;me++)se.push(an(s[me],W,i,r,c.concat(X)));return Mi(se)}}if(n==="mathord")return an(s,"Math-Italic",i,r,c.concat(["mathnormal"]));if(n==="textord"){var J=pr[i][s]&&pr[i][s].font;if(J==="ams"){var xe=bo("amsrm",h,I);return an(s,xe,i,r,c.concat("amsrm",h,I))}else if(J==="main"||!J){var fe=bo("textrm",h,I);return an(s,fe,i,r,c.concat(h,I))}else{var Ae=bo(J,h,I);return an(s,Ae,i,r,c.concat(Ae,h,I))}}else throw new Error("unexpected type: "+n+" in makeOrd")},I3=(e,t)=>{if(as(e.classes)!==as(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},O1=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Rn&&n instanceof Rn&&I3(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},cd=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>i&&(i=c.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},kt=function(t,r,n,i){var s=new Ba(t,r,n,i);return cd(s),s},os=(e,t,r,n)=>new Ba(e,t,r,n),Aa=function(t,r,n){var i=kt([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Nt(i.height),i.maxFontSize=1,i},q3=function(t,r,n,i){var s=new Gu(t,r,n,i);return cd(s),s},Mi=function(t){var r=new Fa(t);return cd(r),r},Ea=function(t,r){return t instanceof Fa?kt([],[t],r):t},M3=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,c=1;c<r.length;c++){var f=-r[c].shift-s-r[c].elem.depth,p=f-(r[c-1].elem.height+r[c-1].elem.depth);s=s+f,n.push({type:"kern",size:p}),n.push(r[c])}return{children:n,depth:i}}var h;if(t.positionType==="top"){for(var I=t.positionData,L=0;L<t.children.length;L++){var H=t.children[L];I-=H.type==="kern"?H.size:H.elem.height+H.elem.depth}h=I}else if(t.positionType==="bottom")h=-t.positionData;else{var pe=t.children[0];if(pe.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-pe.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-pe.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},ir=function(t,r){for(var{children:n,depth:i}=M3(t),s=0,c=0;c<n.length;c++){var f=n[c];if(f.type==="elem"){var p=f.elem;s=Math.max(s,p.maxFontSize,p.height)}}s+=2;var h=kt(["pstrut"],[]);h.style.height=Nt(s);for(var I=[],L=i,H=i,pe=i,be=0;be<n.length;be++){var re=n[be];if(re.type==="kern")pe+=re.size;else{var W=re.elem,X=re.wrapperClasses||[],ge=re.wrapperStyle||{},se=kt(X,[h,W],void 0,ge);se.style.top=Nt(-s-pe-W.depth),re.marginLeft&&(se.style.marginLeft=re.marginLeft),re.marginRight&&(se.style.marginRight=re.marginRight),I.push(se),pe+=W.height+W.depth}L=Math.min(L,pe),H=Math.max(H,pe)}var me=kt(["vlist"],I);me.style.height=Nt(H);var J;if(L<0){var xe=kt([],[]),fe=kt(["vlist"],[xe]);fe.style.height=Nt(-L);var Ae=kt(["vlist-s"],[new Rn("​")]);J=[kt(["vlist-r"],[me,Ae]),kt(["vlist-r"],[fe])]}else J=[kt(["vlist-r"],[me])];var O=kt(["vlist-t"],J);return J.length===2&&O.classes.push("vlist-t2"),O.height=H,O.depth=-L,O},eg=(e,t)=>{var r=kt(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=Nt(n),r},bo=(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},wf={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"}},tg={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},rg=function(t,r){var[n,i,s]=tg[t],c=new ls(n),f=new zi([c],{width:Nt(i),height:Nt(s),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),p=os(["overlay"],[f],r);return p.height=s,p.style.height=Nt(s),p.style.width=Nt(i),p},mr={number:3,unit:"mu"},gs={number:4,unit:"mu"},mi={number:5,unit:"mu"},D3={mord:{mop:mr,mbin:gs,mrel:mi,minner:mr},mop:{mord:mr,mop:mr,mrel:mi,minner:mr},mbin:{mord:gs,mop:gs,mopen:gs,minner:gs},mrel:{mord:mi,mop:mi,mopen:mi,minner:mi},mopen:{},mclose:{mop:mr,mbin:gs,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:gs,mrel:mi,mopen:mr,mpunct:mr,minner:mr}},L3={mord:{mop:mr},mop:{mord:mr,mop:mr},mbin:{},mrel:{},mopen:{},mclose:{mop:mr},mpunct:{},minner:{mop:mr}},ng={},vu={},yu={};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)ng[r[p]]=f;t&&(s&&(vu[t]=s),c&&(yu[t]=c))}function js(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 bu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Rr=function(t){return t.type==="ordgroup"?t.body:[t]},F3=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),B3=new Set(["rightmost","mrel","mclose","mpunct"]),j3={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},P3={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 Fa){var p=f.children;s.push(...p)}else s.push(f)}if(O1(s),!n)return s;var h=r;if(t.length===1){var I=t[0];I.type==="sizing"?h=r.havingSize(I.size):I.type==="styling"&&(h=r.havingStyle(j3[I.style]))}var L=kt([i[0]||"leftmost"],[],r),H=kt([i[1]||"rightmost"],[],r),pe=n==="root";return kf(s,(be,re)=>{var W=re.classes[0],X=be.classes[0];W==="mbin"&&B3.has(X)?re.classes[0]="mord":X==="mbin"&&F3.has(W)&&(be.classes[0]="mord")},{node:L},H,pe),kf(s,(be,re)=>{var W,X,ge=Af(re),se=Af(be),me=ge&&se?be.hasClass("mtight")?(W=L3[ge])==null?void 0:W[se]:(X=D3[ge])==null?void 0:X[se]:null;if(me)return eg(me,h)},{node:L},H,pe),s},kf=function(t,r,n,i,s){i&&t.push(i);for(var c=0;c<t.length;c++){var f=t[c],p=ig(f);if(p){kf(p.children,r,n,null,s);continue}var h=!f.hasClass("mspace");if(h){var I=r(f,n.node);I&&(n.insertAfter?n.insertAfter(I):(t.unshift(I),c++))}h?n.node=f:s&&f.hasClass("newline")&&(n.node=kt(["leftmost"])),n.insertAfter=(L=>H=>{t.splice(L+1,0,H),c++})(c)}i&&t.pop()},ig=function(t){return t instanceof Fa||t instanceof Gu||t instanceof Ba&&t.hasClass("enclosing")?t:null},Sf=function(t,r){var n=ig(t);if(n){var i=n.children;if(i.length){if(r==="right")return Sf(i[i.length-1],"right");if(r==="left")return Sf(i[0],"left")}}return t},Af=function(t,r){if(!t)return null;r&&(t=Sf(t,r));var n=t.classes[0];return P3[n]||null},Pl=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return kt(r.concat(n))},sr=function(t,r,n){if(!t)return kt();if(vu[t.type]){var i=vu[t.type](t,r);if(n&&r.size!==n.size){i=kt(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new zt("Got group of unknown type: '"+t.type+"'")};function xo(e,t){var r=kt(["base"],e,t),n=kt(["strut"]);return n.style.height=Nt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Nt(-r.depth)),r.children.unshift(n),r}function Ef(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(xo(c,t)),c=[])}else n[f].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(xo(c,t)),c=[]),s.push(n[f]));c.length>0&&s.push(xo(c,t));var h;r?(h=xo(Lr(r,t,!0),t),h.classes=["tag"],s.push(h)):i&&s.push(i);var I=kt(["katex-html"],s);if(I.setAttribute("aria-hidden","true"),h){var L=h.children[0];L.style.height=Nt(I.height+I.depth),I.depth&&(L.style.verticalAlign=Nt(-I.depth))}return I}function sg(e){return new Fa(e)}class Rt{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=as(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(as(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 ag{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Nt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Nt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var U3=new Set(["\\imath","\\jmath"]),H3=new Set(["mrow","mtable"]),Wn=function(t,r,n){return pr[r][t]&&pr[r][t].replace&&t.charCodeAt(0)!==55349&&!(J1.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)},$d=function(t){return t.length===1?t[0]:new Rt("mrow",t)},V3={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"},fd=(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=V3[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(U3.has(s))return null;if(pr[n][s]){var c=pr[n][s].replace;c&&(s=c)}var f=wf[r].fontName;return od(s,f,n)?wf[r].variant:null};function Hc(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 Rt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],c,f=0;f<t.length;f++){var p=or(t[f],r);if(p instanceof Rt&&c instanceof Rt){if(p.type==="mtext"&&c.type==="mtext"&&p.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...p.children);continue}else if(p.type==="mn"&&c.type==="mn"){c.children.push(...p.children);continue}else if(Hc(p)&&c.type==="mn"){c.children.push(...p.children);continue}else if(p.type==="mn"&&Hc(c))p.children=[...c.children,...p.children],s.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(c.type==="mn"||Hc(c))){var h=p.children[0];h instanceof Rt&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var I=c.children[0];if(I instanceof Nr&&I.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var L=p.children[0];L instanceof Nr&&L.text.length>0&&(L.text=L.text.slice(0,1)+"̸"+L.text.slice(1),s.pop())}}}s.push(p),c=p}return s},us=function(t,r,n){return $d(Dn(t,r,n))},or=function(t,r){if(!t)return new Rt("mrow");if(yu[t.type])return yu[t.type](t,r);throw new zt("Got group of unknown type: '"+t.type+"'")};function dp(e,t,r,n,i){var s=Dn(e,r),c;s.length===1&&s[0]instanceof Rt&&H3.has(s[0].type)?c=s[0]:c=new Rt("mrow",s);var f=new Rt("annotation",[new Nr(t)]);f.setAttribute("encoding","application/x-tex");var p=new Rt("semantics",[c,f]),h=new Rt("math",[p]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var I=i?"katex":"katex-mathml";return kt([I],[h])}var W3=[[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]],hp=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],pp=function(t,r){return r.size<2?t:W3[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=hp[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:pp(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:hp[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=pp(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=C3(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}bi.BASESIZE=6;var lg=function(t){return new bi({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},og=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=kt(n,[t])}return t},Y3=function(t,r,n){var i=lg(n),s;if(n.output==="mathml")return dp(t,r,i,n.displayMode,!0);if(n.output==="html"){var c=Ef(t,i);s=kt(["katex"],[c])}else{var f=dp(t,r,i,n.displayMode,!1),p=Ef(t,i);s=kt(["katex"],[f,p])}return og(s,n)},G3=function(t,r,n){var i=lg(n),s=Ef(t,i),c=kt(["katex"],[s]);return og(c,n)},K3={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":"="},Qu=function(t){var r=new Rt("mo",[new Nr(K3[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},X3={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]},Q3=new Set(["widehat","widecheck","widetilde","utilde"]),Zu=function(t,r){function n(){var f=4e5,p=t.label.slice(1);if(Q3.has(p)&&"base"in t){var h=t.base.type==="ordgroup"?t.base.body.length:1,I,L,H;if(h>5)p==="widehat"||p==="widecheck"?(I=420,f=2364,H=.42,L=p+"4"):(I=312,f=2340,H=.34,L="tilde4");else{var pe=[1,1,2,2,3,3][h];p==="widehat"||p==="widecheck"?(f=[0,1062,2364,2364,2364][pe],I=[0,239,300,360,420][pe],H=[0,.24,.3,.3,.36,.42][pe],L=p+pe):(f=[0,600,1033,2339,2340][pe],I=[0,260,286,306,312][pe],H=[0,.26,.286,.3,.306,.34][pe],L="tilde"+pe)}var be=new ls(L),re=new zi([be],{width:"100%",height:Nt(H),viewBox:"0 0 "+f+" "+I,preserveAspectRatio:"none"});return{span:os([],[re],r),minWidth:0,height:H}}else{var W=[],X=X3[p];if(!X)throw new Error('No SVG data for "'+p+'".');var[ge,se,me]=X,J=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
376
- `+xe+" children.");for(var O=0;O<xe;O++){var Ee=new ls(ge[O]),ce=new zi([Ee],{width:"400em",height:Nt(J),viewBox:"0 0 "+f+" "+me,preserveAspectRatio:Ae[O]+" slice"}),w=os([fe[O]],[ce],r);if(xe===1)return{span:w,minWidth:se,height:J};w.style.height=Nt(J),W.push(w)}return{span:kt(["stretchy"],W,r),minWidth:se,height:J}}}var{span:i,minWidth:s,height:c}=n();return i.height=c,i.style.height=Nt(c),s>0&&(i.style.minWidth=Nt(s)),i},Z3=function(t,r,n,i,s){var c,f=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(c=kt(["stretchy",r],[],s),r==="fbox"){var p=s.color&&s.getColor();p&&(c.style.borderColor=p)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new mf({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new mf({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var I=new zi(h,{width:"100%",height:Nt(f)});c=os([],[I],s)}return c.height=f,c.style.height=Nt(f),c},J3={bin:1,close:1,inner:1,open:1,punct:1,rel:1},O3={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function e5(e){return e in J3}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 Ju(e){var t=Ou(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 Ou(e){return e&&(e.type==="atom"||O3.hasOwnProperty(e.type))?e:null}var ug=e=>{if(e instanceof Rn)return e;if(A3(e)&&e.children.length===1)return ug(e.children[0])},dd=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=S3(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),c=n.isShifty&&Ii(r),f=0;if(c){var p,h;f=(p=(h=ug(s))==null?void 0:h.skew)!=null?p:0}var I=n.label==="\\c",L=I?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),H;if(n.isStretchy)H=Zu(n,t),H=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Nt(2*f)+")",marginLeft:Nt(2*f)}:void 0}]});else{var pe,be;n.label==="\\vec"?(pe=rg("vec",t),be=tg.vec[1]):(pe=Xu({mode:n.mode,text:n.label},t,"textord"),pe=k3(pe),pe.italic=0,be=pe.width,I&&(L+=pe.depth)),H=kt(["accent-body"],[pe]);var re=n.label==="\\textcircled";re&&(H.classes.push("accent-full"),L=s.height);var W=f;re||(W-=be/2),H.style.left=Nt(W),n.label==="\\textcircled"&&(H.style.top=".2em"),H=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-L},{type:"elem",elem:H}]})}var X=kt(["mord","accent"],[H],t);return i?(i.children[0]=X,i.height=Math.max(X.height,i.height),i.classes[0]="mord",i):X},cg=(e,t)=>{var r=e.isStretchy?Qu(e.label):new Rt("mo",[Wn(e.label,e.mode)]),n=new Rt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},t5=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=bu(t[0]),n=!t5.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:dd,mathmlBuilder:cg});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:dd,mathmlBuilder:cg});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=Zu(e,t),i=e.label==="\\utilde"?.12:0,s=ir({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return kt(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Qu(e.label),n=new Rt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var wo=e=>{var t=new Rt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=Ea(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=Ea(sr(e.below,n,t),t),c.classes.push(s+"-arrow-pad"));var f=Zu(e,t),p=-t.fontMetrics().axisHeight+.5*f.height,h=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var I;if(c){var L=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;I=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:c,shift:L}]})}else I=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:p,wrapperClasses:["svg-align"]}]});return kt(["mrel","x-arrow"],[I],t)},mathmlBuilder(e,t){var r=Qu(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=wo(or(e.body,t));if(e.below){var s=wo(or(e.below,t));n=new Rt("munderover",[r,s,i])}else n=new Rt("mover",[r,i])}else if(e.below){var c=wo(or(e.below,t));n=new Rt("munder",[r,c])}else n=wo(),n=new Rt("mover",[r,n]);return n}});function $g(e,t){var r=Lr(e.body,t,!0);return kt([e.mclass],r,t)}function fg(e,t){var r,n=Dn(e.body,t);return e.mclass==="minner"?r=new Rt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Rt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Rt("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Dt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Rr(i),isCharacterBox:Ii(i)}},htmlBuilder:$g,mathmlBuilder:fg});var ec=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:ec(t[0]),body:Rr(t[1]),isCharacterBox:Ii(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=ec(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:Ii(p)}},htmlBuilder:$g,mathmlBuilder:fg});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:ec(t[0]),body:Rr(t[0])}},htmlBuilder(e,t){var r=Lr(e.body,t,!0),n=kt([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Dn(e.body,t),n=new Rt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var r5={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_p=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),mp=e=>e.type==="textord"&&e.text==="@",n5=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function i5(e,t,r){var n=r5[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 s5(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new zt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var c=t[s],f=_p(),p=0;p<c.length;p++)if(!mp(c[p]))f.body.push(c[p]);else{n.push(f),p+=1;var h=Ju(c[p]).text,I=new Array(2);if(I[0]={type:"ordgroup",mode:"math",body:[]},I[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(h))if("<>AV".includes(h))for(var L=0;L<2;L++){for(var H=!0,pe=p+1;pe<c.length;pe++){if(n5(c[pe],h)){H=!1,p=pe;break}if(mp(c[pe]))throw new zt("Missing a "+h+" character to complete a CD arrow.",c[pe]);I[L].body.push(c[pe])}if(H)throw new zt("Missing a "+h+" character to complete a CD arrow.",c[p])}else throw new zt('Expected one of "<>AV=|." after @',c[p]);var be=i5(h,I,e),re={type:"styling",body:[be],mode:"math",style:"display",resetFont:!0};n.push(re),f=_p()}s%2===0?n.push(f):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var W=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:W,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Dt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Ea(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Nt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Rt("mrow",[or(e.label,t)]);return r=new Rt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Rt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Dt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ea(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Rt("mrow",[or(e.fragment,t)])}});Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Qt(t[0],"ordgroup"),i=n.body,s="",c=0;c<i.length;c++){var f=Qt(i[c],"textord");s+=f.text}var p=parseInt(s),h;if(isNaN(p))throw new zt("\\@char has non-numeric argument "+s);if(p<0||p>=1114111)throw new zt("\\@char with invalid code point "+s);return p<=65535?h=String.fromCharCode(p):(p-=65536,h=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var dg=(e,t)=>{var r=Lr(e.body,t.withColor(e.color),!1);return Mi(r)},hg=(e,t)=>{var r=Dn(e.body,t.withColor(e.color)),n=new Rt("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Dt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Rr(i)}},htmlBuilder:dg,mathmlBuilder:hg});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:hg});Dt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,s=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:s,size:i&&Qt(i,"size").value}},htmlBuilder(e,t){var r=kt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Nt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new Rt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Nt(vr(e.size,t)))),r}});var Cf={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},pg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new zt("Expected a control sequence",e);return t},a5=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_g=(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(Cf[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Cf[n.text]),Qt(t.parseFunction(),"internal");throw new zt("Invalid token after macro prefix",n)}});Dt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new zt("Expected a control sequence",n);for(var s=0,c,f=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new zt('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new zt('Argument number "'+n.text+'" out of order');s++,f.push([])}else{if(n.text==="EOF")throw new zt("Expected a macro definition");f[s].push(n.text)}var{tokens:p}=t.gullet.consumeArg();return c&&p.unshift(c),(r==="\\edef"||r==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(i,{tokens:p,numArgs:s,delimiters:f},r===Cf[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=pg(t.gullet.popToken());t.gullet.consumeSpaces();var i=a5(t);return _g(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=pg(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return _g(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ll=function(t,r,n){var i=pr.math[t]&&pr.math[t].replace,s=od(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},hd=function(t,r,n,i){var s=n.havingBaseStyle(r),c=kt(i.concat(s.sizingClasses(n)),[t],n),f=s.sizeMultiplier/n.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=s.sizeMultiplier,c},mg=function(t,r,n){var i=r.havingBaseStyle(n),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Nt(s),t.height-=s,t.depth+=s},l5=function(t,r,n,i,s,c){var f=an(t,"Main-Regular",s,i),p=hd(f,r,i,c);return mg(p,i,r),p},o5=function(t,r,n,i){return an(t,"Size"+r+"-Regular",n,i)},gg=function(t,r,n,i,s,c){var f=o5(t,r,s,i),p=hd(kt(["delimsizing","size"+r],[f],i),Gt.TEXT,i,c);return n&&mg(p,i,Gt.TEXT),p},Vc=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=kt(["delimsizinginner",i],[kt([],[an(t,r,n)])]);return{type:"elem",elem:s}},Wc=function(t,r,n){var i=ci["Size4-Regular"][t.charCodeAt(0)]?ci["Size4-Regular"][t.charCodeAt(0)][4]:ci["Size1-Regular"][t.charCodeAt(0)][4],s=new ls("inner",m3(t,Math.round(1e3*r))),c=new zi([s],{width:Nt(i),height:Nt(r),style:"width:"+Nt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=os([],[c],n);return f.height=r,f.style.height=Nt(r),f.style.width=Nt(i),{type:"elem",elem:f}},Tf=.008,ko={type:"kern",size:-1*Tf},u5=new Set(["|","\\lvert","\\rvert","\\vert"]),c5=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),vg=function(t,r,n,i,s,c){var f,p,h,I,L="",H=0;f=h=I=t,p=null;var pe="Size1-Regular";t==="\\uparrow"?h=I="⏐":t==="\\Uparrow"?h=I="‖":t==="\\downarrow"?f=h="⏐":t==="\\Downarrow"?f=h="‖":t==="\\updownarrow"?(f="\\uparrow",h="⏐",I="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",h="‖",I="\\Downarrow"):u5.has(t)?(h="∣",L="vert",H=333):c5.has(t)?(h="∥",L="doublevert",H=556):t==="["||t==="\\lbrack"?(f="⎡",h="⎢",I="⎣",pe="Size4-Regular",L="lbrack",H=667):t==="]"||t==="\\rbrack"?(f="⎤",h="⎥",I="⎦",pe="Size4-Regular",L="rbrack",H=667):t==="\\lfloor"||t==="⌊"?(h=f="⎢",I="⎣",pe="Size4-Regular",L="lfloor",H=667):t==="\\lceil"||t==="⌈"?(f="⎡",h=I="⎢",pe="Size4-Regular",L="lceil",H=667):t==="\\rfloor"||t==="⌋"?(h=f="⎥",I="⎦",pe="Size4-Regular",L="rfloor",H=667):t==="\\rceil"||t==="⌉"?(f="⎤",h=I="⎥",pe="Size4-Regular",L="rceil",H=667):t==="("||t==="\\lparen"?(f="⎛",h="⎜",I="⎝",pe="Size4-Regular",L="lparen",H=875):t===")"||t==="\\rparen"?(f="⎞",h="⎟",I="⎠",pe="Size4-Regular",L="rparen",H=875):t==="\\{"||t==="\\lbrace"?(f="⎧",p="⎨",I="⎩",h="⎪",pe="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",p="⎬",I="⎭",h="⎪",pe="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",I="⎩",h="⎪",pe="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",I="⎭",h="⎪",pe="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",I="⎭",h="⎪",pe="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",I="⎩",h="⎪",pe="Size4-Regular");var be=ll(f,pe,s),re=be.height+be.depth,W=ll(h,pe,s),X=W.height+W.depth,ge=ll(I,pe,s),se=ge.height+ge.depth,me=0,J=1;if(p!==null){var xe=ll(p,pe,s);me=xe.height+xe.depth,J=2}var fe=re+se+me,Ae=Math.max(0,Math.ceil((r-fe)/(J*X))),O=fe+Ae*J*X,Ee=i.fontMetrics().axisHeight;n&&(Ee*=i.sizeMultiplier);var ce=O/2-Ee,w=[];if(L.length>0){var Se=O-re-se,N=Math.round(O*1e3),ne=g3(L,Math.round(Se*1e3)),B=new ls(L,ne),Le=Nt(H/1e3),ue=Nt(N/1e3),P=new zi([B],{width:Le,height:ue,viewBox:"0 0 "+H+" "+N}),v=os([],[P],i);v.height=N/1e3,v.style.width=Le,v.style.height=ue,w.push({type:"elem",elem:v})}else{if(w.push(Vc(I,pe,s)),w.push(ko),p===null){var $=O-re-se+2*Tf;w.push(Wc(h,$,i))}else{var l=(O-re-se-me)/2+2*Tf;w.push(Wc(h,l,i)),w.push(ko),w.push(Vc(p,pe,s)),w.push(ko),w.push(Wc(h,l,i))}w.push(ko),w.push(Vc(f,pe,s))}var u=i.havingBaseStyle(Gt.TEXT),d=ir({positionType:"bottom",positionData:ce,children:w});return hd(kt(["delimsizing","mult"],[d],u),Gt.TEXT,i,c)},Yc=80,Gc=.08,Kc=function(t,r,n,i,s){var c=_3(t,i,n),f=new ls(t,c),p=new zi([f],{width:"400em",height:Nt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return os(["hide-tail"],[p],s)},$5=function(t,r){var n=r.havingBaseSizing(),i=kg("\\surd",t*n.sizeMultiplier,wg,n),s=n.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,p,h,I,L;return i.type==="small"?(I=1e3+1e3*c+Yc,t<1?s=1:t<1.4&&(s=.7),p=(1+c+Gc)/s,h=(1+c)/s,f=Kc("sqrtMain",p,I,c,r),f.style.minWidth="0.853em",L=.833/s):i.type==="large"?(I=(1e3+Yc)*yl[i.size],h=(yl[i.size]+c)/s,p=(yl[i.size]+c+Gc)/s,f=Kc("sqrtSize"+i.size,p,I,c,r),f.style.minWidth="1.02em",L=1/s):(p=t+c+Gc,h=t+c,I=Math.floor(1e3*t+c)+Yc,f=Kc("sqrtTall",p,I,c,r),f.style.minWidth="0.742em",L=1.056),f.height=h,f.style.height=Nt(p),{span:f,advanceWidth:L,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},yg=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),f5=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),bg=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),yl=[0,1.2,1.8,2.4,3],xg=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),yg.has(t)||bg.has(t))return gg(t,r,!1,n,i,s);if(f5.has(t))return vg(t,yl[r],!1,n,i,s);throw new zt("Illegal delimiter: '"+t+"'")},d5=[{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}],h5=[{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"}],p5=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.")},kg=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=ll(t,p5(f),"math"),h=p.height+p.depth;if(f.type==="small"){var I=i.havingBaseStyle(f.style);h*=I.sizeMultiplier}if(h>r)return f}return n[n.length-1]},zf=function(t,r,n,i,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;bg.has(t)?f=d5:yg.has(t)?f=wg:f=h5;var p=kg(t,r,f,i);return p.type==="small"?l5(t,p.style,n,i,s,c):p.type==="large"?gg(t,p.size,n,i,s,c):vg(t,r,n,i,s,c)},Xc=function(t,r,n,i,s,c){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,p=901,h=5/i.fontMetrics().ptPerEm,I=Math.max(r-f,n+f),L=Math.max(I/500*p,2*I-h);return zf(t,L,!0,i,s,c)},gp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},_5=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function vp(e){return"isMiddle"in e}function tc(e,t){var r=Ou(e);if(r&&_5.has(r.text))return r;throw r?new zt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new zt("Invalid delimiter type '"+e.type+"'",e)}Dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=tc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:gp[e.funcName].size,mclass:gp[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?kt([e.mclass]):xg(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Wn(e.delim,e.mode));var r=new Rt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Nt(yl[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function yp(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Dt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new zt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:tc(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tc(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)=>{yp(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];vp(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=Pl(t,["mopen"]):p=Xc(e.left,n,i,t,e.mode,["mopen"]),r.unshift(p),s)for(var h=1;h<r.length;h++){var I=r[h];if(vp(I)){var L=I.isMiddle;r[h]=Xc(L.delim,n,i,L.options,e.mode,[])}}var H;if(e.right===".")H=Pl(t,["mclose"]);else{var pe=e.rightColor?t.withColor(e.rightColor):t;H=Xc(e.right,n,i,pe,e.mode,["mclose"])}return r.push(H),kt(["minner"],r,t)},mathmlBuilder:(e,t)=>{yp(e);var r=Dn(e.body,t);if(e.left!=="."){var n=new Rt("mo",[Wn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new Rt("mo",[Wn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return $d(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=tc(t[0],e);if(!e.parser.leftrightDepth)throw new zt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=Pl(t,[]):(r=xg(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Wn("|","text"):Wn(e.delim,e.mode),n=new Rt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var rc=(e,t)=>{var r=Ea(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,c,f=Ii(e.body);if(n==="sout")s=kt(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,c=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var p=vr({number:.6,unit:"pt"},t),h=vr({number:.35,unit:"ex"},t),I=t.havingBaseSizing();i=i/I.sizeMultiplier;var L=r.height+r.depth+p+h;r.style.paddingLeft=Nt(L/2+p);var H=Math.floor(1e3*L*i),pe=h3(H),be=new zi([new ls("phase",pe)],{width:"400em",height:Nt(H/1e3),viewBox:"0 0 400000 "+H,preserveAspectRatio:"xMinYMin slice"});s=os(["hide-tail"],[be],t),s.style.height=Nt(L),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 re,W,X=0;/box/.test(n)?(X=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),re=t.fontMetrics().fboxsep+(n==="colorbox"?0:X),W=re):n==="angl"?(X=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),re=4*X,W=Math.max(0,.25-r.depth)):(re=f?.2:0,W=re),s=Z3(r,n,re,W,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Nt(X)):n==="angl"&&X!==.049&&(s.style.borderTopWidth=Nt(X),s.style.borderRightWidth=Nt(X)),c=r.depth+W,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var ge;if(e.backgroundColor)ge=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]});else{var se=/cancel|phase/.test(n)?["svg-align"]:[];ge=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:se}]})}return/cancel/.test(n)&&(ge.height=r.height,ge.depth=r.depth),/cancel/.test(n)&&!f?kt(["mord","cancel-lap"],[ge],t):kt(["mord"],[ge],t)},nc=(e,t)=>{var r,n=new Rt(e.label.includes("colorbox")?"mpadded":"menclose",[or(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Nt(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:c}},htmlBuilder:rc,mathmlBuilder:nc});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:rc,mathmlBuilder:nc});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:rc,mathmlBuilder:nc});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:rc,mathmlBuilder:nc});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 Sg={};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)Sg[r[p]]=f;s&&(vu[t]=s),c&&(yu[t]=c)}var Ag={};function Qe(e,t){Ag[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 bp(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 ic=e=>{var t=e.parser.settings;if(!t.displayMode)throw new zt("{"+e.envName+"} can be used only in display mode.")},m5=new Set(["gather","gather*"]);function pd(e){if(!e.includes("ed"))return!e.includes("*")}function ps(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:c,colSeparationType:f,autoTag:p,singleRow:h,emptySingleRow:I,maxNumCols:L,leqno:H}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var pe=e.gullet.expandMacroAsText("\\arraystretch");if(pe==null)c=1;else if(c=parseFloat(pe),!c||c<0)throw new zt("Invalid \\arraystretch: "+pe)}e.gullet.beginGroup();var be=[],re=[be],W=[],X=[],ge=p!=null?[]:void 0;function se(){p&&e.gullet.macros.set("\\@eqnsw","1",!0)}function me(){ge&&(e.gullet.macros.get("\\df@tag")?(ge.push(e.subparse([new 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(bp(e));;){var J=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var xe={type:"ordgroup",mode:e.mode,body:J};r&&(xe={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[xe]}),be.push(xe);var fe=e.fetch().text;if(fe==="&"){if(L&&be.length===L){if(h||f)throw new zt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(fe==="\\end"){me(),be.length===1&&xe.type==="styling"&&xe.body.length===1&&xe.body[0].type==="ordgroup"&&xe.body[0].body.length===0&&(re.length>1||!I)&&re.pop(),X.length<re.length+1&&X.push([]);break}else if(fe==="\\\\"){e.consume();var Ae=void 0;e.gullet.future().text!==" "&&(Ae=e.parseSizeGroup(!0)),W.push(Ae?Ae.value:null),me(),X.push(bp(e)),be=[],re.push(be),se()}else throw new zt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:c,body:re,cols:s,rowGaps:W,hskipBeforeAndAfter:n,hLinesBeforeRow:X,colSeparationType:f,tags:ge,leqno:H}}function _d(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=[],I=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),L=1/r.fontMetrics().ptPerEm,H=5*L;if(t.colSeparationType&&t.colSeparationType==="small"){var pe=r.havingStyle(Gt.SCRIPT).sizeMultiplier;H=.2778*(pe/r.sizeMultiplier)}var be=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*L,re=3*L,W=t.arraystretch*be,X=.7*W,ge=.3*W,se=0;function me(ct){for(var a=0;a<ct.length;++a)a>0&&(se+=.25),h.push({pos:se,isDashed:ct[a]})}for(me(c[0]),n=0;n<t.body.length;++n){var J=t.body[n],xe=X,fe=ge;f<J.length&&(f=J.length);var Ae={cells:new Array(J.length),height:0,depth:0,pos:0};for(i=0;i<J.length;++i){var O=sr(J[i],r);fe<O.depth&&(fe=O.depth),xe<O.height&&(xe=O.height),Ae.cells[i]=O}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+=re),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||[],N=[],ne,B,Le=[];if(t.tags&&t.tags.some(ct=>ct))for(n=0;n<s;++n){var ue=p[n],P=ue.pos-w,v=t.tags[n],$=void 0;v===!0?$=kt(["eqn-num"],[],r):v===!1?$=kt([],[],r):$=kt([],Lr(v,r,!0),r),$.depth=ue.depth,$.height=ue.height,Le.push({type:"elem",elem:$,shift:P})}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=kt(["arraycolsep"],[]),ne.style.width=Nt(r.fontMetrics().doubleRuleSep),N.push(ne)),u.separator==="|"||u.separator===":"){var k=u.separator==="|"?"solid":"dashed",A=kt(["vertical-separator"],[],r);A.style.height=Nt(se),A.style.borderRightWidth=Nt(I),A.style.borderRightStyle=k,A.style.margin="0 "+Nt(-I/2);var Q=se-w;Q&&(A.style.verticalAlign=Nt(-Q)),N.push(A)}else throw new zt("Invalid separator type: "+u.separator);B++,u=Se[B],d=!1}if(!(i>=f)){var De=void 0;if(i>0||t.hskipBeforeAndAfter){var rt,ft;De=(rt=(ft=u)==null?void 0:ft.pregap)!=null?rt:H,De!==0&&(ne=kt(["arraycolsep"],[]),ne.style.width=Nt(De),N.push(ne))}var _t=[];for(n=0;n<s;++n){var At=p[n],bt=At.cells[i];if(bt){var Mt=At.pos-w;bt.depth=At.depth,bt.height=At.height,_t.push({type:"elem",elem:bt,shift:Mt})}}var Et=ir({positionType:"individualShift",children:_t}),qt=kt(["col-align-"+(((l=u)==null?void 0:l.align)||"c")],[Et]);if(N.push(qt),i<f-1||t.hskipBeforeAndAfter){var It,nt;De=(It=(nt=u)==null?void 0:nt.postgap)!=null?It:H,De!==0&&(ne=kt(["arraycolsep"],[]),ne.style.width=Nt(De),N.push(ne))}}}var Re=kt(["mtable"],N);if(h.length>0){for(var je=Aa("hline",r,I),Ke=Aa("hdashline",r,I),x=[{type:"elem",elem:Re,shift:0}];h.length>0;){var R=h.pop(),ve=R.pos-w;R.isDashed?x.push({type:"elem",elem:Ke,shift:ve}):x.push({type:"elem",elem:je,shift:ve})}Re=ir({positionType:"individualShift",children:x})}if(Le.length===0)return kt(["mord"],[Re],r);var Fe=ir({positionType:"individualShift",children:Le}),Ze=kt(["tag"],[Fe],r);return Mi([Re,Ze])},g5={c:"center ",l:"left ",r:"right "},_i=function(t,r){for(var n=[],i=new Rt("mtd",[],["mtr-glue"]),s=new Rt("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],p=[],h=0;h<f.length;h++)p.push(new Rt("mtd",[or(f[h],r)]));t.tags&&t.tags[c]&&(p.unshift(i),p.push(i),t.leqno?p.unshift(s):p.push(s)),n.push(new Rt("mtr",p))}var I=new Rt("mtable",n),L=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);I.setAttribute("rowspacing",Nt(L));var H="",pe="";if(t.cols&&t.cols.length>0){var be=t.cols,re="",W=!1,X=0,ge=be.length;be[0].type==="separator"&&(H+="top ",X=1),be[be.length-1].type==="separator"&&(H+="bottom ",ge-=1);for(var se=X;se<ge;se++){var me=be[se];me.type==="align"?(pe+=g5[me.align],W&&(re+="none "),W=!0):me.type==="separator"&&W&&(re+=me.separator==="|"?"solid ":"dashed ",W=!1)}I.setAttribute("columnalign",pe.trim()),/[sd]/.test(re)&&I.setAttribute("columnlines",re.trim())}if(t.colSeparationType==="align"){for(var J=t.cols||[],xe="",fe=1;fe<J.length;fe++)xe+=fe%2?"0em ":"1em ";I.setAttribute("columnspacing",xe.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?I.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?I.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?I.setAttribute("columnspacing","0.5em"):I.setAttribute("columnspacing","1em");var Ae="",O=t.hLinesBeforeRow;H+=O[0].length>0?"left ":"",H+=O[O.length-1].length>0?"right ":"";for(var Ee=1;Ee<O.length-1;Ee++)Ae+=O[Ee].length===0?"none ":O[Ee][0]?"dashed ":"solid ";return/[sd]/.test(Ae)&&I.setAttribute("rowlines",Ae.trim()),H!==""&&(I=new Rt("menclose",[I]),I.setAttribute("notation",H.trim())),t.arraystretch&&t.arraystretch<1&&(I=new Rt("mstyle",[I]),I.setAttribute("scriptlevel","1")),I},Eg=function(t,r){t.envName.includes("ed")||ic(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",c=ps(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:pd(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,p=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var I="",L=0;L<r[0].body.length;L++){var H=Qt(r[0].body[L],"textord");I+=H.text}f=Number(I),p=f*2}var pe=!p;c.body.forEach(function(X){for(var ge=1;ge<X.length;ge+=2){var se=Qt(X[ge],"styling"),me=Qt(se.body[0],"ordgroup");me.body.unshift(h)}if(pe)p<X.length&&(p=X.length);else{var J=X.length/2;if(f<J)throw new zt("Too many math in a row: "+("expected "+f+", but got "+J),X[0])}});for(var be=0;be<p;++be){var re="r",W=0;be%2===1?re="l":be>0&&pe&&(W=1),n[be]={type:"align",align:re,pregap:W,postgap:0}}return c.colSeparationType=pe?"align":"alignat",c};hi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Ou(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(c){var f=Ju(c),p=f.text;if("lcr".includes(p))return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new zt("Unknown column alignment: "+p,c)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return ps(e.parser,s,_d(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 zt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=ps(e.parser,n,_d(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=ps(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=Ou(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(f){var p=Ju(f),h=p.text;if("lc".includes(h))return{type:"align",align:h};throw new zt("Unknown column alignment: "+h,f)});if(i.length>1)throw new zt("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},c=ps(e.parser,s,"script");if(c.body.length>0&&c.body[0].length>1)throw new zt("{subarray} can contain only one column");return c},htmlBuilder: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=ps(e.parser,t,_d(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:Eg,htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){m5.has(e.envName)&&ic(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:pd(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ps(e.parser,t,"display")},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Eg,htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){ic(e);var t={autoTag:pd(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ps(e.parser,t,"display")},htmlBuilder:pi,mathmlBuilder:_i});hi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return ic(e),s5(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 zt(e.funcName+" valid only within array environment")}});var xp=Sg;Dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new zt("Invalid environment name",i);for(var s="",c=0;c<i.body.length;++c)s+=Qt(i.body[c],"textord").text;if(n==="\\begin"){if(!xp.hasOwnProperty(s))throw new zt("No such environment: "+s,i);var f=xp[s],{args:p,optArgs:h}=r.parseArguments("\\begin{"+s+"}",f),I={mode:r.mode,envName:s,parser:r},L=f.handler(I,p,h);r.expect("\\end",!1);var H=r.nextToken,pe=Qt(r.parseFunction(),"environment");if(pe.name!==s)throw new zt("Mismatch: \\begin{"+s+"} matched by \\end{"+pe.name+"}",H);return L}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var Cg=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},Tg=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},wp={"\\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=bu(t[0]),s=n;return s in wp&&(s=wp[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:Cg,mathmlBuilder:Tg});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:ec(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ii(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:Cg,mathmlBuilder:Tg});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),I,L,H;e.hasBarLine?(e.barSize?(L=vr(e.barSize,t),I=Aa("frac-line",t,L)):I=Aa("frac-line",t),L=I.height,H=I.height):(I=null,L=0,H=t.fontMetrics().defaultRuleThickness);var pe,be,re;r.size===Gt.DISPLAY.size?(pe=t.fontMetrics().num1,L>0?be=3*H:be=7*H,re=t.fontMetrics().denom1):(L>0?(pe=t.fontMetrics().num2,be=H):(pe=t.fontMetrics().num3,be=3*H),re=t.fontMetrics().denom2);var W;if(I){var ge=t.fontMetrics().axisHeight;pe-c.depth-(ge+.5*L)<be&&(pe+=be-(pe-c.depth-(ge+.5*L))),ge-.5*L-(h.height-re)<be&&(re+=be-(ge-.5*L-(h.height-re)));var se=-(ge-.5*L);W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:re},{type:"elem",elem:I,shift:se},{type:"elem",elem:c,shift:-pe}]})}else{var X=pe-c.depth-(h.height-re);X<be&&(pe+=.5*(be-X),re+=.5*(be-X)),W=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:re},{type:"elem",elem:c,shift:-pe}]})}s=t.havingStyle(r),W.height*=s.sizeMultiplier/t.sizeMultiplier,W.depth*=s.sizeMultiplier/t.sizeMultiplier;var me;r.size===Gt.DISPLAY.size?me=t.fontMetrics().delim1:r.size===Gt.SCRIPTSCRIPT.size?me=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:me=t.fontMetrics().delim2;var J,xe;return e.leftDelim==null?J=Pl(t,["mopen"]):J=zf(e.leftDelim,me,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?xe=kt([]):e.rightDelim==null?xe=Pl(t,["mclose"]):xe=zf(e.rightDelim,me,!0,t.havingStyle(r),e.mode,["mclose"]),kt(["mord"].concat(s.sizingClasses(t)),[J,kt(["mfrac"],[W]),xe],t)},y5=(e,t)=>{var r=new Rt("mfrac",[or(e.numer,t),or(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=vr(e.barSize,t);r.setAttribute("linethickness",Nt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new Rt("mo",[new Nr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var c=new Rt("mo",[new Nr(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),i.push(c)}return $d(i)}return r},zg=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Dt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=t[1],c,f=null,p=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",p=")";break;case"\\\\bracefrac":c=!1,f="\\{",p="\\}";break;case"\\\\brackfrac":c=!1,f="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}var h=n==="\\cfrac",I=null;return h||n.startsWith("\\d")?I="display":n.startsWith("\\t")&&(I="text"),zg({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:h,hasBarLine:c,leftDelim:f,rightDelim:p,barSize:null},I)},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 kp=["display","text","script","scriptscript"],Sp=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=bu(t[0]),c=s.type==="atom"&&s.family==="open"?Sp(s.text):null,f=bu(t[1]),p=f.type==="atom"&&f.family==="close"?Sp(f.text):null,h=Qt(t[2],"size"),I,L=null;h.isBlank?I=!0:(L=h.value,I=L.number>0);var H=null,pe=t[3];if(pe.type==="ordgroup"){if(pe.body.length>0){var be=Qt(pe.body[0],"textord");H=kp[Number(be.text)]}}else pe=Qt(pe,"textord"),H=kp[Number(pe.text)];return zg({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:I,barSize:L,leftDelim:c,rightDelim:p},H)}});Dt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Qt(t[0],"size").value,token:i}}});Dt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],s=Qt(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var c=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:c,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var Rg=(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=Zu(i,t),f;if(i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c,wrapperClasses:["svg-align"]}]}):f=ir({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var p=kt(["minner",i.isOver?"mover":"munder"],[f],t);i.isOver?f=ir({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:n}]}):f=ir({positionType:"bottom",positionData:p.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:p}]})}return kt(["minner",i.isOver?"mover":"munder"],[f],t)},b5=(e,t)=>{var r=Qu(e.label);return new Rt(e.isOver?"mover":"munder",[or(e.base,t),r])};Dt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:Rg,mathmlBuilder:b5});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 q3(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=us(e.body,t);return r instanceof Rt||(r=new Rt("mrow",[r])),r.setAttribute("href",e.href),r}});Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var c=n[s];c==="~"&&(c="\\textasciitilde"),i.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body: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 Mi(r)},mathmlBuilder(e,t){return new Rt("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(","),I=0;I<h.length;I++){var L=h[I],H=L.indexOf("=");if(H<0)throw new zt("\\htmlData key/value '"+L+"' missing equals sign");var pe=L.slice(0,H),be=L.slice(H+1);p["data-"+pe.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=kt(n,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&i.setAttribute(s,e.attributes[s]);return i},mathmlBuilder:(e,t)=>us(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 Mi(r)},mathmlBuilder:(e,t)=>us(e.mathml,t)});var Qc=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new zt("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!K1(n))throw new zt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(r[0])for(var p=Qt(r[0],"raw").string,h=p.split(","),I=0;I<h.length;I++){var L=h[I].split("=");if(L.length===2){var H=L[1].trim();switch(L[0].trim()){case"alt":f=H;break;case"width":i=Qc(H);break;case"height":s=Qc(H);break;case"totalheight":c=Qc(H);break;default:throw new zt("Invalid key: '"+L[0]+"' in \\includegraphics.")}}}var pe=Qt(t[0],"url").url;return f===""&&(f=pe,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:pe})?{type:"includegraphics",mode:n.mode,alt:f,width:i,height:s,totalheight:c,src:pe}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=vr(e.height,t),n=0;e.totalheight.number>0&&(n=vr(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=vr(e.width,t));var s={height:Nt(r+n)};i>0&&(s.width=Nt(i)),n>0&&(s.verticalAlign=Nt(-n));var c=new x3(e.src,e.alt,s);return c.height=r,c.depth=n,c},mathmlBuilder:(e,t)=>{var r=new Rt("mglyph",[]);r.setAttribute("alt",e.alt);var n=vr(e.height,t),i=0;if(e.totalheight.number>0&&(i=vr(e.totalheight,t)-n,r.setAttribute("valign",Nt(-i))),r.setAttribute("height",Nt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",Nt(s))}return r.setAttribute("src",e.src),r}});Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Qt(t[0],"size");if(r.settings.strict){var s=n[1]==="m",c=i.value.unit==="mu";s?(c||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):c&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return eg(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new ag(r)}});Dt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=kt([],[sr(e.body,t)]),r=kt(["inner"],[r],t)):r=kt(["inner"],[sr(e.body,t)]);var n=kt(["fix"],[]),i=kt([e.alignment],[r,n],t),s=kt(["strut"]);return s.style.height=Nt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Nt(-i.depth)),i.children.unshift(s),i=kt(["thinbox"],[i],t),kt(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Rt("mpadded",[or(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",c=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:c}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new zt("Mismatched "+e.funcName)}});var Ap=(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=Ap(e,t),n=Lr(r,t,!1);return Mi(n)},mathmlBuilder:(e,t)=>{var r=Ap(e,t);return us(r,t)}});var Ng=(e,t,r,n,i,s,c)=>{e=kt([],[e]);var f=r&&Ii(r),p,h;if(t){var I=sr(t,n.havingStyle(i.sup()),n);h={elem:I,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-I.depth)}}if(r){var L=sr(r,n.havingStyle(i.sub()),n);p={elem:L,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-L.height)}}var H;if(h&&p){var pe=n.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+c;H=ir({positionType:"bottom",positionData:pe,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(p){var be=e.height-c;H=ir({positionType:"top",positionData:be,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Nt(-s)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(h){var re=e.depth+c;H=ir({positionType:"bottom",positionData:re,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:Nt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var W=[H];if(p&&s!==0&&!f){var X=kt(["mspace"],[],n);X.style.marginRight=Nt(s),W.unshift(X)}return kt(["mop","op-limits"],W,n)},Ig=new Set(["\\smallint"]),Pa=(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&&!Ig.has(s.name)&&(f=!0);var p,h;if(s.symbol){var I=f?"Size2-Regular":"Size1-Regular",L="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(L=s.name.slice(1),s.name=L==="oiint"?"\\iint":"\\iiint"),p=an(s.name,I,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),h=p.italic,L.length>0){var H=rg(L+"Size"+(f?"2":"1"),t);p=ir({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:H,shift:f?.08:0}]}),s.name="\\"+L,p.classes.unshift("mop"),p.italic=h}}else if(s.body){var pe=Lr(s.body,t,!0);pe.length===1&&pe[0]instanceof Rn?(p=pe[0],p.classes[0]="mop"):p=kt(["mop"],pe,t)}else{for(var be=[],re=1;re<s.name.length;re++)be.push(ud(s.name[re],s.mode,t));p=kt(["mop"],be,t)}var W=0,X=0;if((p instanceof Rn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var ge;W=(p.height-p.depth)/2-t.fontMetrics().axisHeight,X=(ge=p.italic)!=null?ge:0}return i?Ng(p,r,n,t,c,X,W):(W&&(p.style.position="relative",p.style.top=Nt(W)),p)},Zl=(e,t)=>{var r;if(e.symbol)r=new Rt("mo",[Wn(e.name,e.mode)]),Ig.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Rt("mo",Dn(e.body,t));else{r=new Rt("mi",[new Nr(e.name.slice(1))]);var n=new Rt("mo",[Wn("⁡","text")]);e.parentIsSupSub?r=new Rt("mrow",[r,n]):r=sg([r,n])}return r},x5={"∏":"\\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=x5[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Pa,mathmlBuilder:Zl});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:Pa,mathmlBuilder:Zl});var w5={"∫":"\\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:Pa,mathmlBuilder:Zl});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:Pa,mathmlBuilder:Zl});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=w5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Pa,mathmlBuilder:Zl});var qg=(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(L=>{var H="text"in L?L.text:void 0;return typeof H=="string"?{type:"textord",mode:L.mode,text:H}:L}),p=Lr(f,t.withFont("mathrm"),!0),h=0;h<p.length;h++){var I=p[h];I instanceof Rn&&(I.text=I.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=kt(["mop"],p,t)}else c=kt(["mop"],[],t);return i?Ng(c,r,n,t,t.style,0,0):c},k5=(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 ag))if(s instanceof Rt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof Nr?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var f=r.map(I=>I.toText()).join("");r=[new Nr(f)]}var p=new Rt("mi",r);p.setAttribute("mathvariant","normal");var h=new Rt("mo",[Wn("⁡","text")]);return e.parentIsSupSub?new Rt("mrow",[p,h]):sg([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:qg,mathmlBuilder:k5});Qe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");js({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Mi(Lr(e.body,t,!1)):kt(["mord"],Lr(e.body,t,!0),t)},mathmlBuilder(e,t){return us(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=Aa("overline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return kt(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new Rt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new Rt("mover",[or(e.body,t),r]);return n.setAttribute("accent","true"),n}});Dt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Rr(n)}},htmlBuilder:(e,t)=>{var r=Lr(e.body,t.withPhantom(),!1);return Mi(r)},mathmlBuilder:(e,t)=>{var r=Dn(e.body,t);return new Rt("mphantom",r)}});Qe("\\hphantom","\\smash{\\phantom{#1}}");Dt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=kt(["inner"],[sr(e.body,t.withPhantom())]),n=kt(["fix"],[]);return kt(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Dn(Rr(e.body),t),n=new Rt("mphantom",r),i=new Rt("mpadded",[n]);return i.setAttribute("width","0px"),i}});Dt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=sr(e.body,t),n=vr(e.dy,t);return ir({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Rt("mpadded",[or(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Dt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=Qt(t[0],"size"),c=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=kt(["mord","rule"],[],t),n=vr(e.width,t),i=vr(e.height,t),s=e.shift?vr(e.shift,t):0;return r.style.borderRightWidth=Nt(n),r.style.borderTopWidth=Nt(i),r.style.bottom=Nt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=vr(e.width,t),n=vr(e.height,t),i=e.shift?vr(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new Rt("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",Nt(r)),c.setAttribute("height",Nt(n));var f=new Rt("mpadded",[c]);return i>=0?f.setAttribute("height",Nt(i)):(f.setAttribute("height",Nt(i)),f.setAttribute("depth",Nt(-i))),f.setAttribute("voffset",Nt(i)),f}});function Mg(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 Mi(n)}var Ep=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],S5=(e,t)=>{var r=t.havingSize(e.size);return Mg(e.body,r,t)};Dt({type:"sizing",names:Ep,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:Ep.indexOf(n)+1,body:s}},htmlBuilder:S5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Dn(e.body,r),i=new Rt("mstyle",n);return i.setAttribute("mathsize",Nt(r.sizeMultiplier)),i}});Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,c=r[0]&&Qt(r[0],"ordgroup");if(c)for(var f,p=0;p<c.body.length;++p){var h=c.body[p];if(f=Ju(h).text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var I=t[0];return{type:"smash",mode:n.mode,body:I,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=kt([],[sr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return kt(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return kt(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Rt("mpadded",[or(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Dt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:i}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Ea(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var c=i+s/4,f=r.height+r.depth+c+i,{span:p,ruleWidth:h,advanceWidth:I}=$5(f,t),L=p.height-h;L>r.height+r.depth+c&&(c=(c+L-r.height-r.depth)/2);var H=p.height-r.height-c-h;r.style.paddingLeft=Nt(I);var pe=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+H)},{type:"elem",elem:p},{type:"kern",size:h}]});if(e.index){var be=t.havingStyle(Gt.SCRIPTSCRIPT),re=sr(e.index,be,t),W=.6*(pe.height-pe.depth),X=ir({positionType:"shift",positionData:-W,children:[{type:"elem",elem:re}]}),ge=kt(["root"],[X]);return kt(["mord","sqrt"],[ge,pe],t)}else return kt(["mord","sqrt"],[pe],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Rt("mroot",[or(r,t),or(n,t)]):new Rt("msqrt",[or(r,t)])}});var Rf={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function A5(e){return e in Rf}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(!A5(c))throw new Error("Unknown style: "+c);return{type:"styling",mode:i.mode,style:c,body:s}},htmlBuilder(e,t){var r=Rf[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),Mg(e.body,n,t)},mathmlBuilder(e,t){var r=Rf[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Dn(e.body,n),s=new Rt("mstyle",i),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var E5=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?Pa:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?qg:null}else{if(n.type==="accent")return Ii(n.base)?dd:null;if(n.type==="horizBrace"){var c=!t.sub;return c===n.isOver?Rg:null}else return null}else return null};js({type:"supsub",htmlBuilder(e,t){var r=E5(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,c=sr(n,t),f,p,h=t.fontMetrics(),I=0,L=0,H=n&&Ii(n);if(i){var pe=t.havingStyle(t.style.sup());f=sr(i,pe,t),H||(I=c.height-pe.fontMetrics().supDrop*pe.sizeMultiplier/t.sizeMultiplier)}if(s){var be=t.havingStyle(t.style.sub());p=sr(s,be,t),H||(L=c.depth+be.fontMetrics().subDrop*be.sizeMultiplier/t.sizeMultiplier)}var re;t.style===Gt.DISPLAY?re=h.sup1:t.style.cramped?re=h.sup3:re=h.sup2;var W=t.sizeMultiplier,X=Nt(.5/h.ptPerEm/W),ge=null;if(p){var se=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(c instanceof Rn||se){var me;ge=Nt(-((me=c.italic)!=null?me:0))}}var J;if(f&&p){I=Math.max(I,re,f.depth+.25*h.xHeight),L=Math.max(L,h.sub2);var xe=h.defaultRuleThickness,fe=4*xe;if(I-f.depth-(p.height-L)<fe){L=fe-(I-f.depth)+p.height;var Ae=.8*h.xHeight-(I-f.depth);Ae>0&&(I+=Ae,L-=Ae)}var O=[{type:"elem",elem:p,shift:L,marginRight:X,marginLeft:ge},{type:"elem",elem:f,shift:-I,marginRight:X}];J=ir({positionType:"individualShift",children:O})}else if(p){L=Math.max(L,h.sub1,p.height-.8*h.xHeight);var Ee=[{type:"elem",elem:p,marginLeft:ge,marginRight:X}];J=ir({positionType:"shift",positionData:L,children:Ee})}else if(f)I=Math.max(I,re,f.depth+.25*h.xHeight),J=ir({positionType:"shift",positionData:-I,children:[{type:"elem",elem:f,marginRight:X}]});else throw new Error("supsub must have either sup or sub.");var ce=Af(c,"right")||"mord";return kt([ce],[c,kt(["msupsub"],[J])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[or(e.base,t)];e.sub&&s.push(or(e.sub,t)),e.sup&&s.push(or(e.sup,t));var c;if(r)c=n?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Gt.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var p=e.base;p&&p.type==="op"&&p.limits&&(t.style===Gt.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===Gt.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Gt.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Gt.DISPLAY)?c="mover":c="msup"}return new Rt(c,s)}});js({type:"atom",htmlBuilder(e,t){return ud(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Rt("mo",[Wn(e.text,e.mode)]);if(e.family==="bin"){var n=fd(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 Dg={mi:"italic",mn:"normal",mtext:"normal"};js({type:"mathord",htmlBuilder(e,t){return Xu(e,t,"mathord")},mathmlBuilder(e,t){var r=new Rt("mi",[Wn(e.text,e.mode,t)]),n=fd(e,t)||"italic";return n!==Dg[r.type]&&r.setAttribute("mathvariant",n),r}});js({type:"textord",htmlBuilder(e,t){return Xu(e,t,"textord")},mathmlBuilder(e,t){var r=Wn(e.text,e.mode,t),n=fd(e,t)||"normal",i;return e.mode==="text"?i=new Rt("mtext",[r]):/[0-9]/.test(e.text)?i=new Rt("mn",[r]):e.text==="\\prime"?i=new Rt("mo",[r]):i=new Rt("mi",[r]),n!==Dg[i.type]&&i.setAttribute("mathvariant",n),i}});var Zc={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Jc={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};js({type:"spacing",htmlBuilder(e,t){if(Jc.hasOwnProperty(e.text)){var r=Jc[e.text].className||"";if(e.mode==="text"){var n=Xu(e,t,"textord");return n.classes.push(r),n}else return kt(["mspace",r],[ud(e.text,e.mode,t)],t)}else{if(Zc.hasOwnProperty(e.text))return kt(["mspace",Zc[e.text]],[],t);throw new zt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Jc.hasOwnProperty(e.text))r=new Rt("mtext",[new Nr(" ")]);else{if(Zc.hasOwnProperty(e.text))return new Rt("mspace");throw new zt('Unknown type of space "'+e.text+'"')}return r}});var Cp=()=>{var e=new Rt("mtd",[]);return e.setAttribute("width","50%"),e};js({type:"tag",mathmlBuilder(e,t){var r=new Rt("mtable",[new Rt("mtr",[Cp(),new Rt("mtd",[us(e.body,t)]),Cp(),new Rt("mtd",[us(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Tp={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},zp={"\\textbf":"textbf","\\textmd":"textmd"},C5={"\\textit":"textit","\\textup":"textup"},Rp=(e,t)=>{var r=e.font;if(r){if(Tp[r])return t.withTextFontFamily(Tp[r]);if(zp[r])return t.withTextFontWeight(zp[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(C5[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=Rp(e,t),n=Lr(e.body,r,!0);return kt(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Rp(e,t);return us(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=Aa("underline-line",t),i=t.fontMetrics().defaultRuleThickness,s=ir({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return kt(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new Rt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new Rt("munder",[or(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Dt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return ir({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Rt("mpadded",[or(e.body,t)],["vcenter"]);return new Rt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new zt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Np(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 kt(["mord","text"].concat(i.sizingClasses(t)),O1(n),i)},mathmlBuilder(e,t){var r=new Nr(Np(e)),n=new Rt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Np=e=>e.body.replace(/ /g,e.star?"␣":" "),Ki=ng,Lg=`[ \r
377
- ]`,T5="\\\\[a-zA-Z@]+",z5="\\\\[^\uD800-\uDFFF]",R5="("+T5+")"+Lg+"*",N5=`\\\\(
378
- |[ \r ]+
379
- ?)[ \r ]*`,Nf="[̀-ͯ]",I5=new RegExp(Nf+"+$"),q5="("+Lg+"+)|"+(N5+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Nf+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Nf+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+R5)+("|"+z5+")");class Ip{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(q5,"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 zt("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(`
380
- `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Tn(i,new pn(this,r,this.tokenRegex.lastIndex))}}class M5{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new zt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var D5=Ag;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 qp={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Qe("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new zt("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=qp[t.text],n==null||n>=r)throw new zt("Invalid base-"+r+" digit "+t.text);for(var i;(i=qp[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var md=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new zt("\\newcommand's first argument must be a macro name");var s=i[0].text,c=e.isDefined(s);if(c&&!t)throw new zt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new zt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var p="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)p+=h.text,h=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new zt("Invalid number of arguments: "+p);f=parseInt(p),i=e.consumeArg().tokens}return c&&n||e.macros.set(s,{tokens:i,numArgs:f}),""};Qe("\\newcommand",e=>md(e,!1,!0,!1));Qe("\\renewcommand",e=>md(e,!0,!1,!1));Qe("\\providecommand",e=>md(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),Ki[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 Mp={",":"\\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"},L5=new Set(["bin","rel"]);Qe("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Mp?t=Mp[r]:(r.slice(0,4)==="\\not"||r in pr.math&&L5.has(pr.math[r].group))&&(t="\\dotsb"),t});var gd={")":!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 gd?"\\ldots\\,":"\\ldots"});Qe("\\dotsc",function(e){var t=e.future().text;return t in gd&&t!==","?"\\ldots\\,":"\\ldots"});Qe("\\cdots",function(e){var t=e.future().text;return t in gd?"\\@cdots\\,":"\\@cdots"});Qe("\\dotsb","\\cdots");Qe("\\dotsm","\\cdots");Qe("\\dotsi","\\!\\cdots");Qe("\\dotsx","\\ldots\\,");Qe("\\DOTSI","\\relax");Qe("\\DOTSB","\\relax");Qe("\\DOTSX","\\relax");Qe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Qe("\\,","\\tmspace+{3mu}{.1667em}");Qe("\\thinspace","\\,");Qe("\\>","\\mskip{4mu}");Qe("\\:","\\tmspace+{4mu}{.2222em}");Qe("\\medspace","\\:");Qe("\\;","\\tmspace+{5mu}{.2777em}");Qe("\\thickspace","\\;");Qe("\\!","\\tmspace-{3mu}{.1667em}");Qe("\\negthinspace","\\!");Qe("\\negmedspace","\\tmspace-{4mu}{.2222em}");Qe("\\negthickspace","\\tmspace-{5mu}{.277em}");Qe("\\enspace","\\kern.5em ");Qe("\\enskip","\\hskip.5em\\relax");Qe("\\quad","\\hskip1em\\relax");Qe("\\qquad","\\hskip2em\\relax");Qe("\\tag","\\@ifstar\\tag@literal\\tag@paren");Qe("\\tag@paren","\\tag@literal{({#1})}");Qe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new zt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Qe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Qe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Qe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Qe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Qe("\\newline","\\\\\\relax");Qe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fg=Nt(ci["Main-Regular"][84][1]-.7*ci["Main-Regular"][65][1]);Qe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Fg+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Qe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Fg+"}{\\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 Bg=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=L=>H=>{e&&(H.macros.set("|",c),i.length&&H.macros.set("\\|",f));var pe=L;if(!L&&i.length){var be=H.future();be.text==="|"&&(H.popToken(),pe=!0)}return{tokens:pe?i:n,numArgs:0}};t.macros.set("|",p(!1)),i.length&&t.macros.set("\\|",p(!0));var h=t.consumeArg().tokens,I=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:I.reverse(),numArgs:0}};Qe("\\bra@ket",Bg(!1));Qe("\\bra@set",Bg(!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 jg={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class F5{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 M5(D5,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Ip(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 zt("Extra }",s)}else if(s.text==="EOF")throw new zt("Unexpected end of input in a macro argument, expected '"+(t&&n?t[f]:"}")+"'",s);if(t&&n)if((c===0||c===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(c!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new zt("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var s=this.popToken();if(n[i]!==s.text)throw new zt("Use of the macro doesn't match its definition",s)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(r&&r[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new zt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new zt("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,c=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var p=s[f];if(p.text==="#"){if(f===0)throw new zt("Incomplete placeholder at end of macro body",p);if(p=s[--f],p.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(p.text))s.splice(f,2,...c[+p.text-1]);else throw new zt("Not a valid argument number",p)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new 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 Ip(i,this.settings),p=[],h=f.lex();h.text!=="EOF";)p.push(h),h=f.lex();p.reverse();var I={tokens:p,numArgs:s};return I}return i}isDefined(t){return this.macros.has(t)||Ki.hasOwnProperty(t)||pr.math.hasOwnProperty(t)||pr.text.hasOwnProperty(t)||jg.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Ki.hasOwnProperty(t)&&!Ki[t].primitive}}var Dp=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,So=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Oc={"́":{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"}},Lp={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class sc{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 F5(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new zt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new 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(sc.endOfExpression.has(i.text)||r&&i.text===r||t&&Ki[i.text]&&Ki[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var s=t[i];if(s.type==="infix"){if(r!==-1)throw new zt("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var c,f,p=t.slice(0,r),h=t.slice(r+1);p.length===1&&p[0].type==="ordgroup"?c=p[0]:c={type:"ordgroup",mode:this.mode,body:p},h.length===1&&h[0].type==="ordgroup"?f=h[0]:f={type:"ordgroup",mode:this.mode,body:h};var I;return n==="\\\\abovefrac"?I=this.callFunction(n,[c,t[r],f],[]):I=this.callFunction(n,[c,f],[]),[I]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new zt("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new zt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new zt("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new zt("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new zt("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},p=[f];for(this.consume();this.fetch().text==="'";)p.push(f),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:p}}else if(So[s.text]){var h=Dp.test(s.text),I=[];for(I.push(new Tn(So[s.text])),this.consume();;){var L=this.fetch().text;if(!So[L]||Dp.test(L)!==h)break;I.unshift(new Tn(So[L])),this.consume()}var H=this.subparse(I);h?i={type:"ordgroup",mode:"math",body:H}:n={type:"ordgroup",mode:"math",body:H}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,s=Ki[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new zt("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new zt("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new zt("Can't use function '"+i+"' in math mode",n);var{args:c,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,c,f,n,t)}callFunction(t,r,n,i,s){var c={funcName:t,parser:this,token:i,breakOnTokenText:s},f=Ki[t];if(f&&f.handler)return f.handler(c,r,n);throw new zt("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],c=0;c<n;c++){var f=r.argTypes&&r.argTypes[c],p=c<r.numOptionalArgs;("primitive"in r&&r.primitive&&f==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(f="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",f,p);if(p)s.push(h);else if(h!=null)i.push(h);else throw new zt("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new zt("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new zt("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new zt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)i=c,s+=i.text,this.consume();if(s==="")throw new zt("Invalid "+r+": '"+n.text+"'",n);return n.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new zt("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new zt("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!K1(s))throw new zt("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),c}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var c=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),p=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:pn.range(n,p),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!jg.hasOwnProperty(i)){if(this.settings.throwOnError)throw new zt("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var s=i.text,c=t[n+1];if(!(!c||c.type!=="textord")){if(s==="-"&&c.text==="-"){var f=t[n+2];n+1<r&&f&&f.type==="textord"&&f.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc: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 zt(`\\verb assertion failed --
381
- please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Lp.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=Lp[r[0]]+r.slice(1));var s=I5.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"&&gf.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;e5(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&&(G1(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 I=0;I<s[0].length;I++){var L=s[0][I];if(!Oc[L])throw new zt("Unknown accent ' "+L+"'",t);var H=Oc[L][this.mode]||Oc[L].text;if(!H)throw new zt("Accent "+L+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:pn.range(t),label:H,isStretchy:!1,isShifty:!0,base:c}}return c}}sc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var vd=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new sc(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new zt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Tn("\\df@tag")])}]}return i},Pg=function(t,r,n){r.textContent="";var i=yd(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."),Pg=function(){throw new zt("KaTeX doesn't work in quirks mode.")});var B5=function(t,r){var n=yd(t,r).toMarkup();return n},j5=function(t,r){var n=new sd(r);return vd(t,n)},Ug=function(t,r,n){if(n.throwOnError||!(t instanceof zt))throw t;var i=kt(["katex-error"],[new Rn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},yd=function(t,r){var n=new sd(r);try{var i=vd(t,n);return Y3(i,t,n)}catch(s){return Ug(s,t,n)}},P5=function(t,r){var n=new sd(r);try{var i=vd(t,n);return G3(i,t,n)}catch(s){return Ug(s,t,n)}},U5="0.16.47",H5={Span:Ba,Anchor:Gu,SymbolNode:Rn,SvgNode:zi,PathNode:ls,LineNode:mf},V5={version:U5,render:Pg,renderToString:B5,ParseError:zt,SETTINGS_SCHEMA:hf,__parse:j5,__renderToDomTree:yd,__renderToHTMLTree:P5,__setFontMetrics:E3,__defineSymbol:he,__defineFunction:Dt,__defineMacro:Qe,__domTree:H5};function bd(e,t){return V5.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function W5({node:e}){return qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:bd(Ia(e.value),!0)}})]})}function Y5({chunk:e}){return qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:bd(e.value,!0)}})}const Fp={path:null,href:null},G5=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function K5(e,t){return ri([...Gr(e),...Gr(t)])}function Bp(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 X5(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:ri(Gr(r.slice(2))),href:null}:r.startsWith(":")?{path:K5(t,r),href:null}:r.startsWith("//")?{path:ri(Bp(r)),href:null}:G5(r)?{path:null,href:r}:r.startsWith("/")?{path:ri([...Gr(t),...Bp(r)]),href:null}:Fp:Fp}function Q5({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=X5(e,t);return s?qe.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?qe.jsx("a",{className:"descend",href:i,onClick:c=>{c.preventDefault(),r(i)},children:n}):qe.jsx(qe.Fragment,{children:n})}function Hg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function e$(e){return Hg(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 Z5=/\$\$([\s\S]+?)\$\$|`([^`]+?)`|\[((?:[^\[\]]|\[[^\]]*\])*?)\]\(([^)]+?)\)/g;function Vg(e,t,r){const n=String(e??""),i=[];let s="",c=0;const f=()=>{s&&(i.push(qe.jsx("span",{dangerouslySetInnerHTML:{__html:s}},c++)),s="")};let p=0;for(const h of n.matchAll(Z5))s+=e$(n.slice(p,h.index)),h[1]!==void 0?s+=bd(h[1],!1):h[2]!==void 0?s+=`<code>${Hg(h[2])}</code>`:(f(),i.push(qe.jsx(Q5,{target:h[4],documentPath:r,onNavigate:t,children:qe.jsx("span",{dangerouslySetInnerHTML:{__html:e$(h[3])}})},c++))),p=h.index+h[0].length;return s+=e$(n.slice(p)),f(),i}function J5({node:e,onNavigate:t}){return qe.jsxs("div",{className:"marklower",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx("p",{className:"chapter-prose",children:Vg(Ia(e.value),t,e.documentPath)})]})}function O5({chunk:e,onNavigate:t}){return qe.jsx("p",{className:"chapter-prose",children:Vg(e.value,t,e.documentPath)})}/**
382
- * @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
383
- */(function(e){var t;if(typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof window<"u"&&(e=window),e.console==null&&(e.console={}),typeof e.console=="object"?t=e.console:t={},"log"in t||(t.log=function(){}),"warn"in t||(t.warn=t.log),typeof e.Opal<"u")return t.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),e.Opal;var r,n,i,s,c,f,p,h=e.Opal={};h.global=e,h.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var I=Function.prototype.call,L=Function.prototype.bind,H=Object.hasOwn||I.bind(Object.prototype.hasOwnProperty),pe=Object.setPrototypeOf,be=I.bind(Array.prototype.slice),re=I.bind(Array.prototype.splice),W=4,X=W;function ge(){return X+=2,X}h.uid=ge,h.id=function(x){return x.$$is_number?x*2+1:(x.$$id==null&&J(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,R){if(x||(x=h.Exception||Error),p&&p.$raise)arguments.length>2?p.$raise(x.$new.apply(x,be(arguments,1))):p.$raise(x,R);else throw x.$new?x.$new(R):new x(R)}function J(x,R,ve){typeof x=="string"?x[R]=ve:Object.defineProperty(x,R,{value:ve,enumerable:!1,configurable:!0,writable:!0})}h.prop=J,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,R,ve,Fe){x=x.$$class,Fe&&ve?(Fe=Fe.$$class,me(h.TypeError,"can't convert "+x+" into "+R+" ("+x+"#"+ve+" gives "+Fe+")")):me(h.TypeError,"no implicit conversion of "+x+" into "+R)},h.coerce_to=function(x,R,ve,Fe){var Ze;return ve==="to_int"&&R===h.Integer&&x.$$is_number?x<0?Math.ceil(x):Math.floor(x):ve==="to_str"&&R===h.String&&x.$$is_string||h.is_a(x,R)?x:x["$respond_to?"].$$pristine&&x.$method_missing.$$pristine?(Ze=x[bt(ve)],(Ze==null||Ze.$$stub)&&h.type_error(x,R),Ze.apply(x,Fe)):(x["$respond_to?"](ve)||h.type_error(x,R),Fe==null&&(Fe=[]),h.send(x,ve,Fe))},h.respond_to=function(x,R,ve){if(x==null||!x.$$class)return!1;ve=!!ve;var Fe=x[R];if(x["$respond_to?"].$$pristine){if(typeof Fe=="function"&&!Fe.$$stub)return!0;if(!x["$respond_to_missing?"].$$pristine)return h.send(x,x["$respond_to_missing?"],[R.substr(1),ve])}else return h.send(x,x["$respond_to?"],[R.substr(1),ve])},h.trace_class=!1,h.tracers_for_class=[];function fe(x){var R,ve,Fe;for(R=0,ve=h.tracers_for_class.length;R<ve;R++)Fe=h.tracers_for_class[R],Fe.trace_object=x,Fe.block.$call(Fe)}function Ae(x,R){if(x.$$autoload[R].loaded){if(x.$$autoload[R].loaded&&!x.$$autoload[R].required&&x.$$autoload[R].exception)throw x.$$autoload[R].exception}else{x.$$autoload[R].loaded=!0;try{h.Kernel.$require(x.$$autoload[R].path)}catch(ve){throw x.$$autoload[R].exception=ve,ve}if(x.$$autoload[R].required=!0,x.$$const[R]!=null)return x.$$autoload[R].success=!0,x.$$const[R]}}function O(x,R){if(x){if(x.$$const[R]!=null)return x.$$const[R];if(x.$$autoload&&x.$$autoload[R])return Ae(x,R)}}function Ee(x,R){var ve,Fe,Ze;if(x.length!==0)for(ve=0,Fe=x.length;ve<Fe;ve++){if(Ze=x[ve].$$const[R],Ze!=null)return Ze;if(x[ve].$$autoload&&x[ve].$$autoload[R])return Ae(x[ve],R)}}function ce(x,R){var ve,Fe,Ze;if(x!=null)for(Ze=rt(x),ve=0,Fe=Ze.length;ve<Fe;ve++){if(Ze[ve].$$const&&H(Ze[ve].$$const,R))return Ze[ve].$$const[R];if(Ze[ve].$$autoload&&Ze[ve].$$autoload[R])return Ae(Ze[ve],R)}}function w(x,R){if(x==null||x.$$is_module)return ce(i,R)}function Se(x,R){return(x||i).$const_missing(R)}h.const_get_local=function(x,R,ve){var Fe;if(x!=null)return x==="::"&&(x=i),!x.$$is_module&&!x.$$is_class&&me(h.TypeError,x.toString()+" is not a class/module"),Fe=O(x,R),Fe!=null||ve?Fe:Se(x,R)},h.const_get_qualified=function(x,R,ve){var Fe,Ze,ct,a=h.const_cache_version;if(R==null)return Fe=O(i,x),Fe??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&&(J(x,"$$const_cache",Object.create(null)),Ze=x.$$const_cache),ct=Ze[R],ct==null||ct[0]!==a?((Fe=O(x,R))!=null||(Fe=ce(x,R))!=null,Ze[R]=[a,Fe]):Fe=ct[1],Fe!=null||ve?Fe:Se(x,R)},h.const_cache_version=1,h.const_get_relative=function(x,R,ve){var Fe=x[0],Ze,ct=h.const_cache_version,a,ae;return(a=x.$$const_cache)==null&&(J(x,"$$const_cache",Object.create(null)),a=x.$$const_cache),ae=a[R],ae==null||ae[0]!==ct?((Ze=O(Fe,R))!=null||(Ze=Ee(x,R))!=null||(Ze=ce(Fe,R))!=null||(Ze=w(Fe,R))!=null,a[R]=[ct,Ze]):Ze=ae[1],Ze!=null||ve?Ze:Se(Fe,R)};function N(x,R,ve){var Fe=!0;return(x==null||x==="::")&&(x=i),ve.$$is_a_module&&((ve.$$name==null||ve.$$name===r)&&(ve.$$name=R),ve.$$base_module==null&&(ve.$$base_module=x)),x.$$const=x.$$const||Object.create(null),(R in x.$$const||"$$autoload"in x&&R in x.$$autoload)&&(Fe=!1),x.$$const[R]=ve,x.$$=x.$$const,h.const_cache_version++,x===i&&(h[R]=ve),J(x,R,ve),Fe&&x.$const_added&&!x.$const_added.$$pristine&&x.$const_added(R),ve}h.const_set=N,h.constants=function(x,R){R==null&&(R=!0);var ve,Fe=[x],Ze,ct,a={},ae;for(R&&(Fe=Fe.concat(rt(x))),R&&x.$$is_module&&(Fe=Fe.concat([h.Object]).concat(rt(h.Object))),Ze=0,ct=Fe.length;Ze<ct&&(ve=Fe[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,R){if(h.const_cache_version++,x.$$const[R]!=null){var ve=x.$$const[R];return delete x.$$const[R],ve}if(x.$$autoload&&x.$$autoload[R])return delete x.$$autoload[R],r;me(h.NameError,"constant "+x+"::"+x.$name()+" not defined")},h.const_get_relative_factory=function(x){return function(R,ve){return h.$$(x,R,ve)}},h.$$=h.const_get_relative,h.$$$=h.const_get_qualified,h.$r=h.const_get_relative_factory;function ne(x,R,ve){var Fe;if(R!=null&&R.$$bridge?Fe=function(){var ae=be(arguments),te=new(L.apply(R.$$constructor,[null].concat(ae)));return pe(te,Fe.$$prototype),te}:Fe=function(){},x&&x!==r&&J(Fe,"displayName","::"+x),J(Fe,"$$name",x),J(Fe,"$$constructor",Fe),J(Fe,"$$prototype",Fe.prototype),J(Fe,"$$const",{}),J(Fe,"$$is_class",!0),J(Fe,"$$is_a_module",!0),J(Fe,"$$super",R),J(Fe,"$$cvars",{}),J(Fe,"$$own_included_modules",[]),J(Fe,"$$own_prepended_modules",[]),J(Fe,"$$ancestors",[]),J(Fe,"$$ancestors_cache_version",null),J(Fe,"$$subclasses",[]),J(Fe.$$prototype,"$$class",Fe),h.Class&&pe(Fe,h.Class.prototype),R!=null){if(pe(Fe.$$prototype,R.$$prototype),ve!==!0)if(typeof WeakRef<"u"){var Ze,ct,a=[];for(Ze=0;Ze<R.$$subclasses.length;Ze++)ct=R.$$subclasses[Ze],ct.deref()!==void 0&&a.push(ct);a.push(new WeakRef(Fe)),R.$$subclasses=a}else R.$$subclasses.push(Fe);R.$$meta&&h.build_class_singleton_class(Fe)}return Fe}h.allocate_class=ne;function B(x,R){var ve=O(x,R);if(ve)return ve.$$is_class||me(h.TypeError,R+" is not a class"),ve}function Le(x,R){x.$$super!==R&&me(h.TypeError,"superclass mismatch for class "+x.$$name)}h.klass=function(x,R,ve){var Fe;x==null||x=="::"?x=i:!x.$$is_class&&!x.$$is_module&&(x=x.$$class),R!=null&&(!R.hasOwnProperty||R.hasOwnProperty&&!R.hasOwnProperty("$$is_class"))&&(R.constructor&&R.constructor.name=="Function"?(Fe=R,R=i):me(h.TypeError,"superclass must be a Class ("+(R.constructor&&(R.constructor.name||R.constructor.$$name)||typeof R)+" given)"));var Ze=B(x,ve);return Ze!=null?R&&Le(Ze,R):(R==null&&(R=i),Ze=ne(ve,R),N(x,ve,Ze),R.$inherited&&R.$inherited(Ze),Fe&&h.bridge(Fe,Ze)),h.trace_class&&fe(Ze),Ze};function ue(x){var R=function(){},ve=R;return x&&J(R,"displayName",x+".constructor"),J(ve,"$$name",x),J(ve,"$$prototype",R.prototype),J(ve,"$$const",{}),J(ve,"$$is_module",!0),J(ve,"$$is_a_module",!0),J(ve,"$$cvars",{}),J(ve,"$$iclasses",[]),J(ve,"$$own_included_modules",[]),J(ve,"$$own_prepended_modules",[]),J(ve,"$$ancestors",[ve]),J(ve,"$$ancestors_cache_version",null),pe(ve,h.Module.prototype),ve}h.allocate_module=ue;function P(x,R){var ve=O(x,R);return ve==null&&x===i&&(ve=ce(i,R)),ve&&!ve.$$is_module&&ve!==i&&me(h.TypeError,R+" is not a module"),ve}h.module=function(x,R){var ve;return x==null||x=="::"?x=i:!x.$$is_class&&!x.$$is_module&&(x=x.$$class),ve=P(x,R),ve==null&&(ve=ue(R),N(x,R,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,R){x.hasOwnProperty("$$meta")?x.$$meta=R:J(x,"$$meta",R),x.$$frozen?x.$$meta.$freeze():pe(x,R.$$prototype)}h.build_class_singleton_class=function(x){if(x.$$meta)return x.$$meta;var R=x===n?c:h.get_singleton_class(x.$$super),ve=ne(null,R,!0);return J(ve,"$$is_singleton",!0),J(ve,"$$singleton_of",x),v(x,ve),J(x,"$$class",h.Class),ve},h.build_module_singleton_class=function(x){if(x.$$meta)return x.$$meta;var R=ne(null,h.Module,!0);return J(R,"$$is_singleton",!0),J(R,"$$singleton_of",x),v(x,R),J(x,"$$class",h.Module),R},h.build_object_singleton_class=function(x){var R=x.$$class,ve=ne(r,R,!0);return J(ve,"$$is_singleton",!0),J(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 R=[],ve=[],Fe=rt(x),Ze=0,ct=Fe.length;Ze<ct;Ze++){var a=Fe[Ze],ae=a.$$prototype;ae.hasOwnProperty("$$dummy")&&(ae=ae.$$define_methods_on);for(var te=Object.getOwnPropertyNames(ae),V=0,_e=te.length;V<_e;V++){var y=te[V];if(h.is_method(y)){var Y=y.slice(1),Ue=ae[y];Ue.$$stub&&R.indexOf(Y)===-1&&R.push(Y),!Ue.$$stub&&ve.indexOf(Y)===-1&&R.indexOf(Y)===-1&&ve.push(Y)}}}return ve},h.own_instance_methods=function(x){var R=[],ve=x.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);for(var Fe=Object.getOwnPropertyNames(ve),Ze=0,ct=Fe.length;Ze<ct;Ze++){var a=Fe[Ze];if(h.is_method(a)){var ae=ve[a];if(!ae.$$stub){var te=a.slice(1);R.push(te)}}}return R},h.methods=function(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 R=h.get_singleton_class(x),ve=h.own_instance_methods(R),Fe=h.own_instance_methods(R.$$super);return ve.concat(Fe)},h.class_variables=function(x){var R=rt(x),ve,Fe=R.length,Ze={};for(ve=Fe-1;ve>=0;ve--){var ct=R[ve];for(var a in ct.$$cvars)Ze[a]=ct.$$cvars[a]}return Ze},h.class_variable_set=function(x,R,ve){var Fe=rt(x),Ze,ct=Fe.length;for(Ze=ct-2;Ze>=0;Ze--){var a=Fe[Ze];if(H(a.$$cvars,R))return a.$$cvars[R]=ve,ve}return x.$$cvars[R]=ve,ve},h.class_variable_get=function(x,R,ve){if(H(x.$$cvars,R))return x.$$cvars[R];var Fe=rt(x),Ze,ct=Fe.length;for(Ze=0;Ze<ct;Ze++){var a=Fe[Ze];if(H(a.$$cvars,R))return a.$$cvars[R]}return ve||me(h.NameError,"uninitialized class variable "+R+" in "+x.$name()),r};function $(x){return x.hasOwnProperty("$$iclass")&&x.hasOwnProperty("$$root")}function l(x){for(var R=[],ve,Fe=Object.getPrototypeOf(x.$$prototype);Fe&&!Fe.hasOwnProperty("$$class");)ve=Q(Fe),ve&&R.push(ve),Fe=Object.getPrototypeOf(Fe);return R}function u(x){var R=[],ve,Fe=Object.getPrototypeOf(x.$$prototype);if(x.$$prototype.hasOwnProperty("$$dummy"))for(;Fe&&Fe!==x.$$prototype.$$define_methods_on;)ve=Q(Fe),ve&&R.push(ve),Fe=Object.getPrototypeOf(Fe);return R}h.append_features=function(x,R){var ve=rt(x),Fe=[];ve.indexOf(R)!==-1&&me(h.ArgumentError,"cyclic include detected");for(var Ze=0,ct=ve.length;Ze<ct;Ze++){var a=ve[Ze],ae=_(a);J(ae,"$$included",!0),Fe.push(ae)}var te=rt(R),V=A(Fe),_e,y;if(te.indexOf(x)===-1)_e=R.$$prototype,y=Object.getPrototypeOf(R.$$prototype);else{for(var Y=R.$$prototype,Ue=Object.getPrototypeOf(Y);Ue!=null&&!(Ue.$$module===x&&$(Ue));)Y=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var G=Object.getPrototypeOf(Ue);G.hasOwnProperty("$$iclass")&&!$(G);)G=Object.getPrototypeOf(G);_e=Y,y=G}else _e=R.$$prototype,y=Object.getPrototypeOf(R.$$prototype)}pe(_e,V.first),pe(V.last,y),R.$$own_included_modules=l(R),h.const_cache_version++},h.prepend_features=function(x,R){var ve=rt(x),Fe=[];ve.indexOf(R)!==-1&&me(h.ArgumentError,"cyclic prepend detected");for(var Ze=0,ct=ve.length;Ze<ct;Ze++){var a=ve[Ze],ae=_(a);J(ae,"$$prepended",!0),Fe.push(ae)}var te=A(Fe),V=R.$$prototype,_e=Object.getPrototypeOf(V),y,Y,Ue;V.hasOwnProperty("$$dummy")?y=V.$$define_methods_on:(y=k(R),d(R),J(V,"$$dummy",!0),J(V,"$$define_methods_on",y),pe(V,y),pe(y,_e));var G=rt(R);if(G.indexOf(x)===-1)for(Y=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");pe(Y,te.first),pe(te.last,Ue),R.$$own_prepended_modules=u(R),h.const_cache_version++};function d(x){for(var R=x.$$prototype,ve=Object.getOwnPropertyNames(R),Fe=0;Fe<ve.length;Fe++){var Ze=ve[Fe];h.is_method(Ze)&&delete R[Ze]}}function _(x){var R=k(x);return x.$$is_module&&x.$$iclasses.push(R),R}function k(x){var R={},ve=x.$$prototype;ve.hasOwnProperty("$$dummy")&&(ve=ve.$$define_methods_on);var Fe=Object.getOwnPropertyNames(ve),Ze=Fe.length,ct;for(ct=0;ct<Ze;ct++){var a=Fe[ct];J(R,a,ve[a])}return J(R,"$$iclass",!0),J(R,"$$module",x),R}function A(x){var R=x.length,ve=x[0];if(J(ve,"$$root",!0),R===1)return{first:ve,last:ve};for(var Fe=ve,Ze=1;Ze<R;Ze++){var ct=x[Ze];pe(Fe,ct),Fe=ct}return{first:x[0],last:x[R-1]}}h.bridge=function(x,R){x.hasOwnProperty("$$bridge")&&me(h.ArgumentError,"already bridged"),J(x,"$$bridge",R),pe(x.prototype,(R.$$super||h.Object).$$prototype),J(R,"$$prototype",x.prototype),J(R.$$prototype,"$$class",R),J(R,"$$constructor",x),J(R,"$$bridge",!0)};function Q(x){if(!x.hasOwnProperty("$$dummy")){if(x.hasOwnProperty("$$iclass"))return x.$$module;if(x.hasOwnProperty("$$class"))return x.$$class}}function De(x){return x.$$own_prepended_modules.concat([x]).concat(x.$$own_included_modules)}function rt(x){if(!x)return[];if(x.$$ancestors_cache_version===h.const_cache_version)return x.$$ancestors;var R=[],ve,Fe,Ze;for(ve=0,Fe=De(x),Ze=Fe.length;ve<Ze;ve++)R.push(Fe[ve]);if(x.$$super)for(ve=0,Fe=rt(x.$$super),Ze=Fe.length;ve<Ze;ve++)R.push(Fe[ve]);return x.$$ancestors_cache_version=h.const_cache_version,x.$$ancestors=R,R}h.ancestors=rt,h.included_modules=function(x){for(var R=[],ve=null,Fe=Object.getPrototypeOf(x.$$prototype);Fe&&Object.getPrototypeOf(Fe);Fe=Object.getPrototypeOf(Fe))ve=Q(Fe),ve&&ve.$$is_module&&Fe.$$iclass&&Fe.$$included&&R.push(ve);return R},h.add_stubs=function(x){var R=h.BasicObject.$$prototype,ve,Fe;x=x.split(",");for(var Ze=0,ct=x.length;Ze<ct;Ze++)ve=bt(x[Ze]),Fe=R[ve],(Fe==null||Fe.$$stub)&&h.add_stub_for(R,ve)},h.add_stub_for=function(x,R){J(x,R,h.stub_for(R))},h.stub_for=function(x){function R(){this.$method_missing.$$p=R.$$p,R.$$p=null;for(var ve=new Array(arguments.length),Fe=0,Ze=ve.length;Fe<Ze;Fe++)ve[Fe]=arguments[Fe];return this.$method_missing.apply(this,[x.slice(1)].concat(ve))}return R.$$stub=!0,R},h.ac=function(x,R,ve,Fe){var Ze="";ve.$$is_a_module?Ze+=ve.$$name+".":Ze+=ve.$$class.$$name+"#",Ze+=Fe,me(h.ArgumentError,"["+Ze+"] wrong number of arguments (given "+x+", expected "+R+")")},h.block_ac=function(x,R,ve){var Fe="`block in "+ve+"'";me(h.ArgumentError,Fe+": wrong number of arguments (given "+x+", expected "+R+")")};function ft(x){return x.hasOwnProperty("$$meta")&&x.$$meta!==null?rt(x.$$meta):rt(x.$$class)}h.find_super=function(x,R,ve,Fe,Ze){var ct=bt(R),a,ae;a=ft(x);for(var te=a.indexOf(ve.$$owner),V=te+1;V<a.length;V++){var _e=a[V],y=_e.$$prototype;if(y.hasOwnProperty("$$dummy")&&(y=y.$$define_methods_on),y.hasOwnProperty(ct)){ae=y[ct];break}}return!Fe&&ae&&ae.$$stub&&x.$method_missing.$$pristine&&me(h.NoMethodError,"super: no superclass method `"+R+"' for "+x,R),ae.$$stub&&!Ze?null:ae},h.find_block_super=function(x,R,ve,Fe,Ze){var ct=R;return ve||me(h.RuntimeError,"super called outside of method"),Ze&&ve.$$define_meth&&me(h.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),ve.$$def&&(ct=ve.$$jsid),h.find_super(x,ct,ve,Fe)},h.find_super_dispatcher=h.find_super,h.find_iter_super_dispatcher=h.find_block_super,h.yield1=function(x,R){typeof x!="function"&&me(h.LocalJumpError,"no block given");var ve=x.$$has_top_level_mlhs_arg,Fe=x.$$has_trailing_comma_in_args;return(x.length>1||(ve||Fe)&&x.length===1)&&(R=h.to_ary(R)),(x.length>1||Fe&&x.length===1)&&R.$$is_array?x.apply(null,R):x(R)},h.yieldX=function(x,R){if(typeof x!="function"&&me(h.LocalJumpError,"no block given"),x.length>1&&R.length===1&&R[0].$$is_array)return x.apply(null,R[0]);if(!R.$$is_array){for(var ve=new Array(R.length),Fe=0,Ze=ve.length;Fe<Ze;Fe++)ve[Fe]=R[Fe];return x.apply(null,ve)}return x.apply(null,R)},h.rescue=function(x,R){for(var ve=0;ve<R.length;ve++){var Fe=R[ve];if(Fe.$$is_array){var Ze=h.rescue(x,Fe);if(Ze)return Ze}else if(Fe===h.JS.Error||Fe["$==="](x))return Fe}return null},h.is_a=function(x,R){if(R!=null&&x.$$meta===R||x.$$class===R)return!0;if(x.$$is_number&&R.$$is_number_class)return R.$$is_integer_class?x%1===0:!0;var ve=rt(x.$$is_class?h.get_singleton_class(x):x.$$meta||x.$$class);return ve.indexOf(R)!==-1},h.to_hash=function(x){if(x.$$is_hash)return x;if(x["$respond_to?"]("to_hash",!0)){var R=x.$to_hash();if(R.$$is_hash)return R;me(h.TypeError,"Can't convert "+x.$$class+" to Hash ("+x.$$class+"#to_hash gives "+R.$$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 R=x.$to_ary();if(R===r)return[x];if(R.$$is_array)return R;me(h.TypeError,"Can't convert "+x.$$class+" to Array ("+x.$$class+"#to_ary gives "+R.$$class+")")}else return[x]},h.to_a=function(x){if(x.$$is_array)return x.slice();if(x["$respond_to?"]("to_a",!0)){var R=x.$to_a();if(R===r)return[x];if(R.$$is_array)return R;me(h.TypeError,"Can't convert "+x.$$class+" to Array ("+x.$$class+"#to_a gives "+R.$$class+")")}else return[x]},h.extract_kwargs=function(x){var R=x[x.length-1];if(R!=null&&h.respond_to(R,"$to_hash",!0))return re(x,x.length-1),R},h.kwrestargs=function(x,R){var ve=[],Fe={},Ze,ct=x.$$smap;for(Ze in ct)R[Ze]||(ve.push(Ze),Fe[Ze]=ct[Ze]);return h.hash2(ve,Fe)};function _t(x,R){typeof R=="number"?x.$$arity=R:typeof R=="object"&&Object.assign(x,R)}var At={};function bt(x){return At[x]||(At[x]="$"+x)}h.jsid=bt,h.send=function(x,R,ve,Fe,Ze){var ct;return typeof R=="function"?(ct=R,R=null):typeof R=="string"?ct=x[bt(R)]:me(h.NameError,"Passed method should be a string or a function"),h.send2(x,ct,R,ve,Fe,Ze)},h.send2=function(x,R,ve,Fe,Ze,ct){return R==null&&ve!=null&&x.$method_missing&&(R=x.$method_missing,Fe=[ve].concat(Fe)),_t(Ze,ct),typeof Ze=="function"&&(R.$$p=Ze),R.apply(x,Fe)},h.refined_send=function(x,R,ve,Fe,Ze,ct){var a,ae,te,V,_e,y,Y,Ue,G,Ie;for(V=ft(R),a=0;a<V.length;a++)for(_e=h.id(V[a]),ae=0;ae<x.length;ae++)for(y=x[ae],te=y.length-1;te>=0;te--)if(Y=y[te],!(typeof Y.$$refine_modules>"u")&&(Ue=Y.$$refine_modules,!(typeof Ue[_e]>"u")&&(G=Ue[_e],typeof G.$$prototype[bt(ve)]<"u")))return Ie=G.$$prototype[bt(ve)],h.send2(R,Ie,ve,Fe,Ze,ct);return h.send(R,ve,Fe,Ze,ct)},h.lambda=function(x,R){return x.$$is_lambda=!0,_t(x,R),x},h.def=function(x,R,ve,Fe){return _t(ve,Fe),x===h.top?h.defn(h.Object,R,ve):!x.$$eval&&x.$$is_a_module?h.defn(x,R,ve):h.defs(x,R,ve)},h.defn=function(x,R,ve){qt(x),ve.displayName=R,ve.$$owner=x;var Fe=R.substr(1),Ze=x.$$prototype;if(Ze.hasOwnProperty("$$dummy")&&(Ze=Ze.$$define_methods_on),J(Ze,R,ve),x.$$is_module){x.$$module_function&&h.defs(x,R,ve);for(var ct=0,a=x.$$iclasses,ae=a.length;ct<ae;ct++){var te=a[ct];J(te,R,ve)}}var V=x.$$singleton_of;return x.$method_added&&!x.$method_added.$$stub&&!V?x.$method_added(Fe):V&&V.$singleton_method_added&&!V.$singleton_method_added.$$stub&&V.$singleton_method_added(Fe),Fe},h.defs=function(x,R,ve,Fe){return _t(ve,Fe),(x.$$is_string||x.$$is_number)&&me(h.TypeError,"can't define singleton"),h.defn(h.get_singleton_class(x),R,ve)},h.rdef=function(x,R){H(x.$$prototype,R)||me(h.NameError,"method '"+R.substr(1)+"' not defined in "+x.$name()),delete x.$$prototype[R],x.$$is_singleton?x.$$prototype.$singleton_method_removed&&!x.$$prototype.$singleton_method_removed.$$stub&&x.$$prototype.$singleton_method_removed(R.substr(1)):x.$method_removed&&!x.$method_removed.$$stub&&x.$method_removed(R.substr(1))},h.udef=function(x,R){(!x.$$prototype[R]||x.$$prototype[R].$$stub)&&me(h.NameError,"method '"+R.substr(1)+"' not defined in "+x.$name()),h.add_stub_for(x.$$prototype,R),x.$$is_singleton?x.$$prototype.$singleton_method_undefined&&!x.$$prototype.$singleton_method_undefined.$$stub&&x.$$prototype.$singleton_method_undefined(R.substr(1)):x.$method_undefined&&!x.$method_undefined.$$stub&&x.$method_undefined(R.substr(1))};function Mt(x){return typeof x=="function"&&!x.$$stub}h.alias=function(x,R,ve){var Fe=bt(R),Ze=bt(ve),ct,a;if(typeof x.$$prototype>"u"&&(x=h.Object),ct=x.$$prototype[Ze],x.$$eval)return h.alias(h.get_singleton_class(x),R,ve);if(!Mt(ct)){for(var ae=x.$$super;typeof ct!="function"&&ae;)ct=ae[Ze],ae=ae.$$super;!Mt(ct)&&x.$$is_module&&(ct=h.Object.$$prototype[Ze]),Mt(ct)||me(h.NameError,"undefined method `"+ve+"' for class `"+x.$name()+"'")}ct.$$alias_of&&(ct=ct.$$alias_of),a=function(){var te=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,ct,V,te)};try{Object.defineProperty(a,"length",{value:ct.length})}catch{}return a.displayName=R,a.$$arity=ct.$$arity==null?ct.length:ct.$$arity,a.$$parameters=ct.$$parameters,a.$$source_location=ct.$$source_location,a.$$alias_of=ct,a.$$alias_name=R,h.defn(x,Fe,a),x},h.alias_gvar=function(x,R){return Object.defineProperty(se,x,{configurable:!0,enumerable:!0,get:function(){return se[R]},set:function(ve){se[R]=ve}}),r},h.alias_native=function(x,R,ve){var Fe=bt(R),Ze=x.$$prototype[ve];return(typeof Ze!="function"||Ze.$$stub)&&me(h.NameError,"undefined native method `"+ve+"' for class `"+x.$name()+"'"),h.defn(x,Fe,Ze),x},h.hash_init=function(x){x.$$smap=Object.create(null),x.$$map=Object.create(null),x.$$keys=[]},h.hash_clone=function(x,R){R.$$none=x.$$none,R.$$proc=x.$$proc;for(var ve=0,Fe=x.$$keys,Ze=x.$$smap,ct=Fe.length,a,ae;ve<ct;ve++)a=Fe[ve],a.$$is_string?ae=Ze[a]:(ae=a.value,a=a.key),h.hash_put(R,a,ae)},h.hash_put=function(x,R,ve){if(R.$$is_string){H(x.$$smap,R)||x.$$keys.push(R),x.$$smap[R]=ve;return}var Fe,Ze,ct;if(Fe=x.$$by_identity?h.id(R):R.$hash(),!H(x.$$map,Fe)){Ze={key:R,key_hash:Fe,value:ve},x.$$keys.push(Ze),x.$$map[Fe]=Ze;return}for(Ze=x.$$map[Fe];Ze;){if(R===Ze.key||R["$eql?"](Ze.key)){ct=void 0,Ze.value=ve;break}ct=Ze,Ze=Ze.next}ct&&(Ze={key:R,key_hash:Fe,value:ve},x.$$keys.push(Ze),ct.next=Ze)},h.hash_get=function(x,R){if(R.$$is_string)return H(x.$$smap,R)?x.$$smap[R]:void 0;var ve,Fe;if(ve=x.$$by_identity?h.id(R):R.$hash(),H(x.$$map,ve))for(Fe=x.$$map[ve];Fe;){if(R===Fe.key||R["$eql?"](Fe.key))return Fe.value;Fe=Fe.next}},h.hash_delete=function(x,R){var ve,Fe=x.$$keys,Ze=Fe.length,ct,a;if(R.$$is_string){if(typeof R!="string"&&(R=R.valueOf()),!H(x.$$smap,R))return;for(ve=0;ve<Ze;ve++)if(a=Fe[ve],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===R){Fe.splice(ve,1);break}return ct=x.$$smap[R],delete x.$$smap[R],ct}var ae=R.$hash();if(H(x.$$map,ae))for(var te=x.$$map[ae],V;te;){if(R===te.key||R["$eql?"](te.key)){for(ct=te.value,ve=0;ve<Ze;ve++)if(Fe[ve]===te){Fe.splice(ve,1);break}return V&&te.next?V.next=te.next:V?delete V.next:te.next?x.$$map[ae]=te.next:delete x.$$map[ae],ct}V=te,te=te.next}},h.hash_rehash=function(x){for(var R=0,ve=x.$$keys.length,Fe,Ze,ct;R<ve;R++)if(!x.$$keys[R].$$is_string&&(Fe=x.$$keys[R].key.$hash(),Fe!==x.$$keys[R].key_hash)){for(Ze=x.$$map[x.$$keys[R].key_hash],ct=void 0;Ze;){if(Ze===x.$$keys[R]){ct&&Ze.next?ct.next=Ze.next:ct?delete ct.next:Ze.next?x.$$map[x.$$keys[R].key_hash]=Ze.next:delete x.$$map[x.$$keys[R].key_hash];break}ct=Ze,Ze=Ze.next}if(x.$$keys[R].key_hash=Fe,!H(x.$$map,Fe)){x.$$map[Fe]=x.$$keys[R];continue}for(Ze=x.$$map[Fe],ct=void 0;Ze;){if(Ze===x.$$keys[R]){ct=void 0;break}ct=Ze,Ze=Ze.next}ct&&(ct.next=x.$$keys[R])}},h.hash=function(){var x=arguments.length,R,ve,Fe,Ze,ct,a;if(x===1&&arguments[0].$$is_hash)return arguments[0];if(ve=new h.Hash,h.hash_init(ve),x===1)if(R=arguments[0],arguments[0].$$is_array){for(Ze=R.length,Fe=0;Fe<Ze;Fe++)R[Fe].length!==2&&me(h.ArgumentError,"value not of length 2: "+R[Fe].$inspect()),ct=R[Fe][0],a=R[Fe][1],h.hash_put(ve,ct,a);return ve}else{R=arguments[0];for(ct in R)H(R,ct)&&(a=R[ct],h.hash_put(ve,ct,a));return ve}for(x%2!==0&&me(h.ArgumentError,"odd number of arguments for Hash"),Fe=0;Fe<x;Fe+=2)ct=arguments[Fe],a=arguments[Fe+1],h.hash_put(ve,ct,a);return ve},h.hash2=function(x,R){var ve=new h.Hash;return ve.$$smap=R,ve.$$map=Object.create(null),ve.$$keys=x,ve},h.range=function(x,R,ve){var Fe=new h.Range;return Fe.begin=x,Fe.end=R,Fe.excl=ve,Fe};var Et=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];h.ivar=function(x){return Et.indexOf(x)!==-1&&(x+="$"),x};function qt(x){x.$$frozen&&me(h.FrozenError,"can't modify frozen "+x.$class()+": "+x,h.hash2(["receiver"],{receiver:x}))}h.deny_frozen_access=qt,h.freeze=function(x){return J(x,"$$frozen",!0),x.hasOwnProperty("$$id")||J(x,"$$id",ge()),x.hasOwnProperty("$$meta")?x.$$meta.$freeze():J(x,"$$meta",null),x.hasOwnProperty("$$comparable")||J(x,"$$comparable",null),Object.seal(x),x},h.freeze_props=function(x){var R,ve,Fe;for(R in x)ve=typeof R,!((ve==="string"||ve==="object")&&R[0]==="$")&&(Fe=Object.getOwnPropertyDescriptor(x,R),Fe&&Fe.enumerable&&Fe.writable&&function(){var Ze=x[R];Object.defineProperty(x,R,{get:function(){return Ze},set:function(ct){qt(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 R,ve;return x.global&&x.multiline?x:(ve="gm"+(x.ignoreCase?"i":""),x.multiline?(x.$$g==null&&(x.$$g=new RegExp(x.source,ve)),R=x.$$g):(x.$$gm==null&&(x.$$gm=new RegExp(x.source,ve)),R=x.$$gm),R.lastIndex=null,R)},h.regexp=function(x,R){for(var ve,Fe=typeof R<"u"&&R&&R.indexOf("i")>=0,Ze=0,ct=x.length;Ze<ct;Ze++)ve=x[Ze],ve instanceof RegExp&&(ve.ignoreCase!==Fe&&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 R?new RegExp(x.join(""),R):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 R,ve,Fe=[],Ze="/";h.current_dir!=="."&&(x=h.current_dir.replace(/\/*$/,"/")+x),x=x.replace(/^\.\//,""),x=x.replace(/\.(rb|opal|js)$/,""),R=x.split(Ze);for(var ct=0,a=R.length;ct<a;ct++)ve=R[ct],ve!==""&&(ve===".."?Fe.pop():Fe.push(ve));return Fe.join(Ze)},h.loaded=function(x){var R,ve,Fe;for(R=0,ve=x.length;R<ve;R++)Fe=h.normalize(x[R]),!h.require_table[Fe]&&(h.loaded_features.push(Fe),h.require_table[Fe]=!0)},h.load_normalized=function(x){h.loaded([x]);var R=h.modules[x];if(R){var ve=R(h);if(typeof Promise<"u"&&ve instanceof Promise)return ve.then(je(!0))}else{var Fe=h.config.missing_require_severity,Ze="cannot load such file -- "+x;Fe==="error"?me(h.LoadError,Ze):Fe==="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,R,ve){typeof ve>"u"&&(ve="encoding"),(typeof x=="string"||x.$$frozen===!0)&&me(h.FrozenError,"can't modify frozen String");var Fe=h.find_encoding(R);return Fe===x[ve]||(x[ve]=Fe),x},h.find_encoding=function(x){var R=h.encodings,ve=R[x]||R[x.toUpperCase()];return ve||me(h.ArgumentError,"unknown encoding name - "+x),ve},h.enc=function(x,R){var ve=new String(x);return ve=h.set_encoding(ve,R),ve.internal_encoding=ve.encoding,ve},h.binary=function(x){var R=new String(x);return h.set_encoding(R,"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 R=x(h);return typeof Promise=="function"&&typeof R=="object"&&R instanceof Promise&&(h.last_promise=R),R};function It(x,R){return typeof x=="number"&&typeof R=="number"}h.rb_plus=function(x,R){return It(x,R)?x+R:x["$+"](R)},h.rb_minus=function(x,R){return It(x,R)?x-R:x["$-"](R)},h.rb_times=function(x,R){return It(x,R)?x*R:x["$*"](R)},h.rb_divide=function(x,R){return It(x,R)?x/R:x["$/"](R)},h.rb_lt=function(x,R){return It(x,R)?x<R:x["$<"](R)},h.rb_gt=function(x,R){return It(x,R)?x>R:x["$>"](R)},h.rb_le=function(x,R){return It(x,R)?x<=R:x["$<="](R)},h.rb_ge=function(x,R){return It(x,R)?x>=R:x["$>="](R)};function nt(x,R){return typeof x=="number"&&typeof R=="number"||typeof x=="string"&&typeof R=="string"}function Re(x,R){return nt(x,R)?x===R:xe(x["$=="](R))}h.eqeq=Re,h.eqeqeq=function(x,R){return nt(x,R)?x===R:xe(x["$==="](R))},h.neqeq=function(x,R){return nt(x,R)?x!==R:xe(x["$!="](R))},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(R){return qt(this),this[x]=R}},h.assign_ivar_val=function(x,R){return function(){return qt(this),this[x]=R}},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,R){return H(x.$$smap,R)||me(h.ArgumentError,"missing keyword: "+R),x.$$smap[R]},h.large_array_unpack=function(x){var R=x.split(","),ve=R.length,Fe;for(Fe=0;Fe<ve;Fe++)switch(R[Fe][0]){case void 0:R[Fe]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":R[Fe]=+R[Fe]}return R},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"),pe(h.BasicObject,h.Class.$$prototype),pe(h.Object,h.Class.$$prototype),pe(h.Module,h.Class.$$prototype),pe(h.Class,h.Class.$$prototype),n.$$const.BasicObject=n,N(i,"BasicObject",n),N(i,"Object",i),N(i,"Module",s),N(i,"Class",c),N(i,"Opal",f),N(i,"Kernel",p),n.$$class=c,i.$$class=c,s.$$class=c,c.$$class=c,f.$$class=s,p.$$class=s,J(i.$$prototype,"toString",function(){var x=this.$to_s();return x.$$is_string&&typeof x=="object"?x.valueOf():x}),J(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),R=Ke.$$p;return Ke.$$p=null,h.send(i,"define_method",x,R)}h.NilClass=ne("NilClass",h.Object),N(i,"NilClass",h.NilClass),r=h.nil=new h.NilClass,r.$$id=W,r.call=r.apply=function(){me(h.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),h.thrower=function(x){var R=new Error("unexpected "+x);return R.$thrower_type=x,R.$throw=function(ve){throw ve==null&&(ve=r),R.$v=ve,R},R},h.t_eval_return=h.thrower("return"),TypeError.$$super=Error,h.file_sources={}}).call(void 0);Opal.loaded(["corelib/runtime.js"]);Opal.modules["corelib/helpers"]=function(e){var t=e.type_error,r=e.coerce_to,n=e.module,i=e.defs,s=e.slice,c=e.eqeqeq,f=e.Kernel,p=e.truthy,h=e.Opal,I=e.nil,L=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(H){var pe=n(H,"Opal");i(pe,"$bridge",function(W,X){return e.bridge(W,X)}),i(pe,"$coerce_to!",function(W,X,ge,se){var me,J,xe=I;return me=s(arguments,3),J=me,xe=r(W,X,ge,J),c(X,xe)||f.$raise(t(W,X,ge,xe)),xe},-4),i(pe,"$coerce_to?",function(W,X,ge,se){var me,J,xe=I;return me=s(arguments,3),J=me,!p(W["$respond_to?"](ge))||(xe=r(W,X,ge,J),p(xe["$nil?"]()))?I:(c(X,xe)||f.$raise(t(W,X,ge,xe)),xe)},-4),i(pe,"$try_convert",function(W,X,ge){return c(X,W)?W:p(W["$respond_to?"](ge))?W.$__send__(ge):I}),i(pe,"$compare",function(W,X){var ge=I;return ge=W["$<=>"](X),p(ge===I)&&f.$raise(L("ArgumentError"),"comparison of "+W.$class()+" with "+X.$class()+" failed"),ge}),i(pe,"$destructure",function(W){if(W.length==1)return W[0];if(W.$$is_array)return W;for(var X=new Array(W.length),ge=0,se=X.length;ge<se;ge++)X[ge]=W[ge];return X}),i(pe,"$respond_to?",function(W,X,ge){return ge==null&&(ge=!1),W==null||!W.$$class?!1:W["$respond_to?"](X,ge)},-3),i(pe,"$instance_variable_name!",function(W){return W=h["$coerce_to!"](W,L("String"),"to_str"),p(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(W))||f.$raise(L("NameError").$new("'"+W+"' is not allowed as an instance variable name",W)),W}),i(pe,"$class_variable_name!",function(W){return W=h["$coerce_to!"](W,L("String"),"to_str"),p(W.length<3||W.slice(0,2)!=="@@")&&f.$raise(L("NameError").$new("`"+W+"' is not allowed as a class variable name",W)),W}),i(pe,"$const_name?",function(W){return typeof W!="string"&&(W=h["$coerce_to!"](W,L("String"),"to_str")),W[0]===W[0].toUpperCase()}),i(pe,"$const_name!",function(W){var X=this;return p(L("::","String","skip_raise")?"constant":I)&&(W=h["$coerce_to!"](W,L("String"),"to_str")),(!W||W[0]!=W[0].toUpperCase())&&X.$raise(L("NameError"),"wrong constant name "+W),W}),i(pe,"$pristine",function(W,X){var ge,se;ge=s(arguments,1),se=ge;for(var me,J,xe=se.length-1;xe>=0;xe--)me=se[xe],J=W.$$prototype[e.jsid(me)],J&&!J.$$stub&&(J.$$pristine=!0);return I},-2);var be=[];return i(pe,"$inspect",function(W){var X=I,ge=!1;return function(){try{try{return W===null?"null":W===void 0?"undefined":typeof W.$$class>"u"?Object.prototype.toString.apply(W):typeof W.$inspect!="function"||W.$inspect.$$stub||be.indexOf(W.$__id__())!==-1?"#<"+W.$$class+":0x"+W.$__id__().$to_s(16)+">":(be.push(W.$__id__()),ge=!0,W.$inspect())}catch(se){if(e.rescue(se,[L("Exception")])){X=se;try{return"#<"+W.$$class+":0x"+W.$__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,I=e.prop,L=e.jsid,H=e.klass,pe=e.defs,be=e.send,re=e.def,W=e.eqeqeq,X=e.Module,ge=e.Kernel,se=e.rb_lt,me=e.rb_gt,J=e.slice,xe=e.to_a,fe=e.hash2,Ae=e.Opal,O=e.return_val,Ee=e.eqeq,ce=e.lambda,w=e.range,Se=e.send2,N=e.find_super,ne=e.alias,B=[],Le=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(P,v,$){var l=H(P,v,"Module"),u=[l].concat($),d=e.$r(u);return pe(l,"$allocate",function(){var k=this,A=e.allocate_module(Le,function(){});return k!==e.Module&&Object.setPrototypeOf(A,k.$$prototype),A}),re(l,"$initialize",function _(){var k=_.$$p||Le,A=this;return _.$$p=null,k!==Le?be(A,"module_eval",[],k.$to_proc()):Le}),re(l,"$===",function(k){var A=this;return t(k==null)?!1:e.is_a(k,A)}),re(l,"$<",function(k){var A=this;W(X,k)||ge.$raise(ue("TypeError"),"compared with non class/module");var Q=A,De,rt,ft;if(Q===k)return!1;for(rt=0,De=e.ancestors(A),ft=De.length;rt<ft;rt++)if(De[rt]===k)return!0;for(rt=0,De=e.ancestors(k),ft=De.length;rt<ft;rt++)if(De[rt]===A)return!1;return Le}),re(l,"$<=",function(k){var A=this,Q=Le;return t(Q=A["$equal?"](k))?Q:se(A,k)}),re(l,"$>",function(k){var A=this;return W(X,k)||ge.$raise(ue("TypeError"),"compared with non class/module"),se(k,A)}),re(l,"$>=",function(k){var A=this,Q=Le;return t(Q=A["$equal?"](k))?Q:me(A,k)}),re(l,"$<=>",function(k){var A=this,Q=Le;return A===k?0:!W(X,k)||(Q=se(A,k),t(Q["$nil?"]()))?Le:t(Q)?-1:1}),re(l,"$alias_method",function(k,A){var Q=this;return p(Q),k=r(k,ue("String"),"to_str"),A=r(A,ue("String"),"to_str"),e.alias(Q,k,A),Q}),re(l,"$alias_native",function(k,A){var Q=this;return A==null&&(A=k),p(Q),e.alias_native(Q,k,A),Q},-2),re(l,"$ancestors",function(){var k=this;return e.ancestors(k)}),re(l,"$append_features",function(k){var A=this;return p(k),e.append_features(A,k),A}),re(l,"$attr_accessor",function(k){var A,Q,De=this;return A=J(arguments),Q=A,be(De,"attr_reader",xe(Q)),be(De,"attr_writer",xe(Q))},-1),re(l,"$attr",function(k){var A,Q,De=this;return A=J(arguments),Q=A,Q.length==2&&(Q[1]===!0||Q[1]===!1)?(De.$warn("optional boolean argument is obsoleted",fe(["uplevel"],{uplevel:1})),Q[1]?De.$attr_accessor(Q[0]):De.$attr_reader(Q[0]),Le):be(De,"attr_reader",xe(Q))},-1),re(l,"$attr_reader",function(k){var A,Q,De=this;A=J(arguments),Q=A,p(De);for(var rt=De.$$prototype,ft=Q.length-1;ft>=0;ft--){var _t=Q[ft],At=L(_t),bt=f(_t),Mt=s(bt);e.prop(rt,bt,Le),Mt.$$parameters=[],Mt.$$arity=0,e.defn(De,At,Mt)}return Le},-1),re(l,"$attr_writer",function(k){var A,Q,De=this;A=J(arguments),Q=A,p(De);for(var rt=De.$$prototype,ft=Q.length-1;ft>=0;ft--){var _t=Q[ft],At=L(_t+"="),bt=f(_t),Mt=c(bt);Mt.$$parameters=[["req"]],Mt.$$arity=1,e.prop(rt,bt,Le),e.defn(De,At,Mt)}return Le},-1),re(l,"$autoload",function(k,A){var Q=this;return p(Q),d("Opal")["$const_name?"](k)||ge.$raise(ue("NameError"),"autoload must be constant name: "+k),A==""&&ge.$raise(ue("ArgumentError"),"empty file name"),Q.$$const.hasOwnProperty(k)||(Q.$$autoload||(Q.$$autoload={}),e.const_cache_version++,Q.$$autoload[k]={path:A,loaded:!1,required:!1,success:!1,exception:!1},Q.$const_added&&!Q.$const_added.$$pristine&&Q.$const_added(k)),Le}),re(l,"$autoload?",function(k){var A=this;if(A.$$autoload&&A.$$autoload[k]&&!A.$$autoload[k].required&&!A.$$autoload[k].success)return A.$$autoload[k].path;for(var Q=A.$ancestors(),De=0,rt=Q.length;De<rt;De++)if(Q[De].$$autoload&&Q[De].$$autoload[k]&&!Q[De].$$autoload[k].required&&!Q[De].$$autoload[k].success)return Q[De].$$autoload[k].path;return Le}),re(l,"$class_variables",function(){var k=this;return Object.keys(e.class_variables(k))}),re(l,"$class_variable_get",function(k){var A=this;return k=Ae["$class_variable_name!"](k),e.class_variable_get(A,k,!1)}),re(l,"$class_variable_set",function(k,A){var Q=this;return p(Q),k=Ae["$class_variable_name!"](k),e.class_variable_set(Q,k,A)}),re(l,"$class_variable_defined?",function(k){var A=this;return k=Ae["$class_variable_name!"](k),e.class_variables(A).hasOwnProperty(k)}),re(l,"$const_added",O(Le)),Ae.$pristine(l,"const_added"),re(l,"$remove_class_variable",function(k){var A=this;if(p(A),k=Ae["$class_variable_name!"](k),e.hasOwnProperty.call(A.$$cvars,k)){var Q=A.$$cvars[k];return delete A.$$cvars[k],Q}else ge.$raise(ue("NameError"),"cannot remove "+k+" for "+A)}),re(l,"$constants",function(k){var A=this;return k==null&&(k=!0),e.constants(A,k)},-1),pe(l,"$constants",function(k){var A=this;if(k==null){var Q=(A.$$nesting||[]).concat(i),De,rt={},ft,_t;for(ft=0,_t=Q.length;ft<_t;ft++)for(De in Q[ft].$$const)rt[De]=!0;return Object.keys(rt)}else return e.constants(A,k)},-1),pe(l,"$nesting",function(){var k=this;return k.$$nesting||[]}),re(l,"$const_defined?",function(k,A){var Q=this;A==null&&(A=!0),k=d("Opal")["$const_name!"](k),t(k["$=~"](ue(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ue("NameError").$new("wrong constant name "+k,k));var De,rt=[Q],ft,_t;for(A&&(rt=rt.concat(e.ancestors(Q)),Q.$$is_module&&(rt=rt.concat([i]).concat(e.ancestors(i)))),ft=0,_t=rt.length;ft<_t;ft++)if(De=rt[ft],De.$$const[k]!=null||De.$$autoload&&De.$$autoload[k]&&!De.$$autoload[k].required&&!De.$$autoload[k].success)return!0;return!1},-2),re(l,"$const_get",function(k,A){var Q=this;return A==null&&(A=!0),k=d("Opal")["$const_name!"](k),k.indexOf("::")===0&&k!=="::"&&(k=k.slice(2)),t(k.indexOf("::")!=-1&&k!="::")?be(k.$split("::"),"inject",[Q],function(rt,ft){return rt==null&&(rt=Le),ft==null&&(ft=Le),rt.$const_get(ft)}):(t(k["$=~"](ue(Ae,"CONST_NAME_REGEXP")))||ge.$raise(ue("NameError").$new("wrong constant name "+k,k)),A?e.$$([Q],k):e.const_get_local(Q,k))},-2),re(l,"$const_missing",function(k){var A=this,Q=Le;return Q=Ee(A,i)?k:""+A+"::"+k,ge.$raise(ue("NameError").$new("uninitialized constant "+Q,k))}),re(l,"$const_set",function(k,A){var Q=this;return p(Q),k=Ae["$const_name!"](k),(t(k["$!~"](ue(Ae,"CONST_NAME_REGEXP")))||t(k["$start_with?"]("::")))&&ge.$raise(ue("NameError").$new("wrong constant name "+k,k)),n(Q,k,A),A}),re(l,"$public_constant",O(Le)),re(l,"$define_method",function _(k,A){var Q=_.$$p||Le,De=this,rt=Le,ft=Le;return _.$$p=null,p(De),A===void 0&&Q===Le&&ge.$raise(ue("ArgumentError"),"tried to create a Proc object without a block"),Q=t(rt=Q)?rt:W(ue("Proc"),ft=A)?A:W(ue("Method"),ft)?A.$to_proc().$$unbound:W(ue("UnboundMethod"),ft)?ce(function _t(At){var bt,Mt,Et=_t.$$s==null?this:_t.$$s,qt=Le;return bt=J(arguments),Mt=bt,qt=A.$bind(Et),be(qt,"call",xe(Mt))},{$$arity:-1,$$s:De}):ge.$raise(ue("TypeError"),"wrong argument type "+Q.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(Q.$$proxy_target=Q,Q=new Proxy(Q,{apply:function(_t,At,bt){var Mt=_t.$$jsid;_t.$$jsid=k;try{return _t.apply(At,bt)}catch(Et){if(Et===_t.$$brk||Et===_t.$$ret)return Et.$v;throw Et}finally{_t.$$jsid=Mt}}})),Q.$$jsid=k,Q.$$s=null,Q.$$def=Q,Q.$$define_meth=!0,e.defn(De,L(k),Q)},-2),re(l,"$freeze",function(){var k=this;return t(k["$frozen?"]())?k:(k.hasOwnProperty("$$base_module")||I(k,"$$base_module",null),h(k))}),re(l,"$remove_method",function(k){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=0;rt<Q.length;rt++){var ft=Q[rt];typeof ft=="string"||ft.$$is_string||De.$raise(ue("TypeError"),""+De.$name()+" is not a symbol nor a string"),p(De),e.rdef(De,"$"+ft)}return De},-1),re(l,"$singleton_class?",function(){var k=this;return!!k.$$is_singleton}),re(l,"$include",function(k){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=Q.length-1;rt>=0;rt--){var ft=Q[rt];ft.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$append_features(De),ft.$included(De)}return De},-1),re(l,"$included_modules",function(){var k=this;return e.included_modules(k)}),re(l,"$include?",function(k){var A=this;k.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+k.$class()+" (expected Module)");var Q,De,rt,ft=e.ancestors(A);for(Q=0,De=ft.length;Q<De;Q++)if(rt=ft[Q],rt===k&&rt!==A)return!0;return!1}),re(l,"$instance_method",function(k){var A=this,Q=A.$$prototype[L(k)];return(!Q||Q.$$stub)&&ge.$raise(ue("NameError").$new("undefined method `"+k+"' for class `"+A.$name()+"'",k)),ue("UnboundMethod").$new(A,Q.$$owner||A,Q,k)}),re(l,"$instance_methods",function(k){var A=this;return k==null&&(k=!0),t(k)?e.instance_methods(A):e.own_instance_methods(A)},-1),re(l,"$included",O(Le)),re(l,"$extended",O(Le)),re(l,"$extend_object",function(k){return p(k),Le}),re(l,"$method_added",function(k){return J(arguments),Le},-1),re(l,"$method_removed",function(k){return J(arguments),Le},-1),re(l,"$method_undefined",function(k){return J(arguments),Le},-1),re(l,"$module_eval",function _(k){var A=_.$$p||Le,Q,De,rt,ft=this,_t=Le,At=Le,bt=Le,Mt=Le,Et=Le,qt=Le;_.$$p=null,Q=J(arguments),De=Q,t(A["$nil?"]())&&t(!!e.compile)?(t(w(1,3,!1)["$cover?"](De.$size()))||ge.$raise(ue("ArgumentError"),"wrong number of arguments (0 for 1..3)"),rt=[].concat(xe(De)),_t=rt[0]==null?Le:rt[0],At=rt[1]==null?Le:rt[1],rt[2]==null||rt[2],bt=fe(["file","eval"],{file:t(Mt=At)?Mt:"(eval)",eval:!0}),Et=e.hash({arity_check:!1}).$merge(bt),qt=Ae.$compile(_t,Et),A=be(ge,"proc",[],function Re(){var je=Re.$$s==null?this:Re.$$s;return new Function("Opal,self","return "+qt)(e,je)},{$$s:ft})):t(De["$any?"]())&&ge.$raise(ue("ArgumentError"),"wrong number of arguments ("+De.$size()+` for 0)
384
-
385
- NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
386
- `);var It=A.$$s,nt;return A.$$s=null,nt=A.apply(ft,[ft]),A.$$s=It,nt},-1),re(l,"$module_exec",function _(k){var A=_.$$p||Le,Q,De,rt=this;_.$$p=null,Q=J(arguments),De=Q,A===Le&&ge.$raise(ue("LocalJumpError"),"no block given");var ft=A.$$s,_t;return A.$$s=null,_t=A.apply(rt,De),A.$$s=ft,_t},-1),re(l,"$method_defined?",function(k){var A=this,Q=A.$$prototype[L(k)];return!!Q&&!Q.$$stub}),re(l,"$module_function",function(k){var A,Q,De=this;if(A=J(arguments),Q=A,p(De),Q.length===0)return De.$$module_function=!0,Le;for(var rt=0,ft=Q.length;rt<ft;rt++){var _t=Q[rt],At=L(_t),bt=De.$$prototype[At];e.defs(De,At,bt)}return Q.length===1?Q[0]:Q},-1),re(l,"$name",function(){var k=this;if(k.$$full_name)return k.$$full_name;for(var A=[],Q=k;Q;){if(Q.$$name===Le||Q.$$name==null)return Le;if(A.unshift(Q.$$name),Q=Q.$$base_module,Q===i)break}return A.length===0?Le:k.$$full_name=A.join("::")}),re(l,"$prepend",function(k){var A,Q,De=this;A=J(arguments),Q=A,Q.length===0&&ge.$raise(ue("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var rt=Q.length-1;rt>=0;rt--){var ft=Q[rt];ft.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$prepend_features(De),ft.$prepended(De)}return De},-1),re(l,"$prepend_features",function(k){var A=this;return p(k),A.$$is_module||ge.$raise(ue("TypeError"),"wrong argument type "+A.$class()+" (expected Module)"),e.prepend_features(A,k),A}),re(l,"$prepended",O(Le)),re(l,"$remove_const",function(k){var A=this;return p(A),e.const_remove(A,k)}),re(l,"$to_s",function(){var k=this,A=Le;return t(A=e.Module.$name.call(k))?A:"#<"+(k.$$is_module?"Module":"Class")+":0x"+k.$__id__().$to_s(16)+">"}),re(l,"$undef_method",function(k){var A,Q,De=this;A=J(arguments),Q=A;for(var rt=0;rt<Q.length;rt++){var ft=Q[rt];typeof ft=="string"||ft.$$is_string||De.$raise(ue("TypeError"),""+De.$name()+" is not a symbol nor a string"),p(De),e.udef(De,"$"+Q[rt])}return De},-1),re(l,"$instance_variables",function(){var k=this,A=Le;A=(e.Module.$$nesting=u,k.$constants());var Q=[];for(var De in k)k.hasOwnProperty(De)&&De.charAt(0)!=="$"&&De!=="constructor"&&!A["$include?"](De)&&Q.push("@"+De);return Q}),re(l,"$dup",function _(){var k=_.$$p||Le,A=this,Q=Le;return _.$$p=null,Q=Se(A,N(A,"dup",_,!1,!0),"dup",[],k),Q.$copy_class_variables(A),Q.$copy_constants(A),Q}),re(l,"$copy_class_variables",function(k){var A=this;for(var Q in k.$$cvars)A.$$cvars[Q]=k.$$cvars[Q]}),re(l,"$copy_constants",function(k){var A=this,Q,De=k.$$const;for(Q in De)n(A,Q,De[Q])}),re(l,"$refine",function _(k){var A=_.$$p||Le,Q,De=this,rt=Le,ft=Le,_t=Le;return _.$$p=null,Q=[De,Le,Le],rt=Q[0],ft=Q[1],_t=Q[2],_t=e.id(k),typeof De.$$refine_modules>"u"&&(De.$$refine_modules=Object.create(null)),typeof De.$$refine_modules[_t]>"u"?ft=De.$$refine_modules[_t]=ue("Refinement").$new():ft=De.$$refine_modules[_t],ft.refinement_module=rt,ft.refined_class=k,be(ft,"class_exec",[],A.$to_proc()),ft}),re(l,"$refinements",function(){var k=this,A=k.$$refine_modules,Q=fe([],{});if(typeof A>"u")return Q;for(var De in A)Q["$[]="](A[De].refined_class,A[De]);return Q}),re(l,"$using",function(k){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(P,v){var $=H(P,v,"Refinement"),l=$.$$prototype;return l.refinement_module=l.refined_class=Le,$.$attr_reader("refined_class"),re($,"$inspect",function u(){var d=u.$$p||Le,_=this;return u.$$p=null,t(_.refinement_module)?"#<refinement:"+_.refined_class.$inspect()+"@"+_.refinement_module.$inspect()+">":Se(_,N(_,"inspect",u,!1,!0),"inspect",[],d)})}("::",X)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,c=e.return_val,f=e.slice,p=e.send2,h=e.find_super,I=e.Kernel,L=e.alias,H=e.top,pe=[],be=e.nil,re=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),H.$require("corelib/module"),function(W,X,ge){var se=t(W,X,"Class"),me=[se].concat(ge),J=e.$r(me);return n(se,"$new",function xe(fe){var Ae=xe.$$p||be;if(xe.$$p=null,fe==null&&(fe=J("Object")),!fe.$$is_class)throw e.TypeError.$new("superclass must be a Class");var O=e.allocate_class(be,fe);return fe.$inherited(O),Ae!==be&&r(O,"class_eval",[],Ae.$to_proc()),O},-1),i(se,"$allocate",function(){var fe=this,Ae=new fe.$$constructor;return Ae.$$id=e.uid(),Ae}),i(se,"$descendants",function(){var fe=this;return s(fe.$subclasses(),r(fe.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(se,"$inherited",c(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,O,Ee,ce=this;xe.$$p=null,O=f(arguments),Ee=O;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,O,Ee=[];for(Ae=0;Ae<fe.$$subclasses.length;Ae++)O=fe.$$subclasses[Ae].deref(),O!==void 0&&Ee.push(O);return Ee}else return fe.$$subclasses}),i(se,"$superclass",function(){var fe=this;return fe.$$super||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;I.$raise(re("TypeError"),"`"+fe+"' is not a singleton class")}),L(se,"inspect","to_s")}("::",null,pe)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,c=e.Opal,f=e.truthy,p=e.range,h=e.Kernel,I=e.to_a,L=e.hash2,H=e.send,pe=e.eqeq,be=e.rb_ge,re=e.nil,W=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(X,ge){var se=t(X,ge,"BasicObject");return n(se,"$initialize",function(J){return r(arguments),re},-1),n(se,"$==",function(J){var xe=this;return xe===J}),n(se,"$eql?",function(J){var xe=this;return xe["$=="](J)}),i(se,"equal?","=="),n(se,"$__id__",function(){var J=this;return J.$$id!=null||e.prop(J,"$$id",e.uid()),J.$$id}),n(se,"$__send__",function me(J,xe){var fe=me.$$p||re,Ae,O,Ee=this;me.$$p=null,Ae=r(arguments,1),O=Ae,J.$$is_string||Ee.$raise(W("TypeError"),""+Ee.$inspect()+" is not a symbol nor a string");var ce=Ee[e.jsid(J)];return ce?(fe!==re&&(ce.$$p=fe),ce.apply(Ee,O)):(fe!==re&&(Ee.$method_missing.$$p=fe),Ee.$method_missing.apply(Ee,[J].concat(O)))},-2),n(se,"$!",s(!1)),c.$pristine("!"),n(se,"$!=",function(J){var xe=this;return xe["$=="](J)["$!"]()}),n(se,"$instance_eval",function me(J){var xe=me.$$p||re,fe,Ae,O,Ee=this,ce=re,w=re,Se=re,N=re,ne=re,B=re;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(W("ArgumentError"),"wrong number of arguments (0 for 1..3)"),O=[].concat(I(Ae)),ce=O[0]==null?re:O[0],w=O[1]==null?re:O[1],O[2]==null||O[2],Se=L(["file","eval"],{file:f(N=w)?N:"(eval)",eval:!0}),ne=e.hash({arity_check:!1}).$merge(Se),B=c.$compile(ce,ne),xe=H(h,"proc",[],function P(){var v=P.$$s==null?this:P.$$s;return new Function("Opal,self","return "+B)(e,v)},{$$s:Ee});else{if(f(xe["$nil?"]())&&f(be(Ae.$length(),1))&&pe(Ae.$first()["$[]"](0),"@"))return Ee.$instance_variable_get(Ae.$first());f(Ae["$any?"]())&&h.$raise(W("ArgumentError"),"wrong number of arguments ("+Ae.$size()+" for 0)")}var Le=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=Le,ue},-1),n(se,"$instance_exec",function me(J){var xe=me.$$p||re,fe,Ae,O=this;me.$$p=null,fe=r(arguments),Ae=fe,f(xe)||h.$raise(W("ArgumentError"),"no block given");var Ee=xe.$$s,ce;if(xe.$$s=null,O.$$is_a_module){O.$$eval=!0;try{ce=xe.apply(O,Ae)}finally{O.$$eval=!1}}else ce=xe.apply(O,Ae);return xe.$$s=Ee,ce},-1),n(se,"$singleton_method_added",function(J){return r(arguments),re},-1),n(se,"$singleton_method_removed",function(J){return r(arguments),re},-1),n(se,"$singleton_method_undefined",function(J){return r(arguments),re},-1),n(se,"$method_missing",function me(J,xe){me.$$p;var fe,Ae,O=this,Ee=re;return me.$$p=null,fe=r(arguments,1),Ae=fe,Ee=c.$inspect(O),h.$raise(W("NoMethodError").$new("undefined method `"+J+"' for "+Ee,J,Ae),re,h.$caller(1))},-2),c.$pristine(se,"method_missing"),n(se,"$respond_to_missing?",function(J,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,I=e.return_val,L=e.def,H=e.Kernel,pe=e.gvars,be=e.slice,re=e.send,W=e.to_a,X=e.ensure_kwargs,ge=e.eqeq,se=e.hash2,me=e.rb_plus,J=e.eqeqeq,xe=e.return_self,fe=e.rb_le,Ae=e.extract_kwargs,O=e.rb_lt,Ee=e.Object,ce=e.alias,w=e.klass,Se=[],N=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,Le){var ue=h(B,"Kernel"),P=[ue].concat(Le),v=e.$r(P);L(ue,"$=~",I(!1)),L(ue,"$!~",function(u){var d=this;return d["$=~"](u)["$!"]()}),L(ue,"$===",function(u){var d=this,_=N;return t(_=d.$object_id()["$=="](u.$object_id()))?_:d["$=="](u)}),L(ue,"$<=>",function(u){var d=this;d.$$comparable=!0;var _=d["$=="](u);return _&&_!==N?0:N}),L(ue,"$method",function(u){var d=this,_=d[p(u)];return(!_||_.$$stub)&&H.$raise(ne("NameError").$new("undefined method `"+u+"' for class `"+d.$class()+"'",u)),ne("Method").$new(d,_.$$owner||d.$class(),_,u)}),L(ue,"$methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.own_methods(d)},-1),L(ue,"$public_methods",function(u){var d=this;return u==null&&(u=!0),t(u)?e.methods(d):e.receiver_methods(d)},-1),L(ue,"$Array",function(u){var d;return u===N?[]:u.$$is_array?u:(d=i["$coerce_to?"](u,ne("Array"),"to_ary"),d!==N||(d=i["$coerce_to?"](u,ne("Array"),"to_a"),d!==N)?d:[u])}),L(ue,"$at_exit",function l(){var u=l.$$p||N,d=N;return pe.__at_exit__==null&&(pe.__at_exit__=N),l.$$p=null,pe.__at_exit__=t(d=pe.__at_exit__)?d:[],pe.__at_exit__["$<<"](u),u}),L(ue,"$caller",function(u,d){u==null&&(u=1),d==null&&(d=N);var _,k;_=new Error().$backtrace(),k=[];for(var A=u+1,Q=_.length;A<Q;A++)_[A].match(/runtime\.js/)||k.push(_[A]);return d!=N&&(k=k.slice(0,d)),k},-1),L(ue,"$caller_locations",function(u){var d,_,k=this;return d=be(arguments),_=d,re(re(k,"caller",W(_)),"map",[],function(Q){return Q==null&&(Q=N),ne(ne(ne("Thread"),"Backtrace"),"Location").$new(Q)})},-1),L(ue,"$class",function(){var u=this;return u.$$class}),L(ue,"$copy_instance_variables",function(u){var d=this,_=Object.keys(u),k,A,Q;for(k=0,A=_.length;k<A;k++)Q=_[k],Q.charAt(0)!=="$"&&u.hasOwnProperty(Q)&&(d[Q]=u[Q])}),L(ue,"$copy_singleton_methods",function(u){var d=this,_,k,A,Q;if(u.hasOwnProperty("$$meta")&&u.$$meta!==null){var De=e.get_singleton_class(u),rt=e.get_singleton_class(d);for(A=Object.getOwnPropertyNames(De.$$prototype),_=0,Q=A.length;_<Q;_++)k=A[_],e.is_method(k)&&(rt.$$prototype[k]=De.$$prototype[k]);rt.$$const=Object.assign({},De.$$const),Object.setPrototypeOf(rt.$$prototype,Object.getPrototypeOf(De.$$prototype))}for(_=0,A=Object.getOwnPropertyNames(u),Q=A.length;_<Q;_++)k=A[_],k.charAt(0)==="$"&&k.charAt(1)!=="$"&&u.hasOwnProperty(k)&&(d[k]=u[k])}),L(ue,"$clone",function(u){var d,_=this,k=N;return u=X(u),d=u.$$smap.freeze,d==null&&(d=N),t(d["$nil?"]())||ge(d,!0)||ge(d,!1)||_.$raise(v("ArgumentError"),"unexpected value for freeze: "+d.$class()),k=_.$class().$allocate(),k.$copy_instance_variables(_),k.$copy_singleton_methods(_),k.$initialize_clone(_,se(["freeze"],{freeze:d})),(ge(d,!0)||t(d["$nil?"]())&&t(_["$frozen?"]()))&&k.$freeze(),k},-1),L(ue,"$initialize_clone",function(u,d){var _=this;return d=X(d),d.$$smap.freeze,_.$initialize_copy(u),_},-2),L(ue,"$define_singleton_method",function l(u,d){var _=l.$$p||N,k=this;return l.$$p=null,re(k.$singleton_class(),"define_method",[u,d],_.$to_proc())},-2),L(ue,"$dup",function(){var u=this,d=N;return d=u.$class().$allocate(),d.$copy_instance_variables(u),d.$initialize_dup(u),d}),L(ue,"$initialize_dup",function(u){var d=this;return d.$initialize_copy(u)}),L(ue,"$enum_for",function l(u,d){var _=l.$$p||N,k,A,Q,De=this;return l.$$p=null,k=be(arguments),k.length>0&&(A=k.shift()),A==null&&(A="each"),Q=k,re(ne("Enumerator"),"for",[De,A].concat(W(Q)),_.$to_proc())},-1),L(ue,"$equal?",function(u){var d=this;return d===u}),L(ue,"$exit",function(u){var d=N,_=N;for(pe.__at_exit__==null&&(pe.__at_exit__=N),u==null&&(u=!0),pe.__at_exit__=t(d=pe.__at_exit__)?d:[];!t(pe.__at_exit__["$empty?"]());)_=pe.__at_exit__.$pop(),_.$call();return u.$$is_boolean?u=u?0:1:u=r(u,ne("Integer"),"to_int"),e.exit(u),N},-1),L(ue,"$extend",function(u){var d,_,k=this;d=be(arguments),_=d,_.length==0&&k.$raise(ne("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(k);for(var A=k.$singleton_class(),Q=_.length-1;Q>=0;Q--){var De=_[Q];De.$$is_module||H.$raise(ne("TypeError"),"wrong argument type "+De.$class()+" (expected Module)"),De.$append_features(A),De.$extend_object(k),De.$extended(k)}return k},-1),L(ue,"$freeze",function(){var u=this;return t(u["$frozen?"]())?u:typeof u=="object"?(f(u),c(u)):u}),L(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}}),L(ue,"$gets",function(u){var d,_;return pe.stdin==null&&(pe.stdin=N),d=be(arguments),_=d,re(pe.stdin,"gets",W(_))},-1),L(ue,"$hash",function(){var u=this;return u.$__id__()}),L(ue,"$initialize_copy",I(N));var $=[];return L(ue,"$inspect",function(){var u=this,d=N,_=N,k=N,A=N;return function(){try{try{return d="",_=u.$__id__(),t($["$include?"](_))?d=" ...":($["$<<"](_),k=!0,re(u.$instance_variables(),"each",[],function Q(De){var rt=Q.$$s==null?this:Q.$$s,ft=N,_t=N;return De==null&&(De=N),ft=rt.$instance_variable_get(De),_t=v("Opal").$inspect(ft),d=me(d," "+De+"="+_t)},{$$s:u})),"#<"+u.$class()+":0x"+_.$to_s(16)+d+">"}catch(Q){if(e.rescue(Q,[v("StandardError")])){A=Q;try{return"#<"+u.$class()+":0x"+_.$to_s(16)+">"}finally{e.pop_exception()}}else throw Q}}finally{t(k)&&$.$pop()}}()}),L(ue,"$instance_of?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&H.$raise(ne("TypeError"),"class or module required"),d.$$class===u}),L(ue,"$instance_variable_defined?",function(u){var d=this;return u=i["$instance_variable_name!"](u),e.hasOwnProperty.call(d,u.substr(1))}),L(ue,"$instance_variable_get",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=d[e.ivar(u.substr(1))];return _??N}),L(ue,"$instance_variable_set",function(u,d){var _=this;return s(_),u=i["$instance_variable_name!"](u),_[e.ivar(u.substr(1))]=d}),L(ue,"$remove_instance_variable",function(u){var d=this;u=i["$instance_variable_name!"](u);var _=e.ivar(u.substr(1)),k;return d.hasOwnProperty(_)?(k=d[_],delete d[_],k):H.$raise(ne("NameError"),"instance variable "+u+" not defined")}),L(ue,"$instance_variables",function(){var u=this,d=[],_;for(var k in u)u.hasOwnProperty(k)&&k.charAt(0)!=="$"&&(k.substr(-1)==="$"?_=k.slice(0,k.length-1):_=k,d.push("@"+_));return d}),L(ue,"$Integer",function(u,d){var _,k,A;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)&&H.$raise(ne("ArgumentError"),"invalid radix "+d)),k=u.toLowerCase(),k=k.replace(/(\d)_(?=\d)/g,"$1"),k=k.replace(/^(\s*[+-]?)(0[bodx]?)/,function(Q,De,rt){switch(rt){case"0b":if(d===0||d===2)return d=2,De;case"0":case"0o":if(d===0||d===8)return d=8,De;case"0d":if(d===0||d===10)return d=10,De;case"0x":if(d===0||d===16)return d=16,De}H.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"')}),d=d===0?10:d,A="0-"+(d<=10?d-1:"9a-"+String.fromCharCode(97+(d-11))),new RegExp("^\\s*[+-]?["+A+"]+\\s*$").test(k)||H.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_=parseInt(k,d),isNaN(_)&&H.$raise(ne("ArgumentError"),'invalid value for Integer(): "'+u+'"'),_):(d!==void 0&&H.$raise(ne("ArgumentError"),"base specified for non string value"),u===N&&H.$raise(ne("TypeError"),"can't convert nil into Integer"),u.$$is_number?((u===1/0||u===-1/0||isNaN(u))&&H.$raise(ne("FloatDomainError"),u),Math.floor(u)):u["$respond_to?"]("to_int")&&(_=u.$to_int(),_!==N)?_:i["$coerce_to!"](u,ne("Integer"),"to_i"))},-2),L(ue,"$Float",function(u){var d;return u===N&&H.$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)?H.$Integer(d):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(d)||H.$raise(ne("ArgumentError"),'invalid value for Float(): "'+u+'"'),parseFloat(d))):i["$coerce_to!"](u,ne("Float"),"to_f")}),L(ue,"$Hash",function(u){return t(u["$nil?"]())||ge(u,[])?se([],{}):J(ne("Hash"),u)?u:i["$coerce_to!"](u,ne("Hash"),"to_hash")}),L(ue,"$is_a?",function(u){var d=this;return!u.$$is_class&&!u.$$is_module&&H.$raise(ne("TypeError"),"class or module required"),e.is_a(d,u)}),L(ue,"$itself",xe),L(ue,"$lambda",function l(){var u=l.$$p||N;return l.$$p=null,e.lambda(u)}),L(ue,"$load",function(u){return u=i["$coerce_to!"](u,ne("String"),"to_str"),e.load(u)}),L(ue,"$loop",function l(){var u=l.$$p||N,d=this,_=N;if(l.$$p=null,u===N)return re(d,"enum_for",["loop"],function(){return ne(ne("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(u,[])}catch(k){if(e.rescue(k,[ne("StopIteration")])){_=k;try{return _.$result()}finally{e.pop_exception()}}else throw k}return d}),L(ue,"$nil?",I(!1)),L(ue,"$printf",function(u){var d,_,k=this;return d=be(arguments),_=d,t(_["$any?"]())&&k.$print(re(k,"format",W(_))),N},-1),L(ue,"$proc",function l(){var u=l.$$p||N;return l.$$p=null,t(u)||H.$raise(ne("ArgumentError"),"tried to create Proc object without a block"),u.$$is_lambda=!1,u}),L(ue,"$puts",function(u){var d,_;return pe.stdout==null&&(pe.stdout=N),d=be(arguments),_=d,re(pe.stdout,"puts",W(_))},-1),L(ue,"$p",function(u){var d,_;return d=be(arguments),_=d,re(_,"each",[],function(A){return pe.stdout==null&&(pe.stdout=N),A==null&&(A=N),pe.stdout.$puts(A.$inspect())}),t(fe(_.$length(),1))?_["$[]"](0):_},-1),L(ue,"$print",function(u){var d,_;return pe.stdout==null&&(pe.stdout=N),d=be(arguments),_=d,re(pe.stdout,"print",W(_))},-1),L(ue,"$readline",function(u){var d,_;return pe.stdin==null&&(pe.stdin=N),d=be(arguments),_=d,re(pe.stdin,"readline",W(_))},-1),L(ue,"$warn",function(u,d){var _,k,A,Q,De,rt,ft=this,_t=N;return pe.VERBOSE==null&&(pe.VERBOSE=N),pe.stderr==null&&(pe.stderr=N),_=be(arguments),k=Ae(_),k=X(k),A=_,Q=k.$$smap.uplevel,Q==null&&(Q=N),t(Q)&&(Q=i["$coerce_to!"](Q,ne("Integer"),"to_str"),t(O(Q,0))&&H.$raise(ne("ArgumentError"),"negative level ("+Q+")"),_t=(De=(rt=ft.$caller(me(Q,1),1).$first(),rt===N||rt==null?N:rt.$split(":in `")),De===N||De==null?N:De.$first()),t(_t)&&(_t=""+_t+": "),A=re(A,"map",[],function(bt){return bt==null&&(bt=N),""+_t+"warning: "+bt})),t(pe.VERBOSE["$nil?"]())||t(A["$empty?"]())?N:re(pe.stderr,"puts",W(A))},-1),L(ue,"$raise",function(u,d,_){throw pe["!"]==null&&(pe["!"]=N),pe["@"]==null&&(pe["@"]=N),d==null&&(d=N),_==null&&(_=N),u==null&&pe["!"]!==N?pe["!"]:(u==null?u=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")),_!==N&&u.$set_backtrace(_),pe["!"]!==N&&e.exceptions.push(pe["!"]),pe["!"]=u,pe["@"]=u.$backtrace(),u)},-1),L(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),L(ue,"$respond_to?",function(u,d){var _=this;d==null&&(d=!1);var k=_[p(u)];return typeof k=="function"&&!k.$$stub?!0:_["$respond_to_missing?"].$$pristine===!0?!1:_["$respond_to_missing?"](u,d)},-2),L(ue,"$respond_to_missing?",function(u,d){return!1},-2),i.$pristine(ue,"respond_to?","respond_to_missing?"),L(ue,"$require",function(u){return typeof u!="string"&&e.String&&e.Array&&(u=i["$coerce_to!"](u,ne("String"),"to_str")),e.require(u)}),L(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)}),L(ue,"$require_tree",function(u,d){var _;d=X(d),_=d.$$smap.autoload,_==null&&(_=!1);var k=[];u=ne("File").$expand_path(u),u=e.normalize(u),u==="."&&(u="");for(var A in e.modules)A["$start_with?"](u)&&(_?k.push([A,!0]):k.push([A,e.require(A)]));return k},-2),L(ue,"$singleton_class",function(){var u=this;return e.get_singleton_class(u)}),L(ue,"$sleep",function(u){u==null&&(u=N),u===N&&H.$raise(ne("TypeError"),"can't convert NilClass into time interval"),u.$$is_number||H.$raise(ne("TypeError"),"can't convert "+u.$class()+" into time interval"),u<0&&H.$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),L(ue,"$srand",function(u){return u==null&&(u=v("Random").$new_seed()),ne("Random").$srand(u)},-1),L(ue,"$String",function(u){var d=N;return t(d=i["$coerce_to?"](u,ne("String"),"to_str"))?d:i["$coerce_to!"](u,ne("String"),"to_s")}),L(ue,"$tap",function l(){var u=l.$$p||N,d=this;return l.$$p=null,e.yield1(u,d),d}),L(ue,"$to_proc",xe),L(ue,"$to_s",function(){var u=this;return"#<"+u.$class()+":0x"+u.$__id__().$to_s(16)+">"}),L(ue,"$catch",function l(u){var d=l.$$p||N,_=N,k=N;l.$$p=null,u==null&&(u=N);try{return u=t(_=u)?_:Ee.$new(),e.yield1(d,u)}catch(A){if(e.rescue(A,[ne("UncaughtThrowError")])){k=A;try{return ge(k.$tag(),u)?k.$value():H.$raise()}finally{e.pop_exception()}}else throw A}},-1),L(ue,"$throw",function(u,d){return d==null&&(d=N),H.$raise(ne("UncaughtThrowError").$new(u,d))},-2),L(ue,"$open",function l(u){var d=l.$$p||N,_,k;return l.$$p=null,_=be(arguments),k=_,re(ne("File"),"open",W(k),d.$to_proc())},-1),L(ue,"$yield_self",function l(){var u=l.$$p||N,d=this;return l.$$p=null,u===N?re(d,"enum_for",["yield_self"],I(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,Le){var ue=w(B,Le,"Object");return delete Ee.$$prototype.$require,ue.$include(H)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,c=e.top;return e.nil,e.add_stubs("include,raise"),function(f,p){return r(f,"$to_s",t("main")),r(f,"$include",function(I){return n.$include(I)}),r(f,"$autoload",function(I){var L,H;return L=i(arguments),H=L,e.Object.$autoload.apply(e.Object,H)},-1),r(f,"$using",function(I){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(c))};Opal.modules["corelib/error/errno"]=function(e){var t=e.module,r=e.truthy,n=e.rb_plus,i=e.send2,s=e.find_super,c=e.def,f=e.klass,p=e.nil,h=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(I,L){var H=t(I,"Errno"),pe=p,be=p;pe=[["EINVAL","Invalid argument",22],["EEXIST","File exists",17],["EISDIR","Is a directory",21],["EMFILE","Too many open files",24],["ESPIPE","Illegal seek",29],["EACCES","Permission denied",13],["EPERM","Operation not permitted",1],["ENOENT","No such file or directory",2],["ENAMETOOLONG","File name too long",36]],be=p;var re;for(re=0;re<pe.length;re++)(function(){var W=pe[re][0],X=pe[re][1],ge=pe[re][2];be=e.klass(H,e.SystemCallError,W),be.errno=ge,function(se,me){return c(se,"$new",function J(xe){J.$$p;var fe=this,Ae=p;return J.$$p=null,xe==null&&(xe=p),Ae=X,r(xe)&&(Ae=n(Ae," - "+xe)),i(fe,s(fe,"new",J,!1,!0),"new",[Ae],null)},-1)}(e.get_singleton_class(be))})()}("::"),function(I,L,H){var pe=f(I,L,"SystemCallError");return c(pe,"$errno",function(){var re=this;return re.$class().$errno()}),function(be,re){return be.$attr_reader("errno")}(e.get_singleton_class(pe))}("::",h("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,c=e.to_a,f=e.def,p=e.truthy,h=e.hash2,I=e.Kernel,L=e.not,H=e.rb_plus,pe=e.eqeq,be=e.Object,re=e.ensure_kwargs,W=e.send2,X=e.find_super,ge=e.module,se=[],me=e.nil,J=e.$$$;return e.add_stubs("new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shift,+,class,join,cause,full_message,==,reverse,split,autoload,attr_reader,inspect"),function(xe,fe,Ae){var O=t(xe,fe,"Exception"),Ee=[O].concat(Ae),ce=e.$r(Ee),w=O.$$prototype;w.message=me,e.prop(O.$$prototype,"$$is_exception",!0);var Se;Error.stackTraceLimit=100,i(O,"$new",function(B){var Le,ue,P=this;n["!"]==null&&(n["!"]=me),Le=r(arguments),ue=Le;var v=ue.length>0?ue[0]:me,$=new P.$$constructor(v);return $.name=P.$$name,$.message=v,$.cause=n["!"],e.send($,$.$initialize,ue),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace($,Se),$},-1),Se=O.$new,i(O,"$exception",function(B){var Le,ue,P=this;return Le=r(arguments),ue=Le,s(P,"new",c(ue))},-1),f(O,"$initialize",function(B){var Le,ue,P=this;return Le=r(arguments),ue=Le,P.message=ue.length>0?ue[0]:me},-1);function N(ne){for(var B=[],Le,ue=0;ue<ne.length;ue++){var P=ne[ue];!P||!P.$$is_string||((Le=P.match(/^ at (.*?) \((.*?)\)$/))?B.push(Le[2]+":in `"+Le[1]+"'"):(Le=P.match(/^ at (.*?)$/))?B.push(Le[1]+":in `undefined'"):(Le=P.match(/^ from (.*?)$/))?B.push(Le[1]):(Le=P.match(/^(.*?)@(.*?)$/))&&B.push(Le[2]+":in `"+Le[1]+"'"))}return B}return f(O,"$backtrace",function(){var B=this;if(B.backtrace)return B.backtrace;var Le=B.stack;return typeof Le<"u"&&Le.$$is_string?B.backtrace=N(Le.split(`
387
- `)):Le?B.backtrace=N(Le):[]}),f(O,"$backtrace_locations",function(){var B,Le=this;return Le.backtrace_locations||(Le.backtrace_locations=(B=Le.$backtrace(),B===me||B==null?me:s(B,"map",[],function(P){return P==null&&(P=me),J(J(J("Thread"),"Backtrace"),"Location").$new(P)}))),Le.backtrace_locations}),f(O,"$cause",function(){var B=this;return B.cause||me}),f(O,"$exception",function(B){var Le=this;if(B==null&&(B=me),B===me||Le===B)return Le;var ue=Le.$clone();return ue.message=B,Le.backtrace&&(ue.backtrace=Le.backtrace.$dup()),ue.stack=Le.stack,ue.cause=Le.cause,ue},-1),f(O,"$message",function(){var B=this;return B.$to_s()}),f(O,"$full_message",function(B){var Le,ue=this,P=me,v=me,$=me,l=me,u=me,d=me,_=me,k=me,A=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(P=B)?P:h([],{})),Le=[B["$[]"]("highlight"),B["$[]"]("order")],v=Le[0],$=Le[1],p([!0,!1]["$include?"](v))||I.$raise(J("ArgumentError"),"expected true or false as highlight: "+v),p(["top","bottom"]["$include?"]($))||I.$raise(J("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(),(L(_)||p(_["$empty?"]()))&&(_=ue.$caller()),k=_.$shift(),A=""+k+": ",A=H(A,""+u+ue.$to_s()+" ("+l+ue.$class()+d+u+")"+d+`
388
- `),A=H(A,s(_,"map",[],function(De){return De==null&&(De=me)," from "+De+`
389
- `}).$join()),p(ue.$cause())&&(A=H(A,ue.$cause().$full_message(h(["highlight"],{highlight:v})))),pe($,"bottom")&&(A=A.$split(`
390
- `).$reverse().$join(`
391
- `),A=H(""+u+"Traceback"+d+` (most recent call last):
392
- `,A)),A):""+ue.message+`
393
- `+ue.stack},-1),f(O,"$inspect",function(){var B=this,Le=me;return Le=B.$to_s(),p(Le["$empty?"]())?B.$class().$to_s():"#<"+B.$class().$to_s()+": "+B.$to_s()+">"}),f(O,"$set_backtrace",function(B){var Le=this,ue=!0,P,v;if(B===me)Le.backtrace=me,Le.stack="";else if(B.$$is_string)Le.backtrace=[B],Le.stack=" from "+B;else{if(B.$$is_array){for(P=0,v=B.length;P<v;P++)if(!B[P].$$is_string){ue=!1;break}}else ue=!1;ue===!1&&I.$raise(J("TypeError"),"backtrace must be Array of String"),Le.backtrace=B,Le.stack=s(B,"map",[],function(l){return l==null&&(l=me),H(" from ",l)}).join(`
394
- `)}return B}),f(O,"$to_s",function(){var B=this,Le=me,ue=me;return p(Le=p(ue=B.message)?B.message.$to_s():ue)?Le:B.$class().$to_s()})}("::",Error,se),t("::",J("Exception"),"ScriptError"),t("::",J("ScriptError"),"SyntaxError"),t("::",J("ScriptError"),"LoadError"),t("::",J("ScriptError"),"NotImplementedError"),t("::",J("Exception"),"SystemExit"),t("::",J("Exception"),"NoMemoryError"),t("::",J("Exception"),"SignalException"),t("::",J("SignalException"),"Interrupt"),t("::",J("Exception"),"SecurityError"),t("::",J("Exception"),"SystemStackError"),t("::",J("Exception"),"StandardError"),t("::",J("StandardError"),"EncodingError"),t("::",J("StandardError"),"ZeroDivisionError"),t("::",J("StandardError"),"NameError"),t("::",J("NameError"),"NoMethodError"),t("::",J("StandardError"),"RuntimeError"),t("::",J("RuntimeError"),"FrozenError"),t("::",J("StandardError"),"LocalJumpError"),t("::",J("StandardError"),"TypeError"),t("::",J("StandardError"),"ArgumentError"),t("::",J("ArgumentError"),"UncaughtThrowError"),t("::",J("StandardError"),"IndexError"),t("::",J("IndexError"),"StopIteration"),t("::",J("StopIteration"),"ClosedQueueError"),t("::",J("IndexError"),"KeyError"),t("::",J("StandardError"),"RangeError"),t("::",J("RangeError"),"FloatDomainError"),t("::",J("StandardError"),"IOError"),t("::",J("IOError"),"EOFError"),t("::",J("StandardError"),"SystemCallError"),t("::",J("StandardError"),"RegexpError"),t("::",J("StandardError"),"ThreadError"),t("::",J("StandardError"),"FiberError"),be.$autoload("Errno","corelib/error/errno"),function(xe,fe){var Ae=t(xe,fe,"FrozenError");return Ae.$attr_reader("receiver"),f(Ae,"$initialize",function O(Ee,ce){var w;O.$$p;var Se=this;return O.$$p=null,ce=re(ce),w=ce.$$smap.receiver,w==null&&(w=me),W(Se,X(Se,"initialize",O,!1,!0),"initialize",[Ee],null),Se.receiver=w},-2)}("::",J("RuntimeError")),function(xe,fe){var Ae=t(xe,fe,"UncaughtThrowError"),O=Ae.$$prototype;return O.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,W(Se,X(Se,"initialize",Ee,!1,!0),"initialize",["uncaught throw "+Se.tag.$inspect()],null)},-2)}("::",J("ArgumentError")),function(xe,fe){var Ae=t(xe,fe,"NameError");return Ae.$attr_reader("name"),f(Ae,"$initialize",function O(Ee,ce){O.$$p;var w=this;return O.$$p=null,ce==null&&(ce=me),W(w,X(w,"initialize",O,!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 O(Ee,ce,w){O.$$p;var Se=this;return O.$$p=null,ce==null&&(ce=me),w==null&&(w=[]),W(Se,X(Se,"initialize",O,!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"),O=Ae.$$prototype;return O.receiver=O.key=me,f(Ae,"$initialize",function Ee(ce,w){var Se,N;Ee.$$p;var ne=this;return Ee.$$p=null,w=re(w),Se=w.$$smap.receiver,Se==null&&(Se=me),N=w.$$smap.key,N==null&&(N=me),W(ne,X(ne,"initialize",Ee,!1,!0),"initialize",[ce],null),ne.receiver=Se,ne.key=N},-2),f(Ae,"$receiver",function(){var ce=this,w=me;return p(w=ce.receiver)?w:I.$raise(J("ArgumentError"),"no receiver is available")}),f(Ae,"$key",function(){var ce=this,w=me;return p(w=ce.key)?w:I.$raise(J("ArgumentError"),"no key is available")})}("::",null),function(xe,fe){var Ae=ge(xe,"JS"),O=[Ae].concat(fe);return t(O[0],null,"Error"),me}("::",se)};Opal.modules["corelib/constants"]=function(e){var t=e.const_set;e.nil;var r=e.$$$;return t("::","RUBY_PLATFORM","opal"),t("::","RUBY_ENGINE","opal"),t("::","RUBY_VERSION","3.2.0"),t("::","RUBY_ENGINE_VERSION","1.7.3"),t("::","RUBY_RELEASE_DATE","2023-03-23"),t("::","RUBY_PATCHLEVEL",0),t("::","RUBY_REVISION","0"),t("::","RUBY_COPYRIGHT","opal - Copyright (C) 2011-2023 Adam Beynon and the Opal contributors"),t("::","RUBY_DESCRIPTION","opal "+r("RUBY_ENGINE_VERSION")+" ("+r("RUBY_RELEASE_DATE")+" revision "+r("RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(e){var t=e.Object;return e.nil,e.add_stubs("require"),t.$require("corelib/runtime"),t.$require("corelib/helpers"),t.$require("corelib/module"),t.$require("corelib/class"),t.$require("corelib/basic_object"),t.$require("corelib/kernel"),t.$require("corelib/main"),t.$require("corelib/error"),t.$require("corelib/constants")};Opal.modules["corelib/nil"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_val,s=e.ensure_kwargs,c=e.NilClass,f=e.slice,p=e.truthy,h=e.rb_gt,I=e.alias,L=e.nil,H=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(pe,be,re){var W=t(pe,be,"NilClass");return W.$$prototype.$$meta=W,function(X,ge){return n(X,"$allocate",function(){var me=this;return r.$raise(H("TypeError"),"allocator undefined for "+me.$name())}),e.udef(X,"$new"),L}(e.get_singleton_class(W)),n(W,"$!",i(!0)),n(W,"$&",i(!1)),n(W,"$|",function(ge){return ge!==!1&&ge!==L}),n(W,"$^",function(ge){return ge!==!1&&ge!==L}),n(W,"$==",function(ge){return ge===L}),n(W,"$dup",i(L)),n(W,"$clone",function(ge){return ge=s(ge),ge.$$smap.freeze,L},-1),n(W,"$inspect",i("nil")),n(W,"$nil?",i(!0)),n(W,"$singleton_class",function(){return c}),n(W,"$to_a",function(){return[]}),n(W,"$to_h",function(){return e.hash()}),n(W,"$to_i",i(0)),n(W,"$to_s",i("")),n(W,"$to_c",function(){return H("Complex").$new(0,0)}),n(W,"$rationalize",function(ge){var se,me;return se=f(arguments),me=se,p(h(me.$length(),1))&&r.$raise(H("ArgumentError")),r.$Rational(0,1)},-1),n(W,"$to_r",function(){return r.$Rational(0,1)}),n(W,"$instance_variables",function(){return[]}),I(W,"to_f","to_i")}("::",null)};Opal.modules["corelib/boolean"]=function(e){var t=e.klass,r=e.Kernel,n=e.def,i=e.return_self,s=e.ensure_kwargs,c=e.slice,f=e.truthy,p=e.send2,h=e.find_super,I=e.to_a,L=e.alias,H=e.nil,pe=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(be,re,W){var X=t(be,re,"Boolean");e.prop(X.$$prototype,"$$is_boolean",!0);for(var ge=["$$class","$$meta"],se=0;se<ge.length;se++)Object.defineProperty(X.$$prototype,ge[se],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(X.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:H}}),function(me,J){return n(me,"$allocate",function(){var fe=this;return r.$raise(pe("TypeError"),"allocator undefined for "+fe.$name())}),e.udef(me,"$new"),H}(e.get_singleton_class(X)),n(X,"$__id__",function(){var J=this;return J.valueOf()?2:0}),n(X,"$!",function(){var J=this;return J!=!0}),n(X,"$&",function(J){var xe=this;return xe==!0?J!==!1&&J!==H:!1}),n(X,"$|",function(J){var xe=this;return xe==!0?!0:J!==!1&&J!==H}),n(X,"$^",function(J){var xe=this;return xe==!0?J===!1||J===H:J!==!1&&J!==H}),n(X,"$==",function(J){var xe=this;return xe==!0===J.valueOf()}),n(X,"$singleton_class",function(){var J=this;return J.$$meta}),n(X,"$to_s",function(){var J=this;return J==!0?"true":"false"}),n(X,"$dup",i),n(X,"$clone",function(J){var xe=this;return J=s(J),J.$$smap.freeze,xe},-1),n(X,"$method_missing",function me(J,xe){var fe=me.$$p||H,Ae,O,Ee=this;me.$$p=null,Ae=c(arguments,1),O=Ae;var ce=Ee.$$class.$$prototype[e.jsid(J)];return f(typeof ce<"u"&&!ce.$$stub)||p(Ee,h(Ee,"method_missing",me,!1,!0),"method_missing",[J].concat(I(O)),fe),e.send(Ee,ce,O,fe)},-2),n(X,"$respond_to_missing?",function(J,xe){var fe=this,Ae=fe.$$class.$$prototype[e.jsid(J)];return typeof Ae<"u"&&!Ae.$$stub},-2),L(X,"eql?","=="),L(X,"equal?","=="),L(X,"inspect","to_s"),L(X,"object_id","__id__")}("::",Boolean),t("::",pe("Boolean"),"TrueClass"),t("::",pe("Boolean"),"FalseClass"),H};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,c=e.Kernel,f=e.def,p=e.nil,h=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(I){var L=r(I,"Comparable"),H=p;function pe(W){return e.is_a(W,e.Integer)?W:n(W,0)?1:i(W,0)?-1:0}function be(W,X){var ge;s(p,H=X)||s(!0,H)||s(!1,H)||s(h("Integer"),H)||s(h("Float"),H)?ge=X.$inspect():ge=X.$$class,c.$raise(h("ArgumentError"),"comparison of "+W.$class()+" with "+ge+" failed")}function re(W,X){var ge=W["$<=>"](X);return t(ge)||be(W,X),pe(ge)}return f(L,"$==",function(X){var ge=this,se=p;return t(ge["$equal?"](X))?!0:ge["$<=>"]==e.Kernel["$<=>"]?!1:ge.$$comparable?(ge.$$comparable=!1,!1):t(se=ge["$<=>"](X))?pe(se)==0:!1}),f(L,"$>",function(X){var ge=this;return re(ge,X)>0}),f(L,"$>=",function(X){var ge=this;return re(ge,X)>=0}),f(L,"$<",function(X){var ge=this;return re(ge,X)<0}),f(L,"$<=",function(X){var ge=this;return re(ge,X)<=0}),f(L,"$between?",function(X,ge){var se=this;return!(i(se,X)||n(se,ge))}),f(L,"$clamp",function(X,ge){var se=this;ge==null&&(ge=p);var me,J;if(ge===p&&(e.is_a(X,e.Range)||c.$raise(h("TypeError"),"wrong argument type "+X.$class()+" (expected Range)"),J=X.excl,ge=X.end,X=X.begin,ge!==p&&J&&c.$raise(h("ArgumentError"),"cannot clamp with an exclusive range")),X!==p&&ge!==p&&re(X,ge)>0&&c.$raise(h("ArgumentError"),"min argument must be smaller than max argument"),X!==p){if(me=re(se,X),me==0)return se;if(me<0)return X}return ge!==p&&(me=re(se,ge),me>0)?ge:se},-2)}("::")};Opal.modules["corelib/regexp"]=function(e){var t=e.coerce_to,r=e.prop,n=e.freeze,i=e.klass,s=e.const_set,c=e.send2,f=e.find_super,p=e.def,h=e.truthy,I=e.gvars,L=e.slice,H=e.Kernel,pe=e.Opal,be=e.alias,re=e.send,W=e.hash2,X=e.rb_plus,ge=e.ensure_kwargs,se=e.rb_ge,me=e.to_a,J=e.eqeqeq,xe=e.rb_minus,fe=e.return_ivar,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,frozen?,uniq,map,scan,source,to_proc,transform_values,group_by,each_with_index,+,last,=~,==,attr_reader,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a"),i("::",Ee("StandardError"),"RegexpError"),function(ce,w,Se){var N=i(ce,w,"Regexp"),ne=[N].concat(Se),B=e.$r(ne);return s(N,"IGNORECASE",1),s(N,"EXTENDED",2),s(N,"MULTILINE",4),e.prop(N.$$prototype,"$$is_regexp",!0),function(Le,ue){var P=[Le].concat(ue),v=e.$r(P);return p(Le,"$allocate",function $(){var l=$.$$p||O,u=this,d=O;return $.$$p=null,d=c(u,f(u,"allocate",$,!1,!0),"allocate",[],l),d.uninitialized=!0,d}),p(Le,"$escape",function(l){return e.escape_regexp(l)}),p(Le,"$last_match",function(l){return I["~"]==null&&(I["~"]=O),l==null&&(l=O),h(l["$nil?"]())?I["~"]:h(I["~"])?I["~"]["$[]"](l):O},-1),p(Le,"$union",function(l){var u,d,_=this;u=L(arguments),d=u;var k,A,Q,De,rt;if(d.length==0)return/(?!)/;if(d.length==1&&d[0].$$is_regexp)return d[0];k=d[0].$$is_array,d.length>1&&k&&H.$raise(Ee("TypeError"),"no implicit conversion of Array into String"),k&&(d=d[0]),De=void 0,A=[];for(var ft=0;ft<d.length;ft++)Q=d[ft],Q.$$is_string?A.push(_.$escape(Q)):Q.$$is_regexp?(rt=Q.$options(),De!=null&&De!=rt&&H.$raise(Ee("TypeError"),"All expressions must use the same options"),De=rt,A.push("("+Q.source+")")):A.push(_.$escape(Q.$to_str()));return _.$new(A.$join("|"),De)},-1),p(Le,"$new",function(l,u){if(l.$$is_regexp)return new RegExp(l);if(l=pe["$coerce_to!"](l,Ee("String"),"to_str"),l.charAt(l.length-1)==="\\"&&l.charAt(l.length-2)!=="\\"&&H.$raise(Ee("RegexpError"),"too short escape sequence: /"+l+"/"),l=l.replace("\\A","^").replace("\\z","$"),u===void 0||u["$!"]())return new RegExp(l);if(u.$$is_number){var d="";v("IGNORECASE")&u&&(d+="i"),v("MULTILINE")&u&&(d+="m"),u=d}else u="i";return new RegExp(l,u)},-2),be(Le,"compile","new"),be(Le,"quote","escape")}(e.get_singleton_class(N),ne),p(N,"$==",function(ue){var P=this;return ue instanceof RegExp&&P.toString()===ue.toString()}),p(N,"$===",function(ue){var P=this;return P.$match(pe["$coerce_to?"](ue,Ee("String"),"to_str"))!==O}),p(N,"$=~",function(ue){var P=this,v=O;return I["~"]==null&&(I["~"]=O),h(v=P.$match(ue))?I["~"].$begin(0):v}),p(N,"$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(N,"$inspect",function(){var ue=this,P=/^\/(.*)\/([^\/]*)$/,v=ue.toString(),$=P.exec(v);if($){for(var l=$[1],u=$[2],d=l.split(""),_=d.length,k=!1,A="",Q=0;Q<_;Q++){var De=d[Q];!k&&De=="/"&&(A=A.concat("\\")),A=A.concat(De),De=="\\"?k?k=!1:k=!0:k=!1}return"/"+A+"/"+u}else return v}),p(N,"$match",function Le(ue,P){var v=Le.$$p||O,$=this;if(I["~"]==null&&(I["~"]=O),Le.$$p=null,$.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp"),P===void 0){if(ue===O)return I["~"]=O;var l=$.exec(t(ue,Ee("String"),"to_str"));return l?(I["~"]=Ee("MatchData").$new($,l),v===O?I["~"]:e.yield1(v,I["~"])):I["~"]=O}if(P=t(P,Ee("Integer"),"to_int"),ue===O||(ue=t(ue,Ee("String"),"to_str"),P<0&&(P+=ue.length,P<0)))return I["~"]=O;for(var u,d=e.global_regexp($);;){if(u=d.exec(ue),u===null)return I["~"]=O;if(u.index>=P)return I["~"]=Ee("MatchData").$new(d,u),v===O?I["~"]:e.yield1(v,I["~"]);d.lastIndex=u.index+1}},-2),p(N,"$match?",function(ue,P){var v=this;if(v.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp"),P===void 0)return ue===O?!1:v.test(t(ue,Ee("String"),"to_str"));if(P=t(P,Ee("Integer"),"to_int"),ue===O||(ue=t(ue,Ee("String"),"to_str"),P<0&&(P+=ue.length,P<0)))return!1;var $,l=e.global_regexp(v);return $=l.exec(ue),!($===null||$.index<P)},-2),p(N,"$names",function(){var ue=this;return re(ue.$source().$scan(/\(?<(\w+)>/,W(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),p(N,"$named_captures",function(){var ue=this;return re(re(re(ue.$source().$scan(/\(?<(\w+)>/,W(["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=O),re(v,"map",[],function(l){return l==null&&(l=O),X(l.$last(),1)})})}),p(N,"$~",function(){var ue=this;return I._==null&&(I._=O),ue["$=~"](I._)}),p(N,"$source",function(){var ue=this;return ue.source}),p(N,"$options",function(){var ue=this;ue.uninitialized&&H.$raise(Ee("TypeError"),"uninitialized Regexp");var P=0;return ue.multiline&&(P|=B("MULTILINE")),ue.ignoreCase&&(P|=B("IGNORECASE")),P}),p(N,"$casefold?",function(){var ue=this;return ue.ignoreCase}),be(N,"eql?","=="),be(N,"to_s","source")}("::",RegExp,Ae),function(ce,w,Se){var N=i(ce,w,"MatchData"),ne=[N].concat(Se),B=e.$r(ne),Le=N.$$prototype;return Le.matches=O,N.$attr_reader("post_match","pre_match","regexp","string"),p(N,"$initialize",function(P,v,$){var l,u=this;$=ge($),l=$.$$smap.no_matchdata,l==null&&(l=!1),h(l)||(I["~"]=u),u.regexp=P,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 k=v[d];k==null?u.matches.push(O):u.matches.push(k)}},-3),p(N,"$match",function(P){var v=this,$=O;return h($=v["$[]"](P))?$:h(P["$is_a?"](B("Integer")))&&h(se(P,v.$length()))?H.$raise(Ee("IndexError"),"index "+P+" out of matches"):O}),p(N,"$match_length",function(P){var v,$=this;return v=$.$match(P),v===O||v==null?O:v.$length()}),p(N,"$[]",function(P){var v,$,l=this;return v=L(arguments),$=v,$[0].$$is_string?(l.$regexp().$names()["$include?"]($["$[]"](0))["$!"]()&&H.$raise(Ee("IndexError"),"undefined group name reference: "+$["$[]"](0)),l.$named_captures()["$[]"]($["$[]"](0))):re(l.matches,"[]",me($))},-1),p(N,"$offset",function(P){var v=this;return P!==0&&H.$raise(Ee("ArgumentError"),"MatchData#offset only supports 0th element"),[v.begin,v.begin+v.matches[P].length]}),p(N,"$==",function(P){var v=this,$=O,l=O,u=O,d=O;return J(Ee("MatchData"),P)?h($=h(l=h(u=h(d=v.string==P.string)?v.regexp.toString()==P.regexp.toString():d)?v.pre_match==P.pre_match:u)?v.post_match==P.post_match:l)?v.begin==P.begin:$:!1}),p(N,"$begin",function(P){var v=this;return P!==0&&H.$raise(Ee("ArgumentError"),"MatchData#begin only supports 0th element"),v.begin}),p(N,"$end",function(P){var v=this;return P!==0&&H.$raise(Ee("ArgumentError"),"MatchData#end only supports 0th element"),v.begin+v.matches[P].length}),p(N,"$captures",function(){var P=this;return P.matches.slice(1)}),p(N,"$named_captures",function(){var P=this,v=O;return v=P.$captures(),re(P.$regexp().$named_captures(),"transform_values",[],function(l){return l==null&&(l=O),v["$[]"](xe(l.$last(),1))})}),p(N,"$names",function(){var P=this;return P.$regexp().$names()}),p(N,"$inspect",function(){var P=this,v="#<MatchData "+P.matches[0].$inspect();if(P.$regexp().$names()["$empty?"]())for(var $=1,l=P.matches.length;$<l;$++)v+=" "+$+":"+P.matches[$].$inspect();else re(P.$named_captures(),"each",[],function(d,_){return d==null&&(d=O),_==null&&(_=O),v+=" "+d+":"+_.$inspect()});return v+">"}),p(N,"$length",function(){var P=this;return P.matches.length}),p(N,"$to_a",fe("matches")),p(N,"$to_s",function(){var P=this;return P.matches[0]}),p(N,"$values_at",function(P){var v,$,l=this;v=L(arguments),$=v;var u,d,_,k=[];for(u=0;u<$.length;u++){if($[u].$$is_range&&(d=$[u].$to_a(),d.unshift(u,1),Array.prototype.splice.apply($,d)),_=pe["$coerce_to!"]($[u],Ee("Integer"),"to_int"),_<0&&(_+=l.matches.length,_<0)){k.push(O);continue}k.push(l.matches[_])}return k},-1),be(N,"eql?","=="),be(N,"size","length")}(Ae[0],null,Ae)};Opal.modules["corelib/string"]=function(e){var t=e.coerce_to,r=e.respond_to,n=e.global_multiline_regexp,i=e.prop,s=e.klass,c=e.def,f=e.Opal,p=e.defs,h=e.slice,I=e.send,L=e.to_a,H=e.extract_kwargs,pe=e.ensure_kwargs,be=e.eqeqeq,re=e.Kernel,W=e.truthy,X=e.gvars,ge=e.rb_divide,se=e.rb_plus,me=e.eqeq,J=e.hash2,xe=e.alias,fe=e.const_set,Ae=e.top,O=[],Ee=e.$r(O),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,N,ne){var B=s(Se,N,"String"),Le=[B].concat(ne),ue=e.$r(Le);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]||"",k=u[u.length-1];return _=t(_,w("String"),"to_str"),k&&k.$$is_hash&&k.$$smap.encoding&&(_=_.$force_encoding(k.$$smap.encoding)),_=new d.$$constructor(_),_.$initialize.$$pristine||I(_,"initialize",L(u)),_},-1),c(B,"$initialize",function($,l){var u,d;return u=h(arguments),d=H(u),d=pe(d),u.length>0&&u.shift(),d.$$smap.encoding,d.$$smap.capacity,ce},-1),c(B,"$%",function($){var l=this;return be(w("Array"),$)?I(l,"format",[l].concat(L($))):l.$format(l,$)}),c(B,"$*",function($){var l=this;if($=t($,w("Integer"),"to_int"),$<0&&re.$raise(w("ArgumentError"),"negative argument"),$===0)return"";var u="",d=l.toString();for(d.length*$>=1<<28&&re.$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(W($["$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&&re.$raise(w("TypeError"),"type mismatch: String given"),$["$=~"](l)}),c(B,"$[]",function($,l){var u=this,d=u.length,_,k;if($.$$is_range)return _=$.excl,k=$,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),(!_||k.end===ce)&&(l+=1),l=l-$,l<0&&(l=0),u.substr($,l));if($.$$is_string)return l!=null&&re.$raise(w("TypeError")),u.indexOf($)!==-1?$:ce;if($.$$is_regexp){var A=u.match($);return A===null?(X["~"]=ce,ce):(X["~"]=w("MatchData").$new($,A),l==null?A[0]:(l=t(l,w("Integer"),"to_int"),l<0&&-l<A.length?A[l+=A.length]:l>=0&&l<A.length?A[l]: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(!W($["$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(),W(l["$empty?"]())&&re.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=u.$ljust(ge(se($,u.length),2).$ceil(),l),_=u.$rjust(ge(se($,u.length),2).$floor(),l);return _+d.slice(u.length)},-2),c(B,"$chomp",function($){var l=this;if(X["/"]==null&&(X["/"]=ce),$==null&&($=X["/"]),W($===ce||l.length===0))return l;$=f["$coerce_to!"]($,w("String"),"to_str").$to_s();var u;if($===`
395
- `)u=l.replace(/\r?\n?$/,"");else if($==="")u=l.replace(/(\r?\n)+$/,"");else if(l.length>=$.length){var d=l.substr(l.length-$.length,$.length);d===$&&(u=l.substr(0,l.length-$.length))}return u??l},-1),c(B,"$chop",function(){var $=this,l=$.length,u;return l<=1?u="":$.charAt(l-1)===`
396
- `&&$.charAt(l-2)==="\r"?u=$.substr(0,l-2):u=$.substr(0,l-1),u}),c(B,"$chr",function(){var $=this;return $.charAt(0)}),c(B,"$clone",function($){var l,u=this,d=ce;return $=pe($),l=$.$$smap.freeze,l==null&&(l=ce),W(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,J(["freeze"],{freeze:l})),me(l,!0)?d.$$frozen||(d.$$frozen=!0):W(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&&re.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=P(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&&re.$raise(w("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var _=P(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,_,k,A,Q=this;if(X["/"]==null&&(X["/"]=ce),v.$$p=null,d=h(arguments),_=H(d),_=pe(_),d.length>0&&(k=d.shift()),k==null&&(k=X["/"]),A=_.$$smap.chomp,A==null&&(A=!1),u===ce)return Q.$enum_for("each_line",k,J(["chomp"],{chomp:A}));if(k===ce)return e.yield1(u,Q),Q;k=t(k,w("String"),"to_str");var De,rt,ft,_t,At,bt,Mt,Et;if(k.length===0){for(De=Q.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),rt=0,ft=De.length;rt<ft;rt+=2)(De[rt]||De[rt+1])&&(Et=(De[rt]||"")+(De[rt+1]||""),A&&(Et=Et.$chomp(`
397
- `)),e.yield1(u,Et));return Q}for(At=Q.$chomp(k),bt=Q.length!=At.length,Mt=At.split(k),rt=0,_t=Mt.length;rt<_t;rt++)Et=Mt[rt],(rt<_t-1||bt)&&(Et+=k),A&&(Et=Et.$chomp(k)),e.yield1(u,Et);return Q},-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,k=u.length;_<k;_++){var A=t(u[_],w("String"),"to_str").$to_s();if(d.length>=A.length&&d.substr(d.length-A.length,A.length)==A)return!0}return!1},-1),c(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 _="",k=ce,A=0,Q,De;$.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var rt;;){if(Q=$.exec(d),Q===null){X["~"]=ce,_+=d.slice(A);break}k=w("MatchData").$new($,Q),l===void 0?(rt=$.lastIndex,De=u(Q[0]),$.lastIndex=rt):l.$$is_hash?De=l["$[]"](Q[0]).$to_s():(l.$$is_string||(l=t(l,w("String"),"to_str")),De=l.replace(/([\\]+)([0-9+&`'])/g,function(ft,_t,At){if(_t.length%2===0)return ft;switch(At){case"+":for(var bt=Q.length-1;bt>0;bt--)if(Q[bt]!==void 0)return _t.slice(1)+Q[bt];return"";case"&":return _t.slice(1)+Q[0];case"`":return _t.slice(1)+d.slice(0,Q.index);case"'":return _t.slice(1)+d.slice(Q.index+Q[0].length);default:return _t.slice(1)+(Q[At]||"")}}).replace(/\\\\/g,"\\")),$.lastIndex===Q.index?(_+=d.slice(A,Q.index)+De+(d[Q.index]||""),$.lastIndex+=1):_+=d.slice(A,Q.index)+De,A=$.lastIndex}return X["~"]=k,_},-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,_,k;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(k=n($);;){if(_=k.exec(u),_===null){X["~"]=ce,d=-1;break}if(_.index>=l){X["~"]=w("MatchData").$new(k,_),d=_.index;break}k.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,_,k,A,Q=this,De=ce;return X["/"]==null&&(X["/"]=ce),v.$$p=null,d=h(arguments),_=H(d),_=pe(_),d.length>0&&(k=d.shift()),k==null&&(k=X["/"]),A=_.$$smap.chomp,A==null&&(A=!1),De=I(Q,"each_line",[k,J(["chomp"],{chomp:A})],u.$to_proc()),W(u)?Q:De.$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(),W(l["$empty?"]())&&re.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=-1,_="";for($-=u.length;++d<$;)_+=l;return u+_.slice(0,$)},-2),c(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"),$)||W($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),be(w("Regexp"),$)||re.$raise(w("TypeError"),"wrong argument type "+$.$class()+" (expected Regexp)"),I($,"match",[d,l],u.$to_proc())},-2),c(B,"$match?",function($,l){var u=this;return(be(ue("String"),$)||W($["$respond_to?"]("to_str")))&&($=w("Regexp").$new($.$to_str())),be(w("Regexp"),$)||re.$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,k;l--;){if(k=$.charCodeAt(l),k>=48&&k<=57||k>=65&&k<=90||k>=97&&k<=122)switch(k){case 57:_=!0,k=48;break;case 90:_=!0,k=65;break;case 122:_=!0,k=97;break;default:_=!1,k+=1}else d===-1?k===255?(_=!0,k=0):(_=!1,k+=1):_=!0;if(u=u.slice(0,l)+String.fromCharCode(k)+u.slice(l+1),_&&(l===0||l===d)){switch(k){case 65:break;case 97:break;default:k+=1}l===0?u=String.fromCharCode(k)+u:u=u.slice(0,l)+String.fromCharCode(k)+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(_,k,A,Q){switch(Q.charAt(0)){case"+":case"-":return _;case"0":if(Q.charAt(1)==="x"&&A==="0x")return _}switch(A){case"0b":d=2;break;case"0":case"0o":d=8;break;case"0d":d=10;break;case"0x":d=16;break}return k+Q}),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,_,k,A;if(l===void 0)l=u.length;else if(l=t(l,w("Integer"),"to_int"),l<0&&(l+=u.length,l<0))return ce;if($.$$is_regexp){for(_=null,k=n($);A=k.exec(u),!(A===null||A.index>l);)_=A,k.lastIndex=_.index+1;_===null?(X["~"]=ce,d=-1):(w("MatchData").$new(k,_),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(),W(l["$empty?"]())&&re.$raise(w("ArgumentError"),"zero width padding"),W($<=u.length))return u;var d=Math.floor($-u.length),_=Math.floor(d/l.length),k=Array(_+1).join(l),A=d-k.length;return k+l.slice(0,A)+u},-2),c(B,"$rpartition",function($){var l=this,u,d,_,k;if($.$$is_regexp){for(d=null,_=n($);k=_.exec(l),k!==null;)d=k,_.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=pe(l),d=l.$$smap.no_matchdata,d==null&&(d=!1);var k=[],A=ce,Q;for($.$$is_regexp?$=n($):($=t($,w("String"),"to_str"),$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(Q=$.exec(_))!=null;)A=w("MatchData").$new($,Q,J(["no_matchdata"],{no_matchdata:d})),u===ce?Q.length==1?k.push(Q[0]):k.push(A.$captures()):Q.length==1?e.yield1(u,Q[0]):e.yield1(u,A.$captures()),$.lastIndex===Q.index&&($.lastIndex+=1);return d||(X["~"]=A),u!==ce?_:k},-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)&&($=W(d=X[";"])?d:" ");var _=[],k=u.toString(),A=0,Q,De,rt;if($.$$is_regexp?$=n($):($=t($,w("String"),"to_str").$to_s(),$===" "?($=/\s+/gm,k=k.replace(/^\s+/,"")):$=new RegExp($.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),_=k.split($),_.length===1&&_[0]===k)return[_[0]];for(;(De=_.indexOf(void 0))!==-1;)_.splice(De,1);if(l===0){for(;_[_.length-1]==="";)_.length-=1;return _}if(Q=$.exec(k),l<0){if(Q!==null&&Q[0]===""&&$.source.indexOf("(?=")===-1)for(De=0,rt=Q.length;De<rt;De++)_.push("");return _}if(Q!==null&&Q[0]==="")return _.splice(l-1,_.length-1,_.slice(l-1).join("")),_;if(l>=_.length)return _;for(De=0;Q!==null&&(De++,A=$.lastIndex,De+1!==l);)Q=$.exec(k);return _.splice(l-1,_.length-1,k.slice(A)),_},-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 _=P(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,k=u.length;_<k;_++)if(u[_].$$is_regexp){var A=u[_],Q=A.exec(d);if(Q!=null&&Q.index===0)return X["~"]=w("MatchData").$new(A,Q),!0;X["~"]=ce}else{var De=t(u[_],w("String"),"to_str").$to_s();if(d.indexOf(De)===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 _,k=$.exec(d);return k===null?(X["~"]=ce,_=d.toString()):(w("MatchData").$new($,k),l===void 0?(u===ce&&re.$raise(w("ArgumentError"),"wrong number of arguments (1 for 2)"),_=d.slice(0,k.index)+u(k[0])+d.slice(k.index+k[0].length)):l.$$is_hash?_=d.slice(0,k.index)+l["$[]"](k[0]).$to_s()+d.slice(k.index+k[0].length):(l=t(l,w("String"),"to_str"),l=l.replace(/([\\]+)([0-9+&`'])/g,function(A,Q,De){if(Q.length%2===0)return A;switch(De){case"+":for(var rt=k.length-1;rt>0;rt--)if(k[rt]!==void 0)return Q.slice(1)+k[rt];return"";case"&":return Q.slice(1)+k[0];case"`":return Q.slice(1)+d.slice(0,k.index);case"'":return Q.slice(1)+d.slice(k.index+k[0].length);default:return Q.slice(1)+(k[De]||"")}}).replace(/\\\\/g,"\\"),_=d.slice(0,k.index)+l+d.slice(k.index+k[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)&&re.$raise(w("ArgumentError"),"invalid radix "+_),/^\s*_/.test(d)?0:(d=d.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(k,A,Q,De){switch(De.charAt(0)){case"+":case"-":return k;case"0":if(De.charAt(1)==="x"&&Q==="0x"&&(_===0||_===16))return k}switch(Q){case"0b":if(_===0||_===2)return _=2,A+De;break;case"0":case"0o":if(_===0||_===8)return _=8,A+De;break;case"0d":if(_===0||_===10)return _=10,A+De;break;case"0x":if(_===0||_===16)return _=16,A+De;break}return k}),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=I(re,"proc",[],function _(k){var A=_.$$p||ce,Q,De;_.$$p=null,Q=h(arguments),De=Q,De.length===0&&re.$raise(w("ArgumentError"),"no receiver given");var rt=De[0];rt==null&&(rt=ce);var ft=rt[u];return ft?De=De.slice(1):(ft=rt.$method_missing,De[0]=l),typeof A=="function"&&(ft.$$p=A),De.length===0?ft.call(rt):ft.apply(rt,De)},-1),d.$$source_location=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,_,k,A,Q,De,rt,ft={},_t=$.split(""),At=_t.length,bt=l.split(""),Mt=bt.length,Et=!1,qt=null;_t[0]==="^"&&_t.length>1&&(Et=!0,_t.shift(),qt=bt[Mt-1],At-=1);var It=[],nt=null;for(_=!1,d=0;d<At;d++)if(A=_t[d],nt==null)nt=A,It.push(A);else if(A==="-")nt==="-"?(It.push("-"),It.push("-")):d==At-1?It.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&re.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),k=Q+1;k<De;k++)It.push(String.fromCharCode(k));It.push(A),_=null,nt=null}else It.push(A);if(_t=It,At=_t.length,Et)for(d=0;d<At;d++)ft[_t[d]]=!0;else{if(Mt>0){var Re=[],je=null;for(_=!1,d=0;d<Mt;d++)if(A=bt[d],je==null)je=A,Re.push(A);else if(A==="-")je==="-"?(Re.push("-"),Re.push("-")):d==Mt-1?Re.push("-"):_=!0;else if(_){for(Q=je.charCodeAt(0),De=A.charCodeAt(0),Q>De&&re.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),k=Q+1;k<De;k++)Re.push(String.fromCharCode(k));Re.push(A),_=null,je=null}else Re.push(A);bt=Re,Mt=bt.length}var Ke=At-Mt;if(Ke>0){var x=Mt>0?bt[Mt-1]:"";for(d=0;d<Ke;d++)bt.push(x)}for(d=0;d<At;d++)ft[_t[d]]=bt[d]}var R="";for(d=0,rt=u.length;d<rt;d++){A=u.charAt(d);var ve=ft[A];Et?R+=ve==null?qt:A:R+=ve??A}return R}),c(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,_,k,A,Q,De,rt,ft={},_t=$.split(""),At=_t.length,bt=l.split(""),Mt=bt.length,Et=!1,qt=null;_t[0]==="^"&&_t.length>1&&(Et=!0,_t.shift(),qt=bt[Mt-1],At-=1);var It=[],nt=null;for(_=!1,d=0;d<At;d++)if(A=_t[d],nt==null)nt=A,It.push(A);else if(A==="-")nt==="-"?(It.push("-"),It.push("-")):d==At-1?It.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&re.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),k=Q+1;k<De;k++)It.push(String.fromCharCode(k));It.push(A),_=null,nt=null}else It.push(A);if(_t=It,At=_t.length,Et)for(d=0;d<At;d++)ft[_t[d]]=!0;else{if(Mt>0){var Re=[],je=null;for(_=!1,d=0;d<Mt;d++)if(A=bt[d],nt==null)nt=A,Re.push(A);else if(A==="-")je==="-"?(Re.push("-"),Re.push("-")):d==Mt-1?Re.push("-"):_=!0;else if(_){for(Q=nt.charCodeAt(0),De=A.charCodeAt(0),Q>De&&re.$raise(w("ArgumentError"),'invalid range "'+String.fromCharCode(Q)+"-"+String.fromCharCode(De)+'" in string transliteration'),k=Q+1;k<De;k++)Re.push(String.fromCharCode(k));Re.push(A),_=null,nt=null}else Re.push(A);bt=Re,Mt=bt.length}var Ke=At-Mt;if(Ke>0){var x=Mt>0?bt[Mt-1]:"";for(d=0;d<Ke;d++)bt.push(x)}for(d=0;d<At;d++)ft[_t[d]]=bt[d]}var R="",ve=null;for(d=0,rt=u.length;d<rt;d++){A=u.charAt(d);var Fe=ft[A];Et?Fe==null?ve==null&&(R+=qt,ve=!0):(R+=A,ve=null):Fe!=null?(ve==null||ve!==Fe)&&(R+=Fe,ve=Fe):(R+=A,ve=null)}return R}),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 _,k,A=d.toString();if($=t($,w("String"),"to_str"),A.length===1&&$.length===1)for(_=A.charCodeAt(0),k=$.charCodeAt(0);_<=k&&!(l&&_===k);)u(String.fromCharCode(_)),_+=1;else if(parseInt(A,10).toString()===A&&parseInt($,10).toString()===$)for(_=parseInt(A,10),k=parseInt($,10);_<=k&&!(l&&_===k);)u(_.toString()),_+=1;else for(;A.length<=$.length&&A<=$&&!(l&&A===$);)u(A),A=A.$succ();return d},-2);function P(v){function $(ft){var _t="",At,bt=ft.length,Mt,Et,qt,It,nt;for(At=0;At<bt;At++)if(Mt=ft.charAt(At),Mt==="-"&&At>0&&At<bt-1&&!Et){for(qt=ft.charCodeAt(At-1),It=ft.charCodeAt(At+1),qt>It&&re.$raise(w("ArgumentError"),'invalid range "'+qt+"-"+It+'" in string transliteration'),nt=qt+1;nt<It+1;nt++)_t+=String.fromCharCode(nt);Et=!0,At++}else Et=Mt==="\\",_t+=Mt;return _t}function l(ft,_t){if(ft.length===0)return _t;var At="",bt,Mt=ft.length,Et;for(bt=0;bt<Mt;bt++)Et=ft.charAt(bt),_t.indexOf(Et)!==-1&&(At+=Et);return At}var u,d,_,k,A,Q,De="",rt="";for(u=0,d=v.length;u<d;u++)_=t(v[u],w("String"),"to_str"),k=_.charAt(0)==="^"&&_.length>1,_=$(k?_.slice(1):_),k?rt=l(rt,_):De=l(De,_);if(De.length>0&&rt.length>0){for(Q="",u=0,d=De.length;u<d;u++)A=De.charAt(u),rt.indexOf(A)===-1&&(Q+=A);De=Q,rt=""}return De.length>0?"["+w("Regexp").$escape(De)+"]":rt.length>0?"[^"+w("Regexp").$escape(rt)+"]":null}return c(B,"$instance_variables",function(){return[]}),p(B,"$_load",function($){var l,u,d=this;return l=h(arguments),u=l,I(d,"new",L(u))},-1),c(B,"$unicode_normalize",function($){var l=this;return $==null&&($="nfc"),W(["nfc","nfd","nfkc","nfkd"]["$include?"]($))||re.$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 re.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),c(B,"$unpack1",function($){return re.$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,O),fe(O[0],"Symbol",Ee("String"))};Opal.modules["corelib/enumerable"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.module,f=e.send,p=e.slice,h=e.to_a,I=e.Opal,L=e.thrower,H=e.def,pe=e.Kernel,be=e.return_val,re=e.rb_gt,W=e.rb_times,X=e.rb_lt,ge=e.eqeq,se=e.rb_plus,me=e.rb_minus,J=e.rb_divide,xe=e.rb_le,fe=e.hash2,Ae=e.lambda,O=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(N,ne){var B=c(N,"Enumerable"),Le=[B].concat(ne),ue=e.$r(Le);function P(v){return v.length===0&&(v=[w]),v.length>1&&(v=[v]),v}return H(B,"$all?",function v($){try{var l=L("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(k){var A,Q,De=w;if(A=p(arguments),Q=A,De=P(Q),t(f($,"public_send",["==="].concat(h(De)))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(k){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}):f(d,"each",[],function(k){var A,Q;if(A=p(arguments),Q=A,t(I.$destructure(Q)))return w;l.$throw(!1)},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),H(B,"$any?",function v($){try{var l=L("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(k){var A,Q,De=w;if(A=p(arguments),Q=A,De=P(Q),t(f($,"public_send",["==="].concat(h(De)))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(k){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(k){var A,Q;if(A=p(arguments),Q=A,t(I.$destructure(Q)))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(_){if(_===l)return _.$v;throw _}},-1),H(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 k=w,A=[];function Q(){A.length>0&&d.$yield(k,A)}_.$each.$$p=function(De){var rt=n($,De);rt===w?(Q(),A=[],k=w):(k===w||k===rt?A.push(De):(Q(),A=[De]),k=rt)},_.$each(),Q()},{$$s:l})}),H(B,"$chunk_while",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w&&pe.$raise(Se("ArgumentError"),"no block given"),f(l,"slice_when",[],function(d,_){return d==null&&(d=w),_==null&&(_=w),e.yieldX($,[d,_])["$!"]()})}),H(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}),H(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)}),H(B,"$compact",function(){var $=this;return $.$to_a().$compact()}),H(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(pe,"proc",[],function(k){var A,Q;return A=p(arguments),Q=A,I.$destructure(Q)["$=="]($)},-1):t(l["$nil?"]())&&(l=f(pe,"proc",[],be(!0))),f(u,"each",[],function(k){var A,Q;return A=p(arguments),Q=A,t(i(l,Q))?d++:w},-1),d},-1),H(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 A(){var Q=A.$$s==null?this:A.$$s;return t($["$nil?"]())?t(Q["$respond_to?"]("size"))?Se(Se("Float"),"INFINITY"):w:($=I["$coerce_to!"]($,Se("Integer"),"to_int"),t(re($,0))?W(Q.$enumerator_size(),$):0)},{$$s:u});if(!t($["$nil?"]())&&($=I["$coerce_to!"]($,Se("Integer"),"to_int"),t($<=0)))return w;var d=[],_,k;if(u.$each.$$p=function(){var A=I.$destructure(arguments);n(l,A),d.push(A)},u.$each(),d.length===0)return w;if($===w)for(;;)for(_=0,k=d.length;_<k;_++)n(l,d[_]);else for(;$>1;){for(_=0,k=d.length;_<k;_++)n(l,d[_]);$--}},-1),H(B,"$detect",function v($){try{var l=L("return"),u=v.$$p||w,d=this;return v.$$p=null,u===w?d.$enum_for("detect",$):(f(d,"each",[],function(k){var A,Q,De=w;if(A=p(arguments),Q=A,De=I.$destructure(Q),t(e.yield1(u,De)))l.$throw(De);else return w},{$$arity:-1,$$ret:l}),$!==void 0?typeof $=="function"?$():$:w)}catch(_){if(_===l)return _.$v;throw _}},-1),H(B,"$drop",function($){var l=this;$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to drop negative size");var u=[],d=0;return l.$each.$$p=function(){$<=d&&u.push(I.$destructure(arguments)),d++},l.$each(),u}),H(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 _=I.$destructure(arguments);if(d){var k=n($,_);t(k)||(d=!1,u.push(_))}else u.push(_)},l.$each(),u}),H(B,"$each_cons",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,t(arguments.length!=1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),$=I.$try_convert($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid size"),l===w)return f(u,"enum_for",["each_cons",$],function _(){var k=_.$$s==null?this:_.$$s,A=w;return A=k.$enumerator_size(),t(A["$nil?"]())?w:ge(A,0)||t(X(A,$))?0:se(me(A,$),1)},{$$s:u});var d=[];return u.$each.$$p=function(){var _=I.$destructure(arguments);d.push(_),d.length>$&&d.shift(),d.length==$&&n(l,d.slice(0,$))},u.$each(),u}),H(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 k(){var A=k.$$s==null?this:k.$$s;return A.$enumerator_size()},{$$s:_}):(_.$each.$$p=function(){var k=I.$destructure(arguments);n(l,k)},_.$each.apply(_,d),_)},-1),H(B,"$each_slice",function v($){var l=v.$$p||w,u=this;if(v.$$p=null,$=r($,Se("Integer"),"to_int"),t($<=0)&&pe.$raise(Se("ArgumentError"),"invalid slice size"),l===w)return f(u,"enum_for",["each_slice",$],function _(){var k=_.$$s==null?this:_.$$s;return t(k["$respond_to?"]("size"))?J(k.$size(),$).$ceil():w},{$$s:u});var d=[];return u.$each.$$p=function(){var _=I.$destructure(arguments);d.push(_),d.length===$&&(n(l,d),d=[])},u.$each(),d.length>0&&n(l,d),u}),H(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 A(){var Q=A.$$s==null?this:A.$$s;return Q.$enumerator_size()},{$$s:_});var k=0;return _.$each.$$p=function(){var A=I.$destructure(arguments);l(A,k),k++},_.$each.apply(_,d),_},-1),H(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=I.$destructure(arguments);l(d,$)},u.$each(),$)}),H(B,"$entries",function($){var l,u,d=this;l=p(arguments),u=l;var _=[];return d.$each.$$p=function(){_.push(I.$destructure(arguments))},d.$each.apply(d,u),_},-1),H(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())}),H(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=I.$destructure(arguments),_=n($,d);t(_)&&u.push(d)},l.$each(),u}),H(B,"$find_index",function v($){try{var l=L("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(A){var Q,De;return Q=p(arguments),De=Q,ge(I.$destructure(De),$)&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}):f(d,"each",[],function(A){var Q,De;return Q=p(arguments),De=Q,t(e.yieldX(u,h(De)))&&l.$throw(_),_+=1},{$$arity:-1,$$ret:l}),w)}catch(k){if(k===l)return k.$v;throw k}},-1),H(B,"$first",function($){try{var l=L("return"),u=this,d=w,_=w;return t($===void 0)?f(u,"each",[],function(A){A==null&&(A=w),l.$throw(A)},{$$ret:l}):(d=[],$=r($,Se("Integer"),"to_int"),t($<0)&&pe.$raise(Se("ArgumentError"),"attempt to take negative size"),t($==0)?[]:(_=0,f(u,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,d.push(I.$destructure(De)),t($<=++_))l.$throw(d);else return w},{$$arity:-1,$$ret:l}),d))}catch(k){if(k===l)return k.$v;throw k}},-1),H(B,"$grep",function v($){var l=v.$$p||w,u=this,d=w;return v.$$p=null,d=[],f(u,"each",[],function(k){var A,Q,De=w;return A=p(arguments),Q=A,De=P(Q),t(f($,"__send__",["==="].concat(h(De))))?(l!==w?(t(re(Q.$length(),1))&&(Q=[Q]),Q=e.yieldX(l,h(Q))):t(xe(Q.$length(),1))&&(Q=Q["$[]"](0)),d.$push(Q)):w},-1),d}),H(B,"$grep_v",function v($){var l=v.$$p||w,u=this,d=w;return v.$$p=null,d=[],f(u,"each",[],function(k){var A,Q,De=w;return A=p(arguments),Q=A,De=P(Q),t(f($,"__send__",["==="].concat(h(De))))?w:(l!==w?(t(re(Q.$length(),1))&&(Q=[Q]),Q=e.yieldX(l,h(Q))):t(xe(Q.$length(),1))&&(Q=Q["$[]"](0)),d.$push(Q))},-1),d}),H(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 k(){var A=k.$$s==null?this:k.$$s;return A.$enumerator_size()},{$$s:u}):(d=fe([],{}),u.$each.$$p=function(){var k=I.$destructure(arguments),A=n($,k);(t(_=d["$[]"](A))?_:(l=[A,[]],f(d,"[]=",l),l[l.length-1]))["$<<"](k)},u.$each(),d)}),H(B,"$include?",function($){try{var l=L("return"),u=this;return f(u,"each",[],function(_){var k,A;if(k=p(arguments),A=k,ge(I.$destructure(A),$))l.$throw(!0);else return w},{$$arity:-1,$$ret:l}),!1}catch(d){if(d===l)return d.$v;throw d}}),H(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 k=I.$destructure(arguments);if(_===void 0){_=k;return}k=i(u,[_,k]),_=k}:(l===void 0&&(Se("Symbol")["$==="]($)||pe.$raise(Se("TypeError"),""+$.$inspect()+" is not a Symbol"),l=$,_=void 0),d.$each.$$p=function(){var k=I.$destructure(arguments);if(_===void 0){_=k;return}_=_.$__send__(l,k)}),d.$each(),_??w},-1),H(B,"$lazy",function(){var $=this;return f(Se(Se("Enumerator"),"Lazy"),"new",[$,$.$enumerator_size()],function(u,d){var _,k;return u==null&&(u=w),_=p(arguments,1),k=_,f(u,"yield",h(k))},-2)}),H(B,"$enumerator_size",function(){var $=this;return t($["$respond_to?"]("size"))?$.$size():w}),H(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 k=I.$destructure(arguments);if(d===void 0){d=k;return}l!==w?_=i(l,[k,d]):_=k["$<=>"](d),_===w&&pe.$raise(Se("ArgumentError"),"comparison failed"),_>0&&(d=k)},u.$each(),d===void 0?w:d}return $=r($,Se("Integer"),"to_int"),f(u,"sort",[],l.$to_proc()).$reverse().$first($)},-1),H(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 k(){var A=k.$$s==null?this:k.$$s;return A.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$reverse().$take($);var d,_;return u.$each.$$p=function(){var k=I.$destructure(arguments),A=n(l,k);if(d===void 0){d=k,_=A;return}A["$<=>"](_)>0&&(d=k,_=A)},u.$each(),d===void 0?w:d},-1),H(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(k,A){return k==null&&(k=w),A==null&&(A=w),e.yieldX(l,[k,A])}).$take($):u.$sort().$take($);var d;return l!==w?u.$each.$$p=function(){var _=I.$destructure(arguments);if(d===void 0){d=_;return}var k=l(_,d);k===w&&pe.$raise(Se("ArgumentError"),"comparison failed"),k<0&&(d=_)}:u.$each.$$p=function(){var _=I.$destructure(arguments);if(d===void 0){d=_;return}I.$compare(_,d)<0&&(d=_)},u.$each(),d===void 0?w:d},-1),H(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 k(){var A=k.$$s==null?this:k.$$s;return A.$enumerator_size()},{$$s:u});if(!t($["$nil?"]()))return f(u,"sort_by",[],l.$to_proc()).$take($);var d,_;return u.$each.$$p=function(){var k=I.$destructure(arguments),A=n(l,k);if(d===void 0){d=k,_=A;return}A["$<=>"](_)<0&&(d=k,_=A)},u.$each(),d===void 0?w:d},-1),H(B,"$minmax",function v(){var $=v.$$p||w,l=this,u=w;v.$$p=null,$=t(u=$)?u:f(pe,"proc",[],function(Q,De){return Q==null&&(Q=w),De==null&&(De=w),Q["$<=>"](De)});var d=w,_=w,k=!0;return l.$each.$$p=function(){var A=I.$destructure(arguments);if(k)d=_=A,k=!1;else{var Q=$.$call(d,A);Q===w?pe.$raise(Se("ArgumentError"),"comparison failed"):Q>0&&(d=A);var De=$.$call(_,A);De===w?pe.$raise(Se("ArgumentError"),"comparison failed"):De<0&&(_=A)}},l.$each(),[d,_]}),H(B,"$minmax_by",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,!t($))return f(l,"enum_for",["minmax_by"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$enumerator_size()},{$$s:l});var u=w,d=w,_,k;return l.$each.$$p=function(){var A=I.$destructure(arguments),Q=n($,A);(_===void 0||Q["$<=>"](_)<0)&&(u=A,_=Q),(k===void 0||Q["$<=>"](k)>0)&&(d=A,k=Q)},l.$each(),[u,d]}),H(B,"$none?",function v($){try{var l=L("return"),u=v.$$p||w,d=this;return v.$$p=null,t($!==void 0)?f(d,"each",[],function(k){var A,Q,De=w;if(A=p(arguments),Q=A,De=P(Q),t(f($,"public_send",["==="].concat(h(De)))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(k){var A,Q;if(A=p(arguments),Q=A,t(e.yieldX(u,h(Q))))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(k){var A,Q,De=w;if(A=p(arguments),Q=A,De=I.$destructure(Q),t(De))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),!0}catch(_){if(_===l)return _.$v;throw _}},-1),H(B,"$one?",function v($){try{var l=L("return"),u=v.$$p||w,d=this,_=w;return v.$$p=null,_=0,t($!==void 0)?f(d,"each",[],function(A){var Q,De,rt=w;if(Q=p(arguments),De=Q,rt=P(De),t(f($,"public_send",["==="].concat(h(rt)))))if(_=se(_,1),t(re(_,1)))l.$throw(!1);else return w;else return w},{$$arity:-1,$$ret:l}):u!==w?f(d,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,!t(e.yieldX(u,h(De))))return w;if(_=se(_,1),t(re(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}):f(d,"each",[],function(A){var Q,De;if(Q=p(arguments),De=Q,!t(I.$destructure(De)))return w;if(_=se(_,1),t(re(_,1)))l.$throw(!1);else return w},{$$arity:-1,$$ret:l}),_["$=="](1)}catch(k){if(k===l)return k.$v;throw k}},-1),H(B,"$partition",function v(){var $=v.$$p||w,l=this;if(v.$$p=null,$===w)return f(l,"enum_for",["partition"],function _(){var k=_.$$s==null?this:_.$$s;return k.$enumerator_size()},{$$s:l});var u=[],d=[];return l.$each.$$p=function(){var _=I.$destructure(arguments),k=n($,_);t(k)?u.push(_):d.push(_)},l.$each(),[u,d]}),H(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=I.$destructure(arguments),_=n($,d);t(_)||u.push(d)},l.$each(),u}),H(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 k=_.$$s==null?this:_.$$s;return k.$enumerator_size()},{$$s:l});var u=[];l.$each.$$p=function(){u.push(arguments)},l.$each();for(var d=u.length-1;d>=0;d--)i($,u[d]);return u}),H(B,"$slice_before",function v($){var l=v.$$p||w,u=this;return v.$$p=null,t($===void 0&&l===w)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),f(Se("Enumerator"),"new",[],function d(_){var k=d.$$s==null?this:d.$$s;_==null&&(_=w);var A=[];l!==w?$===void 0?k.$each.$$p=function(){var Q=I.$destructure(arguments),De=n(l,Q);t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)}:k.$each.$$p=function(){var Q=I.$destructure(arguments),De=l(Q,$.$dup());t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)}:k.$each.$$p=function(){var Q=I.$destructure(arguments),De=$["$==="](Q);t(De)&&A.length>0&&(_["$<<"](A),A=[]),A.push(Q)},k.$each(),A.length>0&&_["$<<"](A)},{$$s:u})},-1),H(B,"$slice_after",function v($){var l=v.$$p||w,u=this;return v.$$p=null,t($===void 0&&l===w)&&pe.$raise(Se("ArgumentError"),"both pattern and block are given"),t($!==void 0&&l!==w||arguments.length>1)&&pe.$raise(Se("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t($!==void 0)&&(l=f(pe,"proc",[],function(_){return _==null&&(_=w),$["$==="](_)})),f(Se("Enumerator"),"new",[],function d(_){var k=d.$$s==null?this:d.$$s;_==null&&(_=w);var A;k.$each.$$p=function(){var Q=I.$destructure(arguments),De=n(l,Q);A==null&&(A=[]),t(De)?(A.push(Q),_.$yield(A),A=null):A.push(Q)},k.$each(),A!=null&&_.$yield(A)},{$$s:u})},-1),H(B,"$slice_when",function v(){var $=v.$$p||w,l=this;return v.$$p=null,$===w&&pe.$raise(Se("ArgumentError"),"wrong number of arguments (0 for 1)"),f(Se("Enumerator"),"new",[],function u(d){var _=u.$$s==null?this:u.$$s;d==null&&(d=w);var k=w,A=w;_.$each_cons.$$p=function(){var Q=I.$destructure(arguments),De=Q[0],rt=Q[1],ft=i($,[De,rt]);A=rt,k===w&&(k=[]),t(ft)?(k.push(De),d.$yield(k),k=[]):k.push(De)},_.$each_cons(2),k!==w&&(k.push(A),d.$yield(k))},{$$s:l})}),H(B,"$sort",function v(){var $=v.$$p||w,l=this,u=w;return v.$$p=null,u=l.$to_a(),$===w&&($=Ae(function(_,k){return _==null&&(_=w),k==null&&(k=w),_["$<=>"](k)})),f(u,"sort",[],$.$to_proc())}),H(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 _=I.$destructure(arguments),[e.yield1($,_),_]}),f(u,"sort!",[],function(_,k){return _==null&&(_=w),k==null&&(k=w),_[0]["$<=>"](k[0])}),f(u,"map!",[],function(_){return _==null&&(_=w),_[1]}))}),H(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(A){var Q,De,rt=w,ft=w,_t=w;return Q=p(arguments),De=Q,rt=l!==w?e.yieldX(l,h(De)):I.$destructure(De),O([Se(Se("Float"),"INFINITY"),Se(Se("Float"),"INFINITY")["$-@"]()]["$include?"](rt))&&t(rt["$respond_to?"]("-"))?(ft=me(rt,_),_t=se(d,ft),_=me(me(_t,d),ft),d=_t):d=se(d,rt)},-1),d},-1),H(B,"$take",function($){var l=this;return l.$first($)}),H(B,"$take_while",function v(){try{var $=L("return"),l=v.$$p||w,u=this,d=w;return v.$$p=null,t(l)?(d=[],f(u,"each",[],function(k){var A,Q,De=w;return A=p(arguments),Q=A,De=I.$destructure(Q),t(e.yield1(l,De))||$.$throw(d),d.push(De)},{$$arity:-1,$$ret:$})):u.$enum_for("take_while")}catch(_){if(_===$)return _.$v;throw _}}),H(B,"$uniq",function v(){var $=v.$$p||w,l=this,u=w;return v.$$p=null,u=fe([],{}),f(l,"each",[],function(_){var k,A,Q,De=w,rt=w;return k=p(arguments),A=k,De=I.$destructure(A),rt=$!==w?e.yield1($,De):De,t(u["$key?"](rt))?w:(Q=[rt,De],f(u,"[]=",Q),Q[Q.length-1])},-1),u.$values()}),H(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(_,k){var A;return _==null&&(_=w),k==null&&(k=w),A=[_,se($.$fetch(_,0),k)],f($,"[]=",A),A[A.length-1]}),$):u},-1),H(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 k=fe([],{});return _.$each.$$p=function(){var A=I.$destructure(arguments),Q=I["$coerce_to?"](A,Se("Array"),"to_ary"),De,rt;Q.$$is_array||pe.$raise(Se("TypeError"),"wrong element type "+Q.$class()+" (expected array)"),Q.length!==2&&pe.$raise(Se("ArgumentError"),"wrong array length (expected 2, was "+Q.$length()+")"),De=Q[0],rt=Q[1],e.hash_put(k,De,rt)},_.$each.apply(_,d),k},-1),H(B,"$to_set",function v($,l){var u=v.$$p||w,d,_,k,A=this;return v.$$p=null,d=p(arguments),d.length>0&&(_=d.shift()),_==null&&(_=ue("Set")),k=d,f(_,"new",[A].concat(h(k)),u.$to_proc())},-1),H(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,I=e.rb_ge,L=e.rb_plus,H=e.rb_minus,pe=e.eqeqeq,be=e.not,re=e.rb_times,W=e.rb_divide,X=e.alias,ge=[],se=e.nil,me=e.$$$;return e.add_stubs("is_a?,==,raise,respond_to?,class,attr_reader,begin,end,exclude_end?,>,step,<,<=,>=,-@,_lesser_than_end?,<<,+,-,===,%,_greater_than_begin?,reverse,!,include?,*,to_i,abs,/,hash,inspect"),function(J,xe,fe){var Ae=t(J,xe,"Enumerator"),O=[Ae].concat(fe);return function(Ee,ce,w){var Se=t(Ee,ce,"ArithmeticSequence"),N=[Se].concat(w),ne=e.$r(N),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 Le=1/0;return c(Se,"$initialize",function(P,v,$){var l,u=this,d=se;return $==null&&($="step"),u.creation_method=$,r(P["$is_a?"](me("Array")))?(l=[].concat(n(P)),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=[P,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 P=this;return P.range.$begin()}),c(Se,"$end",function(){var P=this;return P.range.$end()}),c(Se,"$exclude_end?",function(){var P=this;return P.range["$exclude_end?"]()}),c(Se,"$_lesser_than_end?",function(P){var v=this,$=se,l=se;return $=r(l=v.$end())?l:Le,r(f(v.$step(),0))?r(v["$exclude_end?"]())?p(P,$):h(P,$):r(v["$exclude_end?"]())?f(P,$):I(P,$)}),c(Se,"$_greater_than_begin?",function(P){var v=this,$=se,l=se;return $=r(l=v.$begin())?l:Le["$-@"](),r(f(v.$step(),0))?f(P,$):p(P,$)}),c(Se,"$first",function(P){var v=this,$=se,l=se,u=se;if($=r(l=v.$begin())?l:Le["$-@"](),!r(P))return r(v["$_lesser_than_end?"]($))?$:se;for(u=[];r(r(l=v["$_lesser_than_end?"]($))?f(P,0):l);)u["$<<"]($),$=L($,v.$step()),P=H(P,1);return u},-1),c(Se,"$each",function ue(){var P=ue.$$p||se,v=this,$=se,l=se;if(ue.$$p=null,P===se)return v;for(pe(se,$=v.$begin())&&s.$raise(ne("TypeError"),"nil can't be coerced into Integer"),l=r($=v.$begin())?$:Le["$-@"]();r(v["$_lesser_than_end?"](l));)e.yield1(P,l),l=L(l,v.$step());return v}),c(Se,"$last",function(P){var v=this,$=se,l=se,u=se;if(pe(Le,$=v.$end())||pe(Le["$-@"](),$)?s.$raise(me("FloatDomainError"),v.$end()):pe(se,$)&&s.$raise(me("RangeError"),"cannot get the last element of endless arithmetic sequence"),l=H(v.$end(),H(v.$end(),v.$begin())["$%"](v.$step())),r(v["$_lesser_than_end?"](l))||(l=H(l,v.$step())),!r(P))return r(v["$_greater_than_begin?"](l))?l:se;for(u=[];r(r($=v["$_greater_than_begin?"](l))?f(P,0):$);)u["$<<"](l),l=H(l,v.$step()),P=H(P,1);return u.$reverse()},-1),c(Se,"$size",function(){var P=this,v=se,$=se;return v=r(f(P.$step(),0))?1:-1,be(P["$_lesser_than_end?"](P.$begin()))?0:r([Le["$-@"](),Le]["$include?"](P.$step()))?1:r([re(Le["$-@"](),v),se]["$include?"](P.$begin()))||r([re(Le,v),se]["$include?"](P.$end()))?Le:($=H(P.$end(),H(P.$end(),P.$begin())["$%"](P.$step())),r(P["$_lesser_than_end?"]($))||($=H($,P.$step())),L(W(H($,P.$begin()),P.$step()).$abs().$to_i(),1))}),c(Se,"$==",function(P){var v=this,$=se,l=se,u=se,d=se;return r($=r(l=r(u=r(d=v.$class()["$=="](P.$class()))?v.$begin()["$=="](P.$begin()):d)?v.$end()["$=="](P.$end()):u)?v.$step()["$=="](P.$step()):l)?v["$exclude_end?"]()["$=="](P["$exclude_end?"]()):$}),c(Se,"$hash",function(){var P=this;return[P.$begin(),P.$end(),P.$step(),P["$exclude_end?"]()].$hash()}),c(Se,"$inspect",function(){var P=this,v=se;return r(P.receiver_num)?(v=r(P.step_arg2)?"("+P.topfx+P.step_arg1.$inspect()+", "+P.bypfx+P.step_arg2.$inspect()+")":r(P.step_arg1)?"("+P.topfx+P.step_arg1.$inspect()+")":se,"("+P.receiver_num.$inspect()+"."+P.creation_method+v+")"):(v=r(P.skipped_arg)?se:"("+P.step+")","(("+P.range.$inspect()+")."+P.creation_method+v+")")}),X(Se,"===","=="),X(Se,"eql?","==")}(Ae,Ae,O)}("::",null,ge)};Opal.modules["corelib/enumerator/chain"]=function(e){var t=e.deny_frozen_access,r=e.klass,n=e.slice,i=e.def,s=e.send,c=e.to_a,f=e.truthy,p=e.rb_plus,h=e.thrower,I=e.nil,L=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(H,pe){var be=r(H,pe,"Enumerator");return function(re,W){var X=r(re,W,"Chain"),ge=X.$$prototype;return ge.enums=ge.iterated=I,i(X,"$initialize",function(me){var J,xe,fe=this;return J=n(arguments),xe=J,t(fe),fe.enums=xe,fe.iterated=[],fe.object=fe},-1),i(X,"$each",function se(me){var J=se.$$p||I,xe,fe,Ae=this;return se.$$p=null,xe=n(arguments),fe=xe,J===I?s(Ae,"to_enum",["each"].concat(c(fe)),function O(){var Ee=O.$$s==null?this:O.$$s;return Ee.$size()},{$$s:Ae}):(s(Ae.enums,"each",[],function O(Ee){var ce=O.$$s==null?this:O.$$s;return ce.iterated==null&&(ce.iterated=I),Ee==null&&(Ee=I),ce.iterated["$<<"](Ee),s(Ee,"each",c(fe),J.$to_proc())},{$$s:Ae}),Ae)},-1),i(X,"$size",function(me){try{var J=h("return"),xe,fe,Ae=this,O=I;return xe=n(arguments),fe=xe,O=0,s(Ae.enums,"each",[],function(ce){var w=I;return ce==null&&(ce=I),w=s(ce,"size",c(fe)),f([I,L(L("Float"),"INFINITY")]["$include?"](w))&&J.$throw(w),O=p(O,w)},{$$ret:J}),O}catch(Ee){if(Ee===J)return Ee.$v;throw Ee}},-1),i(X,"$rewind",function(){var me=this;return s(me.iterated,"reverse_each",[],function(xe){return xe==null&&(xe=I),f(xe["$respond_to?"]("rewind"))?xe.$rewind():I}),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,I=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(L,H,pe){var be=r(L,H,"Enumerator"),re=[be].concat(pe);return function(W,X,ge){var se=r(W,X,"Generator"),me=[se].concat(ge),J=e.$r(me),xe=se.$$prototype;return xe.block=h,se.$include(I("Enumerable")),s(se,"$initialize",function fe(){var Ae=fe.$$p||h,O=this;return fe.$$p=null,t(O),n(Ae)||i.$raise(I("LocalJumpError"),"no block given"),O.block=Ae}),s(se,"$each",function fe(Ae){var O=fe.$$p||h,Ee,ce,w=this,Se=h;fe.$$p=null,Ee=c(arguments),ce=Ee,Se=f(J("Yielder"),"new",[],O.$to_proc());try{ce.unshift(Se),e.yieldX(w.block,ce)}catch(N){if(N&&N.$thrower_type=="breaker")return N.$v;throw N}return w},-1)}(re[0],null,re)}(p[0],null,p)};Opal.modules["corelib/enumerator/lazy"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,c=e.klass,f=e.slice,p=e.send2,h=e.find_super,I=e.to_a,L=e.defs,H=e.Kernel,pe=e.send,be=e.def,re=e.return_self,W=e.Opal,X=e.rb_lt,ge=e.eqeqeq,se=e.rb_plus,me=e.alias,J=[],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,O,Ee){var ce=c(Ae,O,"Enumerator"),w=[ce].concat(Ee);return function(Se,N,ne){var B=c(Se,N,"Lazy"),Le=[B].concat(ne),ue=e.$r(Le),P=B.$$prototype;return P.enumerator=xe,c(B,fe("Exception"),"StopLazyError"),L(B,"$for",function v($,l){var u,d,_=v.$$p||xe,k=this,A=xe;return v.$$p=null,u=f(arguments,1),d=u,A=p(k,h(k,"for",v,!1,!0),"for",[$].concat(I(d)),_),A.enumerator=$,A},-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&&H.$raise(fe("ArgumentError"),"tried to call lazy new without a block"),d.enumerator=$,p(d,h(d,"initialize",v,!1,!0),"initialize",[l],function(k,A){var Q,De;k==null&&(k=xe),Q=f(arguments,1),De=Q;try{return pe($,"each",I(De),function(ft){var _t,At;_t=f(arguments),At=_t,At.unshift(k),i(u,At)},-1)}catch(rt){if(e.rescue(rt,[ue("StopLazyError")]))try{return xe}finally{e.pop_exception()}else throw rt}},-2)},-2),be(B,"$lazy",re),be(B,"$collect",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),pe(ue("Lazy"),"new",[l,l.$enumerator_size()],function(d,_){var k,A;d==null&&(d=xe),k=f(arguments,1),A=k;var Q=i($,A);d.$yield(Q)},-2)}),be(B,"$collect_concat",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy map without a block"),pe(ue("Lazy"),"new",[l,xe],function(d,_){var k,A;d==null&&(d=xe),k=f(arguments,1),A=k;var Q=i($,A);if(Q["$respond_to?"]("force")&&Q["$respond_to?"]("each"))pe(Q,"each",[],function(ft){return ft==null&&(ft=xe),d.$yield(ft)});else{var De=W.$try_convert(Q,fe("Array"),"to_ary");De===xe?d.$yield(Q):pe(Q,"each",[],function(ft){return ft==null&&(ft=xe),d.$yield(ft)})}},-2)}),be(B,"$drop",function($){var l=this,u=xe,d=xe,_=xe;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&H.$raise(fe("ArgumentError"),"attempt to drop negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,pe(ue("Lazy"),"new",[l,d],function(A,Q){var De,rt;return A==null&&(A=xe),De=f(arguments,1),rt=De,t(X(_,$))?_=se(_,1):pe(A,"yield",I(rt))},-2)}),be(B,"$drop_while",function v(){var $=v.$$p||xe,l=this,u=xe;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy drop_while without a block"),u=!0,pe(ue("Lazy"),"new",[l,xe],function(_,k){var A,Q;if(_==null&&(_=xe),A=f(arguments,1),Q=A,t(u)){var De=i($,Q);t(De)||(u=!1,pe(_,"yield",I(Q)))}else return pe(_,"yield",I(Q))},-2)}),be(B,"$enum_for",function v($,l){var u=v.$$p||xe,d,_,k,A=this;return v.$$p=null,d=f(arguments),d.length>0&&(_=d.shift()),_==null&&(_="each"),k=d,pe(A.$class(),"for",[A,_].concat(I(k)),u.$to_proc())},-1),be(B,"$find_all",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy select without a block"),pe(ue("Lazy"),"new",[l,xe],function(d,_){var k,A;d==null&&(d=xe),k=f(arguments,1),A=k;var Q=i($,A);t(Q)&&pe(d,"yield",I(A))},-2)}),be(B,"$grep",function v($){var l=v.$$p||xe,u=this;return v.$$p=null,t(l)?pe(ue("Lazy"),"new",[u,xe],function(_,k){var A,Q;_==null&&(_=xe),A=f(arguments,1),Q=A;var De=W.$destructure(Q),rt=$["$==="](De);t(rt)&&(rt=n(l,De),_.$yield(n(l,De)))},-2):pe(ue("Lazy"),"new",[u,xe],function(_,k){var A,Q;_==null&&(_=xe),A=f(arguments,1),Q=A;var De=W.$destructure(Q),rt=$["$==="](De);t(rt)&&_.$yield(De)},-2)}),be(B,"$reject",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy reject without a block"),pe(ue("Lazy"),"new",[l,xe],function(d,_){var k,A;d==null&&(d=xe),k=f(arguments,1),A=k;var Q=i($,A);t(Q)||pe(d,"yield",I(A))},-2)}),be(B,"$take",function($){var l=this,u=xe,d=xe,_=xe;return $=r($,fe("Integer"),"to_int"),t(X($,0))&&H.$raise(fe("ArgumentError"),"attempt to take negative size"),u=l.$enumerator_size(),d=ge(fe("Integer"),u)&&t(X($,u))?$:u,_=0,pe(ue("Lazy"),"new",[l,d],function(A,Q){var De,rt;return A==null&&(A=xe),De=f(arguments,1),rt=De,t(X(_,$))?(pe(A,"yield",I(rt)),_=se(_,1)):H.$raise(ue("StopLazyError"))},-2)}),be(B,"$take_while",function v(){var $=v.$$p||xe,l=this;return v.$$p=null,t($)||H.$raise(fe("ArgumentError"),"tried to call lazy take_while without a block"),pe(ue("Lazy"),"new",[l,xe],function(d,_){var k,A;d==null&&(d=xe),k=f(arguments,1),A=k;var Q=i($,A);t(Q)?pe(d,"yield",I(A)):H.$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,J)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,c=[],f=e.nil;return e.add_stubs("yield,proc"),function(p,h,I){var L=t(p,h,"Enumerator"),H=[L].concat(I);return function(pe,be){var re=t(pe,be,"Yielder"),W=re.$$prototype;return W.block=f,r(re,"$initialize",function X(){var ge=X.$$p||f,se=this;return X.$$p=null,se.block=ge,se}),r(re,"$yield",function(ge){var se,me,J=this;se=n(arguments),me=se;var xe=e.yieldX(J.block,me);if(xe&&xe.$thrower_type=="break")throw xe;return xe},-1),r(re,"$<<",function(ge){var se=this;return se.$yield(ge),se}),r(re,"$to_proc",function(){var ge=this;return i(ge,"proc",[],function se(me){var J,xe,fe=se.$$s==null?this:se.$$s;return J=n(arguments),xe=J,i(fe,"yield",s(xe))},{$$arity:-1,$$s:ge})})}(H[0],null)}(c[0],null,c)};Opal.modules["corelib/enumerator"]=function(e){var t=e.slice,r=e.coerce_to,n=e.deny_frozen_access,i=e.klass,s=e.defs,c=e.truthy,f=e.send,p=e.not,h=e.def,I=e.rb_plus,L=e.to_a,H=e.Opal,pe=e.send2,be=e.find_super,re=e.rb_ge,W=e.Kernel,X=e.rb_le,ge=e.alias,se=e.top,me=[],J=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,O){var Ee=i(fe,Ae,"Enumerator"),ce=[Ee].concat(O),w=e.$r(ce),Se=Ee.$$prototype;return Se.size=Se.args=Se.object=Se.method=Se.values=Se.cursor=J,Ee.$include(xe("Enumerable")),Ee.$$prototype.$$is_enumerator=!0,s(Ee,"$for",function N(ne,B,Le){var ue=N.$$p||J,P,v,$,l=this;N.$$p=null,P=t(arguments,1),P.length>0&&(v=P.shift()),v==null&&(v="each"),$=P;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 N(ne){var B=N.$$p||J,Le=this;return N.$$p=null,t(arguments),n(Le),Le.cursor=0,c(B)?(Le.object=f(w("Generator"),"new",[],B.$to_proc()),Le.method="each",Le.args=[],Le.size=arguments[0]||J,c(Le.size)&&p(Le.size["$respond_to?"]("call"))?Le.size=r(Le.size,xe("Integer"),"to_int"):J):(Le.object=arguments[0],Le.method=arguments[1]||"each",Le.args=t(arguments,2),Le.size=J)},-1),h(Ee,"$each",function N(ne){var B=N.$$p||J,Le,ue,P=this;return N.$$p=null,Le=t(arguments),ue=Le,c(B["$nil?"]())&&c(ue["$empty?"]())?P:(ue=I(P.args,ue),c(B["$nil?"]())?f(P.$class(),"new",[P.object,P.method].concat(L(ue))):f(P.object,"__send__",[P.method].concat(L(ue)),B.$to_proc()))},-1),h(Ee,"$size",function(){var ne=this;return c(ne.size["$respond_to?"]("call"))?f(ne.size,"call",L(ne.args)):ne.size}),h(Ee,"$with_index",function N(ne){var B=N.$$p||J,Le=this;if(N.$$p=null,ne==null&&(ne=0),ne=c(ne)?r(ne,xe("Integer"),"to_int"):0,!c(B))return f(Le,"enum_for",["with_index",ne],function P(){var v=P.$$s==null?this:P.$$s;return v.$size()},{$$s:Le});var ue=ne;return Le.$each.$$p=function(){var P=H.$destructure(arguments),v=B(P,ue);return ue++,v},Le.$each()},-1),h(Ee,"$each_with_index",function N(){var ne=N.$$p||J,B=this;return N.$$p=null,ne===J?f(B,"enum_for",["each_with_index"],function Le(){var ue=Le.$$s==null?this:Le.$$s;return ue.$size()},{$$s:B}):(pe(B,be(B,"each_with_index",N,!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=J;return ne.values=c(B=ne.values)?B:f(ne,"map",[],function(ue){var P,v;return P=t(arguments),v=P,v},-1),c(re(ne.cursor,ne.values.$length()))&&W.$raise(xe("StopIteration"),"iteration reached an end"),ne.values["$[]"](ne.cursor)}),h(Ee,"$peek",function(){var ne=this,B=J;return B=ne.$peek_values(),c(X(B.$length(),1))?B["$[]"](0):B}),h(Ee,"$next_values",function(){var ne=this,B=J;return B=ne.$peek_values(),ne.cursor=I(ne.cursor,1),B}),h(Ee,"$next",function(){var ne=this,B=J;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=J;return B="#<"+ne.$class()+": "+ne.object.$inspect()+":"+ne.method,c(ne.args["$any?"]())&&(B=I(B,"("+ne.args.$inspect()["$[]"](xe("Range").$new(1,-2))+")")),I(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,I=e.eqeq,L=e.rb_divide,H=e.return_val,pe=e.Opal,be=e.slice,re=e.extract_kwargs,W=e.ensure_kwargs,X=e.not,ge=e.send,se=e.rb_ge,me=e.rb_le,J=e.rb_plus,xe=e.rb_gt,fe=e.alias,Ae=e.top,O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,abs,arg,coerce_to!,round,<=>,compare,is_a?,!,new,enum_for,to_proc,negative?,>=,<=,+,to_i,truncate,>,angle,conj,imag,rect"),Ae.$require("corelib/comparable"),function(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 Le,ue,P=this,v=O,$=O;if(r(B["$respond_to?"]("coerce")))return ue=B.$coerce(P),Le=s(ue),v=Le[0]==null?O:Le[0],$=Le[1]==null?O:Le[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 "+P.$class()+" with "+B.$class()+" failed");default:return O}}),i(Se,"$<=>",function(ne){var B=this;return r(B["$equal?"](ne))?0:O}),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 I(ne,0)&&n.$raise(Ee("ZeroDivisionError"),"divided by o"),L(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 L(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",H(0)),i(Se,"$integer?",H(!1)),i(Se,"$nonzero?",function(){var ne=this;return r(ne["$zero?"]())?O: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 L(pe["$coerce_to!"](B,Ee("Rational"),"to_r"),ne)}),i(Se,"$real",c),i(Se,"$real?",H(!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 N(ne,B,Le){var ue=N.$$p||O,P,v,$,l,u,d,_=this,k=O;N.$$p=null,P=be(arguments),v=re(P),v=W(v),P.length>0&&($=P.shift()),P.length>0&&(l=P.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&&($=O);function A(){l===O&&n.$raise(Ee("TypeError"),"step must be numeric"),l!=null&&l["$=="](0)&&n.$raise(Ee("ArgumentError"),"step can't be 0"),(l===O||l==null)&&(l=1);var qt=l["$<=>"](0);qt===O&&n.$raise(Ee("ArgumentError"),"0 can't be coerced into "+l.$class()),($===O||$==null)&&($=qt>0?Ee(Ee("Float"),"INFINITY"):Ee(Ee("Float"),"INFINITY")["$-@"]()),pe.$compare(_,$)}function Q(){if(l>0&&_>$||l<0&&_<$)return 0;if(l===1/0||l===-1/0)return 1;var qt=Math.abs,It=Math.floor,nt=(qt(_)+qt($)+qt($-_))/qt(l)*Ee(Ee("Float"),"EPSILON");return nt===1/0||nt===-1/0?0:(nt>.5&&(nt=.5),It(($-_)/l+nt)+1)}function De(){if(A(),l===0)return 1/0;if(l%1!==0)return Q();if(l>0&&_>$||l<0&&_<$)return 0;var qt=Math.ceil,It=Math.abs,nt=It(_-$)+1,Re=It(l);return qt(nt/Re)}if(ue===O)return(X($)||r($["$is_a?"](Ee("Numeric"))))&&(X(l)||r(l["$is_a?"](Ee("Numeric"))))?Ee(Ee("Enumerator"),"ArithmeticSequence").$new([$,l,r(u)?"to: ":O,r(d)?"by: ":O],_):ge(_,"enum_for",["step",$,l],De.$to_proc());A();var rt=l["$negative?"](),ft=l["$=="](0)||$===1/0&&!rt||$===-1/0&&rt;if(_.$$is_number&&l.$$is_number&&$.$$is_number)if(_%1===0&&(ft||$%1===0)&&l%1===0){var _t=_;if(ft)for(;;_t+=l)ue(_t);else if(rt)for(;_t>=$;_t+=l)ue(_t);else for(;_t<=$;_t+=l)ue(_t);return _}else{var At=_.$to_f().valueOf();l=l.$to_f().valueOf(),$=$.$to_f().valueOf();var bt=Q();if(!isFinite(l))bt!==0&&ue(At);else if(l===0)for(;;)ue(At);else for(var Mt=0;Mt<bt;Mt++){var Et=Mt*l+_;(l>=0?$<Et:$>Et)&&(Et=$),ue(Et)}return _}for(k=_;r(rt?se(k,$):me(k,$));)e.yield1(ue,k),k=J(k,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=W(ne),ne.$$smap.freeze,B},-1),i(Se,"$finite?",H(!0)),i(Se,"$infinite?",H(O)),fe(Se,"arg","angle"),fe(Se,"conjugate","conj"),fe(Se,"imaginary","imag"),fe(Se,"magnitude","abs"),fe(Se,"modulo","%"),fe(Se,"phase","arg"),fe(Se,"rectangular","rect")}("::",null)};Opal.modules["corelib/array"]=function(e){var t=e.truthy,r=e.falsy,n=e.hash_ids,i=e.yield1,s=e.hash_get,c=e.hash_put,f=e.hash_delete,p=e.coerce_to,h=e.respond_to,I=e.deny_frozen_access,L=e.freeze,H=e.klass,pe=e.slice,be=e.defs,re=e.Kernel,W=e.def,X=e.Opal,ge=e.eqeqeq,se=e.hash2,me=e.send2,J=e.find_super,xe=e.send,fe=e.rb_gt,Ae=e.rb_times,O=e.eqeq,Ee=e.rb_minus,ce=e.to_a,w=e.to_ary,Se=e.gvars,N=e.rb_ge,ne=e.assign_ivar,B=e.rb_lt,Le=e.return_self,ue=e.neqeq,P=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,_,k){var A=H(d,_,"Array"),Q=[A].concat(k),De=e.$r(Q);A.$include(u("Enumerable")),e.prop(A.$$prototype,"$$is_array",!0);function rt(nt){for(var Re=nt[0],je=1,Ke=nt.length;je<Ke;je++)nt[je-1]=nt[je];return nt.pop(),Re}function ft(nt,Re){return Re.$$name===e.Array?nt:Re.$allocate().$replace(nt.$to_a())}function _t(nt,Re,je){for(var Ke,x=null,R=new Array(nt.length),ve=0,Fe=0,Ze=nt.length;ve<Ze;ve++){if(!x)try{Ke=i(je,nt[ve])}catch(ct){x=ct}(x||Re(Ke))&&(R[Fe]=nt[ve],Fe+=1)}if(Fe!==ve&&(nt.splice.apply(nt,[0,R.length].concat(R)),nt.splice(Fe,R.length)),x)throw x}be(A,"$[]",function(Re){var je,Ke,x=this;return je=pe(arguments),Ke=je,ft(Ke,x)},-1),W(A,"$initialize",function nt(Re,je){var Ke=nt.$$p||l,x=this;if(nt.$$p=null,Re==null&&(Re=l),je==null&&(je=l),I(x),je!==l&&Ke!==l&&re.$warn("warning: block supersedes default value argument"),Re>u(u("Integer"),"MAX")&&re.$raise(u("ArgumentError"),"array size too big"),arguments.length>2&&re.$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(Re.$$is_array)return x.$replace(Re.$to_a()),x;if(Re["$respond_to?"]("to_ary"))return x.$replace(Re.$to_ary()),x}Re=p(Re,u("Integer"),"to_int"),Re<0&&re.$raise(u("ArgumentError"),"negative array size"),x.splice(0,x.length);var R,ve;if(Ke===l)for(R=0;R<Re;R++)x.push(je);else for(R=0,ve;R<Re;R++)ve=Ke(R),x[R]=ve;return x},-1),be(A,"$try_convert",function(Re){return X["$coerce_to?"](Re,u("Array"),"to_ary")}),W(A,"$&",function(Re){var je=this;Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a();var Ke=[],x=se([],{}),R,ve,Fe;for(R=0,ve=Re.length;R<ve;R++)c(x,Re[R],!0);for(R=0,ve=je.length;R<ve;R++)Fe=je[R],f(x,Fe)!==void 0&&Ke.push(Fe);return Ke}),W(A,"$|",function(Re){var je=this;Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a();var Ke=se([],{}),x,R;for(x=0,R=je.length;x<R;x++)c(Ke,je[x],!0);for(x=0,R=Re.length;x<R;x++)c(Ke,Re[x],!0);return Ke.$keys()}),W(A,"$*",function(Re){var je=this;if(t(Re["$respond_to?"]("to_str")))return je.$join(Re.$to_str());Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&re.$raise(u("ArgumentError"),"negative argument");for(var Ke=[],x=je.$to_a(),R=0;R<Re;R++)Ke=Ke.concat(x);return Ke}),W(A,"$+",function(Re){var je=this;return Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),je.concat(Re)}),W(A,"$-",function(Re){var je=this;if(Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),t(je.length===0))return[];if(t(Re.length===0))return je.slice();var Ke=[],x=se([],{}),R,ve,Fe;for(R=0,ve=Re.length;R<ve;R++)c(x,Re[R],!0);for(R=0,ve=je.length;R<ve;R++)Fe=je[R],s(x,Fe)===void 0&&Ke.push(Fe);return Ke}),W(A,"$<<",function(Re){var je=this;return I(je),je.push(Re),je}),W(A,"$<=>",function(Re){var je=this;if(ge(u("Array"),Re))Re=Re.$to_a();else if(t(Re["$respond_to?"]("to_ary")))Re=Re.$to_ary().$to_a();else return l;if(je.$hash()===Re.$hash())return 0;for(var Ke=Math.min(je.length,Re.length),x=0;x<Ke;x++){var R=je[x]["$<=>"](Re[x]);if(R!==0)return R}return je.length["$<=>"](Re.length)}),W(A,"$==",function(Re){var je=this,Ke={};function x(R,ve){var Fe,Ze,ct,a;if(R===ve)return!0;if(!ve.$$is_array)return h(ve,"$to_ary")?ve["$=="](R):!1;if(R.$$constructor!==Array&&(R=R.$to_a()),ve.$$constructor!==Array&&(ve=ve.$to_a()),R.length!==ve.length)return!1;for(Ke[R.$object_id()]=!0,Fe=0,Ze=R.length;Fe<Ze;Fe++)if(ct=R[Fe],a=ve[Fe],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ke.hasOwnProperty(ct.$object_id())&&!x(ct,a))return!1}else if(!ct["$=="](a))return!1;return!0}return x(je,Re)});function At(nt,Re){var je=nt.length,Ke,x,R,ve;return Ke=Re.excl,x=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),R=Re.end===l?-1:p(Re.end,e.Integer,"to_int"),x<0&&(x+=je,x<0)||(Re.excl_rev&&Re.begin!==l&&(x+=1),x>je)?l:R<0&&(R+=je,R<0)?[]:((!Ke||Re.end===l)&&(R+=1),ve=nt.slice(x,R),ve)}function bt(nt,Re){var je,Ke=[],x=0,R;for(Re.step<0?(R={begin:Re.range.end,end:Re.range.begin,excl:!1,excl_rev:Re.range.excl},je=At(nt,R).$reverse()):je=At(nt,Re.range);x<je.length;)Ke.push(je[x]),x+=Math.abs(Re.step);return Ke}function Mt(nt,Re,je){var Ke=nt.length,x;return Re=p(Re,e.Integer,"to_int"),Re<0&&(Re+=Ke,Re<0)?l:je===void 0?Re>=Ke||Re<0?l:nt[Re]:(je=p(je,e.Integer,"to_int"),je<0||Re>Ke||Re<0?l:(x=nt.slice(Re,Re+je),x))}W(A,"$[]",function(Re,je){var Ke=this;return Re.$$is_range?At(Ke,Re):Re.$$is_arithmetic_seq?bt(Ke,Re):Mt(Ke,Re,je)},-2),W(A,"$[]=",function(Re,je,Ke){var x=this,R=l,ve=l;I(x),R=l;var Fe,Ze=x.length;if(Re.$$is_range){je.$$is_array?R=je.$to_a():je["$respond_to?"]("to_ary")?R=je.$to_ary().$to_a():R=[je];var ct=Re.excl,a=Re.begin===l?0:p(Re.begin,e.Integer,"to_int"),ae=Re.end===l?-1:p(Re.end,e.Integer,"to_int");if(a<0&&(a+=Ze,a<0&&re.$raise(u("RangeError"),""+Re.$inspect()+" out of range")),ae<0&&(ae+=Ze),(!ct||Re.end===l)&&(ae+=1),a>Ze)for(Fe=Ze;Fe<a;Fe++)x[Fe]=l;return ae<0?x.splice.apply(x,[a,0].concat(R)):x.splice.apply(x,[a,ae-a].concat(R)),je}else{Ke===void 0?ve=1:(ve=je,je=Ke,je.$$is_array?R=je.$to_a():je["$respond_to?"]("to_ary")?R=je.$to_ary().$to_a():R=[je]);var te;if(Re=p(Re,u("Integer"),"to_int"),ve=p(ve,u("Integer"),"to_int"),Re<0&&(te=Re,Re+=Ze,Re<0&&re.$raise(u("IndexError"),"index "+te+" too small for array; minimum "+-x.length)),ve<0&&re.$raise(u("IndexError"),"negative length ("+ve+")"),Re>Ze)for(Fe=Ze;Fe<Re;Fe++)x[Fe]=l;return Ke===void 0?x[Re]=je:x.splice.apply(x,[Re,ve].concat(R)),je}},-3),W(A,"$any?",function nt(Re){var je=nt.$$p||l,Ke=this;return nt.$$p=null,Ke.length===0?!1:me(Ke,J(Ke,"any?",nt,!1,!0),"any?",[Re],je)},-1),W(A,"$assoc",function(Re){for(var je=this,Ke=0,x=je.length,R;Ke<x;Ke++)if(R=je[Ke],R.length&&R[0]["$=="](Re))return R;return l}),W(A,"$at",function(Re){var je=this;return Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=je.length),Re<0||Re>=je.length?l:je[Re]}),W(A,"$bsearch_index",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return je.$enum_for("bsearch_index");for(var Ke=0,x=je.length,R,ve,Fe,Ze=!1,ct=l;Ke<x;){if(R=Ke+Math.floor((x-Ke)/2),ve=je[R],Fe=i(Re,ve),Fe===!0)ct=R,Ze=!0;else if(Fe===!1||Fe===l)Ze=!1;else if(Fe.$$is_number){if(Fe===0)return R;Ze=Fe<0}else re.$raise(u("TypeError"),"wrong argument type "+Fe.$class()+" (must be numeric, true, false or nil)");Ze?x=R:Ke=R+1}return ct}),W(A,"$bsearch",function nt(){var Re=nt.$$p||l,je=this,Ke=l;return nt.$$p=null,Re===l?je.$enum_for("bsearch"):(Ke=xe(je,"bsearch_index",[],Re.$to_proc()),Ke!=null&&Ke.$$is_number?je[Ke]:Ke)}),W(A,"$cycle",function nt(Re){var je=nt.$$p||l,Ke=this;if(nt.$$p=null,Re==null&&(Re=l),je===l)return xe(Ke,"enum_for",["cycle",Re],function ve(){var Fe=ve.$$s==null?this:ve.$$s;return t(Re["$nil?"]())?u(u("Float"),"INFINITY"):(Re=X["$coerce_to!"](Re,u("Integer"),"to_int"),t(fe(Re,0))?Ae(Fe.$enumerator_size(),Re):0)},{$$s:Ke});if(t(Ke["$empty?"]())||O(Re,0))return l;var x,R;if(Re===l)for(;;)for(x=0,R=Ke.length;x<R;x++)i(je,Ke[x]);else{if(Re=X["$coerce_to!"](Re,u("Integer"),"to_int"),Re<=0)return Ke;for(;Re>0;){for(x=0,R=Ke.length;x<R;x++)i(je,Ke[x]);Re--}}return Ke},-1),W(A,"$clear",function(){var Re=this;return I(Re),Re.splice(0,Re.length),Re}),W(A,"$count",function nt(Re){var je=nt.$$p||l,Ke=this;return nt.$$p=null,t(Re!==void 0)||t(je)?me(Ke,J(Ke,"count",nt,!1,!0),"count",[Re],je):Ke.$size()},-1),W(A,"$initialize_copy",function(Re){var je=this;return je.$replace(Re)}),W(A,"$collect",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["collect"],function Fe(){var Ze=Fe.$$s==null?this:Fe.$$s;return Ze.$size()},{$$s:je});for(var Ke=[],x=0,R=je.length;x<R;x++){var ve=i(Re,je[x]);Ke.push(ve)}return Ke}),W(A,"$collect!",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["collect!"],function ve(){var Fe=ve.$$s==null?this:ve.$$s;return Fe.$size()},{$$s:je});I(je);for(var Ke=0,x=je.length;Ke<x;Ke++){var R=i(Re,je[Ke]);je[Ke]=R}return je});function Et(nt,Re){return nt===Re||Re===0?1:Re>0&&nt>Re?Et(nt-1,Re-1)+Et(nt-1,Re):0}W(A,"$combination",function nt(Re){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Re,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["combination",x],function te(){var V=te.$$s==null?this:te.$$s;return Et(V.length,x)},{$$s:Ke});var R,ve,Fe,Ze,ct,a,ae;if(x===0)e.yield1(je,[]);else if(x===1)for(R=0,ve=Ke.length;R<ve;R++)e.yield1(je,[Ke[R]]);else if(x===Ke.length)e.yield1(je,Ke.slice());else if(x>=0&&x<Ke.length){for(Fe=[],R=0;R<=x+1;R++)Fe.push(0);for(Ze=[],ct=0,a=!1,Fe[0]=-1;!a;){for(Ze[ct]=Ke[Fe[ct+1]];ct<x-1;)ct++,ae=Fe[ct+1]=Fe[ct]+1,Ze[ct]=Ke[ae];e.yield1(je,Ze.slice()),ct++;do a=ct===0,Fe[ct]++,ct--;while(Fe[ct+1]+x===Ke.length+ct+1)}}return Ke}),W(A,"$repeated_combination",function nt(Re){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Re,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["repeated_combination",x],function ve(){var Fe=ve.$$s==null?this:ve.$$s;return Et(Fe.length+x-1,x)},{$$s:Ke});function R(ve,Fe,Ze,ct){if(Ze.length==ve){var a=Ze.slice();e.yield1(je,a);return}for(var ae=Fe;ae<ct.length;ae++)Ze.push(ct[ae]),R(ve,ae,Ze,ct),Ze.pop()}return x>=0&&R(x,0,[],Ke),Ke}),W(A,"$compact",function(){for(var Re=this,je=[],Ke=0,x=Re.length,R;Ke<x;Ke++)(R=Re[Ke])!==l&&je.push(R);return je}),W(A,"$compact!",function(){var Re=this;I(Re);for(var je=Re.length,Ke=0,x=Re.length;Ke<x;Ke++)Re[Ke]===l&&(Re.splice(Ke,1),x--,Ke--);return Re.length===je?l:Re}),W(A,"$concat",function(Re){var je,Ke,x=this;return je=pe(arguments),Ke=je,I(x),Ke=xe(Ke,"map",[],function R(ve){var Fe=R.$$s==null?this:R.$$s;return ve==null&&(ve=l),ve=ge(u("Array"),ve)?ve.$to_a():p(ve,u("Array"),"to_ary").$to_a(),t(ve["$equal?"](Fe))&&(ve=ve.$dup()),ve},{$$s:x}),xe(Ke,"each",[],function R(ve){var Fe=R.$$s==null?this:R.$$s;ve==null&&(ve=l);for(var Ze=0,ct=ve.length;Ze<ct;Ze++)Fe.push(ve[Ze])},{$$s:x}),x},-1),W(A,"$delete",function nt(Re){var je=nt.$$p||l,Ke=this;nt.$$p=null;for(var x=Ke.length,R=0,ve=x;R<ve;R++)Ke[R]["$=="](Re)&&(I(Ke),Ke.splice(R,1),ve--,R--);return Ke.length===x?je!==l?e.yieldX(je,[]):l:Re}),W(A,"$delete_at",function(Re){var je=this;if(I(je),Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=je.length),Re<0||Re>=je.length)return l;var Ke=je[Re];return je.splice(Re,1),Ke}),W(A,"$delete_if",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,Re===l?xe(je,"enum_for",["delete_if"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(I(je),_t(je,r,Re),je)}),W(A,"$difference",function(Re){var je,Ke,x=this;return je=pe(arguments),Ke=je,xe(Ke,"reduce",[x.$to_a().$dup()],function(ve,Fe){return ve==null&&(ve=l),Fe==null&&(Fe=l),Ee(ve,Fe)})},-1),W(A,"$dig",function(Re,je){var Ke,x,R=this,ve=l;return Ke=pe(arguments,1),x=Ke,ve=R["$[]"](Re),ve===l||x.length===0?ve:(t(ve["$respond_to?"]("dig"))||re.$raise(u("TypeError"),""+ve.$class()+" does not have #dig method"),xe(ve,"dig",ce(x)))},-2),W(A,"$drop",function(Re){var je=this;return Re=p(Re,u("Integer"),"to_int"),Re<0&&re.$raise(u("ArgumentError")),je.slice(Re)}),W(A,"$dup",function nt(){var Re=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,J(je,"dup",nt,!1,!0),"dup",[],Re)}),W(A,"$each",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["each"],function R(){var ve=R.$$s==null?this:R.$$s;return ve.$size()},{$$s:je});for(var Ke=0,x=je.length;Ke<x;Ke++)i(Re,je[Ke]);return je}),W(A,"$each_index",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["each_index"],function R(){var ve=R.$$s==null?this:R.$$s;return ve.$size()},{$$s:je});for(var Ke=0,x=je.length;Ke<x;Ke++)i(Re,Ke);return je}),W(A,"$empty?",function(){var Re=this;return Re.length===0}),W(A,"$eql?",function(Re){var je=this,Ke={};function x(R,ve){var Fe,Ze,ct,a;if(!ve.$$is_array||(ve=ve.$to_a(),R.length!==ve.length))return!1;for(Ke[R.$object_id()]=!0,Fe=0,Ze=R.length;Fe<Ze;Fe++)if(ct=R[Fe],a=ve[Fe],ct.$$is_array){if(a.$$is_array&&a.length!==ct.length||!Ke.hasOwnProperty(ct.$object_id())&&!x(ct,a))return!1}else if(!ct["$eql?"](a))return!1;return!0}return x(je,Re)}),W(A,"$fetch",function nt(Re,je){var Ke=nt.$$p||l,x=this;nt.$$p=null;var R=Re;if(Re=p(Re,u("Integer"),"to_int"),Re<0&&(Re+=x.length),Re>=0&&Re<x.length)return x[Re];if(Ke!==l&&je!=null&&x.$warn("warning: block supersedes default value argument"),Ke!==l)return Ke(R);if(je!=null)return je;x.length===0?re.$raise(u("IndexError"),"index "+R+" outside of array bounds: 0...0"):re.$raise(u("IndexError"),"index "+R+" outside of array bounds: -"+x.length+"..."+x.length)},-2),W(A,"$fill",function nt(Re){var je=nt.$$p||l,Ke,x,R,ve,Fe=this,Ze=l,ct=l,a=l,ae=l,te=l;nt.$$p=null,Ke=pe(arguments),x=Ke,I(Fe);var V,_e;if(t(je)?(t(x.length>2)&&re.$raise(u("ArgumentError"),"wrong number of arguments ("+x.$length()+" for 0..2)"),ve=x,R=w(ve),Ze=R[0]==null?l:R[0],ct=R[1]==null?l:R[1]):(t(x.length==0)?re.$raise(u("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(x.length>3)&&re.$raise(u("ArgumentError"),"wrong number of arguments ("+x.$length()+" for 1..3)"),ve=x,R=w(ve),a=R[0]==null?l:R[0],Ze=R[1]==null?l:R[1],ct=R[2]==null?l:R[2]),ge(u("Range"),Ze)){if(t(ct)&&re.$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)&&re.$raise(u("RangeError"),""+Ze.$inspect()+" out of range"),te=Ze.end===l?-1:p(Ze.end,u("Integer"),"to_int"),t(te<0)&&(te+=this.length),t(Ze["$exclude_end?"]())||(te+=1),t(te<=ae))return Fe}else if(t(Ze))if(ae=p(Ze,u("Integer"),"to_int"),t(ae<0)&&(ae+=this.length),t(ae<0)&&(ae=0),t(ct)){if(te=p(ct,u("Integer"),"to_int"),t(te==0))return Fe;te+=ae}else te=this.length;else ae=0,te=this.length;if(t(ae>this.length))for(V=this.length;V<te;V++)Fe[V]=l;if(t(te>this.length)&&(this.length=te),t(je))for(this.length;ae<te;ae++)_e=je(ae),Fe[ae]=_e;else for(this.length;ae<te;ae++)Fe[ae]=a;return Fe},-1),W(A,"$first",function(Re){var je=this;return Re==null?je.length===0?l:je[0]:(Re=p(Re,u("Integer"),"to_int"),Re<0&&re.$raise(u("ArgumentError"),"negative array size"),je.slice(0,Re))},-1),W(A,"$flatten",function(Re){var je=this;function Ke(x,R){var ve=[],Fe,Ze,ct,a;for(x=x.$to_a(),Fe=0,Ze=x.length;Fe<Ze;Fe++){if(ct=x[Fe],!h(ct,"$to_ary",!0)){ve.push(ct);continue}if(a=ct.$to_ary(),a===l){ve.push(ct);continue}switch(a.$$is_array||re.$raise(u("TypeError")),a===je&&re.$raise(u("ArgumentError")),R){case void 0:ve=ve.concat(Ke(a));break;case 0:ve.push(a);break;default:ve.push.apply(ve,Ke(a,R-1))}}return ve}return Re!==void 0&&(Re=p(Re,u("Integer"),"to_int")),Ke(je,Re)},-1),W(A,"$flatten!",function(Re){var je=this;I(je);var Ke=je.$flatten(Re);if(je.length==Ke.length){for(var x=0,R=je.length;x<R&&je[x]===Ke[x];x++);if(x==R)return l}return je.$replace(Ke),je},-1),W(A,"$freeze",function(){var Re=this;return t(Re["$frozen?"]())?Re:L(Re)}),W(A,"$hash",function(){var Re=this,je=n===void 0,Ke=["A"],x=Re.$object_id(),R,ve,Fe;try{if(je&&(n=Object.create(null)),n[x])return"self";for(Fe in n)if(R=n[Fe],Re["$eql?"](R))return"self";for(n[x]=Re,ve=0;ve<Re.length;ve++)R=Re[ve],Ke.push(R.$hash());return Ke.join(",")}finally{je&&(n=void 0)}}),W(A,"$include?",function(Re){for(var je=this,Ke=0,x=je.length;Ke<x;Ke++)if(je[Ke]["$=="](Re))return!0;return!1}),W(A,"$index",function nt(Re){var je=nt.$$p||l,Ke=this;nt.$$p=null;var x,R,ve;if(Re!=null&&je!==l&&Ke.$warn("warning: given block not used"),Re!=null){for(x=0,R=Ke.length;x<R;x++)if(Ke[x]["$=="](Re))return x}else if(je!==l){for(x=0,R=Ke.length;x<R;x++)if(ve=je(Ke[x]),ve!==!1&&ve!==l)return x}else return Ke.$enum_for("index");return l},-1),W(A,"$insert",function(Re,je){var Ke,x,R=this;if(Ke=pe(arguments,1),x=Ke,I(R),Re=p(Re,u("Integer"),"to_int"),x.length>0){if(Re<0&&(Re+=R.length+1,Re<0&&re.$raise(u("IndexError"),""+Re+" is out of bounds")),Re>R.length)for(var ve=R.length;ve<Re;ve++)R.push(l);R.splice.apply(R,[Re,0].concat(x))}return R},-2);var qt=[];W(A,"$inspect",function(){var Re=this,je=[],Ke=Re.$__id__(),x=!0;return function(){try{if(qt.indexOf(Ke)!==-1)return x=!1,"[...]";qt.push(Ke);for(var R=0,ve=Re.length;R<ve;R++){var Fe=Re["$[]"](R);je.push(De("Opal").$inspect(Fe))}return"["+je.join(", ")+"]"}finally{x&&qt.pop()}}()}),W(A,"$intersection",function(Re){var je,Ke,x=this;return je=pe(arguments),Ke=je,xe(Ke,"reduce",[x.$to_a().$dup()],function(ve,Fe){return ve==null&&(ve=l),Fe==null&&(Fe=l),ve["$&"](Fe)})},-1),W(A,"$intersect?",function(Re){var je=this;return je.$intersection(Re)["$empty?"]()["$!"]()}),W(A,"$join",function(Re){var je=this;if(Se[","]==null&&(Se[","]=l),Re==null&&(Re=l),t(je.length===0))return"";t(Re===l)&&(Re=Se[","]);var Ke=[],x,R,ve,Fe;for(x=0,R=je.length;x<R;x++){if(ve=je[x],h(ve,"$to_str")&&(Fe=ve.$to_str(),Fe!==l)){Ke.push(Fe.$to_s());continue}if(h(ve,"$to_ary")&&(Fe=ve.$to_ary(),Fe===je&&re.$raise(u("ArgumentError")),Fe!==l)){Ke.push(Fe.$join(Re));continue}if(h(ve,"$to_s")&&(Fe=ve.$to_s(),Fe!==l)){Ke.push(Fe);continue}re.$raise(u("NoMethodError").$new(""+De("Opal").$inspect(je.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return Re===l?Ke.join(""):Ke.join(X["$coerce_to!"](Re,u("String"),"to_str").$to_s())},-1),W(A,"$keep_if",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,Re===l?xe(je,"enum_for",["keep_if"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(I(je),_t(je,t,Re),je)}),W(A,"$last",function(Re){var je=this;return Re==null?je.length===0?l:je[je.length-1]:(Re=p(Re,u("Integer"),"to_int"),Re<0&&re.$raise(u("ArgumentError"),"negative array size"),Re>je.length&&(Re=je.length),je.slice(je.length-Re,je.length))},-1),W(A,"$length",function(){var Re=this;return Re.length}),W(A,"$max",function nt(Re){var je=nt.$$p||l,Ke=this;return nt.$$p=null,xe(Ke.$each(),"max",[Re],je.$to_proc())},-1),W(A,"$min",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,xe(je.$each(),"min",[],Re.$to_proc())});function It(nt,Re){for(var je=Re>=0?1:0;Re;)je*=nt,nt--,Re--;return je}return W(A,"$permutation",function nt(Re){var je=nt.$$p||l,Ke=this,x=l,R=l;if(nt.$$p=null,je===l)return xe(Ke,"enum_for",["permutation",Re],function a(){var ae=a.$$s==null?this:a.$$s;return It(ae.length,Re===void 0?ae.length:Re)},{$$s:Ke});var ve,Fe,Ze;if(Re===void 0?Re=Ke.length:Re=p(Re,u("Integer"),"to_int"),!(Re<0||Ke.length<Re))if(Re===0)e.yield1(je,[]);else if(Re===1)for(var ct=0;ct<Ke.length;ct++)e.yield1(je,[Ke[ct]]);else x=De("Array").$new(Re),R=De("Array").$new(Ke.length,!1),ve=function(a,ae,te,V,_e){Ke=this;for(var y=0;y<Ke.length;y++)if(V["$[]"](y)["$!"]())if(ae[te]=y,te<a-1)V[y]=!0,ve.call(Ke,a,ae,te+1,V,_e),V[y]=!1;else{Ze=[];for(var Y=0;Y<ae.length;Y++)Ze.push(Ke[ae[Y]]);i(_e,Ze)}},je!==l?(Fe=Ke.slice(),ve.call(Fe,Re,x,0,R,je)):ve.call(Ke,Re,x,0,R,je);return Ke},-1),W(A,"$repeated_permutation",function nt(Re){var je=nt.$$p||l,Ke=this,x=l;if(nt.$$p=null,x=X["$coerce_to!"](Re,u("Integer"),"to_int"),je===l)return xe(Ke,"enum_for",["repeated_permutation",x],function ve(){var Fe=ve.$$s==null?this:ve.$$s;return t(N(x,0))?Fe.$size()["$**"](x):0},{$$s:Ke});function R(ve,Fe,Ze){if(Fe.length==ve){var ct=Fe.slice();e.yield1(je,ct);return}for(var a=0;a<Ze.length;a++)Fe.push(Ze[a]),R(ve,Fe,Ze),Fe.pop()}return R(x,[],Ke.slice()),Ke}),W(A,"$pop",function(Re){var je=this;return I(je),t(Re===void 0)?t(je.length===0)?l:je.pop():(Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&re.$raise(u("ArgumentError"),"negative array size"),t(je.length===0)?[]:t(Re===1)?[je.pop()]:t(Re>je.length)?je.splice(0,je.length):je.splice(je.length-Re,je.length))},-1),W(A,"$product",function nt(Re){var je=nt.$$p||l,Ke,x,R=this;nt.$$p=null,Ke=pe(arguments),x=Ke;var ve=je!==l?null:[],Fe=x.length+1,Ze=new Array(Fe),ct=new Array(Fe),a=new Array(Fe),ae,te,V,_e,y=1;for(a[0]=R,ae=1;ae<Fe;ae++)a[ae]=p(x[ae-1],u("Array"),"to_ary");for(ae=0;ae<Fe;ae++){if(_e=a[ae].length,_e===0)return ve||R;y*=_e,y>2147483647&&re.$raise(u("RangeError"),"too big to product"),ct[ae]=_e,Ze[ae]=0}e:for(;;){for(V=[],ae=0;ae<Fe;ae++)V.push(a[ae][Ze[ae]]);for(ve?ve.push(V):e.yield1(je,V),te=Fe-1,Ze[te]++;Ze[te]===ct[te];){if(Ze[te]=0,--te<0)break e;Ze[te]++}}return ve||R},-1),W(A,"$push",function(Re){var je,Ke,x=this;je=pe(arguments),Ke=je,I(x);for(var R=0,ve=Ke.length;R<ve;R++)x.push(Ke[R]);return x},-1),W(A,"$rassoc",function(Re){for(var je=this,Ke=0,x=je.length,R;Ke<x;Ke++)if(R=je[Ke],R.length&&R[1]!==void 0&&R[1]["$=="](Re))return R;return l}),W(A,"$reject",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["reject"],function Fe(){var Ze=Fe.$$s==null?this:Fe.$$s;return Ze.$size()},{$$s:je});for(var Ke=[],x=0,R=je.length,ve;x<R;x++)ve=Re(je[x]),(ve===!1||ve===l)&&Ke.push(je[x]);return Ke}),W(A,"$reject!",function nt(){var Re=nt.$$p||l,je=this,Ke=l;return nt.$$p=null,Re===l?xe(je,"enum_for",["reject!"],function x(){var R=x.$$s==null?this:x.$$s;return R.$size()},{$$s:je}):(I(je),Ke=je.$length(),xe(je,"delete_if",[],Re.$to_proc()),O(je.$length(),Ke)?l:je)}),W(A,"$replace",function(Re){var je=this;return I(je),Re=ge(u("Array"),Re)?Re.$to_a():p(Re,u("Array"),"to_ary").$to_a(),je.splice(0,je.length),je.push.apply(je,Re),je}),W(A,"$reverse",function(){var Re=this;return Re.slice(0).reverse()}),W(A,"$reverse!",function(){var Re=this;return I(Re),Re.reverse()}),W(A,"$reverse_each",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,Re===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",[],Re.$to_proc()),je)}),W(A,"$rindex",function nt(Re){var je=nt.$$p||l,Ke=this;nt.$$p=null;var x,R;if(Re!=null&&je!==l&&Ke.$warn("warning: given block not used"),Re!=null){for(x=Ke.length-1;x>=0&&!(x>=Ke.length);x--)if(Ke[x]["$=="](Re))return x}else if(je!==l){for(x=Ke.length-1;x>=0&&!(x>=Ke.length);x--)if(R=je(Ke[x]),R!==!1&&R!==l)return x}else if(Re==null)return Ke.$enum_for("rindex");return l},-1),W(A,"$rotate",function(Re){var je=this;Re==null&&(Re=1);var Ke,x,R,ve;return Re=p(Re,u("Integer"),"to_int"),je.length===1?je.slice():je.length===0?[]:(Ke=je.slice(),x=Re%Ke.length,R=Ke.slice(x),ve=Ke.slice(0,x),R.concat(ve))},-1),W(A,"$rotate!",function(Re){var je=this,Ke=l;return Re==null&&(Re=1),I(je),je.length===0||je.length===1?je:(Re=p(Re,u("Integer"),"to_int"),Ke=je.$rotate(Re),je.$replace(Ke))},-1),function(nt,Re){var je=H(nt,Re,"SampleRandom"),Ke=je.$$prototype;return Ke.rng=l,W(je,"$initialize",ne("rng")),W(je,"$rand",function(R){var ve=this,Fe=l;return Fe=p(ve.rng.$rand(R),u("Integer"),"to_int"),t(Fe<0)&&re.$raise(u("RangeError"),"random value must be >= 0"),t(Fe<R)||re.$raise(u("RangeError"),"random value must be less than Array size"),Fe})}(A,null),W(A,"$sample",function(Re,je){var Ke=this,x=l,R=l;if(t(Re===void 0))return Ke.$at(re.$rand(Ke.length));if(t(je===void 0)?t(x=X["$coerce_to?"](Re,u("Hash"),"to_hash"))?(je=x,Re=l):(je=l,Re=p(Re,u("Integer"),"to_int")):(Re=p(Re,u("Integer"),"to_int"),je=p(je,u("Hash"),"to_hash")),t(Re)&&t(Re<0)&&re.$raise(u("ArgumentError"),"count must be greater than 0"),t(je)&&(R=je["$[]"]("random")),R=t(R)&&t(R["$respond_to?"]("rand"))?De("SampleRandom").$new(R):re,!t(Re))return Ke[R.$rand(Ke.length)];var ve,Fe,Ze,ct,a,ae,te,V;switch(Re>Ke.length&&(Re=Ke.length),Re){case 0:return[];case 1:return[Ke[R.$rand(Ke.length)]];case 2:return ct=R.$rand(Ke.length),a=R.$rand(Ke.length-1),ct<=a&&a++,[Ke[ct],Ke[a]];default:if(Ke.length/Re>3){for(ve=!1,Fe=0,Ze=De("Array").$new(Re),ct=1,Ze[0]=R.$rand(Ke.length);ct<Re;){for(ae=R.$rand(Ke.length),a=0;a<ct;){for(;ae===Ze[a];){if(Fe++,Fe>100){ve=!0;break}ae=R.$rand(Ke.length)}if(ve)break;a++}if(ve)break;Ze[ct]=ae,ct++}if(!ve){for(ct=0;ct<Re;)Ze[ct]=Ke[Ze[ct]],ct++;return Ze}}Ze=Ke.slice();for(var _e=0;_e<Re;_e++)te=R.$rand(Ke.length-_e)+_e,V=Ze[_e],Ze[_e]=Ze[te],Ze[te]=V;return Re===Ke.length?Ze:Ze["$[]"](0,Re)}},-1),W(A,"$select",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["select"],function Ze(){var ct=Ze.$$s==null?this:Ze.$$s;return ct.$size()},{$$s:je});for(var Ke=[],x=0,R=je.length,ve,Fe;x<R;x++)ve=je[x],Fe=i(Re,ve),t(Fe)&&Ke.push(ve);return Ke}),W(A,"$select!",function nt(){var Re=nt.$$p||l,je=this;if(nt.$$p=null,Re===l)return xe(je,"enum_for",["select!"],function x(){var R=x.$$s==null?this:x.$$s;return R.$size()},{$$s:je});I(je);var Ke=je.length;return xe(je,"keep_if",[],Re.$to_proc()),je.length===Ke?l:je}),W(A,"$shift",function(Re){var je=this;return I(je),t(Re===void 0)?t(je.length===0)?l:rt(je):(Re=p(Re,u("Integer"),"to_int"),t(Re<0)&&re.$raise(u("ArgumentError"),"negative array size"),t(je.length===0)?[]:je.splice(0,Re))},-1),W(A,"$shuffle",function(Re){var je=this;return je.$dup().$to_a()["$shuffle!"](Re)},-1),W(A,"$shuffle!",function(Re){var je=this;I(je);var Ke,x=je.length,R,ve;for(Re!==void 0&&(Re=X["$coerce_to?"](Re,u("Hash"),"to_hash"),Re!==l&&(Re=Re["$[]"]("random"),Re!==l&&Re["$respond_to?"]("rand")&&(Ke=Re)));x;)Ke?(R=Ke.$rand(x).$to_int(),R<0&&re.$raise(u("RangeError"),"random number too small "+R),R>=x&&re.$raise(u("RangeError"),"random number too big "+R)):R=je.$rand(x),ve=je[--x],je[x]=je[R],je[R]=ve;return je},-1),W(A,"$slice!",function(Re,je){var Ke=this,x=l,R=l,ve=l,Fe=l,Ze=l;if(I(Ke),x=l,t(je===void 0))if(ge(u("Range"),Re)){R=Re,x=Ke["$[]"](R),ve=R.begin===l?0:p(R.begin,u("Integer"),"to_int"),Fe=R.end===l?-1:p(R.end,u("Integer"),"to_int"),ve<0&&(ve+=Ke.length),Fe<0?Fe+=Ke.length:Fe>=Ke.length&&(Fe=Ke.length-1,R.excl&&(Fe+=1));var ct=Fe-ve;R.excl&&R.end!==l?Fe-=1:ct+=1,ve<Ke.length&&ve>=0&&Fe<Ke.length&&Fe>=0&&ct>0&&Ke.splice(ve,ct)}else{if(Ze=p(Re,u("Integer"),"to_int"),Ze<0&&(Ze+=Ke.length),Ze<0||Ze>=Ke.length)return l;x=Ke[Ze],Ze===0?Ke.shift():Ke.splice(Ze,1)}else{if(Ze=p(Re,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),W(A,"$sort",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,t(je.length>1)?(Re===l&&(Re=function(Ke,x){return Ke["$<=>"](x)}),je.slice().sort(function(Ke,x){var R=Re(Ke,x);return R===l&&re.$raise(u("ArgumentError"),"comparison of "+Ke.$inspect()+" with "+x.$inspect()+" failed"),fe(R,0)?1:B(R,0)?-1:0})):je}),W(A,"$sort!",function nt(){var Re=nt.$$p||l,je=this;nt.$$p=null,I(je);var Ke;Re!==l?Ke=xe(je.slice(),"sort",[],Re.$to_proc()):Ke=je.slice().$sort(),je.length=0;for(var x=0,R=Ke.length;x<R;x++)je.push(Ke[x]);return je}),W(A,"$sort_by!",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,Re===l?xe(je,"enum_for",["sort_by!"],function Ke(){var x=Ke.$$s==null?this:Ke.$$s;return x.$size()},{$$s:je}):(I(je),je.$replace(xe(je,"sort_by",[],Re.$to_proc())))}),W(A,"$take",function(Re){var je=this;return Re<0&&re.$raise(u("ArgumentError")),je.slice(0,Re)}),W(A,"$take_while",function nt(){var Re=nt.$$p||l,je=this;nt.$$p=null;for(var Ke=[],x=0,R=je.length,ve,Fe;x<R;x++){if(ve=je[x],Fe=Re(ve),Fe===!1||Fe===l)return Ke;Ke.push(ve)}return Ke}),W(A,"$to_a",function(){var Re=this;return Re.$$class===e.Array?Re:e.Array.$new(Re)}),W(A,"$to_ary",Le),W(A,"$to_h",function nt(){var Re=nt.$$p||l,je=this,Ke=l;nt.$$p=null,Ke=je,Re!==l&&(Ke=xe(Ke,"map",[],Re.$to_proc()));var x,R=Ke.length,ve,Fe,Ze,ct=se([],{});for(x=0;x<R;x++)ve=X["$coerce_to?"](Ke[x],u("Array"),"to_ary"),ve.$$is_array||re.$raise(u("TypeError"),"wrong element type "+ve.$class()+" at "+x+" (expected array)"),ve.length!==2&&re.$raise(u("ArgumentError"),"wrong array length at "+x+" (expected 2, was "+ve.$length()+")"),Fe=ve[0],Ze=ve[1],c(ct,Fe,Ze);return ct}),W(A,"$transpose",function(){var Re=this,je=l,Ke=l;return t(Re["$empty?"]())?[]:(je=[],Ke=l,xe(Re,"each",[],function(R){var ve=l;return R==null&&(R=l),R=ge(u("Array"),R)?R.$to_a():p(R,u("Array"),"to_ary").$to_a(),Ke=t(ve=Ke)?ve:R.length,ue(R.length,Ke)&&re.$raise(u("IndexError"),"element size differs ("+R.length+" should be "+Ke+")"),xe(R.length,"times",[],function(Ze){var ct,a=l;return Ze==null&&(Ze=l),a=t(ve=je["$[]"](Ze))?ve:(ct=[Ze,[]],xe(je,"[]=",ct),ct[ct.length-1]),a["$<<"](R.$at(Ze))})}),je)}),W(A,"$union",function(Re){var je,Ke,x=this;return je=pe(arguments),Ke=je,xe(Ke,"reduce",[x.$uniq()],function(ve,Fe){return ve==null&&(ve=l),Fe==null&&(Fe=l),ve["$|"](Fe)})},-1),W(A,"$uniq",function nt(){var Re=nt.$$p||l,je=this;nt.$$p=null;var Ke=se([],{}),x,R,ve,Fe;if(Re===l)for(x=0,R=je.length;x<R;x++)ve=je[x],s(Ke,ve)===void 0&&c(Ke,ve,ve);else for(x=0,R=je.length;x<R;x++)ve=je[x],Fe=i(Re,ve),s(Ke,Fe)===void 0&&c(Ke,Fe,ve);return Ke.$values()}),W(A,"$uniq!",function nt(){var Re=nt.$$p||l,je=this;nt.$$p=null,I(je);var Ke=je.length,x=se([],{}),R,ve,Fe,Ze;for(R=0,ve=Ke;R<ve;R++){if(Fe=je[R],Ze=Re===l?Fe:i(Re,Fe),s(x,Ze)===void 0){c(x,Ze,Fe);continue}je.splice(R,1),ve--,R--}return je.length===Ke?l:je}),W(A,"$unshift",function(Re){var je,Ke,x=this;je=pe(arguments),Ke=je,I(x);var R=x.length,ve=Ke.length;if(ve==0)return x;for(var Fe=R-ve,Ze=0;Ze<ve;Ze++)x.push(x[Fe+Ze]);for(var ct=R-1;ct-ve>=0;)x[ct]=x[ct-ve],ct--;for(var a=0;a<ve;a++)x[a]=Ke[a];return x},-1),W(A,"$values_at",function(Re){var je,Ke,x=this,R=l;return je=pe(arguments),Ke=je,R=[],xe(Ke,"each",[],function ve(Fe){var Ze=ve.$$s==null?this:ve.$$s,ct=l,a=l,ae=l;return Fe==null&&(Fe=l),t(Fe["$is_a?"](u("Range")))?(ct=Fe.$end()===l?-1:p(Fe.$end(),u("Integer"),"to_int"),a=Fe.$begin()===l?0:p(Fe.$begin(),u("Integer"),"to_int"),a<0?(a=a+Ze.length,l):(ct<0&&(ct=ct+Ze.length),Fe["$exclude_end?"]()&&Fe.$end()!==l&&ct--,ct<a?l:xe(a,"upto",[ct],function te(V){var _e=te.$$s==null?this:te.$$s;return V==null&&(V=l),R["$<<"](_e.$at(V))},{$$s:Ze}))):(ae=p(Fe,u("Integer"),"to_int"),R["$<<"](Ze.$at(ae)))},{$$s:x}),R},-1),W(A,"$zip",function nt(Re){var je=nt.$$p||l,Ke,x,R=this,ve=l;nt.$$p=null,Ke=pe(arguments),x=Ke;var Fe=[],Ze=R.length,ct,a,ae,te,V;for(te=0,V=x.length;te<V;te++)if(a=x[te],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){x[te]=a.$take(Ze);continue}x[te]=(t(ve=X["$coerce_to?"](a,u("Array"),"to_ary"))?ve:X["$coerce_to!"](a,u("Enumerator"),"to_enum","each")).$to_a()}for(ae=0;ae<Ze;ae++){for(ct=[R[ae]],te=0,V=x.length;te<V;te++)a=x[te][ae],a==null&&(a=l),ct[te+1]=a;Fe[ae]=ct}if(je!==l){for(ae=0;ae<Ze;ae++)e.yield1(je,Fe[ae]);return l}return Fe},-1),be(A,"$inherited",function(Re){Re.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),W(A,"$instance_variables",function nt(){var Re=nt.$$p||l,je=this;return nt.$$p=null,xe(me(je,J(je,"instance_variables",nt,!1,!0),"instance_variables",[],Re),"reject",[],function(x){var R=l;return x==null&&(x=l),t(R=/^@\d+$/.test(x))?R:x["$=="]("@length")})}),W(A,"$pack",function(Re){return pe(arguments),re.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),P(A,"append","push"),P(A,"filter","select"),P(A,"filter!","select!"),P(A,"map","collect"),P(A,"map!","collect!"),P(A,"prepend","unshift"),P(A,"size","length"),P(A,"slice","[]"),P(A,"to_s","inspect"),X.$pristine(A.$singleton_class(),"allocate"),X.$pristine(A,"copy_instance_variables","initialize_dup")}("::",Array,$)};Opal.modules["corelib/hash"]=function(e){var t=e.yield1,r=e.hash,n=e.hash_init,i=e.hash_get,s=e.hash_put,c=e.hash_delete,f=e.deny_frozen_access,p=e.freeze,h=e.klass,I=e.slice,L=e.Opal,H=e.Kernel,pe=e.defs,be=e.def,re=e.send,W=e.rb_ge,X=e.rb_gt,ge=e.hash2,se=e.truthy,me=e.to_a,J=e.return_self,xe=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,except!,dup,delete,new,inspect,map,to_proc,flatten,frozen?,eql?,default,default_proc,default_proc=,default=,to_h,proc,clone,select,select!,has_key?,indexes,index,length,[]=,has_value?"),fe.$require("corelib/enumerable"),function(ce,w,Se){var N=h(ce,w,"Hash"),ne=[N].concat(Se),B=e.$r(ne);N.$include(Ee("Enumerable")),N.$$prototype.$$is_hash=!0,pe(N,"$[]",function(P){var v,$,l=this;v=I(arguments),$=v;var u,d=$.length,_;if(d===1){if(u=L["$coerce_to?"]($["$[]"](0),Ee("Hash"),"to_hash"),u!==O)return l.$allocate()["$merge!"](u);for($=L["$coerce_to?"]($["$[]"](0),Ee("Array"),"to_ary"),$===O&&H.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),d=$.length,u=l.$allocate(),_=0;_<d;_++)if($[_].$$is_array)switch($[_].length){case 1:u.$store($[_][0],O);break;case 2:u.$store($[_][0],$[_][1]);break;default:H.$raise(Ee("ArgumentError"),"invalid number of elements ("+$[_].length+" for 1..2)")}return u}for(d%2!==0&&H.$raise(Ee("ArgumentError"),"odd number of arguments for Hash"),u=l.$allocate(),_=0;_<d;_+=2)u.$store($[_],$[_+1]);return u},-1),pe(N,"$allocate",function(){var P=this,v=new P.$$constructor;return n(v),v.$$none=O,v.$$proc=O,v}),pe(N,"$try_convert",function(P){return L["$coerce_to?"](P,Ee("Hash"),"to_hash")}),be(N,"$initialize",function ue(P){var v=ue.$$p||O,$=this;return ue.$$p=null,f($),P!==void 0&&v!==O&&H.$raise(Ee("ArgumentError"),"wrong number of arguments (1 for 0)"),$.$$none=P===void 0?O:P,$.$$proc=v,$},-1),be(N,"$==",function(P){var v=this;if(v===P)return!0;if(!P.$$is_hash||v.$$keys.length!==P.$$keys.length)return!1;for(var $=0,l=v.$$keys,u=l.length,d,_,k;$<u;$++)if(d=l[$],d.$$is_string?(_=v.$$smap[d],k=P.$$smap[d]):(_=d.value,k=i(P,d.key)),k===void 0||!_["$eql?"](k))return!1;return!0}),be(N,"$>=",function(P){var v=this,$=O;return P=L["$coerce_to!"](P,Ee("Hash"),"to_hash"),v.$$keys.length<P.$$keys.length?!1:($=!0,re(P,"each",[],function l(u,d){var _=l.$$s==null?this:l.$$s,k=O;if(u==null&&(u=O),d==null&&(d=O),k=_.$fetch(u,null),k==null||k!==d){$=!1;return}},{$$s:v}),$)}),be(N,"$>",function(P){var v=this;return P=L["$coerce_to!"](P,Ee("Hash"),"to_hash"),v.$$keys.length<=P.$$keys.length?!1:W(v,P)}),be(N,"$<",function(P){var v=this;return P=L["$coerce_to!"](P,Ee("Hash"),"to_hash"),X(P,v)}),be(N,"$<=",function(P){var v=this;return P=L["$coerce_to!"](P,Ee("Hash"),"to_hash"),W(P,v)}),be(N,"$[]",function(P){var v=this,$=i(v,P);return $!==void 0?$:v.$default(P)}),be(N,"$[]=",function(P,v){var $=this;return f($),s($,P,v),v}),be(N,"$assoc",function(P){for(var v=this,$=0,l=v.$$keys,u=l.length,d;$<u;$++)if(d=l[$],d.$$is_string){if(d["$=="](P))return[d,v.$$smap[d]]}else if(d.key["$=="](P))return[d.key,d.value];return O}),be(N,"$clear",function(){var P=this;return f(P),n(P),P}),be(N,"$clone",function(){var P=this,v=new P.$$class;return n(v),e.hash_clone(P,v),v}),be(N,"$compact",function(){for(var P=this,v=r(),$=0,l=P.$$keys,u=l.length,d,_,k;$<u;$++)d=l[$],d.$$is_string?_=P.$$smap[d]:(_=d.value,d=d.key),_!==O&&s(v,d,_);return v}),be(N,"$compact!",function(){var P=this;f(P);for(var v=!1,$=0,l=P.$$keys,u=l.length,d,_,k;$<u;$++)d=l[$],d.$$is_string?_=P.$$smap[d]:(_=d.value,d=d.key),_===O&&c(P,d)!==void 0&&(v=!0,u--,$--);return v?P:O}),be(N,"$compare_by_identity",function(){var P=this;f(P);var v,$,l,u=P.$$keys,d;if(P.$$by_identity)return P;if(P.$$keys.length===0)return P.$$by_identity=!0,P;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(P,l));return P.$$by_identity=!0,P.$$map=d.$$map,P.$$smap=d.$$smap,P}),be(N,"$compare_by_identity?",function(){var P=this;return P.$$by_identity===!0}),be(N,"$default",function(P){var v=this;return P!==void 0&&v.$$proc!==O&&v.$$proc!==void 0?v.$$proc.$call(v,P):v.$$none===void 0?O:v.$$none},-1),be(N,"$default=",function(P){var v=this;return f(v),v.$$proc=O,v.$$none=P,P}),be(N,"$default_proc",function(){var P=this;return P.$$proc!==void 0?P.$$proc:O}),be(N,"$default_proc=",function(P){var v=this;f(v);var $=P;return $!==O&&($=L["$coerce_to!"]($,Ee("Proc"),"to_proc"),$["$lambda?"]()&&$.$arity().$abs()!==2&&H.$raise(Ee("TypeError"),"default_proc takes two arguments")),v.$$none=O,v.$$proc=$,P}),be(N,"$delete",function ue(P){var v=ue.$$p||O,$=this;ue.$$p=null,f($);var l=c($,P);return l!==void 0?l:v!==O?e.yield1(v,P):O}),be(N,"$delete_if",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["delete_if"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:v});f(v);for(var $=0,l=v.$$keys,u=l.length,d,_,k;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),k=P(d,_),k!==!1&&k!==O&&c(v,d)!==void 0&&(u--,$--);return v}),be(N,"$dig",function(P,v){var $,l,u=this,d=O;return $=I(arguments,1),l=$,d=u["$[]"](P),d===O||l.length===0?d:(se(d["$respond_to?"]("dig"))||H.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),re(d,"dig",me(l)))},-2),be(N,"$each",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["each"],function k(){var A=k.$$s==null?this:k.$$s;return A.$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(P,[d,_]);return v}),be(N,"$each_key",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["each_key"],function _(){var k=_.$$s==null?this:_.$$s;return k.$size()},{$$s:v});for(var $=0,l=v.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],P(d.$$is_string?d:d.key);return v}),be(N,"$each_value",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["each_value"],function _(){var k=_.$$s==null?this:_.$$s;return k.$size()},{$$s:v});for(var $=0,l=v.$$keys.slice(),u=l.length,d;$<u;$++)d=l[$],P(d.$$is_string?v.$$smap[d]:d.value);return v}),be(N,"$empty?",function(){var P=this;return P.$$keys.length===0}),be(N,"$except",function(P){var v,$,l=this;return v=I(arguments),$=v,re(l.$dup(),"except!",me($))},-1),be(N,"$except!",function(P){var v,$,l=this;return v=I(arguments),$=v,re($,"each",[],function u(d){var _=u.$$s==null?this:u.$$s;return d==null&&(d=O),_.$delete(d)},{$$s:l}),l},-1),be(N,"$fetch",function ue(P,v){var $=ue.$$p||O,l=this;ue.$$p=null;var u=i(l,P);return u!==void 0?u:$!==O?$(P):v!==void 0?v:H.$raise(Ee("KeyError").$new("key not found: "+P.$inspect(),ge(["key","receiver"],{key:P,receiver:l})))},-2),be(N,"$fetch_values",function ue(P){var v=ue.$$p||O,$,l,u=this;return ue.$$p=null,$=I(arguments),l=$,re(l,"map",[],function d(_){var k=d.$$s==null?this:d.$$s;return _==null&&(_=O),re(k,"fetch",[_],v.$to_proc())},{$$s:u})},-1),be(N,"$flatten",function(P){var v=this;P==null&&(P=1),P=L["$coerce_to!"](P,Ee("Integer"),"to_int");for(var $=[],l=0,u=v.$$keys,d=u.length,_,k;l<d;l++){if(_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),$.push(_),k.$$is_array){if(P===1){$.push(k);continue}$=$.concat(k.$flatten(P-2));continue}$.push(k)}return $},-1),be(N,"$freeze",function(){var P=this;return se(P["$frozen?"]())?P:p(P)}),be(N,"$has_key?",function(P){var v=this;return i(v,P)!==void 0}),be(N,"$has_value?",function(P){for(var v=this,$=0,l=v.$$keys,u=l.length,d;$<u;$++)if(d=l[$],(d.$$is_string?v.$$smap[d]:d.value)["$=="](P))return!0;return!1}),be(N,"$hash",function(){var P=this,v=e.hash_ids===void 0,$=P.$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],P["$eql?"](d))return"self";e.hash_ids[$]=P;for(var _=0,k=P.$$keys,A=k.length;_<A;_++)u=k[_],u.$$is_string?l.push([u,P.$$smap[u].$hash()]):l.push([u.key_hash,u.value.$hash()]);return l.sort().join()}finally{v&&(e.hash_ids=void 0)}}),be(N,"$index",function(P){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),_["$=="](P))return d;return O}),be(N,"$indexes",function(P){var v,$,l=this;v=I(arguments),$=v;for(var u=[],d=0,_=$.length,k,A;d<_;d++){if(k=$[d],A=i(l,k),A===void 0){u.push(l.$default());continue}u.push(A)}return u},-1);var Le;return be(N,"$inspect",function(){var P=this,v=Le===void 0,$=P.$object_id(),l=[];return function(){try{if(v&&(Le={}),Le.hasOwnProperty($))return"{...}";Le[$]=!0;for(var u=0,d=P.$$keys,_=d.length,k,A;u<_;u++)k=d[u],k.$$is_string?A=P.$$smap[k]:(A=k.value,k=k.key),k=B("Opal").$inspect(k),A=B("Opal").$inspect(A),l.push(k+"=>"+A);return"{"+l.join(", ")+"}"}finally{v&&(Le=void 0)}}()}),be(N,"$invert",function(){for(var P=this,v=r(),$=0,l=P.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=P.$$smap[d]:(_=d.value,d=d.key),s(v,_,d);return v}),be(N,"$keep_if",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["keep_if"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:v});f(v);for(var $=0,l=v.$$keys,u=l.length,d,_,k;$<u;$++)d=l[$],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),k=P(d,_),(k===!1||k===O)&&c(v,d)!==void 0&&(u--,$--);return v}),be(N,"$keys",function(){for(var P=this,v=[],$=0,l=P.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?v.push(d):v.push(d.key);return v}),be(N,"$length",function(){var P=this;return P.$$keys.length}),be(N,"$merge",function ue(P){var v=ue.$$p||O,$,l,u=this;return ue.$$p=null,$=I(arguments),l=$,re(u.$dup(),"merge!",me(l),v.$to_proc())},-1),be(N,"$merge!",function ue(P){var v=ue.$$p||O,$,l,u=this;ue.$$p=null,$=I(arguments),l=$,f(u);var d,_,k,A,Q,De,rt,ft;for(d=0;d<l.length;++d)if(k=L["$coerce_to!"](l[d],Ee("Hash"),"to_hash"),A=k.$$keys,Q=A.length,v===O)for(_=0;_<Q;_++)De=A[_],De.$$is_string?ft=k.$$smap[De]:(ft=De.value,De=De.key),s(u,De,ft);else for(_=0;_<Q;_++){if(De=A[_],De.$$is_string?ft=k.$$smap[De]:(ft=De.value,De=De.key),rt=i(u,De),rt===void 0){s(u,De,ft);continue}s(u,De,v(De,rt,ft))}return u},-1),be(N,"$rassoc",function(P){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),_["$=="](P))return[d,_];return O}),be(N,"$rehash",function(){var P=this;return f(P),e.hash_rehash(P),P}),be(N,"$reject",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["reject"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,k,A;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),A=P(_,k),(A===!1||A===O)&&s($,_,k);return $}),be(N,"$reject!",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["reject!"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:v});f(v);for(var $=!1,l=0,u=v.$$keys,d=u.length,_,k,A;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),A=P(_,k),A!==!1&&A!==O&&c(v,_)!==void 0&&($=!0,d--,l--);return $?v:O}),be(N,"$replace",function(P){var v=this;f(v),P=L["$coerce_to!"](P,Ee("Hash"),"to_hash"),n(v);for(var $=0,l=P.$$keys,u=l.length,d,_,k;$<u;$++)d=l[$],d.$$is_string?k=P.$$smap[d]:(k=d.value,d=d.key),s(v,d,k);return se(P.$default_proc())?v["$default_proc="](P.$default_proc()):v["$default="](P.$default()),v}),be(N,"$select",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["select"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,k,A;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),A=P(_,k),A!==!1&&A!==O&&s($,_,k);return $}),be(N,"$select!",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["select!"],function Q(){var De=Q.$$s==null?this:Q.$$s;return De.$size()},{$$s:v});f(v);for(var $=O,l=0,u=v.$$keys,d=u.length,_,k,A;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),A=P(_,k),(A===!1||A===O)&&(c(v,_)!==void 0&&(d--,l--),$=v);return $}),be(N,"$shift",function(){var P=this;f(P);var v=P.$$keys,$;return v.length>0?($=v[0],$=$.$$is_string?$:$.key,[$,c(P,$)]):O}),be(N,"$slice",function(P){var v,$,l=this;v=I(arguments),$=v;for(var u=r(),d=0,_=$.length;d<_;d++){var k=$[d],A=i(l,k);A!==void 0&&s(u,k,A)}return u},-1),be(N,"$to_a",function(){for(var P=this,v=[],$=0,l=P.$$keys,u=l.length,d,_;$<u;$++)d=l[$],d.$$is_string?_=P.$$smap[d]:(_=d.value,d=d.key),v.push([d,_]);return v}),be(N,"$to_h",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,P!==O)return re(v,"map",[],P.$to_proc()).$to_h();if(v.$$class===e.Hash)return v;var $=new e.Hash;return n($),e.hash_clone(v,$),$}),be(N,"$to_hash",J),be(N,"$to_proc",function(){var P=this;return re(P,"proc",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&H.$raise(Ee("ArgumentError"),"no key given"),l["$[]"]($)},{$$arity:-1,$$s:P})}),be(N,"$transform_keys",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["transform_keys"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,k;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),_=t(P,_),s($,_,k);return $}),be(N,"$transform_keys!",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["transform_keys!"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:v});f(v);var $=e.slice(v.$$keys),l,u=$.length,d,_,k;for(l=0;l<u;l++)d=$[l],d.$$is_string?_=v.$$smap[d]:(_=d.value,d=d.key),k=t(P,d),c(v,d),s(v,k,_);return v}),be(N,"$transform_values",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["transform_values"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:v});for(var $=r(),l=0,u=v.$$keys,d=u.length,_,k;l<d;l++)_=u[l],_.$$is_string?k=v.$$smap[_]:(k=_.value,_=_.key),k=t(P,k),s($,_,k);return $}),be(N,"$transform_values!",function ue(){var P=ue.$$p||O,v=this;if(ue.$$p=null,!se(P))return re(v,"enum_for",["transform_values!"],function k(){var A=k.$$s==null?this:k.$$s;return A.$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(P,_),s(v,d,_);return v}),be(N,"$values",function(){for(var P=this,v=[],$=0,l=P.$$keys,u=l.length,d;$<u;$++)d=l[$],d.$$is_string?v.push(P.$$smap[d]):v.push(d.value);return v}),xe(N,"dup","clone"),xe(N,"each_pair","each"),xe(N,"eql?","=="),xe(N,"filter","select"),xe(N,"filter!","select!"),xe(N,"include?","has_key?"),xe(N,"indices","indexes"),xe(N,"key","index"),xe(N,"key?","has_key?"),xe(N,"member?","has_key?"),xe(N,"size","length"),xe(N,"store","[]="),xe(N,"to_s","inspect"),xe(N,"update","merge!"),xe(N,"value?","has_value?"),xe(N,"values_at","indexes")}("::",null,Ae)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,c=e.truthy,f=e.rb_gt,p=e.not,h=e.rb_lt,I=e.alias,L=e.send2,H=e.find_super,pe=e.send,be=e.rb_plus,re=e.rb_minus,W=e.eqeq,X=e.return_self,ge=e.rb_divide,se=e.to_ary,me=e.rb_times,J=e.rb_le,xe=e.rb_ge,fe=e.return_val,Ae=e.const_set,O=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?"),O.$require("corelib/numeric"),function(Se,N,ne){var B=t(Se,N,"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 Le=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 Le(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}),I(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 k=Math.pow(10,u),A=Math.ceil(_*k)/k;return _%1===0&&(A=Math.round(A)),A},-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:L(d,H(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 pe(_,"enum_for",["downto",u],function A(){var Q=A.$$s==null?this:A.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+Q.$class()+" with "+u.$class()+" failed"),c(f(u,Q))?0:be(re(Q,u),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var k=_;k>=u;k--)d(k);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 k=Math.pow(10,u),A=Math.floor(_*k)/k;return _%1===0&&(A=Math.round(A)),A},-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),k=Math.abs(u);_>0;){var A=_;_=k%_,k=A}return k}),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,W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Float"))&&s(w("Float"),_)?!0:L(_,H(_,"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,W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Integer"))&&s(w("Integer"),_)||W(u,w("Float"))&&s(w("Float"),_)?!0:L(_,H(_,"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:L(d,H(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"),_)?L(_,H(_,"quo",l,!1,!0),"quo",[u],d):ge(_,u)}),i(B,"$rationalize",function(u){var d,_,k=this,A=ce,Q=ce;return arguments.length>1&&n.$raise(w("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(w("Integer"),k)?w("Rational").$new(k,1):c(k["$infinite?"]())?n.$raise(w("FloatDomainError"),"Infinity"):c(k["$nan?"]())?n.$raise(w("FloatDomainError"),"NaN"):c(u==null)?(_=w("Math").$frexp(k),d=se(_),A=d[0]==null?ce:d[0],Q=d[1]==null?ce:d[1],A=w("Math").$ldexp(A,w(w("Float"),"MANT_DIG")).$to_i(),Q=re(Q,w(w("Float"),"MANT_DIG")),w("Rational").$new(me(2,A),1["$<<"](re(1,Q))).$rationalize(w("Rational").$new(1,1["$<<"](re(1,Q))))):k.$to_r().$rationalize(u)},-1),i(B,"$remainder",function(u){var d=this;return re(d,me(u,ge(d,u).$truncate()))}),i(B,"$round",function(u){var d,_,k=this,A=ce;if(s(w("Integer"),k)){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 k;if(u=u["$-@"](),.415241*u-.125>k.$size())return 0;var Q=Math.pow(10,u),De=Math.floor((Math.abs(k)+Q/2)/Q)*Q;return k<0?-De:De}else{if(c(k["$nan?"]())&&c(u==null)&&n.$raise(w("FloatDomainError"),"NaN"),u=r["$coerce_to!"](u||0,w("Integer"),"to_int"),c(J(u,0)))c(k["$nan?"]())?n.$raise(w("RangeError"),"NaN"):c(k["$infinite?"]())&&n.$raise(w("FloatDomainError"),"Infinity");else{if(W(u,0))return Math.round(k);if(c(k["$nan?"]())||c(k["$infinite?"]()))return k}return _=w("Math").$frexp(k),d=se(_),d[0]==null||d[0],A=d[1]==null?ce:d[1],c(xe(u,re(be(w(w("Float"),"DIG"),2),c(f(A,0))?ge(A,4):re(ge(A,3),1))))?k:c(h(u,(c(f(A,0))?be(ge(A,3),1):ge(A,4))["$-@"]()))?0:Math.round(k*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 pe(d,"enum_for",["times"],function k(){var A=k.$$s==null?this:k.$$s;return A},{$$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,k=ce,A=ce;return s(w("Integer"),_)?w("Rational").$new(_,1):(d=w("Math").$frexp(_),u=se(d),k=u[0]==null?ce:u[0],A=u[1]==null?ce:u[1],k=w("Math").$ldexp(k,w(w("Float"),"MANT_DIG")).$to_i(),A=re(A,w(w("Float"),"MANT_DIG")),me(k,w(w("Float"),"RADIX")["$**"](A)).$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),W(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 k=Math.pow(10,u),A=parseInt(_*k,10)/k;return _%1===0&&(A=Math.round(A)),A},-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,k=[];if(d==0)return[0];for(;_!=0;)k.push(_%u),_=parseInt(_/u,10);return k},-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"):L(_,H(_,"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 pe(_,"enum_for",["upto",u],function A(){var Q=A.$$s==null?this:A.$$s;return s(w("Numeric"),u)||n.$raise(w("ArgumentError"),"comparison of "+Q.$class()+" with "+u.$class()+" failed"),c(h(u,Q))?0:be(re(u,Q),1)},{$$s:_});u.$$is_number||n.$raise(w("ArgumentError"),"comparison of "+_.$class()+" with "+u.$class()+" failed");for(var k=_;k<=u;k++)d(k);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 P(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 P(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 P(u)}return i(B,"$next_float",function(){var u=this;return W(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 W(u,w(w("Float"),"INFINITY")["$-@"]())?w(w("Float"),"INFINITY")["$-@"]():c(u["$nan?"]())?w(w("Float"),"NAN"):f(u,0)?$(u):-v(Math.abs(u))}),I(B,"arg","angle"),I(B,"eql?","=="),I(B,"fdiv","/"),I(B,"inspect","to_s"),I(B,"kind_of?","is_a?"),I(B,"magnitude","abs"),I(B,"modulo","%"),I(B,"object_id","__id__"),I(B,"phase","angle"),I(B,"succ","next"),I(B,"to_int","to_i")}("::",w("Numeric")),Ae("::","Fixnum",w("Number")),function(Se,N,ne){var B=t(Se,N,"Integer"),Le=[B].concat(ne);return B.$$is_number_class=!0,B.$$is_integer_class=!0,function(ue,P){var v=[ue].concat(P),$=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),Le),Ae(B,"MAX",Math.pow(2,30)-1),Ae(B,"MIN",-Math.pow(2,30))}("::",w("Numeric"),Ee),function(Se,N,ne){var B=t(Se,N,"Float");return B.$$is_number_class=!0,function(Le,ue){return i(Le,"$allocate",function(){var v=this;return n.$raise(w("TypeError"),"allocator undefined for "+v.$name())}),e.udef(Le,"$new"),i(Le,"$===",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,I=e.send,L=e.eqeq,H=e.eqeqeq,pe=e.return_ivar,be=e.rb_gt,re=e.rb_minus,W=e.Opal,X=e.rb_divide,ge=e.rb_plus,se=e.rb_times,me=e.rb_ge,J=e.thrower,xe=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_to!,ceil,/,is_a?,new,loop,+,*,>=,each_with_index,%,step,bsearch,inspect,[],hash,cover?"),fe.$require("corelib/enumerable"),function(ce,w,Se){var N=t(ce,w,"Range"),ne=[N].concat(Se),B=e.$r(ne),Le=N.$$prototype;Le.begin=Le.end=Le.excl=O,N.$include(Ee("Enumerable")),N.$$prototype.$$is_range=!0,N.$attr_reader("begin","end"),i(N,"$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(N,"$===",function(v){var $=this;return $["$include?"](v)});function ue(P){return P.begin===O||P.end===O||P.begin===-1/0||P.end===1/0||P.begin===1/0||P.end===-1/0}return i(N,"$count",function P(){var v=P.$$p||O,$=this;return P.$$p=null,s(v!==O)&&r(ue($))?Ee(Ee("Float"),"INFINITY"):c($,f($,"count",P,!1,!0),"count",[],v)}),i(N,"$to_a",function P(){var v=P.$$p||O,$=this;return P.$$p=null,r(ue($))&&n.$raise(Ee("TypeError"),"cannot convert endless range to an array"),c($,f($,"to_a",P,!1,!0),"to_a",[],v)}),i(N,"$cover?",function(v){var $=this,l=O,u=O,d=O,_=O,k=O;return l=r(u=r(d=r(_=$.begin["$nil?"]())?-1:_)?d:$.begin["$<=>"](v))&&u,k=r(u=r(d=r(_=$.end["$nil?"]())?-1:_)?d:v["$<=>"]($.end))&&u,r(u=r(d=r($.excl)?r(_=k)?p(k,0):_:r(_=k)?h(k,0):_)?l:d)?h(l,0):u}),i(N,"$each",function P(){var v=P.$$p||O,$=this,l=O,u=O,d=O;if(P.$$p=null,v===O)return I($,"enum_for",["each"],function A(){var Q=A.$$s==null?this:A.$$s;return Q.$size()},{$$s:$});var _,k;if($.begin.$$is_number&&$.end.$$is_number){for(($.begin%1!==0||$.end%1!==0)&&n.$raise(Ee("TypeError"),"can't iterate from Float"),_=$.begin,k=$.end+(r($.excl)?0:1);_<k;_++)v(_);return $}if($.begin.$$is_string&&$.end.$$is_string)return I($.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)&&L(l,u)&&e.yield1(v,l),$}),i(N,"$eql?",function(v){var $=this,l=O,u=O;return H(Ee("Range"),v)?r(l=r(u=$.excl["$==="](v["$exclude_end?"]()))?$.begin["$eql?"](v.$begin()):u)?$.end["$eql?"](v.$end()):l:!1}),i(N,"$exclude_end?",pe("excl")),i(N,"$first",function P(v){var $=P.$$p||O,l=this;return P.$$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",P,!1,!0),"first",[v],$)},-1),i(N,"$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(N,"$max",function P(){var v=P.$$p||O,$=this;return P.$$p=null,r($.end["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the maximum of endless range"):v!==O?c($,f($,"max",P,!1,!0),"max",[],v):s($.begin["$nil?"]())&&(r(be($.begin,$.end))||r($.excl)&&L($.begin,$.end))?O:$.excl?$.end-1:$.end}),i(N,"$min",function P(){var v=P.$$p||O,$=this;return P.$$p=null,r($.begin["$nil?"]())?n.$raise(Ee("RangeError"),"cannot get the minimum of beginless range"):v!==O?c($,f($,"min",P,!1,!0),"min",[],v):s($.end["$nil?"]())&&(r(be($.begin,$.end))||r($.excl)&&L($.begin,$.end))?O:$.begin}),i(N,"$size",function(){var v=this,$=O,l=O,u=O;return $=Ee(Ee("Float"),"INFINITY"),L(v.begin,$)&&s(v.end["$nil?"]())||L(v.end,$["$-@"]())&&s(v.begin["$nil?"]())?0:r(ue(v))?$:H(Ee("Numeric"),v.begin)&&H(Ee("Numeric"),v.end)?(l=v.begin,u=v.end,r(v.excl)&&(u=re(u,1)),r(p(u,l))?0:(Math.abs(u-l)+1).$to_i()):O}),i(N,"$step",function P(v){var $=P.$$p||O,l=this,u=O,d=O;P.$$p=null;function _(){v==null?v=1:v.$$is_number||(v=W["$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 k(){if(!l.begin["$respond_to?"]("succ")||l.begin.$$is_string&&l.end.$$is_string)return O;if(v%1===0)return X(l.$size(),v).$ceil();var A=l.begin,Q=l.end,De=Math.abs,rt=Math.floor,ft=(De(A)+De(Q)+De(Q-A))/De(v)*Ee(Ee("Float"),"EPSILON"),_t;return ft>.5&&(ft=.5),l.excl?(_t=rt((Q-A)/v-ft),_t*v+A<Q&&_t++):_t=rt((Q-A)/v+ft)+1,_t}return $===O?(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"):I(l,"enum_for",["step",v],function(){return _(),k()}):(_(),r(l.begin.$$is_number&&l.end.$$is_number)?(d=0,function(){try{var A=J("break");return I(l,"loop",[],function Q(){var De=Q.$$s==null?this:Q.$$s,rt=O;return De.begin==null&&(De.begin=O),De.excl==null&&(De.excl=O),De.end==null&&(De.end=O),rt=ge(De.begin,se(d,v)),r(De.excl)?r(me(rt,De.end))&&A.$throw():r(be(rt,De.end))&&A.$throw(),e.yield1($,rt),d=ge(d,1)},{$$s:l})}catch(Q){if(Q===A)return Q.$v;throw Q}}()):(l.begin.$$is_string&&l.end.$$is_string&&v%1!==0&&n.$raise(Ee("TypeError"),"no implicit conversion to float from string"),I(l,"each_with_index",[],function(Q,De){return Q==null&&(Q=O),De==null&&(De=O),L(De["$%"](v),0)?e.yield1($,Q):O})),l)},-1),i(N,"$%",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(N,"$bsearch",function P(){var v=P.$$p||O,$=this;return P.$$p=null,v===O?$.$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()),I($.$to_a(),"bsearch",[],v.$to_proc()))}),i(N,"$to_s",function(){var v=this,$=O;return""+(r($=v.begin)?$:"")+(r(v.excl)?"...":"..")+(r($=v.end)?$:"")}),i(N,"$inspect",function(){var v=this,$=O;return""+(r($=v.begin)?v.begin.$inspect():$)+(r(v.excl)?"...":"..")+(r($=v.end)?v.end.$inspect():$)}),i(N,"$marshal_load",function(v){var $=this;return $.begin=v["$[]"]("begin"),$.end=v["$[]"]("end"),$.excl=v["$[]"]("excl")}),i(N,"$hash",function(){var v=this;return[v.begin,v.end,v.excl].$hash()}),xe(N,"==","eql?"),xe(N,"include?","cover?"),xe(N,"member?","cover?")}("::",null,Ae)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,c=e.def,f=e.send,p=e.to_a,h=e.return_self,I=e.ensure_kwargs,L=e.Opal,H=e.alias,pe=e.nil,be=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(re,W){var X=r(re,W,"Proc");return e.prop(X.$$prototype,"$$is_proc",!0),e.prop(X.$$prototype,"$$is_lambda",!1),s(X,"$new",function ge(){var se=ge.$$p||pe;return ge.$$p=null,n(se)||i.$raise(be("ArgumentError"),"tried to create a Proc object without a block"),se}),c(X,"$call",function ge(se){var me=ge.$$p||pe,J,xe,fe=this;ge.$$p=null,J=t(arguments),xe=J,me!==pe&&(fe.$$p=me);var Ae,O=fe.$$brk,Ee=fe.$$ret;if(O||Ee&&fe.$$is_lambda)try{fe.$$is_lambda?Ae=fe.apply(null,xe):Ae=e.yieldX(fe,xe)}catch(ce){if(ce===O)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 J(xe){var fe=J.$$p||pe,Ae,O,Ee=J.$$s==null?this:J.$$s,ce=pe;return J.$$p=null,Ae=t(arguments),O=Ae,ce=f(Ee,"call",p(O),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 J(xe){var fe=J.$$p||pe,Ae,O,Ee=J.$$s==null?this:J.$$s,ce=pe;return J.$$p=null,Ae=t(arguments),O=Ae,ce=f(se,"call",p(O),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=pe;return se.$$is_curried?pe:n(me=se.$$source_location)?me:pe}),c(X,"$binding",function(){var se=this;return se.$$is_curried&&i.$raise(be("ArgumentError"),"Can't create Binding"),n(be("::","Binding","skip_raise")?"constant":pe)?be("Binding").$new(pe,[],se.$$s,se.$source_location()):pe}),c(X,"$parameters",function(se){var me,J=this;if(se=I(se),me=se.$$smap.lambda,J.$$is_curried)return[["rest"]];if(J.$$parameters){if(me??J.$$is_lambda)return J.$$parameters;var xe=[],fe,Ae;for(fe=0,Ae=J.$$parameters.length;fe<Ae;fe++){var O=J.$$parameters[fe];O[0]==="req"&&(O=["opt",O[1]]),xe.push(O)}return xe}else return[]},-1),c(X,"$curry",function(se){var me=this;se===void 0?se=me.length:(se=L["$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 J(){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 J.apply(null,xe.concat(t(arguments)))},Ae.$$is_lambda=me.$$is_lambda,Ae.$$is_curried=!0,Ae)}return J.$$is_lambda=me.$$is_lambda,J.$$is_curried=!0,J},-1),c(X,"$dup",function(){var se=this,me=se.$$original_proc||se,J=function(){return me.apply(this,arguments)};for(var xe in se)se.hasOwnProperty(xe)&&(J[xe]=se[xe]);return J}),H(X,"===","call"),H(X,"clone","dup"),H(X,"yield","call"),H(X,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,c=e.Kernel,f=e.send,p=e.to_a,h=e.nil,I=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(L,H){var pe=t(L,H,"Method"),be=pe.$$prototype;return be.method=be.receiver=be.owner=be.name=h,pe.$attr_reader("owner","receiver","name"),r(pe,"$initialize",function(W,X,ge,se){var me=this;return me.receiver=W,me.owner=X,me.name=se,me.method=ge}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,X=h;return n(X=W.method.$$source_location)?X:["(eval)",0]}),r(pe,"$comments",function(){var W=this,X=h;return n(X=W.method.$$comments)?X:[]}),r(pe,"$call",function re(W){var X=re.$$p||h,ge,se,me=this;return re.$$p=null,ge=i(arguments),se=ge,me.method.$$p=X,me.method.apply(me.receiver,se)},-1),r(pe,"$curry",function(W){var X=this;return X.method.$curry(W)},-1),r(pe,"$>>",function(W){var X=this;return X.method["$>>"](W)}),r(pe,"$<<",function(W){var X=this;return X.method["$<<"](W)}),r(pe,"$unbind",function(){var W=this;return I("UnboundMethod").$new(W.receiver.$class(),W.owner,W.method,W.name)}),r(pe,"$to_proc",function(){var W=this,X=W.$call.bind(W);return X.$$unbound=W.method,X.$$is_lambda=!0,X.$$arity=W.method.$$arity==null?W.method.length:W.method.$$arity,X.$$parameters=W.method.$$parameters,X}),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.receiver.$class()+"#"+W.name+" (defined in "+W.owner+" in "+W.$source_location().$join(":")+")>"}),s(pe,"[]","call"),s(pe,"===","call")}("::",null),function(L,H){var pe=t(L,H,"UnboundMethod"),be=pe.$$prototype;return be.method=be.owner=be.name=be.source=h,pe.$attr_reader("source","owner","name"),r(pe,"$initialize",function(W,X,ge,se){var me=this;return me.source=W,me.owner=X,me.method=ge,me.name=se}),r(pe,"$arity",function(){var W=this;return W.method.$arity()}),r(pe,"$parameters",function(){var W=this;return W.method.$$parameters}),r(pe,"$source_location",function(){var W=this,X=h;return n(X=W.method.$$source_location)?X:["(eval)",0]}),r(pe,"$comments",function(){var W=this,X=h;return n(X=W.method.$$comments)?X:[]}),r(pe,"$bind",function(W){var X=this;if(X.owner.$$is_module||e.is_a(W,X.owner))return I("Method").$new(W,X.owner,X.method,X.name);c.$raise(I("TypeError"),"can't bind singleton method to a different class (expected "+W+".kind_of?("+X.owner+" to be true)")}),r(pe,"$bind_call",function re(W,X){var ge=re.$$p||h,se,me,J=this;return re.$$p=null,se=i(arguments,1),me=se,f(J.$bind(W),"call",p(me),ge.$to_proc())},-2),r(pe,"$inspect",function(){var W=this;return"#<"+W.$class()+": "+W.source+"#"+W.name+" (defined in "+W.owner+" in "+W.$source_location().$join(":")+")>"})}("::",null)};Opal.modules["corelib/variables"]=function(e){var t=e.gvars,r=e.const_set,n=e.Object,i=e.hash2,s=e.nil;return e.add_stubs("new"),t["&"]=t["~"]=t["`"]=t["'"]=s,t.LOADED_FEATURES=t['"']=e.loaded_features,t.LOAD_PATH=t[":"]=[],t["/"]=`
398
- `,t[","]=s,r("::","ARGV",[]),r("::","ARGF",n.$new()),r("::","ENV",i([],{})),t.VERBOSE=!1,t.DEBUG=!1,t.SAFE=0};Opal.modules["corelib/io"]=function(e){var t=e.klass,r=e.const_set,n=e.not,i=e.truthy,s=e.def,c=e.return_ivar,f=e.return_val,p=e.slice,h=e.Kernel,I=e.gvars,L=e.send,H=e.to_a,pe=e.rb_plus,be=e.neqeq,re=e.range,W=e.hash2,X=e.eqeq,ge=e.to_ary,se=e.rb_gt,me=e.assign_ivar_val,J=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 Le=this;return B==null&&(B="r"),Le.fd=ne,Le.flags=B,Le.eof=!1,i(B["$include?"]("r"))&&n(B["$match?"](/[wa+]/))?Le.closed="write":i(B["$match?"](/[wa]/))&&n(B["$match?"](/[r+]/))?Le.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,Le,ue=this;I[","]==null&&(I[","]=fe),B=p(arguments),Le=B;for(var P=0,v=Le.length;P<v;P++)Le[P]=h.$String(Le[P]);return ue.$write(Le.join(I[","])),fe},-1),s(w,"$puts",function(ne){var B,Le,ue=this;B=p(arguments),Le=B;var P;if(Le.length===0)return ue.$write(`
399
- `),fe;for(var v=0,$=Le.length;v<$;v++)if(Le[v].$$is_array){var l=Le[v].$flatten();l.length>0&&L(ue,"puts",H(l))}else Le[v].$$is_string?P=Le[v].valueOf():P=h.$String(Le[v]),P.endsWith(`
400
- `)||(P+=`
401
- `),ue.$write(P);return fe},-1),s(w,"$getc",function(){var ne=this,B=fe,Le=fe,ue=fe;ne.read_buffer=i(B=ne.read_buffer)?B:"",Le="";do if(ne.read_buffer=pe(ne.read_buffer,Le),be(ne.read_buffer,""))return ue=ne.read_buffer["$[]"](0),ne.read_buffer=ne.read_buffer["$[]"](re(1,-1,!1)),ue;while(i(Le=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,Le,ue=this,P=fe;return B=p(arguments),Le=B,i(P=L(ue,"gets",H(Le)))?P:h.$raise(Ae("EOFError"),"end of file reached")},-1),s(w,"$gets",function(ne,B,Le){var ue,P,v=this,$=fe,l=fe,u=fe,d=fe,_=fe,k=fe;I["/"]==null&&(I["/"]=fe),ne==null&&(ne=!1),B==null&&(B=fe),Le==null&&(Le=W([],{})),i(ne.$$is_number)&&n(B)&&(ue=[!1,ne,B],ne=ue[0],B=ue[1],Le=ue[2]),i(ne.$$is_hash)&&n(B)&&X(Le,W([],{}))?(ue=[!1,fe,ne],ne=ue[0],B=ue[1],Le=ue[2]):i(B.$$is_hash)&&X(Le,W([],{}))&&(ue=[ne,fe,B],ne=ue[0],B=ue[1],Le=ue[2]),$=ne,X(ne,!1)&&(ne=I["/"]),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=pe(v.read_buffer,d),be(ne,"")&&i(i(ne.$$is_regexp)?v.read_buffer["$match?"](ne):v.read_buffer["$include?"](ne))){k=v.read_buffer,P=v.read_buffer.$split(ne,2),ue=ge(P),_=ue[0]==null?fe:ue[0],v.read_buffer=ue[1]==null?fe:ue[1],be(_,k)&&(_=pe(_,k["$[]"](_.$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=pe(_["$[]"](e.Range.$new(B,-1,!1)),v.read_buffer)),i(Le["$[]"]("chomp"))&&(_=_.$sub(/\r?\n$/,"")),X($,"")&&(_=_.$sub(/^[\r\n]+/,""))),X($,!1)&&(I._=_),_},-1),s(w,"$sysread",function(ne){var B=this,Le=fe;return i(Le=B.read_proc(ne))?Le:(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(Le){if(e.rescue(Le,[Ae("EOFError")]))try{return fe}finally{e.pop_exception()}else throw Le}}),s(w,"$readpartial",function(ne){var B,Le=this,ue=fe,P=fe,v=fe;return Le.read_buffer=i(ue=Le.read_buffer)?ue:"",P=Le.$sysread(ne),B=[pe(Le.read_buffer,i(ue=P)?ue:""),""],v=B[0],Le.read_buffer=B[1],X(v,"")&&(v=fe),v}),s(w,"$read",function(ne){var B,Le=this,ue=fe,P=fe,v=fe;ne==null&&(ne=fe),Le.read_buffer=i(ue=Le.read_buffer)?ue:"",P="",v=fe;do if(Le.read_buffer=pe(Le.read_buffer,P),i(ne)&&i(se(Le.read_buffer.$length(),ne)))return B=[Le.read_buffer["$[]"](e.Range.$new(0,ne,!0)),Le.read_buffer["$[]"](e.Range.$new(ne,-1,!1))],v=B[0],Le.read_buffer=B[1],v;while(i(P=Le.$sysread_noraise(i(ue=ne)?ue:65536)));return B=[Le.read_buffer,""],v=B[0],Le.read_buffer=B[1],v},-1),s(w,"$readlines",function(ne){var B=this;return I["/"]==null&&(I["/"]=fe),ne==null&&(ne=I["/"]),B.$each_line(ne).$to_a()},-1),s(w,"$each",function N(ne,B){var Le=N.$$p||fe,ue,P,v,$=this,l=fe;if(I["/"]==null&&(I["/"]=fe),N.$$p=null,ue=p(arguments),ue.length>0&&(P=ue.shift()),P==null&&(P=I["/"]),v=ue,Le===fe)return L($,"enum_for",["each",P].concat(H(v)));for(;i(l=L($,"gets",[P].concat(H(v))));)e.yield1(Le,l);return $},-1),s(w,"$each_byte",function N(){var ne=N.$$p||fe,B=this,Le=fe;if(N.$$p=null,ne===fe)return B.$enum_for("each_byte");for(;i(Le=B.$getbyte());)e.yield1(ne,Le);return B}),s(w,"$each_char",function N(){var ne=N.$$p||fe,B=this,Le=fe;if(N.$$p=null,ne===fe)return B.$enum_for("each_char");for(;i(Le=B.$getc());)e.yield1(ne,Le);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}),J(w,"each_line","each"),J(w,"eof?","eof")}("::",null),r("::","STDIN",I.stdin=Ae("IO").$new(0,"r")),r("::","STDOUT",I.stdout=Ae("IO").$new(1,"w")),r("::","STDERR",I.stderr=Ae("IO").$new(2,"w"));var O=e.global.console;return Ae("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ee){process.stdout.write(Ee)}:function(Ee){O.log(Ee)}),Ae("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ee){process.stderr.write(Ee)}:function(Ee){O.warn(Ee)}),xe=[function(Ee){var ce=prompt();return ce!==null?ce+`
402
- `:fe}],L(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,I=e.alias,L=e.nil,H=e.$$$;return e.add_stubs("respond_to?,[],==,length,coerce_to?,nil?,to_a,raise,to_int,fetch,Integer,Float,to_ary,to_str,inspect,to_s,format"),function(pe){var be=r(pe,"Kernel");return h(be,"$format",function(W,X){var ge,se,me=L;p.DEBUG==null&&(p.DEBUG=L),ge=n(arguments,1),se=ge,s(se.$length(),1)&&i(se["$[]"](0)["$respond_to?"]("to_ary"))&&(me=c["$coerce_to?"](se["$[]"](0),H("Array"),"to_ary"),i(me["$nil?"]())||(se=me.$to_a()));var J="",xe=0,fe,Ae,O=W.length,Ee,ce,w,Se,N,ne,B,Le,ue,P,v,$,l,u=1,d=0,_,k=0,A=1,Q=2,De=4,rt=8,ft=16,_t=32,At=64,bt=128;function Mt(){_&_t&&f.$raise(H("ArgumentError"),"flag after width"),_&bt&&f.$raise(H("ArgumentError"),"flag after precision")}function Et(){_&_t&&f.$raise(H("ArgumentError"),"width given twice"),_&bt&&f.$raise(H("ArgumentError"),"width after precision")}function qt(x){return x>=se.length&&f.$raise(H("ArgumentError"),"too few arguments"),se[x]}function It(){switch(d){case-1:f.$raise(H("ArgumentError"),"unnumbered("+u+") mixed with numbered");case-2:f.$raise(H("ArgumentError"),"unnumbered("+u+") mixed with named")}return d=u++,qt(d-1)}function nt(x){return d>0&&f.$raise(H("ArgumentError"),"numbered("+x+") after unnumbered("+d+")"),d===-2&&f.$raise(H("ArgumentError"),"numbered("+x+") after named"),x<1&&f.$raise(H("ArgumentError"),"invalid index - "+x+"$"),d=-1,qt(x-1)}function Re(){return l===void 0?It():l}function je(x){for(var R,ve="";;Ae++){if(Ae===O&&f.$raise(H("ArgumentError"),"malformed format string - %*[0-9]"),W.charCodeAt(Ae)<48||W.charCodeAt(Ae)>57)return Ae--,R=parseInt(ve,10)||0,R>2147483647&&f.$raise(H("ArgumentError"),""+x+" too big"),R;ve+=W.charAt(Ae)}}function Ke(x){var R,ve=je(x);return W.charAt(Ae+1)==="$"?(Ae++,R=nt(ve)):R=It(),R.$to_int()}for(Ae=W.indexOf("%");Ae!==-1;Ae=W.indexOf("%",Ae)){switch(ce=void 0,_=k,Se=-1,N=-1,l=void 0,fe=Ae,Ae++,W.charAt(Ae)){case"%":xe=Ae;case"":case`
403
- `:case"\0":Ae++;continue}e:for(;Ae<O;Ae++)switch(W.charAt(Ae)){case" ":Mt(),_|=ft;continue e;case"#":Mt(),_|=A;continue e;case"+":Mt(),_|=De;continue e;case"-":Mt(),_|=Q;continue e;case"0":Mt(),_|=rt;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(ne=je("width"),W.charAt(Ae+1)==="$"){if(Ae+2===O){ce="%",Ae++;break e}l!==void 0&&f.$raise(H("ArgumentError"),"value given twice - %"+ne+"$"),l=nt(ne),Ae++}else Et(),_|=_t,Se=ne;continue e;case"<":case"{":for(Le=W.charAt(Ae)==="<"?">":"}",B="",Ae++;;Ae++){if(Ae===O&&f.$raise(H("ArgumentError"),"malformed name - unmatched parenthesis"),W.charAt(Ae)===Le){if(d>0&&f.$raise(H("ArgumentError"),"named "+B+" after unnumbered("+d+")"),d===-1&&f.$raise(H("ArgumentError"),"named "+B+" after numbered"),d=-2,(se[0]===void 0||!se[0].$$is_hash)&&f.$raise(H("ArgumentError"),"one hash required"),l=se[0].$fetch(B),Le===">")continue e;if(ce=l.toString(),N!==-1&&(ce=ce.slice(0,N)),_&Q)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e}B+=W.charAt(Ae)}case"*":Ae++,Et(),_|=_t,Se=Ke("width"),Se<0&&(_|=Q,Se=-Se);continue e;case".":if(_&bt&&f.$raise(H("ArgumentError"),"precision given twice"),_|=At|bt,N=0,Ae++,W.charAt(Ae)==="*"){Ae++,N=Ke("precision"),N<0&&(_&=~At);continue e}N=je("precision");continue e;case"d":case"i":case"u":if(Ee=f.$Integer(Re()),Ee>=0){for(ce=Ee.toString();ce.length<N;)ce="0"+ce;if(_&Q)for((_&De||_&ft)&&(ce=(_&De?"+":" ")+ce);ce.length<Se;)ce=ce+" ";else if(_&rt&&N===-1){for(;ce.length<Se-(_&De||_&ft?1:0);)ce="0"+ce;(_&De||_&ft)&&(ce=(_&De?"+":" ")+ce)}else for((_&De||_&ft)&&(ce=(_&De?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else{for(ce=(-Ee).toString();ce.length<N;)ce="0"+ce;if(_&Q)for(ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&rt&&N===-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(W.charAt(Ae)){case"b":case"B":ue=2,P="0b",v=/^1+/,$="1";break;case"o":ue=8,P="0",v=/^3?7+/,$="7";break;case"x":case"X":ue=16,P="0x",v=/^f+/,$="f";break}if(Ee=f.$Integer(Re()),Ee>=0){for(ce=Ee.toString(ue);ce.length<N;)ce="0"+ce;if(_&Q)for((_&De||_&ft)&&(ce=(_&De?"+":" ")+ce),_&A&&Ee!==0&&(ce=P+ce);ce.length<Se;)ce=ce+" ";else if(_&rt&&N===-1){for(;ce.length<Se-(_&De||_&ft?1:0)-(_&A&&Ee!==0?P.length:0);)ce="0"+ce;_&A&&Ee!==0&&(ce=P+ce),(_&De||_&ft)&&(ce=(_&De?"+":" ")+ce)}else for(_&A&&Ee!==0&&(ce=P+ce),(_&De||_&ft)&&(ce=(_&De?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else if(_&De||_&ft){for(ce=(-Ee).toString(ue);ce.length<N;)ce="0"+ce;if(_&Q)for(_&A&&(ce=P+ce),ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&rt&&N===-1){for(;ce.length<Se-1-(_&A?2:0);)ce="0"+ce;_&A&&(ce=P+ce),ce="-"+ce}else for(_&A&&(ce=P+ce),ce="-"+ce;ce.length<Se;)ce=" "+ce}else{for(ce=(Ee>>>0).toString(ue).replace(v,$);ce.length<N-2;)ce=$+ce;if(_&Q)for(ce=".."+ce,_&A&&(ce=P+ce);ce.length<Se;)ce=ce+" ";else if(_&rt&&N===-1){for(;ce.length<Se-2-(_&A?P.length:0);)ce=$+ce;ce=".."+ce,_&A&&(ce=P+ce)}else for(ce=".."+ce,_&A&&(ce=P+ce);ce.length<Se;)ce=" "+ce}W.charAt(Ae)===W.charAt(Ae).toUpperCase()&&(ce=ce.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ee=f.$Float(Re()),Ee>=0||isNaN(Ee)){if(Ee===1/0)ce="Inf";else switch(W.charAt(Ae)){case"f":ce=Ee.toFixed(N===-1?6:N);break;case"e":case"E":ce=Ee.toExponential(N===-1?6:N);break;case"g":case"G":ce=Ee.toExponential(),w=parseInt(ce.split("e")[1],10),w<-4||w>=(N===-1?6:N)||(ce=Ee.toPrecision(N===-1?_&A?6:void 0:N));break}if(_&Q)for((_&De||_&ft)&&(ce=(_&De?"+":" ")+ce);ce.length<Se;)ce=ce+" ";else if(_&rt&&Ee!==1/0&&!isNaN(Ee)){for(;ce.length<Se-(_&De||_&ft?1:0);)ce="0"+ce;(_&De||_&ft)&&(ce=(_&De?"+":" ")+ce)}else for((_&De||_&ft)&&(ce=(_&De?"+":" ")+ce);ce.length<Se;)ce=" "+ce}else{if(Ee===-1/0)ce="Inf";else switch(W.charAt(Ae)){case"f":ce=(-Ee).toFixed(N===-1?6:N);break;case"e":case"E":ce=(-Ee).toExponential(N===-1?6:N);break;case"g":case"G":ce=(-Ee).toExponential(),w=parseInt(ce.split("e")[1],10),w<-4||w>=(N===-1?6:N)||(ce=(-Ee).toPrecision(N===-1?_&A?6:void 0:N));break}if(_&Q)for(ce="-"+ce;ce.length<Se;)ce=ce+" ";else if(_&rt&&Ee!==-1/0){for(;ce.length<Se-1;)ce="0"+ce;ce="-"+ce}else for(ce="-"+ce;ce.length<Se;)ce=" "+ce}W.charAt(Ae)===W.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(H("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ee=Re(),Ee["$respond_to?"]("to_ary")&&(Ee=Ee.$to_ary()[0]),Ee["$respond_to?"]("to_str")?ce=Ee.$to_str():ce=String.fromCharCode(t(Ee,H("Integer"),"to_int")),ce.length!==1&&f.$raise(H("ArgumentError"),"%c requires a character"),_&Q)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;case"p":if(ce=Re().$inspect(),N!==-1&&(ce=ce.slice(0,N)),_&Q)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;case"s":if(ce=Re().$to_s(),N!==-1&&(ce=ce.slice(0,N)),_&Q)for(;ce.length<Se;)ce=ce+" ";else for(;ce.length<Se;)ce=" "+ce;break e;default:f.$raise(H("ArgumentError"),"malformed format string - %"+W.charAt(Ae))}ce===void 0&&f.$raise(H("ArgumentError"),"malformed format string - %"),J+=W.slice(xe,fe)+ce,xe=Ae+1}return p.DEBUG&&d>=0&&u<se.length&&f.$raise(H("ArgumentError"),"too many arguments for format string"),J+W.slice(xe)},-2),I(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,I=e.return_val,L=e.slice,H=e.Kernel,pe=e.Opal,be=e.rb_lt,re,W=e.top,X=[],ge=e.$r(X),se=e.nil,me=e.$$$;return e.add_stubs("require,+,[],clone,initialize,new,instance_eval,to_proc,each,const_set,tr,==,default_external,attr_accessor,singleton_class,attr_reader,raise,register,length,bytes,force_encoding,dup,bytesize,enum_for,each_byte,to_a,each_char,each_codepoint,coerce_to!,find,<,default_external="),W.$require("corelib/string"),function(J,xe){var fe=t(J,xe,"Encoding"),Ae=fe.$$prototype;return Ae.name=Ae.dummy=se,c(fe,"$register",function O(Ee,ce){var w=O.$$p||se,Se=this,N=se,ne=se,B=se,Le=se,ue=se,P=se;return O.$$p=null,ce==null&&(ce=r([],{})),N=n([Ee],i(ne=ce["$[]"]("aliases"))?ne:[]),B=i(ne=ce["$[]"]("ascii"))&&ne,Le=i(ne=ce["$[]"]("dummy"))&&ne,i(ce["$[]"]("inherits"))?(ue=ce["$[]"]("inherits").$clone(),ue.$initialize(Ee,N,B,Le)):ue=Se.$new(Ee,N,B,Le),w!==se&&s(ue,"instance_eval",[],w.$to_proc()),P=e.encodings,s(N,"each",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&($=se),l.$const_set($.$tr("-","_"),ue),P[$]=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 N=this;return N.name=Ee,N.names=ce,N.ascii=w,N.dummy=Se}),p(fe,"$ascii_compatible?",h("ascii")),p(fe,"$dummy?",h("dummy")),p(fe,"$binary?",I(!1)),p(fe,"$to_s",h("name")),p(fe,"$inspect",function(){var Ee=this;return"#<Encoding:"+Ee.name+(i(Ee.dummy)?" (dummy)":se)+">"}),p(fe,"$charsize",function(Ee){for(var ce=0,w=0,Se=Ee.length;w<Se;w++){var N=Ee.charCodeAt(w);N>=55296&&N<=56319||ce++}return ce}),p(fe,"$each_char",function O(Ee){var ce=O.$$p||se;O.$$p=null;for(var w="",Se=0,N=Ee.length;Se<N;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 L(arguments),H.$raise(me("NotImplementedError"))},-1),p(fe,"$bytesize",function(Ee){return L(arguments),H.$raise(me("NotImplementedError"))},-1),t("::",me("StandardError"),"EncodingError"),t("::",me("EncodingError"),"CompatibilityError"),se}("::",null),s(me("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=1/0,ce,w=Ae.length,Se=null,N=0;N<w;++N){if(ce=Ae.charCodeAt(N),ce>55295&&ce<57344){if(!Se){if(ce>56319){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}else if(N+1===w){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));continue}Se=ce;continue}if(ce<56320){(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189)),Se=ce;continue}ce=(Se-55296<<10|ce-56320)+65536}else Se&&(Ee-=3)>-1&&(e.yield1(O,239),e.yield1(O,191),e.yield1(O,189));if(Se=null,ce<128){if((Ee-=1)<0)break;e.yield1(O,ce)}else if(ce<2048){if((Ee-=2)<0)break;e.yield1(O,ce>>6|192),e.yield1(O,ce&63|128)}else if(ce<65536){if((Ee-=3)<0)break;e.yield1(O,ce>>12|224),e.yield1(O,ce>>6&63|128),e.yield1(O,ce&63|128)}else if(ce<1114112){if((Ee-=4)<0)break;e.yield1(O,ce>>18|240),e.yield1(O,ce>>12&63|128),e.yield1(O,ce>>6&63|128),e.yield1(O,ce&63|128)}}}),p(xe,"$bytesize",function(Ae){return Ae.$bytes().$length()})},{$$s:W}),s(me("Encoding"),"register",["UTF-16LE"],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255),e.yield1(O,w>>8)}}),p(xe,"$bytesize",function(Ae){return Ae.length*2})},{$$s:W}),s(me("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_16LE")})],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:W}),s(me("Encoding"),"register",["UTF-32LE"],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255),e.yield1(O,w>>8),e.yield1(O,0),e.yield1(O,0)}}),p(xe,"$bytesize",function(Ae){return Ae.length*4})},{$$s:W}),s(me("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:me(me("Encoding"),"UTF_32LE")})],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,0),e.yield1(O,0),e.yield1(O,w>>8),e.yield1(O,w&255)}})},{$$s:W}),s(me("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function J(){var xe=J.$$s==null?this:J.$$s;return p(xe,"$each_char",function fe(Ae){var O=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(O,w)}}),p(xe,"$charsize",function(Ae){return Ae.length}),p(xe,"$each_byte",function fe(Ae){var O=fe.$$p||se;fe.$$p=null;for(var Ee=0,ce=Ae.length;Ee<ce;Ee++){var w=Ae.charCodeAt(Ee);e.yield1(O,w&255)}}),p(xe,"$bytesize",function(Ae){return Ae.length}),p(xe,"$binary?",I(!0))},{$$s:W}),me("Encoding").$register("ISO-8859-1",r(["aliases","ascii","inherits"],{aliases:["ISO8859-1"],ascii:!0,inherits:me(me("Encoding"),"ASCII_8BIT")})),me("Encoding").$register("US-ASCII",r(["aliases","ascii","inherits"],{aliases:["ASCII"],ascii:!0,inherits:me(me("Encoding"),"ASCII_8BIT")})),function(J,xe){var fe=t(J,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 O(){var Ee=O.$$p||se,ce=this;return O.$$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 O(){var Ee=O.$$p||se,ce=this;return O.$$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 O(){var Ee=O.$$p||se,ce=this;return O.$$p=null,i(Ee)?s(ce,"each_char",[],Ee.$to_proc()):ce.$each_char().$to_a()}),p(fe,"$each_codepoint",function O(){var Ee=O.$$p||se,ce=this;if(O.$$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 O(){var Ee=O.$$p||se,ce=this;return O.$$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=pe["$coerce_to!"](Ee,me("String"),"to_s"),Ee=me("Encoding").$find(Ee),Ee===w.encoding)||(w=e.set_encoding(w,Ee)),w}),p(fe,"$getbyte",function(Ee){var ce=this,w=se;return w=ce.$bytes(),Ee=pe["$coerce_to!"](Ee,me("Integer"),"to_int"),i(be(w.$length(),Ee))?se:w["$[]"](Ee)}),p(fe,"$initialize_copy",function(Ee){return`
404
- self.encoding = other.encoding;
405
- self.internal_encoding = other.internal_encoding;
406
- `}),p(fe,"$valid_encoding?",I(!0))}("::",null),re=[me(ge("Encoding"),"UTF_8")],s(me("Encoding"),"default_external=",re),re[re.length-1]};Opal.modules["corelib/math"]=function(e){var t=e.type_error,r=e.module,n=e.const_set,i=e.Class,s=e.slice,c=e.Kernel,f=e.defs,p=e.truthy,h=e.send,I=e.def,L=e.rb_minus,H=e.eqeqeq,pe=e.rb_divide,be=[],re=e.nil,W=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(X,ge){var se=r(X,"Math"),me=[se].concat(ge),J=e.$r(me);return n(se,"E",Math.E),n(se,"PI",Math.PI),n(se,"DomainError",i.$new(W("StandardError"))),f(se,"$checked",function(fe,Ae){var O,Ee;if(O=s(arguments,1),Ee=O,isNaN(Ee[0])||Ee.length==2&&isNaN(Ee[1]))return NaN;var ce=Math[fe].apply(null,Ee);return isNaN(ce)&&c.$raise(J("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,[W("ArgumentError")]))try{return c.$raise(t(fe,W("Float")))}finally{e.pop_exception()}else throw Ae}}),f(se,"$integer!",function(fe){try{return c.$Integer(fe)}catch(Ae){if(e.rescue(Ae,[W("ArgumentError")]))try{return c.$raise(t(fe,W("Integer")))}finally{e.pop_exception()}else throw Ae}}),se.$module_function(),p(typeof Math.erf<"u")||e.prop(Math,"erf",function(xe){var fe=.254829592,Ae=-.284496736,O=1.421413741,Ee=-1.453152027,ce=1.061405429,w=.3275911,Se=1;xe<0&&(Se=-1),xe=Math.abs(xe);var N=1/(1+w*xe),ne=1-((((ce*N+Ee)*N+O)*N+Ae)*N+fe)*N*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),O=Ae*.17087277+-.82215223,Ee=Ae*O+1.48851587,ce=Ae*Ee+-1.13520398,w=Ae*ce+.27886807,Se=Ae*w+-.18628806,N=Ae*Se+.09678418,ne=Ae*N+.37409196,B=Ae*ne+1.00002368,Le=Ae*B,ue=-fe*fe-1.26551223+Le,P=Ae*Math.exp(ue);return xe<0?2-P:P}),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=re),h(Ae,"define_method",[fe],function(Ee){return Ee==null&&(Ee=re),W("Math").$checked(fe,W("Math")["$float!"](Ee))})},{$$s:se}),I(se,"$atan2",function(fe,Ae){return W("Math").$checked("atan2",W("Math")["$float!"](fe),W("Math")["$float!"](Ae))}),I(se,"$hypot",function(fe,Ae){return W("Math").$checked("hypot",W("Math")["$float!"](fe),W("Math")["$float!"](Ae))}),I(se,"$frexp",function(fe){if(fe=J("Math")["$float!"](fe),isNaN(fe))return[NaN,0];var Ae=Math.floor(Math.log(Math.abs(fe))/Math.log(2))+1,O=fe/Math.pow(2,Ae);return[O,Ae]}),I(se,"$gamma",function(fe){fe=J("Math")["$float!"](fe);var Ae,O,Ee,ce,w,Se,N,ne,B,Le=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(J("DomainError"),'Numerical argument is out of domain - "gamma"'),J("Integer")["$==="](fe)){if(fe<=0)return isFinite(fe)?1/0:NaN;if(fe>171)return 1/0;for(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)*W("Math").$gamma(L(1,fe)));if(fe>=171.35)return 1/0;if(fe>85)return Se=fe*fe,N=Se*fe,ne=N*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*N)-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 O=fe+Le+.5,Math.sqrt(2*Math.PI)*Math.pow(O,fe+.5)*Math.exp(-O)*Ee}),I(se,"$ldexp",function(fe,Ae){return fe=J("Math")["$float!"](fe),Ae=J("Math")["$integer!"](Ae),isNaN(Ae)&&c.$raise(W("RangeError"),"float NaN out of range of integer"),fe*Math.pow(2,Ae)}),I(se,"$lgamma",function(fe){return fe==-1?[1/0,1]:[Math.log(Math.abs(W("Math").$gamma(fe))),W("Math").$gamma(fe)<0?-1:1]}),I(se,"$log",function(fe,Ae){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),p(Ae==null)?W("Math").$checked("log",W("Math")["$float!"](fe)):(H(W("String"),Ae)&&c.$raise(t(Ae,W("Float"))),pe(W("Math").$checked("log",W("Math")["$float!"](fe)),W("Math").$checked("log",W("Math")["$float!"](Ae))))},-2),I(se,"$log10",function(fe){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),W("Math").$checked("log10",W("Math")["$float!"](fe))}),I(se,"$log2",function(fe){return H(W("String"),fe)&&c.$raise(t(fe,W("Float"))),W("Math").$checked("log2",W("Math")["$float!"](fe))}),I(se,"$tan",function(fe){return fe=W("Math")["$float!"](fe),p(fe["$infinite?"]())?W(W("Float"),"NAN"):W("Math").$checked("tan",W("Math")["$float!"](fe))})}("::",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"),I=[h].concat(p),L=e.$r(I);return n(h,"$Complex",function(pe,be){return be==null&&(be=c),r(be)?L("Complex").$new(pe,be):L("Complex").$new(pe,0)},-2)}("::",s),function(f,p,h){var I=i(f,p,"String"),L=[I].concat(h),H=e.$r(L);return n(I,"$to_c",function(){var be=this;return H("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,I=e.rb_divide,L=e.eqeq,H=e.to_ary,pe=e.rb_gt,be=e.neqeq,re=e.return_val,W=e.const_set,X=e.alias,ge=e.top,se=[],me=e.nil,J=e.$$$;return e.add_stubs("require,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,-,nan?,/,conj,abs2,quo,polar,exp,log,>,!=,divmod,**,hypot,atan2,lcm,denominator,finite?,infinite?,numerator,abs,arg,rationalize,to_f,to_i,to_r,inspect,zero?,positive?,Rational,rect,angle"),ge.$require("corelib/numeric"),ge.$require("corelib/complex/base"),function(xe,fe,Ae){var O=t(xe,fe,"Complex"),Ee=[O].concat(Ae),ce=e.$r(Ee),w=O.$$prototype;return w.real=w.imag=me,s(O,"$rect",function(N,ne){var B=this;return ne==null&&(ne=0),n(J("Numeric"),N)&&r(N["$real?"]())&&n(J("Numeric"),ne)&&r(ne["$real?"]())||i.$raise(J("TypeError"),"not a real"),B.$new(N,ne)},-2),s(O,"$polar",function(N,ne){var B=this;return ne==null&&(ne=0),n(J("Numeric"),N)&&r(N["$real?"]())&&n(J("Numeric"),ne)&&r(ne["$real?"]())||i.$raise(J("TypeError"),"not a real"),B.$new(c(N,J("Math").$cos(ne)),c(N,J("Math").$sin(ne)))},-2),O.$attr_reader("real","imag"),f(O,"$initialize",function(N,ne){var B=this;return ne==null&&(ne=0),B.real=N,B.imag=ne,B.$freeze()},-2),f(O,"$coerce",function(N){var ne=this;return n(J("Complex"),N)?[N,ne]:n(J("Numeric"),N)&&r(N["$real?"]())?[J("Complex").$new(N,0),ne]:i.$raise(J("TypeError"),""+N.$class()+" can't be coerced into Complex")}),f(O,"$==",function(N){var ne=this,B=me;return n(J("Complex"),N)?r(B=ne.real["$=="](N.$real()))?ne.imag["$=="](N.$imag()):B:n(J("Numeric"),N)&&r(N["$real?"]())?r(B=ne.real["$=="](N))?ne.imag["$=="](0):B:N["$=="](ne)}),f(O,"$-@",function(){var N=this;return i.$Complex(N.real["$-@"](),N.imag["$-@"]())}),f(O,"$+",function(N){var ne=this;return n(J("Complex"),N)?i.$Complex(p(ne.real,N.$real()),p(ne.imag,N.$imag())):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(p(ne.real,N),ne.imag):ne.$__coerced__("+",N)}),f(O,"$-",function(N){var ne=this;return n(J("Complex"),N)?i.$Complex(h(ne.real,N.$real()),h(ne.imag,N.$imag())):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(h(ne.real,N),ne.imag):ne.$__coerced__("-",N)}),f(O,"$*",function(N){var ne=this;return n(J("Complex"),N)?i.$Complex(h(c(ne.real,N.$real()),c(ne.imag,N.$imag())),p(c(ne.real,N.$imag()),c(ne.imag,N.$real()))):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(c(ne.real,N),c(ne.imag,N)):ne.$__coerced__("*",N)}),f(O,"$/",function(N){var ne=this;return n(J("Complex"),N)?n(J("Number"),ne.real)&&r(ne.real["$nan?"]())||n(J("Number"),ne.imag)&&r(ne.imag["$nan?"]())||n(J("Number"),N.$real())&&r(N.$real()["$nan?"]())||n(J("Number"),N.$imag())&&r(N.$imag()["$nan?"]())?J("Complex").$new(J(J("Float"),"NAN"),J(J("Float"),"NAN")):I(c(ne,N.$conj()),N.$abs2()):n(J("Numeric"),N)&&r(N["$real?"]())?i.$Complex(ne.real.$quo(N),ne.imag.$quo(N)):ne.$__coerced__("/",N)}),f(O,"$**",function(N){var ne,B,Le=this,ue=me,P=me,v=me,$=me,l=me,u=me,d=me,_=me,k=me,A=me,Q=me;if(L(N,0))return J("Complex").$new(1,0);if(n(J("Complex"),N))return B=Le.$polar(),ne=H(B),ue=ne[0]==null?me:ne[0],P=ne[1]==null?me:ne[1],v=N.$real(),$=N.$imag(),l=J("Math").$exp(h(c(v,J("Math").$log(ue)),c($,P))),u=p(c(P,v),c($,J("Math").$log(ue))),J("Complex").$polar(l,u);if(n(J("Integer"),N))if(r(pe(N,0))){for(d=Le,_=d,k=h(N,1);be(k,0);){for(B=k.$divmod(2),ne=H(B),A=ne[0]==null?me:ne[0],Q=ne[1]==null?me:ne[1];L(Q,0);)d=i.$Complex(h(c(d.$real(),d.$real()),c(d.$imag(),d.$imag())),c(c(2,d.$real()),d.$imag())),k=A,B=k.$divmod(2),ne=H(B),A=ne[0]==null?me:ne[0],Q=ne[1]==null?me:ne[1];_=c(_,d),k=h(k,1)}return _}else return I(J("Rational").$new(1,1),Le)["$**"](N["$-@"]());else return n(J("Float"),N)||n(J("Rational"),N)?(B=Le.$polar(),ne=H(B),ue=ne[0]==null?me:ne[0],P=ne[1]==null?me:ne[1],J("Complex").$polar(ue["$**"](N),c(P,N))):Le.$__coerced__("**",N)}),f(O,"$abs",function(){var N=this;return J("Math").$hypot(N.real,N.imag)}),f(O,"$abs2",function(){var N=this;return p(c(N.real,N.real),c(N.imag,N.imag))}),f(O,"$angle",function(){var N=this;return J("Math").$atan2(N.imag,N.real)}),f(O,"$conj",function(){var N=this;return i.$Complex(N.real,N.imag["$-@"]())}),f(O,"$denominator",function(){var N=this;return N.real.$denominator().$lcm(N.imag.$denominator())}),f(O,"$eql?",function(N){var ne=this,B=me,Le=me;return r(B=r(Le=ce("Complex")["$==="](N))?ne.real.$class()["$=="](ne.imag.$class()):Le)?ne["$=="](N):B}),f(O,"$fdiv",function(N){var ne=this;return n(J("Numeric"),N)||i.$raise(J("TypeError"),""+N.$class()+" can't be coerced into Complex"),I(ne,N)}),f(O,"$finite?",function(){var N=this,ne=me;return r(ne=N.real["$finite?"]())?N.imag["$finite?"]():ne}),f(O,"$hash",function(){var N=this;return"Complex:"+N.real+":"+N.imag}),f(O,"$infinite?",function(){var N=this,ne=me;return r(ne=N.real["$infinite?"]())?ne:N.imag["$infinite?"]()}),f(O,"$inspect",function(){var N=this;return"("+N+")"}),f(O,"$numerator",function(){var N=this,ne=me;return ne=N.$denominator(),i.$Complex(c(N.real.$numerator(),I(ne,N.real.$denominator())),c(N.imag.$numerator(),I(ne,N.imag.$denominator())))}),f(O,"$polar",function(){var N=this;return[N.$abs(),N.$arg()]}),f(O,"$rationalize",function(N){var ne=this;return arguments.length>1&&i.$raise(J("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),be(ne.imag,0)&&i.$raise(J("RangeError"),"can't convert "+ne+" into Rational"),ne.$real().$rationalize(N)},-1),f(O,"$real?",re(!1)),f(O,"$rect",function(){var N=this;return[N.real,N.imag]}),f(O,"$to_f",function(){var N=this;return L(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Float"),N.real.$to_f()}),f(O,"$to_i",function(){var N=this;return L(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Integer"),N.real.$to_i()}),f(O,"$to_r",function(){var N=this;return L(N.imag,0)||i.$raise(J("RangeError"),"can't convert "+N+" into Rational"),N.real.$to_r()}),f(O,"$to_s",function(){var N=this,ne=me;return ne=N.real.$inspect(),ne=p(ne,n(J("Number"),N.imag)&&r(N.imag["$nan?"]())||r(N.imag["$positive?"]())||r(N.imag["$zero?"]())?"+":"-"),ne=p(ne,N.imag.$abs().$inspect()),n(J("Number"),N.imag)&&(r(N.imag["$nan?"]())||r(N.imag["$infinite?"]()))&&(ne=p(ne,"*")),p(ne,"i")}),W(Ee[0],"I",O.$new(0,1)),s(O,"$from_string",function(N){var ne=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;N.match(ne);var B,Le;function ue(){return ne.test(N)}function P(){var $=N.match(ne),l=$[0];return N=N.slice(l.length),l.replace(/_/g,"")}function v(){if(ue()){var $=parseFloat(P());if(N[0]==="/")if(N=N.slice(1),ue()){var l=parseFloat(P());return i.$Rational($,l)}else return N="/"+N,$;else return $}else return null}return B=v(),B?(Le=v(),Le?i.$Complex(B,Le):N[0]==="i"?i.$Complex(0,B):i.$Complex(B,0)):N[0]==="i"?i.$Complex(0,1):N[0]==="-"&&N[1]==="i"?i.$Complex(0,-1):N[0]==="+"&&N[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Se,N){return X(Se,"rectangular","rect")}(e.get_singleton_class(O)),X(O,"arg","angle"),X(O,"conjugate","conj"),X(O,"divide","/"),X(O,"imaginary","imag"),X(O,"magnitude","abs"),X(O,"phase","arg"),X(O,"quo","/"),X(O,"rectangular","rect"),e.udef(O,"$negative?"),e.udef(O,"$positive?"),e.udef(O,"$step"),me}("::",J("Numeric"),se)};Opal.modules["corelib/rational/base"]=function(e){var t=e.module,r=e.def,n=e.klass;e.nil;var i=e.$$$;return e.add_stubs("convert,from_string"),function(s){var c=t(s,"Kernel");return r(c,"$Rational",function(p,h){return h==null&&(h=1),i("Rational").$convert(p,h)},-2)}("::"),function(s,c){var f=n(s,c,"String");return r(f,"$to_r",function(){var h=this;return i("Rational").$from_string(h)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,c=e.rb_divide,f=e.defs,p=e.eqeqeq,h=e.not,I=e.Opal,L=e.def,H=e.return_ivar,pe=e.rb_minus,be=e.rb_times,re=e.rb_plus,W=e.rb_gt,X=e.rb_le,ge=e.return_self,se=e.alias,me=e.top,J=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 O=t(fe,Ae,"Rational"),Ee=O.$$prototype;return Ee.num=Ee.den=J,f(O,"$reduce",function(w,Se){var N=this,ne=J;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 N.$new(w,Se);return ne=w.$gcd(Se),N.$new(c(w,ne),c(Se,ne))}),f(O,"$convert",function(w,Se){var N=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)?N.$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))?I["$coerce_to!"](w,xe("Rational"),"to_r"):p(xe("Numeric"),w)&&p(xe("Numeric"),Se)?c(w,Se):N.$reduce(w,Se))}),L(O,"$initialize",function(w,Se){var N=this;return N.num=w,N.den=Se,N.$freeze()}),L(O,"$numerator",H("num")),L(O,"$denominator",H("den")),L(O,"$coerce",function(w){var Se=this,N=J;return p(xe("Rational"),N=w)?[w,Se]:p(xe("Integer"),N)?[w.$to_r(),Se]:p(xe("Float"),N)?[w,Se.$to_f()]:J}),L(O,"$==",function(w){var Se=this,N=J,ne=J;return p(xe("Rational"),N=w)?i(ne=Se.num["$=="](w.$numerator()))?Se.den["$=="](w.$denominator()):ne:p(xe("Integer"),N)?i(ne=Se.num["$=="](w))?Se.den["$=="](1):ne:p(xe("Float"),N)?Se.$to_f()["$=="](w):w["$=="](Se)}),L(O,"$<=>",function(w){var Se=this,N=J;return p(xe("Rational"),N=w)?pe(be(Se.num,w.$denominator()),be(Se.den,w.$numerator()))["$<=>"](0):p(xe("Integer"),N)?pe(Se.num,be(Se.den,w))["$<=>"](0):p(xe("Float"),N)?Se.$to_f()["$<=>"](w):Se.$__coerced__("<=>",w)}),L(O,"$+",function(w){var Se=this,N=J,ne=J,B=J;return p(xe("Rational"),N=w)?(ne=re(be(Se.num,w.$denominator()),be(Se.den,w.$numerator())),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),N)?n.$Rational(re(Se.num,be(w,Se.den)),Se.den):p(xe("Float"),N)?re(Se.$to_f(),w):Se.$__coerced__("+",w)}),L(O,"$-",function(w){var Se=this,N=J,ne=J,B=J;return p(xe("Rational"),N=w)?(ne=pe(be(Se.num,w.$denominator()),be(Se.den,w.$numerator())),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),N)?n.$Rational(pe(Se.num,be(w,Se.den)),Se.den):p(xe("Float"),N)?pe(Se.$to_f(),w):Se.$__coerced__("-",w)}),L(O,"$*",function(w){var Se=this,N=J,ne=J,B=J;return p(xe("Rational"),N=w)?(ne=be(Se.num,w.$numerator()),B=be(Se.den,w.$denominator()),n.$Rational(ne,B)):p(xe("Integer"),N)?n.$Rational(be(Se.num,w),Se.den):p(xe("Float"),N)?be(Se.$to_f(),w):Se.$__coerced__("*",w)}),L(O,"$/",function(w){var Se=this,N=J,ne=J,B=J;return p(xe("Rational"),N=w)?(ne=be(Se.num,w.$denominator()),B=be(Se.den,w.$numerator()),n.$Rational(ne,B)):p(xe("Integer"),N)?r(w,0)?c(Se.$to_f(),0):n.$Rational(Se.num,be(Se.den,w)):p(xe("Float"),N)?c(Se.$to_f(),w):Se.$__coerced__("/",w)}),L(O,"$**",function(w){var Se=this,N=J;return p(xe("Integer"),N=w)?r(Se,0)&&i(s(w,0))?xe(xe("Float"),"INFINITY"):i(W(w,0))?n.$Rational(Se.num["$**"](w),Se.den["$**"](w)):i(s(w,0))?n.$Rational(Se.den["$**"](w["$-@"]()),Se.num["$**"](w["$-@"]())):n.$Rational(1,1):p(xe("Float"),N)?Se.$to_f()["$**"](w):p(xe("Rational"),N)?r(w,0)?n.$Rational(1,1):r(w.$denominator(),1)?i(s(w,0))?n.$Rational(Se.den["$**"](w.$numerator().$abs()),Se.num["$**"](w.$numerator().$abs())):n.$Rational(Se.num["$**"](w.$numerator()),Se.den["$**"](w.$numerator())):r(Se,0)&&i(s(w,0))?n.$raise(xe("ZeroDivisionError"),"divided by 0"):Se.$to_f()["$**"](w):Se.$__coerced__("**",w)}),L(O,"$abs",function(){var w=this;return n.$Rational(w.num.$abs(),w.den.$abs())}),L(O,"$ceil",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$ceil():Se.$with_precision("ceil",w)},-1),L(O,"$floor",function(w){var Se=this;return w==null&&(w=0),r(w,0)?c(Se.num["$-@"](),Se.den)["$-@"]().$floor():Se.$with_precision("floor",w)},-1),L(O,"$hash",function(){var w=this;return"Rational:"+w.num+":"+w.den}),L(O,"$inspect",function(){var w=this;return"("+w+")"}),L(O,"$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 N=w.$abs(),ne=pe(Se,N),B=re(Se,N),Le=0,ue=1,P=1,v=0,$,l,u,d,_;u=ne.$ceil(),!X(u,B);)d=u-1,$=d*ue+Le,l=d*v+P,_=c(1,pe(B,d)),B=c(1,pe(ne,d)),ne=_,Le=ue,P=v,ue=$,v=l;return n.$Rational(u*ue+Le,u*v+P)},-1),L(O,"$round",function(w){var Se=this,N=J,ne=J,B=J;return w==null&&(w=0),r(w,0)?r(Se.num,0)?0:r(Se.den,1)?Se.num:(N=re(be(Se.num.$abs(),2),Se.den),ne=be(Se.den,2),B=c(N,ne).$truncate(),i(s(Se.num,0))?B["$-@"]():B):Se.$with_precision("round",w)},-1),L(O,"$to_f",function(){var w=this;return c(w.num,w.den)}),L(O,"$to_i",function(){var w=this;return w.$truncate()}),L(O,"$to_r",ge),L(O,"$to_s",function(){var w=this;return""+w.num+"/"+w.den}),L(O,"$truncate",function(w){var Se=this;return w==null&&(w=0),r(w,0)?i(s(Se.num,0))?Se.$ceil():Se.$floor():Se.$with_precision("truncate",w)},-1),L(O,"$with_precision",function(w,Se){var N=this,ne=J,B=J;return p(xe("Integer"),Se)||n.$raise(xe("TypeError"),"not an Integer"),ne=10["$**"](Se),B=be(N,ne),i(s(Se,1))?c(B.$send(w),ne).$to_i():n.$Rational(B.$send(w),ne)}),f(O,"$from_string",function(w){var Se=w.trimLeft(),N=/^[+-]?[\d_]+(\.[\d_]+)?/;Se.match(N);var ne,B;function Le(){return N.test(Se)}function ue(){var P=Se.match(N),v=P[0];return Se=Se.slice(v.length),v.replace(/_/g,"")}return Le()?(ne=parseFloat(ue()),Se[0]==="/"?(Se=Se.slice(1),Le()?(B=parseFloat(ue()),n.$Rational(ne,B)):n.$Rational(ne,1)):n.$Rational(ne,1)):n.$Rational(0,1)}),se(O,"divide","/"),se(O,"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,I=e.rb_gt,L=e.rb_lt,H=e.send,pe=e.rb_plus,be=e.rb_divide,re=e.rb_minus,W=e.range,X=e.neqeq,ge=e.rb_le,se=e.eqeq,me=e.alias,J=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?"),J.$require("corelib/comparable"),function(O,Ee,ce){var w=n(O,Ee,"Time"),Se=[w].concat(ce),N=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"],Le=["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 P(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,_,k,A){var Q=this;l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),k==null&&(k=fe),A==null&&(A=fe);var De,rt,ft,_t;return $===void 0?new Date:(De=P($,l,u,d,_,k),$=De[0],l=De[1],u=De[2],d=De[3],_=De[4],k=De[5],A===fe?(rt=new Date($,l,u,d,_,0,k*1e3),$<100&&rt.setFullYear($),rt):(ft=Q.$_parse_offset(A),_t=new Date(Date.UTC($,l,u,d,_,0,k*1e3)),$<100&&_t.setUTCFullYear($),rt=new Date(_t.getTime()-ft*36e5),rt.timezone=ft,rt))},-1),c(w,"$_parse_offset",function($){var l;if($.$$is_string)if($=="UTC")l=0;else if(/^[+-]\d\d:[0-5]\d$/.test($)){var u,d,_;u=$[0],d=+($[1]+$[2]),_=+($[4]+$[5]),l=(u=="-"?-1:1)*(d+_/60)}else i.$raise(Ae("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+$);else $.$$is_number?l=$/3600:i.$raise(Ae("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return l}),c(w,"$local",function($,l,u,d,_,k,A,Q,De,rt){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),k==null&&(k=fe),A==null&&(A=fe),Q==null&&(Q=fe),De==null&&(De=fe),rt==null&&(rt=fe);var ft,_t;return arguments.length===10&&(ft=t(arguments),$=ft[5],l=ft[4],u=ft[3],d=ft[2],_=ft[1],k=ft[0]),ft=P($,l,u,d,_,k),$=ft[0],l=ft[1],u=ft[2],d=ft[3],_=ft[4],k=ft[5],_t=new Date($,l,u,d,_,0,k*1e3),$<100&&_t.setFullYear($),_t},-2),c(w,"$gm",function($,l,u,d,_,k,A,Q,De,rt){l==null&&(l=fe),u==null&&(u=fe),d==null&&(d=fe),_==null&&(_=fe),k==null&&(k=fe),A==null&&(A=fe),Q==null&&(Q=fe),De==null&&(De=fe),rt==null&&(rt=fe);var ft,_t;return arguments.length===10&&(ft=t(arguments),$=ft[5],l=ft[4],u=ft[3],d=ft[2],_=ft[1],k=ft[0]),ft=P($,l,u,d,_,k),$=ft[0],l=ft[1],u=ft[2],d=ft[3],_=ft[4],k=ft[5],_t=new Date(Date.UTC($,l,u,d,_,0,k*1e3)),$<100&&_t.setUTCFullYear($),_t.timezone=0,_t},-2),c(w,"$now",function(){var $=this;return $.$new()}),p(w,"$+",function($){var l=this;f(Ae("Time"),$)&&i.$raise(Ae("TypeError"),"time + time?"),$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()+$*1e3);return u.timezone=l.timezone,u}),p(w,"$-",function($){var l=this;if(f(Ae("Time"),$))return(l.getTime()-$.getTime())/1e3;$.$$is_number||($=s["$coerce_to!"]($,Ae("Integer"),"to_int"));var u=new Date(l.getTime()-$*1e3);return u.timezone=l.timezone,u}),p(w,"$<=>",function($){var l=this,u=fe;return f(Ae("Time"),$)?l.$to_f()["$<=>"]($.$to_f()):(u=$["$<=>"](l),h(u["$nil?"]())?fe:h(I(u,0))?-1:h(L(u,0))?1:0)}),p(w,"$==",function($){var l=this,u=fe;return h(u=Ae("Time")["$==="]($))?l.$to_f()===$.$to_f():u}),p(w,"$asctime",function(){var $=this;return $.$strftime("%a %b %e %H:%M:%S %Y")}),H([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function 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),H(_,"define_method",[$],function k(){var A=k.$$s==null?this:k.$$s;return d+(A.timezone!=null?new Date(A.getTime()+A.timezone*36e5)[u]():A[l]())},{$$s:_})},{$$arity:-4,$$s:w}),p(w,"$yday",function(){var $=this,l=fe,u=fe,d=fe;return l=N("Time").$new($.$year()).$to_i(),u=N("Time").$new($.$year(),$.$month(),$.$day()).$to_i(),d=86400,pe(be(re(u,l),d).$round(),1)}),p(w,"$isdst",function(){var $=this,l=new Date($.getFullYear(),0,1),u=new Date($.getFullYear(),6,1);return $.getTimezoneOffset()<Math.max(l.getTimezoneOffset(),u.getTimezoneOffset())}),p(w,"$dup",function(){var $=this,l=fe;return l=new Date($.getTime()),l.$copy_instance_variables($),l.$initialize_dup($),l}),p(w,"$eql?",function($){var l=this,u=fe;return h(u=$["$is_a?"](Ae("Time")))?l["$<=>"]($)["$zero?"]():u}),H([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function v($,l){var u=v.$$s==null?this:v.$$s;return $==null&&($=fe),l==null&&(l=fe),H(u,"define_method",[$],function d(){var _=d.$$s==null?this:d.$$s;return _.$wday()===l},{$$s:u})},{$$s:w}),p(w,"$hash",function(){var $=this;return"Time:"+$.getTime()}),p(w,"$inspect",function(){var $=this;return h($["$utc?"]())?$.$strftime("%Y-%m-%d %H:%M:%S UTC"):$.$strftime("%Y-%m-%d %H:%M:%S %z")}),p(w,"$succ",function(){var $=this,l=new Date($.getTime()+1e3);return l.timezone=$.timezone,l}),p(w,"$usec",function(){var $=this;return $.getMilliseconds()*1e3}),p(w,"$zone",function(){var $=this;if($.timezone===0)return"UTC";if($.timezone!=null)return fe;var l=$.toString(),u;return l.indexOf("(")==-1?u=l.match(/[A-Z]{3,4}/)[0]:u=l.match(/\((.+)\)(?:\s|$)/)[1],u=="GMT"&&/(GMT\W*\d{4})/.test(l)?RegExp.$1:u}),p(w,"$getgm",function(){var $=this,l=new Date($.getTime());return l.timezone=0,l}),p(w,"$gmtime",function(){var $=this;return $.timezone!==0&&(r($),$.timezone=0),$}),p(w,"$gmt?",function(){var $=this;return $.timezone===0}),p(w,"$gmt_offset",function(){var $=this;return $.timezone!=null?$.timezone*60:-$.getTimezoneOffset()*60}),p(w,"$strftime",function($){var l=this;return $.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(u,d,_,k,A){var Q="",De,rt,ft,_t=d.indexOf("0")!==-1,At=d.indexOf("-")===-1,bt=d.indexOf("_")!==-1,Mt=d.indexOf("^")!==-1,Et=d.indexOf("#")!==-1,qt=(d.match(":")||[]).length;switch(_=parseInt(_,10),_t&&bt&&(d.indexOf("0")<d.indexOf("_")?_t=!1:bt=!1),A){case"Y":Q+=l.$year();break;case"C":_t=!bt,Q+=Math.round(l.$year()/100);break;case"y":_t=!bt,Q+=l.$year()%100;break;case"m":_t=!bt,Q+=l.$mon();break;case"B":Q+=ue[l.$mon()-1];break;case"b":case"h":bt=!_t,Q+=Le[l.$mon()-1];break;case"d":_t=!bt,Q+=l.$day();break;case"e":bt=!_t,Q+=l.$day();break;case"j":_t=!bt,_=isNaN(_)?3:_,Q+=l.$yday();break;case"H":_t=!bt,Q+=l.$hour();break;case"k":bt=!_t,Q+=l.$hour();break;case"I":_t=!bt,Q+=l.$hour()%12||12;break;case"l":bt=!_t,Q+=l.$hour()%12||12;break;case"P":Q+=l.$hour()>=12?"pm":"am";break;case"p":Q+=l.$hour()>=12?"PM":"AM";break;case"M":_t=!bt,Q+=l.$min();break;case"S":_t=!bt,Q+=l.$sec();break;case"L":_t=!bt,_=isNaN(_)?3:_,Q+=l.getMilliseconds();break;case"N":_=isNaN(_)?9:_,Q+=l.getMilliseconds().toString().$rjust(3,"0"),Q=Q.$ljust(_,"0");break;case"z":var It=l.timezone==null?l.getTimezoneOffset():-l.timezone*60,nt=Math.floor(Math.abs(It)/60),Re=Math.abs(It)%60;Q+=It<0?"+":"-",Q+=nt<10?"0":"",Q+=nt,qt>0&&(Q+=":"),Q+=Re<10?"0":"",Q+=Re,qt>1&&(Q+=":00");break;case"Z":Q+=l.$zone();break;case"A":Q+=ne[l.$wday()];break;case"a":Q+=B[l.$wday()];break;case"u":Q+=l.$wday()+1;break;case"w":Q+=l.$wday();break;case"V":Q+=l.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":Q+=l.$cweek_cyear()["$[]"](1);break;case"g":Q+=l.$cweek_cyear()["$[]"](1)["$[]"](W(-2,-1,!1));break;case"s":Q+=l.$to_i();break;case"n":Q+=`
407
- `;break;case"t":Q+=" ";break;case"%":Q+="%";break;case"c":Q+=l.$strftime("%a %b %e %T %Y");break;case"D":case"x":Q+=l.$strftime("%m/%d/%y");break;case"F":Q+=l.$strftime("%Y-%m-%d");break;case"v":Q+=l.$strftime("%e-%^b-%4Y");break;case"r":Q+=l.$strftime("%I:%M:%S %p");break;case"R":Q+=l.$strftime("%H:%M");break;case"T":case"X":Q+=l.$strftime("%H:%M:%S");break;case"J":if(De=l.$to_date().$jd(),De<2405160){Q+=l.$strftime("%Y-%m-%d");break}else De<2419614?(rt="M",ft=1867):De<2424875?(rt="T",ft=1911):De<2447535?(rt="S",ft=1925):De<2458605?(rt="H",ft=1988):(rt="R",ft=2018);Q+=l.$format("%c%02d",rt,re(l.$year(),ft)),Q+=l.$strftime("-%m-%d");break;default:return u}return Mt&&(Q=Q.toUpperCase()),Et&&(Q=Q.replace(/[A-Z]/,function(je){je.toLowerCase()}).replace(/[a-z]/,function(je){je.toUpperCase()})),At&&(_t||bt)&&(Q=Q.$rjust(isNaN(_)?2:_,bt?" ":"0")),Q})}),p(w,"$to_a",function(){var $=this;return[$.$sec(),$.$min(),$.$hour(),$.$day(),$.$month(),$.$year(),$.$wday(),$.$yday(),$.$isdst(),$.$zone()]}),p(w,"$to_f",function(){var $=this;return $.getTime()/1e3}),p(w,"$to_i",function(){var $=this;return parseInt($.getTime()/1e3,10)}),p(w,"$cweek_cyear",function(){var $=this,l=fe,u=fe,d=fe,_=fe,k=fe,A=fe,Q=fe;return l=Ae("Time").$new($.$year(),1,1),u=l.$wday(),d=$.$year(),h(ge(u,4))&&X(u,0)?_=re(u,1):(_=re(re(u,7),1),se(_,-8)&&(_=-1)),k=be(pe($.$yday(),_),7).$ceil(),h(ge(k,0))?Ae("Time").$new(re($.$year(),1),12,31).$cweek_cyear():(se(k,53)&&(A=Ae("Time").$new($.$year(),12,31),Q=A.$wday(),h(ge(Q,3))&&X(Q,0)&&(k=1,d=pe(d,1))),[k,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,I=e.Class,L=e.to_a,H=e.def,pe=e.defs,be=e.Kernel,re=e.hash2,W=e.rb_gt,X=e.rb_minus,ge=e.eqeqeq,se=e.rb_lt,me=e.rb_ge,J=e.rb_plus,xe=e.alias,fe=e.top,Ae=[],O=e.nil,Ee=e.$$$;return e.add_stubs("require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,define_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members,define_method,instance_eval,last,>,length,-,keys,any?,join,[]=,each_with_index,hash,===,<,-@,size,>=,include?,to_sym,instance_of?,__id__,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig"),fe.$require("corelib/enumerable"),function(ce,w,Se){var N=t(ce,w,"Struct"),ne=[N].concat(Se),B=e.$r(ne);N.$include(Ee("Enumerable")),pe(N,"$new",function ue(P,v,$){var l=ue.$$p||O,u,d,_,k,A=this,Q=O;if(ue.$$p=null,u=r(arguments,1),d=n(u),d=i(d),_=u,k=d.$$smap.keyword_init,k==null&&(k=!1),s(P))if(f(P.$class(),Ee("String"))&&c(P["$[]"](0).$upcase(),P["$[]"](0)))_.$unshift(P),P=O;else try{P=p["$const_name!"](P)}catch(De){if(e.rescue(De,[Ee("TypeError"),Ee("NameError")]))try{_.$unshift(P),P=O}finally{e.pop_exception()}else throw De}return h(_,"map",[],function(rt){return rt==null&&(rt=O),p["$coerce_to!"](rt,Ee("String"),"to_str")}),Q=h(I,"new",[A],function De(){var rt=De.$$s==null?this:De.$$s;return h(_,"each",[],function ft(_t){var At=ft.$$s==null?this:ft.$$s;return _t==null&&(_t=O),At.$define_struct_attribute(_t)},{$$s:rt}),function(ft,_t){return H(ft,"$new",function(bt){var Mt,Et,qt=this,It=O;return Mt=r(arguments),Et=Mt,It=qt.$allocate(),It.$$data={},h(It,"initialize",L(Et)),It},-1),ft.$alias_method("[]","new")}(e.get_singleton_class(rt))},{$$s:A}),s(l)&&h(Q,"module_eval",[],l.$to_proc()),Q.$$keyword_init=k,s(P)&&Ee("Struct").$const_set(P,Q),Q},-2),pe(N,"$define_struct_attribute",function(P){var v=this;return f(v,Ee("Struct"))&&be.$raise(Ee("ArgumentError"),"you cannot define attributes to the Struct class"),v.$members()["$<<"](P),h(v,"define_method",[P],function $(){var l=$.$$s==null?this:$.$$s;return l.$$data[P]},{$$s:v}),h(v,"define_method",[""+P+"="],function $(l){var u=$.$$s==null?this:$.$$s;return l==null&&(l=O),u.$$data[P]=l},{$$s:v})}),pe(N,"$members",function(){var P=this,v=O;return P.members==null&&(P.members=O),f(P,Ee("Struct"))&&be.$raise(Ee("ArgumentError"),"the Struct class has no members"),P.members=s(v=P.members)?v:[]}),pe(N,"$inherited",function(P){var v=this,$=O;return v.members==null&&(v.members=O),$=v.members,h(P,"instance_eval",[],function l(){var u=l.$$s==null?this:l.$$s;return u.members=$},{$$s:v})}),H(N,"$initialize",function(P){var v,$,l=this,u=O,d=O,_=O;return v=r(arguments),$=v,s(l.$class().$$keyword_init)?(u=s(d=$.$last())?d:re([],{}),(s(W($.$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 k(A){var Q,De=k.$$s==null?this:k.$$s;return A==null&&(A=O),Q=[A,u["$[]"](A)],h(De,"[]=",Q),Q[Q.length-1]},{$$s:l})):(s(W($.$length(),l.$class().$members().$length()))&&be.$raise(Ee("ArgumentError"),"struct size differs"),h(l.$class().$members(),"each_with_index",[],function k(A,Q){var De,rt=k.$$s==null?this:k.$$s;return A==null&&(A=O),Q==null&&(Q=O),De=[A,$["$[]"](Q)],h(rt,"[]=",De),De[De.length-1]},{$$s:l}))},-1),H(N,"$initialize_copy",function(P){var v=this;v.$$data={};var $=Object.keys(P.$$data),l,u,d;for(l=0,u=$.length;l<u;l++)d=$[l],v.$$data[d]=P.$$data[d]}),pe(N,"$keyword_init?",function(){var P=this;return P.$$keyword_init}),H(N,"$members",function(){var P=this;return P.$class().$members()}),H(N,"$hash",function(){var P=this;return B("Hash").$new(P.$$data).$hash()}),H(N,"$[]",function(P){var v=this;return ge(Ee("Integer"),P)?(s(se(P,v.$class().$members().$size()["$-@"]()))&&be.$raise(Ee("IndexError"),"offset "+P+" too small for struct(size:"+v.$class().$members().$size()+")"),s(me(P,v.$class().$members().$size()))&&be.$raise(Ee("IndexError"),"offset "+P+" too large for struct(size:"+v.$class().$members().$size()+")"),P=v.$class().$members()["$[]"](P)):ge(Ee("String"),P)?v.$$data.hasOwnProperty(P)||be.$raise(Ee("NameError").$new("no member '"+P+"' in struct",P)):be.$raise(Ee("TypeError"),"no implicit conversion of "+P.$class()+" into Integer"),P=p["$coerce_to!"](P,Ee("String"),"to_str"),v.$$data[P]}),H(N,"$[]=",function(P,v){var $=this;return ge(Ee("Integer"),P)?(s(se(P,$.$class().$members().$size()["$-@"]()))&&be.$raise(Ee("IndexError"),"offset "+P+" too small for struct(size:"+$.$class().$members().$size()+")"),s(me(P,$.$class().$members().$size()))&&be.$raise(Ee("IndexError"),"offset "+P+" too large for struct(size:"+$.$class().$members().$size()+")"),P=$.$class().$members()["$[]"](P)):ge(Ee("String"),P)?s($.$class().$members()["$include?"](P.$to_sym()))||be.$raise(Ee("NameError").$new("no member '"+P+"' in struct",P)):be.$raise(Ee("TypeError"),"no implicit conversion of "+P.$class()+" into Integer"),P=p["$coerce_to!"](P,Ee("String"),"to_str"),$.$$data[P]=v}),H(N,"$==",function(P){var v=this;if(!s(P["$instance_of?"](v.$class())))return!1;var $={},l={};function u(d,_){var k,A,Q;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(k in d.$$data)if(A=d.$$data[k],Q=_.$$data[k],Ee("Struct")["$==="](A)){if((!$.hasOwnProperty(A.$__id__())||!l.hasOwnProperty(Q.$__id__()))&&!u(A,Q))return!1}else if(!A["$=="](Q))return!1;return!0}return u(v,P)}),H(N,"$eql?",function(P){var v=this;if(!s(P["$instance_of?"](v.$class())))return!1;var $={},l={};function u(d,_){var k,A,Q;$[d.$__id__()]=!0,l[_.$__id__()]=!0;for(k in d.$$data)if(A=d.$$data[k],Q=_.$$data[k],Ee("Struct")["$==="](A)){if((!$.hasOwnProperty(A.$__id__())||!l.hasOwnProperty(Q.$__id__()))&&!u(A,Q))return!1}else if(!A["$eql?"](Q))return!1;return!0}return u(v,P)}),H(N,"$each",function ue(){var P=ue.$$p||O,v=this;return ue.$$p=null,P===O?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=O),e.yield1(P,u["$[]"](l))},{$$s:v}),v)}),H(N,"$each_pair",function ue(){var P=ue.$$p||O,v=this;return ue.$$p=null,P===O?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=O),e.yield1(P,[l,u["$[]"](l)])},{$$s:v}),v)}),H(N,"$length",function(){var P=this;return P.$class().$members().$length()}),H(N,"$to_a",function(){var P=this;return h(P.$class().$members(),"map",[],function v($){var l=v.$$s==null?this:v.$$s;return $==null&&($=O),l["$[]"]($)},{$$s:P})});var Le=[];return H(N,"$inspect",function(){var P=this,v=O,$=O;return function(){try{return v="#<struct ",s(Le["$include?"](P.$__id__()))?J(v,":...>"):(Le["$<<"](P.$__id__()),$=!0,ge(Ee("Struct"),P)&&s(P.$class().$name())&&(v=J(v,""+P.$class()+" ")),v=J(v,h(P.$each_pair(),"map",[],function(u,d){return u==null&&(u=O),d==null&&(d=O),""+u+"="+B("Opal").$inspect(d)}).$join(", ")),v=J(v,">"),v)}finally{s($)&&Le.pop()}}()}),H(N,"$to_h",function ue(){var P=ue.$$p||O,v=this;return ue.$$p=null,P!==O?h(h(v,"map",[],P.$to_proc()),"to_h",L(v.$args())):h(v.$class().$members(),"each_with_object",[re([],{})],function $(l,u){var d,_=$.$$s==null?this:$.$$s;return l==null&&(l=O),u==null&&(u=O),d=[l,_["$[]"](l)],h(u,"[]=",d),d[d.length-1]},{$$s:v})}),H(N,"$values_at",function(P){var v,$,l=this;v=r(arguments),$=v,$=h($,"map",[],function(A){return A==null&&(A=O),A.$$is_range?A.$to_a():A}).$flatten();for(var u=[],d=0,_=$.length;d<_;d++)$[d].$$is_number||be.$raise(Ee("TypeError"),"no implicit conversion of "+$[d].$class()+" into Integer"),u.push(l["$[]"]($[d]));return u},-1),H(N,"$dig",function(P,v){var $,l,u=this,d=O;return $=r(arguments,1),l=$,d=s(P.$$is_string&&u.$$data.hasOwnProperty(P))&&u.$$data[P]||O,d===O||l.length===0?d:(s(d["$respond_to?"]("dig"))||be.$raise(Ee("TypeError"),""+d.$class()+" does not have #dig method"),h(d,"dig",L(l)))},-2),xe(N,"size","length"),xe(N,"to_s","inspect"),xe(N,"values","to_a")}("::",null,Ae)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,c=e.truthy,f=e.eqeqeq,p=e.Kernel,h=e.send,I=e.def,L=e.eqeq,H=e.rb_lt,pe=e.rb_le,be=e.alias,re=[],W=e.nil,X=e.$$$;return e.add_stubs("include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?,==,instance_variable_get,size,is_a?,all?,include?,[]=,enum_for,[],<<,replace,compare_by_identity,name,compare_by_identity?,delete,select,frozen?,freeze,reject,delete_if,to_proc,keep_if,each_key,empty?,eql?,instance_eval,clear,<,<=,any?,!,intersect?,keys,|,proper_subset?,subset?,proper_superset?,superset?,-,select!,collect!"),function(ge,se,me){var J=r(ge,se,"Set"),xe=[J].concat(me),fe=e.$r(xe),Ae=W,O=J.$$prototype;O.hash=W,J.$include(X("Enumerable")),i(J,"$[]",function(w){var Se,N,ne=this;return Se=n(arguments),N=Se,ne.$new(N)},-1),I(J,"$initialize",function ce(w){var Se=ce.$$p||W,N=this;return ce.$$p=null,w==null&&(w=W),N.hash=s([],{}),c(w["$nil?"]())?W:(f(X("Enumerable"),w)||p.$raise(X("ArgumentError"),"value must be enumerable"),c(Se)?h(w,"each",[],function ne(B){var Le=ne.$$s==null?this:ne.$$s;return B==null&&(B=W),Le.$add(e.yield1(Se,B))},{$$s:N}):N.$merge(w))},-1),I(J,"$dup",function(){var w=this,Se=W;return Se=w.$class().$new(),Se.$merge(w)}),I(J,"$-",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$subtract(w)}),I(J,"$inspect",function(){var w=this;return"#<Set: {"+w.$to_a().$join(",")+"}>"}),I(J,"$==",function(w){var Se=this;return c(Se["$equal?"](w))?!0:c(w["$instance_of?"](Se.$class()))?Se.hash["$=="](w.$instance_variable_get("@hash")):c(w["$is_a?"](X("Set")))&&L(Se.$size(),w.$size())?h(w,"all?",[],function N(ne){var B=N.$$s==null?this:N.$$s;return B.hash==null&&(B.hash=W),ne==null&&(ne=W),B.hash["$include?"](ne)},{$$s:Se}):!1}),I(J,"$add",function(w){var Se=this;return Se.hash["$[]="](w,!0),Se}),I(J,"$classify",function ce(){var w=ce.$$p||W,Se=this,N=W;return ce.$$p=null,w===W?Se.$enum_for("classify"):(N=h(X("Hash"),"new",[],function ne(B,Le){var ue,P=ne.$$s==null?this:ne.$$s;return B==null&&(B=W),Le==null&&(Le=W),ue=[Le,P.$class().$new()],h(B,"[]=",ue),ue[ue.length-1]},{$$s:Se}),h(Se,"each",[],function(B){return B==null&&(B=W),N["$[]"](e.yield1(w,B)).$add(B)}),N)}),I(J,"$collect!",function ce(){var w=ce.$$p||W,Se=this,N=W;return ce.$$p=null,w===W?Se.$enum_for("collect!"):(N=Se.$class().$new(),h(Se,"each",[],function(B){return B==null&&(B=W),N["$<<"](e.yield1(w,B))}),Se.$replace(N))}),I(J,"$compare_by_identity",function(){var w=this;return c(w.hash["$respond_to?"]("compare_by_identity"))?(w.hash.$compare_by_identity(),w):w.$raise(fe("NotImplementedError"),""+w.$class().$name()+"#compare_by_identity is not implemented")}),I(J,"$compare_by_identity?",function(){var w=this,Se=W;return c(Se=w.hash["$respond_to?"]("compare_by_identity?"))?w.hash["$compare_by_identity?"]():Se}),I(J,"$delete",function(w){var Se=this;return Se.hash.$delete(w),Se}),I(J,"$delete?",function(w){var Se=this;return c(Se["$include?"](w))?(Se.$delete(w),Se):W}),I(J,"$delete_if",function ce(){var w=ce.$$p||W,Se=this;return ce.$$p=null,w===W?Se.$enum_for("delete_if"):(h(h(Se,"select",[],function(ne){return ne==null&&(ne=W),e.yield1(w,ne)}),"each",[],function N(ne){var B=N.$$s==null?this:N.$$s;return B.hash==null&&(B.hash=W),ne==null&&(ne=W),B.hash.$delete(ne)},{$$s:Se}),Se)}),I(J,"$freeze",function(){var w=this;return c(w["$frozen?"]())?w:(w.hash.$freeze(),t(w))}),I(J,"$keep_if",function ce(){var w=ce.$$p||W,Se=this;return ce.$$p=null,w===W?Se.$enum_for("keep_if"):(h(h(Se,"reject",[],function(ne){return ne==null&&(ne=W),e.yield1(w,ne)}),"each",[],function N(ne){var B=N.$$s==null?this:N.$$s;return B.hash==null&&(B.hash=W),ne==null&&(ne=W),B.hash.$delete(ne)},{$$s:Se}),Se)}),I(J,"$reject!",function ce(){var w=ce.$$p||W,Se=this,N=W;return ce.$$p=null,w===W?Se.$enum_for("reject!"):(N=Se.$size(),h(Se,"delete_if",[],w.$to_proc()),L(Se.$size(),N)?W:Se)}),I(J,"$select!",function ce(){var w=ce.$$p||W,Se=this,N=W;return ce.$$p=null,w===W?Se.$enum_for("select!"):(N=Se.$size(),h(Se,"keep_if",[],w.$to_proc()),L(Se.$size(),N)?W:Se)}),I(J,"$add?",function(w){var Se=this;return c(Se["$include?"](w))?W:Se.$add(w)}),I(J,"$each",function ce(){var w=ce.$$p||W,Se=this;return ce.$$p=null,w===W?Se.$enum_for("each"):(h(Se.hash,"each_key",[],w.$to_proc()),Se)}),I(J,"$empty?",function(){var w=this;return w.hash["$empty?"]()}),I(J,"$eql?",function(w){var Se=this;return Se.hash["$eql?"](h(w,"instance_eval",[],function N(){var ne=N.$$s==null?this:N.$$s;return ne.hash==null&&(ne.hash=W),ne.hash},{$$s:Se}))}),I(J,"$clear",function(){var w=this;return w.hash.$clear(),w}),I(J,"$include?",function(w){var Se=this;return Se.hash["$include?"](w)}),I(J,"$merge",function(w){var Se=this;return h(w,"each",[],function N(ne){var B=N.$$s==null?this:N.$$s;return ne==null&&(ne=W),B.$add(ne)},{$$s:Se}),Se}),I(J,"$replace",function(w){var Se=this;return Se.$clear(),Se.$merge(w),Se}),I(J,"$size",function(){var w=this;return w.hash.$size()}),I(J,"$subtract",function(w){var Se=this;return h(w,"each",[],function N(ne){var B=N.$$s==null?this:N.$$s;return ne==null&&(ne=W),B.$delete(ne)},{$$s:Se}),Se}),I(J,"$|",function(w){var Se=this;return c(w["$respond_to?"]("each"))||p.$raise(X("ArgumentError"),"value must be enumerable"),Se.$dup().$merge(w)});function Ee(ce){c(Ae=ce["$is_a?"](X("Set")))||p.$raise(X("ArgumentError"),"value must be a set")}return I(J,"$superset?",function(w){var Se=this;return Ee(w),c(H(Se.$size(),w.$size()))?!1:h(w,"all?",[],function N(ne){var B=N.$$s==null?this:N.$$s;return ne==null&&(ne=W),B["$include?"](ne)},{$$s:Se})}),I(J,"$proper_superset?",function(w){var Se=this;return Ee(w),c(pe(Se.$size(),w.$size()))?!1:h(w,"all?",[],function N(ne){var B=N.$$s==null?this:N.$$s;return ne==null&&(ne=W),B["$include?"](ne)},{$$s:Se})}),I(J,"$subset?",function(w){var Se=this;return Ee(w),c(H(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(ne){return ne==null&&(ne=W),w["$include?"](ne)})}),I(J,"$proper_subset?",function(w){var Se=this;return Ee(w),c(pe(w.$size(),Se.$size()))?!1:h(Se,"all?",[],function(ne){return ne==null&&(ne=W),w["$include?"](ne)})}),I(J,"$intersect?",function(w){var Se=this;return Ee(w),c(H(Se.$size(),w.$size()))?h(Se,"any?",[],function(ne){return ne==null&&(ne=W),w["$include?"](ne)}):h(w,"any?",[],function N(ne){var B=N.$$s==null?this:N.$$s;return ne==null&&(ne=W),B["$include?"](ne)},{$$s:Se})}),I(J,"$disjoint?",function(w){var Se=this;return Se["$intersect?"](w)["$!"]()}),I(J,"$to_a",function(){var w=this;return w.hash.$keys()}),be(J,"+","|"),be(J,"<","proper_subset?"),be(J,"<<","add"),be(J,"<=","subset?"),be(J,">","proper_superset?"),be(J,">=","superset?"),be(J,"difference","-"),be(J,"filter!","select!"),be(J,"length","size"),be(J,"map!","collect!"),be(J,"member?","include?"),be(J,"union","|")}("::",null,re)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,c=e.$$$;return e.add_stubs("[],pwd"),function(f,p,h){var I=t(f,p,"Dir");return function(L,H){return r(L,"$chdir",function pe(be){var re=pe.$$p||s,W=s;return pe.$$p=null,function(){try{return W=e.current_dir,e.current_dir=be,e.yieldX(re,[])}finally{e.current_dir=W}}()}),r(L,"$pwd",function(){return e.current_dir||"."}),r(L,"$home",function(){var be=s;return n(be=c("ENV")["$[]"]("HOME"))?be:"."}),i(L,"getwd","pwd")}(e.get_singleton_class(I))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,c=e.rb_plus,f=e.def,p=e.Kernel,h=e.eqeq,I=e.rb_lt,L=e.rb_minus,H=e.range,pe=e.send,be=e.slice,re=e.alias,W=[],X=e.nil,ge=e.$$$;return e.add_stubs("respond_to?,to_path,coerce_to!,pwd,split,sub,+,unshift,join,home,raise,start_with?,absolute_path,==,<,dirname,-,basename,empty?,rindex,[],length,nil?,gsub,find,=~,map,each_with_index,flatten,reject,to_proc,end_with?,expand_path,exist?"),function(se,me,J){var xe=r(se,me,"File"),fe=[xe].concat(J),Ae=X;return n(fe[0],"Separator",n(fe[0],"SEPARATOR","/")),n(fe[0],"ALT_SEPARATOR",X),n(fe[0],"PATH_SEPARATOR",":"),n(fe[0],"FNM_SYSCASE",0),Ae=/^[a-zA-Z]:(?:\\|\/)/,function(O,Ee){var ce=[O].concat(Ee),w=e.$r(ce);f(O,"$absolute_path",function(B,Le){var ue=X,P=X,v=X,$=X,l=X,u=X,d=X,_=X,k=X,A=X;Le==null&&(Le=X),ue=w("SEPARATOR"),P=N(),v=[],B=t(B["$respond_to?"]("to_path"))?B.$to_path():B,B=i["$coerce_to!"](B,ge("String"),"to_str"),Le=t($=Le)?$:ge("Dir").$pwd(),l=B.substr(0,ue.length)===ue||Ae.test(B),u=Le.substr(0,ue.length)===ue||Ae.test(Le),t(l)?(d=B.$split(s(["[",P,"]"])),_=Ae.test(B)?"":B.$sub(s(["^([",P,"]+).*$"]),"\\1"),k=!0):(d=c(Le.$split(s(["[",P,"]"])),B.$split(s(["[",P,"]"]))),_=Ae.test(Le)?"":Le.$sub(s(["^([",P,"]+).*$"]),"\\1"),k=u);for(var Q,De=0,rt=d.length;De<rt;De++)Q=d[De],!(Q===X||Q===""&&(v.length===0||k)||Q==="."&&(v.length===0||k))&&(Q===".."?v.pop():v.push(Q));return!k&&d[0]!=="."&&v.$unshift("."),A=v.$join(ue),t(k)&&(A=c(_,A)),A},-2),f(O,"$expand_path",function(B,Le){var ue=this,P=X,v=X,$=X,l=X,u=X;return Le==null&&(Le=X),P=w("SEPARATOR"),v=N(),t(B[0]==="~"||Le&&Le[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($,P),u=s(["^\\~(?:",P,"|$)"]),B=B.$sub(u,$),t(Le)&&(Le=Le.$sub(u,$))),ue.$absolute_path(B,Le)},-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 N(){return w("ALT_SEPARATOR")===X?e.escape_regexp(w("SEPARATOR")):e.escape_regexp(c(w("SEPARATOR"),w("ALT_SEPARATOR")))}return f(O,"$dirname",function(B,Le){var ue=this,P=X;if(Le==null&&(Le=1),h(Le,0))return B;t(I(Le,0))&&p.$raise(ge("ArgumentError"),"level can't be negative"),P=N(),B=Se(B);var v=B.match(new RegExp("^["+P+"]")),$;return B=B.replace(new RegExp("["+P+"]+$"),""),B=B.replace(new RegExp("[^"+P+"]+$"),""),B=B.replace(new RegExp("["+P+"]+$"),""),B===""?$=v?"/":".":$=B,Le==1?$:ue.$dirname($,L(Le,1))},-2),f(O,"$basename",function(B,Le){var ue=X;return Le==null&&(Le=X),ue=N(),B=Se(B),B.length==0||(Le!==X?Le=i["$coerce_to!"](Le,ge("String"),"to_str"):Le=null,B=B.replace(new RegExp("(.)["+ue+"]*$"),"$1"),B=B.replace(new RegExp("^(?:.*["+ue+"])?([^"+ue+"]+)$"),"$1"),Le===".*"?B=B.replace(/\.[^\.]+$/,""):Le!==null&&(Le=e.escape_regexp(Le),B=B.replace(new RegExp(""+Le+"$"),""))),B},-2),f(O,"$extname",function(B){var Le=this,ue=X,P=X;return B=Se(B),ue=Le.$basename(B),t(ue["$empty?"]())||(P=ue["$[]"](H(1,-1,!1)).$rindex("."),t(P["$nil?"]())||h(c(P,1),L(ue.$length(),1)))?"":ue["$[]"](e.Range.$new(c(P,1),-1,!1))}),f(O,"$exist?",function(B){return e.modules[B]!=null}),f(O,"$directory?",function(B){var Le=X;Le=[];for(var ue in e.modules)Le.push(ue);return B=B.$gsub(s(["(^.",w("SEPARATOR"),"+|",w("SEPARATOR"),"+$)"])),pe(Le,"find",[],function(v){return v==null&&(v=X),v["$=~"](s(["^",B]))})}),f(O,"$join",function(B){var Le,ue,P=X;return Le=be(arguments),ue=Le,t(ue["$empty?"]())?"":(P="",ue=pe(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=pe(ue,"reject",[],"empty?".$to_proc()),pe(ue,"each_with_index",[],function($,l){var u=X;return $==null&&($=X),l==null&&(l=X),u=ue["$[]"](c(l,1)),t(u["$nil?"]())?P=""+P+$:(t($["$end_with?"](w("SEPARATOR")))&&t(u["$start_with?"](w("SEPARATOR")))&&($=$.$sub(s([w("SEPARATOR"),"+$"]),"")),P=t($["$end_with?"](w("SEPARATOR")))||t(u["$start_with?"](w("SEPARATOR")))?""+P+$:""+P+$+w("SEPARATOR"))}),P)},-1),f(O,"$split",function(B){return B.$split(w("SEPARATOR"))}),re(O,"realpath","expand_path"),re(O,"exists?","exist?")}(e.get_singleton_class(xe),fe)}("::",ge("IO"),W)};Opal.modules["corelib/process/base"]=function(e){var t=e.klass,r=e.slice,n=e.defs,i=e.return_val,s=e.nil;return function(c,f){var p=t(c,f,"Signal");return n(p,"$trap",function(I){return r(arguments),s},-1)}("::",null),function(c,f){var p=t(c,f,"GC");return n(p,"$start",i(s))}("::",null)};Opal.modules["corelib/process"]=function(e){var t=e.module,r=e.defs,n=e.truthy,i=e.return_val,s=e.Kernel,c=e.nil,f=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(p){var h=t(p,"Process"),I=c;if(h.__clocks__=[],r(h,"$__register_clock__",function(pe,be){var re=this;return re.__clocks__==null&&(re.__clocks__=c),re.$const_set(pe,re.__clocks__.$size()),re.__clocks__["$<<"](be)}),h.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),I=!1,e.global.performance)I=function(){return performance.now()};else if(e.global.process&&process.hrtime){var L=process.hrtime();I=function(){var H=process.hrtime(L),pe=H[1]/1e3|0;return H[0]*1e3+pe/1e3}}return n(I)&&h.$__register_clock__("CLOCK_MONOTONIC",I),r(h,"$pid",i(0)),r(h,"$times",function(){var pe=c;return pe=f("Time").$now().$to_f(),f(f("Benchmark"),"Tms").$new(pe,pe,pe,pe,pe)}),r(h,"$clock_gettime",function(pe,be){var re=this,W=c;re.__clocks__==null&&(re.__clocks__=c),be==null&&(be="float_second"),n(W=re.__clocks__["$[]"](pe))||s.$raise(f(f("Errno"),"EINVAL"),"clock_gettime("+pe+") "+re.__clocks__["$[]"](pe));var X=W();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=[],I=e.nil,L=e.$$$;return e.add_stubs("_verify_count,bytes,encode,strict_encode64,random_bytes,urlsafe_encode64,split,hex,[]=,[],map,to_proc,join,times,<<,|,ord,/,abs,random_float,raise,coerce_to!,flatten,new,random_number,length,include,extend"),function(H,pe,be){var re=t(H,pe,"Random"),W=[re].concat(be);return function(X,ge){var se=r(X,"Formatter"),me=[se].concat(ge),J=e.$r(me);return n(se,"$hex",function(fe){var Ae=this;fe==null&&(fe=I),fe=L("Random").$_verify_count(fe);for(var O=Ae.$bytes(fe),Ee="",ce=0;ce<fe;ce++)Ee+=O.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=I),Ae.$bytes(fe)},-1),n(se,"$base64",function(fe){var Ae=this;return fe==null&&(fe=I),L("Base64").$strict_encode64(Ae.$random_bytes(fe)).$encode("US-ASCII")},-1),n(se,"$urlsafe_base64",function(fe,Ae){var O=this;return fe==null&&(fe=I),Ae==null&&(Ae=!1),L("Base64").$urlsafe_encode64(O.$random_bytes(fe),Ae).$encode("US-ASCII")},-1),n(se,"$uuid",function(){var fe=this,Ae=I;return Ae=fe.$hex(16).$split(""),Ae["$[]="](12,"4"),Ae["$[]="](16,(parseInt(Ae["$[]"](16),16)&3|8).toString(16)),Ae=[Ae["$[]"](i(0,8,!0)),Ae["$[]"](i(8,12,!0)),Ae["$[]"](i(12,16,!0)),Ae["$[]"](i(16,20,!0)),Ae["$[]"](i(20,32,!0))],Ae=s(Ae,"map",[],"join".$to_proc()),Ae.$join("-")}),n(se,"$random_float",function(){var fe=this,Ae=I,O=I;return Ae=fe.$bytes(4),O=0,s(4,"times",[],function(ce){return ce==null&&(ce=I),O=O["$<<"](8),O=O["$|"](Ae["$[]"](ce).$ord())}),c(O.$abs(),2147483647)}),n(se,"$random_number",function(fe){var Ae=this;function O(){return Ae.$random_float()}function Ee(w){return Math.floor(O()*w)}function ce(){var w=fe.begin,Se=fe.end;if(w===I||Se===I)return I;var N=Se-w;return N<0?I:N===0?w:(Se%1===0&&w%1===0&&!fe.excl&&N++,Ee(N)+w)}return fe==null?O():fe.$$is_range?ce():fe.$$is_number?(fe<=0&&f.$raise(L("ArgumentError"),"invalid argument - "+fe),fe%1===0?Ee(fe):O()*fe):(fe=p["$coerce_to!"](fe,L("Integer"),"to_int"),fe<=0&&f.$raise(L("ArgumentError"),"invalid argument - "+fe),Ee(fe))},-1),n(se,"$alphanumeric",function(fe){var Ae=this,O=I;return fe==null&&(fe=I),fe=J("Random").$_verify_count(fe),O=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(L("Array"),"new",[fe],function Ee(ce){var w=Ee.$$s==null?this:Ee.$$s;return O["$[]"](w.$random_number(O.$length()))},{$$s:Ae}).$join()},-1)}(re,W),re.$include(L(L("Random"),"Formatter")),re.$extend(L(L("Random"),"Formatter"))}("::",null,h)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,c=i;return e.add_stubs("generator="),c=function(){var f=624,p=397,h=2567483615,I=2147483648,L=2147483647,H=function(me,J){return me&I|J&L},pe=function(me,J){return H(me,J)>>>1^(J&1?h:0)};function be(me){var J={left:0,next:f,state:new Array(f)};return re(J,me),J}function re(me,J){var xe;for(me.state[0]=J>>>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 W(me){var J=0,xe=me.state,fe;for(me.left=f,me.next=0,fe=f-p+1;--fe;J++)xe[J]=xe[J+p]^pe(xe[J+0],xe[J+1]);for(fe=p;--fe;J++)xe[J]=xe[J+(p-f)]^pe(xe[J+0],xe[J+1]);xe[J]=xe[J+(p-f)]^pe(xe[J+0],xe[0])}function X(me){var J;return--me.left<=0&&W(me),J=me.state[me.next++],J^=J>>>11,J^=J<<7&2636928640,J^=J<<15&4022730752,J^=J>>>18,J>>>0}function ge(me,J){return me>>>=5,J>>>=6,(me*67108864+J)*(1/9007199254740992)}function se(me){var J=X(me),xe=X(me);return ge(J,xe)}return{genrand_real:se,init:be}}(),function(f,p){var h=t(f,p,"Random"),I,L=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(h,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*L)},reseed:function(H){return c.init(H)},rand:function(H){return c.genrand_real(H)}}),I=[s(h,"MERSENNE_TWISTER_GENERATOR")],n(h,"generator=",I),I[I.length-1]}("::",null)};Opal.modules["corelib/random"]=function(e){var t=e.truthy,r=e.klass,n=e.Kernel,i=e.defs,s=e.Opal,c=e.def,f=e.eqeqeq,p=e.send,h=e.top,I=e.nil,L=e.$$$;return e.add_stubs("require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set"),h.$require("corelib/random/formatter"),function(H,pe){var be=r(H,pe,"Random");return be.$attr_reader("seed","state"),i(be,"$_verify_count",function(W){return t(W)||(W=16),typeof W!="number"&&(W=W.$to_int()),W<0&&n.$raise(L("ArgumentError"),"negative string size (or size too big)"),W=Math.floor(W),W}),c(be,"$initialize",function(W){var X=this;return W==null&&(W=L("Random").$new_seed()),W=s["$coerce_to!"](W,L("Integer"),"to_int"),X.state=W,X.$reseed(W)},-1),c(be,"$reseed",function(W){var X=this;return X.seed=W,X.$rng=e.$$rand.reseed(W)}),i(be,"$new_seed",function(){return e.$$rand.new_seed()}),i(be,"$rand",function(W){var X=this;return L(X,"DEFAULT").$rand(W)},-1),i(be,"$srand",function(W){var X=this,ge=I;return W==null&&(W=L("Random").$new_seed()),W=s["$coerce_to!"](W,L("Integer"),"to_int"),ge=L(X,"DEFAULT").$seed(),L(X,"DEFAULT").$reseed(W),ge},-1),i(be,"$urandom",function(W){return L("SecureRandom").$bytes(W)}),c(be,"$==",function(W){var X=this,ge=I;return f(L("Random"),W)?t(ge=X.$seed()["$=="](W.$seed()))?X.$state()["$=="](W.$state()):ge:!1}),c(be,"$bytes",function(W){var X=this;return W=L("Random").$_verify_count(W),p(L("Array"),"new",[W],function ge(){var se=ge.$$s==null?this:ge.$$s;return se.$rand(255).$chr()},{$$s:X}).$join().$encode("ASCII-8BIT")}),i(be,"$bytes",function(W){var X=this;return L(X,"DEFAULT").$bytes(W)}),c(be,"$rand",function(W){var X=this;return X.$random_number(W)},-1),c(be,"$random_float",function(){var W=this;return W.state++,e.$$rand.rand(W.$rng)}),i(be,"$random_float",function(){var W=this;return L(W,"DEFAULT").$random_float()}),i(be,"$generator=",function(W){var X=this;return e.$$rand=W,t(X["$const_defined?"]("DEFAULT"))?L(X,"DEFAULT").$reseed():X.$const_set("DEFAULT",X.$new(X.$new_seed()))})}("::",null),h.$require("corelib/random/mersenne_twister")};Opal.modules["corelib/unsupported"]=function(e){var t=e.Kernel,r=e.klass,n=e.send,i=e.slice,s=e.module,c=e.def,f=e.return_val,p=e.alias,h=e.defs,I=e.top,L=[],H=e.nil,pe=e.$$$;e.add_stubs("raise,warn,each,define_method,%,public,private_method_defined?,private_class_method,instance_method,instance_methods,method_defined?,private_methods");var be={};function re(X){switch(e.config.unsupported_features_severity){case"error":t.$raise(pe("NotImplementedError"),X);break;case"warning":W(X);break}}function W(X){be[X]||(be[X]=!0,I.$warn(X))}return function(X,ge){var se=r(X,ge,"String"),me="String#%s not supported. Mutable String methods are not supported in Opal.";return n(["<<","capitalize!","chomp!","chop!","downcase!","gsub!","lstrip!","next!","reverse!","slice!","squeeze!","strip!","sub!","succ!","swapcase!","tr!","tr_s!","upcase!","prepend","[]=","clear","encode!","unicode_normalize!"],"each",[],function J(xe){var fe=J.$$s==null?this:J.$$s;return xe==null&&(xe=H),n(fe,"define_method",[xe],function(O){return i(arguments),t.$raise(pe("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 J=this;return re(se),J}),c(ge,"$untaint",function(){var J=this;return re(se),J}),c(ge,"$tainted?",function(){return re(se),!1})}("::"),function(X,ge){var se=r(X,ge,"Module");return c(se,"$public",function(J){var xe,fe,Ae=this;return xe=i(arguments),fe=xe,fe.length===0?(Ae.$$module_function=!1,H):fe.length===1?fe[0]:fe},-1),c(se,"$private_class_method",function(J){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(J){return i(arguments),H},-1),p(se,"nesting","public"),p(se,"private","public"),p(se,"protected","public"),p(se,"protected_method_defined?","private_method_defined?"),p(se,"public_class_method","private_class_method"),p(se,"public_instance_method","instance_method"),p(se,"public_instance_methods","instance_methods"),p(se,"public_method_defined?","method_defined?")}("::",null),function(X){var ge=s(X,"Kernel");return c(ge,"$private_methods",function(me){return i(arguments),[]},-1),p(ge,"protected_methods","private_methods"),p(ge,"private_instance_methods","private_methods"),p(ge,"protected_instance_methods","private_methods")}("::"),function(X,ge){var se=s(X,"Kernel"),me=[se].concat(ge),J=e.$r(me);return c(se,"$eval",function(fe){return i(arguments),t.$raise(pe("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+J("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",L),h(I,"$public",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1),h(I,"$private",function(ge){var se,me;return se=i(arguments),me=se,me.length===1?me[0]:me},-1)};Opal.queue(function(e){var t=e.Object;return e.nil,e.add_stubs("require,autoload"),t.$require("opal/base"),t.$require("opal/mini"),t.$require("corelib/kernel/format"),t.$require("corelib/string/encoding"),t.$autoload("Math","corelib/math"),t.$require("corelib/complex/base"),t.$autoload("Complex","corelib/complex"),t.$require("corelib/rational/base"),t.$autoload("Rational","corelib/rational"),t.$require("corelib/time"),t.$autoload("Struct","corelib/struct"),t.$autoload("Set","corelib/set"),t.$autoload("Dir","corelib/dir"),t.$autoload("File","corelib/file"),t.$require("corelib/process/base"),t.$autoload("Process","corelib/process"),t.$autoload("Random","corelib/random"),t.$require("corelib/unsupported")});function e6(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ae=a.klass,te=a.defs,V=[];return a.nil,a.add_stubs("new"),function(_e,y,Y){var Ue=ae(_e,y,"File"),G=[Ue].concat(Y),Ie=a.$r(G);return te(Ue,"$read",function(Oe){var ze="",Ge=-1;try{var Me=new XMLHttpRequest;Me.open("GET",Oe,!1),Me.addEventListener("load",function(){Ge=this.status,(Ge===0||Ge===200)&&(ze=this.responseText)}),Me.overrideMimeType("text/plain"),Me.send()}catch(Pe){throw Ie("IOError").$new("Error reading file or directory: "+Oe+"; reason: "+Pe.message)}if(Ge===404||Ge===0&&!ze)throw Ie("IOError").$new("No such file or directory: "+Oe);return ze})}(V[0],null,V)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ae=a.const_set,te=a.top,V=[];a.nil,a.add_stubs("require");var _e,y,Y,Ue;return Ue=Ue||"xmlhttprequest",_e=_e||"browser",y=y||"",Y=Y||"",ae(V[0],"JAVASCRIPT_IO_MODULE",Ue),ae(V[0],"JAVASCRIPT_PLATFORM",_e),ae(V[0],"JAVASCRIPT_ENGINE",y),ae(V[0],"JAVASCRIPT_FRAMEWORK",Y),te.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.truthy,y=a.def,Y=[],Ue=a.nil,G=a.$$$;return a.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(Ie,C){var Oe=ae(Ie,"Asciidoctor"),ze=[Oe].concat(C);return function(Ge,Me,Pe){var dt=te(Ge,Me,"AbstractNode"),We=[dt].concat(Pe),st=a.$r(We),Ye=dt.$$prototype;return Ye.document=Ue,y(dt,"$read_contents",function($t,z){var et=this,E=Ue,tt=Ue,lt=Ue;if(z==null&&(z=V([],{})),E=et.document,_e(st("Helpers")["$uriish?"]($t))||_e(tt=z["$[]"]("start"))&&_e(st("Helpers")["$uriish?"](tt))&&_e($t=E.$path_resolver().$web_path($t,tt)))if(_e(E.$path_resolver()["$descends_from?"]($t,E.$base_dir()))||_e($t["$start_with?"]("chrome://"))||_e(E["$attr?"]("allow-uri-read")))try{return _e(z["$[]"]("normalize"))?st("Helpers").$prepare_source_string(G("File").$read($t)).$join(st("LF")):G("File").$read($t)}catch(K){if(a.rescue(K,[st("StandardError")]))try{return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("could not retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t),Ue}finally{a.pop_exception()}else throw K}else return _e(z.$fetch("warn_on_failure",!0))&&et.$logger().$warn("cannot retrieve contents of "+(_e(lt=z["$[]"]("label"))?lt:"asset")+" at URI: "+$t+" (allow-uri-read attribute not enabled)"),Ue;else return $t=et.$normalize_system_path($t,z["$[]"]("start"),Ue,V(["target_name"],{target_name:_e(lt=z["$[]"]("label"))?lt:"asset"})),et.$read_asset($t,V(["normalize","warn_on_failure","label"],{normalize:z["$[]"]("normalize"),warn_on_failure:z.$fetch("warn_on_failure",!0),label:z["$[]"]("label")}))},-2),y(dt,"$generate_data_uri_from_uri",function($t,z){var et=this,E="",tt="",lt=-1;try{var K=new XMLHttpRequest;K.open("GET",$t,!1),K.overrideMimeType("text/plain; charset=x-user-defined"),K.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var M="",He=this.responseText,we=0,Ne=He.length;we<Ne;++we){var Te=He.charCodeAt(we),oe=Te&255;M+=String.fromCharCode(oe)}tt=btoa(M),E=this.getResponseHeader("content-type")}}),K.send(null),E||($t.endsWith(".jpeg")||$t.endsWith(".jpg")||$t.endsWith(".jpe")?E="image/jpg":$t.endsWith(".png")?E="image/png":$t.endsWith(".svg")?E="image/svg+xml":$t.endsWith(".bmp")?E="image/bmp":($t.endsWith(".tif")||$t.endsWith(".tiff"))&&(E="image/tiff"))}catch{lt=0}return lt===404||lt===0&&(!tt||!E)?(et.$logger().$warn("could not retrieve image data from URI: "+$t),$t):"data:"+E+";base64,"+tt},-2)}(ze[0],null,ze)}(Y[0],Y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ae=a.module,te=a.slice,V=a.send,_e=a.to_a,y=a.defs,Y=[],Ue=a.nil;return a.add_stubs("new,path"),function(G,Ie){var C=ae(G,"OpenURI"),Oe=[C].concat(Ie),ze=a.$r(Oe);return y(ze("OpenURI"),"$open_uri",function Ge(Me,Pe){var dt,We,st=Ge.$$p||Ue,Ye=this,Je=Ue;return Ge.$$p=null,dt=te(arguments,1),We=dt,Je=V(ze("File"),"new",[Ye.$path()].concat(_e(We))),st!==Ue?a.yield1(st,Je):Je},-2)}(Y[0],Y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.def,y=[],Y=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,G){var Ie=ae(Ue,"Asciidoctor"),C=[Ie].concat(G);return function(Oe,ze){var Ge=te(Oe,ze,"PathResolver");return _e(Ge,"$root?",function(Pe){var dt=this,We=Y;return V(We=dt["$absolute_path?"](Pe))?We:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(C[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.eqeq,y=a.not,Y=a.def,Ue=[],G=a.nil;return a.add_stubs("posixify,new,base_dir,start_with?,uriish?,key?,attributes,descends_from?,replace_next_line,absolute_path?,==,empty?,!,slice,length"),function(Ie,C){var Oe=ae(Ie,"Asciidoctor"),ze=[Oe].concat(C),Ge=a.$r(ze);return function(Me,Pe,dt){var We=te(Me,Pe,"PreprocessorReader"),st=[We].concat(dt),Ye=a.$r(st),Je=We.$$prototype;return Je.path_resolver=Je.document=Je.include_stack=Je.dir=G,Y(We,"$resolve_include_path",function(z,et,E){var tt,lt=this,K=G,M=G,He=G,we=G,Ne=G,Te=G,oe=G,ye=G;if(K=(lt.path_resolver=V(M=lt.path_resolver)?M:Ye("PathResolver").$new("\\")).$posixify(z),tt=["file",lt.document.$base_dir()],tt[0],He=tt[1],V(K["$start_with?"]("file://")))we=Ne=K;else if(V(Ye("Helpers")["$uriish?"](K))){if(!(V(lt.path_resolver["$descends_from?"](K,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+z+"["+et+"]");we=Ne=K}else if(V(lt.path_resolver["$absolute_path?"](K)))we=Ne="file://"+(V(K["$start_with?"]("/"))?"":"/")+K;else if(_e(Te=V(oe=lt.include_stack["$empty?"]())?He:lt.dir,"."))we=Ne=K;else if(V(Te["$start_with?"]("file://"))||y(Ye("Helpers")["$uriish?"](Te)))we=""+Te+"/"+K,V(oe)?Ne=K:_e(He,".")||y(ye=lt.path_resolver["$descends_from?"](we,He))?Ne=we:Ne=we.$slice(ye,we.$length());else if(V(oe))we=""+Te+"/"+(Ne=K);else if(V(ye=lt.path_resolver["$descends_from?"](Te,He))||V(lt.document.$attributes()["$key?"]("allow-uri-read")))we=""+Te+"/"+K,Ne=V(ye)?we.$slice(ye,we.$length()):K;else return lt.$replace_next_line("link:"+z+"["+et+"]");return[we,"file",Ne]})}(ze[0],Ge("Reader"),ze)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ae=a.eqeq,te=a.top,V=[],_e=a.$r(V),y=a.nil;return a.add_stubs("==,require"),ae(_e("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(te.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),te.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),te.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),te.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):y},Opal.modules.set=Opal.return_val(Opal.nil),Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var ae=a.module,te=a.slice,V=a.send,_e=a.to_a,y=a.def,Y=a.return_val,Ue=[],G=a.nil;return a.add_stubs("new"),function(Ie,C){var Oe=ae(Ie,"Kernel"),ze=[Oe].concat(C),Ge=a.$r(ze);return y(Oe,"$open",function Me(Pe,dt){var We,st,Ye=Me.$$p||G,Je=G;return Me.$$p=null,We=te(arguments,1),st=We,Je=V(Ge("File"),"new",[Pe].concat(_e(st))),Ye!==G?a.yield1(Ye,Je):Je},-2),y(Oe,"$__dir__",Y(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.gvars,y=a.return_val,Y=a.defs,Ue=[],G=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(Ie,C,Oe){var ze=ae(Ie,C,"File"),Ge=[ze].concat(Oe),Me=a.$r(Ge),Pe=ze.$$prototype;return Pe.eof=Pe.path=G,ze.$attr_reader("eof"),ze.$attr_reader("lineno"),ze.$attr_reader("path"),te(ze,"$initialize",function(We,st){var Ye=this,Je=G;return st==null&&(st="r"),Ye.path=We,Ye.contents=G,Ye.eof=!1,Ye.lineno=0,st=st.$delete("b"),Je=/:(.*)/,st=st.$gsub(Je,""),Ye.flags=st},-2),te(ze,"$read",function(){var We=this,st=G;return V(We.eof)?"":(st=Me("File").$read(We.path),We.eof=!0,We.lineno=st.$size(),st)}),te(ze,"$each_line",function dt(We){var st=dt.$$p||G,Ye=this,Je=G;if(_e["/"]==null&&(_e["/"]=G),dt.$$p=null,We==null&&(We=_e["/"]),V(Ye.eof))return st!==G?Ye:[].$to_enum();if(st!==G){Je=Me("File").$read(Ye.path),Ye.eof=!1,Ye.lineno=0;for(var $t=Je.$chomp(),z=Je.length!=$t.length,et=$t.split(We),E=0,tt=et.length;E<tt;E++)Ye.lineno+=1,E<tt-1||z?a.yield1(st,et[E]+We):a.yield1(st,et[E]);return Ye.eof=!0,Ye}else return Ye.$read().$each_line()},-1),te(ze,"$readlines",function(){var We=this;return Me("File").$readlines(We.path)}),function(dt,We){var st=[dt].concat(We),Ye=a.$r(st);return te(dt,"$readlines",function($t,z){var et=G;return _e["/"]==null&&(_e["/"]=G),z==null&&(z=_e["/"]),et=Ye("File").$read($t),et.$split(z)},-2),te(dt,"$file?",y(!0)),te(dt,"$readable?",y(!0)),te(dt,"$read",y(""))}(a.get_singleton_class(ze),Ge)}(Ue[0],null,Ue),function(Ie,C,Oe){var ze=ae(Ie,C,"IO"),Ge=[ze].concat(Oe),Me=a.$r(Ge);return Y(ze,"$read",function(dt){return Me("File").$read(dt)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ae=a.klass,te=a.send,V=a.def,_e=[],y=a.nil;return a.add_stubs("[]="),function(Y,Ue){var G=ae(Y,Ue,"MatchData"),Ie=G.$$prototype;return Ie.matches=y,V(G,"$[]=",function(Oe,ze){var Ge,Me=this;return Ge=[Oe,ze],te(Me.matches,"[]=",Ge),Ge[Ge.length-1]})}(_e[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ae=a.klass,te=a.truthy,V=a.rb_lt,_e=a.def,y=a.alias,Y=a.rb_ge,Ue=a.eqeq,G=a.rb_minus,Ie=[],C=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(Oe,ze){var Ge=ae(Oe,ze,"String");return te(Ge["$method_defined?"]("limit_bytesize"))||_e(Ge,"$limit_bytesize",function(Pe){var dt=this,We=C;return te(V(Pe,dt.$bytes().$length()))?(We=dt.$byteslice(0,Pe),We.$to_s()):dt.$to_s()}),te(Ge["$method_defined?"]("limit"))||y(Ge,"limit","limit_bytesize"),y(Ge,"_original_byteslice","byteslice"),_e(Ge,"$byteslice",function(Pe,dt){var We=this;return dt==null&&(dt=1),Ue(Pe,3)&&te(Y(dt,Pe))&&te(We.charCodeAt()===65279)?We.substr(1).$byteslice(0,G(dt,3)):We.$_original_byteslice(Pe,dt)},-2),y(Ge,"_original_unpack","unpack"),_e(Ge,"$unpack",function(Pe){var dt=this;if(Ue(Pe,"C3")){if(te(dt.charCodeAt()===65279))return[239,187,191];for(var We=[],st=0;st<3;st++)st<dt.length?We.push(dt.charCodeAt(st)):We.push(C);return We}else return dt.$_original_unpack(Pe)})}(Ie[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ae=a.module,te=a.defs,V=a.return_self,_e=a.def,y=[];return a.nil,a.add_stubs("extend"),function(Y,Ue){var G=ae(Y,"URI"),Ie=[G].concat(Ue),C=a.$r(Ie);return te(G,"$parse",function(ze){return ze.$extend(C("URI"))}),_e(G,"$path",V)}(y[0],y)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ae=a.module,te=a.defs,V=a.ensure_kwargs,_e=a.truthy,y=[],Y=a.nil;return a.add_stubs("delete"),function(Ue){var G=ae(Ue,"Base64"),Ie,C;return Ie=a.global.btoa||function(Oe){var ze;return Oe instanceof Buffer?ze=Oe:ze=Buffer.from(Oe.toString(),"binary"),ze.toString("base64")},C=a.global.atob||function(Oe){return Buffer.from(Oe,"base64").toString("binary")},te(G,"$decode64",function(ze){return C(ze.replace(/\r?\n/g,""))}),te(G,"$encode64",function(ze){return Ie(ze).replace(/(.{60})/g,`$1
408
- `).replace(/([^\n])$/g,`$1
409
- `)}),te(G,"$strict_decode64",function(ze){return C(ze)}),te(G,"$strict_encode64",function(ze){return Ie(ze)}),te(G,"$urlsafe_decode64",function(ze){return C(ze.replace(/\-/g,"+").replace(/_/g,"/"))}),te(G,"$urlsafe_encode64",function(ze,Ge){var Me,Pe=Y;return Ge=V(Ge),Me=Ge.$$smap.padding,Me==null&&(Me=!0),Pe=Ie(ze).replace(/\+/g,"-").replace(/\//g,"_"),_e(Me)||(Pe=Pe.$delete("=")),Pe},-2)}(y[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ae=a.klass,te=a.truthy,V=a.rb_gt,_e=a.def,y=[],Y=a.$r(y);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,G,Ie){var C=ae(Ue,G,"Number"),Oe=[C].concat(Ie),ze=a.$r(Oe);return _e(C,"$round",function(Me){var Pe=this;return Me=ze("Opal")["$coerce_to!"](Me,ze("Integer"),"to_int"),te(V(Me,0))?Number(Pe.toFixed(Me)):Math.round(Pe)},-1)}(y[0],Y("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,te=a.const_set,V=a.send,_e=a.gvars,y=a.truthy,Y=a.defs,Ue=a.rb_plus,G=[],Ie=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(C,Oe){var ze=ae(C,"Asciidoctor"),Ge=[ze].concat(Oe),Me=a.$r(Ge);return te(Ge[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),Y(ze,"$unpack_hex_range",function(dt){return V(dt,"gsub",[Me("HEX_RANGE_RX")],function(){var st,Ye=Ie;return"\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](1))+(y(Ye=(st=_e["~"])===Ie?Ie:st["$[]"](2))?"-\\u"+((st=_e["~"])===Ie?Ie:st["$[]"](2)):Ye)})}),te(Ge[0],"P_L",Ue("A-Za-z",ze.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),te(Ge[0],"P_Nl",ze.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),te(Ge[0],"P_Nd",Ue("0-9",ze.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),te(Ge[0],"P_Pc",ze.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),te(Ge[0],"CC_ALPHA",""+Me("P_L")+Me("P_Nl")),te(Ge[0],"CG_ALPHA","["+Me("CC_ALPHA")+"]"),te(Ge[0],"CC_ALNUM",""+Me("CC_ALPHA")+Me("P_Nd")),te(Ge[0],"CG_ALNUM","["+Me("CC_ALNUM")+"]"),te(Ge[0],"CC_WORD",""+Me("CC_ALNUM")+Me("P_Pc")),te(Ge[0],"CG_WORD","["+Me("CC_WORD")+"]"),te(Ge[0],"CG_BLANK","[ \\t]"),te(Ge[0],"CC_EOL","(?=\\n|$)"),te(Ge[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),te(Ge[0],"CC_ALL","[\\s\\S]"),te(Ge[0],"CC_ANY","[^\\n]")}(G[0],G)},Opal.modules.strscan=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.eqeqeq,y=a.Opal,Y=a.return_ivar,Ue=a.send,G=a.alias,Ie=[],C=a.nil;return a.add_stubs("attr_reader,anchor,empty?,===,to_s,coerce_to!,scan_until,length,size,rest,pos=,beginning_of_line?,get_byte,private"),function(Oe,ze,Ge){var Me=ae(Oe,ze,"StringScanner"),Pe=[Me].concat(Ge),dt=a.$r(Pe),We=Me.$$prototype;return We.pos=We.string=We.working=We.matched=We.prev_pos=We.match=C,Me.$attr_reader("pos","matched"),te(Me,"$initialize",function(Ye){var Je=this;return Je.string=Ye,Je.pos=0,Je.matched=C,Je.working=Ye,Je.match=[]}),Me.$attr_reader("string"),te(Me,"$beginning_of_line?",function(){var Ye=this;return Ye.pos===0||Ye.string.charAt(Ye.pos-1)===`
410
- `}),te(Me,"$scan",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var $t=Ye.exec(Je.working);return $t==null?Je.matched=C:(Je.prev_pos=Je.pos,Je.pos+=$t[0].length,Je.working=Je.working.substring($t[0].length),Je.matched=$t[0],Je.match=$t,$t[0])}),te(Me,"$scan_until",function(Ye){var Je=this;Ye=Je.$anchor(Ye);for(var $t=Je.working,z=0;$t.length!=z;++z){var et=Ye.exec($t.substr(z));if(et!==null){var E=z+et[0].length,tt=$t.substr(0,E);return Je.matched=et[0],Je.match=et,Je.prev_pos=Je.pos+z,Je.pos+=E,Je.working=$t.substr(E),tt}}return Je.matched=C}),te(Me,"$[]",function(Ye){var Je=this,$t=C;if(V(Je.match["$empty?"]()))return C;_e(dt("Symbol"),$t=Ye)?Ye=Ye.$to_s():_e(dt("String"),$t)||(Ye=y["$coerce_to!"](Ye,dt("Integer"),"to_int"));var z=Je.match;return Ye<0&&(Ye+=z.length),Ye<0||Ye>=z.length||z[Ye]==null?C:z[Ye]}),te(Me,"$check",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var $t=Ye.exec(Je.working);return $t==null?Je.matched=C:Je.matched=$t[0]}),te(Me,"$check_until",function(Ye){var Je=this,$t=Je.prev_pos,z=Je.pos,et=Je.working,E=Je.$scan_until(Ye);return Je.prev_pos=$t,Je.pos=z,Je.working=et,E}),te(Me,"$peek",function(Ye){var Je=this;return Je.working.substring(0,Ye)}),te(Me,"$eos?",function(){var Ye=this;return Ye.working.length===0}),te(Me,"$exist?",function(Ye){var Je=this,$t=Ye.exec(Je.working);return $t==null?C:$t.index==0?0:$t.index+1}),te(Me,"$skip",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var $t=Ye.exec(Je.working);if($t==null)return Je.match=[],Je.matched=C;var z=$t[0],et=z.length;return Je.matched=z,Je.match=$t,Je.prev_pos=Je.pos,Je.pos+=et,Je.working=Je.working.substring(et),et}),te(Me,"$skip_until",function(Ye){var Je=this,$t=Je.$scan_until(Ye);return $t===C?C:(Je.matched=$t.substr(-1),$t.length)}),te(Me,"$get_byte",function(){var Ye=this,Je=C;return Ye.pos<Ye.string.length?(Ye.prev_pos=Ye.pos,Ye.pos+=1,Je=Ye.matched=Ye.working.substring(0,1),Ye.working=Ye.working.substring(1)):Ye.matched=C,Je}),te(Me,"$match?",function(Ye){var Je=this;Ye=Je.$anchor(Ye);var $t=Ye.exec(Je.working);return $t==null?C:(Je.prev_pos=Je.pos,$t[0].length)}),te(Me,"$pos=",function(Ye){var Je=this;return Ye<0&&(Ye+=Je.string.$length()),Je.pos=Ye,Je.working=Je.string.slice(Ye)}),te(Me,"$matched_size",function(){var Ye=this;return Ye.matched===C?C:Ye.matched.length}),te(Me,"$post_match",function(){var Ye=this;return Ye.matched===C?C:Ye.string.substr(Ye.pos)}),te(Me,"$pre_match",function(){var Ye=this;return Ye.matched===C?C:Ye.string.substr(0,Ye.prev_pos)}),te(Me,"$reset",function(){var Ye=this;return Ye.working=Ye.string,Ye.matched=C,Ye.pos=0}),te(Me,"$rest",Y("working")),te(Me,"$rest?",function(){var Ye=this;return Ye.working.length!==0}),te(Me,"$rest_size",function(){var Ye=this;return Ye.$rest().$size()}),te(Me,"$terminate",function(){var Ye,Je=this;return Je.match=C,Ye=[Je.string.$length()],Ue(Je,"pos=",Ye),Ye[Ye.length-1]}),te(Me,"$unscan",function(){var Ye=this;return Ye.pos=Ye.prev_pos,Ye.prev_pos=C,Ye.match=C,Ye}),G(Me,"bol?","beginning_of_line?"),G(Me,"getch","get_byte"),Me.$private(),te(Me,"$anchor",function(Ye){var Je=Ye.toString().match(/\/([^\/]+)$/);return Je=Je?Je[1]:void 0,new RegExp("^(?:"+Ye.source+")",Je)})}(Ie[0],null,Ie)},Opal.modules["asciidoctor/js"]=function(a){var ae=a.top;return a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/opal_ext"),ae.$require("asciidoctor/js/rx"),ae.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ae=a.klass,te=a.truthy,V=a.alias,_e=[],y=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(Y,Ue){var G=ae(Y,Ue,"NilClass");return te(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","nil?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"String");return te(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Array");return te(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Hash");return te(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","empty?")}(_e[0],null),function(Y,Ue){var G=ae(Y,Ue,"Numeric");return te(G["$method_defined?"]("nil_or_empty?"))?y:V(G,"nil_or_empty?","nil?")}(_e[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ae=a.eqeq,te=a.send,V=a.slice,_e=a.truthy,y=a.rb_lt,Y=a.rb_gt,Ue=a.send2,G=a.find_super,Ie=a.def,C=a.top,Oe=[],ze=a.$r(Oe),Ge=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ae(ze("Hash").$instance_method("merge").$arity(),1)?ze("Hash").$send("prepend",te(ze("Module"),"new",[],function Me(){var Pe=Me.$$s==null?this:Me.$$s;return Ie(Pe,"$merge",function dt(We){var st,Ye;dt.$$p;var Je=this,$t=Ge;return dt.$$p=null,st=V(arguments),Ye=st,_e(y($t=Ye.$length(),1))?Je.$dup():_e(Y($t,1))?te(Ye,"inject",[Je],function(et,E){return et==null&&(et=Ge),E==null&&(E=Ge),et.$merge(E)}):Ue(Je,G(Je,"merge",dt,!1,!0),"merge",[Ye["$[]"](0)],null)},-1)},{$$s:C})):Ge},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ae=a.truthy,te=a.klass,V=a.def,_e=[],y=a.$r(_e),Y=a.nil;return a.add_stubs("method_defined?"),ae(y("MatchData")["$method_defined?"]("names"))?Y:function(Ue,G){var Ie=te(Ue,G,"MatchData");return V(Ie,"$names",function(){return[]})}(_e[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ae=a.top;return a.nil,ae.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ae.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ae.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ae=a.module,te=a.truthy,V=a.eqeq,_e=a.gvars,y=a.def,Y=a.send,Ue=a.neqeq,G=a.const_set,Ie=a.hash2,C=a.to_ary,Oe=a.rb_times,ze=a.eqeqeq,Ge=a.rb_plus,Me=a.Class,Pe=a.Object,dt=[],We=a.nil,st=a.$$$;return a.add_stubs("module_function,require,include?,include,==,path,message,raise,warn,logger,chomp,empty?,slice,unpack,[],[]=,byteslice,bytesize,map,rstrip,encode,encoding,nil_or_empty?,!=,tap,each_line,<<,!,start_with?,match?,gsub,rindex,index,basename,extname,length,directory?,dirname,mkdir_p,mkdir,private_constant,join,divmod,*,===,+,to_s,to_i,succ,class_for_name,const_get"),function(Ye,Je){var $t=ae(Ye,"Asciidoctor"),z=[$t].concat(Je);return function(et,E){var tt=ae(et,"Helpers"),lt=[tt].concat(E),K=a.$r(lt);return tt.$module_function(),y(tt,"$require_library",function(He,we,Ne){var Te=this,oe=We;_e["!"]==null&&(_e["!"]=We),we==null&&(we=!0),Ne==null&&(Ne="abort");try{return Te.$require(He)}catch(ye){if(a.rescue(ye,[st("LoadError")]))try{if(te(Te["$include?"](K("Logging")))||Te.$include(K("Logging")),te(we))switch(V(we,!0)&&(we=He),Ne){case"abort":oe=V(_e["!"].$path(),we)?"":" (reason: "+(te(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Te.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+we+"' is not available"+oe+". Processing aborted.");break;case"warn":oe=V(_e["!"].$path(),we)?"":" (reason: "+(te(_e["!"].$path())?"cannot load '"+_e["!"].$path()+"'":_e["!"].$message())+")",Te.$logger().$warn("optional gem '"+we+"' is not available"+oe+". Functionality disabled.");break;default:}else switch(Ne){case"abort":Te.$raise(st("LoadError"),"asciidoctor: FAILED: "+_e["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Te.$logger().$warn(""+_e["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return We}finally{a.pop_exception()}else throw ye}},-2),y(tt,"$prepare_source_array",function(He,we){var Ne=We,Te=We,oe=We;return we==null&&(we=!0),te(He["$empty?"]())?[]:V(Ne=(Te=(oe=He["$[]"](0)).$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):V(Ne,K("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,oe.$byteslice(2,oe.$bytesize())),te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(V(Te,K("BOM_BYTES_UTF_8"))&&He["$[]="](0,oe.$byteslice(3,oe.$bytesize())),V(oe.$encoding(),K("UTF_8"))?te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$chomp()}):te(we)?Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8")).$rstrip()}):Y(He,"map",[],function(Z){return Z==null&&(Z=We),Z.$encode(K("UTF_8")).$chomp()}))},-2),y(tt,"$prepare_source_string",function(He,we){var Ne=We,Te=We;return we==null&&(we=!0),te(He["$nil_or_empty?"]())?[]:(V(Ne=(Te=He.$unpack("C3")).$slice(0,2),K("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16LE")):V(Ne,K("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(K("UTF_8"),st(st("Encoding"),"UTF_16BE")):V(Te,K("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),V(He.$encoding(),K("UTF_8"))||(He=He.$encode(K("UTF_8")))):Ue(He.$encoding(),K("UTF_8"))&&(He=He.$encode(K("UTF_8"))),te(we)?Y([],"tap",[],function(ye){return ye==null&&(ye=We),Y(He,"each_line",[],function(F){return F==null&&(F=We),ye["$<<"](F.$rstrip())})}):Y([],"tap",[],function(ye){return ye==null&&(ye=We),Y(He,"each_line",[],function(F){return F==null&&(F=We),ye["$<<"](F.$chomp())})}))},-2),V(st("RUBY_ENGINE"),"jruby")?y(tt,"$uriish?",function(He){var we=We,Ne=We;return te(we=te(Ne=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():Ne)?K("UriSniffRx")["$match?"](He):we}):y(tt,"$uriish?",function(He){var we=We;return te(we=He["$include?"](":"))?K("UriSniffRx")["$match?"](He):we}),y(tt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(we){return we==="%20"?"+":"%"+we.charCodeAt(0).toString(16)})}),y(tt,"$encode_spaces_in_uri",function(He){return te(He["$include?"](" "))?He.$gsub(" ","%20"):He}),y(tt,"$rootname",function(He){var we=We;return te(we=He.$rindex("."))?te(He.$index("/",we))?He:He.$slice(0,we):He}),y(tt,"$basename",function(He,we){var Ne=this;return we==null&&(we=We),te(we)?st("File").$basename(He,V(we,!0)?Ne.$extname(He):we):st("File").$basename(He)},-2),y(tt,"$extname?",function(He){var we=We,Ne=We;return te(we=Ne=He.$rindex("."))?He.$index("/",Ne)["$!"]():we}),te(st(st("File"),"ALT_SEPARATOR"))?y(tt,"$extname",function(He,we){var Ne=We;return we==null&&(we=""),te(Ne=He.$rindex("."))?te(He.$index("/",Ne))||te(He.$index(st(st("File"),"ALT_SEPARATOR"),Ne))?we:He.$slice(Ne,He.$length()):we},-2):y(tt,"$extname",function(He,we){var Ne=We;return we==null&&(we=""),te(Ne=He.$rindex("."))?te(He.$index("/",Ne))?we:He.$slice(Ne,He.$length()):we},-2),y(tt,"$mkdir_p",function(He){var we=this,Ne=We;if(te(st("File")["$directory?"](He)))return We;V(Ne=st("File").$dirname(He),".")||we.$mkdir_p(Ne);try{return st("Dir").$mkdir(He)}catch(Te){if(a.rescue(Te,[st("SystemCallError")]))try{return te(st("File")["$directory?"](He))?We:we.$raise()}finally{a.pop_exception()}else throw Te}}),G(lt[0],"ROMAN_NUMERALS",Ie(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),tt.$private_constant("ROMAN_NUMERALS"),y(tt,"$int_to_roman",function(He){return Y(K("ROMAN_NUMERALS"),"map",[],function(Ne,Te){var oe,ye,Z=We;return Ne==null&&(Ne=We),Te==null&&(Te=We),ye=He.$divmod(Te),oe=C(ye),Z=oe[0]==null?We:oe[0],He=oe[1]==null?We:oe[1],Oe(Ne,Z)}).$join()}),y(tt,"$nextval",function(He){var we=We;return ze(st("Integer"),He)?Ge(He,1):V((we=He.$to_i()).$to_s(),He.$to_s())?Ge(we,1):He.$succ()}),y(tt,"$resolve_class",function(He){var we=this;return ze(Me,He)?He:ze(st("String"),He)?we.$class_for_name(He):We}),y(tt,"$class_for_name",function(He){var we=this,Ne=We;try{return ze(Me,Ne=Pe.$const_get(He,!1))||we.$raise(),Ne}catch(Te){if(a.rescue(Te,[K("StandardError")]))try{return we.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw Te}})}(z[0],z)}(dt[0],dt)},Opal.modules.logger=function(a){var ae=a.klass,te=a.module,V=a.const_set,_e=a.send,y=a.def,Y=a.eqeqeq,Ue=a.rb_plus,G=a.truthy,Ie=a.rb_le,C=a.rb_lt,Oe=[],ze=a.nil,Ge=a.$$$;return a.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(Me,Pe,dt){var We=ae(Me,Pe,"Logger"),st=[We].concat(dt),Ye=a.$r(st),Je=We.$$prototype;return Je.level=Je.progname=Je.pipe=Je.formatter=ze,function($t,z){var et=te($t,"Severity"),E=[et].concat(z);return V(E[0],"DEBUG",0),V(E[0],"INFO",1),V(E[0],"WARN",2),V(E[0],"ERROR",3),V(E[0],"FATAL",4),V(E[0],"UNKNOWN",5)}(st[0],st),We.$include(Ye("Severity")),V(st[0],"SEVERITY_LABELS",_e(Ye("Severity").$constants(),"map",[],function(z){return z==null&&(z=ze),[Ye("Severity").$const_get(z),z.$to_s()]}).$to_h()),function($t,z,et){var E=ae($t,z,"Formatter"),tt=[E].concat(et),lt=a.$r(tt);return V(tt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
411
- `),V(tt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),y(E,"$call",function(M,He,we,Ne){var Te=this;return Te.$format(lt("MESSAGE_FORMAT"),M.$chr(),He.$strftime(lt("DATE_TIME_FORMAT")),M,we,Te.$message_as_string(Ne))}),y(E,"$message_as_string",function(M){var He=ze,we=ze;return Y(Ge("String"),He=M)?M:Y(Ge("Exception"),He)?Ue(""+M.$message()+" ("+M.$class()+`)
412
- `,(G(we=M.$backtrace())?we:[]).$join(`
413
- `)):M.$inspect()})}(st[0],null,st),We.$attr_reader("level"),We.$attr_accessor("progname"),We.$attr_accessor("formatter"),y(We,"$initialize",function(z){var et=this;return et.pipe=z,et.level=Ye("DEBUG"),et.formatter=Ye("Formatter").$new()}),y(We,"$level=",function(z){var et=this,E=ze;return Y(Ge("Integer"),z)?et.level=z:G(E=Ye("SEVERITY_LABELS").$key(z.$to_s().$upcase()))?et.level=E:et.$raise(Ye("ArgumentError"),"invalid log level: "+z)}),y(We,"$info",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("INFO"),ze,z],et.$to_proc())},-1),y(We,"$debug",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("DEBUG"),ze,z],et.$to_proc())},-1),y(We,"$warn",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("WARN"),ze,z],et.$to_proc())},-1),y(We,"$error",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("ERROR"),ze,z],et.$to_proc())},-1),y(We,"$fatal",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("FATAL"),ze,z],et.$to_proc())},-1),y(We,"$unknown",function $t(z){var et=$t.$$p||ze,E=this;return $t.$$p=null,z==null&&(z=ze),_e(E,"add",[Ye("UNKNOWN"),ze,z],et.$to_proc())},-1),y(We,"$info?",function(){var z=this;return Ie(z.level,Ye("INFO"))}),y(We,"$debug?",function(){var z=this;return Ie(z.level,Ye("DEBUG"))}),y(We,"$warn?",function(){var z=this;return Ie(z.level,Ye("WARN"))}),y(We,"$error?",function(){var z=this;return Ie(z.level,Ye("ERROR"))}),y(We,"$fatal?",function(){var z=this;return Ie(z.level,Ye("FATAL"))}),y(We,"$add",function $t(z,et,E){var tt=$t.$$p||ze,lt=this,K=ze;return $t.$$p=null,et==null&&(et=ze),E==null&&(E=ze),G(C(z=G(K=z)?K:Ye("UNKNOWN"),lt.level))||(E=G(K=E)?K:lt.progname,G(et)||(tt!==ze?et=a.yieldX(tt,[]):(et=E,E=lt.progname)),lt.pipe.$write(lt.formatter.$call(G(K=Ye("SEVERITY_LABELS")["$[]"](z))?K:"ANY",Ge("Time").$now(),E,et))),!0},-2)}(Oe[0],null,Oe)},Opal.modules["asciidoctor/logging"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.send2,y=a.find_super,Y=a.to_a,Ue=a.send,G=a.def,Ie=a.truthy,C=a.rb_gt,Oe=a.const_set,ze=a.hash2,Ge=a.eqeqeq,Me=a.gvars,Pe=a.alias,dt=a.defs,We=a.top,st=[],Ye=a.nil,Je=a.$$$;return a.add_stubs("require,attr_reader,progname=,formatter=,new,level=,>,[],===,inspect,to_h,map,constants,const_get,<<,clear,empty?,max,attr_accessor,memoize_logger,private,logger,extend,private_class_method,merge"),We.$require("logger"),function($t,z){var et=ae($t,"Asciidoctor"),E=[et].concat(z);return function(tt,lt,K){var M=te(tt,lt,"Logger"),He=[M].concat(K),we=a.$r(He),Ne=M.$$prototype;return Ne.max_severity=Ye,M.$attr_reader("max_severity"),G(M,"$initialize",function Te(oe){var ye,Z,F,q=Te.$$p||Ye,ie=this;return Te.$$p=null,ye=V(arguments),Z=ye,_e(ie,y(ie,"initialize",Te,!1,!0),"initialize",Y(Z),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 Te(oe,ye,Z){var F=Te.$$p||Ye,q=this,ie=Ye;return Te.$$p=null,ye==null&&(ye=Ye),Z==null&&(Z=Ye),Ie(C(oe=Ie(ie=oe)?ie:we("UNKNOWN"),q.max_severity=Ie(ie=q.max_severity)?ie:oe))&&(q.max_severity=oe),_e(q,y(q,"add",Te,!1,!0),"add",[oe,ye,Z],F)},-2),function(Te,oe,ye){var Z=te(Te,oe,"BasicFormatter"),F=[Z].concat(ye),q=a.$r(F);return Oe(F[0],"SEVERITY_LABEL_SUBSTITUTES",ze(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),G(Z,"$call",function(ee,$e,U,g){var o=Ye;return""+U+": "+(Ie(o=q("SEVERITY_LABEL_SUBSTITUTES")["$[]"](ee))?o:ee)+": "+(Ge(Je("String"),g)?g:g.$inspect())+q("LF")})}(He[0],we("Formatter"),He),function(Te){var oe=ae(Te,"AutoFormattingMessage");return G(oe,"$inspect",function(){var Z=this,F=Ye;return Ie(F=Z["$[]"]("source_location"))?""+F+": "+Z["$[]"]("text"):Z["$[]"]("text")})}(He[0])}(E[0],Je("Logger"),E),function(tt,lt,K){var M=te(tt,lt,"MemoryLogger"),He=[M].concat(K),we=a.$r(He),Ne=M.$$prototype;return Ne.messages=Ye,Oe(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(we("Severity").$constants(!1),"map",[],function(oe){return oe==null&&(oe=Ye),[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 Te(oe,ye,Z){var F=Te.$$p||Ye,q=this,ie=Ye;return Te.$$p=null,ye==null&&(ye=Ye),Z==null&&(Z=Ye),ye=Ie(ie=ye)?ie:F!==Ye?a.yieldX(F,[]):Z,q.messages["$<<"](ze(["severity","message"],{severity:we("SEVERITY_SYMBOL_BY_VALUE")["$[]"](Ie(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 Ie(oe["$empty?"]())?Ye:Ue(oe.messages,"map",[],function(Z){return Z==null&&(Z=Ye),we("Severity").$const_get(Z["$[]"]("severity"))}).$max()})}(E[0],Je("Logger"),E),function(tt,lt,K){var M=te(tt,lt,"NullLogger"),He=[M].concat(K),we=a.$r(He),Ne=M.$$prototype;return Ne.max_severity=Ye,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,Z){var F=this,q=Ye;return Ie(C(oe=Ie(q=oe)?q:we("UNKNOWN"),F.max_severity=Ie(q=F.max_severity)?q:oe))&&(F.max_severity=oe),!0},-2)}(E[0],Je("Logger"),E),function(tt,lt){var K=ae(tt,"LoggerManager"),M=[K].concat(lt),He=a.$r(M);return K.logger_class=He("Logger"),function(we,Ne){return we.$attr_accessor("logger_class"),G(we,"$logger",function(oe){var ye=this,Z=Ye;return ye.logger==null&&(ye.logger=Ye),ye.logger_class==null&&(ye.logger_class=Ye),Me.stderr==null&&(Me.stderr=Ye),oe==null&&(oe=Me.stderr),ye.$memoize_logger(),ye.logger=Ie(Z=ye.logger)?Z:ye.logger_class.$new(oe)},-1),G(we,"$logger=",function(oe){var ye=this,Z=Ye;return ye.logger_class==null&&(ye.logger_class=Ye),Me.stderr==null&&(Me.stderr=Ye),ye.logger=Ie(Z=oe)?Z:ye.logger_class.$new(Me.stderr)}),we.$private(),G(we,"$memoize_logger",function(){var oe=this;return function(ye,Z){return Pe(ye,"logger","logger"),ye.$attr_reader("logger")}(a.get_singleton_class(oe))})}(a.get_singleton_class(K))}(E[0],E),function(tt,lt){var K=ae(tt,"Logging"),M=[K].concat(lt),He=a.$r(M);return dt(K,"$included",function(Ne){return Ne.$extend(He("Logging"))}),K.$private_class_method("included"),G(K,"$logger",function(){return He("LoggerManager").$logger()}),G(K,"$message_with_context",function(Ne,Te){return Te==null&&(Te=ze([],{})),ze(["text"],{text:Ne}).$merge(Te).$extend(Je(He("Logger"),"AutoFormattingMessage"))},-2)}(E[0],E)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ae=a.module,te=a.const_set,V=a.regexp,_e=a.hash2,y=a.send,Y=a.truthy,Ue=a.hash,G=[],Ie=a.nil,C=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(Oe,ze){var Ge=ae(Oe,"Asciidoctor"),Me=[Ge].concat(ze),Pe=a.$r(Me);return ae(Me[0],"Rx"),te(Me[0],"AuthorInfoLineRx",V(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),te(Me[0],"AuthorDelimiterRx",/;(?: |$)/),te(Me[0],"RevisionInfoLineRx",V(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),te(Me[0],"ManpageTitleVolnumRx",V(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),te(Me[0],"ManpageNamePurposeRx",V(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),te(Me[0],"ConditionalDirectiveRx",V(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),te(Me[0],"EvalExpressionRx",V(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),te(Me[0],"IncludeDirectiveRx",V(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),te(Me[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),te(Me[0],"AttributeEntryRx",V(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),te(Me[0],"InvalidAttributeNameCharsRx",V(["[^",Pe("CC_WORD"),"-]"])),te(Me[0],"AttributeEntryPassMacroRx",V(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),te(Me[0],"AttributeReferenceRx",V(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),te(Me[0],"BlockAnchorRx",V(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),te(Me[0],"BlockAttributeListRx",V(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),te(Me[0],"BlockAttributeLineRx",V(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),te(Me[0],"BlockTitleRx",V(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),te(Me[0],"AdmonitionParagraphRx",V(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),te(Me[0],"LiteralParagraphRx",V(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),te(Me[0],"AtxSectionTitleRx",V(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),te(Me[0],"ExtAtxSectionTitleRx",V(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),te(Me[0],"SetextSectionTitleRx",V(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),te(Me[0],"InlineSectionAnchorRx",V([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),te(Me[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"),"\\-.]+?"])),te(Me[0],"SectionLevelStyleRx",/^sect\d$/),te(Me[0],"AnyListRx",V(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),te(Me[0],"UnorderedListRx",V(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),te(Me[0],"OrderedListRx",V(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),te(Me[0],"OrderedListMarkerRxMap",_e(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),te(Me[0],"DescriptionListRx",V(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),te(Me[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"),"*)$)"])})),te(Me[0],"CalloutListRx",V(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),te(Me[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),te(Me[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),te(Me[0],"CalloutExtractRxMap",y(C("Hash"),"new",[],function(We,st){var Ye;return We==null&&(We=Ie),st==null&&(st=Ie),Ye=[st,V(["(",Y(st["$empty?"]())?"":""+C("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],y(We,"[]=",Ye),Ye[Ye.length-1]})),te(Me[0],"CalloutScanRx",V(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),te(Me[0],"CalloutSourceRx",V(["((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*",Pe("CC_EOL"),")"])),te(Me[0],"CalloutSourceRxt","(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*"+Pe("CC_EOL")+")"),te(Me[0],"CalloutSourceRxMap",y(C("Hash"),"new",[],function(We,st){var Ye;return We==null&&(We=Ie),st==null&&(st=Ie),Ye=[st,V(["(",Y(st["$empty?"]())?"":""+C("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],y(We,"[]=",Ye),Ye[Ye.length-1]})),te(Me[0],"ListRxMap",_e(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),te(Me[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),te(Me[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),te(Me[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),te(Me[0],"CustomBlockMacroRx",V(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),te(Me[0],"BlockMediaMacroRx",V(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),te(Me[0],"BlockTocMacroRx",V(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),te(Me[0],"InlineAnchorRx",V(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),te(Me[0],"InlineAnchorScanRx",V(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),te(Me[0],"LeadingInlineAnchorRx",V(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),te(Me[0],"InlineBiblioAnchorRx",V(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),te(Me[0],"InlineEmailRx",V(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&amp;|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),te(Me[0],"InlineFootnoteMacroRx",V(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),te(Me[0],"InlineImageMacroRx",V(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(Me[0],"InlineIndextermMacroRx",V(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),te(Me[0],"InlineKbdBtnMacroRx",V(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(Me[0],"InlineLinkRx",V(["(^|link:|",Pe("CG_BLANK"),`|&lt;|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),te(Me[0],"InlineLinkMacroRx",V(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(Me[0],"MacroNameRx",V(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),te(Me[0],"InlineStemMacroRx",V(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),te(Me[0],"InlineMenuMacroRx",V(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),te(Me[0],"InlineMenuRx",V(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+&gt;[ \\n]+[^"]*)"'])),te(Me[0],"InlinePassRx",Ue(!1,["+","-]",V(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",Ie,V(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),te(Me[0],"InlinePassMacroRx",V(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),te(Me[0],"InlineXrefMacroRx",V(["\\\\?(?:&lt;&lt;([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)&gt;&gt;|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),te(Me[0],"HardLineBreakRx",V(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),te(Me[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),te(Me[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),te(Me[0],"BlankLineRx",/\n{2,}/),te(Me[0],"EscapedSpaceRx",/\\([ \t\n])/),te(Me[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),te(Me[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),te(Me[0],"SubModifierSniffRx",/[+-]/),te(Me[0],"TrailingDigitsRx",/\d+$/),te(Me[0],"UriSniffRx",V(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),te(Me[0],"XmlSanitizeRx",/<[^>]+>/)}(G[0],G)},Opal.modules["asciidoctor/substitutors"]=function(a){var ae=a.module,te=a.const_set,V=a.hash2,_e=a.hash,y=a.rb_plus,Y=a.regexp,Ue=a.not,G=a.truthy,Ie=a.send,C=a.def,Oe=a.alias,ze=a.gvars,Ge=a.eqeq,Me=a.to_ary,Pe=a.neqeq,dt=a.to_a,We=a.eqeqeq,st=a.rb_gt,Ye=a.slice,Je=a.rb_minus,$t=a.rb_lt,z=a.rb_times,et=[],E=a.nil,tt=a.$$$;return a.add_stubs("freeze,+,keys,!,empty?,===,[],join,include?,extract_passthroughs,each,sub_specialchars,sub_quotes,sub_attributes,sub_replacements,sub_macros,highlight_source,sub_callouts,sub_post_replacements,warn,logger,restore_passthroughs,clear,split,apply_subs,gsub,match?,compat_mode,convert_quoted_text,attributes,==,shift,store_attribute,!=,attribute_undefined,counter,key?,downcase,attribute_missing,info,squeeze,delete,reject,start_with?,do_replacement,inline_macros?,extensions,inline_macros,regexp,instance,slice,length,names,config,merge,[]=,normalize_text,parse_attributes,process_method,expand_subs,text=,text,convert,class,strip,index,min,compact,>,end_with?,map,chop,new,pop,rstrip,register,tr,basename,parse,lstrip,split_simple_csv,-,partition,extract_attributes_from_text,sub,encode_uri_component,style,extname?,rindex,catalog,info?,fetch,outfilesuffix,natural_xrefs,resolve_id,find,footnotes,id,<,size,<<,attr?,attr,to_s,read_next_id,callouts,highlight?,syntax_highlighter,sub_source,extract_callouts,name,to_i,to_sym,resolve_lines_to_highlight,highlight,nil_or_empty?,restore_callouts,count,to_a,|,sort,*,parse_quoted_text_attributes,resolve_pass_subs,basebackend?,error,chr,drop,&,resolve_subs,resolve_block_subs,parse_into,private,shorthand_property_syntax,each_char"),function(lt,K){var M=ae(lt,"Asciidoctor"),He=[M].concat(K);return function(we,Ne){var Te=ae(we,"Substitutors"),oe=[Te].concat(Ne),ye=a.$r(oe);return te(oe[0],"SpecialCharsRx",/[<&>]/),te(oe[0],"SpecialCharsTr",V([">","<","&"],{">":"&gt;","<":"&lt;","&":"&amp;"})),te(oe[0],"QuotedTextSniffRx",_e(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),te(oe[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),te(oe[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),te(oe[0],"NO_SUBS",[]).$freeze(),te(oe[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),te(oe[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),te(oe[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),te(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")})),te(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"})),te(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"))})),te(oe[0],"CAN",""),te(oe[0],"DEL",""),te(oe[0],"PASS_START","–"),te(oe[0],"PASS_END","—"),te(oe[0],"PassSlotRx",Y([ye("PASS_START"),"(\\d+)",ye("PASS_END")])),te(oe[0],"HighlightedPassSlotRx",Y(["<span\\b[^>]*>",ye("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",ye("PASS_END"),"</span>"])),te(oe[0],"RS","\\"),te(oe[0],"R_SB","]"),te(oe[0],"ESC_R_SB","\\]"),te(oe[0],"PLUS","+"),C(Te,"$apply_subs",function(F,q){var ie=this,ee=E,$e=E,U=E,g=E;return ie.passthroughs==null&&(ie.passthroughs=E),ie.passthroughs_locked==null&&(ie.passthroughs_locked=E),q==null&&(q=ye("NORMAL_SUBS")),G(F["$empty?"]())||Ue(q)?F:(G(ee=tt("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(U=ie.passthroughs_locked)?U:g=!0)),Ie(q,"each",[],function o(m){var T=o.$$s==null?this:o.$$s;switch(m==null&&(m=E),m){case"specialcharacters":return F=T.$sub_specialchars(F);case"quotes":return F=T.$sub_quotes(F);case"attributes":return G(F["$include?"](ye("ATTR_REF_HEAD")))?F=T.$sub_attributes(F):E;case"replacements":return F=T.$sub_replacements(F);case"macros":return F=T.$sub_macros(F);case"highlight":return F=T.$highlight_source(F,q["$include?"]("callouts"));case"callouts":return G(q["$include?"]("highlight"))?E:F=T.$sub_callouts(F);case"post_replacements":return F=T.$sub_post_replacements(F);default:return T.$logger().$warn("unknown substitution type "+m)}},{$$s:ie}),G($e)&&(F=ie.$restore_passthroughs(F),G(g)&&($e.$clear(),ie.passthroughs_locked=E)),G(ee)?F.$split(ye("LF"),-1):F)},-2),C(Te,"$apply_normal_subs",function(F){var q=this;return q.$apply_subs(F,ye("NORMAL_SUBS"))}),C(Te,"$apply_header_subs",function(F){var q=this;return q.$apply_subs(F,ye("HEADER_SUBS"))}),Oe(Te,"apply_title_subs","apply_subs"),C(Te,"$apply_reftext_subs",function(F){var q=this;return q.$apply_subs(F,ye("REFTEXT_SUBS"))}),C(Te,"$sub_specialchars",function(F){return G(F["$include?"](">"))||G(F["$include?"]("&"))||G(F["$include?"]("<"))?F.$gsub(ye("SpecialCharsRx"),ye("SpecialCharsTr")):F}),Oe(Te,"sub_specialcharacters","sub_specialchars"),C(Te,"$sub_quotes",function(F){var q=this,ie=E;return q.document==null&&(q.document=E),G(ye("QuotedTextSniffRx")["$[]"](ie=q.document.$compat_mode())["$match?"](F))&&Ie(ye("QUOTE_SUBS")["$[]"](ie),"each",[],function ee($e,U,g){var o=ee.$$s==null?this:ee.$$s;return $e==null&&($e=E),U==null&&(U=E),g==null&&(g=E),F=Ie(F,"gsub",[g],function m(){var T=m.$$s==null?this:m.$$s;return ze["~"]==null&&(ze["~"]=E),T.$convert_quoted_text(ze["~"],$e,U)},{$$s:o})},{$$s:q}),F}),C(Te,"$sub_attributes",function(F,q){var ie=this,ee=E,$e=E,U=E,g=E,o=E,m=E,T=E,S=E;return ie.document==null&&(ie.document=E),q==null&&(q=V([],{})),ee=ie.document.$attributes(),$e=U=g=o=m=T=E,F=Ie(F,"gsub",[ye("AttributeReferenceRx")],function b(){var D,j,de=b.$$s==null?this:b.$$s,le=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(de.document==null&&(de.document=E),Ge((D=ze["~"])===E?E:D["$[]"](1),ye("RS"))||Ge((D=ze["~"])===E?E:D["$[]"](4),ye("RS")))return"{"+((D=ze["~"])===E?E:D["$[]"](2))+"}";if(G((D=ze["~"])===E?E:D["$[]"](3)))switch((le=((D=ze["~"])===E?E:D["$[]"](2)).$split(":",3)).$shift()){case"set":return j=ye("Parser").$store_attribute(le["$[]"](0),G(ke=le["$[]"](1))?ke:"",de.document),D=Me(j),D[0]==null||D[0],Be=D[1]==null?E:D[1],G(Be)||Pe(m=G(ke=m)?ke:G(Xe=ee["$[]"]("attribute-undefined"))?Xe:ye("Compliance").$attribute_undefined(),"drop-line")?$e=o=ye("DEL"):$e=U=ye("CAN");case"counter2":return Ie(de.document,"counter",dt(le)),$e=o=ye("DEL");default:return Ie(de.document,"counter",dt(le))}else{if(G(ee["$key?"](it=((D=ze["~"])===E?E:D["$[]"](2)).$downcase())))return ee["$[]"](it);if(G(Be=ye("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(T=G(ke=T)?ke:G(Xe=G(ht=q["$[]"]("attribute_missing"))?ht:ee["$[]"]("attribute-missing"))?Xe:ye("Compliance").$attribute_missing()){case"drop":return $e=o=ye("DEL");case"drop-line":return Ge(g=G(ke=g)?ke:G(Xe=q["$[]"]("drop_line_severity"))?Xe:"info","info")&&Ie(de.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),$e=U=ye("CAN");case"warn":return de.$logger().$warn("skipping reference to missing attribute: "+it),(D=ze["~"])===E?E:D["$[]"](0);default:return(D=ze["~"])===E?E:D["$[]"](0)}}},{$$s:ie}),G($e)?G(o)?(S=F.$squeeze(ye("DEL")).$split(ye("LF"),-1),G(U)?Ie(S,"reject",[],function(D){var j=E,de=E,le=E;return D==null&&(D=E),G(j=G(de=G(le=D["$=="](ye("DEL")))?le:D["$=="](ye("CAN")))?de:D["$start_with?"](ye("CAN")))?j:D["$include?"](ye("CAN"))}).$join(ye("LF")).$delete(ye("DEL")):Ie(S,"reject",[],function(D){return D==null&&(D=E),D["$=="](ye("DEL"))}).$join(ye("LF")).$delete(ye("DEL"))):G(F["$include?"](ye("LF")))?Ie(F.$split(ye("LF"),-1),"reject",[],function(D){var j=E,de=E;return D==null&&(D=E),G(j=G(de=D["$=="](ye("CAN")))?de:D["$start_with?"](ye("CAN")))?j:D["$include?"](ye("CAN"))}).$join(ye("LF")):"":F},-2),C(Te,"$sub_replacements",function(F){var q=this;return G(ye("ReplaceableTextRx")["$match?"](F))&&Ie(ye("REPLACEMENTS"),"each",[],function ie(ee,$e,U){var g=ie.$$s==null?this:ie.$$s;return ee==null&&(ee=E),$e==null&&($e=E),U==null&&(U=E),F=Ie(F,"gsub",[ee],function o(){var m=o.$$s==null?this:o.$$s;return ze["~"]==null&&(ze["~"]=E),m.$do_replacement(ze["~"],$e,U)},{$$s:g})},{$$s:q}),F}),C(Te,"$sub_macros",function(F){var q=this,ie=E,ee=E,$e=E,U=E,g=E,o=E,m=E,T=E;return q.document==null&&(q.document=E),q.parent==null&&(q.parent=E),q.context==null&&(q.context=E),ie=F["$include?"]("["),ee=F["$include?"](":"),$e=G(U=ie)?ee:U,g=G(U=$e)?F["$include?"](":["):U,o=(m=q.document).$attributes(),G(T=m.$extensions())&&G(T["$inline_macros?"]())&&Ie(T.$inline_macros(),"each",[],function S(b){var D=S.$$s==null?this:S.$$s;return b==null&&(b=E),F=Ie(F,"gsub",[b.$instance().$regexp()],function j(){var de,le,ke=j.$$s==null?this:j.$$s,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E,xt=E,vt=E;return ze["~"]==null&&(ze["~"]=E),G((Be=(de=ze["~"])===E?E:de["$[]"](0))["$start_with?"](ye("RS")))?((de=ze["~"])===E?E:de["$[]"](0)).$slice(1,((de=ze["~"])===E?E:de["$[]"](0)).$length()):(G(ze["~"].$names()["$empty?"]())?(de=[(le=ze["~"])===E?E:le["$[]"](1),(le=ze["~"])===E?E:le["$[]"](2)],Xe=de[0],it=de[1]):(de=[function(){try{return ze["~"]["$[]"]("target")}catch(Tt){if(a.rescue(Tt,[ye("StandardError")]))try{return E}finally{a.pop_exception()}else throw Tt}}(),function(){try{return ze["~"]["$[]"]("content")}catch(Tt){if(a.rescue(Tt,[ye("StandardError")]))try{return E}finally{a.pop_exception()}else throw Tt}}()],Xe=de[0],it=de[1]),ht=G(at=(mt=b.$config())["$[]"]("default_attrs"))?at.$merge():V([],{}),G(it)&&(G(it["$empty?"]())?Ge(mt["$[]"]("content_model"),"attributes")||ht["$[]="]("text",it):(it=ke.$normalize_text(it,!0,!0),Ge(mt["$[]"]("content_model"),"attributes")?ke.$parse_attributes(it,G(U=G(yt=mt["$[]"]("positional_attrs"))?yt:mt["$[]"]("pos_attrs"))?U:[],V(["into"],{into:ht})):ht["$[]="]("text",it)),Xe=G(U=Xe)?U:Ge(mt["$[]"]("format"),"short")?it:Xe),We(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)?(Ie(ke.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+xt.$class()+": "+Be}),xt):"")},{$$s:D})},{$$s:q}),G(o["$key?"]("experimental"))&&(G(g)&&(G(F["$include?"]("kbd:"))||G(F["$include?"]("btn:")))&&(F=Ie(F,"gsub",[ye("InlineKbdBtnMacroRx")],function S(){var b,D=S.$$s==null?this:S.$$s,j=E,de=E,le=E;return G((b=ze["~"])===E?E:b["$[]"](1))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):Ge((b=ze["~"])===E?E:b["$[]"](2),"kbd")?(G((j=((b=ze["~"])===E?E:b["$[]"](3)).$strip())["$include?"](ye("R_SB")))&&(j=j.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(st(j.$length(),1))&&G(de=G(de=j.$index(",",1))?[de,j.$index("+",1)].$compact().$min():j.$index("+",1))?(le=j.$slice(de,1),G(j["$end_with?"](le))?(j=Ie(j.$chop().$split(le,-1),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()}),j["$[]="](-1,y(j["$[]"](-1),le))):j=Ie(j.$split(le),"map",[],function(Be){return Be==null&&(Be=E),Be.$strip()})):j=[j],ye("Inline").$new(D,"kbd",E,V(["attributes"],{attributes:V(["keys"],{keys:j})})).$convert()):ye("Inline").$new(D,"button",D.$normalize_text((b=ze["~"])===E?E:b["$[]"](3),!0,!0)).$convert()},{$$s:q})),G($e)&&G(F["$include?"]("menu:"))&&(F=Ie(F,"gsub",[ye("InlineMenuMacroRx")],function S(){var b,D=S.$$s==null?this:S.$$s,j=E,de=E,le=E,ke=E,Be=E;return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(j=(b=ze["~"])===E?E:b["$[]"](1),G(de=(b=ze["~"])===E?E:b["$[]"](2))?(G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB"))),G(le=G(de["$include?"]("&gt;"))?"&gt;":G(de["$include?"](","))?",":E)?(ke=Ie(de.$split(le),"map",[],function(it){return it==null&&(it=E),it.$strip()}),Be=ke.$pop()):(b=[[],de.$rstrip()],ke=b[0],Be=b[1])):(b=[[],E],ke=b[0],Be=b[1]),ye("Inline").$new(D,"menu",E,V(["attributes"],{attributes:V(["menu","submenus","menuitem"],{menu:j,submenus:ke,menuitem:Be})})).$convert())},{$$s:q})),G(F["$include?"]('"'))&&G(F["$include?"]("&gt;"))&&(F=Ie(F,"gsub",[ye("InlineMenuRx")],function S(){var b,D,j,de=S.$$s==null?this:S.$$s,le=E,ke=E,Be=E;return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(D=Ie(((j=ze["~"])===E?E:j["$[]"](1)).$split("&gt;"),"map",[],function(it){return it==null&&(it=E),it.$strip()}),b=Me(D),le=b[0]==null?E:b[0],ke=Ye(b,1),Be=ke.$pop(),ye("Inline").$new(de,"menu",E,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=Ie(F,"gsub",[ye("InlineImageMacroRx")],function S(){var b,D=S.$$s==null?this:S.$$s,j=E,de=E,le=E,ke=E;return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"]("icon:"))?(b=["icon",["size"]],j=b[0],de=b[1]):(b=["image",["alt","width","height"]],j=b[0],de=b[1]),le=(b=ze["~"])===E?E:b["$[]"](1),ke=D.$parse_attributes((b=ze["~"])===E?E:b["$[]"](2),de,V(["unescape_input"],{unescape_input:!0})),Ge(j,"icon")||(m.$register("images",le),ke["$[]="]("imagesdir",o["$[]"]("imagesdir"))),G(U=ke["$[]"]("alt"))||ke["$[]="]("alt",(b=["default-alt",ye("Helpers").$basename(le,!0).$tr("_-"," ")],Ie(ke,"[]=",b),b[b.length-1])),ye("Inline").$new(D,"image",E,V(["type","target","attributes"],{type:j,target:le,attributes:ke})).$convert())},{$$s:q})),(G(F["$include?"]("(("))&&G(F["$include?"]("))"))||G(g)&&G(F["$include?"]("dexterm")))&&(F=Ie(F,"gsub",[ye("InlineIndextermMacroRx")],function S(){var b,D,j=S.$$s==null?this:S.$$s,de=E,le=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E,xt=E,vt=E,Tt=E,St=E;switch((b=ze["~"])===E?E:b["$[]"](1)){case"indexterm":return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(G((de=j.$normalize_text((b=ze["~"])===E?E:b["$[]"](2),!0,!0))["$include?"]("="))?G(le=(ke=ye("AttributeList").$new(de,j).$parse())["$[]"](1))?(ke["$[]="]("terms",[le]),G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Ie(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=E),Bt.$lstrip()}):[Be])):ke=V(["terms"],{terms:de}):ke=V(["terms"],{terms:j.$split_simple_csv(de)}),ye("Inline").$new(j,"indexterm",E,V(["attributes"],{attributes:ke})).$convert());case"indexterm2":return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(G((Xe=j.$normalize_text((b=ze["~"])===E?E:b["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=G(it=G(ht=(ke=ye("AttributeList").$new(Xe,j).$parse())["$[]"](1))?ht:ke=E)?it:Xe,G(ke)&&G(Be=ke["$[]"]("see-also"))&&ke["$[]="]("see-also",G(Be["$include?"](","))?Ie(Be.$split(","),"map",[],function(Bt){return Bt==null&&(Bt=E),Bt.$lstrip()}):[Be])),ye("Inline").$new(j,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert());default:if(at=(b=ze["~"])===E?E:b["$[]"](3),G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS"))))if(G(at["$start_with?"]("("))&&G(at["$end_with?"](")")))at=at.$slice(1,Je(at.$length(),2)),b=[!0,"(",")"],mt=b[0],yt=b[1],xt=b[2];else return((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length());else mt=!0,G(at["$start_with?"]("("))?G(at["$end_with?"](")"))?(b=[at.$slice(1,Je(at.$length(),2)),!1],at=b[0],mt=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(mt)?(G((Xe=j.$normalize_text(at,!0))["$include?"](";&"))&&(G(Xe["$include?"](" &gt;&gt; "))?(D=Xe.$partition(" &gt;&gt; "),b=Me(D),Xe=b[0]==null?E:b[0],b[1]==null||b[1],vt=b[2]==null?E:b[2],ke=V(["see"],{see:vt})):G(Xe["$include?"](" &amp;&gt; "))&&(D=Xe.$split(" &amp;&gt; "),b=Me(D),Xe=b[0]==null?E:b[0],Be=Ye(b,1),ke=V(["see-also"],{"see-also":Be}))),Tt=ye("Inline").$new(j,"indexterm",Xe,V(["attributes","type"],{attributes:ke,type:"visible"})).$convert()):(ke=V([],{}),G((St=j.$normalize_text(at,!0))["$include?"](";&"))&&(G(St["$include?"](" &gt;&gt; "))?(D=St.$partition(" &gt;&gt; "),b=Me(D),St=b[0]==null?E:b[0],b[1]==null||b[1],vt=b[2]==null?E:b[2],ke["$[]="]("see",vt)):G(St["$include?"](" &amp;&gt; "))&&(D=St.$split(" &amp;&gt; "),b=Me(D),St=b[0]==null?E:b[0],Be=Ye(b,1),ke["$[]="]("see-also",Be))),ke["$[]="]("terms",j.$split_simple_csv(St)),Tt=ye("Inline").$new(j,"indexterm",E,V(["attributes"],{attributes:ke})).$convert()),G(yt)?""+yt+Tt+xt:Tt}},{$$s:q})),G(ee)&&G(F["$include?"]("://"))&&(F=Ie(F,"gsub",[ye("InlineLinkRx")],function S(){var b,D,j=S.$$s==null?this:S.$$s,de=E,le=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E;if(G((de=y((b=ze["~"])===E?E:b["$[]"](2),G(U=(b=ze["~"])===E?E:b["$[]"](3))?U:(b=ze["~"])===E?E:b["$[]"](5)))["$start_with?"](ye("RS"))))return y(((b=ze["~"])===E?E:b["$[]"](0)).$slice(0,le=((b=ze["~"])===E?E:b["$[]"](1)).$length()),((b=ze["~"])===E?E:b["$[]"](0)).$slice(y(le,1),((b=ze["~"])===E?E:b["$[]"](0)).$length()));if(b=[(D=ze["~"])===E?E:D["$[]"](1),""],ke=b[0],Be=b[1],G((b=ze["~"])===E?E:b["$[]"](4)))Ge(ke,"link:")&&(ke=""),G((Xe=(b=ze["~"])===E?E:b["$[]"](4))["$empty?"]())&&(Xe=E);else{switch(ke){case"link:":case'"':case"'":return(b=ze["~"])===E?E:b["$[]"](0)}switch((b=ze["~"])===E?E:b["$[]"](6)){case";":if(G(ke["$start_with?"]("&lt;"))&&G(de["$end_with?"]("&gt;"))?(ke=ke.$slice(4,ke.$length()),de=de.$slice(0,Je(de.$length(),4))):G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be=");"):Be=";",G(de["$end_with?"]("://")))return(b=ze["~"])===E?E:b["$[]"](0);break;case":":if(G((de=de.$chop())["$end_with?"](")"))?(de=de.$chop(),Be="):"):Be=":",G(de["$end_with?"]("://")))return(b=ze["~"])===E?E:b["$[]"](0);break}}return b=[E,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?"]("="))&&(D=j.$extract_attributes_from_text(Xe,""),b=Me(D),Xe=b[0]==null?E:b[0],it=b[1]==null?E:b[1],at=Xe,ht["$[]="]("id",it["$[]"]("id"))),G(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),G(it)?G(U=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=V(["window"],{window:"_blank"})),G(at)&&G(at["$empty?"]())&&(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,mt=!0)):(Xe=G(o["$key?"]("hide-uri-scheme"))?de.$sub(ye("UriSniffRx"),""):de,mt=!0),G(mt)&&(G(it)?it["$[]="]("role",G(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=V(["role"],{role:"bare"})),m.$register("links",(b=["target",de],Ie(ht,"[]=",b),b[b.length-1])),G(it)&&ht["$[]="]("attributes",it),""+ke+ye("Inline").$new(j,"anchor",Xe,ht).$convert()+Be},{$$s:q})),G($e)&&(G(F["$include?"]("link:"))||G(F["$include?"]("ilto:")))&&(F=Ie(F,"gsub",[ye("InlineLinkMacroRx")],function S(){var b,D,j=S.$$s==null?this:S.$$s,de=E,le=E,ke=E,Be=E,Xe=E,it=E;return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(G(de=(b=ze["~"])===E?E:b["$[]"](1))?le=y("mailto:",ke=(b=ze["~"])===E?E:b["$[]"](2)):le=(b=ze["~"])===E?E:b["$[]"](2),b=[E,V(["type"],{type:"link"})],Be=b[0],Xe=b[1],G((it=(b=ze["~"])===E?E: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?"](","))&&(D=j.$extract_attributes_from_text(it,""),b=Me(D),it=b[0]==null?E:b[0],Be=b[1]==null?E:b[1],Xe["$[]="]("id",Be["$[]"]("id")),G(Be["$key?"](2))&&(G(Be["$key?"](3))?le=""+le+"?subject="+ye("Helpers").$encode_uri_component(Be["$[]"](2))+"&amp;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?"]("="))&&(D=j.$extract_attributes_from_text(it,""),b=Me(D),it=b[0]==null?E:b[0],Be=b[1]==null?E:b[1],Xe["$[]="]("id",Be["$[]"]("id"))),G(it["$end_with?"]("^"))&&(it=it.$chop(),G(Be)?G(U=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=V(["window"],{window:"_blank"}))),G(it["$empty?"]())&&(G(de)?it=ke:(G(o["$key?"]("hide-uri-scheme"))?G((it=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],Ie(Xe,"[]=",b),b[b.length-1])),G(Be)&&Xe["$[]="]("attributes",Be),ye("Inline").$new(j,"anchor",it,Xe).$convert())},{$$s:q})),G(F["$include?"]("@"))&&(F=Ie(F,"gsub",[ye("InlineEmailRx")],function S(){var b,D=S.$$s==null?this:S.$$s,j=E,de=E;return G((b=ze["~"])===E?E:b["$[]"](1))?Ge((b=ze["~"])===E?E:b["$[]"](1),ye("RS"))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(b=ze["~"])===E?E:b["$[]"](0):(j=y("mailto:",de=(b=ze["~"])===E?E:b["$[]"](0)),m.$register("links",j),ye("Inline").$new(D,"anchor",de,V(["type","target"],{type:"link",target:j})).$convert())},{$$s:q})),G(ie)&&Ge(q.context,"list_item")&&Ge(q.parent.$style(),"bibliography")&&(F=Ie(F,"sub",[ye("InlineBiblioAnchorRx")],function S(){var b,D=S.$$s==null?this:S.$$s;return ye("Inline").$new(D,"anchor",(b=ze["~"])===E?E:b["$[]"](2),V(["type","id"],{type:"bibref",id:(b=ze["~"])===E?E:b["$[]"](1)})).$convert()},{$$s:q})),(G(ie)&&G(F["$include?"]("[["))||G($e)&&G(F["$include?"]("or:")))&&(F=Ie(F,"gsub",[ye("InlineAnchorRx")],function S(){var b,D=S.$$s==null?this:S.$$s,j=E,de=E;return G((b=ze["~"])===E?E:b["$[]"](1))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(G(j=(b=ze["~"])===E?E:b["$[]"](2))?de=(b=ze["~"])===E?E:b["$[]"](3):(j=(b=ze["~"])===E?E:b["$[]"](4),G(de=(b=ze["~"])===E?E:b["$[]"](5))&&G(de["$include?"](ye("R_SB")))&&(de=de.$gsub(ye("ESC_R_SB"),ye("R_SB")))),ye("Inline").$new(D,"anchor",de,V(["type","id"],{type:"ref",id:j})).$convert())},{$$s:q})),(G(F["$include?"]("&"))&&G(F["$include?"](";&l"))||G($e)&&G(F["$include?"]("xref:")))&&(F=Ie(F,"gsub",[ye("InlineXrefMacroRx")],function S(){var b,D,j=S.$$s==null?this:S.$$s,de=E,le=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E;return G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS")))?((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length()):(de=V([],{}),G(le=(b=ze["~"])===E?E:b["$[]"](1))?G(le["$include?"](","))&&(D=le.$partition(","),b=Me(D),le=b[0]==null?E:b[0],b[1]==null||b[1],ke=b[2]==null?E:b[2],G((ke=ke.$lstrip())["$empty?"]())&&(ke=E)):(Be=!0,le=(b=ze["~"])===E?E:b["$[]"](2),G(ke=(b=ze["~"])===E?E: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?"]("="))&&(D=j.$extract_attributes_from_text(ke),b=Me(D),ke=b[0]==null?E:b[0],de=b[1]==null?E:b[1]))),G(m.$compat_mode())?Xe=le:G(it=le.$index("#"))&&Pe(le["$[]"](Je(it,1)),"&")?G(st(it,0))?(G(st(ht=Je(Je(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"))?mt=at=at.$slice(0,Je(at.$length(),5)):Ue(ye("Helpers")["$extname?"](at))&&(mt=at):G(Ie(at,"end_with?",dt(ye("ASCIIDOC_EXTENSIONS").$keys())))?mt=at=at.$slice(0,at.$rindex(".")):mt=at):(b=[le,le.$slice(1,le.$length())],yt=b[0],Xe=b[1]):G(Be)?G(le["$end_with?"](".adoc"))?mt=at=le.$slice(0,Je(le.$length(),5)):G(ye("Helpers")["$extname?"](le))?at=le:Xe=le:Xe=le,G(yt)?(le=Xe,G(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&j.$logger().$info("possible invalid reference: "+le)):G(at)?G(mt)&&(Ge(m.$attributes()["$[]"]("docname"),at)||G(m.$catalog()["$[]"]("includes")["$[]"](at)))?G(Xe)?(b=[Xe,E,"#"+Xe],le=b[0],at=b[1],yt=b[2],G(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&j.$logger().$info("possible invalid reference: "+le)):(b=[E,E,"#"],le=b[0],at=b[1],yt=b[2]):(b=[at,""+(G(U=m.$attributes()["$[]"]("relfileprefix"))?U:"")+at+(G(mt)?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(j.$logger()["$info?"]())&&Ue(m.$catalog()["$[]"]("refs")["$[]"](le))&&j.$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(j.$logger()["$info?"]())&&j.$logger().$info("possible invalid reference: "+le)),de["$[]="]("path",at),de["$[]="]("fragment",Xe),de["$[]="]("refid",le),ye("Inline").$new(j,"anchor",ke,V(["type","target","attributes"],{type:"xref",target:yt,attributes:de})).$convert())},{$$s:q})),G($e)&&G(F["$include?"]("tnote"))&&(F=Ie(F,"gsub",[ye("InlineFootnoteMacroRx")],function S(){var b,D,j,de=S.$$s==null?this:S.$$s,le=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(G(((b=ze["~"])===E?E:b["$[]"](0))["$start_with?"](ye("RS"))))return((b=ze["~"])===E?E:b["$[]"](0)).$slice(1,((b=ze["~"])===E?E:b["$[]"](0)).$length());if(G((b=ze["~"])===E?E:b["$[]"](1)))if(G((b=ze["~"])===E?E:b["$[]"](3)))D=((j=ze["~"])===E?E:j["$[]"](3)).$split(",",2),b=Me(D),le=b[0]==null?E:b[0],ke=b[1]==null?E:b[1],G(m.$compat_mode())||de.$logger().$warn("found deprecated footnoteref macro: "+((b=ze["~"])===E?E:b["$[]"](0))+"; use footnote macro with target instead");else return(b=ze["~"])===E?E:b["$[]"](0);else le=(b=ze["~"])===E?E:b["$[]"](2),ke=(b=ze["~"])===E?E:b["$[]"](3);if(G(le))G(Be=Ie(m.$footnotes(),"find",[],function(mt){return mt==null&&(mt=E),mt.$id()["$=="](le)}))?(b=[Be.$index(),Be.$text()],Xe=b[0],ke=b[1],b=["xref",le,E],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",tt(ye("Document"),"Footnote").$new(Xe,le,ke)),b=["ref",E],it=b[0],ht=b[1]):(de.$logger().$warn("invalid footnote reference: "+le),b=["xref",le,le,E],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",tt(ye("Document"),"Footnote").$new(Xe,le,ke)),it=ht=E;else return(b=ze["~"])===E?E: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}),C(Te,"$sub_post_replacements",function(F){var q=this,ie=E,ee=E;return q.document==null&&(q.document=E),q.attributes==null&&(q.attributes=E),G(q.attributes["$[]"]("hardbreaks-option"))||G(q.document.$attributes()["$[]"]("hardbreaks-option"))?(ie=F.$split(ye("LF"),-1),G($t(ie.$size(),2))?F:(ee=ie.$pop(),Ie(ie,"map",[],function $e(U){var g=$e.$$s==null?this:$e.$$s;return U==null&&(U=E),ye("Inline").$new(g,"break",G(U["$end_with?"](ye("HARD_LINE_BREAK")))?U.$slice(0,Je(U.$length(),2)):U,V(["type"],{type:"line"})).$convert()},{$$s:q})["$<<"](ee).$join(ye("LF")))):G(F["$include?"](ye("PLUS")))&&G(F["$include?"](ye("HARD_LINE_BREAK")))?Ie(F,"gsub",[ye("HardLineBreakRx")],function $e(){var U,g=$e.$$s==null?this:$e.$$s;return ye("Inline").$new(g,"break",(U=ze["~"])===E?E:U["$[]"](1),V(["type"],{type:"line"})).$convert()},{$$s:q}):F}),C(Te,"$sub_source",function(F,q){var ie=this;return G(q)?ie.$sub_callouts(ie.$sub_specialchars(F)):ie.$sub_specialchars(F)}),C(Te,"$sub_callouts",function(F){var q=this,ie=E,ee=E;return ie=G(q["$attr?"]("line-comment"))?ye("CalloutSourceRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutSourceRx"),ee=0,Ie(F,"gsub",[ie],function $e(){var U,g=$e.$$s==null?this:$e.$$s,o=E;return g.document==null&&(g.document=E),G((U=ze["~"])===E?E:U["$[]"](2))?((U=ze["~"])===E?E:U["$[]"](0)).$sub(ye("RS"),""):ye("Inline").$new(g,"callout",Ge((U=ze["~"])===E?E:U["$[]"](4),".")?(ee=y(ee,1)).$to_s():(U=ze["~"])===E?E:U["$[]"](4),V(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:G(o=(U=ze["~"])===E?E:U["$[]"](1))?o:Ge((U=ze["~"])===E?E:U["$[]"](3),"--")?["<!--","-->"]:E})})).$convert()},{$$s:q})}),C(Te,"$highlight_source",function(F,q){var ie,ee,$e=this,U=E,g=E,o=E,m=E,T=E,S=E,b=E,D=E,j=E,de=E;return $e.document==null&&($e.document=E),$e.passthroughs==null&&($e.passthroughs=E),G(U=$e.document.$syntax_highlighter())&&G(U["$highlight?"]())?(G(q)&&(ee=$e.$extract_callouts(F),ie=Me(ee),F=ie[0]==null?E:ie[0],g=ie[1]==null?E:ie[1]),o=$e.document.$attributes(),m=U.$name(),G(S=G($e["$attr?"]("linenums"))?(G(b=o["$[]"](""+m+"-linenums-mode"))?b:"table").$to_sym():E)&&G($t(T=$e.$attr("start",1).$to_i(),1))&&(T=1),G($e["$attr?"]("highlight"))&&(D=$e.$resolve_lines_to_highlight(F,$e.$attr("highlight"),T)),ee=U.$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:D,number_lines:S,start_line_number:T,style:o["$[]"](""+m+"-style")})),ie=Me(ee),j=ie[0]==null?E:ie[0],de=ie[1]==null?E:ie[1],G($e.passthroughs["$empty?"]())||(j=j.$gsub(ye("HighlightedPassSlotRx"),""+ye("PASS_START")+"\\1"+ye("PASS_END"))),G(g["$nil_or_empty?"]())?j:$e.$restore_callouts(j,g,de)):$e.$sub_source(F,q)}),C(Te,"$resolve_lines_to_highlight",function(F,q,ie){var ee=E,$e=E;return ie==null&&(ie=E),ee=[],G(q["$include?"](" "))&&(q=q.$delete(" ")),Ie(G(q["$include?"](","))?q.$split(","):q.$split(";"),"map",[],function(g){var o,m,T=E,S=E,b=E,D=E,j=E;return g==null&&(g=E),G(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),T=!0),G(S=G(g["$include?"](".."))?"..":G(g["$include?"]("-"))?"-":E)?(m=g.$partition(S),o=Me(m),b=o[0]==null?E:o[0],o[1]==null||o[1],D=o[2]==null?E:o[2],(G(D["$empty?"]())||G($t(D=D.$to_i(),0)))&&(D=y(F.$count(ye("LF")),1)),G(T)?ee=Je(ee,a.Range.$new(b.$to_i(),D,!1).$to_a()):ee=ee["$|"](a.Range.$new(b.$to_i(),D,!1).$to_a())):G(T)?ee.$delete(g.$to_i()):Ue(ee["$include?"](j=g.$to_i()))?ee["$<<"](j):E}),Ge($e=G(ie)?Je(ie,1):0,0)||(ee=Ie(ee,"map",[],function(g){return g==null&&(g=E),Je(g,$e)})),ee.$sort()},-3),C(Te,"$extract_passthroughs",function(F){var q,ie,ee=this,$e=E,U=E,g=E,o=E,m=E;return ee.document==null&&(ee.document=E),ee.passthroughs==null&&(ee.passthroughs=E),$e=ee.document.$compat_mode(),U=ee.passthroughs,(G(F["$include?"]("++"))||G(F["$include?"]("$$"))||G(F["$include?"]("ss:")))&&(F=Ie(F,"gsub",[ye("InlinePassMacroRx")],function T(){var S,b=T.$$s==null?this:T.$$s,D=E,j=E,de=E,le=E,ke=E,Be=E,Xe=E,it=E,ht=E;if(G(D=(S=ze["~"])===E?E:S["$[]"](4))){if(G($e)&&Ge(D,"++"))return(G((S=ze["~"])===E?E:S["$[]"](2))?""+((S=ze["~"])===E?E:S["$[]"](1))+"["+((S=ze["~"])===E?E:S["$[]"](2))+"]"+((S=ze["~"])===E?E:S["$[]"](3)):""+((S=ze["~"])===E?E:S["$[]"](1))+((S=ze["~"])===E?E:S["$[]"](3)))+"++"+b.$extract_passthroughs((S=ze["~"])===E?E:S["$[]"](5))+"++";if(G(j=(S=ze["~"])===E?E:S["$[]"](2))){if(G(st(de=((S=ze["~"])===E?E:S["$[]"](3)).$length(),0)))return""+((S=ze["~"])===E?E:S["$[]"](1))+"["+j+"]"+z(ye("RS"),Je(de,1))+D+((S=ze["~"])===E?E:S["$[]"](5))+D;Ge((S=ze["~"])===E?E:S["$[]"](1),ye("RS"))?le="["+j+"]":Ge(D,"++")?Ge(j,"x-")?(ke=!0,Be=V([],{})):G(j["$end_with?"](" x-"))?(ke=!0,Be=b.$parse_quoted_text_attributes(j.$slice(0,Je(j.$length(),3)))):Be=b.$parse_quoted_text_attributes(j):Be=b.$parse_quoted_text_attributes(j)}else if(G(st(de=((S=ze["~"])===E?E:S["$[]"](3)).$length(),0)))return""+z(ye("RS"),Je(de,1))+D+((S=ze["~"])===E?E:S["$[]"](5))+D;Xe=Ge(D,"+++")?[]:ye("BASIC_SUBS"),G(Be)?G(ke)?U["$[]="](it=U.$size(),V(["text","subs","type","attributes"],{text:(S=ze["~"])===E?E:S["$[]"](5),subs:ye("NORMAL_SUBS"),type:"monospaced",attributes:Be})):U["$[]="](it=U.$size(),V(["text","subs","type","attributes"],{text:(S=ze["~"])===E?E:S["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):U["$[]="](it=U.$size(),V(["text","subs"],{text:(S=ze["~"])===E?E:S["$[]"](5),subs:Xe}))}else{if(Ge((S=ze["~"])===E?E:S["$[]"](6),ye("RS")))return((S=ze["~"])===E?E:S["$[]"](0)).$slice(1,((S=ze["~"])===E?E:S["$[]"](0)).$length());G(Xe=(S=ze["~"])===E?E:S["$[]"](7))?U["$[]="](it=U.$size(),V(["text","subs"],{text:b.$normalize_text((S=ze["~"])===E?E:S["$[]"](8),E,!0),subs:b.$resolve_pass_subs(Xe)})):U["$[]="](it=U.$size(),V(["text"],{text:b.$normalize_text((S=ze["~"])===E?E:S["$[]"](8),E,!0)}))}return""+(G(ht=le)?ht:"")+ye("PASS_START")+it+ye("PASS_END")},{$$s:ee})),ie=ye("InlinePassRx")["$[]"]($e),q=Me(ie),g=q[0]==null?E:q[0],o=q[1]==null?E:q[1],m=q[2]==null?E:q[2],(G(F["$include?"](g))||G(o)&&G(F["$include?"](o)))&&(F=Ie(F,"gsub",[m],function T(){var S,b=T.$$s==null?this:T.$$s,D=E,j=E,de=E,le=E,ke=E,Be=E,Xe=E,it=E,ht=E,at=E,mt=E,yt=E;if(D=(S=ze["~"])===E?E:S["$[]"](1),j=G(de=(S=ze["~"])===E?E:S["$[]"](4))?de:(S=ze["~"])===E?E:S["$[]"](3),G((S=ze["~"])===E?E:S["$[]"](5))&&(le=!0),ke=(S=ze["~"])===E?E:S["$[]"](6),Be=(S=ze["~"])===E?E:S["$[]"](7),Xe=(S=ze["~"])===E?E:S["$[]"](8),G($e)?it=!0:G(j)&&(Ge(j,"x-")||G(j["$end_with?"](" x-")))&&(it=ht=!0),G(j)){if(G(le))return""+D+"["+j+"]"+ke.$slice(1,ke.$length());if(Ge(D,ye("RS"))){if(G(ht)&&Ge(Be,"`"))return""+D+"["+j+"]"+ke;D="["+j+"]"}else G(ht)?at=Ge(j,"x-")?V([],{}):b.$parse_quoted_text_attributes(j.$slice(0,Je(j.$length(),3))):at=b.$parse_quoted_text_attributes(j)}else{if(G(le))return""+D+ke.$slice(1,ke.$length());if(G($e)&&Ge(D,ye("RS")))return ke}return G($e)?U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"monospaced"})):G(at)?G(it)?(yt=Ge(Be,"`")?ye("BASIC_SUBS"):ye("NORMAL_SUBS"),U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:yt,attributes:at,type:"monospaced"}))):U["$[]="](mt=U.$size(),V(["text","subs","attributes","type"],{text:Xe,subs:ye("BASIC_SUBS"),attributes:at,type:"unquoted"})):U["$[]="](mt=U.$size(),V(["text","subs"],{text:Xe,subs:ye("BASIC_SUBS")})),""+D+ye("PASS_START")+mt+ye("PASS_END")},{$$s:ee})),G(F["$include?"](":"))&&(G(F["$include?"]("stem:"))||G(F["$include?"]("math:")))&&(F=Ie(F,"gsub",[ye("InlineStemMacroRx")],function T(){var S,b=T.$$s==null?this:T.$$s,D=E,j=E,de=E,le=E;return b.document==null&&(b.document=E),G(((S=ze["~"])===E?E:S["$[]"](0))["$start_with?"](ye("RS")))?((S=ze["~"])===E?E:S["$[]"](0)).$slice(1,((S=ze["~"])===E?E:S["$[]"](0)).$length()):(Ge(D=((S=ze["~"])===E?E:S["$[]"](1)).$to_sym(),"stem")&&(D=ye("STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym()),j=(S=ze["~"])===E?E:S["$[]"](2),de=b.$normalize_text((S=ze["~"])===E?E:S["$[]"](3),E,!0),Ge(D,"latexmath")&&G(de["$start_with?"]("$"))&&G(de["$end_with?"]("$"))&&(de=de.$slice(1,Je(de.$length(),2))),j=G(j)?b.$resolve_pass_subs(j):G(b.document["$basebackend?"]("html"))?ye("BASIC_SUBS"):E,U["$[]="](le=U.$size(),V(["text","subs","type"],{text:de,subs:j,type:D})),""+ye("PASS_START")+le+ye("PASS_END"))},{$$s:ee})),F}),C(Te,"$restore_passthroughs",function(F){var q=this,ie=E;return q.passthroughs==null&&(q.passthroughs=E),ie=q.passthroughs,Ie(F,"gsub",[ye("PassSlotRx")],function ee(){var $e,U=ee.$$s==null?this:ee.$$s,g=E,o=E,m=E,T=E,S=E;return G(g=ie["$[]"]((($e=ze["~"])===E?E:$e["$[]"](1)).$to_i()))?(o=U.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),G(m=g["$[]"]("type"))&&(G(T=g["$[]"]("attributes"))&&(S=T["$[]"]("id")),o=ye("Inline").$new(U,"quoted",o,V(["type","id","attributes"],{type:m,id:S,attributes:T})).$convert()),G(o["$include?"](ye("PASS_START")))?U.$restore_passthroughs(o):o):(U.$logger().$error("unresolved passthrough detected: "+F),"??pass??")},{$$s:q})}),C(Te,"$resolve_subs",function(F,q,ie,ee){var $e=this,U=E,g=E,o=E,m=E;return q==null&&(q="block"),ie==null&&(ie=E),ee==null&&(ee=E),G(F["$nil_or_empty?"]())||(U=E,G(F["$include?"](" "))&&(F=F.$delete(" ")),g=ye("SubModifierSniffRx")["$match?"](F),Ie(F.$split(","),"each",[],function(S){var b=E,D=E,j=E,de=E,le=E,ke=E;if(S==null&&(S=E),b=E,G(g)&&(Ge(D=S.$chr(),"+")?(b="append",S=S.$slice(1,S.$length())):Ge(D,"-")?(b="remove",S=S.$slice(1,S.$length())):G(S["$end_with?"]("+"))&&(b="prepend",S=S.$chop())),S=S.$to_sym(),Ge(q,"inline")&&(Ge(S,"verbatim")||Ge(S,"v"))?j=ye("BASIC_SUBS"):G(ye("SUB_GROUPS")["$key?"](S))?j=ye("SUB_GROUPS")["$[]"](S):Ge(q,"inline")&&Ge(S.$length(),1)&&G(ye("SUB_HINTS")["$key?"](S))?(de=ye("SUB_HINTS")["$[]"](S),G(le=ye("SUB_GROUPS")["$[]"](de))?j=le:j=[de]):j=[S],G(b))switch(U=G(ke=U)?ke:G(ie)?ie.$drop(0):[],b){case"append":return U=y(U,j);case"prepend":return U=y(j,U);case"remove":return U=Je(U,j);default:return E}else return U=G(ke=U)?ke:[],U=y(U,j)}),!G(U))?E:(o=U["$&"](ye("SUB_OPTIONS")["$[]"](q)),G(Je(U,o)["$empty?"]())||(m=Je(U,o),$e.$logger().$warn("invalid substitution type"+(G(st(m.$size(),1))?"s":"")+(G(ee)?" for ":"")+ee+": "+m.$join(", "))),o)},-2),C(Te,"$resolve_block_subs",function(F,q,ie){var ee=this;return ee.$resolve_subs(F,"block",q,ie)}),C(Te,"$resolve_pass_subs",function(F){var q=this;return q.$resolve_subs(F,"inline",E,"passthrough macro")}),C(Te,"$expand_subs",function(F,q){var ie=this,ee=E,$e=E,U=E;return q==null&&(q=E),We(tt("Symbol"),ee=F)?Ge(F,"none")?E:G($e=ye("SUB_GROUPS")["$[]"](F))?$e:[F]:We(tt("Array"),ee)?(U=[],Ie(F,"each",[],function(o){var m=E;return o==null&&(o=E),Ge(o,"none")?E:G(m=ye("SUB_GROUPS")["$[]"](o))?U=y(U,m):U["$<<"](o)}),G(U["$empty?"]())?E:U):ie.$resolve_subs(F,"inline",E,q)},-2),C(Te,"$commit_subs",function(){var F=this,q=E,ie=E,ee=E,$e=E,U=E;if(F.default_subs==null&&(F.default_subs=E),F.content_model==null&&(F.content_model=E),F.context==null&&(F.context=E),F.subs==null&&(F.subs=E),F.attributes==null&&(F.attributes=E),F.document==null&&(F.document=E),F.style==null&&(F.style=E),!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(ee=F.$resolve_block_subs(ie,q,F.context))?ee:[]:F.subs=q.$drop(0),Ge(F.context,"listing")&&Ge(F.style,"source")&&G(U=F.document.$syntax_highlighter())&&G(U["$highlight?"]())&&G($e=F.subs.$index("specialcharacters"))&&F.subs["$[]="]($e,"highlight"),E}),C(Te,"$parse_attributes",function(F,q,ie){var ee=this,$e=E,U=E;return ee.document==null&&(ee.document=E),q==null&&(q=[]),ie==null&&(ie=V([],{})),G(G(F)?F["$empty?"]():!0)?V([],{}):(G(ie["$[]"]("unescape_input"))&&(F=ee.$normalize_text(F,!0,!0)),G(ie["$[]"]("sub_input"))&&G(F["$include?"](ye("ATTR_REF_HEAD")))&&(F=ee.document.$sub_attributes(F)),G(ie["$[]"]("sub_result"))&&($e=ee),G(U=ie["$[]"]("into"))?ye("AttributeList").$new(F,$e).$parse_into(U,q):ye("AttributeList").$new(F,$e).$parse(q))},-2),Te.$private(),C(Te,"$extract_attributes_from_text",function(F,q){var ie=this,ee=E,$e=E,U=E;return q==null&&(q=E),ee=G(F["$include?"](ye("LF")))?F.$tr(ye("LF")," "):F,G($e=(U=ye("AttributeList").$new(ee,ie).$parse())["$[]"](1))?Ge($e,ee)?[F,U.$clear()]:[$e,U]:[q,U]},-2),C(Te,"$extract_callouts",function(F){var q=this,ie=E,ee=E,$e=E,U=E,g=E;return ie=V([],{}),ee=$e=0,U=E,g=G(q["$attr?"]("line-comment"))?ye("CalloutExtractRxMap")["$[]"](q.$attr("line-comment")):ye("CalloutExtractRx"),F=Ie(F.$split(ye("LF"),-1),"map",[],function(m){return m==null&&(m=E),$e=y($e,1),Ie(m,"gsub",[g],function(){var S,b=E;return G((S=ze["~"])===E?E:S["$[]"](2))?((S=ze["~"])===E?E:S["$[]"](0)).$sub(ye("RS"),""):((G(b=ie["$[]"]($e))?b:(S=[$e,[]],Ie(ie,"[]=",S),S[S.length-1]))["$<<"]([G(b=(S=ze["~"])===E?E:S["$[]"](1))?b:Ge((S=ze["~"])===E?E:S["$[]"](3),"--")?["<!--","-->"]:E,Ge((S=ze["~"])===E?E:S["$[]"](4),".")?(ee=y(ee,1)).$to_s():(S=ze["~"])===E?E:S["$[]"](4)]),U=$e,"")})}).$join(ye("LF")),G(U)?Ge(U,$e)&&(F=""+F+ye("LF")):ie=E,[F,ie]}),C(Te,"$restore_callouts",function(F,q,ie){var ee=this,$e=E,U=E;return ie==null&&(ie=E),G(ie)?($e=F.$slice(0,ie),F=F.$slice(ie,F.$length())):$e="",U=0,y($e,Ie(F.$split(ye("LF"),-1),"map",[],function g(o){var m,T,S=g.$$s==null?this:g.$$s,b=E,D=E,j=E;return S.document==null&&(S.document=E),o==null&&(o=E),G(b=q.$delete(U=y(U,1)))?Ge(b.$size(),1)?(T=b["$[]"](0),m=Me(T),D=m[0]==null?E:m[0],j=m[1]==null?E:m[1],""+o+ye("Inline").$new(S,"callout",j,V(["id","attributes"],{id:S.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:D})})).$convert()):""+o+Ie(b,"map",[],function de(le,ke){var Be=de.$$s==null?this:de.$$s;return Be.document==null&&(Be.document=E),le==null&&(le=E),ke==null&&(ke=E),ye("Inline").$new(Be,"callout",ke,V(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:V(["guard"],{guard:le})})).$convert()},{$$s:S}).$join(" "):o},{$$s:ee}).$join(ye("LF")))},-3),C(Te,"$convert_quoted_text",function(F,q,ie){var ee=this,$e=E,U=E,g=E,o=E,m=E;if(G(F["$[]"](0)["$start_with?"](ye("RS"))))if(Ge(ie,"constrained")&&G($e=F["$[]"](2)))U="["+$e+"]";else return F["$[]"](0).$slice(1,F["$[]"](0).$length());return Ge(ie,"constrained")?G(U)?""+U+ye("Inline").$new(ee,"quoted",F["$[]"](3),V(["type"],{type:q})).$convert():(G(g=F["$[]"](2))&&(o=(m=ee.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),""+F["$[]"](1)+ye("Inline").$new(ee,"quoted",F["$[]"](3),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert()):(G(g=F["$[]"](1))&&(o=(m=ee.$parse_quoted_text_attributes(g))["$[]"]("id"),Ge(q,"mark")&&(q="unquoted")),ye("Inline").$new(ee,"quoted",F["$[]"](2),V(["type","id","attributes"],{type:q,id:o,attributes:m})).$convert())}),C(Te,"$do_replacement",function(F,q,ie){var ee=E;if(G((ee=F["$[]"](0))["$include?"](ye("RS"))))return ee.$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)}}),C(Te,"$parse_quoted_text_attributes",function(F){var q,ie,ee=this,$e=E,U=E,g=E,o=E,m=E;return G(F["$include?"](ye("ATTR_REF_HEAD")))&&(F=ee.$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=Me(ie),$e=q[0]==null?E:q[0],q[1]==null||q[1],U=q[2]==null?E:q[2],g=V([],{}),G(U["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):(ie=U.$partition("."),q=Me(ie),o=q[0]==null?E:q[0],q[1]==null||q[1],m=q[2]==null?E:q[2],G(o["$empty?"]())||g["$[]="]("id",o),G(m["$empty?"]())?G(st($e.$length(),1))&&g["$[]="]("role",$e.$tr("."," ").$lstrip()):G(st($e.$length(),1))?g["$[]="]("role",y(y($e,"."),m).$tr("."," ").$lstrip()):g["$[]="]("role",m.$tr("."," "))),g):V(["role"],{role:F})}),C(Te,"$normalize_text",function(F,q,ie){return q==null&&(q=E),ie==null&&(ie=E),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),C(Te,"$split_simple_csv",function(F){var q=E,ie=E,ee=E;return G(F["$empty?"]())?[]:G(F["$include?"]('"'))?(q=[],ie="",ee=E,Ie(F,"each_char",[],function(U){switch(U==null&&(U=E),U){case",":return G(ee)?ie=y(ie,U):(q["$<<"](ie.$strip()),ie="");case'"':return ee=ee["$!"]();default:return ie=y(ie,U)}}),q["$<<"](ie.$strip())):Ie(F.$split(","),"map",[],function(U){return U==null&&(U=E),U.$strip()})})}(He[0],He)}(et[0],et)},Opal.modules["asciidoctor/version"]=function(a){var ae=a.module,te=a.const_set,V=[];return a.nil,function(_e,y){var Y=ae(_e,"Asciidoctor"),Ue=[Y].concat(y);return te(Ue[0],"VERSION","2.0.20")}(V[0],V)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.eqeq,y=a.truthy,Y=a.def,Ue=a.send,G=a.rb_minus,Ie=a.eqeqeq,C=a.rb_lt,Oe=a.not,ze=a.to_ary,Ge=[],Me=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,We){var st=ae(dt,"Asciidoctor"),Ye=[st].concat(We);return function(Je,$t,z){var et=te(Je,$t,"AbstractNode"),E=[et].concat(z),tt=a.$r(E),lt=et.$$prototype;return lt.document=lt.attributes=lt.parent=Me,et.$include(tt("Logging")),et.$include(tt("Substitutors")),et.$attr_reader("attributes"),et.$attr_reader("context"),et.$attr_reader("document"),et.$attr_accessor("id"),et.$attr_reader("node_name"),et.$attr_reader("parent"),Y(et,"$initialize",function(M,He,we){var Ne=this,Te=Me;return we==null&&(we=V([],{})),_e(He,"document")?Ne.document=Ne:y(M)&&(Ne.document=(Ne.parent=M).$document()),Ne.node_name=(Ne.context=He).$to_s(),Ne.attributes=y(Te=we["$[]"]("attributes"))?Te.$merge():V([],{}),Ne.passthroughs=[]},-3),Y(et,"$block?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),Y(et,"$inline?",function(){var M=this;return M.$raise(Pe("NotImplementedError"))}),Y(et,"$converter",function(){var M=this;return M.document.$converter()}),Y(et,"$parent=",function(M){var He,we=this;return He=[M,M.$document()],we.parent=He[0],we.document=He[1],He}),Y(et,"$attr",function(M,He,we){var Ne=this,Te=Me,oe=Me,ye=Me,Z=Me;return He==null&&(He=Me),we==null&&(we=Me),y(Te=Ne.attributes["$[]"](M.$to_s()))?Te:y(oe=y(ye=y(Z=we)?Ne.parent:Z)?Ne.document.$attributes()["$[]"]((_e(we,!0)?M:we).$to_s()):ye)?oe:He},-2),Y(et,"$attr?",function(M,He,we){var Ne=this,Te=Me;return He==null&&(He=Me),we==null&&(we=Me),y(He)?He["$=="](y(Te=Ne.attributes["$[]"](M.$to_s()))?Te:y(we)&&y(Ne.parent)?Ne.document.$attributes()["$[]"]((_e(we,!0)?M:we).$to_s()):Me):y(Te=Ne.attributes["$key?"](M.$to_s()))?Te:y(we)&&y(Ne.parent)?Ne.document.$attributes()["$key?"]((_e(we,!0)?M:we).$to_s()):!1},-2),Y(et,"$set_attr",function(M,He,we){var Ne=this;return He==null&&(He=""),we==null&&(we=!0),_e(we,!1)&&y(Ne.attributes["$key?"](M))?!1:(Ne.attributes["$[]="](M,He),!0)},-2),Y(et,"$remove_attr",function(M){var He=this;return He.attributes.$delete(M)}),Y(et,"$option?",function(M){var He=this;return!!y(He.attributes["$[]"](""+M+"-option"))}),Y(et,"$set_option",function(M){var He=this;return He.attributes["$[]="](""+M+"-option",""),Me}),Y(et,"$enabled_options",function(){var M=this;return Ue(Pe("Set").$new(),"tap",[],function He(we){var Ne=He.$$s==null?this:He.$$s;return Ne.attributes==null&&(Ne.attributes=Me),we==null&&(we=Me),Ue(Ne.attributes,"each_key",[],function(oe){return oe==null&&(oe=Me),y(oe.$to_s()["$end_with?"]("-option"))?we["$<<"](oe.$slice(0,G(oe.$length(),7))):Me})},{$$s:M})}),Y(et,"$update_attributes",function(M){var He=this;return He.attributes.$update(M)}),Y(et,"$role",function(){var M=this;return M.attributes["$[]"]("role")}),Y(et,"$roles",function(){var M=this,He=Me;return y(He=M.attributes["$[]"]("role"))?He.$split():[]}),Y(et,"$role?",function(M){var He=this;return M==null&&(M=Me),y(M)?M["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),Y(et,"$has_role?",function(M){var He=this,we=Me;return y(we=He.attributes["$[]"]("role"))?(" "+we+" ")["$include?"](" "+M+" "):!1}),Y(et,"$role=",function(M){var He,we=this;return He=["role",Ie(Pe("Array"),M)?M.$join(" "):M],Ue(we.attributes,"[]=",He),He[He.length-1]}),Y(et,"$add_role",function(M){var He=this,we=Me;return y(we=He.attributes["$[]"]("role"))?y((" "+we+" ")["$include?"](" "+M+" "))?!1:(He.attributes["$[]="]("role",""+we+" "+M),!0):(He.attributes["$[]="]("role",M),!0)}),Y(et,"$remove_role",function(M){var He=this,we=Me;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}),Y(et,"$reftext",function(){var M=this,He=Me;return y(He=M.attributes["$[]"]("reftext"))?M.$apply_reftext_subs(He):Me}),Y(et,"$reftext?",function(){var M=this;return M.attributes["$key?"]("reftext")}),Y(et,"$icon_uri",function(M){var He=this,we=Me;return y(He["$attr?"]("icon"))?(we=He.$attr("icon"),y(tt("Helpers")["$extname?"](we))||(we=""+we+"."+He.document.$attr("icontype","png"))):we=""+M+"."+He.document.$attr("icontype","png"),He.$image_uri(we,"iconsdir")}),Y(et,"$image_uri",function(M,He){var we=this,Ne=Me,Te=Me;return He==null&&(He="imagesdir"),y(C((Ne=we.document).$safe(),Pe(tt("SafeMode"),"SECURE")))&&y(Ne["$attr?"]("data-uri"))?y(tt("Helpers")["$uriish?"](M))&&y(M=tt("Helpers").$encode_spaces_in_uri(M))||y(He)&&y(Te=Ne.$attr(He))&&y(tt("Helpers")["$uriish?"](Te))&&y(M=we.$normalize_web_path(M,Te,!1))?y(Ne["$attr?"]("allow-uri-read"))?we.$generate_data_uri_from_uri(M,Ne["$attr?"]("cache-uri")):M:we.$generate_data_uri(M,He):we.$normalize_web_path(M,y(He)?Ne.$attr(He):Me)},-2),Y(et,"$media_uri",function(M,He){var we=this;return He==null&&(He="imagesdir"),we.$normalize_web_path(M,y(He)?we.document.$attr(He):Me)},-2),Y(et,"$generate_data_uri",function(M,He){var we=this,Ne=Me,Te=Me,oe=Me;return He==null&&(He=Me),y(Ne=tt("Helpers").$extname(M,Me))?Te=_e(Ne,".svg")?"image/svg+xml":"image/"+Ne.$slice(1,Ne.$length()):Te="application/octet-stream",y(He)?oe=we.$normalize_system_path(M,we.document.$attr(He),Me,V(["target_name"],{target_name:"image"})):oe=we.$normalize_system_path(M),y(Pe("File")["$readable?"](oe))?"data:"+Te+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread(oe)):(we.$logger().$warn("image to embed not found or not readable: "+oe),"data:"+Te+";base64,")},-2),Y(et,"$generate_data_uri_from_uri",function(M,He){var we,Ne,Te=this,oe=Me,ye=Me;He==null&&(He=!1),y(He)?tt("Helpers").$require_library("open-uri/cached","open-uri-cached"):Oe(tt("RUBY_ENGINE_OPAL"))&&Pe("OpenURI");try{return Ne=Ue(Pe("OpenURI"),"open_uri",[M,tt("URI_READ_MODE")],function(F){return F==null&&(F=Me),[F.$content_type(),F.$read()]}),we=ze(Ne),oe=we[0]==null?Me:we[0],ye=we[1]==null?Me:we[1],"data:"+oe+";base64,"+Pe("Base64").$strict_encode64(ye)}catch(Z){if(a.rescue(Z,[tt("StandardError")]))try{return Te.$logger().$warn("could not retrieve image data from URI: "+M),M}finally{a.pop_exception()}else throw Z}},-2),Y(et,"$normalize_asset_path",function(M,He,we){var Ne=this;return He==null&&(He="path"),we==null&&(we=!0),Ne.$normalize_system_path(M,Ne.document.$base_dir(),Me,V(["target_name","recover"],{target_name:He,recover:we}))},-2),Y(et,"$normalize_system_path",function(M,He,we,Ne){var Te=this,oe=Me,ye=Me;return He==null&&(He=Me),we==null&&(we=Me),Ne==null&&(Ne=V([],{})),y(C((oe=Te.document).$safe(),Pe(tt("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,Ne)},-2),Y(et,"$normalize_web_path",function(M,He,we){var Ne=this;return He==null&&(He=Me),we==null&&(we=!0),y(we)&&y(tt("Helpers")["$uriish?"](M))?tt("Helpers").$encode_spaces_in_uri(M):Ne.document.$path_resolver().$web_path(M,He)},-2),Y(et,"$read_asset",function(M,He){var we=this,Ne=Me;return He==null&&(He=V([],{})),Ie(Pe("Hash"),He)||(He=V(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),y(Pe("File")["$readable?"](M))?y(He["$[]"]("normalize"))?tt("Helpers").$prepare_source_string(Pe("File").$read(M,V(["mode"],{mode:tt("FILE_READ_MODE")}))).$join(tt("LF")):Pe("File").$read(M,V(["mode"],{mode:tt("FILE_READ_MODE")})):(y(He["$[]"]("warn_on_failure"))&&we.$logger().$warn(""+(y(Ne=we.$attr("docfile"))?Ne:"<stdin>")+": "+(y(Ne=He["$[]"]("label"))?Ne:"file")+" does not exist or cannot be read: "+M),Me)},-2),Y(et,"$read_contents",function(M,He){var we=this,Ne=Me,Te=Me,oe=Me,ye=Me;if(He==null&&(He=V([],{})),Ne=we.document,y(tt("Helpers")["$uriish?"](M))||y(Te=He["$[]"]("start"))&&y(tt("Helpers")["$uriish?"](Te))&&y(M=Ne.$path_resolver().$web_path(M,Te)))if(y(Ne["$attr?"]("allow-uri-read"))){y(Ne["$attr?"]("cache-uri"))&&tt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{y(He["$[]"]("normalize"))?oe=tt("Helpers").$prepare_source_string(Ue(Pe("OpenURI"),"open_uri",[M,tt("URI_READ_MODE")],function(F){return F==null&&(F=Me),F.$read()})).$join(tt("LF")):oe=Ue(Pe("OpenURI"),"open_uri",[M,tt("URI_READ_MODE")],function(F){return F==null&&(F=Me),F.$read()})}catch(Z){if(a.rescue(Z,[tt("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 Z}}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"),Me,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),Y(et,"$is_uri?",function(M){return tt("Helpers")["$uriish?"](M)})}(Ye[0],null,Ye)}(Ge[0],Ge)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,Y=a.eqeq,Ue=a.eqeqeq,G=a.def,Ie=a.return_val,C=a.truthy,Oe=a.alias,ze=a.send,Ge=a.rb_plus,Me=a.not,Pe=a.neqeq,dt=[],We=a.nil,st=a.$$$;return a.add_stubs("attr_reader,attr_writer,attr_accessor,==,===,level,file,lineno,playback_attributes,convert,converter,join,map,to_s,parent,parent=,<<,empty?,Integer,find_by_internal,to_proc,find_by,context,[],items,+,find_index,include?,next_adjacent_block,blocks,select,sub_specialchars,match?,sub_replacements,title,apply_title_subs,delete,!,reftext,nil_or_empty?,sub_placeholder,sub_quotes,compat_mode,attributes,chomp,increment_and_store_counter,index=,numbered,sectname,numeral=,counter,caption=,numeral,int_to_roman,each,assign_numeral,reindex_sections,protected,has_role?,raise,header?,!=,flatten,head,rows,merge,body,foot,style,inner_document"),function(Ye,Je){var $t=ae(Ye,"Asciidoctor"),z=[$t].concat(Je),et=a.$r(z);return function(E,tt,lt){var K=te(E,tt,"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=We,K.$attr_reader("blocks"),K.$attr_writer("caption"),K.$attr_accessor("content_model"),K.$attr_accessor("level"),K.$attr_accessor("numeral"),K.$attr_accessor("source_location"),K.$attr_accessor("style"),K.$attr_reader("subs"),G(K,"$initialize",function Ne(Te,oe,ye){var Z=Ne.$$p||We,F=this;return Ne.$$p=null,ye==null&&(ye=V([],{})),_e(F,y(F,"initialize",Ne,!1,!0),"initialize",[Te,oe,ye],Z),F.content_model="compound",F.blocks=[],F.subs=[],F.id=F.title=F.caption=F.numeral=F.style=F.default_subs=F.source_location=We,Y(oe,"document")||Y(oe,"section")?(F.level=F.next_section_index=0,F.next_section_ordinal=1):Ue(He("AbstractBlock"),Te)?F.level=Te.$level():F.level=We},-3),G(K,"$block?",Ie(!0)),G(K,"$inline?",Ie(!1)),G(K,"$file",function(){var Te=this,oe=We;return C(oe=Te.source_location)?Te.source_location.$file():oe}),G(K,"$lineno",function(){var Te=this,oe=We;return C(oe=Te.source_location)?Te.source_location.$lineno():oe}),G(K,"$convert",function(){var Te=this;return Te.document.$playback_attributes(Te.attributes),Te.$converter().$convert(Te)}),Oe(K,"render","convert"),G(K,"$content",function(){var Te=this;return ze(Te.blocks,"map",[],function(ye){return ye==null&&(ye=We),ye.$convert()}).$join(He("LF"))}),G(K,"$context=",function(Te){var oe=this;return oe.node_name=(oe.context=Te).$to_s()}),G(K,"$<<",function(Te){var oe=this;return Y(Te.$parent(),oe)||Te["$parent="](oe),oe.blocks["$<<"](Te),oe}),Oe(K,"append","<<"),G(K,"$blocks?",function(){var Te=this;return!C(Te.blocks["$empty?"]())}),G(K,"$sections?",Ie(!1)),G(K,"$number",function(){var Te=this;try{return Te.$Integer(Te.numeral)}catch(oe){if(a.rescue(oe,[He("StandardError")]))try{return Te.numeral}finally{a.pop_exception()}else throw oe}}),G(K,"$number=",function(Te){var oe=this;return oe.numeral=Te.$to_s()}),G(K,"$find_by",function Ne(Te){var oe=Ne.$$p||We,ye=this,Z=We;Ne.$$p=null,Te==null&&(Te=V([],{}));try{return ze(ye,"find_by_internal",[Te,Z=[]],oe.$to_proc())}catch(F){if(a.rescue(F,[st("StopIteration")]))try{return Z}finally{a.pop_exception()}else throw F}},-1),Oe(K,"query","find_by"),G(K,"$next_adjacent_block",function(){var Te=this,oe=We,ye=We;return Y(Te.context,"document")?We:Y((oe=Te.parent).$context(),"dlist")&&Y(Te.context,"list_item")?C(ye=oe.$items()["$[]"](Ge(ze(oe.$items(),"find_index",[],function Z(F,q){var ie=Z.$$s==null?this:Z.$$s,ee=We;return F==null&&(F=We),q==null&&(q=We),C(ee=F["$include?"](ie))?ee:q["$=="](ie)},{$$s:Te}),1)))?ye:oe.$next_adjacent_block():C(ye=oe.$blocks()["$[]"](Ge(oe.$blocks().$find_index(Te),1)))?ye:oe.$next_adjacent_block()}),G(K,"$sections",function(){var Te=this;return ze(Te.blocks,"select",[],function(ye){return ye==null&&(ye=We),ye.$context()["$=="]("section")})}),G(K,"$alt",function(){var Te=this,oe=We;return C(oe=Te.attributes["$[]"]("alt"))?Y(oe,Te.attributes["$[]"]("default-alt"))?Te.$sub_specialchars(oe):(oe=Te.$sub_specialchars(oe),C(He("ReplaceableTextRx")["$match?"](oe))?Te.$sub_replacements(oe):oe):""}),G(K,"$caption",function(){var Te=this;return Y(Te.context,"admonition")?Te.attributes["$[]"]("textlabel"):Te.caption}),G(K,"$captioned_title",function(){var Te=this;return""+Te.caption+Te.$title()}),G(K,"$list_marker_keyword",function(Te){var oe=this,ye=We;return Te==null&&(Te=We),He("ORDERED_LIST_KEYWORDS")["$[]"](C(ye=Te)?ye:oe.style)},-1),G(K,"$title",function(){var Te=this,oe=We,ye=We;return Te.converted_title=C(oe=Te.converted_title)?oe:C(ye=Te.title)?Te.$apply_title_subs(Te.title):ye}),G(K,"$title?",function(){var Te=this;return!!C(Te.title)}),G(K,"$title=",function(Te){var oe=this;return oe.converted_title=We,oe.title=Te}),G(K,"$sub?",function(Te){var oe=this;return oe.subs["$include?"](Te)}),G(K,"$remove_sub",function(Te){var oe=this;return oe.subs.$delete(Te),We}),G(K,"$xreftext",function(Te){var oe=this,ye=We,Z=We,F=We,q=We;if(Te==null&&(Te=We),C(ye=oe.$reftext())&&Me(ye["$empty?"]()))return ye;if(C(Te)&&C(oe.title)&&Me(oe.caption["$nil_or_empty?"]()))switch(Te){case"full":return Z=oe.$sub_placeholder(oe.$sub_quotes(C(oe.document.$compat_mode())?"``%s''":'"`%s`"'),oe.$title()),C(oe.numeral)&&C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&C(F=oe.document.$attributes()["$[]"](q))?""+F+" "+oe.numeral+", "+Z:""+oe.caption.$chomp(". ")+", "+Z;case"short":return C(oe.numeral)&&C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe.context))&&C(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(Te,oe){var ye=this,Z=We,F=We,q=We;return oe==null&&(oe=ye.context),C(ye.caption)||Me(ye.title)||C(ye.caption=C(Z=Te)?Z:ye.document.$attributes()["$[]"]("caption"))||C(q=He("CAPTION_ATTRIBUTE_NAMES")["$[]"](oe))&&C(F=ye.document.$attributes()["$[]"](q))&&(ye.caption=""+F+" "+(ye.numeral=ye.document.$increment_and_store_counter(""+oe+"-number",ye))+". "),We},-2),G(K,"$assign_numeral",function(Te){var oe,ye=this,Z=We,F=We,q=We;return ye.next_section_index=Ge((oe=[ye.next_section_index],ze(Te,"index=",oe),oe[oe.length-1]),1),C(Z=Te.$numbered())&&(Y(F=Te.$sectname(),"appendix")?(Te["$numeral="](ye.document.$counter("appendix-number","A")),Te["$caption="](C(q=ye.document.$attributes()["$[]"]("appendix-caption"))?""+q+" "+Te.$numeral()+": ":""+Te.$numeral()+". ")):Y(F,"chapter")||Y(Z,"chapter")?Te["$numeral="](ye.document.$counter("chapter-number",1).$to_s()):(Te["$numeral="](Y(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))),We}),G(K,"$reindex_sections",function(){var Te=this;return Te.next_section_index=0,Te.next_section_ordinal=1,ze(Te.blocks,"each",[],function oe(ye){var Z=oe.$$s==null?this:oe.$$s;return ye==null&&(ye=We),Y(ye.$context(),"section")?(Z.$assign_numeral(ye),ye.$reindex_sections()):We},{$$s:Te})}),K.$protected(),G(K,"$find_by_internal",function Ne(Te,oe){var ye=Ne.$$p||We,Z=this,F=We,q=We,ie=We,ee=We,$e=We,U=We;if(Ne.$$p=null,Te==null&&(Te=V([],{})),oe==null&&(oe=[]),(C(ee=C($e=Te["$[]"]("context"))?We:!0)||Y($e,Z.context))&&(Me(ie=Te["$[]"]("style"))||Y(ie,Z.style))&&(Me(q=Te["$[]"]("role"))||C(Z["$has_role?"](q)))&&(Me(F=Te["$[]"]("id"))||Y(F,Z.id)))if(ye!==We)if(C(U=a.yield1(ye,Z)))switch(U){case"prune":return oe["$<<"](Z),C(F)&&Z.$raise(st("StopIteration")),oe;case"reject":return C(F)&&Z.$raise(st("StopIteration")),oe;case"stop":Z.$raise(st("StopIteration"));break;default:oe["$<<"](Z),C(F)&&Z.$raise(st("StopIteration"))}else C(F)&&Z.$raise(st("StopIteration"));else oe["$<<"](Z),C(F)&&Z.$raise(st("StopIteration"));switch(Z.context){case"document":Y($e,"document")||(C(Z["$header?"]())&&(C(ee)||Y($e,"section"))&&ze(Z.header,"find_by_internal",[Te,oe],ye.$to_proc()),ze(Z.blocks,"each",[],function(o){return o==null&&(o=We),Y($e,"section")&&Pe(o.$context(),"section")?We:ze(o,"find_by_internal",[Te,oe],ye.$to_proc())}));break;case"dlist":(C(ee)||Pe($e,"section"))&&ze(Z.blocks.$flatten(),"each",[],function(o){return o==null&&(o=We),C(o)?ze(o,"find_by_internal",[Te,oe],ye.$to_proc()):We});break;case"table":C(Te["$[]"]("traverse_documents"))?(ze(Z.$rows().$head(),"each",[],function(o){return o==null&&(o=We),ze(o,"each",[],function(T){return T==null&&(T=We),ze(T,"find_by_internal",[Te,oe],ye.$to_proc())})}),Y($e,"inner_document")&&(Te=Te.$merge(V(["context"],{context:"document"}))),ze(Ge(Z.$rows().$body(),Z.$rows().$foot()),"each",[],function(o){return o==null&&(o=We),ze(o,"each",[],function(T){return T==null&&(T=We),ze(T,"find_by_internal",[Te,oe],ye.$to_proc()),Y(T.$style(),"asciidoc")?ze(T.$inner_document(),"find_by_internal",[Te,oe],ye.$to_proc()):We})})):ze(Ge(Ge(Z.$rows().$head(),Z.$rows().$body()),Z.$rows().$foot()),"each",[],function(o){return o==null&&(o=We),ze(o,"each",[],function(T){return T==null&&(T=We),ze(T,"find_by_internal",[Te,oe],ye.$to_proc())})});break;default:ze(Z.blocks,"each",[],function(o){return o==null&&(o=We),Y($e,"section")&&Pe(o.$context(),"section")?We:ze(o,"find_by_internal",[Te,oe],ye.$to_proc())})}return oe},-1)}(z[0],et("AbstractNode"),z)}(dt[0],dt)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash,y=a.regexp,Y=a.hash2,Ue=a.def,G=a.truthy,Ie=a.rb_plus,C=a.send,Oe=a.defs,ze=a.eqeqeq,Ge=a.eqeq,Me=a.rb_times,Pe=[],dt=a.nil,We=a.$$$;return a.add_stubs("new,[],update,parse,parse_attribute,eos?,skip_delimiter,+,rekey,each_with_index,[]=,private,skip_blank,===,peek,parse_attribute_value,get_byte,start_with?,scan_name,end_with?,rstrip,string,==,unscan,scan_to_delimiter,*,include?,delete,each,split,empty?,apply_subs,scan_to_quote,gsub,skip,scan"),function(st,Ye){var Je=ae(st,"Asciidoctor"),$t=[Je].concat(Ye);return function(z,et,E){var tt=te(z,et,"AttributeList"),lt=[tt].concat(E),K=a.$r(lt),M=tt.$$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",Y([","],{",":/[ \t]*(,|$)/})),Ue(tt,"$initialize",function(we,Ne,Te){var oe=this;return Ne==null&&(Ne=dt),Te==null&&(Te=","),oe.scanner=We("StringScanner").$new(we),oe.block=Ne,oe.delimiter=Te,oe.delimiter_skip_pattern=K("SkipRx")["$[]"](Te),oe.delimiter_boundary_pattern=K("BoundaryRx")["$[]"](Te),oe.attributes=dt},-2),Ue(tt,"$parse_into",function(we,Ne){var Te=this;return Ne==null&&(Ne=[]),we.$update(Te.$parse(Ne))},-2),Ue(tt,"$parse",function(we){var Ne=this,Te=dt;if(we==null&&(we=[]),G(Ne.attributes))return Ne.attributes;for(Ne.attributes=Y([],{}),Te=0;G(Ne.$parse_attribute(Te,we))&&!G(Ne.scanner["$eos?"]());)Ne.$skip_delimiter(),Te=Ie(Te,1);return Ne.attributes},-1),Ue(tt,"$rekey",function(we){var Ne=this;return K("AttributeList").$rekey(Ne.attributes,we)}),Oe(tt,"$rekey",function(we,Ne){return C(Ne,"each_with_index",[],function(oe,ye){var Z,F=dt;return oe==null&&(oe=dt),ye==null&&(ye=dt),G(oe)&&G(F=we["$[]"](Ie(ye,1)))?(Z=[oe,F],C(we,"[]=",Z),Z[Z.length-1]):dt}),we}),tt.$private(),Ue(tt,"$parse_attribute",function(we,Ne){var Te=this,oe=dt,ye=dt,Z=dt,F=dt,q=dt,ie=dt,ee=dt,$e=dt,U=dt,g=dt;if(oe=!0,Te.$skip_blank(),ze(K("QUOT"),ye=Te.scanner.$peek(1)))Z=Te.$parse_attribute_value(Te.scanner.$get_byte());else if(ze(K("APOS"),ye))Z=Te.$parse_attribute_value(Te.scanner.$get_byte()),G(Z["$start_with?"](K("APOS")))||(F=!0);else if(q=G(ie=G(ee=Z=Te.$scan_name())?Te.$skip_blank():ee)?ie:0,G(Te.scanner["$eos?"]())){if(!(G(Z)||G(Te.scanner.$string().$rstrip()["$end_with?"](Te.delimiter))))return dt;oe=dt}else if(Ge($e=Te.scanner.$get_byte(),Te.delimiter))Te.scanner.$unscan();else if(G(Z))if(Ge($e,"=")){if(Te.$skip_blank(),ze(K("QUOT"),ie=$e=Te.scanner.$get_byte()))U=Te.$parse_attribute_value($e);else if(ze(K("APOS"),ie))U=Te.$parse_attribute_value($e),G(U["$start_with?"](K("APOS")))||(F=!0);else if(ze(Te.delimiter,ie))U="",Te.scanner.$unscan();else if(ze(dt,ie))U="";else if(U=""+$e+Te.$scan_to_delimiter(),Ge(U,"None"))return!0}else Z=""+Z+Me(" ",q)+$e+Te.$scan_to_delimiter();else Z=""+$e+Te.$scan_to_delimiter();if(G(U))switch(Z){case"options":case"opts":G(U["$include?"](","))?(G(U["$include?"](" "))&&(U=U.$delete(" ")),C(U.$split(","),"each",[],function o(m){var T,S=o.$$s==null?this:o.$$s;return S.attributes==null&&(S.attributes=dt),m==null&&(m=dt),G(m["$empty?"]())?dt:(T=[""+m+"-option",""],C(S.attributes,"[]=",T),T[T.length-1])},{$$s:Te})):G(U["$empty?"]())||Te.attributes["$[]="](""+U+"-option","");break;default:if(G(F)&&G(Te.block))switch(Z){case"title":case"reftext":Te.attributes["$[]="](Z,U);break;default:Te.attributes["$[]="](Z,Te.block.$apply_subs(U))}else Te.attributes["$[]="](Z,U)}else G(F)&&G(Te.block)&&(Z=Te.block.$apply_subs(Z)),G(g=Ne["$[]"](we))&&G(Z)&&Te.attributes["$[]="](g,Z),Te.attributes["$[]="](Ie(we,1),Z);return oe}),Ue(tt,"$parse_attribute_value",function(we){var Ne=this,Te=dt;return Ge(Ne.scanner.$peek(1),we)?(Ne.scanner.$get_byte(),""):G(Te=Ne.$scan_to_quote(we))?(Ne.scanner.$get_byte(),G(Te["$include?"](K("BACKSLASH")))?Te.$gsub(K("EscapedQuotes")["$[]"](we),we):Te):""+we+Ne.$scan_to_delimiter()}),Ue(tt,"$skip_blank",function(){var we=this;return we.scanner.$skip(K("BlankRx"))}),Ue(tt,"$skip_delimiter",function(){var we=this;return we.scanner.$skip(we.delimiter_skip_pattern)}),Ue(tt,"$scan_name",function(){var we=this;return we.scanner.$scan(K("NameRx"))}),Ue(tt,"$scan_to_delimiter",function(){var we=this;return we.scanner.$scan(we.delimiter_boundary_pattern)}),Ue(tt,"$scan_to_quote",function(we){var Ne=this;return Ne.scanner.$scan(K("BoundaryRx")["$[]"](we))})}($t[0],null,$t)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash2,y=a.alias,Y=a.send2,Ue=a.find_super,G=a.truthy,Ie=a.eqeqeq,C=a.def,Oe=a.rb_lt,ze=a.eqeq,Ge=[],Me=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,We){var st=ae(dt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye);return function($t,z,et){var E=te($t,z,"Block"),tt=[E].concat(et),lt=a.$r(tt),K=E.$$prototype;return K.attributes=K.content_model=K.lines=K.subs=K.blocks=K.context=K.style=Me,V(tt[0],"DEFAULT_CONTENT_MODEL",_e(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"}))["$default="]("simple"),y(E,"blockname","context"),E.$attr_accessor("lines"),C(E,"$initialize",function M(He,we,Ne){var Te=M.$$p||Me,oe=this,ye=Me,Z=Me,F=Me;return M.$$p=null,Ne==null&&(Ne=_e([],{})),Y(oe,Ue(oe,"initialize",M,!1,!0),"initialize",[He,we,Ne],Te),oe.content_model=G(ye=Ne["$[]"]("content_model"))?ye:lt("DEFAULT_CONTENT_MODEL")["$[]"](we),G(Ne["$key?"]("subs"))?G(Z=Ne["$[]"]("subs"))?(Ie("default",ye=Z)?oe.default_subs=Ne["$[]"]("default_subs"):Ie(Pe("Array"),ye)?(oe.default_subs=Z.$drop(0),oe.attributes.$delete("subs")):(oe.default_subs=Me,oe.attributes["$[]="]("subs",Z.$to_s())),oe.$commit_subs()):(oe.default_subs=[],oe.attributes.$delete("subs")):oe.default_subs=Me,G((F=Ne["$[]"]("source"))["$nil_or_empty?"]())?oe.lines=[]:Ie(Pe("String"),F)?oe.lines=lt("Helpers").$prepare_source_string(F):oe.lines=F.$drop(0)},-3),C(E,"$content",function M(){var He=M.$$p||Me,we=this,Ne=Me,Te=Me,oe=Me,ye=Me;switch(M.$$p=null,we.content_model){case"compound":return Y(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(Ne=we.$apply_subs(we.lines,we.subs),G(Oe(Ne.$size(),2)))return G(Te=Ne["$[]"](0))?Te:"";for(;G(G(Te=oe=Ne["$[]"](0))?oe.$rstrip()["$empty?"]():Te);)Ne.$shift();for(;G(G(Te=ye=Ne["$[]"](-1))?ye.$rstrip()["$empty?"]():Te);)Ne.$pop();return Ne.$join(lt("LF"));default:return ze(we.content_model,"empty")||we.$logger().$warn("unknown content model '"+we.content_model+"' for block: "+we),Me}}),C(E,"$source",function(){var He=this;return He.lines.$join(lt("LF"))}),C(E,"$to_s",function(){var He=this,we=Me;return we=ze(He.content_model,"compound")?"blocks: "+He.blocks.$size():"lines: "+He.lines.$size(),"#<"+He.$class()+"@"+He.$object_id()+" {context: "+He.context.$inspect()+", content_model: "+He.content_model.$inspect()+", style: "+He.style.$inspect()+", "+we+"}>"})}(Ye[0],Je("AbstractBlock"),Ye)}(Ge[0],Ge)},Opal.modules["asciidoctor/callouts"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=a.hash2,y=a.rb_plus,Y=a.truthy,Ue=a.rb_le,G=a.rb_minus,Ie=a.send,C=a.eqeq,Oe=a.rb_lt,ze=[],Ge=a.nil;return a.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),function(Me,Pe){var dt=ae(Me,"Asciidoctor"),We=[dt].concat(Pe);return function(st,Ye){var Je=te(st,Ye,"Callouts"),$t=Je.$$prototype;return $t.co_index=$t.lists=$t.list_index=Ge,V(Je,"$initialize",function(){var et=this;return et.lists=[],et.list_index=0,et.$next_list()}),V(Je,"$register",function(et){var E=this,tt=Ge;return E.$current_list()["$<<"](_e(["ordinal","id"],{ordinal:et.$to_i(),id:tt=E.$generate_next_callout_id()})),E.co_index=y(E.co_index,1),tt}),V(Je,"$read_next_id",function(){var et=this,E=Ge,tt=Ge;return E=Ge,tt=et.$current_list(),Y(Ue(et.co_index,tt.$size()))&&(E=tt["$[]"](G(et.co_index,1))["$[]"]("id")),et.co_index=y(et.co_index,1),E}),V(Je,"$callout_ids",function(et){var E=this;return Ie(E.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ge),C(lt["$[]"]("ordinal"),et)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),V(Je,"$current_list",function(){var et=this;return et.lists["$[]"](G(et.list_index,1))}),V(Je,"$next_list",function(){var et=this;return et.list_index=y(et.list_index,1),Y(Oe(et.lists.$size(),et.list_index))&&et.lists["$<<"]([]),et.co_index=1,Ge}),V(Je,"$rewind",function(){var et=this;return et.list_index=1,et.co_index=1,Ge}),Je.$private(),V(Je,"$generate_next_callout_id",function(){var et=this;return et.$generate_callout_id(et.list_index,et.co_index)}),V(Je,"$generate_callout_id",function(et,E){return"CO"+et+"-"+E})}(We[0],null)}(ze[0],ze)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.extract_kwargs,y=a.ensure_kwargs,Y=a.send,Ue=a.truthy,G=a.def,Ie=a.thrower,C=[],Oe=a.nil,ze=a.$$$;return a.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(Ge,Me){var Pe=ae(Ge,"Asciidoctor"),dt=[Pe].concat(Me),We=a.$r(dt);return function(st,Ye){var Je=te(st,Ye,"CompositeConverter"),$t=Je.$$prototype;return $t.converter_cache=$t.converters=Oe,Je.$attr_reader("converters"),G(Je,"$initialize",function(et,E,tt){var lt,K,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=Oe),we.backend=et,Y(we.converters=M,"each",[],function Ne(Te){var oe=Ne.$$s==null?this:Ne.$$s;return Te==null&&(Te=Oe),Ue(Te["$respond_to?"]("composed"))?Te.$composed(oe):Oe},{$$s:we}),Ue(He)&&we.$init_backend_traits(He.$backend_traits()),we.converter_cache=Y(ze("Hash"),"new",[],function Ne(Te,oe){var ye,Z=Ne.$$s==null?this:Ne.$$s;return Te==null&&(Te=Oe),oe==null&&(oe=Oe),ye=[oe,Z.$find_converter(oe)],Y(Te,"[]=",ye),ye[ye.length-1]},{$$s:we})},-2),G(Je,"$convert",function(et,E,tt){var lt=this,K=Oe;return E==null&&(E=Oe),tt==null&&(tt=Oe),lt.$converter_for(E=Ue(K=E)?K:et.$node_name()).$convert(et,E,tt)},-2),G(Je,"$converter_for",function(et){var E=this;return E.converter_cache["$[]"](et)}),G(Je,"$find_converter",function(et){try{var E=Ie("return"),tt=this;return Y(tt.converters,"each",[],function(K){if(K==null&&(K=Oe),Ue(K["$handles?"](et)))E.$throw(K);else return Oe},{$$ret:E}),tt.$raise("Could not find a converter to handle transform: "+et)}catch(lt){if(lt===E)return lt.$v;throw lt}})}(We("Converter"),ze(We("Converter"),"Base"))}(C[0],C)},Opal.modules["asciidoctor/converter"]=function(a){var ae=a.module,te=a.hash2,V=a.def,_e=a.return_val,y=a.truthy,Y=a.eqeq,Ue=a.defs,G=a.send,Ie=a.alias,C=a.slice,Oe=a.to_a,ze=a.extract_kwargs,Ge=a.ensure_kwargs,Me=a.eqeqeq,Pe=a.Class,dt=a.klass,We=a.class_variable_set,st=a.class_variable_get,Ye=a.rb_plus,Je=a.gvars,$t=[],z=a.nil,et=a.$$$;return a.add_stubs("autoload,attr_reader,raise,class,[],sub,slice,length,==,[]=,backend_traits,derive_backend_traits,register,map,to_s,new,create,default,each,default=,registry,for,===,supports_templates?,merge,private,include,delete,clear,send,extend,private_class_method,node_name,+,name,receiver,warn,logger,respond_to?,content"),function(E,tt){var lt=ae(E,"Asciidoctor"),K=[lt].concat(tt);return function(M,He){var we=ae(M,"Converter"),Ne=[we].concat(He),Te=a.$r(Ne);return we.$autoload("CompositeConverter","asciidoctor/converter/composite"),we.$attr_reader("backend"),V(we,"$initialize",function(ye,Z){var F=this;return Z==null&&(Z=te([],{})),F.backend=ye},-2),V(we,"$convert",function(ye,Z,F){var q=this;return q.backend==null&&(q.backend=z),q.$raise(et("NotImplementedError"),""+q.$class()+" (backend: "+q.backend+") must implement the #convert method")},-2),V(we,"$handles?",_e(!0)),Ue(we,"$derive_backend_traits",function(ye,Z){var F=z,q=z,ie=z;return Z==null&&(Z=z),y(ye)?(y(F=Te("DEFAULT_EXTENSIONS")["$[]"](Z=y(q=Z)?q:ye.$sub(Te("TrailingDigitsRx"),"")))?ie=F.$slice(1,F.$length()):F="."+(ie=Z),Y(ie,"html")?te(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:Z,filetype:ie,htmlsyntax:"html",outfilesuffix:F}):te(["basebackend","filetype","outfilesuffix"],{basebackend:Z,filetype:ie,outfilesuffix:F})):te([],{})},-2),function(oe,ye){var Z=ae(oe,"BackendTraits"),F=[Z].concat(ye),q=a.$r(F);return V(Z,"$basebackend",function(ee){var $e,U=this;return ee==null&&(ee=z),y(ee)?($e=["basebackend",ee],G(U.$backend_traits(ee),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("basebackend")},-1),V(Z,"$filetype",function(ee){var $e,U=this;return ee==null&&(ee=z),y(ee)?($e=["filetype",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("filetype")},-1),V(Z,"$htmlsyntax",function(ee){var $e,U=this;return ee==null&&(ee=z),y(ee)?($e=["htmlsyntax",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("htmlsyntax")},-1),V(Z,"$outfilesuffix",function(ee){var $e,U=this;return ee==null&&(ee=z),y(ee)?($e=["outfilesuffix",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]):U.$backend_traits()["$[]"]("outfilesuffix")},-1),V(Z,"$supports_templates",function(ee){var $e,U=this;return ee==null&&(ee=!0),$e=["supports_templates",ee],G(U.$backend_traits(),"[]=",$e),$e[$e.length-1]},-1),V(Z,"$supports_templates?",function(){var ee=this;return ee.$backend_traits()["$[]"]("supports_templates")}),V(Z,"$init_backend_traits",function(ee){var $e=this,U=z;return ee==null&&(ee=z),$e.backend_traits=y(U=ee)?U:te([],{})},-1),V(Z,"$backend_traits",function(ee){var $e=this,U=z;return $e.backend_traits==null&&($e.backend_traits=z),$e.backend==null&&($e.backend=z),ee==null&&(ee=z),$e.backend_traits=y(U=$e.backend_traits)?U:q("Converter").$derive_backend_traits($e.backend,ee)},-1),Ie(Z,"backend_info","backend_traits"),Ue(Z,"$derive_backend_traits",function(ee,$e){return $e==null&&($e=z),q("Converter").$derive_backend_traits(ee,$e)},-2)}(Ne[0],Ne),function(oe,ye){var Z=ae(oe,"Config"),F=[Z].concat(ye),q=a.$r(F);return V(Z,"$register_for",function(ee){var $e,U,g=this;return $e=C(arguments),U=$e,G(q("Converter"),"register",[g].concat(Oe(G(U,"map",[],function(m){return m==null&&(m=z),m.$to_s()}))))},-1)}(Ne[0],Ne),function(oe,ye){var Z=ae(oe,"Factory"),F=[Z].concat(ye),q=a.$r(F);return Ue(Z,"$new",function(ee,$e){var U,g,o,m;return U=C(arguments),g=ze(U),g=Ge(g),U.length>0&&(o=U.shift()),o==null&&(o=z),m=g.$$smap.proxy_default,m==null&&(m=!0),y(m)?q("DefaultFactoryProxy").$new(o):q("CustomFactory").$new(o)},-1),Ue(Z,"$default",function(ee){return C(arguments),q("Converter")},-1),Ue(Z,"$create",function(ee,$e){var U=this;return $e==null&&($e=te([],{})),U.$default().$create(ee,$e)},-2),V(Z,"$register",function(ee,$e){var U,g,o=this;return U=C(arguments,1),g=U,G(g,"each",[],function m(T){var S,b=m.$$s==null?this:m.$$s;return T==null&&(T=z),Y(T,"*")?(S=[ee],G(b.$registry(),"default=",S),S[S.length-1]):(S=[T,ee],G(b.$registry(),"[]=",S),S[S.length-1])},{$$s:o})},-2),V(Z,"$for",function(ee){var $e=this;return $e.$registry()["$[]"](ee)}),V(Z,"$create",function(ee,$e){var U=this,g=z,o=z,m=z;return $e==null&&($e=te([],{})),y(g=U.$for(ee))?(Me(Pe,g)&&(g=g.$new(ee,$e)),y(o=$e["$[]"]("template_dirs"))&&Me(q("BackendTraits"),g)&&y(g["$supports_templates?"]())?q("CompositeConverter").$new(ee,q("TemplateConverter").$new(ee,o,$e),g,te(["backend_traits_source"],{backend_traits_source:g})):g):y(o=$e["$[]"]("template_dirs"))?y(m=$e["$[]"]("delegate_backend"))&&y(g=U.$for(m))?(Me(Pe,g)&&(g=g.$new(m,$e)),q("CompositeConverter").$new(ee,q("TemplateConverter").$new(ee,o,$e),g,te(["backend_traits_source"],{backend_traits_source:g}))):q("TemplateConverter").$new(ee,o,$e):z},-2),V(Z,"$converters",function(){var ee=this;return ee.$registry().$merge()}),Z.$private(),V(Z,"$registry",function(){var ee=this;return ee.$raise(et("NotImplementedError"),""+q("Factory")+" subclass "+ee.$class()+" must implement the #registry method")})}(Ne[0],Ne),function(oe,ye,Z){var F=dt(oe,ye,"CustomFactory"),q=[F].concat(Z),ie=a.$r(q);return F.$include(ie("Factory")),V(F,"$initialize",function($e){var U=this;return $e==null&&($e=z),y($e)?($e["$default="]($e.$delete("*")),U.registry=$e):U.registry=te([],{})},-1),V(F,"$unregister_all",function(){var $e,U=this;return $e=[z],G(U.$registry().$clear(),"default=",$e),$e[$e.length-1]}),F.$private(),F.$attr_reader("registry")}(Ne[0],null,Ne),function(oe,ye){var Z=ae(oe,"DefaultFactory"),F=[Z].concat(ye),q=a.$r(F);return Z.$include(q("Factory")),Z.$private(),We(F[0],"@@registry",te([],{})),V(Z,"$registry",function(){return st(F[0],"@@registry",!1)}),z}(Ne[0],Ne),function(oe,ye,Z){var F=dt(oe,ye,"DefaultFactoryProxy"),q=[F].concat(Z),ie=a.$r(q);return F.$include(ie("DefaultFactory")),z}(Ne[0],Te("CustomFactory"),Ne),Ue(we,"$included",function(ye){return ye.$send("include",Te("BackendTraits")),ye.$extend(Te("Config"))}),we.$private_class_method("included"),function(oe,ye,Z){var F=dt(oe,ye,"Base"),q=[F].concat(Z),ie=a.$r(q),ee=F.$$prototype;return ee.backend=z,F.$include(ie("Logging")),F.$include(ie("Converter")),V(F,"$convert",function(U,g,o){var m=this,T=z;Je["!"]==null&&(Je["!"]=z),g==null&&(g=U.$node_name()),o==null&&(o=z);try{return y(o)?m.$send(Ye("convert_",g),U,o):m.$send(Ye("convert_",g),U)}catch(S){if(a.rescue(S,[ie("StandardError")]))try{return Me(et("NoMethodError"),T=Je["!"])&&Y(T.$receiver(),m)&&Y(T.$name().$to_s(),g)||m.$raise(),m.$logger().$warn("missing convert handler for "+T.$name()+" node in "+m.backend+" backend ("+m.$class()+")"),z}finally{a.pop_exception()}else throw S}},-2),V(F,"$handles?",function(U){var g=this;return g["$respond_to?"]("convert_"+U)}),V(F,"$content_only",function(U){return U.$content()}),V(F,"$skip",_e(z))}(Ne[0],null,Ne),we.$extend(Te("DefaultFactory"))}(K[0],K)}($t[0],$t)},Opal.modules["asciidoctor/document"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.send,y=a.alias,Y=a.truthy,Ue=a.def,G=a.hash2,Ie=a.not,C=a.to_ary,Oe=a.return_ivar,ze=a.send2,Ge=a.find_super,Me=a.rb_minus,Pe=a.eqeq,dt=a.eqeqeq,We=a.hash,st=a.rb_ge,Ye=a.rb_plus,Je=a.neqeq,$t=a.thrower,z=a.rb_gt,et=a.rb_lt,E=a.gvars,tt=a.to_a,lt=[],K=a.nil,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 Ne=ae(He,"Asciidoctor"),Te=[Ne].concat(we),oe=a.$r(Te);return function(ye,Z,F){var q=te(ye,Z,"Document"),ie=[q].concat(F),ee=a.$r(ie),$e=q.$$prototype;return $e.attributes=$e.safe=$e.sourcemap=$e.reader=$e.base_dir=$e.parsed=$e.parent_document=$e.extensions=$e.options=$e.counters=$e.catalog=$e.reftexts=$e.next_section_index=$e.header=$e.blocks=$e.header_attributes=$e.attributes_modified=$e.backend=$e.attribute_overrides=$e.timings=$e.converter=$e.outfilesuffix=$e.docinfo_processor_extensions=$e.document=$e.max_attribute_value_size=$e.id=$e.doctype=K,V(ie[0],"ImageReference",_e(M("Struct"),"new",["target","imagesdir"],function U(){var g=U.$$s==null?this:U.$$s;return y(g,"to_s","target")},{$$s:q})),V(ie[0],"Footnote",M("Struct").$new("index","id","text")),function(U,g){var o=te(U,g,"AttributeEntry");return o.$attr_reader("name","value","negate"),Ue(o,"$initialize",function(T,S,b){var D=this;return b==null&&(b=K),D.name=T,D.value=S,D.negate=Y(b["$nil?"]())?S["$nil?"]():b},-3),Ue(o,"$save_to",function(T){var S,b=this,D=K;return(Y(D=T["$[]"]("attribute_entries"))?D:(S=["attribute_entries",[]],_e(T,"[]=",S),S[S.length-1]))["$<<"](b),b})}(ie[0],null),function(U,g,o){var m=te(U,g,"Title"),T=[m].concat(o),S=a.$r(T),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(j,de){var le,ke,Be=this,Xe=K,it=K;return de==null&&(de=G([],{})),Y(Be.sanitized=de["$[]"]("sanitize"))&&Y(j["$include?"]("<"))&&(j=j.$gsub(S("XmlSanitizeRx"),"").$squeeze(" ").$strip()),Y((Xe=Y(it=de["$[]"]("separator"))?it:":")["$empty?"]())||Ie(j["$include?"](Xe=""+Xe+" "))?(Be.main=j,Be.subtitle=K):(ke=j.$rpartition(Xe),le=C(ke),Be.main=le[0]==null?K:le[0],le[1]==null||le[1],Be.subtitle=le[2]==null?K:le[2]),Be.combined=j},-2),Ue(m,"$sanitized?",Oe("sanitized")),Ue(m,"$subtitle?",function(){var j=this;return!!Y(j.subtitle)}),Ue(m,"$to_s",Oe("combined"))}(ie[0],null,ie),V(ie[0],"Author",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 U(g,o){var m,T,S,b;U.$$p;var D=this,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K,Tt=K,St=K,Wt=K,Bt=K,er=K;return U.$$p=null,g==null&&(g=K),o==null&&(o=G([],{})),ze(D,Ge(D,"initialize",U,!1,!0),"initialize",[D,"document"],null),Y(j=o.$delete("parent"))?(D.parent_document=j,Y(de=o["$[]"]("base_dir"))||o["$[]="]("base_dir",j.$base_dir()),Y(j.$options()["$[]"]("catalog_assets"))&&o["$[]="]("catalog_assets",!0),Y(j.$options()["$[]"]("to_dir"))&&o["$[]="]("to_dir",j.$options()["$[]"]("to_dir")),D.catalog=j.$catalog().$merge(G(["footnotes"],{footnotes:[]})),D.attribute_overrides=le=j.$instance_variable_get("@attribute_overrides").$merge(j.$attributes()),le.$delete("compat-mode"),ke=le.$delete("doctype"),le.$delete("notitle"),le.$delete("showtitle"),le.$delete("toc"),D.attributes["$[]="]("toc-placement",Y(de=le.$delete("toc-placement"))?de:"auto"),le.$delete("toc-position"),D.safe=j.$safe(),Y(D.compat_mode=j.$compat_mode())&&D.attributes["$[]="]("compat-mode",""),D.outfilesuffix=j.$outfilesuffix(),D.sourcemap=j.$sourcemap(),D.timings=K,D.path_resolver=j.$path_resolver(),D.converter=j.$converter(),Be=K,D.extensions=j.$extensions(),D.syntax_highlighter=j.$syntax_highlighter()):(D.parent_document=K,D.catalog=G(["ids","refs","footnotes","links","images","callouts","includes"],{ids:G([],{}),refs:G([],{}),footnotes:[],links:[],images:[],callouts:ee("Callouts").$new(),includes:G([],{})}),D.attribute_overrides=le=G([],{}),_e(Y(de=o["$[]"]("attributes"))?de:G([],{}),"each",[],function(Pt,Yt){var Xt;return Pt==null&&(Pt=K),Yt==null&&(Yt=K),Y(Pt["$end_with?"]("@"))?Y(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Me(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):Y(Pt["$end_with?"]("!@"))?(Xt=[Pt.$slice(0,Me(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):(Xt=[Pt.$chop(),""+Yt+"@"],Pt=Xt[0],Yt=Xt[1]):Y(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Pt.$length()),Pe(Yt,"@")?!1:K],Pt=Xt[0],Yt=Xt[1]):Y(Pt["$end_with?"]("!"))&&(Xt=[Pt.$chop(),Pe(Yt,"@")?!1:K],Pt=Xt[0],Yt=Xt[1]),Xt=[Pt.$downcase(),Yt],_e(le,"[]=",Xt),Xt[Xt.length-1]}),dt(M("String"),Xe=o["$[]"]("to_file"))&&le["$[]="]("outfilesuffix",ee("Helpers").$extname(Xe)),Ie(it=o["$[]"]("safe"))?D.safe=M(ee("SafeMode"),"SECURE"):dt(M("Integer"),it)?D.safe=it:D.safe=function(){try{return ee("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[ee("StandardError")]))try{return M(ee("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),ht=o.$delete("input_mtime"),D.compat_mode=le["$key?"]("compat-mode"),D.sourcemap=o["$[]"]("sourcemap"),D.timings=o.$delete("timings"),D.path_resolver=ee("PathResolver").$new(),Be=Y((m=M("::","Asciidoctor","skip_raise"))&&M(m,"Extensions","skip_raise")?"constant":K)||Y(o["$key?"]("extensions"))?M(M("Asciidoctor"),"Extensions"):K,D.extensions=K,Y(o["$key?"]("header_footer"))&&Ie(o["$key?"]("standalone"))&&o["$[]="]("standalone",o["$[]"]("header_footer"))),D.parsed=D.reftexts=D.header=D.header_attributes=K,D.counters=G([],{}),D.attributes_modified=M("Set").$new(),D.docinfo_processor_extensions=G([],{}),at=o["$[]"]("standalone"),(D.options=o).$freeze(),mt=D.attributes,Y(j)||(mt["$[]="]("attribute-undefined",ee("Compliance").$attribute_undefined()),mt["$[]="]("attribute-missing",ee("Compliance").$attribute_missing()),mt.$update(ee("DEFAULT_ATTRIBUTES"))),Y(at)?(le["$[]="]("embedded",K),mt["$[]="]("copycss",""),mt["$[]="]("iconfont-remote",""),mt["$[]="]("stylesheet",""),mt["$[]="]("webfonts","")):(le["$[]="]("embedded",""),Y(le["$key?"]("showtitle"))&&Pe(le.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?le["$[]="]("notitle",We(K,"",!1,"@","@",!1)["$[]"](le["$[]"]("showtitle"))):Y(le["$key?"]("notitle"))?le["$[]="]("showtitle",We(K,"",!1,"@","@",!1)["$[]"](le["$[]"]("notitle"))):mt["$[]="]("notitle","")),le["$[]="]("asciidoctor",""),le["$[]="]("asciidoctor-version",M(M("Asciidoctor"),"VERSION")),le["$[]="]("safe-mode-name",yt=ee("SafeMode").$name_for_value(D.safe)),le["$[]="]("safe-mode-"+yt,""),le["$[]="]("safe-mode-level",D.safe),Y(de=le["$[]"]("max-include-depth"))||le["$[]="]("max-include-depth",64),Y(de=le["$[]"]("allow-uri-read"))||le["$[]="]("allow-uri-read",K),Y(le["$key?"]("numbered"))&&le["$[]="]("sectnums",le.$delete("numbered")),Y(le["$key?"]("hardbreaks"))&&le["$[]="]("hardbreaks-option",le.$delete("hardbreaks")),Y(xt=o["$[]"]("base_dir"))?D.base_dir=(T=["docdir",M("File").$expand_path(xt)],_e(le,"[]=",T),T[T.length-1]):Y(le["$[]"]("docdir"))?D.base_dir=le["$[]"]("docdir"):D.base_dir=(T=["docdir",M("Dir").$pwd()],_e(le,"[]=",T),T[T.length-1]),Y(vt=o["$[]"]("backend"))&&le["$[]="]("backend",vt.$to_s()),Y(Tt=o["$[]"]("doctype"))&&le["$[]="]("doctype",Tt.$to_s()),Y(st(D.safe,M(ee("SafeMode"),"SERVER")))?(Y(de=le["$[]"]("copycss"))||le["$[]="]("copycss",K),Y(de=le["$[]"]("source-highlighter"))||le["$[]="]("source-highlighter",K),Y(de=le["$[]"]("backend"))||le["$[]="]("backend",ee("DEFAULT_BACKEND")),Ie(j)&&Y(le["$key?"]("docfile"))&&le["$[]="]("docfile",le["$[]"]("docfile")["$[]"](a.Range.$new(Ye(le["$[]"]("docdir").$length(),1),-1,!1))),le["$[]="]("docdir",""),Y(de=le["$[]"]("user-home"))||le["$[]="]("user-home","."),Y(st(D.safe,M(ee("SafeMode"),"SECURE")))&&(Y(le["$key?"]("max-attribute-value-size"))||le["$[]="]("max-attribute-value-size",4096),Y(le["$key?"]("linkcss"))||le["$[]="]("linkcss",""),Y(de=le["$[]"]("icons"))||le["$[]="]("icons",K))):Y(de=le["$[]"]("user-home"))||le["$[]="]("user-home",ee("USER_HOME")),D.max_attribute_value_size=Y(St=Y(de=le["$[]"]("max-attribute-value-size"))?de:(T=["max-attribute-value-size",K],_e(le,"[]=",T),T[T.length-1]))?St.$to_i().$abs():K,_e(le,"delete_if",[],function(Pt,Yt){var Xt,nr=K;return Pt==null&&(Pt=K),Yt==null&&(Yt=K),Y(Yt)?(dt(M("String"),Yt)&&Y(Yt["$end_with?"]("@"))&&(Xt=[Yt.$chop(),!0],Yt=Xt[0],nr=Xt[1]),mt["$[]="](Pt,Yt)):(mt.$delete(Pt),nr=Yt["$=="](!1)),nr}),Y(j)?(D.backend=mt["$[]"]("backend"),Pe(D.doctype=(T=["doctype",ke],_e(mt,"[]=",T),T[T.length-1]),ee("DEFAULT_DOCTYPE"))||D.$update_doctype_attributes(ee("DEFAULT_DOCTYPE")),D.reader=ee("Reader").$new(g,o["$[]"]("cursor")),Y(D.sourcemap)&&(D.source_location=D.reader.$cursor()),ee("Parser").$parse(D.reader,D),D.$restore_attributes(),D.parsed=!0):(D.backend=K,Pe(Wt=Y(de=mt["$[]"]("backend"))?de:ee("DEFAULT_BACKEND"),"manpage")?D.doctype=(T=["doctype",(S=["doctype","manpage"],_e(le,"[]=",S),S[S.length-1])],_e(mt,"[]=",T),T[T.length-1]):D.doctype=Y(de=mt["$[]"]("doctype"))?de:(T=["doctype",ee("DEFAULT_DOCTYPE")],_e(mt,"[]=",T),T[T.length-1]),D.$update_backend_attributes(Wt,!0),Y(de=mt["$[]"]("stylesdir"))||mt["$[]="]("stylesdir","."),Y(de=mt["$[]"]("iconsdir"))||mt["$[]="]("iconsdir",""+mt.$fetch("imagesdir","./images")+"/icons"),D.$fill_datetime_attributes(mt,ht),Y(Be)&&(Y(Bt=o["$[]"]("extension_registry"))?(dt(M(ee("Extensions"),"Registry"),Bt)||Y((b=M("::","AsciidoctorJ","skip_raise"))&&(S=M(b,"Extensions","skip_raise"))&&(T=M(S,"ExtensionRegistry","skip_raise"))?"constant":K)&&dt(M(M(M("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),Bt))&&(D.extensions=Bt.$activate(D)):Y((er=o["$[]"]("extensions"))["$nil?"]())?Y(ee("Extensions").$groups()["$empty?"]())||(D.extensions=M(ee("Extensions"),"Registry").$new().$activate(D)):dt(M("Proc"),er)&&(D.extensions=_e(ee("Extensions"),"create",[],er.$to_proc()).$activate(D))),D.reader=ee("PreprocessorReader").$new(D,g,M(ee("Reader"),"Cursor").$new(mt["$[]"]("docfile"),D.base_dir),G(["normalize"],{normalize:!0})),Y(D.sourcemap)?D.source_location=D.reader.$cursor():K)},-1),Ue(q,"$parse",function(g){var o=this,m=K,T=K;return g==null&&(g=K),Y(o.parsed)?o:(m=o,Y(g)&&(o.reader=ee("PreprocessorReader").$new(m,g,M(ee("Reader"),"Cursor").$new(o.attributes["$[]"]("docfile"),o.base_dir),G(["normalize"],{normalize:!0})),Y(o.sourcemap)&&(o.source_location=o.reader.$cursor())),Y(T=Y(o.parent_document)?K:o.extensions)&&Y(T["$preprocessors?"]())&&_e(T.$preprocessors(),"each",[],function S(b){var D=S.$$s==null?this:S.$$s,j=K;return D.reader==null&&(D.reader=K),b==null&&(b=K),D.reader=Y(j=b.$process_method()["$[]"](m,D.reader))?j:D.reader},{$$s:o}),ee("Parser").$parse(o.reader,m,G(["header_only"],{header_only:o.options["$[]"]("parse_header_only")})),o.$restore_attributes(),Y(T)&&Y(T["$tree_processors?"]())&&_e(T.$tree_processors(),"each",[],function(b){var D=K;return b==null&&(b=K),Y(D=b.$process_method()["$[]"](m))&&dt(ee("Document"),D)&&Je(D,m)?m=D:K}),o.parsed=!0,m)},-1),Ue(q,"$parsed?",Oe("parsed")),Ue(q,"$counter",function(g,o){var m,T=this,S=K,b=K,D=K;return o==null&&(o=K),Y(T.parent_document)?T.parent_document.$counter(g,o):(Y(b=T["$attribute_locked?"](g))&&Y(S=T.counters["$[]"](g))||Ie((S=T.attributes["$[]"](g))["$nil_or_empty?"]())?D=(m=[g,ee("Helpers").$nextval(S)],_e(T.counters,"[]=",m),m[m.length-1]):Y(o)?D=(m=[g,Pe(o,o.$to_i().$to_s())?o.$to_i():o],_e(T.counters,"[]=",m),m[m.length-1]):D=(m=[g,1],_e(T.counters,"[]=",m),m[m.length-1]),Y(b)||T.attributes["$[]="](g,D),D)},-2),Ue(q,"$increment_and_store_counter",function(g,o){var m=this;return ee("AttributeEntry").$new(g,m.$counter(g)).$save_to(o.$attributes()).$value()}),y(q,"counter_increment","increment_and_store_counter"),Ue(q,"$register",function(g,o){var m=this,T=K,S=K,b=K;switch(g){case"ids":return m.$register("refs",[T=o["$[]"](0),ee("Inline").$new(m,"anchor",o["$[]"](1),G(["type","id"],{type:"ref",id:T}))]);case"refs":return S=m.catalog["$[]"]("refs"),Y(S["$[]"](o["$[]"](0)))||S["$[]="](o["$[]"](0),b=o["$[]"](1)),b;case"footnotes":return m.catalog["$[]"](g)["$<<"](o);default:return Y(m.options["$[]"]("catalog_assets"))?m.catalog["$[]"](g)["$<<"](Pe(g,"images")?ee("ImageReference").$new(o,m.attributes["$[]"]("imagesdir")):o):K}}),Ue(q,"$resolve_id",function(g){var o=this,m=K,T=K;return Y(o.reftexts)?o.reftexts["$[]"](g):Y(o.parsed)?_e(o.reftexts=G([],{}),"tap",[],function S(b){var D=S.$$s==null?this:S.$$s;return D.catalog==null&&(D.catalog=K),b==null&&(b=K),_e(D.catalog["$[]"]("refs"),"each",[],function(de,le){var ke,Be=K;return de==null&&(de=K),le==null&&(le=K),Y(Be=b["$[]"](le.$xreftext()))?Be:(ke=[le.$xreftext(),de],_e(b,"[]=",ke),ke[ke.length-1])})},{$$s:o})["$[]"](g):(m=K,o.reftexts=T=G([],{}),function(){try{var S=$t("break");return _e(o.catalog["$[]"]("refs"),"each",[],function(D,j){var de,le=K,ke=K;return D==null&&(D=K),j==null&&(j=K),Pe(le=j.$xreftext(),g)&&(m=D,S.$throw()),Y(ke=T["$[]"](le))?ke:(de=[le,D],_e(T,"[]=",de),de[de.length-1])})}catch(b){if(b===S)return b.$v;throw b}}(),o.reftexts=K,m)}),Ue(q,"$sections?",function(){var g=this;return z(g.next_section_index,0)}),Ue(q,"$footnotes?",function(){var g=this;return!Y(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(q,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(q,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(q,"$nested?",function(){var g=this;return!!Y(g.parent_document)}),Ue(q,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(q,"$extensions?",function(){var g=this;return!!Y(g.extensions)}),Ue(q,"$source",function(){var g=this;return Y(g.reader)?g.reader.$source():K}),Ue(q,"$source_lines",function(){var g=this;return Y(g.reader)?g.reader.$source_lines():K}),Ue(q,"$basebackend?",function(g){var o=this;return o.attributes["$[]"]("basebackend")["$=="](g)}),Ue(q,"$title",function(){var g=this;return g.$doctitle()}),Ue(q,"$title=",function(g){var o,m=this,T=K;return Y(T=m.header)||(T=m.header=ee("Section").$new(m,0))["$sectname="]("header"),o=[g],_e(T,"title=",o),o[o.length-1]}),Ue(q,"$doctitle",function(g){var o=this,m=K,T=K,S=K,b=K;if(g==null&&(g=G([],{})),!Y(m=o.attributes["$[]"]("title"))){if(Y(T=o.$first_section()))m=T.$title();else if(Ie(Y(S=g["$[]"]("use_fallback"))?m=o.attributes["$[]"]("untitled-label"):S))return K}return Y(b=g["$[]"]("partition"))?ee("Title").$new(m,g.$merge(G(["separator"],{separator:Pe(b,!0)?o.attributes["$[]"]("title-separator"):b}))):Y(g["$[]"]("sanitize"))&&Y(m["$include?"]("<"))?m.$gsub(ee("XmlSanitizeRx"),"").$squeeze(" ").$strip():m},-1),y(q,"name","doctitle"),Ue(q,"$xreftext",function(g){var o=this,m=K;return Y(m=o.$reftext())&&Ie(m["$empty?"]())?m:o.$title()},-1),Ue(q,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(q,"$authors",function(){var g=this,o=K,m=K,T=K,S=K,b=K;if(Y((o=g.attributes)["$key?"]("author"))){if(m=[ee("Author").$new(o["$[]"]("author"),o["$[]"]("firstname"),o["$[]"]("middlename"),o["$[]"]("lastname"),o["$[]"]("authorinitials"),o["$[]"]("email"))],Y(z(T=Y(S=o["$[]"]("authorcount"))?S:0,1)))for(b=1;Y(et(b,T));)b=Ye(b,1),m["$<<"](ee("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 Y(o=g.header)?o:_e(g.blocks,"find",[],function(T){return T==null&&(T=K),T.$context()["$=="]("section")})}),Ue(q,"$header?",function(){var g=this;return!!Y(g.header)}),y(q,"has_header?","header?"),Ue(q,"$<<",function U(g){var o=U.$$p||K,m=this;return U.$$p=null,Pe(g.$context(),"section")&&m.$assign_numeral(g),ze(m,Ge(m,"<<",U,!1,!0),"<<",[g],o)}),Ue(q,"$finalize_header",function(g,o){var m=this;return o==null&&(o=!0),m.$clear_playback_attributes(g),m.$save_attributes(),Y(o)||g["$[]="]("invalid-header",!0),g},-2),Ue(q,"$playback_attributes",function(g){var o=this;return Y(g["$key?"]("attribute_entries"))?_e(g["$[]"]("attribute_entries"),"each",[],function m(T){var S=m.$$s==null?this:m.$$s,b=K;return S.attributes==null&&(S.attributes=K),T==null&&(T=K),b=T.$name(),Y(T.$negate())?(S.attributes.$delete(b),Pe(b,"compat-mode")?S.compat_mode=!1:K):(S.attributes["$[]="](b,T.$value()),Pe(b,"compat-mode")?S.compat_mode=!0:K)},{$$s:o}):K}),Ue(q,"$restore_attributes",function(){var g=this;return Y(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(q,"$set_attribute",function(g,o){var m=this,T=K;if(o==null&&(o=""),Y(m["$attribute_locked?"](g)))return K;if(Y(o["$empty?"]())||(o=m.$apply_attribute_value_subs(o)),Y(m.header_attributes))m.attributes["$[]="](g,o);else{switch(g){case"backend":m.$update_backend_attributes(o,Y(T=m.attributes_modified["$delete?"]("htmlsyntax"))?o["$=="](m.backend):T);break;case"doctype":m.$update_doctype_attributes(o);break;default:m.attributes["$[]="](g,o)}m.attributes_modified["$<<"](g)}return o},-2),Ue(q,"$delete_attribute",function(g){var o=this;return Y(o["$attribute_locked?"](g))?!1:(o.attributes.$delete(g),o.attributes_modified["$<<"](g),!0)}),Ue(q,"$attribute_locked?",function(g){var o=this;return o.attribute_overrides["$key?"](g)}),Ue(q,"$set_header_attribute",function(g,o,m){var T=this,S=K,b=K;return o==null&&(o=""),m==null&&(m=!0),S=Y(b=T.header_attributes)?b:T.attributes,Pe(m,!1)&&Y(S["$key?"](g))?!1:(S["$[]="](g,o),!0)},-2),Ue(q,"$convert",function(g){var o,m=this,T=K,S=K,b=K,D=K,j=K;return g==null&&(g=G([],{})),Y(m.timings)&&m.timings.$start("convert"),Y(m.parsed)||m.$parse(),Y(st(m.safe,M(ee("SafeMode"),"SERVER")))||Y(g["$empty?"]())||(Y((o=["outfile",g["$[]"]("outfile")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outfile"),Y((o=["outdir",g["$[]"]("outdir")],_e(m.attributes,"[]=",o),o[o.length-1]))||m.attributes.$delete("outdir")),Pe(m.$doctype(),"inline")?Y(T=Y(S=m.blocks["$[]"](0))?S:m.header)&&(Pe(T.$content_model(),"compound")||Pe(T.$content_model(),"empty")?m.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):b=T.$content()):(Y(g["$key?"]("standalone"))?D=Y(g["$[]"]("standalone"))?"document":"embedded":Y(g["$key?"]("header_footer"))?D=Y(g["$[]"]("header_footer"))?"document":"embedded":D=Y(m.options["$[]"]("standalone"))?"document":"embedded",b=m.converter.$convert(m,D)),Y(m.parent_document)||Y(j=m.extensions)&&Y(j["$postprocessors?"]())&&_e(j.$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}),Y(m.timings)&&m.timings.$record("convert"),b},-1),y(q,"render","convert"),Ue(q,"$write",function(g,o){var m=this;return Y(m.timings)&&m.timings.$start("write"),dt(ee("Writer"),m.converter)?m.converter.$write(g,o):(Y(o["$respond_to?"]("write"))?Y(g["$nil_or_empty?"]())||(o.$write(g.$chomp()),o.$write(ee("LF"))):M("File").$write(o,g,G(["mode"],{mode:ee("FILE_WRITE_MODE")})),Pe(m.backend,"manpage")&&dt(M("String"),o)&&Y(m.converter.$class()["$respond_to?"]("write_alternate_pages"))&&m.converter.$class().$write_alternate_pages(m.attributes["$[]"]("mannames"),m.attributes["$[]"]("manvolnum"),o)),Y(m.timings)&&m.timings.$record("write"),K}),Ue(q,"$content",function U(){var g=U.$$p||K,o=this;return U.$$p=null,o.attributes.$delete("title"),ze(o,Ge(o,"content",U,!1,!0),"content",[],g)}),Ue(q,"$docinfo",function(g,o){var m,T=this,S=K,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K;return g==null&&(g="head"),o==null&&(o=K),Y(et(T.$safe(),M(ee("SafeMode"),"SECURE")))&&(Pe(g,"head")||(S="-"+g),o=Y(b=o)?b:T.outfilesuffix,Y((D=T.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?Y(T.attributes["$key?"]("docinfo2"))?D=["private","shared"]:Y(T.attributes["$key?"]("docinfo1"))?D=["shared"]:D=Y(D)?["private"]:K:D=_e(D.$split(","),"map",[],function(at){return at==null&&(at=K),at.$strip()}),Y(D)&&(j=[],m=["docinfo"+S+o,T.attributes["$[]"]("docinfodir"),T.$resolve_docinfo_subs()],de=m[0],le=m[1],ke=m[2],Y(D["$&"](["shared","shared-"+g])["$empty?"]())||(Be=T.$normalize_system_path(de,le),Y(Xe=T.$read_asset(Be,G(["normalize"],{normalize:!0})))&&j["$<<"](T.$apply_subs(Xe,ke))),Y(T.attributes["$[]"]("docname")["$nil_or_empty?"]())||Y(D["$&"](["private","private-"+g])["$empty?"]())||(Be=T.$normalize_system_path(""+T.attributes["$[]"]("docname")+"-"+de,le),Y(it=T.$read_asset(Be,G(["normalize"],{normalize:!0})))&&j["$<<"](T.$apply_subs(it,ke))))),Y(T.extensions)&&Y(T["$docinfo_processors?"](g))?(Y(b=j)?b:[]).$concat(_e(T.docinfo_processor_extensions["$[]"](g),"map",[],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=K),at.$process_method()["$[]"](mt)},{$$s:T}).$compact()).$join(ee("LF")):Y(j)?j.$join(ee("LF")):""},-1),Ue(q,"$docinfo_processors?",function(g){var o,m=this;return g==null&&(g="head"),Y(m.docinfo_processor_extensions["$key?"](g))?m.docinfo_processor_extensions["$[]"](g)["$!="](!1):Y(m.extensions)&&Y(m.document.$extensions()["$docinfo_processors?"](g))?(o=[g,m.document.$extensions().$docinfo_processors(g)],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])["$!"]()["$!"]():(o=[g,!1],_e(m.docinfo_processor_extensions,"[]=",o),o[o.length-1])},-1),Ue(q,"$to_s",function(){var g=this,o=K;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(Y(o=g.header)?g.header.$title():o).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),q.$private(),Ue(q,"$apply_attribute_value_subs",function(g){var o,m=this;return Y(ee("AttributeEntryPassMacroRx")["$=~"](g))?(g=(o=E["~"])===K?K:o["$[]"](2),Y((o=E["~"])===K?K:o["$[]"](1))&&(g=m.$apply_subs(g,m.$resolve_pass_subs((o=E["~"])===K?K:o["$[]"](1))))):g=m.$apply_header_subs(g),Y(m.max_attribute_value_size)?m.$limit_bytesize(g,m.max_attribute_value_size):g}),Ue(q,"$limit_bytesize",function(g,o){if(Y(z(g.$bytesize(),o)))for(;!Y((g=g.$byteslice(0,o))["$valid_encoding?"]());)o=Me(o,1);return g}),Ue(q,"$resolve_docinfo_subs",function(){var g=this;return Y(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",K,"docinfo"):["attributes"]}),Ue(q,"$create_converter",function(g,o){var m=this,T=K,S=K,b=K,D=K,j=K;return T=G(["document","htmlsyntax"],{document:m,htmlsyntax:m.attributes["$[]"]("htmlsyntax")}),Y(S=Y(b=(D=m.options)["$[]"]("template_dirs"))?b:D["$[]"]("template_dir"))&&(T["$[]="]("template_dirs",[].concat(tt(S))),T["$[]="]("template_cache",D.$fetch("template_cache",!0)),T["$[]="]("template_engine",D["$[]"]("template_engine")),T["$[]="]("template_engine_options",D["$[]"]("template_engine_options")),T["$[]="]("eruby",D["$[]"]("eruby")),T["$[]="]("safe",m.safe),Y(o)&&T["$[]="]("delegate_backend",o)),Y(j=D["$[]"]("converter"))?M(ee("Converter"),"CustomFactory").$new(We(g,j)).$create(g,T):D.$fetch("converter_factory",ee("Converter")).$create(g,T)}),Ue(q,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(q,"$save_attributes",function(){var g=this,o=K,m=K,T=K,S=K,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K;if(Y((m=g.attributes)["$key?"]("doctitle"))||Ie(o=g.$doctitle())||m["$[]="]("doctitle",o),g.id=Y(T=g.id)?T:m["$[]"]("css-signature"),Y(S=Y(m.$delete("toc2"))?"left":m["$[]"]("toc"))&&(b=Y(D=m.$fetch("toc-placement","macro"))&&Je(D,"auto")?D:m["$[]"]("toc-position"),!(Y(S["$empty?"]())&&Y(b["$nil_or_empty?"]())))){switch(j="left",de="toc2",le=Y(b["$nil_or_empty?"]())?Y(S["$empty?"]())?j:S:b,m["$[]="]("toc",""),m["$[]="]("toc-placement","auto"),le){case"left":case"<":case"&lt;":m["$[]="]("toc-position","left");break;case"right":case">":case"&gt;":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}Y(de)&&(Y(T=m["$[]"]("toc-class"))||m["$[]="]("toc-class",de))}if(Y(ke=m["$[]"]("icons"))&&Ie(m["$key?"]("icontype")))switch(ke){case"":case"font":break;default:m["$[]="]("icons",""),Pe(ke,"image")||m["$[]="]("icontype",ke)}return Y(g.compat_mode=m["$key?"]("compat-mode"))&&Y(m["$key?"]("language"))&&m["$[]="]("source-language",m["$[]"]("language")),Y(g.parent_document)||(Pe(Be=m["$[]"]("basebackend"),"html")?Y(Xe=m["$[]"]("source-highlighter"))&&Ie(m["$[]"](""+Xe+"-unavailable"))&&(Y(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,G(["document"],{document:g})):Y(ht=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=M(ee("SyntaxHighlighter"),"DefaultFactoryProxy").$new(ht).$create(Xe,g.backend,G(["document"],{document:g})):g.syntax_highlighter=ee("SyntaxHighlighter").$create(Xe,g.backend,G(["document"],{document:g}))):Pe(Be,"docbook")&&(Y(g["$attribute_locked?"]("toc"))||Y(g.attributes_modified["$include?"]("toc"))||m["$[]="]("toc",""),Y(g["$attribute_locked?"]("sectnums"))||Y(g.attributes_modified["$include?"]("sectnums"))||m["$[]="]("sectnums","")),g.outfilesuffix=m["$[]"]("outfilesuffix"),_e(ee("FLEXIBLE_ATTRIBUTES"),"each",[],function at(mt){var yt=at.$$s==null?this:at.$$s;return yt.attribute_overrides==null&&(yt.attribute_overrides=K),mt==null&&(mt=K),Y(yt.attribute_overrides["$key?"](mt))&&Y(yt.attribute_overrides["$[]"](mt))?yt.attribute_overrides.$delete(mt):K},{$$s:g})),g.header_attributes=m.$merge()}),Ue(q,"$fill_datetime_attributes",function(g,o){var m,T=this,S=K,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K;return S=Y(M("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?b=M("Time").$at(T.$Integer(M("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():M("Time").$now(),Y(D=g["$[]"]("localdate"))?Y(j=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(D.$index("-"),4)?D.$slice(0,4):K):(D=(m=["localdate",S.$strftime("%F")],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("localyear"))||g["$[]="]("localyear",S.$year().$to_s())),de=Y(j=g["$[]"]("localtime"))?j:(m=["localtime",S.$strftime("%T "+(Pe(S.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+D+" "+de),o=Y(j=Y(le=b)?le:o)?j:S,Y(ke=g["$[]"]("docdate"))?Y(j=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]),Y(j=g["$[]"]("docyear"))||g["$[]="]("docyear",o.$year().$to_s())),Be=Y(j=g["$[]"]("doctime"))?j:(m=["doctime",o.$strftime("%T "+(Pe(o.$utc_offset(),0)?"UTC":"%z"))],_e(g,"[]=",m),m[m.length-1]),Y(j=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+ke+" "+Be),K}),Ue(q,"$update_backend_attributes",function(g,o){var m,T,S=this,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K;return o==null&&(o=K),Y(o)||Je(g,S.backend)?(b=S.backend,D=(j=S.attributes)["$[]"]("basebackend"),de=S.doctype,Y(g["$include?"](":"))&&(T=g.$partition(":"),m=C(T),le=m[0]==null?K:m[0],m[1]==null||m[1],g=m[2]==null?K:m[2]),Y(g["$start_with?"]("xhtml"))?(j["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):Y(g["$start_with?"]("html"))&&(Y(ke=j["$[]"]("htmlsyntax"))||j["$[]="]("htmlsyntax","html")),g=Y(ke=ee("BACKEND_ALIASES")["$[]"](g))?ke:g,Y(le)&&(m=[le,g],g=m[0],Be=m[1]),Y(de)?(Y(b)&&(j.$delete("backend-"+b),j.$delete("backend-"+b+"-doctype-"+de)),j["$[]="]("backend-"+g+"-doctype-"+de,""),j["$[]="]("doctype-"+de,"")):Y(b)&&j.$delete("backend-"+b),j["$[]="]("backend-"+g,""),S.backend=(m=["backend",g],_e(j,"[]=",m),m[m.length-1]),dt(M(ee("Converter"),"BackendTraits"),Xe=S.$create_converter(g,Be))?(it=Xe.$basebackend(),ht=Xe.$filetype(),Y(at=Xe.$htmlsyntax())&&j["$[]="]("htmlsyntax",at),Y(o)?Y(ke=j["$[]"]("outfilesuffix"))||j["$[]="]("outfilesuffix",Xe.$outfilesuffix()):Y(S["$attribute_locked?"]("outfilesuffix"))||j["$[]="]("outfilesuffix",Xe.$outfilesuffix())):Y(Xe)?(mt=ee("Converter").$derive_backend_traits(g),it=mt["$[]"]("basebackend"),ht=mt["$[]"]("filetype"),Y(o)?Y(ke=j["$[]"]("outfilesuffix"))||j["$[]="]("outfilesuffix",mt["$[]"]("outfilesuffix")):Y(S["$attribute_locked?"]("outfilesuffix"))||j["$[]="]("outfilesuffix",mt["$[]"]("outfilesuffix"))):S.$raise(M("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),S.converter=Xe,Y(yt=j["$[]"]("filetype"))&&j.$delete("filetype-"+yt),j["$[]="]("filetype",ht),j["$[]="]("filetype-"+ht,""),Y(xt=ee("DEFAULT_PAGE_WIDTHS")["$[]"](it))?j["$[]="]("pagewidth",xt):j.$delete("pagewidth"),Je(it,D)&&(Y(de)?(Y(D)&&(j.$delete("basebackend-"+D),j.$delete("basebackend-"+D+"-doctype-"+de)),j["$[]="]("basebackend-"+it+"-doctype-"+de,"")):Y(D)&&j.$delete("basebackend-"+D),j["$[]="]("basebackend-"+it,""),j["$[]="]("basebackend",it)),g):K},-2),Ue(q,"$update_doctype_attributes",function(g){var o,m=this,T=K,S=K,b=K,D=K;return Y(g)&&Je(g,m.doctype)?(o=[m.backend,(T=m.attributes)["$[]"]("basebackend"),m.doctype],S=o[0],b=o[1],D=o[2],Y(D)?(T.$delete("doctype-"+D),Y(S)&&(T.$delete("backend-"+S+"-doctype-"+D),T["$[]="]("backend-"+S+"-doctype-"+g,"")),Y(b)&&(T.$delete("basebackend-"+b+"-doctype-"+D),T["$[]="]("basebackend-"+b+"-doctype-"+g,""))):(Y(S)&&T["$[]="]("backend-"+S+"-doctype-"+g,""),Y(b)&&T["$[]="]("basebackend-"+b+"-doctype-"+g,"")),T["$[]="]("doctype-"+g,""),m.doctype=(o=["doctype",g],_e(T,"[]=",o),o[o.length-1])):K})}(Te[0],oe("AbstractBlock"),Te)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,Y=a.def,Ue=a.return_val,G=a.alias,Ie=a.truthy,C=[],Oe=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(ze,Ge){var Me=ae(ze,"Asciidoctor"),Pe=[Me].concat(Ge),dt=a.$r(Pe);return function(We,st){var Ye=te(We,st,"Inline"),Je=Ye.$$prototype;return Je.text=Je.type=Oe,Ye.$attr_accessor("text"),Ye.$attr_reader("type"),Ye.$attr_accessor("target"),Y(Ye,"$initialize",function $t(z,et,E,tt){$t.$$p;var lt=this;return $t.$$p=null,E==null&&(E=Oe),tt==null&&(tt=V([],{})),_e(lt,y(lt,"initialize",$t,!1,!0),"initialize",[z,et,tt],null),lt.node_name="inline_"+et,lt.text=E,lt.id=tt["$[]"]("id"),lt.type=tt["$[]"]("type"),lt.target=tt["$[]"]("target")},-3),Y(Ye,"$block?",Ue(!1)),Y(Ye,"$inline?",Ue(!0)),Y(Ye,"$convert",function(){var z=this;return z.$converter().$convert(z)}),G(Ye,"render","convert"),Y(Ye,"$alt",function(){var z=this,et=Oe;return Ie(et=z.$attr("alt"))?et:""}),Y(Ye,"$reftext?",function(){var z=this,et=Oe,E=Oe;return Ie(et=z.text)?Ie(E=z.type["$=="]("ref"))?E:z.type["$=="]("bibref"):et}),Y(Ye,"$reftext",function(){var z=this,et=Oe;return Ie(et=z.text)?z.$apply_reftext_subs(et):Oe}),Y(Ye,"$xreftext",function(z){var et=this;return et.$reftext()},-1)}(Pe[0],dt("AbstractNode"))}(C[0],C)},Opal.modules["asciidoctor/list"]=function(a){var ae=a.module,te=a.klass,V=a.alias,_e=a.hash2,y=a.send2,Y=a.find_super,Ue=a.def,G=a.truthy,Ie=a.eqeq,C=[],Oe=a.nil;return a.add_stubs("blocks,blocks?,==,next_list,callouts,convert,class,object_id,inspect,size,items,parent,attr_accessor,level,drop,nil_or_empty?,apply_subs,attr_writer,empty?,===,[],outline?,!,simple?,source,shift,context"),function(ze,Ge){var Me=ae(ze,"Asciidoctor"),Pe=[Me].concat(Ge),dt=a.$r(Pe);return function(We,st){var Ye=te(We,st,"List"),Je=Ye.$$prototype;return Je.context=Je.document=Je.style=Oe,V(Ye,"items","blocks"),V(Ye,"content","blocks"),V(Ye,"items?","blocks?"),Ue(Ye,"$initialize",function $t(z,et,E){var tt=$t.$$p||Oe,lt=this;return $t.$$p=null,E==null&&(E=_e([],{})),y(lt,Y(lt,"initialize",$t,!1,!0),"initialize",[z,et,E],tt)},-3),Ue(Ye,"$outline?",function(){var z=this,et=Oe;return G(et=z.context["$=="]("ulist"))?et:z.context["$=="]("olist")}),Ue(Ye,"$convert",function $t(){var z=$t.$$p||Oe,et=this,E=Oe;return $t.$$p=null,Ie(et.context,"colist")?(E=y(et,Y(et,"convert",$t,!1,!0),"convert",[],z),et.document.$callouts().$next_list(),E):y(et,Y(et,"convert",$t,!1,!0),"convert",[],z)}),V(Ye,"render","convert"),Ue(Ye,"$to_s",function(){var z=this;return"#<"+z.$class()+"@"+z.$object_id()+" {context: "+z.context.$inspect()+", style: "+z.style.$inspect()+", items: "+z.$items().$size()+"}>"})}(Pe[0],dt("AbstractBlock")),function(We,st,Ye){var Je=te(We,st,"ListItem"),$t=[Je].concat(Ye),z=a.$r($t),et=Je.$$prototype;return et.text=et.subs=et.blocks=Oe,V(Je,"list","parent"),Je.$attr_accessor("marker"),Ue(Je,"$initialize",function E(tt,lt){E.$$p;var K=this;return E.$$p=null,lt==null&&(lt=Oe),y(K,Y(K,"initialize",E,!1,!0),"initialize",[tt,"list_item"],null),K.text=lt,K.level=tt.$level(),K.subs=z("NORMAL_SUBS").$drop(0)},-2),Ue(Je,"$text?",function(){var tt=this;return!G(tt.text["$nil_or_empty?"]())}),Ue(Je,"$text",function(){var tt=this,lt=Oe;return G(lt=tt.text)?tt.$apply_subs(tt.text,tt.subs):lt}),Je.$attr_writer("text"),Ue(Je,"$simple?",function(){var tt=this,lt=Oe,K=Oe,M=Oe,He=Oe;return G(lt=tt.blocks["$empty?"]())?lt:G(K=G(M=tt.blocks.$size()["$=="](1))?z("List")["$==="](He=tt.blocks["$[]"](0)):M)?He["$outline?"]():K}),Ue(Je,"$compound?",function(){var tt=this;return tt["$simple?"]()["$!"]()}),Ue(Je,"$fold_first",function(){var tt=this;return tt.text=G(tt.text["$nil_or_empty?"]())?tt.blocks.$shift().$source():""+tt.text+z("LF")+tt.blocks.$shift().$source(),Oe}),Ue(Je,"$to_s",function(){var tt=this,lt=Oe;return"#<"+tt.$class()+"@"+tt.$object_id()+" {list_context: "+tt.$parent().$context().$inspect()+", text: "+tt.text.$inspect()+", blocks: "+(G(lt=tt.blocks)?lt:[]).$size()+"}>"})}(Pe[0],dt("AbstractBlock"),Pe)}(C[0],C)},Opal.modules["asciidoctor/parser"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.send,y=a.truthy,Y=a.hash2,Ue=a.to_ary,G=a.defs,Ie=a.eqeq,C=a.not,Oe=a.gvars,ze=a.neqeq,Ge=a.rb_plus,Me=a.rb_lt,Pe=a.rb_gt,dt=a.to_a,We=a.eqeqeq,st=a.rb_minus,Ye=a.rb_times,Je=a.thrower,$t=[],z=a.nil,et=a.$$$;return a.add_stubs("include,new,proc,start_with?,match?,is_delimited_block?,private_class_method,parse_document_header,[],has_more_lines?,next_section,assign_numeral,<<,blocks,skip_blank_lines,parse_block_metadata_lines,attributes,is_next_line_doctitle?,[]=,finalize_header,nil_or_empty?,title=,sourcemap,cursor,parse_section_title,id=,include?,sub_specialchars,sub_attributes,source_location=,header,attribute_locked?,id,clear,delete,instance_variable_get,parse_header_metadata,==,!,register,process_authors,update,doctype,parse_manpage_header,=~,downcase,error,logger,message_with_context,cursor_at_line,backend,save,is_next_line_section?,initialize_section,join,map,read_lines_until,lstrip,split,title,restore_save,discard_save,header?,empty?,context,!=,attr?,attr,key?,document,+,level,special,sectname,to_i,<,>,warn,next_block,blocks?,style,style=,parent=,content_model,content_model=,lines,subs,size,context=,shift,unwrap_standalone_preamble,source_location,merge,fetch,parse_block_metadata_line,extensions,block_macros?,mark,read_line,terminator,to_s,masq,to_sym,registered_for_block?,debug?,debug,cursor_at_mark,strict_verbatim_paragraphs,unshift_line,markdown_syntax,keys,chr,uniform?,length,end_with?,parse_attributes,attribute_missing,tr,basename,assign_caption,registered_for_block_macro?,config,process_method,replace,parse_callout_list,callouts,===,parse_list,parse_description_list,underline_style_section_titles,is_section_title?,peek_line,atx_section_title?,generate_id,level=,read_paragraph_lines,adjust_indentation!,map!,slice,pop,build_block,apply_subs,chop,catalog_inline_anchors,rekey,index,strip,-,parse_table,each,raise,title?,update_attributes,commit_subs,sub?,catalog_callouts,source,remove_sub,block_terminates_paragraph,to_proc,nil?,parse_blocks,parse_list_item,items,scan,gsub,count,advance,dup,match,callout_ids,next_list,catalog_inline_anchor,marker=,catalog_inline_biblio_anchor,set_option,text=,resolve_ordered_list_marker,read_lines_for_list_item,skip_line_comments,unshift_lines,fold_first,text?,is_sibling_list_item?,concat,find,casecmp,sectname=,special=,numbered=,numbered,lineno,peek_lines,setext_section_title?,abs,cursor_at_prev_line,process_attribute_entries,next_line_empty?,apply_header_subs,rstrip,each_with_index,compact,to_h,squeeze,to_a,parse_style_attribute,process_attribute_entry,skip_comment_lines,store_attribute,sanitize_attribute_name,set_attribute,save_to,delete_attribute,ord,int_to_roman,resolve_list_marker,parse_colspecs,create_columns,has_header_option=,format,starts_with_delimiter?,close_open_cell,parse_cellspec,delimiter,match_delimiter,pre_match,post_match,buffer_has_unclosed_quotes?,skip_past_delimiter,buffer=,buffer,skip_past_escaped_delimiter,keep_cell_open,push_cellspec,close_cell,cell_open?,columns,assign_column_widths,partition_header_footer,upto,partition,shorthand_property_syntax,each_char,yield_buffered_attribute,any?,*,each_byte,%"),function(E,tt){var lt=ae(E,"Asciidoctor"),K=[lt].concat(tt);return function(M,He,we){var Ne=te(M,He,"Parser"),Te=[Ne].concat(we),oe=a.$r(Te);return Ne.$include(oe("Logging")),V(Te[0],"BlockMatchData",oe("Struct").$new("context","masq","tip","terminator")),V(Te[0],"TAB"," "),V(Te[0],"TabIndentRx",/^\t+/),V(Te[0],"StartOfBlockProc",_e(Ne,"proc",[],function ye(Z){var F=ye.$$s==null?this:ye.$$s,q=z,ie=z;return Z==null&&(Z=z),y(q=y(ie=Z["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](Z):ie)?q:F["$is_delimited_block?"](Z)},{$$s:Ne})),V(Te[0],"StartOfListProc",_e(Ne,"proc",[],function(Z){return Z==null&&(Z=z),oe("AnyListRx")["$match?"](Z)})),V(Te[0],"StartOfBlockOrListProc",_e(Ne,"proc",[],function ye(Z){var F=ye.$$s==null?this:ye.$$s,q=z,ie=z,ee=z;return Z==null&&(Z=z),y(q=y(ie=F["$is_delimited_block?"](Z))?ie:y(ee=Z["$start_with?"]("["))?oe("BlockAttributeLineRx")["$match?"](Z):ee)?q:oe("AnyListRx")["$match?"](Z)},{$$s:Ne})),V(Te[0],"NoOp",z),V(Te[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),V(Te[0],"TableCellHorzAlignments",Y(["<",">","^"],{"<":"left",">":"right","^":"center"})),V(Te[0],"TableCellVertAlignments",Y(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),V(Te[0],"TableCellStyles",Y(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ne.$private_class_method("new"),G(Ne,"$parse",function(Z,F,q){var ie,ee,$e=this,U=z,g=z,o=z;if(q==null&&(q=Y([],{})),U=$e.$parse_document_header(Z,F,g=q["$[]"]("header_only")),!y(g))for(;y(Z["$has_more_lines?"]());)ee=$e.$next_section(Z,F,U),ie=Ue(ee),o=ie[0]==null?z:ie[0],U=ie[1]==null?z:ie[1],y(o)&&(F.$assign_numeral(o),F.$blocks()["$<<"](o));return F},-3),G(Ne,"$parse_document_header",function(Z,F,q){var ie,ee,$e,U=this,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z;return q==null&&(q=!1),g=y(Z.$skip_blank_lines())?U.$parse_block_metadata_lines(Z,F):Y([],{}),o=F.$attributes(),y(m=U["$is_next_line_doctitle?"](Z,g,o["$[]"]("leveloffset")))&&y(g["$[]"]("title"))?(o["$[]="]("authorcount",0),F.$finalize_header(g,!1)):(y((T=o["$[]"]("doctitle"))["$nil_or_empty?"]())||F["$title="](S=T),y(m)?(y(F.$sourcemap())&&(b=Z.$cursor()),ee=U.$parse_section_title(Z,F),ie=Ue(ee),$e=[ie[0]==null?z:ie[0]],_e(F,"id=",$e),$e[$e.length-1],ie[1]==null||ie[1],D=ie[2]==null?z:ie[2],ie[3]==null||ie[3],j=ie[4]==null?z:ie[4],y(S)?D=z:(F["$title="](D),y((ie=["doctitle",S=F.$sub_specialchars(D)],_e(o,"[]=",ie),ie[ie.length-1])["$include?"](oe("ATTR_REF_HEAD")))&&o["$[]="]("doctitle",S=F.$sub_attributes(S,Y(["attribute_missing"],{attribute_missing:"skip"})))),y(b)&&F.$header()["$source_location="](b),y(j)||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"),U.$parse_header_metadata(Z,F,z),y(Xe["$include?"]("doctitle"))?y((T=o["$[]"]("doctitle"))["$nil_or_empty?"]())||Ie(T,S)?o["$[]="]("doctitle",S):F["$title="](T):C(D)&&Xe["$<<"]("doctitle"),y(le)&&F.$register("refs",[le,F])):y(it=o["$[]"]("author"))?(ht=U.$process_authors(it,!0,!1),y(o["$[]"]("authorinitials"))&&ht.$delete("authorinitials"),o.$update(ht)):y(it=o["$[]"]("authors"))?(ht=U.$process_authors(it,!0),o.$update(ht)):o["$[]="]("authorcount",0),Ie(F.$doctype(),"manpage")&&U.$parse_manpage_header(Z,F,g,q),F.$finalize_header(g))},-3),G(Ne,"$parse_manpage_header",function(Z,F,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z;return ie==null&&(ie=!1),y(oe("ManpageTitleVolnumRx")["$=~"]((U=F.$attributes())["$[]"]("doctitle")))?(U["$[]="]("manvolnum",g=(ee=Oe["~"])===z?z:ee["$[]"](2)),U["$[]="]("mantitle",(y((o=(ee=Oe["~"])===z?z:ee["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))?F.$sub_attributes(o):o).$downcase())):($e.$logger().$error($e.$message_with_context("non-conforming manpage title",Y(["source_location"],{source_location:Z.$cursor_at_line(1)}))),U["$[]="]("mantitle",y(m=y(T=U["$[]"]("doctitle"))?T:U["$[]"]("docname"))?m:"command"),U["$[]="]("manvolnum",g="1")),y(S=U["$[]"]("manname"))&&y(U["$[]"]("manpurpose"))?(y(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title","Name"),U["$[]="]("mannames",[S]),Ie(F.$backend(),"manpage")&&(U["$[]="]("docname",S),U["$[]="]("outfilesuffix","."+g))):y(ie)||(Z.$skip_blank_lines(),Z.$save(),q.$update($e.$parse_block_metadata_lines(Z,F)),y(b=$e["$is_next_line_section?"](Z,Y([],{})))?Ie(b,1)?(D=$e.$initialize_section(Z,F,Y([],{})),j=_e(Z.$read_lines_until(Y(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=z),Xe.$lstrip()}).$join(" "),y(oe("ManpageNamePurposeRx")["$=~"](j))?(y((S=(ee=Oe["~"])===z?z:ee["$[]"](1))["$include?"](oe("ATTR_REF_HEAD")))&&(S=F.$sub_attributes(S)),y(S["$include?"](","))?S=(de=_e(S.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=z),Xe.$lstrip()}))["$[]"](0):de=[S],y((le=(ee=Oe["~"])===z?z:ee["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))&&(le=F.$sub_attributes(le)),y(m=U["$[]"]("manname-title"))||U["$[]="]("manname-title",D.$title()),y(D.$id())&&U["$[]="]("manname-id",D.$id()),U["$[]="]("manname",S),U["$[]="]("mannames",de),U["$[]="]("manpurpose",le),Ie(F.$backend(),"manpage")&&(U["$[]="]("docname",S),U["$[]="]("outfilesuffix","."+g))):ke="non-conforming name section body"):ke="name section must be at level 1":ke="name section expected",y(ke)?(Z.$restore_save(),$e.$logger().$error($e.$message_with_context(ke,Y(["source_location"],{source_location:Z.$cursor()}))),U["$[]="]("manname",S=y(m=U["$[]"]("docname"))?m:"command"),U["$[]="]("mannames",[S]),Ie(F.$backend(),"manpage")&&(U["$[]="]("docname",S),U["$[]="]("outfilesuffix","."+g))):Z.$discard_save()),z},-4),G(Ne,"$next_section",function(Z,F,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z;for(q==null&&(q=Y([],{})),U=g=o=!1,Ie(F.$context(),"document")&&y(F.$blocks()["$empty?"]())&&(y(m=F["$header?"]())||y(q.$delete("invalid-header"))||C($e["$is_next_line_section?"](Z,q)))?(T=(S=F).$doctype()["$=="]("book"),(y(m)||y(T)&&ze(q["$[]"](1),"abstract"))&&(U=g=oe("Block").$new(F,"preamble",Y(["content_model"],{content_model:"compound"})),y(T)&&y(F["$attr?"]("preface-title"))&&U["$title="](F.$attr("preface-title")),F.$blocks()["$<<"](U)),b=F,D=0,y(F.$attributes()["$key?"]("fragment"))?j=-1:y(T)?(ie=[1,0],j=ie[0],de=ie[1]):j=1):(T=(S=F.$document()).$doctype()["$=="]("book"),b=$e.$initialize_section(Z,F,q),q=y(le=q["$[]"]("title"))?Y(["title"],{title:le}):Y([],{}),j=Ge(D=b.$level(),1),Ie(D,0)?o=T:Ie(D,1)&&y(b.$special())&&(Ie(ke=b.$sectname(),"appendix")||Ie(ke,"preface")||Ie(ke,"abstract")||(j=z))),Z.$skip_blank_lines();y(Z["$has_more_lines?"]());){if($e.$parse_block_metadata_lines(Z,S,q),y(Be=$e["$is_next_line_section?"](Z,q)))if(y(S["$attr?"]("leveloffset"))&&(Be=Ge(Be,S.$attr("leveloffset").$to_i()),y(Me(Be,0))&&(Be=0)),y(Pe(Be,D)))y(j)?Ie(Be,j)||y(de)&&Ie(Be,de)||y(Me(j,0))||(Xe=y(de)?"expected levels "+de+" or "+j:"expected level "+j,$e.$logger().$warn($e.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,Y(["source_location"],{source_location:Z.$cursor()})))):$e.$logger().$error($e.$message_with_context(""+ke+" sections do not support nested sections",Y(["source_location"],{source_location:Z.$cursor()}))),ee=$e.$next_section(Z,b,q),ie=Ue(ee),it=ie[0]==null?z:ie[0],q=ie[1]==null?z:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else if(Ie(Be,0)&&Ie(b,S))y(T)||$e.$logger().$error($e.$message_with_context("level 0 sections can only be used when doctype is book",Y(["source_location"],{source_location:Z.$cursor()}))),ee=$e.$next_section(Z,b,q),ie=Ue(ee),it=ie[0]==null?z:ie[0],q=ie[1]==null?z:ie[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else break;else ht=Z.$cursor(),y(at=$e.$next_block(Z,y(mt=g)?mt:b,q,Y(["parse_metadata"],{parse_metadata:!1})))&&(y(o)&&(C(b["$blocks?"]())?ze(at.$style(),"partintro")?Ie(at.$style(),"open")&&Ie(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=oe("Block").$new(b,"open",Y(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),b.$blocks()["$<<"](g)):Ie(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"](oe("Block").$new(at,"paragraph",Y(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):Ie(b.$blocks().$size(),1)&&(yt=b.$blocks()["$[]"](0),C(g)&&Ie(yt.$content_model(),"compound")?$e.$logger().$error($e.$message_with_context("illegal block content outside of partintro block",Y(["source_location"],{source_location:ht}))):ze(yt.$content_model(),"compound")&&(at["$parent="](g=oe("Block").$new(b,"open",Y(["content_model"],{content_model:"compound"}))),Ie(yt.$style(),(ie=["partintro"],_e(g,"style=",ie),ie[ie.length-1]))&&(yt["$context="]("paragraph"),yt["$style="](z)),b.$blocks().$shift(),g["$<<"](yt),b.$blocks()["$<<"](g)))),(y(mt=g)?mt:b).$blocks()["$<<"](at),q.$clear());if(!y(mt=Z.$skip_blank_lines()))break}if(y(o))y(b["$blocks?"]())&&Ie(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.)",Y(["source_location"],{source_location:Z.$cursor()})));else if(y(U))if(y(U["$blocks?"]()))if(y(T)||y(S.$blocks()["$[]"](1))||C(oe("Compliance").$unwrap_standalone_preamble()))y(S.$sourcemap())&&U["$source_location="](U.$blocks()["$[]"](0).$source_location());else for(S.$blocks().$shift();y(xt=U.$blocks().$shift());)S["$<<"](xt);else S.$blocks().$shift();return[Ie(b,F)?z:b,q.$merge()]},-3),G(Ne,"$next_block",function(Z,F,q,ie){var ee,$e,U=this,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z,vt=z,Tt=z,St=z,Wt=z,Bt=z,er=z,Kt=z,Pt=z,Yt=z,Xt=z,nr=z,Yn=z,tn=z,Jt=z,Ut=z,Zt=z,Cr=z,Ht=z,kr=z,hn=z,Tr=z,Sr=z,xn=z,Fr=z,Kr=z,Ps=z,Us=z,cc=z,Hs=z,$c=z;if(Oe["~"]==null&&(Oe["~"]=z),q==null&&(q=Y([],{})),ie==null&&(ie=Y([],{})),!y(g=Z.$skip_blank_lines()))return z;if(y(o=ie["$[]"]("text_only"))&&y(Pe(g,0))&&(ie.$delete("text_only"),o=z),m=F.$document(),y(ie.$fetch("parse_metadata",!0))){for(;y(U.$parse_block_metadata_line(Z,m,q,ie));)if(Z.$shift(),!y(T=Z.$skip_blank_lines()))return z}if(y(S=m.$extensions())&&(ee=[S["$blocks?"](),S["$block_macros?"]()],b=ee[0],D=ee[1]),Z.$mark(),ee=[Z.$read_line(),m.$attributes(),q["$[]"](1)],j=ee[0],de=ee[1],le=ee[2],ke=Be=Xe=it=z,y(ht=U["$is_delimited_block?"](j,!0))&&(Be=Xe=ht.$context(),it=ht.$terminator(),y(le)?Ie(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(S["$registered_for_block?"](le,Be))?Be=le.$to_sym():(y(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for "+Be+" block: "+le,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),le=Be.$to_s())):le=(ee=["style",Be.$to_s()],_e(q,"[]=",ee),ee[ee.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(),Z.$unshift_line(j);break}if(y(o))at=j["$start_with?"](" ",oe("TAB"));else if(mt=oe("Compliance").$markdown_syntax(),y(j["$start_with?"](" "))){if(ee=[!0," "],at=ee[0],yt=ee[1],y(mt)&&y(_e(j.$lstrip(),"start_with?",dt(oe("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&y(oe("MarkdownThematicBreakRx")["$match?"](j))){ke=oe("Block").$new(F,"thematic_break",Y(["content_model"],{content_model:"empty"}));break}}else if(y(j["$start_with?"](oe("TAB"))))ee=[!0,oe("TAB")],at=ee[0],yt=ee[1];else if(ee=[!1,j.$chr()],at=ee[0],yt=ee[1],xt=y(mt)?oe("HYBRID_LAYOUT_BREAK_CHARS"):oe("LAYOUT_BREAK_CHARS"),y(xt["$key?"](yt))&&y(y(mt)?oe("ExtLayoutBreakRx")["$match?"](j):y(T=U["$uniform?"](j,yt,vt=j.$length()))?Pe(vt,2):T)){ke=oe("Block").$new(F,xt["$[]"](yt),Y(["content_model"],{content_model:"empty"}));break}else if(y(j["$end_with?"]("]"))&&y(j["$include?"]("::"))){if((Ie(yt,"i")||y(j["$start_with?"]("video:","audio:")))&&y(oe("BlockMediaMacroRx")["$=~"](j))){if(ee=[(($e=Oe["~"])===z?z:$e["$[]"](1)).$to_sym(),($e=Oe["~"])===z?z:$e["$[]"](2),($e=Oe["~"])===z?z:$e["$[]"](3)],Tt=ee[0],St=ee[1],Wt=ee[2],ke=oe("Block").$new(F,Tt,Y(["content_model"],{content_model:"empty"})),y(Wt)){switch(Tt){case"video":Bt=["poster","width","height"];break;case"audio":Bt=[];break;default:Bt=["alt","width","height"]}ke.$parse_attributes(Wt,Bt,Y(["sub_input","into"],{sub_input:!0,into:q}))}if(y(q["$key?"]("style"))&&q.$delete("style"),y(St["$include?"](oe("ATTR_REF_HEAD")))){if(y((er=ke.$sub_attributes(St))["$empty?"]())&&Ie(y(T=de["$[]"]("attribute-missing"))?T:oe("Compliance").$attribute_missing(),"drop-line")&&y(ke.$sub_attributes(Ge(St," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),z;St=er}Ie(Tt,"image")&&(m.$register("images",St),q["$[]="]("imagesdir",de["$[]"]("imagesdir")),y(T=q["$[]"]("alt"))||q["$[]="]("alt",y(Kt=le)?Kt:(ee=["default-alt",oe("Helpers").$basename(St,!0).$tr("_-"," ")],_e(q,"[]=",ee),ee[ee.length-1])),y((Pt=q.$delete("scaledwidth"))["$nil_or_empty?"]())||q["$[]="]("scaledwidth",y(oe("TrailingDigitsRx")["$match?"](Pt))?""+Pt+"%":Pt),y(q["$[]"]("title"))&&(ke["$title="](Yt=q.$delete("title")),ke.$assign_caption(q.$delete("caption"),"figure"))),q["$[]="]("target",St);break}else if(Ie(yt,"t")&&y(j["$start_with?"]("toc:"))&&y(oe("BlockTocMacroRx")["$=~"](j))){ke=oe("Block").$new(F,"toc",Y(["content_model"],{content_model:"empty"})),y((ee=Oe["~"])===z?z:ee["$[]"](1))&&ke.$parse_attributes((ee=Oe["~"])===z?z:ee["$[]"](1),[],Y(["into"],{into:q}));break}else if(y(y(D)?y(T=y(Kt=oe("CustomBlockMacroRx")["$=~"](j))?Xt=S["$registered_for_block_macro?"]((ee=Oe["~"])===z?z:ee["$[]"](1)):Kt)?T:nr=U.$logger()["$debug?"]():y(T=U.$logger()["$debug?"]())?nr=oe("CustomBlockMacroRx")["$=~"](j):T))if(y(nr))U.$logger().$debug(U.$message_with_context("unknown name for block macro: "+((ee=Oe["~"])===z?z:ee["$[]"](1)),Y(["source_location"],{source_location:Z.$cursor_at_mark()})));else{if(Yn=(ee=Oe["~"])===z?z:ee["$[]"](3),y((St=(ee=Oe["~"])===z?z:ee["$[]"](2))["$include?"](oe("ATTR_REF_HEAD")))){if(y((er=F.$sub_attributes(St))["$empty?"]())&&Ie(y(T=de["$[]"]("attribute-missing"))?T:oe("Compliance").$attribute_missing(),"drop-line")&&y(F.$sub_attributes(Ge(St," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return q.$clear(),z;St=er}if(Ie((tn=Xt.$config())["$[]"]("content_model"),"attributes")?y(Yn)&&m.$parse_attributes(Yn,y(T=y(Kt=tn["$[]"]("positional_attrs"))?Kt:tn["$[]"]("pos_attrs"))?T:[],Y(["sub_input","into"],{sub_input:!0,into:q})):q["$[]="]("text",y(T=Yn)?T:""),y(Jt=tn["$[]"]("default_attrs"))&&_e(q,"update",[Jt],function(rn,_s){return _s==null&&(_s=z),_s}),y(ke=Xt.$process_method()["$[]"](F,St,q))&&ze(ke,F)){q.$replace(ke.$attributes());break}else return q.$clear(),z}}if(C(at)&&Ie(yt=y(T=yt)?T:j.$chr(),"<")&&y(oe("CalloutListRx")["$=~"](j))){Z.$unshift_line(j),ke=U.$parse_callout_list(Z,Oe["~"],F,m.$callouts()),q["$[]="]("style","arabic");break}else if(y(oe("UnorderedListRx")["$match?"](j))){Z.$unshift_line(j),C(le)&&We(oe("Section"),F)&&Ie(F.$sectname(),"bibliography")&&q["$[]="]("style",le="bibliography"),ke=U.$parse_list(Z,"ulist",F,le);break}else if(y(oe("OrderedListRx")["$match?"](j))){Z.$unshift_line(j),ke=U.$parse_list(Z,"olist",F,le),y(ke.$style())&&q["$[]="]("style",ke.$style());break}else if((y(j["$include?"]("::"))||y(j["$include?"](";;")))&&y(oe("DescriptionListRx")["$=~"](j))){Z.$unshift_line(j),ke=U.$parse_description_list(Z,Oe["~"],F);break}else if((Ie(le,"float")||Ie(le,"discrete"))&&y(y(oe("Compliance").$underline_style_section_titles())?U["$is_section_title?"](j,Z.$peek_line()):y(T=at["$!"]())?U["$atx_section_title?"](j):T)){Z.$unshift_line(j),$e=U.$parse_section_title(Z,m,q["$[]"]("id")),ee=Ue($e),Ut=ee[0]==null?z:ee[0],Zt=ee[1]==null?z:ee[1],Yt=ee[2]==null?z:ee[2],Cr=ee[3]==null?z:ee[3],y(Zt)&&q["$[]="]("reftext",Zt),ke=oe("Block").$new(F,"floating_title",Y(["content_model"],{content_model:"empty"})),ke["$title="](Yt),q.$delete("title"),ke["$id="](y(T=Ut)?T:y(de["$key?"]("sectids"))?oe("Section").$generate_id(ke.$title(),m):z),ke["$level="](Cr);break}else if(y(le)&&ze(le,"normal"))if(y(oe("PARAGRAPH_STYLES")["$include?"](le))){Be=le.$to_sym(),Xe="paragraph",Z.$unshift_line(j);break}else if(y(oe("ADMONITION_STYLES")["$include?"](le))){Be="admonition",Xe="paragraph",Z.$unshift_line(j);break}else if(y(b)&&y(S["$registered_for_block?"](le,"paragraph"))){Be=le.$to_sym(),Xe="paragraph",Z.$unshift_line(j);break}else y(U.$logger()["$debug?"]())&&U.$logger().$debug(U.$message_with_context("unknown style for paragraph: "+le,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),le=z;if(Z.$unshift_line(j),y(at)&&C(le))Ht=U.$read_paragraph_lines(Z,kr=Ie(g,0)?ie["$[]"]("list_type"):z,Y(["skip_line_comments"],{skip_line_comments:o})),U["$adjust_indentation!"](Ht),y(o)||Ie(kr,"dlist")?ke=oe("Block").$new(F,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})):ke=oe("Block").$new(F,"literal",Y(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:q}));else{if(Ht=U.$read_paragraph_lines(Z,y(T=g["$=="](0))?ie["$[]"]("list_type"):T,Y(["skip_line_comments"],{skip_line_comments:!0})),y(o))y(at)&&Ie(le,"normal")&&U["$adjust_indentation!"](Ht),ke=oe("Block").$new(F,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(y(oe("ADMONITION_STYLE_HEADS")["$include?"](yt))&&y(j["$include?"](":"))&&y(oe("AdmonitionParagraphRx")["$=~"](j)))Ht["$[]="](0,(ee=Oe["~"])===z?z:ee.$post_match()),q["$[]="]("name",hn=(ee=["style",($e=Oe["~"])===z?z:$e["$[]"](1)],_e(q,"[]=",ee),ee[ee.length-1]).$downcase()),q["$[]="]("textlabel",y(T=q.$delete("caption"))?T:de["$[]"](""+hn+"-caption")),ke=oe("Block").$new(F,"admonition",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));else if(y(mt)&&Ie(yt,">")&&y(j["$start_with?"]("> "))){if(_e(Ht,"map!",[],function(rn){return rn==null&&(rn=z),Ie(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=U.$build_block("quote","compound",!1,F,oe("Reader").$new(Ht),q),y(Tr)&&($e=ke.$apply_subs(Tr).$split(", ",2),ee=Ue($e),Sr=ee[0]==null?z:ee[0],xn=ee[1]==null?z:ee[1],y(Sr)&&q["$[]="]("attribution",Sr),y(xn)&&q["$[]="]("citetitle",xn))}else if(Ie(yt,'"')&&y(Pe(Ht.$size(),1))&&y(Ht["$[]"](-1)["$start_with?"]("-- "))&&y(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,j.$slice(1,j.$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",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q})),$e=ke.$apply_subs(Tr).$split(", ",2),ee=Ue($e),Sr=ee[0]==null?z:ee[0],xn=ee[1]==null?z:ee[1],y(Sr)&&q["$[]="]("attribution",Sr),y(xn)&&q["$[]="]("citetitle",xn)}else y(at)&&Ie(le,"normal")&&U["$adjust_indentation!"](Ht),ke=oe("Block").$new(F,"paragraph",Y(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:q}));U.$catalog_inline_anchors(Ht.$join(oe("LF")),ke,m,Z)}break}if(!y(ke))switch(Be){case"listing":case"source":(Ie(Be,"source")||C(q["$[]"](1))&&y(Fr=y(Kt=q["$[]"](2))?Kt:de["$[]"]("source-language")))&&(y(Fr)?(q["$[]="]("style","source"),q["$[]="]("language",Fr),oe("AttributeList").$rekey(q,[z,z,"linenums"])):(oe("AttributeList").$rekey(q,[z,"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=U.$build_block("listing","verbatim",it,F,Z,q);break;case"fenced_code":q["$[]="]("style","source"),y(Pe(vt=j.$length(),3))&&(y(Kr=(Fr=j.$slice(3,vt)).$index(","))?y(Pe(Kr,0))?(Fr=Fr.$slice(0,Kr).$strip(),y(Me(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=U.$build_block("listing","verbatim",it,F,Z,q);break;case"table":Ps=Z.$cursor(),Us=oe("Reader").$new(Z.$read_lines_until(Y(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Ps),y(it["$start_with?"]("|","!"))||y(Kt=q["$[]"]("format"))||q["$[]="]("format",y(it["$start_with?"](","))?"csv":"dsv"),ke=U.$parse_table(Us,F,q);break;case"sidebar":ke=U.$build_block(Be,"compound",it,F,Z,q);break;case"admonition":q["$[]="]("name",hn=le.$downcase()),q["$[]="]("textlabel",y(Kt=q.$delete("caption"))?Kt:de["$[]"](""+hn+"-caption")),ke=U.$build_block(Be,"compound",it,F,Z,q);break;case"open":case"abstract":case"partintro":ke=U.$build_block("open","compound",it,F,Z,q);break;case"literal":ke=U.$build_block(Be,"verbatim",it,F,Z,q);break;case"example":y(q["$[]"]("collapsible-option"))&&q["$[]="]("caption",""),ke=U.$build_block(Be,"compound",it,F,Z,q);break;case"quote":case"verse":oe("AttributeList").$rekey(q,[z,"attribution","citetitle"]),ke=U.$build_block(Be,Ie(Be,"verse")?"verbatim":"compound",it,F,Z,q);break;case"stem":case"latexmath":case"asciimath":Ie(Be,"stem")&&q["$[]="]("style",oe("STEM_TYPE_ALIASES")["$[]"](y(Kt=q["$[]"](2))?Kt:de["$[]"]("stem"))),ke=U.$build_block("stem","raw",it,F,Z,q);break;case"pass":ke=U.$build_block(Be,"raw",it,F,Z,q);break;case"comment":return U.$build_block(Be,"skip",it,F,Z,q),q.$clear(),z;default:if(y(b)&&y(Xt=S["$registered_for_block?"](Be,Xe))){if(Ie(cc=(tn=Xt.$config())["$[]"]("content_model"),"skip")||(y((Hs=y(Kt=tn["$[]"]("positional_attrs"))?Kt:tn["$[]"]("pos_attrs"))["$nil_or_empty?"]())||oe("AttributeList").$rekey(q,Ge([z],Hs)),y(Jt=tn["$[]"]("default_attrs"))&&_e(Jt,"each",[],function(rn,_s){var Jl;return rn==null&&(rn=z),_s==null&&(_s=z),y(Kt=q["$[]"](rn))?Kt:(Jl=[rn,_s],_e(q,"[]=",Jl),Jl[Jl.length-1])}),q["$[]="]("cloaked-context",Xe)),!y(ke=U.$build_block(Be,cc,it,F,Z,q,Y(["extension"],{extension:Xt}))))return q.$clear(),z}else U.$raise("Unsupported block type "+Be+" at "+Z.$cursor())}return y(m.$sourcemap())&&ke["$source_location="](Z.$cursor_at_mark()),y(q["$[]"]("title"))&&(ke["$title="](Yt=q.$delete("title")),y(oe("CAPTION_ATTRIBUTE_NAMES")["$[]"](ke.$context()))&&ke.$assign_caption(q.$delete("caption"))),ke["$style="](q["$[]"]("style")),y($c=y(T=ke.$id())?T:(ee=[q["$[]"]("id")],_e(ke,"id=",ee),ee[ee.length-1]))&&(y(y(Yt)?Yt["$include?"](oe("ATTR_REF_HEAD")):ke["$title?"]())&&ke.$title(),y(m.$register("refs",[$c,ke]))||U.$logger().$warn(U.$message_with_context("id assigned to block already in use: "+$c,Y(["source_location"],{source_location:Z.$cursor_at_mark()})))),y(q["$empty?"]())||ke.$update_attributes(q),ke.$commit_subs(),y(ke["$sub?"]("callouts"))&&(y(U.$catalog_callouts(ke.$source(),m))||ke.$remove_sub("callouts")),ke},-3),G(Ne,"$read_paragraph_lines",function(Z,F,q){var ie=z;return q==null&&(q=Y([],{})),q["$[]="]("break_on_blank_lines",!0),q["$[]="]("break_on_list_continuation",!0),q["$[]="]("preserve_last_line",!0),ie=y(F)?y(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockOrListProc"):oe("StartOfListProc"):y(oe("Compliance").$block_terminates_paragraph())?oe("StartOfBlockProc"):oe("NoOp"),_e(Z,"read_lines_until",[q],ie.$to_proc())},-3),G(Ne,"$is_delimited_block?",function(Z,F){var q,ie,ee=this,$e=z,U=z,g=z,o=z,m=z;if(F==null&&(F=z),!(y(Pe($e=Z.$length(),1))&&y(oe("DELIMITED_BLOCK_HEADS")["$[]"](Z.$slice(0,2)))))return z;if(Ie($e,2))U=Z,g=2;else if(y(Me($e,5))?(U=Z,g=$e):U=Z.$slice(0,g=4),y(oe("Compliance").$markdown_syntax())&&y(U["$start_with?"]("`"))){if(Ie(g,4)){if(Ie(U,"````")||ze(U=U.$chop(),"```"))return z;Z=U,$e=g=3}else if(ze(U,"```"))return z}else if(Ie(g,3))return z;return ie=oe("DELIMITED_BLOCKS")["$[]"](U),q=Ue(ie),o=q[0]==null?z:q[0],m=q[1]==null?z:q[1],y(o)&&(Ie($e,g)||y(ee["$uniform?"](Z.$slice(1,$e),oe("DELIMITED_BLOCK_TAILS")["$[]"](U),st($e,1))))?y(F)?oe("BlockMatchData").$new(o,m,U,Z):!0:z},-2),G(Ne,"$build_block",function(Z,F,q,ie,ee,$e,U){var g,o=this,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z;switch(U==null&&(U=Y([],{})),F){case"skip":g=[!0,"simple"],m=g[0],T=g[1];break;case"raw":g=[!1,"simple"],m=g[0],T=g[1];break;default:g=[!1,F],m=g[0],T=g[1]}switch(y(q["$nil?"]())?(Ie(T,"verbatim")?S=ee.$read_lines_until(Y(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(Ie(F,"compound")&&(F="simple"),S=o.$read_paragraph_lines(ee,!1,Y(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),b=z):ze(T,"compound")?(S=ee.$read_lines_until(Y(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Z,cursor:"at_mark"})),b=z):Ie(q,!1)?(S=z,b=ee):(S=z,D=ee.$cursor(),b=oe("Reader").$new(ee.$read_lines_until(Y(["terminator","skip_processing","context","cursor"],{terminator:q,skip_processing:m,context:Z,cursor:"at_mark"})),D)),F){case"verbatim":j=(y(de=$e["$[]"]("tabsize"))?de:ie.$document().$attributes()["$[]"]("tabsize")).$to_i(),y(le=$e["$[]"]("indent"))?o["$adjust_indentation!"](S,le.$to_i(),j):y(Pe(j,0))&&o["$adjust_indentation!"](S,-1,j);break;case"skip":return z}if(y(ke=U["$[]"]("extension")))if($e.$delete("style"),y(Be=ke.$process_method()["$[]"](ie,y(Xe=b)?Xe:oe("Reader").$new(S),$e.$merge()))&&ze(Be,ie))$e.$replace(Be.$attributes()),Ie(Be.$content_model(),"compound")&&We(oe("Block"),Be)&&C((S=Be.$lines())["$empty?"]())&&(F="compound",b=oe("Reader").$new(S));else return z;else Be=oe("Block").$new(ie,Z,Y(["content_model","source","attributes"],{content_model:F,source:S,attributes:$e}));return Ie(F,"compound")&&o.$parse_blocks(b,Be),Be},-7),G(Ne,"$parse_blocks",function(Z,F,q){var ie=this,ee=z,$e=z,U=z;if(q==null&&(q=z),y(q))for(;y(y(ee=y($e=U=ie.$next_block(Z,F,q.$merge()))?F.$blocks()["$<<"](U):$e)?ee:Z["$has_more_lines?"]()););else for(;y(y(ee=y($e=U=ie.$next_block(Z,F))?F.$blocks()["$<<"](U):$e)?ee:Z["$has_more_lines?"]()););return z},-3),G(Ne,"$parse_list",function(Z,F,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z;for(Oe["~"]==null&&(Oe["~"]=z),U=oe("List").$new(q,F),g=oe("ListRxMap")["$[]"](F);y(y(o=Z["$has_more_lines?"]())?g["$=~"](Z.$peek_line()):o)&&(y(m=$e.$parse_list_item(Z,U,Oe["~"],(ee=Oe["~"])===z?z:ee["$[]"](1),ie))&&U.$items()["$<<"](m),!!y(o=Z.$skip_blank_lines())););return U}),G(Ne,"$catalog_callouts",function(Z,F){var q=z,ie=z;return q=!1,ie=0,y(Z["$include?"]("<"))&&_e(Z,"scan",[oe("CalloutScanRx")],function(){var $e;return y((($e=Oe["~"])===z?z:$e["$[]"](0))["$start_with?"]("\\"))||F.$callouts().$register(Ie(($e=Oe["~"])===z?z:$e["$[]"](2),".")?(ie=Ge(ie,1)).$to_s():($e=Oe["~"])===z?z:$e["$[]"](2)),q=!0}),q}),G(Ne,"$catalog_inline_anchor",function(Z,F,q,ie,ee){var $e=this;return ee==null&&(ee=q.$document()),y(F)&&y(F["$include?"](oe("ATTR_REF_HEAD")))&&(F=ee.$sub_attributes(F)),y(ee.$register("refs",[Z,oe("Inline").$new(q,"anchor",F,Y(["type","id"],{type:"ref",id:Z}))]))||(We(oe("Reader"),ie)&&(ie=ie.$cursor()),$e.$logger().$warn($e.$message_with_context("id assigned to anchor already in use: "+Z,Y(["source_location"],{source_location:ie})))),z},-5),G(Ne,"$catalog_inline_anchors",function(Z,F,q,ie){var ee=this;return(y(Z["$include?"]("[["))||y(Z["$include?"]("or:")))&&_e(Z,"scan",[oe("InlineAnchorScanRx")],function $e(){var U,g=$e.$$s==null?this:$e.$$s,o=z,m=z,T=z,S=z;if(y(o=(U=Oe["~"])===z?z:U["$[]"](1))){if(y(m=(U=Oe["~"])===z?z:U["$[]"](2))&&y(m["$include?"](oe("ATTR_REF_HEAD")))&&y((m=q.$sub_attributes(m))["$empty?"]()))return z}else o=(U=Oe["~"])===z?z:U["$[]"](3),y(m=(U=Oe["~"])===z?z:U["$[]"](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=z));return y(q.$register("refs",[o,oe("Inline").$new(F,"anchor",m,Y(["type","id"],{type:"ref",id:o}))]))?z:(T=ie.$cursor_at_mark(),y(Pe(S=Ge(((U=Oe["~"])===z?z:U.$pre_match()).$count(oe("LF")),y(((U=Oe["~"])===z?z:U["$[]"](0))["$start_with?"](oe("LF")))?1:0),0))&&(T=T.$dup()).$advance(S),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+o,Y(["source_location"],{source_location:T}))))},{$$s:ee}),z}),G(Ne,"$catalog_inline_biblio_anchor",function(Z,F,q,ie){var ee=this,$e=z;return y(q.$document().$register("refs",[Z,oe("Inline").$new(q,"anchor",y($e=F)?"["+F+"]":$e,Y(["type","id"],{type:"bibref",id:Z}))]))||ee.$logger().$warn(ee.$message_with_context("id assigned to bibliography anchor already in use: "+Z,Y(["source_location"],{source_location:ie.$cursor()}))),z}),G(Ne,"$parse_description_list",function(Z,F,q){var ie=this,ee=z,$e=z,U=z,g=z,o=z;for(Oe["~"]==null&&(Oe["~"]=z),ee=oe("List").$new(q,"dlist"),$e=oe("DescriptionListSiblingRx")["$[]"](F["$[]"](2)),ee.$items()["$<<"](U=ie.$parse_list_item(Z,ee,F,$e));y(y(g=Z["$has_more_lines?"]())?$e["$=~"](Z.$peek_line()):g);)o=ie.$parse_list_item(Z,ee,Oe["~"],$e),y(U["$[]"](1))?ee.$items()["$<<"](U=o):(U["$[]"](0)["$<<"](o["$[]"](0)["$[]"](0)),U["$[]="](1,o["$[]"](1)));return ee}),G(Ne,"$parse_callout_list",function(Z,F,q,ie){var ee=this,$e=z,U=z,g=z,o=z,m=z,T=z,S=z,b=z;for($e=oe("List").$new(q,"colist"),U=1,g=0;y(y(o=F)?o:y(m=F=oe("CalloutListRx").$match(Z.$peek_line()))?Z.$mark():m);)Ie(T=F["$[]"](1),".")&&(T=(g=Ge(g,1)).$to_s()),Ie(T,U.$to_s())||ee.$logger().$warn(ee.$message_with_context("callout list item index: expected "+U+", got "+T,Y(["source_location"],{source_location:Z.$cursor_at_mark()}))),y(S=ee.$parse_list_item(Z,$e,F,"<1>"))&&($e.$items()["$<<"](S),y((b=ie.$callout_ids($e.$items().$size()))["$empty?"]())?ee.$logger().$warn(ee.$message_with_context("no callout found for <"+$e.$items().$size()+">",Y(["source_location"],{source_location:Z.$cursor_at_mark()}))):S.$attributes()["$[]="]("coids",b)),U=Ge(U,1),F=z;return ie.$next_list(),$e}),G(Ne,"$parse_list_item",function(Z,F,q,ie,ee){var $e,U,g=this,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z,xt=z,vt=z,Tt=z;if(ee==null&&(ee=z),Ie(o=F.$context(),"dlist"))m=!0,T=oe("ListItem").$new(F,S=q["$[]"](1)),y(S["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](S))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),y(b=($e=Oe["~"])===z?z:$e["$[]"](2))?b:(($e=Oe["~"])===z?z:$e.$post_match()).$lstrip(),T,Z),y(D=q["$[]"](3))&&(j=!0),de=oe("ListItem").$new(F,D),y(F.$document().$sourcemap())&&(T["$source_location="](Z.$cursor()),y(j)?de["$source_location="](T.$source_location()):le=!0);else switch(j=!0,de=oe("ListItem").$new(F,D=q["$[]"](2)),y(F.$document().$sourcemap())&&de["$source_location="](Z.$cursor()),o){case"ulist":de["$marker="](ie),y(D["$start_with?"]("["))&&(y(ee)&&Ie(ee,"bibliography")?y(oe("InlineBiblioAnchorRx")["$=~"](D))&&g.$catalog_inline_biblio_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z):y(D["$start_with?"]("[["))?y(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z):y(D["$start_with?"]("[ ] ","[x] ","[*] "))&&(F.$set_option("checklist"),de.$attributes()["$[]="]("checkbox",""),y(D["$start_with?"]("[ "))||de.$attributes()["$[]="]("checked",""),de["$text="](D.$slice(4,D.$length()))));break;case"olist":U=g.$resolve_ordered_list_marker(ie,ke=F.$items().$size(),!0,Z),$e=Ue(U),ie=$e[0]==null?z:$e[0],Be=$e[1]==null?z:$e[1],de["$marker="](ie),Ie(ke,0)&&C(ee)&&F["$style="](y(Xe=Be)?Xe:(y(it=oe("ORDERED_LIST_STYLES")["$[]"](st(ie.$length(),1)))?it:"arabic").$to_s()),y(D["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z);break;default:de["$marker="](ie),y(D["$start_with?"]("[["))&&y(oe("LeadingInlineAnchorRx")["$=~"](D))&&g.$catalog_inline_anchor(($e=Oe["~"])===z?z:$e["$[]"](1),($e=Oe["~"])===z?z:$e["$[]"](2),de,Z)}if(Z.$shift(),ht=Z.$cursor(),at=oe("Reader").$new(g.$read_lines_for_list_item(Z,o,ie,j),ht),y(at["$has_more_lines?"]())){for(y(le)&&de["$source_location="](ht),mt=at.$skip_line_comments(),y(yt=at.$peek_line())&&(y(mt["$empty?"]())||at.$unshift_lines(mt),y(yt["$empty?"]())||(xt=!0,y(m)||(j=z))),y(vt=g.$next_block(at,de,Y([],{}),Y(["text_only","list_type"],{text_only:y(j)?z:!0,list_type:o})))&&de.$blocks()["$<<"](vt);y(at["$has_more_lines?"]());)y(vt=g.$next_block(at,de,Y([],{}),Y(["list_type"],{list_type:o})))&&de.$blocks()["$<<"](vt);y(xt)&&y(Tt=de.$blocks()["$[]"](0))&&Ie(Tt.$context(),"paragraph")&&de.$fold_first()}return y(m)?[[T],y(de["$text?"]())||y(de["$blocks?"]())?de:z]:de},-5),G(Ne,"$read_lines_for_list_item",function(Z,F,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z;for(q==null&&(q=z),ie==null&&(ie=!0),U=[],g="inactive",o=!1,m=z,T=F["$=="]("dlist");y(Z["$has_more_lines?"]())&&(S=Z.$read_line(),!y($e["$is_sibling_list_item?"](S,F,q)));){if(b=y(U["$empty?"]())?z:U["$[]"](-1),Ie(b,oe("LIST_CONTINUATION"))&&(Ie(g,"inactive")&&(g="active",ie=!0,y(o)||U["$[]="](-1,"")),Ie(S,oe("LIST_CONTINUATION")))){ze(g,"frozen")&&(g="frozen",U["$<<"](S)),S=z;continue}if(y(D=$e["$is_delimited_block?"](S,!0))){if(!Ie(g,"active"))break;U["$<<"](S),U.$concat(Z.$read_lines_until(Y(["terminator","read_last_line","context"],{terminator:D.$terminator(),read_last_line:!0,context:z}))),g="inactive"}else if(y(T)&&ze(g,"active")&&y(S["$start_with?"]("["))&&y(oe("BlockAttributeLineRx")["$match?"](S))){for(j=[S];y(de=Z.$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))){j["$<<"](Z.$read_line());continue}else y(oe("AnyListRx")["$match?"](de))&&C($e["$is_sibling_list_item?"](de,F,q))?U.$concat(j):le=!0;break}if(y(le)){Z.$unshift_lines(j);break}}else if(Ie(g,"active")&&C(S["$empty?"]()))y(oe("LiteralParagraphRx")["$match?"](S))?(Z.$unshift_line(S),y(T)?U.$concat(_e(Z,"read_lines_until",[Y(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=z),mt["$is_sibling_list_item?"](at,F,q)},{$$s:$e})):U.$concat(Z.$read_lines_until(Y(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),g="inactive"):Ie(ke=S.$chr(),".")&&y(oe("BlockTitleRx")["$match?"](S))||Ie(ke,"[")&&y(oe("BlockAttributeLineRx")["$match?"](S))||Ie(ke,":")&&y(oe("AttributeEntryRx")["$match?"](S))?U["$<<"](S):(y(Be=_e(y(o)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),oe("ListRxMap")["$[]"](at)["$match?"](S)}))&&(o=!0,Ie(Be,"dlist")&&y(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),U["$<<"](S),g="inactive");else if(y(b)&&y(b["$empty?"]())){if(y(S["$empty?"]())&&(!y(S=y(Xe=Z.$skip_blank_lines())?Z.$read_line():Xe)||y($e["$is_sibling_list_item?"](S,F,q))))break;if(Ie(S,oe("LIST_CONTINUATION")))m=U.$size(),U["$<<"](S);else if(y(ie)){if(y($e["$is_sibling_list_item?"](S,F,q)))break;if(y(Be=_e(oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),oe("ListRxMap")["$[]"](at)["$=~"](S)})))U["$<<"](S),o=!0,Ie(Be,"dlist")&&y(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1);else if(y(oe("LiteralParagraphRx")["$match?"](S)))Z.$unshift_line(S),y(T)?U.$concat(_e(Z,"read_lines_until",[Y(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],function ht(at){var mt=ht.$$s==null?this:ht.$$s;return at==null&&(at=z),mt["$is_sibling_list_item?"](at,F,q)},{$$s:$e})):U.$concat(Z.$read_lines_until(Y(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})));else break}else y(o)||U.$pop(),U["$<<"](S),ie=!0}else y(S["$empty?"]())||(ie=!0),y(Be=_e(y(o)?["dlist"]:oe("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=z),oe("ListRxMap")["$[]"](at)["$=~"](S)}))&&(o=!0,Ie(Be,"dlist")&&y(((ee=Oe["~"])===z?z:ee["$[]"](3))["$nil_or_empty?"]())&&(ie=!1)),U["$<<"](S);S=z}for(y(S)&&Z.$unshift_line(S),y(m)&&U["$[]="](m,"");!y(U["$empty?"]());)if(y((it=U["$[]"](-1))["$empty?"]()))U.$pop();else{Ie(it,oe("LIST_CONTINUATION"))&&U.$pop();break}return U},-3),G(Ne,"$initialize_section",function(Z,F,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z;return q==null&&(q=Y([],{})),U=F.$document(),g=(o=U.$doctype())["$=="]("book"),y(U.$sourcemap())&&(m=Z.$cursor()),T=q["$[]"](1),ee=$e.$parse_section_title(Z,U,q["$[]"]("id")),ie=Ue(ee),S=ie[0]==null?z:ie[0],b=ie[1]==null?z:ie[1],D=ie[2]==null?z:ie[2],j=ie[3]==null?z:ie[3],de=ie[4]==null?z:ie[4],y(T)?y(g)&&Ie(T,"abstract")?(ie=["chapter",1],le=ie[0],j=ie[1]):y(T["$start_with?"]("sect"))&&y(oe("SectionLevelStyleRx")["$match?"](T))?le="section":(ie=[T,!0],le=ie[0],ke=ie[1],Ie(j,0)&&(j=1),Be=le["$=="]("appendix")):y(g)?le=Ie(j,0)?"part":y(Pe(j,1))?"section":"chapter":Ie(o,"manpage")&&Ie(D.$casecmp("synopsis"),0)?(ie=["synopsis",!0],le=ie[0],ke=ie[1]):le="section",y(b)&&q["$[]="]("reftext",b),Xe=oe("Section").$new(F,j),ie=[S,D,le,m],ee=[ie[0]],_e(Xe,"id=",ee),ee[ee.length-1],ee=[ie[1]],_e(Xe,"title=",ee),ee[ee.length-1],ee=[ie[2]],_e(Xe,"sectname=",ee),ee[ee.length-1],ee=[ie[3]],_e(Xe,"source_location=",ee),ee[ee.length-1],y(ke)?(Xe["$special="](!0),y(Be)?Xe["$numbered="](!0):Ie(U.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](y(g)&&Ie(j,1)?"chapter":!0)):y(U.$attributes()["$[]"]("sectnums"))&&y(Pe(j,0))?Xe["$numbered="](y(Xe.$special())?y(it=F.$numbered())||it:!0):y(g)&&Ie(j,0)&&y(U.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),y(ht=y(it=Xe.$id())?it:(ie=[y(U.$attributes()["$key?"]("sectids"))?at=oe("Section").$generate_id(Xe.$title(),U):z],_e(Xe,"id=",ie),ie[ie.length-1]))&&(y(at)||C(D["$include?"](oe("ATTR_REF_HEAD")))||Xe.$title(),y(U.$register("refs",[ht,Xe]))||$e.$logger().$warn($e.$message_with_context("id assigned to section already in use: "+ht,Y(["source_location"],{source_location:Z.$cursor_at_line(st(Z.$lineno(),y(de)?1:2))})))),Xe.$update_attributes(q),Z.$skip_blank_lines(),Xe},-3),G(Ne,"$is_next_line_section?",function(Z,F){var q=this,ie=z,ee=z,$e=z;return y(ie=F["$[]"](1))&&(Ie(ie,"discrete")||Ie(ie,"float"))?z:y(oe("Compliance").$underline_style_section_titles())?(ee=Z.$peek_lines(2,y($e=ie)?ie["$=="]("comment"):$e),q["$is_section_title?"](y($e=ee["$[]"](0))?$e:"",ee["$[]"](1))):q["$atx_section_title?"](y($e=Z.$peek_line())?$e:"")}),G(Ne,"$is_next_line_doctitle?",function(Z,F,q){var ie=this,ee=z,$e=z;return y(q)?y(ee=$e=ie["$is_next_line_section?"](Z,F))?Ge($e,q.$to_i())["$=="](0):ee:ie["$is_next_line_section?"](Z,F)["$=="](0)}),G(Ne,"$is_section_title?",function(Z,F){var q=this,ie=z;return F==null&&(F=z),y(ie=q["$atx_section_title?"](Z))?ie:y(F["$nil_or_empty?"]())?z:q["$setext_section_title?"](Z,F)},-2),G(Ne,"$atx_section_title?",function(Z){var F,q=z;return y(y(oe("Compliance").$markdown_syntax())?y(q=Z["$start_with?"]("=","#"))?oe("ExtAtxSectionTitleRx")["$=~"](Z):q:y(q=Z["$start_with?"]("="))?oe("AtxSectionTitleRx")["$=~"](Z):q)?st(((F=Oe["~"])===z?z:F["$[]"](1)).$length(),1):z}),G(Ne,"$setext_section_title?",function(Z,F){var q=this,ie=z,ee=z,$e=z;return y(ee=oe("SETEXT_SECTION_LEVELS")["$[]"]($e=F.$chr()))&&y(q["$uniform?"](F,$e,ie=F.$length()))&&y(oe("SetextSectionTitleRx")["$match?"](Z))&&y(Me(st(Z.$length(),ie).$abs(),2))?ee:z}),G(Ne,"$parse_section_title",function(Z,F,q){var ie,ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z;return q==null&&(q=z),U=z,g=Z.$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(((ee=Oe["~"])===z?z:ee["$[]"](1)).$length(),1),(ee=Oe["~"])===z?z:ee["$[]"](2),!0],m=ie[0],T=ie[1],S=ie[2],y(q)||y(T["$end_with?"]("]]"))&&y(oe("InlineSectionAnchorRx")["$=~"](T))&&C((ie=Oe["~"])===z?z:ie["$[]"](1))&&(ie=[T.$slice(0,st(T.$length(),((ee=Oe["~"])===z?z:ee["$[]"](0)).$length())),(ee=Oe["~"])===z?z:ee["$[]"](2),(ee=Oe["~"])===z?z:ee["$[]"](3)],T=ie[0],q=ie[1],U=ie[2])):y(oe("Compliance").$underline_style_section_titles())&&y(j=Z.$peek_line(!0))&&y(m=oe("SETEXT_SECTION_LEVELS")["$[]"](D=j.$chr()))&&y($e["$uniform?"](j,D,b=j.$length()))&&y(T=y(o=oe("SetextSectionTitleRx")["$=~"](g))?(ie=Oe["~"])===z?z:ie["$[]"](1):o)&&y(Me(st(g.$length(),b).$abs(),2))?(S=!1,y(q)||y(T["$end_with?"]("]]"))&&y(oe("InlineSectionAnchorRx")["$=~"](T))&&C((ie=Oe["~"])===z?z:ie["$[]"](1))&&(ie=[T.$slice(0,st(T.$length(),((ee=Oe["~"])===z?z:ee["$[]"](0)).$length())),(ee=Oe["~"])===z?z:ee["$[]"](2),(ee=Oe["~"])===z?z:ee["$[]"](3)],T=ie[0],q=ie[1],U=ie[2]),Z.$shift()):$e.$raise("Unrecognized section at "+Z.$cursor_at_prev_line()),y(F["$attr?"]("leveloffset"))&&(m=Ge(m,F.$attr("leveloffset").$to_i()),y(Me(m,0))&&(m=0)),[q,U,T,m,S]},-3),G(Ne,"$parse_header_metadata",function(Z,F,q){var ie,ee=this,$e=z,U=z,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z;if(F==null&&(F=z),q==null&&(q=!0),$e=y(U=F)?F.$attributes():U,ee.$process_attribute_entries(Z,F),y(Z["$has_more_lines?"]())&&C(Z["$next_line_empty?"]())?(g=(o=ee.$process_authors(Z.$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 Tt;return xt==null&&(xt=z),vt==null&&(vt=z),y($e["$key?"](xt))?z:(Tt=[xt,F.$apply_header_subs(vt)],_e($e,"[]=",Tt),Tt[Tt.length-1])}),m=$e["$[]"]("author"),T=$e["$[]"]("authorinitials"),S=$e["$[]"]("authors")),o["$[]="]("authorcount",g),ee.$process_attribute_entries(Z,F),y(Z["$has_more_lines?"]())&&C(Z["$next_line_empty?"]())&&(b=Z.$read_line(),y(D=oe("RevisionInfoLineRx").$match(b))?(j=Y([],{}),y(D["$[]"](1))&&j["$[]="]("revnumber",D["$[]"](1).$rstrip()),y((de=D["$[]"](2).$strip())["$empty?"]())||(C(D["$[]"](1))&&y(de["$start_with?"]("v"))?j["$[]="]("revnumber",de.$slice(1,de.$length())):j["$[]="]("revdate",de)),y(D["$[]"](3))&&j["$[]="]("revremark",D["$[]"](3).$rstrip()),y(F)&&C(j["$empty?"]())&&_e(j,"each",[],function(xt,vt){var Tt;return xt==null&&(xt=z),vt==null&&(vt=z),y($e["$key?"](xt))?z:(Tt=[xt,F.$apply_header_subs(vt)],_e($e,"[]=",Tt),Tt[Tt.length-1])})):Z.$unshift_line(b)),ee.$process_attribute_entries(Z,F),Z.$skip_blank_lines()):o=Y([],{}),y(F)){if(y($e["$key?"]("author"))&&ze(le=$e["$[]"]("author"),m))ke=ee.$process_authors(le,!0,!1),ze($e["$[]"]("authorinitials"),T)&&ke.$delete("authorinitials");else if(y($e["$key?"]("authors"))&&ze(le=$e["$[]"]("authors"),S))ke=ee.$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));)Ie(mt=$e["$[]"](it),o["$[]"](it))?(Be["$<<"](z),at=!0):(Be["$<<"](mt),ht=!0),it="author_"+(Xe=Ge(Xe,1));y(ht)?(y(at)&&_e(Be,"each_with_index",[],function(xt,vt){var Tt,St=z;return xt==null&&(xt=z),vt==null&&(vt=z),y(xt)?z:(Tt=[vt,_e([o["$[]"]("firstname_"+(St=Ge(vt,1))),o["$[]"]("middlename_"+St),o["$[]"]("lastname_"+St)].$compact(),"map",[],function(Bt){return Bt==null&&(Bt=z),Bt.$tr(" ","_")}).$join(" ")],_e(Be,"[]=",Tt),Tt[Tt.length-1])}),ke=ee.$process_authors(Be,!0,!1)):ke=Y(["authorcount"],{authorcount:0})}Ie(ke["$[]"]("authorcount"),0)?y(g)?ke=z:$e["$[]="]("authorcount",0):($e.$update(ke),C($e["$key?"]("email"))&&y($e["$key?"]("email_1"))&&$e["$[]="]("email",$e["$[]"]("email_1")))}return y(q)?o.$merge(j.$to_h(),ke.$to_h()):z},-2),G(Ne,"$process_authors",function(Z,F,q){var ie=z,ee=z;return F==null&&(F=!1),q==null&&(q=!0),ie=Y([],{}),ee=0,_e(y(q)&&y(Z["$include?"](";"))?Z.$split(oe("AuthorDelimiterRx")):[].concat(dt(Z)),"each",[],function(U){var g,o=z,m=z,T=z,S=z,b=z,D=z,j=z;return U==null&&(U=z),y(U["$empty?"]())?z:(o=Y([],{}),Ie(ee=Ge(ee,1),1)?_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=z),ke=[le.$to_sym(),le],_e(o,"[]=",ke),ke[ke.length-1]}):_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=z),ke=[le.$to_sym(),""+le+"_"+ee],_e(o,"[]=",ke),ke[ke.length-1]}),y(F)?(y(U["$include?"]("<"))&&(ie["$[]="](o["$[]"]("author"),U.$tr("_"," ")),U=U.$gsub(oe("XmlSanitizeRx"),"")),Ie((m=U.$split(z,3)).$size(),3)&&m["$<<"](m.$pop().$squeeze(" "))):y(T=oe("AuthorInfoLineRx").$match(U))&&(m=T.$to_a()).$shift(),y(m)?(S=(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"),D=m["$[]"](1).$tr("_"," ")),ie["$[]="](o["$[]"]("lastname"),j=m["$[]"](2).$tr("_"," ")),S=Ge(Ge(Ge(Ge(b," "),D)," "),j),ie["$[]="](o["$[]"]("authorinitials"),""+b.$chr()+D.$chr()+j.$chr())):(ie["$[]="](o["$[]"]("lastname"),j=m["$[]"](1).$tr("_"," ")),S=Ge(Ge(b," "),j),ie["$[]="](o["$[]"]("authorinitials"),""+b.$chr()+j.$chr()))),y(ie["$[]"](o["$[]"]("author")))||ie["$[]="](o["$[]"]("author"),S),y(F)||C(m["$[]"](3))||ie["$[]="](o["$[]"]("email"),m["$[]"](3))):(ie["$[]="](o["$[]"]("author"),(g=[o["$[]"]("firstname"),b=U.$squeeze(" ").$strip()],_e(ie,"[]=",g),g[g.length-1])),ie["$[]="](o["$[]"]("authorinitials"),b.$chr())),Ie(ee,1)?(g=["authors",ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]):(Ie(ee,2)&&_e(oe("AuthorKeys"),"each",[],function(le){var ke;return le==null&&(le=z),y(ie["$key?"](le))?(ke=[""+le+"_1",ie["$[]"](le)],_e(ie,"[]=",ke),ke[ke.length-1]):z}),g=["authors",""+ie["$[]"]("authors")+", "+ie["$[]"](o["$[]"]("author"))],_e(ie,"[]=",g),g[g.length-1]))}),ie["$[]="]("authorcount",ee),ie},-2),G(Ne,"$parse_block_metadata_lines",function(Z,F,q,ie){var ee=this;for(q==null&&(q=Y([],{})),ie==null&&(ie=Y([],{}));y(ee.$parse_block_metadata_line(Z,F,q,ie))&&(Z.$shift(),!!y(Z.$skip_blank_lines())););return q},-3),G(Ne,"$parse_block_metadata_line",function(Z,F,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z;if(Oe["~"]==null&&(Oe["~"]=z),ie==null&&(ie=Y([],{})),y(g=Z.$peek_line())&&y(y(ie["$[]"]("text_only"))?g["$start_with?"]("[","/"):U=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",(ee=Oe["~"])===z?z:ee["$[]"](1)),y(o=(ee=Oe["~"])===z?z:ee["$[]"](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((ee=Oe["~"])===z?z:ee["$[]"](1),[],Y(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:q}))["$[]"](1))&&q["$[]="](1,y(T=$e.$parse_style_attribute(q,Z))?T:m),!0}else if(y(U)&&y(g["$start_with?"]("."))){if(y(oe("BlockTitleRx")["$=~"](g)))return q["$[]="]("title",(ee=Oe["~"])===z?z:ee["$[]"](1)),!0}else if(C(U)||y(g["$start_with?"]("/"))){if(y(g["$start_with?"]("//"))){if(Ie(g,"//"))return!0;if(y(U)&&y($e["$uniform?"](g,"/",S=g.$length()))){if(!Ie(S,3))return Z.$read_lines_until(Y(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:g,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!y(g["$start_with?"]("///")))return!0}}else if(y(U)&&y(g["$start_with?"](":"))&&y(oe("AttributeEntryRx")["$=~"](g)))return $e.$process_attribute_entry(Z,F,q,Oe["~"]),!0}return z},-4),G(Ne,"$process_attribute_entries",function(Z,F,q){var ie=this;for(q==null&&(q=z),Z.$skip_comment_lines();y(ie.$process_attribute_entry(Z,F,q));)Z.$shift(),Z.$skip_comment_lines()},-3),G(Ne,"$process_attribute_entry",function(Z,F,q,ie){var ee,$e=this,U=z,g=z,o=z,m=z,T=z,S=z;if(q==null&&(q=z),ie==null&&(ie=z),y(ie)||y(ie=y(Z["$has_more_lines?"]())?oe("AttributeEntryRx").$match(Z.$peek_line()):z)){if(y((U=ie["$[]"](2))["$nil_or_empty?"]()))U="";else if(y(U["$end_with?"](oe("LINE_CONTINUATION"),oe("LINE_CONTINUATION_LEGACY"))))for(ee=[U.$slice(st(U.$length(),2),2),U.$slice(0,st(U.$length(),2)).$rstrip()],g=ee[0],U=ee[1];y(y(o=Z.$advance())?(m=y(T=Z.$peek_line())?T:"")["$empty?"]()["$!"]():o)&&(m=m.$lstrip(),y(S=m["$end_with?"](g))&&(m=m.$slice(0,st(m.$length(),2)).$rstrip()),U=""+U+(y(U["$end_with?"](oe("HARD_LINE_BREAK")))?oe("LF"):" ")+m,!!y(S)););return $e.$store_attribute(ie["$[]"](1),U,F,q),!0}else return z},-3),G(Ne,"$store_attribute",function(Z,F,q,ie){var ee=this,$e=z;return q==null&&(q=z),ie==null&&(ie=z),y(Z["$end_with?"]("!"))?(Z=Z.$chop(),F=z):y(Z["$start_with?"]("!"))&&(Z=Z.$slice(1,Z.$length()),F=z),Ie(Z=ee.$sanitize_attribute_name(Z),"numbered")?Z="sectnums":Ie(Z,"hardbreaks")?Z="hardbreaks-option":Ie(Z,"showtitle")&&ee.$store_attribute("notitle",y(F)?z:"",q,ie),y(q)?y(F)?(Ie(Z,"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(Z,F))&&(F=$e,y(ie)&&et(oe("Document"),"AttributeEntry").$new(Z,F).$save_to(ie))):y(q.$delete_attribute(Z))&&y(ie)&&et(oe("Document"),"AttributeEntry").$new(Z,F).$save_to(ie):y(ie)&&et(oe("Document"),"AttributeEntry").$new(Z,F).$save_to(ie),[Z,F]},-3),G(Ne,"$resolve_list_marker",function(Z,F,q,ie,ee){var $e=this;switch(q==null&&(q=0),ie==null&&(ie=!1),ee==null&&(ee=z),Z){case"ulist":return F;case"olist":return $e.$resolve_ordered_list_marker(F,q,ie,ee)["$[]"](0);default:return"<1>"}},-3),G(Ne,"$resolve_ordered_list_marker",function(Z,F,q,ie){var ee=this,$e=z,U=z,g=z;if(F==null&&(F=0),q==null&&(q=!1),ie==null&&(ie=z),y(Z["$start_with?"](".")))return[Z];switch($e=_e(oe("ORDERED_LIST_STYLES"),"find",[],function(m){return m==null&&(m=z),oe("OrderedListMarkerRxMap")["$[]"](m)["$match?"](Z)})){case"arabic":y(q)&&(U=Ge(F,1),g=Z.$to_i()),Z="1.";break;case"loweralpha":y(q)&&(U=Ge("a"["$[]"](0).$ord(),F).$chr(),g=Z.$chop()),Z="a.";break;case"upperalpha":y(q)&&(U=Ge("A"["$[]"](0).$ord(),F).$chr(),g=Z.$chop()),Z="A.";break;case"lowerroman":y(q)&&(U=oe("Helpers").$int_to_roman(Ge(F,1)).$downcase(),g=Z.$chop()),Z="i)";break;case"upperroman":y(q)&&(U=oe("Helpers").$int_to_roman(Ge(F,1)),g=Z.$chop()),Z="I)";break}return y(q)&&ze(U,g)&&ee.$logger().$warn(ee.$message_with_context("list item index: expected "+U+", got "+g,Y(["source_location"],{source_location:ie.$cursor()}))),[Z,$e]},-2),G(Ne,"$is_sibling_list_item?",function(Z,F,q){var ie,ee=this,$e=z;return We(et("Regexp"),q)?q["$match?"](Z):y($e=oe("ListRxMap")["$[]"](F)["$=~"](Z))?q["$=="](ee.$resolve_list_marker(F,(ie=Oe["~"])===z?z:ie["$[]"](1))):$e}),G(Ne,"$parse_table",function(Z,F,q){var ie,ee,$e,U=this,g=z,o=z,m=z,T=z,S=z,b=z,D=z,j=z,de=z,le=z,ke=z,Be=z,Xe=z,it=z,ht=z,at=z,mt=z,yt=z;for(g=oe("Table").$new(F,q),y(q["$key?"]("cols"))&&C((o=U.$parse_colspecs(q["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(o),m=!0),T=y(S=Z.$skip_blank_lines())?S:0,y(q["$[]"]("header-option"))?g["$has_header_option="](!0):Ie(T,0)&&C(q["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),b=!0),D=et(oe("Table"),"ParserContext").$new(Z,g,q),ie=[D.$format(),-1,z],j=ie[0],de=ie[1],le=ie[2];y(ke=Z.$read_line());){for(y(Be=Pe(de=Ge(de,1),0))&&y(ke["$empty?"]())?(ke=z,y(le)&&(le=Ge(le,1))):Ie(j,"psv")&&(y(D["$starts_with_delimiter?"](ke))?(ke=ke.$slice(1,ke.$length()),D.$close_open_cell(),y(le)&&(le=z)):(ee=U.$parse_cellspec(ke,"start",D.$delimiter()),ie=Ue(ee),Xe=ie[0]==null?z:ie[0],ke=ie[1]==null?z:ie[1],y(Xe)?(D.$close_open_cell(Xe),y(le)&&(le=z)):y(le)&&Ie(le,de)&&g["$has_header_option="](b=le=z))),y(Be)||(Z.$mark(),y(b)&&(y(Z["$has_more_lines?"]())&&y(Z.$peek_line()["$empty?"]())?le=1:g["$has_header_option="](b=z))),ie=!1;ie||y(!0);)if(ie=!1,y(ke)&&y(it=D.$match_delimiter(ke))){if(ee=[it.$pre_match(),it.$post_match()],ht=ee[0],at=ee[1],We("csv",S=j)){if(y(D["$buffer_has_unclosed_quotes?"](ht))){if(D.$skip_past_delimiter(ht),y((ke=at)["$empty?"]()))break;ie=!0;continue}D["$buffer="](""+D.$buffer()+ht)}else if(We("dsv",S)){if(y(ht["$end_with?"]("\\"))){if(D.$skip_past_escaped_delimiter(ht),y((ke=at)["$empty?"]())){D["$buffer="](""+D.$buffer()+oe("LF")),D.$keep_cell_open();break}ie=!0;continue}D["$buffer="](""+D.$buffer()+ht)}else{if(y(ht["$end_with?"]("\\"))){if(D.$skip_past_escaped_delimiter(ht),y((ke=at)["$empty?"]())){D["$buffer="](""+D.$buffer()+oe("LF")),D.$keep_cell_open();break}ie=!0;continue}$e=U.$parse_cellspec(ht),ee=Ue($e),Xe=ee[0]==null?z:ee[0],mt=ee[1]==null?z:ee[1],D.$push_cellspec(Xe),D["$buffer="](""+D.$buffer()+mt)}y((ke=at)["$empty?"]())&&(ke=z),D.$close_cell()}else{switch(D["$buffer="](""+D.$buffer()+ke+oe("LF")),j){case"csv":y(D["$buffer_has_unclosed_quotes?"]())?(y(le)&&Ie(de,0)&&g["$has_header_option="](b=le=z),D.$keep_cell_open()):D.$close_cell(!0);break;case"dsv":D.$close_cell(!0);break;default:D.$keep_cell_open()}break}if(y(D["$cell_open?"]()))y(Z["$has_more_lines?"]())||D.$close_cell(!0);else if(!y(S=Z.$skip_blank_lines()))break}return Ie((yt=g.$attributes(),y(S=yt["$[]"]("colcount"))?S:(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(Ne,"$parse_colspecs",function(Z){var F=z;return y(Z["$include?"](" "))&&(Z=Z.$delete(" ")),Ie(Z,Z.$to_i().$to_s())?_e(et("Array"),"new",[Z.$to_i()],function(){return Y(["width"],{width:1})}):(F=[],_e(y(Z["$include?"](","))?Z.$split(",",-1):Z.$split(";",-1),"each",[],function(ie){var ee,$e,U=z,g=z,o=z,m=z,T=z;return ie==null&&(ie=z),y(ie["$empty?"]())?F["$<<"](Y(["width"],{width:1})):y(U=oe("ColumnSpecRx").$match(ie))?(g=Y([],{}),y(U["$[]"](2))&&($e=U["$[]"](2).$split("."),ee=Ue($e),o=ee[0]==null?z:ee[0],m=ee[1]==null?z:ee[1],C(o["$nil_or_empty?"]())&&y(oe("TableCellHorzAlignments")["$key?"](o))&&g["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](o)),C(m["$nil_or_empty?"]())&&y(oe("TableCellVertAlignments")["$key?"](m))&&g["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](m))),y(T=U["$[]"](3))?g["$[]="]("width",Ie(T,"~")?-1:T.$to_i()):g["$[]="]("width",1),y(U["$[]"](4))&&y(oe("TableCellStyles")["$key?"](U["$[]"](4)))&&g["$[]="]("style",oe("TableCellStyles")["$[]"](U["$[]"](4))),y(U["$[]"](1))?_e(1,"upto",[U["$[]"](1).$to_i()],function(){return F["$<<"](g.$merge())}):F["$<<"](g)):z}),F)}),G(Ne,"$parse_cellspec",function(Z,F,q){var ie,ee,$e=z,U=z,g=z,o=z,m=z,T=z;if(F==null&&(F="end"),q==null&&(q=z),ie=[z,""],$e=ie[0],U=ie[1],Ie(F,"start"))if(y(Z["$include?"](q)))if(ee=Z.$partition(q),ie=Ue(ee),g=ie[0]==null?z:ie[0],ie[1]==null||ie[1],U=ie[2]==null?z:ie[2],y($e=oe("CellSpecStartRx").$match(g))){if(y($e["$[]"](0)["$empty?"]()))return[Y([],{}),U]}else return[z,Z];else return[z,Z];else if(y($e=oe("CellSpecEndRx").$match(Z))){if(y($e["$[]"](0).$lstrip()["$empty?"]()))return[Y([],{}),Z.$rstrip()];U=$e.$pre_match()}else return[Y([],{}),Z];if(o=Y([],{}),y($e["$[]"](1)))switch(ee=$e["$[]"](1).$split("."),ie=Ue(ee),m=ie[0]==null?z:ie[0],T=ie[1]==null?z:ie[1],m=y(m["$nil_or_empty?"]())?1:m.$to_i(),T=y(T["$nil_or_empty?"]())?1:T.$to_i(),$e["$[]"](2)){case"+":Ie(m,1)||o["$[]="]("colspan",m),Ie(T,1)||o["$[]="]("rowspan",T);break;case"*":Ie(m,1)||o["$[]="]("repeatcol",m);break}return y($e["$[]"](3))&&(ee=$e["$[]"](3).$split("."),ie=Ue(ee),m=ie[0]==null?z:ie[0],T=ie[1]==null?z:ie[1],C(m["$nil_or_empty?"]())&&y(oe("TableCellHorzAlignments")["$key?"](m))&&o["$[]="]("halign",oe("TableCellHorzAlignments")["$[]"](m)),C(T["$nil_or_empty?"]())&&y(oe("TableCellVertAlignments")["$key?"](T))&&o["$[]="]("valign",oe("TableCellVertAlignments")["$[]"](T))),y($e["$[]"](4))&&y(oe("TableCellStyles")["$key?"]($e["$[]"](4)))&&o["$[]="]("style",oe("TableCellStyles")["$[]"]($e["$[]"](4))),[o,U]},-2),G(Ne,"$parse_style_attribute",function(Z,F){var q,ie=this,ee=z,$e=z,U=z,g=z,o=z,m=z;return F==null&&(F=z),y(ee=Z["$[]"](1))&&C(ee["$include?"](" "))&&y(oe("Compliance").$shorthand_property_syntax())?($e=z,U="",g=Y([],{}),_e(ee,"each_char",[],function T(S){var b=T.$$s==null?this:T.$$s;switch(S==null&&(S=z),S){case".":return b.$yield_buffered_attribute(g,$e,U,F),U="",$e="role";case"#":return b.$yield_buffered_attribute(g,$e,U,F),U="",$e="id";case"%":return b.$yield_buffered_attribute(g,$e,U,F),U="",$e="option";default:return U=Ge(U,S)}},{$$s:ie}),y($e)?(ie.$yield_buffered_attribute(g,$e,U,F),y(o=g["$[]"]("style"))&&Z["$[]="]("style",o),y(g["$key?"]("id"))&&Z["$[]="]("id",g["$[]"]("id")),y(g["$key?"]("role"))&&Z["$[]="]("role",y((m=Z["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+m+" "+g["$[]"]("role").$join(" ")),y(g["$key?"]("option"))&&_e(g["$[]"]("option"),"each",[],function(S){var b;return S==null&&(S=z),b=[""+S+"-option",""],_e(Z,"[]=",b),b[b.length-1]}),o):(q=["style",ee],_e(Z,"[]=",q),q[q.length-1])):(q=["style",ee],_e(Z,"[]=",q),q[q.length-1])},-2),G(Ne,"$yield_buffered_attribute",function(Z,F,q,ie){var ee,$e=this,U=z;return y(F)?y(q["$empty?"]())?y(ie)?$e.$logger().$warn($e.$message_with_context("invalid empty "+F+" detected in style attribute",Y(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("invalid empty "+F+" detected in style attribute"):Ie(F,"id")?(y(Z["$key?"]("id"))&&(y(ie)?$e.$logger().$warn($e.$message_with_context("multiple ids detected in style attribute",Y(["source_location"],{source_location:ie.$cursor_at_prev_line()}))):$e.$logger().$warn("multiple ids detected in style attribute")),Z["$[]="](F,q)):(y(U=Z["$[]"](F))?U:(ee=[F,[]],_e(Z,"[]=",ee),ee[ee.length-1]))["$<<"](q):y(q["$empty?"]())||Z["$[]="]("style",q),z}),G(Ne,"$adjust_indentation!",function(Z,F,q){var ie=z,ee=z,$e=z;return F==null&&(F=0),q==null&&(q=0),y(Z["$empty?"]())||(y(Pe(q,0))&&y(_e(Z,"any?",[],function(g){return g==null&&(g=z),g["$include?"](oe("TAB"))}))&&(ie=Ye(" ",q),_e(Z,"map!",[],function(g){var o=z,m=z,T=z,S=z,b=z;return g==null&&(g=z),y(g["$empty?"]())||y((o=g.$index(oe("TAB")))["$nil?"]())||Ie(o,0)&&(m=0,function(){try{var D=Je("break");return _e(g,"each_byte",[],function(de){return de==null&&(de=z),Ie(de,9)||D.$throw(),m=Ge(m,1)})}catch(j){if(j===D)return j.$v;throw j}}(),g=""+Ye(ie,m)+g.$slice(m,g.$length()),!y(g["$include?"](oe("TAB"))))?g:(T=0,S=0,b="",_e(g,"each_char",[],function(j){var de=z,le=z;return j==null&&(j=z),Ie(j,oe("TAB"))?Ie((de=Ge(S,T))["$%"](q),0)?(T=Ge(T,st(q,1)),b=Ge(b,ie)):(Ie(le=st(q,de["$%"](q)),1)||(T=Ge(T,st(le,1))),b=Ge(b,Ye(" ",le))):b=Ge(b,j),S=Ge(S,1)}),b)})),y(Me(F,0)))||(ee=z,function(){try{var U=Je("break");return _e(Z,"each",[],function(o){var m=z;return o==null&&(o=z),y(o["$empty?"]())||(Ie(m=st(o.$length(),o.$lstrip().$length()),0)&&(ee=z,U.$throw()),y(ee)&&y(Me(ee,m)))?z:ee=m})}catch(g){if(g===U)return g.$v;throw g}}(),Ie(F,0)?y(ee)&&_e(Z,"map!",[],function(g){return g==null&&(g=z),y(g["$empty?"]())?g:g.$slice(ee,g.$length())}):($e=Ye(" ",F),y(ee)?_e(Z,"map!",[],function(g){return g==null&&(g=z),y(g["$empty?"]())?g:Ge($e,g.$slice(ee,g.$length()))}):_e(Z,"map!",[],function(g){return g==null&&(g=z),y(g["$empty?"]())?g:Ge($e,g)}))),z},-2),G(Ne,"$uniform?",function(Z,F,q){return Z.$count(F)["$=="](q)}),G(Ne,"$sanitize_attribute_name",function(Z){return Z.$gsub(oe("InvalidAttributeNameCharsRx"),"").$downcase()})}(K[0],null,K)}($t[0],$t)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.truthy,y=a.hash2,Y=a.def,Ue=a.eqeq,G=a.alias,Ie=a.rb_plus,C=a.to_ary,Oe=a.send,ze=a.not,Ge=a.neqeq,Me=a.rb_gt,Pe=a.gvars,dt=[],We=a.nil,st=a.$$$;return a.add_stubs("include,attr_accessor,root?,posixify,expand_path,pwd,start_with?,==,match?,absolute_path?,+,length,descends_from?,slice,to_s,relative_path_from,new,include?,tr,partition_path,each,pop,<<,join_path,[],web_root?,unc?,index,split,delete,[]=,join,raise,!,fetch,warn,logger,empty?,nil_or_empty?,chomp,!=,>,size,extract_uri_prefix,end_with?,gsub,private,=~"),function(Ye,Je){var $t=ae(Ye,"Asciidoctor"),z=[$t].concat(Je);return function(et,E,tt){var lt=te(et,E,"PathResolver"),K=[lt].concat(tt),M=a.$r(K),He=lt.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=We,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"),Y(lt,"$initialize",function(Ne,Te){var oe=this,ye=We,Z=We;return Ne==null&&(Ne=We),Te==null&&(Te=We),oe.file_separator=_e(ye=_e(Z=Ne)?Z:st(st("File"),"ALT_SEPARATOR"))?ye:st(st("File"),"SEPARATOR"),oe.working_dir=_e(Te)?_e(oe["$root?"](Te))?oe.$posixify(Te):st("File").$expand_path(Te):st("Dir").$pwd(),oe._partition_path_sys=y([],{}),oe._partition_path_web=y([],{})},-1),Y(lt,"$absolute_path?",function(Ne){var Te=this,oe=We,ye=We;return _e(oe=Ne["$start_with?"](M("SLASH")))?oe:_e(ye=Te.file_separator["$=="](M("BACKSLASH")))?M("WindowsRootRx")["$match?"](Ne):ye}),Ue(M("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?Y(lt,"$root?",function(Ne){var Te=this,oe=We;return _e(oe=Te["$absolute_path?"](Ne))?oe:Ne["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?Y(lt,"$root?",function(Ne){var Te=this,oe=We;return _e(oe=Te["$absolute_path?"](Ne))?oe:Ne["$start_with?"](M("URI_CLASSLOADER"))}):G(lt,"root?","absolute_path?"),Y(lt,"$unc?",function(Ne){return Ne["$start_with?"](M("DOUBLE_SLASH"))}),Y(lt,"$web_root?",function(Ne){return Ne["$start_with?"](M("SLASH"))}),Y(lt,"$descends_from?",function(Ne,Te){var oe=We;return Ue(Te,Ne)?0:Ue(Te,M("SLASH"))?_e(oe=Ne["$start_with?"](M("SLASH")))?1:oe:_e(oe=Ne["$start_with?"](Ie(Te,M("SLASH"))))?Ie(Te.$length(),1):oe}),Y(lt,"$relative_path",function(Ne,Te){var oe=this,ye=We;if(_e(oe["$root?"](Ne))){if(_e(ye=oe["$descends_from?"](Ne,Te)))return Ne.$slice(ye,Ne.$length());try{return M("Pathname").$new(Ne).$relative_path_from(M("Pathname").$new(Te)).$to_s()}catch(Z){if(a.rescue(Z,[M("StandardError")]))try{return Ne}finally{a.pop_exception()}else throw Z}}else return Ne}),Y(lt,"$posixify",function(Ne){var Te=this;return _e(Ne)?Ue(Te.file_separator,M("BACKSLASH"))&&_e(Ne["$include?"](M("BACKSLASH")))?Ne.$tr(M("BACKSLASH"),M("SLASH")):Ne:""}),G(lt,"posixfy","posixify"),Y(lt,"$expand_path",function(Ne){var Te,oe,ye=this,Z=We,F=We,q=We;return oe=ye.$partition_path(Ne),Te=C(oe),Z=Te[0]==null?We:Te[0],F=Te[1]==null?We:Te[1],_e(Ne["$include?"](M("DOT_DOT")))?(q=[],Oe(Z,"each",[],function(ee){return ee==null&&(ee=We),Ue(ee,M("DOT_DOT"))?q.$pop():q["$<<"](ee)}),ye.$join_path(q,F)):ye.$join_path(Z,F)}),Y(lt,"$partition_path",function(Ne,Te){var oe,ye=this,Z=We,F=We,q=We,ie=We,ee=We;return Te==null&&(Te=We),_e(Z=(F=_e(Te)?ye._partition_path_web:ye._partition_path_sys)["$[]"](Ne))?Z:(q=ye.$posixify(Ne),_e(Te)?_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,Ie(q.$index(M("SLASH")),1)):_e(q["$start_with?"](M("DOT_SLASH")))&&(ie=M("DOT_SLASH")),ee=(_e(ie)?q.$slice(ie.$length(),q.$length()):q).$split(M("SLASH")),ee.$delete(M("DOT")),oe=[Ne,[ee,ie]],Oe(F,"[]=",oe),oe[oe.length-1])},-2),Y(lt,"$join_path",function(Ne,Te){return Te==null&&(Te=We),_e(Te)?""+Te+Ne.$join(M("SLASH")):Ne.$join(M("SLASH"))},-2),Y(lt,"$system_path",function(Ne,Te,oe,ye){var Z,F,q=this,ie=We,ee=We,$e=We,U=We,g=We,o=We,m=We,T=We,S=We,b=We,D=We;if(Te==null&&(Te=We),oe==null&&(oe=We),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(Ne))if(_e(q["$root?"](Ne))){if(ie=q.$expand_path(Ne),_e(oe)&&ze(q["$descends_from?"](ie,oe))){if(_e(ye.$fetch("recover",!0)))return q.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail; recovering automatically"),F=q.$partition_path(ie),Z=C(F),$e=Z[0]==null?We:Z[0],F=q.$partition_path(oe),Z=C(F),U=Z[0]==null?We:Z[0],g=Z[1]==null?We:Z[1],q.$join_path(Ie(U,$e),g);q.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" is outside of jail: "+oe+" (disallowed in safe mode)")}return ie}else F=q.$partition_path(Ne),Z=C(F),$e=Z[0]==null?We:Z[0];else $e=[];if(_e($e["$empty?"]())){if(_e(Te["$nil_or_empty?"]()))return _e(ee=oe)?ee:q.working_dir;if(_e(q["$root?"](Te)))if(_e(oe))Te=q.$posixify(Te);else return q.$expand_path(Te);else F=q.$partition_path(Te),Z=C(F),$e=Z[0]==null?We:Z[0],Te=_e(ee=oe)?ee:q.working_dir}else _e(Te["$nil_or_empty?"]())?Te=_e(ee=oe)?ee:q.working_dir:_e(q["$root?"](Te))?_e(oe)&&(Te=q.$posixify(Te)):Te=""+(_e(ee=oe)?ee:q.working_dir).$chomp("/")+"/"+Te;return _e(oe)&&_e(o=q["$descends_from?"](Te,oe)["$!"]())&&Ue(q.file_separator,M("BACKSLASH"))?(F=q.$partition_path(Te),Z=C(F),m=Z[0]==null?We:Z[0],T=Z[1]==null?We:Z[1],F=q.$partition_path(oe),Z=C(F),U=Z[0]==null?We:Z[0],g=Z[1]==null?We:Z[1],Ge(T,g)&&(_e(ye.$fetch("recover",!0))?(q.$logger().$warn("start path for "+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail root; recovering automatically"),m=U,o=!1):q.$raise(st("SecurityError"),"start path for "+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Te+" refers to location outside jail root: "+oe+" (disallowed in safe mode)"))):(F=q.$partition_path(Te),Z=C(F),m=Z[0]==null?We:Z[0],g=Z[1]==null?We:Z[1]),_e((S=Ie(m,$e))["$include?"](M("DOT_DOT")))&&(Z=[S,[]],b=Z[0],S=Z[1],_e(oe)?(_e(U)||(F=q.$partition_path(oe),Z=C(F),U=Z[0]==null?We:Z[0]),D=!1,Oe(b,"each",[],function j(de){var le=j.$$s==null?this:j.$$s;return de==null&&(de=We),Ue(de,M("DOT_DOT"))?_e(Me(S.$size(),U.$size()))?S.$pop():_e(ye.$fetch("recover",!0))?_e(D)?We:(le.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" has illegal reference to ancestor of jail; recovering automatically"),D=!0):le.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" refers to location outside jail: "+oe+" (disallowed in safe mode)"):S["$<<"](de)},{$$s:q})):Oe(b,"each",[],function(de){return de==null&&(de=We),Ue(de,M("DOT_DOT"))?S.$pop():S["$<<"](de)})),_e(o)?(ie=q.$join_path(S,g),_e(q["$descends_from?"](ie,oe))?ie:_e(ye.$fetch("recover",!0))?(q.$logger().$warn(""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" is outside of jail; recovering automatically"),_e(U)||(F=q.$partition_path(oe),Z=C(F),U=Z[0]==null?We:Z[0]),q.$join_path(Ie(U,$e),g)):q.$raise(st("SecurityError"),""+(_e(ee=ye["$[]"]("target_name"))?ee:"path")+" "+Ne+" is outside of jail: "+oe+" (disallowed in safe mode)")):q.$join_path(S,g)},-2),Y(lt,"$web_path",function(Ne,Te){var oe,ye,Z=this,F=We,q=We,ie=We,ee=We,$e=We;return Te==null&&(Te=We),Ne=Z.$posixify(Ne),Te=Z.$posixify(Te),_e(Te["$nil_or_empty?"]())||_e(Z["$web_root?"](Ne))||(ye=Z.$extract_uri_prefix(""+Te+(_e(Te["$end_with?"](M("SLASH")))?"":M("SLASH"))+Ne),oe=C(ye),Ne=oe[0]==null?We:oe[0],F=oe[1]==null?We:oe[1]),ye=Z.$partition_path(Ne,!0),oe=C(ye),q=oe[0]==null?We:oe[0],ie=oe[1]==null?We:oe[1],ee=[],Oe(q,"each",[],function(g){return g==null&&(g=We),Ue(g,M("DOT_DOT"))?_e(ee["$empty?"]())?_e(ie)&&Ge(ie,M("DOT_SLASH"))?We:ee["$<<"](g):Ue(ee["$[]"](-1),M("DOT_DOT"))?ee["$<<"](g):ee.$pop():ee["$<<"](g)}),_e(($e=Z.$join_path(ee,ie))["$include?"](" "))&&($e=$e.$gsub(" ","%20")),_e(F)?""+F+$e:$e},-2),lt.$private(),Y(lt,"$extract_uri_prefix",function(Ne){var Te;return _e(Ne["$include?"](":"))&&_e(M("UriSniffRx")["$=~"](Ne))?[Ne.$slice(((Te=Pe["~"])===We?We:Te["$[]"](0)).$length(),Ne.$length()),(Te=Pe["~"])===We?We:Te["$[]"](0)]:Ne})}(z[0],null,z)}(dt[0],dt)},Opal.modules["asciidoctor/reader"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=a.rb_plus,y=a.alias,Y=a.hash2,Ue=a.not,G=a.eqeqeq,Ie=a.to_ary,C=a.truthy,Oe=a.rb_gt,ze=a.send,Ge=a.rb_minus,Me=a.thrower,Pe=a.eqeq,dt=a.rb_times,We=a.neqeq,st=a.to_a,Ye=a.assign_ivar_val,Je=a.send2,$t=a.find_super,z=a.rb_ge,et=a.gvars,E=a.rb_lt,tt=a.hash,lt=[],K=a.nil,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 Ne=ae(He,"Asciidoctor"),Te=[Ne].concat(we),oe=a.$r(Te);return function(ye,Z,F){var q=te(ye,Z,"Reader"),ie=[q].concat(F),ee=a.$r(ie),$e=q.$$prototype;return $e.file=$e.lines=$e.look_ahead=$e.unescape_next_line=$e.lineno=$e.process_lines=$e.dir=$e.path=$e.mark=$e.source_lines=$e.saved=K,q.$include(ee("Logging")),function(U,g){var o=te(U,g,"Cursor"),m=o.$$prototype;return m.lineno=m.path=K,o.$attr_reader("file","dir","path","lineno"),V(o,"$initialize",function(S,b,D,j){var de,le=this;return b==null&&(b=K),D==null&&(D=K),j==null&&(j=1),de=[S,b,D,j],le.file=de[0],le.dir=de[1],le.path=de[2],le.lineno=de[3],de},-2),V(o,"$advance",function(S){var b=this;return b.lineno=_e(b.lineno,S)}),V(o,"$line_info",function(){var S=this;return""+S.path+": line "+S.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 T,S,b=this,D=K;return g==null&&(g=K),o==null&&(o=K),m==null&&(m=Y([],{})),Ue(o)?(b.file=K,b.dir=".",b.path="<stdin>",b.lineno=1):G(M("String"),o)?(b.file=o,S=M("File").$split(b.file),T=Ie(S),b.dir=T[0]==null?K:T[0],b.path=T[1]==null?K:T[1],b.lineno=1):(C(b.file=o.$file())?(b.dir=C(D=o.$dir())?D:M("File").$dirname(b.file),b.path=C(D=o.$path())?D:M("File").$basename(b.file)):(b.dir=C(D=o.$dir())?D:".",b.path=C(D=o.$path())?D:"<stdin>"),b.lineno=C(D=o.$lineno())?D: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 C(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),V(q,"$empty?",function(){var g=this;return C(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),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,T=K;for(g==null&&(g=!1);C(!0);){if(m=o.lines["$[]"](-1),C(g)||C(Oe(o.look_ahead,0)))return C(o.unescape_next_line)?m.$slice(1,m.$length()):m;if(C(m)){if(C(T=o.$process_line(m)))return T}else return o.look_ahead=0,K}},-1),V(q,"$peek_lines",function(g,o){var m=this,T=K,S=K,b=K;return g==null&&(g=K),o==null&&(o=!1),T=m.look_ahead,S=[],function(){try{var D=Me("break");return ze(C(b=g)?b:ee("MAX_INT"),"times",[],function j(){var de=j.$$s==null?this:j.$$s,le=K;if(de.lineno==null&&(de.lineno=K),C(le=C(o)?de.$shift():de.$read_line()))return S["$<<"](le);C(o)&&(de.lineno=Ge(de.lineno,1)),D.$throw()},{$$s:m})}catch(j){if(j===D)return j.$v;throw j}}(),C(S["$empty?"]())||(m.$unshift_all(S),C(o)&&(m.look_ahead=T)),S},-1),V(q,"$read_line",function(){var g=this;return C(Oe(g.look_ahead,0))||C(g["$has_more_lines?"]())?g.$shift():K}),V(q,"$read_lines",function(){var g=this,o=K;for(o=[];C(g["$has_more_lines?"]());)o["$<<"](g.$shift());return o}),y(q,"readlines","read_lines"),V(q,"$read",function(){var g=this;return g.$read_lines().$join(ee("LF"))}),V(q,"$advance",function(){var g=this;return!!C(g.$shift())}),V(q,"$unshift_line",function(g){var o=this;return o.$unshift(g),K}),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(C(g["$empty?"]()))return K;for(o=0;C(m=g.$peek_line());)if(C(m["$empty?"]()))g.$shift(),o=_e(o,1);else return o}),V(q,"$skip_comment_lines",function(){var g=this,o=K,m=K,T=K;if(C(g["$empty?"]()))return K;for(;C(C(o=m=g.$peek_line())?m["$empty?"]()["$!"]():o)&&C(m["$start_with?"]("//"));)if(C(m["$start_with?"]("///")))if(C(Oe(T=m.$length(),3))&&Pe(m,dt("/",T)))g.$read_lines_until(Y(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:m,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return K}),V(q,"$skip_line_comments",function(){var g=this,o=K,m=K,T=K;if(C(g["$empty?"]()))return[];for(o=[];C(C(m=T=g.$peek_line())?T["$empty?"]()["$!"]():m)&&C(T["$start_with?"]("//"));)o["$<<"](g.$shift());return o}),V(q,"$terminate",function(){var g=this;return g.lineno=_e(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,K}),V(q,"$read_lines_until",function U(g){var o,m=U.$$p||K,T=this,S=K,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K;for(U.$$p=null,g==null&&(g=Y([],{})),S=[],C(T.process_lines)&&C(g["$[]"]("skip_processing"))&&(T.process_lines=!1,b=!0),C(D=g["$[]"]("terminator"))?(j=C(de=g["$[]"]("cursor"))?de:T.$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,C(g["$[]"]("skip_first_line"))&&T.$shift();C(ht=T.$read_line());){if(C(C(D)?ht["$=="](D):C(de=C(at=C(mt=le)?ht["$empty?"]():mt)?at:C(mt=C(yt=C(xt=ke)?Xe:xt)?ht["$=="](ee("LIST_CONTINUATION")):yt)?(o=["preserve_last_line",!0],ze(g,"[]=",o),o[o.length-1]):mt)?de:C(at=m!==K)?a.yield1(m,ht):at)){C(g["$[]"]("read_last_line"))&&S["$<<"](ht),C(g["$[]"]("preserve_last_line"))&&(T.$unshift(ht),it=!0);break}C(Be)&&C(ht["$start_with?"]("//"))&&Ue(ht["$start_with?"]("///"))||(S["$<<"](ht),Xe=!0)}return C(b)&&(T.process_lines=!0,C(it)&&Ue(D)&&(T.look_ahead=Ge(T.look_ahead,1))),C(D)&&We(D,ht)&&C(vt=g.$fetch("context",D))&&(Pe(j,"at_mark")&&(j=T.$cursor_at_mark()),T.$logger().$warn(T.$message_with_context("unterminated "+vt+" block",Y(["source_location"],{source_location:j}))),T.unterminated=!0),S},-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()),C(g["$respond_to?"]("reverse"))?ze(o.lines,"push",st(g.$reverse())):ze(g,"reverse_each",[],function m(T){var S=m.$$s==null?this:m.$$s;return S.lines==null&&(S.lines=K),T==null&&(T=K),S.lines.$push(T)},{$$s:o}),K}):V(q,"$unshift_all",function(g){var o=this;return o.lineno=Ge(o.lineno,g.$size()),o.look_ahead=_e(o.look_ahead,g.$size()),ze(o.lines,"push",st(g.$reverse())),K}),V(q,"$cursor",function(){var g=this;return ee("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),V(q,"$cursor_at_line",function(g){var o=this;return ee("Cursor").$new(o.file,o.dir,o.path,g)}),V(q,"$cursor_at_mark",function(){var g=this;return C(g.mark)?ze(ee("Cursor"),"new",st(g.mark)):g.$cursor()}),V(q,"$cursor_before_mark",function(){var g,o,m=this,T=K,S=K,b=K,D=K;return C(m.mark)?(o=m.mark,g=Ie(o),T=g[0]==null?K:g[0],S=g[1]==null?K:g[1],b=g[2]==null?K:g[2],D=g[3]==null?K:g[3],ee("Cursor").$new(T,S,b,Ge(D,1))):ee("Cursor").$new(m.file,m.dir,m.path,Ge(m.lineno,1))}),V(q,"$cursor_at_prev_line",function(){var g=this;return ee("Cursor").$new(g.file,g.dir,g.path,Ge(g.lineno,1))}),V(q,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),V(q,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),V(q,"$lines",function(){var g=this;return g.lines.$reverse()}),V(q,"$string",function(){var g=this;return g.lines.$reverse().$join(ee("LF"))}),V(q,"$source",function(){var g=this;return g.source_lines.$join(ee("LF"))}),V(q,"$save",function(){var g=this;return g.saved=ze(Y([],{}),"tap",[],function o(m){var T=o.$$s==null?this:o.$$s;return m==null&&(m=K),ze(T.$instance_variables(),"each",[],function S(b){var D,j=S.$$s==null?this:S.$$s,de=K;return b==null&&(b=K),Pe(b,"@saved")||Pe(b,"@source_lines")?K:(D=[b,G(M("Array"),de=j.$instance_variable_get(b))?de.$drop(0):de],ze(m,"[]=",D),D[D.length-1])},{$$s:T})},{$$s:g}),K}),V(q,"$restore_save",function(){var g=this;return C(g.saved)?(ze(g.saved,"each",[],function o(m,T){var S=o.$$s==null?this:o.$$s;return m==null&&(m=K),T==null&&(T=K),S.$instance_variable_set(m,T)},{$$s:g}),g.saved=K):K}),V(q,"$discard_save",Ye("saved",K)),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),q.$private(),V(q,"$prepare_lines",function(g,o){var m=this,T=K;o==null&&(o=Y([],{}));try{return C(T=o["$[]"]("normalize"))?G(M("Array"),g)?ee("Helpers").$prepare_source_array(g,T["$!="]("chomp")):ee("Helpers").$prepare_source_string(g,T["$!="]("chomp")):G(M("Array"),g)?g.$drop(0):C(g)?g.$chomp().$split(ee("LF"),-1):[]}catch(S){if(a.rescue(S,[ee("StandardError")]))try{return C((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 S}},-2),V(q,"$process_line",function(g){var o=this;return C(o.process_lines)&&(o.look_ahead=_e(o.look_ahead,1)),g})}(Te[0],null,Te),function(ye,Z,F){var q=te(ye,Z,"PreprocessorReader"),ie=[q].concat(F),ee=a.$r(ie),$e=q.$$prototype;return $e.include_stack=$e.lines=$e.file=$e.dir=$e.path=$e.lineno=$e.maxdepth=$e.process_lines=$e.includes=$e.document=$e.unescape_next_line=$e.include_processor_extensions=$e.look_ahead=$e.skipping=$e.conditional_stack=K,q.$attr_reader("include_stack"),V(q,"$initialize",function U(g,o,m,T){U.$$p;var S=this,b=K,D=K;return U.$$p=null,o==null&&(o=K),m==null&&(m=K),T==null&&(T=Y([],{})),S.document=g,Je(S,$t(S,"initialize",U,!1,!0),"initialize",[o,m,T],null),C(Oe(b=(C(D=g.$attributes()["$[]"]("max-include-depth"))?D:64).$to_i(),0))?S.maxdepth=Y(["abs","curr","rel"],{abs:b,curr:b,rel:b}):S.maxdepth=K,S.include_stack=[],S.includes=g.$catalog()["$[]"]("includes"),S.skipping=!1,S.conditional_stack=[],S.include_processor_extensions=K},-2),V(q,"$has_more_lines?",function(){var g=this;return!!C(g.$peek_line())}),V(q,"$empty?",function(){var g=this;return!C(g.$peek_line())}),y(q,"eof?","empty?"),V(q,"$peek_line",function U(g){var o=U.$$p||K,m=this,T=K;return U.$$p=null,g==null&&(g=!1),C(T=Je(m,$t(m,"peek_line",U,!1,!0),"peek_line",[g],o))?T:C(m.include_stack["$empty?"]())?K:(m.$pop_include(),m.$peek_line(g))},-1),V(q,"$push_include",function(g,o,m,T,S){var b=this,D=K,j=K,de=K,le=K,ke=K,Be=K;return o==null&&(o=K),m==null&&(m=K),T==null&&(T=1),S==null&&(S=Y([],{})),b.include_stack["$<<"]([b.lines,b.file,b.dir,b.path,b.lineno,b.maxdepth,b.process_lines]),C(b.file=o)?(G(M("String"),o)?b.dir=M("File").$dirname(o):C(ee("RUBY_ENGINE_OPAL"))?b.dir=M("URI").$parse(M("File").$dirname(o=o.$to_s())):((b.dir=o.$dup())["$path="](Pe(D=M("File").$dirname(o.$path()),"/")?"":D),o=o.$to_s()),b.path=m=C(j=m)?j:M("File").$basename(o),C(b.process_lines=ze(o,"end_with?",st(ee("ASCIIDOC_EXTENSIONS").$keys())))&&(C(j=b.includes["$[]"](m.$slice(0,m.$rindex("."))))||b.includes["$[]="](m.$slice(0,m.$rindex(".")),C(S["$[]"]("partial-option"))?K:!0))):(b.dir=".",b.process_lines=!0,C(b.path=m)?C(j=b.includes["$[]"](ee("Helpers").$rootname(m)))||b.includes["$[]="](ee("Helpers").$rootname(m),C(S["$[]"]("partial-option"))?K:!0):b.path="<stdin>"),b.lineno=T,C(b.maxdepth)&&C(S["$key?"]("depth"))&&(C(Oe(de=S["$[]"]("depth").$to_i(),0))?(C(Oe(le=_e(b.include_stack.$size(),de),ke=b.maxdepth["$[]"]("abs")))&&(le=de=ke),b.maxdepth=Y(["abs","curr","rel"],{abs:ke,curr:le,rel:de})):b.maxdepth=Y(["abs","curr","rel"],{abs:b.maxdepth["$[]"]("abs"),curr:b.include_stack.$size(),rel:0})),C((b.lines=b.$prepare_lines(g,Y(["normalize","condense","indent"],{normalize:C(j=b.process_lines)?j:"chomp",condense:!1,indent:S["$[]"]("indent")})))["$empty?"]())?b.$pop_include():(C(S["$key?"]("leveloffset"))?(b.lines=_e(_e([C(Be=b.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],b.lines.$reverse()),["",":leveloffset: "+S["$[]"]("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 C(o=C(m=g.maxdepth)?z(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):m)?g.maxdepth["$[]"]("rel"):o}),y(q,"exceeded_max_depth?","exceeds_max_depth?"),V(q,"$shift",function U(){var g=U.$$p||K,o=this,m=K;return U.$$p=null,C(o.unescape_next_line)?(o.unescape_next_line=!1,(m=Je(o,$t(o,"shift",U,!1,!0),"shift",[],g)).$slice(1,m.$length())):Je(o,$t(o,"shift",U,!1,!0),"shift",[],g)}),V(q,"$include_processors?",function(){var g=this;return C(g.include_processor_extensions["$nil?"]())?C(g.document["$extensions?"]())&&C(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),V(q,"$create_include_cursor",function(g,o,m){var T=K;return G(M("String"),g)?T=M("File").$dirname(g):C(ee("RUBY_ENGINE_OPAL"))?T=M("File").$dirname(g=g.$to_s()):(T=Pe(T=M("File").$dirname(g.$path()),"")?"/":T,g=g.$to_s()),ee("Cursor").$new(g,T,o,m)}),V(q,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+", include depth: "+g.include_stack.$size()+", include stack: ["+ze(g.include_stack,"map",[],function(m){return m==null&&(m=K),m.$to_s()}).$join(", ")+"]}>"}),q.$private(),V(q,"$prepare_lines",function U(g,o){var m=U.$$p||K,T=this,S=K,b=K,D=K,j=K;if(U.$$p=null,o==null&&(o=Y([],{})),S=Je(T,$t(T,"prepare_lines",U,!1,!0),"prepare_lines",[g,o],m),C(T.document)&&C(T.document.$attributes()["$[]"]("skip-front-matter"))&&C(b=T["$skip_front_matter!"](S))&&T.document.$attributes()["$[]="]("front-matter",b.$join(ee("LF"))),C(o.$fetch("condense",!0)))for(;C(C(D=j=S["$[]"](-1))?j["$empty?"]():D);)S.$pop();return C(o["$[]"]("indent"))&&ee("Parser")["$adjust_indentation!"](S,o["$[]"]("indent").$to_i(),T.document.$attr("tabsize").$to_i()),S},-2),V(q,"$process_line",function(g){var o,m=this;return C(m.process_lines)?C(g["$empty?"]())?(m.look_ahead=_e(m.look_ahead,1),g):C(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&C(g["$include?"]("::"))?C(g["$include?"]("if"))&&C(ee("ConditionalDirectiveRx")["$=~"](g))?Pe((o=et["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):C(m.$preprocess_conditional_directive((o=et["~"])===K?K:o["$[]"](2),(o=et["~"])===K?K:o["$[]"](3),(o=et["~"])===K?K:o["$[]"](4),(o=et["~"])===K?K:o["$[]"](5)))?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):C(m.skipping)?(m.$shift(),K):C(g["$start_with?"]("inc","\\inc"))&&C(ee("IncludeDirectiveRx")["$=~"](g))?Pe((o=et["~"])===K?K:o["$[]"](1),"\\")?(m.unescape_next_line=!0,m.look_ahead=_e(m.look_ahead,1),g.$slice(1,g.$length())):C(m.$preprocess_include_directive((o=et["~"])===K?K:o["$[]"](2),(o=et["~"])===K?K:o["$[]"](3)))?K:(m.look_ahead=_e(m.look_ahead,1),g):(m.look_ahead=_e(m.look_ahead,1),g):C(m.skipping)?(m.$shift(),K):(m.look_ahead=_e(m.look_ahead,1),g):g}),V(q,"$preprocess_conditional_directive",function(g,o,m,T){var S,b=this,D=K,j=K,de=K,le=K,ke=K,Be=K;if(C(D=o["$empty?"]())||(o=o.$downcase()),Pe(g,"endif"))return C(T)?b.$logger().$error(b.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+o+"["+T+"]",Y(["source_location"],{source_location:b.$cursor()}))):C(b.conditional_stack["$empty?"]())?b.$logger().$error(b.$message_with_context("unmatched preprocessor directive: endif::"+o+"[]",Y(["source_location"],{source_location:b.$cursor()}))):C(D)||Pe(o,(j=b.conditional_stack["$[]"](-1))["$[]"]("target"))?(b.conditional_stack.$pop(),b.skipping=C(b.conditional_stack["$empty?"]())?!1:b.conditional_stack["$[]"](-1)["$[]"]("skipping")):b.$logger().$error(b.$message_with_context("mismatched preprocessor directive: endif::"+o+"[], expected endif::"+j["$[]"]("target")+"[]",Y(["source_location"],{source_location:b.$cursor()}))),!0;if(C(b.skipping))de=!1;else switch(g){case"ifdef":if(C(D))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+T+"]",Y(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":de=ze(o.$split(",",-1),"none?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":de=ze(o.$split("+",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)["$!"]()},{$$s:b});break;default:de=b.document.$attributes()["$key?"](o)["$!"]()}break;case"ifndef":if(C(D))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+T+"]",Y(["source_location"],{source_location:b.$cursor()}))),!0;switch(m){case",":de=ze(o.$split(",",-1),"any?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":de=ze(o.$split("+",-1),"all?",[],function Xe(it){var ht=Xe.$$s==null?this:Xe.$$s;return ht.document==null&&(ht.document=K),it==null&&(it=K),ht.document.$attributes()["$key?"](it)},{$$s:b});break;default:de=b.document.$attributes()["$key?"](o)}break;case"ifeval":if(C(D))if(C(T)&&C(ee("EvalExpressionRx")["$=~"](T.$strip())))le=(S=et["~"])===K?K:S["$[]"](1),ke=(S=et["~"])===K?K:S["$[]"](2),Be=(S=et["~"])===K?K:S["$[]"](3),de=function(){try{return!C(b.$resolve_expr_val(le).$send(ke,b.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[ee("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - "+(C(T)?"invalid expression":"missing expression")+": ifeval::["+T+"]",Y(["source_location"],{source_location:b.$cursor()}))),!0;else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+o+"["+T+"]",Y(["source_location"],{source_location:b.$cursor()}))),!0;break}return Pe(g,"ifeval")||Ue(T)?(C(de)&&(b.skipping=!0),b.conditional_stack["$<<"](Y(["target","skip","skipping"],{target:o,skip:de,skipping:b.skipping}))):C(b.skipping)||C(de)||(b.$replace_next_line(T.$rstrip()),b.$unshift(""),C(T["$start_with?"]("include::"))&&(b.look_ahead=Ge(b.look_ahead,1))),!0}),V(q,"$preprocess_include_directive",function(g,o){var m,T,S=this,b=K,D=K,j=K,de=K,le=K,ke=K,Be=K,Xe=K,it=K,ht=K,at=K,mt=K,yt=K,xt=K,vt=K,Tt=K,St=K,Wt=K,Bt=K,er=K,Kt=K,Pt=K,Yt=K,Xt=K,nr=K,Yn=K,tn=K;if(b=S.document,C((D=g)["$include?"](ee("ATTR_REF_HEAD")))&&C((D=b.$sub_attributes(g,Y(["attribute_missing"],{attribute_missing:Pe(j=C(de=b.$attributes()["$[]"]("attribute-missing"))?de:ee("Compliance").$attribute_missing(),"warn")?"drop-line":j})))["$empty?"]()))return Pe(j,"drop-line")&&C(b.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(ze(S.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("include dropped due to missing attribute: include::"+g+"["+o+"]",Y(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):C(b.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(ze(S.$logger(),"info",[],function Jt(){var Ut=Jt.$$s==null?this:Jt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(j,"warn")&&C(b.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",Y(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$warn(S.$message_with_context("include dropped "+(Pe(j,"warn")&&C(b.$sub_attributes(_e(g," "),Y(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+g+"["+o+"]",Y(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+o+"]"));if(C(S["$include_processors?"]())&&C(le=ze(S.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=K),Ut.$instance()["$handles?"](D)})))return S.$shift(),le.$process_method()["$[]"](b,S,D,b.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0}))),!0;if(C(z(b.$safe(),M(ee("SafeMode"),"SECURE"))))return S.$replace_next_line("link:"+D+"[role=include]");if(C(S.maxdepth)){if(C(z(S.include_stack.$size(),S.maxdepth["$[]"]("curr"))))return S.$logger().$error(S.$message_with_context("maximum include depth of "+S.maxdepth["$[]"]("rel")+" exceeded",Y(["source_location"],{source_location:S.$cursor()}))),K;switch(ke=b.$parse_attributes(o,[],Y(["sub_input"],{sub_input:!0})),T=S.$resolve_include_path(D,o,ke),m=Ie(T),Be=m[0]==null?K:m[0],Xe=m[1]==null?K:m[1],it=m[2]==null?K:m[2],Xe){case"file":ht=M("File").$method("open"),at=ee("FILE_READ_MODE");break;case"uri":ht=M("OpenURI").$method("open_uri"),at=ee("URI_READ_MODE");break;default:return Be}if(C(ee("RUBY_ENGINE_OPAL"))||C(mt=ke["$[]"]("encoding"))&&C(function(){try{return M("Encoding").$find(mt)}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return K}finally{a.pop_exception()}else throw Jt}}())&&((yt=at.$split(":"))["$[]="](1,mt),at=yt.$join(":")),xt=vt=K,C(o)&&(C(ke["$key?"]("lines"))?(xt=[],ze(S.$split_delimited_value(ke["$[]"]("lines")),"each",[],function(Ut){var Zt,Cr,Ht=K,kr=K;return Ut==null&&(Ut=K),C(Ut["$include?"](".."))?(Cr=Ut.$partition(".."),Zt=Ie(Cr),Ht=Zt[0]==null?K:Zt[0],Zt[1]==null||Zt[1],kr=Zt[2]==null?K:Zt[2],xt=_e(xt,C(kr["$empty?"]())||C(E(kr=kr.$to_i(),0))?[Ht.$to_i(),M(M("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),kr,!1).$to_a())):xt["$<<"](Ut.$to_i())}),xt=C(xt["$empty?"]())?K:xt.$sort().$uniq()):C(ke["$key?"]("tag"))?C((Tt=ke["$[]"]("tag"))["$empty?"]())||Pe(Tt,"!")||(vt=C(Tt["$start_with?"]("!"))?tt(Tt.$slice(1,Tt.$length()),!1):tt(Tt,!0)):C(ke["$key?"]("tags"))&&(vt=Y([],{}),ze(S.$split_delimited_value(ke["$[]"]("tags")),"each",[],function(Ut){var Zt;return Ut==null&&(Ut=K),C(Ut["$empty?"]())||Pe(Ut,"!")?K:C(Ut["$start_with?"]("!"))?(Zt=[Ut.$slice(1,Ut.$length()),!1],ze(vt,"[]=",Zt),Zt[Zt.length-1]):(Zt=[Ut,!0],ze(vt,"[]=",Zt),Zt[Zt.length-1])}),C(vt["$empty?"]())&&(vt=K))),C(xt)){m=[[],K,0],St=m[0],Wt=m[1],Bt=m[2];try{ze(ht,"call",[Be,at],function(Ut){var Zt=K;return Ut==null&&(Ut=K),Zt=K,function(){try{var Cr=Me("break");return ze(Ut,"each_line",[],function(kr){var hn=K;if(kr==null&&(kr=K),Bt=_e(Bt,1),C(Zt)||G(M("Float"),hn=xt["$[]"](0))&&C(Zt=hn["$infinite?"]()))return Wt=C(de=Wt)?de:Bt,St["$<<"](kr);if(Pe(hn,Bt)&&(Wt=C(de=Wt)?de:Bt,St["$<<"](kr),xt.$shift()),C(xt["$empty?"]()))Cr.$throw();else return K})}catch(Ht){if(Ht===Cr)return Ht.$v;throw Ht}}()})}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+D+"["+o+"]")}finally{a.pop_exception()}else throw Jt}S.$shift(),C(Wt)&&(ke["$[]="]("partial-option",""),S.$push_include(St,Be,it,Wt,ke))}else if(C(vt)){m=[[],K,0,[],M("Set").$new(),K],St=m[0],Wt=m[1],Bt=m[2],er=m[3],Kt=m[4],Pt=m[5],C(vt["$key?"]("**"))?(Yt=Xt=vt.$delete("**"),C(vt["$key?"]("*"))?nr=vt.$delete("*"):Ue(Yt)&&Pe(vt.$values().$first(),!1)&&(nr=!0)):C(vt["$key?"]("*"))?Pe(vt.$keys().$first(),"*")?Yt=Xt=(nr=vt.$delete("*"))["$!"]():(Yt=Xt=!1,nr=vt.$delete("*")):Yt=Xt=vt["$value?"](!0)["$!"]();try{ze(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],ze(Ut,"each_line",[],function hn(Tr){var Sr,xn,Fr=hn.$$s==null?this:hn.$$s,Kr=K,Ps=K,Us=K;return Tr==null&&(Tr=K),Bt=_e(Bt,1),C(Tr["$include?"](Ht))&&C(Tr["$include?"](kr))&&C(ee("TagDirectiveRx")["$=~"](Tr))?(Kr=(Sr=et["~"])===K?K:Sr["$[]"](2),C((Sr=et["~"])===K?K:Sr["$[]"](1))?Pe(Kr,Pt)?(er.$pop(),xn=C(er["$empty?"]())?[K,Xt]:er["$[]"](-1),Sr=Ie(xn),Pt=Sr[0]==null?K:Sr[0],Yt=Sr[1]==null?K:Sr[1],xn):C(vt["$key?"](Kr))?(Ps=Fr.$create_include_cursor(Be,D,Bt),C(Us=ze(er,"rindex",[],function(Hs){return Hs==null&&(Hs=K),Hs["$=="](Kr)},{$$has_trailing_comma_in_args:!0}))?(Pe(Us,0)?er.$shift():er.$delete_at(Us),Fr.$logger().$warn(Fr.$message_with_context("mismatched end tag (expected '"+Pt+"' but found '"+Kr+"') at line "+Bt+" of include "+Xe+": "+Be,Y(["source_location","include_location"],{source_location:Fr.$cursor(),include_location:Ps})))):Fr.$logger().$warn(Fr.$message_with_context("unexpected end tag '"+Kr+"' at line "+Bt+" of include "+Xe+": "+Be,Y(["source_location","include_location"],{source_location:Fr.$cursor(),include_location:Ps})))):K:C(vt["$key?"](Kr))?(C(Yt=vt["$[]"](Kr))&&Kt["$<<"](Kr),er["$<<"]([Pt=Kr,Yt,Bt])):Ue(nr["$nil?"]())?(Yt=C(Pt)&&Ue(Yt)?!1:nr,er["$<<"]([Pt=Kr,Yt,Bt])):K):C(Yt)?(Wt=C(de=Wt)?de:Bt,St["$<<"](Tr)):K},{$$s:Cr})},{$$s:S})}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+D+"["+o+"]")}finally{a.pop_exception()}else throw Jt}C(er["$empty?"]())||ze(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,Y(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,D,Cr)})))},{$$s:S}),C((Yn=Ge(ze(vt,"keep_if",[],function(Ut,Zt){return Zt==null&&(Zt=K),Zt}).$keys(),Kt.$to_a()))["$empty?"]())||S.$logger().$warn(S.$message_with_context("tag"+(C(Oe(Yn.$size(),1))?"s":"")+" '"+Yn.$join(", ")+"' not found in include "+Xe+": "+Be,Y(["source_location"],{source_location:S.$cursor()}))),S.$shift(),C(Wt)&&(C(Xt)&&We(nr,!1)&&C(vt["$empty?"]())||ke["$[]="]("partial-option",""),S.$push_include(St,Be,it,Wt,ke))}else{tn=K;try{tn=ze(ht,"call",[Be,at],function(Ut){return Ut==null&&(Ut=K),Ut.$read()}),S.$shift()}catch(Jt){if(a.rescue(Jt,[ee("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,Y(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+D+"["+o+"]")}finally{a.pop_exception()}else throw Jt}S.$push_include(tn,Be,it,1,ke)}return!0}else return K}),V(q,"$resolve_include_path",function(g,o,m){var T,S=this,b=K,D=K,j=K;return b=S.document,C(ee("Helpers")["$uriish?"](g))||C(G(M("String"),S.dir)?K:g=""+S.dir+"/"+g)?C(b["$attr?"]("allow-uri-read"))?(C(b["$attr?"]("cache-uri"))?C((T=M("::","OpenURI","skip_raise"))&&M(T,"Cache","skip_raise")?"constant":K)||ee("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(ee("RUBY_ENGINE_OPAL"))&&M("OpenURI"),[M("URI").$parse(g),"uri",g]):S.$replace_next_line("link:"+g+"[role=include]"):(D=b.$normalize_system_path(g,S.dir,K,Y(["target_name"],{target_name:"include file"})),C(M("File")["$file?"](D))?(j=b.$path_resolver().$relative_path(D,b.$base_dir()),[D,"file",j]):C(m["$[]"]("optional-option"))?(ze(S.$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: "+D,Y(["source_location"],{source_location:le.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$error(S.$message_with_context("include file not found: "+D,Y(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+o+"]")))}),V(q,"$pop_include",function(){var g,o,m=this;return C(m.include_stack["$empty?"]())||(o=m.include_stack.$pop(),g=Ie(o),m.lines=g[0]==null?K:g[0],m.file=g[1]==null?K:g[1],m.dir=g[2]==null?K:g[2],m.path=g[3]==null?K:g[3],m.lineno=g[4]==null?K:g[4],m.maxdepth=g[5]==null?K:g[5],m.process_lines=g[6]==null?K:g[6],m.look_ahead=0),K}),V(q,"$split_delimited_value",function(g){return C(g["$include?"](","))?g.$split(","):g.$split(";")}),V(q,"$skip_front_matter!",function(g,o){var m=this,T=K,S=K,b=K,D=K,j=K;if(o==null&&(o=!0),!Pe(T=g["$[]"](0),"---"))return K;for(S=g.$drop(0),g.$shift(),b=[],C(o)&&(m.lineno=_e(m.lineno,1));!C(C(D=j=g["$empty?"]())?D:g["$[]"](0)["$=="](T));)b["$<<"](g.$shift()),C(o)&&(m.lineno=_e(m.lineno,1));return C(j)?(ze(g,"unshift",st(S)),C(o)&&(m.lineno=Ge(m.lineno,S.$size())),K):(g.$shift(),C(o)&&(m.lineno=_e(m.lineno,1)),b)},-2),V(q,"$resolve_expr_val",function(g){var o=this,m=K;return C(g["$start_with?"]('"'))&&C(g["$end_with?"]('"'))||C(g["$start_with?"]("'"))&&C(g["$end_with?"]("'"))?(m=!0,g=g.$slice(1,Ge(g.$length(),1))):m=!1,C(g["$include?"](ee("ATTR_REF_HEAD")))&&(g=o.document.$sub_attributes(g,Y(["attribute_missing"],{attribute_missing:"drop"}))),C(m)?g:C(g["$empty?"]())?K:Pe(g,"true")?!0:Pe(g,"false")?!1:C(g.$rstrip()["$empty?"]())?" ":C(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Te[0],oe("Reader"),Te)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.send2,y=a.find_super,Y=a.eqeqeq,Ue=a.truthy,G=a.rb_plus,Ie=a.def,C=a.alias,Oe=a.rb_gt,ze=a.eqeq,Ge=a.not,Me=a.send,Pe=a.defs,dt=[],We=a.nil;return a.add_stubs("attr_accessor,attr_reader,===,+,level,special,title,generate_id,>,==,sectnum,!,empty?,reftext,sub_placeholder,sub_quotes,compat_mode,[],attributes,context,assign_numeral,class,object_id,inspect,size,[]=,chr,length,gsub,downcase,delete,tr_s,end_with?,chop,start_with?,slice,key?,catalog,unique_id_start_index"),function(st,Ye){var Je=ae(st,"Asciidoctor"),$t=[Je].concat(Ye),z=a.$r($t);return function(et,E,tt){var lt=te(et,E,"Section"),K=[lt].concat(tt),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=We,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),Ie(lt,"$initialize",function we(Ne,Te,oe,ye){var Z;we.$$p;var F=this,q=We;return we.$$p=null,Ne==null&&(Ne=We),Te==null&&(Te=We),oe==null&&(oe=!1),ye==null&&(ye=V([],{})),_e(F,y(F,"initialize",we,!1,!0),"initialize",[Ne,"section",ye],null),Y(M("Section"),Ne)?(Z=[Ue(q=Te)?q:G(Ne.$level(),1),Ne.$special()],F.level=Z[0],F.special=Z[1]):(Z=[Ue(q=Te)?q:1,!1],F.level=Z[0],F.special=Z[1]),F.numbered=oe,F.index=0},-1),C(lt,"name","title"),Ie(lt,"$generate_id",function(){var Ne=this;return M("Section").$generate_id(Ne.$title(),Ne.document)}),Ie(lt,"$sections?",function(){var Ne=this;return Oe(Ne.next_section_index,0)}),Ie(lt,"$sectnum",function(Ne,Te){var oe=this,ye=We;return Ne==null&&(Ne="."),Te==null&&(Te=We),Te=Ue(ye=Te)?ye:ze(Te,!1)?"":Ne,Ue(Oe(oe.level,1))&&Y(M("Section"),oe.parent)?""+oe.parent.$sectnum(Ne,Ne)+oe.numeral+Te:""+oe.numeral+Te},-1),Ie(lt,"$xreftext",function(Ne){var Te=this,oe=We,ye=We,Z=We,F=We;if(Ne==null&&(Ne=We),Ue(oe=Te.$reftext())&&Ge(oe["$empty?"]()))return oe;if(Ue(Ne))if(Ue(Te.numbered))switch(Ne){case"full":return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Z=Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Z=Te.$sub_placeholder(Te.$sub_quotes(Ue(Te.document.$compat_mode())?"``%s''":'"`%s`"'),Te.$title()),Ue(F=Te.document.$attributes()["$[]"](""+ye+"-refsig"))?""+F+" "+Te.$sectnum(".",",")+" "+Z:""+Te.$sectnum(".",",")+" "+Z;case"short":return Ue(F=Te.document.$attributes()["$[]"](""+Te.sectname+"-refsig"))?""+F+" "+Te.$sectnum(".",""):Te.$sectnum(".","");default:return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Te.$title()}else return ze(ye=Te.sectname,"chapter")||ze(ye,"appendix")?Te.$sub_placeholder(Te.$sub_quotes("_%s_"),Te.$title()):Te.$title();else return Te.$title()},-1),Ie(lt,"$<<",function we(Ne){var Te=we.$$p||We,oe=this;return we.$$p=null,ze(Ne.$context(),"section")&&oe.$assign_numeral(Ne),_e(oe,y(oe,"<<",we,!1,!0),"<<",[Ne],Te)}),Ie(lt,"$to_s",function we(){var Ne=we.$$p||We,Te=this,oe=We;return we.$$p=null,Ue(Te.title)?(oe=Ue(Te.numbered)?""+Te.$sectnum()+" "+Te.title:Te.title,"#<"+Te.$class()+"@"+Te.$object_id()+" {level: "+Te.level+", title: "+oe.$inspect()+", blocks: "+Te.blocks.$size()+"}>"):_e(Te,y(Te,"to_s",we,!1,!0),"to_s",[],Ne)}),Pe(lt,"$generate_id",function(Ne,Te){var oe,ye=We,Z=We,F=We,q=We,ie=We,ee=We,$e=We,U=We,g=We,o=We;if(ye=Te.$attributes(),Z=Ue(F=ye["$[]"]("idprefix"))?F:"_",Ue(q=ye["$[]"]("idseparator"))?(ze(q.$length(),1)||Ge(ie=q["$empty?"]())&&Ue(q=(oe=["idseparator",q.$chr()],Me(ye,"[]=",oe),oe[oe.length-1])))&&(ee=ze(q,"-")||ze(q,".")?" .-":" "+q+".-"):(oe=["_"," _.-"],q=oe[0],ee=oe[1]),$e=""+Z+Ne.$downcase().$gsub(M("InvalidSectionIdCharsRx"),""),Ue(ie)?$e=$e.$delete(" "):($e=$e.$tr_s(ee,q),Ue($e["$end_with?"](q))&&($e=$e.$chop()),Ue(Z["$empty?"]())&&Ue($e["$start_with?"](q))&&($e=$e.$slice(1,$e.$length()))),Ue(Te.$catalog()["$[]"]("refs")["$key?"]($e))){for(U=Te.$catalog()["$[]"]("refs"),g=M("Compliance").$unique_id_start_index();Ue(U["$[]"](o=""+$e+q+g));)g=G(g,1);return o}else return $e})}($t[0],z("AbstractBlock"),$t)}(dt[0],dt)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.return_ivar,y=a.defs,Y=a.def,Ue=a.truthy,G=a.hash2,Ie=[],C=a.nil,Oe=a.$$$;return a.add_stubs("join,new,rstrip,read,primary_stylesheet_data,write,primary_stylesheet_name,stylesheet_basename,for,read_stylesheet,coderay_stylesheet_data,coderay_stylesheet_name,pygments_stylesheet_data,pygments_stylesheet_name"),function(ze,Ge){var Me=ae(ze,"Asciidoctor"),Pe=[Me].concat(Ge);return function(dt,We,st){var Ye=te(dt,We,"Stylesheets"),Je=[Ye].concat(st),$t=a.$r(Je),z=Ye.$$prototype;return z.primary_stylesheet_data=C,V(Je[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),V(Je[0],"STYLESHEETS_DIR",Oe("File").$join($t("DATA_DIR"),"stylesheets")),Ye.__instance__=Ye.$new(),y(Ye,"$instance",_e("__instance__")),Y(Ye,"$primary_stylesheet_name",function(){return $t("DEFAULT_STYLESHEET_NAME")}),Y(Ye,"$primary_stylesheet_data",function(){var E=this,tt=C;return E.primary_stylesheet_data=Ue(tt=E.primary_stylesheet_data)?tt:Oe("File").$read(Oe("File").$join($t("STYLESHEETS_DIR"),"asciidoctor-default.css"),G(["mode"],{mode:$t("FILE_READ_MODE")})).$rstrip()}),Y(Ye,"$embed_primary_stylesheet",function(){var E=this;return`<style>
414
- `+E.$primary_stylesheet_data()+`
415
- </style>`}),Y(Ye,"$write_primary_stylesheet",function(E){var tt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,tt.$primary_stylesheet_name()),tt.$primary_stylesheet_data(),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),Y(Ye,"$coderay_stylesheet_name",function(){return $t("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),Y(Ye,"$coderay_stylesheet_data",function(){return $t("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),Y(Ye,"$embed_coderay_stylesheet",function(){var E=this;return`<style>
416
- `+E.$coderay_stylesheet_data()+`
417
- </style>`}),Y(Ye,"$write_coderay_stylesheet",function(E){var tt=this;return E==null&&(E="."),Oe("File").$write(Oe("File").$join(E,tt.$coderay_stylesheet_name()),tt.$coderay_stylesheet_data(),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1),Y(Ye,"$pygments_stylesheet_name",function(E){return E==null&&(E=C),$t("SyntaxHighlighter").$for("pygments").$stylesheet_basename(E)},-1),Y(Ye,"$pygments_stylesheet_data",function(E){return E==null&&(E=C),$t("SyntaxHighlighter").$for("pygments").$read_stylesheet(E)},-1),Y(Ye,"$embed_pygments_stylesheet",function(E){var tt=this;return E==null&&(E=C),`<style>
418
- `+tt.$pygments_stylesheet_data(E)+`
419
- </style>`},-1),Y(Ye,"$write_pygments_stylesheet",function(E,tt){var lt=this;return E==null&&(E="."),tt==null&&(tt=C),Oe("File").$write(Oe("File").$join(E,lt.$pygments_stylesheet_name(tt)),lt.$pygments_stylesheet_data(tt),G(["mode"],{mode:$t("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(Ie[0],Ie)},Opal.modules["asciidoctor/table"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.def,y=a.alias,Y=a.hash2,Ue=a.send2,G=a.find_super,Ie=a.truthy,C=a.rb_lt,Oe=a.rb_gt,ze=a.eqeq,Ge=a.rb_times,Me=a.rb_divide,Pe=a.send,dt=a.rb_plus,We=a.rb_minus,st=a.return_val,Ye=a.to_a,Je=a.gvars,$t=a.neqeq,z=a.return_ivar,et=a.to_ary,E=a.regexp,tt=a.not,lt=a.thrower,K=[],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,Ne){var Te=ae(we,"Asciidoctor"),oe=[Te].concat(Ne),ye=a.$r(oe);return function(Z,F,q){var ie=te(Z,F,"Table"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.attributes=U.document=U.rows=U.has_header_option=U.columns=M,V(ee[0],"DEFAULT_PRECISION",4),function(g,o){var m=te(g,o,"Rows"),T=m.$$prototype;return T.head=T.body=T.foot=M,m.$attr_accessor("head","foot","body"),_e(m,"$initialize",function(b,D,j){var de=this;return b==null&&(b=[]),D==null&&(D=[]),j==null&&(j=[]),de.head=b,de.foot=D,de.body=j},-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 Y(["head","body","foot"],{head:b.head,body:b.body,foot:b.foot})})}(ee[0],null),ie.$attr_accessor("columns"),ie.$attr_accessor("rows"),ie.$attr_accessor("has_header_option"),ie.$attr_reader("caption"),_e(ie,"$initialize",function g(o,m){var T;g.$$p;var S=this,b=M,D=M,j=M;return g.$$p=null,Ue(S,G(S,"initialize",g,!1,!0),"initialize",[o,"table"],null),S.rows=$e("Rows").$new(),S.columns=[],S.has_header_option=!1,Ie(b=m["$[]"]("width"))?(Ie(Oe(D=b.$to_i(),100))||Ie(C(D,1)))&&(ze(D,0)&&(ze(b,"0")||ze(b,"0%"))||(D=100)):D=100,S.attributes["$[]="]("tablepcwidth",D),Ie(S.document.$attributes()["$[]"]("pagewidth"))&&S.attributes["$[]="]("tableabswidth",ze(j=Ge(Me(D,100),S.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate($e("DEFAULT_PRECISION")),j.$to_i())?j.$to_i():j),Ie(m["$[]"]("rotate-option"))?(T=["orientation","landscape"],Pe(S.attributes,"[]=",T),T[T.length-1]):M}),_e(ie,"$header_row?",function(){var o=this,m=M;return Ie(m=o.has_header_option)&&Ie(o.rows.$body()["$empty?"]())?m:M}),_e(ie,"$create_columns",function(o){var m=this,T=M,S=M,b=M,D=M;return T=[],S=M,b=0,Pe(o,"each",[],function j(de){var le=j.$$s==null?this:j.$$s,ke=M,Be=M;return de==null&&(de=M),ke=de["$[]"]("width"),T["$<<"]($e("Column").$new(le,T.$size(),de)),Ie(C(ke,0))?(S=Ie(Be=S)?Be:[])["$<<"](T["$[]"](-1)):b=dt(b,ke)},{$$s:m}),Ie(Oe(D=(m.columns=T).$size(),0))&&(m.attributes["$[]="]("colcount",D),Ie(Oe(b,0))||Ie(S)||(b=M),m.$assign_column_widths(b,S)),M}),_e(ie,"$assign_column_widths",function(o,m){var T=this,S=M,b=M,D=M,j=M,de=M;return o==null&&(o=M),m==null&&(m=M),S=$e("DEFAULT_PRECISION"),b=D=0,Ie(o)?(Ie(m)&&(Ie(Oe(o,100))?(j=0,T.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+o+"%")):(j=Me(We(100,o),m.$size()).$truncate(S),ze(j.$to_i(),j)&&(j=j.$to_i()),o=100),de=Y(["width","autowidth-option"],{width:j,"autowidth-option":""}),Pe(m,"each",[],function(ke){return ke==null&&(ke=M),ke.$update_attributes(de)})),Pe(T.columns,"each",[],function(ke){return ke==null&&(ke=M),b=dt(b,D=ke.$assign_width(M,o,S))})):(D=Me(100,T.columns.$size()).$truncate(S),ze(D.$to_i(),D)&&(D=D.$to_i()),Pe(T.columns,"each",[],function(ke){return ke==null&&(ke=M),b=dt(b,ke.$assign_width(D,M,S))})),ze(b,100)||T.columns["$[]"](-1).$assign_width(dt(We(100,b),D).$round(S),M,S),M},-1),_e(ie,"$partition_header_footer",function(o){var m,T=this,S=M,b=M;return S=(m=["rowcount",(b=T.rows.$body()).$size()],Pe(T.attributes,"[]=",m),m[m.length-1]),Ie(Oe(S,0))&&(Ie(T.has_header_option)?(T.rows["$head="]([Pe(b.$shift(),"map",[],function(j){return j==null&&(j=M),j.$reinitialize(!0)})]),S=We(S,1)):Ie(T.has_header_option["$nil?"]())&&(T.has_header_option=!1,b.$unshift(Pe(b.$shift(),"map",[],function(j){return j==null&&(j=M),j.$reinitialize(!1)})))),Ie(Oe(S,0))&&Ie(o["$[]"]("footer-option"))&&T.rows["$foot="]([b.$pop()]),M})}(oe[0],ye("AbstractBlock"),oe),function(Z,F){var q=te(Z,F,"Column"),ie=q.$$prototype;return ie.attributes=M,q.$attr_accessor("style"),_e(q,"$initialize",function ee($e,U,g){ee.$$p;var o=this;return ee.$$p=null,g==null&&(g=Y([],{})),Ue(o,G(o,"initialize",ee,!1,!0),"initialize",[$e,"table_column"],null),o.style=g["$[]"]("style"),g["$[]="]("colnumber",dt(U,1)),Ie(g["$[]"]("width"))||g["$[]="]("width",1),Ie(g["$[]"]("halign"))||g["$[]="]("halign","left"),Ie(g["$[]"]("valign"))||g["$[]="]("valign","top"),o.$update_attributes(g)},-3),y(q,"table","parent"),_e(q,"$assign_width",function($e,U,g){var o,m=this,T=M;return Ie(U)&&($e=Me(Ge(m.attributes["$[]"]("width").$to_f(),100),U).$truncate(g),ze($e.$to_i(),$e)&&($e=$e.$to_i())),Ie(m.$parent().$attributes()["$[]"]("tableabswidth"))&&m.attributes["$[]="]("colabswidth",ze(T=Ge(Me($e,100),m.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),T.$to_i())?T.$to_i():T),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(Z,F,q){var ie=te(Z,F,"Cell"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.document=U.reinitialize_args=U.attributes=U.cursor=U.text=U.subs=U.style=U.inner_document=U.source_location=U.colspan=U.rowspan=M,V(ee[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,T,S){var b;g.$$p;var D=this,j=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,mt=M,yt=M,xt=M,vt=M;if(g.$$p=null,T==null&&(T=Y([],{})),S==null&&(S=Y([],{})),Ue(D,G(D,"initialize",g,!1,!0),"initialize",[o,"table_cell"],null),D.cursor=D.reinitialize_args=M,Ie(D.document.$sourcemap())&&(D.source_location=S["$[]"]("cursor").$dup()),Ie(o)&&(Ie(j=o.$table()["$header_row?"]())?ze(j,"implicit")&&Ie(de=Ie(le=o.$style())?le:Ie(ke=T)?T["$[]"]("style"):ke)&&((ze(de,"asciidoc")||ze(de,"literal"))&&(D.reinitialize_args=[o,m,Ie(le=T)?T.$merge():le,S]),de=M):de=o.$style(),D.$update_attributes(o.$attributes())),Ie(T))switch(Ie(T["$empty?"]())?D.colspan=D.rowspan=M:(b=[T.$delete("colspan"),T.$delete("rowspan")],D.colspan=b[0],D.rowspan=b[1],Ie(j)||(de=Ie(le=T["$[]"]("style"))?le:de),D.$update_attributes(T)),de){case"asciidoc":if(Be=!0,Xe=S["$[]"]("cursor"),Ie((m=m.$rstrip())["$start_with?"]($e("LF")))){for(it=1;Ie((m=m.$slice(1,m.$length()))["$start_with?"]($e("LF")));)it=dt(it,1);Xe.$advance(it)}else m=m.$lstrip();break;case"literal":for(ht=!0,m=m.$rstrip();Ie(m["$start_with?"]($e("LF")));)m=m.$slice(1,m.$length());break;default:at=!0,m=Ie(m)?m.$strip():""}else D.colspan=D.rowspan=M,ze(de,"asciidoc")&&(Be=!0,Xe=S["$[]"]("cursor"));return Ie(Be)?(mt=D.document.$attributes().$delete("doctitle"),yt=m.$split($e("LF"),-1),Ie(yt["$empty?"]())||Ie((xt=yt["$[]"](0))["$include?"]("::"))&&(vt=$e("PreprocessorReader").$new(D.document,[xt]).$readlines(),ze(xt,vt["$[]"](0))&&Ie(C(vt.$size(),2))||(yt.$shift(),Ie(vt["$empty?"]())||Pe(yt,"unshift",Ye(vt)))),D.inner_document=$e("Document").$new(yt,Y(["standalone","parent","cursor"],{standalone:!1,parent:D.document,cursor:Xe})),Ie(mt["$nil?"]())||D.document.$attributes()["$[]="]("doctitle",mt),D.subs=M):Ie(ht)?(D.content_model="verbatim",D.subs=$e("BASIC_SUBS")):(Ie(at)&&(Ie(j)?D.cursor=S["$[]"]("cursor"):D.$catalog_inline_anchor(m,S["$[]"]("cursor"))),D.content_model="simple",D.subs=$e("NORMAL_SUBS")),D.text=m,D.style=de},-3),_e(ie,"$reinitialize",function(o){var m=this;if(Ie(o))m.reinitialize_args=M;else{if(Ie(m.reinitialize_args))return Pe(He($e("Table"),"Cell"),"new",Ye(m.reinitialize_args));m.style=m.attributes["$[]"]("style")}return Ie(m.cursor)&&m.$catalog_inline_anchor(),m}),_e(ie,"$catalog_inline_anchor",function(o,m){var T,S=this;return o==null&&(o=S.text),m==null&&(m=M),Ie(m)||(T=[S.cursor,M],m=T[0],S.cursor=T[1]),Ie(o["$start_with?"]("[["))&&Ie($e("LeadingInlineAnchorRx")["$=~"](o))?$e("Parser").$catalog_inline_anchor((T=Je["~"])===M?M:T["$[]"](1),(T=Je["~"])===M?M:T["$[]"](2),S,m,S.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,T=M;return ze(m=o.style,"asciidoc")?o.inner_document.$convert():Ie(o.text["$include?"]($e("DOUBLE_LF")))?Pe(o.$text().$split($e("BlankLineRx")),"map",[],function S(b){var D=S.$$s==null?this:S.$$s;return b==null&&(b=M),Ie(m)&&$t(m,"header")?$e("Inline").$new(D.$parent(),"quoted",b,Y(["type"],{type:m})).$convert():b},{$$s:o}):Ie((T=o.$text())["$empty?"]())?[]:Ie(m)&&$t(m,"header")?[$e("Inline").$new(o.$parent(),"quoted",T,Y(["type"],{type:m})).$convert()]:[T]}),_e(ie,"$lines",function(){var o=this;return o.text.$split($e("LF"))}),_e(ie,"$source",z("text")),_e(ie,"$file",function(){var o=this,m=M;return Ie(m=o.source_location)?o.source_location.$file():m}),_e(ie,"$lineno",function(){var o=this,m=M;return Ie(m=o.source_location)?o.source_location.$lineno():m}),_e(ie,"$to_s",function g(){var o=g.$$p||M,m=this,T=M;return g.$$p=null,""+Ue(m,G(m,"to_s",g,!1,!0),"to_s",[],o)+" - [text: "+m.text+", colspan: "+(Ie(T=m.colspan)?T:1)+", rowspan: "+(Ie(T=m.rowspan)?T:1)+", attributes: "+m.attributes+"]"})}(ye("Table"),ye("AbstractBlock"),oe),function(Z,F,q){var ie=te(Z,F,"ParserContext"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.delimiter=U.delimiter_rx=U.buffer=U.cellspecs=U.cell_open=U.format=U.start_cursor_data=U.reader=U.table=U.current_row=U.colcount=U.column_visits=U.active_rowspans=U.linenum=M,ie.$include($e("Logging")),V(ee[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),V(ee[0],"DELIMITERS",Y(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ie.$attr_accessor("table"),ie.$attr_accessor("format"),ie.$attr_reader("colcount"),ie.$attr_accessor("buffer"),ie.$attr_reader("delimiter"),ie.$attr_reader("delimiter_re"),_e(ie,"$initialize",function(o,m,T){var S,b,D=this,j=M,de=M;return T==null&&(T=Y([],{})),D.start_cursor_data=(D.reader=o).$mark(),D.table=m,Ie(T["$key?"]("format"))?Ie($e("FORMATS")["$include?"](j=T["$[]"]("format")))?ze(j,"tsv")?D.format="csv":ze(D.format=j,"psv")&&Ie(m.$document()["$nested?"]())&&(j="!sv"):(D.$logger().$error(D.$message_with_context("illegal table format: "+j,Y(["source_location"],{source_location:o.$cursor_at_prev_line()}))),S=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],D.format=S[0],j=S[1]):(S=["psv",Ie(m.$document()["$nested?"]())?"!sv":"psv"],D.format=S[0],j=S[1]),Ie(T["$key?"]("separator"))?Ie((de=T["$[]"]("separator"))["$nil_or_empty?"]())?(b=$e("DELIMITERS")["$[]"](j),S=et(b),D.delimiter=S[0]==null?M:S[0],D.delimiter_rx=S[1]==null?M:S[1]):ze(de,"\\t")?(b=$e("DELIMITERS")["$[]"]("tsv"),S=et(b),D.delimiter=S[0]==null?M:S[0],D.delimiter_rx=S[1]==null?M:S[1]):(S=[de,E([He("Regexp").$escape(de)])],D.delimiter=S[0],D.delimiter_rx=S[1]):(b=$e("DELIMITERS")["$[]"](j),S=et(b),D.delimiter=S[0]==null?M:S[0],D.delimiter_rx=S[1]==null?M:S[1]),D.colcount=Ie(m.$columns()["$empty?"]())?-1:m.$columns().$size(),D.buffer="",D.cellspecs=[],D.cell_open=!1,D.active_rowspans=[0],D.column_visits=0,D.current_row=[],D.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 T=this,S=M,b=M,D=M,j=M;return o==null&&(o=M),m==null&&(m='"'),ze(S=Ie(o)?dt(T.buffer,o).$strip():T.buffer.$strip(),m)?!0:Ie(S["$start_with?"](m))?(b=dt(m,m),Ie(D=S["$end_with?"](m))&&Ie(S["$end_with?"](b))||Ie(S["$start_with?"](b))?Ie(j=(S=S.$gsub(b,""))["$start_with?"](m))?S["$end_with?"](m)["$!"]():j:D["$!"]()):!1},-1),_e(ie,"$take_cellspec",function(){var o=this;return o.cellspecs.$shift()}),_e(ie,"$push_cellspec",function(o){var m=this,T=M;return o==null&&(o=Y([],{})),m.cellspecs["$<<"](Ie(T=o)?T:Y([],{})),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?",z("cell_open")),_e(ie,"$cell_closed?",function(){var o=this;return o.cell_open["$!"]()}),_e(ie,"$close_open_cell",function(o){var m=this;return o==null&&(o=Y([],{})),m.$push_cellspec(o),Ie(m["$cell_open?"]())&&m.$close_cell(!0),m.$advance(),M},-1),_e(ie,"$close_cell",function(o){try{var m=lt("return"),T=this,S=M,b=M,D=M,j=M,de=M;return o==null&&(o=!1),ze(T.format,"psv")?(S=T.buffer,T.buffer="",Ie(b=T.$take_cellspec())?D=Ie(j=b.$delete("repeatcol"))?j:1:(T.$logger().$error(T.$message_with_context("table missing leading separator; recovering automatically",Y(["source_location"],{source_location:Pe(He($e("Reader"),"Cursor"),"new",Ye(T.start_cursor_data))}))),b=Y([],{}),D=1)):(S=T.buffer.$strip(),T.buffer="",b=M,D=1,ze(T.format,"csv")&&tt(S["$empty?"]())&&Ie(S["$include?"](de='"'))&&(Ie(S["$start_with?"](de))&&Ie(S["$end_with?"](de))?Ie(S=S.$slice(1,We(S.$length(),2)))?S=S.$strip().$squeeze(de):(T.$logger().$error(T.$message_with_context("unclosed quote in CSV data; setting cell to empty",Y(["source_location"],{source_location:T.reader.$cursor_at_prev_line()}))),S=""):S=S.$squeeze(de))),Pe(1,"upto",[D],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),ze(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He($e("Table"),"Column").$new(Be.table,We(dt(Be.table.$columns().$size(),ke),1))),Ie(b)&&Ie(b["$key?"]("colspan"))&&Ie(Oe(it=We(b["$[]"]("colspan").$to_i(),1),0))&&(ht=Be.table.$columns().$size(),Pe(it,"times",[],function mt(yt){var xt=mt.$$s==null?this:mt.$$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}))):Ie(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",Y(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),m.$throw()),at=He($e("Table"),"Cell").$new(Xe,S,b,Y(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),tt(at.$rowspan())||ze(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),Ie(j=at.$colspan())?j:1),Be.column_visits=dt(Be.column_visits,Ie(j=at.$colspan())?j:1),Be.current_row["$<<"](at),Ie(Be["$end_of_row?"]())&&($t(Be.colcount,-1)||Ie(Oe(Be.linenum,0))||Ie(o)&&ze(ke,D))?Be.$close_row():M},{$$s:T,$$ret:m}),T.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),ze(o.colcount,-1)&&(o.colcount=o.column_visits),o.column_visits=0,o.current_row=[],o.active_rowspans.$shift(),Ie(o.active_rowspans["$[]"](0))||o.active_rowspans["$[]="](0,0),M}),_e(ie,"$activate_rowspan",function(o,m){var T=this;return Pe(1,"upto",[We(o,1)],function S(b){var D,j=S.$$s==null?this:S.$$s,de=M;return j.active_rowspans==null&&(j.active_rowspans=M),b==null&&(b=M),D=[b,dt(Ie(de=j.active_rowspans["$[]"](b))?de:0,m)],Pe(j.active_rowspans,"[]=",D),D[D.length-1]},{$$s:T}),M}),_e(ie,"$end_of_row?",function(){var o=this,m=M;return Ie(m=o.colcount["$=="](-1))?m:o.$effective_column_visits()["$=="](o.colcount)}),_e(ie,"$effective_column_visits",function(){var o=this;return dt(o.column_visits,o.active_rowspans["$[]"](0))}),_e(ie,"$advance",function(){var o=this;return o.linenum=dt(o.linenum,1)})}(ye("Table"),null,oe)}(K[0],K)},Opal.modules["asciidoctor/writer"]=function(a){var ae=a.module,te=a.truthy,V=a.rb_plus,_e=a.hash2,y=a.def,Y=a.return_val,Ue=[],G=a.nil,Ie=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(C,Oe){var ze=ae(C,"Asciidoctor"),Ge=[ze].concat(Oe);return function(Me,Pe){var dt=ae(Me,"Writer"),We=[dt].concat(Pe),st=a.$r(We);return y(dt,"$write",function(Je,$t){return te($t["$respond_to?"]("write"))?$t.$write(V(Je.$chomp(),st("LF"))):Ie("File").$write($t,Je,_e(["mode"],{mode:st("FILE_WRITE_MODE")})),G})}(Ge[0],Ge),function(Me,Pe){var dt=ae(Me,"VoidWriter"),We=[dt].concat(Pe),st=a.$r(We);return dt.$include(st("Writer")),y(dt,"$write",Y(G))}(Ge[0],Ge)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var ae=a.module,te=a.hash2,V=a.truthy,_e=a.neqeq,y=a.not,Y=a.eqeqeq,Ue=a.send,G=a.to_ary,Ie=a.rb_plus,C=a.eqeq,Oe=a.def,ze=[],Ge=a.nil,Me=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 We=ae(Pe,"Asciidoctor"),st=[We].concat(dt);return function(Ye,Je){var $t=[Ye].concat(Je),z=a.$r($t);return Oe(Ye,"$load",function(E,tt){var lt,K,M,He,we=this,Ne=Ge,Te=Ge,oe=Ge,ye=Ge,Z=Ge,F=Ge,q=Ge,ie=Ge,ee=Ge,$e=Ge;tt==null&&(tt=te([],{}));try{if(tt=tt.$merge(),V(Ne=tt["$[]"]("timings"))&&Ne.$start("read"),V(tt["$key?"]("logger"))&&_e(Te=tt["$[]"]("logger"),z("LoggerManager").$logger())&&z("LoggerManager")["$logger="](V(oe=Te)?oe:z("NullLogger").$new()),y(ye=tt["$[]"]("attributes"))?ye=te([],{}):Y(Me("Hash"),ye)?ye=ye.$merge():V((M=Me("::","Java","skip_raise"))&&(K=Me(M,"JavaUtil","skip_raise"))&&(lt=Me(K,"Map","skip_raise"))?"constant":Ge)&&Y(Me(Me(Me("Java"),"JavaUtil"),"Map"),ye)?ye=ye.$dup():Y(Me("Array"),ye)?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye,"each",[],function(m){var T,S,b=Ge,D=Ge,j=Ge;return m==null&&(m=Ge),S=m.$partition("="),T=G(S),b=T[0]==null?Ge:T[0],D=T[1]==null?Ge:T[1],j=T[2]==null?Ge:T[2],T=[b,j],Ue(g,"[]=",T),T[T.length-1]})}):Y(Me("String"),ye)?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$gsub(z("SpaceDelimiterRx"),Ie("\\1",z("NULL"))).$gsub(z("EscapedSpaceRx"),"\\1").$split(z("NULL")),"each",[],function(m){var T,S,b=Ge,D=Ge,j=Ge;return m==null&&(m=Ge),S=m.$partition("="),T=G(S),b=T[0]==null?Ge:T[0],D=T[1]==null?Ge:T[1],j=T[2]==null?Ge:T[2],T=[b,j],Ue(g,"[]=",T),T[T.length-1]})}):V(ye["$respond_to?"]("keys"))&&V(ye["$respond_to?"]("[]"))?ye=Ue(te([],{}),"tap",[],function(g){return g==null&&(g=Ge),Ue(ye.$keys(),"each",[],function(m){var T;return m==null&&(m=Ge),T=[m,ye["$[]"](m)],Ue(g,"[]=",T),T[T.length-1]})}):we.$raise(Me("ArgumentError"),"illegal type for attributes option: "+ye.$class().$ancestors().$join(" < ")),Y(Me("File"),E))tt["$[]="]("input_mtime",C(z("RUBY_ENGINE"),"jruby")?Me("Time").$at(E.$mtime().$to_i()):E.$mtime()),ye["$[]="]("docfile",Z=Me("File").$absolute_path(E.$path())),ye["$[]="]("docdir",Me("File").$dirname(Z)),ye["$[]="]("docname",z("Helpers").$basename(Z,(He=["docfilesuffix",z("Helpers").$extname(Z)],Ue(ye,"[]=",He),He[He.length-1]))),F=E.$read();else if(V(E["$respond_to?"]("read"))){try{E.$rewind()}catch(U){if(a.rescue(U,[z("StandardError")]))try{}finally{a.pop_exception()}else throw U}F=E.$read()}else Y(Me("String"),E)?F=E:Y(Me("Array"),E)?F=E.$drop(0):V(E)&&we.$raise(Me("ArgumentError"),"unsupported input type: "+E.$class());return V(Ne)&&(Ne.$record("read"),Ne.$start("parse")),tt["$[]="]("attributes",ye),q=C(tt["$[]"]("parse"),!1)?z("Document").$new(F,tt):z("Document").$new(F,tt).$parse(),V(Ne)&&Ne.$record("parse"),q}catch(U){if(a.rescue(U,[z("StandardError")])){ie=U;try{try{ee="asciidoctor: FAILED: "+(V(oe=ye["$[]"]("docfile"))?oe:"<stdin>")+": Failed to load AsciiDoc document",V(ie["$respond_to?"]("exception"))?($e=ie.$exception(""+ee+" - "+ie.$message()),$e.$set_backtrace(ie.$backtrace())):($e=ie.$class().$new(ee,ie),$e["$stack_trace="](ie.$stack_trace()))}catch(g){if(a.rescue(g,[z("StandardError")]))try{$e=ie}finally{a.pop_exception()}else throw g}return we.$raise($e)}finally{a.pop_exception()}}else throw U}},-2),Oe(Ye,"$load_file",function(E,tt){var lt=this;return tt==null&&(tt=te([],{})),Ue(Me("File"),"open",[E,z("FILE_READ_MODE")],function K(M){var He=K.$$s==null?this:K.$$s;return M==null&&(M=Ge),He.$load(M,tt)},{$$s:lt})},-2)}(a.get_singleton_class(We),st)}(ze[0],ze)},Opal.modules["asciidoctor/convert"]=function(a){var ae=a.module,te=a.hash2,V=a.eqeqeq,_e=a.truthy,y=a.eqeq,Y=a.rb_ge,Ue=a.not,G=a.rb_lt,Ie=a.neqeq,C=a.def,Oe=a.send,ze=a.alias,Ge=[],Me=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,We){var st=ae(dt,"Asciidoctor"),Ye=[st].concat(We);return function(Je,$t){var z=[Je].concat($t),et=a.$r(z);return C(Je,"$convert",function(tt,lt){var K=this,M=Me,He=Me,we=Me,Ne=Me,Te=Me,oe=Me,ye=Me,Z=Me,F=Me,q=Me,ie=Me,ee=Me,$e=Me,U=Me,g=Me,o=Me,m=Me,T=Me,S=Me,b=Me,D=Me,j=Me,de=Me,le=Me;if(lt==null&&(lt=te([],{})),(lt=lt.$merge()).$delete("parse"),M=lt.$delete("to_dir"),He=lt.$delete("mkdirs"),V(!0,we=Ne=lt.$delete("to_file"))||V(Me,we))_e(Te=M)||V(Pe("File"),tt)&&(oe=Pe("File").$absolute_path(tt.$path())),Ne=Me;else if(V(!1,we))Ne=Me;else{if(V("/dev/null",we))return K.$load(tt,lt);_e(ye=Ne["$respond_to?"]("write"))||lt["$[]="]("to_file",Te=Ne)}return _e(lt["$key?"]("standalone"))||(_e(oe)||_e(Te)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):_e(lt["$key?"]("header_footer"))&&lt["$[]="]("standalone",lt["$[]"]("header_footer"))),_e(oe)?lt["$[]="]("to_dir",Z=Pe("File").$dirname(oe)):_e(Te)&&(_e(M)?_e(Ne)?lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ne,M))):lt["$[]="]("to_dir",Pe("File").$expand_path(M)):_e(Ne)&&lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ne)))),F=K.$load(tt,lt),_e(oe)?(q=Pe("File").$join(Z,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix()),y(q,oe)&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q)):_e(Te)?(ie=_e(lt["$key?"]("base_dir"))?Pe("File").$expand_path(lt["$[]"]("base_dir")):Pe("Dir").$pwd(),ee=_e(Y(F.$safe(),Pe(et("SafeMode"),"SAFE")))?ie:Me,_e(M)?(Z=F.$normalize_system_path(M,ie,ee,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),_e(Ne)?(q=F.$normalize_system_path(Ne,Z,Me,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),Z=Pe("File").$dirname(q)):q=Pe("File").$join(Z,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix())):_e(Ne)&&(q=F.$normalize_system_path(Ne,ie,ee,te(["target_name","recover"],{target_name:"to_dir",recover:!1})),Z=Pe("File").$dirname(q)),V(Pe("File"),tt)&&y(q,Pe("File").$absolute_path(tt.$path()))&&K.$raise(Pe("IOError"),"input file and output file cannot be the same: "+q),_e(He)?et("Helpers").$mkdir_p(Z):_e(Pe("File")["$directory?"](Z))||K.$raise(Pe("IOError"),"target directory does not exist: "+M+" (hint: set :mkdirs option)")):(q=Ne,Z=Me),_e(q)&&Ue(ye)?$e=F.$convert(te(["outfile","outdir"],{outfile:q,outdir:Z})):$e=F.$convert(),_e(q)?(F.$write($e,q),Ue(ye)&&_e(G(F.$safe(),Pe(et("SafeMode"),"SECURE")))&&_e(F["$attr?"]("linkcss"))&&_e(F["$attr?"]("copycss"))&&_e(F["$basebackend?"]("html"))&&Ue(_e(we=U=F.$attr("stylesdir"))?et("Helpers")["$uriish?"](U):we)&&(_e(g=F.$attr("stylesheet"))&&(_e(et("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?o=!0:Ue(et("Helpers")["$uriish?"](g))&&(m=!0)),T=_e(we=S=F.$syntax_highlighter())?S["$write_stylesheet?"](F):we,(_e(o)||_e(m)||_e(T))&&(b=F.$normalize_system_path(U,Z,_e(Y(F.$safe(),Pe(et("SafeMode"),"SAFE")))?Z:Me),_e(He)?et("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)?et("Stylesheets").$instance().$write_primary_stylesheet(b):_e(m)&&(y(D=F.$attr("copycss"),"")||y(D,!0)?D=F.$normalize_system_path(g):D=F.$normalize_system_path(D.$to_s()),j=F.$normalize_system_path(g,b,_e(Y(F.$safe(),Pe(et("SafeMode"),"SAFE")))?Z:Me),Ie(D,j)&&_e(de=F.$read_asset(D,te(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](j)["$!"](),label:"stylesheet"})))&&(Ie(le=Pe("File").$dirname(j),b)&&Ue(Pe("File")["$directory?"](le))&&(_e(He)?et("Helpers").$mkdir_p(le):K.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+le+" (hint: set :mkdirs option)")),Pe("File").$write(j,de,te(["mode"],{mode:et("FILE_WRITE_MODE")})))),_e(T)&&S.$write_stylesheet(F,b))),F):$e},-2),C(Je,"$convert_file",function(tt,lt){var K=this;return lt==null&&(lt=te([],{})),Oe(Pe("File"),"open",[tt,et("FILE_READ_MODE")],function M(He){var we=M.$$s==null?this:M.$$s;return He==null&&(He=Me),we.$convert(He,lt)},{$$s:K})},-2),ze(Je,"render","convert"),ze(Je,"render_file","convert_file")}(a.get_singleton_class(st),Ye)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ae=a.module,te=a.klass,V=a.slice,_e=a.send2,y=a.find_super,Y=a.to_a,Ue=a.def,G=a.hash2,Ie=a.send,C=a.truthy,Oe=a.return_val,ze=a.eqeq,Ge=[],Me=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(dt,We){var st=ae(dt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye);return function($t,z,et){var E=te($t,z,"HighlightJsAdapter"),tt=[E].concat(et),lt=a.$r(tt);return E.$register_for("highlightjs","highlight.js"),Ue(E,"$initialize",function K(M){var He,we,Ne=K.$$p||Me,Te=this;return K.$$p=null,He=V(arguments),we=He,_e(Te,y(Te,"initialize",K,!1,!0),"initialize",Y(we),Ne),Te.name=Te.pre_class="highlightjs"},-1),Ue(E,"$format",function K(M,He,we){K.$$p;var Ne=this;return K.$$p=null,_e(Ne,y(Ne,"format",K,!1,!0),"format",[M,He,we.$merge(G(["transform"],{transform:Ie(Ne,"proc",[],function(oe,ye){var Z,F=Me;return ye==null&&(ye=Me),Z=["class","language-"+(C(F=He)?F:"none")+" hljs"],Ie(ye,"[]=",Z),Z[Z.length-1]})}))],null)}),Ue(E,"$docinfo?",Oe(!0)),Ue(E,"$docinfo",function(M,He,we){var Ne=Me;return Ne=He.$attr("highlightjsdir",""+we["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),ze(M,"head")?'<link rel="stylesheet" href="'+Ne+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+we["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ne+`/highlight.min.js"><\/script>
420
- `+(C(He["$attr?"]("highlightjs-languages"))?Ie(He.$attr("highlightjs-languages").$split(","),"map",[],function(oe){return oe==null&&(oe=Me),'<script src="'+Ne+"/languages/"+oe.$lstrip()+`.min.js"><\/script>
421
- `}).$join():"")+`<script>
422
- if (!hljs.initHighlighting.called) {
423
- hljs.initHighlighting.called = true
424
- ;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
425
- }
426
- <\/script>`})}(Je("SyntaxHighlighter"),Pe(Je("SyntaxHighlighter"),"Base"),Ye)}(Ge[0],Ge)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ae=a.module,te=a.hash2,V=a.def,_e=a.return_val,y=a.defs,Y=a.slice,Ue=a.send,G=a.to_a,Ie=a.truthy,C=a.eqeqeq,Oe=a.Class,ze=a.klass,Ge=a.class_variable_set,Me=a.class_variable_get,Pe=a.top,dt=[],We=a.nil,st=a.$$$;return a.add_stubs("attr_reader,raise,class,extend,private_class_method,register,map,to_s,each,[]=,registry,[],for,===,new,name,private,include,delete,join,content"),function(Ye,Je){var $t=ae(Ye,"Asciidoctor"),z=[$t].concat(Je);return function(et,E){var tt=ae(et,"SyntaxHighlighter"),lt=[tt].concat(E),K=a.$r(lt);return tt.$attr_reader("name"),V(tt,"$initialize",function(He,we,Ne){var Te=this;return Ne==null&&(Ne=te([],{})),Te.name=Te.pre_class=He},-2),V(tt,"$docinfo?",_e(We)),V(tt,"$docinfo",function(He,we,Ne){var Te=this;return Te.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Te.$class()+" must implement the #docinfo method since #docinfo? returns true")}),V(tt,"$highlight?",_e(We)),V(tt,"$highlight",function(He,we,Ne,Te){var oe=this;return oe.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+oe.$class()+" must implement the #highlight method since #highlight? returns true")}),V(tt,"$format",function(He,we,Ne){var Te=this;return Te.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Te.$class()+" must implement the #format method")}),V(tt,"$write_stylesheet?",_e(We)),V(tt,"$write_stylesheet",function(He,we){var Ne=this;return Ne.$raise(st("NotImplementedError"),""+K("SyntaxHighlighter")+" subclass "+Ne.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),y(tt,"$included",function(He){return He.$extend(K("Config"))}),tt.$private_class_method("included"),function(M,He){var we=ae(M,"Config"),Ne=[we].concat(He),Te=a.$r(Ne);return V(we,"$register_for",function(ye){var Z,F,q=this;return Z=Y(arguments),F=Z,Ue(Te("SyntaxHighlighter"),"register",[q].concat(G(Ue(F,"map",[],function(ee){return ee==null&&(ee=We),ee.$to_s()}))))},-1)}(lt[0],lt),function(M,He){var we=ae(M,"Factory"),Ne=[we].concat(He),Te=a.$r(Ne);return V(we,"$register",function(ye,Z){var F,q,ie=this;return F=Y(arguments,1),q=F,Ue(q,"each",[],function ee($e){var U,g=ee.$$s==null?this:ee.$$s;return $e==null&&($e=We),U=[$e,ye],Ue(g.$registry(),"[]=",U),U[U.length-1]},{$$s:ie})},-2),V(we,"$for",function(ye){var Z=this;return Z.$registry()["$[]"](ye)}),V(we,"$create",function(ye,Z,F){var q=this,ie=We;return Z==null&&(Z="html5"),F==null&&(F=te([],{})),Ie(ie=q.$for(ye))?(C(Oe,ie)&&(ie=ie.$new(ye,Z,F)),Ie(ie.$name())||q.$raise(st("NameError"),""+ie.$class()+" must specify a value for `name'"),ie):We},-2),we.$private(),V(we,"$registry",function(){var ye=this;return ye.$raise(st("NotImplementedError"),""+Te("Factory")+" subclass "+ye.$class()+" must implement the #registry method")})}(lt[0],lt),function(M,He,we){var Ne=ze(M,He,"CustomFactory"),Te=[Ne].concat(we),oe=a.$r(Te);return Ne.$include(oe("Factory")),V(Ne,"$initialize",function(Z){var F=this,q=We;return Z==null&&(Z=We),F.registry=Ie(q=Z)?q:te([],{})},-1),Ne.$private(),Ne.$attr_reader("registry")}(lt[0],null,lt),function(M,He){var we=ae(M,"DefaultFactory"),Ne=[we].concat(He),Te=a.$r(Ne);return we.$include(Te("Factory")),Ge(Ne[0],"@@registry",te([],{})),we.$private(),V(we,"$registry",function(){return Me(Ne[0],"@@registry",!1)}),We}(lt[0],lt),function(M,He,we){var Ne=ze(M,He,"DefaultFactoryProxy"),Te=[Ne].concat(we),oe=a.$r(Te);return Ne.$include(oe("DefaultFactory")),We}(lt[0],K("CustomFactory"),lt),function(M,He,we){var Ne=ze(M,He,"Base"),Te=[Ne].concat(we),oe=a.$r(Te),ye=Ne.$$prototype;return ye.pre_class=We,Ne.$include(oe("SyntaxHighlighter")),V(Ne,"$format",function(F,q,ie){var ee=this,$e=We,U=We,g=We,o=We;return $e=Ie(ie["$[]"]("nowrap"))?""+ee.pre_class+" highlight nowrap":""+ee.pre_class+" highlight",Ie(U=ie["$[]"]("transform"))?(U["$[]"](g=te(["class"],{class:$e}),o=Ie(q)?te(["data-lang"],{"data-lang":q}):te([],{})),Ie(q=o.$delete("data-lang"))&&o["$[]="]("data-lang",q),"<pre"+Ue(g,"map",[],function(T,S){return T==null&&(T=We),S==null&&(S=We)," "+T+'="'+S+'"'}).$join()+"><code"+Ue(o,"map",[],function(T,S){return T==null&&(T=We),S==null&&(S=We)," "+T+'="'+S+'"'}).$join()+">"+F.$content()+"</code></pre>"):'<pre class="'+$e+'"><code'+(Ie(q)?' data-lang="'+q+'"':"")+">"+F.$content()+"</code></pre>"})}(lt[0],null,lt),tt.$extend(K("DefaultFactory"))}(z[0],z)}(dt[0],dt),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),We},Opal.modules["asciidoctor/timings"]=function(a){var ae=a.module,te=a.klass,V=a.hash2,_e=a.def,y=a.send,Y=a.rb_minus,Ue=a.slice,G=a.rb_plus,Ie=a.truthy,C=a.rb_gt,Oe=a.gvars,ze=a.eqeq,Ge=a.const_set,Me=[],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(We,st){var Ye=ae(We,"Asciidoctor"),Je=[Ye].concat(st);return function($t,z,et){var E=te($t,z,"Timings"),tt,lt,K,M,He=[E].concat(et),we=a.$r(He),Ne=E.$$prototype;return Ne.timers=Ne.log=Pe,_e(E,"$initialize",function(){var oe=this;return oe.log=V([],{}),oe.timers=V([],{})}),_e(E,"$start",function(oe){var ye,Z=this;return ye=[oe,Z.$now()],y(Z.timers,"[]=",ye),ye[ye.length-1]}),_e(E,"$record",function(oe){var ye,Z=this;return ye=[oe,Y(Z.$now(),Z.timers.$delete(oe))],y(Z.log,"[]=",ye),ye[ye.length-1]}),_e(E,"$time",function(oe){var ye,Z,F=this,q=Pe;return ye=Ue(arguments),Z=ye,q=y(Z,"reduce",[0],function ie(ee,$e){var U=ie.$$s==null?this:ie.$$s,g=Pe;return U.log==null&&(U.log=Pe),ee==null&&(ee=Pe),$e==null&&($e=Pe),G(ee,Ie(g=U.log["$[]"]($e))?g:0)},{$$s:F}),Ie(C(q,0))?q:Pe},-1),_e(E,"$read",function(){var oe=this;return oe.$time("read")}),_e(E,"$parse",function(){var oe=this;return oe.$time("parse")}),_e(E,"$read_parse",function(){var oe=this;return oe.$time("read","parse")}),_e(E,"$convert",function(){var oe=this;return oe.$time("convert")}),_e(E,"$read_parse_convert",function(){var oe=this;return oe.$time("read","parse","convert")}),_e(E,"$write",function(){var oe=this;return oe.$time("write")}),_e(E,"$total",function(){var oe=this;return oe.$time("read","parse","convert","write")}),_e(E,"$print_report",function(oe,ye){var Z=this;return Oe.stdout==null&&(Oe.stdout=Pe),oe==null&&(oe=Oe.stdout),ye==null&&(ye=Pe),Ie(ye)&&oe.$puts("Input file: "+ye),oe.$puts(" Time to read and parse source: "+Z.$sprintf("%05.5f",Z.$read_parse().$to_f())),oe.$puts(" Time to convert document: "+Z.$sprintf("%05.5f",Z.$convert().$to_f())),oe.$puts(" Total time (read, parse and convert): "+Z.$sprintf("%05.5f",Z.$read_parse_convert().$to_f()))},-1),E.$private(),Ie(dt("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&ze((tt=dt("::","Process","skip_raise"))&&(lt=tt,lt)&&(K=lt)&&((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(E,"$now",function(){return dt("Process").$clock_gettime(we("CLOCK_ID"))})):_e(E,"$now",function(){return dt("Time").$now()})}(Je[0],null,Je)}(Me[0],Me)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ae=a.module,te=a.klass,V=a.const_set,_e=a.hash2,y=a.regexp,Y=a.eqeq,Ue=a.def,G=a.send2,Ie=a.find_super,C=a.truthy,Oe=a.send,ze=a.rb_gt,Ge=a.rb_plus,Me=a.not,Pe=a.neqeq,dt=a.rb_le,We=a.rb_lt,st=a.to_ary,Ye=a.rb_times,Je=a.rb_minus,$t=a.gvars,z=a.return_val,et=a.alias,E=a.eqeqeq,tt=a.slice,lt=a.to_a,K=[],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,Ne){var Te=ae(we,"Asciidoctor"),oe=[Te].concat(Ne),ye=a.$r(oe);return function(Z,F,q){var ie=te(Z,F,"Html5Converter"),ee=[ie].concat(q),$e=a.$r(ee),U=ie.$$prototype;return U.void_element_slash=U.xml_mode=U.refs=U.resolving_xref=M,ie.$register_for("html5"),V(ee[0],"QUOTE_TAGS",_e(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}))["$default="](["",""]),V(ee[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),V(ee[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),V(ee[0],"SvgPreambleRx",y(["^",$e("CC_ALL"),"*?(?=<svg[\\s>])"])),V(ee[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),V(ee[0],"DimensionAttributeRx",y([`\\s(?:width|height|style)=(["'])`,$e("CC_ANY"),"*?\\1"])),Ue(ie,"$initialize",function(o,m){var T=this,S=M;return m==null&&(m=_e([],{})),T.backend=o,Y(m["$[]"]("htmlsyntax"),"xml")?(S="xml",T.xml_mode=!0,T.void_element_slash="/"):(S="html",T.xml_mode=M,T.void_element_slash=""),T.$init_backend_traits(_e(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:S,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ie,"$convert",function g(o,m,T){var S=g.$$p||M,b=this;switch(g.$$p=null,m==null&&(m=o.$node_name()),T==null&&(T=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,Ie(b,"convert",g,!1,!0),"convert",[o,m,T],S)}},-2),Ue(ie,"$convert_document",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,mt=M,yt=M,xt=M,vt=M,Tt=M,St=M,Wt=M,Bt=M,er=M,Kt=M,Pt=M,Yt=M;return T="<br"+(S=m.void_element_slash)+">",C((b=o.$attr("asset-uri-scheme","https"))["$empty?"]())||(b=""+b+":"),D=""+b+"//cdnjs.cloudflare.com/ajax/libs",j=o["$attr?"]("linkcss"),de=C(o["$attr?"]("max-width"))?' style="max-width: '+o.$attr("max-width")+';"':"",le=["<!DOCTYPE html>"],ke=C(o["$attr?"]("nolang"))?"":' lang="'+o.$attr("lang","en")+'"',le["$<<"]("<html"+(C(m.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+ke+">"),le["$<<"](`<head>
427
- <meta charset="`+o.$attr("encoding","UTF-8")+'"'+S+`>
428
- <meta http-equiv="X-UA-Compatible" content="IE=edge"`+S+`>
429
- <meta name="viewport" content="width=device-width, initial-scale=1.0"`+S+`>
430
- <meta name="generator" content="Asciidoctor `+o.$attr("asciidoctor-version")+'"'+S+">"),C(o["$attr?"]("app-name"))&&le["$<<"]('<meta name="application-name" content="'+o.$attr("app-name")+'"'+S+">"),C(o["$attr?"]("description"))&&le["$<<"]('<meta name="description" content="'+o.$attr("description")+'"'+S+">"),C(o["$attr?"]("keywords"))&&le["$<<"]('<meta name="keywords" content="'+o.$attr("keywords")+'"'+S+">"),C(o["$attr?"]("authors"))&&le["$<<"]('<meta name="author" content="'+(C((Be=o.$sub_replacements(o.$attr("authors")))["$include?"]("<"))?Be.$gsub($e("XmlSanitizeRx"),""):Be)+'"'+S+">"),C(o["$attr?"]("copyright"))&&le["$<<"]('<meta name="copyright" content="'+o.$attr("copyright")+'"'+S+">"),C(o["$attr?"]("favicon"))&&(C((Xe=o.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):C(ht=$e("Helpers").$extname(Xe,M))?it=Y(ht,".ico")?"image/x-icon":"image/"+ht.$slice(1,ht.$length()):it="image/x-icon",le["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+S+">")),le["$<<"]("<title>"+o.$doctitle(_e(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),C($e("DEFAULT_STYLESHEET_KEYS")["$include?"](o.$attr("stylesheet")))?(C(at=o.$attr("webfonts"))&&le["$<<"]('<link rel="stylesheet" href="'+b+"//fonts.googleapis.com/css?family="+(C(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+S+">"),C(j)?le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path($e("DEFAULT_STYLESHEET_NAME"),o.$attr("stylesdir",""),!1)+'"'+S+">"):le["$<<"](`<style>
431
- `+$e("Stylesheets").$instance().$primary_stylesheet_data()+`
432
- </style>`)):C(o["$attr?"]("stylesheet"))&&(C(j)?le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(o.$attr("stylesheet"),o.$attr("stylesdir",""))+'"'+S+">"):le["$<<"](`<style>
433
- `+o.$read_contents(o.$attr("stylesheet"),_e(["start","warn_on_failure","label"],{start:o.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
434
- </style>`)),C(o["$attr?"]("icons","font"))&&(C(o["$attr?"]("iconfont-remote"))?le["$<<"]('<link rel="stylesheet" href="'+o.$attr("iconfont-cdn",""+D+"/font-awesome/"+$e("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+S+">"):(mt=""+o.$attr("iconfont-name","font-awesome")+".css",le["$<<"]('<link rel="stylesheet" href="'+o.$normalize_web_path(mt,o.$attr("stylesdir",""),!1)+'"'+S+">"))),C(yt=o.$syntax_highlighter())&&le["$<<"](xt=le.$size()),C((vt=o.$docinfo())["$empty?"]())||le["$<<"](vt),le["$<<"]("</head>"),Tt=C(o.$id())?' id="'+o.$id()+'"':"",C(St=o["$sections?"]())&&C(o["$attr?"]("toc-class"))&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))?Wt=[o.$doctype(),o.$attr("toc-class"),"toc-"+o.$attr("toc-position","header")]:Wt=[o.$doctype()],C(o["$role?"]())&&Wt["$<<"](o.$role()),le["$<<"]("<body"+Tt+' class="'+Wt.$join(" ")+'">'),C((vt=o.$docinfo("header"))["$empty?"]())||le["$<<"](vt),C(o.$noheader())||(le["$<<"]('<div id="header"'+de+">"),Y(o.$doctype(),"manpage")?(le["$<<"]("<h1>"+o.$doctitle()+" Manual Page</h1>"),C(St)&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
435
- <div id="toctitle">`+o.$attr("toc-title")+`</div>
436
- `+o.$converter().$convert(o,"outline")+`
437
- </div>`),C(o["$attr?"]("manpurpose"))&&le["$<<"](m.$generate_manname_section(o))):(C(o["$header?"]())&&(C(o.$notitle())||le["$<<"]("<h1>"+o.$header().$title()+"</h1>"),Bt=[],er=1,Oe(o.$authors(),"each",[],function(nr){return nr==null&&(nr=M),Bt["$<<"]('<span id="author'+(C(ze(er,1))?er:"")+'" class="author">'+o.$sub_replacements(nr.$name())+"</span>"+T),C(nr.$email())&&Bt["$<<"]('<span id="email'+(C(ze(er,1))?er:"")+'" class="email">'+o.$sub_macros(nr.$email())+"</span>"+T),er=Ge(er,1)}),C(o["$attr?"]("revnumber"))&&Bt["$<<"]('<span id="revnumber">'+(C(Kt=o.$attr("version-label"))?Kt:"").$downcase()+" "+o.$attr("revnumber")+(C(o["$attr?"]("revdate"))?",":"")+"</span>"),C(o["$attr?"]("revdate"))&&Bt["$<<"]('<span id="revdate">'+o.$attr("revdate")+"</span>"),C(o["$attr?"]("revremark"))&&Bt["$<<"](""+T+'<span id="revremark">'+o.$attr("revremark")+"</span>"),C(Bt["$empty?"]())||(le["$<<"]('<div class="details">'),le.$concat(Bt),le["$<<"]("</div>"))),C(St)&&C(o["$attr?"]("toc"))&&C(o["$attr?"]("toc-placement","auto"))&&le["$<<"]('<div id="toc" class="'+o.$attr("toc-class","toc")+`">
438
- <div id="toctitle">`+o.$attr("toc-title")+`</div>
439
- `+o.$converter().$convert(o,"outline")+`
440
- </div>`)),le["$<<"]("</div>")),le["$<<"]('<div id="content"'+de+`>
441
- `+o.$content()+`
442
- </div>`),C(o["$footnotes?"]())&&Me(o["$attr?"]("nofootnotes"))&&(le["$<<"]('<div id="footnotes"'+de+`>
443
- <hr`+S+">"),Oe(o.$footnotes(),"each",[],function(nr){return nr==null&&(nr=M),le["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
444
- <a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
445
- </div>`)}),le["$<<"]("</div>")),C(o.$nofooter())||(le["$<<"]('<div id="footer"'+de+">"),le["$<<"]('<div id="footer-text">'),C(o["$attr?"]("revnumber"))&&le["$<<"](""+o.$attr("version-label")+" "+o.$attr("revnumber")+T),C(o["$attr?"]("last-update-label"))&&Me(o["$attr?"]("reproducible"))&&le["$<<"](""+o.$attr("last-update-label")+" "+o.$attr("docdatetime")),le["$<<"]("</div>"),le["$<<"]("</div>")),C(yt)&&(C(yt["$docinfo?"]("head"))?le["$[]="](xt,yt.$docinfo("head",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:D,linkcss:j,self_closing_tag_slash:S}))):le.$delete_at(xt),C(yt["$docinfo?"]("footer"))&&le["$<<"](yt.$docinfo("footer",o,_e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:D,linkcss:j,self_closing_tag_slash:S})))),C(o["$attr?"]("stem"))&&(Pt=o.$attr("eqnums","none"),C(Pt["$empty?"]())&&(Pt="AMS"),Yt=' equationNumbers: { autoNumber: "'+Pt+'" } ',le["$<<"](`<script type="text/x-mathjax-config">
446
- MathJax.Hub.Config({
447
- messageStyle: "none",
448
- tex2jax: {
449
- inlineMath: [`+$e("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
450
- displayMath: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
451
- ignoreClass: "nostem|nolatexmath"
452
- },
453
- asciimath2jax: {
454
- delimiters: [`+$e("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
455
- ignoreClass: "nostem|noasciimath"
456
- },
457
- TeX: {`+Yt+`}
458
- })
459
- MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
460
- MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
461
- if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
462
- data.math.root.display = "block"
463
- }
464
- return data
465
- })
466
- })
467
- <\/script>
468
- <script src="`+D+"/mathjax/"+$e("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),C((vt=o.$docinfo("footer"))["$empty?"]())||le["$<<"](vt),le["$<<"]("</body>"),le["$<<"]("</html>"),le.$join($e("LF"))}),Ue(ie,"$convert_embedded",function(o){var m=this,T=M,S=M,b=M;return T=[],Y(o.$doctype(),"manpage")?(C(o.$notitle())||(S=C(o.$id())?' id="'+o.$id()+'"':"",T["$<<"]("<h1"+S+">"+o.$doctitle()+" Manual Page</h1>")),C(o["$attr?"]("manpurpose"))&&T["$<<"](m.$generate_manname_section(o))):C(o["$header?"]())&&Me(o.$notitle())&&(S=C(o.$id())?' id="'+o.$id()+'"':"",T["$<<"]("<h1"+S+">"+o.$header().$title()+"</h1>")),C(o["$sections?"]())&&C(o["$attr?"]("toc"))&&Pe(b=o.$attr("toc-placement"),"macro")&&Pe(b,"preamble")&&T["$<<"](`<div id="toc" class="toc">
469
- <div id="toctitle">`+o.$attr("toc-title")+`</div>
470
- `+o.$converter().$convert(o,"outline")+`
471
- </div>`),T["$<<"](o.$content()),C(o["$footnotes?"]())&&Me(o["$attr?"]("nofootnotes"))&&(T["$<<"](`<div id="footnotes">
472
- <hr`+m.void_element_slash+">"),Oe(o.$footnotes(),"each",[],function(j){return j==null&&(j=M),T["$<<"]('<div class="footnote" id="_footnotedef_'+j.$index()+`">
473
- <a href="#_footnoteref_`+j.$index()+'">'+j.$index()+"</a>. "+j.$text()+`
474
- </div>`)}),T["$<<"]("</div>")),T.$join($e("LF"))}),Ue(ie,"$convert_outline",function(o,m){var T=this,S=M,b=M,D=M,j=M,de=M,le=M;return m==null&&(m=_e([],{})),C(o["$sections?"]())?(S=C(b=m["$[]"]("sectnumlevels"))?b:(C(D=o.$document().$attributes()["$[]"]("sectnumlevels"))?D:3).$to_i(),j=C(b=m["$[]"]("toclevels"))?b:(C(D=o.$document().$attributes()["$[]"]("toclevels"))?D:2).$to_i(),de=o.$sections(),le=['<ul class="sectlevel'+de["$[]"](0).$level()+'">'],Oe(de,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=M,ht=M,at=M,mt=M;if(Be==null&&(Be=M),it=Be.$level(),C(Be.$caption()))ht=Be.$captioned_title();else if(C(Be.$numbered())&&C(dt(it,S)))if(C(We(it,2))&&Y(o.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":ht=(C(at=o.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":ht=(C(at=o.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(M,":")+" "+Be.$title();break;default:ht=""+Be.$sectnum()+" "+Be.$title()}else ht=""+Be.$sectnum()+" "+Be.$title();else ht=Be.$title();return C(ht["$include?"]("<a"))&&(ht=ht.$gsub($e("DropAnchorRx"),"")),C(We(it,j))&&C(mt=Xe.$convert_outline(Be,_e(["toclevels","sectnumlevels"],{toclevels:j,sectnumlevels:S})))?(le["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a>"),le["$<<"](mt),le["$<<"]("</li>")):le["$<<"]('<li><a href="#'+Be.$id()+'">'+ht+"</a></li>")},{$$s:T}),le["$<<"]("</ul>"),le.$join($e("LF"))):M},-2),Ue(ie,"$convert_section",function(o){var m=M,T=M,S=M,b=M,D=M,j=M,de=M,le=M;if(m=o.$document().$attributes(),T=o.$level(),C(o.$caption()))S=o.$captioned_title();else if(C(o.$numbered())&&C(dt(T,(C(b=m["$[]"]("sectnumlevels"))?b:3).$to_i())))if(C(We(T,2))&&Y(o.$document().$doctype(),"book"))switch(o.$sectname()){case"chapter":S=(C(D=m["$[]"]("chapter-signifier"))?""+D+" ":"")+o.$sectnum()+" "+o.$title();break;case"part":S=(C(D=m["$[]"]("part-signifier"))?""+D+" ":"")+o.$sectnum(M,":")+" "+o.$title();break;default:S=""+o.$sectnum()+" "+o.$title()}else S=""+o.$sectnum()+" "+o.$title();else S=o.$title();return C(o.$id())?(j=' id="'+(de=o.$id())+'"',C(m["$[]"]("sectlinks"))&&(S='<a class="link" href="#'+de+'">'+S+"</a>"),C(m["$[]"]("sectanchors"))&&(Y(m["$[]"]("sectanchors"),"after")?S=""+S+'<a class="anchor" href="#'+de+'"></a>':S='<a class="anchor" href="#'+de+'"></a>'+S)):j="",Y(T,0)?"<h1"+j+' class="sect0'+(C(le=o.$role())?" "+le:"")+'">'+S+`</h1>
475
- `+o.$content():'<div class="sect'+T+(C(le=o.$role())?" "+le:"")+`">
476
- <h`+Ge(T,1)+j+">"+S+"</h"+Ge(T,1)+`>
477
- `+(Y(T,1)?`<div class="sectionbody">
478
- `+o.$content()+`
479
- </div>`:o.$content())+`
480
- </div>`}),Ue(ie,"$convert_admonition",function(o){var m=this,T=M,S=M,b=M,D=M,j=M;return T=C(o.$id())?' id="'+o.$id()+'"':"",S=o.$attr("name"),b=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
481
- `:"",C(o.$document()["$attr?"]("icons"))?C(o.$document()["$attr?"]("icons","font"))&&Me(o["$attr?"]("icon"))?D='<i class="fa icon-'+S+'" title="'+o.$attr("textlabel")+'"></i>':D='<img src="'+o.$icon_uri(S)+'" alt="'+o.$attr("textlabel")+'"'+m.void_element_slash+">":D='<div class="title">'+o.$attr("textlabel")+"</div>","<div"+T+' class="admonitionblock '+S+(C(j=o.$role())?" "+j:"")+`">
482
- <table>
483
- <tr>
484
- <td class="icon">
485
- `+D+`
486
- </td>
487
- <td class="content">
488
- `+b+o.$content()+`
489
- </td>
490
- </tr>
491
- </table>
492
- </div>`}),Ue(ie,"$convert_audio",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M;return T=m.xml_mode,S=C(o.$id())?' id="'+o.$id()+'"':"",b=["audioblock",o.$role()].$compact(),D=' class="'+b.$join(" ")+'"',j=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
493
- `:"",de=o.$attr("start"),le=o.$attr("end"),ke=C(de)||C(le)?"#t="+(C(Be=de)?Be:"")+(C(le)?","+le:""):"","<div"+S+D+`>
494
- `+j+`<div class="content">
495
- <audio src="`+o.$media_uri(o.$attr("target"))+ke+'"'+(C(o["$option?"]("autoplay"))?m.$append_boolean_attribute("autoplay",T):"")+(C(o["$option?"]("nocontrols"))?"":m.$append_boolean_attribute("controls",T))+(C(o["$option?"]("loop"))?m.$append_boolean_attribute("loop",T):"")+`>
496
- Your browser does not support the audio tag.
497
- </audio>
498
- </div>
499
- </div>`}),Ue(ie,"$convert_colist",function(o){var m,T=this,S=M,b=M,D=M,j=M,de=M,le=M;return S=[],b=C(o.$id())?' id="'+o.$id()+'"':"",D=["colist",o.$style(),o.$role()].$compact(),j=' class="'+D.$join(" ")+'"',S["$<<"]("<div"+b+j+">"),C(o["$title?"]())&&S["$<<"]('<div class="title">'+o.$title()+"</div>"),C(o.$document()["$attr?"]("icons"))?(S["$<<"]("<table>"),m=[o.$document()["$attr?"]("icons","font"),0],de=m[0],le=m[1],Oe(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),C(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+">",S["$<<"](`<tr>
500
- <td>`+it+`</td>
501
- <td>`+Be.$text()+(C(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`</td>
502
- </tr>`)},{$$s:T}),S["$<<"]("</table>")):(S["$<<"]("<ol>"),Oe(o.$items(),"each",[],function(Be){return Be==null&&(Be=M),S["$<<"](`<li>
503
- <p>`+Be.$text()+"</p>"+(C(Be["$blocks?"]())?Ge($e("LF"),Be.$content()):"")+`
504
- </li>`)}),S["$<<"]("</ol>")),S["$<<"]("</div>"),S.$join($e("LF"))}),Ue(ie,"$convert_dlist",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M;switch(T=[],S=C(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(D=' class="'+b.$compact().$join(" ")+'"',T["$<<"]("<div"+S+D+">"),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),o.$style()){case"qanda":T["$<<"]("<ol>"),Oe(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),T["$<<"]("<li>"),Oe(Be,"each",[],function(ht){return ht==null&&(ht=M),T["$<<"]("<p><em>"+ht.$text()+"</em></p>")}),C(Xe)&&(C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content())),T["$<<"]("</li>")}),T["$<<"]("</ol>");break;case"horizontal":j=m.void_element_slash,T["$<<"]("<table>"),(C(o["$attr?"]("labelwidth"))||C(o["$attr?"]("itemwidth")))&&(T["$<<"]("<colgroup>"),de=C(o["$attr?"]("labelwidth"))?' style="width: '+o.$attr("labelwidth").$chomp("%")+'%;"':"",T["$<<"]("<col"+de+j+">"),de=C(o["$attr?"]("itemwidth"))?' style="width: '+o.$attr("itemwidth").$chomp("%")+'%;"':"",T["$<<"]("<col"+de+j+">"),T["$<<"]("</colgroup>")),Oe(o.$items(),"each",[],function(Be,Xe){var it=M;return Be==null&&(Be=M),Xe==null&&(Xe=M),T["$<<"]("<tr>"),T["$<<"]('<td class="hdlist1'+(C(o["$option?"]("strong"))?" strong":"")+'">'),it=!0,Oe(Be,"each",[],function(at){return at==null&&(at=M),C(it)||T["$<<"]("<br"+j+">"),T["$<<"](at.$text()),it=M}),T["$<<"]("</td>"),T["$<<"]('<td class="hdlist2">'),C(Xe)&&(C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content())),T["$<<"]("</td>"),T["$<<"]("</tr>")}),T["$<<"]("</table>");break;default:T["$<<"]("<dl>"),le=C(o.$style())?"":' class="hdlist1"',Oe(o.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=M),Xe==null&&(Xe=M),Oe(Be,"each",[],function(ht){return ht==null&&(ht=M),T["$<<"]("<dt"+le+">"+ht.$text()+"</dt>")}),C(Xe)?(T["$<<"]("<dd>"),C(Xe["$text?"]())&&T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content()),T["$<<"]("</dd>")):M}),T["$<<"]("</dl>")}return T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_example",function(o){var m=M,T=M,S=M,b=M,D=M;return m=C(o.$id())?' id="'+o.$id()+'"':"",C(o["$option?"]("collapsible"))?(T=C(o.$role())?' class="'+o.$role()+'"':"",S=C(o["$title?"]())?'<summary class="title">'+o.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+m+T+(C(o["$option?"]("open"))?" open":"")+`>
505
- `+S+`
506
- <div class="content">
507
- `+o.$content()+`
508
- </div>
509
- </details>`):(b=C(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
510
- `:"","<div"+m+' class="exampleblock'+(C(D=o.$role())?" "+D:"")+`">
511
- `+b+`<div class="content">
512
- `+o.$content()+`
513
- </div>
514
- </div>`)}),Ue(ie,"$convert_floating_title",function(o){var m=M,T=M,S=M;return m="h"+Ge(o.$level(),1),T=C(o.$id())?' id="'+o.$id()+'"':"",S=[o.$style(),o.$role()].$compact(),"<"+m+T+' class="'+S.$join(" ")+'">'+o.$title()+"</"+m+">"}),Ue(ie,"$convert_image",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M;return T=o.$attr("target"),S=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",b=C(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",(C(o["$attr?"]("format","svg"))||C(T["$include?"](".svg")))&&C(We(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?C(o["$option?"]("inline"))?D=C(j=m.$read_svg_contents(o,T))?j:'<span class="alt">'+o.$alt()+"</span>":C(o["$option?"]("interactive"))?(de=C(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+S+b+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",D='<object type="image/svg+xml" data="'+o.$image_uri(T)+'"'+S+b+">"+de+"</object>"):D='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+S+b+m.void_element_slash+">":D='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+S+b+m.void_element_slash+">",C(o["$attr?"]("link"))&&(D='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+D+"</a>"),le=C(o.$id())?' id="'+o.$id()+'"':"",ke=["imageblock"],C(o["$attr?"]("float"))&&ke["$<<"](o.$attr("float")),C(o["$attr?"]("align"))&&ke["$<<"]("text-"+o.$attr("align")),C(o.$role())&&ke["$<<"](o.$role()),Be=' class="'+ke.$join(" ")+'"',Xe=C(o["$title?"]())?`
515
- <div class="title">`+o.$captioned_title()+"</div>":"","<div"+le+Be+`>
516
- <div class="content">
517
- `+D+`
518
- </div>`+Xe+`
519
- </div>`}),Ue(ie,"$convert_listing",function(o){var m=M,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M;return m=C(T=o["$option?"]("nowrap"))?T:o.$document()["$attr?"]("prewrap")["$!"](),Y(o.$style(),"source")?(S=o.$attr("language"),C(b=o.$document().$syntax_highlighter())?(D=C(b["$highlight?"]())?_e(["css_mode","style"],{css_mode:(C(T=(j=o.$document().$attributes())["$[]"](""+b.$name()+"-css"))?T:"class").$to_sym(),style:j["$[]"](""+b.$name()+"-style")}):_e([],{}),D["$[]="]("nowrap",m)):(de='<pre class="highlight'+(C(m)?" nowrap":"")+'"><code'+(C(S)?' class="language-'+S+'" data-lang="'+S+'"':"")+">",le="</code></pre>")):(de="<pre"+(C(m)?' class="nowrap"':"")+">",le="</pre>"),ke=C(o.$id())?' id="'+o.$id()+'"':"",Be=C(o["$title?"]())?'<div class="title">'+o.$captioned_title()+`</div>
520
- `:"","<div"+ke+' class="listingblock'+(C(Xe=o.$role())?" "+Xe:"")+`">
521
- `+Be+`<div class="content">
522
- `+(C(b)?b.$format(o,S,D):Ge(Ge(de,o.$content()),le))+`
523
- </div>
524
- </div>`}),Ue(ie,"$convert_literal",function(o){var m=M,T=M,S=M,b=M,D=M;return m=C(o.$id())?' id="'+o.$id()+'"':"",T=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
525
- `:"",S=C(b=o.$document()["$attr?"]("prewrap")["$!"]())?b:o["$option?"]("nowrap"),"<div"+m+' class="literalblock'+(C(D=o.$role())?" "+D:"")+`">
526
- `+T+`<div class="content">
527
- <pre`+(C(S)?' class="nowrap"':"")+">"+o.$content()+`</pre>
528
- </div>
529
- </div>`}),Ue(ie,"$convert_stem",function(o){var m,T,S=this,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M;return b=C(o.$id())?' id="'+o.$id()+'"':"",D=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
530
- `:"",T=$e("BLOCK_MATH_DELIMITERS")["$[]"](j=o.$style().$to_sym()),m=st(T),de=m[0]==null?M:m[0],le=m[1]==null?M:m[1],C(ke=o.$content())?(Y(j,"asciimath")&&C(ke["$include?"]($e("LF")))&&(Be=""+$e("LF")+"<br"+S.void_element_slash+">",ke=Oe(ke,"gsub",[$e("StemBreakRx")],function(){var ht;return""+le+Ye(Be,Je(((ht=$t["~"])===M?M:ht["$[]"](0)).$count($e("LF")),1))+$e("LF")+de})),C(ke["$start_with?"](de))&&C(ke["$end_with?"](le))||(ke=""+de+ke+le)):ke="","<div"+b+' class="stemblock'+(C(Xe=o.$role())?" "+Xe:"")+`">
531
- `+D+`<div class="content">
532
- `+ke+`
533
- </div>
534
- </div>`}),Ue(ie,"$convert_olist",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M;return T=[],S=C(o.$id())?' id="'+o.$id()+'"':"",b=["olist",o.$style(),o.$role()].$compact(),D=' class="'+b.$join(" ")+'"',T["$<<"]("<div"+S+D+">"),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),j=C(de=o.$list_marker_keyword())?' type="'+de+'"':"",le=C(o["$attr?"]("start"))?' start="'+o.$attr("start")+'"':"",ke=C(o["$option?"]("reversed"))?m.$append_boolean_attribute("reversed",m.xml_mode):"",T["$<<"]('<ol class="'+o.$style()+'"'+j+le+ke+">"),Oe(o.$items(),"each",[],function(Xe){return Xe==null&&(Xe=M),C(Xe.$id())?T["$<<"]('<li id="'+Xe.$id()+'"'+(C(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):C(Xe.$role())?T["$<<"]('<li class="'+Xe.$role()+'">'):T["$<<"]("<li>"),T["$<<"]("<p>"+Xe.$text()+"</p>"),C(Xe["$blocks?"]())&&T["$<<"](Xe.$content()),T["$<<"]("</li>")}),T["$<<"]("</ol>"),T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_open",function(o){var m=this,T=M,S=M,b=M,D=M;return Y(T=o.$style(),"abstract")?Y(o.$parent(),o.$document())&&Y(o.$document().$doctype(),"book")?(m.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(S=C(o.$id())?' id="'+o.$id()+'"':"",b=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
535
- `:"","<div"+S+' class="quoteblock abstract'+(C(D=o.$role())?" "+D:"")+`">
536
- `+b+`<blockquote>
537
- `+o.$content()+`
538
- </blockquote>
539
- </div>`):Y(T,"partintro")&&(C(ze(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."),""):(S=C(o.$id())?' id="'+o.$id()+'"':"",b=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
540
- `:"","<div"+S+' class="openblock'+(C(T)&&Pe(T,"open")?" "+T:"")+(C(D=o.$role())?" "+D:"")+`">
541
- `+b+`<div class="content">
542
- `+o.$content()+`
543
- </div>
544
- </div>`)}),Ue(ie,"$convert_page_break",z('<div style="page-break-after: always;"></div>')),Ue(ie,"$convert_paragraph",function(o){var m=M;return C(o.$role())?m=(C(o.$id())?' id="'+o.$id()+'"':"")+' class="paragraph '+o.$role()+'"':C(o.$id())?m=' id="'+o.$id()+'" class="paragraph"':m=' class="paragraph"',C(o["$title?"]())?"<div"+m+`>
545
- <div class="title">`+o.$title()+`</div>
546
- <p>`+o.$content()+`</p>
547
- </div>`:"<div"+m+`>
548
- <p>`+o.$content()+`</p>
549
- </div>`}),et(ie,"convert_pass","content_only"),Ue(ie,"$convert_preamble",function(o){var m=M,T=M;return C((m=o.$document())["$attr?"]("toc-placement","preamble"))&&C(m["$sections?"]())&&C(m["$attr?"]("toc"))?T=`
550
- <div id="toc" class="`+m.$attr("toc-class","toc")+`">
551
- <div id="toctitle">`+m.$attr("toc-title")+`</div>
552
- `+m.$converter().$convert(m,"outline")+`
553
- </div>`:T="",`<div id="preamble">
554
- <div class="sectionbody">
555
- `+o.$content()+`
556
- </div>`+T+`
557
- </div>`}),Ue(ie,"$convert_quote",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M;return T=C(o.$id())?' id="'+o.$id()+'"':"",S=["quoteblock",o.$role()].$compact(),b=' class="'+S.$join(" ")+'"',D=C(o["$title?"]())?`
558
- <div class="title">`+o.$title()+"</div>":"",j=C(o["$attr?"]("attribution"))?o.$attr("attribution"):M,de=C(o["$attr?"]("citetitle"))?o.$attr("citetitle"):M,C(j)||C(de)?(le=C(de)?"<cite>"+de+"</cite>":"",ke=C(j)?"&#8212; "+j+(C(de)?"<br"+m.void_element_slash+`>
559
- `:""):"",Be=`
560
- <div class="attribution">
561
- `+ke+le+`
562
- </div>`):Be="","<div"+T+b+">"+D+`
563
- <blockquote>
564
- `+o.$content()+`
565
- </blockquote>`+Be+`
566
- </div>`}),Ue(ie,"$convert_thematic_break",function(o){var m=this;return"<hr"+m.void_element_slash+">"}),Ue(ie,"$convert_sidebar",function(o){var m=M,T=M,S=M;return m=C(o.$id())?' id="'+o.$id()+'"':"",T=C(o["$title?"]())?'<div class="title">'+o.$title()+`</div>
567
- `:"","<div"+m+' class="sidebarblock'+(C(S=o.$role())?" "+S:"")+`">
568
- <div class="content">
569
- `+T+o.$content()+`
570
- </div>
571
- </div>`}),Ue(ie,"$convert_table",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M;return T=[],S=C(o.$id())?' id="'+o.$id()+'"':"",Y(b=o.$attr("frame","all","table-frame"),"topbot")&&(b="ends"),D=["tableblock","frame-"+b,"grid-"+o.$attr("grid","all","table-grid")],C(j=o.$attr("stripes",M,"table-stripes"))&&D["$<<"]("stripes-"+j),de="",C(le=o["$option?"]("autowidth"))&&Me(o["$attr?"]("width"))?D["$<<"]("fit-content"):Y(ke=o.$attr("tablepcwidth"),100)?D["$<<"]("stretch"):de=' style="width: '+ke+'%;"',C(o["$attr?"]("float"))&&D["$<<"](o.$attr("float")),C(Be=o.$role())&&D["$<<"](Be),Xe=' class="'+D.$join(" ")+'"',T["$<<"]("<table"+S+Xe+de+">"),C(o["$title?"]())&&T["$<<"]('<caption class="title">'+o.$captioned_title()+"</caption>"),C(ze(o.$attr("rowcount"),0))&&(it=m.void_element_slash,T["$<<"]("<colgroup>"),C(le)?T=Ge(T,$e("Array").$new(o.$columns().$size(),"<col"+it+">")):Oe(o.$columns(),"each",[],function(at){return at==null&&(at=M),T["$<<"](C(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),T["$<<"]("</colgroup>"),Oe(o.$rows().$to_h(),"each",[],function(at,mt){return at==null&&(at=M),mt==null&&(mt=M),C(mt["$empty?"]())?M:(T["$<<"]("<t"+at+">"),Oe(mt,"each",[],function(xt){return xt==null&&(xt=M),T["$<<"]("<tr>"),Oe(xt,"each",[],function(Tt){var St=M,Wt=M,Bt=M,er=M,Kt=M,Pt=M;if(Tt==null&&(Tt=M),Y(at,"head"))St=Tt.$text();else switch(Tt.$style()){case"asciidoc":St='<div class="content">'+Tt.$content()+"</div>";break;case"literal":St='<div class="literal"><pre>'+Tt.$text()+"</pre></div>";break;default:St=C((St=Tt.$content())["$empty?"]())?"":'<p class="tableblock">'+St.$join(`</p>
572
- <p class="tableblock">`)+"</p>"}return Wt=Y(at,"head")||Y(Tt.$style(),"header")?"th":"td",Bt=' class="tableblock halign-'+Tt.$attr("halign")+" valign-"+Tt.$attr("valign")+'"',er=C(Tt.$colspan())?' colspan="'+Tt.$colspan()+'"':"",Kt=C(Tt.$rowspan())?' rowspan="'+Tt.$rowspan()+'"':"",Pt=C(o.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+o.$document().$attr("cellbgcolor")+';"':"",T["$<<"]("<"+Wt+Bt+er+Kt+Pt+">"+St+"</"+Wt+">")}),T["$<<"]("</tr>")}),T["$<<"]("</t"+at+">"))})),T["$<<"]("</table>"),T.$join($e("LF"))}),Ue(ie,"$convert_toc",function(o){var m=M,T=M,S=M,b=M,D=M,j=M;return C((m=o.$document())["$attr?"]("toc-placement","macro"))&&C(m["$sections?"]())&&C(m["$attr?"]("toc"))?(C(o.$id())?(T=' id="'+o.$id()+'"',S=' id="'+o.$id()+'title"'):(T=' id="toc"',S=' id="toctitle"'),b=C(o["$title?"]())?o.$title():m.$attr("toc-title"),D=C(o["$attr?"]("levels"))?o.$attr("levels").$to_i():M,j=C(o["$role?"]())?o.$role():m.$attr("toc-class","toc"),"<div"+T+' class="'+j+`">
573
- <div`+S+' class="title">'+b+`</div>
574
- `+m.$converter().$convert(m,"outline",_e(["toclevels"],{toclevels:D}))+`
575
- </div>`):"<!-- toc disabled -->"}),Ue(ie,"$convert_ulist",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M;return T=[],S=C(o.$id())?' id="'+o.$id()+'"':"",b=["ulist",o.$style(),o.$role()].$compact(),D=j="",C(de=o["$option?"]("checklist"))?(b.$unshift(b.$shift(),"checklist"),le=' class="checklist"',C(o["$option?"]("interactive"))?C(m.xml_mode)?(D='<input type="checkbox" data-item-complete="1" checked="checked"/> ',j='<input type="checkbox" data-item-complete="0"/> '):(D='<input type="checkbox" data-item-complete="1" checked> ',j='<input type="checkbox" data-item-complete="0"> '):C(o.$document()["$attr?"]("icons","font"))?(D='<i class="fa fa-check-square-o"></i> ',j='<i class="fa fa-square-o"></i> '):(D="&#10003; ",j="&#10063; ")):le=C(o.$style())?' class="'+o.$style()+'"':"",T["$<<"]("<div"+S+' class="'+b.$join(" ")+'">'),C(o["$title?"]())&&T["$<<"]('<div class="title">'+o.$title()+"</div>"),T["$<<"]("<ul"+le+">"),Oe(o.$items(),"each",[],function(Be){return Be==null&&(Be=M),C(Be.$id())?T["$<<"]('<li id="'+Be.$id()+'"'+(C(Be.$role())?' class="'+Be.$role()+'"':"")+">"):C(Be.$role())?T["$<<"]('<li class="'+Be.$role()+'">'):T["$<<"]("<li>"),C(de)&&C(Be["$attr?"]("checkbox"))?T["$<<"]("<p>"+(C(Be["$attr?"]("checked"))?D:j)+Be.$text()+"</p>"):T["$<<"]("<p>"+Be.$text()+"</p>"),C(Be["$blocks?"]())&&T["$<<"](Be.$content()),T["$<<"]("</li>")}),T["$<<"]("</ul>"),T["$<<"]("</div>"),T.$join($e("LF"))}),Ue(ie,"$convert_verse",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M;return T=C(o.$id())?' id="'+o.$id()+'"':"",S=["verseblock",o.$role()].$compact(),b=' class="'+S.$join(" ")+'"',D=C(o["$title?"]())?`
576
- <div class="title">`+o.$title()+"</div>":"",j=C(o["$attr?"]("attribution"))?o.$attr("attribution"):M,de=C(o["$attr?"]("citetitle"))?o.$attr("citetitle"):M,C(j)||C(de)?(le=C(de)?"<cite>"+de+"</cite>":"",ke=C(j)?"&#8212; "+j+(C(de)?"<br"+m.void_element_slash+`>
577
- `:""):"",Be=`
578
- <div class="attribution">
579
- `+ke+le+`
580
- </div>`):Be="","<div"+T+b+">"+D+`
581
- <pre class="content">`+o.$content()+"</pre>"+Be+`
582
- </div>`}),Ue(ie,"$convert_video",function(o){var m,T,S=this,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M,it=M,ht=M,at=M,mt=M,yt=M,xt=M,vt=M,Tt=M,St=M,Wt=M,Bt=M,er=M,Kt=M,Pt=M,Yt=M,Xt=M,nr=M,Yn=M,tn=M,Jt=M,Ut=M,Zt=M,Cr=M,Ht=M,kr=M,hn=M,Tr=M,Sr=M,xn=M;switch(b=S.xml_mode,D=C(o.$id())?' id="'+o.$id()+'"':"",j=["videoblock"],C(o["$attr?"]("float"))&&j["$<<"](o.$attr("float")),C(o["$attr?"]("align"))&&j["$<<"]("text-"+o.$attr("align")),C(o.$role())&&j["$<<"](o.$role()),de=' class="'+j.$join(" ")+'"',le=C(o["$title?"]())?`
583
- <div class="title">`+o.$title()+"</div>":"",ke=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",Be=C(o["$attr?"]("height"))?' height="'+o.$attr("height")+'"':"",o.$attr("poster")){case"vimeo":return C((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=C(o["$attr?"]("start"))?"#at="+o.$attr("start"):"",ht=["?"],T=o.$attr("target").$split("/",2),m=st(T),at=m[0]==null?M:m[0],mt=m[1]==null?M:m[1],yt=C(mt=C(xt=mt)?xt:o.$attr("hash"))?""+(C(xt=ht.$pop())?xt:"&amp;")+"h="+mt:"",vt=C(o["$option?"]("autoplay"))?""+(C(xt=ht.$pop())?xt:"&amp;")+"autoplay=1":"",Tt=C(o["$option?"]("loop"))?""+(C(xt=ht.$pop())?xt:"&amp;")+"loop=1":"",St=C(o["$option?"]("muted"))?""+(C(xt=ht.$pop())?xt:"&amp;")+"muted=1":"","<div"+D+de+">"+le+`
584
- <div class="content">
585
- <iframe`+ke+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+yt+vt+Tt+St+it+'" frameborder="0"'+(C(o["$option?"]("nofullscreen"))?"":S.$append_boolean_attribute("allowfullscreen",b))+`></iframe>
586
- </div>
587
- </div>`;case"youtube":return C((Xe=o.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Wt=C(o["$option?"]("related"))?1:0,Bt=C(o["$attr?"]("start"))?"&amp;start="+o.$attr("start"):"",er=C(o["$attr?"]("end"))?"&amp;end="+o.$attr("end"):"",vt=C(o["$option?"]("autoplay"))?"&amp;autoplay=1":"",Tt=C(Kt=o["$option?"]("loop"))?"&amp;loop=1":"",Pt=C(o["$option?"]("muted"))?"&amp;mute=1":"",Yt=C(o["$option?"]("nocontrols"))?"&amp;controls=0":"",C(o["$option?"]("nofullscreen"))?(Xt="&amp;fs=0",nr=""):(Xt="",nr=S.$append_boolean_attribute("allowfullscreen",b)),Yn=C(o["$option?"]("modest"))?"&amp;modestbranding=1":"",tn=C(o["$attr?"]("theme"))?"&amp;theme="+o.$attr("theme"):"",Jt=C(o["$attr?"]("lang"))?"&amp;hl="+o.$attr("lang"):"",T=o.$attr("target").$split("/",2),m=st(T),at=m[0]==null?M:m[0],Ut=m[1]==null?M:m[1],C(Ut=C(xt=Ut)?xt:o.$attr("list"))?Zt="&amp;list="+Ut:(T=at.$split(",",2),m=st(T),at=m[0]==null?M:m[0],Cr=m[1]==null?M:m[1],C(Cr=C(xt=Cr)?xt:o.$attr("playlist"))?Zt="&amp;playlist="+at+","+Cr:Zt=C(Kt)?"&amp;playlist="+at:""),"<div"+D+de+">"+le+`
588
- <div class="content">
589
- <iframe`+ke+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Wt+Bt+er+vt+Tt+Pt+Yt+Zt+Xt+Yn+tn+Jt+'" frameborder="0"'+nr+`></iframe>
590
- </div>
591
- </div>`;default:return Ht=C((kr=o.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+o.$media_uri(kr)+'"',hn=C((kr=o.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+kr+'"',Tr=o.$attr("start"),Sr=o.$attr("end"),xn=C(Tr)||C(Sr)?"#t="+(C(xt=Tr)?xt:"")+(C(Sr)?","+Sr:""):"","<div"+D+de+">"+le+`
592
- <div class="content">
593
- <video src="`+o.$media_uri(o.$attr("target"))+xn+'"'+ke+Be+Ht+(C(o["$option?"]("autoplay"))?S.$append_boolean_attribute("autoplay",b):"")+(C(o["$option?"]("muted"))?S.$append_boolean_attribute("muted",b):"")+(C(o["$option?"]("nocontrols"))?"":S.$append_boolean_attribute("controls",b))+(C(o["$option?"]("loop"))?S.$append_boolean_attribute("loop",b):"")+hn+`>
594
- Your browser does not support the video tag.
595
- </video>
596
- </div>
597
- </div>`}}),Ue(ie,"$convert_inline_anchor",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M;switch(o.$type()){case"xref":return C(T=o.$attributes()["$[]"]("path"))?(S=m.$append_link_constraint_attrs(o,C(o.$role())?[' class="'+o.$role()+'"']:[]).$join(),b=C(D=o.$text())?D:T):(S=C(o.$role())?' class="'+o.$role()+'"':"",C(b=o.$text())||(E($e("AbstractNode"),j=C(D=(m.refs=C(de=m.refs)?de:o.$document().$catalog()["$[]"]("refs"))["$[]"](le=o.$attributes()["$[]"]("refid")))?D:C(le["$nil_or_empty?"]())?ke=m.$get_root_document(o):M)?C(m.resolving_xref=C(D=m.resolving_xref)?D:Be=!0)&&C(Be)?(C(b=j.$xreftext(o.$attr("xrefstyle",M,!0)))?C(b["$include?"]("<a"))&&(b=b.$gsub($e("DropAnchorRx"),"")):b=C(ke)?"[^top]":"["+le+"]",m.resolving_xref=M):b=C(ke)?"[^top]":"["+le+"]":b="["+le+"]")),'<a href="'+o.$target()+'"'+S+">"+b+"</a>";case"ref":return'<a id="'+o.$id()+'"></a>';case"link":return S=C(o.$id())?[' id="'+o.$id()+'"']:[],C(o.$role())&&S["$<<"](' class="'+o.$role()+'"'),C(o["$attr?"]("title"))&&S["$<<"](' title="'+o.$attr("title")+'"'),'<a href="'+o.$target()+'"'+m.$append_link_constraint_attrs(o,S).$join()+">"+o.$text()+"</a>";case"bibref":return'<a id="'+o.$id()+'"></a>['+(C(D=o.$reftext())?D: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,T=M,S=M;return C(o.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+o.$text()+'"></i><b>('+o.$text()+")</b>":C(o.$document()["$attr?"]("icons"))?(T=o.$icon_uri("callouts/"+o.$text()),'<img src="'+T+'" alt="'+o.$text()+'"'+m.void_element_slash+">"):E(He("Array"),S=o.$attributes()["$[]"]("guard"))?'&lt;!--<b class="conum">('+o.$text()+")</b>--&gt;":""+S+'<b class="conum">('+o.$text()+")</b>"}),Ue(ie,"$convert_inline_footnote",function(o){var m=M,T=M;return C(m=o.$attr("index"))?Y(o.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>":(T=C(o.$id())?' id="_footnote_'+o.$id()+'"':"",'<sup class="footnote"'+T+'>[<a id="_footnoteref_'+m+'" class="footnote" href="#_footnotedef_'+m+'" title="View footnote.">'+m+"</a>]</sup>"):Y(o.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+o.$text()+"]</sup>":M}),Ue(ie,"$convert_inline_image",function(o){var m=this,T=M,S=M,b=M,D=M,j=M,de=M,le=M,ke=M,Be=M,Xe=M;return T=o.$target(),Y(S=C(b=o.$type())?b:"image","icon")?Y(D=o.$document().$attr("icons"),"font")?(j="fa fa-"+T,C(o["$attr?"]("size"))&&(j=""+j+" fa-"+o.$attr("size")),C(o["$attr?"]("flip"))?j=""+j+" fa-flip-"+o.$attr("flip"):C(o["$attr?"]("rotate"))&&(j=""+j+" fa-rotate-"+o.$attr("rotate")),de=C(o["$attr?"]("title"))?' title="'+o.$attr("title")+'"':"",le='<i class="'+j+'"'+de+"></i>"):C(D)?(de=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",C(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),C(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),le='<img src="'+o.$icon_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"):le="["+o.$alt()+"&#93;":(de=C(o["$attr?"]("width"))?' width="'+o.$attr("width")+'"':"",C(o["$attr?"]("height"))&&(de=""+de+' height="'+o.$attr("height")+'"'),C(o["$attr?"]("title"))&&(de=""+de+' title="'+o.$attr("title")+'"'),(C(o["$attr?"]("format","svg"))||C(T["$include?"](".svg")))&&C(We(o.$document().$safe(),He($e("SafeMode"),"SECURE")))?C(o["$option?"]("inline"))?le=C(b=m.$read_svg_contents(o,T))?b:'<span class="alt">'+o.$alt()+"</span>":C(o["$option?"]("interactive"))?(ke=C(o["$attr?"]("fallback"))?'<img src="'+o.$image_uri(o.$attr("fallback"))+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":'<span class="alt">'+o.$alt()+"</span>",le='<object type="image/svg+xml" data="'+o.$image_uri(T)+'"'+de+">"+ke+"</object>"):le='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">":le='<img src="'+o.$image_uri(T)+'" alt="'+m.$encode_attribute_value(o.$alt())+'"'+de+m.void_element_slash+">"),C(o["$attr?"]("link"))&&(le='<a class="image" href="'+o.$attr("link")+'"'+m.$append_link_constraint_attrs(o).$join()+">"+le+"</a>"),Be=S,C(Xe=o.$role())?Be=C(o["$attr?"]("float"))?""+Be+" "+o.$attr("float")+" "+Xe:""+Be+" "+Xe:C(o["$attr?"]("float"))&&(Be=""+Be+" "+o.$attr("float")),'<span class="'+Be+'">'+le+"</span>"}),Ue(ie,"$convert_inline_indexterm",function(o){return Y(o.$type(),"visible")?o.$text():""}),Ue(ie,"$convert_inline_kbd",function(o){var m=M;return Y((m=o.$attr("keys")).$size(),1)?"<kbd>"+m["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+m.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ie,"$convert_inline_menu",function(o){var m=M,T=M,S=M,b=M,D=M;return m=C(o.$document()["$attr?"]("icons","font"))?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ',T="</b>"+m+'<b class="submenu">',S=o.$attr("menu"),C((b=o.$attr("submenus"))["$empty?"]())?C(D=o.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+S+"</b>"+m+'<b class="menuitem">'+D+"</b></span>":'<b class="menuref">'+S+"</b>":'<span class="menuseq"><b class="menu">'+S+"</b>"+m+'<b class="submenu">'+b.$join(T)+"</b>"+m+'<b class="menuitem">'+o.$attr("menuitem")+"</b></span>"}),Ue(ie,"$convert_inline_quoted",function(o){var m,T,S=M,b=M,D=M,j=M;return T=$e("QUOTE_TAGS")["$[]"](o.$type()),m=st(T),S=m[0]==null?M:m[0],b=m[1]==null?M:m[1],D=m[2]==null?M:m[2],C(o.$id())?(j=C(o.$role())?' class="'+o.$role()+'"':"",C(D)?""+S.$chop()+' id="'+o.$id()+'"'+j+">"+o.$text()+b:'<span id="'+o.$id()+'"'+j+">"+S+o.$text()+b+"</span>"):C(o.$role())?C(D)?""+S.$chop()+' class="'+o.$role()+'">'+o.$text()+b:'<span class="'+o.$role()+'">'+S+o.$text()+b+"</span>":""+S+o.$text()+b}),Ue(ie,"$read_svg_contents",function(o,m){var T=M,S=M,b=M,D=M;if(C(T=o.$read_contents(m,_e(["start","normalize","label","warn_if_empty"],{start:o.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(C(T["$empty?"]()))return M;C(T["$start_with?"]("<svg"))||(T=T.$sub($e("SvgPreambleRx"),"")),S=b=D=M,Oe(["width","height"],"each",[],function(de){var le=M,ke=M;if(de==null&&(de=M),!C(o["$attr?"](de)))return M;if(!C(b)){if(Y(D=C(le=D)?le:C(ke=T.$match($e("SvgStartTagRx")))?ke:"no_match","no_match"))return M;b=(S=D["$[]"](0)).$gsub($e("DimensionAttributeRx"),"")}return b=""+b.$chop()+" "+de+'="'+o.$attr(de)+'">'}),C(b)&&(T=""+b+T["$[]"](a.Range.$new(S.$length(),-1,!1)))}return T}),ie.$private(),Ue(ie,"$append_boolean_attribute",function(o,m){return C(m)?" "+o+'="'+o+'"':" "+o}),Ue(ie,"$append_link_constraint_attrs",function(o,m){var T=M,S=M;return m==null&&(m=[]),C(o["$option?"]("nofollow"))&&(T="nofollow"),C(S=o.$attributes()["$[]"]("window"))?(m["$<<"](' target="'+S+'"'),(Y(S,"_blank")||C(o["$option?"]("noopener")))&&m["$<<"](C(T)?' rel="'+T+' noopener"':' rel="noopener"')):C(T)&&m["$<<"](' rel="'+T+'"'),m},-2),Ue(ie,"$encode_attribute_value",function(o){return C(o["$include?"]('"'))?o.$gsub('"',"&quot;"):o}),Ue(ie,"$generate_manname_section",function(o){var m=M,T=M,S=M,b=M,D=M;return m=o.$attr("manname-title","Name"),C(S=o.$sections()["$[]"](0))&&Y(T=S.$title(),T.$upcase())&&(m=m.$upcase()),b=C(D=o.$attr("manname-id"))?' id="'+D+'"':"","<h2"+b+">"+m+`</h2>
598
- <div class="sectionbody">
599
- <p>`+o.$attr("mannames").$join(", ")+" - "+o.$attr("manpurpose")+`</p>
600
- </div>`}),Ue(ie,"$get_root_document",function(o){for(;C((o=o.$document())["$nested?"]());)o=o.$parent_document();return o}),Ue(ie,"$method_missing",function g(o,m){var T,S,b=g.$$p||M,D=this,j=M;return g.$$p=null,T=tt(arguments,1),S=T,Me((j=o.$to_s())["$start_with?"]("convert_"))&&C(D["$handles?"](j))?Oe(D,"send",["convert_"+j].concat(lt(S))):G(D,Ie(D,"method_missing",g,!1,!0),"method_missing",[o].concat(lt(S)),b)},-2),Ue(ie,"$respond_to_missing?",function(o,m){var T=this,S=M,b=M;return tt(arguments,1),C(S=(b=o.$to_s())["$start_with?"]("convert_")["$!"]())?T["$handles?"](b):S},-2)}(ye("Converter"),He(ye("Converter"),"Base"),oe)}(K[0],K)},Opal.modules["asciidoctor/extensions"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.hash2,y=a.def,Y=a.send,Ue=a.alias,G=a.slice,Ie=a.rb_plus,C=a.eqeq,Oe=a.rb_gt,ze=a.not,Ge=a.eqeqeq,Me=a.to_a,Pe=a.to_ary,dt=a.const_set,We=a.return_val,st=a.send2,Ye=a.find_super,Je=a.NilClass,$t=a.class_variable_set,z=a.class_variable_get,et=a.regexp,E=a.Class,tt=a.return_ivar,lt=a.rb_lt,K=a.rb_minus,M=a.hash,He=[],we=a.nil,Ne=a.$$$;return a.add_stubs("[]=,config,const_defined?,singleton_class?,include,const_get,extend,enable_dsl,attr_reader,merge,class,update,raise,document,==,doctype,[],+,level,delete,>,casecmp,new,title=,sectname=,special=,fetch,numbered=,attr?,!,key?,special,numbered,id=,generate_id,title,update_attributes,tr,basename,create_block,assign_caption,===,parse_blocks,empty?,include?,sub_attributes,parse,each,define_method,unshift,shift,send,size,receiver,binding,define_singleton_method,instance_exec,to_proc,call,option,content_model,flatten,positional_attributes,default_attributes,respond_to?,to_s,partition,to_i,<<,compact,inspect,resolve_attributes,attr_accessor,to_set,contexts,match?,resolve_regexp,format,method,register,reset,values,groups,arity,activate,add_document_processor,tree_processor,tree_processors?,tree_processors,any?,select,add_syntax_processor,to_sym,instance_variable_get,kind,private,join,map,split,capitalize,instance_variable_set,resolve_args,singleton_class,process_block_given?,source_location,freeze,resolve_class,<,update_config,as_symbol,name,name=,pop,-,-@,next_auto_id,generate_name,each_with_object"),function(Te,oe){var ye=ae(Te,"Asciidoctor"),Z=[ye].concat(oe);return function(F,q){var ie=ae(F,"Extensions"),ee=[ie].concat(q),$e=a.$r(ee);return function(U,g,o){var m=te(U,g,"Processor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.config=we,function(D,j){return y(D,"$config",function(){var le=this,ke=we;return le.config==null&&(le.config=we),le.config=V(ke=le.config)?ke:_e([],{})}),y(D,"$option",function(le,ke){var Be,Xe=this;return Be=[le,ke],Y(Xe.$config(),"[]=",Be),Be[Be.length-1]}),y(D,"$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(D,"use_dsl","enable_dsl")}(a.get_singleton_class(m)),m.$attr_reader("config"),y(m,"$initialize",function(j){var de=this;return j==null&&(j=_e([],{})),de.config=de.$class().$config().$merge(j)},-1),y(m,"$update_config",function(j){var de=this;return de.config.$update(j)}),y(m,"$process",function(j){var de=this;return G(arguments),de.$raise(Ne("NotImplementedError"),""+S("Processor")+" subclass "+de.$class()+" must implement the #process method")},-1),y(m,"$create_section",function(j,de,le,ke){var Be,Xe,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Wt=we;return ke==null&&(ke=_e([],{})),it=j.$document(),ht=(at=it.$doctype())["$=="]("book"),mt=V(yt=ke["$[]"]("level"))?yt:Ie(j.$level(),1),V(xt=le.$delete("style"))?V(ht)&&C(xt,"abstract")?(Be=["chapter",1],vt=Be[0],mt=Be[1]):(Be=[xt,!0],vt=Be[0],Tt=Be[1],C(mt,0)&&(mt=1)):V(ht)?vt=C(mt,0)?"part":V(Oe(mt,1))?"section":"chapter":C(at,"manpage")&&C(de.$casecmp("synopsis"),0)?(Be=["synopsis",!0],vt=Be[0],Tt=Be[1]):vt="section",St=S("Section").$new(j,mt),Be=[de,vt],Xe=[Be[0]],Y(St,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],Y(St,"sectname=",Xe),Xe[Xe.length-1],V(Tt)?(St["$special="](!0),V(ke.$fetch("numbered",xt["$=="]("appendix")))?St["$numbered="](!0):ze(ke["$key?"]("numbered"))&&V(it["$attr?"]("sectnums","all"))&&St["$numbered="](V(ht)&&C(mt,1)?"chapter":!0)):V(Oe(mt,0))?V(ke.$fetch("numbered",it["$attr?"]("sectnums")))&&St["$numbered="](V(St.$special())?V(yt=j.$numbered())||yt:!0):V(ke.$fetch("numbered",V(yt=ht)?it["$attr?"]("partnums"):yt))&&St["$numbered="](!0),C(Wt=le["$[]"]("id"),!1)?le.$delete("id"):St["$id="]((Be=["id",V(yt=Wt)?yt:V(it["$attr?"]("sectids"))?S("Section").$generate_id(St.$title(),it):we],Y(le,"[]=",Be),Be[Be.length-1])),St.$update_attributes(le),St},-4),y(m,"$create_block",function(j,de,le,ke,Be){return Be==null&&(Be=_e([],{})),S("Block").$new(j,de,_e(["source","attributes"],{source:le,attributes:ke}).$merge(Be))},-5),y(m,"$create_list",function(j,de,le){var ke=we;return le==null&&(le=we),ke=S("List").$new(j,de),V(le)&&ke.$update_attributes(le),ke},-3),y(m,"$create_list_item",function(j,de){return de==null&&(de=we),S("ListItem").$new(j,de)},-2),y(m,"$create_image_block",function(j,de,le){var ke,Be=this,Xe=we,it=we,ht=we;return le==null&&(le=_e([],{})),V(Xe=de["$[]"]("target"))||Be.$raise(Ne("ArgumentError"),"Unable to create an image block, target attribute is required"),V(de["$[]"]("alt"))||de["$[]="]("alt",(ke=["default-alt",S("Helpers").$basename(Xe,!0).$tr("_-"," ")],Y(de,"[]=",ke),ke[ke.length-1])),it=V(de["$key?"]("title"))?de.$delete("title"):we,ht=Be.$create_block(j,"image",we,de,le),V(it)&&(ht["$title="](it),ht.$assign_caption(de.$delete("caption"),"figure")),ht},-3),y(m,"$create_inline",function(j,de,le,ke){return ke==null&&(ke=_e([],{})),S("Inline").$new(j,de,le,C(de,"quoted")?_e(["type"],{type:"unquoted"}).$merge(ke):ke)},-4),y(m,"$parse_content",function(j,de,le){var ke=we;return le==null&&(le=we),ke=Ge(S("Reader"),de)?de:S("Reader").$new(de),S("Parser").$parse_blocks(ke,j,le),j},-3),y(m,"$parse_attributes",function(j,de,le){var ke=we;return le==null&&(le=_e([],{})),V(V(de)?de["$empty?"]():!0)?_e([],{}):(V(le["$[]"]("sub_attributes"))&&V(de["$include?"](S("ATTR_REF_HEAD")))&&(de=j.$sub_attributes(de)),S("AttributeList").$new(de).$parse(V(ke=le["$[]"]("positional_attributes"))?ke:[]))},-3),Y([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block","create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],function D(j,de,le){var ke=D.$$s==null?this:D.$$s;return j==null&&(j=we),de==null&&(de=we),le==null&&(le=we),Y(ke,"define_method",[j],function Be(Xe){var it,ht,at=Be.$$s==null?this:Be.$$s;return it=G(arguments),ht=it,ht.$unshift(ht.$shift(),le),Y(at,"send",[de].concat(Me(ht)))},{$$arity:-1,$$s:ke})},{$$s:m})}(ee[0],null,ee),function(U){var g=ae(U,"ProcessorDsl");return y(g,"$option",function(m,T){var S,b=this;return S=[m,T],Y(b.$config(),"[]=",S),S[S.length-1]}),y(g,"$process",function o(m){var T=o.$$p||we,S,b,D,j=this,de=we;return j.process_block==null&&(j.process_block=we),o.$$p=null,S=G(arguments),b=S,T!==we?(V(b["$empty?"]())||j.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+b.$size()+", expected 0)"),V(T.$binding())&&C(j,T.$binding().$receiver())||(de=j,Y(T,"define_singleton_method",["call"],function(ke){var Be,Xe;return Be=G(arguments),Xe=Be,Y(de,"instance_exec",Me(Xe),T.$to_proc())},-1)),j.process_block=T):V((D=j.process_block,D!=null&&D!==we?"instance-variable":we))?Y(j.process_block,"call",Me(b)):j.$raise(Ne("NotImplementedError"),""+j.$class()+" #process method called before being registered")},-1),y(g,"$process_block_given?",function(){var m,T=this;return m=T.process_block,m!=null&&m!==we?"instance-variable":we})}(ee[0]),function(U,g){var o=ae(U,"DocumentProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("ProcessorDsl")),y(o,"$prefer",function(){var b=this;return b.$option("position",">>")})}(ee[0],ee),function(U,g){var o=ae(U,"SyntaxProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("ProcessorDsl")),y(o,"$named",function(b){var D=this;return Ge(T("Processor"),D)?D.name=b:D.$option("name",b)}),y(o,"$content_model",function(b){var D=this;return D.$option("content_model",b)}),Ue(o,"parse_content_as","content_model"),y(o,"$positional_attributes",function(b){var D,j,de=this;return D=G(arguments),j=D,de.$option("positional_attrs",j.$flatten())},-1),Ue(o,"name_positional_attributes","positional_attributes"),Ue(o,"positional_attrs","positional_attributes"),y(o,"$default_attributes",function(b){var D=this;return D.$option("default_attrs",b)}),Ue(o,"default_attrs","default_attributes"),y(o,"$resolve_attributes",function(b){var D,j,de,le=this,ke=we,Be=we,Xe=we;return D=G(arguments),j=D,V(Oe(j.$size(),1))||V((j=j.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(j=[j]),Ge(!0,ke=j)?(le.$option("positional_attrs",[]),le.$option("default_attrs",_e([],{}))):Ge(Ne("Array"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],Y(j,"each",[],function(ht){var at,mt,yt=we,xt=we,vt=we;return ht==null&&(ht=we),V((ht=ht.$to_s())["$include?"]("="))?(mt=ht.$partition("="),at=Pe(mt),yt=at[0]==null?we:at[0],at[1]==null||at[1],xt=at[2]==null?we:at[2],V(yt["$include?"](":"))&&(mt=yt.$partition(":"),at=Pe(mt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,yt)),at=[yt,xt],Y(Xe,"[]=",at),at[at.length-1]):V(ht["$include?"](":"))?(mt=ht.$partition(":"),at=Pe(mt),vt=at[0]==null?we:at[0],at[1]==null||at[1],yt=at[2]==null?we:at[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),at=[vt,yt],Y(Be,"[]=",at),at[at.length-1]):Be["$<<"](ht)}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):Ge(Ne("Hash"),ke)?(de=[[],_e([],{})],Be=de[0],Xe=de[1],Y(j,"each",[],function(ht,at){var mt,yt,xt=we,vt=we;return ht==null&&(ht=we),at==null&&(at=we),V((xt=ht.$to_s())["$include?"](":"))&&(yt=xt.$partition(":"),mt=Pe(yt),vt=mt[0]==null?we:mt[0],mt[1]==null||mt[1],xt=mt[2]==null?we:mt[2],vt=C(vt,"@")?Be.$size():vt.$to_i(),Be["$[]="](vt,xt)),V(at)?(mt=[xt,at],Y(Xe,"[]=",mt),mt[mt.length-1]):we}),le.$option("positional_attrs",Be.$compact()),le.$option("default_attrs",Xe)):le.$raise(Ne("ArgumentError"),"unsupported attributes specification for macro: "+j.$inspect())},-1),Ue(o,"resolves_attributes","resolve_attributes")}(ee[0],ee),function(U,g,o){var m=te(U,g,"Preprocessor"),T=[m].concat(o),S=a.$r(T);return y(m,"$process",function(D,j){var de=this;return de.$raise(Ne("NotImplementedError"),""+S("Preprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("Preprocessor"),"DSL",$e("DocumentProcessorDsl")),function(U,g,o){var m=te(U,g,"TreeProcessor"),T=[m].concat(o),S=a.$r(T);return y(m,"$process",function(D){var j=this;return j.$raise(Ne("NotImplementedError"),""+S("TreeProcessor")+" subclass "+j.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("TreeProcessor"),"DSL",$e("DocumentProcessorDsl")),dt(ee[0],"Treeprocessor",$e("TreeProcessor")),function(U,g,o){var m=te(U,g,"Postprocessor"),T=[m].concat(o),S=a.$r(T);return y(m,"$process",function(D,j){var de=this;return de.$raise(Ne("NotImplementedError"),""+S("Postprocessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),dt($e("Postprocessor"),"DSL",$e("DocumentProcessorDsl")),function(U,g,o){var m=te(U,g,"IncludeProcessor"),T=[m].concat(o),S=a.$r(T);return y(m,"$process",function(D,j,de,le){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+S("IncludeProcessor")+" subclass "+ke.$class()+" must implement the #process method")}),y(m,"$handles?",We(!0))}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"IncludeProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("DocumentProcessorDsl")),y(o,"$handles?",function S(b){var D=S.$$p||we,j,de,le,ke=this;return ke.handles_block==null&&(ke.handles_block=we),S.$$p=null,j=G(arguments),de=j,D!==we?(V(de["$empty?"]())||ke.$raise(Ne("ArgumentError"),"wrong number of arguments (given "+de.$size()+", expected 0)"),ke.handles_block=D):V((le=ke.handles_block,le!=null&&le!==we?"instance-variable":we))?ke.handles_block.$call(de["$[]"](0)):!0},-1)}(ee[0],ee),dt($e("IncludeProcessor"),"DSL",$e("IncludeProcessorDsl")),function(U,g,o){var m=te(U,g,"DocinfoProcessor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.config=we,y(m,"$initialize",function D(j){var de;D.$$p;var le=this,ke=we;return D.$$p=null,j==null&&(j=_e([],{})),st(le,Ye(le,"initialize",D,!1,!0),"initialize",[j],null),V(ke=le.config["$[]"]("location"))?ke:(de=["location","head"],Y(le.config,"[]=",de),de[de.length-1])},-1),y(m,"$process",function(j){var de=this;return de.$raise(Ne("NotImplementedError"),""+S("DocinfoProcessor")+" subclass "+de.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"DocinfoProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("DocumentProcessorDsl")),y(o,"$at_location",function(b){var D=this;return D.$option("location",b)})}(ee[0],ee),dt($e("DocinfoProcessor"),"DSL",$e("DocinfoProcessorDsl")),function(U,g,o){var m=te(U,g,"BlockProcessor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.config=we,m.$attr_accessor("name"),y(m,"$initialize",function D(j,de){var le;D.$$p;var ke=this,Be=we;return D.$$p=null,j==null&&(j=we),de==null&&(de=_e([],{})),st(ke,Ye(ke,"initialize",D,!1,!0),"initialize",[de],null),ke.name=V(Be=j)?Be:ke.config["$[]"]("name"),Ge(Je,Be=ke.config["$[]"]("contexts"))?V(ke.config["$[]"]("contexts"))||ke.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ge(Ne("Symbol"),Be)?ke.config["$[]="]("contexts",[ke.config["$[]"]("contexts")].$to_set()):ke.config["$[]="]("contexts",ke.config["$[]"]("contexts").$to_set()),V(Be=ke.config["$[]"]("content_model"))?Be:(le=["content_model","compound"],Y(ke.config,"[]=",le),le[le.length-1])},-1),y(m,"$process",function(j,de,le){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+S("BlockProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"BlockProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("SyntaxProcessorDsl")),y(o,"$contexts",function(b){var D,j,de=this;return D=G(arguments),j=D,de.$option("contexts",j.$flatten().$to_set())},-1),Ue(o,"on_contexts","contexts"),Ue(o,"on_context","contexts"),Ue(o,"bind_to","contexts")}(ee[0],ee),dt($e("BlockProcessor"),"DSL",$e("BlockProcessorDsl")),function(U,g,o){var m=te(U,g,"MacroProcessor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.config=we,m.$attr_accessor("name"),y(m,"$initialize",function D(j,de){var le;D.$$p;var ke=this,Be=we;return D.$$p=null,j==null&&(j=we),de==null&&(de=_e([],{})),st(ke,Ye(ke,"initialize",D,!1,!0),"initialize",[de],null),ke.name=V(Be=j)?Be:ke.config["$[]"]("name"),V(Be=ke.config["$[]"]("content_model"))?Be:(le=["content_model","attributes"],Y(ke.config,"[]=",le),le[le.length-1])},-1),y(m,"$process",function(j,de,le){var ke=this;return ke.$raise(Ne("NotImplementedError"),""+S("MacroProcessor")+" subclass "+ke.$class()+" must implement the #process method")})}(ee[0],$e("Processor"),ee),function(U,g){var o=ae(U,"MacroProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("SyntaxProcessorDsl")),y(o,"$resolve_attributes",function S(b){var D,j,de=S.$$p||we,le=this;return S.$$p=null,D=G(arguments),j=D,C(j.$size(),1)&&ze(j["$[]"](0))?le.$option("content_model","text"):(st(le,Ye(le,"resolve_attributes",S,!1,!0),"resolve_attributes",Me(j),de),le.$option("content_model","attributes"))},-1),Ue(o,"resolves_attributes","resolve_attributes")}(ee[0],ee),function(U,g,o){var m=te(U,g,"BlockMacroProcessor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.name=we,y(m,"$name",function(){var j=this;return V(S("MacroNameRx")["$match?"](j.name.$to_s()))||j.$raise(Ne("ArgumentError"),"invalid name for block macro: "+j.name),j.name})}(ee[0],$e("MacroProcessor"),ee),dt($e("BlockMacroProcessor"),"DSL",$e("MacroProcessorDsl")),function(U,g,o){var m=te(U,g,"InlineMacroProcessor"),T=[m].concat(o),S=a.$r(T),b=m.$$prototype;return b.config=b.name=we,$t(T[0],"@@rx_cache",_e([],{})),y(m,"$regexp",function(){var j,de=this,le=we;return V(le=de.config["$[]"]("regexp"))?le:(j=["regexp",de.$resolve_regexp(de.name.$to_s(),de.config["$[]"]("format"))],Y(de.config,"[]=",j),j[j.length-1])}),y(m,"$resolve_regexp",function(j,de){var le,ke=this,Be=we;return V(S("MacroNameRx")["$match?"](j))||ke.$raise(Ne("ArgumentError"),"invalid name for inline macro: "+j),V(Be=z(T[0],"@@rx_cache",!1)["$[]"]([j,de]))?Be:(le=[[j,de],et(["\\\\?",j,":",C(de,"short")?"(){0}":"(\\S+?)","\\[(|",S("CC_ANY"),"*?[^\\\\])\\]"])],Y(z(T[0],"@@rx_cache",!1),"[]=",le),le[le.length-1])})}(ee[0],$e("MacroProcessor"),ee),function(U,g){var o=ae(U,"InlineMacroProcessorDsl"),m=[o].concat(g),T=a.$r(m);return o.$include(T("MacroProcessorDsl")),y(o,"$format",function(b){var D=this;return D.$option("format",b)}),Ue(o,"match_format","format"),Ue(o,"using_format","format"),y(o,"$match",function(b){var D=this;return D.$option("regexp",b)})}(ee[0],ee),dt($e("InlineMacroProcessor"),"DSL",$e("InlineMacroProcessorDsl")),function(U,g){var o=te(U,g,"Extension");return o.$attr_reader("kind"),o.$attr_reader("config"),o.$attr_reader("instance"),y(o,"$initialize",function(T,S,b){var D=this;return D.kind=T,D.instance=S,D.config=b})}(ee[0],null),function(U,g){var o=te(U,g,"ProcessorExtension");return o.$attr_reader("process_method"),y(o,"$initialize",function m(T,S,b){m.$$p;var D=this,j=we;return m.$$p=null,b==null&&(b=we),st(D,Ye(D,"initialize",m,!1,!0),"initialize",[T,S,S.$config()],null),D.process_method=V(j=b)?j:S.$method("process")},-3)}(ee[0],$e("Extension")),function(U,g,o){var m=te(U,g,"Group"),T=[m].concat(o);return function(S,b){var D=[S].concat(b),j=a.$r(D);return y(S,"$register",function(le){var ke=this;return le==null&&(le=we),j("Extensions").$register(le,ke)},-1)}(a.get_singleton_class(m),T),y(m,"$activate",function(b){var D=this;return D.$raise(Ne("NotImplementedError"))})}(ee[0],null,ee),function(U,g,o){var m=te(U,g,"Registry"),T=[m].concat(o),S=a.$r(T),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(j){var de=this;return j==null&&(j=_e([],{})),de.groups=j,de.$reset(),de.preprocessor_extensions=de.tree_processor_extensions=de.postprocessor_extensions=de.include_processor_extensions=de.docinfo_processor_extensions=de.block_extensions=de.block_macro_extensions=de.inline_macro_extensions=we,de.document=we},-1),y(m,"$activate",function(j){var de=this,le=we;return V(de.document)&&de.$reset(),de.document=j,V((le=Ie(S("Extensions").$groups().$values(),de.groups.$values()))["$empty?"]())||Y(le,"each",[],function ke(Be){var Xe=ke.$$s==null?this:ke.$$s,it=we;if(Be==null&&(Be=we),Ge(Ne("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return Y(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return we}else return Ge(E,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:de}),de}),y(m,"$preprocessor",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_document_processor",["preprocessor",ke],de.$to_proc())},-1),y(m,"$preprocessors?",function(){var j=this;return j.preprocessor_extensions["$!"]()["$!"]()}),y(m,"$preprocessors",tt("preprocessor_extensions")),y(m,"$tree_processor",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_document_processor",["tree_processor",ke],de.$to_proc())},-1),y(m,"$tree_processors?",function(){var j=this;return j.tree_processor_extensions["$!"]()["$!"]()}),y(m,"$tree_processors",tt("tree_processor_extensions")),Ue(m,"treeprocessor","tree_processor"),Ue(m,"treeprocessors?","tree_processors?"),Ue(m,"treeprocessors","tree_processors"),y(m,"$postprocessor",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_document_processor",["postprocessor",ke],de.$to_proc())},-1),y(m,"$postprocessors?",function(){var j=this;return j.postprocessor_extensions["$!"]()["$!"]()}),y(m,"$postprocessors",tt("postprocessor_extensions")),y(m,"$include_processor",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_document_processor",["include_processor",ke],de.$to_proc())},-1),y(m,"$include_processors?",function(){var j=this;return j.include_processor_extensions["$!"]()["$!"]()}),y(m,"$include_processors",tt("include_processor_extensions")),y(m,"$docinfo_processor",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_document_processor",["docinfo_processor",ke],de.$to_proc())},-1),y(m,"$docinfo_processors?",function(j){var de=this;return j==null&&(j=we),V(de.docinfo_processor_extensions)?V(j)?Y(de.docinfo_processor_extensions,"any?",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](j)}):!0:!1},-1),y(m,"$docinfo_processors",function(j){var de=this;return j==null&&(j=we),V(de.docinfo_processor_extensions)?V(j)?Y(de.docinfo_processor_extensions,"select",[],function(ke){return ke==null&&(ke=we),ke.$config()["$[]"]("location")["$=="](j)}):de.docinfo_processor_extensions:we},-1),y(m,"$block",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_syntax_processor",["block",ke],de.$to_proc())},-1),y(m,"$blocks?",function(){var j=this;return j.block_extensions["$!"]()["$!"]()}),y(m,"$registered_for_block?",function(j,de){var le=this,ke=we;return V(ke=le.block_extensions["$[]"](j.$to_sym()))&&V(ke.$config()["$[]"]("contexts")["$include?"](de))?ke:!1}),y(m,"$find_block_extension",function(j){var de=this;return de.block_extensions["$[]"](j.$to_sym())}),y(m,"$block_macro",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_syntax_processor",["block_macro",ke],de.$to_proc())},-1),y(m,"$block_macros?",function(){var j=this;return j.block_macro_extensions["$!"]()["$!"]()}),y(m,"$registered_for_block_macro?",function(j){var de=this,le=we;return V(le=de.block_macro_extensions["$[]"](j.$to_sym()))?le:!1}),y(m,"$find_block_macro_extension",function(j){var de=this;return de.block_macro_extensions["$[]"](j.$to_sym())}),y(m,"$inline_macro",function D(j){var de=D.$$p||we,le,ke,Be=this;return D.$$p=null,le=G(arguments),ke=le,Y(Be,"add_syntax_processor",["inline_macro",ke],de.$to_proc())},-1),y(m,"$inline_macros?",function(){var j=this;return j.inline_macro_extensions["$!"]()["$!"]()}),y(m,"$registered_for_inline_macro?",function(j){var de=this,le=we;return V(le=de.inline_macro_extensions["$[]"](j.$to_sym()))?le:!1}),y(m,"$find_inline_macro_extension",function(j){var de=this;return de.inline_macro_extensions["$[]"](j.$to_sym())}),y(m,"$inline_macros",function(){var j=this;return j.inline_macro_extensions.$values()}),y(m,"$prefer",function D(j){var de=D.$$p||we,le,ke,Be=this,Xe=we,it=we,ht=we;return D.$$p=null,le=G(arguments),ke=le,Xe=Ge(S("ProcessorExtension"),it=ke.$shift())?it:Y(Be,"send",[it].concat(Me(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 D(j,de){var le=D.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Wt=we,Bt=we;return D.$$p=null,it=j.$to_s().$tr("_"," "),ht=Y(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()}).$join().$to_sym(),at=S("Extensions").$const_get(ht,!1),mt=V(Ne("::","AsciidoctorJ","skip_raise")?"constant":we)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+j+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+j+"_extensions").$to_sym(),[]),le!==we?(vt=Xe.$resolve_args(de,1),(Tt=at.$new(vt)).$singleton_class().$enable_dsl(),C(le.$arity(),0)?Y(Tt,"instance_exec",[],le.$to_proc()):a.yield1(le,Tt),V(Tt["$process_block_given?"]())||Xe.$raise(Ne("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),Tt.$freeze(),St=S("ProcessorExtension").$new(j,Tt)):(Be=Xe.$resolve_args(de,2),ke=Pe(Be),Tt=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],V(Wt=S("Helpers").$resolve_class(Tt))?(V(lt(Wt,at))||V(mt)&&V(lt(Wt,mt))||Xe.$raise(Ne("ArgumentError"),"Invalid type for "+it+" extension: "+Tt),Bt=Wt.$new(vt),Bt.$freeze(),St=S("ProcessorExtension").$new(j,Bt)):Ge(at,Tt)||V(mt)&&Ge(mt,Tt)?(Tt.$update_config(vt),Tt.$freeze(),St=S("ProcessorExtension").$new(j,Tt)):Xe.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de)),C(St.$config()["$[]"]("position"),">>")?yt.$unshift(St):yt["$<<"](St),St}),y(m,"$add_syntax_processor",function D(j,de){var le=D.$$p||we,ke,Be,Xe=this,it=we,ht=we,at=we,mt=we,yt=we,xt=we,vt=we,Tt=we,St=we,Wt=we,Bt=we;return D.$$p=null,it=j.$to_s().$tr("_"," "),ht=Y(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=we),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=S("Extensions").$const_get(ht,!1),mt=V(Ne("::","AsciidoctorJ","skip_raise")?"constant":we)?Ne(Ne("AsciidoctorJ"),"Extensions").$const_get(ht,!1):we,yt=V(xt=Xe.$instance_variable_get(("@"+j+"_extensions").$to_sym()))?xt:Xe.$instance_variable_set(("@"+j+"_extensions").$to_sym(),_e([],{})),le!==we?(Be=Xe.$resolve_args(de,2),ke=Pe(Be),vt=ke[0]==null?we:ke[0],Tt=ke[1]==null?we:ke[1],(St=at.$new(Xe.$as_symbol(vt),Tt)).$singleton_class().$enable_dsl(),C(le.$arity(),0)?Y(St,"instance_exec",[],le.$to_proc()):a.yield1(le,St),V(vt=Xe.$as_symbol(St.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension at "+le.$source_location().$join(":")),V(St["$process_block_given?"]())||Xe.$raise(Ne("NoMethodError"),"No block specified to process "+it+" extension at "+le.$source_location().$join(":")),St.$freeze(),ke=[vt,S("ProcessorExtension").$new(j,St)],Y(yt,"[]=",ke),ke[ke.length-1]):(Be=Xe.$resolve_args(de,3),ke=Pe(Be),St=ke[0]==null?we:ke[0],vt=ke[1]==null?we:ke[1],Tt=ke[2]==null?we:ke[2],V(Wt=S("Helpers").$resolve_class(St))?(V(lt(Wt,at))||V(mt)&&V(lt(Wt,mt))||Xe.$raise(Ne("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+St),Bt=Wt.$new(Xe.$as_symbol(vt),Tt),V(vt=Xe.$as_symbol(Bt.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension: "+St),Bt.$freeze(),ke=[vt,S("ProcessorExtension").$new(j,Bt)],Y(yt,"[]=",ke),ke[ke.length-1]):Ge(at,St)||V(mt)&&Ge(mt,St)?(St.$update_config(Tt),V(vt=V(vt)?(ke=[Xe.$as_symbol(vt)],Y(St,"name=",ke),ke[ke.length-1]):Xe.$as_symbol(St.$name()))||Xe.$raise(Ne("ArgumentError"),"No name specified for "+it+" extension: "+St),St.$freeze(),ke=[vt,S("ProcessorExtension").$new(j,St)],Y(yt,"[]=",ke),ke[ke.length-1]):Xe.$raise(Ne("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+de))}),y(m,"$reset",function(){var j=this;return j.preprocessor_extensions=j.tree_processor_extensions=j.postprocessor_extensions=j.include_processor_extensions=j.docinfo_processor_extensions=j.block_extensions=j.block_macro_extensions=j.inline_macro_extensions=we,j.document=we}),y(m,"$resolve_args",function(j,de){var le=we,ke=we;return le=Ge(Ne("Hash"),j["$[]"](-1))?j.$pop():_e([],{}),C(de,1)?le:(V(Oe(ke=K(K(de,1),j.$size()),0))?j=Ie(j,Ne("Array").$new(ke)):V(lt(ke,0))&&j.$pop(ke["$-@"]()),j["$<<"](le),j)}),y(m,"$as_symbol",function(j){return V(j)?j.$to_sym():we})}(ee[0],null,ee),function(U,g){var o=[U].concat(g),m=a.$r(o);return y(U,"$generate_name",function(){var S=this;return"extgrp"+S.$next_auto_id()}),y(U,"$next_auto_id",function(){var S=this,b=we;return S.auto_id==null&&(S.auto_id=we),S.auto_id=V(b=S.auto_id)?b:-1,S.auto_id=Ie(S.auto_id,1)}),y(U,"$groups",function(){var S=this,b=we;return S.groups==null&&(S.groups=we),S.groups=V(b=S.groups)?b:_e([],{})}),y(U,"$create",function T(S){var b=T.$$p||we,D=this,j=we;return T.$$p=null,S==null&&(S=we),b!==we?m("Registry").$new(M(V(j=S)?j:D.$generate_name(),b)):m("Registry").$new()},-1),y(U,"$register",function T(S){var b=T.$$p||we,D,j,de,le=this,ke=we,Be=we,Xe=we,it=we,ht=we;return T.$$p=null,D=G(arguments),j=D,ke=j.$size(),b!==we?Be=b:V(Xe=j.$pop())?Be=V(it=m("Helpers").$resolve_class(Xe))?it:Xe:le.$raise(Ne("ArgumentError"),"Extension group to register not specified"),ht=V(it=j.$pop())?it:le.$generate_name(),V(j["$empty?"]())||le.$raise(Ne("ArgumentError"),"Wrong number of arguments ("+ke+" for 1..2)"),de=[ht.$to_sym(),Be],Y(le.$groups(),"[]=",de),de[de.length-1]},-1),y(U,"$unregister_all",function(){var S=this;return S.groups=_e([],{}),we}),y(U,"$unregister",function(S){var b,D,j=this;return b=G(arguments),D=b,Y(D,"each_with_object",[j.$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),ee)}(Z[0],Z)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.def,y=[],Y=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(G,Ie){var C=ae(G,"Asciidoctor"),Oe=[C].concat(Ie);return function(ze,Ge){var Me=te(ze,Ge,"Stylesheets"),Pe=Me.$$prototype;return Pe.primary_stylesheet_data=Y,_e(Me,"$primary_stylesheet_data",function(){var We=this,st=Y;return We.primary_stylesheet_data=V(st=We.primary_stylesheet_data)?st:Ue("IO").$read(Ue("File").$join("css","asciidoctor.css")).$rstrip()})}(Oe[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var ae=a.module,te=a.klass,V=a.def,_e=[];return a.nil,function(y,Y){var Ue=ae(y,"Asciidoctor"),G=[Ue].concat(Y),Ie=a.$r(G);return function(C,Oe){var ze=te(C,Oe,"Document");return V(ze,"$fill_datetime_attributes",function(Me,Pe){var dt=a.truthy,We=a.falsy,st=a.nil,Ye,Je,$t,z,et,E,tt,lt,K=function(T,S){return S===0?T.getUTCFullYear():T.getFullYear()},M=function(T,S){return S===0?T.getUTCMonth():T.getMonth()},He=function(T,S){return S===0?T.getUTCDate():T.getDate()},we=function(T,S){return S===0?T.getUTCHours():T.getHours()},Ne=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ne.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Je=Ne,Ye=0):Ye=-Ne.getTimezoneOffset()/60,dt($t=Me["$[]"]("localdate")))We(z=Me["$[]"]("localyear"))&&(z=$t.indexOf("-")===4?$t.substring(0,4):st,Me["$[]="]("localyear",z));else{var Te=K(Ne,Ye).toString(),oe=("0"+(M(Ne,Ye)+1)).slice(-2),ye=("0"+He(Ne,Ye)).slice(-2);$t=Te+"-"+oe+"-"+ye,Me["$[]="]("localdate",$t),z=Te,Me["$[]="]("localyear",Te)}if(We(et=Me["$[]"]("localtime"))){var Z=("0"+we(Ne,Ye)).slice(-2),F=("0"+Ne.getMinutes()).slice(-2),q=("0"+Ne.getSeconds()).slice(-2),ie;Ye===0?ie="UTC":Ye>0?ie=("+0"+Ye*100).slice(-5):ie=("-0"+-Ye*100).slice(-5),et=Z+":"+F+":"+q+" "+ie,Me["$[]="]("localtime",et)}if(We(E=Me["$[]"]("localdatetime"))&&(E=$t+" "+et,Me["$[]="]("localdatetime",E)),dt(Je)?Pe=Je:dt(Pe)?Ye=-Pe.getTimezoneOffset()/60:Pe=Ne,dt(tt=Me["$[]"]("docdate")))Me["$[]="]("docyear",tt.indexOf("-")===4?tt.substring(0,4):st);else{var ee=K(Pe,Ye).toString(),$e=("0"+(M(Pe,Ye)+1)).slice(-2),U=("0"+He(Pe,Ye)).slice(-2);tt=ee+"-"+$e+"-"+U,Me["$[]="]("docdate",tt),We(Me["$[]"]("docyear"))&&Me["$[]="]("docyear",ee)}if(We(lt=Me["$[]"]("doctime"))){var g=("0"+we(Pe,Ye)).slice(-2),o=("0"+Pe.getMinutes()).slice(-2),m=("0"+Pe.getSeconds()).slice(-2),ie;Ye===0?ie="UTC":Ye>0?ie=("+0"+Ye*100).slice(-5):ie=("-0"+-Ye*100).slice(-5),lt=g+":"+o+":"+m+" "+ie,Me["$[]="]("doctime",lt)}return We(Me["$[]"]("docdatetime"))&&Me["$[]="]("docdatetime",tt+" "+lt),st})}(G[0],Ie("AbstractBlock"))}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ae=a.module,te=a.def,V=[];return a.nil,function(_e,y){var Y=ae(_e,"Asciidoctor"),Ue=[Y].concat(y);return function(G){var Ie=ae(G,"Substitutors");return te(Ie,"$sub_placeholder",function(Oe,ze){return Oe.replace("%s",ze)})}(Ue[0])}(V[0],V)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ae=a.module,te=a.klass,V=a.truthy,_e=a.defs,y=[];return a.nil,function(Y,Ue){var G=ae(Y,"Asciidoctor"),Ie=[G].concat(Ue);return function(C,Oe){var ze=te(C,Oe,"Parser");return V(String.prototype.repeat)?_e(ze,"$uniform?",function(Me,Pe,dt){return Pe.repeat(dt)===Me}):_e(ze,"$uniform?",function(Me,Pe,dt){return Array.apply(null,{length:dt}).map(function(){return Pe}).join("")===Me})}(Ie[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ae=a.module,te=a.truthy,V=a.def,_e=[],y=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(Y,Ue){var G=ae(Y,"Asciidoctor"),Ie=[G].concat(Ue);return function(C,Oe){var ze=ae(C,"SyntaxHighlighter"),Ge=[ze].concat(Oe);return function(Me,Pe){var dt=ae(Me,"Factory"),We=[dt].concat(Pe),st=a.$r(We);return V(dt,"$for",function(Je){var $t=this;return te($t.$registry()["$key?"](Je))?$t.$registry()["$[]"](Je):(te($t["$include?"](st("Logging")))||$t.$include(st("Logging")),te($t.$registry()["$empty?"]())?$t.$logger().$debug("no syntax highlighter available, functionality disabled."):$t.$logger().$debug("syntax highlighter named '"+Je+"' is not available, must be one of: '"+$t.$registry().$keys().$join("', '")+"'."),y)})}(Ge[0],Ge)}(Ie[0],Ie)}(_e[0],_e)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ae=a.top;a.nil,a.add_stubs("require"),ae.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ae.$require("asciidoctor/js/asciidoctor_ext/document"),ae.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ae.$require("asciidoctor/js/asciidoctor_ext/parser"),ae.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ae.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ae=a.klass,te=a.def,V=a.truthy,_e=a.rb_lt,y=[],Y=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,G,Ie){var C=ae(Ue,G,"Logger"),Oe=[C].concat(Ie),ze=a.$r(Oe),Ge=C.$$prototype;return Ge.level=Ge.progname=Ge.pipe=Ge.formatter=Y,function(Me,Pe){var dt=ae(Me,Pe,"Formatter");return te(dt,"$call",function(st,Ye,Je,$t){var z=this,et=Y;return et=Ye.getFullYear()+"-"+("0"+(Ye.getMonth()+1)).slice(-2)+"-"+("0"+Ye.getDate()).slice(-2)+"T"+("0"+Ye.getHours()).slice(-2)+":"+("0"+Ye.getMinutes()).slice(-2)+":"+("0"+Ye.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+et+"] "+st.$rjust(5)+" -- "+Je+": "+z.$message_as_string($t)})}(Oe[0],null),te(C,"$add",function Me(Pe,dt,We){var st=Me.$$p||Y,Ye=this,Je=Y;return Me.$$p=null,dt==null&&(dt=Y),We==null&&(We=Y),V(_e(Pe=V(Je=Pe)?Je:ze("UNKNOWN"),Ye.level))||(We=V(Je=We)?Je:Ye.progname,V(dt)||(st!==Y?dt=a.yieldX(st,[]):(dt=We,We=Ye.progname)),Ye.pipe.$write(Ye.formatter.$call(V(Je=ze("SEVERITY_LABELS")["$[]"](Pe))?Je:"ANY",new Date,We,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,te=a.const_set,V=a.send,_e=a.to_ary,y=a.defs,Y=a.def,Ue=a.truthy,G=a.hash2,Ie=a.eqeq,C=a.rb_minus,Oe=a.regexp,ze=a.top,Ge=[],Me=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"),ze.$require("set"),ze.$require("asciidoctor/js"),function(dt,We){var st=ae(dt,"Asciidoctor"),Ye=[st].concat(We),Je=a.$r(Ye),$t=Me;return te(Ye[0],"RUBY_ENGINE_OPAL",te(Ye[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(z,et){var E=ae(z,"SafeMode"),tt=[E].concat(et);return te(tt[0],"UNSAFE",0),te(tt[0],"SAFE",1),te(tt[0],"SERVER",10),te(tt[0],"SECURE",20),E.names_by_value=V(V(E.$constants(!1),"map",[],function lt(K){var M=lt.$$s==null?this:lt.$$s;return K==null&&(K=Me),[M.$const_get(K),K.$to_s().$downcase()]},{$$s:E}),"sort",[],function(K,M){var He,we,Ne=Me,Te=Me;return K==null&&(K=Me),M==null&&(M=Me),we=K,He=_e(we),Ne=He[0]==null?Me:He[0],we=M,He=_e(we),Te=He[0]==null?Me:He[0],Ne["$<=>"](Te)},{$$has_top_level_mlhs_arg:!0}).$to_h(),y(E,"$value_for_name",function(K){var M=this;return M.$const_get(K.$upcase(),!1)}),y(E,"$name_for_value",function(K){var M=this;return M.names_by_value==null&&(M.names_by_value=Me),M.names_by_value["$[]"](K)}),y(E,"$names",function(){var K=this;return K.names_by_value==null&&(K.names_by_value=Me),K.names_by_value.$values()})}(Ye[0],Ye),function(z,et){var E=ae(z,"Compliance");return E.keys=Pe("Set").$new(),function(tt,lt){return tt.$attr_reader("keys"),Y(tt,"$define",function(M,He){var we=this;return we.keys==null&&(we.keys=Me),we.$instance_variable_set("@"+M,He),we.$singleton_class().$send("attr_accessor",M),we.keys["$<<"](M),Me})}(a.get_singleton_class(E)),E.$define("block_terminates_paragraph",!0),E.$define("strict_verbatim_paragraphs",!0),E.$define("underline_style_section_titles",!0),E.$define("unwrap_standalone_preamble",!0),E.$define("attribute_missing","skip"),E.$define("attribute_undefined","drop-line"),E.$define("shorthand_property_syntax",!0),E.$define("natural_xrefs",!0),E.$define("unique_id_start_index",2),E.$define("markdown_syntax",!0)}(Ye[0]),Ue(Je("ROOT_DIR","skip_raise")?"constant":Me)||te(Ye[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),te(Ye[0],"LIB_DIR",Pe("File").$join(Je("ROOT_DIR"),"lib")),te(Ye[0],"DATA_DIR",Pe("File").$join(Je("ROOT_DIR"),"data")),te(Ye[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(z){if(a.rescue(z,[Je("StandardError")]))try{return Ue($t=Pe("ENV")["$[]"]("HOME"))?$t:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw z}}()),te(Ye[0],"LF",`
601
- `),te(Ye[0],"NULL","\0"),te(Ye[0],"TAB"," "),te(Ye[0],"MAX_INT",9007199254740991),te(Ye[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),te(Ye[0],"BOM_BYTES_UTF_8",[239,187,191]),te(Ye[0],"BOM_BYTES_UTF_16LE",[255,254]),te(Ye[0],"BOM_BYTES_UTF_16BE",[254,255]),te(Ye[0],"FILE_READ_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),te(Ye[0],"URI_READ_MODE",Je("FILE_READ_MODE")),te(Ye[0],"FILE_WRITE_MODE",Ue(Je("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),te(Ye[0],"DEFAULT_DOCTYPE","article"),te(Ye[0],"DEFAULT_BACKEND","html5"),te(Ye[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),te(Ye[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),te(Ye[0],"BACKEND_ALIASES",G(["html","docbook"],{html:"html5",docbook:"docbook5"})),te(Ye[0],"DEFAULT_PAGE_WIDTHS",G(["docbook"],{docbook:425})),te(Ye[0],"DEFAULT_EXTENSIONS",G(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),te(Ye[0],"ASCIIDOC_EXTENSIONS",G([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),te(Ye[0],"SETEXT_SECTION_LEVELS",G(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),te(Ye[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),te(Ye[0],"ADMONITION_STYLE_HEADS",V(Pe("Set").$new(),"tap",[],function(et){return et==null&&(et=Me),V(Je("ADMONITION_STYLES"),"each",[],function(tt){return tt==null&&(tt=Me),et["$<<"](tt.$chr())})})),te(Ye[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),te(Ye[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),te(Ye[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()]})),te(Ye[0],"DELIMITED_BLOCK_HEADS",V(G([],{}),"tap",[],function(et){return et==null&&(et=Me),V(Je("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=Me),lt=[tt.$slice(0,2),!0],V(et,"[]=",lt),lt[lt.length-1]})})),te(Ye[0],"DELIMITED_BLOCK_TAILS",V(G([],{}),"tap",[],function(et){return et==null&&(et=Me),V(Je("DELIMITED_BLOCKS"),"each_key",[],function(tt){var lt;return tt==null&&(tt=Me),Ie(tt.$length(),4)?(lt=[tt,tt["$[]"](C(tt.$length(),1))],V(et,"[]=",lt),lt[lt.length-1]):Me})})),te(Ye[0],"CAPTION_ATTRIBUTE_NAMES",G(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),te(Ye[0],"LAYOUT_BREAK_CHARS",G(["'","<"],{"'":"thematic_break","<":"page_break"})),te(Ye[0],"MARKDOWN_THEMATIC_BREAK_CHARS",G(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),te(Ye[0],"HYBRID_LAYOUT_BREAK_CHARS",Je("LAYOUT_BREAK_CHARS").$merge(Je("MARKDOWN_THEMATIC_BREAK_CHARS"))),te(Ye[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),te(Ye[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),te(Ye[0],"ORDERED_LIST_KEYWORDS",G(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),te(Ye[0],"ATTR_REF_HEAD","{"),te(Ye[0],"LIST_CONTINUATION","+"),te(Ye[0],"HARD_LINE_BREAK"," +"),te(Ye[0],"LINE_CONTINUATION"," \\"),te(Ye[0],"LINE_CONTINUATION_LEGACY"," +"),te(Ye[0],"BLOCK_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),te(Ye[0],"INLINE_MATH_DELIMITERS",G(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),te(Ye[0],"STEM_TYPE_ALIASES",G(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),te(Ye[0],"FONT_AWESOME_VERSION","4.7.0"),te(Ye[0],"HIGHLIGHT_JS_VERSION","9.18.3"),te(Ye[0],"MATHJAX_VERSION","2.7.9"),te(Ye[0],"DEFAULT_ATTRIBUTES",G(["appendix-caption","appendix-refsig","caution-caption","chapter-refsig","example-caption","figure-caption","important-caption","last-update-label","note-caption","part-refsig","prewrap","sectids","section-refsig","table-caption","tip-caption","toc-placement","toc-title","untitled-label","version-label","warning-caption"],{"appendix-caption":"Appendix","appendix-refsig":"Appendix","caution-caption":"Caution","chapter-refsig":"Chapter","example-caption":"Example","figure-caption":"Figure","important-caption":"Important","last-update-label":"Last updated","note-caption":"Note","part-refsig":"Part",prewrap:"",sectids:"","section-refsig":"Section","table-caption":"Table","tip-caption":"Tip","toc-placement":"auto","toc-title":"Table of Contents","untitled-label":"Untitled","version-label":"Version","warning-caption":"Warning"})),te(Ye[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),te(Ye[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:"&#43;",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:"&#160;",deg:"&#176;",zwsp:"&#8203;",quot:"&#34;",apos:"&#39;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",wj:"&#8288;",brvbar:"&#166;",pp:"&#43;&#43;",cpp:"C&#43;&#43;",amp:"&",lt:"<",gt:">"})),te(Ye[0],"QUOTE_SUBS",V(G([],{}),"tap",[],function(et){var E=Me,tt=Me;return et==null&&(et=Me),et["$[]="](!1,E=[["strong","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Je("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Je("CC_ALL"),"*?\\S)\\*(?!",Je("CG_WORD"),")"],"m")],["double","constrained",Oe(["(^|[^",Je("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Je("CC_ALL"),'*?\\S)`"(?!',Je("CG_WORD"),")"],"m")],["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Je("CC_ALL"),"*?\\S)`'(?!",Je("CG_WORD"),")"],"m")],["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?``(",Je("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)`(?![",Je("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?__(",Je("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Je("CC_ALL"),"*?\\S)_(?!",Je("CG_WORD"),")"],"m")],["mark","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?##(",Je("CC_ALL"),"+?)##"],"m")],["mark","constrained",Oe(["(^|[^",Je("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Je("CC_ALL"),"*?\\S)#(?!",Je("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),et["$[]="](!0,tt=E.$drop(0)),tt["$[]="](2,["double","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Je("CC_ALL"),"*?\\S)''(?!",Je("CG_WORD"),")"],"m")]),tt["$[]="](3,["single","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")]),tt["$[]="](4,["monospaced","unconstrained",Oe(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Je("CC_ALL"),"+?)\\+\\+"],"m")]),tt["$[]="](5,["monospaced","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Je("CC_ALL"),"*?\\S)\\+(?!",Je("CG_WORD"),")"],"m")]),tt.$insert(3,["emphasis","constrained",Oe(["(^|[^",Je("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Je("CC_ALL"),"*?\\S)'(?!",Je("CG_WORD"),")"],"m")])})),te(Ye[0],"REPLACEMENTS",[[/\\?\(C\)/,"&#169;","none"],[/\\?\(R\)/,"&#174;","none"],[/\\?\(TM\)/,"&#8482;","none"],[/(?: |\n|^|\\)--(?: |\n|$)/,"&#8201;&#8212;&#8201;","none"],[Oe(["(",Je("CG_WORD"),")\\\\?--(?=",Je("CG_WORD"),")"]),"&#8212;&#8203;","leading"],[/\\?\.\.\./,"&#8230;&#8203;","none"],[/\\?`'/,"&#8217;","none"],[Oe(["(",Je("CG_ALNUM"),")\\\\?'(?=",Je("CG_ALPHA"),")"]),"&#8217;","leading"],[/\\?-&gt;/,"&#8594;","none"],[/\\?=&gt;/,"&#8658;","none"],[/\\?&lt;-/,"&#8592;","none"],[/\\?&lt;=/,"&#8656;","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]),Me}(Ge[0],Ge),ze.$require("asciidoctor.rb/../asciidoctor/core_ext"),ze.$require("asciidoctor.rb/../asciidoctor/helpers"),ze.$require("asciidoctor.rb/../asciidoctor/logging"),ze.$require("asciidoctor.rb/../asciidoctor/rx"),ze.$require("asciidoctor.rb/../asciidoctor/substitutors"),ze.$require("asciidoctor.rb/../asciidoctor/version"),ze.$require("asciidoctor.rb/../asciidoctor/abstract_node"),ze.$require("asciidoctor.rb/../asciidoctor/abstract_block"),ze.$require("asciidoctor.rb/../asciidoctor/attribute_list"),ze.$require("asciidoctor.rb/../asciidoctor/block"),ze.$require("asciidoctor.rb/../asciidoctor/callouts"),ze.$require("asciidoctor.rb/../asciidoctor/converter"),ze.$require("asciidoctor.rb/../asciidoctor/document"),ze.$require("asciidoctor.rb/../asciidoctor/inline"),ze.$require("asciidoctor.rb/../asciidoctor/list"),ze.$require("asciidoctor.rb/../asciidoctor/parser"),ze.$require("asciidoctor.rb/../asciidoctor/path_resolver"),ze.$require("asciidoctor.rb/../asciidoctor/reader"),ze.$require("asciidoctor.rb/../asciidoctor/section"),ze.$require("asciidoctor.rb/../asciidoctor/stylesheets"),ze.$require("asciidoctor.rb/../asciidoctor/table"),ze.$require("asciidoctor.rb/../asciidoctor/writer"),ze.$require("asciidoctor.rb/../asciidoctor/load"),ze.$require("asciidoctor.rb/../asciidoctor/convert"),ze.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),ze.$require("asciidoctor.rb/../asciidoctor/timings"),ze.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ae={};if(a){const te=a.$$smap;for(const _e in te){const y=te[_e];ae[_e]=y===Opal.nil?void 0:y}const V=a.$$map;if(V){const _e=[];for(const y in V){const Y=V[y],Ue=Y.value,G=Y.key-1;_e[G]=Ue===Opal.nil?void 0:Ue}_e.length>0&&(ae.$positional=_e)}}return ae},n=function(a){const ae={};if(a){const te=a.$$keys;for(const V in te){const _e=te[V].value;ae[V.toString()]=_e===Opal.nil?void 0:_e}}return ae},i=function(a){if(a=t(a),a){const ae=a["$[]"]("converter");ae&&ae!==Opal.nil&&a["$[]="]("converter",s(ae));const te=a["$[]"]("attributes");te&&typeof te=="object"&&te.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(te)))}return a},s=function(a){const ae=function(Ie){return Object.assign({},Ie.basebackend?{basebackend:Ie.basebackend}:{},Ie.outfilesuffix?{outfilesuffix:Ie.outfilesuffix}:{},Ie.filetype?{filetype:Ie.filetype}:{},Ie.htmlsyntax?{htmlsyntax:Ie.htmlsyntax}:{},Ie.supports_templates?{supports_templates:Ie.supports_templates}:{})},te=function(Ie,C){Ie.backend_traits?C.backend_traits=t(Ie.backend_traits):Ie.backendTraits?C.backend_traits=t(Ie.backendTraits):(Ie.basebackend||Ie.outfilesuffix||Ie.filetype||Ie.htmlsyntax||Ie.supports_templates)&&(C.backend_traits=t(ae(Ie)))},V=function(Ie,C){Ue(Ie,C,"$handles?","handles",function(){return!0})},_e=function(Ie,C){Ue(Ie,C,"$composed","composed")},y=function(Ie,C){Ue(Ie,C,"$==","==",function(Oe){return C===Oe})},Y=function(Ie,C){Ue(Ie,C,"$send","send",function(Oe){const[,...ze]=Array.from(arguments),Ge=C["$"+Oe];if(Ge)return Ge.apply(C,ze);throw new Error(`undefined method \`${Oe}\` for \`${C.toString()}\``)})},Ue=function(Ie,C,Oe,ze,Ge){typeof Ie[Oe]>"u"&&(typeof Ie[ze]=="function"?C[Oe]=Ie[ze]:Ge&&(C[Oe]=Ge))},G=function(Ie){typeof Ie["$respond_to?"]!="function"&&(Ie["$respond_to?"]=function(C){return typeof this[C]=="function"})};if(typeof a=="function"){const Ie=c(ft,a.constructor.name,{initialize:function(C,Oe){const ze=this,Ge=new a(C,Oe);Object.assign(this,Ge),te(Ge,ze);const Me=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<Me.length;Pe++){const dt=Me[Pe];dt!=="constructor"&&(ze[dt]=Ge[dt])}typeof Ge.$convert>"u"&&typeof Ge.convert=="function"&&(ze.$convert=Ge.convert),V(Ge,ze),_e(Ge,ze),G(ze),ze.super(C,Oe)}});return Ie.$extend(_t),Ie}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),te(a,a),a.backend_traits){const Ie=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const C of Ie)a["$"+C]=_t.prototype["$"+C];a.$$meta=_t}return V(a,a),_e(a,a),y(a,a),Y(a,a),G(a),a}return a};function c(a,ae,te,V,_e){const y=Opal.klass(Opal.Object,a,ae,function(){});let Y,Ue,G;const Ie={};for(const ze in te)Object.prototype.hasOwnProperty.call(te,ze)&&function(Ge){const Me=te[Ge];if(Ge==="postConstruct")Y=Me;else if(Ge==="initialize")Ue=Me;else if(Ge==="constructor")G=Me;else{V&&Object.prototype.hasOwnProperty.call(V,Ge)&&(Ie[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 We=Pe.$$p;return We&&(dt[dt.length]=function(){return Opal.yield1(We)},dt.length+=1,Pe.$$p=null),Me.apply(this,dt)})}}(ze);let C;typeof G=="function"?C=function(){const ze=Array.from(arguments);for(let Me=0;Me<ze.length;Me++)typeof ze[Me]=="object"&&"$$smap"in ze[Me]&&(ze[Me]=r(ze[Me]));ze.unshift(null);const Ge=new(Function.prototype.bind.apply(G,ze));Object.assign(this,Ge),typeof Y=="function"&&Y.bind(this)()}:typeof Ue=="function"?C=function(){const ze=Array.from(arguments);for(let Ge=0;Ge<ze.length;Ge++)typeof ze[Ge]=="object"&&"$$smap"in ze[Ge]&&(ze[Ge]=r(ze[Ge]));Ue.apply(this,ze),typeof Y=="function"&&Y.bind(this)()}:C=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",C)),typeof Y=="function"&&Y.bind(this)()},Opal.def(y,"$initialize",C);let Oe;Opal.def(y,"super",Oe=function(ze){if(typeof ze=="function")Opal.send(this,Opal.find_super_dispatcher(this,ze.name,ze));else{const Ge=Array.from(arguments);for(let Me=0;Me<Ge.length;Me++)typeof Ge[Me]=="object"&&(Ge[Me]=t(Ge[Me]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",C),Ge)}});for(const ze in te)Oe[ze]=function(){const Ge=Array.from(arguments);for(let 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 Me=y.$$prototype;return Opal.send(Me,Opal.find_super_dispatcher(Me,ze,Me[`$${ze}`]),Ge)};if(V)for(const ze in V)Object.prototype.hasOwnProperty.call(V,ze)&&!Object.prototype.hasOwnProperty.call(Ie,ze)&&function(Ge){const Me=V[Ge];Opal.def(y,"$"+Ge,function(){return Me.apply(this,arguments)})}(ze);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 te=ae&&ae.to_file;typeof te=="object"&&te.constructor.name==="Writable"&&typeof te.write=="function"&&(te["$respond_to?"]=y=>y==="write",te.$object_id=()=>"",te.$write=function(y){this.write(y)});const V=i(ae),_e=this.$convert(a,V);return typeof te=="object"&&te.constructor.name==="Writable"&&typeof te.end=="function"&&te.end(),_e===Opal.nil?"":_e},f.prototype.convertFile=function(a,ae){return this.$convert_file(a,i(ae))},f.prototype.load=function(a,ae){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ae))},f.prototype.loadFile=function(a,ae){return this.$load_file(a,i(ae))};const p=Opal.Asciidoctor.AbstractBlock;p.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},p.prototype.setContentModel=function(a){this.content_model=a},p.prototype.append=function(a){return this.$append(a),this},p.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},p.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},p.prototype.assignCaption=function(a,ae){a=typeof a>"u"?Opal.nil:a,ae=typeof ae>"u"?null:ae,this.$assign_caption(a,ae)},p.prototype.getCaptionedTitle=function(){return this.$captioned_title()},p.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},p.prototype.setStyle=function(a){this.style=a},p.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ae=this.file;return ae===Opal.nil?void 0:ae},a.getDirectory=function(){const ae=this.dir;return ae===Opal.nil?void 0:ae},a.getPath=function(){const ae=this.path;return ae===Opal.nil?void 0:ae},a.getLineNumber=function(){const ae=this.lineno;return ae===Opal.nil?void 0:ae},a},p.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},p.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},p.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},p.prototype.getSubstitutions=function(){return this.subs},p.prototype.hasSubstitution=function(a){return this["$sub?"](a)},p.prototype.removeSubstitution=function(a){this.$remove_sub(a)},p.prototype.hasBlocks=function(){return this.blocks.length>0},p.prototype.getBlocks=function(){return this.blocks},p.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},p.prototype.convert=function(){return this.$convert()},p.prototype.findBy=function(a,ae){return typeof ae>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ae=="function"?Opal.send(this,"find_by",[t(a)],ae):this.$find_by(t(a))},p.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},p.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},p.prototype.getSections=function(){return this.$sections()},p.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},p.prototype.setNumeral=function(a){this["$numeral="](a)},p.prototype.hasTitle=function(){return this["$title?"]()},p.prototype.getAlt=function(){return this.$alt()};const h=Opal.Asciidoctor.Section;h.create=function(a,ae,te,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$new(a,ae,te,t(V))},h.prototype.setLevel=function(a){this.level=a},h.prototype.getIndex=function(){return this.index},h.prototype.setIndex=function(a){this.index=a},h.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},h.prototype.setSectionName=function(a){this.sectname=a},h.prototype.getSectionNumeral=function(){return this.$sectnum()},h.prototype.getSectionNumber=h.prototype.getSectionNumeral,h.prototype.isSpecial=function(){return this.special},h.prototype.setSpecial=function(a){this.special=a},h.prototype.isNumbered=function(){return this.numbered},h.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},h.prototype.getName=function(){return this.getTitle()};const I=Opal.Asciidoctor.Block;I.create=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$new(a,ae,t(te))},I.prototype.getSource=function(){return this.$source()},I.prototype.getSourceLines=function(){return this.lines};const L=Opal.Asciidoctor.AbstractNode;L.prototype.applySubstitutions=function(a,ae){return this.$apply_subs(a,ae)},L.prototype.resolveSubstitutions=function(a,ae,te,V){typeof ae>"u"&&(ae="block"),typeof te>"u"&&(te=Opal.nil),typeof V>"u"&&(V=Opal.nil);const _e=this.$resolve_subs(a,ae,te,V);return _e===Opal.nil?void 0:_e},L.prototype.resolveBlockSubstitutions=function(a,ae,te){return this.resolveSubstitutions(a,"block",ae,te)},L.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},L.prototype.getNodeName=function(){return this.node_name},L.prototype.getAttributes=function(){return r(this.attributes)},L.prototype.getAttribute=function(a,ae,te){const V=this.$attr(a,ae,te);return V===Opal.nil?void 0:V},L.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},L.prototype.isAttribute=function(a,ae,te){return this["$attr?"](a,ae,te)},L.prototype.setAttribute=function(a,ae,te){return typeof te>"u"&&(te=!0),this.$set_attr(a,ae,te)},L.prototype.removeAttribute=function(a){const ae=this.$remove_attr(a);return ae===Opal.nil?void 0:ae},L.prototype.getDocument=function(){return this.document},L.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},L.prototype.isInline=function(){return this["$inline?"]()},L.prototype.isBlock=function(){return this["$block?"]()},L.prototype.isRole=function(a){return this["$role?"](a)},L.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},L.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},L.prototype.hasRole=function(a){return this["$has_role?"](a)},L.prototype.getRoles=function(){return this.$roles()},L.prototype.addRole=function(a){return this.$add_role(a)},L.prototype.removeRole=function(a){return this.$remove_role(a)},L.prototype.isReftext=function(){return this["$reftext?"]()},L.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},L.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},L.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},L.prototype.setId=function(a){this.id=a},L.prototype.isOption=function(a){return this["$option?"](a)},L.prototype.setOption=function(a){return this.$set_option(a)},L.prototype.getIconUri=function(a){return this.$icon_uri(a)},L.prototype.getMediaUri=function(a,ae){return this.$media_uri(a,ae)},L.prototype.getImageUri=function(a,ae){return this.$image_uri(a,ae)},L.prototype.getConverter=function(){return this.$converter()},L.prototype.readContents=function(a,ae){return this.$read_contents(a,t(ae))},L.prototype.readAsset=function(a,ae){const te=this.$read_asset(a,t(ae));return te===Opal.nil?void 0:te},L.prototype.normalizeWebPath=function(a,ae,te){return this.$normalize_web_path(a,ae,te)},L.prototype.normalizeSystemPath=function(a,ae,te,V){return this.$normalize_system_path(a,ae,te,t(V))},L.prototype.normalizeAssetPath=function(a,ae,te){return this.$normalize_asset_path(a,ae,te)};const H=Opal.Asciidoctor.Document;H.prototype.append=function(a){return this["$<<"](a),this},H.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ae=a.__proto__;return ae&&(typeof ae["$highlight?"]=="function"&&(ae.handlesHighlighting=function(){const te=ae["$highlight?"]();return te===Opal.nil?!1:te}),typeof ae["$docinfo?"]=="function"&&(ae.hasDocinfo=ae["$docinfo?"]),typeof ae.$format=="function"&&(ae.format=function(te,V,_e){return this.$format(te,V,t(_e))}),typeof ae.$docinfo=="function"&&(ae.docinfo=function(te,V,_e){return this.$docinfo(te,V,t(_e))})),a},H.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},H.prototype.getImages=function(){return this.catalog.$$smap.images},H.prototype.getLinks=function(){return this.catalog.$$smap.links},H.prototype.hasFootnotes=function(){return this["$footnotes?"]()},H.prototype.getFootnotes=function(){return this.$footnotes()},H.prototype.getHeader=function(){return this.header},H.prototype.setAttribute=function(a,ae){return this.$set_attribute(a,ae)},H.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},H.prototype.convert=function(a){const ae=this.$convert(t(a));return ae===Opal.nil?"":ae},H.prototype.write=function(a,ae){return this.$write(a,ae)},H.prototype.getAuthor=function(){return this.$author()},H.prototype.getSource=function(){return this.$source()},H.prototype.getSourceLines=function(){return this.$source_lines()},H.prototype.isNested=function(){return this["$nested?"]()},H.prototype.isEmbedded=function(){return this["$embedded?"]()},H.prototype.hasExtensions=function(){return this["$extensions?"]()},H.prototype.getDoctype=function(){return this.doctype},H.prototype.getBackend=function(){return this.backend},H.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},H.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},H.prototype.setTitle=function(a){return this["$title="](a)},H.prototype.getDocumentTitle=function(a){const ae=this.$doctitle(t(a));return ae===Opal.nil?void 0:ae},H.prototype.getDoctitle=H.prototype.getDocumentTitle,H.prototype.getCatalog=function(){return r(this.catalog)},H.prototype.getReferences=H.prototype.getCatalog,H.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},H.prototype.getRevdate=function(){return this.getRevisionDate()},H.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},H.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},H.prototype.setHeaderAttribute=function(a,ae,te){return typeof te>"u"&&(te=!0),typeof ae>"u"&&(ae=""),this.$set_header_attribute(a,ae,te)},H.prototype.getAuthors=function(){return this.$authors()};const pe=H.Footnote;pe.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},pe.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},pe.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const be=H.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 re=H.Author;re.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},re.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},re.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},re.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},re.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},re.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},H.RevisionInfo=function(a,ae,te){this.date=a,this.number=ae,this.remark=te};const W=H.RevisionInfo;W.prototype.getDate=function(){return this.date},W.prototype.getNumber=function(){return this.number},W.prototype.getRemark=function(){return this.remark},W.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const X=Opal.Asciidoctor.SafeMode;X.getValueForName=function(a){return this.$value_for_name(a)},X.getNameForValue=function(a){const ae=this.$name_for_value(a);return ae===Opal.nil?void 0:ae},X.getNames=function(){return this.$names()};const ge=Opal.Asciidoctor.Callouts;ge.create=function(){return this.$new()},ge.prototype.register=function(a){return this.$register(a)},ge.prototype.readNextId=function(){return this.$read_next_id()},ge.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},ge.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ae=0;ae<a.length;ae++){const te=a[ae];if(te&&te.length>0)for(let V=0;V<te.length;V++)typeof te[V]=="object"&&"$$smap"in te[V]&&(te[V]=r(te[V]))}return a},ge.prototype.getListIndex=function(){return this.list_index},ge.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ae=0;ae<a.length;ae++)typeof a[ae]=="object"&&"$$smap"in a[ae]&&(a[ae]=r(a[ae]));return a},ge.prototype.nextList=function(){return this.$nextList()},ge.prototype.rewind=function(){return this.$rewind()},H.prototype.getRevisionInfo=function(){return new H.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},H.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},H.prototype.getNotitle=function(){return this.$notitle()},H.prototype.getNoheader=function(){return this.$noheader()},H.prototype.getNofooter=function(){return this.$nofooter()},H.prototype.hasHeader=function(){return this["$header?"]()},H.prototype.playbackAttributes=function(a){if(a=t(a),a){const ae=a["$[]"]("attribute_entries");if(ae&&Array.isArray(ae)){const te=[];for(let V=0;V<ae.length;V++){const _e=ae[V];_e&&typeof _e=="object"&&_e.constructor.name==="Object"&&(_e.$name=function(){return this.name},_e.$value=function(){return this.value},_e.$negate=function(){return this.negate}),te.push(_e)}a["$[]="]("attribute_entries",te)}}this.$playback_attributes(a)},H.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},H.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},H.prototype.restoreAttributes=function(){return this.$restore_attributes()},H.prototype.parse=function(a){return this.$parse(a)},H.prototype.getDocinfo=function(a,ae){return this.$docinfo(a,ae)},H.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},H.prototype.incrementAndStoreCounter=function(a,ae){return this.$increment_and_store_counter(a,ae)},H.prototype.counterIncrement=H.prototype.incrementAndStoreCounter,H.prototype.counter=function(a,ae){return this.$counter(a,ae)},H.prototype.getSafe=function(){return this.safe},H.prototype.getCompatMode=function(){return this.compat_mode},H.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},H.prototype.setSourcemap=function(a){this.sourcemap=a},H.prototype.getCounters=function(){return r(this.counters)},H.prototype.getCallouts=function(){return this.$callouts()},H.prototype.getBaseDir=function(){return this.base_dir},H.prototype.getOptions=function(){return r(this.options)},H.prototype.getOutfilesuffix=function(){return this.outfilesuffix},H.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},H.prototype.getReader=function(){return this.reader},H.prototype.getConverter=function(){return this.converter},H.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const se=H.Title;se.prototype.getMain=function(){return this.main},se.prototype.getCombined=function(){return this.combined},se.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},se.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},se.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const me=Opal.Asciidoctor.Inline;me.create=function(a,ae,te,V){return this.$new(a,ae,te,i(V))},me.prototype.convert=function(){return this.$convert()},me.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},me.prototype.getType=function(){return this.$type()},me.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},me.prototype.getAlt=function(){return this.$alt()};const J=Opal.Asciidoctor.List;J.prototype.hasItems=function(){return this["$items?"]()},J.prototype.getItems=function(){return this.blocks};const 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,te,V,_e){return this.$push_include(a,ae,te,V,t(_e))},fe.prototype.getCursor=function(){return this.$cursor()},fe.prototype.getLines=function(){return this.$lines()},fe.prototype.getString=function(){return this.$string()},fe.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},fe.prototype.isEmpty=function(){return this["$empty?"]()},fe.prototype.peekLine=function(a){a=a||!1;const ae=this.$peek_line(a);return ae===Opal.nil?void 0:ae},fe.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},fe.prototype.readLines=function(){return this.$read_lines()},fe.prototype.read=function(){return this.$read()},fe.prototype.advance=function(){return this.$advance()};const Ae=Opal.Asciidoctor.Reader.Cursor;Ae.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ae.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ae.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ae.prototype.getLineNumber=function(){return this.lineno};function O(a,ae){const te=Opal.const_get_qualified(Opal.Logger,"Formatter");return c(te,a,ae,{},{call:function(V){for(let _e=0;_e<V.length;_e++)typeof V[_e]=="object"&&"$$smap"in V[_e]&&(V[_e]=r(V[_e]));return V}})}function Ee(a,ae){const te=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return c(te,a,ae,{},{add:function(V){if(V.length>=2&&typeof V[2]=="object"&&"$$smap"in V[2]){const _e=V[2],y=r(_e);y.getText=function(){return this.text},y.getSourceLocation=function(){return this.source_location},y.$inspect=function(){const Y=this.getSourceLocation();return Y?Y.getPath()+": line "+Y.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 O(a,ae).$new()};const w=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=w,w.get=function(a){return w.$constants()[a]};const Se=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Se,Se.prototype.call=function(a,ae,te,V){return this.$call(w.get(a),ae,te,V)};const N=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=N,N.create=function(){return this.$new()},N.prototype.getMessages=function(){const a=this.messages,ae=[];for(let te=0;te<a.length;te++){const V=a[te],_e=r(V);typeof _e.message=="string"?_e.getText=function(){return this.message}:(_e.message=r(_e.message),_e.getText=function(){return this.message.text}),_e.getSeverity=function(){return this.severity.toString()},_e.getSourceLocation=function(){return this.message.source_location},ae.push(_e)}return ae};const 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,L.prototype.getLogger=ne.getLogger,L.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 Le=Opal.const_get_qualified("::","Logger"),ue=function(a,ae,te){a["$"+ae](te)};Le.prototype.add=function(a,ae,te){const V=typeof a=="string"?w[a.toUpperCase()]:a;this.$add(V,ae,te)},Le.prototype.log=Le.prototype.add,Le.prototype.debug=function(a){ue(this,"debug",a)},Le.prototype.info=function(a){ue(this,"info",a)},Le.prototype.warn=function(a){ue(this,"warn",a)},Le.prototype.error=function(a){ue(this,"error",a)},Le.prototype.fatal=function(a){ue(this,"fatal",a)},Le.prototype.isDebugEnabled=function(){return this["$debug?"]()},Le.prototype.isInfoEnabled=function(){return this["$info?"]()},Le.prototype.isWarnEnabled=function(){return this["$warn?"]()},Le.prototype.isErrorEnabled=function(){return this["$error?"]()},Le.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const P=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=P,P.create=function(){return this.$new()},P.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 te;if(a)if(typeof a.$add=="function")te=function(V){a.$add(1,V)};else if(typeof a.log=="function")te=a.log;else if(typeof a.write=="function")te=function(V){a.write(V,"utf-8")};else throw new Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");else te=function(V){Opal.gvars.stdout.$write(V)};ae&&te("Input file: "+ae),te(" Time to read and parse source: "+this.$read_parse().toFixed(2)),te(" Time to convert document: "+this.$convert().toFixed(2)),te(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};const $=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=$,$.register=function(a,ae){const te=typeof a=="string"?a:a[0];if(typeof ae=="function"){const y=ae.prototype,Y=Object.getOwnPropertyNames(y);ae={};for(const Ue in Y){const G=Y[Ue];ae[G]=y[G]}}const V=c(l,te,ae,{},{format:function(_e){return _e.length>=2&&typeof _e[2]=="object"&&"$$smap"in _e[2]&&(_e[2]=r(_e[2])),_e.length>=1&&(_e[1]=_e[1]===Opal.nil?void 0:_e[1]),_e},highlight:function(_e){if(_e.length>=3&&typeof _e[3]=="object"&&"$$smap"in _e[3]){let y=_e[3];y=r(y);for(const Y in y){const Ue=y[Y];if(Y==="callouts"){const G=n(Ue);for(const Ie in G){const C=G[Ie];for(let Oe=0;Oe<C.length;Oe++){const ze=C[Oe];for(let Ge=0;Ge<ze.length;Ge++)ze[Ge]=ze[Ge]===Opal.nil?void 0:ze[Ge]}}y[Y]=G}else y[Y]=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 Y=ae[y];y==="handlesHighlighting"?Opal.def(V,"$highlight?",function(){return Y.call()}):y==="hasDocinfo"&&Opal.def(V,"$docinfo?",function(Ue){return Y.apply(this,[Ue])})}(_e);return Opal.def(V,"$name",function(){return te}),$.$register(V,a),V},$.get=function(a){const ae=$.$for(a);return ae===Opal.nil?void 0:ae},$.for=$.get;const l=Opal.const_get_qualified($,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=l,l.prototype.registerFor=function(a){$.$register(this,a)};const u=Opal.Asciidoctor.Table;u.create=function(a,ae){return this.$new(a,t(ae))},u.prototype.getCaption=function(){return this.caption},u.prototype.getRows=function(){return this.rows},u.prototype.getColumns=function(){return this.columns},u.prototype.getHeadRows=function(){return this.rows.head},u.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},u.prototype.getBodyRows=function(){return this.rows.body},u.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},u.prototype.getFootRows=function(){return this.rows.foot},u.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},u.prototype.hasHeaderOption=function(){return this.has_header_option},u.prototype.hasFooterOption=function(){return this.isOption("footer")},u.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},u.prototype.getRowCount=function(){return this.getAttribute("rowcount")},u.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},u.prototype.getColumnCount=function(){return this.getAttribute("colcount")},u.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const d=Opal.Asciidoctor.Table.Rows;d.create=function(a,ae,te){return this.$new(a,ae,te)},d.prototype.getHead=function(){return this.head},d.prototype.getFoot=function(){return this.foot},d.prototype.getBody=function(){return this.body},d.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const _=Opal.Asciidoctor.Table.Column;_.create=function(a,ae,te){return this.$new(a,ae,t(te))},_.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},_.prototype.getWidth=function(){return this.getAttribute("width")},_.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},_.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},_.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const k=Opal.Asciidoctor.Table.Cell;k.create=function(a,ae,te,V){return this.$new(a,ae,t(te),t(V))},k.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},k.prototype.setColumnSpan=function(a){return this["$colspan="](a)},k.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},k.prototype.setRowSpan=function(a){return this["$rowspan="](a)},k.prototype.getContent=function(){return this.$content()},k.prototype.getText=function(){return this.$text()},k.prototype.getSource=function(){return this.$source()},k.prototype.getLines=function(){return this.$lines()},k.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},k.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},k.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},k.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},k.prototype.getWidth=function(){return this.getAttribute("width")},k.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},k.prototype.getInnerDocument=function(){const a=this.inner_document;return a===Opal.nil?void 0:a};const A=Opal.Asciidoctor.Converter.TemplateConverter;if(A){Opal.Asciidoctor.TemplateConverter=A,A.create=function(ae,te,V){V&&V.template_cache&&(V.template_cache=t(V.template_cache)),this.$new(ae,te,t(V))},A.getCache=function(){const ae=r(this.caches);if(ae){if(ae.scans){ae.scans=r(ae.scans);for(const te in ae.scans)ae.scans[te]=r(ae.scans[te])}ae.templates&&(ae.templates=r(ae.templates))}return ae},A.clearCache=function(){this.$clear_caches()},A.prototype.convert=function(ae,te,V){return this.$convert(ae,te,t(V))},A.prototype.handles=function(ae){return this["$handles?"](ae)},A.prototype.getContentOnly=function(ae){return this.$content_only(ae)},A.prototype.skip=function(ae){this.$skip(ae)},A.prototype.getTemplates=function(){return r(this.$templates())},A.prototype.register=function(ae,te){return this.$register(ae,te)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ae,te){if(typeof ae=="string")this.registry[ae]=te;else for(let V=0;V<ae.length;V++){const _e=ae[V];this.registry[_e]=te}}}const Q=Opal.Asciidoctor.Converter.CompositeConverter;Q&&(Opal.Asciidoctor.CompositeConverter=Q,Q.prototype.convert=function(a,ae,te){return this.$convert(a,ae,t(te))},Q.prototype.getContentOnly=function(a){return this.$content_only(a)},Q.prototype.skip=function(a){this.$skip(a)},Q.prototype.getConverters=function(){return this.converters},Q.prototype.getConverter=function(a){const ae=this.$converter_for(a);return ae===Opal.nil?void 0:ae},Q.prototype.findConverter=function(a){return this.$find_converter(a)});const De=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=De,De.prototype.convert=function(a,ae,te){return this.$convert(a,ae,t(te))},De.create=function(a,ae){return this.$create(a,t(ae))};const rt=Opal.Asciidoctor.Converter.Factory,ft=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=rt;const _t=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=_t,rt.register=function(a,ae){const te=[s(a)].concat(ae);return De.$register.apply(De,te)},rt.getDefault=function(a){return this.$default(a)},rt.prototype.create=function(a,ae){return this.$create(a,t(ae))},rt.getRegistry=function(){return r(De.$registry())},rt.for=function(a){const ae=De.$for(a);return ae===Opal.nil?void 0:ae},rt.unregisterAll=function(){const a=De.DefaultFactory.$$cvars["@@registry"];De.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const At=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=At,At.create=function(){return this.$new()},At.prototype.convert=function(a,ae,te){return this.$convert(a,ae,te)};const bt=function(a){return a.$$arity=a.length,a},Mt=function(a,ae,te,V){return typeof te=="object"||te.$$is_class?a["$"+ae](te,V):Opal.send(a,ae,V&&[V],bt(te))},Et=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=Et,Et.create=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"create",null,bt(a)):typeof ae=="function"?Opal.send(this,"create",[a],bt(ae)):this.$create()},Et.register=function(a,ae){return typeof a=="function"&&typeof ae>"u"?Opal.send(this,"register",null,bt(a)):Opal.send(this,"register",[a],bt(ae))},Et.getGroups=function(){return r(this.$groups())},Et.unregisterAll=function(){this.$unregister_all()},Et.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ae=this.$groups(),te={};let V=0;const _e=ae.$$keys;for(;V<_e.length;V++){const y=_e[V];te[y.toString()]=y}for(let y=0;y<a.length;y++){const Y=a[y];Y in te&&Opal.hash_delete(ae,te[Y])}};const qt=Et.Registry;qt.prototype.getGroups=Et.getGroups,qt.prototype.unregisterAll=function(){this.groups=Opal.hash()},qt.prototype.unregister=Et.unregister,qt.prototype.prefer=function(a,ae){return arguments.length===1&&(ae=a,a=null),typeof ae=="object"||ae.$$is_class?this.$prefer(a,ae):Opal.send(this,"prefer",a&&[a],bt(ae))},qt.prototype.block=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"block",ae,a)},qt.prototype.inlineMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"inline_macro",ae,a)},qt.prototype.includeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"include_processor",ae,a)},qt.prototype.blockMacro=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"block_macro",ae,a)},qt.prototype.treeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"tree_processor",ae,a)},qt.prototype.postprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"postprocessor",ae,a)},qt.prototype.preprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"preprocessor",ae,a)},qt.prototype.docinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Mt(this,"docinfo_processor",ae,a)},qt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},qt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},qt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},qt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},qt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},qt.prototype.hasBlocks=function(){return this["$blocks?"]()},qt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},qt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},qt.prototype.getPreprocessors=function(){return this.$preprocessors()},qt.prototype.getTreeProcessors=function(){return this.$tree_processors()},qt.prototype.getIncludeProcessors=function(){return this.$include_processors()},qt.prototype.getPostprocessors=function(){return this.$postprocessors()},qt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},qt.prototype.getBlocks=function(){return this.block_extensions.$values()},qt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},qt.prototype.getInlineMacros=function(){return this.$inline_macros()},qt.prototype.getInlineMacroFor=function(a){const ae=this["$registered_for_inline_macro?"](a);return ae===!1?void 0:ae},qt.prototype.getBlockFor=function(a,ae){if(typeof ae>"u"){const V=this.$find_block_extension(a);return V===Opal.nil?void 0:V}const te=this["$registered_for_block?"](a,ae);return te===!1?void 0:te},qt.prototype.getBlockMacroFor=function(a){const ae=this["$registered_for_block_macro?"](a);return ae===!1?void 0:ae};const It=Et.Processor;It.prototype.prepend=function(){this.$option("position",">>")},It.prototype.process=function(a){const ae={apply:function(V,_e,y){for(let Y=0;Y<y.length;Y++)typeof y[Y]=="object"&&"$$smap"in y[Y]&&(y[Y]=r(y[Y]));return V.apply(_e,y)}},te=new Proxy(a,ae);return Opal.send(this,"process",null,bt(te))},It.prototype.named=function(a){return this.$named(a)},It.prototype.createBlock=function(a,ae,te,V,_e){return this.$create_block(a,ae,te,t(V),t(_e))},It.prototype.createList=function(a,ae,te){return this.$create_list(a,ae,t(te))},It.prototype.createListItem=function(a,ae){return this.$create_list_item(a,ae)},It.prototype.createImageBlock=function(a,ae,te){return this.$create_image_block(a,t(ae),t(te))},It.prototype.createParagraph=function(a,ae,te,V){return this.$create_paragraph(a,ae,t(te),t(V))},It.prototype.createOpenBlock=function(a,ae,te,V){return this.$create_open_block(a,ae,t(te),t(V))},It.prototype.createExampleBlock=function(a,ae,te,V){return this.$create_example_block(a,ae,t(te),t(V))},It.prototype.createPassBlock=function(a,ae,te,V){return this.$create_pass_block(a,ae,t(te),t(V))},It.prototype.createListingBlock=function(a,ae,te,V){return this.$create_listing_block(a,ae,t(te),t(V))},It.prototype.createLiteralBlock=function(a,ae,te,V){return this.$create_literal_block(a,ae,t(te),t(V))},It.prototype.createAnchor=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$create_anchor(a,ae,t(te))},It.prototype.createInlinePass=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),this.$create_inline_pass(a,ae,t(te))},It.prototype.createInline=function(a,ae,te,V){return V&&V.attributes&&(V.attributes=t(V.attributes)),this.$create_inline(a,ae,te,t(V))},It.prototype.parseContent=function(a,ae,te){return this.$parse_content(a,ae,t(te))},It.prototype.parseAttributes=function(a,ae,te){return te&&te.attributes&&(te.attributes=t(te.attributes)),r(this.$parse_attributes(a,ae,t(te)))},It.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},It.prototype.resolveAttributes=function(a){return typeof a=="object"&&!Array.isArray(a)?this.$resolves_attributes(t(a)):arguments.length>1?this.$resolves_attributes(Array.prototype.slice.call(arguments)):typeof a>"u"?this.$resolves_attributes(Opal.nil):this.$resolves_attributes(a)},It.prototype.resolvesAttributes=It.prototype.resolveAttributes,It.prototype.getConfig=function(){return r(this.config)},It.prototype.option=function(a,ae){this.$option(a,ae)};const nt=Et.BlockProcessor;nt.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},nt.prototype.onContext=function(a){return this.$on_context(a)},nt.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},nt.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},nt.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const Re=Et.BlockMacroProcessor;Re.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Re.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Re.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const je=Et.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=Et.IncludeProcessor;Ke.prototype.handles=function(a){return Opal.send(this,"handles?",null,bt(a))},Ke.prototype.prefer=function(){this.$prefer()};const x=Et.TreeProcessor;x.prototype.prefer=function(){this.$prefer()};const R=Et.Postprocessor;R.prototype.prefer=function(){this.$prefer()};const ve=Et.Preprocessor;ve.prototype.prefer=function(){this.$prefer()};const Fe=Et.DocinfoProcessor;Fe.prototype.prefer=function(){this.$prefer()},Fe.prototype.atLocation=function(a){this.$at_location(a)};function Ze(a,ae,te){const V=Opal.const_get_qualified(Et,a);return c(V,ae,te,{"handles?":function(){return!0}})}Et.createPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Postprocessor",a,ae)},Et.newPostprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPostprocessor(a,ae).$new()},Et.createPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("Preprocessor",a,ae)},Et.newPreprocessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createPreprocessor(a,ae).$new()},Et.createTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("TreeProcessor",a,ae)},Et.newTreeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createTreeProcessor(a,ae).$new()},Et.createIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("IncludeProcessor",a,ae)},Et.newIncludeProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createIncludeProcessor(a,ae).$new()},Et.createDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("DocinfoProcessor",a,ae)},Et.newDocinfoProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createDocinfoProcessor(a,ae).$new()},Et.createBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockProcessor",a,ae)},Et.newBlockProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockProcessor(a,ae).$new()},Et.createInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("InlineMacroProcessor",a,ae)},Et.newInlineMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createInlineMacroProcessor(a,ae).$new()},Et.createBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),Ze("BlockMacroProcessor",a,ae)},Et.newBlockMacroProcessor=function(a,ae){return arguments.length===1&&(ae=a,a=null),this.createBlockMacroProcessor(a,ae).$new()};var ct="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return ct},Opal.Asciidoctor}const t6=e6();function Wg(e){return S1(t6.convert(String(e??""),{standalone:!1}))}function r6({node:e}){return G0(e),qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx(W1,{html:Wg(Ia(e.value))})]})}function n6({chunk:e}){return qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:Wg(e.value)}})}function Yg(e,t,r='"'){const n=[];let i=[],s="",c=!1,f=0;const p=()=>{i.push(s),s=""},h=()=>{p(),n.push(i),i=[]};for(;f<e.length;){const I=e[f];if(c){I===r?e[f+1]===r?(s+=r,f+=2):(c=!1,f++):(s+=I,f++);continue}I===r?(c=!0,f++):I===t?(p(),f++):I===`
602
- `||I==="\r"?(I==="\r"&&e[f+1]===`
603
- `&&f++,h(),f++):(s+=I,f++)}return(s!==""||i.length)&&h(),n}function i6(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function Gg(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 s6=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],If=()=>new URLSearchParams(window.location.search);function Kg(e){const t=e.get("header");return!(t==="false"||t==="0")}function jp(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function Xg({rows:e,header:t}){if(!e.length)return qe.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 qe.jsx("div",{className:"csv-scroll",children:qe.jsxs("table",{className:"csv-table",children:[n&&qe.jsx("thead",{children:qe.jsx("tr",{children:jp(n,r).map((s,c)=>qe.jsx("th",{children:s},c))})}),qe.jsx("tbody",{children:i.map((s,c)=>qe.jsx("tr",{children:jp(s,r).map((f,p)=>qe.jsx("td",{children:f},p))},c))})]})})}function a6({node:e}){const t=If(),r=Kg(t),n=String(Ia(e.value)??""),i=i6(t.get("sep"))??Gg(n,e.format??null),s=Yg(n,i);return qe.jsxs("div",{className:"csv",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx(Xg,{rows:s,header:r})]})}function l6({rerender:e}){const t=If(),r=t.get("sep")??"",n=Kg(t),i=(s,c)=>{const f=If();c?f.set(s,c):f.delete(s);const p=f.toString();window.history.replaceState({},"",window.location.pathname+(p?"?"+p:"")),e()};return qe.jsxs("div",{className:"csv-toolbar",children:[qe.jsxs("label",{children:["separator"," ",qe.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:s6.map(s=>qe.jsx("option",{value:s.value,children:s.label},s.value))})]}),qe.jsxs("label",{children:[qe.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function o6({chunk:e}){const t=String(e.value??""),r=Yg(t,Gg(t,e.format??null));return qe.jsx("div",{className:"csv",children:qe.jsx(Xg,{rows:r,header:!0})})}const Qg=()=>new URLSearchParams(window.location.search),Zg=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],xd="utf-8",u6=e=>Zg.some(t=>t.value===e);function Jg(){const e=Qg().get("enc")??"";return u6(e)?e:xd}function Og(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function ev(e){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(hs(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 c6({node:e}){const{bytes:t,error:r}=ev(e.path),n=Jg(),i=gt.useMemo(()=>t?Og(t,n):null,[t,n]);return r?qe.jsxs("div",{className:"error",children:["text: ",r]}):i==null?qe.jsx("div",{className:"loading",children:"reading…"}):qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx("pre",{className:"plaintext",children:i})]})}function $6({chunk:e}){const{bytes:t,error:r}=ev(e.path),n=gt.useMemo(()=>t?Og(t,xd):null,[t]);return r?qe.jsxs("div",{className:"error",children:["text: ",r]}):n==null?qe.jsx("div",{className:"loading",children:"reading…"}):qe.jsx("pre",{className:"plaintext",children:n})}function f6({rerender:e}){const t=Jg(),r=n=>{const i=Qg();n&&n!==xd?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return qe.jsxs("label",{className:"enc-control",children:["encoding"," ",qe.jsx("select",{value:t,onChange:n=>r(n.target.value),children:Zg.map(n=>qe.jsx("option",{value:n.value,children:n.label},n.value))})]})}const d6={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:"Ÿ"},h6=e=>e<128?String.fromCharCode(e):d6[e]??String.fromCharCode(e),p6=new Set(["fonttbl","colortbl","stylesheet","info","pict","header","footer","footnote","xmlnstbl","themedata","colorschememapping","datastore","latentstyles","listtable","listoverridetable","rsidtbl","generator","operator","creatim","revtim","printim","buptim","author","title","subject","keywords","comment","company","manager","category","doccomm","hlinkbase","filetbl","mmathPr","fldinst","object","nonshppict"]);function _6(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m6(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,c=1/0;const f=e.length;let p=0;const h=()=>s<c,I=be=>{if(!be||!h())return;const re=r[r.length-1];re&&re.b===n.b&&re.i===n.i&&re.u===n.u?re.text+=be:r.push({text:be,b:n.b,i:n.i,u:n.u})},L=()=>{h()&&(t.push(r),r=[])},H=(be,re)=>{switch(be){case"b":n.b=re!==0;break;case"i":n.i=re!==0;break;case"ul":n.u=re!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=re??1;break;case"par":case"row":L();break;case"line":case"sect":I(`
604
- `);break;case"tab":case"cell":I(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:p6.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 re=e[p+1];if(re==="\\"||re==="{"||re==="}")I(re),p+=2;else if(re==="*")c=Math.min(c,s),p+=2;else if(re==="'"){const W=parseInt(e.substr(p+2,2),16);isNaN(W)||I(h6(W)),p+=4}else if(re==="~")I(" "),p+=2;else if(re==="-")p+=2;else if(/[a-zA-Z]/.test(re??"")){let W=p+1;for(;W<f&&/[a-zA-Z]/.test(e[W]);)W++;const X=e.slice(p+1,W);let ge="";for(e[W]==="-"&&(ge+="-",W++);W<f&&/[0-9]/.test(e[W]);)ge+=e[W++];const se=ge===""?null:parseInt(ge,10);if(e[W]===" "&&W++,p=W,X==="u"&&se!==null){h()&&I(String.fromCodePoint(se<0?se+65536:se));for(let me=n.uc;me>0&&p<f;me--)if(e[p]==="\\"&&e[p+1]==="'")p+=4;else if(e[p]==="\\")p+=2;else{if(e[p]==="{"||e[p]==="}")break;p++}}else H(X,se)}else p++}else be==="\r"||be===`
605
- `||I(be),p++}L();const pe=be=>{let re=_6(be.text).replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/\n/g,"<br>");return be.u&&(re=`<u>${re}</u>`),be.i&&(re=`<em>${re}</em>`),be.b&&(re=`<strong>${re}</strong>`),re};return t.filter(be=>be.some(re=>re.text.trim()||re.text.includes(`
606
- `))).map(be=>`<p>${be.map(pe).join("")}</p>`).join(`
607
- `)}function tv(e){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(hs(e)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new TextDecoder("windows-1252").decode(new Uint8Array(c));r(m6(f))}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e]),{html:t,error:n}}function g6({node:e}){const{html:t,error:r}=tv(e.path);return r?qe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?qe.jsx("div",{className:"loading",children:"reading RTF…"}):qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function v6({chunk:e}){const{html:t,error:r}=tv(e.path);return r?qe.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?qe.jsx("div",{className:"loading",children:"reading RTF…"}):qe.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function rv({path:e}){return qe.jsxs("div",{className:"office-fallback",children:[qe.jsxs("p",{children:["Legacy ",qe.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",qe.jsx("code",{children:".docx"})," files render in full."]}),qe.jsxs("p",{children:[qe.jsx("a",{className:"descend",href:hs(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function y6({node:e}){return qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx(rv,{path:e.path})]})}function b6({chunk:e}){return qe.jsx(rv,{path:e.path})}var Vr=Uint8Array,An=Uint16Array,wd=Int32Array,ac=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]),lc=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]),qf=new Vr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nv=function(e,t){for(var r=new An(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new wd(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}},iv=nv(ac,2),sv=iv.b,Mf=iv.r;sv[28]=258,Mf[258]=28;var av=nv(lc,0),x6=av.b,Pp=av.r,Df=new An(32768);for(var $r=0;$r<32768;++$r){var ji=($r&43690)>>1|($r&21845)<<1;ji=(ji&52428)>>2|(ji&13107)<<2,ji=(ji&61680)>>4|(ji&3855)<<4,Df[$r]=((ji&65280)>>8|(ji&255)<<8)>>1}var di=function(e,t,r){for(var n=e.length,i=0,s=new An(t);i<n;++i)e[i]&&++s[e[i]-1];var c=new An(t);for(i=1;i<t;++i)c[i]=c[i-1]+s[i-1]<<1;var f;if(r){f=new An(1<<t);var p=15-t;for(i=0;i<n;++i)if(e[i])for(var h=i<<4|e[i],I=t-e[i],L=c[e[i]-1]++<<I,H=L|(1<<I)-1;L<=H;++L)f[Df[L]>>p]=h}else for(f=new An(n),i=0;i<n;++i)e[i]&&(f[i]=Df[c[e[i]-1]++]>>15-e[i]);return f},cs=new Vr(288);for(var $r=0;$r<144;++$r)cs[$r]=8;for(var $r=144;$r<256;++$r)cs[$r]=9;for(var $r=256;$r<280;++$r)cs[$r]=7;for(var $r=280;$r<288;++$r)cs[$r]=8;var Ul=new Vr(32);for(var $r=0;$r<32;++$r)Ul[$r]=5;var w6=di(cs,9,0),k6=di(cs,9,1),S6=di(Ul,5,0),A6=di(Ul,5,1),t$=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},r$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},kd=function(e){return(e+7)/8|0},oc=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))},E6=["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"],kn=function(e,t,r){var n=new Error(t||E6[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,kn),!r)throw n;return n},C6=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(ft){var _t=r.length;if(ft>_t){var At=new Vr(Math.max(_t*2,ft));At.set(r),r=At}},I=t.f||0,L=t.p||0,H=t.b||0,pe=t.l,be=t.d,re=t.m,W=t.n,X=i*8;do{if(!pe){I=Kn(e,L,1);var ge=Kn(e,L+1,3);if(L+=3,ge)if(ge==1)pe=k6,be=A6,re=9,W=5;else if(ge==2){var xe=Kn(e,L,31)+257,fe=Kn(e,L+10,15)+4,Ae=xe+Kn(e,L+5,31)+1;L+=14;for(var O=new Vr(Ae),Ee=new Vr(19),ce=0;ce<fe;++ce)Ee[qf[ce]]=Kn(e,L+ce*3,7);L+=fe*3;for(var w=t$(Ee),Se=(1<<w)-1,N=di(Ee,w,1),ce=0;ce<Ae;){var ne=N[Kn(e,L,Se)];L+=ne&15;var se=ne>>4;if(se<16)O[ce++]=se;else{var B=0,Le=0;for(se==16?(Le=3+Kn(e,L,3),L+=2,B=O[ce-1]):se==17?(Le=3+Kn(e,L,7),L+=3):se==18&&(Le=11+Kn(e,L,127),L+=7);Le--;)O[ce++]=B}}var ue=O.subarray(0,xe),P=O.subarray(xe);re=t$(ue),W=t$(P),pe=di(ue,re,1),be=di(P,W,1)}else kn(1);else{var se=kd(L)+4,me=e[se-4]|e[se-3]<<8,J=se+me;if(J>i){p&&kn(0);break}f&&h(H+me),r.set(e.subarray(se,J),H),t.b=H+=me,t.p=L=J*8,t.f=I;continue}if(L>X){p&&kn(0);break}}f&&h(H+131072);for(var v=(1<<re)-1,$=(1<<W)-1,l=L;;l=L){var B=pe[r$(e,L)&v],u=B>>4;if(L+=B&15,L>X){p&&kn(0);break}if(B||kn(2),u<256)r[H++]=u;else if(u==256){l=L,pe=null;break}else{var d=u-254;if(u>264){var ce=u-257,_=ac[ce];d=Kn(e,L,(1<<_)-1)+sv[ce],L+=_}var k=be[r$(e,L)&$],A=k>>4;k||kn(3),L+=k&15;var P=x6[A];if(A>3){var _=lc[A];P+=r$(e,L)&(1<<_)-1,L+=_}if(L>X){p&&kn(0);break}f&&h(H+131072);var Q=H+d;if(H<P){var De=s-P,rt=Math.min(P,Q);for(De+H<0&&kn(3);H<rt;++H)r[H]=n[De+H]}for(;H<Q;++H)r[H]=r[H-P]}}t.l=pe,t.p=l,t.b=H,t.f=I,pe&&(I=1,t.m=re,t.d=be,t.n=W)}while(!I);return H!=r.length&&c?oc(r,0,H):r.subarray(0,H)},gi=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Oa=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},n$=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:ov,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(J,xe){return J.f-xe.f}),r.push({s:-1,f:25001});var f=r[0],p=r[1],h=0,I=1,L=2;for(r[0]={s:-1,f:f.f+p.f,l:f,r:p};I!=i-1;)f=r[r[h].f<r[L].f?h++:L++],p=r[h!=I&&r[h].f<r[L].f?h++:L++],r[I++]={s:-1,f:f.f+p.f,l:f,r:p};for(var H=s[0].s,n=1;n<i;++n)s[n].s>H&&(H=s[n].s);var pe=new An(H+1),be=Lf(r[I-1],pe,0);if(be>t){var n=0,re=0,W=be-t,X=1<<W;for(s.sort(function(xe,fe){return pe[fe.s]-pe[xe.s]||xe.f-fe.f});n<i;++n){var ge=s[n].s;if(pe[ge]>t)re+=X-(1<<be-pe[ge]),pe[ge]=t;else break}for(re>>=W;re>0;){var se=s[n].s;pe[se]<t?re-=1<<t-pe[se]++-1:++n}for(;n>=0&&re;--n){var me=s[n].s;pe[me]==t&&(--pe[me],++re)}be=t}return{t:new Vr(pe),l:be}},Lf=function(e,t,r){return e.s==-1?Math.max(Lf(e.l,t,r+1),Lf(e.r,t,r+1)):t[e.s]=r},Up=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new An(++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}},el=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},lv=function(e,t,r){var n=r.length,i=kd(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},Hp=function(e,t,r,n,i,s,c,f,p,h,I){gi(t,I++,r),++i[256];for(var L=n$(i,15),H=L.t,pe=L.l,be=n$(s,15),re=be.t,W=be.l,X=Up(H),ge=X.c,se=X.n,me=Up(re),J=me.c,xe=me.n,fe=new An(19),Ae=0;Ae<ge.length;++Ae)++fe[ge[Ae]&31];for(var Ae=0;Ae<J.length;++Ae)++fe[J[Ae]&31];for(var O=n$(fe,7),Ee=O.t,ce=O.l,w=19;w>4&&!Ee[qf[w-1]];--w);var Se=h+5<<3,N=el(i,cs)+el(s,Ul)+c,ne=el(i,H)+el(s,re)+c+14+3*w+el(fe,Ee)+2*fe[16]+3*fe[17]+7*fe[18];if(p>=0&&Se<=N&&Se<=ne)return lv(t,I,e.subarray(p,p+h));var B,Le,ue,P;if(gi(t,I,1+(ne<N)),I+=2,ne<N){B=di(H,pe,0),Le=H,ue=di(re,W,0),P=re;var v=di(Ee,ce,0);gi(t,I,se-257),gi(t,I+5,xe-1),gi(t,I+10,w-4),I+=14;for(var Ae=0;Ae<w;++Ae)gi(t,I+3*Ae,Ee[qf[Ae]]);I+=3*w;for(var $=[ge,J],l=0;l<2;++l)for(var u=$[l],Ae=0;Ae<u.length;++Ae){var d=u[Ae]&31;gi(t,I,v[d]),I+=Ee[d],d>15&&(gi(t,I,u[Ae]>>5&127),I+=u[Ae]>>12)}}else B=w6,Le=cs,ue=S6,P=Ul;for(var Ae=0;Ae<f;++Ae){var _=n[Ae];if(_>255){var d=_>>18&31;Oa(t,I,B[d+257]),I+=Le[d+257],d>7&&(gi(t,I,_>>23&31),I+=ac[d]);var k=_&31;Oa(t,I,ue[k]),I+=P[k],k>3&&(Oa(t,I,_>>5&8191),I+=lc[k])}else Oa(t,I,B[_]),I+=Le[_]}return Oa(t,I,B[256]),I+Le[256]},T6=new wd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ov=new Vr(0),z6=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,I=(s.r||0)&7;if(t){I&&(p[0]=s.r>>3);for(var L=T6[t-1],H=L>>13,pe=L&8191,be=(1<<r)-1,re=s.p||new An(32768),W=s.h||new An(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 wd(25e3),J=new An(288),xe=new An(32),fe=0,Ae=0,O=s.i||0,Ee=0,ce=s.w||0,w=0;O+2<c;++O){var Se=se(O),N=O&32767,ne=W[Se];if(re[N]=ne,W[Se]=N,ce<=O){var B=c-O;if((fe>7e3||Ee>24576)&&(B>423||!h)){I=Hp(e,p,0,me,J,xe,Ae,Ee,w,O-w,I),Ee=fe=Ae=0,w=O;for(var Le=0;Le<286;++Le)J[Le]=0;for(var Le=0;Le<30;++Le)xe[Le]=0}var ue=2,P=0,v=pe,$=N-ne&32767;if(B>2&&Se==se(O-$))for(var l=Math.min(H,B)-1,u=Math.min(32767,O),d=Math.min(258,B);$<=u&&--v&&N!=ne;){if(e[O+ue]==e[O+ue-$]){for(var _=0;_<d&&e[O+_]==e[O+_-$];++_);if(_>ue){if(ue=_,P=$,_>l)break;for(var k=Math.min($,_-2),A=0,Le=0;Le<k;++Le){var Q=O-$+Le&32767,De=re[Q],rt=Q-De&32767;rt>A&&(A=rt,ne=Q)}}}N=ne,ne=re[N],$+=N-ne&32767}if(P){me[Ee++]=268435456|Mf[ue]<<18|Pp[P];var ft=Mf[ue]&31,_t=Pp[P]&31;Ae+=ac[ft]+lc[_t],++J[257+ft],++xe[_t],ce=O+ue,++fe}else me[Ee++]=e[O],++J[e[O]]}}for(O=Math.max(O,ce);O<c;++O)me[Ee++]=e[O],++J[e[O]];I=Hp(e,p,h,me,J,xe,Ae,Ee,w,O-w,I),h||(s.r=I&7|p[I/8|0]<<3,I-=7,s.h=W,s.p=re,s.i=O,s.w=ce)}else{for(var O=s.w||0;O<c+h;O+=65535){var At=O+65535;At>=c&&(p[I/8|0]=h,At=c),I=lv(p,I+1,e.subarray(O,At))}s.i=c}return oc(f,0,n+kd(I)+i)},R6=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 z6(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)},ui=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},i$=function(e,t){return Ln(e,t)+Ln(e,t+4)*4294967296};function N6(e,t){return R6(e,t||{},0,0)}function I6(e,t){return C6(e,{i:2},t&&t.out,t&&t.dictionary)}var Ff=typeof TextDecoder<"u"&&new TextDecoder,q6=0;try{Ff.decode(ov,{stream:!0}),q6=1}catch{}var M6=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:oc(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 Bf(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(Ff)return Ff.decode(e);var i=M6(e),s=i.s,r=i.r;return r.length&&kn(8),s}}var D6=function(e,t){return t+30+ui(e,t+26)+ui(e,t+28)},L6=function(e,t,r){var n=ui(e,t+28),i=ui(e,t+30),s=Bf(e.subarray(t+46,t+46+n),!(ui(e,t+8)&2048)),c=t+46+n,f=F6(e,c,i,r,Ln(e,t+20),Ln(e,t+24),Ln(e,t+42)),p=f[0],h=f[1],I=f[2];return[ui(e,t+10),p,h,s,c+i+ui(e,t+32),I]},F6=function(e,t,r,n,i,s,c){var f=i==4294967295,p=s==4294967295,h=c==4294967295,I=t+r,L=f+p+h;if(n&&L){for(;t+4<I;t+=4+ui(e,t+2))if(ui(e,t)==1)return[f?i$(e,t+4+8*p):i,p?i$(e,t+4):s,h?i$(e,t+4+8*(p+f)):c,1];n<2&&kn(13)}return[i,s,c,0]};function B6(e,t){for(var r={},n=e.length-22;Ln(e,n)!=101010256;--n)(!n||e.length-n>65558)&&kn(13);var i=ui(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=L6(e,s,c),I=h[0],L=h[1],H=h[2],pe=h[3],be=h[4],re=h[5],W=D6(e,re);s=be,I?I==8?r[pe]=I6(e.subarray(W,W+L),{out:new Vr(H)}):kn(14,"unknown compression type "+I):r[pe]=oc(e,W,W+L)}return r}const j6={},P6=j6?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function Ao(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 s$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,c=r&63;return Ao(n&63)+Ao(i&63)+Ao(s&63)+Ao(c&63)}function U6(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=s$(e[r],e[r+1],0):r+1===e.length?t+=s$(e[r],0,0):t+=s$(e[r],e[r+1],e[r+2]);return t}function H6(e){const t=N6(new TextEncoder().encode(e),{level:9});return`${P6}/svg/${U6(t)}`}function uv({source:e}){return qe.jsx("div",{className:"filemedia",children:qe.jsx("img",{className:"fileimage plantuml",src:H6(e),alt:"PlantUML diagram"})})}function V6({node:e}){return qe.jsxs("div",{className:"text",children:[e.title&&qe.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&qe.jsx("p",{className:"chapter-subtitle",children:e.description}),qe.jsx(uv,{source:String(Ia(e.value)??"")})]})}function W6({chunk:e}){return qe.jsx(uv,{source:String(e.value??"")})}const Y6={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"}},G6={"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 K6(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 xu(e,t,r){if(t){const i=G6[t]??K6(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=Y6[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const a$=new Map;function bl({tag:e,body:t,children:r}){const n=gt.useRef(null),[i,s]=gt.useState(null),[c,f]=gt.useState(t??a$.get(e.path)??null);gt.useEffect(()=>{if(!i||t!=null||a$.has(e.path))return;let H=!0;return Cn(e.path,1).then(pe=>T1(pe.value)).catch(()=>null).then(pe=>{a$.set(e.path,pe??null),H&&f(pe??null)}),()=>{H=!1}},[i,e.path,t]);const p=()=>{const H=n.current?.getBoundingClientRect();H&&s({left:H.left,top:H.bottom+4})},h=()=>s(null),I=cn({name:e.name,color:e.color}),L=t??c;return qe.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:p,onMouseLeave:h,children:[r,i&&g1.createPortal(qe.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,background:I},children:[qe.jsx("span",{className:"tagtip-path",children:q4(e.path)}),L&&qe.jsx("span",{className:"tagtip-value",children:L})]}),document.body)]})}const Sd=[{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"}],cv=Sd[0],X6=cv.color,Ad="yo-annotate-recent-tags";function Q6(e){return e.tag?cn(e.tag):X6}function la(e){return JSON.stringify([e.selector??null,e.tag?.path?Hr(e.tag.path):null])}function jf(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function Z6(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let Vp=null;async function J6(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await Cn(e,2),r=[];for(const[n,i]of bn(t.value)){const s=X0(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return Sd}function O6(){const[e,t]=gt.useState(Sd);return gt.useEffect(()=>{Vp??=J6();let r=!1;return Vp.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const e7=": ...: !!<format: x-yamlover-tag>";function t7(e){const t=new Map;for(const r of e){if(K0(r))continue;const n=Hr(r);t.has(n)||t.set(n,r)}return[...t.values()].map(r=>({path:r,name:Cd(r),color:null}))}function r7(){const[e,t]=gt.useState([]),r=Ma(Fs);return gt.useEffect(()=>{let n=!1;return i4(e7).then(i=>{n||t(t7(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}function $v(){const[e,t]=gt.useState(cv);return gt.useEffect(()=>{let n=!0;return y1().then(i=>{const s=i.settings.annotationTag;n&&s&&t({path:s,name:Cd(s),color:null})}).catch(()=>{}),()=>{n=!1}},[]),[e,n=>{n7(n),t(n),a4(n.path).catch(()=>{})}]}function Ed(){try{const e=JSON.parse(localStorage.getItem(Ad)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function n7(e){if(Hr(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...Ed().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(Ad,JSON.stringify(t))}function i7(){const e=r=>Cn(r.path,0).then(n=>n.format===Da).catch(()=>!1),t=Ed();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(Ad,JSON.stringify(n)),n})}async function s7(e,t,r,n){if(!t)return Is({target:e,tag:r.path});const{fragmentPath:i}=await l4(e,t,n);return Is({target:i,tag:r.path})}function Wp(e,t){return t.fragmentSlug?(e===":"?"":e)+":yamlover-fragments:"+t.fragmentSlug:e}function fv(e,t=0){const[r,n]=gt.useState([]),i=Ma(Fs);return gt.useEffect(()=>{let s=!1;return ka(e).then(c=>!s&&n(c)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function a7(e){const[t,r]=gt.useState(0),n=fv(e,t),[i,s]=gt.useState([]),[c,f]=gt.useState(new Set);gt.useEffect(()=>{const X=new Set(n.map(la));s(ge=>ge.filter(se=>!X.has(la(se)))),f(ge=>new Set([...ge].filter(se=>X.has(se))))},[n]);const p=()=>r(X=>X+1),h=(X,ge,se)=>{s(me=>me.filter(J=>J!==X)),se||window.alert("save failed: "+ge.message)},I=(X,ge,se)=>{const me={path:"(pending)",selector:X??void 0,tag:ge};s(J=>[...J,me]),s7(e,X,ge,se?.imageBase64).then(p).catch(J=>h(me,J,se?.silent))},L=X=>{if(!X?.tag||X.path==="(pending)")return;const ge=la(X);f(se=>new Set(se).add(ge)),P0(Wp(e,X),X.tag.path).then(p).catch(se=>{f(me=>{const J=new Set(me);return J.delete(ge),J}),window.alert("delete failed: "+se.message)})},H=gt.useRef([]),pe=X=>{const ge=n.find(se=>se.fragmentSlug&&se.path!=="(pending)"&&jf(se.selector,X));return ge?Wp(e,ge):null},be=(X,ge,se)=>{const me=pe(X);if(me){const J={path:"(pending)",selector:X,tag:ge};s(xe=>[...xe,J]),Is({target:me,tag:ge.path}).then(p).catch(xe=>h(J,xe,se?.silent));return}if(i.some(J=>jf(J.selector,X))){const J={path:"(pending)",selector:X,tag:ge};s(xe=>[...xe,J]),H.current.push({selector:X,tag:ge,entry:J});return}I(X,ge,se)};gt.useEffect(()=>{if(!H.current.length)return;const X=[];for(const ge of H.current){const se=pe(ge.selector);se?Is({target:se,tag:ge.tag.path}).then(p).catch(me=>h(ge.entry,me)):X.push(ge)}H.current=X},[n]);const re=new Set,W=[];for(const X of[...i,...n]){const ge=la(X);c.has(ge)||re.has(ge)||(re.add(ge),W.push(X))}return{annotations:W,create:I,remove:L,annotateRegion:be}}function Cd(e){const t=Gr(e);return t.length?String(t[t.length-1]):e}function l7(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}const Uo=e=>({"--tag":e});function Td({x:e,y:t,applied:r,mode:n,onPick:i,onUnpick:s,onCopy:c,onClose:f,menuRef:p}){const h=O6(),I=r7(),[L,H]=gt.useState(Ed),[pe,be]=gt.useState(""),[re,W]=gt.useState(-1),[X,ge]=gt.useState(!1),se=n==="edit"?"re-tag":"tag";gt.useEffect(()=>{let N=!0;return i7().then(ne=>{N&&H(ne)}),()=>{N=!1}},[]);const me=(N,ne)=>Hr(N)===Hr(ne),J=N=>h.some(ne=>me(ne.path,N.path)),xe=new Set(r.map(N=>Hr(N.path))),fe=N=>xe.has(Hr(N)),Ae=[],O=new Set;for(const N of[...r.filter(ne=>!J(ne)),...L]){const ne=Hr(N.path);O.has(ne)||(O.add(ne),Ae.push(N))}const Ee=N=>(fe(N.path)?s??i:i)(N),ce=pe.trim().toLowerCase(),w=[];if(ce){const N=I.filter(B=>!J(B)&&!Ae.some(Le=>me(Le.path,B.path))&&(B.name.toLowerCase().includes(ce)||Hr(B.path).toLowerCase().includes(ce))).map(B=>({t:B,rank:l7(B,ce)})).sort((B,Le)=>B.rank-Le.rank||B.t.name.localeCompare(Le.t.name)),ne=new Set;for(const{t:B}of N){const Le=B.name.toLowerCase();if(!ne.has(Le)&&(ne.add(Le),w.push(B),w.length>=8))break}}gt.useEffect(()=>{W(w.length?0:-1)},[pe]);const Se=N=>{const ne=(N??pe).trim();!ne||X||(ge(!0),Cn(ne.startsWith(":")?ne:ne.startsWith("/")?":"+ne.slice(1).split("/").join(":"):":"+ne,1).then(B=>{if(B.format!==Da)throw new Error("not a tag node");i({path:B.path,name:B.title||Cd(B.path),color:X0(B.value)})}).catch(B=>{if(ne.includes(":")||ne.includes("/"))throw new Error(`cannot ${se} with "${ne}": `+B.message);return u4(ne).then(i).catch(Le=>{throw new Error(`cannot create tag "${ne}": `+Le.message)})}).catch(B=>window.alert(B.message)).finally(()=>ge(!1)))};return qe.jsxs("div",{ref:p,className:"annotate-menu",style:{left:e,top:t},role:"menu",children:[qe.jsx("div",{className:"annotate-palette",children:h.map(N=>qe.jsx(bl,{tag:N,children:qe.jsx("button",{type:"button",className:"annotate-swatch"+(fe(N.path)?" on":""),style:Uo(cn(N)),onClick:()=>Ee(N)})},N.path))}),c&&qe.jsx("button",{type:"button",className:"annotate-tool",title:"copy text to clipboard (don't annotate)",onClick:c,children:"⧉"}),qe.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:f,children:"✕"}),Ae.length>0&&qe.jsx("div",{className:"annotate-recents",children:Ae.map(N=>qe.jsx("span",{className:"tagframe",children:qe.jsx(bl,{tag:N,children:qe.jsx("button",{type:"button",className:"tagtag"+(fe(N.path)?" on":""),style:Uo(cn(N)),onClick:()=>Ee(N),children:qe.jsx("span",{className:"tt-label",children:N.name})})})},N.path))}),qe.jsxs("div",{className:"annotate-typeahead",children:[qe.jsx("input",{className:"annotate-taginput",type:"text",placeholder:X?"creating tag…":`${se}: tag path or new name… ⏎`,value:pe,disabled:X,autoComplete:"off",onChange:N=>be(N.target.value),onKeyDown:N=>{if(w.length&&N.key==="ArrowDown"){N.preventDefault(),N.stopPropagation(),W(ne=>(ne+1)%w.length);return}if(w.length&&N.key==="ArrowUp"){N.preventDefault(),N.stopPropagation(),W(ne=>(ne-1+w.length)%w.length);return}if(N.key==="Escape"&&pe){N.preventDefault(),N.stopPropagation(),be("");return}N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),re>=0&&w[re]?Se(w[re].path):Se())}}),!X&&w.length>0&&qe.jsx("div",{className:"annotate-suggest",role:"listbox",children:w.map((N,ne)=>qe.jsx("span",{className:"tagframe",children:qe.jsx(bl,{tag:N,children:qe.jsx("button",{type:"button",role:"option","aria-selected":ne===re,className:"tagtag"+(ne===re?" hi":""),style:Uo(cn(N)),onMouseDown:B=>{B.preventDefault(),Se(N.path)},onMouseEnter:()=>W(ne),children:qe.jsx("span",{className:"tt-label",children:N.name})})})},N.path))})]})]})}function o7(e){const[t,r]=$v(),[n,i]=gt.useState(null),s=gt.useRef(null),c=()=>i(null),f=(re,W,X,ge)=>{i({selector:re,seedTag:t,copy:X,imageBase64:ge,x:W.x,y:W.y}),e.annotateRegion(re,t,{imageBase64:ge,silent:!0})},p=(re,W)=>i({selector:re.selector??{},seedTag:re.tag??t,x:W.x,y:W.y}),h=n?e.annotations.filter(re=>jf(re.selector,n.selector)):[],I=h.map(re=>re.tag).filter(re=>!!re),L=re=>{n&&(r(re),!I.some(W=>Hr(W.path)===Hr(re.path))&&e.annotateRegion(n.selector,re,{imageBase64:n.imageBase64}))},H=re=>{if(!n)return;const W=h.find(X=>X.tag&&Hr(X.tag.path)===Hr(re.path));W&&e.remove(W)};gt.useEffect(()=>{if(!n)return;const re=W=>{s.current?.contains(W.target)||c()};return document.addEventListener("mousedown",re),()=>document.removeEventListener("mousedown",re)},[n]);const pe=n?qe.jsx(Td,{menuRef:s,x:n.x,y:n.y,applied:I,mode:"create",onPick:L,onUnpick:H,onCopy:n.copy?()=>{n.copy(),c()}:void 0,onClose:c}):null,be=n&&I.length===0?{selector:n.selector,tag:n.seedTag,color:cn(n.seedTag)}:null;return{openCreate:f,openEdit:p,palette:pe,preview:be,color:cn(t)}}function u7({path:e,children:t}){const r=gt.useRef(null),n=a7(e),{openCreate:i,openEdit:s,palette:c}=o7(n),{annotations:f}=n;gt.useEffect(()=>{const h=r.current;if(!h)return;const I=requestAnimationFrame(()=>$7(h,f));return()=>cancelAnimationFrame(I)}),gt.useEffect(()=>{const h=I=>{const L=r.current;if(!L||I.target?.closest?.(".annotate-menu")||I.target?.closest?.("mark.yo-annotation"))return;const H=window.getSelection();if(!H||H.isCollapsed||!H.anchorNode||!L.contains(H.anchorNode))return;const pe=c7(H);if(!pe)return;const be=H.getRangeAt(0).getBoundingClientRect(),re=()=>navigator.clipboard?.writeText(pe.exact).catch(()=>{});i({type:"text",exact:pe.exact,prefix:pe.prefix,suffix:pe.suffix},{x:be.left,y:be.bottom+6},re)};return document.addEventListener("mouseup",h),()=>document.removeEventListener("mouseup",h)},[]);const p=h=>{const I=h.target.closest("mark.yo-annotation");if(!I)return;const L=f.find(H=>la(H)===I.dataset.annSel);!L||!Z6(L)||(h.preventDefault(),s(L,{x:h.clientX,y:h.clientY}))};return qe.jsxs("div",{className:"annotated",children:[f.length>0&&qe.jsx("div",{className:"annotate-bar",children:qe.jsxs("span",{className:"annotate-count",children:[f.length," annotation",f.length>1?"s":""]})}),qe.jsx("div",{ref:r,onClick:p,children:t}),c]})}function c7(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 $7(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||f7(e,r.selector.exact,r)}function f7(e,t,r){const n=Q6(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=la(r),p.title=r.description||"click to re-tag or delete";try{f.surroundContents(p);return}catch{}}}function d7(){const[e,t]=$v(),[r,n]=gt.useState(null),[i,s]=gt.useState([]),c=gt.useRef(null),f=()=>{n(null),s([])},p=be=>ka(be).then(s).catch(()=>s([])),h=(be,re,W)=>{n({target:be,x:re,y:W}),s([]),ka(be).then(X=>{X.length===0?(s([{path:"(pending)",tag:e}]),Is({target:be,tag:e.path}).then(()=>p(be)).catch(()=>s([]))):s(X)}).catch(()=>s([]))},I=be=>{if(!r)return;t(be);const re={path:"(pending)",tag:be};s(W=>[...W,re]),Is({target:r.target,tag:be.path}).then(()=>p(r.target)).catch(W=>{s(X=>X.filter(ge=>ge!==re)),window.alert("tag failed: "+W.message)})},L=be=>{if(!r)return;const re=i.find(W=>W.tag&&Hr(W.tag.path)===Hr(be.path));s(W=>W.filter(X=>X!==re)),P0(r.target,re?.tag?.path??be.path).then(()=>p(r.target)).catch(W=>{re&&s(X=>[...X,re]),window.alert("untag failed: "+W.message)})};gt.useEffect(()=>{if(!r)return;const be=re=>{c.current?.contains(re.target)||f()};return document.addEventListener("mousedown",be),()=>document.removeEventListener("mousedown",be)},[r]);const H=i.map(be=>be.tag).filter(be=>!!be),pe=r?qe.jsx(Td,{menuRef:c,x:r.x,y:r.y,applied:H,mode:"create",onPick:I,onUnpick:L,onClose:f}):null;return{openAt:h,tagMenu:pe}}const h7="x-yamlover-board",p7=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function _7(e){return e.format===h7?!0:bn(e.value).some(([t])=>t==="workflow"||t==="columns")}const m7=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),l$=e=>m7.has(e.toLowerCase()),o$=(e,t)=>{const r=bn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},g7=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function v7(e){return qs(bn(e.value).find(([t])=>t==="workflow")?.[1])}function y7(e){const t=bn(e.value).find(([r])=>r==="columns")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(qs).filter(n=>!!n):[]):null}function b7(e){const t=[];for(const[r,n]of bn(e.value)){if(r==="workflow"||r==="columns"||r==="yamlover"||r==="tags")continue;const i=un(n);!i||i.format&&p7.has(i.format)||t.push(i.path)}return t}function x7(e){const t=bn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=qs(i)??qs(bn(i).find(([c])=>c==="tag")?.[1]);s&&n.push(s)}return n}function w7({node:e,onNavigate:t,openContextMenu:r}){const n=Ma(Fs),[i,s]=gt.useState([]),[c,f]=gt.useState([]),[p,h]=gt.useState(null),[I,L]=gt.useState(null),[H,pe]=gt.useState(null),[be,re]=gt.useState(null),W=gt.useRef(null);gt.useEffect(()=>{let Ae=!1;return(async()=>{try{const O=v7(e),ce=bn(e.value).some(([ne])=>ne==="columns")?y7(await Cn(e.path,3)):null;let w=[];if(ce)w=await Promise.all(ce.map(async ne=>({tags:await Promise.all(ne.map(of))})));else if(O){const ne=(await X4(O)).filter(ue=>!ue.initial),B=ne.filter(ue=>ue.next.length>0),Le=ne.filter(ue=>ue.next.length===0);Le.sort((ue,P)=>Number(l$(ue.label))-Number(l$(P.label))),w=[...B.map(ue=>({tags:[ue]})),...Le.length?[{tags:Le}]:[]]}const Se=b7(e),N=await Promise.all(Se.map(async ne=>{const B=await Cn(ne,2);return{path:ne,title:B.title??g7(ne),priority:o$(B.value,"priority"),assignee:o$(B.value,"assignee"),due:o$(B.value,"due"),tags:x7(B.value)}}));if(Ae)return;s(w),f(N),h(null)}catch(O){Ae||h(String(O?.message||O))}})(),()=>{Ae=!0}},[e.path,n]);const X=()=>i.map(Ae=>Ae.tags.map(O=>O.path)),ge=Ae=>{o4(e.path,Ae).catch(O=>h(String(O?.message||O)))},se=(Ae,O)=>{const Ee=X();Ee[Ae]||(Ee[Ae]=[]),Ee[Ae].includes(O)||Ee[Ae].push(O),ge(Ee)},me=(Ae,O)=>{const Ee=X().map((ce,w)=>w===Ae?ce.filter(Se=>Se!==O):ce);ge(Ee)},J=()=>ge([...X(),[]]),xe=Ae=>ge(X().filter((O,Ee)=>Ee!==Ae)),fe=async Ae=>{const O=I;if(L(null),pe(null),!(!O||Ae===O.from))try{await R1(O.task,O.from,Ae),f(Ee=>Ee.map(ce=>ce.path===O.task?{...ce,tags:[...ce.tags.filter(w=>w!==O.from),Ae]}:ce))}catch(Ee){h(String(Ee?.message||Ee))}};return gt.useEffect(()=>{if(!be)return;const Ae=O=>{W.current?.contains(O.target)||re(null)};return document.addEventListener("mousedown",Ae),()=>document.removeEventListener("mousedown",Ae)},[be]),p?qe.jsxs("div",{className:"board-error",children:["Board error: ",p]}):qe.jsxs("div",{className:"board",children:[i.map((Ae,O)=>{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(N=>N.tags.includes(Se.path)).length,0);return qe.jsxs("section",{className:"board-col",children:[qe.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ee},children:[qe.jsxs("div",{className:"board-col-tags",children:[Ae.tags.map(w=>qe.jsx(bl,{tag:{path:w.path,name:w.label,color:w.color},children:qe.jsx("button",{type:"button",className:"tagtag on",style:Uo(cn({name:w.label,color:w.color})),onClick:()=>me(O,w.path),children:qe.jsx("span",{className:"tt-label",children:w.label})})},w.path)),qe.jsx("button",{className:"board-lane-add",title:"add a tag to this lane",onClick:w=>re({lane:O,x:w.clientX,y:w.clientY}),children:"+"})]}),qe.jsx("span",{className:"board-col-count",children:ce}),qe.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>xe(O),children:"🗑"})]}),qe.jsx("div",{className:"board-col-body",children:Ae.tags.map((w,Se)=>{const N=c.filter(Le=>Le.tags.includes(w.path)),ne=cn({name:w.label,color:w.color}),B=l$(w.label);return qe.jsxs("div",{className:"board-group"+(Se>0?" board-group-split":"")+(H===w.path?" board-group-over":""),onDragOver:Le=>{I&&(Le.preventDefault(),H!==w.path&&pe(w.path))},onDrop:Le=>{Le.preventDefault(),fe(w.path)},children:[Ae.tags.length>1&&qe.jsxs("div",{className:"board-group-head",children:[qe.jsx("span",{className:"board-group-dot",style:{background:ne}}),qe.jsx("span",{className:"board-group-title",children:w.label}),qe.jsx("span",{className:"board-col-count",children:N.length})]}),qe.jsx("div",{className:"board-group-cards",children:N.map(Le=>qe.jsxs("article",{className:"board-card"+(B?" board-card-negative":""),draggable:!0,onDragStart:()=>L({task:Le.path,from:w.path}),onDragEnd:()=>{L(null),pe(null)},onClick:()=>t(Le.path),onContextMenu:r?ue=>{ue.preventDefault(),r(Le.path,ue.clientX,ue.clientY)}:void 0,title:Kl(Le.path),style:{borderLeftColor:ne},children:[qe.jsx("div",{className:"board-card-title",children:Le.title}),qe.jsxs("div",{className:"board-card-meta",children:[Le.priority&&qe.jsx("span",{className:"board-chip prio-"+Le.priority,children:Le.priority}),Le.assignee&&qe.jsxs("span",{className:"board-chip board-assignee",children:["@",Le.assignee]}),Le.due&&qe.jsx("span",{className:"board-chip board-due",children:Le.due.slice(0,10)})]})]},Le.path))})]},w.path)})})]},O)}),qe.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:J,children:"+ lane"}),be&&qe.jsx(Td,{menuRef:W,x:be.x,y:be.y,applied:[],mode:"create",onPick:Ae=>{se(be.lane,Ae.path),re(null)},onClose:()=>re(null)})]})}function k7(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):t.concrete==="dir"||t.concrete==="yamlover"?"folder":t.type??t.kind??"":"scalar"}function S7(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 A7({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=H4(Fs),[s,c]=gt.useState({}),f=e.map(h=>h.link?.path).filter(h=>!!h),p=f.join("|");return gt.useEffect(()=>{let h=!1;return Promise.all(f.map(I=>ka(I).then(L=>[I,L]).catch(()=>[I,[]]))).then(I=>{h||c(Object.fromEntries(I))}),()=>{h=!0}},[p]),gt.useEffect(()=>{if(n===0)return;const h=f.filter(L=>i.some(H=>H===L||H.startsWith(L+":")));if(h.length===0)return;let I=!1;return Promise.all(h.map(L=>ka(L).then(H=>[L,H]).catch(()=>[L,[]]))).then(L=>{I||c(H=>({...H,...Object.fromEntries(L)}))}),()=>{I=!0}},[n]),qe.jsx("div",{className:"detailsview",children:qe.jsxs("table",{className:"details",children:[qe.jsx("thead",{children:qe.jsxs("tr",{children:[qe.jsx("th",{className:"details-name",children:"Name"}),qe.jsx("th",{className:"details-kind",children:"Kind"}),qe.jsx("th",{className:"details-tags",children:"Tags"}),qe.jsx("th",{className:"details-size",children:"Size"})]})}),qe.jsxs("tbody",{children:[e.map((h,I)=>{const L=h.link;if(!L)return null;const H=xu(L.type??L.kind,L.format??null,L.concrete),pe=L.title??h.key,be=s[L.path]??[];return qe.jsxs("tr",{className:"details-row",onClick:()=>t(L.path),onContextMenu:r?re=>{re.preventDefault(),r(L.path,re.clientX,re.clientY)}:void 0,title:Kl(L.path),children:[qe.jsxs("td",{className:"details-name",children:[qe.jsx("span",{className:"details-icon "+H.cls,title:H.title,children:H.glyph}),qe.jsx("span",{className:"details-label",children:pe})]}),qe.jsx("td",{className:"details-kind",children:k7(h)}),qe.jsx("td",{className:"details-tags",children:be.map((re,W)=>{if(!re.tag)return null;const X=cn({name:re.tag.name,color:re.tag.color});return qe.jsx(bl,{tag:re.tag,children:K0(re.tag.path)?qe.jsx(E1,{color:X,title:""}):qe.jsx("span",{className:"tagtag",style:{background:X},children:re.tag.name})},W)})}),qe.jsx("td",{className:"details-size",children:S7(h)})]},`${L.path}#${I}`)}),e.length===0&&qe.jsx("tr",{children:qe.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const E7="x-yamlover-annotation",C7="$yamloverMixed",Yp={large:256,thumbnails:512};function T7(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:un(r),up:!0})).filter(t=>t.link!=null)}function z7(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[C7];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 R7(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 Gp(e){if(e==null)return"~";const t=String(e).split(`
608
- `,1)[0];return t.length>80?t.slice(0,79)+"…":t}function N7(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function I7(e,t,r,n){if(r==="ArrowRight")return Math.min(t+1,n-1);if(r==="ArrowLeft")return Math.max(t-1,0);if(r==="Home")return 0;if(r==="End")return n-1;const i=e[t];if(!i)return t;const s=i.getBoundingClientRect(),c=s.left+s.width/2,f=s.top+s.height/2,p=r==="ArrowDown";let h=t,I=1/0;for(let L=0;L<n;L++){const H=e[L];if(!H||L===t)continue;const pe=H.getBoundingClientRect(),be=pe.left+pe.width/2,re=pe.top+pe.height/2;if(p?re<=f+1:re>=f-1)continue;const W=Math.abs(be-c)*2+Math.abs(re-f);W<I&&(I=W,h=L)}return h}function q7(e,t){const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?hs(e.path):t4(e.path,t,t)}function M7({link:e,glyph:t,box:r}){const[n,i]=gt.useState(!1),s=n?null:q7(e,r);return s?qe.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):qe.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function D7({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:c}){const f=e.link,p=t?0:-1,h=f&&!e.up&&c?{onContextMenu:pe=>{pe.preventDefault(),c(f.path,pe.clientX,pe.clientY)}}:{};if(!f){const pe=xu(R7(e.raw),null);return qe.jsxs("span",{className:"dirview-item",ref:n,tabIndex:p,onFocus:i,children:[qe.jsx("span",{className:"dirview-icon "+pe.cls,title:pe.title,children:pe.glyph}),qe.jsxs("span",{className:"dirview-label",children:[e.key,": ",Gp(e.raw)]})]})}const I=xu(f.type??f.kind,f.format??null,f.concrete),L=e.up?M4(e.key):f.title??e.key,H=f.format===Da?qe.jsx("span",{className:"tagtag",style:{background:cn({name:L,color:f.color})},children:L}):f.kind==="scalar"&&!N7(f.format)?qe.jsxs(qe.Fragment,{children:[L,": ",qe.jsx("span",{className:"val",children:Gp(f.value)})]}):L;return qe.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:f.path,title:Kl(f.path),ref:n,tabIndex:p,onFocus:i,onClick:pe=>{pe.preventDefault(),s(f.path)},...h,children:[Yp[r]&&!e.up?qe.jsx(M7,{link:f,glyph:I,box:Yp[r]}):qe.jsx("span",{className:"dirview-icon "+I.cls,title:I.title,children:I.glyph}),qe.jsx("span",{className:"dirview-label",children:H})]})}function L7({node:e,view:t,onNavigate:r}){const n=e.format===Da,[i,s]=gt.useState([]),c=Ma(Fs),{openAt:f,tagMenu:p}=d7();gt.useEffect(()=>{if(s([]),!n)return;let me=!1;return n4(e.path).then(J=>{me||s(J.map(un).filter(xe=>xe!=null))}).catch(()=>{}),()=>{me=!0}},[e.path,n,c]);const h=T7(e.relations);let I=z7(e);if(n){I=I.filter(J=>J.link?.format!==E7);const me=new Set(I.map(J=>J.link?.path).filter(Boolean));for(const J of i)me.has(J.path)||I.push({key:Vu(J.path,J.title),link:J})}const L=[...h,...I],H=gt.useRef(null),pe=gt.useRef([]);pe.current.length=L.length;const[be,re]=gt.useState(0);gt.useEffect(()=>{be>L.length-1&&re(Math.max(0,L.length-1))},[L.length,be]);const W=gt.useRef(!0);gt.useEffect(()=>{re(0),W.current=!0},[e.path]),gt.useEffect(()=>{!W.current||!L.length||(W.current=!1,!H.current?.closest(".chunk-body")&&pe.current[0]?.focus({preventScroll:!0}))},[L.length,e.path]);const X=me=>{if(me.ctrlKey||me.altKey||me.metaKey||!L.length)return;if(me.key==="Enter"){const xe=L[be]?.link;xe&&(me.preventDefault(),r(xe.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(me.key))return;me.preventDefault();const J=I7(pe.current,be,me.key,L.length);J!==be&&(re(J),pe.current[J]?.focus())};if(t==="board")return qe.jsxs(qe.Fragment,{children:[p,qe.jsx(w7,{node:e,onNavigate:r,openContextMenu:f})]});if(t==="details")return qe.jsxs(qe.Fragment,{children:[p,qe.jsx(A7,{members:I,onNavigate:r,openContextMenu:f})]});const ge=(n?T1(e.value):null)??e.description,se="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return qe.jsxs("div",{className:"explorerview",children:[p,ge&&qe.jsx("div",{className:"dirhead",children:qe.jsx("p",{className:"tagdesc",children:ge})}),qe.jsxs("div",{ref:H,className:se,onKeyDown:X,children:[L.map((me,J)=>qe.jsx(D7,{it:me,active:J===be,view:t,setRef:xe=>{pe.current[J]=xe},onFocus:()=>re(J),onNavigate:r,onContext:f},`${me.up?"^":""}${me.link?.path??me.key}#${J}`)),L.length===0&&qe.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const dv="http://www.w3.org/1999/xlink",F7=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function B7(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(F7,"")}function j7(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function hv(e,t){if(e.nodeType===3)return j7(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>hv(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 Kp({node:e}){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;return r(null),i(null),fetch(hs(e.path)).then(c=>c.arrayBuffer()).then(c=>{if(s)return;const f=new DOMParser().parseFromString(B7(c),"application/xml"),p=f.getElementsByTagName("parsererror")[0];if(p)throw new Error(p.textContent?.trim().split(`
609
- `)[0]||"invalid FB2 XML");const h=new Map;for(const se of Array.from(f.getElementsByTagNameNS("*","binary"))){const me=se.getAttribute("id");if(me){const J=se.getAttribute("content-type")||"image/jpeg";h.set(me,`data:${J};base64,${(se.textContent||"").replace(/\s+/g,"")}`)}}const I=f.getElementsByTagNameNS("*","title-info")[0],L=(se,me)=>se?.getElementsByTagNameNS("*",me)[0]?.textContent?.trim()||"",H=L(I,"book-title")||void 0,pe=I&&Array.from(I.getElementsByTagNameNS("*","author")).map(se=>[L(se,"first-name"),L(se,"middle-name"),L(se,"last-name")].filter(Boolean).join(" ")||L(se,"nickname")).filter(Boolean).join(", "),be=I?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],re=(be?.getAttributeNS(dv,"href")||be?.getAttribute("l:href")||"").replace(/^#/,""),W=Array.from(f.getElementsByTagNameNS("*","body")),X=W.find(se=>se.getAttribute("name")!=="notes")||W[0],ge=X?Array.from(X.childNodes).map(se=>hv(se,h)).join(""):"";r({title:H,author:pe||void 0,cover:re?h.get(re):void 0,html:ge})}).catch(c=>!s&&i(String(c.message||c))),()=>{s=!0}},[e.path]),n?qe.jsxs("div",{className:"error",children:["fb2: ",n]}):t?qe.jsxs("div",{className:"text fb2",children:[t.cover&&qe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&qe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&qe.jsx("p",{className:"chapter-subtitle",children:t.author}),qe.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):qe.jsx("div",{className:"loading",children:"loading FB2…"})}const Xp="http://www.w3.org/1999/xlink";function u$(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 Qp(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function Zp({node:e}){const[t,r]=gt.useState(null),[n,i]=gt.useState(null);return gt.useEffect(()=>{let s=!1;const c=[];return r(null),i(null),fetch(hs(e.path)).then(f=>f.arrayBuffer()).then(f=>{if(s)return;const p=B6(new Uint8Array(f)),h=fe=>p[fe]?Bf(p[fe]):"",I=fe=>new DOMParser().parseFromString(h(fe),"application/xml"),L=I("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!L||!p[L])throw new Error("no OPF package document");const H=I(L),pe=Qp(L),be=new Map,re=(fe,Ae="")=>{if(!p[fe])return"";const O=be.get(fe);if(O)return O;const Ee=URL.createObjectURL(new Blob([p[fe]],{type:Ae}));return be.set(fe,Ee),c.push(Ee),Ee},W=H.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),X=Array.from(H.getElementsByTagNameNS("*","creator")).map(fe=>fe.textContent?.trim()).filter(Boolean).join(", "),ge=new Map;for(const fe of Array.from(H.getElementsByTagNameNS("*","item"))){const Ae=fe.getAttribute("id"),O=fe.getAttribute("href");Ae&&O&&ge.set(Ae,{path:u$(pe,O),type:fe.getAttribute("media-type")||""})}const se=Array.from(H.getElementsByTagNameNS("*","meta")).find(fe=>fe.getAttribute("name")==="cover")?.getAttribute("content"),me=se?ge.get(se):void 0,J=me?re(me.path,me.type):void 0,xe=[];for(const fe of Array.from(H.getElementsByTagNameNS("*","itemref"))){const Ae=ge.get(fe.getAttribute("idref")||"");if(!Ae||!/html/.test(Ae.type)||!p[Ae.path])continue;const O=Qp(Ae.path),ce=new DOMParser().parseFromString(Bf(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"),N=Se?re(u$(O,Se)):"";N?w.setAttribute("src",N):w.removeAttribute("src")}for(const w of Array.from(ce.querySelectorAll("image"))){const Se=w.getAttributeNS(Xp,"href")||w.getAttribute("href")||w.getAttribute("xlink:href"),N=Se?re(u$(O,Se)):"";N&&w.setAttributeNS(Xp,"xlink:href",N)}xe.push(`<section class="epub-doc">${ce.innerHTML}</section>`)}}if(s){c.forEach(URL.revokeObjectURL);return}r({title:W,author:X||void 0,cover:J,html:xe.join(`
610
- `)})}).catch(f=>!s&&i(String(f.message||f))),()=>{s=!0,c.forEach(URL.revokeObjectURL)}},[e.path]),n?qe.jsxs("div",{className:"error",children:["epub: ",n]}):t?qe.jsxs("div",{className:"text epub",children:[t.cover&&qe.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&qe.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&qe.jsx("p",{className:"chapter-subtitle",children:t.author}),qe.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):qe.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function Jp({node:e}){return qe.jsx("iframe",{className:"filehtml",src:hs(e.path),sandbox:"allow-same-origin",title:e.title??Kl(e.path)})}const Op=gt.lazy(()=>qn(()=>import("./pdf-DEAMWCiJ.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),e_=gt.lazy(()=>qn(()=>import("./djvu-BXFlPnkK.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),t_=gt.lazy(()=>qn(()=>import("./psd-BUfV7J7j.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),r_=gt.lazy(()=>qn(()=>import("./tiff-DvGVB25t.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),n_=gt.lazy(()=>qn(()=>import("./heic-Ce7tu8UK.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),P7=gt.lazy(()=>qn(()=>import("./docx-B_9I-KwO.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),U7=gt.lazy(()=>qn(()=>import("./docx-B_9I-KwO.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),H7=gt.lazy(()=>qn(()=>import("./spreadsheet-DM8lRCkI.js"),[]).then(e=>({default:e.SpreadsheetView}))),V7=gt.lazy(()=>qn(()=>import("./spreadsheet-DM8lRCkI.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),W7=gt.lazy(()=>qn(()=>import("./map-CKyCg437.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),Y7=gt.lazy(()=>qn(()=>import("./map-CKyCg437.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),G7=gt.lazy(()=>qn(()=>import("./imagemap-DlsYOgu-.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),K7=gt.lazy(()=>qn(()=>import("./imagemap-DlsYOgu-.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Br=e=>qe.jsx(gt.Suspense,{fallback:qe.jsx("div",{className:"loading",children:"…"}),children:e}),Pi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),X7=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),ol=(e,t,r)=>({name:e,label:t,accepts:dr("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(n,i)=>qe.jsx(L7,{node:n,view:r,onNavigate:i})}),pv=ol("tag-board","tag board","board"),Pf=[ol("large-icons","large icons","large"),ol("thumbnails","thumbnails","thumbnails"),ol("small-icons","small icons","small"),ol("details","details","details")],_a=Pf[0],_v=e=>e==="dir"||e==="yamlover",Q7=[{name:"settings",accepts:dr("x-yamlover-config"),specificity:2,render:()=>qe.jsx(J4,{})},{name:"chapter",accepts:dr("x-yamlover-chapter"),specificity:2,depth:2,tocView:i_,render:(e,t)=>qe.jsx(A1,{node:e,onNavigate:t})},{name:"task",accepts:dr("x-yamlover-task"),specificity:2,depth:2,tocView:i_,render:(e,t)=>qe.jsx(Z4,{node:e,onNavigate:t})},{name:"marklower",accepts:e=>e.format==="text/marklower"||e.format===null&&e.valueType==="string",specificity:1,render:(e,t)=>qe.jsx(J5,{node:e,onNavigate:t}),renderChunk:(e,t)=>qe.jsx(O5,{chunk:e,onNavigate:t})},{name:"markdown",accepts:dr("text/markdown"),specificity:2,render:e=>qe.jsx(Wb,{node:e}),renderChunk:e=>qe.jsx(Yb,{chunk:e}),config:e=>qe.jsx(Oh,{rerender:e})},{name:"asciidoc",accepts:dr("text/asciidoc"),specificity:2,render:e=>qe.jsx(r6,{node:e}),renderChunk:e=>qe.jsx(n6,{chunk:e}),config:e=>qe.jsx(Oh,{rerender:e})},{name:"csv",accepts:dr("text/csv","text/tab-separated-values"),specificity:2,render:e=>qe.jsx(a6,{node:e}),renderChunk:e=>qe.jsx(o6,{chunk:e}),config:e=>qe.jsx(l6,{rerender:e})},{name:"plaintext",accepts:dr("text/plain"),specificity:2,render:e=>qe.jsx(c6,{node:e}),renderChunk:e=>qe.jsx($6,{chunk:e}),config:e=>qe.jsx(f6,{rerender:e})},{name:"rtf",accepts:dr("application/rtf"),specificity:2,render:e=>qe.jsx(g6,{node:e}),renderChunk:e=>qe.jsx(v6,{chunk:e})},{name:"docx",accepts:dr("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Br(qe.jsx(P7,{node:e})),renderChunk:e=>Br(qe.jsx(U7,{chunk:e}))},{name:"spreadsheet",accepts:dr("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Br(qe.jsx(H7,{node:e})),renderChunk:e=>Br(qe.jsx(V7,{chunk:e}))},{name:"doc",accepts:dr("application/msword"),specificity:2,render:e=>qe.jsx(y6,{node:e}),renderChunk:e=>qe.jsx(b6,{chunk:e})},{name:"map",accepts:dr("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Br(qe.jsx(W7,{node:e})),renderChunk:e=>Br(qe.jsx(Y7,{chunk:e}))},{name:"latex",accepts:dr("text/x-latex"),specificity:2,render:e=>qe.jsx(W5,{node:e}),renderChunk:e=>qe.jsx(Y5,{chunk:e})},{name:"plantuml",accepts:dr("text/x-plantuml"),specificity:2,render:e=>qe.jsx(V6,{node:e}),renderChunk:e=>qe.jsx(W6,{chunk:e})},_a,{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(qe.jsx(G7,{node:e})),renderChunk:e=>Br(qe.jsx(K7,{chunk:e}))},{name:"html",accepts:dr("text/html"),specificity:2,render:e=>qe.jsx(Jp,{node:e}),renderChunk:e=>qe.jsx(Jp,{node:Pi(e)})},{name:"fb2",accepts:dr("application/x-fictionbook+xml"),specificity:2,render:e=>qe.jsx(Kp,{node:e}),renderChunk:e=>qe.jsx(Kp,{node:Pi(e)})},{name:"epub",accepts:dr("application/epub+zip"),specificity:2,render:e=>qe.jsx(Zp,{node:e}),renderChunk:e=>qe.jsx(Zp,{node:Pi(e)})},{name:"pdf",accepts:dr("application/pdf"),specificity:2,render:e=>Br(qe.jsx(Op,{node:e})),renderChunk:e=>Br(qe.jsx(Op,{node:Pi(e)}))},{name:"djvu",accepts:dr("image/vnd.djvu"),specificity:2,render:e=>Br(qe.jsx(e_,{node:e})),renderChunk:e=>Br(qe.jsx(e_,{node:Pi(e)}))},{name:"psd",accepts:dr("image/vnd.adobe.photoshop"),specificity:2,render:e=>Br(qe.jsx(t_,{node:e})),renderChunk:e=>Br(qe.jsx(t_,{node:Pi(e)}))},{name:"tiff",accepts:dr("image/tiff"),specificity:2,render:e=>Br(qe.jsx(r_,{node:e})),renderChunk:e=>Br(qe.jsx(r_,{node:Pi(e)}))},{name:"heic",accepts:dr("image/heic"),specificity:2,render:e=>Br(qe.jsx(n_,{node:e})),renderChunk:e=>Br(qe.jsx(n_,{node:Pi(e)}))}];function Z7(e){const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function i_(e){const t=e.children.find(r=>Z7(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 uc(e){const t=X7(e);let r=null;for(const n of Q7)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function J7(e){return _7(e)?[pv,...Pf]:Pf}function c$(e){const t=[],r=uc(e);return r&&r!==_a&&t.push(r),(r===_a||_v(e.concrete))&&t.push(...J7(e)),t}function $$(e,t){const r=uc(e);return r&&r!==_a?r.name:r===_a||_v(t)?e.format==="x-yamlover-board"?pv.name:_a.name:null}function mv(e){const t=uc(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 O7=gt.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,depth:s=0}){const{children:c,expandable:f,loaded:p,loadDepth:h}=mv(t),[I,L]=gt.useState(c.length>0),[H,pe]=gt.useState(!1),be=t.path===r,re=Bo(t.path,r),W=gt.useRef(null);gt.useEffect(()=>{re&&L(!0)},[re]),gt.useEffect(()=>{be&&W.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[be]);const X=xu(t.type,t.format,t.concrete),ge=I&&X.glyph==="📁"?"📂":X.glyph,se=async()=>{if(!I&&f&&!p){pe(!0);try{await i(t.path,h)}finally{pe(!1)}}L(me=>!me)};return qe.jsxs("div",{className:"tree-branch",children:[qe.jsxs("div",{ref:W,className:"tree-row"+(be?" selected":""),style:{paddingLeft:s*14+4},children:[f?qe.jsx("button",{className:"toggle"+(I?" open":"")+(H?" loading":""),onClick:se,"aria-label":I?"collapse":"expand",children:qe.jsx("span",{className:"chevron",children:"›"})}):qe.jsx("span",{className:"toggle leaf"}),qe.jsx("span",{className:"icon "+X.cls,title:X.title,children:ge}),qe.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${Kl(t.path)} (${t.type})`,children:t.label})]}),I&&c.map(me=>qe.jsx(e,{node:me,current:r,onSelect:n,onLoadChildren:i,depth:s+1},me.path))]})});function e8({tasks:e}){return e.length?qe.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 qe.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[qe.jsxs("span",{className:"task-label",children:[t.label,c&&qe.jsxs("span",{className:"task-counts",children:[" ",c]}),t.state==="error"&&" — failed"]}),qe.jsx("span",{className:"task-bar",children:s!==null?qe.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):qe.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function t8(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 r8(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 n8(e){const t=await fetch(`https://publish.x.com/oembed?url=${encodeURIComponent(e)}&omit_script=true&dnt=true`);if(!t.ok)throw new Error(`oEmbed HTTP ${t.status}`);const r=await t.json(),i=new DOMParser().parseFromString((r.html??"").replace(/<br\s*\/?>/gi,`
611
- `),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const c=(r.author_url??"").split("/").filter(Boolean).pop(),f=i?Array.from(i.querySelectorAll(":scope > a")):[],p=f[f.length-1]?.textContent?.trim(),h=[r.author_name,c&&`@${c}`].filter(Boolean).join(" "),I=[h&&`— ${h}`,p].filter(Boolean).join(", ");return[s,"",[I,r.url??e].filter(Boolean).join(`
612
- `)].join(`
613
- `)}const gv=new Set(["script","style","noscript","template","iframe","svg","head","title"]),i8=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 s8(e){const t=new DOMParser().parseFromString(e,"text/html"),r=o8(a8(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 a8(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
614
- `).replace(/\n{2,}/g,`
615
- `).trim();r="",s&&t.push({kind:"text",text:s})},i=s=>{if(s.nodeType===Node.TEXT_NODE){r+=s.textContent??"";return}if(!(s instanceof Element))return;const c=s.tagName.toLowerCase();if(!gv.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=l8(s);f&&t.push({kind:"image",url:f,alt:s.getAttribute("alt")??""});return}if(c==="li"){n(),s.childNodes.forEach(i);const f=r.replace(/\s+/g," ").trim();r="",f&&t.push({kind:"text",text:"- "+f});return}if(c==="pre"){n();const f=(s.textContent??"").replace(/\n+$/,"");f.trim()&&t.push({kind:"text",text:"```\n"+f+"\n```"});return}if(c==="blockquote"){n(),s.childNodes.forEach(i);const f=r.trim();r="",f&&t.push({kind:"text",text:f.split(`
616
- `).map(p=>"> "+p).join(`
617
- `)});return}if(c==="br"){r+=`
618
- `;return}if(c==="td"||c==="th"){s.childNodes.forEach(i),r+=" ";return}if(i8.has(c)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=vv(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function vv(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.tagName.toLowerCase();if(gv.has(t))return"";if(t==="br")return`
619
- `;const r=Array.from(e.childNodes).map(vv).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 l8(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 o8(e){const t=[];for(const r of e){const n=t[t.length-1];r.kind==="text"&&r.text.startsWith("- ")&&n?.kind==="text"&&n.text.startsWith("- ")?n.text+=`
620
- `+r.text:t.push(r)}return t}const u8={"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 yv(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:c8(t.image.url,n.type),contentBase64:await $8(n)}}}catch{return{text:`![${t.image.alt}](${t.image.url})`}}})),children:await Promise.all(e.children.map(yv))}}function c8(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+="."+(u8[t]||"bin")),r}function $8(e){return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result).split(",")[1]||""),n.onerror=()=>r(new Error("could not read image")),n.readAsDataURL(e)})}function bv(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+bv(r),0)}const xv=2,Uf=1,Hf=10,wv=()=>new URLSearchParams(window.location.search);function Vf(){const e=Number(wv().get("depth"));return Number.isInteger(e)&&e>=Uf&&e<=Hf?e:xv}function f8(e){const t=wv();e===xv?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function d8({onChange:e}){const t=Vf(),[r,n]=gt.useState(String(t));gt.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=Uf&&i<=Hf;return qe.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"depth",value:r,onChange:c=>{const f=c.target.value;n(f);const p=Number(f);f.trim()!==""&&Number.isInteger(p)&&p>=Uf&&p<=Hf&&(f8(p),e())}})}const h8=new Set(["chapter","markdown","asciidoc","marklower"]),p8=["yamlover","json5p","yamlover/schema"],ul="yamlover",_8=new Set(["json","json5","json5p"]),kv=e=>_8.has(e??""),f$=e=>e.endsWith("schema"),s_=e=>e==="json5p"?"json":"yaml";function d$(e){return kv(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function h$(e,t,r){return r.includes(e)||t.some(n=>n.name===e)?e:t[0]?t[0].name:ul}function m8(e){const t=Gr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const g8={"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.${g8[e.type]||"bin"}`}function b8(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 x8=gt.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:c,onOpenUploaded:f}){const[p,h]=gt.useState(null),[I,L]=gt.useState(null),[H,pe]=gt.useState(null),[be,re]=gt.useState(null),[W,X]=gt.useState(0),[ge,se]=gt.useState(null),[me,J]=gt.useState(!1),xe=gt.useRef(t),[,fe]=gt.useReducer(k=>k+1,0),Ae=fv(t);gt.useEffect(()=>{re(null),xe.current!==t&&(h(null),xe.current=t);let k=!1;return Cn(t).then(A=>{if(k)return;const Q=c$(A),De=h$(r,Q,d$(A)),rt=Q.find(_t=>_t.name===De),ft=rt?rt.depth??1:Vf();ft>1?Cn(t,ft).then(_t=>!k&&h(_t)).catch(_t=>!k&&re(_t.message)):h(A)}).catch(A=>!k&&re(A.message)),()=>{k=!0}},[t,W,n,r]),gt.useEffect(()=>{if(!p)return;const k=A=>{const Q=A.target;if(Q&&(Q.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(Q.tagName)))return;const De=v8(A);if(De.length>0){A.preventDefault(),O(De);return}const rt=A.clipboardData?.getData("text/html")??"",ft=rt?s8(rt):null;if(ft){A.preventDefault(),ce(ft);return}const _t=A.clipboardData?.getData("text/plain")??"";if(!_t.trim())return;A.preventDefault();const At=t8(_t);if(At){Ee(At);return}const bt=r8(_t);if(bt){w(bt);return}Se(_t)};return document.addEventListener("paste",k),()=>document.removeEventListener("paste",k)},[p,t]),gt.useEffect(()=>{if(!p)return;const k=_t=>Array.from(_t.dataTransfer?.types||[]).includes("Files");let A=0;const Q=_t=>{k(_t)&&(_t.preventDefault(),A++,J(!0))},De=_t=>{k(_t)&&(_t.preventDefault(),_t.dataTransfer&&(_t.dataTransfer.dropEffect="copy"))},rt=()=>{A=Math.max(0,A-1),A===0&&J(!1)},ft=_t=>{if(!k(_t))return;_t.preventDefault(),A=0,J(!1);const At=Array.from(_t.dataTransfer?.files||[]);At.length&&O(At)};return document.addEventListener("dragenter",Q),document.addEventListener("dragover",De),document.addEventListener("dragleave",rt),document.addEventListener("drop",ft),()=>{document.removeEventListener("dragenter",Q),document.removeEventListener("dragover",De),document.removeEventListener("dragleave",rt),document.removeEventListener("drop",ft)}},[p,t]);const O=async k=>{try{se(`uploading ${k.length} file${k.length>1?"s":""}…`);let A=null;for(const Q of k){const De=await b8(Q);A=await c4(t,y8(Q),De)}se(k.length>1?`uploaded ${k.length} files`:"uploaded"),window.setTimeout(()=>se(null),1500),A?.open?f?.(A):(X(Q=>Q+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},Ee=async({url:k,name:A})=>{try{se(`downloading ${A}…`);const Q=await fetch(k);if(!Q.ok)throw new Error(`HTTP ${Q.status} fetching ${k}`);const De=await Q.blob();await O([new File([De],A,{type:"application/pdf"})])}catch(Q){se("download failed: "+Q.message),window.setTimeout(()=>se(null),4e3)}},ce=async k=>{try{const A=bv(k);A&&se(`downloading ${A} image${A>1?"s":""}…`);const Q=await yv(k);se("pasting…");const De=await f4(t,Q);se(De.chapter?"chunks added":"chapter created"),window.setTimeout(()=>se(null),1500),De.open?f?.(De):(X(rt=>rt+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},w=async k=>{try{se("fetching tweet…"),await Se(await n8(k))}catch(A){se("tweet fetch failed: "+A.message),window.setTimeout(()=>se(null),4e3)}},Se=async k=>{try{se("pasting text…");const A=await $4(t,k);se(A.chapter?"chunk added":"chapter created"),window.setTimeout(()=>se(null),1500),A.open?f?.(A):(X(Q=>Q+1),c?.(t))}catch(A){se("paste failed: "+A.message),window.setTimeout(()=>se(null),4e3)}};if(gt.useEffect(()=>{p&&(document.title=p.title?.trim()||m8(t)||"yamlover")},[p,t]),gt.useEffect(()=>{if(L(null),pe(null),!p)return;const k=c$(p),A=h$(r,k,d$(p));k.some(Q=>Q.name===A)||(f$(A)?r4(t,Vf()).then(L).catch(Q=>re(Q.message)):p.type==="binary"&&Cn(t,void 0,{binary:!0}).then(Q=>pe(Q.value)).catch(Q=>re(Q.message)))},[r,t,p]),be)return qe.jsx("div",{className:"error",children:be});if(!p)return qe.jsx("div",{className:"loading",children:"…"});const N=c$(p),ne=d$(p),B=[...N.map(k=>k.name),...ne],Le=h$(r,N,ne),ue=k=>N.find(A=>A.name===k)?.label??k,P=N.find(k=>k.name===Le)??null,v=P!=null;let $,l;v?($=p.value,l=!0):f$(Le)?($=I,l=I!=null):p.type==="binary"?($=H,l=H!=null):($=p.value,l=!0);const{tags:u,rest:d}=V4(p.relations),_=[...u];for(const k of Ae)k.tag&&!_.some(A=>A.path===k.tag.path)&&_.push({path:k.tag.path,label:k.tag.name,color:k.tag.color});return qe.jsxs("div",{className:"nodeview",children:[ge&&qe.jsx("div",{className:"paste-toast",children:ge}),me&&qe.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),qe.jsxs("div",{className:"nodehead",children:[qe.jsxs("div",{className:"nodemeta",children:[qe.jsx("span",{className:"tag",children:p.type}),p.concrete&&qe.jsx("span",{className:"tag dim",children:p.concrete}),qe.jsx(Y4,{tags:_,onNavigate:s})]}),qe.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),qe.jsxs("div",{className:"tabs",children:[B.map(k=>qe.jsxs(gt.Fragment,{children:[qe.jsx("button",{className:"tab"+(Le===k?" active":""),onClick:()=>i(k),children:ue(k)}),v&&P&&k===P.name&&P.config?.(fe,p)]},k)),!v&&qe.jsx(d8,{onChange:()=>X(k=>k+1)})]})]}),!v&&p.description&&qe.jsx("p",{className:"nodedesc",children:p.description}),v?h8.has(P.name)?qe.jsx(u7,{path:t,children:P.render(p,s)}):P.render(p,s):qe.jsxs("pre",{className:"code",children:[!f$(Le)&&Object.keys(d).length>0&&qe.jsxs(qe.Fragment,{children:[qe.jsx(Hh,{value:d,syntax:s_(Le),onNavigate:s}),qe.jsx("hr",{className:"reldiv"})]}),l?qe.jsx(Hh,{value:$,syntax:s_(Le),onNavigate:s}):"…"]})]})}),w8=e=>p8.includes(e),k8=(e,t)=>w8(e)&&(e!=="json5p"||kv(t)),tl=1;function Wf(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>Wf(n,t,r))}:e}function Sv(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=>Sv(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function Av(e,t,r){return e.path===t?Sv(e,r):e.children.length?{...e,children:e.children.map(n=>Av(n,t,r))}:e}function oa(e,t){if(e.path===t)return e;for(const r of e.children){const n=oa(r,t);if(n)return n}return null}function S8(e,t){const r=Gr(t);for(let n=0;n<r.length;n++){const i=ri(r.slice(0,n)),s=oa(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function A8(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of mv(n).children)r(i)};return r(e),t}function E8(){const[e,t]=gt.useState(null),[r,n]=gt.useState(null),[i,s]=gt.useState(Vh()),[c,f]=gt.useState(Wh(ul)),[p,h]=gt.useState(""),[I,L]=gt.useState("idle"),H=gt.useCallback(()=>{const v=":.yamlover:settings.yamlover";Ws(v,"settings",!1),s(v),f("settings")},[]),[pe,be]=gt.useState(320),re=gt.useRef(null);gt.useEffect(()=>{jh().then(v=>h(v.root)).catch(()=>{})},[]);const[W,X]=gt.useState([]);gt.useEffect(()=>{e4().then(X).catch(()=>{})},[]);const ge=gt.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=gt.useRef(new URLSearchParams(window.location.search).has("format"));gt.useEffect(()=>{Ws(i,c,!0)},[]),gt.useEffect(()=>{Qa(":",tl).then(t).catch(v=>n(v.message))},[]);const me=gt.useRef(!1);gt.useEffect(()=>{if(se.current||me.current||!e)return;const v=oa(e,i);if(!v)return;me.current=!0;const $=$$(v,v.concrete);$&&(f($),Ws(i,$,!0))},[e,i]);const J=gt.useCallback(async(v,$=tl)=>{const l=await Qa(v,$);t(u=>u&&Wf(u,v,l.children))},[]);gt.useEffect(()=>{if(!e)return;const v=S8(e,i);v&&J(v).catch(()=>{})},[e,i,J]);const xe=gt.useRef(e);xe.current=e;const fe=gt.useRef(i);fe.current=i;const[Ae,O]=gt.useState(0),Ee=gt.useCallback(async v=>{const $=xe.current;if(!$)return;const l=new Set;for(const d of v){const _=Gr(d);let k=":";for(let A=0;A<_.length;A++){const Q=ri(_.slice(0,A)),De=oa($,Q);if(!De)break;(Q===":"||De.children.length>0)&&(k=Q)}l.add(k)}const u=[...l].filter(d=>![...l].some(_=>_!==d&&Bo(_,d)));await Promise.all(u.map(async d=>{const _=await Qa(d,tl);t(k=>k&&Av(k,d,_))}))},[]),ce=gt.useCallback(()=>{xe.current||(Qa(":",tl).then(v=>{t(v),n(null)}).catch(()=>{}),jh().then(v=>h(v.root)).catch(()=>{}))},[]);gt.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 k=l.task;ge(k),k.state==="done"&&ce();return}const u=l;ce();const d=[...u.added,...u.changed,...u.removed,...(u.moved??[]).flatMap(k=>[k.from,k.to])];if(!d.length)return;U4({paths:d,removed:u.removed}),Ee(d).catch(()=>{});const _=fe.current;d.some(k=>k===_||Bo(k,_)||Bo(_,k))&&O(k=>k+1)}catch{}},()=>v.close()},[Ee,ge,ce]),gt.useEffect(()=>{const v=()=>{s(Vh()),f(Wh(ul))};return window.addEventListener("popstate",v),()=>window.removeEventListener("popstate",v)},[]);const w=gt.useCallback(v=>{const $=e?oa(e,v):null;let l=c;$&&(l=$$($,$.concrete)??(k8(c,$.concrete)?c:ul)),Ws(v,l,!1),s(v),l!==c&&f(l)},[c,e]),Se=gt.useCallback(v=>{w(v),re.current?.focus()},[w]),N=gt.useRef(w);N.current=w,gt.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=A8(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&&N.current(u[_])};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[]);const ne=gt.useCallback(v=>{Ws(i,v,!0),f(v)},[i]),B=gt.useCallback(v=>{const $=e?oa(e,v):null;J($?v:":").catch(()=>{})},[e,J]),Le=gt.useCallback(async v=>{const $=v.dir??":";try{const l=await Qa($,tl);t(_=>_&&Wf(_,$,l.children));const u=l.children.find(_=>_.path===v.path),d=(u?$$(u,u.concrete):null)??ul;Ws(v.path,d,!1),s(v.path),f(d)}catch{w(v.path)}},[w]),ue=gt.useRef(!1);gt.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 P=gt.useCallback(async()=>{if(I!=="busy"){L("busy");try{let{files:v}=await Ph();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 Ph(!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{L("idle")}}},[I]);return qe.jsxs("div",{className:"app",children:[qe.jsxs("header",{className:"topbar",children:[qe.jsxs("nav",{className:"crumbs",children:[qe.jsx("button",{type:"button",className:"crumb-action crumb-settings",title:"Project configuration (settings.yamlover)","aria-label":"Project configuration",onClick:H,children:"⚙"}),qe.jsx("button",{type:"button",className:"crumb-action",disabled:I==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:P,children:"🤖"}),D4(i,p).map((v,$)=>qe.jsxs("span",{children:[$>0&&qe.jsx("span",{className:"crumb-sep",children:":"}),qe.jsx("a",{className:"crumb",href:v.path,onClick:l=>{l.preventDefault(),w(v.path)},children:v.label})]},v.path))]}),qe.jsx(e8,{tasks:W})]}),qe.jsxs("div",{className:"body",children:[qe.jsx("aside",{className:"pane left",style:{width:pe},children:(()=>{const v=e?void 0:W.find($=>$.state==="running");if(v){const{done:$,total:l}=v.progress;return qe.jsxs("div",{className:"loading",children:[v.label,"… ",l?`${$}/${l}`:""]})}return r?qe.jsx("div",{className:"error",children:r}):e?qe.jsx(O7,{node:e,current:i,onSelect:Se,onLoadChildren:J}):qe.jsx("div",{className:"loading",children:"loading…"})})()}),qe.jsx("div",{className:"splitter",onMouseDown:()=>{ue.current=!0,document.body.style.userSelect="none"}}),qe.jsx("main",{className:"pane right",ref:re,tabIndex:-1,children:(()=>{const v=e?void 0:W.find($=>$.state==="running");if(v){const{done:$,total:l}=v.progress;return qe.jsxs("div",{className:"loading",children:[v.label,"… ",l?`${$}/${l}`:""]})}return qe.jsx(x8,{path:i,format:c,refreshSignal:Ae,onFormat:ne,onNavigate:w,onContentChanged:B,onOpenUploaded:Le})})()})]})]})}v1(document.getElementById("root")).render(qe.jsx(Hv.StrictMode,{children:qe.jsx(E8,{})}));export{X6 as D,C8 as a,hs as b,Q6 as c,o7 as d,Z6 as e,a7 as f,Ev as g,qe as j,T8 as p,gt as r,Bf as s,B6 as u,z8 as w};