{ "translatorID": "e7859c61-54d4-466a-b236-aadcf1f7e83b", "label": "Collected notes", "description": "exports your notes", "creator": "Emiliano heyns", "target": "html", "displayOptions": { "markdown": false }, "minVersion": "4.0.27", "maxVersion": "", "translatorType": 2, "browserSupport": "gcsv", "inRepository": false, "configOptions": { "getCollections": true, "hash": "32da13787fb9ca9d12910535a989f5199f902a16bbc79ad4531c7461a72b7b37" }, "priority": 100, "lastUpdated": "2024-11-29" } ZOTERO_CONFIG = {"GUID":"zotero@chnm.gmu.edu","ID":"zotero","CLIENT_NAME":"Zotero","DOMAIN_NAME":"zotero.org","PRODUCER":"Digital Scholar","PRODUCER_URL":"https://digitalscholar.org","REPOSITORY_URL":"https://repo.zotero.org/repo/","BASE_URI":"http://zotero.org/","WWW_BASE_URL":"https://www.zotero.org/","PROXY_AUTH_URL":"https://zoteroproxycheck.s3.amazonaws.com/test","API_URL":"https://api.zotero.org/","STREAMING_URL":"wss://stream.zotero.org/","SERVICES_URL":"https://services.zotero.org/","API_VERSION":3,"CONNECTOR_MIN_VERSION":"5.0.39","PREF_BRANCH":"extensions.zotero.","BOOKMARKLET_ORIGIN":"https://www.zotero.org","BOOKMARKLET_URL":"https://www.zotero.org/bookmarklet/","START_URL":"https://www.zotero.org/start","QUICK_START_URL":"https://www.zotero.org/support/quick_start_guide","PDF_TOOLS_URL":"https://www.zotero.org/download/xpdf/","SUPPORT_URL":"https://www.zotero.org/support/","SYNC_INFO_URL":"https://www.zotero.org/support/sync","TROUBLESHOOTING_URL":"https://www.zotero.org/support/getting_help","FEEDBACK_URL":"https://forums.zotero.org/","CONNECTORS_URL":"https://www.zotero.org/download/connectors","CHANGELOG_URL":"https://www.zotero.org/support/changelog","CREDITS_URL":"https://www.zotero.org/support/credits_and_acknowledgments","LICENSING_URL":"https://www.zotero.org/support/licensing","GET_INVOLVED_URL":"https://www.zotero.org/getinvolved","DICTIONARIES_URL":"https://download.zotero.org/dictionaries/"} if (typeof ZOTERO_TRANSLATOR_INFO === 'undefined') var ZOTERO_TRANSLATOR_INFO = {}; // declare if not declared Object.assign(ZOTERO_TRANSLATOR_INFO, {"translatorID":"e7859c61-54d4-466a-b236-aadcf1f7e83b","label":"Collected notes","description":"exports your notes","creator":"Emiliano heyns","target":"html","displayOptions":{"markdown":false},"minVersion":"4.0.27","maxVersion":"","translatorType":2,"browserSupport":"gcsv","inRepository":false,"configOptions":{"getCollections":true},"priority":100}); // assign new data var { doExport } = (() => { var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __typeError = (msg) => { throw TypeError(msg); }; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { for (var name2 in all) __defProp(target, name2, { get: all[name2], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); // node_modules/@stdlib/utils-define-property/lib/define_property.js var require_define_property = __commonJS({ "node_modules/@stdlib/utils-define-property/lib/define_property.js"(exports, module) { var main = typeof Object.defineProperty === "function" ? Object.defineProperty : null; module.exports = main; } }); // node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js var require_has_define_property_support = __commonJS({ "node_modules/@stdlib/utils-define-property/lib/has_define_property_support.js"(exports, module) { var defineProperty = require_define_property(); function hasDefinePropertySupport() { try { defineProperty({}, "x", {}); return true; } catch (err) { return false; } } module.exports = hasDefinePropertySupport; } }); // node_modules/@stdlib/utils-define-property/lib/builtin.js var require_builtin = __commonJS({ "node_modules/@stdlib/utils-define-property/lib/builtin.js"(exports, module) { var defineProperty = Object.defineProperty; module.exports = defineProperty; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/is_number.js var require_is_number = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/is_number.js"(exports, module) { function isNumber(value) { return typeof value === "number"; } module.exports = isNumber; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/zero_pad.js var require_zero_pad = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/zero_pad.js"(exports, module) { function startsWithMinus(str) { return str[0] === "-"; } function zeros(n) { var out = ""; var i; for (i = 0; i < n; i++) { out += "0"; } return out; } function zeroPad(str, width, right) { var negative = false; var pad = width - str.length; if (pad < 0) { return str; } if (startsWithMinus(str)) { negative = true; str = str.substr(1); } str = right ? str + zeros(pad) : zeros(pad) + str; if (negative) { str = "-" + str; } return str; } module.exports = zeroPad; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/format_integer.js var require_format_integer = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/format_integer.js"(exports, module) { var isNumber = require_is_number(); var zeroPad = require_zero_pad(); var lowercase = String.prototype.toLowerCase; var uppercase = String.prototype.toUpperCase; function formatInteger(token) { var base; var out; var i; switch (token.specifier) { case "b": base = 2; break; case "o": base = 8; break; case "x": case "X": base = 16; break; case "d": case "i": case "u": default: base = 10; break; } out = token.arg; i = parseInt(out, 10); if (!isFinite(i)) { if (!isNumber(out)) { throw new Error("invalid integer. Value: " + out); } i = 0; } if (i < 0 && (token.specifier === "u" || base !== 10)) { i = 4294967295 + i + 1; } if (i < 0) { out = (-i).toString(base); if (token.precision) { out = zeroPad(out, token.precision, token.padRight); } out = "-" + out; } else { out = i.toString(base); if (!i && !token.precision) { out = ""; } else if (token.precision) { out = zeroPad(out, token.precision, token.padRight); } if (token.sign) { out = token.sign + out; } } if (base === 16) { if (token.alternate) { out = "0x" + out; } out = token.specifier === uppercase.call(token.specifier) ? uppercase.call(out) : lowercase.call(out); } if (base === 8) { if (token.alternate && out.charAt(0) !== "0") { out = "0" + out; } } return out; } module.exports = formatInteger; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/is_string.js var require_is_string = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/is_string.js"(exports, module) { function isString(value) { return typeof value === "string"; } module.exports = isString; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/format_double.js var require_format_double = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/format_double.js"(exports, module) { var isNumber = require_is_number(); var abs = Math.abs; var lowercase = String.prototype.toLowerCase; var uppercase = String.prototype.toUpperCase; var replace = String.prototype.replace; var RE_EXP_POS_DIGITS = /e\+(\d)$/; var RE_EXP_NEG_DIGITS = /e-(\d)$/; var RE_ONLY_DIGITS = /^(\d+)$/; var RE_DIGITS_BEFORE_EXP = /^(\d+)e/; var RE_TRAILING_PERIOD_ZERO = /\.0$/; var RE_PERIOD_ZERO_EXP = /\.0*e/; var RE_ZERO_BEFORE_EXP = /(\..*[^0])0*e/; function formatDouble(token) { var digits; var out; var f = parseFloat(token.arg); if (!isFinite(f)) { if (!isNumber(token.arg)) { throw new Error("invalid floating-point number. Value: " + out); } f = token.arg; } switch (token.specifier) { case "e": case "E": out = f.toExponential(token.precision); break; case "f": case "F": out = f.toFixed(token.precision); break; case "g": case "G": if (abs(f) < 1e-4) { digits = token.precision; if (digits > 0) { digits -= 1; } out = f.toExponential(digits); } else { out = f.toPrecision(token.precision); } if (!token.alternate) { out = replace.call(out, RE_ZERO_BEFORE_EXP, "$1e"); out = replace.call(out, RE_PERIOD_ZERO_EXP, "e"); out = replace.call(out, RE_TRAILING_PERIOD_ZERO, ""); } break; default: throw new Error("invalid double notation. Value: " + token.specifier); } out = replace.call(out, RE_EXP_POS_DIGITS, "e+0$1"); out = replace.call(out, RE_EXP_NEG_DIGITS, "e-0$1"); if (token.alternate) { out = replace.call(out, RE_ONLY_DIGITS, "$1."); out = replace.call(out, RE_DIGITS_BEFORE_EXP, "$1.e"); } if (f >= 0 && token.sign) { out = token.sign + out; } out = token.specifier === uppercase.call(token.specifier) ? uppercase.call(out) : lowercase.call(out); return out; } module.exports = formatDouble; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/space_pad.js var require_space_pad = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/space_pad.js"(exports, module) { function spaces(n) { var out = ""; var i; for (i = 0; i < n; i++) { out += " "; } return out; } function spacePad(str, width, right) { var pad = width - str.length; if (pad < 0) { return str; } str = right ? str + spaces(pad) : spaces(pad) + str; return str; } module.exports = spacePad; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/main.js var require_main = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/main.js"(exports, module) { var formatInteger = require_format_integer(); var isString = require_is_string(); var formatDouble = require_format_double(); var spacePad = require_space_pad(); var zeroPad = require_zero_pad(); var fromCharCode = String.fromCharCode; var isArray = Array.isArray; function isnan(value) { return value !== value; } function initialize(token) { var out = {}; out.specifier = token.specifier; out.precision = token.precision === void 0 ? 1 : token.precision; out.width = token.width; out.flags = token.flags || ""; out.mapping = token.mapping; return out; } function formatInterpolate(tokens) { var hasPeriod; var flags; var token; var flag; var num; var out; var pos; var i; var j; if (!isArray(tokens)) { throw new TypeError("invalid argument. First argument must be an array. Value: `" + tokens + "`."); } out = ""; pos = 1; for (i = 0; i < tokens.length; i++) { token = tokens[i]; if (isString(token)) { out += token; } else { hasPeriod = token.precision !== void 0; token = initialize(token); if (!token.specifier) { throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `" + i + "`. Value: `" + token + "`."); } if (token.mapping) { pos = token.mapping; } flags = token.flags; for (j = 0; j < flags.length; j++) { flag = flags.charAt(j); switch (flag) { case " ": token.sign = " "; break; case "+": token.sign = "+"; break; case "-": token.padRight = true; token.padZeros = false; break; case "0": token.padZeros = flags.indexOf("-") < 0; break; case "#": token.alternate = true; break; default: throw new Error("invalid flag: " + flag); } } if (token.width === "*") { token.width = parseInt(arguments[pos], 10); pos += 1; if (isnan(token.width)) { throw new TypeError("the argument for * width at position " + pos + " is not a number. Value: `" + token.width + "`."); } if (token.width < 0) { token.padRight = true; token.width = -token.width; } } if (hasPeriod) { if (token.precision === "*") { token.precision = parseInt(arguments[pos], 10); pos += 1; if (isnan(token.precision)) { throw new TypeError("the argument for * precision at position " + pos + " is not a number. Value: `" + token.precision + "`."); } if (token.precision < 0) { token.precision = 1; hasPeriod = false; } } } token.arg = arguments[pos]; switch (token.specifier) { case "b": case "o": case "x": case "X": case "d": case "i": case "u": if (hasPeriod) { token.padZeros = false; } token.arg = formatInteger(token); break; case "s": token.maxWidth = hasPeriod ? token.precision : -1; token.arg = String(token.arg); break; case "c": if (!isnan(token.arg)) { num = parseInt(token.arg, 10); if (num < 0 || num > 127) { throw new Error("invalid character code. Value: " + token.arg); } token.arg = isnan(num) ? String(token.arg) : fromCharCode(num); } break; case "e": case "E": case "f": case "F": case "g": case "G": if (!hasPeriod) { token.precision = 6; } token.arg = formatDouble(token); break; default: throw new Error("invalid specifier: " + token.specifier); } if (token.maxWidth >= 0 && token.arg.length > token.maxWidth) { token.arg = token.arg.substring(0, token.maxWidth); } if (token.padZeros) { token.arg = zeroPad(token.arg, token.width || token.precision, token.padRight); } else if (token.width) { token.arg = spacePad(token.arg, token.width, token.padRight); } out += token.arg || ""; pos += 1; } } return out; } module.exports = formatInterpolate; } }); // node_modules/@stdlib/string-base-format-interpolate/lib/index.js var require_lib = __commonJS({ "node_modules/@stdlib/string-base-format-interpolate/lib/index.js"(exports, module) { var main = require_main(); module.exports = main; } }); // node_modules/@stdlib/string-base-format-tokenize/lib/main.js var require_main2 = __commonJS({ "node_modules/@stdlib/string-base-format-tokenize/lib/main.js"(exports, module) { var RE = /%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g; function parse(match) { var token = { "mapping": match[1] ? parseInt(match[1], 10) : void 0, "flags": match[2], "width": match[3], "precision": match[5], "specifier": match[6] }; if (match[4] === "." && match[5] === void 0) { token.precision = "1"; } return token; } function formatTokenize(str) { var content; var tokens; var match; var prev; tokens = []; prev = 0; match = RE.exec(str); while (match) { content = str.slice(prev, RE.lastIndex - match[0].length); if (content.length) { tokens.push(content); } tokens.push(parse(match)); prev = RE.lastIndex; match = RE.exec(str); } content = str.slice(prev); if (content.length) { tokens.push(content); } return tokens; } module.exports = formatTokenize; } }); // node_modules/@stdlib/string-base-format-tokenize/lib/index.js var require_lib2 = __commonJS({ "node_modules/@stdlib/string-base-format-tokenize/lib/index.js"(exports, module) { var main = require_main2(); module.exports = main; } }); // node_modules/@stdlib/string-format/lib/is_string.js var require_is_string2 = __commonJS({ "node_modules/@stdlib/string-format/lib/is_string.js"(exports, module) { function isString(value) { return typeof value === "string"; } module.exports = isString; } }); // node_modules/@stdlib/string-format/lib/main.js var require_main3 = __commonJS({ "node_modules/@stdlib/string-format/lib/main.js"(exports, module) { var interpolate = require_lib(); var tokenize = require_lib2(); var isString = require_is_string2(); function format2(str) { var args; var i; if (!isString(str)) { throw new TypeError(format2("invalid argument. First argument must be a string. Value: `%s`.", str)); } args = [tokenize(str)]; for (i = 1; i < arguments.length; i++) { args.push(arguments[i]); } return interpolate.apply(null, args); } module.exports = format2; } }); // node_modules/@stdlib/string-format/lib/index.js var require_lib3 = __commonJS({ "node_modules/@stdlib/string-format/lib/index.js"(exports, module) { var main = require_main3(); module.exports = main; } }); // node_modules/@stdlib/utils-define-property/lib/polyfill.js var require_polyfill = __commonJS({ "node_modules/@stdlib/utils-define-property/lib/polyfill.js"(exports, module) { var format2 = require_lib3(); var objectProtoype = Object.prototype; var toStr = objectProtoype.toString; var defineGetter = objectProtoype.__defineGetter__; var defineSetter = objectProtoype.__defineSetter__; var lookupGetter = objectProtoype.__lookupGetter__; var lookupSetter = objectProtoype.__lookupSetter__; function defineProperty(obj, prop, descriptor) { var prototype; var hasValue; var hasGet; var hasSet; if (typeof obj !== "object" || obj === null || toStr.call(obj) === "[object Array]") { throw new TypeError(format2("invalid argument. First argument must be an object. Value: `%s`.", obj)); } if (typeof descriptor !== "object" || descriptor === null || toStr.call(descriptor) === "[object Array]") { throw new TypeError(format2("invalid argument. Property descriptor must be an object. Value: `%s`.", descriptor)); } hasValue = "value" in descriptor; if (hasValue) { if (lookupGetter.call(obj, prop) || lookupSetter.call(obj, prop)) { prototype = obj.__proto__; obj.__proto__ = objectProtoype; delete obj[prop]; obj[prop] = descriptor.value; obj.__proto__ = prototype; } else { obj[prop] = descriptor.value; } } hasGet = "get" in descriptor; hasSet = "set" in descriptor; if (hasValue && (hasGet || hasSet)) { throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor."); } if (hasGet && defineGetter) { defineGetter.call(obj, prop, descriptor.get); } if (hasSet && defineSetter) { defineSetter.call(obj, prop, descriptor.set); } return obj; } module.exports = defineProperty; } }); // node_modules/@stdlib/utils-define-property/lib/index.js var require_lib4 = __commonJS({ "node_modules/@stdlib/utils-define-property/lib/index.js"(exports, module) { var hasDefinePropertySupport = require_has_define_property_support(); var builtin = require_builtin(); var polyfill = require_polyfill(); var defineProperty; if (hasDefinePropertySupport()) { defineProperty = builtin; } else { defineProperty = polyfill; } module.exports = defineProperty; } }); // node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js var require_main4 = __commonJS({ "node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/main.js"(exports, module) { var defineProperty = require_lib4(); function setNonEnumerableReadOnly(obj, prop, value) { defineProperty(obj, prop, { "configurable": false, "enumerable": false, "writable": false, "value": value }); } module.exports = setNonEnumerableReadOnly; } }); // node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js var require_lib5 = __commonJS({ "node_modules/@stdlib/utils-define-nonenumerable-read-only-property/lib/index.js"(exports, module) { var main = require_main4(); module.exports = main; } }); // node_modules/@stdlib/assert-is-string/lib/primitive.js var require_primitive = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/primitive.js"(exports, module) { function isString(value) { return typeof value === "string"; } module.exports = isString; } }); // node_modules/@stdlib/assert-has-symbol-support/lib/main.js var require_main5 = __commonJS({ "node_modules/@stdlib/assert-has-symbol-support/lib/main.js"(exports, module) { function hasSymbolSupport() { return typeof Symbol === "function" && typeof Symbol("foo") === "symbol"; } module.exports = hasSymbolSupport; } }); // node_modules/@stdlib/assert-has-symbol-support/lib/index.js var require_lib6 = __commonJS({ "node_modules/@stdlib/assert-has-symbol-support/lib/index.js"(exports, module) { var main = require_main5(); module.exports = main; } }); // node_modules/@stdlib/assert-has-tostringtag-support/lib/main.js var require_main6 = __commonJS({ "node_modules/@stdlib/assert-has-tostringtag-support/lib/main.js"(exports, module) { var hasSymbols = require_lib6(); var FLG = hasSymbols(); function hasToStringTagSupport() { return FLG && typeof Symbol.toStringTag === "symbol"; } module.exports = hasToStringTagSupport; } }); // node_modules/@stdlib/assert-has-tostringtag-support/lib/index.js var require_lib7 = __commonJS({ "node_modules/@stdlib/assert-has-tostringtag-support/lib/index.js"(exports, module) { var main = require_main6(); module.exports = main; } }); // node_modules/@stdlib/utils-native-class/lib/tostring.js var require_tostring = __commonJS({ "node_modules/@stdlib/utils-native-class/lib/tostring.js"(exports, module) { var toStr = Object.prototype.toString; module.exports = toStr; } }); // node_modules/@stdlib/utils-native-class/lib/main.js var require_main7 = __commonJS({ "node_modules/@stdlib/utils-native-class/lib/main.js"(exports, module) { var toStr = require_tostring(); function nativeClass(v) { return toStr.call(v); } module.exports = nativeClass; } }); // node_modules/@stdlib/assert-has-own-property/lib/main.js var require_main8 = __commonJS({ "node_modules/@stdlib/assert-has-own-property/lib/main.js"(exports, module) { var has = Object.prototype.hasOwnProperty; function hasOwnProp(value, property) { if (value === void 0 || value === null) { return false; } return has.call(value, property); } module.exports = hasOwnProp; } }); // node_modules/@stdlib/assert-has-own-property/lib/index.js var require_lib8 = __commonJS({ "node_modules/@stdlib/assert-has-own-property/lib/index.js"(exports, module) { var main = require_main8(); module.exports = main; } }); // node_modules/@stdlib/symbol-ctor/lib/main.js var require_main9 = __commonJS({ "node_modules/@stdlib/symbol-ctor/lib/main.js"(exports, module) { var Sym = typeof Symbol === "function" ? Symbol : void 0; module.exports = Sym; } }); // node_modules/@stdlib/symbol-ctor/lib/index.js var require_lib9 = __commonJS({ "node_modules/@stdlib/symbol-ctor/lib/index.js"(exports, module) { var main = require_main9(); module.exports = main; } }); // node_modules/@stdlib/utils-native-class/lib/tostringtag.js var require_tostringtag = __commonJS({ "node_modules/@stdlib/utils-native-class/lib/tostringtag.js"(exports, module) { var Symbol2 = require_lib9(); var toStrTag = typeof Symbol2 === "function" ? Symbol2.toStringTag : ""; module.exports = toStrTag; } }); // node_modules/@stdlib/utils-native-class/lib/polyfill.js var require_polyfill2 = __commonJS({ "node_modules/@stdlib/utils-native-class/lib/polyfill.js"(exports, module) { var hasOwnProp = require_lib8(); var toStringTag = require_tostringtag(); var toStr = require_tostring(); function nativeClass(v) { var isOwn; var tag; var out; if (v === null || v === void 0) { return toStr.call(v); } tag = v[toStringTag]; isOwn = hasOwnProp(v, toStringTag); try { v[toStringTag] = void 0; } catch (err) { return toStr.call(v); } out = toStr.call(v); if (isOwn) { v[toStringTag] = tag; } else { delete v[toStringTag]; } return out; } module.exports = nativeClass; } }); // node_modules/@stdlib/utils-native-class/lib/index.js var require_lib10 = __commonJS({ "node_modules/@stdlib/utils-native-class/lib/index.js"(exports, module) { var hasToStringTag = require_lib7(); var builtin = require_main7(); var polyfill = require_polyfill2(); var main; if (hasToStringTag()) { main = polyfill; } else { main = builtin; } module.exports = main; } }); // node_modules/@stdlib/assert-is-string/lib/valueof.js var require_valueof = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/valueof.js"(exports, module) { var valueOf = String.prototype.valueOf; module.exports = valueOf; } }); // node_modules/@stdlib/assert-is-string/lib/try2valueof.js var require_try2valueof = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/try2valueof.js"(exports, module) { var valueOf = require_valueof(); function test(value) { try { valueOf.call(value); return true; } catch (err) { return false; } } module.exports = test; } }); // node_modules/@stdlib/assert-is-string/lib/object.js var require_object = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/object.js"(exports, module) { var hasToStringTag = require_lib7(); var nativeClass = require_lib10(); var test = require_try2valueof(); var FLG = hasToStringTag(); function isString(value) { if (typeof value === "object") { if (value instanceof String) { return true; } if (FLG) { return test(value); } return nativeClass(value) === "[object String]"; } return false; } module.exports = isString; } }); // node_modules/@stdlib/assert-is-string/lib/main.js var require_main10 = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/main.js"(exports, module) { var isPrimitive = require_primitive(); var isObject = require_object(); function isString(value) { return isPrimitive(value) || isObject(value); } module.exports = isString; } }); // node_modules/@stdlib/assert-is-string/lib/index.js var require_lib11 = __commonJS({ "node_modules/@stdlib/assert-is-string/lib/index.js"(exports, module) { var setReadOnly = require_lib5(); var main = require_main10(); var isPrimitive = require_primitive(); var isObject = require_object(); setReadOnly(main, "isPrimitive", isPrimitive); setReadOnly(main, "isObject", isObject); module.exports = main; } }); // node_modules/@stdlib/utils-escape-regexp-string/lib/main.js var require_main11 = __commonJS({ "node_modules/@stdlib/utils-escape-regexp-string/lib/main.js"(exports, module) { var isString = require_lib11().isPrimitive; var format2 = require_lib3(); var RE_CHARS = /[-\/\\^$*+?.()|[\]{}]/g; function rescape2(str) { var len; var s; var i; if (!isString(str)) { throw new TypeError(format2("invalid argument. Must provide a regular expression string. Value: `%s`.", str)); } if (str[0] === "/") { len = str.length; for (i = len - 1; i >= 0; i--) { if (str[i] === "/") { break; } } } if (i === void 0 || i <= 0) { return str.replace(RE_CHARS, "\\$&"); } s = str.substring(1, i); s = s.replace(RE_CHARS, "\\$&"); str = str[0] + s + str.substring(i); return str; } module.exports = rescape2; } }); // node_modules/@stdlib/utils-escape-regexp-string/lib/index.js var require_lib12 = __commonJS({ "node_modules/@stdlib/utils-escape-regexp-string/lib/index.js"(exports, module) { var main = require_main11(); module.exports = main; } }); // gen/version.js var require_version = __commonJS({ "gen/version.js"(exports, module) { module.exports = "6.7.263"; } }); // node_modules/html-to-md/dist/index.js var require_dist = __commonJS({ "node_modules/html-to-md/dist/index.js"(exports, module) { !function(t, e) { "object" === typeof exports && "object" === typeof module ? module.exports = e() : "function" === typeof define && define.amd ? define([], e) : "object" === typeof exports ? exports.html2md = e() : t.html2md = e(); }(exports, function() { return function(t) { var e = {}; function r(n) { if (e[n]) return e[n].exports; var o = e[n] = { i: n, l: false, exports: {} }; return t[n].call(o.exports, o, o.exports, r), o.l = true, o.exports; } return r.m = t, r.c = e, r.d = function(t2, e2, n) { r.o(t2, e2) || Object.defineProperty(t2, e2, { enumerable: true, get: n }); }, r.r = function(t2) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(t2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t2, "__esModule", { value: true }); }, r.t = function(t2, e2) { if (1 & e2 && (t2 = r(t2)), 8 & e2) return t2; if (4 & e2 && "object" === typeof t2 && t2 && t2.__esModule) return t2; var n = /* @__PURE__ */ Object.create(null); if (r.r(n), Object.defineProperty(n, "default", { enumerable: true, value: t2 }), 2 & e2 && "string" != typeof t2) for (var o in t2) r.d(n, o, function(e3) { return t2[e3]; }.bind(null, o)); return n; }, r.n = function(t2) { var e2 = t2 && t2.__esModule ? function() { return t2.default; } : function() { return t2; }; return r.d(e2, "a", e2), e2; }, r.o = function(t2, e2) { return Object.prototype.hasOwnProperty.call(t2, e2); }, r.p = "", r(r.s = 45); }([function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(1), o = r(12), i = r(6), a = r(7), c = r(2), u = function() { function t2(t3, e2, r2) { var o2 = void 0 === r2 ? {} : r2, i2 = o2.keepSpace, a2 = void 0 !== i2 && i2, c2 = o2.prevTagName, u2 = void 0 === c2 ? "" : c2, s = o2.nextTagName, p = void 0 === s ? "" : s, l = o2.prevTagStr, f = void 0 === l ? "" : l, h = o2.nextTagStr, d = void 0 === h ? "" : h, _ = o2.parentTag, y = void 0 === _ ? "" : _, v = o2.isFirstSubTag, g = void 0 === v || v, b = o2.calcLeading, O = void 0 !== b && b, m = o2.leadingSpace, S = void 0 === m ? "" : m, T = o2.layer, x = void 0 === T ? 1 : T, j = o2.noWrap, w = void 0 !== j && j, P = o2.prevHasEndSpace, M = void 0 !== P && P, E = o2.prevHasStartSpace, N = void 0 !== E && E, C = o2.match, L = void 0 === C ? null : C, k = o2.indentSpace, A = void 0 === k ? "" : k, H = o2.language, W = void 0 === H ? "" : H, V = o2.count, R = void 0 === V ? 1 : V, I = o2.tableColumnCount, D = void 0 === I ? 0 : I, U = o2.noExtraLine, B = void 0 !== U && U, q = o2.inTable, F = void 0 !== q && q; if (this.tagName = e2, this.rawStr = t3, this.parentTag = y, this.prevTagName = u2, this.nextTagName = p, this.prevTagStr = f, this.nextTagStr = d, this.isFirstSubTag = g, this.calcLeading = O, this.leadingSpace = S, this.layer = x, this.noWrap = w, this.match = L, this.indentSpace = A, this.language = W, this.count = R, this.inTable = F, this.tableColumnCount = D, this.noExtraLine = B, this.prevHasEndSpace = M, this.prevHasStartSpace = N, this.hasStartSpace = false, this.hasEndSpace = false, this.keepSpace = a2, !this.__detectStr__(t3, this.tagName)) return this.attrs = {}, void (this.innerHTML = ""); var G = this.__fetchTagAttrAndInnerHTML__(t3), $ = G.attr, J = G.innerHTML; J.startsWith(" ") && (0, n.isSpacePassingTag)(e2) && (this.hasStartSpace = true), J.endsWith(" ") && (0, n.isSpacePassingTag)(e2) && (this.hasEndSpace = true), this.attrs = $, this.innerHTML = J; } return t2.prototype.__detectStr__ = function(t3, e2) { if ("<" !== t3[0]) return "Not a valid tag, current tag name: ".concat(this.tagName, ", tag content: ").concat(t3), false; for (var r2 = "", n2 = false, o2 = 1; o2 < t3.length && ">" !== t3[o2]; o2++) !n2 && /(\s|\/)/.test(t3[o2]) && (n2 = true), n2 || (r2 += t3[o2]); return r2 === e2; }, t2.prototype.__fetchTagAttrAndInnerHTML__ = function(t3) { for (var e2 = "", r2 = 1; r2 < t3.length && ">" !== t3[r2]; r2++) e2 += t3[r2]; for (var o2 = t3.slice(r2 + 1), i2 = "", a2 = -1, c2 = o2.length - 1; c2 >= 0; c2--) if ((i2 = o2[c2] + i2).startsWith("")) { i2.startsWith("" + this.tagName + ">") && (a2 = c2); break; } -1 === a2 && (0, n.isSelfClosing)(this.tagName) && this.tagName; var u2 = (0, n.getTagAttributes)(e2); return this.tagName && delete u2[this.tagName], { attr: u2, innerHTML: o2.slice(0, a2) }; }, t2.prototype.__onlyLeadingSpace__ = function(t3) { t3 = t3.trim(); for (var e2 = 0; e2 < t3.length; e2++) if (t3[e2] !== i.SINGLE) return false; return true; }, t2.prototype.__isEmpty__ = function(t3) { return !this.keepSpace && ("" === t3 && "td" !== this.tagName || this.calcLeading && this.__onlyLeadingSpace__(t3)); }, t2.prototype.getValidSubTagName = function(t3) { return t3; }, t2.prototype.beforeParse = function() { var t3 = c.default.get().tagListener; if (t3) { var e2 = t3(this.tagName, { parentTag: this.parentTag, prevTagName: this.prevTagName, nextTagName: this.nextTagName, isFirstSubTag: this.isFirstSubTag, attrs: this.attrs, innerHTML: this.innerHTML, language: this.language, match: this.match, isSelfClosing: false }), r2 = e2.attrs, n2 = e2.language, o2 = e2.match; this.attrs = r2, "string" === typeof n2 && (this.language = n2), "undefined" !== typeof o2 && (this.match = o2); } return ""; }, t2.prototype.parseValidSubTag = function(t3, e2, r2) { var o2 = new ((0, n.getTagConstructor)(e2))(t3, e2, r2); return [o2.exec(), o2]; }, t2.prototype.parseOnlyString = function(t3, e2, r2) { var n2 = new o.default(t3, e2, r2); return [n2.exec(), n2]; }, t2.prototype.afterParsed = function(t3) { return t3; }, t2.prototype.slim = function(t3) { return this.keepSpace ? t3 : t3.trim(); }, t2.prototype.beforeMergeSpace = function(t3) { return t3; }, t2.prototype.mergeSpace = function(t3, e2, r2) { return this.keepSpace && "pre" !== this.tagName ? t3.endsWith("\n") ? t3 : t3 + r2.replace(/\n+/g, "\n") : e2 + t3 + r2; }, t2.prototype.afterMergeSpace = function(t3) { return t3; }, t2.prototype.beforeReturn = function(t3) { return !((0, n.isSpacePassingTag)(this.prevTagName) && this.prevHasEndSpace || (0, n.isSpacePassingTag)(this.tagName) && this.hasStartSpace) || /^\s+/.test(t3) || /\s+$/.test(this.prevTagStr) ? t3 : " " + t3; }, t2.prototype.exec = function(t3, e2) { void 0 === t3 && (t3 = ""), void 0 === e2 && (e2 = ""); for (var r2 = this.beforeParse(), o2 = (0, n.generateGetNextValidTag)(this.innerHTML), i2 = o2(), c2 = i2[0], u2 = i2[1], s = null, p = false, l = false; "" !== u2; ) { var f, h = o2(), d = h[0], _ = h[1], y = { parentTag: this.tagName, nextTagName: d, nextTagStr: _, prevTagName: s, prevTagStr: r2, prevHasEndSpace: l, prevHasStartSpace: p, leadingSpace: this.leadingSpace, layer: this.layer, keepSpace: this.keepSpace, inTable: this.inTable, calcLeading: ("li" === this.tagName || "ol" === this.tagName || "ul" === this.tagName) && this.calcLeading }, v = void 0, g = void 0; if (null != c2) v = (f = this.parseValidSubTag(u2, c2, y))[0], g = f[1]; else v = (f = this.parseOnlyString(u2, c2, y))[0], g = f[1]; l = (null === g || void 0 === g ? void 0 : g.hasEndSpace) || false, p = (null === g || void 0 === g ? void 0 : g.hasStartSpace) || false; var b = this.getValidSubTagName(c2); c2 = d, u2 = _, null == b && this.__isEmpty__(v) || (!this.keepSpace && (0, a.default)(s) && (0, a.default)(b) && (r2 = r2.replace(/\n+$/, "\n"), v = v.replace(/^\n+/, "\n")), s = b, this.isFirstSubTag = false, r2 += v); } return r2 = this.afterParsed(r2), r2 = this.slim(r2), this.__isEmpty__(r2) ? "" : (r2 = this.beforeMergeSpace(r2), !this.noExtraLine && (0, a.default)(this.tagName) && this.prevTagName && !r2.startsWith("\n") && !(0, a.default)(this.prevTagName) && this.parentTag && (t3 = "\n\n"), r2 = this.mergeSpace(r2, t3, e2), this.noWrap && !this.keepSpace && (r2 = r2.replace(/\s+/g, " ")), r2 = this.afterMergeSpace(r2), r2 = this.beforeReturn(r2)); }, t2; }(); e.default = u; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.shouldRenderRawInside = e.isSpacePassingTag = e.isIndependentTag = e.clearComment = e.getLanguage = e.getTableAlign = e.getTagAttributes = e.isSelfClosing = e.generateGetNextValidTag = e.getTagConstructor = e.getRealTagName = e.unescapeStr = e.extraEscape = void 0; var n = r(46); Object.defineProperty(e, "extraEscape", { enumerable: true, get: function() { return n.extraEscape; } }), Object.defineProperty(e, "unescapeStr", { enumerable: true, get: function() { return n.unescapeStr; } }); var o = r(47); e.generateGetNextValidTag = o.default; var i = r(48); e.getTagConstructor = i.default; var a = r(11); e.isSelfClosing = a.default; var c = r(51); e.getTagAttributes = c.default; var u = r(52); e.getLanguage = u.default; var s = r(53); e.clearComment = s.default; var p = r(13); e.getRealTagName = p.default; var l = r(7); e.isIndependentTag = l.default; var f = r(54); e.isSpacePassingTag = f.default; var h = r(55); e.getTableAlign = h.default; var d = r(56); e.shouldRenderRawInside = d.default; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = function() { function t2(t3) { var e2 = void 0 === t3 ? {} : t3, r2 = e2.skipTags, n2 = void 0 === r2 ? [] : r2, o2 = e2.emptyTags, i2 = void 0 === o2 ? [] : o2, a = e2.ignoreTags, c = void 0 === a ? [] : a, u = e2.aliasTags, s = void 0 === u ? {} : u, p = e2.renderCustomTags, l = void 0 === p || p, f = e2.tagListener, h = void 0 === f ? function(t4, e3) { return e3; } : f; this.options = { skipTags: n2, emptyTags: i2, ignoreTags: c, aliasTags: s, renderCustomTags: l, tagListener: h }; } return t2.prototype.get = function() { return this.options; }, t2.prototype.clear = function() { this.options = {}; }, t2.prototype.set = function(t3, e2) { var r2 = this; t3 && "[object Object]" === Object.prototype.toString.call(t3) && Object.keys(t3).forEach(function(n2) { e2 ? r2.options[n2] = t3[n2] : function(t4, e3, r3) { if (!(r3 in t4)) return void (t4[r3] = e3[r3]); var n3 = Array.isArray(t4[r3]), o2 = "[object Object]" === Object.prototype.toString.call(t4[r3]); t4[r3] = n3 ? t4[r3].concat(e3[r3]) : o2 ? Object.assign(t4[r3], e3[r3]) : e3[r3]; }(r2.options, t3, n2); }); }, t2.prototype.reset = function() { this.options = JSON.parse(JSON.stringify(o)), this.options.tagListener = function(t3, e2) { return e2; }; }, t2; }(); var o = { ignoreTags: ["", "style", "head", "!doctype", "form", "svg", "noscript", "script", "meta"], skipTags: ["div", "html", "body", "nav", "section", "footer", "main", "aside", "article", "header"], emptyTags: [], aliasTags: { figure: "p", dl: "p", dd: "p", dt: "p", figcaption: "p" }, renderCustomTags: true }, i = new n(); i.reset(), e.default = i; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h1"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "#", n2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.match + " " + t3; }, e2.prototype.exec = function(e3, r2) { return e3 || (e3 = "\n"), r2 || (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(1), o = r(2), i = function() { function t2(t3, e2, r2) { var n2 = void 0 === r2 ? {} : r2, o2 = n2.parentTag, i2 = void 0 === o2 ? "" : o2, a = n2.leadingSpace, c = void 0 === a ? "" : a, u = n2.layer, s = void 0 === u ? 1 : u, p = n2.isFirstSubTag, l = void 0 !== p && p, f = n2.inTable, h = void 0 !== f && f, d = n2.match, _ = void 0 === d ? null : d, y = n2.prevTagName, v = void 0 === y ? "" : y, g = n2.nextTagName, b = void 0 === g ? "" : g; if (this.tagName = e2, this.rawStr = t3, this.parentTag = i2, this.isFirstSubTag = l, this.prevTagName = v, this.nextTagName = b, this.leadingSpace = c, this.layer = s, this.innerHTML = "", this.match = _, this.inTable = h, this.__detectStr__(t3, this.tagName)) { var O = this.__fetchTagAttr__(t3).attr; this.attrs = O; } else this.attrs = {}; } return t2.prototype.__detectStr__ = function(t3, e2) { if ("<" !== t3[0]) return "Not a valid tag, current tag name: ".concat(this.tagName, ", tag content: ").concat(t3), false; for (var r2 = "", n2 = false, o2 = 1; o2 < t3.length && ">" !== t3[o2]; o2++) !n2 && /(\s|\/)/.test(t3[o2]) && (n2 = true), n2 || (r2 += t3[o2]); return r2 === e2; }, t2.prototype.__fetchTagAttr__ = function(t3) { for (var e2 = "", r2 = 1; r2 < t3.length && ">" !== t3[r2]; r2++) e2 += t3[r2]; return { attr: (0, n.getTagAttributes)(e2) }; }, t2.prototype.beforeParse = function() { var t3 = o.default.get().tagListener; if (t3) { var e2 = t3(this.tagName, { parentTag: this.parentTag, prevTagName: this.prevTagName, nextTagName: this.nextTagName, isFirstSubTag: this.isFirstSubTag, attrs: this.attrs, innerHTML: this.innerHTML, match: this.match, isSelfClosing: true }), r2 = e2.attrs, n2 = e2.match; this.attrs = r2, this.match = n2; } return ""; }, t2.prototype.beforeMergeSpace = function(t3) { return t3; }, t2.prototype.afterMergeSpace = function(t3) { return t3; }, t2.prototype.beforeReturn = function(t3) { return t3; }, t2.prototype.exec = function(t3, e2) { void 0 === t3 && (t3 = ""), void 0 === e2 && (e2 = ""); var r2 = this.beforeParse(); return r2 = t3 + (r2 = this.beforeMergeSpace(r2)) + e2, r2 = this.afterMergeSpace(r2), r2 = this.beforeReturn(r2); }, t2; }(); e.default = i; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = function() { function t2() { } return t2.prototype.exec = function() { return ""; }, t2; }(); e.default = n; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.TRIPLE = e.DOUBLE = e.SINGLE = void 0; e.SINGLE = "\u2608"; e.DOUBLE = "\u2608\u2608"; e.TRIPLE = "\u2608\u2608\u2608"; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(13), o = { html: true, body: true, p: true, div: true, pre: true, section: true, blockquote: true, aside: true, li: true, ul: true, ol: true, form: true, hr: true, h1: true, h2: true, h3: true, h4: true, h5: true, h6: true, dl: true, dd: true, dt: true, br: true, table: true }; e.default = function(t2) { if (!t2) return false; var e2 = (0, n.default)(t2); return !!e2 && !!o[e2]; }; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }), e.__EmptySelfClose__ = e.__Empty__ = void 0; var i = r(0), a = r(4), c = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "__empty__"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.slim = function(t3) { return t3; }, e2.prototype.parseValidSubTag = function(r2, n2, i2) { if ("__skip__" === this.tagName) return t2.prototype.parseValidSubTag.call(this, r2, n2, i2); var a2 = new e2(r2, n2, o({}, i2)); return [a2.exec(), a2]; }, e2.prototype.parseOnlyString = function(e3, r2, n2) { return "__skip__" === this.tagName ? t2.prototype.parseOnlyString.call(this, e3, r2, n2) : [e3, null]; }, e2.prototype.exec = function() { return t2.prototype.exec.call(this, "", ""); }, e2; }(i.default); e.__Empty__ = c; var u = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "__emptyselfclose__"); var n2 = t2.call(this, e3, r2) || this; return n2.tagName = r2, n2; } return n(e2, t2), e2.prototype.exec = function() { return t2.prototype.exec.call(this, "", ""); }, e2; }(a.default); e.__EmptySelfClose__ = u; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }), e.__SkipSelfClose__ = e.__Skip__ = void 0; var o = r(0), i = r(4), a = r(1), c = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "__skip__"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.noNeedWrap = ["td", "th"], o2; } return n(e2, t2), e2.prototype.exec = function() { var e3 = (0, a.isIndependentTag)((0, a.getRealTagName)(this.tagName)) && (!this.parentTag || !this.noNeedWrap.includes(this.parentTag)), r2 = e3 ? "\n" : "", n2 = e3 ? "\n" : ""; return t2.prototype.exec.call(this, r2, n2); }, e2; }(o.default); e.__Skip__ = c; var u = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "__skipselfclose__"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function() { return ""; }, e2; }(i.default); e.__SkipSelfClose__ = u; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }), e.__NoMatchSelfClose__ = e.__NoMatch__ = void 0; var o = r(0), i = r(4), a = function(t2) { function e2(e3, r2) { return void 0 === r2 && (r2 = "__nomatch__"), t2.call(this, e3, r2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return "<".concat(this.tagName, ">").concat(t3, "").concat(this.tagName, ">"); }, e2.prototype.exec = function() { return t2.prototype.exec.call(this, "", ""); }, e2; }(o.default); e.__NoMatch__ = a; var c = function(t2) { function e2(e3, r2) { return void 0 === r2 && (r2 = "__nomatchselfclose__"), t2.call(this, e3, r2) || this; } return n(e2, t2), e2.prototype.exec = function() { return "<".concat(this.tagName, " />"); }, e2; }(i.default); e.__NoMatchSelfClose__ = c; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = { img: true, hr: true, input: true, br: true, meta: true, link: true, "!doctype": true, base: true, col: true, area: true, param: true, object: true, embed: true, keygen: true, source: true }; e.default = function(t2) { return null != t2 && !!n[t2.toLowerCase()]; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(1), o = r(7), i = function() { function t2(t3, e2, r2) { void 0 === e2 && (e2 = "__nomatch__"); var n2 = void 0 === r2 ? {} : r2, o2 = n2.keepSpace, i2 = void 0 !== o2 && o2, a = n2.prevTagName, c = void 0 === a ? "" : a, u = n2.nextTagName, s = void 0 === u ? "" : u, p = n2.prevTagStr, l = void 0 === p ? "" : p, f = n2.prevHasEndSpace, h = void 0 !== f && f, d = n2.prevHasStartSpace, _ = void 0 !== d && d, y = n2.parentTag, v = void 0 === y ? "" : y, g = n2.calcLeading, b = void 0 !== g && g, O = n2.layer, m = void 0 === O ? 1 : O, S = n2.leadingSpace, T = void 0 === S ? "" : S, x = n2.inTable, j = void 0 !== x && x; this.tagName = e2, this.nextTagName = s, this.prevTagName = c, this.parentTag = v, this.prevTagStr = l, this.keepSpace = i2, this.calcLeading = b, this.leadingSpace = T, this.layer = m, this.rawStr = t3, this.inTable = j, this.prevHasEndSpace = h, this.prevHasStartSpace = _, this.hasEndSpace = false, this.hasStartSpace = false, t3.startsWith(" ") && (this.hasStartSpace = true), t3.endsWith(" ") && (this.hasEndSpace = true); } return t2.prototype.slim = function(t3) { if (this.keepSpace) return t3; var e2 = t3.replace(/\s+/g, " "); return (0, o.default)(this.prevTagName) && (e2 = e2.trimLeft()), (0, o.default)(this.nextTagName) && (e2 = e2.trimRight()), e2; }, t2.prototype.beforeReturn = function(t3) { if (this.keepSpace) return t3; if (this.calcLeading) return this.leadingSpace + (0, n.extraEscape)(t3); var e2 = (0, n.extraEscape)(t3); return this.inTable && (e2 = e2.replace(/\|/g, "\\|")), this.prevTagName, this.prevHasEndSpace, this.prevTagStr, (0, n.isSpacePassingTag)(this.prevTagName) && this.prevHasEndSpace && !/^\s+/.test(t3) && !/\s+$/.test(this.prevTagStr) ? " " + t3 : e2; }, t2.prototype.exec = function() { var t3 = this.rawStr; return t3 = this.slim(t3), t3 = this.beforeReturn(t3); }, t2; }(); e.default = i; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(2); e.default = function(t2) { if (!t2) return t2; var e2 = n.default.get().aliasTags; return null != (null === e2 || void 0 === e2 ? void 0 : e2[t2]) ? e2[t2] : t2; }; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "strong"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.layer = 1, o2.match = o2.match || "**", o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.match + t3 + this.match; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), null != this.match && this.prevTagStr && !this.prevTagStr.endsWith("\\" + this.match[0]) && this.prevTagStr.endsWith(this.match[0]) && (e3 = " "), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "del"); var n2 = t2.call(this, e3, r2) || this; return n2.match = n2.match || "~~", n2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.match + t3 + this.match; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "em"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.match = o2.match || "*", o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.match + t3 + this.match; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), "strong" === this.parentTag && this.nextTagStr && (r2 = " "), null != this.match && this.prevTagStr && !this.prevTagStr.endsWith("\\" + this.match) && this.prevTagStr.endsWith(this.match) && (e3 = " "), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "th"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.tagName = r2, o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return t3 + "|"; }, e2.prototype.parseValidSubTag = function(e3, r2, n2) { return "ul" === r2 || "ol" === r2 || "table" === r2 || "pre" === r2 ? [e3.replace(/([\n\r])/g, ""), null] : t2.prototype.parseValidSubTag.call(this, e3, r2, n2); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "a"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { var e3 = this.attrs, r2 = e3.href, n2 = e3.title, o2 = r2 || ""; return n2 ? "[".concat(t3, "](").concat(o2, ' "').concat(n2, '")') : "[".concat(t3, "](").concat(o2, ")"); }, e2.prototype.parseOnlyString = function(e3, r2, n2) { return "tbody" === this.parentTag || "thead" === this.parentTag ? [e3, null] : t2.prototype.parseOnlyString.call(this, e3, r2, n2); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "b"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return t2.prototype.exec.call(this, e3, r2); }, e2; }(r(14).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(7), a = r(0), c = r(1), u = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "blockquote"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.match = o2.match || ">", o2.fillPerLine = o2.fillPerLine.bind(o2), o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { if ("" === t3.trim()) return ""; var e3 = this.match + " " + t3; return this.calcLeading ? this.leadingSpace + e3 : e3; }, e2.prototype.afterMergeSpace = function(t3) { for (var e3 = this, r2 = t3.split("\n"), n2 = r2.length - 1; n2 >= 0; n2--) n2 < r2.length - 1 && ">" === r2[n2].trim() && ">" === r2[n2 + 1].trim() && r2.splice(n2, 1); return (r2 = r2.map(function(t4) { return "" === t4 ? "" : e3.fillPerLine(t4); })).join("\n"); }, e2.prototype.beforeReturn = function(t3) { return t3.replace("\n\n", "\n"); }, e2.prototype.fillPerLine = function(t3) { var e3 = ">"; if (this.calcLeading && (e3 = this.leadingSpace + ">"), !t3.startsWith(e3)) { var r2 = this.match + " " + t3; return this.calcLeading ? this.leadingSpace + r2 : r2; } return t3; }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { var n2; "blockquote" === e3 ? n2 = new ((0, c.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { calcLeading: this.calcLeading, match: this.match + ">", noExtraLine: true })) : n2 = new ((0, c.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { noExtraLine: true })); var a2 = n2.exec(), u2 = ""; this.calcLeading && (u2 = this.leadingSpace); var s = (0, i.default)(r2.prevTagName) && "br" !== r2.prevTagName, p = (0, i.default)(r2.nextTagName) && "br" !== r2.nextTagName, l = (0, i.default)(e3) && "br" !== e3; return this.isFirstSubTag ? [a2.trimLeft().replace(u2, ""), n2] : l ? (a2 = u2 + this.match + a2, s || (a2 = "\n" + a2), !p && r2.nextTagStr && r2.nextTagStr.trim() && (a2 += this.match + "\n"), [a2, n2]) : s ? [u2 + this.match + "\n" + a2, n2] : [a2, n2]; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(a.default); e.default = u; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "b"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function(t3, e3) { return void 0 === e3 && (e3 = "\n"), this.inTable ? "" : " " + e3; }, e2; }(r(4).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(0), a = r(1), c = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "code"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.match = null == o2.match ? "`" : o2.match, o2.noWrap = "`" === o2.match, o2.layer = 1, o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { var e3, r2; return "" !== this.match && "`" !== this.match ? (e3 = this.match + " ", r2 = " " + this.match) : (e3 = this.match, r2 = this.match), e3 + t3 + r2; }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { var n2; return "pre" === e3 ? [(n2 = new ((0, a.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { language: "", match: "" }))).exec("", "\n"), n2] : [(n2 = new ((0, a.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { keepSpace: this.keepSpace, noWrap: this.noWrap }))).exec("", ""), n2]; }, e2.prototype.parseOnlyString = function(t3) { if ("" !== this.match && t3) { var e3 = 1; (t3.startsWith("`") || t3.endsWith("`")) && (e3 = 2, (t3.startsWith("``") || t3.endsWith("``")) && (e3 = 3)), this.match = "`".repeat(e3); } return [(0, a.unescapeStr)(t3), null]; }, e2.prototype.slim = function(t3) { return this.keepSpace ? t3 : t3.trim(); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(i.default); e.default = c; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h1"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "#", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h2"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "##", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h3"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "###", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h4"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "####", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h5"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "#####", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { void 0 === r2 && (r2 = "h6"); var n2 = t2.call(this, e3, r2) || this; return n2.match = "######", n2; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(3).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "hr"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.match = "---", o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function() { return this.leadingSpace + this.match; }, e2.prototype.beforeReturn = function(t3) { return t3.replace(/^(?:\n\s*)/, "\n\n").replace(/(?:\n\s*)$/, "\n\n"), t3; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(4).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "i"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return t2.prototype.exec.call(this, e3, r2); }, e2; }(r(16).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "img"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function() { var t3 = this.attrs, e3 = t3.src, r2 = t3.alt; return r2 || (r2 = ""), e3 || (e3 = ""), ".concat(e3, ")"); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(4).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "input"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function() { var t3 = this.attrs, e3 = t3.type, r2 = t3.checked; return "li" === this.parentTag && "checkbox" === e3 ? null != r2 ? "[x] " : "[ ] " : ""; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(4).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(0), a = r(1), c = r(7), u = r(6), s = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "li"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.match = o2.match || "*", o2.extraGap = "", o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.extraGap + this.leadingSpace + this.match + " " + t3; }, e2.prototype.__calcNextLeading__ = function() { var t3, e3, r2; return 1 === (null === (t3 = this.match) || void 0 === t3 ? void 0 : t3.length) ? u.DOUBLE : 2 === (null === (e3 = this.match) || void 0 === e3 ? void 0 : e3.length) ? u.TRIPLE : 3 === (null === (r2 = this.match) || void 0 === r2 ? void 0 : r2.length) ? u.DOUBLE : u.TRIPLE + u.DOUBLE; }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { var n2 = (0, a.getTagConstructor)(e3), i2 = this.__calcNextLeading__(), c2 = new n2(t3, e3, o(o({}, r2), { calcLeading: true, leadingSpace: this.leadingSpace + i2, layer: this.layer + 1 })), u2 = c2.exec(); return "p" === e3 && (this.extraGap = "\n"), this.isFirstSubTag ? [u2.trimLeft().replace(this.leadingSpace + i2, ""), c2] : [u2, c2]; }, e2.prototype.parseOnlyString = function(e3, r2, n2) { var i2 = false; (0, c.default)(n2.prevTagName) && (i2 = true); var a2 = this.__calcNextLeading__(), u2 = t2.prototype.parseOnlyString.call(this, e3, r2, o(o({}, n2), { calcLeading: i2, leadingSpace: this.leadingSpace + a2, layer: this.layer + 1 })), s2 = u2[0], p = u2[1]; return this.isFirstSubTag ? [s2.replace(this.leadingSpace + a2, ""), p] : [s2, p]; }, e2.prototype.beforeReturn = function(e3) { return t2.prototype.beforeReturn.call(this, e3); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(i.default); e.default = s; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(0), a = r(5), c = r(1), u = r(2), s = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "ol"); var o2, i2 = this; i2 = t2.call(this, e3, r2, n2) || this; var a2 = parseInt(null === (o2 = null === i2 || void 0 === i2 ? void 0 : i2.attrs) || void 0 === o2 ? void 0 : o2.start, 10); return i2.count = isNaN(a2) ? 1 : a2, i2; } return n(e2, t2), e2.prototype.__isValidSubTag__ = function(t3) { if (!t3) return false; var e3 = u.default.get().aliasTags, r2 = (0, c.getTagConstructor)(t3); return "li" === t3 || "li" == (null === e3 || void 0 === e3 ? void 0 : e3[t3]) || r2 === a.default; }, e2.prototype.getValidSubTagName = function(t3) { return t3 && this.__isValidSubTag__(t3) ? t3 : null; }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { var n2 = (0, c.getTagConstructor)(e3); if (this.__isValidSubTag__(e3)) { var i2 = this.count + ".", a2 = new n2(t3, e3, o(o({}, r2), { calcLeading: true, leadingSpace: this.leadingSpace, layer: this.layer, match: i2 })); return this.count++, [a2.exec("", "\n"), a2]; } return ["", null]; }, e2.prototype.parseOnlyString = function() { return ["", null]; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(i.default); e.default = s; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "p"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.calcLeading ? this.leadingSpace + t3 : t3; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), this.prevTagName || !this.prevTagStr || this.prevTagStr.endsWith("\n") || (e3 = "\n\n"), this.nextTagName || !this.nextTagStr || this.nextTagStr.startsWith("\n") || (r2 = "\n\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(0), a = r(8), c = r(1), u = r(6), s = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "pre"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.indentSpace = u.DOUBLE + u.DOUBLE, o2.isIndent = o2.innerHTML.includes("```"), o2.match = o2.isIndent ? "" : "```", o2.language = o2.language || (0, c.getLanguage)(e3), o2.keepSpace = true, o2; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { var e3 = this.isIndent || "code" === this.parentTag ? "" : this.match + this.language + "\n", r2 = ""; return t3.endsWith("\n") || (r2 = "\n"), e3 + t3 + (this.isIndent || "code" === this.parentTag ? "" : r2 + this.match); }, e2.prototype.fillPerLine = function(t3) { var e3 = ""; return this.calcLeading && (e3 = this.leadingSpace), this.isIndent ? e3 + this.indentSpace + t3 : e3 + t3; }, e2.prototype.afterMergeSpace = function(t3) { var e3 = this, r2 = t3.split("\n"); return (r2 = r2.map(function(t4) { return "" === t4 ? "" : e3.fillPerLine(t4); })).join("\n"); }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { if ("code" === e3) { var n2 = new ((0, c.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { match: "", language: this.language, keepSpace: true })); return [n2.exec("", ""), n2]; } var i2 = void 0; return [(i2 = (0, c.isSelfClosing)(e3) ? new a.__EmptySelfClose__(t3, e3) : new a.__Empty__(t3, e3, o(o({}, r2), { keepSpace: true }))).exec(), i2]; }, e2.prototype.parseOnlyString = function(t3) { return [t3, null]; }, e2.prototype.slim = function(t3) { return t3; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(i.default); e.default = s; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2) { return void 0 === r2 && (r2 = "s"), t2.call(this, e3, r2) || this; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return t2.prototype.exec.call(this, e3, r2); }, e2; }(r(15).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "span"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(), o = this && this.__assign || function() { return (o = Object.assign || function(t2) { for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++) for (var o2 in e2 = arguments[r2]) Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]); return t2; }).apply(this, arguments); }; Object.defineProperty(e, "__esModule", { value: true }); var i = r(0), a = r(1); var c = function(t2) { function e2(e3, r2, n2) { void 0 === r2 && (r2 = "table"); var o2 = t2.call(this, e3, r2, n2) || this; return o2.exist_thead = false, o2.exist_tbody = false, o2.empty_tbody = true, o2.tableColumnCount = function(t3) { for (var e4 = "", r3 = 0; r3 < t3.length && !e4.endsWith(""); r3++) e4 += t3[r3]; return Math.max(e4.split("").length - 1, e4.split("").length - 1); }(o2.innerHTML), o2; } return n(e2, t2), e2.prototype.parseValidSubTag = function(t3, e3, r2) { "thead" === e3 && (this.exist_thead = true), "tbody" === e3 && (this.exist_tbody = true, this.empty_tbody = false), "tr" === e3 && (this.empty_tbody = false); var n2 = new ((0, a.getTagConstructor)(e3))(t3, e3, o(o({}, r2), { tableColumnCount: this.tableColumnCount, inTable: true })); return [n2.exec("", "\n"), n2]; }, e2.prototype.parseOnlyString = function() { return ["", null]; }, e2.prototype.beforeReturn = function(t3) { if (!this.exist_thead && !this.exist_tbody && this.empty_tbody) return ""; if (0 === this.tableColumnCount) return ""; if (!this.exist_tbody) { for (var e3 = (0, a.getTableAlign)(this.innerHTML, this.tableColumnCount), r2 = this.leadingSpace + "|", n2 = 0; n2 < e3.length; n2++) r2 += e3[n2]; t3 = this.empty_tbody ? t3 + r2 + "\n" : r2 + "" + t3; } return this.exist_thead || (t3 = "\n" + this.leadingSpace + "|".repeat(this.tableColumnCount + 1) + (t3.startsWith("\n") ? "" : "\n") + t3), t3; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = "\n"), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(i.default); e.default = c; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = r(0), i = r(1), a = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "tbody"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { for (var e3 = (0, i.getTableAlign)(this.innerHTML, this.tableColumnCount), r2 = this.leadingSpace + "|", n2 = 0; n2 < e3.length; n2++) r2 += e3[n2]; return r2 + "\n" + t3; }, e2.prototype.parseOnlyString = function() { return ["", null]; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(o.default); e.default = a; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "td"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.parseValidSubTag = function(e3, r2, n2) { return "ul" === r2 || "ol" === r2 || "table" === r2 || "pre" === r2 ? [e3.replace(/([\n\r])/g, ""), null] : t2.prototype.parseValidSubTag.call(this, e3, r2, n2); }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(17).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "thead"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = ""), t2.prototype.exec.call(this, e3, r2); }, e2; }(r(0).default); e.default = o; }, function(t, e, r) { "use strict"; var n = this && this.__extends || /* @__PURE__ */ function() { var t2 = function(e2, r2) { return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) { t3.__proto__ = e3; } || function(t3, e3) { for (var r3 in e3) Object.prototype.hasOwnProperty.call(e3, r3) && (t3[r3] = e3[r3]); })(e2, r2); }; return function(e2, r2) { if ("function" !== typeof r2 && null !== r2) throw new TypeError("Class extends value " + String(r2) + " is not a constructor or null"); function n2() { this.constructor = e2; } t2(e2, r2), e2.prototype = null === r2 ? Object.create(r2) : (n2.prototype = r2.prototype, new n2()); }; }(); Object.defineProperty(e, "__esModule", { value: true }); var o = r(0), i = r(5), a = r(1), c = r(2), u = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "tr"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.beforeMergeSpace = function(t3) { return this.leadingSpace + "|" + t3; }, e2.prototype.parseValidSubTag = function(t3, e3, r2) { var n2 = c.default.get().aliasTags, o2 = (0, a.getTagConstructor)(e3); if ("td" !== e3 && "th" !== e3 && "td" !== (null === n2 || void 0 === n2 ? void 0 : n2[e3]) && "th" !== (null === n2 || void 0 === n2 ? void 0 : n2[e3]) && o2 !== i.default) return "Should not have tags except