@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3
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/dist/vue2/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue2/arc-BqlAOiZb.js +78 -0
- package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue2/array-TB8zN_HT.js +5 -0
- package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue2/channel-edTl5mpN.js +3 -0
- package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue2/chunk-DNh5sLlG.js +18 -0
- package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue2/clone-Bbr3WSpg.js +7 -0
- package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue2/dist-xWJvauxf.js +49 -0
- package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue2/flatten-CfPhNHUL.js +34 -0
- package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue2/index.es.min.js +26703 -786
- package/dist/vue2/index.umd.min.js +2796 -9
- package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue2/init-hAkIK9Bd.js +13 -0
- package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue2/katex-CEAw-xiA.js +22097 -0
- package/dist/vue2/katex-D8o5-F7C.js +2 -0
- package/dist/vue2/line-wvheYP7S.js +30 -0
- package/dist/vue2/linear-STTevhnH.js +250 -0
- package/dist/vue2/math-DF_v6dOl.js +8 -0
- package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue2/path-CW_-_Ti7.js +79 -0
- package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue2/src-VlKYSsxJ.js +1975 -0
- package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue3/arc-BqlAOiZb.js +78 -0
- package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue3/array-TB8zN_HT.js +5 -0
- package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue3/channel-edTl5mpN.js +3 -0
- package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue3/chunk-DNh5sLlG.js +18 -0
- package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue3/clone-Bbr3WSpg.js +7 -0
- package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue3/dist-xWJvauxf.js +49 -0
- package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue3/flatten-CfPhNHUL.js +34 -0
- package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue3/index.es.min.js +26730 -813
- package/dist/vue3/index.umd.min.js +2796 -9
- package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue3/init-hAkIK9Bd.js +13 -0
- package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue3/katex-CEAw-xiA.js +22097 -0
- package/dist/vue3/katex-D8o5-F7C.js +2 -0
- package/dist/vue3/line-wvheYP7S.js +30 -0
- package/dist/vue3/linear-STTevhnH.js +250 -0
- package/dist/vue3/math-DF_v6dOl.js +8 -0
- package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue3/path-CW_-_Ti7.js +79 -0
- package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue3/src-VlKYSsxJ.js +1975 -0
- package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/package.json +1 -1
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
var { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object, { freeze, seal, create } = Object, { apply, construct } = typeof Reflect < "u" && Reflect;
|
|
2
|
+
freeze ||= function(e) {
|
|
3
|
+
return e;
|
|
4
|
+
}, seal ||= function(e) {
|
|
5
|
+
return e;
|
|
6
|
+
}, apply ||= function(e, t) {
|
|
7
|
+
var n = [...arguments].slice(2);
|
|
8
|
+
return e.apply(t, n);
|
|
9
|
+
}, construct ||= function(e) {
|
|
10
|
+
return new e(...[...arguments].slice(1));
|
|
11
|
+
};
|
|
12
|
+
var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
|
|
13
|
+
function unapply(e) {
|
|
14
|
+
return function(t) {
|
|
15
|
+
t instanceof RegExp && (t.lastIndex = 0);
|
|
16
|
+
var n = [...arguments].slice(1);
|
|
17
|
+
return apply(e, t, n);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function unconstruct(e) {
|
|
21
|
+
return function() {
|
|
22
|
+
return construct(e, [...arguments]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function addToSet(e, r) {
|
|
26
|
+
let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
|
|
27
|
+
setPrototypeOf && setPrototypeOf(e, null);
|
|
28
|
+
let a = r.length;
|
|
29
|
+
for (; a--;) {
|
|
30
|
+
let t = r[a];
|
|
31
|
+
if (typeof t == "string") {
|
|
32
|
+
let e = i(t);
|
|
33
|
+
e !== t && (isFrozen(r) || (r[a] = e), t = e);
|
|
34
|
+
}
|
|
35
|
+
e[t] = !0;
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
function cleanArray(e) {
|
|
40
|
+
for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function clone(t) {
|
|
44
|
+
let n = create(null);
|
|
45
|
+
for (let [r, i] of entries(t)) objectHasOwnProperty(t, r) && (Array.isArray(i) ? n[r] = cleanArray(i) : i && typeof i == "object" && i.constructor === Object ? n[r] = clone(i) : n[r] = i);
|
|
46
|
+
return n;
|
|
47
|
+
}
|
|
48
|
+
function lookupGetter(e, t) {
|
|
49
|
+
for (; e !== null;) {
|
|
50
|
+
let n = getOwnPropertyDescriptor(e, t);
|
|
51
|
+
if (n) {
|
|
52
|
+
if (n.get) return unapply(n.get);
|
|
53
|
+
if (typeof n.value == "function") return unapply(n.value);
|
|
54
|
+
}
|
|
55
|
+
e = getPrototypeOf(e);
|
|
56
|
+
}
|
|
57
|
+
function n() {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return n;
|
|
61
|
+
}
|
|
62
|
+
var html$1 = freeze(/* @__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(".")), svg$1 = freeze(/* @__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(".")), svgFilters = freeze([
|
|
63
|
+
"feBlend",
|
|
64
|
+
"feColorMatrix",
|
|
65
|
+
"feComponentTransfer",
|
|
66
|
+
"feComposite",
|
|
67
|
+
"feConvolveMatrix",
|
|
68
|
+
"feDiffuseLighting",
|
|
69
|
+
"feDisplacementMap",
|
|
70
|
+
"feDistantLight",
|
|
71
|
+
"feDropShadow",
|
|
72
|
+
"feFlood",
|
|
73
|
+
"feFuncA",
|
|
74
|
+
"feFuncB",
|
|
75
|
+
"feFuncG",
|
|
76
|
+
"feFuncR",
|
|
77
|
+
"feGaussianBlur",
|
|
78
|
+
"feImage",
|
|
79
|
+
"feMerge",
|
|
80
|
+
"feMergeNode",
|
|
81
|
+
"feMorphology",
|
|
82
|
+
"feOffset",
|
|
83
|
+
"fePointLight",
|
|
84
|
+
"feSpecularLighting",
|
|
85
|
+
"feSpotLight",
|
|
86
|
+
"feTile",
|
|
87
|
+
"feTurbulence"
|
|
88
|
+
]), svgDisallowed = freeze([
|
|
89
|
+
"animate",
|
|
90
|
+
"color-profile",
|
|
91
|
+
"cursor",
|
|
92
|
+
"discard",
|
|
93
|
+
"font-face",
|
|
94
|
+
"font-face-format",
|
|
95
|
+
"font-face-name",
|
|
96
|
+
"font-face-src",
|
|
97
|
+
"font-face-uri",
|
|
98
|
+
"foreignobject",
|
|
99
|
+
"hatch",
|
|
100
|
+
"hatchpath",
|
|
101
|
+
"mesh",
|
|
102
|
+
"meshgradient",
|
|
103
|
+
"meshpatch",
|
|
104
|
+
"meshrow",
|
|
105
|
+
"missing-glyph",
|
|
106
|
+
"script",
|
|
107
|
+
"set",
|
|
108
|
+
"solidcolor",
|
|
109
|
+
"unknown",
|
|
110
|
+
"use"
|
|
111
|
+
]), mathMl$1 = freeze(/* @__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(".")), mathMlDisallowed = freeze([
|
|
112
|
+
"maction",
|
|
113
|
+
"maligngroup",
|
|
114
|
+
"malignmark",
|
|
115
|
+
"mlongdiv",
|
|
116
|
+
"mscarries",
|
|
117
|
+
"mscarry",
|
|
118
|
+
"msgroup",
|
|
119
|
+
"mstack",
|
|
120
|
+
"msline",
|
|
121
|
+
"msrow",
|
|
122
|
+
"semantics",
|
|
123
|
+
"annotation",
|
|
124
|
+
"annotation-xml",
|
|
125
|
+
"mprescripts",
|
|
126
|
+
"none"
|
|
127
|
+
]), text = freeze(["#text"]), html = freeze(/* @__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(".")), svg = freeze(/* @__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(".")), mathMl = freeze(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), xml = freeze([
|
|
128
|
+
"xlink:href",
|
|
129
|
+
"xml:id",
|
|
130
|
+
"xlink:title",
|
|
131
|
+
"xml:space",
|
|
132
|
+
"xmlns:xlink"
|
|
133
|
+
]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), EXPRESSIONS = /* @__PURE__ */ Object.freeze({
|
|
134
|
+
__proto__: null,
|
|
135
|
+
ARIA_ATTR,
|
|
136
|
+
ATTR_WHITESPACE,
|
|
137
|
+
CUSTOM_ELEMENT,
|
|
138
|
+
DATA_ATTR,
|
|
139
|
+
DOCTYPE_NAME,
|
|
140
|
+
ERB_EXPR,
|
|
141
|
+
IS_ALLOWED_URI,
|
|
142
|
+
IS_SCRIPT_OR_DATA,
|
|
143
|
+
MUSTACHE_EXPR,
|
|
144
|
+
TMPLIT_EXPR
|
|
145
|
+
}), NODE_TYPE = {
|
|
146
|
+
element: 1,
|
|
147
|
+
attribute: 2,
|
|
148
|
+
text: 3,
|
|
149
|
+
cdataSection: 4,
|
|
150
|
+
entityReference: 5,
|
|
151
|
+
entityNode: 6,
|
|
152
|
+
progressingInstruction: 7,
|
|
153
|
+
comment: 8,
|
|
154
|
+
document: 9,
|
|
155
|
+
documentType: 10,
|
|
156
|
+
documentFragment: 11,
|
|
157
|
+
notation: 12
|
|
158
|
+
}, getGlobal = function() {
|
|
159
|
+
return typeof window > "u" ? null : window;
|
|
160
|
+
}, _createTrustedTypesPolicy = function(e, t) {
|
|
161
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
162
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
163
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
164
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
165
|
+
try {
|
|
166
|
+
return e.createPolicy(i, {
|
|
167
|
+
createHTML(e) {
|
|
168
|
+
return e;
|
|
169
|
+
},
|
|
170
|
+
createScriptURL(e) {
|
|
171
|
+
return e;
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
} catch {
|
|
175
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
176
|
+
}
|
|
177
|
+
}, _createHooksMap = function() {
|
|
178
|
+
return {
|
|
179
|
+
afterSanitizeAttributes: [],
|
|
180
|
+
afterSanitizeElements: [],
|
|
181
|
+
afterSanitizeShadowDOM: [],
|
|
182
|
+
beforeSanitizeAttributes: [],
|
|
183
|
+
beforeSanitizeElements: [],
|
|
184
|
+
beforeSanitizeShadowDOM: [],
|
|
185
|
+
uponSanitizeAttribute: [],
|
|
186
|
+
uponSanitizeElement: [],
|
|
187
|
+
uponSanitizeShadowNode: []
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
function createDOMPurify() {
|
|
191
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), n = (e) => createDOMPurify(e);
|
|
192
|
+
if (n.version = "3.3.1", n.removed = [], !t || !t.document || t.document.nodeType !== NODE_TYPE.document || !t.Element) return n.isSupported = !1, n;
|
|
193
|
+
let { document: r } = t, i = r, o = i.currentScript, { DocumentFragment: c, HTMLTemplateElement: l, Node: d, Element: Fe, NodeFilter: f, NamedNodeMap: Ie = t.NamedNodeMap || t.MozNamedAttrMap, HTMLFormElement: Le, DOMParser: Re, trustedTypes: p } = t, m = Fe.prototype, ze = lookupGetter(m, "cloneNode"), Be = lookupGetter(m, "remove"), Ve = lookupGetter(m, "nextSibling"), He = lookupGetter(m, "childNodes"), h = lookupGetter(m, "parentNode");
|
|
194
|
+
if (typeof l == "function") {
|
|
195
|
+
let e = r.createElement("template");
|
|
196
|
+
e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
|
|
197
|
+
}
|
|
198
|
+
let g, _ = "", { implementation: v, createNodeIterator: Ue, createDocumentFragment: We, getElementsByTagName: Ge } = r, { importNode: Ke } = i, y = _createHooksMap();
|
|
199
|
+
n.isSupported = typeof entries == "function" && typeof h == "function" && v && v.createHTMLDocument !== void 0;
|
|
200
|
+
let { MUSTACHE_EXPR: b, ERB_EXPR: x, TMPLIT_EXPR: S, DATA_ATTR: qe, ARIA_ATTR: Je, IS_SCRIPT_OR_DATA: Ye, ATTR_WHITESPACE: Xe, CUSTOM_ELEMENT: Ze } = EXPRESSIONS, { IS_ALLOWED_URI: Qe } = EXPRESSIONS, C = null, $e = addToSet({}, [
|
|
201
|
+
...html$1,
|
|
202
|
+
...svg$1,
|
|
203
|
+
...svgFilters,
|
|
204
|
+
...mathMl$1,
|
|
205
|
+
...text
|
|
206
|
+
]), w = null, et = addToSet({}, [
|
|
207
|
+
...html,
|
|
208
|
+
...svg,
|
|
209
|
+
...mathMl,
|
|
210
|
+
...xml
|
|
211
|
+
]), T = Object.seal(create(null, {
|
|
212
|
+
tagNameCheck: {
|
|
213
|
+
writable: !0,
|
|
214
|
+
configurable: !1,
|
|
215
|
+
enumerable: !0,
|
|
216
|
+
value: null
|
|
217
|
+
},
|
|
218
|
+
attributeNameCheck: {
|
|
219
|
+
writable: !0,
|
|
220
|
+
configurable: !1,
|
|
221
|
+
enumerable: !0,
|
|
222
|
+
value: null
|
|
223
|
+
},
|
|
224
|
+
allowCustomizedBuiltInElements: {
|
|
225
|
+
writable: !0,
|
|
226
|
+
configurable: !1,
|
|
227
|
+
enumerable: !0,
|
|
228
|
+
value: !1
|
|
229
|
+
}
|
|
230
|
+
})), E = null, D = null, O = Object.seal(create(null, {
|
|
231
|
+
tagCheck: {
|
|
232
|
+
writable: !0,
|
|
233
|
+
configurable: !1,
|
|
234
|
+
enumerable: !0,
|
|
235
|
+
value: null
|
|
236
|
+
},
|
|
237
|
+
attributeCheck: {
|
|
238
|
+
writable: !0,
|
|
239
|
+
configurable: !1,
|
|
240
|
+
enumerable: !0,
|
|
241
|
+
value: null
|
|
242
|
+
}
|
|
243
|
+
})), tt = !0, k = !0, nt = !1, rt = !0, A = !1, j = !0, M = !1, N = !1, P = !1, F = !1, I = !1, L = !1, it = !0, at = !1, ot = !0, R = !1, z = {}, B = null, st = addToSet({}, [
|
|
244
|
+
"annotation-xml",
|
|
245
|
+
"audio",
|
|
246
|
+
"colgroup",
|
|
247
|
+
"desc",
|
|
248
|
+
"foreignobject",
|
|
249
|
+
"head",
|
|
250
|
+
"iframe",
|
|
251
|
+
"math",
|
|
252
|
+
"mi",
|
|
253
|
+
"mn",
|
|
254
|
+
"mo",
|
|
255
|
+
"ms",
|
|
256
|
+
"mtext",
|
|
257
|
+
"noembed",
|
|
258
|
+
"noframes",
|
|
259
|
+
"noscript",
|
|
260
|
+
"plaintext",
|
|
261
|
+
"script",
|
|
262
|
+
"style",
|
|
263
|
+
"svg",
|
|
264
|
+
"template",
|
|
265
|
+
"thead",
|
|
266
|
+
"title",
|
|
267
|
+
"video",
|
|
268
|
+
"xmp"
|
|
269
|
+
]), ct = null, lt = addToSet({}, [
|
|
270
|
+
"audio",
|
|
271
|
+
"video",
|
|
272
|
+
"img",
|
|
273
|
+
"source",
|
|
274
|
+
"image",
|
|
275
|
+
"track"
|
|
276
|
+
]), ut = null, dt = addToSet({}, [
|
|
277
|
+
"alt",
|
|
278
|
+
"class",
|
|
279
|
+
"for",
|
|
280
|
+
"id",
|
|
281
|
+
"label",
|
|
282
|
+
"name",
|
|
283
|
+
"pattern",
|
|
284
|
+
"placeholder",
|
|
285
|
+
"role",
|
|
286
|
+
"summary",
|
|
287
|
+
"title",
|
|
288
|
+
"value",
|
|
289
|
+
"style",
|
|
290
|
+
"xmlns"
|
|
291
|
+
]), V = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", W = U, ft = !1, pt = null, mt = addToSet({}, [
|
|
292
|
+
V,
|
|
293
|
+
H,
|
|
294
|
+
U
|
|
295
|
+
], stringToString), G = addToSet({}, [
|
|
296
|
+
"mi",
|
|
297
|
+
"mo",
|
|
298
|
+
"mn",
|
|
299
|
+
"ms",
|
|
300
|
+
"mtext"
|
|
301
|
+
]), K = addToSet({}, ["annotation-xml"]), ht = addToSet({}, [
|
|
302
|
+
"title",
|
|
303
|
+
"style",
|
|
304
|
+
"font",
|
|
305
|
+
"a",
|
|
306
|
+
"script"
|
|
307
|
+
]), q = null, gt = ["application/xhtml+xml", "text/html"], J = null, Y = null, _t = r.createElement("form"), vt = function(e) {
|
|
308
|
+
return e instanceof RegExp || e instanceof Function;
|
|
309
|
+
}, yt = function() {
|
|
310
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
311
|
+
if (!(Y && Y === e)) {
|
|
312
|
+
if ((!e || typeof e != "object") && (e = {}), e = clone(e), q = gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? stringToString : stringToLowerCase, C = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, J) : $e, w = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, J) : et, pt = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : mt, ut = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(dt), e.ADD_URI_SAFE_ATTR, J) : dt, ct = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(lt), e.ADD_DATA_URI_TAGS, J) : lt, B = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, J) : st, E = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, J) : clone({}), D = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, J) : clone({}), z = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, tt = e.ALLOW_ARIA_ATTR !== !1, k = e.ALLOW_DATA_ATTR !== !1, nt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, rt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, A = e.SAFE_FOR_TEMPLATES || !1, j = e.SAFE_FOR_XML !== !1, M = e.WHOLE_DOCUMENT || !1, F = e.RETURN_DOM || !1, I = e.RETURN_DOM_FRAGMENT || !1, L = e.RETURN_TRUSTED_TYPE || !1, P = e.FORCE_BODY || !1, it = e.SANITIZE_DOM !== !1, at = e.SANITIZE_NAMED_PROPS || !1, ot = e.KEEP_CONTENT !== !1, R = e.IN_PLACE || !1, Qe = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, W = e.NAMESPACE || U, G = e.MATHML_TEXT_INTEGRATION_POINTS || G, K = e.HTML_INTEGRATION_POINTS || K, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), A && (k = !1), I && (F = !0), z && (C = addToSet({}, text), w = [], z.html === !0 && (addToSet(C, html$1), addToSet(w, html)), z.svg === !0 && (addToSet(C, svg$1), addToSet(w, svg), addToSet(w, xml)), z.svgFilters === !0 && (addToSet(C, svgFilters), addToSet(w, svg), addToSet(w, xml)), z.mathMl === !0 && (addToSet(C, mathMl$1), addToSet(w, mathMl), addToSet(w, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? O.tagCheck = e.ADD_TAGS : (C === $e && (C = clone(C)), addToSet(C, e.ADD_TAGS, J))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? O.attributeCheck = e.ADD_ATTR : (w === et && (w = clone(w)), addToSet(w, e.ADD_ATTR, J))), e.ADD_URI_SAFE_ATTR && addToSet(ut, e.ADD_URI_SAFE_ATTR, J), e.FORBID_CONTENTS && (B === st && (B = clone(B)), addToSet(B, e.FORBID_CONTENTS, J)), e.ADD_FORBID_CONTENTS && (B === st && (B = clone(B)), addToSet(B, e.ADD_FORBID_CONTENTS, J)), ot && (C["#text"] = !0), M && addToSet(C, [
|
|
313
|
+
"html",
|
|
314
|
+
"head",
|
|
315
|
+
"body"
|
|
316
|
+
]), C.table && (addToSet(C, ["tbody"]), delete E.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
317
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
318
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
319
|
+
g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
|
|
320
|
+
} else g === void 0 && (g = _createTrustedTypesPolicy(p, o)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
|
|
321
|
+
freeze && freeze(e), Y = e;
|
|
322
|
+
}
|
|
323
|
+
}, bt = addToSet({}, [
|
|
324
|
+
...svg$1,
|
|
325
|
+
...svgFilters,
|
|
326
|
+
...svgDisallowed
|
|
327
|
+
]), xt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), St = function(e) {
|
|
328
|
+
let t = h(e);
|
|
329
|
+
(!t || !t.tagName) && (t = {
|
|
330
|
+
namespaceURI: W,
|
|
331
|
+
tagName: "template"
|
|
332
|
+
});
|
|
333
|
+
let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
|
|
334
|
+
return pt[e.namespaceURI] ? e.namespaceURI === H ? t.namespaceURI === U ? n === "svg" : t.namespaceURI === V ? n === "svg" && (r === "annotation-xml" || G[r]) : !!bt[n] : e.namespaceURI === V ? t.namespaceURI === U ? n === "math" : t.namespaceURI === H ? n === "math" && K[r] : !!xt[n] : e.namespaceURI === U ? t.namespaceURI === H && !K[r] || t.namespaceURI === V && !G[r] ? !1 : !xt[n] && (ht[n] || !bt[n]) : !!(q === "application/xhtml+xml" && pt[e.namespaceURI]) : !1;
|
|
335
|
+
}, X = function(e) {
|
|
336
|
+
arrayPush(n.removed, { element: e });
|
|
337
|
+
try {
|
|
338
|
+
h(e).removeChild(e);
|
|
339
|
+
} catch {
|
|
340
|
+
Be(e);
|
|
341
|
+
}
|
|
342
|
+
}, Z = function(e, t) {
|
|
343
|
+
try {
|
|
344
|
+
arrayPush(n.removed, {
|
|
345
|
+
attribute: t.getAttributeNode(e),
|
|
346
|
+
from: t
|
|
347
|
+
});
|
|
348
|
+
} catch {
|
|
349
|
+
arrayPush(n.removed, {
|
|
350
|
+
attribute: null,
|
|
351
|
+
from: t
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
if (t.removeAttribute(e), e === "is") if (F || I) try {
|
|
355
|
+
X(t);
|
|
356
|
+
} catch {}
|
|
357
|
+
else try {
|
|
358
|
+
t.setAttribute(e, "");
|
|
359
|
+
} catch {}
|
|
360
|
+
}, Ct = function(e) {
|
|
361
|
+
let t = null, n = null;
|
|
362
|
+
if (P) e = "<remove></remove>" + e;
|
|
363
|
+
else {
|
|
364
|
+
let t = stringMatch(e, /^[\r\n\t ]+/);
|
|
365
|
+
n = t && t[0];
|
|
366
|
+
}
|
|
367
|
+
q === "application/xhtml+xml" && W === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
368
|
+
let i = g ? g.createHTML(e) : e;
|
|
369
|
+
if (W === U) try {
|
|
370
|
+
t = new Re().parseFromString(i, q);
|
|
371
|
+
} catch {}
|
|
372
|
+
if (!t || !t.documentElement) {
|
|
373
|
+
t = v.createDocument(W, "template", null);
|
|
374
|
+
try {
|
|
375
|
+
t.documentElement.innerHTML = ft ? _ : i;
|
|
376
|
+
} catch {}
|
|
377
|
+
}
|
|
378
|
+
let a = t.body || t.documentElement;
|
|
379
|
+
return e && n && a.insertBefore(r.createTextNode(n), a.childNodes[0] || null), W === U ? Ge.call(t, M ? "html" : "body")[0] : M ? t.documentElement : a;
|
|
380
|
+
}, wt = function(e) {
|
|
381
|
+
return Ue.call(e.ownerDocument || e, e, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
|
|
382
|
+
}, Q = function(e) {
|
|
383
|
+
return e instanceof Le && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Ie) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
384
|
+
}, Tt = function(e) {
|
|
385
|
+
return typeof d == "function" && e instanceof d;
|
|
386
|
+
};
|
|
387
|
+
function $(e, t, r) {
|
|
388
|
+
arrayForEach(e, (e) => {
|
|
389
|
+
e.call(n, t, r, Y);
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
let Et = function(e) {
|
|
393
|
+
let t = null;
|
|
394
|
+
if ($(y.beforeSanitizeElements, e, null), Q(e)) return X(e), !0;
|
|
395
|
+
let r = J(e.nodeName);
|
|
396
|
+
if ($(y.uponSanitizeElement, e, {
|
|
397
|
+
tagName: r,
|
|
398
|
+
allowedTags: C
|
|
399
|
+
}), j && e.hasChildNodes() && !Tt(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || j && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), !0;
|
|
400
|
+
if (!(O.tagCheck instanceof Function && O.tagCheck(r)) && (!C[r] || E[r])) {
|
|
401
|
+
if (!E[r] && Ot(r) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r) || T.tagNameCheck instanceof Function && T.tagNameCheck(r))) return !1;
|
|
402
|
+
if (ot && !B[r]) {
|
|
403
|
+
let t = h(e) || e.parentNode, n = He(e) || e.childNodes;
|
|
404
|
+
if (n && t) {
|
|
405
|
+
let r = n.length;
|
|
406
|
+
for (let i = r - 1; i >= 0; --i) {
|
|
407
|
+
let r = ze(n[i], !0);
|
|
408
|
+
r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Ve(e));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
return X(e), !0;
|
|
413
|
+
}
|
|
414
|
+
return e instanceof Fe && !St(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (A && e.nodeType === NODE_TYPE.text && (t = e.textContent, arrayForEach([
|
|
415
|
+
b,
|
|
416
|
+
x,
|
|
417
|
+
S
|
|
418
|
+
], (e) => {
|
|
419
|
+
t = stringReplace(t, e, " ");
|
|
420
|
+
}), e.textContent !== t && (arrayPush(n.removed, { element: e.cloneNode() }), e.textContent = t)), $(y.afterSanitizeElements, e, null), !1);
|
|
421
|
+
}, Dt = function(e, t, n) {
|
|
422
|
+
if (it && (t === "id" || t === "name") && (n in r || n in _t)) return !1;
|
|
423
|
+
if (!(k && !D[t] && regExpTest(qe, t)) && !(tt && regExpTest(Je, t)) && !(O.attributeCheck instanceof Function && O.attributeCheck(t, e))) {
|
|
424
|
+
if (!w[t] || D[t]) {
|
|
425
|
+
if (!(Ot(e) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, e) || T.tagNameCheck instanceof Function && T.tagNameCheck(e)) && (T.attributeNameCheck instanceof RegExp && regExpTest(T.attributeNameCheck, t) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(t, e)) || t === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, n) || T.tagNameCheck instanceof Function && T.tagNameCheck(n)))) return !1;
|
|
426
|
+
} else if (!ut[t] && !regExpTest(Qe, stringReplace(n, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(n, "data:") === 0 && ct[e]) && !(nt && !regExpTest(Ye, stringReplace(n, Xe, ""))) && n) return !1;
|
|
427
|
+
}
|
|
428
|
+
return !0;
|
|
429
|
+
}, Ot = function(e) {
|
|
430
|
+
return e !== "annotation-xml" && stringMatch(e, Ze);
|
|
431
|
+
}, kt = function(e) {
|
|
432
|
+
$(y.beforeSanitizeAttributes, e, null);
|
|
433
|
+
let { attributes: t } = e;
|
|
434
|
+
if (!t || Q(e)) return;
|
|
435
|
+
let r = {
|
|
436
|
+
attrName: "",
|
|
437
|
+
attrValue: "",
|
|
438
|
+
keepAttr: !0,
|
|
439
|
+
allowedAttributes: w,
|
|
440
|
+
forceKeepAttr: void 0
|
|
441
|
+
}, i = t.length;
|
|
442
|
+
for (; i--;) {
|
|
443
|
+
let { name: a, namespaceURI: o, value: s } = t[i], c = J(a), l = s, u = a === "value" ? l : stringTrim(l);
|
|
444
|
+
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(y.uponSanitizeAttribute, e, r), u = r.attrValue, at && (c === "id" || c === "name") && (Z(a, e), u = "user-content-" + u), j && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
|
|
445
|
+
Z(a, e);
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
if (c === "attributename" && stringMatch(u, "href")) {
|
|
449
|
+
Z(a, e);
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
452
|
+
if (r.forceKeepAttr) continue;
|
|
453
|
+
if (!r.keepAttr) {
|
|
454
|
+
Z(a, e);
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (!rt && regExpTest(/\/>/i, u)) {
|
|
458
|
+
Z(a, e);
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
A && arrayForEach([
|
|
462
|
+
b,
|
|
463
|
+
x,
|
|
464
|
+
S
|
|
465
|
+
], (e) => {
|
|
466
|
+
u = stringReplace(u, e, " ");
|
|
467
|
+
});
|
|
468
|
+
let Pe = J(e.nodeName);
|
|
469
|
+
if (!Dt(Pe, c, u)) {
|
|
470
|
+
Z(a, e);
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(Pe, c)) {
|
|
474
|
+
case "TrustedHTML":
|
|
475
|
+
u = g.createHTML(u);
|
|
476
|
+
break;
|
|
477
|
+
case "TrustedScriptURL":
|
|
478
|
+
u = g.createScriptURL(u);
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
if (u !== l) try {
|
|
482
|
+
o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Q(e) ? X(e) : arrayPop(n.removed);
|
|
483
|
+
} catch {
|
|
484
|
+
Z(a, e);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
$(y.afterSanitizeAttributes, e, null);
|
|
488
|
+
}, At = function e(t) {
|
|
489
|
+
let n = null, r = wt(t);
|
|
490
|
+
for ($(y.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) $(y.uponSanitizeShadowNode, n, null), Et(n), kt(n), n.content instanceof c && e(n.content);
|
|
491
|
+
$(y.afterSanitizeShadowDOM, t, null);
|
|
492
|
+
};
|
|
493
|
+
return n.sanitize = function(e) {
|
|
494
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = null, a = null, o = null, s = null;
|
|
495
|
+
if (ft = !e, ft && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
|
|
496
|
+
if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
|
|
497
|
+
} else throw typeErrorCreate("toString is not a function");
|
|
498
|
+
if (!n.isSupported) return e;
|
|
499
|
+
if (N || yt(t), n.removed = [], typeof e == "string" && (R = !1), R) {
|
|
500
|
+
if (e.nodeName) {
|
|
501
|
+
let t = J(e.nodeName);
|
|
502
|
+
if (!C[t] || E[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
|
|
503
|
+
}
|
|
504
|
+
} else if (e instanceof d) r = Ct("<!---->"), a = r.ownerDocument.importNode(e, !0), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r = a : r.appendChild(a);
|
|
505
|
+
else {
|
|
506
|
+
if (!F && !A && !M && e.indexOf("<") === -1) return g && L ? g.createHTML(e) : e;
|
|
507
|
+
if (r = Ct(e), !r) return F ? null : L ? _ : "";
|
|
508
|
+
}
|
|
509
|
+
r && P && X(r.firstChild);
|
|
510
|
+
let l = wt(R ? e : r);
|
|
511
|
+
for (; o = l.nextNode();) Et(o), kt(o), o.content instanceof c && At(o.content);
|
|
512
|
+
if (R) return e;
|
|
513
|
+
if (F) {
|
|
514
|
+
if (I) for (s = We.call(r.ownerDocument); r.firstChild;) s.appendChild(r.firstChild);
|
|
515
|
+
else s = r;
|
|
516
|
+
return (w.shadowroot || w.shadowrootmode) && (s = Ke.call(i, s, !0)), s;
|
|
517
|
+
}
|
|
518
|
+
let u = M ? r.outerHTML : r.innerHTML;
|
|
519
|
+
return M && C["!doctype"] && r.ownerDocument && r.ownerDocument.doctype && r.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, r.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + r.ownerDocument.doctype.name + ">\n" + u), A && arrayForEach([
|
|
520
|
+
b,
|
|
521
|
+
x,
|
|
522
|
+
S
|
|
523
|
+
], (e) => {
|
|
524
|
+
u = stringReplace(u, e, " ");
|
|
525
|
+
}), g && L ? g.createHTML(u) : u;
|
|
526
|
+
}, n.setConfig = function() {
|
|
527
|
+
yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = !0;
|
|
528
|
+
}, n.clearConfig = function() {
|
|
529
|
+
Y = null, N = !1;
|
|
530
|
+
}, n.isValidAttribute = function(e, t, n) {
|
|
531
|
+
return Y || yt({}), Dt(J(e), J(t), n);
|
|
532
|
+
}, n.addHook = function(e, t) {
|
|
533
|
+
typeof t == "function" && arrayPush(y[e], t);
|
|
534
|
+
}, n.removeHook = function(e, t) {
|
|
535
|
+
if (t !== void 0) {
|
|
536
|
+
let n = arrayLastIndexOf(y[e], t);
|
|
537
|
+
return n === -1 ? void 0 : arraySplice(y[e], n, 1)[0];
|
|
538
|
+
}
|
|
539
|
+
return arrayPop(y[e]);
|
|
540
|
+
}, n.removeHooks = function(e) {
|
|
541
|
+
y[e] = [];
|
|
542
|
+
}, n.removeAllHooks = function() {
|
|
543
|
+
y = _createHooksMap();
|
|
544
|
+
}, n;
|
|
545
|
+
}
|
|
546
|
+
var purify = createDOMPurify();
|
|
547
|
+
export { purify as t };
|