@burdenoff/microfe-support 2026.818.1 → 2026.819.2

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 (127) hide show
  1. package/dist/generated/global-operations.d.ts +110 -0
  2. package/dist/generated/global-operations.js +259 -225
  3. package/dist/generated/global-operations.js.map +1 -1
  4. package/dist/generated/global-types.d.ts +42 -16
  5. package/dist/generated/global-types.js.map +1 -1
  6. package/dist/node_modules/clsx/dist/clsx.js +7 -5
  7. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  8. package/dist/node_modules/dompurify/dist/purify.es.js +399 -304
  9. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
  10. package/dist/node_modules/marked/lib/marked.esm.js +23 -17
  11. package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
  12. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +130 -130
  13. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  14. package/dist/support/SupportAdminRoot.js +4 -2
  15. package/dist/support/SupportAdminRoot.js.map +1 -1
  16. package/dist/support/SupportAdminRoutes.js +2 -2
  17. package/dist/support/SupportAdminRoutes.js.map +1 -1
  18. package/dist/support/SupportUserRoot.js +4 -2
  19. package/dist/support/SupportUserRoot.js.map +1 -1
  20. package/dist/support/SupportUserRoutes.js +2 -2
  21. package/dist/support/SupportUserRoutes.js.map +1 -1
  22. package/dist/support/components/NotificationToast.js.map +1 -1
  23. package/dist/support/components/PageLayout.js.map +1 -1
  24. package/dist/support/components/RouteHelpers.js.map +1 -1
  25. package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
  26. package/dist/support/components/analytics/MetricCard.js.map +1 -1
  27. package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
  28. package/dist/support/components/analytics/SLAReport.js.map +1 -1
  29. package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
  30. package/dist/support/components/analytics/TopAgents.js.map +1 -1
  31. package/dist/support/components/analytics/TrendChart.js +5 -5
  32. package/dist/support/components/analytics/TrendChart.js.map +1 -1
  33. package/dist/support/components/careers/BulkCandidateActionGuidance.d.ts +6 -0
  34. package/dist/support/components/careers/BulkCandidateActionGuidance.js +28 -0
  35. package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -0
  36. package/dist/support/components/careers/BulkCandidateDialogs.d.ts +22 -0
  37. package/dist/support/components/careers/BulkCandidateDialogs.js +446 -0
  38. package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -0
  39. package/dist/support/components/careers/BulkOperationFeedback.d.ts +21 -0
  40. package/dist/support/components/careers/BulkOperationFeedback.js +194 -0
  41. package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -0
  42. package/dist/support/components/careers/BulkSelectionSummary.d.ts +6 -0
  43. package/dist/support/components/careers/BulkSelectionSummary.js +15 -0
  44. package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -0
  45. package/dist/support/components/kb/ArticleForm.js.map +1 -1
  46. package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
  47. package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
  48. package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
  49. package/dist/support/components/tickets/AttachmentList.js.map +1 -1
  50. package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
  51. package/dist/support/components/tickets/MessageComposer.js +2 -2
  52. package/dist/support/components/tickets/MessageComposer.js.map +1 -1
  53. package/dist/support/components/tickets/MessageThread.js +1 -1
  54. package/dist/support/components/tickets/MessageThread.js.map +1 -1
  55. package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
  56. package/dist/support/components/tickets/TicketHeader.js.map +1 -1
  57. package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
  58. package/dist/support/constants/pipeline.js.map +1 -1
  59. package/dist/support/events/rybbit.js.map +1 -1
  60. package/dist/support/hooks/index.js +6 -5
  61. package/dist/support/hooks/useAnalyticsOperations.js +1 -1
  62. package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
  63. package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
  64. package/dist/support/hooks/useChatOperations.js +7 -7
  65. package/dist/support/hooks/useChatOperations.js.map +1 -1
  66. package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
  67. package/dist/support/hooks/useNotification.js.map +1 -1
  68. package/dist/support/hooks/useRegisterFooter.js.map +1 -1
  69. package/dist/support/hooks/useSettingsOperations.js.map +1 -1
  70. package/dist/support/hooks/useSupportAttachments.js.map +1 -1
  71. package/dist/support/hooks/useTicketListOperations.js.map +1 -1
  72. package/dist/support/hooks/useTicketOperations.js +76 -75
  73. package/dist/support/hooks/useTicketOperations.js.map +1 -1
  74. package/dist/support/index.js +11 -10
  75. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  76. package/dist/support/pages/ArticleDetailAdminPage.js +1 -1
  77. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  78. package/dist/support/pages/ArticleDetailUserPage.js +1 -1
  79. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  80. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  81. package/dist/support/pages/ContactInquiryDetailPage.js +4 -1
  82. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  83. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  84. package/dist/support/pages/CreateTicketPage.js +4 -3
  85. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  86. package/dist/support/pages/EditArticlePage.js.map +1 -1
  87. package/dist/support/pages/InterviewersPage.js +127 -127
  88. package/dist/support/pages/InterviewersPage.js.map +1 -1
  89. package/dist/support/pages/JobApplicationDetailPage.js +1 -1
  90. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  91. package/dist/support/pages/JobApplicationsPage.js +534 -631
  92. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  93. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  94. package/dist/support/pages/JobPostingsPage.js.map +1 -1
  95. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  96. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  97. package/dist/support/pages/SettingsPage.js.map +1 -1
  98. package/dist/support/pages/TicketDetailAdminPage.js +4 -1
  99. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  100. package/dist/support/pages/TicketDetailUserPage.js +4 -1
  101. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  102. package/dist/support/pages/TicketListPage.js.map +1 -1
  103. package/dist/support/providers/SupportProvider.js.map +1 -1
  104. package/dist/support/store/supportStore.js.map +1 -1
  105. package/dist/support/utils/attachments.js +3 -3
  106. package/dist/support/utils/attachments.js.map +1 -1
  107. package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
  108. package/dist/support/utils/bulkCandidateOperations.d.ts +174 -0
  109. package/dist/support/utils/bulkCandidateOperations.js +265 -0
  110. package/dist/support/utils/bulkCandidateOperations.js.map +1 -0
  111. package/dist/support/utils/bulkCandidateTargetQuery.d.ts +10 -0
  112. package/dist/support/utils/bulkCandidateTargetQuery.js +14 -0
  113. package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -0
  114. package/dist/support/utils/categoryColors.js.map +1 -1
  115. package/dist/support/utils/cn.js +1 -1
  116. package/dist/support/utils/cn.js.map +1 -1
  117. package/dist/support/utils/context.js.map +1 -1
  118. package/dist/support/utils/errors.js.map +1 -1
  119. package/dist/support/utils/i18n.js.map +1 -1
  120. package/dist/support/utils/index.js +1 -1
  121. package/dist/support/utils/index.js.map +1 -1
  122. package/dist/support/utils/markdown.js +2 -2
  123. package/dist/support/utils/markdown.js.map +1 -1
  124. package/dist/support/utils/supportFiles.js.map +1 -1
  125. package/dist/support/utils/ticketFilters.js.map +1 -1
  126. package/dist/support/utils/uiTokens.js.map +1 -1
  127. package/package.json +22 -12
@@ -38,33 +38,33 @@ function a(t, n) {
38
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
39
  }
40
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, ee = m.apply, te = m.construct;
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
42
  d ||= function(e) {
43
43
  return e;
44
44
  }, f ||= function(e) {
45
45
  return e;
46
- }, ee ||= function(e, t) {
46
+ }, h ||= function(e, t) {
47
47
  var n = [...arguments].slice(2);
48
48
  return e.apply(t, n);
49
- }, te ||= function(e) {
49
+ }, ee ||= function(e) {
50
50
  return new e(...[...arguments].slice(1));
51
51
  };
