@velkymx/vibeui 0.9.0 → 1.1.0

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 (184) hide show
  1. package/AGENTS.md +44 -0
  2. package/CLAUDE.md +48 -0
  3. package/README.md +222 -197
  4. package/dist/App.vue.d.ts +2 -1
  5. package/dist/components/HelloWorld.vue.d.ts +2 -1
  6. package/dist/components/VibeAccordion.vue.d.ts +39 -40
  7. package/dist/components/VibeAlert.vue.d.ts +21 -37
  8. package/dist/components/VibeAutocomplete.vue.d.ts +59 -31
  9. package/dist/components/VibeBadge.vue.d.ts +10 -18
  10. package/dist/components/VibeBreadcrumb.vue.d.ts +25 -21
  11. package/dist/components/VibeButton.vue.d.ts +13 -17
  12. package/dist/components/VibeButtonGroup.vue.d.ts +11 -19
  13. package/dist/components/VibeCard.vue.d.ts +51 -24
  14. package/dist/components/VibeCarousel.vue.d.ts +27 -49
  15. package/dist/components/VibeChartBar.vue.d.ts +61 -0
  16. package/dist/components/VibeChartLine.vue.d.ts +70 -0
  17. package/dist/components/VibeChartPie.vue.d.ts +34 -0
  18. package/dist/components/VibeCloseButton.vue.d.ts +9 -7
  19. package/dist/components/VibeCol.vue.d.ts +9 -17
  20. package/dist/components/VibeCollapse.vue.d.ts +24 -32
  21. package/dist/components/VibeContainer.vue.d.ts +9 -17
  22. package/dist/components/VibeDataTable.vue.d.ts +122 -63
  23. package/dist/components/VibeDatePicker.vue.d.ts +4 -6
  24. package/dist/components/VibeDraggable.vue.d.ts +9 -13
  25. package/dist/components/VibeDropdown.vue.d.ts +46 -43
  26. package/dist/components/VibeDroppable.vue.d.ts +9 -13
  27. package/dist/components/VibeFileInput.vue.d.ts +14 -20
  28. package/dist/components/VibeFormCheckbox.vue.d.ts +30 -22
  29. package/dist/components/VibeFormDatepicker.vue.d.ts +27 -30
  30. package/dist/components/VibeFormErrorSummary.vue.d.ts +17 -0
  31. package/dist/components/VibeFormGroup.vue.d.ts +10 -13
  32. package/dist/components/VibeFormInput.vue.d.ts +60 -25
  33. package/dist/components/VibeFormRadio.vue.d.ts +23 -24
  34. package/dist/components/VibeFormSelect.vue.d.ts +28 -34
  35. package/dist/components/VibeFormSpinbutton.vue.d.ts +31 -34
  36. package/dist/components/VibeFormSwitch.vue.d.ts +22 -23
  37. package/dist/components/VibeFormTextarea.vue.d.ts +24 -25
  38. package/dist/components/VibeFormWysiwyg.vue.d.ts +23 -22
  39. package/dist/components/VibeHero.vue.d.ts +117 -0
  40. package/dist/components/VibeIcon.vue.d.ts +27 -7
  41. package/dist/components/VibeInputGroup.vue.d.ts +12 -14
  42. package/dist/components/VibeLink.vue.d.ts +14 -18
  43. package/dist/components/VibeListGroup.vue.d.ts +26 -22
  44. package/dist/components/VibeModal.vue.d.ts +47 -45
  45. package/dist/components/VibeNav.vue.d.ts +40 -20
  46. package/dist/components/VibeNavbar.vue.d.ts +12 -19
  47. package/dist/components/VibeNavbarBrand.vue.d.ts +9 -17
  48. package/dist/components/VibeNavbarNav.vue.d.ts +52 -33
  49. package/dist/components/VibeNavbarToggle.vue.d.ts +7 -5
  50. package/dist/components/VibeOffcanvas.vue.d.ts +28 -43
  51. package/dist/components/VibePagination.vue.d.ts +38 -29
  52. package/dist/components/VibePlaceholder.vue.d.ts +9 -17
  53. package/dist/components/VibePopover.vue.d.ts +17 -40
  54. package/dist/components/VibeProgress.vue.d.ts +13 -21
  55. package/dist/components/VibeResizable.vue.d.ts +10 -14
  56. package/dist/components/VibeRow.vue.d.ts +9 -17
  57. package/dist/components/VibeScrollspy.vue.d.ts +37 -25
  58. package/dist/components/VibeSkeleton.vue.d.ts +2 -1
  59. package/dist/components/VibeSlider.vue.d.ts +4 -5
  60. package/dist/components/VibeSortable.vue.d.ts +37 -18
  61. package/dist/components/VibeSpinner.vue.d.ts +4 -7
  62. package/dist/components/VibeStepper.vue.d.ts +32 -31
  63. package/dist/components/VibeTab.vue.d.ts +7 -11
  64. package/dist/components/VibeTabContent.vue.d.ts +13 -31
  65. package/dist/components/VibeTabs.vue.d.ts +9 -13
  66. package/dist/components/VibeToast.vue.d.ts +31 -44
  67. package/dist/components/VibeToastHost.vue.d.ts +2 -1
  68. package/dist/components/VibeTooltip.vue.d.ts +16 -39
  69. package/dist/components/chart/chartColors.d.ts +3 -0
  70. package/dist/components/chart/chartResize.d.ts +2 -0
  71. package/dist/components/chart/chartTooltip.d.ts +2 -0
  72. package/dist/components/chart/chartTypes.d.ts +6 -0
  73. package/dist/components/chart/drawBar.d.ts +5 -0
  74. package/dist/components/chart/drawLine.d.ts +18 -0
  75. package/dist/components/chart/drawPie.d.ts +4 -0
  76. package/dist/components/dndStore.d.ts +1 -0
  77. package/dist/components/index.d.ts +6 -1
  78. package/dist/composables/useBreakpoints.d.ts +1 -0
  79. package/dist/composables/useColorMode.d.ts +1 -1
  80. package/dist/composables/useId.d.ts +1 -4
  81. package/dist/directives/vTooltip.d.ts +2 -3
  82. package/dist/injectionKeys.d.ts +34 -0
  83. package/dist/purify.es-eYghtX9j.mjs +735 -0
  84. package/dist/types.d.ts +23 -2
  85. package/dist/utils/routeKey.d.ts +11 -0
  86. package/dist/utils/safeCss.d.ts +16 -0
  87. package/dist/utils/safeHref.d.ts +7 -0
  88. package/dist/utils/sanitizeHtml.d.ts +13 -0
  89. package/dist/vibeui.css +2 -1
  90. package/dist/vibeui.es.js +8527 -5855
  91. package/dist/vibeui.umd.js +3 -1
  92. package/docs/README.md +225 -0
  93. package/docs/components/advanced/popover.md +125 -0
  94. package/docs/components/advanced/scrollspy.md +106 -0
  95. package/docs/components/advanced/tooltip.md +90 -0
  96. package/docs/components/card/card.md +223 -0
  97. package/docs/components/charts/chart-bar.md +129 -0
  98. package/docs/components/charts/chart-line.md +136 -0
  99. package/docs/components/charts/chart-pie.md +102 -0
  100. package/docs/components/core/alert.md +94 -0
  101. package/docs/components/core/badge.md +75 -0
  102. package/docs/components/core/button-group.md +99 -0
  103. package/docs/components/core/button.md +145 -0
  104. package/docs/components/core/close-button.md +82 -0
  105. package/docs/components/core/link.md +79 -0
  106. package/docs/components/core/placeholder.md +129 -0
  107. package/docs/components/core/skeleton.md +40 -0
  108. package/docs/components/core/spinner.md +103 -0
  109. package/docs/components/data/datatable.md +437 -0
  110. package/docs/components/hero/hero.md +65 -0
  111. package/docs/components/interactive/accordion.md +121 -0
  112. package/docs/components/interactive/carousel.md +112 -0
  113. package/docs/components/interactive/collapse.md +106 -0
  114. package/docs/components/interactive/date-picker.md +78 -0
  115. package/docs/components/interactive/draggable.md +91 -0
  116. package/docs/components/interactive/dropdown.md +129 -0
  117. package/docs/components/interactive/modal.md +151 -0
  118. package/docs/components/interactive/offcanvas.md +92 -0
  119. package/docs/components/interactive/resizable.md +73 -0
  120. package/docs/components/interactive/slider.md +57 -0
  121. package/docs/components/interactive/sortable.md +52 -0
  122. package/docs/components/interactive/stepper.md +83 -0
  123. package/docs/components/interactive/tabs.md +66 -0
  124. package/docs/components/interactive/toast.md +177 -0
  125. package/docs/components/layout/col.md +117 -0
  126. package/docs/components/layout/container.md +53 -0
  127. package/docs/components/layout/row.md +107 -0
  128. package/docs/components/list/list-group.md +225 -0
  129. package/docs/components/navigation/breadcrumb.md +120 -0
  130. package/docs/components/navigation/nav.md +151 -0
  131. package/docs/components/navigation/navbar.md +114 -0
  132. package/docs/components/navigation/pagination.md +163 -0
  133. package/docs/components/progress/progress.md +188 -0
  134. package/docs/composables/back-button.md +28 -0
  135. package/docs/composables/breakpoints.md +54 -0
  136. package/docs/composables/color-mode.md +179 -0
  137. package/docs/composables/use-form.md +78 -0
  138. package/docs/composables/use-position.md +68 -0
  139. package/docs/composables/use-toast.md +91 -0
  140. package/docs/directives/v-tooltip.md +58 -0
  141. package/docs/forms/README.md +87 -0
  142. package/docs/forms/autocomplete.md +96 -0
  143. package/docs/forms/file-input.md +97 -0
  144. package/docs/forms/form-checkbox.md +100 -0
  145. package/docs/forms/form-datepicker.md +80 -0
  146. package/docs/forms/form-error-summary.md +96 -0
  147. package/docs/forms/form-group.md +118 -0
  148. package/docs/forms/form-input.md +140 -0
  149. package/docs/forms/form-radio.md +82 -0
  150. package/docs/forms/form-select.md +98 -0
  151. package/docs/forms/form-spinbutton.md +94 -0
  152. package/docs/forms/form-switch.md +75 -0
  153. package/docs/forms/form-textarea.md +82 -0
  154. package/docs/forms/form-wysiwyg.md +99 -0
  155. package/docs/forms/input-group.md +70 -0
  156. package/docs/forms/validation.md +213 -0
  157. package/docs/getting-started/starter-template.md +136 -0
  158. package/docs/superpowers/plans/2026-05-12-vibe-charts.md +1999 -0
  159. package/docs/superpowers/plans/2026-05-29-e2e-browser-testing.md +615 -0
  160. package/docs/superpowers/specs/2026-05-12-charting-design.md +185 -0
  161. package/docs/superpowers/specs/2026-05-29-e2e-browser-testing-design.md +168 -0
  162. package/docs/utilities/position.md +82 -0
  163. package/docs/versioning.md +57 -0
  164. package/examples/README.md +201 -0
  165. package/examples/album.html +262 -0
  166. package/examples/blog.html +166 -0
  167. package/examples/carousel.html +114 -0
  168. package/examples/checkout.html +275 -0
  169. package/examples/cover.html +89 -0
  170. package/examples/dashboard.html +156 -0
  171. package/examples/index.html +129 -0
  172. package/examples/jumbotron.html +56 -0
  173. package/examples/mobile-dashboard.html +138 -0
  174. package/examples/pricing.html +172 -0
  175. package/examples/product.html +145 -0
  176. package/examples/sidebars.html +166 -0
  177. package/examples/sign-in.html +119 -0
  178. package/examples/starter.html +314 -0
  179. package/examples/sticky-footer-navbar.html +70 -0
  180. package/examples/sticky-footer.html +60 -0
  181. package/examples/test-simple.html +91 -0
  182. package/llms.txt +801 -0
  183. package/package.json +44 -14
  184. package/dist/types/index.d.ts +0 -6
