@burdenoff/microfe-support 2026.1029.2 → 2026.1031.1

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