diff --git a/views/assets/scripts.js b/views/assets/scripts.js index 740c25d..283483b 100644 --- a/views/assets/scripts.js +++ b/views/assets/scripts.js @@ -1,22 +1,15 @@ -var Xa = Object.defineProperty; -var ps = (s) => { - throw TypeError(s); -}; -var Qa = (s, t, e) => t in s ? Xa(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e; -var Jt = (s, t, e) => Qa(s, typeof t != "symbol" ? t + "" : t, e), Ii = (s, t, e) => t.has(s) || ps("Cannot " + e); -var Ri = (s, t, e) => (Ii(s, t, "read from private field"), e ? e.call(s) : t.get(s)), he = (s, t, e) => t.has(s) ? ps("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), je = (s, t, e, i) => (Ii(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e), We = (s, t, e) => (Ii(s, t, "access private method"), e); -var Za = "2.1.16"; -const Mt = "[data-trix-attachment]", On = { preview: { presentation: "gallery", caption: { name: !0, size: !0 } }, file: { caption: { size: !0 } } }, Y = { default: { tagName: "div", parse: !1 }, quote: { tagName: "blockquote", nestable: !0 }, heading1: { tagName: "h1", terminal: !0, breakOnReturn: !0, group: !1 }, code: { tagName: "pre", terminal: !0, htmlAttributes: ["language"], text: { plaintext: !0 } }, bulletList: { tagName: "ul", parse: !1 }, bullet: { tagName: "li", listAttribute: "bulletList", group: !1, nestable: !0, test(s) { - return fs(s.parentNode) === Y[this.listAttribute].tagName; +var Ba = "2.1.16"; +const Ot = "[data-trix-attachment]", An = { preview: { presentation: "gallery", caption: { name: !0, size: !0 } }, file: { caption: { size: !0 } } }, Y = { default: { tagName: "div", parse: !1 }, quote: { tagName: "blockquote", nestable: !0 }, heading1: { tagName: "h1", terminal: !0, breakOnReturn: !0, group: !1 }, code: { tagName: "pre", terminal: !0, htmlAttributes: ["language"], text: { plaintext: !0 } }, bulletList: { tagName: "ul", parse: !1 }, bullet: { tagName: "li", listAttribute: "bulletList", group: !1, nestable: !0, test(s) { + return is(s.parentNode) === Y[this.listAttribute].tagName; } }, numberList: { tagName: "ol", parse: !1 }, number: { tagName: "li", listAttribute: "numberList", group: !1, nestable: !0, test(s) { - return fs(s.parentNode) === Y[this.listAttribute].tagName; -} }, attachmentGallery: { tagName: "div", exclusive: !0, terminal: !0, parse: !1, group: !1 } }, fs = (s) => { + return is(s.parentNode) === Y[this.listAttribute].tagName; +} }, attachmentGallery: { tagName: "div", exclusive: !0, terminal: !0, parse: !1, group: !1 } }, is = (s) => { var t; return s == null || (t = s.tagName) === null || t === void 0 ? void 0 : t.toLowerCase(); -}, bs = navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i), Di = bs && parseInt(bs[1]); -var Oe = { composesExistingText: /Android.*Chrome/.test(navigator.userAgent), recentAndroid: Di && Di > 12, samsungAndroid: Di && navigator.userAgent.match(/Android.*SM-/), forcesObjectResizing: /Trident.*rv:11/.test(navigator.userAgent), supportsInputEvents: typeof InputEvent < "u" && ["data", "getTargetRanges", "inputType"].every((s) => s in InputEvent.prototype) }, Kr = { ADD_ATTR: ["language"], SAFE_FOR_XML: !1, RETURN_DOM: !0 }, v = { attachFiles: "Attach Files", bold: "Bold", bullets: "Bullets", byte: "Byte", bytes: "Bytes", captionPlaceholder: "Add a caption…", code: "Code", heading1: "Heading", indent: "Increase Level", italic: "Italic", link: "Link", numbers: "Numbers", outdent: "Decrease Level", quote: "Quote", redo: "Redo", remove: "Remove", strike: "Strikethrough", undo: "Undo", unlink: "Unlink", url: "URL", urlPlaceholder: "Enter a URL…", GB: "GB", KB: "KB", MB: "MB", PB: "PB", TB: "TB" }; -const to = [v.bytes, v.KB, v.MB, v.GB, v.TB, v.PB]; -var Gr = { prefix: "IEC", precision: 2, formatter(s) { +}, ns = navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i), Ei = ns && parseInt(ns[1]); +var ke = { composesExistingText: /Android.*Chrome/.test(navigator.userAgent), recentAndroid: Ei && Ei > 12, samsungAndroid: Ei && navigator.userAgent.match(/Android.*SM-/), forcesObjectResizing: /Trident.*rv:11/.test(navigator.userAgent), supportsInputEvents: typeof InputEvent < "u" && ["data", "getTargetRanges", "inputType"].every(((s) => s in InputEvent.prototype)) }, Or = { ADD_ATTR: ["language"], SAFE_FOR_XML: !1, RETURN_DOM: !0 }, v = { attachFiles: "Attach Files", bold: "Bold", bullets: "Bullets", byte: "Byte", bytes: "Bytes", captionPlaceholder: "Add a caption…", code: "Code", heading1: "Heading", indent: "Increase Level", italic: "Italic", link: "Link", numbers: "Numbers", outdent: "Decrease Level", quote: "Quote", redo: "Redo", remove: "Remove", strike: "Strikethrough", undo: "Undo", unlink: "Unlink", url: "URL", urlPlaceholder: "Enter a URL…", GB: "GB", KB: "KB", MB: "MB", PB: "PB", TB: "TB" }; +const Na = [v.bytes, v.KB, v.MB, v.GB, v.TB, v.PB]; +var Mr = { prefix: "IEC", precision: 2, formatter(s) { switch (s) { case 0: return "0 ".concat(v.bytes); @@ -26,34 +19,34 @@ var Gr = { prefix: "IEC", precision: 2, formatter(s) { let t; this.prefix === "SI" ? t = 1e3 : this.prefix === "IEC" && (t = 1024); const e = Math.floor(Math.log(s) / Math.log(t)), i = (s / Math.pow(t, e)).toFixed(this.precision).replace(/0*$/, "").replace(/\.$/, ""); - return "".concat(i, " ").concat(to[e]); + return "".concat(i, " ").concat(Na[e]); } } }; -const mi = "\uFEFF", Lt = " ", Jr = function(s) { +const si = "\uFEFF", Lt = " ", Br = function(s) { for (const t in s) { const e = s[t]; this[t] = e; } return this; -}, Mn = document.documentElement, eo = Mn.matches, O = function(s) { +}, En = document.documentElement, Pa = En.matches, O = function(s) { let { onElement: t, matchingSelector: e, withCallback: i, inPhase: n, preventDefault: r, times: a } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - const o = t || Mn, l = e, c = n === "capturing", h = function(m) { + const o = t || En, l = e, c = n === "capturing", h = function(g) { a != null && --a == 0 && h.destroy(); - const p = Ct(m.target, { matchingSelector: l }); - p != null && (i == null || i.call(p, m, p), r && m.preventDefault()); + const p = Ct(g.target, { matchingSelector: l }); + p != null && (i?.call(p, g, p), r && g.preventDefault()); }; return h.destroy = () => o.removeEventListener(s, h, c), o.addEventListener(s, h, c), h; -}, Yr = function(s) { +}, Nr = function(s) { let { bubbles: t, cancelable: e, attributes: i } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; t = t !== !1, e = e !== !1; const n = document.createEvent("Events"); - return n.initEvent(s, t, e), i != null && Jr.call(n, i), n; -}, Ae = function(s) { + return n.initEvent(s, t, e), i != null && Br.call(n, i), n; +}, _e = function(s) { let { onElement: t, bubbles: e, cancelable: i, attributes: n } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - const r = t ?? Mn, a = Yr(s, { bubbles: e, cancelable: i, attributes: n }); + const r = t ?? En, a = Nr(s, { bubbles: e, cancelable: i, attributes: n }); return r.dispatchEvent(a); -}, Xr = function(s, t) { - if ((s == null ? void 0 : s.nodeType) === 1) return eo.call(s, t); +}, Pr = function(s, t) { + if (s?.nodeType === 1) return Pa.call(s, t); }, Ct = function(s) { let { matchingSelector: t, untilNode: e } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; for (; s && s.nodeType !== Node.ELEMENT_NODE; ) s = s.parentNode; @@ -61,16 +54,16 @@ const mi = "\uFEFF", Lt = " ", Jr = function(s) { if (t == null) return s; if (s.closest && e == null) return s.closest(t); for (; s && s !== e; ) { - if (Xr(s, t)) return s; + if (Pr(s, t)) return s; s = s.parentNode; } } -}, Bn = (s) => document.activeElement !== s && Dt(s, document.activeElement), Dt = function(s, t) { +}, xn = (s) => document.activeElement !== s && Dt(s, document.activeElement), Dt = function(s, t) { if (s && t) for (; t; ) { if (t === s) return !0; t = t.parentNode; } -}, Oi = function(s) { +}, xi = function(s) { var t; if ((t = s) === null || t === void 0 || !t.parentNode) return; let e = 0; @@ -79,7 +72,7 @@ const mi = "\uFEFF", Lt = " ", Jr = function(s) { }, wt = (s) => { var t; return s == null || (t = s.parentNode) === null || t === void 0 ? void 0 : t.removeChild(s); -}, ai = function(s) { +}, Ze = function(s) { let { onlyNodesOfType: t, usingFilter: e, expandEntityReferences: i } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; const n = (() => { switch (t) { @@ -104,45 +97,45 @@ const mi = "\uFEFF", Lt = " ", Jr = function(s) { if (i.editable != null && (i.attributes == null && (i.attributes = {}), i.attributes.contenteditable = i.editable), i.attributes) for (t in i.attributes) e = i.attributes[t], n.setAttribute(t, e); if (i.style) for (t in i.style) e = i.style[t], n.style[t] = e; if (i.data) for (t in i.data) e = i.data[t], n.dataset[t] = e; - return i.className && i.className.split(" ").forEach((r) => { + return i.className && i.className.split(" ").forEach(((r) => { n.classList.add(r); - }), i.textContent && (n.textContent = i.textContent), i.childNodes && [].concat(i.childNodes).forEach((r) => { + })), i.textContent && (n.textContent = i.textContent), i.childNodes && [].concat(i.childNodes).forEach(((r) => { n.appendChild(r); - }), n; + })), n; }; -let ue; -const Ee = function() { - if (ue != null) return ue; - ue = []; +let de; +const ve = function() { + if (de != null) return de; + de = []; for (const s in Y) { const t = Y[s]; - t.tagName && ue.push(t.tagName); + t.tagName && de.push(t.tagName); } - return ue; -}, Mi = (s) => Zt(s == null ? void 0 : s.firstChild), _s = function(s) { + return de; +}, Si = (s) => Xt(s?.firstChild), ss = function(s) { let { strict: t } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { strict: !0 }; - return t ? Zt(s) : Zt(s) || !Zt(s.firstChild) && function(e) { - return Ee().includes(J(e)) && !Ee().includes(J(e.firstChild)); - }(s); -}, Zt = (s) => io(s) && (s == null ? void 0 : s.data) === "block", io = (s) => (s == null ? void 0 : s.nodeType) === Node.COMMENT_NODE, te = function(s) { + return t ? Xt(s) : Xt(s) || !Xt(s.firstChild) && (function(e) { + return ve().includes(J(e)) && !ve().includes(J(e.firstChild)); + })(s); +}, Xt = (s) => Fa(s) && s?.data === "block", Fa = (s) => s?.nodeType === Node.COMMENT_NODE, Qt = function(s) { let { name: t } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - if (s) return xe(s) ? s.data === mi ? !t || s.parentNode.dataset.trixCursorTarget === t : void 0 : te(s.firstChild); -}, Bt = (s) => Xr(s, Mt), Qr = (s) => xe(s) && (s == null ? void 0 : s.data) === "", xe = (s) => (s == null ? void 0 : s.nodeType) === Node.TEXT_NODE, Nn = { level2Enabled: !0, getLevel() { - return this.level2Enabled && Oe.supportsInputEvents ? 2 : 0; + if (s) return ye(s) ? s.data === si ? !t || s.parentNode.dataset.trixCursorTarget === t : void 0 : Qt(s.firstChild); +}, Mt = (s) => Pr(s, Ot), Fr = (s) => ye(s) && s?.data === "", ye = (s) => s?.nodeType === Node.TEXT_NODE, Sn = { level2Enabled: !0, getLevel() { + return this.level2Enabled && ke.supportsInputEvents ? 2 : 0; }, pickFiles(s) { const t = x("input", { type: "file", multiple: !0, hidden: !0, id: this.fileInputId }); - t.addEventListener("change", () => { + t.addEventListener("change", (() => { s(t.files), wt(t); - }), wt(document.getElementById(this.fileInputId)), document.body.appendChild(t), t.click(); + })), wt(document.getElementById(this.fileInputId)), document.body.appendChild(t), t.click(); } }; -var ni = { removeBlankTableCells: !1, tableCellSeparator: " | ", tableRowSeparator: ` -` }, Pt = { bold: { tagName: "strong", inheritable: !0, parser(s) { +var Ye = { removeBlankTableCells: !1, tableCellSeparator: " | ", tableRowSeparator: ` +` }, Nt = { bold: { tagName: "strong", inheritable: !0, parser(s) { const t = window.getComputedStyle(s); return t.fontWeight === "bold" || t.fontWeight >= 600; } }, italic: { tagName: "em", inheritable: !0, parser: (s) => window.getComputedStyle(s).fontStyle === "italic" }, href: { groupTagName: "a", parser(s) { - const t = "a:not(".concat(Mt, ")"), e = s.closest(t); + const t = "a:not(".concat(Ot, ")"), e = s.closest(t); if (e) return e.getAttribute("href"); -} }, strike: { tagName: "del", inheritable: !0 }, frozen: { style: { backgroundColor: "highlight" } } }, Zr = { getDefaultHTML: () => `
`) }; -const _n = { interval: 5e3 }; -var Me = Object.freeze({ __proto__: null, attachments: On, blockAttributes: Y, browser: Oe, css: { attachment: "attachment", attachmentCaption: "attachment__caption", attachmentCaptionEditor: "attachment__caption-editor", attachmentMetadata: "attachment__metadata", attachmentMetadataContainer: "attachment__metadata-container", attachmentName: "attachment__name", attachmentProgress: "attachment__progress", attachmentSize: "attachment__size", attachmentToolbar: "attachment__toolbar", attachmentGallery: "attachment-gallery" }, dompurify: Kr, fileSize: Gr, input: Nn, keyNames: { 8: "backspace", 9: "tab", 13: "return", 27: "escape", 37: "left", 39: "right", 46: "delete", 68: "d", 72: "h", 79: "o" }, lang: v, parser: ni, textAttributes: Pt, toolbar: Zr, undo: _n }); +const ln = { interval: 5e3 }; +var Ie = Object.freeze({ __proto__: null, attachments: An, blockAttributes: Y, browser: ke, css: { attachment: "attachment", attachmentCaption: "attachment__caption", attachmentCaptionEditor: "attachment__caption-editor", attachmentMetadata: "attachment__metadata", attachmentMetadataContainer: "attachment__metadata-container", attachmentName: "attachment__name", attachmentProgress: "attachment__progress", attachmentSize: "attachment__size", attachmentToolbar: "attachment__toolbar", attachmentGallery: "attachment-gallery" }, dompurify: Or, fileSize: Mr, input: Sn, keyNames: { 8: "backspace", 9: "tab", 13: "return", 27: "escape", 37: "left", 39: "right", 46: "delete", 68: "d", 72: "h", 79: "o" }, lang: v, parser: Ye, textAttributes: Nt, toolbar: Hr, undo: ln }); class P { static proxyMethod(t) { - const { name: e, toMethod: i, toProperty: n, optional: r } = no(t); + const { name: e, toMethod: i, toProperty: n, optional: r } = Ha(t); this.prototype[e] = function() { let a, o; var l, c; - return i ? o = r ? (l = this[i]) === null || l === void 0 ? void 0 : l.call(this) : this[i]() : n && (o = this[n]), r ? (a = (c = o) === null || c === void 0 ? void 0 : c[e], a ? vs.call(a, o, arguments) : void 0) : (a = o[e], vs.call(a, o, arguments)); + return i ? o = r ? (l = this[i]) === null || l === void 0 ? void 0 : l.call(this) : this[i]() : n && (o = this[n]), r ? (a = (c = o) === null || c === void 0 ? void 0 : c[e], a ? rs.call(a, o, arguments) : void 0) : (a = o[e], rs.call(a, o, arguments)); }; } } -const no = function(s) { - const t = s.match(so); +const Ha = function(s) { + const t = s.match(qa); if (!t) throw new Error("can't parse @proxyMethod expression: ".concat(s)); const e = { name: t[4] }; return t[2] != null ? e.toMethod = t[1] : e.toProperty = t[1], t[3] != null && (e.optional = !0), e; -}, { apply: vs } = Function.prototype, so = new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$"); -var Bi, Ni, Pi; -class ke extends P { +}, { apply: rs } = Function.prototype, qa = new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$"); +var Li, Ci, wi; +class Ce extends P { static box() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; - return t instanceof this ? t : this.fromUCS2String(t == null ? void 0 : t.toString()); + return t instanceof this ? t : this.fromUCS2String(t?.toString()); } static fromUCS2String(t) { - return new this(t, vn(t)); + return new this(t, dn(t)); } static fromCodepoints(t) { - return new this(yn(t), t); + return new this(cn(t), t); } constructor(t, e) { super(...arguments), this.ucs2String = t, this.codepoints = e, this.length = this.codepoints.length, this.ucs2Length = this.ucs2String.length; } offsetToUCS2Offset(t) { - return yn(this.codepoints.slice(0, Math.max(0, t))).length; + return cn(this.codepoints.slice(0, Math.max(0, t))).length; } offsetFromUCS2Offset(t) { - return vn(this.ucs2String.slice(0, Math.max(0, t))).length; + return dn(this.ucs2String.slice(0, Math.max(0, t))).length; } slice() { return this.constructor.fromCodepoints(this.codepoints.slice(...arguments)); @@ -241,9 +234,9 @@ class ke extends P { return this.ucs2String; } } -const ro = ((Bi = Array.from) === null || Bi === void 0 ? void 0 : Bi.call(Array, "👼").length) === 1, ao = ((Ni = " ".codePointAt) === null || Ni === void 0 ? void 0 : Ni.call(" ", 0)) != null, oo = ((Pi = String.fromCodePoint) === null || Pi === void 0 ? void 0 : Pi.call(String, 32, 128124)) === " 👼"; -let vn, yn; -vn = ro && ao ? (s) => Array.from(s).map((t) => t.codePointAt(0)) : function(s) { +const $a = ((Li = Array.from) === null || Li === void 0 ? void 0 : Li.call(Array, "👼").length) === 1, Ua = ((Ci = " ".codePointAt) === null || Ci === void 0 ? void 0 : Ci.call(" ", 0)) != null, Va = ((wi = String.fromCodePoint) === null || wi === void 0 ? void 0 : wi.call(String, 32, 128124)) === " 👼"; +let dn, cn; +dn = $a && Ua ? (s) => Array.from(s).map(((t) => t.codePointAt(0))) : function(s) { const t = []; let e = 0; const { length: i } = s; @@ -256,25 +249,25 @@ vn = ro && ao ? (s) => Array.from(s).map((t) => t.codePointAt(0)) : function(s) t.push(n); } return t; -}, yn = oo ? (s) => String.fromCodePoint(...Array.from(s || [])) : function(s) { +}, cn = Va ? (s) => String.fromCodePoint(...Array.from(s || [])) : function(s) { return (() => { const t = []; - return Array.from(s).forEach((e) => { + return Array.from(s).forEach(((e) => { let i = ""; e > 65535 && (e -= 65536, i += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t.push(i + String.fromCharCode(e)); - }), t; + })), t; })().join(""); }; -let lo = 0; -class qt extends P { +let ja = 0; +class Ht extends P { static fromJSONString(t) { return this.fromJSON(JSON.parse(t)); } constructor() { - super(...arguments), this.id = ++lo; + super(...arguments), this.id = ++ja; } hasSameConstructorAs(t) { - return this.constructor === (t == null ? void 0 : t.constructor); + return this.constructor === t?.constructor; } isEqualTo(t) { return this === t; @@ -293,69 +286,69 @@ class qt extends P { return JSON.stringify(this); } toUTF16String() { - return ke.box(this); + return Ce.box(this); } getCacheKey() { return this.id.toString(); } } -const Ft = function() { +const Pt = function() { let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; if (s.length !== t.length) return !1; for (let e = 0; e < s.length; e++) if (s[e] !== t[e]) return !1; return !0; -}, Pn = function(s) { +}, Ln = function(s) { const t = s.slice(0); for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) i[n - 1] = arguments[n]; return t.splice(...i), t; -}, co = /[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/, ho = function() { +}, Wa = /[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/, za = (function() { const s = x("input", { dir: "auto", name: "x", dirName: "x.dir" }), t = x("textarea", { dir: "auto", name: "y", dirName: "y.dir" }), e = x("form"); e.appendChild(s), e.appendChild(t); - const i = function() { + const i = (function() { try { return new FormData(e).has(t.dirName); } catch { return !1; } - }(), n = function() { + })(), n = (function() { try { return s.matches(":dir(ltr),:dir(rtl)"); } catch { return !1; } - }(); + })(); return i ? function(r) { return t.value = r, new FormData(e).get(t.dirName); } : n ? function(r) { return s.value = r, s.matches(":dir(rtl)") ? "rtl" : "ltr"; } : function(r) { const a = r.trim().charAt(0); - return co.test(a) ? "rtl" : "ltr"; + return Wa.test(a) ? "rtl" : "ltr"; }; -}(); -let Fi = null, Hi = null, qi = null, ze = null; -const An = () => (Fi || (Fi = mo().concat(uo())), Fi), N = (s) => Y[s], uo = () => (Hi || (Hi = Object.keys(Y)), Hi), En = (s) => Pt[s], mo = () => (qi || (qi = Object.keys(Pt)), qi), ta = function(s, t) { - go(s).textContent = t.replace(/%t/g, s); -}, go = function(s) { +})(); +let Ti = null, ki = null, Ii = null, He = null; +const hn = () => (Ti || (Ti = Ga().concat(Ka())), Ti), N = (s) => Y[s], Ka = () => (ki || (ki = Object.keys(Y)), ki), un = (s) => Nt[s], Ga = () => (Ii || (Ii = Object.keys(Nt)), Ii), qr = function(s, t) { + Ja(s).textContent = t.replace(/%t/g, s); +}, Ja = function(s) { const t = document.createElement("style"); t.setAttribute("type", "text/css"), t.setAttribute("data-tag-name", s.toLowerCase()); - const e = po(); + const e = Ya(); return e && t.setAttribute("nonce", e), document.head.insertBefore(t, document.head.firstChild), t; -}, po = function() { - const s = ys("trix-csp-nonce") || ys("csp-nonce"); +}, Ya = function() { + const s = as("trix-csp-nonce") || as("csp-nonce"); if (s) { const { nonce: t, content: e } = s; return t == "" ? e : t; } -}, ys = (s) => document.head.querySelector("meta[name=".concat(s, "]")), As = { "application/x-trix-feature-detection": "test" }, ea = function(s) { +}, as = (s) => document.head.querySelector("meta[name=".concat(s, "]")), os = { "application/x-trix-feature-detection": "test" }, $r = function(s) { const t = s.getData("text/plain"), e = s.getData("text/html"); - if (!t || !e) return t == null ? void 0 : t.length; + if (!t || !e) return t?.length; { const { body: i } = new DOMParser().parseFromString(e, "text/html"); if (i.textContent === t) return !i.querySelector("*"); } -}, ia = /Mac|^iP/.test(navigator.platform) ? (s) => s.metaKey : (s) => s.ctrlKey, Fn = (s) => setTimeout(s, 1), na = function() { +}, Ur = /Mac|^iP/.test(navigator.platform) ? (s) => s.metaKey : (s) => s.ctrlKey, Cn = (s) => setTimeout(s, 1), Vr = function() { let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; const t = {}; for (const e in s) { @@ -363,28 +356,28 @@ const An = () => (Fi || (Fi = mo().concat(uo())), Fi), N = (s) => Y[s], uo = () t[e] = i; } return t; -}, ne = function() { +}, ee = function() { let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (Object.keys(s).length !== Object.keys(t).length) return !1; for (const e in s) if (s[e] !== t[e]) return !1; return !0; }, k = function(s) { - if (s != null) return Array.isArray(s) || (s = [s, s]), [Es(s[0]), Es(s[1] != null ? s[1] : s[0])]; -}, vt = function(s) { + if (s != null) return Array.isArray(s) || (s = [s, s]), [ls(s[0]), ls(s[1] != null ? s[1] : s[0])]; +}, bt = function(s) { if (s == null) return; const [t, e] = k(s); - return xn(t, e); -}, oi = function(s, t) { + return mn(t, e); +}, ti = function(s, t) { if (s == null || t == null) return; const [e, i] = k(s), [n, r] = k(t); - return xn(e, n) && xn(i, r); -}, Es = function(s) { - return typeof s == "number" ? s : na(s); -}, xn = function(s, t) { - return typeof s == "number" ? s === t : ne(s, t); + return mn(e, n) && mn(i, r); +}, ls = function(s) { + return typeof s == "number" ? s : Vr(s); +}, mn = function(s, t) { + return typeof s == "number" ? s === t : ee(s, t); }; -class sa extends P { +class jr extends P { constructor() { super(...arguments), this.update = this.update.bind(this), this.selectionManagers = []; } @@ -398,10 +391,10 @@ class sa extends P { if (!this.selectionManagers.includes(t)) return this.selectionManagers.push(t), this.start(); } unregisterSelectionManager(t) { - if (this.selectionManagers = this.selectionManagers.filter((e) => e !== t), this.selectionManagers.length === 0) return this.stop(); + if (this.selectionManagers = this.selectionManagers.filter(((e) => e !== t)), this.selectionManagers.length === 0) return this.stop(); } notifySelectionManagersOfSelectionChange() { - return this.selectionManagers.map((t) => t.selectionDidChange()); + return this.selectionManagers.map(((t) => t.selectionDidChange())); } update() { this.notifySelectionManagersOfSelectionChange(); @@ -410,52 +403,52 @@ class sa extends P { this.update(); } } -const Ht = new sa(), ra = function() { +const Ft = new jr(), Wr = function() { const s = window.getSelection(); if (s.rangeCount > 0) return s; -}, Se = function() { +}, Ae = function() { var s; - const t = (s = ra()) === null || s === void 0 ? void 0 : s.getRangeAt(0); - if (t && !fo(t)) return t; -}, aa = function(s) { + const t = (s = Wr()) === null || s === void 0 ? void 0 : s.getRangeAt(0); + if (t && !Xa(t)) return t; +}, zr = function(s) { const t = window.getSelection(); - return t.removeAllRanges(), t.addRange(s), Ht.update(); -}, fo = (s) => xs(s.startContainer) || xs(s.endContainer), xs = (s) => !Object.getPrototypeOf(s), ye = (s) => s.replace(new RegExp("".concat(mi), "g"), "").replace(new RegExp("".concat(Lt), "g"), " "), Hn = new RegExp("[^\\S".concat(Lt, "]")), qn = (s) => s.replace(new RegExp("".concat(Hn.source), "g"), " ").replace(/\ {2,}/g, " "), Ss = function(s, t) { + return t.removeAllRanges(), t.addRange(s), Ft.update(); +}, Xa = (s) => ds(s.startContainer) || ds(s.endContainer), ds = (s) => !Object.getPrototypeOf(s), be = (s) => s.replace(new RegExp("".concat(si), "g"), "").replace(new RegExp("".concat(Lt), "g"), " "), wn = new RegExp("[^\\S".concat(Lt, "]")), Tn = (s) => s.replace(new RegExp("".concat(wn.source), "g"), " ").replace(/\ {2,}/g, " "), cs = function(s, t) { if (s.isEqualTo(t)) return ["", ""]; - const e = $i(s, t), { length: i } = e.utf16String; + const e = Ri(s, t), { length: i } = e.utf16String; let n; if (i) { const { offset: r } = e, a = s.codepoints.slice(0, r).concat(s.codepoints.slice(r + i)); - n = $i(t, ke.fromCodepoints(a)); - } else n = $i(t, s); + n = Ri(t, Ce.fromCodepoints(a)); + } else n = Ri(t, s); return [e.utf16String.toString(), n.utf16String.toString()]; -}, $i = function(s, t) { +}, Ri = function(s, t) { let e = 0, i = s.length, n = t.length; for (; e < i && s.charAt(e).isEqualTo(t.charAt(e)); ) e++; for (; i > e + 1 && s.charAt(i - 1).isEqualTo(t.charAt(n - 1)); ) i--, n--; return { utf16String: s.slice(e, i), offset: e }; }; -class tt extends qt { +class tt extends Ht { static fromCommonAttributesOfObjects() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; if (!t.length) return new this(); - let e = me(t[0]), i = e.getKeys(); - return t.slice(1).forEach((n) => { - i = e.getKeysCommonToHash(me(n)), e = e.slice(i); - }), e; + let e = ce(t[0]), i = e.getKeys(); + return t.slice(1).forEach(((n) => { + i = e.getKeysCommonToHash(ce(n)), e = e.slice(i); + })), e; } static box(t) { - return me(t); + return ce(t); } constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - super(...arguments), this.values = si(t); + super(...arguments), this.values = Xe(t); } add(t, e) { - return this.merge(bo(t, e)); + return this.merge(Qa(t, e)); } remove(t) { - return new tt(si(this.values, t)); + return new tt(Xe(this.values, t)); } get(t) { return this.values[t]; @@ -464,22 +457,22 @@ class tt extends qt { return t in this.values; } merge(t) { - return new tt(_o(this.values, vo(t))); + return new tt(Za(this.values, to(t))); } slice(t) { const e = {}; - return Array.from(t).forEach((i) => { + return Array.from(t).forEach(((i) => { this.has(i) && (e[i] = this.values[i]); - }), new tt(e); + })), new tt(e); } getKeys() { return Object.keys(this.values); } getKeysCommonToHash(t) { - return t = me(t), this.getKeys().filter((e) => this.values[e] === t.values[e]); + return t = ce(t), this.getKeys().filter(((e) => this.values[e] === t.values[e])); } isEqualTo(t) { - return Ft(this.toArray(), me(t).toArray()); + return Pt(this.toArray(), ce(t).toArray()); } isEmpty() { return this.getKeys().length === 0; @@ -496,7 +489,7 @@ class tt extends qt { return this.array; } toObject() { - return si(this.values); + return Xe(this.values); } toJSON() { return this.toObject(); @@ -505,32 +498,32 @@ class tt extends qt { return { values: JSON.stringify(this.values) }; } } -const bo = function(s, t) { +const Qa = function(s, t) { const e = {}; return e[s] = t, e; -}, _o = function(s, t) { - const e = si(s); +}, Za = function(s, t) { + const e = Xe(s); for (const i in t) { const n = t[i]; e[i] = n; } return e; -}, si = function(s, t) { +}, Xe = function(s, t) { const e = {}; - return Object.keys(s).sort().forEach((i) => { + return Object.keys(s).sort().forEach(((i) => { i !== t && (e[i] = s[i]); - }), e; -}, me = function(s) { + })), e; +}, ce = function(s) { return s instanceof tt ? s : new tt(s); -}, vo = function(s) { +}, to = function(s) { return s instanceof tt ? s.values : s; }; -class $n { +class kn { static groupObjects() { let t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], { depth: i, asTree: n } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; n && i == null && (i = 0); const r = []; - return Array.from(e).forEach((a) => { + return Array.from(e).forEach(((a) => { var o; if (t) { var l, c, h; @@ -538,7 +531,7 @@ class $n { r.push(new this(t, { depth: i, asTree: n })), t = null; } (o = a.canBeGrouped) !== null && o !== void 0 && o.call(a, i) ? t = [a] : r.push(a); - }), t && r.push(new this(t, { depth: i, asTree: n })), r; + })), t && r.push(new this(t, { depth: i, asTree: n })), r; } constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], { depth: e, asTree: i } = arguments.length > 1 ? arguments[1] : void 0; @@ -552,45 +545,45 @@ class $n { } getCacheKey() { const t = ["objectGroup"]; - return Array.from(this.getObjects()).forEach((e) => { + return Array.from(this.getObjects()).forEach(((e) => { t.push(e.getCacheKey()); - }), t.join("/"); + })), t.join("/"); } } -class yo extends P { +class eo extends P { constructor() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; - super(...arguments), this.objects = {}, Array.from(t).forEach((e) => { + super(...arguments), this.objects = {}, Array.from(t).forEach(((e) => { const i = JSON.stringify(e); this.objects[i] == null && (this.objects[i] = e); - }); + })); } find(t) { const e = JSON.stringify(t); return this.objects[e]; } } -class Ao { +class io { constructor(t) { this.reset(t); } add(t) { - const e = Ls(t); + const e = hs(t); this.elements[e] = t; } remove(t) { - const e = Ls(t), i = this.elements[e]; + const e = hs(t), i = this.elements[e]; if (i) return delete this.elements[e], i; } reset() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; - return this.elements = {}, Array.from(t).forEach((e) => { + return this.elements = {}, Array.from(t).forEach(((e) => { this.add(e); - }), t; + })), t; } } -const Ls = (s) => s.dataset.trixStoreKey; -class li extends P { +const hs = (s) => s.dataset.trixStoreKey; +class ei extends P { isPerforming() { return this.performing === !0; } @@ -604,9 +597,9 @@ class li extends P { return this.performed && !this.succeeded; } getPromise() { - return this.promise || (this.promise = new Promise((t, e) => (this.performing = !0, this.perform((i, n) => { + return this.promise || (this.promise = new Promise(((t, e) => (this.performing = !0, this.perform(((i, n) => { this.succeeded = i, this.performing = !1, this.performed = !0, this.succeeded ? t(n) : e(n); - })))), this.promise; + })))))), this.promise; } perform(t) { return t(!1); @@ -616,14 +609,14 @@ class li extends P { (t = this.promise) === null || t === void 0 || (e = t.cancel) === null || e === void 0 || e.call(t), this.promise = null, this.performing = null, this.performed = null, this.succeeded = null; } } -li.proxyMethod("getPromise().then"), li.proxyMethod("getPromise().catch"); -class $t extends P { +ei.proxyMethod("getPromise().then"), ei.proxyMethod("getPromise().catch"); +class qt extends P { constructor(t) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; super(...arguments), this.object = t, this.options = e, this.childViews = [], this.rootView = this; } getNodes() { - return this.nodes || (this.nodes = this.createNodes()), this.nodes.map((t) => t.cloneNode(!0)); + return this.nodes || (this.nodes = this.createNodes()), this.nodes.map(((t) => t.cloneNode(!0))); } invalidate() { var t; @@ -639,7 +632,7 @@ class $t extends P { } createChildView(t, e) { let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; - e instanceof $n && (i.viewClass = t, t = Eo); + e instanceof kn && (i.viewClass = t, t = no); const n = new t(e, i); return this.recordChildView(n); } @@ -648,15 +641,15 @@ class $t extends P { } getAllChildViews() { let t = []; - return this.childViews.forEach((e) => { + return this.childViews.forEach(((e) => { t.push(e), t = t.concat(e.getAllChildViews()); - }), t; + })), t; } findElement() { return this.findElementForObject(this.object); } findElementForObject(t) { - const e = t == null ? void 0 : t.id; + const e = t?.id; if (e) return this.rootView.element.querySelector("[data-trix-id='".concat(e, "']")); } findViewForObject(t) { @@ -685,159 +678,158 @@ class $t extends P { garbageCollectCachedViews() { const t = this.getViewCache(); if (t) { - const e = this.getAllChildViews().concat(this).map((i) => i.object.getCacheKey()); + const e = this.getAllChildViews().concat(this).map(((i) => i.object.getCacheKey())); for (const i in t) e.includes(i) || delete t[i]; } } } -class Eo extends $t { +class no extends qt { constructor() { super(...arguments), this.objectGroup = this.object, this.viewClass = this.options.viewClass, delete this.options.viewClass; } getChildViews() { - return this.childViews.length || Array.from(this.objectGroup.getObjects()).forEach((t) => { + return this.childViews.length || Array.from(this.objectGroup.getObjects()).forEach(((t) => { this.findOrCreateCachedChildView(this.viewClass, t, this.options); - }), this.childViews; + })), this.childViews; } createNodes() { const t = this.createContainerElement(); - return this.getChildViews().forEach((e) => { - Array.from(e.getNodes()).forEach((i) => { + return this.getChildViews().forEach(((e) => { + Array.from(e.getNodes()).forEach(((i) => { t.appendChild(i); - }); - }), [t]; + })); + })), [t]; } createContainerElement() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.objectGroup.getDepth(); return this.getChildViews()[0].createContainerElement(t); } } -/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */ -const { entries: oa, setPrototypeOf: Cs, isFrozen: xo, getPrototypeOf: So, getOwnPropertyDescriptor: Lo } = Object; -let { freeze: X, seal: st, create: la } = Object, { apply: Sn, construct: Ln } = typeof Reflect < "u" && Reflect; +const { entries: Kr, setPrototypeOf: us, isFrozen: so, getPrototypeOf: ro, getOwnPropertyDescriptor: ao } = Object; +let { freeze: X, seal: st, create: Gr } = Object, { apply: gn, construct: pn } = typeof Reflect < "u" && Reflect; X || (X = function(s) { return s; }), st || (st = function(s) { return s; -}), Sn || (Sn = function(s, t) { +}), gn || (gn = function(s, t) { for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++) i[n - 2] = arguments[n]; return s.apply(t, i); -}), Ln || (Ln = function(s) { +}), pn || (pn = function(s) { for (var t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) e[i - 1] = arguments[i]; return new s(...e); }); -const Ke = Q(Array.prototype.forEach), Co = Q(Array.prototype.lastIndexOf), ws = Q(Array.prototype.pop), ge = Q(Array.prototype.push), wo = Q(Array.prototype.splice), ri = Q(String.prototype.toLowerCase), Ui = Q(String.prototype.toString), Vi = Q(String.prototype.match), pe = Q(String.prototype.replace), To = Q(String.prototype.indexOf), ko = Q(String.prototype.trim), lt = Q(Object.prototype.hasOwnProperty), G = Q(RegExp.prototype.test), fe = (Ts = TypeError, function() { +const qe = Q(Array.prototype.forEach), oo = Q(Array.prototype.lastIndexOf), ms = Q(Array.prototype.pop), he = Q(Array.prototype.push), lo = Q(Array.prototype.splice), Qe = Q(String.prototype.toLowerCase), Di = Q(String.prototype.toString), Oi = Q(String.prototype.match), ue = Q(String.prototype.replace), co = Q(String.prototype.indexOf), ho = Q(String.prototype.trim), lt = Q(Object.prototype.hasOwnProperty), G = Q(RegExp.prototype.test), me = (gs = TypeError, function() { for (var s = arguments.length, t = new Array(s), e = 0; e < s; e++) t[e] = arguments[e]; - return Ln(Ts, t); + return pn(gs, t); }); -var Ts; +var gs; function Q(s) { return function(t) { t instanceof RegExp && (t.lastIndex = 0); for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++) i[n - 1] = arguments[n]; - return Sn(s, t, i); + return gn(s, t, i); }; } function L(s, t) { - let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ri; - Cs && Cs(s, null); + let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Qe; + us && us(s, null); let i = t.length; for (; i--; ) { let n = t[i]; if (typeof n == "string") { const r = e(n); - r !== n && (xo(t) || (t[i] = r), n = r); + r !== n && (so(t) || (t[i] = r), n = r); } s[n] = !0; } return s; } -function Io(s) { +function uo(s) { for (let t = 0; t < s.length; t++) lt(s, t) || (s[t] = null); return s; } -function ft(s) { - const t = la(null); - for (const [e, i] of oa(s)) - lt(s, e) && (Array.isArray(i) ? t[e] = Io(i) : i && typeof i == "object" && i.constructor === Object ? t[e] = ft(i) : t[e] = i); +function pt(s) { + const t = Gr(null); + for (const [e, i] of Kr(s)) + lt(s, e) && (Array.isArray(i) ? t[e] = uo(i) : i && typeof i == "object" && i.constructor === Object ? t[e] = pt(i) : t[e] = i); return t; } -function be(s, t) { +function ge(s, t) { for (; s !== null; ) { - const e = Lo(s, t); + const e = ao(s, t); if (e) { if (e.get) return Q(e.get); if (typeof e.value == "function") return Q(e.value); } - s = So(s); + s = ro(s); } return function() { return null; }; } -const ks = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ji = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Wi = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ro = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), zi = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Do = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Is = X(["#text"]), Rs = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ki = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ds = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ge = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Oo = st(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Mo = st(/<%[\w\W]*|[\w\W]*%>/gm), Bo = st(/\$\{[\w\W]*/gm), No = st(/^data-[\-\w.\u00B7-\uFFFF]+$/), Po = st(/^aria-[\-\w]+$/), da = st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Fo = st(/^(?:\w+script|data):/i), Ho = st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ca = st(/^html$/i), qo = st(/^[a-z][.\w]*(-[.\w]+)+$/i); -var Os = Object.freeze({ __proto__: null, ARIA_ATTR: Po, ATTR_WHITESPACE: Ho, CUSTOM_ELEMENT: qo, DATA_ATTR: No, DOCTYPE_NAME: ca, ERB_EXPR: Mo, IS_ALLOWED_URI: da, IS_SCRIPT_OR_DATA: Fo, MUSTACHE_EXPR: Oo, TMPLIT_EXPR: Bo }); -const $o = 1, Uo = 3, Vo = 7, jo = 8, Wo = 9, zo = function() { +const ps = X(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Mi = X(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Bi = X(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), mo = X(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ni = X(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), go = X(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), fs = X(["#text"]), bs = X(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Pi = X(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _s = X(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), $e = X(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), po = st(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fo = st(/<%[\w\W]*|[\w\W]*%>/gm), bo = st(/\$\{[\w\W]*/gm), _o = st(/^data-[\-\w.\u00B7-\uFFFF]+$/), vo = st(/^aria-[\-\w]+$/), Jr = st(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), yo = st(/^(?:\w+script|data):/i), Ao = st(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Yr = st(/^html$/i), Eo = st(/^[a-z][.\w]*(-[.\w]+)+$/i); +var vs = Object.freeze({ __proto__: null, ARIA_ATTR: vo, ATTR_WHITESPACE: Ao, CUSTOM_ELEMENT: Eo, DATA_ATTR: _o, DOCTYPE_NAME: Yr, ERB_EXPR: fo, IS_ALLOWED_URI: Jr, IS_SCRIPT_OR_DATA: yo, MUSTACHE_EXPR: po, TMPLIT_EXPR: bo }); +const xo = 1, So = 3, Lo = 7, Co = 8, wo = 9, To = function() { return typeof window > "u" ? null : window; }; -var Ie = function s() { - let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zo(); +var we = (function s() { + let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : To(); const e = (d) => s(d); - if (e.version = "3.2.7", e.removed = [], !t || !t.document || t.document.nodeType !== Wo || !t.Element) return e.isSupported = !1, e; + if (e.version = "3.2.7", e.removed = [], !t || !t.document || t.document.nodeType !== wo || !t.Element) return e.isSupported = !1, e; let { document: i } = t; - const n = i, r = n.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: l, Element: c, NodeFilter: h, NamedNodeMap: m = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: p, DOMParser: u, trustedTypes: b } = t, A = c.prototype, I = be(A, "cloneNode"), F = be(A, "remove"), R = be(A, "nextSibling"), H = be(A, "childNodes"), _ = be(A, "parentNode"); + const n = i, r = n.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: l, Element: c, NodeFilter: h, NamedNodeMap: g = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: p, DOMParser: u, trustedTypes: b } = t, A = c.prototype, I = ge(A, "cloneNode"), F = ge(A, "remove"), R = ge(A, "nextSibling"), H = ge(A, "childNodes"), _ = ge(A, "parentNode"); if (typeof o == "function") { const d = i.createElement("template"); d.content && d.content.ownerDocument && (i = d.content.ownerDocument); } let S, E = ""; - const { implementation: V, createNodeIterator: ct, createDocumentFragment: yt, getElementsByTagName: Be } = i, { importNode: et } = n; + const { implementation: V, createNodeIterator: ct, createDocumentFragment: _t, getElementsByTagName: Re } = i, { importNode: et } = n; let j = { afterSanitizeAttributes: [], afterSanitizeElements: [], afterSanitizeShadowDOM: [], beforeSanitizeAttributes: [], beforeSanitizeElements: [], beforeSanitizeShadowDOM: [], uponSanitizeAttribute: [], uponSanitizeElement: [], uponSanitizeShadowNode: [] }; - e.isSupported = typeof oa == "function" && typeof _ == "function" && V && V.createHTMLDocument !== void 0; - const { MUSTACHE_EXPR: re, ERB_EXPR: ae, TMPLIT_EXPR: oe, DATA_ATTR: _i, ARIA_ATTR: Ne, IS_SCRIPT_OR_DATA: Z, ATTR_WHITESPACE: mt, CUSTOM_ELEMENT: jn } = Os; - let { IS_ALLOWED_URI: Wn } = Os, $ = null; - const zn = L({}, [...ks, ...ji, ...Wi, ...zi, ...Is]); + e.isSupported = typeof Kr == "function" && typeof _ == "function" && V && V.createHTMLDocument !== void 0; + const { MUSTACHE_EXPR: ne, ERB_EXPR: se, TMPLIT_EXPR: re, DATA_ATTR: di, ARIA_ATTR: Z, IS_SCRIPT_OR_DATA: vt, ATTR_WHITESPACE: ci, CUSTOM_ELEMENT: ka } = vs; + let { IS_ALLOWED_URI: Dn } = vs, $ = null; + const On = L({}, [...ps, ...Mi, ...Bi, ...Ni, ...fs]); let W = null; - const Kn = L({}, [...Rs, ...Ki, ...Ds, ...Ge]); - let M = Object.seal(la(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), le = null, vi = null, Gn = !0, yi = !0, Jn = !1, Yn = !0, Vt = !1, Pe = !0, Tt = !1, Ai = !1, Ei = !1, jt = !1, Fe = !1, He = !1, Xn = !0, Qn = !1, xi = !0, de = !1, Wt = {}, zt = null; - const Zn = L({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); - let ts = null; - const es = L({}, ["audio", "video", "img", "source", "image", "track"]); - let Si = null; - const is = L({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), qe = "http://www.w3.org/1998/Math/MathML", $e = "http://www.w3.org/2000/svg", gt = "http://www.w3.org/1999/xhtml"; - let Kt = gt, Li = !1, Ci = null; - const za = L({}, [qe, $e, gt], Ui); - let Ue = L({}, ["mi", "mo", "mn", "ms", "mtext"]), Ve = L({}, ["annotation-xml"]); - const Ka = L({}, ["title", "style", "font", "a", "script"]); - let ce = null; - const Ga = ["application/xhtml+xml", "text/html"]; - let U = null, Gt = null; - const Ja = i.createElement("form"), ns = function(d) { + const Mn = L({}, [...bs, ...Pi, ..._s, ...$e]); + let M = Object.seal(Gr(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ae = null, hi = null, Bn = !0, ui = !0, Nn = !1, Pn = !0, Ut = !1, De = !0, Tt = !1, mi = !1, gi = !1, Vt = !1, Oe = !1, Me = !1, Fn = !0, Hn = !1, pi = !0, oe = !1, jt = {}, Wt = null; + const qn = L({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]); + let $n = null; + const Un = L({}, ["audio", "video", "img", "source", "image", "track"]); + let fi = null; + const Vn = L({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Be = "http://www.w3.org/1998/Math/MathML", Ne = "http://www.w3.org/2000/svg", mt = "http://www.w3.org/1999/xhtml"; + let zt = mt, bi = !1, _i = null; + const Ia = L({}, [Be, Ne, mt], Di); + let Pe = L({}, ["mi", "mo", "mn", "ms", "mtext"]), Fe = L({}, ["annotation-xml"]); + const Ra = L({}, ["title", "style", "font", "a", "script"]); + let le = null; + const Da = ["application/xhtml+xml", "text/html"]; + let U = null, Kt = null; + const Oa = i.createElement("form"), jn = function(d) { return d instanceof RegExp || d instanceof Function; - }, wi = function() { + }, vi = function() { let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; - if (!Gt || Gt !== d) { - if (d && typeof d == "object" || (d = {}), d = ft(d), ce = Ga.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? "text/html" : d.PARSER_MEDIA_TYPE, U = ce === "application/xhtml+xml" ? Ui : ri, $ = lt(d, "ALLOWED_TAGS") ? L({}, d.ALLOWED_TAGS, U) : zn, W = lt(d, "ALLOWED_ATTR") ? L({}, d.ALLOWED_ATTR, U) : Kn, Ci = lt(d, "ALLOWED_NAMESPACES") ? L({}, d.ALLOWED_NAMESPACES, Ui) : za, Si = lt(d, "ADD_URI_SAFE_ATTR") ? L(ft(is), d.ADD_URI_SAFE_ATTR, U) : is, ts = lt(d, "ADD_DATA_URI_TAGS") ? L(ft(es), d.ADD_DATA_URI_TAGS, U) : es, zt = lt(d, "FORBID_CONTENTS") ? L({}, d.FORBID_CONTENTS, U) : Zn, le = lt(d, "FORBID_TAGS") ? L({}, d.FORBID_TAGS, U) : ft({}), vi = lt(d, "FORBID_ATTR") ? L({}, d.FORBID_ATTR, U) : ft({}), Wt = !!lt(d, "USE_PROFILES") && d.USE_PROFILES, Gn = d.ALLOW_ARIA_ATTR !== !1, yi = d.ALLOW_DATA_ATTR !== !1, Jn = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Yn = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Vt = d.SAFE_FOR_TEMPLATES || !1, Pe = d.SAFE_FOR_XML !== !1, Tt = d.WHOLE_DOCUMENT || !1, jt = d.RETURN_DOM || !1, Fe = d.RETURN_DOM_FRAGMENT || !1, He = d.RETURN_TRUSTED_TYPE || !1, Ei = d.FORCE_BODY || !1, Xn = d.SANITIZE_DOM !== !1, Qn = d.SANITIZE_NAMED_PROPS || !1, xi = d.KEEP_CONTENT !== !1, de = d.IN_PLACE || !1, Wn = d.ALLOWED_URI_REGEXP || da, Kt = d.NAMESPACE || gt, Ue = d.MATHML_TEXT_INTEGRATION_POINTS || Ue, Ve = d.HTML_INTEGRATION_POINTS || Ve, M = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && ns(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && ns(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Vt && (yi = !1), Fe && (jt = !0), Wt && ($ = L({}, Is), W = [], Wt.html === !0 && (L($, ks), L(W, Rs)), Wt.svg === !0 && (L($, ji), L(W, Ki), L(W, Ge)), Wt.svgFilters === !0 && (L($, Wi), L(W, Ki), L(W, Ge)), Wt.mathMl === !0 && (L($, zi), L(W, Ds), L(W, Ge))), d.ADD_TAGS && ($ === zn && ($ = ft($)), L($, d.ADD_TAGS, U)), d.ADD_ATTR && (W === Kn && (W = ft(W)), L(W, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && L(Si, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && (zt === Zn && (zt = ft(zt)), L(zt, d.FORBID_CONTENTS, U)), xi && ($["#text"] = !0), Tt && L($, ["html", "head", "body"]), $.table && (L($, ["tbody"]), delete le.tbody), d.TRUSTED_TYPES_POLICY) { - if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function") throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); - if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); + if (!Kt || Kt !== d) { + if (d && typeof d == "object" || (d = {}), d = pt(d), le = Da.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? "text/html" : d.PARSER_MEDIA_TYPE, U = le === "application/xhtml+xml" ? Di : Qe, $ = lt(d, "ALLOWED_TAGS") ? L({}, d.ALLOWED_TAGS, U) : On, W = lt(d, "ALLOWED_ATTR") ? L({}, d.ALLOWED_ATTR, U) : Mn, _i = lt(d, "ALLOWED_NAMESPACES") ? L({}, d.ALLOWED_NAMESPACES, Di) : Ia, fi = lt(d, "ADD_URI_SAFE_ATTR") ? L(pt(Vn), d.ADD_URI_SAFE_ATTR, U) : Vn, $n = lt(d, "ADD_DATA_URI_TAGS") ? L(pt(Un), d.ADD_DATA_URI_TAGS, U) : Un, Wt = lt(d, "FORBID_CONTENTS") ? L({}, d.FORBID_CONTENTS, U) : qn, ae = lt(d, "FORBID_TAGS") ? L({}, d.FORBID_TAGS, U) : pt({}), hi = lt(d, "FORBID_ATTR") ? L({}, d.FORBID_ATTR, U) : pt({}), jt = !!lt(d, "USE_PROFILES") && d.USE_PROFILES, Bn = d.ALLOW_ARIA_ATTR !== !1, ui = d.ALLOW_DATA_ATTR !== !1, Nn = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Pn = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ut = d.SAFE_FOR_TEMPLATES || !1, De = d.SAFE_FOR_XML !== !1, Tt = d.WHOLE_DOCUMENT || !1, Vt = d.RETURN_DOM || !1, Oe = d.RETURN_DOM_FRAGMENT || !1, Me = d.RETURN_TRUSTED_TYPE || !1, gi = d.FORCE_BODY || !1, Fn = d.SANITIZE_DOM !== !1, Hn = d.SANITIZE_NAMED_PROPS || !1, pi = d.KEEP_CONTENT !== !1, oe = d.IN_PLACE || !1, Dn = d.ALLOWED_URI_REGEXP || Jr, zt = d.NAMESPACE || mt, Pe = d.MATHML_TEXT_INTEGRATION_POINTS || Pe, Fe = d.HTML_INTEGRATION_POINTS || Fe, M = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && jn(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (M.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && jn(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (M.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (M.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ut && (ui = !1), Oe && (Vt = !0), jt && ($ = L({}, fs), W = [], jt.html === !0 && (L($, ps), L(W, bs)), jt.svg === !0 && (L($, Mi), L(W, Pi), L(W, $e)), jt.svgFilters === !0 && (L($, Bi), L(W, Pi), L(W, $e)), jt.mathMl === !0 && (L($, Ni), L(W, _s), L(W, $e))), d.ADD_TAGS && ($ === On && ($ = pt($)), L($, d.ADD_TAGS, U)), d.ADD_ATTR && (W === Mn && (W = pt(W)), L(W, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && L(fi, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && (Wt === qn && (Wt = pt(Wt)), L(Wt, d.FORBID_CONTENTS, U)), pi && ($["#text"] = !0), Tt && L($, ["html", "head", "body"]), $.table && (L($, ["tbody"]), delete ae.tbody), d.TRUSTED_TYPES_POLICY) { + if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function") throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); + if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw me('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); S = d.TRUSTED_TYPES_POLICY, E = S.createHTML(""); - } else S === void 0 && (S = function(f, g) { + } else S === void 0 && (S = (function(f, m) { if (typeof f != "object" || typeof f.createPolicy != "function") return null; let C = null; const T = "data-tt-policy-suffix"; - g && g.hasAttribute(T) && (C = g.getAttribute(T)); + m && m.hasAttribute(T) && (C = m.getAttribute(T)); const y = "dompurify" + (C ? "#" + C : ""); try { return f.createPolicy(y, { createHTML: (q) => q, createScriptURL: (q) => q }); } catch { return console.warn("TrustedTypes policy " + y + " could not be created."), null; } - }(b, r)), S !== null && typeof E == "string" && (E = S.createHTML("")); - X && X(d), Gt = d; + })(b, r)), S !== null && typeof E == "string" && (E = S.createHTML("")); + X && X(d), Kt = d; } - }, ss = L({}, [...ji, ...Wi, ...Ro]), rs = L({}, [...zi, ...Do]), ht = function(d) { - ge(e.removed, { element: d }); + }, Wn = L({}, [...Mi, ...Bi, ...mo]), zn = L({}, [...Ni, ...go]), ht = function(d) { + he(e.removed, { element: d }); try { _(d).removeChild(d); } catch { @@ -845,11 +837,11 @@ var Ie = function s() { } }, kt = function(d, f) { try { - ge(e.removed, { attribute: f.getAttributeNode(d), from: f }); + he(e.removed, { attribute: f.getAttributeNode(d), from: f }); } catch { - ge(e.removed, { attribute: null, from: f }); + he(e.removed, { attribute: null, from: f }); } - if (f.removeAttribute(d), d === "is") if (jt || Fe) try { + if (f.removeAttribute(d), d === "is") if (Vt || Oe) try { ht(f); } catch { } @@ -857,49 +849,49 @@ var Ie = function s() { f.setAttribute(d, ""); } catch { } - }, as = function(d) { - let f = null, g = null; - if (Ei) d = "