fix:[Xboard主题] 修复当支付金额为0时固定手续费显示不为0的问题、修复谷歌人机认证无效的问题
This commit is contained in:
1 parent
d73f0decec
commit
384ab2eb2e
3 files changed
+1
-1
No files matched your search
Vendored
+1
-1
@@ -3781,4 +3781,4 @@ ${t}
|
||||
`:">",i)};qa.prototype.renderInline=function(e,t,n){for(var o,r="",i=this.rules,a=0,s=e.length;a<s;a++)o=e[a].type,typeof i[o]<"u"?r+=i[o](e,a,t,n,this):r+=this.renderToken(e,a,t);return r};qa.prototype.renderInlineAsText=function(e,t,n){for(var o="",r=0,i=e.length;r<i;r++)e[r].type==="text"?o+=e[r].content:e[r].type==="image"?o+=this.renderInlineAsText(e[r].children,t,n):e[r].type==="softbreak"&&(o+=`
|
||||
`);return o};qa.prototype.render=function(e,t,n){var o,r,i,a="",s=this.rules;for(o=0,r=e.length;o<r;o++)i=e[o].type,i==="inline"?a+=this.renderInline(e[o].children,t,n):typeof s[i]<"u"?a+=s[i](e,o,t,n,this):a+=this.renderToken(e,o,t,n);return a};var Z8e=qa;function Po(){this.__rules__=[],this.__cache__=null}Po.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Po.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){t.indexOf(o)<0&&t.push(o)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||e.__cache__[n].push(o.fn))})})};Po.prototype.at=function(e,t,n){var o=this.__find__(e),r=n||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__[o].fn=t,this.__rules__[o].alt=r.alt||[],this.__cache__=null};Po.prototype.before=function(e,t,n,o){var r=this.__find__(e),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Po.prototype.after=function(e,t,n,o){var r=this.__find__(e),i=o||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Po.prototype.push=function(e,t,n){var o=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:o.alt||[]}),this.__cache__=null};Po.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(o){var r=this.__find__(o);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,n.push(o)},this),this.__cache__=null,n};Po.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Po.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(o){var r=this.__find__(o);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,n.push(o)},this),this.__cache__=null,n};Po.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var Sm=Po,J8e=/\r\n?|\n/g,Q8e=/\0/g,eIe=function(t){var n;n=t.src.replace(J8e,`
|
||||
`),n=n.replace(Q8e,"�"),t.src=n},tIe=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)},nIe=function(t){var n=t.tokens,o,r,i;for(r=0,i=n.length;r<i;r++)o=n[r],o.type==="inline"&&t.md.inline.parse(o.content,t.md,t.env,o.children)},oIe=Lt.arrayReplaceAt;function rIe(e){return/^<a[>\s]/i.test(e)}function iIe(e){return/^<\/a\s*>/i.test(e)}var aIe=function(t){var n,o,r,i,a,s,l,c,u,d,f,p,h,g,b,m,y=t.tokens,k;if(t.md.options.linkify){for(o=0,r=y.length;o<r;o++)if(!(y[o].type!=="inline"||!t.md.linkify.pretest(y[o].content)))for(i=y[o].children,h=0,n=i.length-1;n>=0;n--){if(s=i[n],s.type==="link_close"){for(n--;i[n].level!==s.level&&i[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(rIe(s.content)&&h>0&&h--,iIe(s.content)&&h++),!(h>0)&&s.type==="text"&&t.md.linkify.test(s.content)){for(u=s.content,k=t.md.linkify.match(u),l=[],p=s.level,f=0,k.length>0&&k[0].index===0&&n>0&&i[n-1].type==="text_special"&&(k=k.slice(1)),c=0;c<k.length;c++)g=k[c].url,b=t.md.normalizeLink(g),t.md.validateLink(b)&&(m=k[c].text,k[c].schema?k[c].schema==="mailto:"&&!/^mailto:/i.test(m)?m=t.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=t.md.normalizeLinkText(m):m=t.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),d=k[c].index,d>f&&(a=new t.Token("text","",0),a.content=u.slice(f,d),a.level=p,l.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",b]],a.level=p++,a.markup="linkify",a.info="auto",l.push(a),a=new t.Token("text","",0),a.content=m,a.level=p,l.push(a),a=new t.Token("link_close","a",-1),a.level=--p,a.markup="linkify",a.info="auto",l.push(a),f=k[c].lastIndex);f<u.length&&(a=new t.Token("text","",0),a.content=u.slice(f),a.level=p,l.push(a)),y[o].children=i=oIe(i,n,l)}}}},LS=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sIe=/\((c|tm|r)\)/i,lIe=/\((c|tm|r)\)/ig,cIe={c:"©",r:"®",tm:"™"};function uIe(e,t){return cIe[t.toLowerCase()]}function dIe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&(n.content=n.content.replace(lIe,uIe)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function fIe(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type==="text"&&!o&&LS.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var hIe=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(sIe.test(t.tokens[n].content)&&dIe(t.tokens[n].children),LS.test(t.tokens[n].content)&&fIe(t.tokens[n].children))},h1=Lt.isWhiteSpace,p1=Lt.isPunctChar,m1=Lt.isMdAsciiPunct,pIe=/['"]/,g1=/['"]/g,v1="’";function ql(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function mIe(e,t){var n,o,r,i,a,s,l,c,u,d,f,p,h,g,b,m,y,k,S,w,x;for(S=[],n=0;n<e.length;n++){for(o=e[n],l=e[n].level,y=S.length-1;y>=0&&!(S[y].level<=l);y--);if(S.length=y+1,o.type==="text"){r=o.content,a=0,s=r.length;e:for(;a<s&&(g1.lastIndex=a,i=g1.exec(r),!!i);){if(b=m=!0,a=i.index+1,k=i[0]==="'",u=32,i.index-1>=0)u=r.charCodeAt(i.index-1);else for(y=n-1;y>=0&&!(e[y].type==="softbreak"||e[y].type==="hardbreak");y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(d=32,a<s)d=r.charCodeAt(a);else for(y=n+1;y<e.length&&!(e[y].type==="softbreak"||e[y].type==="hardbreak");y++)if(e[y].content){d=e[y].content.charCodeAt(0);break}if(f=m1(u)||p1(String.fromCharCode(u)),p=m1(d)||p1(String.fromCharCode(d)),h=h1(u),g=h1(d),g?b=!1:p&&(h||f||(b=!1)),h?m=!1:f&&(g||p||(m=!1)),d===34&&i[0]==='"'&&u>=48&&u<=57&&(m=b=!1),b&&m&&(b=f,m=p),!b&&!m){k&&(o.content=ql(o.content,i.index,v1));continue}if(m){for(y=S.length-1;y>=0&&(c=S[y],!(S[y].level<l));y--)if(c.single===k&&S[y].level===l){c=S[y],k?(w=t.md.options.quotes[2],x=t.md.options.quotes[3]):(w=t.md.options.quotes[0],x=t.md.options.quotes[1]),o.content=ql(o.content,i.index,x),e[c.token].content=ql(e[c.token].content,c.pos,w),a+=x.length-1,c.token===n&&(a+=w.length-1),r=o.content,s=r.length,S.length=y;continue e}}b?S.push({token:n,pos:i.index,single:k,level:l}):m&&k&&(o.content=ql(o.content,i.index,v1))}}}}var gIe=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!=="inline"||!pIe.test(t.tokens[n].content)||mIe(t.tokens[n].children,t)},vIe=function(t){var n,o,r,i,a,s,l=t.tokens;for(n=0,o=l.length;n<o;n++)if(l[n].type==="inline"){for(r=l[n].children,a=r.length,i=0;i<a;i++)r[i].type==="text_special"&&(r[i].type="text");for(i=s=0;i<a;i++)r[i].type==="text"&&i+1<a&&r[i+1].type==="text"?r[i+1].content=r[i].content+r[i+1].content:(i!==s&&(r[s]=r[i]),s++);i!==s&&(r.length=s)}};function Ka(e,t,n){this.type=e,this.tag=t,this.attrs=null,this
Line truncated
|
||||
`,a.map=[n,t.line],!0},SIe=function(t,n,o,r){var i,a,s,l,c,u,d,f=!1,p=t.bMarks[n]+t.tShift[n],h=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||p+3>h||(i=t.src.charCodeAt(p),i!==126&&i!==96)||(c=p,p=t.skipChars(p,i),a=p-c,a<3)||(d=t.src.slice(c,p),s=t.src.slice(p,h),i===96&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(p=c=t.bMarks[l]+t.tShift[l],h=t.eMarks[l],p<h&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(p)===i&&!(t.sCount[l]-t.blkIndent>=4)&&(p=t.skipChars(p,i),!(p-c<a)&&(p=t.skipSpaces(p),!(p<h)))){f=!0;break}return a=t.sCount[n],t.line=l+(f?1:0),u=t.push("fence","code",0),u.info=s,u.content=t.getLines(n+1,l,a,!0),u.markup=d,u.map=[n,t.line],!0},kIe=Lt.isSpace,TIe=function(t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,b,m,y,k,S,w,x,C,_,R=t.lineMax,E=t.bMarks[n]+t.tShift[n],M=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(E)!==62)return!1;if(r)return!0;for(h=[],g=[],y=[],k=[],x=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",f=n;f<o&&(_=t.sCount[f]<t.blkIndent,E=t.bMarks[f]+t.tShift[f],M=t.eMarks[f],!(E>=M));f++){if(t.src.charCodeAt(E++)===62&&!_){for(l=t.sCount[f]+1,t.src.charCodeAt(E)===32?(E++,l++,i=!1,S=!0):t.src.charCodeAt(E)===9?(S=!0,(t.bsCount[f]+l)%4===3?(E++,l++,i=!1):i=!0):S=!1,p=l,h.push(t.bMarks[f]),t.bMarks[f]=E;E<M&&(a=t.src.charCodeAt(E),kIe(a));){a===9?p+=4-(p+t.bsCount[f]+(i?1:0))%4:p++;E++}u=E>=M,g.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(S?1:0),y.push(t.sCount[f]),t.sCount[f]=p-l,k.push(t.tShift[f]),t.tShift[f]=E-t.bMarks[f];continue}if(u)break;for(w=!1,s=0,c=x.length;s<c;s++)if(x[s](t,f,o,!0)){w=!0;break}if(w){t.lineMax=f,t.blkIndent!==0&&(h.push(t.bMarks[f]),g.push(t.bsCount[f]),k.push(t.tShift[f]),y.push(t.sCount[f]),t.sCount[f]-=t.blkIndent);break}h.push(t.bMarks[f]),g.push(t.bsCount[f]),k.push(t.tShift[f]),y.push(t.sCount[f]),t.sCount[f]=-1}for(b=t.blkIndent,t.blkIndent=0,C=t.push("blockquote_open","blockquote",1),C.markup=">",C.map=d=[n,0],t.md.block.tokenize(t,n,f),C=t.push("blockquote_close","blockquote",-1),C.markup=">",t.lineMax=R,t.parentType=m,d[1]=t.line,s=0;s<k.length;s++)t.bMarks[s+n]=h[s],t.tShift[s+n]=k[s],t.sCount[s+n]=y[s],t.bsCount[s+n]=g[s];return t.blkIndent=b,!0},PIe=Lt.isSpace,RIe=function(t,n,o,r){var i,a,s,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c<u;){if(s=t.src.charCodeAt(c++),s!==i&&!PIe(s))return!1;s===i&&a++}return a<3?!1:(r||(t.line=n+1,l=t.push("hr","hr",0),l.map=[n,t.line],l.markup=Array(a+1).join(String.fromCharCode(i))),!0)},NS=Lt.isSpace;function y1(e,t){var n,o,r,i;return o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],n=e.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(i=e.src.charCodeAt(o),!NS(i))?-1:o}function x1(e,t){var n,o=e.bMarks[t]+e.tShift[t],r=o,i=e.eMarks[t];if(r+1>=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<i&&(n=e.src.charCodeAt(r),!NS(n))?-1:r}function EIe(e,t){var n,o,r=e.level+2;for(n=t+2,o=e.tokens.length-2;n<o;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}var $Ie=function(t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,b,m,y,k,S,w,x,C,_,R,E,M,A,q,F,z,D=n,Y=!1,Q=!0;if(t.sCount[D]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[D]-t.listIndent>=4&&t.sCount[D]<t.blkIndent)return!1;if(r&&t.parentType==="paragraph"&&t.sCount[D]>=t.blkIndent&&(Y=!0),(E=x1(t,D))>=0){if(d=!0,A=t.bMarks[D]+t.tShift[D],m=Number(t.src.slice(A,E-1)),Y&&m!==1)return!1}else if((E=y1(t,D))>=0)d=!1;else return!1;if(Y&&t.skipSpaces(E)>=t.eMarks[D])return!1;if(r)return!0;for(b=t.src.charCodeAt(E-1),g=t.tokens.length,d?(z=t.push("ordered_list_open","ol",1),m!==1&&(z.attrs=[["start",m]])):z=t.push("bullet_list_open","ul",1),z.map=h=[D,0],z.markup=String.fromCharCode(b),M=!1,F=t.md.block.ruler.getRules("list"),w=t.parentType,t.parentType="list";D<o;){for(R=E,y=t.eMarks[D],u=k=t.sCount[D]+E-(t.bMarks[D]+t.tShift[D]);R<y;){if(i=t.src.charCodeAt(R),i===9)k+=4-(k+t.bsCount[D])%4;else if(i===32)k++;else break;R++}if(a=R,a>=y?c=1:c=k-u,c>4&&(c=1),l=u+c,z=t.push("list_item_open","li",1),z.markup=String.fromCharCode(b),z.map=f=[D,0],d&&(z.info=t.src.slice(A,E-1)),_=t.tight,C=t.tShift[D],x=t.sCount[D],S=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[D]=a-t.bMarks[D],t.sCount[D]=k,a>=y&&t.isEmpty(D+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,D,o,!0),(!t.tight||M)&&(Q=!1),M=t.line-D>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=S,t.tShift[D]=C,t.sCount[D]=x,t.tight=_,z=t.push("list_item_close","li",-1),z.markup=String.fromCharCode(b),D=t.line,f[1]=D,D>=o||t.sCount[D]<t.blkIndent||t.sCount[D]-t.blkIndent>=4)break;for(q=!1,s=0,p=F.length;s<p;s++)if(F[s](t,D,o,!0)){q=!0;break}if(q)break;if(d){if(E=x1(t,D),E<0)break;A=t.bMarks[D]+t.tShift[D]}else if(E=y1(t,D),E<0)break;if(b!
Line truncated
|
||||
`,a.map=[n,t.line],!0},SIe=function(t,n,o,r){var i,a,s,l,c,u,d,f=!1,p=t.bMarks[n]+t.tShift[n],h=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||p+3>h||(i=t.src.charCodeAt(p),i!==126&&i!==96)||(c=p,p=t.skipChars(p,i),a=p-c,a<3)||(d=t.src.slice(c,p),s=t.src.slice(p,h),i===96&&s.indexOf(String.fromCharCode(i))>=0))return!1;if(r)return!0;for(l=n;l++,!(l>=o||(p=c=t.bMarks[l]+t.tShift[l],h=t.eMarks[l],p<h&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(p)===i&&!(t.sCount[l]-t.blkIndent>=4)&&(p=t.skipChars(p,i),!(p-c<a)&&(p=t.skipSpaces(p),!(p<h)))){f=!0;break}return a=t.sCount[n],t.line=l+(f?1:0),u=t.push("fence","code",0),u.info=s,u.content=t.getLines(n+1,l,a,!0),u.markup=d,u.map=[n,t.line],!0},kIe=Lt.isSpace,TIe=function(t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,b,m,y,k,S,w,x,C,_,R=t.lineMax,E=t.bMarks[n]+t.tShift[n],M=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(E)!==62)return!1;if(r)return!0;for(h=[],g=[],y=[],k=[],x=t.md.block.ruler.getRules("blockquote"),m=t.parentType,t.parentType="blockquote",f=n;f<o&&(_=t.sCount[f]<t.blkIndent,E=t.bMarks[f]+t.tShift[f],M=t.eMarks[f],!(E>=M));f++){if(t.src.charCodeAt(E++)===62&&!_){for(l=t.sCount[f]+1,t.src.charCodeAt(E)===32?(E++,l++,i=!1,S=!0):t.src.charCodeAt(E)===9?(S=!0,(t.bsCount[f]+l)%4===3?(E++,l++,i=!1):i=!0):S=!1,p=l,h.push(t.bMarks[f]),t.bMarks[f]=E;E<M&&(a=t.src.charCodeAt(E),kIe(a));){a===9?p+=4-(p+t.bsCount[f]+(i?1:0))%4:p++;E++}u=E>=M,g.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(S?1:0),y.push(t.sCount[f]),t.sCount[f]=p-l,k.push(t.tShift[f]),t.tShift[f]=E-t.bMarks[f];continue}if(u)break;for(w=!1,s=0,c=x.length;s<c;s++)if(x[s](t,f,o,!0)){w=!0;break}if(w){t.lineMax=f,t.blkIndent!==0&&(h.push(t.bMarks[f]),g.push(t.bsCount[f]),k.push(t.tShift[f]),y.push(t.sCount[f]),t.sCount[f]-=t.blkIndent);break}h.push(t.bMarks[f]),g.push(t.bsCount[f]),k.push(t.tShift[f]),y.push(t.sCount[f]),t.sCount[f]=-1}for(b=t.blkIndent,t.blkIndent=0,C=t.push("blockquote_open","blockquote",1),C.markup=">",C.map=d=[n,0],t.md.block.tokenize(t,n,f),C=t.push("blockquote_close","blockquote",-1),C.markup=">",t.lineMax=R,t.parentType=m,d[1]=t.line,s=0;s<k.length;s++)t.bMarks[s+n]=h[s],t.tShift[s+n]=k[s],t.sCount[s+n]=y[s],t.bsCount[s+n]=g[s];return t.blkIndent=b,!0},PIe=Lt.isSpace,RIe=function(t,n,o,r){var i,a,s,l,c=t.bMarks[n]+t.tShift[n],u=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(i=t.src.charCodeAt(c++),i!==42&&i!==45&&i!==95))return!1;for(a=1;c<u;){if(s=t.src.charCodeAt(c++),s!==i&&!PIe(s))return!1;s===i&&a++}return a<3?!1:(r||(t.line=n+1,l=t.push("hr","hr",0),l.map=[n,t.line],l.markup=Array(a+1).join(String.fromCharCode(i))),!0)},NS=Lt.isSpace;function y1(e,t){var n,o,r,i;return o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],n=e.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<r&&(i=e.src.charCodeAt(o),!NS(i))?-1:o}function x1(e,t){var n,o=e.bMarks[t]+e.tShift[t],r=o,i=e.eMarks[t];if(r+1>=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),n>=48&&n<=57){if(r-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return r<i&&(n=e.src.charCodeAt(r),!NS(n))?-1:r}function EIe(e,t){var n,o,r=e.level+2;for(n=t+2,o=e.tokens.length-2;n<o;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}var $Ie=function(t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,b,m,y,k,S,w,x,C,_,R,E,M,A,q,F,z,D=n,Y=!1,Q=!0;if(t.sCount[D]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[D]-t.listIndent>=4&&t.sCount[D]<t.blkIndent)return!1;if(r&&t.parentType==="paragraph"&&t.sCount[D]>=t.blkIndent&&(Y=!0),(E=x1(t,D))>=0){if(d=!0,A=t.bMarks[D]+t.tShift[D],m=Number(t.src.slice(A,E-1)),Y&&m!==1)return!1}else if((E=y1(t,D))>=0)d=!1;else return!1;if(Y&&t.skipSpaces(E)>=t.eMarks[D])return!1;if(r)return!0;for(b=t.src.charCodeAt(E-1),g=t.tokens.length,d?(z=t.push("ordered_list_open","ol",1),m!==1&&(z.attrs=[["start",m]])):z=t.push("bullet_list_open","ul",1),z.map=h=[D,0],z.markup=String.fromCharCode(b),M=!1,F=t.md.block.ruler.getRules("list"),w=t.parentType,t.parentType="list";D<o;){for(R=E,y=t.eMarks[D],u=k=t.sCount[D]+E-(t.bMarks[D]+t.tShift[D]);R<y;){if(i=t.src.charCodeAt(R),i===9)k+=4-(k+t.bsCount[D])%4;else if(i===32)k++;else break;R++}if(a=R,a>=y?c=1:c=k-u,c>4&&(c=1),l=u+c,z=t.push("list_item_open","li",1),z.markup=String.fromCharCode(b),z.map=f=[D,0],d&&(z.info=t.src.slice(A,E-1)),_=t.tight,C=t.tShift[D],x=t.sCount[D],S=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=l,t.tight=!0,t.tShift[D]=a-t.bMarks[D],t.sCount[D]=k,a>=y&&t.isEmpty(D+1)?t.line=Math.min(t.line+2,o):t.md.block.tokenize(t,D,o,!0),(!t.tight||M)&&(Q=!1),M=t.line-D>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=S,t.tShift[D]=C,t.sCount[D]=x,t.tight=_,z=t.push("list_item_close","li",-1),z.markup=String.fromCharCode(b),D=t.line,f[1]=D,D>=o||t.sCount[D]<t.blkIndent||t.sCount[D]-t.blkIndent>=4)break;for(q=!1,s=0,p=F.length;s<p;s++)if(F[s](t,D,o,!0)){q=!0;break}if(q)break;if(d){if(E=x1(t,D),E<0)break;A=t.bMarks[D]+t.tShift[D]}else if(E=y1(t,D),E<0)break;if(b!
Line truncated
|
||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user