@marimo-team/islands 0.23.2-dev42 → 0.23.2-dev47

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 (46) hide show
  1. package/dist/{architectureDiagram-VXUJARFQ-DqqZsWn9.js → architectureDiagram-VXUJARFQ-DapqVf5U.js} +5 -5
  2. package/dist/{blockDiagram-VD42YOAC-46RbsmrR.js → blockDiagram-VD42YOAC-CfD03O_S.js} +5 -5
  3. package/dist/{c4Diagram-YG6GDRKO-DQhd8kxL.js → c4Diagram-YG6GDRKO-14WsB19A.js} +4 -4
  4. package/dist/{channel-DR5iDSyR.js → channel-DkswyS_y.js} +1 -1
  5. package/dist/{chat-ui-D3oNzud1.js → chat-ui-D2Zk7EU6.js} +2 -2
  6. package/dist/{chunk-ABZYJK2D--T2L3L-f.js → chunk-ABZYJK2D-TzeWxQkr.js} +1 -1
  7. package/dist/{chunk-ATLVNIR6-CgKfvd-c.js → chunk-ATLVNIR6-BIyR7hDU.js} +1 -1
  8. package/dist/{chunk-B4BG7PRW-J0s6wAkN.js → chunk-B4BG7PRW-HwU7LyDE.js} +4 -4
  9. package/dist/{chunk-DI55MBZ5-33PvMnN-.js → chunk-DI55MBZ5-BpT6xu0H.js} +4 -4
  10. package/dist/{chunk-EXTU4WIE-BspiJIuJ.js → chunk-EXTU4WIE-XAoEZY7R.js} +1 -1
  11. package/dist/{chunk-JA3XYJ7Z-DCohPV-J.js → chunk-JA3XYJ7Z-B1i4Tfcw.js} +2 -2
  12. package/dist/{chunk-JZLCHNYA-B5kMsVU0.js → chunk-JZLCHNYA-CNdDVlto.js} +4 -4
  13. package/dist/{chunk-N4CR4FBY-DJggWRjm.js → chunk-N4CR4FBY-BTIG-LyN.js} +5 -5
  14. package/dist/{chunk-QN33PNHL-B1NgkDCq.js → chunk-QN33PNHL-Bu0A3trl.js} +1 -1
  15. package/dist/{chunk-QXUST7PY-CpxfBz2U.js → chunk-QXUST7PY-D8Zb-uHT.js} +5 -5
  16. package/dist/{chunk-S3R3BYOJ-DYg3yWKI.js → chunk-S3R3BYOJ-BbDagUDj.js} +1 -1
  17. package/dist/{chunk-TZMSLE5B-JAnY0w_r.js → chunk-TZMSLE5B-Cu-m016X.js} +1 -1
  18. package/dist/{classDiagram-2ON5EDUG-Be541Bqx.js → classDiagram-2ON5EDUG-B3w6nMDy.js} +10 -10
  19. package/dist/{classDiagram-v2-WZHVMYZB-CFtNZ66L.js → classDiagram-v2-WZHVMYZB-F3IQS_LI.js} +10 -10
  20. package/dist/{dagre-6UL2VRFP-On1-AgLm.js → dagre-6UL2VRFP-BGxh7S-e.js} +7 -7
  21. package/dist/{diagram-PSM6KHXK-B2x0d9iz.js → diagram-PSM6KHXK-D7YQAOqL.js} +6 -6
  22. package/dist/{diagram-QEK2KX5R-C6yZT5O0.js → diagram-QEK2KX5R-CCoHDhM3.js} +4 -4
  23. package/dist/{diagram-S2PKOQOG-DDohjXNG.js → diagram-S2PKOQOG-jSHdFOD9.js} +4 -4
  24. package/dist/{erDiagram-Q2GNP2WA-C7-L36q5.js → erDiagram-Q2GNP2WA-C4ngo-A5.js} +10 -10
  25. package/dist/{flowDiagram-NV44I4VS-CJW83FSj.js → flowDiagram-NV44I4VS-BKj8B2cb.js} +10 -10
  26. package/dist/{ganttDiagram-JELNMOA3-CwBjBQUx.js → ganttDiagram-JELNMOA3-D9PIiNqf.js} +3 -3
  27. package/dist/{gitGraphDiagram-V2S2FVAM-CmTxe2C4.js → gitGraphDiagram-V2S2FVAM-g28AnGRX.js} +3 -3
  28. package/dist/{infoDiagram-HS3SLOUP-Dz0ivKcB.js → infoDiagram-HS3SLOUP-C1lXJDxe.js} +3 -3
  29. package/dist/{journeyDiagram-XKPGCS4Q-8XpEA5Ko.js → journeyDiagram-XKPGCS4Q-DbVPB0Tw.js} +3 -3
  30. package/dist/{kanban-definition-3W4ZIXB7-C-sC72Q7.js → kanban-definition-3W4ZIXB7-vHPEznuf.js} +7 -7
  31. package/dist/main.js +5 -5
  32. package/dist/{mermaid-DBH43AFh.js → mermaid-D5eODRf-.js} +36 -36
  33. package/dist/{mindmap-definition-VGOIOE7T-f-YOgrj9.js → mindmap-definition-VGOIOE7T-C-DUBd1V.js} +9 -9
  34. package/dist/{pieDiagram-ADFJNKIX-e7V1zvfH.js → pieDiagram-ADFJNKIX-BHTVSAs4.js} +4 -4
  35. package/dist/{process-output-BWEipdFR.js → process-output-DIDd7H4Z.js} +1 -1
  36. package/dist/{purify.es-ukiMXY-F.js → purify.es-ClMna40y.js} +85 -81
  37. package/dist/{quadrantDiagram-AYHSOK5B-DbJIgiah.js → quadrantDiagram-AYHSOK5B-CWLD0gxi.js} +2 -2
  38. package/dist/{requirementDiagram-UZGBJVZJ-DDTA2gwv.js → requirementDiagram-UZGBJVZJ-G9EKZRw-.js} +9 -9
  39. package/dist/{sankeyDiagram-TZEHDZUN-TOGeZF4f.js → sankeyDiagram-TZEHDZUN-NP6aAxqw.js} +2 -2
  40. package/dist/{sequenceDiagram-WL72ISMW-XZ-vAxdG.js → sequenceDiagram-WL72ISMW-zuvr_4GP.js} +4 -4
  41. package/dist/{stateDiagram-FKZM4ZOC-B72-jYlX.js → stateDiagram-FKZM4ZOC-D4KRQjIA.js} +10 -10
  42. package/dist/{stateDiagram-v2-4FDKWEC3-Up7GUIPl.js → stateDiagram-v2-4FDKWEC3-BPz-4Aaz.js} +10 -10
  43. package/dist/{timeline-definition-IT6M3QCI-CStBX2Oa.js → timeline-definition-IT6M3QCI-CiTBkznn.js} +2 -2
  44. package/dist/{xychartDiagram-PRI3JC2R-DCtrGSHF.js → xychartDiagram-PRI3JC2R-C3c6-1Z6.js} +5 -5
  45. package/package.json +1 -1
  46. package/src/components/editor/file-tree/file-explorer.tsx +1 -0
