@leaflink/stash 51.5.1 → 51.6.0
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/assets/icons/bank.svg +1 -0
- package/assets/icons/face-id.svg +1 -0
- package/assets/icons/face.svg +1 -0
- package/assets/icons/fingerprint.svg +3 -0
- package/assets/icons/reorder.svg +1 -0
- package/assets/illustrations/spot/check-circle.svg +1 -1
- package/assets/illustrations/spot/crm.svg +1 -1
- package/assets/illustrations/spot/delivery-completed.svg +1 -1
- package/assets/illustrations/spot/delivery.svg +1 -1
- package/assets/illustrations/spot/discover.svg +1 -1
- package/assets/illustrations/spot/money-transfer.svg +1 -1
- package/assets/illustrations/vignette/no-filters-result.svg +21 -0
- package/assets/spritesheet.svg +1 -1
- package/dist/Accordion.vue.d.ts +2 -2
- package/dist/AppNavigationItem.vue.d.ts +1 -1
- package/dist/Carousel.js +9 -9
- package/dist/Carousel.js.map +1 -1
- package/dist/DataViewToolbar.js +9 -9
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/EmptyState.js +1 -1
- package/dist/EmptyState.vue.d.ts +2 -1
- package/dist/HttpError.js +1 -1
- package/dist/Icon.js +15 -10
- package/dist/Icon.js.map +1 -1
- package/dist/Icon.vue.d.ts +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/Illustration.js +2 -2
- package/dist/Illustration.vue.d.ts +1 -0
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js → Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js} +2 -2
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js.map +1 -0
- package/dist/ListView.vue.d.ts +18 -18
- package/dist/ObfuscateText.js +5 -5
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/QuickAction.vue.d.ts +1 -1
- package/dist/SectionHeader.vue.d.ts +2 -2
- package/dist/SelectStatus.js +13 -13
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +1 -1
- package/dist/Switch.js +8 -8
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js +5 -5
- package/dist/Tab.js.map +1 -1
- package/dist/TableCell.js +1 -1
- package/dist/TableHeaderCell.js +1 -1
- package/dist/TableHeaderRow.js +1 -1
- package/dist/TableRow.js +1 -1
- package/dist/TextEditor.vue.d.ts +1 -1
- package/dist/Toast.js +189 -184
- package/dist/Toast.js.map +1 -1
- package/dist/Toast.vue.d.ts +4 -0
- package/dist/Toasts.js +13 -12
- package/dist/Toasts.js.map +1 -1
- package/dist/Tooltip.js +8 -8
- package/dist/Tooltip.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/useToasts.d.ts +6 -0
- package/dist/useToasts.js +28 -23
- package/dist/useToasts.js.map +1 -1
- package/package.json +5 -4
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js.map +0 -1
package/dist/Toast.js
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
import { defineComponent as qt,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { S as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
1
|
+
import { defineComponent as qt, useCssVars as Kt, useCssModule as Zt, computed as lt, createElementBlock as be, openBlock as De, normalizeClass as Jt, unref as le, createVNode as ct, isVNode as Qt } from "vue";
|
|
2
|
+
import ft from "@leaflink/snitch";
|
|
3
|
+
import en from "lodash-es/capitalize";
|
|
4
|
+
import { S as ut, b as tn } from "./statusLevels-D8EgtE_L.js";
|
|
5
|
+
import nn from "./CustomRender.js";
|
|
6
|
+
import on from "./Icon.js";
|
|
7
|
+
import { _ as rn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
9
9
|
const {
|
|
10
10
|
entries: St,
|
|
11
11
|
setPrototypeOf: mt,
|
|
12
|
-
isFrozen:
|
|
13
|
-
getPrototypeOf:
|
|
14
|
-
getOwnPropertyDescriptor:
|
|
12
|
+
isFrozen: an,
|
|
13
|
+
getPrototypeOf: sn,
|
|
14
|
+
getOwnPropertyDescriptor: ln
|
|
15
15
|
} = Object;
|
|
16
16
|
let {
|
|
17
17
|
freeze: S,
|
|
18
|
-
seal:
|
|
18
|
+
seal: L,
|
|
19
19
|
create: Rt
|
|
20
20
|
} = Object, {
|
|
21
21
|
apply: Pe,
|
|
22
22
|
construct: ve
|
|
23
23
|
} = typeof Reflect < "u" && Reflect;
|
|
24
|
-
S || (S = function(
|
|
25
|
-
return
|
|
24
|
+
S || (S = function(n) {
|
|
25
|
+
return n;
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
L || (L = function(n) {
|
|
28
|
+
return n;
|
|
29
29
|
});
|
|
30
|
-
Pe || (Pe = function(
|
|
31
|
-
return
|
|
30
|
+
Pe || (Pe = function(n, r, s) {
|
|
31
|
+
return n.apply(r, s);
|
|
32
32
|
});
|
|
33
|
-
ve || (ve = function(
|
|
34
|
-
return new
|
|
33
|
+
ve || (ve = function(n, r) {
|
|
34
|
+
return new n(...r);
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const ce = R(Array.prototype.forEach), cn = R(Array.prototype.lastIndexOf), pt = R(Array.prototype.pop), $ = R(Array.prototype.push), fn = R(Array.prototype.splice), ue = R(String.prototype.toLowerCase), Ie = R(String.prototype.toString), dt = R(String.prototype.match), j = R(String.prototype.replace), un = R(String.prototype.indexOf), mn = R(String.prototype.trim), b = R(Object.prototype.hasOwnProperty), A = R(RegExp.prototype.test), q = pn(TypeError);
|
|
37
37
|
function R(a) {
|
|
38
|
-
return function(
|
|
39
|
-
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0),
|
|
40
|
-
s[
|
|
41
|
-
return Pe(a,
|
|
38
|
+
return function(n) {
|
|
39
|
+
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
40
|
+
s[u - 1] = arguments[u];
|
|
41
|
+
return Pe(a, n, s);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function pn(a) {
|
|
45
45
|
return function() {
|
|
46
|
-
for (var
|
|
46
|
+
for (var n = arguments.length, r = new Array(n), s = 0; s < n; s++)
|
|
47
47
|
r[s] = arguments[s];
|
|
48
48
|
return ve(a, r);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
function l(a,
|
|
51
|
+
function l(a, n) {
|
|
52
52
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
|
|
53
53
|
mt && mt(a, null);
|
|
54
|
-
let s =
|
|
54
|
+
let s = n.length;
|
|
55
55
|
for (; s--; ) {
|
|
56
|
-
let
|
|
57
|
-
if (typeof
|
|
58
|
-
const
|
|
59
|
-
|
|
56
|
+
let u = n[s];
|
|
57
|
+
if (typeof u == "string") {
|
|
58
|
+
const N = r(u);
|
|
59
|
+
N !== u && (an(n) || (n[s] = N), u = N);
|
|
60
60
|
}
|
|
61
|
-
a[
|
|
61
|
+
a[u] = !0;
|
|
62
62
|
}
|
|
63
63
|
return a;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
for (let
|
|
67
|
-
b(a,
|
|
65
|
+
function dn(a) {
|
|
66
|
+
for (let n = 0; n < a.length; n++)
|
|
67
|
+
b(a, n) || (a[n] = null);
|
|
68
68
|
return a;
|
|
69
69
|
}
|
|
70
70
|
function x(a) {
|
|
71
|
-
const
|
|
71
|
+
const n = Rt(null);
|
|
72
72
|
for (const [r, s] of St(a))
|
|
73
|
-
b(a, r) && (Array.isArray(s) ?
|
|
74
|
-
return
|
|
73
|
+
b(a, r) && (Array.isArray(s) ? n[r] = dn(s) : s && typeof s == "object" && s.constructor === Object ? n[r] = x(s) : n[r] = s);
|
|
74
|
+
return n;
|
|
75
75
|
}
|
|
76
|
-
function K(a,
|
|
76
|
+
function K(a, n) {
|
|
77
77
|
for (; a !== null; ) {
|
|
78
|
-
const s =
|
|
78
|
+
const s = ln(a, n);
|
|
79
79
|
if (s) {
|
|
80
80
|
if (s.get)
|
|
81
81
|
return R(s.get);
|
|
82
82
|
if (typeof s.value == "function")
|
|
83
83
|
return R(s.value);
|
|
84
84
|
}
|
|
85
|
-
a =
|
|
85
|
+
a = sn(a);
|
|
86
86
|
}
|
|
87
87
|
function r() {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
90
|
return r;
|
|
91
91
|
}
|
|
92
|
-
const _t = S(["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", "section", "select", "shadow", "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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ce = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]),
|
|
92
|
+
const _t = S(["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", "section", "select", "shadow", "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"]), Me = S(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ce = S(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), _n = S(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), we = S(["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"]), Tn = S(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Tt = S(["#text"]), Et = S(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "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", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xe = S(["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", "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", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "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-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "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"]), gt = S(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "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"]), fe = S(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), En = L(/\{\{[\w\W]*|[\w\W]*\}\}/gm), gn = L(/<%[\w\W]*|[\w\W]*%>/gm), hn = L(/\$\{[\w\W]*/gm), An = L(/^data-[\-\w.\u00B7-\uFFFF]+$/), Sn = L(/^aria-[\-\w]+$/), yt = L(
|
|
93
93
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
94
94
|
// eslint-disable-line no-useless-escape
|
|
95
|
-
),
|
|
95
|
+
), Rn = L(/^(?:\w+script|data):/i), yn = L(
|
|
96
96
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
97
97
|
// eslint-disable-line no-control-regex
|
|
98
|
-
), Ot =
|
|
98
|
+
), Ot = L(/^html$/i), On = L(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
99
99
|
var ht = /* @__PURE__ */ Object.freeze({
|
|
100
100
|
__proto__: null,
|
|
101
|
-
ARIA_ATTR:
|
|
102
|
-
ATTR_WHITESPACE:
|
|
103
|
-
CUSTOM_ELEMENT:
|
|
104
|
-
DATA_ATTR:
|
|
101
|
+
ARIA_ATTR: Sn,
|
|
102
|
+
ATTR_WHITESPACE: yn,
|
|
103
|
+
CUSTOM_ELEMENT: On,
|
|
104
|
+
DATA_ATTR: An,
|
|
105
105
|
DOCTYPE_NAME: Ot,
|
|
106
|
-
ERB_EXPR:
|
|
106
|
+
ERB_EXPR: gn,
|
|
107
107
|
IS_ALLOWED_URI: yt,
|
|
108
|
-
IS_SCRIPT_OR_DATA:
|
|
109
|
-
MUSTACHE_EXPR:
|
|
110
|
-
TMPLIT_EXPR:
|
|
108
|
+
IS_SCRIPT_OR_DATA: Rn,
|
|
109
|
+
MUSTACHE_EXPR: En,
|
|
110
|
+
TMPLIT_EXPR: hn
|
|
111
111
|
});
|
|
112
112
|
const Z = {
|
|
113
113
|
element: 1,
|
|
@@ -116,26 +116,26 @@ const Z = {
|
|
|
116
116
|
progressingInstruction: 7,
|
|
117
117
|
comment: 8,
|
|
118
118
|
document: 9
|
|
119
|
-
},
|
|
119
|
+
}, Ln = function() {
|
|
120
120
|
return typeof window > "u" ? null : window;
|
|
121
|
-
},
|
|
122
|
-
if (typeof
|
|
121
|
+
}, Nn = function(n, r) {
|
|
122
|
+
if (typeof n != "object" || typeof n.createPolicy != "function")
|
|
123
123
|
return null;
|
|
124
124
|
let s = null;
|
|
125
|
-
const
|
|
126
|
-
r && r.hasAttribute(
|
|
127
|
-
const
|
|
125
|
+
const u = "data-tt-policy-suffix";
|
|
126
|
+
r && r.hasAttribute(u) && (s = r.getAttribute(u));
|
|
127
|
+
const N = "dompurify" + (s ? "#" + s : "");
|
|
128
128
|
try {
|
|
129
|
-
return
|
|
130
|
-
createHTML(
|
|
131
|
-
return
|
|
129
|
+
return n.createPolicy(N, {
|
|
130
|
+
createHTML(O) {
|
|
131
|
+
return O;
|
|
132
132
|
},
|
|
133
|
-
createScriptURL(
|
|
134
|
-
return
|
|
133
|
+
createScriptURL(O) {
|
|
134
|
+
return O;
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
} catch {
|
|
138
|
-
return console.warn("TrustedTypes policy " +
|
|
138
|
+
return console.warn("TrustedTypes policy " + N + " could not be created."), null;
|
|
139
139
|
}
|
|
140
140
|
}, At = function() {
|
|
141
141
|
return {
|
|
@@ -151,16 +151,16 @@ const Z = {
|
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
153
|
function Lt() {
|
|
154
|
-
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
154
|
+
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ln();
|
|
155
|
+
const n = (i) => Lt(i);
|
|
156
|
+
if (n.version = "3.2.4", n.removed = [], !a || !a.document || a.document.nodeType !== Z.document || !a.Element)
|
|
157
|
+
return n.isSupported = !1, n;
|
|
158
158
|
let {
|
|
159
159
|
document: r
|
|
160
160
|
} = a;
|
|
161
|
-
const s = r,
|
|
162
|
-
DocumentFragment:
|
|
163
|
-
HTMLTemplateElement:
|
|
161
|
+
const s = r, u = s.currentScript, {
|
|
162
|
+
DocumentFragment: N,
|
|
163
|
+
HTMLTemplateElement: O,
|
|
164
164
|
Node: J,
|
|
165
165
|
Element: ke,
|
|
166
166
|
NodeFilter: z,
|
|
@@ -169,13 +169,13 @@ function Lt() {
|
|
|
169
169
|
DOMParser: Dt,
|
|
170
170
|
trustedTypes: Q
|
|
171
171
|
} = a, G = ke.prototype, It = K(G, "cloneNode"), Mt = K(G, "remove"), Ct = K(G, "nextSibling"), wt = K(G, "childNodes"), ee = K(G, "parentNode");
|
|
172
|
-
if (typeof
|
|
172
|
+
if (typeof O == "function") {
|
|
173
173
|
const i = r.createElement("template");
|
|
174
174
|
i.content && i.content.ownerDocument && (r = i.content.ownerDocument);
|
|
175
175
|
}
|
|
176
176
|
let E, W = "";
|
|
177
177
|
const {
|
|
178
|
-
implementation:
|
|
178
|
+
implementation: me,
|
|
179
179
|
createNodeIterator: xt,
|
|
180
180
|
createDocumentFragment: Pt,
|
|
181
181
|
getElementsByTagName: vt
|
|
@@ -183,11 +183,11 @@ function Lt() {
|
|
|
183
183
|
importNode: kt
|
|
184
184
|
} = s;
|
|
185
185
|
let g = At();
|
|
186
|
-
|
|
186
|
+
n.isSupported = typeof St == "function" && typeof ee == "function" && me && me.createHTMLDocument !== void 0;
|
|
187
187
|
const {
|
|
188
|
-
MUSTACHE_EXPR:
|
|
189
|
-
ERB_EXPR:
|
|
190
|
-
TMPLIT_EXPR:
|
|
188
|
+
MUSTACHE_EXPR: pe,
|
|
189
|
+
ERB_EXPR: de,
|
|
190
|
+
TMPLIT_EXPR: _e,
|
|
191
191
|
DATA_ATTR: Ut,
|
|
192
192
|
ARIA_ATTR: Ft,
|
|
193
193
|
IS_SCRIPT_OR_DATA: Ht,
|
|
@@ -199,8 +199,8 @@ function Lt() {
|
|
|
199
199
|
} = ht, m = null;
|
|
200
200
|
const He = l({}, [..._t, ...Me, ...Ce, ...we, ...Tt]);
|
|
201
201
|
let d = null;
|
|
202
|
-
const ze = l({}, [...Et, ...xe, ...gt, ...
|
|
203
|
-
let
|
|
202
|
+
const ze = l({}, [...Et, ...xe, ...gt, ...fe]);
|
|
203
|
+
let f = Object.seal(Rt(null, {
|
|
204
204
|
tagNameCheck: {
|
|
205
205
|
writable: !0,
|
|
206
206
|
configurable: !1,
|
|
@@ -219,15 +219,15 @@ function Lt() {
|
|
|
219
219
|
enumerable: !0,
|
|
220
220
|
value: !1
|
|
221
221
|
}
|
|
222
|
-
})), B = null,
|
|
222
|
+
})), B = null, Te = null, Ge = !0, Ee = !0, We = !1, Be = !0, P = !1, ge = !0, w = !1, he = !1, Ae = !1, v = !1, te = !1, ne = !1, Ye = !0, Xe = !1;
|
|
223
223
|
const Gt = "user-content-";
|
|
224
|
-
let
|
|
224
|
+
let Se = !0, Y = !1, k = {}, U = null;
|
|
225
225
|
const Ve = l({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
226
226
|
let $e = null;
|
|
227
227
|
const je = l({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
228
|
-
let
|
|
228
|
+
let Re = null;
|
|
229
229
|
const qe = l({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), oe = "http://www.w3.org/1998/Math/MathML", ie = "http://www.w3.org/2000/svg", M = "http://www.w3.org/1999/xhtml";
|
|
230
|
-
let F = M,
|
|
230
|
+
let F = M, ye = !1, Oe = null;
|
|
231
231
|
const Wt = l({}, [oe, ie, M], Ie);
|
|
232
232
|
let re = l({}, ["mi", "mo", "mn", "ms", "mtext"]), ae = l({}, ["annotation-xml"]);
|
|
233
233
|
const Bt = l({}, ["title", "style", "font", "a", "script"]);
|
|
@@ -236,30 +236,30 @@ function Lt() {
|
|
|
236
236
|
let p = null, H = null;
|
|
237
237
|
const Vt = r.createElement("form"), Ke = function(e) {
|
|
238
238
|
return e instanceof RegExp || e instanceof Function;
|
|
239
|
-
},
|
|
239
|
+
}, Le = function() {
|
|
240
240
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
241
241
|
if (!(H && H === e)) {
|
|
242
242
|
if ((!e || typeof e != "object") && (e = {}), e = x(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
243
|
-
Yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Xt : e.PARSER_MEDIA_TYPE, p = X === "application/xhtml+xml" ? Ie : ue, m = b(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, p) : He, d = b(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, p) : ze,
|
|
243
|
+
Yt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Xt : e.PARSER_MEDIA_TYPE, p = X === "application/xhtml+xml" ? Ie : ue, m = b(e, "ALLOWED_TAGS") ? l({}, e.ALLOWED_TAGS, p) : He, d = b(e, "ALLOWED_ATTR") ? l({}, e.ALLOWED_ATTR, p) : ze, Oe = b(e, "ALLOWED_NAMESPACES") ? l({}, e.ALLOWED_NAMESPACES, Ie) : Wt, Re = b(e, "ADD_URI_SAFE_ATTR") ? l(x(qe), e.ADD_URI_SAFE_ATTR, p) : qe, $e = b(e, "ADD_DATA_URI_TAGS") ? l(x(je), e.ADD_DATA_URI_TAGS, p) : je, U = b(e, "FORBID_CONTENTS") ? l({}, e.FORBID_CONTENTS, p) : Ve, B = b(e, "FORBID_TAGS") ? l({}, e.FORBID_TAGS, p) : {}, Te = b(e, "FORBID_ATTR") ? l({}, e.FORBID_ATTR, p) : {}, k = b(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Ge = e.ALLOW_ARIA_ATTR !== !1, Ee = e.ALLOW_DATA_ATTR !== !1, We = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Be = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, ge = e.SAFE_FOR_XML !== !1, w = e.WHOLE_DOCUMENT || !1, v = e.RETURN_DOM || !1, te = e.RETURN_DOM_FRAGMENT || !1, ne = e.RETURN_TRUSTED_TYPE || !1, Ae = e.FORCE_BODY || !1, Ye = e.SANITIZE_DOM !== !1, Xe = e.SANITIZE_NAMED_PROPS || !1, Se = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, Fe = e.ALLOWED_URI_REGEXP || yt, F = e.NAMESPACE || M, re = e.MATHML_TEXT_INTEGRATION_POINTS || re, ae = e.HTML_INTEGRATION_POINTS || ae, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (Ee = !1), te && (v = !0), k && (m = l({}, Tt), d = [], k.html === !0 && (l(m, _t), l(d, Et)), k.svg === !0 && (l(m, Me), l(d, xe), l(d, fe)), k.svgFilters === !0 && (l(m, Ce), l(d, xe), l(d, fe)), k.mathMl === !0 && (l(m, we), l(d, gt), l(d, fe))), e.ADD_TAGS && (m === He && (m = x(m)), l(m, e.ADD_TAGS, p)), e.ADD_ATTR && (d === ze && (d = x(d)), l(d, e.ADD_ATTR, p)), e.ADD_URI_SAFE_ATTR && l(Re, e.ADD_URI_SAFE_ATTR, p), e.FORBID_CONTENTS && (U === Ve && (U = x(U)), l(U, e.FORBID_CONTENTS, p)), Se && (m["#text"] = !0), w && l(m, ["html", "head", "body"]), m.table && (l(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
244
244
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
245
245
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
246
246
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
247
247
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
248
248
|
E = e.TRUSTED_TYPES_POLICY, W = E.createHTML("");
|
|
249
249
|
} else
|
|
250
|
-
E === void 0 && (E =
|
|
250
|
+
E === void 0 && (E = Nn(Q, u)), E !== null && typeof W == "string" && (W = E.createHTML(""));
|
|
251
251
|
S && S(e), H = e;
|
|
252
252
|
}
|
|
253
|
-
}, Ze = l({}, [...Me, ...Ce, ...
|
|
253
|
+
}, Ze = l({}, [...Me, ...Ce, ..._n]), Je = l({}, [...we, ...Tn]), $t = function(e) {
|
|
254
254
|
let t = ee(e);
|
|
255
255
|
(!t || !t.tagName) && (t = {
|
|
256
256
|
namespaceURI: F,
|
|
257
257
|
tagName: "template"
|
|
258
258
|
});
|
|
259
|
-
const
|
|
260
|
-
return
|
|
259
|
+
const o = ue(e.tagName), c = ue(t.tagName);
|
|
260
|
+
return Oe[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === M ? o === "svg" : t.namespaceURI === oe ? o === "svg" && (c === "annotation-xml" || re[c]) : !!Ze[o] : e.namespaceURI === oe ? t.namespaceURI === M ? o === "math" : t.namespaceURI === ie ? o === "math" && ae[c] : !!Je[o] : e.namespaceURI === M ? t.namespaceURI === ie && !ae[c] || t.namespaceURI === oe && !re[c] ? !1 : !Je[o] && (Bt[o] || !Ze[o]) : !!(X === "application/xhtml+xml" && Oe[e.namespaceURI]) : !1;
|
|
261
261
|
}, D = function(e) {
|
|
262
|
-
$(
|
|
262
|
+
$(n.removed, {
|
|
263
263
|
element: e
|
|
264
264
|
});
|
|
265
265
|
try {
|
|
@@ -269,12 +269,12 @@ function Lt() {
|
|
|
269
269
|
}
|
|
270
270
|
}, se = function(e, t) {
|
|
271
271
|
try {
|
|
272
|
-
$(
|
|
272
|
+
$(n.removed, {
|
|
273
273
|
attribute: t.getAttributeNode(e),
|
|
274
274
|
from: t
|
|
275
275
|
});
|
|
276
276
|
} catch {
|
|
277
|
-
$(
|
|
277
|
+
$(n.removed, {
|
|
278
278
|
attribute: null,
|
|
279
279
|
from: t
|
|
280
280
|
});
|
|
@@ -291,12 +291,12 @@ function Lt() {
|
|
|
291
291
|
} catch {
|
|
292
292
|
}
|
|
293
293
|
}, Qe = function(e) {
|
|
294
|
-
let t = null,
|
|
295
|
-
if (
|
|
294
|
+
let t = null, o = null;
|
|
295
|
+
if (Ae)
|
|
296
296
|
e = "<remove></remove>" + e;
|
|
297
297
|
else {
|
|
298
298
|
const _ = dt(e, /^[\r\n\t ]+/);
|
|
299
|
-
|
|
299
|
+
o = _ && _[0];
|
|
300
300
|
}
|
|
301
301
|
X === "application/xhtml+xml" && F === M && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
302
302
|
const c = E ? E.createHTML(e) : e;
|
|
@@ -306,14 +306,14 @@ function Lt() {
|
|
|
306
306
|
} catch {
|
|
307
307
|
}
|
|
308
308
|
if (!t || !t.documentElement) {
|
|
309
|
-
t =
|
|
309
|
+
t = me.createDocument(F, "template", null);
|
|
310
310
|
try {
|
|
311
|
-
t.documentElement.innerHTML =
|
|
311
|
+
t.documentElement.innerHTML = ye ? W : c;
|
|
312
312
|
} catch {
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
const T = t.body || t.documentElement;
|
|
316
|
-
return e &&
|
|
316
|
+
return e && o && T.insertBefore(r.createTextNode(o), T.childNodes[0] || null), F === M ? vt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
|
|
317
317
|
}, et = function(e) {
|
|
318
318
|
return xt.call(
|
|
319
319
|
e.ownerDocument || e,
|
|
@@ -322,30 +322,30 @@ function Lt() {
|
|
|
322
322
|
z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
|
|
323
323
|
null
|
|
324
324
|
);
|
|
325
|
-
},
|
|
325
|
+
}, Ne = function(e) {
|
|
326
326
|
return e instanceof bt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Nt) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
327
327
|
}, tt = function(e) {
|
|
328
328
|
return typeof J == "function" && e instanceof J;
|
|
329
329
|
};
|
|
330
330
|
function C(i, e, t) {
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
ce(i, (o) => {
|
|
332
|
+
o.call(n, e, t, H);
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
const nt = function(e) {
|
|
336
336
|
let t = null;
|
|
337
|
-
if (C(g.beforeSanitizeElements, e, null),
|
|
337
|
+
if (C(g.beforeSanitizeElements, e, null), Ne(e))
|
|
338
338
|
return D(e), !0;
|
|
339
|
-
const
|
|
339
|
+
const o = p(e.nodeName);
|
|
340
340
|
if (C(g.uponSanitizeElement, e, {
|
|
341
|
-
tagName:
|
|
341
|
+
tagName: o,
|
|
342
342
|
allowedTags: m
|
|
343
|
-
}), e.hasChildNodes() && !tt(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction ||
|
|
343
|
+
}), e.hasChildNodes() && !tt(e.firstElementChild) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || ge && e.nodeType === Z.comment && A(/<[/\w]/g, e.data))
|
|
344
344
|
return D(e), !0;
|
|
345
|
-
if (!m[
|
|
346
|
-
if (!B[
|
|
345
|
+
if (!m[o] || B[o]) {
|
|
346
|
+
if (!B[o] && it(o) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, o) || f.tagNameCheck instanceof Function && f.tagNameCheck(o)))
|
|
347
347
|
return !1;
|
|
348
|
-
if (
|
|
348
|
+
if (Se && !U[o]) {
|
|
349
349
|
const c = ee(e) || e.parentNode, T = wt(e) || e.childNodes;
|
|
350
350
|
if (T && c) {
|
|
351
351
|
const _ = T.length;
|
|
@@ -357,30 +357,30 @@ function Lt() {
|
|
|
357
357
|
}
|
|
358
358
|
return D(e), !0;
|
|
359
359
|
}
|
|
360
|
-
return e instanceof ke && !$t(e) || (
|
|
360
|
+
return e instanceof ke && !$t(e) || (o === "noscript" || o === "noembed" || o === "noframes") && A(/<\/no(script|embed|frames)/i, e.innerHTML) ? (D(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, ce([pe, de, _e], (c) => {
|
|
361
361
|
t = j(t, c, " ");
|
|
362
|
-
}), e.textContent !== t && ($(
|
|
362
|
+
}), e.textContent !== t && ($(n.removed, {
|
|
363
363
|
element: e.cloneNode()
|
|
364
364
|
}), e.textContent = t)), C(g.afterSanitizeElements, e, null), !1);
|
|
365
|
-
}, ot = function(e, t,
|
|
366
|
-
if (Ye && (t === "id" || t === "name") && (
|
|
365
|
+
}, ot = function(e, t, o) {
|
|
366
|
+
if (Ye && (t === "id" || t === "name") && (o in r || o in Vt))
|
|
367
367
|
return !1;
|
|
368
|
-
if (!(
|
|
368
|
+
if (!(Ee && !Te[t] && A(Ut, t))) {
|
|
369
369
|
if (!(Ge && A(Ft, t))) {
|
|
370
|
-
if (!d[t] ||
|
|
370
|
+
if (!d[t] || Te[t]) {
|
|
371
371
|
if (
|
|
372
372
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
373
373
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
374
374
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
375
|
-
!(it(e) && (
|
|
375
|
+
!(it(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
376
376
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
377
|
-
t === "is" &&
|
|
377
|
+
t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, o) || f.tagNameCheck instanceof Function && f.tagNameCheck(o)))
|
|
378
378
|
) return !1;
|
|
379
|
-
} else if (!
|
|
380
|
-
if (!A(Fe, j(
|
|
381
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && un(
|
|
382
|
-
if (!(We && !A(Ht, j(
|
|
383
|
-
if (
|
|
379
|
+
} else if (!Re[t]) {
|
|
380
|
+
if (!A(Fe, j(o, Ue, ""))) {
|
|
381
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && un(o, "data:") === 0 && $e[e])) {
|
|
382
|
+
if (!(We && !A(Ht, j(o, Ue, "")))) {
|
|
383
|
+
if (o)
|
|
384
384
|
return !1;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
@@ -396,9 +396,9 @@ function Lt() {
|
|
|
396
396
|
const {
|
|
397
397
|
attributes: t
|
|
398
398
|
} = e;
|
|
399
|
-
if (!t ||
|
|
399
|
+
if (!t || Ne(e))
|
|
400
400
|
return;
|
|
401
|
-
const
|
|
401
|
+
const o = {
|
|
402
402
|
attrName: "",
|
|
403
403
|
attrValue: "",
|
|
404
404
|
keepAttr: !0,
|
|
@@ -412,18 +412,18 @@ function Lt() {
|
|
|
412
412
|
namespaceURI: y,
|
|
413
413
|
value: I
|
|
414
414
|
} = T, V = p(_);
|
|
415
|
-
let h = _ === "value" ? I :
|
|
416
|
-
if (
|
|
415
|
+
let h = _ === "value" ? I : mn(I);
|
|
416
|
+
if (o.attrName = V, o.attrValue = h, o.keepAttr = !0, o.forceKeepAttr = void 0, C(g.uponSanitizeAttribute, e, o), h = o.attrValue, Xe && (V === "id" || V === "name") && (se(_, e), h = Gt + h), ge && A(/((--!?|])>)|<\/(style|title)/i, h)) {
|
|
417
417
|
se(_, e);
|
|
418
418
|
continue;
|
|
419
419
|
}
|
|
420
|
-
if (
|
|
420
|
+
if (o.forceKeepAttr || (se(_, e), !o.keepAttr))
|
|
421
421
|
continue;
|
|
422
422
|
if (!Be && A(/\/>/i, h)) {
|
|
423
423
|
se(_, e);
|
|
424
424
|
continue;
|
|
425
425
|
}
|
|
426
|
-
P &&
|
|
426
|
+
P && ce([pe, de, _e], (st) => {
|
|
427
427
|
h = j(h, st, " ");
|
|
428
428
|
});
|
|
429
429
|
const at = p(e.nodeName);
|
|
@@ -440,7 +440,7 @@ function Lt() {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
try {
|
|
443
|
-
y ? e.setAttributeNS(y, _, h) : e.setAttribute(_, h),
|
|
443
|
+
y ? e.setAttributeNS(y, _, h) : e.setAttribute(_, h), Ne(e) ? D(e) : pt(n.removed);
|
|
444
444
|
} catch {
|
|
445
445
|
}
|
|
446
446
|
}
|
|
@@ -448,29 +448,29 @@ function Lt() {
|
|
|
448
448
|
C(g.afterSanitizeAttributes, e, null);
|
|
449
449
|
}, jt = function i(e) {
|
|
450
450
|
let t = null;
|
|
451
|
-
const
|
|
452
|
-
for (C(g.beforeSanitizeShadowDOM, e, null); t =
|
|
453
|
-
C(g.uponSanitizeShadowNode, t, null), nt(t), rt(t), t.content instanceof
|
|
451
|
+
const o = et(e);
|
|
452
|
+
for (C(g.beforeSanitizeShadowDOM, e, null); t = o.nextNode(); )
|
|
453
|
+
C(g.uponSanitizeShadowNode, t, null), nt(t), rt(t), t.content instanceof N && i(t.content);
|
|
454
454
|
C(g.afterSanitizeShadowDOM, e, null);
|
|
455
455
|
};
|
|
456
|
-
return
|
|
457
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null,
|
|
458
|
-
if (
|
|
456
|
+
return n.sanitize = function(i) {
|
|
457
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, o = null, c = null, T = null;
|
|
458
|
+
if (ye = !i, ye && (i = "<!-->"), typeof i != "string" && !tt(i))
|
|
459
459
|
if (typeof i.toString == "function") {
|
|
460
460
|
if (i = i.toString(), typeof i != "string")
|
|
461
461
|
throw q("dirty is not a string, aborting");
|
|
462
462
|
} else
|
|
463
463
|
throw q("toString is not a function");
|
|
464
|
-
if (!
|
|
464
|
+
if (!n.isSupported)
|
|
465
465
|
return i;
|
|
466
|
-
if (
|
|
466
|
+
if (he || Le(e), n.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
467
467
|
if (i.nodeName) {
|
|
468
468
|
const I = p(i.nodeName);
|
|
469
469
|
if (!m[I] || B[I])
|
|
470
470
|
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
471
471
|
}
|
|
472
472
|
} else if (i instanceof J)
|
|
473
|
-
t = Qe("<!---->"),
|
|
473
|
+
t = Qe("<!---->"), o = t.ownerDocument.importNode(i, !0), o.nodeType === Z.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? t = o : t.appendChild(o);
|
|
474
474
|
else {
|
|
475
475
|
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
476
476
|
i.indexOf("<") === -1)
|
|
@@ -478,10 +478,10 @@ function Lt() {
|
|
|
478
478
|
if (t = Qe(i), !t)
|
|
479
479
|
return v ? null : ne ? W : "";
|
|
480
480
|
}
|
|
481
|
-
t &&
|
|
481
|
+
t && Ae && D(t.firstChild);
|
|
482
482
|
const _ = et(Y ? i : t);
|
|
483
483
|
for (; c = _.nextNode(); )
|
|
484
|
-
nt(c), rt(c), c.content instanceof
|
|
484
|
+
nt(c), rt(c), c.content instanceof N && jt(c.content);
|
|
485
485
|
if (Y)
|
|
486
486
|
return i;
|
|
487
487
|
if (v) {
|
|
@@ -494,74 +494,79 @@ function Lt() {
|
|
|
494
494
|
}
|
|
495
495
|
let y = w ? t.outerHTML : t.innerHTML;
|
|
496
496
|
return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(Ot, t.ownerDocument.doctype.name) && (y = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
497
|
-
` + y), P &&
|
|
497
|
+
` + y), P && ce([pe, de, _e], (I) => {
|
|
498
498
|
y = j(y, I, " ");
|
|
499
499
|
}), E && ne ? E.createHTML(y) : y;
|
|
500
|
-
},
|
|
500
|
+
}, n.setConfig = function() {
|
|
501
501
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
502
|
-
|
|
503
|
-
},
|
|
504
|
-
H = null,
|
|
505
|
-
},
|
|
506
|
-
H ||
|
|
507
|
-
const
|
|
508
|
-
return ot(
|
|
509
|
-
},
|
|
502
|
+
Le(i), he = !0;
|
|
503
|
+
}, n.clearConfig = function() {
|
|
504
|
+
H = null, he = !1;
|
|
505
|
+
}, n.isValidAttribute = function(i, e, t) {
|
|
506
|
+
H || Le({});
|
|
507
|
+
const o = p(i), c = p(e);
|
|
508
|
+
return ot(o, c, t);
|
|
509
|
+
}, n.addHook = function(i, e) {
|
|
510
510
|
typeof e == "function" && $(g[i], e);
|
|
511
|
-
},
|
|
511
|
+
}, n.removeHook = function(i, e) {
|
|
512
512
|
if (e !== void 0) {
|
|
513
|
-
const t =
|
|
514
|
-
return t === -1 ? void 0 :
|
|
513
|
+
const t = cn(g[i], e);
|
|
514
|
+
return t === -1 ? void 0 : fn(g[i], t, 1)[0];
|
|
515
515
|
}
|
|
516
516
|
return pt(g[i]);
|
|
517
|
-
},
|
|
517
|
+
}, n.removeHooks = function(i) {
|
|
518
518
|
g[i] = [];
|
|
519
|
-
},
|
|
519
|
+
}, n.removeAllHooks = function() {
|
|
520
520
|
g = At();
|
|
521
|
-
},
|
|
521
|
+
}, n;
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
const
|
|
523
|
+
var bn = Lt();
|
|
524
|
+
const Dn = ["role"], In = ["innerHTML"], Mn = { key: 1 }, Cn = /* @__PURE__ */ qt({
|
|
525
525
|
__name: "Toast",
|
|
526
526
|
props: {
|
|
527
527
|
text: {},
|
|
528
|
-
status: { default: "info" }
|
|
528
|
+
status: { default: "info" },
|
|
529
|
+
offsetTop: {}
|
|
529
530
|
},
|
|
530
531
|
setup(a) {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
)
|
|
532
|
+
Kt((O) => ({
|
|
533
|
+
d92958b2: r.offsetTop
|
|
534
|
+
}));
|
|
535
|
+
const n = Zt(), r = a, s = lt(
|
|
536
|
+
() => r.status ? ut[en(r.status)] : ut.Info
|
|
537
|
+
), u = lt(() => r.status === tn.Error ? "alert" : "status"), N = () => {
|
|
534
538
|
if (typeof r.text != "function")
|
|
535
|
-
return
|
|
539
|
+
return ft.error(
|
|
536
540
|
`Toast: ${r.text} is not a valid text prop value. Must be either a render function or a string.`
|
|
537
541
|
), null;
|
|
538
|
-
const
|
|
539
|
-
return
|
|
542
|
+
const O = r.text();
|
|
543
|
+
return Qt(O) ? O : (ft.error("Toast: The text prop must return a VNode."), null);
|
|
540
544
|
};
|
|
541
|
-
return (
|
|
542
|
-
role:
|
|
543
|
-
class:
|
|
545
|
+
return (O, J) => (De(), be("li", {
|
|
546
|
+
role: u.value,
|
|
547
|
+
class: Jt([[le(n).root, le(n)[`status--${r.status}`], { [le(n)["custom-offset-top"]]: r.offsetTop }], "stash-toast"]),
|
|
544
548
|
"data-test": "stash-toast"
|
|
545
549
|
}, [
|
|
546
|
-
ct(
|
|
547
|
-
typeof r.text == "string" ? (
|
|
550
|
+
ct(on, { name: s.value }, null, 8, ["name"]),
|
|
551
|
+
typeof r.text == "string" ? (De(), be("div", {
|
|
548
552
|
key: 0,
|
|
549
|
-
innerHTML:
|
|
550
|
-
}, null, 8,
|
|
551
|
-
ct(
|
|
553
|
+
innerHTML: le(bn).sanitize(O.text)
|
|
554
|
+
}, null, 8, In)) : (De(), be("div", Mn, [
|
|
555
|
+
ct(nn, { render: N })
|
|
552
556
|
]))
|
|
553
|
-
], 10,
|
|
557
|
+
], 10, Dn));
|
|
554
558
|
}
|
|
555
|
-
}),
|
|
556
|
-
root:
|
|
557
|
-
"
|
|
558
|
-
"status--
|
|
559
|
-
"status--
|
|
560
|
-
"status--
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
559
|
+
}), wn = "_root_17nf0_2", xn = {
|
|
560
|
+
root: wn,
|
|
561
|
+
"custom-offset-top": "_custom-offset-top_17nf0_16",
|
|
562
|
+
"status--success": "_status--success_17nf0_31",
|
|
563
|
+
"status--error": "_status--error_17nf0_40",
|
|
564
|
+
"status--info": "_status--info_17nf0_49",
|
|
565
|
+
"status--warning": "_status--warning_17nf0_58"
|
|
566
|
+
}, Pn = {
|
|
567
|
+
$style: xn
|
|
568
|
+
}, Wn = /* @__PURE__ */ rn(Cn, [["__cssModules", Pn]]);
|
|
564
569
|
export {
|
|
565
|
-
|
|
570
|
+
Wn as default
|
|
566
571
|
};
|
|
567
572
|
//# sourceMappingURL=Toast.js.map
|