{ "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("") && (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, ""); }, 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(r2, "](").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 or inside , current tag is ".concat(e3, " have been ignore."), ["", null]; var u2 = new o2(t3, e3, r2); return [u2.exec("", ""), u2]; }, e2.prototype.parseOnlyString = function() { return ["", null]; }, e2.prototype.exec = function(e3, r2) { return void 0 === e3 && (e3 = ""), void 0 === r2 && (r2 = "\n"), t2.prototype.exec.call(this, e3, r2); }, e2; }(o.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()); }; }(), 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).default.get().aliasTags, s = function(t2) { function e2(e3, r2, n2) { return void 0 === r2 && (r2 = "ul"), t2.call(this, e3, r2, n2) || this; } return n(e2, t2), e2.prototype.__isValidSubTag__ = function(t3) { if (!t3) return false; var e3 = (0, c.getTagConstructor)(t3); return "li" === t3 || "li" == (null === u || void 0 === u ? void 0 : u[t3]) || e3 === 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 = new n2(t3, e3, o(o({}, r2), { calcLeading: true, leadingSpace: this.leadingSpace, layer: this.layer, match: "*" })); return [i2.exec("", "\n"), i2]; } 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"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(1), o = r(2), i = r(6); e.default = function(t2, e2, r2) { void 0 === r2 && (r2 = false), o.default.reset(), o.default.set(e2, r2), t2 = (t2 = (t2 = (0, n.clearComment)(t2)).trim()).replace(/(\r\n)/g, "").replace(/ /g, " "), t2 = "<".concat(i.DOUBLE, "skip").concat(i.DOUBLE, ">").concat(t2, ""); var a = "", c = "".concat(i.DOUBLE, "skip").concat(i.DOUBLE), u = t2; return a += new ((0, n.getTagConstructor)(c))(u, c, { parentTag: null, prevTagName: null, prevTagStr: a }).exec(), function(t3) { return t3 = (t3 = (t3 = t3.replace(/^\s+/, "")).replace(/\s+$/, "")).replace(/\u2608/g, " "); }((0, n.unescapeStr)(a)); }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.unescapeStr = e.extraEscape = void 0; var n = {}, o = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`", "\u201C": "“", "\u201D": "”" }; for (var i in o) n[o[i]] = i; var a = /&(?:amp|lt|gt|quot|#39|#x60|ldquo|rdquo);/g, c = RegExp(a.source), u = [[/\\/g, "\\\\"], [/\*/g, "\\*"], [/^-/g, "\\-"], [/^\+ /g, "\\+ "], [/^(=+)/g, "\\$1"], [/^(#{1,6}) /g, "\\$1 "], [/`/g, "\\`"], [/^~~~/g, "\\~~~"], [/\[/g, "\\["], [/\]/g, "\\]"], [/^>/g, "\\>"], [/_/g, "\\_"], [/^(\d+)\. /g, "$1\\. "]]; e.unescapeStr = function(t2) { return t2 = t2 && c.test(t2) ? t2.replace(a, function(t3) { return n[t3]; }) : t2; }, e.extraEscape = function(t2) { return u.reduce(function(t3, e2) { return t3.replace(e2[0], e2[1]); }, t2); }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(11); function o(t2, e2) { for (var r2 = ""; e2 < t2.length && /[a-zA-Z0-9!\-_]/.test(t2[e2]); ) r2 += t2[e2++]; return r2.toLowerCase(); } e.default = function(t2) { var e2 = 0; return function() { var r2 = "", i = null, a = 0, c = null, u = false; if (e2 >= t2.length) return [i, r2]; for (var s = e2; s < t2.length; s++) { if ("<" === t2[s] && "/" !== t2[s + 1]) { if ("" !== r2 && null == i && !u) return e2 = s, [i, r2]; var p = o(t2, s + 1); null == i && (i = p), i === p && a++, (0, n.default)(i) && (0 === --a && (u = true), a < 0 && "Tag ".concat(i, " is abnormal")); } else if ("<" === t2[s] && "/" === t2[s + 1]) { if (null == i) { "Tag is not integrity, current tagStr is ".concat(t2.slice(e2)); for (var l = s; l < t2.length && ">" !== t2[l]; ) l++; s = l; continue; } i === (c = o(t2, s + 2)) && a--, a <= 0 && (u = true); } if (r2 += t2[s], ">" === t2[s] && u) return e2 = s + 1, [i, r2]; s === t2.length - 1 && i !== c && (null != c && null != i && (r2 = r2.replace("<".concat(i, ">"), "").replace(""), "")), i = null); } return e2 = t2.length, [i, r2]; }; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(2), o = r(6), i = r(11), a = r(49); e.default = function t2(e2) { var c, u = n.default.get(), s = u.skipTags, p = u.emptyTags, l = u.ignoreTags, f = u.aliasTags, h = u.renderCustomTags, d = (0, i.default)(e2); if ((null === s || void 0 === s ? void 0 : s.includes(e2)) || e2 === "".concat(o.DOUBLE, "skip").concat(o.DOUBLE)) { var _ = r(9); return d ? _.__SkipSelfClose__ : _.__Skip__; } if (null === p || void 0 === p ? void 0 : p.includes(e2)) { var y = r(8); return d ? y.__EmptySelfClose__ : y.__Empty__; } if (null === l || void 0 === l ? void 0 : l.includes(e2)) return r(5).default; if (null != (null === f || void 0 === f ? void 0 : f[e2])) return t2(f[e2]); var v = e2.toLowerCase(); if (true !== h && !(0, a.default)(v)) { if (false === h || "SKIP" === h) return _ = r(9), d ? _.__SkipSelfClose__ : _.__Skip__; if ("EMPTY" === h) return y = r(8), d ? y.__EmptySelfClose__ : y.__Empty__; if ("IGNORE" === h) return r(5).default; } try { c = r(50)("./".concat(e2)).default; } catch (g) { c = d ? r(10).__NoMatchSelfClose__ : r(10).__NoMatch__; } return c; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = ["!doctype", "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "circle", "cite", "clipPath", "code", "col", "colgroup", "command", "content", "data", "datalist", "dd", "defs", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "ellipse", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "foreignObject", "form", "frame", "frameset", "g", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "isindex", "kbd", "keygen", "label", "legend", "li", "line", "linearGradient", "link", "listing", "main", "map", "mark", "marquee", "mask", "math", "menu", "menuitem", "meta", "meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "path", "pattern", "picture", "plaintext", "polygon", "polyline", "pre", "progress", "q", "radialGradient", "rb", "rbc", "rect", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "stop", "strike", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "text", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tspan", "tt", "u", "ul", "var", "video", "wbr", "xmp"]; e.default = function(t2) { return "string" === typeof t2 && n.includes(t2.toLowerCase()); }; }, function(t, e, r) { var n = { "./__Heading__": 3, "./__Heading__.ts": 3, "./__empty__": 8, "./__empty__.ts": 8, "./__ignore__": 5, "./__ignore__.ts": 5, "./__nomatch__": 10, "./__nomatch__.ts": 10, "./__rawString__": 12, "./__rawString__.ts": 12, "./__skip__": 9, "./__skip__.ts": 9, "./a": 18, "./a.ts": 18, "./b": 19, "./b.ts": 19, "./blockquote": 20, "./blockquote.ts": 20, "./br": 21, "./br.ts": 21, "./code": 22, "./code.ts": 22, "./del": 15, "./del.ts": 15, "./em": 16, "./em.ts": 16, "./h1": 23, "./h1.ts": 23, "./h2": 24, "./h2.ts": 24, "./h3": 25, "./h3.ts": 25, "./h4": 26, "./h4.ts": 26, "./h5": 27, "./h5.ts": 27, "./h6": 28, "./h6.ts": 28, "./hr": 29, "./hr.ts": 29, "./i": 30, "./i.ts": 30, "./img": 31, "./img.ts": 31, "./input": 32, "./input.ts": 32, "./li": 33, "./li.ts": 33, "./ol": 34, "./ol.ts": 34, "./p": 35, "./p.ts": 35, "./pre": 36, "./pre.ts": 36, "./s": 37, "./s.ts": 37, "./span": 38, "./span.ts": 38, "./strong": 14, "./strong.ts": 14, "./table": 39, "./table.ts": 39, "./tbody": 40, "./tbody.ts": 40, "./td": 41, "./td.ts": 41, "./th": 17, "./th.ts": 17, "./thead": 42, "./thead.ts": 42, "./tr": 43, "./tr.ts": 43, "./ul": 44, "./ul.ts": 44 }; function o(t2) { var e2 = i(t2); return r(e2); } function i(t2) { if (!r.o(n, t2)) { var e2 = new Error("Cannot find module '" + t2 + "'"); throw e2.code = "MODULE_NOT_FOUND", e2; } return n[t2]; } o.keys = function() { return Object.keys(n); }, o.resolve = i, t.exports = o, o.id = 50; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.default = function(t2) { for (var e2 = {}, r2 = false, n = "", o = "", i = null, a = 0; a <= t2.length; a++) { if (a === t2.length || /\s/.test(t2[a])) { if (a === t2.length || !r2) { var c = n.trim(); "/" === c[c.length - 1] && (c = c.slice(0, c.length - 1)), c && (e2[c] = o.trim()), n = "", o = ""; } } else { if (/['"]/.test(t2[a]) && (!i || t2[a] === i)) { (r2 = !r2) && (i = t2[a]); continue; } if ("=" === t2[a] && !r2) continue; } if (a === t2.length) break; r2 ? o += t2[a] : n += t2[a]; } return e2; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = "javascript"; e.default = function(t2) { var e2 = t2.match(/<.*?class=".*?language-([^\s"]*)?.*".*>/); return e2 ? e2[1] || "" : t2.match(//) ? n : ""; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.default = function(t2) { return t2.replace(//g, ""); }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }); var n = r(13), o = { b: true, a: true, del: true, em: true, i: true, s: true, span: true, strong: true }; e.default = function(t2) { if (null === t2) return true; if (!t2) return false; var e2 = (0, n.default)(t2); return !!e2 && !!o[e2]; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.default = function(t2, e2) { var r2 = { _default_: "---|", center: ":---:|", left: ":---|", right: "---:|", start: ":---|", end: "---:|" }, n = Array(e2).fill(r2._default_), o = t2.match(/<(td|th)(.*?)>/g); return o ? n = (n = o.slice(0, e2)).map(function(t3) { var e3 = t3.match(/align\s*=\s*['"]\s*(center|left|right|start|end)/), n2 = t3.match(/text-align\s*:\s*(center|left|right|start|end)/); return e3 || n2 ? e3 && !n2 ? r2[e3[1]] || r2._default_ : n2 ? r2[n2[1]] || r2._default_ : void 0 : r2._default_; }) : n; }; }, function(t, e, r) { "use strict"; Object.defineProperty(e, "__esModule", { value: true }), e.default = ["th", "td"]; }]).default; }); } }); // gen/items/extra-fields.json var require_extra_fields = __commonJS({ "gen/items/extra-fields.json"(exports, module) { module.exports = { "DOI": { "csl": ["DOI"], "type": "text", "zotero": ["DOI"] }, "ISBN": { "csl": ["ISBN"], "type": "text", "zotero": ["ISBN"] }, "ISSN": { "csl": ["ISSN"], "type": "text", "zotero": ["ISSN"] }, "PMCID": { "csl": ["PMCID"], "type": "text" }, "PMID": { "csl": ["PMID"], "type": "text" }, "URL": { "csl": ["URL"], "type": "text" }, "access date": { "csl": ["accessed"], "type": "date", "zotero": ["accessDate"] }, "accessDate": { "type": "date", "zotero": ["accessDate"] }, "accessed": { "csl": ["accessed"], "type": "date", "zotero": ["accessDate"] }, "admin flag": { "csl": ["admin-flag"], "type": "text", "zotero": ["adminFlag"] }, "admin-flag": { "csl": ["admin-flag"], "type": "text" }, "adminFlag": { "type": "text", "zotero": ["adminFlag"] }, "adoption date": { "type": "date", "zotero": ["adoptionDate"] }, "adoptionDate": { "type": "date", "zotero": ["adoptionDate"] }, "album": { "type": "text", "zotero": ["publicationTitle"] }, "application number": { "type": "text", "zotero": ["applicationNumber"] }, "applicationNumber": { "type": "text", "zotero": ["applicationNumber"] }, "archive": { "csl": ["archive"], "type": "text", "zotero": ["archive"] }, "archive collection": { "csl": ["archive_collection"], "type": "text", "zotero": ["archiveCollection"] }, "archive id": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "archive location": { "csl": ["archive_location"], "type": "text", "zotero": ["archiveLocation"] }, "archive place": { "csl": ["archive-place"], "type": "text" }, "archive-place": { "csl": ["archive-place"], "type": "text" }, "archiveCollection": { "type": "text", "zotero": ["archiveCollection"] }, "archiveID": { "type": "text", "zotero": ["number"] }, "archiveLocation": { "type": "text", "zotero": ["archiveLocation"] }, "archive_collection": { "csl": ["archive_collection"], "type": "text" }, "archive_location": { "csl": ["archive_location"], "type": "text" }, "artist": { "csl": ["author"], "type": "name", "zotero": ["artist"] }, "artwork medium": { "type": "text", "zotero": ["medium"] }, "artwork size": { "type": "text", "zotero": ["artworkSize"] }, "artworkMedium": { "type": "text", "zotero": ["medium"] }, "artworkSize": { "type": "text", "zotero": ["artworkSize"] }, "assembly number": { "type": "text", "zotero": ["assemblyNumber", "seriesNumber"] }, "assemblyNumber": { "type": "text", "zotero": ["assemblyNumber", "seriesNumber"] }, "assignee": { "type": "text", "zotero": ["assignee"] }, "attorney agent": { "csl": ["attorneyAgent"], "type": "name", "zotero": ["attorneyAgent"] }, "attorneyAgent": { "csl": ["attorneyAgent"], "type": "name", "zotero": ["attorneyAgent"] }, "audio file type": { "type": "text", "zotero": ["medium"] }, "audio recording format": { "type": "text", "zotero": ["medium"] }, "audioFileType": { "type": "text", "zotero": ["medium"] }, "audioRecordingFormat": { "type": "text", "zotero": ["medium"] }, "author": { "csl": ["author"], "type": "name", "zotero": ["author"] }, "authority": { "csl": ["authority"], "type": "text", "zotero": ["authority"] }, "bill number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "billNumber": { "type": "text", "zotero": ["number"] }, "blog title": { "type": "text", "zotero": ["publicationTitle"] }, "blogTitle": { "type": "text", "zotero": ["publicationTitle"] }, "book abbreviation": { "csl": ["container-title-short"], "type": "text", "zotero": ["journalAbbreviation"] }, "book author": { "csl": ["container-author"], "type": "name", "zotero": ["bookAuthor"] }, "book title": { "type": "text", "zotero": ["publicationTitle"] }, "bookAbbreviation": { "type": "text", "zotero": ["journalAbbreviation"] }, "bookAuthor": { "type": "name", "zotero": ["bookAuthor"] }, "bookTitle": { "type": "text", "zotero": ["publicationTitle"] }, "call number": { "csl": ["call-number"], "type": "text", "zotero": ["callNumber"] }, "call-number": { "csl": ["call-number"], "type": "text" }, "callNumber": { "type": "text", "zotero": ["callNumber"] }, "cartographer": { "csl": ["author"], "type": "name", "zotero": ["cartographer"] }, "case name": { "csl": ["title"], "type": "text", "zotero": ["title"] }, "caseName": { "type": "text", "zotero": ["title"] }, "cast member": { "csl": ["castMember"], "type": "name", "zotero": ["castMember"] }, "castMember": { "csl": ["castMember"], "type": "name", "zotero": ["castMember"] }, "chapter number": { "csl": ["chapter-number"], "type": "text", "zotero": ["session"] }, "chapter-number": { "csl": ["chapter-number"], "type": "text" }, "citation key": { "type": "text", "zotero": ["citationKey"] }, "citationKey": { "type": "text", "zotero": ["citationKey"] }, "code": { "type": "text", "zotero": ["code"] }, "code number": { "type": "text", "zotero": ["codeNumber"] }, "code pages": { "csl": ["page"], "type": "text", "zotero": ["pages"] }, "code volume": { "type": "text", "zotero": ["volume"] }, "codeNumber": { "type": "text", "zotero": ["codeNumber"] }, "codePages": { "type": "text", "zotero": ["pages"] }, "codeVolume": { "type": "text", "zotero": ["volume"] }, "collection editor": { "csl": ["collection-editor"], "type": "name", "zotero": ["seriesEditor"] }, "collection number": { "csl": ["collection-number"], "type": "text", "zotero": ["seriesNumber", "assemblyNumber", "regnalYear", "yearAsVolume"] }, "collection title": { "csl": ["collection-title"], "type": "text", "zotero": ["seriesTitle", "series", "parentTreaty"] }, "collection-editor": { "csl": ["collection-editor"], "type": "name" }, "collection-number": { "csl": ["collection-number"], "type": "text" }, "collection-title": { "csl": ["collection-title"], "type": "text" }, "commenter": { "csl": ["commenter"], "type": "name", "zotero": ["commenter"] }, "committee": { "csl": ["committee"], "type": "text", "zotero": ["committee"] }, "company": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "composer": { "csl": ["composer"], "type": "name", "zotero": ["composer"] }, "conference date": { "type": "date", "zotero": ["conferenceDate"] }, "conference name": { "type": "text", "zotero": ["conferenceName"] }, "conferenceDate": { "type": "date", "zotero": ["conferenceDate"] }, "conferenceName": { "type": "text", "zotero": ["conferenceName"] }, "container author": { "csl": ["container-author"], "type": "name", "zotero": ["bookAuthor"] }, "container title": { "csl": ["container-title"], "type": "text", "zotero": ["publicationTitle", "reporter", "code"] }, "container title short": { "csl": ["container-title-short"], "type": "text", "zotero": ["journalAbbreviation"] }, "container-author": { "csl": ["container-author"], "type": "name" }, "container-title": { "csl": ["container-title"], "type": "text" }, "container-title-short": { "csl": ["container-title-short"], "type": "text" }, "contributor": { "csl": ["contributor"], "type": "name", "zotero": ["contributor"] }, "cosponsor": { "csl": ["cosponsor"], "type": "name", "zotero": ["cosponsor"] }, "counsel": { "csl": ["counsel"], "type": "name", "zotero": ["counsel"] }, "country": { "type": "text", "zotero": ["country"] }, "court": { "type": "text", "zotero": ["court", "authority"] }, "csl type": { "csl": ["csl-type"], "type": "text" }, "csl-type": { "csl": ["csl-type"], "type": "text" }, "date": { "csl": ["issued"], "type": "date", "zotero": ["date"] }, "date amended": { "type": "date", "zotero": ["dateAmended"] }, "date decided": { "csl": ["issued"], "type": "date", "zotero": ["date"] }, "date enacted": { "csl": ["issued"], "type": "date", "zotero": ["date"] }, "dateAmended": { "type": "date", "zotero": ["dateAmended"] }, "dateDecided": { "type": "date", "zotero": ["date"] }, "dateEnacted": { "type": "date", "zotero": ["date"] }, "dictionary title": { "type": "text", "zotero": ["publicationTitle"] }, "dictionaryTitle": { "type": "text", "zotero": ["publicationTitle"] }, "dimensions": { "csl": ["dimensions"], "type": "text", "zotero": ["artworkSize", "runningTime"] }, "director": { "csl": ["director"], "type": "name", "zotero": ["director"] }, "distributor": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "division": { "csl": ["division"], "type": "text", "zotero": ["division"] }, "docket number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "docketNumber": { "type": "text", "zotero": ["number"] }, "document name": { "csl": ["document-name"], "type": "text", "zotero": ["documentName"] }, "document number": { "csl": ["document-number"], "type": "text", "zotero": ["documentNumber", "number"] }, "document-name": { "csl": ["document-name"], "type": "text" }, "document-number": { "csl": ["document-number"], "type": "text" }, "documentName": { "type": "text", "zotero": ["documentName"] }, "documentNumber": { "type": "text", "zotero": ["documentNumber", "number"] }, "doi": { "csl": ["DOI"], "type": "text", "zotero": ["DOI"] }, "edition": { "csl": ["edition"], "type": "text", "zotero": ["edition"] }, "editor": { "csl": ["editor"], "type": "name", "zotero": ["editor"] }, "editorial director": { "csl": ["editorial-director"], "type": "name" }, "editorial-director": { "csl": ["editorial-director"], "type": "name" }, "encyclopedia title": { "type": "text", "zotero": ["publicationTitle"] }, "encyclopediaTitle": { "type": "text", "zotero": ["publicationTitle"] }, "episode number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "episodeNumber": { "type": "text", "zotero": ["number"] }, "event": { "csl": ["event"], "type": "text", "zotero": ["resolutionLabel"] }, "event date": { "csl": ["event-date"], "type": "date", "zotero": ["dateAmended", "signingDate", "conferenceDate"] }, "event place": { "csl": ["event-place"], "type": "text" }, "event title": { "csl": ["event-title"], "type": "text" }, "event-date": { "csl": ["event-date"], "type": "date" }, "event-place": { "csl": ["event-place"], "type": "text" }, "event-title": { "csl": ["event-title"], "type": "text" }, "filing date": { "csl": ["submitted"], "type": "date", "zotero": ["filingDate"] }, "filingDate": { "type": "date", "zotero": ["filingDate"] }, "first page": { "csl": ["page"], "type": "text", "zotero": ["pages"] }, "firstPage": { "type": "text", "zotero": ["pages"] }, "format": { "type": "text", "zotero": ["medium"] }, "forum title": { "type": "text", "zotero": ["publicationTitle"] }, "forumTitle": { "type": "text", "zotero": ["publicationTitle"] }, "gazette flag": { "csl": ["gazette-flag"], "type": "text", "zotero": ["gazetteFlag"] }, "gazette-flag": { "csl": ["gazette-flag"], "type": "text" }, "gazetteFlag": { "type": "text", "zotero": ["gazetteFlag"] }, "genre": { "csl": ["genre"], "type": "text", "zotero": ["genre", "type"] }, "guest": { "csl": ["guest"], "type": "name", "zotero": ["guest"] }, "history": { "type": "text", "zotero": ["history"] }, "identifier": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "illustrator": { "csl": ["illustrator"], "type": "name" }, "institution": { "csl": ["publisher"], "type": "text", "zotero": ["institution", "publisher"] }, "interview medium": { "type": "text", "zotero": ["medium"] }, "interviewMedium": { "type": "text", "zotero": ["medium"] }, "interviewee": { "csl": ["author"], "type": "name", "zotero": ["interviewee"] }, "interviewer": { "csl": ["interviewer"], "type": "name", "zotero": ["interviewer"] }, "inventor": { "csl": ["author"], "type": "name", "zotero": ["inventor"] }, "isbn": { "csl": ["ISBN"], "type": "text", "zotero": ["ISBN"] }, "issn": { "csl": ["ISSN"], "type": "text", "zotero": ["ISSN"] }, "issue": { "csl": ["issue"], "type": "text", "zotero": ["issue"] }, "issue date": { "csl": ["issued"], "type": "date", "zotero": ["date"] }, "issueDate": { "type": "date", "zotero": ["date"] }, "issued": { "csl": ["issued"], "type": "date", "zotero": ["date"] }, "issuing authority": { "type": "text", "zotero": ["issuingAuthority", "authority"] }, "issuingAuthority": { "type": "text", "zotero": ["issuingAuthority", "authority"] }, "journal abbreviation": { "csl": ["container-title-short"], "type": "text", "zotero": ["journalAbbreviation"] }, "journalAbbreviation": { "type": "text", "zotero": ["journalAbbreviation"] }, "jurisdiction": { "csl": ["jurisdiction"], "type": "text", "zotero": ["jurisdiction"] }, "label": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "language": { "csl": ["language"], "type": "text", "zotero": ["language"] }, "legal status": { "csl": ["status"], "type": "text", "zotero": ["legalStatus", "status"] }, "legalStatus": { "type": "text", "zotero": ["legalStatus", "status"] }, "legislative body": { "type": "text", "zotero": ["legislativeBody", "authority"] }, "legislativeBody": { "type": "text", "zotero": ["legislativeBody", "authority"] }, "letter type": { "type": "text", "zotero": ["type"] }, "letterType": { "type": "text", "zotero": ["type"] }, "library catalog": { "csl": ["source"], "type": "text", "zotero": ["libraryCatalog"] }, "libraryCatalog": { "type": "text", "zotero": ["libraryCatalog"] }, "license": { "csl": ["license"], "type": "text", "zotero": ["rights"] }, "manuscript type": { "type": "text", "zotero": ["type"] }, "manuscriptType": { "type": "text", "zotero": ["type"] }, "map type": { "type": "text", "zotero": ["type"] }, "mapType": { "type": "text", "zotero": ["type"] }, "medium": { "csl": ["medium"], "type": "text", "zotero": ["medium"] }, "meeting name": { "type": "text", "zotero": ["meetingName"] }, "meeting number": { "type": "text", "zotero": ["meetingNumber"] }, "meetingName": { "type": "text", "zotero": ["meetingName"] }, "meetingNumber": { "type": "text", "zotero": ["meetingNumber"] }, "name of act": { "csl": ["title"], "type": "text", "zotero": ["title"] }, "nameOfAct": { "type": "text", "zotero": ["title"] }, "network": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "news case date": { "type": "date", "zotero": ["newsCaseDate"] }, "newsCaseDate": { "type": "date", "zotero": ["newsCaseDate"] }, "num pages": { "csl": ["number-of-pages"], "type": "text", "zotero": ["numPages"] }, "numPages": { "type": "text", "zotero": ["numPages"] }, "number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "number of pages": { "csl": ["number-of-pages"], "type": "text", "zotero": ["numPages"] }, "number of volumes": { "csl": ["number-of-volumes"], "type": "text", "zotero": ["numberOfVolumes"] }, "number-of-pages": { "csl": ["number-of-pages"], "type": "text" }, "number-of-volumes": { "csl": ["number-of-volumes"], "type": "text" }, "numberOfVolumes": { "type": "text", "zotero": ["numberOfVolumes"] }, "opening date": { "csl": ["opening-date"], "type": "date", "zotero": ["openingDate"] }, "opening-date": { "csl": ["opening-date"], "type": "date" }, "openingDate": { "type": "date", "zotero": ["openingDate"] }, "opus": { "type": "text", "zotero": ["opus"] }, "organization": { "type": "text", "zotero": ["authority"] }, "original author": { "csl": ["original-author"], "type": "name" }, "original date": { "csl": ["original-date"], "type": "date", "zotero": ["originalDate"] }, "original publisher": { "csl": ["original-publisher"], "type": "text" }, "original publisher place": { "csl": ["original-publisher-place"], "type": "text" }, "original title": { "csl": ["original-title"], "type": "text" }, "original-author": { "csl": ["original-author"], "type": "name" }, "original-date": { "csl": ["original-date"], "type": "date" }, "original-publisher": { "csl": ["original-publisher"], "type": "text" }, "original-publisher-place": { "csl": ["original-publisher-place"], "type": "text" }, "original-title": { "csl": ["original-title"], "type": "text" }, "originalDate": { "type": "date", "zotero": ["originalDate"] }, "page": { "csl": ["page"], "type": "text", "zotero": ["pages"] }, "pages": { "csl": ["page"], "type": "text", "zotero": ["pages"] }, "parent treaty": { "type": "text", "zotero": ["parentTreaty"] }, "parentTreaty": { "type": "text", "zotero": ["parentTreaty"] }, "patent number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "patentNumber": { "type": "text", "zotero": ["number"] }, "performer": { "csl": ["performer"], "type": "name", "zotero": ["performer"] }, "place": { "csl": ["event-place", "publisher-place"], "type": "text", "zotero": ["place"] }, "pmcid": { "csl": ["PMCID"], "type": "text" }, "pmid": { "csl": ["PMID"], "type": "text" }, "podcaster": { "csl": ["author"], "type": "name", "zotero": ["podcaster"] }, "post type": { "type": "text", "zotero": ["type"] }, "postType": { "type": "text", "zotero": ["type"] }, "presentation type": { "type": "text", "zotero": ["type"] }, "presentationType": { "type": "text", "zotero": ["type"] }, "presenter": { "csl": ["author"], "type": "name", "zotero": ["presenter"] }, "priority date": { "type": "date", "zotero": ["priorityDate"] }, "priority numbers": { "type": "text", "zotero": ["priorityNumbers"] }, "priorityDate": { "type": "date", "zotero": ["priorityDate"] }, "priorityNumbers": { "type": "text", "zotero": ["priorityNumbers"] }, "proceedings title": { "type": "text", "zotero": ["publicationTitle"] }, "proceedingsTitle": { "type": "text", "zotero": ["publicationTitle"] }, "producer": { "csl": ["producer"], "type": "name", "zotero": ["producer"] }, "program title": { "type": "text", "zotero": ["publicationTitle"] }, "programTitle": { "type": "text", "zotero": ["publicationTitle"] }, "programmer": { "csl": ["author"], "type": "name", "zotero": ["programmer"] }, "programming language": { "type": "text", "zotero": ["programmingLanguage"] }, "programmingLanguage": { "type": "text", "zotero": ["programmingLanguage"] }, "public law number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "publicLawNumber": { "type": "text", "zotero": ["number"] }, "publication date": { "csl": ["publication-date"], "type": "date", "zotero": ["publicationDate"] }, "publication number": { "csl": ["publication-number"], "type": "text", "zotero": ["publicationNumber"] }, "publication title": { "type": "text", "zotero": ["publicationTitle"] }, "publication-date": { "csl": ["publication-date"], "type": "date" }, "publication-number": { "csl": ["publication-number"], "type": "text" }, "publicationDate": { "type": "date", "zotero": ["publicationDate"] }, "publicationNumber": { "type": "text", "zotero": ["publicationNumber"] }, "publicationTitle": { "type": "text", "zotero": ["publicationTitle"] }, "publisher": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "publisher place": { "csl": ["publisher-place"], "type": "text" }, "publisher-place": { "csl": ["publisher-place"], "type": "text" }, "recipient": { "csl": ["recipient"], "type": "name", "zotero": ["recipient"] }, "references": { "csl": ["references"], "type": "text", "zotero": ["references"] }, "regnal year": { "type": "text", "zotero": ["regnalYear"] }, "regnalYear": { "type": "text", "zotero": ["regnalYear"] }, "regulation type": { "type": "text", "zotero": ["regulationType", "type"] }, "regulationType": { "type": "text", "zotero": ["regulationType", "type"] }, "regulatory body": { "type": "text", "zotero": ["regulatoryBody", "legislativeBody"] }, "regulatoryBody": { "type": "text", "zotero": ["regulatoryBody", "legislativeBody"] }, "reign": { "type": "text", "zotero": ["reign"] }, "release": { "csl": ["edition"], "type": "text", "zotero": ["edition"] }, "report number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "report type": { "type": "text", "zotero": ["type"] }, "reportNumber": { "type": "text", "zotero": ["number"] }, "reportType": { "type": "text", "zotero": ["type"] }, "reporter": { "type": "text", "zotero": ["reporter", "publicationTitle"] }, "reporter volume": { "type": "text", "zotero": ["volume"] }, "reporterVolume": { "type": "text", "zotero": ["volume"] }, "repository": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "repository location": { "csl": ["event-place", "publisher-place"], "type": "text", "zotero": ["place"] }, "repositoryLocation": { "type": "text", "zotero": ["place"] }, "resolution label": { "type": "text", "zotero": ["resolutionLabel"] }, "resolutionLabel": { "type": "text", "zotero": ["resolutionLabel"] }, "reviewed author": { "csl": ["reviewed-author"], "type": "name", "zotero": ["reviewedAuthor"] }, "reviewed title": { "csl": ["reviewed-title"], "type": "text" }, "reviewed-author": { "csl": ["reviewed-author"], "type": "name" }, "reviewed-title": { "csl": ["reviewed-title"], "type": "text" }, "reviewedAuthor": { "type": "name", "zotero": ["reviewedAuthor"] }, "rights": { "csl": ["rights"], "type": "text", "zotero": ["rights"] }, "running time": { "type": "text", "zotero": ["runningTime"] }, "runningTime": { "type": "text", "zotero": ["runningTime"] }, "scale": { "csl": ["scale"], "type": "text", "zotero": ["scale"] }, "script writer": { "csl": ["script-writer"], "type": "name", "zotero": ["scriptwriter"] }, "script-writer": { "csl": ["script-writer"], "type": "name" }, "scriptwriter": { "csl": ["scriptwriter"], "type": "name", "zotero": ["scriptwriter"] }, "section": { "csl": ["section"], "type": "text", "zotero": ["section"] }, "series": { "type": "text", "zotero": ["series"] }, "series editor": { "csl": ["collection-editor"], "type": "name", "zotero": ["seriesEditor"] }, "series number": { "type": "text", "zotero": ["seriesNumber"] }, "series text": { "type": "text", "zotero": ["seriesText"] }, "series title": { "type": "text", "zotero": ["seriesTitle"] }, "seriesEditor": { "type": "name", "zotero": ["seriesEditor"] }, "seriesNumber": { "type": "text", "zotero": ["seriesNumber"] }, "seriesText": { "type": "text", "zotero": ["seriesText"] }, "seriesTitle": { "type": "text", "zotero": ["seriesTitle"] }, "session": { "csl": ["chapter-number"], "type": "text", "zotero": ["session"] }, "session type": { "type": "text", "zotero": ["sessionType", "type"] }, "sessionType": { "type": "text", "zotero": ["sessionType", "type"] }, "short title": { "csl": ["title-short"], "type": "text", "zotero": ["shortTitle"] }, "shortTitle": { "type": "text", "zotero": ["shortTitle"] }, "signing date": { "type": "date", "zotero": ["signingDate"] }, "signingDate": { "type": "date", "zotero": ["signingDate"] }, "source": { "csl": ["source"], "type": "text", "zotero": ["libraryCatalog"] }, "sponsor": { "csl": ["author"], "type": "name", "zotero": ["sponsor"] }, "status": { "csl": ["status"], "type": "text", "zotero": ["status"] }, "studio": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "subject": { "csl": ["title"], "type": "text", "zotero": ["title"] }, "submitted": { "csl": ["submitted"], "type": "date", "zotero": ["filingDate"] }, "supplement": { "csl": ["supplement"], "type": "text", "zotero": ["supplementName"] }, "supplement name": { "csl": ["supplement"], "type": "text", "zotero": ["supplementName"] }, "supplementName": { "type": "text", "zotero": ["supplementName"] }, "system": { "type": "text", "zotero": ["system"] }, "testimony by": { "csl": ["testimonyBy"], "type": "name", "zotero": ["testimonyBy"] }, "testimonyBy": { "csl": ["testimonyBy"], "type": "name", "zotero": ["testimonyBy"] }, "thesis type": { "type": "text", "zotero": ["type"] }, "thesisType": { "type": "text", "zotero": ["type"] }, "title": { "csl": ["title"], "type": "text", "zotero": ["title"] }, "title short": { "csl": ["title-short"], "type": "text", "zotero": ["shortTitle"] }, "title-short": { "csl": ["title-short"], "type": "text" }, "translator": { "csl": ["translator"], "type": "name", "zotero": ["translator"] }, "treaty number": { "csl": ["number"], "type": "text", "zotero": ["number"] }, "treatyNumber": { "type": "text", "zotero": ["number"] }, "type": { "type": "text", "zotero": ["type"] }, "university": { "csl": ["publisher"], "type": "text", "zotero": ["publisher"] }, "url": { "csl": ["URL"], "type": "text", "zotero": ["url"] }, "version": { "csl": ["version"], "type": "text", "zotero": ["versionNumber"] }, "version number": { "csl": ["version"], "type": "text", "zotero": ["versionNumber"] }, "versionNumber": { "type": "text", "zotero": ["versionNumber"] }, "video recording format": { "type": "text", "zotero": ["medium"] }, "videoRecordingFormat": { "type": "text", "zotero": ["medium"] }, "volume": { "csl": ["volume"], "type": "text", "zotero": ["volume"] }, "volume title": { "csl": ["volume-title"], "type": "text", "zotero": ["volumeTitle"] }, "volume-title": { "csl": ["volume-title"], "type": "text" }, "volumeTitle": { "type": "text", "zotero": ["volumeTitle"] }, "website title": { "type": "text", "zotero": ["publicationTitle"] }, "website type": { "type": "text", "zotero": ["type"] }, "websiteTitle": { "type": "text", "zotero": ["publicationTitle"] }, "websiteType": { "type": "text", "zotero": ["type"] }, "words by": { "csl": ["wordsBy"], "type": "name", "zotero": ["wordsBy"] }, "wordsBy": { "csl": ["wordsBy"], "type": "name", "zotero": ["wordsBy"] }, "year as volume": { "type": "text", "zotero": ["yearAsVolume"] }, "yearAsVolume": { "type": "text", "zotero": ["yearAsVolume"] } }; } }); // node_modules/citeproc/citeproc_commonjs.js var require_citeproc_commonjs = __commonJS({ "node_modules/citeproc/citeproc_commonjs.js"(exports, module) { var CSL2 = { PROCESSOR_VERSION: "1.4.61", error: function(str) { if ("undefined" === typeof Error) { throw new Error("citeproc-js error: " + str); } else { throw "citeproc-js error: " + str; } }, debug: function(str) { if ("undefined" === typeof console) { dump("CSL: " + str + "\n"); } else { } }, toLocaleUpperCase(str) { var arr = this.tmp.lang_array; try { str = str.toLocaleUpperCase(arr); } catch (e) { str = str.toUpperCase(); } return str; }, toLocaleLowerCase(str) { var arr = this.tmp.lang_array; try { str = str.toLocaleLowerCase(arr); } catch (e) { str = str.toLowerCase(); } return str; }, LOCATOR_LABELS_REGEXP: new RegExp("^((vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\\.)\\s+(.*)"), STATUTE_SUBDIV_PLAIN_REGEX: /(?:(?:^| )(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/, STATUTE_SUBDIV_PLAIN_REGEX_FRONT: /(?:^\s*[.,;]*\s*(?:vrs|sv|subpara|op|subch|add|amend|annot|app|art|bibliog|bk|ch|cl|col|cmt|dec|dept|div|ex|fig|fld|fol|n|hypo|illus|intro|l|no|p|pp|para|pt|pmbl|princ|pub|r|rn|sched|sec|ser|subdiv|subsec|supp|tbl|tit|vol)\. *)/, STATUTE_SUBDIV_STRINGS: { "vrs.": "verse", "sv.": "sub-verbo", "subpara.": "subparagraph", "op.": "opus", "subch.": "subchapter", "add.": "addendum", "amend.": "amendment", "annot.": "annotation", "app.": "appendix", "art.": "article", "bibliog.": "bibliography", "bk.": "book", "ch.": "chapter", "cl.": "clause", "col.": "column", "cmt.": "comment", "dec.": "decision", "dept.": "department", "ex.": "example", "fig.": "figure", "fld.": "field", "fol.": "folio", "n.": "note", "hypo.": "hypothetical", "illus.": "illustration", "intro.": "introduction", "l.": "line", "no.": "issue", "p.": "page", "pp.": "page", "para.": "paragraph", "pt.": "part", "pmbl.": "preamble", "princ.": "principle", "pub.": "publication", "r.": "rule", "rn.": "randnummer", "sched.": "schedule", "sec.": "section", "ser.": "series,", "subdiv.": "subdivision", "subsec.": "subsection", "supp.": "supplement", "tbl.": "table", "tit.": "title", "vol.": "volume" }, STATUTE_SUBDIV_STRINGS_REVERSE: { "verse": "vrs.", "sub-verbo": "sv.", "sub verbo": "sv.", "subparagraph": "subpara.", "opus": "op.", "subchapter": "subch.", "addendum": "add.", "amendment": "amend.", "annotation": "annot.", "appendix": "app.", "article": "art.", "bibliography": "bibliog.", "book": "bk.", "chapter": "ch.", "clause": "cl.", "column": "col.", "comment": "cmt.", "decision": "dec.", "department": "dept.", "example": "ex.", "figure": "fig.", "field": "fld.", "folio": "fol.", "note": "n.", "hypothetical": "hypo.", "illustration": "illus.", "introduction": "intro.", "line": "l.", "issue": "no.", "page": "p.", "paragraph": "para.", "part": "pt.", "preamble": "pmbl.", "principle": "princ.", "publication": "pub.", "rule": "r.", "randnummer": "rn.", "schedule": "sched.", "section": "sec.", "series,": "ser.", "subdivision": "subdiv.", "subsection": "subsec.", "supplement": "supp.", "table": "tbl.", "title": "tit.", "volume": "vol." }, LOCATOR_LABELS_MAP: { "vrs": "verse", "sv": "sub-verbo", "subpara": "subparagraph", "op": "opus", "subch": "subchapter", "add": "addendum", "amend": "amendment", "annot": "annotation", "app": "appendix", "art": "article", "bibliog": "bibliography", "bk": "book", "ch": "chapter", "cl": "clause", "col": "column", "cmt": "comment", "dec": "decision", "dept": "department", "ex": "example", "fig": "figure", "fld": "field", "fol": "folio", "n": "note", "hypo": "hypothetical", "illus": "illustration", "intro": "introduction", "l": "line", "no": "issue", "p": "page", "pp": "page", "para": "paragraph", "pt": "part", "pmbl": "preamble", "princ": "principle", "pub": "publication", "r": "rule", "rn": "randnummer", "sched": "schedule", "sec": "section", "ser": "series,", "subdiv": "subdivision", "subsec": "subsection", "supp": "supplement", "tbl": "table", "tit": "title", "vol": "volume" }, MODULE_MACROS: { "juris-pretitle": true, "juris-title": true, "juris-pretitle-short": true, "juris-title-short": true, "juris-main": true, "juris-main-short": true, "juris-tail": true, "juris-tail-short": true, "juris-locator": true }, MODULE_TYPES: { "legal_case": true, "legislation": true, "bill": true, "hearing": true, "gazette": true, "report": true, "regulation": true, "standard": true, "patent": true, "locator": true }, checkNestedBrace: function(state) { if (state.opt.xclass === "note") { this.depth = 0; this.update = function(str) { var str = str ? str : ""; var lst = str.split(/([\(\)])/); for (var i = 1, ilen = lst.length; i < ilen; i += 2) { if (lst[i] === "(") { if (1 === this.depth % 2) { lst[i] = "["; } this.depth += 1; } else if (lst[i] === ")") { if (0 === this.depth % 2) { lst[i] = "]"; } this.depth -= 1; } } var ret = lst.join(""); return ret; }; } else { this.update = function(str) { return str; }; } }, MULTI_FIELDS: ["event", "publisher", "publisher-place", "event-place", "title", "container-title", "collection-title", "authority", "genre", "title-short", "medium", "country", "jurisdiction", "archive", "archive-place"], LangPrefsMap: { "title": "titles", "title-short": "titles", "event": "titles", "genre": "titles", "medium": "titles", "container-title": "journals", "collection-title": "titles", "archive": "journals", "publisher": "publishers", "authority": "publishers", "publisher-place": "places", "event-place": "places", "archive-place": "places", "jurisdiction": "places", "number": "places", "edition": "places", "issue": "places", "volume": "places" }, AbbreviationSegments: function() { this["container-title"] = {}; this["collection-title"] = {}; this["institution-entire"] = {}; this["institution-part"] = {}; this.nickname = {}; this.number = {}; this.title = {}; this.place = {}; this.hereinafter = {}; this.classic = {}; this["container-phrase"] = {}; this["title-phrase"] = {}; }, getAbbrevsDomain: function(state, country, lang) { var domain = null; if (state.opt.availableAbbrevDomains && country && country !== "default") { var globalDomainPreference = state.locale[state.opt.lang].opts["jurisdiction-preference"]; var itemDomainPreference = null; if (state.locale[lang]) { itemDomainPreference = state.locale[lang].opts["jurisdiction-preference"]; } if (itemDomainPreference) { for (var j = itemDomainPreference.length - 1; j > -1; j--) { if (state.opt.availableAbbrevDomains[country].indexOf(itemDomainPreference[j]) > -1) { domain = itemDomainPreference[j]; break; } } } if (!domain && globalDomainPreference) { for (var j = globalDomainPreference.length - 1; j > -1; j--) { if (state.opt.availableAbbrevDomains[country].indexOf(globalDomainPreference[j]) > -1) { domain = globalDomainPreference[j]; break; } } } } return domain; }, FIELD_CATEGORY_REMAP: { "title": "title", "container-title": "container-title", "collection-title": "collection-title", "country": "place", "number": "number", "place": "place", "archive": "container-title", "title-short": "title", "genre": "title", "event": "title", "medium": "title", "archive-place": "place", "publisher-place": "place", "event-place": "place", "jurisdiction": "place", "language-name": "place", "language-name-original": "place", "call-number": "number", "chapter-number": "number", "collection-number": "number", "edition": "number", "page": "number", "issue": "number", "locator": "number", "locator-extra": "number", "number-of-pages": "number", "number-of-volumes": "number", "volume": "number", "citation-number": "number", "publisher": "institution-part" }, parseLocator: function(item) { if (this.opt.development_extensions.locator_date_and_revision) { if (item.locator) { item.locator = "" + item.locator; var idx = item.locator.indexOf("|"); if (idx > -1) { var raw_locator = item.locator; item.locator = raw_locator.slice(0, idx); raw_locator = raw_locator.slice(idx + 1); var m = raw_locator.match(/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*/); if (m) { item["locator-date"] = this.fun.dateparser.parseDateToObject(m[1]); raw_locator = raw_locator.slice(m[1].length); } item["locator-extra"] = raw_locator.replace(/^\s+/, "").replace(/\s+$/, ""); } } } if (item.locator) { item.locator = ("" + item.locator).replace(/\s+$/, ""); } return item; }, normalizeLocaleStr: function(str) { if (!str) { return; } var lst = str.split("-"); lst[0] = lst[0].toLowerCase(); if (lst[1]) { lst[1] = lst[1].toUpperCase(); } return lst.join("-"); }, parseNoteFieldHacks: function(Item, validFieldsForType, allowDateOverride) { if ("string" !== typeof Item.note) { return; } var elems = []; var lines = Item.note.split("\n"); for (var i = 0, ilen = lines.length; i < ilen; i++) { var line = lines[i]; var elems = []; var m = line.match(CSL2.NOTE_FIELDS_REGEXP); if (m) { var splt = line.split(CSL2.NOTE_FIELDS_REGEXP); for (var j = 0, jlen = splt.length - 1; j < jlen; j++) { elems.push(splt[j]); elems.push(m[j]); } elems.push(splt[splt.length - 1]); for (var j = 1, jlen = elems.length; j < jlen; j += 2) { if (elems[j - 1].trim() && (i > 0 || j > 1) && !elems[j - 1].match(CSL2.NOTE_FIELD_REGEXP)) { break; } else { elems[j] = "\n" + elems[j].slice(2, -1).trim() + "\n"; } } lines[i] = elems.join(""); } } lines = lines.join("\n").split("\n"); var offset = 0; var names = {}; for (var i = 0, ilen = lines.length; i < ilen; i++) { var line = lines[i]; var mm = line.match(CSL2.NOTE_FIELD_REGEXP); if (!line.trim()) { continue; } else if (!mm) { if (i === 0) { continue; } else { offset = i; break; } } var key = mm[1]; var val = mm[2].replace(/^\s+/, "").replace(/\s+$/, ""); if (key === "type") { Item.type = val; lines[i] = ""; } else if (CSL2.DATE_VARIABLES.indexOf(key.replace(/^alt-/, "")) > -1) { if (!Item[key] || allowDateOverride) { Item[key] = CSL2.DateParser.parseDateToArray(val); if (!validFieldsForType || validFieldsForType[key] && this.isDateString(val)) { lines[i] = ""; } } } else if (!Item[key]) { if (CSL2.NAME_VARIABLES.indexOf(key.replace(/^alt-/, "")) > -1) { if (!names[key]) { names[key] = []; } var lst = val.split(/\s*\|\|\s*/); if (lst.length === 1) { names[key].push({ literal: lst[0] }); } else if (lst.length === 2) { var name2 = { family: lst[0], given: lst[1] }; CSL2.parseParticles(name2); names[key].push(name2); } } else { Item[key] = val; } if (!validFieldsForType || validFieldsForType[key]) { lines[i] = ""; } } } for (var key in names) { Item[key] = names[key]; } if (validFieldsForType) { if (lines[offset].trim()) { lines[offset] = "\n" + lines[offset]; } for (var i = offset - 1; i > -1; i--) { if (!lines[i].trim()) { lines = lines.slice(0, i).concat(lines.slice(i + 1)); } } } Item.note = lines.join("\n").trim(); }, checkPrefixSpaceAppend: function(state, prefix) { if (!prefix) { prefix = ""; } var sp = ""; var test_prefix = prefix.replace(/<[^>]+>/g, "").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g, ""); var test_char = test_prefix.slice(-1); if (test_prefix.match(CSL2.ENDSWITH_ROMANESQUE_REGEXP)) { sp = " "; } else if (CSL2.TERMINAL_PUNCTUATION.slice(0, -1).indexOf(test_char) > -1) { sp = " "; } else if (test_char.match(/[\)\],0-9]/)) { sp = " "; } var prefix = (prefix + sp).replace(/\s+/g, " "); return prefix; }, checkIgnorePredecessor: function(state, prefix) { var ignorePredecessor = false; var test_prefix = prefix.replace(/<[^>]+>/g, "").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g, ""); var test_char = test_prefix.slice(-1); if (CSL2.TERMINAL_PUNCTUATION.slice(0, -1).indexOf(test_char) > -1 && prefix.trim().indexOf(" ") > -1) { state.tmp.term_predecessor = false; return true; } return false; }, checkSuffixSpacePrepend: function(state, suffix) { if (!suffix) { return ""; } if (suffix.match(CSL2.STARTSWITH_ROMANESQUE_REGEXP) || ["[", "("].indexOf(suffix.slice(0, 1)) > -1) { suffix = " " + suffix; } return suffix; }, GENDERS: ["masculine", "feminine"], ERROR_NO_RENDERED_FORM: 1, PREVIEW: "Just for laughs.", ASSUME_ALL_ITEMS_REGISTERED: 2, START: 0, END: 1, SINGLETON: 2, SEEN: 6, SUCCESSOR: 3, SUCCESSOR_OF_SUCCESSOR: 4, SUPPRESS: 5, SINGULAR: 0, PLURAL: 1, LITERAL: true, BEFORE: 1, AFTER: 2, DESCENDING: 1, ASCENDING: 2, PRIMARY: 1, SECONDARY: 2, POSITION_FIRST: 0, POSITION_SUBSEQUENT: 1, POSITION_IBID: 2, POSITION_IBID_WITH_LOCATOR: 3, POSITION_CONTAINER_SUBSEQUENT: 4, POSITION_MAP: { "0": 0, "4": 1, "1": 2, "2": 3, "3": 4 }, POSITION_TEST_VARS: ["position", "first-reference-note-number", "near-note"], AREAS: ["citation", "citation_sort", "bibliography", "bibliography_sort", "intext"], CITE_FIELDS: ["first-reference-note-number", "first-container-reference-note-number", "locator", "locator-extra"], SWAPPING_PUNCTUATION: [".", "!", "?", ":", ","], TERMINAL_PUNCTUATION: [":", ".", ";", "!", "?", " "], // update modes NONE: 0, NUMERIC: 1, POSITION: 2, TRIGRAPH: 3, DATE_PARTS: ["year", "month", "day"], DATE_PARTS_ALL: ["year", "month", "day", "season"], DATE_PARTS_INTERNAL: ["year", "month", "day", "year_end", "month_end", "day_end"], NAME_PARTS: ["non-dropping-particle", "family", "given", "dropping-particle", "suffix", "literal"], DISAMBIGUATE_OPTIONS: [ "disambiguate-add-names", "disambiguate-add-givenname", "disambiguate-add-year-suffix" ], GIVENNAME_DISAMBIGUATION_RULES: [ "all-names", "all-names-with-initials", "primary-name", "primary-name-with-initials", "by-cite" ], NAME_ATTRIBUTES: [ "and", "delimiter-precedes-last", "delimiter-precedes-et-al", "initialize-with", "initialize", "name-as-sort-order", "sort-separator", "et-al-min", "et-al-use-first", "et-al-subsequent-min", "et-al-subsequent-use-first", "form", "prefix", "suffix", "delimiter" ], LOOSE: 0, STRICT: 1, TOLERANT: 2, PREFIX_PUNCTUATION: /[.;:]\s*$/, SUFFIX_PUNCTUATION: /^\s*[.;:,\(\)]/, NUMBER_REGEXP: /(?:^\d+|\d+$)/, // // \u0400-\u042f are cyrillic and extended cyrillic capitals // this is not fully smart yet. can't do what this was trying to do // with regexps, actually; we want to identify strings with a leading // capital letter, and any subsequent capital letters. Have to compare // locale caps version with existing version, character by character. // hard stuff, but if it breaks, that's what to do. // \u0600-\u06ff is Arabic/Persian // \u200c-\u200e and \u202a-\u202e are special spaces and left-right // control characters NAME_INITIAL_REGEXP: /^([A-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u042f\u0590-\u05d4\u05d6-\u05ff\u0600-\u06ff\u0370\u0372\u0376\u0386\u0388-\u03ab\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03fd-\u03ff])([a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0400-\u052f\u0600-\u06ff\u0370-\u03ff\u1f00-\u1fff]*|)(\.)*/, ROMANESQUE_REGEXP: /[-0-9a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/, ROMANESQUE_NOT_REGEXP: /[^a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/g, STARTSWITH_ROMANESQUE_REGEXP: /^[&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/, ENDSWITH_ROMANESQUE_REGEXP: /[.;:&a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]$/, ALL_ROMANESQUE_REGEXP: /^[a-zA-Z\u0e01-\u0e5b\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]+$/, VIETNAMESE_SPECIALS: /[\u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]/, VIETNAMESE_NAMES: /^(?:(?:[.AaBbCcDdEeGgHhIiKkLlMmNnOoPpQqRrSsTtUuVvXxYy \u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]{2,6})(\s+|$))+$/, NOTE_FIELDS_REGEXP: /\{:(?:[\-_a-z]+|[A-Z]+):[^\}]+\}/g, NOTE_FIELD_REGEXP: /^([\-_a-z]+|[A-Z]+):\s*([^\}]+)$/, PARTICLE_GIVEN_REGEXP: /^([^ ]+(?:\u02bb |\u2019 | |\' ) *)(.+)$/, PARTICLE_FAMILY_REGEXP: /^([^ ]+(?:\-|\u02bb|\u2019| |\') *)(.+)$/, DISPLAY_CLASSES: ["block", "left-margin", "right-inline", "indent"], NAME_VARIABLES: [ "author", "chair", "collection-editor", "compiler", "composer", "container-author", "contributor", "curator", "director", "editor", "editor-translator", "editorial-director", "executive-producer", "guest", "host", "illustrator", "interviewer", "narrator", "organizer", "original-author", "performer", "producer", "recipient", "reviewed-author", "script-writer", "series-creator", "translator", "commenter" ], CREATORS: [ "author", "chair", "collection-editor", "compiler", "composer", "container-author", "contributor", "curator", "director", "editor", "editor-translator", "editorial-director", "executive-producer", "guest", "host", "illustrator", "interviewer", "narrator", "organizer", "original-author", "performer", "producer", "recipient", "reviewed-author", "script-writer", "series-creator", "translator", "commenter" ], NUMERIC_VARIABLES: [ "call-number", "chapter-number", "collection-number", "division", "edition", "page", "issue", "locator", "locator-extra", "number", "number-of-pages", "number-of-volumes", "part-number", "printing-number", "section", "supplement-number", "version", "volume", "supplement", // maybe deprecated this? supplement-number should serve this purpose in standard CSL. "citation-number" ], //var x = new Array(); //x = x.concat(["title","container-title","issued","page"]); //x = x.concat(["locator","collection-number","original-date"]); //x = x.concat(["reporting-date","decision-date","filing-date"]); //x = x.concat(["revision-date"]); //NUMERIC_VARIABLES = x.slice(); DATE_VARIABLES: [ "locator-date", "issued", "event-date", "accessed", "original-date", "publication-date", "available-date", "submitted", "alt-issued", "alt-event" ], VARIABLES_WITH_SHORT_FORM: [ "title", "container-title" ], TITLE_FIELD_SPLITS: function(seg) { var keys = ["title", "short", "main", "sub", "subjoin"]; var ret = {}; for (var i = 0, ilen = keys.length; i < ilen; i++) { ret[keys[i]] = seg + "title" + (keys[i] === "title" ? "" : "-" + keys[i]); } return ret; }, demoteNoiseWords: function(state, fld, drop_or_demote) { var SKIP_WORDS = state.locale[state.opt.lang].opts["leading-noise-words"]; if (fld && drop_or_demote) { fld = fld.split(/\s+/); fld.reverse(); var toEnd = []; for (var j = fld.length - 1; j > -1; j += -1) { if (SKIP_WORDS.indexOf(fld[j].toLowerCase()) > -1) { toEnd.push(fld.pop()); } else { break; } } fld.reverse(); var start = fld.join(" "); var end = toEnd.join(" "); if ("drop" === drop_or_demote || !end) { fld = start; } else if ("demote" === drop_or_demote) { fld = [start, end].join(", "); } } return fld; }, extractTitleAndSubtitle: function(Item, narrowSpaceLocale) { var narrowSpace = narrowSpaceLocale ? "\u202F" : ""; var segments = [""]; if (this.opt.development_extensions.split_container_title) { segments.push("container-"); } for (var i = 0, ilen = segments.length; i < ilen; i++) { var seg = segments[i]; var title = CSL2.TITLE_FIELD_SPLITS(seg); var langs = [false]; if (Item.multi) { for (var lang in Item.multi._keys[title.short]) { langs.push(lang); } } for (var j = 0, jlen = langs.length; j < jlen; j++) { var lang = langs[j]; var vals = {}; if (lang) { if (Item.multi._keys[title.title]) { vals[title.title] = Item.multi._keys[title.title][lang]; } if (Item.multi._keys[title["short"]]) { vals[title["short"]] = Item.multi._keys[title["short"]][lang]; } } else { vals[title.title] = Item[title.title]; vals[title["short"]] = Item[title["short"]]; } vals[title.main] = vals[title.title]; vals[title.sub] = false; var shortTitle = vals[title["short"]]; if (vals[title.title]) { if (shortTitle && shortTitle.toLowerCase() === vals[title.title].toLowerCase()) { vals[title.main] = vals[title.title]; vals[title.subjoin] = ""; vals[title.sub] = ""; } else if (shortTitle) { var tail = vals[title.title].slice(shortTitle.replace(/[\?\!]+$/, "").length); var top = vals[title.title].replace(tail.replace(/^[\?\!]+/, ""), "").trim(); var m = CSL2.TITLE_SPLIT_REGEXP.matchfirst.exec(tail); if (m && top.toLowerCase() === shortTitle.toLowerCase()) { vals[title.main] = top; vals[title.subjoin] = m[1].replace(/[\?\!]+(\s*)$/, "$1"); vals[title.sub] = tail.replace(CSL2.TITLE_SPLIT_REGEXP.matchfirst, ""); if (this.opt.development_extensions.force_short_title_casing_alignment) { vals[title["short"]] = vals[title.main]; } } else { var splitTitle = CSL2.TITLE_SPLIT(vals[title.title]); if (splitTitle.length == 3) { vals[title.main] = splitTitle[0]; vals[title.subjoin] = splitTitle[1]; vals[title.sub] = splitTitle[2]; } else { vals[title.main] = vals[title.title]; vals[title.subjoin] = ""; vals[title.sub] = ""; } } } else { var splitTitle = CSL2.TITLE_SPLIT(vals[title.title]); if (splitTitle.length == 3) { vals[title.main] = splitTitle[0]; vals[title.subjoin] = splitTitle[1]; vals[title.sub] = splitTitle[2]; if (this.opt.development_extensions.implicit_short_title && Item.type !== "legal_case") { if (!Item[title.short] && !vals[title.main].match(/^[\-\.[0-9]+$/)) { var punct = vals[title.subjoin].trim(); if (["?", "!"].indexOf(punct) === -1) { punct = ""; } vals[title.short] = vals[title.main] + punct; } } } else { vals[title.main] = vals[title.title]; vals[title.subjoin] = ""; vals[title.sub] = ""; } } if (vals[title.subjoin]) { if (vals[title.subjoin].match(/([\?\!])/)) { var m = vals[title.subjoin].match(/(\s*)$/); vals[title.main] = vals[title.main] + narrowSpace + vals[title.subjoin].trim(); vals[title.subjoin] = m[1]; } } } if (vals[title.subjoin]) { if (vals[title.subjoin].indexOf(":") > -1) { vals[title.subjoin] = narrowSpace + ": "; } if (vals[title.subjoin].indexOf("-") > -1 || vals[title.subjoin].indexOf("\u2014") > -1) { vals[title.subjoin] = "\u2014"; } } if (lang) { for (var key in vals) { if (!Item.multi._keys[key]) { Item.multi._keys[key] = {}; } Item.multi._keys[key][lang] = vals[key]; } } else { for (var key in vals) { Item[key] = vals[key]; } } } } }, titlecaseSentenceOrNormal: function(state, Item, seg, lang, sentenceCase) { var title = CSL2.TITLE_FIELD_SPLITS(seg); var vals = {}; if (lang && Item.multi) { if (Item.multi._keys[title.title]) { vals[title.title] = Item.multi._keys[title.title][lang]; } if (Item.multi._keys[title.main]) { vals[title.main] = Item.multi._keys[title.main][lang]; } if (Item.multi._keys[title.sub]) { vals[title.sub] = Item.multi._keys[title.sub][lang]; } if (Item.multi._keys[title.subjoin]) { vals[title.subjoin] = Item.multi._keys[title.subjoin][lang]; } } else { vals[title.title] = Item[title.title]; vals[title.main] = Item[title.main]; vals[title.sub] = Item[title.sub]; vals[title.subjoin] = Item[title.subjoin]; } if (vals[title.main] && vals[title.sub]) { var mainTitle = vals[title.main]; var subJoin = vals[title.subjoin]; var subTitle = vals[title.sub]; if (sentenceCase) { mainTitle = CSL2.Output.Formatters.sentence(state, mainTitle); subTitle = CSL2.Output.Formatters.sentence(state, subTitle); } else if (state.opt.development_extensions.uppercase_subtitles) { subTitle = CSL2.Output.Formatters["capitalize-first"](state, subTitle); } return [mainTitle, subJoin, subTitle].join(""); } else if (vals[title.title]) { if (sentenceCase) { return CSL2.Output.Formatters.sentence(state, vals[title.title]); } else if (state.opt.development_extensions.uppercase_subtitles) { var splits = CSL2.TITLE_SPLIT(vals[title.title]); for (var i = 0, ilen = splits.length; i < ilen; i += 2) { splits[i] = CSL2.Output.Formatters["capitalize-first"](state, splits[i]); } for (var i = 1, ilen = splits.length - 1; i < ilen; i += 2) { var m = splits[i].match(/([:\?\!] )/); if (m) { var narrowSpace = state.opt["default-locale"][0].slice(0, 2).toLowerCase() === "fr" ? "\u202F" : ""; splits[i] = narrowSpace + m[1]; } if (splits[i].indexOf("-") > -1 || splits[i].indexOf("\u2014") > -1) { splits[i] = "\u2014"; } } vals[title.title] = splits.join(""); return vals[title.title]; } else { return vals[title.title]; } } else { return ""; } }, getSafeEscape: function(state) { if (["bibliography", "citation"].indexOf(state.tmp.area) > -1) { var callbacks = []; if (state.opt.development_extensions.thin_non_breaking_space_html_hack && state.opt.mode === "html") { callbacks.push(function(txt) { return txt.replace(/\u202f/g, ''); }); } if (callbacks.length) { return function(txt) { for (var i = 0, ilen = callbacks.length; i < ilen; i += 1) { txt = callbacks[i](txt); } return CSL2.Output.Formats[state.opt.mode].text_escape(txt); }; } else { return CSL2.Output.Formats[state.opt.mode].text_escape; } } else { return function(txt) { return txt; }; } }, SKIP_WORDS: ["about", "above", "across", "afore", "after", "against", "al", "along", "alongside", "amid", "amidst", "among", "amongst", "anenst", "apropos", "apud", "around", "as", "aside", "astride", "at", "athwart", "atop", "barring", "before", "behind", "below", "beneath", "beside", "besides", "between", "beyond", "but", "by", "circa", "despite", "down", "during", "et", "except", "for", "forenenst", "from", "given", "in", "inside", "into", "lest", "like", "modulo", "near", "next", "notwithstanding", "of", "off", "on", "onto", "out", "over", "per", "plus", "pro", "qua", "sans", "since", "than", "through", " thru", "throughout", "thruout", "till", "to", "toward", "towards", "under", "underneath", "until", "unto", "up", "upon", "versus", "vs.", "v.", "vs", "v", "via", "vis-\xE0-vis", "with", "within", "without", "according to", "ahead of", "apart from", "as for", "as of", "as per", "as regards", "aside from", "back to", "because of", "close to", "due to", "except for", "far from", "inside of", "instead of", "near to", "next to", "on to", "out from", "out of", "outside of", "prior to", "pursuant to", "rather than", "regardless of", "such as", "that of", "up to", "where as", "or", "yet", "so", "for", "and", "nor", "a", "an", "the", "de", "d'", "von", "van", "c", "ca"], FORMAT_KEY_SEQUENCE: [ "@strip-periods", "@font-style", "@font-variant", "@font-weight", "@text-decoration", "@vertical-align", "@quotes" ], INSTITUTION_KEYS: [ "font-style", "font-variant", "font-weight", "text-decoration", "text-case" ], SUFFIX_CHARS: "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ROMAN_NUMERALS: [ ["", "i", "ii", "iii", "iv", "v", "vi", "vii", "viii", "ix"], ["", "x", "xx", "xxx", "xl", "l", "lx", "lxx", "lxxx", "xc"], ["", "c", "cc", "ccc", "cd", "d", "dc", "dcc", "dccc", "cm"], ["", "m", "mm", "mmm", "mmmm", "mmmmm"] ], LANGS: { "af-ZA": "Afrikaans", "ar": "Arabic", "bg-BG": "Bulgarian", "ca-AD": "Catalan", "cs-CZ": "Czech", "da-DK": "Danish", "de-AT": "Austrian", "de-CH": "German (CH)", "de-DE": "German (DE)", "el-GR": "Greek", "en-GB": "English (GB)", "en-US": "English (US)", "es-ES": "Spanish", "et-EE": "Estonian", "eu": "European", "fa-IR": "Persian", "fi-FI": "Finnish", "fr-CA": "French (CA)", "fr-FR": "French (FR)", "he-IL": "Hebrew", "hr-HR": "Croatian", "hu-HU": "Hungarian", "is-IS": "Icelandic", "it-IT": "Italian", "ja-JP": "Japanese", "km-KH": "Khmer", "ko-KR": "Korean", "lt-LT": "Lithuanian", "lv-LV": "Latvian", "mn-MN": "Mongolian", "nb-NO": "Norwegian (Bokm\xE5l)", "nl-NL": "Dutch", "nn-NO": "Norwegian (Nynorsk)", "pl-PL": "Polish", "pt-BR": "Portuguese (BR)", "pt-PT": "Portuguese (PT)", "ro-RO": "Romanian", "ru-RU": "Russian", "sk-SK": "Slovak", "sl-SI": "Slovenian", "sr-RS": "Serbian", "sv-SE": "Swedish", "th-TH": "Thai", "tr-TR": "Turkish", "uk-UA": "Ukrainian", "vi-VN": "Vietnamese", "zh-CN": "Chinese (CN)", "zh-TW": "Chinese (TW)" }, LANG_BASES: { af: "af_ZA", ar: "ar", bg: "bg_BG", ca: "ca_AD", cs: "cs_CZ", da: "da_DK", de: "de_DE", el: "el_GR", en: "en_US", es: "es_ES", et: "et_EE", eu: "eu", fa: "fa_IR", fi: "fi_FI", fr: "fr_FR", he: "he_IL", hr: "hr-HR", hu: "hu_HU", is: "is_IS", it: "it_IT", ja: "ja_JP", km: "km_KH", ko: "ko_KR", lt: "lt_LT", lv: "lv-LV", mn: "mn_MN", nb: "nb_NO", nl: "nl_NL", nn: "nn-NO", pl: "pl_PL", pt: "pt_PT", ro: "ro_RO", ru: "ru_RU", sk: "sk_SK", sl: "sl_SI", sr: "sr_RS", sv: "sv_SE", th: "th_TH", tr: "tr_TR", uk: "uk_UA", vi: "vi_VN", zh: "zh_CN" }, SUPERSCRIPTS: { "\xAA": "a", "\xB2": "2", "\xB3": "3", "\xB9": "1", "\xBA": "o", "\u02B0": "h", "\u02B1": "\u0266", "\u02B2": "j", "\u02B3": "r", "\u02B4": "\u0279", "\u02B5": "\u027B", "\u02B6": "\u0281", "\u02B7": "w", "\u02B8": "y", "\u02E0": "\u0263", "\u02E1": "l", "\u02E2": "s", "\u02E3": "x", "\u02E4": "\u0295", "\u1D2C": "A", "\u1D2D": "\xC6", "\u1D2E": "B", "\u1D30": "D", "\u1D31": "E", "\u1D32": "\u018E", "\u1D33": "G", "\u1D34": "H", "\u1D35": "I", "\u1D36": "J", "\u1D37": "K", "\u1D38": "L", "\u1D39": "M", "\u1D3A": "N", "\u1D3C": "O", "\u1D3D": "\u0222", "\u1D3E": "P", "\u1D3F": "R", "\u1D40": "T", "\u1D41": "U", "\u1D42": "W", "\u1D43": "a", "\u1D44": "\u0250", "\u1D45": "\u0251", "\u1D46": "\u1D02", "\u1D47": "b", "\u1D48": "d", "\u1D49": "e", "\u1D4A": "\u0259", "\u1D4B": "\u025B", "\u1D4C": "\u025C", "\u1D4D": "g", "\u1D4F": "k", "\u1D50": "m", "\u1D51": "\u014B", "\u1D52": "o", "\u1D53": "\u0254", "\u1D54": "\u1D16", "\u1D55": "\u1D17", "\u1D56": "p", "\u1D57": "t", "\u1D58": "u", "\u1D59": "\u1D1D", "\u1D5A": "\u026F", "\u1D5B": "v", "\u1D5C": "\u1D25", "\u1D5D": "\u03B2", "\u1D5E": "\u03B3", "\u1D5F": "\u03B4", "\u1D60": "\u03C6", "\u1D61": "\u03C7", "\u2070": "0", "\u2071": "i", "\u2074": "4", "\u2075": "5", "\u2076": "6", "\u2077": "7", "\u2078": "8", "\u2079": "9", "\u207A": "+", "\u207B": "\u2212", "\u207C": "=", "\u207D": "(", "\u207E": ")", "\u207F": "n", "\u2120": "SM", "\u2122": "TM", "\u3192": "\u4E00", "\u3193": "\u4E8C", "\u3194": "\u4E09", "\u3195": "\u56DB", "\u3196": "\u4E0A", "\u3197": "\u4E2D", "\u3198": "\u4E0B", "\u3199": "\u7532", "\u319A": "\u4E59", "\u319B": "\u4E19", "\u319C": "\u4E01", "\u319D": "\u5929", "\u319E": "\u5730", "\u319F": "\u4EBA", "\u02C0": "\u0294", "\u02C1": "\u0295", "\u06E5": "\u0648", "\u06E6": "\u064A" }, SUPERSCRIPTS_REGEXP: new RegExp("[\xAA\xB2\xB3\xB9\xBA\u02B0\u02B1\u02B2\u02B3\u02B4\u02B5\u02B6\u02B7\u02B8\u02E0\u02E1\u02E2\u02E3\u02E4\u1D2C\u1D2D\u1D2E\u1D30\u1D31\u1D32\u1D33\u1D34\u1D35\u1D36\u1D37\u1D38\u1D39\u1D3A\u1D3C\u1D3D\u1D3E\u1D3F\u1D40\u1D41\u1D42\u1D43\u1D44\u1D45\u1D46\u1D47\u1D48\u1D49\u1D4A\u1D4B\u1D4C\u1D4D\u1D4F\u1D50\u1D51\u1D52\u1D53\u1D54\u1D55\u1D56\u1D57\u1D58\u1D59\u1D5A\u1D5B\u1D5C\u1D5D\u1D5E\u1D5F\u1D60\u1D61\u2070\u2071\u2074\u2075\u2076\u2077\u2078\u2079\u207A\u207B\u207C\u207D\u207E\u207F\u2120\u2122\u3192\u3193\u3194\u3195\u3196\u3197\u3198\u3199\u319A\u319B\u319C\u319D\u319E\u319F\u02C0\u02C1\u06E5\u06E6]", "g"), // I think we need to have separate args for prefix and term, // since they have different effects between comma-safe and comma-safe-numbers-only. // Either that, or -- oh, we could just bang the two together for the test where // necessary. UPDATE_GROUP_CONTEXT_CONDITION: function(state, str, valueTerm, token, value) { if (!state.opt.use_context_condition) return; var flags = state.tmp.group_context.tip; if (flags.condition) { if (!flags.condition.termtxt) { flags.condition.termtxt = str; flags.condition.valueTerm = valueTerm; } if (!flags.value_seen && flags.condition.test === "comma-safe-numbers-only") { if (value) { flags.value_seen = true; if (!value.match(/^[0-9]/)) { state.tmp.just_did_number = false; } } } } else { if (token && token.decorations.filter((o) => o[0] === "@vertical-align").length > 0) { state.tmp.just_did_number = false; } else if (token && token.strings.suffix) { state.tmp.just_did_number = false; } else if (str) { if (str.match(/[0-9]$/)) { state.tmp.just_did_number = true; } else { state.tmp.just_did_number = false; } } } }, EVALUATE_GROUP_CONDITION: function(state, flags) { if (!state.opt.use_context_condition) return; var testres; var numbersOnly = flags.condition.test === "comma-safe-numbers-only"; if (flags.condition.test === "empty-label") { testres = !flags.condition.termtxt; } else if (flags.condition.test === "empty-label-no-decor") { testres = !flags.condition.termtxt || flags.condition.termtxt.indexOf("%s") > -1; } else if (["comma-safe", "comma-safe-numbers-only"].indexOf(flags.condition.test) > -1) { var locale_term = flags.condition.termtxt; var termStartAlpha = false; if (flags.condition.termtxt) { termStartAlpha = flags.condition.termtxt.slice(0, 1).match(CSL2.ALL_ROMANESQUE_REGEXP); } var num = state.tmp.just_did_number; if (num) { if (flags.condition.valueTerm) { testres = numbersOnly ? false : true; } else if (!locale_term) { testres = true; } else if (termStartAlpha) { testres = numbersOnly ? false : true; } else if (["always", "after-number"].indexOf(state.opt.require_comma_on_symbol) > -1) { testres = true; } else { testres = false; } } else { if (flags.condition.valueTerm) { testres = false; } else if (!locale_term) { testres = false; } else if (termStartAlpha) { testres = numbersOnly ? false : true; } else if (state.opt.require_comma_on_symbol === "always") { testres = true; } else { testres = false; } } } if (testres) { var force_suppress = false; } else { var force_suppress = true; } if (flags.condition.not) { force_suppress = !force_suppress; } return force_suppress; }, SYS_OPTIONS: [ "prioritize_disambiguate_condition", "csl_reverse_lookup_support", "main_title_from_short_title", "uppercase_subtitles", "force_short_title_casing_alignment", "implicit_short_title", "split_container_title" ], TITLE_SPLIT_REGEXP: function() { var splits = [ "\\.\\s+", "\\!\\s+", "\\?\\s+", "\\s*::*\\s+", "\\s*\u2014\\s*", "\\s+\\-\\s+", "\\s*\\-\\-\\-*\\s*" ]; return { match: new RegExp("(" + splits.join("|") + ")", "g"), matchfirst: new RegExp("^(" + splits.join("|") + ")"), split: new RegExp("(?:" + splits.join("|") + ")") }; }(), TITLE_SPLIT: function(str) { if (!str) { return str; } var m = str.match(CSL2.TITLE_SPLIT_REGEXP.match); var lst = str.split(CSL2.TITLE_SPLIT_REGEXP.split); for (var i = lst.length - 2; i > -1; i--) { lst[i] = lst[i].trim(); if (lst[i] && lst[i].slice(-1).toLowerCase() !== lst[i].slice(-1)) { lst[i] = lst[i] + m[i] + lst[i + 1]; lst = lst.slice(0, i + 1).concat(lst.slice(i + 2)); } else { lst = lst.slice(0, i + 1).concat([m[i]]).concat(lst.slice(i + 1)); } } return lst; }, GET_COURT_CLASS: function(state, Item, sortKey) { var cls = ""; var authority = null; var country = Item.jurisdiction ? Item.jurisdiction.split(":")[0] : null; var classType = "court_condition_classes"; if (sortKey) { classType = "court_key_classes"; } if (country && Item.authority) { if ("string" === typeof Item.authority) { authority = Item.authority; } else { if (Item.authority[0] && Item.authority[0].literal) { authority = Item.authority[0].literal; } } } if (authority) { if (this.lang && state.locale[this.lang].opts[classType] && state.locale[this.lang].opts[classType][country] && state.locale[this.lang].opts[classType][country][authority]) { cls = state.locale[this.lang].opts[classType][country][authority]; } else if (state.locale[state.opt["default-locale"][0]].opts[classType] && state.locale[state.opt["default-locale"][0]].opts[classType][country] && state.locale[state.opt["default-locale"][0]].opts[classType][country][authority]) { cls = state.locale[state.opt["default-locale"][0]].opts[classType][country][authority]; } } return cls; }, SET_COURT_CLASSES: function(state, lang, myxml, dataObj) { var nodes = myxml.getNodesByName(dataObj, "court-class"); for (var pos = 0, len = myxml.numberofnodes(nodes); pos < len; pos += 1) { var courtclass = nodes[pos]; var attributes = myxml.attributes(courtclass); var cls = attributes["@name"]; var country = attributes["@country"]; var courts = attributes["@courts"]; var classType = "court_key_classes"; if (state.registry) { classType = "court_condition_classes"; } if (cls && country && courts) { courts = courts.trim().split(/\s+/); if (!state.locale[lang].opts[classType]) { state.locale[lang].opts[classType] = {}; } if (!state.locale[lang].opts[classType][country]) { state.locale[lang].opts[classType][country] = {}; } for (var i = 0, ilen = courts.length; i < ilen; i++) { state.locale[lang].opts[classType][country][courts[i]] = cls; } } } }, INIT_JURISDICTION_MACROS: function(state, Item, item, macroName) { if (Item["best-jurisdiction"]) { return true; } if (!state.sys.retrieveStyleModule || !CSL2.MODULE_MACROS[macroName] || !Item.jurisdiction) { return false; } var jurisdictionList = state.getJurisdictionList(Item.jurisdiction); if (!state.opt.jurisdictions_seen[jurisdictionList[0]]) { var res = state.retrieveAllStyleModules(jurisdictionList); for (var jurisdiction in res) { var fallback = state.loadStyleModule(jurisdiction, res[jurisdiction]); if (fallback) { if (!res[fallback]) { Object.assign(res, state.retrieveAllStyleModules([fallback])); state.loadStyleModule(fallback, res[fallback], true); } } } } var jurisdictionList = state.getJurisdictionList(Item.jurisdiction); if (state.opt.parallel.enable) { if (!state.parallel) { state.parallel = new CSL2.Parallel(state); } } for (var i = 0, ilen = jurisdictionList.length; i < ilen; i++) { var jurisdiction = jurisdictionList[i]; if (item) { if (state.juris[jurisdiction] && !item["best-jurisdiction"] && state.juris[jurisdiction].types.locator) { Item["best-jurisdiction"] = jurisdiction; } } if (state.juris[jurisdiction] && state.juris[jurisdiction].types[Item.type]) { Item["best-jurisdiction"] = jurisdiction; return true; } } return false; } }; CSL2.XmlJSON = function(dataObj) { this.dataObj = dataObj; this.institution = { name: "institution", attrs: { "institution-parts": "long", "delimiter": ", " }, children: [ { name: "institution-part", attrs: { name: "long" }, children: [] } ] }; }; CSL2.XmlJSON.prototype.clean = function(json) { return json; }; CSL2.XmlJSON.prototype.getStyleId = function(myjson, styleName) { var tagName = "id"; if (styleName) { tagName = "title"; } var ret = ""; var children = myjson.children; for (var i = 0, ilen = children.length; i < ilen; i++) { if (children[i].name === "info") { var grandkids = children[i].children; for (var j = 0, jlen = grandkids.length; j < jlen; j++) { if (grandkids[j].name === tagName) { ret = grandkids[j].children[0]; } } } } return ret; }; CSL2.XmlJSON.prototype.children = function(myjson) { if (myjson && myjson.children.length) { return myjson.children.slice(); } else { return false; } }; CSL2.XmlJSON.prototype.nodename = function(myjson) { return myjson ? myjson.name : null; }; CSL2.XmlJSON.prototype.attributes = function(myjson) { var ret = {}; for (var attrname in myjson.attrs) { ret["@" + attrname] = myjson.attrs[attrname]; } return ret; }; CSL2.XmlJSON.prototype.content = function(myjson) { var ret = ""; if (!myjson || !myjson.children) { return ret; } for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if ("string" === typeof myjson.children[i]) { ret += myjson.children[i]; } } return ret; }; CSL2.XmlJSON.prototype.namespace = {}; CSL2.XmlJSON.prototype.numberofnodes = function(myjson) { if (myjson && "number" == typeof myjson.length) { return myjson.length; } else { return 0; } }; CSL2.XmlJSON.prototype.getAttributeValue = function(myjson, name2, namespace) { var ret = ""; if (namespace) { name2 = namespace + ":" + name2; } if (myjson) { if (myjson.attrs) { if (myjson.attrs[name2]) { ret = myjson.attrs[name2]; } else { ret = ""; } } } return ret; }; CSL2.XmlJSON.prototype.getNodeValue = function(myjson, name2) { var ret = ""; if (name2) { for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (myjson.children[i].name === name2) { if (myjson.children[i].children.length) { ret = myjson.children[i]; } else { ret = ""; } } } } else if (myjson) { ret = myjson; } if (ret && ret.children && ret.children.length == 1 && "string" === typeof ret.children[0]) { ret = ret.children[0]; } return ret; }; CSL2.XmlJSON.prototype.setAttributeOnNodeIdentifiedByNameAttribute = function(myjson, nodename, partname, attrname, val) { var pos, len, xml, nodes, node; if (attrname.slice(0, 1) === "@") { attrname = attrname.slice(1); } for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (myjson.children[i].name === nodename && myjson.children[i].attrs.name === partname) { myjson.children[i].attrs[attrname] = val; } } }; CSL2.XmlJSON.prototype.deleteNodeByNameAttribute = function(myjson, val) { var i, ilen; for (i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (!myjson.children[i] || "string" === typeof myjson.children[i]) { continue; } if (myjson.children[i].attrs.name == val) { myjson.children = myjson.children.slice(0, i).concat(myjson.children.slice(i + 1)); } } }; CSL2.XmlJSON.prototype.deleteAttribute = function(myjson, attrname) { var i, ilen; if ("undefined" !== typeof myjson.attrs[attrname]) { myjson.attrs.pop(attrname); } }; CSL2.XmlJSON.prototype.setAttribute = function(myjson, attr, val) { myjson.attrs[attr] = val; return false; }; CSL2.XmlJSON.prototype.nodeCopy = function(myjson, clone) { if (!clone) { var clone = {}; } if ("object" === typeof clone && "undefined" === typeof clone.length) { for (var key in myjson) { if ("string" === typeof myjson[key]) { clone[key] = myjson[key]; } else if ("object" === typeof myjson[key]) { if ("undefined" === typeof myjson[key].length) { clone[key] = this.nodeCopy(myjson[key], {}); } else { clone[key] = this.nodeCopy(myjson[key], []); } } } } else { for (var i = 0, ilen = myjson.length; i < ilen; i += 1) { if ("string" === typeof myjson[i]) { clone[i] = myjson[i]; } else { clone[i] = this.nodeCopy(myjson[i], {}); } } } return clone; }; CSL2.XmlJSON.prototype.getNodesByName = function(myjson, name2, nameattrval, ret) { var nodes, node, pos, len; if (!ret) { var ret = []; } if (!myjson || !myjson.children) { return ret; } if (name2 === myjson.name) { if (nameattrval) { if (nameattrval === myjson.attrs.name) { ret.push(myjson); } } else { ret.push(myjson); } } for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if ("object" !== typeof myjson.children[i]) { continue; } this.getNodesByName(myjson.children[i], name2, nameattrval, ret); } return ret; }; CSL2.XmlJSON.prototype.nodeNameIs = function(myjson, name2) { if (typeof myjson === "undefined") { return false; } if (name2 == myjson.name) { return true; } return false; }; CSL2.XmlJSON.prototype.makeXml = function(myjson) { if ("string" === typeof myjson) { if (myjson.slice(0, 1) === "<") { myjson = this.jsonStringWalker.walkToObject(myjson); } else { myjson = JSON.parse(myjson); } } return myjson; }; CSL2.XmlJSON.prototype.insertChildNodeAfter = function(parent, node, pos, datejson) { for (var i = 0, ilen = parent.children.length; i < ilen; i += 1) { if (node === parent.children[i]) { parent.children = parent.children.slice(0, i).concat([datejson]).concat(parent.children.slice(i + 1)); break; } } return parent; }; CSL2.XmlJSON.prototype.insertPublisherAndPlace = function(myjson) { if (myjson.name === "group") { var useme = true; var mustHaves = ["publisher", "publisher-place"]; for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { var haveVarname = mustHaves.indexOf(myjson.children[i].attrs.variable); var isText = myjson.children[i].name === "text"; if (isText && haveVarname > -1 && !myjson.children[i].attrs.prefix && !myjson.children[i].attrs.suffix) { mustHaves = mustHaves.slice(0, haveVarname).concat(mustHaves.slice(haveVarname + 1)); } else { useme = false; break; } } if (useme && !mustHaves.length) { myjson.attrs["has-publisher-and-publisher-place"] = true; } } for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if ("object" === typeof myjson.children[i]) { this.insertPublisherAndPlace(myjson.children[i]); } } }; CSL2.XmlJSON.prototype.isChildOfSubstitute = function(parents) { if (parents.length > 0) { var myparents = parents.slice(); var parent = myparents.pop(); if (parent === "substitute") { return true; } else { return this.isChildOfSubstitute(myparents); } } return false; }; CSL2.XmlJSON.prototype.addMissingNameNodes = function(myjson, parents) { if (!parents) { parents = []; } if (myjson.name === "names") { if (!this.isChildOfSubstitute(parents)) { var addName = true; for (var i = 0, ilen = myjson.children.length; i < ilen; i++) { if (myjson.children[i].name === "name") { addName = false; break; } } if (addName) { myjson.children = [{ name: "name", attrs: {}, children: [] }].concat(myjson.children); } } } parents.push(myjson.name); for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if ("object" === typeof myjson.children[i]) { this.addMissingNameNodes(myjson.children[i], parents); } } parents.pop(); }; CSL2.XmlJSON.prototype.addInstitutionNodes = function(myjson) { var names, thenames, institution, theinstitution, name2, thename, xml, pos, len; if (myjson.name === "names") { var attributes = {}; var insertPos = -1; for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (myjson.children[i].name == "name") { for (var key in myjson.children[i].attrs) { attributes[key] = myjson.children[i].attrs[key]; } attributes.delimiter = myjson.children[i].attrs.delimiter; attributes.and = myjson.children[i].attrs.and; insertPos = i; for (var k = 0, klen = myjson.children[i].children.length; k < klen; k += 1) { if (myjson.children[i].children[k].attrs.name !== "family") { continue; } for (var key in myjson.children[i].children[k].attrs) { attributes[key] = myjson.children[i].children[k].attrs[key]; } } } if (myjson.children[i].name == "institution") { insertPos = -1; break; } } if (insertPos > -1) { var institution = this.nodeCopy(this.institution); for (var i = 0, ilen = CSL2.INSTITUTION_KEYS.length; i < ilen; i += 1) { var attrname = CSL2.INSTITUTION_KEYS[i]; if ("undefined" !== typeof attributes[attrname]) { institution.children[0].attrs[attrname] = attributes[attrname]; } if (attributes.delimiter) { institution.attrs.delimiter = attributes.delimiter; } if (attributes.and) { institution.attrs.and = attributes.and; } } myjson.children = myjson.children.slice(0, insertPos + 1).concat([institution]).concat(myjson.children.slice(insertPos + 1)); } } for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if ("string" === typeof myjson.children[i]) { continue; } this.addInstitutionNodes(myjson.children[i]); } }; CSL2.XmlJSON.prototype.flagDateMacros = function(myjson) { for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (myjson.children[i].name === "macro") { if (this.inspectDateMacros(myjson.children[i])) { myjson.children[i].attrs["macro-has-date"] = "true"; } } } }; CSL2.XmlJSON.prototype.inspectDateMacros = function(myjson) { if (!myjson || !myjson.children) { return false; } if (myjson.name === "date") { return true; } else { for (var i = 0, ilen = myjson.children.length; i < ilen; i += 1) { if (this.inspectDateMacros(myjson.children[i])) { return true; } } } return false; }; CSL2.stripXmlProcessingInstruction = function(xml) { if (!xml) { return xml; } xml = xml.replace(/^<\?[^?]+\?>/, ""); xml = xml.replace(//g, ""); xml = xml.replace(/^\s+/g, ""); xml = xml.replace(/\s+$/g, ""); return xml; }; CSL2.parseXml = function(str) { var _pos = 0; var _obj = { children: [] }; var _stack = [_obj.children]; function _listifyString(str2) { str2 = str2.split(/(?:\r\n|\n|\r)/).join(" ").replace(/>[ ]+<").replace(/<\!--.*?-->/g, ""); var lst2 = str2.split("><"); var stylePos = null; for (var i2 = 0, ilen2 = lst2.length; i2 < ilen2; i2++) { if (i2 > 0) { lst2[i2] = "<" + lst2[i2]; } if (i2 < lst2.length - 1) { lst2[i2] = lst2[i2] + ">"; } if ("number" != typeof stylePos) { if (lst2[i2].slice(0, 7) === "${this.body}`; if (this.translation.collected.displayOptions.markdown) this.markdown = (0, import_html_to_md.default)(this.html); } write_collection(collection, level = 1) { this.levels = Math.max(this.levels, level); this.body += `${html(collection.name)} `; for (const item of collection.items) { this.write_item(item); } for (const coll of sorted(collection.collections)) { this.write_collection(coll, level + 1); } } write_item(item) { switch (item.itemType) { case "note": this.note(item.note, "note"); break; case "attachment": this.item(item); break; default: this.item(item); break; } } prune(collection) { if (!collection) return true; collection.collections = collection.collections.filter((sub) => !this.prune(sub)); return !collection.items.length && !collection.collections.length; } note(note, type) { switch (type) { case "extra": if (!note) return; this.body += `
${html(note)}
`; break; case "attachment": if (!note.note) return; this.body += `
${note.title}
${note.note}
`; break; default: if (!note.note) return; this.body += `
${note.note}
`; break; } } creator(cr) { return [cr.lastName, cr.name, cr.firstName].find((v) => v) || ""; } creators(cr) { switch (cr.length) { case 0: case 1: return cr[0]; case 2: return cr.join(" and "); default: return `${cr.slice(0, cr.length - 1).join(", ")}, and ${cr[cr.length - 1]}`; } } item(item) { let notes = []; let title = ""; if (item.itemType === "attachment") { if (item.note) notes = [{ note: item.note }]; if (item.title) title = `${html(item.title)}`; } else { notes = (item.notes || []).filter((note) => note.note); const creators = this.creators(item.creators.map((creator) => this.creator(creator)).filter((v) => v)); let date = null; if (item.date) { date = Zotero.BetterBibTeX.parseDate(item.date); if (date.from) date = date.from; date = typeof date.year === "number" ? date.year : item.date; } const author = [creators, date].filter((v) => v).join(", "); if (item.title) title += `${html(item.title)}`; if (author) title += ` (${html(author)})`; title = title.trim(); } this.body += `
${title}
`; this.note(item.extra, "extra"); for (const note of notes) { this.note(note, "note"); } for (const att of item.attachments || []) { this.note(att, "attachment"); } } keep(item) { var _a2, _b, _c; if (!item) return false; switch (item.itemType) { case "note": case "annotation": return item.note; case "attachment": return (_a2 = item.notes) == null ? void 0 : _a2.find((note) => note.note); default: return item.extra || ((_b = item.notes) == null ? void 0 : _b.find((note) => note.note)) || ((_c = item.attachments) == null ? void 0 : _c.find((att) => att.note)); } } }; function doExport() { const translation = Translation.Export(new Collected(ZOTERO_TRANSLATOR_INFO, "export")); const exporter = new Exporter(translation); translation.output.body += exporter[translation.collected.displayOptions.markdown ? "markdown" : "html"]; Zotero.write(translation.output.body); } return __toCommonJS(Collected_notes_exports); })(); /*! Bundled license information: @stdlib/utils-define-property/lib/define_property.js: (** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-property/lib/has_define_property_support.js: (** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-property/lib/builtin.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/is_number.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/zero_pad.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/format_integer.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/is_string.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/format_double.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/space_pad.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-interpolate/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-tokenize/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-base-format-tokenize/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-format/lib/is_string.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-format/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/string-format/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2022 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-property/lib/polyfill.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-property/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-nonenumerable-read-only-property/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-define-nonenumerable-read-only-property/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/primitive.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-symbol-support/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-symbol-support/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-tostringtag-support/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-tostringtag-support/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-native-class/lib/tostring.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-native-class/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-own-property/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-has-own-property/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/symbol-ctor/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/symbol-ctor/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-native-class/lib/tostringtag.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-native-class/lib/polyfill.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-native-class/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/valueof.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/try2valueof.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/object.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/assert-is-string/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-escape-regexp-string/lib/main.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) @stdlib/utils-escape-regexp-string/lib/index.js: (** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *) */