@leaflink/stash 48.10.0 → 48.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/ActionsDropdown.js +1 -1
- package/dist/AddressSelect.js +1 -1
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js +1 -1
- package/dist/AppTopbar.js +1 -1
- package/dist/Avatar.vue.d.ts +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Button.vue.d.ts +3 -1
- package/dist/CardMedia.js +1 -1
- package/dist/Carousel.js.map +1 -1
- package/dist/ChevronToggle.js +1 -1
- package/dist/ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +1 -1
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/CurrencyInput.js +39 -34
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DataView.js.map +1 -1
- package/dist/DataViewFilters.js +1 -1
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js +1 -1
- package/dist/DataViewToolbar.js +1 -1
- package/dist/DatePicker.js +3355 -3368
- package/dist/DatePicker.js.map +1 -1
- package/dist/Dialog.js +75 -69
- package/dist/Dialog.js.map +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js +2 -2
- package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +1 -1
- package/dist/FileUpload.js +1 -1
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js +1 -1
- package/dist/FilterDrawerItem.js +1 -1
- package/dist/FilterDropdown.js +1 -1
- package/dist/FilterSelect.js +1 -1
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +1 -1
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js +2 -2
- package/dist/Icon.js +1 -1
- package/dist/Icon.js.map +1 -1
- package/dist/IconLabel.js +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/Illustration.js +3 -3
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js} +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js.map → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map} +1 -1
- package/dist/Image.js.map +1 -1
- package/dist/InlineEdit.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js +1 -1
- package/dist/LicenseChip.js +1 -1
- package/dist/ListView.js +2 -2
- package/dist/ListView.js.map +1 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +1 -1
- package/dist/Metric.vue.d.ts +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Modals.js +6 -6
- package/dist/Modals.js.map +1 -1
- package/dist/ObfuscateText.js +1 -1
- package/dist/PageNavigation.js +1 -1
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js +1 -1
- package/dist/PlaidLink.js.map +1 -1
- package/dist/QuickAction.js +1 -1
- package/dist/RadioNew.js.map +1 -1
- package/dist/RangeInput.js +1 -1
- package/dist/SearchBar.js +1 -1
- package/dist/Select.js +709 -653
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +1 -1
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Step.js +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +1 -1
- package/dist/Table.js +2 -2
- package/dist/TableCell.js +2 -2
- package/dist/TableHeaderCell.js +2 -2
- package/dist/TableHeaderRow.js +2 -2
- package/dist/TableRow.js +2 -2
- package/dist/TableRow.vue.d.ts +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextEditor.js +991 -991
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/Toast.js +274 -252
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js +1 -1
- package/dist/ToastsPlugin.js +1 -1
- package/dist/components.css +2 -2
- package/dist/index-5e5945a9.js.map +1 -1
- package/dist/{index-79ce320f.js → index-9e1095ef.js} +6 -4
- package/dist/index-9e1095ef.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isDefined-2ce6cde4.js.map +1 -1
- package/dist/observe.js.map +1 -1
- package/dist/searchFuzzy-74a7de1c.js.map +1 -1
- package/dist/sticky.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/toTimeZone-e6e9ab75.js.map +1 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/useGoogleMaps.js +109 -119
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/useModals.d.ts +6 -363
- package/dist/useModals.js.map +1 -1
- package/dist/useScriptTag.js.map +1 -1
- package/dist/useStepper.js.map +1 -1
- package/dist/useValidation.js.map +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/dist/utils/createQueryString.js.map +1 -1
- package/dist/utils/formatDateTime.js.map +1 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/storage.js.map +1 -1
- package/dist/viewable.js.map +1 -1
- package/package.json +30 -46
- package/dist/index-79ce320f.js.map +0 -1
package/dist/Toast.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { S as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
1
|
+
import { defineComponent as $t, useCssModule as qt, computed as lt, openBlock as ye, createElementBlock as Le, normalizeClass as Kt, unref as Oe, createVNode as ct, isVNode as Zt } from "vue";
|
|
2
|
+
import ut from "@leaflink/snitch";
|
|
3
|
+
import Jt from "lodash-es/capitalize";
|
|
4
|
+
import { S as ft, b as Qt } from "./statusLevels-a8b041f4.js";
|
|
5
|
+
import en from "./CustomRender.js";
|
|
6
|
+
import tn from "./Icon.js";
|
|
7
|
+
import { _ as nn } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
8
|
import "lodash-es/uniqueId";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-9e1095ef.js";
|
|
10
10
|
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
11
|
-
/*! @license DOMPurify 3.1.
|
|
11
|
+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
12
12
|
const {
|
|
13
|
-
entries:
|
|
14
|
-
setPrototypeOf:
|
|
15
|
-
isFrozen:
|
|
16
|
-
getPrototypeOf:
|
|
17
|
-
getOwnPropertyDescriptor:
|
|
13
|
+
entries: At,
|
|
14
|
+
setPrototypeOf: mt,
|
|
15
|
+
isFrozen: on,
|
|
16
|
+
getPrototypeOf: rn,
|
|
17
|
+
getOwnPropertyDescriptor: an
|
|
18
18
|
} = Object;
|
|
19
19
|
let {
|
|
20
|
-
freeze:
|
|
20
|
+
freeze: A,
|
|
21
21
|
seal: y,
|
|
22
|
-
create:
|
|
22
|
+
create: St
|
|
23
23
|
} = Object, {
|
|
24
24
|
apply: Me,
|
|
25
|
-
construct:
|
|
25
|
+
construct: we
|
|
26
26
|
} = typeof Reflect < "u" && Reflect;
|
|
27
|
-
|
|
27
|
+
A || (A = function(n) {
|
|
28
28
|
return n;
|
|
29
29
|
});
|
|
30
30
|
y || (y = function(n) {
|
|
@@ -33,10 +33,10 @@ y || (y = function(n) {
|
|
|
33
33
|
Me || (Me = function(n, l, r) {
|
|
34
34
|
return n.apply(l, r);
|
|
35
35
|
});
|
|
36
|
-
|
|
36
|
+
we || (we = function(n, l) {
|
|
37
37
|
return new n(...l);
|
|
38
38
|
});
|
|
39
|
-
const
|
|
39
|
+
const ae = R(Array.prototype.forEach), pt = R(Array.prototype.pop), j = R(Array.prototype.push), le = R(String.prototype.toLowerCase), Ne = R(String.prototype.toString), dt = R(String.prototype.match), $ = R(String.prototype.replace), sn = R(String.prototype.indexOf), ln = R(String.prototype.trim), N = R(Object.prototype.hasOwnProperty), h = R(RegExp.prototype.test), q = cn(TypeError);
|
|
40
40
|
function R(s) {
|
|
41
41
|
return function(n) {
|
|
42
42
|
for (var l = arguments.length, r = new Array(l > 1 ? l - 1 : 0), f = 1; f < l; f++)
|
|
@@ -44,77 +44,93 @@ function R(s) {
|
|
|
44
44
|
return Me(s, n, r);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function cn(s) {
|
|
48
48
|
return function() {
|
|
49
49
|
for (var n = arguments.length, l = new Array(n), r = 0; r < n; r++)
|
|
50
50
|
l[r] = arguments[r];
|
|
51
|
-
return
|
|
51
|
+
return we(s, l);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
function a(s, n) {
|
|
55
|
-
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
56
|
-
|
|
55
|
+
let l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
|
|
56
|
+
mt && mt(s, null);
|
|
57
57
|
let r = n.length;
|
|
58
58
|
for (; r--; ) {
|
|
59
59
|
let f = n[r];
|
|
60
60
|
if (typeof f == "string") {
|
|
61
61
|
const L = l(f);
|
|
62
|
-
L !== f && (
|
|
62
|
+
L !== f && (on(n) || (n[r] = L), f = L);
|
|
63
63
|
}
|
|
64
64
|
s[f] = !0;
|
|
65
65
|
}
|
|
66
66
|
return s;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function un(s) {
|
|
69
69
|
for (let n = 0; n < s.length; n++)
|
|
70
70
|
N(s, n) || (s[n] = null);
|
|
71
71
|
return s;
|
|
72
72
|
}
|
|
73
73
|
function x(s) {
|
|
74
|
-
const n =
|
|
75
|
-
for (const [l, r] of
|
|
76
|
-
N(s, l) && (Array.isArray(r) ? n[l] =
|
|
74
|
+
const n = St(null);
|
|
75
|
+
for (const [l, r] of At(s))
|
|
76
|
+
N(s, l) && (Array.isArray(r) ? n[l] = un(r) : r && typeof r == "object" && r.constructor === Object ? n[l] = x(r) : n[l] = r);
|
|
77
77
|
return n;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function K(s, n) {
|
|
80
80
|
for (; s !== null; ) {
|
|
81
|
-
const r =
|
|
81
|
+
const r = an(s, n);
|
|
82
82
|
if (r) {
|
|
83
83
|
if (r.get)
|
|
84
84
|
return R(r.get);
|
|
85
85
|
if (typeof r.value == "function")
|
|
86
86
|
return R(r.value);
|
|
87
87
|
}
|
|
88
|
-
s =
|
|
88
|
+
s = rn(s);
|
|
89
89
|
}
|
|
90
90
|
function l() {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
93
|
return l;
|
|
94
94
|
}
|
|
95
|
-
const
|
|
95
|
+
const _t = A(["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"]), De = A(["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"]), be = A(["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"]), fn = A(["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"]), Ce = A(["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"]), mn = A(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Tt = A(["#text"]), Et = A(["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"]), Ie = A(["accent-height", "accumulate", "additive", "alignment-baseline", "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", "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", "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", "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", "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 = A(["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"]), se = A(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), pn = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), dn = y(/<%[\w\W]*|[\w\W]*%>/gm), _n = y(/\${[\w\W]*}/gm), Tn = y(/^data-[\-\w.\u00B7-\uFFFF]/), En = y(/^aria-[\-\w]+$/), Rt = y(
|
|
96
96
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
97
97
|
// eslint-disable-line no-useless-escape
|
|
98
|
-
),
|
|
98
|
+
), gn = y(/^(?:\w+script|data):/i), hn = y(
|
|
99
99
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
100
100
|
// eslint-disable-line no-control-regex
|
|
101
|
-
),
|
|
102
|
-
var
|
|
101
|
+
), yt = y(/^html$/i), An = y(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
102
|
+
var ht = /* @__PURE__ */ Object.freeze({
|
|
103
103
|
__proto__: null,
|
|
104
|
-
MUSTACHE_EXPR:
|
|
105
|
-
ERB_EXPR:
|
|
106
|
-
TMPLIT_EXPR:
|
|
107
|
-
DATA_ATTR:
|
|
108
|
-
ARIA_ATTR:
|
|
109
|
-
IS_ALLOWED_URI:
|
|
110
|
-
IS_SCRIPT_OR_DATA:
|
|
111
|
-
ATTR_WHITESPACE:
|
|
112
|
-
DOCTYPE_NAME:
|
|
113
|
-
CUSTOM_ELEMENT:
|
|
104
|
+
MUSTACHE_EXPR: pn,
|
|
105
|
+
ERB_EXPR: dn,
|
|
106
|
+
TMPLIT_EXPR: _n,
|
|
107
|
+
DATA_ATTR: Tn,
|
|
108
|
+
ARIA_ATTR: En,
|
|
109
|
+
IS_ALLOWED_URI: Rt,
|
|
110
|
+
IS_SCRIPT_OR_DATA: gn,
|
|
111
|
+
ATTR_WHITESPACE: hn,
|
|
112
|
+
DOCTYPE_NAME: yt,
|
|
113
|
+
CUSTOM_ELEMENT: An
|
|
114
114
|
});
|
|
115
|
-
const
|
|
115
|
+
const Z = {
|
|
116
|
+
element: 1,
|
|
117
|
+
attribute: 2,
|
|
118
|
+
text: 3,
|
|
119
|
+
cdataSection: 4,
|
|
120
|
+
entityReference: 5,
|
|
121
|
+
// Deprecated
|
|
122
|
+
entityNode: 6,
|
|
123
|
+
// Deprecated
|
|
124
|
+
progressingInstruction: 7,
|
|
125
|
+
comment: 8,
|
|
126
|
+
document: 9,
|
|
127
|
+
documentType: 10,
|
|
128
|
+
documentFragment: 11,
|
|
129
|
+
notation: 12
|
|
130
|
+
// Deprecated
|
|
131
|
+
}, Sn = function() {
|
|
116
132
|
return typeof window > "u" ? null : window;
|
|
117
|
-
},
|
|
133
|
+
}, Rn = function(n, l) {
|
|
118
134
|
if (typeof n != "object" || typeof n.createPolicy != "function")
|
|
119
135
|
return null;
|
|
120
136
|
let r = null;
|
|
@@ -134,10 +150,10 @@ const gn = function() {
|
|
|
134
150
|
return console.warn("TrustedTypes policy " + L + " could not be created."), null;
|
|
135
151
|
}
|
|
136
152
|
};
|
|
137
|
-
function
|
|
138
|
-
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
139
|
-
const n = (i) =>
|
|
140
|
-
if (n.version = "3.1.
|
|
153
|
+
function Lt() {
|
|
154
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sn();
|
|
155
|
+
const n = (i) => Lt(i);
|
|
156
|
+
if (n.version = "3.1.6", n.removed = [], !s || !s.document || s.document.nodeType !== Z.document)
|
|
141
157
|
return n.isSupported = !1, n;
|
|
142
158
|
let {
|
|
143
159
|
document: l
|
|
@@ -145,46 +161,46 @@ function Rt() {
|
|
|
145
161
|
const r = l, f = r.currentScript, {
|
|
146
162
|
DocumentFragment: L,
|
|
147
163
|
HTMLTemplateElement: O,
|
|
148
|
-
Node:
|
|
149
|
-
Element:
|
|
164
|
+
Node: J,
|
|
165
|
+
Element: xe,
|
|
150
166
|
NodeFilter: z,
|
|
151
|
-
NamedNodeMap:
|
|
152
|
-
HTMLFormElement:
|
|
153
|
-
DOMParser:
|
|
154
|
-
trustedTypes:
|
|
155
|
-
} = s,
|
|
167
|
+
NamedNodeMap: Ot = s.NamedNodeMap || s.MozNamedAttrMap,
|
|
168
|
+
HTMLFormElement: Nt,
|
|
169
|
+
DOMParser: Dt,
|
|
170
|
+
trustedTypes: Q
|
|
171
|
+
} = s, W = xe.prototype, bt = K(W, "cloneNode"), Ct = K(W, "remove"), It = K(W, "nextSibling"), Mt = K(W, "childNodes"), ee = K(W, "parentNode");
|
|
156
172
|
if (typeof O == "function") {
|
|
157
173
|
const i = l.createElement("template");
|
|
158
174
|
i.content && i.content.ownerDocument && (l = i.content.ownerDocument);
|
|
159
175
|
}
|
|
160
|
-
let E,
|
|
176
|
+
let E, G = "";
|
|
161
177
|
const {
|
|
162
|
-
implementation:
|
|
163
|
-
createNodeIterator:
|
|
164
|
-
createDocumentFragment:
|
|
165
|
-
getElementsByTagName:
|
|
178
|
+
implementation: ce,
|
|
179
|
+
createNodeIterator: wt,
|
|
180
|
+
createDocumentFragment: xt,
|
|
181
|
+
getElementsByTagName: Pt
|
|
166
182
|
} = l, {
|
|
167
|
-
importNode:
|
|
183
|
+
importNode: vt
|
|
168
184
|
} = r;
|
|
169
185
|
let D = {};
|
|
170
|
-
n.isSupported = typeof
|
|
186
|
+
n.isSupported = typeof At == "function" && typeof ee == "function" && ce && ce.createHTMLDocument !== void 0;
|
|
171
187
|
const {
|
|
172
|
-
MUSTACHE_EXPR:
|
|
173
|
-
ERB_EXPR:
|
|
174
|
-
TMPLIT_EXPR:
|
|
175
|
-
DATA_ATTR:
|
|
176
|
-
ARIA_ATTR:
|
|
177
|
-
IS_SCRIPT_OR_DATA:
|
|
178
|
-
ATTR_WHITESPACE:
|
|
179
|
-
CUSTOM_ELEMENT:
|
|
180
|
-
} =
|
|
188
|
+
MUSTACHE_EXPR: ue,
|
|
189
|
+
ERB_EXPR: fe,
|
|
190
|
+
TMPLIT_EXPR: me,
|
|
191
|
+
DATA_ATTR: kt,
|
|
192
|
+
ARIA_ATTR: Ut,
|
|
193
|
+
IS_SCRIPT_OR_DATA: Ft,
|
|
194
|
+
ATTR_WHITESPACE: Pe,
|
|
195
|
+
CUSTOM_ELEMENT: Ht
|
|
196
|
+
} = ht;
|
|
181
197
|
let {
|
|
182
|
-
IS_ALLOWED_URI:
|
|
183
|
-
} =
|
|
184
|
-
const
|
|
198
|
+
IS_ALLOWED_URI: ve
|
|
199
|
+
} = ht, m = null;
|
|
200
|
+
const ke = a({}, [..._t, ...De, ...be, ...Ce, ...Tt]);
|
|
185
201
|
let p = null;
|
|
186
|
-
const
|
|
187
|
-
let u = Object.seal(
|
|
202
|
+
const Ue = a({}, [...Et, ...Ie, ...gt, ...se]);
|
|
203
|
+
let u = Object.seal(St(null, {
|
|
188
204
|
tagNameCheck: {
|
|
189
205
|
writable: !0,
|
|
190
206
|
configurable: !1,
|
|
@@ -203,82 +219,82 @@ function Rt() {
|
|
|
203
219
|
enumerable: !0,
|
|
204
220
|
value: !1
|
|
205
221
|
}
|
|
206
|
-
})),
|
|
207
|
-
const
|
|
208
|
-
let
|
|
209
|
-
const
|
|
210
|
-
let
|
|
211
|
-
const
|
|
212
|
-
let
|
|
213
|
-
const
|
|
214
|
-
let F =
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
const
|
|
222
|
+
})), B = null, pe = null, Fe = !0, de = !0, He = !1, ze = !0, P = !1, _e = !0, w = !1, Te = !1, Ee = !1, v = !1, te = !1, ne = !1, We = !0, Ge = !1;
|
|
223
|
+
const zt = "user-content-";
|
|
224
|
+
let ge = !0, Y = !1, k = {}, U = null;
|
|
225
|
+
const Be = a({}, ["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
|
+
let Ye = null;
|
|
227
|
+
const Xe = a({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
228
|
+
let he = null;
|
|
229
|
+
const Ve = a({}, ["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", I = "http://www.w3.org/1999/xhtml";
|
|
230
|
+
let F = I, Ae = !1, Se = null;
|
|
231
|
+
const Wt = a({}, [oe, ie, I], Ne);
|
|
232
|
+
let X = null;
|
|
233
|
+
const Gt = ["application/xhtml+xml", "text/html"], Bt = "text/html";
|
|
218
234
|
let d = null, H = null;
|
|
219
|
-
const
|
|
235
|
+
const Yt = l.createElement("form"), je = function(e) {
|
|
220
236
|
return e instanceof RegExp || e instanceof Function;
|
|
221
|
-
},
|
|
237
|
+
}, Re = function() {
|
|
222
238
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
223
239
|
if (!(H && H === e)) {
|
|
224
|
-
if ((!e || typeof e != "object") && (e = {}), e = x(e),
|
|
225
|
-
|
|
226
|
-
x(
|
|
240
|
+
if ((!e || typeof e != "object") && (e = {}), e = x(e), X = // eslint-disable-next-line unicorn/prefer-includes
|
|
241
|
+
Gt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Bt : e.PARSER_MEDIA_TYPE, d = X === "application/xhtml+xml" ? Ne : le, m = N(e, "ALLOWED_TAGS") ? a({}, e.ALLOWED_TAGS, d) : ke, p = N(e, "ALLOWED_ATTR") ? a({}, e.ALLOWED_ATTR, d) : Ue, Se = N(e, "ALLOWED_NAMESPACES") ? a({}, e.ALLOWED_NAMESPACES, Ne) : Wt, he = N(e, "ADD_URI_SAFE_ATTR") ? a(
|
|
242
|
+
x(Ve),
|
|
227
243
|
// eslint-disable-line indent
|
|
228
244
|
e.ADD_URI_SAFE_ATTR,
|
|
229
245
|
// eslint-disable-line indent
|
|
230
246
|
d
|
|
231
247
|
// eslint-disable-line indent
|
|
232
|
-
) :
|
|
233
|
-
x(
|
|
248
|
+
) : Ve, Ye = N(e, "ADD_DATA_URI_TAGS") ? a(
|
|
249
|
+
x(Xe),
|
|
234
250
|
// eslint-disable-line indent
|
|
235
251
|
e.ADD_DATA_URI_TAGS,
|
|
236
252
|
// eslint-disable-line indent
|
|
237
253
|
d
|
|
238
254
|
// eslint-disable-line indent
|
|
239
|
-
) :
|
|
255
|
+
) : Xe, U = N(e, "FORBID_CONTENTS") ? a({}, e.FORBID_CONTENTS, d) : Be, B = N(e, "FORBID_TAGS") ? a({}, e.FORBID_TAGS, d) : {}, pe = N(e, "FORBID_ATTR") ? a({}, e.FORBID_ATTR, d) : {}, k = N(e, "USE_PROFILES") ? e.USE_PROFILES : !1, Fe = e.ALLOW_ARIA_ATTR !== !1, de = e.ALLOW_DATA_ATTR !== !1, He = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ze = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, P = e.SAFE_FOR_TEMPLATES || !1, _e = 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, Ee = e.FORCE_BODY || !1, We = e.SANITIZE_DOM !== !1, Ge = e.SANITIZE_NAMED_PROPS || !1, ge = e.KEEP_CONTENT !== !1, Y = e.IN_PLACE || !1, ve = e.ALLOWED_URI_REGEXP || Rt, F = e.NAMESPACE || I, u = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (u.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (u.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (u.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), P && (de = !1), te && (v = !0), k && (m = a({}, Tt), p = [], k.html === !0 && (a(m, _t), a(p, Et)), k.svg === !0 && (a(m, De), a(p, Ie), a(p, se)), k.svgFilters === !0 && (a(m, be), a(p, Ie), a(p, se)), k.mathMl === !0 && (a(m, Ce), a(p, gt), a(p, se))), e.ADD_TAGS && (m === ke && (m = x(m)), a(m, e.ADD_TAGS, d)), e.ADD_ATTR && (p === Ue && (p = x(p)), a(p, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && a(he, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (U === Be && (U = x(U)), a(U, e.FORBID_CONTENTS, d)), ge && (m["#text"] = !0), w && a(m, ["html", "head", "body"]), m.table && (a(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
240
256
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
241
|
-
throw
|
|
257
|
+
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
242
258
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
243
|
-
throw
|
|
244
|
-
E = e.TRUSTED_TYPES_POLICY,
|
|
259
|
+
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
260
|
+
E = e.TRUSTED_TYPES_POLICY, G = E.createHTML("");
|
|
245
261
|
} else
|
|
246
|
-
E === void 0 && (E =
|
|
247
|
-
|
|
262
|
+
E === void 0 && (E = Rn(Q, f)), E !== null && typeof G == "string" && (G = E.createHTML(""));
|
|
263
|
+
A && A(e), H = e;
|
|
248
264
|
}
|
|
249
|
-
},
|
|
250
|
-
let t =
|
|
265
|
+
}, $e = a({}, ["mi", "mo", "mn", "ms", "mtext"]), qe = a({}, ["foreignobject", "annotation-xml"]), Xt = a({}, ["title", "style", "font", "a", "script"]), Ke = a({}, [...De, ...be, ...fn]), Ze = a({}, [...Ce, ...mn]), Vt = function(e) {
|
|
266
|
+
let t = ee(e);
|
|
251
267
|
(!t || !t.tagName) && (t = {
|
|
252
268
|
namespaceURI: F,
|
|
253
269
|
tagName: "template"
|
|
254
270
|
});
|
|
255
|
-
const o =
|
|
256
|
-
return
|
|
257
|
-
},
|
|
258
|
-
|
|
271
|
+
const o = le(e.tagName), c = le(t.tagName);
|
|
272
|
+
return Se[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === I ? o === "svg" : t.namespaceURI === oe ? o === "svg" && (c === "annotation-xml" || $e[c]) : !!Ke[o] : e.namespaceURI === oe ? t.namespaceURI === I ? o === "math" : t.namespaceURI === ie ? o === "math" && qe[c] : !!Ze[o] : e.namespaceURI === I ? t.namespaceURI === ie && !qe[c] || t.namespaceURI === oe && !$e[c] ? !1 : !Ze[o] && (Xt[o] || !Ke[o]) : !!(X === "application/xhtml+xml" && Se[e.namespaceURI]) : !1;
|
|
273
|
+
}, b = function(e) {
|
|
274
|
+
j(n.removed, {
|
|
259
275
|
element: e
|
|
260
276
|
});
|
|
261
277
|
try {
|
|
262
|
-
e.
|
|
278
|
+
ee(e).removeChild(e);
|
|
263
279
|
} catch {
|
|
264
|
-
e
|
|
280
|
+
Ct(e);
|
|
265
281
|
}
|
|
266
|
-
},
|
|
282
|
+
}, re = function(e, t) {
|
|
267
283
|
try {
|
|
268
|
-
|
|
284
|
+
j(n.removed, {
|
|
269
285
|
attribute: t.getAttributeNode(e),
|
|
270
286
|
from: t
|
|
271
287
|
});
|
|
272
288
|
} catch {
|
|
273
|
-
|
|
289
|
+
j(n.removed, {
|
|
274
290
|
attribute: null,
|
|
275
291
|
from: t
|
|
276
292
|
});
|
|
277
293
|
}
|
|
278
294
|
if (t.removeAttribute(e), e === "is" && !p[e])
|
|
279
|
-
if (
|
|
295
|
+
if (v || te)
|
|
280
296
|
try {
|
|
281
|
-
|
|
297
|
+
b(t);
|
|
282
298
|
} catch {
|
|
283
299
|
}
|
|
284
300
|
else
|
|
@@ -286,93 +302,95 @@ function Rt() {
|
|
|
286
302
|
t.setAttribute(e, "");
|
|
287
303
|
} catch {
|
|
288
304
|
}
|
|
289
|
-
},
|
|
305
|
+
}, Je = function(e) {
|
|
290
306
|
let t = null, o = null;
|
|
291
|
-
if (
|
|
307
|
+
if (Ee)
|
|
292
308
|
e = "<remove></remove>" + e;
|
|
293
309
|
else {
|
|
294
|
-
const
|
|
295
|
-
o =
|
|
310
|
+
const _ = dt(e, /^[\r\n\t ]+/);
|
|
311
|
+
o = _ && _[0];
|
|
296
312
|
}
|
|
297
|
-
|
|
313
|
+
X === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
298
314
|
const c = E ? E.createHTML(e) : e;
|
|
299
|
-
if (F ===
|
|
315
|
+
if (F === I)
|
|
300
316
|
try {
|
|
301
|
-
t = new
|
|
317
|
+
t = new Dt().parseFromString(c, X);
|
|
302
318
|
} catch {
|
|
303
319
|
}
|
|
304
320
|
if (!t || !t.documentElement) {
|
|
305
|
-
t =
|
|
321
|
+
t = ce.createDocument(F, "template", null);
|
|
306
322
|
try {
|
|
307
|
-
t.documentElement.innerHTML =
|
|
323
|
+
t.documentElement.innerHTML = Ae ? G : c;
|
|
308
324
|
} catch {
|
|
309
325
|
}
|
|
310
326
|
}
|
|
311
|
-
const
|
|
312
|
-
return e && o &&
|
|
313
|
-
},
|
|
314
|
-
return
|
|
327
|
+
const T = t.body || t.documentElement;
|
|
328
|
+
return e && o && T.insertBefore(l.createTextNode(o), T.childNodes[0] || null), F === I ? Pt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
|
|
329
|
+
}, Qe = function(e) {
|
|
330
|
+
return wt.call(
|
|
315
331
|
e.ownerDocument || e,
|
|
316
332
|
e,
|
|
317
333
|
// eslint-disable-next-line no-bitwise
|
|
318
334
|
z.SHOW_ELEMENT | z.SHOW_COMMENT | z.SHOW_TEXT | z.SHOW_PROCESSING_INSTRUCTION | z.SHOW_CDATA_SECTION,
|
|
319
335
|
null
|
|
320
336
|
);
|
|
321
|
-
},
|
|
322
|
-
return e instanceof
|
|
323
|
-
},
|
|
324
|
-
return typeof
|
|
325
|
-
},
|
|
326
|
-
D[e] &&
|
|
337
|
+
}, et = function(e) {
|
|
338
|
+
return e instanceof Nt && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof Ot) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
339
|
+
}, tt = function(e) {
|
|
340
|
+
return typeof J == "function" && e instanceof J;
|
|
341
|
+
}, M = function(e, t, o) {
|
|
342
|
+
D[e] && ae(D[e], (c) => {
|
|
327
343
|
c.call(n, t, o, H);
|
|
328
344
|
});
|
|
329
|
-
},
|
|
345
|
+
}, nt = function(e) {
|
|
330
346
|
let t = null;
|
|
331
|
-
if (
|
|
332
|
-
return
|
|
347
|
+
if (M("beforeSanitizeElements", e, null), et(e))
|
|
348
|
+
return b(e), !0;
|
|
333
349
|
const o = d(e.nodeName);
|
|
334
|
-
if (
|
|
350
|
+
if (M("uponSanitizeElement", e, {
|
|
335
351
|
tagName: o,
|
|
336
352
|
allowedTags: m
|
|
337
|
-
}), e.hasChildNodes() && !
|
|
338
|
-
return
|
|
339
|
-
if (!m[o] ||
|
|
340
|
-
if (!
|
|
353
|
+
}), e.hasChildNodes() && !tt(e.firstElementChild) && h(/<[/\w]/g, e.innerHTML) && h(/<[/\w]/g, e.textContent) || e.nodeType === Z.progressingInstruction || _e && e.nodeType === Z.comment && h(/<[/\w]/g, e.data))
|
|
354
|
+
return b(e), !0;
|
|
355
|
+
if (!m[o] || B[o]) {
|
|
356
|
+
if (!B[o] && it(o) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, o) || u.tagNameCheck instanceof Function && u.tagNameCheck(o)))
|
|
341
357
|
return !1;
|
|
342
|
-
if (
|
|
343
|
-
const c =
|
|
344
|
-
if (
|
|
345
|
-
const
|
|
346
|
-
for (let
|
|
347
|
-
|
|
358
|
+
if (ge && !U[o]) {
|
|
359
|
+
const c = ee(e) || e.parentNode, T = Mt(e) || e.childNodes;
|
|
360
|
+
if (T && c) {
|
|
361
|
+
const _ = T.length;
|
|
362
|
+
for (let S = _ - 1; S >= 0; --S) {
|
|
363
|
+
const C = bt(T[S], !0);
|
|
364
|
+
C.__removalCount = (e.__removalCount || 0) + 1, c.insertBefore(C, It(e));
|
|
365
|
+
}
|
|
348
366
|
}
|
|
349
367
|
}
|
|
350
|
-
return
|
|
368
|
+
return b(e), !0;
|
|
351
369
|
}
|
|
352
|
-
return e instanceof
|
|
353
|
-
t =
|
|
354
|
-
}), e.textContent !== t && (
|
|
370
|
+
return e instanceof xe && !Vt(e) || (o === "noscript" || o === "noembed" || o === "noframes") && h(/<\/no(script|embed|frames)/i, e.innerHTML) ? (b(e), !0) : (P && e.nodeType === Z.text && (t = e.textContent, ae([ue, fe, me], (c) => {
|
|
371
|
+
t = $(t, c, " ");
|
|
372
|
+
}), e.textContent !== t && (j(n.removed, {
|
|
355
373
|
element: e.cloneNode()
|
|
356
|
-
}), e.textContent = t)),
|
|
357
|
-
},
|
|
358
|
-
if (
|
|
374
|
+
}), e.textContent = t)), M("afterSanitizeElements", e, null), !1);
|
|
375
|
+
}, ot = function(e, t, o) {
|
|
376
|
+
if (We && (t === "id" || t === "name") && (o in l || o in Yt))
|
|
359
377
|
return !1;
|
|
360
|
-
if (!(
|
|
361
|
-
if (!(
|
|
362
|
-
if (!p[t] ||
|
|
378
|
+
if (!(de && !pe[t] && h(kt, t))) {
|
|
379
|
+
if (!(Fe && h(Ut, t))) {
|
|
380
|
+
if (!p[t] || pe[t]) {
|
|
363
381
|
if (
|
|
364
382
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
365
383
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
366
384
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
367
|
-
!(
|
|
385
|
+
!(it(e) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, e) || u.tagNameCheck instanceof Function && u.tagNameCheck(e)) && (u.attributeNameCheck instanceof RegExp && h(u.attributeNameCheck, t) || u.attributeNameCheck instanceof Function && u.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
368
386
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
369
|
-
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp &&
|
|
387
|
+
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, o) || u.tagNameCheck instanceof Function && u.tagNameCheck(o)))
|
|
370
388
|
)
|
|
371
389
|
return !1;
|
|
372
|
-
} else if (!
|
|
373
|
-
if (!
|
|
374
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" &&
|
|
375
|
-
if (!(
|
|
390
|
+
} else if (!he[t]) {
|
|
391
|
+
if (!h(ve, $(o, Pe, ""))) {
|
|
392
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && sn(o, "data:") === 0 && Ye[e])) {
|
|
393
|
+
if (!(He && !h(Ft, $(o, Pe, "")))) {
|
|
376
394
|
if (o)
|
|
377
395
|
return !1;
|
|
378
396
|
}
|
|
@@ -382,10 +400,10 @@ function Rt() {
|
|
|
382
400
|
}
|
|
383
401
|
}
|
|
384
402
|
return !0;
|
|
385
|
-
},
|
|
386
|
-
return e !== "annotation-xml" &&
|
|
387
|
-
},
|
|
388
|
-
|
|
403
|
+
}, it = function(e) {
|
|
404
|
+
return e !== "annotation-xml" && dt(e, Ht);
|
|
405
|
+
}, rt = function(e) {
|
|
406
|
+
M("beforeSanitizeAttributes", e, null);
|
|
389
407
|
const {
|
|
390
408
|
attributes: t
|
|
391
409
|
} = e;
|
|
@@ -399,154 +417,158 @@ function Rt() {
|
|
|
399
417
|
};
|
|
400
418
|
let c = t.length;
|
|
401
419
|
for (; c--; ) {
|
|
402
|
-
const
|
|
403
|
-
name:
|
|
404
|
-
namespaceURI:
|
|
405
|
-
value:
|
|
406
|
-
} =
|
|
407
|
-
let
|
|
408
|
-
if (o.attrName =
|
|
420
|
+
const T = t[c], {
|
|
421
|
+
name: _,
|
|
422
|
+
namespaceURI: S,
|
|
423
|
+
value: C
|
|
424
|
+
} = T, V = d(_);
|
|
425
|
+
let g = _ === "value" ? C : ln(C);
|
|
426
|
+
if (o.attrName = V, o.attrValue = g, o.keepAttr = !0, o.forceKeepAttr = void 0, M("uponSanitizeAttribute", e, o), g = o.attrValue, _e && h(/((--!?|])>)|<\/(style|title)/i, g)) {
|
|
427
|
+
re(_, e);
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
if (o.forceKeepAttr || (re(_, e), !o.keepAttr))
|
|
409
431
|
continue;
|
|
410
|
-
if (!
|
|
411
|
-
|
|
432
|
+
if (!ze && h(/\/>/i, g)) {
|
|
433
|
+
re(_, e);
|
|
412
434
|
continue;
|
|
413
435
|
}
|
|
414
|
-
P &&
|
|
415
|
-
|
|
436
|
+
P && ae([ue, fe, me], (st) => {
|
|
437
|
+
g = $(g, st, " ");
|
|
416
438
|
});
|
|
417
|
-
const
|
|
418
|
-
if (
|
|
419
|
-
if (
|
|
420
|
-
switch (
|
|
439
|
+
const at = d(e.nodeName);
|
|
440
|
+
if (ot(at, V, g)) {
|
|
441
|
+
if (Ge && (V === "id" || V === "name") && (re(_, e), g = zt + g), E && typeof Q == "object" && typeof Q.getAttributeType == "function" && !S)
|
|
442
|
+
switch (Q.getAttributeType(at, V)) {
|
|
421
443
|
case "TrustedHTML": {
|
|
422
|
-
|
|
444
|
+
g = E.createHTML(g);
|
|
423
445
|
break;
|
|
424
446
|
}
|
|
425
447
|
case "TrustedScriptURL": {
|
|
426
|
-
|
|
448
|
+
g = E.createScriptURL(g);
|
|
427
449
|
break;
|
|
428
450
|
}
|
|
429
451
|
}
|
|
430
452
|
try {
|
|
431
|
-
|
|
453
|
+
S ? e.setAttributeNS(S, _, g) : e.setAttribute(_, g), et(e) ? b(e) : pt(n.removed);
|
|
432
454
|
} catch {
|
|
433
455
|
}
|
|
434
456
|
}
|
|
435
457
|
}
|
|
436
|
-
|
|
437
|
-
},
|
|
458
|
+
M("afterSanitizeAttributes", e, null);
|
|
459
|
+
}, jt = function i(e) {
|
|
438
460
|
let t = null;
|
|
439
|
-
const o =
|
|
440
|
-
for (
|
|
441
|
-
|
|
442
|
-
|
|
461
|
+
const o = Qe(e);
|
|
462
|
+
for (M("beforeSanitizeShadowDOM", e, null); t = o.nextNode(); )
|
|
463
|
+
M("uponSanitizeShadowNode", t, null), !nt(t) && (t.content instanceof L && i(t.content), rt(t));
|
|
464
|
+
M("afterSanitizeShadowDOM", e, null);
|
|
443
465
|
};
|
|
444
466
|
return n.sanitize = function(i) {
|
|
445
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, o = null, c = null,
|
|
446
|
-
if (
|
|
467
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, o = null, c = null, T = null;
|
|
468
|
+
if (Ae = !i, Ae && (i = "<!-->"), typeof i != "string" && !tt(i))
|
|
447
469
|
if (typeof i.toString == "function") {
|
|
448
470
|
if (i = i.toString(), typeof i != "string")
|
|
449
|
-
throw
|
|
471
|
+
throw q("dirty is not a string, aborting");
|
|
450
472
|
} else
|
|
451
|
-
throw
|
|
473
|
+
throw q("toString is not a function");
|
|
452
474
|
if (!n.isSupported)
|
|
453
475
|
return i;
|
|
454
|
-
if (
|
|
476
|
+
if (Te || Re(e), n.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
455
477
|
if (i.nodeName) {
|
|
456
|
-
const
|
|
457
|
-
if (!m[
|
|
458
|
-
throw
|
|
478
|
+
const C = d(i.nodeName);
|
|
479
|
+
if (!m[C] || B[C])
|
|
480
|
+
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
459
481
|
}
|
|
460
|
-
} else if (i instanceof
|
|
461
|
-
t =
|
|
482
|
+
} else if (i instanceof J)
|
|
483
|
+
t = Je("<!---->"), o = t.ownerDocument.importNode(i, !0), o.nodeType === Z.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? t = o : t.appendChild(o);
|
|
462
484
|
else {
|
|
463
|
-
if (!
|
|
485
|
+
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
464
486
|
i.indexOf("<") === -1)
|
|
465
|
-
return E &&
|
|
466
|
-
if (t =
|
|
467
|
-
return
|
|
487
|
+
return E && ne ? E.createHTML(i) : i;
|
|
488
|
+
if (t = Je(i), !t)
|
|
489
|
+
return v ? null : ne ? G : "";
|
|
468
490
|
}
|
|
469
|
-
t &&
|
|
470
|
-
const
|
|
471
|
-
for (; c =
|
|
472
|
-
|
|
473
|
-
if (
|
|
491
|
+
t && Ee && b(t.firstChild);
|
|
492
|
+
const _ = Qe(Y ? i : t);
|
|
493
|
+
for (; c = _.nextNode(); )
|
|
494
|
+
nt(c) || (c.content instanceof L && jt(c.content), rt(c));
|
|
495
|
+
if (Y)
|
|
474
496
|
return i;
|
|
475
|
-
if (
|
|
476
|
-
if (
|
|
477
|
-
for (
|
|
478
|
-
|
|
497
|
+
if (v) {
|
|
498
|
+
if (te)
|
|
499
|
+
for (T = xt.call(t.ownerDocument); t.firstChild; )
|
|
500
|
+
T.appendChild(t.firstChild);
|
|
479
501
|
else
|
|
480
|
-
|
|
481
|
-
return (p.shadowroot || p.shadowrootmode) && (
|
|
502
|
+
T = t;
|
|
503
|
+
return (p.shadowroot || p.shadowrootmode) && (T = vt.call(r, T, !0)), T;
|
|
482
504
|
}
|
|
483
|
-
let
|
|
484
|
-
return
|
|
485
|
-
` +
|
|
486
|
-
|
|
487
|
-
}), E &&
|
|
505
|
+
let S = w ? t.outerHTML : t.innerHTML;
|
|
506
|
+
return w && m["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && h(yt, t.ownerDocument.doctype.name) && (S = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
|
|
507
|
+
` + S), P && ae([ue, fe, me], (C) => {
|
|
508
|
+
S = $(S, C, " ");
|
|
509
|
+
}), E && ne ? E.createHTML(S) : S;
|
|
488
510
|
}, n.setConfig = function() {
|
|
489
511
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
490
|
-
|
|
512
|
+
Re(i), Te = !0;
|
|
491
513
|
}, n.clearConfig = function() {
|
|
492
|
-
H = null,
|
|
514
|
+
H = null, Te = !1;
|
|
493
515
|
}, n.isValidAttribute = function(i, e, t) {
|
|
494
|
-
H ||
|
|
516
|
+
H || Re({});
|
|
495
517
|
const o = d(i), c = d(e);
|
|
496
|
-
return
|
|
518
|
+
return ot(o, c, t);
|
|
497
519
|
}, n.addHook = function(i, e) {
|
|
498
|
-
typeof e == "function" && (D[i] = D[i] || [],
|
|
520
|
+
typeof e == "function" && (D[i] = D[i] || [], j(D[i], e));
|
|
499
521
|
}, n.removeHook = function(i) {
|
|
500
522
|
if (D[i])
|
|
501
|
-
return
|
|
523
|
+
return pt(D[i]);
|
|
502
524
|
}, n.removeHooks = function(i) {
|
|
503
525
|
D[i] && (D[i] = []);
|
|
504
526
|
}, n.removeAllHooks = function() {
|
|
505
527
|
D = {};
|
|
506
528
|
}, n;
|
|
507
529
|
}
|
|
508
|
-
var
|
|
509
|
-
const
|
|
530
|
+
var yn = Lt();
|
|
531
|
+
const Ln = ["role"], On = ["innerHTML"], Nn = { key: 1 }, Dn = /* @__PURE__ */ $t({
|
|
510
532
|
__name: "Toast",
|
|
511
533
|
props: {
|
|
512
534
|
text: {},
|
|
513
535
|
status: { default: "info" }
|
|
514
536
|
},
|
|
515
537
|
setup(s) {
|
|
516
|
-
const n = s, l =
|
|
517
|
-
() => n.status ?
|
|
518
|
-
), f =
|
|
538
|
+
const n = s, l = qt(), r = lt(
|
|
539
|
+
() => n.status ? ft[Jt(n.status)] : ft.Info
|
|
540
|
+
), f = lt(() => n.status === Qt.Error ? "alert" : "status"), L = () => {
|
|
519
541
|
if (typeof n.text != "function")
|
|
520
|
-
return
|
|
542
|
+
return ut.error(
|
|
521
543
|
`Toast: ${n.text} is not a valid text prop value. Must be either a render function or a string.`
|
|
522
544
|
), null;
|
|
523
545
|
const O = n.text();
|
|
524
|
-
return
|
|
546
|
+
return Zt(O) ? O : (ut.error("Toast: The text prop must return a VNode."), null);
|
|
525
547
|
};
|
|
526
|
-
return (O,
|
|
548
|
+
return (O, J) => (ye(), Le("li", {
|
|
527
549
|
role: f.value,
|
|
528
|
-
class:
|
|
550
|
+
class: Kt([[Oe(l).root, Oe(l)[`status--${n.status}`]], "stash-toast"]),
|
|
529
551
|
"data-test": "stash-toast"
|
|
530
552
|
}, [
|
|
531
|
-
|
|
532
|
-
typeof n.text == "string" ? (
|
|
553
|
+
ct(tn, { name: r.value }, null, 8, ["name"]),
|
|
554
|
+
typeof n.text == "string" ? (ye(), Le("div", {
|
|
533
555
|
key: 0,
|
|
534
|
-
innerHTML:
|
|
535
|
-
}, null, 8,
|
|
536
|
-
|
|
556
|
+
innerHTML: Oe(yn).sanitize(O.text)
|
|
557
|
+
}, null, 8, On)) : (ye(), Le("div", Nn, [
|
|
558
|
+
ct(en, { render: L })
|
|
537
559
|
]))
|
|
538
|
-
], 10,
|
|
560
|
+
], 10, Ln));
|
|
539
561
|
}
|
|
540
|
-
}),
|
|
541
|
-
root:
|
|
562
|
+
}), bn = "_root_p3yhd_2", Cn = {
|
|
563
|
+
root: bn,
|
|
542
564
|
"status--success": "_status--success_p3yhd_22",
|
|
543
565
|
"status--error": "_status--error_p3yhd_31",
|
|
544
566
|
"status--info": "_status--info_p3yhd_40",
|
|
545
567
|
"status--warning": "_status--warning_p3yhd_49"
|
|
546
|
-
},
|
|
547
|
-
$style:
|
|
548
|
-
},
|
|
568
|
+
}, In = {
|
|
569
|
+
$style: Cn
|
|
570
|
+
}, Wn = /* @__PURE__ */ nn(Dn, [["__cssModules", In]]);
|
|
549
571
|
export {
|
|
550
|
-
|
|
572
|
+
Wn as default
|
|
551
573
|
};
|
|
552
574
|
//# sourceMappingURL=Toast.js.map
|