@burdenoff/microfe-support 2026.1029.3 → 2026.1031.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.
- package/dist/generated/global-operations.js +1 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +701 -712
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js +1 -2
- package/dist/node_modules/@tiptap/core/dist/rolldown-runtime-D7D4PA-g.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +15 -16
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +25 -26
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +16 -17
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +71 -80
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +77 -90
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +112 -113
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +5 -10
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -2
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +1 -2
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +357 -347
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +1 -2
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +1 -2
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +10 -70
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/orderedmap/dist/index.js +1 -2
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +107 -108
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +12 -13
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +42 -47
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +47 -49
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +15 -16
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +37 -41
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +36 -37
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +1 -2
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +302 -304
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +1 -2
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -1
- package/dist/node_modules/w3c-keyname/index.js.map +1 -1
- package/dist/support/SupportAdminRoot.js +14 -15
- package/dist/support/SupportAdminRoot.js.map +1 -1
- package/dist/support/SupportAdminRoutes.js +5 -6
- package/dist/support/SupportAdminRoutes.js.map +1 -1
- package/dist/support/SupportUserRoot.js +10 -11
- package/dist/support/SupportUserRoot.js.map +1 -1
- package/dist/support/SupportUserRoutes.js +1 -2
- package/dist/support/SupportUserRoutes.js.map +1 -1
- package/dist/support/components/NotificationToast.js +1 -2
- package/dist/support/components/NotificationToast.js.map +1 -1
- package/dist/support/components/PageLayout.js +15 -16
- package/dist/support/components/PageLayout.js.map +1 -1
- package/dist/support/components/RouteHelpers.js +1 -2
- package/dist/support/components/RouteHelpers.js.map +1 -1
- package/dist/support/components/analytics/CategoryBreakdown.js +9 -10
- package/dist/support/components/analytics/CategoryBreakdown.js.map +1 -1
- package/dist/support/components/analytics/MetricCard.js +1 -2
- package/dist/support/components/analytics/MetricCard.js.map +1 -1
- package/dist/support/components/analytics/PriorityBreakdown.js +9 -10
- package/dist/support/components/analytics/PriorityBreakdown.js.map +1 -1
- package/dist/support/components/analytics/SLAReport.js +5 -6
- package/dist/support/components/analytics/SLAReport.js.map +1 -1
- package/dist/support/components/analytics/SatisfactionDistribution.js +5 -6
- package/dist/support/components/analytics/SatisfactionDistribution.js.map +1 -1
- package/dist/support/components/analytics/TopAgents.js +5 -6
- package/dist/support/components/analytics/TopAgents.js.map +1 -1
- package/dist/support/components/analytics/TrendChart.js +5 -6
- package/dist/support/components/analytics/TrendChart.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateActionGuidance.js +1 -2
- package/dist/support/components/careers/BulkCandidateActionGuidance.js.map +1 -1
- package/dist/support/components/careers/BulkCandidateDialogs.js +321 -322
- package/dist/support/components/careers/BulkCandidateDialogs.js.map +1 -1
- package/dist/support/components/careers/BulkOperationFeedback.js +1 -2
- package/dist/support/components/careers/BulkOperationFeedback.js.map +1 -1
- package/dist/support/components/careers/BulkSelectionSummary.js +1 -2
- package/dist/support/components/careers/BulkSelectionSummary.js.map +1 -1
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js +1 -2
- package/dist/support/components/careers/JobApplicationFilterContextGuard.js.map +1 -1
- package/dist/support/components/careers/RichTextEditor.js +17 -18
- package/dist/support/components/careers/RichTextEditor.js.map +1 -1
- package/dist/support/components/kb/ArticleForm.js +10 -11
- package/dist/support/components/kb/ArticleForm.js.map +1 -1
- package/dist/support/components/settings/CannedResponsesSettings.js +2 -3
- package/dist/support/components/settings/CannedResponsesSettings.js.map +1 -1
- package/dist/support/components/settings/SLAPoliciesSettings.js +1 -2
- package/dist/support/components/settings/SLAPoliciesSettings.js.map +1 -1
- package/dist/support/components/settings/TicketCategoriesSettings.js +3 -8
- package/dist/support/components/settings/TicketCategoriesSettings.js.map +1 -1
- package/dist/support/components/tickets/AttachmentList.js +4 -5
- package/dist/support/components/tickets/AttachmentList.js.map +1 -1
- package/dist/support/components/tickets/MarkdownContent.js +1 -2
- package/dist/support/components/tickets/MarkdownContent.js.map +1 -1
- package/dist/support/components/tickets/MessageComposer.js +1 -2
- package/dist/support/components/tickets/MessageComposer.js.map +1 -1
- package/dist/support/components/tickets/MessageThread.js +13 -14
- package/dist/support/components/tickets/MessageThread.js.map +1 -1
- package/dist/support/components/tickets/TicketDetailHeader.js +13 -14
- package/dist/support/components/tickets/TicketDetailHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketHeader.js +1 -2
- package/dist/support/components/tickets/TicketHeader.js.map +1 -1
- package/dist/support/components/tickets/TicketSidebar.js +6 -7
- package/dist/support/components/tickets/TicketSidebar.js.map +1 -1
- package/dist/support/components/tickets/TriagePanel.js +25 -26
- package/dist/support/components/tickets/TriagePanel.js.map +1 -1
- package/dist/support/components/ui.js +1 -2
- package/dist/support/constants/pipeline.js +1 -2
- package/dist/support/constants/pipeline.js.map +1 -1
- package/dist/support/constants.js +1 -2
- package/dist/support/constants.js.map +1 -1
- package/dist/support/events/rybbit.js +1 -2
- package/dist/support/events/rybbit.js.map +1 -1
- package/dist/support/hooks/index.js +6 -6
- package/dist/support/hooks/useAnalyticsOperations.js +1 -2
- package/dist/support/hooks/useAnalyticsOperations.js.map +1 -1
- package/dist/support/hooks/useAttachmentsFailedToast.js +1 -2
- package/dist/support/hooks/useAttachmentsFailedToast.js.map +1 -1
- package/dist/support/hooks/useChatOperations.js +14 -15
- package/dist/support/hooks/useChatOperations.js.map +1 -1
- package/dist/support/hooks/useDebouncedUrlText.js +1 -2
- package/dist/support/hooks/useDebouncedUrlText.js.map +1 -1
- package/dist/support/hooks/useKnowledgeBaseOperations.js +62 -63
- package/dist/support/hooks/useKnowledgeBaseOperations.js.map +1 -1
- package/dist/support/hooks/useNotification.js +1 -2
- package/dist/support/hooks/useNotification.js.map +1 -1
- package/dist/support/hooks/useRegisterFooter.js +1 -2
- package/dist/support/hooks/useRegisterFooter.js.map +1 -1
- package/dist/support/hooks/useSettingsOperations.js +1 -2
- package/dist/support/hooks/useSettingsOperations.js.map +1 -1
- package/dist/support/hooks/useSupportAttachments.js +1 -2
- package/dist/support/hooks/useSupportAttachments.js.map +1 -1
- package/dist/support/hooks/useTicketListOperations.js +9 -10
- package/dist/support/hooks/useTicketListOperations.js.map +1 -1
- package/dist/support/hooks/useTicketOperations.js +57 -58
- package/dist/support/hooks/useTicketOperations.js.map +1 -1
- package/dist/support/hooks/useTr.js +1 -2
- package/dist/support/hooks/useTr.js.map +1 -1
- package/dist/support/index.js +4 -4
- package/dist/support/pages/AnalyticsPage.js +34 -35
- package/dist/support/pages/AnalyticsPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailAdminPage.js +33 -38
- package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
- package/dist/support/pages/ArticleDetailUserPage.js +22 -23
- package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
- package/dist/support/pages/ContactInquiriesPage.js +5 -6
- package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
- package/dist/support/pages/ContactInquiryDetailPage.js +13 -14
- package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
- package/dist/support/pages/CreateArticlePage.js +15 -16
- package/dist/support/pages/CreateArticlePage.js.map +1 -1
- package/dist/support/pages/CreateTicketPage.js +37 -44
- package/dist/support/pages/CreateTicketPage.js.map +1 -1
- package/dist/support/pages/EditArticlePage.js +20 -21
- package/dist/support/pages/EditArticlePage.js.map +1 -1
- package/dist/support/pages/InterviewersPage.js +121 -122
- package/dist/support/pages/InterviewersPage.js.map +1 -1
- package/dist/support/pages/JobApplicationDetailPage.js +322 -332
- package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
- package/dist/support/pages/JobApplicationsPage.js +556 -561
- package/dist/support/pages/JobApplicationsPage.js.map +1 -1
- package/dist/support/pages/JobPostingDetailPage.js +489 -490
- package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
- package/dist/support/pages/JobPostingsPage.js +279 -280
- package/dist/support/pages/JobPostingsPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseAdminPage.js +26 -27
- package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
- package/dist/support/pages/KnowledgeBaseUserPage.js +23 -24
- package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
- package/dist/support/pages/SettingsPage.js +43 -44
- package/dist/support/pages/SettingsPage.js.map +1 -1
- package/dist/support/pages/TicketDetailAdminPage.js +54 -55
- package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
- package/dist/support/pages/TicketDetailUserPage.js +61 -62
- package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
- package/dist/support/pages/TicketListPage.js +77 -78
- package/dist/support/pages/TicketListPage.js.map +1 -1
- package/dist/support/providers/SupportProvider.js +1 -2
- package/dist/support/providers/SupportProvider.js.map +1 -1
- package/dist/support/store/supportStore.js +1 -2
- package/dist/support/store/supportStore.js.map +1 -1
- package/dist/support/translations/en.js +1 -2
- package/dist/support/translations/en.js.map +1 -1
- package/dist/support/utils/attachments.js +1 -2
- package/dist/support/utils/attachments.js.map +1 -1
- package/dist/support/utils/breadcrumbRegistry.js +3 -4
- package/dist/support/utils/breadcrumbRegistry.js.map +1 -1
- package/dist/support/utils/bulkCandidateOperations.js +0 -1
- package/dist/support/utils/bulkCandidateOperations.js.map +1 -1
- package/dist/support/utils/bulkCandidateTargetQuery.js +1 -2
- package/dist/support/utils/bulkCandidateTargetQuery.js.map +1 -1
- package/dist/support/utils/categoryColors.js +1 -2
- package/dist/support/utils/categoryColors.js.map +1 -1
- package/dist/support/utils/cn.js +1 -2
- package/dist/support/utils/cn.js.map +1 -1
- package/dist/support/utils/context.js +3 -4
- package/dist/support/utils/context.js.map +1 -1
- package/dist/support/utils/errors.js +1 -2
- package/dist/support/utils/errors.js.map +1 -1
- package/dist/support/utils/i18n.js +1 -2
- package/dist/support/utils/i18n.js.map +1 -1
- package/dist/support/utils/index.js +1 -2
- package/dist/support/utils/index.js.map +1 -1
- package/dist/support/utils/jobApplicationFilterParams.js +1 -2
- package/dist/support/utils/jobApplicationFilterParams.js.map +1 -1
- package/dist/support/utils/markdown.js +1 -2
- package/dist/support/utils/markdown.js.map +1 -1
- package/dist/support/utils/supportFiles.js +2 -11
- package/dist/support/utils/supportFiles.js.map +1 -1
- package/dist/support/utils/ticketFilters.js +1 -2
- package/dist/support/utils/ticketFilters.js.map +1 -1
- package/dist/support/utils/uiTokens.js +1 -2
- package/dist/support/utils/uiTokens.js.map +1 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +21 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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 =
|
|
105
|
+
var g = T(Array.prototype.forEach);
|
|
106
106
|
Array.prototype.indexOf;
|
|
107
|
-
var re =
|
|
108
|
-
|
|
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
|
|
115
|
+
function E(e) {
|
|
118
116
|
return function() {
|
|
119
117
|
return ne(e, [...arguments]);
|
|
120
118
|
};
|
|
121
119
|
}
|
|
122
|
-
function
|
|
123
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
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
|
|
137
|
-
for (let t = 0; t < e.length; t++)
|
|
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
|
|
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
|
-
|
|
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
|
|
147
|
+
function ye(e) {
|
|
150
148
|
switch (typeof e) {
|
|
151
149
|
case "string": return e;
|
|
152
|
-
case "number": return
|
|
153
|
-
case "boolean": return
|
|
154
|
-
case "bigint": return
|
|
155
|
-
case "symbol": return
|
|
156
|
-
case "undefined": return
|
|
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
|
|
160
|
-
let t = e, n =
|
|
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 :
|
|
161
|
+
return typeof e == "string" ? e : S(e);
|
|
164
162
|
}
|
|
165
|
-
return
|
|
163
|
+
return S(e);
|
|
166
164
|
}
|
|
167
|
-
default: return
|
|
165
|
+
default: return S(e);
|
|
168
166
|
}
|
|
169
167
|
}
|
|
170
|
-
function
|
|
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
|
|
175
|
-
if (typeof n.value == "function") return
|
|
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
|
|
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
|
|
192
|
+
return C(e, ""), !0;
|
|
187
193
|
} catch {
|
|
188
194
|
return !1;
|
|
189
195
|
}
|
|
190
196
|
}
|
|
191
|
-
var
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
},
|
|
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
|
-
]
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
322
|
-
},
|
|
323
|
-
let r =
|
|
324
|
-
return r && typeof r == "object" ?
|
|
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
|
|
327
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
328
|
-
if (t.version = "3.4.
|
|
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 =
|
|
334
|
-
return
|
|
335
|
-
},
|
|
336
|
-
return
|
|
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
|
|
343
|
-
if (
|
|
344
|
-
},
|
|
345
|
-
|
|
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
|
|
350
|
+
return N.createHTML(e);
|
|
348
351
|
} finally {
|
|
349
|
-
|
|
352
|
+
it--;
|
|
350
353
|
}
|
|
351
|
-
},
|
|
352
|
-
|
|
354
|
+
}, ot = function(e) {
|
|
355
|
+
at(), it++;
|
|
353
356
|
try {
|
|
354
|
-
return
|
|
357
|
+
return N.createScriptURL(e);
|
|
355
358
|
} finally {
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
return
|
|
360
|
-
},
|
|
361
|
-
t.isSupported = typeof c == "function" && typeof
|
|
362
|
-
let
|
|
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
|
-
...
|
|
368
|
-
|
|
369
|
-
...Te,
|
|
367
|
+
...Ce,
|
|
368
|
+
...we,
|
|
370
369
|
...Ee,
|
|
371
|
-
...De,
|
|
372
370
|
...Oe
|
|
373
|
-
]), R =
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
],
|
|
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
|
-
]),
|
|
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
|
-
]),
|
|
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
|
-
},
|
|
448
|
+
}, ln = function() {
|
|
446
449
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
447
|
-
if (
|
|
448
|
-
|
|
449
|
-
transform:
|
|
450
|
-
base:
|
|
451
|
-
}),
|
|
452
|
-
transform:
|
|
453
|
-
base:
|
|
454
|
-
}),
|
|
455
|
-
let t =
|
|
456
|
-
if (
|
|
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
|
-
]),
|
|
461
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
462
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
463
|
-
let t =
|
|
464
|
-
|
|
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
|
-
|
|
469
|
+
P = F("");
|
|
467
470
|
} catch (e) {
|
|
468
|
-
throw
|
|
471
|
+
throw N = t, e;
|
|
469
472
|
}
|
|
470
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
471
|
-
p && p(e),
|
|
472
|
-
},
|
|
473
|
-
...
|
|
474
|
-
...
|
|
475
|
-
...
|
|
476
|
-
]),
|
|
477
|
-
return t.namespaceURI ===
|
|
478
|
-
},
|
|
479
|
-
return t.namespaceURI ===
|
|
480
|
-
},
|
|
481
|
-
return t.namespaceURI ===
|
|
482
|
-
},
|
|
483
|
-
let t =
|
|
484
|
-
(
|
|
485
|
-
|
|
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
|
-
|
|
491
|
+
b(e).removeChild(e);
|
|
494
492
|
} catch {
|
|
495
|
-
if (te(e), !
|
|
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
|
-
},
|
|
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
|
-
},
|
|
506
|
-
|
|
507
|
-
let t =
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
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" &&
|
|
514
|
+
typeof i == "string" && gn(e, r, i);
|
|
522
515
|
}
|
|
523
|
-
},
|
|
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 (
|
|
542
|
-
|
|
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
|
-
},
|
|
549
|
-
let t =
|
|
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" ||
|
|
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
|
-
},
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
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
|
-
},
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
-
|
|
608
|
+
return !1;
|
|
574
609
|
}
|
|
575
|
-
if (
|
|
576
|
-
let t = e, n =
|
|
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") &&
|
|
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
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}, gn = function(e) {
|
|
616
|
+
return !0;
|
|
617
|
+
});
|
|
618
|
+
}, An = function(e) {
|
|
585
619
|
let t = null, r = null;
|
|
586
|
-
if (
|
|
620
|
+
if (Pt) e = "<remove></remove>" + e;
|
|
587
621
|
else {
|
|
588
|
-
let t =
|
|
622
|
+
let t = fe(e, /^[\r\n\t ]+/);
|
|
589
623
|
r = t && t[0];
|
|
590
624
|
}
|
|
591
|
-
|
|
592
|
-
let i =
|
|
593
|
-
if (
|
|
594
|
-
t = new u().parseFromString(i,
|
|
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 =
|
|
631
|
+
t = lt.createDocument(Y, "template", null);
|
|
598
632
|
try {
|
|
599
|
-
t.documentElement.innerHTML =
|
|
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),
|
|
604
|
-
},
|
|
605
|
-
let t =
|
|
606
|
-
return
|
|
607
|
-
},
|
|
608
|
-
return e =
|
|
609
|
-
},
|
|
610
|
-
e
|
|
611
|
-
let t =
|
|
612
|
-
|
|
613
|
-
|
|
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
|
-
},
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
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
|
|
659
|
+
return T(e) === A.documentFragment;
|
|
624
660
|
} catch {
|
|
625
661
|
return !1;
|
|
626
662
|
}
|
|
627
|
-
},
|
|
628
|
-
if (!
|
|
663
|
+
}, In = function(e) {
|
|
664
|
+
if (!T || typeof e != "object" || !e) return !1;
|
|
629
665
|
try {
|
|
630
|
-
return typeof
|
|
666
|
+
return typeof T(e) == "number";
|
|
631
667
|
} catch {
|
|
632
668
|
return !1;
|
|
633
669
|
}
|
|
634
670
|
};
|
|
635
|
-
function
|
|
671
|
+
function $(e, n, r) {
|
|
636
672
|
e.length !== 0 && g(e, (e) => {
|
|
637
|
-
e.call(t, n, r,
|
|
673
|
+
e.call(t, n, r, on);
|
|
638
674
|
});
|
|
639
675
|
}
|
|
640
|
-
let
|
|
641
|
-
return !!(
|
|
642
|
-
},
|
|
643
|
-
return e instanceof RegExp ?
|
|
644
|
-
},
|
|
645
|
-
if (!
|
|
646
|
-
if (
|
|
647
|
-
let t =
|
|
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,
|
|
688
|
+
t.insertBefore(i, ge(e));
|
|
653
689
|
}
|
|
654
690
|
}
|
|
655
691
|
}
|
|
656
|
-
return
|
|
657
|
-
},
|
|
658
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
659
|
-
},
|
|
660
|
-
return e === t ||
|
|
661
|
-
},
|
|
662
|
-
if (
|
|
663
|
-
if (
|
|
664
|
-
let r =
|
|
665
|
-
if (
|
|
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:
|
|
668
|
-
}),
|
|
669
|
-
if (
|
|
670
|
-
if (
|
|
671
|
-
let t =
|
|
672
|
-
return t === !1 && (
|
|
673
|
-
}
|
|
674
|
-
if (
|
|
675
|
-
if (
|
|
676
|
-
let n =
|
|
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
|
|
680
|
-
},
|
|
681
|
-
if (
|
|
682
|
-
let i =
|
|
683
|
-
return
|
|
684
|
-
},
|
|
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
|
-
]),
|
|
694
|
-
return !
|
|
695
|
-
},
|
|
696
|
-
if (
|
|
697
|
-
case "TrustedHTML": return
|
|
698
|
-
case "TrustedScriptURL": return
|
|
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
|
-
},
|
|
737
|
+
}, qn = function(e, t, n, r) {
|
|
702
738
|
try {
|
|
703
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !
|
|
739
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (Z(e), !1);
|
|
704
740
|
} catch {
|
|
705
|
-
return
|
|
741
|
+
return vn(t, e), !1;
|
|
706
742
|
}
|
|
707
|
-
},
|
|
708
|
-
|
|
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 ||
|
|
711
|
-
|
|
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:
|
|
754
|
+
allowedAttributes: R,
|
|
717
755
|
forceKeepAttr: void 0
|
|
718
|
-
}, a = r.length, o =
|
|
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 =
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
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
|
-
|
|
777
|
+
Xn(e.shadow);
|
|
762
778
|
continue;
|
|
763
779
|
}
|
|
764
|
-
let n = e.node, r =
|
|
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 =
|
|
771
|
-
if (typeof e == "string" &&
|
|
786
|
+
let e = E ? E(n) : null;
|
|
787
|
+
if (typeof e == "string" && X(e) === "template") {
|
|
772
788
|
let e = n.content;
|
|
773
|
-
|
|
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 =
|
|
781
|
-
|
|
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 (
|
|
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
|
-
|
|
796
|
-
let c =
|
|
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
|
-
|
|
799
|
-
let t =
|
|
814
|
+
kn(e);
|
|
815
|
+
let t = $e(e);
|
|
800
816
|
if (typeof t == "string") {
|
|
801
|
-
let n =
|
|
802
|
-
if (!
|
|
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 (
|
|
805
|
-
|
|
806
|
-
|
|
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 (!
|
|
813
|
-
if (i =
|
|
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 &&
|
|
816
|
-
let
|
|
827
|
+
i && Pt && Z(i.firstChild);
|
|
828
|
+
let d = c ? e : i;
|
|
817
829
|
try {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
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
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
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 (
|
|
846
|
+
return (R.shadowroot || R.shadowrootmode) && (s = pt.call(r, s, !0)), s;
|
|
836
847
|
}
|
|
837
|
-
let
|
|
838
|
-
return
|
|
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
|
-
|
|
852
|
+
ln(e), jt = !0, Mt = L, Nt = R;
|
|
842
853
|
}, t.clearConfig = function() {
|
|
843
|
-
|
|
854
|
+
on = null, jt = !1, Mt = null, Nt = null, N = nt, P = "";
|
|
844
855
|
}, t.isValidAttribute = function(e, t, n) {
|
|
845
|
-
|
|
846
|
-
let r =
|
|
847
|
-
return
|
|
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" &&
|
|
860
|
+
typeof t == "function" && x(I, e) && ae(I[e], t);
|
|
850
861
|
}, t.removeHook = function(e, t) {
|
|
851
|
-
if (
|
|
862
|
+
if (x(I, e)) {
|
|
852
863
|
if (t !== void 0) {
|
|
853
|
-
let n = re(
|
|
854
|
-
return n === -1 ? void 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(
|
|
867
|
+
return ie(I[e]);
|
|
857
868
|
}
|
|
858
869
|
}, t.removeHooks = function(e) {
|
|
859
|
-
|
|
870
|
+
x(I, e) && (I[e] = []);
|
|
860
871
|
}, t.removeAllHooks = function() {
|
|
861
|
-
|
|
872
|
+
I = Xe();
|
|
862
873
|
}, t;
|
|
863
874
|
}
|
|
864
|
-
var
|
|
865
|
-
|
|
866
|
-
export { Xe as default };
|
|
875
|
+
var M = Qe();
|
|
876
|
+
export { M as default };
|
|
867
877
|
|
|
868
878
|
//# sourceMappingURL=purify.es.js.map
|