From 9a97d8e2acc84d8ff1a8cd13d021e7cf83dbf274 Mon Sep 17 00:00:00 2001 From: yangjian Date: Tue, 16 Mar 2021 21:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0vditor=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8C=E4=BC=98=E5=8C=96Editor=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8HTML=E8=BF=87=E6=BB=A4=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96vditor=E6=96=87=E6=A1=A3=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/editor.md/editormd.js | 63 +++++---- static/editor.md/editormd.min.js | 4 +- static/editor.md/lib/marked.min.js | 7 +- static/editor.md/lib/purify.min.js | 3 + static/mrdoc/mrdoc-docs.css | 4 + static/mrdoc/mrdoc-docs.js | 170 ++++++++++++++++++------ static/search/mrdoc_logo_300.png | Bin 4668 -> 1255 bytes static/toc/doctoc.js | 174 +++++++++++++++---------- static/vditor/dist/index.css | 4 +- static/vditor/dist/index.min.js | 4 +- static/vditor/dist/js/lute/lute.min.js | 6 +- static/vditor/dist/method.min.js | 4 +- 12 files changed, 297 insertions(+), 146 deletions(-) create mode 100644 static/editor.md/lib/purify.min.js diff --git a/static/editor.md/editormd.js b/static/editor.md/editormd.js index 9014ee7..0da7a30 100644 --- a/static/editor.md/editormd.js +++ b/static/editor.md/editormd.js @@ -565,6 +565,9 @@ }) }) + // 加载DOMPurify过滤HTML + editormd.loadScript(loadPath + 'purify.min',function(){}); + editormd.loadCSS(loadPath + "codemirror/lib/codemirror"); if (settings.searchReplace && !settings.readOnly) @@ -2111,12 +2114,14 @@ marked.setOptions(markedOptions); var newMarkdownDoc = editormd.$marked(cmValue, markedOptions); + // console.info("cmValue", cmValue, newMarkdownDoc); - //console.info("cmValue", cmValue, newMarkdownDoc); + // newMarkdownDoc = editormd.filterHTMLTags(newMarkdownDoc, settings.htmlDecode); + // 加载DOMPurify过滤HTML + newMarkdownDoc = DOMPurify.sanitize(newMarkdownDoc,{ADD_TAGS: ['iframe']}) - newMarkdownDoc = editormd.filterHTMLTags(newMarkdownDoc, settings.htmlDecode); - - //console.error("cmValue", cmValue, newMarkdownDoc); + // console.log(newMarkdownDoc) + // console.error("cmValue", cmValue, newMarkdownDoc); this.markdownTextarea.text(cmValue); @@ -3541,7 +3546,7 @@ var editormdLogoReg = regexs.editormdLogo; var pageBreakReg = regexs.pageBreak; - // 增加引用样式解析规则 + // 增加引用样式解析规则 markedRenderer.blockquote = function($quote) { var quoteBegin = ""; @@ -3568,7 +3573,8 @@ } return '
\n' + quoteBegin + $quote + '
\n'; - }; + }; + // marked 解析图片 markedRenderer.image = function(href,title,text) { var attr = ""; @@ -3612,21 +3618,21 @@ const tedMatch = href.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/); if (youtubeMatch && youtubeMatch[1].length === 11) { - return `` } else if (youkuMatch && youkuMatch[1]) { - return `` } else if (qqMatch && qqMatch[1]) { - return `` } else if (coubMatch && coubMatch[1]) { - return `` } else if (facebookMatch && facebookMatch[0]) { - return `` } else if (dailymotionMatch && dailymotionMatch[2]) { - return `` } else if (bilibiliMatch && bilibiliMatch[1]) { - return `` } else if (tedMatch && tedMatch[1]) { - return `` }else{ if(iframe_whitelist.length == 1 && iframe_whitelist[0] == ""){ return href @@ -3678,7 +3684,7 @@ } } } - return begin + "\""+text+"\"" + end; + return begin + "\""+text+"\"" + end; }; // marked emoji 解析 @@ -3793,7 +3799,6 @@ // marked 链接解析 markedRenderer.link = function (href, title, text) { - if (this.options.sanitize) { try { var prot = decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase(); @@ -3870,7 +3875,7 @@ headingHTML += ""; headingHTML += (hasLinkReg) ? this.atLink(this.mark(this.emoji(text))) : this.mark(this.emoji(text)); headingHTML += ""; - + // console.log(headingHTML) return headingHTML; }; @@ -3903,7 +3908,6 @@ } var tocHTML = "
" + text + "
"; - return (isToC) ? ( (isToCMenu) ? "
" + tocHTML + "

" : tocHTML ) : ( (pageBreakReg.test(text)) ? this.pageBreak(text) : "" + this.atLink(this.mark(this.emoji(text))) + "

\n" ); }; @@ -4250,7 +4254,8 @@ */ editormd.filterHTMLTags = function(html, filters) { - + console.log(html) + console.log(filters) if (typeof html !== "string") { html = new String(html).toString(); } @@ -4264,6 +4269,7 @@ var expression = filters.split("|"); var filterTags = expression[0].split(","); var attrs = expression[1]; + console.log(attrs) if(!filterTags.includes('allowScript') && !filterTags.includes('script')) { @@ -4278,7 +4284,7 @@ html = html.replace(new RegExp("\<\s*" + tag + "\s*([^\>]*)\>([^\>]*)\<\s*\/" + tag + "\s*\>", "igm"), ""); html = html.replace(new RegExp("\<\s*" + tag + ".*?/?>", "igm"), "") // 过滤单闭合标签 } - + //return html; if (typeof attrs === "undefined") @@ -4304,12 +4310,16 @@ { html = html.replace(htmlTagRegex, function($1, $2, $3, $4, $5) { return "<" + $2 + ">" + $4 + ""; - }); + }); } // else if (attrs === "on*") else if ((attrs === "on*") || filterOn) { html = html.replace(htmlTagRegex, function($1, $2, $3, $4, $5) { + console.log($1) + console.log($2) + console.log($4) + console.log($5) var el = $("<" + $2 + ">" + $4 + ""); var _attrs = $($1)[0].attributes; var $attrs = {}; @@ -4338,7 +4348,7 @@ // var filterAttrs = attrs.split(","); var el = $($1); el.html($4); - + $.each(filterAttrs, function(i) { el.attr(filterAttrs[i], null); }); @@ -4347,7 +4357,7 @@ }); } } - + return html; }; @@ -4435,7 +4445,12 @@ var markdownParsed = marked(markdownDoc, markedOptions); - markdownParsed = editormd.filterHTMLTags(markdownParsed, settings.htmlDecode); + // markdownParsed = editormd.filterHTMLTags(markdownParsed, settings.htmlDecode); + // 加载DOMPurify过滤HTML + editormd.loadScript(settings.plugin_path + 'purify.min',function(){ + markdownParsed = DOMPurify.sanitize(markdownParsed,{ADD_TAGS: ['iframe']}); + }); + // console.log(markdownParsed) if (settings.markdownSourceCode) { saveTo.text(markdownDoc); diff --git a/static/editor.md/editormd.min.js b/static/editor.md/editormd.min.js index 0d9f0ce..c79ea89 100644 --- a/static/editor.md/editormd.min.js +++ b/static/editor.md/editormd.min.js @@ -1,3 +1 @@ -/*! Editor.md v1.5.0 | editormd.min.js | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */ -!function(e){"use strict";"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define?define.amd||define(["jquery"],e):window.editormd=e()}(function(){"use strict";var e="undefined"!=typeof jQuery?jQuery:Zepto;if("undefined"!=typeof e){var t=function(e,i){return new t.fn.init(e,i)};t.title=t.$name="Editor.md",t.version="1.5.0",t.homePage="https://pandao.github.io/editor.md/",t.classPrefix="editormd-",t.toolbarModes={full:["undo","redo","|","bold","del","italic","quote","ucwords","uppercase","lowercase","|","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","|","link","reference-link","image","code","preformatted-text","code-block","table","datetime","emoji","html-entities","pagebreak","|","goto-line","watch","preview","fullscreen","clear","search","|","help","info"],simple:["undo","redo","|","bold","del","italic","quote","uppercase","lowercase","|","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","|","watch","preview","fullscreen","|","help","info"],mini:["undo","redo","|","watch","preview","|","help","info"]},t.defaults={mode:"gfm",name:"",value:"",theme:"",editorTheme:"default",previewTheme:"",markdown:"",appendMarkdown:"",width:"100%",height:"100%",path:"./lib/",pluginPath:"",delay:300,autoLoadModules:!0,watch:!0,placeholder:"Enjoy Markdown! coding now...",gotoLine:!0,codeFold:!1,autoHeight:!1,autoFocus:!0,autoCloseTags:!0,searchReplace:!0,syncScrolling:!0,readOnly:!1,tabSize:4,indentUnit:4,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,showTrailingSpace:!0,matchBrackets:!0,indentWithTabs:!0,styleSelectedText:!0,matchWordHighlight:!0,styleActiveLine:!0,dialogLockScreen:!0,dialogShowMask:!0,dialogDraggable:!0,dialogMaskBgColor:"#fff",dialogMaskOpacity:.1,fontSize:"13px",saveHTMLToTextarea:!1,disabledKeyMaps:[],onload:function(){},onresize:function(){},onchange:function(){},onwatch:null,onunwatch:null,onpreviewing:function(){},onpreviewed:function(){},onfullscreen:function(){},onfullscreenExit:function(){},onscroll:function(){},onpreviewscroll:function(){},imageUpload:!1,imageFormats:["jpg","jpeg","gif","png","bmp","webp"],imageUploadURL:"",crossDomainUpload:!1,uploadCallbackURL:"",toc:!0,tocm:!1,tocTitle:"",tocDropdown:!1,tocContainer:"",tocStartLevel:1,htmlDecode:!1,pageBreak:!0,atLink:!0,emailLink:!0,taskList:!1,emoji:!1,tex:!1,flowChart:!1,sequenceDiagram:!1,previewCodeHighlight:!0,toolbar:!0,toolbarAutoFixed:!0,toolbarIcons:"full",toolbarTitles:{},toolbarHandlers:{ucwords:function(){return t.toolbarHandlers.ucwords},lowercase:function(){return t.toolbarHandlers.lowercase}},toolbarCustomIcons:{lowercase:'a',ucwords:'Aa'},toolbarIconsClass:{undo:"fa-undo",redo:"fa-repeat",bold:"fa-bold",del:"fa-strikethrough",italic:"fa-italic",quote:"fa-quote-left",uppercase:"fa-font",h1:t.classPrefix+"bold",h2:t.classPrefix+"bold",h3:t.classPrefix+"bold",h4:t.classPrefix+"bold",h5:t.classPrefix+"bold",h6:t.classPrefix+"bold","list-ul":"fa-list-ul","list-ol":"fa-list-ol",hr:"fa-minus",link:"fa-link","reference-link":"fa-anchor",image:"fa-picture-o",code:"fa-code","preformatted-text":"fa-file-code-o","code-block":"fa-file-code-o",table:"fa-table",datetime:"fa-clock-o",emoji:"fa-smile-o","html-entities":"fa-copyright",pagebreak:"fa-newspaper-o","goto-line":"fa-terminal",watch:"fa-eye-slash",unwatch:"fa-eye",preview:"fa-desktop",search:"fa-search",fullscreen:"fa-arrows-alt",clear:"fa-eraser",help:"fa-question-circle",info:"fa-info-circle"},toolbarIconTexts:{},lang:{name:"zh-cn",description:"开源在线Markdown编辑器
Open source online Markdown editor.",tocTitle:"目录",toolbar:{undo:"撤销(Ctrl+Z)",redo:"重做(Ctrl+Y)",bold:"粗体",del:"删除线",italic:"斜体",quote:"引用",ucwords:"将每个单词首字母转成大写",uppercase:"将所选转换成大写",lowercase:"将所选转换成小写",h1:"标题1",h2:"标题2",h3:"标题3",h4:"标题4",h5:"标题5",h6:"标题6","list-ul":"无序列表","list-ol":"有序列表",hr:"横线",link:"链接","reference-link":"引用链接",image:"添加图片",code:"行内代码","preformatted-text":"预格式文本 / 代码块(缩进风格)","code-block":"代码块(多语言风格)",table:"添加表格",datetime:"日期时间",emoji:"Emoji表情","html-entities":"HTML实体字符",pagebreak:"插入分页符","goto-line":"跳转到行",watch:"关闭实时预览",unwatch:"开启实时预览",preview:"全窗口预览HTML(按 Shift + ESC还原)",fullscreen:"全屏(按ESC还原)",clear:"清空",search:"搜索",help:"使用帮助",info:"关于"+t.title},buttons:{enter:"确定",cancel:"取消",close:"关闭"},dialog:{link:{title:"添加链接",url:"链接地址",urlTitle:"链接标题",urlEmpty:"错误:请填写链接地址。"},referenceLink:{title:"添加引用链接",name:"引用名称",url:"链接地址",urlId:"链接ID",urlTitle:"链接标题",nameEmpty:"错误:引用链接的名称不能为空。",idEmpty:"错误:请填写引用链接的ID。",urlEmpty:"错误:请填写引用链接的URL地址。"},image:{title:"添加图片",url:"图片地址",link:"图片链接",alt:"图片描述",uploadButton:"本地上传",imageURLEmpty:"错误:图片地址不能为空。",uploadFileEmpty:"错误:上传的图片不能为空。",formatNotAllowed:"错误:只允许上传图片文件,允许上传的图片文件格式有:"},preformattedText:{title:"添加预格式文本或代码块",emptyAlert:"错误:请填写预格式文本或代码的内容。"},codeBlock:{title:"添加代码块",selectLabel:"代码语言:",selectDefaultText:"请选择代码语言",otherLanguage:"其他语言",unselectedLanguageAlert:"错误:请选择代码所属的语言类型。",codeEmptyAlert:"错误:请填写代码内容。"},htmlEntities:{title:"HTML 实体字符"},help:{title:"使用帮助"}}}},t.classNames={tex:t.classPrefix+"tex"},t.dialogZindex=99999,t.$katex=null,t.$marked=null,t.$CodeMirror=null,t.$prettyPrint=null;var i,o;t.prototype=t.fn={state:{watching:!1,loaded:!1,preview:!1,fullscreen:!1},init:function(i,o){o=o||{},"object"==typeof i&&(o=i);var r=this.classPrefix=t.classPrefix,n=this.settings=e.extend(!0,t.defaults,o);i="object"==typeof i?n.id:i;var a=this.editor=e("#"+i);this.id=i,this.lang=n.lang;var s=this.classNames={textarea:{html:r+"html-textarea",markdown:r+"markdown-textarea"}};n.pluginPath=""===n.pluginPath?n.path+"../plugins/":n.pluginPath,this.state.watching=n.watch?!0:!1,a.hasClass("editormd")||a.addClass("editormd"),a.css({width:"number"==typeof n.width?n.width+"px":n.width,height:"number"==typeof n.height?n.height+"px":n.height}),n.autoHeight&&a.css("height","auto");var l=this.markdownTextarea=a.children("textarea");l.length<1&&(a.append(""),l=this.markdownTextarea=a.children("textarea")),l.addClass(s.textarea.markdown).attr("placeholder",n.placeholder),("undefined"==typeof l.attr("name")||""===l.attr("name"))&&l.attr("name",""!==n.name?n.name:i+"-markdown-doc");var c=[n.readOnly?"":'',n.saveHTMLToTextarea?'':"",'
','
','
'].join("\n");return a.append(c).addClass(r+"vertical"),""!==n.theme&&a.addClass(r+"theme-"+n.theme),this.mask=a.children("."+r+"mask"),this.containerMask=a.children("."+r+"container-mask"),""!==n.markdown&&l.val(n.markdown),""!==n.appendMarkdown&&l.val(l.val()+n.appendMarkdown),this.htmlTextarea=a.children("."+s.textarea.html),this.preview=a.children("."+r+"preview"),this.previewContainer=this.preview.children("."+r+"preview-container"),""!==n.previewTheme&&this.preview.addClass(r+"preview-theme-"+n.previewTheme),"function"==typeof define&&define.amd&&("undefined"!=typeof katex&&(t.$katex=katex),n.searchReplace&&!n.readOnly&&(t.loadCSS(n.path+"codemirror/addon/dialog/dialog"),t.loadCSS(n.path+"codemirror/addon/search/matchesonscrollbar"))),"function"==typeof define&&define.amd||!n.autoLoadModules?("undefined"!=typeof CodeMirror&&(t.$CodeMirror=CodeMirror),"undefined"!=typeof marked&&(t.$marked=marked),this.setCodeMirror().setToolbar().loadedDisplay()):this.loadQueues(),this},loadQueues:function(){var e=this,i=this.settings,o=i.path,r=function(){return t.isIE8?void e.loadedDisplay():void(i.flowChart||i.sequenceDiagram?t.loadScript(o+"raphael.min",function(){t.loadScript(o+"underscore.min",function(){!i.flowChart&&i.sequenceDiagram?t.loadScript(o+"sequence-diagram.min",function(){e.loadedDisplay()}):i.flowChart&&!i.sequenceDiagram?t.loadScript(o+"flowchart.min",function(){t.loadScript(o+"jquery.flowchart.min",function(){e.loadedDisplay()})}):i.flowChart&&i.sequenceDiagram&&t.loadScript(o+"flowchart.min",function(){t.loadScript(o+"jquery.flowchart.min",function(){t.loadScript(o+"sequence-diagram.min",function(){e.loadedDisplay()})})})})}):e.loadedDisplay())};return t.loadCSS(o+"codemirror/codemirror.min"),i.searchReplace&&!i.readOnly&&(t.loadCSS(o+"codemirror/addon/dialog/dialog"),t.loadCSS(o+"codemirror/addon/search/matchesonscrollbar")),i.codeFold&&t.loadCSS(o+"codemirror/addon/fold/foldgutter"),t.loadScript(o+"codemirror/codemirror.min",function(){t.$CodeMirror=CodeMirror,t.loadScript(o+"codemirror/modes.min",function(){t.loadScript(o+"codemirror/addons.min",function(){return e.setCodeMirror(),"gfm"!==i.mode&&"markdown"!==i.mode?(e.loadedDisplay(),!1):(e.setToolbar(),void t.loadScript(o+"marked.min",function(){t.$marked=marked,i.previewCodeHighlight?t.loadScript(o+"prettify.min",function(){r()}):r()}))})})}),this},setTheme:function(e){var t=this.editor,i=this.settings.theme,o=this.classPrefix+"theme-";return t.removeClass(o+i).addClass(o+e),this.settings.theme=e,this},setEditorTheme:function(e){var i=this.settings;return i.editorTheme=e,"default"!==e&&t.loadCSS(i.path+"codemirror/theme/"+i.editorTheme),this.cm.setOption("theme",e),this},setCodeMirrorTheme:function(e){return this.setEditorTheme(e),this},setPreviewTheme:function(e){var t=this.preview,i=this.settings.previewTheme,o=this.classPrefix+"preview-theme-";return t.removeClass(o+i).addClass(o+e),this.settings.previewTheme=e,this},setCodeMirror:function(){var e=this.settings,i=this.editor;"default"!==e.editorTheme&&t.loadCSS(e.path+"codemirror/theme/"+e.editorTheme);var o={mode:e.mode,theme:e.editorTheme,tabSize:e.tabSize,dragDrop:!1,autofocus:e.autoFocus,autoCloseTags:e.autoCloseTags,readOnly:e.readOnly?"nocursor":!1,indentUnit:e.indentUnit,lineNumbers:e.lineNumbers,lineWrapping:e.lineWrapping,extraKeys:{"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},foldGutter:e.codeFold,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:e.matchBrackets,indentWithTabs:e.indentWithTabs,styleActiveLine:e.styleActiveLine,styleSelectedText:e.styleSelectedText,autoCloseBrackets:e.autoCloseBrackets,showTrailingSpace:e.showTrailingSpace,highlightSelectionMatches:e.matchWordHighlight?{showToken:"onselected"===e.matchWordHighlight?!1:/\w/}:!1};return this.codeEditor=this.cm=t.$CodeMirror.fromTextArea(this.markdownTextarea[0],o),this.codeMirror=this.cmElement=i.children(".CodeMirror"),""!==e.value&&this.cm.setValue(e.value),this.codeMirror.css({fontSize:e.fontSize,width:e.watch?"50%":"100%"}),e.autoHeight&&(this.codeMirror.css("height","auto"),this.cm.setOption("viewportMargin",1/0)),e.lineNumbers||this.codeMirror.find(".CodeMirror-gutters").css("border-right","none"),this},getCodeMirrorOption:function(e){return this.cm.getOption(e)},setCodeMirrorOption:function(e,t){return this.cm.setOption(e,t),this},addKeyMap:function(e,t){return this.cm.addKeyMap(e,t),this},removeKeyMap:function(e){return this.cm.removeKeyMap(e),this},gotoLine:function(t){var i=this.settings;if(!i.gotoLine)return this;var o=this.cm,r=(this.editor,o.lineCount()),n=this.preview;if("string"==typeof t&&("last"===t&&(t=r),"first"===t&&(t=1)),"number"!=typeof t)return alert("Error: The line number must be an integer."),this;if(t=parseInt(t)-1,t>r)return alert("Error: The line number range 1-"+r),this;o.setCursor({line:t,ch:0});var a=o.getScrollInfo(),s=a.clientHeight,l=o.charCoords({line:t,ch:0},"local");if(o.scrollTo(null,(l.top+l.bottom-s)/2),i.watch){var c=this.codeMirror.find(".CodeMirror-scroll")[0],h=e(c).height(),d=c.scrollTop,u=d/c.scrollHeight;n.scrollTop(0===d?0:d+h>=c.scrollHeight-16?n[0].scrollHeight:n[0].scrollHeight*u)}return o.focus(),this},extend:function(){return"undefined"!=typeof arguments[1]&&("function"==typeof arguments[1]&&(arguments[1]=e.proxy(arguments[1],this)),this[arguments[0]]=arguments[1]),"object"==typeof arguments[0]&&"undefined"==typeof arguments[0].length&&e.extend(!0,this,arguments[0]),this},set:function(t,i){return"undefined"!=typeof i&&"function"==typeof i&&(i=e.proxy(i,this)),this[t]=i,this},config:function(t,i){var o=this.settings;return"object"==typeof t&&(o=e.extend(!0,o,t)),"string"==typeof t&&(o[t]=i),this.settings=o,this.recreate(),this},on:function(t,i){var o=this.settings;return"undefined"!=typeof o["on"+t]&&(o["on"+t]=e.proxy(i,this)),this},off:function(e){var t=this.settings;return"undefined"!=typeof t["on"+e]&&(t["on"+e]=function(){}),this},showToolbar:function(t){var i=this.settings;return i.readOnly?this:(i.toolbar&&(this.toolbar.length<1||""===this.toolbar.find("."+this.classPrefix+"menu").html())&&this.setToolbar(),i.toolbar=!0,this.toolbar.show(),this.resize(),e.proxy(t||function(){},this)(),this)},hideToolbar:function(t){var i=this.settings;return i.toolbar=!1,this.toolbar.hide(),this.resize(),e.proxy(t||function(){},this)(),this},setToolbarAutoFixed:function(t){var i=this.state,o=this.editor,r=this.toolbar,n=this.settings;"undefined"!=typeof t&&(n.toolbarAutoFixed=t);var a=function(){var t=e(window),i=t.scrollTop();return n.toolbarAutoFixed?void r.css(i-o.offset().top>10&&i
    ';i.append(n),r=this.toolbar=i.children("."+o+"toolbar")}if(!e.toolbar)return r.hide(),this;r.show();for(var a="function"==typeof e.toolbarIcons?e.toolbarIcons():"string"==typeof e.toolbarIcons?t.toolbarModes[e.toolbarIcons]:e.toolbarIcons,s=r.find("."+this.classPrefix+"menu"),l="",c=!1,h=0,d=a.length;d>h;h++){var u=a[h];if("||"===u)c=!0;else if("|"===u)l+='
  • |
  • ';else{var f=/h(\d)/.test(u),g=u;"watch"!==u||e.watch||(g="unwatch");var p=e.lang.toolbar[g],m=e.toolbarIconTexts[g],w=e.toolbarIconsClass[g];p="undefined"==typeof p?"":p,m="undefined"==typeof m?"":m,w="undefined"==typeof w?"":w;var v=c?'
  • ':"
  • ";"undefined"!=typeof e.toolbarCustomIcons[u]&&"function"!=typeof e.toolbarCustomIcons[u]?v+=e.toolbarCustomIcons[u]:(v+='',v+=''+(f?u.toUpperCase():""===w?m:"")+"",v+=""),v+="
  • ",l=c?v+l:l+v}}return s.html(l),s.find('[title="Lowercase"]').attr("title",e.lang.toolbar.lowercase),s.find('[title="ucwords"]').attr("title",e.lang.toolbar.ucwords),this.setToolbarHandler(),this.setToolbarAutoFixed(),this},dialogLockScreen:function(){return e.proxy(t.dialogLockScreen,this)(),this},dialogShowMask:function(i){return e.proxy(t.dialogShowMask,this)(i),this},getToolbarHandles:function(e){var i=this.toolbarHandlers=t.toolbarHandlers;return e&&"undefined"!=typeof toolbarIconHandlers[e]?i[e]:i},setToolbarHandler:function(){var i=this,o=this.settings;if(!o.toolbar||o.readOnly)return this;var r=this.toolbar,n=this.cm,a=this.classPrefix,s=this.toolbarIcons=r.find("."+a+"menu > li > a"),l=this.getToolbarHandles();return s.bind(t.mouseOrTouch("click","touchend"),function(t){var r=e(this).children(".fa"),a=r.attr("name"),s=n.getCursor(),c=n.getSelection();return""!==a?(i.activeIcon=r,"undefined"!=typeof l[a]?e.proxy(l[a],i)(n):"undefined"!=typeof o.toolbarHandlers[a]&&e.proxy(o.toolbarHandlers[a],i)(n,r,s,c),"link"!==a&&"reference-link"!==a&&"image"!==a&&"code-block"!==a&&"preformatted-text"!==a&&"watch"!==a&&"preview"!==a&&"search"!==a&&"fullscreen"!==a&&"info"!==a&&n.focus(),!1):void 0}),this},createDialog:function(i){return e.proxy(t.createDialog,this)(i)},createInfoDialog:function(){var e=this,i=this.editor,o=this.classPrefix,r=['
    ','
    ','

    '+t.title+"v"+t.version+"

    ","

    "+this.lang.description+"

    ",'

    '+t.homePage+'

    ','

    Copyright © 2015 Pandao, The MIT License.

    ',"
    ",'',"
    "].join("\n");i.append(r);var n=this.infoDialog=i.children("."+o+"dialog-info");return n.find("."+o+"dialog-close").bind(t.mouseOrTouch("click","touchend"),function(){e.hideInfoDialog()}),n.css("border",t.isIE8?"1px solid #ddd":"").css("z-index",t.dialogZindex).show(),this.infoDialogPosition(),this},infoDialogPosition:function(){var t=this.infoDialog,i=function(){t.css({top:(e(window).height()-t.height())/2+"px",left:(e(window).width()-t.width())/2+"px"})};return i(),e(window).resize(i),this},showInfoDialog:function(){e("html,body").css("overflow-x","hidden");var i=this.editor,o=this.settings,r=this.infoDialog=i.children("."+this.classPrefix+"dialog-info");return r.length<1&&this.createInfoDialog(),this.lockScreen(!0),this.mask.css({opacity:o.dialogMaskOpacity,backgroundColor:o.dialogMaskBgColor}).show(),r.css("z-index",t.dialogZindex).show(),this.infoDialogPosition(),this},hideInfoDialog:function(){return e("html,body").css("overflow-x",""),this.infoDialog.hide(),this.mask.hide(),this.lockScreen(!1),this},lockScreen:function(e){return t.lockScreen(e),this.resize(),this},recreate:function(){var e=this.editor,t=this.settings;return this.codeMirror.remove(),this.setCodeMirror(),t.readOnly||(e.find(".editormd-dialog").length>0&&e.find(".editormd-dialog").remove(),t.toolbar&&(this.getToolbarHandles(),this.setToolbar())),this.loadedDisplay(!0),this},previewCodeHighlight:function(){var e=this.settings,t=this.previewContainer;return e.previewCodeHighlight&&(t.find("pre").addClass("prettyprint linenums"),"undefined"!=typeof prettyPrint&&prettyPrint()),this},katexRender:function(){return null===i?this:(this.previewContainer.find("."+t.classNames.tex).each(function(){var i=e(this);t.$katex.render(i.text(),i[0]),i.find(".katex").css("font-size","1.6em")}),this)},flowChartAndSequenceDiagramRender:function(){var i=this,r=this.settings,n=this.previewContainer;if(t.isIE8)return this;if(r.flowChart){if(null===o)return this;n.find(".flowchart").flowChart()}r.sequenceDiagram&&n.find(".sequence-diagram").sequenceDiagram({theme:"simple"});var a=i.preview,s=i.codeMirror,l=s.find(".CodeMirror-scroll"),c=l.height(),h=l.scrollTop(),d=h/l[0].scrollHeight,u=0;a.find(".markdown-toc-list").each(function(){u+=e(this).height()});var f=a.find(".editormd-toc-menu").height();return f=f?f:0,a.scrollTop(0===h?0:h+c>=l[0].scrollHeight-16?a[0].scrollHeight:(a[0].scrollHeight+u+f)*d),this},registerKeyMaps:function(i){var o=this,r=this.cm,n=this.settings,a=t.toolbarHandlers,s=n.disabledKeyMaps;if(i=i||null){for(var l in i)if(e.inArray(l,s)<0){var c={};c[l]=i[l],r.addKeyMap(i)}}else{for(var h in t.keyMaps){var d=t.keyMaps[h],u="string"==typeof d?e.proxy(a[d],o):e.proxy(d,o);if(e.inArray(h,["F9","F10","F11"])<0&&e.inArray(h,s)<0){var f={};f[h]=u,r.addKeyMap(f)}}e(window).keydown(function(t){var i={120:"F9",121:"F10",122:"F11"};if(e.inArray(i[t.keyCode],s)<0)switch(t.keyCode){case 120:return e.proxy(a.watch,o)(),!1;case 121:return e.proxy(a.preview,o)(),!1;case 122:return e.proxy(a.fullscreen,o)(),!1}})}return this},bindScrollEvent:function(){var i=this,o=this.preview,r=this.settings,n=this.codeMirror,a=t.mouseOrTouch;if(!r.syncScrolling)return this;var s=function(){n.find(".CodeMirror-scroll").bind(a("scroll","touchmove"),function(t){var n=e(this).height(),a=e(this).scrollTop(),s=a/e(this)[0].scrollHeight,l=0;o.find(".markdown-toc-list").each(function(){l+=e(this).height()});var c=o.find(".editormd-toc-menu").height();c=c?c:0,o.scrollTop(0===a?0:a+n>=e(this)[0].scrollHeight-16?o[0].scrollHeight:(o[0].scrollHeight+l+c)*s),e.proxy(r.onscroll,i)(t)})},l=function(){n.find(".CodeMirror-scroll").unbind(a("scroll","touchmove"))},c=function(){o.bind(a("scroll","touchmove"),function(t){var o=e(this).height(),a=e(this).scrollTop(),s=a/e(this)[0].scrollHeight,l=n.find(".CodeMirror-scroll");l.scrollTop(0===a?0:a+o>=e(this)[0].scrollHeight?l[0].scrollHeight:l[0].scrollHeight*s),e.proxy(r.onpreviewscroll,i)(t)})},h=function(){o.unbind(a("scroll","touchmove"))};return n.bind({mouseover:s,mouseout:l,touchstart:s,touchend:l}),"single"===r.syncScrolling?this:(o.bind({mouseover:c,mouseout:h,touchstart:c,touchend:h}),this)},bindChangeEvent:function(){var e=this,t=this.cm,o=this.settings;return o.syncScrolling?(t.on("change",function(t,r){o.watch&&e.previewContainer.css("padding",o.autoHeight?"20px 20px 50px 40px":"20px"),i=setTimeout(function(){clearTimeout(i),e.save(),i=null},o.delay)}),this):this},loadedDisplay:function(t){t=t||!1;var i=this,o=this.editor,r=this.preview,n=this.settings;return this.containerMask.hide(),this.save(),n.watch&&r.show(),o.data("oldWidth",o.width()).data("oldHeight",o.height()),this.resize(),this.registerKeyMaps(),e(window).resize(function(){i.resize()}),this.bindScrollEvent().bindChangeEvent(),t||e.proxy(n.onload,this)(),this.state.loaded=!0,this},width:function(e){return this.editor.css("width","number"==typeof e?e+"px":e),this.resize(),this},height:function(e){return this.editor.css("height","number"==typeof e?e+"px":e),this.resize(),this},resize:function(t,i){t=t||null,i=i||null;var o=this.state,r=this.editor,n=this.preview,a=this.toolbar,s=this.settings,l=this.codeMirror;if(t&&r.css("width","number"==typeof t?t+"px":t),!s.autoHeight||o.fullscreen||o.preview?(i&&r.css("height","number"==typeof i?i+"px":i),o.fullscreen&&r.height(e(window).height()),s.toolbar&&!s.readOnly?l.css("margin-top",a.height()+1).height(r.height()-a.height()):l.css("margin-top",0).height(r.height())):(r.css("height","auto"),l.css("height","auto")),s.watch)if(l.width(r.width()/2),n.width(o.preview?r.width():r.width()/2),this.previewContainer.css("padding",s.autoHeight?"20px 20px 50px 40px":"20px"),s.toolbar&&!s.readOnly?n.css("top",a.height()+1):n.css("top",0),!s.autoHeight||o.fullscreen||o.preview){var c=s.toolbar&&!s.readOnly?r.height()-a.height():r.height();n.height(c)}else n.height("");else l.width(r.width()),n.hide();return o.loaded&&e.proxy(s.onresize,this)(),this},save:function(){if(null===i)return this;var r=this,n=this.state,a=this.settings,s=this.cm,l=s.getValue(),c=this.previewContainer;if("gfm"!==a.mode&&"markdown"!==a.mode)return this.markdownTextarea.val(l),this;var h=t.$marked,d=this.markdownToC=[],u=this.markedRendererOptions={toc:a.toc,tocm:a.tocm,tocStartLevel:a.tocStartLevel,pageBreak:a.pageBreak,taskList:a.taskList,emoji:a.emoji,tex:a.tex,atLink:a.atLink,emailLink:a.emailLink,flowChart:a.flowChart,sequenceDiagram:a.sequenceDiagram,previewCodeHighlight:a.previewCodeHighlight},f=this.markedOptions={renderer:t.markedRenderer(d,u),gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:a.htmlDecode?!1:!0,smartLists:!0,smartypants:!0};h.setOptions(f);var g=t.$marked(l,f);if(g=t.filterHTMLTags(g,a.htmlDecode),this.markdownTextarea.text(l),s.save(),a.saveHTMLToTextarea&&this.htmlTextarea.text(g),a.watch||!a.watch&&n.preview){if(c.html(g),this.previewCodeHighlight(),a.toc){var p=""===a.tocContainer?c:e(a.tocContainer),m=p.find("."+this.classPrefix+"toc-menu");p.attr("previewContainer",""===a.tocContainer?"true":"false"),""!==a.tocContainer&&m.length>0&&m.remove(),t.markdownToCRenderer(d,p,a.tocDropdown,a.tocStartLevel),(a.tocDropdown||p.find("."+this.classPrefix+"toc-menu").length>0)&&t.tocDropdownMenu(p,""!==a.tocTitle?a.tocTitle:this.lang.tocTitle),""!==a.tocContainer&&c.find(".markdown-toc").css("border","none")}a.tex&&(!t.kaTeXLoaded&&a.autoLoadModules?t.loadKaTeX(function(){t.$katex=katex,t.kaTeXLoaded=!0,r.katexRender()}):(t.$katex=katex,this.katexRender())),(a.flowChart||a.sequenceDiagram)&&(o=setTimeout(function(){clearTimeout(o),r.flowChartAndSequenceDiagramRender(),o=null},10)),n.loaded&&e.proxy(a.onchange,this)()}return this},focus:function(){return this.cm.focus(),this},setCursor:function(e){return this.cm.setCursor(e),this},getCursor:function(){return this.cm.getCursor()},setSelection:function(e,t){return this.cm.setSelection(e,t),this},getSelection:function(){return this.cm.getSelection()},setSelections:function(e){return this.cm.setSelections(e),this},getSelections:function(){return this.cm.getSelections()},replaceSelection:function(e){return this.cm.replaceSelection(e),this},insertValue:function(e){return this.replaceSelection(e),this},appendMarkdown:function(e){var t=(this.settings,this.cm);return t.setValue(t.getValue()+e),this},setMarkdown:function(e){return this.cm.setValue(e||this.settings.markdown),this},getMarkdown:function(){return this.cm.getValue()},getValue:function(){return this.cm.getValue()},setValue:function(e){return this.cm.setValue(e),this},clear:function(){return this.cm.setValue(""),this},getHTML:function(){return this.settings.saveHTMLToTextarea?this.htmlTextarea.val():(alert("Error: settings.saveHTMLToTextarea == false"),!1)},getTextareaSavedHTML:function(){return this.getHTML()},getPreviewedHTML:function(){return this.settings.watch?this.previewContainer.html():(alert("Error: settings.watch == false"),!1)},watch:function(t){var o=this.settings;if(e.inArray(o.mode,["gfm","markdown"])<0)return this;if(this.state.watching=o.watch=!0,this.preview.show(),this.toolbar){var r=o.toolbarIconsClass.watch,n=o.toolbarIconsClass.unwatch,a=this.toolbar.find(".fa[name=watch]");a.parent().attr("title",o.lang.toolbar.watch),a.removeClass(n).addClass(r)}return this.codeMirror.css("border-right","1px solid #ddd").width(this.editor.width()/2),i=0,this.save().resize(),o.onwatch||(o.onwatch=t||function(){}),e.proxy(o.onwatch,this)(),this},unwatch:function(t){var i=this.settings;if(this.state.watching=i.watch=!1,this.preview.hide(),this.toolbar){var o=i.toolbarIconsClass.watch,r=i.toolbarIconsClass.unwatch,n=this.toolbar.find(".fa[name=watch]");n.parent().attr("title",i.lang.toolbar.unwatch),n.removeClass(o).addClass(r)}return this.codeMirror.css("border-right","none").width(this.editor.width()),this.resize(),i.onunwatch||(i.onunwatch=t||function(){}),e.proxy(i.onunwatch,this)(),this},show:function(t){t=t||function(){};var i=this;return this.editor.show(0,function(){e.proxy(t,i)()}),this},hide:function(t){t=t||function(){};var i=this;return this.editor.hide(0,function(){e.proxy(t,i)()}),this},previewing:function(){var i=this,o=this.editor,r=this.preview,n=this.toolbar,a=this.settings,s=this.codeMirror,l=this.previewContainer;if(e.inArray(a.mode,["gfm","markdown"])<0)return this;a.toolbar&&n&&(n.toggle(),n.find(".fa[name=preview]").toggleClass("active")),s.toggle();var c=function(e){e.shiftKey&&27===e.keyCode&&i.previewed()};"none"===s.css("display")?(this.state.preview=!0,this.state.fullscreen&&r.css("background","#fff"),o.find("."+this.classPrefix+"preview-close-btn").show().bind(t.mouseOrTouch("click","touchend"),function(){i.previewed()}),a.watch?l.css("padding",""):this.save(),l.addClass(this.classPrefix+"preview-active"),r.show().css({position:"",top:0,width:o.width(),height:a.autoHeight&&!this.state.fullscreen?"auto":o.height()}),this.state.loaded&&e.proxy(a.onpreviewing,this)(),e(window).bind("keyup",c)):(e(window).unbind("keyup",c),this.previewed())},previewed:function(){var i=this.editor,o=this.preview,r=this.toolbar,n=this.settings,a=this.previewContainer,s=i.find("."+this.classPrefix+"preview-close-btn");return this.state.preview=!1,this.codeMirror.show(),n.toolbar&&r.show(),o[n.watch?"show":"hide"](),s.hide().unbind(t.mouseOrTouch("click","touchend")),a.removeClass(this.classPrefix+"preview-active"),n.watch&&a.css("padding","20px"),o.css({background:null,position:"absolute",width:i.width()/2,height:n.autoHeight&&!this.state.fullscreen?"auto":i.height()-r.height(),top:n.toolbar?r.height():0}),this.state.loaded&&e.proxy(n.onpreviewed,this)(),this},fullscreen:function(){var t=this,i=this.state,o=this.editor,r=(this.preview,this.toolbar),n=this.settings,a=this.classPrefix+"fullscreen";r&&r.find(".fa[name=fullscreen]").parent().toggleClass("active");var s=function(e){e.shiftKey||27!==e.keyCode||i.fullscreen&&t.fullscreenExit()};return o.hasClass(a)?(e(window).unbind("keyup",s),this.fullscreenExit()):(i.fullscreen=!0,e("html,body").css("overflow","hidden"),o.css({width:e(window).width(),height:e(window).height()}).addClass(a),this.resize(),e.proxy(n.onfullscreen,this)(),e(window).bind("keyup",s)),this},fullscreenExit:function(){var t=this.editor,i=this.settings,o=this.toolbar,r=this.classPrefix+"fullscreen";return this.state.fullscreen=!1,o&&o.find(".fa[name=fullscreen]").parent().removeClass("active"),e("html,body").css("overflow",""),t.css({width:t.data("oldWidth"),height:t.data("oldHeight")}).removeClass(r),this.resize(),e.proxy(i.onfullscreenExit,this)(),this},executePlugin:function(i,o){var r=this,n=this.cm,a=this.settings;return o=a.pluginPath+o,"function"==typeof define?"undefined"==typeof this[i]?(alert("Error: "+i+" plugin is not found, you are not load this plugin."),this):(this[i](n),this):(e.inArray(o,t.loadFiles.plugin)<0?t.loadPlugin(o,function(){t.loadPlugins[i]=r[i],r[i](n)}):e.proxy(t.loadPlugins[i],this)(n),this)},search:function(e){var t=this.settings;return t.searchReplace?(t.readOnly||this.cm.execCommand(e||"find"),this):(alert("Error: settings.searchReplace == false"),this)},searchReplace:function(){return this.search("replace"),this},searchReplaceAll:function(){return this.search("replaceAll"),this}},t.fn.init.prototype=t.fn,t.dialogLockScreen=function(){var t=this.settings||{dialogLockScreen:!0};t.dialogLockScreen&&(e("html,body").css("overflow","hidden"),this.resize())},t.dialogShowMask=function(t){var i=this.editor,o=this.settings||{dialogShowMask:!0};t.css({top:(e(window).height()-t.height())/2+"px",left:(e(window).width()-t.width())/2+"px"}),o.dialogShowMask&&i.children("."+this.classPrefix+"mask").css("z-index",parseInt(t.css("z-index"))-1).show()},t.toolbarHandlers={undo:function(){this.cm.undo()},redo:function(){this.cm.redo()},bold:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("**"+i+"**"),""===i&&e.setCursor(t.line,t.ch+2)},del:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("~~"+i+"~~"),""===i&&e.setCursor(t.line,t.ch+2)},italic:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("*"+i+"*"),""===i&&e.setCursor(t.line,t.ch+1)},quote:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("> "+i),e.setCursor(t.line,t.ch+2)):e.replaceSelection("> "+i)},ucfirst:function(){var e=this.cm,i=e.getSelection(),o=e.listSelections();e.replaceSelection(t.firstUpperCase(i)),e.setSelections(o)},ucwords:function(){var e=this.cm,i=e.getSelection(),o=e.listSelections();e.replaceSelection(t.wordsFirstUpperCase(i)),e.setSelections(o)},uppercase:function(){var e=this.cm,t=e.getSelection(),i=e.listSelections();e.replaceSelection(t.toUpperCase()),e.setSelections(i)},lowercase:function(){var e=this.cm,t=(e.getCursor(),e.getSelection()),i=e.listSelections();e.replaceSelection(t.toLowerCase()),e.setSelections(i)},h1:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("# "+i),e.setCursor(t.line,t.ch+2)):e.replaceSelection("# "+i)},h2:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0), -e.replaceSelection("## "+i),e.setCursor(t.line,t.ch+3)):e.replaceSelection("## "+i)},h3:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("### "+i),e.setCursor(t.line,t.ch+4)):e.replaceSelection("### "+i)},h4:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("#### "+i),e.setCursor(t.line,t.ch+5)):e.replaceSelection("#### "+i)},h5:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("##### "+i),e.setCursor(t.line,t.ch+6)):e.replaceSelection("##### "+i)},h6:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("###### "+i),e.setCursor(t.line,t.ch+7)):e.replaceSelection("###### "+i)},"list-ul":function(){var e=this.cm,t=(e.getCursor(),e.getSelection());if(""===t)e.replaceSelection("- "+t);else{for(var i=t.split("\n"),o=0,r=i.length;r>o;o++)i[o]=""===i[o]?"":"- "+i[o];e.replaceSelection(i.join("\n"))}},"list-ol":function(){var e=this.cm,t=(e.getCursor(),e.getSelection());if(""===t)e.replaceSelection("1. "+t);else{for(var i=t.split("\n"),o=0,r=i.length;r>o;o++)i[o]=""===i[o]?"":o+1+". "+i[o];e.replaceSelection(i.join("\n"))}},hr:function(){{var e=this.cm,t=e.getCursor();e.getSelection()}e.replaceSelection((0!==t.ch?"\n\n":"\n")+"------------\n\n")},tex:function(){if(!this.settings.tex)return alert("settings.tex === false"),this;var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("$$"+i+"$$"),""===i&&e.setCursor(t.line,t.ch+2)},link:function(){this.executePlugin("linkDialog","link-dialog/link-dialog")},"reference-link":function(){this.executePlugin("referenceLinkDialog","reference-link-dialog/reference-link-dialog")},pagebreak:function(){if(!this.settings.pageBreak)return alert("settings.pageBreak === false"),this;{var e=this.cm;e.getSelection()}e.replaceSelection("\r\n[========]\r\n")},image:function(){this.executePlugin("imageDialog","image-dialog/image-dialog")},code:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("`"+i+"`"),""===i&&e.setCursor(t.line,t.ch+1)},"code-block":function(){this.executePlugin("codeBlockDialog","code-block-dialog/code-block-dialog")},"preformatted-text":function(){this.executePlugin("preformattedTextDialog","preformatted-text-dialog/preformatted-text-dialog")},table:function(){this.executePlugin("tableDialog","table-dialog/table-dialog")},datetime:function(){var e=this.cm,i=(e.getSelection(),new Date,this.settings.lang.name),o=t.dateFormat()+" "+t.dateFormat("zh-cn"===i||"zh-tw"===i?"cn-week-day":"week-day");e.replaceSelection(o)},emoji:function(){this.executePlugin("emojiDialog","emoji-dialog/emoji-dialog")},"html-entities":function(){this.executePlugin("htmlEntitiesDialog","html-entities-dialog/html-entities-dialog")},"goto-line":function(){this.executePlugin("gotoLineDialog","goto-line-dialog/goto-line-dialog")},watch:function(){this[this.settings.watch?"unwatch":"watch"]()},preview:function(){this.previewing()},fullscreen:function(){this.fullscreen()},clear:function(){this.clear()},search:function(){this.search()},help:function(){this.executePlugin("helpDialog","help-dialog/help-dialog")},info:function(){this.showInfoDialog()}},t.keyMaps={"Ctrl-1":"h1","Ctrl-2":"h2","Ctrl-3":"h3","Ctrl-4":"h4","Ctrl-5":"h5","Ctrl-6":"h6","Ctrl-B":"bold","Ctrl-D":"datetime","Ctrl-E":function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();return this.settings.emoji?(e.replaceSelection(":"+i+":"),void(""===i&&e.setCursor(t.line,t.ch+1))):void alert("Error: settings.emoji == false")},"Ctrl-Alt-G":"goto-line","Ctrl-H":"hr","Ctrl-I":"italic","Ctrl-K":"code","Ctrl-L":function(){var e=this.cm,t=e.getCursor(),i=e.getSelection(),o=""===i?"":' "'+i+'"';e.replaceSelection("["+i+"]("+o+")"),""===i&&e.setCursor(t.line,t.ch+1)},"Ctrl-U":"list-ul","Shift-Ctrl-A":function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();return this.settings.atLink?(e.replaceSelection("@"+i),void(""===i&&e.setCursor(t.line,t.ch+1))):void alert("Error: settings.atLink == false")},"Shift-Ctrl-C":"code","Shift-Ctrl-Q":"quote","Shift-Ctrl-S":"del","Shift-Ctrl-K":"tex","Shift-Alt-C":function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection(["```",i,"```"].join("\n")),""===i&&e.setCursor(t.line,t.ch+3)},"Shift-Ctrl-Alt-C":"code-block","Shift-Ctrl-H":"html-entities","Shift-Alt-H":"help","Shift-Ctrl-E":"emoji","Shift-Ctrl-U":"uppercase","Shift-Alt-U":"ucwords","Shift-Ctrl-Alt-U":"ucfirst","Shift-Alt-L":"lowercase","Shift-Ctrl-I":function(){var e=this.cm,t=e.getCursor(),i=e.getSelection(),o=""===i?"":' "'+i+'"';e.replaceSelection("!["+i+"]("+o+")"),""===i&&e.setCursor(t.line,t.ch+4)},"Shift-Ctrl-Alt-I":"image","Shift-Ctrl-L":"link","Shift-Ctrl-O":"list-ol","Shift-Ctrl-P":"preformatted-text","Shift-Ctrl-T":"table","Shift-Alt-P":"pagebreak",F9:"watch",F10:"preview",F11:"fullscreen"};var r=function(e){return String.prototype.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};t.trim=r;var n=function(e){return e.toLowerCase().replace(/\b(\w)|\s(\w)/g,function(e){return e.toUpperCase()})};t.ucwords=t.wordsFirstUpperCase=n;var a=function(e){return e.toLowerCase().replace(/\b(\w)/,function(e){return e.toUpperCase()})};return t.firstUpperCase=t.ucfirst=a,t.urls={atLinkBase:"https://github.com/"},t.regexs={atLink:/@(\w+)/g,email:/(\w+)@(\w+)\.(\w+)\.?(\w+)?/g,emailLink:/(mailto:)?([\w\.\_]+)@(\w+)\.(\w+)\.?(\w+)?/g,emoji:/:([\w\+-]+):/g,emojiDatetime:/(\d{2}:\d{2}:\d{2})/g,twemoji:/:(tw-([\w]+)-?(\w+)?):/g,fontAwesome:/:(fa-([\w]+)(-(\w+)){0,}):/g,editormdLogo:/:(editormd-logo-?(\w+)?):/g,pageBreak:/^\[[=]{8,}\]$/},t.emoji={path:"/static/editor.md/plugins/emoji-dialog/emoji/",ext:".png"},t.twemoji={path:"http://twemoji.maxcdn.com/36x36/",ext:".png"},t.markedRenderer=function(i,o){var n={toc:!0,tocm:!1,tocStartLevel:1,pageBreak:!0,atLink:!0,emailLink:!0,taskList:!1,emoji:!1,tex:!1,flowChart:!1,sequenceDiagram:!1},a=e.extend(n,o||{}),s=t.$marked,l=new s.Renderer;i=i||[];var c=t.regexs,h=c.atLink,d=c.emoji,u=c.email,f=c.emailLink,g=c.twemoji,p=c.fontAwesome,m=c.editormdLogo,w=c.pageBreak;return l.emoji=function(e){e=e.replace(t.regexs.emojiDatetime,function(e){return e.replace(/:/g,":")});var i=e.match(d);if(!i||!a.emoji)return e;for(var o=0,r=i.length;r>o;o++)":+1:"===i[o]&&(i[o]=":\\+1:"),e=e.replace(new RegExp(i[o]),function(e,i){var o=e.match(p),r=e.replace(/:/g,"");if(o)for(var n=0,a=o.length;a>n;n++){var s=o[n].replace(/:/g,"");return''}else{var l=e.match(m),c=e.match(g);if(l)for(var h=0,d=l.length;d>h;h++){var u=l[h].replace(/:/g,"");return''}else{if(!c){var f="+1"===r?"plus1":r;return f="black_large_square"===f?"black_square":f,f="moon"===f?"waxing_gibbous_moon":f,':'+r+':'}for(var w=0,v=c.length;v>w;w++){var k=c[w].replace(/:/g,"").replace("tw-","");return'twemoji-'+k+''}}}});return e},l.atLink=function(i){return h.test(i)?(a.atLink&&(i=i.replace(u,function(e,t,i,o){return e.replace(/@/g,"_#_@_#_")}),i=i.replace(h,function(e,i){return''+e+""}).replace(/_#_@_#_/g,"@")),a.emailLink&&(i=i.replace(f,function(t,i,o,r,n){return!i&&e.inArray(n,"jpg|jpeg|png|gif|webp|ico|icon|pdf".split("|"))<0?''+t+"":t})),i):i},l.link=function(e,t,i){if(this.options.sanitize){try{var o=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(r){return""}if(0===o.indexOf("javascript:"))return""}var n=''+i.replace(/@/g,"@")+""):(t&&(n+=' title="'+t+'"'),n+=">"+i+"")},l.heading=function(e,t,o){var n=e,a=/\s*\]*)\>(.*)\<\/a\>\s*/;if(a.test(e)){var s=[];e=e.split(/\]+)\>([^\>]*)\<\/a\>/);for(var l=0,c=e.length;c>l;l++)s.push(e[l].replace(/\s*href\=\"(.*)\"\s*/g,""));e=s.join(" ")}e=r(e);var h=e.toLowerCase().replace(/[^\w]+/g,"-"),d={text:e,level:t,slug:h},u=/^[\u4e00-\u9fa5]+$/.test(e),f=u?escape(e).replace(/\%/g,""):e.toLowerCase().replace(/[^\w]+/g,"-");i.push(d);var g="';return g+='',g+='',g+=this.atLink(a?this.emoji(n):this.emoji(e)),g+=""},l.pageBreak=function(e){return w.test(e)&&a.pageBreak&&(e='
    '),e},l.paragraph=function(e){var i=/\$\$(.*)\$\$/g.test(e),o=/^\$\$(.*)\$\$$/.test(e),r=o?' class="'+t.classNames.tex+'"':"",n=a.tocm?/^(\[TOC\]|\[TOCM\])$/.test(e):/^\[TOC\]$/.test(e),s=/^\[TOCM\]$/.test(e);e=!o&&i?e.replace(/(\$\$([^\$]*)\$\$)+/g,function(e,i){return''+i.replace(/\$/g,"")+""}):o?e.replace(/\$/g,""):e;var l='
    '+e+"
    ";return n?s?'
    '+l+"

    ":l:w.test(e)?this.pageBreak(e):""+this.atLink(this.emoji(e))+"

    \n"},l.code=function(e,i,o){return"seq"===i||"sequence"===i?'
    '+e+"
    ":"flow"===i?'
    '+e+"
    ":"math"===i||"latex"===i||"katex"===i?'

    '+e+"

    ":s.Renderer.prototype.code.apply(this,arguments)},l.tablecell=function(e,t){var i=t.header?"th":"td",o=t.align?"<"+i+' style="text-align:'+t.align+'">':"<"+i+">";return o+this.atLink(this.emoji(e))+"\n"},l.listitem=function(e){return a.taskList&&/^\s*\[[x\s]\]\s*/.test(e)?(e=e.replace(/^\s*\[\s\]\s*/,' ').replace(/^\s*\[x\]\s*/,' '),'
  • '+this.atLink(this.emoji(e))+"
  • "):"
  • "+this.atLink(this.emoji(e))+"
  • "},l},t.markdownToCRenderer=function(e,t,i,o){var r="",n=0,a=this.classPrefix;o=o||1;for(var s=0,l=e.length;l>s;s++){var c=e[s].text,h=e[s].level;o>h||(r+=h>n?"":n>h?new Array(n-h+2).join(""):"",r+='
  • '+c+"
      ",n=h)}var d=t.find(".markdown-toc");if(d.length<1&&"false"===t.attr("previewContainer")){var u='
      ';u=i?'
      '+u+"
      ":u,t.html(u),d=t.find(".markdown-toc")}return i&&d.wrap('

      '),d.html('
        ').children(".markdown-toc-list").html(r.replace(/\r?\n?\\<\/ul\>/g,"")),d},t.tocDropdownMenu=function(t,i){i=i||"Table of Contents";var o=400,r=t.find("."+this.classPrefix+"toc-menu");return r.each(function(){var t=e(this),r=t.children(".markdown-toc"),n='',a=''+n+i+"",s=r.children("ul"),l=s.find("li");r.append(a),l.first().before("
      • "+i+" "+n+"

      • "),t.mouseover(function(){s.show(),l.each(function(){var t=e(this),i=t.children("ul");if(""===i.html()&&i.remove(),i.length>0&&""!==i.html()){var r=t.children("a").first();r.children(".fa").length<1&&r.append(e(n).css({"float":"right",paddingTop:"4px"}))}t.mouseover(function(){i.css("z-index",o).show(),o+=1}).mouseleave(function(){i.hide()})})}).mouseleave(function(){s.hide()})}),r},t.filterHTMLTags=function(t,i){if("string"!=typeof t&&(t=new String(t)),"string"!=typeof i)return t;for(var o=i.split("|"),r=o[0].split(","),n=o[1],a=0,s=r.length;s>a;a++){var l=r[a];t=t.replace(new RegExp("]*)>([^>]*)","igm"),"")}if("undefined"!=typeof n){var c=/\<(\w+)\s*([^\>]*)\>([^\>]*)\<\/(\w+)\>/gi;t="*"===n?t.replace(c,function(e,t,i,o,r){return"<"+t+">"+o+""}):"on*"===n?t.replace(c,function(t,i,o,r,n){var a=e("<"+i+">"+r+""),s=e(t)[0].attributes,l={};e.each(s,function(e,t){'"'!==t.nodeName&&(l[t.nodeName]=t.nodeValue)}),e.each(l,function(e){0===e.indexOf("on")&&delete l[e]}),a.attr(l);var c="undefined"!=typeof a[1]?e(a[1]).text():"";return a[0].outerHTML+c}):t.replace(c,function(t,i,o,r){var a=n.split(","),s=e(t);return s.html(r),e.each(a,function(e){s.attr(a[e],null)}),s[0].outerHTML})}return t},t.markdownToHTML=function(i,o){var r={gfm:!0,toc:!0,tocm:!1,tocStartLevel:1,tocTitle:"目录",tocDropdown:!1,tocContainer:"",markdown:"",markdownSourceCode:!1,htmlDecode:!1,autoLoadKaTeX:!0,pageBreak:!0,atLink:!0,emailLink:!0,tex:!1,taskList:!1,emoji:!1,flowChart:!1,sequenceDiagram:!1,previewCodeHighlight:!0};t.$marked=marked;var n=e("#"+i),a=n.settings=e.extend(!0,r,o||{}),s=n.find("textarea");s.length<1&&(n.append(""),s=n.find("textarea"));var l=""===a.markdown?s.val():a.markdown,c=[],h={toc:a.toc,tocm:a.tocm,tocStartLevel:a.tocStartLevel,taskList:a.taskList,emoji:a.emoji,tex:a.tex,pageBreak:a.pageBreak,atLink:a.atLink,emailLink:a.emailLink,flowChart:a.flowChart,sequenceDiagram:a.sequenceDiagram,previewCodeHighlight:a.previewCodeHighlight},d={renderer:t.markedRenderer(c,h),gfm:a.gfm,tables:!0,breaks:!0,pedantic:!1,sanitize:a.htmlDecode?!1:!0,smartLists:!0,smartypants:!0};l=new String(l);var u=marked(l,d);u=t.filterHTMLTags(u,a.htmlDecode),a.markdownSourceCode?s.text(l):s.remove(),n.addClass("markdown-body "+this.classPrefix+"html-preview").append(u);var f=""!==a.tocContainer?e(a.tocContainer):n;if(""!==a.tocContainer&&f.attr("previewContainer",!1),a.toc&&(n.tocContainer=this.markdownToCRenderer(c,f,a.tocDropdown,a.tocStartLevel),(a.tocDropdown||n.find("."+this.classPrefix+"toc-menu").length>0)&&this.tocDropdownMenu(n,a.tocTitle),""!==a.tocContainer&&n.find(".editormd-toc-menu, .editormd-markdown-toc").remove()),a.previewCodeHighlight&&(n.find("pre").addClass("prettyprint linenums"),prettyPrint()),t.isIE8||(a.flowChart&&n.find(".flowchart").flowChart(),a.sequenceDiagram&&n.find(".sequence-diagram").sequenceDiagram({theme:"simple"})),a.tex){var g=function(){n.find("."+t.classNames.tex).each(function(){var t=e(this);katex.render(t.html().replace(/</g,"<").replace(/>/g,">"),t[0]),t.find(".katex").css("font-size","1.6em")})};!a.autoLoadKaTeX||t.$katex||t.kaTeXLoaded?g():this.loadKaTeX(function(){t.$katex=katex,t.kaTeXLoaded=!0,g()})}return n.getMarkdown=function(){return s.val()},n},t.themes=["default","dark"],t.previewThemes=["default","dark"],t.editorThemes=["default","3024-day","3024-night","ambiance","ambiance-mobile","base16-dark","base16-light","blackboard","cobalt","eclipse","elegant","erlang-dark","lesser-dark","mbo","mdn-like","midnight","monokai","neat","neo","night","paraiso-dark","paraiso-light","pastel-on-dark","rubyblue","solarized","the-matrix","tomorrow-night-eighties","twilight","vibrant-ink","xq-dark","xq-light"],t.loadPlugins={},t.loadFiles={js:[],css:[],plugin:[]},t.loadPlugin=function(e,i,o){i=i||function(){},this.loadScript(e,function(){t.loadFiles.plugin.push(e),i()},o)},t.loadCSS=function(e,i,o){o=o||"head",i=i||function(){};var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.onload=r.onreadystatechange=function(){t.loadFiles.css.push(e),i()},r.href=e+".css","head"===o?document.getElementsByTagName("head")[0].appendChild(r):document.body.appendChild(r)},t.isIE="Microsoft Internet Explorer"==navigator.appName,t.isIE8=t.isIE&&"8."==navigator.appVersion.match(/8./i),t.loadScript=function(e,i,o){o=o||"head",i=i||function(){};var r=null;r=document.createElement("script"),r.id=e.replace(/[\./]+/g,"-"),r.type="text/javascript",r.src=e+".js",t.isIE8?r.onreadystatechange=function(){r.readyState&&("loaded"===r.readyState||"complete"===r.readyState)&&(r.onreadystatechange=null,t.loadFiles.js.push(e),i())}:r.onload=function(){t.loadFiles.js.push(e),i()},"head"===o?document.getElementsByTagName("head")[0].appendChild(r):document.body.appendChild(r)},t.katexURL={css:"/static/katex/katex.min",js:"/static/katex/katex.min"},t.kaTeXLoaded=!1,t.loadKaTeX=function(e){t.loadCSS(t.katexURL.css,function(){t.loadScript(t.katexURL.js,e||function(){})})},t.lockScreen=function(t){e("html,body").css("overflow",t?"hidden":"")},t.createDialog=function(i){var o={name:"",width:420,height:240,title:"",drag:!0,closed:!0,content:"",mask:!0,maskStyle:{backgroundColor:"#fff",opacity:.1},lockScreen:!0,footer:!0,buttons:!1};i=e.extend(!0,o,i);var r=this,n=this.editor,a=t.classPrefix,s=(new Date).getTime(),l=""===i.name?a+"dialog-"+s:i.name,c=t.mouseOrTouch,h='
        ';""!==i.title&&(h+='
        ",h+=''+i.title+"",h+="
        "),i.closed&&(h+=''),h+='
        '+i.content,(i.footer||"string"==typeof i.footer)&&(h+='"),h+="
        ",h+='
        ',h+='
        ',h+="
        ",n.append(h);var d=n.find("."+l);d.lockScreen=function(t){return i.lockScreen&&(e("html,body").css("overflow",t?"hidden":""),r.resize()),d},d.showMask=function(){return i.mask&&n.find("."+a+"mask").css(i.maskStyle).css("z-index",t.dialogZindex-1).show(),d},d.hideMask=function(){return i.mask&&n.find("."+a+"mask").hide(),d},d.loading=function(e){var t=d.find("."+a+"dialog-mask");return t[e?"show":"hide"](),d},d.lockScreen(!0).showMask(),d.show().css({zIndex:t.dialogZindex,border:t.isIE8?"1px solid #ddd":"",width:"number"==typeof i.width?i.width+"px":i.width,height:"number"==typeof i.height?i.height+"px":i.height});var u=function(){d.css({top:(e(window).height()-d.height())/2+"px",left:(e(window).width()-d.width())/2+"px"})};if(u(),e(window).resize(u),d.children("."+a+"dialog-close").bind(c("click","touchend"),function(){d.hide().lockScreen(!1).hideMask()}),"object"==typeof i.buttons){var f=d.footer=d.find("."+a+"dialog-footer");for(var g in i.buttons){var p=i.buttons[g],m=a+g+"-btn";f.append('"),p[1]=e.proxy(p[1],d),f.children("."+m).bind(c("click","touchend"),p[1])}}if(""!==i.title&&i.drag){var w,v,k=d.children("."+a+"dialog-header");i.mask||k.bind(c("click","touchend"),function(){t.dialogZindex+=2,d.css("z-index",t.dialogZindex)}),k.mousedown(function(e){e=e||window.event,w=e.clientX-parseInt(d[0].style.left),v=e.clientY-parseInt(d[0].style.top),document.onmousemove=y});var b=function(e){e.removeClass(a+"user-unselect").off("selectstart")},x=function(e){e.addClass(a+"user-unselect").on("selectstart",function(e){return!1})},y=function(t){t=t||window.event;var i,o,r=parseInt(d[0].style.left),n=parseInt(d[0].style.top);r>=0?r+d.width()<=e(window).width()?i=t.clientX-w:(i=e(window).width()-d.width(),document.onmousemove=null):(i=0,document.onmousemove=null),n>=0?o=t.clientY-v:(o=0,document.onmousemove=null),document.onselectstart=function(){return!1},x(e("body")),x(d),d[0].style.left=i+"px",d[0].style.top=o+"px"};document.onmouseup=function(){b(e("body")),b(d),document.onselectstart=null,document.onmousemove=null},k.touchDraggable=function(){var t=null,i=function(i){var o=i.originalEvent,r=e(this).parent().position();t={x:o.changedTouches[0].pageX-r.left,y:o.changedTouches[0].pageY-r.top}},o=function(i){i.preventDefault();var o=i.originalEvent;e(this).parent().css({top:o.changedTouches[0].pageY-t.y,left:o.changedTouches[0].pageX-t.x})};this.bind("touchstart",i).bind("touchmove",o)},k.touchDraggable()}return t.dialogZindex+=2,d},t.mouseOrTouch=function(e,t){e=e||"click",t=t||"touchend";var i=e;try{document.createEvent("TouchEvent"),i=t}catch(o){}return i},t.dateFormat=function(e){e=e||"";var t=function(e){return 10>e?"0"+e:e},i=new Date,o=i.getFullYear(),r=o.toString().slice(2,4),n=t(i.getMonth()+1),a=t(i.getDate()),s=i.getDay(),l=t(i.getHours()),c=t(i.getMinutes()),h=t(i.getSeconds()),d=t(i.getMilliseconds()),u="",f=r+"-"+n+"-"+a,g=o+"-"+n+"-"+a,p=l+":"+c+":"+h;switch(e){case"UNIX Time":u=i.getTime();break;case"UTC":u=i.toUTCString();break;case"yy":u=r;break;case"year":case"yyyy":u=o;break;case"month":case"mm":u=n;break;case"cn-week-day":case"cn-wd":var m=["日","一","二","三","四","五","六"];u="星期"+m[s];break;case"week-day":case"wd":var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];u=w[s];break;case"day":case"dd":u=a;break;case"hour":case"hh":u=l;break;case"min":case"ii":u=c;break;case"second":case"ss":u=h;break;case"ms":u=d;break;case"yy-mm-dd":u=f;break;case"yyyy-mm-dd":u=g;break;case"yyyy-mm-dd h:i:s ms":case"full + ms":u=g+" "+p+" "+d;break;case"full":case"yyyy-mm-dd h:i:s":default:u=g+" "+p}return u},t}}); \ No newline at end of file +(function(e){"use strict";if(typeof require==="function"&&typeof exports==="object"&&typeof module==="object"){module.exports=e}else if(typeof define==="function"){if(define.amd){}else{define(["jquery"],e)}}else{window.editormd=e()}})(function(){"use strict";var $=typeof jQuery!=="undefined"?jQuery:Zepto;if(typeof $==="undefined"){return}var editormd=function(e,t){return new editormd.fn.init(e,t)};editormd.title=editormd.$name="Editor.md";editormd.version="1.5.0";editormd.homePage="https://pandao.github.io/editor.md/";editormd.classPrefix="editormd-";editormd.toolbarModes={full:["undo","redo","|","bold","del","italic","quote","ucwords","uppercase","lowercase","|","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","|","link","reference-link","image","code","preformatted-text","code-block","table","datetime","emoji","html-entities","pagebreak","|","goto-line","watch","preview","fullscreen","clear","search","|","help","info"],simple:["undo","redo","|","bold","del","italic","quote","uppercase","lowercase","|","h1","h2","h3","h4","h5","h6","|","list-ul","list-ol","hr","|","watch","preview","fullscreen","|","help","info"],mini:["undo","redo","|","watch","preview","|","help","info"]};editormd.defaults={mode:"gfm",name:"",value:"",theme:"",editorTheme:"default",previewTheme:"",markdown:"",appendMarkdown:"",width:"100%",height:"100%",path:"./lib/",pluginPath:"",delay:300,autoLoadModules:true,watch:true,placeholder:"Enjoy Markdown! coding now...",gotoLine:true,codeFold:false,autoHeight:false,autoFocus:true,autoCloseTags:true,searchReplace:true,syncScrolling:true,readOnly:false,tabSize:4,indentUnit:4,lineNumbers:true,lineWrapping:true,autoCloseBrackets:true,showTrailingSpace:true,matchBrackets:true,indentWithTabs:true,styleSelectedText:true,matchWordHighlight:true,styleActiveLine:true,dialogLockScreen:true,dialogShowMask:true,dialogDraggable:true,dialogMaskBgColor:"#fff",dialogMaskOpacity:.1,fontSize:"15px",saveHTMLToTextarea:false,disabledKeyMaps:[],onload:function(){},onresize:function(){},onchange:function(){},onwatch:null,onunwatch:null,onpreviewing:function(){},onpreviewed:function(){},onfullscreen:function(){},onfullscreenExit:function(){},onscroll:function(){},onpreviewscroll:function(){},imageUpload:false,imageFormats:["jpg","jpeg","gif","png","bmp","webp"],imageUploadURL:"",crossDomainUpload:false,uploadCallbackURL:"",toc:true,tocm:false,tocTitle:"",tocDropdown:false,tocContainer:"",tocStartLevel:1,htmlDecode:false,pageBreak:true,atLink:false,emailLink:true,taskList:true,emoji:false,tex:false,flowChart:false,sequenceDiagram:false,mindMap:true,echart:true,previewCodeHighlight:true,toolbar:true,toolbarAutoFixed:true,toolbarIcons:"full",toolbarTitles:{},toolbarHandlers:{ucwords:function(){return editormd.toolbarHandlers.ucwords},lowercase:function(){return editormd.toolbarHandlers.lowercase}},toolbarCustomIcons:{lowercase:'a',ucwords:'Aa'},toolbarIconsClass:{undo:"fa-undo",redo:"fa-repeat",bold:"fa-bold",mark:"fa-paint-brush",del:"fa-strikethrough",italic:"fa-italic",quote:"fa-quote-left",uppercase:"fa-font",h1:editormd.classPrefix+"bold",h2:editormd.classPrefix+"bold",h3:editormd.classPrefix+"bold",h4:editormd.classPrefix+"bold",h5:editormd.classPrefix+"bold",h6:editormd.classPrefix+"bold","list-ul":"fa-list-ul","list-ol":"fa-list-ol",hr:"fa-minus",link:"fa-link","reference-link":"fa-anchor",image:"fa-picture-o",code:"fa-code","preformatted-text":"fa-file-code-o","code-block":"fa-file-code-o",table:"fa-table",datetime:"fa-clock-o",emoji:"fa-smile-o","html-entities":"fa-copyright",pagebreak:"fa-newspaper-o","goto-line":"fa-terminal",watch:"fa-eye-slash",unwatch:"fa-eye",preview:"fa-desktop",search:"fa-search",fullscreen:"fa-arrows-alt",clear:"fa-eraser",help:"fa-question-circle",info:"fa-info-circle"},toolbarIconTexts:{},toolbarIconSvgs:{},lang:{name:"zh-cn",description:"开源在线Markdown编辑器
        Open source online Markdown editor.",tocTitle:"目录",toolbar:{undo:"撤销(Ctrl+Z)",redo:"重做(Ctrl+Y)",bold:"粗体",mark:"文本高亮",del:"删除线",italic:"斜体",quote:"引用",ucwords:"将每个单词首字母转成大写",uppercase:"将所选转换成大写",lowercase:"将所选转换成小写",h1:"标题1",h2:"标题2",h3:"标题3",h4:"标题4",h5:"标题5",h6:"标题6","list-ul":"无序列表","list-ol":"有序列表",hr:"横线",link:"链接","reference-link":"引用链接",image:"添加图片",code:"行内代码","preformatted-text":"预格式文本 / 代码块(缩进风格)","code-block":"代码块(多语言风格)",table:"添加表格",datetime:"日期时间",emoji:"Emoji表情","html-entities":"HTML实体字符",pagebreak:"插入分页符","goto-line":"跳转到行",watch:"关闭实时预览",unwatch:"开启实时预览",preview:"全窗口预览HTML(按 Shift + ESC还原)",fullscreen:"全屏(按ESC还原)",clear:"清空",search:"搜索",help:"使用帮助",info:"关于"+editormd.title},buttons:{enter:"确定",cancel:"取消",close:"关闭"},dialog:{link:{title:"添加链接",url:"链接地址",urlTitle:"链接标题",urlEmpty:"错误:请填写链接地址。"},referenceLink:{title:"添加引用链接",name:"引用名称",url:"链接地址",urlId:"链接ID",urlTitle:"链接标题",nameEmpty:"错误:引用链接的名称不能为空。",idEmpty:"错误:请填写引用链接的ID。",urlEmpty:"错误:请填写引用链接的URL地址。"},image:{title:"添加图片",url:"图片地址",link:"图片链接",alt:"图片描述",uploadButton:"本地上传",imageURLEmpty:"错误:图片地址不能为空。",uploadFileEmpty:"错误:上传的图片不能为空。",formatNotAllowed:"错误:只允许上传图片文件,允许上传的图片文件格式有:"},preformattedText:{title:"添加预格式文本或代码块",emptyAlert:"错误:请填写预格式文本或代码的内容。"},codeBlock:{title:"添加代码块",selectLabel:"代码语言:",selectDefaultText:"请选择代码语言",otherLanguage:"其他语言",unselectedLanguageAlert:"错误:请选择代码所属的语言类型。",codeEmptyAlert:"错误:请填写代码内容。"},htmlEntities:{title:"HTML 实体字符"},help:{title:"使用帮助"}}}};editormd.classNames={tex:editormd.classPrefix+"tex"};editormd.dialogZindex=99999;editormd.$katex=null;editormd.$marked=null;editormd.$CodeMirror=null;editormd.$prettyPrint=null;var timer,flowchartTimer;editormd.prototype=editormd.fn={state:{watching:false,loaded:false,preview:false,fullscreen:false},init:function(e,t){t=t||{};if(typeof e==="object"){t=e}var i=this;var r=this.classPrefix=editormd.classPrefix;var a=this.settings=$.extend(true,editormd.defaults,t);e=typeof e==="object"?a.id:e;var o=this.editor=$("#"+e);this.id=e;this.lang=a.lang;var n=this.classNames={textarea:{html:r+"html-textarea",markdown:r+"markdown-textarea"}};a.pluginPath=a.pluginPath===""?a.path+"../plugins/":a.pluginPath;this.state.watching=a.watch?true:false;if(!o.hasClass("editormd")){o.addClass("editormd")}o.css({width:typeof a.width==="number"?a.width+"px":a.width,height:typeof a.height==="number"?a.height+"px":a.height});if(a.autoHeight){o.css("height","auto")}var s=this.markdownTextarea=o.children("textarea");s.addClass(n.textarea.markdown).attr("placeholder",a.placeholder);if(typeof s.attr("name")==="undefined"||s.attr("name")===""){s.attr("name",a.name!==""?a.name:e+"-markdown-doc")}var l=[!a.readOnly?'':"",a.saveHTMLToTextarea?'':"",'
        ','
        ','
        '].join("\n");o.append(l).addClass(r+"vertical");if(a.theme!==""){o.addClass(r+"theme-"+a.theme)}this.mask=o.children("."+r+"mask");this.containerMask=o.children("."+r+"container-mask");if(a.markdown!==""){s.val(a.markdown)}if(a.appendMarkdown!==""){s.val(s.val()+a.appendMarkdown)}this.htmlTextarea=o.children("."+n.textarea.html);this.preview=o.children("."+r+"preview");this.previewContainer=this.preview.children("."+r+"preview-container");if(a.previewTheme!==""){this.preview.addClass(r+"preview-theme-"+a.previewTheme)}if(typeof define==="function"&&define.amd){if(typeof katex!=="undefined"){editormd.$katex=katex}if(a.searchReplace&&!a.readOnly){editormd.loadCSS(a.path+"codemirror/addon/dialog/dialog");editormd.loadCSS(a.path+"codemirror/addon/search/matchesonscrollbar")}}if(typeof define==="function"&&define.amd||!a.autoLoadModules){if(typeof CodeMirror!=="undefined"){editormd.$CodeMirror=CodeMirror}if(typeof marked!=="undefined"){editormd.$marked=marked}this.setCodeMirror().setToolbar().loadedDisplay()}else{this.loadQueues()}return this},loadQueues:function(){var e=this;var t=this.settings;var i=t.path;var r=function(){if(editormd.isIE8){e.loadedDisplay();return}if(t.flowChart||t.sequenceDiagram){editormd.loadScript(i+"raphael.min",function(){editormd.loadScript(i+"underscore.min",function(){if(!t.flowChart&&t.sequenceDiagram){editormd.loadScript(i+"sequence-diagram.min",function(){e.loadedDisplay()})}else if(t.flowChart&&!t.sequenceDiagram){editormd.loadScript(i+"flowchart.min",function(){editormd.loadScript(i+"jquery.flowchart.min",function(){e.loadedDisplay()})})}else if(t.flowChart&&t.sequenceDiagram){editormd.loadScript(i+"flowchart.min",function(){editormd.loadScript(i+"jquery.flowchart.min",function(){editormd.loadScript(i+"sequence-diagram.min",function(){e.loadedDisplay()})})})}})})}else{e.loadedDisplay()}};editormd.loadScript(i+"echarts.min",function(){});editormd.loadScript(i+"mindmap/d3@5",function(){editormd.loadScript(i+"mindmap/transform.min",function(){editormd.loadScript(i+"mindmap/view.min",function(){})})});editormd.loadCSS(i+"codemirror/lib/codemirror");if(t.searchReplace&&!t.readOnly){editormd.loadCSS(i+"codemirror/addon/dialog/dialog");editormd.loadCSS(i+"codemirror/addon/search/matchesonscrollbar");editormd.loadCSS(i+"codemirror/addon/hint/show-hint")}if(t.codeFold){editormd.loadCSS(i+"codemirror/addon/fold/foldgutter")}editormd.loadScript(i+"codemirror/lib/codemirror",function(){editormd.$CodeMirror=CodeMirror;editormd.loadScript(i+"codemirror/modes",function(){editormd.loadScript(i+"codemirror/addons",function(){e.setCodeMirror();if(t.mode!=="gfm"&&t.mode!=="markdown"){e.loadedDisplay();return false}e.setToolbar();editormd.loadScript(i+"marked.min",function(){editormd.$marked=marked;if(t.previewCodeHighlight){editormd.loadScript(i+"prettify.min",function(){r()})}else{r()}})})})});return this},setTheme:function(e){var t=this.editor;var i=this.settings.theme;var r=this.classPrefix+"theme-";t.removeClass(r+i).addClass(r+e);this.settings.theme=e;return this},setEditorTheme:function(e){var t=this.settings;t.editorTheme=e;if(e!=="default"){editormd.loadCSS(t.path+"codemirror/theme/"+t.editorTheme)}this.cm.setOption("theme",e);return this},setCodeMirrorTheme:function(e){this.setEditorTheme(e);return this},setPreviewTheme:function(e){var t=this.preview;var i=this.settings.previewTheme;var r=this.classPrefix+"preview-theme-";t.removeClass(r+i).addClass(r+e);this.settings.previewTheme=e;return this},setCodeMirror:function(){var e=this.settings;var t=this.editor;if(e.editorTheme!=="default"){editormd.loadCSS(e.path+"codemirror/theme/"+e.editorTheme)}var l=[["#","##","###","####","#####","######","#######"],["`","``","```","```\n\n```","```echart\n\n```","```mindmap\n\n```"],["*","**"],["[","[]()"],["!","![]()"],["-","- [] ","- [x] "]];function i(s,e){return new Promise(function(n){setTimeout(function(){var e=s.getCursor(),t=s.getLine(e.line);console.log(e);var i=e.ch,r=e.ch;while(i&&/\W/.test(t.charAt(i-1)))--i;while(ra){alert("Error: The line number range 1-"+a);return this}i.setCursor({line:e,ch:0});var n=i.getScrollInfo();var s=n.clientHeight;var l=i.charCoords({line:e,ch:0},"local");i.scrollTo(null,(l.top+l.bottom-s)/2);if(t.watch){var d=this.codeMirror.find(".CodeMirror-scroll")[0];var c=$(d).height();var h=d.scrollTop;var f=h/d.scrollHeight;if(h===0){o.scrollTop(0)}else if(h+c>=d.scrollHeight-16){o.scrollTop(o[0].scrollHeight)}else{o.scrollTop(o[0].scrollHeight*f)}}i.focus();return this},extend:function(){if(typeof arguments[1]!=="undefined"){if(typeof arguments[1]==="function"){arguments[1]=$.proxy(arguments[1],this)}this[arguments[0]]=arguments[1]}if(typeof arguments[0]==="object"&&typeof arguments[0].length==="undefined"){$.extend(true,this,arguments[0])}return this},set:function(e,t){if(typeof t!=="undefined"&&typeof t==="function"){t=$.proxy(t,this)}this[e]=t;return this},config:function(e,t){var i=this.settings;if(typeof e==="object"){i=$.extend(true,i,e)}if(typeof e==="string"){i[e]=t}this.settings=i;this.recreate();return this},on:function(e,t){var i=this.settings;if(typeof i["on"+e]!=="undefined"){i["on"+e]=$.proxy(t,this)}return this},off:function(e){var t=this.settings;if(typeof t["on"+e]!=="undefined"){t["on"+e]=function(){}}return this},showToolbar:function(e){var t=this.settings;if(t.readOnly){return this}if(t.toolbar&&(this.toolbar.length<1||this.toolbar.find("."+this.classPrefix+"menu").html()==="")){this.setToolbar()}t.toolbar=true;this.toolbar.show();this.resize();$.proxy(e||function(){},this)();return this},hideToolbar:function(e){var t=this.settings;t.toolbar=false;this.toolbar.hide();this.resize();$.proxy(e||function(){},this)();return this},setToolbarAutoFixed:function(e){var t=this.state;var i=this.editor;var r=this.toolbar;var a=this.settings;if(typeof e!=="undefined"){a.toolbarAutoFixed=e}var o=function(){var e=$(window);var t=e.scrollTop();if(!a.toolbarAutoFixed){return false}if(t-i.offset().top>10&&t-i.offset().top
          ';t.append(o);a=this.toolbar=t.children("."+r+"toolbar")}if(!e.toolbar){a.hide();return this}a.show();var n=typeof e.toolbarIcons==="function"?e.toolbarIcons():typeof e.toolbarIcons==="string"?editormd.toolbarModes[e.toolbarIcons]:e.toolbarIcons;var s=a.find("."+this.classPrefix+"menu"),l="";var d=false;for(var c=0,h=n.length;c|'}else{var u=/h(\d)/.test(f);var m=f;if(f==="watch"&&!e.watch){m="unwatch"}var p=e.lang.toolbar[m];var g=e.toolbarIconTexts[m];var v=e.toolbarIconSvgs[m];var w=e.toolbarIconsClass[m];p=typeof p==="undefined"?"":p;g=typeof g==="undefined"?"":g;v=typeof v==="undefined"?"":v;w=typeof w==="undefined"?"":w;var k=d?'
        • ':"
        • ";if(typeof e.toolbarCustomIcons[f]!=="undefined"&&typeof e.toolbarCustomIcons[f]!=="function"){k+=e.toolbarCustomIcons[f]}else{k+='';k+=''+(u?f.toUpperCase():w===""?g:"")+"";k+=""}k+="
        • ";l=d?k+l:l+k}}s.html(l);s.find('[title="Lowercase"]').attr("title",e.lang.toolbar.lowercase);s.find('[title="ucwords"]').attr("title",e.lang.toolbar.ucwords);this.setToolbarHandler();this.setToolbarAutoFixed();return this},dialogLockScreen:function(){$.proxy(editormd.dialogLockScreen,this)();return this},dialogShowMask:function(e){$.proxy(editormd.dialogShowMask,this)(e);return this},getToolbarHandles:function(e){var t=this.toolbarHandlers=editormd.toolbarHandlers;return e&&typeof toolbarIconHandlers[e]!=="undefined"?t[e]:t},setToolbarHandler:function(){var o=this;var n=this.settings;if(!n.toolbar||n.readOnly){return this}var e=this.toolbar;var s=this.cm;var t=this.classPrefix;var i=this.toolbarIcons=e.find("."+t+"menu > li > a");var l=this.getToolbarHandles();i.bind(editormd.mouseOrTouch("click","touchend"),function(e){var t=$(this).children(".fa");var i=t.attr("name");var r=s.getCursor();var a=s.getSelection();if(i===""){return}o.activeIcon=t;if(typeof l[i]!=="undefined"){$.proxy(l[i],o)(s)}else{if(typeof n.toolbarHandlers[i]!=="undefined"){$.proxy(n.toolbarHandlers[i],o)(s,t,r,a)}}if(i!=="link"&&i!=="reference-link"&&i!=="image"&&i!=="code-block"&&i!=="preformatted-text"&&i!=="watch"&&i!=="preview"&&i!=="search"&&i!=="fullscreen"&&i!=="info"){s.focus()}return false});return this},createDialog:function(e){return $.proxy(editormd.createDialog,this)(e)},createInfoDialog:function(){var e=this;var t=this.editor;var i=this.classPrefix;var r=['
          ','
          ','

          '+editormd.title+"v"+editormd.version+"

          ","

          "+this.lang.description+"

          ",'

          '+editormd.homePage+'

          ','

          Copyright © 2015 Pandao, The MIT License.

          ',"
          ",'',"
          "].join("\n");t.append(r);var a=this.infoDialog=t.children("."+i+"dialog-info");a.find("."+i+"dialog-close").bind(editormd.mouseOrTouch("click","touchend"),function(){e.hideInfoDialog()});a.css("border",editormd.isIE8?"1px solid #ddd":"").css("z-index",editormd.dialogZindex).show();this.infoDialogPosition();return this},infoDialogPosition:function(){var e=this.infoDialog;var t=function(){e.css({top:($(window).height()-e.height())/2+"px",left:($(window).width()-e.width())/2+"px"})};t();$(window).resize(t);return this},showInfoDialog:function(){$("html,body").css("overflow-x","hidden");var e=this;var t=this.editor;var i=this.settings;var r=this.infoDialog=t.children("."+this.classPrefix+"dialog-info");if(r.length<1){this.createInfoDialog()}this.lockScreen(true);this.mask.css({opacity:i.dialogMaskOpacity,backgroundColor:i.dialogMaskBgColor}).show();r.css("z-index",editormd.dialogZindex).show();this.infoDialogPosition();return this},hideInfoDialog:function(){$("html,body").css("overflow-x","");this.infoDialog.hide();this.mask.hide();this.lockScreen(false);return this},lockScreen:function(e){editormd.lockScreen(e);this.resize();return this},recreate:function(){var e=this;var t=this.editor;var i=this.settings;this.codeMirror.remove();this.setCodeMirror();if(!i.readOnly){if(t.find(".editormd-dialog").length>0){t.find(".editormd-dialog").remove()}if(i.toolbar){this.getToolbarHandles();this.setToolbar()}}this.loadedDisplay(true);return this},previewCodeHighlight:function(){var e=this.settings;var t=this.previewContainer;if(e.previewCodeHighlight){t.find("pre").addClass("prettyprint linenums");if(typeof prettyPrint!=="undefined"){prettyPrint()}}return this},katexRender:function(){if(timer===null){return this}this.previewContainer.find("."+editormd.classNames.tex).each(function(){var e=$(this);editormd.$katex.render(e.text(),e[0]);e.find(".katex").css("font-size","1.6em")});return this},mindmapRender:function(){this.previewContainer.find(".mindmap").each(function(){var e=$(this);var t=window.markmap.transform(e.text().trim());window.markmap.markmap("svg#"+this.id,t)});return this},echartRender:function(){this.previewContainer.find(".echart").each(function(){var echart=$(this);if(echart.text()!=""){var echart_data=eval("("+echart.text()+")");echart.empty();var myChart=echarts.init(document.getElementById(this.id),null,{renderer:"svg"});myChart.setOption(echart_data)}});return this},flowChartAndSequenceDiagramRender:function(){var e=this;var t=this.settings;var i=this.previewContainer;if(editormd.isIE8){return this}if(t.flowChart){if(flowchartTimer===null){return this}i.find(".flowchart").flowChart()}if(t.sequenceDiagram){i.find(".sequence-diagram").sequenceDiagram({theme:"simple"})}var r=e.preview;var a=e.codeMirror;var o=a.find(".CodeMirror-scroll");var n=o.height();var s=o.scrollTop();var l=s/o[0].scrollHeight;var d=0;r.find(".markdown-toc-list").each(function(){d+=$(this).height()});var c=r.find(".editormd-toc-menu").height();c=!c?0:c;if(s===0){r.scrollTop(0)}else if(s+n>=o[0].scrollHeight-16){r.scrollTop(r[0].scrollHeight)}else{r.scrollTop((r[0].scrollHeight+d+c)*l)}return this},registerKeyMaps:function(e){var i=this;var t=this.cm;var r=this.settings;var a=editormd.toolbarHandlers;var o=r.disabledKeyMaps;e=e||null;if(e){for(var n in e){if($.inArray(n,o)<0){var s={};s[n]=e[n];t.addKeyMap(e)}}}else{for(var l in editormd.keyMaps){var d=editormd.keyMaps[l];var c=typeof d==="string"?$.proxy(a[d],i):$.proxy(d,i);if($.inArray(l,["F9","F10","F11"])<0&&$.inArray(l,o)<0){var h={};h[l]=c;t.addKeyMap(h)}}$(window).keydown(function(e){var t={120:"F9",121:"F10",122:"F11"};if($.inArray(t[e.keyCode],o)<0){switch(e.keyCode){case 120:$.proxy(a["watch"],i)();return false;break;case 121:$.proxy(a["preview"],i)();return false;break;case 122:$.proxy(a["fullscreen"],i)();return false;break;default:break}}})}return this},bindScrollEvent:function(){var n=this;var s=this.preview;var l=this.settings;var o=this.codeMirror;var e=editormd.mouseOrTouch;if(!l.syncScrolling){return this}var t=function(){o.find(".CodeMirror-scroll").bind(e("scroll","touchmove"),function(e){var t=$(this).height();var i=$(this).scrollTop();var r=i/$(this)[0].scrollHeight;var a=0;s.find(".markdown-toc-list").each(function(){a+=$(this).height()});var o=s.find(".editormd-toc-menu").height();o=!o?0:o;if(i===0){s.scrollTop(0)}else if(i+t>=$(this)[0].scrollHeight-16){s.scrollTop(s[0].scrollHeight)}else{s.scrollTop((s[0].scrollHeight+a+o)*r)}$.proxy(l.onscroll,n)(e)})};var i=function(){o.find(".CodeMirror-scroll").unbind(e("scroll","touchmove"))};var r=function(){s.bind(e("scroll","touchmove"),function(e){var t=$(this).height();var i=$(this).scrollTop();var r=i/$(this)[0].scrollHeight;var a=o.find(".CodeMirror-scroll");if(i===0){a.scrollTop(0)}else if(i+t>=$(this)[0].scrollHeight){a.scrollTop(a[0].scrollHeight)}else{a.scrollTop(a[0].scrollHeight*r)}$.proxy(l.onpreviewscroll,n)(e)})};var a=function(){s.unbind(e("scroll","touchmove"))};o.bind({mouseover:t,mouseout:i,touchstart:t,touchend:i});if(l.syncScrolling==="single"){return this}s.bind({mouseover:r,mouseout:a,touchstart:r,touchend:a});return this},bindChangeEvent:function(){var i=this;var e=this.cm;var r=this.settings;if(!r.syncScrolling){return this}e.on("change",function(e,t){if(r.watch){i.previewContainer.css("padding",r.autoHeight?"20px 20px 50px 40px":"20px")}timer=setTimeout(function(){clearTimeout(timer);i.save();timer=null},r.delay)});return this},loadedDisplay:function(e){e=e||false;var t=this;var i=this.editor;var r=this.preview;var a=this.settings;this.containerMask.hide();this.save();if(a.watch){r.show()}i.data("oldWidth",i.width()).data("oldHeight",i.height());this.resize();this.registerKeyMaps();$(window).resize(function(){t.resize()});this.bindScrollEvent().bindChangeEvent();if(!e){$.proxy(a.onload,this)()}this.state.loaded=true;return this},width:function(e){this.editor.css("width",typeof e==="number"?e+"px":e);this.resize();return this},height:function(e){this.editor.css("height",typeof e==="number"?e+"px":e);this.resize();return this},resize:function(e,t){e=e||null;t=t||null;var i=this.state;var r=this.editor;var a=this.preview;var o=this.toolbar;var n=this.settings;var s=this.codeMirror;if(e){r.css("width",typeof e==="number"?e+"px":e)}if(n.autoHeight&&!i.fullscreen&&!i.preview){r.css("height","auto");s.css("height","auto")}else{if(t){r.css("height",typeof t==="number"?t+"px":t)}if(i.fullscreen){r.height($(window).height())}if(n.toolbar&&!n.readOnly){s.css("margin-top",o.height()+1).height(r.height()-o.height())}else{s.css("margin-top",0).height(r.height())}}if(n.watch){s.width(r.width()/2);a.width(!i.preview?r.width()/2:r.width());this.previewContainer.css("padding",n.autoHeight?"20px 20px 50px 40px":"20px");if(n.toolbar&&!n.readOnly){a.css("top",o.height()+1)}else{a.css("top",0)}if(n.autoHeight&&!i.fullscreen&&!i.preview){a.height("")}else{var l=n.toolbar&&!n.readOnly?r.height()-o.height():r.height();a.height(l)}}else{s.width(r.width());a.hide()}if(i.loaded){$.proxy(n.onresize,this)()}return this},save:function(){var e=this;var t=this.state;var i=this.settings;if(timer===null&&!(!i.watch&&t.preview)){return this}var r=this.cm;var a=r.getValue();var o=this.previewContainer;if(i.mode!=="gfm"&&i.mode!=="markdown"){this.markdownTextarea.val(a);return this}var n=editormd.$marked;var s=this.markdownToC=[];var l=this.markedRendererOptions={toc:i.toc,tocm:i.tocm,tocStartLevel:i.tocStartLevel,pageBreak:i.pageBreak,taskList:i.taskList,emoji:i.emoji,tex:i.tex,atLink:i.atLink,emailLink:i.emailLink,flowChart:i.flowChart,sequenceDiagram:i.sequenceDiagram,mindMap:i.mindMap,echart:i.echart,previewCodeHighlight:i.previewCodeHighlight};var d=this.markedOptions={renderer:editormd.markedRenderer(s,l),gfm:true,tables:true,breaks:true,pedantic:false,sanitize:i.htmlDecode?false:true,smartLists:true,smartypants:true};n.setOptions(d);var c=editormd.$marked(a,d);c=editormd.filterHTMLTags(c,i.htmlDecode);this.markdownTextarea.text(a);r.save();if(i.saveHTMLToTextarea){this.htmlTextarea.text(c)}if(i.watch||!i.watch&&t.preview){o.html(c);this.previewCodeHighlight();if(i.toc){var h=i.tocContainer===""?o:$(i.tocContainer);var f=h.find("."+this.classPrefix+"toc-menu");h.attr("previewContainer",i.tocContainer===""?"true":"false");if(i.tocContainer!==""&&f.length>0){f.remove()}editormd.markdownToCRenderer(s,h,i.tocDropdown,i.tocStartLevel);if(i.tocDropdown||h.find("."+this.classPrefix+"toc-menu").length>0){editormd.tocDropdownMenu(h,i.tocTitle!==""?i.tocTitle:this.lang.tocTitle)}if(i.tocContainer!==""){o.find(".markdown-toc").css("border","none")}}if(i.tex){if(!editormd.kaTeXLoaded&&i.autoLoadModules){editormd.loadKaTeX(function(){editormd.$katex=katex;editormd.kaTeXLoaded=true;e.katexRender()})}else{editormd.$katex=katex;this.katexRender()}}if(i.mindMap){setTimeout(function(){e.mindmapRender()},10)}if(i.echart){setTimeout(function(){e.echartRender()},10)}if(i.flowChart||i.sequenceDiagram){flowchartTimer=setTimeout(function(){clearTimeout(flowchartTimer);e.flowChartAndSequenceDiagramRender();flowchartTimer=null},10)}if(t.loaded){$.proxy(i.onchange,this)()}}return this},focus:function(){this.cm.focus();return this},setCursor:function(e){this.cm.setCursor(e);return this},getCursor:function(){return this.cm.getCursor()},setSelection:function(e,t){this.cm.setSelection(e,t);return this},getSelection:function(){return this.cm.getSelection()},setSelections:function(e){this.cm.setSelections(e);return this},getSelections:function(){return this.cm.getSelections()},replaceSelection:function(e){this.cm.replaceSelection(e);return this},insertValue:function(e){this.replaceSelection(e);return this},appendMarkdown:function(e){var t=this.settings;var i=this.cm;i.setValue(i.getValue()+e);return this},setMarkdown:function(e){this.cm.setValue(e||this.settings.markdown);return this},getMarkdown:function(){return this.cm.getValue()},getValue:function(){return this.cm.getValue()},setValue:function(e){this.cm.setValue(e);return this},clear:function(){this.cm.setValue("");return this},getHTML:function(){if(!this.settings.saveHTMLToTextarea){alert("Error: settings.saveHTMLToTextarea == false");return false}return this.htmlTextarea.val()},getTextareaSavedHTML:function(){return this.getHTML()},getPreviewedHTML:function(){if(!this.settings.watch){alert("Error: settings.watch == false");return false}return this.previewContainer.html()},watch:function(e){var t=this.settings;if($.inArray(t.mode,["gfm","markdown"])<0){return this}this.state.watching=t.watch=true;this.preview.show();if(this.toolbar){var i=t.toolbarIconsClass.watch;var r=t.toolbarIconsClass.unwatch;var a=this.toolbar.find(".fa[name=watch]");a.parent().attr("title",t.lang.toolbar.watch);a.removeClass(r).addClass(i)}this.codeMirror.css("border-right","1px solid #ddd").width(this.editor.width()/2);timer=0;this.save().resize();if(!t.onwatch){t.onwatch=e||function(){}}$.proxy(t.onwatch,this)();return this},unwatch:function(e){var t=this.settings;this.state.watching=t.watch=false;this.preview.hide();if(this.toolbar){var i=t.toolbarIconsClass.watch;var r=t.toolbarIconsClass.unwatch;var a=this.toolbar.find(".fa[name=watch]");a.parent().attr("title",t.lang.toolbar.unwatch);a.removeClass(i).addClass(r)}this.codeMirror.css("border-right","none").width(this.editor.width());this.resize();if(!t.onunwatch){t.onunwatch=e||function(){}}$.proxy(t.onunwatch,this)();return this},show:function(e){e=e||function(){};var t=this;this.editor.show(0,function(){$.proxy(e,t)()});return this},hide:function(e){e=e||function(){};var t=this;this.editor.hide(0,function(){$.proxy(e,t)()});return this},previewing:function(){var t=this;var e=this.editor;var i=this.preview;var r=this.toolbar;var a=this.settings;var o=this.codeMirror;var n=this.previewContainer;if($.inArray(a.mode,["gfm","markdown"])<0){return this}if(a.toolbar&&r){r.toggle();r.find(".fa[name=preview]").toggleClass("active")}o.toggle();var s=function(e){if(e.shiftKey&&e.keyCode===27){t.previewed()}};if(o.css("display")==="none"){this.state.preview=true;if(this.state.fullscreen){i.css("background","#fff")}e.find("."+this.classPrefix+"preview-close-btn").show().bind(editormd.mouseOrTouch("click","touchend"),function(){t.previewed()});if(!a.watch){this.save()}else{n.css("padding","")}n.addClass(this.classPrefix+"preview-active");i.show().css({position:"",top:0,width:e.width(),height:a.autoHeight&&!this.state.fullscreen?"auto":e.height()});if(this.state.loaded){$.proxy(a.onpreviewing,this)()}$(window).bind("keyup",s)}else{$(window).unbind("keyup",s);this.previewed()}},previewed:function(){var e=this.editor;var t=this.preview;var i=this.toolbar;var r=this.settings;var a=this.previewContainer;var o=e.find("."+this.classPrefix+"preview-close-btn");this.state.preview=false;this.codeMirror.show();if(r.toolbar){i.show()}t[r.watch?"show":"hide"]();o.hide().unbind(editormd.mouseOrTouch("click","touchend"));a.removeClass(this.classPrefix+"preview-active");if(r.watch){a.css("padding","20px")}t.css({background:null,position:"absolute",width:e.width()/2,height:r.autoHeight&&!this.state.fullscreen?"auto":e.height()-i.height(),top:r.toolbar?i.height():0});if(this.state.loaded){$.proxy(r.onpreviewed,this)()}return this},fullscreen:function(){var t=this;var i=this.state;var e=this.editor;var r=this.preview;var a=this.toolbar;var o=this.settings;var n=this.classPrefix+"fullscreen";if(a){a.find(".fa[name=fullscreen]").parent().toggleClass("active")}var s=function(e){if(!e.shiftKey&&e.keyCode===27){if(i.fullscreen){t.fullscreenExit()}}};if(!e.hasClass(n)){i.fullscreen=true;$("html,body").css("overflow","hidden");e.css({width:$(window).width(),height:$(window).height()}).addClass(n);this.resize();$.proxy(o.onfullscreen,this)();$(window).bind("keyup",s)}else{$(window).unbind("keyup",s);this.fullscreenExit()}return this},fullscreenExit:function(){var e=this.editor;var t=this.settings;var i=this.toolbar;var r=this.classPrefix+"fullscreen";this.state.fullscreen=false;if(i){i.find(".fa[name=fullscreen]").parent().removeClass("active")}$("html,body").css("overflow","");e.css({width:e.data("oldWidth"),height:e.data("oldHeight")}).removeClass(r);this.resize();$.proxy(t.onfullscreenExit,this)();return this},executePlugin:function(e,t){var i=this;var r=this.cm;var a=this.settings;t=a.pluginPath+t;if(typeof define==="function"){if(typeof this[e]==="undefined"){alert("Error: "+e+" plugin is not found, you are not load this plugin.");return this}this[e](r);return this}if($.inArray(t,editormd.loadFiles.plugin)<0){editormd.loadPlugin(t,function(){editormd.loadPlugins[e]=i[e];i[e](r)})}else{$.proxy(editormd.loadPlugins[e],this)(r)}return this},search:function(e){var t=this.settings;if(!t.searchReplace){alert("Error: settings.searchReplace == false");return this}if(!t.readOnly){this.cm.execCommand(e||"find")}return this},searchReplace:function(){this.search("replace");return this},searchReplaceAll:function(){this.search("replaceAll");return this}};editormd.fn.init.prototype=editormd.fn;editormd.dialogLockScreen=function(){var e=this.settings||{dialogLockScreen:true};if(e.dialogLockScreen){$("html,body").css("overflow","hidden");this.resize()}};editormd.dialogShowMask=function(e){var t=this.editor;var i=this.settings||{dialogShowMask:true};e.css({top:($(window).height()-e.height())/2+"px",left:($(window).width()-e.width())/2+"px"});if(i.dialogShowMask){t.children("."+this.classPrefix+"mask").css("z-index",parseInt(e.css("z-index"))-1).show()}};editormd.toolbarHandlers={undo:function(){this.cm.undo()},redo:function(){this.cm.redo()},bold:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();e.replaceSelection("**"+i+"**");if(i===""){e.setCursor(t.line,t.ch+2)}},mark:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();e.replaceSelection("=="+i+"==");if(i===""){e.setCursor(t.line,t.ch+2)}},del:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();e.replaceSelection("~~"+i+"~~");if(i===""){e.setCursor(t.line,t.ch+2)}},italic:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();e.replaceSelection("*"+i+"*");if(i===""){e.setCursor(t.line,t.ch+1)}},quote:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("> "+i);e.setCursor(t.line,t.ch+2)}else{e.replaceSelection("> "+i)}},ucfirst:function(){var e=this.cm;var t=e.getSelection();var i=e.listSelections();e.replaceSelection(editormd.firstUpperCase(t));e.setSelections(i)},ucwords:function(){var e=this.cm;var t=e.getSelection();var i=e.listSelections();e.replaceSelection(editormd.wordsFirstUpperCase(t));e.setSelections(i)},uppercase:function(){var e=this.cm;var t=e.getSelection();var i=e.listSelections();e.replaceSelection(t.toUpperCase());e.setSelections(i)},lowercase:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();var r=e.listSelections();e.replaceSelection(i.toLowerCase());e.setSelections(r)},h1:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("# "+i);e.setCursor(t.line,t.ch+2)}else{e.replaceSelection("# "+i)}},h2:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("## "+i);e.setCursor(t.line,t.ch+3)}else{e.replaceSelection("## "+i)}},h3:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("### "+i);e.setCursor(t.line,t.ch+4)}else{e.replaceSelection("### "+i)}},h4:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("#### "+i);e.setCursor(t.line,t.ch+5)}else{e.replaceSelection("#### "+i)}},h5:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("##### "+i);e.setCursor(t.line,t.ch+6)}else{e.replaceSelection("##### "+i)}},h6:function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(t.ch!==0){e.setCursor(t.line,0);e.replaceSelection("###### "+i);e.setCursor(t.line,t.ch+7)}else{e.replaceSelection("###### "+i)}},"list-ul":function(){var e=this.cm;var t=e.getCursor();var i=e.getSelection();if(i===""){e.replaceSelection("- "+i)}else{var r=i.split("\n");for(var a=0,o=r.length;a].+?)\1/g,emoji:/:([A-Za-z\+-]+):/g,emojiDatetime:/(\d{2}:\d{2}:\d{2})/g,twemoji:/:(tw-([\w]+)-?(\w+)?):/g,fontAwesome:/:(fa-([\w]+)(-(\w+)){0,}):/g,editormdLogo:/:(editormd-logo-?(\w+)?):/g,pageBreak:/^\[[=]{8,}\]$/};editormd.emoji={path:"/static/editor.md/plugins/emoji-dialog/emoji/",ext:".png"};editormd.twemoji={path:"http://twemoji.maxcdn.com/36x36/",ext:".png"};editormd.markedRenderer=function(m,e){var t={toc:true,tocm:false,tocStartLevel:1,pageBreak:true,atLink:true,emailLink:true,taskList:false,emoji:false,tex:false,flowChart:false,sequenceDiagram:false};var s=$.extend(t,e||{});var x=editormd.$marked;var i=new x.Renderer;m=m||[];var r=editormd.regexs;var o=r.atLink;var a=r.mark;var n=r.emoji;var l=r.email;var d=r.emailLink;var g=r.twemoji;var v=r.fontAwesome;var w=r.editormdLogo;var c=r.pageBreak;i.blockquote=function(e){var t="";var i=e.match(//i);if(i!==null){t=i[0];e=e.substr(3)}var r="default";if(e.indexOf("i")===0){r="info";e=e.substr(1)}else if(e.indexOf("w")===0){r="warning";e=e.substr(1)}else if(e.indexOf("s")===0){r="success";e=e.substr(1)}else if(e.indexOf("d")===0){r="danger";e=e.substr(1)}return'
          \n'+t+e+"
          \n"};i.image=function(e,t,i){var r="";var a="";var o="";if(/^=(.*?)/.test(i)){switch(i){case"=video":if(e.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)){return""}else{for(var n=0;n"}}}break;case"=audio":if(e.match(/^.+.(mp3|wav|flac|m4a)$/)){return""}else{for(var n=0;n"}}}break;case"=video_iframe":const c=e.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/);const h=e.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/);const f=e.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/);const u=e.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/);const m=e.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/);const p=e.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/);const g=e.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/);const v=e.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(c&&c[1].length===11){return`'),e.remove()):r&&r[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):i&&i[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):o&&o[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):a&&a[0]?(e.insertAdjacentHTML("afterend",''),e.remove()):l&&l[2]?(e.insertAdjacentHTML("afterend",''),e.remove()):s&&s[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):c&&c[1]&&(e.insertAdjacentHTML("afterend",''),e.remove())}(e,t))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4),i=function(e,t,n){void 0===t&&(t="zh_CN"),void 0===n&&(n="classic");var i=e.getBoundingClientRect();document.body.insertAdjacentHTML("beforeend",'
          \n
          \n \n \n '+r.a[t].spin+"\n \n \n X  "+r.a[t].close+'\n \n
          \n
          \n \n
          \n
          '),document.body.style.overflow="hidden";var o=document.querySelector(".vditor-img img"),a="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+Math.max(0,window.innerHeight-36-e.naturalHeight)/2+"px, 0)";setTimeout((function(){o.setAttribute("style","transition: transform .3s ease-in-out;transform: "+a),setTimeout((function(){o.parentElement.scrollTo((o.parentElement.scrollWidth-o.parentElement.clientWidth)/2,(o.parentElement.scrollHeight-o.parentElement.clientHeight)/2)}),400)}));var l=document.querySelector(".vditor-img__btn");l.addEventListener("click",(function(){var t=parseInt(l.getAttribute("data-deg"),10)+90;t/90%2==1&&e.naturalWidth>o.parentElement.clientHeight?o.style.transform="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+(e.naturalWidth/2-e.naturalHeight/2)+"px, 0) rotateZ("+t+"deg)":o.style.transform=a+" rotateZ("+t+"deg)",l.setAttribute("data-deg",t.toString()),setTimeout((function(){o.parentElement.scrollTo((o.parentElement.scrollWidth-o.parentElement.clientWidth)/2,(o.parentElement.scrollHeight-o.parentElement.clientHeight)/2)}),400)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(8),o=function(e,t){void 0===t&&(t=r.a.CDN),r.a.CODE_THEME.includes(e)||(e="github");var n=document.getElementById("vditorHljsStyle"),o=t+"/dist/js/highlight.js/styles/"+e+".css";n?n.href!==o&&(n.remove(),Object(i.a)(o,"vditorHljsStyle")):Object(i.a)(o,"vditorHljsStyle")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6),i=n(7),o=function(e,t,n){var o="",a=[];if(Array.from(e.children).forEach((function(e,t){if(Object(r.a)(e)){if(n){var i=e.id.lastIndexOf("_");e.id=e.id.substring(0,-1===i?void 0:i)+"_"+t}a.push(e.id),o+=e.outerHTML.replace("","")}})),""===o)return t.innerHTML="","";var l=document.createElement("div");if(n)n.lute.SetToC(!0),"wysiwyg"!==n.currentMode||n.preview.element.contains(e)?"ir"!==n.currentMode||n.preview.element.contains(e)?l.innerHTML=n.lute.HTML2VditorDOM("

          [ToC]

          "+o):l.innerHTML=n.lute.SpinVditorIRDOM("

          [ToC]

          "+o):l.innerHTML=n.lute.SpinVditorDOM("

          [ToC]

          "+o),n.lute.SetToC(n.options.preview.markdown.toc);else{t.classList.add("vditor-outline");var s=Lute.New();s.SetToC(!0),l.innerHTML=s.HTML2VditorDOM("

          [ToC]

          "+o)}var c=l.firstElementChild.querySelectorAll("li > span[data-target-id]");return c.forEach((function(e,t){e.nextElementSibling&&"UL"===e.nextElementSibling.tagName?e.innerHTML=""+e.innerHTML+"":e.innerHTML=""+e.innerHTML+"",e.setAttribute("data-target-id",a[t])})),o=l.firstElementChild.innerHTML,0===c.length?(t.innerHTML="",o):(t.innerHTML=o,n&&Object(i.a)(t,{cdn:n.options.cdn,math:n.options.preview.math}),t.firstElementChild.addEventListener("click",(function(r){for(var i=r.target;i&&!i.isEqualNode(t);){if(i.classList.contains("vditor-outline__action")){i.classList.contains("vditor-outline__action--close")?(i.classList.remove("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:block")):(i.classList.add("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:none")),r.preventDefault(),r.stopPropagation();break}if(i.getAttribute("data-target-id")){r.preventDefault(),r.stopPropagation();var o=document.getElementById(i.getAttribute("data-target-id"));if(!o)return;if(n)if("auto"===n.options.height){var a=o.offsetTop+n.element.offsetTop;n.options.toolbarConfig.pin||(a+=n.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,a)}else n.element.offsetTopt.naturalWidth&&t.naturalWidth/t.naturalHeightwindow.innerHeight-40&&(e.style.height=window.innerHeight-40+"px"),e.src=t.src})),e.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return e.querySelectorAll("img").forEach((function(e){e.getAttribute("data-src")&&t(e)})),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)}))):(window.vditorImageIntersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)&&e.target.getAttribute("data-src")&&t(e.target)}))})),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)})))},d=n(7),u=n(20),p=n(17),f=n(18),m=n(23),h=n(19),v=n(2),g=n(10),b=n(5),y=n(1),w=n(24),E=n(25),k=n(0),S=function(e,t){if(void 0===t&&(t="zh_CN"),"undefined"!=typeof speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance){var n='',r='',i=document.querySelector(".vditor-speech");if(!i){(i=document.createElement("div")).className="vditor-speech",document.body.insertAdjacentElement("beforeend",i);var o=function(){var e,n;return speechSynthesis.getVoices().forEach((function(r){r.lang===t.replace("_","-")&&(e=r),r.default&&(n=r)})),e||(e=n),e};void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=o);var a=o();i.onclick=function(){if("vditor-speech"===i.className){var e=new SpeechSynthesisUtterance(i.getAttribute("data-text"));e.voice=a,e.onend=function(){i.className="vditor-speech",speechSynthesis.cancel(),i.innerHTML=n},speechSynthesis.speak(e),i.className="vditor-speech vditor-speech--current",i.innerHTML=r}else speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),i.innerHTML=r):(speechSynthesis.pause(),i.innerHTML=n));Object(k.h)(window.vditorSpeechRange)},document.body.addEventListener("click",(function(){""===getSelection().toString().trim()&&"block"===i.style.display&&(i.className="vditor-speech",speechSynthesis.cancel(),i.style.display="none")}))}e.addEventListener("mouseup",(function(e){var t=getSelection().toString().trim();if(speechSynthesis.cancel(),""!==getSelection().toString().trim()){window.vditorSpeechRange=getSelection().getRangeAt(0).cloneRange();var r=getSelection().getRangeAt(0).getBoundingClientRect();i.innerHTML=n,i.style.display="block",i.style.top=r.top+r.height+document.querySelector("html").scrollTop-20+"px",i.style.left=e.screenX+2+"px",i.setAttribute("data-text",t)}else"block"===i.style.display&&(i.className="vditor-speech",i.style.display="none")}))}},O=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},C=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]t.length?e:t,l=e.length>t.length?t:e,s=a.indexOf(l);if(-1!=s)return o=[new n.Diff(1,a.substring(0,s)),new n.Diff(0,l),new n.Diff(1,a.substring(s+l.length))],e.length>t.length&&(o[0][0]=o[2][0]=-1),o;if(1==l.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var c=this.diff_halfMatch_(e,t);if(c){var d=c[0],u=c[1],p=c[2],f=c[3],m=c[4],h=this.diff_main(d,p,r,i),v=this.diff_main(u,f,r,i);return h.concat([new n.Diff(0,m)],v)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,i):this.diff_bisect_(e,t,i)},n.prototype.diff_lineMode_=function(e,t,r){var i=this.diff_linesToChars_(e,t);e=i.chars1,t=i.chars2;var o=i.lineArray,a=this.diff_main(e,t,!1,r);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var l=0,s=0,c=0,d="",u="";l=1&&c>=1){a.splice(l-s-c,s+c),l=l-s-c;for(var p=this.diff_main(d,u,!1,r),f=p.length-1;f>=0;f--)a.splice(l,0,p[f]);l+=p.length}c=0,s=0,d="",u=""}l++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,r){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),l=a,s=2*a,c=new Array(s),d=new Array(s),u=0;ur);b++){for(var y=-b+m;y<=b-h;y+=2){for(var w=l+y,E=(T=y==-b||y!=b&&c[w-1]i)h+=2;else if(E>o)m+=2;else if(f){if((O=l+p-y)>=0&&O=(S=i-d[O]))return this.diff_bisectSplit_(e,t,T,E,r)}}for(var k=-b+v;k<=b-g;k+=2){for(var S,O=l+k,C=(S=k==-b||k!=b&&d[O-1]i)g+=2;else if(C>o)v+=2;else if(!f){if((w=l+p-k)>=0&&w=(S=i-S))return this.diff_bisectSplit_(e,t,T,E,r)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),c=this.diff_main(o,a,!1,i),d=this.diff_main(l,s,!1,i);return c.concat(d)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,a,l,d]:null}var a,l,s,c,d,u=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return u||p?(a=p?u&&u[4].length>p[4].length?u:p:u,e.length>t.length?(l=a[0],s=a[1],c=a[2],d=a[3]):(c=a[0],d=a[1],l=a[2],s=a[3]),[l,s,c,d,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],i=0,o=null,a=0,l=0,s=0,c=0,d=0;a0?r[i-1]:-1,l=0,s=0,c=0,d=0,o=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a=m?(f>=u.length/2||f>=p.length/2)&&(e.splice(a,0,new n.Diff(0,p.substring(0,f))),e[a-1][1]=u.substring(0,u.length-f),e[a+1][1]=p.substring(f),a++):(m>=u.length/2||m>=p.length/2)&&(e.splice(a,0,new n.Diff(0,u.substring(0,m))),e[a-1][0]=1,e[a-1][1]=p.substring(0,p.length-m),e[a+1][0]=-1,e[a+1][1]=u.substring(m),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),o=r.match(n.nonAlphaNumericRegex_),a=i.match(n.nonAlphaNumericRegex_),l=o&&r.match(n.whitespaceRegex_),s=a&&i.match(n.whitespaceRegex_),c=l&&r.match(n.linebreakRegex_),d=s&&i.match(n.linebreakRegex_),u=c&&e.match(n.blanklineEndRegex_),p=d&&t.match(n.blanklineStartRegex_);return u||p?5:c||d?4:o&&!l&&s?3:l||s?2:o||a?1:0}for(var r=1;r=p&&(p=f,c=i,d=o,u=a)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=d,u?e[r+1][1]=u:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],i=0,o=null,a=0,l=!1,s=!1,c=!1,d=!1;a0?r[i-1]:-1,c=d=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,r=0,i=0,o=0,a="",l="";r1?(0!==i&&0!==o&&(0!==(t=this.diff_commonPrefix(l,a))&&(r-i-o>0&&0==e[r-i-o-1][0]?e[r-i-o-1][1]+=l.substring(0,t):(e.splice(0,0,new n.Diff(0,l.substring(0,t))),r++),l=l.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-t)+e[r][1],l=l.substring(0,l.length-t),a=a.substring(0,a.length-t))),r-=i+o,e.splice(r,i+o),a.length&&(e.splice(r,0,new n.Diff(-1,a)),r++),l.length&&(e.splice(r,0,new n.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,i=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var s=!1;for(r=1;rt));n++)o=r,a=i;return e.length!=n&&-1===e[n][0]?a:a+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,o=/\n/g,a=0;a");switch(l){case 1:t[a]=''+s+"";break;case-1:t[a]=''+s+"";break;case 0:t[a]=""+s+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(o(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,l),a)));var s,c,d=1<=m;g--){var b=r[e.charAt(g-1)];if(v[g]=0===f?(v[g+1]<<1|1)&b:(v[g+1]<<1|1)&b|(u[g+1]|u[g])<<1|1|u[g+1],v[g]&d){var y=o(f,g-1);if(y<=a){if(a=y,!((l=g-1)>n))break;m=Math.max(1,2*n-l)}}}if(o(f+1,n)>a)break;u=v}return l},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)o=e,i=this.diff_text1(o);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)i=e,o=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");i=e,o=r}if(0===o.length)return[];for(var a=[],l=new n.patch_obj,s=0,c=0,d=0,u=i,p=i,f=0;f=2*this.Patch_Margin&&s&&(this.patch_addContext_(l,u),a.push(l),l=new n.patch_obj,s=0,u=p,c=d)}1!==m&&(c+=h.length),-1!==m&&(d+=h.length)}return s&&(this.patch_addContext_(l,u),a.push(l)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),s))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),s+c.length-this.Match_MaxBits))||a>=d)&&(a=-1):a=this.match_main(t,c,s),-1==a)i[o]=!1,r-=e[o].length2-e[o].length1;else if(i[o]=!0,r=a-s,c==(l=-1==d?t.substring(a,a+c.length):t.substring(a,d+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+c.length);else{var u=this.diff_main(c,l,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(u)/c.length>this.Patch_DeleteThreshold)i[o]=!1;else{this.diff_cleanupSemanticLossless(u);for(var p,f=0,m=0;ma[0][1].length){var l=t-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],o.start1-=l,o.start2-=l,o.length1+=l,o.length2+=l}if(0==(a=(o=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,r)),o.length1+=t,o.length2+=t;else if(t>a[a.length-1][1].length){l=t-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,l),o.length1+=l,o.length2+=l}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(s.length1+=u.length,o+=u.length,c=!1,s.diffs.push(new n.Diff(d,u)),i.diffs.shift()):(u=u.substring(0,t-s.length1-this.Patch_Margin),s.length1+=u.length,o+=u.length,0===d?(s.length2+=u.length,a+=u.length):c=!1,s.diffs.push(new n.Diff(d,u)),u==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(u.length))}l=(l=this.diff_text2(s.diffs)).substring(l.length-this.Patch_Margin);var p=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==p&&(s.length1+=p.length,s.length2+=p.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=p:s.diffs.push(new n.Diff(0,p))),c||e.splice(++r,0,s)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n
          '}return e.prototype.renderEchart=function(e){var t=this;"block"===e.devtools.element.style.display&&Object(c.a)(e.options.cdn+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){t.ASTChart||(t.ASTChart=echarts.init(e.devtools.element.lastElementChild));try{t.element.lastElementChild.style.display="block",t.element.firstElementChild.innerHTML="",t.ASTChart.setOption({series:[{data:JSON.parse(e.lute.RenderEChartsJSON(s(e))),initialTreeDepth:-1,label:{align:"left",backgroundColor:"rgba(68, 77, 86, .68)",borderRadius:3,color:"#d1d5da",fontSize:12,lineHeight:12,offset:[9,12],padding:[2,4,2,4],position:"top",verticalAlign:"middle"},lineStyle:{color:"#4285f4",type:"curve",width:1},orient:"vertical",roam:!0,type:"tree"}],toolbox:{bottom:25,emphasis:{iconStyle:{color:"#4285f4"}},feature:{restore:{show:!0},saveAsImage:{show:!0}},right:15,show:!0}}),t.ASTChart.resize()}catch(e){t.element.lastElementChild.style.display="none",t.element.firstElementChild.innerHTML=e}}))},e}(),u=n(3),p=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains("vditor-menu--current")&&n.classList.remove("vditor-menu--current")}}))},f=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains("vditor-menu--current")&&n.classList.add("vditor-menu--current")}}))},m=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains(a.a.CLASS_MENU_DISABLED)&&n.classList.remove(a.a.CLASS_MENU_DISABLED)}}))},h=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains(a.a.CLASS_MENU_DISABLED)&&n.classList.add(a.a.CLASS_MENU_DISABLED)}}))},v=function(e,t){t.forEach((function(t){e[t]&&e[t]&&(e[t].style.display="none")}))},g=function(e,t){t.forEach((function(t){e[t]&&e[t]&&(e[t].style.display="block")}))},b=function(e,t,n){t.includes("subToolbar")&&(e.toolbar.element.querySelectorAll(".vditor-hint").forEach((function(e){n&&e.isEqualNode(n)||(e.style.display="none")})),e.toolbar.elements.emoji&&(e.toolbar.elements.emoji.lastElementChild.style.display="none")),t.includes("hint")&&(e.hint.element.style.display="none"),e.wysiwyg.popover&&t.includes("popover")&&(e.wysiwyg.popover.style.display="none")},y=function(e,t,n,r){n.addEventListener(Object(u.b)(),(function(r){r.preventDefault(),r.stopPropagation(),n.classList.contains(a.a.CLASS_MENU_DISABLED)||(e.toolbar.element.querySelectorAll(".vditor-hint--current").forEach((function(e){e.classList.remove("vditor-hint--current")})),"block"===t.style.display?t.style.display="none":(b(e,["subToolbar","hint","popover"],n.parentElement.parentElement),n.classList.contains("vditor-tooltipped")||n.classList.add("vditor-hint--current"),t.style.display="block",e.toolbar.element.getBoundingClientRect().right-n.getBoundingClientRect().right<250?t.classList.add("vditor-panel--left"):t.classList.remove("vditor-panel--left")))}))},w=n(1),E=n(6),k=function(e,t,n,r){r&&console.log(e+" - "+n+": "+t)},S=n(11),O=n(12),C=n(13),T=n(14),L=n(15),M=n(16),j=n(7),x=n(17),_=n(18),A=n(19),H=function(e,t){if(e)if("html-block"!==e.parentElement.getAttribute("data-type")){var n=e.firstElementChild.className.replace("language-","");n&&("abc"===n?Object(S.a)(e,t.options.cdn):"mermaid"===n?Object(x.a)(e,t.options.cdn,t.options.theme):"flowchart"===n?Object(T.a)(e,t.options.cdn):"echarts"===n?Object(O.a)(e,t.options.cdn,t.options.theme):"mindmap"===n?Object(_.a)(e,t.options.cdn,t.options.theme):"plantuml"===n?Object(A.a)(e,t.options.cdn):"graphviz"===n?Object(L.a)(e,t.options.cdn):"math"===n?Object(j.a)(e,{cdn:t.options.cdn,math:t.options.preview.math}):(Object(M.a)(Object.assign({},t.options.preview.hljs),e,t.options.cdn),Object(C.a)(e,t.options.lang)),e.setAttribute("data-render","1"))}else e.setAttribute("data-render","1")},N=n(0),D=function(e){if("sv"!==e.currentMode){var t=e[e.currentMode].element,n=e.outline.render(e);""===n&&(n="[ToC]"),t.querySelectorAll('[data-type="toc-block"]').forEach((function(t){t.innerHTML=n,Object(j.a)(t,{cdn:e.options.cdn,math:e.options.preview.math})}))}},R=function(e,t){var n=Object(w.f)(e.target,"SPAN");if(n&&Object(w.e)(n,"vditor-toc")){var r=t[t.currentMode].element.querySelector("#"+n.getAttribute("data-target-id"));if(r)if("auto"===t.options.height){var i=r.offsetTop+t.element.offsetTop;t.options.toolbarConfig.pin||(i+=t.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,i)}else t.element.offsetTop=e.textContent.trimRight().length)return e.nextElementSibling.remove(),lt(t),!0;if(Qe(t,n,r,e,e.nextElementSibling))return!0}if("Backspace"===n.key||"Delete"===n.key){var i=Object(w.e)(r.startContainer,"vditor-toc");if(i)return i.remove(),lt(t),!0}},P=function(e,t,n,r){void 0===n&&(n=!1);var i=Object(w.c)(t.startContainer);if(i&&!n&&"code-block"!==i.getAttribute("data-type")){if(ot(i.innerHTML)&&i.previousElementSibling||at(i.innerHTML))return;for(var o=Object(N.c)(i,e.ir.element,t).start,l=!0,s=o-1;s>i.textContent.substr(0,o).lastIndexOf("\n");s--)if(" "!==i.textContent.charAt(s)&&"\t"!==i.textContent.charAt(s)){l=!1;break}0===o&&(l=!1);var c=!0;for(s=o-1;s"):t.insertNode(document.createElement("wbr"))}i.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),"link-ref-defs-block"===i.getAttribute("data-type")&&(i=e.ir.element);var p,f=i.isEqualNode(e.ir.element),m=Object(w.d)(i,"data-type","footnotes-block"),h="";if(f)h=i.innerHTML;else{var v=Object(E.b)(t.startContainer,"BLOCKQUOTE"),g=Object(w.b)(t.startContainer);if(g&&(i=g),v&&(!g||g&&!v.contains(g))&&(i=v),m&&(i=m),h=i.outerHTML,"UL"===i.tagName||"OL"===i.tagName){var b=i.previousElementSibling,y=i.nextElementSibling;!b||"UL"!==b.tagName&&"OL"!==b.tagName||(h=b.outerHTML+h,b.remove()),!y||"UL"!==y.tagName&&"OL"!==y.tagName||(h+=y.outerHTML,y.remove()),h=h.replace("

          ","

        • ")}else i.previousElementSibling&&""!==i.previousElementSibling.textContent.replace(a.a.ZWSP,"")&&r&&"insertParagraph"===r.inputType&&(h=i.previousElementSibling.outerHTML+h,i.previousElementSibling.remove());e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e){e&&!i.isEqualNode(e)&&(h+=e.outerHTML,e.remove())})),e.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach((function(e){e&&!i.isEqualNode(e)&&(h+=e.outerHTML,e.remove())}))}if(k("SpinVditorIRDOM",h,"argument",e.options.debugger),h=e.lute.SpinVditorIRDOM(h),k("SpinVditorIRDOM",h,"result",e.options.debugger),f)i.innerHTML=h;else if(i.outerHTML=h,m){var S=Object(w.d)(e.ir.element.querySelector("wbr"),"data-type","footnotes-def");if(S){var O=S.textContent,C=O.substring(1,O.indexOf("]:")),T=e.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'+C+'"]');T&&T.setAttribute("aria-label",O.substr(C.length+3).trim().substr(0,24))}}var L,M=e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");M.forEach((function(e,t){0===t?p=e:(p.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),M.length>0&&e.ir.element.insertAdjacentElement("beforeend",M[0]);var j=e.ir.element.querySelectorAll("[data-type='footnotes-block']");j.forEach((function(e,t){0===t?L=e:(L.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),j.length>0&&e.ir.element.insertAdjacentElement("beforeend",j[0]),Object(N.f)(e.ir.element,t),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach((function(t){H(t,e)})),D(e),Ct(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},B=function(e,t){if(""===e)return!1;if(-1===e.indexOf("⇧")&&-1===e.indexOf("⌘")&&-1===e.indexOf("⌥"))return!(Object(u.d)(t)||t.altKey||t.shiftKey||t.code!==e);if("⇧Tab"===e)return!(Object(u.d)(t)||t.altKey||!t.shiftKey||"Tab"!==t.code);var n=e.split("");if(e.startsWith("⌥")){var r=3===n.length?n[2]:n[1];return!((3===n.length?!Object(u.d)(t):Object(u.d)(t))||!t.altKey||t.shiftKey||t.code!==(/^[0-9]$/.test(r)?"Digit":"Key")+r)}"⌘Enter"===e&&(n=["⌘","Enter"]);var i=n.length>2&&"⇧"===n[0],o=i?n[2]:n[1];return!i||!Object(u.e)()&&/Mac/.test(navigator.platform)||("-"===o?o="_":"="===o&&(o="+")),!(!Object(u.d)(t)||t.key.toLowerCase()!==o.toLowerCase()||t.altKey||!(!i&&!t.shiftKey||i&&t.shiftKey))},q=function(e,t){t.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach((function(e){e.classList.remove("vditor-ir__node--expand")}));var n=Object(w.g)(e.startContainer,"vditor-ir__node"),r=!e.collapsed&&Object(w.g)(e.endContainer,"vditor-ir__node");if(e.collapsed||n&&n===r){n&&(n.classList.add("vditor-ir__node--expand"),n.classList.remove("vditor-ir__node--hidden"),Object(N.h)(e));var i=function(e){var t=e.startContainer;if(3===t.nodeType&&t.nodeValue.length!==e.startOffset)return!1;for(var n=t.nextSibling;n&&""===n.textContent;)n=n.nextSibling;if(!n){var r=Object(w.e)(t,"vditor-ir__marker");if(r&&!r.nextSibling){var i=t.parentElement.parentElement.nextSibling;if(i&&3!==i.nodeType&&i.classList.contains("vditor-ir__node"))return i}return!1}return!(!n||3===n.nodeType||!n.classList.contains("vditor-ir__node")||n.getAttribute("data-block"))&&n}(e);if(i)return i.classList.add("vditor-ir__node--expand"),void i.classList.remove("vditor-ir__node--hidden");var o=function(e){var t=e.startContainer,n=t.previousSibling;return!(3!==t.nodeType||0!==e.startOffset||!n||3===n.nodeType||!n.classList.contains("vditor-ir__node")||n.getAttribute("data-block"))&&n}(e);return o?(o.classList.add("vditor-ir__node--expand"),void o.classList.remove("vditor-ir__node--hidden")):void 0}},U=n(21),V=function(e,t){var n,r=getSelection().getRangeAt(0).cloneRange(),i=r.startContainer;3!==r.startContainer.nodeType&&"DIV"===r.startContainer.tagName&&(i=r.startContainer.childNodes[r.startOffset-1]);var o=Object(w.d)(i,"data-block","0");if(o&&t&&("deleteContentBackward"===t.inputType||" "===t.data)){for(var a=Object(N.c)(o,e.sv.element,r).start,l=!0,s=a-1;s>o.textContent.substr(0,a).lastIndexOf("\n");s--)if(" "!==o.textContent.charAt(s)&&"\t"!==o.textContent.charAt(s)){l=!1;break}if(0===a&&(l=!1),l)return void He(e);if("deleteContentBackward"===t.inputType){var c=Object(w.d)(i,"data-type","code-block-open-marker")||Object(w.d)(i,"data-type","code-block-close-marker");if(c){var d;if("code-block-close-marker"===c.getAttribute("data-type"))if(d=xe(i,"code-block-open-marker"))return d.textContent=c.textContent,void He(e);if("code-block-open-marker"===c.getAttribute("data-type"))if(d=xe(i,"code-block-close-marker",!1))return d.textContent=c.textContent,void He(e)}var u=Object(w.d)(i,"data-type","math-block-open-marker");if(u){var p=u.nextElementSibling.nextElementSibling;return void(p&&"math-block-close-marker"===p.getAttribute("data-type")&&(p.remove(),He(e)))}o.querySelectorAll('[data-type="code-block-open-marker"]').forEach((function(e){1===e.textContent.length&&e.remove()})),o.querySelectorAll('[data-type="code-block-close-marker"]').forEach((function(e){1===e.textContent.length&&e.remove()}));var f=Object(w.d)(i,"data-type","heading-marker");if(f&&-1===f.textContent.indexOf("#"))return void He(e)}if((" "===t.data||"deleteContentBackward"===t.inputType)&&(Object(w.d)(i,"data-type","padding")||Object(w.d)(i,"data-type","li-marker")||Object(w.d)(i,"data-type","task-marker")||Object(w.d)(i,"data-type","blockquote-marker")))return void He(e)}if(o&&"$$"===o.textContent.trimRight())He(e);else{o||(o=e.sv.element),"link-ref-defs-block"===(null===(n=o.firstElementChild)||void 0===n?void 0:n.getAttribute("data-type"))&&(o=e.sv.element),Object(w.d)(i,"data-type","footnotes-link")&&(o=e.sv.element),-1===o.textContent.indexOf(Lute.Caret)&&r.insertNode(document.createTextNode(Lute.Caret)),o.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),o.querySelectorAll("font").forEach((function(e){e.outerHTML=e.innerHTML}));var m,h=o.textContent,v=o.isEqualNode(e.sv.element);v?h=o.textContent:(o.previousElementSibling&&(h=o.previousElementSibling.textContent+h,o.previousElementSibling.remove()),o.previousElementSibling&&0===h.indexOf("---\n")&&(h=o.previousElementSibling.textContent+h,o.previousElementSibling.remove()),e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e,t){0===t&&e&&!o.isEqualNode(e.parentElement)&&(h+="\n"+e.parentElement.textContent,e.parentElement.remove())})),e.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach((function(e,t){0===t&&e&&!o.isEqualNode(e.parentElement)&&(h+="\n"+e.parentElement.textContent,e.parentElement.remove())}))),h=_e(h,e),v?o.innerHTML=h:o.outerHTML=h;var g,b=e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']");b.forEach((function(e,t){0===t?m=e.parentElement:(m.lastElementChild.remove(),m.insertAdjacentHTML("beforeend",""+e.parentElement.innerHTML),e.parentElement.remove())})),b.length>0&&e.sv.element.insertAdjacentElement("beforeend",m);var y=e.sv.element.querySelectorAll("[data-type='footnotes-link']");y.forEach((function(e,t){0===t?g=e.parentElement:(g.lastElementChild.remove(),g.insertAdjacentHTML("beforeend",""+e.parentElement.innerHTML),e.parentElement.remove())})),y.length>0&&e.sv.element.insertAdjacentElement("beforeend",g),Object(N.f)(e.sv.element,r),Te(e),He(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})}},W=n(4),K=n(10),F=function(e){"dark"===e.options.theme?e.element.classList.add("vditor--dark"):e.element.classList.remove("vditor--dark")},z=function(e){var t=window.innerWidth<=a.a.MOBILE_WIDTH?10:35;if("none"!==e.wysiwyg.element.parentElement.style.display){var n=(e.wysiwyg.element.parentElement.clientWidth-e.options.preview.maxWidth)/2;e.wysiwyg.element.style.padding="10px "+Math.max(t,n)+"px"}if("none"!==e.ir.element.parentElement.style.display){n=(e.ir.element.parentElement.clientWidth-e.options.preview.maxWidth)/2;e.ir.element.style.padding="10px "+Math.max(t,n)+"px"}"block"===e.preview.element.style.display&&"sv"!==e.currentMode||(e.toolbar.element.style.paddingLeft=Math.max(5,parseInt(e[e.currentMode].element.style.paddingLeft||"0",10)+("left"===e.options.outline.position?e.outline.element.offsetWidth:0))+"px")},Z=function(e){if(e.options.typewriterMode){var t=window.innerHeight;"number"==typeof e.options.height&&(t=e.options.height,"number"==typeof e.options.minHeight&&(t=Math.max(t,e.options.minHeight)),t=Math.min(window.innerHeight,t)),e.element.classList.contains("vditor--fullscreen")&&(t=window.innerHeight),e[e.currentMode].element.style.setProperty("--editor-bottom",(t-e.toolbar.element.offsetHeight)/2+"px")}},J=function(e,t){Z(e),window.addEventListener("resize",(function(){z(e),Z(e)}));var n=Object(u.a)()&&localStorage.getItem(e.options.cache.id);return e.options.cache.enable&&n||(e.options.value?n=e.options.value:e.originalInnerHTML?n=e.lute.HTML2Md(e.originalInnerHTML):e.options.cache.enable||(n="")),n||""},G=function(e){clearTimeout(e[e.currentMode].hlToolbarTimeoutId),e[e.currentMode].hlToolbarTimeoutId=window.setTimeout((function(){if("false"!==e[e.currentMode].element.getAttribute("contenteditable")&&Object(N.e)(e[e.currentMode].element)){p(e.toolbar.elements,a.a.EDIT_TOOLBARS),m(e.toolbar.elements,a.a.EDIT_TOOLBARS);var t=Object(N.b)(e),n=t.startContainer;3===t.startContainer.nodeType&&(n=t.startContainer.parentElement),n.classList.contains("vditor-reset")&&(n=n.childNodes[t.startOffset]),("sv"===e.currentMode?Object(w.d)(n,"data-type","heading"):Object(E.a)(n))&&f(e.toolbar.elements,["headings"]),("sv"===e.currentMode?Object(w.d)(n,"data-type","blockquote"):Object(w.f)(n,"BLOCKQUOTE"))&&f(e.toolbar.elements,["quote"]),Object(w.d)(n,"data-type","strong")&&f(e.toolbar.elements,["bold"]),Object(w.d)(n,"data-type","em")&&f(e.toolbar.elements,["italic"]),Object(w.d)(n,"data-type","s")&&f(e.toolbar.elements,["strike"]),Object(w.d)(n,"data-type","a")&&f(e.toolbar.elements,["link"]);var r=Object(w.f)(n,"LI");r?(r.classList.contains("vditor-task")?f(e.toolbar.elements,["check"]):"OL"===r.parentElement.tagName?f(e.toolbar.elements,["ordered-list"]):"UL"===r.parentElement.tagName&&f(e.toolbar.elements,["list"]),m(e.toolbar.elements,["outdent","indent"])):h(e.toolbar.elements,["outdent","indent"]),Object(w.d)(n,"data-type","code-block")&&(h(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),f(e.toolbar.elements,["code"])),Object(w.d)(n,"data-type","code")&&(h(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),f(e.toolbar.elements,["inline-code"])),Object(w.d)(n,"data-type","table")&&h(e.toolbar.elements,["headings","list","ordered-list","check","line","quote","code","table"])}}),200)},X=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),clearTimeout(e.wysiwyg.afterRenderTimeoutId),e.wysiwyg.afterRenderTimeoutId=window.setTimeout((function(){if(!e.wysiwyg.composingLock){var n=s(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&Object(u.a)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}}),e.options.undoDelay)},Y=function(e){for(var t="",n=e.nextSibling;n;)3===n.nodeType?t+=n.textContent:t+=n.outerHTML,n=n.nextSibling;return t},$=function(e){for(var t="",n=e.previousSibling;n;)t=3===n.nodeType?n.textContent+t:n.outerHTML+t,n=n.previousSibling;return t},Q=function(e,t){Array.from(e.wysiwyg.element.childNodes).find((function(n){if(3===n.nodeType){var r=document.createElement("p");r.setAttribute("data-block","0"),r.textContent=n.textContent;var i=3===t.startContainer.nodeType?t.startOffset:n.textContent.length;return n.parentNode.insertBefore(r,n),n.remove(),t.setStart(r.firstChild,Math.min(r.firstChild.textContent.length,i)),t.collapse(!0),Object(N.h)(t),!0}if(!n.getAttribute("data-block"))return"P"===n.tagName?n.remove():("DIV"===n.tagName?(t.insertNode(document.createElement("wbr")),n.outerHTML='

          '+n.innerHTML+"

          "):"BR"===n.tagName?n.outerHTML='

          '+n.outerHTML+"

          ":(t.insertNode(document.createElement("wbr")),n.outerHTML='

          '+n.outerHTML+"

          "),Object(N.f)(e.wysiwyg.element,t),t=getSelection().getRangeAt(0)),!0}))},ee=function(e,t){var n=Object(N.b)(e),r=Object(w.c)(n.startContainer);r||(r=n.startContainer.childNodes[n.startOffset]),r||0!==e.wysiwyg.element.children.length||(r=e.wysiwyg.element),r&&!r.classList.contains("vditor-wysiwyg__block")&&(n.insertNode(document.createElement("wbr")),""===r.innerHTML.trim()&&(r.innerHTML="
          "),"BLOCKQUOTE"===r.tagName||r.classList.contains("vditor-reset")?r.innerHTML="<"+t+' data-block="0">'+r.innerHTML.trim()+"":r.outerHTML="<"+t+' data-block="0">'+r.innerHTML.trim()+"",Object(N.f)(e.wysiwyg.element,n),D(e))},te=function(e){var t=getSelection().getRangeAt(0),n=Object(w.c)(t.startContainer);n||(n=t.startContainer.childNodes[t.startOffset]),n&&(t.insertNode(document.createElement("wbr")),n.outerHTML='

          '+n.innerHTML+"

          ",Object(N.f)(e.wysiwyg.element,t)),e.wysiwyg.popover.style.display="none"},ne=function(e,t,n){void 0===n&&(n=!0);var r=e.previousElementSibling,i=r.ownerDocument.createRange();"CODE"===r.tagName?(r.style.display="inline-block",n?i.setStart(r.firstChild,1):i.selectNodeContents(r)):(r.style.display="block",r.firstChild.firstChild||r.firstChild.appendChild(document.createTextNode("")),i.selectNodeContents(r.firstChild)),n?i.collapse(!0):i.collapse(!1),Object(N.h)(i),e.firstElementChild.classList.contains("language-mindmap")||Te(t)},re=function(e,t){if(B("⇧⌘X",t)){var n=e.wysiwyg.popover.querySelector('[data-type="remove"]');if(n)return n.click(),t.preventDefault(),!0}},ie=function(e){clearTimeout(e.wysiwyg.hlToolbarTimeoutId),e.wysiwyg.hlToolbarTimeoutId=window.setTimeout((function(){if("false"!==e.wysiwyg.element.getAttribute("contenteditable")&&Object(N.e)(e.wysiwyg.element)){p(e.toolbar.elements,a.a.EDIT_TOOLBARS),m(e.toolbar.elements,a.a.EDIT_TOOLBARS);var t=getSelection().getRangeAt(0),n=t.startContainer;n=3===t.startContainer.nodeType?t.startContainer.parentElement:n.childNodes[t.startOffset>=n.childNodes.length?n.childNodes.length-1:t.startOffset];var r=Object(w.d)(n,"data-type","footnotes-block");if(r)return e.wysiwyg.popover.innerHTML="",ce(r,e),void oe(e,r);var i=Object(w.f)(n,"LI");i?(i.classList.contains("vditor-task")?f(e.toolbar.elements,["check"]):"OL"===i.parentElement.tagName?f(e.toolbar.elements,["ordered-list"]):"UL"===i.parentElement.tagName&&f(e.toolbar.elements,["list"]),m(e.toolbar.elements,["outdent","indent"])):h(e.toolbar.elements,["outdent","indent"]),Object(w.f)(n,"BLOCKQUOTE")&&f(e.toolbar.elements,["quote"]),(Object(w.f)(n,"B")||Object(w.f)(n,"STRONG"))&&f(e.toolbar.elements,["bold"]),(Object(w.f)(n,"I")||Object(w.f)(n,"EM"))&&f(e.toolbar.elements,["italic"]),(Object(w.f)(n,"STRIKE")||Object(w.f)(n,"S"))&&f(e.toolbar.elements,["strike"]),e.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach((function(e){e.classList.remove("vditor-comment--focus")}));var o=Object(w.e)(n,"vditor-comment");if(o){var l=o.getAttribute("data-cmtids").split(" ");if(l.length>1&&o.nextSibling.isSameNode(o.nextElementSibling)){var s=o.nextElementSibling.getAttribute("data-cmtids").split(" ");l.find((function(e){if(s.includes(e))return l=[e],!0}))}e.wysiwyg.element.querySelectorAll(".vditor-comment").forEach((function(e){e.getAttribute("data-cmtids").indexOf(l[0])>-1&&e.classList.add("vditor-comment--focus")}))}var c=Object(w.f)(n,"A");c&&f(e.toolbar.elements,["link"]);var d=Object(w.f)(n,"TABLE"),v=Object(E.a)(n);Object(w.f)(n,"CODE")?Object(w.f)(n,"PRE")?(h(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),f(e.toolbar.elements,["code"])):(h(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),f(e.toolbar.elements,["inline-code"])):v?(h(e.toolbar.elements,["bold"]),f(e.toolbar.elements,["headings"])):d&&h(e.toolbar.elements,["table"]);var g=Object(w.e)(n,"vditor-toc");if(g)return e.wysiwyg.popover.innerHTML="",ce(g,e),void oe(e,g);var b=Object(E.b)(n,"BLOCKQUOTE");if(b&&(e.wysiwyg.popover.innerHTML="",le(t,b,e),se(t,b,e),ce(b,e),oe(e,b)),i&&(e.wysiwyg.popover.innerHTML="",le(t,i,e),se(t,i,e),ce(i,e),oe(e,i)),d){e.wysiwyg.popover.innerHTML="";var y=function(){var e=d.rows.length,t=d.rows[0].cells.length,n=parseInt(I.value,10)||e,r=parseInt(B.value,10)||t;if(n!==e||t!==r){if(t!==r)for(var i=r-t,o=0;o0)for(var a=0;a "):d.rows[o].lastElementChild.insertAdjacentHTML("afterend"," ");else for(var l=t-1;l>=r;l--)d.rows[o].cells[l].remove();if(e!==n){var s=n-e;if(s>0){for(var c="",u=0;u ";for(var p=0;p")}else for(u=e-1;u>=n;u--)d.rows[u].remove(),1===d.rows.length&&d.querySelector("tbody").remove()}}},k=function(n){it(d,n),"right"===n?(T.classList.remove("vditor-icon--current"),L.classList.remove("vditor-icon--current"),M.classList.add("vditor-icon--current")):"center"===n?(T.classList.remove("vditor-icon--current"),M.classList.remove("vditor-icon--current"),L.classList.add("vditor-icon--current")):(L.classList.remove("vditor-icon--current"),M.classList.remove("vditor-icon--current"),T.classList.add("vditor-icon--current")),Object(N.h)(t),X(e)},S=Object(w.f)(n,"TD"),O=Object(w.f)(n,"TH"),C="left";S?C=S.getAttribute("align")||"left":O&&(C=O.getAttribute("align")||"center");var T=document.createElement("button");T.setAttribute("type","button"),T.setAttribute("aria-label",W.a[e.options.lang].alignLeft+"<"+Object(u.g)("⇧⌘L")+">"),T.setAttribute("data-type","left"),T.innerHTML='',T.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("left"===C?" vditor-icon--current":""),T.onclick=function(){k("left")};var L=document.createElement("button");L.setAttribute("type","button"),L.setAttribute("aria-label",W.a[e.options.lang].alignCenter+"<"+Object(u.g)("⇧⌘C")+">"),L.setAttribute("data-type","center"),L.innerHTML='',L.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("center"===C?" vditor-icon--current":""),L.onclick=function(){k("center")};var M=document.createElement("button");M.setAttribute("type","button"),M.setAttribute("aria-label",W.a[e.options.lang].alignRight+"<"+Object(u.g)("⇧⌘R")+">"),M.setAttribute("data-type","right"),M.innerHTML='',M.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("right"===C?" vditor-icon--current":""),M.onclick=function(){k("right")};var j=document.createElement("button");j.setAttribute("type","button"),j.setAttribute("aria-label",W.a[e.options.lang].insertRowBelow+"<"+Object(u.g)("⌘=")+">"),j.setAttribute("data-type","insertRow"),j.innerHTML='',j.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",j.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=Object(w.f)(n,"TD")||Object(w.f)(n,"TH");r&&ut(e,t,r)};var x=document.createElement("button");x.setAttribute("type","button"),x.setAttribute("aria-label",W.a[e.options.lang].insertRowAbove+"<"+Object(u.g)("⇧⌘F")+">"),x.setAttribute("data-type","insertRow"),x.innerHTML='',x.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",x.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=Object(w.f)(n,"TD")||Object(w.f)(n,"TH");r&&pt(e,t,r)};var _=document.createElement("button");_.setAttribute("type","button"),_.setAttribute("aria-label",W.a[e.options.lang].insertColumnRight+"<"+Object(u.g)("⇧⌘=")+">"),_.setAttribute("data-type","insertColumn"),_.innerHTML='',_.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",_.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=Object(w.f)(t,"TD")||Object(w.f)(t,"TH");n&&ft(e,d,n)};var A=document.createElement("button");A.setAttribute("type","button"),A.setAttribute("aria-label",W.a[e.options.lang].insertColumnLeft+"<"+Object(u.g)("⇧⌘G")+">"),A.setAttribute("data-type","insertColumn"),A.innerHTML='',A.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",A.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=Object(w.f)(t,"TD")||Object(w.f)(t,"TH");n&&ft(e,d,n,"beforebegin")};var D=document.createElement("button");D.setAttribute("type","button"),D.setAttribute("aria-label",W.a[e.options.lang]["delete-row"]+"<"+Object(u.g)("⌘-")+">"),D.setAttribute("data-type","deleteRow"),D.innerHTML='',D.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",D.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=Object(w.f)(n,"TD")||Object(w.f)(n,"TH");r&&mt(e,t,r)};var R=document.createElement("button");R.setAttribute("type","button"),R.setAttribute("aria-label",W.a[e.options.lang]["delete-column"]+"<"+Object(u.g)("⇧⌘-")+">"),R.setAttribute("data-type","deleteColumn"),R.innerHTML='',R.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",R.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=Object(w.f)(n,"TD")||Object(w.f)(n,"TH");r&&ht(e,t,d,r)},(J=document.createElement("span")).setAttribute("aria-label",W.a[e.options.lang].row),J.className="vditor-tooltipped vditor-tooltipped__n";var I=document.createElement("input");J.appendChild(I),I.type="number",I.min="1",I.className="vditor-input",I.style.width="42px",I.style.textAlign="center",I.setAttribute("placeholder",W.a[e.options.lang].row),I.value=d.rows.length.toString(),I.oninput=function(){y()},I.onkeydown=function(t){if(!t.isComposing)return"Tab"===t.key?(B.focus(),B.select(),void t.preventDefault()):void re(e,t)};var P=document.createElement("span");P.setAttribute("aria-label",W.a[e.options.lang].column),P.className="vditor-tooltipped vditor-tooltipped__n";var B=document.createElement("input");P.appendChild(B),B.type="number",B.min="1",B.className="vditor-input",B.style.width="42px",B.style.textAlign="center",B.setAttribute("placeholder",W.a[e.options.lang].column),B.value=d.rows[0].cells.length.toString(),B.oninput=function(){y()},B.onkeydown=function(t){if(!t.isComposing)return"Tab"===t.key?(I.focus(),I.select(),void t.preventDefault()):void re(e,t)},le(t,d,e),se(t,d,e),ce(d,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",T),e.wysiwyg.popover.insertAdjacentElement("beforeend",L),e.wysiwyg.popover.insertAdjacentElement("beforeend",M),e.wysiwyg.popover.insertAdjacentElement("beforeend",x),e.wysiwyg.popover.insertAdjacentElement("beforeend",j),e.wysiwyg.popover.insertAdjacentElement("beforeend",A),e.wysiwyg.popover.insertAdjacentElement("beforeend",_),e.wysiwyg.popover.insertAdjacentElement("beforeend",D),e.wysiwyg.popover.insertAdjacentElement("beforeend",R),e.wysiwyg.popover.insertAdjacentElement("beforeend",J),e.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),e.wysiwyg.popover.insertAdjacentElement("beforeend",P),oe(e,d)}var q=Object(w.d)(n,"data-type","link-ref");q&&ae(e,q);var U=Object(w.d)(n,"data-type","footnotes-ref");if(U){e.wysiwyg.popover.innerHTML="",(J=document.createElement("span")).setAttribute("aria-label",W.a[e.options.lang].footnoteRef+"<"+Object(u.g)("⌥Enter")+">"),J.className="vditor-tooltipped vditor-tooltipped__n";var V=document.createElement("input");J.appendChild(V),V.className="vditor-input",V.setAttribute("placeholder",W.a[e.options.lang].footnoteRef+"<"+Object(u.g)("⌥Enter")+">"),V.style.width="120px",V.value=U.getAttribute("data-footnotes-label"),V.oninput=function(){""!==V.value.trim()&&U.setAttribute("data-footnotes-label",V.value)},V.onkeydown=function(n){if(!n.isComposing)return Object(u.d)(n)||n.shiftKey||!n.altKey||"Enter"!==n.key?void re(e,n):(t.selectNodeContents(U),t.collapse(!1),Object(N.h)(t),void n.preventDefault())},ce(U,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",J),oe(e,U)}var K=Object(w.e)(n,"vditor-wysiwyg__block");if(K&&K.getAttribute("data-type").indexOf("block")>-1){if(e.wysiwyg.popover.innerHTML="",le(t,K,e),se(t,K,e),ce(K,e),"code-block"===K.getAttribute("data-type")){var F=document.createElement("span");F.setAttribute("aria-label",W.a[e.options.lang].language+"<"+Object(u.g)("⌥Enter")+">"),F.className="vditor-tooltipped vditor-tooltipped__n";var z=document.createElement("input");F.appendChild(z);var Z=K.firstElementChild.firstElementChild;z.className="vditor-input",z.setAttribute("placeholder",W.a[e.options.lang].language+"<"+Object(u.g)("⌥Enter")+">"),z.value=Z.className.indexOf("language-")>-1?Z.className.split("-")[1].split(" ")[0]:"",z.oninput=function(){""!==z.value.trim()?Z.className="language-"+z.value:(Z.className="",e.hint.recentLanguage=""),K.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(K.lastElementChild.innerHTML=K.firstElementChild.innerHTML,H(K.lastElementChild,e)),X(e)},z.onkeydown=function(n){if(!n.isComposing&&!re(e,n)){if("Escape"===n.key&&"block"===e.hint.element.style.display)return e.hint.element.style.display="none",void n.preventDefault();Object(u.d)(n)||n.shiftKey||!n.altKey||"Enter"!==n.key||(t.setStart(Z.firstChild,0),t.collapse(!0),Object(N.h)(t)),e.hint.select(n,e)}},z.onkeyup=function(t){if(!t.isComposing&&"Enter"!==t.key&&"ArrowUp"!==t.key&&"Escape"!==t.key&&"ArrowDown"!==t.key){var n=[],r=z.value.substring(0,z.selectionStart);a.a.CODE_LANGUAGES.forEach((function(e){e.indexOf(r.toLowerCase())>-1&&n.push({html:e,value:e})})),e.hint.genHTML(n,r,e),t.preventDefault()}},e.wysiwyg.popover.insertAdjacentElement("beforeend",F)}oe(e,K)}else K||e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach((function(e){e.previousElementSibling.style.display="none"})),K=void 0;if(v){var J;e.wysiwyg.popover.innerHTML="",(J=document.createElement("span")).setAttribute("aria-label","ID<"+Object(u.g)("⌥Enter")+">"),J.className="vditor-tooltipped vditor-tooltipped__n";var G=document.createElement("input");J.appendChild(G),G.className="vditor-input",G.setAttribute("placeholder","ID<"+Object(u.g)("⌥Enter")+">"),G.style.width="120px",G.value=v.getAttribute("data-id")||"",G.oninput=function(){v.setAttribute("data-id",G.value)},G.onkeydown=function(n){if(!n.isComposing)return Object(u.d)(n)||n.shiftKey||!n.altKey||"Enter"!==n.key?void re(e,n):(t.selectNodeContents(v),t.collapse(!1),Object(N.h)(t),void n.preventDefault())},le(t,v,e),se(t,v,e),ce(v,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",J),oe(e,v)}if(c&&ue(e,c),!(b||i||d||K||c||q||U||v||g)){var Y=Object(w.d)(n,"data-block","0");Y&&Y.parentElement.isEqualNode(e.wysiwyg.element)?(e.wysiwyg.popover.innerHTML="",le(t,Y,e),se(t,Y,e),ce(Y,e),oe(e,Y)):e.wysiwyg.popover.style.display="none"}e.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach((function(e){e.style.display="none"}));var $=Object(w.d)(t.startContainer,"data-type","backslash");$&&($.querySelector("span").style.display="inline")}}),200)},oe=function(e,t){var n=t,r=Object(w.f)(t,"TABLE");r&&(n=r),e.wysiwyg.popover.style.left="0",e.wysiwyg.popover.style.display="block",e.wysiwyg.popover.style.top=Math.max(-8,n.offsetTop-21-e.wysiwyg.element.scrollTop)+"px",e.wysiwyg.popover.style.left=Math.min(n.offsetLeft,e.wysiwyg.element.clientWidth-e.wysiwyg.popover.clientWidth)+"px",e.wysiwyg.popover.setAttribute("data-top",(n.offsetTop-21).toString())},ae=function(e,t){e.wysiwyg.popover.innerHTML="";var n=function(){""!==i.value.trim()&&("IMG"===t.tagName?t.setAttribute("alt",i.value):t.textContent=i.value),""!==a.value.trim()&&t.setAttribute("data-link-label",a.value)},r=document.createElement("span");r.setAttribute("aria-label",W.a[e.options.lang].textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var i=document.createElement("input");r.appendChild(i),i.className="vditor-input",i.setAttribute("placeholder",W.a[e.options.lang].textIsNotEmpty),i.style.width="120px",i.value=t.getAttribute("alt")||t.textContent,i.oninput=function(){n()},i.onkeydown=function(n){re(e,n)||de(e,t,n,a)};var o=document.createElement("span");o.setAttribute("aria-label",W.a[e.options.lang].linkRef),o.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");o.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",W.a[e.options.lang].linkRef),a.value=t.getAttribute("data-link-label"),a.oninput=function(){n()},a.onkeydown=function(n){re(e,n)||de(e,t,n,i)},ce(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",o),oe(e,t)},le=function(e,t,n){var r=t.previousElementSibling;if(r&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("data-type","up"),i.setAttribute("aria-label",W.a[n.options.lang].up+"<"+Object(u.g)("⇧⌘U")+">"),i.innerHTML='',i.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",i.onclick=function(){e.insertNode(document.createElement("wbr")),r.insertAdjacentElement("beforebegin",t),Object(N.f)(n.wysiwyg.element,e),X(n),ie(n),Te(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",i)}},se=function(e,t,n){var r=t.nextElementSibling;if(r&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("data-type","down"),i.setAttribute("aria-label",W.a[n.options.lang].down+"<"+Object(u.g)("⇧⌘D")+">"),i.innerHTML='',i.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",i.onclick=function(){e.insertNode(document.createElement("wbr")),r.insertAdjacentElement("afterend",t),Object(N.f)(n.wysiwyg.element,e),X(n),ie(n),Te(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",i)}},ce=function(e,t){var n=document.createElement("button");n.setAttribute("type","button"),n.setAttribute("data-type","remove"),n.setAttribute("aria-label",W.a[t.options.lang].remove+"<"+Object(u.g)("⇧⌘X")+">"),n.innerHTML='',n.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",n.onclick=function(){var n=Object(N.b)(t);n.setStartAfter(e),Object(N.h)(n),e.remove(),X(t),ie(t)},t.wysiwyg.popover.insertAdjacentElement("beforeend",n)},de=function(e,t,n,r){if(!n.isComposing){if("Tab"===n.key)return r.focus(),r.select(),void n.preventDefault();if(!Object(u.d)(n)&&!n.shiftKey&&n.altKey&&"Enter"===n.key){var i=Object(N.b)(e);t.insertAdjacentHTML("afterend",a.a.ZWSP),i.setStartAfter(t.nextSibling),i.collapse(!0),Object(N.h)(i),n.preventDefault()}}},ue=function(e,t){e.wysiwyg.popover.innerHTML="";var n=function(){""!==i.value.trim()&&(t.innerHTML=i.value),t.setAttribute("href",a.value),t.setAttribute("title",s.value)};t.querySelectorAll("[data-marker]").forEach((function(e){e.removeAttribute("data-marker")}));var r=document.createElement("span");r.setAttribute("aria-label",W.a[e.options.lang].textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var i=document.createElement("input");r.appendChild(i),i.className="vditor-input",i.setAttribute("placeholder",W.a[e.options.lang].textIsNotEmpty),i.style.width="120px",i.value=t.innerHTML||"",i.oninput=function(){n()},i.onkeydown=function(n){re(e,n)||de(e,t,n,a)};var o=document.createElement("span");o.setAttribute("aria-label",W.a[e.options.lang].link),o.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");o.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",W.a[e.options.lang].link),a.value=t.getAttribute("href")||"",a.oninput=function(){n()},a.onkeydown=function(n){re(e,n)||de(e,t,n,s)};var l=document.createElement("span");l.setAttribute("aria-label",W.a[e.options.lang].tooltipText),l.className="vditor-tooltipped vditor-tooltipped__n";var s=document.createElement("input");l.appendChild(s),s.className="vditor-input",s.setAttribute("placeholder",W.a[e.options.lang].tooltipText),s.style.width="60px",s.value=t.getAttribute("title")||"",s.oninput=function(){n()},s.onkeydown=function(n){re(e,n)||de(e,t,n,i)},ce(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",o),e.wysiwyg.popover.insertAdjacentElement("beforeend",l),oe(e,t)},pe=function(e){"wysiwyg"===e.currentMode?ie(e):"ir"===e.currentMode&&G(e)},fe=function(e,t,n){void 0===n&&(n={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var r=e.wysiwyg.element;r.innerHTML=e.lute.Md2VditorDOM(t),r.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e),t.previousElementSibling.setAttribute("style","display:none")})),X(e,n)},me=function(e,t,n){for(var r=e.startContainer.parentElement,i=!1,o="",l="",s=function(e){var t=$(e.startContainer),n=Y(e.startContainer),r=e.startContainer.textContent,i=e.startOffset,o="",l="";return(""!==r.substr(0,i)&&r.substr(0,i)!==a.a.ZWSP||t)&&(o=""+t+r.substr(0,i)),(""!==r.substr(i)&&r.substr(i)!==a.a.ZWSP||n)&&(l=""+r.substr(i)+n),{afterHTML:l,beforeHTML:o}}(e),c=s.beforeHTML,d=s.afterHTML;r&&!i;){var u=r.tagName;if("STRIKE"===u&&(u="S"),"I"===u&&(u="EM"),"B"===u&&(u="STRONG"),"S"===u||"STRONG"===u||"EM"===u){var p="",f="",m="";"0"!==r.parentElement.getAttribute("data-block")&&(f=$(r),m=Y(r)),(c||f)&&(c=p=f+"<"+u+">"+c+""),("bold"===n&&"STRONG"===u||"italic"===n&&"EM"===u||"strikeThrough"===n&&"S"===u)&&(p+=""+o+a.a.ZWSP+""+l,i=!0),(d||m)&&(p+=d="<"+u+">"+d+""+m),"0"!==r.parentElement.getAttribute("data-block")?(r=r.parentElement).innerHTML=p:(r.outerHTML=p,r=r.parentElement),o="<"+u+">"+o,l=""+l}else i=!0}Object(N.f)(t.wysiwyg.element,e)},he=function(e,t){var n,r=this;this.element=document.createElement("div"),t.className&&(n=this.element.classList).add.apply(n,t.className.split(" "));var i=t.hotkey?" <"+Object(u.g)(t.hotkey)+">":"";2===t.level&&(i=t.hotkey?" <"+Object(u.g)(t.hotkey)+">":"");var o=t.tip?t.tip+i:W.a[e.options.lang][t.name]+i,l="upload"===t.name?"div":"button";if(2===t.level)this.element.innerHTML="<"+l+' data-type="'+t.name+'">'+o+"";else{this.element.classList.add("vditor-toolbar__item");var s=document.createElement(l);s.setAttribute("data-type",t.name),s.className="vditor-tooltipped vditor-tooltipped__"+t.tipPosition,s.setAttribute("aria-label",o),s.innerHTML=t.icon,this.element.appendChild(s)}t.prefix&&this.element.children[0].addEventListener(Object(u.b)(),(function(n){n.preventDefault(),r.element.firstElementChild.classList.contains(a.a.CLASS_MENU_DISABLED)||("wysiwyg"===e.currentMode?function(e,t,n){if(!(e.wysiwyg.composingLock&&n instanceof CustomEvent)){var r=!0,i=!0;e.wysiwyg.element.querySelector("wbr")&&e.wysiwyg.element.querySelector("wbr").remove();var o=Object(N.b)(e),l=t.getAttribute("data-type");if(t.classList.contains("vditor-menu--current"))if("strike"===l&&(l="strikeThrough"),"quote"===l){var s=Object(w.f)(o.startContainer,"BLOCKQUOTE");s||(s=o.startContainer.childNodes[o.startOffset]),s&&(r=!1,t.classList.remove("vditor-menu--current"),o.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'

          '+s.innerHTML+"

          ":s.innerHTML,Object(N.f)(e.wysiwyg.element,o))}else if("inline-code"===l){var c=Object(w.f)(o.startContainer,"CODE");c||(c=o.startContainer.childNodes[o.startOffset]),c&&(c.outerHTML=c.innerHTML.replace(a.a.ZWSP,"")+"",Object(N.f)(e.wysiwyg.element,o))}else"link"===l?o.collapsed?(o.selectNode(o.startContainer.parentElement),document.execCommand("unlink",!1,"")):document.execCommand("unlink",!1,""):"check"===l||"list"===l||"ordered-list"===l?(tt(e,o,l),Object(N.f)(e.wysiwyg.element,o),r=!1,t.classList.remove("vditor-menu--current")):(r=!1,t.classList.remove("vditor-menu--current"),""===o.toString()?me(o,e,l):document.execCommand(l,!1,""));else{0===e.wysiwyg.element.childNodes.length&&(e.wysiwyg.element.innerHTML='

          ',Object(N.f)(e.wysiwyg.element,o));var d=Object(w.c)(o.startContainer);if("quote"===l){if(d||(d=o.startContainer.childNodes[o.startOffset]),d){r=!1,t.classList.add("vditor-menu--current"),o.insertNode(document.createElement("wbr"));var u=Object(w.f)(o.startContainer,"LI");u&&d.contains(u)?u.innerHTML='
          '+u.innerHTML+"
          ":d.outerHTML='
          '+d.outerHTML+"
          ",Object(N.f)(e.wysiwyg.element,o)}}else if("check"===l||"list"===l||"ordered-list"===l)tt(e,o,l,!1),Object(N.f)(e.wysiwyg.element,o),r=!1,p(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current");else if("inline-code"===l){if(""===o.toString())(f=document.createElement("code")).textContent=a.a.ZWSP,o.insertNode(f),o.setStart(f.firstChild,1),o.collapse(!0),Object(N.h)(o);else if(3===o.startContainer.nodeType){var f=document.createElement("code");o.surroundContents(f),o.insertNode(f),Object(N.h)(o)}t.classList.add("vditor-menu--current")}else if("code"===l)(f=document.createElement("div")).className="vditor-wysiwyg__block",f.setAttribute("data-type","code-block"),f.setAttribute("data-block","0"),f.setAttribute("data-marker","```"),""===o.toString()?f.innerHTML="
          \n
          ":(f.innerHTML="
          "+o.toString()+"
          ",o.deleteContents()),o.insertNode(f),d&&(d.outerHTML=e.lute.SpinVditorDOM(d.outerHTML)),Object(N.f)(e.wysiwyg.element,o),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e)})),t.classList.add("vditor-menu--disabled");else if("link"===l){if(""===o.toString()){var m=document.createElement("a");m.innerText=a.a.ZWSP,o.insertNode(m),o.setStart(m.firstChild,1),o.collapse(!0),ue(e,m);var h=e.wysiwyg.popover.querySelector("input");h.value="",h.focus(),i=!1}else{(f=document.createElement("a")).setAttribute("href",""),f.innerHTML=o.toString(),o.surroundContents(f),o.insertNode(f),Object(N.h)(o),ue(e,f);var v=e.wysiwyg.popover.querySelectorAll("input");v[0].value=f.innerText,v[1].focus()}r=!1,t.classList.add("vditor-menu--current")}else if("table"===l){var g='
          col1col2col3
          ';if(""===o.toString().trim())d&&""===d.innerHTML.trim().replace(a.a.ZWSP,"")?d.outerHTML=g:document.execCommand("insertHTML",!1,g),o.selectNode(e.wysiwyg.element.querySelector("wbr").previousSibling),e.wysiwyg.element.querySelector("wbr").remove(),Object(N.h)(o);else{g='';var b=o.toString().split("\n"),y=b[0].split(",").length>b[0].split("\t").length?",":"\t";b.forEach((function(e,t){0===t?(e.split(y).forEach((function(e,t){g+=0===t?"":""})),g+=""):(g+=1===t?"":"",e.split(y).forEach((function(e){g+=""})),g+="")})),g+="
          "+e+""+e+"
          "+e+"
          ",document.execCommand("insertHTML",!1,g),Object(N.f)(e.wysiwyg.element,o)}r=!1,t.classList.add("vditor-menu--disabled")}else if("line"===l){if(d){var E='

          \n

          ';""===d.innerHTML.trim()?d.outerHTML=E:d.insertAdjacentHTML("afterend",E),Object(N.f)(e.wysiwyg.element,o)}}else if(r=!1,t.classList.add("vditor-menu--current"),"strike"===l&&(l="strikeThrough"),""!==o.toString()||"bold"!==l&&"italic"!==l&&"strikeThrough"!==l)document.execCommand(l,!1,"");else{var k="strong";"italic"===l?k="em":"strikeThrough"===l&&(k="s"),(f=document.createElement(k)).textContent=a.a.ZWSP,o.insertNode(f),f.previousSibling&&f.previousSibling.textContent===a.a.ZWSP&&(f.previousSibling.textContent=""),o.setStart(f.firstChild,1),o.collapse(!0),Object(N.h)(o)}}r&&ie(e),i&&X(e)}}(e,r.element.children[0],n):"ir"===e.currentMode?Mt(e,r.element.children[0],t.prefix||"",t.suffix||""):De(e,r.element.children[0],t.prefix||"",t.suffix||""))}))},ve=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ge=function(e,t,n){var r;if("string"!=typeof n?(b(e,["subToolbar","hint"]),n.preventDefault(),r=s(e)):r=n,e.currentMode!==t||"string"==typeof n){if(e.devtools&&e.devtools.renderEchart(e),"both"===e.options.preview.mode&&"sv"===t?e.preview.element.style.display="block":e.preview.element.style.display="none",m(e.toolbar.elements,a.a.EDIT_TOOLBARS),p(e.toolbar.elements,a.a.EDIT_TOOLBARS),h(e.toolbar.elements,["outdent","indent"]),"ir"===t)v(e.toolbar.elements,["both"]),g(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="block",e.lute.SetVditorIR(!0),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!1),e.currentMode="ir",e.ir.element.innerHTML=e.lute.Md2VditorIRDOM(r),Ct(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),z(e),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach((function(t){H(t,e)})),e.ir.element.querySelectorAll(".vditor-toc").forEach((function(t){Object(j.a)(t,{cdn:e.options.cdn,math:e.options.preview.math})}));else if("wysiwyg"===t)v(e.toolbar.elements,["both"]),g(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="block",e.ir.element.parentElement.style.display="none",e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!0),e.lute.SetVditorSV(!1),e.currentMode="wysiwyg",z(e),fe(e,r,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),e.wysiwyg.element.querySelectorAll(".vditor-toc").forEach((function(t){Object(j.a)(t,{cdn:e.options.cdn,math:e.options.preview.math})})),e.wysiwyg.popover.style.display="none";else if("sv"===t){g(e.toolbar.elements,["both"]),v(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="none",("both"===e.options.preview.mode||"editor"===e.options.preview.mode)&&(e.sv.element.style.display="block"),e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!0),e.currentMode="sv";var i=_e(r,e);"
          "===i&&(i=""),e.sv.element.innerHTML=i,He(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),z(e)}e.undo.resetIcon(e),"string"!=typeof n&&(e[e.currentMode].element.focus(),pe(e)),D(e),Z(e),e.toolbar.elements["edit-mode"]&&(e.toolbar.elements["edit-mode"].querySelectorAll("button").forEach((function(e){e.classList.remove("vditor-menu--current")})),e.toolbar.elements["edit-mode"].querySelector('button[data-mode="'+e.currentMode+'"]').classList.add("vditor-menu--current")),e.outline.toggle(e,"sv"!==e.currentMode&&e.options.outline.enable)}},be=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=document.createElement("div");return i.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow"),i.innerHTML='\n\n",r.element.appendChild(i),r._bindEvent(t,i,n),r}return ve(t,e),t.prototype._bindEvent=function(e,t,n){var r=this.element.children[0];y(e,t,r,n.level),t.children.item(0).addEventListener(Object(u.b)(),(function(t){ge(e,"wysiwyg",t),t.preventDefault(),t.stopPropagation()})),t.children.item(1).addEventListener(Object(u.b)(),(function(t){ge(e,"ir",t),t.preventDefault(),t.stopPropagation()})),t.children.item(2).addEventListener(Object(u.b)(),(function(t){ge(e,"sv",t),t.preventDefault(),t.stopPropagation()}))},t}(he),ye=function(e,t){return Object(N.e)(e,t)?getSelection().toString():""},we=function(e,t){t.addEventListener("focus",(function(){e.options.focus&&e.options.focus(s(e)),b(e,["subToolbar"])}))},Ee=function(e,t){t.addEventListener("dblclick",(function(t){"IMG"===t.target.tagName&&Object(U.a)(t.target,e.options.lang,e.options.theme)}))},ke=function(e,t){t.addEventListener("blur",(function(t){if("ir"===e.currentMode){var n=e.ir.element.querySelector(".vditor-ir__node--expand");n&&n.classList.remove("vditor-ir__node--expand")}else"wysiwyg"!==e.currentMode||e.wysiwyg.selectPopover.contains(t.relatedTarget)||e.wysiwyg.hideComment();e[e.currentMode].range=Object(N.b)(e),e.options.blur&&e.options.blur(s(e))}))},Se=function(e,t){t.addEventListener("dragstart",(function(e){e.dataTransfer.setData(a.a.DROP_EDITOR,a.a.DROP_EDITOR)})),t.addEventListener("drop",(function(t){t.dataTransfer.getData(a.a.DROP_EDITOR)?lt(e):("Files"===t.dataTransfer.types[0]||t.dataTransfer.types.includes("text/html"))&&St(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})}))},Oe=function(e,t,n){t.addEventListener("copy",(function(t){return n(t,e)}))},Ce=function(e,t,n){t.addEventListener("cut",(function(t){n(t,e),e.options.comment.enable&&"wysiwyg"===e.currentMode&&e.wysiwyg.getComments(e),document.execCommand("delete")}))},Te=function(e){if("wysiwyg"===e.currentMode&&e.options.comment.enable&&e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)),e.options.typewriterMode){var t=e[e.currentMode].element,n=Object(N.a)(t).top;"string"!=typeof e.options.height||e.element.classList.contains("vditor--fullscreen")||window.scrollTo(window.scrollX,n+e.element.offsetTop+e.toolbar.element.offsetHeight-window.innerHeight/2+10),("number"==typeof e.options.height||e.element.classList.contains("vditor--fullscreen"))&&(t.scrollTop=n+t.scrollTop-t.clientHeight/2+10)}},Le=function(e,t){t.addEventListener("keydown",(function(t){if(!(e.options.hint.extend.length>1||e.toolbar.elements.emoji)||!e.hint.select(t,e)){if(e.options.comment.enable&&"wysiwyg"===e.currentMode&&("Backspace"===t.key||B("⌘X",t))&&e.wysiwyg.getComments(e),"sv"===e.currentMode){if(function(e,t){var n,r,i,o,a;if(e.sv.composingLock=t.isComposing,t.isComposing)return!1;if(-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!Object(u.d)(t)&&"Escape"!==t.key)return!1;var l=Object(N.b)(e),s=l.startContainer;3!==l.startContainer.nodeType&&"DIV"===l.startContainer.tagName&&(s=l.startContainer.childNodes[l.startOffset-1]);var c=Object(w.d)(s,"data-type","text"),d=Object(w.d)(s,"data-type","blockquote-marker");if(!d&&0===l.startOffset&&c&&c.previousElementSibling&&"blockquote-marker"===c.previousElementSibling.getAttribute("data-type")&&(d=c.previousElementSibling),d&&"Enter"===t.key&&!Object(u.d)(t)&&!t.altKey&&""===d.nextElementSibling.textContent.trim()&&Object(N.c)(d,e.sv.element,l).start===d.textContent.length)return"padding"===(null===(n=d.previousElementSibling)||void 0===n?void 0:n.getAttribute("data-type"))&&d.previousElementSibling.setAttribute("data-action","enter-remove"),d.remove(),He(e),t.preventDefault(),!0;var p=Object(w.d)(s,"data-type","li-marker"),f=Object(w.d)(s,"data-type","task-marker"),m=p;if(m||f&&"task-marker"!==f.nextElementSibling.getAttribute("data-type")&&(m=f),m||0!==l.startOffset||!c||!c.previousElementSibling||"li-marker"!==c.previousElementSibling.getAttribute("data-type")&&"task-marker"!==c.previousElementSibling.getAttribute("data-type")||(m=c.previousElementSibling),m){var h=Object(N.c)(m,e.sv.element,l).start,v="task-marker"===m.getAttribute("data-type"),g=m;if(v&&(g=m.previousElementSibling.previousElementSibling.previousElementSibling),h===m.textContent.length){if("Enter"===t.key&&!Object(u.d)(t)&&!t.altKey&&!t.shiftKey&&""===m.nextElementSibling.textContent.trim())return"padding"===(null===(r=g.previousElementSibling)||void 0===r?void 0:r.getAttribute("data-type"))?(g.previousElementSibling.remove(),V(e)):(v&&(g.remove(),m.previousElementSibling.previousElementSibling.remove(),m.previousElementSibling.remove()),m.nextElementSibling.remove(),m.remove(),He(e)),t.preventDefault(),!0;if("Tab"===t.key)return g.insertAdjacentHTML("beforebegin",''+g.textContent.replace(/\S/g," ")+""),/^\d/.test(g.textContent)&&(g.textContent=g.textContent.replace(/^\d{1,}/,"1"),l.selectNodeContents(m.firstChild),l.collapse(!1)),V(e),t.preventDefault(),!0}}if(ct(e,l,t))return!0;var b=Object(w.d)(s,"data-block","0"),y=Object(E.b)(s,"SPAN");if("Enter"===t.key&&!Object(u.d)(t)&&!t.altKey&&!t.shiftKey&&b){var k=!1,S=b.textContent.match(/^\n+/);Object(N.c)(b,e.sv.element).start<=(S?S[0].length:0)&&(k=!0);var O="\n";if(y){if("enter-remove"===(null===(i=y.previousElementSibling)||void 0===i?void 0:i.getAttribute("data-action")))return y.previousElementSibling.remove(),He(e),t.preventDefault(),!0;O+=Ae(y)}return l.insertNode(document.createTextNode(O)),l.collapse(!1),b&&""!==b.textContent.trim()&&!k?V(e):He(e),t.preventDefault(),!0}if("Backspace"===t.key&&!Object(u.d)(t)&&!t.altKey&&!t.shiftKey){if(y&&"newline"===(null===(o=y.previousElementSibling)||void 0===o?void 0:o.getAttribute("data-type"))&&1===Object(N.c)(y,e.sv.element,l).start&&-1===y.getAttribute("data-type").indexOf("code-block-"))return l.setStart(y,0),l.extractContents(),""!==y.textContent.trim()?V(e):He(e),t.preventDefault(),!0;if(b&&0===Object(N.c)(b,e.sv.element,l).start&&b.previousElementSibling){l.extractContents();var C=b.previousElementSibling.lastElementChild;return"newline"===C.getAttribute("data-type")&&(C.remove(),C=b.previousElementSibling.lastElementChild),"newline"!==C.getAttribute("data-type")&&(C.insertAdjacentHTML("afterend",b.innerHTML),b.remove()),""===b.textContent.trim()||(null===(a=b.previousElementSibling)||void 0===a?void 0:a.querySelector('[data-type="code-block-open-marker"]'))?("newline"!==C.getAttribute("data-type")&&(l.selectNodeContents(C.lastChild),l.collapse(!1)),He(e)):V(e),t.preventDefault(),!0}}return!1}(e,t))return}else if("wysiwyg"===e.currentMode){if(function(e,t){if(e.wysiwyg.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=Object(N.b)(e),r=n.startContainer;if(!ze(t,e,r))return!1;if(Ze(n,e,t),Et(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!Object(u.d)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var i=Object(w.c)(r),o=Object(w.f)(r,"P");if(dt(t,e,o,n))return!0;if(st(n,e,o,t))return!0;if(vt(e,t,n))return!0;var l=Object(w.e)(r,"vditor-wysiwyg__block");if(l){if("Escape"===t.key&&2===l.children.length)return e.wysiwyg.popover.style.display="none",l.firstElementChild.style.display="none",e.wysiwyg.element.blur(),t.preventDefault(),!0;if(!Object(u.d)(t)&&!t.shiftKey&&t.altKey&&"Enter"===t.key&&"code-block"===l.getAttribute("data-type")){var s=e.wysiwyg.popover.querySelector(".vditor-input");return s.focus(),s.select(),t.preventDefault(),!0}if("0"===l.getAttribute("data-block")){if(gt(e,t,l.firstElementChild,n))return!0;if(Qe(e,t,n,l.firstElementChild,l))return!0;if("yaml-front-matter"!==l.getAttribute("data-type")&&et(e,t,n,l.firstElementChild,l))return!0}}if(bt(e,n,t,o))return!0;var c=Object(w.h)(r,"BLOCKQUOTE");if(c&&!t.shiftKey&&t.altKey&&"Enter"===t.key){Object(u.d)(t)?n.setStartBefore(c):n.setStartAfter(c),Object(N.h)(n);var d=document.createElement("p");return d.setAttribute("data-block","0"),d.innerHTML="\n",n.insertNode(d),n.collapse(!0),Object(N.h)(n),X(e),Te(e),t.preventDefault(),!0}var p,f=Object(E.a)(r);if(f){if("H6"===f.tagName&&r.textContent.length===n.startOffset&&!Object(u.d)(t)&&!t.shiftKey&&!t.altKey&&"Enter"===t.key){var m=document.createElement("p");return m.textContent="\n",m.setAttribute("data-block","0"),r.parentElement.insertAdjacentElement("afterend",m),n.setStart(m,0),Object(N.h)(n),X(e),Te(e),t.preventDefault(),!0}var h;if(B("⌘=",t))return(h=parseInt(f.tagName.substr(1),10)-1)>0&&(ee(e,"h"+h),X(e)),t.preventDefault(),!0;if(B("⌘-",t))return(h=parseInt(f.tagName.substr(1),10)+1)<7&&(ee(e,"h"+h),X(e)),t.preventDefault(),!0;"Backspace"!==t.key||Object(u.d)(t)||t.shiftKey||t.altKey||""!==f.textContent||te(e)}if(yt(e,n,t))return!0;if(t.altKey&&"Enter"===t.key&&!Object(u.d)(t)&&!t.shiftKey){var v=Object(w.f)(r,"A"),g=Object(w.d)(r,"data-type","link-ref"),b=Object(w.d)(r,"data-type","footnotes-ref");if(v||g||b||f&&2===f.tagName.length){var y=e.wysiwyg.popover.querySelector("input");y.focus(),y.select()}}if(re(e,t))return!0;if(B("⇧⌘U",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="up"]')))return p.click(),t.preventDefault(),!0;if(B("⇧⌘D",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="down"]')))return p.click(),t.preventDefault(),!0;if(ct(e,n,t))return!0;if(!Object(u.d)(t)&&t.shiftKey&&!t.altKey&&"Enter"===t.key&&"LI"!==r.parentElement.tagName&&"P"!==r.parentElement.tagName)return["STRONG","STRIKE","S","I","EM","B"].includes(r.parentElement.tagName)?n.insertNode(document.createTextNode("\n"+a.a.ZWSP)):n.insertNode(document.createTextNode("\n")),n.collapse(!1),Object(N.h)(n),X(e),Te(e),t.preventDefault(),!0;if("Backspace"===t.key&&!Object(u.d)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(wt(e,n,t,o))return!0;if(i){if(i.previousElementSibling&&i.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&"0"===i.previousElementSibling.getAttribute("data-block")){var k=Object(N.c)(i,e.wysiwyg.element,n).start;if(0===k&&0===n.startOffset||1===k&&i.innerText.startsWith(a.a.ZWSP))return ne(i.previousElementSibling.lastElementChild,e,!1),""===i.innerHTML.trim().replace(a.a.ZWSP,"")&&(i.remove(),X(e)),t.preventDefault(),!0}var S=n.startOffset;if(""===n.toString()&&3===r.nodeType&&"\n"===r.textContent.charAt(S-2)&&r.textContent.charAt(S-1)!==a.a.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes(r.parentElement.tagName))return r.textContent=r.textContent.substring(0,S-1)+a.a.ZWSP,n.setStart(r,S),n.collapse(!0),X(e),t.preventDefault(),!0;r.textContent===a.a.ZWSP&&1===n.startOffset&&!r.previousSibling&&function(e){for(var t=e.startContainer.nextSibling;t&&""===t.textContent;)t=t.nextSibling;return!(!t||3===t.nodeType||"CODE"!==t.tagName&&"math-inline"!==t.getAttribute("data-type")&&"html-entity"!==t.getAttribute("data-type")&&"html-inline"!==t.getAttribute("data-type"))}(n)&&(r.textContent=""),i.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach((function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"})),i.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach((function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"}))}}if(Object(u.e)()&&1===n.startOffset&&r.textContent.indexOf(a.a.ZWSP)>-1&&r.previousSibling&&3!==r.previousSibling.nodeType&&"CODE"===r.previousSibling.tagName&&("Backspace"===t.key||"ArrowLeft"===t.key))return n.selectNodeContents(r.previousSibling),n.collapse(!1),t.preventDefault(),!0;if(kt(t,i,n))return t.preventDefault(),!0;if(Je(n,t.key),"ArrowDown"===t.key){var O=r.nextSibling;O&&3!==O.nodeType&&"math-inline"===O.getAttribute("data-type")&&n.setStartAfter(O)}return!(!i||!I(i,e,t,n))&&(t.preventDefault(),!0)}(e,t))return}else if("ir"===e.currentMode&&function(e,t){if(e.ir.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=Object(N.b)(e),r=n.startContainer;if(!ze(t,e,r))return!1;if(Ze(n,e,t),Et(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!Object(u.d)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var i=Object(w.d)(r,"data-newline","1");if(!Object(u.d)(t)&&!t.altKey&&!t.shiftKey&&"Enter"===t.key&&i&&n.startOffset-1&&m){var h=Xe(m);if(h&&et(e,t,n,m,h))return!0;var v=Ye(m);if(v&&Qe(e,t,n,m,v))return!0}if(vt(e,t,n))return!0;if(yt(e,n,t))return!0;if(ct(e,n,t))return!0;var g=Object(E.a)(r);if(g){var y;if(B("⌘=",t))return(y=g.querySelector(".vditor-ir__marker--heading"))&&y.textContent.trim().length>1&&Tt(e,y.textContent.substr(1)),t.preventDefault(),!0;if(B("⌘-",t))return(y=g.querySelector(".vditor-ir__marker--heading"))&&y.textContent.trim().length<6&&Tt(e,y.textContent.trim()+"# "),t.preventDefault(),!0}var k=Object(w.c)(r);if("Backspace"===t.key&&!Object(u.d)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(wt(e,n,t,s))return!0;if(k&&k.previousElementSibling&&("code-block"===k.previousElementSibling.getAttribute("data-type")||"math-block"===k.previousElementSibling.getAttribute("data-type"))){var S=Object(N.c)(k,e.ir.element,n).start;if(0===S||1===S&&k.innerText.startsWith(a.a.ZWSP))return n.selectNodeContents(k.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),n.collapse(!1),q(n,e),""===k.textContent.trim().replace(a.a.ZWSP,"")&&(k.remove(),Ct(e)),t.preventDefault(),!0}if(g){var O=g.firstElementChild.textContent.length;Object(N.c)(g,e.ir.element).start===O&&(n.setStart(g.firstElementChild.firstChild,O-1),n.collapse(!0),Object(N.h)(n))}}return!("ArrowUp"!==t.key&&"ArrowDown"!==t.key||!k||(k.querySelectorAll(".vditor-ir__node").forEach((function(e){e.contains(r)||e.classList.add("vditor-ir__node--hidden")})),!kt(t,k,n)))||(Je(n,t.key),!(!k||!I(k,e,t,n))&&(t.preventDefault(),!0))}(e,t))return;if(e.options.ctrlEnter&&B("⌘Enter",t))return e.options.ctrlEnter(s(e)),void t.preventDefault();if(B("⌘Z",t)&&!e.toolbar.elements.undo)return e.undo.undo(e),void t.preventDefault();if(B("⌘Y",t)&&!e.toolbar.elements.redo)return e.undo.redo(e),void t.preventDefault();if("Escape"===t.key)return"block"===e.hint.element.style.display?e.hint.element.style.display="none":e.options.esc&&!t.isComposing&&e.options.esc(s(e)),void t.preventDefault();if(Object(u.d)(t)&&t.altKey&&!t.shiftKey&&/^Digit[1-6]$/.test(t.code)){if("wysiwyg"===e.currentMode){var n=t.code.replace("Digit","H");Object(w.f)(getSelection().getRangeAt(0).startContainer,n)?te(e):ee(e,n),X(e)}else"sv"===e.currentMode?Ne(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" "):"ir"===e.currentMode&&Tt(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" ");return t.preventDefault(),!0}if(Object(u.d)(t)&&t.altKey&&!t.shiftKey&&/^Digit[7-9]$/.test(t.code))return"Digit7"===t.code?ge(e,"wysiwyg",t):"Digit8"===t.code?ge(e,"ir",t):"Digit9"===t.code&&ge(e,"sv",t),!0;e.options.toolbar.find((function(n){return!n.hotkey||n.toolbar?!!n.toolbar&&!!n.toolbar.find((function(n){return!!n.hotkey&&(B(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent(Object(u.b)())),t.preventDefault(),!0):void 0)})):B(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent(Object(u.b)())),t.preventDefault(),!0):void 0}))}}))},Me=function(e,t){t.addEventListener("selectstart",(function(n){t.onmouseup=function(){setTimeout((function(){var t=ye(e[e.currentMode].element);t.trim()?("wysiwyg"===e.currentMode&&e.options.comment.enable&&(Object(w.d)(n.target,"data-type","footnotes-block")||Object(w.d)(n.target,"data-type","link-ref-defs-block")?e.wysiwyg.hideComment():e.wysiwyg.showComment()),e.options.select&&e.options.select(t)):"wysiwyg"===e.currentMode&&e.options.comment.enable&&e.wysiwyg.hideComment()}))}}))},je=function(e,t){var n=Object(N.b)(e);n.extractContents(),n.insertNode(document.createTextNode(Lute.Caret)),n.insertNode(document.createTextNode(t));var r=Object(w.d)(n.startContainer,"data-block","0");r||(r=e.sv.element);var i="
          "+e.lute.Md2VditorSVDOM(r.textContent).replace(/
          \n<\/span><\/span>
          \n<\/span><\/span>
          \n

          \n
          <')+"
          ";r.isEqualNode(e.sv.element)?r.innerHTML=i:r.outerHTML=i,Object(N.f)(e.sv.element,n),Te(e)},xe=function(e,t,n){void 0===n&&(n=!0);var r=e;for(3===r.nodeType&&(r=r.parentElement);r;){if(r.getAttribute("data-type")===t)return r;r=n?r.previousElementSibling:r.nextElementSibling}return!1},_e=function(e,t){return k("SpinVditorSVDOM",e,"argument",t.options.debugger),e="
          "+t.lute.SpinVditorSVDOM(e).replace(/
          \n<\/span><\/span>
          \n<\/span><\/span>
          \n

          \n
          <')+"
          ",k("SpinVditorSVDOM",e,"result",t.options.debugger),e},Ae=function(e){var t=e.getAttribute("data-type"),n=e.previousElementSibling,r=t&&"text"!==t&&"table"!==t&&"heading-marker"!==t&&"newline"!==t&&"yaml-front-matter-open-marker"!==t&&"yaml-front-matter-close-marker"!==t&&"code-block-info"!==t&&"code-block-close-marker"!==t&&"code-block-open-marker"!==t?e.textContent:"",i=!1;for("newline"===t&&(i=!0);n&&!i;){var o=n.getAttribute("data-type");if("li-marker"===o||"blockquote-marker"===o||"task-marker"===o||"padding"===o){var a=n.textContent;if("li-marker"!==o||"code-block-open-marker"!==t&&"code-block-info"!==t)if("code-block-close-marker"===t&&n.nextElementSibling.isSameNode(e)){var l=xe(e,"code-block-open-marker");l&&l.previousElementSibling&&(n=l.previousElementSibling,r=a+r)}else r=a+r;else r=a.replace(/\S/g," ")+r}else"newline"===o&&(i=!0);n=n.previousElementSibling}return r},He=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),e.preview.render(e);var n=s(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&Object(u.a)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),clearTimeout(e.sv.processTimeoutId),e.sv.processTimeoutId=window.setTimeout((function(){t.enableAddUndoStack&&!e.sv.composingLock&&e.undo.addToUndoStack(e)}),e.options.undoDelay)},Ne=function(e,t){var n=Object(N.b)(e),r=Object(E.b)(n.startContainer,"SPAN");r&&""!==r.textContent.trim()&&(t="\n"+t),n.collapse(!0),document.execCommand("insertHTML",!1,t)},De=function(e,t,n,r){var i=Object(N.b)(e),o=t.getAttribute("data-type");0===e.sv.element.childNodes.length&&(e.sv.element.innerHTML='
          \n
          ',Object(N.f)(e.sv.element,i));var a=Object(w.c)(i.startContainer),l=Object(E.b)(i.startContainer,"SPAN");if(a){if("link"===o){var s=void 0;return s=""===i.toString()?""+n+Lute.Caret+r:""+n+i.toString()+r.replace(")",Lute.Caret+")"),void document.execCommand("insertHTML",!1,s)}if("italic"===o||"bold"===o||"strike"===o||"inline-code"===o||"code"===o||"table"===o||"line"===o){s=void 0;return s=""===i.toString()?""+n+Lute.Caret+("code"===o?"":r):""+n+i.toString()+Lute.Caret+("code"===o?"":r),"table"===o||"code"===o&&l&&""!==l.textContent?s="\n\n"+s:"line"===o&&(s="\n\n"+n+"\n"+Lute.Caret),void document.execCommand("insertHTML",!1,s)}if(("check"===o||"list"===o||"ordered-list"===o||"quote"===o)&&l){var c="* ";"check"===o?c="* [ ] ":"ordered-list"===o?c="1. ":"quote"===o&&(c="> ");var d=xe(l,"newline");return d?d.insertAdjacentText("afterend",c):a.insertAdjacentText("afterbegin",c),void V(e)}Object(N.f)(e.sv.element,i),He(e)}},Re=function(e){switch(e.currentMode){case"ir":return e.ir.element;case"wysiwyg":return e.wysiwyg.element;case"sv":return e.sv.element}},Ie=function(e,t){e.options.upload.setHeaders&&(e.options.upload.headers=e.options.upload.setHeaders()),e.options.upload.headers&&Object.keys(e.options.upload.headers).forEach((function(n){t.setRequestHeader(n,e.options.upload.headers[n])}))},Pe=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Be=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"+W.a[o].nameEmpty+"",c=!1),s.size>e.options.upload.max&&(r+="
        • "+s.name+" "+W.a[o].over+" "+e.options.upload.max/1024/1024+"M
        • ",c=!1);var d=s.name.lastIndexOf("."),u=s.name.substr(d),p=e.options.upload.filename(s.name.substr(0,d))+u;e.options.upload.accept&&(e.options.upload.accept.split(",").some((function(e){var t=e.trim();if(0===t.indexOf(".")){if(u.toLowerCase()===t.toLowerCase())return!0}else if(s.type.split("/")[0]===t.split("/")[0])return!0;return!1}))||(r+="
        • "+s.name+" "+W.a[o].fileTypeError+"
        • ",c=!1));c&&(n.push(s),i+="
        • "+p+" "+W.a[o].uploading+"
        • ")},l=t.length,s=0;s"+r+i+"
        "),n}(e,r)).length)return n&&(n.value=""),[2];for(c=new FormData,d=e.options.upload.extraData,u=0,p=Object.keys(d);u=200&&v.status<300)if(e.options.upload.success)e.options.upload.success(l,v.responseText);else{var r=v.responseText;e.options.upload.format&&(r=e.options.upload.format(t,v.responseText)),function(e,t){Re(t).focus();var n=JSON.parse(e),r="";1===n.code&&(r=""+n.msg),n.data.errFiles&&n.data.errFiles.length>0&&(r="
        • "+r+"
        • ",n.data.errFiles.forEach((function(e){var n=e.lastIndexOf("."),i=t.options.upload.filename(e.substr(0,n))+e.substr(n);r+="
        • "+i+" "+W.a[t.options.lang].uploadError+"
        • "})),r+="
        "),r?t.tip.show(r):t.tip.hide();var i="";Object.keys(n.data.succMap).forEach((function(e){var r=n.data.succMap[e],o=e.lastIndexOf("."),a=e.substr(o),l=t.options.upload.filename(e.substr(0,o))+a;0===(a=a.toLowerCase()).indexOf(".wav")||0===a.indexOf(".mp3")||0===a.indexOf(".ogg")?"wysiwyg"===t.currentMode?i+='
        <audio controls="controls" src="'+r+'"></audio>
        ':"ir"===t.currentMode?i+='\n':i+="["+l+"]("+r+")\n":0===a.indexOf(".apng")||0===a.indexOf(".bmp")||0===a.indexOf(".gif")||0===a.indexOf(".ico")||0===a.indexOf(".cur")||0===a.indexOf(".jpg")||0===a.indexOf(".jpeg")||0===a.indexOf(".jfif")||0===a.indexOf(".pjp")||0===a.indexOf(".pjpeg")||0===a.indexOf(".png")||0===a.indexOf(".svg")||0===a.indexOf(".webp")?"wysiwyg"===t.currentMode?i+=''+l+'':i+="!["+l+"]("+r+")\n":"wysiwyg"===t.currentMode?i+=''+l+"":i+="["+l+"]("+r+")\n"})),Object(N.h)(t.upload.range),document.execCommand("insertHTML",!1,i),t.upload.range=getSelection().getRangeAt(0).cloneRange()}(r,e)}else e.options.upload.error?e.options.upload.error(v.responseText):e.tip.show(v.responseText);n&&(n.value=""),e.upload.element.style.display="none"}},v.upload.onprogress=function(t){if(t.lengthComputable){var n=t.loaded/t.total*100;e.upload.element.style.display="block",e.upload.element.style.width=n+"%"}},v.send(c),[2]}}))}))},Ve=function(e,t,n){var r,i=Object(w.c)(t.startContainer);if(i||(i=e.wysiwyg.element),n&&"formatItalic"!==n.inputType&&"deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&"formatBold"!==n.inputType&&"formatRemove"!==n.inputType&&"formatStrikeThrough"!==n.inputType&&"insertUnorderedList"!==n.inputType&&"insertOrderedList"!==n.inputType&&"formatOutdent"!==n.inputType&&"formatIndent"!==n.inputType&&""!==n.inputType||!n){var o=function(e){for(var t=e.previousSibling;t;){if(3!==t.nodeType&&"A"===t.tagName&&!t.previousSibling&&""===t.innerHTML.replace(a.a.ZWSP,"")&&t.nextSibling)return t;t=t.previousSibling}return!1}(t.startContainer);o&&o.remove(),e.wysiwyg.element.querySelectorAll("wbr").forEach((function(e){e.remove()})),t.insertNode(document.createElement("wbr")),i.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),i.querySelectorAll(".vditor-comment").forEach((function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))})),null===(r=i.previousElementSibling)||void 0===r||r.querySelectorAll(".vditor-comment").forEach((function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))}));var l="";"link-ref-defs-block"===i.getAttribute("data-type")&&(i=e.wysiwyg.element);var s,c=i.isEqualNode(e.wysiwyg.element),d=Object(w.d)(i,"data-type","footnotes-block");if(c)l=i.innerHTML;else{var u=Object(w.b)(t.startContainer);if(u&&!d){var p=Object(E.b)(t.startContainer,"BLOCKQUOTE");i=p?Object(w.c)(t.startContainer)||i:u}if(d&&(i=d),l=i.outerHTML,"UL"===i.tagName||"OL"===i.tagName){var f=i.previousElementSibling,m=i.nextElementSibling;!f||"UL"!==f.tagName&&"OL"!==f.tagName||(l=f.outerHTML+l,f.remove()),!m||"UL"!==m.tagName&&"OL"!==m.tagName||(l+=m.outerHTML,m.remove()),l=l.replace("

        ","

      • ")}e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e){e&&!i.isEqualNode(e)&&(l+=e.outerHTML,e.remove())})),e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach((function(e){e&&!i.isEqualNode(e)&&(l+=e.outerHTML,e.remove())}))}if('

        ```

        '===(l=l.replace(/<\/(strong|b)>/g,"").replace(/<\/(em|i)>/g,"").replace(/<\/(s|strike)>/g,""))&&e.hint.recentLanguage&&(l='

        ```

        '.replace("```","```"+e.hint.recentLanguage)),k("SpinVditorDOM",l,"argument",e.options.debugger),l=e.lute.SpinVditorDOM(l),k("SpinVditorDOM",l,"result",e.options.debugger),c)i.innerHTML=l;else if(i.outerHTML=l,d){var h=Object(w.h)(e.wysiwyg.element.querySelector("wbr"),"LI");if(h){var v=e.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'+h.getAttribute("data-marker")+'"]');v&&v.setAttribute("aria-label",h.textContent.trim().substr(0,24))}}var g,b=e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");b.forEach((function(e,t){0===t?s=e:(s.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),b.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",b[0]);var y=e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");y.forEach((function(e,t){0===t?g=e:(g.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),y.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",y[0]),Object(N.f)(e.wysiwyg.element,t),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e)})),n&&("deleteContentBackward"===n.inputType||"deleteContentForward"===n.inputType)&&e.options.comment.enable&&(e.wysiwyg.triggerRemoveComment(e),e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)))}D(e),X(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},We=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ke=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function l(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Fe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||Object(u.d)(n)||"Escape"===n.key||n.shiftKey||n.altKey)){var r=Object(w.f)(e.startContainer,"P")||Object(w.f)(e.startContainer,"LI");if(r&&0===Object(N.c)(r,t[t.currentMode].element,e).start){var i=document.createTextNode(a.a.ZWSP);e.insertNode(i),e.setStartAfter(i)}}},Je=function(e,t){if("ArrowDown"===t||"ArrowUp"===t){var n=Object(w.d)(e.startContainer,"data-type","math-inline")||Object(w.d)(e.startContainer,"data-type","html-entity")||Object(w.d)(e.startContainer,"data-type","html-inline");n&&("ArrowDown"===t&&e.setStartAfter(n.parentElement),"ArrowUp"===t&&e.setStartBefore(n.parentElement))}},Ge=function(e,t){var n=Object(N.b)(e),r=Object(w.c)(n.startContainer);r&&(r.insertAdjacentHTML(t,'

        '+a.a.ZWSP+"\n

        "),Object(N.f)(e[e.currentMode].element,n),pe(e),lt(e))},Xe=function(e){var t=Object(w.f)(e,"TABLE");return!(!t||!t.rows[0].cells[0].isSameNode(e))&&t},Ye=function(e){var t=Object(w.f)(e,"TABLE");return!(!t||!t.lastElementChild.lastElementChild.lastElementChild.isSameNode(e))&&t},$e=function(e,t,n){void 0===n&&(n=!0);var r=e.previousElementSibling;return r||(r=e.parentElement.previousElementSibling?e.parentElement.previousElementSibling.lastElementChild:"TBODY"===e.parentElement.parentElement.tagName&&e.parentElement.parentElement.previousElementSibling?e.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:null),r&&(t.selectNodeContents(r),n||t.collapse(!1),Object(N.h)(t)),r},Qe=function(e,t,n,r,i){var o=Object(N.c)(r,e[e.currentMode].element,n);if("ArrowDown"===t.key&&-1===r.textContent.trimRight().substr(o.start).indexOf("\n")||"ArrowRight"===t.key&&o.start>=r.textContent.trimRight().length){var l=i.nextElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(i.insertAdjacentHTML("afterend",'

        '+a.a.ZWSP+"

        "),Object(N.f)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!0),Object(N.h)(n)),t.preventDefault(),!0}return!1},et=function(e,t,n,r,i){var o=Object(N.c)(r,e[e.currentMode].element,n);if("ArrowUp"===t.key&&-1===r.textContent.substr(0,o.start).indexOf("\n")||("ArrowLeft"===t.key||"Backspace"===t.key&&""===n.toString())&&0===o.start){var l=i.previousElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(i.insertAdjacentHTML("beforebegin",'

        '+a.a.ZWSP+"

        "),Object(N.f)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!1),Object(N.h)(n)),t.preventDefault(),!0}return!1},tt=function(e,t,n,r){void 0===r&&(r=!0);var i=Object(w.f)(t.startContainer,"LI");if(e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),t.insertNode(document.createElement("wbr")),r&&i){for(var o="",a=0;a'+i.parentElement.children[a].innerHTML.trimLeft()+"

        "}i.parentElement.insertAdjacentHTML("beforebegin",o),i.parentElement.remove()}else if(i)if("check"===n)i.parentElement.querySelectorAll("li").forEach((function(e){e.insertAdjacentHTML("afterbegin",''+(0===e.textContent.indexOf(" ")?"":" ")),e.classList.add("vditor-task")}));else{i.querySelector("input")&&i.parentElement.querySelectorAll("li").forEach((function(e){e.querySelector("input").remove(),e.classList.remove("vditor-task")}));var s=void 0;(s="list"===n?document.createElement("ul"):document.createElement("ol")).innerHTML=i.parentElement.innerHTML,i.parentElement.parentNode.replaceChild(s,i.parentElement)}else{var c=Object(w.d)(t.startContainer,"data-block","0");c||(e[e.currentMode].element.querySelector("wbr").remove(),(c=e[e.currentMode].element.querySelector("p")).innerHTML=""),"check"===n?(c.insertAdjacentHTML("beforebegin",'
        • '+c.innerHTML+"
        "),c.remove()):"list"===n?(c.insertAdjacentHTML("beforebegin",'
        • '+c.innerHTML+"
        "),c.remove()):"ordered-list"===n&&(c.insertAdjacentHTML("beforebegin",'
        1. '+c.innerHTML+"
        "),c.remove())}},nt=function(e,t,n){var r=t.previousElementSibling;if(t&&r){var i=[t];Array.from(n.cloneContents().children).forEach((function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&i.push(t),t=t.nextElementSibling)})),e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),n.insertNode(document.createElement("wbr"));var o=r.parentElement,a="";i.forEach((function(e){var t=e.getAttribute("data-marker");1!==t.length&&(t="1"+t.slice(-1)),a+='
      • '+e.innerHTML+"
      • ",e.remove()})),r.insertAdjacentHTML("beforeend","<"+o.tagName+' data-block="0">'+a+""),"wysiwyg"===e.currentMode?o.outerHTML=e.lute.SpinVditorDOM(o.outerHTML):o.outerHTML=e.lute.SpinVditorIRDOM(o.outerHTML),Object(N.f)(e[e.currentMode].element,n);var l=Object(w.b)(n.startContainer);l&&l.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")})),lt(e),pe(e)}else e[e.currentMode].element.focus()},rt=function(e,t,n,r){var i=Object(w.f)(t.parentElement,"LI");if(i){e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),n.insertNode(document.createElement("wbr"));var o=t.parentElement,a=o.cloneNode(),l=[t];Array.from(n.cloneContents().children).forEach((function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&l.push(t),t=t.nextElementSibling)}));var s=!1,c="";o.querySelectorAll("li").forEach((function(e){s&&(c+=e.outerHTML,e.nextElementSibling||e.previousElementSibling?e.remove():e.parentElement.remove()),e.isSameNode(l[l.length-1])&&(s=!0)})),l.reverse().forEach((function(e){i.insertAdjacentElement("afterend",e)})),c&&(a.innerHTML=c,l[0].insertAdjacentElement("beforeend",a)),"wysiwyg"===e.currentMode?r.outerHTML=e.lute.SpinVditorDOM(r.outerHTML):r.outerHTML=e.lute.SpinVditorIRDOM(r.outerHTML),Object(N.f)(e[e.currentMode].element,n);var d=Object(w.b)(n.startContainer);d&&d.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")})),lt(e),pe(e)}else e[e.currentMode].element.focus()},it=function(e,t){for(var n=getSelection().getRangeAt(0).startContainer.parentElement,r=e.rows[0].cells.length,i=e.rows.length,o=0,a=0;a2&&(!(t.indexOf("-")>-1&&-1===t.trimLeft().indexOf(" ")&&e.trimRight().split("\n").length>1)&&(0!==t.indexOf(" ")&&0!==t.indexOf("\t")))))},at=function(e){var t=e.trimRight().split("\n");return 0!==(e=t.pop()).indexOf(" ")&&0!==e.indexOf("\t")&&(""!==(e=e.trimLeft())&&0!==t.length&&(""===e.replace(/-/g,"")||""===e.replace(/=/g,"")))},lt=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),"wysiwyg"===e.currentMode?X(e,t):"ir"===e.currentMode?Ct(e,t):"sv"===e.currentMode&&He(e,t)},st=function(e,t,n,r){var i,o=e.startContainer,l=Object(w.f)(o,"LI");if(l){if(!Object(u.d)(r)&&!r.altKey&&"Enter"===r.key&&!r.shiftKey&&n&&l.contains(n)&&n.nextElementSibling)return l&&!l.textContent.endsWith("\n")&&l.insertAdjacentText("beforeend","\n"),e.insertNode(document.createTextNode("\n\n")),e.collapse(!1),lt(t),r.preventDefault(),!0;if(!(Object(u.d)(r)||r.shiftKey||r.altKey||"Backspace"!==r.key||l.previousElementSibling||""!==e.toString()||0!==Object(N.c)(l,t[t.currentMode].element,e).start))return l.nextElementSibling?(l.parentElement.insertAdjacentHTML("beforebegin",'

        '+l.innerHTML+"

        "),l.remove()):l.parentElement.outerHTML='

        '+l.innerHTML+"

        ",Object(N.f)(t[t.currentMode].element,e),lt(t),r.preventDefault(),!0;if(!Object(u.d)(r)&&!r.shiftKey&&!r.altKey&&"Backspace"===r.key&&""===l.textContent.trim().replace(a.a.ZWSP,"")&&""===e.toString()&&"LI"===(null===(i=l.previousElementSibling)||void 0===i?void 0:i.tagName))return l.previousElementSibling.insertAdjacentText("beforeend","\n\n"),e.selectNodeContents(l.previousElementSibling),e.collapse(!1),l.remove(),Object(N.f)(t[t.currentMode].element,e),lt(t),r.preventDefault(),!0;if(!Object(u.d)(r)&&!r.altKey&&"Tab"===r.key){var s=!1;if((0===e.startOffset&&(3===o.nodeType&&!o.previousSibling||3!==o.nodeType&&"LI"===o.nodeName)||l.classList.contains("vditor-task")&&1===e.startOffset&&3!==o.previousSibling.nodeType&&"INPUT"===o.previousSibling.tagName)&&(s=!0),s||""!==e.toString())return r.shiftKey?rt(t,l,e,l.parentElement):nt(t,l,e),r.preventDefault(),!0}}return!1},ct=function(e,t,n){if(e.options.tab&&"Tab"===n.key)return n.shiftKey||(""===t.toString()?(t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1)):(t.extractContents(),t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1))),Object(N.h)(t),lt(e),n.preventDefault(),!0},dt=function(e,t,n,r){if(n){if(!Object(u.d)(e)&&!e.altKey&&"Enter"===e.key){var o=String.raw(i||(i=We(["",""],["",""])),n.textContent).replace(/\\\|/g,"").trim(),a=o.split("|");if(o.startsWith("|")&&o.endsWith("|")&&a.length>3){var l=a.map((function(){return"---"})).join("|");return l=n.textContent+"\n"+l.substring(3,l.length-3)+"\n|",n.outerHTML=t.lute.SpinVditorDOM(l),Object(N.f)(t[t.currentMode].element,r),lt(t),Te(t),e.preventDefault(),!0}if(ot(n.innerHTML)&&n.previousElementSibling){var s="",c=n.innerHTML.trimRight().split("\n");return c.length>1&&(c.pop(),s='

        '+c.join("\n")+"

        "),n.insertAdjacentHTML("afterend",s+'

        \n

        '),n.remove(),Object(N.f)(t[t.currentMode].element,r),lt(t),Te(t),e.preventDefault(),!0}if(at(n.innerHTML))return"wysiwyg"===t.currentMode?n.outerHTML=t.lute.SpinVditorDOM(n.innerHTML+'

        \n

        '):n.outerHTML=t.lute.SpinVditorIRDOM(n.innerHTML+'

        \n

        '),Object(N.f)(t[t.currentMode].element,r),lt(t),Te(t),e.preventDefault(),!0}if(r.collapsed&&n.previousElementSibling&&"Backspace"===e.key&&!Object(u.d)(e)&&!e.altKey&&!e.shiftKey&&n.textContent.trimRight().split("\n").length>1&&0===Object(N.c)(n,t[t.currentMode].element,r).start){var d=Object(w.a)(n.previousElementSibling);return d.textContent.endsWith("\n")||(d.textContent=d.textContent+"\n"),d.parentElement.insertAdjacentHTML("beforeend",""+n.innerHTML),n.remove(),Object(N.f)(t[t.currentMode].element,r),!1}return!1}},ut=function(e,t,n){for(var r="",i=0;i ';"TH"===n.tagName?n.parentElement.parentElement.insertAdjacentHTML("afterend",""+r+""):n.parentElement.insertAdjacentHTML("afterend",""+r+""),lt(e)},pt=function(e,t,n){for(var r="",i=0;i ':r+=' ';if("TH"===n.tagName){n.parentElement.parentElement.insertAdjacentHTML("beforebegin",""+r+""),t.insertNode(document.createElement("wbr"));var o=n.parentElement.innerHTML.replace(//g,"").replace(/<\/th>/g,"");n.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",o),n.parentElement.parentElement.remove(),Object(N.f)(e.ir.element,t)}else n.parentElement.insertAdjacentHTML("beforebegin",""+r+"");lt(e)},ft=function(e,t,n,r){void 0===r&&(r="afterend");for(var i=0,o=n.previousElementSibling;o;)i++,o=o.previousElementSibling;for(var a=0;a "):t.rows[a].cells[i].insertAdjacentHTML(r," ");lt(e)},mt=function(e,t,n){if("TD"===n.tagName){var r=n.parentElement.parentElement;n.parentElement.previousElementSibling?t.selectNodeContents(n.parentElement.previousElementSibling.lastElementChild):t.selectNodeContents(r.previousElementSibling.lastElementChild.lastElementChild),1===r.childElementCount?r.remove():n.parentElement.remove(),t.collapse(!1),Object(N.h)(t),lt(e)}},ht=function(e,t,n,r){for(var i=0,o=r.previousElementSibling;o;)i++,o=o.previousElementSibling;(r.previousElementSibling||r.nextElementSibling)&&(t.selectNodeContents(r.previousElementSibling||r.nextElementSibling),t.collapse(!0));for(var a=0;a");var o=document.createElement("br");return n.insertNode(o),n.setStartAfter(o),lt(e),Te(e),t.preventDefault(),!0}if("Tab"===t.key)return t.shiftKey?($e(i,n),t.preventDefault(),!0):((d=i.nextElementSibling)||(d=i.parentElement.nextElementSibling?i.parentElement.nextElementSibling.firstElementChild:"THEAD"===i.parentElement.parentElement.tagName&&i.parentElement.parentElement.nextElementSibling?i.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:null),d&&(n.selectNodeContents(d),Object(N.h)(n)),t.preventDefault(),!0);var a=i.parentElement.parentElement.parentElement;if("ArrowUp"===t.key){if(t.preventDefault(),"TH"===i.tagName)return a.previousElementSibling?(n.selectNodeContents(a.previousElementSibling),n.collapse(!1),Object(N.h)(n)):Ge(e,"beforebegin"),!0;for(var l=0,s=i.parentElement;l\n

        ',Object(N.f)(e[e.currentMode].element,n)):(n.setStartBefore(a),n.collapse(!0)),lt(e)),t.preventDefault(),!0;if(B("⇧⌘F",t))return pt(e,n,i),t.preventDefault(),!0;if(B("⌘=",t))return ut(e,n,i),t.preventDefault(),!0;if(B("⇧⌘G",t))return ft(e,a,i,"beforebegin"),t.preventDefault(),!0;if(B("⇧⌘=",t))return ft(e,a,i),t.preventDefault(),!0;if(B("⌘-",t))return mt(e,n,i),t.preventDefault(),!0;if(B("⇧⌘-",t))return ht(e,n,a,i),t.preventDefault(),!0;if(B("⇧⌘L",t)){if("ir"===e.currentMode)return it(a,"left"),lt(e),t.preventDefault(),!0;if(f=e.wysiwyg.popover.querySelector('[data-type="left"]'))return f.click(),t.preventDefault(),!0}if(B("⇧⌘C",t)){if("ir"===e.currentMode)return it(a,"center"),lt(e),t.preventDefault(),!0;if(f=e.wysiwyg.popover.querySelector('[data-type="center"]'))return f.click(),t.preventDefault(),!0}if(B("⇧⌘R",t)){if("ir"===e.currentMode)return it(a,"right"),lt(e),t.preventDefault(),!0;var f;if(f=e.wysiwyg.popover.querySelector('[data-type="right"]'))return f.click(),t.preventDefault(),!0}}return!1},gt=function(e,t,n,r){if("PRE"===n.tagName&&B("⌘A",t))return r.selectNodeContents(n.firstElementChild),t.preventDefault(),!0;if(e.options.tab&&"Tab"===t.key&&!t.shiftKey&&""===r.toString())return r.insertNode(document.createTextNode(e.options.tab)),r.collapse(!1),lt(e),t.preventDefault(),!0;if("Backspace"===t.key&&!Object(u.d)(t)&&!t.shiftKey&&!t.altKey){var i=Object(N.c)(n,e[e.currentMode].element,r);if((0===i.start||1===i.start&&"\n"===n.innerText)&&""===r.toString())return n.parentElement.outerHTML='

        '+n.firstElementChild.innerHTML+"

        ",Object(N.f)(e[e.currentMode].element,r),lt(e),t.preventDefault(),!0}return!Object(u.d)(t)&&!t.altKey&&"Enter"===t.key&&(n.firstElementChild.textContent.endsWith("\n")||n.firstElementChild.insertAdjacentText("beforeend","\n"),r.extractContents(),r.insertNode(document.createTextNode("\n")),r.collapse(!1),Object(N.h)(r),Object(u.e)()||("wysiwyg"===e.currentMode?Ve(e,r):P(e,r)),Te(e),t.preventDefault(),!0)},bt=function(e,t,n,r){var i=t.startContainer,o=Object(w.f)(i,"BLOCKQUOTE");if(o&&""===t.toString()){if("Backspace"===n.key&&!Object(u.d)(n)&&!n.shiftKey&&!n.altKey&&0===Object(N.c)(o,e[e.currentMode].element,t).start)return t.insertNode(document.createElement("wbr")),o.outerHTML=o.innerHTML,Object(N.f)(e[e.currentMode].element,t),lt(e),n.preventDefault(),!0;if(r&&"Enter"===n.key&&!Object(u.d)(n)&&!n.shiftKey&&!n.altKey&&"BLOCKQUOTE"===r.parentElement.tagName){var l=!1;if("\n"===r.innerHTML.replace(a.a.ZWSP,"")||""===r.innerHTML.replace(a.a.ZWSP,"")?(l=!0,r.remove()):r.innerHTML.endsWith("\n\n")&&Object(N.c)(r,e[e.currentMode].element,t).start===r.textContent.length-1&&(r.innerHTML=r.innerHTML.substr(0,r.innerHTML.length-2),l=!0),l)return o.insertAdjacentHTML("afterend",'

        '+a.a.ZWSP+"\n

        "),Object(N.f)(e[e.currentMode].element,t),lt(e),n.preventDefault(),!0}var s=Object(w.c)(i);if("wysiwyg"===e.currentMode&&s&&B("⇧⌘;",n))return t.insertNode(document.createElement("wbr")),s.outerHTML='
        '+s.outerHTML+"
        ",Object(N.f)(e.wysiwyg.element,t),X(e),n.preventDefault(),!0;if(Qe(e,n,t,o,o))return!0;if(et(e,n,t,o,o))return!0}return!1},yt=function(e,t,n){var r=t.startContainer,i=Object(w.e)(r,"vditor-task");if(i){if(B("⇧⌘J",n)){var o=i.firstElementChild;return o.checked?o.removeAttribute("checked"):o.setAttribute("checked","checked"),lt(e),n.preventDefault(),!0}if("Backspace"===n.key&&!Object(u.d)(n)&&!n.shiftKey&&!n.altKey&&""===t.toString()&&1===t.startOffset&&(3===r.nodeType&&r.previousSibling&&"INPUT"===r.previousSibling.tagName||3!==r.nodeType)){var a=i.previousElementSibling;if(i.querySelector("input").remove(),a)Object(w.a)(a).parentElement.insertAdjacentHTML("beforeend",""+i.innerHTML.trim()),i.remove();else i.parentElement.insertAdjacentHTML("beforebegin",'

        '+(i.innerHTML.trim()||"\n")+"

        "),i.nextElementSibling?i.remove():i.parentElement.remove();return Object(N.f)(e[e.currentMode].element,t),lt(e),n.preventDefault(),!0}if("Enter"===n.key&&!Object(u.d)(n)&&!n.shiftKey&&!n.altKey){if(""===i.textContent.trim())if(Object(w.e)(i.parentElement,"vditor-task")){var l=Object(w.b)(r);l&&rt(e,i,t,l)}else if(i.nextElementSibling){var s="",c="",d=!1;Array.from(i.parentElement.children).forEach((function(e){i.isSameNode(e)?d=!0:d?s+=e.outerHTML:c+=e.outerHTML}));var p=i.parentElement.tagName,f="OL"===i.parentElement.tagName?"":' data-marker="'+i.parentElement.getAttribute("data-marker")+'"',m="";c&&(m="UL"===i.parentElement.tagName?"":' start="1"',c="<"+p+' data-tight="true"'+f+' data-block="0">'+c+""),i.parentElement.outerHTML=c+'

        \n

        <'+p+'\n data-tight="true"'+f+' data-block="0"'+m+">"+s+""}else i.parentElement.insertAdjacentHTML("afterend",'

        \n

        '),1===i.parentElement.querySelectorAll("li").length?i.parentElement.remove():i.remove();else 3!==r.nodeType&&0===t.startOffset&&"INPUT"===r.firstChild.tagName?t.setStart(r.childNodes[1],1):(t.setEndAfter(i.lastChild),i.insertAdjacentHTML("afterend",'
      • '),document.querySelector("wbr").after(t.extractContents()));return Object(N.f)(e[e.currentMode].element,t),lt(e),Te(e),n.preventDefault(),!0}}return!1},wt=function(e,t,n,r){if(3!==t.startContainer.nodeType){var i=t.startContainer.children[t.startOffset];if(i&&"HR"===i.tagName)return t.selectNodeContents(i.previousElementSibling),t.collapse(!1),n.preventDefault(),!0}if(r){var o=r.previousElementSibling;if(o&&0===Object(N.c)(r,e[e.currentMode].element,t).start&&(Object(u.e)()&&"HR"===o.tagName||"TABLE"===o.tagName)){if("TABLE"===o.tagName){var a=o.lastElementChild.lastElementChild.lastElementChild;a.innerHTML=a.innerHTML.trimLeft()+""+r.textContent.trim(),r.remove()}else o.remove();return Object(N.f)(e[e.currentMode].element,t),lt(e),n.preventDefault(),!0}}return!1},Et=function(e){Object(u.e)()&&3!==e.startContainer.nodeType&&"HR"===e.startContainer.tagName&&e.setStartBefore(e.startContainer)},kt=function(e,t,n){var r,i;if(!Object(u.e)())return!1;if("ArrowUp"===e.key&&t&&"TABLE"===(null===(r=t.previousElementSibling)||void 0===r?void 0:r.tagName)){var o=t.previousElementSibling;return n.selectNodeContents(o.rows[o.rows.length-1].lastElementChild),n.collapse(!1),e.preventDefault(),!0}return!("ArrowDown"!==e.key||!t||"TABLE"!==(null===(i=t.nextElementSibling)||void 0===i?void 0:i.tagName))&&(n.selectNodeContents(t.nextElementSibling.rows[0].cells[0]),n.collapse(!0),e.preventDefault(),!0)},St=function(e,t,n){return Ke(void 0,void 0,void 0,(function(){var r,i,o,l,s,c,d,u,p,f,m,h,v,g;return Fe(this,(function(b){switch(b.label){case 0:return t.stopPropagation(),t.preventDefault(),"clipboardData"in t?(r=t.clipboardData.getData("text/html"),i=t.clipboardData.getData("text/plain"),o=t.clipboardData.files):(r=t.dataTransfer.getData("text/html"),i=t.dataTransfer.getData("text/plain"),"Files"===t.dataTransfer.types[0]&&(o=t.dataTransfer.items)),l={},s=function(t,n){if(!n)return["",Lute.WalkContinue];var r=t.TokensStr();if(34===t.__internal_object__.Parent.Type&&r&&-1===r.indexOf("file://")&&e.options.upload.linkToImgUrl){var i=new XMLHttpRequest;i.open("POST",e.options.upload.linkToImgUrl),e.options.upload.token&&i.setRequestHeader("X-Upload-Token",e.options.upload.token),e.options.upload.withCredentials&&(i.withCredentials=!0),Ie(e,i),i.setRequestHeader("Content-Type","application/json; charset=utf-8"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){if(200===i.status){var t=i.responseText;e.options.upload.linkToImgFormat&&(t=e.options.upload.linkToImgFormat(i.responseText));var n=JSON.parse(t);if(0!==n.code)return void e.tip.show(n.msg);var r=n.data.originalURL;if("sv"===e.currentMode)e.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach((function(e){e.textContent===r&&(e.textContent=n.data.url)}));else{var o=e[e.currentMode].element.querySelector('img[src="'+r+'"]');o.src=n.data.url,"ir"===e.currentMode&&(o.previousElementSibling.previousElementSibling.innerHTML=n.data.url)}lt(e)}else e.tip.show(i.responseText);e.options.upload.linkToImgCallback&&e.options.upload.linkToImgCallback(i.responseText)}},i.send(JSON.stringify({url:r}))}return"ir"===e.currentMode?[''+r+"",Lute.WalkContinue]:"wysiwyg"===e.currentMode?["",Lute.WalkContinue]:[''+r+"",Lute.WalkContinue]},r.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!==''+i+""&&r.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!=='\x3c!--StartFragment--\x3e'+i+"\x3c!--EndFragment--\x3e"||(r=""),(c=(new DOMParser).parseFromString(r,"text/html")).body&&(r=c.body.innerHTML),e.wysiwyg.getComments(e),d=e[e.currentMode].element.scrollHeight,u=function(e,t,n){void 0===n&&(n="sv");var r=document.createElement("div");r.innerHTML=e;var i=!1;1===r.childElementCount&&r.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&(i=!0);var o=r.querySelectorAll("pre");if(1===r.childElementCount&&1===o.length&&"vditor-wysiwyg"!==o[0].className&&"vditor-sv"!==o[0].className&&(i=!0),0===e.indexOf('\n

        ')&&(i=!0),1===r.childElementCount&&"TABLE"===r.firstElementChild.tagName&&r.querySelector(".line-number")&&r.querySelector(".line-content")&&(i=!0),i){var a=t||e;return/\n/.test(a)||1===o.length?"wysiwyg"===n?'

        '+a.replace(/&/g,"&").replace(/
        ":"\n```\n"+a.replace(/&/g,"&").replace(/"+a.replace(/&/g,"&").replace(/":"`"+a+"`"}return!1}(r,i,e.currentMode),(p="sv"===e.currentMode?Object(w.d)(t.target,"data-type","code-block"):Object(w.f)(t.target,"CODE"))?("sv"===e.currentMode?document.execCommand("insertHTML",!1,i.replace(/&/g,"&").replace(/0&&e.options.upload.url?[4,Ue(e,o)]:[3,5];case 4:return b.sent(),[3,6];case 5:""!==i.trim()&&0===o.length&&("ir"===e.currentMode?(l.Md2VditorIRDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),Object(N.d)(e.lute.Md2VditorIRDOM(i),e)):"wysiwyg"===e.currentMode?(l.Md2VditorDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),Object(N.d)(e.lute.Md2VditorDOM(i),e)):(l.Md2VditorSVDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),je(e,i)),e.outline.render(e)),b.label=6;case 6:return"sv"!==e.currentMode&&((h=Object(w.c)(Object(N.b)(e).startContainer))&&(v=Object(N.b)(e),e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),v.insertNode(document.createElement("wbr")),"wysiwyg"===e.currentMode?h.outerHTML=e.lute.SpinVditorDOM(h.outerHTML):h.outerHTML=e.lute.SpinVditorIRDOM(h.outerHTML),Object(N.f)(e[e.currentMode].element,v)),e[e.currentMode].element.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e)}))),e.wysiwyg.triggerRemoveComment(e),lt(e),e[e.currentMode].element.scrollHeight-d>Math.min(e[e.currentMode].element.clientHeight,window.innerHeight)/2&&Te(e),[2]}}))}))},Ot=function(e){e.hint.render(e);var t=Object(N.b)(e).startContainer,n=Object(w.d)(t,"data-type","code-block-info");if(n)if(""===n.textContent.replace(a.a.ZWSP,"")&&e.hint.recentLanguage){n.textContent=a.a.ZWSP+e.hint.recentLanguage,Object(N.b)(e).selectNodeContents(n)}else{var r=[],i=n.textContent.substring(0,Object(N.c)(n,e.ir.element).start).replace(a.a.ZWSP,"");a.a.CODE_LANGUAGES.forEach((function(e){e.indexOf(i.toLowerCase())>-1&&r.push({html:e,value:e})})),e.hint.genHTML(r,i,e)}},Ct=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&Ot(e),clearTimeout(e.ir.processTimeoutId),e.ir.processTimeoutId=window.setTimeout((function(){if(!e.ir.composingLock){var n=s(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&Object(u.a)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}}),e.options.undoDelay)},Tt=function(e,t){var n=Object(N.b)(e),r=Object(w.c)(n.startContainer)||n.startContainer;if(r){var i=r.querySelector(".vditor-ir__marker--heading");i?i.innerHTML=t:(r.insertAdjacentText("afterbegin",t),n.selectNodeContents(r),n.collapse(!1)),P(e,n.cloneRange()),G(e)}},Lt=function(e,t,n){var r=Object(w.d)(e.startContainer,"data-type",n);if(r){r.firstElementChild.remove(),r.lastElementChild.remove(),e.insertNode(document.createElement("wbr"));var i=document.createElement("div");i.innerHTML=t.lute.SpinVditorIRDOM(r.outerHTML),r.outerHTML=i.firstElementChild.innerHTML.trim()}},Mt=function(e,t,n,r){var i=Object(N.b)(e),o=t.getAttribute("data-type"),a=i.startContainer;3===a.nodeType&&(a=a.parentElement);var l=!0;if(t.classList.contains("vditor-menu--current"))if("quote"===o){var s=Object(w.f)(a,"BLOCKQUOTE");s&&(i.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'

        '+s.innerHTML+"

        ":s.innerHTML)}else if("link"===o){var c=Object(w.d)(i.startContainer,"data-type","a");if(c){var d=Object(w.e)(i.startContainer,"vditor-ir__link");d?(i.insertNode(document.createElement("wbr")),c.outerHTML=d.innerHTML):c.outerHTML=c.querySelector(".vditor-ir__link").innerHTML+""}}else"italic"===o?Lt(i,e,"em"):"bold"===o?Lt(i,e,"strong"):"strike"===o?Lt(i,e,"s"):"inline-code"===o?Lt(i,e,"code"):"check"!==o&&"list"!==o&&"ordered-list"!==o||(tt(e,i,o),l=!1,t.classList.remove("vditor-menu--current"));else{0===e.ir.element.childNodes.length&&(e.ir.element.innerHTML='

        ',Object(N.f)(e.ir.element,i));var u=Object(w.c)(i.startContainer);if("line"===o){if(u){var f='

        \n

        ';""===u.innerHTML.trim()?u.outerHTML=f:u.insertAdjacentHTML("afterend",f)}}else if("quote"===o)u&&(i.insertNode(document.createElement("wbr")),u.outerHTML='
        '+u.outerHTML+"
        ",l=!1,t.classList.add("vditor-menu--current"));else if("link"===o){var m=void 0;m=""===i.toString()?n+""+r:""+n+i.toString()+r.replace(")",")"),document.execCommand("insertHTML",!1,m),l=!1,t.classList.add("vditor-menu--current")}else if("italic"===o||"bold"===o||"strike"===o||"inline-code"===o||"code"===o||"table"===o){m=void 0;""===i.toString()?m=n+""+r:(m="code"===o||"table"===o?""+n+i.toString()+""+r:""+n+i.toString()+r+"",i.deleteContents()),"table"!==o&&"code"!==o||(m="\n"+m+"\n\n");var h=document.createElement("span");h.innerHTML=m,i.insertNode(h),P(e,i),"table"===o&&(i.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),Object(N.h)(i))}else"check"!==o&&"list"!==o&&"ordered-list"!==o||(tt(e,i,o,!1),l=!1,p(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current"))}Object(N.f)(e.ir.element,i),Ct(e),l&&G(e)},jt=function(){function e(e){var t=this;this.splitChar="",this.lastIndex=-1,this.fillEmoji=function(e,n){t.element.style.display="none";var r=decodeURIComponent(e.getAttribute("data-value")),i=window.getSelection().getRangeAt(0);if("ir"===n.currentMode){var o=Object(w.d)(i.startContainer,"data-type","code-block-info");if(o)return o.textContent=a.a.ZWSP+r.trimRight(),i.selectNodeContents(o),i.collapse(!1),Ct(n),o.parentElement.querySelectorAll("code").forEach((function(e){e.className="language-"+r.trimRight()})),H(o.parentElement.querySelector(".vditor-ir__preview"),n),void(t.recentLanguage=r.trimRight())}if("wysiwyg"===n.currentMode&&3!==i.startContainer.nodeType&&i.startContainer.firstElementChild.classList.contains("vditor-input")){var l=i.startContainer.firstElementChild;return l.value=r.trimRight(),i.selectNodeContents(l),i.collapse(!1),l.dispatchEvent(new CustomEvent("input")),void(t.recentLanguage=r.trimRight())}if(i.setStart(i.startContainer,t.lastIndex),i.deleteContents(),":"===t.splitChar&&r.indexOf(":")>-1&&"sv"!==n.currentMode?(Object(N.d)(n.lute.SpinVditorDOM(r),n),i.insertNode(document.createTextNode(" "))):Object(N.d)(n.lute.SpinVditorDOM(r),n),i.collapse(!1),Object(N.h)(i),"wysiwyg"===n.currentMode)(s=Object(w.e)(i.startContainer,"vditor-wysiwyg__block"))&&s.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(s.lastElementChild.innerHTML=s.firstElementChild.innerHTML,H(s.lastElementChild,n));else if("ir"===n.currentMode){var s;(s=Object(w.e)(i.startContainer,"vditor-ir__marker--pre"))&&s.nextElementSibling.classList.contains("vditor-ir__preview")&&(s.nextElementSibling.innerHTML=s.innerHTML,H(s.nextElementSibling,n))}lt(n)},this.timeId=-1,this.element=document.createElement("div"),this.element.className="vditor-hint",this.recentLanguage="",e.push({key:":"})}return e.prototype.render=function(e){var t=this;if(window.getSelection().focusNode){var n,r=getSelection().getRangeAt(0);n=r.startContainer.textContent.substring(0,r.startOffset)||"";var i=this.getKey(n,e.options.hint.extend);if(void 0===i)this.element.style.display="none",clearTimeout(this.timeId);else if(":"===this.splitChar){var o=""===i?e.options.hint.emoji:e.lute.GetEmojis(),a=[];Object.keys(o).forEach((function(e){0===e.indexOf(i.toLowerCase())&&(o[e].indexOf(".")>-1?a.push({html:' :'+e+":",value:":"+e+":"}):a.push({html:''+o[e]+""+e,value:o[e]}))})),this.genHTML(a,i,e)}else e.options.hint.extend.forEach((function(n){n.key===t.splitChar&&(clearTimeout(t.timeId),t.timeId=window.setTimeout((function(){t.genHTML(n.hint(i),i,e)}),e.options.hint.delay))}))}},e.prototype.genHTML=function(e,t,n){var r=this;if(0!==e.length){var i=n[n.currentMode].element,o=Object(N.a)(i),a=o.left+("left"===n.options.outline.position?n.outline.element.offsetWidth:0),l=o.top,s="";e.forEach((function(e,n){if(!(n>7)){var r=e.html;if(""!==t){var i=r.lastIndexOf(">")+1,o=r.substr(i),a=o.toLowerCase().indexOf(t.toLowerCase());a>-1&&(o=o.substring(0,a)+""+o.substring(a,a+t.length)+""+o.substring(a+t.length),r=r.substr(0,i)+o)}s+='"}})),this.element.innerHTML=s;var c=parseInt(document.defaultView.getComputedStyle(i,null).getPropertyValue("line-height"),10);this.element.style.top=l+(c||22)+"px",this.element.style.left=a+"px",this.element.style.display="block",this.element.style.right="auto",this.element.querySelectorAll("button").forEach((function(e){e.addEventListener("click",(function(t){r.fillEmoji(e,n),t.preventDefault()}))})),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top=l-this.element.offsetHeight+"px"),this.element.getBoundingClientRect().right>window.innerWidth&&(this.element.style.left="auto",this.element.style.right="0")}else this.element.style.display="none"},e.prototype.select=function(e,t){if(0===this.element.querySelectorAll("button").length||"none"===this.element.style.display)return!1;var n=this.element.querySelector(".vditor-hint--current");if("ArrowDown"===e.key)return e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.nextElementSibling?n.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if("ArrowUp"===e.key){if(e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.previousElementSibling)n.previousElementSibling.className="vditor-hint--current";else{var r=this.element.children.length;this.element.children[r-1].className="vditor-hint--current"}return!0}return!(Object(u.d)(e)||e.shiftKey||e.altKey||"Enter"!==e.key||e.isComposing)&&(e.preventDefault(),e.stopPropagation(),this.fillEmoji(n,t),!0)},e.prototype.getKey=function(e,t){var n,r=this;if(this.lastIndex=-1,this.splitChar="",t.forEach((function(t){var n=e.lastIndexOf(t.key);r.lastIndex1&&o.trim()===o)if(2===i.length&&""===i[0]&&i[1].length<32)n=i[1];else{var a=i[i.length-2].slice(-1);" "===Object(l.a)(a)&&o.length<32&&(n=o)}return n},e}(),xt=function(){function e(e){this.composingLock=!1;var t=document.createElement("div");t.className="vditor-ir",t.innerHTML='
        ',this.element=t.firstElementChild,this.bindEvent(e),we(e,this.element),Ee(e,this.element),ke(e,this.element),Le(e,this.element),Me(e,this.element),Se(e,this.element),Oe(e,this.element,this.copy),Ce(e,this.element,this.copy)}return e.prototype.copy=function(e,t){var n=getSelection().getRangeAt(0);if(""!==n.toString()){e.stopPropagation(),e.preventDefault();var r=document.createElement("div");r.appendChild(n.cloneContents()),e.clipboardData.setData("text/plain",t.lute.VditorIRDOM2Md(r.innerHTML).trim()),e.clipboardData.setData("text/html","")}},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",(function(t){St(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})})),this.element.addEventListener("compositionstart",(function(e){t.composingLock=!0})),this.element.addEventListener("compositionend",(function(n){Object(u.e)()||P(e,getSelection().getRangeAt(0).cloneRange()),t.composingLock=!1})),this.element.addEventListener("input",(function(n){"deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&(t.preventInput?t.preventInput=!1:t.composingLock||"‘"===n.data||"“"===n.data||"《"===n.data||P(e,getSelection().getRangeAt(0).cloneRange(),!1,n))})),this.element.addEventListener("click",(function(n){if("INPUT"===n.target.tagName)return n.target.checked?n.target.setAttribute("checked","checked"):n.target.removeAttribute("checked"),t.preventInput=!0,void Ct(e);var r=Object(N.b)(e),i=Object(w.e)(n.target,"vditor-ir__preview");if(i||(i=Object(w.e)(r.startContainer,"vditor-ir__preview")),i&&(i.previousElementSibling.firstElementChild?r.selectNodeContents(i.previousElementSibling.firstElementChild):r.selectNodeContents(i.previousElementSibling),r.collapse(!0),Object(N.h)(r),Te(e)),"IMG"===n.target.tagName){var o=n.target.parentElement.querySelector(".vditor-ir__marker--link");o&&(r.selectNode(o),Object(N.h)(r))}if(n.target.isEqualNode(t.element)&&t.element.lastElementChild&&r.collapsed){var l=t.element.lastElementChild.getBoundingClientRect();n.y>l.top+l.height&&("P"===t.element.lastElementChild.tagName&&""===t.element.lastElementChild.textContent.trim().replace(a.a.ZWSP,"")?(r.selectNodeContents(t.element.lastElementChild),r.collapse(!1)):(t.element.insertAdjacentHTML("beforeend",'

        '+a.a.ZWSP+"

        "),Object(N.f)(t.element,r)))}""===r.toString()?q(r,e):setTimeout((function(){q(Object(N.b)(e),e)})),R(n,e),G(e)})),this.element.addEventListener("keyup",(function(n){if(!n.isComposing&&!Object(u.d)(n))if("Enter"===n.key&&Te(e),G(e),"Backspace"!==n.key&&"Delete"!==n.key||""===e.ir.element.innerHTML||1!==e.ir.element.childNodes.length||!e.ir.element.firstElementChild||"P"!==e.ir.element.firstElementChild.tagName||0!==e.ir.element.firstElementChild.childElementCount||""!==e.ir.element.textContent&&"\n"!==e.ir.element.textContent){var r=Object(N.b)(e);"Backspace"===n.key?(Object(u.e)()&&"\n"===r.startContainer.textContent&&1===r.startOffset&&(r.startContainer.textContent="",q(r,e)),t.element.querySelectorAll(".language-math").forEach((function(e){var t=e.querySelector("br");t&&t.remove()}))):n.key.indexOf("Arrow")>-1?("ArrowLeft"!==n.key&&"ArrowRight"!==n.key||Ot(e),q(r,e)):229===n.keyCode&&""===n.code&&"Unidentified"===n.key&&q(r,e);var i=Object(w.e)(r.startContainer,"vditor-ir__preview");if(i){if("ArrowUp"===n.key||"ArrowLeft"===n.key)return i.previousElementSibling.firstElementChild?r.selectNodeContents(i.previousElementSibling.firstElementChild):r.selectNodeContents(i.previousElementSibling),r.collapse(!1),n.preventDefault(),!0;if("SPAN"===i.tagName&&("ArrowDown"===n.key||"ArrowRight"===n.key))return"html-entity"===i.parentElement.getAttribute("data-type")?(i.parentElement.insertAdjacentText("afterend",a.a.ZWSP),r.setStart(i.parentElement.nextSibling,1)):r.selectNodeContents(i.parentElement.lastElementChild),r.collapse(!1),n.preventDefault(),!0}}else e.ir.element.innerHTML=""}))},e}(),_t=function(e){return"sv"===e.currentMode?e.lute.Md2HTML(s(e)):"wysiwyg"===e.currentMode?e.lute.VditorDOM2HTML(e.wysiwyg.element.innerHTML):"ir"===e.currentMode?e.lute.VditorIRDOM2HTML(e.ir.element.innerHTML):void 0},At=n(25),Ht=n(23),Nt=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-outline",this.element.innerHTML='
        '+e+'
        \n
        '}return e.prototype.render=function(e){return"block"===e.preview.element.style.display?Object(Ht.a)(e.preview.element.lastElementChild,this.element.lastElementChild,e):Object(Ht.a)(e[e.currentMode].element,this.element.lastElementChild,e)},e.prototype.toggle=function(e,t){var n;void 0===t&&(t=!0);var r=null===(n=e.toolbar.elements.outline)||void 0===n?void 0:n.firstElementChild;if(t&&window.innerWidth>=a.a.MOBILE_WIDTH?(this.element.style.display="block",this.render(e),null==r||r.classList.add("vditor-menu--current")):(this.element.style.display="none",null==r||r.classList.remove("vditor-menu--current")),getSelection().rangeCount>0){var i=getSelection().getRangeAt(0);e[e.currentMode].element.contains(i.startContainer)?Object(N.h)(i):e[e.currentMode].element.focus()}z(e)},e}(),Dt=n(20),Rt=function(){function e(e){var t=this;this.element=document.createElement("div"),this.element.className="vditor-preview";var n=document.createElement("div");n.className="vditor-reset",e.options.classes.preview&&n.classList.add(e.options.classes.preview),n.style.maxWidth=e.options.preview.maxWidth+"px",n.addEventListener("copy",(function(n){if("TEXTAREA"!==n.target.tagName){var r=document.createElement("div");r.className="vditor-reset",r.appendChild(getSelection().getRangeAt(0).cloneContents()),t.copyToX(e,r),n.preventDefault()}})),n.addEventListener("click",(function(r){var i=Object(w.f)(r.target,"SPAN");if(i&&Object(w.e)(i,"vditor-toc")){var o=n.querySelector("#"+i.getAttribute("data-target-id"));o&&(t.element.scrollTop=o.offsetTop)}else"IMG"===r.target.tagName&&Object(U.a)(r.target,e.options.lang,e.options.theme)}));var r=e.options.preview.actions,i=document.createElement("div");i.className="vditor-preview__action";for(var o=[],a=0;aDesktop');break;case"tablet":o.push('');break;case"mobile":o.push('');break;case"mp-wechat":o.push('');break;case"zhihu":o.push('')}else o.push('")}i.innerHTML=o.join(""),0===r.length&&(i.style.display="none"),this.element.appendChild(i),this.element.appendChild(n),i.addEventListener(Object(u.b)(),(function(o){var a=Object(E.b)(o.target,"BUTTON");if(a){var l=a.getAttribute("data-type"),s=r.find((function(e){return(null==e?void 0:e.key)===l}));s?s.click(l):"mp-wechat"!==l&&"zhihu"!==l?(n.style.width="desktop"===l?"auto":"tablet"===l?"780px":"360px",n.scrollWidth>n.parentElement.clientWidth&&(n.style.width="auto"),t.render(e),i.querySelectorAll("button").forEach((function(e){e.classList.remove("vditor-preview__action--current")})),a.classList.add("vditor-preview__action--current")):t.copyToX(e,t.element.lastElementChild.cloneNode(!0),l)}}))}return e.prototype.render=function(e,t){var n=this;if(clearTimeout(this.mdTimeoutId),"none"!==this.element.style.display)if(t)this.element.lastElementChild.innerHTML=t;else if(""!==s(e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")){var r=(new Date).getTime(),i=s(e);this.mdTimeoutId=window.setTimeout((function(){if(e.options.preview.url){var t=new XMLHttpRequest;t.open("POST",e.options.preview.url),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.onreadystatechange=function(){if(t.readyState===XMLHttpRequest.DONE)if(200===t.status){var o=JSON.parse(t.responseText);if(0!==o.code)return void e.tip.show(o.msg);e.options.preview.transform&&(o.data=e.options.preview.transform(o.data)),n.element.lastElementChild.innerHTML=o.data,n.afterRender(e,r)}else{var a=e.lute.Md2HTML(i);e.options.preview.transform&&(a=e.options.preview.transform(a)),n.element.lastElementChild.innerHTML=a,n.afterRender(e,r)}},t.send(JSON.stringify({markdownText:i}))}else{var o=e.lute.Md2HTML(i);e.options.preview.transform&&(o=e.options.preview.transform(o)),n.element.lastElementChild.innerHTML=o,n.afterRender(e,r)}}),e.options.preview.delay)}else this.element.lastElementChild.innerHTML="";else"renderPerformance"===this.element.getAttribute("data-type")&&e.tip.hide()},e.prototype.afterRender=function(e,t){e.options.preview.parse&&e.options.preview.parse(this.element);var n=(new Date).getTime()-t;(new Date).getTime()-t>2600?(e.tip.show(W.a[e.options.lang].performanceTip.replace("${x}",n.toString())),e.preview.element.setAttribute("data-type","renderPerformance")):"renderPerformance"===e.preview.element.getAttribute("data-type")&&(e.tip.hide(),e.preview.element.removeAttribute("data-type"));var r=e.preview.element.querySelector(".vditor-comment--focus");r&&r.classList.remove("vditor-comment--focus"),Object(C.a)(e.preview.element.lastElementChild,e.options.lang),Object(M.a)(e.options.preview.hljs,e.preview.element.lastElementChild,e.options.cdn),Object(x.a)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),Object(T.a)(e.preview.element.lastElementChild,e.options.cdn),Object(L.a)(e.preview.element.lastElementChild,e.options.cdn),Object(O.a)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),Object(_.a)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),Object(A.a)(e.preview.element.lastElementChild,e.options.cdn),Object(S.a)(e.preview.element.lastElementChild,e.options.cdn),Object(Dt.a)(e.preview.element.lastElementChild);var i=e.preview.element,o=e.outline.render(e);""===o&&(o="[ToC]"),i.querySelectorAll('[data-type="toc-block"]').forEach((function(t){t.innerHTML=o,Object(j.a)(t,{cdn:e.options.cdn,math:e.options.preview.math})})),Object(j.a)(e.preview.element.lastElementChild,{cdn:e.options.cdn,math:e.options.preview.math})},e.prototype.copyToX=function(e,t,n){void 0===n&&(n="mp-wechat"),"zhihu"!==n?t.querySelectorAll(".katex-html .base").forEach((function(e){e.style.display="initial"})):t.querySelectorAll(".language-math").forEach((function(e){e.outerHTML=''+e.getAttribute('})),t.style.backgroundColor="#fff",t.querySelectorAll("code").forEach((function(e){e.style.backgroundImage="none"})),this.element.append(t);var r=t.ownerDocument.createRange();r.selectNode(t),Object(N.h)(r),document.execCommand("copy"),this.element.lastElementChild.remove(),e.tip.show("已复制,可到"+("zhihu"===n?"知乎":"微信公众号平台")+"进行粘贴")},e}(),It=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-resize vditor-resize--"+e.options.resize.position,this.element.innerHTML='
        ',this.bindEvent(e)}return e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("mousedown",(function(n){var r=document,i=n.clientY,o=e.element.offsetHeight,a=63+e.element.querySelector(".vditor-toolbar").clientHeight;r.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),t.element.classList.add("vditor-resize--selected"),r.onmousemove=function(t){"top"===e.options.resize.position?e.element.style.height=Math.max(a,o+(i-t.clientY))+"px":e.element.style.height=Math.max(a,o+(t.clientY-i))+"px",e.options.typewriterMode&&(e.sv.element.style.paddingBottom=e.sv.element.parentElement.offsetHeight/2+"px")},r.onmouseup=function(){e.options.resize.after&&e.options.resize.after(e.element.offsetHeight-o),window.captureEvents&&window.captureEvents(),r.onmousemove=null,r.onmouseup=null,r.ondragstart=null,r.onselectstart=null,r.onselect=null,t.element.classList.remove("vditor-resize--selected")}}))},e}(),Pt=function(){function e(e){this.composingLock=!1,this.element=document.createElement("pre"),this.element.className="vditor-sv vditor-reset",this.element.setAttribute("placeholder",e.options.placeholder),this.element.setAttribute("contenteditable","true"),this.element.setAttribute("spellcheck","false"),this.bindEvent(e),we(e,this.element),ke(e,this.element),Le(e,this.element),Me(e,this.element),Se(e,this.element),Oe(e,this.element,this.copy),Ce(e,this.element,this.copy)}return e.prototype.copy=function(e,t){e.stopPropagation(),e.preventDefault(),e.clipboardData.setData("text/plain",ye(t[t.currentMode].element))},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",(function(t){St(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})})),this.element.addEventListener("scroll",(function(){if("block"===e.preview.element.style.display){var n=t.element.scrollTop,r=t.element.clientHeight,i=t.element.scrollHeight-parseFloat(t.element.style.paddingBottom||"0"),o=e.preview.element;o.scrollTop=n/r>.5?(n+r)*o.scrollHeight/i-r:n*o.scrollHeight/i}})),this.element.addEventListener("compositionstart",(function(e){t.composingLock=!0})),this.element.addEventListener("compositionend",(function(n){Object(u.e)()||V(e,n),t.composingLock=!1})),this.element.addEventListener("input",(function(n){"deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&(t.composingLock||"‘"===n.data||"“"===n.data||"《"===n.data||(t.preventInput?t.preventInput=!1:V(e,n)))})),this.element.addEventListener("keyup",(function(t){t.isComposing||Object(u.d)(t)||("Backspace"!==t.key&&"Delete"!==t.key||""===e.sv.element.innerHTML||1!==e.sv.element.childNodes.length||!e.sv.element.firstElementChild||"DIV"!==e.sv.element.firstElementChild.tagName||2!==e.sv.element.firstElementChild.childElementCount||""!==e.sv.element.firstElementChild.textContent&&"\n"!==e.sv.element.textContent?"Enter"===t.key&&Te(e):e.sv.element.innerHTML="")}))},e}(),Bt=function(){function e(){this.element=document.createElement("div"),this.element.className="vditor-tip"}return e.prototype.show=function(e,t){var n=this;if(void 0===t&&(t=6e3),this.element.className="vditor-tip vditor-tip--show",0===t)return this.element.innerHTML='
        '+e+'\n
        X
        ',void this.element.querySelector(".vditor-tip__close").addEventListener("click",(function(){n.hide()}));this.element.innerHTML='
        '+e+"
        ",setTimeout((function(){n.hide()}),t)},e.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},e}(),qt=function(e,t){if(t.options.preview.mode!==e){switch(t.options.preview.mode=e,e){case"both":t.sv.element.style.display="block",t.preview.element.style.display="block",t.preview.render(t),f(t.toolbar.elements,["both"]);break;case"editor":t.sv.element.style.display="block",t.preview.element.style.display="none",p(t.toolbar.elements,["both"])}t.devtools&&t.devtools.renderEchart(t)}},Ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return"both"===t.options.preview.mode&&r.element.children[0].classList.add("vditor-menu--current"),r.element.children[0].addEventListener(Object(u.b)(),(function(e){r.element.firstElementChild.classList.contains(a.a.CLASS_MENU_DISABLED)||(e.preventDefault(),"sv"===t.currentMode&&("both"===t.options.preview.mode?qt("editor",t):qt("both",t)))})),r}return Ut(t,e),t}(he),Wt=function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"},Kt=n(22),Ft=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.element.children[0],o=document.createElement("div");o.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow");var l="";return a.a.CODE_THEME.forEach((function(e){l+=""})),o.innerHTML='
        '+l+"
        ",o.addEventListener(Object(u.b)(),(function(e){"BUTTON"===e.target.tagName&&(b(t,["subToolbar"]),t.options.preview.hljs.style=e.target.textContent,Object(Kt.a)(e.target.textContent,t.options.cdn),e.preventDefault(),e.stopPropagation())})),r.element.appendChild(o),y(t,o,i,n.level),r}return Ft(t,e),t}(he),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jt=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.element.children[0],o=document.createElement("div");o.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow");var a="";return Object.keys(t.options.preview.theme.list).forEach((function(e){a+='"})),o.innerHTML='
        '+a+"
        ",o.addEventListener(Object(u.b)(),(function(e){"BUTTON"===e.target.tagName&&(b(t,["subToolbar"]),t.options.preview.theme.current=e.target.getAttribute("data-type"),Object(K.a)(t.options.preview.theme.current,t.options.preview.theme.path),e.preventDefault(),e.stopPropagation())})),r.element.appendChild(o),y(t,o,i,n.level),r}return Zt(t,e),t}(he),Gt=function(){function e(e){this.element=document.createElement("span"),this.element.className="vditor-counter vditor-tooltipped vditor-tooltipped__nw",this.render(e,"")}return e.prototype.render=function(e,t){var n=t.endsWith("\n")?t.length-1:t.length;if("text"===e.options.counter.type&&e[e.currentMode]){var r=e[e.currentMode].element.cloneNode(!0);r.querySelectorAll(".vditor-wysiwyg__preview").forEach((function(e){e.remove()})),n=r.textContent.length}"number"==typeof e.options.counter.max?(n>e.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML=n+"/"+e.options.counter.max):this.element.innerHTML=""+n,this.element.setAttribute("aria-label",e.options.counter.type),e.options.counter.after&&e.options.counter.after(n,{enable:e.options.counter.enable,max:e.options.counter.max,type:e.options.counter.type})},e}(),Xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.element.children[0].innerHTML=n.icon,r.element.children[0].addEventListener(Object(u.b)(),(function(e){e.preventDefault(),e.currentTarget.classList.contains(a.a.CLASS_MENU_DISABLED)||n.click(e,t)})),r}return Xt(t,e),t}(he),$t=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.element.firstElementChild.addEventListener(Object(u.b)(),(function(e){var n=r.element.firstElementChild;n.classList.contains(a.a.CLASS_MENU_DISABLED)||(e.preventDefault(),n.classList.contains("vditor-menu--current")?(n.classList.remove("vditor-menu--current"),t.devtools.element.style.display="none",z(t)):(n.classList.add("vditor-menu--current"),t.devtools.element.style.display="block",z(t),t.devtools.renderEchart(t)))})),r}return $t(t,e),t}(he),en=function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"},tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=document.createElement("div");i.className="vditor-panel vditor-panel--arrow";var o="";Object.keys(t.options.hint.emoji).forEach((function(e){var n=t.options.hint.emoji[e];n.indexOf(".")>-1?o+='':o+='"}));var a='
        \n '+(t.options.hint.emojiTail||"")+"\n
        ";return i.innerHTML='
        '+o+"
        "+a,r.element.appendChild(i),y(t,i,r.element.children[0],n.level),r._bindEvent(t,i),r}return tn(t,e),t.prototype._bindEvent=function(e,t){t.querySelectorAll(".vditor-emojis button").forEach((function(n){n.addEventListener(Object(u.b)(),(function(r){r.preventDefault();var i=n.getAttribute("data-value"),o=Object(N.b)(e),a=i;if("wysiwyg"===e.currentMode?a=e.lute.SpinVditorDOM(i):"ir"===e.currentMode&&(a=e.lute.SpinVditorIRDOM(i)),i.indexOf(":")>-1&&"sv"!==e.currentMode){var l=document.createElement("div");l.innerHTML=a,a=l.firstElementChild.firstElementChild.outerHTML+" ",Object(N.d)(a,e)}else o.extractContents(),o.insertNode(document.createTextNode(i));o.collapse(!1),Object(N.h)(o),t.style.display="none",lt(e)})),n.addEventListener("mouseover",(function(e){"BUTTON"===e.target.tagName&&(t.querySelector(".vditor-emojis__tip").innerHTML=e.target.getAttribute("data-key"))}))}))},t}(he),rn=function(e,t,n){var r=document.createElement("a");"download"in r?(r.download=n,r.style.display="none",r.href=URL.createObjectURL(new Blob([t])),document.body.appendChild(r),r.click(),r.remove()):e.tip.show(W.a[e.options.lang].downloadTip,0)},on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),an=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.element.children[0],o=document.createElement("div");return o.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow"),o.innerHTML='\n\n',o.addEventListener(Object(u.b)(),(function(e){var n=e.target;if("BUTTON"===n.tagName){switch(n.getAttribute("data-type")){case"markdown":!function(e){var t=s(e);rn(e,t,t.substr(0,10)+".md")}(t);break;case"pdf":!function(e){e.tip.show(W.a[e.options.lang].generate,3800);var t=document.querySelector("iframe");t.contentDocument.open(),t.contentDocument.write('\n"),F.StrToBytes(""),F.StrToBytes("")]);AO=new BU([F.StrToBytes("");AT=F.StrToBytes("{: ");AU=F.StrToBytes("{:}");AW=F.StrToBytes("$");AZ=F.StrToBytes("1");$pkg.MathBlockMarker=F.StrToBytes("$$");$pkg.MathBlockMarkerNewline=F.StrToBytes("$$\n");$pkg.MathBlockMarkerCaret=F.StrToBytes("$$\xE2\x80\xB8");$pkg.MathBlockMarkerCaretNewline=F.StrToBytes("$$\xE2\x80\xB8\n");BO=F.StrToBytes("\\");$pkg.YamlFrontMatterMarker=F.StrToBytes("---");$pkg.YamlFrontMatterMarkerNewline=F.StrToBytes("---\n");$pkg.YamlFrontMatterMarkerCaret=F.StrToBytes("---\xE2\x80\xB8");$pkg.YamlFrontMatterMarkerCaretNewline=F.StrToBytes("---\xE2\x80\xB8\n");AB();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); -$packages["github.com/88250/lute/render"]=(function(){var $pkg={},$init,G,A,B,L,C,E,F,K,H,D,I,J,M,S,U,X,AC,AH,AI,AK,AM,AS,BK,BM,BQ,BS,BU,BW,BX,BY,BZ,CA,CB,CC,CD,CE,CF,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,DF,DG,P,R,W,AV,AX,BD,BJ,N,T,V,Y,Z,AA,AD,AE,AF,AG,AL,AN,AO,AP,AQ,AR,AT,AU,AW,AY,AZ,BA,BB,BC,BE,BF,BG,BH,BI,BL,BN,BO,BP,BR,BT,BV;G=$packages["bytes"];A=$packages["github.com/88250/lute/ast"];B=$packages["github.com/88250/lute/html"];L=$packages["github.com/88250/lute/html/atom"];C=$packages["github.com/88250/lute/lex"];E=$packages["github.com/88250/lute/parse"];F=$packages["github.com/88250/lute/util"];K=$packages["io"];H=$packages["strconv"];D=$packages["strings"];I=$packages["unicode"];J=$packages["unicode/utf8"];M=$pkg.EChartsJSONRenderer=$newType(0,$kindStruct,"render.EChartsJSONRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});S=$pkg.FormatRenderer=$newType(0,$kindStruct,"render.FormatRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,NodeWriterStack_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;this.NodeWriterStack=CC.nil;return;}this.BaseRenderer=BaseRenderer_;this.NodeWriterStack=NodeWriterStack_;});U=$pkg.HtmlRenderer=$newType(0,$kindStruct,"render.HtmlRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});X=$pkg.JSONRenderer=$newType(0,$kindStruct,"render.JSONRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});AC=$pkg.KityMinderJSONRenderer=$newType(0,$kindStruct,"render.KityMinderJSONRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});AH=$pkg.RendererFunc=$newType(4,$kindFunc,"render.RendererFunc",true,"github.com/88250/lute/render",true,null);AI=$pkg.ExtRendererFunc=$newType(4,$kindFunc,"render.ExtRendererFunc",true,"github.com/88250/lute/render",true,null);AK=$pkg.Options=$newType(0,$kindStruct,"render.Options",true,"github.com/88250/lute/render",true,function(SoftBreak2HardBreak_,AutoSpace_,RenderListStyle_,CodeSyntaxHighlight_,CodeSyntaxHighlightDetectLang_,CodeSyntaxHighlightInlineStyle_,CodeSyntaxHighlightLineNum_,CodeSyntaxHighlightStyleName_,VditorWYSIWYG_,VditorIR_,VditorSV_,KramdownBlockIAL_,KramdownSpanIAL_,ImageLazyLoading_,ChineseParagraphBeginningSpace_,Sanitize_,FixTermTypo_,ToC_,HeadingID_,KramdownIALIDRenderName_,HeadingAnchor_,GFMTaskListItemClass_,VditorCodeBlockPreview_,VditorMathBlockPreview_,VditorHTMLBlockPreview_,Terms_,LinkBase_,LinkPrefix_){this.$val=this;if(arguments.length===0){this.SoftBreak2HardBreak=false;this.AutoSpace=false;this.RenderListStyle=false;this.CodeSyntaxHighlight=false;this.CodeSyntaxHighlightDetectLang=false;this.CodeSyntaxHighlightInlineStyle=false;this.CodeSyntaxHighlightLineNum=false;this.CodeSyntaxHighlightStyleName="";this.VditorWYSIWYG=false;this.VditorIR=false;this.VditorSV=false;this.KramdownBlockIAL=false;this.KramdownSpanIAL=false;this.ImageLazyLoading="";this.ChineseParagraphBeginningSpace=false;this.Sanitize=false;this.FixTermTypo=false;this.ToC=false;this.HeadingID=false;this.KramdownIALIDRenderName="";this.HeadingAnchor=false;this.GFMTaskListItemClass="";this.VditorCodeBlockPreview=false;this.VditorMathBlockPreview=false;this.VditorHTMLBlockPreview=false;this.Terms=false;this.LinkBase="";this.LinkPrefix="";return;}this.SoftBreak2HardBreak=SoftBreak2HardBreak_;this.AutoSpace=AutoSpace_;this.RenderListStyle=RenderListStyle_;this.CodeSyntaxHighlight=CodeSyntaxHighlight_;this.CodeSyntaxHighlightDetectLang=CodeSyntaxHighlightDetectLang_;this.CodeSyntaxHighlightInlineStyle=CodeSyntaxHighlightInlineStyle_;this.CodeSyntaxHighlightLineNum=CodeSyntaxHighlightLineNum_;this.CodeSyntaxHighlightStyleName=CodeSyntaxHighlightStyleName_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.VditorSV=VditorSV_;this.KramdownBlockIAL=KramdownBlockIAL_;this.KramdownSpanIAL=KramdownSpanIAL_;this.ImageLazyLoading=ImageLazyLoading_;this.ChineseParagraphBeginningSpace=ChineseParagraphBeginningSpace_;this.Sanitize=Sanitize_;this.FixTermTypo=FixTermTypo_;this.ToC=ToC_;this.HeadingID=HeadingID_;this.KramdownIALIDRenderName=KramdownIALIDRenderName_;this.HeadingAnchor=HeadingAnchor_;this.GFMTaskListItemClass=GFMTaskListItemClass_;this.VditorCodeBlockPreview=VditorCodeBlockPreview_;this.VditorMathBlockPreview=VditorMathBlockPreview_;this.VditorHTMLBlockPreview=VditorHTMLBlockPreview_;this.Terms=Terms_;this.LinkBase=LinkBase_;this.LinkPrefix=LinkPrefix_;});AM=$pkg.BaseRenderer=$newType(0,$kindStruct,"render.BaseRenderer",true,"github.com/88250/lute/render",true,function(Options_,RendererFuncs_,DefaultRendererFunc_,ExtRendererFuncs_,Writer_,LastOut_,Tree_,DisableTags_,FootnotesDefs_,RenderingFootnotes_){this.$val=this;if(arguments.length===0){this.Options=CM.nil;this.RendererFuncs=false;this.DefaultRendererFunc=$throwNilPointerError;this.ExtRendererFuncs=false;this.Writer=CB.nil;this.LastOut=0;this.Tree=CN.nil;this.DisableTags=0;this.FootnotesDefs=CD.nil;this.RenderingFootnotes=false;return;}this.Options=Options_;this.RendererFuncs=RendererFuncs_;this.DefaultRendererFunc=DefaultRendererFunc_;this.ExtRendererFuncs=ExtRendererFuncs_;this.Writer=Writer_;this.LastOut=LastOut_;this.Tree=Tree_;this.DisableTags=DisableTags_;this.FootnotesDefs=FootnotesDefs_;this.RenderingFootnotes=RenderingFootnotes_;});AS=$pkg.Heading=$newType(0,$kindStruct,"render.Heading",true,"github.com/88250/lute/render",true,function(URL_,Path_,ID_,Content_,Level_,Children_,parent_){this.$val=this;if(arguments.length===0){this.URL="";this.Path="";this.ID="";this.Content="";this.Level=0;this.Children=CP.nil;this.parent=CO.nil;return;}this.URL=URL_;this.Path=Path_;this.ID=ID_;this.Content=Content_;this.Level=Level_;this.Children=Children_;this.parent=parent_;});BK=$pkg.TextBundleRenderer=$newType(0,$kindStruct,"render.TextBundleRenderer",true,"github.com/88250/lute/render",true,function(FormatRenderer_,linkPrefixes_,originalLink_){this.$val=this;if(arguments.length===0){this.FormatRenderer=CT.nil;this.linkPrefixes=BW.nil;this.originalLink=BW.nil;return;}this.FormatRenderer=FormatRenderer_;this.linkPrefixes=linkPrefixes_;this.originalLink=originalLink_;});BM=$pkg.VditorIRBlockRenderer=$newType(0,$kindStruct,"render.VditorIRBlockRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});BQ=$pkg.VditorIRRenderer=$newType(0,$kindStruct,"render.VditorIRRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});BS=$pkg.VditorSVRenderer=$newType(0,$kindStruct,"render.VditorSVRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_,nodeWriterStack_,LastOut_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;this.nodeWriterStack=CC.nil;this.LastOut=BX.nil;return;}this.BaseRenderer=BaseRenderer_;this.nodeWriterStack=nodeWriterStack_;this.LastOut=LastOut_;});BU=$pkg.VditorRenderer=$newType(0,$kindStruct,"render.VditorRenderer",true,"github.com/88250/lute/render",true,function(BaseRenderer_){this.$val=this;if(arguments.length===0){this.BaseRenderer=CA.nil;return;}this.BaseRenderer=BaseRenderer_;});BW=$sliceType($String);BX=$sliceType($Uint8);BY=$sliceType(BW);BZ=$ptrType(A.Node);CA=$ptrType(AM);CB=$ptrType(G.Buffer);CC=$sliceType(CB);CD=$sliceType(BZ);CE=$sliceType(CD);CF=$sliceType(A.NodeType);CG=$ptrType(A.ListData);CH=$ptrType(E.Context);CI=$ptrType(C.Lexer);CJ=$ptrType(E.InlineContext);CK=$sliceType($Int);CL=$ptrType(BY);CM=$ptrType(AK);CN=$ptrType(E.Tree);CO=$ptrType(AS);CP=$sliceType(CO);CQ=$ptrType(B.Attribute);CR=$sliceType(CQ);CS=$sliceType($Int32);CT=$ptrType(S);CU=$ptrType(B.Node);CV=$ptrType(M);CW=$ptrType(U);CX=$ptrType(X);CY=$ptrType(AC);CZ=$mapType($String,$String);DA=$mapType(A.NodeType,AH);DB=$mapType(A.NodeType,AI);DC=$ptrType(BK);DD=$ptrType(BM);DE=$ptrType(BQ);DF=$ptrType(BS);DG=$ptrType(BU);U.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c;c=this;c.BaseRenderer.Newline();if(!a.IsFencedCodeBlock){if(b){c.BaseRenderer.WriteString("
        ");c.BaseRenderer.Write(B.EscapeHTML(a.FirstChild.Tokens));c.BaseRenderer.WriteString("
        ");c.BaseRenderer.Newline();return 1;}else{return 2;}}return 2;};U.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};U.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d="";if(0=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0])));}f=c.BaseRenderer.NoHighlight(d);if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Newline();g=BY.nil;c.handleKramdownBlockIAL(a);g=$appendSlice(g,a.KramdownIAL);if(!f){c.BaseRenderer.Tag("pre",g,false);}h=a.Tokens;if(0");$s=9;continue;case 8:if(f){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("");}case 9:h=B.EscapeHTML(h);c.BaseRenderer.Write(h);$s=6;continue;case 5:c.BaseRenderer.WriteString("");h=B.EscapeHTML(h);c.BaseRenderer.Write(h);case 6:$s=3;continue;case 2:if(f){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("");}c.BaseRenderer.Newline();case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:U.ptr.prototype.renderCodeBlockCode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.renderCodeBlockCode=function(a,b){return this.$val.renderCodeBlockCode(a,b);};N=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new M.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeBlock")};i=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderMathBlock")};j=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderInlineMath")};k=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderEmphasis")};l=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderStrong")};m=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderBlockquote")};n=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderHeading")};o=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderList")};p=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderListItem")};q=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderThematicBreak")};r=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderHardBreak")};s=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderSoftBreak")};t=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderHTML")};u=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineHTML")};v=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderLink")};w=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderImage")};x=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderStrikethrough")};y=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderTaskListItemMarker")};z=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderTable")};aa=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderTableHead")};ab=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderTableRow")};ac=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderTableCell")};ad=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderEmoji")};ae=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderEmojiUnicode")};af=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderEmojiImg")};ag=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderEmojiAlias")};ah=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderFootnotesDef")};ai=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderFootnotesRef")};aj=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderToC")};ak=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderBackslash")};al=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderBackslashContent")};am=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderHtmlEntity")};an=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderYamlFrontMatter")};ao=430;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderBlockRef")};ap=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderMark")};aq=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSup")};ar=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderSub")};as=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderKramdownBlockIAL")};at=456;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderKramdownSpanIAL")};au=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderBlockEmbed")};av=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBlockQueryEmbed")};c.BaseRenderer.DefaultRendererFunc=$methodVal(c,"renderDefault");return c;};$pkg.NewEChartsJSONRenderer=N;M.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(BZ.nil===a.Previous){$s=-1;return 2;}d=c.BaseRenderer.NodeID(a.Previous);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(F.IsDocIAL(a.Tokens)){e=c.BaseRenderer.Tree.ID;}c.leaf("Block IAL\n{: "+e+"}",a);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:M.ptr.prototype.renderKramdownBlockIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};M.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};M.ptr.prototype.renderKramdownSpanIAL=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(BZ.nil===a.Previous){$s=-1;return 2;}d=c.BaseRenderer.NodeID(a.Previous);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;c.leaf("Span IAL\n{: "+e+"}",a);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:M.ptr.prototype.renderKramdownSpanIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};M.prototype.renderKramdownSpanIAL=function(a,b){return this.$val.renderKramdownSpanIAL(a,b);};M.ptr.prototype.renderMark=function(a,b){var a,b,c;c=this;if(b){c.leaf("Mark\nmark",a);}return 1;};M.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};M.ptr.prototype.renderSup=function(a,b){var a,b,c;c=this;if(b){c.leaf("Sup\nsup",a);}return 1;};M.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};M.ptr.prototype.renderSub=function(a,b){var a,b,c;c=this;if(b){c.leaf("Sub\nsub",a);}return 1;};M.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};M.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c;c=this;if(b){c.leaf("BlockQueryEmbed\n!{{script}}",a);}return 1;};M.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};M.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c;c=this;if(b){c.leaf("BlockEmbed\n!((id))",a);}return 1;};M.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};M.ptr.prototype.renderBlockRef=function(a,b){var a,b,c;c=this;if(b){c.leaf("BlockRef\n((id))",a);}return 1;};M.prototype.renderBlockRef=function(a,b){return this.$val.renderBlockRef(a,b);};M.ptr.prototype.renderDefault=function(a,b){var a,b,c;c=this;return 2;};M.prototype.renderDefault=function(a,b){return this.$val.renderDefault(a,b);};M.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;if(b){c.leaf("Front Matter\nYAML",a);}return 1;};M.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};M.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c;c=this;if(b){c.leaf("HTML Entity\nspan",a);}return 1;};M.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};M.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;return 1;};M.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};M.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;if(b){c.leaf("Blackslash\ndiv",a);}return 1;};M.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};M.ptr.prototype.renderToC=function(a,b){var a,b,c;c=this;if(b){c.leaf("ToC\ndiv",a);}return 1;};M.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};M.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c;c=this;if(b){c.leaf("Footnotes Ref\ndiv",a);}return 1;};M.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};M.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("Footnotes Def\np",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};M.ptr.prototype.renderInlineMath=function(a,b){var a,b,c;c=this;if(b){c.leaf("Inline Math\nspan",a);}return 1;};M.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};M.ptr.prototype.renderMathBlock=function(a,b){var a,b,c;c=this;if(b){c.leaf("Math Block\ndiv",a);}return 1;};M.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};M.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.leaf("Emoji Img\n",a);}return 1;};M.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};M.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.leaf("Emoji Unicode\n",a);}return 1;};M.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};M.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 1;};M.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};M.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};M.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};M.ptr.prototype.renderTableCell=function(a,b){var a,b,c;c=this;if(b){c.leaf("Table Cell\ntd",a);}return 1;};M.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};M.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.leaf("Table Row\ntr",a);}return 1;};M.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};M.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.leaf("Table Head\nthead",a);}return 1;};M.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};M.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("Table\ntable",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};M.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c;c=this;if(b){c.leaf("Strikethrough\ndel",a);}return 1;};M.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};M.ptr.prototype.renderImage=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("Image\nimg",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderImage=function(a,b){return this.$val.renderImage(a,b);};M.ptr.prototype.renderLink=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("Link\na",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderLink=function(a,b){return this.$val.renderLink(a,b);};M.ptr.prototype.renderHTML=function(a,b){var a,b,c;c=this;if(b){c.leaf("HTML Block\n",a);}return 1;};M.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};M.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c;c=this;if(b){c.leaf("Inline HTML\n",a);}return 1;};M.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};M.ptr.prototype.renderDocument=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(91);c.openObj();c.val("Document",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);c.BaseRenderer.WriteByte(93);}return 2;};M.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};M.ptr.prototype.renderParagraph=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("Paragraph\np",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};M.ptr.prototype.renderText=function(a,b){var a,b,c,d,e,f,g,h,i,j;c=this;if(b){d=F.BytesToStr(a.Tokens);e=0;f="";g=d;h=0;while(true){if(!(h>0;f=f+(($encodeRune(j)));if(4>0));c.val("Heading\n"+d,a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};M.ptr.prototype.renderList=function(a,b){var a,b,c,d;c=this;if(b){c.openObj();d="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){d="ol";}c.val("List\n"+d,a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};M.ptr.prototype.renderListItem=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val("List Item\nli "+F.BytesToStr(a.ListData.Marker),a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};M.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c,d;c=this;if(b){c.openObj();d=" ";if(a.TaskListItemChecked){d="X";}c.val("Task List Item Marker\n["+d+"]",a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};M.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};M.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf("Thematic Break\nhr",a);}return 1;};M.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};M.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf("Hard Break\nbr",a);}return 1;};M.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};M.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf("Soft Break\n",a);}return 1;};M.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};M.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c;c=this;if(b){c.leaf("Code Block\npre.code",a);}return 1;};M.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};M.ptr.prototype.leaf=function(a,b){var a,b,c;c=this;c.openObj();c.val(a,b);c.closeObj(b);};M.prototype.leaf=function(a,b){return this.$val.leaf(a,b);};M.ptr.prototype.val=function(a,b){var a,b,c;c=this;a=D.ReplaceAll(a,"\\","\\\\");a=D.ReplaceAll(a,"\n","\\n");a=D.ReplaceAll(a,"\"","");a=D.ReplaceAll(a,"'","");c.BaseRenderer.WriteString("\"name\":\""+a+"\"");};M.prototype.val=function(a,b){return this.$val.val(a,b);};M.ptr.prototype.openObj=function(){var a;a=this;a.BaseRenderer.WriteByte(123);};M.prototype.openObj=function(){return this.$val.openObj();};M.ptr.prototype.closeObj=function(a){var a,b;b=this;b.BaseRenderer.WriteByte(125);if(!b.ignore(a.Next)){b.comma();}};M.prototype.closeObj=function(a){return this.$val.closeObj(a);};M.ptr.prototype.openChildren=function(a){var a,b;b=this;if(!(BZ.nil===a.FirstChild)){b.BaseRenderer.WriteString(",\"children\":[");}};M.prototype.openChildren=function(a){return this.$val.openChildren(a);};M.ptr.prototype.closeChildren=function(a){var a,b;b=this;if(!(BZ.nil===a.FirstChild)){b.BaseRenderer.WriteByte(93);}};M.prototype.closeChildren=function(a){return this.$val.closeChildren(a);};M.ptr.prototype.comma=function(){var a;a=this;a.BaseRenderer.WriteString(",");};M.prototype.comma=function(){return this.$val.comma();};M.ptr.prototype.ignore=function(a){var a,b;b=this;return BZ.nil===a||(6===a.Type)||(18===a.Type)||(19===a.Type)||(20===a.Type)||(21===a.Type)||(23===a.Type)||(24===a.Type)||(25===a.Type)||(26===a.Type)||(102===a.Type)||(103===a.Type)||(104===a.Type)||(105===a.Type)||(301===a.Type)||(302===a.Type)||(303===a.Type)||(305===a.Type)||(306===a.Type)||(307===a.Type)||(426===a.Type)||(428===a.Type)||(427===a.Type);};M.prototype.ignore=function(a){return this.$val.ignore(a);};T=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new S.ptr(AN(a,b),CC.nil);d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=28;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeSpanOpenMarker")};i=29;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderCodeSpanContent")};j=30;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderCodeSpanCloseMarker")};k=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderCodeBlock")};l=12;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderCodeBlockOpenMarker")};m=14;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderCodeBlockInfoMarker")};n=15;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderCodeBlockCode")};o=13;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderCodeBlockCloseMarker")};p=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderMathBlock")};q=301;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderMathBlockOpenMarker")};r=302;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderMathBlockContent")};s=303;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderMathBlockCloseMarker")};t=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderInlineMath")};u=305;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineMathOpenMarker")};v=306;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderInlineMathContent")};w=307;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderInlineMathCloseMarker")};x=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderEmphasis")};y=18;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderEmAsteriskOpenMarker")};z=19;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderEmAsteriskCloseMarker")};aa=20;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderEmUnderscoreOpenMarker")};ab=21;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderEmUnderscoreCloseMarker")};ac=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderStrong")};ad=23;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderStrongA6kOpenMarker")};ae=24;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderStrongA6kCloseMarker")};af=25;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderStrongU8eOpenMarker")};ag=26;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderStrongU8eCloseMarker")};ah=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderBlockquote")};ai=6;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderBlockquoteMarker")};aj=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderHeading")};ak=3;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderHeadingC8hMarker")};al=420;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderHeadingID")};am=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderList")};an=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderListItem")};ao=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderThematicBreak")};ap=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderHardBreak")};aq=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSoftBreak")};ar=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderHTML")};as=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderInlineHTML")};at=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderLink")};au=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderImage")};av=35;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBang")};aw=36;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aw)]={k:aw,v:$methodVal(c,"renderOpenBracket")};ax=37;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ax)]={k:ax,v:$methodVal(c,"renderCloseBracket")};ay=38;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ay)]={k:ay,v:$methodVal(c,"renderOpenParen")};az=39;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(az)]={k:az,v:$methodVal(c,"renderCloseParen")};ba=466;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ba)]={k:ba,v:$methodVal(c,"renderOpenBrace")};bb=467;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bb)]={k:bb,v:$methodVal(c,"renderCloseBrace")};bc=40;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bc)]={k:bc,v:$methodVal(c,"renderLinkText")};bd=43;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bd)]={k:bd,v:$methodVal(c,"renderLinkSpace")};be=41;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(be)]={k:be,v:$methodVal(c,"renderLinkDest")};bf=42;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bf)]={k:bf,v:$methodVal(c,"renderLinkTitle")};bg=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bg)]={k:bg,v:$methodVal(c,"renderStrikethrough")};bh=102;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bh)]={k:bh,v:$methodVal(c,"renderStrikethrough1OpenMarker")};bi=103;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bi)]={k:bi,v:$methodVal(c,"renderStrikethrough1CloseMarker")};bj=104;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bj)]={k:bj,v:$methodVal(c,"renderStrikethrough2OpenMarker")};bk=105;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bk)]={k:bk,v:$methodVal(c,"renderStrikethrough2CloseMarker")};bl=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bl)]={k:bl,v:$methodVal(c,"renderTaskListItemMarker")};bm=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bm)]={k:bm,v:$methodVal(c,"renderTable")};bn=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bn)]={k:bn,v:$methodVal(c,"renderTableHead")};bo=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bo)]={k:bo,v:$methodVal(c,"renderTableRow")};bp=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bp)]={k:bp,v:$methodVal(c,"renderTableCell")};bq=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bq)]={k:bq,v:$methodVal(c,"renderEmoji")};br=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(br)]={k:br,v:$methodVal(c,"renderEmojiUnicode")};bs=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bs)]={k:bs,v:$methodVal(c,"renderEmojiImg")};bt=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bt)]={k:bt,v:$methodVal(c,"renderEmojiAlias")};bu=410;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bu)]={k:bu,v:$methodVal(c,"renderFootnotesDefBlock")};bv=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bv)]={k:bv,v:$methodVal(c,"renderFootnotesDef")};bw=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bw)]={k:bw,v:$methodVal(c,"renderFootnotesRef")};bx=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bx)]={k:bx,v:$methodVal(c,"renderToC")};by=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(by)]={k:by,v:$methodVal(c,"renderBackslash")};bz=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bz)]={k:bz,v:$methodVal(c,"renderBackslashContent")};ca=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ca)]={k:ca,v:$methodVal(c,"renderHtmlEntity")};cb=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cb)]={k:cb,v:$methodVal(c,"renderYamlFrontMatter")};cc=426;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cc)]={k:cc,v:$methodVal(c,"renderYamlFrontMatterOpenMarker")};cd=427;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cd)]={k:cd,v:$methodVal(c,"renderYamlFrontMatterContent")};ce=428;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ce)]={k:ce,v:$methodVal(c,"renderYamlFrontMatterCloseMarker")};cf=430;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cf)]={k:cf,v:$methodVal(c,"renderBlockRef")};cg=431;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cg)]={k:cg,v:$methodVal(c,"renderBlockRefID")};ch=432;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ch)]={k:ch,v:$methodVal(c,"renderBlockRefSpace")};ci=433;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ci)]={k:ci,v:$methodVal(c,"renderBlockRefText")};cj=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cj)]={k:cj,v:$methodVal(c,"renderMark")};ck=451;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ck)]={k:ck,v:$methodVal(c,"renderMark1OpenMarker")};cl=452;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cl)]={k:cl,v:$methodVal(c,"renderMark1CloseMarker")};cm=453;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cm)]={k:cm,v:$methodVal(c,"renderMark2OpenMarker")};cn=454;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cn)]={k:cn,v:$methodVal(c,"renderMark2CloseMarker")};co=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(co)]={k:co,v:$methodVal(c,"renderSup")};cp=486;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cp)]={k:cp,v:$methodVal(c,"renderSupOpenMarker")};cq=487;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cq)]={k:cq,v:$methodVal(c,"renderSupCloseMarker")};cr=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cr)]={k:cr,v:$methodVal(c,"renderSub")};cs=491;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cs)]={k:cs,v:$methodVal(c,"renderSubOpenMarker")};ct=492;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ct)]={k:ct,v:$methodVal(c,"renderSubCloseMarker")};cu=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cu)]={k:cu,v:$methodVal(c,"renderKramdownBlockIAL")};cv=456;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cv)]={k:cv,v:$methodVal(c,"renderKramdownSpanIAL")};cw=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cw)]={k:cw,v:$methodVal(c,"renderBlockQueryEmbed")};cx=468;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cx)]={k:cx,v:$methodVal(c,"renderBlockQueryEmbedScript")};cy=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cy)]={k:cy,v:$methodVal(c,"renderBlockEmbed")};cz=441;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cz)]={k:cz,v:$methodVal(c,"renderBlockEmbedID")};da=442;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(da)]={k:da,v:$methodVal(c,"renderBlockEmbedSpace")};db=443;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(db)]={k:db,v:$methodVal(c,"renderBlockEmbedText")};dc=460;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dc)]={k:dc,v:$methodVal(c,"renderTag")};dd=461;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dd)]={k:dd,v:$methodVal(c,"renderTagOpenMarker")};de=462;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(de)]={k:de,v:$methodVal(c,"renderTagCloseMarker")};df=45;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(df)]={k:df,v:$methodVal(c,"renderLinkRefDefBlock")};dg=46;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dg)]={k:dg,v:$methodVal(c,"renderLinkRefDef")};dh=475;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dh)]={k:dh,v:$methodVal(c,"renderSuperBlock")};di=476;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(di)]={k:di,v:$methodVal(c,"renderSuperBlockOpenMarker")};dj=477;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dj)]={k:dj,v:$methodVal(c,"renderSuperBlockLayoutMarker")};dk=478;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dk)]={k:dk,v:$methodVal(c,"renderSuperBlockCloseMarker")};dl=495;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dl)]={k:dl,v:$methodVal(c,"renderGitConflict")};dm=496;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dm)]={k:dm,v:$methodVal(c,"renderGitConflictOpenMarker")};dn=497;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dn)]={k:dn,v:$methodVal(c,"renderGitConflictContent")};dp=498;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dp)]={k:dp,v:$methodVal(c,"renderGitConflictCloseMarker")};return c;};$pkg.NewFormatRenderer=T;S.ptr.prototype.renderGitConflictCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Newline();}return 2;};S.prototype.renderGitConflictCloseMarker=function(a,b){return this.$val.renderGitConflictCloseMarker(a,b);};S.ptr.prototype.renderGitConflictContent=function(a,b){var a,b,c;c=this;if(!b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Newline();}return 2;};S.prototype.renderGitConflictContent=function(a,b){return this.$val.renderGitConflictContent(a,b);};S.ptr.prototype.renderGitConflictOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Newline();}return 2;};S.prototype.renderGitConflictOpenMarker=function(a,b){return this.$val.renderGitConflictOpenMarker(a,b);};S.ptr.prototype.renderGitConflict=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();}return 2;};S.prototype.renderGitConflict=function(a,b){return this.$val.renderGitConflict(a,b);};S.ptr.prototype.renderSuperBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();}return 2;};S.prototype.renderSuperBlock=function(a,b){return this.$val.renderSuperBlock(a,b);};S.ptr.prototype.renderSuperBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write((new BX($stringToBytes("{{{"))));}return 2;};S.prototype.renderSuperBlockOpenMarker=function(a,b){return this.$val.renderSuperBlockOpenMarker(a,b);};S.ptr.prototype.renderSuperBlockLayoutMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderSuperBlockLayoutMarker=function(a,b){return this.$val.renderSuperBlockLayoutMarker(a,b);};S.ptr.prototype.renderSuperBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();c.BaseRenderer.Write((new BX($stringToBytes("}}}"))));c.BaseRenderer.Newline();if(!c.BaseRenderer.isLastNode(c.BaseRenderer.Tree.Root,a)){if(c.withoutKramdownBlockIAL(a.Parent)){c.BaseRenderer.WriteByte(10);}}}return 2;};S.prototype.renderSuperBlockCloseMarker=function(a,b){return this.$val.renderSuperBlockCloseMarker(a,b);};S.ptr.prototype.renderLinkRefDefBlock=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};S.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(91);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteString("]: ");}else{c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};S.ptr.prototype.renderTag=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};S.prototype.renderTag=function(a,b){return this.$val.renderTag(a,b);};S.ptr.prototype.renderTagOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(35);}return 2;};S.prototype.renderTagOpenMarker=function(a,b){return this.$val.renderTagOpenMarker(a,b);};S.ptr.prototype.renderTagCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(35);}return 2;};S.prototype.renderTagCloseMarker=function(a,b){return this.$val.renderTagCloseMarker(a,b);};S.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;if(!(BZ.nil===a.Previous)&&(8===a.Previous.Type)){return 2;}if(b){c.BaseRenderer.Newline();if(c.BaseRenderer.Options.KramdownBlockIAL){if(F.IsDocIAL(a.Tokens)){c.BaseRenderer.WriteByte(10);}c.BaseRenderer.Write(a.Tokens);}}else{if((8===a.Parent.Type)||(7===a.Parent.Type)){if(!a.Parent.ListData.Tight){c.BaseRenderer.Newline();}}else{c.BaseRenderer.Newline();}c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};S.ptr.prototype.renderKramdownSpanIAL=function(a,b){var a,b,c;c=this;if(!c.BaseRenderer.Options.KramdownSpanIAL){return 2;}if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderKramdownSpanIAL=function(a,b){return this.$val.renderKramdownSpanIAL(a,b);};S.ptr.prototype.renderMark=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};S.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};S.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("=");}return 2;};S.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};S.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("=");}return 2;};S.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};S.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("==");}return 2;};S.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};S.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("==");}return 2;};S.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};S.ptr.prototype.renderSup=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};S.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("^");}return 2;};S.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};S.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("^");}return 2;};S.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};S.ptr.prototype.renderSub=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};S.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("~");}return 2;};S.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};S.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("~");}return 2;};S.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};S.ptr.prototype.renderBlockQueryEmbedScript=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderBlockQueryEmbedScript=function(a,b){return this.$val.renderBlockQueryEmbedScript(a,b);};S.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();}else{c.BaseRenderer.Newline();}return 2;};S.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};S.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c;c=this;if(b){if(!(BZ.nil===a.Previous)){if(!((100===a.Previous.Type))){c.BaseRenderer.Newline();}else{c.BaseRenderer.WriteByte(32);}}}else{c.BaseRenderer.Newline();}return 2;};S.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};S.ptr.prototype.renderBlockEmbedID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderBlockEmbedID=function(a,b){return this.$val.renderBlockEmbedID(a,b);};S.ptr.prototype.renderBlockEmbedSpace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(32);}return 2;};S.prototype.renderBlockEmbedSpace=function(a,b){return this.$val.renderBlockEmbedSpace(a,b);};S.ptr.prototype.renderBlockEmbedText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(34);}return 2;};S.prototype.renderBlockEmbedText=function(a,b){return this.$val.renderBlockEmbedText(a,b);};S.ptr.prototype.renderBlockRef=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderBlockRef=function(a,b){return this.$val.renderBlockRef(a,b);};S.ptr.prototype.renderBlockRefID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderBlockRefID=function(a,b){return this.$val.renderBlockRefID(a,b);};S.ptr.prototype.renderBlockRefSpace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(32);}return 2;};S.prototype.renderBlockRefSpace=function(a,b){return this.$val.renderBlockRefSpace(a,b);};S.ptr.prototype.renderBlockRefText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);}else{c.BaseRenderer.WriteByte(34);}return 2;};S.prototype.renderBlockRefText=function(a,b){return this.$val.renderBlockRefText(a,b);};S.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};S.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};S.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.WriteByte(10);}return 2;};S.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};S.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();if(!b&&!c.BaseRenderer.isLastNode(c.BaseRenderer.Tree.Root,a)){c.BaseRenderer.WriteByte(10);}}return 2;};S.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};S.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.HtmlEntityTokens);}return 2;};S.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};S.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};S.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(92);}return 2;};S.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};S.ptr.prototype.renderToC=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("[toc]\n\n");}return 2;};S.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};S.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("["+F.BytesToStr(a.Tokens)+"]");}return 2;};S.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};S.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};S.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;c=this;if(b){c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.NodeWriterStack=$append(c.NodeWriterStack,c.BaseRenderer.Writer);c.BaseRenderer.WriteString("["+F.BytesToStr(a.Tokens)+"]: ");}else{f=(d=c.NodeWriterStack,e=c.NodeWriterStack.$length-1>>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]));c.NodeWriterStack=$subslice(c.NodeWriterStack,0,(c.NodeWriterStack.$length-1>>0));g=f.String();h=D.Split(g,"\n");i=new G.Buffer.ptr(BX.nil,0,0);j=h;k=0;while(true){if(!(k=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);if(0===l){i.WriteString(m+"\n");}else{if(""===m){i.WriteString("\n");}else{i.WriteString(" "+m+"\n");}}k++;}(n=c.NodeWriterStack,o=c.NodeWriterStack.$length-1>>0,((o<0||o>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o])).Write(i.Bytes());c.BaseRenderer.Writer=(p=c.NodeWriterStack,q=c.NodeWriterStack.$length-1>>0,((q<0||q>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+q]));}return 2;};S.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};S.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};S.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};S.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};S.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};S.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e,f,g,h;c=this;d=a.TableCellContentMaxWidth-a.TableCellContentWidth>>0;if(b){c.BaseRenderer.WriteByte(124);c.BaseRenderer.WriteByte(32);e=a.TableCellAlign;if(e===(2)){c.BaseRenderer.Write(G.Repeat(new BX([32]),(f=d/2,(f===f&&f!==1/0&&f!==-1/0)?f>>0:$throwRuntimeError("integer divide by zero"))));}else if(e===(3)){c.BaseRenderer.Write(G.Repeat(new BX([32]),d));}}else{g=a.TableCellAlign;if(g===(2)){c.BaseRenderer.Write(G.Repeat(new BX([32]),(h=d/2,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero"))));}else if(g===(3)){}else{c.BaseRenderer.Write(G.Repeat(new BX([32]),d));}c.BaseRenderer.WriteByte(32);}return 2;};S.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};S.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(!b){c.BaseRenderer.WriteString("|\n");}return 2;};S.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};S.ptr.prototype.renderTableHead=function(a,b){var a,b,c,d,e,f,g,h,i,j,k;c=this;if(!b){d=a.FirstChild;e=d.FirstChild;while(true){if(!(!(BZ.nil===e))){break;}f=e.TableCellAlign;g=f;if(g===(0)){c.BaseRenderer.WriteString("| -");h=e.TableCellContentMaxWidth-1>>0;if(0>0;if(0>0;if(0>0;if(0=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]=$append((0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]),f));f=f.Next;}g=1;h=a.FirstChild.Next;while(true){if(!(!(BZ.nil===h))){break;}d=$append(d,new CD([]));i=h.FirstChild;while(true){if(!(!(BZ.nil===i))){break;}((g<0||g>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]=$append(((g<0||g>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+g]),i));i=i.Next;}g=g+(1)>>0;h=h.Next;}j=0;k=0;case 4:if(!(k<(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]).$length)){$s=5;continue;}l=0;case 6:if(!(l=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]).$length)){$s=7;continue;}m=[m];o=(n=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+k])).TokenLen();$s=8;case 8:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}(p=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+k])).TableCellContentWidth=o;if(c[0].BaseRenderer.Options.AutoSpace){$s=9;continue;}$s=10;continue;case 9:m[0]=0;$r=A.Walk((q=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+k])),(function(c,m){return function(r,s){var r,s;if(!s){return 2;}m[0]=m[0]+((c[0].BaseRenderer.Space(r.Tokens).$length-r.Tokens.$length>>0))>>0;return 2;};})(c,m));$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(s=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+k])).TableCellContentWidth=(r=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+k])).TableCellContentWidth+(m[0])>>0;case 10:if(j<(t=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=t.$length)?($throwRuntimeError("index out of range"),undefined):t.$array[t.$offset+k])).TableCellContentWidth){j=(u=((l<0||l>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+l]),((k<0||k>=u.$length)?($throwRuntimeError("index out of range"),undefined):u.$array[u.$offset+k])).TableCellContentWidth;}l=l+(1)>>0;$s=6;continue;case 7:v=0;while(true){if(!(v=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+v]).$length)){break;}(w=((v<0||v>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+v]),((k<0||k>=w.$length)?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+k])).TableCellContentMaxWidth=j;v=v+(1)>>0;}j=0;k=k+(1)>>0;$s=4;continue;case 5:$s=3;continue;case 2:c[0].BaseRenderer.Newline();if(!c[0].BaseRenderer.isLastNode(c[0].BaseRenderer.Tree.Root,a)){if(c[0].withoutKramdownBlockIAL(a)){c[0].BaseRenderer.WriteByte(10);}}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderTable};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};S.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};S.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};S.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(126);}return 2;};S.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};S.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(126);}return 2;};S.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};S.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("~~");}return 2;};S.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};S.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("~~");}return 2;};S.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};S.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(34);}return 2;};S.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};S.ptr.prototype.renderLinkDest=function(a,b){var a,b,c,d;c=this;if(b){d=a.Tokens;d=c.BaseRenderer.LinkPath(d);c.BaseRenderer.Write(d);}return 2;};S.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};S.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(32);}return 2;};S.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};S.ptr.prototype.renderLinkText=function(a,b){var a,b,c,d;c=this;if(b){d=BX.nil;if(c.BaseRenderer.Options.AutoSpace){d=c.BaseRenderer.Space(a.Tokens);}else{d=a.Tokens;}c.BaseRenderer.Write(d);}return 2;};S.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};S.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(41);}return 2;};S.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};S.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(40);}return 2;};S.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};S.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(125);}return 2;};S.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};S.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(123);}return 2;};S.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};S.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(93);}return 2;};S.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};S.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(91);}return 2;};S.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};S.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(33);}return 2;};S.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};S.ptr.prototype.renderImage=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderImage=function(a,b){return this.$val.renderImage(a,b);};S.ptr.prototype.renderLink=function(a,b){var a,b,c,d,e;c=this;if(b){c.BaseRenderer.LinkTextAutoSpacePrevious(a);if(3===a.LinkType){d=a.ChildByType(40).Tokens;if(G.Equal(d,a.LinkRefLabel)){c.BaseRenderer.WriteString("["+F.BytesToStr(d)+"]");}else{c.BaseRenderer.WriteString("["+F.BytesToStr(d)+"]["+F.BytesToStr(a.LinkRefLabel)+"]");}return 1;}if(1===a.LinkType){e=a.ChildByType(41).Tokens;c.BaseRenderer.Write(e);return 1;}}else{c.BaseRenderer.LinkTextAutoSpaceNext(a);}return 2;};S.prototype.renderLink=function(a,b){return this.$val.renderLink(a,b);};S.ptr.prototype.renderHTML=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Newline();d=a.Tokens;d=c.BaseRenderer.tagSrcPath(d);c.BaseRenderer.Write(d);c.BaseRenderer.Newline();if(!c.BaseRenderer.isLastNode(c.BaseRenderer.Tree.Root,a)){c.BaseRenderer.WriteByte(10);}}return 2;};S.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};S.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};S.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};S.ptr.prototype.renderDocument=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.NodeWriterStack=$append(c.NodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:c.NodeWriterStack=$subslice(c.NodeWriterStack,0,(c.NodeWriterStack.$length-1>>0));d=G.Trim(c.BaseRenderer.Writer.Bytes()," \t\n");$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;c.BaseRenderer.Writer.Reset();c.BaseRenderer.Write(e);c.BaseRenderer.WriteByte(10);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderDocument};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};S.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d,e,f,g,h,i;c=this;if(!b){if(!a.ParentIs(109,new CF([]))){if(c.withoutKramdownBlockIAL(a)){c.BaseRenderer.Newline();}}d=false;e=false;f=a.Parent;if(!(BZ.nil===f)){if(8===f.Type){g=f;if(!(BZ.nil===g.Parent)&&!(CG.nil===g.Parent.ListData)){d=g.Parent.ListData.Tight;h=g.Next;if(BZ.nil===h){i=a.Next;e=BZ.nil===i;}}else{d=true;}}}if((!d||(e))&&!a.ParentIs(109,new CF([]))){if(c.withoutKramdownBlockIAL(a)){c.BaseRenderer.WriteByte(10);}}}return 2;};S.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};S.ptr.prototype.renderText=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=BX.nil;if(c.BaseRenderer.Options.AutoSpace){d=c.BaseRenderer.Space(a.Tokens);}else{d=a.Tokens;}if(c.BaseRenderer.Options.FixTermTypo){$s=3;continue;}$s=4;continue;case 3:e=c.BaseRenderer.FixTermTypo(d);$s=5;case 5:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 4:if(BZ.nil===a.Previous&&!(BZ.nil===a.Parent.Parent)&&!(CG.nil===a.Parent.Parent.ListData)&&(3===a.Parent.Parent.ListData.Typ)){if(!G.HasPrefix(d,(new BX($stringToBytes(" "))))&&!((32===c.BaseRenderer.LastOut))){d=$appendSlice((new BX($stringToBytes(" "))),d);}}c.BaseRenderer.Write(d);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderText=function(a,b){return this.$val.renderText(a,b);};S.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(c.BaseRenderer.Options.AutoSpace){$s=4;continue;}$s=5;continue;case 4:d=a.PreviousNodeText();$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!(""===e)){f=J.DecodeLastRuneInString(e);g=f[0];if(I.IsLetter(g)||I.IsDigit(g)){c.BaseRenderer.WriteByte(32);}}case 5:$s=3;continue;case 2:if(c.BaseRenderer.Options.AutoSpace){$s=7;continue;}$s=8;continue;case 7:h=a.NextNodeText();$s=9;case 9:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;if(!(""===i)){j=J.DecodeRuneInString(i);k=j[0];if(I.IsLetter(k)||I.IsDigit(k)){c.BaseRenderer.WriteByte(32);}}case 8:case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderCodeSpan};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};S.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c,d,e,f;c=this;if(b){c.BaseRenderer.WriteByte(96);if(1"))),BX.nil);}c.BaseRenderer.Write(d);}return 2;};S.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};S.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c,d,e,f;c=this;if(b){if(1>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]));c.NodeWriterStack=$subslice(c.NodeWriterStack,0,(c.NodeWriterStack.$length-1>>0));g=new G.Buffer.ptr(BX.nil,0,0);h=f.Bytes();i=G.Split(h,new BX([10]));j=i.$length;if(2>0,((k<0||k>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+k])))&&C.IsBlank((l=j-2>>0,((l<0||l>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+l])))){i=$subslice(i,0,(j-1>>0));}if(1===c.NodeWriterStack.$length){j=i.$length;if(1>0,((m<0||m>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+m])))){i=$subslice(i,0,(j-1>>0));}}j=i.$length;n=i;o=0;case 4:if(!(o=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+o]);if(0===p.$length){g.WriteString(">\n");o++;$s=4;continue;}if(62===(0>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+0])){g.WriteString(">");}else{g.WriteString("> ");}g.Write(p);g.WriteByte(10);o++;$s=4;continue;case 5:q=G.TrimSpace(g.Bytes());$s=6;case 6:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}h=q;f.Reset();f.Write(h);(r=c.NodeWriterStack,s=c.NodeWriterStack.$length-1>>0,((s<0||s>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s])).Write(f.Bytes());c.BaseRenderer.Writer=(t=c.NodeWriterStack,u=c.NodeWriterStack.$length-1>>0,((u<0||u>=t.$length)?($throwRuntimeError("index out of range"),undefined):t.$array[t.$offset+u]));v=G.TrimSpace(c.BaseRenderer.Writer.Bytes());$s=7;case 7:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}h=v;c.BaseRenderer.Writer.Reset();c.BaseRenderer.Write(h);if(!a.ParentIs(109,new CF([]))){if(c.withoutKramdownBlockIAL(a)){c.BaseRenderer.WriteString("\n\n");}}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderBlockquote};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};S.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};S.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(!a.HeadingSetext){c.BaseRenderer.Write(G.Repeat(new BX([35]),a.HeadingLevel));c.BaseRenderer.WriteByte(32);}$s=3;continue;case 2:if(a.HeadingSetext){$s=4;continue;}$s=5;continue;case 4:c.BaseRenderer.WriteByte(10);d=c.BaseRenderer.setextHeadingLen(a);$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(1===a.HeadingLevel){c.BaseRenderer.WriteString(D.Repeat("=",e));}else if(2===a.HeadingLevel){c.BaseRenderer.WriteString(D.Repeat("-",e));}case 5:if(!a.ParentIs(109,new CF([]))){if(c.withoutKramdownBlockIAL(a)){c.BaseRenderer.Newline();c.BaseRenderer.WriteByte(10);}}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};S.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};S.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};S.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString(" {"+F.BytesToStr(a.Tokens)+"}");}return 2;};S.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};S.ptr.prototype.renderList=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.NodeWriterStack=$append(c.NodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:f=(d=c.NodeWriterStack,e=c.NodeWriterStack.$length-1>>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]));c.NodeWriterStack=$subslice(c.NodeWriterStack,0,(c.NodeWriterStack.$length-1>>0));(g=c.NodeWriterStack,h=c.NodeWriterStack.$length-1>>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h])).Write(f.Bytes());c.BaseRenderer.Writer=(i=c.NodeWriterStack,j=c.NodeWriterStack.$length-1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]));k=G.TrimSpace(c.BaseRenderer.Writer.Bytes());$s=4;case 4:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;c.BaseRenderer.Writer.Reset();c.BaseRenderer.Write(l);if(!a.ParentIs(109,new CF([]))){if(c.withoutKramdownBlockIAL(a)){c.BaseRenderer.WriteString("\n\n");}}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderList};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};S.ptr.prototype.renderListItem=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.NodeWriterStack=$append(c.NodeWriterStack,c.BaseRenderer.Writer);if(!(BZ.nil===a.Next)&&(455===a.Next.Type)){d=a.Next;c.BaseRenderer.Write(d.Tokens);}if(!(BZ.nil===a.FirstChild)&&(7===a.FirstChild.Type)){c.BaseRenderer.Newline();}$s=3;continue;case 2:g=(e=c.NodeWriterStack,f=c.NodeWriterStack.$length-1>>0,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));c.NodeWriterStack=$subslice(c.NodeWriterStack,0,(c.NodeWriterStack.$length-1>>0));h=a.ListData.Marker.$length+1>>0;if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){h=h+(1)>>0;}i=G.Repeat(new BX([32]),h);j=new G.Buffer.ptr(BX.nil,0,0);k=g.Bytes();l=G.Split(k,new BX([10]));m=l;n=0;case 4:if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(0===o.$length){j.WriteByte(10);n++;$s=4;continue;}j.Write(i);j.Write(o);j.WriteByte(10);n++;$s=4;continue;case 5:k=j.Bytes();if(h>0,((r<0||r>=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r])).Write(k);c.BaseRenderer.Writer=(s=c.NodeWriterStack,t=c.NodeWriterStack.$length-1>>0,((t<0||t>=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]));u=G.TrimSpace(c.BaseRenderer.Writer.Bytes());$s=6;case 6:if($c){$c=false;u=u.$blk();}if(u&&u.$blk!==undefined){break s;}k=u;c.BaseRenderer.Writer.Reset();c.BaseRenderer.Write(k);if(!a.ParentIs(109,new CF([]))){c.BaseRenderer.WriteString("\n");}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:S.ptr.prototype.renderListItem};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.$s=$s;$f.$r=$r;return $f;};S.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};S.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(91);if(a.TaskListItemChecked){c.BaseRenderer.WriteByte(88);}else{c.BaseRenderer.WriteByte(32);}c.BaseRenderer.WriteByte(93);}return 2;};S.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};S.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){if(a.ParentIs(109,new CF([]))){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("---\n\n");}}return 2;};S.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};S.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){if(!c.BaseRenderer.Options.SoftBreak2HardBreak){c.BaseRenderer.WriteString("\\\n");}else{if(a.ParentIs(109,new CF([]))){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteByte(10);}}}return 2;};S.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};S.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();}return 2;};S.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};S.ptr.prototype.withoutKramdownBlockIAL=function(a){var a,b;b=this;return!b.BaseRenderer.Options.KramdownBlockIAL||(0===a.KramdownIAL.$length);};S.prototype.withoutKramdownBlockIAL=function(a){return this.$val.withoutKramdownBlockIAL(a);};V=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new U.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=28;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeSpanOpenMarker")};i=29;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderCodeSpanContent")};j=30;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderCodeSpanCloseMarker")};k=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderCodeBlock")};l=12;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderCodeBlockOpenMarker")};m=14;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderCodeBlockInfoMarker")};n=15;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderCodeBlockCode")};o=13;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderCodeBlockCloseMarker")};p=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderMathBlock")};q=301;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderMathBlockOpenMarker")};r=302;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderMathBlockContent")};s=303;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderMathBlockCloseMarker")};t=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderInlineMath")};u=305;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineMathOpenMarker")};v=306;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderInlineMathContent")};w=307;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderInlineMathCloseMarker")};x=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderEmphasis")};y=18;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderEmAsteriskOpenMarker")};z=19;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderEmAsteriskCloseMarker")};aa=20;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderEmUnderscoreOpenMarker")};ab=21;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderEmUnderscoreCloseMarker")};ac=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderStrong")};ad=23;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderStrongA6kOpenMarker")};ae=24;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderStrongA6kCloseMarker")};af=25;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderStrongU8eOpenMarker")};ag=26;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderStrongU8eCloseMarker")};ah=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderBlockquote")};ai=6;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderBlockquoteMarker")};aj=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderHeading")};ak=3;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderHeadingC8hMarker")};al=420;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderHeadingID")};am=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderList")};an=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderListItem")};ao=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderThematicBreak")};ap=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderHardBreak")};aq=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSoftBreak")};ar=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderHTML")};as=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderInlineHTML")};at=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderLink")};au=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderImage")};av=35;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBang")};aw=36;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aw)]={k:aw,v:$methodVal(c,"renderOpenBracket")};ax=37;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ax)]={k:ax,v:$methodVal(c,"renderCloseBracket")};ay=38;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ay)]={k:ay,v:$methodVal(c,"renderOpenParen")};az=39;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(az)]={k:az,v:$methodVal(c,"renderCloseParen")};ba=466;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ba)]={k:ba,v:$methodVal(c,"renderOpenBrace")};bb=467;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bb)]={k:bb,v:$methodVal(c,"renderCloseBrace")};bc=40;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bc)]={k:bc,v:$methodVal(c,"renderLinkText")};bd=43;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bd)]={k:bd,v:$methodVal(c,"renderLinkSpace")};be=41;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(be)]={k:be,v:$methodVal(c,"renderLinkDest")};bf=42;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bf)]={k:bf,v:$methodVal(c,"renderLinkTitle")};bg=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bg)]={k:bg,v:$methodVal(c,"renderStrikethrough")};bh=102;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bh)]={k:bh,v:$methodVal(c,"renderStrikethrough1OpenMarker")};bi=103;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bi)]={k:bi,v:$methodVal(c,"renderStrikethrough1CloseMarker")};bj=104;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bj)]={k:bj,v:$methodVal(c,"renderStrikethrough2OpenMarker")};bk=105;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bk)]={k:bk,v:$methodVal(c,"renderStrikethrough2CloseMarker")};bl=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bl)]={k:bl,v:$methodVal(c,"renderTaskListItemMarker")};bm=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bm)]={k:bm,v:$methodVal(c,"renderTable")};bn=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bn)]={k:bn,v:$methodVal(c,"renderTableHead")};bo=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bo)]={k:bo,v:$methodVal(c,"renderTableRow")};bp=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bp)]={k:bp,v:$methodVal(c,"renderTableCell")};bq=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bq)]={k:bq,v:$methodVal(c,"renderEmoji")};br=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(br)]={k:br,v:$methodVal(c,"renderEmojiUnicode")};bs=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bs)]={k:bs,v:$methodVal(c,"renderEmojiImg")};bt=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bt)]={k:bt,v:$methodVal(c,"renderEmojiAlias")};bu=410;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bu)]={k:bu,v:$methodVal(c,"renderFootnotesDefBlock")};bv=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bv)]={k:bv,v:$methodVal(c,"renderFootnotesDef")};bw=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bw)]={k:bw,v:$methodVal(c,"renderFootnotesRef")};bx=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bx)]={k:bx,v:$methodVal(c,"renderToC")};by=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(by)]={k:by,v:$methodVal(c,"renderBackslash")};bz=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bz)]={k:bz,v:$methodVal(c,"renderBackslashContent")};ca=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ca)]={k:ca,v:$methodVal(c,"renderHtmlEntity")};cb=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cb)]={k:cb,v:$methodVal(c,"renderYamlFrontMatter")};cc=426;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cc)]={k:cc,v:$methodVal(c,"renderYamlFrontMatterOpenMarker")};cd=427;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cd)]={k:cd,v:$methodVal(c,"renderYamlFrontMatterContent")};ce=428;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ce)]={k:ce,v:$methodVal(c,"renderYamlFrontMatterCloseMarker")};cf=430;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cf)]={k:cf,v:$methodVal(c,"renderBlockRef")};cg=431;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cg)]={k:cg,v:$methodVal(c,"renderBlockRefID")};ch=432;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ch)]={k:ch,v:$methodVal(c,"renderBlockRefSpace")};ci=433;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ci)]={k:ci,v:$methodVal(c,"renderBlockRefText")};cj=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cj)]={k:cj,v:$methodVal(c,"renderMark")};ck=451;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ck)]={k:ck,v:$methodVal(c,"renderMark1OpenMarker")};cl=452;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cl)]={k:cl,v:$methodVal(c,"renderMark1CloseMarker")};cm=453;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cm)]={k:cm,v:$methodVal(c,"renderMark2OpenMarker")};cn=454;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cn)]={k:cn,v:$methodVal(c,"renderMark2CloseMarker")};co=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(co)]={k:co,v:$methodVal(c,"renderSup")};cp=486;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cp)]={k:cp,v:$methodVal(c,"renderSupOpenMarker")};cq=487;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cq)]={k:cq,v:$methodVal(c,"renderSupCloseMarker")};cr=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cr)]={k:cr,v:$methodVal(c,"renderSub")};cs=491;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cs)]={k:cs,v:$methodVal(c,"renderSubOpenMarker")};ct=492;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ct)]={k:ct,v:$methodVal(c,"renderSubCloseMarker")};cu=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cu)]={k:cu,v:$methodVal(c,"renderKramdownBlockIAL")};cv=456;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cv)]={k:cv,v:$methodVal(c,"renderKramdownSpanIAL")};cw=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cw)]={k:cw,v:$methodVal(c,"renderBlockQueryEmbed")};cx=468;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cx)]={k:cx,v:$methodVal(c,"renderBlockQueryEmbedScript")};cy=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cy)]={k:cy,v:$methodVal(c,"renderBlockEmbed")};cz=441;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cz)]={k:cz,v:$methodVal(c,"renderBlockEmbedID")};da=442;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(da)]={k:da,v:$methodVal(c,"renderBlockEmbedSpace")};db=443;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(db)]={k:db,v:$methodVal(c,"renderBlockEmbedText")};dc=460;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dc)]={k:dc,v:$methodVal(c,"renderTag")};dd=461;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dd)]={k:dd,v:$methodVal(c,"renderTagOpenMarker")};de=462;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(de)]={k:de,v:$methodVal(c,"renderTagCloseMarker")};df=45;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(df)]={k:df,v:$methodVal(c,"renderLinkRefDefBlock")};dg=46;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dg)]={k:dg,v:$methodVal(c,"renderLinkRefDef")};dh=475;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dh)]={k:dh,v:$methodVal(c,"renderSuperBlock")};di=476;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(di)]={k:di,v:$methodVal(c,"renderSuperBlockOpenMarker")};dj=477;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dj)]={k:dj,v:$methodVal(c,"renderSuperBlockLayoutMarker")};dk=478;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dk)]={k:dk,v:$methodVal(c,"renderSuperBlockCloseMarker")};dl=495;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dl)]={k:dl,v:$methodVal(c,"renderGitConflict")};dm=496;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dm)]={k:dm,v:$methodVal(c,"renderGitConflictOpenMarker")};dn=497;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dn)]={k:dn,v:$methodVal(c,"renderGitConflictContent")};dp=498;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dp)]={k:dp,v:$methodVal(c,"renderGitConflictCloseMarker")};return c;};$pkg.NewHtmlRenderer=V;U.ptr.prototype.Render=function(){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=BX.nil;b=this;c=b.BaseRenderer.Render();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}a=c;d=a;e=b.RenderFootnotes();$s=2;case 2:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;a=$appendSlice(d,f);$s=-1;return a;}return;}if($f===undefined){$f={$blk:U.ptr.prototype.Render};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.Render=function(){return this.$val.Render();};U.ptr.prototype.renderGitConflictCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Newline();}return 2;};U.prototype.renderGitConflictCloseMarker=function(a,b){return this.$val.renderGitConflictCloseMarker(a,b);};U.ptr.prototype.renderGitConflictContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Newline();}return 2;};U.prototype.renderGitConflictContent=function(a,b){return this.$val.renderGitConflictContent(a,b);};U.ptr.prototype.renderGitConflictOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Newline();}return 2;};U.prototype.renderGitConflictOpenMarker=function(a,b){return this.$val.renderGitConflictOpenMarker(a,b);};U.ptr.prototype.renderGitConflict=function(a,b){var a,b,c,d;c=this;c.BaseRenderer.Newline();if(b){d=new BY([new BW(["class","language-git-conflict"])]);c.handleKramdownBlockIAL(a);d=$appendSlice(d,a.KramdownIAL);c.BaseRenderer.Tag("div",d,false);}else{c.BaseRenderer.Tag("/div",BY.nil,false);}return 2;};U.prototype.renderGitConflict=function(a,b){return this.$val.renderGitConflict(a,b);};U.ptr.prototype.renderSuperBlock=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderSuperBlock=function(a,b){return this.$val.renderSuperBlock(a,b);};U.ptr.prototype.renderSuperBlockOpenMarker=function(a,b){var a,b,c;c=this;return 1;};U.prototype.renderSuperBlockOpenMarker=function(a,b){return this.$val.renderSuperBlockOpenMarker(a,b);};U.ptr.prototype.renderSuperBlockLayoutMarker=function(a,b){var a,b,c;c=this;return 1;};U.prototype.renderSuperBlockLayoutMarker=function(a,b){return this.$val.renderSuperBlockLayoutMarker(a,b);};U.ptr.prototype.renderSuperBlockCloseMarker=function(a,b){var a,b,c;c=this;return 1;};U.prototype.renderSuperBlockCloseMarker=function(a,b){return this.$val.renderSuperBlockCloseMarker(a,b);};U.ptr.prototype.renderLinkRefDefBlock=function(a,b){var a,b,c;c=this;return 1;};U.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};U.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c;c=this;return 1;};U.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};U.ptr.prototype.renderTag=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};U.prototype.renderTag=function(a,b){return this.$val.renderTag(a,b);};U.ptr.prototype.renderTagOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("em",a.Parent.KramdownIAL,false);c.BaseRenderer.WriteByte(35);}return 2;};U.prototype.renderTagOpenMarker=function(a,b){return this.$val.renderTagOpenMarker(a,b);};U.ptr.prototype.renderTagCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(35);c.BaseRenderer.Tag("/em",BY.nil,false);}return 2;};U.prototype.renderTagCloseMarker=function(a,b){return this.$val.renderTagCloseMarker(a,b);};U.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};U.ptr.prototype.renderKramdownSpanIAL=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderKramdownSpanIAL=function(a,b){return this.$val.renderKramdownSpanIAL(a,b);};U.ptr.prototype.renderMark=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};U.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};U.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("mark",a.Parent.KramdownIAL,false);}return 2;};U.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};U.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);}return 2;};U.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};U.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("mark",a.Parent.KramdownIAL,false);}return 2;};U.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};U.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);}return 2;};U.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};U.ptr.prototype.renderSup=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};U.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("sup",BY.nil,false);}return 2;};U.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};U.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sup",BY.nil,false);}return 2;};U.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};U.ptr.prototype.renderSub=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};U.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("sub",BY.nil,false);}return 2;};U.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};U.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sub",BY.nil,false);}return 2;};U.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};U.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();c.BaseRenderer.Tag("div",BY.nil,false);}else{c.BaseRenderer.Tag("/div",BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};U.ptr.prototype.renderBlockQueryEmbedScript=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(34);}return 2;};U.prototype.renderBlockQueryEmbedScript=function(a,b){return this.$val.renderBlockQueryEmbedScript(a,b);};U.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();c.handleKramdownBlockIAL(a);c.BaseRenderer.Tag("div",a.KramdownIAL,false);}else{c.BaseRenderer.Tag("/div",BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};U.ptr.prototype.renderBlockEmbedID=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockEmbedID=function(a,b){return this.$val.renderBlockEmbedID(a,b);};U.ptr.prototype.renderBlockEmbedSpace=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockEmbedSpace=function(a,b){return this.$val.renderBlockEmbedSpace(a,b);};U.ptr.prototype.renderBlockEmbedText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.WriteByte(34);}return 2;};U.prototype.renderBlockEmbedText=function(a,b){return this.$val.renderBlockEmbedText(a,b);};U.ptr.prototype.renderBlockRef=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockRef=function(a,b){return this.$val.renderBlockRef(a,b);};U.ptr.prototype.renderBlockRefID=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockRefID=function(a,b){return this.$val.renderBlockRefID(a,b);};U.ptr.prototype.renderBlockRefSpace=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockRefSpace=function(a,b){return this.$val.renderBlockRefSpace(a,b);};U.ptr.prototype.renderBlockRefText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(34);}else{c.BaseRenderer.WriteByte(34);}return 2;};U.prototype.renderBlockRefText=function(a,b){return this.$val.renderBlockRefText(a,b);};U.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}return 2;};U.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};U.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};U.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};U.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){d=new BY([new BW(["class","vditor-yml-front-matter"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("pre",d,false);c.BaseRenderer.WriteString("");}return 2;};U.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};U.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;c.BaseRenderer.Newline();return 2;};U.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};U.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};U.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};U.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};U.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};U.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};U.ptr.prototype.renderToC=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=c.BaseRenderer.renderToC(a,b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;}return;}if($f===undefined){$f={$blk:U.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};U.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:e=c.BaseRenderer.Tree.FindFootnotesDef(a.Tokens);$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=H.Itoa(f);c.BaseRenderer.Tag("sup",new BY([new BW(["class","footnotes-ref"]),new BW(["id","footnotes-ref-"+a.FootnotesRefId])]),false);c.BaseRenderer.Tag("a",new BY([new BW(["href","#footnotes-def-"+g])]),false);c.BaseRenderer.WriteString(g);c.BaseRenderer.Tag("/a",BY.nil,false);c.BaseRenderer.Tag("/sup",BY.nil,false);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:U.ptr.prototype.renderFootnotesRef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};U.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};U.ptr.prototype.RenderFootnotes=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;if(1>a.BaseRenderer.FootnotesDefs.$length){$s=-1;return BX.nil;}b=new G.Buffer.ptr(BX.nil,0,0);b.WriteString("
        ");b.WriteString("
        \n");b.WriteString("
          ");c=a.BaseRenderer.FootnotesDefs;d=0;case 1:if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);b.WriteString("
        1. >0)+"\">");g=new E.Tree.ptr(BZ.nil,a.BaseRenderer.Tree.Context,CI.nil,CJ.nil,"","","","",BW.nil,new $Int64(0,0),new $Int64(0,0),"");g.Context.Tree=g;g.Root=new A.Node.ptr("","","",0,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CD.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CG.nil,false,CK.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CD.nil,BX.nil,BY.nil);g.Root.AppendChild(f);h=V(g,a.BaseRenderer.Options);i=g.Root.LastDeepestChild();e=f.FootnotesRefs.$length-1>>0;while(true){if(!(0<=e)){break;}k=(j=f.FootnotesRefs,((e<0||e>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+e]));l=" \xE2\x86\xA9";m=new A.Node.ptr("","","",10,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CD.nil,F.StrToBytes(l),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CG.nil,false,CK.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CD.nil,BX.nil,BY.nil);i.InsertAfter(m);e=e-(1)>>0;}h.BaseRenderer.RenderingFootnotes=true;n=h.Render();$s=3;case 3:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;b.Write(o);b.WriteString("
        2. \n");d++;$s=1;continue;case 2:b.WriteString("
        ");$s=-1;return b.Bytes();}return;}if($f===undefined){$f={$blk:U.ptr.prototype.RenderFootnotes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.RenderFootnotes=function(){return this.$val.RenderFootnotes();};U.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,e,f,g;c=this;if(b){if(!c.BaseRenderer.RenderingFootnotes){d=false;e=c.BaseRenderer.FootnotesDefs;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(G.EqualFold(a.Tokens,g.Tokens)){d=true;break;}f++;}if(!d){c.BaseRenderer.FootnotesDefs=$append(c.BaseRenderer.FootnotesDefs,a);}return 1;}}return 2;};U.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};U.ptr.prototype.renderCodeBlockCloseMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCodeBlockCloseMarker=function(a,b){return this.$val.renderCodeBlockCloseMarker(a,b);};U.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};U.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};U.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};U.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};U.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};U.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};U.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};U.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};U.ptr.prototype.renderInlineMathCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};U.prototype.renderInlineMathCloseMarker=function(a,b){return this.$val.renderInlineMathCloseMarker(a,b);};U.ptr.prototype.renderInlineMathContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};U.prototype.renderInlineMathContent=function(a,b){return this.$val.renderInlineMathContent(a,b);};U.ptr.prototype.renderInlineMathOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){d=new BY([new BW(["class","language-math"])]);c.BaseRenderer.Tag("span",d,false);}return 2;};U.prototype.renderInlineMathOpenMarker=function(a,b){return this.$val.renderInlineMathOpenMarker(a,b);};U.ptr.prototype.renderInlineMath=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};U.ptr.prototype.renderMathBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/div",BY.nil,false);}return 2;};U.prototype.renderMathBlockCloseMarker=function(a,b){return this.$val.renderMathBlockCloseMarker(a,b);};U.ptr.prototype.renderMathBlockContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};U.prototype.renderMathBlockContent=function(a,b){return this.$val.renderMathBlockContent(a,b);};U.ptr.prototype.renderMathBlockOpenMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderMathBlockOpenMarker=function(a,b){return this.$val.renderMathBlockOpenMarker(a,b);};U.ptr.prototype.renderMathBlock=function(a,b){var a,b,c,d;c=this;c.BaseRenderer.Newline();if(b){d=new BY([new BW(["class","language-math"])]);c.handleKramdownBlockIAL(a);d=$appendSlice(d,a.KramdownIAL);c.BaseRenderer.Tag("div",d,false);}return 2;};U.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};U.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e,f;c=this;d="td";if(107===a.Parent.Parent.Type){d="th";}if(b){e=BY.nil;f=a.TableCellAlign;if(f===(1)){e=$append(e,new BW(["align","left"]));}else if(f===(2)){e=$append(e,new BW(["align","center"]));}else if(f===(3)){e=$append(e,new BW(["align","right"]));}c.BaseRenderer.Tag(d,e,false);}else{c.BaseRenderer.Tag("/"+d,BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};U.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("tr",BY.nil,false);c.BaseRenderer.Newline();}else{c.BaseRenderer.Tag("/tr",BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};U.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("thead",BY.nil,false);c.BaseRenderer.Newline();}else{c.BaseRenderer.Tag("/thead",BY.nil,false);c.BaseRenderer.Newline();if(!(BZ.nil===a.Next)){c.BaseRenderer.Tag("tbody",BY.nil,false);}c.BaseRenderer.Newline();}return 2;};U.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};U.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.handleKramdownBlockIAL(a);c.BaseRenderer.Tag("table",a.KramdownIAL,false);c.BaseRenderer.Newline();}else{if(!(BZ.nil===a.FirstChild.Next)){c.BaseRenderer.Tag("/tbody",BY.nil,false);}c.BaseRenderer.Newline();c.BaseRenderer.Tag("/table",BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};U.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.TextAutoSpacePrevious(a);}else{c.BaseRenderer.TextAutoSpaceNext(a);}return 2;};U.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};U.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("del",a.Parent.KramdownIAL,false);}return 2;};U.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};U.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/del",BY.nil,false);}return 2;};U.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};U.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("del",a.Parent.KramdownIAL,false);}return 2;};U.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};U.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/del",BY.nil,false);}return 2;};U.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};U.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};U.ptr.prototype.renderLinkDest=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};U.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};U.ptr.prototype.renderLinkText=function(a,b){var a,b,c,d;c=this;if(b){d=BX.nil;if(c.BaseRenderer.Options.AutoSpace){d=c.BaseRenderer.Space(a.Tokens);}else{d=a.Tokens;}c.BaseRenderer.Write(B.EscapeHTML(d));}return 2;};U.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};U.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};U.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};U.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};U.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};U.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};U.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};U.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};U.ptr.prototype.renderImage=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){if(0===c.BaseRenderer.DisableTags){d=a.IALAttr("parent-style");if(!(""===d)){c.BaseRenderer.Tag("span",new BY([new BW(["style",d])]),false);}c.BaseRenderer.WriteString("\"");}c.BaseRenderer.DisableTags=c.BaseRenderer.DisableTags+(1)>0;$s=-1;return 2;}c.BaseRenderer.DisableTags=c.BaseRenderer.DisableTags-(1)>>0;if(0===c.BaseRenderer.DisableTags){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.WriteByte(34);f=a.ChildByType(42);if(!(BZ.nil===f)&&!(BX.nil===f.Tokens)){c.BaseRenderer.WriteString(" title=\"");c.BaseRenderer.Write(B.EscapeHTML(f.Tokens));c.BaseRenderer.WriteByte(34);}g=c.BaseRenderer.NodeAttrsStr(a);if(!(""===g)){c.BaseRenderer.WriteString(" "+g);}c.BaseRenderer.WriteString(" />");h=a.IALAttr("parent-style");if(!(""===h)){c.BaseRenderer.Tag("/span",BY.nil,false);}if(c.BaseRenderer.Options.Sanitize){$s=3;continue;}$s=4;continue;case 3:i=c.BaseRenderer.Writer.Bytes();j=G.LastIndex(i,(new BX($stringToBytes("");c.BaseRenderer.Newline();}return 2;};U.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};U.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};U.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Newline();d=$substring(W,a.HeadingLevel,(a.HeadingLevel+1>>0));c.BaseRenderer.WriteString("=h.$length?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+0])),(1>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+1]))+"\"");}if(1=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]);c.BaseRenderer.WriteString(" "+(0>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0])+"=\""+(1>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+1])+"\"");k++;}}}}c.BaseRenderer.WriteString(">");$s=3;continue;case 2:if(c.BaseRenderer.Options.HeadingAnchor){$s=5;continue;}$s=6;continue;case 5:m=AP(a);$s=7;case 7:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=m;c.BaseRenderer.Tag("a",new BY([new BW(["id","vditorAnchor-"+n]),new BW(["class","vditor-anchor"]),new BW(["href","#"+n])]),false);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("/a",BY.nil,false);case 6:c.BaseRenderer.WriteString(">0))+">");c.BaseRenderer.Newline();case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:U.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.$s=$s;$f.$r=$r;return $f;};U.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};U.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};U.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;return 2;};U.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};U.ptr.prototype.renderList=function(a,b){var a,b,c,d,e,f;c=this;d="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){d="ol";}if(b){c.BaseRenderer.Newline();e=BY.nil;c.BaseRenderer.renderListStyle(a,(f||(f=new CL(function(){return e;},function($v){e=$subslice(new BY($v.$array),$v.$offset,$v.$offset+$v.$length);}))));if((0===a.ListData.BulletChar)&&!((1===a.ListData.Start))){e=$append(e,new BW(["start",H.Itoa(a.ListData.Start)]));}c.handleKramdownBlockIAL(a);e=$appendSlice(e,a.KramdownIAL);c.BaseRenderer.Tag(d,e,false);c.BaseRenderer.Newline();}else{c.BaseRenderer.Newline();c.BaseRenderer.Tag("/"+d,BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};U.ptr.prototype.renderListItem=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;c.handleKramdownBlockIAL(a);d=$appendSlice(d,a.KramdownIAL);if((3===a.ListData.Typ)&&!(""===c.BaseRenderer.Options.GFMTaskListItemClass)&&!(BZ.nil===a.FirstChild)&&(((100===a.FirstChild.Type))||(!(BZ.nil===a.FirstChild.FirstChild)&&(100===a.FirstChild.FirstChild.Type)))){d=$append(d,new BW(["class",c.BaseRenderer.Options.GFMTaskListItemClass]));}c.BaseRenderer.Tag("li",d,false);}else{c.BaseRenderer.Tag("/li",BY.nil,false);c.BaseRenderer.Newline();}return 2;};U.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};U.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;if(a.TaskListItemChecked){d=$append(d,new BW(["checked",""]));}d=$append(d,new BW(["disabled",""]),new BW(["type","checkbox"]));c.BaseRenderer.Tag("input",d,true);}return 2;};U.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};U.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Newline();c.BaseRenderer.Tag("hr",BY.nil,true);c.BaseRenderer.Newline();}return 2;};U.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};U.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("br",BY.nil,true);c.BaseRenderer.Newline();}return 2;};U.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};U.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){if(c.BaseRenderer.Options.SoftBreak2HardBreak){c.BaseRenderer.Tag("br",BY.nil,true);c.BaseRenderer.Newline();}else{c.BaseRenderer.Newline();}}return 2;};U.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};U.ptr.prototype.handleKramdownBlockIAL=function(a){var a,b,c,d;b=this;if(b.BaseRenderer.Options.KramdownBlockIAL&&!("id"===b.BaseRenderer.Options.KramdownIALIDRenderName)&&0=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])),(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]=b.BaseRenderer.Options.KramdownIALIDRenderName));}};U.prototype.handleKramdownBlockIAL=function(a){return this.$val.handleKramdownBlockIAL(a);};Y=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new X.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=28;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeSpanOpenMarker")};i=29;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderCodeSpanContent")};j=30;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderCodeSpanCloseMarker")};k=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderCodeBlock")};l=12;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderCodeBlockOpenMarker")};m=14;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderCodeBlockInfoMarker")};n=15;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderCodeBlockCode")};o=13;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderCodeBlockCloseMarker")};p=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderMathBlock")};q=301;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderMathBlockOpenMarker")};r=302;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderMathBlockContent")};s=303;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderMathBlockCloseMarker")};t=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderInlineMath")};u=305;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineMathOpenMarker")};v=306;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderInlineMathContent")};w=307;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderInlineMathCloseMarker")};x=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderEmphasis")};y=18;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderEmAsteriskOpenMarker")};z=19;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderEmAsteriskCloseMarker")};aa=20;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderEmUnderscoreOpenMarker")};ab=21;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderEmUnderscoreCloseMarker")};ac=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderStrong")};ad=23;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderStrongA6kOpenMarker")};ae=24;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderStrongA6kCloseMarker")};af=25;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderStrongU8eOpenMarker")};ag=26;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderStrongU8eCloseMarker")};ah=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderBlockquote")};ai=6;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderBlockquoteMarker")};aj=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderHeading")};ak=3;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderHeadingC8hMarker")};al=420;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderHeadingID")};am=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderList")};an=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderListItem")};ao=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderThematicBreak")};ap=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderHardBreak")};aq=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSoftBreak")};ar=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderHTML")};as=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderInlineHTML")};at=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderLink")};au=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderImage")};av=35;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBang")};aw=36;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aw)]={k:aw,v:$methodVal(c,"renderOpenBracket")};ax=37;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ax)]={k:ax,v:$methodVal(c,"renderCloseBracket")};ay=38;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ay)]={k:ay,v:$methodVal(c,"renderOpenParen")};az=39;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(az)]={k:az,v:$methodVal(c,"renderCloseParen")};ba=466;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ba)]={k:ba,v:$methodVal(c,"renderOpenBrace")};bb=467;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bb)]={k:bb,v:$methodVal(c,"renderCloseBrace")};bc=40;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bc)]={k:bc,v:$methodVal(c,"renderLinkText")};bd=43;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bd)]={k:bd,v:$methodVal(c,"renderLinkSpace")};be=41;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(be)]={k:be,v:$methodVal(c,"renderLinkDest")};bf=42;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bf)]={k:bf,v:$methodVal(c,"renderLinkTitle")};bg=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bg)]={k:bg,v:$methodVal(c,"renderStrikethrough")};bh=102;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bh)]={k:bh,v:$methodVal(c,"renderStrikethrough1OpenMarker")};bi=103;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bi)]={k:bi,v:$methodVal(c,"renderStrikethrough1CloseMarker")};bj=104;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bj)]={k:bj,v:$methodVal(c,"renderStrikethrough2OpenMarker")};bk=105;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bk)]={k:bk,v:$methodVal(c,"renderStrikethrough2CloseMarker")};bl=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bl)]={k:bl,v:$methodVal(c,"renderTaskListItemMarker")};bm=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bm)]={k:bm,v:$methodVal(c,"renderTable")};bn=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bn)]={k:bn,v:$methodVal(c,"renderTableHead")};bo=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bo)]={k:bo,v:$methodVal(c,"renderTableRow")};bp=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bp)]={k:bp,v:$methodVal(c,"renderTableCell")};bq=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bq)]={k:bq,v:$methodVal(c,"renderEmoji")};br=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(br)]={k:br,v:$methodVal(c,"renderEmojiUnicode")};bs=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bs)]={k:bs,v:$methodVal(c,"renderEmojiImg")};bt=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bt)]={k:bt,v:$methodVal(c,"renderEmojiAlias")};bu=410;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bu)]={k:bu,v:$methodVal(c,"renderFootnotesDefBlock")};bv=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bv)]={k:bv,v:$methodVal(c,"renderFootnotesDef")};bw=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bw)]={k:bw,v:$methodVal(c,"renderFootnotesRef")};bx=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bx)]={k:bx,v:$methodVal(c,"renderToC")};by=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(by)]={k:by,v:$methodVal(c,"renderBackslash")};bz=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bz)]={k:bz,v:$methodVal(c,"renderBackslashContent")};ca=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ca)]={k:ca,v:$methodVal(c,"renderHtmlEntity")};cb=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cb)]={k:cb,v:$methodVal(c,"renderYamlFrontMatter")};cc=426;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cc)]={k:cc,v:$methodVal($clone(c,X),"renderYamlFrontMatterOpenMarker")};cd=427;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cd)]={k:cd,v:$methodVal($clone(c,X),"renderYamlFrontMatterContent")};ce=428;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ce)]={k:ce,v:$methodVal($clone(c,X),"renderYamlFrontMatterCloseMarker")};cf=430;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cf)]={k:cf,v:$methodVal(c,"renderBlockRef")};cg=431;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cg)]={k:cg,v:$methodVal(c,"renderBlockRefID")};ch=432;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ch)]={k:ch,v:$methodVal(c,"renderBlockRefSpace")};ci=433;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ci)]={k:ci,v:$methodVal(c,"renderBlockRefText")};cj=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cj)]={k:cj,v:$methodVal(c,"renderMark")};ck=451;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ck)]={k:ck,v:$methodVal(c,"renderMark1OpenMarker")};cl=452;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cl)]={k:cl,v:$methodVal(c,"renderMark1CloseMarker")};cm=453;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cm)]={k:cm,v:$methodVal(c,"renderMark2OpenMarker")};cn=454;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cn)]={k:cn,v:$methodVal(c,"renderMark2CloseMarker")};co=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(co)]={k:co,v:$methodVal(c,"renderSup")};cp=486;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cp)]={k:cp,v:$methodVal(c,"renderSupOpenMarker")};cq=487;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cq)]={k:cq,v:$methodVal(c,"renderSupCloseMarker")};cr=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cr)]={k:cr,v:$methodVal(c,"renderSub")};cs=491;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cs)]={k:cs,v:$methodVal(c,"renderSubOpenMarker")};ct=492;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ct)]={k:ct,v:$methodVal(c,"renderSubCloseMarker")};cu=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cu)]={k:cu,v:$methodVal(c,"renderKramdownBlockIAL")};cv=456;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cv)]={k:cv,v:$methodVal(c,"renderKramdownSpanIAL")};cw=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cw)]={k:cw,v:$methodVal(c,"renderBlockQueryEmbed")};cx=468;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cx)]={k:cx,v:$methodVal(c,"renderBlockQueryEmbedScript")};cy=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cy)]={k:cy,v:$methodVal(c,"renderBlockEmbed")};cz=441;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cz)]={k:cz,v:$methodVal(c,"renderBlockEmbedID")};da=442;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(da)]={k:da,v:$methodVal(c,"renderBlockEmbedSpace")};db=443;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(db)]={k:db,v:$methodVal(c,"renderBlockEmbedText")};dc=460;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dc)]={k:dc,v:$methodVal(c,"renderTag")};dd=461;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dd)]={k:dd,v:$methodVal(c,"renderTagOpenMarker")};de=462;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(de)]={k:de,v:$methodVal(c,"renderTagCloseMarker")};df=45;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(df)]={k:df,v:$methodVal(c,"renderLinkRefDefBlock")};dg=46;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dg)]={k:dg,v:$methodVal(c,"renderLinkRefDef")};dh=475;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dh)]={k:dh,v:$methodVal(c,"renderSuperBlock")};di=476;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(di)]={k:di,v:$methodVal(c,"renderSuperBlockOpenMarker")};dj=477;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dj)]={k:dj,v:$methodVal(c,"renderSuperBlockLayoutMarker")};dk=478;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dk)]={k:dk,v:$methodVal(c,"renderSuperBlockCloseMarker")};c.BaseRenderer.DefaultRendererFunc=$methodVal(c,"renderDefault");return c;};$pkg.NewJSONRenderer=Y;Z=function(a){var a,b;b=a.Type;if((b===(12))||(b===(18))||(b===(20))||(b===(23))||(b===(25))||(b===(28))||(b===(102))||(b===(104))||(b===(301))||(b===(305))||(b===(426))||(b===(451))||(b===(453))||(b===(461))||(b===(486))||(b===(491))){return true;}return false;};AA=function(a){var a,b;b=a.Type;if((b===(13))||(b===(19))||(b===(21))||(b===(24))||(b===(26))||(b===(30))||(b===(103))||(b===(105))||(b===(303))||(b===(307))||(b===(428))||(b===(452))||(b===(454))||(b===(462))||(b===(487))||(b===(492))){return true;}return false;};X.ptr.prototype.renderDocument=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(91);}else{c.BaseRenderer.WriteByte(93);}return 2;};X.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};X.ptr.prototype.renderParagraph=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};X.ptr.prototype.renderText=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val(a.Type,F.BytesToStr(a.Tokens));}else{c.closeObj(a);}return 1;};X.prototype.renderText=function(a,b){return this.$val.renderText(a,b);};X.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};X.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeSpanOpenMarker=function(a,b){return this.$val.renderCodeSpanOpenMarker(a,b);};X.ptr.prototype.renderCodeSpanContent=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val(27,F.BytesToStr(a.Tokens));c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};X.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeSpanCloseMarker=function(a,b){return this.$val.renderCodeSpanCloseMarker(a,b);};X.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};X.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};X.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};X.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d="";if(0=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]));}if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();f=a.Tokens;if(0>0));c.val(a.Type,d);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};X.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};X.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};X.ptr.prototype.renderList=function(a,b){var a,b,c,d;c=this;if(b){c.openObj();d="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){d="ol";}c.val(a.Type,d);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};X.ptr.prototype.renderListItem=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};X.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf(a.Type,"hr",a);}return 1;};X.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};X.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf(a.Type,"br",a);}return 1;};X.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};X.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.leaf(a.Type,"\n",a);}return 1;};X.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};X.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();d=a.Tokens;if(c.BaseRenderer.Options.Sanitize){$s=4;continue;}$s=5;continue;case 4:e=AY(d);$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 5:c.val(a.Type,F.BytesToStr(d));c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:X.ptr.prototype.renderInlineHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};X.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};X.ptr.prototype.renderLink=function(a,b){var a,b,c,d,e;c=this;if(b){c.openObj();d=a.ChildByType(41);e=d.Tokens;e=c.BaseRenderer.LinkPath(e);c.val(a.Type,F.BytesToStr(e));}else{c.closeObj(a);}return 2;};X.prototype.renderLink=function(a,b){return this.$val.renderLink(a,b);};X.ptr.prototype.renderImage=function(a,b){var a,b,c,d;c=this;if(b){c.openObj();d=a.ChildByType(41).Tokens;d=c.BaseRenderer.LinkPath(d);c.val(a.Type,F.BytesToStr(d));}else{c.closeObj(a);}return 2;};X.prototype.renderImage=function(a,b){return this.$val.renderImage(a,b);};X.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};X.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};X.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};X.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};X.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};X.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};X.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};X.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};X.ptr.prototype.renderLinkDest=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};X.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};X.ptr.prototype.renderLinkText=function(a,b){var a,b,c,d;c=this;if(b){d=BX.nil;if(c.BaseRenderer.Options.AutoSpace){d=c.BaseRenderer.Space(a.Tokens);}else{d=a.Tokens;}c.BaseRenderer.WriteString(",\"title\":\""+F.BytesToStr(d)+"\"");}return 2;};X.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};X.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};X.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};X.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};X.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};X.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};X.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c,d;c=this;if(b){c.openObj();d="false";if(a.TaskListItemChecked){d="true";}c.val(a.Type,d);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};X.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e;c=this;if(b){d="";e=a.TableCellAlign;if(e===(1)){d="left";}else if(e===(2)){d="center";}else if(e===(3)){d="right";}else{d="left";}c.openObj();c.val(a.Type,d);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};X.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};X.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};X.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};X.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.leaf(a.Type,F.BytesToStr(a.Tokens),a);}return 1;};X.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};X.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.leaf(a.Type,F.BytesToStr(a.Tokens),a);}return 1;};X.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};X.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};X.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};X.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};X.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};X.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};X.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val(a.Type,F.BytesToStr(a.Tokens));c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};X.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;if(b){c.openObj();}else{c.closeObj(a);}return 2;};X.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};X.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};X.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c;c=this;if(b){c.val(425,F.BytesToStr(a.Tokens));}return 1;};X.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};X.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};X.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val(400,F.BytesToStr(a.Tokens));}else{c.closeObj(a);}return 2;};X.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};X.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};X.ptr.prototype.renderToC=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};X.ptr.prototype.renderMark=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};X.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};X.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};X.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};X.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};X.ptr.prototype.renderSup=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};X.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};X.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};X.ptr.prototype.renderSub=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};X.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};X.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};X.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};X.ptr.prototype.renderKramdownSpanIAL=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderKramdownSpanIAL=function(a,b){return this.$val.renderKramdownSpanIAL(a,b);};X.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};X.ptr.prototype.renderBlockQueryEmbedScript=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.val(465,F.BytesToStr(a.Tokens));}else{c.closeObj(a);}return 2;};X.prototype.renderBlockQueryEmbedScript=function(a,b){return this.$val.renderBlockQueryEmbedScript(a,b);};X.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c;c=this;if(b){c.openObj();}else{c.closeObj(a);}return 2;};X.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};X.ptr.prototype.renderBlockEmbedID=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBlockEmbedID=function(a,b){return this.$val.renderBlockEmbedID(a,b);};X.ptr.prototype.renderBlockEmbedSpace=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBlockEmbedSpace=function(a,b){return this.$val.renderBlockEmbedSpace(a,b);};X.ptr.prototype.renderBlockEmbedText=function(a,b){var a,b,c;c=this;if(b){c.val(440,F.BytesToStr(a.Tokens));}return 2;};X.prototype.renderBlockEmbedText=function(a,b){return this.$val.renderBlockEmbedText(a,b);};X.ptr.prototype.renderTag=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);c.openChildren(a);}else{c.closeChildren(a);c.closeObj(a);}return 2;};X.prototype.renderTag=function(a,b){return this.$val.renderTag(a,b);};X.ptr.prototype.renderTagOpenMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderTagOpenMarker=function(a,b){return this.$val.renderTagOpenMarker(a,b);};X.ptr.prototype.renderTagCloseMarker=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderTagCloseMarker=function(a,b){return this.$val.renderTagCloseMarker(a,b);};X.ptr.prototype.renderSuperBlock=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderSuperBlock=function(a,b){return this.$val.renderSuperBlock(a,b);};X.ptr.prototype.renderSuperBlockOpenMarker=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderSuperBlockOpenMarker=function(a,b){return this.$val.renderSuperBlockOpenMarker(a,b);};X.ptr.prototype.renderSuperBlockLayoutMarker=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderSuperBlockLayoutMarker=function(a,b){return this.$val.renderSuperBlockLayoutMarker(a,b);};X.ptr.prototype.renderSuperBlockCloseMarker=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderSuperBlockCloseMarker=function(a,b){return this.$val.renderSuperBlockCloseMarker(a,b);};X.ptr.prototype.renderLinkRefDefBlock=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};X.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c;c=this;return 1;};X.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};X.ptr.prototype.renderBlockRef=function(a,b){var a,b,c;c=this;if(b){c.openObj();c.flag(a);}else{c.closeObj(a);}return 2;};X.prototype.renderBlockRef=function(a,b){return this.$val.renderBlockRef(a,b);};X.ptr.prototype.renderBlockRefID=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBlockRefID=function(a,b){return this.$val.renderBlockRefID(a,b);};X.ptr.prototype.renderBlockRefSpace=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderBlockRefSpace=function(a,b){return this.$val.renderBlockRefSpace(a,b);};X.ptr.prototype.renderBlockRefText=function(a,b){var a,b,c;c=this;if(b){c.openChildren(a);}else{c.closeChildren(a);}return 2;};X.prototype.renderBlockRefText=function(a,b){return this.$val.renderBlockRefText(a,b);};X.ptr.prototype.renderDefault=function(a,b){var a,b,c;c=this;return 2;};X.prototype.renderDefault=function(a,b){return this.$val.renderDefault(a,b);};X.ptr.prototype.renderHTML=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();d=a.Tokens;if(c.BaseRenderer.Options.Sanitize){$s=4;continue;}$s=5;continue;case 4:e=AY(d);$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 5:c.val(a.Type,F.BytesToStr(d));$s=3;continue;case 2:c.closeObj(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:X.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};X.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};X.ptr.prototype.leaf=function(a,b,c){var a,b,c,d;d=this;d.openObj();d.val(a,b);d.closeObj(c);};X.prototype.leaf=function(a,b,c){return this.$val.leaf(a,b,c);};X.ptr.prototype.val=function(a,b){var a,b,c;c=this;b=D.ReplaceAll(b,"\\","\\\\");b=D.ReplaceAll(b,"\n","\\n");b=D.ReplaceAll(b,"\"","\\\"");b=D.ReplaceAll(b,"'","\\'");c.BaseRenderer.WriteString("\"type\":\""+$substring(new A.NodeType(a).String(),4)+"\""+",");c.BaseRenderer.WriteString("\"value\":\""+b+"\"");};X.prototype.val=function(a,b){return this.$val.val(a,b);};X.ptr.prototype.language=function(a,b,c){var a,b,c,d;d=this;b=D.ReplaceAll(b,"\\","\\\\");b=D.ReplaceAll(b,"\n","\\n");b=D.ReplaceAll(b,"\"","\\\"");b=D.ReplaceAll(b,"'","\\'");d.BaseRenderer.WriteString("\"type\":\""+$substring(new A.NodeType(a).String(),4)+"\""+",");d.BaseRenderer.WriteString("\"value\":\""+b+"\"");d.BaseRenderer.WriteString(",\"language\":\""+c+"\"");};X.prototype.language=function(a,b,c){return this.$val.language(a,b,c);};X.ptr.prototype.mindMap=function(a){var a,b;b=this;b.BaseRenderer.WriteString(",\"mindmap\":\""+a+"\"");};X.prototype.mindMap=function(a){return this.$val.mindMap(a);};X.ptr.prototype.flag=function(a){var a,b;b=this;b.BaseRenderer.WriteString("\"flag\":\""+$substring(new A.NodeType(a.Type).String(),4)+"\"");};X.prototype.flag=function(a){return this.$val.flag(a);};X.ptr.prototype.openObj=function(){var a;a=this;a.BaseRenderer.WriteByte(123);};X.prototype.openObj=function(){return this.$val.openObj();};X.ptr.prototype.closeObj=function(a){var a,b;b=this;b.BaseRenderer.WriteByte(125);if(!b.ignore(a.Next)){b.comma();}};X.prototype.closeObj=function(a){return this.$val.closeObj(a);};X.ptr.prototype.openChildren=function(a){var a,b;b=this;if(!(BZ.nil===a.FirstChild)){b.BaseRenderer.WriteString(",\"children\":[");}};X.prototype.openChildren=function(a){return this.$val.openChildren(a);};X.ptr.prototype.closeChildren=function(a){var a,b;b=this;if(!(BZ.nil===a.FirstChild)){b.BaseRenderer.WriteByte(93);}};X.prototype.closeChildren=function(a){return this.$val.closeChildren(a);};X.ptr.prototype.comma=function(){var a;a=this;a.BaseRenderer.WriteString(",");};X.prototype.comma=function(){return this.$val.comma();};X.ptr.prototype.ignore=function(a){var a,b;b=this;return BZ.nil===a||Z(a)||AA(a);};X.prototype.ignore=function(a){return this.$val.ignore(a);};AD=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;c=new AC.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderCodeBlock")};g=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderMathBlock")};h=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderBlockquote")};i=475;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderSuperBlock")};j=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderHeading")};k=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderList")};l=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderListItem")};m=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderThematicBreak")};n=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderHTML")};o=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderTable")};p=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderToC")};q=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderYamlFrontMatter")};r=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderBlockEmbed")};s=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderBlockQueryEmbed")};t=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderKramdownBlockIAL")};c.BaseRenderer.DefaultRendererFunc=$methodVal(c,"renderDefault");return c;};$pkg.NewKityMinderJSONRenderer=AD;AC.ptr.prototype.renderDefault=function(a,b){var a,b,c;c=this;return 2;};AC.prototype.renderDefault=function(a,b){return this.$val.renderDefault(a,b);};AC.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderBlockQueryEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};AC.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderBlockEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};AC.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderYamlFrontMatter};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};AC.ptr.prototype.renderToC=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};AC.ptr.prototype.renderMathBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderMathBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};AC.ptr.prototype.renderTable=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderTable};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};AC.ptr.prototype.renderHTML=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};AC.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=a.Parent.Parent;if(!(BZ.nil===d)&&(7===d.Type)&&d.ListData.Tight){if(a.Parent.FirstChild===a&&a.Parent.LastChild===a){$s=-1;return 2;}}if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderParagraph};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};AC.ptr.prototype.renderBlockquote=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderBlockquote};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};AC.ptr.prototype.renderSuperBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderSuperBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderSuperBlock=function(a,b){return this.$val.renderSuperBlock(a,b);};AC.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);d=a.FirstChild;while(true){if(!(!(BZ.nil===d))){break;}d.Unlink();d=d.Next;}e=AE(a);f=e;g=0;while(true){if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);a.AppendChild(h);g++;}$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};AC.ptr.prototype.renderList=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderList};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};AC.ptr.prototype.renderListItem=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderListItem};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};AC.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderThematicBreak};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};AC.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.comma(a);case 3:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderCodeBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};AC.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 1;};AC.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};AC.ptr.prototype.renderDocument=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.WriteByte(123);c.BaseRenderer.WriteString("\"root\":");c.openObj();$r=c.data(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.openChildren(a);$s=3;continue;case 2:c.closeChildren(a);c.closeObj();c.BaseRenderer.WriteByte(125);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AC.ptr.prototype.renderDocument};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AC.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};AC.ptr.prototype.data=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;c.BaseRenderer.WriteString("\"data\":");c.openObj();d="";e=a.Type;if(e===(0)){$s=2;continue;}if(e===(7)){$s=3;continue;}if(e===(5)){$s=4;continue;}if(e===(475)){$s=5;continue;}$s=6;continue;case 2:d=c.BaseRenderer.Tree.Name;$s=7;continue;case 3:if(0===a.ListData.Typ){c.BaseRenderer.WriteString("\"priority\": \"iconList\",");}else if(1===a.ListData.Typ){c.BaseRenderer.WriteString("\"priority\": \"iconOrderedList\",");}else{c.BaseRenderer.WriteString("\"priority\": \"iconCheck\",");}$s=7;continue;case 4:c.BaseRenderer.WriteString("\"priority\": \"iconQuote\",");$s=7;continue;case 5:c.BaseRenderer.WriteString("\"priority\": \"iconSuper\",");$s=7;continue;case 6:b[0]=new G.Buffer.ptr(BX.nil,0,0);$r=A.Walk(a,(function(b){return function $b(f,g){var f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!g){$s=-1;return 2;}if(460===f.Type){$s=1;continue;}$s=2;continue;case 1:h=f.Text();$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=b[0].WriteString("#"+h+"#");$s=4;case 4:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=-1;return 1;case 2:if((16===f.Type)||(40===f.Type)||(433===f.Type)||(443===f.Type)||(29===f.Type)||(15===f.Type)||(42===f.Type)||(302===f.Type)||(306===f.Type)||(427===f.Type)){b[0].Write(f.Tokens);}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:$b};}$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};})(b));$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=b[0].String();case 7:case 1:f=D.NewReplacer(new BW(["\\","","\n","","\"","","\t","","'",""]));g=f.Replace(d);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}d=g;d=D.ReplaceAll(d,"'","");if(16=e.HeadingLevel){break;}}if(455===e.Type){if(!G.Contains(e.Tokens,(new BX($stringToBytes("type=\"doc\""))))){b=$append(b,e);}}else{b=$append(b,e);}e=e.Next;}return b;};AM.ptr.prototype.LinkPath=function(a){var a,b;b=this;a=b.RelativePath(a);a=b.PrefixPath(a);return a;};AM.prototype.LinkPath=function(a){return this.$val.LinkPath(a);};AM.ptr.prototype.PrefixPath=function(a){var a,b,c,d;b=this;if(""===b.Options.LinkPrefix){return a;}c=F.StrToBytes(b.Options.LinkPrefix);d=$appendSlice(c,a);return d;};AM.prototype.PrefixPath=function(a){return this.$val.PrefixPath(a);};AM.ptr.prototype.RelativePath=function(a){var a,b,c,d;b=this;if(""===b.Options.LinkBase){return a;}a=G.ReplaceAll(a,(new BX($stringToBytes("%5C"))),(new BX($stringToBytes("\\"))));if(!b.isRelativePath(a)){return a;}c=F.StrToBytes(b.Options.LinkBase);if(!G.HasSuffix(c,(new BX($stringToBytes("/"))))){c=$appendSlice(c,(new BX($stringToBytes("/"))));}d=$appendSlice(c,a);if(G.Equal(c,d)){return(new BX($stringToBytes("")));}return d;};AM.prototype.RelativePath=function(a){return this.$val.RelativePath(a);};AM.ptr.prototype.isRelativePath=function(a){var a,b;b=this;if(1>a.$length){return true;}if(47===(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0])){return false;}return!G.Contains(a,(new BX($stringToBytes(":/"))))&&!G.Contains(a,(new BX($stringToBytes(":\\"))));};AM.prototype.isRelativePath=function(a){return this.$val.isRelativePath(a);};AM.ptr.prototype.RenderMindmap=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;a=G.ReplaceAll(a,F.CaretTokens,BX.nil);d=E.Parse("",a,E.NewOptions());$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(BZ.nil===e.Root.FirstChild||!((7===e.Root.FirstChild.Type))){$s=-1;return(new BX($stringToBytes("{}")));}f=CD.nil;g=e.Root.FirstChild;while(true){if(!(!(BZ.nil===g))){break;}if(!((7===g.Type))){f=$append(f,g);}g=g.Next;}h=f;i=0;while(true){if(!(i=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]);j.Unlink();i++;}b[0]=new G.Buffer.ptr(BX.nil,0,0);$r=A.Walk(e.Root,(function(b){return function $b(k,l){var k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:m=k.Type;if(m===(0)){$s=2;continue;}if(m===(7)){$s=3;continue;}if(m===(8)){$s=4;continue;}$s=5;continue;case 2:if(l){if(AG(k)){b[0].WriteString("{\"name\": \"Root\", \"children\": [");}}else{if(AG(k)){b[0].WriteString("]}");}}$s=-1;return 2;case 3:$s=-1;return 2;case 4:n=!(BZ.nil===k.ChildByType(7));if(l){$s=7;continue;}$s=8;continue;case 7:o=AF(k.FirstChild);$s=10;case 10:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=b[0].WriteString("{\"name\": \""+o+"\"");$s=11;case 11:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}p;if(n){b[0].WriteString(", \"children\": [");}$s=9;continue;case 8:if(n){b[0].WriteString("]");}b[0].WriteString("}");if(!(BZ.nil===k.Next)||!(BZ.nil===k.Parent.Next)){b[0].WriteString(", ");}case 9:$s=6;continue;case 5:$s=-1;return 2;case 6:case 1:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:$b};}$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};})(b));$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return B.EncodeDestination(b[0].Bytes());}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.RenderMindmap};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.RenderMindmap=function(a){return this.$val.RenderMindmap(a);};AF=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c="";if(BZ.nil===a){c="";$s=-1;return c;}b[0]=new G.Buffer.ptr(BX.nil,0,0);$r=A.Walk(a,(function(b){return function(d,e){var d,e;if((7===d.Type)||(8===d.Type)){return 2;}if(((16===d.Type)||(40===d.Type))&&e){b[0].Write(d.Tokens);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();c=D.ReplaceAll(c,"\\","\\\\");c=D.ReplaceAll(c,"\"","\\\"");c=D.ReplaceAll(c,"\xE2\x80\xB8","");$s=-1;return c;}return;}if($f===undefined){$f={$blk:AF};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AG=function(a){var a,b,c,d;b=0;c=a.FirstChild;while(true){if(!(!(BZ.nil===c))){break;}if(7===c.Type){b=b+(1)>>0;}c=c.Next;}if(1>0;}d=d.Next;}if(1>0,((d<0||d>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+d]));}};AM.prototype.Write=function(a){return this.$val.Write(a);};AM.ptr.prototype.WriteString=function(a){var a,b,c;b=this;c=a.length;if(0>0));}};AM.prototype.WriteString=function(a){return this.$val.WriteString(a);};AM.ptr.prototype.Newline=function(){var a;a=this;if(!((10===a.LastOut))){a.Writer.WriteByte(10);a.LastOut=10;}};AM.prototype.Newline=function(){return this.$val.Newline();};AM.ptr.prototype.TextAutoSpacePrevious=function(a){var a,b,c,d,e,f,g,h;b=this;if(!b.Options.AutoSpace){return;}c=a.ChildByType(16);if(!(BZ.nil===c)&&!(BX.nil===c.Tokens)){d=a.Previous;if(!(BZ.nil===d)&&(16===d.Type)){e=J.DecodeLastRune(d.Tokens);f=e[0];g=J.DecodeRune(c.Tokens);h=g[0];if(BG(f,h)){b.Writer.WriteByte(32);}}}};AM.prototype.TextAutoSpacePrevious=function(a){return this.$val.TextAutoSpacePrevious(a);};AM.ptr.prototype.TextAutoSpaceNext=function(a){var a,b,c,d,e,f,g,h;b=this;if(!b.Options.AutoSpace){return;}c=a.ChildByType(16);if(!(BZ.nil===c)&&!(BX.nil===c.Tokens)){d=a.Next;if(!(BZ.nil===d)&&(16===d.Type)){e=J.DecodeRune(d.Tokens);f=e[0];g=J.DecodeLastRune(c.Tokens);h=g[0];if(BG(h,f)){b.Writer.WriteByte(32);}}}};AM.prototype.TextAutoSpaceNext=function(a){return this.$val.TextAutoSpaceNext(a);};AM.ptr.prototype.LinkTextAutoSpacePrevious=function(a){var a,b,c,d,e,f,g,h;b=this;if(!b.Options.AutoSpace){return;}c=a.ChildByType(40);if(!(BZ.nil===c)&&!(BX.nil===c.Tokens)){d=a.Previous;if(!(BZ.nil===d)&&(16===d.Type)){e=J.DecodeLastRune(d.Tokens);f=e[0];g=J.DecodeRune(c.Tokens);h=g[0];if(BG(f,h)){b.Writer.WriteByte(32);}}}};AM.prototype.LinkTextAutoSpacePrevious=function(a){return this.$val.LinkTextAutoSpacePrevious(a);};AM.ptr.prototype.LinkTextAutoSpaceNext=function(a){var a,b,c,d,e,f,g,h;b=this;if(!b.Options.AutoSpace){return;}c=a.ChildByType(40);if(!(BZ.nil===c)&&!(BX.nil===c.Tokens)){d=a.Next;if(!(BZ.nil===d)&&(16===d.Type)){e=J.DecodeRune(d.Tokens);f=e[0];g=J.DecodeLastRune(c.Tokens);h=g[0];if(BG(h,f)){b.Writer.WriteByte(32);}}}};AM.prototype.LinkTextAutoSpaceNext=function(a){return this.$val.LinkTextAutoSpaceNext(a);};AO=function(a,b){var a,b,c,d,e,f,g,h;c="";d=0;e=0;while(true){if(!(e>0;c=c+(($encodeRune(g)));d=d+(1)>>0;if(b<=d){break;}}return c;};$pkg.SubStr=AO;AP=function(a){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";if(0===F.StrToBytes(a.HeadingNormalizedID).$length){$s=1;continue;}$s=2;continue;case 1:$r=AQ(a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 2:b=a.HeadingNormalizedID;$s=-1;return b;}return;}if($f===undefined){$f={$blk:AP};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};$pkg.HeadingID=AP;AQ=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=BZ.nil;c=a.Parent;while(true){if(!(!((0===c.Type)))){break;}c=c.Parent;}b[0]=$makeMap($String.keyFor,[]);$r=A.Walk(c,(function(b){return function $b(d,e){var d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(e){$s=1;continue;}$s=2;continue;case 1:if(2===d.Type){$s=3;continue;}$s=4;continue;case 3:f=AR(d);$s=5;case 5:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;while(true){if(!(0<(h=b[0][$String.keyFor(g)],h!==undefined?h.v:0))){break;}g=g+("-");}d.HeadingNormalizedID=g;i=g;(b[0]||$throwRuntimeError("assignment to entry in nil map"))[$String.keyFor(i)]={k:i,v:1};case 4:case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:$b};}$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return;}return;}if($f===undefined){$f={$blk:AQ};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AR=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=a.ChildByType(420);d="";if(!(BZ.nil===c)){d=F.BytesToStr(c.Tokens);}if(""===d){$s=1;continue;}$s=2;continue;case 1:e=a.Text();$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 2:f=D.TrimLeft(d,"#");$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;d=D.ReplaceAll(d,"\xE2\x80\xB8","");g=d;h=0;while(true){if(!(h");if(0");g=e;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);c.renderToC0(i);h++;}c.WriteString("");}else{c.WriteString("[toc]
        ");}c.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};AM.ptr.prototype.renderToC0=function(a){var a,b,c,d,e;b=this;b.WriteString("
      • ");b.Tag("span",new BY([new BW(["data-target-id",a.ID])]),false);b.WriteString(a.Content);b.Tag("/span",BY.nil,false);if(0");c=a.Children;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);b.renderToC0(e);d++;}b.WriteString("");}b.WriteString("
      • ");};AM.prototype.renderToC0=function(a){return this.$val.renderToC0(a);};AM.ptr.prototype.Tag=function(a,b,c){var a,b,c,d,e,f,g;d=this;if(d.DisableTags>0){return;}d.WriteString("<");d.WriteString(a);if(0=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);d.WriteString(" "+(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])+"=\""+(1>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+1])+"\"");f++;}}if(c){d.WriteString(" /");}d.WriteString(">");};AM.prototype.Tag=function(a,b,c){return this.$val.Tag(a,b,c);};AM.ptr.prototype.headings=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=CP.nil;b=this;c=b.Tree.Root.ChildrenByType(2);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=CO.nil;f=d;g=0;case 2:if(!(g=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]);if(!(b.Tree.Root===h.Parent)){$s=4;continue;}$s=5;continue;case 4:g++;$s=2;continue;case 5:i=AP(h);$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;if(b.Options.VditorWYSIWYG){j="wysiwyg-"+j;}else if(b.Options.VditorIR){j="ir-"+j;}if(b.Options.KramdownBlockIAL){k=h.KramdownIAL;l=0;while(true){if(!(l=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);if("id"===(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0])){j=(1>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+1]);break;}l++;}}n=AU(h);$s=7;case 7:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=new AS.ptr(b.Tree.URL,b.Tree.Path,j,n,h.HeadingLevel,CP.nil,CO.nil);if(CO.nil===e){a=$append(a,o);}else{if(e.Level");b[0].Write(d.Tokens);b[0].WriteString("");}else if(f===(29)){b[0].WriteString("");b[0].Write(d.Tokens);b[0].WriteString("");}else if(f===(16)){if(d.ParentIs(22,new CF([]))){b[0].WriteString("");b[0].Write(d.Tokens);b[0].WriteString("");}else if(d.ParentIs(17,new CF([]))){b[0].WriteString("");b[0].Write(d.Tokens);b[0].WriteString("");}else{if(!(BZ.nil===d.Previous)&&(10===d.Previous.Type)){if(G.HasPrefix(d.Previous.Tokens,(new BX($stringToBytes(""))))){b[0].Write(d.Next.Tokens);}}else{b[0].Write(d.Tokens);}}}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=b[0].String();$s=-1;return c;}return;}if($f===undefined){$f={$blk:AU};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AM.ptr.prototype.setextHeadingLen=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=0;d=this;b[0]=new G.Buffer.ptr(BX.nil,0,0);$r=A.Walk(a,(function(b){return function(e,f){var e,f;if(((16===e.Type)||(40===e.Type)||(32===e.Type))&&f){b[0].Write(e.Tokens);}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=b[0].String();e=D.ReplaceAll(e,"\xE2\x80\xB8","");f=D.Split(e,"\n");h=(g=f.$length-1>>0,((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]));i=h;j=0;while(true){if(!(j>0;}else{c=c+(1)>>0;}j+=k[1];}if(0===c){c=3;}$s=-1;return c;}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.setextHeadingLen};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.setextHeadingLen=function(a){return this.$val.setextHeadingLen(a);};AM.ptr.prototype.renderListStyle=function(a,b){var a,b,c,d;c=this;if(c.Options.RenderListStyle){d=a.ListData.Typ;if(d===(0)){b.$set($append(b.$get(),new BW(["data-style",($bytesToString(a.ListData.Marker))])));}else if(d===(1)){b.$set($append(b.$get(),new BW(["data-style",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))])));}else if(d===(3)){if(0===a.ListData.BulletChar){b.$set($append(b.$get(),new BW(["data-style",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))])));}else{b.$set($append(b.$get(),new BW(["data-style",($bytesToString(a.ListData.Marker))])));}}}};AM.prototype.renderListStyle=function(a,b){return this.$val.renderListStyle(a,b);};AM.ptr.prototype.tagSrcPath=function(a){var a,b,c,d,e,f;b=this;c=G.Index(a,(new BX($stringToBytes("src=\""))));if(0>0));if(1>G.ReplaceAll(d,F.CaretTokens,BX.nil).$length){return a;}e=b.LinkPath(d);f=($bytesToString(e));if(G.HasPrefix(e,(new BX($stringToBytes("//"))))){f="https:"+f;}a=G.ReplaceAll(a,d,(new BX($stringToBytes(f))));}return a;};AM.prototype.tagSrcPath=function(a){return this.$val.tagSrcPath(a);};AM.ptr.prototype.isLastNode=function(a,b){var a,b,c,d;c=this;if(a===b){return true;}if(!(BZ.nil===b.Next)){return false;}if(0===b.Parent.Type){return a.LastChild===b;}d=BZ.nil;d=b.Parent;while(true){if(0===d.Parent.Type){break;}d=d.Parent;}return a.LastChild===d;};AM.prototype.isLastNode=function(a,b){return this.$val.isLastNode(a,b);};AM.ptr.prototype.NodeID=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=a.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if("id"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){b=(1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]);$s=-1;return b;}e++;}if(8===a.Type){b="";$s=-1;return b;}g=A.NewNodeID();$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.NodeID};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.NodeID=function(a){return this.$val.NodeID(a);};AM.ptr.prototype.NodeAttrs=function(a){var a,b,c,d,e,f;b=BY.nil;c=this;d=a.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if("id"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){e++;continue;}b=$append(b,f);e++;}return b;};AM.prototype.NodeAttrs=function(a){return this.$val.NodeAttrs(a);};AM.ptr.prototype.NodeAttrsStr=function(a){var a,b,c,d,e,f;b="";c=this;d=a.KramdownIAL;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if("id"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){e++;continue;}b=b+((0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])+"=\""+(1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1])+"\" ");e++;}if(!(""===b)){b=$substring(b,0,(b.length-1>>0));}return b;};AM.prototype.NodeAttrsStr=function(a){return this.$val.NodeAttrsStr(a);};AM.ptr.prototype.NoHighlight=function(a){var a,b,c,d,e;b=this;if(""===a){return false;}c=AV;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(a===e){return true;}d++;}return false;};AM.prototype.NoHighlight=function(a){return this.$val.NoHighlight(a);};AW=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c="";b[0]=new G.Buffer.ptr(BX.nil,0,0);$r=A.Walk(a,(function(b){return function(d,e){var d,e,f;if(!e){return 2;}f=d.Type;if((f===(40))||(f===(433))||(f===(443))){b[0].Write(d.Tokens);}else if(f===(306)){b[0].WriteString("");b[0].Write(B.EscapeHTML(d.Tokens));b[0].WriteString("");}else if(f===(29)){b[0].WriteString("");b[0].Write(B.EscapeHTML(d.Tokens));b[0].WriteString("");}else if(f===(16)){if(d.ParentIs(22,new CF([]))){b[0].WriteString("");b[0].Write(B.EscapeHTML(d.Tokens));b[0].WriteString("");}else if(d.ParentIs(17,new CF([]))){b[0].WriteString("");b[0].Write(B.EscapeHTML(d.Tokens));b[0].WriteString("");}else{if(!(BZ.nil===d.Previous)&&(10===d.Previous.Type)){if(!G.HasPrefix(d.Previous.Tokens,(new BX($stringToBytes("=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key==="caretreplacement"){$s=3;continue;}$s=4;continue;case 3:c.WriteString(" caretreplacement");e++;$s=1;continue;case 4:c.WriteByte(32);c.WriteString(f.Key);c.WriteString("=\"");g=f.Key;if(g===("href")||g===("src")){$s=6;continue;}$s=7;continue;case 6:h=B.EscapeString(f.Val);$s=9;case 9:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=c.WriteString(h);$s=10;case 10:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}i;$s=8;continue;case 7:j=B.EscapeString(f.Val);$s=11;case 11:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=c.WriteString(j);$s=12;case 12:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;case 8:case 5:c.WriteByte(34);e++;$s=1;continue;case 2:if(b.Type===4){c.WriteString(" /");}c.WriteString(">");a.WriteString(c.String());$s=-1;return;}return;}if($f===undefined){$f={$blk:BA};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};BB=function(a){var a,b,c,d,e;b=CR.nil;c=a;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(!BC(e.Key)){d++;continue;}if("src"===e.Key){if(D.HasPrefix(e.Val,"data:image/svg+xml")||D.HasPrefix(e.Val,"javascript")){d++;continue;}}b=$append(b,e);d++;}return b;};BC=function(a){var a,b,c,d,e,f;b=BD;c=0;d=$keys(b);while(true){if(!(c=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]);if(f<(d-3>>0)&&(105===(g=f+1>>0,((g<0||g>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+g])))&&(110===(h=f+2>>0,((h<0||h>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+h])))&&(103===(i=f+3>>0,((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i])))&&I.Is(I.Han,((f<0||f>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]))){b=b+(($encodeRune(e))+"ing");f=f+(4)>>0;continue;}b=BF(b,e);f=f+(1)>>0;}return b;};$pkg.Space0=BE;BF=function(a,b){var a,b,c,d;if(0===a.length){return($encodeRune(b));}if("1"<=a&&"9">=a&&(65039===b)){return a+($encodeRune(b));}c=J.DecodeLastRuneInString(a);d=c[0];if(BG(d,b)){return a+" "+($encodeRune(b));}return a+($encodeRune(b));};BG=function(a,b){var a,b,c,d,e,f;if(I.IsSpace(a)||I.IsSpace(b)||((F.CaretRune===a))||((F.CaretRune===b))||!I.IsPrint(a)||!I.IsPrint(b)){return false;}c=I.Is(I.Han,a);d=!((37===b))&&(I.IsPunct(b)||(126===b)||(61===b)||(35===b));if(c&&d){return false;}e=!((37===a))&&(I.IsPunct(a)||(126===a)||(61===a)||(35===a));f=I.Is(I.Han,b);if(f&&e){return false;}if((!c&&!f)||(c&&f)){return false;}return true;};AM.ptr.prototype.FixTermTypo=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.fixTermTypo0(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}$s=-1;return c;}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.FixTermTypo};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.FixTermTypo=function(a){return this.$val.FixTermTypo(a);};AM.ptr.prototype.fixTermTypo0=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.$length;d=0;e=0;f=0;g=0;h=0;i=e;j=f;k=g;l=h;m=0;n=0;o=m;p=n;q=BX.nil;case 1:if(!(i=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+i]);if(BH(d)){$s=3;continue;}$s=4;continue;case 3:i=i+(1)>>0;$s=1;continue;case 4:if(1<=i){$s=5;continue;}$s=6;continue;case 5:o=(r=i-1>>0,((r<0||r>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+r]));if(!BH(o)){i=i+(1)>>0;$s=1;continue;}case 6:if(C.IsASCIIPunct(o)){$s=7;continue;}$s=8;continue;case 7:i=i+(1)>>0;$s=1;continue;case 8:j=i;while(true){if(!(j=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j]);if(BH(p)||(46===p)){break;}j=j+(1)>>0;}if(C.IsASCIIPunct(p)){$s=9;continue;}$s=10;continue;case 9:i=i+(1)>>0;$s=1;continue;case 10:s=G.ToLower($subslice(a,i,j));$s=11;case 11:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}q=s;t=(u=b.Options.Terms[$String.keyFor(F.BytesToStr(q))],u!==undefined?[u.v,true]:["",false]);v=t[0];w=t[1];if(w){l=0;k=i;while(true){if(!(k=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k]=v.charCodeAt(l));l=l+(1)>>0;k=k+(1)>>0;}}i=i+(1)>>0;$s=1;continue;case 2:$s=-1;return a;}return;}if($f===undefined){$f={$blk:AM.ptr.prototype.fixTermTypo0};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.$s=$s;$f.$r=$r;return $f;};AM.prototype.fixTermTypo0=function(a){return this.$val.fixTermTypo0(a);};BH=function(a){var a;return a>=128||C.IsWhitespace(a)||C.IsASCIIPunct(a);};BI=function(){var a,b,c,d,e,f,g,h,i;a=false;a=(b=$keys(BJ).length,((b<0||b>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));c=BJ;d=0;e=$keys(c);while(true){if(!(d=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(!(""===g)&&D.HasPrefix(d,g)){c.originalLink=$append(c.originalLink,d);d="assets"+$substring(d,g.length);}f++;}c.FormatRenderer.BaseRenderer.WriteString(d);}return 2;};BK.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};BN=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,dr,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new BM.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=28;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeSpanOpenMarker")};i=29;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderCodeSpanContent")};j=30;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderCodeSpanCloseMarker")};k=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderCodeBlock")};l=12;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderCodeBlockOpenMarker")};m=14;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderCodeBlockInfoMarker")};n=15;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderCodeBlockCode")};o=13;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderCodeBlockCloseMarker")};p=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderMathBlock")};q=301;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderMathBlockOpenMarker")};r=302;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderMathBlockContent")};s=303;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderMathBlockCloseMarker")};t=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderInlineMath")};u=305;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineMathOpenMarker")};v=306;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderInlineMathContent")};w=307;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderInlineMathCloseMarker")};x=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderEmphasis")};y=18;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderEmAsteriskOpenMarker")};z=19;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderEmAsteriskCloseMarker")};aa=20;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderEmUnderscoreOpenMarker")};ab=21;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderEmUnderscoreCloseMarker")};ac=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderStrong")};ad=23;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderStrongA6kOpenMarker")};ae=24;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderStrongA6kCloseMarker")};af=25;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderStrongU8eOpenMarker")};ag=26;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderStrongU8eCloseMarker")};ah=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderBlockquote")};ai=6;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderBlockquoteMarker")};aj=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderHeading")};ak=3;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderHeadingC8hMarker")};al=420;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderHeadingID")};am=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderList")};an=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderListItem")};ao=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderThematicBreak")};ap=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderHardBreak")};aq=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSoftBreak")};ar=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderHTML")};as=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderInlineHTML")};at=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderLink")};au=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderImage")};av=35;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBang")};aw=36;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aw)]={k:aw,v:$methodVal(c,"renderOpenBracket")};ax=37;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ax)]={k:ax,v:$methodVal(c,"renderCloseBracket")};ay=38;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ay)]={k:ay,v:$methodVal(c,"renderOpenParen")};az=39;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(az)]={k:az,v:$methodVal(c,"renderCloseParen")};ba=466;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ba)]={k:ba,v:$methodVal(c,"renderOpenBrace")};bb=467;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bb)]={k:bb,v:$methodVal(c,"renderCloseBrace")};bc=40;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bc)]={k:bc,v:$methodVal(c,"renderLinkText")};bd=43;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bd)]={k:bd,v:$methodVal(c,"renderLinkSpace")};be=41;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(be)]={k:be,v:$methodVal(c,"renderLinkDest")};bf=42;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bf)]={k:bf,v:$methodVal(c,"renderLinkTitle")};bg=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bg)]={k:bg,v:$methodVal(c,"renderStrikethrough")};bh=102;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bh)]={k:bh,v:$methodVal(c,"renderStrikethrough1OpenMarker")};bi=103;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bi)]={k:bi,v:$methodVal(c,"renderStrikethrough1CloseMarker")};bj=104;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bj)]={k:bj,v:$methodVal(c,"renderStrikethrough2OpenMarker")};bk=105;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bk)]={k:bk,v:$methodVal(c,"renderStrikethrough2CloseMarker")};bl=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bl)]={k:bl,v:$methodVal(c,"renderTaskListItemMarker")};bm=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bm)]={k:bm,v:$methodVal(c,"renderTable")};bn=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bn)]={k:bn,v:$methodVal(c,"renderTableHead")};bo=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bo)]={k:bo,v:$methodVal(c,"renderTableRow")};bp=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bp)]={k:bp,v:$methodVal(c,"renderTableCell")};bq=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bq)]={k:bq,v:$methodVal(c,"renderEmoji")};br=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(br)]={k:br,v:$methodVal(c,"renderEmojiUnicode")};bs=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bs)]={k:bs,v:$methodVal(c,"renderEmojiImg")};bt=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bt)]={k:bt,v:$methodVal(c,"renderEmojiAlias")};bu=410;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bu)]={k:bu,v:$methodVal(c,"renderFootnotesDefBlock")};bv=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bv)]={k:bv,v:$methodVal(c,"renderFootnotesDef")};bw=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bw)]={k:bw,v:$methodVal(c,"renderFootnotesRef")};bx=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bx)]={k:bx,v:$methodVal(c,"renderToC")};by=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(by)]={k:by,v:$methodVal(c,"renderBackslash")};bz=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bz)]={k:bz,v:$methodVal(c,"renderBackslashContent")};ca=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ca)]={k:ca,v:$methodVal(c,"renderHtmlEntity")};cb=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cb)]={k:cb,v:$methodVal(c,"renderYamlFrontMatter")};cc=426;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cc)]={k:cc,v:$methodVal(c,"renderYamlFrontMatterOpenMarker")};cd=427;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cd)]={k:cd,v:$methodVal(c,"renderYamlFrontMatterContent")};ce=428;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ce)]={k:ce,v:$methodVal(c,"renderYamlFrontMatterCloseMarker")};cf=430;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cf)]={k:cf,v:$methodVal(c,"renderBlockRef")};cg=431;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cg)]={k:cg,v:$methodVal(c,"renderBlockRefID")};ch=432;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ch)]={k:ch,v:$methodVal(c,"renderBlockRefSpace")};ci=433;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ci)]={k:ci,v:$methodVal(c,"renderBlockRefText")};cj=434;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cj)]={k:cj,v:$methodVal(c,"renderBlockRefTextTplRenderResult")};ck=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ck)]={k:ck,v:$methodVal(c,"renderMark")};cl=451;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cl)]={k:cl,v:$methodVal(c,"renderMark1OpenMarker")};cm=452;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cm)]={k:cm,v:$methodVal(c,"renderMark1CloseMarker")};cn=453;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cn)]={k:cn,v:$methodVal(c,"renderMark2OpenMarker")};co=454;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(co)]={k:co,v:$methodVal(c,"renderMark2CloseMarker")};cp=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cp)]={k:cp,v:$methodVal(c,"renderSup")};cq=486;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cq)]={k:cq,v:$methodVal(c,"renderSupOpenMarker")};cr=487;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cr)]={k:cr,v:$methodVal(c,"renderSupCloseMarker")};cs=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cs)]={k:cs,v:$methodVal(c,"renderSub")};ct=491;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ct)]={k:ct,v:$methodVal(c,"renderSubOpenMarker")};cu=492;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cu)]={k:cu,v:$methodVal(c,"renderSubCloseMarker")};cv=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cv)]={k:cv,v:$methodVal(c,"renderKramdownBlockIAL")};cw=456;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cw)]={k:cw,v:$methodVal(c,"renderKramdownSpanIAL")};cx=465;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cx)]={k:cx,v:$methodVal(c,"renderBlockQueryEmbed")};cy=468;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cy)]={k:cy,v:$methodVal(c,"renderBlockQueryEmbedScript")};cz=440;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cz)]={k:cz,v:$methodVal(c,"renderBlockEmbed")};da=441;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(da)]={k:da,v:$methodVal(c,"renderBlockEmbedID")};db=442;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(db)]={k:db,v:$methodVal(c,"renderBlockEmbedSpace")};dc=443;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dc)]={k:dc,v:$methodVal(c,"renderBlockEmbedText")};dd=444;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dd)]={k:dd,v:$methodVal(c,"renderBlockEmbedTextTplRenderResult")};de=460;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(de)]={k:de,v:$methodVal(c,"renderTag")};df=461;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(df)]={k:df,v:$methodVal(c,"renderTagOpenMarker")};dg=462;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dg)]={k:dg,v:$methodVal(c,"renderTagCloseMarker")};dh=45;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dh)]={k:dh,v:$methodVal(c,"renderLinkRefDefBlock")};di=46;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(di)]={k:di,v:$methodVal(c,"renderLinkRefDef")};dj=475;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dj)]={k:dj,v:$methodVal(c,"renderSuperBlock")};dk=476;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dk)]={k:dk,v:$methodVal(c,"renderSuperBlockOpenMarker")};dl=477;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dl)]={k:dl,v:$methodVal(c,"renderSuperBlockLayoutMarker")};dm=478;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dm)]={k:dm,v:$methodVal(c,"renderSuperBlockCloseMarker")};dn=495;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dn)]={k:dn,v:$methodVal(c,"renderGitConflict")};dp=496;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dp)]={k:dp,v:$methodVal(c,"renderGitConflictOpenMarker")};dq=497;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dq)]={k:dq,v:$methodVal(c,"renderGitConflictContent")};dr=498;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(dr)]={k:dr,v:$methodVal(c,"renderGitConflictCloseMarker")};return c;};$pkg.NewVditorIRBlockRenderer=BN;BM.ptr.prototype.renderGitConflictCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","git-conflict-close-marker"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderGitConflictCloseMarker=function(a,b){return this.$val.renderGitConflictCloseMarker(a,b);};BM.ptr.prototype.renderGitConflictContent=function(a,b){var a,b,c,d,e;c=this;if(b){d=BY.nil;e="vditor-ir__marker--pre";c.BaseRenderer.Tag("pre",new BY([new BW(["class",e])]),false);c.BaseRenderer.Tag("code",d,false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Newline();c.BaseRenderer.WriteString("
        ");}return 2;};BM.prototype.renderGitConflictContent=function(a,b){return this.$val.renderGitConflictContent(a,b);};BM.ptr.prototype.renderGitConflictOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","git-conflict-open-marker"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderGitConflictOpenMarker=function(a,b){return this.$val.renderGitConflictOpenMarker(a,b);};BM.ptr.prototype.renderGitConflict=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderGitConflict};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderGitConflict=function(a,b){return this.$val.renderGitConflict(a,b);};BM.ptr.prototype.renderSuperBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderSuperBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderSuperBlock=function(a,b){return this.$val.renderSuperBlock(a,b);};BM.ptr.prototype.renderSuperBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","super-block-open-marker"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write((new BX($stringToBytes("{{{"))));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderSuperBlockOpenMarker=function(a,b){return this.$val.renderSuperBlockOpenMarker(a,b);};BM.ptr.prototype.renderSuperBlockLayoutMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--info"]),new BW(["data-type","super-block-layout"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderSuperBlockLayoutMarker=function(a,b){return this.$val.renderSuperBlockLayoutMarker(a,b);};BM.ptr.prototype.renderSuperBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","super-block-close-marker"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write((new BX($stringToBytes("}}}"))));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderSuperBlockCloseMarker=function(a,b){return this.$val.renderSuperBlockCloseMarker(a,b);};BM.ptr.prototype.renderLinkRefDefBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BM.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};BM.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c,d,e;c=this;if(b){d=a.FirstChild.ChildByType(41).Tokens;e=F.BytesToStr(d);c.BaseRenderer.WriteString("["+F.BytesToStr(a.Tokens)+"]:");if(!("\xE2\x80\xB8"===e)){c.BaseRenderer.WriteString(" ");}c.BaseRenderer.WriteString(e+"\n");}return 1;};BM.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};BM.ptr.prototype.renderTag=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderTag};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderTag=function(a,b){return this.$val.renderTag(a,b);};BM.ptr.prototype.renderTagOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--tag"])]),false);c.BaseRenderer.WriteByte(35);c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["class","vditor-ir__tag"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("span",d,false);}return 2;};BM.prototype.renderTagOpenMarker=function(a,b){return this.$val.renderTagOpenMarker(a,b);};BM.ptr.prototype.renderTagCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--tag"])]),false);c.BaseRenderer.WriteByte(35);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderTagCloseMarker=function(a,b){return this.$val.renderTagCloseMarker(a,b);};BM.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};BM.ptr.prototype.renderKramdownSpanIAL=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderKramdownSpanIAL=function(a,b){return this.$val.renderKramdownSpanIAL(a,b);};BM.ptr.prototype.renderMark=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderMark};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};BM.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--mark"])]),false);c.BaseRenderer.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("mark",d,false);}return 2;};BM.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};BM.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--mark"])]),false);c.BaseRenderer.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};BM.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--mark"])]),false);c.BaseRenderer.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("mark",d,false);}return 2;};BM.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};BM.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--mark"])]),false);c.BaseRenderer.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};BM.ptr.prototype.renderSup=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderSup};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};BM.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--sup"])]),false);c.BaseRenderer.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("sup",new BY([new BW(["data-newline","1"])]),false);}return 2;};BM.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};BM.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sup",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--sup"])]),false);c.BaseRenderer.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};BM.ptr.prototype.renderSub=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderSub};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};BM.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--sub"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("sub",new BY([new BW(["data-newline","1"])]),false);}return 2;};BM.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};BM.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sub",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--sub"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};BM.ptr.prototype.renderBlockQueryEmbedScript=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Write(a.Tokens);$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBlockQueryEmbedScript};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBlockQueryEmbedScript=function(a,b){return this.$val.renderBlockQueryEmbedScript(a,b);};BM.ptr.prototype.renderBlockQueryEmbed=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("
        ");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBlockQueryEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBlockQueryEmbed=function(a,b){return this.$val.renderBlockQueryEmbed(a,b);};BM.ptr.prototype.renderBlockEmbed=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:d=a.ChildByType(441);c.BaseRenderer.WriteString("
        ");c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBlockEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBlockEmbed=function(a,b){return this.$val.renderBlockEmbed(a,b);};BM.ptr.prototype.renderBlockEmbedID=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;d=$append(d,new BW(["class","vditor-ir__marker vditor-ir__marker--link"]));c.BaseRenderer.Tag("span",d,false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockEmbedID=function(a,b){return this.$val.renderBlockEmbedID(a,b);};BM.ptr.prototype.renderBlockEmbedSpace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(32);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockEmbedSpace=function(a,b){return this.$val.renderBlockEmbedSpace(a,b);};BM.ptr.prototype.renderBlockEmbedText=function(a,b){var a,b,c,d;c=this;if(b){d=B.EscapeHTML(a.Tokens);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--info"])]),false);c.BaseRenderer.Write(d);}else{c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);if(BZ.nil===a.Next||!((444===a.Next.Type))){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","ref-text-tpl-render-result"]),new BW(["class","vditor-ir__blockref"])]),false);c.BaseRenderer.Tag("/span",BY.nil,false);}}return 2;};BM.prototype.renderBlockEmbedText=function(a,b){return this.$val.renderBlockEmbedText(a,b);};BM.ptr.prototype.renderBlockEmbedTextTplRenderResult=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","ref-text-tpl-render-result"]),new BW(["class","vditor-ir__blockref"])]),false);c.BaseRenderer.Write(a.Tokens);}else{c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockEmbedTextTplRenderResult=function(a,b){return this.$val.renderBlockEmbedTextTplRenderResult(a,b);};BM.ptr.prototype.renderBlockRef=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBlockRef};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBlockRef=function(a,b){return this.$val.renderBlockRef(a,b);};BM.ptr.prototype.renderBlockRefID=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;d=$append(d,new BW(["class","vditor-ir__marker vditor-ir__marker--link"]));c.BaseRenderer.Tag("span",d,false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockRefID=function(a,b){return this.$val.renderBlockRefID(a,b);};BM.ptr.prototype.renderBlockRefSpace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(32);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockRefSpace=function(a,b){return this.$val.renderBlockRefSpace(a,b);};BM.ptr.prototype.renderBlockRefText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--info"])]),false);}else{c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);if(BZ.nil===a.Next||!((434===a.Next.Type))){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","ref-text-tpl-render-result"]),new BW(["class","vditor-ir__blockref"])]),false);c.BaseRenderer.Tag("/span",BY.nil,false);}}return 2;};BM.prototype.renderBlockRefText=function(a,b){return this.$val.renderBlockRefText(a,b);};BM.ptr.prototype.renderBlockRefTextTplRenderResult=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","ref-text-tpl-render-result"]),new BW(["class","vditor-ir__blockref"])]),false);c.BaseRenderer.Write(a.Tokens);}else{c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderBlockRefTextTplRenderResult=function(a,b){return this.$val.renderBlockRefTextTplRenderResult(a,b);};BM.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-close-marker"])]),false);c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};BM.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.Tokens=d;e=a.Tokens.$length;f=1>e||((3===e)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__marker--pre"])]),false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","yaml-front-matter"]),new BW(["class","language-yaml"])]),false);if(f){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}c.BaseRenderer.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderYamlFrontMatterContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};BM.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-open-marker"])]),false);c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};BM.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderYamlFrontMatter};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};BM.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["data-newline","1"]),new BW(["class","vditor-ir__marker vditor-ir__marker--pre"]),new BW(["data-type","html-entity"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.HtmlEntityTokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("code",BY.nil,false);c.BaseRenderer.Write(a.HtmlEntityTokens);c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);d=a.NextNodeText();$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderHtmlEntity};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};BM.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};BM.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};BM.ptr.prototype.renderBackslash=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--backslash"])]),false);c.BaseRenderer.WriteByte(92);c.BaseRenderer.WriteString("");$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBackslash};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};BM.ptr.prototype.renderToC=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=c.BaseRenderer.renderToC(a,b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};BM.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BM.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};BM.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];c[0]=this;if(c[0].BaseRenderer.RenderingFootnotes){$s=-1;return 2;}if(b){$s=1;continue;}$s=2;continue;case 1:c[0].BaseRenderer.WriteString("
        ");c[0].BaseRenderer.WriteString("["+($bytesToString(a.Tokens))+"]: ");d=a.FirstChild;case 3:if(!(!(BZ.nil===d))){$s=4;continue;}$r=A.Walk(d,(function(c){return function $b(e,f){var e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:h=(g=c[0].BaseRenderer.RendererFuncs[A.NodeType.keyFor(e.Type)],g!==undefined?g.v:$throwNilPointerError)(e,f);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:$b};}$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};})(c));$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=3;continue;case 4:c[0].BaseRenderer.WriteString("
        ");case 2:$s=-1;return 1;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};BM.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}g=c.BaseRenderer.Tree.FindFootnotesDef(a.Tokens);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[0];i=f[1];if(BZ.nil===i){c.BaseRenderer.Write(a.Tokens);$s=-1;return 2;}j=H.Itoa(h);k=i.Text();$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=new BY([new BW(["data-type","footnotes-ref"])]);n=a.Text();$s=6;case 6:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=D.Contains(o,"\xE2\x80\xB8");if(p){m=$append(m,new BW(["class","vditor-ir__node vditor-ir__node--expand b3-tooltips b3-tooltips__s"]));}else{m=$append(m,new BW(["class","vditor-ir__node b3-tooltips b3-tooltips__s"]));}q=B.EscapeString(l);$s=7;case 7:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}r=AO(q,24);$s=8;case 8:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}m=$append(m,new BW(["aria-label",r]));m=$append(m,new BW(["data-footnotes-label",($bytesToString(a.FootnotesRefLabel))]));c.BaseRenderer.Tag("sup",m,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--link"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker--hide"]),new BW(["data-render","1"])]),false);c.BaseRenderer.WriteString(j);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.WriteString("\xE2\x80\x8B");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderFootnotesRef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};BM.ptr.prototype.renderCodeBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-close-marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderCodeBlockCloseMarker=function(a,b){return this.$val.renderCodeBlockCloseMarker(a,b);};BM.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--info"]),new BW(["data-type","code-block-info"])]),false);c.BaseRenderer.WriteString("\xE2\x80\x8B");c.BaseRenderer.Write(a.CodeBlockInfo);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};BM.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-open-marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};BM.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderCodeBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};BM.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.Tokens.$length;e=1>d||((3===d)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));f=a.Parent.IsFencedCodeBlock;g="";h=false;if(f){h=G.Contains(a.Previous.CodeBlockInfo,F.CaretTokens);a.Previous.CodeBlockInfo=G.ReplaceAll(a.Previous.CodeBlockInfo,F.CaretTokens,BX.nil);}i=BY.nil;if(f&&0=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+0])));i=$append(i,new BW(["class","language-"+g]));if("mindmap"===g){$s=3;continue;}$s=4;continue;case 3:k=c.BaseRenderer.RenderMindmap(a.Tokens);$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;i=$append(i,new BW(["data-code",($bytesToString(l))]));case 4:case 2:m="vditor-ir__marker--pre vditor-ir__marker";c.BaseRenderer.Tag("pre",new BY([new BW(["class",m])]),false);c.BaseRenderer.Tag("code",i,false);if(e){if(!h){c.BaseRenderer.WriteString("");}c.BaseRenderer.WriteByte(10);}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Newline();}c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);n=c.BaseRenderer.NoHighlight(g);if(n){c.BaseRenderer.Tag("div",i,false);}else{c.BaseRenderer.Tag("code",i,false);}o=a.Tokens;o=G.ReplaceAll(o,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(o));if(n){c.BaseRenderer.WriteString("");}else{c.BaseRenderer.WriteString("");}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderCodeBlockCode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderCodeBlockCode=function(a,b){return this.$val.renderCodeBlockCode(a,b);};BM.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};BM.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("");c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.FirstChild.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};BM.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("");c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.FirstChild.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};BM.ptr.prototype.renderEmoji=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}$r=c.renderSpanNode(a);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderEmoji};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};BM.ptr.prototype.renderInlineMathCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderInlineMathCloseMarker=function(a,b){return this.$val.renderInlineMathCloseMarker(a,b);};BM.ptr.prototype.renderInlineMathContent=function(a,b){var a,b,c,d;c=this;if(b){d=B.EscapeHTML(a.Tokens);c.BaseRenderer.Write(d);c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("span",new BY([new BW(["class","language-math"])]),false);d=G.ReplaceAll(d,F.CaretTokens,BX.nil);c.BaseRenderer.Write(d);c.BaseRenderer.WriteString("");}return 2;};BM.prototype.renderInlineMathContent=function(a,b){return this.$val.renderInlineMathContent(a,b);};BM.ptr.prototype.renderInlineMathOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("code",new BY([new BW(["data-newline","1"]),new BW(["class","vditor-ir__marker vditor-ir__marker--pre"]),new BW(["data-type","math-inline"])]),false);}return 2;};BM.prototype.renderInlineMathOpenMarker=function(a,b){return this.$val.renderInlineMathOpenMarker(a,b);};BM.ptr.prototype.renderInlineMath=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderInlineMath};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};BM.ptr.prototype.renderMathBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-close-marker"])]),false);c.BaseRenderer.Write(E.MathBlockMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderMathBlockCloseMarker=function(a,b){return this.$val.renderMathBlockCloseMarker(a,b);};BM.ptr.prototype.renderMathBlockContent=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=G.TrimSpace(a.Tokens);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.Tokens=d;e=a.Tokens.$length;f=1>e||((3===e)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));g="vditor-ir__marker--pre";if(c.BaseRenderer.Options.VditorMathBlockPreview){g=g+(" vditor-ir__marker");}c.BaseRenderer.Tag("pre",new BY([new BW(["class",g])]),false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","math-block"]),new BW(["class","language-math"])]),false);if(f){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}c.BaseRenderer.WriteString("");if(c.BaseRenderer.Options.VditorMathBlockPreview){c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("div",new BY([new BW(["data-type","math-block"]),new BW(["class","language-math"])]),false);h=a.Tokens;h=G.ReplaceAll(h,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(h));c.BaseRenderer.WriteString("");}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderMathBlockContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderMathBlockContent=function(a,b){return this.$val.renderMathBlockContent(a,b);};BM.ptr.prototype.renderMathBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-open-marker"])]),false);c.BaseRenderer.Write(E.MathBlockMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderMathBlockOpenMarker=function(a,b){return this.$val.renderMathBlockOpenMarker(a,b);};BM.ptr.prototype.renderMathBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderMathBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};BM.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e,f;c=this;d="td";if(107===a.Parent.Parent.Type){d="th";}if(b){e=BY.nil;f=a.TableCellAlign;if(f===(1)){e=$append(e,new BW(["align","left"]));}else if(f===(2)){e=$append(e,new BW(["align","center"]));}else if(f===(3)){e=$append(e,new BW(["align","right"]));}c.BaseRenderer.Tag(d,e,false);if(BZ.nil===a.FirstChild){a.AppendChild(new A.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CD.nil,(new BX($stringToBytes(" "))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CG.nil,false,CK.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CD.nil,BX.nil,BY.nil));}else if(G.Equal(a.FirstChild.Tokens,F.CaretTokens)){a.FirstChild.Tokens=(new BX($stringToBytes("\xE2\x80\xB8 ")));}}else{c.BaseRenderer.Tag("/"+d,BY.nil,false);}return 2;};BM.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};BM.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("tr",BY.nil,false);}else{c.BaseRenderer.Tag("/tr",BY.nil,false);}return 2;};BM.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};BM.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("thead",BY.nil,false);}else{c.BaseRenderer.Tag("/thead",BY.nil,false);if(!(BZ.nil===a.Next)){c.BaseRenderer.Tag("tbody",BY.nil,false);}}return 2;};BM.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};BM.ptr.prototype.renderTable=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;if(b){$s=1;continue;}$s=2;continue;case 1:e=d.NodeID(a);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}c[0]=new BY([new BW(["data-block","0"]),new BW(["data-type","table"]),new BW(["data-node-id",e])]);f=d.BaseRenderer.NodeAttrs(a);if(0");if(c.BaseRenderer.Options.VditorHTMLBlockPreview){$s=3;continue;}$s=4;continue;case 3:c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);e=G.ReplaceAll(e,F.CaretTokens,BX.nil);if(c.BaseRenderer.Options.Sanitize){$s=5;continue;}$s=6;continue;case 5:g=AY(e);$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}e=g;case 6:e=c.BaseRenderer.tagSrcPath(e);c.BaseRenderer.Write(e);c.BaseRenderer.WriteString("");case 4:c.BaseRenderer.WriteString("");$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};BM.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=G.Equal(a.Tokens,(new BX($stringToBytes(""))));e=G.Equal(a.Tokens,(new BX($stringToBytes(""))));if(d||e){$s=1;continue;}$s=2;continue;case 1:if(d){$s=4;continue;}$s=5;continue;case 4:if(c.tagMatchClose("kbd",a)){$s=7;continue;}$s=8;continue;case 7:$r=c.renderSpanNode(a);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("kbd",BY.nil,false);$s=9;continue;case 8:$r=c.renderSpanNode(a);$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 9:$s=6;continue;case 5:if(c.tagMatchOpen("kbd",a)){$s=12;continue;}$s=13;continue;case 12:c.BaseRenderer.Tag("/kbd",BY.nil,false);$r=c.renderSpanNode(a);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);$s=14;continue;case 13:$r=c.renderSpanNode(a);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 14:case 6:$s=3;continue;case 2:f=BY.nil;g=new B.Node.ptr(CU.nil,CU.nil,CU.nil,CU.nil,CU.nil,3,0,"","",CR.nil);i=B.ParseFragment(D.NewReader(F.BytesToStr(a.Tokens)),g);$s=17;case 17:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;j=h[0];k=false;l=G.ReplaceAll(a.Tokens,F.CaretTokens,BX.nil);if(0=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+0]).DataAtom;if(m===(514)){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","html-inline"])]),false);f=new BY([new BW(["class","vditor-ir__br"])]);c.BaseRenderer.Tag("span",f,false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/span",BY.nil,false);k=true;}}if(!k){$s=18;continue;}$s=19;continue;case 18:$r=c.renderSpanNode(a);$s=20;case 20:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new BY([new BW(["class","vditor-ir__marker"])]);c.BaseRenderer.Tag("span",f,false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/span",BY.nil,false);if(!G.Equal((new BX($stringToBytes("<>"))),l)){c.BaseRenderer.Write(l);}case 19:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderInlineHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};BM.ptr.prototype.tagMatchClose=function(a,b){var a,b,c,d;c=this;d=b.Next;while(true){if(!(!(BZ.nil===d))){break;}if((10===d.Type)&&""===d.TokensStr()){return true;}d=d.Next;}return false;};BM.prototype.tagMatchClose=function(a,b){return this.$val.tagMatchClose(a,b);};BM.ptr.prototype.tagMatchOpen=function(a,b){var a,b,c,d;c=this;d=b.Previous;while(true){if(!(!(BZ.nil===d))){break;}if((10===d.Type)&&"<"+a+">"===d.TokensStr()){return true;}d=d.Previous;}return false;};BM.prototype.tagMatchOpen=function(a,b){return this.$val.tagMatchOpen(a,b);};BM.ptr.prototype.renderDocument=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};BM.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;if(b){$s=1;continue;}$s=2;continue;case 1:e=d.NodeID(a);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}c[0]=new BY([new BW(["data-block","0"]),new BW(["data-node-id",e]),new BW(["data-type","p"])]);f=d.BaseRenderer.NodeAttrs(a);if(0","",b);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;d=D.Index(e,"");if(0>d){$s=-1;return[d,e];}g=CS.nil;h=0;i=d;while(true){if(!(0>0;g=$appendSlice(new CS([k]),g);h=h+(1)>>0;if(c=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+k]));$s=6;case 6:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=m;o=D.Index(l,n);$s=7;case 7:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;if(!((0===p))){k=k+(1)>>0;$s=4;continue;}e.WriteString(b);e.WriteString($substring(a,h,(h+((k<0||k>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+k]).length>>0)));e.WriteString(c);h=h+((((k<0||k>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+k]).length-1>>0))>>0;j=true;$s=5;continue;$s=4;continue;case 5:if(!j){e.WriteByte(a.charCodeAt(h));}h=h+(1)>>0;$s=2;continue;case 3:$s=-1;return e.String();}return;}if($f===undefined){$f={$blk:BP};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.$s=$s;$f.$r=$r;return $f;};BM.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderCodeSpan};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};BM.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));if(G.HasPrefix(a.Next.Tokens,(new BX($stringToBytes("`"))))){c.BaseRenderer.WriteByte(32);}c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("code",d,false);}return 2;};BM.prototype.renderCodeSpanOpenMarker=function(a,b){return this.$val.renderCodeSpanOpenMarker(a,b);};BM.ptr.prototype.renderCodeSpanContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};BM.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};BM.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);if(G.HasSuffix(a.Previous.Tokens,(new BX($stringToBytes("`"))))){c.BaseRenderer.WriteByte(32);}c.BaseRenderer.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderCodeSpanCloseMarker=function(a,b){return this.$val.renderCodeSpanCloseMarker(a,b);};BM.ptr.prototype.renderEmphasis=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderEmphasis};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderEmphasis=function(a,b){return this.$val.renderEmphasis(a,b);};BM.ptr.prototype.renderEmAsteriskOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--em"])]),false);c.BaseRenderer.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("em",d,false);}return 2;};BM.prototype.renderEmAsteriskOpenMarker=function(a,b){return this.$val.renderEmAsteriskOpenMarker(a,b);};BM.ptr.prototype.renderEmAsteriskCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--em"])]),false);c.BaseRenderer.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderEmAsteriskCloseMarker=function(a,b){return this.$val.renderEmAsteriskCloseMarker(a,b);};BM.ptr.prototype.renderEmUnderscoreOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--em"])]),false);c.BaseRenderer.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("em",d,false);}return 2;};BM.prototype.renderEmUnderscoreOpenMarker=function(a,b){return this.$val.renderEmUnderscoreOpenMarker(a,b);};BM.ptr.prototype.renderEmUnderscoreCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--em"])]),false);c.BaseRenderer.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderEmUnderscoreCloseMarker=function(a,b){return this.$val.renderEmUnderscoreCloseMarker(a,b);};BM.ptr.prototype.renderStrong=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderStrong};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderStrong=function(a,b){return this.$val.renderStrong(a,b);};BM.ptr.prototype.renderStrongA6kOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--strong"])]),false);c.BaseRenderer.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("strong",d,false);}return 2;};BM.prototype.renderStrongA6kOpenMarker=function(a,b){return this.$val.renderStrongA6kOpenMarker(a,b);};BM.ptr.prototype.renderStrongA6kCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--strong"])]),false);c.BaseRenderer.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderStrongA6kCloseMarker=function(a,b){return this.$val.renderStrongA6kCloseMarker(a,b);};BM.ptr.prototype.renderStrongU8eOpenMarker=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--strong"])]),false);c.BaseRenderer.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);d=new BY([new BW(["data-newline","1"])]);d=$appendSlice(d,a.Parent.KramdownIAL);c.BaseRenderer.Tag("strong",d,false);}return 2;};BM.prototype.renderStrongU8eOpenMarker=function(a,b){return this.$val.renderStrongU8eOpenMarker(a,b);};BM.ptr.prototype.renderStrongU8eCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--strong"])]),false);c.BaseRenderer.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderStrongU8eCloseMarker=function(a,b){return this.$val.renderStrongU8eCloseMarker(a,b);};BM.ptr.prototype.renderBlockquote=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;if(b){$s=1;continue;}$s=2;continue;case 1:e=d.NodeID(a);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}c[0]=new BY([new BW(["data-block","0"]),new BW(["data-node-id",e]),new BW(["data-type","blockquote"])]);f=d.BaseRenderer.NodeAttrs(a);if(0");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderBlockquote};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};BM.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};BM.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;if(b){$s=1;continue;}$s=2;continue;case 1:e=d.Text(a);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=$substring(W,a.HeadingLevel,(a.HeadingLevel+1>>0));if(D.Contains(f,"\xE2\x80\xB8")){d.BaseRenderer.WriteString("=c[0].$length?($throwRuntimeError("index out of range"),undefined):c[0].$array[c[0].$offset+0]),(1>=i.$length?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+1]))+"\"");}if(!a.HeadingSetext){d.BaseRenderer.WriteString(" data-marker=\"#\">");}else{if(1===a.HeadingLevel){d.BaseRenderer.WriteString(" data-marker=\"=\">");}else{d.BaseRenderer.WriteString(" data-marker=\"-\">");}}if(d.BaseRenderer.Options.HeadingAnchor){$s=8;continue;}$s=9;continue;case 8:j=AP(a);$s=10;case 10:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;d.BaseRenderer.Tag("a",new BY([new BW(["id","vditorAnchor-"+k]),new BW(["class","vditor-anchor"]),new BW(["href","#"+k])]),false);d.BaseRenderer.WriteString("");d.BaseRenderer.Tag("/a",BY.nil,false);case 9:if(!a.HeadingSetext){d.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--heading"]),new BW(["data-type","heading-marker"])]),false);d.BaseRenderer.WriteString(D.Repeat("#",a.HeadingLevel)+" ");d.BaseRenderer.Tag("/span",BY.nil,false);}$s=3;continue;case 2:if(a.HeadingSetext){$s=11;continue;}$s=12;continue;case 11:d.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--heading"]),new BW(["data-type","heading-marker"]),new BW(["data-render","2"])]),false);d.BaseRenderer.Newline();l=d.BaseRenderer.setextHeadingLen(a);$s=13;case 13:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;if(1===a.HeadingLevel){d.BaseRenderer.WriteString(D.Repeat("=",m));}else{d.BaseRenderer.WriteString(D.Repeat("-",m));}d.BaseRenderer.Tag("/span",BY.nil,false);case 12:d.BaseRenderer.WriteString(">0))+">");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};BM.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};BM.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};BM.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","heading-id"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString(" {"+($bytesToString(a.Tokens))+"}");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BM.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};BM.ptr.prototype.renderList=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;e="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){e="ol";}if(b){$s=1;continue;}$s=2;continue;case 1:c[0]=BY.nil;if(0===a.ListData.BulletChar){if(!((1===a.ListData.Start))){c[0]=$append(c[0],new BW(["start",H.Itoa(a.ListData.Start)]));}}f=a.ListData.Typ;if(f===(0)){c[0]=$append(c[0],new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(f===(1)){c[0]=$append(c[0],new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(f===(3)){if(0===a.ListData.BulletChar){c[0]=$append(c[0],new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{c[0]=$append(c[0],new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}}c[0]=$append(c[0],new BW(["data-block","0"]));g=d.NodeID(a);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}c[0]=$append(c[0],new BW(["data-node-id",g]));h=d.BaseRenderer.NodeAttrs(a);if(0=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if("id"===(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0])){b=(1>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+1]);$s=-1;return b;}e++;}g=A.NewNodeID();$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}b=g;$s=-1;return b;}return;}if($f===undefined){$f={$blk:BM.ptr.prototype.NodeID};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BM.prototype.NodeID=function(a){return this.$val.NodeID(a);};BM.ptr.prototype.renderListItem=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=this;if(b){$s=1;continue;}$s=2;continue;case 1:c[0]=BY.nil;e=a.ListData.Typ;if(e===(0)){c[0]=$append(c[0],new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(e===(1)){c[0]=$append(c[0],new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(e===(3)){if(0===a.ListData.BulletChar){c[0]=$append(c[0],new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{c[0]=$append(c[0],new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}if(!(BZ.nil===a.FirstChild)){f=a.FirstChild.FirstChild;if(BZ.nil===f){f=a.FirstChild;}if(!(BZ.nil===f)){g=d.BaseRenderer.Options.GFMTaskListItemClass;if(f.TaskListItemChecked){g=g+(" vditor-task--done");}c[0]=$append(c[0],new BW(["class",g]));}}}h=d.NodeID(a);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}c[0]=$append(c[0],new BW(["data-node-id",h]));i=d.BaseRenderer.NodeAttrs(a);if(0");}else{c.BaseRenderer.WriteString("");}return 2;};BQ.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};BQ.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c,d,e;c=this;if(b){d=a.FirstChild.ChildByType(41).Tokens;e=F.BytesToStr(d);c.BaseRenderer.WriteString("["+F.BytesToStr(a.Tokens)+"]:");if(!("\xE2\x80\xB8"===e)){c.BaseRenderer.WriteString(" ");}c.BaseRenderer.WriteString(e+"\n");}return 1;};BQ.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};BQ.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 2;};BQ.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};BQ.ptr.prototype.renderMark=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderMark};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};BQ.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("mark",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};BQ.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};BQ.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("mark",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};BQ.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};BQ.ptr.prototype.renderSup=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderSup};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};BQ.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("sup",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};BQ.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sup",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};BQ.ptr.prototype.renderSub=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderSub};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};BQ.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("sub",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};BQ.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sub",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};BQ.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-close-marker"])]),false);c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};BQ.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.Tokens=d;e=a.Tokens.$length;f=1>e||((3===e)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__marker--pre"])]),false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","yaml-front-matter"]),new BW(["class","language-yaml"])]),false);if(f){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}c.BaseRenderer.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderYamlFrontMatterContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};BQ.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-open-marker"])]),false);c.BaseRenderer.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};BQ.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderYamlFrontMatter};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};BQ.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["data-newline","1"]),new BW(["class","vditor-ir__marker vditor-ir__marker--pre"]),new BW(["data-type","html-entity"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.HtmlEntityTokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("code",BY.nil,false);c.BaseRenderer.Write(a.HtmlEntityTokens);c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderHtmlEntity};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};BQ.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};BQ.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};BQ.ptr.prototype.renderBackslash=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteByte(92);c.BaseRenderer.WriteString("");$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderBackslash};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};BQ.ptr.prototype.renderToC=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=c.BaseRenderer.renderToC(a,b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};BQ.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BQ.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};BQ.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];c[0]=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(c[0].BaseRenderer.RenderingFootnotes){$s=-1;return 2;}c[0].BaseRenderer.WriteString("
        ");c[0].BaseRenderer.WriteString("["+($bytesToString(a.Tokens))+"]: ");d=a.FirstChild;case 3:if(!(!(BZ.nil===d))){$s=4;continue;}$r=A.Walk(d,(function(c){return function $b(e,f){var e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:h=(g=c[0].BaseRenderer.RendererFuncs[A.NodeType.keyFor(e.Type)],g!==undefined?g.v:$throwNilPointerError)(e,f);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:$b};}$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};})(c));$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=3;continue;case 4:c[0].BaseRenderer.WriteString("
        ");$s=-1;return 1;case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};BQ.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.PreviousNodeText();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}g=c.BaseRenderer.Tree.FindFootnotesDef(a.Tokens);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[0];i=f[1];j=H.Itoa(h);k=i.Text();$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=new BY([new BW(["data-type","footnotes-ref"])]);n=a.Text();$s=4;case 4:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=D.Contains(o,"\xE2\x80\xB8");if(p){m=$append(m,new BW(["class","vditor-ir__node vditor-ir__node--expand vditor-tooltipped vditor-tooltipped__s"]));}else{m=$append(m,new BW(["class","vditor-ir__node vditor-tooltipped vditor-tooltipped__s"]));}q=B.EscapeString(l);$s=5;case 5:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}r=AO(q,24);$s=6;case 6:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}m=$append(m,new BW(["aria-label",r]));m=$append(m,new BW(["data-footnotes-label",($bytesToString(a.FootnotesRefLabel))]));c.BaseRenderer.Tag("sup",m,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--link"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker--hide"]),new BW(["data-render","1"])]),false);c.BaseRenderer.WriteString(j);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.WriteString("\xE2\x80\x8B");$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderFootnotesRef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};BQ.ptr.prototype.renderCodeBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-close-marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCodeBlockCloseMarker=function(a,b){return this.$val.renderCodeBlockCloseMarker(a,b);};BQ.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--info"]),new BW(["data-type","code-block-info"])]),false);c.BaseRenderer.WriteString("\xE2\x80\x8B");c.BaseRenderer.Write(a.CodeBlockInfo);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};BQ.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-open-marker"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};BQ.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderCodeBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};BQ.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.Tokens.$length;e=1>d||((3===d)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));f=a.Parent.IsFencedCodeBlock;g=false;h="";if(f){g=G.Contains(a.Previous.CodeBlockInfo,F.CaretTokens);a.Previous.CodeBlockInfo=G.ReplaceAll(a.Previous.CodeBlockInfo,F.CaretTokens,BX.nil);}i=BY.nil;if(f&&0=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+0])));i=$append(i,new BW(["class","language-"+h]));if("mindmap"===h){$s=3;continue;}$s=4;continue;case 3:k=c.BaseRenderer.RenderMindmap(a.Tokens);$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;i=$append(i,new BW(["data-code",($bytesToString(l))]));case 4:case 2:m="vditor-ir__marker--pre";if(c.BaseRenderer.Options.VditorCodeBlockPreview){m=m+(" vditor-ir__marker");}c.BaseRenderer.Tag("pre",new BY([new BW(["class",m])]),false);c.BaseRenderer.Tag("code",i,false);if(e){if(!g){c.BaseRenderer.WriteString("");}c.BaseRenderer.WriteByte(10);}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Newline();}c.BaseRenderer.WriteString("");if(c.BaseRenderer.Options.VditorCodeBlockPreview){c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);n=c.BaseRenderer.NoHighlight(h);if(n){c.BaseRenderer.Tag("div",i,false);}else{c.BaseRenderer.Tag("code",i,false);}o=a.Tokens;o=G.ReplaceAll(o,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(o));if(n){c.BaseRenderer.WriteString("");}else{c.BaseRenderer.WriteString("");}}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderCodeBlockCode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderCodeBlockCode=function(a,b){return this.$val.renderCodeBlockCode(a,b);};BQ.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 2;};BQ.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};BQ.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("");c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.FirstChild.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};BQ.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("");c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(a.FirstChild.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};BQ.ptr.prototype.renderEmoji=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}$r=c.renderSpanNode(a);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderEmoji};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};BQ.ptr.prototype.renderInlineMathCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderInlineMathCloseMarker=function(a,b){return this.$val.renderInlineMathCloseMarker(a,b);};BQ.ptr.prototype.renderInlineMathContent=function(a,b){var a,b,c,d;c=this;if(b){d=B.EscapeHTML(a.Tokens);c.BaseRenderer.Write(d);c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("span",new BY([new BW(["class","language-math"])]),false);d=G.ReplaceAll(d,F.CaretTokens,BX.nil);c.BaseRenderer.Write(d);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderInlineMathContent=function(a,b){return this.$val.renderInlineMathContent(a,b);};BQ.ptr.prototype.renderInlineMathOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("code",new BY([new BW(["data-newline","1"]),new BW(["class","vditor-ir__marker vditor-ir__marker--pre"]),new BW(["data-type","math-inline"])]),false);}return 2;};BQ.prototype.renderInlineMathOpenMarker=function(a,b){return this.$val.renderInlineMathOpenMarker(a,b);};BQ.ptr.prototype.renderInlineMath=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderInlineMath};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};BQ.ptr.prototype.renderMathBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-close-marker"])]),false);c.BaseRenderer.Write(E.MathBlockMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderMathBlockCloseMarker=function(a,b){return this.$val.renderMathBlockCloseMarker(a,b);};BQ.ptr.prototype.renderMathBlockContent=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=G.TrimSpace(a.Tokens);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}a.Tokens=d;e=a.Tokens.$length;f=1>e||((3===e)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));g="vditor-ir__marker--pre";if(c.BaseRenderer.Options.VditorMathBlockPreview){g=g+(" vditor-ir__marker");}c.BaseRenderer.Tag("pre",new BY([new BW(["class",g])]),false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","math-block"]),new BW(["class","language-math"])]),false);if(f){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}c.BaseRenderer.WriteString("");if(c.BaseRenderer.Options.VditorMathBlockPreview){c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("div",new BY([new BW(["data-type","math-block"]),new BW(["class","language-math"])]),false);h=a.Tokens;h=G.ReplaceAll(h,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(h));c.BaseRenderer.WriteString("");}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderMathBlockContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderMathBlockContent=function(a,b){return this.$val.renderMathBlockContent(a,b);};BQ.ptr.prototype.renderMathBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-open-marker"])]),false);c.BaseRenderer.Write(E.MathBlockMarker);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderMathBlockOpenMarker=function(a,b){return this.$val.renderMathBlockOpenMarker(a,b);};BQ.ptr.prototype.renderMathBlock=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderDivNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.WriteString("");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderMathBlock};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};BQ.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d="td";if(107===a.Parent.Parent.Type){d="th";}if(b){$s=1;continue;}$s=2;continue;case 1:e=BY.nil;f=a.TableCellAlign;if(f===(1)){e=$append(e,new BW(["align","left"]));}else if(f===(2)){e=$append(e,new BW(["align","center"]));}else if(f===(3)){e=$append(e,new BW(["align","right"]));}c.BaseRenderer.Tag(d,e,false);if(BZ.nil===a.FirstChild){$s=4;continue;}if(G.Equal(a.FirstChild.Tokens,F.CaretTokens)){$s=5;continue;}$s=6;continue;case 4:a.AppendChild(new A.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CD.nil,(new BX($stringToBytes(" "))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CG.nil,false,CK.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CD.nil,BX.nil,BY.nil));$s=7;continue;case 5:a.FirstChild.Tokens=(new BX($stringToBytes("\xE2\x80\xB8 ")));$s=7;continue;case 6:g=G.TrimSpace(a.FirstChild.Tokens);$s=8;case 8:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}a.FirstChild.Tokens=g;case 7:$s=3;continue;case 2:c.BaseRenderer.Tag("/"+d,BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderTableCell};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};BQ.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("tr",BY.nil,false);}else{c.BaseRenderer.Tag("/tr",BY.nil,false);}return 2;};BQ.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};BQ.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("thead",BY.nil,false);}else{c.BaseRenderer.Tag("/thead",BY.nil,false);if(!(BZ.nil===a.Next)){c.BaseRenderer.Tag("tbody",BY.nil,false);}}return 2;};BQ.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};BQ.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("table",new BY([new BW(["data-block","0"]),new BW(["data-type","table"])]),false);}else{if(!(BZ.nil===a.FirstChild.Next)){c.BaseRenderer.Tag("/tbody",BY.nil,false);}c.BaseRenderer.Tag("/table",BY.nil,false);}return 2;};BQ.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};BQ.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderStrikethrough};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};BQ.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("s",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};BQ.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/s",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};BQ.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~~");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("s",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};BQ.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/s",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString("~~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};BQ.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--title"])]),false);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};BQ.ptr.prototype.renderLinkDest=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--link"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};BQ.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.WriteByte(32);}return 2;};BQ.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};BQ.ptr.prototype.renderLinkText=function(a,b){var a,b,c;c=this;if(b){if(34===a.Parent.Type){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);}else{if(3===a.Parent.LinkType){c.BaseRenderer.Tag("span",BY.nil,false);}else{c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__link"])]),false);}}c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};BQ.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--paren"])]),false);c.BaseRenderer.WriteByte(41);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};BQ.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--paren"])]),false);c.BaseRenderer.WriteByte(40);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};BQ.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--brace"])]),false);c.BaseRenderer.WriteByte(125);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};BQ.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--brace"])]),false);c.BaseRenderer.WriteByte(123);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};BQ.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);if(3===a.Parent.LinkType){d=a.Parent.ChildByType(40);if(BZ.nil===d||!G.EqualFold(a.Parent.LinkRefLabel,d.Tokens)){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--link"])]),false);c.BaseRenderer.WriteByte(91);c.BaseRenderer.Write(a.Parent.LinkRefLabel);c.BaseRenderer.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);}}}return 2;};BQ.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};BQ.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bracket"])]),false);c.BaseRenderer.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};BQ.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteByte(33);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};BQ.ptr.prototype.renderImage=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=!(BZ.nil===a.Next)&&(16===a.Next.Type)&&G.HasPrefix(a.Next.Tokens,F.CaretTokens);if(b){$s=1;continue;}$s=2;continue;case 1:if(3===a.LinkType){a.ChildByType(38).Unlink();a.ChildByType(41).Unlink();e=a.ChildByType(43);if(!(BZ.nil===e)){e.Unlink();a.ChildByType(42).Unlink();}a.ChildByType(39).Unlink();}f=c.Text(a);$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h="vditor-ir__node";if(D.Contains(g,"\xE2\x80\xB8")||d){h=h+(" vditor-ir__node--expand");}c.BaseRenderer.Tag("span",new BY([new BW(["class",h]),new BW(["data-type","img"])]),false);$s=3;continue;case 2:if(d){c.BaseRenderer.WriteString("\xE2\x80\xB8");a.Next.Tokens=G.ReplaceAll(a.Next.Tokens,F.CaretTokens,BX.nil);}i=a;if(3===a.LinkType){$s=5;continue;}$s=6;continue;case 5:j=c.BaseRenderer.Tree.FindLinkRefDefLink(a.LinkRefLabel);$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=j;case 6:k=i.ChildByType(41).Tokens;k=c.BaseRenderer.LinkPath(k);k=G.ReplaceAll(k,F.CaretTokens,BX.nil);l=new BY([new BW(["src",($bytesToString(k))])]);m=a.ChildByType(40);if(!(BZ.nil===m)&&0");c.BaseRenderer.Tag("code",new BY([new BW(["data-type","html-block"])]),false);c.BaseRenderer.Write(B.EscapeHTML(e));c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-ir__preview"]),new BW(["data-render","2"])]),false);e=G.ReplaceAll(e,F.CaretTokens,BX.nil);if(c.BaseRenderer.Options.Sanitize){$s=5;continue;}$s=6;continue;case 5:f=AY(e);$s=7;case 7:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;case 6:c.BaseRenderer.Write(e);c.BaseRenderer.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};BQ.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=G.Equal(a.Tokens,(new BX($stringToBytes(""))));e=G.Equal(a.Tokens,(new BX($stringToBytes(""))));if(d||e){$s=1;continue;}$s=2;continue;case 1:if(d){$s=4;continue;}$s=5;continue;case 4:if(c.tagMatchClose("kbd",a)){$s=7;continue;}$s=8;continue;case 7:$r=c.renderSpanNode(a);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("kbd",BY.nil,false);$s=9;continue;case 8:$r=c.renderSpanNode(a);$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 9:$s=6;continue;case 5:if(c.tagMatchOpen("kbd",a)){$s=12;continue;}$s=13;continue;case 12:c.BaseRenderer.Tag("/kbd",BY.nil,false);$r=c.renderSpanNode(a);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);$s=14;continue;case 13:$r=c.renderSpanNode(a);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 14:case 6:$s=3;continue;case 2:$r=c.renderSpanNode(a);$s=17;case 17:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.Tag("code",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderInlineHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};BQ.ptr.prototype.tagMatchClose=function(a,b){var a,b,c,d;c=this;d=b.Next;while(true){if(!(!(BZ.nil===d))){break;}if((10===d.Type)&&""===d.TokensStr()){return true;}d=d.Next;}return false;};BQ.prototype.tagMatchClose=function(a,b){return this.$val.tagMatchClose(a,b);};BQ.ptr.prototype.tagMatchOpen=function(a,b){var a,b,c,d;c=this;d=b.Previous;while(true){if(!(!(BZ.nil===d))){break;}if((10===d.Type)&&"<"+a+">"===d.TokensStr()){return true;}d=d.Previous;}return false;};BQ.prototype.tagMatchOpen=function(a,b){return this.$val.tagMatchOpen(a,b);};BQ.ptr.prototype.renderDocument=function(a,b){var a,b,c;c=this;return 2;};BQ.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};BQ.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d;c=this;d=a.Parent.Parent;if(!(BZ.nil===d)&&(7===d.Type)&&d.ListData.Tight){return 2;}if(b){c.BaseRenderer.Tag("p",new BY([new BW(["data-block","0"])]),false);}else{c.BaseRenderer.Tag("/p",BY.nil,false);}return 2;};BQ.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};BQ.ptr.prototype.renderText=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.Tokens;if(c.BaseRenderer.Options.FixTermTypo){$s=3;continue;}$s=4;continue;case 3:e=c.BaseRenderer.FixTermTypo(d);$s=5;case 5:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 4:if(!G.EqualFold(d,(new BX($stringToBytes("\xE2\x80\xB8\xE2\x80\x8B"))))){d=G.ReplaceAll(d,(new BX($stringToBytes("\xE2\x80\x8B"))),BX.nil);}c.BaseRenderer.Write(B.EscapeHTML(d));case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderText=function(a,b){return this.$val.renderText(a,b);};BQ.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderCodeSpan};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};BQ.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));if(G.HasPrefix(a.Next.Tokens,(new BX($stringToBytes("`"))))){c.BaseRenderer.WriteByte(32);}c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("code",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderCodeSpanOpenMarker=function(a,b){return this.$val.renderCodeSpanOpenMarker(a,b);};BQ.ptr.prototype.renderCodeSpanContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};BQ.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};BQ.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker"])]),false);if(G.HasSuffix(a.Previous.Tokens,(new BX($stringToBytes("`"))))){c.BaseRenderer.WriteByte(32);}c.BaseRenderer.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderCodeSpanCloseMarker=function(a,b){return this.$val.renderCodeSpanCloseMarker(a,b);};BQ.ptr.prototype.renderEmphasis=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderEmphasis};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderEmphasis=function(a,b){return this.$val.renderEmphasis(a,b);};BQ.ptr.prototype.renderEmAsteriskOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("em",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderEmAsteriskOpenMarker=function(a,b){return this.$val.renderEmAsteriskOpenMarker(a,b);};BQ.ptr.prototype.renderEmAsteriskCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderEmAsteriskCloseMarker=function(a,b){return this.$val.renderEmAsteriskCloseMarker(a,b);};BQ.ptr.prototype.renderEmUnderscoreOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("em",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderEmUnderscoreOpenMarker=function(a,b){return this.$val.renderEmUnderscoreOpenMarker(a,b);};BQ.ptr.prototype.renderEmUnderscoreCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderEmUnderscoreCloseMarker=function(a,b){return this.$val.renderEmUnderscoreCloseMarker(a,b);};BQ.ptr.prototype.renderStrong=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:$r=c.renderSpanNode(a);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 2:c.BaseRenderer.Tag("/span",BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderStrong};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderStrong=function(a,b){return this.$val.renderStrong(a,b);};BQ.ptr.prototype.renderStrongA6kOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("strong",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderStrongA6kOpenMarker=function(a,b){return this.$val.renderStrongA6kOpenMarker(a,b);};BQ.ptr.prototype.renderStrongA6kCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderStrongA6kCloseMarker=function(a,b){return this.$val.renderStrongA6kCloseMarker(a,b);};BQ.ptr.prototype.renderStrongU8eOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("strong",new BY([new BW(["data-newline","1"])]),false);}return 2;};BQ.prototype.renderStrongU8eOpenMarker=function(a,b){return this.$val.renderStrongU8eOpenMarker(a,b);};BQ.ptr.prototype.renderStrongU8eCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--bi"])]),false);c.BaseRenderer.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderStrongU8eCloseMarker=function(a,b){return this.$val.renderStrongU8eCloseMarker(a,b);};BQ.ptr.prototype.renderBlockquote=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BQ.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};BQ.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};BQ.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};BQ.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=c.Text(a);$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=a.ChildByType(420);if(D.Contains(e,"\xE2\x80\xB8")||(!(BZ.nil===f)&&G.Contains(f.Tokens,F.CaretTokens))){c.BaseRenderer.WriteString(">0))+" data-block=\"0\" class=\"vditor-ir__node vditor-ir__node--expand\"");}else{c.BaseRenderer.WriteString(">0))+" data-block=\"0\" class=\"vditor-ir__node\"");}g="";if(!(BZ.nil===f)){g=($bytesToString(f.Tokens));}if(""===g){$s=5;continue;}$s=6;continue;case 5:h=AP(a);$s=7;case 7:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;case 6:c.BaseRenderer.WriteString(" id=\"ir-"+g+"\"");if(!a.HeadingSetext){c.BaseRenderer.WriteString(" data-marker=\"#\">");}else{if(1===a.HeadingLevel){c.BaseRenderer.WriteString(" data-marker=\"=\">");}else{c.BaseRenderer.WriteString(" data-marker=\"-\">");}}if(c.BaseRenderer.Options.HeadingAnchor){$s=8;continue;}$s=9;continue;case 8:i=AP(a);$s=10;case 10:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;c.BaseRenderer.Tag("a",new BY([new BW(["id","vditorAnchor-"+j]),new BW(["class","vditor-anchor"]),new BW(["href","#"+j])]),false);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("/a",BY.nil,false);case 9:if(!a.HeadingSetext){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--heading"]),new BW(["data-type","heading-marker"])]),false);c.BaseRenderer.WriteString(D.Repeat("#",a.HeadingLevel)+" ");c.BaseRenderer.Tag("/span",BY.nil,false);}$s=3;continue;case 2:if(a.HeadingSetext){$s=11;continue;}$s=12;continue;case 11:c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-ir__marker vditor-ir__marker--heading"]),new BW(["data-type","heading-marker"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Newline();k=c.BaseRenderer.setextHeadingLen(a);$s=13;case 13:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;if(1===a.HeadingLevel){c.BaseRenderer.WriteString(D.Repeat("=",l));}else{c.BaseRenderer.WriteString(D.Repeat("-",l));}c.BaseRenderer.Tag("/span",BY.nil,false);case 12:c.BaseRenderer.WriteString(">0))+">");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};BQ.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};BQ.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};BQ.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","heading-id"]),new BW(["class","vditor-ir__marker"])]),false);c.BaseRenderer.WriteString(" {"+($bytesToString(a.Tokens))+"}");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BQ.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};BQ.ptr.prototype.renderList=function(a,b){var a,b,c,d,e,f,g;c=this;d="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){d="ol";}if(b){e=BY.nil;if(a.ListData.Tight){e=$append(e,new BW(["data-tight","true"]));}if(0===a.ListData.BulletChar){if(!((1===a.ListData.Start))){e=$append(e,new BW(["start",H.Itoa(a.ListData.Start)]));}}f=a.ListData.Typ;if(f===(0)){e=$append(e,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(f===(1)){e=$append(e,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(f===(3)){if(0===a.ListData.BulletChar){e=$append(e,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{e=$append(e,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}}e=$append(e,new BW(["data-block","0"]));c.BaseRenderer.renderListStyle(a,(g||(g=new CL(function(){return e;},function($v){e=$subslice(new BY($v.$array),$v.$offset,$v.$offset+$v.$length);}))));c.BaseRenderer.Tag(d,e,false);}else{c.BaseRenderer.Tag("/"+d,BY.nil,false);}return 2;};BQ.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};BQ.ptr.prototype.renderListItem=function(a,b){var a,b,c,d,e;c=this;if(b){d=BY.nil;e=a.ListData.Typ;if(e===(0)){d=$append(d,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(e===(1)){d=$append(d,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(e===(3)){if(0===a.ListData.BulletChar){d=$append(d,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{d=$append(d,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}if(!(BZ.nil===a.FirstChild)&&!(BZ.nil===a.FirstChild.FirstChild)&&(100===a.FirstChild.FirstChild.Type)){d=$append(d,new BW(["class",c.BaseRenderer.Options.GFMTaskListItemClass]));}}c.BaseRenderer.Tag("li",d,false);}else{c.BaseRenderer.Tag("/li",BY.nil,false);}return 2;};BQ.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};BQ.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;if(a.TaskListItemChecked){d=$append(d,new BW(["checked",""]));}d=$append(d,new BW(["type","checkbox"]));c.BaseRenderer.Tag("input",d,true);}return 2;};BQ.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};BQ.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("hr",new BY([new BW(["data-block","0"])]),true);}return 2;};BQ.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};BQ.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("br",BY.nil,true);}return 2;};BQ.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};BQ.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(10);}return 2;};BQ.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};BQ.ptr.prototype.renderSpanNode=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.Text(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=BY.nil;f=a.Type;if(f===(17)){e=$append(e,new BW(["data-type","em"]));}else if(f===(22)){e=$append(e,new BW(["data-type","strong"]));}else if(f===(101)){e=$append(e,new BW(["data-type","s"]));}else if(f===(450)){e=$append(e,new BW(["data-type","mark"]));}else if(f===(485)){e=$append(e,new BW(["data-type","sup"]));}else if(f===(490)){e=$append(e,new BW(["data-type","sub"]));}else if(f===(33)){if(!((3===a.LinkType))){e=$append(e,new BW(["data-type","a"]));}else{e=$append(e,new BW(["data-type","link-ref"]));}}else if(f===(34)){e=$append(e,new BW(["data-type","img"]));}else if(f===(27)){e=$append(e,new BW(["data-type","code"]));}else if(f===(200)){e=$append(e,new BW(["data-type","emoji"]));}else if(f===(10)){e=$append(e,new BW(["data-type","html-inline"]));}else if(f===(44)){e=$append(e,new BW(["data-type","html-entity"]));}else if(f===(400)){e=$append(e,new BW(["data-type","backslash"]));}else{e=$append(e,new BW(["data-type","inline-node"]));}if(D.Contains(d,"\xE2\x80\xB8")){e=$append(e,new BW(["class","vditor-ir__node vditor-ir__node--expand"]));b.BaseRenderer.Tag("span",e,false);$s=-1;return;}g=a.PreviousNodeText();$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(D.HasSuffix(h,"\xE2\x80\xB8")){e=$append(e,new BW(["class","vditor-ir__node vditor-ir__node--expand"]));b.BaseRenderer.Tag("span",e,false);$s=-1;return;}i=a.NextNodeText();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;if(D.HasPrefix(j,"\xE2\x80\xB8")){e=$append(e,new BW(["class","vditor-ir__node vditor-ir__node--expand"]));b.BaseRenderer.Tag("span",e,false);$s=-1;return;}e=$append(e,new BW(["class","vditor-ir__node"]));b.BaseRenderer.Tag("span",e,false);$s=-1;return;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderSpanNode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderSpanNode=function(a){return this.$val.renderSpanNode(a);};BQ.ptr.prototype.renderDivNode=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=b.Text(a);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;e=new BY([new BW(["data-block","0"])]);f=a.Type;if(f===(11)){e=$append(e,new BW(["data-type","code-block"]));}else if(f===(9)){e=$append(e,new BW(["data-type","html-block"]));}else if(f===(300)){e=$append(e,new BW(["data-type","math-block"]));}else if(f===(425)){e=$append(e,new BW(["data-type","yaml-front-matter"]));}if(D.Contains(d,"\xE2\x80\xB8")){e=$append(e,new BW(["class","vditor-ir__node vditor-ir__node--expand"]));b.BaseRenderer.Tag("div",e,false);$s=-1;return;}e=$append(e,new BW(["class","vditor-ir__node"]));b.BaseRenderer.Tag("div",e,false);$s=-1;return;}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.renderDivNode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.renderDivNode=function(a){return this.$val.renderDivNode(a);};BQ.ptr.prototype.Text=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];b[0]="";c=this;$r=A.Walk(a,(function(b){return function(d,e){var d,e,f;if(e){f=d.Type;if((f===(16))||(f===(40))||(f===(41))||(f===(42))||(f===(15))||(f===(29))||(f===(306))||(f===(302))||(f===(427))||(f===(9))||(f===(10))||(f===(203))){b[0]=b[0]+(($bytesToString(d.Tokens)));}else if(f===(14)){b[0]=b[0]+(($bytesToString(d.CodeBlockInfo)));}else if(f===(33)){if(3===d.LinkType){b[0]=b[0]+(($bytesToString(d.LinkRefLabel)));}}}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}if($f===undefined){$f={$blk:BQ.ptr.prototype.Text};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BQ.prototype.Text=function(a){return this.$val.Text(a);};BS.ptr.prototype.WriteByte=function(a){var a,b;b=this;b.BaseRenderer.Writer.WriteByte(a);b.LastOut=$append(b.LastOut,a);if(1024:");if(!("\xE2\x80\xB8"===e)){c.WriteString(" ");}c.WriteString("");c.WriteString(e);c.Newline();c.Write($pkg.NewlineSV);}return 1;};BS.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};BS.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;if(b){c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["data-type","kramdown-ial"]),new BW(["class","vditor-sv__marker"])]),false);c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}return 2;};BS.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};BS.ptr.prototype.renderMark=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"mark");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderMark};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};BS.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};BS.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("=");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};BS.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};BS.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("==");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};BS.ptr.prototype.renderSup=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"sup");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderSup};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};BS.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};BS.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("^");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};BS.ptr.prototype.renderSub=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"sub");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderSub};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};BS.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};BS.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};BS.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-close-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};BS.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Tag("span",new BY([new BW(["data-type","text"])]),false);d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.EscapeHTML(d);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=$appendSlice((new BX($stringToBytes(""))),$pkg.NewlineSV);f=G.ReplaceAll(f,(new BX($stringToBytes("\n"))),g);c.Write(f);c.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderYamlFrontMatterContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};BS.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","yaml-front-matter-open-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.Write(E.YamlFrontMatterMarker);c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}return 2;};BS.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};BS.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};BS.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--pre"]),new BW(["data-type","html-entity"])]),false);c.Write(B.EscapeHTML(a.HtmlEntityTokens));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};BS.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.Write(B.EscapeHTML(a.Tokens));}return 2;};BS.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};BS.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;if(b){c.WriteString("");c.WriteString("");c.WriteByte(92);c.WriteString("");}else{c.WriteString("");}return 2;};BS.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};BS.ptr.prototype.renderToC=function(a,b){var a,b,c;c=this;if(b){c.WriteString("");c.WriteString("[toc]");c.WriteString("");c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};BS.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};BS.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];c[0]=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(c[0].BaseRenderer.RenderingFootnotes){$s=-1;return 2;}c[0].BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c[0].WriteByte(91);c[0].BaseRenderer.Tag("/span",BY.nil,false);c[0].BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--link"]),new BW(["data-type","footnotes-link"])]),false);c[0].Write(a.Tokens);c[0].BaseRenderer.Tag("/span",BY.nil,false);c[0].BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c[0].WriteByte(93);c[0].BaseRenderer.Tag("/span",BY.nil,false);c[0].WriteString(": ");d=a.FirstChild;case 3:if(!(!(BZ.nil===d))){$s=4;continue;}$r=A.Walk(d,(function(c){return function $b(e,f){var e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:h=(g=c[0].BaseRenderer.RendererFuncs[A.NodeType.keyFor(e.Type)],g!==undefined?g.v:$throwNilPointerError)(e,f);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:$b};}$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};})(c));$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=3;continue;case 4:$s=-1;return 1;case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};BS.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.PreviousNodeText();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");g=c.BaseRenderer.Tree.FindFootnotesDef(a.Tokens);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[1];i=h.Text();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=new BY([new BW(["data-type","footnotes-ref"])]);k=$append(k,new BW(["class","b3-tooltips b3-tooltips__s"]));l=B.EscapeString(j);$s=4;case 4:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=AO(l,24);$s=5;case 5:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}k=$append(k,new BW(["aria-label",m]));k=$append(k,new BW(["data-footnotes-label",($bytesToString(a.FootnotesRefLabel))]));c.BaseRenderer.Tag("span",new BY([new BW(["class","sup"])]),false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--link"])]),false);c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderFootnotesRef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};BS.ptr.prototype.renderCodeBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-close-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}return 2;};BS.prototype.renderCodeBlockCloseMarker=function(a,b){return this.$val.renderCodeBlockCloseMarker(a,b);};BS.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--info"]),new BW(["data-type","code-block-info"])]),false);c.Write(a.CodeBlockInfo);c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}return 2;};BS.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};BS.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-open-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};BS.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c;c=this;if(b){if(!a.IsFencedCodeBlock){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","code-block-open-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.WriteString("```");c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}}else{if(!a.IsFencedCodeBlock){c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--info"]),new BW(["data-type","code-block-info"])]),false);c.WriteString("```");c.BaseRenderer.Tag("/span",BY.nil,false);}c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};BS.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Tag("span",new BY([new BW(["data-type","text"])]),false);d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.EscapeHTML(d);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=$appendSlice((new BX($stringToBytes(""))),$pkg.NewlineSV);f=G.ReplaceAll(f,(new BX($stringToBytes("\n"))),g);c.Write(f);c.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderCodeBlockCode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderCodeBlockCode=function(a,b){return this.$val.renderCodeBlockCode(a,b);};BS.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;if(b){c.Write(a.Tokens);}return 2;};BS.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};BS.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};BS.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};BS.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};BS.ptr.prototype.renderInlineMathCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderInlineMathCloseMarker=function(a,b){return this.$val.renderInlineMathCloseMarker(a,b);};BS.ptr.prototype.renderInlineMathContent=function(a,b){var a,b,c,d;c=this;if(b){d=B.EscapeHTML(a.Tokens);c.Write(d);c.BaseRenderer.Tag("/code",BY.nil,false);}return 2;};BS.prototype.renderInlineMathContent=function(a,b){return this.$val.renderInlineMathContent(a,b);};BS.ptr.prototype.renderInlineMathOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteByte(36);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderInlineMathOpenMarker=function(a,b){return this.$val.renderInlineMathOpenMarker(a,b);};BS.ptr.prototype.renderInlineMath=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};BS.ptr.prototype.renderMathBlockCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-close-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.WriteString("$$");c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderMathBlockCloseMarker=function(a,b){return this.$val.renderMathBlockCloseMarker(a,b);};BS.ptr.prototype.renderMathBlockContent=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Tag("span",new BY([new BW(["data-type","text"])]),false);d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.EscapeHTML(d);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=$appendSlice((new BX($stringToBytes(""))),$pkg.NewlineSV);f=G.ReplaceAll(f,(new BX($stringToBytes("\n"))),g);c.Write(f);c.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderMathBlockContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderMathBlockContent=function(a,b){return this.$val.renderMathBlockContent(a,b);};BS.ptr.prototype.renderMathBlockOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","math-block-open-marker"]),new BW(["class","vditor-sv__marker"])]),false);c.WriteString("$$");c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();}return 2;};BS.prototype.renderMathBlockOpenMarker=function(a,b){return this.$val.renderMathBlockOpenMarker(a,b);};BS.ptr.prototype.renderMathBlock=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};BS.ptr.prototype.renderTableCell=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};BS.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};BS.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};BS.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","table"])]),false);c.Write(a.Tokens);c.Newline();c.Write($pkg.NewlineSV);c.BaseRenderer.Tag("/span",BY.nil,false);}return 1;};BS.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};BS.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"s");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderStrikethrough};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};BS.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};BS.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};BS.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};BS.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("~~");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};BS.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--title"])]),false);c.WriteByte(34);c.Write(a.Tokens);c.WriteByte(34);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};BS.ptr.prototype.renderLinkDest=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--link"])]),false);c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};BS.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.WriteByte(32);}return 2;};BS.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};BS.ptr.prototype.renderLinkText=function(a,b){var a,b,c;c=this;if(b){if(34===a.Parent.Type){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);}else{if(3===a.Parent.LinkType){c.BaseRenderer.Tag("span",BY.nil,false);}else{c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"]),new BW(["data-type","link-text"])]),false);}}c.Write(a.Tokens);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};BS.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--paren"])]),false);c.WriteByte(41);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};BS.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--paren"])]),false);c.WriteByte(40);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};BS.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--brace"])]),false);c.WriteByte(125);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};BS.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;if(b){if((33===a.Parent.Type)&&(3===a.Parent.LinkType)){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--brace"])]),false);c.WriteByte(123);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};BS.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c,d;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);if(3===a.Parent.LinkType){d=a.Parent.ChildByType(40);if(BZ.nil===d||!G.EqualFold(a.Parent.LinkRefLabel,d.Tokens)){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--link"])]),false);c.WriteByte(91);c.Write(a.Parent.LinkRefLabel);c.WriteByte(93);c.BaseRenderer.Tag("/span",BY.nil,false);}}}return 2;};BS.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};BS.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bracket"])]),false);c.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};BS.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteByte(33);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};BS.ptr.prototype.renderImage=function(a,b){var a,b,c,d;c=this;if(b){if(3===a.LinkType){a.ChildByType(38).Unlink();a.ChildByType(41).Unlink();d=a.ChildByType(43);if(!(BZ.nil===d)){d.Unlink();a.ChildByType(42).Unlink();}a.ChildByType(39).Unlink();}}return 2;};BS.prototype.renderImage=function(a,b){return this.$val.renderImage(a,b);};BS.ptr.prototype.renderLink=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderLink=function(a,b){return this.$val.renderLink(a,b);};BS.ptr.prototype.renderHTML=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=B.EscapeHTML(d);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=$appendSlice((new BX($stringToBytes(""))),$pkg.NewlineSV);f=G.ReplaceAll(f,(new BX($stringToBytes("\n"))),g);c.Write(f);c.WriteString("");c.Newline();c.Write($pkg.NewlineSV);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};BS.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};BS.ptr.prototype.renderDocument=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:c.nodeWriterStack=$subslice(c.nodeWriterStack,0,(c.nodeWriterStack.$length-1>>0));d=G.Trim(c.BaseRenderer.Writer.Bytes()," \t\n");$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;c.BaseRenderer.Writer.Reset();c.Write(e);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderDocument};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};BS.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d,e;c=this;if(b){c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);}else{c.Newline();d=a.Parent.Parent;e=!(BZ.nil===d)&&(7===d.Type)&&d.ListData.Tight;if(!e){c.Write($pkg.NewlineSV);}c.popWriter(a);}return 2;};BS.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};BS.ptr.prototype.renderText=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(a.ParentIs(109,new CF([]))){$s=-1;return 2;}if(b){$s=1;continue;}$s=2;continue;case 1:d=a.Tokens;if(c.BaseRenderer.Options.FixTermTypo){$s=3;continue;}$s=4;continue;case 3:e=c.BaseRenderer.FixTermTypo(d);$s=5;case 5:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 4:c.BaseRenderer.Tag("span",new BY([new BW(["data-type","text"])]),false);f=G.TrimRight(d,"\n");$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;c.Write(B.EscapeHTML(d));c.BaseRenderer.Tag("/span",BY.nil,false);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderText=function(a,b){return this.$val.renderText(a,b);};BS.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};BS.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));if(G.HasPrefix(a.Next.Tokens,(new BX($stringToBytes("`"))))){c.WriteByte(32);}c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",BY.nil,false);}return 2;};BS.prototype.renderCodeSpanOpenMarker=function(a,b){return this.$val.renderCodeSpanOpenMarker(a,b);};BS.ptr.prototype.renderCodeSpanContent=function(a,b){var a,b,c;c=this;if(b){c.Write(B.EscapeHTML(a.Tokens));}return 2;};BS.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};BS.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);if(G.HasSuffix(a.Previous.Tokens,(new BX($stringToBytes("`"))))){c.WriteByte(32);}c.WriteString(D.Repeat("`",a.Parent.CodeMarkerLen));c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderCodeSpanCloseMarker=function(a,b){return this.$val.renderCodeSpanCloseMarker(a,b);};BS.ptr.prototype.renderEmphasis=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"em");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderEmphasis};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderEmphasis=function(a,b){return this.$val.renderEmphasis(a,b);};BS.ptr.prototype.popWriteClass=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;c.nodeWriterStack=$subslice(c.nodeWriterStack,0,(c.nodeWriterStack.$length-1>>0));$r=c.renderClass(a,b);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}(d=c.nodeWriterStack,e=c.nodeWriterStack.$length-1>>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e])).Write(c.BaseRenderer.Writer.Bytes());c.BaseRenderer.Writer=(f=c.nodeWriterStack,g=c.nodeWriterStack.$length-1>>0,((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]));$s=-1;return;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.popWriteClass};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.popWriteClass=function(a,b){return this.$val.popWriteClass(a,b);};BS.ptr.prototype.popWriter=function(a){var a,b,c,d,e,f;b=this;b.nodeWriterStack=$subslice(b.nodeWriterStack,0,(b.nodeWriterStack.$length-1>>0));(c=b.nodeWriterStack,d=b.nodeWriterStack.$length-1>>0,((d<0||d>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d])).Write(b.BaseRenderer.Writer.Bytes());b.BaseRenderer.Writer=(e=b.nodeWriterStack,f=b.nodeWriterStack.$length-1>>0,((f<0||f>=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]));};BS.prototype.popWriter=function(a){return this.$val.popWriter(a);};BS.ptr.prototype.renderEmAsteriskOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderEmAsteriskOpenMarker=function(a,b){return this.$val.renderEmAsteriskOpenMarker(a,b);};BS.ptr.prototype.renderEmAsteriskCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(42);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderEmAsteriskCloseMarker=function(a,b){return this.$val.renderEmAsteriskCloseMarker(a,b);};BS.ptr.prototype.renderEmUnderscoreOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderEmUnderscoreOpenMarker=function(a,b){return this.$val.renderEmUnderscoreOpenMarker(a,b);};BS.ptr.prototype.renderEmUnderscoreCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(95);c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderEmUnderscoreCloseMarker=function(a,b){return this.$val.renderEmUnderscoreCloseMarker(a,b);};BS.ptr.prototype.renderStrong=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);$s=3;continue;case 2:$r=c.popWriteClass(a,"strong");$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderStrong};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderStrong=function(a,b){return this.$val.renderStrong(a,b);};BS.ptr.prototype.renderStrongA6kOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrongA6kOpenMarker=function(a,b){return this.$val.renderStrongA6kOpenMarker(a,b);};BS.ptr.prototype.renderStrongA6kCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteString("**");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrongA6kCloseMarker=function(a,b){return this.$val.renderStrongA6kCloseMarker(a,b);};BS.ptr.prototype.renderStrongU8eOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrongU8eOpenMarker=function(a,b){return this.$val.renderStrongU8eOpenMarker(a,b);};BS.ptr.prototype.renderStrongU8eCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteString("__");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderStrongU8eCloseMarker=function(a,b){return this.$val.renderStrongU8eCloseMarker(a,b);};BS.ptr.prototype.renderBlockquote=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l;c=this;if(b){c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);}else{f=(d=c.nodeWriterStack,e=c.nodeWriterStack.$length-1>>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]));c.nodeWriterStack=$subslice(c.nodeWriterStack,0,(c.nodeWriterStack.$length-1>>0));g=f.Bytes();h=(new BX($stringToBytes("> ")));g=$appendSlice(h,g);while(true){if(!(G.HasSuffix(g,$pkg.NewlineSV))){break;}g=G.TrimSuffix(g,$pkg.NewlineSV);}g=G.ReplaceAll(g,$pkg.NewlineSV,$appendSlice($pkg.NewlineSV,h));f.Reset();f.Write(g);(i=c.nodeWriterStack,j=c.nodeWriterStack.$length-1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j])).Write(f.Bytes());c.BaseRenderer.Writer=(k=c.nodeWriterStack,l=c.nodeWriterStack.$length-1>>0,((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]));g=c.BaseRenderer.Writer.Bytes();c.BaseRenderer.Writer.Reset();c.Write(g);c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};BS.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};BS.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);if(!a.HeadingSetext){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--heading"]),new BW(["data-type","heading-marker"])]),false);c.WriteString(D.Repeat("#",a.HeadingLevel)+" ");c.BaseRenderer.Tag("/span",BY.nil,false);}$s=3;continue;case 2:if(a.HeadingSetext){$s=4;continue;}$s=5;continue;case 4:c.Newline();c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker--heading"]),new BW(["data-type","heading-marker"])]),false);d=c.BaseRenderer.setextHeadingLen(a);$s=6;case 6:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(1===a.HeadingLevel){c.WriteString(D.Repeat("=",e));}else{c.WriteString(D.Repeat("-",e));}c.BaseRenderer.Tag("/span",BY.nil,false);case 5:f="h"+$substring(W,a.HeadingLevel,(a.HeadingLevel+1>>0));$r=c.renderClass(a,f);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.Newline();c.Write($pkg.NewlineSV);c.popWriter(a);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};BS.ptr.prototype.renderClass=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=c.BaseRenderer.Writer.Bytes();e=G.NewReader(d);f=new B.Node.ptr(CU.nil,CU.nil,CU.nil,CU.nil,CU.nil,3,0,"","",CR.nil);h=B.ParseFragment(e,f);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}g=h;i=g[0];c.BaseRenderer.Writer.Reset();j=0;case 2:if(!(j=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]);l=c.domAttrValue(k,"class");if(""===l){l=b;}else{l=l+(" "+b);}c.domSetAttrValue(k,"class",l);m=B.Render(c.BaseRenderer.Writer,k);$s=4;case 4:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}m;j=j+(1)>>0;$s=2;continue;case 3:$s=-1;return;}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.renderClass};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.renderClass=function(a,b){return this.$val.renderClass(a,b);};BS.ptr.prototype.domAttrValue=function(a,b){var a,b,c,d,e,f;c=this;if(CU.nil===a){return"";}d=a.Attr;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return f.Val;}e++;}return"";};BS.prototype.domAttrValue=function(a,b){return this.$val.domAttrValue(a,b);};BS.ptr.prototype.domSetAttrValue=function(a,b,c){var a,b,c,d,e,f,g;d=this;if(CU.nil===a){return;}e=a.Attr;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g.Key===b){g.Val=c;return;}f++;}a.Attr=$append(a.Attr,new B.Attribute.ptr("",b,c));};BS.prototype.domSetAttrValue=function(a,b,c){return this.$val.domSetAttrValue(a,b,c);};BS.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};BS.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};BS.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString(" {"+($bytesToString(a.Tokens))+"}");c.BaseRenderer.Tag("/span",BY.nil,false);}return 2;};BS.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};BS.ptr.prototype.renderList=function(a,b){var a,b,c;c=this;if(!b){c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};BS.ptr.prototype.renderListItem=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;c=this;if(b){c.BaseRenderer.Writer=new G.Buffer.ptr(BX.nil,0,0);c.nodeWriterStack=$append(c.nodeWriterStack,c.BaseRenderer.Writer);}else{f=(d=c.nodeWriterStack,e=c.nodeWriterStack.$length-1>>0,((e<0||e>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]));c.nodeWriterStack=$subslice(c.nodeWriterStack,0,(c.nodeWriterStack.$length-1>>0));g=f.Bytes();h="";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){h=H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter));}else{h=($bytesToString(a.ListData.Marker));}i=(new BX($stringToBytes(""+h+" ")));g=$appendSlice(i,g);while(true){if(!(G.HasSuffix(g,$pkg.NewlineSV))){break;}g=G.TrimSuffix(g,$pkg.NewlineSV);}j=(new BX($stringToBytes(""+D.Repeat(" ",a.ListData.Padding)+"")));g=G.ReplaceAll(g,$pkg.NewlineSV,$appendSlice($pkg.NewlineSV,j));f.Reset();f.Write(g);(k=c.nodeWriterStack,l=c.nodeWriterStack.$length-1>>0,((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l])).Write(f.Bytes());c.BaseRenderer.Writer=(m=c.nodeWriterStack,n=c.nodeWriterStack.$length-1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]));g=c.BaseRenderer.Writer.Bytes();c.BaseRenderer.Writer.Reset();c.Write(g);c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};BS.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c;c=this;if(!b){return 2;}c.BaseRenderer.Tag("span",new BY([new BW(["data-type","task-marker"]),new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(91);c.BaseRenderer.Tag("/span",BY.nil,false);if(a.TaskListItemChecked){c.BaseRenderer.Tag("span",new BY([new BW(["data-type","task-marker"]),new BW(["class","vditor-sv__marker--strong"])]),false);c.WriteByte(120);c.BaseRenderer.Tag("/span",BY.nil,false);}else{c.BaseRenderer.Tag("span",new BY([new BW(["data-type","task-marker"]),new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteByte(32);c.BaseRenderer.Tag("/span",BY.nil,false);}c.BaseRenderer.Tag("span",new BY([new BW(["data-type","task-marker"]),new BW(["class","vditor-sv__marker--bi"])]),false);c.WriteString("] ");c.BaseRenderer.Tag("/span",BY.nil,false);a.Next.Tokens=G.TrimPrefix(a.Next.Tokens,(new BX($stringToBytes(" "))));return 2;};BS.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};BS.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-sv__marker"])]),false);c.WriteString("---");c.BaseRenderer.Tag("/span",BY.nil,false);c.Newline();c.Write($pkg.NewlineSV);}return 2;};BS.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};BS.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.Newline();}return 2;};BS.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};BS.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.Newline();}return 2;};BS.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};BS.ptr.prototype.Text=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];b[0]="";c=this;$r=A.Walk(a,(function(b){return function(d,e){var d,e,f;if(e){f=d.Type;if((f===(16))||(f===(40))||(f===(41))||(f===(42))||(f===(15))||(f===(29))||(f===(306))||(f===(302))||(f===(9))||(f===(10))){b[0]=b[0]+(($bytesToString(d.Tokens)));}else if(f===(14)){b[0]=b[0]+(($bytesToString(d.CodeBlockInfo)));}else if(f===(33)){if(3===d.LinkType){b[0]=b[0]+(($bytesToString(d.LinkRefLabel)));}}}return 2;};})(b));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return b[0];}return;}if($f===undefined){$f={$blk:BS.ptr.prototype.Text};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BS.prototype.Text=function(a){return this.$val.Text(a);};BV=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=new BU.ptr(AN(a,b));d=0;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(d)]={k:d,v:$methodVal(c,"renderDocument")};e=1;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(e)]={k:e,v:$methodVal(c,"renderParagraph")};f=16;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(f)]={k:f,v:$methodVal(c,"renderText")};g=27;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(g)]={k:g,v:$methodVal(c,"renderCodeSpan")};h=28;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(h)]={k:h,v:$methodVal(c,"renderCodeSpanOpenMarker")};i=29;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(i)]={k:i,v:$methodVal(c,"renderCodeSpanContent")};j=30;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(j)]={k:j,v:$methodVal(c,"renderCodeSpanCloseMarker")};k=11;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(k)]={k:k,v:$methodVal(c,"renderCodeBlock")};l=12;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(l)]={k:l,v:$methodVal(c,"renderCodeBlockOpenMarker")};m=14;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(m)]={k:m,v:$methodVal(c,"renderCodeBlockInfoMarker")};n=15;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(n)]={k:n,v:$methodVal(c,"renderCodeBlockCode")};o=13;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(o)]={k:o,v:$methodVal(c,"renderCodeBlockCloseMarker")};p=300;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(p)]={k:p,v:$methodVal(c,"renderMathBlock")};q=301;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(q)]={k:q,v:$methodVal(c,"renderMathBlockOpenMarker")};r=302;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(r)]={k:r,v:$methodVal(c,"renderMathBlockContent")};s=303;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(s)]={k:s,v:$methodVal(c,"renderMathBlockCloseMarker")};t=304;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(t)]={k:t,v:$methodVal(c,"renderInlineMath")};u=305;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(u)]={k:u,v:$methodVal(c,"renderInlineMathOpenMarker")};v=306;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(v)]={k:v,v:$methodVal(c,"renderInlineMathContent")};w=307;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(w)]={k:w,v:$methodVal(c,"renderInlineMathCloseMarker")};x=17;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(x)]={k:x,v:$methodVal(c,"renderEmphasis")};y=18;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(y)]={k:y,v:$methodVal(c,"renderEmAsteriskOpenMarker")};z=19;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(z)]={k:z,v:$methodVal(c,"renderEmAsteriskCloseMarker")};aa=20;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aa)]={k:aa,v:$methodVal(c,"renderEmUnderscoreOpenMarker")};ab=21;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ab)]={k:ab,v:$methodVal(c,"renderEmUnderscoreCloseMarker")};ac=22;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ac)]={k:ac,v:$methodVal(c,"renderStrong")};ad=23;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ad)]={k:ad,v:$methodVal(c,"renderStrongA6kOpenMarker")};ae=24;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ae)]={k:ae,v:$methodVal(c,"renderStrongA6kCloseMarker")};af=25;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(af)]={k:af,v:$methodVal(c,"renderStrongU8eOpenMarker")};ag=26;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ag)]={k:ag,v:$methodVal(c,"renderStrongU8eCloseMarker")};ah=5;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ah)]={k:ah,v:$methodVal(c,"renderBlockquote")};ai=6;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ai)]={k:ai,v:$methodVal(c,"renderBlockquoteMarker")};aj=2;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aj)]={k:aj,v:$methodVal(c,"renderHeading")};ak=3;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ak)]={k:ak,v:$methodVal(c,"renderHeadingC8hMarker")};al=420;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(al)]={k:al,v:$methodVal(c,"renderHeadingID")};am=7;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(am)]={k:am,v:$methodVal(c,"renderList")};an=8;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(an)]={k:an,v:$methodVal(c,"renderListItem")};ao=4;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ao)]={k:ao,v:$methodVal(c,"renderThematicBreak")};ap=31;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ap)]={k:ap,v:$methodVal(c,"renderHardBreak")};aq=32;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aq)]={k:aq,v:$methodVal(c,"renderSoftBreak")};ar=9;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ar)]={k:ar,v:$methodVal(c,"renderHTML")};as=10;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(as)]={k:as,v:$methodVal(c,"renderInlineHTML")};at=33;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(at)]={k:at,v:$methodVal(c,"renderLink")};au=34;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(au)]={k:au,v:$methodVal(c,"renderImage")};av=35;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(av)]={k:av,v:$methodVal(c,"renderBang")};aw=36;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(aw)]={k:aw,v:$methodVal(c,"renderOpenBracket")};ax=37;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ax)]={k:ax,v:$methodVal(c,"renderCloseBracket")};ay=38;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ay)]={k:ay,v:$methodVal(c,"renderOpenParen")};az=39;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(az)]={k:az,v:$methodVal(c,"renderCloseParen")};ba=466;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ba)]={k:ba,v:$methodVal(c,"renderOpenBrace")};bb=467;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bb)]={k:bb,v:$methodVal(c,"renderCloseBrace")};bc=40;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bc)]={k:bc,v:$methodVal(c,"renderLinkText")};bd=43;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bd)]={k:bd,v:$methodVal(c,"renderLinkSpace")};be=41;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(be)]={k:be,v:$methodVal(c,"renderLinkDest")};bf=42;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bf)]={k:bf,v:$methodVal(c,"renderLinkTitle")};bg=101;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bg)]={k:bg,v:$methodVal(c,"renderStrikethrough")};bh=102;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bh)]={k:bh,v:$methodVal(c,"renderStrikethrough1OpenMarker")};bi=103;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bi)]={k:bi,v:$methodVal(c,"renderStrikethrough1CloseMarker")};bj=104;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bj)]={k:bj,v:$methodVal(c,"renderStrikethrough2OpenMarker")};bk=105;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bk)]={k:bk,v:$methodVal(c,"renderStrikethrough2CloseMarker")};bl=100;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bl)]={k:bl,v:$methodVal(c,"renderTaskListItemMarker")};bm=106;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bm)]={k:bm,v:$methodVal(c,"renderTable")};bn=107;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bn)]={k:bn,v:$methodVal(c,"renderTableHead")};bo=108;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bo)]={k:bo,v:$methodVal(c,"renderTableRow")};bp=109;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bp)]={k:bp,v:$methodVal(c,"renderTableCell")};bq=200;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bq)]={k:bq,v:$methodVal(c,"renderEmoji")};br=201;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(br)]={k:br,v:$methodVal(c,"renderEmojiUnicode")};bs=202;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bs)]={k:bs,v:$methodVal(c,"renderEmojiImg")};bt=203;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bt)]={k:bt,v:$methodVal(c,"renderEmojiAlias")};bu=410;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bu)]={k:bu,v:$methodVal(c,"renderFootnotesDefBlock")};bv=411;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bv)]={k:bv,v:$methodVal(c,"renderFootnotesDef")};bw=412;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bw)]={k:bw,v:$methodVal(c,"renderFootnotesRef")};bx=415;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bx)]={k:bx,v:$methodVal(c,"renderToC")};by=400;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(by)]={k:by,v:$methodVal(c,"renderBackslash")};bz=401;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(bz)]={k:bz,v:$methodVal(c,"renderBackslashContent")};ca=44;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ca)]={k:ca,v:$methodVal(c,"renderHtmlEntity")};cb=425;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cb)]={k:cb,v:$methodVal(c,"renderYamlFrontMatter")};cc=426;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cc)]={k:cc,v:$methodVal(c,"renderYamlFrontMatterOpenMarker")};cd=427;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cd)]={k:cd,v:$methodVal(c,"renderYamlFrontMatterContent")};ce=428;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ce)]={k:ce,v:$methodVal(c,"renderYamlFrontMatterCloseMarker")};cf=450;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cf)]={k:cf,v:$methodVal(c,"renderMark")};cg=451;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cg)]={k:cg,v:$methodVal(c,"renderMark1OpenMarker")};ch=452;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ch)]={k:ch,v:$methodVal(c,"renderMark1CloseMarker")};ci=453;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ci)]={k:ci,v:$methodVal(c,"renderMark2OpenMarker")};cj=454;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cj)]={k:cj,v:$methodVal(c,"renderMark2CloseMarker")};ck=485;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(ck)]={k:ck,v:$methodVal(c,"renderSup")};cl=486;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cl)]={k:cl,v:$methodVal(c,"renderSupOpenMarker")};cm=487;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cm)]={k:cm,v:$methodVal(c,"renderSupCloseMarker")};cn=490;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cn)]={k:cn,v:$methodVal(c,"renderSub")};co=491;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(co)]={k:co,v:$methodVal(c,"renderSubOpenMarker")};cp=492;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cp)]={k:cp,v:$methodVal(c,"renderSubCloseMarker")};cq=455;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cq)]={k:cq,v:$methodVal(c,"renderKramdownBlockIAL")};cr=45;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cr)]={k:cr,v:$methodVal(c,"renderLinkRefDefBlock")};cs=46;(c.BaseRenderer.RendererFuncs||$throwRuntimeError("assignment to entry in nil map"))[A.NodeType.keyFor(cs)]={k:cs,v:$methodVal(c,"renderLinkRefDef")};return c;};$pkg.NewVditorRenderer=BV;BU.ptr.prototype.renderLinkRefDefBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderLinkRefDefBlock=function(a,b){return this.$val.renderLinkRefDefBlock(a,b);};BU.ptr.prototype.renderLinkRefDef=function(a,b){var a,b,c,d,e;c=this;if(b){d=a.FirstChild.ChildByType(41).Tokens;e=F.BytesToStr(d);c.BaseRenderer.WriteString("["+F.BytesToStr(a.Tokens)+"]:");if(!("\xE2\x80\xB8"===e)){c.BaseRenderer.WriteString(" ");}c.BaseRenderer.WriteString(e+"\n");}return 1;};BU.prototype.renderLinkRefDef=function(a,b){return this.$val.renderLinkRefDef(a,b);};BU.ptr.prototype.renderKramdownBlockIAL=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderKramdownBlockIAL=function(a,b){return this.$val.renderKramdownBlockIAL(a,b);};BU.ptr.prototype.renderMark=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}$s=3;continue;case 2:c.BaseRenderer.WriteString("\xE2\x80\x8B");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderMark};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderMark=function(a,b){return this.$val.renderMark(a,b);};BU.ptr.prototype.renderMark1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("mark",new BY([new BW(["data-marker","="])]),false);}return 2;};BU.prototype.renderMark1OpenMarker=function(a,b){return this.$val.renderMark1OpenMarker(a,b);};BU.ptr.prototype.renderMark1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);}return 2;};BU.prototype.renderMark1CloseMarker=function(a,b){return this.$val.renderMark1CloseMarker(a,b);};BU.ptr.prototype.renderMark2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("mark",new BY([new BW(["data-marker","=="])]),false);}return 2;};BU.prototype.renderMark2OpenMarker=function(a,b){return this.$val.renderMark2OpenMarker(a,b);};BU.ptr.prototype.renderMark2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/mark",BY.nil,false);}return 2;};BU.prototype.renderMark2CloseMarker=function(a,b){return this.$val.renderMark2CloseMarker(a,b);};BU.ptr.prototype.renderSup=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderSup=function(a,b){return this.$val.renderSup(a,b);};BU.ptr.prototype.renderSupOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("sup",new BY([new BW(["data-marker","^"])]),false);}return 2;};BU.prototype.renderSupOpenMarker=function(a,b){return this.$val.renderSupOpenMarker(a,b);};BU.ptr.prototype.renderSupCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sup",BY.nil,false);}return 2;};BU.prototype.renderSupCloseMarker=function(a,b){return this.$val.renderSupCloseMarker(a,b);};BU.ptr.prototype.renderSub=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderSub=function(a,b){return this.$val.renderSub(a,b);};BU.ptr.prototype.renderSubOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("sub",new BY([new BW(["data-marker","~"])]),false);}return 2;};BU.prototype.renderSubOpenMarker=function(a,b){return this.$val.renderSubOpenMarker(a,b);};BU.ptr.prototype.renderSubCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/sub",BY.nil,false);}return 2;};BU.prototype.renderSubCloseMarker=function(a,b){return this.$val.renderSubCloseMarker(a,b);};BU.ptr.prototype.renderYamlFrontMatterCloseMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderYamlFrontMatterCloseMarker=function(a,b){return this.$val.renderYamlFrontMatterCloseMarker(a,b);};BU.ptr.prototype.renderYamlFrontMatterContent=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=G.TrimSpace(a.Tokens);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=e.$length;g=1>f||((3===f)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));c.BaseRenderer.Tag("pre",BY.nil,false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","yaml-front-matter"])]),false);if(g){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(e));}c.BaseRenderer.WriteString("");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderYamlFrontMatterContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderYamlFrontMatterContent=function(a,b){return this.$val.renderYamlFrontMatterContent(a,b);};BU.ptr.prototype.renderYamlFrontMatterOpenMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderYamlFrontMatterOpenMarker=function(a,b){return this.$val.renderYamlFrontMatterOpenMarker(a,b);};BU.ptr.prototype.renderYamlFrontMatter=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderYamlFrontMatter=function(a,b){return this.$val.renderYamlFrontMatter(a,b);};BU.ptr.prototype.renderHtmlEntity=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.PreviousNodeText();$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("code",new BY([new BW(["data-type","html-entity"]),new BW(["style","display: none"])]),false);f=$appendSlice((new BX($stringToBytes("\xE2\x80\x8B"))),a.HtmlEntityTokens);c.BaseRenderer.Write(B.EscapeHTML(f));c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-wysiwyg__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("code",BY.nil,false);g=G.ReplaceAll(a.HtmlEntityTokens,F.CaretTokens,BX.nil);c.BaseRenderer.Write(g);c.BaseRenderer.Tag("/code",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.WriteString("\xE2\x80\x8B");$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderHtmlEntity};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderHtmlEntity=function(a,b){return this.$val.renderHtmlEntity(a,b);};BU.ptr.prototype.renderBackslashContent=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));}return 2;};BU.prototype.renderBackslashContent=function(a,b){return this.$val.renderBackslashContent(a,b);};BU.ptr.prototype.renderBackslash=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("");c.BaseRenderer.WriteString("");c.BaseRenderer.WriteByte(92);c.BaseRenderer.WriteString("");}else{c.BaseRenderer.WriteString("");}return 2;};BU.prototype.renderBackslash=function(a,b){return this.$val.renderBackslash(a,b);};BU.ptr.prototype.renderToC=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=c.BaseRenderer.renderToC(a,b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderToC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderToC=function(a,b){return this.$val.renderToC(a,b);};BU.ptr.prototype.renderFootnotesDefBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");c.BaseRenderer.WriteString("
          ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderFootnotesDefBlock=function(a,b){return this.$val.renderFootnotesDefBlock(a,b);};BU.ptr.prototype.renderFootnotesDef=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];c[0]=this;if(c[0].BaseRenderer.RenderingFootnotes){$s=-1;return 2;}if(b){$s=1;continue;}$s=2;continue;case 1:if(!(BZ.nil===a.Previous)&&G.EqualFold(a.Previous.Tokens,a.Tokens)){$s=-1;return 2;}c[0].BaseRenderer.WriteString("
      • ");d=a.FirstChild;case 3:if(!(!(BZ.nil===d))){$s=4;continue;}$r=A.Walk(d,(function(c){return function $b(e,f){var e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:h=(g=c[0].BaseRenderer.RendererFuncs[A.NodeType.keyFor(e.Type)],g!==undefined?g.v:$throwNilPointerError)(e,f);$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;}return;}if($f===undefined){$f={$blk:$b};}$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};})(c));$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.Next;$s=3;continue;case 4:c[0].BaseRenderer.WriteString("
      • ");$s=-1;return 1;case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderFootnotesDef=function(a,b){return this.$val.renderFootnotesDef(a,b);};BU.ptr.prototype.renderFootnotesRef=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}g=c.BaseRenderer.Tree.FindFootnotesDef(a.Tokens);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[0];i=f[1];j=H.Itoa(h);k=i.Text();$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;m=B.EscapeString(l);$s=6;case 6:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}n=AO(m,24);$s=7;case 7:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=new BY([new BW(["data-type","footnotes-ref"]),new BW(["data-footnotes-label",($bytesToString(a.FootnotesRefLabel))]),new BW(["class","vditor-tooltipped vditor-tooltipped__s"]),new BW(["aria-label",n])]);$r=c.BaseRenderer.Tag("sup",o,false);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c.BaseRenderer.WriteString(j);c.BaseRenderer.WriteString("\xE2\x80\x8B");case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderFootnotesRef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderFootnotesRef=function(a,b){return this.$val.renderFootnotesRef(a,b);};BU.ptr.prototype.renderCodeBlockCloseMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCodeBlockCloseMarker=function(a,b){return this.$val.renderCodeBlockCloseMarker(a,b);};BU.ptr.prototype.renderCodeBlockInfoMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCodeBlockInfoMarker=function(a,b){return this.$val.renderCodeBlockInfoMarker(a,b);};BU.ptr.prototype.renderCodeBlockOpenMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCodeBlockOpenMarker=function(a,b){return this.$val.renderCodeBlockOpenMarker(a,b);};BU.ptr.prototype.renderEmojiAlias=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderEmojiAlias=function(a,b){return this.$val.renderEmojiAlias(a,b);};BU.ptr.prototype.renderEmojiImg=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};BU.prototype.renderEmojiImg=function(a,b){return this.$val.renderEmojiImg(a,b);};BU.ptr.prototype.renderEmojiUnicode=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};BU.prototype.renderEmojiUnicode=function(a,b){return this.$val.renderEmojiUnicode(a,b);};BU.ptr.prototype.renderEmoji=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderEmoji=function(a,b){return this.$val.renderEmoji(a,b);};BU.ptr.prototype.renderInlineMathCloseMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderInlineMathCloseMarker=function(a,b){return this.$val.renderInlineMathCloseMarker(a,b);};BU.ptr.prototype.renderInlineMathContent=function(a,b){var a,b,c,d,e,f;c=this;if(!b){return 2;}d=G.ReplaceAll(a.Tokens,(new BX($stringToBytes("\xE2\x80\x8B"))),BX.nil);e=d;f=new BY([new BW(["data-type","math-inline"])]);if(!G.Contains(e,F.CaretTokens)){f=$append(f,new BW(["style","display: none"]));}c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("code",f,false);d=B.EscapeHTML(d);d=$appendSlice((new BX($stringToBytes("\xE2\x80\x8B"))),d);c.BaseRenderer.Write(d);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("span",new BY([new BW(["class","vditor-wysiwyg__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("span",new BY([new BW(["class","language-math"])]),false);e=G.ReplaceAll(e,F.CaretTokens,BX.nil);c.BaseRenderer.Write(e);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.Tag("/span",BY.nil,false);c.BaseRenderer.WriteString("\xE2\x80\x8B");return 2;};BU.prototype.renderInlineMathContent=function(a,b){return this.$val.renderInlineMathContent(a,b);};BU.ptr.prototype.renderInlineMathOpenMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderInlineMathOpenMarker=function(a,b){return this.$val.renderInlineMathOpenMarker(a,b);};BU.ptr.prototype.renderInlineMath=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderInlineMath};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderInlineMath=function(a,b){return this.$val.renderInlineMath(a,b);};BU.ptr.prototype.renderMathBlockCloseMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderMathBlockCloseMarker=function(a,b){return this.$val.renderMathBlockCloseMarker(a,b);};BU.ptr.prototype.renderMathBlockContent=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=G.TrimSpace(a.Tokens);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=BY.nil;if(!G.Contains(e,F.CaretTokens)&&c.BaseRenderer.Options.VditorMathBlockPreview){f=$append(f,new BW(["style","display: none"]));}g=e.$length;h=1>g||((3===g)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));c.BaseRenderer.Tag("pre",f,false);c.BaseRenderer.Tag("code",new BY([new BW(["data-type","math-block"])]),false);if(h){c.BaseRenderer.WriteString("\n");}else{c.BaseRenderer.Write(B.EscapeHTML(e));}c.BaseRenderer.WriteString("");if(c.BaseRenderer.Options.VditorMathBlockPreview){c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-wysiwyg__preview"]),new BW(["data-render","2"])]),false);c.BaseRenderer.Tag("div",new BY([new BW(["data-type","math-block"]),new BW(["class","language-math"])]),false);i=a.Tokens;i=G.ReplaceAll(i,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(i));c.BaseRenderer.WriteString("");}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderMathBlockContent};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderMathBlockContent=function(a,b){return this.$val.renderMathBlockContent(a,b);};BU.ptr.prototype.renderMathBlockOpenMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderMathBlockOpenMarker=function(a,b){return this.$val.renderMathBlockOpenMarker(a,b);};BU.ptr.prototype.renderMathBlock=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderMathBlock=function(a,b){return this.$val.renderMathBlock(a,b);};BU.ptr.prototype.renderTableCell=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d="td";if(107===a.Parent.Parent.Type){d="th";}if(b){$s=1;continue;}$s=2;continue;case 1:e=BY.nil;f=a.TableCellAlign;if(f===(1)){e=$append(e,new BW(["align","left"]));}else if(f===(2)){e=$append(e,new BW(["align","center"]));}else if(f===(3)){e=$append(e,new BW(["align","right"]));}c.BaseRenderer.Tag(d,e,false);if(BZ.nil===a.FirstChild){$s=4;continue;}if(G.Equal(a.FirstChild.Tokens,F.CaretTokens)){$s=5;continue;}$s=6;continue;case 4:a.AppendChild(new A.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CD.nil,(new BX($stringToBytes(" "))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CG.nil,false,CK.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CD.nil,BX.nil,BY.nil));$s=7;continue;case 5:a.FirstChild.Tokens=(new BX($stringToBytes("\xE2\x80\xB8 ")));$s=7;continue;case 6:g=G.TrimSpace(a.FirstChild.Tokens);$s=8;case 8:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}a.FirstChild.Tokens=g;case 7:$s=3;continue;case 2:c.BaseRenderer.Tag("/"+d,BY.nil,false);case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderTableCell};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderTableCell=function(a,b){return this.$val.renderTableCell(a,b);};BU.ptr.prototype.renderTableRow=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("tr",BY.nil,false);}else{c.BaseRenderer.Tag("/tr",BY.nil,false);}return 2;};BU.prototype.renderTableRow=function(a,b){return this.$val.renderTableRow(a,b);};BU.ptr.prototype.renderTableHead=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("thead",BY.nil,false);}else{c.BaseRenderer.Tag("/thead",BY.nil,false);if(!(BZ.nil===a.Next)){c.BaseRenderer.Tag("tbody",BY.nil,false);}}return 2;};BU.prototype.renderTableHead=function(a,b){return this.$val.renderTableHead(a,b);};BU.ptr.prototype.renderTable=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("table",new BY([new BW(["data-block","0"])]),false);}else{if(!(BZ.nil===a.FirstChild.Next)){c.BaseRenderer.Tag("/tbody",BY.nil,false);}c.BaseRenderer.Tag("/table",BY.nil,false);}return 2;};BU.prototype.renderTable=function(a,b){return this.$val.renderTable(a,b);};BU.ptr.prototype.renderStrikethrough=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderStrikethrough=function(a,b){return this.$val.renderStrikethrough(a,b);};BU.ptr.prototype.renderStrikethrough1OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("s",new BY([new BW(["data-marker","~"])]),false);}return 2;};BU.prototype.renderStrikethrough1OpenMarker=function(a,b){return this.$val.renderStrikethrough1OpenMarker(a,b);};BU.ptr.prototype.renderStrikethrough1CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/s",BY.nil,false);}return 2;};BU.prototype.renderStrikethrough1CloseMarker=function(a,b){return this.$val.renderStrikethrough1CloseMarker(a,b);};BU.ptr.prototype.renderStrikethrough2OpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("s",new BY([new BW(["data-marker","~~"])]),false);}return 2;};BU.prototype.renderStrikethrough2OpenMarker=function(a,b){return this.$val.renderStrikethrough2OpenMarker(a,b);};BU.ptr.prototype.renderStrikethrough2CloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/s",BY.nil,false);}return 2;};BU.prototype.renderStrikethrough2CloseMarker=function(a,b){return this.$val.renderStrikethrough2CloseMarker(a,b);};BU.ptr.prototype.renderLinkTitle=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderLinkTitle=function(a,b){return this.$val.renderLinkTitle(a,b);};BU.ptr.prototype.renderLinkDest=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderLinkDest=function(a,b){return this.$val.renderLinkDest(a,b);};BU.ptr.prototype.renderLinkSpace=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderLinkSpace=function(a,b){return this.$val.renderLinkSpace(a,b);};BU.ptr.prototype.renderLinkText=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Write(a.Tokens);}return 2;};BU.prototype.renderLinkText=function(a,b){return this.$val.renderLinkText(a,b);};BU.ptr.prototype.renderCloseParen=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCloseParen=function(a,b){return this.$val.renderCloseParen(a,b);};BU.ptr.prototype.renderOpenParen=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderOpenParen=function(a,b){return this.$val.renderOpenParen(a,b);};BU.ptr.prototype.renderCloseBrace=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCloseBrace=function(a,b){return this.$val.renderCloseBrace(a,b);};BU.ptr.prototype.renderOpenBrace=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderOpenBrace=function(a,b){return this.$val.renderOpenBrace(a,b);};BU.ptr.prototype.renderCloseBracket=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCloseBracket=function(a,b){return this.$val.renderCloseBracket(a,b);};BU.ptr.prototype.renderOpenBracket=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderOpenBracket=function(a,b){return this.$val.renderOpenBracket(a,b);};BU.ptr.prototype.renderBang=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderBang=function(a,b){return this.$val.renderBang(a,b);};BU.ptr.prototype.renderImage=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:if(3===a.LinkType){$s=3;continue;}$s=4;continue;case 3:d=a.PreviousNodeText();$s=5;case 5:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}c.BaseRenderer.WriteString("\"");i=a.ChildByType(40);if(!(BZ.nil===i)){i.Tokens=G.ReplaceAll(i.Tokens,F.CaretTokens,BX.nil);c.BaseRenderer.Write(i.Tokens);}c.BaseRenderer.WriteByte(34);j=g.ChildByType(42);if(!(BZ.nil===j)&&!(BX.nil===j.Tokens)){c.BaseRenderer.WriteString("");k=c.BaseRenderer.Writer.Bytes();l=G.LastIndex(k,(new BX($stringToBytes("\"");p=a.ChildByType(40);if(!(BZ.nil===p)&&G.Contains(p.Tokens,F.CaretTokens)){p.Tokens=G.ReplaceAll(p.Tokens,F.CaretTokens,BX.nil);}}c.BaseRenderer.DisableTags=c.BaseRenderer.DisableTags+(1)>0;$s=-1;return 2;case 2:c.BaseRenderer.DisableTags=c.BaseRenderer.DisableTags-(1)>>0;if(0===c.BaseRenderer.DisableTags){$s=10;continue;}$s=11;continue;case 10:c.BaseRenderer.WriteByte(34);q=a.ChildByType(42);if(!(BZ.nil===q)&&!(BX.nil===q.Tokens)){c.BaseRenderer.WriteString(" title=\"");q.Tokens=G.ReplaceAll(q.Tokens,F.CaretTokens,BX.nil);c.BaseRenderer.Write(q.Tokens);c.BaseRenderer.WriteByte(34);}c.BaseRenderer.WriteString(" />");r=c.BaseRenderer.Writer.Bytes();s=G.LastIndex(r,(new BX($stringToBytes("");d=G.TrimSpace(a.Tokens);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;c.BaseRenderer.WriteString("
        ");c.BaseRenderer.Tag("code",BY.nil,false);c.BaseRenderer.Write(B.EscapeHTML(e));c.BaseRenderer.WriteString("
        ");c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-wysiwyg__preview"]),new BW(["data-render","2"])]),false);e=G.ReplaceAll(e,F.CaretTokens,BX.nil);if(c.BaseRenderer.Options.Sanitize){$s=2;continue;}$s=3;continue;case 2:f=AY(e);$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;case 3:c.BaseRenderer.Write(e);c.BaseRenderer.WriteString("");$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderHTML=function(a,b){return this.$val.renderHTML(a,b);};BU.ptr.prototype.renderInlineHTML=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}if(G.Equal(a.Tokens,(new BX($stringToBytes("
        "))))&&a.ParentIs(109,new CF([]))){c.BaseRenderer.Write(a.Tokens);$s=-1;return 2;}if(G.Contains(a.Tokens,(new BX($stringToBytes(""))))){c.BaseRenderer.Write(a.Tokens);$s=-1;return 2;}if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if("\xE2\x80\x8B"===e||""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}case 2:f=G.ReplaceAll(a.Tokens,(new BX($stringToBytes("\xE2\x80\x8B"))),BX.nil);f=$appendSlice((new BX($stringToBytes("\xE2\x80\x8B"))),f);g=G.TrimSpace(a.Tokens);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}a.Tokens=g;c.BaseRenderer.Tag("code",new BY([new BW(["data-type","html-inline"])]),false);f=B.EscapeHTML(f);c.BaseRenderer.Write(f);c.BaseRenderer.WriteString("");$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderInlineHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderInlineHTML=function(a,b){return this.$val.renderInlineHTML(a,b);};BU.ptr.prototype.renderDocument=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderDocument=function(a,b){return this.$val.renderDocument(a,b);};BU.ptr.prototype.renderParagraph=function(a,b){var a,b,c,d,e;c=this;d=a.Parent.Parent;if(!(BZ.nil===d)&&(7===d.Type)&&d.ListData.Tight){return 2;}if(b){e=new BY([new BW(["data-block","0"])]);e=$appendSlice(e,a.KramdownIAL);c.BaseRenderer.Tag("p",e,false);}else{c.BaseRenderer.Tag("/p",BY.nil,false);}return 2;};BU.prototype.renderParagraph=function(a,b){return this.$val.renderParagraph(a,b);};BU.ptr.prototype.renderText=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.Tokens;if(c.BaseRenderer.Options.FixTermTypo){$s=3;continue;}$s=4;continue;case 3:e=c.BaseRenderer.FixTermTypo(d);$s=5;case 5:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;case 4:f=G.TrimRight(d,"\n");$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;if(!G.EqualFold(d,(new BX($stringToBytes("\xE2\x80\xB8\xE2\x80\x8B"))))){d=G.ReplaceAll(d,(new BX($stringToBytes("\xE2\x80\x8B"))),BX.nil);}c.BaseRenderer.Write(B.EscapeHTML(d));case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderText=function(a,b){return this.$val.renderText(a,b);};BU.ptr.prototype.renderCodeSpan=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:d=a.PreviousNodeText();$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;e=D.ReplaceAll(e,"\xE2\x80\xB8","");if(""===e){c.BaseRenderer.WriteString("\xE2\x80\x8B");}else{f=J.DecodeLastRuneInString(e);g=f[0];if(I.IsLetter(g)||I.IsDigit(g)){c.BaseRenderer.WriteByte(32);}}c.BaseRenderer.Tag("code",new BY([new BW(["data-marker",D.Repeat("`",a.CodeMarkerLen)])]),false);case 2:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderCodeSpan};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderCodeSpan=function(a,b){return this.$val.renderCodeSpan(a,b);};BU.ptr.prototype.renderCodeSpanOpenMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderCodeSpanOpenMarker=function(a,b){return this.$val.renderCodeSpanOpenMarker(a,b);};BU.ptr.prototype.renderCodeSpanContent=function(a,b){var a,b,c,d;c=this;if(b){d=G.ReplaceAll(a.Tokens,(new BX($stringToBytes("\xE2\x80\x8B"))),BX.nil);d=B.EscapeHTML(d);d=$appendSlice((new BX($stringToBytes("\xE2\x80\x8B"))),d);c.BaseRenderer.Write(d);}return 2;};BU.prototype.renderCodeSpanContent=function(a,b){return this.$val.renderCodeSpanContent(a,b);};BU.ptr.prototype.renderCodeSpanCloseMarker=function(a,b){var a,b,c,d,e;c=this;if(b){c.BaseRenderer.WriteString("");d=a.Parent;e=d.Parent;if(!(BZ.nil===e)&&(33===e.Type)){return 2;}c.BaseRenderer.WriteString("\xE2\x80\x8B");}return 2;};BU.prototype.renderCodeSpanCloseMarker=function(a,b){return this.$val.renderCodeSpanCloseMarker(a,b);};BU.ptr.prototype.renderEmphasis=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderEmphasis=function(a,b){return this.$val.renderEmphasis(a,b);};BU.ptr.prototype.renderEmAsteriskOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("em",new BY([new BW(["data-marker","*"])]),false);}return 2;};BU.prototype.renderEmAsteriskOpenMarker=function(a,b){return this.$val.renderEmAsteriskOpenMarker(a,b);};BU.ptr.prototype.renderEmAsteriskCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);}return 2;};BU.prototype.renderEmAsteriskCloseMarker=function(a,b){return this.$val.renderEmAsteriskCloseMarker(a,b);};BU.ptr.prototype.renderEmUnderscoreOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("em",new BY([new BW(["data-marker","_"])]),false);}return 2;};BU.prototype.renderEmUnderscoreOpenMarker=function(a,b){return this.$val.renderEmUnderscoreOpenMarker(a,b);};BU.ptr.prototype.renderEmUnderscoreCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/em",BY.nil,false);}return 2;};BU.prototype.renderEmUnderscoreCloseMarker=function(a,b){return this.$val.renderEmUnderscoreCloseMarker(a,b);};BU.ptr.prototype.renderStrong=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderStrong=function(a,b){return this.$val.renderStrong(a,b);};BU.ptr.prototype.renderStrongA6kOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("strong",new BY([new BW(["data-marker","**"])]),false);}return 2;};BU.prototype.renderStrongA6kOpenMarker=function(a,b){return this.$val.renderStrongA6kOpenMarker(a,b);};BU.ptr.prototype.renderStrongA6kCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);}return 2;};BU.prototype.renderStrongA6kCloseMarker=function(a,b){return this.$val.renderStrongA6kCloseMarker(a,b);};BU.ptr.prototype.renderStrongU8eOpenMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("strong",new BY([new BW(["data-marker","__"])]),false);}return 2;};BU.prototype.renderStrongU8eOpenMarker=function(a,b){return this.$val.renderStrongU8eOpenMarker(a,b);};BU.ptr.prototype.renderStrongU8eCloseMarker=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("/strong",BY.nil,false);}return 2;};BU.prototype.renderStrongU8eCloseMarker=function(a,b){return this.$val.renderStrongU8eCloseMarker(a,b);};BU.ptr.prototype.renderBlockquote=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderBlockquote=function(a,b){return this.$val.renderBlockquote(a,b);};BU.ptr.prototype.renderBlockquoteMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderBlockquoteMarker=function(a,b){return this.$val.renderBlockquoteMarker(a,b);};BU.ptr.prototype.renderHeading=function(a,b){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(b){$s=1;continue;}$s=2;continue;case 1:c.BaseRenderer.WriteString(">0))+" data-block=\"0\"");d="";e=a.ChildByType(420);if(!(BZ.nil===e)){d=($bytesToString(e.Tokens));}if(c.BaseRenderer.Options.HeadingID&&!(""===d)){c.BaseRenderer.WriteString(" data-id=\""+d+"\"");}if(""===d){$s=4;continue;}$s=5;continue;case 4:f=AP(a);$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}d=f;case 5:c.BaseRenderer.WriteString(" id=\"wysiwyg-"+d+"\"");if(!a.HeadingSetext){c.BaseRenderer.WriteString(" data-marker=\"#\">");}else{if(1===a.HeadingLevel){c.BaseRenderer.WriteString(" data-marker=\"=\">");}else{c.BaseRenderer.WriteString(" data-marker=\"-\">");}}if(c.BaseRenderer.Options.HeadingAnchor){$s=7;continue;}$s=8;continue;case 7:g=AP(a);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;c.BaseRenderer.Tag("a",new BY([new BW(["id","vditorAnchor-"+h]),new BW(["class","vditor-anchor"]),new BW(["href","#"+h])]),false);c.BaseRenderer.WriteString("");c.BaseRenderer.Tag("/a",BY.nil,false);case 8:$s=3;continue;case 2:c.BaseRenderer.WriteString(">0))+">");case 3:$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderHeading};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderHeading=function(a,b){return this.$val.renderHeading(a,b);};BU.ptr.prototype.renderHeadingC8hMarker=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderHeadingC8hMarker=function(a,b){return this.$val.renderHeadingC8hMarker(a,b);};BU.ptr.prototype.renderHeadingID=function(a,b){var a,b,c;c=this;return 2;};BU.prototype.renderHeadingID=function(a,b){return this.$val.renderHeadingID(a,b);};BU.ptr.prototype.renderList=function(a,b){var a,b,c,d,e,f,g;c=this;d="ul";if((1===a.ListData.Typ)||((3===a.ListData.Typ)&&(0===a.ListData.BulletChar))){d="ol";}if(b){e=BY.nil;if(a.ListData.Tight){e=$append(e,new BW(["data-tight","true"]));}if(0===a.ListData.BulletChar){if(!((1===a.ListData.Start))){e=$append(e,new BW(["start",H.Itoa(a.ListData.Start)]));}}f=a.ListData.Typ;if(f===(0)){e=$append(e,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(f===(1)){e=$append(e,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(f===(3)){if(0===a.ListData.BulletChar){e=$append(e,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{e=$append(e,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}}e=$append(e,new BW(["data-block","0"]));c.BaseRenderer.renderListStyle(a,(g||(g=new CL(function(){return e;},function($v){e=$subslice(new BY($v.$array),$v.$offset,$v.$offset+$v.$length);}))));c.BaseRenderer.Tag(d,e,false);}else{c.BaseRenderer.Tag("/"+d,BY.nil,false);}return 2;};BU.prototype.renderList=function(a,b){return this.$val.renderList(a,b);};BU.ptr.prototype.renderListItem=function(a,b){var a,b,c,d,e;c=this;if(b){d=BY.nil;e=a.ListData.Typ;if(e===(0)){d=$append(d,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}else if(e===(1)){d=$append(d,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else if(e===(3)){if(0===a.ListData.BulletChar){d=$append(d,new BW(["data-marker",H.Itoa(a.ListData.Num)+($encodeRune(a.ListData.Delimiter))]));}else{d=$append(d,new BW(["data-marker",($bytesToString(a.ListData.Marker))]));}if(!(BZ.nil===a.FirstChild)&&!(BZ.nil===a.FirstChild.FirstChild)&&(100===a.FirstChild.FirstChild.Type)){d=$append(d,new BW(["class",c.BaseRenderer.Options.GFMTaskListItemClass]));}}c.BaseRenderer.Tag("li",d,false);if(BZ.nil===a.FirstChild){c.BaseRenderer.WriteString("\xE2\x80\x8B");}}else{c.BaseRenderer.Tag("/li",BY.nil,false);}return 2;};BU.prototype.renderListItem=function(a,b){return this.$val.renderListItem(a,b);};BU.ptr.prototype.renderTaskListItemMarker=function(a,b){var a,b,c,d;c=this;if(b){d=BY.nil;if(a.TaskListItemChecked){d=$append(d,new BW(["checked",""]));}d=$append(d,new BW(["type","checkbox"]));c.BaseRenderer.Tag("input",d,true);}return 2;};BU.prototype.renderTaskListItemMarker=function(a,b){return this.$val.renderTaskListItemMarker(a,b);};BU.ptr.prototype.renderThematicBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("hr",new BY([new BW(["data-block","0"])]),true);if(!(BX.nil===a.Tokens)){c.BaseRenderer.Tag("p",new BY([new BW(["data-block","0"])]),false);c.BaseRenderer.Write(a.Tokens);c.BaseRenderer.WriteByte(10);c.BaseRenderer.Tag("/p",BY.nil,false);}}return 2;};BU.prototype.renderThematicBreak=function(a,b){return this.$val.renderThematicBreak(a,b);};BU.ptr.prototype.renderHardBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.Tag("br",BY.nil,true);}return 2;};BU.prototype.renderHardBreak=function(a,b){return this.$val.renderHardBreak(a,b);};BU.ptr.prototype.renderSoftBreak=function(a,b){var a,b,c;c=this;if(b){c.BaseRenderer.WriteByte(10);}return 2;};BU.prototype.renderSoftBreak=function(a,b){return this.$val.renderSoftBreak(a,b);};BU.ptr.prototype.renderCodeBlock=function(a,b){var a,b,c,d;c=this;if(b){d="```";if(!(BZ.nil===a.FirstChild)&&G.HasPrefix(a.FirstChild.Tokens,(new BX($stringToBytes(d))))){d=($bytesToString(a.FirstChild.Tokens));}c.BaseRenderer.WriteString("
        ");}else{c.BaseRenderer.WriteString("
        ");}return 2;};BU.prototype.renderCodeBlock=function(a,b){return this.$val.renderCodeBlock(a,b);};BU.ptr.prototype.renderCodeBlockCode=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;if(!b){$s=-1;return 2;}d=a.Tokens.$length;e=1>d||((3===d)&&"\xE2\x80\xB8"===($bytesToString(a.Tokens)));f=a.Parent.IsFencedCodeBlock;g="";h=false;i=BY.nil;if(f&&0=j.$length?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+0])));i=$append(i,new BW(["class","language-"+g]));if("mindmap"===g){$s=5;continue;}$s=6;continue;case 5:k=c.BaseRenderer.RenderMindmap(a.Tokens);$s=7;case 7:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;i=$append(i,new BW(["data-code",($bytesToString(l))]));case 6:case 4:case 2:m=new BY([new BW(["class","vditor-wysiwyg__pre"])]);if(!G.Contains(a.Tokens,F.CaretTokens)&&!h&&c.BaseRenderer.Options.VditorCodeBlockPreview){m=$append(m,new BW(["style","display: none"]));}c.BaseRenderer.Tag("pre",m,false);c.BaseRenderer.Tag("code",i,false);if(e){c.BaseRenderer.WriteString("\n");}else{if(h){c.BaseRenderer.WriteString("");}c.BaseRenderer.Write(B.EscapeHTML(a.Tokens));c.BaseRenderer.Newline();}c.BaseRenderer.WriteString("");if(c.BaseRenderer.Options.VditorCodeBlockPreview){c.BaseRenderer.Tag("pre",new BY([new BW(["class","vditor-wysiwyg__preview"]),new BW(["data-render","2"])]),false);n=c.BaseRenderer.NoHighlight(g);if(n){c.BaseRenderer.Tag("div",i,false);}else{c.BaseRenderer.Tag("code",i,false);}o=a.Tokens;o=G.ReplaceAll(o,F.CaretTokens,BX.nil);c.BaseRenderer.Write(B.EscapeHTML(o));if(n){c.BaseRenderer.WriteString("");}else{c.BaseRenderer.WriteString("");}}$s=-1;return 2;}return;}if($f===undefined){$f={$blk:BU.ptr.prototype.renderCodeBlockCode};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BU.prototype.renderCodeBlockCode=function(a,b){return this.$val.renderCodeBlockCode(a,b);};CV.methods=[{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownSpanIAL",name:"renderKramdownSpanIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRef",name:"renderBlockRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDefault",name:"renderDefault",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"leaf",name:"leaf",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[],false)},{prop:"val",name:"val",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[],false)},{prop:"openObj",name:"openObj",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"closeObj",name:"closeObj",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"openChildren",name:"openChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"closeChildren",name:"closeChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"comma",name:"comma",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"ignore",name:"ignore",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[$Bool],false)}];CT.methods=[{prop:"renderGitConflictCloseMarker",name:"renderGitConflictCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictContent",name:"renderGitConflictContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictOpenMarker",name:"renderGitConflictOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflict",name:"renderGitConflict",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlock",name:"renderSuperBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockOpenMarker",name:"renderSuperBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockLayoutMarker",name:"renderSuperBlockLayoutMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockCloseMarker",name:"renderSuperBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTag",name:"renderTag",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagOpenMarker",name:"renderTagOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagCloseMarker",name:"renderTagCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownSpanIAL",name:"renderKramdownSpanIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbedScript",name:"renderBlockQueryEmbedScript",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedID",name:"renderBlockEmbedID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedSpace",name:"renderBlockEmbedSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedText",name:"renderBlockEmbedText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRef",name:"renderBlockRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefID",name:"renderBlockRefID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefSpace",name:"renderBlockRefSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefText",name:"renderBlockRefText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"withoutKramdownBlockIAL",name:"withoutKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[$Bool],false)}];CW.methods=[{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"Render",name:"Render",pkg:"",typ:$funcType([],[BX],false)},{prop:"renderGitConflictCloseMarker",name:"renderGitConflictCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictContent",name:"renderGitConflictContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictOpenMarker",name:"renderGitConflictOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflict",name:"renderGitConflict",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlock",name:"renderSuperBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockOpenMarker",name:"renderSuperBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockLayoutMarker",name:"renderSuperBlockLayoutMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockCloseMarker",name:"renderSuperBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTag",name:"renderTag",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagOpenMarker",name:"renderTagOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagCloseMarker",name:"renderTagCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownSpanIAL",name:"renderKramdownSpanIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbedScript",name:"renderBlockQueryEmbedScript",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedID",name:"renderBlockEmbedID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedSpace",name:"renderBlockEmbedSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedText",name:"renderBlockEmbedText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRef",name:"renderBlockRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefID",name:"renderBlockRefID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefSpace",name:"renderBlockRefSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefText",name:"renderBlockRefText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"RenderFootnotes",name:"RenderFootnotes",pkg:"",typ:$funcType([],[BX],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"handleKramdownBlockIAL",name:"handleKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)}];X.methods=[{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)}];CX.methods=[{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownSpanIAL",name:"renderKramdownSpanIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbedScript",name:"renderBlockQueryEmbedScript",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedID",name:"renderBlockEmbedID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedSpace",name:"renderBlockEmbedSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedText",name:"renderBlockEmbedText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTag",name:"renderTag",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagOpenMarker",name:"renderTagOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagCloseMarker",name:"renderTagCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlock",name:"renderSuperBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockOpenMarker",name:"renderSuperBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockLayoutMarker",name:"renderSuperBlockLayoutMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockCloseMarker",name:"renderSuperBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRef",name:"renderBlockRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefID",name:"renderBlockRefID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefSpace",name:"renderBlockRefSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefText",name:"renderBlockRefText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDefault",name:"renderDefault",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"leaf",name:"leaf",pkg:"github.com/88250/lute/render",typ:$funcType([A.NodeType,$String,BZ],[],false)},{prop:"val",name:"val",pkg:"github.com/88250/lute/render",typ:$funcType([A.NodeType,$String],[],false)},{prop:"language",name:"language",pkg:"github.com/88250/lute/render",typ:$funcType([A.NodeType,$String,$String],[],false)},{prop:"mindMap",name:"mindMap",pkg:"github.com/88250/lute/render",typ:$funcType([$String],[],false)},{prop:"flag",name:"flag",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"openObj",name:"openObj",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"closeObj",name:"closeObj",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"openChildren",name:"openChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"closeChildren",name:"closeChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"comma",name:"comma",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"ignore",name:"ignore",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[$Bool],false)}];CY.methods=[{prop:"renderDefault",name:"renderDefault",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlock",name:"renderSuperBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"data",name:"data",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"openObj",name:"openObj",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"closeObj",name:"closeObj",pkg:"github.com/88250/lute/render",typ:$funcType([],[],false)},{prop:"openChildren",name:"openChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"closeChildren",name:"closeChildren",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"comma",name:"comma",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)}];CA.methods=[{prop:"LinkPath",name:"LinkPath",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"PrefixPath",name:"PrefixPath",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"RelativePath",name:"RelativePath",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"isRelativePath",name:"isRelativePath",pkg:"github.com/88250/lute/render",typ:$funcType([BX],[$Bool],false)},{prop:"RenderMindmap",name:"RenderMindmap",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"Render",name:"Render",pkg:"",typ:$funcType([],[BX],false)},{prop:"renderDefault",name:"renderDefault",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"WriteByte",name:"WriteByte",pkg:"",typ:$funcType([$Uint8],[],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([BX],[],false)},{prop:"WriteString",name:"WriteString",pkg:"",typ:$funcType([$String],[],false)},{prop:"Newline",name:"Newline",pkg:"",typ:$funcType([],[],false)},{prop:"TextAutoSpacePrevious",name:"TextAutoSpacePrevious",pkg:"",typ:$funcType([BZ],[],false)},{prop:"TextAutoSpaceNext",name:"TextAutoSpaceNext",pkg:"",typ:$funcType([BZ],[],false)},{prop:"LinkTextAutoSpacePrevious",name:"LinkTextAutoSpacePrevious",pkg:"",typ:$funcType([BZ],[],false)},{prop:"LinkTextAutoSpaceNext",name:"LinkTextAutoSpaceNext",pkg:"",typ:$funcType([BZ],[],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC0",name:"renderToC0",pkg:"github.com/88250/lute/render",typ:$funcType([CO],[],false)},{prop:"Tag",name:"Tag",pkg:"",typ:$funcType([$String,BY,$Bool],[],false)},{prop:"headings",name:"headings",pkg:"github.com/88250/lute/render",typ:$funcType([],[CP],false)},{prop:"setextHeadingLen",name:"setextHeadingLen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[$Int],false)},{prop:"renderListStyle",name:"renderListStyle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,CL],[],false)},{prop:"tagSrcPath",name:"tagSrcPath",pkg:"github.com/88250/lute/render",typ:$funcType([BX],[BX],false)},{prop:"isLastNode",name:"isLastNode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,BZ],[$Bool],false)},{prop:"NodeID",name:"NodeID",pkg:"",typ:$funcType([BZ],[$String],false)},{prop:"NodeAttrs",name:"NodeAttrs",pkg:"",typ:$funcType([BZ],[BY],false)},{prop:"NodeAttrsStr",name:"NodeAttrsStr",pkg:"",typ:$funcType([BZ],[$String],false)},{prop:"NoHighlight",name:"NoHighlight",pkg:"",typ:$funcType([$String],[$Bool],false)},{prop:"Space",name:"Space",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"FixTermTypo",name:"FixTermTypo",pkg:"",typ:$funcType([BX],[BX],false)},{prop:"fixTermTypo0",name:"fixTermTypo0",pkg:"github.com/88250/lute/render",typ:$funcType([BX],[BX],false)}];DC.methods=[{prop:"Render",name:"Render",pkg:"",typ:$funcType([],[BX,BW],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)}];DD.methods=[{prop:"renderGitConflictCloseMarker",name:"renderGitConflictCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictContent",name:"renderGitConflictContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflictOpenMarker",name:"renderGitConflictOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderGitConflict",name:"renderGitConflict",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlock",name:"renderSuperBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockOpenMarker",name:"renderSuperBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockLayoutMarker",name:"renderSuperBlockLayoutMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSuperBlockCloseMarker",name:"renderSuperBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTag",name:"renderTag",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagOpenMarker",name:"renderTagOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTagCloseMarker",name:"renderTagCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownSpanIAL",name:"renderKramdownSpanIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"render",name:"render",pkg:"github.com/88250/lute/render",typ:$funcType([],[BX],false)},{prop:"renderBlockQueryEmbedScript",name:"renderBlockQueryEmbedScript",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockQueryEmbed",name:"renderBlockQueryEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbed",name:"renderBlockEmbed",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedID",name:"renderBlockEmbedID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedSpace",name:"renderBlockEmbedSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedText",name:"renderBlockEmbedText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockEmbedTextTplRenderResult",name:"renderBlockEmbedTextTplRenderResult",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRef",name:"renderBlockRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefID",name:"renderBlockRefID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefSpace",name:"renderBlockRefSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefText",name:"renderBlockRefText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockRefTextTplRenderResult",name:"renderBlockRefTextTplRenderResult",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"tagMatchClose",name:"tagMatchClose",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[$Bool],false)},{prop:"tagMatchOpen",name:"tagMatchOpen",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[$Bool],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"NodeID",name:"NodeID",pkg:"",typ:$funcType([BZ],[$String],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSpanNode",name:"renderSpanNode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"renderDivNode",name:"renderDivNode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"Text",name:"Text",pkg:"",typ:$funcType([BZ],[$String],false)},{prop:"nodeTipAttr",name:"nodeTipAttr",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,CL],[],false)}];DE.methods=[{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"tagMatchClose",name:"tagMatchClose",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[$Bool],false)},{prop:"tagMatchOpen",name:"tagMatchOpen",pkg:"github.com/88250/lute/render",typ:$funcType([$String,BZ],[$Bool],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSpanNode",name:"renderSpanNode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"renderDivNode",name:"renderDivNode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"Text",name:"Text",pkg:"",typ:$funcType([BZ],[$String],false)}];DF.methods=[{prop:"WriteByte",name:"WriteByte",pkg:"",typ:$funcType([$Uint8],[],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([BX],[],false)},{prop:"WriteString",name:"WriteString",pkg:"",typ:$funcType([$String],[],false)},{prop:"Newline",name:"Newline",pkg:"",typ:$funcType([],[],false)},{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"inListItem",name:"inListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[$Bool],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"popWriteClass",name:"popWriteClass",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$String],[],false)},{prop:"popWriter",name:"popWriter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ],[],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderClass",name:"renderClass",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$String],[],false)},{prop:"domAttrValue",name:"domAttrValue",pkg:"github.com/88250/lute/render",typ:$funcType([CU,$String],[$String],false)},{prop:"domSetAttrValue",name:"domSetAttrValue",pkg:"github.com/88250/lute/render",typ:$funcType([CU,$String,$String],[],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"Text",name:"Text",pkg:"",typ:$funcType([BZ],[$String],false)}];DG.methods=[{prop:"renderLinkRefDefBlock",name:"renderLinkRefDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkRefDef",name:"renderLinkRefDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderKramdownBlockIAL",name:"renderKramdownBlockIAL",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark",name:"renderMark",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1OpenMarker",name:"renderMark1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark1CloseMarker",name:"renderMark1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2OpenMarker",name:"renderMark2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMark2CloseMarker",name:"renderMark2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSup",name:"renderSup",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupOpenMarker",name:"renderSupOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSupCloseMarker",name:"renderSupCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSub",name:"renderSub",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubOpenMarker",name:"renderSubOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSubCloseMarker",name:"renderSubCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterCloseMarker",name:"renderYamlFrontMatterCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterContent",name:"renderYamlFrontMatterContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatterOpenMarker",name:"renderYamlFrontMatterOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderYamlFrontMatter",name:"renderYamlFrontMatter",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHtmlEntity",name:"renderHtmlEntity",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslashContent",name:"renderBackslashContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBackslash",name:"renderBackslash",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderToC",name:"renderToC",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDefBlock",name:"renderFootnotesDefBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesDef",name:"renderFootnotesDef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderFootnotesRef",name:"renderFootnotesRef",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCloseMarker",name:"renderCodeBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockInfoMarker",name:"renderCodeBlockInfoMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockOpenMarker",name:"renderCodeBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiAlias",name:"renderEmojiAlias",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiImg",name:"renderEmojiImg",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmojiUnicode",name:"renderEmojiUnicode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmoji",name:"renderEmoji",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathCloseMarker",name:"renderInlineMathCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathContent",name:"renderInlineMathContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMathOpenMarker",name:"renderInlineMathOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineMath",name:"renderInlineMath",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockCloseMarker",name:"renderMathBlockCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockContent",name:"renderMathBlockContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlockOpenMarker",name:"renderMathBlockOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderMathBlock",name:"renderMathBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableCell",name:"renderTableCell",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableRow",name:"renderTableRow",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTableHead",name:"renderTableHead",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTable",name:"renderTable",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough",name:"renderStrikethrough",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1OpenMarker",name:"renderStrikethrough1OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough1CloseMarker",name:"renderStrikethrough1CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2OpenMarker",name:"renderStrikethrough2OpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrikethrough2CloseMarker",name:"renderStrikethrough2CloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkTitle",name:"renderLinkTitle",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkDest",name:"renderLinkDest",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkSpace",name:"renderLinkSpace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLinkText",name:"renderLinkText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseParen",name:"renderCloseParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenParen",name:"renderOpenParen",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBrace",name:"renderCloseBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBrace",name:"renderOpenBrace",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCloseBracket",name:"renderCloseBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderOpenBracket",name:"renderOpenBracket",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBang",name:"renderBang",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderImage",name:"renderImage",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderLink",name:"renderLink",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHTML",name:"renderHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderInlineHTML",name:"renderInlineHTML",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderDocument",name:"renderDocument",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderParagraph",name:"renderParagraph",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderText",name:"renderText",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpan",name:"renderCodeSpan",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanOpenMarker",name:"renderCodeSpanOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanContent",name:"renderCodeSpanContent",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeSpanCloseMarker",name:"renderCodeSpanCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmphasis",name:"renderEmphasis",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskOpenMarker",name:"renderEmAsteriskOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmAsteriskCloseMarker",name:"renderEmAsteriskCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreOpenMarker",name:"renderEmUnderscoreOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderEmUnderscoreCloseMarker",name:"renderEmUnderscoreCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrong",name:"renderStrong",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kOpenMarker",name:"renderStrongA6kOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongA6kCloseMarker",name:"renderStrongA6kCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eOpenMarker",name:"renderStrongU8eOpenMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderStrongU8eCloseMarker",name:"renderStrongU8eCloseMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquote",name:"renderBlockquote",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderBlockquoteMarker",name:"renderBlockquoteMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeading",name:"renderHeading",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingC8hMarker",name:"renderHeadingC8hMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHeadingID",name:"renderHeadingID",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderList",name:"renderList",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderListItem",name:"renderListItem",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderTaskListItemMarker",name:"renderTaskListItemMarker",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderThematicBreak",name:"renderThematicBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderHardBreak",name:"renderHardBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderSoftBreak",name:"renderSoftBreak",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlock",name:"renderCodeBlock",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)},{prop:"renderCodeBlockCode",name:"renderCodeBlockCode",pkg:"github.com/88250/lute/render",typ:$funcType([BZ,$Bool],[A.WalkStatus],false)}];M.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);S.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""},{prop:"NodeWriterStack",name:"NodeWriterStack",embedded:false,exported:true,typ:CC,tag:""}]);U.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);X.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);AC.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);AH.init([BZ,$Bool],[A.WalkStatus],false);AI.init([BZ,$Bool],[$String,A.WalkStatus],false);AK.init("",[{prop:"SoftBreak2HardBreak",name:"SoftBreak2HardBreak",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"AutoSpace",name:"AutoSpace",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"RenderListStyle",name:"RenderListStyle",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeSyntaxHighlight",name:"CodeSyntaxHighlight",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeSyntaxHighlightDetectLang",name:"CodeSyntaxHighlightDetectLang",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeSyntaxHighlightInlineStyle",name:"CodeSyntaxHighlightInlineStyle",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeSyntaxHighlightLineNum",name:"CodeSyntaxHighlightLineNum",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeSyntaxHighlightStyleName",name:"CodeSyntaxHighlightStyleName",embedded:false,exported:true,typ:$String,tag:""},{prop:"VditorWYSIWYG",name:"VditorWYSIWYG",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"VditorIR",name:"VditorIR",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"VditorSV",name:"VditorSV",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"KramdownBlockIAL",name:"KramdownBlockIAL",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"KramdownSpanIAL",name:"KramdownSpanIAL",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"ImageLazyLoading",name:"ImageLazyLoading",embedded:false,exported:true,typ:$String,tag:""},{prop:"ChineseParagraphBeginningSpace",name:"ChineseParagraphBeginningSpace",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"Sanitize",name:"Sanitize",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"FixTermTypo",name:"FixTermTypo",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"ToC",name:"ToC",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"HeadingID",name:"HeadingID",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"KramdownIALIDRenderName",name:"KramdownIALIDRenderName",embedded:false,exported:true,typ:$String,tag:""},{prop:"HeadingAnchor",name:"HeadingAnchor",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"GFMTaskListItemClass",name:"GFMTaskListItemClass",embedded:false,exported:true,typ:$String,tag:""},{prop:"VditorCodeBlockPreview",name:"VditorCodeBlockPreview",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"VditorMathBlockPreview",name:"VditorMathBlockPreview",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"VditorHTMLBlockPreview",name:"VditorHTMLBlockPreview",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"Terms",name:"Terms",embedded:false,exported:true,typ:CZ,tag:""},{prop:"LinkBase",name:"LinkBase",embedded:false,exported:true,typ:$String,tag:""},{prop:"LinkPrefix",name:"LinkPrefix",embedded:false,exported:true,typ:$String,tag:""}]);AM.init("",[{prop:"Options",name:"Options",embedded:false,exported:true,typ:CM,tag:""},{prop:"RendererFuncs",name:"RendererFuncs",embedded:false,exported:true,typ:DA,tag:""},{prop:"DefaultRendererFunc",name:"DefaultRendererFunc",embedded:false,exported:true,typ:AH,tag:""},{prop:"ExtRendererFuncs",name:"ExtRendererFuncs",embedded:false,exported:true,typ:DB,tag:""},{prop:"Writer",name:"Writer",embedded:false,exported:true,typ:CB,tag:""},{prop:"LastOut",name:"LastOut",embedded:false,exported:true,typ:$Uint8,tag:""},{prop:"Tree",name:"Tree",embedded:false,exported:true,typ:CN,tag:""},{prop:"DisableTags",name:"DisableTags",embedded:false,exported:true,typ:$Int,tag:""},{prop:"FootnotesDefs",name:"FootnotesDefs",embedded:false,exported:true,typ:CD,tag:""},{prop:"RenderingFootnotes",name:"RenderingFootnotes",embedded:false,exported:true,typ:$Bool,tag:""}]);AS.init("github.com/88250/lute/render",[{prop:"URL",name:"URL",embedded:false,exported:true,typ:$String,tag:"json:\"url\""},{prop:"Path",name:"Path",embedded:false,exported:true,typ:$String,tag:"json:\"path\""},{prop:"ID",name:"ID",embedded:false,exported:true,typ:$String,tag:"json:\"id\""},{prop:"Content",name:"Content",embedded:false,exported:true,typ:$String,tag:"json:\"content\""},{prop:"Level",name:"Level",embedded:false,exported:true,typ:$Int,tag:"json:\"level\""},{prop:"Children",name:"Children",embedded:false,exported:true,typ:CP,tag:"json:\"children\""},{prop:"parent",name:"parent",embedded:false,exported:false,typ:CO,tag:""}]);BK.init("github.com/88250/lute/render",[{prop:"FormatRenderer",name:"FormatRenderer",embedded:true,exported:true,typ:CT,tag:""},{prop:"linkPrefixes",name:"linkPrefixes",embedded:false,exported:false,typ:BW,tag:""},{prop:"originalLink",name:"originalLink",embedded:false,exported:false,typ:BW,tag:""}]);BM.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);BQ.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);BS.init("github.com/88250/lute/render",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""},{prop:"nodeWriterStack",name:"nodeWriterStack",embedded:false,exported:false,typ:CC,tag:""},{prop:"LastOut",name:"LastOut",embedded:false,exported:true,typ:BX,tag:""}]);BU.init("",[{prop:"BaseRenderer",name:"BaseRenderer",embedded:true,exported:true,typ:CA,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=G.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=L.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=K.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}R=new BW(["jpg","png","gif","webp","cr2","tif","bmp","heif","jxr","psd","ico","dwg","mp4","m4v","mkv","webm","mov","avi","wmv","mpg","flv","3gp","mid","mp3","m4a","ogg","flac","wav","amr","aac","epub","zip","tar","rar","gz","bz2","7z","xz","pdf","exe","swf","rtf","iso","eot","ps","sqli","nes","crx","cab","deb","ar","Z","lz","rpm","elf","dcm","doc","docx","xls","xlsx","ppt","pptx","md","txt","woff","woff2","ttf","otf","wasm","exe","html","js","css","go","java","textbundle"]);P=R.$length;W=" 123456";AV=new BW(["mermaid","echarts","abc","graphviz","mindmap","flowchart","plantuml"]);AX=$makeMap($String.keyFor,[{k:"frame",v:$ifaceNil},{k:"frameset",v:$ifaceNil},{k:"noembed",v:$ifaceNil},{k:"noframes",v:$ifaceNil},{k:"noscript",v:$ifaceNil},{k:"nostyle",v:$ifaceNil},{k:"object",v:$ifaceNil},{k:"script",v:$ifaceNil},{k:"style",v:$ifaceNil},{k:"title",v:$ifaceNil}]);BD=$makeMap($String.keyFor,[{k:"onafterprint",v:$ifaceNil},{k:"onbeforeprint",v:$ifaceNil},{k:"onbeforeunload",v:$ifaceNil},{k:"onerror",v:$ifaceNil},{k:"onhashchange",v:$ifaceNil},{k:"onload",v:$ifaceNil},{k:"onmessage",v:$ifaceNil},{k:"onoffline",v:$ifaceNil},{k:"ononline",v:$ifaceNil},{k:"onpagehide",v:$ifaceNil},{k:"onpageshow",v:$ifaceNil},{k:"onpopstate",v:$ifaceNil},{k:"onresize",v:$ifaceNil},{k:"onstorage",v:$ifaceNil},{k:"onunload",v:$ifaceNil},{k:"onblur",v:$ifaceNil},{k:"onchange",v:$ifaceNil},{k:"oncontextmenu",v:$ifaceNil},{k:"onfocus",v:$ifaceNil},{k:"oninput",v:$ifaceNil},{k:"oninvalid",v:$ifaceNil},{k:"onreset",v:$ifaceNil},{k:"onsearch",v:$ifaceNil},{k:"onselect",v:$ifaceNil},{k:"onsubmit",v:$ifaceNil},{k:"onkeydown",v:$ifaceNil},{k:"onkeypress",v:$ifaceNil},{k:"onkeyup",v:$ifaceNil},{k:"onclick",v:$ifaceNil},{k:"ondblclick",v:$ifaceNil},{k:"onmousedown",v:$ifaceNil},{k:"onmousemove",v:$ifaceNil},{k:"onmouseout",v:$ifaceNil},{k:"onmouseover",v:$ifaceNil},{k:"onmouseup",v:$ifaceNil},{k:"onmousewheel",v:$ifaceNil},{k:"onwheel",v:$ifaceNil},{k:"ondrag",v:$ifaceNil},{k:"ondragend",v:$ifaceNil},{k:"ondragenter",v:$ifaceNil},{k:"ondragleave",v:$ifaceNil},{k:"ondragover",v:$ifaceNil},{k:"ondragstart",v:$ifaceNil},{k:"ondrop",v:$ifaceNil},{k:"onscroll",v:$ifaceNil},{k:"oncopy",v:$ifaceNil},{k:"oncut",v:$ifaceNil},{k:"onpaste",v:$ifaceNil},{k:"onabort",v:$ifaceNil},{k:"oncanplay",v:$ifaceNil},{k:"oncanplaythrough",v:$ifaceNil},{k:"oncuechange",v:$ifaceNil},{k:"ondurationchange",v:$ifaceNil},{k:"onemptied",v:$ifaceNil},{k:"onended",v:$ifaceNil},{k:"onloadeddata",v:$ifaceNil},{k:"onloadedmetadata",v:$ifaceNil},{k:"onloadstart",v:$ifaceNil},{k:"onpause",v:$ifaceNil},{k:"onplay",v:$ifaceNil},{k:"onplaying",v:$ifaceNil},{k:"onprogress",v:$ifaceNil},{k:"onratechange",v:$ifaceNil},{k:"onseeked",v:$ifaceNil},{k:"onseeking",v:$ifaceNil},{k:"onstalled",v:$ifaceNil},{k:"onsuspend",v:$ifaceNil},{k:"ontimeupdate",v:$ifaceNil},{k:"onvolumechange",v:$ifaceNil},{k:"onwaiting",v:$ifaceNil},{k:"ontoggle",v:$ifaceNil}]);BJ=$makeMap($String.keyFor,[{k:"flutter",v:"Flutter"},{k:"netty",v:"Netty"},{k:"jetty",v:"Jetty"},{k:"tomcat",v:"Tomcat"},{k:"jdbc",v:"JDBC"},{k:"mariadb",v:"MariaDB"},{k:"ipfs",v:"IPFS"},{k:"saas",v:"SaaS"},{k:"paas",v:"PaaS"},{k:"iaas",v:"IaaS"},{k:"ioc",v:"IoC"},{k:"freemarker",v:"FreeMarker"},{k:"ruby",v:"Ruby"},{k:"rails",v:"Rails"},{k:"mina",v:"Mina"},{k:"puppet",v:"Puppet"},{k:"vagrant",v:"Vagrant"},{k:"chef",v:"Chef"},{k:"beego",v:"Beego"},{k:"gin",v:"Gin"},{k:"iris",v:"Iris"},{k:"php",v:"PHP"},{k:"ssh",v:"SSH"},{k:"web",v:"Web"},{k:"websocket",v:"WebSocket"},{k:"api",v:"API"},{k:"css",v:"CSS"},{k:"html",v:"HTML"},{k:"json",v:"JSON"},{k:"jsonp",v:"JSONP"},{k:"xml",v:"XML"},{k:"yaml",v:"YAML"},{k:"csv",v:"CSV"},{k:"soap",v:"SOAP"},{k:"ajax",v:"AJAX"},{k:"messagepack",v:"MessagePack"},{k:"javascript",v:"JavaScript"},{k:"java",v:"Java"},{k:"jsp",v:"JSP"},{k:"restful",v:"RESTFul"},{k:"graphql",v:"GraphQL"},{k:"gorm",v:"GORM"},{k:"orm",v:"ORM"},{k:"oauth",v:"OAuth"},{k:"facebook",v:"Facebook"},{k:"github",v:"GitHub"},{k:"gist",v:"Gist"},{k:"heroku",v:"Heroku"},{k:"twitter",v:"Twitter"},{k:"youtube",v:"YouTube"},{k:"dynamodb",v:"DynamoDB"},{k:"mysql",v:"MySQL"},{k:"postgresql",v:"PostgreSQL"},{k:"sqlite",v:"SQLite"},{k:"memcached",v:"Memcached"},{k:"mongodb",v:"MongoDB"},{k:"redis",v:"Redis"},{k:"elasticsearch",v:"Elasticsearch"},{k:"solr",v:"Solr"},{k:"b3log",v:"B3log"},{k:"hacpai",v:"HacPai"},{k:"sphinx",v:"Sphinx"},{k:"linux",v:"Linux"},{k:"ubuntu",v:"Ubuntu"},{k:"centos",v:"CentOS"},{k:"centos7",v:"CentOS7"},{k:"redhat",v:"RedHat"},{k:"gitlab",v:"GitLab"},{k:"jquery",v:"jQuery"},{k:"angularjs",v:"AngularJS"},{k:"ffmpeg",v:"FFmpeg"},{k:"git",v:"Git"},{k:"svn",v:"SVN"},{k:"vim",v:"VIM"},{k:"emacs",v:"Emacs"},{k:"sublime",v:"Sublime"},{k:"virtualbox",v:"VirtualBox"},{k:"safari",v:"Safari"},{k:"chrome",v:"Chrome"},{k:"ie",v:"IE"},{k:"firefox",v:"Firefox"},{k:"iterm",v:"iTerm"},{k:"iterm2",v:"iTerm2"},{k:"iwork",v:"iWork"},{k:"itunes",v:"iTunes"},{k:"iphoto",v:"iPhoto"},{k:"ibook",v:"iBook"},{k:"imessage",v:"iMessage"},{k:"photoshop",v:"Photoshop"},{k:"excel",v:"Excel"},{k:"powerpoint",v:"PowerPoint"},{k:"ios",v:"iOS"},{k:"iphone",v:"iPhone"},{k:"ipad",v:"iPad"},{k:"android",v:"Android"},{k:"imac",v:"iMac"},{k:"macbook",v:"MacBook"},{k:"vps",v:"VPS"},{k:"vpn",v:"VPN"},{k:"cpu",v:"CPU"},{k:"spring",v:"Spring"},{k:"springboot",v:"SpringBoot"},{k:"springcloud",v:"SpringCloud"},{k:"springmvc",v:"SpringMVC"},{k:"mybatis",v:"MyBatis"},{k:"qq",v:"QQ"},{k:"sql",v:"SQL"},{k:"markdown",v:"Markdown"},{k:"jdk",v:"JDK"},{k:"openjdk",v:"OpenJDK"},{k:"cors",v:"CORS"},{k:"protobuf",v:"Protobuf"},{k:"google",v:"Google"},{k:"ibm",v:"IBM"},{k:"oracle",v:"Oracle"},{k:"typora",v:"Typora"}]);$pkg.NewlineSV=(new BX($stringToBytes("
        \n
        ")));}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); -$packages["github.com/88250/lute"]=(function(){var $pkg={},$init,A,B,C,D,L,E,F,G,J,K,H,I,N,Q,W,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,M,O,S,T,U,V;A=$packages["bytes"];B=$packages["github.com/88250/lute/ast"];C=$packages["github.com/88250/lute/html"];D=$packages["github.com/88250/lute/html/atom"];L=$packages["github.com/88250/lute/lex"];E=$packages["github.com/88250/lute/parse"];F=$packages["github.com/88250/lute/render"];G=$packages["github.com/88250/lute/util"];J=$packages["github.com/gopherjs/gopherjs/js"];K=$packages["strconv"];H=$packages["strings"];I=$packages["unicode"];N=$pkg.Lute=$newType(0,$kindStruct,"lute.Lute",true,"github.com/88250/lute",true,function(ParseOptions_,RenderOptions_,HTML2MdRendererFuncs_,HTML2VditorDOMRendererFuncs_,HTML2VditorIRDOMRendererFuncs_,HTML2VditorIRBlockDOMRendererFuncs_,HTML2VditorSVDOMRendererFuncs_,Md2HTMLRendererFuncs_,Md2VditorDOMRendererFuncs_,Md2VditorIRDOMRendererFuncs_,Md2VditorIRBlockDOMRendererFuncs_,Md2VditorSVDOMRendererFuncs_){this.$val=this;if(arguments.length===0){this.ParseOptions=AI.nil;this.RenderOptions=AM.nil;this.HTML2MdRendererFuncs=false;this.HTML2VditorDOMRendererFuncs=false;this.HTML2VditorIRDOMRendererFuncs=false;this.HTML2VditorIRBlockDOMRendererFuncs=false;this.HTML2VditorSVDOMRendererFuncs=false;this.Md2HTMLRendererFuncs=false;this.Md2VditorDOMRendererFuncs=false;this.Md2VditorIRDOMRendererFuncs=false;this.Md2VditorIRBlockDOMRendererFuncs=false;this.Md2VditorSVDOMRendererFuncs=false;return;}this.ParseOptions=ParseOptions_;this.RenderOptions=RenderOptions_;this.HTML2MdRendererFuncs=HTML2MdRendererFuncs_;this.HTML2VditorDOMRendererFuncs=HTML2VditorDOMRendererFuncs_;this.HTML2VditorIRDOMRendererFuncs=HTML2VditorIRDOMRendererFuncs_;this.HTML2VditorIRBlockDOMRendererFuncs=HTML2VditorIRBlockDOMRendererFuncs_;this.HTML2VditorSVDOMRendererFuncs=HTML2VditorSVDOMRendererFuncs_;this.Md2HTMLRendererFuncs=Md2HTMLRendererFuncs_;this.Md2VditorDOMRendererFuncs=Md2VditorDOMRendererFuncs_;this.Md2VditorIRDOMRendererFuncs=Md2VditorIRDOMRendererFuncs_;this.Md2VditorIRBlockDOMRendererFuncs=Md2VditorIRBlockDOMRendererFuncs_;this.Md2VditorSVDOMRendererFuncs=Md2VditorSVDOMRendererFuncs_;});Q=$pkg.ParseOption=$newType(4,$kindFunc,"lute.ParseOption",true,"github.com/88250/lute",true,null);W=$sliceType($Uint8);X=$ptrType(E.Tree);Y=$ptrType(C.Node);Z=$ptrType(B.Node);AA=$ptrType(E.Context);AB=$ptrType(L.Lexer);AC=$ptrType(E.InlineContext);AD=$sliceType($String);AE=$sliceType(Z);AF=$ptrType(B.ListData);AG=$sliceType($Int);AH=$sliceType(AD);AI=$ptrType(E.Options);AJ=$sliceType(D.Atom);AK=$sliceType($Int32);AL=$ptrType(N);AM=$ptrType(F.Options);AN=$sliceType(Q);AO=$mapType($String,$emptyInterface);AP=$sliceType($emptyInterface);AQ=$ptrType(C.Attribute);AR=$sliceType(AQ);AS=$sliceType(Y);AT=$ptrType(AS);AU=$mapType($String,$String);AV=$ptrType(J.Object);AW=$mapType($String,AV);AX=$mapType($String,AW);AY=$ptrType(A.Buffer);AZ=$mapType(B.NodeType,F.ExtRendererFunc);N.ptr.prototype.HTML2Markdown=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=$ifaceNil;d=this;e=d.HTML2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=W.nil;h=F.NewFormatRenderer(f,d.RenderOptions);i=d.HTML2MdRendererFuncs;j=0;k=$keys(i);while(true){if(!(j>0));}else if(H.Contains(i,"-text-html-basic")){j="html";}if(!(""===j)){f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new B.Node.ptr("","","",12,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes("```"),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",14,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));k=new A.Buffer.ptr(W.nil,0,0);f.LastChild.CodeBlockInfo=(new W($stringToBytes(j)));k.WriteString(c.domText(a));l=new B.Node.ptr("","","",15,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,k.Bytes(),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);f.AppendChild(l);f.AppendChild(new B.Node.ptr("","","",13,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes("```"),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);$s=-1;return;}}f.Type=1;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 9:f.Type=2;f.HeadingLevel=((((m=f.Tokens,(1>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+1]))-48<<24>>>24)>>0));f.AppendChild(new B.Node.ptr("","","",3,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(H.Repeat("#",f.HeadingLevel)),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 10:f.Type=4;b.Context.Tip.AppendChild(f);$s=37;continue;case 11:f.Type=5;f.AppendChild(new B.Node.ptr("","","",6,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(">"),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 12:f.Type=7;f.ListData=new B.ListData.ptr(0,false,0,0,0,0,0,false,W.nil,0);if(79618===a.DataAtom){f.ListData.Typ=1;}f.ListData.Tight=true;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 13:f.Type=8;n=c.domAttrValue(a,"data-marker");o=0;if(""===n){if(!(Y.nil===a.Parent)&&(79618===a.Parent.DataAtom)){p=c.domAttrValue(a.Parent,"start");if(""===p){n="1.";}else{n=p+".";}}else{n="*";o=n.charCodeAt(0);}}else{if(!(Y.nil===a.Parent)&&!("1."===n)&&(79618===a.Parent.DataAtom)&&!(Y.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){n="1.";}}f.ListData=new B.ListData.ptr(0,false,o,0,0,0,0,false,(new W($stringToBytes(n))),0);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 14:q=a.FirstChild;if(!(Y.nil===q)){$s=41;continue;}$s=42;continue;case 41:if((1===q.Type)||(40708===q.DataAtom)||(378116===q.DataAtom)){$s=43;continue;}$s=44;continue;case 43:f.Type=11;f.IsFencedCodeBlock=true;f.AppendChild(new B.Node.ptr("","","",12,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes("```"),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",14,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if((378116===q.DataAtom)||(40708===q.DataAtom)){r=c.domAttrValue(q,"class");if(!H.Contains(r,"language-")){r=c.domAttrValue(a,"class");}if(H.Contains(r,"language-")){s=$substring(r,(H.Index(r,"language-")+9>>0));f.LastChild.CodeBlockInfo=(new W($stringToBytes(s)));}}t=new A.Buffer.ptr(W.nil,0,0);t.WriteString(c.domText(a));u=new B.Node.ptr("","","",15,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,t.Bytes(),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);f.AppendChild(u);f.AppendChild(new B.Node.ptr("","","",13,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes("```"),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);$s=45;continue;case 44:f.Type=9;v=c.domHTML(a);$s=46;case 46:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}f.Tokens=v;b.Context.Tip.AppendChild(f);case 45:case 42:$s=-1;return;case 15:w=c.domText(a);if(""===w){$s=6;continue;}f.Type=17;x="*";f.AppendChild(new B.Node.ptr("","","",18,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(x),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 16:y=c.domText(a);if(""===y){$s=6;continue;}f.Type=22;z="**";f.AppendChild(new B.Node.ptr("","","",23,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(z),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 17:if(Y.nil===a.FirstChild){$s=-1;return;}aa=c.domHTML(a);$s=47;case 47:if($c){$c=false;aa=aa.$blk();}if(aa&&aa.$blk!==undefined){break s;}ab=aa;if(A.Contains(ab,(new W($stringToBytes(">"))))){ab=$subslice(ab,(A.Index(ab,(new W($stringToBytes(">"))))+1>>0));}ab=A.TrimSuffix(ab,(new W($stringToBytes(""))));ac=C.UnescapeString(($bytesToString(ab)));ab=(new W($stringToBytes(ac)));ad=new B.Node.ptr("","","",29,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,ab,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);f.Type=27;f.AppendChild(new B.Node.ptr("","","",28,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("`"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(ad);f.AppendChild(new B.Node.ptr("","","",30,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("`"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 18:f.Type=31;f.Tokens=G.StrToBytes("\n");b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 19:f.Type=33;if(""===c.domText(a)&&!(Y.nil===a.Parent)&&((89090===a.Parent.DataAtom)||(187906===a.Parent.DataAtom)||(199938===a.Parent.DataAtom)||(214274===a.Parent.DataAtom)||(216834===a.Parent.DataAtom)||(412930===a.Parent.DataAtom))){$s=-1;return;}f.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 20:ae=c.domAttrValue(a,"class");af=c.domAttrValue(a,"alt");if("emoji"===ae){f.Type=200;ag=new B.Node.ptr("","","",202,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,b.EmojiImgTokens(af,c.domAttrValue(a,"src")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);ag.AppendChild(new B.Node.ptr("","","",203,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(":"+af+":"),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(ag);}else{f.Type=34;f.AppendChild(new B.Node.ptr("","","",35,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if(!(""===af)){f.AppendChild(new B.Node.ptr("","","",40,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(af),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}f.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(c.domAttrValue(a,"src")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ah=c.domAttrValue(a,"title");if(!(""===ah)){f.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(ah))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}f.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 21:f.Type=100;if(c.hasAttr(a,"checked")){f.TaskListItemChecked=true;}b.Context.Tip.AppendChild(f);if(!(Z.nil===f.Parent.Parent)){f.Parent.Parent.ListData.Typ=3;}$s=37;continue;case 22:f.Type=101;ai="~";f.AppendChild(new B.Node.ptr("","","",102,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(ai),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 23:f.Type=450;aj="==";f.AppendChild(new B.Node.ptr("","","",451,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(aj),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 24:f.Type=485;f.AppendChild(new B.Node.ptr("","","",486,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 25:f.Type=490;f.AppendChild(new B.Node.ptr("","","",491,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 26:f.Type=106;ak=AG.nil;al=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(Y.nil===al))){break;}am=c.domAttrValue(al,"align");an=am;if(an===("left")){ak=$append(ak,1);}else if(an===("center")){ak=$append(ak,2);}else if(an===("right")){ak=$append(ak,3);}else{ak=$append(ak,0);}al=al.NextSibling;}f.TableAligns=ak;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 27:f.Type=107;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 28:$s=37;continue;case 29:if(Y.nil===a.FirstChild){$s=6;continue;}ao=a.Parent.Parent;f.Type=108;if(!((208901===ao.FirstChild.DataAtom))&&a===a.Parent.FirstChild){ap=new B.Node.ptr("","","",107,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(ap);b.Context.Tip=ap;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 30:f.Type=109;aq=c.domAttrValue(a,"align");ar=0;as=aq;if(as===("left")){ar=1;}else if(as===("center")){ar=2;}else if(as===("right")){ar=3;}else{ar=0;}f.TableCellAlign=ar;b.Context.Tip.AppendChild(f);b.Context.Tip=f;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=37;continue;case 31:$s=-1;return;case 32:if(Y.nil===a.FirstChild){$s=-1;return;}$s=37;continue;case 33:f.Type=16;f.Tokens=(new W($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(f);$s=-1;return;case 34:f.Type=9;at=c.domHTML(a);$s=48;case 48:if($c){$c=false;at=at.$blk();}if(at&&at.$blk!==undefined){break s;}f.Tokens=at;f.Tokens=(au=A.SplitAfter(f.Tokens,(new W($stringToBytes("")))),(0>=au.$length?($throwRuntimeError("index out of range"),undefined):au.$array[au.$offset+0]));b.Context.Tip.AppendChild(f);$s=37;continue;case 35:$s=-1;return;case 36:f.Type=9;av=c.domHTML(a);$s=49;case 49:if($c){$c=false;av=av.$blk();}if(av&&av.$blk!==undefined){break s;}f.Tokens=av;b.Context.Tip.AppendChild(f);$s=-1;return;case 37:case 6:aw=a.FirstChild;case 50:if(!(!(aw===Y.nil))){$s=51;continue;}$r=c.genASTByDOM(aw,b);$s=52;case 52:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}aw=aw.NextSibling;$s=50;continue;case 51:ax=a.DataAtom;if((ax===(28162))||(ax===(1537))){ay="*";f.AppendChild(new B.Node.ptr("","","",19,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(ay),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if((ax===(449798))||(ax===(257))){az="**";f.AppendChild(new B.Node.ptr("","","",24,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(az),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if(ax===(1)){f.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(c.domAttrValue(a,"href")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ba=c.domAttrValue(a,"title");if(!(""===ba)){f.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));f.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(ba),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}f.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else if((ax===(283139))||(ax===(9473))||(ax===(53766))){bb="~";f.AppendChild(new B.Node.ptr("","","",103,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(bb),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if(ax===(46596)){bc="==";f.AppendChild(new B.Node.ptr("","","",452,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.StrToBytes(bc),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if(ax===(461571)){f.AppendChild(new B.Node.ptr("","","",487,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if(ax===(421123)){f.AppendChild(new B.Node.ptr("","","",492,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));M(a,b,c);}else if(ax===(29191)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",9,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(""))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:N.ptr.prototype.genASTByDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};N.prototype.genASTByDOM=function(a,b){return this.$val.genASTByDOM(a,b);};M=function(a,b,c){var a,b,c,d,e,f;if(!(Y.nil===a.NextSibling)){d=c.domText(a.NextSibling);if(!(""===d)){e=(new AK($stringToRunes(d)));if(!I.IsSpace((0>=e.$length?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+0]))){f=new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.InsertAfter(f);}}}};O=function(a){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=AL.nil;b=new N.ptr(E.NewOptions(),F.NewOptions(),false,false,false,false,false,false,false,false,false,false);c=a;d=0;case 1:if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);$r=e(b);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d++;$s=1;continue;case 2:b.HTML2MdRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.HTML2VditorDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.HTML2VditorIRDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.HTML2VditorIRBlockDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.HTML2VditorSVDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.Md2HTMLRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.Md2VditorDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.Md2VditorIRDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.Md2VditorIRBlockDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b.Md2VditorSVDOMRendererFuncs=$makeMap(B.NodeType.keyFor,[]);b=b;$s=-1;return b;}return;}if($f===undefined){$f={$blk:O};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.New=O;N.ptr.prototype.Markdown=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=W.nil;d=this;e=E.Parse(a,b,d.ParseOptions);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=F.NewHtmlRenderer(f,d.RenderOptions);h=d.Md2HTMLRendererFuncs;i=0;j=$keys(h);while(true){if(!(i2147483647)?$throwRuntimeError("makemap: size out of range"):{}));d=G.BytesToStr(E.EmojiSitePlaceholder);e=b.ParseOptions.AliasEmoji;f=0;g=$keys(e);while(true){if(!(f=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+0]),$String),(($assertType((1>=w.$length?($throwRuntimeError("index out of range"),undefined):w.$array[w.$offset+1]),$Float64)>>0))];};})(g)};o++;}e++;}};N.prototype.SetJSRenderers=function(a){return this.$val.SetJSRenderers(a);};N.ptr.prototype.SpinVditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=H.ReplaceAll(a,"","\xE2\x80\xB8");d=c.vditorIRDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=E.Parse("",(new W($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=F.NewVditorIRRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=H.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.SpinVditorIRDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.SpinVditorIRDOM=function(a){return this.$val.SpinVditorIRDOM(a);};N.ptr.prototype.HTML2VditorIRDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=E.Parse("",(new W($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=F.NewVditorIRRenderer(j,c.RenderOptions);l=c.HTML2VditorIRDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m","");a=H.ReplaceAll(a,"\t\n","\n");a=H.ReplaceAll(a," \n"," \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(Y.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new E.Tree.ptr(new B.Node.ptr("","","",0,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil),new E.Context.ptr(X.nil,c.ParseOptions,Z.nil,Z.nil,W.nil,0,0,0,0,0,0,false,false,false,false,Z.nil,Z.nil),AB.nil,AC.nil,"","","","",AD.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(Y.nil===g))){$s=4;continue;}$r=c.genASTByVditorIRDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=B.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=C.UnescapeHTML(h.Tokens);if(!(Z.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(Z.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(Z.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=F.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=F.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.vditorIRDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.vditorIRDOM2Md=function(a){return this.$val.vditorIRDOM2Md(a);};N.ptr.prototype.genASTByVditorIRDOM=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-def"===e){$s=5;continue;}if("footnotes-block"===e){$s=6;continue;}if("toc-block"===e){$s=7;continue;}$s=8;continue;case 3:if(("code-block"===e||"math-block"===e)&&!H.Contains(c.domAttrValue(a.FirstChild,"data-type"),"-block-open-marker")){f=new B.Node.ptr("","","",1,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);g=new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(c.domText(a.FirstChild)))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);f.AppendChild(g);b.Context.Tip.AppendChild(f);b.Context.Tip=f;$s=-1;return;}h=a.FirstChild;case 10:if(!(!(h===Y.nil))){$s=11;continue;}$r=c.genASTByVditorIRDOM(h,b);$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=h.NextSibling;$s=10;continue;case 11:$s=9;continue;case 4:i=c.domText(a);j=new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(i))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(j);$s=9;continue;case 5:k=a.FirstChild;case 13:if(!(!(k===Y.nil))){$s=14;continue;}$r=c.genASTByVditorIRDOM(k,b);$s=15;case 15:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}k=k.NextSibling;$s=13;continue;case 14:$s=9;continue;case 6:l=a.FirstChild;case 16:if(!(!(Y.nil===l))){$s=17;continue;}m=new A.Buffer.ptr(W.nil,0,0);n=C.Render(m,l);$s=18;case 18:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;if($interfaceIsEqual($ifaceNil,o)){$s=19;continue;}$s=20;continue;case 19:p=c.vditorIRDOM2Md(m.String());$s=21;case 21:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=p;r=H.Split(q,"\n");q="";s=r;t=0;while(true){if(!(t=s.$length)?($throwRuntimeError("index out of range"),undefined):s.$array[s.$offset+t]);if(0"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 28:if(Y.nil===a.FirstChild){$s=-1;return;}ab.Type=7;ab.ListData=new B.ListData.ptr(0,false,0,0,0,0,0,false,W.nil,0);if(79618===a.DataAtom){ab.ListData.Typ=1;}ap=c.domAttrValue(a,"data-tight");if("true"===ap||""===ap){ab.ListData.Tight=true;}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 29:aq=a.FirstChild;if(!(Y.nil===aq)&&(3073===aq.DataAtom)&&!(Y.nil===aq.NextSibling)&&(3073===aq.NextSibling.DataAtom)){b.Context.Tip.ListData.Tight=false;}ab.Type=8;ar=c.domAttrValue(a,"data-marker");as=0;if(""===ar){if(!(Y.nil===a.Parent)&&(79618===a.Parent.DataAtom)){at=c.domAttrValue(a.Parent.FirstChild,"data-marker");au=c.domAttrValue(a.Parent,"start");if(""===au){ar="1";}else{ar=au;}if(!(""===at)){ar=ar+($substring(at,(at.length-1>>0)));}else{ar=ar+(".");}}else{ar=c.domAttrValue(a.Parent,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}else{if(!(Y.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===ar||"-"===ar||"+"===ar){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&!(Y.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(Y.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){ar="1.";}if(!("1."===ar)&&!("1)"===ar)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){ar="1.";}}else{if(!("*"===ar)&&!("-"===ar)&&!("+"===ar)){ar="*";}as=ar.charCodeAt(0);}}else{ar=c.domAttrValue(a,"data-marker");if(""===ar){ar="*";}as=ar.charCodeAt(0);}}ab.ListData=new B.ListData.ptr(0,false,as,0,0,0,0,false,(new W($stringToBytes(ar))),0);if(0===as){av=K.Atoi($substring(ar,0,(ar.length-1>>0)));ab.ListData.Num=av[0];ab.ListData.Delimiter=ar.charCodeAt((ar.length-1>>0));}b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 30:if(378116===a.FirstChild.DataAtom){aw=W.nil;if(!(Y.nil===a.FirstChild.FirstChild)){aw=(new W($stringToBytes(a.FirstChild.FirstChild.Data)));}ax=c.domAttrValue(a.Parent,"data-type");ay=ax;if(ay===("math-block")){ab.Type=300;ab.AppendChild(new B.Node.ptr("","","",302,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,aw,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);}else if(ay===("html-block")){ab.Type=9;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}else if(ay===("yaml-front-matter")){ab.Type=425;ab.AppendChild(new B.Node.ptr("","","",427,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,aw,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);}else{ab.Type=15;ab.Tokens=aw;b.Context.Tip.AppendChild(ab);}}$s=-1;return;case 31:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=66;continue;}$s=67;continue;case 66:az=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=68;case 68:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 67:ba=H.TrimSpace(c.domText(a));$s=69;case 69:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=72;case 72:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=70;continue;}$s=71;continue;case 70:$s=-1;return;case 71:if("\xE2\x80\xB8"===bb){ab.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=17;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 32:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=73;continue;}$s=74;continue;case 73:bd=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=75;case 75:if($c){$c=false;bd=bd.$blk();}if(bd&&bd.$blk!==undefined){break s;}a.FirstChild.Data=bd;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 74:be=H.TrimSpace(c.domText(a));$s=76;case 76:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}bf=be;bg=c.isEmptyText(a);$s=79;case 79:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}if(bg){$s=77;continue;}$s=78;continue;case 77:$s=-1;return;case 78:if("\xE2\x80\xB8"===bf){ab.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=22;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 33:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=80;continue;}$s=81;continue;case 80:bh=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=82;case 82:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 81:bi=H.TrimSpace(c.domText(a));$s=83;case 83:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=86;case 86:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=84;continue;}$s=85;continue;case 84:$s=-1;return;case 85:if("\xE2\x80\xB8"===bj){ab.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=101;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 34:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=87;continue;}$s=88;continue;case 87:bl=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=89;case 89:if($c){$c=false;bl=bl.$blk();}if(bl&&bl.$blk!==undefined){break s;}a.FirstChild.Data=bl;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 88:bm=H.TrimSpace(c.domText(a));$s=90;case 90:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}bn=bm;bo=c.isEmptyText(a);$s=93;case 93:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}if(bo){$s=91;continue;}$s=92;continue;case 91:$s=-1;return;case 92:if("\xE2\x80\xB8"===bn){ab.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}ab.Type=450;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 35:if(Y.nil===a.FirstChild){$s=-1;return;}bp=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===bp){ab.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(ab);$s=-1;return;}if(""===bp){$s=-1;return;}bq=(new W($stringToBytes(bp)));br=new B.Node.ptr("","","",29,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,bq,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);ab.Type=27;ab.AppendChild(br);b.Context.Tip.AppendChild(ab);$s=-1;return;case 36:if(!(Y.nil===a.Parent)){if(c.parentIs(a,new AJ([37378,87554]))){if((Y.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(Y.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(Y.nil===a.NextSibling){$s=-1;return;}ab.Type=10;ab.Tokens=(new W($stringToBytes("
        ")));b.Context.Tip.AppendChild(ab);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(Y.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;}}}ab.Type=31;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 37:ab.Type=33;ab.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 38:bs=z;bt=c.domAttrValue(a,"alt");if("emoji"===bs){ab.Type=200;bu=new B.Node.ptr("","","",202,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,b.EmojiImgTokens(bt,c.domAttrValue(a,"src")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);bu.AppendChild(new B.Node.ptr("","","",203,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(":"+bt+":"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ab.AppendChild(bu);b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}else{$s=-1;return;}$s=52;continue;case 39:if(Y.nil===a.Parent||Y.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(Y.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=94;continue;}$s=95;continue;case 94:bv=H.TrimSpace(a.NextSibling.FirstChild.Data);$s=96;case 96:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=bv;$s=22;continue;case 95:ab.Type=100;if(c.hasAttr(a,"checked")){ab.TaskListItemChecked=true;}b.Context.Tip.AppendChild(ab);if(!(Z.nil===ab.Parent.Parent.Parent)&&!(AF.nil===ab.Parent.Parent.Parent.ListData)){ab.Parent.Parent.Parent.ListData.Typ=3;}$s=52;continue;case 40:ab.Type=106;bw=AG.nil;bx=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(Y.nil===bx))){break;}by=c.domAttrValue(bx,"align");bz=by;if(bz===("left")){bw=$append(bw,1);}else if(bz===("center")){bw=$append(bw,2);}else if(bz===("right")){bw=$append(bw,3);}else{bw=$append(bw,0);}bx=bx.NextSibling;}ab.TableAligns=bw;ab.Tokens=W.nil;b.Context.Tip.AppendChild(new B.Node.ptr("","","",1,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 41:ab.Type=107;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 42:$s=52;continue;case 43:ab.Type=108;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 44:ab.Type=109;ca=c.domAttrValue(a,"align");cb=0;cc=ca;if(cc===("left")){cb=1;}else if(cc===("center")){cb=2;}else if(cc===("right")){cb=3;}else{cb=0;}ab.TableCellAlign=cb;b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=52;continue;case 45:if(Y.nil===a.FirstChild){$s=22;continue;}if("footnotes-ref"===e){ab.Type=16;ab.Tokens=(new W($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);}$s=-1;return;case 46:cd=e;if(cd===("inline-node")||cd===("em")||cd===("strong")||cd===("s")||cd===("a")||cd===("link-ref")||cd===("img")||cd===("code")||cd===("heading-id")||cd===("html-inline")||cd===("inline-math")||cd===("html-entity")){$s=98;continue;}if(cd===("math-block-close-marker")){$s=99;continue;}if(cd===("math-block-open-marker")){$s=100;continue;}if(cd===("yaml-front-matter-close-marker")){$s=101;continue;}if(cd===("yaml-front-matter-open-marker")){$s=102;continue;}if(cd===("code-block-open-marker")){$s=103;continue;}if(cd===("code-block-info")){$s=104;continue;}if(cd===("code-block-close-marker")){$s=105;continue;}if(cd===("heading-marker")){$s=106;continue;}$s=107;continue;case 98:ab.Type=16;ab.Tokens=(new W($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(ab);$s=-1;return;case 99:b.Context.Tip.AppendChild(new B.Node.ptr("","","",303,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.MathBlockMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 100:ab.Type=300;ab.AppendChild(new B.Node.ptr("","","",301,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.MathBlockMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 101:b.Context.Tip.AppendChild(new B.Node.ptr("","","",428,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.YamlFrontMatterMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=-1;return;case 102:ab.Type=425;ab.AppendChild(new B.Node.ptr("","","",426,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.YamlFrontMatterMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(ab);b.Context.Tip=ab;$s=-1;return;case 103:if(290819===a.NextSibling.DataAtom){a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,0,40708,"","",new AR([new C.Attribute.ptr("","data-type","code-block-info")])));}ce=(new W($stringToBytes(c.domText(a))));cf=A.LastIndex(ce,(new W($stringToBytes("`"))))+1>>0;if(0>0;if(0")))),(0>=cp.$length?($throwRuntimeError("index out of range"),undefined):cp.$array[cp.$offset+0]));b.Context.Tip.AppendChild(ab);$s=52;continue;case 49:$s=52;continue;case 50:$s=-1;return;case 51:ab.Type=9;cq=c.domHTML(a);$s=112;case 112:if($c){$c=false;cq=cq.$blk();}if(cq&&cq.$blk!==undefined){break s;}ab.Tokens=cq;b.Context.Tip.AppendChild(ab);$s=-1;return;case 52:case 22:cr=a.FirstChild;case 113:if(!(!(cr===Y.nil))){$s=114;continue;}$r=c.genASTByVditorIRDOM(cr,b);$s=115;case 115:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}cr=cr.NextSibling;$s=113;continue;case 114:cs=a.DataAtom;if(cs===(1)){ab.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ab.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ct=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){ct=H.ReplaceAll(ct,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){ct=H.ReplaceAll(ct,c.RenderOptions.LinkPrefix,"");}ab.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(ct))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));cu=c.domAttrValue(a,"title");if(!(""===cu)){ab.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));ab.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cu))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}ab.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else if(cs===(29191)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",9,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(""))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:N.ptr.prototype.genASTByVditorIRDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};N.prototype.genASTByVditorIRDOM=function(a,b){return this.$val.genASTByVditorIRDOM(a,b);};N.ptr.prototype.SpinVditorIRBlockDOM=function(a){var a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=H.ReplaceAll(a,"","\xE2\x80\xB8");d=c.vditorIRBlockDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=E.Parse("",(new W($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=c.Tree2VditorIRBlockDOM(g,c.RenderOptions);$s=3;case 3:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;b=H.ReplaceAll(b,"\xE2\x80\xB8","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.SpinVditorIRBlockDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.SpinVditorIRBlockDOM=function(a){return this.$val.SpinVditorIRBlockDOM(a);};N.ptr.prototype.HTML2VditorIRBlockDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=E.Parse("",(new W($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=F.NewVditorIRBlockRenderer(j,c.RenderOptions);l=c.HTML2VditorIRBlockDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m","");a=H.ReplaceAll(a,"\t\n","\n");a=H.ReplaceAll(a," \n"," \n");e=d.parseHTML(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;if(Y.nil===f){$s=-1;return[b,c];}$r=d.adjustVditorDOM(f);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=new E.Tree.ptr(new B.Node.ptr("","","",0,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil),new E.Context.ptr(X.nil,d.ParseOptions,Z.nil,Z.nil,W.nil,0,0,0,0,0,0,false,false,false,false,Z.nil,Z.nil),AB.nil,AC.nil,"","","","",AD.nil,new $Int64(0,0),new $Int64(0,0),"");b.Context.Tip=b.Root;g=f.FirstChild;case 3:if(!(!(Y.nil===g))){$s=4;continue;}$r=d.genASTByVditorIRBlockDOM(g,b);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=B.Walk(b.Root,(function(h,i){var h,i,j;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=C.UnescapeHTML(h.Tokens);if(!(Z.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)&&!(Z.nil===h.FirstChild)&&!(Z.nil===h.FirstChild.Next)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return[b,c];}return;}if($f===undefined){$f={$blk:N.ptr.prototype.VditorIRBlockDOM2Tree};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.VditorIRBlockDOM2Tree=function(a){return this.$val.VditorIRBlockDOM2Tree(a);};N.ptr.prototype.vditorIRBlockDOM2Md=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.VditorIRBlockDOM2Tree(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=F.NewOptions();i.AutoSpace=false;i.FixTermTypo=false;i.KramdownBlockIAL=true;i.KramdownSpanIAL=true;j=F.NewFormatRenderer(f,i);k=j.BaseRenderer.Render();$s=5;case 5:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k;b=($bytesToString(l));$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.vditorIRBlockDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.vditorIRBlockDOM2Md=function(a){return this.$val.vditorIRBlockDOM2Md(a);};N.ptr.prototype.VditorIRBlockDOMListCommand=function(a,b,c,d){var a,aa,ab,ac,ad,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e="";f=this;a=H.ReplaceAll(a,"","\xE2\x80\xB8");g=f.vditorIRBlockDOM2Md(a);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;i=H.Split(h,"\n");j=new A.Buffer.ptr(W.nil,0,0);k=0;case 2:if(!(k=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+k]);m="";if(("tab1"===b)&&H.Contains(l,c)){$s=4;continue;}$s=5;continue;case 4:k=k+(1)>>0;$s=2;continue;case 5:if("tab2"===b&&H.Contains(l,c)){$s=6;continue;}$s=7;continue;case 6:k=k+(1)>>0;$s=2;continue;case 7:if(H.Contains(l,"\xE2\x80\xB8")){$s=8;continue;}$s=9;continue;case 8:n=H.TrimSpace(l);$s=11;case 11:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=L.IsDigit(n.charCodeAt(0));$s=12;case 12:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;q=b;if(q===("tab2")){$s=14;continue;}if(q===("tab0")){$s=15;continue;}if(q===("stab")){$s=16;continue;}$s=17;continue;case 14:j.WriteString("\n");r=U(l);if(p){$s=18;continue;}$s=19;continue;case 18:s=H.TrimSpace(l);$s=21;case 21:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}t=$substring(s,1);m=" "+r+"1"+t+"\n";j.WriteString(m);$s=20;continue;case 19:m=" "+l+"\n";j.WriteString(m);case 20:u=k+1>>0;while(true){if(!(u=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+u]);if(H.Contains(v,d)){j.WriteString(v+"\n");break;}if(p){j.WriteString(" "+((u<0||u>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+u])+"\n");}else{j.WriteString(" "+((u<0||u>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+u])+"\n");}u=u+(1)>>0;}k=u;k=k+(1)>>0;$s=2;continue;$s=17;continue;case 15:j.WriteString("\n");w=U(l);if(p){$s=22;continue;}$s=23;continue;case 22:x=T(l);$s=24;case 24:if($c){$c=false;x=x.$blk();}if(x&&x.$blk!==undefined){break s;}y=x;if(0>0;while(true){if(!(z=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+z]);if(p){if(H.HasPrefix(aa," "+w+"{:")){break;}}else{if(H.HasPrefix(aa," "+w+"{:")){break;}}z=z+(1)>>0;}if(p){$s=25;continue;}$s=26;continue;case 25:ab=S(l);$s=28;case 28:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}ac=ab;m=" "+w+"1"+ac+"\n";((z<0||z>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+z]=" "+((z<0||z>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+z]));$s=27;continue;case 26:m=" "+l+"\n";((z<0||z>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+z]=" "+((z<0||z>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+z]));case 27:j.WriteString(m);k=k+(1)>>0;$s=2;continue;$s=17;continue;case 16:if(p){m=$substring(l,3)+"\n";}else{m=$substring(l,2)+"\n";}if(H.HasPrefix(m,".")){m="*"+$substring(m,1);}j.WriteString(m);case 17:case 13:$s=10;continue;case 9:m=l+"\n";j.WriteString(m);case 10:k=k+(1)>>0;$s=2;continue;case 3:h=j.String();ad=f.Md2VditorIRBlockDOM(h);$s=29;case 29:if($c){$c=false;ad=ad.$blk();}if(ad&&ad.$blk!==undefined){break s;}e=ad;e=H.ReplaceAll(e,"\xE2\x80\xB8","");$s=-1;return e;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.VditorIRBlockDOMListCommand};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.VditorIRBlockDOMListCommand=function(a,b,c,d){return this.$val.VditorIRBlockDOMListCommand(a,b,c,d);};S=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=H.TrimSpace(a);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;d=H.Index(c,". ");if(0>d){$s=-1;return c;}else{$s=-1;return $substring(c,d);}$s=-1;return"";}return;}if($f===undefined){$f={$blk:S};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};T=function(a){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=H.TrimSpace(a);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}c=b;$s=-1;return H.Index(c,".");}return;}if($f===undefined){$f={$blk:T};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$pkg.IndentOrder=T;U=function(a){var a,b,c,d,e,f;b="";c=a;d=0;while(true){if(!(d>0));}$r=c.genASTByVditorIRBlockDOM(v,b);$s=29;case 29:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}v=v.NextSibling;$s=23;continue;case 24:$s=-1;return;case 13:x=new B.Node.ptr("","","",410,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(x);y=a.FirstChild;case 30:if(!(!(Y.nil===y))){$s=31;continue;}z=new B.Node.ptr("","","",411,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);aa=new A.Buffer.ptr(W.nil,0,0);ab=C.Render(aa,y);$s=32;case 32:if($c){$c=false;ab=ab.$blk();}if(ab&&ab.$blk!==undefined){break s;}ac=ab;if($interfaceIsEqual($ifaceNil,ac)){$s=33;continue;}$s=34;continue;case 33:ae=c.VditorIRBlockDOM2Tree(aa.String());$s=35;case 35:if($c){$c=false;ae=ae.$blk();}if(ae&&ae.$blk!==undefined){break s;}ad=ae;af=ad[0];if(!(W.nil===af.Root.Tokens)){$s=36;continue;}$s=37;continue;case 36:ag=AE.nil;ah=af.Root.FirstChild;while(true){if(!(!(Z.nil===ah))){break;}ag=$append(ag,ah);ah=ah.Next;}ai=ag;aj=0;while(true){if(!(aj=ai.$length)?($throwRuntimeError("index out of range"),undefined):ai.$array[ai.$offset+aj]);z.AppendChild(ak);aj++;}z.Tokens=af.Root.Tokens;x.AppendChild(z);$s=38;continue;case 37:al=af.Root.Text();$s=39;case 39:if($c){$c=false;al=al.$blk();}if(al&&al.$blk!==undefined){break s;}$r=x.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(al))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=40;case 40:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 38:case 34:y=y.NextSibling;$s=30;continue;case 31:$s=-1;return;case 14:am=new B.Node.ptr("","","",415,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(am);$s=-1;return;case 15:an=c.domText(a);ao=E.Parse("",(new W($stringToBytes(an))),c.ParseOptions);$s=41;case 41:if($c){$c=false;ao=ao.$blk();}if(ao&&ao.$blk!==undefined){break s;}ap=ao;ap.Root.LastChild.Unlink();aq=ap.Root.FirstChild;if(!(Z.nil===aq)&&(465===aq.Type)){ar=i.KramdownIAL;as=i.ID;at=ar;au=as;i=aq;av=at;aw=au;i.KramdownIAL=av;i.ID=aw;ax=aq.Next;b.Context.Tip.AppendChild(i);V(ax,b);$s=-1;return;}ay=new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(an))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(ay);$s=-1;return;case 16:case 10:az=a.DataAtom;if(az===(0)){$s=43;continue;}if(az===(3073)){$s=44;continue;}if((az===(89090))||(az===(187906))||(az===(199938))||(az===(214274))||(az===(216834))||(az===(412930))){$s=45;continue;}if(az===(87810)){$s=46;continue;}if(az===(100106)){$s=47;continue;}if((az===(79618))||(az===(42754))){$s=48;continue;}if(az===(45570)){$s=49;continue;}if(az===(290819)){$s=50;continue;}if((az===(28162))||(az===(1537))){$s=51;continue;}if((az===(449798))||(az===(257))){$s=52;continue;}if((az===(283139))||(az===(9473))||(az===(53766))){$s=53;continue;}if(az===(46596)){$s=54;continue;}if(az===(378116)){$s=55;continue;}if(az===(514)){$s=56;continue;}if(az===(1)){$s=57;continue;}if(az===(198403)){$s=58;continue;}if(az===(281349)){$s=59;continue;}if(az===(365829)){$s=60;continue;}if(az===(208901)){$s=61;continue;}if(az===(9989)){$s=62;continue;}if(az===(52226)){$s=63;continue;}if((az===(87554))||(az===(37378))){$s=64;continue;}if(az===(461571)){$s=65;continue;}if(az===(40708)){$s=66;continue;}if(az===(92931)){$s=67;continue;}if(az===(16132)){$s=68;continue;}if(az===(29191)){$s=69;continue;}if(az===(47363)){$s=70;continue;}if(az===(459783)){$s=71;continue;}if((az===(70917))||(az===(192773))){$s=72;continue;}$s=73;continue;case 43:if(""===g){$s=-1;return;}if(3===a.Type){$s=42;continue;}if(!(!(Y.nil===a.Parent)&&!(Y.nil===a.Parent.Parent)&&(45570===a.Parent.Parent.DataAtom)&&!(Z.nil===b.Context.Tip.Parent)&&(8===b.Context.Tip.Parent.Type)&&(3===b.Context.Tip.Parent.ListData.Typ))){ba=false;$s=77;continue s;}bb=H.TrimSpace(g);$s=78;case 78:if($c){$c=false;bb=bb.$blk();}if(bb&&bb.$blk!==undefined){break s;}ba=""===bb;case 77:if(ba){$s=75;continue;}$s=76;continue;case 75:g=" \xE2\x80\x8B";i.Tokens=(new W($stringToBytes(" \xE2\x80\x8B")));case 76:bc=H.ReplaceAll(g,"\xE2\x80\xB8","");bc=H.ReplaceAll(bc,"\t"," ");if((!c.isInline(a.PrevSibling))&&H.HasPrefix(bc," ")){$s=79;continue;}$s=80;continue;case 79:i.Type=11;i.IsFencedCodeBlock=true;i.AppendChild(new B.Node.ptr("","","",12,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("```"))),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));i.AppendChild(new B.Node.ptr("","","",14,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));bd=H.HasPrefix(g,"\xE2\x80\xB8");if(bd){g=H.ReplaceAll(g,"\xE2\x80\xB8","");}be=H.TrimSpace(g);$s=81;case 81:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}g=be;if(bd){g="\xE2\x80\xB8"+g;}bf=new B.Node.ptr("","","",15,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(g))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);i.AppendChild(bf);i.AppendChild(new B.Node.ptr("","","",13,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("```"))),false,false,false,0,false,0,3,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(i);$s=-1;return;case 80:if(!(Y.nil===a.Parent)&&(1===a.Parent.DataAtom)){i.Type=40;}if(11===b.Context.Tip.Type){b.Context.Tip.Type=1;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(g))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if(!(Y.nil===a.NextSibling)&&!(Y.nil===a.NextSibling.NextSibling)&&!(Y.nil===a.NextSibling.NextSibling.NextSibling)&&!(Y.nil===a.NextSibling.NextSibling.NextSibling.NextSibling)){a.Parent.RemoveChild(a.NextSibling.NextSibling.NextSibling.NextSibling);}$s=42;continue;}bg=$makeSlice(W,i.Tokens.$length);$copySlice(bg,i.Tokens);bh=E.Parse("",bg,b.Context.ParseOption);$s=82;case 82:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}bi=bh;if(!(Z.nil===bi.Root.FirstChild)&&(1===b.Context.Tip.Type)&&((11===bi.Root.FirstChild.Type)||(7===bi.Root.FirstChild.Type))){$s=83;continue;}$s=84;continue;case 83:if(11===bi.Root.FirstChild.Type){$s=86;continue;}if(7===bi.Root.FirstChild.Type){$s=87;continue;}$s=88;continue;case 86:i.Tokens=A.TrimPrefix(i.Tokens,(new W($stringToBytes("\n"))));b.Context.Tip.AppendChild(i);$s=88;continue;case 87:if(Y.nil===a.Parent.NextSibling){$s=89;continue;}$s=90;continue;case 89:i.Tokens=A.TrimPrefix(i.Tokens,(new W($stringToBytes("\n"))));b.Context.Tip.AppendChild(i);$s=91;continue;case 90:bj=bi.Root.FirstChild.Text();$s=94;case 94:if($c){$c=false;bj=bj.$blk();}if(bj&&bj.$blk!==undefined){break s;}if(""===bj){$s=92;continue;}$s=93;continue;case 92:if(!(Y.nil===a.Parent.NextSibling)&&!(Y.nil===a.Parent.NextSibling.FirstChild)&&"\xE2\x80\xB8"===a.Parent.NextSibling.FirstChild.Data){b.Context.Tip.Type=bi.Root.FirstChild.Type;i=bi.Root.FirstChild.FirstChild;b.Context.Tip.AppendChild(bi.Root.FirstChild.FirstChild);i=new B.Node.ptr("","","",1,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.LastChild.AppendChild(i);b.Context.Tip=i;}else{b.Context.Tip.AppendChild(i);}case 93:case 91:case 88:$s=85;continue;case 84:bk=E.Inline("",bg,b.Context.ParseOption);$s=95;case 95:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}bi=bk;if((32===bi.Root.FirstChild.FirstChild.Type)||((1===bi.Root.FirstChild.Type)&&((34===bi.Root.FirstChild.FirstChild.Type)||((32===bi.Root.FirstChild.FirstChild.Type)&&!(Z.nil===bi.Root.FirstChild.FirstChild.Next)&&((16===bi.Root.FirstChild.FirstChild.Next.Type)||(17===bi.Root.FirstChild.FirstChild.Next.Type)||(22===bi.Root.FirstChild.FirstChild.Next.Type)||(101===bi.Root.FirstChild.FirstChild.Next.Type)||(27===bi.Root.FirstChild.FirstChild.Next.Type)||(450===bi.Root.FirstChild.FirstChild.Next.Type))))&&Z.nil===bi.Root.FirstChild.Next)){V(bi.Root.FirstChild.FirstChild,b);}else{i.Tokens=A.TrimPrefix(i.Tokens,(new W($stringToBytes("\n"))));b.Context.Tip.AppendChild(i);}case 85:$s=74;continue;case 44:i.Type=1;bl=c.domText(a);if("\n"===bl&&(5===b.Context.Tip.Type)&&Z.nil===b.Context.Tip.FirstChild.Next){$s=-1;return;}else{b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}$s=74;continue;case 45:bm=c.domText(a);bn=H.TrimSpace(bm);$s=98;case 98:if($c){$c=false;bn=bn.$blk();}if(bn&&bn.$blk!==undefined){break s;}if(""===bn){$s=96;continue;}$s=97;continue;case 96:$s=-1;return;case 97:if(c.parentIs(a,new AJ([365829]))){$s=99;continue;}$s=100;continue;case 99:bo=H.TrimSpace(bm);$s=101;case 101:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}i.Tokens=(new W($stringToBytes(bo)));while(true){if(!(A.HasPrefix(i.Tokens,(new W($stringToBytes("#")))))){break;}i.Tokens=A.TrimPrefix(i.Tokens,(new W($stringToBytes("#"))));}b.Context.Tip.AppendChild(i);$s=-1;return;case 100:i.Type=2;bp=c.domAttrValue(a,"data-marker");i.HeadingSetext="="===bp||"-"===bp;if(!i.HeadingSetext){$s=102;continue;}$s=103;continue;case 102:bq=c.domText(a.FirstChild);i.HeadingLevel=A.Count((new W($stringToBytes(bq))),(new W($stringToBytes("#"))));$s=104;continue;case 103:if(a.FirstChild===a.LastChild){br=true;$s=107;continue s;}bs=H.TrimSpace(H.ReplaceAll(c.domText(a.LastChild),"\xE2\x80\xB8",""));$s=108;case 108:if($c){$c=false;bs=bs.$blk();}if(bs&&bs.$blk!==undefined){break s;}br=""===bs;case 107:if(br){$s=105;continue;}$s=106;continue;case 105:i.Type=16;i.Tokens=(new W($stringToBytes(bm)));b.Context.Tip.AppendChild(i);b.Context.Tip=i;$s=-1;return;case 106:if("="===bp){i.HeadingLevel=1;}else{i.HeadingLevel=2;}if(!(Y.nil===a.LastChild.PrevSibling)){a.LastChild.PrevSibling.Data=H.TrimSuffix(a.LastChild.PrevSibling.Data,"\n");}case 104:b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 46:i.Type=4;b.Context.Tip.AppendChild(i);$s=74;continue;case 47:bt=H.TrimSpace(c.domText(a));$s=109;case 109:if($c){$c=false;bt=bt.$blk();}if(bt&&bt.$blk!==undefined){break s;}bu=bt;if(""===bu||">"===bu){$s=-1;return;}if("\xE2\x80\xB8"===bu){i.Type=16;i.Tokens=(new W($stringToBytes(bu)));b.Context.Tip.AppendChild(i);}i.Type=5;i.AppendChild(new B.Node.ptr("","","",6,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(">"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 48:if(Y.nil===a.FirstChild){$s=-1;return;}i.Type=7;i.ListData=new B.ListData.ptr(0,false,0,0,0,0,0,false,W.nil,0);bv=c.domAttrValue(a,"data-marker");if(""===bv){bv="*";}if(79618===a.DataAtom){bv="*";}else{bv=H.ReplaceAll(bv,")",".");}if(79618===a.DataAtom){i.ListData.Typ=1;bw=c.domAttrValue(a,"start");if(""===bw){bw="1";}bx=K.Atoi(bw);i.ListData.Start=bx[0];}else{i.ListData.BulletChar=bv.charCodeAt(0);}i.ListData.Marker=(new W($stringToBytes(bv)));by=c.domAttrValue(a,"data-tight");if("true"===by||""===by){i.ListData.Tight=true;}b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 49:if(!((7===b.Context.Tip.Type))){bz=new B.Node.ptr("","","",0,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);bz.Type=7;bz.ListData=new B.ListData.ptr(0,true,0,0,0,0,0,false,W.nil,0);ca=c.domAttrValue(a,"data-marker");if(""===ca){ca="*";}b.Context.Tip.AppendChild(bz);b.Context.Tip=bz;}cb=a.FirstChild;if(!(Y.nil===cb)&&(3073===cb.DataAtom)&&!(Y.nil===cb.NextSibling)&&(3073===cb.NextSibling.DataAtom)){b.Context.Tip.ListData.Tight=false;}i.Type=8;cc=c.domAttrValue(a,"data-marker");cd=0;if(""===cc){if(!(Y.nil===a.Parent)&&(79618===a.Parent.DataAtom)){ce=c.domAttrValue(a.Parent.FirstChild,"data-marker");cf=c.domAttrValue(a.Parent,"start");if(""===cf){cc="1";}else{cc=cf;}if(!(""===ce)){cc=cc+($substring(ce,(ce.length-1>>0)));}else{cc=cc+(".");}}else{cc=c.domAttrValue(a.Parent,"data-marker");if(""===cc){cc="*";}cd=cc.charCodeAt(0);}}else{if(!(Y.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===cc||"-"===cc||"+"===cc){cc="1.";}if(!("1."===cc)&&!("1)"===cc)&&!(Y.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(Y.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){cc="1.";}if(!("1."===cc)&&!("1)"===cc)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){cc="1.";}}else{if(!("*"===cc)&&!("-"===cc)&&!("+"===cc)){cc="*";}cd=cc.charCodeAt(0);}}else{cc=c.domAttrValue(a,"data-marker");if(""===cc){cc="*";}cd=cc.charCodeAt(0);}}i.ListData=new B.ListData.ptr(0,false,cd,0,0,0,0,false,(new W($stringToBytes(cc))),0);if(0===cd){cg=K.Atoi($substring(cc,0,(cc.length-1>>0)));i.ListData.Num=cg[0];i.ListData.Delimiter=cc.charCodeAt((cc.length-1>>0));}if(Y.nil===a.FirstChild){i.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}if("vditor-task"===c.domAttrValue(a,"class")){i.ListData.Typ=3;b.Context.Tip.ListData.Typ=3;}b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 50:if(378116===a.FirstChild.DataAtom){ch=W.nil;if(!(Y.nil===a.FirstChild.FirstChild)){ch=G.StrToBytes(c.domText(a.FirstChild.FirstChild));ci=a.FirstChild.FirstChild.NextSibling;while(true){if(!(!(Y.nil===ci))){break;}ch=$appendSlice(ch,(new W($stringToBytes(c.domText(ci)))));ci=ci.NextSibling;}}cj=c.domAttrValue(a.Parent,"data-type");ck=cj;if(ck===("math-block")){i.Type=302;i.Tokens=ch;b.Context.Tip.AppendChild(i);}else if(ck===("git-conflict")){i.Type=497;i.Tokens=ch;b.Context.Tip.AppendChild(i);}else if(ck===("html-block")){b.Context.Tip.Tokens=ch;}else if(ck===("yaml-front-matter")){i.Type=427;i.Tokens=ch;b.Context.Tip.AppendChild(i);}else{i.Type=15;i.Tokens=ch;b.Context.Tip.AppendChild(i);}}$s=-1;return;case 51:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=110;continue;}$s=111;continue;case 110:cl=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=112;case 112:if($c){$c=false;cl=cl.$blk();}if(cl&&cl.$blk!==undefined){break s;}a.FirstChild.Data=cl;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 111:cm=H.TrimSpace(c.domText(a));$s=113;case 113:if($c){$c=false;cm=cm.$blk();}if(cm&&cm.$blk!==undefined){break s;}cn=cm;co=c.isEmptyText(a);$s=116;case 116:if($c){$c=false;co=co.$blk();}if(co&&co.$blk!==undefined){break s;}if(co){$s=114;continue;}$s=115;continue;case 114:$s=-1;return;case 115:if("\xE2\x80\xB8"===cn){i.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(i);$s=-1;return;}i.Type=17;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 52:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=117;continue;}$s=118;continue;case 117:cp=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=119;case 119:if($c){$c=false;cp=cp.$blk();}if(cp&&cp.$blk!==undefined){break s;}a.FirstChild.Data=cp;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 118:cq=H.TrimSpace(c.domText(a));$s=120;case 120:if($c){$c=false;cq=cq.$blk();}if(cq&&cq.$blk!==undefined){break s;}cr=cq;cs=c.isEmptyText(a);$s=123;case 123:if($c){$c=false;cs=cs.$blk();}if(cs&&cs.$blk!==undefined){break s;}if(cs){$s=121;continue;}$s=122;continue;case 121:$s=-1;return;case 122:if("\xE2\x80\xB8"===cr){i.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(i);$s=-1;return;}i.Type=22;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 53:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=124;continue;}$s=125;continue;case 124:ct=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=126;case 126:if($c){$c=false;ct=ct.$blk();}if(ct&&ct.$blk!==undefined){break s;}a.FirstChild.Data=ct;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 125:cu=H.TrimSpace(c.domText(a));$s=127;case 127:if($c){$c=false;cu=cu.$blk();}if(cu&&cu.$blk!==undefined){break s;}cv=cu;cw=c.isEmptyText(a);$s=130;case 130:if($c){$c=false;cw=cw.$blk();}if(cw&&cw.$blk!==undefined){break s;}if(cw){$s=128;continue;}$s=129;continue;case 128:$s=-1;return;case 129:if("\xE2\x80\xB8"===cv){i.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(i);$s=-1;return;}i.Type=101;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 54:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=131;continue;}$s=132;continue;case 131:cx=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=133;case 133:if($c){$c=false;cx=cx.$blk();}if(cx&&cx.$blk!==undefined){break s;}a.FirstChild.Data=cx;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 132:cy=H.TrimSpace(c.domText(a));$s=134;case 134:if($c){$c=false;cy=cy.$blk();}if(cy&&cy.$blk!==undefined){break s;}cz=cy;da=c.isEmptyText(a);$s=137;case 137:if($c){$c=false;da=da.$blk();}if(da&&da.$blk!==undefined){break s;}if(da){$s=135;continue;}$s=136;continue;case 135:$s=-1;return;case 136:if("\xE2\x80\xB8"===cz){i.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(i);$s=-1;return;}i.Type=450;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 55:if(Y.nil===a.FirstChild){$s=-1;return;}db=c.domAttrValue(a.FirstChild,"data-type");if(db==="html-inline"){$s=42;continue;}dc=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===dc){i.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(i);$s=-1;return;}if(""===dc){$s=-1;return;}dd=(new W($stringToBytes(dc)));de=new B.Node.ptr("","","",29,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,dd,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);i.Type=27;i.AppendChild(de);b.Context.Tip.AppendChild(i);$s=-1;return;case 56:if(!(Y.nil===a.Parent)){if(c.parentIs(a,new AJ([37378,87554]))){if((Y.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(Y.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(Y.nil===a.NextSibling){$s=-1;return;}i.Type=10;i.Tokens=(new W($stringToBytes("
        ")));b.Context.Tip.AppendChild(i);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(Y.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.PrependChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;}}}i.Type=31;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 57:i.Type=33;i.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 58:df=f;dg=c.domAttrValue(a,"alt");if("emoji"===df){i.Type=200;dh=new B.Node.ptr("","","",202,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,b.EmojiImgTokens(dg,c.domAttrValue(a,"src")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);dh.AppendChild(new B.Node.ptr("","","",203,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(":"+dg+":"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));i.AppendChild(dh);b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);}else{$s=-1;return;}$s=74;continue;case 59:if(Y.nil===a.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(Y.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=138;continue;}$s=139;continue;case 138:di=H.TrimSpace(a.NextSibling.FirstChild.Data);$s=140;case 140:if($c){$c=false;di=di.$blk();}if(di&&di.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=di;$s=42;continue;case 139:i.Type=100;if(c.hasAttr(a,"checked")){i.TaskListItemChecked=true;}b.Context.Tip.AppendChild(i);if(!(Z.nil===i.Parent.Parent.Parent)&&!(AF.nil===i.Parent.Parent.Parent.ListData)){i.Parent.Parent.Parent.ListData.Typ=3;i.Parent.Parent.ListData.Typ=3;}if(!(Y.nil===a.NextSibling)&&((89090===a.NextSibling.DataAtom)||(187906===a.NextSibling.DataAtom)||(199938===a.NextSibling.DataAtom)||(214274===a.NextSibling.DataAtom)||(216834===a.NextSibling.DataAtom)||(412930===a.NextSibling.DataAtom)||(100106===a.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=74;continue;case 60:i.Type=106;dj=AG.nil;dk=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(Y.nil===dk))){break;}dl=c.domAttrValue(dk,"align");dm=dl;if(dm===("left")){dj=$append(dj,1);}else if(dm===("center")){dj=$append(dj,2);}else if(dm===("right")){dj=$append(dj,3);}else{dj=$append(dj,0);}dk=dk.NextSibling;}i.TableAligns=dj;i.Tokens=W.nil;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 61:i.Type=107;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 62:$s=74;continue;case 63:i.Type=108;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 64:i.Type=109;dn=c.domAttrValue(a,"align");dp=0;dq=dn;if(dq===("left")){dp=1;}else if(dq===("center")){dp=2;}else if(dq===("right")){dp=3;}else{dp=0;}i.TableCellAlign=dp;b.Context.Tip.AppendChild(i);b.Context.Tip=i;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=74;continue;case 65:if(Y.nil===a.FirstChild){$s=42;continue;}dr=c.domText(a);if("footnotes-ref"===e){if(H.HasPrefix(dr,"[^")&&H.HasSuffix(dr,"]")){i.Type=412;i.Tokens=(new W($stringToBytes($substring(dr,1,(dr.length-1>>0)))));b.Context.Tip.AppendChild(i);}else{i.Type=16;i.Tokens=(new W($stringToBytes(dr)));b.Context.Tip.AppendChild(i);}}else{i.Type=10;ds=c.domText(a);i.Tokens=(new W($stringToBytes(ds)));b.Context.Tip.AppendChild(i);}$s=-1;return;case 66:dt=e;if(dt===("block-ref")){$s=142;continue;}if(dt===("heading-id")){$s=143;continue;}if(dt===("em")||dt===("strong")||dt===("s")||dt===("mark")||dt===("code")||dt===("inline-math")||dt===("tag")||dt===("sup")||dt===("sub")||dt===("span-ial")){$s=144;continue;}if(dt===("a")||dt===("link-ref")||dt===("img")){$s=145;continue;}if(dt===("html-inline")){$s=146;continue;}if(dt===("html-entity")){$s=147;continue;}if(dt===("emoji")){$s=148;continue;}if(dt===("backslash")){$s=149;continue;}if(dt===("inline-node")){$s=150;continue;}if(dt===("git-conflict-close-marker")){$s=151;continue;}if(dt===("git-conflict-open-marker")){$s=152;continue;}if(dt===("math-block-close-marker")){$s=153;continue;}if(dt===("math-block-open-marker")){$s=154;continue;}if(dt===("yaml-front-matter-close-marker")){$s=155;continue;}if(dt===("yaml-front-matter-open-marker")){$s=156;continue;}if(dt===("code-block-open-marker")){$s=157;continue;}if(dt===("code-block-info")){$s=158;continue;}if(dt===("code-block-close-marker")){$s=159;continue;}if(dt===("super-block-open-marker")){$s=160;continue;}if(dt===("super-block-layout")){$s=161;continue;}if(dt===("super-block-close-marker")){$s=162;continue;}if(dt===("heading-marker")){$s=163;continue;}if(!(Y.nil===a.FirstChild)&&((70917===a.FirstChild.DataAtom)||(192773===a.FirstChild.DataAtom))){$s=164;continue;}$s=165;continue;case 142:du=c.domText(a);dv=H.TrimSpace(du);$s=168;case 168:if($c){$c=false;dv=dv.$blk();}if(dv&&dv.$blk!==undefined){break s;}if(""===dv){$s=166;continue;}$s=167;continue;case 166:$s=-1;return;case 167:dw=E.Parse("",(new W($stringToBytes(du))),c.ParseOptions);$s=169;case 169:if($c){$c=false;dw=dw.$blk();}if(dw&&dw.$blk!==undefined){break s;}dx=dw;dy=dx.Root.FirstChild.FirstChild;if(!(Z.nil===dy)&&(16===dy.Type)&&!(Z.nil===dy.Next)&&(430===dy.Next.Type)){$s=170;continue;}$s=171;continue;case 170:dz=dy.Text();$s=172;case 172:if($c){$c=false;dz=dz.$blk();}if(dz&&dz.$blk!==undefined){break s;}ea=dz;if(("\xEF\xBC\x81\xE2\x80\xB8"===ea)||("!\xE2\x80\xB8"===ea)){$s=173;continue;}$s=174;continue;case 173:du=H.Replace(du,ea,"!",1)+"\xE2\x80\xB8";eb=E.Parse("",(new W($stringToBytes(du))),c.ParseOptions);$s=175;case 175:if($c){$c=false;eb=eb.$blk();}if(eb&&eb.$blk!==undefined){break s;}dx=eb;case 174:case 171:dx.Root.LastChild.Unlink();ec=dx.Root.FirstChild.FirstChild;if(!(Z.nil===ec)&&(430===ec.Type)){i=ec;ed=ec.Next;b.Context.Tip.AppendChild(i);V(ed,b);$s=-1;return;}ee=dx.Root.FirstChild;if(!(Z.nil===ee)&&(440===ee.Type)){i=ee;ef=ee.Next;b.Context.Tip.AppendChild(i);V(ef,b);$s=-1;return;}i.Type=16;i.Tokens=(new W($stringToBytes(du)));b.Context.Tip.AppendChild(i);$s=-1;return;case 143:i.Type=420;eg=c.domText(a);eh=H.TrimSpace(eg);$s=178;case 178:if($c){$c=false;eh=eh.$blk();}if(eh&&eh.$blk!==undefined){break s;}if(""===eh){$s=176;continue;}$s=177;continue;case 176:$s=-1;return;case 177:if(!H.HasSuffix(eg,"}")){i.Type=16;i.Tokens=(new W($stringToBytes(eg)));b.Context.Tip.AppendChild(i);$s=-1;return;}ei=H.TrimSpace(eg);$s=179;case 179:if($c){$c=false;ei=ei.$blk();}if(ei&&ei.$blk!==undefined){break s;}eg=ei;i.Tokens=(new W($stringToBytes($substring(eg,1,(eg.length-1>>0)))));b.Context.Tip.AppendChild(i);$s=-1;return;case 144:ej=c.domText(a);ek=H.TrimSpace(ej);$s=182;case 182:if($c){$c=false;ek=ek.$blk();}if(ek&&ek.$blk!==undefined){break s;}if(""===ek){$s=180;continue;}$s=181;continue;case 180:$s=-1;return;case 181:el=E.Parse("",(new W($stringToBytes(ej))),c.ParseOptions);$s=183;case 183:if($c){$c=false;el=el.$blk();}if(el&&el.$blk!==undefined){break s;}em=el;em.Root.LastChild.Unlink();en=em.Root.FirstChild.FirstChild;if(!(Z.nil===en)&&((17===en.Type)||(22===en.Type)||(101===en.Type)||(450===en.Type)||(27===en.Type)||(304===en.Type)||(460===en.Type)||(485===en.Type)||(490===en.Type))){$s=184;continue;}if(455===em.Root.FirstChild.Type){$s=185;continue;}$s=186;continue;case 184:i=en;eo=en.Next;b.Context.Tip.AppendChild(i);V(eo,b);ep=c.domAttrValue(a.FirstChild.NextSibling,"style");if(!(""===ep)){i.SetIALAttr("style",ep);i.KramdownIAL=new AH([new AD(["style",ep])]);eq=(new W($stringToBytes("{: style=\""+ep+"\"}")));er=new B.Node.ptr("","","",456,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,eq,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);i.InsertAfter(er);}$s=-1;return;case 185:em.Root.FirstChild.Type=456;i=em.Root.FirstChild;es=A.TrimSpace(i.Tokens);$s=187;case 187:if($c){$c=false;es=es.$blk();}if(es&&es.$blk!==undefined){break s;}i.Tokens=es;et=em.Root.FirstChild.Next;b.Context.Tip.AppendChild(i);V(et,b);$s=-1;return;case 186:i.Type=16;i.Tokens=(new W($stringToBytes(ej)));b.Context.Tip.AppendChild(i);$s=-1;return;case 145:eu=c.domText(a);ev=H.TrimSpace(eu);$s=190;case 190:if($c){$c=false;ev=ev.$blk();}if(ev&&ev.$blk!==undefined){break s;}if(""===ev){$s=188;continue;}$s=189;continue;case 188:$s=-1;return;case 189:ew=E.Parse("",(new W($stringToBytes(eu))),c.ParseOptions);$s=191;case 191:if($c){$c=false;ew=ew.$blk();}if(ew&&ew.$blk!==undefined){break s;}ex=ew;ex.Root.LastChild.Unlink();ey=ex.Root.FirstChild.FirstChild;if(!(Z.nil===ey)&&((33===ey.Type)||(34===ey.Type))){i=ey;ez=c.domAttrValue(a,"style");fa=false;if(!(""===ez)){i.SetIALAttr("parent-style",ez);i.KramdownIAL=new AH([new AD(["parent-style",ez])]);fb=E.IAL2Tokens(i.KramdownIAL);fc=new B.Node.ptr("","","",456,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,fb,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);i.InsertAfter(fc);fa=true;}fd=ey.Next;b.Context.Tip.AppendChild(i);V(fd,b);if(!(Z.nil===ex.Root.FirstChild.Next)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",31,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));fe=ex.Root.FirstChild.Next;b.Context.Tip.InsertAfter(fe);b.Context.Tip=fe;}if("img"===e){ff=c.domChild(a,198403);if(Y.nil===ff){if(!(Y.nil===a.Parent.NextSibling)){ff=c.domChild(a.Parent.NextSibling.FirstChild,198403);}}if(Y.nil===ff){if(!(Y.nil===a.Parent.Parent)&&!(Y.nil===a.Parent.Parent.NextSibling)&&!(Y.nil===a.Parent.Parent.NextSibling.FirstChild)&&!(Y.nil===a.Parent.Parent.NextSibling.FirstChild.FirstChild)){ff=c.domChild(a.Parent.Parent.NextSibling.FirstChild.FirstChild,198403);}}ez=c.domAttrValue(ff,"style");if(!(""===ez)){i.SetIALAttr("style",ez);if(fa){i.KramdownIAL=$append(i.KramdownIAL,new AD(["style",ez]));fg=E.IAL2Tokens(i.KramdownIAL);i.Next.Tokens=fg;}else{i.KramdownIAL=new AH([new AD(["style",ez])]);fh=E.IAL2Tokens(i.KramdownIAL);fi=new B.Node.ptr("","","",456,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,fh,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);i.InsertAfter(fi);}}}$s=-1;return;}i.Type=16;i.Tokens=(new W($stringToBytes(eu)));b.Context.Tip.AppendChild(i);$s=-1;return;case 146:fj=c.domText(a);fk=H.TrimSpace(fj);$s=194;case 194:if($c){$c=false;fk=fk.$blk();}if(fk&&fk.$blk!==undefined){break s;}if(""===fk){$s=192;continue;}$s=193;continue;case 192:$s=-1;return;case 193:i.Type=10;i.Tokens=(new W($stringToBytes(fj)));b.Context.Tip.AppendChild(i);$s=-1;return;case 147:fl=c.domText(a);fm=H.TrimSpace(fl);$s=197;case 197:if($c){$c=false;fm=fm.$blk();}if(fm&&fm.$blk!==undefined){break s;}if(""===fm){$s=195;continue;}$s=196;continue;case 195:$s=-1;return;case 196:fn=E.Parse("",(new W($stringToBytes(fl))),c.ParseOptions);$s=198;case 198:if($c){$c=false;fn=fn.$blk();}if(fn&&fn.$blk!==undefined){break s;}fo=fn;fo.Root.LastChild.Unlink();fp=fo.Root.FirstChild.FirstChild;if(!(Z.nil===fp)&&((44===fp.Type))){i=fp;fq=fp.Next;b.Context.Tip.AppendChild(i);V(fq,b);$s=-1;return;}i.Type=16;i.Tokens=(new W($stringToBytes(fl)));b.Context.Tip.AppendChild(i);$s=-1;return;case 148:fr=c.domText(a.FirstChild.NextSibling);fs=H.TrimSpace(fr);$s=201;case 201:if($c){$c=false;fs=fs.$blk();}if(fs&&fs.$blk!==undefined){break s;}if(""===fs){$s=199;continue;}$s=200;continue;case 199:$s=-1;return;case 200:ft=E.Parse("",(new W($stringToBytes(fr))),c.ParseOptions);$s=202;case 202:if($c){$c=false;ft=ft.$blk();}if(ft&&ft.$blk!==undefined){break s;}fu=ft;fu.Root.LastChild.Unlink();fv=fu.Root.FirstChild.FirstChild;if(!(Z.nil===fv)&&((200===fv.Type))){i=fv;fw=fv.Next;b.Context.Tip.AppendChild(i);V(fw,b);$s=-1;return;}i.Type=16;i.Tokens=(new W($stringToBytes(fr)));b.Context.Tip.AppendChild(i);$s=-1;return;case 149:fx=c.domText(a);fy=H.TrimSpace(fx);$s=205;case 205:if($c){$c=false;fy=fy.$blk();}if(fy&&fy.$blk!==undefined){break s;}if(""===fy){$s=203;continue;}$s=204;continue;case 203:$s=-1;return;case 204:fz=E.Parse("",(new W($stringToBytes(fx))),c.ParseOptions);$s=206;case 206:if($c){$c=false;fz=fz.$blk();}if(fz&&fz.$blk!==undefined){break s;}ga=fz;ga.Root.LastChild.Unlink();gb=ga.Root.FirstChild.FirstChild;if(!(Z.nil===gb)&&((400===gb.Type))){i=gb;gc=gb.Next;b.Context.Tip.AppendChild(i);V(gc,b);$s=-1;return;}i.Type=16;i.Tokens=(new W($stringToBytes(fx)));b.Context.Tip.AppendChild(i);$s=-1;return;case 150:gd=c.domText(a);i.Type=16;if("
        "===gd){i.Type=10;}i.Tokens=(new W($stringToBytes(gd)));b.Context.Tip.AppendChild(i);$s=-1;return;case 151:ge=c.domText(a);b.Context.TipAppendChild(new B.Node.ptr("","","",498,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(ge))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;case 152:gf=c.domText(a);b.Context.TipAppendChild(new B.Node.ptr("","","",496,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(gf))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;case 153:b.Context.Tip.AppendChild(new B.Node.ptr("","","",303,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.MathBlockMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;case 154:b.Context.Tip.AppendChild(new B.Node.ptr("","","",301,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.MathBlockMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;case 155:b.Context.Tip.AppendChild(new B.Node.ptr("","","",428,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,E.YamlFrontMatterMarker,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;case 156:i.Type=426;i.Tokens=E.MathBlockMarker;b.Context.Tip.AppendChild(i);$s=-1;return;case 157:if(290819===a.NextSibling.DataAtom){a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,0,40708,"","",new AR([new C.Attribute.ptr("","data-type","code-block-info")])));}gg=(new W($stringToBytes(c.domText(a))));gh=A.LastIndex(gg,(new W($stringToBytes("`"))))+1>>0;if(0>0;if(0>0,((gr<0||gr>=gp.$length)?($throwRuntimeError("index out of range"),undefined):gp.$array[gp.$offset+gr]));gs.Tokens=$appendSlice(gs.Tokens,G.CaretTokens);}case 211:case 209:$s=-1;return;case 163:gt=c.domText(a);gu=H.Contains(gt,"\xE2\x80\xB8");if(gu){$s=213;continue;}$s=214;continue;case 213:gv=new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\xE2\x80\xB8","",AR.nil);a.InsertAfter(gv);gt=H.ReplaceAll(gt,"#","");gt=H.ReplaceAll(gt,"\xE2\x80\xB8","");gw=H.TrimSpace(gt);$s=215;case 215:if($c){$c=false;gw=gw.$blk();}if(gw&&gw.$blk!==undefined){break s;}gt=gw;if(0")))),(0>=hq.$length?($throwRuntimeError("index out of range"),undefined):hq.$array[hq.$offset+0]));b.Context.Tip.AppendChild(i);$s=74;continue;case 70:$s=74;continue;case 71:$s=-1;return;case 72:i.Type=9;hr=c.domHTML(a);$s=232;case 232:if($c){$c=false;hr=hr.$blk();}if(hr&&hr.$blk!==undefined){break s;}i.Tokens=hr;b.Context.Tip.AppendChild(i);$s=-1;return;case 73:if(3===a.Type){$s=42;continue;}i.Type=9;hs=c.domHTML(a);$s=233;case 233:if($c){$c=false;hs=hs.$blk();}if(hs&&hs.$blk!==undefined){break s;}i.Tokens=hs;b.Context.Tip.AppendChild(i);$s=-1;return;case 74:case 42:ht=a.FirstChild;case 234:if(!(!(ht===Y.nil))){$s=235;continue;}$r=c.genASTByVditorIRBlockDOM(ht,b);$s=236;case 236:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}ht=ht.NextSibling;$s=234;continue;case 235:hu=a.DataAtom;if(hu===(1)){i.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));i.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));hv=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){hv=H.ReplaceAll(hv,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){hv=H.ReplaceAll(hv,c.RenderOptions.LinkPrefix,"");}i.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(hv))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));hw=c.domAttrValue(a,"title");if(!(""===hw)){i.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));i.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(hw))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}i.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else if(hu===(29191)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",9,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(""))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:N.ptr.prototype.genASTByVditorIRBlockDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.cv=cv;$f.cw=cw;$f.cx=cx;$f.cy=cy;$f.cz=cz;$f.d=d;$f.da=da;$f.db=db;$f.dc=dc;$f.dd=dd;$f.de=de;$f.df=df;$f.dg=dg;$f.dh=dh;$f.di=di;$f.dj=dj;$f.dk=dk;$f.dl=dl;$f.dm=dm;$f.dn=dn;$f.dp=dp;$f.dq=dq;$f.dr=dr;$f.ds=ds;$f.dt=dt;$f.du=du;$f.dv=dv;$f.dw=dw;$f.dx=dx;$f.dy=dy;$f.dz=dz;$f.e=e;$f.ea=ea;$f.eb=eb;$f.ec=ec;$f.ed=ed;$f.ee=ee;$f.ef=ef;$f.eg=eg;$f.eh=eh;$f.ei=ei;$f.ej=ej;$f.ek=ek;$f.el=el;$f.em=em;$f.en=en;$f.eo=eo;$f.ep=ep;$f.eq=eq;$f.er=er;$f.es=es;$f.et=et;$f.eu=eu;$f.ev=ev;$f.ew=ew;$f.ex=ex;$f.ey=ey;$f.ez=ez;$f.f=f;$f.fa=fa;$f.fb=fb;$f.fc=fc;$f.fd=fd;$f.fe=fe;$f.ff=ff;$f.fg=fg;$f.fh=fh;$f.fi=fi;$f.fj=fj;$f.fk=fk;$f.fl=fl;$f.fm=fm;$f.fn=fn;$f.fo=fo;$f.fp=fp;$f.fq=fq;$f.fr=fr;$f.fs=fs;$f.ft=ft;$f.fu=fu;$f.fv=fv;$f.fw=fw;$f.fx=fx;$f.fy=fy;$f.fz=fz;$f.g=g;$f.ga=ga;$f.gb=gb;$f.gc=gc;$f.gd=gd;$f.ge=ge;$f.gf=gf;$f.gg=gg;$f.gh=gh;$f.gi=gi;$f.gj=gj;$f.gk=gk;$f.gl=gl;$f.gm=gm;$f.gn=gn;$f.go=go;$f.gp=gp;$f.gq=gq;$f.gr=gr;$f.gs=gs;$f.gt=gt;$f.gu=gu;$f.gv=gv;$f.gw=gw;$f.gx=gx;$f.gy=gy;$f.gz=gz;$f.h=h;$f.ha=ha;$f.hb=hb;$f.hc=hc;$f.hd=hd;$f.he=he;$f.hf=hf;$f.hg=hg;$f.hh=hh;$f.hi=hi;$f.hj=hj;$f.hk=hk;$f.hl=hl;$f.hm=hm;$f.hn=hn;$f.ho=ho;$f.hp=hp;$f.hq=hq;$f.hr=hr;$f.hs=hs;$f.ht=ht;$f.hu=hu;$f.hv=hv;$f.hw=hw;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};N.prototype.genASTByVditorIRBlockDOM=function(a,b){return this.$val.genASTByVditorIRBlockDOM(a,b);};N.ptr.prototype.setIAL=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=W.nil;d=this;c=(new W($stringToBytes("{: id=\""+b.ID+"\"")));e=d.domAttrValue(a,"bookmark");if(!(""===e)){$s=1;continue;}$s=2;continue;case 1:e=C.UnescapeString(e);f=C.EscapeString(e);$s=3;case 3:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;b.SetIALAttr("bookmark",e);c=$appendSlice(c,(new W($stringToBytes(" bookmark=\""+e+"\""))));case 2:g=d.domAttrValue(a,"style");if(!(""===g)){b.SetIALAttr("style",g);c=$appendSlice(c,(new W($stringToBytes(" style=\""+g+"\""))));}h=d.domAttrValue(a,"name");if(!(""===h)){$s=4;continue;}$s=5;continue;case 4:h=C.UnescapeString(h);i=C.EscapeString(h);$s=6;case 6:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}h=i;b.SetIALAttr("name",h);c=$appendSlice(c,(new W($stringToBytes(" name=\""+h+"\""))));case 5:j=d.domAttrValue(a,"memo");if(!(""===j)){$s=7;continue;}$s=8;continue;case 7:j=C.UnescapeString(j);k=C.EscapeString(j);$s=9;case 9:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;b.SetIALAttr("memo",j);c=$appendSlice(c,(new W($stringToBytes(" memo=\""+j+"\""))));case 8:l=d.domAttrValue(a,"alias");if(!(""===l)){$s=10;continue;}$s=11;continue;case 10:l=C.UnescapeString(l);m=C.EscapeString(l);$s=12;case 12:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}l=m;b.SetIALAttr("alias",l);c=$appendSlice(c,(new W($stringToBytes(" alias=\""+l+"\""))));case 11:n=d.domAttrValue(a,"fold");if(!(""===n)){$s=13;continue;}$s=14;continue;case 13:n=C.UnescapeString(n);o=C.EscapeString(n);$s=15;case 15:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}n=o;b.SetIALAttr("fold",n);c=$appendSlice(c,(new W($stringToBytes(" fold=\""+n+"\""))));case 14:p=d.domAttrValue(a,"parent-fold");if(!(""===p)){$s=16;continue;}$s=17;continue;case 16:p=C.UnescapeString(p);q=C.EscapeString(p);$s=18;case 18:if($c){$c=false;q=q.$blk();}if(q&&q.$blk!==undefined){break s;}p=q;b.SetIALAttr("parent-fold",p);c=$appendSlice(c,(new W($stringToBytes(" parent-fold=\""+p+"\""))));case 17:r=d.domAttrValue(a,"updated");if(!(""===r)){$s=19;continue;}$s=20;continue;case 19:r=C.UnescapeString(r);s=C.EscapeString(r);$s=21;case 21:if($c){$c=false;s=s.$blk();}if(s&&s.$blk!==undefined){break s;}r=s;b.SetIALAttr("updated",r);c=$appendSlice(c,(new W($stringToBytes(" updated=\""+r+"\""))));case 20:c=$append(c,125);c=c;$s=-1;return c;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.setIAL};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.setIAL=function(a,b){return this.$val.setIAL(a,b);};V=function(a,b){var a,b,c,d,e,f,g;c=AE.nil;d=a;while(true){if(!(!(Z.nil===d))){break;}c=$append(c,d);d=d.Next;}e=c;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);b.Context.Tip.AppendChild(g);f++;}};N.ptr.prototype.SpinVditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=H.TrimSpace(a);$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}if("\xE2\x80\xB8"===d){$s=1;continue;}$s=2;continue;case 1:b=""+($bytesToString(F.NewlineSV));$s=-1;return b;case 2:e=E.Parse("",(new W($stringToBytes(a))),c.ParseOptions);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;g=F.NewVditorSVRenderer(f,c.RenderOptions);h=g.BaseRenderer.Render();$s=5;case 5:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;b=H.ReplaceAll(($bytesToString(i)),"\xE2\x80\xB8","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.SpinVditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.SpinVditorSVDOM=function(a){return this.$val.SpinVditorSVDOM(a);};N.ptr.prototype.HTML2VditorSVDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=E.Parse("",(new W($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=F.NewVditorSVRenderer(j,c.RenderOptions);l=c.HTML2VditorSVDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m");$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.Md2VditorSVDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.Md2VditorSVDOM=function(a){return this.$val.Md2VditorSVDOM(a);};N.ptr.prototype.Md2HTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;d=c.MarkdownStr("",a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}b=d;$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.Md2HTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.Md2HTML=function(a){return this.$val.Md2HTML(a);};N.ptr.prototype.SpinVditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;a=H.ReplaceAll(a,"","\xE2\x80\xB8");d=c.vditorDOM2Md(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;f=E.Parse("",(new W($stringToBytes(e))),c.ParseOptions);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;h=F.NewVditorRenderer(g,c.RenderOptions);i=h.BaseRenderer.Render();$s=3;case 3:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;b=H.ReplaceAll(($bytesToString(j)),"\xE2\x80\xB8","");$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.SpinVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.SpinVditorDOM=function(a){return this.$val.SpinVditorDOM(a);};N.ptr.prototype.HTML2VditorDOM=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b="";c=this;e=c.HTML2Markdown(a);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=2;continue;}$s=3;continue;case 2:h=g.Error();$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}b=h;$s=-1;return b;case 3:i=E.Parse("",(new W($stringToBytes(f))),c.ParseOptions);$s=5;case 5:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;k=F.NewVditorRenderer(j,c.RenderOptions);l=c.HTML2VditorDOMRendererFuncs;m=0;n=$keys(l);while(true){if(!(m","");a=H.ReplaceAll(a,"\t\n","\n");a=H.ReplaceAll(a," \n"," \n");d=c.parseHTML(a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(Y.nil===e){$s=-1;return b;}$r=c.adjustVditorDOM(e);$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=new E.Tree.ptr(new B.Node.ptr("","","",0,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil),new E.Context.ptr(X.nil,c.ParseOptions,Z.nil,Z.nil,W.nil,0,0,0,0,0,0,false,false,false,false,Z.nil,Z.nil),AB.nil,AC.nil,"","","","",AD.nil,new $Int64(0,0),new $Int64(0,0),"");f.Context.Tip=f.Root;g=e.FirstChild;case 3:if(!(!(Y.nil===g))){$s=4;continue;}$r=c.genASTByVditorDOM(g,f);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=g.NextSibling;$s=3;continue;case 4:$r=B.Walk(f.Root,(function(h,i){var h,i,j,k;if(i){j=h.Type;if((j===(10))||(j===(27))||(j===(304))||(j===(9))||(j===(15))||(j===(302))){h.Tokens=C.UnescapeHTML(h.Tokens);if(!(Z.nil===h.Next)&&(27===h.Next.Type)&&(h.CodeMarkerLen===h.Next.CodeMarkerLen)){h.FirstChild.Next.Tokens=$appendSlice(h.FirstChild.Next.Tokens,h.Next.FirstChild.Next.Tokens);h.Next.Unlink();}}else if(j===(7)){if(!(Z.nil===h.Parent)&&(7===h.Parent.Type)){k=h.Previous;if(!(Z.nil===k)){k.AppendChild(h);}}}}return 2;}));$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=F.NewOptions();h.AutoSpace=false;h.FixTermTypo=false;i=F.NewFormatRenderer(f,h);j=i.BaseRenderer.Render();$s=7;case 7:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;b=($bytesToString(k));$s=-1;return b;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.vditorDOM2Md};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.vditorDOM2Md=function(a){return this.$val.vditorDOM2Md(a);};N.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=H.NewReader(a);e=C.Parse(c);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;f=d[0];g=d[1];if(!($interfaceIsEqual($ifaceNil,g))){$s=-1;return Y.nil;}if(!("html"===f.FirstChild.Data)){$s=-1;return f;}$s=-1;return f.FirstChild.LastChild;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.parseHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.parseHTML=function(a){return this.$val.parseHTML(a);};N.ptr.prototype.adjustVditorDOM=function(a){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;$r=b.removeEmptyNodes(a);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=a.FirstChild;while(true){if(!(!(Y.nil===c))){break;}b.mergeVditorDOMList0(c);c=c.NextSibling;}d=a.FirstChild;while(true){if(!(!(Y.nil===d))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}e=a.FirstChild;while(true){if(!(!(Y.nil===e))){break;}b.adjustVditorDOMListList(e);e=e.NextSibling;}f=a.FirstChild;case 2:if(!(!(Y.nil===f))){$s=3;continue;}$r=b.adjustVditorDOMListItemInP(f);$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=2;continue;case 3:$s=-1;return;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.adjustVditorDOM};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.adjustVditorDOM=function(a){return this.$val.adjustVditorDOM(a);};N.ptr.prototype.adjustVditorDOMListList=function(a){var a,b,c,d,e,f,g;b=this;if(!((42754===a.DataAtom))&&!((79618===a.DataAtom))&&!((45570===a.DataAtom))){return;}if(45570===a.DataAtom){if(!(Y.nil===a.FirstChild)&&(514===a.FirstChild.DataAtom)){a.FirstChild.DataAtom=0;a.FirstChild.Data="\xE2\x80\x8B";c=a.NextSibling;if(!(Y.nil===a.NextSibling)&&(45570===a.NextSibling.DataAtom)){d=c.FirstChild;if(!(Y.nil===d)&&"\xE2\x80\xB8\xE2\x80\x8B"===d.Data){d.Data="\xE2\x80\xB8\n";}}}}else{if(!(Y.nil===a.Parent)&&((42754===a.Parent.DataAtom)||(79618===a.Parent.DataAtom))){e=a.PrevSibling;if(!(Y.nil===e)){a.Unlink();e.AppendChild(a);}}}f=a.FirstChild;while(true){if(!(!(f===Y.nil))){break;}g=f.NextSibling;b.adjustVditorDOMListList(f);f=g;}};N.prototype.adjustVditorDOMListList=function(a){return this.$val.adjustVditorDOMListList(a);};N.ptr.prototype.removeEmptyNodes=function(a){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];c=this;b[0]=AS.nil;d=a;case 1:if(!(!(Y.nil===d))){$s=2;continue;}$r=c.searchEmptyNodes(d,(b.$ptr||(b.$ptr=new AT(function(){return this.$target[0];},function($v){this.$target[0]=$v;},b))));$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=d.NextSibling;$s=1;continue;case 2:e=b[0];f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);g.Unlink();f++;}$s=-1;return;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.removeEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.removeEmptyNodes=function(a){return this.$val.removeEmptyNodes(a);};N.ptr.prototype.searchEmptyNodes=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=this;d=a.DataAtom;if(d===(0)){$s=2;continue;}$s=3;continue;case 2:if((!(Y.nil===a.PrevSibling)&&(40708===a.PrevSibling.DataAtom))||(!(Y.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom))){$s=1;continue;}e=a.Parent;if(!(Y.nil===e)&&((79618===e.DataAtom)||(42754===e.DataAtom)||(45570===e.DataAtom))){$s=4;continue;}$s=5;continue;case 4:f=H.TrimRight(a.Data,"\n\t ");$s=6;case 6:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}a.Data=f;case 5:if(!(Y.nil===e)&&((365829===e.DataAtom)||(208901===e.DataAtom)||(9989===e.DataAtom)||(52226===e.DataAtom))){$s=7;continue;}$s=8;continue;case 7:g=H.TrimSpace(a.Data);$s=9;case 9:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}a.Data=g;case 8:if(""===a.Data){b.$set($append(b.$get(),a));}if(4===a.Type){b.$set($append(b.$get(),a));}case 3:case 1:h=a.FirstChild;case 10:if(!(!(h===Y.nil))){$s=11;continue;}$r=c.searchEmptyNodes(h,b);$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=h.NextSibling;$s=10;continue;case 11:i=a.DataAtom;if((i===(79618))||(i===(42754))){if("footnotes-defs-ol"===c.domAttrValue(a,"data-type")){$s=-1;return;}j=c.domText(a);if(""===j){b.$set($append(b.$get(),a));}}$s=-1;return;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.searchEmptyNodes};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.searchEmptyNodes=function(a,b){return this.$val.searchEmptyNodes(a,b);};N.ptr.prototype.mergeVditorDOMList0=function(a){var a,b,c,d,e,f;b=this;c=a.DataAtom;if((c===(42754))||(c===(79618))){if(!(Y.nil===a.NextSibling)&&(a.DataAtom===a.NextSibling.DataAtom)&&(1===a.NextSibling.Attr.$length)){d=a.NextSibling.FirstChild;while(true){if(!(!(Y.nil===d))){break;}e=d.NextSibling;d.Unlink();a.AppendChild(d);d=e;}a.NextSibling.Unlink();}}f=a.FirstChild;while(true){if(!(!(f===Y.nil))){break;}b.mergeVditorDOMList0(f);f=f.NextSibling;}};N.prototype.mergeVditorDOMList0=function(a){return this.$val.mergeVditorDOMList0(a);};N.ptr.prototype.adjustVditorDOMListTight0=function(a){var a,b,c,d;b=this;c=a.DataAtom;if(c===(42754)){if(!b.parentIs(a,new AJ([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}else if(c===(79618)){if(!b.parentIs(a,new AJ([290819]))){b.setDOMAttrValue(a,"data-tight",b.isTightList(a));}}d=a.FirstChild;while(true){if(!(!(d===Y.nil))){break;}b.adjustVditorDOMListTight0(d);d=d.NextSibling;}};N.prototype.adjustVditorDOMListTight0=function(a){return this.$val.adjustVditorDOMListTight0(a);};N.ptr.prototype.adjustVditorDOMListItemInP=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.DataAtom;if(c===(45570)){$s=2;continue;}$s=3;continue;case 2:if(!(Y.nil===a.PrevSibling)&&b.domAttrValue(a.PrevSibling,"data-node-id")===b.domAttrValue(a,"data-node-id")){$s=4;continue;}$s=5;continue;case 4:d=a;e=B.NewNodeID();$s=6;case 6:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;$r=b.setDOMAttrValue(d,"data-node-id",f);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 5:if(!(Y.nil===a.PrevSibling)&&!(Y.nil===a.FirstChild)){$s=8;continue;}$s=9;continue;case 8:g=b.domAttrValue(a.FirstChild,"data-node-id");if(!(""===g)&&!(Y.nil===a.PrevSibling.LastChild)&&b.domAttrValue(a.PrevSibling.LastChild,"data-node-id")===g){$s=10;continue;}$s=11;continue;case 10:h=a.FirstChild;i=B.NewNodeID();$s=12;case 12:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=i;$r=b.setDOMAttrValue(h,"data-node-id",j);$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 11:case 9:k=a.FirstChild;while(true){if(!(!(Y.nil===k))){break;}if(b.listItemEnter(a)){l=new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,3,3073,"p","",AR.nil);l.AppendChild(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\xE2\x80\xB8","",AR.nil));l.AppendChild(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,3,514,"br","",AR.nil));a.FirstChild.Unlink();a.FirstChild.Unlink();a.AppendChild(l);k=l;k=k.NextSibling;continue;}if(!((3073===k.DataAtom))&&!((100106===k.DataAtom))&&!((42754===k.DataAtom))&&!((79618===k.DataAtom))&&!((92931===k.DataAtom))){m=b.forwardNextBlock(k);n=m[0];o=m[1];p=new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,3,3073,"p","",AR.nil);k.InsertBefore(p);q=n;r=0;while(true){if(!(r=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);s.Unlink();p.AppendChild(s);r++;}k=o;if(Y.nil===k){break;}}k=k.NextSibling;}case 3:case 1:t=a.FirstChild;case 14:if(!(!(t===Y.nil))){$s=15;continue;}$r=b.adjustVditorDOMListItemInP(t);$s=16;case 16:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}t=t.NextSibling;$s=14;continue;case 15:$s=-1;return;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.adjustVditorDOMListItemInP};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.adjustVditorDOMListItemInP=function(a){return this.$val.adjustVditorDOMListItemInP(a);};N.ptr.prototype.forwardNextBlock=function(a){var a,b,c,d,e,f;b=AS.nil;c=Y.nil;d=this;e=a;while(true){if(!(!(Y.nil===e))){break;}f=e.DataAtom;if((f===(79618))||(f===(42754))||(f===(92931))||(f===(100106))){return[b,c];}b=$append(b,e);e=e.NextSibling;}return[b,c];};N.prototype.forwardNextBlock=function(a){return this.$val.forwardNextBlock(a);};N.ptr.prototype.listItemEnter=function(a){var a,b;b=this;if(Y.nil===a.FirstChild){return false;}if("\xE2\x80\xB8"===a.FirstChild.Data&&"br"===a.LastChild.Data){return true;}return false;};N.prototype.listItemEnter=function(a){return this.$val.listItemEnter(a);};N.ptr.prototype.isTightList=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m;b=this;c=a.FirstChild;while(true){if(!(!(Y.nil===c))){break;}d=0;e=0;f=0;g=0;h=d;i=e;j=f;k=g;l=c.FirstChild;while(true){if(!(!(Y.nil===l))){break;}m=l.DataAtom;if((m===(42754))||(m===(79618))){h=h+(1)>>0;}else if(m===(92931)){i=i+(1)>>0;}else if(m===(100106)){j=j+(1)>>0;}else if(m===(3073)){k=k+(1)>>0;}l=l.NextSibling;}if(1>0)||1<(k+j>>0)||1<(k+h>>0)){return"false";}c=c.NextSibling;}return"true";};N.prototype.isTightList=function(a){return this.$val.isTightList(a);};N.ptr.prototype.genASTByVditorDOM=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;cq=$f.cq;cr=$f.cr;cs=$f.cs;ct=$f.ct;cu=$f.cu;cv=$f.cv;cw=$f.cw;cx=$f.cx;cy=$f.cy;cz=$f.cz;d=$f.d;da=$f.da;db=$f.db;dc=$f.dc;dd=$f.dd;de=$f.de;df=$f.df;dg=$f.dg;dh=$f.dh;di=$f.di;dj=$f.dj;dk=$f.dk;dl=$f.dl;dm=$f.dm;dn=$f.dn;dp=$f.dp;dq=$f.dq;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){$s=-1;return;}e=c.domAttrValue(a,"data-type");if(92931===a.DataAtom){$s=1;continue;}$s=2;continue;case 1:if("code-block"===e||"html-block"===e||"math-block"===e||"yaml-front-matter"===e){$s=3;continue;}if("link-ref-defs-block"===e){$s=4;continue;}if("footnotes-block"===e){$s=5;continue;}if("toc-block"===e){$s=6;continue;}$s=7;continue;case 3:f=a.FirstChild;case 8:if(!(!(f===Y.nil))){$s=9;continue;}$r=c.genASTByVditorDOM(f,b);$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.NextSibling;$s=8;continue;case 9:$s=7;continue;case 4:g=c.domText(a);h=new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(g))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);b.Context.Tip.AppendChild(h);$s=7;continue;case 5:i=a.FirstChild;if(!((79618===i.DataAtom))){$s=-1;return;}j=i.FirstChild;case 11:if(!(!(Y.nil===j))){$s=12;continue;}if("\n"===j.Data){$s=13;continue;}$s=14;continue;case 13:j=j.NextSibling;$s=11;continue;case 14:k=new A.Buffer.ptr(W.nil,0,0);l=C.Render(k,j);$s=15;case 15:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;if($interfaceIsEqual($ifaceNil,m)){$s=16;continue;}$s=17;continue;case 16:n=c.vditorDOM2Md("
          "+k.String()+"
        ");$s=19;case 19:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;p=c.domAttrValue(j,"data-marker");o=$substring(o,3);q=H.Split(o,"\n");o="";r=q;s=0;while(true){if(!(s=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]);if(0=ag.$length?($throwRuntimeError("index out of range"),undefined):ag.$array[ag.$offset+1]))-48<<24>>>24)>>0));ah=c.domAttrValue(a,"data-marker");ai=c.domAttrValue(a,"data-id");if(!(""===ai)){a.LastChild.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0," {"+ai+"}","",AR.nil));}z.HeadingSetext="="===ah||"-"===ah;if(!z.HeadingSetext){aj=new B.Node.ptr("","","",3,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);aj.Tokens=(new W($stringToBytes(H.Repeat("#",z.HeadingLevel))));z.AppendChild(aj);}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 24:z.Type=4;b.Context.Tip.AppendChild(z);$s=50;continue;case 25:ak=H.TrimSpace(c.domText(a));$s=57;case 57:if($c){$c=false;ak=ak.$blk();}if(ak&&ak.$blk!==undefined){break s;}al=ak;if(""===al||">"===al||"\xE2\x80\xB8"===al){$s=-1;return;}z.Type=5;z.AppendChild(new B.Node.ptr("","","",6,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(">"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 26:if(Y.nil===a.FirstChild){$s=-1;return;}z.Type=7;z.ListData=new B.ListData.ptr(0,false,0,0,0,0,0,false,W.nil,0);if(79618===a.DataAtom){z.ListData.Typ=1;}am=c.domAttrValue(a,"data-tight");if("true"===am||""===am){z.ListData.Tight=true;}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 27:z.Type=8;an=c.domAttrValue(a,"data-marker");ao=0;if(""===an){if(!(Y.nil===a.Parent)&&(79618===a.Parent.DataAtom)){ap=c.domAttrValue(a.Parent.FirstChild,"data-marker");aq=c.domAttrValue(a.Parent,"start");if(""===aq){an="1";}else{an=aq;}if(!(""===ap)){an=an+($substring(ap,(ap.length-1>>0)));}else{an=an+(".");}}else{an=c.domAttrValue(a.Parent,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}else{if(!(Y.nil===a.Parent)){if(79618===a.Parent.DataAtom){if("*"===an||"-"===an||"+"===an){an="1.";}if(!("1."===an)&&!("1)"===an)&&!(Y.nil===a.PrevSibling)&&!((45570===a.PrevSibling.DataAtom))&&!(Y.nil===a.Parent.Parent)&&((79618===a.Parent.Parent.DataAtom)||(42754===a.Parent.Parent.DataAtom))){an="1.";}if(!("1."===an)&&!("1)"===an)&&(79618===a.Parent.DataAtom)&&a.Parent.FirstChild===a&&""===c.domAttrValue(a.Parent,"start")){an="1.";}}else{if(!("*"===an)&&!("-"===an)&&!("+"===an)){an="*";}ao=an.charCodeAt(0);}}else{an=c.domAttrValue(a,"data-marker");if(""===an){an="*";}ao=an.charCodeAt(0);}}z.ListData=new B.ListData.ptr(0,false,ao,0,0,0,0,false,(new W($stringToBytes(an))),0);if(0===ao){ar=K.Atoi(($encodeRune(an.charCodeAt(0))));z.ListData.Num=ar[0];z.ListData.Delimiter=an.charCodeAt((an.length-1>>0));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 28:if(378116===a.FirstChild.DataAtom){as=c.domAttrValue(a.Parent,"data-marker");if(""===as){as="```";}at=W.nil;if(!(Y.nil===a.FirstChild.FirstChild)){at=(new W($stringToBytes(a.FirstChild.FirstChild.Data)));}au=c.domAttrValue(a.Parent,"data-type");av=au;if(av===("math-block")){z.Type=300;z.AppendChild(new B.Node.ptr("","","",301,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",302,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,at,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",303,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);}else if(av===("yaml-front-matter")){z.Type=425;z.AppendChild(new B.Node.ptr("","","",426,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",427,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,at,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",428,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);}else if(av===("html-block")){z.Type=9;z.Tokens=at;b.Context.Tip.AppendChild(z);}else{z.Type=11;z.IsFencedCodeBlock=true;z.AppendChild(new B.Node.ptr("","","",12,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(as))),false,false,false,0,false,0,as.length,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",14,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));aw=c.domAttrValue(a.FirstChild,"class");if(H.Contains(aw,"language-")){ax=$substring(aw,9);z.LastChild.CodeBlockInfo=(new W($stringToBytes(ax)));}ay=new B.Node.ptr("","","",15,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,at,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);z.AppendChild(ay);z.AppendChild(new B.Node.ptr("","","",13,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(as))),false,false,false,0,false,0,as.length,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);}}$s=-1;return;case 29:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=58;continue;}$s=59;continue;case 58:az=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=60;case 60:if($c){$c=false;az=az.$blk();}if(az&&az.$blk!==undefined){break s;}a.FirstChild.Data=az;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 59:ba=H.TrimSpace(c.domText(a));$s=61;case 61:if($c){$c=false;ba=ba.$blk();}if(ba&&ba.$blk!==undefined){break s;}bb=ba;bc=c.isEmptyText(a);$s=64;case 64:if($c){$c=false;bc=bc.$blk();}if(bc&&bc.$blk!==undefined){break s;}if(bc){$s=62;continue;}$s=63;continue;case 62:$s=-1;return;case 63:if("\xE2\x80\xB8"===bb){z.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=17;bd=c.domAttrValue(a,"data-marker");if(""===bd){bd="*";}if("_"===bd){z.AppendChild(new B.Node.ptr("","","",20,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bd))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",18,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bd))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(z);if(!(Y.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(Y.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.CaretTokens,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if("_"===bd){z.AppendChild(new B.Node.ptr("","","",21,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bd))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",19,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bd))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}a.FirstChild.Data=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(H.HasPrefix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.PrevSibling){$s=65;continue;}$s=66;continue;case 65:be=H.TrimLeft(a.FirstChild.Data," ");$s=67;case 67:if($c){$c=false;be=be.$blk();}if(be&&be.$blk!==undefined){break s;}a.FirstChild.Data=be;z.InsertBefore(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 66:if(H.HasSuffix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.NextSibling){$s=68;continue;}$s=69;continue;case 68:bf=H.TrimRight(a.FirstChild.Data," ");$s=70;case 70:if($c){$c=false;bf=bf.$blk();}if(bf&&bf.$blk!==undefined){break s;}a.FirstChild.Data=bf;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0," ","",AR.nil));case 69:if(H.HasSuffix(a.FirstChild.Data,"\n")&&Y.nil===a.FirstChild.NextSibling){$s=71;continue;}$s=72;continue;case 71:bg=H.TrimRight(a.FirstChild.Data,"\n");$s=73;case 73:if($c){$c=false;bg=bg.$blk();}if(bg&&bg.$blk!==undefined){break s;}a.FirstChild.Data=bg;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\n","",AR.nil));case 72:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 30:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=74;continue;}$s=75;continue;case 74:bh=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=76;case 76:if($c){$c=false;bh=bh.$blk();}if(bh&&bh.$blk!==undefined){break s;}a.FirstChild.Data=bh;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 75:bi=H.TrimSpace(c.domText(a));$s=77;case 77:if($c){$c=false;bi=bi.$blk();}if(bi&&bi.$blk!==undefined){break s;}bj=bi;bk=c.isEmptyText(a);$s=80;case 80:if($c){$c=false;bk=bk.$blk();}if(bk&&bk.$blk!==undefined){break s;}if(bk){$s=78;continue;}$s=79;continue;case 78:$s=-1;return;case 79:if("\xE2\x80\xB8"===bj){z.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=22;bl=c.domAttrValue(a,"data-marker");if(""===bl){bl="**";}if("__"===bl){z.AppendChild(new B.Node.ptr("","","",25,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",23,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(z);if(!(Y.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(Y.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.CaretTokens,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if("__"===bl){z.AppendChild(new B.Node.ptr("","","",26,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",24,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}a.FirstChild.Data=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(H.HasPrefix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.PrevSibling){$s=81;continue;}$s=82;continue;case 81:bm=H.TrimLeft(a.FirstChild.Data," ");$s=83;case 83:if($c){$c=false;bm=bm.$blk();}if(bm&&bm.$blk!==undefined){break s;}a.FirstChild.Data=bm;z.InsertBefore(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 82:if(H.HasSuffix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.NextSibling){$s=84;continue;}$s=85;continue;case 84:bn=H.TrimRight(a.FirstChild.Data," ");$s=86;case 86:if($c){$c=false;bn=bn.$blk();}if(bn&&bn.$blk!==undefined){break s;}a.FirstChild.Data=bn;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0," ","",AR.nil));case 85:if(H.HasSuffix(a.FirstChild.Data,"\n")&&Y.nil===a.FirstChild.NextSibling){$s=87;continue;}$s=88;continue;case 87:bo=H.TrimRight(a.FirstChild.Data,"\n");$s=89;case 89:if($c){$c=false;bo=bo.$blk();}if(bo&&bo.$blk!==undefined){break s;}a.FirstChild.Data=bo;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\n","",AR.nil));case 88:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 31:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=90;continue;}$s=91;continue;case 90:bp=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=92;case 92:if($c){$c=false;bp=bp.$blk();}if(bp&&bp.$blk!==undefined){break s;}a.FirstChild.Data=bp;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 91:bq=H.TrimSpace(c.domText(a));$s=93;case 93:if($c){$c=false;bq=bq.$blk();}if(bq&&bq.$blk!==undefined){break s;}br=bq;bs=c.isEmptyText(a);$s=96;case 96:if($c){$c=false;bs=bs.$blk();}if(bs&&bs.$blk!==undefined){break s;}if(bs){$s=94;continue;}$s=95;continue;case 94:$s=-1;return;case 95:if("\xE2\x80\xB8"===br){z.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=101;bt=c.domAttrValue(a,"data-marker");if("~"===bt){z.AppendChild(new B.Node.ptr("","","",102,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bt))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",104,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bt))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(z);if(!(Y.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(Y.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.CaretTokens,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if("~"===bt){z.AppendChild(new B.Node.ptr("","","",103,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bt))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",105,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(bt))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}a.FirstChild.Data=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(H.HasPrefix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.PrevSibling){$s=97;continue;}$s=98;continue;case 97:bu=H.TrimLeft(a.FirstChild.Data," ");$s=99;case 99:if($c){$c=false;bu=bu.$blk();}if(bu&&bu.$blk!==undefined){break s;}a.FirstChild.Data=bu;z.InsertBefore(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 98:if(H.HasSuffix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.NextSibling){$s=100;continue;}$s=101;continue;case 100:bv=H.TrimRight(a.FirstChild.Data," ");$s=102;case 102:if($c){$c=false;bv=bv.$blk();}if(bv&&bv.$blk!==undefined){break s;}a.FirstChild.Data=bv;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0," ","",AR.nil));case 101:if(H.HasSuffix(a.FirstChild.Data,"\n")&&Y.nil===a.FirstChild.NextSibling){$s=103;continue;}$s=104;continue;case 103:bw=H.TrimRight(a.FirstChild.Data,"\n");$s=105;case 105:if($c){$c=false;bw=bw.$blk();}if(bw&&bw.$blk!==undefined){break s;}a.FirstChild.Data=bw;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\n","",AR.nil));case 104:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 32:if(Y.nil===a.FirstChild||(514===a.FirstChild.DataAtom)){$s=-1;return;}if(c.starstWithNewline(a.FirstChild)){$s=106;continue;}$s=107;continue;case 106:bx=H.TrimLeft(a.FirstChild.Data,"\xE2\x80\x8B\n");$s=108;case 108:if($c){$c=false;bx=bx.$blk();}if(bx&&bx.$blk!==undefined){break s;}a.FirstChild.Data=bx;b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B\n"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 107:by=H.TrimSpace(c.domText(a));$s=109;case 109:if($c){$c=false;by=by.$blk();}if(by&&by.$blk!==undefined){break s;}bz=by;ca=c.isEmptyText(a);$s=112;case 112:if($c){$c=false;ca=ca.$blk();}if(ca&&ca.$blk!==undefined){break s;}if(ca){$s=110;continue;}$s=111;continue;case 110:$s=-1;return;case 111:if("\xE2\x80\xB8"===bz){z.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=450;cb=c.domAttrValue(a,"data-marker");if("="===cb){z.AppendChild(new B.Node.ptr("","","",451,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cb))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",453,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cb))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(z);if(!(Y.nil===a.FirstChild)&&"\xE2\x80\xB8"===a.FirstChild.Data&&!(Y.nil===a.LastChild)&&"br"===a.LastChild.Data){z.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,G.CaretTokens,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if("="===cb){z.AppendChild(new B.Node.ptr("","","",452,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cb))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",454,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cb))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}a.FirstChild.Data=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if(H.HasPrefix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.PrevSibling){$s=113;continue;}$s=114;continue;case 113:cc=H.TrimLeft(a.FirstChild.Data," ");$s=115;case 115:if($c){$c=false;cc=cc.$blk();}if(cc&&cc.$blk!==undefined){break s;}a.FirstChild.Data=cc;z.InsertBefore(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(" "))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));case 114:if(H.HasSuffix(a.FirstChild.Data," ")&&Y.nil===a.FirstChild.NextSibling){$s=116;continue;}$s=117;continue;case 116:cd=H.TrimRight(a.FirstChild.Data," ");$s=118;case 118:if($c){$c=false;cd=cd.$blk();}if(cd&&cd.$blk!==undefined){break s;}a.FirstChild.Data=cd;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0," ","",AR.nil));case 117:if(H.HasSuffix(a.FirstChild.Data,"\n")&&Y.nil===a.FirstChild.NextSibling){$s=119;continue;}$s=120;continue;case 119:ce=H.TrimRight(a.FirstChild.Data,"\n");$s=121;case 121:if($c){$c=false;ce=ce.$blk();}if(ce&&ce.$blk!==undefined){break s;}a.FirstChild.Data=ce;a.InsertAfter(new C.Node.ptr(Y.nil,Y.nil,Y.nil,Y.nil,Y.nil,1,0,"\n","",AR.nil));case 120:b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 33:if(Y.nil===a.FirstChild){$s=-1;return;}cf=H.ReplaceAll(a.FirstChild.Data,"\xE2\x80\x8B","");if("\xE2\x80\xB8"===cf){z.Tokens=G.CaretTokens;b.Context.Tip.AppendChild(z);$s=-1;return;}if(""===cf){$s=-1;return;}cg=(new W($stringToBytes(cf)));ch=c.domAttrValue(a,"data-marker");if(""===ch){ch="`";}if(A.HasPrefix(cg,(new W($stringToBytes("`"))))){cg=$appendSlice((new W($stringToBytes(" "))),cg);cg=$append(cg,32);}z.Type=27;z.CodeMarkerLen=ch.length;z.AppendChild(new B.Node.ptr("","","",28,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",29,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,cg,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",30,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);$s=-1;return;case 34:if(!(Y.nil===a.Parent)){if(c.parentIs(a,new AJ([37378,87554]))){if((Y.nil===a.PrevSibling||"\xE2\x80\xB8"===a.PrevSibling.Data)&&(Y.nil===a.NextSibling||"\xE2\x80\xB8"===a.NextSibling.Data)){$s=-1;return;}if(Y.nil===a.NextSibling){$s=-1;return;}z.Type=10;z.Tokens=(new W($stringToBytes("
        ")));b.Context.Tip.AppendChild(z);$s=-1;return;}if(3073===a.Parent.DataAtom){if(!(Y.nil===a.Parent.NextSibling)&&((42754===a.Parent.NextSibling.DataAtom)||(79618===a.Parent.NextSibling.DataAtom)||(100106===a.Parent.NextSibling.DataAtom))){b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;}if(!(Y.nil===a.Parent.Parent)&&!(Y.nil===a.Parent.Parent.NextSibling)&&(45570===a.Parent.Parent.NextSibling.DataAtom)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",16,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes("\xE2\x80\x8B"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));$s=-1;return;}}}z.Type=31;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 35:ci=c.domText(a);if(""===ci||"\xE2\x80\x8B"===ci){$s=-1;return;}z.Type=33;z.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 36:cj=x;ck=c.domAttrValue(a,"alt");if("emoji"===cj){z.Type=200;cl=new B.Node.ptr("","","",202,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,b.EmojiImgTokens(ck,c.domAttrValue(a,"src")),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil);cl.AppendChild(new B.Node.ptr("","","",203,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(":"+ck+":"))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(cl);}else{if("link-ref"===e){z.Type=16;cm="!["+c.domAttrValue(a,"alt")+"]["+c.domAttrValue(a,"data-link-label")+"]";z.Tokens=(new W($stringToBytes(cm)));b.Context.Tip.AppendChild(z);$s=-1;return;}z.Type=34;z.AppendChild(new B.Node.ptr("","","",35,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",36,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));if(!(""===ck)){z.AppendChild(new B.Node.ptr("","","",40,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(ck))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}z.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));cn=c.domAttrValue(a,"src");if(!(""===c.RenderOptions.LinkBase)){cn=H.ReplaceAll(cn,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){cn=H.ReplaceAll(cn,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(cn))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));co=c.domAttrValue(a,"title");if(!(""===co)){z.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(co))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}z.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 37:if(Y.nil===a.Parent||Y.nil===a.Parent.Parent||(!((3073===a.Parent.DataAtom))&&!((45570===a.Parent.DataAtom)))){$s=-1;return;}if(!(Y.nil===a.NextSibling)&&(40708===a.NextSibling.DataAtom)){$s=122;continue;}$s=123;continue;case 122:cp=H.TrimSpace(a.NextSibling.FirstChild.Data);$s=124;case 124:if($c){$c=false;cp=cp.$blk();}if(cp&&cp.$blk!==undefined){break s;}a.NextSibling.FirstChild.Data=cp;$s=20;continue;case 123:z.Type=100;if(c.hasAttr(a,"checked")){z.TaskListItemChecked=true;}b.Context.Tip.AppendChild(z);if(!(Z.nil===z.Parent.Parent)&&!(AF.nil===z.Parent.Parent.ListData)){z.Parent.Parent.ListData.Typ=3;}if(!(Z.nil===z.Parent.Parent.Parent)&&!(AF.nil===z.Parent.Parent.Parent.ListData)){z.Parent.Parent.Parent.ListData.Typ=3;}$s=50;continue;case 38:z.Type=106;cq=AG.nil;cr=a.FirstChild.FirstChild.FirstChild;while(true){if(!(!(Y.nil===cr))){break;}cs=c.domAttrValue(cr,"align");ct=cs;if(ct===("left")){cq=$append(cq,1);}else if(ct===("center")){cq=$append(cq,2);}else if(ct===("right")){cq=$append(cq,3);}else{cq=$append(cq,0);}cr=cr.NextSibling;}z.TableAligns=cq;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 39:z.Type=107;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 40:$s=50;continue;case 41:z.Type=108;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 42:z.Type=109;cu=c.domAttrValue(a,"align");cv=0;cw=cu;if(cw===("left")){cv=1;}else if(cw===("center")){cv=2;}else if(cw===("right")){cv=3;}else{cv=0;}z.TableCellAlign=cv;z.Tokens=W.nil;b.Context.Tip.AppendChild(z);b.Context.Tip=z;$deferred.push([$methodVal(b.Context,"ParentTip"),[]]);$s=50;continue;case 43:if(Y.nil===a.FirstChild){$s=20;continue;}if("footnotes-ref"===e){z.Type=16;z.Tokens=(new W($stringToBytes("["+c.domAttrValue(a,"data-footnotes-label")+"]")));if(H.Contains(a.FirstChild.Data,"\xE2\x80\xB8")){z.Tokens=$appendSlice(z.Tokens,G.CaretTokens);}b.Context.Tip.AppendChild(z);}$s=-1;return;case 44:if(Y.nil===a.FirstChild){$s=20;continue;}if(H.Contains(x,"vditor-comment")){z.Type=10;cx=new A.Buffer.ptr(W.nil,0,0);cx.WriteString("=cy.$length)?($throwRuntimeError("index out of range"),undefined):cy.$array[cy.$offset+cz]);cx.WriteString(db.Key);if(!(""===db.Val)){cx.WriteString("=\"");cx.WriteString(db.Val);cx.WriteString("\"");}if(da<(a.Attr.$length-1>>0)){cx.WriteString(" ");}cz++;}cx.WriteString(">");z.Tokens=cx.Bytes();b.Context.Tip.AppendChild(z);$s=20;continue;}if("link-ref"===e){z.Type=16;dc="["+a.FirstChild.Data+"]["+c.domAttrValue(a,"data-link-label")+"]";if(!(Y.nil===a.NextSibling)&&"2"===c.domAttrValue(a.NextSibling,"data-render")){dc="!"+dc;}z.Tokens=(new W($stringToBytes(dc)));b.Context.Tip.AppendChild(z);$s=-1;return;}dd=W.nil;if("\xE2\x80\x8B"===a.FirstChild.Data&&""===c.domAttrValue(a,"style")&&!(Y.nil===a.FirstChild.NextSibling)){dd=(new W($stringToBytes(a.FirstChild.NextSibling.FirstChild.Data)));}else if(378116===a.FirstChild.DataAtom){dd=(new W($stringToBytes(a.FirstChild.FirstChild.Data)));if("\xE2\x80\x8B"===($bytesToString(dd))){$s=20;continue;}}if("math-inline"===e){z.Type=304;z.AppendChild(new B.Node.ptr("","","",305,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",306,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,dd,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",307,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-inline"===e){z.Type=10;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("code-inline"===e){z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}else if("html-entity"===e){z.Type=16;z.Tokens=dd;b.Context.Tip.AppendChild(z);$s=-1;return;}$s=20;continue;$s=50;continue;case 45:z.Type=16;z.Tokens=(new W($stringToBytes(c.domText(a))));b.Context.Tip.AppendChild(z);$s=-1;return;case 46:z.Type=9;de=c.domHTML(a);$s=125;case 125:if($c){$c=false;de=de.$blk();}if(de&&de.$blk!==undefined){break s;}z.Tokens=de;z.Tokens=(df=A.SplitAfter(z.Tokens,(new W($stringToBytes("")))),(0>=df.$length?($throwRuntimeError("index out of range"),undefined):df.$array[df.$offset+0]));b.Context.Tip.AppendChild(z);$s=50;continue;case 47:z.Type=10;dg=c.domHTML(a);$s=126;case 126:if($c){$c=false;dg=dg.$blk();}if(dg&&dg.$blk!==undefined){break s;}z.Tokens=dg;b.Context.Tip.AppendChild(z);$s=-1;return;case 48:$s=-1;return;case 49:z.Type=9;dh=c.domHTML(a);$s=127;case 127:if($c){$c=false;dh=dh.$blk();}if(dh&&dh.$blk!==undefined){break s;}z.Tokens=dh;b.Context.Tip.AppendChild(z);$s=-1;return;case 50:case 20:di=a.FirstChild;case 128:if(!(!(di===Y.nil))){$s=129;continue;}$r=c.genASTByVditorDOM(di,b);$s=130;case 130:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}di=di.NextSibling;$s=128;continue;case 129:dj=a.DataAtom;if(dj===(40708)){if(H.Contains(x,"vditor-comment")){b.Context.Tip.AppendChild(new B.Node.ptr("","","",10,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(""))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}}else if((dj===(28162))||(dj===(1537))){dk=c.domAttrValue(a,"data-marker");if(""===dk){dk="*";}if("_"===dk){z.AppendChild(new B.Node.ptr("","","",21,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dk))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",19,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dk))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}}else if((dj===(449798))||(dj===(257))){dl=c.domAttrValue(a,"data-marker");if(""===dl){dl="**";}if("__"===dl){z.AppendChild(new B.Node.ptr("","","",26,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",24,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dl))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}}else if(dj===(1)){z.AppendChild(new B.Node.ptr("","","",37,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",38,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));dm=c.domAttrValue(a,"href");if(!(""===c.RenderOptions.LinkBase)){dm=H.ReplaceAll(dm,c.RenderOptions.LinkBase,"");}if(!(""===c.RenderOptions.LinkPrefix)){dm=H.ReplaceAll(dm,c.RenderOptions.LinkPrefix,"");}z.AppendChild(new B.Node.ptr("","","",41,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dm))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));dn=c.domAttrValue(a,"title");if(!(""===dn)){z.AppendChild(new B.Node.ptr("","","",43,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));z.AppendChild(new B.Node.ptr("","","",42,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dn))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}z.AppendChild(new B.Node.ptr("","","",39,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,W.nil,false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else if((dj===(283139))||(dj===(9473))||(dj===(53766))){dp=c.domAttrValue(a,"data-marker");if("~"===dp){z.AppendChild(new B.Node.ptr("","","",103,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dp))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",105,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dp))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}}else if(dj===(46596)){dq=c.domAttrValue(a,"data-marker");if("="===dq){z.AppendChild(new B.Node.ptr("","","",452,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dq))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}else{z.AppendChild(new B.Node.ptr("","","",454,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(dq))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}}else if(dj===(29191)){b.Context.Tip.AppendChild(new B.Node.ptr("","","",9,Z.nil,Z.nil,Z.nil,Z.nil,Z.nil,AE.nil,(new W($stringToBytes(""))),false,false,false,0,false,0,0,0,W.nil,W.nil,W.nil,0,AF.nil,false,AG.nil,0,0,0,0,W.nil,0,false,"",0,W.nil,"",AE.nil,W.nil,AH.nil));}$s=-1;return;}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:N.ptr.prototype.genASTByVditorDOM};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.ae=ae;$f.af=af;$f.ag=ag;$f.ah=ah;$f.ai=ai;$f.aj=aj;$f.ak=ak;$f.al=al;$f.am=am;$f.an=an;$f.ao=ao;$f.ap=ap;$f.aq=aq;$f.ar=ar;$f.as=as;$f.at=at;$f.au=au;$f.av=av;$f.aw=aw;$f.ax=ax;$f.ay=ay;$f.az=az;$f.b=b;$f.ba=ba;$f.bb=bb;$f.bc=bc;$f.bd=bd;$f.be=be;$f.bf=bf;$f.bg=bg;$f.bh=bh;$f.bi=bi;$f.bj=bj;$f.bk=bk;$f.bl=bl;$f.bm=bm;$f.bn=bn;$f.bo=bo;$f.bp=bp;$f.bq=bq;$f.br=br;$f.bs=bs;$f.bt=bt;$f.bu=bu;$f.bv=bv;$f.bw=bw;$f.bx=bx;$f.by=by;$f.bz=bz;$f.c=c;$f.ca=ca;$f.cb=cb;$f.cc=cc;$f.cd=cd;$f.ce=ce;$f.cf=cf;$f.cg=cg;$f.ch=ch;$f.ci=ci;$f.cj=cj;$f.ck=ck;$f.cl=cl;$f.cm=cm;$f.cn=cn;$f.co=co;$f.cp=cp;$f.cq=cq;$f.cr=cr;$f.cs=cs;$f.ct=ct;$f.cu=cu;$f.cv=cv;$f.cw=cw;$f.cx=cx;$f.cy=cy;$f.cz=cz;$f.d=d;$f.da=da;$f.db=db;$f.dc=dc;$f.dd=dd;$f.de=de;$f.df=df;$f.dg=dg;$f.dh=dh;$f.di=di;$f.dj=dj;$f.dk=dk;$f.dl=dl;$f.dm=dm;$f.dn=dn;$f.dp=dp;$f.dq=dq;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};N.prototype.genASTByVditorDOM=function(a,b){return this.$val.genASTByVditorDOM(a,b);};N.ptr.prototype.hasAttr=function(a,b){var a,b,c,d,e,f;c=this;d=a.Attr;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return true;}e++;}return false;};N.prototype.hasAttr=function(a,b){return this.$val.hasAttr(a,b);};N.ptr.prototype.domAttrValue=function(a,b){var a,b,c,d,e,f;c=this;if(Y.nil===a){return"";}d=a.Attr;e=0;while(true){if(!(e=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+e]);if(f.Key===b){return f.Val;}e++;}return"";};N.prototype.domAttrValue=function(a,b){return this.$val.domAttrValue(a,b);};N.ptr.prototype.domChild=function(a,b){var a,b,c,d;c=this;if(Y.nil===a){return Y.nil;}d=a.FirstChild;while(true){if(!(!(Y.nil===d))){break;}if(d.DataAtom===b){return d;}d=d.NextSibling;}return Y.nil;};N.prototype.domChild=function(a,b){return this.$val.domChild(a,b);};N.ptr.prototype.setDOMAttrValue=function(a,b,c){var a,b,c,d,e,f,g;d=this;if(Y.nil===a){return;}e=a.Attr;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g.Key===b){g.Val=c;return;}f++;}a.Attr=$append(a.Attr,new C.Attribute.ptr("",b,c));};N.prototype.setDOMAttrValue=function(a,b,c){return this.$val.setDOMAttrValue(a,b,c);};N.ptr.prototype.parentIs=function(a,b){var a,b,c,d,e,f,g;c=this;d=a.Parent;while(true){if(!(!(Y.nil===d))){break;}e=b;f=0;while(true){if(!(f=e.$length)?($throwRuntimeError("index out of range"),undefined):e.$array[e.$offset+f]);if(g===d.DataAtom){return true;}f++;}d=d.Parent;}return false;};N.prototype.parentIs=function(a,b){return this.$val.parentIs(a,b);};N.ptr.prototype.domText=function(a){var a,b,c,d;b=this;c=new A.Buffer.ptr(W.nil,0,0);if(1===a.Type){c.WriteString(a.Data);return c.String();}d=a.FirstChild;while(true){if(!(!(Y.nil===d))){break;}b.domText0(d,c);d=d.NextSibling;}return c.String();};N.prototype.domText=function(a){return this.$val.domText(a);};N.ptr.prototype.domText0=function(a,b){var a,b,c,d,e,f,g;c=this;if(Y.nil===a){return;}d=c.domAttrValue(a,"data-render");if("1"===d||"2"===d){return;}e=c.domAttrValue(a,"data-type");if("ref-text-tpl-render-result"===e){return;}if("svg"===a.Namespace){return;}if((0===a.DataAtom)&&(3===a.Type)){return;}f=a.DataAtom;if(f===(0)){b.WriteString(a.Data);}else if(f===(514)){b.WriteString("\n");}g=a.FirstChild;while(true){if(!(!(Y.nil===g))){break;}c.domText0(g,b);g=g.NextSibling;}};N.prototype.domText0=function(a,b){return this.$val.domText0(a,b);};N.ptr.prototype.domHTML=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=new A.Buffer.ptr(W.nil,0,0);d=C.Render(c,a);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return A.ReplaceAll(c.Bytes(),(new W($stringToBytes("\xE2\x80\x8B"))),W.nil);}return;}if($f===undefined){$f={$blk:N.ptr.prototype.domHTML};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.domHTML=function(a){return this.$val.domHTML(a);};N.ptr.prototype.isEmptyText=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=H.TrimSpace(b.domText(a));$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(""===d||"\xE2\x80\x8B"===d){$s=-1;return true;}if("\xE2\x80\x8B\xE2\x80\xB8"===d||"\xE2\x80\xB8\xE2\x80\x8B"===d){$s=-1;return true;}$s=-1;return false;}return;}if($f===undefined){$f={$blk:N.ptr.prototype.isEmptyText};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};N.prototype.isEmptyText=function(a){return this.$val.isEmptyText(a);};N.ptr.prototype.starstWithNewline=function(a){var a,b;b=this;return H.HasPrefix(a.Data,"\n")||H.HasPrefix(a.Data,"\xE2\x80\x8B\n");};N.prototype.starstWithNewline=function(a){return this.$val.starstWithNewline(a);};N.ptr.prototype.isInline=function(a){var a,b;b=this;if(Y.nil===a){return false;}return(0===a.DataAtom)||(378116===a.DataAtom)||(449798===a.DataAtom)||(28162===a.DataAtom)||(1===a.DataAtom)||(198403===a.DataAtom)||(40708===a.DataAtom);};N.prototype.isInline=function(a){return this.$val.isInline(a);};AL.methods=[{prop:"HTML2Markdown",name:"HTML2Markdown",pkg:"",typ:$funcType([$String],[$String,$error],false)},{prop:"HTML2Tree",name:"HTML2Tree",pkg:"",typ:$funcType([$String],[X],false)},{prop:"genASTByDOM",name:"genASTByDOM",pkg:"github.com/88250/lute",typ:$funcType([Y,X],[],false)},{prop:"Markdown",name:"Markdown",pkg:"",typ:$funcType([$String,W],[W],false)},{prop:"MarkdownStr",name:"MarkdownStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"Format",name:"Format",pkg:"",typ:$funcType([$String,W],[W],false)},{prop:"FormatStr",name:"FormatStr",pkg:"",typ:$funcType([$String,$String],[$String],false)},{prop:"TextBundle",name:"TextBundle",pkg:"",typ:$funcType([$String,W,AD],[W,AD],false)},{prop:"TextBundleStr",name:"TextBundleStr",pkg:"",typ:$funcType([$String,$String,AD],[$String,AD],false)},{prop:"HTML2Text",name:"HTML2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderJSON",name:"RenderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Space",name:"Space",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"IsValidLinkDest",name:"IsValidLinkDest",pkg:"",typ:$funcType([$String],[$Bool],false)},{prop:"GetEmojis",name:"GetEmojis",pkg:"",typ:$funcType([],[AU],false)},{prop:"PutEmojis",name:"PutEmojis",pkg:"",typ:$funcType([AU],[],false)},{prop:"RemoveEmoji",name:"RemoveEmoji",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"GetTerms",name:"GetTerms",pkg:"",typ:$funcType([],[AU],false)},{prop:"PutTerms",name:"PutTerms",pkg:"",typ:$funcType([AU],[],false)},{prop:"Tree2HTML",name:"Tree2HTML",pkg:"",typ:$funcType([X,AM],[$String],false)},{prop:"SetGFMTable",name:"SetGFMTable",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItem",name:"SetGFMTaskListItem",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMTaskListItemClass",name:"SetGFMTaskListItemClass",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetGFMStrikethrough",name:"SetGFMStrikethrough",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGFMAutoLink",name:"SetGFMAutoLink",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSoftBreak2HardBreak",name:"SetSoftBreak2HardBreak",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlight",name:"SetCodeSyntaxHighlight",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightDetectLang",name:"SetCodeSyntaxHighlightDetectLang",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightInlineStyle",name:"SetCodeSyntaxHighlightInlineStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightLineNum",name:"SetCodeSyntaxHighlightLineNum",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetCodeSyntaxHighlightStyleName",name:"SetCodeSyntaxHighlightStyleName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetFootnotes",name:"SetFootnotes",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetToC",name:"SetToC",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetHeadingID",name:"SetHeadingID",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetAutoSpace",name:"SetAutoSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetFixTermTypo",name:"SetFixTermTypo",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmoji",name:"SetEmoji",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetEmojis",name:"SetEmojis",pkg:"",typ:$funcType([AU],[],false)},{prop:"SetEmojiSite",name:"SetEmojiSite",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetHeadingAnchor",name:"SetHeadingAnchor",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetTerms",name:"SetTerms",pkg:"",typ:$funcType([AU],[],false)},{prop:"SetVditorWYSIWYG",name:"SetVditorWYSIWYG",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorIR",name:"SetVditorIR",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorSV",name:"SetVditorSV",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetInlineMathAllowDigitAfterOpenMarker",name:"SetInlineMathAllowDigitAfterOpenMarker",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetLinkPrefix",name:"SetLinkPrefix",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetLinkBase",name:"SetLinkBase",pkg:"",typ:$funcType([$String],[],false)},{prop:"GetLinkBase",name:"GetLinkBase",pkg:"",typ:$funcType([],[$String],false)},{prop:"SetVditorCodeBlockPreview",name:"SetVditorCodeBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorMathBlockPreview",name:"SetVditorMathBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetVditorHTMLBlockPreview",name:"SetVditorHTMLBlockPreview",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetRenderListStyle",name:"SetRenderListStyle",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSanitize",name:"SetSanitize",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImageLazyLoading",name:"SetImageLazyLoading",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetChineseParagraphBeginningSpace",name:"SetChineseParagraphBeginningSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetYamlFrontMatter",name:"SetYamlFrontMatter",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetBlockRef",name:"SetBlockRef",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetMark",name:"SetMark",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIAL",name:"SetKramdownIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownBlockIAL",name:"SetKramdownBlockIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownSpanIAL",name:"SetKramdownSpanIAL",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetKramdownIALIDRenderName",name:"SetKramdownIALIDRenderName",pkg:"",typ:$funcType([$String],[],false)},{prop:"SetTag",name:"SetTag",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetImgPathAllowSpace",name:"SetImgPathAllowSpace",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSuperBlock",name:"SetSuperBlock",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSup",name:"SetSup",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetSub",name:"SetSub",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetGitConflict",name:"SetGitConflict",pkg:"",typ:$funcType([$Bool],[],false)},{prop:"SetJSRenderers",name:"SetJSRenderers",pkg:"",typ:$funcType([AX],[],false)},{prop:"SpinVditorIRDOM",name:"SpinVditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorIRDOM",name:"HTML2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2HTML",name:"VditorIRDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorIRDOM",name:"Md2VditorIRDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRDOM2Md",name:"VditorIRDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorIRDOM2Md",name:"vditorIRDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"genASTByVditorIRDOM",name:"genASTByVditorIRDOM",pkg:"github.com/88250/lute",typ:$funcType([Y,X],[],false)},{prop:"SpinVditorIRBlockDOM",name:"SpinVditorIRBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorIRBlockDOM",name:"HTML2VditorIRBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOM2HTML",name:"VditorIRBlockDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorIRBlockDOM",name:"Md2VditorIRBlockDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOM2Md",name:"VditorIRBlockDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOM2StdMd",name:"VditorIRBlockDOM2StdMd",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOM2Text",name:"VditorIRBlockDOM2Text",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOM2TextLen",name:"VditorIRBlockDOM2TextLen",pkg:"",typ:$funcType([$String],[$Int],false)},{prop:"Tree2VditorIRBlockDOM",name:"Tree2VditorIRBlockDOM",pkg:"",typ:$funcType([X,AM],[$String],false)},{prop:"VditorIRBlockDOM2Tree",name:"VditorIRBlockDOM2Tree",pkg:"",typ:$funcType([$String],[X,$error],false)},{prop:"vditorIRBlockDOM2Md",name:"vditorIRBlockDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"VditorIRBlockDOMListCommand",name:"VditorIRBlockDOMListCommand",pkg:"",typ:$funcType([$String,$String,$String,$String],[$String],false)},{prop:"genASTByVditorIRBlockDOM",name:"genASTByVditorIRBlockDOM",pkg:"github.com/88250/lute",typ:$funcType([Y,X],[],false)},{prop:"setIAL",name:"setIAL",pkg:"github.com/88250/lute",typ:$funcType([Y,Z],[W],false)},{prop:"SpinVditorSVDOM",name:"SpinVditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorSVDOM",name:"HTML2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorSVDOM",name:"Md2VditorSVDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2HTML",name:"Md2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"SpinVditorDOM",name:"SpinVditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2VditorDOM",name:"HTML2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2HTML",name:"VditorDOM2HTML",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"Md2VditorDOM",name:"Md2VditorDOM",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"VditorDOM2Md",name:"VditorDOM2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderEChartsJSON",name:"RenderEChartsJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"RenderKityMinderJSON",name:"RenderKityMinderJSON",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"HTML2Md",name:"HTML2Md",pkg:"",typ:$funcType([$String],[$String],false)},{prop:"vditorDOM2Md",name:"vditorDOM2Md",pkg:"github.com/88250/lute",typ:$funcType([$String],[$String],false)},{prop:"parseHTML",name:"parseHTML",pkg:"github.com/88250/lute",typ:$funcType([$String],[Y],false)},{prop:"adjustVditorDOM",name:"adjustVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"adjustVditorDOMListList",name:"adjustVditorDOMListList",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"removeEmptyNodes",name:"removeEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"searchEmptyNodes",name:"searchEmptyNodes",pkg:"github.com/88250/lute",typ:$funcType([Y,AT],[],false)},{prop:"mergeVditorDOMList0",name:"mergeVditorDOMList0",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"adjustVditorDOMListTight0",name:"adjustVditorDOMListTight0",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"adjustVditorDOMListItemInP",name:"adjustVditorDOMListItemInP",pkg:"github.com/88250/lute",typ:$funcType([Y],[],false)},{prop:"forwardNextBlock",name:"forwardNextBlock",pkg:"github.com/88250/lute",typ:$funcType([Y],[AS,Y],false)},{prop:"listItemEnter",name:"listItemEnter",pkg:"github.com/88250/lute",typ:$funcType([Y],[$Bool],false)},{prop:"isTightList",name:"isTightList",pkg:"github.com/88250/lute",typ:$funcType([Y],[$String],false)},{prop:"genASTByVditorDOM",name:"genASTByVditorDOM",pkg:"github.com/88250/lute",typ:$funcType([Y,X],[],false)},{prop:"hasAttr",name:"hasAttr",pkg:"github.com/88250/lute",typ:$funcType([Y,$String],[$Bool],false)},{prop:"domAttrValue",name:"domAttrValue",pkg:"github.com/88250/lute",typ:$funcType([Y,$String],[$String],false)},{prop:"domChild",name:"domChild",pkg:"github.com/88250/lute",typ:$funcType([Y,D.Atom],[Y],false)},{prop:"setDOMAttrValue",name:"setDOMAttrValue",pkg:"github.com/88250/lute",typ:$funcType([Y,$String,$String],[],false)},{prop:"removeDOMAttr",name:"removeDOMAttr",pkg:"github.com/88250/lute",typ:$funcType([Y,$String],[],false)},{prop:"domCode",name:"domCode",pkg:"github.com/88250/lute",typ:$funcType([Y],[$String],false)},{prop:"domCode0",name:"domCode0",pkg:"github.com/88250/lute",typ:$funcType([Y,AY],[],false)},{prop:"parentIs",name:"parentIs",pkg:"github.com/88250/lute",typ:$funcType([Y,AJ],[$Bool],true)},{prop:"domText",name:"domText",pkg:"github.com/88250/lute",typ:$funcType([Y],[$String],false)},{prop:"domText0",name:"domText0",pkg:"github.com/88250/lute",typ:$funcType([Y,AY],[],false)},{prop:"domHTML",name:"domHTML",pkg:"github.com/88250/lute",typ:$funcType([Y],[W],false)},{prop:"isEmptyText",name:"isEmptyText",pkg:"github.com/88250/lute",typ:$funcType([Y],[$Bool],false)},{prop:"starstWithNewline",name:"starstWithNewline",pkg:"github.com/88250/lute",typ:$funcType([Y],[$Bool],false)},{prop:"isInline",name:"isInline",pkg:"github.com/88250/lute",typ:$funcType([Y],[$Bool],false)}];N.init("",[{prop:"ParseOptions",name:"ParseOptions",embedded:false,exported:true,typ:AI,tag:""},{prop:"RenderOptions",name:"RenderOptions",embedded:false,exported:true,typ:AM,tag:""},{prop:"HTML2MdRendererFuncs",name:"HTML2MdRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"HTML2VditorDOMRendererFuncs",name:"HTML2VditorDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"HTML2VditorIRDOMRendererFuncs",name:"HTML2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"HTML2VditorIRBlockDOMRendererFuncs",name:"HTML2VditorIRBlockDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"HTML2VditorSVDOMRendererFuncs",name:"HTML2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"Md2HTMLRendererFuncs",name:"Md2HTMLRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"Md2VditorDOMRendererFuncs",name:"Md2VditorDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"Md2VditorIRDOMRendererFuncs",name:"Md2VditorIRDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"Md2VditorIRBlockDOMRendererFuncs",name:"Md2VditorIRBlockDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""},{prop:"Md2VditorSVDOMRendererFuncs",name:"Md2VditorSVDOMRendererFuncs",embedded:false,exported:true,typ:AZ,tag:""}]);Q.init([AL],[],false);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=L.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=K.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=11;case 11:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=12;case 12:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})(); +$packages["github.com/88250/lute/parse"]=(function(){var $pkg={},$init,A,D,B,E,F,H,I,G,C,R,Z,BL,BM,BN,BO,BX,BY,BZ,CA,CB,CC,CD,CE,CF,CG,CH,CI,CJ,CK,CL,CM,CN,J,K,L,N,Y,AA,AI,AJ,AM,AN,AO,AP,AQ,AR,AT,AU,BA,BD,BS,O,P,Q,S,T,U,V,W,X,AB,AC,AD,AE,AF,AG,AH,AK,AL,AS,AV,AW,AX,AY,AZ,BB,BC,BE,BF,BG,BH,BI,BJ,BK,BP,BQ,BR,BT,BU,BV,BW;A=$packages["bytes"];D=$packages["github.com/88250/lute/ast"];B=$packages["github.com/88250/lute/html"];E=$packages["github.com/88250/lute/lex"];F=$packages["github.com/88250/lute/util"];H=$packages["strconv"];I=$packages["strings"];G=$packages["unicode"];C=$packages["unicode/utf8"];R=$pkg.blockStartFunc=$newType(4,$kindFunc,"parse.blockStartFunc",true,"github.com/88250/lute/parse",false,null);Z=$pkg.delimiter=$newType(0,$kindStruct,"parse.delimiter",true,"github.com/88250/lute/parse",false,function(node_,typ_,num_,originalNum_,canOpen_,canClose_,previous_,next_,active_,image_,bracketAfter_,index_,previousDelimiter_){this.$val=this;if(arguments.length===0){this.node=BZ.nil;this.typ=0;this.num=0;this.originalNum=0;this.canOpen=false;this.canClose=false;this.previous=CH.nil;this.next=CH.nil;this.active=false;this.image=false;this.bracketAfter=false;this.index=0;this.previousDelimiter=CH.nil;return;}this.node=node_;this.typ=typ_;this.num=num_;this.originalNum=originalNum_;this.canOpen=canOpen_;this.canClose=canClose_;this.previous=previous_;this.next=next_;this.active=active_;this.image=image_;this.bracketAfter=bracketAfter_;this.index=index_;this.previousDelimiter=previousDelimiter_;});BL=$pkg.Context=$newType(0,$kindStruct,"parse.Context",true,"github.com/88250/lute/parse",true,function(Tree_,ParseOption_,Tip_,oldtip_,currentLine_,currentLineLen_,offset_,column_,nextNonspace_,nextNonspaceColumn_,indent_,indented_,blank_,partiallyConsumedTab_,allClosed_,lastMatchedContainer_,rootIAL_){this.$val=this;if(arguments.length===0){this.Tree=CI.nil;this.ParseOption=CM.nil;this.Tip=BZ.nil;this.oldtip=BZ.nil;this.currentLine=BX.nil;this.currentLineLen=0;this.offset=0;this.column=0;this.nextNonspace=0;this.nextNonspaceColumn=0;this.indent=0;this.indented=false;this.blank=false;this.partiallyConsumedTab=false;this.allClosed=false;this.lastMatchedContainer=BZ.nil;this.rootIAL=BZ.nil;return;}this.Tree=Tree_;this.ParseOption=ParseOption_;this.Tip=Tip_;this.oldtip=oldtip_;this.currentLine=currentLine_;this.currentLineLen=currentLineLen_;this.offset=offset_;this.column=column_;this.nextNonspace=nextNonspace_;this.nextNonspaceColumn=nextNonspaceColumn_;this.indent=indent_;this.indented=indented_;this.blank=blank_;this.partiallyConsumedTab=partiallyConsumedTab_;this.allClosed=allClosed_;this.lastMatchedContainer=lastMatchedContainer_;this.rootIAL=rootIAL_;});BM=$pkg.InlineContext=$newType(0,$kindStruct,"parse.InlineContext",true,"github.com/88250/lute/parse",true,function(tokens_,tokensLen_,pos_,delimiters_,brackets_){this.$val=this;if(arguments.length===0){this.tokens=BX.nil;this.tokensLen=0;this.pos=0;this.delimiters=CH.nil;this.brackets=CH.nil;return;}this.tokens=tokens_;this.tokensLen=tokensLen_;this.pos=pos_;this.delimiters=delimiters_;this.brackets=brackets_;});BN=$pkg.Tree=$newType(0,$kindStruct,"parse.Tree",true,"github.com/88250/lute/parse",true,function(Root_,Context_,lexer_,inlineContext_,Name_,ID_,URL_,Path_,Marks_,Created_,Updated_,Hash_){this.$val=this;if(arguments.length===0){this.Root=BZ.nil;this.Context=CJ.nil;this.lexer=CK.nil;this.inlineContext=CL.nil;this.Name="";this.ID="";this.URL="";this.Path="";this.Marks=CD.nil;this.Created=new $Int64(0,0);this.Updated=new $Int64(0,0);this.Hash="";return;}this.Root=Root_;this.Context=Context_;this.lexer=lexer_;this.inlineContext=inlineContext_;this.Name=Name_;this.ID=ID_;this.URL=URL_;this.Path=Path_;this.Marks=Marks_;this.Created=Created_;this.Updated=Updated_;this.Hash=Hash_;});BO=$pkg.Options=$newType(0,$kindStruct,"parse.Options",true,"github.com/88250/lute/parse",true,function(GFMTable_,GFMTaskListItem_,GFMStrikethrough_,GFMAutoLink_,Footnotes_,HeadingID_,ToC_,Emoji_,AliasEmoji_,EmojiAlias_,EmojiSite_,VditorWYSIWYG_,VditorIR_,VditorSV_,InlineMathAllowDigitAfterOpenMarker_,Setext_,YamlFrontMatter_,BlockRef_,Mark_,KramdownBlockIAL_,KramdownSpanIAL_,Tag_,ImgPathAllowSpace_,SuperBlock_,Sup_,Sub_,GitConflict_){this.$val=this;if(arguments.length===0){this.GFMTable=false;this.GFMTaskListItem=false;this.GFMStrikethrough=false;this.GFMAutoLink=false;this.Footnotes=false;this.HeadingID=false;this.ToC=false;this.Emoji=false;this.AliasEmoji=false;this.EmojiAlias=false;this.EmojiSite="";this.VditorWYSIWYG=false;this.VditorIR=false;this.VditorSV=false;this.InlineMathAllowDigitAfterOpenMarker=false;this.Setext=false;this.YamlFrontMatter=false;this.BlockRef=false;this.Mark=false;this.KramdownBlockIAL=false;this.KramdownSpanIAL=false;this.Tag=false;this.ImgPathAllowSpace=false;this.SuperBlock=false;this.Sup=false;this.Sub=false;this.GitConflict=false;return;}this.GFMTable=GFMTable_;this.GFMTaskListItem=GFMTaskListItem_;this.GFMStrikethrough=GFMStrikethrough_;this.GFMAutoLink=GFMAutoLink_;this.Footnotes=Footnotes_;this.HeadingID=HeadingID_;this.ToC=ToC_;this.Emoji=Emoji_;this.AliasEmoji=AliasEmoji_;this.EmojiAlias=EmojiAlias_;this.EmojiSite=EmojiSite_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.VditorSV=VditorSV_;this.InlineMathAllowDigitAfterOpenMarker=InlineMathAllowDigitAfterOpenMarker_;this.Setext=Setext_;this.YamlFrontMatter=YamlFrontMatter_;this.BlockRef=BlockRef_;this.Mark=Mark_;this.KramdownBlockIAL=KramdownBlockIAL_;this.KramdownSpanIAL=KramdownSpanIAL_;this.Tag=Tag_;this.ImgPathAllowSpace=ImgPathAllowSpace_;this.SuperBlock=SuperBlock_;this.Sup=Sup_;this.Sub=Sub_;this.GitConflict=GitConflict_;});BX=$sliceType($Uint8);BY=$sliceType(BX);BZ=$ptrType(D.Node);CA=$sliceType(BZ);CB=$ptrType(D.ListData);CC=$sliceType($Int);CD=$sliceType($String);CE=$sliceType(CD);CF=$sliceType(R);CG=$sliceType(D.NodeType);CH=$ptrType(Z);CI=$ptrType(BN);CJ=$ptrType(BL);CK=$ptrType(E.Lexer);CL=$ptrType(BM);CM=$ptrType(BO);CN=$mapType($String,$String);BN.ptr.prototype.parseGFMAutoEmailLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BZ.nil===c))){break;}d=c.Next;if((16===c.Type)&&!(BZ.nil===c.Parent)&&!((33===c.Parent.Type))){b.parseGFMAutoEmailLink0(c);}else{b.parseGFMAutoEmailLink(c);}c=d;}};BN.prototype.parseGFMAutoEmailLink=function(a){return this.$val.parseGFMAutoEmailLink(a);};BN.ptr.prototype.parseGFMAutoLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BZ.nil===c))){break;}d=c.Next;if(16===c.Type){b.parseGFMAutoLink0(c);}else{b.parseGFMAutoLink(c);}c=d;}};BN.prototype.parseGFMAutoLink=function(a){return this.$val.parseGFMAutoLink(a);};BN.ptr.prototype.parseGFMAutoEmailLink0=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;b=this;c=a.Tokens;if(0>=A.IndexByte(c,64)){return;}d=0;e=0;f=0;g=0;h=d;i=e;j=f;k=g;l=0;m=c.$length;loopPart:while(true){if(!(h=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);if(!E.IsWhitespace(l)){n=$append(n,((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]));if(64===l){k=i-h>>0;}i=i+(1)>>0;continue;}break;}if(h===i){b.addPreviousText(a,new BX([((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i])]));h=h+(1)>>0;continue;}h=i;if(0>=k){b.addPreviousText(a,n);continue;}j=0;while(true){if(!(j=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);if(!b.isValidEmailSegment1(l)){b.addPreviousText(a,n);continue loopPart;}j=j+(1)>>0;}j=j+(1)>>0;o=0;while(true){if(!(j=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);l=((j<0||j>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);if(!b.isValidEmailSegment2(l)){b.addPreviousText(a,n);continue loopPart;}j=j+(1)>>0;}if(46===l){p=n.$length-1>>0;n=$subslice(n,0,p);q=b.newLink(33,n,$appendSlice(J,n),BX.nil,2);a.InsertBefore(q);b.addPreviousText(a,new BX([o]));}else if((45===l)||(95===l)){b.addPreviousText(a,n);continue loopPart;}else{r=new D.Node.ptr("","","",33,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,2,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);r.AppendChild(new D.Node.ptr("","","",40,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,n,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));r.AppendChild(new D.Node.ptr("","","",41,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,$appendSlice(J,n),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.InsertBefore(r);}}a.Unlink();return;};BN.prototype.parseGFMAutoEmailLink0=function(a){return this.$val.parseGFMAutoEmailLink0(a);};BN.ptr.prototype.isValidEmailSegment1=function(a){var a,b;b=this;return E.IsASCIILetterNumHyphen(a)||(46===a)||(43===a)||(95===a);};BN.prototype.isValidEmailSegment1=function(a){return this.$val.isValidEmailSegment1(a);};BN.ptr.prototype.isValidEmailSegment2=function(a){var a,b;b=this;return E.IsASCIILetterNumHyphen(a)||(46===a)||(95===a);};BN.prototype.isValidEmailSegment2=function(a){return this.$val.isValidEmailSegment2(a);};BN.ptr.prototype.parseGFMAutoLink0=function(a){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;c=a.Tokens;d=c.$length;e=10;if(e>d){return;}f=0;g=0;h=0;i=f;j=g;k=h;l=0;m=0;n=l;o=m;p=0;q=false;r=false;while(true){if(!(i=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);s=BX.nil;t=d-i>>0;if(10<=t&&(119===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(119===(u=i+1>>0,((u<0||u>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+u])))&&(119===(v=i+2>>0,((v<0||v>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+v])))&&(46===(w=i+3>>0,((w<0||w>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+w])))){s=K;q=true;}else if(13<=t&&(104===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(x=i+1>>0,((x<0||x>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+x])))&&(116===(y=i+2>>0,((y<0||y>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+y])))&&(112===(z=i+3>>0,((z<0||z>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+z])))&&(58===(aa=i+4>>0,((aa<0||aa>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+aa])))&&(47===(ab=i+5>>0,((ab<0||ab>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ab])))&&(47===(ac=i+6>>0,((ac<0||ac>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ac])))){s=$subslice(c,i,(i+7>>0));i=i+(7)>>0;}else if(14<=t&&(104===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(ad=i+1>>0,((ad<0||ad>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ad])))&&(116===(ae=i+2>>0,((ae<0||ae>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ae])))&&(112===(af=i+3>>0,((af<0||af>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+af])))&&(115===(ag=i+4>>0,((ag<0||ag>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ag])))&&(58===(ah=i+5>>0,((ah<0||ah>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ah])))&&(47===(ai=i+6>>0,((ai<0||ai>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ai])))&&(47===(aj=i+7>>0,((aj<0||aj>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+aj])))){s=$subslice(c,i,(i+8>>0));i=i+(8)>>0;}else if(12<=t&&(102===((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]))&&(116===(ak=i+1>>0,((ak<0||ak>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ak])))&&(112===(al=i+2>>0,((al<0||al>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+al])))&&(58===(am=i+3>>0,((am<0||am>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+am])))&&(47===(an=i+4>>0,((an<0||an>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+an])))&&(47===(ao=i+5>>0,((ao<0||ao>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+ao])))){s=$subslice(c,i,(i+6>>0));i=i+(6)>>0;}else{o=o+(1)>>0;if((d-i>>0)>0;continue;}if(n=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+j]);if((E.IsWhitespace(p)||(60===p))||(!E.IsASCIIPunct(p)&&!E.IsASCIILetterNum(p))){break;}ap=$append(ap,p);j=j+(1)>>0;}if(i===j){if(128<=p){if(!q){ap=$appendSlice(ap,s);}while(true){if(!(i=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i]);if(128>p){break;}ap=$append(ap,p);i=i+(1)>>0;}}else{ap=$append(ap,p);i=i+(1)>>0;}if(!(BZ.nil===a.Previous)){a.Previous.Tokens=$appendSlice(a.Previous.Tokens,ap);}n=i;o=i;continue;}i=j;k=0;while(true){if(!(k=ap.$length)?($throwRuntimeError("index out of range"),undefined):ap.$array[ap.$offset+k]);if(47===p){break;}k=k+(1)>>0;}aq=$subslice(ap,0,k);ar=BX.nil;as=A.Index(aq,(new BX($stringToBytes(":"))));if(0=ax.$length)?($throwRuntimeError("index out of range"),undefined):ax.$array[ax.$offset+az]);if(40===p){av=av+(1)>>0;}else if(41===p){aw=aw+(1)>>0;}az=az+(1)>>0;}ba=false;bc=(bb=ay-1>>0,((bb<0||bb>=ax.$length)?($throwRuntimeError("index out of range"),undefined):ax.$array[ax.$offset+bb]));if(41===bc){bd=aw-av>>0;if(0>0;while(true){if(!(0=ax.$length)?($throwRuntimeError("index out of range"),undefined):ax.$array[ax.$offset+az]);if(!((41===p))){break;}bd=bd-(1)>>0;i=i-(1)>>0;az=az-(1)>>0;}ax=$subslice(ax,0,(az+1>>0));ba=true;}else{ba=true;}}else if(59===bc){be=false;az=ay-1>>0;while(true){if(!(0<=az)){break;}p=((az<0||az>=ax.$length)?($throwRuntimeError("index out of range"),undefined):ax.$array[ax.$offset+az]);if(38===p){be=true;break;}az=az-(1)>>0;}if(be){bf=$subslice(ax,az,ay);if(3<=bf.$length){bg=true;j=1;while(true){if(!(j<(bf.$length-1>>0))){break;}if(!E.IsASCIILetterNum(((j<0||j>=bf.$length)?($throwRuntimeError("index out of range"),undefined):bf.$array[bf.$offset+j]))){bg=false;break;}j=j+(1)>>0;}if(bg){ax=$subslice(ax,0,az);ba=true;i=i-((ay-az>>0))>>0;}}}}if(!ba&&E.IsASCIIPunct(bc)&&!((47===bc))&&!((125===bc))&&!((123===bc))){ax=$subslice(ax,0,(ay-1>>0));i=i-(1)>>0;}}else{ay=aq.$length;bi=(bh=ay-1>>0,((bh<0||bh>=aq.$length)?($throwRuntimeError("index out of range"),undefined):aq.$array[aq.$offset+bh]));if(E.IsASCIIPunct(bi)){aq=$subslice(aq,0,(ay-1>>0));i=i-(1)>>0;}}bj=$appendSlice(s,aq);bj=$appendSlice(bj,ar);bj=$appendSlice(bj,ax);bk=BX.nil;if(!q){bk=$appendSlice(bk,s);}bk=$appendSlice(bk,aq);bk=$appendSlice(bk,ax);bl=b.newLink(33,bk,B.EncodeDestination(bj),BX.nil,2);a.InsertBefore(bl);r=true;n=i;o=i;}if(nd){return false;}e=0;f=0;while(true){if(!(f=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+f]);h=g.$length;if(1>h){f=f+(1)>>0;continue;}i=0;while(true){if(!(i=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+i]);if(!E.IsASCIILetterNumHyphen(e)){return false;}if(2>0))||(f===(d-1>>0)))){if(95===e){return false;}}i=i+(1)>>0;}if(f===(d-1>>0)){j=false;k=true;l=g;m=0;while(true){if(!(m=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);if(!E.IsDigit(n)){k=false;break;}m++;}if(!k){o=0;while(true){if(!(o=L.$length)?($throwRuntimeError("index out of range"),undefined):L.$array[L.$offset+o]))){j=true;break;}o=o+(1)>>0;}}else{j=true;}if(!j){return false;}}f=f+(1)>>0;}return true;};BN.prototype.isValidDomain=function(a){return this.$val.isValidDomain(a);};BN.ptr.prototype.parseAutoEmailLink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BZ.nil;c=this;d=$subslice(a.tokens,1);e=BX.nil;f=0;g=d.$length;h=0;i=0;j=false;while(true){if(!(i=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]);e=$append(e,((i<0||i>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]));h=h+(1)>>0;if(64===f){j=true;break;}if(!E.IsASCIILetterNumHyphen(f)&&!A.Contains(N,new BX([f]))){b=BZ.nil;return b;}i=i+(1)>>0;}if(1>i||!j){b=BZ.nil;return b;}k=$subslice(d,(i+1>>0));g=k.$length;i=0;l=false;while(true){if(!(i=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+i]);h=h+(1)>>0;if(62===f){l=true;break;}e=$append(e,((i<0||i>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+i]));if(!E.IsASCIILetterNumHyphen(f)&&!((46===f))){b=BZ.nil;return b;}if(63>0;}if(1>i||!l){b=BZ.nil;return b;}a.pos=a.pos+((h+1>>0))>>0;b=c.newLink(33,e,$appendSlice(J,e),BX.nil,2);return b;};BN.prototype.parseAutoEmailLink=function(a){return this.$val.parseAutoEmailLink(a);};BN.ptr.prototype.newLink=function(a,b,c,d,e){var a,b,c,d,e,f,g;f=BZ.nil;g=this;f=new D.Node.ptr("","","",a,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,e,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);if(34===a){f.AppendChild(new D.Node.ptr("","","",35,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));}f.AppendChild(new D.Node.ptr("","","",36,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));f.AppendChild(new D.Node.ptr("","","",40,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,b,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));f.AppendChild(new D.Node.ptr("","","",37,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));f.AppendChild(new D.Node.ptr("","","",38,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));f.AppendChild(new D.Node.ptr("","","",41,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,c,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));if(!(BX.nil===d)){f.AppendChild(new D.Node.ptr("","","",42,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,d,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));}f.AppendChild(new D.Node.ptr("","","",39,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));if(1===e){f.LinkRefLabel=b;}return f;};BN.prototype.newLink=function(a,b,c,d,e){return this.$val.newLink(a,b,c,d,e);};BN.ptr.prototype.parseAutolink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BZ.nil;c=this;d=false;e="";f=BX.nil;g=0;h=a.pos+1>>0;while(true){if(!(h=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+h])))))){break;}g=(j=a.tokens,((h<0||h>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+h]));if(32===g){b=BZ.nil;return b;}f=$append(f,(k=a.tokens,((h<0||h>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+h])));if(!d){if(!((58===g))){e=e+(($encodeRune(g)));}else{d=true;}}h=h+(1)>>0;}if(!d||3>e.length||(h===a.tokensLen)){b=BZ.nil;return b;}if(!((62===(l=a.tokens,((h<0||h>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+h]))))){b=BZ.nil;return b;}a.pos=1+h>>0;b=c.newLink(33,f,B.EncodeDestination(f),BX.nil,2);return b;};BN.prototype.parseAutolink=function(a){return this.$val.parseAutolink(a);};BN.ptr.prototype.addPreviousText=function(a,b){var a,b,c;c=this;if(BZ.nil===a.Previous||!((16===a.Previous.Type))){a.InsertBefore(new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,b,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));return;}a.Previous.AppendTokens(b);};BN.prototype.addPreviousText=function(a,b){return this.$val.addPreviousText(a,b);};O=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.BlockRef||a.Context.indented){$s=-1;return 0;}c=a.parseBlockEmbed();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(BZ.nil===d){$s=-1;return 0;}$r=a.Context.closeUnmatchedBlocks();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:if(!(!a.Context.Tip.CanContain(440))){$s=4;continue;}$r=a.Context.finalize(a.Context.Tip);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 4:a.Context.Tip.AppendChild(d);a.Context.Tip=d;$s=-1;return 2;}return;}if($f===undefined){$f={$blk:O};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};$pkg.BlockEmbedStart=O;BN.ptr.prototype.parseBlockEmbed=function(){var a,aa,ab,ac,ad,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=BZ.nil;b=this;c=$subslice(b.Context.currentLine,b.Context.nextNonspace);d=A.TrimSpace(c);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;e=false;f=CE.nil;if((8===b.Context.Tip.Type)&&0>0));}if(3===b.Context.Tip.ListData.Typ){$s=4;continue;}$s=5;continue;case 4:c=$subslice(c,(A.Index(c,(new BX($stringToBytes("]"))))+1>>0));g=A.TrimSpace(c);$s=6;case 6:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}c=g;e=true;case 5:case 3:h=A.HasPrefix(c,(new BX($stringToBytes("\xEF\xBC\x81(("))));i=(A.HasPrefix(c,(new BX($stringToBytes("\xE2\x80\xB8!((")))))||(A.HasPrefix(c,(new BX($stringToBytes("!\xE2\x80\xB8((")))));if(6>b.Context.currentLineLen||(!A.HasPrefix(c,(new BX($stringToBytes("!(("))))&&!h&&!i)){$s=-1;return a;}if(h){c=A.Replace(c,(new BX($stringToBytes("\xEF\xBC\x81(("))),(new BX($stringToBytes("!(("))),1);}if(i){c=A.Replace(c,(new BX($stringToBytes("\xE2\x80\xB8!(("))),(new BX($stringToBytes("!(("))),1);c=A.Replace(c,(new BX($stringToBytes("!\xE2\x80\xB8(("))),(new BX($stringToBytes("!(("))),1);}c=$subslice(c,3);j=BX.nil;k=BX.nil;l=BX.nil;m=BX.nil;n=j;o=k;p=l;q=m;r=0;s=false;while(true){t=E.Spnl($subslice(c,r));s=t[0];n=t[1];o=t[2];if(!s){break;}r=r+(n.$length)>>0;u=b.Context.parseBlockRefID(o);n=u[0];o=u[1];p=u[2];if(1>n.$length){s=false;break;}r=r+(n.$length)>>0;s=(41===(v=n.$length-1>>0,((v<0||v>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+v])))&&(41===(w=n.$length-2>>0,((w<0||w>=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+w])));if(s){break;}if(1>o.$length||!E.IsWhitespace((0>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+0]))){s=false;break;}x=E.Spnl(o);s=x[0];n=x[1];o=x[2];if(!s){break;}r=r+((n.$length+1>>0))>>0;s=2<=o.$length&&(41===(0>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+0]))&&(41===(1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1]));if(s){r=r+(1)>>0;break;}y=false;z=b.Context.parseLinkTitle(o);y=z[0];n=z[1];o=z[2];q=z[3];if(!y){break;}r=r+(n.$length)>>0;aa=E.Spnl(o);s=aa[0];n=aa[1];o=aa[2];r=r+(n.$length)>>0;s=s&&1=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+0]))&&(41===(1>=o.$length?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+1]));r=r+(2)>>0;}break;}ab=A.HasSuffix(c,F.CaretTokens);c=A.TrimSuffix(c,F.CaretTokens);if(!((r===c.$length))){s=false;}if(!s){$s=-1;return a;}a=new D.Node.ptr("","","",440,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);a.AppendChild(new D.Node.ptr("","","",35,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",38,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",38,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",441,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,p,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",442,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",443,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,q,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",39,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",39,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));if(ab||i){a.AppendChild(new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,F.CaretTokens,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));}if(e){ac=b.Context.Tip;ad=new D.Node.ptr("","","",100,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,ac.ListData.Checked,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);ad.KramdownIAL=f;ac.AppendChild(ad);}$s=-1;return a;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.parseBlockEmbed};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.parseBlockEmbed=function(){return this.$val.parseBlockEmbed();};P=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.BlockRef||a.Context.indented){$s=-1;return 0;}c=a.parseBlockQueryEmbed();$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}d=c;if(BZ.nil===d){$s=-1;return 0;}$r=a.Context.closeUnmatchedBlocks();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:if(!(!a.Context.Tip.CanContain(465))){$s=4;continue;}$r=a.Context.finalize(a.Context.Tip);$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=3;continue;case 4:a.Context.Tip.AppendChild(d);a.Context.Tip=d;$s=-1;return 2;}return;}if($f===undefined){$f={$blk:P};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};$pkg.BlockQueryEmbedStart=P;BN.ptr.prototype.parseBlockQueryEmbed=function(){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=BZ.nil;b=this;c=$subslice(b.Context.currentLine,b.Context.nextNonspace);d=A.HasPrefix(c,(new BX($stringToBytes("\xE2\x80\xB8!{{"))));if(!A.HasPrefix(c,(new BX($stringToBytes("!{{"))))&&!d){$s=-1;return a;}if(d){c=A.Replace(c,(new BX($stringToBytes("\xE2\x80\xB8!{{"))),(new BX($stringToBytes("!{{"))),1);}c=$subslice(c,3);e=A.TrimSpace(c);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}c=e;if(!A.HasSuffix(c,(new BX($stringToBytes("}}"))))){$s=-1;return a;}c=$subslice(c,0,(c.$length-2>>0));f=A.TrimSpace(c);$s=2;case 2:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;c=A.TrimSuffix(c,F.CaretTokens);a=new D.Node.ptr("","","",465,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);a.AppendChild(new D.Node.ptr("","","",35,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",466,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",466,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",468,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,g,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",467,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",467,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=-1;return a;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.parseBlockQueryEmbed};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.parseBlockQueryEmbed=function(){return this.$val.parseBlockQueryEmbed();};BN.ptr.prototype.parseBlockRef=function(a){var a,aa,ab,ac,ad,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!b.Context.ParseOption.BlockRef){a.pos=a.pos+(1)>>0;$s=-1;return new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,(new BX($stringToBytes("("))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);}c=$subslice(a.tokens,a.pos);if(5>c.$length||!((40===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0])))||!((40===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1])))){a.pos=a.pos+(1)>>0;$s=-1;return new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,(new BX($stringToBytes("("))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);}d=BX.nil;e=BX.nil;f=d;g=e;h=a.pos;a.pos=a.pos+(2)>>0;i=false;j=false;k=i;l=j;m=BX.nil;n=BX.nil;o=m;p=n;while(true){q=E.Spnl($subslice(a.tokens,a.pos));k=q[0];o=q[1];p=q[2];if(!k){break;}a.pos=a.pos+(o.$length)>>0;r=b.Context.parseBlockRefID(p);o=r[0];p=r[1];f=r[2];if(1>o.$length){break;}a.pos=a.pos+(o.$length)>>0;l=(41===(s=o.$length-1>>0,((s<0||s>=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+s])))&&(41===(t=o.$length-2>>0,((t<0||t>=o.$length)?($throwRuntimeError("index out of range"),undefined):o.$array[o.$offset+t])));if(l){break;}if(1>p.$length||!E.IsWhitespace((0>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+0]))){break;}u=E.Spnl(p);k=u[0];o=u[1];p=u[2];if(!k){break;}a.pos=a.pos+((o.$length+1>>0))>>0;l=2<=p.$length&&(41===(0>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+0]))&&(41===(1>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+1]));if(l){a.pos=a.pos+(1)>>0;break;}v=false;w=b.Context.parseLinkTitle(p);v=w[0];o=w[1];p=w[2];g=w[3];if(!v){break;}a.pos=a.pos+(o.$length)>>0;x=E.Spnl(p);k=x[0];o=x[1];p=x[2];a.pos=a.pos+(o.$length)>>0;l=k&&1=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+0]))&&(41===(1>=p.$length?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+1]));a.pos=a.pos+(2)>>0;}break;}if(!l){a.pos=h+1>>0;$s=-1;return new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,(new BX($stringToBytes("("))),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);}y=new D.Node.ptr("","","",430,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);y.AppendChild(new D.Node.ptr("","","",38,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));y.AppendChild(new D.Node.ptr("","","",38,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));y.AppendChild(new D.Node.ptr("","","",431,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,f,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));if(1>g.$length){g=f;}y.AppendChild(new D.Node.ptr("","","",432,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));z=BK("",g,b.Context.ParseOption);$s=1;case 1:if($c){$c=false;z=z.$blk();}if(z&&z.$blk!==undefined){break s;}aa=z;ab=new D.Node.ptr("","","",433,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);y.AppendChild(ab);ac=aa.Root.FirstChild.FirstChild;while(true){if(!(!(BZ.nil===ac))){break;}ad=ac.Next;ab.AppendChild(ac);if(!(BZ.nil===ad)){ac=ad;}else{break;}}y.AppendChild(new D.Node.ptr("","","",39,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));y.AppendChild(new D.Node.ptr("","","",39,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=-1;return y;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.parseBlockRef};}$f.a=a;$f.aa=aa;$f.ab=ab;$f.ac=ac;$f.ad=ad;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.x=x;$f.y=y;$f.z=z;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.parseBlockRef=function(a){return this.$val.parseBlockRef(a);};BL.ptr.prototype.parseBlockRefID=function(a){var a,b,c,d,e,f,g,h,i;b=BX.nil;c=BX.nil;d=BX.nil;e=this;c=a;f=a.$length;if(1>f){return[b,c,d];}g=0;h=0;while(true){if(!(g=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]);if(A.Contains(F.CaretTokens,new BX([h]))){g=g+(1)>>0;continue;}if(E.IsWhitespace(h)||(41===h)||!E.IsASCIILetterNumHyphen(((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){break;}g=g+(1)>>0;}c=$subslice(a,g);d=$subslice(a,0,g);if(64c.$length){return[b,c,d];}b=$makeSlice(BX,0,64);b=$appendSlice(b,d);if(A.HasPrefix(c,F.CaretTokens)){b=$appendSlice(b,F.CaretTokens);c=$subslice(c,F.CaretTokens.$length);}i=(41===(0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))&&(41===(1>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+1]));if(i){b=$appendSlice(b,(new BX($stringToBytes("))"))));return[b,c,d];}if(!E.IsWhitespace((0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))){b=BX.nil;return[b,c,d];}return[b,c,d];};BL.prototype.parseBlockRefID=function(a){return this.$val.parseBlockRefID(a);};Q=function(){return new CF([AE,S,AG,V,AH,AK,BU,BT,BB,BF,W,AC,AS,O,P,BQ]);};S=function(a,b){var a,b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=E.Peek(a.Context.currentLine,a.Context.nextNonspace);if(!((62===c))){$s=-1;return 0;}d=new BX([c]);a.Context.advanceNextNonspace();a.Context.advanceOffset(1,false);e=E.Peek(a.Context.currentLine,a.Context.offset);f=(32===e)||(9===e);if(f){a.Context.advanceOffset(1,true);d=$append(d,e);}$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=a.Context.addChild(5);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}g;a.Context.addChildMarker(6,d);$s=-1;return 1;}return;}if($f===undefined){$f={$blk:S};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.$s=$s;$f.$r=$r;return $f;};$pkg.BlockquoteStart=S;T=function(a,b){var a,b,c,d;c=b.currentLine;if(!b.indented&&(E.Peek(c,b.nextNonspace)===62)){b.advanceNextNonspace();b.advanceOffset(1,false);d=E.Peek(c,b.offset);if((32===d)||(9===d)){b.advanceOffset(1,true);}return 0;}return 1;};$pkg.BlockquoteContinue=T;BN.ptr.prototype.parseBlocks=function(){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;a.Context.Tip=a.Root;b=0;c=a.lexer.NextLine();case 1:if(!(!(BX.nil===c))){$s=2;continue;}if(a.Context.ParseOption.VditorWYSIWYG||a.Context.ParseOption.VditorIR||a.Context.ParseOption.VditorSV){if(!A.Equal(c,F.CaretNewlineTokens)&&a.Context.Tip.ParentIs(8,new CG([]))&&A.HasPrefix(c,F.CaretTokens)){if(8===a.Context.Tip.Type){a.Context.Tip.AppendChild(new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,c,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=2;continue;}else{a.Context.Tip.Tokens=A.TrimSuffix(a.Context.Tip.Tokens,(new BX($stringToBytes("\n"))));a.Context.Tip.Tokens=$appendSlice(a.Context.Tip.Tokens,F.CaretNewlineTokens);}c=$subslice(c,F.CaretTokens.$length);}}$r=a.incorporateLine(c);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}b=b+(1)>>0;c=a.lexer.NextLine();$s=1;continue;case 2:case 4:if(!(!(BZ.nil===a.Context.Tip))){$s=5;continue;}$r=a.Context.finalize(a.Context.Tip);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=4;continue;case 5:$s=-1;return;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.parseBlocks};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.parseBlocks=function(){return this.$val.parseBlocks();};BN.ptr.prototype.incorporateLine=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;b.Context.oldtip=b.Context.Tip;b.Context.offset=0;b.Context.column=0;b.Context.blank=false;b.Context.partiallyConsumedTab=false;b.Context.currentLine=a;b.Context.currentLineLen=b.Context.currentLine.$length;c=true;d=BZ.nil;d=b.Root;e=d.LastChild;case 1:if(!(!(BZ.nil===e)&&!e.Close)){$s=2;continue;}d=e;b.Context.findNextNonspace();f=U(d,b.Context);$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}g=f;if(g===(0)){$s=3;continue;}else if(g===(1)){c=false;$s=3;continue;}else if(g===(2)){$s=-1;return;}else if(g===(3)){d.AppendChild(new D.Node.ptr("","","",478,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,true,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=-1;return;}else if(g===(4)){h=b.Context.Tip;while(true){if(!(!(BZ.nil===h))){break;}if(475===h.Type){d=h;break;}h=h.Parent;}d.AppendChild(new D.Node.ptr("","","",478,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,true,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=-1;return;}case 3:if(!c){d=d.Parent;$s=2;continue;}e=d.LastChild;$s=1;continue;case 2:b.Context.allClosed=d===b.Context.oldtip;b.Context.lastMatchedContainer=d;i=!((d.Type===1))&&d.AcceptLines();j=Q();k=j.$length;case 5:if(!(!i)){$s=6;continue;}b.Context.findNextNonspace();n=(l=b.Context.currentLine,m=b.Context.nextNonspace,((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]));if(!b.Context.indented&&!((45===n))&&!((42===n))&&!((43===n))&&!E.IsDigit(n)&&!((96===n))&&!((126===n))&&!((35===n))&&!((62===n))&&!((60===n))&&!((95===n))&&!((61===n))&&!((36===n))&&!((91===n))&&!((123===n))&&!((125===n))&&!((33===n))&&!(("\xEF\xBC\x81".charCodeAt(0)===n))&&!(("\xE2\x80\xB8".charCodeAt(0)===n))){b.Context.advanceNextNonspace();$s=6;continue;}o=0;case 7:if(!(o=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+o])(b,d);$s=9;case 9:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}q=p;if(q===1){d=b.Context.Tip;$s=8;continue;}else if(q===2){d=b.Context.Tip;i=true;$s=8;continue;}else{o=o+(1)>>0;}$s=7;continue;case 8:if(o===k){b.Context.advanceNextNonspace();$s=6;continue;}$s=5;continue;case 6:if(!b.Context.allClosed&&!b.Context.blank&&(b.Context.Tip.Type===1)){$s=10;continue;}$s=11;continue;case 10:b.addLine();$s=12;continue;case 11:$r=b.Context.closeUnmatchedBlocks();$s=13;case 13:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}if(b.Context.blank&&!(BZ.nil===d.LastChild)){d.LastChild.LastLineBlank=true;}r=d.Type;s=(11===r)&&d.IsFencedCodeBlock;t=b.Context.blank&&!((r===411)||(r===5)||((r===11)&&s)||((r===300))||((r===495))||((r===8)&&BZ.nil===d.FirstChild));u=d;while(true){if(!(!(BZ.nil===u))){break;}u.LastLineBlank=t;u=u.Parent;}if(d.AcceptLines()){$s=14;continue;}if(b.Context.offset=1&&w.HtmlBlockType<=5){$s=21;continue;}$s=22;continue;case 21:x=$subslice(b.Context.currentLine,b.Context.offset);y=b.isHTMLBlockClose(x,w.HtmlBlockType);$s=25;case 25:if($c){$c=false;y=y.$blk();}if(y&&y.$blk!==undefined){break s;}if(y){$s=23;continue;}$s=24;continue;case 23:$r=b.Context.finalize(d);$s=26;case 26:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 24:case 22:$s=20;continue;case 19:if(3>0;c=4-((b=a.Context.column%4,b===b?b:$throwRuntimeError("integer divide by zero")))>>0;a.Context.Tip.AppendTokens(A.Repeat(F.StrToBytes(" "),c));}a.Context.Tip.AppendTokens($subslice(a.Context.currentLine,a.Context.offset));};BN.prototype.addLine=function(){return this.$val.addLine();};U=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=a.Type;if(c===(11)){$s=2;continue;}if(c===(9)){$s=3;continue;}if(c===(1)){$s=4;continue;}if(c===(8)){$s=5;continue;}if(c===(5)){$s=6;continue;}if(c===(300)){$s=7;continue;}if(c===(425)){$s=8;continue;}if(c===(411)){$s=9;continue;}if(c===(475)){$s=10;continue;}if(c===(495)){$s=11;continue;}if((c===(2))||(c===(4))||(c===(455))||(c===(440))||(c===(45))||(c===(465))){$s=12;continue;}$s=13;continue;case 2:d=X(a,b);$s=14;case 14:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;case 3:e=AL(a,b);$s=15;case 15:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;case 4:$s=-1;return BH(a,b);case 5:$s=-1;return BC(a,b);case 6:$s=-1;return T(a,b);case 7:f=BG(a,b);$s=16;case 16:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}$s=-1;return f;case 8:g=BV(a,b);$s=17;case 17:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}$s=-1;return g;case 9:$s=-1;return AD(a,b);case 10:h=BR(a,b);$s=18;case 18:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}$s=-1;return h;case 11:i=AF(a,b);$s=19;case 19:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}$s=-1;return i;case 12:$s=-1;return 1;case 13:case 1:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:U};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};V=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=a.parseFencedCode();d=c[0];e=c[1];f=c[2];g=c[3];h=c[4];i=c[5];if(d){$s=1;continue;}$s=2;continue;case 1:$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}j=a.Context.addChild(11);$s=4;case 4:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}k=j;k.IsFencedCodeBlock=true;k.CodeBlockFenceLen=f;k.CodeBlockFenceChar=e;k.CodeBlockFenceOffset=g;k.CodeBlockOpenFence=h;k.CodeBlockInfo=i;a.Context.advanceNextNonspace();a.Context.advanceOffset(f,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:V};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};$pkg.FenceCodeBlockStart=V;W=function(a,b){var a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.indented){$s=-1;return 0;}if(!((a.Context.Tip.Type===1))&&!a.Context.blank){$s=1;continue;}$s=2;continue;case 1:a.Context.advanceOffset(4,true);$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}c=a.Context.addChild(11);$s=4;case 4:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}c;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:W};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};$pkg.IndentCodeBlockStart=W;X=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=b.currentLine;d=b.indent;if(a.IsFencedCodeBlock){$s=1;continue;}$s=2;continue;case 1:f=b.isFencedCodeClose($subslice(c,b.nextNonspace),a.CodeBlockFenceChar,a.CodeBlockFenceLen);$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;g=e[0];h=e[1];if(d<=3&&g){$s=5;continue;}$s=6;continue;case 5:a.CodeBlockCloseFence=h;$r=b.finalize(a);$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 6:i=a.CodeBlockFenceOffset;j=0;while(true){if(!(i>0)){break;}j=E.Peek(c,b.offset);if(!((32===j))&&!((9===j))){break;}b.advanceOffset(1,true);i=i-(1)>>0;}case 7:$s=3;continue;case 2:if(d>=4){b.advanceOffset(4,true);}else if(b.blank){b.advanceNextNonspace();}else{$s=-1;return 1;}case 3:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:X};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};$pkg.CodeBlockContinue=X;BL.ptr.prototype.codeBlockFinalize=function(a){var a,b,c,d,e;b=this;if(a.IsFencedCodeBlock){c=a.Tokens;d=c.$length;if(1>d){return;}e=0;while(true){if(!(e=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e])){break;}e=e+(1)>>0;}a.Tokens=$subslice(c,(e+1>>0));}else{a.Tokens=E.ReplaceNewlineSpace(a.Tokens);}};BL.prototype.codeBlockFinalize=function(a){return this.$val.codeBlockFinalize(a);};BN.ptr.prototype.parseFencedCode=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;a=false;b=0;c=0;d=0;e=BX.nil;f=BX.nil;g=this;j=(h=g.Context.currentLine,i=g.Context.nextNonspace,((i<0||i>=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+i]));if(!((96===j))&&!((126===j))){return[a,b,c,d,e,f];}b=j;k=g.Context.nextNonspace;while(true){if(!(k=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+k]))))){break;}c=c+(1)>>0;k=k+(1)>>0;}if(3>c){return[a,b,c,d,e,f];}e=$subslice(g.Context.currentLine,g.Context.nextNonspace,(g.Context.nextNonspace+c>>0));m=BX.nil;n=$subslice(g.Context.currentLine,(g.Context.nextNonspace+c>>0));if((96===j)&&A.Contains(n,Y)){return[a,b,c,d,e,f];}m=E.TrimWhitespace(n);m=B.UnescapeBytes(m);o=true;p=b;q=c;r=g.Context.indent;s=e;t=m;a=o;b=p;c=q;d=r;e=s;f=t;return[a,b,c,d,e,f];};BN.prototype.parseFencedCode=function(){return this.$val.parseFencedCode();};BL.ptr.prototype.isFencedCodeClose=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=false;e=BX.nil;f=this;if(f.ParseOption.KramdownBlockIAL&&7=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);if(!((k===b))){l=false;m=BX.nil;d=l;e=m;$s=-1;return[d,e];}if(c>E.Accept(a,k)){n=false;o=BX.nil;d=n;e=o;$s=-1;return[d,e];}a=E.TrimWhitespace(a);p=A.HasSuffix(a,F.CaretTokens);if(f.ParseOption.VditorWYSIWYG||f.ParseOption.VditorIR||f.ParseOption.VditorSV){a=A.ReplaceAll(a,F.CaretTokens,BX.nil);if(p){f.Tip.Tokens=A.TrimSuffix(f.Tip.Tokens,(new BX($stringToBytes("\n"))));f.Tip.Tokens=$appendSlice(f.Tip.Tokens,F.CaretTokens);}}q=a;r=0;while(true){if(!(r=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]);if(!((s===b))){t=false;u=BX.nil;d=t;e=u;$s=-1;return[d,e];}r++;}e=a;v=true;w=e;d=v;e=w;$s=-1;return[d,e];}return;}if($f===undefined){$f={$blk:BL.ptr.prototype.isFencedCodeClose};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.u=u;$f.v=v;$f.w=w;$f.$s=$s;$f.$r=$r;return $f;};BL.prototype.isFencedCodeClose=function(a,b,c){return this.$val.isFencedCodeClose(a,b,c);};BN.ptr.prototype.parseCodeSpan=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;c=BZ.nil;d=this;e=b.pos;f=0;while(true){if(!((e+f>>0)>0,((h<0||h>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]))))){break;}f=f+(1)>>0;}i=$subslice(b.tokens,e,(e+f>>0));if(b.tokensLen<=(e+f>>0)){b.pos=b.pos+(f)>>0;c=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,i,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);return c;}j=new D.Node.ptr("","","",28,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,i,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);k=d.matchCodeSpanEnd($subslice(b.tokens,(e+f>>0)),f);if(1>k){b.pos=b.pos+(f)>>0;c=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,i,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);return c;}k=(e+k>>0)+f>>0;l=new D.Node.ptr("","","",30,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,$subslice(b.tokens,k,(k+f>>0)),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);m=$subslice(b.tokens,(e+f>>0),k);m=E.ReplaceAll(m,10,32);if(2=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]))&&(32===(n=m.$length-1>>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n])))&&!E.IsBlankLine(m)){j.Tokens=$append(j.Tokens,(0>=m.$length?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+0]));l.Tokens=$subslice(b.tokens,(k-1>>0),(k+f>>0));m=$subslice(m,1,(m.$length-1>>0));}if(d.Context.ParseOption.GFMTable){if(109===a.Type){m=A.ReplaceAll(m,(new BX($stringToBytes("\\|"))),(new BX($stringToBytes("|"))));}}c=new D.Node.ptr("","","",27,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,f,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);c.AppendChild(j);c.AppendChild(new D.Node.ptr("","","",29,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,m,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));c.AppendChild(l);b.pos=k+f>>0;return c;};BN.prototype.parseCodeSpan=function(a,b){return this.$val.parseCodeSpan(a,b);};BN.ptr.prototype.matchCodeSpanEnd=function(a,b){var a,b,c,d,e,f,g;c=0;d=this;e=a.$length;while(true){if(!(c>0;if((e-1>>0)>g&&(96===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){continue;}c=c;return c;}if(0>0;}else{c=c+(1)>>0;}}c=-1;return c;};BN.prototype.matchCodeSpanEnd=function(a,b){return this.$val.matchCodeSpanEnd(a,b);};BN.ptr.prototype.handleDelim=function(a,b){var a,b,c,d,e,f,g;c=this;d=b.pos;e=c.scanDelims(b);f=$subslice(b.tokens,d,b.pos);g=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,f,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);a.AppendChild(g);if(e.canOpen||e.canClose){b.delimiters=new Z.ptr(g,e.typ,e.num,e.num,e.canOpen,e.canClose,b.delimiters,CH.nil,false,false,false,0,CH.nil);if(!(CH.nil===b.delimiters.previous)){b.delimiters.previous.next=b.delimiters;}}};BN.prototype.handleDelim=function(a,b){return this.$val.handleDelim(a,b);};BN.ptr.prototype.processEmphasis=function(a,b){var a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;c=this;if(CH.nil===b.delimiters){return;}d=CH.nil;e=CH.nil;f=CH.nil;g=d;h=e;i=f;j=BZ.nil;k=BZ.nil;l=j;m=k;n=CH.nil;o=0;p=false;q=$makeMap($Uint8.keyFor,[]);r=false;s=95;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(s)]={k:s,v:a};t=42;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(t)]={k:t,v:a};u=126;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(u)]={k:u,v:a};v=61;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(v)]={k:v,v:a};w=35;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(w)]={k:w,v:a};x=94;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(x)]={k:x,v:a};h=b.delimiters;while(true){if(!(!(CH.nil===h)&&!(h.previous===a))){break;}h=h.previous;}while(true){if(!(!(CH.nil===h))){break;}y=h.typ;if(!h.canClose){h=h.next;continue;}g=h.previous;p=false;while(true){if(!(!(CH.nil===g)&&!(g===a)&&!(g===(z=q[$Uint8.keyFor(y)],z!==undefined?z.v:CH.nil)))){break;}r=(h.canOpen||g.canClose)&&!(((aa=h.originalNum%3,aa===aa?aa:$throwRuntimeError("integer divide by zero"))===0))&&((ab=((g.originalNum+h.originalNum>>0))%3,ab===ab?ab:$throwRuntimeError("integer divide by zero"))===0);if((g.typ===h.typ)&&g.canOpen&&!r){p=true;break;}g=g.previous;}i=h;if(!p){h=h.next;}else{if(h.num>=2&&g.num>=2){o=2;}else{o=1;}l=g.node;m=h.node;if(c.Context.ParseOption.GFMStrikethrough||c.Context.ParseOption.Sub){if((126===y)&&!((g.num===h.num))){break;}}else{if(126===y){break;}}if(c.Context.ParseOption.Sup){if((94===y)&&!((g.num===h.num))){break;}}else{if(94===y){break;}}if(c.Context.ParseOption.Mark){if((61===y)&&!((g.num===h.num))){break;}}else{if(61===y){break;}}if(c.Context.ParseOption.Tag){if((35===y)&&!((g.num===h.num))){break;}}else{if(35===y){break;}}g.num=g.num-(o)>>0;h.num=h.num-(o)>>0;ac=$subslice(l.Tokens,(l.Tokens.$length-o>>0));ad=$subslice(l.Tokens,0,(l.Tokens.$length-o>>0));l.Tokens=ad;ae=$subslice(m.Tokens,(m.Tokens.$length-o>>0));ad=$subslice(m.Tokens,0,(m.Tokens.$length-o>>0));m.Tokens=ad;af=new D.Node.ptr("","","",0,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,ac,true,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);ag=new D.Node.ptr("","","",0,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,true,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);ah=new D.Node.ptr("","","",0,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,ae,true,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);if(1===o){if(42===y){ag.Type=17;af.Type=18;ah.Type=19;}else if(95===y){ag.Type=17;af.Type=20;ah.Type=21;}else if(126===y){if(c.Context.ParseOption.Sub){ag.Type=490;af.Type=491;ah.Type=492;}else if(c.Context.ParseOption.GFMStrikethrough){ag.Type=101;af.Type=102;ah.Type=103;}}else if(61===y){if(c.Context.ParseOption.Mark){ag.Type=450;af.Type=451;ah.Type=452;}}else if(35===y){if(c.Context.ParseOption.Tag){ag.Type=460;af.Type=461;ah.Type=462;}}else if(94===y){if(c.Context.ParseOption.Sup){ag.Type=485;af.Type=486;ah.Type=487;}}}else{if(42===y){ag.Type=22;af.Type=23;ah.Type=24;}else if(95===y){ag.Type=22;af.Type=25;ah.Type=26;}else if(126===y){if(c.Context.ParseOption.GFMStrikethrough){ag.Type=101;af.Type=104;ah.Type=105;}}else if(61===y){if(c.Context.ParseOption.Mark){ag.Type=450;af.Type=453;ah.Type=454;}}}ai=l.Next;while(true){if(!(!(BZ.nil===ai)&&!(ai===m))){break;}aj=ai.Next;ai.Unlink();ag.AppendChild(ai);ai=aj;}ag.PrependChild(af);ag.AppendChild(ah);l.InsertAfter(ag);if(!(g.next===h)){g.next=h;h.previous=g;}if(g.num===0){l.Unlink();c.removeDelimiter(g,b);}if(h.num===0){m.Unlink();n=h.next;c.removeDelimiter(h,b);h=n;}}if(!p&&!r){ak=y;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(ak)]={k:ak,v:i.previous};if(!i.canOpen){c.removeDelimiter(i,b);}}}while(true){if(!(!(CH.nil===b.delimiters)&&!(b.delimiters===a))){break;}c.removeDelimiter(b.delimiters,b);}};BN.prototype.processEmphasis=function(a,b){return this.$val.processEmphasis(a,b);};BN.ptr.prototype.scanDelims=function(a){var a,aa,ab,ac,ad,ae,af,ag,ah,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=this;c=a.pos;e=(d=a.tokens,((c<0||c>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+c]));f=0;g=a.pos;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]))))){break;}f=f+(1)>>0;a.pos=a.pos+(1)>>0;g=g+(1)>>0;}i=10;j=10;k=i;l=j;if(0>0,((n<0||n>=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]));if(o>=128){p=C.DecodeLastRune($subslice(a.tokens,0,c));k=p[0];}else{k=((o>>0));}if((b.Context.ParseOption.VditorWYSIWYG||b.Context.ParseOption.VditorIR||b.Context.ParseOption.VditorSV)&&"\xE2\x80\xB8"===($encodeRune(k))){q=3;if(0<(c-q>>0)){o=(r=a.tokens,s=(c-q>>0)-1>>0,((s<0||s>=r.$length)?($throwRuntimeError("index out of range"),undefined):r.$array[r.$offset+s]));if(o>=128){t=C.DecodeLastRune($subslice(a.tokens,0,(c-q>>0)));k=t[0];}else{k=((o>>0));}}}}if(a.tokensLen>a.pos){w=(u=a.tokens,v=a.pos,((v<0||v>=u.$length)?($throwRuntimeError("index out of range"),undefined):u.$array[u.$offset+v]));if(w>=128){x=C.DecodeRune($subslice(a.tokens,a.pos));l=x[0];}else{l=((w>>0));}}y=E.IsUnicodeWhitespace(l);z=G.IsPunct(l)||G.IsSymbol(l);if(((42===e)&&(126===l))||((126===e)&&(42===l))||((94===e)&&((43===l)||(45===l)))||((126===e)&&((43===l)||(45===l)))){z=false;}aa=E.IsUnicodeWhitespace(k);ab=G.IsPunct(k)||G.IsSymbol(k);if(((42===e)&&(126===k))||((126===e)&&(42===k))||((94===e)&&((43===k)||(45===k)))||((126===e)&&((43===k)||(45===k)))){ab=false;}ac=!y&&(!z||aa||ab);ad=!aa&&(!ab||y||z);ae=false;af=false;ag=ae;ah=af;if(95===e){ag=ac&&(!ad||ab);ah=ad&&(!ac||z);}else{if(b.Context.ParseOption.Mark&&(61===e)&&!((2===f))){ag=false;ah=false;}else if(b.Context.ParseOption.Tag&&(35===e)&&!((1===f))){ag=false;ah=false;}else if(b.Context.ParseOption.Sup&&(94===e)&&!((1===f))){ag=false;ah=false;}else if(b.Context.ParseOption.Sub&&(126===e)&&!((1===f))){ag=false;ah=false;if(b.Context.ParseOption.GFMStrikethrough&&(2===f)){ag=ac;ah=ad;}}else{ag=ac;ah=ad;}}return new Z.ptr(BZ.nil,e,f,0,ag,ah,CH.nil,CH.nil,true,false,false,0,CH.nil);};BN.prototype.scanDelims=function(a){return this.$val.scanDelims(a);};BN.ptr.prototype.removeDelimiter=function(a,b){var a,b,c,d;c=CH.nil;d=this;if(!(CH.nil===a.previous)){a.previous.next=a.next;}if(CH.nil===a.next){b.delimiters=a.previous;}else{a.next.previous=a.previous;}return c;};BN.prototype.removeDelimiter=function(a,b){return this.$val.removeDelimiter(a,b);};BN.ptr.prototype.emoji=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BZ.nil===c))){break;}d=c.Next;if((16===c.Type)||(40===c.Type)){b.emoji0(c);}else{b.emoji(c);}c=d;}};BN.prototype.emoji=function(a){return this.$val.emoji(a);};BN.ptr.prototype.emoji0=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;b=this;c=a;d=a.Tokens;a.Tokens=new BX([]);e=d.$length;f=0;g=BX.nil;h=0;i=0;while(true){if(!(i=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+i]);if(i===(e-1>>0)){a.Tokens=$appendSlice(a.Tokens,$subslice(d,h));break;}if(!((58===f))){i=i+(1)>>0;continue;}a.Tokens=$appendSlice(a.Tokens,$subslice(d,h,i));j=false;h=i+1>>0;while(true){if(!(h=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]);if(E.IsWhitespace(f)){break;}if(58===f){j=true;break;}h=h+(1)>>0;}if(!j){a.Tokens=$appendSlice(a.Tokens,$subslice(d,i,h));i=i+(1)>>0;continue;}g=$subslice(d,(i+1>>0),h);if(1>g.$length){a.Tokens=$append(a.Tokens,((h<0||h>=d.$length)?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+h]));i=i+(1)>>0;continue;}k=(l=b.Context.ParseOption.AliasEmoji[$String.keyFor(F.BytesToStr(g))],l!==undefined?[l.v,true]:["",false]);m=k[0];n=k[1];if(n){o=new D.Node.ptr("","","",200,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);p=new D.Node.ptr("","","",201,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,BX.nil,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);o.AppendChild(p);q=F.StrToBytes(m);if(A.Contains(q,$pkg.EmojiSitePlaceholder)){r=F.BytesToStr(g);s=".png";if("huaji"===r){s=".gif";}t=b.Context.ParseOption.EmojiSite+"/"+r+s;p.Type=202;p.Tokens=b.EmojiImgTokens(r,t);}else if(A.Contains(q,AA)){u=F.BytesToStr(g);p.Type=202;p.Tokens=b.EmojiImgTokens(u,m);}else{p.Tokens=q;}p.AppendChild(new D.Node.ptr("","","",203,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,$subslice(d,i,(h+1>>0)),false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.InsertAfter(o);if((h+1>>0)>0)));}h=h+(1)>>0;i=h;}if(1>c.Tokens.$length){c.Unlink();}if(1>a.Tokens.$length){a.Unlink();}};BN.prototype.emoji0=function(a){return this.$val.emoji0(a);};BN.ptr.prototype.EmojiImgTokens=function(a,b){var a,b,c;c=this;return F.StrToBytes("\""+a+"\"");};BN.prototype.EmojiImgTokens=function(a,b){return this.$val.EmojiImgTokens(a,b);};AB=function(){var a,b,c,d,e,f,g,h;$pkg.EmojiUnicodeAlias=(a=$keys($pkg.EmojiAliasUnicode).length,((a<0||a>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=$pkg.EmojiAliasUnicode;c=0;d=$keys(b);while(true){if(!(c>0);if(!((94===d))){$s=-1;return 0;}e=new BX([94]);f=0;g=0;g=a.Context.nextNonspace+2>>0;while(true){if(!(g=h.$length)?($throwRuntimeError("index out of range"),undefined):h.$array[h.$offset+g]));if((32===f)||(10===f)||(9===f)){$s=-1;return 0;}if(93===f){break;}e=$append(e,f);g=g+(1)>>0;}if(g>=a.Context.currentLineLen){$s=-1;return 0;}if(!((58===(i=a.Context.currentLine,j=g+1>>0,((j<0||j>=i.$length)?($throwRuntimeError("index out of range"),undefined):i.$array[i.$offset+j]))))){$s=-1;return 0;}a.Context.advanceOffset(1,false);$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}a.Context.advanceOffset(e.$length+2>>0,true);if(!((410===a.Context.Tip.Type))){$s=2;continue;}$s=3;continue;case 2:k=a.Context.addChild(410);$s=4;case 4:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;case 3:l=a.Context.addChild(411);$s=5;case 5:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=l;m.Tokens=e;$s=-1;return 1;}return;}if($f===undefined){$f={$blk:AC};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};$pkg.FootnotesStart=AC;AD=function(a,b){var a,b;if(b.blank){return 0;}if(4>b.indent){return 1;}b.advanceOffset(4,true);return 0;};$pkg.FootnotesContinue=AD;BN.ptr.prototype.FindFootnotesDef=function(a){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=[a];b=[b];c=[c];c[0]=0;b[0]=BZ.nil;d=this;c[0]=0;if(d.Context.ParseOption.VditorIR||d.Context.ParseOption.VditorSV||d.Context.ParseOption.VditorWYSIWYG){a[0]=A.ReplaceAll(a[0],F.CaretTokens,BX.nil);}$r=D.Walk(d.Root,(function(a,b,c){return function(e,f){var e,f;if(!f||!((411===e.Type))){return 2;}c[0]=c[0]+(1)>>0;if(A.EqualFold(e.Tokens,a[0])){b[0]=e;return 0;}return 2;};})(a,b,c));$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return[c[0],b[0]];}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.FindFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.FindFootnotesDef=function(a){return this.$val.FindFootnotesDef(a);};AE=function(a,b){var a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(!a.Context.ParseOption.GitConflict){$s=-1;return 0;}if(a.Context.indented){$s=-1;return 0;}c=a.parseGitConflict();if(c){$s=1;continue;}$s=2;continue;case 1:$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}d=a.Context.addChild(495);$s=4;case 4:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}d;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AE};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};$pkg.GitConflictStart=AE;AF=function(a,b){var a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(b.isGitConflictClose()){$s=1;continue;}$s=2;continue;case 1:$r=b.finalize(a);$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AF};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};$pkg.GitConflictContinue=AF;BL.ptr.prototype.gitConflictFinalize=function(a){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;c=a.Tokens;d=A.Split(c,(new BX($stringToBytes("\n"))));e=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]);f=A.Join($subslice(d,1),(new BX($stringToBytes("\n"))));g=A.TrimSpace(f);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=A.TrimSpace(b.currentLine);$s=2;case 2:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;a.Tokens=BX.nil;a.AppendChild(new D.Node.ptr("","","",496,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,e,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",497,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,f,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));a.AppendChild(new D.Node.ptr("","","",498,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,i,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil));$s=-1;return;}return;}if($f===undefined){$f={$blk:BL.ptr.prototype.gitConflictFinalize};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};BL.prototype.gitConflictFinalize=function(a){return this.$val.gitConflictFinalize(a);};BN.ptr.prototype.parseGitConflict=function(){var a,b;a=false;b=this;a=A.HasPrefix(b.Context.currentLine,(new BX($stringToBytes("<<<<<<<"))));return a;};BN.prototype.parseGitConflict=function(){return this.$val.parseGitConflict();};BL.ptr.prototype.isGitConflictClose=function(){var a;a=this;return A.HasPrefix(a.currentLine,(new BX($stringToBytes(">>>>>>>"))));};BL.prototype.isGitConflictClose=function(){return this.$val.isGitConflictClose();};AG=function(a,b){var a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}c=a.parseATXHeading();d=c[0];e=c[1];f=c[2];g=c[3];if(d){$s=1;continue;}$s=2;continue;case 1:a.Context.advanceNextNonspace();a.Context.advanceOffset(f.$length,false);$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=a.Context.addChild(2);$s=4;case 4:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=h;i.HeadingLevel=g;i.Tokens=f;j=new D.Node.ptr("","","",3,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,e,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);i.AppendChild(j);a.Context.advanceOffset(a.Context.currentLineLen-a.Context.offset>>0,false);$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AG};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};$pkg.ATXHeadingStart=AG;AH=function(a,b){var a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented||!((1===b.Type))){$s=-1;return 0;}c=a.parseSetextHeading();if(0===c){$s=-1;return 0;}if(a.Context.ParseOption.GFMTable){d=a.Context.parseTable0(b.Tokens);if(!(BZ.nil===d)){b.Type=106;b.TableAligns=d.TableAligns;e=d.FirstChild;while(true){if(!(!(BZ.nil===e))){break;}f=e.Next;b.AppendChild(e);e=f;}b.Tokens=BX.nil;$s=-1;return 0;}}$r=a.Context.closeUnmatchedBlocks();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}g=b.Tokens;while(true){if(!(0=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0])))){break;}h=a.Context.parseLinkRefDef(g);if(!(BX.nil===h)){b.Tokens=h;}else{break;}g=b.Tokens;}if(0>0,false);$s=-1;return 2;}$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AH};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};$pkg.SetextHeadingStart=AH;BN.ptr.prototype.parseATXHeading=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;a=false;b=BX.nil;c=BX.nil;d=0;e=this;f=$subslice(e.Context.currentLine,e.Context.nextNonspace);g=false;if((e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV)&&A.HasPrefix(f,F.CaretTokens)){f=A.ReplaceAll(f,F.CaretTokens,BX.nil);g=true;}h=(0>=f.$length?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+0]);if(!((35===h))){return[a,b,c,d];}i=false;if((e.Context.ParseOption.VditorWYSIWYG||e.Context.ParseOption.VditorIR||e.Context.ParseOption.VditorSV)&&A.Contains(f,(new BX($stringToBytes("#\xE2\x80\xB8#"))))){f=A.ReplaceAll(f,F.CaretTokens,BX.nil);i=true;}d=E.Accept(f,35);if(6=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+d]))){return[a,b,c,d];}b=$subslice(e.Context.currentLine,e.Context.nextNonspace,((e.Context.nextNonspace+d>>0)+1>>0));c=$makeSlice(BX,0,256);k=E.TrimLeft(f);f=k[1];l=E.TrimLeft($subslice(f,d));f=l[1];m=f;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(10===o){break;}c=$append(c,o);n++;}p=E.TrimRight(c);c=p[1];q=c.$length-1>>0;while(true){if(!(0<=q)){break;}if(35===((q<0||q>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+q])){q=q-(1)>>0;continue;}if(32===((q<0||q>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+q])){break;}else{q=c.$length;break;}q=q-(1)>>0;}if(0>=q){c=$makeSlice(BX,0,0);}else if(0c.$length){return a;}}}e=0;f=((e<0||e>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e]);if(!((61===f))&&!((45===f))){return a;}g=c.$length;while(true){if(!(e=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+e]);if(!((61===h))&&!((45===h))){return a;}if(!((0===f))){if(!((f===h))){return a;}}else{f=h;}e=e+(1)>>0;}a=1;if(45===f){a=2;}if((b.Context.ParseOption.VditorWYSIWYG||b.Context.ParseOption.VditorIR||b.Context.ParseOption.VditorSV)&&d){b.Context.oldtip.Tokens=E.TrimWhitespace(b.Context.oldtip.Tokens);b.Context.oldtip.AppendTokens(F.CaretTokens);}return a;};BN.prototype.parseSetextHeading=function(){return this.$val.parseSetextHeading();};BN.ptr.prototype.parseHeadingID=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=BZ.nil;d=this;if(!d.Context.ParseOption.HeadingID||!((2===a.Type))||3>b.tokensLen){b.pos=b.pos+(1)>>0;c=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,AI,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);$s=-1;return c;}e=b.pos;f=$subslice(b.tokens,e);g=A.Index(f,AJ);if(2>g){b.pos=b.pos+(1)>>0;c=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,AI,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);$s=-1;return c;}h=A.Index(f,(new BX($stringToBytes("{"))));if(0>h){c=BZ.nil;$s=-1;return c;}i=f.$length;if(!(((i-1>>0)===g))){if(!A.HasSuffix(f,(new BX($stringToBytes("}\xE2\x80\xB8"))))&&A.HasSuffix(f,F.CaretTokens)){b.pos=b.pos+(1)>>0;c=new D.Node.ptr("","","",16,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,AI,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);$s=-1;return c;}}if(d.Context.ParseOption.VditorWYSIWYG){f=A.ReplaceAll(f,F.CaretTokens,BX.nil);}j=$subslice(f,(h+1>>0),g);b.pos=b.pos+((g+1>>0))>>0;if(!(BZ.nil===a.LastChild)){$s=1;continue;}$s=2;continue;case 1:k=A.TrimRight(a.LastChild.Tokens," ");$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}a.LastChild.Tokens=k;case 2:c=new D.Node.ptr("","","",420,BZ.nil,BZ.nil,BZ.nil,BZ.nil,BZ.nil,CA.nil,j,false,false,false,0,false,0,0,0,BX.nil,BX.nil,BX.nil,0,CB.nil,false,CC.nil,0,0,0,0,BX.nil,0,false,"",0,BX.nil,"",CA.nil,BX.nil,CE.nil);$s=-1;return c;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.parseHeadingID};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.parseHeadingID=function(a,b){return this.$val.parseHeadingID(a,b);};AK=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(a.Context.indented){$s=-1;return 0;}if(!((60===E.Peek(a.Context.currentLine,a.Context.nextNonspace)))){$s=-1;return 0;}if(a.Context.ParseOption.VditorWYSIWYG){if(A.Contains(a.Context.currentLine,(new BX($stringToBytes("vditor-comment"))))){$s=-1;return 0;}}c=$subslice(a.Context.currentLine,a.Context.nextNonspace);d=a.parseHTML(c);if(!((0===d))){$s=1;continue;}$s=2;continue;case 1:$r=a.Context.closeUnmatchedBlocks();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e=a.Context.addChild(9);$s=4;case 4:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}f=e;f.HtmlBlockType=d;$s=-1;return 2;case 2:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:AK};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};$pkg.HtmlBlockStart=AK;AL=function(a,b){var a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=b.currentLine;if(b.ParseOption.KramdownBlockIAL&&7>0))){break;}if((45===((i<0||i>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+i]))&&(45===(j=i+1>>0,((j<0||j>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j])))&&(62===(k=i+2>>0,((k<0||k>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k])))){$s=-1;return true;}i=i+(1)>>0;}}else if(g===(3)){l=0;while(true){if(!(l<(f-2>>0))){break;}if((63===((l<0||l>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+l]))&&(62===(m=l+1>>0,((m<0||m>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+m])))){$s=-1;return true;}l=l+(1)>>0;}}else if(g===(4)){$s=-1;return A.Contains(a,AR);}else if(g===(5)){n=0;while(true){if(!(n<(f-2>>0))){break;}if((93===((n<0||n>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+n]))&&(93===(o=n+1>>0,((o<0||o>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+o])))){$s=-1;return true;}n=n+(1)>>0;}}$s=-1;return false;}return;}if($f===undefined){$f={$blk:BN.ptr.prototype.isHTMLBlockClose};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.$s=$s;$f.$r=$r;return $f;};BN.prototype.isHTMLBlockClose=function(a,b){return this.$val.isHTMLBlockClose(a,b);};BN.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=0;c=this;d=E.TrimLeft(a);a=d[1];e=a.$length;if(3>e){return b;}if(!((60===(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0])))){return b;}b=1;f=E.AcceptTokenss(a,AM);if(0<=f){if(E.IsWhitespace(((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]))||(62===((f<0||f>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+f]))){return b;}}g=E.AcceptTokenss(a,AO);if(0<=g){if(E.IsWhitespace(((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))||(62===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))){b=6;return b;}if((47===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))&&(62===(h=g+1>>0,((h<0||h>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+h])))){b=6;return b;}}i=E.TrimWhitespace(a);j=c.isOpenTag(i);if(j&&!((c.Context.Tip.Type===1))){b=7;return b;}k=c.isCloseTag(i);if(k&&!((c.Context.Tip.Type===1))){b=7;return b;}if(0===A.Index(a,F.StrToBytes("