@jhuix/showdowns 0.6.16 → 0.6.18
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 +86 -18
- package/demo/index.html +15 -3
- package/dist/showdowns.core.min.css +10 -4
- package/dist/showdowns.core.min.js +2 -2
- package/dist/showdowns.core.min.js.map +1 -1
- package/dist/showdowns.min.css +10 -4
- package/dist/showdowns.min.js +2 -2
- package/dist/showdowns.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* showdowns.core.min.js v0.6.
|
|
2
|
+
* showdowns.core.min.js v0.6.18
|
|
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 a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var s=0;i.length>s;++s)i[s]===t&&i.splice(s,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"),a=void 0!==r.body?r.body:r,s=a.firstChild,l=this.getOptions();let u=Promise.resolve({wrapper:s,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=>(a.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return a.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,a,s){var l=n.omitExtraWLInCodeBlocks?"":"\n";return s=t.subParser("encodeCode")(s,n,o),s="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(s=(s=(s=t.subParser("detab")(s,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",s=t.subParser("hashBlock")(s,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-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 a(e,i,r,a,s){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 a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].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(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(l))return l}return a=a.trim(),"<td"+s+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function s(e,s){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=[],p=[],d=[],h=[],m=[];if(s)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]=""),d.push(r(f[l],h[l]))}for(l=0;u.length>l;++l)""!==u[l].trim()&&p.push(u[l].split("|").map(function(t){var e=t.trim();return""===e&&t.length>0?t:e}));for(l=0;p.length>l;++l){var g=[];m.push(g);for(var y=0;h.length>y;++y)t.helper.isUndefined(p[l][y])&&(p[l][y]=""),g.push(a(m,l,y,p[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 a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var s=0;r>s;++s)n.tablesMerge&&"^^"===o[a][s]||(i+=o[a][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(d,h,m)}function l(t){return s(t,!1)}function u(t){return s(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,a=t.getFlavorOptions;function s(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 a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(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="",p="",d="";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/lib/viz-standalone.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"},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/lib/viz-standalone.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"},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/lib/viz-standalone.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"}};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.substring(0,u.length)===u?r:"../dist/"===r.substring(0,8)?p+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&&(p=n),"string"==typeof o&&o&&("/"!==d.at(d.length-1)&&(o+="/"),d=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)?p+t:c+t;if("file:"===e.protocol&&d){return t=new URL(d).origin+"/"+t.substring(8)}}catch{if(d){const e="./";t.substring(0,e.length)===e&&(t=t.substring(e.length)),t=d+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 a="script-"+f(t).toLowerCase();let s=document.getElementById(a);if(s)return i(t);const l=document.head||document.getElementsByTagName("head")[0];s=document.createElement("script"),s.src=e,s.id=a,n&&(s.defer=!0),o&&(s.type="module"),s.onload=()=>{i(t)},l.appendChild(s)})},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){return t&&"function"!=typeof t&&"object"==typeof t&&!Array.isArray(t)}function v(t,...e){for(const n of e)for(const[e,o]of Object.entries(n))w(o)&&w(t[e])?v(t[e],o):Object.assign(t,{[e]:o});return t}const x={interopDefault:function(t){return t&&"object"==typeof t&&"default"in t?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){const o=e.dataset.lang,i=o?JSON.parse(o):null;let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.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"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}let a=e.textContent.trim();n&&"function"==typeof n&&(a=n(a));const s=(e.classList.length>0?e.classList[0]:"")+(e.className&&r?" ":"")+r,l=t.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return e.id=l,{id:l,container:l+"-container",className:s,data:a,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:function(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},deepMerge:v},b="abc",S="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===E)var E=window.ABCJS||void 0;function j(){return!!E}let k=!1;function C(){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 a=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:a}).then(function(t){o.setTune(a,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 A(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 L(t,e,n){if(j()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let s="";if(a?(s+=`<div id="${r}" class="${i}" style="${a}">`,s+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(s+=`<div id="${r}" class="${i}">`,s+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;s+="</div>",n.element.parentNode.outerHTML=s;const r=i.getElementById(o);return E.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.cssLink,u=n.data,c=o+"-audio";s+=a?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>`,s+="</div>",n.element.parentNode.outerHTML=s;const p={id:r,code:A(c,{id:o,class:i,data:u}),host:"#"+r};return e.push(p),t(!0)}setTimeout(()=>{L(t,e,n)},10)}function $(t,e){return new Promise(n=>{let o=x.createElementMeta(b,t);if(!o||0===o.data.length)return n(!1);o.cssLink=y.getSrc(!0,S),L(n,e,o)})}function M(t,e){const n={outer:[{name:"ABCJS",src:y.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:C,inner:[]};return e.push(n),function(){const t=j();if("undefined"!=typeof window){if(k)return t;t||(k=!0,y.loadStyleSheet(S),x.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=>{E=x.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push($(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const N=["H1","H2","H3","H4","H5","H6"];function O(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" aria-hidden="true"><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" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';const a=i.appendChild(t.ownerDocument.createElement("a"));a.appendChild(t.ownerDocument.createTextNode(e.textContent)),a.href="#"+e.id}}catch{}return n}function q(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&&q(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=O(t,null,n.toc,o,!0),n.preLevel++;n.toc=O(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=O(t,e,n.toc,o,!1)}return n.parentNode&&q(t,e,n.parentNode,o),n}function T(){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 D(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,a=!1,s=null;const l=RegExp(`^(${e.toc})$`,"i");e.extraDocs=[],e.extraDocs.push('<div id="toc-svgs" class="hidden"><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><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>');let u=1;const c=[0,0,0,0,0,0],p=t.querySelectorAll(N.join(",")+",p");for(let d=0;p.length>d;d++){if(n=p[d],l.test(n.textContent.trim())){let l=null;if(a)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(s){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),s=l;let o="Table Of Contents",i="Show ",r="Hide ",a="Toggle ",u=document.children[0].lang;u&&(u=u.toLowerCase(),"zh-cn"!==u&&"zh-hans"!==u||(o="目录",i="显示",r="隐藏",a="切换")),e.title?.length>0&&(o=e.title);const c=t.ownerDocument.createElement("div");c.id="toc-switch-button",c.classList.add("toc-switch","hidden"),c.title=i+o,c.innerHTML='<svg class="icon" aria-hidden="true"><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="${a+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.className="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=!a,a?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(N.includes(n.tagName)){if(a||(a=!0),o=parseInt(n.tagName.substr(1)),e.chapterNumber&&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}i&&(i=q(t,n,i,o))}}for(s&&e.extraDocs.push(s.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))return!1;const e=t;this.config.extraDocs.forEach(t=>{x.addExtra(e,t)});return x.addScript(e,{inner:[{id:"showdown-toc",code:T,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===P)var P=window.Viz||void 0;const H=["circo","dot","neato","osage","twopi"];function z(){return!(void 0===P||!P||void 0===P.instance)}let B=!1;function J(t,e){if(z()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.element,a=e.element.dataset.lang;let s="dot";if(a){const t=JSON.parse(a);t&&t.engine&&-1!=H.indexOf(t.engine)&&(s=t.engine)}return void P.instance().then(e=>{const a=e.renderString(i,{format:"svg",engine:s});r.parentNode.outerHTML=`<div id="${n}" class="${o}">${a}</div>`,t(!0)})}setTimeout(()=>{J(t,e)},10)}function _(t){return new Promise(e=>{const n=x.createElementMeta("viz",t);if(!n||0===n.data.length)return e(!1);J(e,n)})}function F(t){return function(){const t=z();if("undefined"!=typeof window){if(B)return t;t||(B=!0,y.loadScript("Viz").then(t=>{P=x.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(_(t))}),Promise.all(n).then(()=>{e(!0)})})}const R={};function I(t,e){t.forEach(t=>{!function(t,e){const n=t.textContent.trim();if(0===n.length)return;const o=t.dataset.lang,i=x.hashString(o+n),r=R[i];if(r)return void t.parentNode.replaceWith(r);let a=null;if(o)try{a=JSON.parse(o)}catch{}let s="";if(a){if("boolean"==typeof a.codeblock&&a.codeblock||"string"==typeof a.codeblock&&"true"===a.codeblock.toLowerCase())return;a.align&&("center"===a.align?s="diagram-center":"right"===a.align&&(s="diagram-right"))}let l=e.config.buildType??"pdflatex";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(l=e[e.length-1])}const u=(t.classList.length>0?t.classList[0]:"")+(t.className&&s?" ":"")+s;if(l.length>0&&window&&window.fetch){const n=`${l}-${i}-`+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=n,t.className=u,e&&(e.elements=e.elements??[],e.elements.push({type:l,id:n}))}}(t,e)})}function W(){const t=window.Tex??{};if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e="https://"+(t.serverUrl??"tex.io");t.elements.forEach(({type:t,id:n})=>{const o=document.querySelector("#"+n);if(!o)return;const i=o.dataset.lang,r=o.textContent.trim(),a=x.hashString(i+r),s=`${e}/${t}/svg`;try{window.fetch(s,{method:"POST",body:r,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=o.id,e.className=o.className,e.innerHTML=t,o.parentNode.replaceWith(e),R[a]=e}}).catch(t=>{})}catch(t){}})}function V(t){return[{type:"output",config:((t={})=>({serverUrl:"tex.io",buildType:"pdflatex",...t}))(t),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.tex.language-tex");return!!n.length&&(window.Tex=window.Tex??{},window.Tex.config=this.config,t.scripts.push({id:"showdown-tex",code:W,once:!0}),I(n,window.Tex),o=e,Object.keys(R).forEach(t=>{o.querySelector(`[id*="-${t}-"]`)||delete R[t]}),t);var o}}]}const U="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===K)var K=window.vegaEmbed||void 0;function G(){return!(void 0===K||!K)}let X=!1;function Z(t,e,n,o){const i=x.createElementMeta(U,t);if(!i||0===i.data.length)return Promise.resolve(!1);const r=i.container,a={id:r,code:((t,e)=>{const n=()=>{const n=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;})();`);K(o,i,e)}else{const n=JSON.parse(t.data);K(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(a),new Promise(t=>{Y(t,i)})}function Q(t,e,n,o){const i={outer:[{name:U,src:y.getSrc(!1,U,"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=G();if("undefined"!=typeof window){if(X)return t;t||(X=!0,y.loadScript(U).then(()=>y.loadScript("vegaLite")).then(()=>y.loadScript("vegaEmbed")).then(t=>{K=x.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(Z(t,o,i.inner))}),e.forEach(t=>{r.push(Z(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function Y(t,e){if(G()){return e.element.parentNode.outerHTML=`<div id="${e.container}" class="${e.className}"><div id="${e.id}"></div></div>`,t(!0)}setTimeout(()=>{Y(t,e)},10)}function tt(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)&&Q(n,o,t.scripts,this.config).then(()=>t)}}]}function et(){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 nt=".",ot={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},it=[{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},ot,{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 rt(t,e){return t.input>e.input?1:-1}var at,st,lt,ut=[];function ct(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 pt(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 dt(t){for(var e,n,o,i=0,r="",a=!0,s=1;t.length>=s&&a;s++)n=t.slice(0,s),i=pt(ut,n,i),ut.length>i&&t.slice(0,ut[i].length)==ut[i]&&(e=i,s=(r=ut[i]).length),a=ut.length>i&&t.slice(0,ut[i].length)>=ut[i];if(st=lt,""!=r)return lt=it[e].ttype,it[e];lt=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==nt&&(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==st?(lt=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function ht(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 mt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function ft(t){var e,n,o,i,r="";if(null==(e=dt(t=ct(t,0)))||5==e.ttype&&at>0)return[null,t];switch(8==e.ttype&&(e=dt(t=e.output+ct(t,e.input.length))),e.ttype){case 7:case 0:t=ct(t,e.input.length);var a=mt(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case 4:at++,o=yt(t=ct(t,e.input.length),!0),at--;var s=0;return"\\right"==o[0].substr(0,6)&&(")"==(u=o[0].charAt(6))||"]"==u||"}"==u?s=6:"."==u?s=7:"\\rbrace"==(u=o[0].substr(6,7))&&(s=13)),s>0?(o[0]=o[0].substr(s),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+mt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+mt(e)+o[0]+"}",[n,o[1]];case 10:return e!=ot&&(t=ct(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==ot?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=ct(t,i+1)];case 1:return null==(o=ft(t=ct(t,e.input.length)))[0]?["{"+mt(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?["{"+mt(e)+"}",t]:[n="{"+mt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=ht(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?[mt(e)+"{"+o[0]+"}",o[1]]:["{"+mt(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=ft(t=ct(t,e.input.length)))[0])return["{"+mt(e)+"}",t];o[0]=ht(o[0]);var l=ft(o[1]);return null==l[0]?["{"+mt(e)+"}",t]:(l[0]=ht(l[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+mt(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=ct(t,e.input.length),[e.output,t];case 6:return t=ct(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:at++,o=yt(t=ct(t,e.input.length),!1),at--;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=ct(t,e.input.length),["{"+mt(e)+"}",t]}}function gt(t){var e,n,o,i,r;if(n=dt(t=ct(t,0)),i=(r=ft(t))[0],3==(e=dt(t=r[1])).ttype&&"/"!=e.input){if((r=ft(t=ct(t,e.input.length)))[0]=null==r[0]?"{}":ht(r[0]),t=r[1],"_"==e.input)if("^"==(o=dt(t)).input){var a=ft(t=ct(t,o.input.length));a[0]=ht(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=dt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=gt(t))[0]+"}",t=r[1]))}return[i,t]}function yt(t,e){var n,o,i,r,a="",s=!1;do{o=(i=gt(t=ct(t,0)))[0],3==(n=dt(t=i[1])).ttype&&"/"==n.input?((i=gt(t=ct(t,n.input.length)))[0]=null==i[0]?"{}":ht(i[0]),t=i[1],o="\\frac{"+(o=ht(o))+"}",a+=o+="{"+i[0]+"}",n=dt(t)):null!=o&&(a+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==at)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=a.length;if(l>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var u=a.charAt(l-2);if(")"==u||"]"==u){var c=a.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var p="",d=[];d.push(0);var h=!0,m=0,f=[];f[0]=[0];var g=0,y=0,w="";for(r=1;l-1>r;r++)a.charAt(r)==c&&m++,a.charAt(r)==u&&0==--m&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(d.push(r+2),f[g=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:h=!1);d.push(l);var v=-1;if(0==m&&d.length>0&&h)for(r=0;d.length-1>r;r++){if(r>0&&(p+="\\\\"),0==r)if(1==f[d[r]].length)var x=[a.substr(d[r]+7,d[r+1]-d[r]-15)];else{x=[a.substring(d[r]+7,f[d[r]][1])];for(var b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[r+1]-8))}else if(1==f[d[r]].length)x=[a.substr(d[r]+8,d[r+1]-d[r]-16)];else{for(x=[a.substring(d[r]+8,f[d[r]][1])],b=2;f[d[r]].length>b;b++)x.push(a.substring(f[d[r]][b-1]+1,f[d[r]][b]));x.push(a.substring(f[d[r]][f[d[r]].length-1]+1,d[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),p+=x.join("&")}p="\\begin{array}{"+w+"} "+p+"\\end{array}",h&&(a=p)}}}t=ct(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=o="\\right"+mt(n),s=!0)}return at>0&&!s&&(a+="\\right."),[a,t]}function wt(t){return at=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":yt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=it.length;for(t=0;e>t;t++)!it[t].tex||"boolean"==typeof it[t].notexcopy&&it[t].notexcopy||it.push({input:it[t].tex,tag:it[t].tag,output:it[t].output,ttype:it[t].ttype,acc:it[t].acc||!1});!function(){var t;for(it.sort(rt),t=0;it.length>t;t++)ut[t]=it[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===vt)var vt=window.katex||void 0;if("undefined"==typeof renderMathInElement)var xt=window.renderMathInElement||void 0;let bt=0;function St(){return!(void 0===xt||!xt||void 0===vt||!vt)}let Et=!1;const jt="katexCSS";function kt(t){const e=St();if("undefined"!=typeof window){if(Et)return e;if(!e)return Et=!0,y.loadStyleSheet(jt),y.loadScript("katex").then(t=>(vt=x.interopDefault(window[t]),y.loadScript("renderMathInElement"))).then(e=>{xt=x.interopDefault(window[e]),"function"==typeof t&&t&&t(xt)}).catch(t=>{}),e}return"function"==typeof t&&t&&t(xt),e}function Ct(t,e){if(St()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,s=e.element.ownerDocument;let l="";if(i instanceof Array)i.forEach(t=>{if(""===t)l+="<br>";else{const e=vt.renderToString(t,a);l+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=vt.renderToString(i,a);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,--bt,bt||xt(s.body,a),void t(!0)}setTimeout(()=>{Ct(t,e)},10)}function At(t,e,n){return new Promise(o=>{let i;const r=x.createElementMeta("katex",t,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?wt(t):t),e.push(t)})):e=n?wt(i):i,e});if(!r)return o(!1);r.cssLink=y.getSrc(!0,jt),r.input=i,r.options=e,Ct(o,r)})}function Lt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const $t=(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 Mt(t){let e=0;const n=$t(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Lt(t)}([\\s\\S]+?)${Lt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=wt(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.latex.language-latex");const r=n.querySelectorAll("code.asciimath.language-asciimath");if(!i.length&&!r.length){if(e>0){this.config.cssLink=y.getSrc(!0,jt);const a=this;function s(t,e){St()?(e(n.ownerDocument.body,a.config),t(!0)):setTimeout(()=>{s(t,e)},10)}return new Promise(t=>{kt(e=>{s(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=y.getSrc(!0,jt),x.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return bt=t.length+e.length,kt(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(At(t,n,!1))}),e.forEach(t=>{i.push(At(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Nt={};function Ot(t,e){t.forEach(t=>{!function(t,e){const n=t.textContent.trim();if(0===n.length)return;const o=t.dataset.lang,i=x.hashString(o+n),r=Nt[i];if(r)return void t.parentNode.replaceWith(r);let a=null;if(o)try{a=JSON.parse(o)}catch{}let s="";if(a){if("boolean"==typeof a.codeblock&&a.codeblock||"string"==typeof a.codeblock&&"true"===a.codeblock.toLowerCase())return;a.align&&("center"===a.align?s="diagram-center":"right"===a.align&&(s="diagram-right"))}let l="";if(t.classList.length>0){const e=t.classList[0].split("-");e.length>1&&(l=e[e.length-1])}const u=(t.classList.length>0?t.classList[0]:"")+(t.className&&s?" ":"")+s;if(l.length>0&&window&&window.fetch){const n=`${l}-${i}-`+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=n,t.className=u,e&&(e.elements=e.elements??[],e.elements.push({type:l,id:n}))}}(t,e)})}function qt(){const t=window.Kroki??{};if(!t.elements||!Array.isArray(t.elements)||0===t.elements.length)return;const e=t.imageFormat??"svg",n="https://"+(t.serverUrl??"kroki.io");t.elements.forEach(({type:t,id:o})=>{const i=document.querySelector("#"+o);if(!i)return;const r=i.dataset.lang,a=i.textContent.trim(),s=x.hashString(r+a),l=`${n}/${t}/${e}`;try{window.fetch(l,{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=i.id,e.className=i.className,e.innerHTML=t,i.parentNode.replaceWith(e),Nt[s]=e}}).catch(t=>{})}catch(t){}})}function Tt(t){return[{type:"output",config:((t={})=>({serverUrl:"kroki.io",imageFormat:"svg",...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.Kroki=window.Kroki??{},window.Kroki.serverUrl=this.config.serverUrl,window.Kroki.imageFormat=this.config.imageFormat,t.scripts.push({id:"showdown-kroki",code:qt,once:!0}),Ot(n,window.Kroki),o=e,Object.keys(Nt).forEach(t=>{o.querySelector(`[id*="-${t}-"]`)||delete Nt[t]}),t);var o}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===Dt)var Dt=window.MathJax||void 0;let Pt=0;function Ht(){return!(void 0===Dt||!Dt)}let zt=!1;function Bt(t){const e=Ht();if("undefined"!=typeof window){if(zt)return e;e||(zt=!0,window.MathJax={tex:{inlineMath:{"[+]":[["\\$","\\$"]]},displayMath:{"[+]":[["@@","@@"]]}},svg:{fontCache:"global"},startup:{pageReady:()=>window.MathJax.startup.defaultPageReady().then(()=>{})}},t?x.deepMerge(window.MathJax,t):window.MathJaxConfig&&x.deepMerge(window.MathJax,window.MathJaxConfig),y.loadScript("MathJax",!0).then(t=>{Dt=x.interopDefault(window[t])}).catch(t=>{}))}return e}function Jt(t,e){if(Ht()){const n=e.id,o=e.className,i=e.cssLink??"",r=i.length>0?" css-mathjax":"",a=e.element,s=a.ownerDocument;return void Dt.tex2svgPromise(e.data,e.options).then(e=>{const l=s.createElement("div");l.id=n,l.className=`${o}${r}`,i.length>0&&(l.dataset.css=i),l.appendChild(e),a.parentNode.replaceWith(l),--Pt,Pt||Dt.startup.document.clear(),t(!0)}).catch(e=>{--Pt,Pt||Dt.startup.document.clear(),t(!1)})}setTimeout(()=>{Jt(t,e)},10)}function _t(t,e){return new Promise(n=>{const o=x.createElementMeta("MathJax",t);if(!o||0===o.data.length)return n(!1);o.options=Object.assign(e??{},o.options??{}),Jt(n,o)})}const Ft=(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 Rt(t){if(!Ht())return void setTimeout(()=>{Rt(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 It(t){const e=Ft(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:Rt,once:!0}),Bt(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 Pt=t.length,Bt(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(_t(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(r,this.config).then(()=>t):!!i&&t}}]}const Wt="echarts";if("undefined"==typeof window)throw Error(`The showdown ${Wt} extension can only be used in browser environment!`);if(void 0===Vt)var Vt=window.echarts||void 0;function Ut(){return!!Vt}let Kt=!1;function Gt(t,e){if(Ut()){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(()=>{Gt(t,e)},20)}function Xt(t,e,n){const o=x.createElementMeta(Wt,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=eval;let o=document.getElementById(t.id);if(o){let i=Vt.getInstanceByDom(o);if(i||(o.innerHTML=""),i=Vt.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=>{Gt(t,o)})}function Zt(t,e,n){const o={outer:[{name:Wt,src:y.getSrc(!1,Wt,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=Ut();if("undefined"!=typeof window){if(Kt)return t;t||(Kt=!0,y.loadScript(Wt).then(t=>{Vt=x.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(Xt(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function Qt(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.${Wt}.language-${Wt}`);return!!n.length&&Zt(n,t.scripts,this.config).then(()=>t)}}]}const Yt="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===te)var te=window.mermaid||void 0;function ee(){return!(void 0===te||!te)}let ne=!1;function oe(t,e){if(ee()){const n=e.className,o=e.element.parentNode;return void te.render(e.id,e.data).then(e=>{o.outerHTML=`<div class="${n}">${e.svg}</div>`,t(!0)})}setTimeout(()=>{oe(t,e)},10)}function ie(t){return new Promise(e=>{const n=x.createElementMeta(Yt,t);if(!n||0===n.data.length)return e(!1);oe(e,n)})}function re(t,e){return function(t){const e=ee();if("undefined"!=typeof window){if(ne)return e;if(!e)return ne=!0,y.loadScript(Yt).then(e=>{(te=x.interopDefault(window[e])).initialize(t)}),e}te.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(ie(t))}),Promise.all(n).then(()=>{e(!0)})})}function ae(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=se(63&t>>2),a+=se(63&o),a+=se(63&i),a+=se(63&r)}function se(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 le(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function ue(t){var e=le(t[0]),n=le(t[1]),o=le(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&le(t[3])]}function ce(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?ae(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?ae(t.charCodeAt(n),0,0):ae(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function pe(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=ue(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 de={encodeuml:function(t){const e="@startuml",n="@enduml";return ce(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return pe(t)}},he="img";let me=0;function fe(t,e){return me=t.length,new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{const o=t.dataset.lang;let i=null;if(o)try{i=JSON.parse(o)}catch{}let r="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?r="diagram-center":"right"===i.align&&(r="diagram-right"))}const a=t.textContent.trim();if(0===a.length)return n(!1);const s=(t.classList.length>0?t.classList[0]:"")+(t.className&&r?" ":"")+r,l=e.imageFormat;if("svg"===l){const o="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof e.svgRender&&e.svgRender)return void e.svgRender(o,s,a,me).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)});if(window&&window.fetch){const i=window.location&&window.location.protocol,r=l!==he?"."+l:"",u=`${("http:"===i||"https:"===i?"//":"https://")+e.umlWebSite}/${l}/${de.encodeuml(a)}${r}`;try{window.fetch(u).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{t.parentNode.outerHTML=`<div id="${o}" class="${s}">${e}</div>`,n(!0)}).catch(t=>{n(!1)})}catch(t){n(!1)}return}return void n(!1)}const u=window&&window.location.protocol,c=("http:"===u||"https:"===u?"//":"https://")+e.umlWebSite,p=l!==he?"."+l:"",d=de.encodeuml(a);return t.parentNode.outerHTML=`<div class="${s}"><img src='${c}/${l}/${d}${p}' alt=''></img></div>`,n(!0)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function ge(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:he,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&&fe(n,this.config).then(()=>t)}}]}const ye="railroad",we="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let ve=!1;function xe(){return ve}let be,Se=!1;function Ee(t,e){if(xe()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;return e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"></div>`:`<div id="${n}" class="${o}"></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout(()=>{Ee(t,e)},10)}function je(t){return new Promise(e=>{const n=x.createElementMeta(ye,t);if(!n||0===n.data.length)return e(!1);n.cssLink=y.getSrc(!0,we),Ee(e,n)})}function ke(t){return function(){const t=xe();if("undefined"!=typeof window){if(Se)return t;t||(Se=!0,y.loadStyleSheet(we),y.loadScript(ye).then(()=>{ve=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(je(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===Ce)var Ce=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(be=window.Diagram,window.Diagram.Signal))var Ae=window.Diagram;const Le=["simple","hand"];if(void 0===Ae&&"undefined"!=typeof window)Ae=window.SequenceJS;function $e(){return!!Ce}function Me(){return $e()&&!!Ae}let Ne=!1;const Oe="sequenceCSS";function qe(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=Me();if("undefined"!=typeof window){if(Ne)return t;t||(Ne=!0,y.loadStyleSheet(Oe),y.loadScript("WebFont").then(()=>$e()?"Raphael":y.loadScript("Raphael")).then(t=>(Ce=x.interopDefault(window[t]),y.loadScript("Snap"))).then(()=>y.loadScript("underscore")).then(()=>(!be&&window.Diagram&&(be=window.Diagram),y.loadScript("sequence"))).then(()=>{Ae=window.Diagram,window.SequenceJS=Ae,be&&(window.Diagram=be)}))}return t}(),r=y.getSrc(!0,Oe),a=t.textContent.trim(),s="js-sequence"+(o?" ":"")+o,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());t.id=l,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:s,data:a,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:a,langattr:e,cssLink:r}}))}function Te(t){if(Me()){const e=t.id,n=t.className,o=t.data;if(!o||0===o.length)return;const i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=Le.indexOf(t.theme)&&(r=t.theme)}let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void Ae.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{Te(t)},10)}function De(){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&&Te(t.detail)})),this.config={cssLink:y.getSrc(!0,Oe)}),function(t){return!!t.length&&(t.forEach(t=>{qe(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&&x.addCssLink(n,y.getSrc(!0,Oe),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===Pe)var Pe=window.WaveDrom||void 0;let He=0,ze=0;function Be(){return!!Pe}let Je=!1;function _e(t,e){if(Be()){const n=e.index,o=e.id,i=e.className,r=e.data;if(!r||0===r.length)return t(!1);let a=e.element;return a.parentNode.outerHTML=x.renderCacheElement(a.ownerDocument,o+n,i,t=>{const e=window.eval(`(${r})`);Pe.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(()=>{_e(t,e)},10)}function Fe(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 a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,s=ze;++ze,--He,He||(ze=0);const l="WaveDrom_Display_";t.id=l+s;_e(e,{element:t,index:s,id:l,className:a,data:r})})}function Re(t,e){return function(t){const e=Be();Je||e||(Je=!0,"undefined"!=typeof window&&y.loadScript({WaveDromSkin:t}).then(()=>y.loadScript("WaveDrom")).then(t=>{Pe=x.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];He=t.length,t.forEach(t=>{n.push(Fe(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===Ie)var Ie=window.Raphael||void 0;if(void 0===We)var We=window.flowchart||void 0;function Ve(){return!(void 0===Ie||!Ie||void 0===We||!We)}let Ue=!1;function Ke(){const t=Ve();if("undefined"!=typeof window){if(Ue)return t;if(!t){if(Ue=!0,!Ie)return y.loadScript("Raphael").then(t=>(Ie=x.interopDefault(window[t]),y.loadScript("flowchart"))).then(t=>{We=x.interopDefault(window[t])}),t;y.loadScript("flowchart").then(t=>{We=x.interopDefault(window[t])})}}return t}function Ge(t,e){if(Ve()){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=x.renderCacheElement(e.element.ownerDocument,n,o,t=>{We.parse(i).drawSVG(t,r)}),void t(!0)}setTimeout(()=>{Ge(t,e)},10)}function Xe(t,e){return new Promise(n=>{const o=x.createElementMeta("flowchart",t);if(!o||0===o.data.length)return n(!1);o.options=e,Ge(n,o)})}function Ze(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 Ke(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Xe(t,n))}),e.forEach(t=>{i.push(Xe(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const Qe=(t={})=>({flavor:"github",mathEngine:"mathjax",...t}),Ye=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},tn=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.mathjax||{},a=e&&e.tex||{},l=e&&e.katex||{},u=e&&e.kroki||{},c=e&&e.vega||{},p={"showdown-toc":Ye("showdown-toc",D),"showdown-plantuml":ge(i),"showdown-mermaid":(h=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}))(h),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&re(n,this.config).then(()=>t)}}]),"showdown-mathjax":It(r),"showdown-tex":V(a),"showdown-katex":Mt(l),"showdown-kroki":Tt(u),"showdown-flowchart":Ze(),"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&&F(n).then(()=>t)}}],"showdown-vega":tt(c),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(d),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(s("Begin render wavedrom elements."),Re(n,this.config.skin).then(()=>(s("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,we)},x.addCssLink(t,this.config.cssLink,"css-railroad"),ke(n).then(()=>t))}}],"showdown-abc":[{type:"output",filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll(`code.${b}.language-${b}`);return!!n.length&&(this.config={cssLink:y.getSrc(!0,S)},x.addCssLink(t,this.config.cssLink,"css-abc"),M(n,t.scripts).then(()=>t))}}],"showdown-echarts":Qt(),"showdown-sequence":Ye("showdown-sequence",De),...n,"showdow-css":[{type:"output",filter:function(t){const e="css-ex-";x.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=""+x.hashString(o);x.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),x.loadStylesheet(o,e+i)}}catch{}}),t)}}]};var d,h;let m=[];for(let e in p)p.hasOwnProperty(e)&&(t.asyncExtension(e,p[e]),m.push(e));return m},en=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.appendChild(r)),!0},nn=(t,e,n)=>{if(!t||!e||"undefined"==typeof document)return!1;let o=document.getElementById(t);o||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,o=n);const i="script-"+t;let r=document.querySelector(`${o.tagName} > #${i}`);return r||(r=document.createElement("script"),r.id=i,r.type="text/javascript",r.text=e,o.insertBefore(r,o.children[0])),!0};function on(t,e){return new Promise((n,o)=>{t&&e&&"undefined"!=typeof document||o("Args is invaild!");const i="script-"+t.toLowerCase();let r=document.getElementById(i);if(r)return n(t);const a=document.head||document.getElementsByTagName("head")[0];r=document.createElement("script"),r.src=e,r.id=i,r.onload=()=>{n(t)},a.appendChild(r)})}const rn=function(e,n,o){let i=n;if(e.host&&"string"==typeof e.host&&(i=document.querySelector(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(()=>{en(e.id,e.code,i)}),!0):en(e.id,e.code,i)}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(()=>{nn(e.id,e.code,i)}):nn(e.id,e.code,i);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&&"string"==typeof n.host&&(r=document.querySelector(n.host)),o?o.then(()=>{en(n.id,n.code,r)}):en(n.id,n.code,r)}return!0},an=["github","ghost","vanilla","original","allon"],sn=["mathjax","katex"],ln={showdown:t,converter:null,defaultOptions:{showdown:Qe(),toc:{},plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},mathjax:{},katex:{},kroki:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(t){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},toc:{},plantuml:{},mermaid:{},mathjax:{},katex:{},kroki:{},vega:{}})},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===an.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===sn.indexOf(t)&&(t="mathjax"),this.defaultOptions.showdown.mathEngine=t,this.setExtensionOptions("katex",{engine:t}),this.setExtensionOptions("mathjax",{engine: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=Ye(e="showdown-"+e);if(!o&&(o=((e,n)=>{let o=null;try{o=t.asyncExtension(e)}catch{}return o||n})(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 v(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=Qe(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=Qe(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":D(e.toc),"showdown-align":et(),"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":De(),...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=tn(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]);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)"string"==typeof n[t]&&(o+=n[t])}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=on(e.name,e.src);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>on(e.name,e.src));rn(r,n,o);continue}if(!rn(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=ln;
|
|
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 a=0;o.length>a;++a)o[a]===t&&o.splice(a,1);for(var s=0;i.length>s;++s)i[s]===t&&i.splice(s,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"),a=void 0!==r.body?r.body:r,s=a.firstChild,l=this.getOptions();let u=Promise.resolve({wrapper:s,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=>(a.replaceChildren(),{html:t.wrapper,extras:t.extras,scripts:t.scripts,cssLinks:t.cssLinks}))}return a.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,a,s){var l=n.omitExtraWLInCodeBlocks?"":"\n";return s=t.subParser("encodeCode")(s,n,o),s="<pre><code"+(r?' class="'+r+" language-"+r+'"':"")+(a?` data-lang='${a}'`:"")+">"+(s=(s=(s=t.subParser("detab")(s,n,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+l+"</code></pre>",s=t.subParser("hashBlock")(s,n,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-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 a(e,i,r,a,s){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 a=o-1;a>=0;-a){if(t[r+1][a]&&"^^"!==t[r+1][a])return;if(t[r][a]){if(!t[r+1][a])return;return t[r][a]=t[r][a].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(a=o-1;a>=0;--a)if(t[e][a]){if("^^"!==t[e][a])return t[e][a]=t[e][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i;for(r=e-1;r>=0;--r){if(t[r][a+1])return;if("^^"!==t[r][a])return t[r][a]=t[r][a].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(t,e,n){return e+' colspan="'+(o-a+1)+'"'+n}),i}}else if(0===a)return t[e][a]='<td colspan="'+(o-a+1)+'"></td>\n',i}(e,i,r,a);if(!t.helper.isUndefined(l))return l}return a=a.trim(),"<td"+s+">"+t.subParser("spanGamut")(a,n,o)+"</td>\n"}function s(e,s){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(s)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(a(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 a=0;t.length>a;++a)i+=t[a];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",a=0;o.length>a;++a){i+="<tr>\n";for(var s=0;r>s;++s)n.tablesMerge&&"^^"===o[a][s]||(i+=o[a][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(p,h,m)}function l(t){return s(t,!1)}function u(t){return s(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,a=t.getFlavorOptions;function s(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 a in i)i.hasOwnProperty(a)&&(t.getOptions()[a]=i[a])},t.getFlavor=function(){return n},t.setFlavorOptions=function(t,e){e&&(o[t]=Object.assign(o[t]||{},e))},t.getFlavorOptions=function(e){const n=a(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",Shiki:"../node_modules/@jhuix/shiki-loader/dist/index.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",Shiki:"https://esm.sh/shiki@3.21.0"},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",Shiki:"https://cdn.jsdelivr.net/npm/shiki@3.21.0/+esm"}};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 a=f(t),s="script-"+a.toLowerCase();let l=document.getElementById(s);if(l)return i(t);const u=document.head||document.getElementsByTagName("head")[0];if(l=document.createElement("script"),l.id=s,n&&(l.defer=!0),o&&(l.type="module","string"!=typeof o||"link"!==o)){const n=a.toLowerCase();return l.textContent=`import * as ${n} from '${e}';\nif (!('${a}' in window)) {\n if ('default' in ${n} && ${n}['default']) {\n window['${a}'] = ${n}['default']\n } else {\n window['${a}'] = ${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 v(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();let o=e[1].trim();o="true"===o.toLowerCase()||"false"!==o.toLowerCase()&&(isNaN(o)?o.replace(/^"(.*)"$/,"$1"):Number(o)),n[t]=o}}),n}}function w(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:v,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=v(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 a=e.textContent.trim();o&&"function"==typeof o&&(a=o(a));const s=(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=w(e.dataset.lang+a),n="-"+l):n="-"+Math.floor(1e4*Math.random());const u=t.toLowerCase()+"-"+Date.now()+n;return e.id=u,e.className=s,{id:u,container:u+"-container",className:s,data:a,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:w,deepMerge:b},E="abc",k="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===j)var j=window.ABCJS||void 0;function C(){return!!j}let L=!1;function $(){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 a=t.renderAbc(i,r,this.abcOptions)[0];(new t.synth.CreateSynth).init({visualObj:a}).then(function(t){o.setTune(a,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 A(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(C()){const o=n.id,i=n.className,r=n.container;let a="";n.lang&&(n.lang.width&&(a+=`width:${n.lang.width};`),n.lang.height&&(a+=`height:${n.lang.height};`));let s="";if(a?(s+=`<div id="${r}" class="${i}" style="${a}">`,s+=`<div id="${o}" style="width:100%;height:100%;display:inline-block"></div>`):(s+=`<div id="${r}" class="${i}">`,s+=`<div id="${o}"></div>`),!n.lang||!n.lang.audio){const e=n.data,i=n.element.ownerDocument;s+="</div>",n.element.parentNode.outerHTML=s;const r=i.getElementById(o);return j.renderAbc(r,e,{add_classes:!0,responsive:"resize"}),t(!0)}const l=n.cssLink,u=n.data,c=o+"-audio";s+=a?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>`,s+="</div>",n.element.parentNode.outerHTML=s;const d={id:r,code:A(c,{id:o,class:i,data:u}),host:"#"+r};return e.push(d),t(!0)}setTimeout(()=>{N(t,e,n)},10)}function M(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,k),N(n,e,o)})}function T(t,e){const n={outer:[{name:"ABCJS",src:y.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:$,inner:[]};return e.push(n),function(){const t=C();if("undefined"!=typeof window){if(L)return t;t||(L=!0,y.loadStyleSheet(k),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=>{j=S.interopDefault(window[t])}))}}(),new Promise(e=>{const o=[];t.forEach(t=>{o.push(M(t,n.inner))}),Promise.all(o).then(()=>{e(!0)})})}const q=["H1","H2","H3","H4","H5","H6"];function O(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" aria-hidden="true"><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" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';const a=i.appendChild(t.ownerDocument.createElement("a"));a.appendChild(t.ownerDocument.createTextNode(e.textContent)),a.href="#"+e.id}}catch{}return n}function D(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&&D(t,e,n,o),n}if(o>n.preLevel){for(n.preLevel++;o>n.preLevel;)n.toc=O(t,null,n.toc,o,!0),n.preLevel++;n.toc=O(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=O(t,e,n.toc,o,!1)}return n.parentNode&&D(t,e,n.parentNode,o),n}function P(){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 H(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,a=!1,s=null;const l=RegExp(`^(${e.toc})$`,"i");e.extraDocs=[];let u=1;const c=[0,0,0,0,0,0],d=t.querySelectorAll(q.join(",")+",p");for(let p=0;d.length>p;p++){if(n=d[p],l.test(n.textContent.trim())){let l=null;if(a)l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc");else{if(s){n.parentNode.removeChild(n);continue}l=t.ownerDocument.createElement("div"),l.classList.add("showdown-toc"),s=l;let o="Table Of Contents",i="Show ",r="Hide ",a="Toggle ",u=document.children[0].lang;u&&(u=u.toLowerCase(),"zh-cn"!==u&&"zh-hans"!==u||(o="目录",i="显示",r="隐藏",a="切换")),e.title?.length>0&&(o=e.title);const c=t.ownerDocument.createElement("div");c.id="toc-switch-button",c.classList.add("toc-switch","hidden"),c.title=i+o,c.innerHTML='<svg class="icon" aria-hidden="true"><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="${a+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=!a,a?n.parentNode.replaceChild(l,n):n.parentNode.removeChild(n);continue}if(q.includes(n.tagName)){if(a||(a=!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=D(t,n,i,o))}}for(i&&e.extraDocs.push('<div id="toc-svgs" class="hidden"><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><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>'),s&&e.extraDocs.push(s.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:P,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===z)var z=window.Viz||void 0;const B=["circo","dot","neato","osage","twopi"];function R(){return!(void 0===z||!z||void 0===z.instance)}let _=!1;function J(t,e){if(R()){const n=e.id,o=e.className,i=e.data;if(!i||0===i.length)return t(!1);const r=e.element,a=e.lang;let s="dot";a&&a.engine&&-1!=B.indexOf(a.engine)&&(s=a.engine);let l=r.style.cssText;return l.length>0&&(l=` style="${l}"`),void z.instance().then(e=>{const a=e.renderString(i,{format:"svg",engine:s});r.parentNode.outerHTML=`<div id="${n}" class="${o}"${l}>${a}</div>`,t(!0)})}setTimeout(()=>{J(t,e)},10)}function F(t){return new Promise(e=>{const n=S.createElementMeta("viz",t);if(!n||0===n.data.length)return e(!1);J(e,n)})}function I(t){return function(){const t=R();if("undefined"!=typeof window){if(_)return t;t||(_=!0,y.loadScript("Viz").then(t=>{z=S.interopDefault(window[t])}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(F(t))}),Promise.all(n).then(()=>{e(!0)})})}const W={},V={},U=["pdflatex","xelatex","lualatex"];function K(t,e){t.forEach(t=>{!function(t,e){const n=S.createElementMeta("Tex",t,!0);if(!n||0===n.data.length)return;const o=V[n.hash];if(o)return void t.parentNode.replaceWith(o);let i=e.config.buildType??"pdflatex";n.lang?.engine&&U.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 Z(){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 a=r.dataset.lang,s=r.textContent.trim(),l=S.hashString(a+s),u=V[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,s,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),V[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: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=r.id,e.className=r.className,r.style.cssText.length>0&&(e.style=r.style.cssText),e.innerHTML=t,r.parentNode.replaceWith(e),V[l]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function G(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=W),W.config={serverUrl:this.config.serverUrl,buildType:this.config.buildType},W.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-tex",code:Z,once:!0}),K(n,W),W.elements?.length>0&&(o=e,Object.keys(V).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete V[t]})),t);var o}}]}const X="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===Q)var Q=window.vegaEmbed||void 0;function Y(){return!(void 0===Q||!Q)}let tt=!1;function et(t,e,n,o){const i=S.createElementMeta(X,t);if(!i||0===i.data.length)return Promise.resolve(!1);const r=i.container,a={id:r,code:((t,e)=>{const n=()=>{const n=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;})();`);Q(o,i,e)}else{const n=JSON.parse(t.data);Q(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(a),new Promise(t=>{ot(t,i)})}function nt(t,e,n,o){const i={outer:[{name:X,src:y.getSrc(!1,X,"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=Y();if("undefined"!=typeof window){if(tt)return t;t||(tt=!0,y.loadScript(X).then(()=>y.loadScript("vegaLite")).then(()=>y.loadScript("vegaEmbed")).then(t=>{Q=S.interopDefault(window[t])}))}}(),new Promise(n=>{const r=[];t.forEach(t=>{r.push(et(t,o,i.inner))}),e.forEach(t=>{r.push(et(t,o,i.inner))}),Promise.all(r).then(()=>{n(!0)})})}function ot(t,e){if(Y()){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(()=>{ot(t,e)},10)}function it(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)&&nt(n,o,t.scripts,this.config).then(()=>t)}}]}function rt(){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 at=".",st={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},lt=[{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},st,{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 ut(t,e){return t.input>e.input?1:-1}var ct,dt,pt,ht=[];function mt(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 ft(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 gt(t){for(var e,n,o,i=0,r="",a=!0,s=1;t.length>=s&&a;s++)n=t.slice(0,s),i=ft(ht,n,i),ht.length>i&&t.slice(0,ht[i].length)==ht[i]&&(e=i,s=(r=ht[i]).length),a=ht.length>i&&t.slice(0,ht[i].length)>=ht[i];if(dt=pt,""!=r)return pt=lt[e].ttype,lt[e];pt=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==at&&(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==dt?(pt=3,{input:n,tag:o,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:o,output:n,ttype:0,val:!0}}function yt(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 vt(t){var e;return e="boolean"==typeof t.val&&t.val?"":"\\",null==t.tex?e+t.input:e+t.tex}function wt(t){var e,n,o,i,r="";if(null==(e=gt(t=mt(t,0)))||5==e.ttype&&ct>0)return[null,t];switch(8==e.ttype&&(e=gt(t=e.output+mt(t,e.input.length))),e.ttype){case 7:case 0:t=mt(t,e.input.length);var a=vt(e);return"\\"==a.charAt(0)||"mo"==e.tag?[a,t]:["{"+a+"}",t];case 4:ct++,o=bt(t=mt(t,e.input.length),!0),ct--;var s=0;return"\\right"==o[0].substr(0,6)&&(")"==(u=o[0].charAt(6))||"]"==u||"}"==u?s=6:"."==u?s=7:"\\rbrace"==(u=o[0].substr(6,7))&&(s=13)),s>0?(o[0]=o[0].substr(s),n="boolean"==typeof e.invisible&&e.invisible?"{"+o[0]+"}":"{"+vt(e)+o[0]+"}"):n="boolean"==typeof e.invisible&&e.invisible?"{\\left."+o[0]+"}":"{\\left"+vt(e)+o[0]+"}",[n,o[1]];case 10:return e!=st&&(t=mt(t,e.input.length)),-1==(i="{"==t.charAt(0)?t.indexOf("}"):"("==t.charAt(0)?t.indexOf(")"):"["==t.charAt(0)?t.indexOf("]"):e==st?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=mt(t,i+1)];case 1:return null==(o=wt(t=mt(t,e.input.length)))[0]?["{"+vt(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?["{"+vt(e)+"}",t]:[n="{"+vt(e)+"{"+o[0]+"}}",o[1]]:(o[0]=yt(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?[vt(e)+"{"+o[0]+"}",o[1]]:["{"+vt(e)+"{"+o[0]+"}}",o[1]]);case 2:if(null==(o=wt(t=mt(t,e.input.length)))[0])return["{"+vt(e)+"}",t];o[0]=yt(o[0]);var l=wt(o[1]);return null==l[0]?["{"+vt(e)+"}",t]:(l[0]=yt(l[0]),[r="color"==e.input?"{\\color{"+o[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==e.input?"{\\sqrt["+o[0]+"]{"+l[0]+"}}":"{"+vt(e)+"{"+o[0]+"}{"+l[0]+"}}",l[1]]);case 3:return t=mt(t,e.input.length),[e.output,t];case 6:return t=mt(t,e.input.length),["{\\quad\\text{"+e.input+"}\\quad}",t];case 9:ct++,o=bt(t=mt(t,e.input.length),!1),ct--;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=mt(t,e.input.length),["{"+vt(e)+"}",t]}}function xt(t){var e,n,o,i,r;if(n=gt(t=mt(t,0)),i=(r=wt(t))[0],3==(e=gt(t=r[1])).ttype&&"/"!=e.input){if((r=wt(t=mt(t,e.input.length)))[0]=null==r[0]?"{}":yt(r[0]),t=r[1],"_"==e.input)if("^"==(o=gt(t)).input){var a=wt(t=mt(t,o.input.length));a[0]=yt(a[0]),t=a[1],i="{"+i,i+="_{"+r[0]+"}",i+="^{"+a[0]+"}",i+="}"}else i+="_{"+r[0]+"}";else i=i+"^{"+r[0]+"}";void 0!==n.func&&n.func&&(3==(o=gt(t)).ttype||5==o.ttype||1>=n.input.length&&4!=o.ttype||(i="{"+i+(r=xt(t))[0]+"}",t=r[1]))}return[i,t]}function bt(t,e){var n,o,i,r,a="",s=!1;do{o=(i=xt(t=mt(t,0)))[0],3==(n=gt(t=i[1])).ttype&&"/"==n.input?((i=xt(t=mt(t,n.input.length)))[0]=null==i[0]?"{}":yt(i[0]),t=i[1],o="\\frac{"+(o=yt(o))+"}",a+=o+="{"+i[0]+"}",n=gt(t)):null!=o&&(a+=o)}while((5!=n.ttype&&(9!=n.ttype||e)||0==ct)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=a.length;if(l>2&&"{"==a.charAt(0)&&a.indexOf(",")>0){var u=a.charAt(l-2);if(")"==u||"]"==u){var c=a.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,v="";for(r=1;l-1>r;r++)a.charAt(r)==c&&m++,a.charAt(r)==u&&0==--m&&","==a.charAt(r+2)&&"{"==a.charAt(r+3)&&(p.push(r+2),f[g=r+2]=[r+2]),"["!=a.charAt(r)&&"("!=a.charAt(r)&&"{"!=a.charAt(r)||y++,"]"!=a.charAt(r)&&")"!=a.charAt(r)&&"}"!=a.charAt(r)||y--,","==a.charAt(r)&&1==y&&f[g].push(r),0>y&&(g==r+1?r++:h=!1);p.push(l);var w=-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=[a.substr(p[r]+7,p[r+1]-p[r]-15)];else{x=[a.substring(p[r]+7,f[p[r]][1])];for(var b=2;f[p[r]].length>b;b++)x.push(a.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(a.substring(f[p[r]][f[p[r]].length-1]+1,p[r+1]-8))}else if(1==f[p[r]].length)x=[a.substr(p[r]+8,p[r+1]-p[r]-16)];else{for(x=[a.substring(p[r]+8,f[p[r]][1])],b=2;f[p[r]].length>b;b++)x.push(a.substring(f[p[r]][b-1]+1,f[p[r]][b]));x.push(a.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&&(v="|"+v),x.splice(b,1)):0==r&&(v="c"+v);w>0&&x.length!=w?h=!1:-1==w&&(w=x.length),d+=x.join("&")}d="\\begin{array}{"+v+"} "+d+"\\end{array}",h&&(a=d)}}}t=mt(t,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(a+="\\right.",s=!0):(a+=o="\\right"+vt(n),s=!0)}return ct>0&&!s&&(a+="\\right."),[a,t]}function St(t){return ct=0,null==(t=(t=(t=t.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":bt(t.replace(/^\s+/g,""),!1)[0]}if(function(){var t,e=lt.length;for(t=0;e>t;t++)!lt[t].tex||"boolean"==typeof lt[t].notexcopy&<[t].notexcopy||lt.push({input:lt[t].tex,tag:lt[t].tag,output:lt[t].output,ttype:lt[t].ttype,acc:lt[t].acc||!1});!function(){var t;for(lt.sort(ut),t=0;lt.length>t;t++)ht[t]=lt[t].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===Et)var Et=window.katex||void 0;if("undefined"==typeof renderMathInElement)var kt=window.renderMathInElement||void 0;let jt=0;function Ct(){return!(void 0===Et||!Et)}let Lt=!1;const $t="katexCSS";function At(t,e){const n=Ct();if("undefined"!=typeof window){if(Lt)return n;if(!n)return Lt=!0,y.loadStyleSheet($t),y.loadScript("katex").then(e=>{if(Et=S.interopDefault(window[e]),"katex"===t)return y.loadScript("renderMathInElement")}).then(t=>{kt=S.interopDefault(window[t]),"function"==typeof e&&e&&e(kt)}).catch(t=>{}),n}return"function"==typeof e&&e&&e(kt),n}function Nt(t,e){if(Ct()){const n=e.className,o=e.input,i=e.data,r=e.cssLink,a=e.options,s=e.element.ownerDocument;let l="";if(i instanceof Array)i.forEach(t=>{if(""===t)l+="<br>";else{const e=Et.renderToString(t,a);l+=r?`<div title="${o}" class="${n} css-katex" data-css="${r}">${e}</div>`:`<div title="${o}" class="${n}">${e}</div>`}});else{const t=Et.renderToString(i,a);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,--jt,!jt&&kt&&kt(s.body,a),void t(!0)}setTimeout(()=>{Nt(t,e)},10)}function Mt(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?St(t):t),e.push(t)})):e=n?St(i):i,e});if(!r)return o(!1);r.cssLink=y.getSrc(!0,$t),r.input=i,r.options=e,Nt(o,r)})}function Tt(t){return t.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}const qt=(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 Ot(t){let e=0;const n=qt(t),o=n.delimiters.map(({left:t,right:n,display:o,asciimath:i})=>({test:RegExp(`${Tt(t)}([\\s\\S]+?)${Tt(n)}`,"g"),replacer:(t,n)=>(++e,i&&(n=St(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,$t);const a=this;function s(t,e){Ct()?(e(n.ownerDocument.body,a.config),t(!0)):setTimeout(()=>{s(t,e)},10)}return new Promise(t=>{At(this.config.engine,e=>{s(t,e)})}).then(()=>t)}return!1}return this.config.cssLink=y.getSrc(!0,$t),S.addCssLink(t,this.config.cssLink,"css-katex"),function(t,e,n){return jt=t.length+e.length,At(n.engine),new Promise(o=>{const i=[];t.forEach(t=>{i.push(Mt(t,n,!1))}),e.forEach(t=>{i.push(Mt(t,n,!0))}),Promise.all(i).then(()=>{o(!0)})})}(i,r,this.config).then(()=>t)}}]}const Dt={},Pt={};function Ht(t,e){t.forEach(t=>{!function(t,e){const n=S.createElementMeta("Tex",t,!0);if(!n||0===n.data.length)return;const o=Dt[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 zt(){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,a=i.textContent.trim(),s=S.hashString(r+a),l=Dt[s];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,a,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),Dt[s]=e}).catch(t=>{})}catch(t){}return}const u=`${"https://"+(t.config.serverUrl??"kroki.io")}/${n}/${e}`;try{window.fetch(u,{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=i.id,e.className=i.className,i.style.cssText.length>0&&(e.style=i.style.cssText),e.innerHTML=t,i.parentNode.replaceWith(e),Dt[s]=e}}).catch(t=>{})}catch(t){}}),delete t.elements}function Bt(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=Pt),Pt.config={serverUrl:this.config.serverUrl,imageFormat:this.config.imageFormat},Pt.svgRender=this.config.svgRender,t.scripts.push({id:"showdown-kroki",code:zt,once:!0}),Ht(n,Pt),Pt.elements?.length>0&&(o=e,Object.keys(Dt).forEach(t=>{o.querySelector(`[id*="-${t}"]`)||delete Dt[t]})),t);var o}}]}if(void 0===Rt)var Rt=window.Shiki||void 0;function _t(){return!(void 0===(Rt=window.Shiki)||!Rt)}let Jt=!1;function Ft(){function t(){let t;function e(e){const n=e.createElement("div");n.classList.add("select-items","select-theme-items");const o=[];return 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 a=e.createElement("span");return a.classList.add("select-item-content"),a.textContent=i,r.appendChild(a),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.themeSelect.selector.dataset.theme=o.dataset.theme,t.themeSelect.selector.title=o.dataset.name,t.themeSelect.content.textContent=o.title,t.currContainer.dataset.theme=o.dataset.theme,t.currContainer.dataset.themeName=o.dataset.name;const e=t.currContainer.dataset.language,n=t.currContainer.dataset.theme,i=t.currContainer.querySelector("pre code");if(i){const t=i?.textContent;window.Shiki.codeToHtml(t,{lang:e,theme:n}).then(t=>{i.parentNode.outerHTML=t})}}n.style=""}),{option:r,content:a}}(n,i.id,i.displayName);n.appendChild(r.option),o.push(r)}),{options:n,items:o}}!function(n){if(t)return;t={},t.root=n.createElement("div"),t.root.classList.add("codeblock-tools"),t.root.innerHTML='<div class="start-nav">\n <div class="tools-select tools-select-lanuage">\n <div class="tools-select-selector">\n <span class="tools-select-selection-item"></span>\n </div>\n </div>\n <div class="tools-message hidden">\n <div class="tools-message-notice">\n <span role="img" class="tools-message-icon">\n <svg viewBox="64 64 896 896" focusable="false" width="1em" height="1em" fill="currentColor" aria-hidden="true">\n <path\n 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">\n </path>\n </svg>\n </span>\n <span class="tools-message-content"></span>\n </div>\n </div>\n</div>\n<div class="end-nav">\n <div class="tools-select tools-select-theme">\n <div class="tools-select-selector">\n <span class="tools-select-selection-item"></span>\n </div>\n <span class="tools-select-arrow" unselectable="on" aria-hidden="true">\n <div class="tools-icon" data-name="ArrowDown">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" fill-rule="evenodd"\n class="svg-icon svg-icon-arrow-down" width="1em" height="1em" style="width: 16px; height: 16px;">\n <path\n d="M57.297 102.865c3.834-3.834 10.007-3.904 13.927-.21l.215.21 48.99 48.99c3.834 3.834 10.007 3.904 13.927.209l.215-.21 48.99-48.99c3.905-3.904 10.237-3.904 14.142 0 3.834 3.835 3.904 10.008.21 13.928l-.21.215-48.99 48.99c-11.598 11.599-30.331 11.714-42.073.348l-.353-.348-48.99-48.99c-3.905-3.905-3.905-10.237 0-14.142Z">\n </path>\n </svg>\n </div>\n </span>\n </div>\n</div>\n<div class="tools-divider tools-divider-vertical"></div>\n<div class="codeblock-tools-button tools-copy-button" title="Action Copy">\n <div class="tools-icon" data-name="ActionCopy">\n <svg width="1em" height="1em" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"\n class="svg-icon svg-icon-action-copy">\n <g fill="currentColor" fill-rule="nonzero">\n <path\n d="M198 28h-80c-16.569 0-30 13.431-30 30v80c0 16.569 13.431 30 30 30h80c16.569 0 30-13.431 30-30V58c0-16.569-13.431-30-30-30Zm-80 20h80c5.523 0 10 4.477 10 10v80c0 5.523-4.477 10-10 10h-80c-5.523 0-10-4.477-10-10V58c0-5.523 4.477-10 10-10Z">\n </path>\n <path\n d="M97.6 88v20H58c-5.43 0-9.848 4.327-9.996 9.72L48 118v80c0 5.43 4.327 9.848 9.72 9.996L58 208h80c5.43 0 9.848-4.327 9.996-9.72L148 198v-40.705h20V198c0 16.403-13.164 29.731-29.504 29.996L138 228H58c-16.403 0-29.731-13.164-29.996-29.504L28 198v-80c0-16.403 13.164-29.731 29.504-29.996L58 88h39.6Z">\n </path>\n </g>\n </svg>\n </div>\n</div>';const o=t.root.querySelector(".tools-select-lanuage");o&&(t.langSelect={select:o},t.langSelect.selector=o.querySelector(".tools-select-selector"),t.langSelect.content=o.querySelector(".tools-select-selection-item"));const i=t.root.querySelector(".tools-message");i&&(t.message={select:i},t.message.notice=i.querySelector(".tools-message-notice"),t.message.content=i.querySelector(".tools-message-content"));const r=t.root.querySelector(".tools-select-theme");r&&(t.themeSelect={select:r},t.themeSelect.selector=r.querySelector(".tools-select-selector"),t.themeSelect.content=r.querySelector(".tools-select-selection-item"),t.themes=e(n),t.root.appendChild(t.themes.options),r.addEventListener("click",function(){if(t.currContainer&&t.themes){let e;t.themes.items.forEach(function(n){t.currContainer.dataset.theme===n.option.dataset.theme?(e=n.option,n.option.classList.add("selected-item")):n.option.classList.remove("selected-item")}),t.themes.options.style.top=t.root.clientHeight-1+"px",t.themes.options.style.right=0,t.themes.options.classList.remove("hidden"),e&&e.scrollIntoView({container:"nearest"})}}));const a=t.root.querySelector(".tools-copy-button");a&&a.addEventListener("click",function(){if(!t.currContainer)return;const e=t.currContainer.querySelector("pre code"),n=e?.textContent;navigator.clipboard.writeText(n).then(function(){t.message&&(t.message.content.textContent="复制成功",t.message.select.classList.remove("hidden"),t.message.notice.classList.add("show"),t.message.timer&&(clearTimeout(t.message.timer),t.message.timer=null),t.message.timer=setTimeout(()=>{t.message.notice.classList.remove("show"),t.message.select.classList.add("hidden"),t.message.content.textContent="",t.message.timer=null},5e3))},function(t){})})}(document);const n=document.querySelectorAll(".codeblock-container");for(let e=0;n.length>e;e++){const o=n[e];o.addEventListener("mouseenter",function(e){if(t){const n=e.target;if(n===t.currContainer)return;t.currContainer=n,t.timer&&(clearTimeout(t.timer),t.timer=null),t.timer=setTimeout(()=>{t.message.timer&&(clearTimeout(t.message.timer),t.message.timer=null),t.message.notice.classList.remove("show"),t.message.select.classList.add("hidden"),t.message.content.textContent="",t.langSelect.selector.dataset.language=n.dataset.language,t.langSelect.selector.dataset.title=n.dataset.langName,t.langSelect.content.textContent=n.dataset.langName,t.themeSelect.selector.dataset.theme=n.dataset.theme,t.themeSelect.selector.dataset.title=n.dataset.themeName,t.themeSelect.content.textContent=n.dataset.themeName;const e=n.getBoundingClientRect();if(t.themes.options.style="",t.themes.options.classList.add("hidden"),t.root.style.top=e.top+window.scrollY+"px",t.root.style.width="500px",t.root.style.right=document.body.offsetWidth-e.right+"px",!t.parent){const e=document.querySelector(".showdowns");t.parent=e?e.parentElement:document.body}t.parent.contains(t.root)||t.parent.appendChild(t.root),t.timer=null},1500)}}),o.addEventListener("mouseleave",function(e){t.timer&&(clearTimeout(t.timer),t.timer=null),e.relatedTarget?.closest(".codeblock-tools")!==t.root&&t&&t.parent&&t.parent.contains(t.root)&&(t.themes.options.style="",t.themes.options.classList.add("hidden"),t.parent.removeChild(t.root),t.message.timer&&(clearTimeout(t.message.timer),t.message.timer=null),t.message.notice.classList.remove("show"),t.message.select.classList.add("hidden"),t.message.content.textContent="",t.currContainer=null)})}}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 It(t,e,n){if(_t()){const o=e.textContent.trim(),i=e.classList[0],r=e.ownerDocument,a=S.parseLangAttr(e.dataset.lang),s=a?.theme?a.theme:n.theme;let l=s;for(let t=0;Rt.bundledThemesInfo.length>t;t++)if(Rt.bundledThemesInfo[t].id===l){l=Rt.bundledThemesInfo[t].displayName;break}let u=i;for(let t=0;Rt.bundledLanguagesInfo.length>t;t++)if(Rt.bundledLanguagesInfo[t].id===u){u=Rt.bundledLanguagesInfo[t].name;break}return void Rt.codeToHtml(o,{lang:i,theme:s}).then(n=>{const o=r.createElement("div");o.classList.add("codeblock-container"),o.dataset.theme=s,o.dataset.themeName=l,o.dataset.language=i,o.dataset.langName=u,o.innerHTML=n,e.parentNode.replaceWith(o),t(!0)}).catch(e=>{t(!1)})}setTimeout(()=>{It(t,e,n)},100)}function Wt(t,e){return new Promise(n=>{It(n,t,e)})}function Vt(t,e){return function(){const t=_t();if("undefined"!=typeof window){if(Jt)return t;t||(Jt=!0,y.loadScript("Shiki",!1,"local"===y.getCDN()?"link":"import").then(t=>{Rt=S.interopDefault(window[t])}).catch(t=>{}))}}(),new Promise(n=>{const o=[];t.forEach(t=>{o.push(Wt(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function Ut(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:Ft,module:!0}),Vt(n,this.config).then(()=>t)}}]}if("undefined"==typeof window)throw Error("The showdown MathJax extension can only be used in browser environment!");if(void 0===Kt)var Kt=window.MathJax||void 0;let Zt=0;function Gt(){return!(void 0===Kt||!Kt)}let Xt=!1;function Qt(t){const e=Gt();if("undefined"!=typeof window){if(Xt)return e;e||(Xt=!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=>{Kt=S.interopDefault(window[t])}).catch(t=>{}))}return e}function Yt(t,e){if(Gt()){const n=e.id,o=e.className,i=e.cssLink??"",r=i.length>0?" css-mathjax":"",a=e.element,s=a.ownerDocument;return void Kt.tex2svgPromise(e.data,e.options).then(e=>{const l=s.createElement("div");l.id=n,l.className=`${o}${r}`,i.length>0&&(l.dataset.css=i),a.style.cssText.length>0&&(l.style=a.style.cssText),l.appendChild(e),a.parentNode.replaceWith(l),--Zt,Zt||Kt.startup.document.clear(),t(!0)}).catch(e=>{--Zt,Zt||Kt.startup.document.clear(),t(!1)})}setTimeout(()=>{Yt(t,e)},10)}function te(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??{}),Yt(n,o)})}const ee=(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(!Gt())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 oe(t){const e=ee(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}),Qt(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 Zt=t.length,Qt(e.mathJax),new Promise(n=>{const o=[];t.forEach(t=>{o.push(te(t,e.conversion))}),Promise.all(o).then(()=>{n(!0)})})}(r,this.config).then(()=>t):!!i&&t}}]}const ie="echarts";if("undefined"==typeof window)throw Error(`The showdown ${ie} extension can only be used in browser environment!`);if(void 0===re)var re=window.echarts||void 0;function ae(){return!!re}let se=!1;function le(t,e){if(ae()){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(()=>{le(t,e)},20)}function ue(t,e,n){const o=S.createElementMeta(ie,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=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=>{le(t,o)})}function ce(t,e,n){const o={outer:[{name:ie,src:y.getSrc(!1,ie,"jsdelivr")}],inner:[]};return e.push(o),function(){const t=ae();if("undefined"!=typeof window){if(se)return t;t||(se=!0,y.loadScript(ie).then(t=>{re=S.interopDefault(window[t])}))}}(),new Promise(e=>{const i=[];t.forEach(t=>{i.push(ue(t,o.inner,n))}),Promise.all(i).then(()=>{e(!0)})})}function de(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.${ie}.language-${ie}`);return!!n.length&&ce(n,t.scripts,this.config).then(()=>t)}}]}const pe="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===he)var he=window.mermaid||void 0;function me(){return!(void 0===he||!he)}let fe=!1;function ge(t,e){if(me()){const n=e.className,o=e.element.parentNode,i=e.element;return void he.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(()=>{ge(t,e)},10)}function ye(t){return new Promise(e=>{const n=S.createElementMeta(pe,t);if(!n||0===n.data.length)return e(!1);ge(e,n)})}function ve(t,e){return function(t){const e=me();if("undefined"!=typeof window){if(fe)return e;if(!e)return fe=!0,y.loadScript(pe).then(e=>{(he=S.interopDefault(window[e])).initialize(t)}),e}he.initialize(t)}(e),new Promise(e=>{const n=[];t.forEach(t=>{n.push(ye(t))}),Promise.all(n).then(()=>{e(!0)})})}function we(t,e,n){var o=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,r=63&n,a="";return a+=xe(63&t>>2),a+=xe(63&o),a+=xe(63&i),a+=xe(63&r)}function xe(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 be(t){var e=t.charCodeAt(0);return"_"===t?63:"-"===t?62:97>e?65>e?48>e?"?":e-48:e-55:e-61}function Se(t){var e=be(t[0]),n=be(t[1]),o=be(t[2]);return[e<<2|n>>4&63,n<<4&240|o>>2&15,o<<6&192|63&be(t[3])]}function Ee(t){return function(t){for(var e="",n=0;t.length>n;n+=3)e+=n+2==t.length?we(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1==t.length?we(t.charCodeAt(n),0,0):we(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(e.deflateRawSync(t,{level:9}).toString("binary"))}function ke(t){return""+e.inflateRawSync(Buffer.from(function(t){var e="",n=0;for(n=0;t.length>n;n+=4){var o=Se(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 je={encodeuml:function(t){const e="@startuml",n="@enduml";return Ee(`${e}${(t.split(e)[1]+"").split(n)[0]||""}${n}`)},decodeuml:function(t){return ke(t)}},Ce="img";let Le=0;function $e(t,e){return Le=t.length,new Promise(n=>{const o=[];t.forEach(t=>{o.push(function(t,e){return new Promise(n=>{const o=S.createElementMeta("PlantUML",t);if(!o||0===o.data.length)return n(!1);let i=t.style.cssText;i.length>0&&(i=` style="${i}"`);const r=e.imageFormat;if("svg"===r){if("function"==typeof e.svgRender&&e.svgRender){try{e.svgRender(o.id,o.data,{count:Le}).then(e=>{t.parentNode.outerHTML=`<div id="${o.id}" class="${o.className}"${i}>${e}</div>`,n(!0)})}catch(t){n(!1)}return}if(window&&window.fetch){const a=window.location&&window.location.protocol,s=r!==Ce?"."+r:"",l=`${("http:"===a||"https:"===a?"//":"https://")+e.umlWebSite}/${r}/${je.encodeuml(o.data)}${s}`;try{window.fetch(l).then(t=>{if("string"==typeof t)return t;if(t.ok)return t.text();throw Error("RequestError: "+t.status)}).then(e=>{t.parentNode.outerHTML=`<div id="${o.id}" class="${o.className}"${i}>${e}</div>`,n(!0)}).catch(t=>{n(!1)})}catch(t){n(!1)}return}return void n(!1)}const a=window&&window.location.protocol,s=("http:"===a||"https:"===a?"//":"https://")+e.umlWebSite,l=r!==Ce?"."+r:"",u=je.encodeuml(code);return t.parentNode.outerHTML=`<div id="${o.id}" class="${o.className}"${i}><img src='${s}/${r}/${u}${l}' alt=''></img></div>`,n(!0)})}(t,e))}),Promise.all(o).then(()=>{n(!0)})})}function Ae(t){return[{type:"output",config:((t={})=>({umlWebSite:"www.plantuml.com/plantuml",imageFormat:Ce,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&&$e(n,this.config).then(()=>t)}}]}const Ne="railroad",Me="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");let Te=!1;function qe(){return Te}let Oe,De=!1;function Pe(t,e){if(qe()){const n=e.id,o=e.className,i=e.cssLink,r=window.eval(e.data).format(),a=e.element.ownerDocument;let s=e.element.style.cssText;return s.length>0&&(s=` style="${s}"`),e.element.parentNode.outerHTML=i?`<div id="${n}" class="${o} css-railroad" data-css="${i}"${s}></div>`:`<div id="${n}" class="${o}"${s}></div>`,r.addTo(a.getElementById(n)),t(!0)}setTimeout(()=>{Pe(t,e)},10)}function He(t){return new Promise(e=>{const n=S.createElementMeta(Ne,t);if(!n||0===n.data.length)return e(!1);n.cssLink=y.getSrc(!0,Me),Pe(e,n)})}function ze(t){return function(){const t=qe();if("undefined"!=typeof window){if(De)return t;t||(De=!0,y.loadStyleSheet(Me),y.loadScript(Ne).then(()=>{Te=!0}))}}(),new Promise(e=>{const n=[];t.forEach(t=>{n.push(He(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===Be)var Be=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(Oe=window.Diagram,window.Diagram.Signal))var Re=window.Diagram;const _e=["simple","hand"];if(void 0===Re&&"undefined"!=typeof window)Re=window.SequenceJS;function Je(){return!!Be}function Fe(){return Je()&&!!Re}let Ie=!1;const We="sequenceCSS";function Ve(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=Fe();if("undefined"!=typeof window){if(Ie)return t;t||(Ie=!0,y.loadStyleSheet(We),y.loadScript("WebFont").then(()=>Je()?"Raphael":y.loadScript("Raphael")).then(t=>(Be=S.interopDefault(window[t]),y.loadScript("Snap"))).then(()=>y.loadScript("underscore")).then(()=>(!Oe&&window.Diagram&&(Oe=window.Diagram),y.loadScript("sequence"))).then(()=>{Re=window.Diagram,window.SequenceJS=Re,Oe&&(window.Diagram=Oe)}))}return t}(),r=y.getSrc(!0,We),a=t.textContent.trim(),s="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:s,data:a,langattr:e,cssLink:r}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:a,langattr:e,cssLink:r}}))}function Ue(t){if(Fe()){const e=t.id,n=t.className,o=t.data;if(!o||0===o.length)return;const i=t.cssLink;let r="hand";const a=t.langattr;if(a){const t=JSON.parse(a);t&&t.theme&&-1!=_e.indexOf(t.theme)&&(r=t.theme)}let s=window.document.getElementById(e);if(s){s.parentNode.outerHTML=i?`<div id="${e}" class="${n} css-sequence" data-css="${i}"></div>`:`<div id="${e}" class="${n}"></div>`,s=window.document.getElementById(e);return void Re.parse(o).drawSVG(s||e,{theme:r})}}setTimeout(()=>{Ue(t)},10)}function Ke(){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&&Ue(t.detail)})),this.config={cssLink:y.getSrc(!0,We)}),function(t){return!!t.length&&(t.forEach(t=>{Ve(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,We),"css-sequence"),n}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===Ze)var Ze=window.WaveDrom||void 0;let Ge=0,Xe=0;function Qe(){return!!Ze}let Ye=!1;function tn(t,e){if(Qe()){const n=e.index,o=e.id,i=e.className,r=e.data;if(!r||0===r.length)return t(!1);let a=e.element;return a.parentNode.outerHTML=S.renderCacheElement(a.ownerDocument,o+n,i,t=>{const e=window.eval(`(${r})`);Ze.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(()=>{tn(t,e)},10)}function en(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 a=(t.classList.length>0?t.classList[0]:"")+(t.className&&i?" ":"")+i,s=Xe;++Xe,--Ge,Ge||(Xe=0);const l="WaveDrom_Display_";t.id=l+s;tn(e,{element:t,index:s,id:l,className:a,data:r})})}function nn(t,e){return function(t){const e=Qe();Ye||e||(Ye=!0,"undefined"!=typeof window&&y.loadScript({WaveDromSkin:t}).then(()=>y.loadScript("WaveDrom")).then(t=>{Ze=S.interopDefault(window[t])}))}(e),new Promise(e=>{const n=[];Ge=t.length,t.forEach(t=>{n.push(en(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===on)var on=window.Raphael||void 0;if(void 0===rn)var rn=window.flowchart||void 0;function an(){return!(void 0===on||!on||void 0===rn||!rn)}let sn=!1;function ln(){const t=an();if("undefined"!=typeof window){if(sn)return t;if(!t){if(sn=!0,!on)return y.loadScript("Raphael").then(t=>(on=S.interopDefault(window[t]),y.loadScript("flowchart"))).then(t=>{rn=S.interopDefault(window[t])}),t;y.loadScript("flowchart").then(t=>{rn=S.interopDefault(window[t])})}}return t}function un(t,e){if(an()){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=>{rn.parse(i).drawSVG(t,r)}),void t(!0)}setTimeout(()=>{un(t,e)},10)}function cn(t,e){return new Promise(n=>{const o=S.createElementMeta("flowchart",t);if(!o||0===o.data.length)return n(!1);o.options=e,un(n,o)})}function dn(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 ln(),new Promise(o=>{const i=[];t.forEach(t=>{i.push(cn(t,n))}),e.forEach(t=>{i.push(cn(t,n))}),Promise.all(i).then(()=>{o(!0)})})}(n,o,this.config).then(()=>t)}}]}const pn=(t={})=>({flavor:"github",mathEngine:"mathjax",...t}),hn=(e,n)=>{let o=null;try{o=t.extension(e)}catch{}return o||n},mn=(e,n={})=>{const o=e&&e.mermaid||{},i=e&&e.plantuml||{},r=e&&e.mathjax||{},a=e&&e.tex||{},l=e&&e.katex||{},u=e&&e.kroki||{},c=e&&e.vega||{},d=e&&e.shiki||{},p={"showdown-toc":hn("showdown-toc",H),"showdown-plantuml":Ae(i),"showdown-mermaid":(m=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}))(m),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":oe(r),"showdown-tex":G(a),"showdown-katex":Ot(l),"showdown-kroki":Bt(u),"showdown-flowchart":dn(),"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&&I(n).then(()=>t)}}],"showdown-vega":it(c),"showdown-wavedrom":[{type:"output",config:((t={})=>({skin:"default",...t}))(h),filter:function(t){const e=t.wrapper;if(!e)return!1;const n=e.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(s("Begin render wavedrom elements."),nn(n,this.config.skin).then(()=>(s("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,Me)},S.addCssLink(t,this.config.cssLink,"css-railroad"),ze(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,k)},S.addCssLink(t,this.config.cssLink,"css-abc"),T(n,t.scripts).then(()=>t))}}],"showdown-echarts":de(),"showdown-sequence":hn("showdown-sequence",Ke),...n,"showdown-shiki":Ut(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 h,m;let f=[];for(let e in p)p.hasOwnProperty(e)&&(t.asyncExtension(e,p[e]),f.push(e));return f},fn=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;let i=document.getElementById(e);i||(t?"string"==typeof t&&(t=document.querySelector(t)):t=document.body,i=t);const r="script-"+e;let a=document.querySelector(`${i.tagName} > #${r}`);return a||(a=document.createElement("script"),a.id=r,a.type=o?"module":"text/javascript",a.text=n,i.appendChild(a)),!0},gn=(t,e,n,o)=>{if(!e||!n||"undefined"==typeof document)return!1;let i=document.getElementById(e);i||(t?"string"==typeof t&&(t=document.querySelector(t)):t=document.body,i=t);const r="script-"+e;let a=document.querySelector(`${i.tagName} > #${r}`);return a||(a=document.createElement("script"),a.id=r,a.type=o?"module":"text/javascript",a.text=n,i.insertBefore(a,i.children[0])),!0};function yn(t,e,n){return new Promise((o,i)=>{t&&e&&"undefined"!=typeof document||i("Args is invaild!");const r=t.toLowerCase(),a="script-"+r;let s=document.getElementById(a);if(s)return o(t);const l=document.head||document.getElementsByTagName("head")[0];if(s=document.createElement("script"),s.id=a,n&&(s.type="module","string"==typeof n&&"import"===n))return s.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(s),o(t);s.src=e,s.onload=()=>{o(t)},l.appendChild(s)})}const vn=function(e,n,o){let i=n;if(e.host&&"string"==typeof e.host&&(i=document.querySelector(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(()=>{fn(i,e.id,e.code,e.module)}),!0):fn(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(()=>{gn(i,e.id,e.code,e.module)}):gn(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&&"string"==typeof n.host&&(r=document.querySelector(n.host)),o?o.then(()=>{fn(r,n.id,n.code,n.module)}):fn(r,n.id,n.code,n.module)}return!0},wn=["github","ghost","vanilla","original","allon"],xn=["mathjax","katex"],bn={showdown:t,converter:null,defaultOptions:{showdown:pn(),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:{}})},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===wn.indexOf(t)&&(t="github"),this.defaultOptions.showdown.flavor=t,this.setFlavor(t))},setMathEngine:function(t){this.initDefaultOptions(),t&&(-1===xn.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=hn(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=pn(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=pn(this.defaultOptions&&this.defaultOptions.showdown||{}),n=((e,n={})=>{const o={"showdown-toc":H(e.toc),"showdown-align":rt(),"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":Ke(),...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=mn(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=yn(e.name,e.src,e.module);for(let t=1;r.outer.length>t;++t)e=r.outer[t],o=o.then(()=>yn(e.name,e.src,e.module));vn(r,n,o);continue}if(!vn(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=bn;
|
|
7
7
|
//# sourceMappingURL=showdowns.core.min.js.map
|