@marimo-team/islands 0.20.5-dev5 → 0.20.5-dev51

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 (169) hide show
  1. package/dist/{Combination-Du-o_hC9.js → Combination-Dk6JxauT.js} +1 -1
  2. package/dist/{ConnectedDataExplorerComponent-DUS-zJoR.js → ConnectedDataExplorerComponent-B07FkeWC.js} +10 -10
  3. package/dist/{any-language-editor-BL9o7y0_.js → any-language-editor-BIj11a2e.js} +19 -19
  4. package/dist/{architectureDiagram-VXUJARFQ-DrJeyFHq.js → architectureDiagram-VXUJARFQ-IZt4NuSd.js} +5 -5
  5. package/dist/{blockDiagram-VD42YOAC-BJrP6qKc.js → blockDiagram-VD42YOAC-mhFHC3Ty.js} +5 -5
  6. package/dist/{button-KYalaJYu.js → button-DQpBib29.js} +24 -11
  7. package/dist/{c4Diagram-YG6GDRKO-Bo4gytQ5.js → c4Diagram-YG6GDRKO-BzStmvfT.js} +4 -4
  8. package/dist/{channel-IWLGkaBE.js → channel-CUFaIkTh.js} +1 -1
  9. package/dist/{check-C50jsehH.js → check-DpqPQmzz.js} +1 -1
  10. package/dist/{chunk-ABZYJK2D-CRwanrkd.js → chunk-ABZYJK2D-7QYXAAhe.js} +1 -1
  11. package/dist/{chunk-ATLVNIR6-CMMCMvOK.js → chunk-ATLVNIR6-pmHPAPSd.js} +1 -1
  12. package/dist/{chunk-B4BG7PRW-BNsHrGHG.js → chunk-B4BG7PRW-C9mfKT9i.js} +4 -4
  13. package/dist/{chunk-DI55MBZ5-DQeYbfMV.js → chunk-DI55MBZ5-IKrK49rX.js} +4 -4
  14. package/dist/{chunk-EXTU4WIE-CV_DQeaX.js → chunk-EXTU4WIE-BRFl4iNd.js} +1 -1
  15. package/dist/{chunk-JA3XYJ7Z-Cmt--e0q.js → chunk-JA3XYJ7Z-C9q_MXZQ.js} +2 -2
  16. package/dist/{chunk-JZLCHNYA-CkyMJnI9.js → chunk-JZLCHNYA-DVjoFib5.js} +4 -4
  17. package/dist/{chunk-N4CR4FBY-BJfHtJbD.js → chunk-N4CR4FBY-BYr5N5mX.js} +5 -5
  18. package/dist/{chunk-QN33PNHL-WOLIPUAJ.js → chunk-QN33PNHL-CXfJywHv.js} +1 -1
  19. package/dist/{chunk-QXUST7PY-DYuD50pU.js → chunk-QXUST7PY-YO0PM8b3.js} +5 -5
  20. package/dist/{chunk-S3R3BYOJ-CsnX6RKs.js → chunk-S3R3BYOJ-DgI4FlvW.js} +1 -1
  21. package/dist/{chunk-TZMSLE5B-B3eYTGCw.js → chunk-TZMSLE5B-DSfBOnzx.js} +1 -1
  22. package/dist/{classDiagram-2ON5EDUG-C7C-oefv.js → classDiagram-2ON5EDUG-CvpnTWzz.js} +10 -10
  23. package/dist/{classDiagram-v2-WZHVMYZB-UTw37Gg8.js → classDiagram-v2-WZHVMYZB-DEQrBHLI.js} +10 -10
  24. package/dist/{copy-oc-FcZzt.js → copy-BkBF0Xgk.js} +2 -2
  25. package/dist/{dagre-6UL2VRFP-BgsUhJrV.js → dagre-6UL2VRFP-DC-emrm5.js} +7 -7
  26. package/dist/{diagram-PSM6KHXK-BIUUOfKo.js → diagram-PSM6KHXK-BAgNlpL8.js} +6 -6
  27. package/dist/{diagram-QEK2KX5R-BFjolZQv.js → diagram-QEK2KX5R-BM7QE5WA.js} +4 -4
  28. package/dist/{diagram-S2PKOQOG-4jfkWoZw.js → diagram-S2PKOQOG-qs4mB1gW.js} +4 -4
  29. package/dist/dist-B4MxkKHf.js +8 -0
  30. package/dist/{dist-De9X_Des.js → dist-B9EjSb9T.js} +1 -1
  31. package/dist/{dist-IW_ARJ3S.js → dist-BFxYppVR.js} +4 -4
  32. package/dist/{dist-D7ZGWV_9.js → dist-BGZ7TWS9.js} +3 -3
  33. package/dist/{dist-CwtEWuFb.js → dist-BSfYc7vq.js} +2 -2
  34. package/dist/{dist-DMS81OrU.js → dist-BUrWeMEP.js} +1 -1
  35. package/dist/dist-BYghZv6b.js +5 -0
  36. package/dist/dist-Be-uQhz5.js +6 -0
  37. package/dist/{dist-Ch_JuCvc.js → dist-BpMlUdNO.js} +3 -3
  38. package/dist/{dist-C6z8U-ms.js → dist-Bq5eYK43.js} +2 -2
  39. package/dist/{dist-BFL9TlzD.js → dist-Bq9zYwJs.js} +5 -5
  40. package/dist/{dist-7ZF--V_D.js → dist-C4K7pumm.js} +2 -2
  41. package/dist/{dist-Qjf6pcqK.js → dist-CAKwXCWI.js} +2 -2
  42. package/dist/dist-CB_xf0ju.js +5 -0
  43. package/dist/{dist-BwQHkjA9.js → dist-CDHl2i1x.js} +4 -4
  44. package/dist/dist-CK0qFAbF.js +8 -0
  45. package/dist/{dist-C4XMUaob.js → dist-CPlGUbk-.js} +2 -2
  46. package/dist/{dist-BT6_J2eq.js → dist-CSEWGuDq.js} +7 -2
  47. package/dist/dist-CYEk-qrr.js +8 -0
  48. package/dist/{dist-CYo3w-nC.js → dist-Cl5iM8xL.js} +3 -3
  49. package/dist/dist-CmKoWpMk.js +5 -0
  50. package/dist/{dist-I8MQW60_.js → dist-CseYuPtL.js} +2 -2
  51. package/dist/dist-D1nf4IQl.js +5 -0
  52. package/dist/{dist-CsqiXw7J.js → dist-D4gcY469.js} +2 -2
  53. package/dist/{dist-DUxS2paD.js → dist-D5NMgbbv.js} +2 -2
  54. package/dist/{dist-UYm1IE5s.js → dist-DERtJN02.js} +2 -2
  55. package/dist/{dist-CFToYDWO.js → dist-DEj2X26M.js} +2 -2
  56. package/dist/{dist-BuapEdlD.js → dist-DOoqn-VL.js} +70 -67
  57. package/dist/{dist-BLThQiU4.js → dist-DUretbKK.js} +2 -2
  58. package/dist/{dist-DEFZ7dnD.js → dist-D_-CGmlh.js} +2 -2
  59. package/dist/dist-Df3AcKpt.js +6 -0
  60. package/dist/dist-DgaFHt_I.js +5 -0
  61. package/dist/dist-Dk10C3ui.js +5 -0
  62. package/dist/{dist-D0f6Yrrb.js → dist-DodLQWPg.js} +1 -1
  63. package/dist/dist-DtyPVMHR.js +5 -0
  64. package/dist/{dist-Cb3cLT39.js → dist-HoZO6brh.js} +2 -2
  65. package/dist/{dist-Cqpjy6bK.js → dist-RNGn_-uD.js} +1 -1
  66. package/dist/{dist-BBcqvpvP.js → dist-Ux6dL_VB.js} +1 -1
  67. package/dist/{dist-B8Y11RWn.js → dist-WIWVvdBh.js} +2 -2
  68. package/dist/{dist-CB6qhQ8K.js → dist-gc9KgJuA.js} +1 -1
  69. package/dist/{dist-ovDpXuSB.js → dist-i-ud9aCA.js} +1 -1
  70. package/dist/dist-ko7WnHAO.js +5 -0
  71. package/dist/{dist-BTQbjEKU.js → dist-lNe4i1Nm.js} +1 -1
  72. package/dist/dist-of7gLRFK.js +8 -0
  73. package/dist/{erDiagram-Q2GNP2WA-Cq5Bz5lG.js → erDiagram-Q2GNP2WA-Dh5nhgY3.js} +10 -10
  74. package/dist/{error-banner-D0tXnwl4.js → error-banner-BctofTCP.js} +2 -2
  75. package/dist/{esm-BxMbHo0y.js → esm-BBkPJL8N.js} +29 -27
  76. package/dist/{flowDiagram-NV44I4VS-6WPJVFl7.js → flowDiagram-NV44I4VS-ChR1Vbmj.js} +10 -10
  77. package/dist/{ganttDiagram-JELNMOA3-AfDhh9CI.js → ganttDiagram-JELNMOA3-sK0z-5KM.js} +3 -3
  78. package/dist/{gitGraphDiagram-V2S2FVAM-BRSwuj0Q.js → gitGraphDiagram-V2S2FVAM-9S1VqQrL.js} +3 -3
  79. package/dist/{glide-data-editor-ByPNTNVG.js → glide-data-editor-DI5VFwRB.js} +63 -63
  80. package/dist/{infoDiagram-HS3SLOUP-Cmxo6jKx.js → infoDiagram-HS3SLOUP-C5A8b-2O.js} +3 -3
  81. package/dist/{journeyDiagram-XKPGCS4Q-CKYr8cSR.js → journeyDiagram-XKPGCS4Q-D5BIjS4N.js} +3 -3
  82. package/dist/{kanban-definition-3W4ZIXB7-DVvAZzQD.js → kanban-definition-3W4ZIXB7-C1vZZabj.js} +7 -7
  83. package/dist/{label-CV0KYhtH.js → label-Cx28eo0O.js} +5 -5
  84. package/dist/{loader-eJCvvApN.js → loader-C62dRCuy.js} +1 -1
  85. package/dist/main.js +1542 -1072
  86. package/dist/{mermaid-COOB_abB.js → mermaid-BgeZPIms.js} +41 -41
  87. package/dist/{mindmap-definition-VGOIOE7T-1ExmnvYy.js → mindmap-definition-VGOIOE7T-Cn9_H_5f.js} +9 -9
  88. package/dist/{pieDiagram-ADFJNKIX-CJlIsdsU.js → pieDiagram-ADFJNKIX-iA0mvRW9.js} +4 -4
  89. package/dist/{purify.es-CyOIw8ru.js → purify.es-DGenX2XH.js} +67 -67
  90. package/dist/{quadrantDiagram-AYHSOK5B-BU78RiaH.js → quadrantDiagram-AYHSOK5B-CAcVWXc-.js} +2 -2
  91. package/dist/{requirementDiagram-UZGBJVZJ-DACHtrFr.js → requirementDiagram-UZGBJVZJ-1HxQ6I5Z.js} +9 -9
  92. package/dist/{sankeyDiagram-TZEHDZUN-Bzg7_UWs.js → sankeyDiagram-TZEHDZUN-BVJnR4_b.js} +2 -2
  93. package/dist/{sequenceDiagram-WL72ISMW-agybEe9J.js → sequenceDiagram-WL72ISMW-ByirOtHb.js} +4 -4
  94. package/dist/{slides-component-B0yK5GXP.js → slides-component-DwvL_HJi.js} +2 -2
  95. package/dist/{spec-Dq_reDGM.js → spec-B8V2Bcbi.js} +4 -4
  96. package/dist/{stateDiagram-FKZM4ZOC-DehQAt8g.js → stateDiagram-FKZM4ZOC-DrYNXdQr.js} +10 -10
  97. package/dist/{stateDiagram-v2-4FDKWEC3-8VzeREl9.js → stateDiagram-v2-4FDKWEC3-C9CFKCSr.js} +10 -10
  98. package/dist/style.css +1 -1
  99. package/dist/{timeline-definition-IT6M3QCI-CdCfdaCF.js → timeline-definition-IT6M3QCI-D8B3p7ID.js} +2 -2
  100. package/dist/{tooltip-CL8m4f9y.js → tooltip-SPkubVH3.js} +3 -3
  101. package/dist/{types-BwnzGcE4.js → types-DqrGPzsT.js} +517 -406
  102. package/dist/{useAsyncData-B4hMFGnF.js → useAsyncData-Ioeh75f8.js} +1 -1
  103. package/dist/{useDeepCompareMemoize-DuPhOXzr.js → useDeepCompareMemoize-DtbTAJq3.js} +4 -4
  104. package/dist/{useIframeCapabilities-CAt6D2EI.js → useIframeCapabilities-DFGZKWkO.js} +1 -1
  105. package/dist/{useTheme-BNYQnvu-.js → useTheme-OvBNH9t3.js} +2 -2
  106. package/dist/{vega-component-DouPy8AI.js → vega-component-B_4Lp3hK.js} +8 -8
  107. package/dist/{xychartDiagram-PRI3JC2R-rEm_SIsC.js → xychartDiagram-PRI3JC2R-KuxgQuK9.js} +5 -5
  108. package/package.json +9 -9
  109. package/src/__mocks__/requests.ts +1 -0
  110. package/src/components/app-config/ai-config.tsx +10 -0
  111. package/src/components/datasources/components.tsx +3 -6
  112. package/src/components/datasources/datasources.tsx +8 -21
  113. package/src/components/editor/actions/types.ts +6 -1
  114. package/src/components/editor/actions/useNotebookActions.tsx +50 -13
  115. package/src/components/editor/chrome/types.ts +17 -0
  116. package/src/components/editor/controls/command-palette.tsx +7 -0
  117. package/src/components/editor/controls/keyboard-shortcuts.tsx +3 -1
  118. package/src/components/editor/file-tree/file-explorer.tsx +48 -62
  119. package/src/components/editor/file-tree/file-icons.tsx +132 -0
  120. package/src/components/editor/file-tree/file-viewer.tsx +1 -1
  121. package/src/components/editor/file-tree/tree-actions.tsx +107 -0
  122. package/src/components/editor/file-tree/types.ts +2 -96
  123. package/src/components/editor/header/filename-input.tsx +4 -1
  124. package/src/components/icons/marimo-icons.tsx +2 -2
  125. package/src/components/pages/home-page.tsx +5 -5
  126. package/src/components/storage/__tests__/storage-snippets.test.ts +253 -0
  127. package/src/components/storage/components.tsx +0 -38
  128. package/src/components/storage/storage-file-viewer.tsx +1 -1
  129. package/src/components/storage/storage-inspector.tsx +65 -50
  130. package/src/components/storage/storage-snippets.ts +67 -0
  131. package/src/components/ui/command.tsx +2 -0
  132. package/src/components/ui/links.tsx +1 -0
  133. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +206 -0
  134. package/src/core/ai/tools/run-cells-tool.ts +75 -40
  135. package/src/core/hotkeys/__tests__/hotkeys.test.ts +64 -1
  136. package/src/core/hotkeys/hotkeys.ts +29 -3
  137. package/src/core/islands/bridge.ts +1 -0
  138. package/src/core/network/__tests__/requests-network.test.ts +17 -0
  139. package/src/core/network/requests-lazy.ts +1 -0
  140. package/src/core/network/requests-network.ts +9 -0
  141. package/src/core/network/requests-static.ts +1 -0
  142. package/src/core/network/requests-toasting.tsx +1 -0
  143. package/src/core/network/types.ts +1 -0
  144. package/src/core/storage/__tests__/state.test.ts +1 -0
  145. package/src/core/wasm/bridge.ts +1 -0
  146. package/src/plugins/impl/FileBrowserPlugin.tsx +4 -4
  147. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +309 -0
  148. package/src/plugins/impl/mpl-interactive/__tests__/mpl-websocket-shim.test.ts +110 -0
  149. package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +57 -0
  150. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +8 -2
  151. package/src/plugins/plugins.ts +2 -0
  152. package/src/utils/__tests__/filenames.test.ts +7 -0
  153. package/src/utils/__tests__/smartMatch.test.ts +61 -0
  154. package/src/utils/filenames.ts +3 -0
  155. package/src/utils/smartMatch.ts +62 -0
  156. package/dist/dist-BAeGo2rp.js +0 -5
  157. package/dist/dist-BqwCMSEa.js +0 -5
  158. package/dist/dist-Bum8FwTO.js +0 -6
  159. package/dist/dist-C0YiOwt_.js +0 -5
  160. package/dist/dist-C2uPv4iU.js +0 -5
  161. package/dist/dist-C5hOLsJN.js +0 -8
  162. package/dist/dist-C9NIAKMs.js +0 -8
  163. package/dist/dist-CCrzTtvk.js +0 -5
  164. package/dist/dist-CFS9i1rS.js +0 -8
  165. package/dist/dist-CyHZuhPH.js +0 -5
  166. package/dist/dist-CzcjWdIk.js +0 -6
  167. package/dist/dist-DaYyUSNC.js +0 -5
  168. package/dist/dist-DpDcJYNh.js +0 -8
  169. package/dist/dist-U_BfxcPn.js +0 -5
