From deeb38becac153c14ac0f0cef112c71b1eb066a6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 28 Jan 2021 09:56:22 +0800 Subject: [PATCH] =?UTF-8?q?:bookmark:=20=E5=8F=91=E5=B8=83=20v1.7.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/lute.min.js | 2 +- lute.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/lute.min.js b/javascript/lute.min.js index 7cb17dba91..27e6fb4116 100644 --- a/javascript/lute.min.js +++ b/javascript/lute.min.js @@ -33,7 +33,7 @@ $packages["github.com/88250/lute/html"]=(function(){var $pkg={},$init,J,B,G,F,D, $packages["github.com/88250/lute/parse"]=(function(){var $pkg={},$init,A,D,B,E,F,H,I,G,C,O,U,AU,AV,AW,AX,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,J,K,L,N,P,T,V,Z,AA,AC,AD,AE,AF,AG,AH,AI,AJ,AL,AM,BA,Q,R,S,W,X,Y,AB,AK,AN,AO,AP,AQ,AR,AS,AT,AY,AZ,BB,BC;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"];O=$pkg.blockStartFunc=$newType(4,$kindFunc,"parse.blockStartFunc",true,"github.com/88250/lute/parse",false,null);U=$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=BG.nil;this.typ=0;this.num=0;this.originalNum=0;this.canOpen=false;this.canClose=false;this.previous=BN.nil;this.next=BN.nil;this.active=false;this.image=false;this.bracketAfter=false;this.index=0;this.previousDelimiter=BN.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_;});AU=$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=BO.nil;this.ParseOption=BS.nil;this.Tip=BG.nil;this.oldtip=BG.nil;this.currentLine=BD.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=BG.nil;this.rootIAL=BG.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_;});AV=$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=BD.nil;this.tokensLen=0;this.pos=0;this.delimiters=BN.nil;this.brackets=BN.nil;return;}this.tokens=tokens_;this.tokensLen=tokensLen_;this.pos=pos_;this.delimiters=delimiters_;this.brackets=brackets_;});AW=$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=BG.nil;this.Context=BP.nil;this.lexer=BQ.nil;this.inlineContext=BR.nil;this.Name="";this.ID="";this.URL="";this.Path="";this.Marks=BK.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_;});AX=$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_;});BD=$sliceType($Uint8);BE=$sliceType(BD);BF=$sliceType(O);BG=$ptrType(D.Node);BH=$sliceType(BG);BI=$ptrType(D.ListData);BJ=$sliceType($Int);BK=$sliceType($String);BL=$sliceType(BK);BM=$sliceType(D.NodeType);BN=$ptrType(U);BO=$ptrType(AW);BP=$ptrType(AU);BQ=$ptrType(E.Lexer);BR=$ptrType(AV);BS=$ptrType(AX);BT=$mapType($String,$String);AW.ptr.prototype.parseGFMAutoEmailLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BG.nil===c))){break;}d=c.Next;if((16===c.Type)&&!(BG.nil===c.Parent)&&!((33===c.Parent.Type))){b.parseGFMAutoEmailLink0(c);}else{b.parseGFMAutoEmailLink(c);}c=d;}};AW.prototype.parseGFMAutoEmailLink=function(a){return this.$val.parseGFMAutoEmailLink(a);};AW.ptr.prototype.parseGFMAutoLink=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BG.nil===c))){break;}d=c.Next;if(16===c.Type){b.parseGFMAutoLink0(c);}else{b.parseGFMAutoLink(c);}c=d;}};AW.prototype.parseGFMAutoLink=function(a){return this.$val.parseGFMAutoLink(a);};AW.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 BD([((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),BD.nil,2);a.InsertBefore(q);b.addPreviousText(a,new BD([o]));}else if((45===l)||(95===l)){b.addPreviousText(a,n);continue loopPart;}else{r=new D.Node.ptr("","","",33,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,2,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);r.AppendChild(new D.Node.ptr("","","",40,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,n,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));r.AppendChild(new D.Node.ptr("","","",41,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,$appendSlice(J,n),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.InsertBefore(r);}}a.Unlink();return;};AW.prototype.parseGFMAutoEmailLink0=function(a){return this.$val.parseGFMAutoEmailLink0(a);};AW.ptr.prototype.isValidEmailSegment1=function(a){var a,b;b=this;return E.IsASCIILetterNumHyphen(a)||(46===a)||(43===a)||(95===a);};AW.prototype.isValidEmailSegment1=function(a){return this.$val.isValidEmailSegment1(a);};AW.ptr.prototype.isValidEmailSegment2=function(a){var a,b;b=this;return E.IsASCIILetterNumHyphen(a)||(46===a)||(95===a);};AW.prototype.isValidEmailSegment2=function(a){return this.$val.isValidEmailSegment2(a);};AW.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=BD.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(!(BG.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=BD.nil;as=A.Index(aq,(new BD($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=BD.nil;if(!q){bk=$appendSlice(bk,s);}bk=$appendSlice(bk,aq);bk=$appendSlice(bk,ax);bl=b.newLink(33,bk,B.EncodeDestination(bj),BD.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;};AW.prototype.isValidDomain=function(a){return this.$val.isValidDomain(a);};AW.ptr.prototype.parseAutoEmailLink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BG.nil;c=this;d=$subslice(a.tokens,1);e=BD.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 BD([f]))){b=BG.nil;return b;}i=i+(1)>>0;}if(1>i||!j){b=BG.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=BG.nil;return b;}if(63>0;}if(1>i||!l){b=BG.nil;return b;}a.pos=a.pos+((h+1>>0))>>0;b=c.newLink(33,e,$appendSlice(J,e),BD.nil,2);return b;};AW.prototype.parseAutoEmailLink=function(a){return this.$val.parseAutoEmailLink(a);};AW.ptr.prototype.newLink=function(a,b,c,d,e){var a,b,c,d,e,f,g;f=BG.nil;g=this;f=new D.Node.ptr("","","",a,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,e,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);if(34===a){f.AppendChild(new D.Node.ptr("","","",35,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));}f.AppendChild(new D.Node.ptr("","","",36,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));f.AppendChild(new D.Node.ptr("","","",40,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,b,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));f.AppendChild(new D.Node.ptr("","","",37,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));f.AppendChild(new D.Node.ptr("","","",38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));f.AppendChild(new D.Node.ptr("","","",41,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,c,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));if(!(BD.nil===d)){f.AppendChild(new D.Node.ptr("","","",42,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,d,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));}f.AppendChild(new D.Node.ptr("","","",39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));if(1===e){f.LinkRefLabel=b;}return f;};AW.prototype.newLink=function(a,b,c,d,e){return this.$val.newLink(a,b,c,d,e);};AW.ptr.prototype.parseAutolink=function(a){var a,b,c,d,e,f,g,h,i,j,k,l;b=BG.nil;c=this;d=false;e="";f=BD.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=BG.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=BG.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=BG.nil;return b;}a.pos=1+h>>0;b=c.newLink(33,f,B.EncodeDestination(f),BD.nil,2);return b;};AW.prototype.parseAutolink=function(a){return this.$val.parseAutolink(a);};AW.ptr.prototype.addPreviousText=function(a,b){var a,b,c;c=this;if(BG.nil===a.Previous||!((16===a.Previous.Type))){a.InsertBefore(new D.Node.ptr("","","",16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,b,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));return;}a.Previous.AppendTokens(b);};AW.prototype.addPreviousText=function(a,b){return this.$val.addPreviousText(a,b);};AW.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=BG.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=BL.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 BD($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 BD($stringToBytes("\xEF\xBC\x81(("))));i=(A.HasPrefix(c,(new BD($stringToBytes("\xE2\x80\xB8!((")))))||(A.HasPrefix(c,(new BD($stringToBytes("!\xE2\x80\xB8((")))));if(6>b.Context.currentLineLen||(!A.HasPrefix(c,(new BD($stringToBytes("!(("))))&&!h&&!i)){$s=-1;return a;}if(h){c=A.Replace(c,(new BD($stringToBytes("\xEF\xBC\x81(("))),(new BD($stringToBytes("!(("))),1);}if(i){c=A.Replace(c,(new BD($stringToBytes("\xE2\x80\xB8!(("))),(new BD($stringToBytes("!(("))),1);c=A.Replace(c,(new BD($stringToBytes("!\xE2\x80\xB8(("))),(new BD($stringToBytes("!(("))),1);}c=$subslice(c,3);j=BD.nil;k=BD.nil;l=BD.nil;m=BD.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);a.AppendChild(new D.Node.ptr("","","",35,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",441,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,p,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",442,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",443,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,q,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));if(ab||i){a.AppendChild(new D.Node.ptr("","","",16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,F.CaretTokens,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));}if(e){ac=b.Context.Tip;ad=new D.Node.ptr("","","",100,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,ac.ListData.Checked,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);ad.KramdownIAL=f;ac.AppendChild(ad);}$s=-1;return a;}return;}if($f===undefined){$f={$blk:AW.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;};AW.prototype.parseBlockEmbed=function(){return this.$val.parseBlockEmbed();};AW.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=BG.nil;b=this;c=$subslice(b.Context.currentLine,b.Context.nextNonspace);d=A.HasPrefix(c,(new BD($stringToBytes("\xE2\x80\xB8!{{"))));if(!A.HasPrefix(c,(new BD($stringToBytes("!{{"))))&&!d){$s=-1;return a;}if(d){c=A.Replace(c,(new BD($stringToBytes("\xE2\x80\xB8!{{"))),(new BD($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 BD($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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);a.AppendChild(new D.Node.ptr("","","",35,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",466,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",466,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",468,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,g,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",467,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",467,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));$s=-1;return a;}return;}if($f===undefined){$f={$blk:AW.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;};AW.prototype.parseBlockQueryEmbed=function(){return this.$val.parseBlockQueryEmbed();};AW.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,(new BD($stringToBytes("("))),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,(new BD($stringToBytes("("))),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);}d=BD.nil;e=BD.nil;f=d;g=e;h=a.pos;a.pos=a.pos+(2)>>0;i=false;j=false;k=i;l=j;m=BD.nil;n=BD.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,(new BD($stringToBytes("("))),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);}y=new D.Node.ptr("","","",430,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);y.AppendChild(new D.Node.ptr("","","",38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));y.AppendChild(new D.Node.ptr("","","",38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));y.AppendChild(new D.Node.ptr("","","",431,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,f,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));if(1>g.$length){g=f;}y.AppendChild(new D.Node.ptr("","","",432,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));z=AT("",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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);y.AppendChild(ab);ac=aa.Root.FirstChild.FirstChild;while(true){if(!(!(BG.nil===ac))){break;}ad=ac.Next;ab.AppendChild(ac);if(!(BG.nil===ad)){ac=ad;}else{break;}}y.AppendChild(new D.Node.ptr("","","",39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));y.AppendChild(new D.Node.ptr("","","",39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));$s=-1;return y;}return;}if($f===undefined){$f={$blk:AW.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;};AW.prototype.parseBlockRef=function(a){return this.$val.parseBlockRef(a);};AU.ptr.prototype.parseBlockRefID=function(a){var a,b,c,d,e,f,g,h,i;b=BD.nil;c=BD.nil;d=BD.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 BD([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(BD,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 BD($stringToBytes("))"))));return[b,c,d];}if(!E.IsWhitespace((0>=c.$length?($throwRuntimeError("index out of range"),undefined):c.$array[c.$offset+0]))){b=BD.nil;return[b,c,d];}return[b,c,d];};AU.prototype.parseBlockRefID=function(a){return this.$val.parseBlockRefID(a);};Q=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=Q;AW.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(!(!(BD.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 BM([]))&&A.HasPrefix(c,F.CaretTokens)){if(8===a.Context.Tip.Type){a.Context.Tip.AppendChild(new D.Node.ptr("","","",16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,c,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));$s=2;continue;}else{a.Context.Tip.Tokens=A.TrimSuffix(a.Context.Tip.Tokens,(new BD($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(!(!(BG.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:AW.ptr.prototype.parseBlocks};}$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.parseBlocks=function(){return this.$val.parseBlocks();};AW.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,$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;$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=BG.nil;d=b.Root;e=d.LastChild;case 1:if(!(!(BG.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;}else if(g===(3)){d.AppendChild(new D.Node.ptr("","","",478,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));$s=-1;return;}else if(g===(4)){h=b.Context.Tip;while(true){if(!(!(BG.nil===h))){break;}if(475===h.Type){d=h;break;}h=h.Parent;}d.AppendChild(new D.Node.ptr("","","",478,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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=P.$length;case 5:if(!(!i)){$s=6;continue;}b.Context.findNextNonspace();m=(k=b.Context.currentLine,l=b.Context.nextNonspace,((l<0||l>=k.$length)?($throwRuntimeError("index out of range"),undefined):k.$array[k.$offset+l]));if(!b.Context.indented&&!((45===m))&&!((42===m))&&!((43===m))&&!E.IsDigit(m)&&!((96===m))&&!((126===m))&&!((35===m))&&!((62===m))&&!((60===m))&&!((95===m))&&!((61===m))&&!((36===m))&&!((91===m))&&!((123===m))&&!((125===m))&&!((33===m))&&!(("\xEF\xBC\x81".charCodeAt(0)===m))&&!(("\xE2\x80\xB8".charCodeAt(0)===m))){b.Context.advanceNextNonspace();$s=6;continue;}n=0;case 7:if(!(n=P.$length)?($throwRuntimeError("index out of range"),undefined):P.$array[P.$offset+n])(b,d);$s=9;case 9:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=o;if(p===1){d=b.Context.Tip;$s=8;continue;}else if(p===2){d=b.Context.Tip;i=true;$s=8;continue;}else{n=n+(1)>>0;}$s=7;continue;case 8:if(n===j){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&&!(BG.nil===d.LastChild)){d.LastChild.LastLineBlank=true;}q=d.Type;r=(11===q)&&d.IsFencedCodeBlock;s=b.Context.blank&&!((q===411)||(q===5)||((q===11)&&r)||((q===300))||((q===495))||((q===8)&&BG.nil===d.FirstChild));t=d;while(true){if(!(!(BG.nil===t))){break;}t.LastLineBlank=s;t=t.Parent;}if(d.AcceptLines()){$s=14;continue;}if(b.Context.offset=1&&v.HtmlBlockType<=5){$s=21;continue;}$s=22;continue;case 21:w=$subslice(b.Context.currentLine,b.Context.offset);if(b.isHTMLBlockClose(w,v.HtmlBlockType)){$s=23;continue;}$s=24;continue;case 23:$r=b.Context.finalize(d);$s=25;case 25: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));};AW.prototype.addLine=function(){return this.$val.addLine();};R=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=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=S(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:$s=-1;return AB(a,b);case 4:$s=-1;return AQ(a,b);case 5:$s=-1;return AO(a,b);case 6:$s=-1;return Q(a,b);case 7:e=AP(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 8:f=BB(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 9:$s=-1;return X(a,b);case 10:g=AZ(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 11:h=Y(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 12:$s=-1;return 1;case 13: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.f=f;$f.g=g;$f.h=h;$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=b.isFencedCodeClose($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);$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=E.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;AU.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);}};AU.prototype.codeBlockFinalize=function(a){return this.$val.codeBlockFinalize(a);};AW.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=BD.nil;f=BD.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=BD.nil;n=$subslice(g.Context.currentLine,(g.Context.nextNonspace+c>>0));if((96===j)&&A.Contains(n,T)){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];};AW.prototype.parseFencedCode=function(){return this.$val.parseFencedCode();};AU.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;d=false;e=BD.nil;f=this;if(f.ParseOption.KramdownBlockIAL&&7=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);if(!((j===b))){k=false;l=BD.nil;d=k;e=l;return[d,e];}if(c>E.Accept(a,j)){m=false;n=BD.nil;d=m;e=n;return[d,e];}a=E.TrimWhitespace(a);o=A.HasSuffix(a,F.CaretTokens);if(f.ParseOption.VditorWYSIWYG||f.ParseOption.VditorIR||f.ParseOption.VditorSV){a=A.ReplaceAll(a,F.CaretTokens,BD.nil);if(o){f.Tip.Tokens=A.TrimSuffix(f.Tip.Tokens,(new BD($stringToBytes("\n"))));f.Tip.Tokens=$appendSlice(f.Tip.Tokens,F.CaretTokens);}}p=a;q=0;while(true){if(!(q=p.$length)?($throwRuntimeError("index out of range"),undefined):p.$array[p.$offset+q]);if(!((r===b))){s=false;t=BD.nil;d=s;e=t;return[d,e];}q++;}e=a;u=true;v=e;d=u;e=v;return[d,e];};AU.prototype.isFencedCodeClose=function(a,b,c){return this.$val.isFencedCodeClose(a,b,c);};AW.ptr.prototype.parseCodeSpan=function(a,b){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;c=BG.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);return c;}j=new D.Node.ptr("","","",28,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);return c;}k=(e+k>>0)+f>>0;l=new D.Node.ptr("","","",30,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,$subslice(b.tokens,k,(k+f>>0)),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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 BD($stringToBytes("\\|"))),(new BD($stringToBytes("|"))));}}c=new D.Node.ptr("","","",27,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,f,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);c.AppendChild(j);c.AppendChild(new D.Node.ptr("","","",29,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,m,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));c.AppendChild(l);b.pos=k+f>>0;return c;};AW.prototype.parseCodeSpan=function(a,b){return this.$val.parseCodeSpan(a,b);};AW.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;};AW.prototype.matchCodeSpanEnd=function(a,b){return this.$val.matchCodeSpanEnd(a,b);};AW.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,f,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);a.AppendChild(g);if(e.canOpen||e.canClose){b.delimiters=new U.ptr(g,e.typ,e.num,e.num,e.canOpen,e.canClose,b.delimiters,BN.nil,false,false,false,0,BN.nil);if(!(BN.nil===b.delimiters.previous)){b.delimiters.previous.next=b.delimiters;}}};AW.prototype.handleDelim=function(a,b){return this.$val.handleDelim(a,b);};AW.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(BN.nil===b.delimiters){return;}d=BN.nil;e=BN.nil;f=BN.nil;g=d;h=e;i=f;j=BG.nil;k=BG.nil;l=j;m=k;n=BN.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(!(!(BN.nil===h)&&!(h.previous===a))){break;}h=h.previous;}while(true){if(!(!(BN.nil===h))){break;}y=h.typ;if(!h.canClose){h=h.next;continue;}g=h.previous;p=false;while(true){if(!(!(BN.nil===g)&&!(g===a)&&!(g===(z=q[$Uint8.keyFor(y)],z!==undefined?z.v:BN.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,ac,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);ag=new D.Node.ptr("","","",0,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);ah=new D.Node.ptr("","","",0,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,ae,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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(!(!(BG.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(!(!(BN.nil===b.delimiters)&&!(b.delimiters===a))){break;}c.removeDelimiter(b.delimiters,b);}};AW.prototype.processEmphasis=function(a,b){return this.$val.processEmphasis(a,b);};AW.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 U.ptr(BG.nil,e,f,0,ag,ah,BN.nil,BN.nil,true,false,false,0,BN.nil);};AW.prototype.scanDelims=function(a){return this.$val.scanDelims(a);};AW.ptr.prototype.removeDelimiter=function(a,b){var a,b,c,d;c=BN.nil;d=this;if(!(BN.nil===a.previous)){a.previous.next=a.next;}if(BN.nil===a.next){b.delimiters=a.previous;}else{a.next.previous=a.previous;}return c;};AW.prototype.removeDelimiter=function(a,b){return this.$val.removeDelimiter(a,b);};AW.ptr.prototype.emoji=function(a){var a,b,c,d;b=this;c=a.FirstChild;while(true){if(!(!(BG.nil===c))){break;}d=c.Next;if((16===c.Type)||(40===c.Type)){b.emoji0(c);}else{b.emoji(c);}c=d;}};AW.prototype.emoji=function(a){return this.$val.emoji(a);};AW.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 BD([]);e=d.$length;f=0;g=BD.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);p=new D.Node.ptr("","","",201,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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,V)){u=F.BytesToStr(g);p.Type=202;p.Tokens=b.EmojiImgTokens(u,m);}else{p.Tokens=q;}p.AppendChild(new D.Node.ptr("","","",203,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,$subslice(d,i,(h+1>>0)),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.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();}};AW.prototype.emoji0=function(a){return this.$val.emoji0(a);};AW.ptr.prototype.EmojiImgTokens=function(a,b){var a,b,c;c=this;return F.StrToBytes("\""+a+"\"");};AW.prototype.EmojiImgTokens=function(a,b){return this.$val.EmojiImgTokens(a,b);};W=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(!(cb.indent){return 1;}b.advanceOffset(4,true);return 0;};$pkg.FootnotesContinue=X;AW.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]=BG.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,BD.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:AW.ptr.prototype.FindFootnotesDef};}$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};AW.prototype.FindFootnotesDef=function(a){return this.$val.FindFootnotesDef(a);};Y=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:Y};}$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};$pkg.GitConflictContinue=Y;AU.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 BD($stringToBytes("\n"))));e=(0>=d.$length?($throwRuntimeError("index out of range"),undefined):d.$array[d.$offset+0]);f=A.Join($subslice(d,1),(new BD($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=BD.nil;a.AppendChild(new D.Node.ptr("","","",496,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,e,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",497,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,f,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));a.AppendChild(new D.Node.ptr("","","",498,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil));$s=-1;return;}return;}if($f===undefined){$f={$blk:AU.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;};AU.prototype.gitConflictFinalize=function(a){return this.$val.gitConflictFinalize(a);};AW.ptr.prototype.parseGitConflict=function(){var a,b;a=false;b=this;a=A.HasPrefix(b.Context.currentLine,(new BD($stringToBytes("<<<<<<<"))));return a;};AW.prototype.parseGitConflict=function(){return this.$val.parseGitConflict();};AU.ptr.prototype.isGitConflictClose=function(){var a;a=this;return A.HasPrefix(a.currentLine,(new BD($stringToBytes(">>>>>>>"))));};AU.prototype.isGitConflictClose=function(){return this.$val.isGitConflictClose();};AW.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=BD.nil;c=BD.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,BD.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 BD($stringToBytes("#\xE2\x80\xB8#"))))){f=A.ReplaceAll(f,F.CaretTokens,BD.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(BD,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(BD,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;};AW.prototype.parseSetextHeading=function(){return this.$val.parseSetextHeading();};AW.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=BG.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,Z,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);$s=-1;return c;}e=b.pos;f=$subslice(b.tokens,e);g=A.Index(f,AA);if(2>g){b.pos=b.pos+(1)>>0;c=new D.Node.ptr("","","",16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,Z,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);$s=-1;return c;}h=A.Index(f,(new BD($stringToBytes("{"))));if(0>h){c=BG.nil;$s=-1;return c;}i=f.$length;if(!(((i-1>>0)===g))){if(!A.HasSuffix(f,(new BD($stringToBytes("}\xE2\x80\xB8"))))&&A.HasSuffix(f,F.CaretTokens)){b.pos=b.pos+(1)>>0;c=new D.Node.ptr("","","",16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,Z,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);$s=-1;return c;}}if(d.Context.ParseOption.VditorWYSIWYG){f=A.ReplaceAll(f,F.CaretTokens,BD.nil);}j=$subslice(f,(h+1>>0),g);b.pos=b.pos+((g+1>>0))>>0;if(!(BG.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,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BH.nil,j,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BI.nil,false,BJ.nil,0,0,0,0,BD.nil,0,false,"",0,BD.nil,"",BH.nil,BD.nil,BL.nil);$s=-1;return c;}return;}if($f===undefined){$f={$blk:AW.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;};AW.prototype.parseHeadingID=function(a,b){return this.$val.parseHeadingID(a,b);};AB=function(a,b){var a,b,c,d;c=b.currentLine;if(b.ParseOption.KramdownBlockIAL&&7>0))){break;}if((45===((h<0||h>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+h]))&&(45===(i=h+1>>0,((i<0||i>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+i])))&&(62===(j=h+2>>0,((j<0||j>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+j])))){return true;}h=h+(1)>>0;}}else if(f===(3)){k=0;while(true){if(!(k<(e-2>>0))){break;}if((63===((k<0||k>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+k]))&&(62===(l=k+1>>0,((l<0||l>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+l])))){return true;}k=k+(1)>>0;}}else if(f===(4)){return A.Contains(a,AH);}else if(f===(5)){m=0;while(true){if(!(m<(e-2>>0))){break;}if((93===((m<0||m>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+m]))&&(93===(n=m+1>>0,((n<0||n>=a.$length)?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+n])))){return true;}m=m+(1)>>0;}}return false;};AW.prototype.isHTMLBlockClose=function(a,b){return this.$val.isHTMLBlockClose(a,b);};AW.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,AC);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,AE);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("