b0VIM 8.1']X#cyMacBook-Pro-10.localdomain~cy/projects/ones/marked/lib/utils.jsutf-8 3210#"! Utp'ad`x_M<+e  y s o n _ ] \ ; n O . s 5 4 "   ` P ? ; , * )  V.qPoD5vMvkjD)M,`_ // Length of suffix matching the invert condition. } return ''; if (str.length === 0) {export function rtrim(str, c, invert) {// invert: Remove suffix of non-c chars instead. Default falsey.// /c*$/ is vulnerable to REDOS.// Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').} return obj; } } } obj[key] = target[key]; if (Object.prototype.hasOwnProperty.call(target, key)) { for (key in target) { target = arguments[i]; for (; i < arguments.length; i++) { key; target, var i = 1,export function merge(obj) {noop.exec = noop;export function noop() {}} } } return base + href; } else { return base.replace(/(:\/*[^/]*)[\s\S]*/, '$1') + href; } else if (href.charAt(0) === '/') { return base.replace(/:[\s\S]*/, ':') + href; if (href.slice(0, 2) === '//') { base = baseUrls[' ' + base]; } } baseUrls[' ' + base] = rtrim(base, '/', true); } else { baseUrls[' ' + base] = base + '/'; if (/^[^:]+:\/*[^/]*$/.test(base)) { // https://tools.ietf.org/html/rfc3986#section-3 // but we might need to add _that_ // we can ignore everything in base after the last slash of its path component, if (!baseUrls[' ' + base]) { return function() { var baseUrls = {};export function resolveUrl(base, href) {} }; } return new RegExp(regex, opt); getRegex: function() { }, return this; regex = regex.replace(name, val); val = val.replace(/(^|[^\[])\^/g, '$1'); val = val.source || val; replace: function(name, val) { return { opt = opt || ''; regex = regex.source || regex;export function edit(regex, opt) {} return href; } return null; } catch (e) { href = encodeURI(href).replace(/%25/g, '%'); try { } href = resolveUrl(base, href)(); if (base && !originIndependentUrl.test(href)) { } } return null; if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0 || prot.indexOf('data:') === 0) { } return null; } catch (e) { .toLowerCase(); .replace(/[^\w:]/g, '') var prot = decodeURIComponent(unescape(href)) try { if (sanitize) { var originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;export function cleanUrl(sanitize, base, href) {} }); return ''; } : String.fromCharCode(+n.substring(1)); ? String.fromCharCode(parseInt(n.substring(2), 16)) return n.charAt(1) === 'x' if (n.charAt(0) === '#') { if (n === 'colon') return ':'; n = n.toLowerCase(); return html.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, function(_, n) { // explicitly match decimal, hex, and named HTML entitiesexport function unescape(html) {} return html; } } return html.replace(escapeReplaceNoEncode, function(ch) { return replacements[ch]; }); if (escapeTestNoEncode.test(html)) { } else { } return html.replace(escapeReplace, function(ch) { return replacements[ch]; }); if (escapeTest.test(html)) { if (encode) { const escapeReplaceNoEncode = /[<>"']|&(?!#?\w+;)/g; const escapeTestNoEncode = /[<>"']|&(?!#?\w+;)/; }; "'": ''' '"': '"', '>': '>', '<': '<', '&': '&', const replacements = { const escapeReplace = /[&<>"']/g; const escapeTest = /[&<>"']/;export function escape(html, encode) { */ * Helper functions/**ad 'V1 `UB/   l W B /  } }; grammars: [], xhtml: false, tables: true, smartypants: false, smartLists: false, silent: false, sanitizer: null, sanitize: false, renderer: Renderer ? new Renderer() : null, pedantic: false, mangle: true, langPrefix: 'language-', highlight: null, headerPrefix: '', headerIds: true, gfm: true, breaks: false, baseUrl: null, return {export function getDefaultOptions(Renderer) {} return str.substr(0, str.length - suffLen); } } break; } else { suffLen++; } else if (currChar !== c && invert) { suffLen++; if (currChar === c && !invert) { var currChar = str.charAt(str.length - suffLen - 1); while (suffLen < str.length) { // Step left until we fail to match the invert condition. var suffLen = 0;