UNPKG

@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,223 lines 2.95 MB
import { defineComponent as L, props as de, setup as ee, $setup as se, $prefix as X, $props as J, createComponent as ni, h as G, deduplicateCssClass as km, stringifyCssClass as $m, hooks as _, parseVnode as Dm, isEmptyVnode as dC, directive as Mt, isVue2 as nn, $install as Im, appProperties as Ms, setupComponent as qc, isVnode as Xc, mergeClass as mc, resolveTheme as Em, useInstanceSlots as Mm, useRelation as Om, resolveMode as cC, useBreakpoint as pC, emitter as Qc, provideDesignConfig as fC, isVue3 as vC, useDefer as mC, Teleport as hC } from "@opentiny/vue-common"; import { iconLoadingShadow as po, iconEditor as gC, iconPopup as hc, iconLeftWardArrow as Am, iconDownWard as vs, iconEllipsis as Yl, iconWarningTriangle as Zc, iconWarning as Os, iconHelp as As, iconError as ha, iconSuccess as Ps, iconClose as ct, iconMinscreen as Gl, iconFullscreen as ql, IconEyeclose as Pm, IconEyeopen as Nm, IconClose as Ns, IconLoadingShadow as Vm, IconFinish as Fm, IconCheckedSur as Rm, IconCheck as Lm, iconHelpCircle as Jc, iconCheck as pi, iconCheckedSur as rr, iconHalfselect as fi, IconChevronUp as Xl, IconEllipsis as Ql, IconDeltaDown as yC, IconSearch as Bm, IconHalfselect as bC, iconAddCircle as zm, IconCopy as CC, IconChevronDown as ai, iconChevronDown as ri, iconChevronUp as Qo, iconChevronRight as Ut, iconChevronLeft as qn, iconDoubleLeft as io, iconDoubleRight as oo, IconDoubleLeft as Hm, IconDoubleRight as xm, iconTime as wC, iconCalendar as SC, iconPlus as Zl, iconMonthView as TC, iconAgendaView as kC, iconDayView as $C, iconExcel as DC, iconMore as IC, iconEdit as _c, iconYes as Un, IconUpWard as EC, iconSetting as Um, iconConmentRefresh as MC, iconUnfilter as OC, iconSortTriangle as AC, iconSortTriangleAscending as PC, iconSortTriangleDescending as NC, iconGridNoData as VC, iconRadio as ep, iconRadioselected as tp, iconSearch as Zo, iconArrowBottom as Wm, iconExpand as jm, iconPutAway as Km, iconPageWeaknet as FC, iconPageServererror as RC, iconPageNothing as LC, iconPageNoperm as BC, iconWeaknet as zC, iconNoResult as HC, iconNoPerm as xC, iconNoNews as UC, iconNoData as WC, iconHelpSolid as jC, iconMinscreenRight as KC, iconFullscreenRight as YC, IconPopup as Ym, iconMarkOn as np, iconFinish as Gm, iconPlusSquare as GC, iconDel as qm, iconCopy as qC, IconStretchCrosswise as XC, IconStretchUpright as QC, IconRightward as ZC, IconLeftWard as JC, iconFileuploadPro as _C, iconZipType as ew, iconWordType as tw, iconVideoType as nw, iconTextType as aw, iconPptType as rw, iconPictureType as iw, iconPdfType as ow, iconOtherType as sw, iconFileType as lw, iconExcelType as uw, iconAudio as dw, iconPause as cw, iconRight as pw, iconFullscreenLeft as fw, IconError as vw, iconRefresh as Xm, iconCueL as mw, iconDownload as Qm, iconFileCloudupload as Zm, iconCloseCircle as hw, iconView as gw, iconSuccessful as ap, iconDocument as yw, iconAttachment as bw, iconLoading as Cw, IconDel as ww, IconEdit as Sw, IconSave as Tw, IconAscending as Jm, IconDescending as _m, IconMinus as kw, IconLock as $w, IconRightFrozen as eh, IconLeftFrozen as th, IconUnlock as Dw, IconChevronRight as Iw, iconRefres as Ew, iconRepeat as Mw, iconZoomIn as Ow, iconZoomOut as Aw, iconImageError as Pw, iconDotIpv4 as Nw, iconSandwichExpand as Vw, iconSandwichCollapse as Fw, IconSuccess as Rw, IconPrompt as Lw, iconMinus as Bw, iconMeh as zw, iconFrown as Hw, iconSmile as xw, iconStarDisable as Uw, iconStarActive as Ww, iconPicture as jw, iconWarn as nh, IconWarn as Kw, iconInfo as Yw, iconArrowUp as Gw, iconArrowDown as qw, iconEditorMenuRight as Xw, iconEditorMenuLeft as Qw, iconUser as Zw, IconDialog as Jw, IconTelephone as _w, IconEmailAdd as eS, IconEmailCircle as tS, IconTelephoneCircle as nS, IconMessageCircle as aS } from "@opentiny/vue-icon"; import { resolveComponent as N, createElementBlock as w, openBlock as y, mergeProps as Te, createBlock as F, createCommentVNode as E, renderSlot as z, resolveDynamicComponent as ce, normalizeClass as P, createElementVNode as T, toDisplayString as O, createVNode as $, Transition as Ne, withCtx as V, withDirectives as ne, normalizeStyle as re, createTextVNode as ie, vShow as ge, resolveDirective as Je, Fragment as K, renderList as te, withModifiers as ue, createSlots as un, withKeys as Me, toHandlers as Jl, vModelCheckbox as Cl, vModelText as Vs, vModelRadio as ah, isVNode as rp, setBlockTracking as Us, normalizeProps as Vt, guardReactiveProps as zt, TransitionGroup as rS, Teleport as iS } from "vue"; import { t as Ee, language as oS } from "@opentiny/vue-locale"; function gc(n, e) { (e == null || e > n.length) && (e = n.length); for (var t = 0, a = Array(e); t < e; t++) a[t] = n[t]; return a; } function rh(n) { if (Array.isArray(n)) return n; } function sS(n) { if (Array.isArray(n)) return gc(n); } function tf(n, e, t, a, r, i, o) { try { var s = n[i](o), l = s.value; } catch (u) { return void t(u); } s.done ? e(l) : Promise.resolve(l).then(a, r); } function Vn(n) { return function() { var e = this, t = arguments; return new Promise(function(a, r) { var i = n.apply(e, t); function o(l) { tf(i, a, r, o, s, "next", l); } function s(l) { tf(i, a, r, o, s, "throw", l); } o(void 0); }); }; } function Ot(n, e) { if (!(n instanceof e)) throw new TypeError("Cannot call a class as a function"); } function lS(n, e) { for (var t = 0; t < e.length; t++) { var a = e[t]; a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(n, sh(a.key), a); } } function At(n, e, t) { return e && lS(n.prototype, e), Object.defineProperty(n, "prototype", { writable: !1 }), n; } function Qt(n, e) { var t = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (!t) { if (Array.isArray(n) || (t = eu(n)) || e) { t && (n = t); var a = 0, r = function() { }; return { s: r, n: function() { return a >= n.length ? { done: !0 } : { done: !1, value: n[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() { t = t.call(n); }, n: function() { var l = t.next(); return o = l.done, l; }, e: function(l) { s = !0, i = l; }, f: function() { try { o || t.return == null || t.return(); } finally { if (s) throw i; } } }; } function Z(n, e, t) { return (e = sh(e)) in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n; } function ih(n) { if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n); } function uS(n, e) { var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"]; if (t != null) { var a, r, i, o, s = [], l = !0, u = !1; try { if (i = (t = t.call(n)).next, e === 0) { if (Object(t) !== t) return; l = !1; } else for (; !(l = (a = i.call(t)).done) && (s.push(a.value), s.length !== e); l = !0) ; } catch (d) { u = !0, r = d; } finally { try { if (!l && t.return != null && (o = t.return(), Object(o) !== o)) return; } finally { if (u) throw r; } } return s; } } function oh() { 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 dS() { 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 nf(n, e) { var t = Object.keys(n); if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(n); e && (a = a.filter(function(r) { return Object.getOwnPropertyDescriptor(n, r).enumerable; })), t.push.apply(t, a); } return t; } function I(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? nf(Object(t), !0).forEach(function(a) { Z(n, a, t[a]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : nf(Object(t)).forEach(function(a) { Object.defineProperty(n, a, Object.getOwnPropertyDescriptor(t, a)); }); } return n; } function _l(n, e) { if (n == null) return {}; var t, a, r = cS(n, e); if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(n); for (a = 0; a < i.length; a++) t = i[a], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (r[t] = n[t]); } return r; } function cS(n, e) { if (n == null) return {}; var t = {}; for (var a in n) if ({}.hasOwnProperty.call(n, a)) { if (e.indexOf(a) !== -1) continue; t[a] = n[a]; } return t; } function et() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var n, e, t = typeof Symbol == "function" ? Symbol : {}, a = t.iterator || "@@iterator", r = t.toStringTag || "@@toStringTag"; function i(f, v, m, h) { var g = v && v.prototype instanceof s ? v : s, b = Object.create(g.prototype); return hn(b, "_invoke", (function(C, S, k) { var M, D, A, R = 0, B = k || [], Q = !1, U = { p: 0, n: 0, v: n, a: Y, f: Y.bind(n, 4), d: function(H, x) { return M = H, D = 0, A = n, U.n = x, o; } }; function Y(H, x) { for (D = H, A = x, e = 0; !Q && R && !j && e < B.length; e++) { var j, oe = B[e], pe = U.p, ye = oe[2]; H > 3 ? (j = ye === x) && (A = oe[(D = oe[4]) ? 5 : (D = 3, 3)], oe[4] = oe[5] = n) : oe[0] <= pe && ((j = H < 2 && pe < oe[1]) ? (D = 0, U.v = x, U.n = oe[1]) : pe < ye && (j = H < 3 || oe[0] > x || x > ye) && (oe[4] = H, oe[5] = x, U.n = ye, D = 0)); } if (j || H > 1) return o; throw Q = !0, x; } return function(H, x, j) { if (R > 1) throw TypeError("Generator is already running"); for (Q && x === 1 && Y(x, j), D = x, A = j; (e = D < 2 ? n : A) || !Q; ) { M || (D ? D < 3 ? (D > 1 && (U.n = -1), Y(D, A)) : U.n = A : U.v = A); try { if (R = 2, M) { if (D || (H = "next"), e = M[H]) { if (!(e = e.call(M, A))) throw TypeError("iterator result is not an object"); if (!e.done) return e; A = e.value, D < 2 && (D = 0); } else D === 1 && (e = M.return) && e.call(M), D < 2 && (A = TypeError("The iterator does not provide a '" + H + "' method"), D = 1); M = n; } else if ((e = (Q = U.n < 0) ? A : C.call(S, U)) !== o) break; } catch (oe) { M = n, D = 1, A = oe; } finally { R = 1; } } return { value: e, done: Q }; }; })(f, m, h), !0), b; } var o = {}; function s() { } function l() { } function u() { } e = Object.getPrototypeOf; var d = [][a] ? e(e([][a]())) : (hn(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, hn(f, r, "GeneratorFunction")), f.prototype = Object.create(c), f; } return l.prototype = u, hn(c, "constructor", u), hn(u, "constructor", l), l.displayName = "GeneratorFunction", hn(u, r, "GeneratorFunction"), hn(c), hn(c, r, "Generator"), hn(c, a, function() { return this; }), hn(c, "toString", function() { return "[object Generator]"; }), (et = function() { return { w: i, m: p }; })(); } function hn(n, e, t, a) { var r = Object.defineProperty; try { r({}, "", {}); } catch { r = 0; } hn = function(i, o, s, l) { function u(d, c) { hn(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)); }, hn(n, e, t, a); } function pS(n) { if (n != null) { var e = n[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], t = 0; if (e) return e.call(n); if (typeof n.next == "function") return n; if (!isNaN(n.length)) return { next: function() { return n && t >= n.length && (n = void 0), { value: n && n[t++], done: !n }; } }; } throw new TypeError(typeof n + " is not iterable"); } function Be(n, e) { return rh(n) || uS(n, e) || eu(n, e) || oh(); } function fS(n) { return rh(n) || ih(n) || eu(n) || oh(); } function me(n) { return sS(n) || ih(n) || eu(n) || dS(); } function vS(n, e) { if (typeof n != "object" || !n) return n; var t = n[Symbol.toPrimitive]; if (t !== void 0) { var a = t.call(n, e); if (typeof a != "object") return a; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(n); } function sh(n) { var e = vS(n, "string"); return typeof e == "symbol" ? e : e + ""; } function q(n) { "@babel/helpers - typeof"; return q = 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; }, q(n); } function eu(n, e) { if (n) { if (typeof n == "string") return gc(n, e); var t = {}.toString.call(n).slice(8, -1); return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? gc(n, e) : void 0; } } var mS = function(e) { var t = e.props, a = e.state; return function() { return t.maxShowNum !== void 0 ? t.maxShowNum : a.isCardMode ? 3 : 2; }; }, hS = function(e) { var t = e.props, a = e.state, r = e.designConfig; return function() { return t.spacing !== void 0 ? String(t.spacing).includes("px") ? t.spacing : t.spacing + "px" : a.isCardMode ? "10px" : (r == null ? void 0 : r.props.spacing) || "8px"; }; }, gS = function(e) { var t = e.props, a = e.state, r = e.t; return function() { return t.moreText !== void 0 ? t.moreText : a.isCardMode ? "" : r("ui.actionMenu.moreText"); }; }, yS = function(e) { var t = e.props, a = e.state; return function() { return t.suffixIcon ? t.suffixIcon : a.isCardMode ? "tiny-icon-ellipsis" : ""; }; }, bS = function(e) { return function() { e("more-click"); }; }, CS = function(e) { return function(t) { e("item-click", t); }; }, wS = function(e) { return function(t) { e("visible-change", t); }; }, SS = ["state", "handleMoreClick", "handleItemClick", "visibleChange"], TS = function(e, t, a) { var r = t.computed, i = t.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: bS(o), handleItemClick: CS(o), visibleChange: wS(o), computedMaxShowNum: mS({ props: e, state: d }), computedSpacing: hS({ props: e, state: d, designConfig: l }), computedMoreText: gS({ props: e, state: d, t: s }), computedSuffixIcon: yS({ props: e, state: d }) }), u; }, yc = { exports: {} }, pt = {}, bc = { exports: {} }, fo = {}; function lh() { var n = {}; return n["align-content"] = !1, n["align-items"] = !1, n["align-self"] = !1, n["alignment-adjust"] = !1, n["alignment-baseline"] = !1, n.all = !1, n["anchor-point"] = !1, n.animation = !1, n["animation-delay"] = !1, n["animation-direction"] = !1, n["animation-duration"] = !1, n["animation-fill-mode"] = !1, n["animation-iteration-count"] = !1, n["animation-name"] = !1, n["animation-play-state"] = !1, n["animation-timing-function"] = !1, n.azimuth = !1, n["backface-visibility"] = !1, n.background = !0, n["background-attachment"] = !0, n["background-clip"] = !0, n["background-color"] = !0, n["background-image"] = !0, n["background-origin"] = !0, n["background-position"] = !0, n["background-repeat"] = !0, n["background-size"] = !0, n["baseline-shift"] = !1, n.binding = !1, n.bleed = !1, n["bookmark-label"] = !1, n["bookmark-level"] = !1, n["bookmark-state"] = !1, n.border = !0, n["border-bottom"] = !0, n["border-bottom-color"] = !0, n["border-bottom-left-radius"] = !0, n["border-bottom-right-radius"] = !0, n["border-bottom-style"] = !0, n["border-bottom-width"] = !0, n["border-collapse"] = !0, n["border-color"] = !0, n["border-image"] = !0, n["border-image-outset"] = !0, n["border-image-repeat"] = !0, n["border-image-slice"] = !0, n["border-image-source"] = !0, n["border-image-width"] = !0, n["border-left"] = !0, n["border-left-color"] = !0, n["border-left-style"] = !0, n["border-left-width"] = !0, n["border-radius"] = !0, n["border-right"] = !0, n["border-right-color"] = !0, n["border-right-style"] = !0, n["border-right-width"] = !0, n["border-spacing"] = !0, n["border-style"] = !0, n["border-top"] = !0, n["border-top-color"] = !0, n["border-top-left-radius"] = !0, n["border-top-right-radius"] = !0, n["border-top-style"] = !0, n["border-top-width"] = !0, n["border-width"] = !0, n.bottom = !1, n["box-decoration-break"] = !0, n["box-shadow"] = !0, n["box-sizing"] = !0, n["box-snap"] = !0, n["box-suppress"] = !0, n["break-after"] = !0, n["break-before"] = !0, n["break-inside"] = !0, n["caption-side"] = !1, n.chains = !1, n.clear = !0, n.clip = !1, n["clip-path"] = !1, n["clip-rule"] = !1, n.color = !0, n["color-interpolation-filters"] = !0, n["column-count"] = !1, n["column-fill"] = !1, n["column-gap"] = !1, n["column-rule"] = !1, n["column-rule-color"] = !1, n["column-rule-style"] = !1, n["column-rule-width"] = !1, n["column-span"] = !1, n["column-width"] = !1, n.columns = !1, n.contain = !1, n.content = !1, n["counter-increment"] = !1, n["counter-reset"] = !1, n["counter-set"] = !1, n.crop = !1, n.cue = !1, n["cue-after"] = !1, n["cue-before"] = !1, n.cursor = !1, n.direction = !1, n.display = !0, n["display-inside"] = !0, n["display-list"] = !0, n["display-outside"] = !0, n["dominant-baseline"] = !1, n.elevation = !1, n["empty-cells"] = !1, n.filter = !1, n.flex = !1, n["flex-basis"] = !1, n["flex-direction"] = !1, n["flex-flow"] = !1, n["flex-grow"] = !1, n["flex-shrink"] = !1, n["flex-wrap"] = !1, n.float = !1, n["float-offset"] = !1, n["flood-color"] = !1, n["flood-opacity"] = !1, n["flow-from"] = !1, n["flow-into"] = !1, n.font = !0, n["font-family"] = !0, n["font-feature-settings"] = !0, n["font-kerning"] = !0, n["font-language-override"] = !0, n["font-size"] = !0, n["font-size-adjust"] = !0, n["font-stretch"] = !0, n["font-style"] = !0, n["font-synthesis"] = !0, n["font-variant"] = !0, n["font-variant-alternates"] = !0, n["font-variant-caps"] = !0, n["font-variant-east-asian"] = !0, n["font-variant-ligatures"] = !0, n["font-variant-numeric"] = !0, n["font-variant-position"] = !0, n["font-weight"] = !0, n.grid = !1, n["grid-area"] = !1, n["grid-auto-columns"] = !1, n["grid-auto-flow"] = !1, n["grid-auto-rows"] = !1, n["grid-column"] = !1, n["grid-column-end"] = !1, n["grid-column-start"] = !1, n["grid-row"] = !1, n["grid-row-end"] = !1, n["grid-row-start"] = !1, n["grid-template"] = !1, n["grid-template-areas"] = !1, n["grid-template-columns"] = !1, n["grid-template-rows"] = !1, n["hanging-punctuation"] = !1, n.height = !0, n.hyphens = !1, n.icon = !1, n["image-orientation"] = !1, n["image-resolution"] = !1, n["ime-mode"] = !1, n["initial-letters"] = !1, n["inline-box-align"] = !1, n["justify-content"] = !1, n["justify-items"] = !1, n["justify-self"] = !1, n.left = !1, n["letter-spacing"] = !0, n["lighting-color"] = !0, n["line-box-contain"] = !1, n["line-break"] = !1, n["line-grid"] = !1, n["line-height"] = !1, n["line-snap"] = !1, n["line-stacking"] = !1, n["line-stacking-ruby"] = !1, n["line-stacking-shift"] = !1, n["line-stacking-strategy"] = !1, n["list-style"] = !0, n["list-style-image"] = !0, n["list-style-position"] = !0, n["list-style-type"] = !0, n.margin = !0, n["margin-bottom"] = !0, n["margin-left"] = !0, n["margin-right"] = !0, n["margin-top"] = !0, n["marker-offset"] = !1, n["marker-side"] = !1, n.marks = !1, n.mask = !1, n["mask-box"] = !1, n["mask-box-outset"] = !1, n["mask-box-repeat"] = !1, n["mask-box-slice"] = !1, n["mask-box-source"] = !1, n["mask-box-width"] = !1, n["mask-clip"] = !1, n["mask-image"] = !1, n["mask-origin"] = !1, n["mask-position"] = !1, n["mask-repeat"] = !1, n["mask-size"] = !1, n["mask-source-type"] = !1, n["mask-type"] = !1, n["max-height"] = !0, n["max-lines"] = !1, n["max-width"] = !0, n["min-height"] = !0, n["min-width"] = !0, n["move-to"] = !1, n["nav-down"] = !1, n["nav-index"] = !1, n["nav-left"] = !1, n["nav-right"] = !1, n["nav-up"] = !1, n["object-fit"] = !1, n["object-position"] = !1, n.opacity = !1, n.order = !1, n.orphans = !1, n.outline = !1, n["outline-color"] = !1, n["outline-offset"] = !1, n["outline-style"] = !1, n["outline-width"] = !1, n.overflow = !1, n["overflow-wrap"] = !1, n["overflow-x"] = !1, n["overflow-y"] = !1, n.padding = !0, n["padding-bottom"] = !0, n["padding-left"] = !0, n["padding-right"] = !0, n["padding-top"] = !0, n.page = !1, n["page-break-after"] = !1, n["page-break-before"] = !1, n["page-break-inside"] = !1, n["page-policy"] = !1, n.pause = !1, n["pause-after"] = !1, n["pause-before"] = !1, n.perspective = !1, n["perspective-origin"] = !1, n.pitch = !1, n["pitch-range"] = !1, n["play-during"] = !1, n.position = !1, n["presentation-level"] = !1, n.quotes = !1, n["region-fragment"] = !1, n.resize = !1, n.rest = !1, n["rest-after"] = !1, n["rest-before"] = !1, n.richness = !1, n.right = !1, n.rotation = !1, n["rotation-point"] = !1, n["ruby-align"] = !1, n["ruby-merge"] = !1, n["ruby-position"] = !1, n["shape-image-threshold"] = !1, n["shape-outside"] = !1, n["shape-margin"] = !1, n.size = !1, n.speak = !1, n["speak-as"] = !1, n["speak-header"] = !1, n["speak-numeral"] = !1, n["speak-punctuation"] = !1, n["speech-rate"] = !1, n.stress = !1, n["string-set"] = !1, n["tab-size"] = !1, n["table-layout"] = !1, n["text-align"] = !0, n["text-align-last"] = !0, n["text-combine-upright"] = !0, n["text-decoration"] = !0, n["text-decoration-color"] = !0, n["text-decoration-line"] = !0, n["text-decoration-skip"] = !0, n["text-decoration-style"] = !0, n["text-emphasis"] = !0, n["text-emphasis-color"] = !0, n["text-emphasis-position"] = !0, n["text-emphasis-style"] = !0, n["text-height"] = !0, n["text-indent"] = !0, n["text-justify"] = !0, n["text-orientation"] = !0, n["text-overflow"] = !0, n["text-shadow"] = !0, n["text-space-collapse"] = !0, n["text-transform"] = !0, n["text-underline-position"] = !0, n["text-wrap"] = !0, n.top = !1, n.transform = !1, n["transform-origin"] = !1, n["transform-style"] = !1, n.transition = !1, n["transition-delay"] = !1, n["transition-duration"] = !1, n["transition-property"] = !1, n["transition-timing-function"] = !1, n["unicode-bidi"] = !1, n["vertical-align"] = !1, n.visibility = !1, n["voice-balance"] = !1, n["voice-duration"] = !1, n["voice-family"] = !1, n["voice-pitch"] = !1, n["voice-range"] = !1, n["voice-rate"] = !1, n["voice-stress"] = !1, n["voice-volume"] = !1, n.volume = !1, n["white-space"] = !1, n.widows = !1, n.width = !0, n["will-change"] = !1, n["word-break"] = !0, n["word-spacing"] = !0, n["word-wrap"] = !0, n["wrap-flow"] = !1, n["wrap-through"] = !1, n["writing-mode"] = !1, n["z-index"] = !1, n; } function kS(n, e, t) { } function $S(n, e, t) { } var DS = /javascript\s*\:/img; function IS(n, e) { return DS.test(e) ? "" : e; } fo.whiteList = lh(); fo.getDefaultWhiteList = lh; fo.onAttr = kS; fo.onIgnoreAttr = $S; fo.safeAttrValue = IS; var ES = { indexOf: function(e, t) { var a, r; if (Array.prototype.indexOf) return e.indexOf(t); for (a = 0, r = e.length; a < r; a++) if (e[a] === t) return a; return -1; }, forEach: function(e, t, a) { var r, i; if (Array.prototype.forEach) return e.forEach(t, a); for (r = 0, i = e.length; r < i; r++) t.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, ""); } }, rs = ES; function MS(n, e) { n = rs.trimRight(n), n[n.length - 1] !== ";" && (n += ";"); var t = n.length, a = !1, r = 0, i = 0, o = ""; function s() { if (!a) { var d = rs.trim(n.slice(r, i)), c = d.indexOf(":"); if (c !== -1) { var p = rs.trim(d.slice(0, c)), f = rs.trim(d.slice(c + 1)); if (p) { var v = e(r, o.length, p, f, d); v && (o += v + "; "); } } } r = i + 1; } for (; i < t; i++) { var l = n[i]; if (l === "/" && n[i + 1] === "*") { var u = n.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 rs.trim(o); } var OS = MS, Ws = fo, AS = OS; function af(n) { return n == null; } function PS(n) { var e = {}; for (var t in n) e[t] = n[t]; return e; } function uh(n) { n = PS(n || {}), n.whiteList = n.whiteList || Ws.whiteList, n.onAttr = n.onAttr || Ws.onAttr, n.onIgnoreAttr = n.onIgnoreAttr || Ws.onIgnoreAttr, n.safeAttrValue = n.safeAttrValue || Ws.safeAttrValue, this.options = n; } uh.prototype.process = function(n) { if (n = n || "", n = n.toString(), !n) return ""; var e = this, t = e.options, a = t.whiteList, r = t.onAttr, i = t.onIgnoreAttr, o = t.safeAttrValue, s = AS(n, function(l, u, d, c, p) { var f = a[d], v = !1; if (f === !0 ? v = f : typeof f == "function" ? v = f(c) : f instanceof RegExp && (v = f.test(c)), v !== !0 && (v = !1), c = o(d, c), !!c) { var m = { position: u, sourcePosition: l, source: p, isWhite: v }; if (v) { var h = r(d, c, m); return af(h) ? d + ":" + c : h; } else { var h = i(d, c, m); if (!af(h)) return h; } } }); return s; }; var NS = uh; (function(n, e) { var t = fo, a = NS; function r(o, s) { var l = new a(s); return l.process(o); } e = n.exports = r, e.FilterCSS = a; for (var i in t) e[i] = t[i]; typeof window < "u" && (window.filterCSS = n.exports); })(bc, bc.exports); var ip = bc.exports, op = { indexOf: function(e, t) { var a, r; if (Array.prototype.indexOf) return e.indexOf(t); for (a = 0, r = e.length; a < r; a++) if (e[a] === t) return a; return -1; }, forEach: function(e, t, a) { var r, i; if (Array.prototype.forEach) return e.forEach(t, a); for (r = 0, i = e.length; r < i; r++) t.call(a, e[r], r, e); }, trim: function(e) { return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, ""); }, spaceIndex: function(e) { var t = /\s|\n|\t/, a = t.exec(e); return a ? a.index : -1; } }, VS = ip.FilterCSS, FS = ip.getDefaultWhiteList, wl = op; function dh() { 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 ch = new VS(); function RS(n, e, t) { } function LS(n, e, t) { } function BS(n, e, t) { } function zS(n, e, t) { } function ph(n) { return n.replace(xS, "&lt;").replace(US, "&gt;"); } function HS(n, e, t, a) { if (t = yh(t), e === "href" || e === "src") { if (t = wl.trim(t), t === "#") return "#"; if (!(t.substr(0, 7) === "http://" || t.substr(0, 8) === "https://" || t.substr(0, 7) === "mailto:" || t.substr(0, 4) === "tel:" || t.substr(0, 11) === "data:image/" || t.substr(0, 6) === "ftp://" || t.substr(0, 2) === "./" || t.substr(0, 3) === "../" || t[0] === "#" || t[0] === "/")) return ""; } else if (e === "background") { if (js.lastIndex = 0, js.test(t)) return ""; } else if (e === "style") { if (rf.lastIndex = 0, rf.test(t) || (of.lastIndex = 0, of.test(t) && (js.lastIndex = 0, js.test(t)))) return ""; a !== !1 && (a = a || ch, t = a.process(t)); } return t = bh(t), t; } var xS = /</g, US = />/g, WS = /"/g, jS = /&quot;/g, KS = /&#([a-zA-Z0-9]*);?/gim, YS = /&colon;?/gim, GS = /&newline;?/gim, js = /((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, rf = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, of = /u\s*r\s*l\s*\(.*/gi; function fh(n) { return n.replace(WS, "&quot;"); } function vh(n) { return n.replace(jS, '"'); } function mh(n) { return n.replace(KS, function(t, a) { return a[0] === "x" || a[0] === "X" ? String.fromCharCode(parseInt(a.substr(1), 16)) : String.fromCharCode(parseInt(a, 10)); }); } function hh(n) { return n.replace(YS, ":").replace(GS, " "); } function gh(n) { for (var e = "", t = 0, a = n.length; t < a; t++) e += n.charCodeAt(t) < 32 ? " " : n.charAt(t); return wl.trim(e); } function yh(n) { return n = vh(n), n = mh(n), n = hh(n), n = gh(n), n; } function bh(n) { return n = fh(n), n = ph(n), n; } function qS() { return ""; } function XS(n, e) { typeof e != "function" && (e = function() { }); var t = !Array.isArray(n); function a(o) { return t ? !0 : wl.indexOf(n, 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 wl.forEach(r, function(d) { l += s.slice(u, d[0]), u = d[1]; }), l += s.slice(u), l; } }; } function QS(n) { for (var e = "", t = 0; t < n.length; ) { var a = n.indexOf("<!--", t); if (a === -1) { e += n.slice(t); break; } e += n.slice(t, a); var r = n.indexOf("-->", a); if (r === -1) break; t = r + 3; } return e; } function ZS(n) { var e = n.split(""); return e = e.filter(function(t) { var a = t.charCodeAt(0); return a === 127 ? !1 : a <= 31 ? a === 10 || a === 13 : !0; }), e.join(""); } pt.whiteList = dh(); pt.getDefaultWhiteList = dh; pt.onTag = RS; pt.onIgnoreTag = LS; pt.onTagAttr = BS; pt.onIgnoreTagAttr = zS; pt.safeAttrValue = HS; pt.escapeHtml = ph; pt.escapeQuote = fh; pt.unescapeQuote = vh; pt.escapeHtmlEntities = mh; pt.escapeDangerHtml5Entities = hh; pt.clearNonPrintableCharacter = gh; pt.friendlyAttrValue = yh; pt.escapeAttrValue = bh; pt.onIgnoreTagStripAll = qS; pt.StripTagBody = XS; pt.stripCommentTag = QS; pt.stripBlankChar = ZS; pt.cssFilter = ch; pt.getDefaultCSSWhiteList = FS; var tu = {}, _a = op; function JS(n) { var e = _a.spaceIndex(n), t; return e === -1 ? t = n.slice(1, -1) : t = n.slice(1, e + 1), t = _a.trim(t).toLowerCase(), t.slice(0, 1) === "/" && (t = t.slice(1)), t.slice(-1) === "/" && (t = t.slice(0, -1)), t; } function _S(n) { return n.slice(0, 2) === "</"; } function eT(n, e, t) { var a = "", r = 0, i = !1, o = !1, s = 0, l = n.length, u = "", d = ""; e: for (s = 0; s < l; s++) { var c = n.charAt(s); if (i === !1) { if (c === "<") { i = s; continue; } } else if (o === !1) { if (c === "<") { a += t(n.slice(r, s)), i = s, r = s; continue; } if (c === ">" || s === l - 1) { a += t(n.slice(r, i)), d = n.slice(i, s + 1), u = JS(d), a += e(i, a.length, u, d, _S(d)), r = s + 1, i = !1; continue; } if (c === '"' || c === "'") for (var p = 1, f = n.charAt(s - p); f.trim() === "" || f === "="; ) { if (f === "=") { o = c; continue e; } f = n.charAt(s - ++p); } } else if (c === o) { o = !1; continue; } } return r < l && (a += t(n.substr(r))), a; } var tT = /[^a-zA-Z0-9\\_:.-]/gim; function nT(n, e) { var t = 0, a = 0, r = [], i = !1, o = n.length; function s(p, f) { if (p = _a.trim(p), p = p.replace(tT, "").toLowerCase(), !(p.length < 1)) { var v = e(p, f || ""); v && r.push(v); } } for (var l = 0; l < o; l++) { var u = n.charAt(l), d, c; if (i === !1 && u === "=") { i = n.slice(t, l), t = l + 1, a = n.charAt(t) === '"' || n.charAt(t) === "'" ? t : rT(n, l + 1); continue; } if (i !== !1 && l === a) { if (c = n.indexOf(u, l + 1), c === -1) break; d = _a.trim(n.slice(a + 1, c)), s(i, d), i = !1, l = c, t = l + 1; continue; } if (/\s|\n|\t/.test(u)) if (n = n.replace(/\s|\n|\t/g, " "), i === !1) if (c = aT(n, l), c === -1) { d = _a.trim(n.slice(t, l)), s(d), i = !1, t = l + 1; continue; } else { l = c - 1; continue; } else if (c = iT(n, l - 1), c === -1) { d = _a.trim(n.slice(t, l)), d = sf(d), s(i, d), i = !1, t = l + 1; continue; } else continue; } return t < n.length && (i === !1 ? s(n.slice(t)) : s(i, sf(_a.trim(n.slice(t))))), _a.trim(r.join(" ")); } function aT(n, e) { for (; e < n.length; e++) { var t = n[e]; if (t !== " ") return t === "=" ? e : -1; } } function rT(n, e) { for (; e < n.length; e++) { var t = n[e]; if (t !== " ") return t === "'" || t === '"' ? e : -1; } } function iT(n, e) { for (; e > 0; e--) { var t = n[e]; if (t !== " ") return t === "=" ? e : -1; } } function oT(n) { return n[0] === '"' && n[n.length - 1] === '"' || n[0] === "'" && n[n.length - 1] === "'"; } function sf(n) { return oT(n) ? n.substr(1, n.length - 2) : n; } tu.parseTag = eT; tu.parseAttr = nT; var sT = ip.FilterCSS, Fn = pt, Ch = tu, lT = Ch.parseTag, uT = Ch.parseAttr, dl = op; function Ks(n) { return n == null; } function dT(n) { var e = dl.spaceIndex(n); if (e === -1) return { html: "", closing: n[n.length - 2] === "/" }; n = dl.trim(n.slice(e + 1, -1)); var t = n[n.length - 1] === "/"; return t && (n = dl.trim(n.slice(0, -1))), { html: n, closing: t }; } function cT(n) { var e = {}; for (var t in n) e[t] = n[t]; return e; } function pT(n) { var e = {}; for (var t in n) Array.isArray(n[t]) ? e[t.toLowerCase()] = n[t].map(function(a) { return a.toLowerCase(); }) : e[t.toLowerCase()] = n[t]; return e; } function wh(n) { n = cT(n || {}), n.stripIgnoreTag && (n.onIgnoreTag && console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'), n.onIgnoreTag = Fn.onIgnoreTagStripAll), n.whiteList || n.allowList ? n.whiteList = pT(n.whiteList || n.allowList) : n.whiteList = Fn.whiteList, n.onTag = n.onTag || Fn.onTag, n.onTagAttr = n.onTagAttr || Fn.onTagAttr, n.onIgnoreTag = n.onIgnoreTag || Fn.onIgnoreTag, n.onIgnoreTagAttr = n.onIgnoreTagAttr || Fn.onIgnoreTagAttr, n.safeAttrValue = n.safeAttrValue || Fn.safeAttrValue, n.escapeHtml = n.escapeHtml || Fn.escapeHtml, this.options = n, n.css === !1 ? this.cssFilter = !1 : (n.css = n.css || {}, this.cssFilter = new sT(n.css)); } wh.prototype.process = function(n) { if (n = n || "", n = n.toString(), !n) return ""; var e = this, t = e.options, a = t.whiteList, r = t.onTag, i = t.onIgnoreTag, o = t.onTagAttr, s = t.onIgnoreTagAttr, l = t.safeAttrValue, u = t.escapeHtml, d = e.cssFilter; t.stripBlankChar && (n = Fn.stripBlankChar(n)), t.allowCommentTag || (n = Fn.stripCommentTag(n)); var c = !1; t.stripIgnoreTagBody && (c = Fn.StripTagBody(t.stripIgnoreTagBody, i), i = c.onIgnoreTag); var p = lT(n, function(f, v, m, h, g) { var b = { sourcePosition: f, position: v, isClosing: g, isWhite: Object.prototype.hasOwnProperty.call(a, m) }, C = r(m, h, b); if (!Ks(C)) return C; if (b.isWhite) { if (b.isClosing) return "</" + m + ">"; var S = dT(h), k = a[m], M = uT(S.html, function(D, A) { var R = dl.indexOf(k, D) !== -1, B = o(m, D, A, R); return Ks(B) ? R ? (A = l(m, D, A, d), A ? D + '="' + A + '"' : D) : (B = s(m, D, A, R), Ks(B) ? void 0 : B) : B; }); return h = "<" + m, M && (h += " " + M), S.closing && (h += " /"), h += ">", h; } else return C = i(m, h, b), Ks(C) ? u(h) : C; }, u); return c && (p = c.remove(p)), p; }; var fT = wh; (function(n, e) { var t = pt, a = tu, r = fT; function i(s, l) { var u = new r(l); return u.process(s); } e = n.exports = i, e.filterXSS = i, e.FilterXSS = r, (function() { for (var s in t) e[s] = t[s]; for (var l in a) e[l] = a[l]; })(), typeof window < "u" && (window.filterXSS = n.exports); function o() { return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope; } o() && (self.filterXSS = n.exports); })(yc, yc.exports); var Sl = yc.exports, kn = { 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"] } } }, vT = Sl.getDefaultWhiteList && Sl.getDefaultWhiteList() || {}; kn.html.whiteList = Object.assign(vT, kn.html.whiteList); var Sh = new Sl.FilterXSS(kn.html), mT = function() { return kn; }, hT = function(e) { var t, a; e != null && (t = e.html) !== null && t !== void 0 && t.whiteList && (a = Object.assign(kn.html.whiteList, e.html.whiteList)), kn = Object.assign(kn, e), a && (kn.html.whiteList = a), Sh = new Sl.FilterXSS(kn.html); }, Th = function(e) { return !kn.enableHtml || typeof e != "string" ? e : Sh.process(e); }, gT = function(e) { Th = e; }, kh = function(e) { return !kn.enableAttrs || typeof e != "string" ? e : e.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, ""); }, yT = function(e) { kh = e; }, $h = function(e) { if (!kn.enableUrl || typeof e != "string") return e; var t = e.replace(/&#(\w+)(^\w|;)?/g, function(r, i) { return String.fromCharCode(i); }).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim(); if (!t) return ""; if ([".", "/"].includes(t[0])) return t; var a = t.match(/^([^:]+):/gm); return a && /^([^\w]*)(javascript|data|vbscript)/im.test(a[0]) ? "" : t; }, bT = function(e) { $h = e; }; const tt = { getXssOption: mT, setXssOption: hT, filterHtml: Th, setFilterHtml: gT, filterAttrs: kh, setFilterAttrs: yT, filterUrl: $h, setFilterUrl: bT }; var CT = globalThis, Gr = CT.console, Dh = Object.prototype.toString, at = Object.prototype.hasOwnProperty, wT = Object.getPrototypeOf, Ih = at.toString, ST = Ih.call(Object), TT = { "[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" }, Ae = function(e) { return e == null; }, wt = function(e) { return Ae(e) ? String(e) : TT[Dh.call(e)] || "object"; }, vt = function(e) { return wt(e) === "object"; }, zo = function(e) { return ["asyncFunction", "function"].includes(wt(e)); }, An = function(e) { if (!e || Dh.call(e) !== "[object Object]") return !1; var t = wT(e); if (!t) return !0; var a = at.call(t, "constructor") && t.constructor; return typeof a == "function" && Ih.call(a) === ST; }, ca = function(e) { var t = wt(e); if (t === "object" || t === "array") { for (var a in e) if (at.call(e, a)) return !1; } return !0; }, Ge = function(e) { return typeof e == "number" && isFinite(e); }, Oo = function(e) { return e - parseFloat(e) >= 0; }, qa = function(e) { return wt(e) === "date"; }, kT = function(e, t) { return e === t || typeof e == "number" && typeof t == "number" && isNaN(e) && isNaN(t); }, $T = function(e) { return wt(e) === "regExp"; }, DT = function(e) { return vt(e) && zo(e.then) && zo(e.catch); }, Eh = function() { return window; }, ke = typeof window > "u", IT = function() { var e = 8; return document.addEventListener && window.performance && (e = 9, window.atob && window.matchMedia && (e = 10, !window.attachEvent && !document.all && (e = 11))), e; }, ET = function(e) { e.chrome && ~navigator.userAgent.indexOf("Edg") ? (e.name = "edge", e.edge = !0, delete e.chrome) : !document.documentMode && window.StyleMedia && (e.name = "edge", e.edge = !0); }, Pn = (function() { if (ke) return null; var n = { name: "", version: 0, isDoc: typeof document < "u", isMobile: !1, isPC: !0, isNode: ke, chrome: !1, ie: !1, firefox: !1, safari: !1, opera: !1, edge: !1 }, e = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent); n.isMobile = e, n.isPC = !e; var t; if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (n.name = "chrome", n.chrome = !0, t = navigator.userAgent.match(/chrome\/(\d+)/i), n.version = !!t && !!t[1] && parseInt(t[1], 10), t = void 0) : document.all || document.documentMode ? (n.name = "ie", n.version = IT(), n.ie = !0) : typeof window.InstallTrigger < "u" ? (n.name = "firefox", n.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (n.name = "safari", n.safari = !0) : (window.opr && window.opr.addons || window.opera) && (n.name = "opera", n.opera = !0), ET(n), !~["ie", "chrome"].indexOf(n.name)) { var a = n.name + "/(\\d+)"; t = navigator.userAgent.match(new RegExp(a, "i")), n.version = !!t && !!t[1] && parseInt(t[1], 10), t = void 0; } if (n.isDoc) { var r = document.body || document.documentElement; ["webkit", "khtml", "moz", "ms", "o"].forEach(function(i) { n["-" + i] = !!r[i + "MatchesSelector"]; }); } return n; })(), MT = /([:\-_]+(.))/g, OT = /^moz([A-Z])/, AT = function(e) { return e.replace(MT, function(t, a, r, i) { return i ? r.toUpperCase() : r; }).replace(OT, "Moz$1"); }, le = function(e, t, a) { var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; e && t && a && e.addEventListener(t, a, r); }, fe = function(e, t, a) { var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; e && t && e.removeEventListener(t, a, r); }, PT = function(e, t, a) { var r = function(o) { a && a.call(this, o), fe(e, t, r); }; le(e, t, r); }, Tn = function(e, t) { if (!e || !t) return !1; if (t.includes(" ")) throw new Error("className should not contain space."); return e.classList ? e.classList.contains(t) : !1; }, Ke = function(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""; if (e) { var a = t.split(" ").filter(function(r) { return r; }); a.forEach(function(r) { return e.classList.add(r); }); } }, Ye = function(e, t) { if (!(!e || !t)) { var a = t.split(" ").filter(function(r) { return r; }); a.forEach(function(r) { return e.classList.remove(r); }); } }, Yt = function(e, t) { if (!ke) { if (!e || !t) return null; t = AT(t), t === "float" && (t = "cssFloat"); try { if (e.style[t]) return e.style[t]; var a = window.getComputedStyle(e); return a ? a[t] : null; } catch { return e.style[t]; } } }, NT = function(e, t) { if (!ke) { var a = !Ae(t), r; return a ? r = t ? Yt(e, "overflow-y") : Yt(e, "overflow-x") : r = Yt(e, "overflow"), r ? r.match(/(scroll|auto)/) : null; } }, sp = function(e, t) { if (!ke) { for (var a = e; a; ) { if (~[window, document, document.documentElement].indexOf(a)) return window; if (NT(a, t)) return a; a = a.parentNode; } return a; } }, VT = function(e, t) { if (ke || !e || !t) return !1; var a = e.getBoundingClientRect(), r; return ~[window, document, document.documentElement].indexOf(t) || Ae(t) ? r = { top: 0, right: window.innerWidth, bottom: window.innerHeight, left: 0 } : r = t.getBoundingClientRect(), a.top < r.bottom && a.bottom > r.top && a.right > r.left && a.left < r.right; }, Jo = function() { var e = window, t = e.document.documentElement, a = e.document.body; return { scrollTop: t.scrollTop || a.scrollTop, scrollLeft: t.scrollLeft || a.scrollLeft, visibleHeight: t.clientHeight || a.clientHeight, visibleWidth: t.clientWidth || a.clientWidth }; }, FT = fu