@feedmepos/mf-miniprogram-v2 0.1.0-dev.43 → 0.1.0-dev.45

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.
@@ -1,14 +1,14 @@
1
1
  var gl = Object.defineProperty;
2
2
  var bl = (n, t, e) => t in n ? gl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var B = (n, t, e) => bl(n, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as ut, ref as ae, computed as z, resolveComponent as Ue, openBlock as g, createElementBlock as x, normalizeClass as Re, createElementVNode as m, createVNode as X, toDisplayString as M, createTextVNode as Ze, createCommentVNode as U, watch as Tt, createBlock as Ie, Fragment as De, renderList as Oe, normalizeStyle as Vt, reactive as pr, nextTick as Dn, onBeforeUnmount as Sr, withModifiers as hr, unref as j, withDirectives as mr, vModelText as yr, renderSlot as vl, onMounted as Gn, withCtx as kt, onScopeDispose as kl, withKeys as wl } from "vue";
5
- import { useCoreStore as oa, FeedMeAuth as xl } from "@feedmepos/mf-common";
4
+ import { defineComponent as ut, ref as ae, computed as z, resolveComponent as Ue, openBlock as g, createElementBlock as x, normalizeClass as Re, createElementVNode as m, createVNode as X, toDisplayString as M, createTextVNode as Ze, createCommentVNode as U, watch as Tt, createBlock as Ie, Fragment as De, renderList as Oe, normalizeStyle as Vt, reactive as pr, nextTick as Dn, onBeforeUnmount as Tr, withModifiers as hr, unref as j, withDirectives as mr, vModelText as yr, renderSlot as vl, onMounted as Gn, withCtx as kt, onScopeDispose as kl, withKeys as wl } from "vue";
5
+ import { useCoreStore as Er, FeedMeAuth as xl } from "@feedmepos/mf-common";
6
6
  import { useDialog as Bs } from "@feedmepos/ui-library";