@@ -189,7 +189,7 @@ var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.a
189
189
  };
190
190
  function createDOMPurify() {
191
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 = false, n;
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;
193
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
194
  if (typeof l == "function") {
195
195
  let e = r.createElement("template");
@@ -240,7 +240,7 @@ function createDOMPurify() {
240
240
  enumerable: true,
241
241
  value: null
242
242
  }
243
- })), 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({}, [
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({}, [
244
244
  "annotation-xml",
245
245
  "audio",
246
246
  "colgroup",
@@ -266,14 +266,14 @@ function createDOMPurify() {
266
266
  "title",
267
267
  "video",
268
268
  "xmp"
269
- ]), ct = null, lt = addToSet({}, [
269
+ ]), st = null, ct = addToSet({}, [
270
270
  "audio",
271
271
  "video",
272
272
  "img",
273
273
  "source",
274
274
  "image",
275
275
  "track"
276
- ]), ut = null, dt = addToSet({}, [
276
+ ]), lt = null, ut = addToSet({}, [
277
277
  "alt",
278
278
  "class",
279
279
  "for",
@@ -288,28 +288,28 @@ function createDOMPurify() {
288
288
  "value",
289
289
  "style",
290
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 = false, pt = null, mt = addToSet({}, [
292
- V,
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({}, [
293
292
  H,
294
- U
295
- ], stringToString), G = addToSet({}, [
293
+ U,
294
+ W
295
+ ], stringToString), K = addToSet({}, [
296
296
  "mi",
297
297
  "mo",
298
298
  "mn",
299
299
  "ms",
300
300
  "mtext"
301
- ]), K = addToSet({}, ["annotation-xml"]), ht = addToSet({}, [
301
+ ]), q = addToSet({}, ["annotation-xml"]), mt = addToSet({}, [
302
302
  "title",
303
303
  "style",
304
304
  "font",
305
305
  "a",
306
306
  "script"
307
- ]), q = null, gt = ["application/xhtml+xml", "text/html"], J = null, Y = null, _t = r.createElement("form"), vt = function(e) {
307
+ ]), J = null, ht = ["application/xhtml+xml", "text/html"], Y = null, X = null, gt = r.createElement("form"), _t = function(e) {
308
308
  return e instanceof RegExp || e instanceof Function;
309
- }, yt = function() {
309
+ }, vt = function() {
310
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 : 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 || {}, 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 = [], 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))), 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, [
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, [
313
313
  "html",
314
314
  "head",
315
315
  "body"
@@ -318,28 +318,28 @@ function createDOMPurify() {
318
318
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
319
319
  g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
320
320
  } else g === void 0 && (g = _createTrustedTypesPolicy(p, o)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
321
- freeze && freeze(e), Y = e;
321
+ freeze && freeze(e), X = e;
322
322
  }
323
- }, bt = addToSet({}, [
323
+ }, yt = addToSet({}, [
324
324
  ...svg$1,
325
325
  ...svgFilters,
326
326
  ...svgDisallowed
327
- ]), xt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), St = function(e) {
327
+ ]), bt = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), xt = function(e) {
328
328
  let t2 = h(e);
329
329
  (!t2 || !t2.tagName) && (t2 = {
330
- namespaceURI: W,
330
+ namespaceURI: G,
331
331
  tagName: "template"
332
332
  });
333
333
  let n2 = stringToLowerCase(e.tagName), r2 = stringToLowerCase(t2.tagName);
334
- 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;
335
- }, X = function(e) {
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) {
336
336
  arrayPush(n.removed, { element: e });
337
337
  try {
338
338
  h(e).removeChild(e);
339
339
  } catch {
340
340
  Be(e);
341
341
  }
342
- }, Z = function(e, t2) {
342
+ }, Q = function(e, t2) {
343
343
  try {
344
344
  arrayPush(n.removed, {
345
345
  attribute: t2.getAttributeNode(e),
@@ -351,59 +351,59 @@ function createDOMPurify() {
351
351
  from: t2
352
352
  });
353
353
  }
354
- if (t2.removeAttribute(e), e === "is") if (F || I) try {
355
- X(t2);
354
+ if (t2.removeAttribute(e), e === "is") if (P || F) try {
355
+ Z(t2);
356
356
  } catch {
357
357
  }
358
358
  else try {
359
359
  t2.setAttribute(e, "");
360
360
  } catch {
361
361
  }
362
- }, Ct = function(e) {
362
+ }, St = function(e) {
363
363
  let t2 = null, n2 = null;
364
- if (P) e = "<remove></remove>" + e;
364
+ if (it) e = "<remove></remove>" + e;
365
365
  else {
366
366
  let t3 = stringMatch(e, /^[\r\n\t ]+/);
367
367
  n2 = t3 && t3[0];
368
368
  }
369
- q === "application/xhtml+xml" && W === U && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
369
+ J === "application/xhtml+xml" && G === W && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
370
370
  let i2 = g ? g.createHTML(e) : e;
371
- if (W === U) try {
372
- t2 = new Re().parseFromString(i2, q);
371
+ if (G === W) try {
372
+ t2 = new Re().parseFromString(i2, J);
373
373
  } catch {
374
374
  }
375
375
  if (!t2 || !t2.documentElement) {
376
- t2 = v.createDocument(W, "template", null);
376
+ t2 = v.createDocument(G, "template", null);
377
377
  try {
378
- t2.documentElement.innerHTML = ft ? _ : i2;
378
+ t2.documentElement.innerHTML = dt ? _ : i2;
379
379
  } catch {
380
380
  }
381
381
  }
382
382
  let a = t2.body || t2.documentElement;
383
- 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;
384
- }, wt = function(e) {
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
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);
386
- }, Q = function(e) {
386
+ }, wt = function(e) {
387
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");
388
388
  }, Tt = function(e) {
389
389
  return typeof d == "function" && e instanceof d;
390
390
  };
391
391
  function $(e, t2, r2) {
392
392
  arrayForEach(e, (e2) => {
393
- e2.call(n, t2, r2, Y);
393
+ e2.call(n, t2, r2, X);
394
394
  });
395
395
  }
396
396
  let Et = function(e) {
397
397
  let t2 = null;
398
- if ($(y.beforeSanitizeElements, e, null), Q(e)) return X(e), true;
399
- let r2 = J(e.nodeName);
398
+ if ($(y.beforeSanitizeElements, e, null), wt(e)) return Z(e), true;
399
+ let r2 = Y(e.nodeName);
400
400
  if ($(y.uponSanitizeElement, e, {
401
401
  tagName: r2,
402
402
  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 X(e), true;
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
404
  if (!(O.tagCheck instanceof Function && O.tagCheck(r2)) && (!C[r2] || E[r2])) {
405
405
  if (!E[r2] && Ot(r2) && (T.tagNameCheck instanceof RegExp && regExpTest(T.tagNameCheck, r2) || T.tagNameCheck instanceof Function && T.tagNameCheck(r2))) return false;
406
- if (ot && !B[r2]) {
406
+ if (L && !B[r2]) {
407
407
  let t3 = h(e) || e.parentNode, n2 = He(e) || e.childNodes;
408
408
  if (n2 && t3) {
409
409
  let r3 = n2.length;
@@ -413,9 +413,9 @@ function createDOMPurify() {
413
413
  }
414
414
  }
415
415
  }
416
- return X(e), true;
416
+ return Z(e), true;
417
417
  }
418
- 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([
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([
419
419
  b,
420
420
  x,
421
421
  S
@@ -423,11 +423,11 @@ function createDOMPurify() {
423
423
  t2 = stringReplace(t2, e2, " ");
424
424
  }), e.textContent !== t2 && (arrayPush(n.removed, { element: e.cloneNode() }), e.textContent = t2)), $(y.afterSanitizeElements, e, null), false);
425
425
  }, Dt = function(e, t2, n2) {
426
- if (it && (t2 === "id" || t2 === "name") && (n2 in r || n2 in _t)) return false;
426
+ if (D[t2] || at && (t2 === "id" || t2 === "name") && (n2 in r || n2 in gt)) return false;
427
427
  if (!(k && !D[t2] && regExpTest(qe, t2)) && !(tt && regExpTest(Je, t2)) && !(O.attributeCheck instanceof Function && O.attributeCheck(t2, e))) {
428
428
  if (!w[t2] || D[t2]) {
429
429
  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 (!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;
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;
431
431
  }
432
432
  return true;
433
433
  }, Ot = function(e) {
@@ -435,7 +435,7 @@ function createDOMPurify() {
435
435
  }, kt = function(e) {
436
436
  $(y.beforeSanitizeAttributes, e, null);
437
437
  let { attributes: t2 } = e;
438
- if (!t2 || Q(e)) return;
438
+ if (!t2 || wt(e)) return;
439
439
  let r2 = {
440
440
  attrName: "",
441
441
  attrValue: "",
@@ -444,22 +444,22 @@ function createDOMPurify() {
444
444
  forceKeepAttr: void 0
445
445
  }, i2 = t2.length;
446
446
  for (; i2--; ) {
447
- let { name: a, namespaceURI: o2, value: s } = t2[i2], c2 = J(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, at && (c2 === "id" || c2 === "name") && (Z(a, e), u = "user-content-" + u), j && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
449
- Z(a, e);
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);
450
450
  continue;
451
451
  }
452
452
  if (c2 === "attributename" && stringMatch(u, "href")) {
453
- Z(a, e);
453
+ Q(a, e);
454
454
  continue;
455
455
  }
456
456
  if (r2.forceKeepAttr) continue;
457
457
  if (!r2.keepAttr) {
458
- Z(a, e);
458
+ Q(a, e);
459
459
  continue;
460
460
  }
461
461
  if (!rt && regExpTest(/\/>/i, u)) {
462
- Z(a, e);
462
+ Q(a, e);
463
463
  continue;
464
464
  }
465
465
  A && arrayForEach([
@@ -469,9 +469,9 @@ function createDOMPurify() {
469
469
  ], (e2) => {
470
470
  u = stringReplace(u, e2, " ");
471
471
  });
472
- let Pe = J(e.nodeName);
472
+ let Pe = Y(e.nodeName);
473
473
  if (!Dt(Pe, c2, u)) {
474
- Z(a, e);
474
+ Q(a, e);
475
475
  continue;
476
476
  }
477
477
  if (g && typeof p == "object" && typeof p.getAttributeType == "function" && !o2) switch (p.getAttributeType(Pe, c2)) {
@@ -483,39 +483,39 @@ function createDOMPurify() {
483
483
  break;
484
484
  }
485
485
  if (u !== l2) try {
486
- o2 ? e.setAttributeNS(o2, a, u) : e.setAttribute(a, u), Q(e) ? X(e) : arrayPop(n.removed);
486
+ o2 ? e.setAttributeNS(o2, a, u) : e.setAttribute(a, u), wt(e) ? Z(e) : arrayPop(n.removed);
487
487
  } catch {
488
- Z(a, e);
488
+ Q(a, e);
489
489
  }
490
490
  }
491
491
  $(y.afterSanitizeAttributes, e, null);
492
492
  }, At = function e(t2) {
493
- let n2 = null, r2 = wt(t2);
493
+ let n2 = null, r2 = Ct(t2);
494
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
495
  $(y.afterSanitizeShadowDOM, t2, null);
496
496
  };
497
497
  return n.sanitize = function(e) {
498
498
  let t2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r2 = null, a = null, o2 = null, s = null;
499
- if (ft = !e, ft && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
499
+ if (dt = !e, dt && (e = "<!-->"), typeof e != "string" && !Tt(e)) if (typeof e.toString == "function") {
500
500
  if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
501
501
  } else throw typeErrorCreate("toString is not a function");
502
502
  if (!n.isSupported) return e;
503
- if (N || yt(t2), n.removed = [], typeof e == "string" && (R = false), R) {
503
+ if (N || vt(t2), n.removed = [], typeof e == "string" && (R = false), R) {
504
504
  if (e.nodeName) {
505
- let t3 = J(e.nodeName);
505
+ let t3 = Y(e.nodeName);
506
506
  if (!C[t3] || E[t3]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
507
507
  }
508
- } 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);
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);
509
509
  else {
510
- if (!F && !A && !M && e.indexOf("<") === -1) return g && L ? g.createHTML(e) : e;
511
- if (r2 = Ct(e), !r2) return F ? null : L ? _ : "";
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 ? _ : "";
512
512
  }
513
- r2 && P && X(r2.firstChild);
514
- let l2 = wt(R ? e : r2);
513
+ r2 && it && Z(r2.firstChild);
514
+ let l2 = Ct(R ? e : r2);
515
515
  for (; o2 = l2.nextNode(); ) Et(o2), kt(o2), o2.content instanceof c && At(o2.content);
516
516
  if (R) return e;
517
- if (F) {
518
- if (I) for (s = We.call(r2.ownerDocument); r2.firstChild; ) s.appendChild(r2.firstChild);
517
+ if (P) {
518
+ if (F) for (s = We.call(r2.ownerDocument); r2.firstChild; ) s.appendChild(r2.firstChild);
519
519
  else s = r2;
520
520
  return (w.shadowroot || w.shadowrootmode) && (s = Ke.call(i, s, true)), s;
521
521
  }
@@ -526,13 +526,13 @@ function createDOMPurify() {
526
526
  S
527
527
  ], (e2) => {
528
528
  u = stringReplace(u, e2, " ");
529
- }), g && L ? g.createHTML(u) : u;
529
+ }), g && I ? g.createHTML(u) : u;
530
530
  }, n.setConfig = function() {
531
- yt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = true;
531
+ vt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), N = true;
532
532
  }, n.clearConfig = function() {
533
- Y = null, N = false;
533
+ X = null, N = false;
534
534
  }, n.isValidAttribute = function(e, t2, n2) {
535
- return Y || yt({}), Dt(J(e), J(t2), n2);
535
+ return X || vt({}), Dt(Y(e), Y(t2), n2);
536
536
  }, n.addHook = function(e, t2) {
537
537
  typeof t2 == "function" && arrayPush(y[e], t2);
538
538
  }, n.removeHook = function(e, t2) {
@@ -1,9 +1,9 @@
1
1
  var _a, _b;
2
- import "./purify.es-CyOIw8ru.js";
2
+ import "./purify.es-DGenX2XH.js";
3
3
  import { t as linear } from "./linear-DIp6l9sg.js";
4
4
  import "./defaultLocale-Bklbu-Tp.js";
5
5
  import { i as log, r as __name, t as select_default } from "./src-CHUphWwL.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-CRwanrkd.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-7QYXAAhe.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-CyOIw8ru.js";
3
- import { g as utils_default } from "./chunk-S3R3BYOJ-CsnX6RKs.js";
2
+ import "./purify.es-DGenX2XH.js";
3
+ import { g as utils_default } from "./chunk-S3R3BYOJ-DgI4FlvW.js";
4
4
  import { i as log, n as __export, r as __name } from "./src-CHUphWwL.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-CRwanrkd.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-7QYXAAhe.js";
6
6
  import "./chunk-HN2XXSSU-CzO5Phf0.js";
7
7
  import "./chunk-CVBHYZKI-D8iwHsLF.js";
8
- import "./chunk-ATLVNIR6-CMMCMvOK.js";
8
+ import "./chunk-ATLVNIR6-pmHPAPSd.js";
9
9
  import "./dist-Bymy0kEH.js";
10
- import "./chunk-JA3XYJ7Z-Cmt--e0q.js";
11
- import "./chunk-JZLCHNYA-CkyMJnI9.js";
12
- import "./chunk-QXUST7PY-DYuD50pU.js";
13
- import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-BJfHtJbD.js";
10
+ import "./chunk-JA3XYJ7Z-C9q_MXZQ.js";
11
+ import "./chunk-JZLCHNYA-DVjoFib5.js";
12
+ import "./chunk-QXUST7PY-YO0PM8b3.js";
13
+ import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-BYr5N5mX.js";
14
14
  import { t as getDiagramElement } from "./chunk-55IACEB6-Dj8CzJvE.js";
15
- import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-WOLIPUAJ.js";
15
+ import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-CXfJywHv.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-CyOIw8ru.js";
2
+ import "./purify.es-DGenX2XH.js";
3
3
  import { n as ordinal } from "./ordinal-Dcvf4J1m.js";
4
4
  import { t as colors_default } from "./colors-6nB_pSln.js";
5
5
  import { r as __name, t as select_default } from "./src-CHUphWwL.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-CRwanrkd.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-7QYXAAhe.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-CyOIw8ru.js";
3
- import { g as utils_default, p as parseFontSize, t as ZERO_WIDTH_SPACE } from "./chunk-S3R3BYOJ-CsnX6RKs.js";
2
+ import "./purify.es-DGenX2XH.js";
3
+ import { g as utils_default, p as parseFontSize, t as ZERO_WIDTH_SPACE } from "./chunk-S3R3BYOJ-DgI4FlvW.js";
4
4
  import { i as log, r as __name, t as select_default } from "./src-CHUphWwL.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-CRwanrkd.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-7QYXAAhe.js";
6
6
  import { n as load, t as JSON_SCHEMA } from "./chunk-MI3HLSF2-DvCKDmpi.js";
7
7
  import { t as require_dist } from "./dist-Bymy0kEH.js";
8
- import { i as drawRect, n as drawEmbeddedImage, o as getNoteRect, r as drawImage, s as getTextObj, t as drawBackgroundRect } from "./chunk-TZMSLE5B-B3eYTGCw.js";
8
+ import { i as drawRect, n as drawEmbeddedImage, o as getNoteRect, r as drawImage, s as getTextObj, t as drawBackgroundRect } from "./chunk-TZMSLE5B-DSfBOnzx.js";
9
9
  import { t as ImperativeState } from "./chunk-QZHKN3VN-CYbwZKgJ.js";
10
10
  var import_dist = require_dist(), parser = (function() {
11
11
  var t = /* @__PURE__ */ __name(function(t2, l2, u2, d2) {
@@ -1,9 +1,9 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { f as useEventListener, t as Button, y as cn } from "./button-KYalaJYu.js";
4
+ import { f as useEventListener, t as Button, y as cn } from "./button-DQpBib29.js";
5
5
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
6
- import { t as useIframeCapabilities } from "./useIframeCapabilities-CAt6D2EI.js";
6
+ import { t as useIframeCapabilities } from "./useIframeCapabilities-DFGZKWkO.js";
7
7
  var import_compiler_runtime = require_compiler_runtime(), import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  function isObject$2(t2) {
9
9
  return typeof t2 == "object" && !!t2 && "constructor" in t2 && t2.constructor === Object;
@@ -1,13 +1,13 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { t as require_react } from "./react-Bs6Z0kvn.js";
3
3
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { l as createLucideIcon } from "./dist-B8Y11RWn.js";
5
- import { M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, O as logNever, k as upperFirst_default } from "./label-CV0KYhtH.js";
6
- import { a as cva, g as Logger, y as cn } from "./button-KYalaJYu.js";
4
+ import { l as createLucideIcon } from "./dist-WIWVvdBh.js";
5
+ import { M as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, O as logNever, k as upperFirst_default } from "./label-Cx28eo0O.js";
6
+ import { a as cva, g as Logger, y as cn } from "./button-DQpBib29.js";
7
7
  import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
8
8
  import { t as toString_default } from "./toString-Ckpb50uw.js";
9
9
  import { t as _arrayReduce_default } from "./_arrayReduce-BfFy684W.js";
10
- import { _ as useSetAtom, y as atom } from "./useTheme-BNYQnvu-.js";
10
+ import { _ as useSetAtom, y as atom } from "./useTheme-OvBNH9t3.js";
11
11
  var AlignCenterVertical = createLucideIcon("align-center-vertical", [
12
12
  ["path", {
13
13
  d: "M12 2v20",
@@ -1,22 +1,22 @@
1
1
  import { t as layout } from "./dagre-CyZCGfV_.js";
2
2
  import { t as Graph } from "./graphlib-DZnBMcsX.js";
3
- import "./purify.es-CyOIw8ru.js";
3
+ import "./purify.es-DGenX2XH.js";
4
4
  import { _ as basis_default } from "./step-BbmiiQdf.js";
5
5
  import { t as line_default } from "./line-C1k1rG3Z.js";
6
- import { g as utils_default } from "./chunk-S3R3BYOJ-CsnX6RKs.js";
6
+ import { g as utils_default } from "./chunk-S3R3BYOJ-DgI4FlvW.js";
7
7
  import { i as log, r as __name, t as select_default } from "./src-CHUphWwL.js";
8
- import { E as getUrl, b as getConfig2, c as configureSvgSize, s as common_default } from "./chunk-ABZYJK2D-CRwanrkd.js";
8
+ import { E as getUrl, b as getConfig2, c as configureSvgSize, s as common_default } from "./chunk-ABZYJK2D-7QYXAAhe.js";
9
9
  import "./chunk-HN2XXSSU-CzO5Phf0.js";
10
10
  import "./chunk-CVBHYZKI-D8iwHsLF.js";
11
- import "./chunk-ATLVNIR6-CMMCMvOK.js";
11
+ import "./chunk-ATLVNIR6-pmHPAPSd.js";
12
12
  import "./dist-Bymy0kEH.js";
13
- import "./chunk-JA3XYJ7Z-Cmt--e0q.js";
14
- import "./chunk-JZLCHNYA-CkyMJnI9.js";
15
- import "./chunk-QXUST7PY-DYuD50pU.js";
16
- import "./chunk-N4CR4FBY-BJfHtJbD.js";
13
+ import "./chunk-JA3XYJ7Z-C9q_MXZQ.js";
14
+ import "./chunk-JZLCHNYA-DVjoFib5.js";
15
+ import "./chunk-QXUST7PY-YO0PM8b3.js";
16
+ import "./chunk-N4CR4FBY-BYr5N5mX.js";
17
17
  import "./chunk-55IACEB6-Dj8CzJvE.js";
18
- import "./chunk-QN33PNHL-WOLIPUAJ.js";
19
- import { i as styles_default, n as stateDiagram_default, t as StateDB } from "./chunk-DI55MBZ5-DQeYbfMV.js";
18
+ import "./chunk-QN33PNHL-CXfJywHv.js";
19
+ import { i as styles_default, n as stateDiagram_default, t as StateDB } from "./chunk-DI55MBZ5-IKrK49rX.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-CyOIw8ru.js";
2
- import "./chunk-S3R3BYOJ-CsnX6RKs.js";
1
+ import "./purify.es-DGenX2XH.js";
2
+ import "./chunk-S3R3BYOJ-DgI4FlvW.js";
3
3
  import { r as __name } from "./src-CHUphWwL.js";
4
- import "./chunk-ABZYJK2D-CRwanrkd.js";
4
+ import "./chunk-ABZYJK2D-7QYXAAhe.js";
5
5
  import "./chunk-HN2XXSSU-CzO5Phf0.js";
6
6
  import "./chunk-CVBHYZKI-D8iwHsLF.js";
7
- import "./chunk-ATLVNIR6-CMMCMvOK.js";
7
+ import "./chunk-ATLVNIR6-pmHPAPSd.js";
8
8
  import "./dist-Bymy0kEH.js";
9
- import "./chunk-JA3XYJ7Z-Cmt--e0q.js";
10
- import "./chunk-JZLCHNYA-CkyMJnI9.js";
11
- import "./chunk-QXUST7PY-DYuD50pU.js";
12
- import "./chunk-N4CR4FBY-BJfHtJbD.js";
9
+ import "./chunk-JA3XYJ7Z-C9q_MXZQ.js";
10
+ import "./chunk-JZLCHNYA-DVjoFib5.js";
11
+ import "./chunk-QXUST7PY-YO0PM8b3.js";
12
+ import "./chunk-N4CR4FBY-BYr5N5mX.js";
13
13
  import "./chunk-55IACEB6-Dj8CzJvE.js";
14
- import "./chunk-QN33PNHL-WOLIPUAJ.js";
15
- import { i as styles_default, n as stateDiagram_default, r as stateRenderer_v3_unified_default, t as StateDB } from "./chunk-DI55MBZ5-DQeYbfMV.js";
14
+ import "./chunk-QN33PNHL-CXfJywHv.js";
15
+ import { i as styles_default, n as stateDiagram_default, r as stateRenderer_v3_unified_default, t as StateDB } from "./chunk-DI55MBZ5-IKrK49rX.js";
16
16
  var diagram = {
17
17
  parser: stateDiagram_default,
18
18
  get db() {