@marimo-team/islands 0.23.15-dev53 → 0.23.15-dev57

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.
Files changed (119) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DMcymmpc.js → ConnectedDataExplorerComponent-CJaUI-S-.js} +3 -3
  2. package/dist/{any-language-editor-BfTj3PPF.js → any-language-editor-P9tjkj4n.js} +18 -18
  3. package/dist/{architectureDiagram-VXUJARFQ-B3jN8fkV.js → architectureDiagram-VXUJARFQ-DXwkyAaM.js} +5 -5
  4. package/dist/{blockDiagram-VD42YOAC-Dq_8lAbz.js → blockDiagram-VD42YOAC-CIOjvxeD.js} +5 -5
  5. package/dist/{c4Diagram-YG6GDRKO-BPzX9a9A.js → c4Diagram-YG6GDRKO-B6dZC_oU.js} +4 -4
  6. package/dist/{channel-D_qwSlm9.js → channel-BN070S0F.js} +1 -1
  7. package/dist/{chat-ui-CYGIiYqI.js → chat-ui-BdSDiVjk.js} +79 -74
  8. package/dist/{chunk-ABZYJK2D-CDSMdLBr.js → chunk-ABZYJK2D-BxBDji1u.js} +1 -1
  9. package/dist/{chunk-ATLVNIR6-BAW0e_d_.js → chunk-ATLVNIR6-qFiszptQ.js} +1 -1
  10. package/dist/{chunk-B4BG7PRW-CfEI05WL.js → chunk-B4BG7PRW-B_z2FEHm.js} +4 -4
  11. package/dist/{chunk-DI55MBZ5-CZS7hhjV.js → chunk-DI55MBZ5-D4Y8yV8B.js} +4 -4
  12. package/dist/{chunk-EXTU4WIE-DHwKB8ls.js → chunk-EXTU4WIE-BQPBhApE.js} +1 -1
  13. package/dist/{chunk-JA3XYJ7Z-Cy80gDpz.js → chunk-JA3XYJ7Z-CY4CRbV5.js} +2 -2
  14. package/dist/{chunk-JZLCHNYA-yfXq27Zq.js → chunk-JZLCHNYA-DWIR9m5O.js} +4 -4
  15. package/dist/{chunk-N4CR4FBY-C9D3Wsot.js → chunk-N4CR4FBY-Bw2HcMNc.js} +5 -5
  16. package/dist/{chunk-QN33PNHL-Bh2YDyg7.js → chunk-QN33PNHL-DPBNNzpR.js} +1 -1
  17. package/dist/{chunk-QXUST7PY-kDpsCDoY.js → chunk-QXUST7PY-DtC2t9Mk.js} +5 -5
  18. package/dist/{chunk-S3R3BYOJ-DkY8Kz3y.js → chunk-S3R3BYOJ-BdgLc8AM.js} +1 -1
  19. package/dist/{chunk-TZMSLE5B-CMZoW3vd.js → chunk-TZMSLE5B-BzSHcq-K.js} +1 -1
  20. package/dist/{classDiagram-2ON5EDUG-b2d3ZqfR.js → classDiagram-2ON5EDUG-BiQPjMNY.js} +10 -10
  21. package/dist/{classDiagram-v2-WZHVMYZB-RvnJbJ5M.js → classDiagram-v2-WZHVMYZB-YHdR8fqM.js} +10 -10
  22. package/dist/{code-visibility-Ddr-Cesu.js → code-visibility-DDYb93Ql.js} +9 -9
  23. package/dist/{dagre-6UL2VRFP--ruFWg_S.js → dagre-6UL2VRFP-DpYjBqQs.js} +7 -7
  24. package/dist/{diagram-PSM6KHXK-CGakapLj.js → diagram-PSM6KHXK-D4ftnaua.js} +6 -6
  25. package/dist/{diagram-QEK2KX5R-CtqD8u_P.js → diagram-QEK2KX5R-DVlUOgs1.js} +4 -4
  26. package/dist/{diagram-S2PKOQOG-BS1wa35J.js → diagram-S2PKOQOG-CGh4OMEV.js} +4 -4
  27. package/dist/{dist-BGLXXYL4.js → dist-3NCqaWjt.js} +2 -2
  28. package/dist/{dist-95kpvRSY.js → dist-4lVIWUT3.js} +1 -1
  29. package/dist/dist-5o9uz19x.js +5 -0
  30. package/dist/{dist-B1k1NmGB.js → dist-B2jmQKKx.js} +2 -2
  31. package/dist/{dist-kcg3gjx6.js → dist-BCX980mU.js} +2 -2
  32. package/dist/{dist-c6wTyIhD.js → dist-BIEt-mlF.js} +1 -1
  33. package/dist/{dist-tJic1rC-.js → dist-BO5HRiTf.js} +2 -2
  34. package/dist/{dist-3MT9i_N5.js → dist-BOMbzyb3.js} +85 -85
  35. package/dist/{dist-Dx3eDsHX.js → dist-BP39XM8u.js} +1 -1
  36. package/dist/{dist-DijFs2Lk.js → dist-BPF0gTRZ.js} +6 -6
  37. package/dist/{dist-BvCrjp81.js → dist-BTdrwBWP.js} +22 -22
  38. package/dist/{dist-CLBjD8zw.js → dist-BdqCKQ1O.js} +2 -2
  39. package/dist/dist-BpDH0DEP.js +5 -0
  40. package/dist/dist-BpXhbQXO.js +8 -0
  41. package/dist/{dist-DgZczohI.js → dist-BpeiYpG2.js} +2 -2
  42. package/dist/{dist-Db1W16d-.js → dist-BwhXBwMd.js} +1 -1
  43. package/dist/dist-ByadAk_L.js +5 -0
  44. package/dist/{dist-B69xyr_D.js → dist-C18MUWTj.js} +2 -2
  45. package/dist/{dist-DPdzbDlL.js → dist-C2_4pjuS.js} +1 -1
  46. package/dist/{dist-B56Dml3A.js → dist-CFSb_Frm.js} +1 -1
  47. package/dist/dist-CK0g7JvP.js +8 -0
  48. package/dist/{dist-CNXNPADS.js → dist-CRmSjkLP.js} +2 -2
  49. package/dist/{dist-D3T8fCFo.js → dist-CSlJrrAw.js} +86 -81
  50. package/dist/dist-CfzCtiq2.js +5 -0
  51. package/dist/{dist-4-bJUNMb.js → dist-D3bdsa1d.js} +4 -4
  52. package/dist/dist-D8JtVFrW.js +8 -0
  53. package/dist/dist-DK2Oocpu.js +6 -0
  54. package/dist/{dist-DBN2w27P.js → dist-DZwp8lro.js} +3 -3
  55. package/dist/{dist-BFgLBSJb.js → dist-DaXJPX8F.js} +2 -2
  56. package/dist/{dist-U4F-tbMs.js → dist-De-GlSAs.js} +246 -184
  57. package/dist/{dist-DPH6RMhL.js → dist-DgjbnqTg.js} +125 -125
  58. package/dist/dist-DnSu977r.js +5 -0
  59. package/dist/{dist-e29IFSI0.js → dist-DviUBLUp.js} +4 -4
  60. package/dist/{dist-BIdzGb3O.js → dist-DwqBJ014.js} +2 -2
  61. package/dist/{dist-BGj6VvC-.js → dist-JGehap7K.js} +5 -5
  62. package/dist/{dist-BGtkYshf.js → dist-LpLXa9Lb.js} +2 -2
  63. package/dist/dist-UmxJm6sW.js +8 -0
  64. package/dist/dist-aYSBQSyM.js +5 -0
  65. package/dist/dist-kkZ1Ztlh.js +6 -0
  66. package/dist/dist-ngPczwNi.js +5 -0
  67. package/dist/{dist-C-RLuUaE.js → dist-pqIwD8VD.js} +2 -2
  68. package/dist/dist-wQRyxyTV.js +5 -0
  69. package/dist/{dist-DvOfvWFi.js → dist-w_gWE5Wf.js} +1 -1
  70. package/dist/{erDiagram-Q2GNP2WA-DmtIJBsT.js → erDiagram-Q2GNP2WA-BcKAHFqF.js} +10 -10
  71. package/dist/{esm-D6_uCZ4z.js → esm-DKOv6P2M.js} +341 -341
  72. package/dist/esm-k8PIvuZW.js +1180 -0
  73. package/dist/{extends-B88Yrunj.js → extends-Cq2JYHKy.js} +32 -16
  74. package/dist/{flowDiagram-NV44I4VS-DZsgBUcQ.js → flowDiagram-NV44I4VS-BRhSg-ro.js} +10 -10
  75. package/dist/{formats-DSfNdJLH.js → formats-BFhkZJwd.js} +1 -1
  76. package/dist/{ganttDiagram-JELNMOA3-CgFhg_6K.js → ganttDiagram-JELNMOA3-CXXCN7LN.js} +3 -3
  77. package/dist/{gitGraphDiagram-V2S2FVAM-DPInyn1F.js → gitGraphDiagram-V2S2FVAM-BOlkMSqK.js} +3 -3
  78. package/dist/{html-to-image-BoXPmWps.js → html-to-image-DDENewl2.js} +34 -34
  79. package/dist/{infoDiagram-HS3SLOUP-ETAzKIiE.js → infoDiagram-HS3SLOUP-D3TyKnL_.js} +3 -3
  80. package/dist/{journeyDiagram-XKPGCS4Q-Bc94zDj1.js → journeyDiagram-XKPGCS4Q-DEal0aT1.js} +3 -3
  81. package/dist/{kanban-definition-3W4ZIXB7-DSk8Ebci.js → kanban-definition-3W4ZIXB7-Dl90wENN.js} +7 -7
  82. package/dist/{loader-BUGT0KbC.js → loader-CTHCI-qe.js} +7 -7
  83. package/dist/main.js +31 -31
  84. package/dist/{mermaid-CYkbfJHW.js → mermaid-CdSvixW2.js} +36 -36
  85. package/dist/{mindmap-definition-VGOIOE7T-BYoCqVAJ.js → mindmap-definition-VGOIOE7T-CCDupjWW.js} +9 -9
  86. package/dist/{pieDiagram-ADFJNKIX-BaAU79Vb.js → pieDiagram-ADFJNKIX-JvXG_6hk.js} +4 -4
  87. package/dist/{process-output-CbRRhwQo.js → process-output-2QPcgBQg.js} +1 -1
  88. package/dist/purify.es-EnR5yhgI.js +783 -0
  89. package/dist/{quadrantDiagram-AYHSOK5B-BmTWJxzo.js → quadrantDiagram-AYHSOK5B-BqDB9tUC.js} +2 -2
  90. package/dist/{react-vega-DfJOSnj6.js → react-vega-BazDALhI.js} +633 -633
  91. package/dist/{requirementDiagram-UZGBJVZJ-Jrs04ua1.js → requirementDiagram-UZGBJVZJ-KbVt8SPH.js} +9 -9
  92. package/dist/{reveal-component-BY5sWajR.js → reveal-component-C5pW80ik.js} +11 -11
  93. package/dist/{sankeyDiagram-TZEHDZUN-YJnhmG4N.js → sankeyDiagram-TZEHDZUN-DgkF38jx.js} +2 -2
  94. package/dist/{sequenceDiagram-WL72ISMW-D30L51Bn.js → sequenceDiagram-WL72ISMW-BDmx9n95.js} +4 -4
  95. package/dist/{stateDiagram-FKZM4ZOC-C0nZuUP8.js → stateDiagram-FKZM4ZOC-ByOvQf2n.js} +10 -10
  96. package/dist/{stateDiagram-v2-4FDKWEC3-BmovmS-G.js → stateDiagram-v2-4FDKWEC3-C3xqeavR.js} +10 -10
  97. package/dist/{timeline-definition-IT6M3QCI-DEoIEWAl.js → timeline-definition-IT6M3QCI-CkD_trIn.js} +2 -2
  98. package/dist/{vega-component-uL9ZaXcH.js → vega-component-CrFoZT1S.js} +4 -4
  99. package/dist/{vega-embed-container-DgZMMVL3.js → vega-embed-container-DAQAMjiO.js} +2 -2
  100. package/dist/vega-loader.browser-DmpxCJqx.js +1353 -0
  101. package/dist/{xychartDiagram-PRI3JC2R-iwKXEnYZ.js → xychartDiagram-PRI3JC2R-BSkNxYNw.js} +5 -5
  102. package/package.json +3 -1
  103. package/dist/dist-9yiSURLw.js +0 -6
  104. package/dist/dist-9zfbSqew.js +0 -8
  105. package/dist/dist-BZ_VEpg8.js +0 -8
  106. package/dist/dist-BdYVjH1C.js +0 -5
  107. package/dist/dist-BiIoKp92.js +0 -6
  108. package/dist/dist-Bow9AUXt.js +0 -5
  109. package/dist/dist-C8odMDp5.js +0 -8
  110. package/dist/dist-CLgjZx38.js +0 -5
  111. package/dist/dist-CnMOJtGP.js +0 -5
  112. package/dist/dist-D-5m1nDT.js +0 -5
  113. package/dist/dist-D8AXqiCV.js +0 -5
  114. package/dist/dist-DMuf8sZd.js +0 -5
  115. package/dist/dist-DszXOVSb.js +0 -5
  116. package/dist/dist-GW0m0q65.js +0 -8
  117. package/dist/esm-BxhNWHqh.js +0 -1171
  118. package/dist/purify.es-C-fIGuQm.js +0 -557
  119. package/dist/vega-loader.browser-IU8eTDwM.js +0 -1333
