@jhuix/showdowns 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/demo/index.html +1 -0
- package/dist/diagrams/flowchart/flowchart.min.js +2 -7
- package/dist/diagrams/flowchart/flowchart.min.js.map +1 -1
- package/dist/diagrams/flowchart/license +3 -1
- package/dist/showdowns.core.min.css +5 -5
- package/dist/showdowns.core.min.js +2 -2
- package/dist/showdowns.core.min.js.map +1 -1
- package/dist/showdowns.min.css +5 -5
- package/dist/showdowns.min.js +4 -2
- package/dist/showdowns.min.js.map +1 -1
- package/package.json +21 -17
- package/dist/diagrams/flowchart/flowchart.js +0 -1210
- package/dist/diagrams/flowchart/flowchart.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* showdowns.core.min.js v0.7.
|
|
2
|
+
* showdowns.core.min.js v0.7.2
|
|
3
3
|
* Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var t=require("showdown"),e=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var s=0;o.length>s;++s)o[s]===t&&o.splice(s,1);for(var a=0;i.length>a;++a)i[a]===t&&i.splice(a,1)}},this.asyncMakeHtml=function(t,e){const n=`<div class='showdowns'>${this.makeHtml(t)}</div>`,o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),s=void 0!==r.body?r.body:r,a=s.firstChild,l=this.getOptions();let u=Promise.resolve({wrapper:a,options:l,globals:i,scripts:[],cssLinks:[]});return o.forEach(function(t){u=u.then(e=>{const n=t.filter(e);return n||e})}),u.then(t=>{if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>(s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},this},t.subParser("githubCodeBlocks",function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,i,r,s,a){var l=n.omitExtraWLInCodeBlocks?"":"\n";return a=t.subParser("encodeCode")(a,n,o),a="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(s?` data-lang='${s}'`:"")+">"+(a=(a=(a=t.subParser("detab")(a,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",a=t.subParser("hashBlock")(a,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e}),t.subParser("tables",function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i){var r="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(r=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+r+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function s(e,i,r,s,a){if(n.tablesMerge){var l=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var s=o-1;s>=0;-s){if(t[r+1][s]&&"^^"!==t[r+1][s])return;if(t[r][s]){if(!t[r+1][s])return;return t[r][s]=t[r][s].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i}}}else if(o)for(s=o-1;s>=0;--s)if(t[e][s]){if("^^"!==t[e][s])return t[e][s]=t[e][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][s+1])return;if("^^"!==t[r][s])return t[r][s]=t[r][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i}}else if(0===s)return t[e][s]='<td colspan="'+(o-s+1)+'"></td>\n',i}(e,i,r,s);if(!t.helper.isUndefined(l))return l}return s=s.trim(),"<td"+a+">"+t.subParser("spanGamut")(s,n,o)+"</td>\n"}function a(e,a){var l,u=e.split("\n");for(l=0;u.length>l;++l)/^ {0,3}\|/.test(u[l])&&(u[l]=u[l].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(u[l])&&(u[l]=u[l].replace(/\|[ \t]*$/,"")),u[l]=t.subParser("codeSpans")(u[l],n,o);var c=[],d=[],p=[],h=[],m=[];if(a)for(c=u[0].split("|").map(function(t){return t.trim()}),u.shift(),l=0;c.length>l;++l)h.push(i(c[l]));else{var f=u[0].split("|").map(function(t){return t.trim()});if(c=u[1].split("|").map(function(t){return t.trim()}),u.shift(),u.shift(),c.length>f.length)return e;for(l=0;c.length>l;++l)h.push(i(c[l]));for(l=0;f.length>l;++l)t.helper.isUndefined(h[l])&&(h[l]=""),p.push(r(f[l],h[l]))}for(l=0;u.length>l;++l)""!==u[l].trim()&&d.push(u[l].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(l=0;d.length>l;++l){var g=[];m.push(g);for(var y=0;h.length>y;++y)t.helper.isUndefined(d[l][y])&&(d[l][y]=""),g.push(s(m,l,y,d[l][y],h[y]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var s=0;t.length>s;++s)i+=t[s];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",s=0;o.length>s;++s){i+="<tr>\n";for(var a=0;r>a;++a)n.tablesMerge&&"^^"===o[s][a]||(i+=o[s][a]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(p,h,m)}function l(t){return a(t,!1)}function u(t){return a(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,l)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,u)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,u)),e=o.converter._dispatch("tables.after",e,n,o)});let n="vanilla",o={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},i={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!i.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return i[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(i[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete i[e]},t.resetAsyncExtensions=function(){i={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const r=t.setFlavor,s=t.getFlavorOptions;function a(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(r(e),n=e,!o.hasOwnProperty(e))return}catch{if(!o.hasOwnProperty(e))return;t.resetOptions(),n=e}var i=o[e];for(var s in i)i.hasOwnProperty(s)&&(t.getOptions()[s]=i[s])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=s(e);return t.helper.isUndefined(n)?o.hasOwnProperty(e)?o[e]:void 0:o.hasOwnProperty(e)?Object.assign(n,o[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let l="jsdelivr",u="file:"===document.location.protocol?"https://":document.location.protocol+"//",c="",d="",p="";const h={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/dist/viz-global.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",MathJax:"../node_modules/mathjax/tex-mml-svg.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js",Plotly:"../node_modules/plotly.js-dist-min/plotly.min.js",Shiki:"../node_modules/@jhuix/shiki-loader/dist/index.js",AntVInfographic:"../node_modules/@antv/infographic/dist/infographic.min.js",zenuml:"../node_modules/@zenuml/core/dist/zenuml.js"},cdnjs:{ABCJS:u+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:u+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:u+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.0/echarts.min.js",Viz:u+"cdn.jsdelivr.net/npm/@viz-js/viz@3/dist/viz-global.js",Raphael:u+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:u+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:u+"cdnjs.cloudflare.com/ajax/libs/mermaid/11.6.0/mermaid.min.js",katex:u+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:u+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:u+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/contrib/auto-render.js",MathJax:u+"cdnjs.cloudflare.com/ajax/libs/mathjax/4.0.0/tex-mml-svg.js",railroad:u+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:u+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:u+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:u+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:u+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js",sequence:u+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:u+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:u+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:u+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:u+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:u+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:u+"cdnjs.cloudflare.com/ajax/libs/vega/6.1.2/vega.min.js",vegaLite:u+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:u+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/vega-embed.min.js",Plotly:u+"cdnjs.cloudflare.com/ajax/libs/plotly.js/3.1.1/plotly.min.js",Shiki:"https://esm.sh/shiki@3.21.0",AntVInfographic:u+"www.unpkg.com/@antv/infographic/dist/infographic.min.js",zenuml:u+"www.unpkg.com/@zenuml/core/dist/zenuml.js"},jsdelivr:{ABCJS:u+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:u+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:u+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:u+"cdn.jsdelivr.net/npm/@viz-js/viz@3/dist/viz-global.js",Raphael:u+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:u+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:u+"cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",katex:u+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:u+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:u+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",MathJax:u+"cdn.jsdelivr.net/npm/mathjax@4/tex-mml-svg.js",railroad:u+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:u+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:u+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:u+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:u+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:u+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:u+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:u+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:u+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:u+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:u+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:u+"cdn.jsdelivr.net/npm/vega@6/build/vega.min.js",vegaLite:u+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:u+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js",Plotly:u+"cdn.jsdelivr.net/npm/plotly.js-dist-min@3.3.1/plotly.min.js",Shiki:"https://cdn.jsdelivr.net/npm/shiki@3.21.0/+esm",AntVInfographic:u+"cdn.jsdelivr.net/npm/@antv/infographic/dist/infographic.min.js",zenuml:u+"cdn.jsdelivr.net/npm/@zenuml/core/dist/zenuml.min.js"}};function m(){return l}function f(t){if("object"==typeof t){const e=Object.keys(t)[0],n=t[e];if("string"==typeof n)return e+"-"+n}return t}function g(t,e,n,o){if(void 0!==n&&n||(n=m()),h.hasOwnProperty(n)){const i=h[n];let r="";if("object"==typeof e){const t=Object.keys(e)[0],n=e[t];i[t]&&"string"==typeof n&&n&&i[t][n]&&(r=i[t][n])}else i[e]&&(r=i[e]);r&&(o=t||r.startsWith("http://")||r.startsWith("https://")||r.startsWith(u)?r:"../dist/"===r.substring(0,8)?d+r:c+r)}return o}const y={setCDN:function(t,e,n,o){t in h&&(l=t),"string"==typeof e&&e&&(c=e),"string"==typeof n&&n&&(d=n),"string"==typeof o&&o&&("/"!==p.at(p.length-1)&&(o+="/"),p=o)},getCDN:m,getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?d+t:c+t;if("file:"===e.protocol&&p){return t=new URL(p).origin+"/"+t.substring(8)}}catch{if(p){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=p+t}}return t},getSrc:g,loadScript:function(t,e,n,o){return new Promise((i,r)=>{t&&"undefined"!=typeof document||r("Args is invaild!"),void 0===e?e="":"boolean"==typeof e&&(o=n,n=e,e=""),(e=g(!1,t,e))||r(t+" script source invaild!");const s=f(t),a="script-"+s.toLowerCase();let l=document.getElementById(a);if(l)return i(t);const u=document.head||document.getElementsByTagName("head")[0];if(l=document.createElement("script"),l.id=a,n&&(l.defer=!0),o&&(l.type="module","string"!=typeof o||"link"!==o)){const n=s.toLowerCase();return l.textContent=`import * as ${n} from '${e}';\nif (!('${s}' in window)) {\n if ('default' in ${n} && ${n}['default']) {\n window['${s}'] = ${n}['default']\n } else {\n window['${s}'] = ${n};\n }\n}`,u.appendChild(l),i(t)}l.onload=()=>{i(t)},l.src=e,u.appendChild(l)})},unloadScript:function(t){t=f(t);const e=document.getElementById("script-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}},loadStyleSheet:function(t,e){if(!t||"undefined"==typeof document)return"";if(void 0===e&&(e=""),!(e=g(!1,t,e)))return"";const n="css-"+f(t).toLowerCase();if(!document.getElementById(n)){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,i.id=n,o.appendChild(i)}return"local"===l?"":e},unloadStyleSheet:function(t){t=f(t);const e=document.getElementById("css-"+t.toLowerCase());if(e){(document.head||document.getElementsByTagName("head")[0]).removeChild(e)}}};function w(t){if(!t||"string"!=typeof t)return null;try{return JSON.parse(t)}catch(e){let n=null;return t.replace(/^\{(.*)\}$/,"$1").split(",").forEach(t=>{const e=t.split("=");if(2===e.length){n||(n={});const t=e[0].trim().replace(" ","-");let o=e[1].trim();o="true"===o.toLowerCase()||"false"!==o.toLowerCase()&&(isNaN(o)?o.replace(/^"(.*)"$/,"$1"):Number(o)),n[t]=o}}),n}}function v(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}function x(t){return t&&"function"!=typeof t&&"object"==typeof t&&!Array.isArray(t)}function b(t,...e){for(const n of e)for(const[e,o]of Object.entries(n))x(o)&&x(t[e])?b(t[e],o):Object.assign(t,{[e]:o});return t}const S={parseLangAttr:w,interopDefault:function(t){return t&&"object"==typeof t&&"default"in t&&t.default?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then(e=>{t.body.removeChild(e),e.style.display=""}),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n,o){const i=w(e.dataset.lang);let r="diagram-left";if(i){const t=i.codeblock||i.code_block;if("boolean"==typeof t&&t||"string"==typeof t&&"true"===t.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right")),i.width&&("string"!=typeof i.width&&(i.width=i.width+"px"),e.style.width=i.width),i.height&&("string"!=typeof i.height&&(i.height=i.height+"px"),e.style.height=i.height)}let s=e.textContent.trim();o&&"function"==typeof o&&(s=o(s));const a=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r;let l;"string"==typeof n?n.length>0&&(n="-"+n):"boolean"==typeof n&&n?(l=v(e.dataset.lang+s),n="-"+l):n="-"+Math.floor(1e4*Math.random());const u=t.toLowerCase()+"-"+Date.now()+n;return e.id=u,e.className=a,{id:u,container:u+"-container",className:a,data:s,hash:l,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:v,deepMerge:b},E="abc",j="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===k)var k=window.ABCJS||void 0;function L(){return!!k}let C=!1;function A(){if(void 0===t)var t=window.ABCJS||void 0;function e(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector("#"+t+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector("#"+t+" svg .abcjs-cursor");o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector("#"+t+" svg .abcjs-cursor");n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune(e,n,o){const i=e.id,r=e.data;if(!o)return void t.renderAbc(i,r,this.abcOptions);o.disable(!0);const s=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:s}).then(function(t){o.setTune(s,n).then(function(t){}).catch(function(t){})}).catch(function(t){})},load(n,o){let i;if(n){const r="#"+n;t.synth.supportsAudio()?(i=new t.synth.SynthController,i.load(r,new e(o.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector(r).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(o,!1,i)}}}function $(t,e){const n=function(){window.abcEnv.load(t,e)};return n.toString=function(){return`function(){\n const audio = '${t}';\n const render = ${JSON.stringify(e)};\n window.abcEnv.load(audio, render);\n }`},n}function N(t,e,n){if(L()){const o=n.id,i=n.className,r=n.container;let s="";n.lang&&(n.lang.width&&(s+=`width:${n.lang.width};`),n.lang.height&&(s+=`height:${n.lang.height};`));let a="";if(s?(a+=`<div id="${r}" class="${i}" style="${s}">`,a+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(a+=`<div id="${r}" class="${i}">`,a+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;a+="</div>",n.element.parentNode.outerHTML=a;const r=i.getElementById(o);return k.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.cssLink,u=n.data,c=o+"-audio";a+=s?l?`<div id="${c}" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="${l}"></div>`:`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:l?`<div id="${c}" class="css-abc" data-css="${l}"></div>`:`<div id="${c}"></div>`,a+="</div>",n.element.parentNode.outerHTML=a;const d={id:r,code:$(c,{id:o,class:i,data:u}),host:"#"+r};return e.push(d),t(!0)}setTimeout(()=>{N(t,e,n)},10)}function T(t,e){return new Promise(n=>{let o=S.createElementMeta(E,t);if(!o||0===o.data.length)return n(!1);o.cssLink=y.getSrc(!0,j),N(n,e,o)})}function M(t,e){const n={outer:[{name:"ABCJS",src:y.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:A,inner:[]};return e.push(n),function(){const t=L();if("undefined"!=typeof window){if(C)return t;t||(C=!0,y.loadStyleSheet(j),S.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),y.loadScript("ABCJS").then(t=>{k=S.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(T(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}let q="en";!function(){let t=document?.children[0].lang??"en";t=t.toLowerCase(),q="zh-cn"===t||"zh-hans"===t?"zh-cn":"en"}();const O={en:{"code-copy":"Copy Code","code-theme-prefix":"Theme:","code-lang-prefix":"Lang:",toc:"Table Of Contents","toc-show-title-prefix":"Show ","toc-hide-title-prefix":"Hide ","toc-toggle-prefix":"Toggle ","msg-copy-success":"Copy success!","msg-copy-failed":"Copy failed!"},"zh-cn":{"code-copy":"复制代码","code-theme-prefix":"主题:","code-lang-prefix":"语言:",toc:"目录","toc-show-title-prefix":"显示","toc-hide-title-prefix":"隐藏","toc-toggle-prefix":"切换","msg-copy-success":"复制成功!","msg-copy-failed":"复制失败!"}};const P={getLangString:function(t,e){return O[q]?.[t]??e}},z=["H1","H2","H3","H4","H5","H6"];function D(t,e,n,o,i){try{if(i){if(o>1){const t=n.parentNode;t&&"UL"===t.tagName&&t.classList.add("toc-multi")}const e=n.querySelector("div");if(e){e.classList.remove("toc-title"),e.classList.add("toc-multi-title");const t=e.querySelector("i");t&&(t.classList.remove("toc-chapter"),t.classList.add("toc-multi-chapter"),t.innerHTML='<svg class="icon"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(t.ownerDocument.createElement("ul"))).classList.add(o>1?"toc-level-"+o:"toc-main")}if(n=n.appendChild(t.ownerDocument.createElement("li")),e){const i=n.appendChild(t.ownerDocument.createElement("div"));i.classList.add("toc-title-"+o,"toc-title");const r=i.appendChild(t.ownerDocument.createElement("i"));r.classList.add("iconfont","toc-chapter"),r.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>';const s=i.appendChild(t.ownerDocument.createElement("a"));s.appendChild(t.ownerDocument.createTextNode(e.textContent)),s.href="#"+e.id}}catch{}return n}function H(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&H(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=D(t,null,n.toc,o,!0),n.preLevel++;n.toc=D(t,e,n.toc,o,!0)}else{for(;n.preLevel>o;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=D(t,e,n.toc,o,!1)}return n.parentNode&&H(t,e,n.parentNode,o),n}function B(){if(!document.querySelector("#total-showdown-toc"))return;const t=document.querySelector("#toc-fold-icon");t&&(t.onclick=e=>{const n=document.querySelectorAll(".total-toc ul"),o=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===t.dataset.name)return n.forEach(t=>{t.classList.contains("toc-main")||t.classList.contains("toc-level-2")||t.classList.add("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(t.dataset.name="toc-fold");n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),t.dataset.name="toc-expand"});const e=document.querySelector("#toc-close-icon");e&&(e.onclick=t=>{const e=document.querySelector("#total-showdown-toc");e&&e.classList.add("hidden");const n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});const n=document.querySelector("#toc-switch-button");n&&(n.onclick=t=>{t.currentTarget.classList.add("hidden");const e=document.querySelector("#total-showdown-toc");e&&e.classList.remove("hidden")});document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(t=>{t.onclick=t=>{let e=t.currentTarget.parentNode;if(!e)return;if(e=e.parentNode,!e)return;const n=e.querySelectorAll("ul"),o=e.querySelectorAll(".toc-multi-chapter use"),i=t.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(t=>{t.classList.add("hidden")}),void o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}})}function R(t){return[{type:"output",config:((t={})=>({chapterNumber:!0,title:"",toc:"[\\[【]Table[ -]Of[ -]Contents[\\]】]|[\\[【]目录[\\]】]|[\\[【]TOC[\\]】]|\\{\\{TOC\\}\\}",...t}))(t),filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return function(t,e){let n=null,o=0,i=null,r=!1,s=!1,a=null;const l=RegExp(`^(${e.toc})$`,"i");e.extraDocs=[];let u=1;const c=[0,0,0,0,0,0],d=t.querySelectorAll(z.join(",")+",p");for(let p=0;d.length>p;p++){if(n=d[p],l.test(n.textContent.trim())){let l=null;if(s)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(a){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),a=l;let o=P.getLangString("toc"),i=P.getLangString("toc-show-title-prefix"),r=P.getLangString("toc-hide-title-prefix"),s=P.getLangString("toc-toggle-prefix");e.title?.length>0&&(o=e.title);const u=t.ownerDocument.createElement("div");u.id="toc-switch-button",u.classList.add("toc-switch","hidden"),u.title=i+o,u.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(u,n),l.id="total-showdown-toc",l.classList.add("total-toc"),l.innerHTML=`<div class="toc-pin"><span class="toc-pin-text">${o}</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand" title="${s+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon" title="${r+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>`}let u=t.ownerDocument.createElement("div");u.classList.add("toc-view"),l.appendChild(u);let c={parentNode:null,toc:u,headingLevel:o,preLevel:o,standalone:!1};if(i)if(o>i.headingLevel)c.parentNode=i;else{let t=i;for(;t.headingLevel>o;)t=t.parentNode;t&&(c.parentNode=o===t.headingLevel?t.parentNode:t)}i=c,r=!0,i.standalone=!s,s?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(z.includes(n.tagName)){if(s||(s=!0),o=parseInt(n.tagName.substr(1)),e.chapterNumber)if(o>1){if(u!==o){u=o;let t=u;for(;c.length>t;)c[t]=0,t++}let t="",e=1;for(c[u-1]++;o>e;)t+=c[e]+".",e++;n.textContent=t+" "+n.textContent}else{let t=0;for(;c.length>t;)c[t]=0,t++}i&&(i=H(t,n,i,o))}}for(i&&e.extraDocs.push('<div id="toc-svgs" class="none hidden"><svg xmlns="http://www.w3.org/2000/svg"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z"></path></symbol></svg></div>'),a&&e.extraDocs.push(a.outerHTML);i;){let t=i;i=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return r}(n,this.config)?n.innerHTML:t}if(!("object"==typeof t&&t&&this.config.extraDocs&&Array.isArray(this.config.extraDocs)&&this.config.extraDocs.length))return!1;const e=t;this.config.extraDocs.forEach(t=>{S.addExtra(e,t)});return S.addScript(e,{inner:[{id:"showdown-toc",code:B,host:"#total-showdown-toc"}]}),e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===_)var _=window.Viz||void 0;const I=["circo","dot","neato","osage","twopi"];function J(){return!(void 0===_||!_||void 0===_.instance)}let F=!1;function W(t,e){if(J()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.element,s=e.lang;let a="dot";s&&s.engine&&-1!=I.indexOf(s.engine)&&(a=s.engine);let l=r.style.cssText;return l.length>0&&(l=` style="${l}"`),void _.instance().then(e=>{const s=e.renderString(i,{format:"svg",engine:a});r.parentNode.outerHTML=`<div id="${n}" class="${o}"${l}>${s}</div>`,t(!0)})}setTimeout(()=>{W(t,e)},10)}function V(t){return new Promise(e=>{const n=S.createElementMeta("viz",t);if(!n||0===n.data.length)return e(!1);W(e,n)})}function U(t){return function(){const t=J();if("undefined"!=typeof window){if(F)return t;t||(F=!0,y.loadScript("Viz").then(t=>{_=S.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(V(t))}),Promise.all(n).then(()=>{e(!0)})})}const G={},K={},X=["pdflatex","xelatex","lualatex"];function Z(t,e){t.forEach(t=>{!function(t,e){const n=S.createElementMeta("Tex",t,!0);if(!n||0===n.data.length)return;const o=K[n.hash];if(o)return void t.parentNode.replaceWith(o);let i=e.config.buildType??"pdflatex";n.lang?.engine&&X.includes(n.lang.engine.toLowerCase())&&(i=n.lang.engine.toLowerCase()),e.elements=e.elements??[];const r={type:i,id:n.id};n.lang&&(r.lang=n.lang),e.elements.push(r)}(t,e)})}function Q(){if(!window||!("Tex"in window))return;const t=window.Tex;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e="https://"+(t.config.serverUrl??"tex.io");t.elements.forEach(({type:n,id:o,lang:i})=>{const r=document.querySelector("#"+o);if(!r)return;const s=r.dataset.lang,a=r.textContent.trim(),l=S.hashString(s+a),u=K[l];if(u)return void r.parentNode.replaceWith(u);if("function"==typeof t.svgRender&&t.svgRender){const e={build:n};i&&(i.width?.length>0&&(e.width=i.width),i.height?.length>0&&(e.height=i.height),i.zoom&&i.zoom>0&&(e.zoom=i.zoom));try{t.svgRender(r.id,a,e).then(t=>{const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),K[l]=e}).catch(t=>{})}catch(t){}return}if(!window||!window.fetch)return;const c=[];i&&(i.width?.length>0&&c.push("width="+i.width),i.height?.length>0&&c.push("height="+i.height),i.zoom&&i.zoom>0&&c.push("zoom="+i.zoom));const d=`${e}/${n}/svg`+(c.length>0?"?"+c.join("&"):"");try{window.fetch(d,{method:"POST",body:a,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),K[l]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function Y(t){return[{type:"output",config:((t={})=>({serverUrl:"tex.io",buildType:"pdflatex",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.tex.language-tex,code.latex.language-latex");return!!n.length&&(window&&(window.Tex=G),G.config={serverUrl:this.config.serverUrl,buildType:this.config.buildType},G.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-tex",code:Q,once:!0}),Z(n,G),G.elements?.length>0&&(o=e,Object.keys(K).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete K[t]})),t);var o}}]}const tt="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===et)var et=window.vegaEmbed||void 0;function nt(){return!(void 0===et||!et)}let ot=!1;function it(t,e,n,o){const i=S.createElementMeta(tt,t);if(!i||0===i.data.length)return Promise.resolve(!1);const r=i.container,s={id:r,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o)if(t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const i=n(`(function(){${t.data}; return option;})();`);et(o,i,e)}else{const n=JSON.parse(t.data);et(o,n,e)}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`:`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n const option = ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`,n})(i,e),host:"#"+r};return n.push(s),new Promise(t=>{st(t,i)})}function rt(t,e,n,o){const i={outer:[{name:tt,src:y.getSrc(!1,tt,"jsdelivr")},{name:"vegaLite",src:y.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:y.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=nt();if("undefined"!=typeof window){if(ot)return t;t||(ot=!0,y.loadScript(tt).then(()=>y.loadScript("vegaLite")).then(()=>y.loadScript("vegaEmbed")).then(t=>{et=S.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(it(t,o,i.inner))}),e.forEach(t=>{r.push(it(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function st(t,e){if(nt()){let n=e.element.style.cssText;return n.length>0&&(n=` style="${n}"`),e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"${n}><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{st(t,e)},10)}function at(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&rt(n,o,t.scripts,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown antv extension can only be used in browser environment!");if(void 0===lt)var lt=window.AntVInfographic||void 0;function ut(){return!(void 0===lt||!lt)}let ct=!1;function dt(t,e){if(ut()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,a.container=l,e.lang&&(e.lang.width&&(a.width=e.lang.width),e.lang.height&&(a.height=e.lang.height));return new lt.Infographic(a).render(i),r.replaceWith(l),void t(!0)}setTimeout(()=>{dt(t,e)},10)}function pt(t){return new Promise(e=>{const n=S.createElementMeta("infographic",t);if(!n||0===n.data.length)return e(!1);dt(e,n)})}function ht(t){return function(){const t=ut();if("undefined"!=typeof window){if(ct)return t;if(!t)return ct=!0,y.loadScript("AntVInfographic").then(t=>{lt=S.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(pt(t))}),Promise.all(n).then(()=>{e(!0)})})}function mt(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var ft=".",gt={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},yt=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},gt,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function wt(t,e){return t.input>e.input?1:-1}var vt,xt,bt,St=[];function Et(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function jt(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function kt(t){for(var e,n,o,i=0,r="",s=!0,a=1;t.length>=a&&s;a++)n=t.slice(0,a),i=jt(St,n,i),St.length>i&&t.slice(0,St[i].length)==St[i]&&(e=i,a=(r=St[i]).length),s=St.length>i&&t.slice(0,St[i].length)>=St[i];if(xt=bt,""!=r)return bt=yt[e].ttype,yt[e];bt=0,i=1,n=t.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==ft&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return l&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&3==xt?(bt=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function Lt(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function Ct(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function At(t){var e,n,o,i,r="";if(null==(e=kt(t=Et(t,0)))||5==e.ttype&&vt>0)return[null,t];switch(8==e.ttype&&(e=kt(t=e.output+Et(t,e.input.length))),e.ttype){case 7:case 0:t=Et(t,e.input.length);var s=Ct(e);return"\\"==s.charAt(0)||"mo"==e.tag?[s,t]:["{"+s+"}",t];case 4:vt++,o=Nt(t=Et(t,e.input.length),!0),vt--;var a=0;return"\\right"==o[0].substr(0,6)&&(")"==(u=o[0].charAt(6))||"]"==u||"}"==u?a=6:"."==u?a=7:"\\rbrace"==(u=o[0].substr(6,7))&&(a=13)),a>0?(o[0]=o[0].substr(a),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+Ct(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+Ct(e)+o[0]+"}",[n,o[1]];case 10:return e!=gt&&(t=Et(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==gt?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(u=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(r+="\\ "),[r,t=Et(t,i+1)];case 1:return null==(o=At(t=Et(t,e.input.length)))[0]?["{"+Ct(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(u=t.charAt(0))||"_"==u||"/"==u||"|"==u||","==u||1==e.input.length&&e.input.match(/\w/)&&"("!=u?["{"+Ct(e)+"}",t]:[n="{"+Ct(e)+"{"+o[0]+"}}",o[1]]:(o[0]=Lt(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[Ct(e)+"{"+o[0]+"}",o[1]]:["{"+Ct(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=At(t=Et(t,e.input.length)))[0])return["{"+Ct(e)+"}",t];o[0]=Lt(o[0]);var l=At(o[1]);return null==l[0]?["{"+Ct(e)+"}",t]:(l[0]=Lt(l[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+Ct(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=Et(t,e.input.length),[e.output,t];case 6:return t=Et(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:vt++,o=Nt(t=Et(t,e.input.length),!1),vt--;var u="";return"|"==(u=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=Et(t,e.input.length),["{"+Ct(e)+"}",t]}}function $t(t){var e,n,o,i,r;if(n=kt(t=Et(t,0)),i=(r=At(t))[0],3==(e=kt(t=r[1])).ttype&&"/"!=e.input){if((r=At(t=Et(t,e.input.length)))[0]=null==r[0]?"{}":Lt(r[0]),t=r[1],"_"==e.input)if("^"==(o=kt(t)).input){var s=At(t=Et(t,o.input.length));s[0]=Lt(s[0]),t=s[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+s[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=kt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=$t(t))[0]+"}",t=r[1]))}return[i,t]}function Nt(t,e){var n,o,i,r,s="",a=!1;do{o=(i=$t(t=Et(t,0)))[0],3==(n=kt(t=i[1])).ttype&&"/"==n.input?((i=$t(t=Et(t,n.input.length)))[0]=null==i[0]?"{}":Lt(i[0]),t=i[1],o="\\frac{"+(o=Lt(o))+"}",s+=o+="{"+i[0]+"}",n=kt(t)):null!=o&&(s+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==vt)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=s.length;if(l>2&&"{"==s.charAt(0)&&s.indexOf(",")>0){var u=s.charAt(l-2);if(")"==u||"]"==u){var c=s.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var d="",p=[];p.push(0);var h=!0,m=0,f=[];f[0]=[0];var g=0,y=0,w="";for(r=1;l-1>r;r++)s.charAt(r)==c&&m++,s.charAt(r)==u&&0==--m&&","==s.charAt(r+2)&&"{"==s.charAt(r+3)&&(p.push(r+2),f[g=r+2]=[r+2]),"["!=s.charAt(r)&&"("!=s.charAt(r)&&"{"!=s.charAt(r)||y++,"]"!=s.charAt(r)&&")"!=s.charAt(r)&&"}"!=s.charAt(r)||y--,","==s.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:h=!1);p.push(l);var v=-1;if(0==m&&p.length>0&&h)for(r=0;p.length-1>r;r++){if(r>0&&(d+="\\\\"),0==r)if(1==f[p[r]].length)var x=[s.substr(p[r]+7,p[r+1]-p[r]-15)];else{x=[s.substring(p[r]+7,f[p[r]][1])];for(var b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}else if(1==f[p[r]].length)x=[s.substr(p[r]+8,p[r+1]-p[r]-16)];else{for(x=[s.substring(p[r]+8,f[p[r]][1])],b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(w="|"+w),x.splice(b,1)):0==r&&(w="c"+w);v>0&&x.length!=v?h=!1:-1==v&&(v=x.length),d+=x.join("&")}d="\\begin{array}{"+w+"} "+d+"\\end{array}",h&&(s=d)}}}t=Et(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(s+="\\right.",a=!0):(s+=o="\\right"+Ct(n),a=!0)}return vt>0&&!a&&(s+="\\right."),[s,t]}function Tt(t){return vt=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":Nt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=yt.length;for(t=0;e>t;t++)!yt[t].tex||"boolean"==typeof yt[t].notexcopy&&yt[t].notexcopy||yt.push({input:yt[t].tex,tag:yt[t].tag,output:yt[t].output,ttype:yt[t].ttype,acc:yt[t].acc||!1});!function(){var t;for(yt.sort(wt),t=0;yt.length>t;t++)St[t]=yt[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Mt)var Mt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var qt=window.renderMathInElement||void 0;let Ot=0;function Pt(){return!(void 0===Mt||!Mt)}let zt=!1;const Dt="katexCSS";function Ht(t,e){const n=Pt();if("undefined"!=typeof window){if(zt)return n;if(!n)return zt=!0,y.loadStyleSheet(Dt),y.loadScript("katex").then(e=>{if(Mt=S.interopDefault(window[e]),"katex"===t)return y.loadScript("renderMathInElement")}).then(t=>{qt=S.interopDefault(window[t]),"function"==typeof e&&e&&e(qt)}).catch(t=>{}),n}return"function"==typeof e&&e&&e(qt),n}function Bt(t,e){if(Pt()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,s=e.options,a=e.element.ownerDocument;let l="";if(i instanceof Array)i.forEach(t=>{if(""===t)l+="<br>";else{const e=Mt.renderToString(t,s);l+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=Mt.renderToString(i,s);l=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${t}</div>`:`<div title="${o}" class="${n}">${t}</div>`}return e.element.parentNode.outerHTML=l,--Ot,!Ot&&qt&&qt(a.body,s),void t(!0)}setTimeout(()=>{Bt(t,e)},10)}function Rt(t,e,n){return new Promise(o=>{let i;const r=S.createElementMeta("katex",t,!1,t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach(t=>{""!==(t=t.trim())&&(t=n?Tt(t):t),e.push(t)})):e=n?Tt(i):i,e});if(!r)return o(!1);r.cssLink=y.getSrc(!0,Dt),r.input=i,r.options=e,Bt(o,r)})}function _t(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const It=(t={})=>{let e={engine:"katex",displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach(t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Jt(t){let e=0;const n=It(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${_t(t)}([\\s\\S]+?)${_t(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=Tt(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;"katex"===this.config.engine&&o.length&&n.querySelectorAll(":not(code):not(pre)").forEach(t=>{const e=t.textContent;if(e.length>0){const n=o.reduce((t,{test:e,replacer:n})=>t.replace(e,n),e);t.textContent=n}});let i=n.querySelectorAll("code.katex.language-katex");const r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=y.getSrc(!0,Dt);const s=this;function a(t,e){Pt()?(e(n.ownerDocument.body,s.config),t(!0)):setTimeout(()=>{a(t,e)},10)}return new Promise(t=>{Ht(this.config.engine,e=>{a(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=y.getSrc(!0,Dt),S.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return Ot=t.length+e.length,Ht(n.engine),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Rt(t,n,!1))}),e.forEach(t=>{i.push(Rt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Ft={},Wt={};function Vt(t,e){t.forEach(t=>{!function(t,e){const n=S.createElementMeta("Tex",t,!0);if(!n||0===n.data.length)return;const o=Ft[n.hash];if(o)return void t.parentNode.replaceWith(o);let i="";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(i=e[e.length-1])}i.length>0&&window&&window.fetch&&e&&(e.elements=e.elements??[],e.elements.push({type:i,id:n.id}))}(t,e)})}function Ut(){if(!window||!("Kroki"in window))return;const t=window.Kroki;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e=t.config.imageFormat??"svg";t.elements.forEach(({type:n,id:o})=>{const i=document.querySelector("#"+o);if(!i)return;const r=i.dataset.lang,s=i.textContent.trim(),a=S.hashString(r+s),l=Ft[a];if(l)return void i.parentNode.replaceWith(l);if("function"==typeof t.svgRender&&t.svgRender){const o={diagramType:n,imageFormat:e};try{t.svgRender(i.id,s,o).then(t=>{const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Ft[a]=e}).catch(t=>{})}catch(t){}return}const u=`${"https://"+(t.config.serverUrl??"kroki.io")}/${n}/${e}`;try{window.fetch(u,{method:"POST",body:s,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Ft[a]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function Gt(t){return[{type:"output",config:((t={})=>({serverUrl:"kroki.io",imageFormat:"svg",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-kroki-"]');return!!n.length&&(window&&(window.Kroki=Wt),Wt.config={serverUrl:this.config.serverUrl,imageFormat:this.config.imageFormat},Wt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-kroki",code:Ut,once:!0}),Vt(n,Wt),Wt.elements?.length>0&&(o=e,Object.keys(Ft).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Ft[t]})),t);var o}}]}if(void 0===Kt)var Kt=window.Shiki||void 0;function Xt(){return!(void 0===(Kt=window.Shiki)||!Kt)}let Zt,Qt=!1;function Yt(){function t(){let t;function e(t,e){t.content&&(t.content.textContent=e),t.root&&t.root.classList.remove("hidden"),t.timer&&(clearTimeout(t.timer),t.timer=null),t.timer=setTimeout(()=>{t.content&&(t.content.textContent=""),t.root&&t.root.classList.add("hidden"),t.timer=null,t.content=null,t.root=null},5e3)}const n=document.querySelectorAll(".codeblock-container");if(n?.length){!function(e){if(t)return t;const n=e.createElement("div");n.classList.add("select-items","select-theme-items");const o=[];window.Shiki.bundledThemesInfo.forEach(i=>{const r=function(n,o,i){const r=e.createElement("div");r.classList.add("options-item"),r.dataset.theme=o,r.dataset.name=i,r.title=i;const s=e.createElement("span");return s.classList.add("select-item-content"),s.textContent=i,r.appendChild(s),r.addEventListener("click",function(e){const o=e.currentTarget;if(o.classList.add("selected-item"),Array.from(n.children).forEach(function(t){t!==o&&t.classList.remove("selected-item")}),t&&t.container){const e=t.container,n=t.themer,i=t.tools;if(e.dataset.theme=o.dataset.theme,e.dataset.themeName=o.dataset.name,n){const t=P.getLangString("code-theme-prefix");n.dataset.title=t+o.dataset.name}const r=e.dataset.language,s=o.dataset.theme,a=e.querySelector("pre code");if(a){const t=a?.textContent;window.Shiki.codeToHtml(t,{lang:r,theme:s}).then(t=>{a.parentNode.outerHTML=t})}i&&i.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null}n.style="",n.remove(),e.stopPropagation()}),{option:r,content:s}}(n,i.id,i.displayName);n.appendChild(r.option),o.push(r)}),t={options:n,items:o}}(document);for(let o=0;n.length>o;o++){const i=n[o],r=i.querySelector(".codeblock-tools"),s=i.querySelector(".tools-button-copy");s&&s.addEventListener("click",function(){const t=i.querySelector("pre code"),n={root:i.querySelector(".tools-message"),content:i.querySelector(".tools-message-content")},o=t?.textContent;navigator.clipboard.writeText(o).then(function(){e(n,P.getLangString("msg-copy-success"))},function(t){e(n,P.getLangString("msg-copy-failed"))})});const a=i.querySelector(".tools-button-theme");a&&a.addEventListener("click",function(e){if(t){let n;t.container&&t.options&&t.options.remove(),t.container=i,t.themer=a,t.tools=r,t.tools&&t.tools.classList.add("show-theme-options"),t.items.forEach(function(t){i.dataset.theme===t.option.dataset.theme?(n=t.option,t.option.classList.add("selected-item")):t.option.classList.remove("selected-item")});const o=a.getBoundingClientRect(),s=t.container.getBoundingClientRect();t.options.style.top=o.bottom-s.top-1+"px",t.options.style.right=0,t.container.appendChild(t.options),t.options.classList.remove("hidden"),n&&n.scrollIntoView({container:"nearest"}),e.stopPropagation()}})}document.addEventListener("click",function(){t?.options?.parentNode&&(t.options.style="",t.options.remove(),t.tools&&t.tools.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null)},!1)}}window&&"Shiki"in window?t():import("https://esm.sh/shiki@3.21.0").then(e=>{window.Shiki="default"in e&&e.default?e.default:e,t()})}function te(t,e,n){if(Xt()){const o=e.textContent.trim(),i=e.classList[0],r=e.ownerDocument,s=S.parseLangAttr(e.dataset.lang),a=s?.theme?s.theme:n.theme;let l=a;for(let t=0;Kt.bundledThemesInfo.length>t;t++)if(Kt.bundledThemesInfo[t].id===l){l=Kt.bundledThemesInfo[t].displayName;break}let u=i;for(let t=0;Kt.bundledLanguagesInfo.length>t;t++)if(Kt.bundledLanguagesInfo[t].id===u){u=Kt.bundledLanguagesInfo[t].name;break}return void Kt.codeToHtml(o,{lang:i,theme:a}).then(n=>{const o=r.createElement("div");o.classList.add("codeblock-container"),o.dataset.theme=a,o.dataset.themeName=l,o.dataset.language=i,o.dataset.langName=u;const s=function(t,e,n){const o=P.getLangString("code-copy"),i=P.getLangString("code-theme-prefix"),r=P.getLangString("code-lang-prefix"),s=t.createElement("div");return s.classList.add("codeblock-tools","toolbar-hover"),s.innerHTML=`<div class="tools-message hidden">\n <div class="tools-icon tools-message-icon">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-info"/>\n </svg>\n </div>\n <span class="tools-message-content"></span>\n </div>\n <div class="tools-icon tools-button-lang" rel="tooltip" data-title="${r}${e}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-language"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-theme" rel="tooltip" data-title="${i}${n}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-theme"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-copy" rel="tooltip" data-title="${o}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-copy"/>\n </svg>\n </div>`,s}(r,u,l);o.appendChild(s);const c=function(t){return Zt||(Zt=t.createElement("div"),Zt)}(r);c.innerHTML=n;const d=c.children[0];d.remove(),o.appendChild(d),e.parentNode.replaceWith(o),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{te(t,e,n)},100)}function ee(t,e){return function(){const t=Xt();if("undefined"!=typeof window){if(Qt)return t;t||(Qt=!0,y.loadScript("Shiki",!1,"local"===y.getCDN()?"link":"import").then(t=>{Kt=S.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{te(n,t,e)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function ne(t){return[{type:"output",config:((t={})=>({theme:"ayu-dark",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-"]');if(!n.length)return!1;t.scripts.push({id:"shiki-ext",code:Yt,module:!0});return t.extras.push('<div id="code-svgs" class="none hidden"><svg xmlns="http://www.w3.org/2000/svg"><symbol id="svg-icon-info" viewBox="64 64 896 896" fill="currentColor"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"></path></symbol><symbol id="svg-icon-language" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m0-938.666667C276.352 85.333333 85.333333 276.352 85.333333 512s191.018667 426.666667 426.666667 426.666667 426.666667-191.018667 426.666667-426.666667A426.666667 426.666667 0 0 0 512 85.333333z m0 682.666667a42.666667 42.666667 0 0 1-42.368-42.666667v-255.573333a42.368 42.368 0 1 1 84.693333 0V725.333333A42.410667 42.410667 0 0 1 512 768z m0-426.666667a42.325333 42.325333 0 1 1-0.085333-84.650666A42.325333 42.325333 0 0 1 512 341.333333z m42.325333-42.666666v0z" fill="currentColor"></path></symbol><symbol id="svg-icon-theme" viewBox="0 0 1024 1024"><path fill="currentColor" d="M42.666667 512C42.666667 251.733333 251.733333 42.666667 512 42.666667s469.333333 187.733333 469.333333 422.4c0 72.533333-29.866667 145.066667-81.066666 200.533333-51.2 51.2-123.733333 81.066667-200.533334 81.066667h-85.333333c-12.8 0-25.6 12.8-29.866667 25.6 0 8.533333 4.266667 17.066667 8.533334 21.333333 21.333333 21.333333 29.866667 46.933333 29.866666 76.8 0 64-51.2 110.933333-115.2 115.2C251.733333 981.333333 42.666667 772.266667 42.666667 512z m85.333333 0c0 213.333333 170.666667 384 384 384 17.066667 0 29.866667-12.8 29.866667-29.866667 0-4.266667 0-8.533333-4.266667-12.8l-4.266667-4.266666c-17.066667-21.333333-25.6-46.933333-29.866666-76.8 0-64 51.2-110.933333 115.2-110.933334h85.333333c51.2 0 102.4-21.333333 136.533333-55.466666 38.4-38.4 55.466667-85.333333 55.466667-136.533334 0-187.733333-170.666667-341.333333-384-341.333333s-384 170.666667-384 384z m593.066667 21.333333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-17.066667 0-38.4-8.533333-51.2-21.333334z m-520.533334 0c-21.333333-21.333333-25.6-51.2-17.066666-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666667 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-21.333333 0-38.4-8.533333-51.2-21.333334z m379.733334-187.733333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533333 72.533334 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266666-21.333333 0-38.4-8.533333-51.2-21.333333zM341.333333 345.6c-17.066667-21.333333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533334 72.533334 0 29.866667-17.066667 55.466667-42.666667 64l-29.866667 4.266666c-17.066667 0-34.133333-8.533333-51.2-21.333333z"></path></symbol><symbol id="svg-icon-copy" viewBox="0 0 16 16"><path d="M7 5h2a3 3 0 0 0 3-3 2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2 3 3 0 0 0 3 3zM6 2a2 2 0 1 1 4 0 1 1 0 0 1-1 1H7a1 1 0 0 1-1-1z" fill-rule="evenodd"></path></symbol></svg></div>'),ee(n,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown zenuml extension can only be used in browser environment!");const oe="zenuml";if(void 0===ie)var ie=window.zenuml||void 0;function re(){return!(void 0===ie||!ie)}let se=!1;function ae(t,e){if(re()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,l.classList.remove("zenuml"),a.theme||(a.theme="theme-blue");return new ie(l).render(i,a),r.replaceWith(l),void t(!0)}setTimeout(()=>{ae(t,e)},10)}function le(t){return new Promise(e=>{const n=S.createElementMeta(oe,t);if(!n||0===n.data.length)return e(!1);ae(e,n)})}function ue(t,e){return function(){const t=re();if("undefined"!=typeof window){if(se)return t;if(!t)return se=!0,y.loadScript(oe).then(t=>{ie=S.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(le(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown plotly extension can only be used in browser environment!");const ce="Plotly";if(void 0===de)var de=window.Plotly||void 0;function pe(){return!(void 0===de||!de)}let he=!1;function me(t,e,n){if(pe()){const o=e.id,i=e.className,r=e.data,s=e.element.parentNode,a=e.element,l=a.ownerDocument.createElement("div");return l.id=o,a.style.cssText.length>0&&(l.style.cssText=a.style.cssText),l.className=i,s.replaceWith(l),n.push({id:o,code:`(function(){\n try {\n const it = document.querySelector('#${o}');\n if (!it) return;\n ${r}\n }catch(e){\n console.error('plotly script run failed: ', e.toString());\n }\n})();`,host:l}),void t(!0)}setTimeout(()=>{me(t,e,n)},10)}function fe(t,e){return new Promise(n=>{const o=S.createElementMeta(ce,t);if(!o||0===o.data.length)return n(!1);me(n,o,e)})}function ge(t,e){!function(){const t=pe();if("undefined"!=typeof window){if(he)return t;if(!t)return he=!0,y.loadScript(ce).then(t=>{de=S.interopDefault(window[t])}).catch(t=>{}),t}}();const n={inner:[]};return e.push(n),new Promise(e=>{const o=[];t.forEach(t=>{o.push(fe(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const ye={},we={};function ve(t,e){t.forEach(t=>{!function(t,e){const n=S.createElementMeta("Gnuplot",t,!0);if(!n||0===n.data.length)return;const o=we[n.hash];if(o)return void t.parentNode.replaceWith(o);e.elements=e.elements??[];const i={id:n.id};n.lang&&(i.lang=n.lang),n.hash&&(i.hash=n.hash),e.elements.push(i)}(t,e)})}function xe(){if(!window||!("Gnuplot"in window))return;const t=window.Gnuplot;t.elements&&Array.isArray(t.elements)&&0!==t.elements.length&&"function"==typeof t.svgRender&&t.svgRender&&(t.elements.forEach(({id:e,hash:n})=>{const o=document.querySelector("#"+e);if(!o)return;let i=we[n];if(i)o.parentNode.replaceWith(i);else try{const e=`set terminal svg\n${o.textContent.trim()}\n`;t.svgRender(o.id,e).then(t=>{i=document.createElement("div"),i.id=o.id,i.className=o.className,o.style.cssText.length>0&&(i.style=o.style.cssText),i.innerHTML=t,o.parentNode.replaceWith(i),we[n]=i}).catch(t=>{})}catch(t){}}),delete t.elements)}function be(t){return[{type:"output",config:((t={})=>({svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.gnuplot.language-gnuplot");return!!n.length&&(window&&(window.Gnuplot=ye),ye.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-gnuplot",code:xe,once:!0}),ve(n,ye),ye.elements?.length>0&&(o=e,Object.keys(we).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete we[t]})),t);var o}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===Se)var Se=window.MathJax||void 0;let Ee=0;function je(){return!(void 0===Se||!Se)}let ke=!1;function Le(t){const e=je();if("undefined"!=typeof window){if(ke)return e;e||(ke=!0,window.MathJax={tex:{inlineMath:{"[+]":[["\\$","\\$"]]},displayMath:{"[+]":[["@@","@@"]]}},svg:{fontCache:"global"},startup:{pageReady:()=>window.MathJax.startup.defaultPageReady().then(()=>{})}},t?S.deepMerge(window.MathJax,t):window.MathJaxConfig&&S.deepMerge(window.MathJax,window.MathJaxConfig),y.loadScript("MathJax",!0).then(t=>{Se=S.interopDefault(window[t])}).catch(t=>{}))}return e}function Ce(t,e){if(je()){const n=e.id,o=e.className,i=e.cssLink??"",r=i.length>0?" css-mathjax":"",s=e.element,a=s.ownerDocument;return void Se.tex2svgPromise(e.data,e.options).then(e=>{const l=a.createElement("div");l.id=n,l.className=`${o}${r}`,i.length>0&&(l.dataset.css=i),s.style.cssText.length>0&&(l.style=s.style.cssText),l.appendChild(e),s.parentNode.replaceWith(l),--Ee,Ee||Se.startup.document.clear(),t(!0)}).catch(e=>{--Ee,Ee||Se.startup.document.clear(),t(!1)})}setTimeout(()=>{Ce(t,e)},10)}function Ae(t,e){return new Promise(n=>{const o=S.createElementMeta("MathJax",t);if(!o||0===o.data.length)return n(!1);o.options=Object.assign(e??{},o.options??{}),Ce(n,o)})}const $e=(t={})=>{let e={engine:"mathjax",delimiters:[],mathJax:{},conversion:{},...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach(t=>{t.display="inline"!==o,t.asciimath=!0}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Ne(t){if(!je())return void setTimeout(()=>{Ne(t)},10);const e=document.querySelector(".showdowns");e&&(window.MathJax.startup.document&&window.MathJax.startup.document.clearMathItemsWithin([e]),window.MathJax.texReset(),window.MathJax.typesetPromise().then(()=>{window.MathJax.startup.document.clear(),"function"==typeof t&&t&&t(window.MathJax)}).catch(t=>{}))}function Te(t){const e=$e(t);return[{type:"output",config:e,filter:function(t){const n=t.wrapper;if(!n)return!1;this.config.mathJax=this.config.mathJax??{};const o=this.config.mathJax;if(e.delimiters?.length>0){const t={inlineMath:{},displayMath:{}};e.delimiters.forEach(e=>{e.display?t.displayMath["[+]"]=(t.displayMath["[+]"]??[]).concat([[e.left,e.right]]):t.inlineMath["[+]"]=(t.inlineMath["[+]"]??[]).concat([[e.left,e.right]])}),o.tex||(o.tex={inlineMath:{},displayMath:{}}),o.tex.inlineMath=o.tex.inlineMath??{},o.tex.displayMath=o.tex.displayMath??{},0==(o.tex.inlineMath["[+]"]??[]).length&&(o.tex.inlineMath["[+]"]=t.inlineMath["[+]"]),0==(o.tex.displayMath["[+]"]??[]).length&&(o.tex.displayMath["[+]"]=t.displayMath["[+]"])}let i=!1;if("mathjax"===this.config.engine){const e=n.querySelectorAll(":not(code):not(pre)");if(e.length>0)for(let n=0;e.length>n;n++){if(e[n].textContent.match(/(?:@@|\$\$|\\\$|\\\(|\\\[|\\begin\{.*?})/)){t.scripts.push({id:"showdown-mathjax",code:Ne,once:!0}),Le(this.config.mathJax),i=!0;break}}}const r=n.querySelectorAll("code.mathjax.language-mathjax,code.math.language-math");return r.length?function(t,e){return Ee=t.length,Le(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(Ae(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(r,this.config).then(()=>t):!!i&&t}}]}const Me="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Me} extension can only be used in browser environment!`);if(void 0===qe)var qe=window.echarts||void 0;function Oe(){return!!qe}let Pe=!1;function ze(t,e){if(Oe()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout(()=>{ze(t,e)},20)}function De(t,e,n){const o=S.createElementMeta(Me,t);if(!o||0===o.data.length)return Promise.resolve(!1);n={...n,ssr:!1,width:o.lang.width,height:o.lang.height};const i={id:o.container,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o){let i=qe.getInstanceByDom(o);if(i||(o.innerHTML=""),i=qe.init(o,null,e),t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const e=n(`(function(){${t.data}; return option;})();`);i.setOption(e)}else{const e=JSON.parse(t.data);i.setOption(e)}}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ${t.data}\n chart.setOption(option);\n }\n }`:`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ${t.data};\n chart.setOption(option);\n }\n }`,n})(o,n),host:"#"+o.container};return e.push(i),new Promise(t=>{ze(t,o)})}function He(t,e,n){const o={outer:[{name:Me,src:y.getSrc(!1,Me,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Oe();if("undefined"!=typeof window){if(Pe)return t;t||(Pe=!0,y.loadScript(Me).then(t=>{qe=S.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(De(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function Be(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Me}.language-${Me}`);return!!n.length&&He(n,t.scripts,this.config).then(()=>t)}}]}const Re="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===_e)var _e=window.mermaid||void 0;function Ie(){return!(void 0===_e||!_e)}let Je=!1;function Fe(t,e){if(Ie()){const n=e.className,o=e.element.parentNode,i=e.element;return void _e.render(e.id,e.data).then(e=>{let r=i.style.cssText;r.length>0&&(r=` style="${r}"`),o.outerHTML=`<div class="${n}"${r}>${e.svg}</div>`,t(!0)})}setTimeout(()=>{Fe(t,e)},10)}function We(t){return new Promise(e=>{const n=S.createElementMeta(Re,t);if(!n||0===n.data.length)return e(!1);Fe(e,n)})}function Ve(t,e){return function(t){const e=Ie();if("undefined"!=typeof window){if(Je)return e;if(!e)return Je=!0,y.loadScript(Re).then(e=>{(_e=S.interopDefault(window[e])).initialize(t)}),e}_e.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(We(t))}),Promise.all(n).then(()=>{e(!0)})})}function Ue(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,s="";return s+=Ge(63&t>>2),s+=Ge(63&o),s+=Ge(63&i),s+=Ge(63&r)}function Ge(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function Ke(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function Xe(t){var e=Ke(t[0]),n=Ke(t[1]),o=Ke(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&Ke(t[3])]}function Ze(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Ue(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Ue(t.charCodeAt(n),0,0):Ue(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function Qe(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=Xe(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const Ye={encodeuml:function(t){const e="@startuml",n="@enduml";return Ze(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return Qe(t)}},tn="svg",en={};let nn=0;function on(t,e){return new Promise(n=>{const o=[],i=[];t.forEach(t=>{const n=function(t,e){const n=S.createElementMeta("PlantUML",t,!0);if(!n||0===n.data.length)return;const o=en[n.hash];if(!o)return o=>{const i=e.imageFormat;if("svg"===i){if("function"==typeof e.svgRender&&e.svgRender){try{e.svgRender(n.id,n.data,{count:nn}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),en[n.hash]=i,o(!0)})}catch(t){o(!1)}return}if(window&&window.fetch){const r=window.location&&window.location.protocol,s=i!==tn?"."+i:"",a=`${("http:"===r||"https:"===r?"//":"https://")+e.umlWebSite}/${i}/${Ye.encodeuml(n.data)}${s}`;try{window.fetch(a).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),en[n.hash]=i,o(!0)}).catch(t=>{o(!1)})}catch(t){o(!1)}return}return void o(!1)}let r=t.style.cssText;r.length>0&&(r=` style="${r}"`);const s=window&&window.location.protocol,a=("http:"===s||"https:"===s?"//":"https://")+e.umlWebSite,l=i!==tn?"."+i:"",u=Ye.encodeuml(code);return t.parentNode.outerHTML=`<div id="${n.id}" class="${n.className}"${r}><img src='${a}/${i}/${u}${l}' alt=''></img></div>`,o(!0)};t.parentNode.replaceWith(o)}(t,e);n&&i.push(n)}),nn=i.length,i.forEach(t=>{o.push(new Promise(t))}),Promise.all(o).then(()=>{n(!0)})})}function rn(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:tn,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&on(n,this.config).then(()=>{var n;return n=e,Object.keys(en).forEach(t=>{n.querySelector(`[id*="-${t}"]`)||delete en[t]}),t})}}]}const sn="railroad",an="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let ln=!1;function un(){return ln}let cn,dn=!1;function pn(t,e){if(un()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),s=e.element.ownerDocument;let a=e.element.style.cssText;return a.length>0&&(a=` style="${a}"`),e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"${a}></div>`:`<div id="${n}" class="${o}"${a}></div>`,r.addTo(s.getElementById(n)),t(!0)}setTimeout(()=>{pn(t,e)},10)}function hn(t){return new Promise(e=>{const n=S.createElementMeta(sn,t);if(!n||0===n.data.length)return e(!1);n.cssLink=y.getSrc(!0,an),pn(e,n)})}function mn(t){return function(){const t=un();if("undefined"!=typeof window){if(dn)return t;t||(dn=!0,y.loadStyleSheet(an),y.loadScript(sn).then(()=>{ln=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(hn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===fn)var fn=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(cn=window.Diagram,window.Diagram.Signal))var gn=window.Diagram;const yn=["simple","hand"];if(void 0===gn&&"undefined"!=typeof window)gn=window.SequenceJS;function wn(){return!!fn}function vn(){return wn()&&!!gn}let xn=!1;const bn="sequenceCSS";function Sn(t){const e=t.dataset.lang,n=e?JSON.parse(e):null;let o="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?o="diagram-center":"right"===n.align&&(o="diagram-right"))}const i=function(){const t=vn();if("undefined"!=typeof window){if(xn)return t;t||(xn=!0,y.loadStyleSheet(bn),y.loadScript("WebFont").then(()=>wn()?"Raphael":y.loadScript("Raphael")).then(t=>(fn=S.interopDefault(window[t]),y.loadScript("Snap"))).then(()=>y.loadScript("underscore")).then(()=>(!cn&&window.Diagram&&(cn=window.Diagram),y.loadScript("sequence"))).then(()=>{gn=window.Diagram,window.SequenceJS=gn,cn&&(window.Diagram=cn)}))}return t}(),r=y.getSrc(!0,bn),s=t.textContent.trim(),a="js-sequence"+(o?" ":"")+o,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=l,t.classList.remove("language-sequence"),r&&(t.className=t.className+(t.className?" ":"")+"css-sequence",t.dataset.css=r),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(l).then(t=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t,className:a,data:s,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:a,data:s,langattr:e,cssLink:r}}))}function En(t){if(vn()){const e=t.id,n=t.className,o=t.data;if(!o||0===o.length)return;const i=t.cssLink;let r="hand";const s=t.langattr;if(s){const t=JSON.parse(s);t&&t.theme&&-1!=yn.indexOf(t.theme)&&(r=t.theme)}let a=window.document.getElementById(e);if(a){a.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,a=window.document.getElementById(e);return void gn.parse(o).drawSVG(a||e,{theme:r})}}setTimeout(()=>{En(t)},10)}function jn(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&En(t.detail)})),this.config={cssLink:y.getSrc(!0,bn)}),function(t){return!!t.length&&(t.forEach(t=>{Sn(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&S.addCssLink(n,y.getSrc(!0,bn),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===kn)var kn=window.WaveDrom||void 0;let Ln=0,Cn=0;function An(){return!!kn}let $n=!1;function Nn(t,e){if(An()){const n=e.index,o=e.id,i=e.className,r=e.data;if(!r||0===r.length)return t(!1);let s=e.element;return s.parentNode.outerHTML=S.renderCacheElement(s.ownerDocument,o+n,i,t=>{const e=window.eval(`(${r})`);kn.RenderWaveForm(n,e,o);const i=document.getElementById("WaveDrom_Display_"+n);if(t!=i)for(;i.childNodes.length;)t.appendChild(i.removeChild(i.childNodes[0]))}),t(!0)}setTimeout(()=>{Nn(t,e)},10)}function Tn(t){return new Promise(e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return e(!1);o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim();if(0===r.length)return e(!1);const s=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,a=Cn;++Cn,--Ln,Ln||(Cn=0);const l="WaveDrom_Display_";t.id=l+a;Nn(e,{element:t,index:a,id:l,className:s,data:r})})}function Mn(t,e){return function(t){const e=An();$n||e||($n=!0,"undefined"!=typeof window&&y.loadScript({WaveDromSkin:t}).then(()=>y.loadScript("WaveDrom")).then(t=>{kn=S.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];Ln=t.length,t.forEach(t=>{n.push(Tn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===qn)var qn=window.Raphael||void 0;if(void 0===On)var On=window.flowchart||void 0;function Pn(){return!(void 0===qn||!qn||void 0===On||!On)}let zn=!1;function Dn(){const t=Pn();if("undefined"!=typeof window){if(zn)return t;if(!t){if(zn=!0,!qn)return y.loadScript("Raphael").then(t=>(qn=S.interopDefault(window[t]),y.loadScript("flowchart"))).then(t=>{On=S.interopDefault(window[t])}),t;y.loadScript("flowchart").then(t=>{On=S.interopDefault(window[t])})}}return t}function Hn(t,e){if(Pn()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.options;return e.element.parentNode.outerHTML=S.renderCacheElement(e.element.ownerDocument,n,o,t=>{On.parse(i).drawSVG(t,r)}),void t(!0)}setTimeout(()=>{Hn(t,e)},10)}function Bn(t,e){return new Promise(n=>{const o=S.createElementMeta("flowchart",t);if(!o||0===o.data.length)return n(!1);o.options=e,Hn(n,o)})}function Rn(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return Dn(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Bn(t,n))}),e.forEach(t=>{i.push(Bn(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const _n=new class{events={};on(t,e){this.events[t]||(this.events[t]=new Set),this.events[t].add(e)}off(t,e){this.events[t]?.delete(e)}emit(t,...e){let n=0;const o=this.events[t];return o&&o.forEach(t=>{t(...e),n++}),n}},In="resetImagePath";function Jn(t){return new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=t.dataset.src;if(!n)return e(!1);const o="image-"+Date.now()+Math.floor(1e4*Math.random()),i=o=>{o||(o=n),t.src=o,delete t.dataset.src,e(!0)};_n.emit(In,o,n,i)||i(n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}const Fn={};Fn[In]=In;const Wn=(t={})=>({flavor:"github",mathEngine:"mathjax",...t}),Vn=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},Un=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.mathjax||{},s=e&&e.tex||{},l=e&&e.katex||{},u=e&&e.kroki||{},c=e&&e.vega||{},d=e&&e.shiki||{},p=e&&e.gnuplot||{},h={"showdown-toc":Vn("showdown-toc",R),"showdown-image":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("img.inline-image");return!!n.length&&Jn(n).then(()=>t)}}],"showdown-plantuml":rn(i),"showdown-mermaid":(f=o,[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(f),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ve(n,this.config).then(()=>t)}}]),"showdown-mathjax":Te(r),"showdown-tex":Y(s),"showdown-katex":Jt(l),"showdown-kroki":Gt(u),"showdown-flowchart":Rn(),"showdown-viz":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&U(n).then(()=>t)}}],"showdown-vega":at(c),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(m),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(a("Begin render wavedrom elements."),Mn(n,this.config.skin).then(()=>(a("End render wavedrom elements."),t)))}}],"showdown-railroad":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:y.getSrc(!0,an)},S.addCssLink(t,this.config.cssLink,"css-railroad"),mn(n).then(()=>t))}}],"showdown-abc":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${E}.language-${E}`);return!!n.length&&(this.config={cssLink:y.getSrc(!0,j)},S.addCssLink(t,this.config.cssLink,"css-abc"),M(n,t.scripts).then(()=>t))}}],"showdown-echarts":Be(),"showdown-plotly":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plotly.language-plotly");return!!n.length&&ge(n,t.scripts).then(()=>t)}}],"showdown-gnuplot":be(p),"showdown-antv":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.infographic.language-infographic");return!!n.length&&ht(n).then(()=>t)}}],"showdown-zenuml":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.zenuml.language-zenuml");return!!n.length&&ue(n).then(()=>t)}}],"showdown-sequence":Vn("showdown-sequence",jn),...n,"showdown-shiki":ne(d),"showdow-css":[{type:"output",filter:function(t){const e="css-ex-";S.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+S.hashString(o);S.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=y.getUrl(o),S.loadStylesheet(o,e+i)}}catch{}}),t)}}]};var m,f;let g=[];for(let e in h)h.hasOwnProperty(e)&&(t.asyncExtension(e,h[e]),g.push(e));return g},Gn=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.appendChild(r)),!0},Kn=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.insertBefore(r,t.children[0])),!0};function Xn(t,e,n){return new Promise((o,i)=>{t&&e&&"undefined"!=typeof document||i("Args is invaild!");const r=t.toLowerCase(),s="script-"+r;let a=document.getElementById(s);if(a)return o(t);const l=document.head||document.getElementsByTagName("head")[0];if(a=document.createElement("script"),a.id=s,n&&(a.type="module","string"==typeof n&&"import"===n))return a.textContent=`import * as ${r} from '${e}';\nif (!('${nativeName}' in window)) {\n if ('default' in ${r} && ${r}['default']) {\n window['${nativeName}'] = ${r}['default']\n } else {\n window['${nativeName}'] = ${r};\n }\n}`,l.appendChild(a),o(t);a.src=e,a.onload=()=>{o(t)},l.appendChild(a)})}const Zn=function(e,n,o){let i=n;if(e.host&&(i="string"==typeof e.host?document.querySelector(e.host):e.host),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){const t=e.code;return o?(o.then(()=>{t()}),!0):(t(),!0)}return o?(o.then(()=>{Gn(i,e.id,e.code,e.module)}),!0):Gn(i,e.id,e.code,e.module)}if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){const t=e.code;o?o.then(()=>{t()}):t()}else o?o.then(()=>{Kn(i,e.id,e.code,e.module)}):Kn(i,e.id,e.code,e.module);if(e.inner.length>0)for(let t=0;e.inner.length>t;++t){const n=e.inner[t];if(!n.code)continue;if("function"==typeof n.code){const t=n.code;o?o.then(()=>{t()}):t();continue}let r=i;n.host&&(r="string"==typeof n.host?document.querySelector(n.host):n.host),o?o.then(()=>{Gn(r,n.id,n.code,n.module)}):Gn(r,n.id,n.code,n.module)}return!0},Qn=["github","ghost","vanilla","original","allon"],Yn=["mathjax","katex"],to={showdown:t,converter:null,eventBus:_n,defaultOptions:{showdown:Wn(),toc:{},plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},mathjax:{},katex:{},kroki:{},vega:{theme:"vox"},shiki:{}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},toc:{},plantuml:{},mermaid:{},mathjax:{},katex:{},kroki:{},vega:{},shiki:{}})},onEvent:(t,e)=>{Fn[t]&&_n.on(Fn[t],e)},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},addOptions:function(t){for(const e in t)"flavor"!==e&&"mathEngine"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n,o){"string"==typeof t&&t&&y.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===Qn.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===Yn.indexOf(t)&&(t="mathjax"),this.defaultOptions.showdown.mathEngine=t,this.setExtensionOptions("katex",{engine:t}),this.setExtensionOptions("mathjax",{engine:t}))},setLanuageTheme:function(t){this.initDefaultOptions(),t&&(this.defaultOptions.shiki.theme=t,this.setExtensionOptions("shiki",{theme:t}))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.setMathEngine(this.defaultOptions.showdown.mathEngine),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setExtensionOptions:function(e,n){if(!n||"object"!=typeof n)return!1;let o=((e,n)=>{let o=null;try{o=t.asyncExtension(e)}catch{}return o||n})(e="showdown-"+e);if(!o&&(o=Vn(e),!o))return!1;if(!o.length)return!1;for(let t=0;o.length>t;t++){const e=o[t];if(e&&"output"===e.type&&e.config)return b(e.config,n),!0}return!1},setPlantumlOptions:function(t){return this.setExtensionOptions("plantuml",t)},setMermaidOptions:function(t){return this.setExtensionOptions("mermaid",t)},setKatexOptions:function(t){return this.setExtensionOptions("katex",t)},setKrokiOptions:function(t){return this.setExtensionOptions("kroki",t)},setVegaOptions:function(t){return this.setExtensionOptions("vega",t)},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Wn(this.defaultOptions&&this.defaultOptions.showdown||{});this.setFlavor(t.flavor),this.setMathEngine(t.mathEngine),this.addOptions(t)}if(t.hasOwnProperty("extension")&&t.extension)for(let[t,e]in this.defaultOptions)"showdown"!==t&&this.setExtensionOptions(t,e)}}else{const e=Wn(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":R(e.toc),"showdown-image":[{type:"listener",listeners:{"images.after":(t,e)=>e.replace(/!\[\[([^\[\]]*)\]\](?:\{([^\{\}]*)\})?/gm,(t,e,n)=>(n||(n=""),`<img class="inline-image" data-src="${e}" ${n}/>`))}}],"showdown-align":mt(),"showdown-footnotes":[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`)},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,(t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`)},{type:"lang",filter:t=>t.replace(/([^\\])\[\^([\d\w]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}],"showdown-container":[{type:"lang",filter:(t,e)=>t.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,function(t,n,o,i,r){if(o){let t=o.split("-");t.length>1?t.forEach(function(t,e,n){e>0&&(n[e]=n[e-1]+"-"+t)}):t.unshift("container"),o=t.join(" ")}return r&&(r=e.makeHtml(r)),`<div class="showdown-container ${o}">${i=i?`<p class="container-title">${i}</p>`:""}${r}</div>`})}],"showdown-sequence":jn(),...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(this.defaultOptions,this.defaultExtensions),o=Un(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.setMathEngine(e.mathEngine),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="",i="html";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content;"dom"===e.output&&(i="dom")}else o=e;if(this.converter&&o){function r(t){return new Promise(e=>(t.cssLinks&&Array.isArray(t.cssLinks)&&(t.cssTypes={css:{}},t.cssLinks.forEach(e=>"css-abc"===e.id?(t.cssTypes.hasAbc=!0,void(t.cssTypes.css.abc=e.link)):"css-katex"===e.id?(t.cssTypes.hasKatex=!0,void(t.cssTypes.css.katex=e.link)):"css-railroad"===e.id?(t.cssTypes.hasRailroad=!0,void(t.cssTypes.css.railroad=e.link)):void("css-sequence"===e.id&&(t.cssTypes.hasSequence=!0,t.cssTypes.css.sequence=e.link))),"function"==typeof n&&n&&n(t.cssTypes)),e(t)))}return this.converter.asyncMakeHtml(o,r).then(e=>{if("string"!=typeof e.html){if("undefined"!=typeof document&&"dom"===i){let n=[e.html];if(e.extras){let o="",i=e.extras;t.helper.isArray(i)||(i=[i]);for(let t=0;i.length>t;++t)"string"==typeof i[t]?o+=i[t]:n.push(i[t]);if(o.length>0){const t=document.createElement("div");t.innerHTML=o,n.push(...t.childNodes),t.replaceChildren()}}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}}o=e.html.outerHTML}else o=e.html;if(e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)o+="string"==typeof n[t]?n[t]:n.outerHTML}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}})}return Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise((o,i)=>{"string"==typeof n&&(n=document.querySelector(n));for(let o=0;e.length>o;++o){const r=e[o];if(r.outer){t.helper.isArray(r.outer)||(r.outer=[r.outer]);let e=r.outer[0],o=Xn(e.name,e.src,e.module);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>Xn(e.name,e.src,e.module));Zn(r,n,o);continue}if(!Zn(r,n))return i("Args is invaild!")}o(!0)})},zDecode:function(t){return""+e.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return e.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=to;
|
|
6
|
+
"use strict";var t=require("showdown"),e=require("save-svg-as-png"),n=require("zlib");t.ConverterExtObj=function(e,n){let o=[],i=e;function r(e,n){if(n=n||null,t.helper.isString(e)&&(n=t.helper.stdExtName(e),e=t.asyncExtension(n),t.helper.isUndefined(e)))throw Error('Extension "'+n+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),t.helper.isArray(e)||(e=[e]),t.validateExtension(e))for(var i=0;e.length>i;++i)if("output"===e[i].type)o.push(e[i])}n&&t.helper.forEach(n,r),this.addAsyncExtension=function(t,e){r(t,e=e||null)},this.removeAsyncExtension=function(e){t.helper.isArray(e)||(e=[e]);for(var n=0;e.length>n;++n){const t=e[n];for(var i=0;o.length>i;++i)o[i]===t&&o.splice(i,1)}},this.getAsyncExtensions=function(){return o},this.getCurrFlavor=function(){return i},this.setCurrFlavor=function(t){i=t}},t.Converter.prototype.initConvertExtObj=function(e,n){return this.extObj=new t.ConverterExtObj(e,n),this.resetOptions=function(e){e=e||{};const n=t.getOptions();let o=this.getOptions();for(var i in n)n.hasOwnProperty(i)&&(o[i]=n[i]);if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r])},this.setFlavor=function(e){let n=t.getFlavorOptions(e);if(t.helper.isUndefined(n))return;this.extObj.setCurrFlavor(e);let o=t.getDefaultOptions(!0);for(var i in o)o.hasOwnProperty(i)&&(this.getOptions()[i]=o[i]);for(var i in n)n.hasOwnProperty(i)&&(this.getOptions()[i]=n[i])},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(t,e){this.extObj.addAsyncExtension(t,e)},this.removeAsyncExtension=function(t){this.extObj.removeAsyncExtension(t)},this.removeExtension=function(e){t.helper.isArray(e)||(e=[e]);const n=this.getAllExtensions();let o=n.language,i=n.output;for(var r=0;e.length>r;++r){const t=e[r];for(var s=0;o.length>s;++s)o[s]===t&&o.splice(s,1);for(var a=0;i.length>a;++a)i[a]===t&&i.splice(a,1)}},this.asyncMakeHtml=function(t,e){const n=`<div class='showdowns'>${this.makeHtml(t)}</div>`,o=this.extObj.getAsyncExtensions();if(!o.length)return Promise.resolve({html:n});var i={outputs:o,converter:this};const r=(new DOMParser).parseFromString(n,"text/html"),s=void 0!==r.body?r.body:r,a=s.firstChild,l=this.getOptions();let c=Promise.resolve({wrapper:a,options:l,globals:i,scripts:[],extras:[],symbols:[],cssLinks:[]});return o.forEach(function(t){c=c.then(e=>{const n=t.filter(e);return n||e})}),c.then(t=>{if(t.symbols.length>0){const e=`<div id="global-showdowns-svgs" class="none hidden"><svg xmlns="http://www.w3.org/2000/svg">${t.symbols.join("")}</svg></div>`;t.extras.unshift(e)}if("function"==typeof e&&e){const n=e(t);if(n instanceof Promise)return n.then(t=>(s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return s.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}})},this},t.subParser("githubCodeBlocks",function(e,n,o){return n.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,n,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,i,r,s,a){var l=n.omitExtraWLInCodeBlocks?"":"\n";return a=t.subParser("encodeCode")(a,n,o),a="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(s?` data-lang='${s}'`:"")+">"+(a=(a=(a=t.subParser("detab")(a,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",a=t.subParser("hashBlock")(a,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,n,o)):e}),t.subParser("tables",function(e,n,o){if(!n.tables)return e;function i(t){return/^:[ \t]*--*$/.test(t)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(t)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(t)?' style="text-align:center;"':""}function r(e,i){var r="";return e=e.trim(),(n.tablesHeaderId||n.tableHeaderId)&&(r=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+r+i+">"+(e=t.subParser("spanGamut")(e,n,o))+"</th>\n"}function s(e,i,r,s,a){if(n.tablesMerge){var l=function(t,e,o,i){if(i){if(!n.tablesRowspan||"^^"!==i||!e)return;for(var r=e-1;r>=0;--r)if(t[r][o]){if("^^"!==t[r][o])return t[r][o]=t[r][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i;if(0===r)return t[r][o]='<td rowspan="'+(e-r+1)+'"></td>\n',i}else for(var s=o-1;s>=0;-s){if(t[r+1][s]&&"^^"!==t[r+1][s])return;if(t[r][s]){if(!t[r+1][s])return;return t[r][s]=t[r][s].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,n,o){return n+' rowspan="'+(e-r+1)+'"'+o}),i}}}else if(o)for(s=o-1;s>=0;--s)if(t[e][s]){if("^^"!==t[e][s])return t[e][s]=t[e][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][s+1])return;if("^^"!==t[r][s])return t[r][s]=t[r][s].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-s+1)+'"'+n}),i}}else if(0===s)return t[e][s]='<td colspan="'+(o-s+1)+'"></td>\n',i}(e,i,r,s);if(!t.helper.isUndefined(l))return l}return s=s.trim(),"<td"+a+">"+t.subParser("spanGamut")(s,n,o)+"</td>\n"}function a(e,a){var l,c=e.split("\n");for(l=0;c.length>l;++l)/^ {0,3}\|/.test(c[l])&&(c[l]=c[l].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(c[l])&&(c[l]=c[l].replace(/\|[ \t]*$/,"")),c[l]=t.subParser("codeSpans")(c[l],n,o);var u=[],d=[],p=[],h=[],m=[];if(a)for(u=c[0].split("|").map(function(t){return t.trim()}),c.shift(),l=0;u.length>l;++l)h.push(i(u[l]));else{var f=c[0].split("|").map(function(t){return t.trim()});if(u=c[1].split("|").map(function(t){return t.trim()}),c.shift(),c.shift(),u.length>f.length)return e;for(l=0;u.length>l;++l)h.push(i(u[l]));for(l=0;f.length>l;++l)t.helper.isUndefined(h[l])&&(h[l]=""),p.push(r(f[l],h[l]))}for(l=0;c.length>l;++l)""!==c[l].trim()&&d.push(c[l].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(l=0;d.length>l;++l){var g=[];m.push(g);for(var y=0;h.length>y;++y)t.helper.isUndefined(d[l][y])&&(d[l][y]=""),g.push(s(m,l,y,d[l][y],h[y]))}return function(t,e,o){var i="<table>\n",r=e.length;if(t.length){i+="<thead>\n<tr>\n";for(var s=0;t.length>s;++s)i+=t[s];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",s=0;o.length>s;++s){i+="<tr>\n";for(var a=0;r>a;++a)n.tablesMerge&&"^^"===o[s][a]||(i+=o[s][a]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(p,h,m)}function l(t){return a(t,!1)}function c(t){return a(t,!0)}return e=(e=(e=(e=o.converter._dispatch("tables.before",e,n,o)).replace(/\\(\|)/g,t.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,l)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l),n.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,c)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,c)),e=o.converter._dispatch("tables.after",e,n,o)});let o="vanilla",i={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},r={};t.asyncExtension=function(e,n){if(!t.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=t.helper.stdExtName(e),t.helper.isUndefined(n)){if(!r.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return r[e]}"function"==typeof n&&(n=n()),t.helper.isArray(n)||(n=[n]),t.validateExtension(n)&&(r[e]=n)},t.removeAsyncExtension=function(e){e=t.helper.stdExtName(e),delete r[e]},t.resetAsyncExtensions=function(){r={}},t.removeExtension=function(e){e=t.helper.stdExtName(e),delete t.getAllExtensions[e]};const s=t.setFlavor,a=t.getFlavorOptions;function l(t){return`${(new Date).Format("yyyy-MM-dd HH:mm:ss.S")} ${t}`}t.setFlavor=function(e){try{if(s(e),o=e,!i.hasOwnProperty(e))return}catch{if(!i.hasOwnProperty(e))return;t.resetOptions(),o=e}var n=i[e];for(var r in n)n.hasOwnProperty(r)&&(t.getOptions()[r]=n[r])},t.getFlavor=function(){return o},t.setFlavorOptions=function(t,e){e&&(i[t]=Object.assign(i[t]||{},e))},t.getFlavorOptions=function(e){const n=a(e);return t.helper.isUndefined(n)?i.hasOwnProperty(e)?i[e]:void 0:i.hasOwnProperty(e)?Object.assign(n,i[e]):n},Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};t||(t="yyyy-MM-dd hh:mm:ss.S");const n=/(y+)/.exec(t);n&&(t=t.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length)));for(const n in e){const o=RegExp("("+n+")").exec(t);if(o){let i=e[n];1==o[1].length?i=("000"+e[n]).substring((""+e[n]).length):2==o[1].length&&(i=("00"+e[n]).substring((""+e[n]).length)),t=t.replace(o[1],i)}}return t};let c="jsdelivr",u="file:"===document.location.protocol?"https://":document.location.protocol+"//",d="",p="",h="";const m={local:{ABCJS:{src:"../node_modules/abcjs/dist/abcjs-basic.js",css:"../node_modules/abcjs/abcjs-audio.css"},echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/dist/viz-global.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"../node_modules/mermaid/dist/mermaid.js",plugins:{"mermaid-zenuml":"../node_modules/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"../node_modules/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js","mermaid-layout-elk":{type:"module",module:"../node_modules/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"}}},katex:{src:"../node_modules/katex/dist/katex.min.js",css:"../node_modules/katex/dist/katex.min.css"},renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",MathJax:"../node_modules/mathjax/tex-mml-svg.js",railroad:{src:"../node_modules/railroad-diagrams/railroad-diagrams.js",css:"../node_modules/railroad-diagrams/railroad-diagrams.css"},Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:{src:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"../node_modules/wavedrom/wavedrom.min.js",skin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"}},vega:"../node_modules/vega/build/vega.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js",Plotly:"../node_modules/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",src:"../node_modules/@jhuix/shiki-loader/dist/index.js"},AntVInfographic:"../node_modules/@antv/infographic/dist/infographic.min.js",zenuml:"../node_modules/@zenuml/core/dist/zenuml.js"},unpkg:{ABCJS:{src:"https://unpkg.com/abcjs/dist/abcjs-basic-min.js",css:"https://unpkg.com/abcjs/dist/abcjs-audio.css"},echarts:"https://unpkg.com/echarts/dist/echarts.min.js",Viz:"https://unpkg.com/@viz-js/viz/dist/viz-global.js",Raphael:"https://unpkg.com/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{src:"https://unpkg.com/mermaid/dist/mermaid.min.js",plugins:{"mermaid-layout-elk":{type:"module",module:"https://unpkg.com/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs"},"mermaid-zenuml":"https://unpkg.com/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.min.js","mermaid-mindmap":"https://unpkg.com/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.min.js"}},katex:{src:"https://unpkg.com/KaTeX/dist/katex.min.js",css:"https://unpkg.com/KaTeX/dist/katex.min.css"},renderMathInElement:"https://unpkg.com/KaTeX/dist/contrib/auto-render.js",MathJax:"https://unpkg.com/mathjax/tex-mml-svg.js",railroad:{src:"https://unpkg.com/railroad-diagrams/railroad-diagrams.js",css:"https://unpkg.com/railroad-diagrams/railroad-diagrams.css"},Snap:"https://unpkg.com/snapsvg/dist/snap.svg-min.js",WebFont:"https://unpkg.com/webfontloader/webfontloader.js",underscore:"https://unpkg.com/underscore/underscore-min.js",sequence:{src:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://unpkg.com/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://unpkg.com/wavedrom/wavedrom.min.js",skin:{default:"https://unpkg.com/wavedrom/skins/default.js",lowkey:"https://unpkg.com/wavedrom/skins/lowkey.js",narrow:"https://unpkg.com/wavedrom/skins/narrow.js"}},vega:"https://unpkg.com/vega/build/vega.min.js",vegaLite:"https://unpkg.com/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://unpkg.com/vega-embed/build/vega-embed.min.js",Plotly:"https://unpkg.com/plotly.js/dist/plotly.min.js",Shiki:{type:"module",module:"https://esm.sh/shiki"},AntVInfographic:"https://unpkg.com/@antv/infographic/dist/infographic.min.js",zenuml:"https://unpkg.com/@zenuml/core/dist/zenuml.js"},jsdelivr:{ABCJS:{src:"https://cdn.jsdelivr.net/npm/abcjs/dist/abcjs-basic-min.js",css:"https://cdn.jsdelivr.net/npm/abcjs/abcjs-audio.css"},echarts:"https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js",Viz:"https://cdn.jsdelivr.net/npm/@viz-js/viz/dist/viz-global.js",Raphael:"https://cdn.jsdelivr.net/npm/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:{type:"module",module:"https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs",plugins:{"mermaid-layout-elk":"https://cdn.jsdelivr.net/npm/@mermaid-js/layout-elk/dist/mermaid-layout-elk.esm.min.mjs","mermaid-zenuml":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-zenuml/dist/mermaid-zenuml.esm.min.mjs","mermaid-mindmap":"https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-mindmap/dist/mermaid-mindmap.esm.min.mjs"}},katex:{src:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js",css:"https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"},renderMathInElement:"https://cdn.jsdelivr.net/npm/katex/dist/contrib/auto-render.js",MathJax:"https://cdn.jsdelivr.net/npm/mathjax/tex-mml-svg.js",railroad:{src:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.min.js",css:"https://cdn.jsdelivr.net/npm/railroad-diagrams/railroad-diagrams.css"},Snap:"https://cdn.jsdelivr.net/npm/snapsvg/dist/snap.svg-min.js",WebFont:"https://cdn.jsdelivr.net/npm/webfontloader/webfontloader.js",underscore:"https://cdn.jsdelivr.net/npm/underscore/underscore-min.js",sequence:{src:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",css:"https://cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css"},WaveDrom:{src:"https://cdn.jsdelivr.net/npm/wavedrom/wavedrom.min.js",skin:{default:"https://cdn.jsdelivr.net/npm/wavedrom/skins/default.js",lowkey:"https://cdn.jsdelivr.net/npm/wavedrom/skins/lowkey.js",narrow:"https://cdn.jsdelivr.net/npm/wavedrom/skins/narrow.js"}},vega:"https://cdn.jsdelivr.net/npm/vega/build/vega.min.js",vegaLite:"https://cdn.jsdelivr.net/npm/vega-lite/build/vega-lite.min.js",vegaEmbed:"https://cdn.jsdelivr.net/npm/vega-embed/build/vega-embed.min.js",Plotly:"https://cdn.jsdelivr.net/npm/plotly.js-dist-min/plotly.min.js",Shiki:{type:"module",module:"https://cdn.jsdelivr.net/npm/shiki/+esm"},AntVInfographic:"https://cdn.jsdelivr.net/npm/@antv/infographic/dist/infographic.min.js",zenuml:"https://cdn.jsdelivr.net/npm/@zenuml/core/dist/zenuml.min.js"}};function f(){return c}function g(t,e){return t||e.startsWith("http://")||e.startsWith("https://")||e.startsWith(u)?e:e.startsWith("../dist/")?p+e:d+e}function y(t,e,n){if(void 0!==n&&n&&"default"!==n||(n=f()),m.hasOwnProperty(n)){const o=m[n][e];if(o){if("string"==typeof o)return{src:g(t,o)};if(o.src&&(o.src=g(t,o.src)),o.module&&(o.module=g(t,o.module)),o.css)if("string"==typeof o.css)o.css=g(t,o.css);else for(const[e,n]of Object.entries(o.css))o.css[e]=g(t,n);if(o.skin)if("string"==typeof o.skin)o.skin=g(t,o.skin);else for(const[e,n]of Object.entries(o.skin))o.skin[e]=g(t,n);if(o.plugins)for(const[e,n]of Object.entries(o.plugins))"string"!=typeof n?(n.src&&(o.plugins[e].src=g(t,n.src)),n.module&&(o.plugins[e].module=g(t,n.module))):o.plugins[e]=g(t,n);if(o.src||o.module)return o}}}function w(t,e){const n="css-"+t.toLowerCase();let o=document.getElementById(n);var i=document.head||document.getElementsByTagName("head")[0];o&&o.remove(),o=document.createElement("link"),o.id=n,o.rel="stylesheet",o.href=e,i.appendChild(o)}function v(t,e){return new Promise(n=>{const o=t.toLowerCase(),i="script-"+o;if(!document.getElementById(i)){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");if(s.id=i,"string"==typeof e)s.src=e;else{if(e.type&&(s.type=e.type,"module"===e.type&&e.module)){const n=o.replaceAll(/[-@+.]/g,"");s.textContent=`\nimport * as ${n} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${n} && ${n}['default']) {\n window['${t}'] = ${n}['default']\n } else {\n window['${t}'] = ${n};\n }\n}\nconst s = document.querySelector('#${i}');\nif (s && s.onload) {\n s.onload();\n}\n`}e.src&&(s.src=e.src)}return s.onload=()=>{n(t)},void r.appendChild(s)}n(t)})}function x(t,e,n){const o=t.toLowerCase(),i="script-"+o;let r=document.getElementById(i);if(r)return n(t);const s=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.id=i;let a=!1;if(e.type&&(r.type=e.type,"module"===e.type&&e.module)){a=!0;let s="",l="";if(r.onloaded=e=>{n(e||t)},e.plugins){const n=[];for(const[t,o]of Object.entries(e.plugins)){n.push(`'${t}'`);const e=t.toLowerCase().replaceAll(/[-@+.]/g,"");s+=`import * as ${e} from '${o}';\nif (!('${t}' in window)) {\n if ('default' in ${e} && ${e}['default']) {\n window['${t}'] = ${e}['default']\n } else {\n window['${t}'] = ${e};\n }\n}\n`}n.length>0&&(l=`['${t}',${n.join(",")}]`)}const c=o.replaceAll(/[-@+.]/g,"");r.textContent=`\nimport * as ${c} from '${e.module}';\nif (!('${t}' in window)) {\n if ('default' in ${c} && ${c}['default']) {\n window['${t}'] = ${c}['default']\n } else {\n window['${t}'] = ${c};\n }\n}\n${s}\nconst s = document.querySelector('#${i}');\nif (s && s.onloaded) {\n s.onloaded(${l});\n}\n`}e.src&&(r.src=e.src),e.defer&&(r.defer=!0),a||(r.onload=e.plugins?()=>{const o=[];o.push(new Promise(e=>{e(t)}));for(const[t,n]of Object.entries(e.plugins))o.push(v(t,n));Promise.all(o).then(t=>{n(t)})}:()=>{n(t)}),s.appendChild(r)}function b(t){const e=document.getElementById("css-"+t.toLowerCase());e&&e.remove()}const k={setCDN:function(t,e,n,o){t in m&&(c=t),"string"==typeof e&&e&&(d=e),"string"==typeof n&&n&&(p=n),"string"==typeof o&&o&&("/"!==h.at(h.length-1)&&(o+="/"),h=o)},getCDN:f,getCSS:function(t,e,n,o){const i=y(t,e,n);if(i)return i.css},getSrc:function(t,e,n){const o=y(t,e,n);if(o)return o.src},getUrl:function(t){try{const e=new URL(t);if("dist:"===e.protocol)return t="../dist/"===(t=t.substring(e.protocol.length+2)).substring(0,8)?p+t:d+t;if("file:"===e.protocol&&h){return t=new URL(h).origin+"/"+t.substring(8)}}catch{if(h){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=h+t}}return t},getModule:y,loadScript:function(t,e,n,o){return new Promise((i,r)=>{if(!t||"undefined"==typeof document)return r("Args is invaild!");e||(e="");const s=y(!1,t,e);if(!s)return r(t+" script source invaild!");if(s.css&&("string"==typeof s.css?w(t,s.css):n&&n.length>0&&n in s.css&&w(t,s.css[n])),s.skin){let e="";if("string"==typeof s.skin?(e=s.skin,o="skin"):o&&o.length>0&&o in s.skin&&(e=s.skin[o]),e.length>0)return void v(t+"-"+o,e).then(()=>{x(t,s,i)})}x(t,s,i)})},unloadScript:function(t,e){const n=document.querySelectorAll(`[id^="script-${t.toLowerCase()}"]`);n&&n.forEach(t=>{t.remove()}),e&&e.length||(e="skin");const o=document.getElementById("script-"+t.toLowerCase()+"-"+e.toLowerCase());o&&o.remove(),b(t)},loadStyleSheet:function(t,e,n){if(!t||"undefined"==typeof document)return"";const o=y(!1,t,e);if(!o||!o.css)return"";let i="";return"string"==typeof o.css?i=o.css:n&&n in o.css&&(i=o.css[n]),i.length>0&&w(t,o.css[n]),"local"===e?"":i},unloadStyleSheet:b};function E(t){if(!t||"string"!=typeof t)return null;try{return JSON.parse(t)}catch(e){let n=null;return t.replace(/^\{(.*)\}$/,"$1").split(",").forEach(t=>{const e=t.split("=");if(2===e.length){n||(n={});const t=e[0].trim().replace(" ","-");let o=e[1].trim();o="true"===o.toLowerCase()||"false"!==o.toLowerCase()&&(isNaN(o)?o.replace(/^"(.*)"$/,"$1"):Number(o)),n[t]=o}}),n}}function S(t){let e=0;for(let n=0;t.length>n;n++){const o=t.charCodeAt(n);e=Math.imul(31,e)+o|0}return e>>>0}function L(t){return t&&"function"!=typeof t&&"object"==typeof t&&!Array.isArray(t)}function $(t,...e){for(const n of e)for(const[e,o]of Object.entries(n))L(o)&&L(t[e])?$(t[e],o):Object.assign(t,{[e]:o});return t}const j={parseAttribute:E,interopDefault:function(t){return t&&"object"==typeof t&&"default"in t&&t.default?t.default:t},loadStyle:function(t,e){if(!t||!e||"undefined"==typeof document)return!1;const n="css-"+t.toLowerCase();if(!document.getElementById(n)){const t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.id=n,o.type="text/css",o.innerText=e,t.appendChild(o)}return!0},loadStylesheet:function(t,e){if(!t||"undefined"==typeof document)return!1;let n=null;if(e&&(n=document.getElementById(e)),!n){const n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("link");o.rel="stylesheet",o.href=t,e&&(o.id=e),n.appendChild(o)}return!0},loadScript:function(t,e,n){return new Promise((o,i)=>{if(!t||!e||"undefined"==typeof document)return i("Args is invaild!");let r=document.getElementById(t);if(r)return o(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=document.createElement("script"),r.id=t,r.type="text/javascript",r.text=e,n.appendChild(r),o(!0)})},removeAllStylesheet:function(t){if(!t)return;const e=document.head||document.getElementsByTagName("head")[0];e.querySelectorAll("link").forEach(n=>{n.id&&n.id.substring(0,t.length)===t&&e.removeChild(n)})},renderCacheElement:function(t,e,n,o){"undefined"!=typeof window&&window.document&&(t=window.document);const i=t.createElement("div");if(i.id=e,i.className=n,i.style.display="none",t.body.appendChild(i),"function"==typeof o&&o){const e=o(i);if(e instanceof Promise)return e.then(e=>{t.body.removeChild(e),e.style.display=""}),i.outerHTML}return t.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(t,e,n){"undefined"!=typeof window&&window.document&&(t=window.document);const o=t.createElement("div");return o.id=e,o.className=n,t.body.appendChild(o),o},createElementMeta:function(t,e,n,o){const i=E(e.dataset.lang);let r="diagram-left";if(i){const t=i.codeblock||i.code_block;if("boolean"==typeof t&&t||"string"==typeof t&&"true"===t.toLowerCase())return!1;i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right")),i.width&&("string"!=typeof i.width&&(i.width=i.width+"px"),e.style.width=i.width),i.height&&("string"!=typeof i.height&&(i.height=i.height+"px"),e.style.height=i.height)}let s=e.textContent.trim();o&&"function"==typeof o&&(s=o(s));const a=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r;let l;"string"==typeof n?n.length>0&&(n="-"+n):"boolean"==typeof n&&n?(l=S(e.dataset.lang+s),n="-"+l):n="-"+Math.floor(1e4*Math.random());const c=t.toLowerCase()+"-"+Date.now()+n;return e.id=c,e.className=a,{id:c,container:c+"-container",className:a,data:s,hash:l,element:e,lang:i}},addCssLink:function(t,e,n){return t.cssLinks?Array.isArray(t.cssLinks)||(t.cssLinks=[t.cssLinks]):t.cssLinks=[],t.cssLinks.push({id:n,link:e}),t},addScript:function(t,e){return t.scripts?Array.isArray(t.scripts)||(t.scripts=[t.scripts]):t.scripts=[],t.scripts.push(e),t},addExtra:function(t,e){return t.extras?Array.isArray(t.extras)||(t.extras=[t.extras]):t.extras=[],t.extras.push(e),t},hashString:S,deepMerge:$},C="ABCJS",A="abc";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===N)var N=window.ABCJS||void 0;function M(){return!!N}let T=!1;function q(){if(void 0===t)var t=window.ABCJS||void 0;function e(t){const e=this;e.onReady=function(){},e.onStart=function(){const e=document.querySelector("#"+t+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),e.appendChild(n)},e.beatSubdivisions=2,e.onBeat=function(t,e,n){},e.onEvent=function(e){if(e.measureStart&&null===e.left)return;const n=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;n.length>t;t++)n[t].classList.remove("highlight");for(let t=0;e.elements.length>t;t++){const n=e.elements[t];for(let t=0;n.length>t;t++)n[t].classList.add("highlight")}const o=document.querySelector("#"+t+" svg .abcjs-cursor");o&&(o.setAttribute("x1",e.left-2),o.setAttribute("x2",e.left-2),o.setAttribute("y1",e.top),o.setAttribute("y2",e.top+e.height))},e.onFinished=function(){const e=document.querySelectorAll("#"+t+" svg .highlight");for(let t=0;e.length>t;t++)e[t].classList.remove("highlight");const n=document.querySelector("#"+t+" svg .abcjs-cursor");n&&(n.setAttribute("x1",0),n.setAttribute("x2",0),n.setAttribute("y1",0),n.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune(e,n,o){const i=e.id,r=e.data;if(!o)return void t.renderAbc(i,r,this.abcOptions);o.disable(!0);const s=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:s}).then(function(t){o.setTune(s,n).then(function(t){}).catch(function(t){})}).catch(function(t){})},load(n,o){let i;if(n){const r="#"+n;t.synth.supportsAudio()?(i=new t.synth.SynthController,i.load(r,new e(o.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0})):document.querySelector(r).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(o,!1,i)}}}function O(t,e){const n=function(){window.abcEnv.load(t,e)};return n.toString=function(){return`function(){\n const audio = '${t}';\n const render = ${JSON.stringify(e)};\n window.abcEnv.load(audio, render);\n }`},n}function P(t,e,n){if(M()){const o=n.id,i=n.className,r=n.container;let s="";n.lang&&(n.lang.width&&(s+=`width:${n.lang.width};`),n.lang.height&&(s+=`height:${n.lang.height};`));let a="";if(s?(a+=`<div id="${r}" class="${i}" style="${s}">`,a+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(a+=`<div id="${r}" class="${i}">`,a+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;a+="</div>",n.element.parentNode.outerHTML=a;const r=i.getElementById(o);return N.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.data,c=o+"-audio";a+=s?`<div id="${c}" style="width:100%;height:100%;display:inline-block"></div>`:`<div id="${c}"></div>`,a+="</div>",n.element.parentNode.outerHTML=a;const u={id:r,code:O(c,{id:o,class:i,data:l}),host:"#"+r};return e.push(u),t(!0)}setTimeout(()=>{P(t,e,n)},10)}function z(t,e){return new Promise(n=>{let o=j.createElementMeta(A,t);if(!o||!o.data)return n(!1);P(n,e,o)})}function D(t,e){const n={outer:[{name:"ABCJS",src:k.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:q,inner:[]};return e.push(n),function(){const t=M();if("undefined"!=typeof window){if(T)return t;t||(T=!0,j.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),k.loadScript(C).then(t=>{N=j.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(z(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}let H="en";!function(){let t=document?.children[0].lang??"en";t=t.toLowerCase(),H="zh-cn"===t||"zh-hans"===t?"zh-cn":"en"}();const B={en:{"code-copy":"Copy Code","code-theme-prefix":"Theme:","code-lang-prefix":"Lang:",toc:"Table Of Contents","toc-show-title-prefix":"Show ","toc-hide-title-prefix":"Hide ","toc-toggle-prefix":"Toggle ","msg-copy-success":"Copy success!","msg-copy-failed":"Copy failed!","export-actions-title":"Click to view actions","export-svg-action":"Save as SVG","export-png-action":"Save as PNG"},"zh-cn":{"code-copy":"复制代码","code-theme-prefix":"主题:","code-lang-prefix":"语言:",toc:"目录","toc-show-title-prefix":"显示","toc-hide-title-prefix":"隐藏","toc-toggle-prefix":"切换","msg-copy-success":"复制成功!","msg-copy-failed":"复制失败!","export-actions-title":"点击查看操作","export-svg-action":"保存为 SVG","export-png-action":"保存为 PNG",note:"备注",alert:"注意",info:"信息",tip:"提示",warning:"警告",error:"错误",success:"成功",danger:"危险",summary:"概要",tldr:"摘要",abstract:"抽象",todo:"待办",hint:"小窍门",check:"检测",done:"完成",help:"帮助",question:"问题",faq:"问答",attention:"关注",caution:"提醒",failure:"故障",fail:"失败",missing:"缺失",bug:"缺陷",example:"示例",snippet:"片段",quote:"引用",cite:"引文",important:"重点",key:"要点"}};const R={getLangString:function(t,e){return B[H]?.[t]??e}},_=["H1","H2","H3","H4","H5","H6"];function I(t,e,n,o,i){try{if(i){if(o>1){const t=n.parentNode;t&&"UL"===t.tagName&&t.classList.add("toc-multi")}const e=n.querySelector("div");if(e){e.classList.remove("toc-title"),e.classList.add("toc-multi-title");const t=e.querySelector("i");t&&(t.classList.remove("toc-chapter"),t.classList.add("toc-multi-chapter"),t.innerHTML='<svg class="icon"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(t.ownerDocument.createElement("ul"))).classList.add(o>1?"toc-level-"+o:"toc-main")}if(n=n.appendChild(t.ownerDocument.createElement("li")),e){const i=n.appendChild(t.ownerDocument.createElement("div"));i.classList.add("toc-title-"+o,"toc-title");const r=i.appendChild(t.ownerDocument.createElement("i"));r.classList.add("iconfont","toc-chapter"),r.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>';const s=i.appendChild(t.ownerDocument.createElement("a"));s.appendChild(t.ownerDocument.createTextNode(e.textContent)),s.href="#"+e.id}}catch{}return n}function F(t,e,n,o){if(n.headingLevel>=o){let i=null;for(;n&&n.headingLevel>=o;)i=n,n=i.parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&F(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=I(t,null,n.toc,o,!0),n.preLevel++;n.toc=I(t,e,n.toc,o,!0)}else{for(;n.preLevel>o;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=I(t,e,n.toc,o,!1)}return n.parentNode&&F(t,e,n.parentNode,o),n}const W=['<symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol>','<symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol>','<symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol>','<symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol>','<symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z"></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z"></path></symbol>','<symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z"></path></symbol>'],J=/^((?:[\[【](?:Table[ -]Of[ -]Contents|目录|TOC)[\]】])|(?:(?:\{\{|\[\[|【)[_]?TOC[_]?(?:\}\}|\]\]|】)))$/i;function V(){if(!document.querySelector("#total-showdown-toc"))return;const t=document.querySelector("#toc-fold-icon");t&&(t.onclick=e=>{const n=document.querySelectorAll(".total-toc ul"),o=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===t.dataset.name)return n.forEach(t=>{t.classList.contains("toc-main")||t.classList.contains("toc-level-2")||t.classList.add("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(t.dataset.name="toc-fold");n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),t.dataset.name="toc-expand"});const e=document.querySelector("#toc-close-icon");e&&(e.onclick=t=>{const e=document.querySelector("#total-showdown-toc");e&&e.classList.add("hidden");const n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});const n=document.querySelector("#toc-switch-button");n&&(n.onclick=t=>{t.currentTarget.classList.add("hidden");const e=document.querySelector("#total-showdown-toc");e&&e.classList.remove("hidden")});document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(t=>{t.onclick=t=>{let e=t.currentTarget.parentNode;if(!e)return;if(e=e.parentNode,!e)return;const n=e.querySelectorAll("ul"),o=e.querySelectorAll(".toc-multi-chapter use"),i=t.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(t=>{t.classList.add("hidden")}),void o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(t=>{t.classList.remove("hidden")}),o.forEach(t=>{t.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}})}function U(t){return[{type:"output",config:((t={})=>({chapterNumber:!0,compatible:!1,expand:!1,title:"",toc:J,...t}))(t),filter:function(t){if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),n=void 0!==e.body?e.body:e;return this.config.toc||(this.config.toc=J),function(t,e){let n=null,o=0,i=null,r=!1,s=!1,a=null;const l=e.toc instanceof RegExp?e.toc:RegExp(`^(${e.toc})$`,"i");let c=1;const u=[0,0,0,0,0,0],d=t.querySelectorAll(_.join(",")+(e.compatible?",p":""));for(let p=0;d.length>p;p++){if(n=d[p],l.test(n.textContent.trim())){let l=null;if(s)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(a){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),a=l;let o=R.getLangString("toc"),i=R.getLangString("toc-show-title-prefix"),r=R.getLangString("toc-hide-title-prefix"),s=R.getLangString("toc-toggle-prefix");e.title?.length>0&&(o=e.title);const c=t.ownerDocument.createElement("div");c.id="toc-switch-button",c.classList.add("toc-switch"),c.title=i+o,c.innerHTML='<svg class="icon"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(c,n),l.id="total-showdown-toc",l.classList.add("total-toc"),l.innerHTML=`<div class="toc-pin"><span class="toc-pin-text">${o}</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand" title="${s+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon" title="${r+o}"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>`,e.expand?c.classList.add("hidden"):l.classList.add("hidden")}let c=t.ownerDocument.createElement("div");c.classList.add("toc-view"),l.appendChild(c);let u={parentNode:null,toc:c,headingLevel:o,preLevel:o,standalone:!1};if(i)if(o>i.headingLevel)u.parentNode=i;else{let t=i;for(;t.headingLevel>o;)t=t.parentNode;t&&(u.parentNode=o===t.headingLevel?t.parentNode:t)}i=u,r=!0,i.standalone=!s,s?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(_.includes(n.tagName)){if(s||(s=!0),o=parseInt(n.tagName.substr(1)),e.chapterNumber)if(o>1){if(c!==o){c=o;let t=c;for(;u.length>t;)u[t]=0,t++}let t="",e=1;for(u[c-1]++;o>e;)t+=u[e]+".",e++;n.textContent=t+" "+n.textContent}else{let t=0;for(;u.length>t;)u[t]=0,t++}i&&(i=F(t,n,i,o))}}for(s&&(i&&(e.symbols=W),a&&(e.extras||(e.extras=[]),e.extras.push(a.outerHTML)));i;){let t=i;i=t.parentNode,t.parentNode=null,t.toc=null,t.headingLevel=null,t.preLevel=null}return r}(n,this.config)?n.innerHTML:t}if(!("object"==typeof t&&t&&this.config.extras&&Array.isArray(this.config.extras)&&this.config.extras.length))return!1;const e=t;this.config.extras.forEach(t=>{j.addExtra(e,t)}),this.config.symbols?.length>0&&e.symbols.push(...this.config.symbols);return j.addScript(e,{inner:[{id:"showdown-toc",code:V,host:"#total-showdown-toc"}]}),e}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===G)var G=window.Viz||void 0;const K=["circo","dot","neato","osage","twopi"];function X(){return!(void 0===G||!G||void 0===G.instance)}let Z=!1;function Q(t,e){if(X()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.element,s=e.lang;let a="dot";s&&s.engine&&-1!=K.indexOf(s.engine)&&(a=s.engine);let l=r.style.cssText;return l.length>0&&(l=` style="${l}"`),void G.instance().then(e=>{const s=e.renderString(i,{format:"svg",engine:a});r.parentNode.outerHTML=`<div id="${n}" class="${o}"${l}>${s}</div>`,t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{Q(t,e)},10)}function Y(t){return new Promise(e=>{const n=j.createElementMeta("viz",t);if(!n||!n.data)return e(!1);Q(e,n)})}function tt(t){return function(){const t=X();if("undefined"!=typeof window){if(Z)return t;t||(Z=!0,k.loadScript("Viz").then(t=>{G=j.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(Y(t))}),Promise.all(n).then(()=>{e(!0)})})}const et={},nt={},ot=["pdflatex","xelatex","lualatex"];function it(t,e){t.forEach(t=>{!function(t,e){const n=j.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=nt[n.hash];if(o)return void t.parentNode.replaceWith(o);let i=e.config.buildType??"pdflatex";n.lang?.engine&&ot.includes(n.lang.engine.toLowerCase())&&(i=n.lang.engine.toLowerCase()),e.elements=e.elements??[];const r={type:i,id:n.id};n.lang&&(r.lang=n.lang),e.elements.push(r)}(t,e)})}function rt(){if(!window||!("Tex"in window))return;const t=window.Tex;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e="https://"+(t.config.serverUrl??"tex.io");t.elements.forEach(({type:n,id:o,lang:i})=>{const r=document.querySelector("#"+o);if(!r)return;const s=r.dataset.lang,a=r.textContent.trim(),l=j.hashString(s+a),c=nt[l];if(c)return void r.parentNode.replaceWith(c);if("function"==typeof t.svgRender&&t.svgRender){const e={build:n};i&&(i.width?.length>0&&(e.width=i.width),i.height?.length>0&&(e.height=i.height),i.zoom&&i.zoom>0&&(e.zoom=i.zoom));try{t.svgRender(r.id,a,e).then(t=>{const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),nt[l]=e}).catch(t=>{})}catch(t){}return}if(!window||!window.fetch)return;const u=[];i&&(i.width?.length>0&&u.push("width="+i.width),i.height?.length>0&&u.push("height="+i.height),i.zoom&&i.zoom>0&&u.push("zoom="+i.zoom));const d=`${e}/${n}/svg`+(u.length>0?"?"+u.join("&"):"");try{window.fetch(d,{method:"POST",body:a,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),nt[l]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function st(t){return[{type:"output",config:((t={})=>({serverUrl:"tex.io",buildType:"pdflatex",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.tex.language-tex,code.latex.language-latex");return!!n.length&&(window&&(window.Tex=et),et.config={serverUrl:this.config.serverUrl,buildType:this.config.buildType},et.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-tex",code:rt,once:!0}),it(n,et),et.elements?.length>0&&(o=e,Object.keys(nt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete nt[t]})),t);var o}}]}const at="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===lt)var lt=window.vegaEmbed||void 0;function ct(){return!(void 0===lt||!lt)}let ut=!1;function dt(t,e,n,o){const i=j.createElementMeta(at,t);if(!i||!i.data)return Promise.resolve(!1);const r=i.container,s={id:r,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o)if(t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const i=n(`(function(){${t.data}; return option;})();`);lt(o,i,e)}else{const n=JSON.parse(t.data);lt(o,n,e)}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`:`function(){\n let el = document.getElementById('${t.id}');\n if (el) {\n const option = ${t.data};\n const config = ${JSON.stringify(e)};\n vegaEmbed(el, option, config);\n }\n }`,n})(i,e),host:"#"+r};return n.push(s),new Promise(t=>{ht(t,i)})}function pt(t,e,n,o){const i={outer:[{name:at,src:k.getSrc(!1,at,"jsdelivr")},{name:"vegaLite",src:k.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:k.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){const t=ct();if("undefined"!=typeof window){if(ut)return t;t||(ut=!0,k.loadScript(at).then(()=>k.loadScript("vegaLite")).then(()=>k.loadScript("vegaEmbed")).then(t=>{lt=j.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(dt(t,o,i.inner))}),e.forEach(t=>{r.push(dt(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function ht(t,e){if(ct()){let n=e.element.style.cssText;return n.length>0&&(n=` style="${n}"`),e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"${n}><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{ht(t,e)},10)}function mt(t){const e=((t={})=>({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg",...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.vega.language-vega"),o=e.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!o.length)&&pt(n,o,t.scripts,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown antv extension can only be used in browser environment!");if(void 0===ft)var ft=window.AntVInfographic||void 0;function gt(){return!(void 0===ft||!ft)}let yt=!1;function wt(t,e){if(gt()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,a.container=l,e.lang&&(e.lang.width&&(a.width=e.lang.width),e.lang.height&&(a.height=e.lang.height));return new ft.Infographic(a).render(i),r.replaceWith(l),void t(!0)}setTimeout(()=>{wt(t,e)},10)}function vt(t){return new Promise(e=>{const n=j.createElementMeta("infographic",t);if(!n||!n.data)return e(!1);wt(e,n)})}function xt(t){return function(){const t=gt();if("undefined"!=typeof window){if(yt)return t;if(!t)return yt=!0,k.loadScript("AntVInfographic").then(t=>{ft=j.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(vt(t))}),Promise.all(n).then(()=>{e(!0)})})}function bt(){const t=new DOMParser;return[{type:"output",filter:function(e){const n=t.parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n;return function(t){let e=null,n=null,o=!1;const i=t.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph");for(let t=0;i.length>t;t++)for(e=i[t],n=e.firstChild;n;){if(3===n.nodeType){let t=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);t&&(":-:"===t[2]?(n.nodeValue=t[3],e.className?e.className+=" align-center":e.className="align-center",o=!0):"--:"===t[2]&&(n.nodeValue=t[3],e.className?e.className+=" align-right":e.className="align-right",o=!0));break}n=n.nextSibling}return o}(o)?o.innerHTML:e}}]}var kt=".",Et={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},St=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},Et,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function Lt(t,e){return t.input>e.input?1:-1}var $t,jt,Ct,At=[];function Nt(t,e){var n;n="\\"==t.charAt(e)&&"\\"!=t.charAt(e+1)&&" "!=t.charAt(e+1)?t.slice(e+1):t.slice(e);for(var o=0;n.length>o&&32>=n.charCodeAt(o);o+=1);return n.slice(o)}function Mt(t,e,n){if(0==n){var o,i;for(n=-1,o=t.length;o>n+1;)e>t[i=n+o>>1]?n=i:o=i;return o}for(var r=n;t.length>r&&e>t[r];r++);return r}function Tt(t){for(var e,n,o,i=0,r="",s=!0,a=1;t.length>=a&&s;a++)n=t.slice(0,a),i=Mt(At,n,i),At.length>i&&t.slice(0,At[i].length)==At[i]&&(e=i,a=(r=At[i]).length),s=At.length>i&&t.slice(0,At[i].length)>=At[i];if(jt=Ct,""!=r)return Ct=St[e].ttype,St[e];Ct=0,i=1,n=t.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;if(n==kt&&(n=t.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&t.length>=i;)n=t.slice(i,i+1),i++;return l&&i>1||i>2?(n=t.slice(0,i-1),o="mn"):(i=2,o=("A">(n=t.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&3==jt?(Ct=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function qt(t){var e;if("{"==t.charAt(0)&&"}"==t.charAt(t.length-1)){var n=0;"\\left"==(e=t.substr(1,5))?"("==(e=t.charAt(6))||"["==e||"{"==e?n=7:"\\lbrace"==(e=t.substr(6,7))&&(n=13):"("!=(e=t.charAt(1))&&"["!=e||(n=2),n>0&&("\\right)}"==(e=t.substr(t.length-8))||"\\right]}"==e||"\\right.}"==e?t=(t="{"+t.substr(n)).substr(0,t.length-8)+"}":"\\rbrace}"==e&&(t=(t="{"+t.substr(n)).substr(0,t.length-14)+"}"))}return t}function Ot(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function Pt(t){var e,n,o,i,r="";if(null==(e=Tt(t=Nt(t,0)))||5==e.ttype&&$t>0)return[null,t];switch(8==e.ttype&&(e=Tt(t=e.output+Nt(t,e.input.length))),e.ttype){case 7:case 0:t=Nt(t,e.input.length);var s=Ot(e);return"\\"==s.charAt(0)||"mo"==e.tag?[s,t]:["{"+s+"}",t];case 4:$t++,o=Dt(t=Nt(t,e.input.length),!0),$t--;var a=0;return"\\right"==o[0].substr(0,6)&&(")"==(c=o[0].charAt(6))||"]"==c||"}"==c?a=6:"."==c?a=7:"\\rbrace"==(c=o[0].substr(6,7))&&(a=13)),a>0?(o[0]=o[0].substr(a),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+Ot(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+Ot(e)+o[0]+"}",[n,o[1]];case 10:return e!=Et&&(t=Nt(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==Et?t.slice(1).indexOf('"')+1:0)&&(i=t.length)," "==(c=t.slice(1,i)).charAt(0)&&(r="\\ "),r+="\\text{"+c+"}"," "==c.charAt(c.length-1)&&(r+="\\ "),[r,t=Nt(t,i+1)];case 1:return null==(o=Pt(t=Nt(t,e.input.length)))[0]?["{"+Ot(e)+"}",t]:"boolean"==typeof e.func&&e.func?"^"==(c=t.charAt(0))||"_"==c||"/"==c||"|"==c||","==c||1==e.input.length&&e.input.match(/\w/)&&"("!=c?["{"+Ot(e)+"}",t]:[n="{"+Ot(e)+"{"+o[0]+"}}",o[1]]:(o[0]=qt(o[0]),"sqrt"==e.input?["\\sqrt{"+o[0]+"}",o[1]]:"cancel"==e.input?["\\cancel{"+o[0]+"}",o[1]]:void 0!==e.rewriteleftright?["{\\left"+e.rewriteleftright[0]+o[0]+"\\right"+e.rewriteleftright[1]+"}",o[1]]:"boolean"==typeof e.acc&&e.acc?[Ot(e)+"{"+o[0]+"}",o[1]]:["{"+Ot(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=Pt(t=Nt(t,e.input.length)))[0])return["{"+Ot(e)+"}",t];o[0]=qt(o[0]);var l=Pt(o[1]);return null==l[0]?["{"+Ot(e)+"}",t]:(l[0]=qt(l[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+Ot(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=Nt(t,e.input.length),[e.output,t];case 6:return t=Nt(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:$t++,o=Dt(t=Nt(t,e.input.length),!1),$t--;var c="";return"|"==(c=o[0].charAt(o[0].length-1))&&","!==t.charAt(0)?[n="{\\left|"+o[0]+"}",o[1]]:[n="{\\mid}",t];default:return t=Nt(t,e.input.length),["{"+Ot(e)+"}",t]}}function zt(t){var e,n,o,i,r;if(n=Tt(t=Nt(t,0)),i=(r=Pt(t))[0],3==(e=Tt(t=r[1])).ttype&&"/"!=e.input){if((r=Pt(t=Nt(t,e.input.length)))[0]=null==r[0]?"{}":qt(r[0]),t=r[1],"_"==e.input)if("^"==(o=Tt(t)).input){var s=Pt(t=Nt(t,o.input.length));s[0]=qt(s[0]),t=s[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+s[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=Tt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=zt(t))[0]+"}",t=r[1]))}return[i,t]}function Dt(t,e){var n,o,i,r,s="",a=!1;do{o=(i=zt(t=Nt(t,0)))[0],3==(n=Tt(t=i[1])).ttype&&"/"==n.input?((i=zt(t=Nt(t,n.input.length)))[0]=null==i[0]?"{}":qt(i[0]),t=i[1],o="\\frac{"+(o=qt(o))+"}",s+=o+="{"+i[0]+"}",n=Tt(t)):null!=o&&(s+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==$t)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=s.length;if(l>2&&"{"==s.charAt(0)&&s.indexOf(",")>0){var c=s.charAt(l-2);if(")"==c||"]"==c){var u=s.charAt(6);if("("==u&&")"==c&&"}"!=n.output||"["==u&&"]"==c){var d="",p=[];p.push(0);var h=!0,m=0,f=[];f[0]=[0];var g=0,y=0,w="";for(r=1;l-1>r;r++)s.charAt(r)==u&&m++,s.charAt(r)==c&&0==--m&&","==s.charAt(r+2)&&"{"==s.charAt(r+3)&&(p.push(r+2),f[g=r+2]=[r+2]),"["!=s.charAt(r)&&"("!=s.charAt(r)&&"{"!=s.charAt(r)||y++,"]"!=s.charAt(r)&&")"!=s.charAt(r)&&"}"!=s.charAt(r)||y--,","==s.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:h=!1);p.push(l);var v=-1;if(0==m&&p.length>0&&h)for(r=0;p.length-1>r;r++){if(r>0&&(d+="\\\\"),0==r)if(1==f[p[r]].length)var x=[s.substr(p[r]+7,p[r+1]-p[r]-15)];else{x=[s.substring(p[r]+7,f[p[r]][1])];for(var b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}else if(1==f[p[r]].length)x=[s.substr(p[r]+8,p[r+1]-p[r]-16)];else{for(x=[s.substring(p[r]+8,f[p[r]][1])],b=2;f[p[r]].length>b;b++)x.push(s.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(s.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}for(b=x.length-1;b>=0;b--)"{\\mid}"==x[b]?(0==r&&(w="|"+w),x.splice(b,1)):0==r&&(w="c"+w);v>0&&x.length!=v?h=!1:-1==v&&(v=x.length),d+=x.join("&")}d="\\begin{array}{"+w+"} "+d+"\\end{array}",h&&(s=d)}}}t=Nt(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(s+="\\right.",a=!0):(s+=o="\\right"+Ot(n),a=!0)}return $t>0&&!a&&(s+="\\right."),[s,t]}function Ht(t){return $t=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":Dt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=St.length;for(t=0;e>t;t++)!St[t].tex||"boolean"==typeof St[t].notexcopy&&St[t].notexcopy||St.push({input:St[t].tex,tag:St[t].tag,output:St[t].output,ttype:St[t].ttype,acc:St[t].acc||!1});!function(){var t;for(St.sort(Lt),t=0;St.length>t;t++)At[t]=St[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Bt)var Bt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Rt=window.renderMathInElement||void 0;let _t=0;function It(){return!(void 0===Bt||!Bt)}let Ft=!1;function Wt(t,e){const n=It();if("undefined"!=typeof window){if(Ft)return n;if(!n)return Ft=!0,k.loadScript("katex").then(e=>{if(Bt=j.interopDefault(window[e]),"katex"===t)return k.loadScript("renderMathInElement")}).then(t=>{Rt=j.interopDefault(window[t]),"function"==typeof e&&e&&e(Rt)}).catch(t=>{}),n}return"function"==typeof e&&e&&e(Rt),n}function Jt(t,e){if(It()){const n=e.className,o=e.input,i=e.data,r=e.options,s=e.element.ownerDocument;let a="";if(i instanceof Array)i.forEach(t=>{if(""===t)a+="<br>";else{const e=Bt.renderToString(t,r);a+=`<div title="${o}" class="${n}">${e}</div>`}});else{const t=Bt.renderToString(i,r);a=`<div title="${o}" class="${n}">${t}</div>`}return e.element.parentNode.outerHTML=a,--_t,!_t&&Rt&&Rt(s.body,r),void t(!0)}setTimeout(()=>{Jt(t,e)},10)}function Vt(t,e,n){return new Promise(o=>{let i;const r=j.createElementMeta("katex",t,!1,t=>{let e;i=t;const o=t.split(/\n[ \f\r\t\v]*\n/);return o.length>1?(e=[],o.forEach(t=>{""!==(t=t.trim())&&(t=n?Ht(t):t),e.push(t)})):e=n?Ht(i):i,e});if(!r)return o(!1);r.input=i,r.options=e,Jt(o,r)})}function Ut(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const Gt=(t={})=>{let e={engine:"katex",displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null,...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach(t=>{t.display="inline"!==o,"asciimath"===e&&(t.asciimath=!0)}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(o(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Kt(t){let e=0;const n=Gt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Ut(t)}([\\s\\S]+?)${Ut(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=Ht(n)),o?`\\[${n}\\]`:`\\(${n}\\)`)}));return[{type:"output",config:n,filter:function(t){e=0;const n=t.wrapper;if(!n)return!1;"katex"===this.config.engine&&o.length&&n.querySelectorAll(":not(code):not(pre)").forEach(t=>{const e=t.textContent;if(e.length>0){const n=o.reduce((t,{test:e,replacer:n})=>t.replace(e,n),e);t.textContent=n}});let i=n.querySelectorAll("code.katex.language-katex");const r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=k.getCSS(!0,"katex");const s=this;function a(t,e){It()?(e(n.ownerDocument.body,s.config),t(!0)):setTimeout(()=>{a(t,e)},10)}return new Promise(t=>{Wt(this.config.engine,e=>{a(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=k.getCSS(!0,"katex"),j.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return _t=t.length+e.length,Wt(n.engine),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Vt(t,n,!1))}),e.forEach(t=>{i.push(Vt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Xt={},Zt={};function Qt(t,e){t.forEach(t=>{!function(t,e){const n=j.createElementMeta("Tex",t,!0);if(!n||!n.data)return;const o=Xt[n.hash];if(o)return void t.parentNode.replaceWith(o);let i="";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(i=e[e.length-1])}i.length>0&&window&&window.fetch&&e&&(e.elements=e.elements??[],e.elements.push({type:i,id:n.id}))}(t,e)})}function Yt(){if(!window||!("Kroki"in window))return;const t=window.Kroki;if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e=t.config.imageFormat??"svg";t.elements.forEach(({type:n,id:o})=>{const i=document.querySelector("#"+o);if(!i)return;const r=i.dataset.lang,s=i.textContent.trim(),a=j.hashString(r+s),l=Xt[a];if(l)return void i.parentNode.replaceWith(l);if("function"==typeof t.svgRender&&t.svgRender){const o={diagramType:n,imageFormat:e};try{t.svgRender(i.id,s,o).then(t=>{const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Xt[a]=e}).catch(t=>{})}catch(t){}return}const c=`${"https://"+(t.config.serverUrl??"kroki.io")}/${n}/${e}`;try{window.fetch(c,{method:"POST",body:s,headers:{Accept:"*/*","Content-Type":"text/plain; charset=utf-8"}}).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(t=>{if(t){const e=document.createElement("div");e.id=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Xt[a]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function te(t){return[{type:"output",config:((t={})=>({serverUrl:"kroki.io",imageFormat:"svg",svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-kroki-"]');return!!n.length&&(window&&(window.Kroki=Zt),Zt.config={serverUrl:this.config.serverUrl,imageFormat:this.config.imageFormat},Zt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-kroki",code:Yt,once:!0}),Qt(n,Zt),Zt.elements?.length>0&&(o=e,Object.keys(Xt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Xt[t]})),t);var o}}]}if(void 0===ee)var ee=window.Shiki||void 0;function ne(){return!(void 0===(ee=window.Shiki)||!ee)}let oe,ie=!1;function re(){function t(){let t;function e(t,e){t.content&&(t.content.textContent=e),t.root&&t.root.classList.remove("hidden"),t.timer&&(clearTimeout(t.timer),t.timer=null),t.timer=setTimeout(()=>{t.content&&(t.content.textContent=""),t.root&&t.root.classList.add("hidden"),t.timer=null,t.content=null,t.root=null},5e3)}const n=document.querySelectorAll(".codeblock-container");if(n?.length){!function(e){if(t)return t;const n=e.createElement("div");n.classList.add("select-items","select-theme-items");const o=[];window.Shiki.bundledThemesInfo.forEach(i=>{const r=function(n,o,i){const r=e.createElement("div");r.classList.add("options-item"),r.dataset.theme=o,r.dataset.name=i,r.title=i;const s=e.createElement("span");return s.classList.add("select-item-content"),s.textContent=i,r.appendChild(s),r.addEventListener("click",function(e){const o=e.currentTarget;if(o.classList.add("selected-item"),Array.from(n.children).forEach(function(t){t!==o&&t.classList.remove("selected-item")}),t&&t.container){const e=t.container,n=t.themer,i=t.tools;if(e.dataset.theme=o.dataset.theme,e.dataset.themeName=o.dataset.name,n){const t=R.getLangString("code-theme-prefix");n.dataset.title=t+o.dataset.name}const r=e.dataset.language,s=o.dataset.theme,a=e.querySelector("pre code");if(a){const t=a?.textContent;window.Shiki.codeToHtml(t,{lang:r,theme:s}).then(t=>{a.parentNode.outerHTML=t})}i&&i.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null}n.style="",n.remove(),e.stopPropagation()}),{option:r,content:s}}(n,i.id,i.displayName);n.appendChild(r.option),o.push(r)});const i=[];window.Shiki.bundledLanguagesInfo.forEach(t=>{i.push(t.id),t.aliases&&t.aliases.forEach(t=>{i.push(t)})}),t={options:n,items:o,langs:i}}(document);for(let o=0;n.length>o;o++){const i=n[o],r=i.querySelector(".codeblock-tools"),s=i.querySelector(".tools-button-copy");s&&s.addEventListener("click",function(){const t=i.querySelector("pre code"),n={root:i.querySelector(".tools-message"),content:i.querySelector(".tools-message-content")},o=t?.textContent;navigator.clipboard.writeText(o).then(function(){e(n,R.getLangString("msg-copy-success"))},function(t){e(n,R.getLangString("msg-copy-failed"))})});const a=i.querySelector(".tools-button-theme");a&&a.addEventListener("click",function(e){if(t){let n;t.container&&t.options&&t.options.remove(),t.container=i,t.themer=a,t.tools=r,t.tools&&t.tools.classList.add("show-theme-options"),t.items.forEach(function(t){i.dataset.theme===t.option.dataset.theme?(n=t.option,t.option.classList.add("selected-item")):t.option.classList.remove("selected-item")});const o=a.getBoundingClientRect(),s=t.container.getBoundingClientRect();t.options.style.top=o.bottom-s.top-1+"px",t.options.style.right=0,t.container.appendChild(t.options),t.options.classList.remove("hidden"),n&&n.scrollIntoView({container:"nearest"}),e.stopPropagation()}})}document.addEventListener("click",function(){t?.options?.parentNode&&(t.options.style="",t.options.remove(),t.tools&&t.tools.classList.remove("show-theme-options"),t.container=null,t.themer=null,t.tools=null)},!1)}}window&&"Shiki"in window?t():import("https://esm.sh/shiki@3.21.0").then(e=>{window.Shiki="default"in e&&e.default?e.default:e,t()})}function se(t,e,n){if(ne()){const o=e.classList[0];let i="";for(let t=0;ee.bundledLanguagesInfo.length>t;t++){const e=ee.bundledLanguagesInfo[t];if(e.id===o){i=e.name;break}if(e.aliases&&e.aliases.includes(o)){i=e.name;break}}if(!i)return void t(!1);let r=c;for(let t=0;ee.bundledThemesInfo.length>t;t++)if(ee.bundledThemesInfo[t].id===r){r=ee.bundledThemesInfo[t].displayName;break}const s=e.textContent.trim(),a=e.ownerDocument,l=j.parseAttribute(e.dataset.lang),c=l?.theme?l.theme:n.theme;return void ee.codeToHtml(s,{lang:o,theme:c}).then(n=>{const s=a.createElement("div");s.classList.add("codeblock-container"),s.dataset.theme=c,s.dataset.themeName=r,s.dataset.language=o,s.dataset.langName=i;const l=function(t,e,n){const o=R.getLangString("code-copy"),i=R.getLangString("code-theme-prefix"),r=R.getLangString("code-lang-prefix"),s=t.createElement("div");return s.classList.add("codeblock-tools","toolbar-hover"),s.innerHTML=`<div class="tools-message hidden">\n <div class="tools-icon tools-message-icon">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-info"/>\n </svg>\n </div>\n <span class="tools-message-content"></span>\n </div>\n <div class="tools-icon tools-button-lang" rel="tooltip" data-title="${r}${e}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-language"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-theme" rel="tooltip" data-title="${i}${n}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-theme"/>\n </svg>\n </div>\n <div class="tools-icon tools-button-copy" rel="tooltip" data-title="${o}">\n <svg xmlns="http://www.w3.org/2000/svg">\n <use xlink:href="#svg-icon-copy"/>\n </svg>\n </div>`,s}(a,i,r);s.appendChild(l);const u=function(t){return oe||(oe=t.createElement("div"),oe)}(a);u.innerHTML=n;const d=u.children[0];d.remove(),s.appendChild(d),e.parentNode.replaceWith(s),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{se(t,e,n)},100)}function ae(t,e){return function(){const t=ne();if("undefined"!=typeof window){if(ie)return t;t||(ie=!0,k.loadScript("Shiki").then(t=>{ee=j.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{se(n,t,e)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}const le=['<symbol id="svg-icon-info" viewBox="64 64 896 896" fill="currentColor"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"></path></symbol>','<symbol id="svg-icon-language" viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m0-938.666667C276.352 85.333333 85.333333 276.352 85.333333 512s191.018667 426.666667 426.666667 426.666667 426.666667-191.018667 426.666667-426.666667A426.666667 426.666667 0 0 0 512 85.333333z m0 682.666667a42.666667 42.666667 0 0 1-42.368-42.666667v-255.573333a42.368 42.368 0 1 1 84.693333 0V725.333333A42.410667 42.410667 0 0 1 512 768z m0-426.666667a42.325333 42.325333 0 1 1-0.085333-84.650666A42.325333 42.325333 0 0 1 512 341.333333z m42.325333-42.666666v0z" fill="currentColor"></path></symbol>','<symbol id="svg-icon-theme" viewBox="0 0 1024 1024"><path fill="currentColor" d="M42.666667 512C42.666667 251.733333 251.733333 42.666667 512 42.666667s469.333333 187.733333 469.333333 422.4c0 72.533333-29.866667 145.066667-81.066666 200.533333-51.2 51.2-123.733333 81.066667-200.533334 81.066667h-85.333333c-12.8 0-25.6 12.8-29.866667 25.6 0 8.533333 4.266667 17.066667 8.533334 21.333333 21.333333 21.333333 29.866667 46.933333 29.866666 76.8 0 64-51.2 110.933333-115.2 115.2C251.733333 981.333333 42.666667 772.266667 42.666667 512z m85.333333 0c0 213.333333 170.666667 384 384 384 17.066667 0 29.866667-12.8 29.866667-29.866667 0-4.266667 0-8.533333-4.266667-12.8l-4.266667-4.266666c-17.066667-21.333333-25.6-46.933333-29.866666-76.8 0-64 51.2-110.933333 115.2-110.933334h85.333333c51.2 0 102.4-21.333333 136.533333-55.466666 38.4-38.4 55.466667-85.333333 55.466667-136.533334 0-187.733333-170.666667-341.333333-384-341.333333s-384 170.666667-384 384z m593.066667 21.333333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-17.066667 0-38.4-8.533333-51.2-21.333334z m-520.533334 0c-21.333333-21.333333-25.6-51.2-17.066666-76.8 12.8-25.6 38.4-42.666667 64-42.666666 38.4 0 68.266667 34.133333 72.533333 72.533333 0 29.866667-17.066667 55.466667-42.666667 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266667-21.333333 0-38.4-8.533333-51.2-21.333334z m379.733334-187.733333c-21.333333-21.333333-25.6-51.2-17.066667-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533333 72.533334 0 29.866667-17.066667 55.466667-42.666666 64-8.533333 4.266667-17.066667 4.266667-25.6 4.266666-21.333333 0-38.4-8.533333-51.2-21.333333zM341.333333 345.6c-17.066667-21.333333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.666667 64-42.666667 38.4 0 68.266667 34.133333 72.533334 72.533334 0 29.866667-17.066667 55.466667-42.666667 64l-29.866667 4.266666c-17.066667 0-34.133333-8.533333-51.2-21.333333z"></path></symbol>','<symbol id="svg-icon-copy" viewBox="0 0 16 16"><path d="M7 5h2a3 3 0 0 0 3-3 2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2 3 3 0 0 0 3 3zM6 2a2 2 0 1 1 4 0 1 1 0 0 1-1 1H7a1 1 0 0 1-1-1z" fill-rule="evenodd"></path></symbol>'];function ce(t){return[{type:"output",config:((t={})=>({theme:"ayu-dark",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll('code[class*="language-"]');if(!n.length)return!1;return t.scripts.push({id:"shiki-ext",code:re,module:!0}),t.symbols.push(...le),ae(n,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown zenuml extension can only be used in browser environment!");const ue="zenuml";if(void 0===de)var de=window.zenuml||void 0;function pe(){return!(void 0===de||!de)}let he=!1;function me(t,e){if(pe()){const n=e.id,o=e.className,i=e.data,r=e.element.parentNode,s=e.element,a=e.lang?.options??{},l=s.ownerDocument.createElement("div");l.id=n,s.style.cssText.length>0&&(l.style.cssText=s.style.cssText),l.className=o,l.classList.remove("zenuml"),a.theme||(a.theme="theme-blue");return new de(l).render(i,a),r.replaceWith(l),void t(!0)}setTimeout(()=>{me(t,e)},10)}function fe(t){return new Promise(e=>{const n=j.createElementMeta(ue,t);if(!n||!n.data)return e(!1);me(e,n)})}function ge(t,e){return function(){const t=pe();if("undefined"!=typeof window){if(he)return t;if(!t)return he=!0,k.loadScript(ue).then(t=>{de=j.interopDefault(window[t])}).catch(t=>{}),t}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(fe(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown plotly extension can only be used in browser environment!");const ye="Plotly";if(void 0===we)var we=window.Plotly||void 0;function ve(){return!(void 0===we||!we)}let xe=!1;function be(t,e,n){if(ve()){const o=e.id,i=e.className,r=e.data,s=e.element.parentNode,a=e.element,l=a.ownerDocument.createElement("div");return l.id=o,a.style.cssText.length>0&&(l.style.cssText=a.style.cssText),l.className=i,s.replaceWith(l),n.push({id:o,code:`(function(){\n try {\n const it = document.querySelector('#${o}');\n if (!it) return;\n ${r}\n }catch(e){\n console.error('plotly script run failed: ', e.toString());\n }\n})();`,host:l}),void t(!0)}setTimeout(()=>{be(t,e,n)},10)}function ke(t,e){return new Promise(n=>{const o=j.createElementMeta(ye,t);if(!o||!o.data)return n(!1);be(n,o,e)})}function Ee(t,e){!function(){const t=ve();if("undefined"!=typeof window){if(xe)return t;if(!t)return xe=!0,k.loadScript(ye).then(t=>{we=j.interopDefault(window[t])}).catch(t=>{}),t}}();const n={inner:[]};return e.push(n),new Promise(e=>{const o=[];t.forEach(t=>{o.push(ke(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const Se={},Le={};function $e(t,e){t.forEach(t=>{!function(t,e){const n=j.createElementMeta("Gnuplot",t,!0);if(!n||!n.data)return;const o=Le[n.hash];if(o)return void t.parentNode.replaceWith(o);e.elements=e.elements??[];const i={id:n.id};n.lang&&(i.lang=n.lang),n.hash&&(i.hash=n.hash),e.elements.push(i)}(t,e)})}function je(){if(!window||!("Gnuplot"in window))return;const t=window.Gnuplot;t.elements&&Array.isArray(t.elements)&&0!==t.elements.length&&"function"==typeof t.svgRender&&t.svgRender&&(t.elements.forEach(({id:e,hash:n})=>{const o=document.querySelector("#"+e);if(!o)return;let i=Le[n];if(i)o.parentNode.replaceWith(i);else try{const e=`set terminal svg\n${o.textContent.trim()}\n`;t.svgRender(o.id,e).then(t=>{i=document.createElement("div"),i.id=o.id,i.className=o.className,o.style.cssText.length>0&&(i.style=o.style.cssText),i.innerHTML=t,o.parentNode.replaceWith(i),Le[n]=i}).catch(t=>{})}catch(t){}}),delete t.elements)}function Ce(t){return[{type:"output",config:((t={})=>({svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.gnuplot.language-gnuplot");return!!n.length&&(window&&(window.Gnuplot=Se),Se.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-gnuplot",code:je,once:!0}),$e(n,Se),Se.elements?.length>0&&(o=e,Object.keys(Le).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Le[t]})),t);var o}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===Ae)var Ae=window.MathJax||void 0;let Ne=0;function Me(){return!(void 0===Ae||!Ae)}let Te=!1;function qe(t){const e=Me();if("undefined"!=typeof window){if(Te)return e;e||(Te=!0,window.MathJax={tex:{inlineMath:{"[+]":[["\\$","\\$"]]},displayMath:{"[+]":[["@@","@@"]]}},svg:{fontCache:"global"},startup:{pageReady:()=>window.MathJax.startup.defaultPageReady().then(()=>{})}},t?j.deepMerge(window.MathJax,t):window.MathJaxConfig&&j.deepMerge(window.MathJax,window.MathJaxConfig),k.loadScript("MathJax").then(t=>{Ae=j.interopDefault(window[t])}).catch(t=>{}))}return e}function Oe(t,e){if(Me()){const n=e.id,o=e.className,i=e.cssLink??"",r=i.length>0?" css-mathjax":"",s=e.element,a=s.ownerDocument;return void Ae.tex2svgPromise(e.data,e.options).then(e=>{const l=a.createElement("div");l.id=n,l.className=`${o}${r}`,i.length>0&&(l.dataset.css=i),s.style.cssText.length>0&&(l.style=s.style.cssText),l.appendChild(e),s.parentNode.replaceWith(l),--Ne,Ne||Ae.startup.document.clear(),t(!0)}).catch(e=>{--Ne,Ne||Ae.startup.document.clear(),t(!1)})}setTimeout(()=>{Oe(t,e)},10)}function Pe(t,e){return new Promise(n=>{const o=j.createElementMeta("MathJax",t);if(!o||!o.data)return n(!1);o.options=Object.assign(e??{},o.options??{}),Oe(n,o)})}const ze=(t={})=>{let e={engine:"mathjax",delimiters:[],mathJax:{},conversion:{},...t};function n(t,e){return!(!t||"object"!=typeof t||!t.hasOwnProperty(e))}function o(t,e,o){return!!(n(t,e)&&n(t[e],o)&&(i=t[e][o],Array.isArray(i)&&i.length))&&(t[e][o].forEach(t=>{t.display="inline"!==o,t.asciimath=!0}),t[e][o]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(o(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(o(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function De(t){if(!Me())return void setTimeout(()=>{De(t)},10);const e=document.querySelector(".showdowns");e&&(window.MathJax.startup.document&&window.MathJax.startup.document.clearMathItemsWithin([e]),window.MathJax.texReset(),window.MathJax.typesetPromise().then(()=>{window.MathJax.startup.document.clear(),"function"==typeof t&&t&&t(window.MathJax)}).catch(t=>{}))}function He(t){const e=ze(t);return[{type:"output",config:e,filter:function(t){const n=t.wrapper;if(!n)return!1;this.config.mathJax=this.config.mathJax??{};const o=this.config.mathJax;if(e.delimiters?.length>0){const t={inlineMath:{},displayMath:{}};e.delimiters.forEach(e=>{e.display?t.displayMath["[+]"]=(t.displayMath["[+]"]??[]).concat([[e.left,e.right]]):t.inlineMath["[+]"]=(t.inlineMath["[+]"]??[]).concat([[e.left,e.right]])}),o.tex||(o.tex={inlineMath:{},displayMath:{}}),o.tex.inlineMath=o.tex.inlineMath??{},o.tex.displayMath=o.tex.displayMath??{},0==(o.tex.inlineMath["[+]"]??[]).length&&(o.tex.inlineMath["[+]"]=t.inlineMath["[+]"]),0==(o.tex.displayMath["[+]"]??[]).length&&(o.tex.displayMath["[+]"]=t.displayMath["[+]"])}let i=!1;if("mathjax"===this.config.engine){const e=n.querySelectorAll(":not(code):not(pre)");if(e.length>0)for(let n=0;e.length>n;n++){if(e[n].textContent.match(/(?:@@|\$\$|\\\$|\\\(|\\\[|\\begin\{.*?})/)){t.scripts.push({id:"showdown-mathjax",code:De,once:!0}),qe(this.config.mathJax),i=!0;break}}}const r=n.querySelectorAll("code.mathjax.language-mathjax,code.math.language-math");return r.length?function(t,e){return Ne=t.length,qe(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(Pe(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(r,this.config).then(()=>t):!!i&&t}}]}const Be="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Be} extension can only be used in browser environment!`);if(void 0===Re)var Re=window.echarts||void 0;function _e(){return!!Re}let Ie=!1;function Fe(t,e){if(_e()){const n=e.id,o=e.container,i=e.className,r=e.element.parentNode;e.lang?(e.lang.width||(e.lang.width="400px"),e.lang.height||(e.lang.height="300px")):e.lang={width:"400px",height:"300px"};return r.outerHTML=`<div id="${o}" class="${i}" style="${`width:${e.lang.width}; height:${e.lang.height};`}"><div id="${n}" style="width:100%;height:100%;display:inline-block"></div></div>`,t(!0)}setTimeout(()=>{Fe(t,e)},20)}function We(t,e,n){const o=j.createElementMeta(Be,t);if(!o||!o.data)return Promise.resolve(!1);n={...n,ssr:!1,width:o.lang.width,height:o.lang.height};const i={id:o.container,code:((t,e)=>{const n=()=>{const n=window.eval;let o=document.getElementById(t.id);if(o){let i=Re.getInstanceByDom(o);if(i||(o.innerHTML=""),i=Re.init(o,null,e),t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()){const e=n(`(function(){${t.data}; return option;})();`);i.setOption(e)}else{const e=JSON.parse(t.data);i.setOption(e)}}};return n.toString=()=>t.lang&&t.lang.type&&"string"==typeof t.lang.type&&"javascript"==t.lang.type.toLowerCase()?`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ${t.data}\n chart.setOption(option);\n }\n }`:`function(){\n const config = ${JSON.stringify(e)};\n let el = document.getElementById('${t.id}');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ${t.data};\n chart.setOption(option);\n }\n }`,n})(o,n),host:"#"+o.container};return e.push(i),new Promise(t=>{Fe(t,o)})}function Je(t,e,n){const o={outer:[{name:Be,src:k.getSrc(!1,Be,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=_e();if("undefined"!=typeof window){if(Ie)return t;t||(Ie=!0,k.loadScript(Be).then(t=>{Re=j.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(We(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function Ve(t){return[{type:"output",config:((t={})=>({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${Be}.language-${Be}`);return!!n.length&&Je(n,t.scripts,this.config).then(()=>t)}}]}const Ue="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Ge)var Ge=window.mermaid||void 0;function Ke(){return!(void 0===Ge||!Ge)}let Xe=!1;function Ze(t,n){if(Ke()){const o=n.id,i=n.className,r=n.element.parentNode,s=n.element,a=s.ownerDocument;return void Ge.render(o,n.data).then(n=>{let l=s.style.cssText;const c=a.createElement("div");c.classList.add("diagram-container","has-actions");const u=a.createElement("div");i&&(u.className=i),u.classList.add("diagram-wrapper"),l.length>0&&u.setAttribute("style",l),u.innerHTML=n.svg,c.appendChild(u),function(t,n,o){const i=t.ownerDocument,r=i.createElement("details");r.setAttribute("title",R.getLangString("export-actions-title","Click to view actions"));const s=i.createElement("summary");s.innerHTML='<svg viewBox="0 0 16 16" fill="currentColor" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <circle r="2" cy="8" cx="2"></circle>\n <circle r="2" cy="8" cx="8"></circle>\n <circle r="2" cy="8" cx="14"></circle>\n</svg>',r.append(s),document.addEventListener("click",t=>{r.contains(t.target)||r.removeAttribute("open")});const a=i.createElement("div");a.classList.add("diagram-actions");for(const t of["svg","png"]){const r=R.getLangString(`export-${t}-action`,"Save as "+t.toUpperCase()),s=i.createElement("a");s.text=r,s.href="#",s.target="_blank",s.download=`${o}.${t}`,s.addEventListener("mousedown",async function(o){o.preventDefault();const i="svg"===t?await e.svgAsDataUri(n,{autosize:!0,encoderOptions:1,excludeCss:!0}):await e.svgAsPngUri(n,{encoderOptions:1,excludeCss:!0,backgroundColor:"#fff"});this.href=i}),a.append(s)}r.append(a),t.appendChild(r)}(c,u.querySelector("svg"),o),r.replaceWith(c),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{Ze(t,n)},10)}function Qe(t,e){return function(t){const e=Ke();if("undefined"!=typeof window){if(Xe)return e;if(!e)return Xe=!0,k.loadScript(Ue).then(e=>{if("string"==typeof e)(Ge=j.interopDefault(window[e])).initialize(t);else if(Array.isArray(e)&&e.length>0){const n=[],o=[];e.forEach(t=>{const e=j.interopDefault(window[t]);Array.isArray(e)?o.push(...e):n.push(e)});const i=n[0];n.shift(),o.length>0&&i.registerLayoutLoaders(o),n.length>0?i.registerExternalDiagrams(n).then(()=>{(Ge=i).initialize(t)}):(Ge=i).initialize(t)}}),e}Ge.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=j.createElementMeta(Ue,t);if(!n||!n.data)return e(!1);Ze(e,n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}function Ye(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,s="";return s+=tn(63&t>>2),s+=tn(63&o),s+=tn(63&i),s+=tn(63&r)}function tn(t){return 10>t?String.fromCharCode(48+t):26>(t-=10)?String.fromCharCode(65+t):26>(t-=26)?String.fromCharCode(97+t):0==(t-=26)?"-":1==t?"_":"?"}function en(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function nn(t){var e=en(t[0]),n=en(t[1]),o=en(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&en(t[3])]}function on(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?Ye(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?Ye(t.charCodeAt(n),0,0):Ye(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(n.deflateRawSync(t,{level:9}).toString("binary"))}function rn(t){return""+n.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=nn(t.substring(n,n+4));e+=String.fromCharCode(o[0]),e+=String.fromCharCode(o[1]),e+=String.fromCharCode(o[2])}return e}(t),"binary"))}const sn={encodeuml:function(t){const e="@startuml",n="@enduml";return on(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return rn(t)}},an="svg",ln={};let cn=0;function un(t,e){return new Promise(n=>{const o=[],i=[];t.forEach(t=>{const n=function(t,e){const n=j.createElementMeta("PlantUML",t,!0);if(!n||!n.data)return;const o=ln[n.hash];if(!o)return o=>{const i=e.imageFormat;if("svg"===i){if("function"==typeof e.svgRender&&e.svgRender){try{e.svgRender(n.id,n.data,{count:cn}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),ln[n.hash]=i,o(!0)})}catch(t){o(!1)}return}if(window&&window.fetch){const r=window.location&&window.location.protocol,s=i!==an?"."+i:"",a=`${("http:"===r||"https:"===r?"//":"https://")+e.umlWebSite}/${i}/${sn.encodeuml(n.data)}${s}`;try{window.fetch(a).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{const i=document.createElement("div");i.id=n.id,i.className=n.className,t.style.cssText.length>0&&(i.style=t.style.cssText),i.innerHTML=e,t.parentNode.replaceWith(i),ln[n.hash]=i,o(!0)}).catch(t=>{o(!1)})}catch(t){o(!1)}return}return void o(!1)}let r=t.style.cssText;r.length>0&&(r=` style="${r}"`);const s=window&&window.location.protocol,a=("http:"===s||"https:"===s?"//":"https://")+e.umlWebSite,l=i!==an?"."+i:"",c=sn.encodeuml(code);return t.parentNode.outerHTML=`<div id="${n.id}" class="${n.className}"${r}><img src='${a}/${i}/${c}${l}' alt=''></img></div>`,o(!0)};t.parentNode.replaceWith(o)}(t,e);n&&i.push(n)}),cn=i.length,i.forEach(t=>{o.push(new Promise(t))}),Promise.all(o).then(()=>{n(!0)})})}function dn(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:an,svgRender:null,...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&un(n,this.config).then(()=>{var n;return n=e,Object.keys(ln).forEach(t=>{n.querySelector(`[id*="-${t}"]`)||delete ln[t]}),t})}}]}const pn="railroad";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let hn=!1;function mn(){return hn}let fn,gn=!1;function yn(t,e){if(mn()){const n=e.id,o=e.className,i=window.eval(e.data).format(),r=e.element.ownerDocument;let s=e.element.style.cssText;return s.length>0&&(s=` style="${s}"`),e.element.parentNode.outerHTML=`<div id="${n}" class="${o}"${s}></div>`,i.addTo(r.getElementById(n)),t(!0)}setTimeout(()=>{yn(t,e)},10)}function wn(t){return new Promise(e=>{const n=j.createElementMeta(pn,t);if(!n||!n.data)return e(!1);yn(e,n)})}function vn(t){return function(){const t=mn();if("undefined"!=typeof window){if(gn)return t;t||(gn=!0,k.loadScript(pn).then(()=>{hn=!0}).catch(t=>{}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(wn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===xn)var xn=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(fn=window.Diagram,window.Diagram.Signal))var bn=window.Diagram;const kn=["simple","hand"];if(void 0===bn&&"undefined"!=typeof window)bn=window.SequenceJS;function En(){return!!xn}function Sn(){return En()&&!!bn}let Ln=!1;function $n(t){const e=j.createElementMeta("sequence",t);if(!e||!e.data)return;const n=function(){const t=Sn();if("undefined"!=typeof window){if(Ln)return t;t||(Ln=!0,k.loadScript("WebFont").then(()=>En()?"Raphael":k.loadScript("Raphael")).then(t=>(xn=j.interopDefault(window[t]),k.loadScript("Snap"))).then(()=>k.loadScript("underscore")).then(()=>(!fn&&window.Diagram&&(fn=window.Diagram),k.loadScript("sequence"))).then(()=>{bn=window.Diagram,window.SequenceJS=bn,fn&&(window.Diagram=fn)}).catch(t=>{}))}return t}(),o=e.data;t.classList.replace("sequence","js-sequence"),!n&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(e.id).then(n=>{window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:t.id,className:t.className,data:o,lang:e.lang}}))}function jn(t){if(Sn()){const e=t.id,n=t.className,o=t.data,i=t.lang;if(!o||0===o.length)return;let r="hand";i&&i.theme&&-1!=kn.indexOf(i.theme)&&(r=i.theme);let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void bn.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{jn(t)},10)}function Cn(){let t=!1;return[{type:"output",filter:function(e){if("string"==typeof e){const n=(new DOMParser).parseFromString(e,"text/html"),o=void 0!==n.body?n.body:n,i=o.querySelectorAll("code.sequence.language-sequence");return i.length&&(t||"undefined"!=typeof window&&window.dispatchEvent&&(t=!0,window.addEventListener("sequence",t=>{t.detail&&jn(t.detail)})),this.config={cssLink:k.getCSS(!0,"sequence")}),function(t){return!!t.length&&(t.forEach(t=>{$n(t)}),!0)}(i)?o.innerHTML:e}if(!e||!e.wrapper)return!1;const n=e;return n.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&j.addCssLink(n,k.getCSS(!0,"sequence"),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===An)var An=window.WaveDrom||void 0;let Nn=0,Mn=0;function Tn(){return!!An}let qn=!1;function On(t,e){if(Tn()){const n=e.index,o=e.id,i=e.className,r=e.data;if(!r||0===r.length)return t(!1);let s=e.element;return s.parentNode.outerHTML=j.renderCacheElement(s.ownerDocument,o+n,i,t=>{const e=window.eval(`(${r})`);An.RenderWaveForm(n,e,o);const i=document.getElementById("WaveDrom_Display_"+n);if(t!=i)for(;i.childNodes.length;)t.appendChild(i.removeChild(i.childNodes[0]))}),t(!0)}setTimeout(()=>{On(t,e)},10)}function Pn(t){return new Promise(e=>{const n=t.dataset.lang,o=n?JSON.parse(n):null;let i="";if(o){if("boolean"==typeof o.codeblock&&o.codeblock||"string"==typeof o.codeblock&&"true"===o.codeblock.toLowerCase())return e(!1);o.align&&("center"===o.align?i="diagram-center":"right"===o.align&&(i="diagram-right"))}const r=t.textContent.trim();if(0===r.length)return e(!1);const s=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,a=Mn;++Mn,--Nn,Nn||(Mn=0);const l="WaveDrom_Display_";t.id=l+a;On(e,{element:t,index:a,id:l,className:s,data:r})})}function zn(t,e){return function(t){const e=Tn();qn||e||(qn=!0,"undefined"!=typeof window&&k.loadScript("WaveDrom","default","",t).then(t=>{An=j.interopDefault(window[t])}).catch(t=>{}))}(e),new Promise(e=>{const n=[];Nn=t.length,t.forEach(t=>{n.push(Pn(t))}),Promise.all(n).then(()=>{e(!0)})})}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===Dn)var Dn=window.Raphael||void 0;if(void 0===Hn)var Hn=window.flowchart||void 0;function Bn(){return!(void 0===Dn||!Dn||void 0===Hn||!Hn)}let Rn=!1;function _n(){const t=Bn();if("undefined"!=typeof window){if(Rn)return t;if(!t){if(Rn=!0,!Dn)return k.loadScript("Raphael").then(t=>(Dn=j.interopDefault(window[t]),k.loadScript("flowchart"))).then(t=>{Hn=j.interopDefault(window[t])}).catch(t=>{}),t;k.loadScript("flowchart").then(t=>{Hn=j.interopDefault(window[t])}).catch(t=>{})}}return t}function In(t,e){if(Bn()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.options;return e.element.parentNode.outerHTML=j.renderCacheElement(e.element.ownerDocument,n,o,t=>{Hn.parse(i).drawSVG(t,r)}),void t(!0)}setTimeout(()=>{In(t,e)},10)}function Fn(t,e){return new Promise(n=>{const o=j.createElementMeta("flowchart",t);if(!o||!o.data)return n(!1);o.options=e,In(n,o)})}function Wn(t){const e=((t={})=>({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}},...t}))(t);return[{type:"output",config:e,filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.flowchart.language-flowchart"),o=e.querySelectorAll("code.flow.language-flow");return!(!n.length&&!o.length)&&function(t,e,n){return _n(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Fn(t,n))}),e.forEach(t=>{i.push(Fn(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const Jn=new class{events={};on(t,e){this.events[t]||(this.events[t]=new Set),this.events[t].add(e)}off(t,e){this.events[t]?.delete(e)}emit(t,...e){let n=0;const o=this.events[t];return o&&o.forEach(t=>{t(...e),n++}),n}};function Vn(t){switch(t){case"tip":case"提示":return"tip";case"info":case"信息":return"info";case"warning":case"警告":return"warning";case"error":case"错误":return"error";case"danger":case"危险":return"danger";case"summary":case"概要":return"summary";case"tldr":case"摘要":return"tldr";case"abstract":case"抽象":return"abstract";case"todo":case"待办":return"todo";case"hint":case"小窍门":return"hint";case"success":case"成功":return"success";case"check":case"检测":return"check";case"done":case"完成":return"done";case"help":case"帮助":return"help";case"question":case"问题":return"question";case"faq":case"问答":return"faq";case"attention":case"关注":return"attention";case"caution":case"提醒":return"caution";case"failure":case"故障":return"failure";case"fail":case"失败":return"fail";case"missing":case"缺失":return"missing";case"bug":case"缺陷":return"bug";case"example":case"示例":return"example";case"snippet":case"片段":return"snippet";case"quote":case"引用":return"quote";case"cite":case"引文":return"cite";case"important":case"重点":return"important";case"key":case"要点":return"key";case"container":case"容器":return"container";case"row":case"行":return"row";case"col":case"列":return"col";default:return t}}function Un(t,e,n){if(!t)return e;const o=t.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g).map(t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t);let i=e??{};return o.forEach(t=>{if(t)if("#"===t[0]||"."===t[0]){const e=t.split(".");"#"===e[0][0]&&(i.id=e[0].substring(1),e.shift()),e.length>0&&(i.classList||(i.classList=[]),e.forEach(n&&0!==n.length?t=>{if(t){if(!i.style){const e=Vn(t);e&&(i.style=e)}n.includes(t)||i.classList.includes(t)||i.classList.push(t)}}:t=>{t&&!i.classList.includes(t)&&i.classList.push(t)}))}else{const e=t.split("=");i.attribute||(i.attribute={});const n=e[0].toLowerCase();if(e.length>1){if("id"!==n&&"class"!==n){let t=e[1];t="true"===t.toLowerCase()||"false"!==t.toLowerCase()&&(isNaN(t)?t.replace(/^(['"]{0,1})(.*)\1$/,"$2"):Number(t)),i.attribute[n]=t}}else i.attribute[n]=void 0}}),i}function Gn(t){if(!t)return"";let e="";for(const[n,o]of Object.entries(t))switch(e+=" "+n,typeof o){case"boolean":e+="true";break;case"number":e+="="+o;break;case"undefined":break;default:e+=`="${o}"`}return e}const Kn="resetImagePath";function Xn(t){return new Promise(e=>{const n=[];t.forEach(t=>{n.push(function(t){return new Promise(e=>{const n=t.dataset.src;if(!n)return e(!1);const o="image-"+Date.now()+Math.floor(1e4*Math.random()),i=o=>{o||(o=n),t.src=o,delete t.dataset.src,e(!0)};Jn.emit(Kn,o,n,i)||i(n)})}(t))}),Promise.all(n).then(()=>{e(!0)})})}const Zn={};Zn[Kn]=Kn;const Qn=(t={})=>({flavor:"github",metadata:!0,underline:!1,mathEngine:"mathjax",...t}),Yn=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},to=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.mathjax||{},s=e&&e.tex||{},a=e&&e.katex||{},c=e&&e.kroki||{},u=e&&e.vega||{},d=e&&e.shiki||{},p=e&&e.gnuplot||{},h={"showdown-toc":Yn("showdown-toc",U),"showdown-image":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("img.inline-image");return!!n.length&&Xn(n).then(()=>t)}}],"showdown-mermaid":(f=o,[{type:"output",config:((t={})=>({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50},...t}))(f),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Qe(n,this.config).then(()=>t)}}]),"showdown-mathjax":He(r),"showdown-katex":Kt(a),"showdown-flowchart":Wn(),"showdown-viz":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.dot.language-dot");return!!n.length&&tt(n).then(()=>t)}}],"showdown-vega":mt(u),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(m),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(l("Begin render wavedrom elements."),zn(n,this.config.skin).then(()=>(l("End render wavedrom elements."),t)))}}],"showdown-railroad":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:k.getCSS(!0,pn)},j.addCssLink(t,this.config.cssLink,"css-railroad"),vn(n).then(()=>t))}}],"showdown-abc":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${A}.language-${A}`);return!!n.length&&(this.config={cssLink:k.getCSS(!0,C)},j.addCssLink(t,this.config.cssLink,"css-abc"),D(n,t.scripts).then(()=>t))}}],"showdown-echarts":Ve(),"showdown-plotly":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.plotly.language-plotly");return!!n.length&&Ee(n,t.scripts).then(()=>t)}}],"showdown-antv":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.infographic.language-infographic");return!!n.length&&xt(n).then(()=>t)}}],"showdown-zenuml":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.zenuml.language-zenuml");return!!n.length&&ge(n).then(()=>t)}}],"showdown-sequence":Yn("showdown-sequence",Cn),"showdown-plantuml":dn(i),"showdown-kroki":te(c),"showdown-tex":st(s),"showdown-gnuplot":Ce(p),...n,"showdown-shiki":ce(d),"showdow-css":[{type:"output",filter:function(t){const e="css-ex-";j.removeAllStylesheet(e);const n=t.wrapper;if(!n)return!1;const o=n.querySelectorAll("a");return!!o.length&&(o.forEach(n=>{try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){let o=n.href.substr(4).trim();const i=""+j.hashString(o);j.addCssLink(t,o,e+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),o=k.getUrl(o),j.loadStylesheet(o,e+i)}}catch{}}),t)}}]};var m,f;let g=[];for(let e in h)h.hasOwnProperty(e)&&(t.asyncExtension(e,h[e]),g.push(e));return g},eo=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.appendChild(r)),!0},no=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;t&&"string"==typeof t&&(t=document.querySelector(t)),t||(t=document.getElementById(e))||(t=document.body);const i="script-"+e;let r=document.querySelector(`${t.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type=o?"module":"text/javascript",r.text=n,t.insertBefore(r,t.children[0])),!0};function oo(t,e,n){return new Promise((o,i)=>{t&&e&&"undefined"!=typeof document||i("Args is invaild!");const r=t.toLowerCase(),s="script-"+r;let a=document.getElementById(s);if(a)return o(t);const l=document.head||document.getElementsByTagName("head")[0];if(a=document.createElement("script"),a.id=s,n&&(a.type="module","string"==typeof n&&"import"===n))return a.textContent=`import * as ${r} from '${e}';\nif (!('${nativeName}' in window)) {\n if ('default' in ${r} && ${r}['default']) {\n window['${nativeName}'] = ${r}['default']\n } else {\n window['${nativeName}'] = ${r};\n }\n}`,l.appendChild(a),o(t);a.src=e,a.onload=()=>{o(t)},l.appendChild(a)})}const io=function(e,n,o){let i=n;if(e.host&&(i="string"==typeof e.host?document.querySelector(e.host):e.host),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){const t=e.code;return o?(o.then(()=>{t()}),!0):(t(),!0)}return o?(o.then(()=>{eo(i,e.id,e.code,e.module)}),!0):eo(i,e.id,e.code,e.module)}if(t.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){const t=e.code;o?o.then(()=>{t()}):t()}else o?o.then(()=>{no(i,e.id,e.code,e.module)}):no(i,e.id,e.code,e.module);if(e.inner.length>0)for(let t=0;e.inner.length>t;++t){const n=e.inner[t];if(!n.code)continue;if("function"==typeof n.code){const t=n.code;o?o.then(()=>{t()}):t();continue}let r=i;n.host&&(r="string"==typeof n.host?document.querySelector(n.host):n.host),o?o.then(()=>{eo(r,n.id,n.code,n.module)}):eo(r,n.id,n.code,n.module)}return!0},ro=["github","ghost","vanilla","original","allon"],so=["mathjax","katex"],ao={showdown:t,converter:null,eventBus:Jn,defaultOptions:{showdown:Qn(),toc:{},plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},mathjax:{},katex:{},kroki:{},vega:{theme:"vox"},shiki:{}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},toc:{},plantuml:{},mermaid:{},mathjax:{},katex:{},kroki:{},vega:{},shiki:{}})},onEvent:(t,e)=>{Zn[t]&&Jn.on(Zn[t],e)},setFlavor:function(t){this.showdown.setFlavor(t),this.converter&&this.converter.setFlavor(t)},getMetaData:function(){if(!this.converter)return null;const t=this.converter.getMetadata(!1);return t.raw=this.converter.getMetadata(!0),t.format=this.converter.getMetadataFormat(),t},addOptions:function(t){for(const e in t)"flavor"!==e&&"mathEngine"!==e&&(this.showdown.setOption(e,t[e]),this.converter&&this.converter.setOption(e,t[e]))},addExtension:function(e,n){if(this.removeExtension(e),"string"==typeof e)try{t.extension(e,n),this.converter&&this.converter.addExtension(e)}catch(t){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.extension(e)}catch(t){}if(!n)return;this.converter.removeExtension(n)}t.removeExtension(e)}},addAsyncExtension:function(e,n){if(this.removeAsyncExtension(e),"string"==typeof e)try{t.asyncExtension(e,n),this.converter&&this.converter.addAsyncExtension(e)}catch(t){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){let n=null;try{n=t.asyncExtension(e)}catch(t){}if(!n)return;this.converter.removeAsyncExtension(n)}t.removeAsyncExtension(e)}},setCDN:function(t,e,n,o){"string"==typeof t&&t&&k.setCDN(t,e,n,o)},setShowdownFlavor:function(t){this.initDefaultOptions(),t&&(-1===ro.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===so.indexOf(t)&&(t="mathjax"),this.defaultOptions.showdown.mathEngine=t,this.setExtensionOptions("katex",{engine:t}),this.setExtensionOptions("mathjax",{engine:t}))},setLanuageTheme:function(t){this.initDefaultOptions(),t&&(this.defaultOptions.shiki.theme=t,this.setExtensionOptions("shiki",{theme:t}))},setShowdownOptions:function(t){return this.initDefaultOptions(),"object"==typeof t&&t||(t={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},t),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.setMathEngine(this.defaultOptions.showdown.mathEngine),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setExtensionOptions:function(e,n){if(!n||"object"!=typeof n)return!1;let o=((e,n)=>{let o=null;try{o=t.asyncExtension(e)}catch{}return o||n})(e="showdown-"+e);if(!o&&(o=Yn(e),!o))return!1;if(!o.length)return!1;for(let t=0;o.length>t;t++){const e=o[t];if(e&&"output"===e.type&&e.config)return $(e.config,n),!0}return!1},setPlantumlOptions:function(t){return this.setExtensionOptions("plantuml",t)},setMermaidOptions:function(t){return this.setExtensionOptions("mermaid",t)},setKatexOptions:function(t){return this.setExtensionOptions("katex",t)},setKrokiOptions:function(t){return this.setExtensionOptions("kroki",t)},setVegaOptions:function(t){return this.setExtensionOptions("vega",t)},init:function(e){if(this.converter){let t={};if(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e,"object"==typeof t){if(t.hasOwnProperty("option")&&t.option){const t=Qn(this.defaultOptions&&this.defaultOptions.showdown||{});this.setFlavor(t.flavor),this.setMathEngine(t.mathEngine),this.addOptions(t)}if(t.hasOwnProperty("extension")&&t.extension)for(let[t,e]in this.defaultOptions)"showdown"!==t&&this.setExtensionOptions(t,e)}}else{const e=Qn(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":U(e.toc),"showdown-image":[{type:"listener",listeners:{"images.after":(t,e)=>e.replace(/!\[\[([^\[\]]*)\]\](?:\{([^\{\}]*)\})?/gm,(t,e,n)=>(n||(n=""),`<img class="inline-image" data-src="${e}" ${n}/>`))}}],"showdown-align":bt(),"showdown-footnotes":[{type:"lang",filter:(t,e)=>t.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,(t,n,o,i,r)=>`<div class="footnote" id="footnote-${n}"><a href="#footnote-${n}"><sup>[${n}]</sup></a>:${e.makeHtml(o.replace(RegExp("^"+r,"gm"),""))}</div>`)},{type:"lang",filter:t=>t.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,(t,e,n,o)=>`<small class="footnote" id="footnote-${e}"><a href="#footnote-${e}"><sup>[${e}]</sup></a>: ${o}</small>`)},{type:"lang",filter:t=>t.replace(/([^\\])\[\^([\d\w]+)\]/gm,(t,e,n)=>`${e}<a href="#footnote-${n}"><sup>[${n}]</sup></a>`)},{type:"lang",filter:t=>t.replace(/\\\[\^([\d\w]+)\]/gm,(t,e)=>`[^${e}]`)}],"showdown-directive":[{type:"listener",listeners:{"blockGamut.before":(e,n,o,i,r)=>(n=o._dispatch("directive.before",n,i,r),n=(n=(n=(n=(n=(n+="¨0").replace(/^!!! ((?:[^"\n]+[ \t]+)*)(?:"([^"\n]+)")?[ \t]*\n((?:(?: |\t)[^\r\n]*(?:\n|$)|\n)*)/gm,function(e,n,o,s){const a={classList:["admonition"]},l=(n=n.toLowerCase()).split(" ");if(l.includes("alert")||l.includes("note")||a.classList.push("note"),l.forEach((t,e)=>{if(t){if(!a.style){const e=Vn(t);e&&(a.style=e)}a.classList.includes(t)||a.classList.push(t)}}),a.style||(a.style="default"),a.classList.includes(a.style)||a.classList.push(a.style),o=o?`<div class="admonition-title">${o=t.subParser("spanGamut")(o,i,r)}</div>`:`<div class="admonition-title">${a.style?R.getLangString(a.style,a.style):R.getLangString("note","note")}</div>`,s){const e=s.split("\n");e.forEach((t,n)=>{t&&(e[n]=t.substring("\t"===t[0]?1:4))}),s=t.subParser("githubCodeBlocks")(e.join("\n"),i,r),s=`<div class="admonition-content">${s=t.subParser("blockGamut")(s,i,r)}</div>`}else s="";const c=`<div class="${a.classList.join(" ")}">${o}${s}</div>`;return t.subParser("hashBlock")(c,i,r)})).replace(/^ {0,3}((?::::+)|(?:!!!+))[ \t]*([-\w]*)[ \t]*(?:([^\f\v\r\n\[\]\{\}]*)|(?:\[([^\[\]]*)\])?[ \t]*(?:\{([^\{\}]*)\})?)[: \t]*\n([\s\S]*?)\n {0,3}\1[:! \t]*(?:¨0)?$/gm,function(e,n,o,s,a,l,c){(o=o.toLowerCase())||(o="container");const u={classList:[]};let d="",p="",h="";if(s||!a&&!l){const t=o.split("-");o=t[0],t.forEach((t,e)=>{if(e>0&&t){if(!u.style){const e=Vn(t);e&&(u.style=e)}u.classList.includes(t)||u.classList.push(t)}}),a=s}let m=!1;switch(o){case"note":case"备注":m=!0,u.type="admonition",h=R.getLangString("note","note"),u.classList.unshift("admonition","note"),Un(l,u,["alert","container","row","col"]);break;case"alert":case"注意":m=!0,u.type="admonition",h=R.getLangString("alert","alert"),u.classList.unshift("admonition","alert"),Un(l,u,["note","container","row","col"]);break;case"container":case"容器":u.type="container",Un(l,u),u.classList.unshift("container");break;case"row":case"行":u.type="row",Un(l,u),u.classList.unshift("row");break;case"col":case"列":u.type="col",Un(l,u),u.classList.unshift("col");break;default:m=!0,u.type="admonition",u.style=Vn(o),Un(l,u,["container","row","col"]),u.classList.includes("alert")||u.classList.includes("note")?u.classList.unshift("admonition"):u.classList.unshift("admonition","note")}m&&(u.style||(u.style="default"),u.classList.includes(u.style)||u.classList.push(u.style)),a?(a=t.subParser("spanGamut")(a,i,r),a=`<div class="${u.type}-title">${a}</div>`):m&&(h=(h||!u.style)??R.getLangString(u.style,u.style),a=`<div class="admonition-title">${h}</div>`),c?(c=t.subParser("githubCodeBlocks")(c,i,r),c=t.subParser("blockGamut")(c,i,r),c=`<div class="${u.type}-content">${c}</div>`):c="",u.id&&(d=`id="${u.id}" `),u.attribute&&(p=Gn(u.attribute));const f=`<div ${d}class="${u.classList.join(" ")}"${p}>${a}${c}</div>`;return t.subParser("hashBlock")(f,i,r)})).replace(/^ {0,3}(?<!:)::[ \t]*([-\w]+)[ \t]*(?:\[([^\[\]]*)\])?[ \t]*(?:\{([^\{\}]*)\})?[ \t]*(?:¨0)?$/gm,function(e,n,o,s){const a={};if(Un(s,a),"media"===n||"video"===n||"媒体"===n||"音视频"===n){if(!a.attribute||!a.attribute.src)return;let e="",n="",s="";o=o?`<div class="media-title">${o=t.subParser("spanGamut")(o,i,r)}</div>`:"",a.id&&(e=`id="${a.id}"`),a.attribute&&(n=Gn(a.attribute)),a.classList&&(s=` class="${a.classList.join(" ")}"`);const l=`<iframe ${e}${s}${n}>${o}}</iframe>`;return t.subParser("hashBlock")(l,i,r)}if("css-link"===n){if(!a.attribute||!a.attribute.href)return;let e="",n="";a.id&&(e=`id="${a.id}"`),n=Gn(a.attribute);const o=`<link ${e}${n}>`;return t.subParser("hashBlock")(o,i,r)}if("css"===n){if(!o)return;let e="",n="";const s=o;a.id&&(e=`id="${a.id}"`),a.attribute&&(n=Gn(a.attribute));const l=`<style ${e}${n}>${s}</style>`;return t.subParser("hashBlock")(l,i,r)}let l="";if(Jn.emit("leafDirective",n,o,a,t=>{l=t})&&l)return t.subParser("hashBlock")(l,i,r)})).replace(/(?<!:):([-\w]+)\[([^\[\]]*)\](?:\{([^\{\}]*)\})?/g,function(e,n,o,s){const a={};Un(s,a);let l="",c="";a.id&&(l=`id="${a.id}"`),a.attribute&&(c=Gn(a.attribute));let u="";return a.classList&&(u=` class="${a.classList.join(" ")}"`),o=o?t.subParser("spanGamut")(o,i,r):"",Jn.emit("textDirective",n,o,a,t=>{o=t})||(o=`<${n} ${l}${u}${c}>${o}</${n}>`),t.subParser("hashBlock")(o,i,r)})).replace(/¨0/,""),o._dispatch("directive.after",n,i,r))}}],"showdown-sequence":Cn(),...n};let i=[];for(let e in o)o.hasOwnProperty(e)&&(t.extension(e,o[e]),i.push(e));return i})(this.defaultOptions,this.defaultExtensions),o=to(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(e.flavor),this.setMathEngine(e.mathEngine),this.converter=new t.Converter({extensions:n}).initConvertExtObj(e.flavor,o),this.addOptions(e)}return this},makeHtml:function(e,n){let o="",i="html";if("object"==typeof e){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)o=this.zDecode(e.content);else o=this.markdownDecodeFilter(e)||e.content;else o=e.content;"dom"===e.output&&(i="dom")}else o=e;return this.converter&&o?this.converter.asyncMakeHtml(o).then(e=>{if("string"!=typeof e.html){if("undefined"!=typeof document&&"dom"===i){let n=[e.html];if(e.extras){let o="",i=e.extras;t.helper.isArray(i)||(i=[i]);for(let t=0;i.length>t;++t)"string"==typeof i[t]?o+=i[t]:n.push(i[t]);if(o.length>0){const t=document.createElement("div");t.innerHTML=o,n.push(...t.childNodes),t.replaceChildren()}}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}}o=e.html.outerHTML}else o=e.html;if(e.extras){let n=e.extras;t.helper.isArray(n)||(n=[n]);for(let t=0;n.length>t;++t)o+="string"==typeof n[t]?n[t]:n.outerHTML}return{html:o,scripts:e.scripts,cssLinks:e.cssLinks}}):Promise.reject(o?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,n){return t.helper.isArray(e)||(e=[e]),new Promise((o,i)=>{"string"==typeof n&&(n=document.querySelector(n));for(let o=0;e.length>o;++o){const r=e[o];if(r.outer){t.helper.isArray(r.outer)||(r.outer=[r.outer]);let e=r.outer[0],o=oo(e.name,e.src,e.module);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>oo(e.name,e.src,e.module));io(r,n,o);continue}if(!io(r,n))return i("Args is invaild!")}o(!0)})},zDecode:function(t){return""+n.inflateRawSync(Buffer.from(t,"base64"))},zEncode:function(t){return n.deflateRawSync(t,{level:9}).toString("base64")}};module.exports=ao;
|
|
7
7
|
//# sourceMappingURL=showdowns.core.min.js.map
|