miqro 8.0.6 → 8.0.8

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.
@@ -23,7 +23,7 @@ export class LogProvider {
23
23
  let remoteAddress = "";
24
24
  try {
25
25
  const url = newURL(req.url ? req.url : "/");
26
- query = url.searchParams.toString();
26
+ query = ""; //url.searchParams.toString();
27
27
  path = normalizePath(url.pathname); // normalized path
28
28
  method = req.method ? req.method.toUpperCase() : "GET";
29
29
  remoteAddress = req.socket.remoteAddress;
package/build/lib.cjs CHANGED
@@ -5,7 +5,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __commonJS = (cb, mod) => function __require() {
8
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
8
+ try {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ } catch (e) {
11
+ throw mod = 0, e;
12
+ }
9
13
  };
10
14
  var __export = (target, all) => {
11
15
  for (var name in all)
@@ -8363,7 +8367,7 @@ var LogProvider = class {
8363
8367
  let remoteAddress = "";
8364
8368
  try {
8365
8369
  const url = newURL2(req.url ? req.url : "/");
8366
- query = url.searchParams.toString();
8370
+ query = "";
8367
8371
  path = normalizePath2(url.pathname);
8368
8372
  method = req.method ? req.method.toUpperCase() : "GET";
8369
8373
  remoteAddress = req.socket.remoteAddress;
@@ -8686,14 +8690,21 @@ function getRoutes(prePath, defaultPath, apiOptions) {
8686
8690
  }
8687
8691
 
8688
8692
  // node_modules/marked/lib/marked.esm.js
8689
- function z() {
8693
+ function M() {
8690
8694
  return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
8691
8695
  }
8692
- var T = z();
8693
- function G(l3) {
8696
+ var T = M();
8697
+ function N(l3) {
8694
8698
  T = l3;
8695
8699
  }
8696
8700
  var _ = { exec: () => null };
8701
+ function E(l3) {
8702
+ let e = [];
8703
+ return (t) => {
8704
+ let n = Math.max(0, Math.min(3, t - 1)), s = e[n];
8705
+ return s || (s = l3(n), e[n] = s), s;
8706
+ };
8707
+ }
8697
8708
  function d(l3, e = "") {
8698
8709
  let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (s, r) => {
8699
8710
  let i = typeof r == "string" ? r : r.source;
@@ -8701,85 +8712,85 @@ function d(l3, e = "") {
8701
8712
  }, getRegex: () => new RegExp(t, e) };
8702
8713
  return n;
8703
8714
  }
8704
- var Re = ((l3 = "") => {
8715
+ var Te = ((l3 = "") => {
8705
8716
  try {
8706
8717
  return !!new RegExp("(?<=1)(?<!1)" + l3);
8707
8718
  } catch {
8708
8719
  return false;
8709
8720
  }
8710
8721
  })();
8711
- var m = { 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: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}>`) };
8712
- var Te = /^(?:[ \t]*(?:\n|$))+/;
8713
- var Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
8714
- var we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
8715
- var I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
8716
- var ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
8717
- var Q = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
8718
- var ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
8719
- var oe = d(ie).replace(/bull/g, Q).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
8720
- var Pe = d(ie).replace(/bull/g, Q).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
8721
- var j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
8722
- var Se = /^[^\n]+/;
8723
- var F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
8724
- var $e = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
8725
- var Le = d(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Q).getRegex();
8726
- var v = "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";
8727
- var U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
8728
- var _e = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
8729
- var ae = d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
8730
- var Me = d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex();
8731
- var K = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: I, html: _e, lheading: oe, list: Le, newline: Te, paragraph: ae, table: _, text: Se };
8732
- var re = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
8733
- var ze = { ...K, lheading: Pe, table: re, paragraph: d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() };
8734
- var Ee = { ...K, html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).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: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
8735
- ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
8722
+ var m = { 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: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: E((l3) => new RegExp(`^ {0,${l3}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: E((l3) => new RegExp(`^ {0,${l3}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: E((l3) => new RegExp(`^ {0,${l3}}(?:\`\`\`|~~~)`)), headingBeginRegex: E((l3) => new RegExp(`^ {0,${l3}}#`)), htmlBeginRegex: E((l3) => new RegExp(`^ {0,${l3}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: E((l3) => new RegExp(`^ {0,${l3}}>`)) };
8723
+ var Oe = /^(?:[ \t]*(?:\n|$))+/;
8724
+ var we = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
8725
+ var ye = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
8726
+ var B = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
8727
+ var Pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
8728
+ var j = / {0,3}(?:[*+-]|\d{1,9}[.)])/;
8729
+ var oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
8730
+ var ae = d(oe).replace(/bull/g, j).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
8731
+ var Se = d(oe).replace(/bull/g, j).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}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
8732
+ var F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
8733
+ var $e = /^[^\n]+/;
8734
+ var U = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
8735
+ var Le = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", U).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
8736
+ var _e = d(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, j).getRegex();
8737
+ var H = "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";
8738
+ var K = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
8739
+ var ze = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", K).replace("tag", H).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
8740
+ var le = d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex();
8741
+ var Me = d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", le).getRegex();
8742
+ var W = { blockquote: Me, code: we, def: Le, fences: ye, heading: Pe, hr: B, html: ze, lheading: ae, list: _e, newline: Oe, paragraph: le, table: _, text: $e };
8743
+ var se = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex();
8744
+ var Ee = { ...W, lheading: Se, table: se, paragraph: d(F).replace("hr", B).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", H).getRegex() };
8745
+ var Ie = { ...W, html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", K).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: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d(F).replace("hr", B).replace("heading", ` *#{1,6} *[^
8746
+ ]`).replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() };
8736
8747
  var Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
8737
8748
  var Ce = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
8738
- var le = /^( {2,}|\\)\n(?!\s*$)/;
8739
- var Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
8740
- var E = /[\p{P}\p{S}]/u;
8741
- var H = /[\s\p{P}\p{S}]/u;
8742
- var W = /[^\s\p{P}\p{S}]/u;
8743
- var Be = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, H).getRegex();
8744
- var ue = /(?!~)[\p{P}\p{S}]/u;
8745
- var De = /(?!~)[\s\p{P}\p{S}]/u;
8746
- var qe = /(?:[^\s\p{P}\p{S}]|~)/u;
8747
- var ve = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
8748
- var pe = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/;
8749
- var He = d(pe, "u").replace(/punct/g, E).getRegex();
8750
- var Ze = d(pe, "u").replace(/punct/g, ue).getRegex();
8751
- var ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
8752
- var Ge = d(ce, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, E).getRegex();
8753
- var Ne = d(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, ue).getRegex();
8754
- var Qe = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, E).getRegex();
8755
- var je = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, E).getRegex();
8756
- var Fe = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
8757
- var Ue = d(Fe, "gu").replace(/notPunctSpace/g, W).replace(/punctSpace/g, H).replace(/punct/g, E).getRegex();
8758
- var Ke = d(/\\(punct)/, "gu").replace(/punct/g, E).getRegex();
8759
- var We = d(/^<(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();
8760
- var Xe = d(U).replace("(?:-->|$)", "-->").getRegex();
8761
- var Je = d("^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", Xe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
8762
- var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/;
8763
- var Ve = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
8764
- var he = d(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex();
8765
- var ke = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex();
8766
- var Ye = d("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex();
8767
- var se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
8768
- var X = { _backpedal: _, anyPunctuation: Ke, autolink: We, blockSkip: ve, br: le, code: Ce, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: He, emStrongRDelimAst: Ge, emStrongRDelimUnd: Qe, escape: Ae, link: Ve, nolink: ke, punctuation: Be, reflink: he, reflinkSearch: Ye, tag: Je, text: Ie, url: _ };
8769
- var et = { ...X, link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() };
8770
- var N = { ...X, emStrongRDelimAst: Ne, emStrongLDelim: Ze, delLDelim: je, delRDelim: Ue, url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).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: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() };
8771
- var tt = { ...N, br: d(le).replace("{2,}", "*").getRegex(), text: d(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
8772
- var B = { normal: K, gfm: ze, pedantic: Ee };
8773
- var A = { normal: X, gfm: N, breaks: tt, pedantic: et };
8774
- var nt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
8775
- var de = (l3) => nt[l3];
8749
+ var ue = /^( {2,}|\\)\n(?!\s*$)/;
8750
+ var Be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
8751
+ var I = /[\p{P}\p{S}]/u;
8752
+ var Z = /[\s\p{P}\p{S}]/u;
8753
+ var X = /[^\s\p{P}\p{S}]/u;
8754
+ var De = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Z).getRegex();
8755
+ var pe = /(?!~)[\p{P}\p{S}]/u;
8756
+ var qe = /(?!~)[\s\p{P}\p{S}]/u;
8757
+ var ve = /(?:[^\s\p{P}\p{S}]|~)/u;
8758
+ var He = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Te ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
8759
+ var ce = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/;
8760
+ var Ze = d(ce, "u").replace(/punct/g, I).getRegex();
8761
+ var Ge = d(ce, "u").replace(/punct/g, pe).getRegex();
8762
+ var he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
8763
+ var Ne = d(he, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
8764
+ var Qe = d(he, "gu").replace(/notPunctSpace/g, ve).replace(/punctSpace/g, qe).replace(/punct/g, pe).getRegex();
8765
+ var je = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
8766
+ var Fe = d(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, I).getRegex();
8767
+ var Ue = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)";
8768
+ var Ke = d(Ue, "gu").replace(/notPunctSpace/g, X).replace(/punctSpace/g, Z).replace(/punct/g, I).getRegex();
8769
+ var We = d(/\\(punct)/, "gu").replace(/punct/g, I).getRegex();
8770
+ var Xe = d(/^<(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();
8771
+ var Je = d(K).replace("(?:-->|$)", "-->").getRegex();
8772
+ var Ve = d("^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", Je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
8773
+ var v = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/;
8774
+ var Ye = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", v).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
8775
+ var ke = d(/^!?\[(label)\]\[(ref)\]/).replace("label", v).replace("ref", U).getRegex();
8776
+ var de = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", U).getRegex();
8777
+ var et = d("reflink|nolink(?!\\()", "g").replace("reflink", ke).replace("nolink", de).getRegex();
8778
+ var ie = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
8779
+ var J = { _backpedal: _, anyPunctuation: We, autolink: Xe, blockSkip: He, br: ue, code: Ce, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze, emStrongRDelimAst: Ne, emStrongRDelimUnd: je, escape: Ae, link: Ye, nolink: de, punctuation: De, reflink: ke, reflinkSearch: et, tag: Ve, text: Be, url: _ };
8780
+ var tt = { ...J, link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", v).getRegex(), reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", v).getRegex() };
8781
+ var Q = { ...J, emStrongRDelimAst: Qe, emStrongLDelim: Ge, delLDelim: Fe, delRDelim: Ke, url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ie).getRegex() };
8782
+ var nt = { ...Q, br: d(ue).replace("{2,}", "*").getRegex(), text: d(Q.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() };
8783
+ var D = { normal: W, gfm: Ee, pedantic: Ie };
8784
+ var A = { normal: J, gfm: Q, breaks: nt, pedantic: tt };
8785
+ var rt = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" };
8786
+ var ge = (l3) => rt[l3];
8776
8787
  function O(l3, e) {
8777
8788
  if (e) {
8778
- if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, de);
8779
- } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, de);
8789
+ if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
8790
+ } else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ge);
8780
8791
  return l3;
8781
8792
  }
8782
- function J(l3) {
8793
+ function V(l3) {
8783
8794
  try {
8784
8795
  l3 = encodeURI(l3).replace(m.percentDecode, "%");
8785
8796
  } catch {
@@ -8787,7 +8798,7 @@ function J(l3) {
8787
8798
  }
8788
8799
  return l3;
8789
8800
  }
8790
- function V(l3, e) {
8801
+ function Y(l3, e) {
8791
8802
  let t = l3.replace(m.findPipe, (r, i, o) => {
8792
8803
  let u = false, a = i;
8793
8804
  for (; --a >= 0 && o[a] === "\\"; ) u = !u;
@@ -8810,14 +8821,14 @@ function $(l3, e, t) {
8810
8821
  }
8811
8822
  return l3.slice(0, n - s);
8812
8823
  }
8813
- function Y(l3) {
8824
+ function ee(l3) {
8814
8825
  let e = l3.split(`
8815
8826
  `), t = e.length - 1;
8816
8827
  for (; t >= 0 && m.blankLine.test(e[t]); ) t--;
8817
8828
  return e.length - t <= 2 ? l3 : e.slice(0, t + 1).join(`
8818
8829
  `);
8819
8830
  }
8820
- function ge(l3, e) {
8831
+ function fe(l3, e) {
8821
8832
  if (l3.indexOf(e[1]) === -1) return -1;
8822
8833
  let t = 0;
8823
8834
  for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
@@ -8825,7 +8836,7 @@ function ge(l3, e) {
8825
8836
  else if (l3[n] === e[1] && (t--, t < 0)) return n;
8826
8837
  return t > 0 ? -2 : -1;
8827
8838
  }
8828
- function fe(l3, e = 0) {
8839
+ function me(l3, e = 0) {
8829
8840
  let t = e, n = "";
8830
8841
  for (let s of l3) if (s === " ") {
8831
8842
  let r = 4 - t % 4;
@@ -8833,13 +8844,13 @@ function fe(l3, e = 0) {
8833
8844
  } else n += s, t++;
8834
8845
  return n;
8835
8846
  }
8836
- function me(l3, e, t, n, s) {
8847
+ function xe(l3, e, t, n, s) {
8837
8848
  let r = e.href, i = e.title || null, o = l3[1].replace(s.other.outputLinkReplace, "$1");
8838
8849
  n.state.inLink = true;
8839
8850
  let u = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: r, title: i, text: o, tokens: n.inlineTokens(o) };
8840
8851
  return n.state.inLink = false, u;
8841
8852
  }
8842
- function rt(l3, e, t) {
8853
+ function st(l3, e, t) {
8843
8854
  let n = l3.match(t.other.indentCodeCompensation);
8844
8855
  if (n === null) return e;
8845
8856
  let s = n[1];
@@ -8866,14 +8877,14 @@ var w = class {
8866
8877
  code(e) {
8867
8878
  let t = this.rules.block.code.exec(e);
8868
8879
  if (t) {
8869
- let n = this.options.pedantic ? t[0] : Y(t[0]), s = n.replace(this.rules.other.codeRemoveIndent, "");
8880
+ let n = this.options.pedantic ? t[0] : ee(t[0]), s = n.replace(this.rules.other.codeRemoveIndent, "");
8870
8881
  return { type: "code", raw: n, codeBlockStyle: "indented", text: s };
8871
8882
  }
8872
8883
  }
8873
8884
  fences(e) {
8874
8885
  let t = this.rules.block.fences.exec(e);
8875
8886
  if (t) {
8876
- let n = t[0], s = rt(n, t[3] || "", this.rules);
8887
+ let n = t[0], s = st(n, t[3] || "", this.rules);
8877
8888
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: s };
8878
8889
  }
8879
8890
  }
@@ -8944,25 +8955,25 @@ ${p}` : p;
8944
8955
  let a = false, c = "", p = "";
8945
8956
  if (!(t = i.exec(e)) || this.rules.block.hr.test(e)) break;
8946
8957
  c = t[0], e = e.substring(c.length);
8947
- let k = fe(t[2].split(`
8958
+ let k = me(t[2].split(`
8948
8959
  `, 1)[0], t[1].length), h = e.split(`
8949
8960
  `, 1)[0], R = !k.trim(), f = 0;
8950
8961
  if (this.options.pedantic ? (f = 2, p = k.trimStart()) : R ? f = t[1].length + 1 : (f = k.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, p = k.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (c += h + `
8951
8962
  `, e = e.substring(h.length + 1), a = true), !a) {
8952
- let S = this.rules.other.nextBulletRegex(f), ee = this.rules.other.hrRegex(f), te = this.rules.other.fencesBeginRegex(f), ne = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
8963
+ let S = this.rules.other.nextBulletRegex(f), te = this.rules.other.hrRegex(f), ne = this.rules.other.fencesBeginRegex(f), re = this.rules.other.headingBeginRegex(f), be = this.rules.other.htmlBeginRegex(f), Re = this.rules.other.blockquoteBeginRegex(f);
8953
8964
  for (; e; ) {
8954
- let Z = e.split(`
8965
+ let G = e.split(`
8955
8966
  `, 1)[0], C;
8956
- if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), C = h) : C = h.replace(this.rules.other.tabCharGlobal, " "), te.test(h) || ne.test(h) || xe.test(h) || be.test(h) || S.test(h) || ee.test(h)) break;
8967
+ if (h = G, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), C = h) : C = h.replace(this.rules.other.tabCharGlobal, " "), ne.test(h) || re.test(h) || be.test(h) || Re.test(h) || S.test(h) || te.test(h)) break;
8957
8968
  if (C.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) p += `
8958
8969
  ` + C.slice(f);
8959
8970
  else {
8960
- if (R || k.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(k) || ne.test(k) || ee.test(k)) break;
8971
+ if (R || k.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ne.test(k) || re.test(k) || te.test(k)) break;
8961
8972
  p += `
8962
8973
  ` + h;
8963
8974
  }
8964
- R = !h.trim(), c += Z + `
8965
- `, e = e.substring(Z.length + 1), k = C.slice(f);
8975
+ R = !h.trim(), c += G + `
8976
+ `, e = e.substring(G.length + 1), k = C.slice(f);
8966
8977
  }
8967
8978
  }
8968
8979
  r.loose || (o ? r.loose = true : this.rules.other.doubleBlankLine.test(c) && (o = true)), r.items.push({ type: "list_item", raw: c, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: false, text: p, tokens: [] }), r.raw += c;
@@ -9001,7 +9012,7 @@ ${p}` : p;
9001
9012
  html(e) {
9002
9013
  let t = this.rules.block.html.exec(e);
9003
9014
  if (t) {
9004
- let n = Y(t[0]);
9015
+ let n = ee(t[0]);
9005
9016
  return { type: "html", block: true, raw: n, pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: n };
9006
9017
  }
9007
9018
  }
@@ -9016,13 +9027,13 @@ ${p}` : p;
9016
9027
  table(e) {
9017
9028
  let t = this.rules.block.table.exec(e);
9018
9029
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
9019
- let n = V(t[1]), s = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
9030
+ let n = Y(t[1]), s = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
9020
9031
  `) : [], i = { type: "table", raw: $(t[0], `
9021
9032
  `), header: [], align: [], rows: [] };
9022
9033
  if (n.length === s.length) {
9023
9034
  for (let o of s) this.rules.other.tableAlignRight.test(o) ? i.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? i.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? i.align.push("left") : i.align.push(null);
9024
9035
  for (let o = 0; o < n.length; o++) i.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: i.align[o] });
9025
- for (let o of r) i.rows.push(V(o, i.header.length).map((u, a) => ({ text: u, tokens: this.lexer.inline(u), header: false, align: i.align[a] })));
9036
+ for (let o of r) i.rows.push(Y(o, i.header.length).map((u, a) => ({ text: u, tokens: this.lexer.inline(u), header: false, align: i.align[a] })));
9026
9037
  return i;
9027
9038
  }
9028
9039
  }
@@ -9063,7 +9074,7 @@ ${p}` : p;
9063
9074
  let i = $(n.slice(0, -1), "\\");
9064
9075
  if ((n.length - i.length) % 2 === 0) return;
9065
9076
  } else {
9066
- let i = ge(t[2], "()");
9077
+ let i = fe(t[2], "()");
9067
9078
  if (i === -2) return;
9068
9079
  if (i > -1) {
9069
9080
  let u = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + i;
@@ -9075,7 +9086,7 @@ ${p}` : p;
9075
9086
  let i = this.rules.other.pedanticHrefTitle.exec(s);
9076
9087
  i && (s = i[1], r = i[3]);
9077
9088
  } else r = t[3] ? t[3].slice(1, -1) : "";
9078
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), me(t, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: r && r.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
9089
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), xe(t, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: r && r.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
9079
9090
  }
9080
9091
  }
9081
9092
  reflink(e, t) {
@@ -9086,7 +9097,7 @@ ${p}` : p;
9086
9097
  let i = n[0].charAt(0);
9087
9098
  return { type: "text", raw: i, text: i };
9088
9099
  }
9089
- return me(n, r, n[0], this.lexer, this.rules);
9100
+ return xe(n, r, n[0], this.lexer, this.rules);
9090
9101
  }
9091
9102
  }
9092
9103
  emStrong(e, t, n = "") {
@@ -9182,11 +9193,11 @@ var x = class l {
9182
9193
  tokenizer;
9183
9194
  constructor(e) {
9184
9195
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
9185
- let t = { other: m, block: B.normal, inline: A.normal };
9186
- this.options.pedantic ? (t.block = B.pedantic, t.inline = A.pedantic) : this.options.gfm && (t.block = B.gfm, this.options.breaks ? t.inline = A.breaks : t.inline = A.gfm), this.tokenizer.rules = t;
9196
+ let t = { other: m, block: D.normal, inline: A.normal };
9197
+ this.options.pedantic ? (t.block = D.pedantic, t.inline = A.pedantic) : this.options.gfm && (t.block = D.gfm, this.options.breaks ? t.inline = A.breaks : t.inline = A.gfm), this.tokenizer.rules = t;
9187
9198
  }
9188
9199
  static get rules() {
9189
- return { block: B, inline: A };
9200
+ return { block: D, inline: A };
9190
9201
  }
9191
9202
  static lex(e, t) {
9192
9203
  return new l(t).lex(e);
@@ -9494,7 +9505,7 @@ ${e}</tr>
9494
9505
  return `<del>${this.parser.parseInline(e)}</del>`;
9495
9506
  }
9496
9507
  link({ href: e, title: t, tokens: n }) {
9497
- let s = this.parser.parseInline(n), r = J(e);
9508
+ let s = this.parser.parseInline(n), r = V(e);
9498
9509
  if (r === null) return s;
9499
9510
  e = r;
9500
9511
  let i = '<a href="' + e + '"';
@@ -9502,7 +9513,7 @@ ${e}</tr>
9502
9513
  }
9503
9514
  image({ href: e, title: t, text: n, tokens: s }) {
9504
9515
  s && (n = this.parser.parseInline(s, this.parser.textRenderer));
9505
- let r = J(e);
9516
+ let r = V(e);
9506
9517
  if (r === null) return O(n);
9507
9518
  e = r;
9508
9519
  let i = `<img src="${e}" alt="${O(n)}"`;
@@ -9723,8 +9734,8 @@ var P = class {
9723
9734
  return e ? b.parse : b.parseInline;
9724
9735
  }
9725
9736
  };
9726
- var D = class {
9727
- defaults = z();
9737
+ var q = class {
9738
+ defaults = M();
9728
9739
  options = this.setOptions;
9729
9740
  parse = this.parseMarkdown(true);
9730
9741
  parseInline = this.parseMarkdown(false);
@@ -9884,22 +9895,22 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9884
9895
  };
9885
9896
  }
9886
9897
  };
9887
- var M = new D();
9898
+ var z = new q();
9888
9899
  function g(l3, e) {
9889
- return M.parse(l3, e);
9900
+ return z.parse(l3, e);
9890
9901
  }
9891
9902
  g.options = g.setOptions = function(l3) {
9892
- return M.setOptions(l3), g.defaults = M.defaults, G(g.defaults), g;
9903
+ return z.setOptions(l3), g.defaults = z.defaults, N(g.defaults), g;
9893
9904
  };
9894
- g.getDefaults = z;
9905
+ g.getDefaults = M;
9895
9906
  g.defaults = T;
9896
9907
  g.use = function(...l3) {
9897
- return M.use(...l3), g.defaults = M.defaults, G(g.defaults), g;
9908
+ return z.use(...l3), g.defaults = z.defaults, N(g.defaults), g;
9898
9909
  };
9899
9910
  g.walkTokens = function(l3, e) {
9900
- return M.walkTokens(l3, e);
9911
+ return z.walkTokens(l3, e);
9901
9912
  };
9902
- g.parseInline = M.parseInline;
9913
+ g.parseInline = z.parseInline;
9903
9914
  g.Parser = b;
9904
9915
  g.parser = b.parse;
9905
9916
  g.Renderer = y;
@@ -9909,13 +9920,13 @@ g.lexer = x.lex;
9909
9920
  g.Tokenizer = w;
9910
9921
  g.Hooks = P;
9911
9922
  g.parse = g;
9912
- var jt = g.options;
9913
- var Ft = g.setOptions;
9914
- var Ut = g.use;
9915
- var Kt = g.walkTokens;
9916
- var Wt = g.parseInline;
9917
- var Jt = b.parse;
9918
- var Vt = x.lex;
9923
+ var Ft = g.options;
9924
+ var Ut = g.setOptions;
9925
+ var Kt = g.use;
9926
+ var Wt = g.walkTokens;
9927
+ var Xt = g.parseInline;
9928
+ var Vt = b.parse;
9929
+ var Yt = x.lex;
9919
9930
 
9920
9931
  // src/inflate/md.ts
9921
9932
  async function inflateMDString2HTML(text) {
@@ -12223,16 +12234,16 @@ async function unwrap(alg, key, encryptedKey) {
12223
12234
  function lengthAndInput(input) {
12224
12235
  return concat(uint32be(input.length), input);
12225
12236
  }
12226
- async function concatKdf(Z, L2, OtherInfo) {
12237
+ async function concatKdf(Z2, L2, OtherInfo) {
12227
12238
  const dkLen = L2 >> 3;
12228
12239
  const hashLen = 32;
12229
12240
  const reps = Math.ceil(dkLen / hashLen);
12230
12241
  const dk = new Uint8Array(reps * hashLen);
12231
12242
  for (let i = 1; i <= reps; i++) {
12232
- const hashInput = new Uint8Array(4 + Z.length + OtherInfo.length);
12243
+ const hashInput = new Uint8Array(4 + Z2.length + OtherInfo.length);
12233
12244
  hashInput.set(uint32be(i), 0);
12234
- hashInput.set(Z, 4);
12235
- hashInput.set(OtherInfo, 4 + Z.length);
12245
+ hashInput.set(Z2, 4);
12246
+ hashInput.set(OtherInfo, 4 + Z2.length);
12236
12247
  const hashResult = await digest("sha256", hashInput);
12237
12248
  dk.set(hashResult, (i - 1) * hashLen);
12238
12249
  }
@@ -12247,11 +12258,11 @@ async function deriveKey(publicKey, privateKey, algorithm, keyLength, apu = new
12247
12258
  const suppPubInfo = uint32be(keyLength);
12248
12259
  const suppPrivInfo = new Uint8Array();
12249
12260
  const otherInfo = concat(algorithmID, partyUInfo, partyVInfo, suppPubInfo, suppPrivInfo);
12250
- const Z = new Uint8Array(await crypto.subtle.deriveBits({
12261
+ const Z2 = new Uint8Array(await crypto.subtle.deriveBits({
12251
12262
  name: publicKey.algorithm.name,
12252
12263
  public: publicKey
12253
12264
  }, privateKey, getEcdhBitLength(publicKey)));
12254
- return concatKdf(Z, keyLength, otherInfo);
12265
+ return concatKdf(Z2, keyLength, otherInfo);
12255
12266
  }
12256
12267
  function getEcdhBitLength(publicKey) {
12257
12268
  if (publicKey.algorithm.name === "X25519") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miqro",
3
- "version": "8.0.6",
3
+ "version": "8.0.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "build/esm/lib.js",
@@ -38,8 +38,8 @@
38
38
  "@miqro/runner": "^2.0.3",
39
39
  "@miqro/test": "^0.2.10",
40
40
  "@miqro/test-http": "^0.1.4",
41
- "esbuild": "^0.28.0",
41
+ "esbuild": "^0.28.1",
42
42
  "jose": "^6.2.3",
43
- "marked": "^18.0.3"
43
+ "marked": "^18.0.5"
44
44
  }
45
45
  }