/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):pi(t[0]):t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;let s=Ly(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=cye(t[2],"()");if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),Mq(t,{href:r&&r.replace(this.rules.inline._escapes,"$1"),title:o&&o.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let r=(i[2]||i[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return Mq(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let o=r[1]||r[2]||"";if(!o||o&&(i===""||this.rules.inline.punctuation.exec(i))){let s=r[0].length-1,a,l,u=s,c=0,h=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(r=h.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=a.length,r[3]||r[4]){u+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){c+=l;continue}if(u-=l,u>0)continue;if(l=Math.min(l,l+u+c),Math.min(s,l)%2){let g=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}let d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(/\n/g," "),r=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return r&&o&&(i=i.substring(1,i.length-1)),i=pi(i,!0),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){let i=this.rules.inline.autolink.exec(e);if(i){let r,o;return i[2]==="@"?(r=pi(this.options.mangle?t(i[1]):i[1]),o="mailto:"+r):(r=pi(i[1]),o=r),{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(e,t){let i;if(i=this.rules.inline.url.exec(e)){let r,o;if(i[2]==="@")r=pi(this.options.mangle?t(i[0]):i[0]),o="mailto:"+r;else{let s;do s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0];while(s!==i[0]);r=pi(i[0]),i[1]==="www."?o="http://"+r:o=r}return{type:"link",raw:i[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e,t){let i=this.rules.inline.text.exec(e);if(i){let r;return this.lexer.state.inRawBlock?r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):pi(i[0]):i[0]:r=pi(this.options.smartypants?t(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}},me={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Fy,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};me._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;me._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;me.def=ft(me.def).replace("label",me._label).replace("title",me._title).getRegex();me.bullet=/(?:[*+-]|\d{1,9}[.)])/;me.listItemStart=ft(/^( *)(bull) */).replace("bull",me.bullet).getRegex();me.list=ft(me.list).replace(/bull/g,me.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+me.def.source+")").getRegex();me._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";me._comment=/|$)/;me.html=ft(me.html,"i").replace("comment",me._comment).replace("tag",me._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();me.paragraph=ft(me._paragraph).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.blockquote=ft(me.blockquote).replace("paragraph",me.paragraph).getRegex();me.normal=Wr({},me);me.gfm=Wr({},me.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});me.gfm.table=ft(me.gfm.table).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.gfm.paragraph=ft(me._paragraph).replace("hr",me.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",me.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",me._tag).getRegex();me.pedantic=Wr({},me.normal,{html:ft(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",me._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fy,paragraph:ft(me.normal._paragraph).replace("hr",me.hr).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",me.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Fy,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Fy,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";oe.punctuation=ft(oe.punctuation).replace(/punctuation/g,oe._punctuation).getRegex();oe.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;oe.escapedEmSt=/\\\*|\\_/g;oe._comment=ft(me._comment).replace("(?:-->|$)","-->").getRegex();oe.emStrong.lDelim=ft(oe.emStrong.lDelim).replace(/punct/g,oe._punctuation).getRegex();oe.emStrong.rDelimAst=ft(oe.emStrong.rDelimAst,"g").replace(/punct/g,oe._punctuation).getRegex();oe.emStrong.rDelimUnd=ft(oe.emStrong.rDelimUnd,"g").replace(/punct/g,oe._punctuation).getRegex();oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;oe._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;oe.autolink=ft(oe.autolink).replace("scheme",oe._scheme).replace("email",oe._email).getRegex();oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;oe.tag=ft(oe.tag).replace("comment",oe._comment).replace("attribute",oe._attribute).getRegex();oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;oe._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;oe.link=ft(oe.link).replace("label",oe._label).replace("href",oe._href).replace("title",oe._title).getRegex();oe.reflink=ft(oe.reflink).replace("label",oe._label).replace("ref",me._label).getRegex();oe.nolink=ft(oe.nolink).replace("ref",me._label).getRegex();oe.reflinkSearch=ft(oe.reflinkSearch,"g").replace("reflink",oe.reflink).replace("nolink",oe.nolink).getRegex();oe.normal=Wr({},oe);oe.pedantic=Wr({},oe.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ft(/^!?\[(label)\]\((.*?)\)/).replace("label",oe._label).getRegex(),reflink:ft(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oe._label).getRegex()});oe.gfm=Wr({},oe.normal,{escape:ft(oe.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\(i=a.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),i.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+i.raw,r.text+=`
@@ -94,9 +94,9 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"An
`+i.raw,r.text+=`
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&r.type==="text"?(r.raw+=`
`+i.raw,r.text+=`
-`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+kH("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+kH("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,PH)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,PH))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,Lpe)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},ab=class{constructor(e){this.options=e||gc}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+`
-`,r?'
'+(i?e:ui(e,!0))+`
-`:""+(i?e:ui(e,!0))+`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if(e){let a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let i,r,o,s=e,a,l,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+Aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+Aq("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(u=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(i=c.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),r=t[t.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.emStrong(e,s,u)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.codespan(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.br(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.del(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.autolink(e,Oq)){e=e.substring(i.raw.length),t.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(e,Oq))){e=e.substring(i.raw.length),t.push(i);continue}if(o=e,this.options.extensions&&this.options.extensions.startInline){let c=1/0,h=e.slice(1),d;this.options.extensions.startInline.forEach(function(g){d=g.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(o=e.substring(0,c+1))}if(i=this.tokenizer.inlineText(o,dye)){e=e.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),l=!0,r=t[t.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return t}},jy=class{constructor(e){this.options=e||kc}code(e,t,i){let r=(t||"").match(/\S*/)[0];if(this.options.highlight){let o=this.options.highlight(e,r);o!=null&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+`
+`,r?''+(i?e:pi(e,!0))+`
+`:""+(i?e:pi(e,!0))+`
`}blockquote(e){return`
`+e+`
`}html(e){return e}heading(e,t,i,r){return this.options.headerIds?"
@@ -114,192 +114,194 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"An
`}tablerow(e){return`
`+e+`
`}tablecell(e,t){let i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+""+i+`>
-`}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+"
"}br(){return this.options.xhtml?"
":"
"}del(e){return""+e+""}link(e,t,i){if(e=SH(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='"+i+"",r}image(e,t,i){if(e=SH(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='":">",r}text(e){return e}},j0=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},A0=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},io=class{constructor(e){this.options=e||gc,this.options.renderer=this.options.renderer||new ab,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j0,this.slugger=new A0}static parse(e,t){return new io(t).parse(e)}static parseInline(e,t){return new io(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,f,p,b,v,w,D,S,F,L,j=e.length;for(r=0;r0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=F+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=F+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:F}):v+=F),v+=this.parse(w.tokens,b),d+=this.renderer.listitem(v,S,D);i+=this.renderer.list(d,f,p);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=fe.defaults.renderer||new ab;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=fe.defaults.tokenizer||new sb;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=fe.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),fe.setOptions(e)})};fe.walkTokens=function(n,e){for(let t of n)switch(e.call(fe,t),t.type){case"table":{for(let i of t.header)fe.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)fe.walkTokens(r.tokens,e);break}case"list":{fe.walkTokens(t.items,e);break}default:fe.defaults.extensions&&fe.defaults.extensions.childTokens&&fe.defaults.extensions.childTokens[t.type]?fe.defaults.extensions.childTokens[t.type].forEach(function(i){fe.walkTokens(t[i],e)}):t.tokens&&fe.walkTokens(t.tokens,e)}};fe.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=Rr({},fe.defaults,e||{}),LH(e);try{let t=to.lexInline(n,e);return e.walkTokens&&fe.walkTokens(t,e.walkTokens),io.parseInline(t,e)}catch(t){if(t.message+=`
-Please report this to https://github.com/markedjs/marked.`,e.silent)return"An error occurred:
"+ui(t.message+"",!0)+"
";throw t}};fe.Parser=io;fe.parser=io.parse;fe.Renderer=ab;fe.TextRenderer=j0;fe.Lexer=to;fe.lexer=to.lex;fe.Tokenizer=sb;fe.Slugger=A0;fe.parse=fe;W_e=fe.options,Z_e=fe.setOptions,J_e=fe.use,$_e=fe.walkTokens,X_e=fe.parseInline,U_e=io.parse,G_e=to.lex});var OH=m((K_e,AH)=>{var jH={};AH.exports=jH;var IH={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(IH).forEach(function(n){var e=IH[n],t=jH[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var NH=m((z_e,MH)=>{var lg=process.argv;MH.exports=function(){return lg.indexOf("--no-color")!==-1||lg.indexOf("--color=false")!==-1?!1:lg.indexOf("--color")!==-1||lg.indexOf("--color=true")!==-1||lg.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var HH=m((V_e,BH)=>{BH.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var YH=m((eRe,qH)=>{qH.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var f=["up","mid","down"];for(var p in f)for(var b=f[p],v=0;v<=d[b];v++)c[b]&&(h=h+i[b][s(i[b].length)])}return h}return l(e)}});var ZH=m((tRe,WH)=>{var O0=fc();WH.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return O0.red(n);case 1:return O0.white(n);case 2:return O0.blue(n)}}}()});var $H=m((iRe,JH)=>{var Fpe=fc();JH.exports=function(n,e,t){return e%2===0?n:Fpe.inverse(n)}});var UH=m((nRe,XH)=>{var Ipe=fc();XH.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:Ipe[n[t++%n.length]](e)}}()});var QH=m((rRe,GH)=>{var jpe=fc();GH.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:jpe[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var fc=m((sRe,iq)=>{var tt={};iq.exports=tt;tt.themes={};var Ks=tt.styles=OH(),VH=Object.defineProperties;tt.supportsColor=NH();typeof tt.enabled>"u"&&(tt.enabled=tt.supportsColor);tt.stripColors=tt.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var oRe=tt.stylize=function(e,t){return Ks[t].open+e+Ks[t].close},Ape=/[|\\{}()[\]^$+*?.]/g,Ope=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(Ape,"\\$&")};function eq(n){var e=function t(){return Npe.apply(t,arguments)};return e._styles=n,e.__proto__=Mpe,e}var tq=function(){var n={};return Ks.grey=Ks.gray,Object.keys(Ks).forEach(function(e){Ks[e].closeRe=new RegExp(Ope(Ks[e].close),"g"),n[e]={get:function(){return eq(this._styles.concat(e))}}}),n}(),Mpe=VH(function(){},tq);function Npe(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i{var qpe=fc();nq.exports=qpe});var sq=m(pc=>{pc.repeat=function(n,e){return Array(e+1).join(n)};pc.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};pc.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function oq(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},oq(n[t],e[t])):n[t]=e[t]);return n}pc.options=oq;pc.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(`
-`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var aq=m((uRe,N0)=>{var Ype=rq(),ml=sq(),M0=ml.repeat,Wpe=ml.truncate,Zpe=ml.pad;function ug(n){this.options=ml.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}ug.prototype.__proto__=Array.prototype;ug.prototype.__defineGetter__("width",function(){var n=this.toString().split(`
-`);return n.length?n[0].length:0});ug.prototype.render;ug.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(v){if(typeof v=="object"&&v.length)u(v);else{var w=Object.keys(v)[0],D=v[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof D=="object"&&D.length?u(D,1):s[1]=Math.max(s[1]||0,c(D)||0)}})}a=(s.length==1?s[0]:s.reduce(function(v,w){return v+w}))+s.length+1;function u(v,D){var D=D||0;v.forEach(function(S,F){s[F+D]=Math.max(s[F+D]||0,c(S)||0)})}function c(v){return typeof v=="object"&&v.width!=null?v.width:(typeof v=="object"?ml.strlen(v.text):ml.strlen(v))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(L,w,D,S){var F=0,L=w+M0(L,a-2)+D;return s.forEach(function(j,W){W!=s.length-1&&(F+=j+1,L=L.substr(0,F)+S+L.substr(F+1))}),f(e.style.border,L)}function d(){var v=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);v&&(n+=v+`
-`)}function g(v,w){var D=[],S=0;if(!Array.isArray(v)&&typeof v=="object"){var F=Object.keys(v)[0],L=v[F],j=!0;Array.isArray(L)?(v=L,v.unshift(F)):v=[F,L]}v.forEach(function(N,I){var M=N.toString().split(`
-`).reduce(function(K,ae){return K.push(p(ae,I)),K},[]),J=M.length;J>S&&(S=J),D.push({contents:M,height:J})});var W=new Array(S);D.forEach(function(N,I){N.contents.forEach(function(K,ae){W[ae]||(W[ae]=[]),(w||j&&I===0&&e.style.head)&&(K=f(e.style.head,K)),W[ae].push(K)});for(var M=N.height,J=S;M0&&(B+=`
-`+f(e.style.border,r.left)),B+=N.join(f(e.style.border,r.middle))+f(e.style.border,r.right)}),f(e.style.border,r.left)+B}function f(v,w){return w?(v.forEach(function(D){w=Ype[D](w)}),w):""}function p(D,w){var D=String(typeof D=="object"&&D.text?D.text:D),S=ml.strlen(D),F=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),L=e.colAligns[w]||"left";return M0(" ",t["padding-left"]||0)+(S==F?D:S{"use strict";var lq=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,uq=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function Jpe(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=lq(),e.color.ansi16m=uq(),e.bgColor.ansi256=lq(10),e.bgColor.ansi16m=uq(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(cq,"exports",{enumerable:!0,get:Jpe})});function dq(n){return`${yi.default.gray.open}${n}${yi.default.gray.close}`}function B0(n){return`${yi.default.magenta.open}${n}${yi.default.magenta.close}`}function gq(n){return`${yi.default.bold.open}${n}${yi.default.bold.close}`}function H0(n){return`${yi.default.underline.open}${n}${yi.default.underline.close}`}function fq(n){return`${yi.default.strikethrough.open}${n}${yi.default.strikethrough.close}`}function pq(n){return`${yi.default.italic.open}${n}${yi.default.italic.close}`}function mq(n){return`${yi.default.yellow.open}${n}${yi.default.yellow.close}`}function q0(n){return`${yi.default.blue.open}${n}${yi.default.blue.close}`}var yi,bq=_(()=>{"use strict";yi=C(hq())});function Lr(n){return n}function Qpe(n){return dq(n.replace(/(<([^>]+)>)/ig,""))}function yq(n,e){return e?n.replace(Gpe,/\n/g):n}function zpe(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function Vpe(n,e){return e&&n+e.split(`
+`}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+"
"}br(){return this.options.xhtml?"
":"
"}del(e){return""+e+""}link(e,t,i){if(e=Iq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='"+i+"",r}image(e,t,i){if(e=Iq(this.options.sanitize,this.options.baseUrl,e),e===null)return i;let r='":">",r}text(e){return e}},RT=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,i){return""+i}image(e,t,i){return""+i}br(){return""}},LT=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let i=e,r=0;if(this.seen.hasOwnProperty(i)){r=this.seen[e];do r++,i=e+"-"+r;while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=r,this.seen[i]=0),i}slug(e,t={}){let i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)}},wo=class{constructor(e){this.options=e||kc,this.options.renderer=this.options.renderer||new jy,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new RT,this.slugger=new LT}static parse(e,t){return new wo(t).parse(e)}static parseInline(e,t){return new wo(t).parseInline(e)}parse(e,t=!0){let i="",r,o,s,a,l,u,c,h,d,g,p,f,m,b,w,D,T,R,N,H=e.length;for(r=0;r0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=R+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=R+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:R}):b+=R),b+=this.parse(w.tokens,m),d+=this.renderer.listitem(b,T,D);i+=this.renderer.list(d,p,f);continue}case"html":{i+=this.renderer.html(g.text);continue}case"paragraph":{i+=this.renderer.paragraph(this.parseInline(g.tokens));continue}case"text":{for(d=g.tokens?this.parseInline(g.tokens):g.text;r+1{if(r.extensions&&(i=!0,r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){let s=t.renderers?t.renderers[o.name]:null;s?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[o.level]?t[o.level].unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}o.childTokens&&(t.childTokens[o.name]=o.childTokens)})),r.renderer){let o=Ce.defaults.renderer||new jy;for(let s in r.renderer){let a=o[s];o[s]=(...l)=>{let u=r.renderer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.renderer=o}if(r.tokenizer){let o=Ce.defaults.tokenizer||new Iy;for(let s in r.tokenizer){let a=o[s];o[s]=(...l)=>{let u=r.tokenizer[s].apply(o,l);return u===!1&&(u=a.apply(o,l)),u}}e.tokenizer=o}if(r.walkTokens){let o=Ce.defaults.walkTokens;e.walkTokens=function(s){r.walkTokens.call(this,s),o&&o.call(this,s)}}i&&(e.extensions=t),Ce.setOptions(e)})};Ce.walkTokens=function(n,e){for(let t of n)switch(e.call(Ce,t),t.type){case"table":{for(let i of t.header)Ce.walkTokens(i.tokens,e);for(let i of t.rows)for(let r of i)Ce.walkTokens(r.tokens,e);break}case"list":{Ce.walkTokens(t.items,e);break}default:Ce.defaults.extensions&&Ce.defaults.extensions.childTokens&&Ce.defaults.extensions.childTokens[t.type]?Ce.defaults.extensions.childTokens[t.type].forEach(function(i){Ce.walkTokens(t[i],e)}):t.tokens&&Ce.walkTokens(t.tokens,e)}};Ce.parseInline=function(n,e){if(typeof n>"u"||n===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof n!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected");e=Wr({},Ce.defaults,e||{}),Hq(e);try{let t=vo.lexInline(n,e);return e.walkTokens&&Ce.walkTokens(t,e.walkTokens),wo.parseInline(t,e)}catch(t){if(t.message+=`
+Please report this to https://github.com/markedjs/marked.`,e.silent)return"An error occurred:
"+pi(t.message+"",!0)+"
";throw t}};Ce.Parser=wo;Ce.parser=wo.parse;Ce.Renderer=jy;Ce.TextRenderer=RT;Ce.Lexer=vo;Ce.lexer=vo.lex;Ce.Tokenizer=Iy;Ce.Slugger=LT;Ce.parse=Ce;_Le=Ce.options,RLe=Ce.setOptions,LLe=Ce.use,FLe=Ce.walkTokens,ILe=Ce.parseInline,jLe=wo.parse,ALe=vo.lex});var Jq=y((OLe,Zq)=>{var Wq={};Zq.exports=Wq;var Yq={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(Yq).forEach(function(n){var e=Yq[n],t=Wq[n]=[];t.open="\x1B["+e[0]+"m",t.close="\x1B["+e[1]+"m"})});var Xq=y((NLe,$q)=>{var Rg=process.argv;$q.exports=function(){return Rg.indexOf("--no-color")!==-1||Rg.indexOf("--color=false")!==-1?!1:Rg.indexOf("--color")!==-1||Rg.indexOf("--color=true")!==-1||Rg.indexOf("--color=always")!==-1?!0:process.stdout&&!process.stdout.isTTY?!1:process.platform==="win32"||"COLORTERM"in process.env?!0:process.env.TERM==="dumb"?!1:!!/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)}()});var Gq=y((BLe,Uq)=>{Uq.exports=function(e,t){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var r={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(o){o=o.toLowerCase();var s=r[o]||[" "],a=Math.floor(Math.random()*s.length);typeof r[o]<"u"?i+=r[o][a]:i+=o}),i}});var Qq=y((HLe,Kq)=>{Kq.exports=function(e,t){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},r=[].concat(i.up,i.down,i.mid),o={};function s(u){var c=Math.floor(Math.random()*u);return c}function a(u){var c=!1;return r.filter(function(h){c=h===u}),c}function l(u,c){var h="",d,g;c=c||{},c.up=c.up||!0,c.mid=c.mid||!0,c.down=c.down||!0,c.size=c.size||"maxi",u=u.split("");for(g in u)if(!a(g)){switch(h=h+u[g],d={up:0,down:0,mid:0},c.size){case"mini":d.up=s(8),d.min=s(2),d.down=s(8);break;case"maxi":d.up=s(16)+3,d.min=s(4)+1,d.down=s(64)+3;break;default:d.up=s(8)+1,d.mid=s(6)/2,d.down=s(8)+1;break}var p=["up","mid","down"];for(var f in p)for(var m=p[f],b=0;b<=d[m];b++)c[m]&&(h=h+i[m][s(i[m].length)])}return h}return l(e)}});var Vq=y((qLe,zq)=>{var FT=Ec();zq.exports=function(){return function(n,e,t){if(n===" ")return n;switch(e%3){case 0:return FT.red(n);case 1:return FT.white(n);case 2:return FT.blue(n)}}}()});var t2=y((YLe,e2)=>{var gye=Ec();e2.exports=function(n,e,t){return e%2===0?n:gye.inverse(n)}});var n2=y((WLe,i2)=>{var pye=Ec();i2.exports=function(){var n=["red","yellow","green","blue","magenta"];return function(e,t,i){return e===" "?e:pye[n[t++%n.length]](e)}}()});var o2=y((ZLe,r2)=>{var fye=Ec();r2.exports=function(){var n=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta"];return function(e,t,i){return e===" "?e:fye[n[Math.round(Math.random()*(n.length-1))]](e)}}()});var Ec=y(($Le,h2)=>{var lt={};h2.exports=lt;lt.themes={};var ca=lt.styles=Jq(),l2=Object.defineProperties;lt.supportsColor=Xq();typeof lt.enabled>"u"&&(lt.enabled=lt.supportsColor);lt.stripColors=lt.strip=function(n){return(""+n).replace(/\x1B\[\d+m/g,"")};var JLe=lt.stylize=function(e,t){return ca[t].open+e+ca[t].close},mye=/[|\\{}()[\]^$+*?.]/g,yye=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(mye,"\\$&")};function u2(n){var e=function t(){return vye.apply(t,arguments)};return e._styles=n,e.__proto__=bye,e}var c2=function(){var n={};return ca.grey=ca.gray,Object.keys(ca).forEach(function(e){ca[e].closeRe=new RegExp(yye(ca[e].close),"g"),n[e]={get:function(){return u2(this._styles.concat(e))}}}),n}(),bye=l2(function(){},c2);function vye(){var n=arguments,e=n.length,t=e!==0&&String(arguments[0]);if(e>1)for(var i=1;i{var Cye=Ec();d2.exports=Cye});var f2=y(Pc=>{Pc.repeat=function(n,e){return Array(e+1).join(n)};Pc.pad=function(n,e,t,i){if(e+1>=n.length)switch(i){case"left":n=Array(e+1-n.length).join(t)+n;break;case"both":var r=Math.ceil((padlen=e-n.length)/2),o=padlen-r;n=Array(o+1).join(t)+n+Array(r+1).join(t);break;default:n=n+Array(e+1-n.length).join(t)}return n};Pc.truncate=function(n,e,t){return t=t||"\u2026",n.length>=e?n.substr(0,e-t.length)+t:n};function p2(n,e){for(var t in e)t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]&&e[t].constructor&&e[t].constructor===Object?(n[t]=n[t]||{},p2(n[t],e[t])):n[t]=e[t]);return n}Pc.options=p2;Pc.strlen=function(n){var e=/\u001b\[(?:\d*;){0,5}\d*m/g,t=(""+n).replace(e,""),i=t.split(`
+`);return i.reduce(function(r,o){return o.length>r?o.length:r},0)}});var m2=y((GLe,jT)=>{var xye=g2(),Ll=f2(),IT=Ll.repeat,Sye=Ll.truncate,Tye=Ll.pad;function Lg(n){this.options=Ll.options({chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],colAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]},n)}Lg.prototype.__proto__=Array.prototype;Lg.prototype.__defineGetter__("width",function(){var n=this.toString().split(`
+`);return n.length?n[0].length:0});Lg.prototype.render;Lg.prototype.toString=function(){var n="",e=this.options,t=e.style,i=e.head,r=e.chars,o=e.truncate,s=e.colWidths||new Array(this.head.length),a=0;if(!i.length&&!this.length)return"";if(!s.length){var l=this.slice(0);i.length&&(l=l.concat([i])),l.forEach(function(b){if(typeof b=="object"&&b.length)u(b);else{var w=Object.keys(b)[0],D=b[w];s[0]=Math.max(s[0]||0,c(w)||0),typeof D=="object"&&D.length?u(D,1):s[1]=Math.max(s[1]||0,c(D)||0)}})}a=(s.length==1?s[0]:s.reduce(function(b,w){return b+w}))+s.length+1;function u(b,D){var D=D||0;b.forEach(function(T,R){s[R+D]=Math.max(s[R+D]||0,c(T)||0)})}function c(b){return typeof b=="object"&&b.width!=null?b.width:(typeof b=="object"?Ll.strlen(b.text):Ll.strlen(b))+(t["padding-left"]||0)+(t["padding-right"]||0)}function h(N,w,D,T){var R=0,N=w+IT(N,a-2)+D;return s.forEach(function(H,X){X!=s.length-1&&(R+=H+1,N=N.substr(0,R)+T+N.substr(R+1))}),p(e.style.border,N)}function d(){var b=h(r.top,r["top-left"]||r.top,r["top-right"]||r.top,r["top-mid"]);b&&(n+=b+`
+`)}function g(b,w){var D=[],T=0;if(!Array.isArray(b)&&typeof b=="object"){var R=Object.keys(b)[0],N=b[R],H=!0;Array.isArray(N)?(b=N,b.unshift(R)):b=[R,N]}b.forEach(function(M,F){var O=M.toString().split(`
+`).reduce(function(ie,ge){return ie.push(f(ge,F)),ie},[]),Z=O.length;Z>T&&(T=Z),D.push({contents:O,height:Z})});var X=new Array(T);D.forEach(function(M,F){M.contents.forEach(function(ie,ge){X[ge]||(X[ge]=[]),(w||H&&F===0&&e.style.head)&&(ie=p(e.style.head,ie)),X[ge].push(ie)});for(var O=M.height,Z=T;O0&&(B+=`
+`+p(e.style.border,r.left)),B+=M.join(p(e.style.border,r.middle))+p(e.style.border,r.right)}),p(e.style.border,r.left)+B}function p(b,w){return w?(b.forEach(function(D){w=xye[D](w)}),w):""}function f(D,w){var D=String(typeof D=="object"&&D.text?D.text:D),T=Ll.strlen(D),R=s[w]-(t["padding-left"]||0)-(t["padding-right"]||0),N=e.colAligns[w]||"left";return IT(" ",t["padding-left"]||0)+(T==R?D:T{"use strict";var y2=(n=0)=>e=>`\x1B[${38+n};5;${e}m`,b2=(n=0)=>(e,t,i)=>`\x1B[${38+n};2;${e};${t};${i}m`;function kye(){let n=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,i]of Object.entries(e)){for(let[r,o]of Object.entries(i))e[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[r]=e[r],n.set(o[0],o[1]);Object.defineProperty(e,t,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:n,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi256=y2(),e.color.ansi16m=b2(),e.bgColor.ansi256=y2(10),e.bgColor.ansi16m=b2(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,i,r)=>t===i&&i===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:t=>{let i=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!i)return[0,0,0];let{colorString:r}=i.groups;r.length===3&&(r=r.split("").map(s=>s+s).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1}}),e}Object.defineProperty(v2,"exports",{enumerable:!0,get:kye})});function D2(n){return`${Ti.default.gray.open}${n}${Ti.default.gray.close}`}function AT(n){return`${Ti.default.magenta.open}${n}${Ti.default.magenta.close}`}function C2(n){return`${Ti.default.bold.open}${n}${Ti.default.bold.close}`}function MT(n){return`${Ti.default.underline.open}${n}${Ti.default.underline.close}`}function x2(n){return`${Ti.default.strikethrough.open}${n}${Ti.default.strikethrough.close}`}function S2(n){return`${Ti.default.italic.open}${n}${Ti.default.italic.close}`}function T2(n){return`${Ti.default.yellow.open}${n}${Ti.default.yellow.close}`}function OT(n){return`${Ti.default.blue.open}${n}${Ti.default.blue.close}`}var Ti,k2=_(()=>{"use strict";Ti=x(w2())});function Zr(n){return n}function Lye(n){return D2(n.replace(/(<([^>]+)>)/ig,""))}function E2(n,e){return e?n.replace(Rye,/\n/g):n}function Iye(n,e){return e.replace(/(^|\n)(.+)/g,"$1"+n+"$2")}function jye(n,e){return e&&n+e.split(`
`).join(`
-`+n)}function ime(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+Sq+"(?:.*)+)$","gm");return n.replace(t,`$1
-`+e+"$2$3")}function kq(n){return" ".repeat(n.length)}function nme(n,e){return Tq(e,n)?e:kq(Z0)+e}function rme(n,e){let t=nme.bind(null,e);return n.split(`
-`).filter(Lr).map(t).join(`
-`)}function ome(n,e,t){return Tq(e,n)?{num:t+1,line:e.replace(Z0,vq(t+1))}:{num:t,line:kq(vq(t))+e}}function sme(n,e){let t=ome.bind(null,e),i=0;return n.split(`
-`).filter(Lr).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(`
-`)}function ame(n,e,t){return n=n.trim(),n=e?sme(n,t):rme(n,t),n}function cg(n){return n+`
+`+n)}function Oye(n,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+I2+"(?:.*)+)$","gm");return n.replace(t,`$1
+`+e+"$2$3")}function A2(n){return" ".repeat(n.length)}function Nye(n,e){return j2(e,n)?e:A2(HT)+e}function Bye(n,e){let t=Nye.bind(null,e);return n.split(`
+`).filter(Zr).map(t).join(`
+`)}function Hye(n,e,t){return j2(e,n)?{num:t+1,line:e.replace(HT,P2(t+1))}:{num:t,line:A2(P2(t))+e}}function qye(n,e){let t=Hye.bind(null,e),i=0;return n.split(`
+`).filter(Zr).map(r=>{let o=t(r,i);return i=o.num,o.line}).join(`
+`)}function Yye(n,e,t){return n=n.trim(),n=e?qye(n,t):Bye(n,t),n}function Fg(n){return n+`
-`}function lme(n){return n.replace(Upe,":")}function wq(n,e=null){if(!n)return[];e=e||Lr;let t=e(n).split(`
-`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(Xpe,"").split(xq);i.push(o.splice(0,o.length-1))}),i}function Eq(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ume(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var Dq,hRe,xq,W0,Xpe,Cq,Upe,Gpe,Kpe,eme,tme,Sq,Tq,Z0,vq,Y0,Pq,J0,_q=_(()=>{"use strict";Dq=C(aq());bq();hRe=q()("markdown-renderer"),xq="^*||*^",W0="*|*|*|*",Xpe=new RegExp(Eq(W0),"g"),Cq="*#COLON|*",Upe=new RegExp(Eq(Cq),"g"),Gpe="\r";Kpe={code:Lr,blockquote:Lr,html:Qpe,heading:B0,firstHeading:B0,hr:Lr,listitem:Lr,list:ame,table:Lr,paragraph:Lr,strong:gq,em:pq,codespan:mq,del:fq,link:H0,href:H0,text:Lr,unescape:!0,emoji:!1,width:80,showSectionPrefix:!0,tab:2,tableOptions:{}};eme="\\*",tme="\\d+\\.",Sq="(?:"+[eme,tme].join("|")+")";Tq=function(n,e){return n.match("^(?:"+e+")*"+Sq)};Z0="* ";vq=function(n){return n+". "};Y0=new Map,Pq=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Kpe,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?ume:Lr,this.highlightOptions=t||{},this.transform=this.compose(lme,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+`
-`+e+"\n```\n"}blockquote(e){return cg(this.o.blockquote(Vpe(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,cg(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500
-`}list(e,t){return e=this.o.list(e,t,this.tab),cg(ime(zpe(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(`
+`}function Wye(n){return n.replace(_ye,":")}function _2(n,e=null){if(!n)return[];e=e||Zr;let t=e(n).split(`
+`),i=[];return t.forEach(function(r){if(!r)return;let o=r.replace(Pye,"").split(L2);i.push(o.splice(0,o.length-1))}),i}function M2(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zye(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}var R2,QLe,L2,BT,Pye,F2,_ye,Rye,Fye,Aye,Mye,I2,j2,HT,P2,NT,O2,qT,N2=_(()=>{"use strict";R2=x(m2());k2();QLe=W()("markdown-renderer"),L2="^*||*^",BT="*|*|*|*",Pye=new RegExp(M2(BT),"g"),F2="*#COLON|*",_ye=new RegExp(M2(F2),"g"),Rye="\r";Fye={code:Zr,blockquote:Zr,html:Lye,heading:AT,firstHeading:AT,hr:Zr,listitem:Zr,list:Yye,table:Zr,paragraph:Zr,strong:C2,em:S2,codespan:T2,del:x2,link:MT,href:MT,text:Zr,unescape:!0,emoji:!1,width:80,showSectionPrefix:!1,tab:2,tableOptions:{}};Aye="\\*",Mye="\\d+\\.",I2="(?:"+[Aye,Mye].join("|")+")";j2=function(n,e){return n.match("^(?:"+e+")*"+I2)};HT="* ";P2=function(n){return n+". "};NT=new Map,O2=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},Fye,e),this.tab=" ",this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?Zye:Zr,this.highlightOptions=t||{},this.transform=this.compose(Wye,this.unescape)}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+`
+`+e+"\n```\n"}blockquote(e){return Fg(this.o.blockquote(jye(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,Fg(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`\u2500\u2500\u2500
+`}list(e,t){return e=this.o.list(e,t,this.tab),Fg(Oye(Iye(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(`
`)!==-1&&(e=e.trim()),`
-`+Z0+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),cg(e)}table(e,t){let i=new Dq.default(Object.assign({},{head:wq(e)[0]},this.tableSettings));return wq(t,this.transform).forEach(function(r){i.push(r)}),cg(this.o.table(i.toString()))}tablerow(e){return W0+e+W0+`
-`}tablecell(e,t){return e+xq}strong(e){return this.o.strong(e)}em(e){return e=yq(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=yq(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,Cq))}br(){return`
-`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&Y0.set(i,e),i&&i!=e)return q0(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of Y0.entries())e.push(`${q0(t)}: ${i}`);return Y0.clear(),e}},J0=Pq});function mc(n,e=!1){let t=hg(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=Q(r),u=[l,l+Q(o.text)];if(s&&a){let c=`CocList${hn(s)}${hn(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${hn(s)}`:c=`CocListFg${hn(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${hn(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function hg(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l{Rq[u]?s.foreground=Rq[u]:Lq[u]?s.background=Lq[u]:u==39?delete s.foreground:u==49?delete s.background:Fq[u]?s[Fq[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var Rq,Lq,Fq,bc=_(()=>{"use strict";Pe();Rq={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},Lq={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},Fq={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var jq=m((pRe,Iq)=>{"use strict";Iq.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var dg=m((mRe,Aq)=>{"use strict";var cme=jq();Aq.exports=n=>typeof n=="string"?n.replace(cme(),""):n});function lb(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=gme(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);hme.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=dme(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&t.push("\u2500"),o=o+1}return{lines:t,highlights:i,codes:r}}function dme(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;uo){let h=Q(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let h=Q(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>r){l=!0;let h=Q(c.slice(0,r-a));if(a+c.length>o){let d=Q(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"});break}else{let d=Q(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function gme(n,e){fe.setOptions({renderer:new J0,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=fe(n),c=J0.getLinks();c.length&&(u=u+`
+`+HT+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),Fg(e)}table(e,t){let i=new R2.default(Object.assign({},{head:_2(e)[0]},this.tableSettings));return _2(t,this.transform).forEach(function(r){i.push(r)}),Fg(this.o.table(i.toString()))}tablerow(e){return BT+e+BT+`
+`}tablecell(e,t){return e+L2}strong(e){return this.o.strong(e)}em(e){return e=E2(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=E2(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,F2))}br(){return`
+`}del(e){return this.o.del(e)}link(e,t,i){let r;try{r=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch{return""}if(r.startsWith("javascript:"))return"";if(i&&e&&i!=e&&NT.set(i,e),i&&i!=e)return OT(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){let r="!["+i;return t&&(r+=" \u2013 "+t),r+"]("+e+")"}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of NT.entries())e.push(`${OT(t)}: ${i}`);return NT.clear(),e}},qT=O2});function _c(n,e=!1){let t=Ig(n),i=[],r="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a}=o,l=V(r),u=[l,l+V(o.text)];if(s&&a){let c=`CocList${Cn(s)}${Cn(a)}`;i.push({span:u,hlGroup:c})}else if(s){let c;e?s=="yellow"?c="CocMarkdownCode":s=="blue"?c="CocMarkdownLink":s=="magenta"?c="CocMarkdownHeader":c=`CocListFg${Cn(s)}`:c=`CocListFg${Cn(s)}`,i.push({span:u,hlGroup:c})}else if(a){let c=`CocListBg${Cn(a)}`;i.push({span:u,hlGroup:c})}o.bold?i.push({span:u,hlGroup:"CocBold"}):o.italic?i.push({span:u,hlGroup:"CocItalic"}):o.underline?i.push({span:u,hlGroup:"CocUnderline"}):o.strikethrough&&i.push({span:u,hlGroup:"CocStrikeThrough"}),r=r+o.text}return{line:r,highlights:i}}function Ig(n){let e=null,t=null,i="",r=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l{B2[u]?s.foreground=B2[u]:H2[u]?s.background=H2[u]:u==39?delete s.foreground:u==49?delete s.background:q2[u]?s[q2[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24?s.underline=!1:u==29&&(s.strikethrough=!1)}),r=[]):t+=n[l];continue}n[l]=="\x1B"?e=n[l]:n[l]=="\b"?a():i+=n[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var B2,H2,q2,Rc=_(()=>{"use strict";Ne();B2={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},H2={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},q2={1:"bold",3:"italic",4:"underline",9:"strikethrough"}});var W2=y((tFe,Y2)=>{"use strict";Y2.exports=({onlyFirst:n=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,n?void 0:"g")}});var jg=y((iFe,Z2)=>{"use strict";var Jye=W2();Z2.exports=n=>typeof n=="string"?n.replace(Jye(),""):n});function Ay(n,e={}){let t=[],i=[],r=[],o=0;for(let s of n){let a=t.length,{content:l,filetype:u}=s,c=s.highlights;if(u=="markdown"){let h=Uye(l,e);r.push(...h.codes.map(d=>(d.startLine=d.startLine+a,d.endLine=d.endLine+a,d))),i.push(...h.highlights.map(d=>(d.lnum=d.lnum+a,d))),t.push(...h.lines)}else{let h=l.trim().split(/\r?\n/);$ye.includes(s.filetype)?r.push({hlGroup:`Coc${u}Float`,startLine:a,endLine:a+h.length}):r.push({filetype:s.filetype,startLine:a,endLine:a+h.length}),t.push(...h)}if(Array.isArray(c)&&i.push(...c.map(h=>Object.assign({},h,{lnum:h.lnum+a}))),Array.isArray(s.active)){let h=Xye(l,a,s.active);h.length&&i.push(...h)}o!=n.length-1&&(i.push({lnum:t.length,hlGroup:"CocFloatDividingLine",colStart:0,colEnd:-1}),t.push("\u2500")),o=o+1}return{lines:t,highlights:i,codes:r}}function Xye(n,e,t){let i=[],[r,o]=t,s=n.split(/\r?\n/),a=0,l=!1;for(let u=0;uo){let h=V(c.slice(0,o-a));i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let h=V(c);i.push({colStart:0,colEnd:h,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>r){l=!0;let h=V(c.slice(0,r-a));if(a+c.length>o){let d=V(c.slice(0,o-a));l=!1,i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"});break}else{let d=V(c);i.push({colStart:h,colEnd:d,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function Uye(n,e){Ce.setOptions({renderer:new qT,gfm:!0,breaks:!0});let t=[],i=[],r=[],o=0,s=!1,a,l=0,u=Ce(n),c=qT.getLinks();u=u.replace(/\n\n/g,`
+`).replace(/\s*$/,""),c.length&&(u=u+`
`+c.join(`
-`)),u=u.replace(/\s*$/,"");let h=u.split(/\n/);for(let d=0;d{"use strict";FH();_q();bc();Pe();Oq=C(dg()),hme=["Error","Warning","Info","Hint"],DRe=q()("markdown-index")});var ei,no=_(()=>{"use strict";ei=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var Mq,Nq,fme,RRe,ci,Jo=_(()=>{"use strict";Mq=C(Ei()),Nq=C(H());le();$0();z();no();Jt();fme=process.env.VIM_NODE_RPC=="1",RRe=q()("model-float"),ci=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new ei;this.disposables=[];this.onCursorMoved=(0,Mq.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)E.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);E.on("MenuPopupChanged",()=>{E.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(Nq.Disposable.create(()=>{this.onCursorMoved.clear()})),E.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),E.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&(Z(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&Fe(i,this.cursor))&&(e||t!=this.targetBufnr||!E.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}applyFloatConfig(e,t){for(let i of Object.keys(t)){if(i=="border"){t.border&&(e.border=[1,1,1,1]);continue}e[i]=t[i]}return e}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(p=>p.content.trim().length>0);let{lines:r,codes:o,highlights:s}=lb(e),a={codes:o,highlights:s,pumAlignTop:E.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,rounded:t.rounded?1:0,modes:t.modes||["n","i","ic","s"]};fme||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border&&!t.border.every(p=>p==0)&&(a.border=t.border),t.title&&!a.border&&(a.border=[1,1,1,1]),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=[t.borderhighlight]),t.cursorline&&(a.cursorline=1);let l=t.autoHide!=!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let p=u&&u.length>0?u[2]:this.winid;p&&(this.winid=0,this.nvim.call("coc#float#close",[p],!0),this.nvim.redrawVim());return}let[c,h,d,g,f]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,f==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});var Hq=m((FRe,Bq)=>{Bq.exports=function(n,e){for(var t=[],i=0;i{"use strict";Zq.exports=Yq;function Yq(n,e,t){n instanceof RegExp&&(n=qq(n,t)),e instanceof RegExp&&(e=qq(e,t));var i=Wq(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function qq(n,e){var t=e.match(n);return t?t[0]:null}Yq.range=Wq;function Wq(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r=0?l:u;i.length&&(a=[o,s])}return a}});var Vq=m((jRe,zq)=>{var mme=Hq(),$q=Jq();zq.exports=vme;var Xq="\0SLASH"+Math.random()+"\0",Uq="\0OPEN"+Math.random()+"\0",U0="\0CLOSE"+Math.random()+"\0",Gq="\0COMMA"+Math.random()+"\0",Qq="\0PERIOD"+Math.random()+"\0";function X0(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function bme(n){return n.split("\\\\").join(Xq).split("\\{").join(Uq).split("\\}").join(U0).split("\\,").join(Gq).split("\\.").join(Qq)}function yme(n){return n.split(Xq).join("\\").split(Uq).join("{").split(U0).join("}").split(Gq).join(",").split(Qq).join(".")}function Kq(n){if(!n)return[""];var e=[],t=$q("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=Kq(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function vme(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),yc(bme(n),!0).map(yme)):[]}function wme(n){return"{"+n+"}"}function Dme(n){return/^-?0\d/.test(n)}function xme(n,e){return n<=e}function Cme(n,e){return n>=e}function yc(n,e){var t=[],i=$q("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+U0+i.post,yc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=Kq(i.body),l.length===1&&(l=yc(l[0],!1).map(wme),l.length===1)){var c=i.post.length?yc(i.post,!1):[""];return c.map(function(I){return i.pre+l[0]+I})}var u=i.pre,c=i.post.length?yc(i.post,!1):[""],h;if(s){var d=X0(l[0]),g=X0(l[1]),f=Math.max(l[0].length,l[1].length),p=l.length==3?Math.abs(X0(l[2])):1,b=xme,v=g0){var L=new Array(F+1).join("0");D<0?S="-"+L+S.slice(1):S=L+S}}h.push(S)}}else h=mme(l,function(N){return yc(N,!1)});for(var j=0;j{o2.exports=zn;zn.Minimatch=hi;var gg={sep:"/"};try{gg=require("path")}catch{}var K0=zn.GLOBSTAR=hi.GLOBSTAR={},Sme=Vq(),e2={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},G0="[^/]",Q0=G0+"*?",Tme="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",kme="(?:(?!(?:\\/|^)\\.).)*?",t2=Eme("().*{}+?[]^$\\!");function Eme(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var n2=/\/+/;zn.filter=Pme;function Pme(n,e){return e=e||{},function(t,i,r){return zn(t,n,e)}}function i2(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}zn.defaults=function(n){if(!n||!Object.keys(n).length)return zn;var e=zn,t=function(r,o,s){return e.minimatch(r,o,i2(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,i2(n,o))},t};hi.defaults=function(n){return!n||!Object.keys(n).length?hi:zn.defaults(n).Minimatch};function zn(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new hi(e,t).match(n)}function hi(n,e){if(!(this instanceof hi))return new hi(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),gg.sep!=="/"&&(n=n.split(gg.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}hi.prototype.debug=function(){};hi.prototype.make=_me;function _me(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(n2)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}hi.prototype.parseNegate=Rme;function Rme(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:Sme(n)}hi.prototype.parse=Lme;var ub={};function Lme(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return K0;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function f(){if(l){switch(l){case"*":i+=Q0,r=!0;break;case"?":i+=G0,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var p=0,b=n.length,v;p-1;W--){var B=a[W],N=i.slice(0,B.reStart),I=i.slice(B.reStart,B.reEnd-8),M=i.slice(B.reEnd-8,B.reEnd),J=i.slice(B.reEnd);M+=J;var K=N.split("(").length-1,ae=J;for(p=0;p=0&&(r=n[o],!r);o--);for(o=0;o{"use strict";qq();N2();Rc();Ne();J2=x(jg()),$ye=["Error","Warning","Info","Hint"],aFe=W()("markdown-index")});var si,Do=_(()=>{"use strict";si=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}}});var $2,X2,Gye,mFe,fi,cs=_(()=>{"use strict";$2=x(Oi()),X2=x(q());we();YT();re();Do();oi();Gye=process.env.VIM_NODE_RPC=="1",mFe=W()("model-float"),fi=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new si;this.disposables=[];this.onCursorMoved=(0,$2.default)(this._onCursorMoved.bind(this),100)}bindEvents(e,t){let i=["InsertLeave","InsertEnter","BufEnter"];for(let r of i)P.on(r,o=>{o!=this._bufnr&&this.close()},null,this.disposables);P.on("MenuPopupChanged",()=>{P.pumAlignTop==t&&this.close()},null,this.disposables),this.disposables.push(X2.Disposable.create(()=>{this.onCursorMoved.clear()})),P.on("CursorMoved",this.onCursorMoved.bind(this,e),this,this.disposables),P.on("CursorMovedI",this.onCursorMoved.bind(this,e),this,this.disposables)}unbind(){this.disposables.length&&($(this.disposables),this.disposables=[])}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&Xe(i,this.cursor))&&(e||t!=this.targetBufnr||!P.insertMode)){this.close();return}}async create(e,t=!1,i=0){await this.show(e,{offsetX:i})}applyFloatConfig(e,t){for(let i of Object.keys(t)){if(i=="border"){t.border&&(e.border=[1,1,1,1]);continue}e[i]=t[i]}return e}async show(e,t={}){if(e.length==0||e.every(o=>o.content.length==0)){this.close();return}let i=Date.now(),r=await this.mutex.acquire();try{await this.createPopup(e,t,i),r()}catch(o){this.nvim.echoError(o),r()}}async createPopup(e,t,i){e=e.filter(f=>f.content.trim().length>0);let{lines:r,codes:o,highlights:s}=Ay(e),a={codes:o,highlights:s,pumAlignTop:P.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,rounded:t.rounded?1:0,modes:t.modes||["n","i","ic","s"]};Gye||(typeof t.winblend=="number"&&(a.winblend=t.winblend),t.focusable!=null&&(a.focusable=t.focusable?1:0),t.shadow&&(a.shadow=1)),t.maxHeight&&(a.maxHeight=t.maxHeight),t.maxWidth&&(a.maxWidth=t.maxWidth),t.border&&!t.border.every(f=>f==0)&&(a.border=t.border,a.rounded=t.rounded?1:0),t.title&&!a.border&&(a.border=[1,1,1,1]),t.highlight&&(a.highlight=t.highlight),t.borderhighlight&&(a.borderhighlight=t.borderhighlight),t.cursorline&&(a.cursorline=1);let l=t.autoHide!=!1;l&&(a.autohide=1),this.unbind();let u=await this.nvim.call("coc#dialog#create_cursor_float",[this.winid,this._bufnr,r,a]);if(this.nvim.redrawVim(),!u||u.length==0||this.closeTs>i){let f=u&&u.length>0?u[2]:this.winid;f&&(this.winid=0,this.nvim.call("coc#float#close",[f],!0),this.nvim.redrawVim());return}let[c,h,d,g,p]=u;this.winid=d,this._bufnr=g,this.targetBufnr=c,this.cursor=h,this.bindEvents(l,p==1)}close(){let{winid:e,nvim:t}=this;this.closeTs=Date.now(),this.unbind(),e&&(this.winid=0,t.call("coc#float#close",[e],!0),t.redrawVim())}checkRetrigger(e){return!!(this.winid&&this.targetBufnr==e)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}dispose(){this.cursor=void 0,this.close()}}});var G2=y((bFe,U2)=>{U2.exports=function(n,e){for(var t=[],i=0;i{"use strict";V2.exports=Q2;function Q2(n,e,t){n instanceof RegExp&&(n=K2(n,t)),e instanceof RegExp&&(e=K2(e,t));var i=z2(n,e,t);return i&&{start:i[0],end:i[1],pre:t.slice(0,i[0]),body:t.slice(i[0]+n.length,i[1]),post:t.slice(i[1]+e.length)}}function K2(n,e){var t=e.match(n);return t?t[0]:null}Q2.range=z2;function z2(n,e,t){var i,r,o,s,a,l=t.indexOf(n),u=t.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(n===e)return[l,u];for(i=[],o=t.length;c>=0&&!a;)c==l?(i.push(c),l=t.indexOf(n,c+1)):i.length==1?a=[i.pop(),u]:(r=i.pop(),r=0?l:u;i.length&&(a=[o,s])}return a}});var lY=y((wFe,aY)=>{var Qye=G2(),tY=eY();aY.exports=ebe;var iY="\0SLASH"+Math.random()+"\0",nY="\0OPEN"+Math.random()+"\0",ZT="\0CLOSE"+Math.random()+"\0",rY="\0COMMA"+Math.random()+"\0",oY="\0PERIOD"+Math.random()+"\0";function WT(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function zye(n){return n.split("\\\\").join(iY).split("\\{").join(nY).split("\\}").join(ZT).split("\\,").join(rY).split("\\.").join(oY)}function Vye(n){return n.split(iY).join("\\").split(nY).join("{").split(ZT).join("}").split(rY).join(",").split(oY).join(".")}function sY(n){if(!n)return[""];var e=[],t=tY("{","}",n);if(!t)return n.split(",");var i=t.pre,r=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+r+"}";var a=sY(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function ebe(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),Lc(zye(n),!0).map(Vye)):[]}function tbe(n){return"{"+n+"}"}function ibe(n){return/^-?0\d/.test(n)}function nbe(n,e){return n<=e}function rbe(n,e){return n>=e}function Lc(n,e){var t=[],i=tY("{","}",n);if(!i||/\$$/.test(i.pre))return[n];var r=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=r||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(n=i.pre+"{"+i.body+ZT+i.post,Lc(n)):[n];var l;if(s)l=i.body.split(/\.\./);else if(l=sY(i.body),l.length===1&&(l=Lc(l[0],!1).map(tbe),l.length===1)){var c=i.post.length?Lc(i.post,!1):[""];return c.map(function(F){return i.pre+l[0]+F})}var u=i.pre,c=i.post.length?Lc(i.post,!1):[""],h;if(s){var d=WT(l[0]),g=WT(l[1]),p=Math.max(l[0].length,l[1].length),f=l.length==3?Math.abs(WT(l[2])):1,m=nbe,b=g0){var N=new Array(R+1).join("0");D<0?T="-"+N+T.slice(1):T=N+T}}h.push(T)}}else h=Qye(l,function(M){return Lc(M,!1)});for(var H=0;H{pY.exports=ur;ur.Minimatch=mi;var Ag={sep:"/"};try{Ag=require("path")}catch{}var XT=ur.GLOBSTAR=mi.GLOBSTAR={},obe=lY(),uY={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},JT="[^/]",$T=JT+"*?",sbe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",abe="(?:(?!(?:\\/|^)\\.).)*?",cY=lbe("().*{}+?[]^$\\!");function lbe(n){return n.split("").reduce(function(e,t){return e[t]=!0,e},{})}var dY=/\/+/;ur.filter=ube;function ube(n,e){return e=e||{},function(t,i,r){return ur(t,n,e)}}function hY(n,e){n=n||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(n).forEach(function(i){t[i]=n[i]}),t}ur.defaults=function(n){if(!n||!Object.keys(n).length)return ur;var e=ur,t=function(r,o,s){return e.minimatch(r,o,hY(n,s))};return t.Minimatch=function(r,o){return new e.Minimatch(r,hY(n,o))},t};mi.defaults=function(n){return!n||!Object.keys(n).length?mi:ur.defaults(n).Minimatch};function ur(n,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?n==="":new mi(e,t).match(n)}function mi(n,e){if(!(this instanceof mi))return new mi(n,e);if(typeof n!="string")throw new TypeError("glob pattern string required");e||(e={}),n=n.trim(),Ag.sep!=="/"&&(n=n.split(Ag.sep).join("/")),this.options=e,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}mi.prototype.debug=function(){};mi.prototype.make=cbe;function cbe(){if(!this._made){var n=this.pattern,e=this.options;if(!e.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(dY)}),this.debug(this.pattern,t),t=t.map(function(i,r,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}mi.prototype.parseNegate=hbe;function hbe(){var n=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var r=0,o=n.length;r"u"?this.pattern:n,typeof n>"u")throw new TypeError("undefined pattern");return e.nobrace||!n.match(/\{.*\}/)?[n]:obe(n)}mi.prototype.parse=dbe;var My={};function dbe(n,e){if(n.length>1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&n==="**")return XT;if(n==="")return"";var i="",r=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,h=-1,d=n.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",g=this;function p(){if(l){switch(l){case"*":i+=$T,r=!0;break;case"?":i+=JT,r=!0;break;default:i+="\\"+l;break}g.debug("clearStateChar %j %j",l,i),l=!1}}for(var f=0,m=n.length,b;f-1;X--){var B=a[X],M=i.slice(0,B.reStart),F=i.slice(B.reStart,B.reEnd-8),O=i.slice(B.reEnd-8,B.reEnd),Z=i.slice(B.reEnd);O+=Z;var ie=M.split("(").length-1,ge=Z;for(f=0;f=0&&(r=n[o],!r);o--);for(o=0;o>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var f=r===s-1&&n[r]==="";return f}throw new Error("wtf?")};function jme(n){return n.replace(/\\(.)/g,"$1")}function Ame(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var s2=m(z0=>{var bl=require("path"),Vs=process.platform==="win32",zs=require("fs"),Ome=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Mme(){var n;if(Ome){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function Nme(n){return typeof n=="function"?n:Mme()}var ORe=bl.normalize;Vs?$o=/(.*?)(?:[\/\\]+|$)/g:$o=/(.*?)(?:[\/]+|$)/g;var $o;Vs?fg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:fg=/^[\/]*/;var fg;z0.realpathSync=function(e,t){if(e=bl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var b=fg.exec(e);s=b[0].length,a=b[0],l=b[0],u="",Vs&&!o[l]&&(zs.lstatSync(l),o[l]=!0)}for(;s=e.length)return t&&(t[r]=e),i(null,e);$o.lastIndex=a;var b=$o.exec(e);return c=l,l+=b[0],u=c+b[1],a=$o.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?p(t[u]):zs.lstat(u,g)}function g(b,v){if(b)return i(b);if(!v.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!Vs){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(o.hasOwnProperty(w))return f(null,o[w],u)}zs.stat(u,function(D){if(D)return i(D);zs.readlink(u,function(S,F){Vs||(o[w]=F),f(S,F)})})}function f(b,v,w){if(b)return i(b);var D=bl.resolve(c,v);t&&(t[w]=D),p(D)}function p(b){e=bl.resolve(b,e.slice(a)),h()}}});var iT=m((NRe,c2)=>{c2.exports=ea;ea.realpath=ea;ea.sync=tT;ea.realpathSync=tT;ea.monkeypatch=Hme;ea.unmonkeypatch=qme;var vc=require("fs"),V0=vc.realpath,eT=vc.realpathSync,Bme=process.version,a2=/^v[0-5]\./.test(Bme),l2=s2();function u2(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function ea(n,e,t){if(a2)return V0(n,e,t);typeof e=="function"&&(t=e,e=null),V0(n,e,function(i,r){u2(i)?l2.realpath(n,e,t):t(i,r)})}function tT(n,e){if(a2)return eT(n,e);try{return eT(n,e)}catch(t){if(u2(t))return l2.realpathSync(n,e);throw t}}function Hme(){vc.realpath=ea,vc.realpathSync=tT}function qme(){vc.realpath=V0,vc.realpathSync=eT}});var h2=m((BRe,nT)=>{typeof Object.create=="function"?nT.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:nT.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var d2=m((HRe,oT)=>{try{if(rT=require("util"),typeof rT.inherits!="function")throw"";oT.exports=rT.inherits}catch{oT.exports=h2()}var rT});var hb=m((qRe,cb)=>{"use strict";function g2(n){return n.charAt(0)==="/"}function f2(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}cb.exports=process.platform==="win32"?f2:g2;cb.exports.posix=g2;cb.exports.win32=f2});var aT=m(ta=>{ta.setopts=Xme;ta.ownProp=p2;ta.makeAbs=pg;ta.finish=Ume;ta.mark=Gme;ta.isIgnored=b2;ta.childrenIgnored=Qme;function p2(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var Yme=require("fs"),wc=require("path"),Wme=Vn(),m2=hb(),sT=Wme.Minimatch;function Zme(n,e){return n.localeCompare(e,"en")}function Jme(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map($me))}function $me(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new sT(t,{dot:!0})}return{matcher:new sT(n,{dot:!0}),gmatcher:e}}function Xme(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||Yme,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),Jme(n,t),n.changedCwd=!1;var i=process.cwd();p2(t,"cwd")?(n.cwd=wc.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||wc.resolve(n.cwd,"/"),n.root=wc.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=m2(n.cwd)?n.cwd:pg(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new sT(e,t),n.options=n.minimatch.options}function Ume(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i{D2.exports=w2;w2.GlobSync=ti;var Kme=iT(),y2=Vn(),WRe=y2.Minimatch,ZRe=gb().Glob,JRe=require("util"),lT=require("path"),v2=require("assert"),db=hb(),yl=aT(),zme=yl.setopts,uT=yl.ownProp,Vme=yl.childrenIgnored,ebe=yl.isIgnored;function w2(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
-See: https://github.com/isaacs/node-glob/issues/167`);return new ti(n,e).found}function ti(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
-See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof ti))return new ti(n,e);if(zme(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&uT(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};ti.prototype._mark=function(n){return yl.mark(this,n)};ti.prototype._makeAbs=function(n){return yl.makeAbs(this,n)}});var cT=m((XRe,S2)=>{S2.exports=C2;function C2(n,e){if(n&&e)return C2(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r{var T2=cT();hT.exports=T2(fb);hT.exports.strict=T2(k2);fb.proto=fb(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return fb(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return k2(this)},configurable:!0})});function fb(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function k2(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var P2=m((GRe,E2)=>{var tbe=cT(),mg=Object.create(null),ibe=dT();E2.exports=tbe(nbe);function nbe(n,e){return mg[n]?(mg[n].push(e),null):(mg[n]=[e],rbe(n))}function rbe(n){return ibe(function e(){var t=mg[n],i=t.length,r=obe(arguments);try{for(var o=0;oi?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete mg[n]}})}function obe(n){for(var e=n.length,t=[],i=0;i{R2.exports=vl;var sbe=iT(),_2=Vn(),QRe=_2.Minimatch,abe=d2(),lbe=require("events").EventEmitter,gT=require("path"),fT=require("assert"),bg=hb(),mT=x2(),wl=aT(),ube=wl.setopts,pT=wl.ownProp,bT=P2(),KRe=require("util"),cbe=wl.childrenIgnored,hbe=wl.isIgnored,dbe=dT();function vl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return mT(n,e)}return new Ue(n,e,t)}vl.sync=mT;var gbe=vl.GlobSync=mT.GlobSync;vl.glob=vl;function fbe(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}vl.hasMagic=function(n,e){var t=fbe({},e);t.noprocess=!0;var i=new Ue(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;othis.maxLength)return e();if(!this.stat&&pT(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||r==="DIR")return e(null,r);if(i&&r==="FILE")return e()}var o,s=this.statCache[t];if(s!==void 0){if(s===!1)return e(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&a==="FILE"?e():e(null,a,s)}var l=this,u=bT("stat\0"+t,c);u&&l.fs.lstat(t,u);function c(h,d){if(d&&d.isSymbolicLink())return l.fs.stat(t,function(g,f){g?l._stat2(n,t,null,d,e):l._stat2(n,t,g,f,e)});l._stat2(n,t,h,d,e)}};Ue.prototype._stat2=function(n,e,t,i,r){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return this.statCache[e]=!1,r();var o=n.slice(-1)==="/";if(this.statCache[e]=i,e.slice(-1)==="/"&&i&&!i.isDirectory())return r(null,!1,i);var s=!0;return i&&(s=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,o&&s==="FILE"?r():r(null,s,i)}});async function Ht(n){let e=null;try{e=await Fr.default.stat(n)}catch{}return e}async function j2(n){if(!n)return!1;let e=await Ht(n);if(!e||!e.isFile())return!1;let t=null;try{let{stdout:r}=await wT.default.promisify(vT.exec)("git rev-parse --show-toplevel",{cwd:Gi.default.dirname(n)});t=r.trim()}catch{}if(!t)return!1;let i=Gi.default.relative(t,n);try{let{stdout:r}=await wT.default.promisify(vT.exec)(`git check-ignore ${i}`,{cwd:t});return r.trim()==i}catch{}return!1}function yT(n,e=[]){return!e||!e.length?!1:e.some(t=>(0,DT.default)(n,t,{dot:!0}))}function mb(n,e,t,i=!1,r=!0,o=[]){let s=yg(n);if(r&&t&&Ae(t,s,!0)&&!yT(t,o)&&pb(t,e))return t;let a=s.split(Gi.default.sep);if(i){for(;a.length>0;){let l=a.join(Gi.default.sep);if(!yT(l,o)&&pb(l,e))return l;a.pop()}return null}else{let l=[a.shift()];for(let u of a){l.push(u);let c=l.join(Gi.default.sep);if(!yT(c,o)&&pb(c,e))return c}return null}}async function A2(n,e,t=500){return new Promise((i,r)=>{let o=setTimeout(()=>{a.abort(),i(!1)},t),s=!1,a=(0,I2.default)(e,{nosort:!0,dot:!0,cwd:n,nodir:!0,absolute:!1},l=>{if(clearTimeout(o),l)return r(l);i(s)});a.on("match",()=>{clearTimeout(o),s=!0,a.abort(),i(!0)}),a.on("end",()=>{clearTimeout(o),i(s)})})}function pb(n,e){try{let t=Fr.default.readdirSync(n);for(let i of e)if(i.includes("*")?DT.default.match(t,i,{nobrace:!0,noext:!0,nocomment:!0,nonegate:!0,dot:!0}).length!==0:t.includes(i))return!0}catch{}return!1}function Dc(n,e){let t=Gi.default.parse(e).root,i=Array.isArray(n)?n:[n];for(;e&&e!==t;){if(pb(e,i))for(let o of i){let s=Gi.default.join(e,o);if(Fr.default.existsSync(s))return s}e=Gi.default.dirname(e)}return null}function xc(n,e){return new Promise((t,i)=>{Fr.default.readFile(n,e,(r,o)=>{r&&i(r),t(o)})})}function O2(n){let e,t=0;return new Promise((i,r)=>{Fr.default.createReadStream(n).on("error",o=>r(o)).on("data",o=>{for(e=0;ei(t))})}function ia(n,e,t){if(!Fr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let i=[],r=Fr.default.createReadStream(n,{encoding:"utf8"}),o=xT.default.createInterface({input:r,crlfDelay:1/0,terminal:!1}),s=0;return new Promise((a,l)=>{o.on("line",u=>{s>=e&&s<=t&&i.push(u),s==t&&o.close(),s=s+1}),o.on("close",()=>{a(i),r.close()}),o.on("error",l)})}function M2(n,e){if(!Fr.default.existsSync(n))return Promise.reject(new Error(`file does not exist: ${n}`));let t=Fr.default.createReadStream(n,{encoding:"utf8"}),i=xT.default.createInterface({input:t,crlfDelay:1/0,terminal:!1}),r=0;return new Promise((o,s)=>{i.on("line",a=>{if(r==e){r==0&&a.startsWith("\uFEFF")&&(a=a.slice(1)),i.close(),t.close(),o(a);return}r=r+1}),i.on("error",s)})}function ii(n,e,t){return t=typeof t=="boolean"?t:Xi||sc,!n||!e?!1:t?n.toLowerCase()===e.toLowerCase():n===e}function L2(n,e){return Xi||sc?n.toLowerCase().startsWith(e.toLowerCase()):n.startsWith(e)}async function bb(n,e){await Fr.default.writeFile(n,e,{encoding:"utf8"})}function vg(n){return n.startsWith("file:")}function Ae(n,e,t=!1){let i=yg(Gi.default.resolve(Gi.default.normalize(n))),r=yg(Gi.default.resolve(Gi.default.normalize(e)));return i=="//"&&(i="/"),ii(i,r)?!!t:i.endsWith(Gi.default.sep)?L2(r,i):L2(r,i)&&r[i.length]==Gi.default.sep}function yg(n,e=F2.default.platform()){return e!="win32"||n[1]!=":"?n:n[0].toUpperCase()+n.slice(1)}var vT,Fr,DT,F2,Gi,xT,wT,I2,VRe,Je=_(()=>{"use strict";vT=require("child_process"),Fr=C(Rn()),DT=C(Vn()),F2=C(require("os")),Gi=C(require("path")),xT=C(require("readline")),wT=C(require("util")),I2=C(gb());ac();VRe=q()("util-fs")});function Pi(n,e){return ut(n.start,e)===0&&ut(n.end,e)===0}function N2(n,e){return n.line===e.line&&n.character===e.character}function B2(n,e){let{start:t,end:i}=n;if(t.line>i.line||t.line===i.line&&t.character>i.character){let r=t;t=i,i=r}return t=Cc.Position.create(Math.max(0,t.line),Math.max(0,t.character)),i=Cc.Position.create(Math.max(0,i.line),Math.max(0,i.character)),{start:t,end:i}}function yb(n,e){return De(n.end,e.start)==0||De(e.end,n.start)==0}function Sc(n,e){let{start:t,end:i}=n;return!(De(i,e.start)<=0||De(t,e.end)>=0)}function Dl(n,e){return!!(ut(n.start,e)==0||ut(n.end,e)==0||Pi(e,n))}function H2(n,e){let{line:t,character:i}=e,{start:r,end:o}=n,s=o.line==r.line?o.character+i:o.character;return Cc.Range.create(r.line+t,i+r.character,o.line+t,s)}function q2(n,e){let{start:t,end:i}=e;return n>=t.line&&n<=i.line}function Ct(n){let{start:e,end:t}=n;return e.line==t.line&&e.character==t.character}function ut(n,e){let{start:t,end:i}=e;return De(n,t)<0?-1:De(n,i)>0?1:0}function De(n,e){return n.line>e.line||e.line==n.line&&n.character>e.character?1:e.line==n.line&&n.character==e.character?0:-1}function Y2(n){return n.start.line==n.end.line}function _i(n,e){let t=e.split(/\r?\n/),i=t.length,r=t[i-1],o=i==1?n.character+e.length:r.length;return Cc.Position.create(n.line+i-1,o)}var Cc,yt=_(()=>{"use strict";Cc=C(H())});var tLe,vb,W2=_(()=>{"use strict";tLe=q()("outpubChannel"),vb=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this.lines=[""];this._disposed=!1;this.created=!1;if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`)}get content(){return this.lines.join(`
+>>> no match, partial?`,n,c,e,h),c===s))}var g;if(typeof l=="string"?(i.nocase?g=u.toLowerCase()===l.toLowerCase():g=u===l,this.debug("string match",l,u,g)):(g=u.match(l),this.debug("pattern match",l,u,g)),!g)return!1}if(r===s&&o===a)return!0;if(r===s)return t;if(o===a){var p=r===s-1&&n[r]==="";return p}throw new Error("wtf?")};function fbe(n){return n.replace(/\\(.)/g,"$1")}function mbe(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var fY=y(UT=>{var Fl=require("path"),da=process.platform==="win32",ha=require("fs"),ybe=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function bbe(){var n;if(ybe){var e=new Error;n=t}else n=i;return n;function t(r){r&&(e.message=r.message,r=e,i(r))}function i(r){if(r){if(process.throwDeprecation)throw r;if(!process.noDeprecation){var o="fs: missing callback "+(r.stack||r.message);process.traceDeprecation?console.trace(o):console.error(o)}}}}function vbe(n){return typeof n=="function"?n:bbe()}var CFe=Fl.normalize;da?hs=/(.*?)(?:[\/\\]+|$)/g:hs=/(.*?)(?:[\/]+|$)/g;var hs;da?Mg=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:Mg=/^[\/]*/;var Mg;UT.realpathSync=function(e,t){if(e=Fl.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var i=e,r={},o={},s,a,l,u;c();function c(){var m=Mg.exec(e);s=m[0].length,a=m[0],l=m[0],u="",da&&!o[l]&&(ha.lstatSync(l),o[l]=!0)}for(;s=e.length)return t&&(t[r]=e),i(null,e);hs.lastIndex=a;var m=hs.exec(e);return c=l,l+=m[0],u=c+m[1],a=hs.lastIndex,s[u]||t&&t[u]===u?process.nextTick(d):t&&Object.prototype.hasOwnProperty.call(t,u)?f(t[u]):ha.lstat(u,g)}function g(m,b){if(m)return i(m);if(!b.isSymbolicLink())return s[u]=!0,t&&(t[u]=u),process.nextTick(d);if(!da){var w=b.dev.toString(32)+":"+b.ino.toString(32);if(o.hasOwnProperty(w))return p(null,o[w],u)}ha.stat(u,function(D){if(D)return i(D);ha.readlink(u,function(T,R){da||(o[w]=R),p(T,R)})})}function p(m,b,w){if(m)return i(m);var D=Fl.resolve(c,b);t&&(t[w]=D),f(D)}function f(m){e=Fl.resolve(m,e.slice(a)),h()}}});var zT=y((SFe,vY)=>{vY.exports=ga;ga.realpath=ga;ga.sync=QT;ga.realpathSync=QT;ga.monkeypatch=Dbe;ga.unmonkeypatch=Cbe;var Fc=require("fs"),GT=Fc.realpath,KT=Fc.realpathSync,wbe=process.version,mY=/^v[0-5]\./.test(wbe),yY=fY();function bY(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function ga(n,e,t){if(mY)return GT(n,e,t);typeof e=="function"&&(t=e,e=null),GT(n,e,function(i,r){bY(i)?yY.realpath(n,e,t):t(i,r)})}function QT(n,e){if(mY)return KT(n,e);try{return KT(n,e)}catch(t){if(bY(t))return yY.realpathSync(n,e);throw t}}function Dbe(){Fc.realpath=ga,Fc.realpathSync=QT}function Cbe(){Fc.realpath=GT,Fc.realpathSync=KT}});var wY=y((TFe,VT)=>{typeof Object.create=="function"?VT.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:VT.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}});var DY=y((kFe,tk)=>{try{if(ek=require("util"),typeof ek.inherits!="function")throw"";tk.exports=ek.inherits}catch{tk.exports=wY()}var ek});var Ny=y((EFe,Oy)=>{"use strict";function CY(n){return n.charAt(0)==="/"}function xY(n){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,t=e.exec(n),i=t[1]||"",r=Boolean(i&&i.charAt(1)!==":");return Boolean(t[2]||r)}Oy.exports=process.platform==="win32"?xY:CY;Oy.exports.posix=CY;Oy.exports.win32=xY});var nk=y(pa=>{pa.setopts=Pbe;pa.ownProp=SY;pa.makeAbs=Og;pa.finish=_be;pa.mark=Rbe;pa.isIgnored=kY;pa.childrenIgnored=Lbe;function SY(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var xbe=require("fs"),Ic=require("path"),Sbe=Yn(),TY=Ny(),ik=Sbe.Minimatch;function Tbe(n,e){return n.localeCompare(e,"en")}function kbe(n,e){n.ignore=e.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(Ebe))}function Ebe(n){var e=null;if(n.slice(-3)==="/**"){var t=n.replace(/(\/\*\*)+$/,"");e=new ik(t,{dot:!0})}return{matcher:new ik(n,{dot:!0}),gmatcher:e}}function Pbe(n,e,t){if(t||(t={}),t.matchBase&&e.indexOf("/")===-1){if(t.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}n.silent=!!t.silent,n.pattern=e,n.strict=t.strict!==!1,n.realpath=!!t.realpath,n.realpathCache=t.realpathCache||Object.create(null),n.follow=!!t.follow,n.dot=!!t.dot,n.mark=!!t.mark,n.nodir=!!t.nodir,n.nodir&&(n.mark=!0),n.sync=!!t.sync,n.nounique=!!t.nounique,n.nonull=!!t.nonull,n.nosort=!!t.nosort,n.nocase=!!t.nocase,n.stat=!!t.stat,n.noprocess=!!t.noprocess,n.absolute=!!t.absolute,n.fs=t.fs||xbe,n.maxLength=t.maxLength||1/0,n.cache=t.cache||Object.create(null),n.statCache=t.statCache||Object.create(null),n.symlinks=t.symlinks||Object.create(null),kbe(n,t),n.changedCwd=!1;var i=process.cwd();SY(t,"cwd")?(n.cwd=Ic.resolve(t.cwd),n.changedCwd=n.cwd!==i):n.cwd=i,n.root=t.root||Ic.resolve(n.cwd,"/"),n.root=Ic.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=TY(n.cwd)?n.cwd:Og(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!t.nomount,t.nonegate=!0,t.nocomment=!0,n.minimatch=new ik(e,t),n.options=n.minimatch.options}function _be(n){for(var e=n.nounique,t=e?[]:Object.create(null),i=0,r=n.matches.length;i{RY.exports=_Y;_Y.GlobSync=ai;var Fbe=zT(),EY=Yn(),_Fe=EY.Minimatch,RFe=Hy().Glob,LFe=require("util"),rk=require("path"),PY=require("assert"),By=Ny(),Il=nk(),Ibe=Il.setopts,ok=Il.ownProp,jbe=Il.childrenIgnored,Abe=Il.isIgnored;function _Y(n,e){if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
+See: https://github.com/isaacs/node-glob/issues/167`);return new ai(n,e).found}function ai(n,e){if(!n)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
+See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof ai))return new ai(n,e);if(Ibe(this,n,e),this.noprocess)return this;var t=this.minimatch.set.length;this.matches=new Array(t);for(var i=0;ithis.maxLength)return!1;if(!this.stat&&ok(this.cache,e)){var s=this.cache[e];if(Array.isArray(s)&&(s="DIR"),!t||s==="DIR")return s;if(t&&s==="FILE")return!1}var i,r=this.statCache[e];if(!r){var o;try{o=this.fs.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(o&&o.isSymbolicLink())try{r=this.fs.statSync(e)}catch{r=o}else r=o}this.statCache[e]=r;var s=!0;return r&&(s=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||s,t&&s==="FILE"?!1:s};ai.prototype._mark=function(n){return Il.mark(this,n)};ai.prototype._makeAbs=function(n){return Il.makeAbs(this,n)}});var sk=y((IFe,IY)=>{IY.exports=FY;function FY(n,e){if(n&&e)return FY(n)(e);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(i){t[i]=n[i]}),t;function t(){for(var i=new Array(arguments.length),r=0;r{var jY=sk();ak.exports=jY(qy);ak.exports.strict=jY(AY);qy.proto=qy(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return qy(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return AY(this)},configurable:!0})});function qy(n){var e=function(){return e.called?e.value:(e.called=!0,e.value=n.apply(this,arguments))};return e.called=!1,e}function AY(n){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=n.apply(this,arguments)},t=n.name||"Function wrapped with `once`";return e.onceError=t+" shouldn't be called more than once",e.called=!1,e}});var OY=y((AFe,MY)=>{var Mbe=sk(),Ng=Object.create(null),Obe=lk();MY.exports=Mbe(Nbe);function Nbe(n,e){return Ng[n]?(Ng[n].push(e),null):(Ng[n]=[e],Bbe(n))}function Bbe(n){return Obe(function e(){var t=Ng[n],i=t.length,r=Hbe(arguments);try{for(var o=0;oi?(t.splice(0,i),process.nextTick(function(){e.apply(null,r)})):delete Ng[n]}})}function Hbe(n){for(var e=n.length,t=[],i=0;i{BY.exports=jl;var qbe=zT(),NY=Yn(),MFe=NY.Minimatch,Ybe=DY(),Wbe=require("events").EventEmitter,uk=require("path"),ck=require("assert"),Bg=Ny(),dk=LY(),Al=nk(),Zbe=Al.setopts,hk=Al.ownProp,gk=OY(),OFe=require("util"),Jbe=Al.childrenIgnored,$be=Al.isIgnored,Xbe=lk();function jl(n,e,t){if(typeof e=="function"&&(t=e,e={}),e||(e={}),e.sync){if(t)throw new TypeError("callback provided to sync glob");return dk(n,e)}return new it(n,e,t)}jl.sync=dk;var Ube=jl.GlobSync=dk.GlobSync;jl.glob=jl;function Gbe(n,e){if(e===null||typeof e!="object")return n;for(var t=Object.keys(e),i=t.length;i--;)n[t[i]]=e[t[i]];return n}jl.hasMagic=function(n,e){var t=Gbe({},e);t.noprocess=!0;var i=new it(n,t),r=i.minimatch.set;if(!n)return!1;if(r.length>1)return!0;for(var o=0;o