md-editor-v3 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function($e,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],g):($e=typeof globalThis<"u"?globalThis:$e||self,g($e.MdEditorV3={},$e.Vue))})(this,function($e,g){var Xa,nr,$n,Rr,rr,Ta,gt,ir,$t,Ne,pe,Bt,Qn,Ct,wt,or,Tt,Jr,ei,ar,qr,Zi,rn,Pl,mg,ko,ti,xl,bn,Vu,TT,wo,Ra,kl,Wr,Ei,zr,Ci,wl,gg,qa,Lu,Wa,Mu,Ae,Fe,vl,$g,vo,Rl;"use strict";var VK=Object.defineProperty;var EK=($e,g,W)=>g in $e?VK($e,g,{enumerable:!0,configurable:!0,writable:!0,value:W}):$e[g]=W;var je=($e,g,W)=>(EK($e,typeof g!="symbol"?g+"":g,W),W),hg=($e,g,W)=>{if(!g.has($e))throw TypeError("Cannot "+W)};var T=($e,g,W)=>(hg($e,g,"read from private field"),W?W.call($e):g.get($e)),me=($e,g,W)=>{if(g.has($e))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add($e):g.set($e,W)},ce=($e,g,W,qo)=>(hg($e,g,"write to private field"),qo?qo.call($e,W):g.set($e,W),W),Nu=($e,g,W,qo)=>({set _(Bu){ce($e,g,Bu,W)},get _(){return T($e,g,qo)}}),ae=($e,g,W)=>(hg($e,g,"access private method"),W);const W="md-editor",qo="md-editor-v3",Bu="https://at.alicdn.com/t/c/font_2605852_u82y61ve02.js",Ie="https://cdnjs.cloudflare.com/ajax/libs",RT=`${Ie}/highlight.js/11.7.0/highlight.min.js`,Qg={main:`${Ie}/prettier/2.8.0/standalone.js`,markdown:`${Ie}/prettier/2.8.0/parser-markdown.js`},bg={css:`${Ie}/cropperjs/1.5.13/cropper.min.css`,js:`${Ie}/cropperjs/1.5.13/cropper.min.js`},qT=`${Ie}/screenfull.js/5.2.0/screenfull.min.js`,yg=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],Sg=["markdownTotal","=","scrollSwitch"],Pg={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},WT=`${Ie}/mermaid/9.4.0/mermaid.min.js`,xg={js:`${Ie}/KaTeX/0.16.3/katex.min.js`,css:`${Ie}/KaTeX/0.16.3/katex.min.css`},kg={a11y:{light:`${Ie}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${Ie}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${Ie}/highlight.js/11.7.0/styles/github.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${Ie}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${Ie}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${Ie}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${Ie}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Ie}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},Ve={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(t,e)=>e,markdownItConfig:()=>{}},zT=t=>{if(t)for(const e in t){const n=t[e];n&&(Ve[e]=n)}},UT=g.defineComponent({setup(){return()=>g.createVNode("div",{class:`${W}-divider`},null)}}),Cn=({instance:t,ctx:e,props:n={}},r="default")=>{const i=(t==null?void 0:t.$slots[r])||(e==null?void 0:e.slots[r]);return(i?i(t):"")||n[r]},ZT={trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},Wo=g.defineComponent({props:ZT,setup(t,e){const n=`${W}-dropdown-hidden`,r=g.reactive({overlayClass:[n],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=g.ref(),o=g.ref(),a=()=>{var P;t.trigger==="hover"&&(r.triggerHover=!0);const u=i.value,f=o.value,d=u.getBoundingClientRect(),p=u.offsetTop,m=u.offsetLeft,$=d.height,Q=d.width,y=((P=document.querySelector(t.relative))==null?void 0:P.scrollLeft)||0;r.overlayStyle={...r.overlayStyle,top:p+$+"px",left:m-f.offsetWidth/2+Q/2-y+"px"},t.onChange(!0)},O=()=>{r.overlayHover=!0};g.watch(()=>t.visible,u=>{u?r.overlayClass=r.overlayClass.filter(f=>f!==n):r.overlayClass.push(n)});const l=u=>{const f=i.value,d=o.value;!f.contains(u.target)&&!d.contains(u.target)&&t.onChange(!1)};let s=-1;const c=u=>{i.value===u.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(s),s=window.setTimeout(()=>{!r.overlayHover&&!r.triggerHover&&t.onChange(!1)},10)};return g.onMounted(()=>{t.trigger==="click"?(i.value.addEventListener("click",a),document.addEventListener("click",l)):(i.value.addEventListener("mouseenter",a),i.value.addEventListener("mouseleave",c),o.value.addEventListener("mouseenter",O),o.value.addEventListener("mouseleave",c))}),g.onBeforeUnmount(()=>{t.trigger==="click"?(i.value.removeEventListener("click",a),document.removeEventListener("click",l)):(i.value.removeEventListener("mouseenter",a),i.value.removeEventListener("mouseleave",c),o.value.removeEventListener("mouseenter",O),o.value.removeEventListener("mouseleave",c))}),()=>{const u=Cn({ctx:e}),f=Cn({props:t,ctx:e},"overlay"),d=g.cloneVNode(u instanceof Array?u[0]:u,{ref:i}),p=g.createVNode("div",{class:[`${W}-dropdown`,r.overlayClass],style:r.overlayStyle,ref:o},[g.createVNode("div",{class:`${W}-dropdown-overlay`},[f instanceof Array?f[0]:f])]);return[d,p]}}});class YT{constructor(){je(this,"pools",{})}remove(e,n,r){const o=this.pools[e]&&this.pools[e][n];o&&(this.pools[e][n]=o.filter(a=>a!==r))}clear(e){this.pools[e]={}}on(e,n){return this.pools[e]||(this.pools[e]={}),this.pools[e][n.name]||(this.pools[e][n.name]=[]),this.pools[e][n.name].push(n.callback),this.pools[e][n.name].includes(n.callback)}emit(e,n,...r){this.pools[e]||(this.pools[e]={});const o=this.pools[e][n];o&&o.forEach(a=>{try{a(...r)}catch(O){console.error(`${n} monitor event exception!`,O)}})}}const K=new YT,VT=(t,e={newWindow:!0,nofollow:!0})=>{t||console.error("error link!");const n=document.createElement("a");n.href=t,n.style.display="none",e.newWindow&&(n.target="_blank"),e.nofollow&&(n.rel="noopener noreferrer"),document.body.appendChild(n),n.click(),document.body.removeChild(n)},ET=(t,e="image.png")=>{const n=t.split(","),r=n[0].match(/:(.*?);/);if(r){const i=r[1],o=atob(n[1]);let a=o.length;const O=new Uint8Array(a);for(;a--;)O[a]=o.charCodeAt(a);return new File([O],e,{type:i})}return null},CT=t=>{if(!t)return t;const e=t.split(`
1
+ (function($e,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],g):($e=typeof globalThis<"u"?globalThis:$e||self,g($e.MdEditorV3={},$e.Vue))})(this,function($e,g){var Xa,nr,$n,Rr,rr,Ta,gt,ir,$t,Ne,pe,Bt,Qn,Ct,wt,or,Tt,Jr,ei,ar,qr,Zi,rn,Pl,mg,ko,ti,xl,bn,Vu,TT,wo,Ra,kl,Wr,Ei,zr,Ci,wl,gg,qa,Lu,Wa,Mu,Ae,Fe,vl,$g,vo,Rl;"use strict";var VK=Object.defineProperty;var EK=($e,g,W)=>g in $e?VK($e,g,{enumerable:!0,configurable:!0,writable:!0,value:W}):$e[g]=W;var je=($e,g,W)=>(EK($e,typeof g!="symbol"?g+"":g,W),W),hg=($e,g,W)=>{if(!g.has($e))throw TypeError("Cannot "+W)};var T=($e,g,W)=>(hg($e,g,"read from private field"),W?W.call($e):g.get($e)),me=($e,g,W)=>{if(g.has($e))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add($e):g.set($e,W)},ce=($e,g,W,qo)=>(hg($e,g,"write to private field"),qo?qo.call($e,W):g.set($e,W),W),Nu=($e,g,W,qo)=>({set _(Bu){ce($e,g,Bu,W)},get _(){return T($e,g,qo)}}),ae=($e,g,W)=>(hg($e,g,"access private method"),W);const W="md-editor",qo="md-editor-v3",Bu="https://at.alicdn.com/t/c/font_2605852_u82y61ve02.js",Ie="https://cdnjs.cloudflare.com/ajax/libs",RT=`${Ie}/highlight.js/11.7.0/highlight.min.js`,Qg={main:`${Ie}/prettier/2.8.0/standalone.js`,markdown:`${Ie}/prettier/2.8.0/parser-markdown.js`},bg={css:`${Ie}/cropperjs/1.5.13/cropper.min.css`,js:`${Ie}/cropperjs/1.5.13/cropper.min.js`},qT=`${Ie}/screenfull.js/5.2.0/screenfull.min.js`,yg=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],Sg=["markdownTotal","=","scrollSwitch"],Pg={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},WT=`${Ie}/mermaid/10.1.0/mermaid.esm.min.mjs`,xg={js:`${Ie}/KaTeX/0.16.3/katex.min.js`,css:`${Ie}/KaTeX/0.16.3/katex.min.css`},kg={a11y:{light:`${Ie}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${Ie}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${Ie}/highlight.js/11.7.0/styles/github.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${Ie}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${Ie}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${Ie}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${Ie}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Ie}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${Ie}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},Ve={editorExtensions:{},editorConfig:{},codeMirrorExtensions:(t,e)=>e,markdownItConfig:()=>{}},zT=t=>{if(t)for(const e in t){const n=t[e];n&&(Ve[e]=n)}},UT=g.defineComponent({setup(){return()=>g.createVNode("div",{class:`${W}-divider`},null)}}),Cn=({instance:t,ctx:e,props:n={}},r="default")=>{const i=(t==null?void 0:t.$slots[r])||(e==null?void 0:e.slots[r]);return(i?i(t):"")||n[r]},ZT={trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}},Wo=g.defineComponent({props:ZT,setup(t,e){const n=`${W}-dropdown-hidden`,r=g.reactive({overlayClass:[n],overlayStyle:{},triggerHover:!1,overlayHover:!1}),i=g.ref(),o=g.ref(),a=()=>{var P;t.trigger==="hover"&&(r.triggerHover=!0);const u=i.value,f=o.value,d=u.getBoundingClientRect(),p=u.offsetTop,m=u.offsetLeft,$=d.height,Q=d.width,y=((P=document.querySelector(t.relative))==null?void 0:P.scrollLeft)||0;r.overlayStyle={...r.overlayStyle,top:p+$+"px",left:m-f.offsetWidth/2+Q/2-y+"px"},t.onChange(!0)},O=()=>{r.overlayHover=!0};g.watch(()=>t.visible,u=>{u?r.overlayClass=r.overlayClass.filter(f=>f!==n):r.overlayClass.push(n)});const l=u=>{const f=i.value,d=o.value;!f.contains(u.target)&&!d.contains(u.target)&&t.onChange(!1)};let s=-1;const c=u=>{i.value===u.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(s),s=window.setTimeout(()=>{!r.overlayHover&&!r.triggerHover&&t.onChange(!1)},10)};return g.onMounted(()=>{t.trigger==="click"?(i.value.addEventListener("click",a),document.addEventListener("click",l)):(i.value.addEventListener("mouseenter",a),i.value.addEventListener("mouseleave",c),o.value.addEventListener("mouseenter",O),o.value.addEventListener("mouseleave",c))}),g.onBeforeUnmount(()=>{t.trigger==="click"?(i.value.removeEventListener("click",a),document.removeEventListener("click",l)):(i.value.removeEventListener("mouseenter",a),i.value.removeEventListener("mouseleave",c),o.value.removeEventListener("mouseenter",O),o.value.removeEventListener("mouseleave",c))}),()=>{const u=Cn({ctx:e}),f=Cn({props:t,ctx:e},"overlay"),d=g.cloneVNode(u instanceof Array?u[0]:u,{ref:i}),p=g.createVNode("div",{class:[`${W}-dropdown`,r.overlayClass],style:r.overlayStyle,ref:o},[g.createVNode("div",{class:`${W}-dropdown-overlay`},[f instanceof Array?f[0]:f])]);return[d,p]}}});class YT{constructor(){je(this,"pools",{})}remove(e,n,r){const o=this.pools[e]&&this.pools[e][n];o&&(this.pools[e][n]=o.filter(a=>a!==r))}clear(e){this.pools[e]={}}on(e,n){return this.pools[e]||(this.pools[e]={}),this.pools[e][n.name]||(this.pools[e][n.name]=[]),this.pools[e][n.name].push(n.callback),this.pools[e][n.name].includes(n.callback)}emit(e,n,...r){this.pools[e]||(this.pools[e]={});const o=this.pools[e][n];o&&o.forEach(a=>{try{a(...r)}catch(O){console.error(`${n} monitor event exception!`,O)}})}}const K=new YT,VT=(t,e={newWindow:!0,nofollow:!0})=>{t||console.error("error link!");const n=document.createElement("a");n.href=t,n.style.display="none",e.newWindow&&(n.target="_blank"),e.nofollow&&(n.rel="noopener noreferrer"),document.body.appendChild(n),n.click(),document.body.removeChild(n)},ET=(t,e="image.png")=>{const n=t.split(","),r=n[0].match(/:(.*?);/);if(r){const i=r[1],o=atob(n[1]);let a=o.length;const O=new Uint8Array(a);for(;a--;)O[a]=o.charCodeAt(a);return new File([O],e,{type:i})}return null},CT=t=>{if(!t)return t;const e=t.split(`
2
2
  `),n=['<span rn-wrapper aria-hidden="true">'];return e.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${t}</span>${n.join("")}`},ql=(t,e=200)=>{let n=0;return(...r)=>new Promise(i=>{n&&(clearTimeout(n),i("cancel")),n=window.setTimeout(()=>{t.apply(void 0,r),n=0,i("done")},e)})},AT=(t,e=200)=>{let n=0,r=null;return(...i)=>{const o=a=>{n===0&&(n=a),a-n>=e?(t.apply(void 0,r),r=null,n=0):window.requestAnimationFrame(o)};r===null&&window.requestAnimationFrame(o),r=i}},jT=(t,e)=>{const n=t==null?void 0:t.getBoundingClientRect();if(e===document.documentElement)return n.top-e.clientTop;const r=e==null?void 0:e.getBoundingClientRect();return n.top-r.top},IT=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,GT={noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean}},Wl="onSave",Fu="changeCatalogVisible",wg="changeFullscreen",vg="pageFullscreenChanged",Xg="fullscreenChanged",_g="previewChanged",Tg="htmlPreviewChanged",Rg="catalogVisibleChanged",qg="textareaFocus",Wg=(t,e)=>{const n=r=>{const i=t.parentElement||document.body,o=i.offsetWidth,a=i.offsetHeight,{clientWidth:O}=document.documentElement,{clientHeight:l}=document.documentElement,s=r.offsetX,c=r.offsetY,u=d=>{let p=d.x+document.body.scrollLeft-document.body.clientLeft-s,m=d.y+document.body.scrollTop-document.body.clientTop-c;p=p<1?1:p<O-o-1?p:O-o-1,m=m<1?1:m<l-a-1?m:l-a-1,e?e(p,m):(i.style.left=`${p}px`,i.style.top=`${m}px`)};document.addEventListener("mousemove",u);const f=()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f)};return t.addEventListener("mousedown",n),()=>{t.removeEventListener("mousedown",n)}},An=(t,e="")=>{const n=document.getElementById(t.id),r=t.onload;t.onload=null;const i=function(o){typeof r=="function"&&r.bind(this)(o),t.removeEventListener("load",i)};n?e!==""&&(n.addEventListener("load",i),Reflect.get(window,e)&&n.dispatchEvent(new Event("load"))):(t.addEventListener("load",i),document.head.appendChild(t))},DT=ql((t,e,n)=>{const r=document.getElementById(t);r&&r.setAttribute(e,n)},10),NT=t=>{var l,s,c,u;const e=g.inject("editorId");let n=(s=(l=Ve.editorExtensions)==null?void 0:l.screenfull)==null?void 0:s.instance;const r=(u=(c=Ve.editorExtensions)==null?void 0:c.screenfull)==null?void 0:u.js,i=g.ref(!1),o=f=>{if(!n){K.emit(e,"errorCatcher",{name:"fullscreen",message:"fullscreen is undefined"});return}n.isEnabled?(i.value=!0,(f===void 0?!n.isFullscreen:f)?n.request():n.exit()):console.error("browser does not support screenfull!")},a=()=>{n&&n.isEnabled&&n.on("change",()=>{(i.value||t.setting.fullscreen)&&(i.value=!1,t.updateSetting("fullscreen"))})},O=()=>{n=window.screenfull,a()};return g.onMounted(()=>{if(a(),!n){const f=document.createElement("script");f.src=r||qT,f.onload=O,f.id=`${W}-screenfull`,An(f,"screenfull")}}),g.onMounted(()=>{K.on(e,{name:wg,callback:o})}),{fullscreenHandler:o}},LT={tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}},MT=g.defineComponent({name:"TableShape",props:LT,setup(t){const e=g.reactive({x:-1,y:-1});return()=>g.createVNode("div",{class:`${W}-table-shape`,onMouseleave:()=>{e.x=-1,e.y=-1}},[new Array(t.tableShape[1]).fill("").map((n,r)=>g.createVNode("div",{class:`${W}-table-shape-row`,key:`table-shape-row-${r}`},[new Array(t.tableShape[0]).fill("").map((i,o)=>g.createVNode("div",{class:`${W}-table-shape-col`,key:`table-shape-col-${o}`,onMouseenter:()=>{e.x=r,e.y=o},onClick:()=>{t.onSelected(e)}},[g.createVNode("div",{class:[`${W}-table-shape-col-default`,r<=e.x&&o<=e.y&&`${W}-table-shape-col-include`]},null)]))]))])}}),BT={title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function,default:()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}},class:{type:String}},Hu=g.defineComponent({props:BT,setup(t,e){const n=g.ref(t.visible),r=g.ref([`${W}-modal`]),i=g.ref(),o=g.ref();let a=()=>{};const O=g.reactive({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),l=g.computed(()=>t.isFullscreen?{width:"100%",height:"100%"}:{width:t.width,height:t.height});return g.onMounted(()=>{a=Wg(o.value,(s,c)=>{O.initPos.left=s+"px",O.initPos.top=c+"px"})}),g.onBeforeUnmount(()=>{a()}),g.watch(()=>t.isFullscreen,s=>{s?a():a=Wg(o.value,(c,u)=>{O.initPos.left=c+"px",O.initPos.top=u+"px"})}),g.watch(()=>t.visible,s=>{s?(r.value.push("zoom-in"),n.value=s,g.nextTick(()=>{const c=i.value.offsetWidth/2,u=i.value.offsetHeight/2,f=document.documentElement.clientWidth/2,d=document.documentElement.clientHeight/2;O.initPos.left=f-c+"px",O.initPos.top=d-u+"px"}),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-in")},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(c=>c!=="zoom-out"),n.value=s},130))}),()=>{const s=Cn({ctx:e}),c=Cn({props:t,ctx:e},"title");return g.createVNode("div",{class:[t.class],style:{display:n.value?"block":"none"}},[g.createVNode("div",{class:`${W}-modal-mask`,onClick:t.onClose},null),g.createVNode("div",{class:r.value,style:{...O.initPos,...l.value},ref:i},[g.createVNode("div",{class:`${W}-modal-header`,ref:o},[c||""]),g.createVNode("div",{class:`${W}-modal-body`},[s]),g.createVNode("div",{class:`${W}-modal-func`},[t.showAdjust&&g.createVNode("div",{class:`${W}-modal-adjust`,onClick:u=>{u.stopPropagation(),t.isFullscreen?O.initPos=O.historyPos:(O.historyPos=O.initPos,O.initPos={left:"0",top:"0"}),t.onAdjust(!t.isFullscreen)}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":`#md-editor-icon-${t.isFullscreen?"suoxiao":"fangda"}`},null)])]),g.createVNode("div",{class:`${W}-modal-close`,onClick:u=>{u.stopPropagation(),t.onClose&&t.onClose()}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-close"},null)])])])])])}}}),FT={type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},HT=g.defineComponent({props:FT,setup(t){const e=g.inject("usedLanguageText"),n=g.inject("editorId"),r=g.computed(()=>{var o,a;switch(t.type){case"link":return(o=e.value.linkModalTips)==null?void 0:o.linkTitle;case"image":return(a=e.value.linkModalTips)==null?void 0:a.imageTitle;default:return""}}),i=g.reactive({desc:"",url:""});return g.watch(()=>t.visible,o=>{o||setTimeout(()=>{i.desc="",i.url=""},200)}),()=>g.createVNode(Hu,{title:r.value,visible:t.visible,onClose:t.onCancel},{default:()=>{var o,a,O,l,s;return[g.createVNode("div",{class:`${W}-form-item`},[g.createVNode("label",{class:`${W}-label`,for:`link-desc-${n}`},[(o=e.value.linkModalTips)==null?void 0:o.descLabel]),g.createVNode("input",{placeholder:(a=e.value.linkModalTips)==null?void 0:a.descLabelPlaceHolder,class:`${W}-input`,id:`link-desc-${n}`,type:"text",value:i.desc,onChange:c=>{i.desc=c.target.value},autocomplete:"off"},null)]),g.createVNode("div",{class:`${W}-form-item`},[g.createVNode("label",{class:`${W}-label`,for:`link-url-${n}`},[(O=e.value.linkModalTips)==null?void 0:O.urlLabel]),g.createVNode("input",{placeholder:(l=e.value.linkModalTips)==null?void 0:l.urlLabelPlaceHolder,class:`${W}-input`,id:`link-url-${n}`,type:"text",value:i.url,onChange:c=>{i.url=c.target.value},autocomplete:"off"},null)]),g.createVNode("div",{class:`${W}-form-item`},[g.createVNode("button",{class:[`${W}-btn`,`${W}-btn-row`],type:"button",onClick:()=>{t.onOk(i),i.desc="",i.url=""}},[(s=e.value.linkModalTips)==null?void 0:s.buttonOK])])]}})}}),KT={visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},JT=g.defineComponent({props:KT,setup(t){var c,u;const e=g.inject("usedLanguageText"),n=g.inject("editorId");let r=(u=(c=Ve==null?void 0:Ve.editorExtensions)==null?void 0:c.cropper)==null?void 0:u.instance;const i=g.ref(),o=g.ref(),a=g.ref(),O=g.reactive({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let l=null;g.watch(()=>t.visible,()=>{t.visible&&!O.cropperInited&&(r=r||window.Cropper,i.value.onchange=()=>{if(!r){K.emit(n,"errorCatcher",{name:"Cropper",message:"Cropper is undefined"});return}const f=i.value.files||[];if(O.imgSelected=!0,(f==null?void 0:f.length)>0){const d=new FileReader;d.onload=p=>{O.imgSrc=p.target.result,g.nextTick(()=>{l=new r(o.value,{viewMode:2,preview:`.${W}-clip-preview-target`})})},d.readAsDataURL(f[0])}})}),g.watch(()=>[O.imgSelected],()=>{a.value.style=""}),g.watch(()=>O.isFullscreen,()=>{g.nextTick(()=>{l==null||l.destroy(),a.value.style="",o.value&&(l=new r(o.value,{viewMode:2,preview:`.${W}-clip-preview-target`}))})});const s=()=>{l.clear(),l.destroy(),l=null,i.value.value="",O.imgSelected=!1};return()=>{var f;return g.createVNode(Hu,{class:`${W}-modal-clip`,title:(f=e.value.clipModalTips)==null?void 0:f.title,visible:t.visible,onClose:t.onCancel,showAdjust:!0,isFullscreen:O.isFullscreen,onAdjust:d=>{O.isFullscreen=d},width:"668px",height:"421px"},{default:()=>{var d,p;return[g.createVNode("div",{class:`${W}-form-item ${W}-clip`},[g.createVNode("div",{class:`${W}-clip-main`},[O.imgSelected?g.createVNode("div",{class:`${W}-clip-cropper`},[g.createVNode("img",{src:O.imgSrc,ref:o,style:{display:"none"},alt:""},null),g.createVNode("div",{class:`${W}-clip-delete`,onClick:s},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-delete"},null)])])]):g.createVNode("div",{class:`${W}-clip-upload`,onClick:()=>{i.value.click()}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-upload"},null)])])]),g.createVNode("div",{class:`${W}-clip-preview`},[g.createVNode("div",{class:`${W}-clip-preview-target`,ref:a},null)])]),g.createVNode("div",{class:`${W}-form-item`},[g.createVNode("button",{class:`${W}-btn`,type:"button",onClick:()=>{if(l){const m=l.getCroppedCanvas();K.emit(n,"uploadImage",[ET(m.toDataURL("image/png"))],t.onOk),s()}}},[((d=e.value.clipModalTips)==null?void 0:d.buttonUpload)||((p=e.value.linkModalTips)==null?void 0:p.buttonOK)])]),g.createVNode("input",{ref:i,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),e0={type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}},t0=g.defineComponent({props:e0,setup(t){return()=>g.createVNode(g.Fragment,null,[g.createVNode(HT,{type:t.type,visible:t.linkVisible,onOk:t.onOk,onCancel:t.onCancel},null),g.createVNode(JT,{visible:t.clipVisible,onOk:t.onOk,onCancel:t.onCancel},null)])}}),n0=g.defineComponent({name:"MDEditorToolbar",props:GT,setup(t){const e=g.inject("editorId"),n=g.inject("usedLanguageText"),{fullscreenHandler:r}=NT(t),i=`${e}-toolbar-wrapper`,o=g.reactive({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),a=(d,p)=>{K.emit(e,"replace",d,p)},O=g.reactive({type:"link",linkVisible:!1,clipVisible:!1}),l=g.ref();g.onMounted(()=>{K.on(e,{name:"openModals",callback(d){O.type=d,O.linkVisible=!0}})});const s=g.computed(()=>{const d=t.toolbars.filter(Q=>!t.toolbarsExclude.includes(Q)),p=d.indexOf("="),m=p===-1?d:d.slice(0,p+1),$=p===-1?[]:d.slice(p,Number.MAX_SAFE_INTEGER);return[m,$]}),c=g.ref(),u=()=>{K.emit(e,"uploadImage",Array.from(c.value.files||[])),c.value.value=""};g.onMounted(()=>{c.value.addEventListener("change",u)});const f=d=>{var p,m,$,Q,y,P,R,x,w,v,X,k,z,Y,C,V,S,U,q,Z,G,D,j,N,te,Qe,At,M,Oe,xe,Ue,st,Vn,yn,Or,za,Xo,ni,Ua,Za,_o,Eu,Cu;if(yg.includes(d))switch(d){case"-":return g.createVNode(UT,null,null);case"bold":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(p=n.value.toolbarTips)==null?void 0:p.bold,onClick:()=>{a("bold")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-bold"},null)])]);case"underline":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(m=n.value.toolbarTips)==null?void 0:m.underline,onClick:()=>{a("underline")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-underline"},null)])]);case"italic":return g.createVNode("div",{class:`${W}-toolbar-item`,title:($=n.value.toolbarTips)==null?void 0:$.italic,onClick:()=>{a("italic")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-italic"},null)])]);case"strikeThrough":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Q=n.value.toolbarTips)==null?void 0:Q.strikeThrough,onClick:()=>{a("strikeThrough")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-strike-through"},null)])]);case"title":return g.createVNode(Wo,{relative:`#${i}`,visible:o.title,onChange:ke=>{o.title=ke},overlay:g.createVNode("ul",{class:`${W}-menu`,onClick:()=>{o.title=!1}},[g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h1")}},[(y=n.value.titleItem)==null?void 0:y.h1]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h2")}},[(P=n.value.titleItem)==null?void 0:P.h2]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h3")}},[(R=n.value.titleItem)==null?void 0:R.h3]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h4")}},[(x=n.value.titleItem)==null?void 0:x.h4]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h5")}},[(w=n.value.titleItem)==null?void 0:w.h5]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("h6")}},[(v=n.value.titleItem)==null?void 0:v.h6])])},{default:()=>{var ke;return[g.createVNode("div",{class:`${W}-toolbar-item`,title:(ke=n.value.toolbarTips)==null?void 0:ke.title},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-title"},null)])])]}});case"sub":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(X=n.value.toolbarTips)==null?void 0:X.sub,onClick:()=>{a("sub")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-sub"},null)])]);case"sup":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(k=n.value.toolbarTips)==null?void 0:k.sup,onClick:()=>{a("sup")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-sup"},null)])]);case"quote":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(z=n.value.toolbarTips)==null?void 0:z.quote,onClick:()=>{a("quote")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-quote"},null)])]);case"unorderedList":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Y=n.value.toolbarTips)==null?void 0:Y.unorderedList,onClick:()=>{a("unorderedList")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-unordered-list"},null)])]);case"orderedList":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(C=n.value.toolbarTips)==null?void 0:C.orderedList,onClick:()=>{a("orderedList")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-ordered-list"},null)])]);case"task":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(V=n.value.toolbarTips)==null?void 0:V.task,onClick:()=>{a("task")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-task"},null)])]);case"codeRow":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(S=n.value.toolbarTips)==null?void 0:S.codeRow,onClick:()=>{a("codeRow")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-code-row"},null)])]);case"code":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(U=n.value.toolbarTips)==null?void 0:U.code,onClick:()=>{a("code")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-code"},null)])]);case"link":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(q=n.value.toolbarTips)==null?void 0:q.link,onClick:()=>{O.type="link",O.linkVisible=!0}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-link"},null)])]);case"image":return t.noUploadImg?g.createVNode("div",{class:`${W}-toolbar-item`,title:(Z=n.value.toolbarTips)==null?void 0:Z.image,onClick:()=>{O.type="image",O.linkVisible=!0}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-image"},null)])]):g.createVNode(Wo,{relative:`#${i}`,visible:o.image,onChange:ke=>{o.image=ke},overlay:g.createVNode("ul",{class:`${W}-menu`,onClick:()=>{o.title=!1}},[g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{O.type="image",O.linkVisible=!0}},[(G=n.value.imgTitleItem)==null?void 0:G.link]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{c.value.click()}},[(D=n.value.imgTitleItem)==null?void 0:D.upload]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{O.clipVisible=!0}},[(j=n.value.imgTitleItem)==null?void 0:j.clip2upload])])},{default:()=>{var ke;return[g.createVNode("div",{class:`${W}-toolbar-item`,title:(ke=n.value.toolbarTips)==null?void 0:ke.image},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-image"},null)])])]}});case"table":return g.createVNode(Wo,{relative:`#${i}`,visible:o.table,onChange:ke=>{o.table=ke},key:"bar-table",overlay:g.createVNode(MT,{tableShape:t.tableShape,onSelected:ke=>{a("table",{selectedShape:ke})}},null)},{default:()=>{var ke;return[g.createVNode("div",{class:`${W}-toolbar-item`,title:(ke=n.value.toolbarTips)==null?void 0:ke.table},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-table"},null)])])]}});case"revoke":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(N=n.value.toolbarTips)==null?void 0:N.revoke,onClick:()=>{K.emit(e,"ctrlZ")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-revoke"},null)])]);case"next":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(te=n.value.toolbarTips)==null?void 0:te.next,onClick:()=>{K.emit(e,"ctrlShiftZ")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-next"},null)])]);case"save":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Qe=n.value.toolbarTips)==null?void 0:Qe.save,onClick:()=>{K.emit(e,Wl)}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-baocun"},null)])]);case"prettier":return t.noPrettier?"":g.createVNode("div",{class:`${W}-toolbar-item`,title:(At=n.value.toolbarTips)==null?void 0:At.prettier,onClick:()=>{a("prettier")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-prettier"},null)])]);case"pageFullscreen":return!t.setting.fullscreen&&g.createVNode("div",{class:`${W}-toolbar-item`,title:(M=n.value.toolbarTips)==null?void 0:M.pageFullscreen,onClick:()=>{t.updateSetting("pageFullscreen")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":`#md-editor-icon-${t.setting.pageFullscreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Oe=n.value.toolbarTips)==null?void 0:Oe.fullscreen,onClick:()=>{r()}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":`#md-editor-icon-${t.setting.fullscreen?"fullscreen-exit":"fullscreen"}`},null)])]);case"preview":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(xe=n.value.toolbarTips)==null?void 0:xe.preview,onClick:()=>{t.updateSetting("preview")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-preview"},null)])]);case"htmlPreview":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Ue=n.value.toolbarTips)==null?void 0:Ue.htmlPreview,onClick:()=>{t.updateSetting("htmlPreview")}},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-coding"},null)])]);case"catalog":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(st=n.value.toolbarTips)==null?void 0:st.catalog,onClick:()=>{K.emit(e,Fu)},key:"bar-catalog"},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-catalog"},null)])]);case"github":return g.createVNode("div",{class:`${W}-toolbar-item`,title:(Vn=n.value.toolbarTips)==null?void 0:Vn.github,onClick:()=>VT("https://github.com/imzbf/md-editor-v3")},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-github"},null)])]);case"mermaid":return g.createVNode(Wo,{relative:`#${i}`,visible:o.mermaid,onChange:ke=>{o.mermaid=ke},overlay:g.createVNode("ul",{class:`${W}-menu`,onClick:()=>{o.mermaid=!1}},[g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("flow")}},[(yn=n.value.mermaid)==null?void 0:yn.flow]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("sequence")}},[(Or=n.value.mermaid)==null?void 0:Or.sequence]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("gantt")}},[(za=n.value.mermaid)==null?void 0:za.gantt]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("class")}},[(Xo=n.value.mermaid)==null?void 0:Xo.class]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("state")}},[(ni=n.value.mermaid)==null?void 0:ni.state]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("pie")}},[(Ua=n.value.mermaid)==null?void 0:Ua.pie]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("relationship")}},[(Za=n.value.mermaid)==null?void 0:Za.relationship]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("journey")}},[(_o=n.value.mermaid)==null?void 0:_o.journey])]),key:"bar-mermaid"},{default:()=>{var ke;return[g.createVNode("div",{class:`${W}-toolbar-item`,title:(ke=n.value.toolbarTips)==null?void 0:ke.mermaid},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-mermaid"},null)])])]}});case"katex":return g.createVNode(Wo,{relative:`#${i}`,visible:o.katex,onChange:ke=>{o.katex=ke},overlay:g.createVNode("ul",{class:`${W}-menu`,onClick:()=>{o.katex=!1}},[g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("katexInline")}},[(Eu=n.value.katex)==null?void 0:Eu.inline]),g.createVNode("li",{class:`${W}-menu-item`,onClick:()=>{a("katexBlock")}},[(Cu=n.value.katex)==null?void 0:Cu.block])]),key:"bar-katex"},{default:()=>{var ke;return[g.createVNode("div",{class:`${W}-toolbar-item`,title:(ke=n.value.toolbarTips)==null?void 0:ke.katex},[g.createVNode("svg",{class:`${W}-icon`,"aria-hidden":"true"},[g.createVNode("use",{"xlink:href":"#md-editor-icon-formula"},null)])])]}})}else return t.defToolbars instanceof Array?t.defToolbars[d]||"":t.defToolbars&&t.defToolbars.children instanceof Array&&t.defToolbars.children[d]||""};return()=>{const d=s.value[0].map(m=>f(m)),p=s.value[1].map(m=>f(m));return g.createVNode(g.Fragment,null,[t.toolbars.length>0&&g.createVNode("div",{class:`${W}-toolbar-wrapper`,id:i},[g.createVNode("div",{class:`${W}-toolbar`},[g.createVNode("div",{class:`${W}-toolbar-left`,ref:l},[d]),g.createVNode("div",{class:`${W}-toolbar-right`},[p])])]),g.createVNode("input",{ref:c,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),g.createVNode(t0,{linkVisible:O.linkVisible,clipVisible:O.clipVisible,type:O.type,onCancel:()=>{O.linkVisible=!1,O.clipVisible=!1},onOk:m=>{m&&a(O.type,{desc:m.desc,url:m.url}),O.linkVisible=!1,O.clipVisible=!1}},null)])}}}),zg=(t,e,n)=>{let r=t.scrollTop;const i=()=>{const o=e-r;r=r+o/5,Math.abs(o)<1?(t.scrollTo(0,e),n&&setTimeout(n,100)):(t.scrollTo(0,r),requestAnimationFrame(i))};i()},r0=(t,e)=>{const n=ql(()=>{t.removeEventListener("scroll",r),t.addEventListener("scroll",r),e.removeEventListener("scroll",r),e.addEventListener("scroll",r)},50),r=i=>{const o=t.clientHeight,a=e.clientHeight,O=t.scrollHeight,l=e.scrollHeight,s=(O-o)/(l-a);i.target===t?(e.removeEventListener("scroll",r),e.scrollTo({top:t.scrollTop/s}),n()):(t.removeEventListener("scroll",r),t.scrollTo({top:e.scrollTop*s}),n())};return[()=>{n().finally(()=>{t.dispatchEvent(new Event("scroll"))})},()=>{t.removeEventListener("scroll",r),e.removeEventListener("scroll",r)}]},i0=(t,e,n)=>{const{view:r}=n,i=u=>r.lineBlockAt(r.state.doc.line(u).from).top,o=u=>r.lineBlockAt(r.state.doc.line(u).from).height;let a=[];const O=()=>{a=[];const u=Array.from(e.querySelectorAll("[data-line]")).map(m=>Number(m.dataset.line)+1),{lines:f}=r.state.doc;let d=1,p=u.shift()??f;for(let m=1;m<=f;m++)m===p&&(d=m,p=u.shift()||f+1),a.push({start:d,end:p-1})};let l=0,s=0;const c=u=>{var p,m,$,Q,y,P,R;if(!((p=e.firstElementChild)!=null&&p.firstElementChild))return;const f=r.lineBlockAtHeight(r.scrollDOM.scrollTop),{number:d}=r.state.doc.lineAt(f.from);if(!(d>a.length)&&!(r.state.doc.lines<a[a.length-1].end))if(u.target===t){if(s!==0)return;l++;const x=a[d-1],w=i(x.end)+o(x.end);let v=0;const X=i(x.start),k=e.querySelector(`[data-line="${x.start-1}"]`)||((m=e.firstElementChild)==null?void 0:m.firstElementChild),z=e.querySelector(`[data-line="${x.end}"]`)||(($=e.lastElementChild)==null?void 0:$.lastElementChild);let Y=0,C=0;X===0?(v=(r.scrollDOM.scrollTop-X)/(w-X),Y=z.offsetTop):w>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(v=(r.scrollDOM.scrollTop-X)/(r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight-X),C=k.offsetTop,Y=e.scrollHeight-e.clientHeight-C+10):(v=(r.scrollDOM.scrollTop-X)/(w-X),C=k.offsetTop,Y=z.offsetTop-C);const V=C-10+Y*v;zg(e,V,()=>{l--})}else{if(l!==0)return;s++;const x=Array.from(e.querySelectorAll("[data-line]")),w=e.scrollTop,v=e.scrollHeight;let X=x.length===0?1:Math.ceil(Number(x[x.length-1].dataset.line)*(w/v)),k=(Q=e.firstElementChild)==null?void 0:Q.firstElementChild;for(let N=X;N>=0;N--){const te=e.querySelector(`[data-line="${N}"]`);if(te){k=te,X=N;break}}let z=(y=e.firstElementChild)==null?void 0:y.firstElementChild,Y=(P=e.firstElementChild)==null?void 0:P.lastElementChild;for(;x.length>0;){const N=x.indexOf(k);if(N+1>=x.length)break;const te=x[N+1],Qe=k.offsetTop;if(Qe>w){if(N===0){z=k,Y=te;break}k=x[N-1];continue}const At=te.offsetTop;if(Qe<=w&&At>w){z=k,Y=te;break}k=te}const C=z.offsetTop,V=Y.offsetTop;let S=0;const{start:U,end:q}=a[Number(z.dataset.line||0)],Z=i(U);let G=i(q);const D=o(q);let j=0;z===((R=e.firstElementChild)==null?void 0:R.firstElementChild)?(S=Math.max(w/V,0),j=G+D-Z):G>r.scrollDOM.scrollHeight-r.scrollDOM.clientHeight?(S=Math.max((w-C)/(e.scrollHeight-C-e.clientHeight),0),G=i(r.state.doc.lines)+o(r.state.doc.lines),j=8+G-Z-t.clientHeight):(S=Math.max((w-C)/(V-C),0),j=G+D-Z),zg(t,Z+j*S,()=>{s--})}};return[()=>{O(),t.addEventListener("scroll",c),e.addEventListener("scroll",c),t.dispatchEvent(new Event("scroll"))},()=>{a=[],t.removeEventListener("scroll",c),e.removeEventListener("scroll",c)}]},o0=(t,e,n)=>{const r=g.inject("editorId");let i=()=>{},o=()=>{};const a=()=>{i();const O=document.querySelector(".cm-scroller"),l=document.querySelector(`[id="${r}-preview-wrapper"][data-show="true"]`),s=document.querySelector(`[id="${r}-html-wrapper"][data-show="true"]`);(l||s)&&([o,i]=(l?i0:r0)(O,l||s,n.value)),t.scrollAuto&&o()};g.watch([e,g.toRef(t.setting,"preview"),g.toRef(t.setting,"htmlPreview"),g.toRef(t.setting,"fullscreen"),g.toRef(t.setting,"pageFullscreen")],()=>{g.nextTick(a)}),g.watch(()=>t.scrollAuto,O=>{O?o():i()}),g.onMounted(a)};let qe=class XT{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),sr.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){let r=[];return this.decompose(e,n,r,0),sr.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new Ca(this),o=new Ca(e);for(let a=n,O=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(O+=i.value.length,i.done||O>=r)return!0}}iter(e=1){return new Ca(this,e)}iterRange(e,n=this.length){return new Zg(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Yg(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?XT.empty:e.length<=32?new tt(e):sr.from(tt.split(e,[]))}};class tt extends qe{constructor(e,n=a0(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.text[o],O=i+a.length;if((n?r:O)>=e)return new O0(i,O,r,a);i=O+1,r++}}decompose(e,n,r,i){let o=e<=0&&n>=this.length?this:new tt(Ug(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let a=r.pop(),O=zl(o.text,a.text.slice(),0,o.length);if(O.length<=32)r.push(new tt(O,a.length+o.length));else{let l=O.length>>1;r.push(new tt(O.slice(0,l)),new tt(O.slice(l)))}}else r.push(o)}replace(e,n,r){if(!(r instanceof tt))return super.replace(e,n,r);let i=zl(this.text,zl(r.text,Ug(this.text,0,e)),n),o=this.length+r.length-(n-e);return i.length<=32?new tt(i,o):sr.from(tt.split(i,[]),o)}sliceString(e,n=this.length,r=`
3
3
  `){let i="";for(let o=0,a=0;o<=n&&a<this.text.length;a++){let O=this.text[a],l=o+O.length;o>e&&a&&(i+=r),e<l&&n>o&&(i+=O.slice(Math.max(0,e-o),n-o)),o=l+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let o of e)r.push(o),i+=o.length+1,r.length==32&&(n.push(new tt(r,i)),r=[],i=-1);return i>-1&&n.push(new tt(r,i)),n}}class sr extends qe{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.children[o],O=i+a.length,l=r+a.lines-1;if((n?l:O)>=e)return a.lineInner(e,n,r,i);i=O+1,r=l+1}}decompose(e,n,r,i){for(let o=0,a=0;a<=n&&o<this.children.length;o++){let O=this.children[o],l=a+O.length;if(e<=l&&n>=a){let s=i&((a<=e?1:0)|(l>=n?2:0));a>=e&&l<=n&&!s?r.push(O):O.decompose(e-a,n-a,r,s)}a=l+1}}replace(e,n,r){if(r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],O=o+a.length;if(e>=o&&n<=O){let l=a.replace(e-o,n-o,r),s=this.lines-a.lines+l.lines;if(l.lines<s>>5-1&&l.lines>s>>5+1){let c=this.children.slice();return c[i]=l,new sr(c,this.length-(n-e)+r.length)}return super.replace(o,O,l)}o=O+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
4
4
  `){let i="";for(let o=0,a=0;o<this.children.length&&a<=n;o++){let O=this.children[o],l=a+O.length;a>e&&o&&(i+=r),e<l&&n>a&&(i+=O.sliceString(e-a,n-a,r)),a=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof sr))return 0;let r=0,[i,o,a,O]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==O)return r;let l=this.children[i],s=e.children[o];if(l!=s)return r+l.scanIdentical(s,n);r+=l.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let d of e)r+=d.lines;if(r<32){let d=[];for(let p of e)p.flatten(d);return new tt(d,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,O=[],l=0,s=-1,c=[];function u(d){let p;if(d.lines>o&&d instanceof sr)for(let m of d.children)u(m);else d.lines>a&&(l>a||!l)?(f(),O.push(d)):d instanceof tt&&l&&(p=c[c.length-1])instanceof tt&&d.lines+p.lines<=32?(l+=d.lines,s+=d.length+1,c[c.length-1]=new tt(p.text.concat(d.text),p.length+1+d.length)):(l+d.lines>i&&f(),l+=d.lines,s+=d.length+1,c.push(d))}function f(){l!=0&&(O.push(c.length==1?c[0]:sr.from(c,s)),s=-1,l=c.length=0)}for(let d of e)u(d);return f(),O.length==1?O[0]:new sr(O,n)}}qe.empty=new tt([""],0);function a0(t){let e=-1;for(let n of t)e+=n.length+1;return e}function zl(t,e,n=0,r=1e9){for(let i=0,o=0,a=!0;o<t.length&&i<=r;o++){let O=t[o],l=i+O.length;l>=n&&(l>r&&(O=O.slice(0,r-i)),i<n&&(O=O.slice(n-i)),a?(e[e.length-1]+=O,a=!1):e.push(O)),i=l+1}return e}function Ug(t,e,n){return zl(t,[""],e,n)}class Ca{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof tt?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,O=i instanceof tt?i.text.length:i.children.length;if(a==(n>0?O:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
@@ -104,7 +104,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},XY=function(e){var n=d
104
104
  `:">",o)},ia.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,O=t.length;a<O;a++)r=t[a].type,typeof o[r]<"u"?i+=o[r](t,a,e,n,this):i+=this.renderToken(t,a,e);return i},ia.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)t[i].type==="text"?r+=t[i].content:t[i].type==="image"?r+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(r+=`
105
105
  `);return r},ia.prototype.render=function(t,e,n){var r,i,o,a="",O=this.rules;for(r=0,i=t.length;r<i;r++)o=t[r].type,o==="inline"?a+=this.renderInline(t[r].children,e,n):typeof O[o]<"u"?a+=O[t[r].type](t,r,e,n,this):a+=this.renderToken(t,r,e,n);return a};var dV=ia;function Nn(){this.__rules__=[],this.__cache__=null}Nn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Nn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},Nn.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Nn.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Nn.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Nn.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},Nn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n},Nn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Nn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n},Nn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Qh=Nn,hV=/\r\n?|\n/g,pV=/\0/g,mV=function(e){var n;n=e.src.replace(hV,`
106
106
  `),n=n.replace(pV,"�"),e.src=n},gV=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},$V=function(e){var n=e.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},QV=_e.arrayReplaceAt;function bV(t){return/^<a[>\s]/i.test(t)}function yV(t){return/^<\/a\s*>/i.test(t)}var SV=function(e){var n,r,i,o,a,O,l,s,c,u,f,d,p,m,$,Q,y=e.tokens,P;if(e.md.options.linkify){for(r=0,i=y.length;r<i;r++)if(!(y[r].type!=="inline"||!e.md.linkify.pretest(y[r].content)))for(o=y[r].children,p=0,n=o.length-1;n>=0;n--){if(O=o[n],O.type==="link_close"){for(n--;o[n].level!==O.level&&o[n].type!=="link_open";)n--;continue}if(O.type==="html_inline"&&(bV(O.content)&&p>0&&p--,yV(O.content)&&p++),!(p>0)&&O.type==="text"&&e.md.linkify.test(O.content)){for(c=O.content,P=e.md.linkify.match(c),l=[],d=O.level,f=0,P.length>0&&P[0].index===0&&n>0&&o[n-1].type==="text_special"&&(P=P.slice(1)),s=0;s<P.length;s++)m=P[s].url,$=e.md.normalizeLink(m),e.md.validateLink($)&&(Q=P[s].text,P[s].schema?P[s].schema==="mailto:"&&!/^mailto:/i.test(Q)?Q=e.md.normalizeLinkText("mailto:"+Q).replace(/^mailto:/,""):Q=e.md.normalizeLinkText(Q):Q=e.md.normalizeLinkText("http://"+Q).replace(/^http:\/\//,""),u=P[s].index,u>f&&(a=new e.Token("text","",0),a.content=c.slice(f,u),a.level=d,l.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",$]],a.level=d++,a.markup="linkify",a.info="auto",l.push(a),a=new e.Token("text","",0),a.content=Q,a.level=d,l.push(a),a=new e.Token("link_close","a",-1),a.level=--d,a.markup="linkify",a.info="auto",l.push(a),f=P[s].lastIndex);f<c.length&&(a=new e.Token("text","",0),a.content=c.slice(f),a.level=d,l.push(a)),y[r].children=o=QV(o,n,l)}}}},GP=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,PV=/\((c|tm|r)\)/i,xV=/\((c|tm|r)\)/ig,kV={c:"©",r:"®",tm:"™"};function wV(t,e){return kV[e.toLowerCase()]}function vV(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(xV,wV)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function XV(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&GP.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var _V=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(PV.test(e.tokens[n].content)&&vV(e.tokens[n].children),GP.test(e.tokens[n].content)&&XV(e.tokens[n].children))},DP=_e.isWhiteSpace,NP=_e.isPunctChar,LP=_e.isMdAsciiPunct,TV=/['"]/,MP=/['"]/g,BP="’";function Bs(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function RV(t,e){var n,r,i,o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w;for(R=[],n=0;n<t.length;n++){for(r=t[n],l=t[n].level,y=R.length-1;y>=0&&!(R[y].level<=l);y--);if(R.length=y+1,r.type==="text"){i=r.content,a=0,O=i.length;e:for(;a<O&&(MP.lastIndex=a,o=MP.exec(i),!!o);){if($=Q=!0,a=o.index+1,P=o[0]==="'",c=32,o.index-1>=0)c=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(t[y].content){c=t[y].content.charCodeAt(t[y].content.length-1);break}if(u=32,a<O)u=i.charCodeAt(a);else for(y=n+1;y<t.length&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y++)if(t[y].content){u=t[y].content.charCodeAt(0);break}if(f=LP(c)||NP(String.fromCharCode(c)),d=LP(u)||NP(String.fromCharCode(u)),p=DP(c),m=DP(u),m?$=!1:d&&(p||f||($=!1)),p?Q=!1:f&&(m||d||(Q=!1)),u===34&&o[0]==='"'&&c>=48&&c<=57&&(Q=$=!1),$&&Q&&($=f,Q=d),!$&&!Q){P&&(r.content=Bs(r.content,o.index,BP));continue}if(Q){for(y=R.length-1;y>=0&&(s=R[y],!(R[y].level<l));y--)if(s.single===P&&R[y].level===l){s=R[y],P?(x=e.md.options.quotes[2],w=e.md.options.quotes[3]):(x=e.md.options.quotes[0],w=e.md.options.quotes[1]),r.content=Bs(r.content,o.index,w),t[s.token].content=Bs(t[s.token].content,s.pos,x),a+=w.length-1,s.token===n&&(a+=x.length-1),i=r.content,O=i.length,R.length=y;continue e}}$?R.push({token:n,pos:o.index,single:P,level:l}):Q&&P&&(r.content=Bs(r.content,o.index,BP))}}}}var qV=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!TV.test(e.tokens[n].content)||RV(e.tokens[n].children,e)},WV=function(e){var n,r,i,o,a,O,l=e.tokens;for(n=0,r=l.length;n<r;n++)if(l[n].type==="inline"){for(i=l[n].children,a=i.length,o=0;o<a;o++)i[o].type==="text_special"&&(i[o].type="text");for(o=O=0;o<a;o++)i[o].type==="text"&&o+1<a&&i[o+1].type==="text"?i[o+1].content=i[o].content+i[o+1].content:(o!==O&&(i[O]=i[o]),O++);o!==O&&(i.length=O)}};function oa(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}oa.prototype.attrIndex=function(e){var n,r,i;if(!this.attrs)return-1;for(n=this.attrs,r=0,i=n.length;r<i;r++)if(n[r][0]===e)return r;return-1},oa.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},oa.prototype.attrSet=function(e,n){var r=this.attrIndex(e),i=[e,n];r<0?this.attrPush(i):this.attrs[r]=i},oa.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},oa.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var bh=oa,zV=bh;function FP(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}FP.prototype.Token=zV;var UV=FP,ZV=Qh,yh=[["normalize",mV],["block",gV],["inline",$V],["linkify",SV],["replacements",_V],["smartquotes",qV],["text_join",WV]];function Sh(){this.ruler=new ZV;for(var t=0;t<yh.length;t++)this.ruler.push(yh[t][0],yh[t][1])}Sh.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},Sh.prototype.State=UV;var YV=Sh,Ph=_e.isSpace;function xh(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function HP(t){var e=[],n=0,r=t.length,i,o=!1,a=0,O="";for(i=t.charCodeAt(n);n<r;)i===124&&(o?(O+=t.substring(a,n-1),a=n):(e.push(O+t.substring(a,n)),O="",a=n+1)),o=i===92,n++,i=t.charCodeAt(n);return e.push(O+t.substring(a)),e}var VV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w;if(n+2>r||(c=n+1,e.sCount[c]<e.blkIndent)||e.sCount[c]-e.blkIndent>=4||(O=e.bMarks[c]+e.tShift[c],O>=e.eMarks[c])||(x=e.src.charCodeAt(O++),x!==124&&x!==45&&x!==58)||O>=e.eMarks[c]||(w=e.src.charCodeAt(O++),w!==124&&w!==45&&w!==58&&!Ph(w))||x===45&&Ph(w))return!1;for(;O<e.eMarks[c];){if(o=e.src.charCodeAt(O),o!==124&&o!==45&&o!==58&&!Ph(o))return!1;O++}for(a=xh(e,n+1),u=a.split("|"),p=[],l=0;l<u.length;l++){if(m=u[l].trim(),!m){if(l===0||l===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(a=xh(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(u=HP(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),f=u.length,f===0||f!==p.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",R=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=$=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],l=0;l<u.length;l++)d=e.push("th_open","th",1),p[l]&&(d.attrs=[["style","text-align:"+p[l]]]),d=e.push("inline","",0),d.content=u[l].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),c=n+2;c<r&&!(e.sCount[c]<e.blkIndent);c++){for(P=!1,l=0,s=R.length;l<s;l++)if(R[l](e,c,r,!0)){P=!0;break}if(P||(a=xh(e,c).trim(),!a)||e.sCount[c]-e.blkIndent>=4)break;for(u=HP(a),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),c===n+2&&(d=e.push("tbody_open","tbody",1),d.map=Q=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[c,c+1],l=0;l<f;l++)d=e.push("td_open","td",1),p[l]&&(d.attrs=[["style","text-align:"+p[l]]]),d=e.push("inline","",0),d.content=u[l]?u[l].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return Q&&(d=e.push("tbody_close","tbody",-1),Q[1]=c),d=e.push("table_close","table",-1),$[1]=c,e.parentType=y,e.line=c,!0},EV=function(e,n,r){var i,o,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}return e.line=o,a=e.push("code_block","code",0),a.content=e.getLines(n,o,4+e.blkIndent,!1)+`
107
- `,a.map=[n,e.line],!0},CV=function(e,n,r,i){var o,a,O,l,s,c,u,f=!1,d=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>p||(o=e.src.charCodeAt(d),o!==126&&o!==96)||(s=d,d=e.skipChars(d,o),a=d-s,a<3)||(u=e.src.slice(s,d),O=e.src.slice(d,p),o===96&&O.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=n;l++,!(l>=r||(d=s=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],d<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(d)===o&&!(e.sCount[l]-e.blkIndent>=4)&&(d=e.skipChars(d,o),!(d-s<a)&&(d=e.skipSpaces(d),!(d<p)))){f=!0;break}return a=e.sCount[n],e.line=l+(f?1:0),c=e.push("fence","code",0),c.info=O,c.content=e.getLines(n+1,l,a,!0),c.markup=u,c.map=[n,e.line],!0},KP=_e.isSpace,AV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w,v,X,k=e.lineMax,z=e.bMarks[n]+e.tShift[n],Y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(z++)!==62)return!1;if(i)return!0;for(l=d=e.sCount[n]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,o=!1,R=!0):e.src.charCodeAt(z)===9?(R=!0,(e.bsCount[n]+d)%4===3?(z++,l++,d++,o=!1):o=!0):R=!1,p=[e.bMarks[n]],e.bMarks[n]=z;z<Y&&(a=e.src.charCodeAt(z),KP(a));){a===9?d+=4-(d+e.bsCount[n]+(o?1:0))%4:d++;z++}for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(R?1:0),c=z>=Y,y=[e.sCount[n]],e.sCount[n]=d-l,P=[e.tShift[n]],e.tShift[n]=z-e.bMarks[n],w=e.md.block.ruler.getRules("blockquote"),Q=e.parentType,e.parentType="blockquote",f=n+1;f<r&&(X=e.sCount[f]<e.blkIndent,z=e.bMarks[f]+e.tShift[f],Y=e.eMarks[f],!(z>=Y));f++){if(e.src.charCodeAt(z++)===62&&!X){for(l=d=e.sCount[f]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,o=!1,R=!0):e.src.charCodeAt(z)===9?(R=!0,(e.bsCount[f]+d)%4===3?(z++,l++,d++,o=!1):o=!0):R=!1,p.push(e.bMarks[f]),e.bMarks[f]=z;z<Y&&(a=e.src.charCodeAt(z),KP(a));){a===9?d+=4-(d+e.bsCount[f]+(o?1:0))%4:d++;z++}c=z>=Y,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(R?1:0),y.push(e.sCount[f]),e.sCount[f]=d-l,P.push(e.tShift[f]),e.tShift[f]=z-e.bMarks[f];continue}if(c)break;for(x=!1,O=0,s=w.length;O<s;O++)if(w[O](e,f,r,!0)){x=!0;break}if(x){e.lineMax=f,e.blkIndent!==0&&(p.push(e.bMarks[f]),m.push(e.bsCount[f]),P.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}p.push(e.bMarks[f]),m.push(e.bsCount[f]),P.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for($=e.blkIndent,e.blkIndent=0,v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=u=[n,0],e.md.block.tokenize(e,n,f),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.lineMax=k,e.parentType=Q,u[1]=e.line,O=0;O<P.length;O++)e.bMarks[O+n]=p[O],e.tShift[O+n]=P[O],e.sCount[O+n]=y[O],e.bsCount[O+n]=m[O];return e.blkIndent=$,!0},jV=_e.isSpace,IV=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(s++),o!==42&&o!==45&&o!==95))return!1;for(a=1;s<c;){if(O=e.src.charCodeAt(s++),O!==o&&!jV(O))return!1;O===o&&a++}return a<3?!1:(i||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),!0)},JP=_e.isSpace;function ex(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=t.src.charCodeAt(r),!JP(o))?-1:r}function tx(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=t.src.charCodeAt(i),!JP(n))?-1:i}function GV(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var DV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w,v,X,k,z,Y,C,V,S,U,q,Z=!1,G=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(Z=!0),(Y=tx(e,n))>=0){if(u=!0,V=e.bMarks[n]+e.tShift[n],Q=Number(e.src.slice(V,Y-1)),Z&&Q!==1)return!1}else if((Y=ex(e,n))>=0)u=!1;else return!1;if(Z&&e.skipSpaces(Y)>=e.eMarks[n])return!1;if($=e.src.charCodeAt(Y-1),i)return!0;for(m=e.tokens.length,u?(q=e.push("ordered_list_open","ol",1),Q!==1&&(q.attrs=[["start",Q]])):q=e.push("bullet_list_open","ul",1),q.map=p=[n,0],q.markup=String.fromCharCode($),P=n,C=!1,U=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<r;){for(z=Y,y=e.eMarks[P],c=R=e.sCount[P]+Y-(e.bMarks[n]+e.tShift[n]);z<y;){if(o=e.src.charCodeAt(z),o===9)R+=4-(R+e.bsCount[P])%4;else if(o===32)R++;else break;z++}if(a=z,a>=y?s=1:s=R-c,s>4&&(s=1),l=c+s,q=e.push("list_item_open","li",1),q.markup=String.fromCharCode($),q.map=f=[n,0],u&&(q.info=e.src.slice(V,Y-1)),k=e.tight,X=e.tShift[n],v=e.sCount[n],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=a-e.bMarks[n],e.sCount[n]=R,a>=y&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||C)&&(G=!1),C=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[n]=X,e.sCount[n]=v,e.tight=k,q=e.push("list_item_close","li",-1),q.markup=String.fromCharCode($),P=n=e.line,f[1]=P,a=e.bMarks[n],P>=r||e.sCount[P]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(S=!1,O=0,d=U.length;O<d;O++)if(U[O](e,P,r,!0)){S=!0;break}if(S)break;if(u){if(Y=tx(e,P),Y<0)break;V=e.bMarks[P]+e.tShift[P]}else if(Y=ex(e,P),Y<0)break;if($!==e.src.charCodeAt(Y-1))break}return u?q=e.push("ordered_list_close","ol",-1):q=e.push("bullet_list_close","ul",-1),q.markup=String.fromCharCode($),p[1]=P,e.line=P,e.parentType=w,G&&GV(e,m),!0},NV=_e.normalizeReference,Fs=_e.isSpace,LV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x=0,w=e.bMarks[n]+e.tShift[n],v=e.eMarks[n],X=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(w)!==91)return!1;for(;++w<v;)if(e.src.charCodeAt(w)===93&&e.src.charCodeAt(w-1)!==92){if(w+1===v||e.src.charCodeAt(w+1)!==58)return!1;break}for(l=e.lineMax,P=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";X<l&&!e.isEmpty(X);X++)if(!(e.sCount[X]-e.blkIndent>3)&&!(e.sCount[X]<0)){for(y=!1,c=0,u=P.length;c<u;c++)if(P[c](e,X,l,!0)){y=!0;break}if(y)break}for(Q=e.getLines(n,X,e.blkIndent,!1).trim(),v=Q.length,w=1;w<v;w++){if(o=Q.charCodeAt(w),o===91)return!1;if(o===93){d=w;break}else o===10?x++:o===92&&(w++,w<v&&Q.charCodeAt(w)===10&&x++)}if(d<0||Q.charCodeAt(d+1)!==58)return!1;for(w=d+2;w<v;w++)if(o=Q.charCodeAt(w),o===10)x++;else if(!Fs(o))break;if(m=e.md.helpers.parseLinkDestination(Q,w,v),!m.ok||(s=e.md.normalizeLink(m.str),!e.md.validateLink(s)))return!1;for(w=m.pos,x+=m.lines,a=w,O=x,$=w;w<v;w++)if(o=Q.charCodeAt(w),o===10)x++;else if(!Fs(o))break;for(m=e.md.helpers.parseLinkTitle(Q,w,v),w<v&&$!==w&&m.ok?(R=m.str,w=m.pos,x+=m.lines):(R="",w=a,x=O);w<v&&(o=Q.charCodeAt(w),!!Fs(o));)w++;if(w<v&&Q.charCodeAt(w)!==10&&R)for(R="",w=a,x=O;w<v&&(o=Q.charCodeAt(w),!!Fs(o));)w++;return w<v&&Q.charCodeAt(w)!==10||(f=NV(Q.slice(1,d)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:R,href:s}),e.parentType=p,e.line=n+x+1),!0)},MV=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hs={},BV="[a-zA-Z_:][a-zA-Z0-9:._-]*",FV="[^\"'=<>`\\x00-\\x20]+",HV="'[^']*'",KV='"[^"]*"',JV="(?:"+FV+"|"+HV+"|"+KV+")",eE="(?:\\s+"+BV+"(?:\\s*=\\s*"+JV+")?)",nx="<[A-Za-z][A-Za-z0-9\\-]*"+eE+"*\\s*\\/?>",rx="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",tE="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",nE="<[?][\\s\\S]*?[?]>",rE="<![A-Z]+\\s+[^>]*>",iE="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oE=new RegExp("^(?:"+nx+"|"+rx+"|"+tE+"|"+nE+"|"+rE+"|"+iE+")"),aE=new RegExp("^(?:"+nx+"|"+rx+")");Hs.HTML_TAG_RE=oE,Hs.HTML_OPEN_CLOSE_TAG_RE=aE;var OE=MV,lE=Hs.HTML_OPEN_CLOSE_TAG_RE,aa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+OE.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(lE.source+"\\s*$"),/^$/,!1]],sE=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(s)!==60)return!1;for(l=e.src.slice(s,c),o=0;o<aa.length&&!aa[o][0].test(l);o++);if(o===aa.length)return!1;if(i)return aa[o][2];if(a=n+1,!aa[o][1].test(l)){for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],l=e.src.slice(s,c),aa[o][1].test(l)){l.length!==0&&a++;break}}return e.line=a,O=e.push("html_block","",0),O.map=[n,a],O.content=e.getLines(n,a,e.blkIndent,!0),!0},ix=_e.isSpace,cE=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(s),o!==35||s>=c))return!1;for(a=1,o=e.src.charCodeAt(++s);o===35&&s<c&&a<=6;)a++,o=e.src.charCodeAt(++s);return a>6||s<c&&!ix(o)?!1:(i||(c=e.skipSpacesBack(c,s),O=e.skipCharsBack(c,35,s),O>s&&ix(e.src.charCodeAt(O-1))&&(c=O),e.line=n+1,l=e.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(s,c).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)},uE=function(e,n,r){var i,o,a,O,l,s,c,u,f,d=n+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],s<c&&(f=e.src.charCodeAt(s),(f===45||f===61)&&(s=e.skipChars(s,f),s=e.skipSpaces(s),s>=c)))){u=f===61?1:2;break}if(!(e.sCount[d]<0)){for(o=!1,a=0,O=m.length;a<O;a++)if(m[a](e,d,r,!0)){o=!0;break}if(o)break}}return u?(i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,l=e.push("heading_open","h"+String(u),1),l.markup=String.fromCharCode(f),l.map=[n,e.line],l=e.push("inline","",0),l.content=i,l.map=[n,e.line-1],l.children=[],l=e.push("heading_close","h"+String(u),-1),l.markup=String.fromCharCode(f),e.parentType=p,!0):!1},fE=function(e,n){var r,i,o,a,O,l,s=n+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(l=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3)&&!(e.sCount[s]<0)){for(i=!1,o=0,a=c.length;o<a;o++)if(c[o](e,s,u,!0)){i=!0;break}if(i)break}return r=e.getLines(n,s,e.blkIndent,!1).trim(),e.line=s,O=e.push("paragraph_open","p",1),O.map=[n,e.line],O=e.push("inline","",0),O.content=r,O.map=[n,e.line],O.children=[],O=e.push("paragraph_close","p",-1),e.parentType=l,!0},ox=bh,Ks=_e.isSpace;function Sr(t,e,n,r){var i,o,a,O,l,s,c,u;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,u=!1,a=O=s=c=0,l=o.length;O<l;O++){if(i=o.charCodeAt(O),!u)if(Ks(i)){s++,i===9?c+=4-c%4:c++;continue}else u=!0;(i===10||O===l-1)&&(i!==10&&O++,this.bMarks.push(a),this.eMarks.push(O),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),u=!1,s=0,c=0,a=O+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Sr.prototype.push=function(t,e,n){var r=new ox(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Sr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Sr.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Sr.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!Ks(n));e++);return e},Sr.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ks(this.src.charCodeAt(--e)))return e+1;return e},Sr.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},Sr.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},Sr.prototype.getLines=function(e,n,r,i){var o,a,O,l,s,c,u,f=e;if(e>=n)return"";for(c=new Array(n-e),o=0;f<n;f++,o++){for(a=0,u=l=this.bMarks[f],f+1<n||i?s=this.eMarks[f]+1:s=this.eMarks[f];l<s&&a<r;){if(O=this.src.charCodeAt(l),Ks(O))O===9?a+=4-(a+this.bsCount[f])%4:a++;else if(l-u<this.tShift[f])a++;else break;l++}a>r?c[o]=new Array(a-r+1).join(" ")+this.src.slice(l,s):c[o]=this.src.slice(l,s)}return c.join("")},Sr.prototype.Token=ox;var dE=Sr,hE=Qh,Js=[["table",VV,["paragraph","reference"]],["code",EV],["fence",CV,["paragraph","reference","blockquote","list"]],["blockquote",AV,["paragraph","reference","blockquote","list"]],["hr",IV,["paragraph","reference","blockquote","list"]],["list",DV,["paragraph","reference","blockquote"]],["reference",LV],["html_block",sE,["paragraph","reference","blockquote"]],["heading",cE,["paragraph","reference","blockquote"]],["lheading",uE],["paragraph",fE]];function ec(){this.ruler=new hE;for(var t=0;t<Js.length;t++)this.ruler.push(Js[t][0],Js[t][1],{alt:(Js[t][2]||[]).slice()})}ec.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,O=e,l=!1,s=t.md.options.maxNesting;O<n&&(t.line=O=t.skipEmptyLines(O),!(O>=n||t.sCount[O]<t.blkIndent));){if(t.level>=s){t.line=n;break}for(i=0;i<a&&(r=o[i](t,O,n,!1),!r);i++);t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),O=t.line,O<n&&t.isEmpty(O)&&(l=!0,O++,t.line=O)}},ec.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},ec.prototype.State=dE;var pE=ec;function mE(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var gE=function(e,n){for(var r=e.pos;r<e.posMax&&!mE(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},$E=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,QE=function(e,n){var r,i,o,a,O,l,s,c;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(o=e.pending.match($E),!o)||(a=o[1],O=e.md.linkify.matchAtStart(e.src.slice(r-a.length)),!O)||(l=O.url,l=l.replace(/\*+$/,""),s=e.md.normalizeLink(l),!e.md.validateLink(s))?!1:(n||(e.pending=e.pending.slice(0,-a.length),c=e.push("link_open","a",1),c.attrs=[["href",s]],c.markup="linkify",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(l),c=e.push("link_close","a",-1),c.markup="linkify",c.info="auto"),e.pos+=l.length-a.length,!0)},bE=_e.isSpace,yE=function(e,n){var r,i,o,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(o=r-1;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&bE(e.src.charCodeAt(a));)a++;return e.pos=a,!0},SE=_e.isSpace,kh=[],ax=0;ax<256;ax++)kh.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){kh[t.charCodeAt(0)]=1});var PE=function(e,n){var r,i,o,a,O,l=e.pos,s=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=s))return!1;if(r=e.src.charCodeAt(l),r===10){for(n||e.push("hardbreak","br",0),l++;l<s&&(r=e.src.charCodeAt(l),!!SE(r));)l++;return e.pos=l,!0}return a=e.src[l],r>=55296&&r<=56319&&l+1<s&&(i=e.src.charCodeAt(l+1),i>=56320&&i<=57343&&(a+=e.src[l+1],l++)),o="\\"+a,n||(O=e.push("text_special","",0),r<256&&kh[r]!==0?O.content=a:O.content=o,O.markup=o,O.info="escape"),e.pos=l+1,!0},xE=function(e,n){var r,i,o,a,O,l,s,c,u=e.pos,f=e.src.charCodeAt(u);if(f!==96)return!1;for(r=u,u++,i=e.posMax;u<i&&e.src.charCodeAt(u)===96;)u++;if(o=e.src.slice(r,u),s=o.length,e.backticksScanned&&(e.backticks[s]||0)<=r)return n||(e.pending+=o),e.pos+=s,!0;for(O=l=u;(O=e.src.indexOf("`",l))!==-1;){for(l=O+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(c=l-O,c===s)return n||(a=e.push("code_inline","code",0),a.markup=o,a.content=e.src.slice(u,O).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[c]=O}return e.backticksScanned=!0,n||(e.pending+=o),e.pos+=s,!0},tc={};tc.tokenize=function(e,n){var r,i,o,a,O,l=e.pos,s=e.src.charCodeAt(l);if(n||s!==126||(i=e.scanDelims(e.pos,!0),a=i.length,O=String.fromCharCode(s),a<2))return!1;for(a%2&&(o=e.push("text","",0),o.content=O,a--),r=0;r<a;r+=2)o=e.push("text","",0),o.content=O+O,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Ox(t,e){var n,r,i,o,a,O=[],l=e.length;for(n=0;n<l;n++)i=e[n],i.marker===126&&i.end!==-1&&(o=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[o.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&O.push(o.token-1));for(;O.length;){for(n=O.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}tc.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Ox(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Ox(e,r[n].delimiters)};var nc={};nc.tokenize=function(e,n){var r,i,o,a=e.pos,O=e.src.charCodeAt(a);if(n||O!==95&&O!==42)return!1;for(i=e.scanDelims(e.pos,O===42),r=0;r<i.length;r++)o=e.push("text","",0),o.content=String.fromCharCode(O),e.delimiters.push({marker:O,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function lx(t,e){var n,r,i,o,a,O,l=e.length;for(n=l-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],O=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=t.tokens[r.token],o.type=O?"strong_open":"em_open",o.tag=O?"strong":"em",o.nesting=1,o.markup=O?a+a:a,o.content="",o=t.tokens[i.token],o.type=O?"strong_close":"em_close",o.tag=O?"strong":"em",o.nesting=-1,o.markup=O?a+a:a,o.content="",O&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}nc.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(lx(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&lx(e,r[n].delimiters)};var kE=_e.normalizeReference,wh=_e.isSpace,wE=function(e,n){var r,i,o,a,O,l,s,c,u,f="",d="",p=e.pos,m=e.posMax,$=e.pos,Q=!0;if(e.src.charCodeAt(e.pos)!==91||(O=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(l=a+1,l<m&&e.src.charCodeAt(l)===40){for(Q=!1,l++;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);if(l>=m)return!1;if($=l,s=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),s.ok){for(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?l=s.pos:f="",$=l;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);if(s=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&$!==l&&s.ok)for(d=s.str,l=s.pos;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);}(l>=m||e.src.charCodeAt(l)!==41)&&(Q=!0),l++}if(Q){if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?($=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?o=e.src.slice($,l++):l=a+1):l=a+1,o||(o=e.src.slice(O,a)),c=e.env.references[kE(o)],!c)return e.pos=p,!1;f=c.href,d=c.title}return n||(e.pos=O,e.posMax=a,u=e.push("link_open","a",1),u.attrs=r=[["href",f]],d&&r.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,u=e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0},vE=_e.normalizeReference,vh=_e.isSpace,XE=function(e,n){var r,i,o,a,O,l,s,c,u,f,d,p,m,$="",Q=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,O=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),O<0))return!1;if(s=O+1,s<y&&e.src.charCodeAt(s)===40){for(s++;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);if(s>=y)return!1;for(m=s,u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),u.ok&&($=e.md.normalizeLink(u.str),e.md.validateLink($)?s=u.pos:$=""),m=s;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&m!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);else f="";if(s>=y||e.src.charCodeAt(s)!==41)return e.pos=Q,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<y&&e.src.charCodeAt(s)===91?(m=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?a=e.src.slice(m,s++):s=O+1):s=O+1,a||(a=e.src.slice(l,O)),c=e.env.references[vE(a)],!c)return e.pos=Q,!1;$=c.href,f=c.title}return n||(o=e.src.slice(l,O),e.md.inline.parse(o,e.md,e.env,p=[]),d=e.push("image","img",0),d.attrs=r=[["src",$],["alt",""]],d.children=p,d.content=o,f&&r.push(["title",f])),e.pos=s,e.posMax=y,!0},_E=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,TE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,RE=function(e,n){var r,i,o,a,O,l,s=e.pos;if(e.src.charCodeAt(s)!==60)return!1;for(O=e.pos,l=e.posMax;;){if(++s>=l||(a=e.src.charCodeAt(s),a===60))return!1;if(a===62)break}return r=e.src.slice(O+1,s),TE.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):_E.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):!1},qE=Hs.HTML_TAG_RE;function WE(t){return/^<a[>\s]/i.test(t)}function zE(t){return/^<\/a\s*>/i.test(t)}function UE(t){var e=t|32;return e>=97&&e<=122}var ZE=function(e,n){var r,i,o,a,O=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(O)!==60||O+2>=o)||(r=e.src.charCodeAt(O+1),r!==33&&r!==63&&r!==47&&!UE(r))||(i=e.src.slice(O).match(qE),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=e.src.slice(O,O+i[0].length),WE(a.content)&&e.linkLevel++,zE(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},sx=vP,YE=_e.has,VE=_e.isValidEntityCode,cx=_e.fromCodePoint,EE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,CE=/^&([a-z][a-z0-9]{1,31});/i,AE=function(e,n){var r,i,o,a,O=e.pos,l=e.posMax;if(e.src.charCodeAt(O)!==38||O+1>=l)return!1;if(r=e.src.charCodeAt(O+1),r===35){if(o=e.src.slice(O).match(EE),o)return n||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0),a.content=VE(i)?cx(i):cx(65533),a.markup=o[0],a.info="entity"),e.pos+=o[0].length,!0}else if(o=e.src.slice(O).match(CE),o&&YE(sx,o[1]))return n||(a=e.push("text_special","",0),a.content=sx[o[1]],a.markup=o[0],a.info="entity"),e.pos+=o[0].length,!0;return!1};function ux(t,e){var n,r,i,o,a,O,l,s,c={},u=e.length;if(u){var f=0,d=-2,p=[];for(n=0;n<u;n++)if(i=e[n],p.push(0),(e[f].marker!==i.marker||d!==i.token-1)&&(f=n),d=i.token,i.length=i.length||0,!!i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],r=f-p[f]-1,O=r;r>a;r-=p[r]+1)if(o=e[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){s=r>0&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+s,p[r]=s,i.open=!1,o.end=n,o.close=!1,O=-1,d=-2;break}O!==-1&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=O)}}}var jE=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(ux(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&ux(e,r[n].delimiters)},IE=function(e){var n,r,i=0,o=e.tokens,a=e.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},Xh=bh,fx=_e.isWhiteSpace,dx=_e.isPunctChar,hx=_e.isMdAsciiPunct;function vO(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}vO.prototype.pushPending=function(){var t=new Xh("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},vO.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Xh(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},vO.prototype.scanDelims=function(t,e){var n=t,r,i,o,a,O,l,s,c,u,f=!0,d=!0,p=this.posMax,m=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<p&&this.src.charCodeAt(n)===m;)n++;return o=n-t,i=n<p?this.src.charCodeAt(n):32,s=hx(r)||dx(String.fromCharCode(r)),u=hx(i)||dx(String.fromCharCode(i)),l=fx(r),c=fx(i),c?f=!1:u&&(l||s||(f=!1)),l?d=!1:s&&(c||u||(d=!1)),e?(a=f,O=d):(a=f&&(!d||s),O=d&&(!f||u)),{can_open:a,can_close:O,length:o}},vO.prototype.Token=Xh;var GE=vO,px=Qh,_h=[["text",gE],["linkify",QE],["newline",yE],["escape",PE],["backticks",xE],["strikethrough",tc.tokenize],["emphasis",nc.tokenize],["link",wE],["image",XE],["autolink",RE],["html_inline",ZE],["entity",AE]],Th=[["balance_pairs",jE],["strikethrough",tc.postProcess],["emphasis",nc.postProcess],["fragments_join",IE]];function XO(){var t;for(this.ruler=new px,t=0;t<_h.length;t++)this.ruler.push(_h[t][0],_h[t][1]);for(this.ruler2=new px,t=0;t<Th.length;t++)this.ruler2.push(Th[t][0],Th[t][1])}XO.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,O=t.cache;if(typeof O[r]<"u"){t.pos=O[r];return}if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,O[r]=t.pos},XO.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},XO.prototype.parse=function(t,e,n,r){var i,o,a,O=new this.State(t,e,n,r);for(this.tokenize(O),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](O)},XO.prototype.State=GE;var DE=XO,Rh,mx;function NE(){return mx||(mx=1,Rh=function(t){var e={};t=t||{},e.src_Any=ZP().source,e.src_Cc=VP().source,e.src_Z=AP().source,e.src_P=hh.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Rh}function qh(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function rc(t){return Object.prototype.toString.call(t)}function LE(t){return rc(t)==="[object String]"}function ME(t){return rc(t)==="[object Object]"}function BE(t){return rc(t)==="[object RegExp]"}function gx(t){return rc(t)==="[object Function]"}function FE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var $x={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function HE(t){return Object.keys(t||{}).reduce(function(e,n){return e||$x.hasOwnProperty(n)},!1)}var KE={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},JE="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",e2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function t2(t){t.__index__=-1,t.__text_cache__=""}function n2(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Qx(){return function(t,e){e.normalize(t)}}function ic(t){var e=t.re=NE()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(JE),n.push(e.src_xn),e.src_tlds=n.join("|");function r(O){return O.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(O,l){throw new Error('(LinkifyIt) Invalid schema "'+O+'": '+l)}Object.keys(t.__schemas__).forEach(function(O){var l=t.__schemas__[O];if(l!==null){var s={validate:null,link:null};if(t.__compiled__[O]=s,ME(l)){BE(l.validate)?s.validate=n2(l.validate):gx(l.validate)?s.validate=l.validate:o(O,l),gx(l.normalize)?s.normalize=l.normalize:l.normalize?o(O,l):s.normalize=Qx();return}if(LE(l)){i.push(O);return}o(O,l)}}),i.forEach(function(O){t.__compiled__[t.__schemas__[O]]&&(t.__compiled__[O].validate=t.__compiled__[t.__schemas__[O]].validate,t.__compiled__[O].normalize=t.__compiled__[t.__schemas__[O]].normalize)}),t.__compiled__[""]={validate:null,normalize:Qx()};var a=Object.keys(t.__compiled__).filter(function(O){return O.length>0&&t.__compiled__[O]}).map(FE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),t2(t)}function r2(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Wh(t,e){var n=new r2(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function cn(t,e){if(!(this instanceof cn))return new cn(t,e);e||HE(t)&&(e=t,t={}),this.__opts__=qh({},$x,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=qh({},KE,t),this.__compiled__={},this.__tlds__=e2,this.__tlds_replaced__=!1,this.re={},ic(this)}cn.prototype.add=function(e,n){return this.__schemas__[e]=n,ic(this),this},cn.prototype.set=function(e){return this.__opts__=qh(this.__opts__,e),this},cn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,i,o,a,O,l,s,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,O=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&O>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=O))),this.__index__>=0},cn.prototype.pretest=function(e){return this.re.pretest.test(e)},cn.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},cn.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Wh(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)r.push(Wh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},cn.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Wh(this,0)):null},cn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),ic(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ic(this),this)},cn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},cn.prototype.onCompile=function(){};var i2=cn;const Oa=2147483647,Pr=36,zh=1,_O=26,o2=38,a2=700,bx=72,yx=128,Sx="-",O2=/^xn--/,l2=/[^\0-\x7F]/,s2=/[\x2E\u3002\uFF0E\uFF61]/g,c2={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Uh=Pr-zh,xr=Math.floor,Zh=String.fromCharCode;function yi(t){throw new RangeError(c2[t])}function u2(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Px(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(s2,".");const i=t.split("."),o=u2(i,e).join(".");return r+o}function Yh(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const xx=t=>String.fromCodePoint(...t),f2=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Pr},kx=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},wx=function(t,e,n){let r=0;for(t=n?xr(t/a2):t>>1,t+=xr(t/e);t>Uh*_O>>1;r+=Pr)t=xr(t/Uh);return xr(r+(Uh+1)*t/(t+o2))},Vh=function(t){const e=[],n=t.length;let r=0,i=yx,o=bx,a=t.lastIndexOf(Sx);a<0&&(a=0);for(let O=0;O<a;++O)t.charCodeAt(O)>=128&&yi("not-basic"),e.push(t.charCodeAt(O));for(let O=a>0?a+1:0;O<n;){const l=r;for(let c=1,u=Pr;;u+=Pr){O>=n&&yi("invalid-input");const f=f2(t.charCodeAt(O++));f>=Pr&&yi("invalid-input"),f>xr((Oa-r)/c)&&yi("overflow"),r+=f*c;const d=u<=o?zh:u>=o+_O?_O:u-o;if(f<d)break;const p=Pr-d;c>xr(Oa/p)&&yi("overflow"),c*=p}const s=e.length+1;o=wx(r-l,s,l==0),xr(r/s)>Oa-i&&yi("overflow"),i+=xr(r/s),r%=s,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Eh=function(t){const e=[];t=Yh(t);const n=t.length;let r=yx,i=0,o=bx;for(const l of t)l<128&&e.push(Zh(l));const a=e.length;let O=a;for(a&&e.push(Sx);O<n;){let l=Oa;for(const c of t)c>=r&&c<l&&(l=c);const s=O+1;l-r>xr((Oa-i)/s)&&yi("overflow"),i+=(l-r)*s,r=l;for(const c of t)if(c<r&&++i>Oa&&yi("overflow"),c===r){let u=i;for(let f=Pr;;f+=Pr){const d=f<=o?zh:f>=o+_O?_O:f-o;if(u<d)break;const p=u-d,m=Pr-d;e.push(Zh(kx(d+p%m,0))),u=xr(p/m)}e.push(Zh(kx(u,0))),o=wx(i,s,O===a),i=0,++O}++i,++r}return e.join("")},vx=function(t){return Px(t,function(e){return O2.test(e)?Vh(e.slice(4).toLowerCase()):e})},Xx=function(t){return Px(t,function(e){return l2.test(e)?"xn--"+Eh(e):e})},d2=UY(Object.freeze(Object.defineProperty({__proto__:null,decode:Vh,default:{version:"2.1.0",ucs2:{decode:Yh,encode:xx},decode:Vh,encode:Eh,toASCII:Xx,toUnicode:vx},encode:Eh,toASCII:Xx,toUnicode:vx,ucs2decode:Yh,ucs2encode:xx},Symbol.toStringTag,{value:"Module"})));var h2={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},p2={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},m2={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},TO=_e,g2=Ms,$2=dV,Q2=YV,b2=pE,y2=DE,S2=i2,no=ra,_x=d2,P2={default:h2,zero:p2,commonmark:m2},x2=/^(vbscript|javascript|file|data):/,k2=/^data:image\/(gif|png|jpeg|webp);/;function w2(t){var e=t.trim().toLowerCase();return x2.test(e)?!!k2.test(e):!0}var Tx=["http:","https:","mailto:"];function v2(t){var e=no.parse(t,!0);if(e.hostname&&(!e.protocol||Tx.indexOf(e.protocol)>=0))try{e.hostname=_x.toASCII(e.hostname)}catch{}return no.encode(no.format(e))}function X2(t){var e=no.parse(t,!0);if(e.hostname&&(!e.protocol||Tx.indexOf(e.protocol)>=0))try{e.hostname=_x.toUnicode(e.hostname)}catch{}return no.decode(no.format(e),no.decode.defaultChars+"%")}function Xn(t,e){if(!(this instanceof Xn))return new Xn(t,e);e||TO.isString(t)||(e=t||{},t="default"),this.inline=new y2,this.block=new b2,this.core=new Q2,this.renderer=new $2,this.linkify=new S2,this.validateLink=w2,this.normalizeLink=v2,this.normalizeLinkText=X2,this.utils=TO,this.helpers=TO.assign({},g2),this.options={},this.configure(t),e&&this.set(e)}Xn.prototype.set=function(t){return TO.assign(this.options,t),this},Xn.prototype.configure=function(t){var e=this,n;if(TO.isString(t)&&(n=t,t=P2[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},Xn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Xn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Xn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Xn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Xn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Xn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Xn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var _2=Xn,T2=_2;const R2=dh(T2),Rx=new Set([!0,!1,"alt","title"]);function qx(t,e){return(Array.isArray(t)?t:[]).filter(([n])=>n!==e)}function Wx(t,e){t&&t.attrs&&(t.attrs=qx(t.attrs,e))}function q2(t,e){if(!Rx.has(t))throw new TypeError(`figcaption must be one of: ${[...Rx]}.`);if(t==="alt")return e.content;const n=e.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Wx(e,"title"),n[1]):void 0}function W2(t,e){e=e||{},t.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let i=1,o=n.tokens.length;i<o-1;++i){const a=n.tokens[i];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[s,c,u]=a.children;if(s.type!=="link_open"||c.type!=="image"||u.type!=="link_close")continue}if(i!==0&&n.tokens[i-1].type!=="paragraph_open"||i!==o-1&&n.tokens[i+1].type!=="paragraph_close")continue;const O=n.tokens[i-1];let l;if(O.type="figure_open",O.tag="figure",n.tokens[i+1].type="figure_close",n.tokens[i+1].tag="figure",e.dataType&&n.tokens[i-1].attrPush(["data-type","image"]),e.link&&a.children.length===1){[l]=a.children;const s=new n.Token("link_open","a",1);s.attrPush(["href",l.attrGet("src")]),a.children.unshift(s),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],e.figcaption){const s=q2(e.figcaption,l);if(s){const[c]=t.parseInline(s,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...c.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=qx(l.attrs,"title"))}}if(e.copyAttrs&&l.attrs){const s=e.copyAttrs===!0?"":e.copyAttrs;O.attrs=l.attrs.filter(([c])=>c.match(s)).map(c=>Array.from(c))}if(e.tabindex&&(n.tokens[i-1].attrPush(["tabindex",r]),r++),e.lazy&&(l.attrs.some(([s])=>s==="loading")||l.attrs.push(["loading","lazy"])),e.async&&(l.attrs.some(([s])=>s==="decoding")||l.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let s=!1;for(let c=0,u=l.attrs.length;c<u&&!s;c++){const f=l.attrs[c];f[0]==="class"&&(f[1]=`${f[1]} ${e.classes}`,s=!0)}s||l.attrs.push(["class",e.classes])}if(e.removeSrc){const s=l.attrs.find(([c])=>c==="src");l.attrs.push(["data-src",s[1]]),Wx(l,"src")}}})}var Ch=!0,zx=!1,Ux=!1,z2=function(t,e){e&&(Ch=!e.enabled,zx=!!e.label,Ux=!!e.labelAfter),t.core.ruler.after("inline","github-task-lists",function(n){for(var r=n.tokens,i=2;i<r.length;i++)Z2(r,i)&&(Y2(r[i],n.Token),Zx(r[i-2],"class","task-list-item"+(Ch?"":" enabled")),Zx(r[U2(r,i-2)],"class","contains-task-list"))})};function Zx(t,e,n){var r=t.attrIndex(e),i=[e,n];r<0?t.attrPush(i):t.attrs[r]=i}function U2(t,e){for(var n=t[e].level-1,r=e-1;r>=0;r--)if(t[r].level===n)return r;return-1}function Z2(t,e){return j2(t[e])&&I2(t[e-1])&&G2(t[e-2])&&D2(t[e])}function Y2(t,e){if(t.children.unshift(V2(t,e)),t.children[1].content=t.children[1].content.slice(3),t.content=t.content.slice(3),zx)if(Ux){t.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);t.children[0].content=t.children[0].content.slice(0,-1)+' id="'+n+'">',t.children.push(A2(t.content,n,e))}else t.children.unshift(E2(e)),t.children.push(C2(e))}function V2(t,e){var n=new e("html_inline","",0),r=Ch?' disabled="" ':"";return t.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':(t.content.indexOf("[x] ")===0||t.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),n}function E2(t){var e=new t("html_inline","",0);return e.content="<label>",e}function C2(t){var e=new t("html_inline","",0);return e.content="</label>",e}function A2(t,e,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+e+'">'+t+"</label>",r.attrs=[{for:e}],r}function j2(t){return t.type==="inline"}function I2(t){return t.type==="paragraph_open"}function G2(t){return t.type==="list_item_open"}function D2(t){return t.content.indexOf("[ ] ")===0||t.content.indexOf("[x] ")===0||t.content.indexOf("[X] ")===0}const N2=dh(z2),L2=t=>{var o;const e=(o=Ve.editorExtensions)==null?void 0:o.highlight,n=e==null?void 0:e.instance,r=g.inject("highlight"),i=g.shallowRef(n);return g.onMounted(()=>{if(!t.noHighlight&&!i.value){const a=document.createElement("script");a.src=r.value.js,a.onload=()=>{i.value=window.hljs},a.id=`${W}-hljs`,An(a,"hljs");const O=document.createElement("link");O.rel="stylesheet",O.href=r.value.css,O.id=`${W}-hlCss`,An(O)}}),g.watch(()=>r.value.css,a=>{DT(`${W}-hlCss`,"href",a)}),i},RO=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Yx=new Set,M2=(t,e,n,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},B2=t=>!Yx.has(t),Si=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Vx=t=>Si(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?oc:null:null;class oc extends Array{constructor(e){super(e),this.fill(0)}}const _a=class{constructor(e,n){je(this,"heap");je(this,"length");if(!T(_a,Xa))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=Vx(e);if(!n)return[];ce(_a,Xa,!0);const r=new _a(e,n);return ce(_a,Xa,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};let ac=_a;Xa=new WeakMap,me(ac,Xa,!1);const lg=class{constructor(e){me(this,Pl);me(this,Vu);me(this,Wr);me(this,zr);me(this,wl);me(this,qa);me(this,Wa);me(this,Ae);me(this,vl);me(this,vo);me(this,nr,void 0);me(this,$n,void 0);me(this,Rr,void 0);me(this,rr,void 0);me(this,Ta,void 0);je(this,"ttl");je(this,"ttlResolution");je(this,"ttlAutopurge");je(this,"updateAgeOnGet");je(this,"updateAgeOnHas");je(this,"allowStale");je(this,"noDisposeOnSet");je(this,"noUpdateTTL");je(this,"maxEntrySize");je(this,"sizeCalculation");je(this,"noDeleteOnFetchRejection");je(this,"noDeleteOnStaleGet");je(this,"allowStaleOnFetchAbort");je(this,"allowStaleOnFetchRejection");je(this,"ignoreFetchAbort");me(this,gt,void 0);me(this,ir,void 0);me(this,$t,void 0);me(this,Ne,void 0);me(this,pe,void 0);me(this,Bt,void 0);me(this,Qn,void 0);me(this,Ct,void 0);me(this,wt,void 0);me(this,or,void 0);me(this,Tt,void 0);me(this,Jr,void 0);me(this,ei,void 0);me(this,ar,void 0);me(this,qr,void 0);me(this,Zi,void 0);me(this,rn,void 0);me(this,ko,()=>{});me(this,ti,()=>{});me(this,xl,()=>{});me(this,bn,()=>!1);me(this,wo,e=>{});me(this,Ra,(e,n,r)=>{});me(this,kl,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:O,allowStale:l,dispose:s,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:f,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:$,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:R,ignoreFetchAbort:x}=e;if(n!==0&&!Si(n))throw new TypeError("max option must be a nonnegative integer");const w=n?Vx(n):Array;if(!w)throw new Error("invalid max value: "+n);if(ce(this,nr,n),ce(this,$n,d),this.maxEntrySize=p||T(this,$n),this.sizeCalculation=m,this.sizeCalculation){if(!T(this,$n)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if($!==void 0&&typeof $!="function")throw new TypeError("fetchMethod must be a function if specified");if(ce(this,Ta,$),ce(this,Zi,!!$),ce(this,$t,new Map),ce(this,Ne,new Array(n).fill(void 0)),ce(this,pe,new Array(n).fill(void 0)),ce(this,Bt,new w(n)),ce(this,Qn,new w(n)),ce(this,Ct,0),ce(this,wt,0),ce(this,or,ac.create(n)),ce(this,gt,0),ce(this,ir,0),typeof s=="function"&&ce(this,Rr,s),typeof c=="function"?(ce(this,rr,c),ce(this,Tt,[])):(ce(this,rr,void 0),ce(this,Tt,void 0)),ce(this,qr,!!T(this,Rr)),ce(this,rn,!!T(this,rr)),this.noDisposeOnSet=!!u,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!Q,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!R,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(T(this,$n)!==0&&!Si(T(this,$n)))throw new TypeError("maxSize must be a positive integer if specified");if(!Si(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ae(this,Vu,TT).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!O,this.ttlResolution=Si(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Si(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ae(this,Pl,mg).call(this)}if(T(this,nr)===0&&this.ttl===0&&T(this,$n)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!T(this,nr)&&!T(this,$n)){const v="LRU_CACHE_UNBOUNDED";B2(v)&&(Yx.add(v),M2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",v,lg))}}static unsafeExposeInternals(e){return{starts:T(e,ei),ttls:T(e,ar),sizes:T(e,Jr),keyMap:T(e,$t),keyList:T(e,Ne),valList:T(e,pe),next:T(e,Bt),prev:T(e,Qn),get head(){return T(e,Ct)},get tail(){return T(e,wt)},free:T(e,or),isBackgroundFetch:n=>{var r;return ae(r=e,Ae,Fe).call(r,n)},backgroundFetch:(n,r,i,o)=>{var a;return ae(a=e,Wa,Mu).call(a,n,r,i,o)},moveToTail:n=>{var r;return ae(r=e,vo,Rl).call(r,n)},indexes:n=>{var r;return ae(r=e,Wr,Ei).call(r,n)},rindexes:n=>{var r;return ae(r=e,zr,Ci).call(r,n)},isStale:n=>{var r;return T(r=e,bn).call(r,n)}}}get max(){return T(this,nr)}get maxSize(){return T(this,$n)}get calculatedSize(){return T(this,ir)}get size(){return T(this,gt)}get fetchMethod(){return T(this,Ta)}get dispose(){return T(this,Rr)}get disposeAfter(){return T(this,rr)}getRemainingTTL(e){return T(this,$t).has(e)?1/0:0}*entries(){for(const e of ae(this,Wr,Ei).call(this))T(this,pe)[e]!==void 0&&T(this,Ne)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield[T(this,Ne)[e],T(this,pe)[e]])}*rentries(){for(const e of ae(this,zr,Ci).call(this))T(this,pe)[e]!==void 0&&T(this,Ne)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield[T(this,Ne)[e],T(this,pe)[e]])}*keys(){for(const e of ae(this,Wr,Ei).call(this)){const n=T(this,Ne)[e];n!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield n)}}*rkeys(){for(const e of ae(this,zr,Ci).call(this)){const n=T(this,Ne)[e];n!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield n)}}*values(){for(const e of ae(this,Wr,Ei).call(this))T(this,pe)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield T(this,pe)[e])}*rvalues(){for(const e of ae(this,zr,Ci).call(this))T(this,pe)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield T(this,pe)[e])}[Symbol.iterator](){return this.entries()}find(e,n={}){for(const r of ae(this,Wr,Ei).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&e(o,T(this,Ne)[r],this))return this.get(T(this,Ne)[r],n)}}forEach(e,n=this){for(const r of ae(this,Wr,Ei).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,T(this,Ne)[r],this)}}rforEach(e,n=this){for(const r of ae(this,zr,Ci).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,T(this,Ne)[r],this)}}purgeStale(){let e=!1;for(const n of ae(this,zr,Ci).call(this,{allowStale:!0}))T(this,bn).call(this,n)&&(this.delete(T(this,Ne)[n]),e=!0);return e}dump(){const e=[];for(const n of ae(this,Wr,Ei).call(this,{allowStale:!0})){const r=T(this,Ne)[n],i=T(this,pe)[n],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||r===void 0)continue;const a={value:o};if(T(this,ar)&&T(this,ei)){a.ttl=T(this,ar)[n];const O=RO.now()-T(this,ei)[n];a.start=Math.floor(Date.now()-O)}T(this,Jr)&&(a.size=T(this,Jr)[n]),e.unshift([r,a])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=RO.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var f,d,p;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:O=this.sizeCalculation,status:l}=r;let{noUpdateTTL:s=this.noUpdateTTL}=r;const c=T(this,kl).call(this,e,n,r.size||0,O);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=T(this,gt)===0?void 0:T(this,$t).get(e);if(u===void 0)u=T(this,gt)===0?T(this,wt):T(this,or).length!==0?T(this,or).pop():T(this,gt)===T(this,nr)?ae(this,qa,Lu).call(this,!1):T(this,gt),T(this,Ne)[u]=e,T(this,pe)[u]=n,T(this,$t).set(e,u),T(this,Bt)[T(this,wt)]=u,T(this,Qn)[u]=T(this,wt),ce(this,wt,u),Nu(this,gt)._++,T(this,Ra).call(this,u,c,l),l&&(l.set="add"),s=!1;else{ae(this,vo,Rl).call(this,u);const m=T(this,pe)[u];if(n!==m){if(T(this,Zi)&&ae(this,Ae,Fe).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(T(this,qr)&&((f=T(this,Rr))==null||f.call(this,m,e,"set")),T(this,rn)&&((d=T(this,Tt))==null||d.push([m,e,"set"]))),T(this,wo).call(this,u),T(this,Ra).call(this,u,c,l),T(this,pe)[u]=n,l){l.set="replace";const $=m&&ae(this,Ae,Fe).call(this,m)?m.__staleWhileFetching:m;$!==void 0&&(l.oldValue=$)}}else l&&(l.set="update")}if(i!==0&&!T(this,ar)&&ae(this,Pl,mg).call(this),T(this,ar)&&(s||T(this,xl).call(this,u,i,o),l&&T(this,ti).call(this,l,u)),!a&&T(this,rn)&&T(this,Tt)){const m=T(this,Tt);let $;for(;$=m==null?void 0:m.shift();)(p=T(this,rr))==null||p.call(this,...$)}return this}pop(){var e;try{for(;T(this,gt);){const n=T(this,pe)[T(this,Ct)];if(ae(this,qa,Lu).call(this,!0),ae(this,Ae,Fe).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(T(this,rn)&&T(this,Tt)){const n=T(this,Tt);let r;for(;r=n==null?void 0:n.shift();)(e=T(this,rr))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,o=T(this,$t).get(e);if(o!==void 0){const a=T(this,pe)[o];if(ae(this,Ae,Fe).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(T(this,bn).call(this,o))i&&(i.has="stale",T(this,ti).call(this,i,o));else return r&&T(this,ko).call(this,o),i&&(i.has="hit",T(this,ti).call(this,i,o)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=T(this,$t).get(e);if(i!==void 0&&(r||!T(this,bn).call(this,i))){const o=T(this,pe)[i];return ae(this,Ae,Fe).call(this,o)?o.__staleWhileFetching:o}}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:O=this.noDisposeOnSet,size:l=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:$=!1,status:Q,signal:y}=n;if(!T(this,Zi))return Q&&(Q.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:Q});const P={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:O,size:l,sizeCalculation:s,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:Q,signal:y};let R=T(this,$t).get(e);if(R===void 0){Q&&(Q.fetch="miss");const x=ae(this,Wa,Mu).call(this,e,R,P,m);return x.__returned=x}else{const x=T(this,pe)[R];if(ae(this,Ae,Fe).call(this,x)){const z=r&&x.__staleWhileFetching!==void 0;return Q&&(Q.fetch="inflight",z&&(Q.returnedStale=!0)),z?x.__staleWhileFetching:x.__returned=x}const w=T(this,bn).call(this,R);if(!$&&!w)return Q&&(Q.fetch="hit"),ae(this,vo,Rl).call(this,R),i&&T(this,ko).call(this,R),Q&&T(this,ti).call(this,Q,R),x;const v=ae(this,Wa,Mu).call(this,e,R,P,m),k=v.__staleWhileFetching!==void 0&&r;return Q&&(Q.fetch=w?"stale":"refresh",k&&w&&(Q.returnedStale=!0)),k?v.__staleWhileFetching:v.__returned=v}}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,O=T(this,$t).get(e);if(O!==void 0){const l=T(this,pe)[O],s=ae(this,Ae,Fe).call(this,l);return a&&T(this,ti).call(this,a,O),T(this,bn).call(this,O)?(a&&(a.get="stale"),s?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||this.delete(e),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),s?l.__staleWhileFetching:(ae(this,vo,Rl).call(this,O),i&&T(this,ko).call(this,O),l))}else a&&(a.get="miss")}delete(e){var r,i,o,a;let n=!1;if(T(this,gt)!==0){const O=T(this,$t).get(e);if(O!==void 0)if(n=!0,T(this,gt)===1)this.clear();else{T(this,wo).call(this,O);const l=T(this,pe)[O];ae(this,Ae,Fe).call(this,l)?l.__abortController.abort(new Error("deleted")):(T(this,qr)||T(this,rn))&&(T(this,qr)&&((r=T(this,Rr))==null||r.call(this,l,e,"delete")),T(this,rn)&&((i=T(this,Tt))==null||i.push([l,e,"delete"]))),T(this,$t).delete(e),T(this,Ne)[O]=void 0,T(this,pe)[O]=void 0,O===T(this,wt)?ce(this,wt,T(this,Qn)[O]):O===T(this,Ct)?ce(this,Ct,T(this,Bt)[O]):(T(this,Bt)[T(this,Qn)[O]]=T(this,Bt)[O],T(this,Qn)[T(this,Bt)[O]]=T(this,Qn)[O]),Nu(this,gt)._--,T(this,or).push(O)}}if(T(this,rn)&&((o=T(this,Tt))!=null&&o.length)){const O=T(this,Tt);let l;for(;l=O==null?void 0:O.shift();)(a=T(this,rr))==null||a.call(this,...l)}return n}clear(){var e,n,r;for(const i of ae(this,zr,Ci).call(this,{allowStale:!0})){const o=T(this,pe)[i];if(ae(this,Ae,Fe).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=T(this,Ne)[i];T(this,qr)&&((e=T(this,Rr))==null||e.call(this,o,a,"delete")),T(this,rn)&&((n=T(this,Tt))==null||n.push([o,a,"delete"]))}}if(T(this,$t).clear(),T(this,pe).fill(void 0),T(this,Ne).fill(void 0),T(this,ar)&&T(this,ei)&&(T(this,ar).fill(0),T(this,ei).fill(0)),T(this,Jr)&&T(this,Jr).fill(0),ce(this,Ct,0),ce(this,wt,0),T(this,or).length=0,ce(this,ir,0),ce(this,gt,0),T(this,rn)&&T(this,Tt)){const i=T(this,Tt);let o;for(;o=i==null?void 0:i.shift();)(r=T(this,rr))==null||r.call(this,...o)}}};let Ah=lg;nr=new WeakMap,$n=new WeakMap,Rr=new WeakMap,rr=new WeakMap,Ta=new WeakMap,gt=new WeakMap,ir=new WeakMap,$t=new WeakMap,Ne=new WeakMap,pe=new WeakMap,Bt=new WeakMap,Qn=new WeakMap,Ct=new WeakMap,wt=new WeakMap,or=new WeakMap,Tt=new WeakMap,Jr=new WeakMap,ei=new WeakMap,ar=new WeakMap,qr=new WeakMap,Zi=new WeakMap,rn=new WeakMap,Pl=new WeakSet,mg=function(){const e=new oc(T(this,nr)),n=new oc(T(this,nr));ce(this,ar,e),ce(this,ei,n),ce(this,xl,(o,a,O=RO.now())=>{if(n[o]=a!==0?O:0,e[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{T(this,bn).call(this,o)&&this.delete(T(this,Ne)[o])},a+1);l.unref&&l.unref()}}),ce(this,ko,o=>{n[o]=e[o]!==0?RO.now():0}),ce(this,ti,(o,a)=>{if(e[a]){const O=e[a],l=n[a];o.ttl=O,o.start=l,o.now=r||i(),o.remainingTTL=o.now+O-l}});let r=0;const i=()=>{const o=RO.now();if(this.ttlResolution>0){r=o;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref()}return o};this.getRemainingTTL=o=>{const a=T(this,$t).get(o);return a===void 0?0:e[a]===0||n[a]===0?1/0:n[a]+e[a]-(r||i())},ce(this,bn,o=>e[o]!==0&&n[o]!==0&&(r||i())-n[o]>e[o])},ko=new WeakMap,ti=new WeakMap,xl=new WeakMap,bn=new WeakMap,Vu=new WeakSet,TT=function(){const e=new oc(T(this,nr));ce(this,ir,0),ce(this,Jr,e),ce(this,wo,n=>{ce(this,ir,T(this,ir)-e[n]),e[n]=0}),ce(this,kl,(n,r,i,o)=>{if(ae(this,Ae,Fe).call(this,r))return 0;if(!Si(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(r,n),!Si(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),ce(this,Ra,(n,r,i)=>{if(e[n]=r,T(this,$n)){const o=T(this,$n)-e[n];for(;T(this,ir)>o;)ae(this,qa,Lu).call(this,!0)}ce(this,ir,T(this,ir)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=T(this,ir))})},wo=new WeakMap,Ra=new WeakMap,kl=new WeakMap,Wr=new WeakSet,Ei=function*({allowStale:e=this.allowStale}={}){if(T(this,gt))for(let n=T(this,wt);!(!ae(this,wl,gg).call(this,n)||((e||!T(this,bn).call(this,n))&&(yield n),n===T(this,Ct)));)n=T(this,Qn)[n]},zr=new WeakSet,Ci=function*({allowStale:e=this.allowStale}={}){if(T(this,gt))for(let n=T(this,Ct);!(!ae(this,wl,gg).call(this,n)||((e||!T(this,bn).call(this,n))&&(yield n),n===T(this,wt)));)n=T(this,Bt)[n]},wl=new WeakSet,gg=function(e){return e!==void 0&&T(this,$t).get(T(this,Ne)[e])===e},qa=new WeakSet,Lu=function(e){var o,a;const n=T(this,Ct),r=T(this,Ne)[n],i=T(this,pe)[n];return T(this,Zi)&&ae(this,Ae,Fe).call(this,i)?i.__abortController.abort(new Error("evicted")):(T(this,qr)||T(this,rn))&&(T(this,qr)&&((o=T(this,Rr))==null||o.call(this,i,r,"evict")),T(this,rn)&&((a=T(this,Tt))==null||a.push([i,r,"evict"]))),T(this,wo).call(this,n),e&&(T(this,Ne)[n]=void 0,T(this,pe)[n]=void 0,T(this,or).push(n)),T(this,gt)===1?(ce(this,Ct,ce(this,wt,0)),T(this,or).length=0):ce(this,Ct,T(this,Bt)[n]),T(this,$t).delete(r),Nu(this,gt)._--,n},Wa=new WeakSet,Mu=function(e,n,r,i){const o=n===void 0?void 0:T(this,pe)[n];if(ae(this,Ae,Fe).call(this,o))return o;const a=new AbortController,{signal:O}=r;O==null||O.addEventListener("abort",()=>a.abort(O.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:i},s=(m,$=!1)=>{const{aborted:Q}=a.signal,y=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(Q&&!$?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),Q&&!y&&!$)return u(a.signal.reason);const P=d;return T(this,pe)[n]===d&&(m===void 0?P.__staleWhileFetching?T(this,pe)[n]=P.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,m,l.options))),m},c=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),u(m)),u=m=>{const{aborted:$}=a.signal,Q=$&&r.allowStaleOnFetchAbort,y=Q||r.allowStaleOnFetchRejection,P=y||r.noDeleteOnFetchRejection,R=d;if(T(this,pe)[n]===d&&(!P||R.__staleWhileFetching===void 0?this.delete(e):Q||(T(this,pe)[n]=R.__staleWhileFetching)),y)return r.status&&R.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw m},f=(m,$)=>{var y;const Q=(y=T(this,Ta))==null?void 0:y.call(this,e,o,l);Q&&Q instanceof Promise&&Q.then(P=>m(P),$),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=P=>s(P,!0)))})};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(f).then(s,c),p=Object.assign(d,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(e,p,{...l.options,status:void 0}),n=T(this,$t).get(e)):T(this,pe)[n]=p,p},Ae=new WeakSet,Fe=function(e){if(!T(this,Zi))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof AbortController},vl=new WeakSet,$g=function(e,n){T(this,Qn)[n]=e,T(this,Bt)[e]=n},vo=new WeakSet,Rl=function(e){e!==T(this,wt)&&(e===T(this,Ct)?ce(this,Ct,T(this,Bt)[e]):ae(this,vl,$g).call(this,T(this,Qn)[e],T(this,Bt)[e]),ae(this,vl,$g).call(this,T(this,wt),e),ce(this,wt,e))};const F2=Ah,H2=t=>{const e=g.inject("theme"),{editorExtensions:n}=Ve,r=n==null?void 0:n.mermaid,i=g.shallowRef(r==null?void 0:r.instance),o=g.shallowRef(!1),a=new F2({max:1e3,ttl:6e5}),O=()=>{const s=(r==null?void 0:r.instance)||window.mermaid;!t.noMermaid&&s&&(s.initialize({startOnLoad:!1,theme:e.value==="dark"?"dark":"default"}),o.value=!o.value)};return g.watch(()=>e.value,()=>{a.clear(),O()}),g.onMounted(()=>{if(!t.noMermaid&&!(r!=null&&r.instance)){const s=document.createElement("script");s.id=`${W}-mermaid`;const c=(r==null?void 0:r.js)||WT;/\.mjs/.test(c)?(s.setAttribute("type","module"),s.innerHTML=`import mermaid from "${c}";window.mermaid=mermaid;document.getElementById('${W}-mermaid').dispatchEvent(new Event('load'));`):s.src=c,s.onload=()=>{i.value=window.mermaid,O()},An(s,"mermaid")}}),{mermaidRef:i,reRenderRef:o,replaceMermaid:()=>{g.nextTick(()=>{!t.noMermaid&&i.value&&document.querySelectorAll(`div.${W}-mermaid`).forEach(async c=>{let u=a.get(c.innerText);if(!u){const d=IT(),m=await(i.value.renderAsync||i.value.render)(d,c.innerText);u=typeof m=="string"?m:m.svg,a.set(c.innerText,u)}const f=document.createElement("p");f.className=`${W}-mermaid`,f.setAttribute("data-processed",""),f.innerHTML=u,c.dataset.line!==void 0&&(f.dataset.line=c.dataset.line),c.replaceWith(f)})})}}},K2=t=>{var i;const e=(i=Ve.editorExtensions)==null?void 0:i.katex,n=e==null?void 0:e.instance,r=g.shallowRef(n);return g.onMounted(()=>{if(!t.noKatex&&!r.value){const o=document.createElement("script");o.src=(e==null?void 0:e.js)||xg.js,o.onload=()=>{r.value=window.katex},o.id=`${W}-katex`;const a=document.createElement("link");a.rel="stylesheet",a.href=(e==null?void 0:e.css)||xg.css,a.id=`${W}-katexCss`,An(o,"katex"),An(a)}}),r},J2=(t,e)=>{const n=t.renderer.rules.fence.bind(t.renderer.rules);t.renderer.rules.fence=(r,i,o,a,O)=>{const l=r[i],s=l.content.trim();if(l.info==="mermaid"){let c;return r[i].map&&r[i].level===0&&(c=r[i].map[0],r[i].attrSet("data-line",String(c))),`<div class="${W}-mermaid" ${c!==void 0?"data-line="+c:""} data-mermaid-theme=${e.themeRef.value}>${s}</div>`}return n(r,i,o,a,O)}},Ex=(t,e)=>{let n=!0,r=!0;const i=t.posMax,o=e>0?t.src.charCodeAt(e-1):-1,a=e+1<=i?t.src.charCodeAt(e+1):-1;return(o===32||o===9||a>=48&&a<=57)&&(r=!1),(a===32||a===9)&&(n=!1),{can_open:n,can_close:r}},eC=(t,e)=>{let n,r,i,o;if(t.src[t.pos]!=="$")return!1;if(i=Ex(t,t.pos),!i.can_open)return e||(t.pending+="$"),t.pos+=1,!0;const a=t.pos+1;for(n=a;(n=t.src.indexOf("$",n))!==-1;){for(o=n-1;t.src[o]==="\\";)o-=1;if((n-o)%2==1)break;n+=1}return n===-1?(e||(t.pending+="$"),t.pos=a,!0):n-a===0?(e||(t.pending+="$$"),t.pos=a+1,!0):(i=Ex(t,n),i.can_close?(e||(r=t.push("math_inline","math",0),r.markup="$",r.content=t.src.slice(a,n)),t.pos=n+1,!0):(e||(t.pending+="$"),t.pos=a,!0))},tC=(t,e,n,r)=>{let i,o,a,O,l=!1,s=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(s+2>c||t.src.slice(s,s+2)!=="$$")return!1;if(s+=2,i=t.src.slice(s,c),r)return!0;for(i.trim().slice(-2)==="$$"&&(i=i.trim().slice(0,-2),l=!0),a=e;!l&&(a++,!(a>=n||(s=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],s<c&&t.tShift[a]<t.blkIndent)));)t.src.slice(s,c).trim().slice(-2)==="$$"&&(O=t.src.slice(0,c).lastIndexOf("$$"),o=t.src.slice(s,O),l=!0);t.line=a+1;const u=t.push("math_block","math",0);return u.block=!0,u.content=(i&&i.trim()?i+`
107
+ `,a.map=[n,e.line],!0},CV=function(e,n,r,i){var o,a,O,l,s,c,u,f=!1,d=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>p||(o=e.src.charCodeAt(d),o!==126&&o!==96)||(s=d,d=e.skipChars(d,o),a=d-s,a<3)||(u=e.src.slice(s,d),O=e.src.slice(d,p),o===96&&O.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=n;l++,!(l>=r||(d=s=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],d<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(d)===o&&!(e.sCount[l]-e.blkIndent>=4)&&(d=e.skipChars(d,o),!(d-s<a)&&(d=e.skipSpaces(d),!(d<p)))){f=!0;break}return a=e.sCount[n],e.line=l+(f?1:0),c=e.push("fence","code",0),c.info=O,c.content=e.getLines(n+1,l,a,!0),c.markup=u,c.map=[n,e.line],!0},KP=_e.isSpace,AV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w,v,X,k=e.lineMax,z=e.bMarks[n]+e.tShift[n],Y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(z++)!==62)return!1;if(i)return!0;for(l=d=e.sCount[n]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,o=!1,R=!0):e.src.charCodeAt(z)===9?(R=!0,(e.bsCount[n]+d)%4===3?(z++,l++,d++,o=!1):o=!0):R=!1,p=[e.bMarks[n]],e.bMarks[n]=z;z<Y&&(a=e.src.charCodeAt(z),KP(a));){a===9?d+=4-(d+e.bsCount[n]+(o?1:0))%4:d++;z++}for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(R?1:0),c=z>=Y,y=[e.sCount[n]],e.sCount[n]=d-l,P=[e.tShift[n]],e.tShift[n]=z-e.bMarks[n],w=e.md.block.ruler.getRules("blockquote"),Q=e.parentType,e.parentType="blockquote",f=n+1;f<r&&(X=e.sCount[f]<e.blkIndent,z=e.bMarks[f]+e.tShift[f],Y=e.eMarks[f],!(z>=Y));f++){if(e.src.charCodeAt(z++)===62&&!X){for(l=d=e.sCount[f]+1,e.src.charCodeAt(z)===32?(z++,l++,d++,o=!1,R=!0):e.src.charCodeAt(z)===9?(R=!0,(e.bsCount[f]+d)%4===3?(z++,l++,d++,o=!1):o=!0):R=!1,p.push(e.bMarks[f]),e.bMarks[f]=z;z<Y&&(a=e.src.charCodeAt(z),KP(a));){a===9?d+=4-(d+e.bsCount[f]+(o?1:0))%4:d++;z++}c=z>=Y,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(R?1:0),y.push(e.sCount[f]),e.sCount[f]=d-l,P.push(e.tShift[f]),e.tShift[f]=z-e.bMarks[f];continue}if(c)break;for(x=!1,O=0,s=w.length;O<s;O++)if(w[O](e,f,r,!0)){x=!0;break}if(x){e.lineMax=f,e.blkIndent!==0&&(p.push(e.bMarks[f]),m.push(e.bsCount[f]),P.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}p.push(e.bMarks[f]),m.push(e.bsCount[f]),P.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}for($=e.blkIndent,e.blkIndent=0,v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=u=[n,0],e.md.block.tokenize(e,n,f),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.lineMax=k,e.parentType=Q,u[1]=e.line,O=0;O<P.length;O++)e.bMarks[O+n]=p[O],e.tShift[O+n]=P[O],e.sCount[O+n]=y[O],e.bsCount[O+n]=m[O];return e.blkIndent=$,!0},jV=_e.isSpace,IV=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(s++),o!==42&&o!==45&&o!==95))return!1;for(a=1;s<c;){if(O=e.src.charCodeAt(s++),O!==o&&!jV(O))return!1;O===o&&a++}return a<3?!1:(i||(e.line=n+1,l=e.push("hr","hr",0),l.map=[n,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),!0)},JP=_e.isSpace;function ex(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=t.src.charCodeAt(r),!JP(o))?-1:r}function tx(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=t.src.charCodeAt(i),!JP(n))?-1:i}function GV(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var DV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x,w,v,X,k,z,Y,C,V,S,U,q,Z=!1,G=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(Z=!0),(Y=tx(e,n))>=0){if(u=!0,V=e.bMarks[n]+e.tShift[n],Q=Number(e.src.slice(V,Y-1)),Z&&Q!==1)return!1}else if((Y=ex(e,n))>=0)u=!1;else return!1;if(Z&&e.skipSpaces(Y)>=e.eMarks[n])return!1;if($=e.src.charCodeAt(Y-1),i)return!0;for(m=e.tokens.length,u?(q=e.push("ordered_list_open","ol",1),Q!==1&&(q.attrs=[["start",Q]])):q=e.push("bullet_list_open","ul",1),q.map=p=[n,0],q.markup=String.fromCharCode($),P=n,C=!1,U=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";P<r;){for(z=Y,y=e.eMarks[P],c=R=e.sCount[P]+Y-(e.bMarks[n]+e.tShift[n]);z<y;){if(o=e.src.charCodeAt(z),o===9)R+=4-(R+e.bsCount[P])%4;else if(o===32)R++;else break;z++}if(a=z,a>=y?s=1:s=R-c,s>4&&(s=1),l=c+s,q=e.push("list_item_open","li",1),q.markup=String.fromCharCode($),q.map=f=[n,0],u&&(q.info=e.src.slice(V,Y-1)),k=e.tight,X=e.tShift[n],v=e.sCount[n],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[n]=a-e.bMarks[n],e.sCount[n]=R,a>=y&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||C)&&(G=!1),C=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[n]=X,e.sCount[n]=v,e.tight=k,q=e.push("list_item_close","li",-1),q.markup=String.fromCharCode($),P=n=e.line,f[1]=P,a=e.bMarks[n],P>=r||e.sCount[P]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(S=!1,O=0,d=U.length;O<d;O++)if(U[O](e,P,r,!0)){S=!0;break}if(S)break;if(u){if(Y=tx(e,P),Y<0)break;V=e.bMarks[P]+e.tShift[P]}else if(Y=ex(e,P),Y<0)break;if($!==e.src.charCodeAt(Y-1))break}return u?q=e.push("ordered_list_close","ol",-1):q=e.push("bullet_list_close","ul",-1),q.markup=String.fromCharCode($),p[1]=P,e.line=P,e.parentType=w,G&&GV(e,m),!0},NV=_e.normalizeReference,Fs=_e.isSpace,LV=function(e,n,r,i){var o,a,O,l,s,c,u,f,d,p,m,$,Q,y,P,R,x=0,w=e.bMarks[n]+e.tShift[n],v=e.eMarks[n],X=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(w)!==91)return!1;for(;++w<v;)if(e.src.charCodeAt(w)===93&&e.src.charCodeAt(w-1)!==92){if(w+1===v||e.src.charCodeAt(w+1)!==58)return!1;break}for(l=e.lineMax,P=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";X<l&&!e.isEmpty(X);X++)if(!(e.sCount[X]-e.blkIndent>3)&&!(e.sCount[X]<0)){for(y=!1,c=0,u=P.length;c<u;c++)if(P[c](e,X,l,!0)){y=!0;break}if(y)break}for(Q=e.getLines(n,X,e.blkIndent,!1).trim(),v=Q.length,w=1;w<v;w++){if(o=Q.charCodeAt(w),o===91)return!1;if(o===93){d=w;break}else o===10?x++:o===92&&(w++,w<v&&Q.charCodeAt(w)===10&&x++)}if(d<0||Q.charCodeAt(d+1)!==58)return!1;for(w=d+2;w<v;w++)if(o=Q.charCodeAt(w),o===10)x++;else if(!Fs(o))break;if(m=e.md.helpers.parseLinkDestination(Q,w,v),!m.ok||(s=e.md.normalizeLink(m.str),!e.md.validateLink(s)))return!1;for(w=m.pos,x+=m.lines,a=w,O=x,$=w;w<v;w++)if(o=Q.charCodeAt(w),o===10)x++;else if(!Fs(o))break;for(m=e.md.helpers.parseLinkTitle(Q,w,v),w<v&&$!==w&&m.ok?(R=m.str,w=m.pos,x+=m.lines):(R="",w=a,x=O);w<v&&(o=Q.charCodeAt(w),!!Fs(o));)w++;if(w<v&&Q.charCodeAt(w)!==10&&R)for(R="",w=a,x=O;w<v&&(o=Q.charCodeAt(w),!!Fs(o));)w++;return w<v&&Q.charCodeAt(w)!==10||(f=NV(Q.slice(1,d)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:R,href:s}),e.parentType=p,e.line=n+x+1),!0)},MV=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hs={},BV="[a-zA-Z_:][a-zA-Z0-9:._-]*",FV="[^\"'=<>`\\x00-\\x20]+",HV="'[^']*'",KV='"[^"]*"',JV="(?:"+FV+"|"+HV+"|"+KV+")",eE="(?:\\s+"+BV+"(?:\\s*=\\s*"+JV+")?)",nx="<[A-Za-z][A-Za-z0-9\\-]*"+eE+"*\\s*\\/?>",rx="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",tE="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",nE="<[?][\\s\\S]*?[?]>",rE="<![A-Z]+\\s+[^>]*>",iE="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oE=new RegExp("^(?:"+nx+"|"+rx+"|"+tE+"|"+nE+"|"+rE+"|"+iE+")"),aE=new RegExp("^(?:"+nx+"|"+rx+")");Hs.HTML_TAG_RE=oE,Hs.HTML_OPEN_CLOSE_TAG_RE=aE;var OE=MV,lE=Hs.HTML_OPEN_CLOSE_TAG_RE,aa=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+OE.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(lE.source+"\\s*$"),/^$/,!1]],sE=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(s)!==60)return!1;for(l=e.src.slice(s,c),o=0;o<aa.length&&!aa[o][0].test(l);o++);if(o===aa.length)return!1;if(i)return aa[o][2];if(a=n+1,!aa[o][1].test(l)){for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(s=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],l=e.src.slice(s,c),aa[o][1].test(l)){l.length!==0&&a++;break}}return e.line=a,O=e.push("html_block","",0),O.map=[n,a],O.content=e.getLines(n,a,e.blkIndent,!0),!0},ix=_e.isSpace,cE=function(e,n,r,i){var o,a,O,l,s=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(s),o!==35||s>=c))return!1;for(a=1,o=e.src.charCodeAt(++s);o===35&&s<c&&a<=6;)a++,o=e.src.charCodeAt(++s);return a>6||s<c&&!ix(o)?!1:(i||(c=e.skipSpacesBack(c,s),O=e.skipCharsBack(c,35,s),O>s&&ix(e.src.charCodeAt(O-1))&&(c=O),e.line=n+1,l=e.push("heading_open","h"+String(a),1),l.markup="########".slice(0,a),l.map=[n,e.line],l=e.push("inline","",0),l.content=e.src.slice(s,c).trim(),l.map=[n,e.line],l.children=[],l=e.push("heading_close","h"+String(a),-1),l.markup="########".slice(0,a)),!0)},uE=function(e,n,r){var i,o,a,O,l,s,c,u,f,d=n+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],s<c&&(f=e.src.charCodeAt(s),(f===45||f===61)&&(s=e.skipChars(s,f),s=e.skipSpaces(s),s>=c)))){u=f===61?1:2;break}if(!(e.sCount[d]<0)){for(o=!1,a=0,O=m.length;a<O;a++)if(m[a](e,d,r,!0)){o=!0;break}if(o)break}}return u?(i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,l=e.push("heading_open","h"+String(u),1),l.markup=String.fromCharCode(f),l.map=[n,e.line],l=e.push("inline","",0),l.content=i,l.map=[n,e.line-1],l.children=[],l=e.push("heading_close","h"+String(u),-1),l.markup=String.fromCharCode(f),e.parentType=p,!0):!1},fE=function(e,n){var r,i,o,a,O,l,s=n+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(l=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3)&&!(e.sCount[s]<0)){for(i=!1,o=0,a=c.length;o<a;o++)if(c[o](e,s,u,!0)){i=!0;break}if(i)break}return r=e.getLines(n,s,e.blkIndent,!1).trim(),e.line=s,O=e.push("paragraph_open","p",1),O.map=[n,e.line],O=e.push("inline","",0),O.content=r,O.map=[n,e.line],O.children=[],O=e.push("paragraph_close","p",-1),e.parentType=l,!0},ox=bh,Ks=_e.isSpace;function Sr(t,e,n,r){var i,o,a,O,l,s,c,u;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,u=!1,a=O=s=c=0,l=o.length;O<l;O++){if(i=o.charCodeAt(O),!u)if(Ks(i)){s++,i===9?c+=4-c%4:c++;continue}else u=!0;(i===10||O===l-1)&&(i!==10&&O++,this.bMarks.push(a),this.eMarks.push(O),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),u=!1,s=0,c=0,a=O+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Sr.prototype.push=function(t,e,n){var r=new ox(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Sr.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Sr.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Sr.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!Ks(n));e++);return e},Sr.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ks(this.src.charCodeAt(--e)))return e+1;return e},Sr.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},Sr.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},Sr.prototype.getLines=function(e,n,r,i){var o,a,O,l,s,c,u,f=e;if(e>=n)return"";for(c=new Array(n-e),o=0;f<n;f++,o++){for(a=0,u=l=this.bMarks[f],f+1<n||i?s=this.eMarks[f]+1:s=this.eMarks[f];l<s&&a<r;){if(O=this.src.charCodeAt(l),Ks(O))O===9?a+=4-(a+this.bsCount[f])%4:a++;else if(l-u<this.tShift[f])a++;else break;l++}a>r?c[o]=new Array(a-r+1).join(" ")+this.src.slice(l,s):c[o]=this.src.slice(l,s)}return c.join("")},Sr.prototype.Token=ox;var dE=Sr,hE=Qh,Js=[["table",VV,["paragraph","reference"]],["code",EV],["fence",CV,["paragraph","reference","blockquote","list"]],["blockquote",AV,["paragraph","reference","blockquote","list"]],["hr",IV,["paragraph","reference","blockquote","list"]],["list",DV,["paragraph","reference","blockquote"]],["reference",LV],["html_block",sE,["paragraph","reference","blockquote"]],["heading",cE,["paragraph","reference","blockquote"]],["lheading",uE],["paragraph",fE]];function ec(){this.ruler=new hE;for(var t=0;t<Js.length;t++)this.ruler.push(Js[t][0],Js[t][1],{alt:(Js[t][2]||[]).slice()})}ec.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,O=e,l=!1,s=t.md.options.maxNesting;O<n&&(t.line=O=t.skipEmptyLines(O),!(O>=n||t.sCount[O]<t.blkIndent));){if(t.level>=s){t.line=n;break}for(i=0;i<a&&(r=o[i](t,O,n,!1),!r);i++);t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),O=t.line,O<n&&t.isEmpty(O)&&(l=!0,O++,t.line=O)}},ec.prototype.parse=function(t,e,n,r){var i;t&&(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))},ec.prototype.State=dE;var pE=ec;function mE(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var gE=function(e,n){for(var r=e.pos;r<e.posMax&&!mE(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},$E=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,QE=function(e,n){var r,i,o,a,O,l,s,c;return!e.md.options.linkify||e.linkLevel>0||(r=e.pos,i=e.posMax,r+3>i)||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47||(o=e.pending.match($E),!o)||(a=o[1],O=e.md.linkify.matchAtStart(e.src.slice(r-a.length)),!O)||(l=O.url,l=l.replace(/\*+$/,""),s=e.md.normalizeLink(l),!e.md.validateLink(s))?!1:(n||(e.pending=e.pending.slice(0,-a.length),c=e.push("link_open","a",1),c.attrs=[["href",s]],c.markup="linkify",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(l),c=e.push("link_close","a",-1),c.markup="linkify",c.info="auto"),e.pos+=l.length-a.length,!0)},bE=_e.isSpace,yE=function(e,n){var r,i,o,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(r=e.pending.length-1,i=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(o=r-1;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&bE(e.src.charCodeAt(a));)a++;return e.pos=a,!0},SE=_e.isSpace,kh=[],ax=0;ax<256;ax++)kh.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){kh[t.charCodeAt(0)]=1});var PE=function(e,n){var r,i,o,a,O,l=e.pos,s=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=s))return!1;if(r=e.src.charCodeAt(l),r===10){for(n||e.push("hardbreak","br",0),l++;l<s&&(r=e.src.charCodeAt(l),!!SE(r));)l++;return e.pos=l,!0}return a=e.src[l],r>=55296&&r<=56319&&l+1<s&&(i=e.src.charCodeAt(l+1),i>=56320&&i<=57343&&(a+=e.src[l+1],l++)),o="\\"+a,n||(O=e.push("text_special","",0),r<256&&kh[r]!==0?O.content=a:O.content=o,O.markup=o,O.info="escape"),e.pos=l+1,!0},xE=function(e,n){var r,i,o,a,O,l,s,c,u=e.pos,f=e.src.charCodeAt(u);if(f!==96)return!1;for(r=u,u++,i=e.posMax;u<i&&e.src.charCodeAt(u)===96;)u++;if(o=e.src.slice(r,u),s=o.length,e.backticksScanned&&(e.backticks[s]||0)<=r)return n||(e.pending+=o),e.pos+=s,!0;for(O=l=u;(O=e.src.indexOf("`",l))!==-1;){for(l=O+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(c=l-O,c===s)return n||(a=e.push("code_inline","code",0),a.markup=o,a.content=e.src.slice(u,O).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[c]=O}return e.backticksScanned=!0,n||(e.pending+=o),e.pos+=s,!0},tc={};tc.tokenize=function(e,n){var r,i,o,a,O,l=e.pos,s=e.src.charCodeAt(l);if(n||s!==126||(i=e.scanDelims(e.pos,!0),a=i.length,O=String.fromCharCode(s),a<2))return!1;for(a%2&&(o=e.push("text","",0),o.content=O,a--),r=0;r<a;r+=2)o=e.push("text","",0),o.content=O+O,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Ox(t,e){var n,r,i,o,a,O=[],l=e.length;for(n=0;n<l;n++)i=e[n],i.marker===126&&i.end!==-1&&(o=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[o.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&O.push(o.token-1));for(;O.length;){for(n=O.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}tc.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Ox(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Ox(e,r[n].delimiters)};var nc={};nc.tokenize=function(e,n){var r,i,o,a=e.pos,O=e.src.charCodeAt(a);if(n||O!==95&&O!==42)return!1;for(i=e.scanDelims(e.pos,O===42),r=0;r<i.length;r++)o=e.push("text","",0),o.content=String.fromCharCode(O),e.delimiters.push({marker:O,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function lx(t,e){var n,r,i,o,a,O,l=e.length;for(n=l-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],O=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=t.tokens[r.token],o.type=O?"strong_open":"em_open",o.tag=O?"strong":"em",o.nesting=1,o.markup=O?a+a:a,o.content="",o=t.tokens[i.token],o.type=O?"strong_close":"em_close",o.tag=O?"strong":"em",o.nesting=-1,o.markup=O?a+a:a,o.content="",O&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}nc.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(lx(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&lx(e,r[n].delimiters)};var kE=_e.normalizeReference,wh=_e.isSpace,wE=function(e,n){var r,i,o,a,O,l,s,c,u,f="",d="",p=e.pos,m=e.posMax,$=e.pos,Q=!0;if(e.src.charCodeAt(e.pos)!==91||(O=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(l=a+1,l<m&&e.src.charCodeAt(l)===40){for(Q=!1,l++;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);if(l>=m)return!1;if($=l,s=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),s.ok){for(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?l=s.pos:f="",$=l;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);if(s=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&$!==l&&s.ok)for(d=s.str,l=s.pos;l<m&&(i=e.src.charCodeAt(l),!(!wh(i)&&i!==10));l++);}(l>=m||e.src.charCodeAt(l)!==41)&&(Q=!0),l++}if(Q){if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?($=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?o=e.src.slice($,l++):l=a+1):l=a+1,o||(o=e.src.slice(O,a)),c=e.env.references[kE(o)],!c)return e.pos=p,!1;f=c.href,d=c.title}return n||(e.pos=O,e.posMax=a,u=e.push("link_open","a",1),u.attrs=r=[["href",f]],d&&r.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,u=e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0},vE=_e.normalizeReference,vh=_e.isSpace,XE=function(e,n){var r,i,o,a,O,l,s,c,u,f,d,p,m,$="",Q=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,O=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),O<0))return!1;if(s=O+1,s<y&&e.src.charCodeAt(s)===40){for(s++;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);if(s>=y)return!1;for(m=s,u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),u.ok&&($=e.md.normalizeLink(u.str),e.md.validateLink($)?s=u.pos:$=""),m=s;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&m!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(i=e.src.charCodeAt(s),!(!vh(i)&&i!==10));s++);else f="";if(s>=y||e.src.charCodeAt(s)!==41)return e.pos=Q,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<y&&e.src.charCodeAt(s)===91?(m=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?a=e.src.slice(m,s++):s=O+1):s=O+1,a||(a=e.src.slice(l,O)),c=e.env.references[vE(a)],!c)return e.pos=Q,!1;$=c.href,f=c.title}return n||(o=e.src.slice(l,O),e.md.inline.parse(o,e.md,e.env,p=[]),d=e.push("image","img",0),d.attrs=r=[["src",$],["alt",""]],d.children=p,d.content=o,f&&r.push(["title",f])),e.pos=s,e.posMax=y,!0},_E=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,TE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,RE=function(e,n){var r,i,o,a,O,l,s=e.pos;if(e.src.charCodeAt(s)!==60)return!1;for(O=e.pos,l=e.posMax;;){if(++s>=l||(a=e.src.charCodeAt(s),a===60))return!1;if(a===62)break}return r=e.src.slice(O+1,s),TE.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):_E.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):!1},qE=Hs.HTML_TAG_RE;function WE(t){return/^<a[>\s]/i.test(t)}function zE(t){return/^<\/a\s*>/i.test(t)}function UE(t){var e=t|32;return e>=97&&e<=122}var ZE=function(e,n){var r,i,o,a,O=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(O)!==60||O+2>=o)||(r=e.src.charCodeAt(O+1),r!==33&&r!==63&&r!==47&&!UE(r))||(i=e.src.slice(O).match(qE),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=e.src.slice(O,O+i[0].length),WE(a.content)&&e.linkLevel++,zE(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},sx=vP,YE=_e.has,VE=_e.isValidEntityCode,cx=_e.fromCodePoint,EE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,CE=/^&([a-z][a-z0-9]{1,31});/i,AE=function(e,n){var r,i,o,a,O=e.pos,l=e.posMax;if(e.src.charCodeAt(O)!==38||O+1>=l)return!1;if(r=e.src.charCodeAt(O+1),r===35){if(o=e.src.slice(O).match(EE),o)return n||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0),a.content=VE(i)?cx(i):cx(65533),a.markup=o[0],a.info="entity"),e.pos+=o[0].length,!0}else if(o=e.src.slice(O).match(CE),o&&YE(sx,o[1]))return n||(a=e.push("text_special","",0),a.content=sx[o[1]],a.markup=o[0],a.info="entity"),e.pos+=o[0].length,!0;return!1};function ux(t,e){var n,r,i,o,a,O,l,s,c={},u=e.length;if(u){var f=0,d=-2,p=[];for(n=0;n<u;n++)if(i=e[n],p.push(0),(e[f].marker!==i.marker||d!==i.token-1)&&(f=n),d=i.token,i.length=i.length||0,!!i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],r=f-p[f]-1,O=r;r>a;r-=p[r]+1)if(o=e[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){s=r>0&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+s,p[r]=s,i.open=!1,o.end=n,o.close=!1,O=-1,d=-2;break}O!==-1&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=O)}}}var jE=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(ux(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&ux(e,r[n].delimiters)},IE=function(e){var n,r,i=0,o=e.tokens,a=e.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},Xh=bh,fx=_e.isWhiteSpace,dx=_e.isPunctChar,hx=_e.isMdAsciiPunct;function vO(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}vO.prototype.pushPending=function(){var t=new Xh("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},vO.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Xh(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},vO.prototype.scanDelims=function(t,e){var n=t,r,i,o,a,O,l,s,c,u,f=!0,d=!0,p=this.posMax,m=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<p&&this.src.charCodeAt(n)===m;)n++;return o=n-t,i=n<p?this.src.charCodeAt(n):32,s=hx(r)||dx(String.fromCharCode(r)),u=hx(i)||dx(String.fromCharCode(i)),l=fx(r),c=fx(i),c?f=!1:u&&(l||s||(f=!1)),l?d=!1:s&&(c||u||(d=!1)),e?(a=f,O=d):(a=f&&(!d||s),O=d&&(!f||u)),{can_open:a,can_close:O,length:o}},vO.prototype.Token=Xh;var GE=vO,px=Qh,_h=[["text",gE],["linkify",QE],["newline",yE],["escape",PE],["backticks",xE],["strikethrough",tc.tokenize],["emphasis",nc.tokenize],["link",wE],["image",XE],["autolink",RE],["html_inline",ZE],["entity",AE]],Th=[["balance_pairs",jE],["strikethrough",tc.postProcess],["emphasis",nc.postProcess],["fragments_join",IE]];function XO(){var t;for(this.ruler=new px,t=0;t<_h.length;t++)this.ruler.push(_h[t][0],_h[t][1]);for(this.ruler2=new px,t=0;t<Th.length;t++)this.ruler2.push(Th[t][0],Th[t][1])}XO.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,O=t.cache;if(typeof O[r]<"u"){t.pos=O[r];return}if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,O[r]=t.pos},XO.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},XO.prototype.parse=function(t,e,n,r){var i,o,a,O=new this.State(t,e,n,r);for(this.tokenize(O),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](O)},XO.prototype.State=GE;var DE=XO,Rh,mx;function NE(){return mx||(mx=1,Rh=function(t){var e={};t=t||{},e.src_Any=ZP().source,e.src_Cc=VP().source,e.src_Z=AP().source,e.src_P=hh.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Rh}function qh(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function rc(t){return Object.prototype.toString.call(t)}function LE(t){return rc(t)==="[object String]"}function ME(t){return rc(t)==="[object Object]"}function BE(t){return rc(t)==="[object RegExp]"}function gx(t){return rc(t)==="[object Function]"}function FE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var $x={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function HE(t){return Object.keys(t||{}).reduce(function(e,n){return e||$x.hasOwnProperty(n)},!1)}var KE={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},JE="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",e2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function t2(t){t.__index__=-1,t.__text_cache__=""}function n2(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Qx(){return function(t,e){e.normalize(t)}}function ic(t){var e=t.re=NE()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(JE),n.push(e.src_xn),e.src_tlds=n.join("|");function r(O){return O.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(O,l){throw new Error('(LinkifyIt) Invalid schema "'+O+'": '+l)}Object.keys(t.__schemas__).forEach(function(O){var l=t.__schemas__[O];if(l!==null){var s={validate:null,link:null};if(t.__compiled__[O]=s,ME(l)){BE(l.validate)?s.validate=n2(l.validate):gx(l.validate)?s.validate=l.validate:o(O,l),gx(l.normalize)?s.normalize=l.normalize:l.normalize?o(O,l):s.normalize=Qx();return}if(LE(l)){i.push(O);return}o(O,l)}}),i.forEach(function(O){t.__compiled__[t.__schemas__[O]]&&(t.__compiled__[O].validate=t.__compiled__[t.__schemas__[O]].validate,t.__compiled__[O].normalize=t.__compiled__[t.__schemas__[O]].normalize)}),t.__compiled__[""]={validate:null,normalize:Qx()};var a=Object.keys(t.__compiled__).filter(function(O){return O.length>0&&t.__compiled__[O]}).map(FE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),t2(t)}function r2(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function Wh(t,e){var n=new r2(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function cn(t,e){if(!(this instanceof cn))return new cn(t,e);e||HE(t)&&(e=t,t={}),this.__opts__=qh({},$x,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=qh({},KE,t),this.__compiled__={},this.__tlds__=e2,this.__tlds_replaced__=!1,this.re={},ic(this)}cn.prototype.add=function(e,n){return this.__schemas__[e]=n,ic(this),this},cn.prototype.set=function(e){return this.__opts__=qh(this.__opts__,e),this},cn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,i,o,a,O,l,s,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,O=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&O>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=O))),this.__index__>=0},cn.prototype.pretest=function(e){return this.re.pretest.test(e)},cn.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},cn.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Wh(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)r.push(Wh(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},cn.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Wh(this,0)):null},cn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),ic(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ic(this),this)},cn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},cn.prototype.onCompile=function(){};var i2=cn;const Oa=2147483647,Pr=36,zh=1,_O=26,o2=38,a2=700,bx=72,yx=128,Sx="-",O2=/^xn--/,l2=/[^\0-\x7F]/,s2=/[\x2E\u3002\uFF0E\uFF61]/g,c2={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Uh=Pr-zh,xr=Math.floor,Zh=String.fromCharCode;function yi(t){throw new RangeError(c2[t])}function u2(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Px(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(s2,".");const i=t.split("."),o=u2(i,e).join(".");return r+o}function Yh(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const xx=t=>String.fromCodePoint(...t),f2=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Pr},kx=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},wx=function(t,e,n){let r=0;for(t=n?xr(t/a2):t>>1,t+=xr(t/e);t>Uh*_O>>1;r+=Pr)t=xr(t/Uh);return xr(r+(Uh+1)*t/(t+o2))},Vh=function(t){const e=[],n=t.length;let r=0,i=yx,o=bx,a=t.lastIndexOf(Sx);a<0&&(a=0);for(let O=0;O<a;++O)t.charCodeAt(O)>=128&&yi("not-basic"),e.push(t.charCodeAt(O));for(let O=a>0?a+1:0;O<n;){const l=r;for(let c=1,u=Pr;;u+=Pr){O>=n&&yi("invalid-input");const f=f2(t.charCodeAt(O++));f>=Pr&&yi("invalid-input"),f>xr((Oa-r)/c)&&yi("overflow"),r+=f*c;const d=u<=o?zh:u>=o+_O?_O:u-o;if(f<d)break;const p=Pr-d;c>xr(Oa/p)&&yi("overflow"),c*=p}const s=e.length+1;o=wx(r-l,s,l==0),xr(r/s)>Oa-i&&yi("overflow"),i+=xr(r/s),r%=s,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Eh=function(t){const e=[];t=Yh(t);const n=t.length;let r=yx,i=0,o=bx;for(const l of t)l<128&&e.push(Zh(l));const a=e.length;let O=a;for(a&&e.push(Sx);O<n;){let l=Oa;for(const c of t)c>=r&&c<l&&(l=c);const s=O+1;l-r>xr((Oa-i)/s)&&yi("overflow"),i+=(l-r)*s,r=l;for(const c of t)if(c<r&&++i>Oa&&yi("overflow"),c===r){let u=i;for(let f=Pr;;f+=Pr){const d=f<=o?zh:f>=o+_O?_O:f-o;if(u<d)break;const p=u-d,m=Pr-d;e.push(Zh(kx(d+p%m,0))),u=xr(p/m)}e.push(Zh(kx(u,0))),o=wx(i,s,O===a),i=0,++O}++i,++r}return e.join("")},vx=function(t){return Px(t,function(e){return O2.test(e)?Vh(e.slice(4).toLowerCase()):e})},Xx=function(t){return Px(t,function(e){return l2.test(e)?"xn--"+Eh(e):e})},d2=UY(Object.freeze(Object.defineProperty({__proto__:null,decode:Vh,default:{version:"2.1.0",ucs2:{decode:Yh,encode:xx},decode:Vh,encode:Eh,toASCII:Xx,toUnicode:vx},encode:Eh,toASCII:Xx,toUnicode:vx,ucs2decode:Yh,ucs2encode:xx},Symbol.toStringTag,{value:"Module"})));var h2={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},p2={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},m2={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},TO=_e,g2=Ms,$2=dV,Q2=YV,b2=pE,y2=DE,S2=i2,no=ra,_x=d2,P2={default:h2,zero:p2,commonmark:m2},x2=/^(vbscript|javascript|file|data):/,k2=/^data:image\/(gif|png|jpeg|webp);/;function w2(t){var e=t.trim().toLowerCase();return x2.test(e)?!!k2.test(e):!0}var Tx=["http:","https:","mailto:"];function v2(t){var e=no.parse(t,!0);if(e.hostname&&(!e.protocol||Tx.indexOf(e.protocol)>=0))try{e.hostname=_x.toASCII(e.hostname)}catch{}return no.encode(no.format(e))}function X2(t){var e=no.parse(t,!0);if(e.hostname&&(!e.protocol||Tx.indexOf(e.protocol)>=0))try{e.hostname=_x.toUnicode(e.hostname)}catch{}return no.decode(no.format(e),no.decode.defaultChars+"%")}function Xn(t,e){if(!(this instanceof Xn))return new Xn(t,e);e||TO.isString(t)||(e=t||{},t="default"),this.inline=new y2,this.block=new b2,this.core=new Q2,this.renderer=new $2,this.linkify=new S2,this.validateLink=w2,this.normalizeLink=v2,this.normalizeLinkText=X2,this.utils=TO,this.helpers=TO.assign({},g2),this.options={},this.configure(t),e&&this.set(e)}Xn.prototype.set=function(t){return TO.assign(this.options,t),this},Xn.prototype.configure=function(t){var e=this,n;if(TO.isString(t)&&(n=t,t=P2[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},Xn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Xn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Xn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Xn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Xn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Xn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Xn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var _2=Xn,T2=_2;const R2=dh(T2),Rx=new Set([!0,!1,"alt","title"]);function qx(t,e){return(Array.isArray(t)?t:[]).filter(([n])=>n!==e)}function Wx(t,e){t&&t.attrs&&(t.attrs=qx(t.attrs,e))}function q2(t,e){if(!Rx.has(t))throw new TypeError(`figcaption must be one of: ${[...Rx]}.`);if(t==="alt")return e.content;const n=e.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Wx(e,"title"),n[1]):void 0}function W2(t,e){e=e||{},t.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let i=1,o=n.tokens.length;i<o-1;++i){const a=n.tokens[i];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[s,c,u]=a.children;if(s.type!=="link_open"||c.type!=="image"||u.type!=="link_close")continue}if(i!==0&&n.tokens[i-1].type!=="paragraph_open"||i!==o-1&&n.tokens[i+1].type!=="paragraph_close")continue;const O=n.tokens[i-1];let l;if(O.type="figure_open",O.tag="figure",n.tokens[i+1].type="figure_close",n.tokens[i+1].tag="figure",e.dataType&&n.tokens[i-1].attrPush(["data-type","image"]),e.link&&a.children.length===1){[l]=a.children;const s=new n.Token("link_open","a",1);s.attrPush(["href",l.attrGet("src")]),a.children.unshift(s),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],e.figcaption){const s=q2(e.figcaption,l);if(s){const[c]=t.parseInline(s,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...c.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=qx(l.attrs,"title"))}}if(e.copyAttrs&&l.attrs){const s=e.copyAttrs===!0?"":e.copyAttrs;O.attrs=l.attrs.filter(([c])=>c.match(s)).map(c=>Array.from(c))}if(e.tabindex&&(n.tokens[i-1].attrPush(["tabindex",r]),r++),e.lazy&&(l.attrs.some(([s])=>s==="loading")||l.attrs.push(["loading","lazy"])),e.async&&(l.attrs.some(([s])=>s==="decoding")||l.attrs.push(["decoding","async"])),e.classes&&typeof e.classes=="string"){let s=!1;for(let c=0,u=l.attrs.length;c<u&&!s;c++){const f=l.attrs[c];f[0]==="class"&&(f[1]=`${f[1]} ${e.classes}`,s=!0)}s||l.attrs.push(["class",e.classes])}if(e.removeSrc){const s=l.attrs.find(([c])=>c==="src");l.attrs.push(["data-src",s[1]]),Wx(l,"src")}}})}var Ch=!0,zx=!1,Ux=!1,z2=function(t,e){e&&(Ch=!e.enabled,zx=!!e.label,Ux=!!e.labelAfter),t.core.ruler.after("inline","github-task-lists",function(n){for(var r=n.tokens,i=2;i<r.length;i++)Z2(r,i)&&(Y2(r[i],n.Token),Zx(r[i-2],"class","task-list-item"+(Ch?"":" enabled")),Zx(r[U2(r,i-2)],"class","contains-task-list"))})};function Zx(t,e,n){var r=t.attrIndex(e),i=[e,n];r<0?t.attrPush(i):t.attrs[r]=i}function U2(t,e){for(var n=t[e].level-1,r=e-1;r>=0;r--)if(t[r].level===n)return r;return-1}function Z2(t,e){return j2(t[e])&&I2(t[e-1])&&G2(t[e-2])&&D2(t[e])}function Y2(t,e){if(t.children.unshift(V2(t,e)),t.children[1].content=t.children[1].content.slice(3),t.content=t.content.slice(3),zx)if(Ux){t.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);t.children[0].content=t.children[0].content.slice(0,-1)+' id="'+n+'">',t.children.push(A2(t.content,n,e))}else t.children.unshift(E2(e)),t.children.push(C2(e))}function V2(t,e){var n=new e("html_inline","",0),r=Ch?' disabled="" ':"";return t.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+r+'type="checkbox">':(t.content.indexOf("[x] ")===0||t.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+r+'type="checkbox">'),n}function E2(t){var e=new t("html_inline","",0);return e.content="<label>",e}function C2(t){var e=new t("html_inline","",0);return e.content="</label>",e}function A2(t,e,n){var r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+e+'">'+t+"</label>",r.attrs=[{for:e}],r}function j2(t){return t.type==="inline"}function I2(t){return t.type==="paragraph_open"}function G2(t){return t.type==="list_item_open"}function D2(t){return t.content.indexOf("[ ] ")===0||t.content.indexOf("[x] ")===0||t.content.indexOf("[X] ")===0}const N2=dh(z2),L2=t=>{var o;const e=(o=Ve.editorExtensions)==null?void 0:o.highlight,n=e==null?void 0:e.instance,r=g.inject("highlight"),i=g.shallowRef(n);return g.onMounted(()=>{if(!t.noHighlight&&!i.value){const a=document.createElement("script");a.src=r.value.js,a.onload=()=>{i.value=window.hljs},a.id=`${W}-hljs`,An(a,"hljs");const O=document.createElement("link");O.rel="stylesheet",O.href=r.value.css,O.id=`${W}-hlCss`,An(O)}}),g.watch(()=>r.value.css,a=>{DT(`${W}-hlCss`,"href",a)}),i},RO=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Yx=new Set,M2=(t,e,n,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},B2=t=>!Yx.has(t),Si=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Vx=t=>Si(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?oc:null:null;class oc extends Array{constructor(e){super(e),this.fill(0)}}const _a=class{constructor(e,n){je(this,"heap");je(this,"length");if(!T(_a,Xa))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}static create(e){const n=Vx(e);if(!n)return[];ce(_a,Xa,!0);const r=new _a(e,n);return ce(_a,Xa,!1),r}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};let ac=_a;Xa=new WeakMap,me(ac,Xa,!1);const lg=class{constructor(e){me(this,Pl);me(this,Vu);me(this,Wr);me(this,zr);me(this,wl);me(this,qa);me(this,Wa);me(this,Ae);me(this,vl);me(this,vo);me(this,nr,void 0);me(this,$n,void 0);me(this,Rr,void 0);me(this,rr,void 0);me(this,Ta,void 0);je(this,"ttl");je(this,"ttlResolution");je(this,"ttlAutopurge");je(this,"updateAgeOnGet");je(this,"updateAgeOnHas");je(this,"allowStale");je(this,"noDisposeOnSet");je(this,"noUpdateTTL");je(this,"maxEntrySize");je(this,"sizeCalculation");je(this,"noDeleteOnFetchRejection");je(this,"noDeleteOnStaleGet");je(this,"allowStaleOnFetchAbort");je(this,"allowStaleOnFetchRejection");je(this,"ignoreFetchAbort");me(this,gt,void 0);me(this,ir,void 0);me(this,$t,void 0);me(this,Ne,void 0);me(this,pe,void 0);me(this,Bt,void 0);me(this,Qn,void 0);me(this,Ct,void 0);me(this,wt,void 0);me(this,or,void 0);me(this,Tt,void 0);me(this,Jr,void 0);me(this,ei,void 0);me(this,ar,void 0);me(this,qr,void 0);me(this,Zi,void 0);me(this,rn,void 0);me(this,ko,()=>{});me(this,ti,()=>{});me(this,xl,()=>{});me(this,bn,()=>!1);me(this,wo,e=>{});me(this,Ra,(e,n,r)=>{});me(this,kl,(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:O,allowStale:l,dispose:s,disposeAfter:c,noDisposeOnSet:u,noUpdateTTL:f,maxSize:d=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:$,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:R,ignoreFetchAbort:x}=e;if(n!==0&&!Si(n))throw new TypeError("max option must be a nonnegative integer");const w=n?Vx(n):Array;if(!w)throw new Error("invalid max value: "+n);if(ce(this,nr,n),ce(this,$n,d),this.maxEntrySize=p||T(this,$n),this.sizeCalculation=m,this.sizeCalculation){if(!T(this,$n)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if($!==void 0&&typeof $!="function")throw new TypeError("fetchMethod must be a function if specified");if(ce(this,Ta,$),ce(this,Zi,!!$),ce(this,$t,new Map),ce(this,Ne,new Array(n).fill(void 0)),ce(this,pe,new Array(n).fill(void 0)),ce(this,Bt,new w(n)),ce(this,Qn,new w(n)),ce(this,Ct,0),ce(this,wt,0),ce(this,or,ac.create(n)),ce(this,gt,0),ce(this,ir,0),typeof s=="function"&&ce(this,Rr,s),typeof c=="function"?(ce(this,rr,c),ce(this,Tt,[])):(ce(this,rr,void 0),ce(this,Tt,void 0)),ce(this,qr,!!T(this,Rr)),ce(this,rn,!!T(this,rr)),this.noDisposeOnSet=!!u,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!Q,this.allowStaleOnFetchRejection=!!P,this.allowStaleOnFetchAbort=!!R,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(T(this,$n)!==0&&!Si(T(this,$n)))throw new TypeError("maxSize must be a positive integer if specified");if(!Si(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ae(this,Vu,TT).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!O,this.ttlResolution=Si(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Si(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ae(this,Pl,mg).call(this)}if(T(this,nr)===0&&this.ttl===0&&T(this,$n)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!T(this,nr)&&!T(this,$n)){const v="LRU_CACHE_UNBOUNDED";B2(v)&&(Yx.add(v),M2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",v,lg))}}static unsafeExposeInternals(e){return{starts:T(e,ei),ttls:T(e,ar),sizes:T(e,Jr),keyMap:T(e,$t),keyList:T(e,Ne),valList:T(e,pe),next:T(e,Bt),prev:T(e,Qn),get head(){return T(e,Ct)},get tail(){return T(e,wt)},free:T(e,or),isBackgroundFetch:n=>{var r;return ae(r=e,Ae,Fe).call(r,n)},backgroundFetch:(n,r,i,o)=>{var a;return ae(a=e,Wa,Mu).call(a,n,r,i,o)},moveToTail:n=>{var r;return ae(r=e,vo,Rl).call(r,n)},indexes:n=>{var r;return ae(r=e,Wr,Ei).call(r,n)},rindexes:n=>{var r;return ae(r=e,zr,Ci).call(r,n)},isStale:n=>{var r;return T(r=e,bn).call(r,n)}}}get max(){return T(this,nr)}get maxSize(){return T(this,$n)}get calculatedSize(){return T(this,ir)}get size(){return T(this,gt)}get fetchMethod(){return T(this,Ta)}get dispose(){return T(this,Rr)}get disposeAfter(){return T(this,rr)}getRemainingTTL(e){return T(this,$t).has(e)?1/0:0}*entries(){for(const e of ae(this,Wr,Ei).call(this))T(this,pe)[e]!==void 0&&T(this,Ne)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield[T(this,Ne)[e],T(this,pe)[e]])}*rentries(){for(const e of ae(this,zr,Ci).call(this))T(this,pe)[e]!==void 0&&T(this,Ne)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield[T(this,Ne)[e],T(this,pe)[e]])}*keys(){for(const e of ae(this,Wr,Ei).call(this)){const n=T(this,Ne)[e];n!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield n)}}*rkeys(){for(const e of ae(this,zr,Ci).call(this)){const n=T(this,Ne)[e];n!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield n)}}*values(){for(const e of ae(this,Wr,Ei).call(this))T(this,pe)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield T(this,pe)[e])}*rvalues(){for(const e of ae(this,zr,Ci).call(this))T(this,pe)[e]!==void 0&&!ae(this,Ae,Fe).call(this,T(this,pe)[e])&&(yield T(this,pe)[e])}[Symbol.iterator](){return this.entries()}find(e,n={}){for(const r of ae(this,Wr,Ei).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&e(o,T(this,Ne)[r],this))return this.get(T(this,Ne)[r],n)}}forEach(e,n=this){for(const r of ae(this,Wr,Ei).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,T(this,Ne)[r],this)}}rforEach(e,n=this){for(const r of ae(this,zr,Ci).call(this)){const i=T(this,pe)[r],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,T(this,Ne)[r],this)}}purgeStale(){let e=!1;for(const n of ae(this,zr,Ci).call(this,{allowStale:!0}))T(this,bn).call(this,n)&&(this.delete(T(this,Ne)[n]),e=!0);return e}dump(){const e=[];for(const n of ae(this,Wr,Ei).call(this,{allowStale:!0})){const r=T(this,Ne)[n],i=T(this,pe)[n],o=ae(this,Ae,Fe).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||r===void 0)continue;const a={value:o};if(T(this,ar)&&T(this,ei)){a.ttl=T(this,ar)[n];const O=RO.now()-T(this,ei)[n];a.start=Math.floor(Date.now()-O)}T(this,Jr)&&(a.size=T(this,Jr)[n]),e.unshift([r,a])}return e}load(e){this.clear();for(const[n,r]of e){if(r.start){const i=Date.now()-r.start;r.start=RO.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){var f,d,p;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:O=this.sizeCalculation,status:l}=r;let{noUpdateTTL:s=this.noUpdateTTL}=r;const c=T(this,kl).call(this,e,n,r.size||0,O);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let u=T(this,gt)===0?void 0:T(this,$t).get(e);if(u===void 0)u=T(this,gt)===0?T(this,wt):T(this,or).length!==0?T(this,or).pop():T(this,gt)===T(this,nr)?ae(this,qa,Lu).call(this,!1):T(this,gt),T(this,Ne)[u]=e,T(this,pe)[u]=n,T(this,$t).set(e,u),T(this,Bt)[T(this,wt)]=u,T(this,Qn)[u]=T(this,wt),ce(this,wt,u),Nu(this,gt)._++,T(this,Ra).call(this,u,c,l),l&&(l.set="add"),s=!1;else{ae(this,vo,Rl).call(this,u);const m=T(this,pe)[u];if(n!==m){if(T(this,Zi)&&ae(this,Ae,Fe).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(T(this,qr)&&((f=T(this,Rr))==null||f.call(this,m,e,"set")),T(this,rn)&&((d=T(this,Tt))==null||d.push([m,e,"set"]))),T(this,wo).call(this,u),T(this,Ra).call(this,u,c,l),T(this,pe)[u]=n,l){l.set="replace";const $=m&&ae(this,Ae,Fe).call(this,m)?m.__staleWhileFetching:m;$!==void 0&&(l.oldValue=$)}}else l&&(l.set="update")}if(i!==0&&!T(this,ar)&&ae(this,Pl,mg).call(this),T(this,ar)&&(s||T(this,xl).call(this,u,i,o),l&&T(this,ti).call(this,l,u)),!a&&T(this,rn)&&T(this,Tt)){const m=T(this,Tt);let $;for(;$=m==null?void 0:m.shift();)(p=T(this,rr))==null||p.call(this,...$)}return this}pop(){var e;try{for(;T(this,gt);){const n=T(this,pe)[T(this,Ct)];if(ae(this,qa,Lu).call(this,!0),ae(this,Ae,Fe).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(T(this,rn)&&T(this,Tt)){const n=T(this,Tt);let r;for(;r=n==null?void 0:n.shift();)(e=T(this,rr))==null||e.call(this,...r)}}}has(e,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,o=T(this,$t).get(e);if(o!==void 0){const a=T(this,pe)[o];if(ae(this,Ae,Fe).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(T(this,bn).call(this,o))i&&(i.has="stale",T(this,ti).call(this,i,o));else return r&&T(this,ko).call(this,o),i&&(i.has="hit",T(this,ti).call(this,i,o)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){const{allowStale:r=this.allowStale}=n,i=T(this,$t).get(e);if(i!==void 0&&(r||!T(this,bn).call(this,i))){const o=T(this,pe)[i];return ae(this,Ae,Fe).call(this,o)?o.__staleWhileFetching:o}}async fetch(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:O=this.noDisposeOnSet,size:l=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:$=!1,status:Q,signal:y}=n;if(!T(this,Zi))return Q&&(Q.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:Q});const P={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:O,size:l,sizeCalculation:s,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:Q,signal:y};let R=T(this,$t).get(e);if(R===void 0){Q&&(Q.fetch="miss");const x=ae(this,Wa,Mu).call(this,e,R,P,m);return x.__returned=x}else{const x=T(this,pe)[R];if(ae(this,Ae,Fe).call(this,x)){const z=r&&x.__staleWhileFetching!==void 0;return Q&&(Q.fetch="inflight",z&&(Q.returnedStale=!0)),z?x.__staleWhileFetching:x.__returned=x}const w=T(this,bn).call(this,R);if(!$&&!w)return Q&&(Q.fetch="hit"),ae(this,vo,Rl).call(this,R),i&&T(this,ko).call(this,R),Q&&T(this,ti).call(this,Q,R),x;const v=ae(this,Wa,Mu).call(this,e,R,P,m),k=v.__staleWhileFetching!==void 0&&r;return Q&&(Q.fetch=w?"stale":"refresh",k&&w&&(Q.returnedStale=!0)),k?v.__staleWhileFetching:v.__returned=v}}get(e,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,O=T(this,$t).get(e);if(O!==void 0){const l=T(this,pe)[O],s=ae(this,Ae,Fe).call(this,l);return a&&T(this,ti).call(this,a,O),T(this,bn).call(this,O)?(a&&(a.get="stale"),s?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||this.delete(e),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),s?l.__staleWhileFetching:(ae(this,vo,Rl).call(this,O),i&&T(this,ko).call(this,O),l))}else a&&(a.get="miss")}delete(e){var r,i,o,a;let n=!1;if(T(this,gt)!==0){const O=T(this,$t).get(e);if(O!==void 0)if(n=!0,T(this,gt)===1)this.clear();else{T(this,wo).call(this,O);const l=T(this,pe)[O];ae(this,Ae,Fe).call(this,l)?l.__abortController.abort(new Error("deleted")):(T(this,qr)||T(this,rn))&&(T(this,qr)&&((r=T(this,Rr))==null||r.call(this,l,e,"delete")),T(this,rn)&&((i=T(this,Tt))==null||i.push([l,e,"delete"]))),T(this,$t).delete(e),T(this,Ne)[O]=void 0,T(this,pe)[O]=void 0,O===T(this,wt)?ce(this,wt,T(this,Qn)[O]):O===T(this,Ct)?ce(this,Ct,T(this,Bt)[O]):(T(this,Bt)[T(this,Qn)[O]]=T(this,Bt)[O],T(this,Qn)[T(this,Bt)[O]]=T(this,Qn)[O]),Nu(this,gt)._--,T(this,or).push(O)}}if(T(this,rn)&&((o=T(this,Tt))!=null&&o.length)){const O=T(this,Tt);let l;for(;l=O==null?void 0:O.shift();)(a=T(this,rr))==null||a.call(this,...l)}return n}clear(){var e,n,r;for(const i of ae(this,zr,Ci).call(this,{allowStale:!0})){const o=T(this,pe)[i];if(ae(this,Ae,Fe).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=T(this,Ne)[i];T(this,qr)&&((e=T(this,Rr))==null||e.call(this,o,a,"delete")),T(this,rn)&&((n=T(this,Tt))==null||n.push([o,a,"delete"]))}}if(T(this,$t).clear(),T(this,pe).fill(void 0),T(this,Ne).fill(void 0),T(this,ar)&&T(this,ei)&&(T(this,ar).fill(0),T(this,ei).fill(0)),T(this,Jr)&&T(this,Jr).fill(0),ce(this,Ct,0),ce(this,wt,0),T(this,or).length=0,ce(this,ir,0),ce(this,gt,0),T(this,rn)&&T(this,Tt)){const i=T(this,Tt);let o;for(;o=i==null?void 0:i.shift();)(r=T(this,rr))==null||r.call(this,...o)}}};let Ah=lg;nr=new WeakMap,$n=new WeakMap,Rr=new WeakMap,rr=new WeakMap,Ta=new WeakMap,gt=new WeakMap,ir=new WeakMap,$t=new WeakMap,Ne=new WeakMap,pe=new WeakMap,Bt=new WeakMap,Qn=new WeakMap,Ct=new WeakMap,wt=new WeakMap,or=new WeakMap,Tt=new WeakMap,Jr=new WeakMap,ei=new WeakMap,ar=new WeakMap,qr=new WeakMap,Zi=new WeakMap,rn=new WeakMap,Pl=new WeakSet,mg=function(){const e=new oc(T(this,nr)),n=new oc(T(this,nr));ce(this,ar,e),ce(this,ei,n),ce(this,xl,(o,a,O=RO.now())=>{if(n[o]=a!==0?O:0,e[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{T(this,bn).call(this,o)&&this.delete(T(this,Ne)[o])},a+1);l.unref&&l.unref()}}),ce(this,ko,o=>{n[o]=e[o]!==0?RO.now():0}),ce(this,ti,(o,a)=>{if(e[a]){const O=e[a],l=n[a];o.ttl=O,o.start=l,o.now=r||i(),o.remainingTTL=o.now+O-l}});let r=0;const i=()=>{const o=RO.now();if(this.ttlResolution>0){r=o;const a=setTimeout(()=>r=0,this.ttlResolution);a.unref&&a.unref()}return o};this.getRemainingTTL=o=>{const a=T(this,$t).get(o);return a===void 0?0:e[a]===0||n[a]===0?1/0:n[a]+e[a]-(r||i())},ce(this,bn,o=>e[o]!==0&&n[o]!==0&&(r||i())-n[o]>e[o])},ko=new WeakMap,ti=new WeakMap,xl=new WeakMap,bn=new WeakMap,Vu=new WeakSet,TT=function(){const e=new oc(T(this,nr));ce(this,ir,0),ce(this,Jr,e),ce(this,wo,n=>{ce(this,ir,T(this,ir)-e[n]),e[n]=0}),ce(this,kl,(n,r,i,o)=>{if(ae(this,Ae,Fe).call(this,r))return 0;if(!Si(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(r,n),!Si(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),ce(this,Ra,(n,r,i)=>{if(e[n]=r,T(this,$n)){const o=T(this,$n)-e[n];for(;T(this,ir)>o;)ae(this,qa,Lu).call(this,!0)}ce(this,ir,T(this,ir)+e[n]),i&&(i.entrySize=r,i.totalCalculatedSize=T(this,ir))})},wo=new WeakMap,Ra=new WeakMap,kl=new WeakMap,Wr=new WeakSet,Ei=function*({allowStale:e=this.allowStale}={}){if(T(this,gt))for(let n=T(this,wt);!(!ae(this,wl,gg).call(this,n)||((e||!T(this,bn).call(this,n))&&(yield n),n===T(this,Ct)));)n=T(this,Qn)[n]},zr=new WeakSet,Ci=function*({allowStale:e=this.allowStale}={}){if(T(this,gt))for(let n=T(this,Ct);!(!ae(this,wl,gg).call(this,n)||((e||!T(this,bn).call(this,n))&&(yield n),n===T(this,wt)));)n=T(this,Bt)[n]},wl=new WeakSet,gg=function(e){return e!==void 0&&T(this,$t).get(T(this,Ne)[e])===e},qa=new WeakSet,Lu=function(e){var o,a;const n=T(this,Ct),r=T(this,Ne)[n],i=T(this,pe)[n];return T(this,Zi)&&ae(this,Ae,Fe).call(this,i)?i.__abortController.abort(new Error("evicted")):(T(this,qr)||T(this,rn))&&(T(this,qr)&&((o=T(this,Rr))==null||o.call(this,i,r,"evict")),T(this,rn)&&((a=T(this,Tt))==null||a.push([i,r,"evict"]))),T(this,wo).call(this,n),e&&(T(this,Ne)[n]=void 0,T(this,pe)[n]=void 0,T(this,or).push(n)),T(this,gt)===1?(ce(this,Ct,ce(this,wt,0)),T(this,or).length=0):ce(this,Ct,T(this,Bt)[n]),T(this,$t).delete(r),Nu(this,gt)._--,n},Wa=new WeakSet,Mu=function(e,n,r,i){const o=n===void 0?void 0:T(this,pe)[n];if(ae(this,Ae,Fe).call(this,o))return o;const a=new AbortController,{signal:O}=r;O==null||O.addEventListener("abort",()=>a.abort(O.reason),{signal:a.signal});const l={signal:a.signal,options:r,context:i},s=(m,$=!1)=>{const{aborted:Q}=a.signal,y=r.ignoreFetchAbort&&m!==void 0;if(r.status&&(Q&&!$?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),Q&&!y&&!$)return u(a.signal.reason);const P=d;return T(this,pe)[n]===d&&(m===void 0?P.__staleWhileFetching?T(this,pe)[n]=P.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,m,l.options))),m},c=m=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=m),u(m)),u=m=>{const{aborted:$}=a.signal,Q=$&&r.allowStaleOnFetchAbort,y=Q||r.allowStaleOnFetchRejection,P=y||r.noDeleteOnFetchRejection,R=d;if(T(this,pe)[n]===d&&(!P||R.__staleWhileFetching===void 0?this.delete(e):Q||(T(this,pe)[n]=R.__staleWhileFetching)),y)return r.status&&R.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw m},f=(m,$)=>{var y;const Q=(y=T(this,Ta))==null?void 0:y.call(this,e,o,l);Q&&Q instanceof Promise&&Q.then(P=>m(P),$),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(m(),r.allowStaleOnFetchAbort&&(m=P=>s(P,!0)))})};r.status&&(r.status.fetchDispatched=!0);const d=new Promise(f).then(s,c),p=Object.assign(d,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(e,p,{...l.options,status:void 0}),n=T(this,$t).get(e)):T(this,pe)[n]=p,p},Ae=new WeakSet,Fe=function(e){if(!T(this,Zi))return!1;const n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof AbortController},vl=new WeakSet,$g=function(e,n){T(this,Qn)[n]=e,T(this,Bt)[e]=n},vo=new WeakSet,Rl=function(e){e!==T(this,wt)&&(e===T(this,Ct)?ce(this,Ct,T(this,Bt)[e]):ae(this,vl,$g).call(this,T(this,Qn)[e],T(this,Bt)[e]),ae(this,vl,$g).call(this,T(this,wt),e),ce(this,wt,e))};const F2=Ah,H2=t=>{const e=g.inject("theme"),{editorExtensions:n}=Ve,r=n==null?void 0:n.mermaid,i=g.shallowRef(r==null?void 0:r.instance),o=g.shallowRef(!1),a=new F2({max:1e3,ttl:6e5}),O=()=>{const s=i.value;!t.noMermaid&&s&&(s.initialize({startOnLoad:!1,theme:e.value==="dark"?"dark":"default"}),o.value=!o.value)};return g.watch(()=>e.value,()=>{a.clear(),O()}),g.onMounted(()=>{if(!t.noMermaid&&!(r!=null&&r.instance)){const s=(r==null?void 0:r.js)||WT;if(/\.mjs/.test(s))import(s).then(c=>{i.value=c.default,O()});else{const c=document.createElement("script");c.id=`${W}-mermaid`,c.src=s,c.onload=()=>{i.value=window.mermaid,O()},An(c,"mermaid")}}}),{mermaidRef:i,reRenderRef:o,replaceMermaid:()=>{g.nextTick(()=>{!t.noMermaid&&i.value&&document.querySelectorAll(`div.${W}-mermaid`).forEach(async c=>{let u=a.get(c.innerText);if(!u){const d=IT(),m=await(i.value.renderAsync||i.value.render)(d,c.innerText);u=typeof m=="string"?m:m.svg,a.set(c.innerText,u)}const f=document.createElement("p");f.className=`${W}-mermaid`,f.setAttribute("data-processed",""),f.innerHTML=u,c.dataset.line!==void 0&&(f.dataset.line=c.dataset.line),c.replaceWith(f)})})}}},K2=t=>{var i;const e=(i=Ve.editorExtensions)==null?void 0:i.katex,n=e==null?void 0:e.instance,r=g.shallowRef(n);return g.onMounted(()=>{if(!t.noKatex&&!r.value){const o=document.createElement("script");o.src=(e==null?void 0:e.js)||xg.js,o.onload=()=>{r.value=window.katex},o.id=`${W}-katex`;const a=document.createElement("link");a.rel="stylesheet",a.href=(e==null?void 0:e.css)||xg.css,a.id=`${W}-katexCss`,An(o,"katex"),An(a)}}),r},J2=(t,e)=>{const n=t.renderer.rules.fence.bind(t.renderer.rules);t.renderer.rules.fence=(r,i,o,a,O)=>{const l=r[i],s=l.content.trim();if(l.info==="mermaid"){let c;return r[i].map&&r[i].level===0&&(c=r[i].map[0],r[i].attrSet("data-line",String(c))),`<div class="${W}-mermaid" ${c!==void 0?"data-line="+c:""} data-mermaid-theme=${e.themeRef.value}>${s}</div>`}return n(r,i,o,a,O)}},Ex=(t,e)=>{let n=!0,r=!0;const i=t.posMax,o=e>0?t.src.charCodeAt(e-1):-1,a=e+1<=i?t.src.charCodeAt(e+1):-1;return(o===32||o===9||a>=48&&a<=57)&&(r=!1),(a===32||a===9)&&(n=!1),{can_open:n,can_close:r}},eC=(t,e)=>{let n,r,i,o;if(t.src[t.pos]!=="$")return!1;if(i=Ex(t,t.pos),!i.can_open)return e||(t.pending+="$"),t.pos+=1,!0;const a=t.pos+1;for(n=a;(n=t.src.indexOf("$",n))!==-1;){for(o=n-1;t.src[o]==="\\";)o-=1;if((n-o)%2==1)break;n+=1}return n===-1?(e||(t.pending+="$"),t.pos=a,!0):n-a===0?(e||(t.pending+="$$"),t.pos=a+1,!0):(i=Ex(t,n),i.can_close?(e||(r=t.push("math_inline","math",0),r.markup="$",r.content=t.src.slice(a,n)),t.pos=n+1,!0):(e||(t.pending+="$"),t.pos=a,!0))},tC=(t,e,n,r)=>{let i,o,a,O,l=!1,s=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(s+2>c||t.src.slice(s,s+2)!=="$$")return!1;if(s+=2,i=t.src.slice(s,c),r)return!0;for(i.trim().slice(-2)==="$$"&&(i=i.trim().slice(0,-2),l=!0),a=e;!l&&(a++,!(a>=n||(s=t.bMarks[a]+t.tShift[a],c=t.eMarks[a],s<c&&t.tShift[a]<t.blkIndent)));)t.src.slice(s,c).trim().slice(-2)==="$$"&&(O=t.src.slice(0,c).lastIndexOf("$$"),o=t.src.slice(s,O),l=!0);t.line=a+1;const u=t.push("math_block","math",0);return u.block=!0,u.content=(i&&i.trim()?i+`
108
108
  `:"")+t.getLines(e+1,a,t.tShift[e],!0)+(o&&o.trim()?o:""),u.map=[e,t.line],u.markup="$$",!0},nC=(t,e)=>{const n=i=>{if(e.katexRef.value){const o=e.katexRef.value.renderToString(i,{throwOnError:!1});return`<span class="${W}-katex-inline" data-processed>${o}</span>`}else return`<span class="${W}-katex-inline">${i}</span>`},r=(i,o)=>{if(e.katexRef.value){const a=e.katexRef.value.renderToString(i,{throwOnError:!1,displayMode:!0});return`<p class="${W}-katex-block" data-line=${o} data-processed>${a}</p>`}else return`<p class="${W}-katex-block" data-line=${o}>${i}</p>`};t.inline.ruler.after("escape","math_inline",eC),t.block.ruler.after("blockquote","math_block",tC,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.math_inline=(i,o)=>n(i[o].content),t.renderer.rules.math_block=(i,o)=>r(i[o].content,i[o].map[0])+`
109
109
  `},rC=(t,e)=>{e=e||{};const n=3,r=e.marker||"!",i=r.charCodeAt(0),o=r.length;let a="",O="";const l=(c,u,f,d,p)=>{const m=c[u];return m.type==="admonition_open"?(c[u].attrPush(["class",`${W}-admonition ${W}-admonition-${m.info}`]),c[u].attrSet("data-line",String(c[u].map[0]))):m.type==="admonition_title_open"&&c[u].attrPush(["class",`${W}-admonition-title`]),p.renderToken(c,u,f)},s=c=>{const u=c.trim().split(" ",2);O="",a=u[0],u.length>1&&(O=c.substring(a.length+2)),(O===""||!O)&&(O=a)};t.block.ruler.before("code","admonition",(c,u,f,d)=>{let p,m,$,Q=!1,y=c.bMarks[u]+c.tShift[u],P=c.eMarks[u];if(i!==c.src.charCodeAt(y))return!1;for(p=y+1;p<=P&&r[(p-y)%o]===c.src[p];p++);const R=Math.floor((p-y)/o);if(R!==n)return!1;p-=(p-y)%o;const x=c.src.slice(y,p),w=c.src.slice(p,P);if(s(w),d)return!0;for(m=u;m++,!(m>=f||(y=c.bMarks[m]+c.tShift[m],P=c.eMarks[m],y<P&&c.sCount[m]<c.blkIndent));)if(i===c.src.charCodeAt(y)&&!(c.sCount[m]-c.blkIndent>=4)){for(p=y+1;p<=P&&r[(p-y)%o]===c.src[p];p++);if(!(Math.floor((p-y)/o)<R)&&(p-=(p-y)%o,p=c.skipSpaces(p),!(p<P))){Q=!0;break}}const v=c.parentType,X=c.lineMax;return c.parentType="root",c.lineMax=m,$=c.push("admonition_open","div",1),$.markup=x,$.block=!0,$.info=a,$.map=[u,m],$=c.push("admonition_title_open","p",1),$.markup=x+" "+a,$.map=[u,m],$=c.push("inline","",0),$.content=O,$.map=[u,c.line-1],$.children=[],$=c.push("admonition_title_close","p",-1),$.markup=x+" "+a,c.md.block.tokenize(c,u+1,m),$=c.push("admonition_close","div",-1),$.markup=c.src.slice(y,p),$.block=!0,c.parentType=v,c.lineMax=X,c.line=m+(Q?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.admonition_open=l,t.renderer.rules.admonition_title_open=l,t.renderer.rules.admonition_title_close=l,t.renderer.rules.admonition_close=l},iC=(t,e)=>{let n;t.core.ruler.push("headingLinks",r=>{n||(n=r.Token)}),t.renderer.rules.heading_open=(r,i)=>{const o=r[i],a=r[i+1].content,O=o.markup.length;return e.headsRef.value.push({text:a,level:O}),o.map&&o.level===0&&(o.attrSet("data-line",String(o.map[0])),o.attrSet("id",e.mdHeadingId(a,O,e.headsRef.value.length))),t.renderer.renderToken(r,i,e)},t.renderer.rules.heading_close=(r,i,o,a,O)=>O.renderToken(r,i,o)},oC=(t,e)=>{const n=t.renderer.rules.fence,r=t.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/;function o(s){return s.info?r(s.info).trim():""}function a(s){const c=o(s),[u=null,f=""]=(i.exec(c)||[]).slice(1);return[u,f]}function O(s){const c=o(s);return c?c.split(/(\s+)/g)[0]:""}const l=(s,c,u,f,d)=>{if(s[c].hidden)return"";const[p,m]=a(s[c]);if(p===null)return n(s,c,u,f,d);let $,Q,y,P,R="",x="";for(let w=c;w<s.length&&($=s[w],[Q,y]=a($),Q===p);w++)$.info=$.info.replace(i,""),$.hidden=!0,P=w-c>0?"":" checked",R+=`<li><input type="radio" name="label-group-${e.editorId}-${c}"${P}><label for="group-${e.editorId}-${c}-tab-${w-c}" onclick="this.previousElementSibling.click()">${y||O($)}</label></li>
110
110
  `,x+=`<input type="radio" id="group-${e.editorId}-${c}-tab-${w-c}" name="group-${e.editorId}-${c}"${P}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md-editor-v3",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "vue",