52
- var h = E(Array.prototype.forEach), ne = E(Array.prototype.lastIndexOf), re = E(Array.prototype.pop), g = E(Array.prototype.push), ie = E(Array.prototype.splice), _ = Array.isArray, v = E(String.prototype.toLowerCase), ae = E(String.prototype.toString), oe = E(String.prototype.match), y = E(String.prototype.replace), se = E(String.prototype.indexOf), ce = E(String.prototype.trim), le = E(Number.prototype.toString), b = E(Boolean.prototype.toString), x = typeof BigInt > "u" ? null : E(BigInt.prototype.toString), S = typeof Symbol > "u" ? null : E(Symbol.prototype.toString), C = E(Object.prototype.hasOwnProperty), w = E(Object.prototype.toString), T = E(RegExp.prototype.test), ue = D(TypeError);
53
- function E(e) {
52
+ var g = T(Array.prototype.forEach), te = T(Array.prototype.lastIndexOf), ne = T(Array.prototype.pop), _ = T(Array.prototype.push), re = T(Array.prototype.splice), v = Array.isArray, ie = T(String.prototype.toLowerCase), ae = T(String.prototype.toString), oe = T(String.prototype.match), se = T(String.prototype.replace), ce = T(String.prototype.indexOf), le = T(String.prototype.trim), ue = T(Number.prototype.toString), de = T(Boolean.prototype.toString), y = typeof BigInt > "u" ? null : T(BigInt.prototype.toString), b = typeof Symbol > "u" ? null : T(Symbol.prototype.toString), x = T(Object.prototype.hasOwnProperty), S = T(Object.prototype.toString), C = T(RegExp.prototype.test), w = E(TypeError);
53
+ function T(e) {
54
54
  return function(t) {
55
55
  t instanceof RegExp && (t.lastIndex = 0);
56
56
  var n = [...arguments].slice(1);
57
- return ee(e, t, n);
57
+ return h(e, t, n);
58
58
  };
59
59
  }
60
- function D(e) {
60
+ function E(e) {
61
61
  return function() {
62
- return te(e, [...arguments]);
62
+ return ee(e, [...arguments]);
63
63
  };
64
64
  }
65
- function O(e, t) {
66
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v;
67
- if (s && s(e, null), !_(t)) return e;
65
+ function D(e, t) {
66
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ie;
67
+ if (s && s(e, null), !v(t)) return e;
68
68
  let r = t.length;
69
69
  for (; r--;) {
70
70
  let i = t[r];
@@ -76,46 +76,46 @@ function O(e, t) {
76
76
  }
77
77
  return e;
78
78
  }
79
- function k(e) {
80
- for (let t = 0; t < e.length; t++) C(e, t) || (e[t] = null);
79
+ function O(e) {
80
+ for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
81
81
  return e;
82
82
  }
83
- function A(e) {
83
+ function k(e) {
84
84
  let t = p(null);
85
85
  for (let r of o(e)) {
86
86
  var n = i(r, 2);
87
87
  let a = n[0], o = n[1];
88
- C(e, a) && (_(o) ? t[a] = k(o) : o && typeof o == "object" && o.constructor === Object ? t[a] = A(o) : t[a] = o);
88
+ x(e, a) && (t[a] = v(o) ? O(o) : o && typeof o == "object" && o.constructor === Object ? k(o) : o);
89
89
  }
90
90
  return t;
91
91
  }
92
- function de(e) {
92
+ function fe(e) {
93
93
  switch (typeof e) {
94
94
  case "string": return e;
95
- case "number": return le(e);
96
- case "boolean": return b(e);
97
- case "bigint": return x ? x(e) : "0";
98
- case "symbol": return S ? S(e) : "Symbol()";
99
- case "undefined": return w(e);
95
+ case "number": return ue(e);
96
+ case "boolean": return de(e);
97
+ case "bigint": return y ? y(e) : "0";
98
+ case "symbol": return b ? b(e) : "Symbol()";
99
+ case "undefined": return S(e);
100
100
  case "function":
101
101
  case "object": {
102
- if (e === null) return w(e);
103
- let t = e, n = j(t, "toString");
102
+ if (e === null) return S(e);
103
+ let t = e, n = A(t, "toString");
104
104
  if (typeof n == "function") {
105
105
  let e = n(t);
106
- return typeof e == "string" ? e : w(e);
106
+ return typeof e == "string" ? e : S(e);
107
107
  }
108
- return w(e);
108
+ return S(e);
109
109
  }
110
- default: return w(e);
110
+ default: return S(e);
111
111
  }
112
112
  }
113
- function j(e, t) {
113
+ function A(e, t) {
114
114
  for (; e !== null;) {
115
115
  let n = u(e, t);
116
116
  if (n) {
117
- if (n.get) return E(n.get);
118
- if (typeof n.value == "function") return E(n.value);
117
+ if (n.get) return T(n.get);
118
+ if (typeof n.value == "function") return T(n.value);
119
119
  }
120
120
  e = l(e);
121
121
  }
@@ -124,14 +124,14 @@ function j(e, t) {
124
124
  }
125
125
  return n;
126
126
  }
127
- function fe(e) {
127
+ function pe(e) {
128
128
  try {
129
- return T(e, ""), !0;
129
+ return C(e, ""), !0;
130
130
  } catch {
131
131
  return !1;
132
132
  }
133
133
  }
134
- var pe = 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(".")), me = 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(".")), he = d([
134
+ var me = 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(".")), he = 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(".")), ge = d([
135
135
  "feBlend",
136
136
  "feColorMatrix",
137
137
  "feComponentTransfer",
@@ -157,7 +157,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
157
157
  "feSpotLight",
158
158
  "feTile",
159
159
  "feTurbulence"
160
- ]), ge = d([
160
+ ]), _e = d([
161
161
  "animate",
162
162
  "color-profile",
163
163
  "cursor",
@@ -180,7 +180,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
180
180
  "solidcolor",
181
181
  "unknown",
182
182
  "use"
183
- ]), _e = 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(".")), ve = d([
183
+ ]), ve = 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(".")), ye = d([
184
184
  "maction",
185
185
  "maligngroup",
186
186
  "malignmark",
@@ -196,28 +196,28 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
196
196
  "annotation-xml",
197
197
  "mprescripts",
198
198
  "none"
199
- ]), ye = d(["#text"]), be = 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(".")), xe = 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(".")), Se = 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(".")), Ce = d([
199
+ ]), be = d(["#text"]), xe = 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(".")), Se = 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.dominant-baseline.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-orientation.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(".")), Ce = 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(".")), we = d([
200
200
  "xlink:href",
201
201
  "xml:id",
202
202
  "xlink:title",
203
203
  "xml:space",
204
204
  "xmlns:xlink"
205
- ]), we = f(/{{[\w\W]*|^[\w\W]*}}/g), Te = f(/<%[\w\W]*|^[\w\W]*%>/g), Ee = f(/\${[\w\W]*/g), De = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Oe = f(/^aria-[\-\w]+$/), ke = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ae = f(/^(?:\w+script|data):/i), je = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Me = f(/^html$/i), Ne = f(/^[a-z][.\w]*(-[.\w]+)+$/i), M = {
205
+ ]), Te = f(/{{[\w\W]*|^[\w\W]*}}/g), Ee = f(/<%[\w\W]*|^[\w\W]*%>/g), De = f(/\${[\w\W]*/g), Oe = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), ke = f(/^aria-[\-\w]+$/), Ae = f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), je = f(/^(?:\w+script|data):/i), Me = f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ne = f(/^html$/i), Pe = f(/^[a-z][.\w]*(-[.\w]+)+$/i), Fe = f(/<[/\w!]/g), Ie = f(/<[/\w]/g), Le = f(/<\/no(script|embed|frames)/i), Re = f(/\/>/i), j = {
206
206
  element: 1,
207
207
  attribute: 2,
208
208
  text: 3,
209
209
  cdataSection: 4,
210
210
  entityReference: 5,
211
211
  entityNode: 6,
212
- progressingInstruction: 7,
212
+ processingInstruction: 7,
213
213
  comment: 8,
214
214
  document: 9,
215
215
  documentType: 10,
216
216
  documentFragment: 11,
217
217
  notation: 12
218
- }, Pe = function() {
218
+ }, ze = function() {
219
219
  return typeof window > "u" ? null : window;
220
- }, Fe = function(e, t) {
220
+ }, Be = function(e, t) {
221
221
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
222
222
  let n = null, r = "data-tt-policy-suffix";
223
223
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -234,7 +234,7 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
234
234
  } catch {
235
235
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
236
236
  }