7
7
  import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- function ca() {
8
+ function oa() {
9
9
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
10
10
  }
11
- var _n = ca();
11
+ var _n = oa();
12
12
  function js(n) {
13
13
  _n = n;
14
14
  }
@@ -33,8 +33,8 @@ var _l = ((n = "") => {
33
33
  } catch {
34
34
  return !1;
35
35
  }
36
- })(), wt = { 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: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ua = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Us = Pe(Fs).replace(/bull/g, ua).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(), Al = Pe(Fs).replace(/bull/g, ua).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(), da = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cl = /^[^\n]+/, fa = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $l = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", fa).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rl = Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, ua).getRegex(), Tr = "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", pa = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Nl = Pe("^ {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][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", pa).replace("tag", Tr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Hs = (n) => Pe(da).replace("hr", Yn).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", n).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tr).getRegex(), Dl = Hs(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ol = Hs(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Pl = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ol).getRegex(), ha = { blockquote: Pl, code: Tl, def: $l, fences: El, heading: Il, hr: Yn, html: Nl, lheading: Us, list: Rl, newline: Sl, paragraph: Dl, table: vn, text: Cl }, Pa = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Yn).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", Tr).getRegex(), Ml = { ...ha, lheading: Al, table: Pa, paragraph: Pe(da).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pa).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", Tr).getRegex() }, Ll = { ...ha, html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", pa).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: vn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Pe(da).replace("hr", Yn).replace("heading", ` *#{1,6} *[^
37
- ]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(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(), oo = Pe(pa).replace("(?:-->|$)", "-->").getRegex(), co = Pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", oo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, uo = Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zs = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", fa).getRegex(), Ys = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", fa).getRegex(), fo = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Zs).replace("nolink", Ys).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ma = { _backpedal: vn, anyPunctuation: io, autolink: lo, blockSkip: Wl, br: Ws, code: zl, del: vn, delLDelim: vn, delRDelim: vn, emStrongLDelim: Gl, emStrongRDelimAst: Yl, emStrongRDelimUnd: eo, escape: ql, link: uo, nolink: Ys, punctuation: jl, reflink: Zs, reflinkSearch: fo, tag: co, text: Bl, url: vn }, po = { ...ma, emStrongLDelim: Zl, emStrongRDelimAst: Jl, emStrongRDelimUnd: no, link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(), reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex() }, Yr = { ...ma, emStrongRDelimAst: Ql, emStrongLDelim: Vl, delLDelim: ro, delRDelim: so, url: Pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Pe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ho = { ...Yr, br: Pe(Ws).replace("{2,}", "*").getRegex(), text: Pe(Yr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, nr = { normal: ha, gfm: Ml, pedantic: Ll }, Bn = { normal: ma, gfm: Yr, breaks: ho, pedantic: po }, mo = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, La = (n) => mo[n];
36
+ })(), wt = { 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: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: In((n) => new RegExp(`^ {0,${n}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: In((n) => new RegExp(`^ {0,${n}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: In((n) => new RegExp(`^ {0,${n}}(?:\`\`\`|~~~)`)), headingBeginRegex: In((n) => new RegExp(`^ {0,${n}}#`)), htmlBeginRegex: In((n) => new RegExp(`^ {0,${n}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: In((n) => new RegExp(`^ {0,${n}}>`)) }, Sl = /^(?:[ \t]*(?:\n|$))+/, Tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, El = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Yn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Il = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ca = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Fs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Us = Pe(Fs).replace(/bull/g, ca).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(), Al = Pe(Fs).replace(/bull/g, ca).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(), ua = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Cl = /^[^\n]+/, da = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $l = Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", da).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Rl = Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, ca).getRegex(), Ir = "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", fa = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Nl = Pe("^ {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][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", fa).replace("tag", Ir).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Hs = (n) => Pe(ua).replace("hr", Yn).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", n).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ir).getRegex(), Dl = Hs(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Ol = Hs(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), Pl = Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ol).getRegex(), pa = { blockquote: Pl, code: Tl, def: $l, fences: El, heading: Il, hr: Yn, html: Nl, lheading: Us, list: Rl, newline: Sl, paragraph: Dl, table: vn, text: Cl }, Pa = Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Yn).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", Ir).getRegex(), Ml = { ...pa, lheading: Al, table: Pa, paragraph: Pe(ua).replace("hr", Yn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pa).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", Ir).getRegex() }, Ll = { ...pa, html: Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fa).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: vn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Pe(ua).replace("hr", Yn).replace("heading", ` *#{1,6} *[^
37
+ ]`).replace("lheading", Us).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ql = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, zl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ws = /^( {2,}|\\)\n(?!\s*$)/, Bl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, an = /[\p{P}\p{S}]/u, Mn = /[\s\p{P}\p{S}]/u, Qn = /[^\s\p{P}\p{S}]/u, jl = Pe(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Mn).getRegex(), Fl = /[\p{Pi}\p{Ps}"']/u, Gs = /(?!~)[\p{P}\p{S}]/u, Ul = /(?!~)[\s\p{P}\p{S}]/u, Hl = /(?:[^\s\p{P}\p{S}]|~)/u, Wl = Pe(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _l ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Vs = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Gl = Pe(Vs, "u").replace(/punct/g, an).getRegex(), Vl = Pe(Vs, "u").replace(/punct/g, Gs).getRegex(), Kl = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Zl = Pe(Kl, "u").replace(/openQuote/g, Fl).replace(/punct/g, an).getRegex(), Ks = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Yl = Pe(Ks, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), Ql = Pe(Ks, "gu").replace(/notPunctSpace/g, Hl).replace(/punctSpace/g, Ul).replace(/punct/g, Gs).getRegex(), Xl = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Jl = Pe(Xl, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), eo = Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), to = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", no = Pe(to, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), ro = Pe(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, an).getRegex(), ao = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", so = Pe(ao, "gu").replace(/notPunctSpace/g, Qn).replace(/punctSpace/g, Mn).replace(/punct/g, an).getRegex(), io = Pe(/\\(punct)/, "gu").replace(/punct/g, an).getRegex(), lo = Pe(/^<(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(), oo = Pe(fa).replace("(?:-->|$)", "-->").getRegex(), co = Pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", oo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, uo = Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zs = Pe(/^!?\[(label)\]\[(ref)\]/).replace("label", gr).replace("ref", da).getRegex(), Ys = Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref", da).getRegex(), fo = Pe("reflink|nolink(?!\\()", "g").replace("reflink", Zs).replace("nolink", Ys).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ha = { _backpedal: vn, anyPunctuation: io, autolink: lo, blockSkip: Wl, br: Ws, code: zl, del: vn, delLDelim: vn, delRDelim: vn, emStrongLDelim: Gl, emStrongRDelimAst: Yl, emStrongRDelimUnd: eo, escape: ql, link: uo, nolink: Ys, punctuation: jl, reflink: Zs, reflinkSearch: fo, tag: co, text: Bl, url: vn }, po = { ...ha, emStrongLDelim: Zl, emStrongRDelimAst: Jl, emStrongRDelimUnd: no, link: Pe(/^!?\[(label)\]\((.*?)\)/).replace("label", gr).getRegex(), reflink: Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", gr).getRegex() }, Qr = { ...ha, emStrongRDelimAst: Ql, emStrongLDelim: Vl, delLDelim: ro, delRDelim: so, url: Pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Pe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ho = { ...Qr, br: Pe(Ws).replace("{2,}", "*").getRegex(), text: Pe(Qr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, nr = { normal: pa, gfm: Ml, pedantic: Ll }, Bn = { normal: ha, gfm: Qr, breaks: ho, pedantic: po }, mo = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, La = (n) => mo[n];
38
38
  function Qt(n, t) {
39
39
  if (t) {
40
40
  if (wt.escapeTest.test(n)) return n.replace(wt.escapeReplace, La);
@@ -436,7 +436,7 @@ ${p}`, a = a.substring(0, a.length - E.text.length) + w.text;
436
436
  return { type: "text", raw: t[0], text: t[0], escaped: e };
437
437
  }
438
438
  }
439
- }, Wt = class Qr {
439
+ }, Wt = class Xr {
440
440
  constructor(t) {
441
441
  B(this, "tokens");
442
442
  B(this, "options");
@@ -451,10 +451,10 @@ ${p}`, a = a.substring(0, a.length - E.text.length) + w.text;
451
451
  return { block: nr, inline: Bn };
452
452
  }
453
453
  static lex(t, e) {
454
- return new Qr(e).lex(t);
454
+ return new Xr(e).lex(t);
455
455
  }
456
456
  static lexInline(t, e) {
457
- return new Qr(e).inlineTokens(t);
457
+ return new Xr(e).inlineTokens(t);
458
458
  }
459
459
  lex(t) {
460
460
  t = t.replace(wt.carriageReturn, `
@@ -775,7 +775,7 @@ ${n}</tr>
775
775
  text(n) {
776
776
  return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : Qt(n.text);
777
777
  }
778
- }, ya = class {
778
+ }, ma = class {
779
779
  strong({ text: n }) {
780
780
  return n;
781
781
  }
@@ -806,18 +806,18 @@ ${n}</tr>
806
806
  checkbox({ raw: n }) {
807
807
  return n;
808
808
  }
809
- }, Gt = class Xr {
809
+ }, Gt = class Jr {
810
810
  constructor(t) {
811
811
  B(this, "options");
812
812
  B(this, "renderer");
813
813
  B(this, "textRenderer");
814
- this.options = t || _n, this.options.renderer = this.options.renderer || new vr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ya();
814
+ this.options = t || _n, this.options.renderer = this.options.renderer || new vr(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ma();
815
815
  }
816
816
  static parse(t, e) {
817
- return new Xr(e).parse(t);
817
+ return new Jr(e).parse(t);
818
818
  }
819
819
  static parseInline(t, e) {
820
- return new Xr(e).parseInline(t);
820
+ return new Jr(e).parseInline(t);
821
821
  }
822
822
  parse(t) {
823
823
  var r, a;
@@ -985,13 +985,13 @@ ${n}</tr>
985
985
  }
986
986
  }, B(ur, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), B(ur, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), ur), Qs = class {
987
987
  constructor(...n) {
988
- B(this, "defaults", ca());
988
+ B(this, "defaults", oa());
989
989
  B(this, "options", this.setOptions);
990
990
  B(this, "parse", this.parseMarkdown(!0));
991
991
  B(this, "parseInline", this.parseMarkdown(!1));
992
992
  B(this, "Parser", Gt);
993
993
  B(this, "Renderer", vr);
994
- B(this, "TextRenderer", ya);
994
+ B(this, "TextRenderer", ma);
995
995
  B(this, "Lexer", Wt);
996
996
  B(this, "Tokenizer", br);
997
997
  B(this, "Hooks", Hn);
@@ -1151,7 +1151,7 @@ function Ke(n, t) {
1151
1151
  Ke.options = Ke.setOptions = function(n) {
1152
1152
  return wn.setOptions(n), Ke.defaults = wn.defaults, js(Ke.defaults), Ke;
1153
1153
  };
1154
- Ke.getDefaults = ca;
1154
+ Ke.getDefaults = oa;
1155
1155
  Ke.defaults = _n;
1156
1156
  function vo(...n) {
1157
1157
  return wn.use(...n), Ke.defaults = wn.defaults, js(Ke.defaults), Ke;
@@ -1164,7 +1164,7 @@ Ke.parseInline = wn.parseInline;
1164
1164
  Ke.Parser = Gt;
1165
1165
  Ke.parser = Gt.parse;
1166
1166
  Ke.Renderer = vr;
1167
- Ke.TextRenderer = ya;
1167
+ Ke.TextRenderer = ma;
1168
1168
  Ke.Lexer = Wt;
1169
1169
  Ke.lexer = Wt.lex;
1170
1170
  Ke.Tokenizer = br;
@@ -1332,7 +1332,7 @@ const Ka = (n = {}) => {
1332
1332
  const t = { children: [] };
1333
1333
  return Object.assign(t, n), t;
1334
1334
  };
1335
- class ga {
1335
+ class ya {
1336
1336
  constructor() {
1337
1337
  this.rootNode = Ka(), this.stack = [this.rootNode];
1338
1338
  }
@@ -1380,11 +1380,11 @@ class ga {
1380
1380
  */
1381
1381
  static _collapse(t) {
1382
1382
  typeof t != "string" && t.children && (t.children.every((e) => typeof e == "string") ? t.children = [t.children.join("")] : t.children.forEach((e) => {
1383
- ga._collapse(e);
1383
+ ya._collapse(e);
1384
1384
  }));
1385
1385
  }
1386
1386
  }
1387
- class Ao extends ga {
1387
+ class Ao extends ya {
1388
1388
  /**
1389
1389
  * @param {*} options
1390
1390
  */
@@ -1438,7 +1438,7 @@ function Ro(n) {
1438
1438
  const t = n[n.length - 1];
1439
1439
  return typeof t == "object" && t.constructor === Object ? (n.splice(n.length - 1, 1), t) : {};
1440
1440
  }
1441
- function ba(...n) {
1441
+ function ga(...n) {
1442
1442
  return "(" + (Ro(n).capture ? "" : "?:") + n.map((r) => Vn(r)).join("|") + ")";
1443
1443
  }
1444
1444
  function ri(n) {
@@ -1449,7 +1449,7 @@ function No(n, t) {
1449
1449
  return e && e.index === 0;
1450
1450
  }
1451
1451
  const Do = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
1452
- function va(n, { joinWith: t }) {
1452
+ function ba(n, { joinWith: t }) {
1453
1453
  let e = 0;
1454
1454
  return n.map((r) => {
1455
1455
  e += 1;
@@ -1466,7 +1466,7 @@ function va(n, { joinWith: t }) {
1466
1466
  return o;
1467
1467
  }).map((r) => `(${r})`).join(t);
1468
1468
  }
1469
- const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\\d+)?", ii = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", li = "\\b(0b[01]+)", Po = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mo = (n = {}) => {
1469
+ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", va = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\\d+)?", ii = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", li = "\\b(0b[01]+)", Po = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", Mo = (n = {}) => {
1470
1470
  const t = /^#![ ]*\//;
1471
1471
  return n.binary && (n.begin = Sn(
1472
1472
  t,
@@ -1500,7 +1500,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
1500
1500
  contains: [Kn]
1501
1501
  }, zo = {
1502
1502
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
1503
- }, Er = function(n, t, e = {}) {
1503
+ }, Ar = function(n, t, e = {}) {
1504
1504
  const r = mn(
1505
1505
  {
1506
1506
  scope: "comment",
@@ -1519,7 +1519,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
1519
1519
  excludeBegin: !0,
1520
1520
  relevance: 0
1521
1521
  });
1522
- const a = ba(
1522
+ const a = ga(
1523
1523
  // list of common 1 and 2 letter words in English
1524
1524
  "I",
1525
1525
  "a",
@@ -1566,7 +1566,7 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
1566
1566
  // look for 3 words in a row
1567
1567
  }
1568
1568
  ), r;
1569
- }, Bo = Er("//", "$"), jo = Er("/\\*", "\\*/"), Fo = Er("#", "$"), Uo = {
1569
+ }, Bo = Ar("//", "$"), jo = Ar("/\\*", "\\*/"), Fo = Ar("#", "$"), Uo = {
1570
1570
  scope: "number",
1571
1571
  begin: si,
1572
1572
  relevance: 0
@@ -1597,11 +1597,11 @@ const Oo = /\b\B/, ai = "[a-zA-Z]\\w*", ka = "[a-zA-Z_]\\w*", si = "\\b\\d+(\\.\
1597
1597
  relevance: 0
1598
1598
  }, Ko = {
1599
1599
  scope: "title",
1600
- begin: ka,
1600
+ begin: va,
1601
1601
  relevance: 0
1602
1602
  }, Zo = {
1603
1603
  // excludes method names from keyword processing
1604
- begin: "\\.\\s*" + ka,
1604
+ begin: "\\.\\s*" + va,
1605
1605
  relevance: 0
1606
1606
  }, Yo = function(n) {
1607
1607
  return Object.assign(
@@ -1624,7 +1624,7 @@ var rr = /* @__PURE__ */ Object.freeze({
1624
1624
  BACKSLASH_ESCAPE: Kn,
1625
1625
  BINARY_NUMBER_MODE: Wo,
1626
1626
  BINARY_NUMBER_RE: li,
1627
- COMMENT: Er,
1627
+ COMMENT: Ar,
1628
1628
  C_BLOCK_COMMENT_MODE: jo,
1629
1629
  C_LINE_COMMENT_MODE: Bo,
1630
1630
  C_NUMBER_MODE: Ho,
@@ -1642,7 +1642,7 @@ var rr = /* @__PURE__ */ Object.freeze({
1642
1642
  RE_STARTERS_RE: Po,
1643
1643
  SHEBANG: Mo,
1644
1644
  TITLE_MODE: Vo,
1645
- UNDERSCORE_IDENT_RE: ka,
1645
+ UNDERSCORE_IDENT_RE: va,
1646
1646
  UNDERSCORE_TITLE_MODE: Ko
1647
1647
  });
1648
1648
  function Qo(n, t) {
@@ -1655,7 +1655,7 @@ function Jo(n, t) {
1655
1655
  t && n.beginKeywords && (n.begin = "\\b(" + n.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", n.__beforeBegin = Qo, n.keywords = n.keywords || n.beginKeywords, delete n.beginKeywords, n.relevance === void 0 && (n.relevance = 0));
1656
1656
  }
1657
1657
  function ec(n, t) {
1658
- Array.isArray(n.illegal) && (n.illegal = ba(...n.illegal));
1658
+ Array.isArray(n.illegal) && (n.illegal = ga(...n.illegal));
1659
1659
  }
1660
1660
  function tc(n, t) {
1661
1661
  if (n.match) {
@@ -1735,7 +1735,7 @@ function oc(n) {
1735
1735
  throw kn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), kr;
1736
1736
  if (typeof n.beginScope != "object" || n.beginScope === null)
1737
1737
  throw kn("beginScope must be object"), kr;
1738
- ci(n, n.begin, { key: "beginScope" }), n.begin = va(n.begin, { joinWith: "" });
1738
+ ci(n, n.begin, { key: "beginScope" }), n.begin = ba(n.begin, { joinWith: "" });
1739
1739
  }
1740
1740
  }
1741
1741
  function cc(n) {
@@ -1744,7 +1744,7 @@ function cc(n) {
1744
1744
  throw kn("skip, excludeEnd, returnEnd not compatible with endScope: {}"), kr;
1745
1745
  if (typeof n.endScope != "object" || n.endScope === null)
1746
1746
  throw kn("endScope must be object"), kr;
1747
- ci(n, n.end, { key: "endScope" }), n.end = va(n.end, { joinWith: "" });
1747
+ ci(n, n.end, { key: "endScope" }), n.end = ba(n.end, { joinWith: "" });
1748
1748
  }
1749
1749
  }
1750
1750
  function uc(n) {
@@ -1771,7 +1771,7 @@ function fc(n) {
1771
1771
  compile() {
1772
1772
  this.regexes.length === 0 && (this.exec = () => null);
1773
1773
  const s = this.regexes.map((l) => l[1]);
1774
- this.matcherRe = t(va(s, { joinWith: "|" }), !0), this.lastIndex = 0;
1774
+ this.matcherRe = t(ba(s, { joinWith: "|" }), !0), this.lastIndex = 0;
1775
1775
  }
1776
1776
  /** @param {string} s */
1777
1777
  exec(s) {
@@ -1875,7 +1875,7 @@ class mc extends Error {
1875
1875
  super(t), this.name = "HTMLInjectionError", this.html = e;
1876
1876
  }
1877
1877
  }
1878
- const Mr = ti, Qa = mn, Xa = Symbol("nomatch"), yc = 7, di = function(n) {
1878
+ const Lr = ti, Qa = mn, Xa = Symbol("nomatch"), yc = 7, di = function(n) {
1879
1879
  const t = /* @__PURE__ */ Object.create(null), e = /* @__PURE__ */ Object.create(null), r = [];
1880
1880
  let a = !0;
1881
1881
  const i = "Could not find the language '{}', did you forget to load/include a language module?", o = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -2086,7 +2086,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
2086
2086
  if (te.message && te.message.includes("Illegal"))
2087
2087
  return {
2088
2088
  language: q,
2089
- value: Mr(R),
2089
+ value: Lr(R),
2090
2090
  illegal: !0,
2091
2091
  relevance: 0,
2092
2092
  _illegalBy: {
@@ -2101,7 +2101,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
2101
2101
  if (a)
2102
2102
  return {
2103
2103
  language: q,
2104
- value: Mr(R),
2104
+ value: Lr(R),
2105
2105
  illegal: !1,
2106
2106
  relevance: 0,
2107
2107
  errorRaised: te,
@@ -2113,7 +2113,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
2113
2113
  }
2114
2114
  function h(q) {
2115
2115
  const R = {
2116
- value: Mr(q),
2116
+ value: Lr(q),
2117
2117
  illegal: !1,
2118
2118
  relevance: 0,
2119
2119
  _top: o,
@@ -2277,7 +2277,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = q, V = R), O ===
2277
2277
  }, n.versionString = hc, n.regex = {
2278
2278
  concat: Sn,
2279
2279
  lookahead: ni,
2280
- either: ba,
2280
+ either: ga,
2281
2281
  optional: $o,
2282
2282
  anyNumberOfTimes: Co
2283
2283
  };
@@ -2332,37 +2332,37 @@ function xc(n, t) {
2332
2332
  }
2333
2333
  }
2334
2334
  const fi = Object.entries, es = Object.setPrototypeOf, _c = Object.isFrozen, Sc = Object.getPrototypeOf, Tc = Object.getOwnPropertyDescriptor;
2335
- let pt = Object.freeze, ht = Object.seal, Nn = Object.create, pi = typeof Reflect < "u" && Reflect, Jr = pi.apply, ea = pi.construct;
2335
+ let pt = Object.freeze, ht = Object.seal, Nn = Object.create, pi = typeof Reflect < "u" && Reflect, ea = pi.apply, ta = pi.construct;
2336
2336
  pt || (pt = function(t) {
2337
2337
  return t;
2338
2338
  });
2339
2339
  ht || (ht = function(t) {
2340
2340
  return t;
2341
2341
  });
2342
- Jr || (Jr = function(t, e) {
2342
+ ea || (ea = function(t, e) {
2343
2343
  for (var r = arguments.length, a = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
2344
2344
  a[i - 2] = arguments[i];
2345
2345
  return t.apply(e, a);
2346
2346
  });
2347
- ea || (ea = function(t) {
2347
+ ta || (ta = function(t) {
2348
2348
  for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
2349
2349
  r[a - 1] = arguments[a];
2350
2350
  return new t(...r);
2351
2351
  });
2352
- const Cn = at(Array.prototype.forEach), Ec = at(Array.prototype.lastIndexOf), ts = at(Array.prototype.pop), $n = at(Array.prototype.push), Ic = at(Array.prototype.splice), hn = Array.isArray, Wn = at(String.prototype.toLowerCase), Lr = at(String.prototype.toString), ns = at(String.prototype.match), jn = at(String.prototype.replace), rs = at(String.prototype.indexOf), Ac = at(String.prototype.trim), Cc = at(Number.prototype.toString), $c = at(Boolean.prototype.toString), as = typeof BigInt > "u" ? null : at(BigInt.prototype.toString), ss = typeof Symbol > "u" ? null : at(Symbol.prototype.toString), ot = at(Object.prototype.hasOwnProperty), Fn = at(Object.prototype.toString), lt = at(RegExp.prototype.test), gn = Rc(TypeError);
2352
+ const Cn = at(Array.prototype.forEach), Ec = at(Array.prototype.lastIndexOf), ts = at(Array.prototype.pop), $n = at(Array.prototype.push), Ic = at(Array.prototype.splice), hn = Array.isArray, Wn = at(String.prototype.toLowerCase), qr = at(String.prototype.toString), ns = at(String.prototype.match), jn = at(String.prototype.replace), rs = at(String.prototype.indexOf), Ac = at(String.prototype.trim), Cc = at(Number.prototype.toString), $c = at(Boolean.prototype.toString), as = typeof BigInt > "u" ? null : at(BigInt.prototype.toString), ss = typeof Symbol > "u" ? null : at(Symbol.prototype.toString), ot = at(Object.prototype.hasOwnProperty), Fn = at(Object.prototype.toString), lt = at(RegExp.prototype.test), gn = Rc(TypeError);
2353
2353
  function at(n) {
2354
2354
  return function(t) {
2355
2355
  t instanceof RegExp && (t.lastIndex = 0);
2356
2356
  for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), a = 1; a < e; a++)
2357
2357
  r[a - 1] = arguments[a];
2358
- return Jr(n, t, r);
2358
+ return ea(n, t, r);
2359
2359
  };
2360
2360
  }
2361
2361
  function Rc(n) {
2362
2362
  return function() {
2363
2363
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
2364
2364
  e[r] = arguments[r];
2365
- return ea(n, e);
2365
+ return ta(n, e);
2366
2366
  };
2367
2367
  }
2368
2368
  function Be(n, t) {
@@ -2446,7 +2446,7 @@ function Oc(n) {
2446
2446
  return !1;
2447
2447
  }
2448
2448
  }
2449
- const is = pt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), qr = pt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), zr = pt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Pc = pt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Br = pt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Mc = pt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ls = pt(["#text"]), os = pt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), jr = pt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), cs = pt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ar = pt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Lc = ht(/{{[\w\W]*|^[\w\W]*}}/g), qc = ht(/<%[\w\W]*|^[\w\W]*%>/g), zc = ht(/\${[\w\W]*/g), Bc = ht(/^data-[\-\w.\u00B7-\uFFFF]+$/), jc = ht(/^aria-[\-\w]+$/), us = ht(
2449
+ const is = pt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), zr = pt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Br = pt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Pc = pt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), jr = pt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Mc = pt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ls = pt(["#text"]), os = pt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Fr = pt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dominant-baseline", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-orientation", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), cs = pt(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ar = pt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Lc = ht(/{{[\w\W]*|^[\w\W]*}}/g), qc = ht(/<%[\w\W]*|^[\w\W]*%>/g), zc = ht(/\${[\w\W]*/g), Bc = ht(/^data-[\-\w.\u00B7-\uFFFF]+$/), jc = ht(/^aria-[\-\w]+$/), us = ht(
2450
2450
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2451
2451
  // eslint-disable-line no-useless-escape
2452
2452
  ), Fc = ht(/^(?:\w+script|data):/i), Uc = ht(
@@ -2544,9 +2544,9 @@ function hi() {
2544
2544
  t.isSupported = typeof fi == "function" && typeof I == "function" && R && R.createHTMLDocument !== void 0;
2545
2545
  const ue = Lc, qe = qc, ze = zc, He = Bc, mt = jc, Et = Fc, yt = Uc, jt = Wc;
2546
2546
  let dt = us, Te = null;
2547
- const G = Be({}, [...is, ...qr, ...zr, ...Br, ...ls]);
2547
+ const G = Be({}, [...is, ...zr, ...Br, ...jr, ...ls]);
2548
2548
  let Y = null;
2549
- const me = Be({}, [...os, ...jr, ...cs, ...ar]);
2549
+ const me = Be({}, [...os, ...Fr, ...cs, ...ar]);
2550
2550
  let Ee = Object.seal(Nn(null, {
2551
2551
  tagNameCheck: {
2552
2552
  writable: !0,
@@ -2626,7 +2626,7 @@ function hi() {
2626
2626
  let $t = null;
2627
2627
  const on = Be({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Zt = "http://www.w3.org/1998/Math/MathML", qt = "http://www.w3.org/2000/svg", nt = "http://www.w3.org/1999/xhtml";
2628
2628
  let c = nt, b = !1, P = null;
2629
- const K = Be({}, [Zt, qt, nt], Lr), Q = pt(["mi", "mo", "mn", "ms", "mtext"]);
2629
+ const K = Be({}, [Zt, qt, nt], qr), Q = pt(["mi", "mo", "mn", "ms", "mtext"]);
2630
2630
  let xe = Be({}, Q);
2631
2631
  const Le = pt(["annotation-xml"]);
2632
2632
  let rt = Be({}, Le);
@@ -2641,12 +2641,12 @@ function hi() {
2641
2641
  if (S && S === f)
2642
2642
  return;
2643
2643
  (!f || typeof f != "object") && (f = {}), f = vt(f), bt = // eslint-disable-next-line unicorn/prefer-includes
2644
- _t.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Z : f.PARSER_MEDIA_TYPE, y = bt === "application/xhtml+xml" ? Lr : Wn, Te = dn(f, "ALLOWED_TAGS", G, {
2644
+ _t.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Z : f.PARSER_MEDIA_TYPE, y = bt === "application/xhtml+xml" ? qr : Wn, Te = dn(f, "ALLOWED_TAGS", G, {
2645
2645
  transform: y
2646
2646
  }), Y = dn(f, "ALLOWED_ATTR", me, {
2647
2647
  transform: y
2648
2648
  }), P = dn(f, "ALLOWED_NAMESPACES", K, {
2649
- transform: Lr
2649
+ transform: qr
2650
2650
  }), $t = dn(f, "ADD_URI_SAFE_ATTR", on, {
2651
2651
  transform: y,
2652
2652
  base: on
@@ -2661,7 +2661,7 @@ function hi() {
2661
2661
  transform: y
2662
2662
  }), Ct = ot(f, "USE_PROFILES") ? f.USE_PROFILES && typeof f.USE_PROFILES == "object" ? vt(f.USE_PROFILES) : f.USE_PROFILES : !1, je = f.ALLOW_ARIA_ATTR !== !1, Me = f.ALLOW_DATA_ATTR !== !1, It = f.ALLOW_UNKNOWN_PROTOCOLS || !1, ft = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, et = f.SAFE_FOR_TEMPLATES || !1, it = f.SAFE_FOR_XML !== !1, te = f.WHOLE_DOCUMENT || !1, Je = f.RETURN_DOM || !1, Pt = f.RETURN_DOM_FRAGMENT || !1, Mt = f.RETURN_TRUSTED_TYPE || !1, We = f.FORCE_BODY || !1, At = f.SANITIZE_DOM !== !1, Xt = f.SANITIZE_NAMED_PROPS || !1, Kt = f.KEEP_CONTENT !== !1, Lt = f.IN_PLACE || !1, dt = Oc(f.ALLOWED_URI_REGEXP) ? f.ALLOWED_URI_REGEXP : us, c = typeof f.NAMESPACE == "string" ? f.NAMESPACE : nt, xe = ot(f, "MATHML_TEXT_INTEGRATION_POINTS") && f.MATHML_TEXT_INTEGRATION_POINTS && typeof f.MATHML_TEXT_INTEGRATION_POINTS == "object" ? vt(f.MATHML_TEXT_INTEGRATION_POINTS) : Be({}, Q), rt = ot(f, "HTML_INTEGRATION_POINTS") && f.HTML_INTEGRATION_POINTS && typeof f.HTML_INTEGRATION_POINTS == "object" ? vt(f.HTML_INTEGRATION_POINTS) : Be({}, Le);
2663
2663
  const $ = ot(f, "CUSTOM_ELEMENT_HANDLING") && f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING == "object" ? vt(f.CUSTOM_ELEMENT_HANDLING) : Nn(null);
2664
- if (Ee = Nn(null), ot($, "tagNameCheck") && ie($.tagNameCheck) && (Ee.tagNameCheck = $.tagNameCheck), ot($, "attributeNameCheck") && ie($.attributeNameCheck) && (Ee.attributeNameCheck = $.attributeNameCheck), ot($, "allowCustomizedBuiltInElements") && typeof $.allowCustomizedBuiltInElements == "boolean" && (Ee.allowCustomizedBuiltInElements = $.allowCustomizedBuiltInElements), ht(Ee), et && (Me = !1), Pt && (Je = !0), Ct && (Te = Be({}, ls), Y = Nn(null), Ct.html === !0 && (Be(Te, is), Be(Y, os)), Ct.svg === !0 && (Be(Te, qr), Be(Y, jr), Be(Y, ar)), Ct.svgFilters === !0 && (Be(Te, zr), Be(Y, jr), Be(Y, ar)), Ct.mathMl === !0 && (Be(Te, Br), Be(Y, cs), Be(Y, ar))), tt.tagCheck = null, tt.attributeCheck = null, ot(f, "ADD_TAGS") && (typeof f.ADD_TAGS == "function" ? tt.tagCheck = f.ADD_TAGS : hn(f.ADD_TAGS) && (Te === G && (Te = vt(Te)), Be(Te, f.ADD_TAGS, y))), ot(f, "ADD_ATTR") && (typeof f.ADD_ATTR == "function" ? tt.attributeCheck = f.ADD_ATTR : hn(f.ADD_ATTR) && (Y === me && (Y = vt(Y)), Be(Y, f.ADD_ATTR, y))), ot(f, "ADD_URI_SAFE_ATTR") && hn(f.ADD_URI_SAFE_ATTR) && Be($t, f.ADD_URI_SAFE_ATTR, y), ot(f, "FORBID_CONTENTS") && hn(f.FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.FORBID_CONTENTS, y)), ot(f, "ADD_FORBID_CONTENTS") && hn(f.ADD_FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.ADD_FORBID_CONTENTS, y)), Kt && (Te["#text"] = !0), te && Be(Te, ["html", "head", "body"]), Te.table && (Be(Te, ["tbody"]), delete le.tbody), f.TRUSTED_TYPES_POLICY) {
2664
+ if (Ee = Nn(null), ot($, "tagNameCheck") && ie($.tagNameCheck) && (Ee.tagNameCheck = $.tagNameCheck), ot($, "attributeNameCheck") && ie($.attributeNameCheck) && (Ee.attributeNameCheck = $.attributeNameCheck), ot($, "allowCustomizedBuiltInElements") && typeof $.allowCustomizedBuiltInElements == "boolean" && (Ee.allowCustomizedBuiltInElements = $.allowCustomizedBuiltInElements), ht(Ee), et && (Me = !1), Pt && (Je = !0), Ct && (Te = Be({}, ls), Y = Nn(null), Ct.html === !0 && (Be(Te, is), Be(Y, os)), Ct.svg === !0 && (Be(Te, zr), Be(Y, Fr), Be(Y, ar)), Ct.svgFilters === !0 && (Be(Te, Br), Be(Y, Fr), Be(Y, ar)), Ct.mathMl === !0 && (Be(Te, jr), Be(Y, cs), Be(Y, ar))), tt.tagCheck = null, tt.attributeCheck = null, ot(f, "ADD_TAGS") && (typeof f.ADD_TAGS == "function" ? tt.tagCheck = f.ADD_TAGS : hn(f.ADD_TAGS) && (Te === G && (Te = vt(Te)), Be(Te, f.ADD_TAGS, y))), ot(f, "ADD_ATTR") && (typeof f.ADD_ATTR == "function" ? tt.attributeCheck = f.ADD_ATTR : hn(f.ADD_ATTR) && (Y === me && (Y = vt(Y)), Be(Y, f.ADD_ATTR, y))), ot(f, "ADD_URI_SAFE_ATTR") && hn(f.ADD_URI_SAFE_ATTR) && Be($t, f.ADD_URI_SAFE_ATTR, y), ot(f, "FORBID_CONTENTS") && hn(f.FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.FORBID_CONTENTS, y)), ot(f, "ADD_FORBID_CONTENTS") && hn(f.ADD_FORBID_CONTENTS) && (gt === Jt && (gt = vt(gt)), Be(gt, f.ADD_FORBID_CONTENTS, y)), Kt && (Te["#text"] = !0), te && Be(Te, ["html", "head", "body"]), Te.table && (Be(Te, ["tbody"]), delete le.tbody), f.TRUSTED_TYPES_POLICY) {
2665
2665
  if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2666
2666
  throw gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2667
2667
  if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2675,7 +2675,7 @@ function hi() {
2675
2675
  }
2676
2676
  } else f.TRUSTED_TYPES_POLICY === null ? (se = void 0, H = "") : (se === void 0 && (se = Ae()), se && typeof H == "string" && (H = ve("")));
2677
2677
  pt && pt(f), S = f;
2678
- }, Fe = Be({}, [...qr, ...zr, ...Pc]), Ge = Be({}, [...Br, ...Mc]), tn = function(f, $, W) {
2678
+ }, Fe = Be({}, [...zr, ...Br, ...Pc]), Ge = Be({}, [...jr, ...Mc]), tn = function(f, $, W) {
2679
2679
  return $.namespaceURI === nt ? f === "svg" : $.namespaceURI === Zt ? f === "svg" && (W === "annotation-xml" || xe[W]) : !!Fe[f];
2680
2680
  }, Ut = function(f, $, W) {
2681
2681
  return $.namespaceURI === nt ? f === "math" : $.namespaceURI === qt ? f === "math" && rt[W] : !!Ge[f];
@@ -2827,7 +2827,7 @@ function hi() {
2827
2827
  );
2828
2828
  }, Jn = function(f) {
2829
2829
  return f = jn(f, ue, " "), f = jn(f, qe, " "), f = jn(f, ze, " "), f;
2830
- }, Dr = function(f) {
2830
+ }, Or = function(f) {
2831
2831
  var $;
2832
2832
  f.normalize();
2833
2833
  const W = F ? F(f) : f.ownerDocument, he = O.call(
@@ -2842,7 +2842,7 @@ function hi() {
2842
2842
  be.data = Jn(be.data), be = he.nextNode();
2843
2843
  const $e = ($ = f.querySelectorAll) === null || $ === void 0 ? void 0 : $.call(f, "template");
2844
2844
  $e && Cn($e, (Ve) => {
2845
- En(Ve.content) && Dr(Ve.content);
2845
+ En(Ve.content) && Or(Ve.content);
2846
2846
  });
2847
2847
  }, er = function(f) {
2848
2848
  const $ = N ? N(f) : null;
@@ -2997,8 +2997,8 @@ function hi() {
2997
2997
  let he = $.length;
2998
2998
  const be = y(f.nodeName);
2999
2999
  for (; he--; ) {
3000
- const $e = $[he], Ve = $e.name, Qe = $e.namespaceURI, Nt = $e.value, Dt = y(Ve), Pr = Nt;
3001
- let St = Ve === "value" ? Pr : Ac(Pr);
3000
+ const $e = $[he], Ve = $e.name, Qe = $e.namespaceURI, Nt = $e.value, Dt = y(Ve), Mr = Nt;
3001
+ let St = Ve === "value" ? Mr : Ac(Mr);
3002
3002
  if (W.attrName = Dt, W.attrValue = St, W.keepAttr = !0, W.forceKeepAttr = void 0, Yt(D.uponSanitizeAttribute, f, W), St = W.attrValue, Xt && (Dt === "id" || Dt === "name") && rs(St, sn) !== 0 && (yn(Ve, f), St = sn + St), it && lt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, St)) {
3003
3003
  yn(Ve, f);
3004
3004
  continue;
@@ -3020,7 +3020,7 @@ function hi() {
3020
3020
  yn(Ve, f);
3021
3021
  continue;
3022
3022
  }
3023
- St = ml(be, Dt, Qe, St), St !== Pr && yl(f, Ve, Qe, St);
3023
+ St = ml(be, Dt, Qe, St), St !== Mr && yl(f, Ve, Qe, St);
3024
3024
  }
3025
3025
  }
3026
3026
  Yt(D.afterSanitizeAttributes, f, null);
@@ -3030,10 +3030,10 @@ function hi() {
3030
3030
  for (Yt(D.beforeSanitizeShadowDOM, f, null); $ = W.nextNode(); )
3031
3031
  if (Yt(D.uponSanitizeShadowNode, $, null), Ra($, f), Oa($), En($.content) && tr($.content), (C ? C($) : $.nodeType) === zt.element) {
3032
3032
  const be = _($);
3033
- En(be) && (Or(be), tr(be));
3033
+ En(be) && (Pr(be), tr(be));
3034
3034
  }
3035
3035
  Yt(D.afterSanitizeShadowDOM, f, null);
3036
- }, Or = function(f) {
3036
+ }, Pr = function(f) {
3037
3037
  const $ = [{
3038
3038
  node: f,
3039
3039
  shadow: null
@@ -3092,12 +3092,12 @@ function hi() {
3092
3092
  if (er(re))
3093
3093
  throw Xn(re), gn("root node is clobbered and cannot be sanitized in-place");
3094
3094
  try {
3095
- Or(re);
3095
+ Pr(re);
3096
3096
  } catch (Dt) {
3097
3097
  throw Xn(re), Dt;
3098
3098
  }
3099
3099
  } else if (zn(re))
3100
- $ = Aa("<!---->"), W = $.ownerDocument.importNode(re, !0), W.nodeType === zt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? $ = W : $.appendChild(W), Or(W);
3100
+ $ = Aa("<!---->"), W = $.ownerDocument.importNode(re, !0), W.nodeType === zt.element && W.nodeName === "BODY" || W.nodeName === "HTML" ? $ = W : $.appendChild(W), Pr(W);
3101
3101
  else {
3102
3102
  if (!Je && !et && !te && // eslint-disable-next-line unicorn/prefer-includes
3103
3103
  re.indexOf("<") === -1)
@@ -3119,9 +3119,9 @@ function hi() {
3119
3119
  if ($e)
3120
3120
  return Cn(t.removed, (Nt) => {
3121
3121
  Nt.element && qn(Nt.element);
3122
- }), et && Dr(re), re;
3122
+ }), et && Or(re), re;
3123
3123
  if (Je) {
3124
- if (et && Dr($), Pt)
3124
+ if (et && Or($), Pt)
3125
3125
  for (be = V.call($.ownerDocument); $.firstChild; )
3126
3126
  be.appendChild($.firstChild);
3127
3127
  else
@@ -4562,7 +4562,7 @@ function Ii(n) {
4562
4562
  ]
4563
4563
  };
4564
4564
  }
4565
- function wa(n) {
4565
+ function ka(n) {
4566
4566
  const t = n.regex, e = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, a = {
4567
4567
  className: "symbol",
4568
4568
  begin: /&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/
@@ -6302,9 +6302,9 @@ ct.registerLanguage("typescript", _i);
6302
6302
  ct.registerLanguage("ts", _i);
6303
6303
  ct.registerLanguage("javascript", Ii);
6304
6304
  ct.registerLanguage("js", Ii);
6305
- ct.registerLanguage("vue", wa);
6306
- ct.registerLanguage("html", wa);
6307
- ct.registerLanguage("xml", wa);
6305
+ ct.registerLanguage("vue", ka);
6306
+ ct.registerLanguage("html", ka);
6307
+ ct.registerLanguage("xml", ka);
6308
6308
  ct.registerLanguage("css", cu);
6309
6309
  ct.registerLanguage("json", uu);
6310
6310
  ct.registerLanguage("bash", Ai);
@@ -6542,7 +6542,7 @@ const pu = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6542
6542
  { value: "center", label: "Center" },
6543
6543
  { value: "flex-end", label: "End", aliases: ["end"] },
6544
6544
  { value: "baseline", label: "Baseline" }
6545
- ], xa = [
6545
+ ], wa = [
6546
6546
  { key: "color", label: "Text", control: "color" },
6547
6547
  { key: "backgroundColor", label: "Background", control: "color" },
6548
6548
  { key: "borderColor", label: "Border", control: "color" },
@@ -6567,7 +6567,7 @@ const pu = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
6567
6567
  { key: "gap", label: "Gap", control: "length", units: ["px", "rem", "%"], min: 0, max: 400, step: 1, presets: ["0px", "4px", "8px", "12px", "16px", "24px", "32px"] },
6568
6568
  { key: "justifyContent", label: "Justify", control: "choice", options: Nu },
6569
6569
  { key: "alignItems", label: "Align items", control: "choice", options: Du }
6570
- ], Ou = new Map(xa.map((n) => [n.key, n]));
6570
+ ], Ou = new Map(wa.map((n) => [n.key, n]));
6571
6571
  function nn(n) {
6572
6572
  return Ou.get(n);
6573
6573
  }
@@ -6580,7 +6580,7 @@ const gs = [
6580
6580
  { key: "spacing", label: "Spacing", keys: ["padding", "margin"], defaultOpen: !1 },
6581
6581
  { key: "effects", label: "Effects", keys: ["opacity"], defaultOpen: !1 }
6582
6582
  ], Pu = /* @__PURE__ */ new Set(["img", "svg", "video", "picture", "canvas", "image", "use", "path", "figure"]), Mu = /* @__PURE__ */ new Set(["button", "a", "input", "select", "textarea", "option"]), Lu = /* @__PURE__ */ new Set(["span", "p", "h1", "h2", "h3", "h4", "h5", "h6", "strong", "em", "b", "i", "small", "label", "li", "td", "th", "legend", "figcaption", "blockquote"]);
6583
- function Ir(n) {
6583
+ function Cr(n) {
6584
6584
  const t = ((n == null ? void 0 : n.tag) ?? "").toLowerCase();
6585
6585
  return Pu.has(t) ? "media" : Mu.has(t) ? "control" : Lu.has(t) || n != null && n.canEditText ? "text" : "container";
6586
6586
  }
@@ -6599,7 +6599,7 @@ function zu(n) {
6599
6599
  }
6600
6600
  function Bu(n, t) {
6601
6601
  var r;
6602
- return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" && Ir(n) !== "media" : !1;
6602
+ return ["width", "height", "padding", "margin"].includes(t) ? (((r = n == null ? void 0 : n.computed) == null ? void 0 : r.display) ?? "").trim() === "inline" && Cr(n) !== "media" : !1;
6603
6603
  }
6604
6604
  const ju = /^[^<>;{}]{0,200}$/;
6605
6605
  function Zn(n) {
@@ -6611,7 +6611,7 @@ function Fu(n, t) {
6611
6611
  const e = n.trim();
6612
6612
  return e.endsWith("%") ? Number(e.slice(0, -1)) / 100 * 255 : Number(e) * t;
6613
6613
  }
6614
- function ta(n) {
6614
+ function na(n) {
6615
6615
  var E;
6616
6616
  const t = n.trim().toLowerCase();
6617
6617
  if (!t) return null;
@@ -6636,17 +6636,17 @@ function ta(n) {
6636
6636
  let h = 1;
6637
6637
  return k !== void 0 && (h = k.endsWith("%") ? Number(k.slice(0, -1)) / 100 : Number(k), !Number.isFinite(h)) ? null : { r: l, g: d, b: u, a: Math.min(1, Math.max(0, h)) };
6638
6638
  }
6639
- function na(n) {
6639
+ function ra(n) {
6640
6640
  const t = (e) => Math.min(255, Math.max(0, Math.round(e))).toString(16).padStart(2, "0");
6641
6641
  return `#${t(n.r)}${t(n.g)}${t(n.b)}`;
6642
6642
  }
6643
- function Ar(n) {
6644
- const t = ta(String(n ?? ""));
6645
- return !t || t.a === 0 ? null : na(t);
6643
+ function $r(n) {
6644
+ const t = na(String(n ?? ""));
6645
+ return !t || t.a === 0 ? null : ra(t);
6646
6646
  }
6647
6647
  function xr(n, t) {
6648
- const e = ta(String(n ?? "")), r = ta(String(t ?? ""));
6649
- return !e || !r ? String(n ?? "").trim() === String(t ?? "").trim() : e.a === 0 && r.a === 0 ? !0 : na(e) === na(r) && Math.abs(e.a - r.a) < 5e-3;
6648
+ const e = na(String(n ?? "")), r = na(String(t ?? ""));
6649
+ return !e || !r ? String(n ?? "").trim() === String(t ?? "").trim() : e.a === 0 && r.a === 0 ? !0 : ra(e) === ra(r) && Math.abs(e.a - r.a) < 5e-3;
6650
6650
  }
6651
6651
  const Ri = /^(-?\d*\.?\d+)([a-z%]*)$/i;
6652
6652
  function bn(n) {
@@ -6670,9 +6670,9 @@ function sr(n) {
6670
6670
  function Hu(n) {
6671
6671
  const t = (n == null ? void 0 : n.computed) ?? {};
6672
6672
  return Object.fromEntries(
6673
- xa.map(({ key: e, control: r }) => {
6673
+ wa.map(({ key: e, control: r }) => {
6674
6674
  const a = Zn(t[e] ?? "");
6675
- return r === "color" && a.startsWith("color(") ? [e, Ar(a) ?? a] : [e, a];
6675
+ return r === "color" && a.startsWith("color(") ? [e, $r(a) ?? a] : [e, a];
6676
6676
  })
6677
6677
  );
6678
6678
  }
@@ -6683,14 +6683,14 @@ function Wu(n, t, e) {
6683
6683
  const r = (a = n.options) == null ? void 0 : a.find((o) => o.value === e);
6684
6684
  return !((i = r == null ? void 0 : r.aliases) != null && i.includes(t));
6685
6685
  }
6686
- function _a(n, t) {
6687
- return xa.flatMap((e) => {
6686
+ function xa(n, t) {
6687
+ return wa.flatMap((e) => {
6688
6688
  const r = Zn(n[e.key] ?? ""), a = Zn(t[e.key] ?? "");
6689
6689
  return Wu(e, r, a) ? [e.key] : [];
6690
6690
  });
6691
6691
  }
6692
6692
  function Gu(n, t, e) {
6693
- const r = _a(n, t), a = {};
6693
+ const r = xa(n, t), a = {};
6694
6694
  for (const i of r) a[i] = t[i] ?? "";
6695
6695
  for (const i of e) r.includes(i) || (a[i] = "");
6696
6696
  return { styles: a, appliedKeys: r };
@@ -6700,7 +6700,7 @@ function Vu(n, t, e) {
6700
6700
  if (n.control === "font") return e.find((r) => r.kind === "font" && r.value === t);
6701
6701
  }
6702
6702
  function bs(n, t, e = []) {
6703
- return _a(n, t).map((r) => {
6703
+ return xa(n, t).map((r) => {
6704
6704
  const a = Zn(t[r] ?? ""), i = Vu(nn(r), a, e);
6705
6705
  return {
6706
6706
  property: r,
@@ -6725,7 +6725,7 @@ function Zu(n) {
6725
6725
  }
6726
6726
  function Yu(n) {
6727
6727
  var i, o, s;
6728
- const t = n.element, e = Ir(t), r = Zu(t), a = [
6728
+ const t = n.element, e = Cr(t), r = Zu(t), a = [
6729
6729
  `#${n.id} — route ${n.route} — viewport/device ${n.device}`,
6730
6730
  ` target: ${t ? `<${t.tag}>` : "unknown element"} (${e})`,
6731
6731
  ` selector hint: ${(t == null ? void 0 : t.selector) || "(unavailable)"}`,
@@ -6779,7 +6779,7 @@ const Qu = { class: "flex min-w-0 flex-col gap-6" }, Xu = {
6779
6779
  },
6780
6780
  setup(n) {
6781
6781
  function t(e) {
6782
- return Ar(e) ? e : null;
6782
+ return $r(e) ? e : null;
6783
6783
  }
6784
6784
  return (e, r) => {
6785
6785
  const a = Ue("FmIcon");
@@ -6875,7 +6875,7 @@ const Qu = { class: "flex min-w-0 flex-col gap-6" }, Xu = {
6875
6875
  return `/api/start${r ? `?${r}` : ""}`;
6876
6876
  },
6877
6877
  opencode: (n = "") => `/api/opencode${n ? `/${n.replace(/^\/+/, "")}` : ""}`
6878
- }, ra = "69cde0740c0106001ca83dff", fd = {
6878
+ }, aa = "69cde0740c0106001ca83dff", fd = {
6879
6879
  dev: {
6880
6880
  env: "dev",
6881
6881
  liveDomain: "feedmedev.vip",
@@ -6917,28 +6917,27 @@ function rn(n) {
6917
6917
  const t = md();
6918
6918
  return t ? `${t}${n.startsWith("/") ? n : `/${n}`}` : n;
6919
6919
  }
6920
- function Cr() {
6921
- return oa().currentBusiness.value;
6920
+ function _a() {
6921
+ return Er().currentBusiness.value;
6922
6922
  }
6923
6923
  function xn() {
6924
- const n = Cr();
6925
- return (n == null ? void 0 : n._id) ?? (n == null ? void 0 : n.id) ?? ra;
6924
+ var n;
6925
+ return ((n = _a()) == null ? void 0 : n._id) ?? aa;
6926
6926
  }
6927
- function aa() {
6927
+ function _r() {
6928
6928
  var n;
6929
- return (n = Cr()) == null ? void 0 : n.slug;
6929
+ return ((n = _a()) == null ? void 0 : n.url) ?? void 0;
6930
6930
  }
6931
6931
  function yd() {
6932
- const n = Cr();
6933
- return (n == null ? void 0 : n.name) ?? (n == null ? void 0 : n.slug) ?? xn();
6932
+ var n;
6933
+ return ((n = _a()) == null ? void 0 : n.name) ?? xn();
6934
6934
  }
6935
6935
  function Oi() {
6936
- const n = Cr();
6937
- return (n == null ? void 0 : n.country) ?? (n == null ? void 0 : n.countryCode) ?? (n == null ? void 0 : n.country_code);
6936
+ return Er().currentCountry.value;
6938
6937
  }
6939
6938
  function gd() {
6940
6939
  var r;
6941
- const n = (r = aa()) == null ? void 0 : r.trim().toLowerCase(), t = n && /^[a-z0-9-]+$/.test(n) ? n : xn(), e = Ni(Di("fmmf:dev")).liveDomain;
6940
+ const n = (r = _r()) == null ? void 0 : r.trim().toLowerCase(), t = n && /^[a-z0-9-]+$/.test(n) ? n : xn(), e = Ni(Di("fmmf:dev")).liveDomain;
6942
6941
  return `https://${t}.${e}`;
6943
6942
  }
6944
6943
  function sa(n) {
@@ -6949,7 +6948,7 @@ function Ye(n) {
6949
6948
  }
6950
6949
  function vs() {
6951
6950
  var t;
6952
- return ((t = oa().sessionUser.value) == null ? void 0 : t.token) || xl.token || "";
6951
+ return ((t = Er().sessionUser.value) == null ? void 0 : t.token) || xl.token || "";
6953
6952
  }
6954
6953
  async function Pi() {
6955
6954
  let n = vs();
@@ -6959,11 +6958,13 @@ async function Pi() {
6959
6958
  return n ? `Bearer ${n}` : null;
6960
6959
  }
6961
6960
  async function pn(n, t = {}) {
6962
- var i;
6961
+ var o, s;
6963
6962
  const e = new Request(n, t), r = await Pi();
6964
6963
  r && e.headers.set("Authorization", r);
6965
- const a = (i = Oi()) == null ? void 0 : i.trim().toUpperCase();
6966
- return a && ["MY", "SG", "ID", "MO", "TH"].includes(a) && e.headers.set("x-feedme-country", a), fetch(e);
6964
+ const a = (o = Oi()) == null ? void 0 : o.trim().toUpperCase();
6965
+ a && ["MY", "SG", "ID", "MO", "TH"].includes(a) && e.headers.set("x-feedme-country", a);
6966
+ const i = (s = _r()) == null ? void 0 : s.trim().toLowerCase();
6967
+ return i && e.headers.set("x-feedme-business-slug", i), fetch(e);
6967
6968
  }
6968
6969
  async function st(n, t = {}) {
6969
6970
  const e = new Headers(t.headers);
@@ -7285,7 +7286,7 @@ function Fd(n) {
7285
7286
 
7286
7287
  `);
7287
7288
  }
7288
- const Fr = /```brandkit-proposal[^\S\n]*\n([\s\S]*?)```/g;
7289
+ const Ur = /```brandkit-proposal[^\S\n]*\n([\s\S]*?)```/g;
7289
7290
  function Ss(n, t) {
7290
7291
  let e = n;
7291
7292
  for (const r of t.split(".")) {
@@ -7318,8 +7319,8 @@ function Hd(n) {
7318
7319
  if (!n.includes("```brandkit-proposal")) return null;
7319
7320
  const t = [];
7320
7321
  let e = 0, r = !1;
7321
- Fr.lastIndex = 0;
7322
- for (let i = Fr.exec(n); i; i = Fr.exec(n)) {
7322
+ Ur.lastIndex = 0;
7323
+ for (let i = Ur.exec(n); i; i = Ur.exec(n)) {
7323
7324
  const o = Ud(i[1] ?? "");
7324
7325
  if (!o) continue;
7325
7326
  r = !0;
@@ -8312,7 +8313,7 @@ const Of = {
8312
8313
  ]);
8313
8314
  };
8314
8315
  }
8315
- }), $r = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp", "image/gif"]), sp = 5 * 1024 * 1024, On = 4;
8316
+ }), Rr = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/webp", "image/gif"]), sp = 5 * 1024 * 1024, On = 4;
8316
8317
  function ip(n) {
8317
8318
  return new Promise((t, e) => {
8318
8319
  const r = new FileReader();
@@ -8321,11 +8322,11 @@ function ip(n) {
8321
8322
  }
8322
8323
  function ji(n) {
8323
8324
  var t;
8324
- return Array.from(((t = n.clipboardData) == null ? void 0 : t.items) ?? []).filter((e) => e.kind === "file" && $r.has(e.type)).map((e) => e.getAsFile()).filter((e) => !!e);
8325
+ return Array.from(((t = n.clipboardData) == null ? void 0 : t.items) ?? []).filter((e) => e.kind === "file" && Rr.has(e.type)).map((e) => e.getAsFile()).filter((e) => !!e);
8325
8326
  }
8326
8327
  function lp(n) {
8327
8328
  var t;
8328
- return Array.from(((t = n.dataTransfer) == null ? void 0 : t.files) ?? []).filter((e) => $r.has(e.type));
8329
+ return Array.from(((t = n.dataTransfer) == null ? void 0 : t.files) ?? []).filter((e) => Rr.has(e.type));
8329
8330
  }
8330
8331
  async function Fi(n, t, e = On) {
8331
8332
  const r = [];
@@ -8467,7 +8468,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
8467
8468
  R && _.value && R.scrollTo({ top: R.scrollHeight }), A = null;
8468
8469
  }));
8469
8470
  }
8470
- ), Tt(() => i.value.length, (R) => e.setComposerAttachmentCount(R), { immediate: !0 }), Sr(() => {
8471
+ ), Tt(() => i.value.length, (R) => e.setComposerAttachmentCount(R), { immediate: !0 }), Tr(() => {
8471
8472
  A !== null && cancelAnimationFrame(A), e.setComposerAttachmentCount(0);
8472
8473
  });
8473
8474
  function ne() {
@@ -8493,7 +8494,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
8493
8494
  function ve(R) {
8494
8495
  const O = R.target, V = Array.from(O.files ?? []);
8495
8496
  O.value = "";
8496
- const pe = V.filter((L) => $r.has(L.type));
8497
+ const pe = V.filter((L) => Rr.has(L.type));
8497
8498
  pe.length ? J(pe) : V.length && (o.value = "Only PNG, JPEG, WebP, or GIF images are supported.");
8498
8499
  }
8499
8500
  function ye(R) {
@@ -8941,7 +8942,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
8941
8942
  },
8942
8943
  emits: ["update"],
8943
8944
  setup(n, { emit: t }) {
8944
- const e = n, r = t, a = ae(!1), i = z(() => Ar(e.value)), o = z(() => e.presets.find((E) => xr(e.value, E.value)) ?? null), s = z(() => e.value.trim() || "transparent"), l = z(() => {
8945
+ const e = n, r = t, a = ae(!1), i = z(() => $r(e.value)), o = z(() => e.presets.find((E) => xr(e.value, E.value)) ?? null), s = z(() => e.value.trim() || "transparent"), l = z(() => {
8945
8946
  const E = e.value.trim();
8946
8947
  return E ? i.value ? i.value : E === "transparent" ? "transparent" : E : "none";
8947
8948
  }), d = z(() => !!e.value.trim() && !i.value), u = typeof window < "u" && "EyeDropper" in window;
@@ -9427,7 +9428,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
9427
9428
  },
9428
9429
  emits: ["change", "reset", "resetAll"],
9429
9430
  setup(n, { emit: t }) {
9430
- const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(_a(e.beforeValues, e.values))), s = z(() => !!e.element.canEditText && e.textValue !== e.beforeText), l = z(() => o.value.size + (s.value ? 1 : 0)), d = z(() => Ir(e.element)), u = z(() => zu(d.value)), k = z(() => {
9431
+ const e = n, r = t, a = z(() => e.presets.filter((I) => I.kind === "color")), i = z(() => e.presets.filter((I) => I.kind === "font")), o = z(() => new Set(xa(e.beforeValues, e.values))), s = z(() => !!e.element.canEditText && e.textValue !== e.beforeText), l = z(() => o.value.size + (s.value ? 1 : 0)), d = z(() => Cr(e.element)), u = z(() => zu(d.value)), k = z(() => {
9431
9432
  var _;
9432
9433
  if (d.value !== "media") return null;
9433
9434
  const I = e.element.attrs ?? {};
@@ -9444,7 +9445,7 @@ const up = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
9444
9445
  }
9445
9446
  function v(I) {
9446
9447
  const _ = e.beforeValues[I] ?? "";
9447
- return `Reset to ${(nn(I).control === "color" ? Ar(_) ?? _ : _) || "unset"}`;
9448
+ return `Reset to ${(nn(I).control === "color" ? $r(_) ?? _ : _) || "unset"}`;
9448
9449
  }
9449
9450
  function w(I) {
9450
9451
  return Bu(e.element, I) ? `${nn(I).label} — CSS ignores this on an inline element; set Display to block or inline-block first` : nn(I).label;
@@ -9732,9 +9733,9 @@ function ym() {
9732
9733
  takeControl: se
9733
9734
  };
9734
9735
  }
9735
- let Ur = null;
9736
+ let Hr = null;
9736
9737
  function Vi() {
9737
- return Ur || (Ur = ym()), Ur;
9738
+ return Hr || (Hr = ym()), Hr;
9738
9739
  }
9739
9740
  const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-white" }, bm = { class: "flex shrink-0 items-center gap-8 border-b border-fm-color-neutral-gray-100 px-12 py-8" }, vm = ["href"], km = {
9740
9741
  key: 0,
@@ -10098,7 +10099,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10098
10099
  S.value = "";
10099
10100
  const ie = p.value.find((Fe) => Fe.id === _);
10100
10101
  if (_ = null, !ie) return;
10101
- const we = ee.filter((Fe) => $r.has(Fe.type));
10102
+ const we = ee.filter((Fe) => Rr.has(Fe.type));
10102
10103
  we.length ? Lt(ie, we) : ee.length && (w.value = "Only PNG, JPEG, WebP, or GIF images are supported.");
10103
10104
  }
10104
10105
  function on() {
@@ -10236,7 +10237,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10236
10237
  }), window.addEventListener("message", Mt), window.addEventListener("resize", ze), Dn(() => {
10237
10238
  ze(), h.value && typeof ResizeObserver < "u" && (F = new ResizeObserver(ze), F.observe(h.value));
10238
10239
  });
10239
- }), Sr(() => {
10240
+ }), Tr(() => {
10240
10241
  Te({ type: "annotation-mode", enabled: !1 }), Te({ type: "annotation-clear" }), a.connect(null), He.setExecutor(null), He.detach();
10241
10242
  for (const y of je.values())
10242
10243
  window.clearTimeout(y.timer), y.reject(new Error("the preview panel was closed"));
@@ -10377,7 +10378,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10377
10378
  mr(m("textarea", {
10378
10379
  "onUpdate:modelValue": S[4] || (S[4] = (Ce) => J.value.feedback = Ce),
10379
10380
  rows: "1",
10380
- placeholder: fe.value && j(Ir)(fe.value) === "media" ? "Describe the change, or paste/drop the replacement image…" : "Describe what should change here…",
10381
+ placeholder: fe.value && j(Cr)(fe.value) === "media" ? "Describe the change, or paste/drop the replacement image…" : "Describe what should change here…",
10381
10382
  class: "max-h-[124px] w-full resize-none overflow-y-auto rounded-md border border-fm-color-neutral-gray-200 px-[9px] pb-[29px] pt-[7px] fm-typo-en-body-sm-400 outline-none focus:border-fm-color-primary",
10382
10383
  onInput: Jt,
10383
10384
  onPaste: S[5] || (S[5] = (Ce) => Ct(Ce, J.value)),
@@ -10745,13 +10746,13 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10745
10746
  return `${e}=${s}`;
10746
10747
  }
10747
10748
  }
10748
- const i = ry(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Rr({
10749
+ const i = ry(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Nr({
10749
10750
  allowReserved: n,
10750
10751
  name: e,
10751
10752
  value: s
10752
10753
  })).join(i);
10753
10754
  return r === "label" || r === "matrix" ? i + o : o;
10754
- }, Rr = ({ allowReserved: n, name: t, value: e }) => {
10755
+ }, Nr = ({ allowReserved: n, name: t, value: e }) => {
10755
10756
  if (e == null)
10756
10757
  return "";
10757
10758
  if (typeof e == "object")
@@ -10777,7 +10778,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10777
10778
  return d;
10778
10779
  }
10779
10780
  }
10780
- const o = sy(r), s = Object.entries(a).map(([l, d]) => Rr({
10781
+ const o = sy(r), s = Object.entries(a).map(([l, d]) => Nr({
10781
10782
  allowReserved: n,
10782
10783
  name: r === "deepObject" ? `${e}[${l}]` : l,
10783
10784
  value: d
@@ -10808,7 +10809,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10808
10809
  continue;
10809
10810
  }
10810
10811
  if (s === "matrix") {
10811
- e = e.replace(a, `;${Rr({
10812
+ e = e.replace(a, `;${Nr({
10812
10813
  name: o,
10813
10814
  value: l
10814
10815
  })}`);
@@ -10851,7 +10852,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10851
10852
  });
10852
10853
  l && i.push(l);
10853
10854
  } else {
10854
- const l = Rr({
10855
+ const l = Nr({
10855
10856
  allowReserved: n,
10856
10857
  name: o,
10857
10858
  value: s
@@ -10925,7 +10926,7 @@ const gm = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
10925
10926
  }
10926
10927
  return t;
10927
10928
  };
10928
- let Hr = class {
10929
+ let Wr = class {
10929
10930
  constructor() {
10930
10931
  B(this, "_fns");
10931
10932
  this._fns = [];
@@ -10953,9 +10954,9 @@ let Hr = class {
10953
10954
  }
10954
10955
  };
10955
10956
  const fy = () => ({
10956
- error: new Hr(),
10957
- request: new Hr(),
10958
- response: new Hr()
10957
+ error: new Wr(),
10958
+ request: new Wr(),
10959
+ response: new Wr()
10959
10960
  }), py = Yi({
10960
10961
  allowReserved: !1,
10961
10962
  array: {
@@ -12132,13 +12133,13 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
12132
12133
  return `${e}=${s}`;
12133
12134
  }
12134
12135
  }
12135
- const i = Fy(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Nr({
12136
+ const i = Fy(r), o = a.map((s) => r === "label" || r === "simple" ? n ? s : encodeURIComponent(s) : Dr({
12136
12137
  allowReserved: n,
12137
12138
  name: e,
12138
12139
  value: s
12139
12140
  })).join(i);
12140
12141
  return r === "label" || r === "matrix" ? i + o : o;
12141
- }, Nr = ({ allowReserved: n, name: t, value: e }) => {
12142
+ }, Dr = ({ allowReserved: n, name: t, value: e }) => {
12142
12143
  if (e == null)
12143
12144
  return "";
12144
12145
  if (typeof e == "object")
@@ -12164,7 +12165,7 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
12164
12165
  return d;
12165
12166
  }
12166
12167
  }
12167
- const o = Hy(r), s = Object.entries(a).map(([l, d]) => Nr({
12168
+ const o = Hy(r), s = Object.entries(a).map(([l, d]) => Dr({
12168
12169
  allowReserved: n,
12169
12170
  name: r === "deepObject" ? `${e}[${l}]` : l,
12170
12171
  value: d
@@ -12195,7 +12196,7 @@ const jy = ({ onRequest: n, onSseError: t, onSseEvent: e, responseTransformer: r
12195
12196
  continue;
12196
12197
  }
12197
12198
  if (s === "matrix") {
12198
- e = e.replace(a, `;${Nr({
12199
+ e = e.replace(a, `;${Dr({
12199
12200
  name: o,
12200
12201
  value: l
12201
12202
  })}`);
@@ -12254,7 +12255,7 @@ const Ky = async (n, t) => {
12254
12255
  });
12255
12256
  l && a.push(l);
12256
12257
  } else {
12257
- const l = Nr({
12258
+ const l = Dr({
12258
12259
  allowReserved: s.allowReserved,
12259
12260
  name: i,
12260
12261
  value: o
@@ -12333,7 +12334,7 @@ const Ky = async (n, t) => {
12333
12334
  }
12334
12335
  return t;
12335
12336
  };
12336
- class Wr {
12337
+ class Gr {
12337
12338
  constructor() {
12338
12339
  B(this, "fns", []);
12339
12340
  }
@@ -12360,9 +12361,9 @@ class Wr {
12360
12361
  }
12361
12362
  }
12362
12363
  const eg = () => ({
12363
- error: new Wr(),
12364
- request: new Wr(),
12365
- response: new Wr()
12364
+ error: new Gr(),
12365
+ request: new Gr(),
12366
+ response: new Gr()
12366
12367
  }), tg = al({
12367
12368
  allowReserved: !1,
12368
12369
  array: {
@@ -16975,7 +16976,7 @@ class vb extends ce {
16975
16976
  return this._projectCopy ?? (this._projectCopy = new bb({ client: this.client }));
16976
16977
  }
16977
16978
  }
16978
- const _r = class _r extends ce {
16979
+ const Sr = class Sr extends ce {
16979
16980
  constructor(e) {
16980
16981
  super(e);
16981
16982
  B(this, "_auth");
@@ -17005,7 +17006,7 @@ const _r = class _r extends ce {
17005
17006
  B(this, "_sync");
17006
17007
  B(this, "_tui");
17007
17008
  B(this, "_v2");
17008
- _r.__registry.set(this, e == null ? void 0 : e.key);
17009
+ Sr.__registry.set(this, e == null ? void 0 : e.key);
17009
17010
  }
17010
17011
  get auth() {
17011
17012
  return this._auth ?? (this._auth = new og({ client: this.client }));
@@ -17089,8 +17090,8 @@ const _r = class _r extends ce {
17089
17090
  return this._v2 ?? (this._v2 = new vb({ client: this.client }));
17090
17091
  }
17091
17092
  };
17092
- B(_r, "__registry", new lg());
17093
- let la = _r;
17093
+ B(Sr, "__registry", new lg());
17094
+ let la = Sr;
17094
17095
  function kb(n, t, e) {
17095
17096
  if (n)
17096
17097
  return t && (n === t || e && n === e(t)) ? t : n;
@@ -17817,7 +17818,7 @@ function Pb(n) {
17817
17818
  t = Date.now();
17818
17819
  for (const o of qs) window.addEventListener(o, a, { passive: !0 });
17819
17820
  r = window.setInterval(i, Db);
17820
- }), Sr(() => {
17821
+ }), Tr(() => {
17821
17822
  for (const o of qs) window.removeEventListener(o, a);
17822
17823
  r !== null && window.clearInterval(r);
17823
17824
  });
@@ -17863,10 +17864,10 @@ function Lb(n) {
17863
17864
  }
17864
17865
  return { start: o, cancel: a, dispose: i };
17865
17866
  }
17866
- function Gr(n) {
17867
+ function Vr(n) {
17867
17868
  return n === "active" ? "success" : n === "needs_attention" ? "warning" : "neutral";
17868
17869
  }
17869
- function Vr(n) {
17870
+ function Kr(n) {
17870
17871
  return n === "active" ? "Active" : n === "needs_attention" ? "Needs attention" : "Archived";
17871
17872
  }
17872
17873
  function qb(n) {
@@ -17912,7 +17913,7 @@ function Hb(n) {
17912
17913
  return n === "ready" ? "success" : n === "error" ? "error" : n === "idle" ? "neutral" : "warning";
17913
17914
  }
17914
17915
  function Wb() {
17915
- const n = ae(xn() || ra), t = ae(null), e = ae([]), r = ae([]), a = ae(null), i = ae([]), o = ae(!1), s = ae(!1), l = ae("Project ready"), d = ae(null), u = ae(null), k = z(() => r.value[0] ?? null), h = z(() => {
17916
+ const n = ae(xn() || aa), t = ae(null), e = ae([]), r = ae([]), a = ae(null), i = ae([]), o = ae(!1), s = ae(!1), l = ae("Project ready"), d = ae(null), u = ae(null), k = z(() => r.value[0] ?? null), h = z(() => {
17916
17917
  var L;
17917
17918
  return ((L = t.value) == null ? void 0 : L.provisioningStatus) === "ready";
17918
17919
  }), E = z(() => {
@@ -17921,7 +17922,7 @@ function Wb() {
17921
17922
  }), p = Lb({ intervalMs: 3e3, maxAttempts: 40 });
17922
17923
  kl(p.dispose);
17923
17924
  function v() {
17924
- n.value = xn() || n.value || ra;
17925
+ n.value = xn() || n.value || aa;
17925
17926
  }
17926
17927
  async function w() {
17927
17928
  v();
@@ -17934,7 +17935,7 @@ function Wb() {
17934
17935
  const L = await st(_e.provision(n.value), {
17935
17936
  method: "POST",
17936
17937
  body: JSON.stringify({
17937
- businessSlug: aa(),
17938
+ businessSlug: _r(),
17938
17939
  businessName: yd(),
17939
17940
  country: Oi()
17940
17941
  }),
@@ -17994,7 +17995,7 @@ function Wb() {
17994
17995
  {
17995
17996
  method: "POST",
17996
17997
  body: JSON.stringify({
17997
- businessSlug: aa(),
17998
+ businessSlug: _r(),
17998
17999
  archiveCodeAction: L.archiveCodeAction
17999
18000
  }),
18000
18001
  // Creating a workspace archives the previous one, including a final
@@ -18281,10 +18282,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18281
18282
  }, Ik = { class: "flex shrink-0 items-center gap-4" }, Ak = {
18282
18283
  key: 0,
18283
18284
  class: "flex flex-col items-center gap-8 rounded-lg border border-dashed border-fm-color-neutral-gray-200 p-24 text-center"
18284
- }, zs = "mpv2:sidebar-collapsed", Kr = "mpv2:chat-column-width", Ck = 440, cr = 320, Zr = 720, $k = 360, Rk = 30 * 60 * 1e3, Nk = /* @__PURE__ */ ut({
18285
+ }, zs = "mpv2:sidebar-collapsed", Zr = "mpv2:chat-column-width", Ck = 440, cr = 320, Yr = 720, $k = 360, Rk = 30 * 60 * 1e3, Nk = /* @__PURE__ */ ut({
18285
18286
  __name: "ControlPlaneView",
18286
18287
  setup(n) {
18287
- const t = oa(), e = Nb(), r = Wb(), a = Bs(), i = ae("workspace"), o = ae(!1), s = ae(Gi(zs, !1)), l = ae(!1), d = ae(null), u = ae(um(Kr, Ck)), k = ae(!1);
18288
+ const t = Er(), e = Nb(), r = Wb(), a = Bs(), i = ae("workspace"), o = ae(!1), s = ae(Gi(zs, !1)), l = ae(!1), d = ae(null), u = ae(um(Zr, Ck)), k = ae(!1);
18288
18289
  let h = null, E = null, p = null, v = "", w = "", I = null;
18289
18290
  const _ = z(() => r.sessions.find((c) => c.status === "active") ?? null), A = ae(!1), C = ae(!1), N = ae(!1), F = ae(!1), se = ae(!1), H = z(
18290
18291
  () => r.sessions.find((c) => c.id === e.workspaceSessionId) ?? _.value
@@ -18324,14 +18325,14 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18324
18325
  function qe() {
18325
18326
  var b;
18326
18327
  const c = ((b = d.value) == null ? void 0 : b.clientWidth) ?? 0;
18327
- return c ? Math.max(cr, Math.min(Zr, c - $k)) : Zr;
18328
+ return c ? Math.max(cr, Math.min(Yr, c - $k)) : Yr;
18328
18329
  }
18329
18330
  function ze(c) {
18330
18331
  return Math.round(Math.min(qe(), Math.max(cr, c)));
18331
18332
  }
18332
18333
  function He(c, b = !1) {
18333
18334
  const P = ze(c);
18334
- u.value !== P && (u.value = P), b && fr(Kr, String(P));
18335
+ u.value !== P && (u.value = P), b && fr(Zr, String(P));
18335
18336
  }
18336
18337
  function mt() {
18337
18338
  s.value = !s.value, fr(zs, s.value ? "1" : "0"), requestAnimationFrame(() => He(u.value));
@@ -18353,7 +18354,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18353
18354
  E && He(E.startWidth + c.clientX - E.startX);
18354
18355
  }
18355
18356
  function Te() {
18356
- E && (E = null, k.value = !1, document.body.style.cursor = v, document.body.style.userSelect = w, fr(Kr, String(u.value)), window.removeEventListener("pointermove", dt), window.removeEventListener("pointerup", Te), window.removeEventListener("pointercancel", Te));
18357
+ E && (E = null, k.value = !1, document.body.style.cursor = v, document.body.style.userSelect = w, fr(Zr, String(u.value)), window.removeEventListener("pointermove", dt), window.removeEventListener("pointerup", Te), window.removeEventListener("pointercancel", Te));
18357
18358
  }
18358
18359
  function G(c) {
18359
18360
  c.key === "ArrowLeft" || c.key === "ArrowRight" ? (c.preventDefault(), He(u.value + (c.key === "ArrowRight" ? 32 : -32), !0)) : c.key === "Home" ? (c.preventDefault(), He(cr, !0)) : c.key === "End" && (c.preventDefault(), He(qe(), !0));
@@ -18404,7 +18405,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18404
18405
  typeof window < "u" && (p = window.matchMedia("(max-width: 960px)"), Et(), p.addEventListener("change", Et)), yt(), I = window.setInterval(() => {
18405
18406
  document.visibilityState === "visible" && Y();
18406
18407
  }, 15e3);
18407
- }), Sr(() => {
18408
+ }), Tr(() => {
18408
18409
  Te(), h == null || h.disconnect(), p == null || p.removeEventListener("change", Et), I !== null && window.clearInterval(I), e.reset();
18409
18410
  }), Tt(
18410
18411
  () => t.currentBusiness.value,
@@ -18778,10 +18779,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18778
18779
  m("span", fv, M(ne.value), 1),
18779
18780
  H.value ? (g(), Ie(Ot, {
18780
18781
  key: 0,
18781
- variant: j(Gr)(H.value.status)
18782
+ variant: j(Vr)(H.value.status)
18782
18783
  }, {
18783
18784
  default: kt(() => [
18784
- Ze(M(j(Vr)(H.value.status)), 1)
18785
+ Ze(M(j(Kr)(H.value.status)), 1)
18785
18786
  ]),
18786
18787
  _: 1
18787
18788
  }, 8, ["variant"])) : U("", !0),
@@ -18871,10 +18872,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18871
18872
  m("div", kv, M(nt(Z.updated_at)), 1)
18872
18873
  ]),
18873
18874
  X(Ot, {
18874
- variant: j(Gr)(Z.status)
18875
+ variant: j(Vr)(Z.status)
18875
18876
  }, {
18876
18877
  default: kt(() => [
18877
- Ze(M(j(Vr)(Z.status)), 1)
18878
+ Ze(M(j(Kr)(Z.status)), 1)
18878
18879
  ]),
18879
18880
  _: 2
18880
18881
  }, 1032, ["variant"])
@@ -18985,7 +18986,7 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
18985
18986
  tabindex: "0",
18986
18987
  "aria-orientation": "vertical",
18987
18988
  "aria-valuemin": cr,
18988
- "aria-valuemax": Zr,
18989
+ "aria-valuemax": Yr,
18989
18990
  "aria-valuenow": u.value,
18990
18991
  class: "workspace__resizer group relative z-30 flex w-[9px] shrink-0 cursor-col-resize items-stretch justify-center bg-fm-color-neutral-white outline-none",
18991
18992
  title: "Resize workspace preview",
@@ -19237,10 +19238,10 @@ const Gb = ["aria-label", "title"], Vb = { class: "flex flex-col gap-[4px]" }, K
19237
19238
  ]),
19238
19239
  m("div", Ik, [
19239
19240
  X(Ot, {
19240
- variant: j(Gr)(Z.status)
19241
+ variant: j(Vr)(Z.status)
19241
19242
  }, {
19242
19243
  default: kt(() => [
19243
- Ze(M(j(Vr)(Z.status)), 1)
19244
+ Ze(M(j(Kr)(Z.status)), 1)
19244
19245
  ]),
19245
19246
  _: 2
19246
19247
  }, 1032, ["variant"]),
package/dist/app.js CHANGED
@@ -3,7 +3,7 @@ const n = [
3
3
  {
4
4
  path: "/",
5
5
  name: "miniprogram-v2-control",
6
- component: () => import("./ControlPlaneView-WgFqpKut.js")
6
+ component: () => import("./ControlPlaneView-CbMf5uxY.js")
7
7
  },
8
8
  {
9
9
  path: "/:pathMatch(.*)*",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.1.0-dev.43",
3
+ "version": "0.1.0-dev.45",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-miniprogram-v2",
3
- "version": "0.1.0-dev.43",
3
+ "version": "0.1.0-dev.45",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",