@opentiny/vue-runtime
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
1,181 lines • 5.55 MB
JavaScript
import { defineComponent as x, props as fe, setup as ee, $setup as ke, $prefix as re, $props as le, createComponent as cl, h as J, deduplicateCssClass as EM, stringifyCssClass as DM, hooks as Ce, parseVnode as TC, isEmptyVnode as IM, mergeClass as Av, directive as Wt, appProperties as Zf, setupComponent as AC, isVue2 as $n, $install as MM, isVnode as $C, resolveTheme as LM, useInstanceSlots as NM, useRelation as OM, resolveMode as ZV, useBreakpoint as PM, emitter as _v, isVue3 as qy, KeepAlive as vT, provideDesignConfig as JV, useDefer as _V, Teleport as EC } from "@opentiny/vue-common";
import { iconLoadingShadow as vp, iconLoading as Jf, iconClose as Vt, iconEditor as e8, iconPopup as L1, iconLeftWardArrow as RM, iconDownWard as lv, IconArrowBottom as DC, IconChevronUp as $r, IconChevronDown as zn, iconEllipsis as Jc, iconHelpCircle as em, IconClose as Sa, iconWarningTriangle as IC, iconWarning as pl, iconHelp as _f, iconError as ar, iconSuccess as fl, iconChevronDown as ls, iconMinscreen as tm, iconFullscreen as nm, IconMinscreen as t8, IconFullscreen as Wy, IconEyeclose as MC, IconEyeopen as LC, IconError as NC, IconFinish as Ky, IconCheckedSur as Yy, IconCheck as OC, iconFinish as PC, iconCheckedSur as ur, iconCheck as Cr, iconSearch as us, IconSearch as eh, iconChevronUp as hl, iconSetting as RC, iconConmentRefresh as FM, iconEdit as FC, iconUnfilter as n8, iconSortTriangle as a8, iconSortTriangleAscending as r8, iconSortTriangleDescending as i8, iconYes as Tr, iconGridNoData as BM, iconChevronRight as Dn, iconRadio as Gy, iconRadioselected as Xy, iconHalfselect as xr, iconArrowBottom as VM, iconExpand as zM, iconPutAway as xM, iconPageWeaknet as o8, iconPageServererror as s8, iconPageNothing as l8, iconPageNoperm as u8, iconWeaknet as d8, iconNoResult as c8, iconNoPerm as p8, iconNoNews as f8, iconNoData as h8, IconEllipsis as _u, iconHelpSolid as HM, iconMinscreenRight as v8, iconFullscreenRight as m8, iconInfoSolid as UM, iconOperationfaildL as g8, iconCueL as BC, iconSuccessful as Qy, iconInfoCircle as y8, iconMinscreenLeft as b8, iconFullscreenLeft as jM, iconDoubleRight as _c, iconDoubleLeft as ep, IconDoubleRight as th, IconDoubleLeft as nh, IconPopup as am, IconDeltaDown as w8, IconHalfselect as qM, iconAddCircle as WM, IconCopy as C8, IconLoadingShadow as KM, iconMobileRadioSelected as k8, iconMobileRadio as S8, iconPlusSquare as T8, iconDel as Zy, iconMarkOn as VC, iconCopy as zC, iconChevronLeft as pr, IconChevronRight as Zr, IconChevronLeft as vl, IconStarDisable as YM, IconStarActive as GM, iconTime as A8, iconCalendar as $8, IconTime as E8, IconCalendar as D8, IconCoin as XM, IconYes as xC, iconDone as I8, iconDoneMini as M8, iconExceptionO as L8, iconExceptionMiniO as N8, iconOnGoing as O8, iconOnGoingMini as P8, iconNotStarted as R8, iconNotStartedMini as F8, iconPlus as ah, IconPlus as Jy, iconMonthView as B8, iconAgendaView as V8, iconDayView as z8, IconMonthView as x8, IconAgendaView as H8, IconDayView as U8, iconExcel as j8, iconMore as q8, IconLoading as QM, IconUpWard as W8, IconOperationfaild as K8, iconCrop as Y8, iconRefres as _y, iconRepeat as HC, iconZoomOut as UC, iconZoomIn as jC, iconNew as G8, IconStretchCrosswise as X8, IconStretchUpright as Q8, IconRightward as ZM, IconLeftWard as Z8, IconAdministrator as J8, IconDialog as _8, IconTelephone as ez, IconEmailAdd as tz, IconEmailCircle as nz, IconTelephoneCircle as az, IconMessageCircle as rz, iconFileuploadPro as JM, iconZipType as _M, iconWordType as eL, iconVideoType as tL, iconTextType as nL, iconPptType as aL, iconPictureType as rL, iconPdfType as iL, iconOtherType as oL, iconFileType as sL, iconExcelType as lL, iconAudio as uL, iconPause as dL, iconRight as cL, iconRefresh as pL, iconDownload as eb, iconFileCloudupload as fL, iconCloseCircle as iz, iconView as oz, iconDocument as sz, IconMic as hL, iconEyeopen as lz, iconAttachment as uz, IconHelpQuery as dz, IconStartCircle as cz, IconPicture as qC, IconPlusCircle as pz, IconFileCloudupload as fz, IconDownload as hz, IconSuccessful as vz, IconAttachment as mz, IconSubScript as gz, IconUnfilter as vL, iconPicture as WC, iconEditorMenuRight as mL, iconArrowRight as yz, iconArrowLeft as bz, IconCloudUpload as gL, IconLink as yL, IconEditorVideo as bL, IconEditorUndo as wL, IconEditorUnderline as CL, IconEditorTitle as kL, IconEditorTextcolor as SL, IconEditorTable as TL, IconEditorSuper as AL, IconEditorSubtitle as $L, IconEditorSub as EL, IconEditorRightBorder as DL, IconEditorRedo as IL, IconEditorQuote as ML, IconEditorMenuRight as LL, IconEditorMenuLeft as NL, IconEditorListNum as OL, IconEditorListDot as PL, IconEditorList as RL, IconEditorLeftBorder as FL, IconEditorItalic as BL, IconEditorEraser as KC, IconEditorDeleteline as VL, IconEditorCode as zL, IconEditorBold as xL, IconEditorBackground as HL, IconEditorAlignRight as UL, IconEditorAlignLeft as jL, IconEditorAlignCenter as qL, IconHelpCircle as wz, IconDel as WL, IconEdit as Cz, IconSave as kz, IconAscending as KL, IconDescending as YL, IconMinus as Sz, IconLock as Tz, IconRightFrozen as GL, IconLeftFrozen as XL, IconUnlock as Az, iconImageError as $z, iconDotIpv4 as Ez, iconSandwichExpand as Dz, iconSandwichCollapse as Iz, IconSuccess as Mz, IconPrompt as Lz, iconMinus as QL, IconNodeOpen as ZL, IconNode as Nz, iconMeh as Oz, iconFrown as Pz, iconSmile as Rz, iconStarDisable as Fz, iconStarActive as Bz, IconMeh as Vz, IconFrown as zz, IconSmile as xz, iconOperationfaild as Hz, IconMinscreenRight as Uz, iconUser as JL, IconUser as _L, iconWarn as eN, IconWarn as YC, iconInfo as jz, iconArrowUp as qz, iconArrowDown as Wz, iconEditorMenuLeft as Kz, iconGroup as Yz, IconGroup as Gz } from "@opentiny/vue-icon";
import { resolveComponent as L, createElementBlock as w, openBlock as g, mergeProps as Le, createBlock as P, createCommentVNode as M, renderSlot as z, resolveDynamicComponent as ce, normalizeClass as A, createElementVNode as C, toDisplayString as I, createVNode as E, Transition as Qe, withCtx as R, withDirectives as ae, normalizeStyle as oe, createTextVNode as ie, vShow as ye, resolveDirective as st, Fragment as q, renderList as _, withModifiers as se, createSlots as qt, normalizeProps as bn, withKeys as Ve, guardReactiveProps as Fn, vModelText as Pa, isVNode as rm, vModelCheckbox as $f, toHandlers as ii, vModelRadio as im, setBlockTracking as Fm, TransitionGroup as Xz, Teleport as GC, vModelDynamic as Qz } from "vue";
import { t as Xe, language as tN, enUS as Zz, zhCN as Jz, use as _z } from "@opentiny/vue-locale";
import * as e9 from "echarts";
function N1(t, e) {
(e == null || e > t.length) && (e = t.length);
for (var n = 0, a = Array(e); n < e; n++) a[n] = t[n];
return a;
}
function nN(t) {
if (Array.isArray(t)) return t;
}
function t9(t) {
if (Array.isArray(t)) return N1(t);
}
function Rn(t) {
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return t;
}
function mT(t, e, n, a, r, i, o) {
try {
var s = t[i](o), l = s.value;
} catch (u) {
return void n(u);
}
s.done ? e(l) : Promise.resolve(l).then(a, r);
}
function At(t) {
return function() {
var e = this, n = arguments;
return new Promise(function(a, r) {
var i = t.apply(e, n);
function o(l) {
mT(i, a, r, o, s, "next", l);
}
function s(l) {
mT(i, a, r, o, s, "throw", l);
}
o(void 0);
});
};
}
function De(t, e, n) {
return e = tp(e), tb(t, XC() ? Reflect.construct(e, n || [], tp(t).constructor) : e.apply(t, n));
}
function be(t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
}
function n9(t, e, n) {
if (XC()) return Reflect.construct.apply(null, arguments);
var a = [null];
a.push.apply(a, e);
var r = new (t.bind.apply(t, a))();
return n && $v(r, n.prototype), r;
}
function gT(t, e) {
for (var n = 0; n < e.length; n++) {
var a = e[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, oN(a.key), a);
}
}
function we(t, e, n) {
return e && gT(t.prototype, e), n && gT(t, n), Object.defineProperty(t, "prototype", {
writable: !1
}), t;
}
function zt(t, e) {
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (!n) {
if (Array.isArray(t) || (n = nb(t)) || e) {
n && (t = n);
var a = 0, r = function() {
};
return {
s: r,
n: function() {
return a >= t.length ? {
done: !0
} : {
done: !1,
value: t[a++]
};
},
e: function(l) {
throw l;
},
f: r
};
}
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
var i, o = !0, s = !1;
return {
s: function() {
n = n.call(t);
},
n: function() {
var l = n.next();
return o = l.done, l;
},
e: function(l) {
s = !0, i = l;
},
f: function() {
try {
o || n.return == null || n.return();
} finally {
if (s) throw i;
}
}
};
}
function K(t, e, n) {
return (e = oN(e)) in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t;
}
function O1() {
return O1 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
var a = l9(t, e);
if (a) {
var r = Object.getOwnPropertyDescriptor(a, e);
return r.get ? r.get.call(arguments.length < 3 ? t : n) : r.value;
}
}, O1.apply(null, arguments);
}
function tp(t) {
return tp = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
return e.__proto__ || Object.getPrototypeOf(e);
}, tp(t);
}
function Ie(t, e) {
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: t,
writable: !0,
configurable: !0
}
}), Object.defineProperty(t, "prototype", {
writable: !1
}), e && $v(t, e);
}
function a9(t) {
try {
return Function.toString.call(t).indexOf("[native code]") !== -1;
} catch {
return typeof t == "function";
}
}
function XC() {
try {
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
}));
} catch {
}
return (XC = function() {
return !!t;
})();
}
function aN(t) {
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
}
function r9(t, e) {
var n = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
if (n != null) {
var a, r, i, o, s = [], l = !0, u = !1;
try {
if (i = (n = n.call(t)).next, e === 0) {
if (Object(n) !== n) return;
l = !1;
} else for (; !(l = (a = i.call(n)).done) && (s.push(a.value), s.length !== e); l = !0) ;
} catch (d) {
u = !0, r = d;
} finally {
try {
if (!l && n.return != null && (o = n.return(), Object(o) !== o)) return;
} finally {
if (u) throw r;
}
}
return s;
}
}
function rN() {
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function i9() {
throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
function yT(t, e) {
var n = Object.keys(t);
if (Object.getOwnPropertySymbols) {
var a = Object.getOwnPropertySymbols(t);
e && (a = a.filter(function(r) {
return Object.getOwnPropertyDescriptor(t, r).enumerable;
})), n.push.apply(n, a);
}
return n;
}
function O(t) {
for (var e = 1; e < arguments.length; e++) {
var n = arguments[e] != null ? arguments[e] : {};
e % 2 ? yT(Object(n), !0).forEach(function(a) {
K(t, a, n[a]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : yT(Object(n)).forEach(function(a) {
Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(n, a));
});
}
return t;
}
function ed(t, e) {
if (t == null) return {};
var n, a, r = o9(t, e);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(t);
for (a = 0; a < i.length; a++) n = i[a], e.indexOf(n) === -1 && {}.propertyIsEnumerable.call(t, n) && (r[n] = t[n]);
}
return r;
}
function o9(t, e) {
if (t == null) return {};
var n = {};
for (var a in t) if ({}.hasOwnProperty.call(t, a)) {
if (e.indexOf(a) !== -1) continue;
n[a] = t[a];
}
return n;
}
function tb(t, e) {
if (e && (typeof e == "object" || typeof e == "function")) return e;
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
return Rn(t);
}
function Ue() {
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var t, e, n = typeof Symbol == "function" ? Symbol : {}, a = n.iterator || "@@iterator", r = n.toStringTag || "@@toStringTag";
function i(f, h, v, m) {
var y = h && h.prototype instanceof s ? h : s, b = Object.create(y.prototype);
return Or(b, "_invoke", (function(k, S, T) {
var $, D, N, V = 0, F = T || [], U = !1, W = {
p: 0,
n: 0,
v: t,
a: X,
f: X.bind(t, 4),
d: function(H, j) {
return $ = H, D = 0, N = t, W.n = j, o;
}
};
function X(H, j) {
for (D = H, N = j, e = 0; !U && V && !Y && e < F.length; e++) {
var Y, Q = F[e], ue = W.p, ge = Q[2];
H > 3 ? (Y = ge === j) && (N = Q[(D = Q[4]) ? 5 : (D = 3, 3)], Q[4] = Q[5] = t) : Q[0] <= ue && ((Y = H < 2 && ue < Q[1]) ? (D = 0, W.v = j, W.n = Q[1]) : ue < ge && (Y = H < 3 || Q[0] > j || j > ge) && (Q[4] = H, Q[5] = j, W.n = ge, D = 0));
}
if (Y || H > 1) return o;
throw U = !0, j;
}
return function(H, j, Y) {
if (V > 1) throw TypeError("Generator is already running");
for (U && j === 1 && X(j, Y), D = j, N = Y; (e = D < 2 ? t : N) || !U; ) {
$ || (D ? D < 3 ? (D > 1 && (W.n = -1), X(D, N)) : W.n = N : W.v = N);
try {
if (V = 2, $) {
if (D || (H = "next"), e = $[H]) {
if (!(e = e.call($, N))) throw TypeError("iterator result is not an object");
if (!e.done) return e;
N = e.value, D < 2 && (D = 0);
} else D === 1 && (e = $.return) && e.call($), D < 2 && (N = TypeError("The iterator does not provide a '" + H + "' method"), D = 1);
$ = t;
} else if ((e = (U = W.n < 0) ? N : k.call(S, W)) !== o) break;
} catch (Q) {
$ = t, D = 1, N = Q;
} finally {
V = 1;
}
}
return {
value: e,
done: U
};
};
})(f, v, m), !0), b;
}
var o = {};
function s() {
}
function l() {
}
function u() {
}
e = Object.getPrototypeOf;
var d = [][a] ? e(e([][a]())) : (Or(e = {}, a, function() {
return this;
}), e), c = u.prototype = s.prototype = Object.create(d);
function p(f) {
return Object.setPrototypeOf ? Object.setPrototypeOf(f, u) : (f.__proto__ = u, Or(f, r, "GeneratorFunction")), f.prototype = Object.create(c), f;
}
return l.prototype = u, Or(c, "constructor", u), Or(u, "constructor", l), l.displayName = "GeneratorFunction", Or(u, r, "GeneratorFunction"), Or(c), Or(c, r, "Generator"), Or(c, a, function() {
return this;
}), Or(c, "toString", function() {
return "[object Generator]";
}), (Ue = function() {
return {
w: i,
m: p
};
})();
}
function Or(t, e, n, a) {
var r = Object.defineProperty;
try {
r({}, "", {});
} catch {
r = 0;
}
Or = function(i, o, s, l) {
function u(d, c) {
Or(i, d, function(p) {
return this._invoke(d, c, p);
});
}
o ? r ? r(i, o, {
value: s,
enumerable: !l,
configurable: !l,
writable: !l
}) : i[o] = s : (u("next", 0), u("throw", 1), u("return", 2));
}, Or(t, e, n, a);
}
function s9(t) {
if (t != null) {
var e = t[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], n = 0;
if (e) return e.call(t);
if (typeof t.next == "function") return t;
if (!isNaN(t.length)) return {
next: function() {
return t && n >= t.length && (t = void 0), {
value: t && t[n++],
done: !t
};
}
};
}
throw new TypeError(typeof t + " is not iterable");
}
function $v(t, e) {
return $v = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, a) {
return n.__proto__ = a, n;
}, $v(t, e);
}
function ve(t, e) {
return nN(t) || r9(t, e) || nb(t, e) || rN();
}
function l9(t, e) {
for (; !{}.hasOwnProperty.call(t, e) && (t = tp(t)) !== null; ) ;
return t;
}
function Se(t, e, n, a) {
var r = O1(tp(1 & a ? t.prototype : t), e, n);
return 2 & a && typeof r == "function" ? function(i) {
return r.apply(n, i);
} : r;
}
function iN(t) {
return nN(t) || aN(t) || nb(t) || rN();
}
function pe(t) {
return t9(t) || aN(t) || nb(t) || i9();
}
function u9(t, e) {
if (typeof t != "object" || !t) return t;
var n = t[Symbol.toPrimitive];
if (n !== void 0) {
var a = n.call(t, e);
if (typeof a != "object") return a;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return String(t);
}
function oN(t) {
var e = u9(t, "string");
return typeof e == "symbol" ? e : e + "";
}
function Z(t) {
"@babel/helpers - typeof";
return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
return typeof e;
} : function(e) {
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
}, Z(t);
}
function nb(t, e) {
if (t) {
if (typeof t == "string") return N1(t, e);
var n = {}.toString.call(t).slice(8, -1);
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? N1(t, e) : void 0;
}
}
function P1(t) {
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return P1 = function(n) {
if (n === null || !a9(n)) return n;
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
if (e !== void 0) {
if (e.has(n)) return e.get(n);
e.set(n, a);
}
function a() {
return n9(n, arguments, tp(this).constructor);
}
return a.prototype = Object.create(n.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}), $v(a, n);
}, P1(t);
}
var d9 = function(e) {
var n = e.props, a = e.state;
return function() {
return n.maxShowNum !== void 0 ? n.maxShowNum : a.isCardMode ? 3 : 2;
};
}, c9 = function(e) {
var n = e.props, a = e.state, r = e.designConfig;
return function() {
return n.spacing !== void 0 ? String(n.spacing).includes("px") ? n.spacing : n.spacing + "px" : a.isCardMode ? "10px" : (r == null ? void 0 : r.props.spacing) || "8px";
};
}, p9 = function(e) {
var n = e.props, a = e.state, r = e.t;
return function() {
return n.moreText !== void 0 ? n.moreText : a.isCardMode ? "" : r("ui.actionMenu.moreText");
};
}, f9 = function(e) {
var n = e.props, a = e.state;
return function() {
return n.suffixIcon ? n.suffixIcon : a.isCardMode ? "tiny-icon-ellipsis" : "";
};
}, h9 = function(e) {
return function() {
e("more-click");
};
}, v9 = function(e) {
return function(n) {
e("item-click", n);
};
}, m9 = function(e) {
return function(n) {
e("visible-change", n);
};
}, g9 = ["state", "handleMoreClick", "handleItemClick", "visibleChange"], y9 = function(e, n, a) {
var r = n.computed, i = n.reactive, o = a.emit, s = a.t, l = a.designConfig, u = {}, d = i({
visibleOptions: r(function() {
return e.options.slice(0, d.maxShowNum);
}),
isCardMode: r(function() {
return e.mode === "card";
}),
moreOptions: r(function() {
return e.options.slice(d.maxShowNum);
}),
spacing: r(function() {
return u.computedSpacing();
}),
maxShowNum: r(function() {
return u.computedMaxShowNum();
}),
moreText: r(function() {
return u.computedMoreText();
}),
suffixIcon: r(function() {
return u.computedSuffixIcon();
})
});
return Object.assign(u, {
state: d,
handleMoreClick: h9(o),
handleItemClick: v9(o),
visibleChange: m9(o),
computedMaxShowNum: d9({
props: e,
state: d
}),
computedSpacing: c9({
props: e,
state: d,
designConfig: l
}),
computedMoreText: p9({
props: e,
state: d,
t: s
}),
computedSuffixIcon: f9({
props: e,
state: d
})
}), u;
}, Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, R1 = { exports: {} }, In = {}, F1 = { exports: {} }, mp = {};
function sN() {
var t = {};
return t["align-content"] = !1, t["align-items"] = !1, t["align-self"] = !1, t["alignment-adjust"] = !1, t["alignment-baseline"] = !1, t.all = !1, t["anchor-point"] = !1, t.animation = !1, t["animation-delay"] = !1, t["animation-direction"] = !1, t["animation-duration"] = !1, t["animation-fill-mode"] = !1, t["animation-iteration-count"] = !1, t["animation-name"] = !1, t["animation-play-state"] = !1, t["animation-timing-function"] = !1, t.azimuth = !1, t["backface-visibility"] = !1, t.background = !0, t["background-attachment"] = !0, t["background-clip"] = !0, t["background-color"] = !0, t["background-image"] = !0, t["background-origin"] = !0, t["background-position"] = !0, t["background-repeat"] = !0, t["background-size"] = !0, t["baseline-shift"] = !1, t.binding = !1, t.bleed = !1, t["bookmark-label"] = !1, t["bookmark-level"] = !1, t["bookmark-state"] = !1, t.border = !0, t["border-bottom"] = !0, t["border-bottom-color"] = !0, t["border-bottom-left-radius"] = !0, t["border-bottom-right-radius"] = !0, t["border-bottom-style"] = !0, t["border-bottom-width"] = !0, t["border-collapse"] = !0, t["border-color"] = !0, t["border-image"] = !0, t["border-image-outset"] = !0, t["border-image-repeat"] = !0, t["border-image-slice"] = !0, t["border-image-source"] = !0, t["border-image-width"] = !0, t["border-left"] = !0, t["border-left-color"] = !0, t["border-left-style"] = !0, t["border-left-width"] = !0, t["border-radius"] = !0, t["border-right"] = !0, t["border-right-color"] = !0, t["border-right-style"] = !0, t["border-right-width"] = !0, t["border-spacing"] = !0, t["border-style"] = !0, t["border-top"] = !0, t["border-top-color"] = !0, t["border-top-left-radius"] = !0, t["border-top-right-radius"] = !0, t["border-top-style"] = !0, t["border-top-width"] = !0, t["border-width"] = !0, t.bottom = !1, t["box-decoration-break"] = !0, t["box-shadow"] = !0, t["box-sizing"] = !0, t["box-snap"] = !0, t["box-suppress"] = !0, t["break-after"] = !0, t["break-before"] = !0, t["break-inside"] = !0, t["caption-side"] = !1, t.chains = !1, t.clear = !0, t.clip = !1, t["clip-path"] = !1, t["clip-rule"] = !1, t.color = !0, t["color-interpolation-filters"] = !0, t["column-count"] = !1, t["column-fill"] = !1, t["column-gap"] = !1, t["column-rule"] = !1, t["column-rule-color"] = !1, t["column-rule-style"] = !1, t["column-rule-width"] = !1, t["column-span"] = !1, t["column-width"] = !1, t.columns = !1, t.contain = !1, t.content = !1, t["counter-increment"] = !1, t["counter-reset"] = !1, t["counter-set"] = !1, t.crop = !1, t.cue = !1, t["cue-after"] = !1, t["cue-before"] = !1, t.cursor = !1, t.direction = !1, t.display = !0, t["display-inside"] = !0, t["display-list"] = !0, t["display-outside"] = !0, t["dominant-baseline"] = !1, t.elevation = !1, t["empty-cells"] = !1, t.filter = !1, t.flex = !1, t["flex-basis"] = !1, t["flex-direction"] = !1, t["flex-flow"] = !1, t["flex-grow"] = !1, t["flex-shrink"] = !1, t["flex-wrap"] = !1, t.float = !1, t["float-offset"] = !1, t["flood-color"] = !1, t["flood-opacity"] = !1, t["flow-from"] = !1, t["flow-into"] = !1, t.font = !0, t["font-family"] = !0, t["font-feature-settings"] = !0, t["font-kerning"] = !0, t["font-language-override"] = !0, t["font-size"] = !0, t["font-size-adjust"] = !0, t["font-stretch"] = !0, t["font-style"] = !0, t["font-synthesis"] = !0, t["font-variant"] = !0, t["font-variant-alternates"] = !0, t["font-variant-caps"] = !0, t["font-variant-east-asian"] = !0, t["font-variant-ligatures"] = !0, t["font-variant-numeric"] = !0, t["font-variant-position"] = !0, t["font-weight"] = !0, t.grid = !1, t["grid-area"] = !1, t["grid-auto-columns"] = !1, t["grid-auto-flow"] = !1, t["grid-auto-rows"] = !1, t["grid-column"] = !1, t["grid-column-end"] = !1, t["grid-column-start"] = !1, t["grid-row"] = !1, t["grid-row-end"] = !1, t["grid-row-start"] = !1, t["grid-template"] = !1, t["grid-template-areas"] = !1, t["grid-template-columns"] = !1, t["grid-template-rows"] = !1, t["hanging-punctuation"] = !1, t.height = !0, t.hyphens = !1, t.icon = !1, t["image-orientation"] = !1, t["image-resolution"] = !1, t["ime-mode"] = !1, t["initial-letters"] = !1, t["inline-box-align"] = !1, t["justify-content"] = !1, t["justify-items"] = !1, t["justify-self"] = !1, t.left = !1, t["letter-spacing"] = !0, t["lighting-color"] = !0, t["line-box-contain"] = !1, t["line-break"] = !1, t["line-grid"] = !1, t["line-height"] = !1, t["line-snap"] = !1, t["line-stacking"] = !1, t["line-stacking-ruby"] = !1, t["line-stacking-shift"] = !1, t["line-stacking-strategy"] = !1, t["list-style"] = !0, t["list-style-image"] = !0, t["list-style-position"] = !0, t["list-style-type"] = !0, t.margin = !0, t["margin-bottom"] = !0, t["margin-left"] = !0, t["margin-right"] = !0, t["margin-top"] = !0, t["marker-offset"] = !1, t["marker-side"] = !1, t.marks = !1, t.mask = !1, t["mask-box"] = !1, t["mask-box-outset"] = !1, t["mask-box-repeat"] = !1, t["mask-box-slice"] = !1, t["mask-box-source"] = !1, t["mask-box-width"] = !1, t["mask-clip"] = !1, t["mask-image"] = !1, t["mask-origin"] = !1, t["mask-position"] = !1, t["mask-repeat"] = !1, t["mask-size"] = !1, t["mask-source-type"] = !1, t["mask-type"] = !1, t["max-height"] = !0, t["max-lines"] = !1, t["max-width"] = !0, t["min-height"] = !0, t["min-width"] = !0, t["move-to"] = !1, t["nav-down"] = !1, t["nav-index"] = !1, t["nav-left"] = !1, t["nav-right"] = !1, t["nav-up"] = !1, t["object-fit"] = !1, t["object-position"] = !1, t.opacity = !1, t.order = !1, t.orphans = !1, t.outline = !1, t["outline-color"] = !1, t["outline-offset"] = !1, t["outline-style"] = !1, t["outline-width"] = !1, t.overflow = !1, t["overflow-wrap"] = !1, t["overflow-x"] = !1, t["overflow-y"] = !1, t.padding = !0, t["padding-bottom"] = !0, t["padding-left"] = !0, t["padding-right"] = !0, t["padding-top"] = !0, t.page = !1, t["page-break-after"] = !1, t["page-break-before"] = !1, t["page-break-inside"] = !1, t["page-policy"] = !1, t.pause = !1, t["pause-after"] = !1, t["pause-before"] = !1, t.perspective = !1, t["perspective-origin"] = !1, t.pitch = !1, t["pitch-range"] = !1, t["play-during"] = !1, t.position = !1, t["presentation-level"] = !1, t.quotes = !1, t["region-fragment"] = !1, t.resize = !1, t.rest = !1, t["rest-after"] = !1, t["rest-before"] = !1, t.richness = !1, t.right = !1, t.rotation = !1, t["rotation-point"] = !1, t["ruby-align"] = !1, t["ruby-merge"] = !1, t["ruby-position"] = !1, t["shape-image-threshold"] = !1, t["shape-outside"] = !1, t["shape-margin"] = !1, t.size = !1, t.speak = !1, t["speak-as"] = !1, t["speak-header"] = !1, t["speak-numeral"] = !1, t["speak-punctuation"] = !1, t["speech-rate"] = !1, t.stress = !1, t["string-set"] = !1, t["tab-size"] = !1, t["table-layout"] = !1, t["text-align"] = !0, t["text-align-last"] = !0, t["text-combine-upright"] = !0, t["text-decoration"] = !0, t["text-decoration-color"] = !0, t["text-decoration-line"] = !0, t["text-decoration-skip"] = !0, t["text-decoration-style"] = !0, t["text-emphasis"] = !0, t["text-emphasis-color"] = !0, t["text-emphasis-position"] = !0, t["text-emphasis-style"] = !0, t["text-height"] = !0, t["text-indent"] = !0, t["text-justify"] = !0, t["text-orientation"] = !0, t["text-overflow"] = !0, t["text-shadow"] = !0, t["text-space-collapse"] = !0, t["text-transform"] = !0, t["text-underline-position"] = !0, t["text-wrap"] = !0, t.top = !1, t.transform = !1, t["transform-origin"] = !1, t["transform-style"] = !1, t.transition = !1, t["transition-delay"] = !1, t["transition-duration"] = !1, t["transition-property"] = !1, t["transition-timing-function"] = !1, t["unicode-bidi"] = !1, t["vertical-align"] = !1, t.visibility = !1, t["voice-balance"] = !1, t["voice-duration"] = !1, t["voice-family"] = !1, t["voice-pitch"] = !1, t["voice-range"] = !1, t["voice-rate"] = !1, t["voice-stress"] = !1, t["voice-volume"] = !1, t.volume = !1, t["white-space"] = !1, t.widows = !1, t.width = !0, t["will-change"] = !1, t["word-break"] = !0, t["word-spacing"] = !0, t["word-wrap"] = !0, t["wrap-flow"] = !1, t["wrap-through"] = !1, t["writing-mode"] = !1, t["z-index"] = !1, t;
}
function b9(t, e, n) {
}
function w9(t, e, n) {
}
var C9 = /javascript\s*\:/img;
function k9(t, e) {
return C9.test(e) ? "" : e;
}
mp.whiteList = sN();
mp.getDefaultWhiteList = sN;
mp.onAttr = b9;
mp.onIgnoreAttr = w9;
mp.safeAttrValue = k9;
var S9 = {
indexOf: function(e, n) {
var a, r;
if (Array.prototype.indexOf)
return e.indexOf(n);
for (a = 0, r = e.length; a < r; a++)
if (e[a] === n)
return a;
return -1;
},
forEach: function(e, n, a) {
var r, i;
if (Array.prototype.forEach)
return e.forEach(n, a);
for (r = 0, i = e.length; r < i; r++)
n.call(a, e[r], r, e);
},
trim: function(e) {
return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
},
trimRight: function(e) {
return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
}
}, Fh = S9;
function T9(t, e) {
t = Fh.trimRight(t), t[t.length - 1] !== ";" && (t += ";");
var n = t.length, a = !1, r = 0, i = 0, o = "";
function s() {
if (!a) {
var d = Fh.trim(t.slice(r, i)), c = d.indexOf(":");
if (c !== -1) {
var p = Fh.trim(d.slice(0, c)), f = Fh.trim(d.slice(c + 1));
if (p) {
var h = e(r, o.length, p, f, d);
h && (o += h + "; ");
}
}
}
r = i + 1;
}
for (; i < n; i++) {
var l = t[i];
if (l === "/" && t[i + 1] === "*") {
var u = t.indexOf("*/", i + 2);
if (u === -1) break;
i = u + 1, r = i + 1, a = !1;
} else l === "(" ? a = !0 : l === ")" ? a = !1 : l === ";" ? a || s() : l === `
` && s();
}
return Fh.trim(o);
}
var A9 = T9, Bm = mp, $9 = A9;
function bT(t) {
return t == null;
}
function E9(t) {
var e = {};
for (var n in t)
e[n] = t[n];
return e;
}
function lN(t) {
t = E9(t || {}), t.whiteList = t.whiteList || Bm.whiteList, t.onAttr = t.onAttr || Bm.onAttr, t.onIgnoreAttr = t.onIgnoreAttr || Bm.onIgnoreAttr, t.safeAttrValue = t.safeAttrValue || Bm.safeAttrValue, this.options = t;
}
lN.prototype.process = function(t) {
if (t = t || "", t = t.toString(), !t) return "";
var e = this, n = e.options, a = n.whiteList, r = n.onAttr, i = n.onIgnoreAttr, o = n.safeAttrValue, s = $9(t, function(l, u, d, c, p) {
var f = a[d], h = !1;
if (f === !0 ? h = f : typeof f == "function" ? h = f(c) : f instanceof RegExp && (h = f.test(c)), h !== !0 && (h = !1), c = o(d, c), !!c) {
var v = {
position: u,
sourcePosition: l,
source: p,
isWhite: h
};
if (h) {
var m = r(d, c, v);
return bT(m) ? d + ":" + c : m;
} else {
var m = i(d, c, v);
if (!bT(m))
return m;
}
}
});
return s;
};
var D9 = lN;
(function(t, e) {
var n = mp, a = D9;
function r(o, s) {
var l = new a(s);
return l.process(o);
}
e = t.exports = r, e.FilterCSS = a;
for (var i in n) e[i] = n[i];
typeof window < "u" && (window.filterCSS = t.exports);
})(F1, F1.exports);
var QC = F1.exports, ZC = {
indexOf: function(e, n) {
var a, r;
if (Array.prototype.indexOf)
return e.indexOf(n);
for (a = 0, r = e.length; a < r; a++)
if (e[a] === n)
return a;
return -1;
},
forEach: function(e, n, a) {
var r, i;
if (Array.prototype.forEach)
return e.forEach(n, a);
for (r = 0, i = e.length; r < i; r++)
n.call(a, e[r], r, e);
},
trim: function(e) {
return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
},
spaceIndex: function(e) {
var n = /\s|\n|\t/, a = n.exec(e);
return a ? a.index : -1;
}
}, I9 = QC.FilterCSS, M9 = QC.getDefaultWhiteList, Gg = ZC;
function uN() {
return {
a: ["target", "href", "title"],
abbr: ["title"],
address: [],
area: ["shape", "coords", "href", "alt"],
article: [],
aside: [],
audio: ["autoplay", "controls", "crossorigin", "loop", "muted", "preload", "src"],
b: [],
bdi: ["dir"],
bdo: ["dir"],
big: [],
blockquote: ["cite"],
br: [],
caption: [],
center: [],
cite: [],
code: [],
col: ["align", "valign", "span", "width"],
colgroup: ["align", "valign", "span", "width"],
dd: [],
del: ["datetime"],
details: ["open"],
div: [],
dl: [],
dt: [],
em: [],
figcaption: [],
figure: [],
font: ["color", "size", "face"],
footer: [],
h1: [],
h2: [],
h3: [],
h4: [],
h5: [],
h6: [],
header: [],
hr: [],
i: [],
img: ["src", "alt", "title", "width", "height"],
ins: ["datetime"],
li: [],
mark: [],
nav: [],
ol: [],
p: [],
pre: [],
s: [],
section: [],
small: [],
span: [],
sub: [],
summary: [],
sup: [],
strong: [],
strike: [],
table: ["width", "border", "align", "valign"],
tbody: ["align", "valign"],
td: ["width", "rowspan", "colspan", "align", "valign"],
tfoot: ["align", "valign"],
th: ["width", "rowspan", "colspan", "align", "valign"],
thead: ["align", "valign"],
tr: ["rowspan", "align", "valign"],
tt: [],
u: [],
ul: [],
video: ["autoplay", "controls", "crossorigin", "loop", "muted", "playsinline", "poster", "preload", "src", "height", "width"]
};
}
var dN = new I9();
function L9(t, e, n) {
}
function N9(t, e, n) {
}
function O9(t, e, n) {
}
function P9(t, e, n) {
}
function cN(t) {
return t.replace(F9, "<").replace(B9, ">");
}
function R9(t, e, n, a) {
if (n = gN(n), e === "href" || e === "src") {
if (n = Gg.trim(n), n === "#") return "#";
if (!(n.substr(0, 7) === "http://" || n.substr(0, 8) === "https://" || n.substr(0, 7) === "mailto:" || n.substr(0, 4) === "tel:" || n.substr(0, 11) === "data:image/" || n.substr(0, 6) === "ftp://" || n.substr(0, 2) === "./" || n.substr(0, 3) === "../" || n[0] === "#" || n[0] === "/"))
return "";
} else if (e === "background") {
if (Vm.lastIndex = 0, Vm.test(n))
return "";
} else if (e === "style") {
if (wT.lastIndex = 0, wT.test(n) || (CT.lastIndex = 0, CT.test(n) && (Vm.lastIndex = 0, Vm.test(n))))
return "";
a !== !1 && (a = a || dN, n = a.process(n));
}
return n = yN(n), n;
}
var F9 = /</g, B9 = />/g, V9 = /"/g, z9 = /"/g, x9 = /&#([a-zA-Z0-9]*);?/gim, H9 = /:?/gim, U9 = /&newline;?/gim, Vm = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, wT = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, CT = /u\s*r\s*l\s*\(.*/gi;
function pN(t) {
return t.replace(V9, """);
}
function fN(t) {
return t.replace(z9, '"');
}
function hN(t) {
return t.replace(x9, function(n, a) {
return a[0] === "x" || a[0] === "X" ? String.fromCharCode(parseInt(a.substr(1), 16)) : String.fromCharCode(parseInt(a, 10));
});
}
function vN(t) {
return t.replace(H9, ":").replace(U9, " ");
}
function mN(t) {
for (var e = "", n = 0, a = t.length; n < a; n++)
e += t.charCodeAt(n) < 32 ? " " : t.charAt(n);
return Gg.trim(e);
}
function gN(t) {
return t = fN(t), t = hN(t), t = vN(t), t = mN(t), t;
}
function yN(t) {
return t = pN(t), t = cN(t), t;
}
function j9() {
return "";
}
function q9(t, e) {
typeof e != "function" && (e = function() {
});
var n = !Array.isArray(t);
function a(o) {
return n ? !0 : Gg.indexOf(t, o) !== -1;
}
var r = [], i = !1;
return {
onIgnoreTag: function(s, l, u) {
if (a(s))
if (u.isClosing) {
var d = "[/removed]", c = u.position + d.length;
return r.push([i !== !1 ? i : u.position, c]), i = !1, d;
} else
return i || (i = u.position), "[removed]";
else
return e(s, l, u);
},
remove: function(s) {
var l = "", u = 0;
return Gg.forEach(r, function(d) {
l += s.slice(u, d[0]), u = d[1];
}), l += s.slice(u), l;
}
};
}
function W9(t) {
for (var e = "", n = 0; n < t.length; ) {
var a = t.indexOf("<!--", n);
if (a === -1) {
e += t.slice(n);
break;
}
e += t.slice(n, a);
var r = t.indexOf("-->", a);
if (r === -1)
break;
n = r + 3;
}
return e;
}
function K9(t) {
var e = t.split("");
return e = e.filter(function(n) {
var a = n.charCodeAt(0);
return a === 127 ? !1 : a <= 31 ? a === 10 || a === 13 : !0;
}), e.join("");
}
In.whiteList = uN();
In.getDefaultWhiteList = uN;
In.onTag = L9;
In.onIgnoreTag = N9;
In.onTagAttr = O9;
In.onIgnoreTagAttr = P9;
In.safeAttrValue = R9;
In.escapeHtml = cN;
In.escapeQuote = pN;
In.unescapeQuote = fN;
In.escapeHtmlEntities = hN;
In.escapeDangerHtml5Entities = vN;
In.clearNonPrintableCharacter = mN;
In.friendlyAttrValue = gN;
In.escapeAttrValue = yN;
In.onIgnoreTagStripAll = j9;
In.StripTagBody = q9;
In.stripCommentTag = W9;
In.stripBlankChar = K9;
In.cssFilter = dN;
In.getDefaultCSSWhiteList = M9;
var ab = {}, Pl = ZC;
function Y9(t) {
var e = Pl.spaceIndex(t), n;
return e === -1 ? n = t.slice(1, -1) : n = t.slice(1, e + 1), n = Pl.trim(n).toLowerCase(), n.slice(0, 1) === "/" && (n = n.slice(1)), n.slice(-1) === "/" && (n = n.slice(0, -1)), n;
}
function G9(t) {
return t.slice(0, 2) === "</";
}
function X9(t, e, n) {
var a = "", r = 0, i = !1, o = !1, s = 0, l = t.length, u = "", d = "";
e: for (s = 0; s < l; s++) {
var c = t.charAt(s);
if (i === !1) {
if (c === "<") {
i = s;
continue;
}
} else if (o === !1) {
if (c === "<") {
a += n(t.slice(r, s)), i = s, r = s;
continue;
}
if (c === ">" || s === l - 1) {
a += n(t.slice(r, i)), d = t.slice(i, s + 1), u = Y9(d), a += e(i, a.length, u, d, G9(d)), r = s + 1, i = !1;
continue;
}
if (c === '"' || c === "'")
for (var p = 1, f = t.charAt(s - p); f.trim() === "" || f === "="; ) {
if (f === "=") {
o = c;
continue e;
}
f = t.charAt(s - ++p);
}
} else if (c === o) {
o = !1;
continue;
}
}
return r < l && (a += n(t.substr(r))), a;
}
var Q9 = /[^a-zA-Z0-9\\_:.-]/gim;
function Z9(t, e) {
var n = 0, a = 0, r = [], i = !1, o = t.length;
function s(p, f) {
if (p = Pl.trim(p), p = p.replace(Q9, "").toLowerCase(), !(p.length < 1)) {
var h = e(p, f || "");
h && r.push(h);
}
}
for (var l = 0; l < o; l++) {
var u = t.charAt(l), d, c;
if (i === !1 && u === "=") {
i = t.slice(n, l), n = l + 1, a = t.charAt(n) === '"' || t.charAt(n) === "'" ? n : _9(t, l + 1);
continue;
}
if (i !== !1 && l === a) {
if (c = t.indexOf(u, l + 1), c === -1)
break;
d = Pl.trim(t.slice(a + 1, c)), s(i, d), i = !1, l = c, n = l + 1;
continue;
}
if (/\s|\n|\t/.test(u))
if (t = t.replace(/\s|\n|\t/g, " "), i === !1)
if (c = J9(t, l), c === -1) {
d = Pl.trim(t.slice(n, l)), s(d), i = !1, n = l + 1;
continue;
} else {
l = c - 1;
continue;
}
else if (c = ex(t, l - 1), c === -1) {
d = Pl.trim(t.slice(n, l)), d = kT(d), s(i, d), i = !1, n = l + 1;
continue;
} else
continue;
}
return n < t.length && (i === !1 ? s(t.slice(n)) : s(i, kT(Pl.trim(t.slice(n))))), Pl.trim(r.join(" "));
}
function J9(t, e) {
for (; e < t.length; e++) {
var n = t[e];
if (n !== " ")
return n === "=" ? e : -1;
}
}
function _9(t, e) {
for (; e < t.length; e++) {
var n = t[e];
if (n !== " ")
return n === "'" || n === '"' ? e : -1;
}
}
function ex(t, e) {
for (; e > 0; e--) {
var n = t[e];
if (n !== " ")
return n === "=" ? e : -1;
}
}
function tx(t) {
return t[0] === '"' && t[t.length - 1] === '"' || t[0] === "'" && t[t.length - 1] === "'";
}
function kT(t) {
return tx(t) ? t.substr(1, t.length - 2) : t;
}
ab.parseTag = X9;
ab.parseAttr = Z9;
var nx = QC.FilterCSS, Mi = In, bN = ab, ax = bN.parseTag, rx = bN.parseAttr, Mg = ZC;
function zm(t) {
return t == null;
}
function ix(t) {
var e = Mg.spaceIndex(t);
if (e === -1)
return {
html: "",
closing: t[t.length - 2] === "/"
};
t = Mg.trim(t.slice(e + 1, -1));
var n = t[t.length - 1] === "/";
return n && (t = Mg.trim(t.slice(0, -1))), {
html: t,
closing: n
};
}
function ox(t) {
var e = {};
for (var n in t)
e[n] = t[n];
return e;
}
function sx(t) {
var e = {};
for (var n in t)
Array.isArray(t[n]) ? e[n.toLowerCase()] = t[n].map(function(a) {
return a.toLowerCase();
}) : e[n.toLowerCase()] = t[n];
return e;
}
function wN(t) {
t = ox(t || {}), t.stripIgnoreTag && (t.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), t.onIgnoreTag = Mi.onIgnoreTagStripAll), t.whiteList || t.allowList ? t.whiteList = sx(t.whiteList || t.allowList) : t.whiteList = Mi.whiteList, t.onTag = t.onTag || Mi.onTag, t.onTagAttr = t.onTagAttr || Mi.onTagAttr, t.onIgnoreTag = t.onIgnoreTag || Mi.onIgnoreTag, t.onIgnoreTagAttr = t.onIgnoreTagAttr || Mi.onIgnoreTagAttr, t.safeAttrValue = t.safeAttrValue || Mi.safeAttrValue, t.escapeHtml = t.escapeHtml || Mi.escapeHtml, this.options = t, t.css === !1 ? this.cssFilter = !1 : (t.css = t.css || {}, this.cssFilter = new nx(t.css));
}
wN.prototype.process = function(t) {
if (t = t || "", t = t.toString(), !t) return "";
var e = this, n = e.options, a = n.whiteList, r = n.onTag, i = n.onIgnoreTag, o = n.onTagAttr, s = n.onIgnoreTagAttr, l = n.safeAttrValue, u = n.escapeHtml, d = e.cssFilter;
n.stripBlankChar && (t = Mi.stripBlankChar(t)), n.allowCommentTag || (t = Mi.stripCommentTag(t));
var c = !1;
n.stripIgnoreTagBody && (c = Mi.StripTagBody(n.stripIgnoreTagBody, i), i = c.onIgnoreTag);
var p = ax(t, function(f, h, v, m, y) {
var b = {
sourcePosition: f,
position: h,
isClosing: y,
isWhite: Object.prototype.hasOwnProperty.call(a, v)
}, k = r(v, m, b);
if (!zm(k)) return k;
if (b.isWhite) {
if (b.isClosing)
return "</" + v + ">";
var S = ix(m), T = a[v], $ = rx(S.html, function(D, N) {
var V = Mg.indexOf(T, D) !== -1, F = o(v, D, N, V);
return zm(F) ? V ? (N = l(v, D, N, d), N ? D + '="' + N + '"' : D) : (F = s(v, D, N, V), zm(F) ? void 0 : F) : F;
});
return m = "<" + v, $ && (m += " " + $), S.closing && (m += " /"), m += ">", m;
} else
return k = i(v, m, b), zm(k) ? u(m) : k;
}, u);
return c && (p = c.remove(p)), p;
};
var lx = wN;
(function(t, e) {
var n = In, a = ab, r = lx;
function i(s, l) {
var u = new r(l);
return u.process(s);
}
e = t.exports = i, e.filterXSS = i, e.FilterXSS = r, (function() {
for (var s in n)
e[s] = n[s];
for (var l in a)
e[l] = a[l];
})(), typeof window < "u" && (window.filterXSS = t.exports);
function o() {
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
}
o() && (self.filterXSS = t.exports);
})(R1, R1.exports);
var Xg = R1.exports, ui = {
enableAttrs: !0,
enableHtml: !0,
enableUrl: !0,
html: {
whiteList: {
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
address: ["class", "style"],
area: ["class", "style"],
article: ["class", "style"],
aside: ["class", "style"],
audio: ["class", "style"],
b: ["class", "style"],
bdi: ["class", "style"],
bdo: ["class", "style"],
big: ["class", "style"],
blockquote: ["class", "style"],
br: ["class", "style"],
caption: ["class", "style"],
center: ["class", "style"],
cite: ["class", "style"],
code: ["class", "style"],
col: ["class", "style"],
colgroup: ["class", "style"],
dd: ["class", "style"],
del: ["class", "style"],
details: ["class", "style"],
div: ["class", "style", "spellcheck", "data-gramm", "spellcheck", "data-mode", "data-position", "data-row", "data-cell", "data-rowspan", "data-colspan", "data-cell-bg", "data-parent-bg"],
dl: ["class", "style"],
dt: ["class", "style"],
em: ["class", "style"],
figcaption: ["class", "style"],
figure: ["class", "style"],
font: ["class", "style"],
footer: ["class", "style"],
h1: ["class", "style"],
h2: ["class", "style"],
h3: ["class", "style"],
h4: ["class", "style"],
h5: ["class", "style"],
h6: ["class", "style"],
header: ["class", "style"],
hr: ["class", "style"],
i: ["class", "style", "data-image-id", "data-image"],
img: ["class", "style", "data-image-id", "src"],
input: ["class", "style", "data-formula", "data-link", "data-video"],
ins: ["class", "style"],
li: ["class", "style"],
mark: ["class", "style"],
nav: ["class", "style"],
ol: ["class", "style"],
p: ["class", "style"],
pre: ["class", "style"],
s: ["class", "style"],
section: ["class", "style"],
small: ["class", "style"],
span: ["class", "style", "contenteditable", "color", "style"],
sub: ["class", "style"],
summary: ["class", "style"],
sup: ["class", "style"],
strong: ["class", "style"],
strike: ["class", "style"],
svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
path: ["d", "p-id"],
table: ["class", "style"],
tbody: ["class", "style"],
td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
tfoot: ["class", "style"],
th: ["class", "style"],
thead: ["class", "style"],
tr: ["class", "style", "data-row"],
tt: ["class", "style"],
u: ["class", "style"],
ul: ["class", "style"],
video: ["class", "style"]
}
}
}, ux = Xg.getDefaultWhiteList && Xg.getDefaultWhiteList() || {};
ui.html.whiteList = Object.assign(ux, ui.html.whiteList);
var CN = new Xg.FilterXSS(ui.html), dx = function() {
return ui;
}, cx = function(e) {
var n, a;
e != null && (n = e.html) !== null && n !== void 0 && n.whiteList && (a = Object.assign(ui.html.whiteList, e.html.whiteList)), ui = Object.assign(ui, e), a && (ui.html.whiteList = a), CN = new Xg.FilterXSS(ui.html);
}, kN = function(e) {
return !ui.enableHtml || typeof e != "string" ? e : CN.process(e);
}, px = function(e) {
kN = e;
}, SN = function(e) {
return !ui.enableAttrs || typeof e != "string" ? e : e.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
}, fx = function(e) {
SN = e;
}, TN = function(e) {
if (!ui.enableUrl || typeof e != "string")
return e;
var n = e.replace(/&#(\w+)(^\w|;)?/g, function(r, i) {
return String.fromCharCode(i);
}).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim();
if (!n)
return "";
if ([".", "/"].includes(n[0]))
return n;
var a = n.match(/^([^:]+):/gm);
return a && /^([^\w]*)(javascript|data|vbscript)/im.test(a[0]) ? "" : n;
}, hx = function(e) {
TN = e;
};
const rt = {
getXssOption: dx,
setXssOption: cx,
filterHtml: kN,
setFilterHtml: px,
filterAttrs: SN,
setFilterAttrs: fx,
filterUrl: TN,
setFilterUrl: hx
};
var vx = globalThis, _o = vx.console, AN = Object.prototype.toString, ln = Object.prototype.hasOwnProperty, mx = Object.getPrototypeOf, $N = ln.toString, gx = $N.call(Object), yx = {
"[object Error]": "error",
"[object Object]": "object",
"[object RegExp]": "regExp",
"[object Date]": "date",
"[object Array]": "array",
"[object Function]": "function",
"[object AsyncFunction]": "asyncFunction",
"[object String]": "string",
"[object Number]": "number",
"[object Boolean]": "boolean"
}, ct = function(e) {
return e == null;
}, Jn = function(e) {
return ct(e) ? String(e) : yx[AN.call(e)] || "object";
}, pn = function(e) {
return Jn(e) === "object";
}, Ef = function(e) {
return ["asyncFunction", "function"].includes(Jn(e));
}, yi = function(e) {
if (!e || AN.call(e) !== "[object Object]")
return !1;
var n = mx(e);
if (!n)
return !0;
var a = ln.call(n, "constructor") && n.constructor;
return typeof a == "function" && $N.call(a) === gx;
}, es = function(e) {
var n = Jn(e);
if (n =