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