@@ -124,7 +124,7 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
124
124
  "annotation-xml",
125
125
  "mprescripts",
126
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([
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
128
  "xlink:href",
129
129
  "xml:id",
130
130
  "xlink:title",
@@ -144,17 +144,10 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
144
144
  TMPLIT_EXPR
145
145
  }), NODE_TYPE = {
146
146
  element: 1,
147
- attribute: 2,
148
147
  text: 3,
149
- cdataSection: 4,
150
- entityReference: 5,
151
- entityNode: 6,
152
148
  progressingInstruction: 7,
153
149
  comment: 8,
154
- document: 9,
155
- documentType: 10,
156
- documentFragment: 11,
157
- notation: 12
150
+ document: 9
158
151
  }, getGlobal = function() {
159
152
  return typeof window > "u" ? null : window;
160
153
  }, _createTrustedTypesPolicy = function(e, t) {
@@ -189,7 +182,7 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
189
182
  };
190
183
  function createDOMPurify() {
191
184
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), n = (e) => createDOMPurify(e);
192
- if (n.version = "3.3.2", n.removed = [], !t || !t.document || t.document.nodeType !== NODE_TYPE.document || !t.Element) return n.isSupported = false, n;
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;
193
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");
194
187
  if (typeof l == "function") {
195
188
  let e = r.createElement("template");
@@ -240,7 +233,7 @@ function createDOMPurify() {
240
233
  enumerable: true,
241
234
  value: null
242
235
  }
243
- })), tt = true, k = true, nt = false, rt = true, A = false, j = true, M = false, N = false, it = false, P = false, F = false, I = false, at = true, ot = false, L = true, R = false, z = {}, B = null, V = addToSet({}, [
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({}, [
244
237
  "annotation-xml",
245
238
  "audio",
246
239
  "colgroup",
@@ -266,14 +259,14 @@ function createDOMPurify() {
266
259
  "title",
267
260
  "video",
268
261
  "xmp"
269
- ]), st = null, ct = addToSet({}, [
262
+ ]), ct = null, lt = addToSet({}, [
270
263
  "audio",
271
264
  "video",
272
265
  "img",
273
266
  "source",
274
267
  "image",
275
268
  "track"
276
- ]), lt = null, ut = addToSet({}, [
269
+ ]), ut = null, dt = addToSet({}, [
277
270
  "alt",
278
271
  "class",
279
272
  "for",
@@ -288,28 +281,28 @@ function createDOMPurify() {
288
281
  "value",
289
282
  "style",
290
283
  "xmlns"
291
- ]), H = "http://www.w3.org/1998/Math/MathML", U = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, dt = false, ft = null, pt = addToSet({}, [
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,
292
286
  H,
293
- U,
294
- W
295
- ], stringToString), K = addToSet({}, [
287
+ U
288
+ ], stringToString), G = addToSet({}, [
296
289
  "mi",
297
290
  "mo",
298
291
  "mn",
299
292
  "ms",
300
293
  "mtext"
301
- ]), q = addToSet({}, ["annotation-xml"]), mt = addToSet({}, [
294
+ ]), K = addToSet({}, ["annotation-xml"]), ht = addToSet({}, [
302
295
  "title",
303
296
  "style",
304
297
  "font",
305
298
  "a",
306
299
  "script"
307
- ]), J = null, ht = ["application/xhtml+xml", "text/html"], Y = null, X = null, gt = r.createElement("form"), _t = function(e) {
300
+ ]), q = null, gt = ["application/xhtml+xml", "text/html"], J = null, Y = null, _t = r.createElement("form"), vt = function(e) {
308
301
  return e instanceof RegExp || e instanceof Function;
309
- }, vt = function() {
302
+ }, yt = function() {
310
303
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
311
- if (!(X && X === e)) {
312
- if ((!e || typeof e != "object") && (e = {}), e = clone(e), J = ht.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = J === "application/xhtml+xml" ? stringToString : stringToLowerCase, C = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, Y) : $e, w = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, Y) : et, ft = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : pt, lt = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(ut), e.ADD_URI_SAFE_ATTR, Y) : ut, st = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(ct), e.ADD_DATA_URI_TAGS, Y) : ct, B = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, Y) : V, E = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, Y) : clone({}), D = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, Y) : 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, P = e.RETURN_DOM || false, F = e.RETURN_DOM_FRAGMENT || false, I = e.RETURN_TRUSTED_TYPE || false, it = e.FORCE_BODY || false, at = e.SANITIZE_DOM !== false, ot = e.SANITIZE_NAMED_PROPS || false, L = e.KEEP_CONTENT !== false, R = e.IN_PLACE || false, Qe = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, G = e.NAMESPACE || W, K = e.MATHML_TEXT_INTEGRATION_POINTS || K, q = e.HTML_INTEGRATION_POINTS || q, T = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && _t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && _t(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), F && (P = 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))), objectHasOwnProperty(e, "ADD_TAGS") || (O.tagCheck = null), objectHasOwnProperty(e, "ADD_ATTR") || (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, Y))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? O.attributeCheck = e.ADD_ATTR : (w === et && (w = clone(w)), addToSet(w, e.ADD_ATTR, Y))), e.ADD_URI_SAFE_ATTR && addToSet(lt, e.ADD_URI_SAFE_ATTR, Y), e.FORBID_CONTENTS && (B === V && (B = clone(B)), addToSet(B, e.FORBID_CONTENTS, Y)), e.ADD_FORBID_CONTENTS && (B === V && (B = clone(B)), addToSet(B, e.ADD_FORBID_CONTENTS, Y)), L && (C["#text"] = true), M && addToSet(C, [
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, [
313
306
  "html",
314
307
  "head",
315
308
  "body"
@@ -318,28 +311,28 @@ function createDOMPurify() {
318
311
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
319
312
  g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
320
313
  } else g === void 0 && (g = _createTrustedTypesPolicy(p, o)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
321
- freeze && freeze(e), X = e;
314
+ freeze && freeze(e), Y = e;
322
315
  }
323
- }, yt = addToSet({}, [
316
+ }, bt = addToSet({}, [
324
317
  ...svg$1,
325
318
  ...svgFilters,
326
319
  ...svgDisallowed
327
- ]), bt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), xt = function(e) {
320
+ ]), xt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), St = function(e) {
328
321
  let t2 = h(e);
329
322
  (!t2 || !t2.tagName) && (t2 = {
330
- namespaceURI: G,
323
+ namespaceURI: W,
331
324
  tagName: "template"
332
325
  });
333
326
  let n2 = stringToLowerCase(e.tagName), r2 = stringToLowerCase(t2.tagName);
334
- return ft[e.namespaceURI] ? e.namespaceURI === U ? t2.namespaceURI === W ? n2 === "svg" : t2.namespaceURI === H ? n2 === "svg" && (r2 === "annotation-xml" || K[r2]) : !!yt[n2] : e.namespaceURI === H ? t2.namespaceURI === W ? n2 === "math" : t2.namespaceURI === U ? n2 === "math" && q[r2] : !!bt[n2] : e.namespaceURI === W ? t2.namespaceURI === U && !q[r2] || t2.namespaceURI === H && !K[r2] ? false : !bt[n2] && (mt[n2] || !yt[n2]) : !!(J === "application/xhtml+xml" && ft[e.namespaceURI]) : false;
335
- }, Z = function(e) {
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) {
336
329
  arrayPush(n.removed, { element: e });
337
330
  try {
338
331
  h(e).removeChild(e);
339
332
  } catch {
340
333
  Be(e);
341
334
  }
342
- }, Q = function(e, t2) {
335
+ }, Z = function(e, t2) {
343
336
  try {
344
337
  arrayPush(n.removed, {
345
338
  attribute: t2.getAttributeNode(e),
@@ -351,59 +344,59 @@ function createDOMPurify() {
351
344
  from: t2
352
345
  });
353
346
  }
354
- if (t2.removeAttribute(e), e === "is") if (P || F) try {
355
- Z(t2);
347
+ if (t2.removeAttribute(e), e === "is") if (F || I) try {
348
+ X(t2);
356
349
  } catch {
357
350
  }
358
351
  else try {
359
352
  t2.setAttribute(e, "");
360
353
  } catch {
361
354
  }
362
- }, St = function(e) {
355
+ }, Ct = function(e) {
363
356
  let t2 = null, n2 = null;
364
- if (it) e = "<remove></remove>" + e;
357
+ if (P) e = "<remove></remove>" + e;
365
358
  else {
366
359
  let t3 = stringMatch(e, /^[\r\n\t ]+/);
367
360
  n2 = t3 && t3[0];
368
361
  }
369
- J === "application/xhtml+xml" && G === W && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
362
+ q === "application/xhtml+xml" && W === U && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
370
363
  let i2 = g ? g.createHTML(e) : e;
371
- if (G === W) try {
372
- t2 = new Re().parseFromString(i2, J);
364
+ if (W === U) try {
365
+ t2 = new Re().parseFromString(i2, q);
373
366
  } catch {
374
367
  }
375
368
  if (!t2 || !t2.documentElement) {
376
- t2 = v.createDocument(G, "template", null);
369
+ t2 = v.createDocument(W, "template", null);
377
370
  try {
378
- t2.documentElement.innerHTML = dt ? _ : i2;
371
+ t2.documentElement.innerHTML = ft ? _ : i2;
379
372
  } catch {
380
373
  }
381
374
  }
382
375
  let a = t2.body || t2.documentElement;
383
- return e && n2 && a.insertBefore(r.createTextNode(n2), a.childNodes[0] || null), G === W ? Ge.call(t2, M ? "html" : "body")[0] : M ? t2.documentElement : a;
384
- }, Ct = function(e) {
385
- 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);
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;
386
377
  }, wt = function(e) {
387
- 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");
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);
388
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) {
389
382
  return typeof d == "function" && e instanceof d;
390
383
  };
391
384
  function $(e, t2, r2) {
392
385
  arrayForEach(e, (e2) => {
393
- e2.call(n, t2, r2, X);
386
+ e2.call(n, t2, r2, Y);
394
387
  });
395
388
  }
396
389
  let Et = function(e) {
397
390
  let t2 = null;
398
- if ($(y.beforeSanitizeElements, e, null), wt(e)) return Z(e), true;
399
- let r2 = Y(e.nodeName);
391
+ if ($(y.beforeSanitizeElements, e, null), Tt(e)) return X(e), true;
392
+ let r2 = J(e.nodeName);
400
393
  if ($(y.uponSanitizeElement, e, {
401
394
  tagName: r2,
402
395
  allowedTags: C
403
- }), 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 Z(e), true;
404
- if (!(O.tagCheck instanceof Function && O.tagCheck(r2)) && (!C[r2] || E[r2])) {
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]) {
405
398
  if (!E[r2] && Ot(r2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2))) return false;
406
- if (L && !B[r2]) {
399
+ if (ot && !B[r2]) {
407
400
  let t3 = h(e) || e.parentNode, n2 = He(e) || e.childNodes;
408
401
  if (n2 && t3) {
409
402
  let r3 = n2.length;
@@ -413,9 +406,9 @@ function createDOMPurify() {
413
406
  }
414
407
  }
415
408
  }
416
- return Z(e), true;
409
+ return X(e), true;
417
410
  }
418
- return e instanceof Fe && !xt(e) || (r2 === "noscript" || r2 === "noembed" || r2 === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Z(e), true) : (A && e.nodeType === NODE_TYPE.text && (t2 = e.textContent, arrayForEach([
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([
419
412
  b,
420
413
  x,
421
414
  S
@@ -423,11 +416,11 @@ function createDOMPurify() {
423
416
  t2 = stringReplace(t2, e2, " ");
424
417
  }), e.textContent !== t2 && (arrayPush(n.removed, { element: e.cloneNode() }), e.textContent = t2)), $(y.afterSanitizeElements, e, null), false);
425
418
  }, Dt = function(e, t2, n2) {
426
- if (D[t2] || at && (t2 === "id" || t2 === "name") && (n2 in r || n2 in gt)) return false;
419
+ if (D[t2] || it && (t2 === "id" || t2 === "name") && (n2 in r || n2 in _t)) return false;
427
420
  if (!(k && !D[t2] && regExpTest(qe, t2)) && !(tt && regExpTest(Je, t2)) && !(O.attributeCheck instanceof Function && O.attributeCheck(t2, e))) {
428
421
  if (!w[t2] || D[t2]) {
429
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;
430
- } else if (!lt[t2] && !regExpTest(Qe, stringReplace(n2, Xe, "")) && !((t2 === "src" || t2 === "xlink:href" || t2 === "href") && e !== "script" && stringIndexOf(n2, "data:") === 0 && st[e]) && !(nt && !regExpTest(Ye, stringReplace(n2, Xe, ""))) && 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;
431
424
  }
432
425
  return true;
433
426
  }, Ot = function(e) {
@@ -435,7 +428,7 @@ function createDOMPurify() {
435
428
  }, kt = function(e) {
436
429
  $(y.beforeSanitizeAttributes, e, null);
437
430
  let { attributes: t2 } = e;
438
- if (!t2 || wt(e)) return;
431
+ if (!t2 || Tt(e)) return;
439
432
  let r2 = {
440
433
  attrName: "",
441
434
  attrValue: "",
@@ -444,22 +437,22 @@ function createDOMPurify() {
444
437
  forceKeepAttr: void 0
445
438
  }, i2 = t2.length;
446
439
  for (; i2--; ) {
447
- let { name: a, namespaceURI: o2, value: s } = t2[i2], c2 = Y(a), l2 = s, u = a === "value" ? l2 : stringTrim(l2);
448
- if (r2.attrName = c2, r2.attrValue = u, r2.keepAttr = true, r2.forceKeepAttr = void 0, $(y.uponSanitizeAttribute, e, r2), u = r2.attrValue, ot && (c2 === "id" || c2 === "name") && (Q(a, e), u = "user-content-" + u), j && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
449
- Q(a, e);
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);
450
443
  continue;
451
444
  }
452
445
  if (c2 === "attributename" && stringMatch(u, "href")) {
453
- Q(a, e);
446
+ Z(a, e);
454
447
  continue;
455
448
  }
456
449
  if (r2.forceKeepAttr) continue;
457
450
  if (!r2.keepAttr) {
458
- Q(a, e);
451
+ Z(a, e);
459
452
  continue;
460
453
  }
461
454
  if (!rt && regExpTest(/\/>/i, u)) {
462
- Q(a, e);
455
+ Z(a, e);
463
456
  continue;
464
457
  }
465
458
  A && arrayForEach([
@@ -469,9 +462,9 @@ function createDOMPurify() {
469
462
  ], (e2) => {
470
463
  u = stringReplace(u, e2, " ");
471
464
  });
472
- let Pe = Y(e.nodeName);
465
+ let Pe = J(e.nodeName);
473
466
  if (!Dt(Pe, c2, u)) {
474
- Q(a, e);
467
+ Z(a, e);
475
468
  continue;
476
469
  }
477
470
  if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !o2) switch (p.getAttributeType(Pe, c2)) {
@@ -483,39 +476,50 @@ function createDOMPurify() {
483
476
  break;
484
477
  }
485
478
  if (u !== l2) try {
486
- o2 ? e.setAttributeNS(o2, a, u) : e.setAttribute(a, u), wt(e) ? Z(e) : arrayPop(n.removed);
479
+ o2 ? e.setAttributeNS(o2, a, u) : e.setAttribute(a, u), Tt(e) ? X(e) : arrayPop(n.removed);
487
480
  } catch {
488
- Q(a, e);
481
+ Z(a, e);
489
482
  }
490
483
  }
491
484
  $(y.afterSanitizeAttributes, e, null);
492
- }, At = function e(t2) {
493
- let n2 = null, r2 = Ct(t2);
494
- for ($(y.beforeSanitizeShadowDOM, t2, null); n2 = r2.nextNode(); ) $(y.uponSanitizeShadowNode, n2, null), Et(n2), kt(n2), n2.content instanceof c && e(n2.content);
495
- $(y.afterSanitizeShadowDOM, t2, 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);
496
489
  };
497
490
  return n.sanitize = function(e) {
498
491
  let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = null, a = null, o2 = null, s = null;
499
- if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
492
+ if (ft = !e, ft && (e = "<!-->"), typeof e != "string" && !Q(e)) if (typeof e.toString == "function") {
500
493
  if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
501
494
  } else throw typeErrorCreate("toString is not a function");
502
495
  if (!n.isSupported) return e;
503
- if (N || vt(t2), n.removed = [], typeof e == "string" && (R = false), R) {
496
+ if (N || yt(t2), n.removed = [], typeof e == "string" && (R = false), R) {
504
497
  if (e.nodeName) {
505
- let t3 = Y(e.nodeName);
498
+ let t3 = J(e.nodeName);
506
499
  if (!C[t3] || E[t3]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
507
500
  }
508
- } else if (e instanceof d) r2 = St("<!---->"), a = r2.ownerDocument.importNode(e, true), a.nodeType === NODE_TYPE.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? r2 = a : r2.appendChild(a);
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);
509
502
  else {
510
- if (!P && !A && !M && e.indexOf("<") === -1) return g && I ? g.createHTML(e) : e;
511
- if (r2 = St(e), !r2) return P ? null : I ? _ : "";
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 ? _ : "";
512
505
  }
513
- r2 && it && Z(r2.firstChild);
514
- let l2 = Ct(R ? e : r2);
506
+ r2 && P && X(r2.firstChild);
507
+ let l2 = wt(R ? e : r2);
515
508
  for (; o2 = l2.nextNode(); ) Et(o2), kt(o2), o2.content instanceof c && At(o2.content);
516
509
  if (R) return e;
517
- if (P) {
518
- if (F) for (s = We.call(r2.ownerDocument); r2.firstChild; ) s.appendChild(r2.firstChild);
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);
519
523
  else s = r2;
520
524
  return (w.shadowroot || w.shadowrootmode) && (s = Ke.call(i, s, true)), s;
521
525
  }
@@ -526,13 +530,13 @@ function createDOMPurify() {
526
530
  S
527
531
  ], (e2) => {
528
532
  u = stringReplace(u, e2, " ");
529
- }), g && I ? g.createHTML(u) : u;
533
+ }), g && L ? g.createHTML(u) : u;
530
534
  }, n.setConfig = function() {
531
- vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = true;
535
+ yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = true;
532
536
  }, n.clearConfig = function() {
533
- X = null, N = false;
537
+ Y = null, N = false;
534
538
  }, n.isValidAttribute = function(e, t2, n2) {
535
- return X || vt({}), Dt(Y(e), Y(t2), n2);
539
+ return Y || yt({}), Dt(J(e), J(t2), n2);
536
540
  }, n.addHook = function(e, t2) {
537
541
  typeof t2 == "function" && arrayPush(y[e], t2);
538
542
  }, n.removeHook = function(e, t2) {
@@ -1,9 +1,9 @@
1
1
  var _a, _b;
2
- import "./purify.es-ukiMXY-F.js";
2
+ import "./purify.es-ClMna40y.js";
3
3
  import { t as linear } from "./linear-CJ6ctpF3.js";
4
4
  import "./defaultLocale-DjFHq3Xk.js";
5
5
  import { i as log, r as __name, t as select_default } from "./src-szye8OCw.js";
6
- import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D--T2L3L-f.js";
6
+ import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-TzeWxQkr.js";
7
7
  var parser = (function() {
8
8
  var e = /* @__PURE__ */ __name(function(e2, t2, n, r2) {
9
9
  for (n || (n = {}), r2 = e2.length; r2--; n[e2[r2]] = t2) ;
@@ -1,18 +1,18 @@
1
1
  var _a;
2
- import "./purify.es-ukiMXY-F.js";
3
- import { g as utils_default } from "./chunk-S3R3BYOJ-DYg3yWKI.js";
2
+ import "./purify.es-ClMna40y.js";
3
+ import { g as utils_default } from "./chunk-S3R3BYOJ-BbDagUDj.js";
4
4
  import { i as log, n as __export, r as __name } from "./src-szye8OCw.js";
5
- import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D--T2L3L-f.js";
5
+ import { B as setAccTitle, C as getDiagramTitle, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-TzeWxQkr.js";
6
6
  import "./chunk-HN2XXSSU-GC9oeSst.js";
7
7
  import "./chunk-CVBHYZKI-DqdOZevv.js";
8
- import "./chunk-ATLVNIR6-CgKfvd-c.js";
8
+ import "./chunk-ATLVNIR6-BIyR7hDU.js";
9
9
  import "./dist-CqR8FBcH.js";
10
- import "./chunk-JA3XYJ7Z-DCohPV-J.js";
11
- import "./chunk-JZLCHNYA-B5kMsVU0.js";
12
- import "./chunk-QXUST7PY-CpxfBz2U.js";
13
- import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-DJggWRjm.js";
10
+ import "./chunk-JA3XYJ7Z-B1i4Tfcw.js";
11
+ import "./chunk-JZLCHNYA-CNdDVlto.js";
12
+ import "./chunk-QXUST7PY-D8Zb-uHT.js";
13
+ import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-BTIG-LyN.js";
14
14
  import { t as getDiagramElement } from "./chunk-55IACEB6-wWyiO7Qo.js";
15
- import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-B1NgkDCq.js";
15
+ import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-Bu0A3trl.js";
16
16
  var parser = (function() {
17
17
  var e = /* @__PURE__ */ __name(function(e2, t2, n2, r) {
18
18
  for (n2 || (n2 = {}), r = e2.length; r--; n2[e2[r]] = t2) ;
@@ -1,9 +1,9 @@
1
1
  var _a, _b, _c;
2
- import "./purify.es-ukiMXY-F.js";
2
+ import "./purify.es-ClMna40y.js";
3
3
  import { n as ordinal } from "./ordinal-COPPjmMz.js";
4
4
  import { t as colors_default } from "./colors-6DRQ0kEF.js";
5
5
  import { r as __name, t as select_default } from "./src-szye8OCw.js";
6
- import { B as setAccTitle, C as getDiagramTitle, G as setupGraphViewbox, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, u as defaultConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D--T2L3L-f.js";
6
+ import { B as setAccTitle, C as getDiagramTitle, G as setupGraphViewbox, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, u as defaultConfig2, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-TzeWxQkr.js";
7
7
  var Tableau10_default = colors_default("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
8
8
  function max(t, l) {
9
9
  let u;
@@ -1,11 +1,11 @@
1
1
  var _a;
2
- import "./purify.es-ukiMXY-F.js";
3
- import { g as utils_default, p as parseFontSize, t as ZERO_WIDTH_SPACE } from "./chunk-S3R3BYOJ-DYg3yWKI.js";
2
+ import "./purify.es-ClMna40y.js";
3
+ import { g as utils_default, p as parseFontSize, t as ZERO_WIDTH_SPACE } from "./chunk-S3R3BYOJ-BbDagUDj.js";
4
4
  import { i as log, r as __name, t as select_default } from "./src-szye8OCw.js";
5
- import { B as setAccTitle, C as getDiagramTitle, E as getUrl, H as setConfig2, I as sanitizeText, N as renderKatexSanitized, O as hasKatex, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, i as calculateMathMLDimensions, r as assignWithDepth_default, s as common_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D--T2L3L-f.js";
5
+ import { B as setAccTitle, C as getDiagramTitle, E as getUrl, H as setConfig2, I as sanitizeText, N as renderKatexSanitized, O as hasKatex, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, c as configureSvgSize, i as calculateMathMLDimensions, r as assignWithDepth_default, s as common_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-TzeWxQkr.js";
6
6
  import { n as load, t as JSON_SCHEMA } from "./chunk-MI3HLSF2-CAUClZTk.js";
7
7
  import { t as require_dist } from "./dist-CqR8FBcH.js";
8
- import { i as drawRect, n as drawEmbeddedImage, o as getNoteRect, r as drawImage, s as getTextObj, t as drawBackgroundRect } from "./chunk-TZMSLE5B-JAnY0w_r.js";
8
+ import { i as drawRect, n as drawEmbeddedImage, o as getNoteRect, r as drawImage, s as getTextObj, t as drawBackgroundRect } from "./chunk-TZMSLE5B-Cu-m016X.js";
9
9
  import { t as ImperativeState } from "./chunk-QZHKN3VN-cTJMhkeY.js";
10
10
  var import_dist = require_dist(), parser = (function() {
11
11
  var t = /* @__PURE__ */ __name(function(t2, l2, u2, d2) {
@@ -1,22 +1,22 @@
1
1
  import { t as layout } from "./dagre-Bc6NAu6c.js";
2
2
  import { t as Graph } from "./graphlib-DTP9cqCT.js";
3
- import "./purify.es-ukiMXY-F.js";
3
+ import "./purify.es-ClMna40y.js";
4
4
  import { _ as basis_default } from "./step-1PmBKr2y.js";
5
5
  import { t as line_default } from "./line-LK_5q2B9.js";
6
- import { g as utils_default } from "./chunk-S3R3BYOJ-DYg3yWKI.js";
6
+ import { g as utils_default } from "./chunk-S3R3BYOJ-BbDagUDj.js";
7
7
  import { i as log, r as __name, t as select_default } from "./src-szye8OCw.js";
8
- import { E as getUrl, b as getConfig2, c as configureSvgSize, s as common_default } from "./chunk-ABZYJK2D--T2L3L-f.js";
8
+ import { E as getUrl, b as getConfig2, c as configureSvgSize, s as common_default } from "./chunk-ABZYJK2D-TzeWxQkr.js";
9
9
  import "./chunk-HN2XXSSU-GC9oeSst.js";
10
10
  import "./chunk-CVBHYZKI-DqdOZevv.js";
11
- import "./chunk-ATLVNIR6-CgKfvd-c.js";
11
+ import "./chunk-ATLVNIR6-BIyR7hDU.js";
12
12
  import "./dist-CqR8FBcH.js";
13
- import "./chunk-JA3XYJ7Z-DCohPV-J.js";
14
- import "./chunk-JZLCHNYA-B5kMsVU0.js";
15
- import "./chunk-QXUST7PY-CpxfBz2U.js";
16
- import "./chunk-N4CR4FBY-DJggWRjm.js";
13
+ import "./chunk-JA3XYJ7Z-B1i4Tfcw.js";
14
+ import "./chunk-JZLCHNYA-CNdDVlto.js";
15
+ import "./chunk-QXUST7PY-D8Zb-uHT.js";
16
+ import "./chunk-N4CR4FBY-BTIG-LyN.js";
17
17
  import "./chunk-55IACEB6-wWyiO7Qo.js";
18
- import "./chunk-QN33PNHL-B1NgkDCq.js";
19
- import { i as styles_default, n as stateDiagram_default, t as StateDB } from "./chunk-DI55MBZ5-33PvMnN-.js";
18
+ import "./chunk-QN33PNHL-Bu0A3trl.js";
19
+ import { i as styles_default, n as stateDiagram_default, t as StateDB } from "./chunk-DI55MBZ5-BpT6xu0H.js";
20
20
  var drawStartState = /* @__PURE__ */ __name((e) => e.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState"), drawDivider = /* @__PURE__ */ __name((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), drawSimpleState = /* @__PURE__ */ __name((e, h) => {
21
21
  let g = e.append("text").attr("x", 2 * getConfig2().state.padding).attr("y", getConfig2().state.textHeight + 2 * getConfig2().state.padding).attr("font-size", getConfig2().state.fontSize).attr("class", "state-title").text(h.id), _ = g.node().getBBox();
22
22
  return e.insert("rect", ":first-child").attr("x", getConfig2().state.padding).attr("y", getConfig2().state.padding).attr("width", _.width + 2 * getConfig2().state.padding).attr("height", _.height + 2 * getConfig2().state.padding).attr("rx", getConfig2().state.radius), g;
@@ -1,18 +1,18 @@
1
- import "./purify.es-ukiMXY-F.js";
2
- import "./chunk-S3R3BYOJ-DYg3yWKI.js";
1
+ import "./purify.es-ClMna40y.js";
2
+ import "./chunk-S3R3BYOJ-BbDagUDj.js";
3
3
  import { r as __name } from "./src-szye8OCw.js";
4
- import "./chunk-ABZYJK2D--T2L3L-f.js";
4
+ import "./chunk-ABZYJK2D-TzeWxQkr.js";
5
5
  import "./chunk-HN2XXSSU-GC9oeSst.js";
6
6
  import "./chunk-CVBHYZKI-DqdOZevv.js";
7
- import "./chunk-ATLVNIR6-CgKfvd-c.js";
7
+ import "./chunk-ATLVNIR6-BIyR7hDU.js";
8
8
  import "./dist-CqR8FBcH.js";
9
- import "./chunk-JA3XYJ7Z-DCohPV-J.js";
10
- import "./chunk-JZLCHNYA-B5kMsVU0.js";
11
- import "./chunk-QXUST7PY-CpxfBz2U.js";
12
- import "./chunk-N4CR4FBY-DJggWRjm.js";
9
+ import "./chunk-JA3XYJ7Z-B1i4Tfcw.js";
10
+ import "./chunk-JZLCHNYA-CNdDVlto.js";
11
+ import "./chunk-QXUST7PY-D8Zb-uHT.js";
12
+ import "./chunk-N4CR4FBY-BTIG-LyN.js";
13
13
  import "./chunk-55IACEB6-wWyiO7Qo.js";
14
- import "./chunk-QN33PNHL-B1NgkDCq.js";
15
- import { i as styles_default, n as stateDiagram_default, r as stateRenderer_v3_unified_default, t as StateDB } from "./chunk-DI55MBZ5-33PvMnN-.js";
14
+ import "./chunk-QN33PNHL-Bu0A3trl.js";
15
+ import { i as styles_default, n as stateDiagram_default, r as stateRenderer_v3_unified_default, t as StateDB } from "./chunk-DI55MBZ5-BpT6xu0H.js";
16
16
  var diagram = {
17
17
  parser: stateDiagram_default,
18
18
  get db() {
@@ -1,7 +1,7 @@
1
- import "./purify.es-ukiMXY-F.js";
1
+ import "./purify.es-ClMna40y.js";
2
2
  import { t as arc_default } from "./arc-CEWBr4jc.js";
3
3
  import { i as log, n as __export, r as __name, t as select_default } from "./src-szye8OCw.js";
4
- import { G as setupGraphViewbox, Q as is_dark_default, X as darken_default, Z as lighten_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D--T2L3L-f.js";
4
+ import { G as setupGraphViewbox, Q as is_dark_default, X as darken_default, Z as lighten_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D-TzeWxQkr.js";
5
5
  var parser = (function() {
6
6
  var t = /* @__PURE__ */ __name(function(t2, S2, C2, w) {
7
7
  for (C2 || (C2 = {}), w = t2.length; w--; C2[t2[w]] = S2) ;
@@ -1,17 +1,17 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2
- import "./purify.es-ukiMXY-F.js";
2
+ import "./purify.es-ClMna40y.js";
3
3
  import { t as linear } from "./linear-CJ6ctpF3.js";
4
4
  import { n as ordinal } from "./ordinal-COPPjmMz.js";
5
5
  import { t as range } from "./range-DwpxnYuB.js";
6
6
  import "./defaultLocale-DjFHq3Xk.js";
7
7
  import { t as line_default } from "./line-LK_5q2B9.js";
8
- import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-DYg3yWKI.js";
8
+ import { i as cleanAndMerge } from "./chunk-S3R3BYOJ-BbDagUDj.js";
9
9
  import { n as initRange } from "./init-BfRhston.js";
10
10
  import { i as log, r as __name } from "./src-szye8OCw.js";
11
- import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D--T2L3L-f.js";
12
- import { t as selectSvgElement } from "./chunk-EXTU4WIE-BspiJIuJ.js";
11
+ import { B as setAccTitle, C as getDiagramTitle, I as sanitizeText, T as getThemeVariables3, U as setDiagramTitle, _ as getAccDescription, a as clear, c as configureSvgSize, d as defaultConfig_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-TzeWxQkr.js";
12
+ import { t as selectSvgElement } from "./chunk-EXTU4WIE-XAoEZY7R.js";
13
13
  import "./dist-CqR8FBcH.js";
14
- import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-DCohPV-J.js";
14
+ import { t as computeDimensionOfText } from "./chunk-JA3XYJ7Z-B1i4Tfcw.js";
15
15
  function band() {
16
16
  var e = ordinal().unknown(void 0), w = e.domain, T = e.range, D = 0, O = 1, k, A, j = false, M = 0, N = 0, P = 0.5;
17
17
  delete e.unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.23.2-dev42",
3
+ "version": "0.23.2-dev47",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -381,6 +381,7 @@ const Show = ({
381
381
  {node.data.name}
382
382
  {node.data.isMarimoFile && !isWasm() && (
383
383
  <span
384
+ data-testid="file-explorer-open-marimo-button"
384
385
  className="shrink-0 ml-2 text-sm hidden group-hover:inline hover:underline"
385
386
  onClick={onOpenMarimoFile}
386
387
  >