From da2899e4b3215ab1cba8d61593675da0b7d54c09 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 29 Jul 2020 23:37:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20Vditor=20=E6=94=AF=E6=8C=81=20SV=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=20setext=20=E9=97=AE=E9=A2=98=20https://gith?= =?UTF-8?q?ub.com/Vanessa219/vditor/issues/642?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/lute.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/lute.min.js b/javascript/lute.min.js index 3ac7d380a3..8fb686fd1d 100644 --- a/javascript/lute.min.js +++ b/javascript/lute.min.js @@ -29,7 +29,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,I,G,H,C,P,V,AW,AX,AY,AZ,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,BU,J,K,L,N,Q,U,W,Y,AA,AC,AD,AG,AH,AI,AJ,AK,AL,AM,AO,BA,O,R,S,T,X,Z,AB,AE,AF,AN,AP,AQ,AR,AS,AT,AU,AV,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"];I=$packages["strconv"];G=$packages["strings"];H=$packages["unicode"];C=$packages["unicode/utf8"];P=$pkg.blockStartFunc=$newType(4,$kindFunc,"parse.blockStartFunc",true,"github.com/88250/lute/parse",false,null);V=$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=BM.nil;this.next=BM.nil;this.active=false;this.image=false;this.bracketAfter=false;this.index=0;this.previousDelimiter=BM.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=BN.nil;this.Option=BR.nil;this.LinkRefDefs=false;this.FootnotesDefs=BJ.nil;this.Tip=BG.nil;this.oldtip=BG.nil;this.currentLine=BD.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=BG.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=BD.nil;this.tokensLen=0;this.pos=0;this.lineNum=0;this.columnNum=0;this.delimiters=BM.nil;this.brackets=BM.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=BG.nil;this.Context=BO.nil;this.lexer=BP.nil;this.inlineContext=BQ.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_,VditorSV_,InlineMathAllowDigitAfterOpenMarker_,LinkBase_,VditorCodeBlockPreview_,RenderListStyle_,Setext_,Sanitize_,ImageLazyLoading_,ChineseParagraphBeginningSpace_,YamlFrontMatter_){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.VditorSV=false;this.InlineMathAllowDigitAfterOpenMarker=false;this.LinkBase="";this.VditorCodeBlockPreview=false;this.RenderListStyle=false;this.Setext=false;this.Sanitize=false;this.ImageLazyLoading="";this.ChineseParagraphBeginningSpace=false;this.YamlFrontMatter=false;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.VditorSV=VditorSV_;this.InlineMathAllowDigitAfterOpenMarker=InlineMathAllowDigitAfterOpenMarker_;this.LinkBase=LinkBase_;this.VditorCodeBlockPreview=VditorCodeBlockPreview_;this.RenderListStyle=RenderListStyle_;this.Setext=Setext_;this.Sanitize=Sanitize_;this.ImageLazyLoading=ImageLazyLoading_;this.ChineseParagraphBeginningSpace=ChineseParagraphBeginningSpace_;this.YamlFrontMatter=YamlFrontMatter_;});BD=$sliceType($Uint8);BE=$sliceType(BD);BF=$sliceType(P);BG=$ptrType(D.Node);BH=$ptrType(D.ListData);BI=$sliceType($Int);BJ=$sliceType(BG);BK=$sliceType(D.NodeType);BL=$sliceType($Int32);BM=$ptrType(V);BN=$ptrType(AY);BO=$ptrType(AW);BP=$ptrType(E.Lexer);BQ=$ptrType(AX);BR=$ptrType(AZ);BS=$sliceType(BJ);BT=$mapType($String,BG);BU=$mapType($String,$String);AY.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;}};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(!(!(BG.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;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,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,2,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);r.AppendChild(new D.Node.ptr(40,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,n,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));r.AppendChild(new D.Node.ptr(41,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,$appendSlice(J,n),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));a.InsertBefore(r);}}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 E.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 E.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,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);if(!b.isValidDomain(aq)){b.addPreviousText(a,$subslice(c,n,i));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(!E.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&&E.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(E.IsASCIIPunct(bg)){aq=$subslice(aq,0,(aw-1>>0));i=i-(1)>>0;}}bh=$appendSlice(s,aq);bh=$appendSlice(bh,av);bi=BD.nil;if(!q){bi=$appendSlice(bi,s);}bi=$appendSlice(bi,aq);bi=$appendSlice(bi,av);bj=b.newLink(33,bi,B.EncodeDestination(bh),BD.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(!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=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=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;};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=BG.nil;g=this;f=new D.Node.ptr(a,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,e,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);if(34===a){f.AppendChild(new D.Node.ptr(35,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));}f.AppendChild(new D.Node.ptr(36,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));f.AppendChild(new D.Node.ptr(40,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,b,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));f.AppendChild(new D.Node.ptr(37,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));f.AppendChild(new D.Node.ptr(38,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));f.AppendChild(new D.Node.ptr(41,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,c,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));if(!(BD.nil===d)){f.AppendChild(new D.Node.ptr(42,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,d,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));}f.AppendChild(new D.Node.ptr(39,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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=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;};AY.prototype.parseAutolink=function(a){return this.$val.parseAutolink(a);};AY.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,b,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));return;}a.Previous.AppendTokens(b);};AY.prototype.addPreviousText=function(a,b){return this.$val.addPreviousText(a,b);};O=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=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 BJ([]);b=0;c=a.lexer.NextLine();case 1:if(!(!(BD.nil===c))){$s=2;continue;}if(a.Context.Option.VditorWYSIWYG||a.Context.Option.VditorIR||a.Context.Option.VditorSV){if(!A.Equal(c,F.CaretNewlineTokens)&&a.Context.Tip.ParentIs(8,new BK([]))&&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,c,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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);}d=(new BL($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 BD($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(!(!(BG.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,w,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;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=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;}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))&&!E.IsDigit(l)&&!((96===l))&&!((126===l))&&!((35===l))&&!((62===l))&&!((60===l))&&!((95===l))&&!((61===l))&&!((36===l))&&!((91===l))&&!(("\xE2\x80\xB8".charCodeAt(0)===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&&!(BG.nil===d.LastChild)){d.LastChild.LastLineBlank=true;}p=d.Type;q=(11===p)&&d.IsFencedCodeBlock;r=b.Context.blank&&!((p===410)||(p===5)||((p===11)&&q)||((p===300))||((p===8)&&BG.nil===d.FirstChild));s=d;while(true){if(!(!(BG.nil===s))){break;}s.LastLineBlank=r;s=s.Parent;}if(d.AcceptLines()){$s=14;continue;}if(b.Context.offset=1&&u.HtmlBlockType<=5){$s=21;continue;}$s=22;continue;case 21:v=$subslice(b.Context.currentLine,b.Context.offset);if(b.isHTMLBlockClose(v,u.HtmlBlockType)){$s=23;continue;}$s=24;continue;case 23:$r=b.Context.finalize(d,b.Context.lineNum);$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));};AY.prototype.addLine=function(){return this.$val.addLine();};R=function(a,b){var a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=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===(410)){$s=9;continue;}if((c===(2))||(c===(4))){$s=10;continue;}$s=11;continue;case 2:d=S(a,b);$s=12;case 12:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}$s=-1;return d;case 3:$s=-1;return AE(a,b);case 4:$s=-1;return AT(a,b);case 5:$s=-1;return AQ(a,b);case 6:$s=-1;return O(a,b);case 7:e=AR(a,b);$s=13;case 13: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=14;case 14:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}$s=-1;return f;case 9:$s=-1;return AB(a,b);case 10:$s=-1;return 1;case 11: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.$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,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=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;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=E.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=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,U)){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];};AY.prototype.parseFencedCode=function(){return this.$val.parseFencedCode();};AW.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;d=false;e=BD.nil;f=this;g=(0>=a.$length?($throwRuntimeError("index out of range"),undefined):a.$array[a.$offset+0]);if(!((g===b))){h=false;i=BD.nil;d=h;e=i;return[d,e];}if(c>E.Accept(a,g)){j=false;k=BD.nil;d=j;e=k;return[d,e];}a=E.TrimWhitespace(a);l=A.HasSuffix(a,F.CaretTokens);if(f.Option.VditorWYSIWYG||f.Option.VditorIR||f.Option.VditorSV){a=A.ReplaceAll(a,F.CaretTokens,BD.nil);if(l){f.Tip.Tokens=A.TrimSuffix(f.Tip.Tokens,(new BD($stringToBytes("\n"))));f.Tip.Tokens=$appendSlice(f.Tip.Tokens,F.CaretTokens);}}m=a;n=0;while(true){if(!(n=m.$length)?($throwRuntimeError("index out of range"),undefined):m.$array[m.$offset+n]);if(!((o===b))){p=false;q=BD.nil;d=p;e=q;return[d,e];}n++;}e=a;r=true;s=e;d=r;e=s;return[d,e];};AW.prototype.isFencedCodeClose=function(a,b,c){return this.$val.isFencedCodeClose(a,b,c);};AY.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,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);return c;}j=new D.Node.ptr(28,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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,i,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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,$subslice(b.tokens,k,(k+f>>0)),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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.Option.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,BD.nil,false,false,false,f,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);c.AppendChild(j);c.AppendChild(new D.Node.ptr(29,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,m,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil));c.AppendChild(l);b.pos=k+f>>0;return c;};AY.prototype.parseCodeSpan=function(a,b){return this.$val.parseCodeSpan(a,b);};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 D.Node.ptr(16,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,f,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);a.AppendChild(g);if(e.canOpen||e.canClose){b.delimiters=new V.ptr(g,e.typ,e.num,e.num,e.canOpen,e.canClose,b.delimiters,BM.nil,false,false,false,0,BM.nil);if(!(BM.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(BM.nil===b.delimiters){return;}d=BM.nil;e=BM.nil;f=BM.nil;g=d;h=e;i=f;j=BG.nil;k=BG.nil;l=j;m=k;n=BM.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(!(!(BM.nil===h)&&!(h.previous===a))){break;}h=h.previous;}while(true){if(!(!(BM.nil===h))){break;}v=h.typ;if(!h.canClose){h=h.next;continue;}g=h.previous;p=false;while(true){if(!(!(BM.nil===g)&&!(g===a)&&!(g===(w=q[$Uint8.keyFor(v)],w!==undefined?w.v:BM.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 D.Node.ptr(0,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,z,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);ad=new D.Node.ptr(0,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);ae=new D.Node.ptr(0,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,ab,true,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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(!(!(BG.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(!(!(BM.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=C.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=C.DecodeRune($subslice(a.tokens,a.pos));l=t[0];}else{l=((s>>0));}}u=E.IsUnicodeWhitespace(l);v=H.IsPunct(l)||H.IsSymbol(l);if(((42===e)&&(126===l))||((126===e)&&(42===l))){v=false;}w=E.IsUnicodeWhitespace(k);x=H.IsPunct(k)||H.IsSymbol(k);if(((42===e)&&(126===k))||((126===e)&&(42===k))){x=false;}if(b.Context.Option.VditorWYSIWYG||b.Context.Option.VditorIR||b.Context.Option.VditorSV){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 V.ptr(BG.nil,e,f,0,ac,ad,BM.nil,BM.nil,true,false,false,0,BM.nil);};AY.prototype.scanDelims=function(a){return this.$val.scanDelims(a);};AY.ptr.prototype.removeDelimiter=function(a,b){var a,b,c,d;c=BM.nil;d=this;if(!(BM.nil===a.previous)){a.previous.next=a.next;}if(BM.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(!(!(BG.nil===c))){break;}d=c.Next;if((16===c.Type)||(40===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 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.Option.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,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);p=new D.Node.ptr(201,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,BD.nil,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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.Option.EmojiSite+"/"+r+s;p.Type=202;p.Tokens=b.EmojiImgTokens(r,t);}else if(A.Contains(q,W)){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,$subslice(d,i,(h+1>>0)),false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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 F.StrToBytes("\""+a+"\"");};AY.prototype.EmojiImgTokens=function(a,b){return this.$val.EmojiImgTokens(a,b);};X=function(){var a,b,c,d,e,f,g,h,i,j,k,l;a=false;b=false;a=(c=$keys(AA).length,((c<0||c>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=(d=$keys(AA).length,((d<0||d>2147483647)?$throwRuntimeError("makemap: size out of range"):{}));e=AA;f=0;g=$keys(e);while(true){if(!(f2147483647)?$throwRuntimeError("makemap: size out of range"):{}));b=AA;c=0;d=$keys(b);while(true){if(!(cb.indent){return 1;}b.advanceOffset(4,true);return 0;};$pkg.FootnotesContinue=AB;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,BG.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,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.Option.VditorWYSIWYG||e.Context.Option.VditorIR||e.Context.Option.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.Option.VditorWYSIWYG||e.Context.Option.VditorIR||e.Context.Option.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.Option.VditorWYSIWYG||b.Context.Option.VditorIR||b.Context.Option.VditorSV)&&d){b.Context.oldtip.Tokens=E.TrimWhitespace(b.Context.oldtip.Tokens);b.Context.oldtip.AppendTokens(F.CaretTokens);}return a;};AY.prototype.parseSetextHeading=function(){return this.$val.parseSetextHeading();};AY.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.Option.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,AC,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);$s=-1;return c;}e=b.pos;f=$subslice(b.tokens,e);g=A.Index(f,AD);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,AC,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.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,AC,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);$s=-1;return c;}}if(d.Context.Option.VditorWYSIWYG){f=A.ReplaceAll(f,F.CaretTokens,BD.nil);}j=$subslice(f,(h+1>>0),g);b.pos=b.pos+((g+1>>0))>>0;k=A.TrimRight(a.LastChild.Tokens," ");$s=1;case 1:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}a.LastChild.Tokens=k;c=new D.Node.ptr(420,BG.nil,BG.nil,BG.nil,BG.nil,BG.nil,j,false,false,false,0,false,0,0,0,BD.nil,BD.nil,BD.nil,0,BH.nil,false,BI.nil,0,0,0,BD.nil,BD.nil,0,BD.nil,0,false,"",0,BD.nil,"",BJ.nil,BD.nil);$s=-1;return c;}return;}if($f===undefined){$f={$blk:AY.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;};AY.prototype.parseHeadingID=function(a,b){return this.$val.parseHeadingID(a,b);};AE=function(a,b){var a,b;if(b.blank&&((a.HtmlBlockType===6)||(a.HtmlBlockType===7))){return 1;}return 0;};$pkg.HtmlBlockContinue=AE;AF=function(a){var a,b;b=E.TrimRight(E.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=E.AcceptTokenss(a,AH);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,AL);}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=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,AG);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,AI);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("