@trilogy-data/trilogy-studio-components 0.1.26 → 0.1.28
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/AssetAutoImporter-C_7Ms9xe.js +403 -0
- package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-Cd40SvdM.js} +3 -3
- package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
- package/dist/{CodeBlock-PT4no49I.js → CodeBlock-Dj-GfTbW.js} +4 -4
- package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-lX2RhHCG.js} +7 -7
- package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
- package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-CZ06qjjE.js} +49 -49
- package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-DwA938kf.js} +4 -4
- package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-CQsIqWZC.js} +276 -280
- package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-CkqH52FX.js} +2 -2
- package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-DWFlel5p.js} +39 -39
- package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
- package/dist/{Editor-DQsYpkwl.js → Editor-DQ66Vp6v.js} +105 -103
- package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
- package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-B_s3COHE.js} +20 -21
- package/dist/{IDE-HLa8vybk.js → IDE-4-Jg6gsM.js} +200 -203
- package/dist/{JobsView-B97HBoIE.js → JobsView-B5NWDUgP.js} +13 -14
- package/dist/{LLMChat-CxJcPLEG.js → LLMChat-eKgEc-I3.js} +3 -3
- package/dist/{LLMView-C1MUf0c2.js → LLMView-CdTwMLVV.js} +23 -23
- package/dist/{LoadingView-s1uznGwG.js → LoadingView-Bu3wLJ7J.js} +2 -2
- package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-B6lqdkgc.js} +531 -430
- package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-CZlg20oa.js} +179 -182
- package/dist/{ModelCard-BhN25jaV.js → ModelCard-Bs_d7Jis.js} +12 -13
- package/dist/{ModelView-DUDA_PtZ.js → ModelView-BP5yyecx.js} +7 -7
- package/dist/PageLoading-DKFeqkmK.js +5937 -0
- package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-BaDheojB.js} +8 -8
- package/dist/{Results-BJtlwebY.js → Results-CrpHB101.js} +17 -19
- package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-Clfyy-Yn.js} +2 -2
- package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CO5hXMs3.js} +2 -2
- package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-XFVErDFb.js} +6 -3
- package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
- package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-CMcTYDOV.js} +27 -28
- package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-DX_LbF3g.js} +12131 -10947
- package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-B6E35FUa.js} +5 -5
- package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
- package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
- package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
- package/dist/assets/json.worker-BezHzWUV.js +58 -0
- package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
- package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
- package/dist/components/FeedbackBanner.vue.d.ts +4 -0
- package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
- package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
- package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
- package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
- package/dist/components/editor/Editor.vue.d.ts +3 -3
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
- package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
- package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
- package/dist/components/model/ModelCard.vue.d.ts +3 -3
- package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
- package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
- package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
- package/dist/connections.js +3 -4
- package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
- package/dist/dashboard.js +28 -31
- package/dist/dashboards/dashboardQueryExecutor.d.ts +9 -0
- package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
- package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
- package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
- package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
- package/dist/{editorRefinementRuntime-DoP9P5J2.js → editorStore-CiWH_nGN.js} +1692 -575
- package/dist/embed.js +2 -2
- package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
- package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-DAERmOdu.js} +16 -16
- package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
- package/dist/{helpers-BLQAgX3C.js → helpers-C2pARJoZ.js} +34 -35
- package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
- package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
- package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
- package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
- package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
- package/dist/llm/data/prompts.d.ts +1 -1
- package/dist/llm/data/prompts.d.ts.map +1 -1
- package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
- package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
- package/dist/llm-Wf4Etiu9.js +18493 -0
- package/dist/llm.js +2 -3
- package/dist/{localStorage-D9uyOFEO.js → localStorage-C3xms-ab.js} +40 -43
- package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
- package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
- package/dist/monaco.js +4 -4
- package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
- package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
- package/dist/{reconcile-Dyf4UZmj.js → reconcile-BH_ReGDR.js} +1 -1
- package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-B0K8QScO.js} +3 -3
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/static/test_import.vue.d.ts +4 -0
- package/dist/static/test_import.vue.d.ts.map +1 -0
- package/dist/stores-DTGQZ4_B.js +2612 -0
- package/dist/stores.js +4 -7
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
- package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
- package/dist/{useChatWithTools-B0HZ_DVh.js → useChatWithTools-BSrzJtYI.js} +11 -11
- package/dist/{useDashboard-CdSnPe_6.js → useDashboard-CGeIdDuX.js} +1014 -1022
- package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-D9kMZLeF.js} +1729 -711
- package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
- package/dist/views/ModelView.vue.d.ts +6 -6
- package/dist/views/ModelView.vue.d.ts.map +1 -1
- package/dist/views/TutorialPage.vue.d.ts +9 -9
- package/dist/views/TutorialPage.vue.d.ts.map +1 -1
- package/dist/views.js +192 -194
- package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
- package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
- package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
- package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
- package/package.json +29 -20
- package/dist/AssetAutoImporter-CBzvBaOt.js +0 -405
- package/dist/DashboardCreatorInline-CDU7kLy3.js +0 -129
- package/dist/DataTable-DoRDynP1.js +0 -365
- package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
- package/dist/LoadingButton-OH3frQuO.js +0 -138
- package/dist/ModalDialog-D1EOG4rl.js +0 -42
- package/dist/ModelCreator-CCdC7EXt.js +0 -253
- package/dist/PageLoading-BzniJM0C.js +0 -2669
- package/dist/Tooltip-Dihir4zs.js +0 -103
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
- package/dist/base-C8IuZWqY.js +0 -164
- package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
- package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
- package/dist/connections-CJSb1TZl.js +0 -229
- package/dist/constants-DgFEYN2b.js +0 -7
- package/dist/dashboardStore-ppM6nGks.js +0 -641
- package/dist/demoSetup-mwa-RDC6.js +0 -2942
- package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
- package/dist/editorStore-BhhmXbi-.js +0 -1019
- package/dist/formatting-BbJ5ICgh.js +0 -6
- package/dist/llm-BBOVWb-F.js +0 -11967
- package/dist/llmStore-DJM2JhzY.js +0 -153
- package/dist/monaco.contribution-ikesdolO.js +0 -128
- package/dist/stores-BT9hTLny.js +0 -1708
- package/dist/trilogy-BroD2Qmp.js +0 -4
- package/dist/urlStore-52HG6lsX.js +0 -55
- package/dist/useGlobalChatPanel-D_0luajQ.js +0 -85
- package/dist/useIsMobile-CNpUQAvk.js +0 -8
- package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
- package/dist/workers-Br7ThUKL.js +0 -47
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
|
|
2
|
+
import { o as t, s as n } from "./useGlobalChatPanel-D9kMZLeF.js";
|
|
3
3
|
import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, ref as c } from "vue";
|
|
4
|
-
//#region node_modules/.pnpm/dompurify@3.4.
|
|
4
|
+
//#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
|
|
5
5
|
function l(e, t) {
|
|
6
|
+
this.v = e, this.k = t;
|
|
7
|
+
}
|
|
8
|
+
function u(e, t) {
|
|
6
9
|
(t == null || t > e.length) && (t = e.length);
|
|
7
10
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8
11
|
return r;
|
|
9
12
|
}
|
|
10
|
-
function
|
|
13
|
+
function d(e) {
|
|
11
14
|
if (Array.isArray(e)) return e;
|
|
12
15
|
}
|
|
13
|
-
function
|
|
16
|
+
function f(e, t) {
|
|
14
17
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
15
18
|
if (n != null) {
|
|
16
19
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
17
20
|
try {
|
|
18
|
-
if (a = (n = n.call(e)).next, t
|
|
21
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
22
|
+
if (Object(n) !== n) return;
|
|
23
|
+
c = !1;
|
|
24
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
19
25
|
} catch (e) {
|
|
20
26
|
l = !0, i = e;
|
|
21
27
|
} finally {
|
|
@@ -28,94 +34,145 @@ function d(e, t) {
|
|
|
28
34
|
return s;
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
|
-
function
|
|
37
|
+
function p() {
|
|
32
38
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
39
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
40
|
+
function m(e, t) {
|
|
41
|
+
return d(e) || f(e, t) || ee(e, t) || p();
|
|
36
42
|
}
|
|
37
|
-
function
|
|
43
|
+
function ee(e, t) {
|
|
38
44
|
if (e) {
|
|
39
|
-
if (typeof e == "string") return
|
|
45
|
+
if (typeof e == "string") return u(e, t);
|
|
40
46
|
var n = {}.toString.call(e).slice(8, -1);
|
|
41
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
47
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? u(e, t) : void 0;
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
function h(e) {
|
|
51
|
+
var t, n;
|
|
52
|
+
function r(t, n) {
|
|
53
|
+
try {
|
|
54
|
+
var a = e[t](n), o = a.value, s = o instanceof l;
|
|
55
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
56
|
+
if (s) {
|
|
57
|
+
var c = t === "return" && o.k ? t : "next";
|
|
58
|
+
if (!o.k || n.done) return r(c, n);
|
|
59
|
+
n = e[c](n).value;
|
|
60
|
+
}
|
|
61
|
+
i(!!a.done, n);
|
|
62
|
+
}, function(e) {
|
|
63
|
+
r("throw", e);
|
|
64
|
+
});
|
|
65
|
+
} catch (e) {
|
|
66
|
+
i(2, e);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function i(e, i) {
|
|
70
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
71
|
+
value: i,
|
|
72
|
+
done: e
|
|
73
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
74
|
+
}
|
|
75
|
+
this._invoke = function(e, i) {
|
|
76
|
+
return new Promise(function(a, o) {
|
|
77
|
+
var s = {
|
|
78
|
+
key: e,
|
|
79
|
+
arg: i,
|
|
80
|
+
resolve: a,
|
|
81
|
+
reject: o,
|
|
82
|
+
next: null
|
|
83
|
+
};
|
|
84
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
85
|
+
});
|
|
86
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
87
|
+
}
|
|
88
|
+
h.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
89
|
+
return this;
|
|
90
|
+
}, h.prototype.next = function(e) {
|
|
91
|
+
return this._invoke("next", e);
|
|
92
|
+
}, h.prototype.throw = function(e) {
|
|
93
|
+
return this._invoke("throw", e);
|
|
94
|
+
}, h.prototype.return = function(e) {
|
|
95
|
+
return this._invoke("return", e);
|
|
96
|
+
};
|
|
97
|
+
var te = Object.entries, g = Object.setPrototypeOf, ne = Object.isFrozen, re = Object.getPrototypeOf, _ = Object.getOwnPropertyDescriptor, v = Object.freeze, y = Object.seal, ie = Object.create, b = typeof Reflect < "u" && Reflect, x = b.apply, S = b.construct;
|
|
98
|
+
v ||= function(e) {
|
|
46
99
|
return e;
|
|
47
|
-
},
|
|
100
|
+
}, y ||= function(e) {
|
|
48
101
|
return e;
|
|
49
|
-
},
|
|
102
|
+
}, x ||= function(e, t) {
|
|
50
103
|
var n = [...arguments].slice(2);
|
|
51
104
|
return e.apply(t, n);
|
|
52
|
-
},
|
|
105
|
+
}, S ||= function(e) {
|
|
53
106
|
return new e(...[...arguments].slice(1));
|
|
54
107
|
};
|
|
55
|
-
var
|
|
108
|
+
var C = k(Array.prototype.forEach);
|
|
109
|
+
Array.prototype.indexOf;
|
|
110
|
+
var ae = k(Array.prototype.lastIndexOf), oe = k(Array.prototype.pop), se = k(Array.prototype.push);
|
|
111
|
+
Array.prototype.slice;
|
|
112
|
+
var ce = k(Array.prototype.splice), le = Array.isArray, ue = k(String.prototype.toLowerCase), de = k(String.prototype.toString), fe = k(String.prototype.match), pe = k(String.prototype.replace), me = k(String.prototype.indexOf), he = k(String.prototype.trim), ge = k(Number.prototype.toString), w = k(Boolean.prototype.toString), T = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), _e = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), E = k(Object.prototype.hasOwnProperty), ve = k(Object.prototype.toString), D = k(RegExp.prototype.test), O = ye(TypeError);
|
|
56
113
|
function k(e) {
|
|
57
114
|
return function(t) {
|
|
58
115
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
59
116
|
var n = [...arguments].slice(1);
|
|
60
|
-
return
|
|
117
|
+
return x(e, t, n);
|
|
61
118
|
};
|
|
62
119
|
}
|
|
63
|
-
function
|
|
120
|
+
function ye(e) {
|
|
64
121
|
return function() {
|
|
65
|
-
return
|
|
122
|
+
return S(e, [...arguments]);
|
|
66
123
|
};
|
|
67
124
|
}
|
|
68
125
|
function A(e, t) {
|
|
69
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
70
|
-
if (
|
|
126
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
|
|
127
|
+
if (g && g(e, null), !le(t)) return e;
|
|
71
128
|
let r = t.length;
|
|
72
129
|
for (; r--;) {
|
|
73
130
|
let i = t[r];
|
|
74
131
|
if (typeof i == "string") {
|
|
75
132
|
let e = n(i);
|
|
76
|
-
e !== i && (
|
|
133
|
+
e !== i && (ne(t) || (t[r] = e), i = e);
|
|
77
134
|
}
|
|
78
135
|
e[i] = !0;
|
|
79
136
|
}
|
|
80
137
|
return e;
|
|
81
138
|
}
|
|
82
|
-
function
|
|
83
|
-
for (let t = 0; t < e.length; t++)
|
|
139
|
+
function j(e) {
|
|
140
|
+
for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
|
|
84
141
|
return e;
|
|
85
142
|
}
|
|
86
|
-
function
|
|
87
|
-
let t =
|
|
88
|
-
for (let r of
|
|
89
|
-
var n =
|
|
143
|
+
function M(e) {
|
|
144
|
+
let t = ie(null);
|
|
145
|
+
for (let r of te(e)) {
|
|
146
|
+
var n = m(r, 2);
|
|
90
147
|
let i = n[0], a = n[1];
|
|
91
|
-
|
|
148
|
+
E(e, i) && (t[i] = le(a) ? j(a) : a && typeof a == "object" && a.constructor === Object ? M(a) : a);
|
|
92
149
|
}
|
|
93
150
|
return t;
|
|
94
151
|
}
|
|
95
|
-
function
|
|
152
|
+
function be(e) {
|
|
96
153
|
switch (typeof e) {
|
|
97
154
|
case "string": return e;
|
|
98
|
-
case "number": return
|
|
99
|
-
case "boolean": return
|
|
100
|
-
case "bigint": return
|
|
101
|
-
case "symbol": return
|
|
102
|
-
case "undefined": return
|
|
155
|
+
case "number": return ge(e);
|
|
156
|
+
case "boolean": return w(e);
|
|
157
|
+
case "bigint": return T ? T(e) : "0";
|
|
158
|
+
case "symbol": return _e ? _e(e) : "Symbol()";
|
|
159
|
+
case "undefined": return ve(e);
|
|
103
160
|
case "function":
|
|
104
161
|
case "object": {
|
|
105
|
-
if (e === null) return
|
|
106
|
-
let t = e, n =
|
|
162
|
+
if (e === null) return ve(e);
|
|
163
|
+
let t = e, n = N(t, "toString");
|
|
107
164
|
if (typeof n == "function") {
|
|
108
165
|
let e = n(t);
|
|
109
|
-
return typeof e == "string" ? e :
|
|
166
|
+
return typeof e == "string" ? e : ve(e);
|
|
110
167
|
}
|
|
111
|
-
return
|
|
168
|
+
return ve(e);
|
|
112
169
|
}
|
|
113
|
-
default: return
|
|
170
|
+
default: return ve(e);
|
|
114
171
|
}
|
|
115
172
|
}
|
|
116
|
-
function
|
|
173
|
+
function N(e, t) {
|
|
117
174
|
for (; e !== null;) {
|
|
118
|
-
let n =
|
|
175
|
+
let n = _(e, t);
|
|
119
176
|
if (n) {
|
|
120
177
|
if (n.get) return k(n.get);
|
|
121
178
|
if (typeof n.value == "function") return k(n.value);
|
|
@@ -127,14 +184,14 @@ function M(e, t) {
|
|
|
127
184
|
}
|
|
128
185
|
return n;
|
|
129
186
|
}
|
|
130
|
-
function
|
|
187
|
+
function xe(e) {
|
|
131
188
|
try {
|
|
132
189
|
return D(e, ""), !0;
|
|
133
190
|
} catch {
|
|
134
191
|
return !1;
|
|
135
192
|
}
|
|
136
193
|
}
|
|
137
|
-
var
|
|
194
|
+
var Se = v(/* @__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 = v(/* @__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 = v([
|
|
138
195
|
"feBlend",
|
|
139
196
|
"feColorMatrix",
|
|
140
197
|
"feComponentTransfer",
|
|
@@ -160,7 +217,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
160
217
|
"feSpotLight",
|
|
161
218
|
"feTile",
|
|
162
219
|
"feTurbulence"
|
|
163
|
-
]),
|
|
220
|
+
]), Te = v([
|
|
164
221
|
"animate",
|
|
165
222
|
"color-profile",
|
|
166
223
|
"cursor",
|
|
@@ -183,7 +240,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
183
240
|
"solidcolor",
|
|
184
241
|
"unknown",
|
|
185
242
|
"use"
|
|
186
|
-
]),
|
|
243
|
+
]), Ee = v(/* @__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 = v([
|
|
187
244
|
"maction",
|
|
188
245
|
"maligngroup",
|
|
189
246
|
"malignmark",
|
|
@@ -199,13 +256,13 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
199
256
|
"annotation-xml",
|
|
200
257
|
"mprescripts",
|
|
201
258
|
"none"
|
|
202
|
-
]),
|
|
259
|
+
]), Oe = v(["#text"]), ke = v(/* @__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 = v(/* @__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 = v(/* @__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 = v([
|
|
203
260
|
"xlink:href",
|
|
204
261
|
"xml:id",
|
|
205
262
|
"xlink:title",
|
|
206
263
|
"xml:space",
|
|
207
264
|
"xmlns:xlink"
|
|
208
|
-
]),
|
|
265
|
+
]), Ne = y(/{{[\w\W]*|^[\w\W]*}}/g), Pe = y(/<%[\w\W]*|^[\w\W]*%>/g), Fe = y(/\${[\w\W]*/g), Ie = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), Le = y(/^aria-[\-\w]+$/), Re = y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ze = y(/^(?:\w+script|data):/i), Be = y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ve = y(/^html$/i), He = y(/^[a-z][.\w]*(-[.\w]+)+$/i), Ue = y(/<[/\w!]/g), We = y(/<[/\w]/g), Ge = y(/<\/no(script|embed|frames)/i), Ke = y(/\/>/i), P = {
|
|
209
266
|
element: 1,
|
|
210
267
|
attribute: 2,
|
|
211
268
|
text: 3,
|
|
@@ -218,9 +275,23 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
218
275
|
documentType: 10,
|
|
219
276
|
documentFragment: 11,
|
|
220
277
|
notation: 12
|
|
221
|
-
},
|
|
278
|
+
}, qe = [
|
|
279
|
+
"style",
|
|
280
|
+
"script",
|
|
281
|
+
"xmp",
|
|
282
|
+
"iframe",
|
|
283
|
+
"noembed",
|
|
284
|
+
"noframes",
|
|
285
|
+
"plaintext",
|
|
286
|
+
"noscript"
|
|
287
|
+
], Je = v(A({}, qe)), Ye = function() {
|
|
288
|
+
let e = {};
|
|
289
|
+
return C(qe, (t) => {
|
|
290
|
+
e[t] = y(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
291
|
+
}), v(e);
|
|
292
|
+
}(), Xe = function() {
|
|
222
293
|
return typeof window > "u" ? null : window;
|
|
223
|
-
},
|
|
294
|
+
}, Ze = function(e, t) {
|
|
224
295
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
225
296
|
let n = null, r = "data-tt-policy-suffix";
|
|
226
297
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -237,7 +308,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
237
308
|
} catch {
|
|
238
309
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
239
310
|
}
|
|
240
|
-
},
|
|
311
|
+
}, Qe = function() {
|
|
241
312
|
return {
|
|
242
313
|
afterSanitizeAttributes: [],
|
|
243
314
|
afterSanitizeElements: [],
|
|
@@ -249,53 +320,60 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
249
320
|
uponSanitizeElement: [],
|
|
250
321
|
uponSanitizeShadowNode: []
|
|
251
322
|
};
|
|
252
|
-
},
|
|
253
|
-
return
|
|
323
|
+
}, F = function(e, t, n, r) {
|
|
324
|
+
return E(e, t) && le(e[t]) ? A(r.base ? M(r.base) : {}, e[t], r.transform) : n;
|
|
325
|
+
}, $e = function(e, t, n) {
|
|
326
|
+
let r = E(e, t) ? e[t] : void 0;
|
|
327
|
+
return r && typeof r == "object" ? M(r) : n();
|
|
254
328
|
};
|
|
255
|
-
function
|
|
256
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
257
|
-
if (t.version = "3.4.
|
|
329
|
+
function et() {
|
|
330
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => et(e);
|
|
331
|
+
if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== P.document || !e.Element) return t.isSupported = !1, t;
|
|
258
332
|
let n = e.document, r = n, i = r.currentScript;
|
|
259
333
|
e.DocumentFragment;
|
|
260
334
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
261
335
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
262
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype,
|
|
336
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = N(d, "cloneNode"), p = N(d, "remove"), m = N(d, "removeAttributeNode"), ee = N(d, "nextSibling"), h = N(d, "childNodes"), g = N(d, "parentNode"), ne = N(d, "shadowRoot"), re = N(d, "attributes"), _ = o && o.prototype ? N(o.prototype, "nodeType") : null, b = o && o.prototype ? N(o.prototype, "nodeName") : null, x = o && o.prototype ? N(o.prototype, "ownerDocument") : null, S = function(e) {
|
|
337
|
+
return _ ? _(e) : e.nodeType;
|
|
338
|
+
}, ge = function(e) {
|
|
339
|
+
return b ? b(e) : e.nodeName;
|
|
340
|
+
};
|
|
263
341
|
if (typeof a == "function") {
|
|
264
342
|
let e = n.createElement("template");
|
|
265
343
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
266
344
|
}
|
|
267
|
-
let
|
|
268
|
-
if (
|
|
269
|
-
},
|
|
270
|
-
|
|
345
|
+
let w, T = "", _e, ve = !1, k = 0, ye = function() {
|
|
346
|
+
if (k > 0) throw O("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
|
+
}, j = function(e) {
|
|
348
|
+
ye(), k++;
|
|
271
349
|
try {
|
|
272
|
-
return
|
|
350
|
+
return w.createHTML(e);
|
|
273
351
|
} finally {
|
|
274
|
-
|
|
352
|
+
k--;
|
|
275
353
|
}
|
|
276
|
-
},
|
|
277
|
-
|
|
354
|
+
}, qe = function(e) {
|
|
355
|
+
ye(), k++;
|
|
278
356
|
try {
|
|
279
|
-
return
|
|
357
|
+
return w.createScriptURL(e);
|
|
280
358
|
} finally {
|
|
281
|
-
|
|
359
|
+
k--;
|
|
282
360
|
}
|
|
283
|
-
},
|
|
284
|
-
return
|
|
285
|
-
},
|
|
286
|
-
t.isSupported = typeof
|
|
287
|
-
let
|
|
288
|
-
...xe,
|
|
361
|
+
}, tt = function() {
|
|
362
|
+
return ve ||= (_e = Ze(u, i), !0), _e;
|
|
363
|
+
}, nt = n, I = nt.implementation, rt = nt.createNodeIterator, it = nt.createDocumentFragment, at = nt.getElementsByTagName, ot = r.importNode, L = Qe();
|
|
364
|
+
t.isSupported = typeof te == "function" && typeof g == "function" && I && I.createHTMLDocument !== void 0;
|
|
365
|
+
let st = Ne, ct = Pe, lt = Fe, R = Ie, ut = Le, dt = ze, ft = Be, pt = He, mt = Re, z = null, ht = A({}, [
|
|
289
366
|
...Se,
|
|
290
367
|
...Ce,
|
|
291
|
-
...
|
|
292
|
-
...
|
|
293
|
-
|
|
294
|
-
|
|
368
|
+
...we,
|
|
369
|
+
...Ee,
|
|
370
|
+
...Oe
|
|
371
|
+
]), B = null, gt = A({}, [
|
|
295
372
|
...ke,
|
|
296
373
|
...Ae,
|
|
297
|
-
...je
|
|
298
|
-
|
|
374
|
+
...je,
|
|
375
|
+
...Me
|
|
376
|
+
]), V = Object.seal(ie(null, {
|
|
299
377
|
tagNameCheck: {
|
|
300
378
|
writable: !0,
|
|
301
379
|
configurable: !1,
|
|
@@ -314,7 +392,7 @@ function Ye() {
|
|
|
314
392
|
enumerable: !0,
|
|
315
393
|
value: !1
|
|
316
394
|
}
|
|
317
|
-
})),
|
|
395
|
+
})), _t = null, vt = null, H = Object.seal(ie(null, {
|
|
318
396
|
tagCheck: {
|
|
319
397
|
writable: !0,
|
|
320
398
|
configurable: !1,
|
|
@@ -327,14 +405,14 @@ function Ye() {
|
|
|
327
405
|
enumerable: !0,
|
|
328
406
|
value: null
|
|
329
407
|
}
|
|
330
|
-
})),
|
|
408
|
+
})), yt = !0, bt = !0, xt = !1, St = !0, U = !1, W = !0, G = !1, Ct = !1, wt = null, Tt = null, Et = !1, K = !1, Dt = !1, Ot = !1, kt = !0, At = !1, jt = "user-content-", Mt = !0, Nt = !1, q = {}, J = null, Pt = A({}, /* @__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(".")), Ft = null, It = A({}, [
|
|
331
409
|
"audio",
|
|
332
410
|
"video",
|
|
333
411
|
"img",
|
|
334
412
|
"source",
|
|
335
413
|
"image",
|
|
336
414
|
"track"
|
|
337
|
-
]),
|
|
415
|
+
]), Lt = null, Rt = A({}, [
|
|
338
416
|
"alt",
|
|
339
417
|
"class",
|
|
340
418
|
"for",
|
|
@@ -349,193 +427,207 @@ function Ye() {
|
|
|
349
427
|
"value",
|
|
350
428
|
"style",
|
|
351
429
|
"xmlns"
|
|
352
|
-
]),
|
|
353
|
-
|
|
354
|
-
|
|
430
|
+
]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Vt = Y, Ht = !1, Ut = null, Wt = A({}, [
|
|
431
|
+
zt,
|
|
432
|
+
Bt,
|
|
355
433
|
Y
|
|
356
|
-
],
|
|
434
|
+
], de), Gt = v([
|
|
357
435
|
"mi",
|
|
358
436
|
"mo",
|
|
359
437
|
"mn",
|
|
360
438
|
"ms",
|
|
361
439
|
"mtext"
|
|
362
|
-
]),
|
|
440
|
+
]), Kt = A({}, Gt), qt = v(["annotation-xml"]), Jt = A({}, qt), Yt = A({}, [
|
|
363
441
|
"title",
|
|
364
442
|
"style",
|
|
365
443
|
"font",
|
|
366
444
|
"a",
|
|
367
445
|
"script"
|
|
368
|
-
]),
|
|
446
|
+
]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], X = null, Qt = null, $t = n.createElement("form"), en = function(e) {
|
|
369
447
|
return e instanceof RegExp || e instanceof Function;
|
|
370
|
-
},
|
|
448
|
+
}, tn = function() {
|
|
371
449
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
372
|
-
if (
|
|
373
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
450
|
+
if (Qt && Qt === e) return;
|
|
451
|
+
(!e || typeof e != "object") && (e = {}), e = M(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Xt === "application/xhtml+xml" ? de : ue, z = F(e, "ALLOWED_TAGS", ht, { transform: X }), B = F(e, "ALLOWED_ATTR", gt, { transform: X }), Ut = F(e, "ALLOWED_NAMESPACES", Wt, { transform: de }), Lt = F(e, "ADD_URI_SAFE_ATTR", Rt, {
|
|
374
452
|
transform: X,
|
|
375
|
-
base:
|
|
376
|
-
}),
|
|
453
|
+
base: Rt
|
|
454
|
+
}), Ft = F(e, "ADD_DATA_URI_TAGS", It, {
|
|
377
455
|
transform: X,
|
|
378
|
-
base:
|
|
379
|
-
}), J =
|
|
380
|
-
let t =
|
|
381
|
-
if (
|
|
456
|
+
base: It
|
|
457
|
+
}), J = F(e, "FORBID_CONTENTS", Pt, { transform: X }), _t = F(e, "FORBID_TAGS", M({}), { transform: X }), vt = F(e, "FORBID_ATTR", M({}), { transform: X }), q = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? M(e.USE_PROFILES) : e.USE_PROFILES : !1, yt = e.ALLOW_ARIA_ATTR !== !1, bt = e.ALLOW_DATA_ATTR !== !1, xt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, St = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, W = e.SAFE_FOR_XML !== !1, G = e.WHOLE_DOCUMENT || !1, K = e.RETURN_DOM || !1, Dt = e.RETURN_DOM_FRAGMENT || !1, Ot = e.RETURN_TRUSTED_TYPE || !1, Et = e.FORCE_BODY || !1, kt = e.SANITIZE_DOM !== !1, At = e.SANITIZE_NAMED_PROPS || !1, Mt = e.KEEP_CONTENT !== !1, Nt = e.IN_PLACE || !1, mt = xe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Re, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Kt = $e(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, Gt)), Jt = $e(e, "HTML_INTEGRATION_POINTS", () => A({}, qt));
|
|
458
|
+
let t = $e(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
|
|
459
|
+
if (V = ie(null), E(t, "tagNameCheck") && en(t.tagNameCheck) && (V.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && en(t.attributeNameCheck) && (V.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), y(V), U && (bt = !1), Dt && (K = !0), q && (z = A({}, Oe), B = ie(null), q.html === !0 && (A(z, Se), A(B, ke)), q.svg === !0 && (A(z, Ce), A(B, Ae), A(B, Me)), q.svgFilters === !0 && (A(z, we), A(B, Ae), A(B, Me)), q.mathMl === !0 && (A(z, Ee), A(B, je), A(B, Me))), H.tagCheck = null, H.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? H.tagCheck = e.ADD_TAGS : le(e.ADD_TAGS) && (z === ht && (z = M(z)), A(z, e.ADD_TAGS, X))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? H.attributeCheck = e.ADD_ATTR : le(e.ADD_ATTR) && (B === gt && (B = M(B)), A(B, e.ADD_ATTR, X))), E(e, "ADD_FORBID_CONTENTS") && le(e.ADD_FORBID_CONTENTS) && (J === Pt && (J = M(J)), A(J, e.ADD_FORBID_CONTENTS, X)), Mt && (z["#text"] = !0), G && A(z, [
|
|
382
460
|
"html",
|
|
383
461
|
"head",
|
|
384
462
|
"body"
|
|
385
|
-
]),
|
|
463
|
+
]), z.table && (A(z, ["tbody"]), delete _t.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
386
464
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
387
465
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
388
|
-
let t =
|
|
389
|
-
|
|
466
|
+
let t = w;
|
|
467
|
+
w = e.TRUSTED_TYPES_POLICY;
|
|
390
468
|
try {
|
|
391
|
-
|
|
469
|
+
T = j("");
|
|
392
470
|
} catch (e) {
|
|
393
|
-
throw
|
|
471
|
+
throw w = t, e;
|
|
394
472
|
}
|
|
395
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
396
|
-
|
|
397
|
-
},
|
|
398
|
-
...Se,
|
|
473
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (w = void 0, T = "") : (w === void 0 && (w = tt()), w && typeof T == "string" && (T = j("")));
|
|
474
|
+
v && v(e), Qt = e;
|
|
475
|
+
}, nn = A({}, [
|
|
399
476
|
...Ce,
|
|
400
|
-
...we
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
477
|
+
...we,
|
|
478
|
+
...Te
|
|
479
|
+
]), rn = A({}, [...Ee, ...De]), an = function(e, t, n) {
|
|
480
|
+
return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
|
|
481
|
+
}, on = function(e, t, n) {
|
|
482
|
+
return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
|
|
483
|
+
}, sn = function(e, t, n) {
|
|
484
|
+
return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
|
|
485
|
+
}, cn = function(e) {
|
|
486
|
+
let t = g(e);
|
|
409
487
|
(!t || !t.tagName) && (t = {
|
|
410
|
-
namespaceURI:
|
|
488
|
+
namespaceURI: Vt,
|
|
411
489
|
tagName: "template"
|
|
412
490
|
});
|
|
413
|
-
let n =
|
|
414
|
-
return
|
|
491
|
+
let n = ue(e.tagName), r = ue(t.tagName);
|
|
492
|
+
return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === Y ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
|
|
415
493
|
}, Z = function(e) {
|
|
416
|
-
|
|
494
|
+
se(t.removed, { element: e });
|
|
417
495
|
try {
|
|
418
|
-
|
|
496
|
+
g(e).removeChild(e);
|
|
419
497
|
} catch {
|
|
420
|
-
if (
|
|
498
|
+
if (p(e), !g(e)) throw O("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
421
499
|
}
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
|
|
500
|
+
}, ln = function(e, t, n) {
|
|
501
|
+
try {
|
|
502
|
+
m(e, t);
|
|
503
|
+
} catch {
|
|
504
|
+
try {
|
|
505
|
+
e.removeAttribute(n);
|
|
506
|
+
} catch {}
|
|
507
|
+
}
|
|
508
|
+
}, un = function(e) {
|
|
509
|
+
fn(e);
|
|
510
|
+
let t = h(e);
|
|
425
511
|
if (t) {
|
|
426
512
|
let e = [];
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
}),
|
|
513
|
+
C(t, (t) => {
|
|
514
|
+
se(e, t);
|
|
515
|
+
}), C(e, (e) => {
|
|
430
516
|
try {
|
|
431
|
-
|
|
517
|
+
p(e);
|
|
432
518
|
} catch {}
|
|
433
519
|
});
|
|
434
520
|
}
|
|
435
|
-
let n =
|
|
521
|
+
let n = re(e);
|
|
436
522
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
437
523
|
let r = n[t], i = r && r.name;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
524
|
+
typeof i == "string" && ln(e, r, i);
|
|
525
|
+
}
|
|
526
|
+
}, Q = function(e, n, r) {
|
|
527
|
+
if (!r) try {
|
|
528
|
+
r = n.getAttributeNode(e);
|
|
529
|
+
} catch {
|
|
530
|
+
r = null;
|
|
441
531
|
}
|
|
442
|
-
|
|
532
|
+
se(t.removed, {
|
|
533
|
+
attribute: r || null,
|
|
534
|
+
from: n
|
|
535
|
+
});
|
|
443
536
|
try {
|
|
444
|
-
|
|
445
|
-
attribute: n.getAttributeNode(e),
|
|
446
|
-
from: n
|
|
447
|
-
});
|
|
537
|
+
r ? m(n, r) : n.removeAttribute(e);
|
|
448
538
|
} catch {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
});
|
|
539
|
+
try {
|
|
540
|
+
n.removeAttribute(e);
|
|
541
|
+
} catch {}
|
|
453
542
|
}
|
|
454
|
-
if (
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
543
|
+
if (e === "is") {
|
|
544
|
+
if (K || Dt) try {
|
|
545
|
+
Z(n);
|
|
546
|
+
} catch {}
|
|
547
|
+
else try {
|
|
548
|
+
n.setAttribute(e, "");
|
|
549
|
+
} catch {}
|
|
550
|
+
}
|
|
551
|
+
}, dn = function(e) {
|
|
552
|
+
let t = re(e);
|
|
462
553
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
463
554
|
let r = t[n], i = r && r.name;
|
|
464
|
-
|
|
465
|
-
e.removeAttribute(i);
|
|
466
|
-
} catch {}
|
|
555
|
+
typeof i != "string" || B[X(i)] || ln(e, r, i);
|
|
467
556
|
}
|
|
468
|
-
},
|
|
557
|
+
}, fn = function(e) {
|
|
469
558
|
let t = [e];
|
|
470
559
|
for (; t.length > 0;) {
|
|
471
560
|
let e = t.pop();
|
|
472
|
-
(
|
|
473
|
-
let n =
|
|
561
|
+
S(e) === P.element && dn(e);
|
|
562
|
+
let n = h(e);
|
|
474
563
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
475
564
|
}
|
|
476
|
-
},
|
|
477
|
-
|
|
565
|
+
}, pn = function(e, t) {
|
|
566
|
+
return W ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
567
|
+
}, mn = function(e) {
|
|
568
|
+
if (!W) return;
|
|
478
569
|
let t = [e];
|
|
479
570
|
for (; t.length > 0;) {
|
|
480
|
-
let e = t.pop(), n =
|
|
481
|
-
if (n ===
|
|
571
|
+
let e = t.pop(), n = S(e);
|
|
572
|
+
if (n === P.processingInstruction || n === P.comment && D(We, e.data)) {
|
|
482
573
|
try {
|
|
483
|
-
|
|
574
|
+
p(e);
|
|
484
575
|
} catch {}
|
|
485
576
|
continue;
|
|
486
577
|
}
|
|
487
|
-
if (n ===
|
|
488
|
-
let t = e, n = X(
|
|
578
|
+
if (n === P.element) {
|
|
579
|
+
let t = e, n = X(ge(e));
|
|
489
580
|
try {
|
|
490
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
581
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
|
|
491
582
|
} catch {}
|
|
492
583
|
}
|
|
493
|
-
let r =
|
|
584
|
+
let r = h(e);
|
|
494
585
|
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
495
586
|
}
|
|
496
|
-
},
|
|
587
|
+
}, hn = function(e) {
|
|
497
588
|
let t = null, r = null;
|
|
498
|
-
if (
|
|
589
|
+
if (Et) e = "<remove></remove>" + e;
|
|
499
590
|
else {
|
|
500
|
-
let t =
|
|
591
|
+
let t = fe(e, /^[\r\n\t ]+/);
|
|
501
592
|
r = t && t[0];
|
|
502
593
|
}
|
|
503
|
-
|
|
504
|
-
let i =
|
|
505
|
-
if (
|
|
506
|
-
t = new l().parseFromString(i,
|
|
594
|
+
Xt === "application/xhtml+xml" && Vt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
595
|
+
let i = w ? j(e) : e;
|
|
596
|
+
if (Vt === Y) try {
|
|
597
|
+
t = new l().parseFromString(i, Xt);
|
|
507
598
|
} catch {}
|
|
508
599
|
if (!t || !t.documentElement) {
|
|
509
|
-
t =
|
|
600
|
+
t = I.createDocument(Vt, "template", null);
|
|
510
601
|
try {
|
|
511
|
-
t.documentElement.innerHTML =
|
|
602
|
+
t.documentElement.innerHTML = Ht ? T : i;
|
|
512
603
|
} catch {}
|
|
513
604
|
}
|
|
514
605
|
let a = t.body || t.documentElement;
|
|
515
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
606
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === Y ? at.call(t, G ? "html" : "body")[0] : G ? t.documentElement : a;
|
|
607
|
+
}, gn = function(e) {
|
|
608
|
+
let t = x ? x(e) : e.ownerDocument;
|
|
609
|
+
return rt.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
610
|
+
}, _n = function(e) {
|
|
611
|
+
return e = pe(e, st, " "), e = pe(e, ct, " "), e = pe(e, lt, " "), e;
|
|
612
|
+
}, vn = function(e) {
|
|
521
613
|
e.normalize();
|
|
522
|
-
let t =
|
|
523
|
-
for (;
|
|
524
|
-
let
|
|
525
|
-
|
|
526
|
-
|
|
614
|
+
let t = x ? x(e) : e.ownerDocument, n = rt.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
615
|
+
for (; r;) r.data = _n(r.data), r = n.nextNode();
|
|
616
|
+
let i = e.querySelectorAll?.call(e, "template");
|
|
617
|
+
i && C(i, (e) => {
|
|
618
|
+
bn(e.content) && vn(e.content);
|
|
527
619
|
});
|
|
528
|
-
},
|
|
529
|
-
let t =
|
|
530
|
-
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !==
|
|
531
|
-
},
|
|
620
|
+
}, yn = function(e) {
|
|
621
|
+
let t = b ? b(e) : null;
|
|
622
|
+
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(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 !== _(e) || e.childNodes !== h(e);
|
|
623
|
+
}, bn = function(e) {
|
|
532
624
|
if (!_ || typeof e != "object" || !e) return !1;
|
|
533
625
|
try {
|
|
534
|
-
return _(e) ===
|
|
626
|
+
return _(e) === P.documentFragment;
|
|
535
627
|
} catch {
|
|
536
628
|
return !1;
|
|
537
629
|
}
|
|
538
|
-
},
|
|
630
|
+
}, xn = function(e) {
|
|
539
631
|
if (!_ || typeof e != "object" || !e) return !1;
|
|
540
632
|
try {
|
|
541
633
|
return typeof _(e) == "number";
|
|
@@ -544,54 +636,55 @@ function Ye() {
|
|
|
544
636
|
}
|
|
545
637
|
};
|
|
546
638
|
function $(e, n, r) {
|
|
547
|
-
e.length !== 0 &&
|
|
548
|
-
e.call(t, n, r,
|
|
639
|
+
e.length !== 0 && C(e, (e) => {
|
|
640
|
+
e.call(t, n, r, Qt);
|
|
549
641
|
});
|
|
550
642
|
}
|
|
551
|
-
let
|
|
552
|
-
return !!(
|
|
553
|
-
},
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
643
|
+
let Sn = function(e, t) {
|
|
644
|
+
return !!(W && e.hasChildNodes() && !xn(e.firstElementChild) && D(Ue, e.textContent) && D(Ue, e.innerHTML) || W && e.namespaceURI === Y && Je[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && D(Ye[t], e.textContent)) || e.nodeType === P.processingInstruction || W && e.nodeType === P.comment && D(We, e.data));
|
|
645
|
+
}, Cn = function(e, t) {
|
|
646
|
+
return e instanceof RegExp ? D(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
647
|
+
}, wn = function(e, t, n) {
|
|
648
|
+
if (!_t[t] && An(t) && Cn(V.tagNameCheck, t)) return !1;
|
|
649
|
+
if (Mt && !J[t]) {
|
|
650
|
+
let t = g(e), r = h(e);
|
|
651
|
+
if (r && t) {
|
|
652
|
+
let i = r.length;
|
|
653
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
654
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
655
|
+
t.insertBefore(i, ee(e));
|
|
562
656
|
}
|
|
563
657
|
}
|
|
564
658
|
}
|
|
565
659
|
return Z(e), !0;
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
660
|
+
}, Tn = function(e, t, n, r) {
|
|
661
|
+
return e.length === 0 ? t : t === n || t === r ? M(t) : t;
|
|
662
|
+
}, En = function(e, t) {
|
|
663
|
+
return e === t || g(e) !== null ? !1 : (Nt && fn(e), !0);
|
|
664
|
+
}, Dn = function(e, n) {
|
|
665
|
+
if ($(L.beforeSanitizeElements, e, null), En(e, n)) return !0;
|
|
666
|
+
if (yn(e)) return Z(e), !0;
|
|
667
|
+
let r = X(ge(e));
|
|
668
|
+
if (z = Tn(L.uponSanitizeElement, z, ht, wt), $(L.uponSanitizeElement, e, {
|
|
571
669
|
tagName: r,
|
|
572
|
-
allowedTags:
|
|
573
|
-
}), e
|
|
574
|
-
if (
|
|
575
|
-
if (
|
|
576
|
-
let t =
|
|
577
|
-
return t === !1 && $(
|
|
578
|
-
}
|
|
579
|
-
if ((_ ? _(e) : e.nodeType) === N.element && !en(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(We, e.innerHTML)) return Z(e), !0;
|
|
580
|
-
if (H && e.nodeType === N.text) {
|
|
581
|
-
let n = cn(e.textContent);
|
|
582
|
-
e.textContent !== n && (x(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
670
|
+
allowedTags: z
|
|
671
|
+
}), En(e, n)) return !0;
|
|
672
|
+
if (Sn(e, r)) return Z(e), !0;
|
|
673
|
+
if (_t[r] || !(H.tagCheck instanceof Function && H.tagCheck(r)) && !z[r]) {
|
|
674
|
+
let t = wn(e, r, n);
|
|
675
|
+
return t === !1 && ($(L.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
|
|
583
676
|
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
if (!(mt && D(at, t)) && !(pt && D(ot, t))) {
|
|
589
|
-
if (!i) {
|
|
590
|
-
if (!(vn(e) && (z.tagNameCheck instanceof RegExp && D(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && D(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && D(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
|
|
591
|
-
} else if (!At[t] && !D(lt, fe(r, I, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && pe(r, "data:") === 0 && Ot[e]) && !(ht && !D(st, fe(r, I, ""))) && r) return !1;
|
|
677
|
+
if (S(e) === P.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(Ge, e.innerHTML)) return Z(e), !0;
|
|
678
|
+
if (U && e.nodeType === P.text) {
|
|
679
|
+
let n = _n(e.textContent);
|
|
680
|
+
e.textContent !== n && (se(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
592
681
|
}
|
|
593
|
-
return
|
|
594
|
-
},
|
|
682
|
+
return $(L.afterSanitizeElements, e, null), En(e, n);
|
|
683
|
+
}, On = function(e, t, r) {
|
|
684
|
+
if (vt[t] || pn(t, e) || kt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
|
|
685
|
+
let i = B[t] || H.attributeCheck instanceof Function && H.attributeCheck(t, e);
|
|
686
|
+
return bt && D(R, t) || yt && D(ut, t) ? !0 : i ? Lt[t] || D(mt, pe(r, ft, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && me(r, "data:") === 0 && Ft[e] || xt && !D(dt, pe(r, ft, "")) ? !0 : !r : An(e) && Cn(V.tagNameCheck, e) && Cn(V.attributeNameCheck, t, e) || t === "is" && V.allowCustomizedBuiltInElements && Cn(V.tagNameCheck, r);
|
|
687
|
+
}, kn = A({}, [
|
|
595
688
|
"annotation-xml",
|
|
596
689
|
"color-profile",
|
|
597
690
|
"font-face",
|
|
@@ -600,66 +693,67 @@ function Ye() {
|
|
|
600
693
|
"font-face-src",
|
|
601
694
|
"font-face-uri",
|
|
602
695
|
"missing-glyph"
|
|
603
|
-
]),
|
|
604
|
-
return !
|
|
605
|
-
},
|
|
606
|
-
if (
|
|
607
|
-
case "TrustedHTML": return
|
|
608
|
-
case "TrustedScriptURL": return
|
|
696
|
+
]), An = function(e) {
|
|
697
|
+
return !kn[ue(e)] && D(pt, e);
|
|
698
|
+
}, jn = function(e, t, n, r) {
|
|
699
|
+
if (w && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
700
|
+
case "TrustedHTML": return j(r);
|
|
701
|
+
case "TrustedScriptURL": return qe(r);
|
|
609
702
|
}
|
|
610
703
|
return r;
|
|
611
|
-
},
|
|
704
|
+
}, Mn = function(e, t, n, r) {
|
|
612
705
|
try {
|
|
613
|
-
|
|
706
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Z(e), !1);
|
|
614
707
|
} catch {
|
|
615
|
-
Q(
|
|
708
|
+
return Q(t, e), !1;
|
|
616
709
|
}
|
|
617
|
-
},
|
|
618
|
-
$(
|
|
619
|
-
let
|
|
620
|
-
if (!
|
|
621
|
-
|
|
710
|
+
}, Nn = function(e, n) {
|
|
711
|
+
if ($(L.beforeSanitizeAttributes, e, null), En(e, n)) return;
|
|
712
|
+
let r = e.attributes;
|
|
713
|
+
if (!r || yn(e)) return;
|
|
714
|
+
B = Tn(L.uponSanitizeAttribute, B, gt, Tt);
|
|
715
|
+
let i = {
|
|
622
716
|
attrName: "",
|
|
623
717
|
attrValue: "",
|
|
624
718
|
keepAttr: !0,
|
|
625
|
-
allowedAttributes:
|
|
719
|
+
allowedAttributes: B,
|
|
626
720
|
forceKeepAttr: void 0
|
|
627
|
-
},
|
|
628
|
-
for (;
|
|
629
|
-
let
|
|
630
|
-
if (
|
|
631
|
-
Q(
|
|
721
|
+
}, a = r.length, o = X(e.nodeName);
|
|
722
|
+
for (; a--;) {
|
|
723
|
+
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;
|
|
724
|
+
if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(L.uponSanitizeAttribute, e, i), f = i.attrValue, At && (u === "id" || u === "name") && me(f, jt) !== 0 && (Q(s, e, n), f = jt + f, p = !0), W && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
|
|
725
|
+
Q(s, e, n);
|
|
632
726
|
continue;
|
|
633
727
|
}
|
|
634
|
-
if (
|
|
635
|
-
Q(
|
|
728
|
+
if (u === "attributename" && fe(f, "href")) {
|
|
729
|
+
Q(s, e, n);
|
|
636
730
|
continue;
|
|
637
731
|
}
|
|
638
|
-
if (!
|
|
639
|
-
if (!
|
|
640
|
-
Q(
|
|
732
|
+
if (!i.forceKeepAttr) {
|
|
733
|
+
if (!i.keepAttr) {
|
|
734
|
+
Q(s, e, n);
|
|
641
735
|
continue;
|
|
642
736
|
}
|
|
643
|
-
if (!
|
|
644
|
-
Q(
|
|
737
|
+
if (!St && D(Ke, f)) {
|
|
738
|
+
Q(s, e, n);
|
|
645
739
|
continue;
|
|
646
740
|
}
|
|
647
|
-
if (
|
|
648
|
-
Q(
|
|
741
|
+
if (U && (f = _n(f)), !On(o, u, f)) {
|
|
742
|
+
Q(s, e, n);
|
|
649
743
|
continue;
|
|
650
744
|
}
|
|
651
|
-
|
|
745
|
+
f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && oe(t.removed);
|
|
652
746
|
}
|
|
653
747
|
}
|
|
654
|
-
$(
|
|
655
|
-
},
|
|
656
|
-
let t = null, n =
|
|
657
|
-
for ($(
|
|
658
|
-
let e =
|
|
659
|
-
|
|
748
|
+
$(L.afterSanitizeAttributes, e, null), En(e, n);
|
|
749
|
+
}, Pn = function(e) {
|
|
750
|
+
let t = null, n = gn(e);
|
|
751
|
+
for ($(L.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(L.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), bn(t.content) && Pn(t.content), S(t) === P.element) {
|
|
752
|
+
let e = ne(t);
|
|
753
|
+
bn(e) && (Fn(e), Pn(e));
|
|
660
754
|
}
|
|
661
|
-
$(
|
|
662
|
-
},
|
|
755
|
+
$(L.afterSanitizeShadowDOM, e, null);
|
|
756
|
+
}, Fn = function(e) {
|
|
663
757
|
let t = [{
|
|
664
758
|
node: e,
|
|
665
759
|
shadow: null
|
|
@@ -667,27 +761,27 @@ function Ye() {
|
|
|
667
761
|
for (; t.length > 0;) {
|
|
668
762
|
let e = t.pop();
|
|
669
763
|
if (e.shadow) {
|
|
670
|
-
|
|
764
|
+
Pn(e.shadow);
|
|
671
765
|
continue;
|
|
672
766
|
}
|
|
673
|
-
let n = e.node, r = (
|
|
767
|
+
let n = e.node, r = S(n) === P.element, i = h(n);
|
|
674
768
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
675
769
|
node: i[e],
|
|
676
770
|
shadow: null
|
|
677
771
|
});
|
|
678
772
|
if (r) {
|
|
679
|
-
let e =
|
|
773
|
+
let e = b ? b(n) : null;
|
|
680
774
|
if (typeof e == "string" && X(e) === "template") {
|
|
681
775
|
let e = n.content;
|
|
682
|
-
|
|
776
|
+
bn(e) && t.push({
|
|
683
777
|
node: e,
|
|
684
778
|
shadow: null
|
|
685
779
|
});
|
|
686
780
|
}
|
|
687
781
|
}
|
|
688
782
|
if (r) {
|
|
689
|
-
let e =
|
|
690
|
-
|
|
783
|
+
let e = ne(n);
|
|
784
|
+
bn(e) && t.push({
|
|
691
785
|
node: null,
|
|
692
786
|
shadow: e
|
|
693
787
|
}, {
|
|
@@ -699,85 +793,90 @@ function Ye() {
|
|
|
699
793
|
};
|
|
700
794
|
return t.sanitize = function(e) {
|
|
701
795
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
702
|
-
if (
|
|
796
|
+
if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = be(e), typeof e != "string")) throw O("dirty is not a string, aborting");
|
|
703
797
|
if (!t.isSupported) return e;
|
|
704
|
-
|
|
705
|
-
let c =
|
|
798
|
+
Ct ? (z = wt, B = Tt) : tn(n), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (z = M(z)), L.uponSanitizeAttribute.length > 0 && (B = M(B)), t.removed = [];
|
|
799
|
+
let c = Nt && typeof e != "string" && xn(e);
|
|
706
800
|
if (c) {
|
|
707
|
-
|
|
708
|
-
let t =
|
|
801
|
+
mn(e);
|
|
802
|
+
let t = ge(e);
|
|
709
803
|
if (typeof t == "string") {
|
|
710
804
|
let n = X(t);
|
|
711
|
-
if (!
|
|
805
|
+
if (!z[n] || _t[n]) throw un(e), O("root node is forbidden and cannot be sanitized in-place");
|
|
712
806
|
}
|
|
713
|
-
if (
|
|
807
|
+
if (yn(e)) throw un(e), O("root node is clobbered and cannot be sanitized in-place");
|
|
714
808
|
try {
|
|
715
|
-
|
|
809
|
+
Fn(e);
|
|
716
810
|
} catch (t) {
|
|
717
|
-
throw
|
|
811
|
+
throw un(e), t;
|
|
718
812
|
}
|
|
719
|
-
} else if (
|
|
813
|
+
} else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === P.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
|
|
720
814
|
else {
|
|
721
|
-
if (!
|
|
722
|
-
if (i =
|
|
815
|
+
if (!K && !U && !G && e.indexOf("<") === -1) return w && Ot ? j(e) : e;
|
|
816
|
+
if (i = hn(e), !i) return K ? null : Ot ? T : "";
|
|
723
817
|
}
|
|
724
|
-
i &&
|
|
725
|
-
let l = c ? e : i
|
|
818
|
+
i && Et && Z(i.firstChild);
|
|
819
|
+
let l = c ? e : i;
|
|
726
820
|
try {
|
|
727
|
-
|
|
821
|
+
let e = gn(l);
|
|
822
|
+
for (; o = e.nextNode();) Dn(o, l), Nn(o, l), bn(o.content) && Pn(o.content);
|
|
728
823
|
} catch (n) {
|
|
729
|
-
throw c && (
|
|
730
|
-
e.element &&
|
|
824
|
+
throw c && (un(e), C(t.removed, (e) => {
|
|
825
|
+
e.element && fn(e.element);
|
|
731
826
|
})), n;
|
|
732
827
|
}
|
|
733
|
-
if (c)
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
828
|
+
if (c) {
|
|
829
|
+
let n = !1;
|
|
830
|
+
if (C(t.removed, (t) => {
|
|
831
|
+
t.element && (t.element === e && (n = !0), fn(t.element));
|
|
832
|
+
}), n) throw O("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
833
|
+
return U && vn(e), e;
|
|
834
|
+
}
|
|
835
|
+
if (K) {
|
|
836
|
+
if (U && vn(i), Dt) for (s = it.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
738
837
|
else s = i;
|
|
739
|
-
return (
|
|
838
|
+
return (B.shadowroot || B.shadowrootmode) && (s = ot.call(r, s, !0)), s;
|
|
740
839
|
}
|
|
741
|
-
let
|
|
742
|
-
return
|
|
840
|
+
let u = G ? i.outerHTML : i.innerHTML;
|
|
841
|
+
return G && z["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(Ve, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), U && (u = _n(u)), w && Ot ? j(u) : u;
|
|
743
842
|
}, t.setConfig = function() {
|
|
744
843
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
745
|
-
|
|
844
|
+
tn(e), Ct = !0, wt = z, Tt = B;
|
|
746
845
|
}, t.clearConfig = function() {
|
|
747
|
-
|
|
846
|
+
Qt = null, Ct = !1, wt = null, Tt = null, w = _e, T = "";
|
|
748
847
|
}, t.isValidAttribute = function(e, t, n) {
|
|
749
|
-
|
|
848
|
+
Qt || tn({});
|
|
750
849
|
let r = X(e), i = X(t);
|
|
751
|
-
return
|
|
850
|
+
return On(r, i, n);
|
|
752
851
|
}, t.addHook = function(e, t) {
|
|
753
|
-
typeof t == "function" &&
|
|
852
|
+
typeof t == "function" && E(L, e) && se(L[e], t);
|
|
754
853
|
}, t.removeHook = function(e, t) {
|
|
755
|
-
if (
|
|
854
|
+
if (E(L, e)) {
|
|
756
855
|
if (t !== void 0) {
|
|
757
|
-
let n =
|
|
758
|
-
return n === -1 ? void 0 : ce(
|
|
856
|
+
let n = ae(L[e], t);
|
|
857
|
+
return n === -1 ? void 0 : ce(L[e], n, 1)[0];
|
|
759
858
|
}
|
|
760
|
-
return
|
|
859
|
+
return oe(L[e]);
|
|
761
860
|
}
|
|
762
861
|
}, t.removeHooks = function(e) {
|
|
763
|
-
|
|
862
|
+
E(L, e) && (L[e] = []);
|
|
764
863
|
}, t.removeAllHooks = function() {
|
|
765
|
-
|
|
864
|
+
L = Qe();
|
|
766
865
|
}, t;
|
|
767
866
|
}
|
|
768
|
-
var
|
|
867
|
+
var tt = et(), nt = {
|
|
769
868
|
tip: "mdi mdi-lightbulb-on",
|
|
770
869
|
warning: "mdi mdi-alert-circle-outline",
|
|
771
870
|
note: "mdi mdi-note-text-outline",
|
|
772
871
|
important: "mdi mdi-star-outline",
|
|
773
872
|
caution: "mdi mdi-alert-circle"
|
|
774
873
|
};
|
|
775
|
-
function
|
|
874
|
+
function I(e) {
|
|
776
875
|
if (typeof e != "string") return String(e);
|
|
777
876
|
let t = document.createElement("div");
|
|
778
877
|
return t.textContent = e, t.innerHTML;
|
|
779
878
|
}
|
|
780
|
-
var
|
|
879
|
+
var rt = /* @__PURE__ */ new Set([
|
|
781
880
|
"display",
|
|
782
881
|
"width",
|
|
783
882
|
"height",
|
|
@@ -799,19 +898,19 @@ var $e = /* @__PURE__ */ new Set([
|
|
|
799
898
|
"vertical-align",
|
|
800
899
|
"filter"
|
|
801
900
|
]);
|
|
802
|
-
|
|
901
|
+
tt.addHook("afterSanitizeAttributes", (e) => {
|
|
803
902
|
let t = e;
|
|
804
903
|
if (typeof t.getAttribute != "function") return;
|
|
805
904
|
let n = t.getAttribute("style");
|
|
806
905
|
if (!n) return;
|
|
807
906
|
let r = n.split(";").map((e) => e.trim()).filter((e) => {
|
|
808
907
|
let t = e.split(":")[0]?.trim().toLowerCase();
|
|
809
|
-
return !!t &&
|
|
908
|
+
return !!t && rt.has(t);
|
|
810
909
|
}).join("; ");
|
|
811
910
|
r ? t.setAttribute("style", r) : t.removeAttribute("style");
|
|
812
911
|
});
|
|
813
|
-
function
|
|
814
|
-
return
|
|
912
|
+
function it(e) {
|
|
913
|
+
return tt.sanitize(e, {
|
|
815
914
|
ALLOWED_TAGS: /* @__PURE__ */ "h1.h2.h3.h4.hr.p.ul.ol.li.strong.em.a.br.span.pre.code.div.button.svg.rect.path.polyline.table.thead.tbody.tr.th.td".split("."),
|
|
816
915
|
ALLOWED_ATTR: [
|
|
817
916
|
"href",
|
|
@@ -853,7 +952,7 @@ function et(e) {
|
|
|
853
952
|
]
|
|
854
953
|
});
|
|
855
954
|
}
|
|
856
|
-
function
|
|
955
|
+
function at(e) {
|
|
857
956
|
return ![/\_\_proto\_\_/].some((t) => t.test(e)) && [
|
|
858
957
|
/^data\[\d+\]\.[\w.]+$/,
|
|
859
958
|
/^data\.length$/,
|
|
@@ -861,25 +960,25 @@ function tt(e) {
|
|
|
861
960
|
/^[\w.]+$/
|
|
862
961
|
].some((t) => t.test(e));
|
|
863
962
|
}
|
|
864
|
-
function
|
|
963
|
+
function ot(e) {
|
|
865
964
|
return e = e.split("||")[0], /^[\w\s|'"\.\-]+$/.test(e);
|
|
866
965
|
}
|
|
867
|
-
function
|
|
966
|
+
function L(e) {
|
|
868
967
|
return ![
|
|
869
968
|
"javascript:",
|
|
870
969
|
"data:",
|
|
871
970
|
"vbscript:"
|
|
872
971
|
].some((t) => e.startsWith(t));
|
|
873
972
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
973
|
+
var st = "";
|
|
974
|
+
function ct(e = "Loading") {
|
|
876
975
|
let t = e.length, n;
|
|
877
|
-
return n = t <= 5 ? "60px" : t <= 10 ? "80px" : t <= 20 ? "120px" : "160px", `<span class="loading-pill" style="display: inline-block; width: ${n}; height: 1em; margin: calc((1lh - 1em) / 2) 0; vertical-align: top; border-radius: 4px; filter: blur(0.5px);"></span>${
|
|
976
|
+
return n = t <= 5 ? "60px" : t <= 10 ? "80px" : t <= 20 ? "120px" : "160px", `<span class="loading-pill" style="display: inline-block; width: ${n}; height: 1em; margin: calc((1lh - 1em) / 2) 0; vertical-align: top; border-radius: 4px; filter: blur(0.5px);"></span>${st}`;
|
|
878
977
|
}
|
|
879
|
-
function
|
|
978
|
+
function lt() {
|
|
880
979
|
return "\n <style>\n @keyframes shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .loading-pill {\n animation: shimmer 1.5s infinite linear;\n }\n </style>\n ";
|
|
881
980
|
}
|
|
882
|
-
function
|
|
981
|
+
function R(e, t) {
|
|
883
982
|
return t.split(".").reduce((e, t) => {
|
|
884
983
|
if (e && typeof e == "object") {
|
|
885
984
|
let n = t.match(/^(\w+)\[(\d+)\]$/);
|
|
@@ -891,7 +990,7 @@ function ot(e, t) {
|
|
|
891
990
|
}
|
|
892
991
|
}, e);
|
|
893
992
|
}
|
|
894
|
-
function
|
|
993
|
+
function ut(e) {
|
|
895
994
|
let t = e.match(/^(.+?)\s*\|\|\s*(.+?)$/);
|
|
896
995
|
if (!t) return null;
|
|
897
996
|
let [, n, r] = t;
|
|
@@ -900,19 +999,19 @@ function st(e) {
|
|
|
900
999
|
fallbackExpr: r.trim()
|
|
901
1000
|
};
|
|
902
1001
|
}
|
|
903
|
-
function
|
|
1002
|
+
function dt(e) {
|
|
904
1003
|
return e.startsWith("'") && e.endsWith("'") || e.startsWith("\"") && e.endsWith("\"") ? e.slice(1, -1) : null;
|
|
905
1004
|
}
|
|
906
|
-
function
|
|
1005
|
+
function ft(e, t, n = !1) {
|
|
907
1006
|
if (n || !t || !t.length) return;
|
|
908
|
-
if (!
|
|
1007
|
+
if (!at(e)) {
|
|
909
1008
|
console.warn("Potentially unsafe expression blocked:", e);
|
|
910
1009
|
return;
|
|
911
1010
|
}
|
|
912
1011
|
let r = e.match(/^data\[(\d+)\]\.(.+)$/);
|
|
913
1012
|
if (r) {
|
|
914
1013
|
let [, e, n] = r, i = parseInt(e);
|
|
915
|
-
return t[i] ?
|
|
1014
|
+
return t[i] ? R(t[i], n) : void 0;
|
|
916
1015
|
}
|
|
917
1016
|
if (e === "data.length") return t.length;
|
|
918
1017
|
if (t.length > 0) {
|
|
@@ -920,7 +1019,7 @@ function ct(e, t, n = !1) {
|
|
|
920
1019
|
if (n && n[e] !== void 0) return n[e];
|
|
921
1020
|
}
|
|
922
1021
|
}
|
|
923
|
-
function
|
|
1022
|
+
function pt(e) {
|
|
924
1023
|
let t = 0;
|
|
925
1024
|
for (let n = 0; n < e.length; n++) {
|
|
926
1025
|
let r = e[n];
|
|
@@ -930,7 +1029,7 @@ function lt(e) {
|
|
|
930
1029
|
}
|
|
931
1030
|
return -1;
|
|
932
1031
|
}
|
|
933
|
-
function
|
|
1032
|
+
function mt(e, t) {
|
|
934
1033
|
if (!t || !t.length) return;
|
|
935
1034
|
let n = t[0], r = e.replace(/\b([a-zA-Z_]\w*)\b/g, (e, t) => {
|
|
936
1035
|
let r = n[t], i = Number(r);
|
|
@@ -943,7 +1042,7 @@ function L(e, t) {
|
|
|
943
1042
|
return;
|
|
944
1043
|
}
|
|
945
1044
|
}
|
|
946
|
-
function
|
|
1045
|
+
function z(e, t) {
|
|
947
1046
|
if (t === ",") return e.toLocaleString("en-US");
|
|
948
1047
|
let n = t.match(/^\.(\d+)f$/);
|
|
949
1048
|
if (n) return e.toFixed(parseInt(n[1]));
|
|
@@ -958,14 +1057,14 @@ function ut(e, t) {
|
|
|
958
1057
|
let i = t.match(/^\.(\d+)%$/);
|
|
959
1058
|
return i ? (e * 100).toFixed(parseInt(i[1])) + "%" : String(e);
|
|
960
1059
|
}
|
|
961
|
-
function
|
|
1060
|
+
function ht(e, t, n) {
|
|
962
1061
|
if (n || !t || !t.length) return;
|
|
963
|
-
let r =
|
|
1062
|
+
let r = pt(e);
|
|
964
1063
|
if (r === -1) return;
|
|
965
1064
|
let i = e.substring(0, r).trim(), a = e.substring(r + 1).trim();
|
|
966
1065
|
if (!a) return;
|
|
967
1066
|
let o, s;
|
|
968
|
-
if (/^\(.*\)$/.test(i)) o =
|
|
1067
|
+
if (/^\(.*\)$/.test(i)) o = mt(i.slice(1, -1), t);
|
|
969
1068
|
else if (/^\w+$/.test(i)) {
|
|
970
1069
|
s = t[0][i];
|
|
971
1070
|
let e = Number(s);
|
|
@@ -975,100 +1074,102 @@ function R(e, t, n) {
|
|
|
975
1074
|
if (e) {
|
|
976
1075
|
let [, n, r] = e, i = parseInt(n);
|
|
977
1076
|
if (t[i]) {
|
|
978
|
-
s =
|
|
1077
|
+
s = R(t[i], r);
|
|
979
1078
|
let e = Number(s);
|
|
980
1079
|
o = s != null && s !== "" && !isNaN(e) ? e : void 0;
|
|
981
1080
|
}
|
|
982
1081
|
}
|
|
983
1082
|
}
|
|
984
|
-
if (o === void 0 && (s == null || s === "") && (o = 0), o !== void 0) return
|
|
1083
|
+
if (o === void 0 && (s == null || s === "") && (o = 0), o !== void 0) return z(o, a);
|
|
985
1084
|
}
|
|
986
|
-
function
|
|
1085
|
+
function B(e, t, n = !1) {
|
|
987
1086
|
try {
|
|
988
|
-
let r =
|
|
1087
|
+
let r = ut(e);
|
|
989
1088
|
if (r) {
|
|
990
1089
|
let { mainExpr: e, fallbackExpr: i } = r;
|
|
991
|
-
if (n) return
|
|
992
|
-
let a =
|
|
1090
|
+
if (n) return ct(dt(i) || i);
|
|
1091
|
+
let a = ft(e, t, n);
|
|
993
1092
|
if (a != null && a !== "") return String(a);
|
|
994
1093
|
{
|
|
995
|
-
let e =
|
|
1094
|
+
let e = dt(i);
|
|
996
1095
|
if (e !== null) return e;
|
|
997
1096
|
{
|
|
998
|
-
let e =
|
|
1097
|
+
let e = ft(i, t, n);
|
|
999
1098
|
return e === void 0 ? i : String(e);
|
|
1000
1099
|
}
|
|
1001
1100
|
}
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
|
|
1101
|
+
}
|
|
1102
|
+
{
|
|
1103
|
+
if (n) return ct(e);
|
|
1104
|
+
let r = ht(e, t, n);
|
|
1005
1105
|
if (r !== void 0) return r;
|
|
1006
|
-
let i =
|
|
1106
|
+
let i = ft(e, t, n);
|
|
1007
1107
|
return i === null || i === "" ? "Null" : i === void 0 ? `{${e}}` : String(i);
|
|
1008
1108
|
}
|
|
1009
1109
|
} catch (t) {
|
|
1010
|
-
return console.warn("Error evaluating fallback expression:", e, t), n ?
|
|
1110
|
+
return console.warn("Error evaluating fallback expression:", e, t), n ? ct("Error") : `{${e}}`;
|
|
1011
1111
|
}
|
|
1012
1112
|
}
|
|
1013
|
-
function
|
|
1113
|
+
function gt(e) {
|
|
1014
1114
|
let t = e.trim();
|
|
1015
1115
|
return t.startsWith("#") || t.startsWith("/");
|
|
1016
1116
|
}
|
|
1017
|
-
function
|
|
1018
|
-
let n = (e, n) =>
|
|
1117
|
+
function V(e, t) {
|
|
1118
|
+
let n = (e, n) => gt(n) ? e : t(n, e);
|
|
1019
1119
|
return e.replace(/\{\{([^{}]+)\}\}/g, n).replace(/\{([^{}]+)\}/g, n);
|
|
1020
1120
|
}
|
|
1021
|
-
function
|
|
1121
|
+
function _t(e, t, n, r = !0) {
|
|
1022
1122
|
let i = e.trim();
|
|
1023
1123
|
if (i === "@index") return String(n);
|
|
1024
1124
|
if (i === ".") return String(t);
|
|
1025
|
-
let a =
|
|
1125
|
+
let a = pt(i);
|
|
1026
1126
|
if (a !== -1) {
|
|
1027
1127
|
let e = i.substring(0, a).trim(), n = i.substring(a + 1).trim();
|
|
1028
1128
|
if (n && /^\w+$/.test(e)) {
|
|
1029
1129
|
let r = t[e], i = Number(r);
|
|
1030
|
-
return r != null && r !== "" && !isNaN(i) ?
|
|
1130
|
+
return r != null && r !== "" && !isNaN(i) ? z(i, n) : r === void 0 ? "" : String(r);
|
|
1031
1131
|
}
|
|
1032
1132
|
}
|
|
1033
|
-
if (!
|
|
1034
|
-
let o =
|
|
1133
|
+
if (!ot(i)) return console.warn("Potentially unsafe field expression blocked:", i), `unsafe{${i}}`;
|
|
1134
|
+
let o = ut(i);
|
|
1035
1135
|
if (o) {
|
|
1036
1136
|
let { mainExpr: e, fallbackExpr: n } = o, i;
|
|
1037
|
-
if (i = r && e.includes(".") ?
|
|
1137
|
+
if (i = r && e.includes(".") ? R(t, e) : t[e], i != null && i !== "") return String(i);
|
|
1038
1138
|
{
|
|
1039
|
-
let e =
|
|
1139
|
+
let e = dt(n);
|
|
1040
1140
|
if (e !== null) return e;
|
|
1041
1141
|
{
|
|
1042
1142
|
let e;
|
|
1043
|
-
return e = r && n.includes(".") ?
|
|
1143
|
+
return e = r && n.includes(".") ? R(t, n) : t[n], e === void 0 ? n : String(e);
|
|
1044
1144
|
}
|
|
1045
1145
|
}
|
|
1046
|
-
}
|
|
1146
|
+
}
|
|
1147
|
+
{
|
|
1047
1148
|
let e;
|
|
1048
|
-
return e = r && i.includes(".") ?
|
|
1149
|
+
return e = r && i.includes(".") ? R(t, i) : t[i], e === void 0 ? "" : String(e);
|
|
1049
1150
|
}
|
|
1050
1151
|
}
|
|
1051
|
-
function
|
|
1152
|
+
function vt(e, t) {
|
|
1052
1153
|
let n = "", r = Math.min(t ?? 3, 3);
|
|
1053
1154
|
for (let t = 0; t < r; t++) {
|
|
1054
|
-
let t =
|
|
1155
|
+
let t = V(e, (e) => {
|
|
1055
1156
|
let t = e.trim();
|
|
1056
|
-
return
|
|
1157
|
+
return ct(t === "@index" ? "0" : t);
|
|
1057
1158
|
});
|
|
1058
1159
|
n += t;
|
|
1059
1160
|
}
|
|
1060
1161
|
return n;
|
|
1061
1162
|
}
|
|
1062
|
-
function
|
|
1163
|
+
function H(e, t, n, r = (e) => e) {
|
|
1063
1164
|
if (!Array.isArray(t) || t.length === 0) return "";
|
|
1064
1165
|
let i = "";
|
|
1065
1166
|
return (n === void 0 ? t : t.slice(0, n)).forEach((t, n) => {
|
|
1066
1167
|
t = t.l === void 0 ? t : t.l;
|
|
1067
1168
|
let a = e;
|
|
1068
|
-
a = r(a, [t]), a =
|
|
1169
|
+
a = r(a, [t]), a = V(a, (e) => _t(e, t, n, !0)), i += a;
|
|
1069
1170
|
}), i;
|
|
1070
1171
|
}
|
|
1071
|
-
function
|
|
1172
|
+
function yt(e, t, n) {
|
|
1072
1173
|
function r(e, t) {
|
|
1073
1174
|
let n = 1, r = t;
|
|
1074
1175
|
for (; r < e.length && n > 0;) {
|
|
@@ -1083,7 +1184,7 @@ function mt(e, t, n) {
|
|
|
1083
1184
|
return -1;
|
|
1084
1185
|
}
|
|
1085
1186
|
function i(e, n) {
|
|
1086
|
-
return
|
|
1187
|
+
return yt(e, t, n);
|
|
1087
1188
|
}
|
|
1088
1189
|
let a = e, o = 0;
|
|
1089
1190
|
for (;;) {
|
|
@@ -1096,43 +1197,43 @@ function mt(e, t, n) {
|
|
|
1096
1197
|
console.warn("No matching {{/each}} found");
|
|
1097
1198
|
break;
|
|
1098
1199
|
}
|
|
1099
|
-
let u = e[1], d = e[2],
|
|
1100
|
-
if (
|
|
1200
|
+
let u = e[1], d = e[2], f = a.substring(c, l), p = d ? parseInt(d) : void 0;
|
|
1201
|
+
if (p !== void 0 && (isNaN(p) || p < 0 || p > 1e3)) {
|
|
1101
1202
|
console.warn("Invalid or unsafe limit value:", d), o = l + 9;
|
|
1102
1203
|
continue;
|
|
1103
1204
|
}
|
|
1104
|
-
let
|
|
1105
|
-
|
|
1205
|
+
let m = "";
|
|
1206
|
+
m = t.loading ? vt(f, p) : u === "data" ? H(f, n, p, i) : H(f, ft(u, n, t.loading), p, i), a = a.substring(0, s) + m + a.substring(l + 9), o = s + m.length;
|
|
1106
1207
|
}
|
|
1107
1208
|
return a;
|
|
1108
1209
|
}
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1111
|
-
if (t.loading) return
|
|
1210
|
+
function bt(e, t) {
|
|
1211
|
+
return V(e, (e, n) => {
|
|
1212
|
+
if (t.loading) return B(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
|
|
1112
1213
|
if (!t.queryResults || !t.queryResults.data) {
|
|
1113
|
-
let t =
|
|
1214
|
+
let t = ut(e);
|
|
1114
1215
|
if (t) {
|
|
1115
|
-
let e =
|
|
1216
|
+
let e = dt(t.fallbackExpr);
|
|
1116
1217
|
return e === null ? t.fallbackExpr : e;
|
|
1117
1218
|
}
|
|
1118
1219
|
return n;
|
|
1119
1220
|
}
|
|
1120
|
-
return
|
|
1221
|
+
return B(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
|
|
1121
1222
|
});
|
|
1122
1223
|
}
|
|
1123
|
-
function
|
|
1224
|
+
function xt(e, t, n = !1) {
|
|
1124
1225
|
let r = {
|
|
1125
1226
|
queryResults: t,
|
|
1126
1227
|
loading: n
|
|
1127
|
-
}, i =
|
|
1128
|
-
return i =
|
|
1228
|
+
}, i = yt(e, r, t ? [...t.data || []] : []);
|
|
1229
|
+
return i = bt(i, r), i;
|
|
1129
1230
|
}
|
|
1130
|
-
function
|
|
1231
|
+
function St() {
|
|
1131
1232
|
return "code-block-" + Math.random().toString(36).substr(2, 9);
|
|
1132
1233
|
}
|
|
1133
|
-
function U(e,
|
|
1134
|
-
let i =
|
|
1135
|
-
return `<div class="md-code-container" data-language="${i}" data-content="${
|
|
1234
|
+
function U(e, t, r) {
|
|
1235
|
+
let i = n(e), a = I(t.trim());
|
|
1236
|
+
return `<div class="md-code-container" data-language="${i}" data-content="${I(t.trim())}" id="${r}">
|
|
1136
1237
|
<pre class="code-block"><code class="language-${i}">${a}</code></pre>
|
|
1137
1238
|
<button class="markdown-copy-button" title="Copy code" onclick="copyCodeBlock('${r}')">
|
|
1138
1239
|
<svg class="copy-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
@@ -1148,7 +1249,7 @@ function U(e, n, r) {
|
|
|
1148
1249
|
function W(e, t) {
|
|
1149
1250
|
return `<div class="md-admonition md-admonition-${e}">
|
|
1150
1251
|
<div class="md-admonition-header">
|
|
1151
|
-
<span class="md-admonition-icon ${
|
|
1252
|
+
<span class="md-admonition-icon ${nt[e]}" aria-hidden="true"></span>
|
|
1152
1253
|
<span>${{
|
|
1153
1254
|
tip: "Tip",
|
|
1154
1255
|
warning: "Warning",
|
|
@@ -1157,10 +1258,10 @@ function W(e, t) {
|
|
|
1157
1258
|
caution: "Caution"
|
|
1158
1259
|
}[e]}</span>
|
|
1159
1260
|
</div>
|
|
1160
|
-
<div class="md-admonition-body">${
|
|
1261
|
+
<div class="md-admonition-body">${q(t.trim())}</div>
|
|
1161
1262
|
</div>`;
|
|
1162
1263
|
}
|
|
1163
|
-
function
|
|
1264
|
+
function G(e) {
|
|
1164
1265
|
let t = {}, n = 0;
|
|
1165
1266
|
return {
|
|
1166
1267
|
html: e.replace(/^:::(tip|warning|note|important|caution)\s*\n([\s\S]*?)\n:::\s*$/gim, (e, r, i) => {
|
|
@@ -1170,54 +1271,54 @@ function _t(e) {
|
|
|
1170
1271
|
placeholders: t
|
|
1171
1272
|
};
|
|
1172
1273
|
}
|
|
1173
|
-
function
|
|
1274
|
+
function Ct(e, t) {
|
|
1174
1275
|
let n = {}, r = 0;
|
|
1175
1276
|
return {
|
|
1176
1277
|
html: e.replace(/```(\w+)?\n?([\s\S]*?)```/g, (e, i = "", a) => {
|
|
1177
|
-
let o = U(i, t ? t(a) : a,
|
|
1278
|
+
let o = U(i, t ? t(a) : a, St()), s = `__CODEBLOCK_${r}__`;
|
|
1178
1279
|
return n[s] = o, r++, s;
|
|
1179
1280
|
}),
|
|
1180
1281
|
placeholders: n
|
|
1181
1282
|
};
|
|
1182
1283
|
}
|
|
1183
|
-
function
|
|
1284
|
+
function wt(e) {
|
|
1184
1285
|
return e.replace(/^#### (.*\S)[\s]*$/gim, "<h4 class=\"rendered-markdown-h4\">$1</h4>").replace(/^### (.*\S)[\s]*$/gim, "<h3 class=\"rendered-markdown-h3\">$1</h3>").replace(/^## (.*\S)[\s]*$/gim, "<h2 class=\"rendered-markdown-h2\">$1</h2>").replace(/^# (.*\S)[\s]*$/gim, "<h1 class=\"rendered-markdown-h1\">$1</h1>");
|
|
1185
1286
|
}
|
|
1186
|
-
function
|
|
1287
|
+
function Tt(e) {
|
|
1187
1288
|
return e.replace(/^[ \t]*(?:-[ \t]*){3,}$|^[ \t]*(?:\*[ \t]*){3,}$|^[ \t]*(?:_[ \t]*){3,}$/gm, "<hr class=\"rendered-markdown-hr\">");
|
|
1188
1289
|
}
|
|
1189
|
-
function
|
|
1290
|
+
function Et(e) {
|
|
1190
1291
|
return e.replace(/^\* (.*$)/gim, "<ul><li>$1</li></ul>").replace(/^- (.*$)/gim, "<ul><li>$1</li></ul>").replace(/<\/ul>\s*<ul>/g, "").replace(/^\d+\. (.*$)/gim, "<ol><li>$1</li></ol>").replace(/<\/ol>\s*<ol>/g, "");
|
|
1191
1292
|
}
|
|
1192
|
-
function
|
|
1293
|
+
function K(e) {
|
|
1193
1294
|
return e.replace(/\*\*\*(.*?)\*\*\*/gim, "<strong><em>$1</em></strong>").replace(/\*\*(.*?)\*\*/gim, "<strong>$1</strong>").replace(/\*(.*?)\*/gim, "<em>$1</em>");
|
|
1194
1295
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return e.replace(/\[(.*?)\]\((.*?)\)/gim, (e, t, n) =>
|
|
1296
|
+
function Dt(e) {
|
|
1297
|
+
return e.replace(/\[(.*?)\]\((.*?)\)/gim, (e, t, n) => L(n) ? `<a href="${n}">${t}</a>` : t);
|
|
1197
1298
|
}
|
|
1198
|
-
function
|
|
1299
|
+
function Ot(e) {
|
|
1199
1300
|
return e.replace(/\n\n/g, "</p><p>").replace(/<\/p><p><\/p><p>/g, "</p><p>").replace(/^<p><\/p>/, "").replace(/<p><\/p>$/, "");
|
|
1200
1301
|
}
|
|
1201
|
-
function
|
|
1302
|
+
function kt(e) {
|
|
1202
1303
|
let t = e.split("\n"), n = [], r = !1, i = [];
|
|
1203
1304
|
for (let e = 0; e < t.length; e++) {
|
|
1204
1305
|
let a = t[e].trim(), o = /^\|.*\|$/.test(a) || /^[^|]+\|[^|]+/.test(a), s = /^\|?[\s\-:|]+\|[\s\-:|]*\|?$/.test(a);
|
|
1205
1306
|
if (o || s) r || (r = !0, i = []), i.push(a);
|
|
1206
1307
|
else if (!(r && a === "")) {
|
|
1207
1308
|
if (r) {
|
|
1208
|
-
let e =
|
|
1309
|
+
let e = At(i);
|
|
1209
1310
|
e ? n.push(e) : n.push(...i), r = !1, i = [];
|
|
1210
1311
|
}
|
|
1211
1312
|
n.push(t[e]);
|
|
1212
1313
|
}
|
|
1213
1314
|
}
|
|
1214
1315
|
if (r && i.length > 0) {
|
|
1215
|
-
let e =
|
|
1316
|
+
let e = At(i);
|
|
1216
1317
|
e ? n.push(e) : n.push(...i);
|
|
1217
1318
|
}
|
|
1218
1319
|
return n.join("\n");
|
|
1219
1320
|
}
|
|
1220
|
-
function
|
|
1321
|
+
function At(e) {
|
|
1221
1322
|
if (e.length < 2) return null;
|
|
1222
1323
|
let t = -1;
|
|
1223
1324
|
for (let n = 0; n < e.length; n++) if (/^\|?[\s\-:|]+\|[\s\-:|]*\|?$/.test(e[n]) && e[n].includes("-")) {
|
|
@@ -1225,42 +1326,42 @@ function Tt(e) {
|
|
|
1225
1326
|
break;
|
|
1226
1327
|
}
|
|
1227
1328
|
if (t === -1 || t === 0) return null;
|
|
1228
|
-
let n =
|
|
1329
|
+
let n = jt(e[t]).map((e) => {
|
|
1229
1330
|
let t = e.trim(), n = t.startsWith(":"), r = t.endsWith(":");
|
|
1230
1331
|
return n && r ? "center" : r ? "right" : "left";
|
|
1231
1332
|
}), r = e.slice(0, t), i = e.slice(t + 1), a = "<div class=\"md-table-wrapper\"><table class=\"md-table\">";
|
|
1232
1333
|
a += "<thead>";
|
|
1233
1334
|
for (let e of r) {
|
|
1234
|
-
let t =
|
|
1335
|
+
let t = jt(e);
|
|
1235
1336
|
a += "<tr>", t.forEach((e, t) => {
|
|
1236
1337
|
let r = n[t] || "left";
|
|
1237
|
-
a += `<th style="text-align: ${r}">${
|
|
1338
|
+
a += `<th style="text-align: ${r}">${I(e.trim())}</th>`;
|
|
1238
1339
|
}), a += "</tr>";
|
|
1239
1340
|
}
|
|
1240
1341
|
if (a += "</thead>", i.length > 0) {
|
|
1241
1342
|
a += "<tbody>";
|
|
1242
1343
|
for (let e of i) {
|
|
1243
|
-
let t =
|
|
1344
|
+
let t = jt(e);
|
|
1244
1345
|
a += "<tr>", t.forEach((e, t) => {
|
|
1245
1346
|
let r = n[t] || "left";
|
|
1246
|
-
a += `<td style="text-align: ${r}">${
|
|
1347
|
+
a += `<td style="text-align: ${r}">${I(e.trim())}</td>`;
|
|
1247
1348
|
}), a += "</tr>";
|
|
1248
1349
|
}
|
|
1249
1350
|
a += "</tbody>";
|
|
1250
1351
|
}
|
|
1251
1352
|
return a += "</table></div>", a;
|
|
1252
1353
|
}
|
|
1253
|
-
function
|
|
1354
|
+
function jt(e) {
|
|
1254
1355
|
let t = e.trim();
|
|
1255
1356
|
return t.startsWith("|") && (t = t.substring(1)), t.endsWith("|") && (t = t.substring(0, t.length - 1)), t.split("|");
|
|
1256
1357
|
}
|
|
1257
|
-
function
|
|
1358
|
+
function Mt(e, t) {
|
|
1258
1359
|
let n = e;
|
|
1259
1360
|
return Object.keys(t).forEach((e) => {
|
|
1260
1361
|
n = n.replace(e, t[e]);
|
|
1261
1362
|
}), n;
|
|
1262
1363
|
}
|
|
1263
|
-
function
|
|
1364
|
+
function Nt(e) {
|
|
1264
1365
|
let t = {}, n = 0;
|
|
1265
1366
|
return {
|
|
1266
1367
|
html: e.replace(/<span class="loading-pill"[^>]*><\/span>?/g, (e) => {
|
|
@@ -1270,30 +1371,30 @@ function q(e) {
|
|
|
1270
1371
|
placeholders: t
|
|
1271
1372
|
};
|
|
1272
1373
|
}
|
|
1273
|
-
function
|
|
1274
|
-
let { html: t, placeholders: n } =
|
|
1374
|
+
function q(e) {
|
|
1375
|
+
let { html: t, placeholders: n } = Ct(e), { html: r, placeholders: i } = G(t), { html: a, placeholders: o } = Nt(r), s = {}, c = 0, l = a.replace(/\{([^{}]+)\}/g, (e) => {
|
|
1275
1376
|
let t = `__TEMPLATEEXPR_${c}__`;
|
|
1276
1377
|
return s[t] = e, c++, t;
|
|
1277
1378
|
});
|
|
1278
|
-
return l =
|
|
1379
|
+
return l = wt(l), l = kt(l), l = Tt(l), l = Et(l), l = K(l), l = Dt(l), l = Ot(l), Object.keys(s).forEach((e) => {
|
|
1279
1380
|
l = l.replace(e, s[e]);
|
|
1280
|
-
}), l =
|
|
1381
|
+
}), l = Mt(l, n), l = Mt(l, i), l = Mt(l, o), l;
|
|
1281
1382
|
}
|
|
1282
|
-
function
|
|
1383
|
+
function J(e, t = null, n = !1) {
|
|
1283
1384
|
if (!e) return "";
|
|
1284
|
-
let r = {}, i = 0, a =
|
|
1385
|
+
let r = {}, i = 0, a = xt(e.replace(/```(\w+)?\n?([\s\S]*?)```/g, (e) => {
|
|
1285
1386
|
let t = `__CODEBLOCK_${i}__`;
|
|
1286
1387
|
return r[t] = e, i++, t;
|
|
1287
1388
|
}), t, n);
|
|
1288
1389
|
Object.keys(r).forEach((e) => {
|
|
1289
1390
|
a = a.replace(e, r[e]);
|
|
1290
|
-
}), a =
|
|
1291
|
-
let o =
|
|
1292
|
-
return n ?
|
|
1391
|
+
}), a = q(a);
|
|
1392
|
+
let o = it(a);
|
|
1393
|
+
return n ? lt() + o : o;
|
|
1293
1394
|
}
|
|
1294
1395
|
//#endregion
|
|
1295
1396
|
//#region components/MarkdownRenderer.vue?vue&type=script&lang.ts
|
|
1296
|
-
var
|
|
1397
|
+
var Pt = o({
|
|
1297
1398
|
name: "MarkdownRenderer",
|
|
1298
1399
|
props: {
|
|
1299
1400
|
markdown: {
|
|
@@ -1311,8 +1412,8 @@ var Ot = o({
|
|
|
1311
1412
|
}
|
|
1312
1413
|
},
|
|
1313
1414
|
setup(e) {
|
|
1314
|
-
let
|
|
1315
|
-
return n
|
|
1415
|
+
let n = c(null), i = r(() => J(e.markdown, e.results, e.loading));
|
|
1416
|
+
return t(n, {
|
|
1316
1417
|
selector: "pre code[class*=\"language-\"]",
|
|
1317
1418
|
onHighlighted: (e) => {
|
|
1318
1419
|
e.querySelectorAll(".markdown-copy-button").forEach((e) => {
|
|
@@ -1332,18 +1433,18 @@ var Ot = o({
|
|
|
1332
1433
|
},
|
|
1333
1434
|
watchSources: [i]
|
|
1334
1435
|
}), {
|
|
1335
|
-
markdownRoot:
|
|
1436
|
+
markdownRoot: n,
|
|
1336
1437
|
renderedMarkdown: i
|
|
1337
1438
|
};
|
|
1338
1439
|
}
|
|
1339
|
-
}),
|
|
1340
|
-
function
|
|
1341
|
-
return s(), i("div",
|
|
1440
|
+
}), Ft = { class: "markdown-content" }, It = ["innerHTML"];
|
|
1441
|
+
function Lt(e, t, n, r, o, c) {
|
|
1442
|
+
return s(), i("div", Ft, [a("div", {
|
|
1342
1443
|
ref: "markdownRoot",
|
|
1343
1444
|
class: "rendered-markdown",
|
|
1344
1445
|
innerHTML: e.renderedMarkdown
|
|
1345
|
-
}, null, 8,
|
|
1446
|
+
}, null, 8, It)]);
|
|
1346
1447
|
}
|
|
1347
|
-
var
|
|
1448
|
+
var Rt = /*#__PURE__*/ e(Pt, [["render", Lt], ["__scopeId", "data-v-2039fbc8"]]);
|
|
1348
1449
|
//#endregion
|
|
1349
|
-
export {
|
|
1450
|
+
export { Rt as t };
|