@linto-ai/transcript-ui-webcomponent 0.9.18 → 0.9.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{highlight-CJMoAPSe.js → highlight-B6rbGA8f.js} +2 -2
- package/dist/{highlight-CJMoAPSe.js.map → highlight-B6rbGA8f.js.map} +1 -1
- package/dist/{index-CB7gHC-N.js → index-CopL8cVA.js} +492 -468
- package/dist/{index-CB7gHC-N.js.map → index-CopL8cVA.js.map} +1 -1
- package/dist/linto-editor.iife.js +350 -326
- package/dist/linto-editor.iife.js.map +1 -1
- package/dist/linto-editor.js +1 -1
- package/package.json +10 -10
|
@@ -10684,7 +10684,7 @@ pre[class*="language-"] {
|
|
|
10684
10684
|
};
|
|
10685
10685
|
const _hoisted_4$c = { class: "form-field__input-wrapper" };
|
|
10686
10686
|
const _hoisted_5$b = ["id", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"];
|
|
10687
|
-
const _hoisted_6$
|
|
10687
|
+
const _hoisted_6$a = ["value"];
|
|
10688
10688
|
const _hoisted_7$5 = ["type", "id", "disabled", "readonly", "placeholder", "autocomplete", "required", "aria-required", "aria-invalid", "aria-describedby"];
|
|
10689
10689
|
const _hoisted_8$3 = {
|
|
10690
10690
|
key: 3,
|
|
@@ -10843,7 +10843,7 @@ pre[class*="language-"] {
|
|
|
10843
10843
|
return openBlock(), createElementBlock("option", {
|
|
10844
10844
|
key: opt.value,
|
|
10845
10845
|
value: opt.value
|
|
10846
|
-
}, toDisplayString(opt.label), 9, _hoisted_6$
|
|
10846
|
+
}, toDisplayString(opt.label), 9, _hoisted_6$a);
|
|
10847
10847
|
}), 128))
|
|
10848
10848
|
], 16, _hoisted_5$b)), [
|
|
10849
10849
|
[vModelSelect, draft.value]
|
|
@@ -18316,118 +18316,118 @@ pre[class*="language-"] {
|
|
|
18316
18316
|
function A() {
|
|
18317
18317
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
18318
18318
|
}
|
|
18319
|
-
var
|
|
18320
|
-
function j(
|
|
18321
|
-
|
|
18319
|
+
var T = A();
|
|
18320
|
+
function j(u2) {
|
|
18321
|
+
T = u2;
|
|
18322
18322
|
}
|
|
18323
|
-
var
|
|
18324
|
-
function I(
|
|
18323
|
+
var E$1 = { exec: () => null };
|
|
18324
|
+
function I(u2) {
|
|
18325
18325
|
let e2 = [];
|
|
18326
18326
|
return (t2) => {
|
|
18327
18327
|
let n2 = Math.max(0, Math.min(3, t2 - 1)), s2 = e2[n2];
|
|
18328
|
-
return s2 || (s2 =
|
|
18328
|
+
return s2 || (s2 = u2(n2), e2[n2] = s2), s2;
|
|
18329
18329
|
};
|
|
18330
18330
|
}
|
|
18331
|
-
function k(
|
|
18332
|
-
let t2 = typeof
|
|
18333
|
-
let
|
|
18334
|
-
return
|
|
18331
|
+
function k(u2, e2 = "") {
|
|
18332
|
+
let t2 = typeof u2 == "string" ? u2 : u2.source, n2 = { replace: (s2, r2) => {
|
|
18333
|
+
let o2 = typeof r2 == "string" ? r2 : r2.source;
|
|
18334
|
+
return o2 = o2.replace(m$1.caret, "$1"), t2 = t2.replace(s2, o2), n2;
|
|
18335
18335
|
}, getRegex: () => new RegExp(t2, e2) };
|
|
18336
18336
|
return n2;
|
|
18337
18337
|
}
|
|
18338
|
-
var
|
|
18338
|
+
var Te = ((u2 = "") => {
|
|
18339
18339
|
try {
|
|
18340
|
-
return !!new RegExp("(?<=1)(?<!1)" +
|
|
18340
|
+
return !!new RegExp("(?<=1)(?<!1)" + u2);
|
|
18341
18341
|
} catch {
|
|
18342
18342
|
return false;
|
|
18343
18343
|
}
|
|
18344
|
-
})(), m$1 = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (
|
|
18345
|
-
]`).replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Be = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, De = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ue = /^( {2,}|\\)\n(?!\s*$)/, qe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _ = /[\p{P}\p{S}]/u, C$1 = /[\s\p{P}\p{S}]/u, v$1 = /[^\s\p{P}\p{S}]/u, ve = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, C$1).getRegex(), He = /[\p{Pi}\p{Ps}"']/u, pe = /(?!~)[\p{P}\p{S}]/u, Ze = /(?!~)[\s\p{P}\p{S}]/u, Ge = /(?:[^\s\p{P}\p{S}]|~)/u, Qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",
|
|
18346
|
-
var
|
|
18347
|
-
function
|
|
18344
|
+
})(), m$1 = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, endingSpaceTabChar: /[ \t]$/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u2) => new RegExp(`^( {0,3}${u2})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: I((u2) => new RegExp(`^ {0,${u2}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: I((u2) => new RegExp(`^ {0,${u2}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: I((u2) => new RegExp(`^ {0,${u2}}(?:\`\`\`|~~~)`)), headingBeginRegex: I((u2) => new RegExp(`^ {0,${u2}}#`)), htmlBeginRegex: I((u2) => new RegExp(`^ {0,${u2}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: I((u2) => new RegExp(`^ {0,${u2}}>`)) }, Oe = /^(?:[ \t]*(?:\n|$))+/, we = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ye = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, q = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, U = / {0,3}(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ae = k(oe).replace(/bull/g, U).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Se = k(oe).replace(/bull/g, U).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), K = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, _e = /^[^\n]+/, W = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", W).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Le = k(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, U).getRegex(), Q = "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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", X = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ze = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", X).replace("tag", Q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), le = (u2) => k(K).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", u2).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex(), Ee = le(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Me = le(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Ae = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Me).getRegex(), J = { blockquote: Ae, code: we, def: $e, fences: ye, heading: Pe, hr: q, html: ze, lheading: ae, list: Le, newline: Oe, paragraph: Ee, table: E$1, text: _e }, se = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex(), Ie = { ...J, lheading: Se, table: se, paragraph: k(K).replace("hr", q).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Q).getRegex() }, Ce = { ...J, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", X).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: E$1, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(K).replace("hr", q).replace("heading", ` *#{1,6} *[^
|
|
18345
|
+
]`).replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Be = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, De = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ue = /^( {2,}|\\)\n(?!\s*$)/, qe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, _ = /[\p{P}\p{S}]/u, C$1 = /[\s\p{P}\p{S}]/u, v$1 = /[^\s\p{P}\p{S}]/u, ve = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, C$1).getRegex(), He = /[\p{Pi}\p{Ps}"']/u, pe = /(?!~)[\p{P}\p{S}]/u, Ze = /(?!~)[\s\p{P}\p{S}]/u, Ge = /(?:[^\s\p{P}\p{S}]|~)/u, Qe = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Te ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ne = k(ce, "u").replace(/punct/g, _).getRegex(), je = k(ce, "u").replace(/punct/g, pe).getRegex(), Fe = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ue = k(Fe, "u").replace(/openQuote/g, He).replace(/punct/g, _).getRegex(), he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ke = k(he, "gu").replace(/notPunctSpace/g, v$1).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), We = k(he, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, Ze).replace(/punct/g, pe).getRegex(), Xe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Je = k(Xe, "gu").replace(/notPunctSpace/g, v$1).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), Ve = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, v$1).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), Ye = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", et = k(Ye, "gu").replace(/notPunctSpace/g, v$1).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), tt = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, _).getRegex(), nt = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", rt = k(nt, "gu").replace(/notPunctSpace/g, v$1).replace(/punctSpace/g, C$1).replace(/punct/g, _).getRegex(), st = k(/\\(punct)/, "gu").replace(/punct/g, _).getRegex(), it = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(), ot = k(X).replace("(?:-->|$)", "-->").getRegex(), at = k("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ot).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), lt = /\[(?:\\[\s\S]|[^\[\]\\])*\]/, G = k(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets", lt).getRegex(), ut = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", G).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ke = k(/^!?\[(label)\]\[(ref)\]/).replace("label", G).replace("ref", W).getRegex(), de = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", W).getRegex(), pt = k("reflink|nolink(?!\\()", "g").replace("reflink", ke).replace("nolink", de).getRegex(), ie = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, V = { _backpedal: E$1, anyPunctuation: st, autolink: it, blockSkip: Qe, br: ue, code: De, del: E$1, delLDelim: E$1, delRDelim: E$1, emStrongLDelim: Ne, emStrongRDelimAst: Ke, emStrongRDelimUnd: Ve, escape: Be, link: ut, nolink: de, punctuation: ve, reflink: ke, reflinkSearch: pt, tag: at, text: qe, url: E$1 }, ct = { ...V, emStrongLDelim: Ue, emStrongRDelimAst: Je, emStrongRDelimUnd: et, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", G).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", G).getRegex() }, F = { ...V, emStrongRDelimAst: We, emStrongLDelim: je, delLDelim: tt, delRDelim: rt, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ie).getRegex() }, ht = { ...F, br: k(ue).replace("{2,}", "*").getRegex(), text: k(F.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, H = { normal: J, gfm: Ie, pedantic: Ce }, B = { normal: V, gfm: F, breaks: ht, pedantic: ct };
|
|
18346
|
+
var kt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (u2) => kt[u2];
|
|
18347
|
+
function R(u2, e2) {
|
|
18348
18348
|
if (e2) {
|
|
18349
|
-
if (m$1.escapeTest.test(
|
|
18350
|
-
} else if (m$1.escapeTestNoEncode.test(
|
|
18351
|
-
return
|
|
18349
|
+
if (m$1.escapeTest.test(u2)) return u2.replace(m$1.escapeReplace, ge);
|
|
18350
|
+
} else if (m$1.escapeTestNoEncode.test(u2)) return u2.replace(m$1.escapeReplaceNoEncode, ge);
|
|
18351
|
+
return u2;
|
|
18352
18352
|
}
|
|
18353
|
-
function Y(
|
|
18353
|
+
function Y(u2) {
|
|
18354
18354
|
try {
|
|
18355
|
-
|
|
18355
|
+
u2 = encodeURI(u2).replace(m$1.percentDecode, "%");
|
|
18356
18356
|
} catch {
|
|
18357
18357
|
return null;
|
|
18358
18358
|
}
|
|
18359
|
-
return
|
|
18359
|
+
return u2;
|
|
18360
18360
|
}
|
|
18361
|
-
function ee(
|
|
18362
|
-
let t2 =
|
|
18363
|
-
let
|
|
18364
|
-
for (; --a2 >= 0 &&
|
|
18365
|
-
return
|
|
18361
|
+
function ee(u2, e2) {
|
|
18362
|
+
let t2 = u2.replace(m$1.findPipe, (r2, o2, i2) => {
|
|
18363
|
+
let l2 = false, a2 = o2;
|
|
18364
|
+
for (; --a2 >= 0 && i2[a2] === "\\"; ) l2 = !l2;
|
|
18365
|
+
return l2 ? "|" : " |";
|
|
18366
18366
|
}), n2 = t2.split(m$1.splitPipe), s2 = 0;
|
|
18367
18367
|
if (n2[0].trim() || n2.shift(), n2.length > 0 && !n2.at(-1)?.trim() && n2.pop(), e2) if (n2.length > e2) n2.splice(e2);
|
|
18368
18368
|
else for (; n2.length < e2; ) n2.push("");
|
|
18369
18369
|
for (; s2 < n2.length; s2++) n2[s2] = n2[s2].trim().replace(m$1.slashPipe, "|");
|
|
18370
18370
|
return n2;
|
|
18371
18371
|
}
|
|
18372
|
-
function $(
|
|
18373
|
-
let n2 =
|
|
18372
|
+
function $(u2, e2, t2) {
|
|
18373
|
+
let n2 = u2.length;
|
|
18374
18374
|
if (n2 === 0) return "";
|
|
18375
18375
|
let s2 = 0;
|
|
18376
18376
|
for (; s2 < n2; ) {
|
|
18377
|
-
let r2 =
|
|
18377
|
+
let r2 = u2.charAt(n2 - s2 - 1);
|
|
18378
18378
|
if (r2 === e2 && true) s2++;
|
|
18379
18379
|
else break;
|
|
18380
18380
|
}
|
|
18381
|
-
return
|
|
18381
|
+
return u2.slice(0, n2 - s2);
|
|
18382
18382
|
}
|
|
18383
|
-
function te(
|
|
18384
|
-
let e2 =
|
|
18383
|
+
function te(u2) {
|
|
18384
|
+
let e2 = u2.split(`
|
|
18385
18385
|
`), t2 = e2.length - 1;
|
|
18386
18386
|
for (; t2 >= 0 && m$1.blankLine.test(e2[t2]); ) t2--;
|
|
18387
|
-
return e2.length - t2 <= 2 ?
|
|
18387
|
+
return e2.length - t2 <= 2 ? u2 : e2.slice(0, t2 + 1).join(`
|
|
18388
18388
|
`);
|
|
18389
18389
|
}
|
|
18390
|
-
function fe(
|
|
18391
|
-
if (
|
|
18390
|
+
function fe(u2, e2) {
|
|
18391
|
+
if (u2.indexOf(e2[1]) === -1) return -1;
|
|
18392
18392
|
let t2 = 0;
|
|
18393
|
-
for (let n2 = 0; n2 <
|
|
18394
|
-
else if (
|
|
18395
|
-
else if (
|
|
18393
|
+
for (let n2 = 0; n2 < u2.length; n2++) if (u2[n2] === "\\") n2++;
|
|
18394
|
+
else if (u2[n2] === e2[0]) t2++;
|
|
18395
|
+
else if (u2[n2] === e2[1] && (t2--, t2 < 0)) return n2;
|
|
18396
18396
|
return t2 > 0 ? -2 : -1;
|
|
18397
18397
|
}
|
|
18398
|
-
function me(
|
|
18398
|
+
function me(u2, e2 = 0) {
|
|
18399
18399
|
let t2 = e2, n2 = "";
|
|
18400
|
-
for (let s2 of
|
|
18400
|
+
for (let s2 of u2) if (s2 === " ") {
|
|
18401
18401
|
let r2 = 4 - t2 % 4;
|
|
18402
18402
|
n2 += " ".repeat(r2), t2 += r2;
|
|
18403
18403
|
} else n2 += s2, t2++;
|
|
18404
18404
|
return n2;
|
|
18405
18405
|
}
|
|
18406
|
-
function xe(
|
|
18407
|
-
let r2 = e2.href,
|
|
18406
|
+
function xe(u2, e2, t2, n2, s2) {
|
|
18407
|
+
let r2 = e2.href, o2 = e2.title || null, i2 = u2[1].replace(s2.other.outputLinkReplace, "$1"), l2 = u2[0].charAt(0) === "!";
|
|
18408
18408
|
n2.state.inLink = true;
|
|
18409
18409
|
let a2 = n2.state.linkEmitted, p2 = n2.state.inRawBlock;
|
|
18410
18410
|
n2.state.linkEmitted = false;
|
|
18411
|
-
let c2 = n2.inlineTokens(
|
|
18412
|
-
if (n2.state.linkEmitted = a2, n2.state.inLink = false, !
|
|
18411
|
+
let c2 = n2.inlineTokens(i2), h2 = n2.state.linkEmitted;
|
|
18412
|
+
if (n2.state.linkEmitted = a2, n2.state.inLink = false, !l2) {
|
|
18413
18413
|
if (h2) {
|
|
18414
18414
|
n2.state.inRawBlock = p2;
|
|
18415
18415
|
return;
|
|
18416
18416
|
}
|
|
18417
18417
|
n2.state.linkEmitted = true;
|
|
18418
18418
|
}
|
|
18419
|
-
return { type:
|
|
18419
|
+
return { type: l2 ? "image" : "link", raw: t2, href: r2, title: o2, text: i2, tokens: c2 };
|
|
18420
18420
|
}
|
|
18421
|
-
function
|
|
18422
|
-
let n2 =
|
|
18421
|
+
function dt(u2, e2, t2) {
|
|
18422
|
+
let n2 = u2.match(t2.other.indentCodeCompensation);
|
|
18423
18423
|
if (n2 === null) return e2;
|
|
18424
18424
|
let s2 = n2[1];
|
|
18425
18425
|
return e2.split(`
|
|
18426
18426
|
`).map((r2) => {
|
|
18427
|
-
let
|
|
18428
|
-
if (
|
|
18429
|
-
let [
|
|
18430
|
-
return
|
|
18427
|
+
let o2 = r2.match(t2.other.beginningSpace);
|
|
18428
|
+
if (o2 === null) return r2;
|
|
18429
|
+
let [i2] = o2;
|
|
18430
|
+
return r2.slice(Math.min(i2.length, s2.length));
|
|
18431
18431
|
}).join(`
|
|
18432
18432
|
`);
|
|
18433
18433
|
}
|
|
@@ -18436,7 +18436,7 @@ pre[class*="language-"] {
|
|
|
18436
18436
|
rules;
|
|
18437
18437
|
lexer;
|
|
18438
18438
|
constructor(e2) {
|
|
18439
|
-
this.options = e2 ||
|
|
18439
|
+
this.options = e2 || T;
|
|
18440
18440
|
}
|
|
18441
18441
|
space(e2) {
|
|
18442
18442
|
let t2 = this.rules.block.newline.exec(e2);
|
|
@@ -18452,7 +18452,7 @@ pre[class*="language-"] {
|
|
|
18452
18452
|
fences(e2) {
|
|
18453
18453
|
let t2 = this.rules.block.fences.exec(e2);
|
|
18454
18454
|
if (t2) {
|
|
18455
|
-
let n2 = t2[0], s2 =
|
|
18455
|
+
let n2 = t2[0], s2 = dt(n2, t2[3] || "", this.rules);
|
|
18456
18456
|
return { type: "code", raw: n2, lang: t2[2] ? t2[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t2[2], text: s2 };
|
|
18457
18457
|
}
|
|
18458
18458
|
}
|
|
@@ -18462,7 +18462,7 @@ pre[class*="language-"] {
|
|
|
18462
18462
|
let n2 = t2[2].trim();
|
|
18463
18463
|
if (this.rules.other.endingHash.test(n2)) {
|
|
18464
18464
|
let s2 = $(n2, "#");
|
|
18465
|
-
(this.options.pedantic || !s2 || this.rules.other.
|
|
18465
|
+
(this.options.pedantic || !s2 || this.rules.other.endingSpaceTabChar.test(s2)) && (n2 = s2.trim());
|
|
18466
18466
|
}
|
|
18467
18467
|
return { type: "heading", raw: $(t2[0], `
|
|
18468
18468
|
`), depth: t2[1].length, text: n2, tokens: this.lexer.inline(n2) };
|
|
@@ -18478,40 +18478,40 @@ pre[class*="language-"] {
|
|
|
18478
18478
|
if (t2) {
|
|
18479
18479
|
let n2 = $(t2[0], `
|
|
18480
18480
|
`).split(`
|
|
18481
|
-
`), s2 = "", r2 = "",
|
|
18481
|
+
`), s2 = "", r2 = "", o2 = [];
|
|
18482
18482
|
for (; n2.length > 0; ) {
|
|
18483
|
-
let
|
|
18484
|
-
for (a2 = 0; a2 < n2.length; a2++) if (this.rules.other.blockquoteStart.test(n2[a2]))
|
|
18485
|
-
else if (!
|
|
18483
|
+
let i2 = false, l2 = [], a2;
|
|
18484
|
+
for (a2 = 0; a2 < n2.length; a2++) if (this.rules.other.blockquoteStart.test(n2[a2])) l2.push(n2[a2]), i2 = true;
|
|
18485
|
+
else if (!i2) l2.push(n2[a2]);
|
|
18486
18486
|
else break;
|
|
18487
18487
|
n2 = n2.slice(a2);
|
|
18488
|
-
let p2 =
|
|
18488
|
+
let p2 = l2.join(`
|
|
18489
18489
|
`), c2 = p2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
18490
18490
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
18491
18491
|
s2 = s2 ? `${s2}
|
|
18492
18492
|
${p2}` : p2, r2 = r2 ? `${r2}
|
|
18493
18493
|
${c2}` : c2;
|
|
18494
18494
|
let h2 = this.lexer.state.top;
|
|
18495
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(c2,
|
|
18496
|
-
let d2 =
|
|
18495
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, o2, true), this.lexer.state.top = h2, n2.length === 0) break;
|
|
18496
|
+
let d2 = o2.at(-1);
|
|
18497
18497
|
if (d2?.type === "code") break;
|
|
18498
18498
|
if (d2?.type === "blockquote") {
|
|
18499
18499
|
let O = d2, g2 = n2.join(`
|
|
18500
18500
|
`), w2 = O.raw + `
|
|
18501
|
-
` + g2.replace(this.rules.other.blockquoteSetextReplace2, ""),
|
|
18502
|
-
|
|
18503
|
-
${g2}`, r2 = r2.substring(0, r2.length - O.text.length) +
|
|
18501
|
+
` + g2.replace(this.rules.other.blockquoteSetextReplace2, ""), z = this.blockquote(w2);
|
|
18502
|
+
o2[o2.length - 1] = z, s2 = `${s2}
|
|
18503
|
+
${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + z.text;
|
|
18504
18504
|
break;
|
|
18505
18505
|
} else if (d2?.type === "list") {
|
|
18506
18506
|
let O = d2, g2 = O.raw + `
|
|
18507
18507
|
` + n2.join(`
|
|
18508
18508
|
`), w2 = this.list(g2);
|
|
18509
|
-
|
|
18509
|
+
o2[o2.length - 1] = w2, s2 = s2.substring(0, s2.length - d2.raw.length) + w2.raw, r2 = r2.substring(0, r2.length - O.raw.length) + w2.raw, n2 = g2.substring(o2.at(-1).raw.length).split(`
|
|
18510
18510
|
`);
|
|
18511
18511
|
continue;
|
|
18512
18512
|
}
|
|
18513
18513
|
}
|
|
18514
|
-
return { type: "blockquote", raw: s2, tokens:
|
|
18514
|
+
return { type: "blockquote", raw: s2, tokens: o2, text: r2 };
|
|
18515
18515
|
}
|
|
18516
18516
|
}
|
|
18517
18517
|
list(e2) {
|
|
@@ -18519,25 +18519,25 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18519
18519
|
if (t2) {
|
|
18520
18520
|
let n2 = t2[1].trim(), s2 = n2.length > 1, r2 = { type: "list", raw: "", ordered: s2, start: s2 ? +n2.slice(0, -1) : "", loose: false, items: [] };
|
|
18521
18521
|
n2 = s2 ? `\\d{1,9}\\${n2.slice(-1)}` : `\\${n2}`, this.options.pedantic && (n2 = s2 ? n2 : "[*+-]");
|
|
18522
|
-
let
|
|
18522
|
+
let o2 = this.rules.other.listItemRegex(n2), i2 = false;
|
|
18523
18523
|
for (; e2; ) {
|
|
18524
18524
|
let a2 = false, p2 = "", c2 = "";
|
|
18525
|
-
if (!(t2 =
|
|
18525
|
+
if (!(t2 = o2.exec(e2)) || this.rules.block.hr.test(e2)) break;
|
|
18526
18526
|
p2 = t2[0], e2 = e2.substring(p2.length);
|
|
18527
18527
|
let h2 = me(t2[2].split(`
|
|
18528
18528
|
`, 1)[0], t2[1].length), d2 = e2.split(`
|
|
18529
18529
|
`, 1)[0], O = !h2.trim(), g2 = 0;
|
|
18530
18530
|
if (this.options.pedantic ? (g2 = 2, c2 = h2.trimStart()) : O ? g2 = t2[1].length + 1 : (g2 = h2.search(this.rules.other.nonSpaceChar), g2 = g2 > 4 ? 1 : g2, c2 = h2.slice(g2), g2 += t2[1].length), O && this.rules.other.blankLine.test(d2) && (p2 += d2 + `
|
|
18531
18531
|
`, e2 = e2.substring(d2.length + 1), a2 = true), !a2) {
|
|
18532
|
-
let w2 = this.rules.other.nextBulletRegex(g2),
|
|
18532
|
+
let w2 = this.rules.other.nextBulletRegex(g2), z = this.rules.other.hrRegex(g2), ne = this.rules.other.fencesBeginRegex(g2), re = this.rules.other.headingBeginRegex(g2), be = this.rules.other.htmlBeginRegex(g2), Re = this.rules.other.blockquoteBeginRegex(g2);
|
|
18533
18533
|
for (; e2; ) {
|
|
18534
18534
|
let N = e2.split(`
|
|
18535
18535
|
`, 1)[0], D;
|
|
18536
|
-
if (d2 = N, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), D = d2) : D = d2.replace(this.rules.other.tabCharGlobal, " "), ne.test(d2) || re.test(d2) || be.test(d2) || Re.test(d2) || w2.test(d2) ||
|
|
18536
|
+
if (d2 = N, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), D = d2) : D = d2.replace(this.rules.other.tabCharGlobal, " "), ne.test(d2) || re.test(d2) || be.test(d2) || Re.test(d2) || w2.test(d2) || z.test(d2)) break;
|
|
18537
18537
|
if (D.search(this.rules.other.nonSpaceChar) >= g2 || !d2.trim()) c2 += `
|
|
18538
18538
|
` + D.slice(g2);
|
|
18539
18539
|
else {
|
|
18540
|
-
if (O || h2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ne.test(h2) || re.test(h2) ||
|
|
18540
|
+
if (O || h2.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ne.test(h2) || re.test(h2) || z.test(h2)) break;
|
|
18541
18541
|
c2 += `
|
|
18542
18542
|
` + d2;
|
|
18543
18543
|
}
|
|
@@ -18545,10 +18545,10 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18545
18545
|
`, e2 = e2.substring(N.length + 1), h2 = D.slice(g2);
|
|
18546
18546
|
}
|
|
18547
18547
|
}
|
|
18548
|
-
r2.loose || (
|
|
18548
|
+
r2.loose || (i2 ? r2.loose = true : this.rules.other.doubleBlankLine.test(p2) && (i2 = true)), r2.items.push({ type: "list_item", raw: p2, task: !!this.options.gfm && this.rules.other.listIsTask.test(c2), loose: false, text: c2, tokens: [] }), r2.raw += p2;
|
|
18549
18549
|
}
|
|
18550
|
-
let
|
|
18551
|
-
if (
|
|
18550
|
+
let l2 = r2.items.at(-1);
|
|
18551
|
+
if (l2) l2.raw = l2.raw.trimEnd(), l2.text = l2.text.trimEnd();
|
|
18552
18552
|
else return;
|
|
18553
18553
|
r2.raw = r2.raw.trimEnd();
|
|
18554
18554
|
for (let a2 of r2.items) if (this.lexer.state.top = false, a2.tokens = this.lexer.blockTokens(a2.text, []), !r2.loose) {
|
|
@@ -18596,13 +18596,13 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18596
18596
|
let t2 = this.rules.block.table.exec(e2);
|
|
18597
18597
|
if (!t2 || !this.rules.other.tableDelimiter.test(t2[2])) return;
|
|
18598
18598
|
let n2 = ee(t2[1]), s2 = t2[2].replace(this.rules.other.tableAlignChars, "").split("|"), r2 = t2[3]?.trim() ? t2[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
18599
|
-
`) : [],
|
|
18599
|
+
`) : [], o2 = { type: "table", raw: $(t2[0], `
|
|
18600
18600
|
`), header: [], align: [], rows: [] };
|
|
18601
18601
|
if (n2.length === s2.length) {
|
|
18602
|
-
for (let
|
|
18603
|
-
for (let
|
|
18604
|
-
for (let
|
|
18605
|
-
return
|
|
18602
|
+
for (let i2 of s2) this.rules.other.tableAlignRight.test(i2) ? o2.align.push("right") : this.rules.other.tableAlignCenter.test(i2) ? o2.align.push("center") : this.rules.other.tableAlignLeft.test(i2) ? o2.align.push("left") : o2.align.push(null);
|
|
18603
|
+
for (let i2 = 0; i2 < n2.length; i2++) o2.header.push({ text: n2[i2], tokens: this.lexer.inline(n2[i2]), header: true, align: o2.align[i2] });
|
|
18604
|
+
for (let i2 of r2) o2.rows.push(ee(i2, o2.header.length).map((l2, a2) => ({ text: l2, tokens: this.lexer.inline(l2), header: false, align: o2.align[a2] })));
|
|
18605
|
+
return o2;
|
|
18606
18606
|
}
|
|
18607
18607
|
}
|
|
18608
18608
|
lheading(e2) {
|
|
@@ -18639,20 +18639,20 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18639
18639
|
let n2 = t2[2].trim();
|
|
18640
18640
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n2)) {
|
|
18641
18641
|
if (!this.rules.other.endAngleBracket.test(n2)) return;
|
|
18642
|
-
let
|
|
18643
|
-
if ((n2.length -
|
|
18642
|
+
let o2 = $(n2.slice(0, -1), "\\");
|
|
18643
|
+
if ((n2.length - o2.length) % 2 === 0) return;
|
|
18644
18644
|
} else {
|
|
18645
|
-
let
|
|
18646
|
-
if (
|
|
18647
|
-
if (
|
|
18648
|
-
let
|
|
18649
|
-
t2[2] = t2[2].substring(0,
|
|
18645
|
+
let o2 = fe(t2[2], "()");
|
|
18646
|
+
if (o2 === -2) return;
|
|
18647
|
+
if (o2 > -1) {
|
|
18648
|
+
let l2 = (t2[0].indexOf("!") === 0 ? 5 : 4) + t2[1].length + o2;
|
|
18649
|
+
t2[2] = t2[2].substring(0, o2), t2[0] = t2[0].substring(0, l2).trim(), t2[3] = "";
|
|
18650
18650
|
}
|
|
18651
18651
|
}
|
|
18652
18652
|
let s2 = t2[2], r2 = "";
|
|
18653
18653
|
if (this.options.pedantic) {
|
|
18654
|
-
let
|
|
18655
|
-
|
|
18654
|
+
let o2 = this.rules.other.pedanticHrefTitle.exec(s2);
|
|
18655
|
+
o2 && (s2 = o2[1], r2 = o2[3]);
|
|
18656
18656
|
} else r2 = t2[3] ? t2[3].slice(1, -1) : "";
|
|
18657
18657
|
return s2 = s2.trim(), this.rules.other.startAngleBracket.test(s2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n2) ? s2 = s2.slice(1) : s2 = s2.slice(1, -1)), xe(t2, { href: s2 && s2.replace(this.rules.inline.anyPunctuation, "$1"), title: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1") }, t2[0], this.lexer, this.rules);
|
|
18658
18658
|
}
|
|
@@ -18662,8 +18662,8 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18662
18662
|
if ((n2 = this.rules.inline.reflink.exec(e2)) || (n2 = this.rules.inline.nolink.exec(e2))) {
|
|
18663
18663
|
let s2 = (n2[2] || n2[1]).replace(this.rules.other.multipleSpaceGlobal, " "), r2 = t2[s2.toLowerCase()];
|
|
18664
18664
|
if (!r2) {
|
|
18665
|
-
let
|
|
18666
|
-
return { type: "text", raw:
|
|
18665
|
+
let o2 = n2[0].charAt(0);
|
|
18666
|
+
return { type: "text", raw: o2, text: o2 };
|
|
18667
18667
|
}
|
|
18668
18668
|
return xe(n2, r2, n2[0], this.lexer, this.rules);
|
|
18669
18669
|
}
|
|
@@ -18672,25 +18672,25 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18672
18672
|
let s2 = this.rules.inline.emStrongLDelim.exec(e2);
|
|
18673
18673
|
if (!s2 || !s2[1] && !s2[2] && !s2[3] && !s2[4] || s2[4] && n2.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
18674
18674
|
if (!(s2[1] || s2[3] || "") || !n2 || this.rules.inline.punctuation.exec(n2)) {
|
|
18675
|
-
let
|
|
18676
|
-
for (d2.lastIndex = 0, t2 = t2.slice(-1 * e2.length +
|
|
18677
|
-
if (
|
|
18678
|
-
if (
|
|
18679
|
-
a2 +=
|
|
18675
|
+
let o2 = [...s2[0]].length - 1, i2, l2, a2 = o2, p2 = 0, c2 = s2[0][0], h2 = n2 === c2, d2 = c2 === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
18676
|
+
for (d2.lastIndex = 0, t2 = t2.slice(-1 * e2.length + o2); (s2 = d2.exec(t2)) !== null; ) {
|
|
18677
|
+
if (i2 = s2[1] || s2[2] || s2[3] || s2[4] || s2[5] || s2[6], !i2) continue;
|
|
18678
|
+
if (l2 = [...i2].length, s2[3] || s2[4]) {
|
|
18679
|
+
a2 += l2;
|
|
18680
18680
|
continue;
|
|
18681
18681
|
} else if (s2[5] || s2[6]) {
|
|
18682
|
-
if (
|
|
18683
|
-
p2 +=
|
|
18682
|
+
if (o2 % 3 && !((o2 + l2) % 3)) {
|
|
18683
|
+
p2 += l2;
|
|
18684
18684
|
continue;
|
|
18685
18685
|
}
|
|
18686
18686
|
if (h2) break;
|
|
18687
18687
|
}
|
|
18688
|
-
if (a2 -=
|
|
18689
|
-
|
|
18690
|
-
let O = [...s2[0]][0].length, g2 = e2.slice(0,
|
|
18691
|
-
if (Math.min(
|
|
18692
|
-
let
|
|
18693
|
-
return { type: "em", raw: g2, text:
|
|
18688
|
+
if (a2 -= l2, a2 > 0) continue;
|
|
18689
|
+
l2 = Math.min(l2, l2 + a2 + p2);
|
|
18690
|
+
let O = [...s2[0]][0].length, g2 = e2.slice(0, o2 + s2.index + O + l2);
|
|
18691
|
+
if (Math.min(o2, l2) % 2) {
|
|
18692
|
+
let z = g2.slice(1, -1);
|
|
18693
|
+
return { type: "em", raw: g2, text: z, tokens: this.lexer.inlineTokens(z) };
|
|
18694
18694
|
}
|
|
18695
18695
|
let w2 = g2.slice(2, -2);
|
|
18696
18696
|
return { type: "strong", raw: g2, text: w2, tokens: this.lexer.inlineTokens(w2) };
|
|
@@ -18712,16 +18712,16 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18712
18712
|
let s2 = this.rules.inline.delLDelim.exec(e2);
|
|
18713
18713
|
if (!s2) return;
|
|
18714
18714
|
if (!(s2[1] || "") || !n2 || this.rules.inline.punctuation.exec(n2)) {
|
|
18715
|
-
let
|
|
18716
|
-
for (p2.lastIndex = 0, t2 = t2.slice(-1 * e2.length +
|
|
18717
|
-
if (
|
|
18715
|
+
let o2 = [...s2[0]].length - 1, i2, l2, a2 = o2, p2 = this.rules.inline.delRDelim;
|
|
18716
|
+
for (p2.lastIndex = 0, t2 = t2.slice(-1 * e2.length + o2); (s2 = p2.exec(t2)) !== null; ) {
|
|
18717
|
+
if (i2 = s2[1] || s2[2] || s2[3] || s2[4] || s2[5] || s2[6], !i2 || (l2 = [...i2].length, l2 !== o2)) continue;
|
|
18718
18718
|
if (s2[3] || s2[4]) {
|
|
18719
|
-
a2 +=
|
|
18719
|
+
a2 += l2;
|
|
18720
18720
|
continue;
|
|
18721
18721
|
}
|
|
18722
|
-
if (a2 -=
|
|
18723
|
-
|
|
18724
|
-
let c2 = [...s2[0]][0].length, h2 = e2.slice(0,
|
|
18722
|
+
if (a2 -= l2, a2 > 0) continue;
|
|
18723
|
+
l2 = Math.min(l2, l2 + a2);
|
|
18724
|
+
let c2 = [...s2[0]][0].length, h2 = e2.slice(0, o2 + s2.index + c2 + l2), d2 = h2.slice(o2, -o2);
|
|
18725
18725
|
return { type: "del", raw: h2, text: d2, tokens: this.lexer.inlineTokens(d2) };
|
|
18726
18726
|
}
|
|
18727
18727
|
}
|
|
@@ -18730,7 +18730,7 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18730
18730
|
let t2 = this.rules.inline.autolink.exec(e2);
|
|
18731
18731
|
if (t2) {
|
|
18732
18732
|
let n2, s2;
|
|
18733
|
-
return t2[2] === "@" ? (n2 = t2[1], s2 = "mailto:" + n2) : (n2 = t2[1], s2 = n2), { type: "link", raw: t2[0], text: n2, href: s2, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18733
|
+
return t2[2] === "@" ? (n2 = t2[1], s2 = "mailto:" + n2) : (n2 = t2[1], s2 = n2), { type: "link", raw: t2[0], text: n2, href: s2, autolink: true, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18734
18734
|
}
|
|
18735
18735
|
}
|
|
18736
18736
|
url(e2) {
|
|
@@ -18745,7 +18745,7 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18745
18745
|
while (r2 !== t2[0]);
|
|
18746
18746
|
n2 = t2[0], t2[1] === "www." ? s2 = "http://" + t2[0] : s2 = t2[0];
|
|
18747
18747
|
}
|
|
18748
|
-
return { type: "link", raw: t2[0], text: n2, href: s2, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18748
|
+
return { type: "link", raw: t2[0], text: n2, href: s2, autolink: true, tokens: [{ type: "text", raw: n2, text: n2 }] };
|
|
18749
18749
|
}
|
|
18750
18750
|
}
|
|
18751
18751
|
inlineText(e2) {
|
|
@@ -18756,14 +18756,14 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18756
18756
|
}
|
|
18757
18757
|
}
|
|
18758
18758
|
};
|
|
18759
|
-
var x = class
|
|
18759
|
+
var x = class u2 {
|
|
18760
18760
|
tokens;
|
|
18761
18761
|
options;
|
|
18762
18762
|
state;
|
|
18763
18763
|
inlineQueue;
|
|
18764
18764
|
tokenizer;
|
|
18765
18765
|
constructor(e2) {
|
|
18766
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e2 ||
|
|
18766
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e2 || T, this.options.tokenizer = this.options.tokenizer || new y$1(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, linkEmitted: false, top: true };
|
|
18767
18767
|
let t2 = { other: m$1, block: H.normal, inline: B.normal };
|
|
18768
18768
|
this.options.pedantic ? (t2.block = H.pedantic, t2.inline = B.pedantic) : this.options.gfm && (t2.block = H.gfm, this.options.breaks ? t2.inline = B.breaks : t2.inline = B.gfm), this.tokenizer.rules = t2;
|
|
18769
18769
|
}
|
|
@@ -18771,10 +18771,10 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18771
18771
|
return { block: H, inline: B };
|
|
18772
18772
|
}
|
|
18773
18773
|
static lex(e2, t2) {
|
|
18774
|
-
return new
|
|
18774
|
+
return new u2(t2).lex(e2);
|
|
18775
18775
|
}
|
|
18776
18776
|
static lexInline(e2, t2) {
|
|
18777
|
-
return new
|
|
18777
|
+
return new u2(t2).inlineTokens(e2);
|
|
18778
18778
|
}
|
|
18779
18779
|
lex(e2) {
|
|
18780
18780
|
e2 = e2.replace(m$1.carriageReturn, `
|
|
@@ -18795,21 +18795,21 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18795
18795
|
break;
|
|
18796
18796
|
}
|
|
18797
18797
|
let r2;
|
|
18798
|
-
if (this.options.extensions?.block?.some((
|
|
18798
|
+
if (this.options.extensions?.block?.some((i2) => (r2 = i2.call({ lexer: this }, e2, t2)) ? (e2 = e2.substring(r2.raw.length), t2.push(r2), true) : false)) continue;
|
|
18799
18799
|
if (r2 = this.tokenizer.space(e2)) {
|
|
18800
18800
|
e2 = e2.substring(r2.raw.length);
|
|
18801
|
-
let
|
|
18802
|
-
r2.raw.length === 1 &&
|
|
18801
|
+
let i2 = t2.at(-1);
|
|
18802
|
+
r2.raw.length === 1 && i2 !== void 0 ? i2.raw += `
|
|
18803
18803
|
` : t2.push(r2);
|
|
18804
18804
|
continue;
|
|
18805
18805
|
}
|
|
18806
18806
|
if (r2 = this.tokenizer.code(e2)) {
|
|
18807
18807
|
e2 = e2.substring(r2.raw.length);
|
|
18808
|
-
let
|
|
18809
|
-
|
|
18808
|
+
let i2 = t2.at(-1);
|
|
18809
|
+
i2?.type === "paragraph" || i2?.type === "text" ? (i2.raw += (i2.raw.endsWith(`
|
|
18810
18810
|
`) ? "" : `
|
|
18811
|
-
`) + r2.raw,
|
|
18812
|
-
` + r2.text, this.inlineQueue.at(-1).src =
|
|
18811
|
+
`) + r2.raw, i2.text += `
|
|
18812
|
+
` + r2.text, this.inlineQueue.at(-1).src = i2.text) : t2.push(r2);
|
|
18813
18813
|
continue;
|
|
18814
18814
|
}
|
|
18815
18815
|
if (r2 = this.tokenizer.fences(e2)) {
|
|
@@ -18838,11 +18838,11 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18838
18838
|
}
|
|
18839
18839
|
if (r2 = this.tokenizer.def(e2)) {
|
|
18840
18840
|
e2 = e2.substring(r2.raw.length);
|
|
18841
|
-
let
|
|
18842
|
-
|
|
18841
|
+
let i2 = t2.at(-1);
|
|
18842
|
+
i2?.type === "paragraph" || i2?.type === "text" ? (i2.raw += (i2.raw.endsWith(`
|
|
18843
18843
|
`) ? "" : `
|
|
18844
|
-
`) + r2.raw,
|
|
18845
|
-
` + r2.raw, this.inlineQueue.at(-1).src =
|
|
18844
|
+
`) + r2.raw, i2.text += `
|
|
18845
|
+
` + r2.raw, this.inlineQueue.at(-1).src = i2.text) : this.tokens.links[r2.tag] || (this.tokens.links[r2.tag] = { href: r2.href, title: r2.title }, t2.push(r2));
|
|
18846
18846
|
continue;
|
|
18847
18847
|
}
|
|
18848
18848
|
if (r2 = this.tokenizer.table(e2)) {
|
|
@@ -18853,28 +18853,28 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18853
18853
|
e2 = e2.substring(r2.raw.length), t2.push(r2);
|
|
18854
18854
|
continue;
|
|
18855
18855
|
}
|
|
18856
|
-
let
|
|
18856
|
+
let o2 = e2;
|
|
18857
18857
|
if (this.options.extensions?.startBlock) {
|
|
18858
|
-
let
|
|
18858
|
+
let i2 = 1 / 0, l2 = e2.slice(1), a2;
|
|
18859
18859
|
this.options.extensions.startBlock.forEach((p2) => {
|
|
18860
|
-
a2 = p2.call({ lexer: this },
|
|
18861
|
-
}),
|
|
18860
|
+
a2 = p2.call({ lexer: this }, l2), typeof a2 == "number" && a2 >= 0 && (i2 = Math.min(i2, a2));
|
|
18861
|
+
}), i2 < 1 / 0 && i2 >= 0 && (o2 = e2.substring(0, i2 + 1));
|
|
18862
18862
|
}
|
|
18863
|
-
if (this.state.top && (r2 = this.tokenizer.paragraph(
|
|
18864
|
-
let
|
|
18865
|
-
n2 &&
|
|
18863
|
+
if (this.state.top && (r2 = this.tokenizer.paragraph(o2))) {
|
|
18864
|
+
let i2 = t2.at(-1);
|
|
18865
|
+
n2 && i2?.type === "paragraph" ? (i2.raw += (i2.raw.endsWith(`
|
|
18866
18866
|
`) ? "" : `
|
|
18867
|
-
`) + r2.raw,
|
|
18868
|
-
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
18867
|
+
`) + r2.raw, i2.text += `
|
|
18868
|
+
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i2.text) : t2.push(r2), n2 = o2.length !== e2.length, e2 = e2.substring(r2.raw.length);
|
|
18869
18869
|
continue;
|
|
18870
18870
|
}
|
|
18871
18871
|
if (r2 = this.tokenizer.text(e2)) {
|
|
18872
18872
|
e2 = e2.substring(r2.raw.length);
|
|
18873
|
-
let
|
|
18874
|
-
|
|
18873
|
+
let i2 = t2.at(-1);
|
|
18874
|
+
i2?.type === "text" ? (i2.raw += (i2.raw.endsWith(`
|
|
18875
18875
|
`) ? "" : `
|
|
18876
|
-
`) + r2.raw,
|
|
18877
|
-
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
18876
|
+
`) + r2.raw, i2.text += `
|
|
18877
|
+
` + r2.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i2.text) : t2.push(r2);
|
|
18878
18878
|
continue;
|
|
18879
18879
|
}
|
|
18880
18880
|
if (e2) {
|
|
@@ -18901,84 +18901,84 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18901
18901
|
this.tokenizer.lexer = this;
|
|
18902
18902
|
let n2 = e2;
|
|
18903
18903
|
if (this.tokens.links && e2.includes("[")) {
|
|
18904
|
-
let
|
|
18904
|
+
let i2 = this.tokenizer.rules.inline.reflinkSearch, l2 = (a2) => {
|
|
18905
18905
|
let p2 = a2.lastIndexOf("[");
|
|
18906
18906
|
if (!Object.hasOwn(this.tokens.links, a2.slice(p2 + 1, -1))) return a2;
|
|
18907
18907
|
if (p2 > 1 && a2.charAt(0) !== "!") {
|
|
18908
18908
|
let c2 = a2.slice(1, p2 - 1);
|
|
18909
|
-
if (this.linkInText(c2)) return "[" + c2.replace(
|
|
18909
|
+
if (this.linkInText(c2)) return "[" + c2.replace(i2, l2) + "][" + "a".repeat(a2.length - p2 - 2) + "]";
|
|
18910
18910
|
}
|
|
18911
18911
|
return "[" + "a".repeat(a2.length - 2) + "]";
|
|
18912
18912
|
};
|
|
18913
|
-
n2 = n2.replace(
|
|
18913
|
+
n2 = n2.replace(i2, l2);
|
|
18914
18914
|
}
|
|
18915
|
-
n2 = n2.replace(this.tokenizer.rules.inline.anyPunctuation, (
|
|
18915
|
+
n2 = n2.replace(this.tokenizer.rules.inline.anyPunctuation, (i2) => "+".repeat(i2.length)), n2 = n2.replace(this.tokenizer.rules.inline.blockSkip, (i2, l2, a2) => {
|
|
18916
18916
|
let p2 = a2 ? a2.length : 0;
|
|
18917
|
-
return
|
|
18917
|
+
return i2.slice(0, p2) + "[" + "a".repeat(i2.length - p2 - 2) + "]";
|
|
18918
18918
|
}), n2 = this.options.hooks?.emStrongMask?.call({ lexer: this }, n2) ?? n2;
|
|
18919
|
-
let s2 = false, r2 = "",
|
|
18919
|
+
let s2 = false, r2 = "", o2 = 1 / 0;
|
|
18920
18920
|
for (; e2; ) {
|
|
18921
|
-
if (e2.length <
|
|
18921
|
+
if (e2.length < o2) o2 = e2.length;
|
|
18922
18922
|
else {
|
|
18923
18923
|
this.infiniteLoopError(e2.charCodeAt(0));
|
|
18924
18924
|
break;
|
|
18925
18925
|
}
|
|
18926
18926
|
s2 || (r2 = ""), s2 = false;
|
|
18927
|
-
let
|
|
18928
|
-
if (this.options.extensions?.inline?.some((a2) => (
|
|
18929
|
-
if (
|
|
18930
|
-
e2 = e2.substring(
|
|
18927
|
+
let i2;
|
|
18928
|
+
if (this.options.extensions?.inline?.some((a2) => (i2 = a2.call({ lexer: this }, e2, t2)) ? (e2 = e2.substring(i2.raw.length), t2.push(i2), true) : false)) continue;
|
|
18929
|
+
if (i2 = this.tokenizer.escape(e2)) {
|
|
18930
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18931
18931
|
continue;
|
|
18932
18932
|
}
|
|
18933
|
-
if (
|
|
18934
|
-
e2 = e2.substring(
|
|
18933
|
+
if (i2 = this.tokenizer.tag(e2)) {
|
|
18934
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18935
18935
|
continue;
|
|
18936
18936
|
}
|
|
18937
|
-
if (
|
|
18938
|
-
e2 = e2.substring(
|
|
18937
|
+
if (i2 = this.tokenizer.link(e2)) {
|
|
18938
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18939
18939
|
continue;
|
|
18940
18940
|
}
|
|
18941
|
-
if (
|
|
18942
|
-
e2 = e2.substring(
|
|
18941
|
+
if (i2 = this.tokenizer.reflink(e2, this.tokens.links)) {
|
|
18942
|
+
e2 = e2.substring(i2.raw.length);
|
|
18943
18943
|
let a2 = t2.at(-1);
|
|
18944
|
-
|
|
18944
|
+
i2.type === "text" && a2?.type === "text" ? (a2.raw += i2.raw, a2.text += i2.text) : t2.push(i2);
|
|
18945
18945
|
continue;
|
|
18946
18946
|
}
|
|
18947
|
-
if (
|
|
18948
|
-
e2 = e2.substring(
|
|
18947
|
+
if (i2 = this.tokenizer.emStrong(e2, n2, r2)) {
|
|
18948
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18949
18949
|
continue;
|
|
18950
18950
|
}
|
|
18951
|
-
if (
|
|
18952
|
-
e2 = e2.substring(
|
|
18951
|
+
if (i2 = this.tokenizer.codespan(e2)) {
|
|
18952
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18953
18953
|
continue;
|
|
18954
18954
|
}
|
|
18955
|
-
if (
|
|
18956
|
-
e2 = e2.substring(
|
|
18955
|
+
if (i2 = this.tokenizer.br(e2)) {
|
|
18956
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18957
18957
|
continue;
|
|
18958
18958
|
}
|
|
18959
|
-
if (
|
|
18960
|
-
e2 = e2.substring(
|
|
18959
|
+
if (i2 = this.tokenizer.del(e2, n2, r2)) {
|
|
18960
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18961
18961
|
continue;
|
|
18962
18962
|
}
|
|
18963
|
-
if (
|
|
18964
|
-
e2 = e2.substring(
|
|
18963
|
+
if (i2 = this.tokenizer.autolink(e2)) {
|
|
18964
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18965
18965
|
continue;
|
|
18966
18966
|
}
|
|
18967
|
-
if (!this.state.inLink && (
|
|
18968
|
-
e2 = e2.substring(
|
|
18967
|
+
if (!this.state.inLink && (i2 = this.tokenizer.url(e2))) {
|
|
18968
|
+
e2 = e2.substring(i2.raw.length), t2.push(i2);
|
|
18969
18969
|
continue;
|
|
18970
18970
|
}
|
|
18971
|
-
let
|
|
18971
|
+
let l2 = e2;
|
|
18972
18972
|
if (this.options.extensions?.startInline) {
|
|
18973
18973
|
let a2 = 1 / 0, p2 = e2.slice(1), c2;
|
|
18974
18974
|
this.options.extensions.startInline.forEach((h2) => {
|
|
18975
18975
|
c2 = h2.call({ lexer: this }, p2), typeof c2 == "number" && c2 >= 0 && (a2 = Math.min(a2, c2));
|
|
18976
|
-
}), a2 < 1 / 0 && a2 >= 0 && (
|
|
18976
|
+
}), a2 < 1 / 0 && a2 >= 0 && (l2 = e2.substring(0, a2 + 1));
|
|
18977
18977
|
}
|
|
18978
|
-
if (
|
|
18979
|
-
e2 = e2.substring(
|
|
18978
|
+
if (i2 = this.tokenizer.inlineText(l2)) {
|
|
18979
|
+
e2 = e2.substring(i2.raw.length), i2.raw.slice(-1) !== "_" && (r2 = i2.raw.slice(-1)), s2 = true;
|
|
18980
18980
|
let a2 = t2.at(-1);
|
|
18981
|
-
a2?.type === "text" ? (a2.raw +=
|
|
18981
|
+
a2?.type === "text" ? (a2.raw += i2.raw, a2.text += i2.text) : t2.push(i2);
|
|
18982
18982
|
continue;
|
|
18983
18983
|
}
|
|
18984
18984
|
if (e2) {
|
|
@@ -18998,16 +18998,16 @@ ${g2}`, r2 = r2.substring(0, r2.length - O.text.length) + E2.text;
|
|
|
18998
18998
|
options;
|
|
18999
18999
|
parser;
|
|
19000
19000
|
constructor(e2) {
|
|
19001
|
-
this.options = e2 ||
|
|
19001
|
+
this.options = e2 || T;
|
|
19002
19002
|
}
|
|
19003
19003
|
space(e2) {
|
|
19004
19004
|
return "";
|
|
19005
19005
|
}
|
|
19006
19006
|
code({ text: e2, lang: t2, escaped: n2 }) {
|
|
19007
|
-
let s2 = (t2 || "").match(m$1.notSpaceStart)?.[0], r2 = e2.replace(m$1.endingNewline, "") + `
|
|
19008
|
-
|
|
19009
|
-
return s2 ? '<pre><code class="language-' +
|
|
19010
|
-
` : "<pre><code>" + (n2 ? r2 :
|
|
19007
|
+
let s2 = (t2 || "").match(m$1.notSpaceStart)?.[0], r2 = e2 ? e2.replace(m$1.endingNewline, "") + `
|
|
19008
|
+
` : "";
|
|
19009
|
+
return s2 ? '<pre><code class="language-' + R(s2) + '">' + (n2 ? r2 : R(r2, true)) + `</code></pre>
|
|
19010
|
+
` : "<pre><code>" + (n2 ? r2 : R(r2, true)) + `</code></pre>
|
|
19011
19011
|
`;
|
|
19012
19012
|
}
|
|
19013
19013
|
blockquote({ tokens: e2 }) {
|
|
@@ -19031,12 +19031,12 @@ ${this.parser.parse(e2)}</blockquote>
|
|
|
19031
19031
|
}
|
|
19032
19032
|
list(e2) {
|
|
19033
19033
|
let t2 = e2.ordered, n2 = e2.start, s2 = "";
|
|
19034
|
-
for (let
|
|
19035
|
-
let
|
|
19036
|
-
s2 += this.listitem(
|
|
19034
|
+
for (let i2 = 0; i2 < e2.items.length; i2++) {
|
|
19035
|
+
let l2 = e2.items[i2];
|
|
19036
|
+
s2 += this.listitem(l2);
|
|
19037
19037
|
}
|
|
19038
|
-
let r2 = t2 ? "ol" : "ul",
|
|
19039
|
-
return "<" + r2 +
|
|
19038
|
+
let r2 = t2 ? "ol" : "ul", o2 = t2 && n2 !== 1 ? ' start="' + n2 + '"' : "";
|
|
19039
|
+
return "<" + r2 + o2 + `>
|
|
19040
19040
|
` + s2 + "</" + r2 + `>
|
|
19041
19041
|
`;
|
|
19042
19042
|
}
|
|
@@ -19057,9 +19057,9 @@ ${this.parser.parse(e2)}</blockquote>
|
|
|
19057
19057
|
t2 += this.tablerow({ text: n2 });
|
|
19058
19058
|
let s2 = "";
|
|
19059
19059
|
for (let r2 = 0; r2 < e2.rows.length; r2++) {
|
|
19060
|
-
let
|
|
19060
|
+
let o2 = e2.rows[r2];
|
|
19061
19061
|
n2 = "";
|
|
19062
|
-
for (let
|
|
19062
|
+
for (let i2 = 0; i2 < o2.length; i2++) n2 += this.tablecell(o2[i2]);
|
|
19063
19063
|
s2 += this.tablerow({ text: n2 });
|
|
19064
19064
|
}
|
|
19065
19065
|
return s2 && (s2 = `<tbody>${s2}</tbody>`), `<table>
|
|
@@ -19085,7 +19085,7 @@ ${e2}</tr>
|
|
|
19085
19085
|
return `<em>${this.parser.parseInline(e2)}</em>`;
|
|
19086
19086
|
}
|
|
19087
19087
|
codespan({ text: e2 }) {
|
|
19088
|
-
return `<code>${
|
|
19088
|
+
return `<code>${R(e2, true)}</code>`;
|
|
19089
19089
|
}
|
|
19090
19090
|
br(e2) {
|
|
19091
19091
|
return "<br>";
|
|
@@ -19093,23 +19093,23 @@ ${e2}</tr>
|
|
|
19093
19093
|
del({ tokens: e2 }) {
|
|
19094
19094
|
return `<del>${this.parser.parseInline(e2)}</del>`;
|
|
19095
19095
|
}
|
|
19096
|
-
link({ href: e2, title: t2,
|
|
19097
|
-
let
|
|
19098
|
-
if (
|
|
19099
|
-
e2 = r2;
|
|
19100
|
-
let
|
|
19101
|
-
return t2 && (
|
|
19096
|
+
link({ href: e2, title: t2, text: n2, tokens: s2, autolink: r2 }) {
|
|
19097
|
+
let o2 = r2 ? R(n2, true) : this.parser.parseInline(s2), i2 = Y(e2);
|
|
19098
|
+
if (i2 === null) return o2;
|
|
19099
|
+
e2 = R(i2, r2);
|
|
19100
|
+
let l2 = '<a href="' + e2 + '"';
|
|
19101
|
+
return t2 && (l2 += ' title="' + R(t2) + '"'), l2 += ">" + o2 + "</a>", l2;
|
|
19102
19102
|
}
|
|
19103
19103
|
image({ href: e2, title: t2, text: n2, tokens: s2 }) {
|
|
19104
19104
|
s2 && (n2 = this.parser.parseInline(s2, this.parser.textRenderer));
|
|
19105
19105
|
let r2 = Y(e2);
|
|
19106
|
-
if (r2 === null) return
|
|
19106
|
+
if (r2 === null) return R(n2);
|
|
19107
19107
|
e2 = r2;
|
|
19108
|
-
let
|
|
19109
|
-
return t2 && (
|
|
19108
|
+
let o2 = `<img src="${R(e2)}" alt="${R(n2)}"`;
|
|
19109
|
+
return t2 && (o2 += ` title="${R(t2)}"`), o2 += ">", o2;
|
|
19110
19110
|
}
|
|
19111
19111
|
text(e2) {
|
|
19112
|
-
return "tokens" in e2 && e2.tokens ? this.parser.parseInline(e2.tokens) : "escaped" in e2 && e2.escaped ? e2.text :
|
|
19112
|
+
return "tokens" in e2 && e2.tokens ? this.parser.parseInline(e2.tokens) : "escaped" in e2 && e2.escaped ? e2.text : R(e2.text);
|
|
19113
19113
|
}
|
|
19114
19114
|
};
|
|
19115
19115
|
var L = class {
|
|
@@ -19144,18 +19144,18 @@ ${e2}</tr>
|
|
|
19144
19144
|
return e2;
|
|
19145
19145
|
}
|
|
19146
19146
|
};
|
|
19147
|
-
var b$1 = class
|
|
19147
|
+
var b$1 = class u2 {
|
|
19148
19148
|
options;
|
|
19149
19149
|
renderer;
|
|
19150
19150
|
textRenderer;
|
|
19151
19151
|
constructor(e2) {
|
|
19152
|
-
this.options = e2 ||
|
|
19152
|
+
this.options = e2 || T, this.options.renderer = this.options.renderer || new P$1(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
|
|
19153
19153
|
}
|
|
19154
19154
|
static parse(e2, t2) {
|
|
19155
|
-
return new
|
|
19155
|
+
return new u2(t2).parse(e2);
|
|
19156
19156
|
}
|
|
19157
19157
|
static parseInline(e2, t2) {
|
|
19158
|
-
return new
|
|
19158
|
+
return new u2(t2).parseInline(e2);
|
|
19159
19159
|
}
|
|
19160
19160
|
parse(e2) {
|
|
19161
19161
|
this.renderer.parser = this;
|
|
@@ -19163,9 +19163,9 @@ ${e2}</tr>
|
|
|
19163
19163
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
19164
19164
|
let s2 = e2[n2];
|
|
19165
19165
|
if (this.options.extensions?.renderers?.[s2.type]) {
|
|
19166
|
-
let
|
|
19167
|
-
if (
|
|
19168
|
-
t2 +=
|
|
19166
|
+
let o2 = s2, i2 = this.options.extensions.renderers[o2.type].call({ parser: this }, o2);
|
|
19167
|
+
if (i2 !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "checkbox", "html", "def", "paragraph", "text"].includes(o2.type)) {
|
|
19168
|
+
t2 += i2 || "";
|
|
19169
19169
|
continue;
|
|
19170
19170
|
}
|
|
19171
19171
|
}
|
|
@@ -19220,9 +19220,9 @@ ${e2}</tr>
|
|
|
19220
19220
|
break;
|
|
19221
19221
|
}
|
|
19222
19222
|
default: {
|
|
19223
|
-
let
|
|
19224
|
-
if (this.options.silent) return console.error(
|
|
19225
|
-
throw new Error(
|
|
19223
|
+
let o2 = 'Token with "' + r2.type + '" type was not found.';
|
|
19224
|
+
if (this.options.silent) return console.error(o2), "";
|
|
19225
|
+
throw new Error(o2);
|
|
19226
19226
|
}
|
|
19227
19227
|
}
|
|
19228
19228
|
}
|
|
@@ -19234,62 +19234,62 @@ ${e2}</tr>
|
|
|
19234
19234
|
for (let s2 = 0; s2 < e2.length; s2++) {
|
|
19235
19235
|
let r2 = e2[s2];
|
|
19236
19236
|
if (this.options.extensions?.renderers?.[r2.type]) {
|
|
19237
|
-
let
|
|
19238
|
-
if (
|
|
19239
|
-
n2 +=
|
|
19237
|
+
let i2 = this.options.extensions.renderers[r2.type].call({ parser: this }, r2);
|
|
19238
|
+
if (i2 !== false || !["escape", "html", "link", "image", "checkbox", "strong", "em", "codespan", "br", "del", "text"].includes(r2.type)) {
|
|
19239
|
+
n2 += i2 || "";
|
|
19240
19240
|
continue;
|
|
19241
19241
|
}
|
|
19242
19242
|
}
|
|
19243
|
-
let
|
|
19244
|
-
switch (
|
|
19243
|
+
let o2 = r2;
|
|
19244
|
+
switch (o2.type) {
|
|
19245
19245
|
case "escape": {
|
|
19246
|
-
n2 += t2.text(
|
|
19246
|
+
n2 += t2.text(o2);
|
|
19247
19247
|
break;
|
|
19248
19248
|
}
|
|
19249
19249
|
case "html": {
|
|
19250
|
-
n2 += t2.html(
|
|
19250
|
+
n2 += t2.html(o2);
|
|
19251
19251
|
break;
|
|
19252
19252
|
}
|
|
19253
19253
|
case "link": {
|
|
19254
|
-
n2 += t2.link(
|
|
19254
|
+
n2 += t2.link(o2);
|
|
19255
19255
|
break;
|
|
19256
19256
|
}
|
|
19257
19257
|
case "image": {
|
|
19258
|
-
n2 += t2.image(
|
|
19258
|
+
n2 += t2.image(o2);
|
|
19259
19259
|
break;
|
|
19260
19260
|
}
|
|
19261
19261
|
case "checkbox": {
|
|
19262
|
-
n2 += t2.checkbox(
|
|
19262
|
+
n2 += t2.checkbox(o2);
|
|
19263
19263
|
break;
|
|
19264
19264
|
}
|
|
19265
19265
|
case "strong": {
|
|
19266
|
-
n2 += t2.strong(
|
|
19266
|
+
n2 += t2.strong(o2);
|
|
19267
19267
|
break;
|
|
19268
19268
|
}
|
|
19269
19269
|
case "em": {
|
|
19270
|
-
n2 += t2.em(
|
|
19270
|
+
n2 += t2.em(o2);
|
|
19271
19271
|
break;
|
|
19272
19272
|
}
|
|
19273
19273
|
case "codespan": {
|
|
19274
|
-
n2 += t2.codespan(
|
|
19274
|
+
n2 += t2.codespan(o2);
|
|
19275
19275
|
break;
|
|
19276
19276
|
}
|
|
19277
19277
|
case "br": {
|
|
19278
|
-
n2 += t2.br(
|
|
19278
|
+
n2 += t2.br(o2);
|
|
19279
19279
|
break;
|
|
19280
19280
|
}
|
|
19281
19281
|
case "del": {
|
|
19282
|
-
n2 += t2.del(
|
|
19282
|
+
n2 += t2.del(o2);
|
|
19283
19283
|
break;
|
|
19284
19284
|
}
|
|
19285
19285
|
case "text": {
|
|
19286
|
-
n2 += t2.text(
|
|
19286
|
+
n2 += t2.text(o2);
|
|
19287
19287
|
break;
|
|
19288
19288
|
}
|
|
19289
19289
|
default: {
|
|
19290
|
-
let
|
|
19291
|
-
if (this.options.silent) return console.error(
|
|
19292
|
-
throw new Error(
|
|
19290
|
+
let i2 = 'Token with "' + o2.type + '" type was not found.';
|
|
19291
|
+
if (this.options.silent) return console.error(i2), "";
|
|
19292
|
+
throw new Error(i2);
|
|
19293
19293
|
}
|
|
19294
19294
|
}
|
|
19295
19295
|
}
|
|
@@ -19300,7 +19300,7 @@ ${e2}</tr>
|
|
|
19300
19300
|
options;
|
|
19301
19301
|
block;
|
|
19302
19302
|
constructor(e2) {
|
|
19303
|
-
this.options = e2 ||
|
|
19303
|
+
this.options = e2 || T;
|
|
19304
19304
|
}
|
|
19305
19305
|
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
19306
19306
|
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
@@ -19342,8 +19342,8 @@ ${e2}</tr>
|
|
|
19342
19342
|
for (let s2 of e2) switch (n2 = n2.concat(t2.call(this, s2)), s2.type) {
|
|
19343
19343
|
case "table": {
|
|
19344
19344
|
let r2 = s2;
|
|
19345
|
-
for (let
|
|
19346
|
-
for (let
|
|
19345
|
+
for (let o2 of r2.header) n2 = n2.concat(this.walkTokens(o2.tokens, t2));
|
|
19346
|
+
for (let o2 of r2.rows) for (let i2 of o2) n2 = n2.concat(this.walkTokens(i2.tokens, t2));
|
|
19347
19347
|
break;
|
|
19348
19348
|
}
|
|
19349
19349
|
case "list": {
|
|
@@ -19353,9 +19353,9 @@ ${e2}</tr>
|
|
|
19353
19353
|
}
|
|
19354
19354
|
default: {
|
|
19355
19355
|
let r2 = s2;
|
|
19356
|
-
this.defaults.extensions?.childTokens?.[r2.type] ? this.defaults.extensions.childTokens[r2.type].forEach((
|
|
19357
|
-
let
|
|
19358
|
-
n2 = n2.concat(this.walkTokens(
|
|
19356
|
+
this.defaults.extensions?.childTokens?.[r2.type] ? this.defaults.extensions.childTokens[r2.type].forEach((o2) => {
|
|
19357
|
+
let i2 = r2[o2].flat(1 / 0);
|
|
19358
|
+
n2 = n2.concat(this.walkTokens(i2, t2));
|
|
19359
19359
|
}) : r2.tokens && (n2 = n2.concat(this.walkTokens(r2.tokens, t2)));
|
|
19360
19360
|
}
|
|
19361
19361
|
}
|
|
@@ -19368,26 +19368,26 @@ ${e2}</tr>
|
|
|
19368
19368
|
if (s2.async = this.defaults.async || s2.async || false, n2.extensions && (n2.extensions.forEach((r2) => {
|
|
19369
19369
|
if (!r2.name) throw new Error("extension name required");
|
|
19370
19370
|
if ("renderer" in r2) {
|
|
19371
|
-
let
|
|
19372
|
-
|
|
19373
|
-
let
|
|
19374
|
-
return
|
|
19371
|
+
let o2 = t2.renderers[r2.name];
|
|
19372
|
+
o2 ? t2.renderers[r2.name] = function(...i2) {
|
|
19373
|
+
let l2 = r2.renderer.apply(this, i2);
|
|
19374
|
+
return l2 === false && (l2 = o2.apply(this, i2)), l2;
|
|
19375
19375
|
} : t2.renderers[r2.name] = r2.renderer;
|
|
19376
19376
|
}
|
|
19377
19377
|
if ("tokenizer" in r2) {
|
|
19378
19378
|
if (!r2.level || r2.level !== "block" && r2.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
|
|
19379
|
-
let
|
|
19380
|
-
|
|
19379
|
+
let o2 = t2[r2.level];
|
|
19380
|
+
o2 ? o2.unshift(r2.tokenizer) : t2[r2.level] = [r2.tokenizer], r2.start && (r2.level === "block" ? t2.startBlock ? t2.startBlock.push(r2.start) : t2.startBlock = [r2.start] : r2.level === "inline" && (t2.startInline ? t2.startInline.push(r2.start) : t2.startInline = [r2.start]));
|
|
19381
19381
|
}
|
|
19382
19382
|
"childTokens" in r2 && r2.childTokens && (t2.childTokens[r2.name] = r2.childTokens);
|
|
19383
19383
|
}), s2.extensions = t2), n2.renderer) {
|
|
19384
19384
|
let r2 = this.defaults.renderer || new P$1(this.defaults);
|
|
19385
|
-
for (let
|
|
19386
|
-
if (!(
|
|
19387
|
-
if (["options", "parser"].includes(
|
|
19388
|
-
let
|
|
19389
|
-
r2[
|
|
19390
|
-
let c2 =
|
|
19385
|
+
for (let o2 in n2.renderer) {
|
|
19386
|
+
if (!(o2 in r2)) throw new Error(`renderer '${o2}' does not exist`);
|
|
19387
|
+
if (["options", "parser"].includes(o2)) continue;
|
|
19388
|
+
let i2 = o2, l2 = n2.renderer[i2], a2 = r2[i2];
|
|
19389
|
+
r2[i2] = (...p2) => {
|
|
19390
|
+
let c2 = l2.apply(r2, p2);
|
|
19391
19391
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2 || "";
|
|
19392
19392
|
};
|
|
19393
19393
|
}
|
|
@@ -19395,12 +19395,12 @@ ${e2}</tr>
|
|
|
19395
19395
|
}
|
|
19396
19396
|
if (n2.tokenizer) {
|
|
19397
19397
|
let r2 = this.defaults.tokenizer || new y$1(this.defaults);
|
|
19398
|
-
for (let
|
|
19399
|
-
if (!(
|
|
19400
|
-
if (["options", "rules", "lexer"].includes(
|
|
19401
|
-
let
|
|
19402
|
-
r2[
|
|
19403
|
-
let c2 =
|
|
19398
|
+
for (let o2 in n2.tokenizer) {
|
|
19399
|
+
if (!(o2 in r2)) throw new Error(`tokenizer '${o2}' does not exist`);
|
|
19400
|
+
if (["options", "rules", "lexer"].includes(o2)) continue;
|
|
19401
|
+
let i2 = o2, l2 = n2.tokenizer[i2], a2 = r2[i2];
|
|
19402
|
+
r2[i2] = (...p2) => {
|
|
19403
|
+
let c2 = l2.apply(r2, p2);
|
|
19404
19404
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2;
|
|
19405
19405
|
};
|
|
19406
19406
|
}
|
|
@@ -19408,33 +19408,33 @@ ${e2}</tr>
|
|
|
19408
19408
|
}
|
|
19409
19409
|
if (n2.hooks) {
|
|
19410
19410
|
let r2 = this.defaults.hooks || new S$1();
|
|
19411
|
-
for (let
|
|
19412
|
-
if (!(
|
|
19413
|
-
if (["options", "block"].includes(
|
|
19414
|
-
let
|
|
19415
|
-
S$1.passThroughHooks.has(
|
|
19416
|
-
if (this.defaults.async && S$1.passThroughHooksRespectAsync.has(
|
|
19417
|
-
let h2 = await
|
|
19411
|
+
for (let o2 in n2.hooks) {
|
|
19412
|
+
if (!(o2 in r2)) throw new Error(`hook '${o2}' does not exist`);
|
|
19413
|
+
if (["options", "block"].includes(o2)) continue;
|
|
19414
|
+
let i2 = o2, l2 = n2.hooks[i2], a2 = r2[i2];
|
|
19415
|
+
S$1.passThroughHooks.has(o2) ? r2[i2] = (p2) => {
|
|
19416
|
+
if (this.defaults.async && S$1.passThroughHooksRespectAsync.has(o2)) return (async () => {
|
|
19417
|
+
let h2 = await l2.call(r2, p2);
|
|
19418
19418
|
return a2.call(r2, h2);
|
|
19419
19419
|
})();
|
|
19420
|
-
let c2 =
|
|
19420
|
+
let c2 = l2.call(r2, p2);
|
|
19421
19421
|
return a2.call(r2, c2);
|
|
19422
|
-
} : r2[
|
|
19422
|
+
} : r2[i2] = (...p2) => {
|
|
19423
19423
|
if (this.defaults.async) return (async () => {
|
|
19424
|
-
let h2 = await
|
|
19424
|
+
let h2 = await l2.apply(r2, p2);
|
|
19425
19425
|
return h2 === false && (h2 = await a2.apply(r2, p2)), h2;
|
|
19426
19426
|
})();
|
|
19427
|
-
let c2 =
|
|
19427
|
+
let c2 = l2.apply(r2, p2);
|
|
19428
19428
|
return c2 === false && (c2 = a2.apply(r2, p2)), c2;
|
|
19429
19429
|
};
|
|
19430
19430
|
}
|
|
19431
19431
|
s2.hooks = r2;
|
|
19432
19432
|
}
|
|
19433
19433
|
if (n2.walkTokens) {
|
|
19434
|
-
let r2 = this.defaults.walkTokens,
|
|
19435
|
-
s2.walkTokens = function(
|
|
19436
|
-
let
|
|
19437
|
-
return
|
|
19434
|
+
let r2 = this.defaults.walkTokens, o2 = n2.walkTokens;
|
|
19435
|
+
s2.walkTokens = function(i2) {
|
|
19436
|
+
let l2 = [];
|
|
19437
|
+
return l2.push(o2.call(this, i2)), r2 && (l2 = l2.concat(r2.call(this, i2))), l2;
|
|
19438
19438
|
};
|
|
19439
19439
|
}
|
|
19440
19440
|
this.defaults = { ...this.defaults, ...s2 };
|
|
@@ -19451,24 +19451,24 @@ ${e2}</tr>
|
|
|
19451
19451
|
}
|
|
19452
19452
|
parseMarkdown(e2) {
|
|
19453
19453
|
return (n2, s2) => {
|
|
19454
|
-
let r2 = { ...s2 },
|
|
19455
|
-
if (this.defaults.async === true && r2.async === false) return
|
|
19456
|
-
if (typeof n2 > "u" || n2 === null) return
|
|
19457
|
-
if (typeof n2 != "string") return
|
|
19458
|
-
if (
|
|
19459
|
-
let
|
|
19460
|
-
|
|
19461
|
-
let d2 = await (
|
|
19462
|
-
return
|
|
19463
|
-
})().catch(
|
|
19454
|
+
let r2 = { ...s2 }, o2 = { ...this.defaults, ...r2 }, i2 = this.onError(!!o2.silent, !!o2.async);
|
|
19455
|
+
if (this.defaults.async === true && r2.async === false) return i2(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
19456
|
+
if (typeof n2 > "u" || n2 === null) return i2(new Error("marked(): input parameter is undefined or null"));
|
|
19457
|
+
if (typeof n2 != "string") return i2(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n2) + ", string expected"));
|
|
19458
|
+
if (o2.hooks && (o2.hooks.options = o2, o2.hooks.block = e2), o2.async) return (async () => {
|
|
19459
|
+
let l2 = o2.hooks ? await o2.hooks.preprocess(n2) : n2, p2 = await (o2.hooks ? await o2.hooks.provideLexer(e2) : e2 ? x.lex : x.lexInline)(l2, o2), c2 = o2.hooks ? await o2.hooks.processAllTokens(p2) : p2;
|
|
19460
|
+
o2.walkTokens && await Promise.all(this.walkTokens(c2, o2.walkTokens));
|
|
19461
|
+
let d2 = await (o2.hooks ? await o2.hooks.provideParser(e2) : e2 ? b$1.parse : b$1.parseInline)(c2, o2);
|
|
19462
|
+
return o2.hooks ? await o2.hooks.postprocess(d2) : d2;
|
|
19463
|
+
})().catch(i2);
|
|
19464
19464
|
try {
|
|
19465
|
-
|
|
19466
|
-
let a2 = (
|
|
19467
|
-
|
|
19468
|
-
let c2 = (
|
|
19469
|
-
return
|
|
19470
|
-
} catch (
|
|
19471
|
-
return
|
|
19465
|
+
o2.hooks && (n2 = o2.hooks.preprocess(n2));
|
|
19466
|
+
let a2 = (o2.hooks ? o2.hooks.provideLexer(e2) : e2 ? x.lex : x.lexInline)(n2, o2);
|
|
19467
|
+
o2.hooks && (a2 = o2.hooks.processAllTokens(a2)), o2.walkTokens && this.walkTokens(a2, o2.walkTokens);
|
|
19468
|
+
let c2 = (o2.hooks ? o2.hooks.provideParser(e2) : e2 ? b$1.parse : b$1.parseInline)(a2, o2);
|
|
19469
|
+
return o2.hooks && (c2 = o2.hooks.postprocess(c2)), c2;
|
|
19470
|
+
} catch (l2) {
|
|
19471
|
+
return i2(l2);
|
|
19472
19472
|
}
|
|
19473
19473
|
};
|
|
19474
19474
|
}
|
|
@@ -19476,7 +19476,7 @@ ${e2}</tr>
|
|
|
19476
19476
|
return (n2) => {
|
|
19477
19477
|
if (n2.message += `
|
|
19478
19478
|
Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
19479
|
-
let s2 = "<p>An error occurred:</p><pre>" +
|
|
19479
|
+
let s2 = "<p>An error occurred:</p><pre>" + R(n2.message + "", true) + "</pre>";
|
|
19480
19480
|
return t2 ? Promise.resolve(s2) : s2;
|
|
19481
19481
|
}
|
|
19482
19482
|
if (t2) return Promise.reject(n2);
|
|
@@ -19485,20 +19485,20 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
19485
19485
|
}
|
|
19486
19486
|
};
|
|
19487
19487
|
var M = new Z();
|
|
19488
|
-
function f$1(
|
|
19489
|
-
return M.parse(
|
|
19488
|
+
function f$1(u2, e2) {
|
|
19489
|
+
return M.parse(u2, e2);
|
|
19490
19490
|
}
|
|
19491
|
-
f$1.options = f$1.setOptions = function(
|
|
19492
|
-
return M.setOptions(
|
|
19491
|
+
f$1.options = f$1.setOptions = function(u2) {
|
|
19492
|
+
return M.setOptions(u2), f$1.defaults = M.defaults, j(f$1.defaults), f$1;
|
|
19493
19493
|
};
|
|
19494
19494
|
f$1.getDefaults = A;
|
|
19495
|
-
f$1.defaults =
|
|
19496
|
-
function
|
|
19497
|
-
return M.use(...
|
|
19495
|
+
f$1.defaults = T;
|
|
19496
|
+
function gt(...u2) {
|
|
19497
|
+
return M.use(...u2), f$1.defaults = M.defaults, j(f$1.defaults), f$1;
|
|
19498
19498
|
}
|
|
19499
|
-
f$1.use =
|
|
19500
|
-
f$1.walkTokens = function(
|
|
19501
|
-
return M.walkTokens(
|
|
19499
|
+
f$1.use = gt;
|
|
19500
|
+
f$1.walkTokens = function(u2, e2) {
|
|
19501
|
+
return M.walkTokens(u2, e2);
|
|
19502
19502
|
};
|
|
19503
19503
|
f$1.parseInline = M.parseInline;
|
|
19504
19504
|
f$1.Parser = b$1;
|
|
@@ -19847,7 +19847,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
19847
19847
|
function createDOMPurify() {
|
|
19848
19848
|
let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
19849
19849
|
const DOMPurify = (root2) => createDOMPurify(root2);
|
|
19850
|
-
DOMPurify.version = "3.4.
|
|
19850
|
+
DOMPurify.version = "3.4.15";
|
|
19851
19851
|
DOMPurify.removed = [];
|
|
19852
19852
|
if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
|
|
19853
19853
|
DOMPurify.isSupported = false;
|
|
@@ -19864,6 +19864,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
19864
19864
|
const ElementPrototype = Element2.prototype;
|
|
19865
19865
|
const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
|
|
19866
19866
|
const remove2 = lookupGetter(ElementPrototype, "remove");
|
|
19867
|
+
const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
|
|
19867
19868
|
const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
|
|
19868
19869
|
const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
|
|
19869
19870
|
const getParentNode2 = lookupGetter(ElementPrototype, "parentNode");
|
|
@@ -20297,7 +20298,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20297
20298
|
};
|
|
20298
20299
|
const _stripAttributeNode = function _stripAttributeNode2(element, attribute, name) {
|
|
20299
20300
|
try {
|
|
20300
|
-
|
|
20301
|
+
removeAttributeNode(element, attribute);
|
|
20301
20302
|
} catch (_2) {
|
|
20302
20303
|
try {
|
|
20303
20304
|
element.removeAttribute(name);
|
|
@@ -20345,7 +20346,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20345
20346
|
});
|
|
20346
20347
|
try {
|
|
20347
20348
|
if (attr) {
|
|
20348
|
-
|
|
20349
|
+
removeAttributeNode(element, attr);
|
|
20349
20350
|
} else {
|
|
20350
20351
|
element.removeAttribute(name);
|
|
20351
20352
|
}
|
|
@@ -20533,7 +20534,16 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20533
20534
|
// makes the direct read diverge from the cached read; a clean form
|
|
20534
20535
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
20535
20536
|
// canonical NamedNodeMap.
|
|
20536
|
-
element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" ||
|
|
20537
|
+
element.attributes !== getAttributes(element) || typeof element.removeAttribute !== "function" || // A form descendant named "removeAttributeNode" or "getAttributeNode"
|
|
20538
|
+
// shadows these Attr-node methods via [LegacyOverrideBuiltIns].
|
|
20539
|
+
// _removeAttribute() / _stripAttributeNode() reach for
|
|
20540
|
+
// element.removeAttributeNode(attr) first; when it is shadowed the call
|
|
20541
|
+
// throws and the name-based fallback element.removeAttribute(name)
|
|
20542
|
+
// ASCII-lowercases its lookup key in an HTML document, silently missing
|
|
20543
|
+
// a case-preserved event-handler attribute (e.g. an ONANIMATIONSTART
|
|
20544
|
+
// that reached the sanitizer through an XML/XHTML parse). Flag the form
|
|
20545
|
+
// so it is removed wholesale, exactly as for the other shadowed methods.
|
|
20546
|
+
typeof element.removeAttributeNode !== "function" || typeof element.getAttributeNode !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function" || // NodeType clobbering probe. Cached Node.prototype.nodeType getter
|
|
20537
20547
|
// returns the integer 1 for any Element regardless of realm; direct
|
|
20538
20548
|
// read on a clobbered form (e.g. <input name="nodeType">) returns
|
|
20539
20549
|
// the named child element. Cheap addition — nodeType is read from
|
|
@@ -20759,11 +20769,12 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20759
20769
|
}
|
|
20760
20770
|
if (_isClobbered(currentNode)) {
|
|
20761
20771
|
_forceRemove(currentNode);
|
|
20762
|
-
|
|
20763
|
-
arrayPop(DOMPurify.removed);
|
|
20772
|
+
return false;
|
|
20764
20773
|
}
|
|
20774
|
+
return true;
|
|
20765
20775
|
} catch (_2) {
|
|
20766
20776
|
_removeAttribute(name, currentNode);
|
|
20777
|
+
return false;
|
|
20767
20778
|
}
|
|
20768
20779
|
};
|
|
20769
20780
|
const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
|
|
@@ -20788,6 +20799,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20788
20799
|
const lcName = transformCaseFunc(name);
|
|
20789
20800
|
const initValue = attrValue;
|
|
20790
20801
|
let value = name === "value" ? initValue : stringTrim(initValue);
|
|
20802
|
+
let recreatedNamedProp = false;
|
|
20791
20803
|
hookEvent.attrName = lcName;
|
|
20792
20804
|
hookEvent.attrValue = value;
|
|
20793
20805
|
hookEvent.keepAttr = true;
|
|
@@ -20797,6 +20809,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20797
20809
|
if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name") && stringIndexOf(value, SANITIZE_NAMED_PROPS_PREFIX) !== 0) {
|
|
20798
20810
|
_removeAttribute(name, currentNode, attr);
|
|
20799
20811
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
20812
|
+
recreatedNamedProp = true;
|
|
20800
20813
|
}
|
|
20801
20814
|
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
|
|
20802
20815
|
_removeAttribute(name, currentNode, attr);
|
|
@@ -20826,7 +20839,10 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20826
20839
|
}
|
|
20827
20840
|
value = _applyTrustedTypesToAttribute(lcTag, lcName, namespaceURI, value);
|
|
20828
20841
|
if (value !== initValue) {
|
|
20829
|
-
_setAttributeValue(currentNode, name, namespaceURI, value);
|
|
20842
|
+
const cleanWrite = _setAttributeValue(currentNode, name, namespaceURI, value);
|
|
20843
|
+
if (cleanWrite && recreatedNamedProp) {
|
|
20844
|
+
arrayPop(DOMPurify.removed);
|
|
20845
|
+
}
|
|
20830
20846
|
}
|
|
20831
20847
|
}
|
|
20832
20848
|
_executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
|
|
@@ -20964,7 +20980,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
20964
20980
|
} else {
|
|
20965
20981
|
body.appendChild(importedNode);
|
|
20966
20982
|
}
|
|
20967
|
-
_sanitizeAttachedShadowRoots(
|
|
20983
|
+
_sanitizeAttachedShadowRoots(body);
|
|
20968
20984
|
} else {
|
|
20969
20985
|
if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
|
|
20970
20986
|
dirty.indexOf("<") === -1) {
|
|
@@ -21775,7 +21791,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
21775
21791
|
const _hoisted_3$h = { class: "document-article__toolbar-left" };
|
|
21776
21792
|
const _hoisted_4$a = { class: "document-article__toolbar-center" };
|
|
21777
21793
|
const _hoisted_5$9 = { class: "document-article__toolbar-right" };
|
|
21778
|
-
const _hoisted_6$
|
|
21794
|
+
const _hoisted_6$9 = { class: "document-article__body" };
|
|
21779
21795
|
const _hoisted_7$4 = {
|
|
21780
21796
|
key: 0,
|
|
21781
21797
|
class: "document-article__center document-article__center--processing",
|
|
@@ -21829,7 +21845,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
21829
21845
|
renderSlot(_ctx.$slots, "toolbar-right", {}, void 0, true)
|
|
21830
21846
|
])
|
|
21831
21847
|
])) : createCommentVNode("", true),
|
|
21832
|
-
createBaseVNode("div", _hoisted_6$
|
|
21848
|
+
createBaseVNode("div", _hoisted_6$9, [
|
|
21833
21849
|
props.status === "processing" ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
21834
21850
|
createVNode(EditorIcon, {
|
|
21835
21851
|
name: "spinner",
|
|
@@ -22125,7 +22141,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
22125
22141
|
class: "document-meta"
|
|
22126
22142
|
};
|
|
22127
22143
|
const _hoisted_5$8 = { class: "header-right" };
|
|
22128
|
-
const _hoisted_6$
|
|
22144
|
+
const _hoisted_6$8 = { key: 0 };
|
|
22129
22145
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
22130
22146
|
__name: "Header",
|
|
22131
22147
|
props: {
|
|
@@ -22228,7 +22244,7 @@ Please report this to https://github.com/markedjs/marked.`, e2) {
|
|
|
22228
22244
|
})
|
|
22229
22245
|
]),
|
|
22230
22246
|
default: withCtx(() => [
|
|
22231
|
-
!__props.isMobile ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
22247
|
+
!__props.isMobile ? (openBlock(), createElementBlock("span", _hoisted_6$8, toDisplayString(unref(t2)("header.ask")), 1)) : createCommentVNode("", true)
|
|
22232
22248
|
]),
|
|
22233
22249
|
_: 1
|
|
22234
22250
|
}, 8, ["aria-label", "disabled"])
|
|
@@ -23555,6 +23571,9 @@ ${text2}` : text2;
|
|
|
23555
23571
|
if (playing) isFollowing.value = true;
|
|
23556
23572
|
}
|
|
23557
23573
|
);
|
|
23574
|
+
const stopSeekListener = core.on("audio:seek", () => {
|
|
23575
|
+
isFollowing.value = true;
|
|
23576
|
+
});
|
|
23558
23577
|
function onManualScroll() {
|
|
23559
23578
|
isFollowing.value = false;
|
|
23560
23579
|
}
|
|
@@ -23568,7 +23587,6 @@ ${text2}` : text2;
|
|
|
23568
23587
|
if (!el) return;
|
|
23569
23588
|
el.addEventListener("wheel", handler, { passive: true });
|
|
23570
23589
|
el.addEventListener("touchstart", handler, { passive: true });
|
|
23571
|
-
el.addEventListener("pointerdown", handler, { passive: true });
|
|
23572
23590
|
el.addEventListener("keydown", checkKeyDownIsScroll);
|
|
23573
23591
|
}
|
|
23574
23592
|
function downScrollListener(handler) {
|
|
@@ -23576,7 +23594,6 @@ ${text2}` : text2;
|
|
|
23576
23594
|
if (!el) return;
|
|
23577
23595
|
el.removeEventListener("wheel", handler);
|
|
23578
23596
|
el.removeEventListener("touchstart", handler);
|
|
23579
|
-
el.removeEventListener("pointerdown", handler);
|
|
23580
23597
|
el.removeEventListener("keydown", checkKeyDownIsScroll);
|
|
23581
23598
|
}
|
|
23582
23599
|
onMounted(() => {
|
|
@@ -23584,6 +23601,7 @@ ${text2}` : text2;
|
|
|
23584
23601
|
});
|
|
23585
23602
|
onBeforeUnmount(() => {
|
|
23586
23603
|
downScrollListener(onManualScroll);
|
|
23604
|
+
stopSeekListener();
|
|
23587
23605
|
});
|
|
23588
23606
|
function resumeFollow() {
|
|
23589
23607
|
isFollowing.value = true;
|
|
@@ -23606,6 +23624,10 @@ ${text2}` : text2;
|
|
|
23606
23624
|
key: 1,
|
|
23607
23625
|
class: "history-start"
|
|
23608
23626
|
};
|
|
23627
|
+
const _hoisted_6$7 = {
|
|
23628
|
+
key: 0,
|
|
23629
|
+
class: "resume-scroll-anchor"
|
|
23630
|
+
};
|
|
23609
23631
|
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
23610
23632
|
__name: "TranscriptionPanel",
|
|
23611
23633
|
props: {
|
|
@@ -23741,19 +23763,20 @@ ${text2}` : text2;
|
|
|
23741
23763
|
]),
|
|
23742
23764
|
createVNode(Transition, { name: "fade-slide" }, {
|
|
23743
23765
|
default: withCtx(() => [
|
|
23744
|
-
showResumeButton.value ? (openBlock(),
|
|
23745
|
-
|
|
23746
|
-
|
|
23747
|
-
|
|
23748
|
-
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23766
|
+
showResumeButton.value ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
23767
|
+
createVNode(unref(Button), {
|
|
23768
|
+
size: "sm",
|
|
23769
|
+
icon: "arrow-down",
|
|
23770
|
+
class: "resume-scroll-btn",
|
|
23771
|
+
"aria-label": unref(t2)("transcription.resumeScroll"),
|
|
23772
|
+
onClick: onResumeClick
|
|
23773
|
+
}, {
|
|
23774
|
+
default: withCtx(() => [
|
|
23775
|
+
createTextVNode(toDisplayString(unref(t2)("transcription.resumeScroll")), 1)
|
|
23776
|
+
]),
|
|
23777
|
+
_: 1
|
|
23778
|
+
}, 8, ["aria-label"])
|
|
23779
|
+
])) : createCommentVNode("", true)
|
|
23757
23780
|
]),
|
|
23758
23781
|
_: 1
|
|
23759
23782
|
})
|
|
@@ -23762,8 +23785,8 @@ ${text2}` : text2;
|
|
|
23762
23785
|
};
|
|
23763
23786
|
}
|
|
23764
23787
|
});
|
|
23765
|
-
const _style_0$j = "\n.transcription-panel[data-v-
|
|
23766
|
-
const TranscriptionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["styles", [_style_0$j]], ["__scopeId", "data-v-
|
|
23788
|
+
const _style_0$j = "\n.transcription-panel[data-v-66b767d7] {\n min-height: 0;\n overflow: hidden;\n background-color: var(--color-surface);\n}\n.scroll-container[data-v-66b767d7] {\n height: 100%;\n overflow: auto;\n position: relative;\n}\n.turns-container[data-v-66b767d7] {\n max-width: 80ch;\n margin-inline: auto;\n padding: var(--spacing-lg);\n}\n.turns-container[data-v-66b767d7]:has(.transcription-empty) {\n display: flex;\n flex-direction: column;\n min-height: 100%;\n}\n.history-loading[data-v-66b767d7] {\n text-align: center;\n padding: var(--spacing-md);\n}\n.history-loading progress[data-v-66b767d7] {\n width: 120px;\n}\n.history-start[data-v-66b767d7] {\n text-align: center;\n padding: var(--spacing-md);\n color: var(--color-text-muted);\n font-size: var(--font-size-sm);\n}\n\n/* Resume scroll button — placement lives on this wrapper, never on the\n button itself: Button.vue's `.editor-btn` base rule resets `position` via\n `all: unset` (and, in the webcomponent build, gets re-injected a second\n time after everything else to reach teleported popovers/dialogs — see\n packages/webcomponent/src/index.ts), so any positioning put directly on\n the button is one rebuild away from being silently overridden again. */\n.resume-scroll-anchor[data-v-66b767d7] {\n position: sticky;\n bottom: var(--spacing-lg);\n z-index: var(--z-sticky);\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.resume-scroll-btn[data-v-66b767d7] {\n /* No backdrop-filter: this button is sticky inside the tall scroll\n container, where a backdrop-filter makes WebRender allocate a render\n target spanning the whole scroll height — multi-GB on a long transcript. */\n background: white !important;\n border: 1px solid var(--color-border);\n box-shadow: var(--shadow-sm);\n}\n\n/* Transition */\n.fade-slide-enter-active[data-v-66b767d7],\n.fade-slide-leave-active[data-v-66b767d7] {\n transition:\n opacity 200ms ease,\n translate 200ms ease;\n}\n.fade-slide-enter-from[data-v-66b767d7],\n.fade-slide-leave-to[data-v-66b767d7] {\n opacity: 0;\n translate: 0 8px;\n}\n@media (prefers-reduced-motion: reduce) {\n.fade-slide-enter-active[data-v-66b767d7],\n .fade-slide-leave-active[data-v-66b767d7] {\n transition: none;\n}\n}\n@media (max-width: 767px) {\n.turns-container[data-v-66b767d7] {\n padding: var(--spacing-md);\n}\n}\n";
|
|
23789
|
+
const TranscriptionPanel = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["styles", [_style_0$j]], ["__scopeId", "data-v-66b767d7"]]);
|
|
23767
23790
|
const _hoisted_1$i = { class: "verbatim-panel" };
|
|
23768
23791
|
const _hoisted_2$f = { class: "verbatim-panel__content" };
|
|
23769
23792
|
const _hoisted_3$c = { class: "verbatim-panel__header" };
|
|
@@ -27729,6 +27752,7 @@ section.turn:has([data-state="open"]) {
|
|
|
27729
27752
|
});
|
|
27730
27753
|
function seekTo(time) {
|
|
27731
27754
|
seekHandler?.(time);
|
|
27755
|
+
core.emit("audio:seek", { time });
|
|
27732
27756
|
}
|
|
27733
27757
|
function setSeekHandler(fn) {
|
|
27734
27758
|
seekHandler = fn;
|