@@ -0,0 +1,735 @@
1
+ //#region node_modules/dompurify/dist/purify.es.mjs
2
+ function e(e, t) {
3
+ (t == null || t > e.length) && (t = e.length);
4
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
5
+ return r;
6
+ }
7
+ function t(e) {
8
+ if (Array.isArray(e)) return e;
9
+ }
10
+ function n(e, t) {
11
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12
+ if (n != null) {
13
+ var r, i, a, o, s = [], c = !0, l = !1;
14
+ try {
15
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
16
+ } catch (e) {
17
+ l = !0, i = e;
18
+ } finally {
19
+ try {
20
+ if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
21
+ } finally {
22
+ if (l) throw i;
23
+ }
24
+ }
25
+ return s;
26
+ }
27
+ }
28
+ function r() {
29
+ throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
30
+ }
31
+ function i(e, i) {
32
+ return t(e) || n(e, i) || a(e, i) || r();
33
+ }
34
+ function a(t, n) {
35
+ if (t) {
36
+ if (typeof t == "string") return e(t, n);
37
+ var r = {}.toString.call(t).slice(8, -1);
38
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? e(t, n) : void 0;
39
+ }
40
+ }
41
+ var o = Object.entries, s = Object.setPrototypeOf, c = Object.isFrozen, l = Object.getPrototypeOf, u = Object.getOwnPropertyDescriptor, d = Object.freeze, f = Object.seal, p = Object.create, m = typeof Reflect < "u" && Reflect, h = m.apply, ee = m.construct;
42
+ d ||= function(e) {
43
+ return e;
44
+ }, f ||= function(e) {
45
+ return e;
46
+ }, h ||= function(e, t) {
47
+ var n = [...arguments].slice(2);
48
+ return e.apply(t, n);
49
+ }, ee ||= function(e) {
50
+ return new e(...[...arguments].slice(1));
51
+ };
52
+ var te = w(Array.prototype.forEach), ne = w(Array.prototype.lastIndexOf), re = w(Array.prototype.pop), g = w(Array.prototype.push), ie = w(Array.prototype.splice), _ = Array.isArray, ae = w(String.prototype.toLowerCase), oe = w(String.prototype.toString), se = w(String.prototype.match), ce = w(String.prototype.replace), le = w(String.prototype.indexOf), ue = w(String.prototype.trim), de = w(Number.prototype.toString), fe = w(Boolean.prototype.toString), v = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = T(TypeError);
53
+ function w(e) {
54
+ return function(t) {
55
+ t instanceof RegExp && (t.lastIndex = 0);
56
+ var n = [...arguments].slice(1);
57
+ return h(e, t, n);
58
+ };
59
+ }
60
+ function T(e) {
61
+ return function() {
62
+ return ee(e, [...arguments]);
63
+ };
64
+ }
65
+ function E(e, t) {
66
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ae;
67
+ if (s && s(e, null), !_(t)) return e;
68
+ let r = t.length;
69
+ for (; r--;) {
70
+ let i = t[r];
71
+ if (typeof i == "string") {
72
+ let e = n(i);
73
+ e !== i && (c(t) || (t[r] = e), i = e);
74
+ }
75
+ e[i] = !0;
76
+ }
77
+ return e;
78
+ }
79
+ function D(e) {
80
+ for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
81
+ return e;
82
+ }
83
+ function O(e) {
84
+ let t = p(null);
85
+ for (let r of o(e)) {
86
+ var n = i(r, 2);
87
+ let a = n[0], o = n[1];
88
+ b(e, a) && (_(o) ? t[a] = D(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = O(o) : t[a] = o);
89
+ }
90
+ return t;
91
+ }
92
+ function pe(e) {
93
+ switch (typeof e) {
94
+ case "string": return e;
95
+ case "number": return de(e);
96
+ case "boolean": return fe(e);
97
+ case "bigint": return v ? v(e) : "0";
98
+ case "symbol": return y ? y(e) : "Symbol()";
99
+ case "undefined": return x(e);
100
+ case "function":
101
+ case "object": {
102
+ if (e === null) return x(e);
103
+ let t = e, n = k(t, "toString");
104
+ if (typeof n == "function") {
105
+ let e = n(t);
106
+ return typeof e == "string" ? e : x(e);
107
+ }
108
+ return x(e);
109
+ }
110
+ default: return x(e);
111
+ }
112
+ }
113
+ function k(e, t) {
114
+ for (; e !== null;) {
115
+ let n = u(e, t);
116
+ if (n) {
117
+ if (n.get) return w(n.get);
118
+ if (typeof n.value == "function") return w(n.value);
119
+ }
120
+ e = l(e);
121
+ }
122
+ function n() {
123
+ return null;
124
+ }
125
+ return n;
126
+ }
127
+ function me(e) {
128
+ try {
129
+ return S(e, ""), !0;
130
+ } catch {
131
+ return !1;
132
+ }
133
+ }
134
+ var he = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), ge = d(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), _e = d([
135
+ "feBlend",
136
+ "feColorMatrix",
137
+ "feComponentTransfer",
138
+ "feComposite",
139
+ "feConvolveMatrix",
140
+ "feDiffuseLighting",
141
+ "feDisplacementMap",
142
+ "feDistantLight",
143
+ "feDropShadow",
144
+ "feFlood",
145
+ "feFuncA",
146
+ "feFuncB",
147
+ "feFuncG",
148
+ "feFuncR",
149
+ "feGaussianBlur",
150
+ "feImage",
151
+ "feMerge",
152
+ "feMergeNode",
153
+ "feMorphology",
154
+ "feOffset",
155
+ "fePointLight",
156
+ "feSpecularLighting",
157
+ "feSpotLight",
158
+ "feTile",
159
+ "feTurbulence"
160
+ ]), ve = d([
161
+ "animate",
162
+ "color-profile",
163
+ "cursor",
164
+ "discard",
165
+ "font-face",
166
+ "font-face-format",
167
+ "font-face-name",
168
+ "font-face-src",
169
+ "font-face-uri",
170
+ "foreignobject",
171
+ "hatch",
172
+ "hatchpath",
173
+ "mesh",
174
+ "meshgradient",
175
+ "meshpatch",
176
+ "meshrow",
177
+ "missing-glyph",
178
+ "script",
179
+ "set",
180
+ "solidcolor",
181
+ "unknown",
182
+ "use"
183
+ ]), ye = d(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), be = d([
184
+ "maction",
185
+ "maligngroup",
186
+ "malignmark",
187
+ "mlongdiv",
188
+ "mscarries",
189
+ "mscarry",
190
+ "msgroup",
191
+ "mstack",
192
+ "msline",
193
+ "msrow",
194
+ "semantics",
195
+ "annotation",
196
+ "annotation-xml",
197
+ "mprescripts",
198
+ "none"
199
+ ]), xe = d(["#text"]), Se = d(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ce = d(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), we = d(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Te = d([
200
+ "xlink:href",
201
+ "xml:id",
202
+ "xlink:title",
203
+ "xml:space",
204
+ "xmlns:xlink"
205
+ ]), Ee = f(/{{[\w\W]*|^[\w\W]*}}/g), De = f(/<%[\w\W]*|^[\w\W]*%>/g), Oe = f(/\${[\w\W]*/g), ke = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ae = f(/^aria-[\-\w]+$/), je = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Me = f(/^(?:\w+script|data):/i), Ne = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Pe = f(/^html$/i), Fe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Ie = f(/<[/\w!]/g), Le = f(/<[/\w]/g), Re = f(/<\/no(script|embed|frames)/i), ze = f(/\/>/i), A = {
206
+ element: 1,
207
+ attribute: 2,
208
+ text: 3,
209
+ cdataSection: 4,
210
+ entityReference: 5,
211
+ entityNode: 6,
212
+ processingInstruction: 7,
213
+ comment: 8,
214
+ document: 9,
215
+ documentType: 10,
216
+ documentFragment: 11,
217
+ notation: 12
218
+ }, Be = function() {
219
+ return typeof window > "u" ? null : window;
220
+ }, Ve = function(e, t) {
221
+ if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
+ let n = null, r = "data-tt-policy-suffix";
223
+ t && t.hasAttribute(r) && (n = t.getAttribute(r));
224
+ let i = "dompurify" + (n ? "#" + n : "");
225
+ try {
226
+ return e.createPolicy(i, {
227
+ createHTML(e) {
228
+ return e;
229
+ },
230
+ createScriptURL(e) {
231
+ return e;
232
+ }
233
+ });
234
+ } catch {
235
+ return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
+ }
237
+ }, He = function() {
238
+ return {
239
+ afterSanitizeAttributes: [],
240
+ afterSanitizeElements: [],
241
+ afterSanitizeShadowDOM: [],
242
+ beforeSanitizeAttributes: [],
243
+ beforeSanitizeElements: [],
244
+ beforeSanitizeShadowDOM: [],
245
+ uponSanitizeAttribute: [],
246
+ uponSanitizeElement: [],
247
+ uponSanitizeShadowNode: []
248
+ };
249
+ }, j = function(e, t, n, r) {
250
+ return b(e, t) && _(e[t]) ? E(r.base ? O(r.base) : {}, e[t], r.transform) : n;
251
+ };
252
+ function Ue() {
253
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Be(), t = (e) => Ue(e);
254
+ if (t.version = "3.4.11", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
255
+ let n = e.document, r = n, i = r.currentScript;
256
+ e.DocumentFragment;
257
+ let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
258
+ e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
259
+ let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = k(h, "cloneNode"), de = k(h, "remove"), fe = k(h, "nextSibling"), v = k(h, "childNodes"), y = k(h, "parentNode"), x = k(h, "shadowRoot"), w = k(h, "attributes"), T = s && s.prototype ? k(s.prototype, "nodeType") : null, D = s && s.prototype ? k(s.prototype, "nodeName") : null;
260
+ if (typeof a == "function") {
261
+ let e = n.createElement("template");
262
+ e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
263
+ }
264
+ let M, N = "", We, Ge = !1, Ke = 0, qe = function() {
265
+ if (Ke > 0) throw C("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
266
+ }, P = function(e) {
267
+ qe(), Ke++;
268
+ try {
269
+ return M.createHTML(e);
270
+ } finally {
271
+ Ke--;
272
+ }
273
+ }, Je = function(e) {
274
+ qe(), Ke++;
275
+ try {
276
+ return M.createScriptURL(e);
277
+ } finally {
278
+ Ke--;
279
+ }
280
+ }, Ye = function() {
281
+ return Ge ||= (We = Ve(m, i), !0), We;
282
+ }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, F = He();
283
+ t.isSupported = typeof o == "function" && typeof y == "function" && Ze && Ze.createHTMLDocument !== void 0;
284
+ let nt = Ee, rt = De, it = Oe, at = ke, ot = Ae, st = Me, ct = Ne, lt = Fe, ut = je, I = null, dt = E({}, [
285
+ ...he,
286
+ ...ge,
287
+ ..._e,
288
+ ...ye,
289
+ ...xe
290
+ ]), L = null, ft = E({}, [
291
+ ...Se,
292
+ ...Ce,
293
+ ...we,
294
+ ...Te
295
+ ]), R = Object.seal(p(null, {
296
+ tagNameCheck: {
297
+ writable: !0,
298
+ configurable: !1,
299
+ enumerable: !0,
300
+ value: null
301
+ },
302
+ attributeNameCheck: {
303
+ writable: !0,
304
+ configurable: !1,
305
+ enumerable: !0,
306
+ value: null
307
+ },
308
+ allowCustomizedBuiltInElements: {
309
+ writable: !0,
310
+ configurable: !1,
311
+ enumerable: !0,
312
+ value: !1
313
+ }
314
+ })), pt = null, mt = null, z = Object.seal(p(null, {
315
+ tagCheck: {
316
+ writable: !0,
317
+ configurable: !1,
318
+ enumerable: !0,
319
+ value: null
320
+ },
321
+ attributeCheck: {
322
+ writable: !0,
323
+ configurable: !1,
324
+ enumerable: !0,
325
+ value: null
326
+ }
327
+ })), ht = !0, gt = !0, _t = !1, vt = !0, B = !1, yt = !0, V = !1, bt = !1, xt = null, St = null, Ct = !1, H = !1, wt = !1, Tt = !1, Et = !0, Dt = !1, Ot = "user-content-", kt = !0, At = !1, U = {}, W = null, jt = E({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Mt = null, Nt = E({}, [
328
+ "audio",
329
+ "video",
330
+ "img",
331
+ "source",
332
+ "image",
333
+ "track"
334
+ ]), Pt = null, Ft = E({}, [
335
+ "alt",
336
+ "class",
337
+ "for",
338
+ "id",
339
+ "label",
340
+ "name",
341
+ "pattern",
342
+ "placeholder",
343
+ "role",
344
+ "summary",
345
+ "title",
346
+ "value",
347
+ "style",
348
+ "xmlns"
349
+ ]), It = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, Rt = !1, zt = null, Bt = E({}, [
350
+ It,
351
+ Lt,
352
+ G
353
+ ], oe), Vt = d([
354
+ "mi",
355
+ "mo",
356
+ "mn",
357
+ "ms",
358
+ "mtext"
359
+ ]), Ht = E({}, Vt), Ut = d(["annotation-xml"]), Wt = E({}, Ut), Gt = E({}, [
360
+ "title",
361
+ "style",
362
+ "font",
363
+ "a",
364
+ "script"
365
+ ]), Kt = null, qt = ["application/xhtml+xml", "text/html"], q = null, J = null, Jt = n.createElement("form"), Yt = function(e) {
366
+ return e instanceof RegExp || e instanceof Function;
367
+ }, Xt = function() {
368
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
369
+ if (J && J === e) return;
370
+ (!e || typeof e != "object") && (e = {}), e = O(e), Kt = qt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, q = Kt === "application/xhtml+xml" ? oe : ae, I = j(e, "ALLOWED_TAGS", dt, { transform: q }), L = j(e, "ALLOWED_ATTR", ft, { transform: q }), zt = j(e, "ALLOWED_NAMESPACES", Bt, { transform: oe }), Pt = j(e, "ADD_URI_SAFE_ATTR", Ft, {
371
+ transform: q,
372
+ base: Ft
373
+ }), Mt = j(e, "ADD_DATA_URI_TAGS", Nt, {
374
+ transform: q,
375
+ base: Nt
376
+ }), W = j(e, "FORBID_CONTENTS", jt, { transform: q }), pt = j(e, "FORBID_TAGS", O({}), { transform: q }), mt = j(e, "FORBID_ATTR", O({}), { transform: q }), U = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, ht = e.ALLOW_ARIA_ATTR !== !1, gt = e.ALLOW_DATA_ATTR !== !1, _t = e.ALLOW_UNKNOWN_PROTOCOLS || !1, vt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, yt = e.SAFE_FOR_XML !== !1, V = e.WHOLE_DOCUMENT || !1, H = e.RETURN_DOM || !1, wt = e.RETURN_DOM_FRAGMENT || !1, Tt = e.RETURN_TRUSTED_TYPE || !1, Ct = e.FORCE_BODY || !1, Et = e.SANITIZE_DOM !== !1, Dt = e.SANITIZE_NAMED_PROPS || !1, kt = e.KEEP_CONTENT !== !1, At = e.IN_PLACE || !1, ut = me(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : je, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, Ht = b(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? O(e.MATHML_TEXT_INTEGRATION_POINTS) : E({}, Vt), Wt = b(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? O(e.HTML_INTEGRATION_POINTS) : E({}, Ut);
377
+ let t = b(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? O(e.CUSTOM_ELEMENT_HANDLING) : p(null);
378
+ if (R = p(null), b(t, "tagNameCheck") && Yt(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && Yt(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(R), B && (gt = !1), wt && (H = !0), U && (I = E({}, xe), L = p(null), U.html === !0 && (E(I, he), E(L, Se)), U.svg === !0 && (E(I, ge), E(L, Ce), E(L, Te)), U.svgFilters === !0 && (E(I, _e), E(L, Ce), E(L, Te)), U.mathMl === !0 && (E(I, ye), E(L, we), E(L, Te))), z.tagCheck = null, z.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (I === dt && (I = O(I)), E(I, e.ADD_TAGS, q))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (L === ft && (L = O(L)), E(L, e.ADD_ATTR, q))), b(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && E(Pt, e.ADD_URI_SAFE_ATTR, q), b(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (W === jt && (W = O(W)), E(W, e.FORBID_CONTENTS, q)), b(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (W === jt && (W = O(W)), E(W, e.ADD_FORBID_CONTENTS, q)), kt && (I["#text"] = !0), V && E(I, [
379
+ "html",
380
+ "head",
381
+ "body"
382
+ ]), I.table && (E(I, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
383
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
384
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
385
+ let t = M;
386
+ M = e.TRUSTED_TYPES_POLICY;
387
+ try {
388
+ N = P("");
389
+ } catch (e) {
390
+ throw M = t, e;
391
+ }
392
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, N = "") : (M === void 0 && (M = Ye()), M && typeof N == "string" && (N = P("")));
393
+ d && d(e), J = e;
394
+ }, Zt = E({}, [
395
+ ...ge,
396
+ ..._e,
397
+ ...ve
398
+ ]), Qt = E({}, [...ye, ...be]), $t = function(e, t, n) {
399
+ return t.namespaceURI === G ? e === "svg" : t.namespaceURI === It ? e === "svg" && (n === "annotation-xml" || Ht[n]) : !!Zt[e];
400
+ }, en = function(e, t, n) {
401
+ return t.namespaceURI === G ? e === "math" : t.namespaceURI === Lt ? e === "math" && Wt[n] : !!Qt[e];
402
+ }, tn = function(e, t, n) {
403
+ return t.namespaceURI === Lt && !Wt[n] || t.namespaceURI === It && !Ht[n] ? !1 : !Qt[e] && (Gt[e] || !Zt[e]);
404
+ }, nn = function(e) {
405
+ let t = y(e);
406
+ (!t || !t.tagName) && (t = {
407
+ namespaceURI: K,
408
+ tagName: "template"
409
+ });
410
+ let n = ae(e.tagName), r = ae(t.tagName);
411
+ return zt[e.namespaceURI] ? e.namespaceURI === Lt ? $t(n, t, r) : e.namespaceURI === It ? en(n, t, r) : e.namespaceURI === G ? tn(n, t, r) : !!(Kt === "application/xhtml+xml" && zt[e.namespaceURI]) : !1;
412
+ }, Y = function(e) {
413
+ g(t.removed, { element: e });
414
+ try {
415
+ y(e).removeChild(e);
416
+ } catch {
417
+ if (de(e), !y(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
418
+ }
419
+ }, rn = function(e) {
420
+ let t = v(e);
421
+ if (t) {
422
+ let e = [];
423
+ te(t, (t) => {
424
+ g(e, t);
425
+ }), te(e, (e) => {
426
+ try {
427
+ de(e);
428
+ } catch {}
429
+ });
430
+ }
431
+ let n = w(e);
432
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
433
+ let r = n[t], i = r && r.name;
434
+ if (typeof i == "string") try {
435
+ e.removeAttribute(i);
436
+ } catch {}
437
+ }
438
+ }, X = function(e, n) {
439
+ try {
440
+ g(t.removed, {
441
+ attribute: n.getAttributeNode(e),
442
+ from: n
443
+ });
444
+ } catch {
445
+ g(t.removed, {
446
+ attribute: null,
447
+ from: n
448
+ });
449
+ }
450
+ if (n.removeAttribute(e), e === "is") if (H || wt) try {
451
+ Y(n);
452
+ } catch {}
453
+ else try {
454
+ n.setAttribute(e, "");
455
+ } catch {}
456
+ }, an = function(e) {
457
+ let t = w(e);
458
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
459
+ let r = t[n], i = r && r.name;
460
+ if (!(typeof i != "string" || L[q(i)])) try {
461
+ e.removeAttribute(i);
462
+ } catch {}
463
+ }
464
+ }, on = function(e) {
465
+ let t = [e];
466
+ for (; t.length > 0;) {
467
+ let e = t.pop();
468
+ (T ? T(e) : e.nodeType) === A.element && an(e);
469
+ let n = v(e);
470
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
471
+ }
472
+ }, sn = function(e) {
473
+ let t = null, r = null;
474
+ if (Ct) e = "<remove></remove>" + e;
475
+ else {
476
+ let t = se(e, /^[\r\n\t ]+/);
477
+ r = t && t[0];
478
+ }
479
+ Kt === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
480
+ let i = M ? P(e) : e;
481
+ if (K === G) try {
482
+ t = new u().parseFromString(i, Kt);
483
+ } catch {}
484
+ if (!t || !t.documentElement) {
485
+ t = Ze.createDocument(K, "template", null);
486
+ try {
487
+ t.documentElement.innerHTML = Rt ? N : i;
488
+ } catch {}
489
+ }
490
+ let a = t.body || t.documentElement;
491
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? et.call(t, V ? "html" : "body")[0] : V ? t.documentElement : a;
492
+ }, cn = function(e) {
493
+ return Qe.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
494
+ }, ln = function(e) {
495
+ return e = ce(e, nt, " "), e = ce(e, rt, " "), e = ce(e, it, " "), e;
496
+ }, un = function(e) {
497
+ e.normalize();
498
+ let t = Qe.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
499
+ for (; n;) n.data = ln(n.data), n = t.nextNode();
500
+ let r = e.querySelectorAll?.call(e, "template");
501
+ r && te(r, (e) => {
502
+ Z(e.content) && un(e.content);
503
+ });
504
+ }, dn = function(e) {
505
+ let t = D ? D(e) : null;
506
+ return typeof t != "string" || q(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== w(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== T(e) || e.childNodes !== v(e);
507
+ }, Z = function(e) {
508
+ if (!T || typeof e != "object" || !e) return !1;
509
+ try {
510
+ return T(e) === A.documentFragment;
511
+ } catch {
512
+ return !1;
513
+ }
514
+ }, Q = function(e) {
515
+ if (!T || typeof e != "object" || !e) return !1;
516
+ try {
517
+ return typeof T(e) == "number";
518
+ } catch {
519
+ return !1;
520
+ }
521
+ };
522
+ function $(e, n, r) {
523
+ e.length !== 0 && te(e, (e) => {
524
+ e.call(t, n, r, J);
525
+ });
526
+ }
527
+ let fn = function(e, t) {
528
+ return !!(yt && e.hasChildNodes() && !Q(e.firstElementChild) && S(Ie, e.textContent) && S(Ie, e.innerHTML) || yt && e.namespaceURI === G && t === "style" && Q(e.firstElementChild) || e.nodeType === A.processingInstruction || yt && e.nodeType === A.comment && S(Le, e.data));
529
+ }, pn = function(e, t) {
530
+ if (!pt[t] && _n(t) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, t) || R.tagNameCheck instanceof Function && R.tagNameCheck(t))) return !1;
531
+ if (kt && !W[t]) {
532
+ let t = y(e), n = v(e);
533
+ if (n && t) {
534
+ let r = n.length;
535
+ for (let i = r - 1; i >= 0; --i) {
536
+ let r = At ? n[i] : ee(n[i], !0);
537
+ t.insertBefore(r, fe(e));
538
+ }
539
+ }
540
+ }
541
+ return Y(e), !0;
542
+ }, mn = function(e) {
543
+ if ($(F.beforeSanitizeElements, e, null), dn(e)) return Y(e), !0;
544
+ let n = q(D ? D(e) : e.nodeName);
545
+ if ($(F.uponSanitizeElement, e, {
546
+ tagName: n,
547
+ allowedTags: I
548
+ }), fn(e, n)) return Y(e), !0;
549
+ if (pt[n] || !(z.tagCheck instanceof Function && z.tagCheck(n)) && !I[n]) return pn(e, n);
550
+ if ((T ? T(e) : e.nodeType) === A.element && !nn(e) || (n === "noscript" || n === "noembed" || n === "noframes") && S(Re, e.innerHTML)) return Y(e), !0;
551
+ if (B && e.nodeType === A.text) {
552
+ let n = ln(e.textContent);
553
+ e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n);
554
+ }
555
+ return $(F.afterSanitizeElements, e, null), !1;
556
+ }, hn = function(e, t, r) {
557
+ if (mt[t] || Et && (t === "id" || t === "name") && (r in n || r in Jt)) return !1;
558
+ let i = L[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
559
+ if (!(gt && S(at, t)) && !(ht && S(ot, t))) {
560
+ if (!i) {
561
+ if (!(_n(e) && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && S(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && S(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
562
+ } else if (!Pt[t] && !S(ut, ce(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && le(r, "data:") === 0 && Mt[e]) && !(_t && !S(st, ce(r, ct, ""))) && r) return !1;
563
+ }
564
+ return !0;
565
+ }, gn = E({}, [
566
+ "annotation-xml",
567
+ "color-profile",
568
+ "font-face",
569
+ "font-face-format",
570
+ "font-face-name",
571
+ "font-face-src",
572
+ "font-face-uri",
573
+ "missing-glyph"
574
+ ]), _n = function(e) {
575
+ return !gn[ae(e)] && S(lt, e);
576
+ }, vn = function(e, t, n, r) {
577
+ if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
578
+ case "TrustedHTML": return P(r);
579
+ case "TrustedScriptURL": return Je(r);
580
+ }
581
+ return r;
582
+ }, yn = function(e, n, r, i) {
583
+ try {
584
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Y(e) : re(t.removed);
585
+ } catch {
586
+ X(n, e);
587
+ }
588
+ }, bn = function(e) {
589
+ $(F.beforeSanitizeAttributes, e, null);
590
+ let t = e.attributes;
591
+ if (!t || dn(e)) return;
592
+ let n = {
593
+ attrName: "",
594
+ attrValue: "",
595
+ keepAttr: !0,
596
+ allowedAttributes: L,
597
+ forceKeepAttr: void 0
598
+ }, r = t.length, i = q(e.nodeName);
599
+ for (; r--;) {
600
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = q(o), u = c, d = o === "value" ? u : ue(u);
601
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, Dt && (l === "id" || l === "name") && le(d, Ot) !== 0 && (X(o, e), d = Ot + d), yt && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
602
+ X(o, e);
603
+ continue;
604
+ }
605
+ if (l === "attributename" && se(d, "href")) {
606
+ X(o, e);
607
+ continue;
608
+ }
609
+ if (!n.forceKeepAttr) {
610
+ if (!n.keepAttr) {
611
+ X(o, e);
612
+ continue;
613
+ }
614
+ if (!vt && S(ze, d)) {
615
+ X(o, e);
616
+ continue;
617
+ }
618
+ if (B && (d = ln(d)), !hn(i, l, d)) {
619
+ X(o, e);
620
+ continue;
621
+ }
622
+ d = vn(i, l, s, d), d !== u && yn(e, o, s, d);
623
+ }
624
+ }
625
+ $(F.afterSanitizeAttributes, e, null);
626
+ }, xn = function(e) {
627
+ let t = null, n = cn(e);
628
+ for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), mn(t), bn(t), Z(t.content) && xn(t.content), (T ? T(t) : t.nodeType) === A.element) {
629
+ let e = x(t);
630
+ Z(e) && (Sn(e), xn(e));
631
+ }
632
+ $(F.afterSanitizeShadowDOM, e, null);
633
+ }, Sn = function(e) {
634
+ let t = [{
635
+ node: e,
636
+ shadow: null
637
+ }];
638
+ for (; t.length > 0;) {
639
+ let e = t.pop();
640
+ if (e.shadow) {
641
+ xn(e.shadow);
642
+ continue;
643
+ }
644
+ let n = e.node, r = (T ? T(n) : n.nodeType) === A.element, i = v(n);
645
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
646
+ node: i[e],
647
+ shadow: null
648
+ });
649
+ if (r) {
650
+ let e = D ? D(n) : null;
651
+ if (typeof e == "string" && q(e) === "template") {
652
+ let e = n.content;
653
+ Z(e) && t.push({
654
+ node: e,
655
+ shadow: null
656
+ });
657
+ }
658
+ }
659
+ if (r) {
660
+ let e = x(n);
661
+ Z(e) && t.push({
662
+ node: null,
663
+ shadow: e
664
+ }, {
665
+ node: e,
666
+ shadow: null
667
+ });
668
+ }
669
+ }
670
+ };
671
+ return t.sanitize = function(e) {
672
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
673
+ if (Rt = !e, Rt && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = pe(e), typeof e != "string")) throw C("dirty is not a string, aborting");
674
+ if (!t.isSupported) return e;
675
+ bt ? (I = xt, L = St) : Xt(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (I = O(I)), F.uponSanitizeAttribute.length > 0 && (L = O(L)), t.removed = [];
676
+ let c = At && typeof e != "string" && Q(e);
677
+ if (c) {
678
+ let t = D ? D(e) : e.nodeName;
679
+ if (typeof t == "string") {
680
+ let e = q(t);
681
+ if (!I[e] || pt[e]) throw C("root node is forbidden and cannot be sanitized in-place");
682
+ }
683
+ if (dn(e)) throw C("root node is clobbered and cannot be sanitized in-place");
684
+ try {
685
+ Sn(e);
686
+ } catch (t) {
687
+ throw rn(e), t;
688
+ }
689
+ } else if (Q(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Sn(a);
690
+ else {
691
+ if (!H && !B && !V && e.indexOf("<") === -1) return M && Tt ? P(e) : e;
692
+ if (i = sn(e), !i) return H ? null : Tt ? N : "";
693
+ }
694
+ i && Ct && Y(i.firstChild);
695
+ let l = cn(c ? e : i);
696
+ try {
697
+ for (; o = l.nextNode();) mn(o), bn(o), Z(o.content) && xn(o.content);
698
+ } catch (t) {
699
+ throw c && rn(e), t;
700
+ }
701
+ if (c) return te(t.removed, (e) => {
702
+ e.element && on(e.element);
703
+ }), B && un(e), e;
704
+ if (H) {
705
+ if (B && un(i), wt) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
706
+ else s = i;
707
+ return (L.shadowroot || L.shadowrootmode) && (s = tt.call(r, s, !0)), s;
708
+ }
709
+ let u = V ? i.outerHTML : i.innerHTML;
710
+ return V && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Pe, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), B && (u = ln(u)), M && Tt ? P(u) : u;
711
+ }, t.setConfig = function() {
712
+ Xt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), bt = !0, xt = I, St = L;
713
+ }, t.clearConfig = function() {
714
+ J = null, bt = !1, xt = null, St = null, M = We, N = "";
715
+ }, t.isValidAttribute = function(e, t, n) {
716
+ return J || Xt({}), hn(q(e), q(t), n);
717
+ }, t.addHook = function(e, t) {
718
+ typeof t == "function" && b(F, e) && g(F[e], t);
719
+ }, t.removeHook = function(e, t) {
720
+ if (b(F, e)) {
721
+ if (t !== void 0) {
722
+ let n = ne(F[e], t);
723
+ return n === -1 ? void 0 : ie(F[e], n, 1)[0];
724
+ }
725
+ return re(F[e]);
726
+ }
727
+ }, t.removeHooks = function(e) {
728
+ b(F, e) && (F[e] = []);
729
+ }, t.removeAllHooks = function() {
730
+ F = He();
731
+ }, t;
732
+ }
733
+ var M = Ue();
734
+ //#endregion
735
+ export { M as default };