import { resolveComponent as k, openBlock as _, createElementBlock as T, createElementVNode as p, createTextVNode as h, toDisplayString as g, createVNode as y, withCtx as v } from "vue"; import { n as I } from "./index2.js"; const f = (t = "") => String(t).replace(/&/g, "&").replace(//g, ">"), P = (t = "") => String(t).replace(/[^\w\u4e00-\u9fa5-]/g, ""), c = (t = "") => { const n = [], i = []; let e = String(t); return e = e.replace(/`([^`]+)`/g, (r, o) => (n.push(`${f(o)}`), `\0C${n.length - 1}\0`)), e = e.replace(/<\/?span[^>]*>/g, (r) => (i.push(r), `\0S${i.length - 1}\0`)), e = f(e), e = e.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1'), e = e.replace(/\*\*([^*]+)\*\*/g, "$1"), e = e.replace(/\u0000C(\d+)\u0000/g, (r, o) => n[+o]), e = e.replace(/\u0000S(\d+)\u0000/g, (r, o) => i[+o]), e; }, w = (t = "") => t.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((n) => n.trim()), E = (t = "") => /^\s*\|?[\s:|-]+\|?\s*$/.test(t) && t.includes("-"), S = (t = "") => { const n = String(t).replace(/\r\n/g, ` `).split(` `), i = n.length; let e = 0, r = "", o = null; const s = () => { o && (r += ` `, o = null); }; for (; e < i; ) { const a = n[e], b = a.match(/^```(\w*)\s*$/); if (b) { s(); const l = b[1]; e++; const d = []; for (; e < i && !/^```\s*$/.test(n[e]); ) d.push(n[e]), e++; e++, r += `
${f(d.join(`
`))}
`; continue; } if (/^\s*$/.test(a)) { s(), e++; continue; } if (/^-{3,}\s*$/.test(a)) { s(), r += `
`, e++; continue; } const u = a.match(/^(#{1,6})\s+(.*)$/); if (u) { s(); const l = u[1].length, d = u[2].trim(); r += `${c(d)} `, e++; continue; } if (/^>\s?/.test(a)) { s(); const l = []; for (; e < i && /^>\s?/.test(n[e]); ) l.push(n[e].replace(/^>\s?/, "")), e++; r += `
${S(l.join(` `))}
`; continue; } if (/^\s*\|/.test(a) && e + 1 < i && E(n[e + 1])) { s(); const l = w(a); e += 2; const d = []; for (; e < i && /^\s*\|/.test(n[e]); ) d.push(w(n[e])), e++; r += "" + l.map((m) => ``).join("") + "" + d.map((m) => "" + m.map((x) => ``).join("") + "").join("") + `
${c(m)}
${c(x)}
`; continue; } if (/^\s*[-*]\s+/.test(a)) { o !== "ul" && (s(), r += `