From abceaf2b9f9efbea1ad04ed03fc2875aae7ad7c0 Mon Sep 17 00:00:00 2001 From: Liyuan Li Date: Sat, 21 Mar 2020 00:52:42 +0800 Subject: [PATCH] :art: #27 placeholder --- CHANGELOG.md | 8 ++++---- package-lock.json | 2 +- package.json | 2 +- src/js/lute/lute.min.js | 6 +++--- src/ts/ir/index.ts | 8 ++++++++ 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99aaa7723..5825e584c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,15 +49,15 @@ * [open issues](https://github.com/Vanessa219/vditor/issues) -### v3.0.3 / 未发布 +### v3.0.4 / 未发布 * [27](https://github.com/Vanessa219/vditor/issues/27) 支持类似 Typora 的及时渲染模式 `引入特性` + +### v3.0.3 / 2020-03-20 + * [229](https://github.com/Vanessa219/vditor/issues/229) 初始化时不应该自动获取焦点 `改进功能` * [228](https://github.com/Vanessa219/vditor/pull/228) menu misplaced when vditor is not first child `改进功能` * [227](https://github.com/Vanessa219/vditor/pull/227) add jsdoc `引入特性` - -### v3.0.2 / 2020-03-19 - * [225](https://github.com/Vanessa219/vditor/pull/225) publish type declaration file `引入特性` * [224](https://github.com/Vanessa219/vditor/issues/224) md2html 方法报错 `修复缺陷` * [223](https://github.com/Vanessa219/vditor/issues/223) 下列 a 前输入 ``` b 会消失,且返回无光标 `修复缺陷` diff --git a/package-lock.json b/package-lock.json index 7412480e0..efb8c4939 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vditor", - "version": "3.0.2", + "version": "3.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5d2e0e699..2eaf85516 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vditor", - "version": "3.0.2", + "version": "3.0.3", "description": "♏ 一款浏览器端的 Markdown 编辑器。", "author": "Vanessa (http://vanessa.b3log.org)", "homepage": "https://hacpai.com/tag/vditor", diff --git a/src/js/lute/lute.min.js b/src/js/lute/lute.min.js index 2fb3d3d87..a90ff2df2 100644 --- a/src/js/lute/lute.min.js +++ b/src/js/lute/lute.min.js @@ -27,8 +27,8 @@ $packages["github.com/88250/lute/lex"]=(function(){var $pkg={},$init,B,A,C,AG,AH $packages["github.com/88250/lute/util"]=(function(){var $pkg={},$init,D,A,E,B,C,AD,H,I,J,K,F,G,L,M,N,P,Q,R,S;D=$packages["github.com/88250/lute/html"];A=$packages["github.com/88250/lute/lex"];E=$packages["strconv"];B=$packages["strings"];C=$packages["unicode/utf8"];AD=$sliceType($Uint8);F=function(a){var a,b;b=AD.nil;b=(new AD($stringToBytes(a)));return b;};$pkg.StrToBytes=F;G=function(a){var a;return($bytesToString(a));};$pkg.BytesToStr=G;L=function(a){var a,b;b=AD.nil;b=F(D.UnescapeString(G(a)));return b;};$pkg.UnescapeHTML=L;M=function(a){var a,b,c,d,e,f,g,h,i;b=AD.nil;c=a.$length;d=0;e=0;f=d;g=e;h=false;b=a;while(true){if(!(g=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]);if(i===(38)){if(!h){b=$makeSlice(AD,0,(c+128>>0));h=true;}b=$appendSlice(b,$subslice(a,f,g));b=$appendSlice(b,H);f=g+1>>0;}else if(i===(60)){if(!h){b=$makeSlice(AD,0,(c+128>>0));h=true;}b=$appendSlice(b,$subslice(a,f,g));b=$appendSlice(b,I);f=g+1>>0;}else if(i===(62)){if(!h){b=$makeSlice(AD,0,(c+128>>0));h=true;}b=$appendSlice(b,$subslice(a,f,g));b=$appendSlice(b,J);f=g+1>>0;}else if(i===(34)){if(!h){b=$makeSlice(AD,0,(c+128>>0));h=true;}b=$appendSlice(b,$subslice(a,f,g));b=$appendSlice(b,K);f=g+1>>0;}g=g+(1)>>0;}if(h){b=$appendSlice(b,$subslice(a,f));}return b;};$pkg.EscapeHTML=M;N=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;b=AD.nil;b=$makeSlice(AD,0,256);c=0;d=0;while(true){if(!(c>0;j=h;k=i;while(true){if(!(j=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j]);d=((j<0||j>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j]);b=$append(b,37);b=$append(b,"0123456789ABCDEF".charCodeAt(((((l>>>4<<24>>>24))&15)>>>0)));b=$append(b,"0123456789ABCDEF".charCodeAt(((l&15)>>>0)));j=j+(1)>>0;}}else if(f===37){d=((c<0||c>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+c]);if((c+2>>0)>0,((m<0||m>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+m])))&&A.IsHexDigit((n=c+2>>0,((n<0||n>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+n])))){b=$append(b,37);b=$append(b,A.TokenToUpper((o=c+1>>0,((o<0||o>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+o]))));b=$append(b,A.TokenToUpper((p=c+2>>0,((p<0||p>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+p]))));c=c+(2)>>0;}else{b=$append(b,37);b=$append(b,50);b=$append(b,53);}}else if(B.IndexByte("!#$&'()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~",((f<<24>>>24)))===-1){d=((c<0||c>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+c]);b=$append(b,37);b=$append(b,"0123456789ABCDEF".charCodeAt((((f>>4>>0))&15)));b=$append(b,"0123456789ABCDEF".charCodeAt((f&15)));}else{d=((c<0||c>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+c]);b=$append(b,d);}c=c+(g)>>0;}return b;};$pkg.EncodeDestination=N;P=function(a){var a,b,c,d;b=AD.nil;if(AD.nil===a){return b;}a=F(Q(G(a)));c=a.$length;b=$makeSlice(AD,0,c);d=0;while(true){if(!(d>0));}b=$append(b,((d<0||d>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+d]));d=d+(1)>>0;}return b;};$pkg.UnescapeString=P;Q=function(a){var a,b,c,d,e,f,g,h,i,j,k;b=B.IndexByte(a,38);if(b<0){return a;}c=false;d="";e=0;while(true){if(!(b0){c=true;break;}}b=b+(1)>>0;}if(!c){return a;}g=$makeSlice(AD,((a.length-e>>0)+d.length>>0));$copyString($subslice(g,0,b),a);h=$copyString($subslice(g,b),d);i=b+h>>0;b=b+(e)>>0;while(true){if(!(b0){h=$copyString($subslice(g,i),d);i=i+(h)>>0;b=b+(e)>>0;continue;}}((i<0||i>=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+i]=j);i=i+(1)>>0;b=b+(1)>>0;}return($bytesToString($subslice(g,0,i)));};$pkg.HtmlUnescapeString=Q;R=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;b=0;c=0;d=1;while(true){if(!(d>0;if(c>31){return["",0];}}else if((e===59)){g=(h=D.Entities[$String.keyFor($substring(a,(d-c>>0),d))],h!==undefined?[h.v,true]:["",false]);i=g[0];j=g[1];if(j){return[i,d+1>>0];}return["",0];}else{return["",0];}}else if(f===(3)){if(A.IsHexDigit(e)){c=1;b=5;}else{return["",0];}}else if(f===(4)){if(A.IsDigit(e)){c=c+(1)>>0;if(c>8){return["",0];}}else if((e===59)){k=E.ParseInt($substring(a,(d-c>>0),d),10,32);l=k[0];if(!S(l)){return["\xEF\xBF\xBD",d+1>>0];}return[($encodeRune((((l.$low+((l.$high>>31)*4294967296))>>0)))),d+1>>0];}else{return["",0];}}else if(f===(5)){if(A.IsHexDigit(e)){c=c+(1)>>0;if(c>8){return["",0];}}else if((e===59)){m=E.ParseInt($substring(a,(d-c>>0),d),16,32);n=m[0];o=m[1];if(!($interfaceIsEqual($ifaceNil,o))){return["\xEF\xBF\xBD",d+1>>0];}if(!S(n)){return["\xEF\xBF\xBD",d+1>>0];}return[($encodeRune((((n.$low+((n.$high>>31)*4294967296))>>0)))),d+1>>0];}else{return["",0];}}d=d+(1)>>0;}return["",0];};S=function(a){var a,b,c;if(!C.ValidRune((((a.$low+((a.$high>>31)*4294967296))>>0)))){return false;}else if((a.$high>0||(a.$high===0&&a.$low>=64976))&&(a.$high<0||(a.$high===0&&a.$low<=65007))){return false;}else if((b=new $Int64(a.$high&0,(a.$low&65535)>>>0),(b.$high===0&&b.$low===65535))||(c=new $Int64(a.$high&0,(a.$low&65535)>>>0),(c.$high===0&&c.$low===65534))){return false;}else if((a.$high>0||(a.$high===0&&a.$low>=0))&&(a.$high<0||(a.$high===0&&a.$low<=8))){return false;}else if((a.$high===0&&a.$low===11)){return false;}else if((a.$high>0||(a.$high===0&&a.$low>=14))&&(a.$high<0||(a.$high===0&&a.$low<=31))){return false;}else if((a.$high>0||(a.$high===0&&a.$low>=127))&&(a.$high<0||(a.$high===0&&a.$low<=159))){return false;}return true;};$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=D.$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=E.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$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;}H=F("&");I=F("<");J=F(">");K=F(""");}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/ast"]=(function(){var $pkg={},$init,A,B,C,D,E,M,P,Q,R,S,T,U,G,H,I,J,K,L,F,O;A=$packages["github.com/88250/lute/util"];B=$packages["strconv"];C=$pkg.Node=$newType(0,$kindStruct,"ast.Node",true,"github.com/88250/lute/ast",true,function(Type_,Parent_,Previous_,Next_,FirstChild_,LastChild_,Tokens_,Close_,LastLineBlank_,LastLineChecked_,CodeMarkerLen_,IsFencedCodeBlock_,CodeBlockFenceChar_,CodeBlockFenceLen_,CodeBlockFenceOffset_,CodeBlockOpenFence_,CodeBlockInfo_,CodeBlockCloseFence_,HtmlBlockType_,ListData_,TaskListItemChecked_,TableAligns_,TableCellAlign_,TableCellContentWidth_,TableCellContentMaxWidth_,TableCellContent_,TableCellMaxWidthContent_,LinkType_,LinkRefLabel_,HeadingLevel_,HeadingSetext_,HeadingID_,MathBlockDollarOffset_,FootnotesRefLabel_,FootnotesRefId_,FootnotesRefs_){this.$val=this;if(arguments.length===0){this.Type=0;this.Parent=P.nil;this.Previous=P.nil;this.Next=P.nil;this.FirstChild=P.nil;this.LastChild=P.nil;this.Tokens=R.nil;this.Close=false;this.LastLineBlank=false;this.LastLineChecked=false;this.CodeMarkerLen=0;this.IsFencedCodeBlock=false;this.CodeBlockFenceChar=0;this.CodeBlockFenceLen=0;this.CodeBlockFenceOffset=0;this.CodeBlockOpenFence=R.nil;this.CodeBlockInfo=R.nil;this.CodeBlockCloseFence=R.nil;this.HtmlBlockType=0;this.ListData=S.nil;this.TaskListItemChecked=false;this.TableAligns=T.nil;this.TableCellAlign=0;this.TableCellContentWidth=0;this.TableCellContentMaxWidth=0;this.TableCellContent=R.nil;this.TableCellMaxWidthContent=R.nil;this.LinkType=0;this.LinkRefLabel=R.nil;this.HeadingLevel=0;this.HeadingSetext=false;this.HeadingID=R.nil;this.MathBlockDollarOffset=0;this.FootnotesRefLabel=R.nil;this.FootnotesRefId="";this.FootnotesRefs=Q.nil;return;}this.Type=Type_;this.Parent=Parent_;this.Previous=Previous_;this.Next=Next_;this.FirstChild=FirstChild_;this.LastChild=LastChild_;this.Tokens=Tokens_;this.Close=Close_;this.LastLineBlank=LastLineBlank_;this.LastLineChecked=LastLineChecked_;this.CodeMarkerLen=CodeMarkerLen_;this.IsFencedCodeBlock=IsFencedCodeBlock_;this.CodeBlockFenceChar=CodeBlockFenceChar_;this.CodeBlockFenceLen=CodeBlockFenceLen_;this.CodeBlockFenceOffset=CodeBlockFenceOffset_;this.CodeBlockOpenFence=CodeBlockOpenFence_;this.CodeBlockInfo=CodeBlockInfo_;this.CodeBlockCloseFence=CodeBlockCloseFence_;this.HtmlBlockType=HtmlBlockType_;this.ListData=ListData_;this.TaskListItemChecked=TaskListItemChecked_;this.TableAligns=TableAligns_;this.TableCellAlign=TableCellAlign_;this.TableCellContentWidth=TableCellContentWidth_;this.TableCellContentMaxWidth=TableCellContentMaxWidth_;this.TableCellContent=TableCellContent_;this.TableCellMaxWidthContent=TableCellMaxWidthContent_;this.LinkType=LinkType_;this.LinkRefLabel=LinkRefLabel_;this.HeadingLevel=HeadingLevel_;this.HeadingSetext=HeadingSetext_;this.HeadingID=HeadingID_;this.MathBlockDollarOffset=MathBlockDollarOffset_;this.FootnotesRefLabel=FootnotesRefLabel_;this.FootnotesRefId=FootnotesRefId_;this.FootnotesRefs=FootnotesRefs_;});D=$pkg.ListData=$newType(0,$kindStruct,"ast.ListData",true,"github.com/88250/lute/ast",true,function(Typ_,Tight_,BulletChar_,Start_,Delimiter_,Padding_,MarkerOffset_,Checked_,Marker_,Num_){this.$val=this;if(arguments.length===0){this.Typ=0;this.Tight=false;this.BulletChar=0;this.Start=0;this.Delimiter=0;this.Padding=0;this.MarkerOffset=0;this.Checked=false;this.Marker=R.nil;this.Num=0;return;}this.Typ=Typ_;this.Tight=Tight_;this.BulletChar=BulletChar_;this.Start=Start_;this.Delimiter=Delimiter_;this.Padding=Padding_;this.MarkerOffset=MarkerOffset_;this.Checked=Checked_;this.Marker=Marker_;this.Num=Num_;});E=$pkg.NodeType=$newType(4,$kindInt,"ast.NodeType",true,"github.com/88250/lute/ast",true,null);M=$pkg.WalkStatus=$newType(4,$kindInt,"ast.WalkStatus",true,"github.com/88250/lute/ast",true,null);P=$ptrType(C);Q=$sliceType(P);R=$sliceType($Uint8);S=$ptrType(D);T=$sliceType($Int);U=$sliceType(E);C.ptr.prototype.TokensStr=function(){var b;b=this;return A.BytesToStr(b.Tokens);};C.prototype.TokensStr=function(){return this.$val.TokensStr();};C.ptr.prototype.LastDeepestChild=function(){var b,c;b=P.nil;c=this;if(P.nil===c.LastChild){b=c;return b;}b=c.LastChild.LastDeepestChild();return b;};C.prototype.LastDeepestChild=function(){return this.$val.LastDeepestChild();};C.ptr.prototype.FirstDeepestChild=function(){var b,c;b=P.nil;c=this;if(P.nil===c.FirstChild){b=c;return b;}b=c.FirstChild.FirstDeepestChild();return b;};C.prototype.FirstDeepestChild=function(){return this.$val.FirstDeepestChild();};C.ptr.prototype.ChildByType=function(b){var b,c,d;c=this;d=c.FirstChild;while(true){if(!(!(P.nil===d))){break;}if(d.Type===b){return d;}d=d.Next;}return P.nil;};C.prototype.ChildByType=function(b){return this.$val.ChildByType(b);};C.ptr.prototype.Text=function(){var b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;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=O(c,(function(b){return function(d,e){var d,e;if(((16===d.Type)||(40===d.Type))&&e){b[0]=b[0]+(A.BytesToStr(d.Tokens));}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:C.ptr.prototype.Text};}$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};C.prototype.Text=function(){return this.$val.Text();};C.ptr.prototype.NextNodeText=function(){var b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(P.nil===b.Next){$s=-1;return"";}c=b.Next.Text();$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:C.ptr.prototype.NextNodeText};}$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};C.prototype.NextNodeText=function(){return this.$val.NextNodeText();};C.ptr.prototype.PreviousNodeText=function(){var b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(P.nil===b.Previous){$s=-1;return"";}c=b.Previous.Text();$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:C.ptr.prototype.PreviousNodeText};}$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};C.prototype.PreviousNodeText=function(){return this.$val.PreviousNodeText();};C.ptr.prototype.Unlink=function(){var b;b=this;if(!(P.nil===b.Previous)){b.Previous.Next=b.Next;}else if(!(P.nil===b.Parent)){b.Parent.FirstChild=b.Next;}if(!(P.nil===b.Next)){b.Next.Previous=b.Previous;}else if(!(P.nil===b.Parent)){b.Parent.LastChild=b.Previous;}b.Parent=P.nil;b.Next=P.nil;b.Previous=P.nil;};C.prototype.Unlink=function(){return this.$val.Unlink();};C.ptr.prototype.AppendTokens=function(b){var b,c;c=this;c.Tokens=$appendSlice(c.Tokens,b);};C.prototype.AppendTokens=function(b){return this.$val.AppendTokens(b);};C.ptr.prototype.InsertAfter=function(b){var b,c;c=this;b.Unlink();b.Next=c.Next;if(!(P.nil===b.Next)){b.Next.Previous=b;}b.Previous=c;c.Next=b;b.Parent=c.Parent;if(P.nil===b.Next&&!(P.nil===b.Parent.LastChild)){b.Parent.LastChild=b;}};C.prototype.InsertAfter=function(b){return this.$val.InsertAfter(b);};C.ptr.prototype.InsertBefore=function(b){var b,c;c=this;b.Unlink();b.Previous=c.Previous;if(!(P.nil===b.Previous)){b.Previous.Next=b;}b.Next=c;c.Previous=b;b.Parent=c.Parent;if(P.nil===b.Previous){b.Parent.FirstChild=b;}};C.prototype.InsertBefore=function(b){return this.$val.InsertBefore(b);};C.ptr.prototype.AppendChild=function(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(P.nil===c.LastChild)){c.LastChild.Next=b;b.Previous=c.LastChild;c.LastChild=b;}else{c.FirstChild=b;c.LastChild=b;}};C.prototype.AppendChild=function(b){return this.$val.AppendChild(b);};C.ptr.prototype.PrependChild=function(b){var b,c;c=this;b.Unlink();b.Parent=c;if(!(P.nil===c.FirstChild)){c.FirstChild.Previous=b;b.Next=c.FirstChild;c.FirstChild=b;}else{c.FirstChild=b;c.LastChild=b;}};C.prototype.PrependChild=function(b){return this.$val.PrependChild(b);};C.ptr.prototype.List=function(){var b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=[b];b[0]=Q.nil;c=this;b[0]=$makeSlice(Q,0,512);$r=O(c,(function(b){return function(d,e){var d,e;if(e){b[0]=$append(b[0],d);}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:C.ptr.prototype.List};}$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};C.prototype.List=function(){return this.$val.List();};C.ptr.prototype.ParentIs=function(b,c){var b,c,d,e,f,g,h,i;d=this;e=$append(c,b);f=d.Parent;while(true){if(!(!(P.nil===f))){break;}g=e;h=0;while(true){if(!(h=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+h]);if(i===f.Type){return true;}h++;}f=f.Parent;}return false;};C.prototype.ParentIs=function(b,c){return this.$val.ParentIs(b,c);};C.ptr.prototype.AcceptLines=function(){var b,c;b=this;c=b.Type;if((c===(1))||(c===(11))||(c===(9))||(c===(106))||(c===(300))){return true;}return false;};C.prototype.AcceptLines=function(){return this.$val.AcceptLines();};C.ptr.prototype.CanContain=function(b){var b,c,d;c=this;d=c.Type;if((d===(11))||(d===(9))||(d===(1))||(d===(4))||(d===(106))||(d===(300))){return false;}else if(d===(7)){return 8===b;}else if(d===(500)){return!((500===b));}return!((8===b));};C.prototype.CanContain=function(b){return this.$val.CanContain(b);};F=function(b){var b,c;c=0;while(true){if(!(c<1024)){break;}if(b===new E(c).String()){return c;}c=c+(1)>>0;}return-1;};$pkg.Str2NodeType=F;E.prototype.String=function(){var b,c,d,e,f,g,h;b=this.$val;if(0<=b&&b<=43){return $substring("NodeDocumentNodeParagraphNodeHeadingNodeHeadingC8hMarkerNodeThematicBreakNodeBlockquoteNodeBlockquoteMarkerNodeListNodeListItemNodeHTMLBlockNodeInlineHTMLNodeCodeBlockNodeCodeBlockFenceOpenMarkerNodeCodeBlockFenceCloseMarkerNodeCodeBlockFenceInfoMarkerNodeCodeBlockCodeNodeTextNodeEmphasisNodeEmA6kOpenMarkerNodeEmA6kCloseMarkerNodeEmU8eOpenMarkerNodeEmU8eCloseMarkerNodeStrongNodeStrongA6kOpenMarkerNodeStrongA6kCloseMarkerNodeStrongU8eOpenMarkerNodeStrongU8eCloseMarkerNodeCodeSpanNodeCodeSpanOpenMarkerNodeCodeSpanContentNodeCodeSpanCloseMarkerNodeHardBreakNodeSoftBreakNodeLinkNodeImageNodeBangNodeOpenBracketNodeCloseBracketNodeOpenParenNodeCloseParenNodeLinkTextNodeLinkDestNodeLinkTitleNodeLinkSpace",((b<0||b>=G.length)?($throwRuntimeError("index out of range"),undefined):G[b]),(c=b+1>>0,((c<0||c>=G.length)?($throwRuntimeError("index out of range"),undefined):G[c])));}else if(100<=b&&b<=109){b=b-(100)>>0;return $substring("NodeTaskListItemMarkerNodeStrikethroughNodeStrikethrough1OpenMarkerNodeStrikethrough1CloseMarkerNodeStrikethrough2OpenMarkerNodeStrikethrough2CloseMarkerNodeTableNodeTableHeadNodeTableRowNodeTableCell",((b<0||b>=H.length)?($throwRuntimeError("index out of range"),undefined):H[b]),(d=b+1>>0,((d<0||d>=H.length)?($throwRuntimeError("index out of range"),undefined):H[d])));}else if(200<=b&&b<=203){b=b-(200)>>0;return $substring("NodeEmojiNodeEmojiUnicodeNodeEmojiImgNodeEmojiAlias",((b<0||b>=I.length)?($throwRuntimeError("index out of range"),undefined):I[b]),(e=b+1>>0,((e<0||e>=I.length)?($throwRuntimeError("index out of range"),undefined):I[e])));}else if(300<=b&&b<=307){b=b-(300)>>0;return $substring("NodeMathBlockNodeMathBlockOpenMarkerNodeMathBlockContentNodeMathBlockCloseMarkerNodeInlineMathNodeInlineMathOpenMarkerNodeInlineMathContentNodeInlineMathCloseMarker",((b<0||b>=J.length)?($throwRuntimeError("index out of range"),undefined):J[b]),(f=b+1>>0,((f<0||f>=J.length)?($throwRuntimeError("index out of range"),undefined):J[f])));}else if(400<=b&&b<=401){b=b-(400)>>0;return $substring("NodeBackslashNodeBackslashContent",((b<0||b>=K.length)?($throwRuntimeError("index out of range"),undefined):K[b]),(g=b+1>>0,((g<0||g>=K.length)?($throwRuntimeError("index out of range"),undefined):K[g])));}else if(500<=b&&b<=501){b=b-(500)>>0;return $substring("NodeFootnotesDefNodeFootnotesRef",((b<0||b>=L.length)?($throwRuntimeError("index out of range"),undefined):L[b]),(h=b+1>>0,((h<0||h>=L.length)?($throwRuntimeError("index out of range"),undefined):L[h])));}else if((b===600)){return"NodeToC";}else if((b===1024)){return"NodeTypeMaxVal";}else{return"NodeType("+B.FormatInt((new $Int64(0,b)),10)+")";}};$ptrType(E).prototype.String=function(){return new E(this.$get()).String();};O=function(b,c){var b,c,d,e,f,g,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;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:d=0;e=c(b,true);$s=1;case 1:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;if(d===0){$s=-1;return;}if(!((d===1))){$s=2;continue;}$s=3;continue;case 2:f=b.FirstChild;case 4:if(!(!(P.nil===f))){$s=5;continue;}$r=O(f,c);$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}f=f.Next;$s=4;continue;case 5:case 3:g=c(b,false);$s=7;case 7:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}d=g;$s=-1;return;}return;}if($f===undefined){$f={$blk:O};}$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.Walk=O;P.methods=[{prop:"TokensStr",name:"TokensStr",pkg:"",typ:$funcType([],[$String],false)},{prop:"LastDeepestChild",name:"LastDeepestChild",pkg:"",typ:$funcType([],[P],false)},{prop:"FirstDeepestChild",name:"FirstDeepestChild",pkg:"",typ:$funcType([],[P],false)},{prop:"ChildByType",name:"ChildByType",pkg:"",typ:$funcType([E],[P],false)},{prop:"Text",name:"Text",pkg:"",typ:$funcType([],[$String],false)},{prop:"NextNodeText",name:"NextNodeText",pkg:"",typ:$funcType([],[$String],false)},{prop:"PreviousNodeText",name:"PreviousNodeText",pkg:"",typ:$funcType([],[$String],false)},{prop:"Unlink",name:"Unlink",pkg:"",typ:$funcType([],[],false)},{prop:"AppendTokens",name:"AppendTokens",pkg:"",typ:$funcType([R],[],false)},{prop:"InsertAfter",name:"InsertAfter",pkg:"",typ:$funcType([P],[],false)},{prop:"InsertBefore",name:"InsertBefore",pkg:"",typ:$funcType([P],[],false)},{prop:"AppendChild",name:"AppendChild",pkg:"",typ:$funcType([P],[],false)},{prop:"PrependChild",name:"PrependChild",pkg:"",typ:$funcType([P],[],false)},{prop:"List",name:"List",pkg:"",typ:$funcType([],[Q],false)},{prop:"ParentIs",name:"ParentIs",pkg:"",typ:$funcType([E,U],[$Bool],true)},{prop:"AcceptLines",name:"AcceptLines",pkg:"",typ:$funcType([],[$Bool],false)},{prop:"CanContain",name:"CanContain",pkg:"",typ:$funcType([E],[$Bool],false)}];E.methods=[{prop:"String",name:"String",pkg:"",typ:$funcType([],[$String],false)}];C.init("",[{prop:"Type",name:"Type",embedded:false,exported:true,typ:E,tag:""},{prop:"Parent",name:"Parent",embedded:false,exported:true,typ:P,tag:""},{prop:"Previous",name:"Previous",embedded:false,exported:true,typ:P,tag:""},{prop:"Next",name:"Next",embedded:false,exported:true,typ:P,tag:""},{prop:"FirstChild",name:"FirstChild",embedded:false,exported:true,typ:P,tag:""},{prop:"LastChild",name:"LastChild",embedded:false,exported:true,typ:P,tag:""},{prop:"Tokens",name:"Tokens",embedded:false,exported:true,typ:R,tag:""},{prop:"Close",name:"Close",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"LastLineBlank",name:"LastLineBlank",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"LastLineChecked",name:"LastLineChecked",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeMarkerLen",name:"CodeMarkerLen",embedded:false,exported:true,typ:$Int,tag:""},{prop:"IsFencedCodeBlock",name:"IsFencedCodeBlock",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"CodeBlockFenceChar",name:"CodeBlockFenceChar",embedded:false,exported:true,typ:$Uint8,tag:""},{prop:"CodeBlockFenceLen",name:"CodeBlockFenceLen",embedded:false,exported:true,typ:$Int,tag:""},{prop:"CodeBlockFenceOffset",name:"CodeBlockFenceOffset",embedded:false,exported:true,typ:$Int,tag:""},{prop:"CodeBlockOpenFence",name:"CodeBlockOpenFence",embedded:false,exported:true,typ:R,tag:""},{prop:"CodeBlockInfo",name:"CodeBlockInfo",embedded:false,exported:true,typ:R,tag:""},{prop:"CodeBlockCloseFence",name:"CodeBlockCloseFence",embedded:false,exported:true,typ:R,tag:""},{prop:"HtmlBlockType",name:"HtmlBlockType",embedded:false,exported:true,typ:$Int,tag:""},{prop:"ListData",name:"ListData",embedded:true,exported:true,typ:S,tag:""},{prop:"TaskListItemChecked",name:"TaskListItemChecked",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"TableAligns",name:"TableAligns",embedded:false,exported:true,typ:T,tag:""},{prop:"TableCellAlign",name:"TableCellAlign",embedded:false,exported:true,typ:$Int,tag:""},{prop:"TableCellContentWidth",name:"TableCellContentWidth",embedded:false,exported:true,typ:$Int,tag:""},{prop:"TableCellContentMaxWidth",name:"TableCellContentMaxWidth",embedded:false,exported:true,typ:$Int,tag:""},{prop:"TableCellContent",name:"TableCellContent",embedded:false,exported:true,typ:R,tag:""},{prop:"TableCellMaxWidthContent",name:"TableCellMaxWidthContent",embedded:false,exported:true,typ:R,tag:""},{prop:"LinkType",name:"LinkType",embedded:false,exported:true,typ:$Int,tag:""},{prop:"LinkRefLabel",name:"LinkRefLabel",embedded:false,exported:true,typ:R,tag:""},{prop:"HeadingLevel",name:"HeadingLevel",embedded:false,exported:true,typ:$Int,tag:""},{prop:"HeadingSetext",name:"HeadingSetext",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"HeadingID",name:"HeadingID",embedded:false,exported:true,typ:R,tag:""},{prop:"MathBlockDollarOffset",name:"MathBlockDollarOffset",embedded:false,exported:true,typ:$Int,tag:""},{prop:"FootnotesRefLabel",name:"FootnotesRefLabel",embedded:false,exported:true,typ:R,tag:""},{prop:"FootnotesRefId",name:"FootnotesRefId",embedded:false,exported:true,typ:$String,tag:""},{prop:"FootnotesRefs",name:"FootnotesRefs",embedded:false,exported:true,typ:Q,tag:""}]);D.init("",[{prop:"Typ",name:"Typ",embedded:false,exported:true,typ:$Int,tag:""},{prop:"Tight",name:"Tight",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"BulletChar",name:"BulletChar",embedded:false,exported:true,typ:$Uint8,tag:""},{prop:"Start",name:"Start",embedded:false,exported:true,typ:$Int,tag:""},{prop:"Delimiter",name:"Delimiter",embedded:false,exported:true,typ:$Uint8,tag:""},{prop:"Padding",name:"Padding",embedded:false,exported:true,typ:$Int,tag:""},{prop:"MarkerOffset",name:"MarkerOffset",embedded:false,exported:true,typ:$Int,tag:""},{prop:"Checked",name:"Checked",embedded:false,exported:true,typ:$Bool,tag:""},{prop:"Marker",name:"Marker",embedded:false,exported:true,typ:R,tag:""},{prop:"Num",name:"Num",embedded:false,exported:true,typ:$Int,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=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;}G=$toNativeArray($kindUint16,[0,12,25,36,56,73,87,107,115,127,140,154,167,195,224,252,269,277,289,308,328,347,367,377,400,424,447,471,483,505,524,547,560,573,581,590,598,613,629,642,656,668,680,693,706]);H=$toNativeArray($kindUint8,[0,22,39,67,96,124,153,162,175,187,200]);I=$toNativeArray($kindUint8,[0,9,25,37,51]);J=$toNativeArray($kindUint8,[0,13,36,56,80,94,118,139,164]);K=$toNativeArray($kindUint8,[0,13,33]);L=$toNativeArray($kindUint8,[0,16,32]);}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,C,I,D,E,H,F,G,B,P,W,AW,AX,AY,AZ,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,J,K,L,N,Q,U,X,Z,AB,AF,AG,AH,AI,AJ,AK,AL,AN,BA,O,R,S,T,V,Y,AA,AC,AD,AE,AM,AO,AP,AQ,AR,AS,AT,AU,AV;A=$packages["bytes"];C=$packages["github.com/88250/lute/ast"];I=$packages["github.com/88250/lute/html"];D=$packages["github.com/88250/lute/lex"];E=$packages["github.com/88250/lute/util"];H=$packages["strconv"];F=$packages["strings"];G=$packages["unicode"];B=$packages["unicode/utf8"];P=$pkg.blockStartFunc=$newType(4,$kindFunc,"parse.blockStartFunc",true,"github.com/88250/lute/parse",false,null);W=$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=BE.nil;this.typ=0;this.num=0;this.originalNum=0;this.canOpen=false;this.canClose=false;this.previous=BJ.nil;this.next=BJ.nil;this.active=false;this.image=false;this.bracketAfter=false;this.index=0;this.previousDelimiter=BJ.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_;});AW=$pkg.Context=$newType(0,$kindStruct,"parse.Context",true,"github.com/88250/lute/parse",true,function(Tree_,Option_,LinkRefDefs_,FootnotesDefs_,Tip_,oldtip_,currentLine_,currentLineLen_,lineNum_,offset_,column_,nextNonspace_,nextNonspaceColumn_,indent_,indented_,blank_,partiallyConsumedTab_,allClosed_,lastMatchedContainer_){this.$val=this;if(arguments.length===0){this.Tree=BK.nil;this.Option=BO.nil;this.LinkRefDefs=false;this.FootnotesDefs=BH.nil;this.Tip=BE.nil;this.oldtip=BE.nil;this.currentLine=BB.nil;this.currentLineLen=0;this.lineNum=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=BE.nil;return;}this.Tree=Tree_;this.Option=Option_;this.LinkRefDefs=LinkRefDefs_;this.FootnotesDefs=FootnotesDefs_;this.Tip=Tip_;this.oldtip=oldtip_;this.currentLine=currentLine_;this.currentLineLen=currentLineLen_;this.lineNum=lineNum_;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_;});AX=$pkg.InlineContext=$newType(0,$kindStruct,"parse.InlineContext",true,"github.com/88250/lute/parse",true,function(tokens_,tokensLen_,pos_,lineNum_,columnNum_,delimiters_,brackets_){this.$val=this;if(arguments.length===0){this.tokens=BB.nil;this.tokensLen=0;this.pos=0;this.lineNum=0;this.columnNum=0;this.delimiters=BJ.nil;this.brackets=BJ.nil;return;}this.tokens=tokens_;this.tokensLen=tokensLen_;this.pos=pos_;this.lineNum=lineNum_;this.columnNum=columnNum_;this.delimiters=delimiters_;this.brackets=brackets_;});AY=$pkg.Tree=$newType(0,$kindStruct,"parse.Tree",true,"github.com/88250/lute/parse",true,function(Name_,Root_,Context_,lexer_,inlineContext_){this.$val=this;if(arguments.length===0){this.Name="";this.Root=BE.nil;this.Context=BL.nil;this.lexer=BM.nil;this.inlineContext=BN.nil;return;}this.Name=Name_;this.Root=Root_;this.Context=Context_;this.lexer=lexer_;this.inlineContext=inlineContext_;});AZ=$pkg.Options=$newType(0,$kindStruct,"parse.Options",true,"github.com/88250/lute/parse",true,function(GFMTable_,GFMTaskListItem_,GFMTaskListItemClass_,GFMStrikethrough_,GFMAutoLink_,SoftBreak2HardBreak_,CodeSyntaxHighlight_,CodeSyntaxHighlightDetectLang_,CodeSyntaxHighlightInlineStyle_,CodeSyntaxHighlightLineNum_,CodeSyntaxHighlightStyleName_,Footnotes_,ToC_,HeadingID_,AutoSpace_,FixTermTypo_,ChinesePunct_,Emoji_,AliasEmoji_,EmojiAlias_,EmojiSite_,HeadingAnchor_,Terms_,VditorWYSIWYG_,VditorIR_,InlineMathAllowDigitAfterOpenMarker_,LinkBase_){this.$val=this;if(arguments.length===0){this.GFMTable=false;this.GFMTaskListItem=false;this.GFMTaskListItemClass="";this.GFMStrikethrough=false;this.GFMAutoLink=false;this.SoftBreak2HardBreak=false;this.CodeSyntaxHighlight=false;this.CodeSyntaxHighlightDetectLang=false;this.CodeSyntaxHighlightInlineStyle=false;this.CodeSyntaxHighlightLineNum=false;this.CodeSyntaxHighlightStyleName="";this.Footnotes=false;this.ToC=false;this.HeadingID=false;this.AutoSpace=false;this.FixTermTypo=false;this.ChinesePunct=false;this.Emoji=false;this.AliasEmoji=false;this.EmojiAlias=false;this.EmojiSite="";this.HeadingAnchor=false;this.Terms=false;this.VditorWYSIWYG=false;this.VditorIR=false;this.InlineMathAllowDigitAfterOpenMarker=false;this.LinkBase="";return;}this.GFMTable=GFMTable_;this.GFMTaskListItem=GFMTaskListItem_;this.GFMTaskListItemClass=GFMTaskListItemClass_;this.GFMStrikethrough=GFMStrikethrough_;this.GFMAutoLink=GFMAutoLink_;this.SoftBreak2HardBreak=SoftBreak2HardBreak_;this.CodeSyntaxHighlight=CodeSyntaxHighlight_;this.CodeSyntaxHighlightDetectLang=CodeSyntaxHighlightDetectLang_;this.CodeSyntaxHighlightInlineStyle=CodeSyntaxHighlightInlineStyle_;this.CodeSyntaxHighlightLineNum=CodeSyntaxHighlightLineNum_;this.CodeSyntaxHighlightStyleName=CodeSyntaxHighlightStyleName_;this.Footnotes=Footnotes_;this.ToC=ToC_;this.HeadingID=HeadingID_;this.AutoSpace=AutoSpace_;this.FixTermTypo=FixTermTypo_;this.ChinesePunct=ChinesePunct_;this.Emoji=Emoji_;this.AliasEmoji=AliasEmoji_;this.EmojiAlias=EmojiAlias_;this.EmojiSite=EmojiSite_;this.HeadingAnchor=HeadingAnchor_;this.Terms=Terms_;this.VditorWYSIWYG=VditorWYSIWYG_;this.VditorIR=VditorIR_;this.InlineMathAllowDigitAfterOpenMarker=InlineMathAllowDigitAfterOpenMarker_;this.LinkBase=LinkBase_;});BB=$sliceType($Uint8);BC=$sliceType(BB);BD=$sliceType(P);BE=$ptrType(C.Node);BF=$ptrType(C.ListData);BG=$sliceType($Int);BH=$sliceType(BE);BI=$sliceType($Int32);BJ=$ptrType(W);BK=$ptrType(AY);BL=$ptrType(AW);BM=$ptrType(D.Lexer);BN=$ptrType(AX);BO=$ptrType(AZ);BP=$sliceType(BH);BQ=$mapType($String,BE);BR=$mapType($String,$String);AY.ptr.prototype.parseGFMAutoEmailLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BE.nil===c))){break;}d=c.Next;if((16===c.Type)&&!(BE.nil===c.Parent)&&!((33===c.Parent.Type))){b.parseGFMAutoEmailLink0(c);}else{b.parseGFMAutoEmailLink(c);}c=d;}};AY.prototype.parseGFMAutoEmailLink=function(a){return this.$val.parseGFMAutoEmailLink(a);};AY.ptr.prototype.parseGFMAutoLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BE.nil===c))){break;}d=c.Next;if(16===c.Type){b.parseGFMAutoLink0(c);}else{b.parseGFMAutoLink(c);}c=d;}};AY.prototype.parseGFMAutoLink=function(a){return this.$val.parseGFMAutoLink(a);};AY.ptr.prototype.parseGFMAutoEmailLink0=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;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(!D.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){o=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,new BB([((i<0||i>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+i])]),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.InsertBefore(o);h=h+(1)>>0;continue;}h=i;if(0>=k){p=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,n,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.InsertBefore(p);continue;}j=0;while(true){if(!(j=n.$length)?($throwRuntimeError("index out of range"),undefined):n.$array[n.$offset+j]);if(!b.isValidEmailSegment1(l)){q=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,n,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.InsertBefore(q);continue loopPart;}j=j+(1)>>0;}j=j+(1)>>0;r=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)){s=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,n,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.InsertBefore(s);continue loopPart;}j=j+(1)>>0;}if(46===l){t=n.$length-1>>0;n=$subslice(n,0,t);u=b.newLink(33,n,$appendSlice(J,n),BB.nil,2);a.InsertBefore(u);a.InsertBefore(new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,new BB([r]),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));}else if((45===l)||(95===l)){v=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,n,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.InsertBefore(v);continue loopPart;}else{w=new C.Node.ptr(33,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,2,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);x=new C.Node.ptr(40,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,n,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);w.AppendChild(x);y=new C.Node.ptr(41,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,$appendSlice(J,n),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);w.AppendChild(y);a.InsertBefore(w);}}a.Unlink();return;};AY.prototype.parseGFMAutoEmailLink0=function(a){return this.$val.parseGFMAutoEmailLink0(a);};AY.ptr.prototype.isValidEmailSegment1=function(a){var a,b;b=this;return D.IsASCIILetterNumHyphen(a)||(46===a)||(43===a)||(95===a);};AY.prototype.isValidEmailSegment1=function(a){return this.$val.isValidEmailSegment1(a);};AY.ptr.prototype.isValidEmailSegment2=function(a){var a,b;b=this;return D.IsASCIILetterNumHyphen(a)||(46===a)||(95===a);};AY.prototype.isValidEmailSegment2=function(a){return this.$val.isValidEmailSegment2(a);};AY.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,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=BB.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((D.IsWhitespace(p)||(60===p))||(!D.IsASCIIPunct(p)&&!D.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;}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);if(!b.isValidDomain(aq)){a.InsertBefore(new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,$subslice(c,n,i),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));r=true;n=i;o=i;continue;}ar=0;as=0;at=ar;au=as;av=$subslice(ap,k);aw=av.$length;if(0=av.$length)?($throwRuntimeError("index out of range"),undefined):av.$array[av.$offset+ax]);if(40===p){at=at+(1)>>0;}else if(41===p){au=au+(1)>>0;}ax=ax+(1)>>0;}ay=false;ba=(az=aw-1>>0,((az<0||az>=av.$length)?($throwRuntimeError("index out of range"),undefined):av.$array[av.$offset+az]));if(41===ba){bb=au-at>>0;if(0>0;while(true){if(!(0=av.$length)?($throwRuntimeError("index out of range"),undefined):av.$array[av.$offset+ax]);if(!((41===p))){break;}bb=bb-(1)>>0;i=i-(1)>>0;ax=ax-(1)>>0;}av=$subslice(av,0,(ax+1>>0));ay=true;}else{ay=true;}}else if(59===ba){bc=false;ax=aw-1>>0;while(true){if(!(0<=ax)){break;}p=((ax<0||ax>=av.$length)?($throwRuntimeError("index out of range"),undefined):av.$array[av.$offset+ax]);if(38===p){bc=true;break;}ax=ax-(1)>>0;}if(bc){bd=$subslice(av,ax,aw);if(3<=bd.$length){be=true;j=1;while(true){if(!(j<(bd.$length-1>>0))){break;}if(!D.IsASCIILetterNum(((j<0||j>=bd.$length)?($throwRuntimeError("index out of range"),undefined):bd.$array[bd.$offset+j]))){be=false;break;}j=j+(1)>>0;}if(be){av=$subslice(av,0,ax);ay=true;i=i-((aw-ax>>0))>>0;}}}}if(!ay&&D.IsASCIIPunct(ba)&&!((47===ba))&&!((125===ba))&&!((123===ba))){av=$subslice(av,0,(aw-1>>0));i=i-(1)>>0;}}else{aw=aq.$length;bg=(bf=aw-1>>0,((bf<0||bf>=aq.$length)?($throwRuntimeError("index out of range"),undefined):aq.$array[aq.$offset+bf]));if(D.IsASCIIPunct(bg)){aq=$subslice(aq,0,(aw-1>>0));i=i-(1)>>0;}}bh=$appendSlice(s,aq);bh=$appendSlice(bh,av);bi=BB.nil;if(!q){bi=$appendSlice(bi,s);}bi=$appendSlice(bi,aq);bi=$appendSlice(bi,av);bj=b.newLink(33,bi,E.EncodeDestination(bh),BB.nil,2);a.InsertBefore(bj);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(!D.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=0;while(true){if(!(k=L.$length)?($throwRuntimeError("index out of range"),undefined):L.$array[L.$offset+k]))){j=true;break;}k=k+(1)>>0;}if(!j){return false;}}f=f+(1)>>0;}return true;};AY.prototype.isValidDomain=function(a){return this.$val.isValidDomain(a);};AY.ptr.prototype.parseAutoEmailLink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BE.nil;c=this;d=$subslice(a.tokens,1);e=BB.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(!D.IsASCIILetterNumHyphen(f)&&!A.Contains(N,new BB([f]))){b=BE.nil;return b;}i=i+(1)>>0;}if(1>i||!j){b=BE.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(!D.IsASCIILetterNumHyphen(f)&&!((46===f))){b=BE.nil;return b;}if(63>0;}if(1>i||!l){b=BE.nil;return b;}a.pos=a.pos+((h+1>>0))>>0;b=c.newLink(33,e,$appendSlice(J,e),BB.nil,2);return b;};AY.prototype.parseAutoEmailLink=function(a){return this.$val.parseAutoEmailLink(a);};AY.ptr.prototype.newLink=function(a,b,c,d,e){var a,b,c,d,e,f,g;f=BE.nil;g=this;f=new C.Node.ptr(a,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,e,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);if(34===a){f.AppendChild(new C.Node.ptr(35,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));}f.AppendChild(new C.Node.ptr(36,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));f.AppendChild(new C.Node.ptr(40,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,b,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));f.AppendChild(new C.Node.ptr(37,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));f.AppendChild(new C.Node.ptr(38,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));f.AppendChild(new C.Node.ptr(41,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,c,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));if(!(BB.nil===d)){f.AppendChild(new C.Node.ptr(42,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,d,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));}f.AppendChild(new C.Node.ptr(39,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));if(1===e){f.LinkRefLabel=b;}return f;};AY.prototype.newLink=function(a,b,c,d,e){return this.$val.newLink(a,b,c,d,e);};AY.ptr.prototype.parseAutolink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BE.nil;c=this;d=false;e="";f=BB.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=BE.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=BE.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=BE.nil;return b;}a.pos=1+h>>0;b=c.newLink(33,f,E.EncodeDestination(f),BB.nil,2);return b;};AY.prototype.parseAutolink=function(a){return this.$val.parseAutolink(a);};O=function(a,b){var a,b,c,d;c=b.currentLine;if(!b.indented&&(D.Peek(c,b.nextNonspace)===62)){b.advanceNextNonspace();b.advanceOffset(1,false);d=D.Peek(c,b.offset);if((32===d)||(9===d)){b.advanceOffset(1,true);}return 0;}return 1;};$pkg.BlockquoteContinue=O;AY.ptr.prototype.parseBlocks=function(){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=this;a.Context.Tip=a.Root;a.Context.LinkRefDefs=$makeMap($String.keyFor,[]);a.Context.FootnotesDefs=new BH([]);b=0;c=a.lexer.NextLine();case 1:if(!(!(BB.nil===c))){$s=2;continue;}if(a.Context.Option.VditorWYSIWYG){d=(new BI($stringToRunes(($bytesToString(c)))));if(4=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])<<24>>>24)))&&((12289===(1>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+1]))||(65289===(1>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+1])))){c=(new BB($stringToBytes(($encodeRune((0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0])))+". "+($runesToString($subslice(d,2))))));}}$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(!(!(BE.nil===a.Context.Tip))){$s=5;continue;}$r=a.Context.finalize(a.Context.Tip,b);$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:AY.ptr.prototype.parseBlocks};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};AY.prototype.parseBlocks=function(){return this.$val.parseBlocks();};AY.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,$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;$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.lineNum=b.Context.lineNum+(1)>>0;b.Context.currentLine=a;b.Context.currentLineLen=b.Context.currentLine.$length;c=true;d=BE.nil;d=b.Root;e=d.LastChild;case 1:if(!(!(BE.nil===e)&&!e.Close)){$s=2;continue;}d=e;b.Context.findNextNonspace();f=R(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;}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;h=!((d.Type===1))&&d.AcceptLines();i=Q.$length;case 5:if(!(!h)){$s=6;continue;}b.Context.findNextNonspace();l=(j=b.Context.currentLine,k=b.Context.nextNonspace,((k<0||k>=j.$length)?($throwRuntimeError("index out of range"),undefined):j.$array[j.$offset+k]));if(!b.Context.indented&&!((45===l))&&!((42===l))&&!((43===l))&&!D.IsDigit(l)&&!((96===l))&&!((126===l))&&!((35===l))&&!((62===l))&&!((60===l))&&!((95===l))&&!((61===l))&&!((36===l))&&!((91===l))&&!((226===l))){b.Context.advanceNextNonspace();$s=6;continue;}m=0;case 7:if(!(m=Q.$length)?($throwRuntimeError("index out of range"),undefined):Q.$array[Q.$offset+m])(b,d);$s=9;case 9:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n;if(o===1){d=b.Context.Tip;$s=8;continue;}else if(o===2){d=b.Context.Tip;h=true;$s=8;continue;}else{m=m+(1)>>0;}$s=7;continue;case 8:if(m===i){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&&!(BE.nil===d.LastChild)){d.LastChild.LastLineBlank=true;}p=d.Type;q=(11===p)&&d.IsFencedCodeBlock;r=b.Context.blank&&!((p===500)||(p===5)||((p===11)&&q)||((p===300))||((p===8)&&BE.nil===d.FirstChild));s=d;while(true){if(!(!(BE.nil===s))){break;}s.LastLineBlank=r;s=s.Parent;}if(d.AcceptLines()){$s=14;continue;}if(b.Context.offset=1&&t.HtmlBlockType<=5){$s=19;continue;}$s=20;continue;case 19:u=$subslice(b.Context.currentLine,b.Context.offset);if(b.isHTMLBlockClose(u,t.HtmlBlockType)){$s=21;continue;}$s=22;continue;case 21:$r=b.Context.finalize(d,b.Context.lineNum);$s=23;case 23:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 22:case 20:case 18:$s=16;continue;case 15:v=b.Context.addChild(1,b.Context.offset);$s=24;case 24:if($c){$c=false;v=v.$blk();}if(v&&v.$blk!==undefined){break s;}v;b.Context.advanceNextNonspace();b.addLine();case 16:case 12:$s=-1;return;}return;}if($f===undefined){$f={$blk:AY.ptr.prototype.incorporateLine};}$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;};AY.prototype.incorporateLine=function(a){return this.$val.incorporateLine(a);};AY.ptr.prototype.addLine=function(){var a,b,c;a=this;if(a.Context.partiallyConsumedTab){a.Context.offset=a.Context.offset+(1)>>0;c=4-((b=a.Context.column%4,b===b?b:$throwRuntimeError("integer divide by zero")))>>0;a.Context.Tip.AppendTokens(A.Repeat(E.StrToBytes(" "),c));}a.Context.Tip.AppendTokens($subslice(a.Context.currentLine,a.Context.offset));};AY.prototype.addLine=function(){return this.$val.addLine();};R=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=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===(500)){$s=8;continue;}if((c===(2))||(c===(4))){$s=9;continue;}$s=10;continue;case 2:d=S(a,b);$s=11;case 11:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;case 3:$s=-1;return AD(a,b);case 4:$s=-1;return AT(a,b);case 5:$s=-1;return AP(a,b);case 6:$s=-1;return O(a,b);case 7:e=AQ(a,b);$s=12;case 12:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}$s=-1;return e;case 8:$s=-1;return AC(a,b);case 9:$s=-1;return 1;case 10:case 1:$s=-1;return 0;}return;}if($f===undefined){$f={$blk:R};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};S=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=b.currentLine;d=b.indent;if(a.IsFencedCodeBlock){$s=1;continue;}$s=2;continue;case 1:e=V($subslice(c,b.nextNonspace),a.CodeBlockFenceChar,a.CodeBlockFenceLen);f=e[0];g=e[1];if(d<=3&&f){$s=4;continue;}$s=5;continue;case 4:a.CodeBlockCloseFence=g;$r=b.finalize(a,b.lineNum);$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;return 2;case 5:h=a.CodeBlockFenceOffset;i=0;while(true){if(!(h>0)){break;}i=D.Peek(c,b.offset);if(!((32===i))&&!((9===i))){break;}b.advanceOffset(1,true);h=h-(1)>>0;}case 6:$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:S};}$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.CodeBlockContinue=S;T=function(a){var a,b,c,d;if(a.IsFencedCodeBlock){b=a.Tokens;c=b.$length;if(1>c){return;}d=0;while(true){if(!(d=b.$length)?($throwRuntimeError("index out of range"),undefined):b.$array[b.$offset+d])){break;}d=d+(1)>>0;}a.Tokens=$subslice(b,(d+1>>0));}else{a.Tokens=D.ReplaceNewlineSpace(a.Tokens);}};AY.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=BB.nil;f=BB.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=BB.nil;n=$subslice(g.Context.currentLine,(g.Context.nextNonspace+c>>0));if((96===j)&&A.Contains(n,U)){return[a,b,c,d,e,f];}m=D.TrimWhitespace(n);m=E.UnescapeString(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];};AY.prototype.parseFencedCode=function(){return this.$val.parseFencedCode();};V=function(a,b,c){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;d=false;e=BB.nil;f=(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);if(!((f===b))){g=false;h=BB.nil;d=g;e=h;return[d,e];}if(c>D.Accept(a,f)){i=false;j=BB.nil;d=i;e=j;return[d,e];}a=D.TrimWhitespace(a);k=a;l=0;while(true){if(!(l=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]);if(!((m===b))){n=false;o=BB.nil;d=n;e=o;return[d,e];}l++;}e=a;p=true;q=e;d=p;e=q;return[d,e];};AY.ptr.prototype.parseCodeSpan=function(a){var a,b,c,d,e,f,g,h,i,j,k,l,m;b=BE.nil;c=this;d=a.pos;e=0;while(true){if(!((d+e>>0)>0,((g<0||g>=f.$length)?($throwRuntimeError("index out of range"),undefined):f.$array[f.$offset+g]))))){break;}e=e+(1)>>0;}h=$subslice(a.tokens,d,(d+e>>0));if(a.tokensLen<=(d+e>>0)){a.pos=a.pos+(e)>>0;b=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,h,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);return b;}i=new C.Node.ptr(28,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,h,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);j=c.matchCodeSpanEnd($subslice(a.tokens,(d+e>>0)),e);if(1>j){a.pos=a.pos+(e)>>0;b=new C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,h,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);return b;}j=(d+j>>0)+e>>0;k=new C.Node.ptr(30,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,$subslice(a.tokens,j,(j+e>>0)),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);l=$subslice(a.tokens,(d+e>>0),j);l=D.ReplaceAll(l,10,32);if(2=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0]))&&(32===(m=l.$length-1>>0,((m<0||m>=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m])))&&!D.IsBlankLine(l)){i.Tokens=$append(i.Tokens,(0>=l.$length?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+0]));k.Tokens=$subslice(a.tokens,(j-1>>0),(j+e>>0));l=$subslice(l,1,(l.$length-1>>0));}b=new C.Node.ptr(27,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,e,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);b.AppendChild(i);b.AppendChild(new C.Node.ptr(29,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,l,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil));b.AppendChild(k);a.pos=j+e>>0;return b;};AY.prototype.parseCodeSpan=function(a){return this.$val.parseCodeSpan(a);};AY.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;};AY.prototype.matchCodeSpanEnd=function(a,b){return this.$val.matchCodeSpanEnd(a,b);};AY.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 C.Node.ptr(16,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,f,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);a.AppendChild(g);if(e.canOpen||e.canClose){b.delimiters=new W.ptr(g,e.typ,e.num,e.num,e.canOpen,e.canClose,b.delimiters,BJ.nil,false,false,false,0,BJ.nil);if(!(BJ.nil===b.delimiters.previous)){b.delimiters.previous.next=b.delimiters;}}};AY.prototype.handleDelim=function(a,b){return this.$val.handleDelim(a,b);};AY.ptr.prototype.processEmphasis=function(a,b){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;c=this;if(BJ.nil===b.delimiters){return;}d=BJ.nil;e=BJ.nil;f=BJ.nil;g=d;h=e;i=f;j=BE.nil;k=BE.nil;l=j;m=k;n=BJ.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};h=b.delimiters;while(true){if(!(!(BJ.nil===h)&&!(h.previous===a))){break;}h=h.previous;}while(true){if(!(!(BJ.nil===h))){break;}v=h.typ;if(!h.canClose){h=h.next;continue;}g=h.previous;p=false;while(true){if(!(!(BJ.nil===g)&&!(g===a)&&!(g===(w=q[$Uint8.keyFor(v)],w!==undefined?w.v:BJ.nil)))){break;}r=(h.canOpen||g.canClose)&&!(((x=h.originalNum%3,x===x?x:$throwRuntimeError("integer divide by zero"))===0))&&((y=((g.originalNum+h.originalNum>>0))%3,y===y?y:$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.Option.GFMStrikethrough&&(126===v)&&!((g.num===h.num))){break;}g.num=g.num-(o)>>0;h.num=h.num-(o)>>0;z=$subslice(l.Tokens,(l.Tokens.$length-o>>0));aa=$subslice(l.Tokens,0,(l.Tokens.$length-o>>0));l.Tokens=aa;ab=$subslice(m.Tokens,(m.Tokens.$length-o>>0));aa=$subslice(m.Tokens,0,(m.Tokens.$length-o>>0));m.Tokens=aa;ac=new C.Node.ptr(0,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,z,true,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);ad=new C.Node.ptr(0,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,true,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);ae=new C.Node.ptr(0,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,ab,true,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);if(1===o){if(42===v){ad.Type=17;ac.Type=18;ae.Type=19;}else if(95===v){ad.Type=17;ac.Type=20;ae.Type=21;}else if(126===v){if(c.Context.Option.GFMStrikethrough){ad.Type=101;ac.Type=102;ae.Type=103;}}}else{if(42===v){ad.Type=22;ac.Type=23;ae.Type=24;}else if(95===v){ad.Type=22;ac.Type=25;ae.Type=26;}else if(126===v){if(c.Context.Option.GFMStrikethrough){ad.Type=101;ac.Type=104;ae.Type=105;}}}af=l.Next;while(true){if(!(!(BE.nil===af)&&!(af===m))){break;}ag=af.Next;af.Unlink();ad.AppendChild(af);af=ag;}ad.PrependChild(ac);ad.AppendChild(ae);l.InsertAfter(ad);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){ah=v;(q||$throwRuntimeError("assignment to entry in nil map"))[$Uint8.keyFor(ah)]={k:ah,v:i.previous};if(!i.canOpen){c.removeDelimiter(i,b);}}}while(true){if(!(!(BJ.nil===b.delimiters)&&!(b.delimiters===a))){break;}c.removeDelimiter(b.delimiters,b);}};AY.prototype.processEmphasis=function(a,b){return this.$val.processEmphasis(a,b);};AY.ptr.prototype.scanDelims=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;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=B.DecodeLastRune($subslice(a.tokens,0,c));k=p[0];}else{k=((o>>0));}}if(a.tokensLen>a.pos){s=(q=a.tokens,r=a.pos,((r<0||r>=q.$length)?($throwRuntimeError("index out of range"),undefined):q.$array[q.$offset+r]));if(s>=128){t=B.DecodeRune($subslice(a.tokens,a.pos));l=t[0];}else{l=((s>>0));}}u=D.IsUnicodeWhitespace(l);v=G.IsPunct(l)||G.IsSymbol(l);if(((42===e)&&(126===l))||((126===e)&&(42===l))){v=false;}w=D.IsUnicodeWhitespace(k);x=G.IsPunct(k)||G.IsSymbol(k);if(((42===e)&&(126===k))||((126===e)&&(42===k))){x=false;}if(b.Context.Option.VditorWYSIWYG){if("\xE2\x80\xB8"===($encodeRune(k))){x=false;}}y=!u&&(!v||w||x);z=!w&&(!x||u||v);aa=false;ab=false;ac=aa;ad=ab;if(95===e){ac=y&&(!z||x);ad=z&&(!y||v);}else{ac=y;ad=z;}return new W.ptr(BE.nil,e,f,0,ac,ad,BJ.nil,BJ.nil,true,false,false,0,BJ.nil);};AY.prototype.scanDelims=function(a){return this.$val.scanDelims(a);};AY.ptr.prototype.removeDelimiter=function(a,b){var a,b,c,d;c=BJ.nil;d=this;if(!(BJ.nil===a.previous)){a.previous.next=a.next;}if(BJ.nil===a.next){b.delimiters=a.previous;}else{a.next.previous=a.previous;}return c;};AY.prototype.removeDelimiter=function(a,b){return this.$val.removeDelimiter(a,b);};AY.ptr.prototype.emoji=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BE.nil===c))){break;}d=c.Next;if(16===c.Type){b.emoji0(c);}else{b.emoji(c);}c=d;}};AY.prototype.emoji=function(a){return this.$val.emoji(a);};AY.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 BB([]);e=d.$length;f=0;g=BB.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(D.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.Option.AliasEmoji[$String.keyFor(E.BytesToStr(g))],l!==undefined?[l.v,true]:["",false]);m=k[0];n=k[1];if(n){o=new C.Node.ptr(200,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);p=new C.Node.ptr(201,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,BB.nil,false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.nil);o.AppendChild(p);q=E.StrToBytes(m);if(A.Contains(q,$pkg.EmojiSitePlaceholder)){r=E.BytesToStr(g);s=".png";if("huaji"===r){s=".gif";}t=b.Context.Option.EmojiSite+"/"+r+s;p.Type=202;p.Tokens=b.EmojiImgTokens(r,t);}else if(A.Contains(q,X)){u=E.BytesToStr(g);p.Type=202;p.Tokens=b.EmojiImgTokens(u,m);}else{p.Tokens=q;}p.AppendChild(new C.Node.ptr(203,BE.nil,BE.nil,BE.nil,BE.nil,BE.nil,$subslice(d,i,(h+1>>0)),false,false,false,0,false,0,0,0,BB.nil,BB.nil,BB.nil,0,BF.nil,false,BG.nil,0,0,0,BB.nil,BB.nil,0,BB.nil,0,false,BB.nil,0,BB.nil,"",BH.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();}};AY.prototype.emoji0=function(a){return this.$val.emoji0(a);};AY.ptr.prototype.EmojiImgTokens=function(a,b){var a,b,c;c=this;return E.StrToBytes("\""+a+"\"");};AY.prototype.EmojiImgTokens=function(a,b){return this.$val.EmojiImgTokens(a,b);};Y=function(){var a,b,c,d,e,f,g,h,i,j,k,l;a=false;b=false;a=(c=$keys(AB).length,((c<0||c>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=(d=$keys(AB).length,((d<0||d>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));e=AB;f=0;g=$keys(e);while(true){if(!(f2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=AB;c=0;d=$keys(b);while(true){if(!(cb.indent){return 1;}b.advanceOffset(4,true);return 0;};$pkg.FootnotesContinue=AC;AW.ptr.prototype.FindFootnotesDef=function(a){var a,b,c,d,e,f;b=this;c=b.FootnotesDefs;d=0;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(A.EqualFold(a,f.Tokens)){return[e+1>>0,f];}d++;}return[-1,BE.nil];};AW.prototype.FindFootnotesDef=function(a){return this.$val.FindFootnotesDef(a);};AY.ptr.prototype.parseATXHeading=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r;a=false;b=BB.nil;c=BB.nil;d=0;e=BB.nil;f=this;g=$subslice(f.Context.currentLine,f.Context.nextNonspace);h=false;if(f.Context.Option.VditorWYSIWYG&&A.HasPrefix(g,(new BB($stringToBytes("\xE2\x80\xB8"))))){g=A.ReplaceAll(g,(new BB($stringToBytes("\xE2\x80\xB8"))),BB.nil);h=true;}i=(0>=g.$length?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+0]);if(!((35===i))){return[a,b,c,d,e];}d=D.Accept(g,35);if(6=g.$length)?($throwRuntimeError("index out of range"),undefined):g.$array[g.$offset+d]))){return[a,b,c,d,e];}b=$subslice(f.Context.currentLine,f.Context.nextNonspace,((f.Context.nextNonspace+d>>0)+1>>0));c=$makeSlice(BB,0,256);j=D.TrimLeft(g);g=j[1];k=D.TrimLeft($subslice(g,d));g=k[1];l=g;m=0;while(true){if(!(m=l.$length)?($throwRuntimeError("index out of range"),undefined):l.$array[l.$offset+m]);if(10===n){break;}c=$append(c,n);m++;}o=D.TrimRight(c);c=o[1];p=c.$length-1>>0;while(true){if(!(0<=p)){break;}if(35===((p<0||p>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+p])){p=p-(1)>>0;continue;}if(32===((p<0||p>=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+p])){break;}else{p=c.$length;break;}p=p-(1)>>0;}if(0>=p){c=$makeSlice(BB,0,0);}else if(0=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(!((61===e))&&!((45===e))){return a;}f=false;if(b.Context.Option.VditorWYSIWYG){if(A.Contains(c,(new BB($stringToBytes("\xE2\x80\xB8"))))){f=true;c=A.ReplaceAll(c,(new BB($stringToBytes("\xE2\x80\xB8"))),(new BB($stringToBytes(""))));}}g=c.$length;while(true){if(!(d=c.$length)?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+d]);if(!((61===h))&&!((45===h))){return a;}if(!((0===e))){if(!((e===h))){return a;}}else{e=h;}d=d+(1)>>0;}a=1;if(45===e){a=2;}if(b.Context.Option.VditorWYSIWYG&&f){b.Context.oldtip.Tokens=D.TrimWhitespace(b.Context.oldtip.Tokens);b.Context.oldtip.AppendTokens((new BB($stringToBytes("\xE2\x80\xB8"))));}return a;};AY.prototype.parseSetextHeading=function(){return this.$val.parseSetextHeading();};AY.ptr.prototype.parseHeadingID=function(a){var a,b,c,d,e,f;b=BB.nil;c=this;if(c.Context.Option.VditorWYSIWYG){a=A.ReplaceAll(a,(new BB($stringToBytes("\xE2\x80\xB8"))),BB.nil);}d=a.$length;if(3>d){b=BB.nil;return b;}if(!((125===(e=d-1>>0,((e<0||e>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+e]))))){b=BB.nil;return b;}f=A.Index(a,(new BB($stringToBytes("{"))));if(1>f){b=BB.nil;return b;}b=$subslice(a,(f+1>>0),(d-1>>0));return b;};AY.prototype.parseHeadingID=function(a){return this.$val.parseHeadingID(a);};AD=function(a,b){var a,b;if(b.blank&&((a.HtmlBlockType===6)||(a.HtmlBlockType===7))){return 1;}return 0;};$pkg.HtmlBlockContinue=AD;AE=function(a){var a,b;b=D.TrimRight(D.ReplaceNewlineSpace(a.Tokens));a.Tokens=b[1];};AY.ptr.prototype.isHTMLBlockClose=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m;c=this;d=a.$length;e=b;if(e===(1)){f=D.AcceptTokenss(a,AG);if(0<=f){return true;}return false;}else if(e===(2)){g=0;while(true){if(!(g<(d-3>>0))){break;}if((45===((g<0||g>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+g]))&&(45===(h=g+1>>0,((h<0||h>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+h])))&&(62===(i=g+2>>0,((i<0||i>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+i])))){return true;}g=g+(1)>>0;}}else if(e===(3)){j=0;while(true){if(!(j<(d-2>>0))){break;}if((63===((j<0||j>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j]))&&(62===(k=j+1>>0,((k<0||k>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k])))){return true;}j=j+(1)>>0;}}else if(e===(4)){return A.Contains(a,AK);}else if(e===(5)){l=0;while(true){if(!(l<(d-2>>0))){break;}if((93===((l<0||l>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+l]))&&(93===(m=l+1>>0,((m<0||m>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+m])))){return true;}l=l+(1)>>0;}}return false;};AY.prototype.isHTMLBlockClose=function(a,b){return this.$val.isHTMLBlockClose(a,b);};AY.ptr.prototype.parseHTML=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=0;c=this;d=D.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=D.AcceptTokenss(a,AF);if(0<=f){if(D.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=D.AcceptTokenss(a,AH);if(0<=g){if(D.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=D.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,E.StrToBytes("