237
- }, Ie = function() {
237
+ }, Ve = function() {
238
238
  return {
239
239
  afterSanitizeAttributes: [],
240
240
  afterSanitizeElements: [],
@@ -246,33 +246,53 @@ var pe = d(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
246
246
  uponSanitizeElement: [],
247
247
  uponSanitizeShadowNode: []
248
248
  };
249
+ }, M = function(e, t, n, r) {
250
+ return x(e, t) && v(e[t]) ? D(r.base ? k(r.base) : {}, e[t], r.transform) : n;
249
251
  };
250
- function Le() {
251
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Pe(), t = (e) => Le(e);
252
- if (t.version = "3.4.7", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
252
+ function He() {
253
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ze(), t = (e) => He(e);
254
+ if (t.version = "3.4.13", t.removed = [], !e || !e.document || e.document.nodeType !== j.document || !e.Element) return t.isSupported = !1, t;
253
255
  let n = e.document, r = n, i = r.currentScript;
254
256
  e.DocumentFragment;
255
257
  let a = e.HTMLTemplateElement, s = e.Node, c = e.Element, l = e.NodeFilter;
256
258
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
257
- let u = e.DOMParser, f = e.trustedTypes, m = c.prototype, ee = j(m, "cloneNode"), te = j(m, "remove"), le = j(m, "nextSibling"), b = j(m, "childNodes"), x = j(m, "parentNode"), S = j(m, "shadowRoot"), w = j(m, "attributes"), E = s && s.prototype ? j(s.prototype, "nodeType") : null, D = s && s.prototype ? j(s.prototype, "nodeName") : null;
259
+ let u = e.DOMParser, m = e.trustedTypes, h = c.prototype, ee = A(h, "cloneNode"), ue = A(h, "remove"), de = A(h, "nextSibling"), y = A(h, "childNodes"), b = A(h, "parentNode"), S = A(h, "shadowRoot"), T = A(h, "attributes"), E = s && s.prototype ? A(s.prototype, "nodeType") : null, O = s && s.prototype ? A(s.prototype, "nodeName") : null, Ue = s && s.prototype ? A(s.prototype, "ownerDocument") : null;
258
260
  if (typeof a == "function") {
259
261
  let e = n.createElement("template");
260
262
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
261
263
  }
262
- let k, N = "", Re = n, ze = Re.implementation, Be = Re.createNodeIterator, Ve = Re.createDocumentFragment, He = Re.getElementsByTagName, Ue = r.importNode, P = Ie();
263
- t.isSupported = typeof o == "function" && typeof x == "function" && ze && ze.createHTMLDocument !== void 0;
264
- let We = we, Ge = Te, Ke = Ee, qe = De, Je = Oe, Ye = Ae, Xe = je, Ze = Ne, Qe = ke, F = null, $e = O({}, [
265
- ...pe,
264
+ let N, P = "", We, Ge = !1, Ke = 0, qe = function() {
265
+ if (Ke > 0) throw w("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
+ }, F = function(e) {
267
+ qe(), Ke++;
268
+ try {
269
+ return N.createHTML(e);
270
+ } finally {
271
+ Ke--;
272
+ }
273
+ }, Je = function(e) {
274
+ qe(), Ke++;
275
+ try {
276
+ return N.createScriptURL(e);
277
+ } finally {
278
+ Ke--;
279
+ }
280
+ }, Ye = function() {
281
+ return Ge ||= (We = Be(m, i), !0), We;
282
+ }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, I = Ve();
283
+ t.isSupported = typeof o == "function" && typeof b == "function" && Ze && Ze.createHTMLDocument !== void 0;
284
+ let nt = Te, rt = Ee, it = De, at = Oe, ot = ke, st = je, ct = Me, lt = Pe, ut = Ae, L = null, dt = D({}, [
266
285
  ...me,
267
286
  ...he,
268
- ..._e,
269
- ...ye
270
- ]), I = null, et = O({}, [
271
- ...be,
287
+ ...ge,
288
+ ...ve,
289
+ ...be
290
+ ]), R = null, ft = D({}, [
272
291
  ...xe,
273
292
  ...Se,
274
- ...Ce
275
- ]), L = Object.seal(p(null, {
293
+ ...Ce,
294
+ ...we
295
+ ]), z = Object.seal(p(null, {
276
296
  tagNameCheck: {
277
297
  writable: !0,
278
298
  configurable: !1,
@@ -291,7 +311,7 @@ function Le() {
291
311
  enumerable: !0,
292
312
  value: !1
293
313
  }
294
- })), R = null, tt = null, z = Object.seal(p(null, {
314
+ })), pt = null, mt = null, B = Object.seal(p(null, {
295
315
  tagCheck: {
296
316
  writable: !0,
297
317
  configurable: !1,
@@ -304,40 +324,14 @@ function Le() {
304
324
  enumerable: !0,
305
325
  value: null
306
326
  }
307
- })), nt = !0, rt = !0, it = !1, at = !0, B = !1, V = !0, H = !1, ot = !1, st = !1, U = !1, ct = !1, lt = !1, ut = !0, dt = !1, ft = "user-content-", pt = !0, mt = !1, W = {}, G = null, ht = O({}, [
308
- "annotation-xml",
309
- "audio",
310
- "colgroup",
311
- "desc",
312
- "foreignobject",
313
- "head",
314
- "iframe",
315
- "math",
316
- "mi",
317
- "mn",
318
- "mo",
319
- "ms",
320
- "mtext",
321
- "noembed",
322
- "noframes",
323
- "noscript",
324
- "plaintext",
325
- "script",
326
- "style",
327
- "svg",
328
- "template",
329
- "thead",
330
- "title",
331
- "video",
332
- "xmp"
333
- ]), gt = null, _t = O({}, [
327
+ })), ht = !0, gt = !0, _t = !1, vt = !0, V = !1, H = !0, U = !1, yt = !1, bt = null, xt = null, St = !1, W = !1, Ct = !1, wt = !1, Tt = !0, Et = !1, Dt = "user-content-", Ot = !0, kt = !1, G = {}, K = null, At = D({}, /* @__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(".")), jt = null, Mt = D({}, [
334
328
  "audio",
335
329
  "video",
336
330
  "img",
337
331
  "source",
338
332
  "image",
339
333
  "track"
340
- ]), vt = null, yt = O({}, [
334
+ ]), Nt = null, Pt = D({}, [
341
335
  "alt",
342
336
  "class",
343
337
  "for",
@@ -352,128 +346,196 @@ function Le() {
352
346
  "value",
353
347
  "style",
354
348
  "xmlns"
355
- ]), bt = "http://www.w3.org/1998/Math/MathML", xt = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, St = !1, Ct = null, wt = O({}, [
356
- bt,
357
- xt,
358
- K
359
- ], ae), Tt = O({}, [
349
+ ]), Ft = "http://www.w3.org/1998/Math/MathML", It = "http://www.w3.org/2000/svg", q = "http://www.w3.org/1999/xhtml", J = q, Lt = !1, Rt = null, zt = D({}, [
350
+ Ft,
351
+ It,
352
+ q
353
+ ], ae), Bt = d([
360
354
  "mi",
361
355
  "mo",
362
356
  "mn",
363
357
  "ms",
364
358
  "mtext"
365
- ]), Et = O({}, ["annotation-xml"]), Dt = O({}, [
359
+ ]), Vt = D({}, Bt), Ht = d(["annotation-xml"]), Ut = D({}, Ht), Wt = D({}, [
366
360
  "title",
367
361
  "style",
368
362
  "font",
369
363
  "a",
370
364
  "script"
371
- ]), Ot = null, kt = ["application/xhtml+xml", "text/html"], J = null, Y = null, At = n.createElement("form"), jt = function(e) {
365
+ ]), Gt = null, Kt = ["application/xhtml+xml", "text/html"], Y = null, X = null, qt = n.createElement("form"), Jt = function(e) {
372
366
  return e instanceof RegExp || e instanceof Function;
373
- }, Mt = function() {
367
+ }, Yt = function() {
374
368
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
375
- if (Y && Y === e) return;
376
- (!e || typeof e != "object") && (e = {}), e = A(e), Ot = kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Ot === "application/xhtml+xml" ? ae : v, F = C(e, "ALLOWED_TAGS") && _(e.ALLOWED_TAGS) ? O({}, e.ALLOWED_TAGS, J) : $e, I = C(e, "ALLOWED_ATTR") && _(e.ALLOWED_ATTR) ? O({}, e.ALLOWED_ATTR, J) : et, Ct = C(e, "ALLOWED_NAMESPACES") && _(e.ALLOWED_NAMESPACES) ? O({}, e.ALLOWED_NAMESPACES, ae) : wt, vt = C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) ? O(A(yt), e.ADD_URI_SAFE_ATTR, J) : yt, gt = C(e, "ADD_DATA_URI_TAGS") && _(e.ADD_DATA_URI_TAGS) ? O(A(_t), e.ADD_DATA_URI_TAGS, J) : _t, G = C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) ? O({}, e.FORBID_CONTENTS, J) : ht, R = C(e, "FORBID_TAGS") && _(e.FORBID_TAGS) ? O({}, e.FORBID_TAGS, J) : A({}), tt = C(e, "FORBID_ATTR") && _(e.FORBID_ATTR) ? O({}, e.FORBID_ATTR, J) : A({}), W = C(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, nt = e.ALLOW_ARIA_ATTR !== !1, rt = e.ALLOW_DATA_ATTR !== !1, it = e.ALLOW_UNKNOWN_PROTOCOLS || !1, at = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, U = e.RETURN_DOM || !1, ct = e.RETURN_DOM_FRAGMENT || !1, lt = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, ut = e.SANITIZE_DOM !== !1, dt = e.SANITIZE_NAMED_PROPS || !1, pt = e.KEEP_CONTENT !== !1, mt = e.IN_PLACE || !1, Qe = fe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ke, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Tt = C(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? A(e.MATHML_TEXT_INTEGRATION_POINTS) : O({}, [
377
- "mi",
378
- "mo",
379
- "mn",
380
- "ms",
381
- "mtext"
382
- ]), Et = C(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? A(e.HTML_INTEGRATION_POINTS) : O({}, ["annotation-xml"]);
383
- let t = C(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? A(e.CUSTOM_ELEMENT_HANDLING) : p(null);
384
- if (L = p(null), C(t, "tagNameCheck") && jt(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), C(t, "attributeNameCheck") && jt(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), C(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), B && (rt = !1), ct && (U = !0), W && (F = O({}, ye), I = p(null), W.html === !0 && (O(F, pe), O(I, be)), W.svg === !0 && (O(F, me), O(I, xe), O(I, Ce)), W.svgFilters === !0 && (O(F, he), O(I, xe), O(I, Ce)), W.mathMl === !0 && (O(F, _e), O(I, Se), O(I, Ce))), z.tagCheck = null, z.attributeCheck = null, C(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? z.tagCheck = e.ADD_TAGS : _(e.ADD_TAGS) && (F === $e && (F = A(F)), O(F, e.ADD_TAGS, J))), C(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? z.attributeCheck = e.ADD_ATTR : _(e.ADD_ATTR) && (I === et && (I = A(I)), O(I, e.ADD_ATTR, J))), C(e, "ADD_URI_SAFE_ATTR") && _(e.ADD_URI_SAFE_ATTR) && O(vt, e.ADD_URI_SAFE_ATTR, J), C(e, "FORBID_CONTENTS") && _(e.FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.FORBID_CONTENTS, J)), C(e, "ADD_FORBID_CONTENTS") && _(e.ADD_FORBID_CONTENTS) && (G === ht && (G = A(G)), O(G, e.ADD_FORBID_CONTENTS, J)), pt && (F["#text"] = !0), H && O(F, [
369
+ if (X && X === e) return;
370
+ (!e || typeof e != "object") && (e = {}), e = k(e), Gt = Kt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Gt === "application/xhtml+xml" ? ae : ie, L = M(e, "ALLOWED_TAGS", dt, { transform: Y }), R = M(e, "ALLOWED_ATTR", ft, { transform: Y }), Rt = M(e, "ALLOWED_NAMESPACES", zt, { transform: ae }), Nt = M(e, "ADD_URI_SAFE_ATTR", Pt, {
371
+ transform: Y,
372
+ base: Pt
373
+ }), jt = M(e, "ADD_DATA_URI_TAGS", Mt, {
374
+ transform: Y,
375
+ base: Mt
376
+ }), K = M(e, "FORBID_CONTENTS", At, { transform: Y }), pt = M(e, "FORBID_TAGS", k({}), { transform: Y }), mt = M(e, "FORBID_ATTR", k({}), { transform: Y }), G = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? k(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, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, Ct = e.RETURN_DOM_FRAGMENT || !1, wt = e.RETURN_TRUSTED_TYPE || !1, St = e.FORCE_BODY || !1, Tt = e.SANITIZE_DOM !== !1, Et = e.SANITIZE_NAMED_PROPS || !1, Ot = e.KEEP_CONTENT !== !1, kt = e.IN_PLACE || !1, ut = pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ae, J = typeof e.NAMESPACE == "string" ? e.NAMESPACE : q, Vt = x(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? k(e.MATHML_TEXT_INTEGRATION_POINTS) : D({}, Bt), Ut = x(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? k(e.HTML_INTEGRATION_POINTS) : D({}, Ht);
377
+ let t = x(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? k(e.CUSTOM_ELEMENT_HANDLING) : p(null);
378
+ if (z = p(null), x(t, "tagNameCheck") && Jt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && Jt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), f(z), V && (gt = !1), Ct && (W = !0), G && (L = D({}, be), R = p(null), G.html === !0 && (D(L, me), D(R, xe)), G.svg === !0 && (D(L, he), D(R, Se), D(R, we)), G.svgFilters === !0 && (D(L, ge), D(R, Se), D(R, we)), G.mathMl === !0 && (D(L, ve), D(R, Ce), D(R, we))), B.tagCheck = null, B.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : v(e.ADD_TAGS) && (L === dt && (L = k(L)), D(L, e.ADD_TAGS, Y))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : v(e.ADD_ATTR) && (R === ft && (R = k(R)), D(R, e.ADD_ATTR, Y))), x(e, "ADD_URI_SAFE_ATTR") && v(e.ADD_URI_SAFE_ATTR) && D(Nt, e.ADD_URI_SAFE_ATTR, Y), x(e, "FORBID_CONTENTS") && v(e.FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.FORBID_CONTENTS, Y)), x(e, "ADD_FORBID_CONTENTS") && v(e.ADD_FORBID_CONTENTS) && (K === At && (K = k(K)), D(K, e.ADD_FORBID_CONTENTS, Y)), Ot && (L["#text"] = !0), U && D(L, [
385
379
  "html",
386
380
  "head",
387
381
  "body"
388
- ]), F.table && (O(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
389
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
390
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ue("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
391
- k = e.TRUSTED_TYPES_POLICY, N = k.createHTML("");
392
- } else k === void 0 && (k = Fe(f, i)), k !== null && typeof N == "string" && (N = k.createHTML(""));
393
- (P.uponSanitizeElement.length > 0 || P.uponSanitizeAttribute.length > 0) && F === $e && (F = A(F)), P.uponSanitizeAttribute.length > 0 && I === et && (I = A(I)), d && d(e), Y = e;
394
- }, Nt = O({}, [
395
- ...me,
382
+ ]), L.table && (D(L, ["tbody"]), delete pt.tbody), e.TRUSTED_TYPES_POLICY) {
383
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
384
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw w("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
385
+ let t = N;
386
+ N = e.TRUSTED_TYPES_POLICY;
387
+ try {
388
+ P = F("");
389
+ } catch (e) {
390
+ throw N = t, e;
391
+ }
392
+ } else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = Ye()), N && typeof P == "string" && (P = F("")));
393
+ d && d(e), X = e;
394
+ }, Xt = D({}, [
396
395
  ...he,
397
- ...ge
398
- ]), Pt = O({}, [..._e, ...ve]), Ft = function(e) {
399
- let t = x(e);
396
+ ...ge,
397
+ ..._e
398
+ ]), Zt = D({}, [...ve, ...ye]), Qt = function(e, t, n) {
399
+ return t.namespaceURI === q ? e === "svg" : t.namespaceURI === Ft ? e === "svg" && (n === "annotation-xml" || Vt[n]) : !!Xt[e];
400
+ }, $t = function(e, t, n) {
401
+ return t.namespaceURI === q ? e === "math" : t.namespaceURI === It ? e === "math" && Ut[n] : !!Zt[e];
402
+ }, en = function(e, t, n) {
403
+ return t.namespaceURI === It && !Ut[n] || t.namespaceURI === Ft && !Vt[n] ? !1 : !Zt[e] && (Wt[e] || !Xt[e]);
404
+ }, tn = function(e) {
405
+ let t = b(e);
400
406
  (!t || !t.tagName) && (t = {
401
- namespaceURI: q,
407
+ namespaceURI: J,
402
408
  tagName: "template"
403
409
  });
404
- let n = v(e.tagName), r = v(t.tagName);
405
- return Ct[e.namespaceURI] ? e.namespaceURI === xt ? t.namespaceURI === K ? n === "svg" : t.namespaceURI === bt ? n === "svg" && (r === "annotation-xml" || Tt[r]) : !!Nt[n] : e.namespaceURI === bt ? t.namespaceURI === K ? n === "math" : t.namespaceURI === xt ? n === "math" && Et[r] : !!Pt[n] : e.namespaceURI === K ? t.namespaceURI === xt && !Et[r] || t.namespaceURI === bt && !Tt[r] ? !1 : !Pt[n] && (Dt[n] || !Nt[n]) : !!(Ot === "application/xhtml+xml" && Ct[e.namespaceURI]) : !1;
406
- }, X = function(e) {
407
- g(t.removed, { element: e });
410
+ let n = ie(e.tagName), r = ie(t.tagName);
411
+ return Rt[e.namespaceURI] ? e.namespaceURI === It ? Qt(n, t, r) : e.namespaceURI === Ft ? $t(n, t, r) : e.namespaceURI === q ? en(n, t, r) : !!(Gt === "application/xhtml+xml" && Rt[e.namespaceURI]) : !1;
412
+ }, Z = function(e) {
413
+ _(t.removed, { element: e });
408
414
  try {
409
- x(e).removeChild(e);
415
+ b(e).removeChild(e);
410
416
  } catch {
411
- te(e);
417
+ if (ue(e), !b(e)) throw w("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
418
+ }
419
+ }, nn = function(e) {
420
+ an(e);
421
+ let t = y(e);
422
+ if (t) {
423
+ let e = [];
424
+ g(t, (t) => {
425
+ _(e, t);
426
+ }), g(e, (e) => {
427
+ try {
428
+ ue(e);
429
+ } catch {}
430
+ });
412
431
  }
413
- }, Z = function(e, n) {
432
+ let n = T(e);
433
+ if (n) for (let t = n.length - 1; t >= 0; --t) {
434
+ let r = n[t], i = r && r.name;
435
+ if (typeof i == "string") try {
436
+ e.removeAttribute(i);
437
+ } catch {}
438
+ }
439
+ }, Q = function(e, n) {
414
440
  try {
415
- g(t.removed, {
441
+ _(t.removed, {
416
442
  attribute: n.getAttributeNode(e),
417
443
  from: n
418
444
  });
419
445
  } catch {
420
- g(t.removed, {
446
+ _(t.removed, {
421
447
  attribute: null,
422
448
  from: n
423
449
  });
424
450
  }
425
- if (n.removeAttribute(e), e === "is") if (U || ct) try {
426
- X(n);
427
- } catch {}
428
- else try {
429
- n.setAttribute(e, "");
430
- } catch {}
431
- }, It = function(e) {
451
+ if (n.removeAttribute(e), e === "is") {
452
+ if (W || Ct) try {
453
+ Z(n);
454
+ } catch {}
455
+ else try {
456
+ n.setAttribute(e, "");
457
+ } catch {}
458
+ }
459
+ }, rn = function(e) {
460
+ let t = T(e);
461
+ if (t) for (let n = t.length - 1; n >= 0; --n) {
462
+ let r = t[n], i = r && r.name;
463
+ if (!(typeof i != "string" || R[Y(i)])) try {
464
+ e.removeAttribute(i);
465
+ } catch {}
466
+ }
467
+ }, an = function(e) {
468
+ let t = [e];
469
+ for (; t.length > 0;) {
470
+ let e = t.pop();
471
+ (E ? E(e) : e.nodeType) === j.element && rn(e);
472
+ let n = y(e);
473
+ if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
474
+ }
475
+ }, on = function(e) {
476
+ if (!H) return;
477
+ let t = [e];
478
+ for (; t.length > 0;) {
479
+ let e = t.pop(), n = E ? E(e) : e.nodeType;
480
+ if (n === j.processingInstruction || n === j.comment && C(Ie, e.data)) {
481
+ try {
482
+ ue(e);
483
+ } catch {}
484
+ continue;
485
+ }
486
+ if (n === j.element) {
487
+ let t = e, n = Y(O ? O(e) : e.nodeName);
488
+ try {
489
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
490
+ } catch {}
491
+ }
492
+ let r = y(e);
493
+ if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
494
+ }
495
+ }, sn = function(e) {
432
496
  let t = null, r = null;
433
- if (st) e = "<remove></remove>" + e;
497
+ if (St) e = "<remove></remove>" + e;
434
498
  else {
435
499
  let t = oe(e, /^[\r\n\t ]+/);
436
500
  r = t && t[0];
437
501
  }
438
- Ot === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
439
- let i = k ? k.createHTML(e) : e;
440
- if (q === K) try {
441
- t = new u().parseFromString(i, Ot);
502
+ Gt === "application/xhtml+xml" && J === q && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
503
+ let i = N ? F(e) : e;
504
+ if (J === q) try {
505
+ t = new u().parseFromString(i, Gt);
442
506
  } catch {}
443
507
  if (!t || !t.documentElement) {
444
- t = ze.createDocument(q, "template", null);
508
+ t = Ze.createDocument(J, "template", null);
445
509
  try {
446
- t.documentElement.innerHTML = St ? N : i;
510
+ t.documentElement.innerHTML = Lt ? P : i;
447
511
  } catch {}
448
512
  }
449
513
  let a = t.body || t.documentElement;
450
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? He.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
451
- }, Lt = function(e) {
452
- return Be.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
453
- }, Rt = function(e) {
514
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), J === q ? et.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
515
+ }, cn = function(e) {
516
+ let t = Ue ? Ue(e) : e.ownerDocument;
517
+ return Qe.call(t || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
518
+ }, ln = function(e) {
519
+ return e = se(e, nt, " "), e = se(e, rt, " "), e = se(e, it, " "), e;
520
+ }, un = function(e) {
454
521
  e.normalize();
455
- let t = Be.call(e.ownerDocument || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
456
- for (; n;) {
457
- let e = n.data;
458
- h([
459
- We,
460
- Ge,
461
- Ke
462
- ], (t) => {
463
- e = y(e, t, " ");
464
- }), n.data = e, n = t.nextNode();
465
- }
466
- }, zt = function(e) {
467
- let t = D ? D(e) : null;
468
- return typeof t != "string" || J(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 !== E(e) || e.childNodes !== b(e);
469
- }, Bt = function(e) {
522
+ let t = Ue ? Ue(e) : e.ownerDocument, n = Qe.call(t || e, e, l.SHOW_TEXT | l.SHOW_COMMENT | l.SHOW_CDATA_SECTION | l.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
523
+ for (; r;) r.data = ln(r.data), r = n.nextNode();
524
+ let i = e.querySelectorAll?.call(e, "template");
525
+ i && g(i, (e) => {
526
+ fn(e.content) && un(e.content);
527
+ });
528
+ }, dn = function(e) {
529
+ let t = O ? O(e) : null;
530
+ return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== T(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== E(e) || e.childNodes !== y(e);
531
+ }, fn = function(e) {
470
532
  if (!E || typeof e != "object" || !e) return !1;
471
533
  try {
472
- return E(e) === M.documentFragment;
534
+ return E(e) === j.documentFragment;
473
535
  } catch {
474
536
  return !1;
475
537
  }
476
- }, Vt = function(e) {
538
+ }, pn = function(e) {
477
539
  if (!E || typeof e != "object" || !e) return !1;
478
540
  try {
479
541
  return typeof E(e) == "number";
@@ -481,50 +543,57 @@ function Le() {
481
543
  return !1;
482
544
  }
483
545
  };
484
- function Q(e, n, r) {
485
- h(e, (e) => {
486
- e.call(t, n, r, Y);
546
+ function $(e, n, r) {
547
+ e.length !== 0 && g(e, (e) => {
548
+ e.call(t, n, r, X);
487
549
  });
488
550
  }
489
- let Ht = function(e) {
490
- let n = null;
491
- if (Q(P.beforeSanitizeElements, e, null), zt(e)) return X(e), !0;
492
- let r = J(e.nodeName);
493
- if (Q(P.uponSanitizeElement, e, {
494
- tagName: r,
495
- allowedTags: F
496
- }), V && e.hasChildNodes() && !Vt(e.firstElementChild) && T(/<[/\w!]/g, e.innerHTML) && T(/<[/\w!]/g, e.textContent) || V && e.namespaceURI === K && r === "style" && Vt(e.firstElementChild) || e.nodeType === M.progressingInstruction || V && e.nodeType === M.comment && T(/<[/\w]/g, e.data)) return X(e), !0;
497
- if (R[r] || !(z.tagCheck instanceof Function && z.tagCheck(r)) && !F[r]) {
498
- if (!R[r] && Gt(r) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r))) return !1;
499
- if (pt && !G[r]) {
500
- let t = x(e), n = b(e);
501
- if (n && t) {
502
- let r = n.length;
503
- for (let i = r - 1; i >= 0; --i) {
504
- let r = ee(n[i], !0);
505
- t.insertBefore(r, le(e));
506
- }
551
+ let mn = function(e, t) {
552
+ return !!(H && e.hasChildNodes() && !pn(e.firstElementChild) && C(Fe, e.textContent) && C(Fe, e.innerHTML) || H && e.namespaceURI === q && t === "style" && pn(e.firstElementChild) || e.nodeType === j.processingInstruction || H && e.nodeType === j.comment && C(Ie, e.data));
553
+ }, hn = function(e, t, n) {
554
+ if (!pt[t] && bn(t) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
555
+ if (Ot && !K[t]) {
556
+ let t = b(e), r = y(e);
557
+ if (r && t) {
558
+ let i = r.length;
559
+ for (let a = i - 1; a >= 0; --a) {
560
+ let i = e === n ? ee(r[a], !0) : r[a];
561
+ t.insertBefore(i, de(e));
507
562
  }
508
563
  }
509
- return X(e), !0;
510
- }
511
- return (E ? E(e) : e.nodeType) === M.element && !Ft(e) || (r === "noscript" || r === "noembed" || r === "noframes") && T(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (B && e.nodeType === M.text && (n = e.textContent, h([
512
- We,
513
- Ge,
514
- Ke
515
- ], (e) => {
516
- n = y(n, e, " ");
517
- }), e.textContent !== n && (g(t.removed, { element: e.cloneNode() }), e.textContent = n)), Q(P.afterSanitizeElements, e, null), !1);
518
- }, Ut = function(e, t, r) {
519
- if (tt[t] || ut && (t === "id" || t === "name") && (r in n || r in At)) return !1;
520
- let i = I[t] || z.attributeCheck instanceof Function && z.attributeCheck(t, e);
521
- if (!(rt && !tt[t] && T(qe, t)) && !(nt && T(Je, t))) {
522
- if (!i || tt[t]) {
523
- if (!(Gt(e) && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, e) || L.tagNameCheck instanceof Function && L.tagNameCheck(e)) && (L.attributeNameCheck instanceof RegExp && T(L.attributeNameCheck, t) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(t, e)) || t === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && T(L.tagNameCheck, r) || L.tagNameCheck instanceof Function && L.tagNameCheck(r)))) return !1;
524
- } else if (!vt[t] && !T(Qe, y(r, Xe, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && se(r, "data:") === 0 && gt[e]) && !(it && !T(Ye, y(r, Xe, ""))) && r) return !1;
564
+ }
565
+ return Z(e), !0;
566
+ }, gn = function(e, t, n, r) {
567
+ return e.length === 0 ? t : t === n || t === r ? k(t) : t;
568
+ }, _n = function(e, n) {
569
+ if ($(I.beforeSanitizeElements, e, null), e !== n && b(e) === null) return kt && an(e), !0;
570
+ if (dn(e)) return Z(e), !0;
571
+ let r = Y(O ? O(e) : e.nodeName);
572
+ if (L = gn(I.uponSanitizeElement, L, dt, bt), $(I.uponSanitizeElement, e, {
573
+ tagName: r,
574
+ allowedTags: L
575
+ }), e !== n && b(e) === null) return kt && an(e), !0;
576
+ if (mn(e, r)) return Z(e), !0;
577
+ if (pt[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
578
+ let t = hn(e, r, n);
579
+ return t === !1 && $(I.afterSanitizeElements, e, null), t;
580
+ }
581
+ if ((E ? E(e) : e.nodeType) === j.element && !tn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && C(Le, e.innerHTML)) return Z(e), !0;
582
+ if (V && e.nodeType === j.text) {
583
+ let n = ln(e.textContent);
584
+ e.textContent !== n && (_(t.removed, { element: e.cloneNode() }), e.textContent = n);
585
+ }
586
+ return $(I.afterSanitizeElements, e, null), !1;
587
+ }, vn = function(e, t, r) {
588
+ if (mt[t] || H && t === "patchsrc" || H && t === "for" && e !== "label" && e !== "output" || Tt && (t === "id" || t === "name") && (r in n || r in qt)) return !1;
589
+ let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
590
+ if (!(gt && C(at, t)) && !(ht && C(ot, t))) {
591
+ if (!i) {
592
+ if (!(bn(e) && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && C(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && C(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
593
+ } else if (!Nt[t] && !C(ut, se(r, ct, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ce(r, "data:") === 0 && jt[e]) && !(_t && !C(st, se(r, ct, ""))) && r) return !1;
525
594
  }
526
595
  return !0;
527
- }, Wt = O({}, [
596
+ }, yn = D({}, [
528
597
  "annotation-xml",
529
598
  "color-profile",
530
599
  "font-face",
@@ -533,149 +602,175 @@ function Le() {
533
602
  "font-face-src",
534
603
  "font-face-uri",
535
604
  "missing-glyph"
536
- ]), Gt = function(e) {
537
- return !Wt[v(e)] && T(Ze, e);
538
- }, Kt = function(e) {
539
- Q(P.beforeSanitizeAttributes, e, null);
540
- let n = e.attributes;
541
- if (!n || zt(e)) return;
542
- let r = {
605
+ ]), bn = function(e) {
606
+ return !yn[ie(e)] && C(lt, e);
607
+ }, xn = function(e, t, n, r) {
608
+ if (N && typeof m == "object" && typeof m.getAttributeType == "function" && !n) switch (m.getAttributeType(e, t)) {
609
+ case "TrustedHTML": return F(r);
610
+ case "TrustedScriptURL": return Je(r);
611
+ }
612
+ return r;
613
+ }, Sn = function(e, n, r, i) {
614
+ try {
615
+ r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), dn(e) ? Z(e) : ne(t.removed);
616
+ } catch {
617
+ Q(n, e);
618
+ }
619
+ }, Cn = function(e) {
620
+ $(I.beforeSanitizeAttributes, e, null);
621
+ let t = e.attributes;
622
+ if (!t || dn(e)) return;
623
+ R = gn(I.uponSanitizeAttribute, R, ft, xt);
624
+ let n = {
543
625
  attrName: "",
544
626
  attrValue: "",
545
627
  keepAttr: !0,
546
- allowedAttributes: I,
628
+ allowedAttributes: R,
547
629
  forceKeepAttr: void 0
548
- }, i = n.length;
549
- for (; i--;) {
550
- let a = n[i], o = a.name, s = a.namespaceURI, c = a.value, l = J(o), u = c, d = o === "value" ? u : ce(u);
551
- if (r.attrName = l, r.attrValue = d, r.keepAttr = !0, r.forceKeepAttr = void 0, Q(P.uponSanitizeAttribute, e, r), d = r.attrValue, dt && (l === "id" || l === "name") && se(d, ft) !== 0 && (Z(o, e), d = ft + d), V && T(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
552
- Z(o, e);
630
+ }, r = t.length, i = Y(e.nodeName);
631
+ for (; r--;) {
632
+ let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : le(u);
633
+ if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, n), d = n.attrValue, Et && (l === "id" || l === "name") && ce(d, Dt) !== 0 && (Q(o, e), d = Dt + d), H && C(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
634
+ Q(o, e);
553
635
  continue;
554
636
  }
555
637
  if (l === "attributename" && oe(d, "href")) {
556
- Z(o, e);
638
+ Q(o, e);
557
639
  continue;
558
640
  }
559
- if (r.forceKeepAttr) continue;
560
- if (!r.keepAttr) {
561
- Z(o, e);
562
- continue;
641
+ if (!n.forceKeepAttr) {
642
+ if (!n.keepAttr) {
643
+ Q(o, e);
644
+ continue;
645
+ }
646
+ if (!vt && C(Re, d)) {
647
+ Q(o, e);
648
+ continue;
649
+ }
650
+ if (V && (d = ln(d)), !vn(i, l, d)) {
651
+ Q(o, e);
652
+ continue;
653
+ }
654
+ d = xn(i, l, s, d), d !== u && Sn(e, o, s, d);
563
655
  }
564
- if (!at && T(/\/>/i, d)) {
565
- Z(o, e);
656
+ }
657
+ $(I.afterSanitizeAttributes, e, null);
658
+ }, wn = function(e) {
659
+ let t = null, n = cn(e);
660
+ for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), _n(t, e), Cn(t), fn(t.content) && wn(t.content), (E ? E(t) : t.nodeType) === j.element) {
661
+ let e = S(t);
662
+ fn(e) && (Tn(e), wn(e));
663
+ }
664
+ $(I.afterSanitizeShadowDOM, e, null);
665
+ }, Tn = function(e) {
666
+ let t = [{
667
+ node: e,
668
+ shadow: null
669
+ }];
670
+ for (; t.length > 0;) {
671
+ let e = t.pop();
672
+ if (e.shadow) {
673
+ wn(e.shadow);
566
674
  continue;
567
675
  }
568
- B && h([
569
- We,
570
- Ge,
571
- Ke
572
- ], (e) => {
573
- d = y(d, e, " ");
676
+ let n = e.node, r = (E ? E(n) : n.nodeType) === j.element, i = y(n);
677
+ if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
678
+ node: i[e],
679
+ shadow: null
574
680
  });
575
- let p = J(e.nodeName);
576
- if (!Ut(p, l, d)) {
577
- Z(o, e);
578
- continue;
579
- }
580
- if (k && typeof f == "object" && typeof f.getAttributeType == "function" && !s) switch (f.getAttributeType(p, l)) {
581
- case "TrustedHTML":
582
- d = k.createHTML(d);
583
- break;
584
- case "TrustedScriptURL":
585
- d = k.createScriptURL(d);
586
- break;
587
- }
588
- if (d !== u) try {
589
- s ? e.setAttributeNS(s, o, d) : e.setAttribute(o, d), zt(e) ? X(e) : re(t.removed);
590
- } catch {
591
- Z(o, e);
681
+ if (r) {
682
+ let e = O ? O(n) : null;
683
+ if (typeof e == "string" && Y(e) === "template") {
684
+ let e = n.content;
685
+ fn(e) && t.push({
686
+ node: e,
687
+ shadow: null
688
+ });
689
+ }
592
690
  }
593
- }
594
- Q(P.afterSanitizeAttributes, e, null);
595
- }, qt = function(e) {
596
- let t = null, n = Lt(e);
597
- for (Q(P.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Q(P.uponSanitizeShadowNode, t, null), Ht(t), Kt(t), Bt(t.content) && qt(t.content), (E ? E(t) : t.nodeType) === M.element) {
598
- let e = S ? S(t) : t.shadowRoot;
599
- Bt(e) && ($(e), qt(e));
600
- }
601
- Q(P.afterSanitizeShadowDOM, e, null);
602
- }, $ = function(e) {
603
- let t = E ? E(e) : e.nodeType;
604
- if (t === M.element) {
605
- let t = S ? S(e) : e.shadowRoot;
606
- Bt(t) && ($(t), qt(t));
607
- }
608
- let n = b ? b(e) : e.childNodes;
609
- if (!n) return;
610
- let r = [];
611
- h(n, (e) => {
612
- g(r, e);
613
- });
614
- for (let e of r) $(e);
615
- if (t === M.element) {
616
- let t = D ? D(e) : null;
617
- if (typeof t == "string" && J(t) === "template") {
618
- let t = e.content;
619
- Bt(t) && $(t);
691
+ if (r) {
692
+ let e = S(n);
693
+ fn(e) && t.push({
694
+ node: null,
695
+ shadow: e
696
+ }, {
697
+ node: e,
698
+ shadow: null
699
+ });
620
700
  }
621
701
  }
622
702
  };
623
703
  return t.sanitize = function(e) {
624
704
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
625
- if (St = !e, St && (e = "<!-->"), typeof e != "string" && !Vt(e) && (e = de(e), typeof e != "string")) throw ue("dirty is not a string, aborting");
705
+ if (Lt = !e, Lt && (e = "<!-->"), typeof e != "string" && !pn(e) && (e = fe(e), typeof e != "string")) throw w("dirty is not a string, aborting");
626
706
  if (!t.isSupported) return e;
627
- if (ot || Mt(n), t.removed = [], typeof e == "string" && (mt = !1), mt) {
628
- let t = D ? D(e) : e.nodeName;
707
+ yt ? (L = bt, R = xt) : Yt(n), (I.uponSanitizeElement.length > 0 || I.uponSanitizeAttribute.length > 0) && (L = k(L)), I.uponSanitizeAttribute.length > 0 && (R = k(R)), t.removed = [];
708
+ let c = kt && typeof e != "string" && pn(e);
709
+ if (c) {
710
+ on(e);
711
+ let t = O ? O(e) : e.nodeName;
629
712
  if (typeof t == "string") {
630
- let e = J(t);
631
- if (!F[e] || R[e]) throw ue("root node is forbidden and cannot be sanitized in-place");
713
+ let n = Y(t);
714
+ if (!L[n] || pt[n]) throw nn(e), w("root node is forbidden and cannot be sanitized in-place");
632
715
  }
633
- if (zt(e)) throw ue("root node is clobbered and cannot be sanitized in-place");
634
- $(e);
635
- } else if (Vt(e)) i = It("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), $(a);
716
+ if (dn(e)) throw nn(e), w("root node is clobbered and cannot be sanitized in-place");
717
+ try {
718
+ Tn(e);
719
+ } catch (t) {
720
+ throw nn(e), t;
721
+ }
722
+ } else if (pn(e)) i = sn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === j.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Tn(a);
636
723
  else {
637
- if (!U && !B && !H && e.indexOf("<") === -1) return k && lt ? k.createHTML(e) : e;
638
- if (i = It(e), !i) return U ? null : lt ? N : "";
639
- }
640
- i && st && X(i.firstChild);
641
- let c = Lt(mt ? e : i);
642
- for (; o = c.nextNode();) Ht(o), Kt(o), Bt(o.content) && qt(o.content);
643
- if (mt) return B && Rt(e), e;
644
- if (U) {
645
- if (B && Rt(i), ct) for (s = Ve.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
724
+ if (!W && !V && !U && e.indexOf("<") === -1) return N && wt ? F(e) : e;
725
+ if (i = sn(e), !i) return W ? null : wt ? P : "";
726
+ }
727
+ i && St && Z(i.firstChild);
728
+ let l = c ? e : i;
729
+ try {
730
+ let e = cn(l);
731
+ for (; o = e.nextNode();) _n(o, l), Cn(o), fn(o.content) && wn(o.content);
732
+ } catch (n) {
733
+ throw c && (nn(e), g(t.removed, (e) => {
734
+ e.element && an(e.element);
735
+ })), n;
736
+ }
737
+ if (c) return g(t.removed, (e) => {
738
+ e.element && an(e.element);
739
+ }), V && un(e), e;
740
+ if (W) {
741
+ if (V && un(i), Ct) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
646
742
  else s = i;
647
- return (I.shadowroot || I.shadowrootmode) && (s = Ue.call(r, s, !0)), s;
648
- }
649
- let l = H ? i.outerHTML : i.innerHTML;
650
- return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && T(Me, i.ownerDocument.doctype.name) && (l = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + l), B && h([
651
- We,
652
- Ge,
653
- Ke
654
- ], (e) => {
655
- l = y(l, e, " ");
656
- }), k && lt ? k.createHTML(l) : l;
743
+ return (R.shadowroot || R.shadowrootmode) && (s = tt.call(r, s, !0)), s;
744
+ }
745
+ let u = U ? i.outerHTML : i.innerHTML;
746
+ return U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && C(Ne, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), V && (u = ln(u)), N && wt ? F(u) : u;
657
747
  }, t.setConfig = function() {
658
- Mt(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
748
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
749
+ Yt(e), yt = !0, bt = L, xt = R;
659
750
  }, t.clearConfig = function() {
660
- Y = null, ot = !1;
751
+ X = null, yt = !1, bt = null, xt = null, N = We, P = "";
661
752
  }, t.isValidAttribute = function(e, t, n) {
662
- return Y || Mt({}), Ut(J(e), J(t), n);
753
+ X || Yt({});
754
+ let r = Y(e), i = Y(t);
755
+ return vn(r, i, n);
663
756
  }, t.addHook = function(e, t) {
664
- typeof t == "function" && g(P[e], t);
757
+ typeof t == "function" && x(I, e) && _(I[e], t);
665
758
  }, t.removeHook = function(e, t) {
666
- if (t !== void 0) {
667
- let n = ne(P[e], t);
668
- return n === -1 ? void 0 : ie(P[e], n, 1)[0];
759
+ if (x(I, e)) {
760
+ if (t !== void 0) {
761
+ let n = te(I[e], t);
762
+ return n === -1 ? void 0 : re(I[e], n, 1)[0];
763
+ }
764
+ return ne(I[e]);
669
765
  }
670
- return re(P[e]);
671
766
  }, t.removeHooks = function(e) {
672
- P[e] = [];
767
+ x(I, e) && (I[e] = []);
673
768
  }, t.removeAllHooks = function() {
674
- P = Ie();
769
+ I = Ve();
675
770
  }, t;
676
771
  }
677
- var N = Le();
772
+ var Ue = He();
678
773
  //#endregion
679
- export { N as purify };
774
+ export { Ue as default };
680
775
 
681
776
  //# sourceMappingURL=purify.es.js.map