@leaflink/stash 48.16.1 → 48.17.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/dist/Accordion.js +1 -1
- package/dist/Accordion.js.map +1 -1
- package/dist/Accordion.vue.d.ts +8 -9
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/ActionsDropdown.vue.d.ts +7 -8
- package/dist/AddressSelect.js +42 -38
- package/dist/AddressSelect.js.map +1 -1
- package/dist/AddressSelect.vue.d.ts +10 -11
- package/dist/Alert.js.map +1 -1
- package/dist/Alert.vue.d.ts +6 -7
- package/dist/AppNavigationItem.js +2 -2
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppNavigationItem.vue.d.ts +7 -8
- package/dist/AppSidebar.js +42 -42
- package/dist/AppSidebar.js.map +1 -1
- package/dist/AppSidebar.vue.d.ts +8 -9
- package/dist/AppTopbar.js +16 -16
- package/dist/AppTopbar.js.map +1 -1
- package/dist/AppTopbar.vue.d.ts +8 -9
- package/dist/Avatar.js.map +1 -1
- package/dist/Avatar.vue.d.ts +7 -8
- package/dist/Backdrop.vue.d.ts +3 -5
- package/dist/Badge.js +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Badge.vue.d.ts +7 -8
- package/dist/Box.vue.d.ts +6 -7
- package/dist/Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/Button.vue.d.ts +7 -8
- package/dist/ButtonGroup.js +29 -29
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/ButtonGroup.vue.d.ts +8 -9
- package/dist/Card.js.map +1 -1
- package/dist/Card.vue.d.ts +6 -7
- package/dist/CardContent.vue.d.ts +3 -5
- package/dist/CardFooter.vue.d.ts +3 -5
- package/dist/CardHeader.js.map +1 -1
- package/dist/CardHeader.vue.d.ts +3 -4
- package/dist/CardMedia.js +6 -6
- package/dist/CardMedia.js.map +1 -1
- package/dist/CardMedia.vue.d.ts +3 -4
- package/dist/Carousel.js +249 -249
- package/dist/Carousel.js.map +1 -1
- package/dist/Carousel.vue.d.ts +9 -9
- package/dist/Checkbox.js +27 -27
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.vue.d.ts +11 -12
- package/dist/ChevronToggle.js +1 -1
- package/dist/ChevronToggle.vue.d.ts +8 -9
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js} +11 -11
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map} +1 -1
- package/dist/Chip.js +30 -30
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +9 -10
- package/dist/ConfirmationCodeInput.js +128 -105
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ConfirmationCodeInput.vue.d.ts +36 -11
- package/dist/ContextSwitcher.js +18 -18
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/ContextSwitcher.vue.d.ts +9 -10
- package/dist/Copy.js.map +1 -1
- package/dist/Copy.vue.d.ts +6 -7
- package/dist/CurrencyInput.js +93 -93
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CurrencyInput.vue.d.ts +10 -11
- package/dist/CustomRender.vue.d.ts +3 -15
- package/dist/DataView.js +97 -97
- package/dist/DataView.js.map +1 -1
- package/dist/DataView.vue.d.ts +9 -10
- package/dist/DataViewFilters.js +153 -150
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewFilters.vue.d.ts +9 -10
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewSortButton.vue.d.ts +6 -7
- package/dist/DataViewToolbar.js +27 -27
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DataViewToolbar.vue.d.ts +8 -9
- package/dist/DatePicker.js +738 -738
- package/dist/DatePicker.js.map +1 -1
- package/dist/DatePicker.vue.d.ts +11 -12
- package/dist/DescriptionList.js.map +1 -1
- package/dist/DescriptionList.vue.d.ts +6 -7
- package/dist/DescriptionListDetail.vue.d.ts +3 -5
- package/dist/DescriptionListGroup.vue.d.ts +3 -5
- package/dist/DescriptionListTerm.vue.d.ts +3 -5
- package/dist/Dialog.js +44 -44
- package/dist/Dialog.js.map +1 -1
- package/dist/Dialog.vue.d.ts +10 -11
- package/dist/Divider.vue.d.ts +3 -5
- package/dist/Dropdown.js +38 -38
- package/dist/Dropdown.js.map +1 -1
- package/dist/Dropdown.vue.d.ts +9 -10
- package/dist/EmptyState.js +20 -20
- package/dist/EmptyState.js.map +1 -1
- package/dist/EmptyState.vue.d.ts +6 -7
- package/dist/Expand.js +1 -1
- package/dist/Expand.vue.d.ts +8 -9
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js → Expand.vue_vue_type_script_setup_true_lang-0f236267.js} +19 -19
- package/dist/Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map +1 -0
- package/dist/Field.vue.d.ts +6 -7
- package/dist/Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js.map +1 -1
- package/dist/FileUpload.js +65 -65
- package/dist/FileUpload.js.map +1 -1
- package/dist/FileUpload.vue.d.ts +10 -11
- package/dist/FilterChip.js +27 -27
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterChip.vue.d.ts +8 -9
- package/dist/FilterDrawerItem.js +26 -26
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDrawerItem.vue.d.ts +5 -6
- package/dist/FilterDropdown.js +49 -49
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterDropdown.vue.d.ts +8 -9
- package/dist/FilterSelect.js +23 -23
- package/dist/FilterSelect.js.map +1 -1
- package/dist/FilterSelect.vue.d.ts +8 -9
- package/dist/Filters.js +112 -104
- package/dist/Filters.js.map +1 -1
- package/dist/Filters.vue.d.ts +2204 -65
- package/dist/HttpError.js +42 -42
- package/dist/HttpError.js.map +1 -1
- package/dist/HttpError.vue.d.ts +6 -7
- package/dist/Icon.js.map +1 -1
- package/dist/Icon.vue.d.ts +7 -8
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +8 -9
- package/dist/Illustration.vue.d.ts +6 -7
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map +1 -1
- package/dist/Image.js +47 -47
- package/dist/Image.js.map +1 -1
- package/dist/Image.vue.d.ts +6 -7
- package/dist/InlineEdit.js +34 -34
- package/dist/InlineEdit.js.map +1 -1
- package/dist/InlineEdit.vue.d.ts +9 -10
- package/dist/Input.js +35 -35
- package/dist/Input.js.map +1 -1
- package/dist/Input.vue.d.ts +13 -14
- package/dist/InputOptions.js +33 -33
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +8 -9
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/IntegrationIcon.vue.d.ts +7 -8
- package/dist/Label.vue.d.ts +6 -7
- package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js.map +1 -1
- package/dist/LicenseChip.js.map +1 -1
- package/dist/LicenseChip.vue.d.ts +6 -7
- package/dist/ListItem.vue.d.ts +225 -95
- package/dist/ListItemCell.vue.d.ts +4 -16
- package/dist/ListView.js +1 -1
- package/dist/ListView.vue.d.ts +5072 -470
- package/dist/Loading.js +16 -16
- package/dist/Loading.js.map +1 -1
- package/dist/Loading.vue.d.ts +3 -5
- package/dist/Logo.js +1 -1
- package/dist/Logo.vue.d.ts +9 -10
- package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js +196 -0
- package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map +1 -0
- package/dist/Menu.vue.d.ts +3 -5
- package/dist/MenuItem.vue.d.ts +3 -5
- package/dist/Metric.js.map +1 -1
- package/dist/Metric.vue.d.ts +6 -7
- package/dist/Modal.js +29 -29
- package/dist/Modal.js.map +1 -1
- package/dist/Modal.vue.d.ts +8 -9
- package/dist/Modals.js +8 -7
- package/dist/Modals.js.map +1 -1
- package/dist/Modals.vue.d.ts +3 -5
- package/dist/Module.js.map +1 -1
- package/dist/Module.vue.d.ts +7 -8
- package/dist/ModuleContent.vue.d.ts +3 -5
- package/dist/ModuleFooter.vue.d.ts +3 -5
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/ModuleHeader.vue.d.ts +6 -7
- package/dist/ObfuscateText.js +1 -1
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/ObfuscateText.vue.d.ts +6 -7
- package/dist/PageContent.vue.d.ts +3 -5
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageHeader.vue.d.ts +6 -7
- package/dist/PageNavigation.js +30 -27
- package/dist/PageNavigation.js.map +1 -1
- package/dist/PageNavigation.vue.d.ts +8 -9
- package/dist/Paginate.js +32 -32
- package/dist/Paginate.js.map +1 -1
- package/dist/Paginate.vue.d.ts +8 -9
- package/dist/PlaidLink.js +29 -29
- package/dist/PlaidLink.js.map +1 -1
- package/dist/PlaidLink.vue.d.ts +11 -12
- package/dist/QuickAction.js.map +1 -1
- package/dist/QuickAction.vue.d.ts +4 -5
- package/dist/Radio.vue.d.ts +20 -1
- package/dist/RadioGroup.js +123 -123
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioGroup.vue.d.ts +10 -11
- package/dist/RadioNew.js +102 -102
- package/dist/RadioNew.js.map +1 -1
- package/dist/RadioNew.vue.d.ts +10 -11
- package/dist/RangeInput.vue.d.ts +3 -5
- package/dist/SearchBar.js +36 -36
- package/dist/SearchBar.js.map +1 -1
- package/dist/SearchBar.vue.d.ts +9 -10
- package/dist/Select.js +792 -774
- package/dist/Select.js.map +1 -1
- package/dist/Select.vue.d.ts +14 -15
- package/dist/SelectStatus.js +27 -27
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +12 -13
- package/dist/Skeleton.js.map +1 -1
- package/dist/Skeleton.vue.d.ts +7 -8
- package/dist/Step.js.map +1 -1
- package/dist/Step.vue.d.ts +7 -8
- package/dist/Stepper.js +19 -19
- package/dist/Stepper.js.map +1 -1
- package/dist/Stepper.vue.d.ts +9 -10
- package/dist/Switch.js +25 -25
- package/dist/Switch.js.map +1 -1
- package/dist/Switch.vue.d.ts +11 -12
- package/dist/Tab.js +2 -2
- package/dist/Tab.vue.d.ts +3 -4
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-69d1b046.js → Tab.vue_vue_type_script_setup_true_lang-9aa53203.js} +5 -3
- package/dist/Tab.vue_vue_type_script_setup_true_lang-9aa53203.js.map +1 -0
- package/dist/Table.js +3 -3
- package/dist/Table.js.map +1 -1
- package/dist/{Table.keys-cf93df19.js → Table.keys-83e4f09b.js} +11 -11
- package/dist/{Table.keys-cf93df19.js.map → Table.keys-83e4f09b.js.map} +1 -1
- package/dist/Table.vue.d.ts +6 -7
- package/dist/TableCell.js +1 -1
- package/dist/TableCell.js.map +1 -1
- package/dist/TableCell.vue.d.ts +6 -7
- package/dist/TableHeaderCell.js +12 -12
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderCell.vue.d.ts +6 -7
- package/dist/TableHeaderRow.js +21 -21
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableHeaderRow.vue.d.ts +8 -9
- package/dist/TableRow.js +42 -42
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRow.vue.d.ts +8 -9
- package/dist/Tabs.js +2 -2
- package/dist/Tabs.vue.d.ts +8 -9
- package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js → Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js} +37 -37
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js.map +1 -0
- package/dist/TextEditor.js +565 -565
- package/dist/TextEditor.js.map +1 -1
- package/dist/TextEditor.vue.d.ts +12 -13
- package/dist/Textarea.js +28 -28
- package/dist/Textarea.js.map +1 -1
- package/dist/Textarea.vue.d.ts +10 -11
- package/dist/Timeline.js.map +1 -1
- package/dist/Timeline.vue.d.ts +6 -7
- package/dist/TimelineItem.js +21 -21
- package/dist/TimelineItem.js.map +1 -1
- package/dist/TimelineItem.vue.d.ts +13 -6
- package/dist/Toast.js +134 -134
- package/dist/Toast.js.map +1 -1
- package/dist/Toast.vue.d.ts +6 -7
- package/dist/Toasts.vue.d.ts +3 -5
- package/dist/components.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/usePlaidLink.d.ts +1 -6
- package/dist/useScriptTag.d.ts +3 -8
- package/dist/useStepper.d.ts +7 -2
- package/package.json +1 -1
- package/tailwind-base.ts +13 -6
- package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +0 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js +0 -196
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +0 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +0 -1
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +0 -1
package/dist/Toast.js
CHANGED
|
@@ -24,73 +24,73 @@ let {
|
|
|
24
24
|
apply: Me,
|
|
25
25
|
construct: we
|
|
26
26
|
} = typeof Reflect < "u" && Reflect;
|
|
27
|
-
A || (A = function(
|
|
28
|
-
return
|
|
27
|
+
A || (A = function(o) {
|
|
28
|
+
return o;
|
|
29
29
|
});
|
|
30
|
-
y || (y = function(
|
|
31
|
-
return
|
|
30
|
+
y || (y = function(o) {
|
|
31
|
+
return o;
|
|
32
32
|
});
|
|
33
|
-
Me || (Me = function(
|
|
34
|
-
return
|
|
33
|
+
Me || (Me = function(o, r, a) {
|
|
34
|
+
return o.apply(r, a);
|
|
35
35
|
});
|
|
36
|
-
we || (we = function(
|
|
37
|
-
return new
|
|
36
|
+
we || (we = function(o, r) {
|
|
37
|
+
return new o(...r);
|
|
38
38
|
});
|
|
39
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
|
-
function R(
|
|
41
|
-
return function(
|
|
42
|
-
for (var
|
|
43
|
-
|
|
44
|
-
return Me(
|
|
40
|
+
function R(l) {
|
|
41
|
+
return function(o) {
|
|
42
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
|
43
|
+
a[f - 1] = arguments[f];
|
|
44
|
+
return Me(l, o, a);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function cn(
|
|
47
|
+
function cn(l) {
|
|
48
48
|
return function() {
|
|
49
|
-
for (var
|
|
50
|
-
|
|
51
|
-
return we(
|
|
49
|
+
for (var o = arguments.length, r = new Array(o), a = 0; a < o; a++)
|
|
50
|
+
r[a] = arguments[a];
|
|
51
|
+
return we(l, r);
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
let
|
|
56
|
-
mt && mt(
|
|
57
|
-
let
|
|
58
|
-
for (;
|
|
59
|
-
let f =
|
|
54
|
+
function s(l, o) {
|
|
55
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
|
|
56
|
+
mt && mt(l, null);
|
|
57
|
+
let a = o.length;
|
|
58
|
+
for (; a--; ) {
|
|
59
|
+
let f = o[a];
|
|
60
60
|
if (typeof f == "string") {
|
|
61
|
-
const L =
|
|
62
|
-
L !== f && (on(
|
|
61
|
+
const L = r(f);
|
|
62
|
+
L !== f && (on(o) || (o[a] = L), f = L);
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
l[f] = !0;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return l;
|
|
67
67
|
}
|
|
68
|
-
function un(
|
|
69
|
-
for (let
|
|
70
|
-
N(
|
|
71
|
-
return
|
|
68
|
+
function un(l) {
|
|
69
|
+
for (let o = 0; o < l.length; o++)
|
|
70
|
+
N(l, o) || (l[o] = null);
|
|
71
|
+
return l;
|
|
72
72
|
}
|
|
73
|
-
function x(
|
|
74
|
-
const
|
|
75
|
-
for (const [
|
|
76
|
-
N(
|
|
77
|
-
return
|
|
73
|
+
function x(l) {
|
|
74
|
+
const o = St(null);
|
|
75
|
+
for (const [r, a] of At(l))
|
|
76
|
+
N(l, r) && (Array.isArray(a) ? o[r] = un(a) : a && typeof a == "object" && a.constructor === Object ? o[r] = x(a) : o[r] = a);
|
|
77
|
+
return o;
|
|
78
78
|
}
|
|
79
|
-
function K(
|
|
80
|
-
for (;
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
if (
|
|
84
|
-
return R(
|
|
85
|
-
if (typeof
|
|
86
|
-
return R(
|
|
79
|
+
function K(l, o) {
|
|
80
|
+
for (; l !== null; ) {
|
|
81
|
+
const a = an(l, o);
|
|
82
|
+
if (a) {
|
|
83
|
+
if (a.get)
|
|
84
|
+
return R(a.get);
|
|
85
|
+
if (typeof a.value == "function")
|
|
86
|
+
return R(a.value);
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
l = rn(l);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function r() {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
-
return
|
|
93
|
+
return r;
|
|
94
94
|
}
|
|
95
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
|
|
@@ -130,15 +130,15 @@ const Z = {
|
|
|
130
130
|
// Deprecated
|
|
131
131
|
}, Sn = function() {
|
|
132
132
|
return typeof window > "u" ? null : window;
|
|
133
|
-
}, Rn = function(
|
|
134
|
-
if (typeof
|
|
133
|
+
}, Rn = function(o, r) {
|
|
134
|
+
if (typeof o != "object" || typeof o.createPolicy != "function")
|
|
135
135
|
return null;
|
|
136
|
-
let
|
|
136
|
+
let a = null;
|
|
137
137
|
const f = "data-tt-policy-suffix";
|
|
138
|
-
|
|
139
|
-
const L = "dompurify" + (
|
|
138
|
+
r && r.hasAttribute(f) && (a = r.getAttribute(f));
|
|
139
|
+
const L = "dompurify" + (a ? "#" + a : "");
|
|
140
140
|
try {
|
|
141
|
-
return
|
|
141
|
+
return o.createPolicy(L, {
|
|
142
142
|
createHTML(O) {
|
|
143
143
|
return O;
|
|
144
144
|
},
|
|
@@ -151,27 +151,27 @@ const Z = {
|
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
function Lt() {
|
|
154
|
-
let
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
154
|
+
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sn();
|
|
155
|
+
const o = (i) => Lt(i);
|
|
156
|
+
if (o.version = "3.1.6", o.removed = [], !l || !l.document || l.document.nodeType !== Z.document)
|
|
157
|
+
return o.isSupported = !1, o;
|
|
158
158
|
let {
|
|
159
|
-
document:
|
|
160
|
-
} =
|
|
161
|
-
const
|
|
159
|
+
document: r
|
|
160
|
+
} = l;
|
|
161
|
+
const a = r, f = a.currentScript, {
|
|
162
162
|
DocumentFragment: L,
|
|
163
163
|
HTMLTemplateElement: O,
|
|
164
164
|
Node: J,
|
|
165
165
|
Element: xe,
|
|
166
166
|
NodeFilter: z,
|
|
167
|
-
NamedNodeMap: Ot =
|
|
167
|
+
NamedNodeMap: Ot = l.NamedNodeMap || l.MozNamedAttrMap,
|
|
168
168
|
HTMLFormElement: Nt,
|
|
169
169
|
DOMParser: Dt,
|
|
170
170
|
trustedTypes: Q
|
|
171
|
-
} =
|
|
171
|
+
} = l, W = xe.prototype, bt = K(W, "cloneNode"), Ct = K(W, "remove"), It = K(W, "nextSibling"), Mt = K(W, "childNodes"), ee = K(W, "parentNode");
|
|
172
172
|
if (typeof O == "function") {
|
|
173
|
-
const i =
|
|
174
|
-
i.content && i.content.ownerDocument && (
|
|
173
|
+
const i = r.createElement("template");
|
|
174
|
+
i.content && i.content.ownerDocument && (r = i.content.ownerDocument);
|
|
175
175
|
}
|
|
176
176
|
let E, G = "";
|
|
177
177
|
const {
|
|
@@ -179,11 +179,11 @@ function Lt() {
|
|
|
179
179
|
createNodeIterator: wt,
|
|
180
180
|
createDocumentFragment: xt,
|
|
181
181
|
getElementsByTagName: Pt
|
|
182
|
-
} =
|
|
182
|
+
} = r, {
|
|
183
183
|
importNode: vt
|
|
184
|
-
} =
|
|
184
|
+
} = a;
|
|
185
185
|
let D = {};
|
|
186
|
-
|
|
186
|
+
o.isSupported = typeof At == "function" && typeof ee == "function" && ce && ce.createHTMLDocument !== void 0;
|
|
187
187
|
const {
|
|
188
188
|
MUSTACHE_EXPR: ue,
|
|
189
189
|
ERB_EXPR: fe,
|
|
@@ -197,9 +197,9 @@ function Lt() {
|
|
|
197
197
|
let {
|
|
198
198
|
IS_ALLOWED_URI: ve
|
|
199
199
|
} = ht, m = null;
|
|
200
|
-
const ke =
|
|
200
|
+
const ke = s({}, [..._t, ...De, ...be, ...Ce, ...Tt]);
|
|
201
201
|
let p = null;
|
|
202
|
-
const Ue =
|
|
202
|
+
const Ue = s({}, [...Et, ...Ie, ...gt, ...se]);
|
|
203
203
|
let u = Object.seal(St(null, {
|
|
204
204
|
tagNameCheck: {
|
|
205
205
|
writable: !0,
|
|
@@ -222,37 +222,37 @@ function Lt() {
|
|
|
222
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
223
|
const zt = "user-content-";
|
|
224
224
|
let ge = !0, Y = !1, k = {}, U = null;
|
|
225
|
-
const Be =
|
|
225
|
+
const Be = s({}, ["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 Ye = null;
|
|
227
|
-
const Xe =
|
|
227
|
+
const Xe = s({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
228
228
|
let he = null;
|
|
229
|
-
const Ve =
|
|
229
|
+
const Ve = s({}, ["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
230
|
let F = I, Ae = !1, Se = null;
|
|
231
|
-
const Wt =
|
|
231
|
+
const Wt = s({}, [oe, ie, I], Ne);
|
|
232
232
|
let X = null;
|
|
233
233
|
const Gt = ["application/xhtml+xml", "text/html"], Bt = "text/html";
|
|
234
234
|
let d = null, H = null;
|
|
235
|
-
const Yt =
|
|
235
|
+
const Yt = r.createElement("form"), je = function(e) {
|
|
236
236
|
return e instanceof RegExp || e instanceof Function;
|
|
237
237
|
}, Re = function() {
|
|
238
238
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
239
239
|
if (!(H && H === e)) {
|
|
240
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") ?
|
|
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") ? s({}, e.ALLOWED_TAGS, d) : ke, p = N(e, "ALLOWED_ATTR") ? s({}, e.ALLOWED_ATTR, d) : Ue, Se = N(e, "ALLOWED_NAMESPACES") ? s({}, e.ALLOWED_NAMESPACES, Ne) : Wt, he = N(e, "ADD_URI_SAFE_ATTR") ? s(
|
|
242
242
|
x(Ve),
|
|
243
243
|
// eslint-disable-line indent
|
|
244
244
|
e.ADD_URI_SAFE_ATTR,
|
|
245
245
|
// eslint-disable-line indent
|
|
246
246
|
d
|
|
247
247
|
// eslint-disable-line indent
|
|
248
|
-
) : Ve, Ye = N(e, "ADD_DATA_URI_TAGS") ?
|
|
248
|
+
) : Ve, Ye = N(e, "ADD_DATA_URI_TAGS") ? s(
|
|
249
249
|
x(Xe),
|
|
250
250
|
// eslint-disable-line indent
|
|
251
251
|
e.ADD_DATA_URI_TAGS,
|
|
252
252
|
// eslint-disable-line indent
|
|
253
253
|
d
|
|
254
254
|
// eslint-disable-line indent
|
|
255
|
-
) : Xe, U = N(e, "FORBID_CONTENTS") ?
|
|
255
|
+
) : Xe, U = N(e, "FORBID_CONTENTS") ? s({}, e.FORBID_CONTENTS, d) : Be, B = N(e, "FORBID_TAGS") ? s({}, e.FORBID_TAGS, d) : {}, pe = N(e, "FORBID_ATTR") ? s({}, 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 = s({}, Tt), p = [], k.html === !0 && (s(m, _t), s(p, Et)), k.svg === !0 && (s(m, De), s(p, Ie), s(p, se)), k.svgFilters === !0 && (s(m, be), s(p, Ie), s(p, se)), k.mathMl === !0 && (s(m, Ce), s(p, gt), s(p, se))), e.ADD_TAGS && (m === ke && (m = x(m)), s(m, e.ADD_TAGS, d)), e.ADD_ATTR && (p === Ue && (p = x(p)), s(p, e.ADD_ATTR, d)), e.ADD_URI_SAFE_ATTR && s(he, e.ADD_URI_SAFE_ATTR, d), e.FORBID_CONTENTS && (U === Be && (U = x(U)), s(U, e.FORBID_CONTENTS, d)), ge && (m["#text"] = !0), w && s(m, ["html", "head", "body"]), m.table && (s(m, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
256
256
|
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
257
257
|
throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
258
258
|
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -262,16 +262,16 @@ function Lt() {
|
|
|
262
262
|
E === void 0 && (E = Rn(Q, f)), E !== null && typeof G == "string" && (G = E.createHTML(""));
|
|
263
263
|
A && A(e), H = e;
|
|
264
264
|
}
|
|
265
|
-
}, $e =
|
|
265
|
+
}, $e = s({}, ["mi", "mo", "mn", "ms", "mtext"]), qe = s({}, ["foreignobject", "annotation-xml"]), Xt = s({}, ["title", "style", "font", "a", "script"]), Ke = s({}, [...De, ...be, ...fn]), Ze = s({}, [...Ce, ...mn]), Vt = function(e) {
|
|
266
266
|
let t = ee(e);
|
|
267
267
|
(!t || !t.tagName) && (t = {
|
|
268
268
|
namespaceURI: F,
|
|
269
269
|
tagName: "template"
|
|
270
270
|
});
|
|
271
|
-
const
|
|
272
|
-
return Se[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === I ?
|
|
271
|
+
const n = le(e.tagName), c = le(t.tagName);
|
|
272
|
+
return Se[e.namespaceURI] ? e.namespaceURI === ie ? t.namespaceURI === I ? n === "svg" : t.namespaceURI === oe ? n === "svg" && (c === "annotation-xml" || $e[c]) : !!Ke[n] : e.namespaceURI === oe ? t.namespaceURI === I ? n === "math" : t.namespaceURI === ie ? n === "math" && qe[c] : !!Ze[n] : e.namespaceURI === I ? t.namespaceURI === ie && !qe[c] || t.namespaceURI === oe && !$e[c] ? !1 : !Ze[n] && (Xt[n] || !Ke[n]) : !!(X === "application/xhtml+xml" && Se[e.namespaceURI]) : !1;
|
|
273
273
|
}, b = function(e) {
|
|
274
|
-
j(
|
|
274
|
+
j(o.removed, {
|
|
275
275
|
element: e
|
|
276
276
|
});
|
|
277
277
|
try {
|
|
@@ -281,12 +281,12 @@ function Lt() {
|
|
|
281
281
|
}
|
|
282
282
|
}, re = function(e, t) {
|
|
283
283
|
try {
|
|
284
|
-
j(
|
|
284
|
+
j(o.removed, {
|
|
285
285
|
attribute: t.getAttributeNode(e),
|
|
286
286
|
from: t
|
|
287
287
|
});
|
|
288
288
|
} catch {
|
|
289
|
-
j(
|
|
289
|
+
j(o.removed, {
|
|
290
290
|
attribute: null,
|
|
291
291
|
from: t
|
|
292
292
|
});
|
|
@@ -303,12 +303,12 @@ function Lt() {
|
|
|
303
303
|
} catch {
|
|
304
304
|
}
|
|
305
305
|
}, Je = function(e) {
|
|
306
|
-
let t = null,
|
|
306
|
+
let t = null, n = null;
|
|
307
307
|
if (Ee)
|
|
308
308
|
e = "<remove></remove>" + e;
|
|
309
309
|
else {
|
|
310
310
|
const _ = dt(e, /^[\r\n\t ]+/);
|
|
311
|
-
|
|
311
|
+
n = _ && _[0];
|
|
312
312
|
}
|
|
313
313
|
X === "application/xhtml+xml" && F === I && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
|
|
314
314
|
const c = E ? E.createHTML(e) : e;
|
|
@@ -325,7 +325,7 @@ function Lt() {
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
const T = t.body || t.documentElement;
|
|
328
|
-
return e &&
|
|
328
|
+
return e && n && T.insertBefore(r.createTextNode(n), T.childNodes[0] || null), F === I ? Pt.call(t, w ? "html" : "body")[0] : w ? t.documentElement : T;
|
|
329
329
|
}, Qe = function(e) {
|
|
330
330
|
return wt.call(
|
|
331
331
|
e.ownerDocument || e,
|
|
@@ -338,24 +338,24 @@ function Lt() {
|
|
|
338
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
339
|
}, tt = function(e) {
|
|
340
340
|
return typeof J == "function" && e instanceof J;
|
|
341
|
-
}, M = function(e, t,
|
|
341
|
+
}, M = function(e, t, n) {
|
|
342
342
|
D[e] && ae(D[e], (c) => {
|
|
343
|
-
c.call(
|
|
343
|
+
c.call(o, t, n, H);
|
|
344
344
|
});
|
|
345
345
|
}, nt = function(e) {
|
|
346
346
|
let t = null;
|
|
347
347
|
if (M("beforeSanitizeElements", e, null), et(e))
|
|
348
348
|
return b(e), !0;
|
|
349
|
-
const
|
|
349
|
+
const n = d(e.nodeName);
|
|
350
350
|
if (M("uponSanitizeElement", e, {
|
|
351
|
-
tagName:
|
|
351
|
+
tagName: n,
|
|
352
352
|
allowedTags: m
|
|
353
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
354
|
return b(e), !0;
|
|
355
|
-
if (!m[
|
|
356
|
-
if (!B[
|
|
355
|
+
if (!m[n] || B[n]) {
|
|
356
|
+
if (!B[n] && it(n) && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
357
357
|
return !1;
|
|
358
|
-
if (ge && !U[
|
|
358
|
+
if (ge && !U[n]) {
|
|
359
359
|
const c = ee(e) || e.parentNode, T = Mt(e) || e.childNodes;
|
|
360
360
|
if (T && c) {
|
|
361
361
|
const _ = T.length;
|
|
@@ -367,13 +367,13 @@ function Lt() {
|
|
|
367
367
|
}
|
|
368
368
|
return b(e), !0;
|
|
369
369
|
}
|
|
370
|
-
return e instanceof xe && !Vt(e) || (
|
|
370
|
+
return e instanceof xe && !Vt(e) || (n === "noscript" || n === "noembed" || n === "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
371
|
t = $(t, c, " ");
|
|
372
|
-
}), e.textContent !== t && (j(
|
|
372
|
+
}), e.textContent !== t && (j(o.removed, {
|
|
373
373
|
element: e.cloneNode()
|
|
374
374
|
}), e.textContent = t)), M("afterSanitizeElements", e, null), !1);
|
|
375
|
-
}, ot = function(e, t,
|
|
376
|
-
if (We && (t === "id" || t === "name") && (
|
|
375
|
+
}, ot = function(e, t, n) {
|
|
376
|
+
if (We && (t === "id" || t === "name") && (n in r || n in Yt))
|
|
377
377
|
return !1;
|
|
378
378
|
if (!(de && !pe[t] && h(kt, t))) {
|
|
379
379
|
if (!(Fe && h(Ut, t))) {
|
|
@@ -384,14 +384,14 @@ function Lt() {
|
|
|
384
384
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
385
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
|
|
386
386
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
387
|
-
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck,
|
|
387
|
+
t === "is" && u.allowCustomizedBuiltInElements && (u.tagNameCheck instanceof RegExp && h(u.tagNameCheck, n) || u.tagNameCheck instanceof Function && u.tagNameCheck(n)))
|
|
388
388
|
)
|
|
389
389
|
return !1;
|
|
390
390
|
} else if (!he[t]) {
|
|
391
|
-
if (!h(ve, $(
|
|
392
|
-
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && sn(
|
|
393
|
-
if (!(He && !h(Ft, $(
|
|
394
|
-
if (
|
|
391
|
+
if (!h(ve, $(n, Pe, ""))) {
|
|
392
|
+
if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && sn(n, "data:") === 0 && Ye[e])) {
|
|
393
|
+
if (!(He && !h(Ft, $(n, Pe, "")))) {
|
|
394
|
+
if (n)
|
|
395
395
|
return !1;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -409,7 +409,7 @@ function Lt() {
|
|
|
409
409
|
} = e;
|
|
410
410
|
if (!t)
|
|
411
411
|
return;
|
|
412
|
-
const
|
|
412
|
+
const n = {
|
|
413
413
|
attrName: "",
|
|
414
414
|
attrValue: "",
|
|
415
415
|
keepAttr: !0,
|
|
@@ -423,11 +423,11 @@ function Lt() {
|
|
|
423
423
|
value: C
|
|
424
424
|
} = T, V = d(_);
|
|
425
425
|
let g = _ === "value" ? C : ln(C);
|
|
426
|
-
if (
|
|
426
|
+
if (n.attrName = V, n.attrValue = g, n.keepAttr = !0, n.forceKeepAttr = void 0, M("uponSanitizeAttribute", e, n), g = n.attrValue, _e && h(/((--!?|])>)|<\/(style|title)/i, g)) {
|
|
427
427
|
re(_, e);
|
|
428
428
|
continue;
|
|
429
429
|
}
|
|
430
|
-
if (
|
|
430
|
+
if (n.forceKeepAttr || (re(_, e), !n.keepAttr))
|
|
431
431
|
continue;
|
|
432
432
|
if (!ze && h(/\/>/i, g)) {
|
|
433
433
|
re(_, e);
|
|
@@ -450,7 +450,7 @@ function Lt() {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
try {
|
|
453
|
-
S ? e.setAttributeNS(S, _, g) : e.setAttribute(_, g), et(e) ? b(e) : pt(
|
|
453
|
+
S ? e.setAttributeNS(S, _, g) : e.setAttribute(_, g), et(e) ? b(e) : pt(o.removed);
|
|
454
454
|
} catch {
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -458,29 +458,29 @@ function Lt() {
|
|
|
458
458
|
M("afterSanitizeAttributes", e, null);
|
|
459
459
|
}, jt = function i(e) {
|
|
460
460
|
let t = null;
|
|
461
|
-
const
|
|
462
|
-
for (M("beforeSanitizeShadowDOM", e, null); t =
|
|
461
|
+
const n = Qe(e);
|
|
462
|
+
for (M("beforeSanitizeShadowDOM", e, null); t = n.nextNode(); )
|
|
463
463
|
M("uponSanitizeShadowNode", t, null), !nt(t) && (t.content instanceof L && i(t.content), rt(t));
|
|
464
464
|
M("afterSanitizeShadowDOM", e, null);
|
|
465
465
|
};
|
|
466
|
-
return
|
|
467
|
-
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null,
|
|
466
|
+
return o.sanitize = function(i) {
|
|
467
|
+
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = null, n = null, c = null, T = null;
|
|
468
468
|
if (Ae = !i, Ae && (i = "<!-->"), typeof i != "string" && !tt(i))
|
|
469
469
|
if (typeof i.toString == "function") {
|
|
470
470
|
if (i = i.toString(), typeof i != "string")
|
|
471
471
|
throw q("dirty is not a string, aborting");
|
|
472
472
|
} else
|
|
473
473
|
throw q("toString is not a function");
|
|
474
|
-
if (!
|
|
474
|
+
if (!o.isSupported)
|
|
475
475
|
return i;
|
|
476
|
-
if (Te || Re(e),
|
|
476
|
+
if (Te || Re(e), o.removed = [], typeof i == "string" && (Y = !1), Y) {
|
|
477
477
|
if (i.nodeName) {
|
|
478
478
|
const C = d(i.nodeName);
|
|
479
479
|
if (!m[C] || B[C])
|
|
480
480
|
throw q("root node is forbidden and cannot be sanitized in-place");
|
|
481
481
|
}
|
|
482
482
|
} else if (i instanceof J)
|
|
483
|
-
t = Je("<!---->"),
|
|
483
|
+
t = Je("<!---->"), n = t.ownerDocument.importNode(i, !0), n.nodeType === Z.element && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
|
|
484
484
|
else {
|
|
485
485
|
if (!v && !P && !w && // eslint-disable-next-line unicorn/prefer-includes
|
|
486
486
|
i.indexOf("<") === -1)
|
|
@@ -500,32 +500,32 @@ function Lt() {
|
|
|
500
500
|
T.appendChild(t.firstChild);
|
|
501
501
|
else
|
|
502
502
|
T = t;
|
|
503
|
-
return (p.shadowroot || p.shadowrootmode) && (T = vt.call(
|
|
503
|
+
return (p.shadowroot || p.shadowrootmode) && (T = vt.call(a, T, !0)), T;
|
|
504
504
|
}
|
|
505
505
|
let S = w ? t.outerHTML : t.innerHTML;
|
|
506
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
507
|
` + S), P && ae([ue, fe, me], (C) => {
|
|
508
508
|
S = $(S, C, " ");
|
|
509
509
|
}), E && ne ? E.createHTML(S) : S;
|
|
510
|
-
},
|
|
510
|
+
}, o.setConfig = function() {
|
|
511
511
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
512
512
|
Re(i), Te = !0;
|
|
513
|
-
},
|
|
513
|
+
}, o.clearConfig = function() {
|
|
514
514
|
H = null, Te = !1;
|
|
515
|
-
},
|
|
515
|
+
}, o.isValidAttribute = function(i, e, t) {
|
|
516
516
|
H || Re({});
|
|
517
|
-
const
|
|
518
|
-
return ot(
|
|
519
|
-
},
|
|
517
|
+
const n = d(i), c = d(e);
|
|
518
|
+
return ot(n, c, t);
|
|
519
|
+
}, o.addHook = function(i, e) {
|
|
520
520
|
typeof e == "function" && (D[i] = D[i] || [], j(D[i], e));
|
|
521
|
-
},
|
|
521
|
+
}, o.removeHook = function(i) {
|
|
522
522
|
if (D[i])
|
|
523
523
|
return pt(D[i]);
|
|
524
|
-
},
|
|
524
|
+
}, o.removeHooks = function(i) {
|
|
525
525
|
D[i] && (D[i] = []);
|
|
526
|
-
},
|
|
526
|
+
}, o.removeAllHooks = function() {
|
|
527
527
|
D = {};
|
|
528
|
-
},
|
|
528
|
+
}, o;
|
|
529
529
|
}
|
|
530
530
|
var yn = Lt();
|
|
531
531
|
const Ln = ["role"], On = ["innerHTML"], Nn = { key: 1 }, Dn = /* @__PURE__ */ $t({
|
|
@@ -534,24 +534,24 @@ const Ln = ["role"], On = ["innerHTML"], Nn = { key: 1 }, Dn = /* @__PURE__ */ $
|
|
|
534
534
|
text: {},
|
|
535
535
|
status: { default: "info" }
|
|
536
536
|
},
|
|
537
|
-
setup(
|
|
538
|
-
const
|
|
539
|
-
() =>
|
|
540
|
-
), f = lt(() =>
|
|
541
|
-
if (typeof
|
|
537
|
+
setup(l) {
|
|
538
|
+
const o = qt(), r = l, a = lt(
|
|
539
|
+
() => r.status ? ft[Jt(r.status)] : ft.Info
|
|
540
|
+
), f = lt(() => r.status === Qt.Error ? "alert" : "status"), L = () => {
|
|
541
|
+
if (typeof r.text != "function")
|
|
542
542
|
return ut.error(
|
|
543
|
-
`Toast: ${
|
|
543
|
+
`Toast: ${r.text} is not a valid text prop value. Must be either a render function or a string.`
|
|
544
544
|
), null;
|
|
545
|
-
const O =
|
|
545
|
+
const O = r.text();
|
|
546
546
|
return Zt(O) ? O : (ut.error("Toast: The text prop must return a VNode."), null);
|
|
547
547
|
};
|
|
548
548
|
return (O, J) => (ye(), Le("li", {
|
|
549
549
|
role: f.value,
|
|
550
|
-
class: Kt([[Oe(
|
|
550
|
+
class: Kt([[Oe(o).root, Oe(o)[`status--${r.status}`]], "stash-toast"]),
|
|
551
551
|
"data-test": "stash-toast"
|
|
552
552
|
}, [
|
|
553
|
-
ct(tn, { name:
|
|
554
|
-
typeof
|
|
553
|
+
ct(tn, { name: a.value }, null, 8, ["name"]),
|
|
554
|
+
typeof r.text == "string" ? (ye(), Le("div", {
|
|
555
555
|
key: 0,
|
|
556
556
|
innerHTML: Oe(yn).sanitize(O.text)
|
|
557
557
|
}, null, 8, On)) : (ye(), Le("div", Nn, [
|