@burdenoff/microfe-support 2026.510.52 → 2026.511.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,22 +10,22 @@ a ||= function(e) {
10
10
  }, l ||= function(e) {
11
11
  return new e(...[...arguments].slice(1));
12
12
  };
13
- var u = _(Array.prototype.forEach), d = _(Array.prototype.lastIndexOf), ee = _(Array.prototype.pop), f = _(Array.prototype.push), te = _(Array.prototype.splice), ne = _(String.prototype.toLowerCase), re = _(String.prototype.toString), ie = _(String.prototype.match), p = _(String.prototype.replace), ae = _(String.prototype.indexOf), oe = _(String.prototype.trim), m = _(Object.prototype.hasOwnProperty), h = _(RegExp.prototype.test), g = se(TypeError);
14
- function _(e) {
13
+ var u = x(Array.prototype.forEach), d = x(Array.prototype.lastIndexOf), ee = x(Array.prototype.pop), f = x(Array.prototype.push), te = x(Array.prototype.splice), p = Array.isArray, m = x(String.prototype.toLowerCase), ne = x(String.prototype.toString), re = x(String.prototype.match), h = x(String.prototype.replace), ie = x(String.prototype.indexOf), ae = x(String.prototype.trim), oe = x(Number.prototype.toString), se = x(Boolean.prototype.toString), g = typeof BigInt > "u" ? null : x(BigInt.prototype.toString), ce = typeof Symbol > "u" ? null : x(Symbol.prototype.toString), _ = x(Object.prototype.hasOwnProperty), v = x(Object.prototype.toString), y = x(RegExp.prototype.test), b = S(TypeError);
14
+ function x(e) {
15
15
  return function(t) {
16
16
  t instanceof RegExp && (t.lastIndex = 0);
17
17
  var n = [...arguments].slice(1);
18
18
  return c(e, t, n);
19
19
  };
20
20
  }
21
- function se(e) {
21
+ function S(e) {
22
22
  return function() {
23
23
  return l(e, [...arguments]);
24
24
  };
25
25
  }
26
- function v(e, r) {
27
- let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ne;
28
- t && t(e, null);
26
+ function C(e, r) {
27
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : m;
28
+ if (t && t(e, null), !p(r)) return e;
29
29
  let a = r.length;
30
30
  for (; a--;) {
31
31
  let t = r[a];
@@ -37,21 +37,42 @@ function v(e, r) {
37
37
  }
38
38
  return e;
39
39
  }
40
- function y(e) {
41
- for (let t = 0; t < e.length; t++) m(e, t) || (e[t] = null);
40
+ function w(e) {
41
+ for (let t = 0; t < e.length; t++) _(e, t) || (e[t] = null);
42
42
  return e;
43
43
  }
44
- function b(t) {
44
+ function T(t) {
45
45
  let n = s(null);
46
- for (let [r, i] of e(t)) m(t, r) && (Array.isArray(i) ? n[r] = y(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = b(i) : n[r] = i);
46
+ for (let [r, i] of e(t)) _(t, r) && (p(i) ? n[r] = w(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = T(i) : n[r] = i);
47
47
  return n;
48
48
  }
49
- function x(e, t) {
49
+ function le(e) {
50
+ switch (typeof e) {
51
+ case "string": return e;
52
+ case "number": return oe(e);
53
+ case "boolean": return se(e);
54
+ case "bigint": return g ? g(e) : "0";
55
+ case "symbol": return ce ? ce(e) : "Symbol()";
56
+ case "undefined": return v(e);
57
+ case "function":
58
+ case "object": {
59
+ if (e === null) return v(e);
60
+ let t = e, n = E(t, "toString");
61
+ if (typeof n == "function") {
62
+ let e = n(t);
63
+ return typeof e == "string" ? e : v(e);
64
+ }
65
+ return v(e);
66
+ }
67
+ default: return v(e);
68
+ }
69
+ }
70
+ function E(e, t) {
50
71
  for (; e !== null;) {
51
72
  let n = i(e, t);
52
73
  if (n) {
53
- if (n.get) return _(n.get);
54
- if (typeof n.value == "function") return _(n.value);
74
+ if (n.get) return x(n.get);
75
+ if (typeof n.value == "function") return x(n.value);
55
76
  }
56
77
  e = r(e);
57
78
  }
@@ -60,7 +81,14 @@ function x(e, t) {
60
81
  }
61
82
  return n;
62
83
  }
63
- var ce = a(/* @__PURE__ */ "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".split(".")), le = a(/* @__PURE__ */ "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.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), ue = a([
84
+ function ue(e) {
85
+ try {
86
+ return y(e, ""), !0;
87
+ } catch {
88
+ return !1;
89
+ }
90
+ }
91
+ var de = a(/* @__PURE__ */ "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".split(".")), fe = a(/* @__PURE__ */ "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.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), pe = a([
64
92
  "feBlend",
65
93
  "feColorMatrix",
66
94
  "feComponentTransfer",
@@ -86,7 +114,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
86
114
  "feSpotLight",
87
115
  "feTile",
88
116
  "feTurbulence"
89
- ]), de = a([
117
+ ]), me = a([
90
118
  "animate",
91
119
  "color-profile",
92
120
  "cursor",
@@ -109,7 +137,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
109
137
  "solidcolor",
110
138
  "unknown",
111
139
  "use"
112
- ]), fe = a(/* @__PURE__ */ "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".split(".")), pe = a([
140
+ ]), he = a(/* @__PURE__ */ "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".split(".")), ge = a([
113
141
  "maction",
114
142
  "maligngroup",
115
143
  "malignmark",
@@ -125,33 +153,33 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
125
153
  "annotation-xml",
126
154
  "mprescripts",
127
155
  "none"
128
- ]), me = a(["#text"]), he = a(/* @__PURE__ */ "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".split(".")), ge = a(/* @__PURE__ */ "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.mask-type.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".split(".")), _e = a(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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".split(".")), S = a([
156
+ ]), _e = a(["#text"]), ve = a(/* @__PURE__ */ "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".split(".")), ye = a(/* @__PURE__ */ "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.mask-type.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".split(".")), be = a(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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".split(".")), xe = a([
129
157
  "xlink:href",
130
158
  "xml:id",
131
159
  "xlink:title",
132
160
  "xml:space",
133
161
  "xmlns:xlink"
134
- ]), ve = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ye = o(/<%[\w\W]*|[\w\W]*%>/gm), be = o(/\$\{[\w\W]*/gm), C = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), w = o(/^aria-[\-\w]+$/), xe = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Se = o(/^(?:\w+script|data):/i), Ce = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), we = o(/^html$/i), Te = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Ee = /* @__PURE__ */ Object.freeze({
162
+ ]), Se = o(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ce = o(/<%[\w\W]*|[\w\W]*%>/gm), we = o(/\$\{[\w\W]*/gm), Te = o(/^data-[\-\w.\u00B7-\uFFFF]+$/), D = o(/^aria-[\-\w]+$/), Ee = o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), O = o(/^(?:\w+script|data):/i), k = o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), De = o(/^html$/i), A = o(/^[a-z][.\w]*(-[.\w]+)+$/i), Oe = /* @__PURE__ */ Object.freeze({
135
163
  __proto__: null,
136
- ARIA_ATTR: w,
137
- ATTR_WHITESPACE: Ce,
138
- CUSTOM_ELEMENT: Te,
139
- DATA_ATTR: C,
140
- DOCTYPE_NAME: we,
141
- ERB_EXPR: ye,
142
- IS_ALLOWED_URI: xe,
143
- IS_SCRIPT_OR_DATA: Se,
144
- MUSTACHE_EXPR: ve,
145
- TMPLIT_EXPR: be
146
- }), T = {
164
+ ARIA_ATTR: D,
165
+ ATTR_WHITESPACE: k,
166
+ CUSTOM_ELEMENT: A,
167
+ DATA_ATTR: Te,
168
+ DOCTYPE_NAME: De,
169
+ ERB_EXPR: Ce,
170
+ IS_ALLOWED_URI: Ee,
171
+ IS_SCRIPT_OR_DATA: O,
172
+ MUSTACHE_EXPR: Se,
173
+ TMPLIT_EXPR: we
174
+ }), j = {
147
175
  element: 1,
148
176
  text: 3,
149
177
  progressingInstruction: 7,
150
178
  comment: 8,
151
179
  document: 9
152
- }, De = function() {
180
+ }, ke = function() {
153
181
  return typeof window > "u" ? null : window;
154
- }, Oe = function(e, t) {
182
+ }, Ae = function(e, t) {
155
183
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
156
184
  let n = null, r = "data-tt-policy-suffix";
157
185
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -168,7 +196,7 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
168
196
  } catch {
169
197
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
170
198
  }
171
- }, ke = function() {
199
+ }, je = function() {
172
200
  return {
173
201
  afterSanitizeAttributes: [],
174
202
  afterSanitizeElements: [],
@@ -181,28 +209,28 @@ var ce = a(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
181
209
  uponSanitizeShadowNode: []
182
210
  };
183
211
  };
184
- function Ae() {
185
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : De(), n = (e) => Ae(e);
186
- if (n.version = "3.4.0", n.removed = [], !t || !t.document || t.document.nodeType !== T.document || !t.Element) return n.isSupported = !1, n;
187
- let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: _, Element: se, NodeFilter: y, NamedNodeMap: ve = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: ye, DOMParser: be, trustedTypes: C } = t, w = se.prototype, Se = x(w, "cloneNode"), Ce = x(w, "remove"), Te = x(w, "nextSibling"), je = x(w, "childNodes"), Me = x(w, "parentNode");
212
+ function Me() {
213
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ke(), n = (e) => Me(e);
214
+ if (n.version = "3.4.2", n.removed = [], !t || !t.document || t.document.nodeType !== j.document || !t.Element) return n.isSupported = !1, n;
215
+ let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: oe, Element: se, NodeFilter: g, NamedNodeMap: ce = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: v, DOMParser: x, trustedTypes: S } = t, w = se.prototype, Se = E(w, "cloneNode"), Ce = E(w, "remove"), we = E(w, "nextSibling"), Te = E(w, "childNodes"), D = E(w, "parentNode");
188
216
  if (typeof l == "function") {
189
217
  let e = r.createElement("template");
190
218
  e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
191
219
  }
192
- let E, D = "", { implementation: Ne, createNodeIterator: Pe, createDocumentFragment: Fe, getElementsByTagName: Ie } = r, { importNode: Le } = i, O = ke();
193
- n.isSupported = typeof e == "function" && typeof Me == "function" && Ne && Ne.createHTMLDocument !== void 0;
194
- let { MUSTACHE_EXPR: k, ERB_EXPR: A, TMPLIT_EXPR: j, DATA_ATTR: Re, ARIA_ATTR: ze, IS_SCRIPT_OR_DATA: Be, ATTR_WHITESPACE: Ve, CUSTOM_ELEMENT: He } = Ee, { IS_ALLOWED_URI: Ue } = Ee, M = null, We = v({}, [
195
- ...ce,
196
- ...le,
197
- ...ue,
220
+ let O, k = "", { implementation: A, createNodeIterator: Ne, createDocumentFragment: Pe, getElementsByTagName: Fe } = r, { importNode: Ie } = i, M = je();
221
+ n.isSupported = typeof e == "function" && typeof D == "function" && A && A.createHTMLDocument !== void 0;
222
+ let { MUSTACHE_EXPR: Le, ERB_EXPR: Re, TMPLIT_EXPR: N, DATA_ATTR: ze, ARIA_ATTR: Be, IS_SCRIPT_OR_DATA: Ve, ATTR_WHITESPACE: He, CUSTOM_ELEMENT: Ue } = Oe, { IS_ALLOWED_URI: We } = Oe, P = null, Ge = C({}, [
223
+ ...de,
198
224
  ...fe,
199
- ...me
200
- ]), N = null, Ge = v({}, [
225
+ ...pe,
201
226
  ...he,
202
- ...ge,
203
- ..._e,
204
- ...S
205
- ]), P = Object.seal(s(null, {
227
+ ..._e
228
+ ]), F = null, Ke = C({}, [
229
+ ...ve,
230
+ ...ye,
231
+ ...be,
232
+ ...xe
233
+ ]), I = Object.seal(s(null, {
206
234
  tagNameCheck: {
207
235
  writable: !0,
208
236
  configurable: !1,
@@ -221,7 +249,7 @@ function Ae() {
221
249
  enumerable: !0,
222
250
  value: !1
223
251
  }
224
- })), F = null, Ke = null, I = Object.seal(s(null, {
252
+ })), L = null, qe = null, R = Object.seal(s(null, {
225
253
  tagCheck: {
226
254
  writable: !0,
227
255
  configurable: !1,
@@ -234,7 +262,7 @@ function Ae() {
234
262
  enumerable: !0,
235
263
  value: null
236
264
  }
237
- })), qe = !0, Je = !0, Ye = !1, Xe = !0, L = !1, R = !0, z = !1, Ze = !1, Qe = !1, B = !1, V = !1, H = !1, $e = !0, et = !1, tt = !0, U = !1, W = {}, G = null, nt = v({}, [
265
+ })), Je = !0, Ye = !0, Xe = !1, Ze = !0, z = !1, B = !0, V = !1, Qe = !1, $e = !1, H = !1, et = !1, tt = !1, nt = !0, rt = !1, it = "user-content-", at = !0, U = !1, W = {}, G = null, ot = C({}, [
238
266
  "annotation-xml",
239
267
  "audio",
240
268
  "colgroup",
@@ -260,14 +288,14 @@ function Ae() {
260
288
  "title",
261
289
  "video",
262
290
  "xmp"
263
- ]), rt = null, it = v({}, [
291
+ ]), st = null, ct = C({}, [
264
292
  "audio",
265
293
  "video",
266
294
  "img",
267
295
  "source",
268
296
  "image",
269
297
  "track"
270
- ]), at = null, ot = v({}, [
298
+ ]), lt = null, ut = C({}, [
271
299
  "alt",
272
300
  "class",
273
301
  "for",
@@ -282,54 +310,61 @@ function Ae() {
282
310
  "value",
283
311
  "style",
284
312
  "xmlns"
285
- ]), st = "http://www.w3.org/1998/Math/MathML", ct = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, lt = !1, ut = null, dt = v({}, [
286
- st,
287
- ct,
313
+ ]), dt = "http://www.w3.org/1998/Math/MathML", ft = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, pt = !1, mt = null, ht = C({}, [
314
+ dt,
315
+ ft,
288
316
  K
289
- ], re), ft = v({}, [
317
+ ], ne), gt = C({}, [
290
318
  "mi",
291
319
  "mo",
292
320
  "mn",
293
321
  "ms",
294
322
  "mtext"
295
- ]), pt = v({}, ["annotation-xml"]), mt = v({}, [
323
+ ]), _t = C({}, ["annotation-xml"]), vt = C({}, [
296
324
  "title",
297
325
  "style",
298
326
  "font",
299
327
  "a",
300
328
  "script"
301
- ]), J = null, ht = ["application/xhtml+xml", "text/html"], Y = null, X = null, gt = r.createElement("form"), _t = function(e) {
329
+ ]), J = null, yt = ["application/xhtml+xml", "text/html"], Y = null, X = null, bt = r.createElement("form"), xt = function(e) {
302
330
  return e instanceof RegExp || e instanceof Function;
303
- }, vt = function() {
331
+ }, St = function() {
304
332
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
305
- if (!(X && X === e)) {
306
- if ((!e || typeof e != "object") && (e = {}), e = b(e), J = ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? re : ne, M = m(e, "ALLOWED_TAGS") ? v({}, e.ALLOWED_TAGS, Y) : We, N = m(e, "ALLOWED_ATTR") ? v({}, e.ALLOWED_ATTR, Y) : Ge, ut = m(e, "ALLOWED_NAMESPACES") ? v({}, e.ALLOWED_NAMESPACES, re) : dt, at = m(e, "ADD_URI_SAFE_ATTR") ? v(b(ot), e.ADD_URI_SAFE_ATTR, Y) : ot, rt = m(e, "ADD_DATA_URI_TAGS") ? v(b(it), e.ADD_DATA_URI_TAGS, Y) : it, G = m(e, "FORBID_CONTENTS") ? v({}, e.FORBID_CONTENTS, Y) : nt, F = m(e, "FORBID_TAGS") ? v({}, e.FORBID_TAGS, Y) : b({}), Ke = m(e, "FORBID_ATTR") ? v({}, e.FORBID_ATTR, Y) : b({}), W = m(e, "USE_PROFILES") ? e.USE_PROFILES : !1, qe = e.ALLOW_ARIA_ATTR !== !1, Je = e.ALLOW_DATA_ATTR !== !1, Ye = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, L = e.SAFE_FOR_TEMPLATES || !1, R = e.SAFE_FOR_XML !== !1, z = e.WHOLE_DOCUMENT || !1, B = e.RETURN_DOM || !1, V = e.RETURN_DOM_FRAGMENT || !1, H = e.RETURN_TRUSTED_TYPE || !1, Qe = e.FORCE_BODY || !1, $e = e.SANITIZE_DOM !== !1, et = e.SANITIZE_NAMED_PROPS || !1, tt = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, Ue = e.ALLOWED_URI_REGEXP || xe, q = e.NAMESPACE || K, ft = e.MATHML_TEXT_INTEGRATION_POINTS || ft, pt = e.HTML_INTEGRATION_POINTS || pt, P = e.CUSTOM_ELEMENT_HANDLING || s(null), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (P.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (P.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (P.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), L && (Je = !1), V && (B = !0), W && (M = v({}, me), N = s(null), W.html === !0 && (v(M, ce), v(N, he)), W.svg === !0 && (v(M, le), v(N, ge), v(N, S)), W.svgFilters === !0 && (v(M, ue), v(N, ge), v(N, S)), W.mathMl === !0 && (v(M, fe), v(N, _e), v(N, S))), I.tagCheck = null, I.attributeCheck = null, e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? I.tagCheck = e.ADD_TAGS : (M === We && (M = b(M)), v(M, e.ADD_TAGS, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? I.attributeCheck = e.ADD_ATTR : (N === Ge && (N = b(N)), v(N, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && v(at, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (G === nt && (G = b(G)), v(G, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (G === nt && (G = b(G)), v(G, e.ADD_FORBID_CONTENTS, Y)), tt && (M["#text"] = !0), z && v(M, [
307
- "html",
308
- "head",
309
- "body"
310
- ]), M.table && (v(M, ["tbody"]), delete F.tbody), e.TRUSTED_TYPES_POLICY) {
311
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw g("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
312
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw g("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
313
- E = e.TRUSTED_TYPES_POLICY, D = E.createHTML("");
314
- } else E === void 0 && (E = Oe(C, o)), E !== null && typeof D == "string" && (D = E.createHTML(""));
315
- a && a(e), X = e;
316
- }
317
- }, yt = v({}, [
318
- ...le,
319
- ...ue,
320
- ...de
321
- ]), bt = v({}, [...fe, ...pe]), xt = function(e) {
322
- let t = Me(e);
333
+ if (X && X === e) return;
334
+ (!e || typeof e != "object") && (e = {}), e = T(e), J = yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? ne : m, P = _(e, "ALLOWED_TAGS") && p(e.ALLOWED_TAGS) ? C({}, e.ALLOWED_TAGS, Y) : Ge, F = _(e, "ALLOWED_ATTR") && p(e.ALLOWED_ATTR) ? C({}, e.ALLOWED_ATTR, Y) : Ke, mt = _(e, "ALLOWED_NAMESPACES") && p(e.ALLOWED_NAMESPACES) ? C({}, e.ALLOWED_NAMESPACES, ne) : ht, lt = _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) ? C(T(ut), e.ADD_URI_SAFE_ATTR, Y) : ut, st = _(e, "ADD_DATA_URI_TAGS") && p(e.ADD_DATA_URI_TAGS) ? C(T(ct), e.ADD_DATA_URI_TAGS, Y) : ct, G = _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) ? C({}, e.FORBID_CONTENTS, Y) : ot, L = _(e, "FORBID_TAGS") && p(e.FORBID_TAGS) ? C({}, e.FORBID_TAGS, Y) : T({}), qe = _(e, "FORBID_ATTR") && p(e.FORBID_ATTR) ? C({}, e.FORBID_ATTR, Y) : T({}), W = _(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? T(e.USE_PROFILES) : e.USE_PROFILES : !1, Je = e.ALLOW_ARIA_ATTR !== !1, Ye = e.ALLOW_DATA_ATTR !== !1, Xe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, z = e.SAFE_FOR_TEMPLATES || !1, B = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, et = e.RETURN_DOM_FRAGMENT || !1, tt = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, nt = e.SANITIZE_DOM !== !1, rt = e.SANITIZE_NAMED_PROPS || !1, at = e.KEEP_CONTENT !== !1, U = e.IN_PLACE || !1, We = ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ee, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, gt = _(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? T(e.MATHML_TEXT_INTEGRATION_POINTS) : C({}, [
335
+ "mi",
336
+ "mo",
337
+ "mn",
338
+ "ms",
339
+ "mtext"
340
+ ]), _t = _(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? T(e.HTML_INTEGRATION_POINTS) : C({}, ["annotation-xml"]);
341
+ let t = _(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? T(e.CUSTOM_ELEMENT_HANDLING) : s(null);
342
+ if (I = s(null), _(t, "tagNameCheck") && xt(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), _(t, "attributeNameCheck") && xt(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), _(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), z && (Ye = !1), et && (H = !0), W && (P = C({}, _e), F = s(null), W.html === !0 && (C(P, de), C(F, ve)), W.svg === !0 && (C(P, fe), C(F, ye), C(F, xe)), W.svgFilters === !0 && (C(P, pe), C(F, ye), C(F, xe)), W.mathMl === !0 && (C(P, he), C(F, be), C(F, xe))), R.tagCheck = null, R.attributeCheck = null, _(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? R.tagCheck = e.ADD_TAGS : p(e.ADD_TAGS) && (P === Ge && (P = T(P)), C(P, e.ADD_TAGS, Y))), _(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? R.attributeCheck = e.ADD_ATTR : p(e.ADD_ATTR) && (F === Ke && (F = T(F)), C(F, e.ADD_ATTR, Y))), _(e, "ADD_URI_SAFE_ATTR") && p(e.ADD_URI_SAFE_ATTR) && C(lt, e.ADD_URI_SAFE_ATTR, Y), _(e, "FORBID_CONTENTS") && p(e.FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.FORBID_CONTENTS, Y)), _(e, "ADD_FORBID_CONTENTS") && p(e.ADD_FORBID_CONTENTS) && (G === ot && (G = T(G)), C(G, e.ADD_FORBID_CONTENTS, Y)), at && (P["#text"] = !0), V && C(P, [
343
+ "html",
344
+ "head",
345
+ "body"
346
+ ]), P.table && (C(P, ["tbody"]), delete L.tbody), e.TRUSTED_TYPES_POLICY) {
347
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
348
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw b("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
349
+ O = e.TRUSTED_TYPES_POLICY, k = O.createHTML("");
350
+ } else O === void 0 && (O = Ae(S, o)), O !== null && typeof k == "string" && (k = O.createHTML(""));
351
+ a && a(e), X = e;
352
+ }, Ct = C({}, [
353
+ ...fe,
354
+ ...pe,
355
+ ...me
356
+ ]), wt = C({}, [...he, ...ge]), Tt = function(e) {
357
+ let t = D(e);
323
358
  (!t || !t.tagName) && (t = {
324
359
  namespaceURI: q,
325
360
  tagName: "template"
326
361
  });
327
- let n = ne(e.tagName), r = ne(t.tagName);
328
- return ut[e.namespaceURI] ? e.namespaceURI === ct ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === st ? n === "svg" && (r === "annotation-xml" || ft[r]) : !!yt[n] : e.namespaceURI === st ? t.namespaceURI === K ? n === "math" : t.namespaceURI === ct ? n === "math" && pt[r] : !!bt[n] : e.namespaceURI === K ? t.namespaceURI === ct && !pt[r] || t.namespaceURI === st && !ft[r] ? !1 : !bt[n] && (mt[n] || !yt[n]) : !!(J === "application/xhtml+xml" && ut[e.namespaceURI]) : !1;
362
+ let n = m(e.tagName), r = m(t.tagName);
363
+ return mt[e.namespaceURI] ? e.namespaceURI === ft ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === dt ? n === "svg" && (r === "annotation-xml" || gt[r]) : !!Ct[n] : e.namespaceURI === dt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === ft ? n === "math" && _t[r] : !!wt[n] : e.namespaceURI === K ? t.namespaceURI === ft && !_t[r] || t.namespaceURI === dt && !gt[r] ? !1 : !wt[n] && (vt[n] || !Ct[n]) : !!(J === "application/xhtml+xml" && mt[e.namespaceURI]) : !1;
329
364
  }, Z = function(e) {
330
365
  f(n.removed, { element: e });
331
366
  try {
332
- Me(e).removeChild(e);
367
+ D(e).removeChild(e);
333
368
  } catch {
334
369
  Ce(e);
335
370
  }
@@ -345,101 +380,111 @@ function Ae() {
345
380
  from: t
346
381
  });
347
382
  }
348
- if (t.removeAttribute(e), e === "is") if (B || V) try {
383
+ if (t.removeAttribute(e), e === "is") if (H || et) try {
349
384
  Z(t);
350
385
  } catch {}
351
386
  else try {
352
387
  t.setAttribute(e, "");
353
388
  } catch {}
354
- }, St = function(e) {
389
+ }, Et = function(e) {
355
390
  let t = null, n = null;
356
- if (Qe) e = "<remove></remove>" + e;
391
+ if ($e) e = "<remove></remove>" + e;
357
392
  else {
358
- let t = ie(e, /^[\r\n\t ]+/);
393
+ let t = re(e, /^[\r\n\t ]+/);
359
394
  n = t && t[0];
360
395
  }
361
396
  J === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
362
- let i = E ? E.createHTML(e) : e;
397
+ let i = O ? O.createHTML(e) : e;
363
398
  if (q === K) try {
364
- t = new be().parseFromString(i, J);
399
+ t = new x().parseFromString(i, J);
365
400
  } catch {}
366
401
  if (!t || !t.documentElement) {
367
- t = Ne.createDocument(q, "template", null);
402
+ t = A.createDocument(q, "template", null);
368
403
  try {
369
- t.documentElement.innerHTML = lt ? D : i;
404
+ t.documentElement.innerHTML = pt ? k : i;
370
405
  } catch {}
371
406
  }
372
407
  let a = t.body || t.documentElement;
373
- return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Ie.call(t, z ? "html" : "body")[0] : z ? t.documentElement : a;
374
- }, Ct = function(e) {
375
- return Pe.call(e.ownerDocument || e, e, y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT | y.SHOW_PROCESSING_INSTRUCTION | y.SHOW_CDATA_SECTION, null);
376
- }, wt = function(e) {
377
- return e instanceof ye && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ve) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
378
- }, Tt = function(e) {
379
- return typeof _ == "function" && e instanceof _;
408
+ return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), q === K ? Fe.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
409
+ }, Dt = function(e) {
410
+ return Ne.call(e.ownerDocument || e, e, g.SHOW_ELEMENT | g.SHOW_COMMENT | g.SHOW_TEXT | g.SHOW_PROCESSING_INSTRUCTION | g.SHOW_CDATA_SECTION, null);
411
+ }, Ot = function(e) {
412
+ return e instanceof v && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ce) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
413
+ }, kt = function(e) {
414
+ return typeof oe == "function" && e instanceof oe;
380
415
  };
381
416
  function $(e, t, r) {
382
417
  u(e, (e) => {
383
418
  e.call(n, t, r, X);
384
419
  });
385
420
  }
386
- let Et = function(e) {
421
+ let At = function(e) {
387
422
  let t = null;
388
- if ($(O.beforeSanitizeElements, e, null), wt(e)) return Z(e), !0;
423
+ if ($(M.beforeSanitizeElements, e, null), Ot(e)) return Z(e), !0;
389
424
  let r = Y(e.nodeName);
390
- if ($(O.uponSanitizeElement, e, {
425
+ if ($(M.uponSanitizeElement, e, {
391
426
  tagName: r,
392
- allowedTags: M
393
- }), R && e.hasChildNodes() && !Tt(e.firstElementChild) && h(/<[/\w!]/g, e.innerHTML) && h(/<[/\w!]/g, e.textContent) || R && e.namespaceURI === K && r === "style" && Tt(e.firstElementChild) || e.nodeType === T.progressingInstruction || R && e.nodeType === T.comment && h(/<[/\w]/g, e.data)) return Z(e), !0;
394
- if (F[r] || !(I.tagCheck instanceof Function && I.tagCheck(r)) && !M[r]) {
395
- if (!F[r] && Ot(r) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, r) || P.tagNameCheck instanceof Function && P.tagNameCheck(r))) return !1;
396
- if (tt && !G[r]) {
397
- let t = Me(e) || e.parentNode, n = je(e) || e.childNodes;
427
+ allowedTags: P
428
+ }), B && e.hasChildNodes() && !kt(e.firstElementChild) && y(/<[/\w!]/g, e.innerHTML) && y(/<[/\w!]/g, e.textContent) || B && e.namespaceURI === K && r === "style" && kt(e.firstElementChild) || e.nodeType === j.progressingInstruction || B && e.nodeType === j.comment && y(/<[/\w]/g, e.data)) return Z(e), !0;
429
+ if (L[r] || !(R.tagCheck instanceof Function && R.tagCheck(r)) && !P[r]) {
430
+ if (!L[r] && Nt(r) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, r) || I.tagNameCheck instanceof Function && I.tagNameCheck(r))) return !1;
431
+ if (at && !G[r]) {
432
+ let t = D(e) || e.parentNode, n = Te(e) || e.childNodes;
398
433
  if (n && t) {
399
434
  let r = n.length;
400
435
  for (let i = r - 1; i >= 0; --i) {
401
436
  let r = Se(n[i], !0);
402
- r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Te(e));
437
+ t.insertBefore(r, we(e));
403
438
  }
404
439
  }
405
440
  }
406
441
  return Z(e), !0;
407
442
  }
408
- return e instanceof se && !xt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (L && e.nodeType === T.text && (t = e.textContent, u([
409
- k,
410
- A,
411
- j
443
+ return e instanceof se && !Tt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && y(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), !0) : (z && e.nodeType === j.text && (t = e.textContent, u([
444
+ Le,
445
+ Re,
446
+ N
412
447
  ], (e) => {
413
- t = p(t, e, " ");
414
- }), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(O.afterSanitizeElements, e, null), !1);
415
- }, Dt = function(e, t, n) {
416
- if (Ke[t] || $e && (t === "id" || t === "name") && (n in r || n in gt)) return !1;
417
- if (!(Je && !Ke[t] && h(Re, t)) && !(qe && h(ze, t)) && !(I.attributeCheck instanceof Function && I.attributeCheck(t, e))) {
418
- if (!N[t] || Ke[t]) {
419
- if (!(Ot(e) && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, e) || P.tagNameCheck instanceof Function && P.tagNameCheck(e)) && (P.attributeNameCheck instanceof RegExp && h(P.attributeNameCheck, t) || P.attributeNameCheck instanceof Function && P.attributeNameCheck(t, e)) || t === "is" && P.allowCustomizedBuiltInElements && (P.tagNameCheck instanceof RegExp && h(P.tagNameCheck, n) || P.tagNameCheck instanceof Function && P.tagNameCheck(n)))) return !1;
420
- } else if (!at[t] && !h(Ue, p(n, Ve, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ae(n, "data:") === 0 && rt[e]) && !(Ye && !h(Be, p(n, Ve, ""))) && n) return !1;
448
+ t = h(t, e, " ");
449
+ }), e.textContent !== t && (f(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(M.afterSanitizeElements, e, null), !1);
450
+ }, jt = function(e, t, n) {
451
+ if (qe[t] || nt && (t === "id" || t === "name") && (n in r || n in bt)) return !1;
452
+ let i = F[t] || R.attributeCheck instanceof Function && R.attributeCheck(t, e);
453
+ if (!(Ye && !qe[t] && y(ze, t)) && !(Je && y(Be, t))) {
454
+ if (!i || qe[t]) {
455
+ if (!(Nt(e) && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && y(I.attributeNameCheck, t) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(t, e)) || t === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && y(I.tagNameCheck, n) || I.tagNameCheck instanceof Function && I.tagNameCheck(n)))) return !1;
456
+ } else if (!lt[t] && !y(We, h(n, He, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ie(n, "data:") === 0 && st[e]) && !(Xe && !y(Ve, h(n, He, ""))) && n) return !1;
421
457
  }
422
458
  return !0;
423
- }, Ot = function(e) {
424
- return e !== "annotation-xml" && ie(e, He);
425
- }, kt = function(e) {
426
- $(O.beforeSanitizeAttributes, e, null);
459
+ }, Mt = C({}, [
460
+ "annotation-xml",
461
+ "color-profile",
462
+ "font-face",
463
+ "font-face-format",
464
+ "font-face-name",
465
+ "font-face-src",
466
+ "font-face-uri",
467
+ "missing-glyph"
468
+ ]), Nt = function(e) {
469
+ return !Mt[m(e)] && y(Ue, e);
470
+ }, Pt = function(e) {
471
+ $(M.beforeSanitizeAttributes, e, null);
427
472
  let { attributes: t } = e;
428
- if (!t || wt(e)) return;
473
+ if (!t || Ot(e)) return;
429
474
  let r = {
430
475
  attrName: "",
431
476
  attrValue: "",
432
477
  keepAttr: !0,
433
- allowedAttributes: N,
478
+ allowedAttributes: F,
434
479
  forceKeepAttr: void 0
435
480
  }, i = t.length;
436
481
  for (; i--;) {
437
- let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : oe(l);
438
- if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(O.uponSanitizeAttribute, e, r), d = r.attrValue, et && (c === "id" || c === "name") && (Q(a, e), d = "user-content-" + d), R && h(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
482
+ let { name: a, namespaceURI: o, value: s } = t[i], c = Y(a), l = s, d = a === "value" ? l : ae(l);
483
+ if (r.attrName = c, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, r), d = r.attrValue, rt && (c === "id" || c === "name") && ie(d, it) !== 0 && (Q(a, e), d = it + d), B && y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
439
484
  Q(a, e);
440
485
  continue;
441
486
  }
442
- if (c === "attributename" && ie(d, "href")) {
487
+ if (c === "attributename" && re(d, "href")) {
443
488
  Q(a, e);
444
489
  continue;
445
490
  }
@@ -448,108 +493,107 @@ function Ae() {
448
493
  Q(a, e);
449
494
  continue;
450
495
  }
451
- if (!Xe && h(/\/>/i, d)) {
496
+ if (!Ze && y(/\/>/i, d)) {
452
497
  Q(a, e);
453
498
  continue;
454
499
  }
455
- L && u([
456
- k,
457
- A,
458
- j
500
+ z && u([
501
+ Le,
502
+ Re,
503
+ N
459
504
  ], (e) => {
460
- d = p(d, e, " ");
505
+ d = h(d, e, " ");
461
506
  });
462
507
  let f = Y(e.nodeName);
463
- if (!Dt(f, c, d)) {
508
+ if (!jt(f, c, d)) {
464
509
  Q(a, e);
465
510
  continue;
466
511
  }
467
- if (E && typeof C == "object" && typeof C.getAttributeType == "function" && !o) switch (C.getAttributeType(f, c)) {
512
+ if (O && typeof S == "object" && typeof S.getAttributeType == "function" && !o) switch (S.getAttributeType(f, c)) {
468
513
  case "TrustedHTML":
469
- d = E.createHTML(d);
514
+ d = O.createHTML(d);
470
515
  break;
471
516
  case "TrustedScriptURL":
472
- d = E.createScriptURL(d);
517
+ d = O.createScriptURL(d);
473
518
  break;
474
519
  }
475
520
  if (d !== l) try {
476
- o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), wt(e) ? Z(e) : ee(n.removed);
521
+ o ? e.setAttributeNS(o, a, d) : e.setAttribute(a, d), Ot(e) ? Z(e) : ee(n.removed);
477
522
  } catch {
478
523
  Q(a, e);
479
524
  }
480
525
  }
481
- $(O.afterSanitizeAttributes, e, null);
482
- }, At = function(e) {
483
- let t = null, n = Ct(e);
484
- for ($(O.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(O.uponSanitizeShadowNode, t, null), Et(t), kt(t), t.content instanceof c && At(t.content);
485
- $(O.afterSanitizeShadowDOM, e, null);
526
+ $(M.afterSanitizeAttributes, e, null);
527
+ }, Ft = function(e) {
528
+ let t = null, n = Dt(e);
529
+ for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(M.uponSanitizeShadowNode, t, null), At(t), Pt(t), t.content instanceof c && Ft(t.content);
530
+ $(M.afterSanitizeShadowDOM, e, null);
486
531
  };
487
532
  return n.sanitize = function(e) {
488
533
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
489
- if (lt = !e, lt && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
490
- if (e = e.toString(), typeof e != "string") throw g("dirty is not a string, aborting");
491
- } else throw g("toString is not a function");
534
+ if (pt = !e, pt && (e = "<!-->"), typeof e != "string" && !kt(e) && (e = le(e), typeof e != "string")) throw b("dirty is not a string, aborting");
492
535
  if (!n.isSupported) return e;
493
- if (Ze || vt(t), n.removed = [], typeof e == "string" && (U = !1), U) {
494
- if (e.nodeName) {
495
- let t = Y(e.nodeName);
496
- if (!M[t] || F[t]) throw g("root node is forbidden and cannot be sanitized in-place");
536
+ if (Qe || St(t), n.removed = [], typeof e == "string" && (U = !1), U) {
537
+ let t = e.nodeName;
538
+ if (typeof t == "string") {
539
+ let e = Y(t);
540
+ if (!P[e] || L[e]) throw b("root node is forbidden and cannot be sanitized in-place");
497
541
  }
498
- } else if (e instanceof _) r = St("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === T.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
542
+ } else if (e instanceof oe) r = Et("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
499
543
  else {
500
- if (!B && !L && !z && e.indexOf("<") === -1) return E && H ? E.createHTML(e) : e;
501
- if (r = St(e), !r) return B ? null : H ? D : "";
544
+ if (!H && !z && !V && e.indexOf("<") === -1) return O && tt ? O.createHTML(e) : e;
545
+ if (r = Et(e), !r) return H ? null : tt ? k : "";
502
546
  }
503
- r && Qe && Z(r.firstChild);
504
- let l = Ct(U ? e : r);
505
- for (; o = l.nextNode();) Et(o), kt(o), o.content instanceof c && At(o.content);
547
+ r && $e && Z(r.firstChild);
548
+ let l = Dt(U ? e : r);
549
+ for (; o = l.nextNode();) At(o), Pt(o), o.content instanceof c && Ft(o.content);
506
550
  if (U) return e;
507
- if (B) {
508
- if (L) {
551
+ if (H) {
552
+ if (z) {
509
553
  r.normalize();
510
554
  let e = r.innerHTML;
511
555
  u([
512
- k,
513
- A,
514
- j
556
+ Le,
557
+ Re,
558
+ N
515
559
  ], (t) => {
516
- e = p(e, t, " ");
560
+ e = h(e, t, " ");
517
561
  }), r.innerHTML = e;
518
562
  }
519
- if (V) for (s = Fe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
563
+ if (et) for (s = Pe.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
520
564
  else s = r;
521
- return (N.shadowroot || N.shadowrootmode) && (s = Le.call(i, s, !0)), s;
565
+ return (F.shadowroot || F.shadowrootmode) && (s = Ie.call(i, s, !0)), s;
522
566
  }
523
- let d = z ? r.outerHTML : r.innerHTML;
524
- return z && M["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && h(we, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), L && u([
525
- k,
526
- A,
527
- j
567
+ let d = V ? r.outerHTML : r.innerHTML;
568
+ return V && P["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && y(De, r.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + d), z && u([
569
+ Le,
570
+ Re,
571
+ N
528
572
  ], (e) => {
529
- d = p(d, e, " ");
530
- }), E && H ? E.createHTML(d) : d;
573
+ d = h(d, e, " ");
574
+ }), O && tt ? O.createHTML(d) : d;
531
575
  }, n.setConfig = function() {
532
- vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Ze = !0;
576
+ St(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Qe = !0;
533
577
  }, n.clearConfig = function() {
534
- X = null, Ze = !1;
578
+ X = null, Qe = !1;
535
579
  }, n.isValidAttribute = function(e, t, n) {
536
- return X || vt({}), Dt(Y(e), Y(t), n);
580
+ return X || St({}), jt(Y(e), Y(t), n);
537
581
  }, n.addHook = function(e, t) {
538
- typeof t == "function" && f(O[e], t);
582
+ typeof t == "function" && f(M[e], t);
539
583
  }, n.removeHook = function(e, t) {
540
584
  if (t !== void 0) {
541
- let n = d(O[e], t);
542
- return n === -1 ? void 0 : te(O[e], n, 1)[0];
585
+ let n = d(M[e], t);
586
+ return n === -1 ? void 0 : te(M[e], n, 1)[0];
543
587
  }
544
- return ee(O[e]);
588
+ return ee(M[e]);
545
589
  }, n.removeHooks = function(e) {
546
- O[e] = [];
590
+ M[e] = [];
547
591
  }, n.removeAllHooks = function() {
548
- O = ke();
592
+ M = je();
549
593
  }, n;
550
594
  }
551
- var je = Ae();
595
+ var Ne = Me();
552
596
  //#endregion
553
- export { je as purify };
597
+ export { Ne as purify };
554
598
 
555
599
  //# sourceMappingURL=purify.es.js.map