@plumile/ui 0.1.145 → 0.1.146
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 -2
- package/lib/esm/admin/theme/adminSurface.css.js +2 -0
- package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js +8 -0
- package/lib/esm/atomic/molecules/form_grid/FormGrid.css.js.map +1 -0
- package/lib/esm/atomic/molecules/form_grid/FormGrid.js +16 -0
- package/lib/esm/atomic/molecules/form_grid/FormGrid.js.map +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +0 -1
- package/lib/esm/components/feedback/OperationFeedback.js +21 -14
- package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
- package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.css.js +17 -0
- package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.css.js.map +1 -0
- package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.js +24 -0
- package/lib/esm/components/layout/top_navigation_shell/TopNavigationShell.js.map +1 -0
- package/lib/esm/index.js +228 -226
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +173 -166
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts +3 -0
- package/lib/types/atomic/molecules/form_grid/FormGrid.css.d.ts.map +1 -0
- package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts +9 -0
- package/lib/types/atomic/molecules/form_grid/FormGrid.d.ts.map +1 -0
- package/lib/types/components/feedback/OperationFeedback.d.ts +3 -2
- package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
- package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.css.d.ts +8 -0
- package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.css.d.ts.map +1 -0
- package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.d.ts +18 -0
- package/lib/types/components/layout/top_navigation_shell/TopNavigationShell.d.ts.map +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -76,20 +76,20 @@ function E(e, t) {
|
|
|
76
76
|
}
|
|
77
77
|
return e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function pe(e) {
|
|
80
80
|
for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
|
|
81
81
|
return e;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function D(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
|
-
x(e, a) && (g(o) ? t[a] =
|
|
88
|
+
x(e, a) && (g(o) ? t[a] = pe(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = D(o) : t[a] = o);
|
|
89
89
|
}
|
|
90
90
|
return t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function me(e) {
|
|
93
93
|
switch (typeof e) {
|
|
94
94
|
case "string": return e;
|
|
95
95
|
case "number": return y(e);
|
|
@@ -100,7 +100,7 @@ function pe(e) {
|
|
|
100
100
|
case "function":
|
|
101
101
|
case "object": {
|
|
102
102
|
if (e === null) return S(e);
|
|
103
|
-
let t = e, n =
|
|
103
|
+
let t = e, n = O(t, "toString");
|
|
104
104
|
if (typeof n == "function") {
|
|
105
105
|
let e = n(t);
|
|
106
106
|
return typeof e == "string" ? e : S(e);
|
|
@@ -110,7 +110,7 @@ function pe(e) {
|
|
|
110
110
|
default: return S(e);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function O(e, t) {
|
|
114
114
|
for (; e !== null;) {
|
|
115
115
|
let n = u(e, t);
|
|
116
116
|
if (n) {
|
|
@@ -124,14 +124,14 @@ function k(e, t) {
|
|
|
124
124
|
}
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function he(e) {
|
|
128
128
|
try {
|
|
129
129
|
return C(e, ""), !0;
|
|
130
130
|
} catch {
|
|
131
131
|
return !1;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var ge = 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(".")), _e = 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(".")), ve = d([
|
|
135
135
|
"feBlend",
|
|
136
136
|
"feColorMatrix",
|
|
137
137
|
"feComponentTransfer",
|
|
@@ -157,7 +157,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
157
157
|
"feSpotLight",
|
|
158
158
|
"feTile",
|
|
159
159
|
"feTurbulence"
|
|
160
|
-
]),
|
|
160
|
+
]), ye = d([
|
|
161
161
|
"animate",
|
|
162
162
|
"color-profile",
|
|
163
163
|
"cursor",
|
|
@@ -180,7 +180,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
180
180
|
"solidcolor",
|
|
181
181
|
"unknown",
|
|
182
182
|
"use"
|
|
183
|
-
]),
|
|
183
|
+
]), be = 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(".")), xe = d([
|
|
184
184
|
"maction",
|
|
185
185
|
"maligngroup",
|
|
186
186
|
"malignmark",
|
|
@@ -196,21 +196,21 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
196
196
|
"annotation-xml",
|
|
197
197
|
"mprescripts",
|
|
198
198
|
"none"
|
|
199
|
-
]),
|
|
199
|
+
]), Se = d(["#text"]), Ce = 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(".")), we = 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(".")), Te = 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(".")), Ee = d([
|
|
200
200
|
"xlink:href",
|
|
201
201
|
"xml:id",
|
|
202
202
|
"xlink:title",
|
|
203
203
|
"xml:space",
|
|
204
204
|
"xmlns:xlink"
|
|
205
|
-
]),
|
|
205
|
+
]), De = f(/{{[\w\W]*|^[\w\W]*}}/g), Oe = f(/<%[\w\W]*|^[\w\W]*%>/g), ke = f(/\${[\w\W]*/g), Ae = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), je = f(/^aria-[\-\w]+$/), Me = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ne = f(/^(?:\w+script|data):/i), Pe = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Fe = f(/^html$/i), Ie = f(/^[a-z][.\w]*(-[.\w]+)+$/i), k = {
|
|
206
206
|
element: 1,
|
|
207
207
|
text: 3,
|
|
208
208
|
progressingInstruction: 7,
|
|
209
209
|
comment: 8,
|
|
210
210
|
document: 9
|
|
211
|
-
},
|
|
211
|
+
}, Le = function() {
|
|
212
212
|
return typeof window > "u" ? null : window;
|
|
213
|
-
},
|
|
213
|
+
}, Re = function(e, t) {
|
|
214
214
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
215
215
|
let n = null, r = "data-tt-policy-suffix";
|
|
216
216
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -227,7 +227,7 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
227
227
|
} catch {
|
|
228
228
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
229
229
|
}
|
|
230
|
-
},
|
|
230
|
+
}, ze = function() {
|
|
231
231
|
return {
|
|
232
232
|
afterSanitizeAttributes: [],
|
|
233
233
|
afterSanitizeElements: [],
|
|
@@ -240,27 +240,27 @@ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
240
240
|
uponSanitizeShadowNode: []
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
|
-
function
|
|
244
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
245
|
-
if (t.version = "3.4.
|
|
246
|
-
let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, c = e.Node, l = e.Element, u = e.NodeFilter, f = e.NamedNodeMap, ee = f === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : f, te = e.HTMLFormElement, ne = e.DOMParser, y = e.trustedTypes, b = l.prototype, ue =
|
|
243
|
+
function Be() {
|
|
244
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Le(), t = (e) => Be(e);
|
|
245
|
+
if (t.version = "3.4.5", t.removed = [], !e || !e.document || e.document.nodeType !== k.document || !e.Element) return t.isSupported = !1, t;
|
|
246
|
+
let n = e.document, r = n, i = r.currentScript, a = e.DocumentFragment, s = e.HTMLTemplateElement, c = e.Node, l = e.Element, u = e.NodeFilter, f = e.NamedNodeMap, ee = f === void 0 ? e.NamedNodeMap || e.MozNamedAttrMap : f, te = e.HTMLFormElement, ne = e.DOMParser, y = e.trustedTypes, b = l.prototype, ue = O(b, "cloneNode"), de = O(b, "remove"), S = O(b, "nextSibling"), w = O(b, "childNodes"), T = O(b, "parentNode"), pe = c && c.prototype ? O(c.prototype, "nodeType") : null;
|
|
247
247
|
if (typeof s == "function") {
|
|
248
248
|
let e = n.createElement("template");
|
|
249
249
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
t.isSupported = typeof o == "function" && typeof T == "function" &&
|
|
253
|
-
let
|
|
254
|
-
...he,
|
|
251
|
+
let A, j = "", Ve = n, He = Ve.implementation, Ue = Ve.createNodeIterator, We = Ve.createDocumentFragment, Ge = Ve.getElementsByTagName, Ke = r.importNode, M = ze();
|
|
252
|
+
t.isSupported = typeof o == "function" && typeof T == "function" && He && He.createHTMLDocument !== void 0;
|
|
253
|
+
let qe = De, Je = Oe, Ye = ke, Xe = Ae, Ze = je, Qe = Ne, $e = Pe, et = Ie, tt = Me, N = null, nt = E({}, [
|
|
255
254
|
...ge,
|
|
256
255
|
..._e,
|
|
257
|
-
...
|
|
258
|
-
...
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
...ve,
|
|
257
|
+
...be,
|
|
258
|
+
...Se
|
|
259
|
+
]), P = null, rt = E({}, [
|
|
261
260
|
...Ce,
|
|
262
261
|
...we,
|
|
263
|
-
...Te
|
|
262
|
+
...Te,
|
|
263
|
+
...Ee
|
|
264
264
|
]), F = Object.seal(p(null, {
|
|
265
265
|
tagNameCheck: {
|
|
266
266
|
writable: !0,
|
|
@@ -280,7 +280,7 @@ function ze() {
|
|
|
280
280
|
enumerable: !0,
|
|
281
281
|
value: !1
|
|
282
282
|
}
|
|
283
|
-
})), I = null,
|
|
283
|
+
})), I = null, it = null, L = Object.seal(p(null, {
|
|
284
284
|
tagCheck: {
|
|
285
285
|
writable: !0,
|
|
286
286
|
configurable: !1,
|
|
@@ -293,7 +293,7 @@ function ze() {
|
|
|
293
293
|
enumerable: !0,
|
|
294
294
|
value: null
|
|
295
295
|
}
|
|
296
|
-
})),
|
|
296
|
+
})), at = !0, ot = !0, st = !1, ct = !0, R = !1, z = !0, B = !1, lt = !1, ut = !1, V = !1, dt = !1, ft = !1, pt = !0, mt = !1, ht = "user-content-", gt = !0, H = !1, U = {}, W = null, _t = E({}, [
|
|
297
297
|
"annotation-xml",
|
|
298
298
|
"audio",
|
|
299
299
|
"colgroup",
|
|
@@ -319,14 +319,14 @@ function ze() {
|
|
|
319
319
|
"title",
|
|
320
320
|
"video",
|
|
321
321
|
"xmp"
|
|
322
|
-
]),
|
|
322
|
+
]), vt = null, yt = E({}, [
|
|
323
323
|
"audio",
|
|
324
324
|
"video",
|
|
325
325
|
"img",
|
|
326
326
|
"source",
|
|
327
327
|
"image",
|
|
328
328
|
"track"
|
|
329
|
-
]),
|
|
329
|
+
]), bt = null, xt = E({}, [
|
|
330
330
|
"alt",
|
|
331
331
|
"class",
|
|
332
332
|
"for",
|
|
@@ -341,65 +341,65 @@ function ze() {
|
|
|
341
341
|
"value",
|
|
342
342
|
"style",
|
|
343
343
|
"xmlns"
|
|
344
|
-
]),
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
], oe),
|
|
344
|
+
]), St = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, wt = !1, Tt = null, Et = E({}, [
|
|
345
|
+
St,
|
|
346
|
+
Ct,
|
|
347
|
+
G
|
|
348
|
+
], oe), Dt = E({}, [
|
|
349
349
|
"mi",
|
|
350
350
|
"mo",
|
|
351
351
|
"mn",
|
|
352
352
|
"ms",
|
|
353
353
|
"mtext"
|
|
354
|
-
]),
|
|
354
|
+
]), Ot = E({}, ["annotation-xml"]), kt = E({}, [
|
|
355
355
|
"title",
|
|
356
356
|
"style",
|
|
357
357
|
"font",
|
|
358
358
|
"a",
|
|
359
359
|
"script"
|
|
360
|
-
]),
|
|
360
|
+
]), q = null, At = ["application/xhtml+xml", "text/html"], J = null, Y = null, jt = n.createElement("form"), Mt = function(e) {
|
|
361
361
|
return e instanceof RegExp || e instanceof Function;
|
|
362
|
-
},
|
|
362
|
+
}, Nt = function() {
|
|
363
363
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
364
|
-
if (
|
|
365
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
364
|
+
if (Y && Y === e) return;
|
|
365
|
+
(!e || typeof e != "object") && (e = {}), e = D(e), q = At.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? oe : _, N = x(e, "ALLOWED_TAGS") && g(e.ALLOWED_TAGS) ? E({}, e.ALLOWED_TAGS, J) : nt, P = x(e, "ALLOWED_ATTR") && g(e.ALLOWED_ATTR) ? E({}, e.ALLOWED_ATTR, J) : rt, Tt = x(e, "ALLOWED_NAMESPACES") && g(e.ALLOWED_NAMESPACES) ? E({}, e.ALLOWED_NAMESPACES, oe) : Et, bt = x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) ? E(D(xt), e.ADD_URI_SAFE_ATTR, J) : xt, vt = x(e, "ADD_DATA_URI_TAGS") && g(e.ADD_DATA_URI_TAGS) ? E(D(yt), e.ADD_DATA_URI_TAGS, J) : yt, W = x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) ? E({}, e.FORBID_CONTENTS, J) : _t, I = x(e, "FORBID_TAGS") && g(e.FORBID_TAGS) ? E({}, e.FORBID_TAGS, J) : D({}), it = x(e, "FORBID_ATTR") && g(e.FORBID_ATTR) ? E({}, e.FORBID_ATTR, J) : D({}), U = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? D(e.USE_PROFILES) : e.USE_PROFILES : !1, at = e.ALLOW_ARIA_ATTR !== !1, ot = e.ALLOW_DATA_ATTR !== !1, st = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ct = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = e.SAFE_FOR_TEMPLATES || !1, z = e.SAFE_FOR_XML !== !1, B = e.WHOLE_DOCUMENT || !1, V = e.RETURN_DOM || !1, dt = e.RETURN_DOM_FRAGMENT || !1, ft = e.RETURN_TRUSTED_TYPE || !1, ut = e.FORCE_BODY || !1, pt = e.SANITIZE_DOM !== !1, mt = e.SANITIZE_NAMED_PROPS || !1, gt = e.KEEP_CONTENT !== !1, H = e.IN_PLACE || !1, tt = he(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Me, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Dt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, [
|
|
366
366
|
"mi",
|
|
367
367
|
"mo",
|
|
368
368
|
"mn",
|
|
369
369
|
"ms",
|
|
370
370
|
"mtext"
|
|
371
|
-
]),
|
|
372
|
-
let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ?
|
|
373
|
-
if (F = p(null), x(t, "tagNameCheck") &&
|
|
371
|
+
]), Ot = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? D(e.HTML_INTEGRATION_POINTS) : E({}, ["annotation-xml"]);
|
|
372
|
+
let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? D(e.CUSTOM_ELEMENT_HANDLING) : p(null);
|
|
373
|
+
if (F = p(null), x(t, "tagNameCheck") && Mt(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && Mt(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), R && (ot = !1), dt && (V = !0), U && (N = E({}, Se), P = p(null), U.html === !0 && (E(N, ge), E(P, Ce)), U.svg === !0 && (E(N, _e), E(P, we), E(P, Ee)), U.svgFilters === !0 && (E(N, ve), E(P, we), E(P, Ee)), U.mathMl === !0 && (E(N, be), E(P, Te), E(P, Ee))), L.tagCheck = null, L.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? L.tagCheck = e.ADD_TAGS : g(e.ADD_TAGS) && (N === nt && (N = D(N)), E(N, e.ADD_TAGS, J))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? L.attributeCheck = e.ADD_ATTR : g(e.ADD_ATTR) && (P === rt && (P = D(P)), E(P, e.ADD_ATTR, J))), x(e, "ADD_URI_SAFE_ATTR") && g(e.ADD_URI_SAFE_ATTR) && E(bt, e.ADD_URI_SAFE_ATTR, J), x(e, "FORBID_CONTENTS") && g(e.FORBID_CONTENTS) && (W === _t && (W = D(W)), E(W, e.FORBID_CONTENTS, J)), x(e, "ADD_FORBID_CONTENTS") && g(e.ADD_FORBID_CONTENTS) && (W === _t && (W = D(W)), E(W, e.ADD_FORBID_CONTENTS, J)), gt && (N["#text"] = !0), B && E(N, [
|
|
374
374
|
"html",
|
|
375
375
|
"head",
|
|
376
376
|
"body"
|
|
377
377
|
]), N.table && (E(N, ["tbody"]), delete I.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
378
378
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
379
379
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw fe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
380
|
-
|
|
381
|
-
} else
|
|
382
|
-
d && d(e),
|
|
383
|
-
},
|
|
384
|
-
...ge,
|
|
380
|
+
A = e.TRUSTED_TYPES_POLICY, j = A.createHTML("");
|
|
381
|
+
} else A === void 0 && (A = Re(y, i)), A !== null && typeof j == "string" && (j = A.createHTML(""));
|
|
382
|
+
d && d(e), Y = e;
|
|
383
|
+
}, Pt = E({}, [
|
|
385
384
|
..._e,
|
|
386
|
-
...ve
|
|
387
|
-
|
|
385
|
+
...ve,
|
|
386
|
+
...ye
|
|
387
|
+
]), Ft = E({}, [...be, ...xe]), It = function(e) {
|
|
388
388
|
let t = T(e);
|
|
389
389
|
(!t || !t.tagName) && (t = {
|
|
390
|
-
namespaceURI:
|
|
390
|
+
namespaceURI: K,
|
|
391
391
|
tagName: "template"
|
|
392
392
|
});
|
|
393
393
|
let n = _(e.tagName), r = _(t.tagName);
|
|
394
|
-
return
|
|
395
|
-
},
|
|
394
|
+
return Tt[e.namespaceURI] ? e.namespaceURI === Ct ? t.namespaceURI === G ? n === "svg" : t.namespaceURI === St ? n === "svg" && (r === "annotation-xml" || Dt[r]) : !!Pt[n] : e.namespaceURI === St ? t.namespaceURI === G ? n === "math" : t.namespaceURI === Ct ? n === "math" && Ot[r] : !!Ft[n] : e.namespaceURI === G ? t.namespaceURI === Ct && !Ot[r] || t.namespaceURI === St && !Dt[r] ? !1 : !Ft[n] && (kt[n] || !Pt[n]) : !!(q === "application/xhtml+xml" && Tt[e.namespaceURI]) : !1;
|
|
395
|
+
}, X = function(e) {
|
|
396
396
|
h(t.removed, { element: e });
|
|
397
397
|
try {
|
|
398
398
|
T(e).removeChild(e);
|
|
399
399
|
} catch {
|
|
400
400
|
de(e);
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, Z = function(e, n) {
|
|
403
403
|
try {
|
|
404
404
|
h(t.removed, {
|
|
405
405
|
attribute: n.getAttributeNode(e),
|
|
@@ -411,55 +411,73 @@ function ze() {
|
|
|
411
411
|
from: n
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
415
|
-
|
|
414
|
+
if (n.removeAttribute(e), e === "is") if (V || dt) try {
|
|
415
|
+
X(n);
|
|
416
416
|
} catch {}
|
|
417
417
|
else try {
|
|
418
418
|
n.setAttribute(e, "");
|
|
419
419
|
} catch {}
|
|
420
|
-
},
|
|
420
|
+
}, Lt = function(e) {
|
|
421
421
|
let t = null, r = null;
|
|
422
|
-
if (
|
|
422
|
+
if (ut) e = "<remove></remove>" + e;
|
|
423
423
|
else {
|
|
424
424
|
let t = se(e, /^[\r\n\t ]+/);
|
|
425
425
|
r = t && t[0];
|
|
426
426
|
}
|
|
427
|
-
|
|
428
|
-
let i =
|
|
429
|
-
if (
|
|
430
|
-
t = new ne().parseFromString(i,
|
|
427
|
+
q === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
428
|
+
let i = A ? A.createHTML(e) : e;
|
|
429
|
+
if (K === G) try {
|
|
430
|
+
t = new ne().parseFromString(i, q);
|
|
431
431
|
} catch {}
|
|
432
432
|
if (!t || !t.documentElement) {
|
|
433
|
-
t =
|
|
433
|
+
t = He.createDocument(K, "template", null);
|
|
434
434
|
try {
|
|
435
|
-
t.documentElement.innerHTML =
|
|
435
|
+
t.documentElement.innerHTML = wt ? j : i;
|
|
436
436
|
} catch {}
|
|
437
437
|
}
|
|
438
438
|
let a = t.body || t.documentElement;
|
|
439
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
440
|
-
}, It = function(e) {
|
|
441
|
-
return He.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null);
|
|
442
|
-
}, Lt = function(e) {
|
|
443
|
-
return e instanceof te && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
439
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? Ge.call(t, B ? "html" : "body")[0] : B ? t.documentElement : a;
|
|
444
440
|
}, Rt = function(e) {
|
|
445
|
-
return
|
|
441
|
+
return Ue.call(e.ownerDocument || e, e, u.SHOW_ELEMENT | u.SHOW_COMMENT | u.SHOW_TEXT | u.SHOW_PROCESSING_INSTRUCTION | u.SHOW_CDATA_SECTION, null);
|
|
442
|
+
}, zt = function(e) {
|
|
443
|
+
e.normalize();
|
|
444
|
+
let t = Ue.call(e.ownerDocument || e, e, u.SHOW_TEXT | u.SHOW_COMMENT | u.SHOW_CDATA_SECTION | u.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
445
|
+
for (; n;) {
|
|
446
|
+
let e = n.data;
|
|
447
|
+
m([
|
|
448
|
+
qe,
|
|
449
|
+
Je,
|
|
450
|
+
Ye
|
|
451
|
+
], (t) => {
|
|
452
|
+
e = v(e, t, " ");
|
|
453
|
+
}), n.data = e, n = t.nextNode();
|
|
454
|
+
}
|
|
455
|
+
}, Bt = function(e) {
|
|
456
|
+
return e instanceof te && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ee) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
457
|
+
}, Vt = function(e) {
|
|
458
|
+
if (!pe || typeof e != "object" || !e) return !1;
|
|
459
|
+
try {
|
|
460
|
+
return typeof pe(e) == "number";
|
|
461
|
+
} catch {
|
|
462
|
+
return !1;
|
|
463
|
+
}
|
|
446
464
|
};
|
|
447
|
-
function
|
|
465
|
+
function Q(e, n, r) {
|
|
448
466
|
m(e, (e) => {
|
|
449
|
-
e.call(t, n, r,
|
|
467
|
+
e.call(t, n, r, Y);
|
|
450
468
|
});
|
|
451
469
|
}
|
|
452
|
-
let
|
|
470
|
+
let Ht = function(e) {
|
|
453
471
|
let n = null;
|
|
454
|
-
if (
|
|
455
|
-
let r =
|
|
456
|
-
if (
|
|
472
|
+
if (Q(M.beforeSanitizeElements, e, null), Bt(e)) return X(e), !0;
|
|
473
|
+
let r = J(e.nodeName);
|
|
474
|
+
if (Q(M.uponSanitizeElement, e, {
|
|
457
475
|
tagName: r,
|
|
458
476
|
allowedTags: N
|
|
459
|
-
}),
|
|
460
|
-
if (I[r] || !(
|
|
461
|
-
if (!I[r] &&
|
|
462
|
-
if (
|
|
477
|
+
}), z && e.hasChildNodes() && !Vt(e.firstElementChild) && C(/<[/\w!]/g, e.innerHTML) && C(/<[/\w!]/g, e.textContent) || z && e.namespaceURI === G && r === "style" && Vt(e.firstElementChild) || e.nodeType === k.progressingInstruction || z && e.nodeType === k.comment && C(/<[/\w]/g, e.data)) return X(e), !0;
|
|
478
|
+
if (I[r] || !(L.tagCheck instanceof Function && L.tagCheck(r)) && !N[r]) {
|
|
479
|
+
if (!I[r] && Gt(r) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r))) return !1;
|
|
480
|
+
if (gt && !W[r]) {
|
|
463
481
|
let t = T(e) || e.parentNode, n = w(e) || e.childNodes;
|
|
464
482
|
if (n && t) {
|
|
465
483
|
let r = n.length;
|
|
@@ -469,25 +487,25 @@ function ze() {
|
|
|
469
487
|
}
|
|
470
488
|
}
|
|
471
489
|
}
|
|
472
|
-
return
|
|
490
|
+
return X(e), !0;
|
|
473
491
|
}
|
|
474
|
-
return e instanceof l && !
|
|
475
|
-
Ke,
|
|
492
|
+
return e instanceof l && !It(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (R && e.nodeType === k.text && (n = e.textContent, m([
|
|
476
493
|
qe,
|
|
477
|
-
Je
|
|
494
|
+
Je,
|
|
495
|
+
Ye
|
|
478
496
|
], (e) => {
|
|
479
497
|
n = v(n, e, " ");
|
|
480
|
-
}), e.textContent !== n && (h(t.removed, { element: e.cloneNode() }), e.textContent = n)),
|
|
481
|
-
},
|
|
482
|
-
if (
|
|
483
|
-
let i = P[t] ||
|
|
484
|
-
if (!(
|
|
485
|
-
if (!i ||
|
|
486
|
-
if (!(
|
|
487
|
-
} else if (!
|
|
498
|
+
}), e.textContent !== n && (h(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(M.afterSanitizeElements, e, null), !1);
|
|
499
|
+
}, Ut = function(e, t, r) {
|
|
500
|
+
if (it[t] || pt && (t === "id" || t === "name") && (r in n || r in jt)) return !1;
|
|
501
|
+
let i = P[t] || L.attributeCheck instanceof Function && L.attributeCheck(t, e);
|
|
502
|
+
if (!(ot && !it[t] && C(Xe, t)) && !(at && C(Ze, t))) {
|
|
503
|
+
if (!i || it[t]) {
|
|
504
|
+
if (!(Gt(e) && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, e) || F.tagNameCheck instanceof Function && F.tagNameCheck(e)) && (F.attributeNameCheck instanceof RegExp && C(F.attributeNameCheck, t) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(t, e)) || t === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && C(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)))) return !1;
|
|
505
|
+
} else if (!bt[t] && !C(tt, v(r, $e, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && vt[e]) && !(st && !C(Qe, v(r, $e, ""))) && r) return !1;
|
|
488
506
|
}
|
|
489
507
|
return !0;
|
|
490
|
-
},
|
|
508
|
+
}, Wt = E({}, [
|
|
491
509
|
"annotation-xml",
|
|
492
510
|
"color-profile",
|
|
493
511
|
"font-face",
|
|
@@ -496,12 +514,12 @@ function ze() {
|
|
|
496
514
|
"font-face-src",
|
|
497
515
|
"font-face-uri",
|
|
498
516
|
"missing-glyph"
|
|
499
|
-
]),
|
|
500
|
-
return !
|
|
501
|
-
},
|
|
502
|
-
|
|
517
|
+
]), Gt = function(e) {
|
|
518
|
+
return !Wt[_(e)] && C(et, e);
|
|
519
|
+
}, Kt = function(e) {
|
|
520
|
+
Q(M.beforeSanitizeAttributes, e, null);
|
|
503
521
|
let n = e.attributes;
|
|
504
|
-
if (!n ||
|
|
522
|
+
if (!n || Bt(e)) return;
|
|
505
523
|
let r = {
|
|
506
524
|
attrName: "",
|
|
507
525
|
attrValue: "",
|
|
@@ -510,59 +528,59 @@ function ze() {
|
|
|
510
528
|
forceKeepAttr: void 0
|
|
511
529
|
}, i = n.length;
|
|
512
530
|
for (; i--;) {
|
|
513
|
-
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l =
|
|
514
|
-
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0,
|
|
515
|
-
|
|
531
|
+
let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : le(u);
|
|
532
|
+
if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(M.uponSanitizeAttribute, e, r), d = r.attrValue, mt && (l === "id" || l === "name") && ce(d, ht) !== 0 && (Z(o, e), d = ht + d), z && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
533
|
+
Z(o, e);
|
|
516
534
|
continue;
|
|
517
535
|
}
|
|
518
536
|
if (l === "attributename" && se(d, "href")) {
|
|
519
|
-
|
|
537
|
+
Z(o, e);
|
|
520
538
|
continue;
|
|
521
539
|
}
|
|
522
540
|
if (r.forceKeepAttr) continue;
|
|
523
541
|
if (!r.keepAttr) {
|
|
524
|
-
|
|
542
|
+
Z(o, e);
|
|
525
543
|
continue;
|
|
526
544
|
}
|
|
527
|
-
if (!
|
|
528
|
-
|
|
545
|
+
if (!ct && C(/\/>/i, d)) {
|
|
546
|
+
Z(o, e);
|
|
529
547
|
continue;
|
|
530
548
|
}
|
|
531
|
-
|
|
532
|
-
Ke,
|
|
549
|
+
R && m([
|
|
533
550
|
qe,
|
|
534
|
-
Je
|
|
551
|
+
Je,
|
|
552
|
+
Ye
|
|
535
553
|
], (e) => {
|
|
536
554
|
d = v(d, e, " ");
|
|
537
555
|
});
|
|
538
|
-
let f =
|
|
539
|
-
if (!
|
|
540
|
-
|
|
556
|
+
let f = J(e.nodeName);
|
|
557
|
+
if (!Ut(f, l, d)) {
|
|
558
|
+
Z(o, e);
|
|
541
559
|
continue;
|
|
542
560
|
}
|
|
543
|
-
if (
|
|
561
|
+
if (A && typeof y == "object" && typeof y.getAttributeType == "function" && !s) switch (y.getAttributeType(f, l)) {
|
|
544
562
|
case "TrustedHTML":
|
|
545
|
-
d =
|
|
563
|
+
d = A.createHTML(d);
|
|
546
564
|
break;
|
|
547
565
|
case "TrustedScriptURL":
|
|
548
|
-
d =
|
|
566
|
+
d = A.createScriptURL(d);
|
|
549
567
|
break;
|
|
550
568
|
}
|
|
551
569
|
if (d !== u) try {
|
|
552
|
-
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d),
|
|
570
|
+
s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), Bt(e) ? X(e) : ie(t.removed);
|
|
553
571
|
} catch {
|
|
554
|
-
|
|
572
|
+
Z(o, e);
|
|
555
573
|
}
|
|
556
574
|
}
|
|
557
|
-
|
|
558
|
-
},
|
|
559
|
-
let t = null, n =
|
|
560
|
-
for (
|
|
561
|
-
|
|
562
|
-
},
|
|
563
|
-
if (e.nodeType ===
|
|
575
|
+
Q(M.afterSanitizeAttributes, e, null);
|
|
576
|
+
}, qt = function(e) {
|
|
577
|
+
let t = null, n = Rt(e);
|
|
578
|
+
for (Q(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) Q(M.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), t.content instanceof a && qt(t.content);
|
|
579
|
+
Q(M.afterSanitizeShadowDOM, e, null);
|
|
580
|
+
}, $ = function(e) {
|
|
581
|
+
if (e.nodeType === k.element && e.shadowRoot instanceof a) {
|
|
564
582
|
let t = e.shadowRoot;
|
|
565
|
-
|
|
583
|
+
$(t), qt(t);
|
|
566
584
|
}
|
|
567
585
|
let t = e.childNodes;
|
|
568
586
|
if (!t) return;
|
|
@@ -570,58 +588,47 @@ function ze() {
|
|
|
570
588
|
m(t, (e) => {
|
|
571
589
|
h(n, e);
|
|
572
590
|
});
|
|
573
|
-
for (let e of n)
|
|
591
|
+
for (let e of n) $(e);
|
|
574
592
|
};
|
|
575
593
|
return t.sanitize = function(e) {
|
|
576
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null,
|
|
577
|
-
if (
|
|
594
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, s = null, c = null;
|
|
595
|
+
if (wt = !e, wt && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = me(e), typeof e != "string")) throw fe("dirty is not a string, aborting");
|
|
578
596
|
if (!t.isSupported) return e;
|
|
579
|
-
if (
|
|
597
|
+
if (lt || Nt(n), t.removed = [], typeof e == "string" && (H = !1), H) {
|
|
580
598
|
let t = e.nodeName;
|
|
581
599
|
if (typeof t == "string") {
|
|
582
|
-
let e =
|
|
600
|
+
let e = J(t);
|
|
583
601
|
if (!N[e] || I[e]) throw fe("root node is forbidden and cannot be sanitized in-place");
|
|
584
602
|
}
|
|
585
|
-
|
|
586
|
-
} else if (e
|
|
603
|
+
$(e);
|
|
604
|
+
} else if (Vt(e)) i = Lt("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === k.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o), $(o);
|
|
587
605
|
else {
|
|
588
|
-
if (!
|
|
589
|
-
if (i =
|
|
606
|
+
if (!V && !R && !B && e.indexOf("<") === -1) return A && ft ? A.createHTML(e) : e;
|
|
607
|
+
if (i = Lt(e), !i) return V ? null : ft ? j : "";
|
|
590
608
|
}
|
|
591
|
-
i &&
|
|
592
|
-
let
|
|
593
|
-
for (; s =
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
m([
|
|
600
|
-
Ke,
|
|
601
|
-
qe,
|
|
602
|
-
Je
|
|
603
|
-
], (t) => {
|
|
604
|
-
e = v(e, t, " ");
|
|
605
|
-
}), i.innerHTML = e;
|
|
606
|
-
}
|
|
607
|
-
if (lt) for (l = Ue.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
608
|
-
else l = i;
|
|
609
|
-
return (P.shadowroot || P.shadowrootmode) && (l = Ge.call(r, l, !0)), l;
|
|
609
|
+
i && ut && X(i.firstChild);
|
|
610
|
+
let l = Rt(H ? e : i);
|
|
611
|
+
for (; s = l.nextNode();) Ht(s), Kt(s), s.content instanceof a && qt(s.content);
|
|
612
|
+
if (H) return R && zt(e), e;
|
|
613
|
+
if (V) {
|
|
614
|
+
if (R && zt(i), dt) for (c = We.call(i.ownerDocument); i.firstChild;) c.appendChild(i.firstChild);
|
|
615
|
+
else c = i;
|
|
616
|
+
return (P.shadowroot || P.shadowrootmode) && (c = Ke.call(r, c, !0)), c;
|
|
610
617
|
}
|
|
611
|
-
let
|
|
612
|
-
return
|
|
613
|
-
Ke,
|
|
618
|
+
let u = B ? i.outerHTML : i.innerHTML;
|
|
619
|
+
return B && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Fe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), R && m([
|
|
614
620
|
qe,
|
|
615
|
-
Je
|
|
621
|
+
Je,
|
|
622
|
+
Ye
|
|
616
623
|
], (e) => {
|
|
617
|
-
|
|
618
|
-
}),
|
|
624
|
+
u = v(u, e, " ");
|
|
625
|
+
}), A && ft ? A.createHTML(u) : u;
|
|
619
626
|
}, t.setConfig = function() {
|
|
620
|
-
|
|
627
|
+
Nt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), lt = !0;
|
|
621
628
|
}, t.clearConfig = function() {
|
|
622
|
-
|
|
629
|
+
Y = null, lt = !1;
|
|
623
630
|
}, t.isValidAttribute = function(e, t, n) {
|
|
624
|
-
return
|
|
631
|
+
return Y || Nt({}), Ut(J(e), J(t), n);
|
|
625
632
|
}, t.addHook = function(e, t) {
|
|
626
633
|
typeof t == "function" && h(M[e], t);
|
|
627
634
|
}, t.removeHook = function(e, t) {
|
|
@@ -633,11 +640,11 @@ function ze() {
|
|
|
633
640
|
}, t.removeHooks = function(e) {
|
|
634
641
|
M[e] = [];
|
|
635
642
|
}, t.removeAllHooks = function() {
|
|
636
|
-
M =
|
|
643
|
+
M = ze();
|
|
637
644
|
}, t;
|
|
638
645
|
}
|
|
639
|
-
var
|
|
646
|
+
var A = Be();
|
|
640
647
|
//#endregion
|
|
641
|
-
export {
|
|
648
|
+
export { A as purify };
|
|
642
649
|
|
|
643
650
|
//# sourceMappingURL=purify.es.js.map
|