@@ -1,557 +0,0 @@
1
- var { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object, { freeze, seal, create } = Object, { apply, construct } = typeof Reflect < "u" && Reflect;
2
- freeze || (freeze = function(e) {
3
- return e;
4
- }), seal || (seal = function(e) {
5
- return e;
6
- }), apply || (apply = function(e, t) {
7
- var n = [...arguments].slice(2);
8
- return e.apply(t, n);
9
- }), construct || (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 e2 = i(t);
33
- e2 !== t && (isFrozen(r) || (r[a] = e2), t = e2);
34
- }
35
- e[t] = true;
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 n2 = getOwnPropertyDescriptor(e, t);
51
- if (n2) {
52
- if (n2.get) return unapply(n2.get);
53
- if (typeof n2.value == "function") return unapply(n2.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.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(".")), 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
- text: 3,
148
- progressingInstruction: 7,
149
- comment: 8,
150
- document: 9
151
- }, getGlobal = function() {
152
- return typeof window > "u" ? null : window;
153
- }, _createTrustedTypesPolicy = function(e, t) {
154
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
155
- let n = null, r = "data-tt-policy-suffix";
156
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
157
- let i = "dompurify" + (n ? "#" + n : "");
158
- try {
159
- return e.createPolicy(i, {
160
- createHTML(e2) {
161
- return e2;
162
- },
163
- createScriptURL(e2) {
164
- return e2;
165
- }
166
- });
167
- } catch {
168
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
169
- }
170
- }, _createHooksMap = function() {
171
- return {
172
- afterSanitizeAttributes: [],
173
- afterSanitizeElements: [],
174
- afterSanitizeShadowDOM: [],
175
- beforeSanitizeAttributes: [],
176
- beforeSanitizeElements: [],
177
- beforeSanitizeShadowDOM: [],
178
- uponSanitizeAttribute: [],
179
- uponSanitizeElement: [],
180
- uponSanitizeShadowNode: []
181
- };
182
- };
183
- function createDOMPurify() {
184
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), n = (e) => createDOMPurify(e);
185
- if (n.version = "3.4.0", n.removed = [], !t || !t.document || t.document.nodeType !== NODE_TYPE.document || !t.Element) return n.isSupported = false, n;
186
- 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");
187
- if (typeof l == "function") {
188
- let e = r.createElement("template");
189
- e.content && e.content.ownerDocument && (r = e.content.ownerDocument);
190
- }
191
- let g, _ = "", { implementation: v, createNodeIterator: Ue, createDocumentFragment: We, getElementsByTagName: Ge } = r, { importNode: Ke } = i, y = _createHooksMap();
192
- n.isSupported = typeof entries == "function" && typeof h == "function" && v && v.createHTMLDocument !== void 0;
193
- 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({}, [
194
- ...html$1,
195
- ...svg$1,
196
- ...svgFilters,
197
- ...mathMl$1,
198
- ...text
199
- ]), w = null, et = addToSet({}, [
200
- ...html,
201
- ...svg,
202
- ...mathMl,
203
- ...xml
204
- ]), T = Object.seal(create(null, {
205
- tagNameCheck: {
206
- writable: true,
207
- configurable: false,
208
- enumerable: true,
209
- value: null
210
- },
211
- attributeNameCheck: {
212
- writable: true,
213
- configurable: false,
214
- enumerable: true,
215
- value: null
216
- },
217
- allowCustomizedBuiltInElements: {
218
- writable: true,
219
- configurable: false,
220
- enumerable: true,
221
- value: false
222
- }
223
- })), E = null, D = null, O = Object.seal(create(null, {
224
- tagCheck: {
225
- writable: true,
226
- configurable: false,
227
- enumerable: true,
228
- value: null
229
- },
230
- attributeCheck: {
231
- writable: true,
232
- configurable: false,
233
- enumerable: true,
234
- value: null
235
- }
236
- })), tt = true, k = true, nt = false, rt = true, A = false, j = true, M = false, N = false, P = false, F = false, I = false, L = false, it = true, at = false, ot = true, R = false, z = {}, B = null, st = addToSet({}, [
237
- "annotation-xml",
238
- "audio",
239
- "colgroup",
240
- "desc",
241
- "foreignobject",
242
- "head",
243
- "iframe",
244
- "math",
245
- "mi",
246
- "mn",
247
- "mo",
248
- "ms",
249
- "mtext",
250
- "noembed",
251
- "noframes",
252
- "noscript",
253
- "plaintext",
254
- "script",
255
- "style",
256
- "svg",
257
- "template",
258
- "thead",
259
- "title",
260
- "video",
261
- "xmp"
262
- ]), ct = null, lt = addToSet({}, [
263
- "audio",
264
- "video",
265
- "img",
266
- "source",
267
- "image",
268
- "track"
269
- ]), ut = null, dt = addToSet({}, [
270
- "alt",
271
- "class",
272
- "for",
273
- "id",
274
- "label",
275
- "name",
276
- "pattern",
277
- "placeholder",
278
- "role",
279
- "summary",
280
- "title",
281
- "value",
282
- "style",
283
- "xmlns"
284
- ]), 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 = false, pt = null, mt = addToSet({}, [
285
- V,
286
- H,
287
- U
288
- ], stringToString), G = addToSet({}, [
289
- "mi",
290
- "mo",
291
- "mn",
292
- "ms",
293
- "mtext"
294
- ]), K = addToSet({}, ["annotation-xml"]), ht = addToSet({}, [
295
- "title",
296
- "style",
297
- "font",
298
- "a",
299
- "script"
300
- ]), q = null, gt = ["application/xhtml+xml", "text/html"], J = null, Y = null, _t = r.createElement("form"), vt = function(e) {
301
- return e instanceof RegExp || e instanceof Function;
302
- }, yt = function() {
303
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
304
- if (!(Y && Y === e)) {
305
- 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 : false, tt = e.ALLOW_ARIA_ATTR !== false, k = e.ALLOW_DATA_ATTR !== false, nt = e.ALLOW_UNKNOWN_PROTOCOLS || false, rt = e.ALLOW_SELF_CLOSE_IN_ATTR !== false, A = e.SAFE_FOR_TEMPLATES || false, j = e.SAFE_FOR_XML !== false, M = e.WHOLE_DOCUMENT || false, F = e.RETURN_DOM || false, I = e.RETURN_DOM_FRAGMENT || false, L = e.RETURN_TRUSTED_TYPE || false, P = e.FORCE_BODY || false, it = e.SANITIZE_DOM !== false, at = e.SANITIZE_NAMED_PROPS || false, ot = e.KEEP_CONTENT !== false, R = e.IN_PLACE || false, 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 || create(null), 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 = false), I && (F = true), z && (C = addToSet({}, text), w = create(null), z.html === true && (addToSet(C, html$1), addToSet(w, html)), z.svg === true && (addToSet(C, svg$1), addToSet(w, svg), addToSet(w, xml)), z.svgFilters === true && (addToSet(C, svgFilters), addToSet(w, svg), addToSet(w, xml)), z.mathMl === true && (addToSet(C, mathMl$1), addToSet(w, mathMl), addToSet(w, xml))), O.tagCheck = null, O.attributeCheck = null, 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"] = true), M && addToSet(C, [
306
- "html",
307
- "head",
308
- "body"
309
- ]), C.table && (addToSet(C, ["tbody"]), delete E.tbody), e.TRUSTED_TYPES_POLICY) {
310
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
311
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
312
- g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
313
- } else g === void 0 && (g = _createTrustedTypesPolicy(p, o)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
314
- freeze && freeze(e), Y = e;
315
- }
316
- }, bt = addToSet({}, [
317
- ...svg$1,
318
- ...svgFilters,
319
- ...svgDisallowed
320
- ]), xt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), St = function(e) {
321
- let t2 = h(e);
322
- (!t2 || !t2.tagName) && (t2 = {
323
- namespaceURI: W,
324
- tagName: "template"
325
- });
326
- let n2 = stringToLowerCase(e.tagName), r2 = stringToLowerCase(t2.tagName);
327
- return pt[e.namespaceURI] ? e.namespaceURI === H ? t2.namespaceURI === U ? n2 === "svg" : t2.namespaceURI === V ? n2 === "svg" && (r2 === "annotation-xml" || G[r2]) : !!bt[n2] : e.namespaceURI === V ? t2.namespaceURI === U ? n2 === "math" : t2.namespaceURI === H ? n2 === "math" && K[r2] : !!xt[n2] : e.namespaceURI === U ? t2.namespaceURI === H && !K[r2] || t2.namespaceURI === V && !G[r2] ? false : !xt[n2] && (ht[n2] || !bt[n2]) : !!(q === "application/xhtml+xml" && pt[e.namespaceURI]) : false;
328
- }, X = function(e) {
329
- arrayPush(n.removed, { element: e });
330
- try {
331
- h(e).removeChild(e);
332
- } catch {
333
- Be(e);
334
- }
335
- }, Z = function(e, t2) {
336
- try {
337
- arrayPush(n.removed, {
338
- attribute: t2.getAttributeNode(e),
339
- from: t2
340
- });
341
- } catch {
342
- arrayPush(n.removed, {
343
- attribute: null,
344
- from: t2
345
- });
346
- }
347
- if (t2.removeAttribute(e), e === "is") if (F || I) try {
348
- X(t2);
349
- } catch {
350
- }
351
- else try {
352
- t2.setAttribute(e, "");
353
- } catch {
354
- }
355
- }, Ct = function(e) {
356
- let t2 = null, n2 = null;
357
- if (P) e = "<remove></remove>" + e;
358
- else {
359
- let t3 = stringMatch(e, /^[\r\n\t ]+/);
360
- n2 = t3 && t3[0];
361
- }
362
- q === "application/xhtml+xml" && W === U && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
363
- let i2 = g ? g.createHTML(e) : e;
364
- if (W === U) try {
365
- t2 = new Re().parseFromString(i2, q);
366
- } catch {
367
- }
368
- if (!t2 || !t2.documentElement) {
369
- t2 = v.createDocument(W, "template", null);
370
- try {
371
- t2.documentElement.innerHTML = ft ? _ : i2;
372
- } catch {
373
- }
374
- }
375
- let a = t2.body || t2.documentElement;
376
- return e && n2 && a.insertBefore(r.createTextNode(n2), a.childNodes[0] || null), W === U ? Ge.call(t2, M ? "html" : "body")[0] : M ? t2.documentElement : a;
377
- }, wt = function(e) {
378
- 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);
379
- }, Tt = function(e) {
380
- 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");
381
- }, Q = function(e) {
382
- return typeof d == "function" && e instanceof d;
383
- };
384
- function $(e, t2, r2) {
385
- arrayForEach(e, (e2) => {
386
- e2.call(n, t2, r2, Y);
387
- });
388
- }
389
- let Et = function(e) {
390
- let t2 = null;
391
- if ($(y.beforeSanitizeElements, e, null), Tt(e)) return X(e), true;
392
- let r2 = J(e.nodeName);
393
- if ($(y.uponSanitizeElement, e, {
394
- tagName: r2,
395
- allowedTags: C
396
- }), j && e.hasChildNodes() && !Q(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || j && e.namespaceURI === U && r2 === "style" && Q(e.firstElementChild) || e.nodeType === NODE_TYPE.progressingInstruction || j && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), true;
397
- if (E[r2] || !(O.tagCheck instanceof Function && O.tagCheck(r2)) && !C[r2]) {
398
- if (!E[r2] && Ot(r2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2))) return false;
399
- if (ot && !B[r2]) {
400
- let t3 = h(e) || e.parentNode, n2 = He(e) || e.childNodes;
401
- if (n2 && t3) {
402
- let r3 = n2.length;
403
- for (let i2 = r3 - 1; i2 >= 0; --i2) {
404
- let r4 = ze(n2[i2], true);
405
- r4.__removalCount = (e.__removalCount || 0) + 1, t3.insertBefore(r4, Ve(e));
406
- }
407
- }
408
- }
409
- return X(e), true;
410
- }
411
- return e instanceof Fe && !St(e) || (r2 === "noscript" || r2 === "noembed" || r2 === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), true) : (A && e.nodeType === NODE_TYPE.text && (t2 = e.textContent, arrayForEach([
412
- b,
413
- x,
414
- S
415
- ], (e2) => {
416
- t2 = stringReplace(t2, e2, " ");
417
- }), e.textContent !== t2 && (arrayPush(n.removed, { element: e.cloneNode() }), e.textContent = t2)), $(y.afterSanitizeElements, e, null), false);
418
- }, Dt = function(e, t2, n2) {
419
- if (D[t2] || it && (t2 === "id" || t2 === "name") && (n2 in r || n2 in _t)) return false;
420
- if (!(k && !D[t2] && regExpTest(qe, t2)) && !(tt && regExpTest(Je, t2)) && !(O.attributeCheck instanceof Function && O.attributeCheck(t2, e))) {
421
- if (!w[t2] || D[t2]) {
422
- 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, t2) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(t2, e)) || t2 === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, n2) || T.tagNameCheck instanceof Function && T.tagNameCheck(n2)))) return false;
423
- } else if (!ut[t2] && !regExpTest(Qe, stringReplace(n2, Xe, "")) && !((t2 === "src" || t2 === "xlink:href" || t2 === "href") && e !== "script" && stringIndexOf(n2, "data:") === 0 && ct[e]) && !(nt && !regExpTest(Ye, stringReplace(n2, Xe, ""))) && n2) return false;
424
- }
425
- return true;
426
- }, Ot = function(e) {
427
- return e !== "annotation-xml" && stringMatch(e, Ze);
428
- }, kt = function(e) {
429
- $(y.beforeSanitizeAttributes, e, null);
430
- let { attributes: t2 } = e;
431
- if (!t2 || Tt(e)) return;
432
- let r2 = {
433
- attrName: "",
434
- attrValue: "",
435
- keepAttr: true,
436
- allowedAttributes: w,
437
- forceKeepAttr: void 0
438
- }, i2 = t2.length;
439
- for (; i2--; ) {
440
- let { name: a, namespaceURI: o2, value: s } = t2[i2], c2 = J(a), l2 = s, u = a === "value" ? l2 : stringTrim(l2);
441
- if (r2.attrName = c2, r2.attrValue = u, r2.keepAttr = true, r2.forceKeepAttr = void 0, $(y.uponSanitizeAttribute, e, r2), u = r2.attrValue, at && (c2 === "id" || c2 === "name") && (Z(a, e), u = "user-content-" + u), j && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
442
- Z(a, e);
443
- continue;
444
- }
445
- if (c2 === "attributename" && stringMatch(u, "href")) {
446
- Z(a, e);
447
- continue;
448
- }
449
- if (r2.forceKeepAttr) continue;
450
- if (!r2.keepAttr) {
451
- Z(a, e);
452
- continue;
453
- }
454
- if (!rt && regExpTest(/\/>/i, u)) {
455
- Z(a, e);
456
- continue;
457
- }
458
- A && arrayForEach([
459
- b,
460
- x,
461
- S
462
- ], (e2) => {
463
- u = stringReplace(u, e2, " ");
464
- });
465
- let Pe = J(e.nodeName);
466
- if (!Dt(Pe, c2, u)) {
467
- Z(a, e);
468
- continue;
469
- }
470
- if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !o2) switch (p.getAttributeType(Pe, c2)) {
471
- case "TrustedHTML":
472
- u = g.createHTML(u);
473
- break;
474
- case "TrustedScriptURL":
475
- u = g.createScriptURL(u);
476
- break;
477
- }
478
- if (u !== l2) try {
479
- o2 ? e.setAttributeNS(o2, a, u) : e.setAttribute(a, u), Tt(e) ? X(e) : arrayPop(n.removed);
480
- } catch {
481
- Z(a, e);
482
- }
483
- }
484
- $(y.afterSanitizeAttributes, e, null);
485
- }, At = function(e) {
486
- let t2 = null, n2 = wt(e);
487
- for ($(y.beforeSanitizeShadowDOM, e, null); t2 = n2.nextNode(); ) $(y.uponSanitizeShadowNode, t2, null), Et(t2), kt(t2), t2.content instanceof c && At(t2.content);
488
- $(y.afterSanitizeShadowDOM, e, null);
489
- };
490
- return n.sanitize = function(e) {
491
- let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = null, a = null, o2 = null, s = null;
492
- if (ft = !e, ft && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
493
- if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
494
- } else throw typeErrorCreate("toString is not a function");
495
- if (!n.isSupported) return e;
496
- if (N || yt(t2), n.removed = [], typeof e == "string" && (R = false), R) {
497
- if (e.nodeName) {
498
- let t3 = J(e.nodeName);
499
- if (!C[t3] || E[t3]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
500
- }
501
- } else if (e instanceof d) r2 = Ct("<!---->"), a = r2.ownerDocument.importNode(e, true), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r2 = a : r2.appendChild(a);
502
- else {
503
- if (!F && !A && !M && e.indexOf("<") === -1) return g && L ? g.createHTML(e) : e;
504
- if (r2 = Ct(e), !r2) return F ? null : L ? _ : "";
505
- }
506
- r2 && P && X(r2.firstChild);
507
- let l2 = wt(R ? e : r2);
508
- for (; o2 = l2.nextNode(); ) Et(o2), kt(o2), o2.content instanceof c && At(o2.content);
509
- if (R) return e;
510
- if (F) {
511
- if (A) {
512
- r2.normalize();
513
- let e2 = r2.innerHTML;
514
- arrayForEach([
515
- b,
516
- x,
517
- S
518
- ], (t3) => {
519
- e2 = stringReplace(e2, t3, " ");
520
- }), r2.innerHTML = e2;
521
- }
522
- if (I) for (s = We.call(r2.ownerDocument); r2.firstChild; ) s.appendChild(r2.firstChild);
523
- else s = r2;
524
- return (w.shadowroot || w.shadowrootmode) && (s = Ke.call(i, s, true)), s;
525
- }
526
- let u = M ? r2.outerHTML : r2.innerHTML;
527
- return M && C["!doctype"] && r2.ownerDocument && r2.ownerDocument.doctype && r2.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, r2.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + r2.ownerDocument.doctype.name + ">\n" + u), A && arrayForEach([
528
- b,
529
- x,
530
- S
531
- ], (e2) => {
532
- u = stringReplace(u, e2, " ");
533
- }), g && L ? g.createHTML(u) : u;
534
- }, n.setConfig = function() {
535
- yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = true;
536
- }, n.clearConfig = function() {
537
- Y = null, N = false;
538
- }, n.isValidAttribute = function(e, t2, n2) {
539
- return Y || yt({}), Dt(J(e), J(t2), n2);
540
- }, n.addHook = function(e, t2) {
541
- typeof t2 == "function" && arrayPush(y[e], t2);
542
- }, n.removeHook = function(e, t2) {
543
- if (t2 !== void 0) {
544
- let n2 = arrayLastIndexOf(y[e], t2);
545
- return n2 === -1 ? void 0 : arraySplice(y[e], n2, 1)[0];
546
- }
547
- return arrayPop(y[e]);
548
- }, n.removeHooks = function(e) {
549
- y[e] = [];
550
- }, n.removeAllHooks = function() {
551
- y = _createHooksMap();
552
- }, n;
553
- }
554
- var purify = createDOMPurify();
555
- export {
556
- purify as t
557
- };