@plumile/ui 0.1.156 → 0.1.158
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.
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -1
- package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +1 -0
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +103 -99
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +200 -189
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -49,20 +49,20 @@ d ||= function(e) {
|
|
|
49
49
|
}, te ||= function(e) {
|
|
50
50
|
return new e(...[...arguments].slice(1));
|
|
51
51
|
};
|
|
52
|
-
var h =
|
|
53
|
-
function
|
|
52
|
+
var h = E(Array.prototype.forEach), ne = E(Array.prototype.lastIndexOf), re = E(Array.prototype.pop), g = E(Array.prototype.push), ie = E(Array.prototype.splice), _ = Array.isArray, v = E(String.prototype.toLowerCase), ae = E(String.prototype.toString), oe = E(String.prototype.match), y = E(String.prototype.replace), se = E(String.prototype.indexOf), ce = E(String.prototype.trim), le = E(Number.prototype.toString), b = E(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), S = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), C = E(Object.prototype.hasOwnProperty), w = E(Object.prototype.toString), T = E(RegExp.prototype.test), ue = D(TypeError);
|
|
53
|
+
function E(e) {
|
|
54
54
|
return function(t) {
|
|
55
55
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
56
56
|
var n = [...arguments].slice(1);
|
|
57
57
|
return ee(e, t, n);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function D(e) {
|
|
61
61
|
return function() {
|
|
62
62
|
return te(e, [...arguments]);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function O(e, t) {
|
|
66
66
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
|
|
67
67
|
if (s && s(e, null), !_(t)) return e;
|
|
68
68
|
let r = t.length;
|
|
@@ -76,46 +76,46 @@ function D(e, t) {
|
|
|
76
76
|
}
|
|
77
77
|
return e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
for (let t = 0; t < e.length; t++)
|
|
79
|
+
function k(e) {
|
|
80
|
+
for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
|
|
81
81
|
return e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function A(e) {
|
|
84
84
|
let t = p(null);
|
|
85
85
|
for (let r of o(e)) {
|
|
86
86
|
var n = i(r, 2);
|
|
87
87
|
let a = n[0], o = n[1];
|
|
88
|
-
|
|
88
|
+
C(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
|
|
89
89
|
}
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function de(e) {
|
|
93
93
|
switch (typeof e) {
|
|
94
94
|
case "string": return e;
|
|
95
95
|
case "number": return le(e);
|
|
96
96
|
case "boolean": return b(e);
|
|
97
97
|
case "bigint": return x ? x(e) : "0";
|
|
98
|
-
case "symbol": return
|
|
99
|
-
case "undefined": return
|
|
98
|
+
case "symbol": return S ? S(e) : "Symbol()";
|
|
99
|
+
case "undefined": return w(e);
|
|
100
100
|
case "function":
|
|
101
101
|
case "object": {
|
|
102
|
-
if (e === null) return
|
|
103
|
-
let t = e, n =
|
|
102
|
+
if (e === null) return w(e);
|
|
103
|
+
let t = e, n = j(t, "toString");
|
|
104
104
|
if (typeof n == "function") {
|
|
105
105
|
let e = n(t);
|
|
106
|
-
return typeof e == "string" ? e :
|
|
106
|
+
return typeof e == "string" ? e : w(e);
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return w(e);
|
|
109
109
|
}
|
|
110
|
-
default: return
|
|
110
|
+
default: return w(e);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function j(e, t) {
|
|
114
114
|
for (; e !== null;) {
|
|
115
115
|
let n = u(e, t);
|
|
116
116
|
if (n) {
|
|
117
|
-
if (n.get) return
|
|
118
|
-
if (typeof n.value == "function") return
|
|
117
|
+
if (n.get) return E(n.get);
|
|
118
|
+
if (typeof n.value == "function") return E(n.value);
|
|
119
119
|
}
|
|
120
120
|
e = l(e);
|
|
121
121
|
}
|
|
@@ -124,14 +124,14 @@ function A(e, t) {
|
|
|
124
124
|
}
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function fe(e) {
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
129
|
+
return T(e, ""), !0;
|
|
130
130
|
} catch {
|
|
131
131
|
return !1;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var pe = d(/* @__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(".")), me = d(/* @__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(".")), he = d([
|
|
135
135
|
"feBlend",
|
|
136
136
|
"feColorMatrix",
|
|
137
137
|
"feComponentTransfer",
|
|
@@ -157,7 +157,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
157
157
|
"feSpotLight",
|
|
158
158
|
"feTile",
|
|
159
159
|
"feTurbulence"
|
|
160
|
-
]),
|
|
160
|
+
]), ge = d([
|
|
161
161
|
"animate",
|
|
162
162
|
"color-profile",
|
|
163
163
|
"cursor",
|
|
@@ -180,7 +180,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
180
180
|
"solidcolor",
|
|
181
181
|
"unknown",
|
|
182
182
|
"use"
|
|
183
|
-
]),
|
|
183
|
+
]), _e = d(/* @__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(".")), ve = d([
|
|
184
184
|
"maction",
|
|
185
185
|
"maligngroup",
|
|
186
186
|
"malignmark",
|
|
@@ -196,13 +196,13 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
196
196
|
"annotation-xml",
|
|
197
197
|
"mprescripts",
|
|
198
198
|
"none"
|
|
199
|
-
]),
|
|
199
|
+
]), ye = d(["#text"]), be = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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(".")), xe = d(/* @__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(".")), Se = d(/* @__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(".")), Ce = d([
|
|
200
200
|
"xlink:href",
|
|
201
201
|
"xml:id",
|
|
202
202
|
"xlink:title",
|
|
203
203
|
"xml:space",
|
|
204
204
|
"xmlns:xlink"
|
|
205
|
-
]),
|
|
205
|
+
]), we = f(/{{[\w\W]*|^[\w\W]*}}/g), Te = f(/<%[\w\W]*|^[\w\W]*%>/g), Ee = f(/\${[\w\W]*/g), De = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oe = f(/^aria-[\-\w]+$/), ke = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = f(/^(?:\w+script|data):/i), je = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = f(/^html$/i), Ne = f(/^[a-z][.\w]*(-[.\w]+)+$/i), M = {
|
|
206
206
|
element: 1,
|
|
207
207
|
attribute: 2,
|
|
208
208
|
text: 3,
|
|
@@ -215,9 +215,9 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
215
215
|
documentType: 10,
|
|
216
216
|
documentFragment: 11,
|
|
217
217
|
notation: 12
|
|
218
|
-
},
|
|
218
|
+
}, Pe = function() {
|
|
219
219
|
return typeof window > "u" ? null : window;
|
|
220
|
-
},
|
|
220
|
+
}, Fe = function(e, t) {
|
|
221
221
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
222
222
|
let n = null, r = "data-tt-policy-suffix";
|
|
223
223
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -234,7 +234,7 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
234
234
|
} catch {
|
|
235
235
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
236
236
|
}
|
|
237
|
-
},
|
|
237
|
+
}, Ie = function() {
|
|
238
238
|
return {
|
|
239
239
|
afterSanitizeAttributes: [],
|
|
240
240
|
afterSanitizeElements: [],
|
|
@@ -247,32 +247,32 @@ var me = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
247
247
|
uponSanitizeShadowNode: []
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
function
|
|
251
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
252
|
-
if (t.version = "3.4.
|
|
250
|
+
function Le() {
|
|
251
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pe(), t = (e) => Le(e);
|
|
252
|
+
if (t.version = "3.4.7", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
|
|
253
253
|
let n = e.document, r = n, i = r.currentScript;
|
|
254
254
|
e.DocumentFragment;
|
|
255
255
|
let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
|
|
256
256
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
257
|
-
let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee =
|
|
257
|
+
let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = j(m, "cloneNode"), te = j(m, "remove"), le = j(m, "nextSibling"), b = j(m, "childNodes"), x = j(m, "parentNode"), S = j(m, "shadowRoot"), w = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
|
|
258
258
|
if (typeof a == "function") {
|
|
259
259
|
let e = n.createElement("template");
|
|
260
260
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
261
261
|
}
|
|
262
|
-
let
|
|
263
|
-
t.isSupported = typeof o == "function" && typeof x == "function" &&
|
|
264
|
-
let Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye =
|
|
262
|
+
let k, N = "", Re = n, ze = Re.implementation, Be = Re.createNodeIterator, Ve = Re.createDocumentFragment, He = Re.getElementsByTagName, Ue = r.importNode, P = Ie();
|
|
263
|
+
t.isSupported = typeof o == "function" && typeof x == "function" && ze && ze.createHTMLDocument !== void 0;
|
|
264
|
+
let We = we, Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = Ae, Xe = je, Ze = Ne, Qe = ke, F = null, $e = O({}, [
|
|
265
|
+
...pe,
|
|
265
266
|
...me,
|
|
266
267
|
...he,
|
|
267
|
-
...
|
|
268
|
-
...
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
..._e,
|
|
269
|
+
...ye
|
|
270
|
+
]), I = null, et = O({}, [
|
|
271
|
+
...be,
|
|
271
272
|
...xe,
|
|
272
273
|
...Se,
|
|
273
|
-
...Ce
|
|
274
|
-
|
|
275
|
-
]), I = Object.seal(p(null, {
|
|
274
|
+
...Ce
|
|
275
|
+
]), L = Object.seal(p(null, {
|
|
276
276
|
tagNameCheck: {
|
|
277
277
|
writable: !0,
|
|
278
278
|
configurable: !1,
|
|
@@ -291,7 +291,7 @@ function Re() {
|
|
|
291
291
|
enumerable: !0,
|
|
292
292
|
value: !1
|
|
293
293
|
}
|
|
294
|
-
})),
|
|
294
|
+
})), R = null, tt = null, z = Object.seal(p(null, {
|
|
295
295
|
tagCheck: {
|
|
296
296
|
writable: !0,
|
|
297
297
|
configurable: !1,
|
|
@@ -304,7 +304,7 @@ function Re() {
|
|
|
304
304
|
enumerable: !0,
|
|
305
305
|
value: null
|
|
306
306
|
}
|
|
307
|
-
})),
|
|
307
|
+
})), nt = !0, rt = !0, it = !1, at = !0, B = !1, V = !0, H = !1, ot = !1, st = !1, U = !1, ct = !1, lt = !1, ut = !0, dt = !1, ft = "user-content-", pt = !0, mt = !1, W = {}, G = null, ht = O({}, [
|
|
308
308
|
"annotation-xml",
|
|
309
309
|
"audio",
|
|
310
310
|
"colgroup",
|
|
@@ -330,14 +330,14 @@ function Re() {
|
|
|
330
330
|
"title",
|
|
331
331
|
"video",
|
|
332
332
|
"xmp"
|
|
333
|
-
]), gt = null, _t =
|
|
333
|
+
]), gt = null, _t = O({}, [
|
|
334
334
|
"audio",
|
|
335
335
|
"video",
|
|
336
336
|
"img",
|
|
337
337
|
"source",
|
|
338
338
|
"image",
|
|
339
339
|
"track"
|
|
340
|
-
]), vt = null, yt =
|
|
340
|
+
]), vt = null, yt = O({}, [
|
|
341
341
|
"alt",
|
|
342
342
|
"class",
|
|
343
343
|
"for",
|
|
@@ -352,65 +352,65 @@ function Re() {
|
|
|
352
352
|
"value",
|
|
353
353
|
"style",
|
|
354
354
|
"xmlns"
|
|
355
|
-
]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt =
|
|
355
|
+
]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = O({}, [
|
|
356
356
|
bt,
|
|
357
357
|
xt,
|
|
358
358
|
K
|
|
359
|
-
], ae), Tt =
|
|
359
|
+
], ae), Tt = O({}, [
|
|
360
360
|
"mi",
|
|
361
361
|
"mo",
|
|
362
362
|
"mn",
|
|
363
363
|
"ms",
|
|
364
364
|
"mtext"
|
|
365
|
-
]), Et =
|
|
365
|
+
]), Et = O({}, ["annotation-xml"]), Dt = O({}, [
|
|
366
366
|
"title",
|
|
367
367
|
"style",
|
|
368
368
|
"font",
|
|
369
369
|
"a",
|
|
370
370
|
"script"
|
|
371
|
-
]),
|
|
371
|
+
]), Ot = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
|
|
372
372
|
return e instanceof RegExp || e instanceof Function;
|
|
373
|
-
},
|
|
373
|
+
}, Mt = function() {
|
|
374
374
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
375
|
-
if (
|
|
376
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
375
|
+
if (Y && Y === e) return;
|
|
376
|
+
(!e || typeof e != "object") && (e = {}), e = A(e), Ot = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ot === "application/xhtml+xml" ? ae : v, F = C(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : $e, I = C(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : et, Ct = C(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(yt), e.ADD_URI_SAFE_ATTR, J) : yt, gt = C(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(_t), e.ADD_DATA_URI_TAGS, J) : _t, G = C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : ht, R = C(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), tt = C(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, nt = e.ALLOW_ARIA_ATTR !== !1, rt = e.ALLOW_DATA_ATTR !== !1, it = e.ALLOW_UNKNOWN_PROTOCOLS || !1, at = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, ct = e.RETURN_DOM_FRAGMENT || !1, lt = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, ut = e.SANITIZE_DOM !== !1, dt = e.SANITIZE_NAMED_PROPS || !1, pt = e.KEEP_CONTENT !== !1, mt = e.IN_PLACE || !1, Qe = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = C(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
|
|
377
377
|
"mi",
|
|
378
378
|
"mo",
|
|
379
379
|
"mn",
|
|
380
380
|
"ms",
|
|
381
381
|
"mtext"
|
|
382
|
-
]), Et =
|
|
383
|
-
let t =
|
|
384
|
-
if (
|
|
382
|
+
]), Et = C(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
|
|
383
|
+
let t = C(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
384
|
+
if (L = p(null), C(t, "tagNameCheck") && jt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), B && (rt = !1), ct && (U = !0), W && (F = O({}, ye), I = p(null), W.html === !0 && (O(F, pe), O(I, be)), W.svg === !0 && (O(F, me), O(I, xe), O(I, Ce)), W.svgFilters === !0 && (O(F, he), O(I, xe), O(I, Ce)), W.mathMl === !0 && (O(F, _e), O(I, Se), O(I, Ce))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (F === $e && (F = A(F)), O(F, e.ADD_TAGS, J))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (I === et && (I = A(I)), O(I, e.ADD_ATTR, J))), C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(vt, e.ADD_URI_SAFE_ATTR, J), C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), C(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), pt && (F["#text"] = !0), H && O(F, [
|
|
385
385
|
"html",
|
|
386
386
|
"head",
|
|
387
387
|
"body"
|
|
388
|
-
]),
|
|
389
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
390
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
391
|
-
|
|
392
|
-
} else
|
|
393
|
-
d && d(e),
|
|
394
|
-
},
|
|
388
|
+
]), F.table && (O(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
389
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
390
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
391
|
+
k = e.TRUSTED_TYPES_POLICY, N = k.createHTML("");
|
|
392
|
+
} else k === void 0 && (k = Fe(f, i)), k !== null && typeof N == "string" && (N = k.createHTML(""));
|
|
393
|
+
(P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && F === $e && (F = A(F)), P.uponSanitizeAttribute.length > 0 && I === et && (I = A(I)), d && d(e), Y = e;
|
|
394
|
+
}, Nt = O({}, [
|
|
395
|
+
...me,
|
|
395
396
|
...he,
|
|
396
|
-
...ge
|
|
397
|
-
|
|
398
|
-
]), Nt = D({}, [...ve, ...ye]), Pt = function(e) {
|
|
397
|
+
...ge
|
|
398
|
+
]), Pt = O({}, [..._e, ...ve]), Ft = function(e) {
|
|
399
399
|
let t = x(e);
|
|
400
400
|
(!t || !t.tagName) && (t = {
|
|
401
401
|
namespaceURI: q,
|
|
402
402
|
tagName: "template"
|
|
403
403
|
});
|
|
404
404
|
let n = v(e.tagName), r = v(t.tagName);
|
|
405
|
-
return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!
|
|
406
|
-
},
|
|
405
|
+
return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Nt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Pt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Pt[n] && (Dt[n] || !Nt[n]) : !!(Ot === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
|
|
406
|
+
}, X = function(e) {
|
|
407
407
|
g(t.removed, { element: e });
|
|
408
408
|
try {
|
|
409
409
|
x(e).removeChild(e);
|
|
410
410
|
} catch {
|
|
411
411
|
te(e);
|
|
412
412
|
}
|
|
413
|
-
},
|
|
413
|
+
}, Z = function(e, n) {
|
|
414
414
|
try {
|
|
415
415
|
g(t.removed, {
|
|
416
416
|
attribute: n.getAttributeNode(e),
|
|
@@ -422,82 +422,82 @@ function Re() {
|
|
|
422
422
|
from: n
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
426
|
-
|
|
425
|
+
if (n.removeAttribute(e), e === "is") if (U || ct) try {
|
|
426
|
+
X(n);
|
|
427
427
|
} catch {}
|
|
428
428
|
else try {
|
|
429
429
|
n.setAttribute(e, "");
|
|
430
430
|
} catch {}
|
|
431
|
-
},
|
|
431
|
+
}, It = function(e) {
|
|
432
432
|
let t = null, r = null;
|
|
433
|
-
if (
|
|
433
|
+
if (st) e = "<remove></remove>" + e;
|
|
434
434
|
else {
|
|
435
435
|
let t = oe(e, /^[\r\n\t ]+/);
|
|
436
436
|
r = t && t[0];
|
|
437
437
|
}
|
|
438
|
-
|
|
439
|
-
let i =
|
|
438
|
+
Ot === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
439
|
+
let i = k ? k.createHTML(e) : e;
|
|
440
440
|
if (q === K) try {
|
|
441
|
-
t = new u().parseFromString(i,
|
|
441
|
+
t = new u().parseFromString(i, Ot);
|
|
442
442
|
} catch {}
|
|
443
443
|
if (!t || !t.documentElement) {
|
|
444
|
-
t =
|
|
444
|
+
t = ze.createDocument(q, "template", null);
|
|
445
445
|
try {
|
|
446
|
-
t.documentElement.innerHTML = St ?
|
|
446
|
+
t.documentElement.innerHTML = St ? N : i;
|
|
447
447
|
} catch {}
|
|
448
448
|
}
|
|
449
449
|
let a = t.body || t.documentElement;
|
|
450
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ?
|
|
451
|
-
}, It = function(e) {
|
|
452
|
-
return Ve.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
450
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? He.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
|
|
453
451
|
}, Lt = function(e) {
|
|
452
|
+
return Be.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
453
|
+
}, Rt = function(e) {
|
|
454
454
|
e.normalize();
|
|
455
|
-
let t =
|
|
455
|
+
let t = Be.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
456
456
|
for (; n;) {
|
|
457
457
|
let e = n.data;
|
|
458
458
|
h([
|
|
459
|
+
We,
|
|
459
460
|
Ge,
|
|
460
|
-
Ke
|
|
461
|
-
qe
|
|
461
|
+
Ke
|
|
462
462
|
], (t) => {
|
|
463
463
|
e = y(e, t, " ");
|
|
464
464
|
}), n.data = e, n = t.nextNode();
|
|
465
465
|
}
|
|
466
|
-
}, Rt = function(e) {
|
|
467
|
-
let t = E ? E(e) : null;
|
|
468
|
-
return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== C(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.childNodes !== b(e);
|
|
469
466
|
}, zt = function(e) {
|
|
470
|
-
|
|
467
|
+
let t = D ? D(e) : null;
|
|
468
|
+
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== b(e);
|
|
469
|
+
}, Bt = function(e) {
|
|
470
|
+
if (!E || typeof e != "object" || !e) return !1;
|
|
471
471
|
try {
|
|
472
|
-
return
|
|
472
|
+
return E(e) === M.documentFragment;
|
|
473
473
|
} catch {
|
|
474
474
|
return !1;
|
|
475
475
|
}
|
|
476
|
-
},
|
|
477
|
-
if (!
|
|
476
|
+
}, Vt = function(e) {
|
|
477
|
+
if (!E || typeof e != "object" || !e) return !1;
|
|
478
478
|
try {
|
|
479
|
-
return typeof
|
|
479
|
+
return typeof E(e) == "number";
|
|
480
480
|
} catch {
|
|
481
481
|
return !1;
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
-
function
|
|
484
|
+
function Q(e, n, r) {
|
|
485
485
|
h(e, (e) => {
|
|
486
|
-
e.call(t, n, r,
|
|
486
|
+
e.call(t, n, r, Y);
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
-
let
|
|
489
|
+
let Ht = function(e) {
|
|
490
490
|
let n = null;
|
|
491
|
-
if (
|
|
492
|
-
let r =
|
|
493
|
-
if (
|
|
491
|
+
if (Q(P.beforeSanitizeElements, e, null), zt(e)) return X(e), !0;
|
|
492
|
+
let r = J(e.nodeName);
|
|
493
|
+
if (Q(P.uponSanitizeElement, e, {
|
|
494
494
|
tagName: r,
|
|
495
|
-
allowedTags:
|
|
496
|
-
}),
|
|
497
|
-
if (
|
|
498
|
-
if (!
|
|
499
|
-
if (
|
|
500
|
-
let t = x(e)
|
|
495
|
+
allowedTags: F
|
|
496
|
+
}), V && e.hasChildNodes() && !Vt(e.firstElementChild) && T(/<[/\w!]/g, e.innerHTML) && T(/<[/\w!]/g, e.textContent) || V && e.namespaceURI === K && r === "style" && Vt(e.firstElementChild) || e.nodeType === M.progressingInstruction || V && e.nodeType === M.comment && T(/<[/\w]/g, e.data)) return X(e), !0;
|
|
497
|
+
if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !F[r]) {
|
|
498
|
+
if (!R[r] && Gt(r) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r))) return !1;
|
|
499
|
+
if (pt && !G[r]) {
|
|
500
|
+
let t = x(e), n = b(e);
|
|
501
501
|
if (n && t) {
|
|
502
502
|
let r = n.length;
|
|
503
503
|
for (let i = r - 1; i >= 0; --i) {
|
|
@@ -506,25 +506,25 @@ function Re() {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
return
|
|
509
|
+
return X(e), !0;
|
|
510
510
|
}
|
|
511
|
-
return (
|
|
511
|
+
return (E ? E(e) : e.nodeType) === M.element && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (B && e.nodeType === M.text && (n = e.textContent, h([
|
|
512
|
+
We,
|
|
512
513
|
Ge,
|
|
513
|
-
Ke
|
|
514
|
-
qe
|
|
514
|
+
Ke
|
|
515
515
|
], (e) => {
|
|
516
516
|
n = y(n, e, " ");
|
|
517
|
-
}), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)),
|
|
518
|
-
},
|
|
519
|
-
if (
|
|
520
|
-
let i =
|
|
521
|
-
if (!(
|
|
522
|
-
if (!i ||
|
|
523
|
-
if (!(
|
|
524
|
-
} else if (!vt[t] && !
|
|
517
|
+
}), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(P.afterSanitizeElements, e, null), !1);
|
|
518
|
+
}, Ut = function(e, t, r) {
|
|
519
|
+
if (tt[t] || ut && (t === "id" || t === "name") && (r in n || r in At)) return !1;
|
|
520
|
+
let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
|
|
521
|
+
if (!(rt && !tt[t] && T(qe, t)) && !(nt && T(Je, t))) {
|
|
522
|
+
if (!i || tt[t]) {
|
|
523
|
+
if (!(Gt(e) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && T(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
|
|
524
|
+
} else if (!vt[t] && !T(Qe, y(r, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(it && !T(Ye, y(r, Xe, ""))) && r) return !1;
|
|
525
525
|
}
|
|
526
526
|
return !0;
|
|
527
|
-
},
|
|
527
|
+
}, Wt = O({}, [
|
|
528
528
|
"annotation-xml",
|
|
529
529
|
"color-profile",
|
|
530
530
|
"font-face",
|
|
@@ -533,138 +533,149 @@ function Re() {
|
|
|
533
533
|
"font-face-src",
|
|
534
534
|
"font-face-uri",
|
|
535
535
|
"missing-glyph"
|
|
536
|
-
]),
|
|
537
|
-
return !
|
|
538
|
-
},
|
|
539
|
-
|
|
536
|
+
]), Gt = function(e) {
|
|
537
|
+
return !Wt[v(e)] && T(Ze, e);
|
|
538
|
+
}, Kt = function(e) {
|
|
539
|
+
Q(P.beforeSanitizeAttributes, e, null);
|
|
540
540
|
let n = e.attributes;
|
|
541
|
-
if (!n ||
|
|
541
|
+
if (!n || zt(e)) return;
|
|
542
542
|
let r = {
|
|
543
543
|
attrName: "",
|
|
544
544
|
attrValue: "",
|
|
545
545
|
keepAttr: !0,
|
|
546
|
-
allowedAttributes:
|
|
546
|
+
allowedAttributes: I,
|
|
547
547
|
forceKeepAttr: void 0
|
|
548
548
|
}, i = n.length;
|
|
549
549
|
for (; i--;) {
|
|
550
|
-
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l =
|
|
551
|
-
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0,
|
|
552
|
-
|
|
550
|
+
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ce(u);
|
|
551
|
+
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(P.uponSanitizeAttribute, e, r), d = r.attrValue, dt && (l === "id" || l === "name") && se(d, ft) !== 0 && (Z(o, e), d = ft + d), V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
552
|
+
Z(o, e);
|
|
553
553
|
continue;
|
|
554
554
|
}
|
|
555
555
|
if (l === "attributename" && oe(d, "href")) {
|
|
556
|
-
|
|
556
|
+
Z(o, e);
|
|
557
557
|
continue;
|
|
558
558
|
}
|
|
559
559
|
if (r.forceKeepAttr) continue;
|
|
560
560
|
if (!r.keepAttr) {
|
|
561
|
-
|
|
561
|
+
Z(o, e);
|
|
562
562
|
continue;
|
|
563
563
|
}
|
|
564
|
-
if (!
|
|
565
|
-
|
|
564
|
+
if (!at && T(/\/>/i, d)) {
|
|
565
|
+
Z(o, e);
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
B && h([
|
|
569
|
+
We,
|
|
569
570
|
Ge,
|
|
570
|
-
Ke
|
|
571
|
-
qe
|
|
571
|
+
Ke
|
|
572
572
|
], (e) => {
|
|
573
573
|
d = y(d, e, " ");
|
|
574
574
|
});
|
|
575
|
-
let p =
|
|
576
|
-
if (!
|
|
577
|
-
|
|
575
|
+
let p = J(e.nodeName);
|
|
576
|
+
if (!Ut(p, l, d)) {
|
|
577
|
+
Z(o, e);
|
|
578
578
|
continue;
|
|
579
579
|
}
|
|
580
|
-
if (
|
|
580
|
+
if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
|
|
581
581
|
case "TrustedHTML":
|
|
582
|
-
d =
|
|
582
|
+
d = k.createHTML(d);
|
|
583
583
|
break;
|
|
584
584
|
case "TrustedScriptURL":
|
|
585
|
-
d =
|
|
585
|
+
d = k.createScriptURL(d);
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
if (d !== u) try {
|
|
589
|
-
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d),
|
|
589
|
+
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), zt(e) ? X(e) : re(t.removed);
|
|
590
590
|
} catch {
|
|
591
|
-
|
|
591
|
+
Z(o, e);
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
|
|
595
|
-
}, Kt = function(e) {
|
|
596
|
-
let t = null, n = It(e);
|
|
597
|
-
for ($(N.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) $(N.uponSanitizeShadowNode, t, null), Vt(t), Gt(t), zt(t.content) && Kt(t.content);
|
|
598
|
-
$(N.afterSanitizeShadowDOM, e, null);
|
|
594
|
+
Q(P.afterSanitizeAttributes, e, null);
|
|
599
595
|
}, qt = function(e) {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
596
|
+
let t = null, n = Lt(e);
|
|
597
|
+
for (Q(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(P.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), Bt(t.content) && qt(t.content), (E ? E(t) : t.nodeType) === M.element) {
|
|
598
|
+
let e = S ? S(t) : t.shadowRoot;
|
|
599
|
+
Bt(e) && ($(e), qt(e));
|
|
600
|
+
}
|
|
601
|
+
Q(P.afterSanitizeShadowDOM, e, null);
|
|
602
|
+
}, $ = function(e) {
|
|
603
|
+
let t = E ? E(e) : e.nodeType;
|
|
604
|
+
if (t === M.element) {
|
|
605
|
+
let t = S ? S(e) : e.shadowRoot;
|
|
606
|
+
Bt(t) && ($(t), qt(t));
|
|
603
607
|
}
|
|
604
|
-
let
|
|
605
|
-
if (!
|
|
606
|
-
let
|
|
607
|
-
h(
|
|
608
|
-
g(
|
|
608
|
+
let n = b ? b(e) : e.childNodes;
|
|
609
|
+
if (!n) return;
|
|
610
|
+
let r = [];
|
|
611
|
+
h(n, (e) => {
|
|
612
|
+
g(r, e);
|
|
609
613
|
});
|
|
610
|
-
for (let e of
|
|
614
|
+
for (let e of r) $(e);
|
|
615
|
+
if (t === M.element) {
|
|
616
|
+
let t = D ? D(e) : null;
|
|
617
|
+
if (typeof t == "string" && J(t) === "template") {
|
|
618
|
+
let t = e.content;
|
|
619
|
+
Bt(t) && $(t);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
611
622
|
};
|
|
612
623
|
return t.sanitize = function(e) {
|
|
613
624
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
614
|
-
if (St = !e, St && (e = "<!-->"), typeof e != "string" && !
|
|
625
|
+
if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = de(e), typeof e != "string")) throw ue("dirty is not a string, aborting");
|
|
615
626
|
if (!t.isSupported) return e;
|
|
616
|
-
if (
|
|
617
|
-
let t =
|
|
627
|
+
if (ot || Mt(n), t.removed = [], typeof e == "string" && (mt = !1), mt) {
|
|
628
|
+
let t = D ? D(e) : e.nodeName;
|
|
618
629
|
if (typeof t == "string") {
|
|
619
|
-
let e =
|
|
620
|
-
if (!
|
|
630
|
+
let e = J(t);
|
|
631
|
+
if (!F[e] || R[e]) throw ue("root node is forbidden and cannot be sanitized in-place");
|
|
621
632
|
}
|
|
622
|
-
if (
|
|
623
|
-
|
|
624
|
-
} else if (
|
|
633
|
+
if (zt(e)) throw ue("root node is clobbered and cannot be sanitized in-place");
|
|
634
|
+
$(e);
|
|
635
|
+
} else if (Vt(e)) i = It("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $(a);
|
|
625
636
|
else {
|
|
626
|
-
if (!
|
|
627
|
-
if (i =
|
|
637
|
+
if (!U && !B && !H && e.indexOf("<") === -1) return k && lt ? k.createHTML(e) : e;
|
|
638
|
+
if (i = It(e), !i) return U ? null : lt ? N : "";
|
|
628
639
|
}
|
|
629
|
-
i &&
|
|
630
|
-
let c =
|
|
631
|
-
for (; o = c.nextNode();)
|
|
632
|
-
if (
|
|
633
|
-
if (
|
|
634
|
-
if (
|
|
640
|
+
i && st && X(i.firstChild);
|
|
641
|
+
let c = Lt(mt ? e : i);
|
|
642
|
+
for (; o = c.nextNode();) Ht(o), Kt(o), Bt(o.content) && qt(o.content);
|
|
643
|
+
if (mt) return B && Rt(e), e;
|
|
644
|
+
if (U) {
|
|
645
|
+
if (B && Rt(i), ct) for (s = Ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
635
646
|
else s = i;
|
|
636
|
-
return (
|
|
647
|
+
return (I.shadowroot || I.shadowrootmode) && (s = Ue.call(r, s, !0)), s;
|
|
637
648
|
}
|
|
638
|
-
let l =
|
|
639
|
-
return
|
|
649
|
+
let l = H ? i.outerHTML : i.innerHTML;
|
|
650
|
+
return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(Me, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), B && h([
|
|
651
|
+
We,
|
|
640
652
|
Ge,
|
|
641
|
-
Ke
|
|
642
|
-
qe
|
|
653
|
+
Ke
|
|
643
654
|
], (e) => {
|
|
644
655
|
l = y(l, e, " ");
|
|
645
|
-
}),
|
|
656
|
+
}), k && lt ? k.createHTML(l) : l;
|
|
646
657
|
}, t.setConfig = function() {
|
|
647
|
-
|
|
658
|
+
Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
|
|
648
659
|
}, t.clearConfig = function() {
|
|
649
|
-
|
|
660
|
+
Y = null, ot = !1;
|
|
650
661
|
}, t.isValidAttribute = function(e, t, n) {
|
|
651
|
-
return
|
|
662
|
+
return Y || Mt({}), Ut(J(e), J(t), n);
|
|
652
663
|
}, t.addHook = function(e, t) {
|
|
653
|
-
typeof t == "function" && g(
|
|
664
|
+
typeof t == "function" && g(P[e], t);
|
|
654
665
|
}, t.removeHook = function(e, t) {
|
|
655
666
|
if (t !== void 0) {
|
|
656
|
-
let n = ne(
|
|
657
|
-
return n === -1 ? void 0 : ie(
|
|
667
|
+
let n = ne(P[e], t);
|
|
668
|
+
return n === -1 ? void 0 : ie(P[e], n, 1)[0];
|
|
658
669
|
}
|
|
659
|
-
return re(
|
|
670
|
+
return re(P[e]);
|
|
660
671
|
}, t.removeHooks = function(e) {
|
|
661
|
-
|
|
672
|
+
P[e] = [];
|
|
662
673
|
}, t.removeAllHooks = function() {
|
|
663
|
-
|
|
674
|
+
P = Ie();
|
|
664
675
|
}, t;
|
|
665
676
|
}
|
|
666
|
-
var
|
|
677
|
+
var N = Le();
|
|
667
678
|
//#endregion
|
|
668
|
-
export {
|
|
679
|
+
export { N as purify };
|
|
669
680
|
|
|
670
681
|
//# sourceMappingURL=purify.es.js.map
|