@covalent/components 8.2.0 → 8.2.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/action-ribbon.js +3 -2
- package/action-ribbon.mjs +10 -9
- package/alert.js +3 -2
- package/alert.mjs +10 -9
- package/app-shell.js +2 -1
- package/app-shell.mjs +20 -19
- package/{base-element-atp_8bvP.js → base-element-58a3f9ea.js} +1 -1
- package/{base-element--jaKdI-8.mjs → base-element-67ae173f.mjs} +2 -2
- package/button.js +3 -2
- package/button.mjs +16 -15
- package/card.js +3 -2
- package/card.mjs +5 -4
- package/check-list-item.js +15 -11
- package/check-list-item.mjs +68 -62
- package/checkbox.js +2 -1
- package/checkbox.mjs +25 -23
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +7 -7
- package/{class-map-YPXv0Hj4.mjs → class-map-4b94b017.mjs} +1 -1
- package/{class-map-wtcW44Of.js → class-map-b5efe8da.js} +1 -1
- package/code-snippet-2137b11c.js +13 -0
- package/code-snippet-ccca324f.mjs +12278 -0
- package/code-snippet.js +1 -12
- package/code-snippet.mjs +7 -12251
- package/{dialog-tIMorfuj.mjs → dialog-3ca1b701.mjs} +62 -60
- package/{dialog-SpbwRuWY.js → dialog-82b03745.js} +7 -6
- package/dialog.js +1 -1
- package/dialog.mjs +10 -10
- package/{directive-helpers--rJ2jf3N.js → directive-helpers-0ce1f995.js} +1 -1
- package/{directive-helpers-9566lOOl.mjs → directive-helpers-e3ea6592.mjs} +1 -1
- package/drawer.js +3 -2
- package/drawer.mjs +12 -11
- package/empty-state.js +2 -1
- package/empty-state.mjs +6 -5
- package/{event-options-2TJPtsKy.js → event-options-3f5eb195.js} +1 -1
- package/{event-options-0xzSdemG.mjs → event-options-78d6cf94.mjs} +1 -1
- package/{form-element-5s8gft-A.js → form-element-c553d6f5.js} +1 -1
- package/{form-element-gM33WEq3.mjs → form-element-ffcf59ff.mjs} +4 -4
- package/{foundation-3Wg80pI7.mjs → foundation-39dc72d2.mjs} +1 -1
- package/{foundation-1Vzfdey_.js → foundation-786bf879.js} +1 -1
- package/icon-button.js +3 -2
- package/icon-button.mjs +15 -14
- package/icon-check-toggle.js +5 -4
- package/icon-check-toggle.mjs +24 -22
- package/icon-radio-toggle.js +5 -4
- package/icon-radio-toggle.mjs +27 -25
- package/icon.js +5 -1
- package/icon.mjs +21 -15
- package/{if-defined-BH_l2PVl.mjs → if-defined-c367f208.mjs} +1 -1
- package/{if-defined-lAIUwAsA.js → if-defined-f1c45245.js} +1 -1
- package/index.js +560 -1
- package/index.mjs +3654 -124
- package/{inert.esm-vhZXthJr.mjs → inert.esm-359d4581.mjs} +1 -1
- package/linear-progress.js +3 -2
- package/linear-progress.mjs +13 -12
- package/{mwc-list-item.css-d-SHhq7Q.mjs → list-item-1fc0d619.mjs} +9 -199
- package/{mwc-list-item.css-yJ5bjNGc.js → list-item-209613bf.js} +6 -28
- package/list-item.js +3 -3
- package/list-item.mjs +25 -25
- package/list.js +8 -3
- package/list.mjs +37 -31
- package/menu.js +5 -1
- package/menu.mjs +34 -28
- package/mwc-checkbox-base-3d8c9549.js +41 -0
- package/mwc-checkbox-base-f10fd709.mjs +198 -0
- package/{mwc-checkbox.css-c44nPIEs.mjs → mwc-checkbox.css-8f4f1a9b.mjs} +3 -198
- package/{mwc-checkbox.css-JOD-Qh-9.js → mwc-checkbox.css-b3434429.js} +2 -42
- package/{mwc-drawer-base-8e_1aSuf.mjs → mwc-drawer-base-135de8a5.mjs} +26 -24
- package/{mwc-drawer-base-Fv3JVYPS.js → mwc-drawer-base-798b11f8.js} +5 -5
- package/{mwc-icon-eaW72Ei7.mjs → mwc-icon-bf656cf5.mjs} +5 -6
- package/{mwc-icon-r2y4-AXI.js → mwc-icon-f87639bc.js} +2 -2
- package/{mwc-line-ripple-directive-iRoAkPnW.js → mwc-line-ripple-directive-a6b39a3c.js} +1 -1
- package/{mwc-line-ripple-directive-Q_HMRGPE.mjs → mwc-line-ripple-directive-b24a914e.mjs} +6 -6
- package/mwc-list-base-400b00e2.js +111 -0
- package/{mwc-list.css-_OVL_dbR.mjs → mwc-list-base-76e37212.mjs} +212 -213
- package/mwc-list-item-base-297d86b0.js +28 -0
- package/mwc-list-item-base-fe4398c3.mjs +202 -0
- package/{mwc-menu.css-cKtc1ZD4.mjs → mwc-menu-base-c4bc88ea.mjs} +75 -74
- package/mwc-menu-base-c75ca473.js +190 -0
- package/mwc-radio-base-913e02e2.js +101 -0
- package/{mwc-radio.css-_lt-Vcvl.mjs → mwc-radio-base-a374fbd9.mjs} +117 -123
- package/mwc-radio.css-4e140252.js +5 -0
- package/mwc-radio.css-7454bb11.mjs +10 -0
- package/{mwc-slider.css-md7hPAE7.mjs → mwc-slider.css-8b6f275c.mjs} +11 -11
- package/{mwc-slider.css-lCfMVbO5.js → mwc-slider.css-c7107d94.js} +1 -1
- package/{mwc-tab.css-lT5vTf5I.mjs → mwc-tab-base-be0c887f.mjs} +123 -127
- package/{mwc-tab.css-q4Jsbyp5.js → mwc-tab-base-f28722aa.js} +22 -26
- package/{mwc-top-app-bar-base-nm6mdCR3.mjs → mwc-top-app-bar-base-55da3fe4.mjs} +13 -12
- package/{mwc-top-app-bar-base-8qOIX1me.js → mwc-top-app-bar-base-aec60f27.js} +3 -3
- package/nav-list-item.js +6 -5
- package/nav-list-item.mjs +38 -37
- package/package.json +1 -1
- package/{query-duvhtfSs.js → query-680f1868.js} +1 -1
- package/{query-assigned-nodes-1p7z6CEm.js → query-assigned-nodes-99eae71d.js} +1 -1
- package/{query-assigned-nodes-6yHI5ePh.mjs → query-assigned-nodes-df691e78.mjs} +1 -1
- package/{query-1WmuF6Bq.mjs → query-d843aa92.mjs} +1 -1
- package/radio-list-item.js +13 -9
- package/radio-list-item.mjs +64 -58
- package/radio.js +2 -1
- package/radio.mjs +25 -23
- package/{ripple-handlers-HeGhXgD2.js → ripple-handlers-5d5b21db.js} +8 -8
- package/{ripple-handlers-BwaZu9Ps.mjs → ripple-handlers-f37f21cf.mjs} +17 -16
- package/select.js +15 -10
- package/select.mjs +147 -139
- package/side-sheet.js +2 -1
- package/side-sheet.mjs +12 -11
- package/slider-range.js +1 -1
- package/slider-range.mjs +14 -14
- package/slider.js +1 -1
- package/slider.mjs +16 -16
- package/snackbar.js +11 -10
- package/snackbar.mjs +36 -34
- package/{state-LqPxt99W.js → state-0974a8e5.js} +1 -1
- package/{state-inNZe6rL.mjs → state-b5e865db.mjs} +1 -1
- package/status-header-item.js +2 -1
- package/status-header-item.mjs +4 -3
- package/status-header.js +3 -2
- package/status-header.mjs +5 -4
- package/{style-map-66_3wrLx.js → style-map-88d2563f.js} +1 -1
- package/{style-map-8yp6DGeh.mjs → style-map-bc3ed3e0.mjs} +2 -2
- package/style.css +1 -1
- package/switch.js +3 -2
- package/switch.mjs +16 -15
- package/tab-bar.js +22 -18
- package/tab-bar.mjs +203 -195
- package/tab.js +6 -1
- package/tab.mjs +32 -26
- package/text-lockup.js +2 -1
- package/text-lockup.mjs +9 -8
- package/textarea.js +19 -15
- package/textarea.mjs +65 -59
- package/textfield-62e16cc2.js +133 -0
- package/textfield-63d1859a.mjs +932 -0
- package/textfield.js +7 -3
- package/textfield.mjs +36 -30
- package/toolbar.js +2 -1
- package/toolbar.mjs +10 -9
- package/tooltip.js +3 -2
- package/tooltip.mjs +10 -9
- package/{top-app-bar-qcW2ucE3.js → top-app-bar-a531c1b4.js} +3 -2
- package/{top-app-bar-h0V-USh_.mjs → top-app-bar-f83386e0.mjs} +3 -2
- package/top-app-bar-fixed.js +6 -6
- package/top-app-bar-fixed.mjs +28 -27
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +9 -9
- package/tree-list-item.js +2 -1
- package/tree-list-item.mjs +7 -6
- package/tree-list.js +2 -1
- package/tree-list.mjs +3 -2
- package/{tslib.es6-S8SvF2K1.mjs → tslib.es6-f3e988cd.mjs} +5 -5
- package/typography.js +2 -1
- package/typography.mjs +4 -3
- package/_commonjsHelpers-ZPn_iTGj.mjs +0 -28
- package/_commonjsHelpers-fFrWAeZI.js +0 -1
- package/chip-M5Vb5Kd6.js +0 -492
- package/chip-m2mKzWQT.mjs +0 -3115
- package/chip-set.js +0 -75
- package/chip-set.mjs +0 -531
- package/chip.js +0 -1
- package/chip.mjs +0 -12
- package/expansion-panel-item.js +0 -24
- package/expansion-panel-item.mjs +0 -106
- package/expansion-panel.js +0 -7
- package/expansion-panel.mjs +0 -59
- package/formfield.js +0 -79
- package/formfield.mjs +0 -275
- package/list-item-F2e6aWaj.mjs +0 -11
- package/list-item-Ze98reWt.js +0 -5
- package/mwc-list.css-DjU8XB1m.js +0 -111
- package/mwc-menu.css-qavo4jer.js +0 -190
- package/mwc-radio.css-h_Wv0Eag.js +0 -105
- package/textfield-7aU1kEO6.mjs +0 -936
- package/textfield-jvevIGSw.js +0 -136
- /package/{aria-property-52VAcg_f.js → aria-property-849c8816.js} +0 -0
- /package/{aria-property-wYjPNXcK.mjs → aria-property-fa2717fe.mjs} +0 -0
- /package/{inert.esm-TSRtlTFV.js → inert.esm-2cee6f2e.js} +0 -0
- /package/{observer-LlGBroG9.js → observer-a096ab43.js} +0 -0
- /package/{observer-cKAgu-MI.mjs → observer-be7b92e2.mjs} +0 -0
- /package/{property-iZpLBvy-.js → property-57f6f6fe.js} +0 -0
- /package/{property-K7hFBmOi.mjs → property-9b6ea53b.mjs} +0 -0
- /package/{query-assigned-elements-yFWOzcsT.mjs → query-assigned-elements-4a39219d.mjs} +0 -0
- /package/{query-assigned-elements-j_5ZiL65.js → query-assigned-elements-f623705d.js} +0 -0
- /package/{tslib.es6-5xG0QhxF.js → tslib.es6-98719205.js} +0 -0
- /package/{utils-xAXEDL0Y.mjs → utils-2932417c.mjs} +0 -0
- /package/{utils-W3ENJhq-.js → utils-a8190a39.js} +0 -0
package/index.mjs
CHANGED
@@ -1,126 +1,3656 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import {
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
46
|
-
import "./
|
47
|
-
import "./
|
48
|
-
import "./
|
49
|
-
import "./
|
50
|
-
import "./
|
51
|
-
import "./
|
52
|
-
import "./
|
53
|
-
import "./
|
54
|
-
import "./
|
55
|
-
import "./
|
56
|
-
import "./base-
|
57
|
-
import "./
|
58
|
-
import "./
|
59
|
-
import "./
|
60
|
-
import "./
|
61
|
-
import "./
|
62
|
-
import "./
|
63
|
-
import "./
|
64
|
-
import "./
|
65
|
-
import "./
|
66
|
-
import "./
|
67
|
-
import "./
|
68
|
-
import "./mwc-
|
69
|
-
import "./
|
70
|
-
import "./
|
71
|
-
import "./mwc-
|
72
|
-
import "./mwc-
|
73
|
-
import "./
|
74
|
-
import "./mwc-
|
75
|
-
import "./
|
76
|
-
import "./mwc-
|
77
|
-
import "./
|
78
|
-
import "./
|
79
|
-
import "./
|
1
|
+
var ue = Object.defineProperty;
|
2
|
+
var he = (i, e, t) => e in i ? ue(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
3
|
+
var f = (i, e, t) => (he(i, typeof e != "symbol" ? e + "" : e, t), t);
|
4
|
+
import { CovalentActionRibbon as Jn } from "./action-ribbon.mjs";
|
5
|
+
import { CovalentAlert as tr } from "./alert.mjs";
|
6
|
+
import { CovalentAppShell as ir } from "./app-shell.mjs";
|
7
|
+
import { CovalentButton as rr } from "./button.mjs";
|
8
|
+
import { CovalentCheckbox as ar } from "./checkbox.mjs";
|
9
|
+
import { CovalentCard as lr } from "./card.mjs";
|
10
|
+
import { s as Ht, x as j, i as kt, r as Bt, e as Gt } from "./query-assigned-elements-4a39219d.mjs";
|
11
|
+
import { a as me } from "./utils-2932417c.mjs";
|
12
|
+
import { _ as M, a as T, b as I, c as H, d as fe, e as ve } from "./tslib.es6-f3e988cd.mjs";
|
13
|
+
import { n as R } from "./property-9b6ea53b.mjs";
|
14
|
+
import { i as Wt } from "./query-d843aa92.mjs";
|
15
|
+
import { o as ge } from "./class-map-4b94b017.mjs";
|
16
|
+
import { g as y } from "./code-snippet-ccca324f.mjs";
|
17
|
+
import { C as pr } from "./code-snippet-ccca324f.mjs";
|
18
|
+
import { CovalentCircularProgress as ur } from "./circular-progress.mjs";
|
19
|
+
import { C as mr } from "./dialog-3ca1b701.mjs";
|
20
|
+
import { CovalentDrawer as vr } from "./drawer.mjs";
|
21
|
+
import { CovalentEmptyState as _r } from "./empty-state.mjs";
|
22
|
+
import { CovalentIcon as Ar } from "./icon.mjs";
|
23
|
+
import { CovalentIconButton as Er } from "./icon-button.mjs";
|
24
|
+
import { CovalentIconCheckToggle as Cr } from "./icon-check-toggle.mjs";
|
25
|
+
import { CovalentIconRadioToggle as Ir } from "./icon-radio-toggle.mjs";
|
26
|
+
import { CovalentLinearProgress as Rr } from "./linear-progress.mjs";
|
27
|
+
import { CovalentCheckListItem as Dr } from "./check-list-item.mjs";
|
28
|
+
import { CovalentList as Pr } from "./list.mjs";
|
29
|
+
import { CovalentListItem as Lr } from "./list-item.mjs";
|
30
|
+
import { CovalentNavRailListItem as Mr } from "./nav-list-item.mjs";
|
31
|
+
import { CovalentRadioListItem as zr } from "./radio-list-item.mjs";
|
32
|
+
import { CovalentMenu as kr } from "./menu.mjs";
|
33
|
+
import { CovalentRadio as Gr } from "./radio.mjs";
|
34
|
+
import { CovalentSelect as jr } from "./select.mjs";
|
35
|
+
import { CovalentSideSheet as $r } from "./side-sheet.mjs";
|
36
|
+
import { CovalentSlider as Xr } from "./slider.mjs";
|
37
|
+
import { CovalentSliderRange as Vr } from "./slider-range.mjs";
|
38
|
+
import { CovalentSnackbar as Jr } from "./snackbar.mjs";
|
39
|
+
import { CovalentStatusHeader as to } from "./status-header.mjs";
|
40
|
+
import { CovalentStatusHeaderItem as io } from "./status-header-item.mjs";
|
41
|
+
import { CovalentSwitch as ro } from "./switch.mjs";
|
42
|
+
import { CovalentTab as ao } from "./tab.mjs";
|
43
|
+
import { CovalentTabBar as lo } from "./tab-bar.mjs";
|
44
|
+
import { CovalentTextArea as po } from "./textarea.mjs";
|
45
|
+
import { CovalentTextField as ho } from "./textfield.mjs";
|
46
|
+
import { CovalentTextLockup as fo } from "./text-lockup.mjs";
|
47
|
+
import { CovalentToolbar as go } from "./toolbar.mjs";
|
48
|
+
import { CovalentTooltip as yo } from "./tooltip.mjs";
|
49
|
+
import { CovalentTopAppBar as bo } from "./top-app-bar.mjs";
|
50
|
+
import { CovalentTopAppBarFixed as So } from "./top-app-bar-fixed.mjs";
|
51
|
+
import { CovalentTreeList as wo } from "./tree-list.mjs";
|
52
|
+
import { CovalentTreeListItem as To } from "./tree-list-item.mjs";
|
53
|
+
import { CovalentTypography as Oo } from "./typography.mjs";
|
54
|
+
import "./observer-be7b92e2.mjs";
|
55
|
+
import "./foundation-39dc72d2.mjs";
|
56
|
+
import "./mwc-drawer-base-135de8a5.mjs";
|
57
|
+
import "./inert.esm-359d4581.mjs";
|
58
|
+
import "./base-element-67ae173f.mjs";
|
59
|
+
import "./mwc-icon-bf656cf5.mjs";
|
60
|
+
import "./ripple-handlers-f37f21cf.mjs";
|
61
|
+
import "./state-b5e865db.mjs";
|
62
|
+
import "./style-map-bc3ed3e0.mjs";
|
63
|
+
import "./aria-property-fa2717fe.mjs";
|
64
|
+
import "./event-options-78d6cf94.mjs";
|
65
|
+
import "./if-defined-c367f208.mjs";
|
66
|
+
import "./mwc-checkbox-base-f10fd709.mjs";
|
67
|
+
import "./form-element-ffcf59ff.mjs";
|
68
|
+
import "./mwc-checkbox.css-8f4f1a9b.mjs";
|
69
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
70
|
+
import "./mwc-radio-base-a374fbd9.mjs";
|
71
|
+
import "./mwc-radio.css-7454bb11.mjs";
|
72
|
+
import "./mwc-list-item-base-fe4398c3.mjs";
|
73
|
+
import "./list-item-1fc0d619.mjs";
|
74
|
+
import "./mwc-list-base-76e37212.mjs";
|
75
|
+
import "./mwc-menu-base-c4bc88ea.mjs";
|
76
|
+
import "./mwc-line-ripple-directive-b24a914e.mjs";
|
77
|
+
import "./mwc-slider.css-8b6f275c.mjs";
|
78
|
+
import "./directive-helpers-e3ea6592.mjs";
|
79
|
+
import "./mwc-tab-base-be0c887f.mjs";
|
80
|
+
import "./textfield-63d1859a.mjs";
|
81
|
+
import "./mwc-top-app-bar-base-55da3fe4.mjs";
|
82
|
+
import "./top-app-bar-f83386e0.mjs";
|
83
|
+
var F = {};
|
84
|
+
/**
|
85
|
+
* @license
|
86
|
+
* SPDX-License-Identifier: Apache-2.0
|
87
|
+
*/
|
88
|
+
const P = {};
|
89
|
+
function _e(i) {
|
90
|
+
if (i !== P)
|
91
|
+
throw new Error("Bad secret");
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* @license
|
95
|
+
* SPDX-License-Identifier: Apache-2.0
|
96
|
+
*/
|
97
|
+
class jt {
|
98
|
+
constructor() {
|
99
|
+
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
100
|
+
f(this, "brand");
|
101
|
+
}
|
102
|
+
// To prevent structural typing.
|
103
|
+
}
|
104
|
+
class Kt extends jt {
|
105
|
+
constructor(t, n) {
|
106
|
+
super();
|
107
|
+
f(this, "privateDoNotAccessOrElseWrappedAttrPrefix");
|
108
|
+
this.privateDoNotAccessOrElseWrappedAttrPrefix = t;
|
109
|
+
}
|
110
|
+
toString() {
|
111
|
+
return this.privateDoNotAccessOrElseWrappedAttrPrefix;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
function $t(i) {
|
115
|
+
return new Kt(i, P);
|
116
|
+
}
|
117
|
+
function qt(i) {
|
118
|
+
if (i instanceof Kt)
|
119
|
+
return i.privateDoNotAccessOrElseWrappedAttrPrefix;
|
120
|
+
{
|
121
|
+
let e = "";
|
122
|
+
throw new Error(e);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
126
|
+
__proto__: null,
|
127
|
+
SafeAttributePrefix: jt,
|
128
|
+
createAttributePrefix: $t,
|
129
|
+
unwrapAttributePrefix: qt
|
130
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
131
|
+
/**
|
132
|
+
* @license
|
133
|
+
* SPDX-License-Identifier: Apache-2.0
|
134
|
+
*/
|
135
|
+
function Ae(i) {
|
136
|
+
const e = i[0].toLowerCase();
|
137
|
+
return $t(e);
|
138
|
+
}
|
139
|
+
const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
140
|
+
__proto__: null,
|
141
|
+
safeAttrPrefix: Ae
|
142
|
+
}, Symbol.toStringTag, { value: "Module" })), Ee = /* @__PURE__ */ y(be);
|
143
|
+
/**
|
144
|
+
* @license
|
145
|
+
* SPDX-License-Identifier: Apache-2.0
|
146
|
+
*/
|
147
|
+
let Xt = "google#safe";
|
148
|
+
function Se() {
|
149
|
+
if (typeof window < "u")
|
150
|
+
return window.trustedTypes;
|
151
|
+
}
|
152
|
+
function Y() {
|
153
|
+
return Xt !== "" ? Se() ?? null : null;
|
154
|
+
}
|
155
|
+
let it;
|
156
|
+
function ht() {
|
157
|
+
var i;
|
158
|
+
if (it === void 0)
|
159
|
+
try {
|
160
|
+
it = ((i = Y()) == null ? void 0 : i.createPolicy(Xt, {
|
161
|
+
createHTML: (e) => e,
|
162
|
+
createScript: (e) => e,
|
163
|
+
createScriptURL: (e) => e
|
164
|
+
})) ?? null;
|
165
|
+
} catch {
|
166
|
+
it = null;
|
167
|
+
}
|
168
|
+
return it;
|
169
|
+
}
|
170
|
+
/**
|
171
|
+
* @license
|
172
|
+
* SPDX-License-Identifier: Apache-2.0
|
173
|
+
*/
|
174
|
+
class mt {
|
175
|
+
constructor(e, t) {
|
176
|
+
f(this, "privateDoNotAccessOrElseWrappedHtml");
|
177
|
+
this.privateDoNotAccessOrElseWrappedHtml = e;
|
178
|
+
}
|
179
|
+
toString() {
|
180
|
+
return this.privateDoNotAccessOrElseWrappedHtml.toString();
|
181
|
+
}
|
182
|
+
}
|
183
|
+
function Yt(i, e) {
|
184
|
+
return e ?? new mt(i, P);
|
185
|
+
}
|
186
|
+
const Ce = typeof window !== void 0 ? window.TrustedHTML : void 0, Vt = Ce ?? mt;
|
187
|
+
function G(i) {
|
188
|
+
var t;
|
189
|
+
const e = i;
|
190
|
+
return Yt(e, (t = ht()) == null ? void 0 : t.createHTML(e));
|
191
|
+
}
|
192
|
+
const we = /* @__PURE__ */ (() => {
|
193
|
+
var i;
|
194
|
+
return Yt("", (i = Y()) == null ? void 0 : i.emptyHTML);
|
195
|
+
})();
|
196
|
+
function Ie(i) {
|
197
|
+
return i instanceof Vt;
|
198
|
+
}
|
199
|
+
function ft(i) {
|
200
|
+
var e;
|
201
|
+
if ((e = Y()) != null && e.isHTML(i))
|
202
|
+
return i;
|
203
|
+
if (i instanceof mt)
|
204
|
+
return i.privateDoNotAccessOrElseWrappedHtml;
|
205
|
+
{
|
206
|
+
let t = "";
|
207
|
+
throw new Error(t);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
211
|
+
__proto__: null,
|
212
|
+
EMPTY_HTML: we,
|
213
|
+
SafeHtml: Vt,
|
214
|
+
createHtml: G,
|
215
|
+
isHtml: Ie,
|
216
|
+
unwrapHtml: ft
|
217
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
218
|
+
/**
|
219
|
+
* @license
|
220
|
+
* SPDX-License-Identifier: Apache-2.0
|
221
|
+
*/
|
222
|
+
class vt {
|
223
|
+
constructor(e, t) {
|
224
|
+
f(this, "privateDoNotAccessOrElseWrappedResourceUrl");
|
225
|
+
this.privateDoNotAccessOrElseWrappedResourceUrl = e;
|
226
|
+
}
|
227
|
+
toString() {
|
228
|
+
return this.privateDoNotAccessOrElseWrappedResourceUrl.toString();
|
229
|
+
}
|
230
|
+
}
|
231
|
+
const Re = typeof window !== void 0 ? window.TrustedScriptURL : void 0, Zt = Re ?? vt;
|
232
|
+
function q(i) {
|
233
|
+
var n;
|
234
|
+
const e = i;
|
235
|
+
return ((n = ht()) == null ? void 0 : n.createScriptURL(e)) ?? new vt(e, P);
|
236
|
+
}
|
237
|
+
function Oe(i) {
|
238
|
+
return i instanceof Zt;
|
239
|
+
}
|
240
|
+
function lt(i) {
|
241
|
+
var e;
|
242
|
+
if ((e = Y()) != null && e.isScriptURL(i))
|
243
|
+
return i;
|
244
|
+
if (i instanceof vt)
|
245
|
+
return i.privateDoNotAccessOrElseWrappedResourceUrl;
|
246
|
+
{
|
247
|
+
let t = "";
|
248
|
+
throw new Error(t);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
252
|
+
__proto__: null,
|
253
|
+
TrustedResourceUrl: Zt,
|
254
|
+
createResourceUrl: q,
|
255
|
+
isResourceUrl: Oe,
|
256
|
+
unwrapResourceUrl: lt
|
257
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
258
|
+
/**
|
259
|
+
* @license
|
260
|
+
* SPDX-License-Identifier: Apache-2.0
|
261
|
+
*/
|
262
|
+
class gt {
|
263
|
+
constructor(e, t) {
|
264
|
+
f(this, "privateDoNotAccessOrElseWrappedScript");
|
265
|
+
this.privateDoNotAccessOrElseWrappedScript = e;
|
266
|
+
}
|
267
|
+
toString() {
|
268
|
+
return this.privateDoNotAccessOrElseWrappedScript.toString();
|
269
|
+
}
|
270
|
+
}
|
271
|
+
function Jt(i, e) {
|
272
|
+
return e ?? new gt(i, P);
|
273
|
+
}
|
274
|
+
const Ne = typeof window !== void 0 ? window.TrustedScript : void 0, Qt = Ne ?? gt;
|
275
|
+
function J(i) {
|
276
|
+
var t;
|
277
|
+
const e = i;
|
278
|
+
return Jt(e, (t = ht()) == null ? void 0 : t.createScript(e));
|
279
|
+
}
|
280
|
+
const Pe = /* @__PURE__ */ (() => {
|
281
|
+
var i;
|
282
|
+
return Jt("", (i = Y()) == null ? void 0 : i.emptyScript);
|
283
|
+
})();
|
284
|
+
function xe(i) {
|
285
|
+
return i instanceof Qt;
|
286
|
+
}
|
287
|
+
function st(i) {
|
288
|
+
var e;
|
289
|
+
if ((e = Y()) != null && e.isScript(i))
|
290
|
+
return i;
|
291
|
+
if (i instanceof gt)
|
292
|
+
return i.privateDoNotAccessOrElseWrappedScript;
|
293
|
+
{
|
294
|
+
let t = "";
|
295
|
+
throw new Error(t);
|
296
|
+
}
|
297
|
+
}
|
298
|
+
const Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
299
|
+
__proto__: null,
|
300
|
+
EMPTY_SCRIPT: Pe,
|
301
|
+
SafeScript: Qt,
|
302
|
+
createScript: J,
|
303
|
+
isScript: xe,
|
304
|
+
unwrapScript: st
|
305
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
306
|
+
/**
|
307
|
+
* @license
|
308
|
+
* SPDX-License-Identifier: Apache-2.0
|
309
|
+
*/
|
310
|
+
function Fe(i, e = {}) {
|
311
|
+
let t = $(i);
|
312
|
+
return e.preserveSpaces && (t = t.replace(/(^|[\r\n\t ]) /g, "$1 ")), e.preserveNewlines && (t = t.replace(/(\r\n|\n|\r)/g, "<br>")), e.preserveTabs && (t = t.replace(/(\t+)/g, '<span style="white-space:pre">$1</span>')), G(t);
|
313
|
+
}
|
314
|
+
function Me(i, e = {}) {
|
315
|
+
const t = st(i).toString();
|
316
|
+
let n = "<script";
|
317
|
+
return e.id && (n += ` id="${$(e.id)}"`), e.nonce && (n += ` nonce="${$(e.nonce)}"`), e.type && (n += ` type="${$(e.type)}"`), n += `>${t}<\/script>`, G(n);
|
318
|
+
}
|
319
|
+
function Ue(i, e, t) {
|
320
|
+
const n = lt(i).toString();
|
321
|
+
let r = `<script src="${$(n)}"`;
|
322
|
+
return e && (r += " async"), t && (r += ` nonce="${$(t)}"`), r += "><\/script>", G(r);
|
323
|
+
}
|
324
|
+
function $(i) {
|
325
|
+
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
326
|
+
}
|
327
|
+
function ze(i) {
|
328
|
+
return G(i.map(ft).join(""));
|
329
|
+
}
|
330
|
+
const He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
331
|
+
__proto__: null,
|
332
|
+
concatHtmls: ze,
|
333
|
+
createScript: Me,
|
334
|
+
createScriptSrc: Ue,
|
335
|
+
htmlEscape: Fe
|
336
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = /* @__PURE__ */ y(He);
|
337
|
+
/**
|
338
|
+
* @license
|
339
|
+
* SPDX-License-Identifier: Apache-2.0
|
340
|
+
*/
|
341
|
+
function Be(i) {
|
342
|
+
let e;
|
343
|
+
try {
|
344
|
+
e = new URL(i);
|
345
|
+
} catch {
|
346
|
+
return "https:";
|
347
|
+
}
|
348
|
+
return e.protocol;
|
349
|
+
}
|
350
|
+
const Ge = ["data:", "http:", "https:", "mailto:", "ftp:"];
|
351
|
+
function We(i) {
|
352
|
+
const e = Be(i);
|
353
|
+
return e !== void 0 && Ge.indexOf(e.toLowerCase()) !== -1 ? i : "about:invalid#zClosurez";
|
354
|
+
}
|
355
|
+
/**
|
356
|
+
* @license
|
357
|
+
* SPDX-License-Identifier: Apache-2.0
|
358
|
+
*/
|
359
|
+
class te {
|
360
|
+
constructor() {
|
361
|
+
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
362
|
+
f(this, "brand");
|
363
|
+
}
|
364
|
+
// To prevent structural typing.
|
365
|
+
}
|
366
|
+
class _t extends te {
|
367
|
+
constructor(t, n) {
|
368
|
+
super();
|
369
|
+
f(this, "privateDoNotAccessOrElseWrappedStyle");
|
370
|
+
this.privateDoNotAccessOrElseWrappedStyle = t;
|
371
|
+
}
|
372
|
+
toString() {
|
373
|
+
return this.privateDoNotAccessOrElseWrappedStyle;
|
374
|
+
}
|
375
|
+
}
|
376
|
+
function yt(i) {
|
377
|
+
return new _t(i, P);
|
378
|
+
}
|
379
|
+
function je(i) {
|
380
|
+
return i instanceof _t;
|
381
|
+
}
|
382
|
+
function ee(i) {
|
383
|
+
if (i instanceof _t)
|
384
|
+
return i.privateDoNotAccessOrElseWrappedStyle;
|
385
|
+
{
|
386
|
+
let e = "";
|
387
|
+
throw new Error(e);
|
388
|
+
}
|
389
|
+
}
|
390
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
391
|
+
__proto__: null,
|
392
|
+
SafeStyle: te,
|
393
|
+
createStyle: yt,
|
394
|
+
isStyle: je,
|
395
|
+
unwrapStyle: ee
|
396
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
397
|
+
/**
|
398
|
+
* @license
|
399
|
+
* SPDX-License-Identifier: Apache-2.0
|
400
|
+
*/
|
401
|
+
function $e(i, e) {
|
402
|
+
Xe(i) && qe(i), i.innerHTML = ft(e);
|
403
|
+
}
|
404
|
+
function ie(i, e, t, n) {
|
405
|
+
if (i.length === 0)
|
406
|
+
throw new Error("No prefixes are provided");
|
407
|
+
const r = i.map((a) => qt(a)), o = t.toLowerCase();
|
408
|
+
if (r.every((a) => o.indexOf(a) !== 0))
|
409
|
+
throw new Error(`Attribute "${t}" does not match any of the allowed prefixes.`);
|
410
|
+
e.setAttribute(t, n);
|
411
|
+
}
|
412
|
+
function qe(i) {
|
413
|
+
if (i.tagName.toLowerCase() === "script")
|
414
|
+
throw new Error("Use setTextContent with a SafeScript.");
|
415
|
+
if (i.tagName.toLowerCase() === "style")
|
416
|
+
throw new Error("Use setTextContent with a SafeStyleSheet.");
|
417
|
+
}
|
418
|
+
function Xe(i) {
|
419
|
+
return i.tagName !== void 0;
|
420
|
+
}
|
421
|
+
/**
|
422
|
+
* @license
|
423
|
+
* SPDX-License-Identifier: Apache-2.0
|
424
|
+
*/
|
425
|
+
function Ye(i) {
|
426
|
+
const e = document.createElement("template"), t = G(i);
|
427
|
+
return $e(e, t), e.content;
|
428
|
+
}
|
429
|
+
/**
|
430
|
+
* @license
|
431
|
+
* SPDX-License-Identifier: Apache-2.0
|
432
|
+
*/
|
433
|
+
function Ct(i) {
|
434
|
+
const e = i.nodeName;
|
435
|
+
return typeof e == "string" ? e : "FORM";
|
436
|
+
}
|
437
|
+
function wt(i) {
|
438
|
+
return i.nodeType === Node.TEXT_NODE;
|
439
|
+
}
|
440
|
+
function It(i) {
|
441
|
+
const e = i.nodeType;
|
442
|
+
return e === Node.ELEMENT_NODE || typeof e != "number";
|
443
|
+
}
|
444
|
+
/**
|
445
|
+
* @license
|
446
|
+
* SPDX-License-Identifier: Apache-2.0
|
447
|
+
*/
|
448
|
+
class z {
|
449
|
+
constructor(e, t, n, r) {
|
450
|
+
f(this, "allowedElements");
|
451
|
+
f(this, "elementPolicies");
|
452
|
+
f(this, "allowedGlobalAttributes");
|
453
|
+
f(this, "globalAttributePolicies");
|
454
|
+
this.allowedElements = e, this.elementPolicies = t, this.allowedGlobalAttributes = n, this.globalAttributePolicies = r;
|
455
|
+
}
|
456
|
+
isAllowedElement(e) {
|
457
|
+
return e.toLowerCase() !== "form" && (this.allowedElements.has(e) || this.elementPolicies.has(e));
|
458
|
+
}
|
459
|
+
getAttributePolicy(e, t) {
|
460
|
+
const n = this.elementPolicies.get(t);
|
461
|
+
return n != null && n.has(e) ? n.get(e) : this.allowedGlobalAttributes.has(e) ? { policyAction: u.KEEP } : this.globalAttributePolicies.get(e) || { policyAction: u.DROP };
|
462
|
+
}
|
463
|
+
}
|
464
|
+
var u;
|
465
|
+
(function(i) {
|
466
|
+
i[i.DROP = 0] = "DROP", i[i.KEEP = 1] = "KEEP", i[i.KEEP_AND_SANITIZE_URL = 2] = "KEEP_AND_SANITIZE_URL", i[i.KEEP_AND_NORMALIZE = 3] = "KEEP_AND_NORMALIZE", i[i.KEEP_AND_SANITIZE_STYLE = 4] = "KEEP_AND_SANITIZE_STYLE";
|
467
|
+
})(u || (u = {}));
|
468
|
+
/**
|
469
|
+
* @license
|
470
|
+
* SPDX-License-Identifier: Apache-2.0
|
471
|
+
*/
|
472
|
+
const ne = new z(/* @__PURE__ */ new Set([
|
473
|
+
"ARTICLE",
|
474
|
+
"SECTION",
|
475
|
+
"NAV",
|
476
|
+
"ASIDE",
|
477
|
+
"H1",
|
478
|
+
"H2",
|
479
|
+
"H3",
|
480
|
+
"H4",
|
481
|
+
"H5",
|
482
|
+
"H6",
|
483
|
+
"HEADER",
|
484
|
+
"FOOTER",
|
485
|
+
"ADDRESS",
|
486
|
+
"P",
|
487
|
+
"HR",
|
488
|
+
"PRE",
|
489
|
+
"BLOCKQUOTE",
|
490
|
+
"OL",
|
491
|
+
"UL",
|
492
|
+
"LH",
|
493
|
+
"LI",
|
494
|
+
"DL",
|
495
|
+
"DT",
|
496
|
+
"DD",
|
497
|
+
"FIGURE",
|
498
|
+
"FIGCAPTION",
|
499
|
+
"MAIN",
|
500
|
+
"DIV",
|
501
|
+
"EM",
|
502
|
+
"STRONG",
|
503
|
+
"SMALL",
|
504
|
+
"S",
|
505
|
+
"CITE",
|
506
|
+
"Q",
|
507
|
+
"DFN",
|
508
|
+
"ABBR",
|
509
|
+
"RUBY",
|
510
|
+
"RB",
|
511
|
+
"RT",
|
512
|
+
"RTC",
|
513
|
+
"RP",
|
514
|
+
"DATA",
|
515
|
+
"TIME",
|
516
|
+
"CODE",
|
517
|
+
"VAR",
|
518
|
+
"SAMP",
|
519
|
+
"KBD",
|
520
|
+
"SUB",
|
521
|
+
"SUP",
|
522
|
+
"I",
|
523
|
+
"B",
|
524
|
+
"U",
|
525
|
+
"MARK",
|
526
|
+
"BDI",
|
527
|
+
"BDO",
|
528
|
+
"SPAN",
|
529
|
+
"BR",
|
530
|
+
"WBR",
|
531
|
+
"INS",
|
532
|
+
"DEL",
|
533
|
+
"PICTURE",
|
534
|
+
"PARAM",
|
535
|
+
"TRACK",
|
536
|
+
"MAP",
|
537
|
+
"TABLE",
|
538
|
+
"CAPTION",
|
539
|
+
"COLGROUP",
|
540
|
+
"COL",
|
541
|
+
"TBODY",
|
542
|
+
"THEAD",
|
543
|
+
"TFOOT",
|
544
|
+
"TR",
|
545
|
+
"TD",
|
546
|
+
"TH",
|
547
|
+
"SELECT",
|
548
|
+
"DATALIST",
|
549
|
+
"OPTGROUP",
|
550
|
+
"OPTION",
|
551
|
+
"OUTPUT",
|
552
|
+
"PROGRESS",
|
553
|
+
"METER",
|
554
|
+
"FIELDSET",
|
555
|
+
"LEGEND",
|
556
|
+
"DETAILS",
|
557
|
+
"SUMMARY",
|
558
|
+
"MENU",
|
559
|
+
"DIALOG",
|
560
|
+
"SLOT",
|
561
|
+
"CANVAS",
|
562
|
+
"FONT",
|
563
|
+
"CENTER"
|
564
|
+
]), /* @__PURE__ */ new Map([
|
565
|
+
[
|
566
|
+
"A",
|
567
|
+
/* @__PURE__ */ new Map([
|
568
|
+
["href", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
569
|
+
])
|
570
|
+
],
|
571
|
+
[
|
572
|
+
"AREA",
|
573
|
+
/* @__PURE__ */ new Map([
|
574
|
+
["href", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
575
|
+
])
|
576
|
+
],
|
577
|
+
[
|
578
|
+
"LINK",
|
579
|
+
/* @__PURE__ */ new Map([
|
580
|
+
[
|
581
|
+
"href",
|
582
|
+
{
|
583
|
+
policyAction: u.KEEP_AND_SANITIZE_URL,
|
584
|
+
conditions: /* @__PURE__ */ new Map([[
|
585
|
+
"rel",
|
586
|
+
/* @__PURE__ */ new Set([
|
587
|
+
"alternate",
|
588
|
+
"author",
|
589
|
+
"bookmark",
|
590
|
+
"canonical",
|
591
|
+
"cite",
|
592
|
+
"help",
|
593
|
+
"icon",
|
594
|
+
"license",
|
595
|
+
"next",
|
596
|
+
"prefetch",
|
597
|
+
"dns-prefetch",
|
598
|
+
"prerender",
|
599
|
+
"preconnect",
|
600
|
+
"preload",
|
601
|
+
"prev",
|
602
|
+
"search",
|
603
|
+
"subresource"
|
604
|
+
])
|
605
|
+
]])
|
606
|
+
}
|
607
|
+
]
|
608
|
+
])
|
609
|
+
],
|
610
|
+
[
|
611
|
+
"SOURCE",
|
612
|
+
/* @__PURE__ */ new Map([
|
613
|
+
["src", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
614
|
+
])
|
615
|
+
],
|
616
|
+
[
|
617
|
+
"IMG",
|
618
|
+
/* @__PURE__ */ new Map([
|
619
|
+
["src", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
620
|
+
])
|
621
|
+
],
|
622
|
+
[
|
623
|
+
"VIDEO",
|
624
|
+
/* @__PURE__ */ new Map([
|
625
|
+
["src", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
626
|
+
])
|
627
|
+
],
|
628
|
+
[
|
629
|
+
"AUDIO",
|
630
|
+
/* @__PURE__ */ new Map([
|
631
|
+
["src", { policyAction: u.KEEP_AND_SANITIZE_URL }]
|
632
|
+
])
|
633
|
+
]
|
634
|
+
]), /* @__PURE__ */ new Set([
|
635
|
+
"title",
|
636
|
+
"aria-atomic",
|
637
|
+
"aria-autocomplete",
|
638
|
+
"aria-busy",
|
639
|
+
"aria-checked",
|
640
|
+
"aria-current",
|
641
|
+
"aria-disabled",
|
642
|
+
"aria-dropeffect",
|
643
|
+
"aria-expanded",
|
644
|
+
"aria-haspopup",
|
645
|
+
"aria-hidden",
|
646
|
+
"aria-invalid",
|
647
|
+
"aria-label",
|
648
|
+
"aria-level",
|
649
|
+
"aria-live",
|
650
|
+
"aria-multiline",
|
651
|
+
"aria-multiselectable",
|
652
|
+
"aria-orientation",
|
653
|
+
"aria-posinset",
|
654
|
+
"aria-pressed",
|
655
|
+
"aria-readonly",
|
656
|
+
"aria-relevant",
|
657
|
+
"aria-required",
|
658
|
+
"aria-selected",
|
659
|
+
"aria-setsize",
|
660
|
+
"aria-sort",
|
661
|
+
"aria-valuemax",
|
662
|
+
"aria-valuemin",
|
663
|
+
"aria-valuenow",
|
664
|
+
"aria-valuetext",
|
665
|
+
"alt",
|
666
|
+
"align",
|
667
|
+
"autocapitalize",
|
668
|
+
"autocomplete",
|
669
|
+
"autocorrect",
|
670
|
+
"autofocus",
|
671
|
+
"autoplay",
|
672
|
+
"bgcolor",
|
673
|
+
"border",
|
674
|
+
"cellpadding",
|
675
|
+
"cellspacing",
|
676
|
+
"checked",
|
677
|
+
"color",
|
678
|
+
"cols",
|
679
|
+
"colspan",
|
680
|
+
"controls",
|
681
|
+
"datetime",
|
682
|
+
"disabled",
|
683
|
+
"download",
|
684
|
+
"draggable",
|
685
|
+
"enctype",
|
686
|
+
"face",
|
687
|
+
"formenctype",
|
688
|
+
"frameborder",
|
689
|
+
"height",
|
690
|
+
"hreflang",
|
691
|
+
"hidden",
|
692
|
+
"ismap",
|
693
|
+
"label",
|
694
|
+
"lang",
|
695
|
+
"loop",
|
696
|
+
"max",
|
697
|
+
"maxlength",
|
698
|
+
"media",
|
699
|
+
"minlength",
|
700
|
+
"min",
|
701
|
+
"multiple",
|
702
|
+
"muted",
|
703
|
+
"nonce",
|
704
|
+
"open",
|
705
|
+
"placeholder",
|
706
|
+
"preload",
|
707
|
+
"rel",
|
708
|
+
"required",
|
709
|
+
"reversed",
|
710
|
+
"role",
|
711
|
+
"rows",
|
712
|
+
"rowspan",
|
713
|
+
"selected",
|
714
|
+
"shape",
|
715
|
+
"size",
|
716
|
+
"sizes",
|
717
|
+
"slot",
|
718
|
+
"span",
|
719
|
+
"spellcheck",
|
720
|
+
"start",
|
721
|
+
"step",
|
722
|
+
"summary",
|
723
|
+
"translate",
|
724
|
+
"type",
|
725
|
+
"valign",
|
726
|
+
"value",
|
727
|
+
"width",
|
728
|
+
"wrap",
|
729
|
+
"itemscope",
|
730
|
+
"itemtype",
|
731
|
+
"itemid",
|
732
|
+
"itemprop",
|
733
|
+
"itemref"
|
734
|
+
]), /* @__PURE__ */ new Map([
|
735
|
+
[
|
736
|
+
"dir",
|
737
|
+
{
|
738
|
+
policyAction: u.KEEP_AND_NORMALIZE,
|
739
|
+
conditions: /* @__PURE__ */ new Map([[
|
740
|
+
"dir",
|
741
|
+
/* @__PURE__ */ new Set([
|
742
|
+
"auto",
|
743
|
+
"ltr",
|
744
|
+
"rtl"
|
745
|
+
])
|
746
|
+
]])
|
747
|
+
}
|
748
|
+
],
|
749
|
+
[
|
750
|
+
"async",
|
751
|
+
{
|
752
|
+
policyAction: u.KEEP_AND_NORMALIZE,
|
753
|
+
conditions: /* @__PURE__ */ new Map([[
|
754
|
+
"async",
|
755
|
+
/* @__PURE__ */ new Set([
|
756
|
+
"async"
|
757
|
+
])
|
758
|
+
]])
|
759
|
+
}
|
760
|
+
],
|
761
|
+
["cite", { policyAction: u.KEEP_AND_SANITIZE_URL }],
|
762
|
+
[
|
763
|
+
"loading",
|
764
|
+
{
|
765
|
+
policyAction: u.KEEP_AND_NORMALIZE,
|
766
|
+
conditions: /* @__PURE__ */ new Map([[
|
767
|
+
"loading",
|
768
|
+
/* @__PURE__ */ new Set([
|
769
|
+
"eager",
|
770
|
+
"lazy"
|
771
|
+
])
|
772
|
+
]])
|
773
|
+
}
|
774
|
+
],
|
775
|
+
["poster", { policyAction: u.KEEP_AND_SANITIZE_URL }],
|
776
|
+
[
|
777
|
+
"target",
|
778
|
+
{
|
779
|
+
policyAction: u.KEEP_AND_NORMALIZE,
|
780
|
+
conditions: /* @__PURE__ */ new Map([[
|
781
|
+
"target",
|
782
|
+
/* @__PURE__ */ new Set([
|
783
|
+
"_self",
|
784
|
+
"_blank"
|
785
|
+
])
|
786
|
+
]])
|
787
|
+
}
|
788
|
+
]
|
789
|
+
]));
|
790
|
+
/**
|
791
|
+
* @license
|
792
|
+
* SPDX-License-Identifier: Apache-2.0
|
793
|
+
*/
|
794
|
+
class At {
|
795
|
+
constructor(e, t) {
|
796
|
+
f(this, "sanitizerTable");
|
797
|
+
f(this, "changes", []);
|
798
|
+
this.sanitizerTable = e, _e(t);
|
799
|
+
}
|
800
|
+
sanitizeAssertUnchanged(e) {
|
801
|
+
this.changes = [];
|
802
|
+
const t = this.sanitize(e);
|
803
|
+
if (this.changes.length !== 0) {
|
804
|
+
let n = "";
|
805
|
+
throw new Error(n);
|
806
|
+
}
|
807
|
+
return t;
|
808
|
+
}
|
809
|
+
sanitize(e) {
|
810
|
+
const t = document.createElement("span");
|
811
|
+
t.appendChild(this.sanitizeToFragment(e));
|
812
|
+
let n = new XMLSerializer().serializeToString(t);
|
813
|
+
return n = n.slice(n.indexOf(">") + 1, n.lastIndexOf("</")), G(n);
|
814
|
+
}
|
815
|
+
sanitizeToFragment(e) {
|
816
|
+
const t = Ye(e), n = document.createTreeWalker(
|
817
|
+
t,
|
818
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
|
819
|
+
// IE10 and IE11 won't accept a proper `NodeFilter` interface, and
|
820
|
+
// expect the filtering function to be passed directly. It seems that
|
821
|
+
// other browsers also do not mind getting the function directly. see
|
822
|
+
// https://stackoverflow.com/q/38245898
|
823
|
+
(c) => this.nodeFilter(c),
|
824
|
+
// @ts-ignore: error TS2554: Expected 1-3 arguments, but got 4.
|
825
|
+
!1
|
826
|
+
);
|
827
|
+
let r = n.nextNode();
|
828
|
+
const o = document.createDocumentFragment();
|
829
|
+
let a = o;
|
830
|
+
for (; r !== null; ) {
|
831
|
+
let c;
|
832
|
+
if (wt(r))
|
833
|
+
c = this.sanitizeTextNode(r);
|
834
|
+
else if (It(r))
|
835
|
+
c = this.sanitizeElementNode(r);
|
836
|
+
else
|
837
|
+
throw new Error("Node is not of type text or element");
|
838
|
+
if (a.appendChild(c), r = n.firstChild(), r)
|
839
|
+
a = c;
|
840
|
+
else
|
841
|
+
for (; !(r = n.nextSibling()) && (r = n.parentNode()); )
|
842
|
+
a = a.parentNode;
|
843
|
+
}
|
844
|
+
return o;
|
845
|
+
}
|
846
|
+
sanitizeTextNode(e) {
|
847
|
+
return document.createTextNode(e.data);
|
848
|
+
}
|
849
|
+
sanitizeElementNode(e) {
|
850
|
+
const t = Ct(e), n = document.createElement(t), r = e.attributes;
|
851
|
+
for (const { name: o, value: a } of r) {
|
852
|
+
const c = this.sanitizerTable.getAttributePolicy(o, t);
|
853
|
+
if (!this.satisfiesAllConditions(c.conditions, r)) {
|
854
|
+
this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);
|
855
|
+
continue;
|
856
|
+
}
|
857
|
+
switch (c.policyAction) {
|
858
|
+
case u.KEEP:
|
859
|
+
n.setAttribute(o, a);
|
860
|
+
break;
|
861
|
+
case u.KEEP_AND_SANITIZE_URL:
|
862
|
+
const l = We(a);
|
863
|
+
l !== a && this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${l}"`), n.setAttribute(o, l);
|
864
|
+
break;
|
865
|
+
case u.KEEP_AND_NORMALIZE:
|
866
|
+
n.setAttribute(o, a.toLowerCase());
|
867
|
+
break;
|
868
|
+
case u.KEEP_AND_SANITIZE_STYLE:
|
869
|
+
n.setAttribute(o, a);
|
870
|
+
break;
|
871
|
+
case u.DROP:
|
872
|
+
this.recordChange(`Attribute: ${o} was dropped`);
|
873
|
+
break;
|
874
|
+
default:
|
875
|
+
Qe(c.policyAction, "Unhandled AttributePolicyAction case");
|
876
|
+
}
|
877
|
+
}
|
878
|
+
return n;
|
879
|
+
}
|
880
|
+
nodeFilter(e) {
|
881
|
+
if (wt(e))
|
882
|
+
return NodeFilter.FILTER_ACCEPT;
|
883
|
+
if (!It(e))
|
884
|
+
return NodeFilter.FILTER_REJECT;
|
885
|
+
const t = Ct(e);
|
886
|
+
return t === null ? (this.recordChange(`Node name was null for node: ${e}`), NodeFilter.FILTER_REJECT) : this.sanitizerTable.isAllowedElement(t) ? NodeFilter.FILTER_ACCEPT : (this.recordChange(`Element: ${t} was dropped`), NodeFilter.FILTER_REJECT);
|
887
|
+
}
|
888
|
+
recordChange(e) {
|
889
|
+
this.changes.length === 0 && this.changes.push("");
|
890
|
+
}
|
891
|
+
satisfiesAllConditions(e, t) {
|
892
|
+
var n;
|
893
|
+
if (!e)
|
894
|
+
return !0;
|
895
|
+
for (const [r, o] of e) {
|
896
|
+
const a = (n = t.getNamedItem(r)) == null ? void 0 : n.value;
|
897
|
+
if (a && !o.has(a))
|
898
|
+
return !1;
|
899
|
+
}
|
900
|
+
return !0;
|
901
|
+
}
|
902
|
+
}
|
903
|
+
const bt = /* @__PURE__ */ (() => new At(ne, P))();
|
904
|
+
function Ve(i) {
|
905
|
+
return bt.sanitize(i);
|
906
|
+
}
|
907
|
+
function Ze(i) {
|
908
|
+
return bt.sanitizeAssertUnchanged(i);
|
909
|
+
}
|
910
|
+
function Je(i) {
|
911
|
+
return bt.sanitizeToFragment(i);
|
912
|
+
}
|
913
|
+
function Qe(i, e = `unexpected value ${i}!`) {
|
914
|
+
throw new Error(e);
|
915
|
+
}
|
916
|
+
const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
917
|
+
__proto__: null,
|
918
|
+
HtmlSanitizerImpl: At,
|
919
|
+
sanitizeHtml: Ve,
|
920
|
+
sanitizeHtmlAssertUnchanged: Ze,
|
921
|
+
sanitizeHtmlToFragment: Je
|
922
|
+
}, Symbol.toStringTag, { value: "Module" })), ei = /* @__PURE__ */ y(ti);
|
923
|
+
/**
|
924
|
+
* @license
|
925
|
+
* SPDX-License-Identifier: Apache-2.0
|
926
|
+
*/
|
927
|
+
class ii {
|
928
|
+
constructor() {
|
929
|
+
f(this, "sanitizerTable");
|
930
|
+
// To denote if the builder has called build() and therefore should make no
|
931
|
+
// further changes to the sanitizer table.
|
932
|
+
f(this, "calledBuild", !1);
|
933
|
+
this.sanitizerTable = ne;
|
934
|
+
}
|
935
|
+
/** Builder option to restrict allowed elements to a smaller subset. */
|
936
|
+
onlyAllowElements(e) {
|
937
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
938
|
+
for (let r of e) {
|
939
|
+
if (r = r.toUpperCase(), !this.sanitizerTable.isAllowedElement(r))
|
940
|
+
throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);
|
941
|
+
const o = this.sanitizerTable.elementPolicies.get(r);
|
942
|
+
o !== void 0 ? n.set(r, o) : t.add(r);
|
943
|
+
}
|
944
|
+
return this.sanitizerTable = new z(t, n, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies), this;
|
945
|
+
}
|
946
|
+
/**
|
947
|
+
* Builder option to restrict allowed attributes to a smaller subset.
|
948
|
+
*
|
949
|
+
* If the attribute isn't currently allowed then it won't be added.
|
950
|
+
*/
|
951
|
+
onlyAllowAttributes(e) {
|
952
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
953
|
+
for (const o of e)
|
954
|
+
this.sanitizerTable.allowedGlobalAttributes.has(o) && t.add(o), this.sanitizerTable.globalAttributePolicies.has(o) && n.set(o, this.sanitizerTable.globalAttributePolicies.get(o));
|
955
|
+
for (const [o, a] of this.sanitizerTable.elementPolicies.entries()) {
|
956
|
+
const c = /* @__PURE__ */ new Map();
|
957
|
+
for (const [l, p] of a.entries())
|
958
|
+
e.has(l) && c.set(l, p);
|
959
|
+
r.set(o, c);
|
960
|
+
}
|
961
|
+
return this.sanitizerTable = new z(this.sanitizerTable.allowedElements, r, t, n), this;
|
962
|
+
}
|
963
|
+
/**
|
964
|
+
* Allows the set of data attributes passed.
|
965
|
+
*
|
966
|
+
* These values must be prefixed with "data-"
|
967
|
+
*
|
968
|
+
* If called with onlyAllowElements or onlyAllowAttributes, those methods must
|
969
|
+
* be called first.
|
970
|
+
*/
|
971
|
+
allowDataAttributes(e) {
|
972
|
+
const t = new Set(this.sanitizerTable.allowedGlobalAttributes);
|
973
|
+
for (const n of e) {
|
974
|
+
if (n.indexOf("data-") !== 0)
|
975
|
+
throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);
|
976
|
+
t.add(n);
|
977
|
+
}
|
978
|
+
return this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, t, this.sanitizerTable.globalAttributePolicies), this;
|
979
|
+
}
|
980
|
+
/**
|
981
|
+
* Preserves style attributes. Note that the sanitizer won't parse and
|
982
|
+
* sanitize the values but keep them as they are. In particular this means
|
983
|
+
* that the code will be able to call functions that could do undesirable
|
984
|
+
* things (e.g. `url` to trigger a network request), as well as any custom
|
985
|
+
* properties or functions defined by the application.
|
986
|
+
*/
|
987
|
+
allowStyleAttributes() {
|
988
|
+
const e = new Map(this.sanitizerTable.globalAttributePolicies);
|
989
|
+
return e.set("style", { policyAction: u.KEEP_AND_SANITIZE_STYLE }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
|
990
|
+
}
|
991
|
+
/**
|
992
|
+
* Preserves the class attribute on all elements. This means contents can
|
993
|
+
* adopt CSS styles from other page elements and possibly mask themselves as
|
994
|
+
* legitimate UI elements, which can lead to phishing.
|
995
|
+
*/
|
996
|
+
allowClassAttributes() {
|
997
|
+
const e = new Map(this.sanitizerTable.globalAttributePolicies);
|
998
|
+
return e.set("class", { policyAction: u.KEEP }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
|
999
|
+
}
|
1000
|
+
/**
|
1001
|
+
* Preserves id attributes. This carries moderate risk as it allows an
|
1002
|
+
* element to override other elements with the same ID.
|
1003
|
+
*/
|
1004
|
+
allowIdAttributes() {
|
1005
|
+
const e = new Map(this.sanitizerTable.globalAttributePolicies);
|
1006
|
+
return e.set("id", { policyAction: u.KEEP }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
|
1007
|
+
}
|
1008
|
+
build() {
|
1009
|
+
if (this.calledBuild)
|
1010
|
+
throw new Error("this sanitizer has already called build");
|
1011
|
+
return this.calledBuild = !0, new At(this.sanitizerTable, P);
|
1012
|
+
}
|
1013
|
+
}
|
1014
|
+
const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1015
|
+
__proto__: null,
|
1016
|
+
HtmlSanitizerBuilder: ii
|
1017
|
+
}, Symbol.toStringTag, { value: "Module" })), ri = /* @__PURE__ */ y(ni);
|
1018
|
+
/**
|
1019
|
+
* @license
|
1020
|
+
* SPDX-License-Identifier: Apache-2.0
|
1021
|
+
*/
|
1022
|
+
function oi(i, ...e) {
|
1023
|
+
if (e.length === 0)
|
1024
|
+
return q(i[0]);
|
1025
|
+
i[0].toLowerCase();
|
1026
|
+
const t = [i[0]];
|
1027
|
+
for (let n = 0; n < e.length; n++)
|
1028
|
+
t.push(encodeURIComponent(e[n])), t.push(i[n + 1]);
|
1029
|
+
return q(t.join(""));
|
1030
|
+
}
|
1031
|
+
function ai(i, e) {
|
1032
|
+
let t = lt(i).toString();
|
1033
|
+
if (/#/.test(t)) {
|
1034
|
+
let r = "";
|
1035
|
+
throw new Error(r);
|
1036
|
+
}
|
1037
|
+
let n = /\?/.test(t) ? "&" : "?";
|
1038
|
+
return e.forEach((r, o) => {
|
1039
|
+
const a = r instanceof Array ? r : [r];
|
1040
|
+
for (let c = 0; c < a.length; c++) {
|
1041
|
+
const l = a[c];
|
1042
|
+
l != null && (t += n + encodeURIComponent(o) + "=" + encodeURIComponent(String(l)), n = "&");
|
1043
|
+
}
|
1044
|
+
}), q(t);
|
1045
|
+
}
|
1046
|
+
const ci = /[^#]*/;
|
1047
|
+
function li(i, e) {
|
1048
|
+
const t = lt(i).toString();
|
1049
|
+
return q(ci.exec(t)[0] + "#" + e);
|
1050
|
+
}
|
1051
|
+
function si(i) {
|
1052
|
+
const e = st(i).toString(), t = new Blob([e], { type: "text/javascript" });
|
1053
|
+
return q(URL.createObjectURL(t));
|
1054
|
+
}
|
1055
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1056
|
+
__proto__: null,
|
1057
|
+
appendParams: ai,
|
1058
|
+
blobUrlFromScript: si,
|
1059
|
+
replaceFragment: li,
|
1060
|
+
trustedResourceUrl: oi
|
1061
|
+
}, Symbol.toStringTag, { value: "Module" })), di = /* @__PURE__ */ y(pi);
|
1062
|
+
/**
|
1063
|
+
* @license
|
1064
|
+
* SPDX-License-Identifier: Apache-2.0
|
1065
|
+
*/
|
1066
|
+
function ui(i) {
|
1067
|
+
return J(i[0]);
|
1068
|
+
}
|
1069
|
+
function hi(i) {
|
1070
|
+
return J(i.map(st).join(""));
|
1071
|
+
}
|
1072
|
+
function re(i) {
|
1073
|
+
return J(JSON.stringify(i).replace(/</g, "\\x3c"));
|
1074
|
+
}
|
1075
|
+
function mi(i, ...e) {
|
1076
|
+
return (...t) => {
|
1077
|
+
const n = t.map((r) => re(r).toString());
|
1078
|
+
return J(`(${i.join("")})(${n.join(",")})`);
|
1079
|
+
};
|
1080
|
+
}
|
1081
|
+
const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1082
|
+
__proto__: null,
|
1083
|
+
concatScripts: hi,
|
1084
|
+
safeScript: ui,
|
1085
|
+
safeScriptWithArgs: mi,
|
1086
|
+
scriptFromJson: re
|
1087
|
+
}, Symbol.toStringTag, { value: "Module" })), vi = /* @__PURE__ */ y(fi);
|
1088
|
+
/**
|
1089
|
+
* @license
|
1090
|
+
* SPDX-License-Identifier: Apache-2.0
|
1091
|
+
*/
|
1092
|
+
function gi(i) {
|
1093
|
+
const e = i[0];
|
1094
|
+
return yt(e);
|
1095
|
+
}
|
1096
|
+
function _i(i) {
|
1097
|
+
return yt(i.map(ee).join(""));
|
1098
|
+
}
|
1099
|
+
const yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1100
|
+
__proto__: null,
|
1101
|
+
concatStyles: _i,
|
1102
|
+
safeStyle: gi
|
1103
|
+
}, Symbol.toStringTag, { value: "Module" })), Ai = /* @__PURE__ */ y(yi);
|
1104
|
+
/**
|
1105
|
+
* @license
|
1106
|
+
* SPDX-License-Identifier: Apache-2.0
|
1107
|
+
*/
|
1108
|
+
class oe {
|
1109
|
+
constructor() {
|
1110
|
+
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
1111
|
+
f(this, "brand");
|
1112
|
+
}
|
1113
|
+
// To prevent structural typing.
|
1114
|
+
}
|
1115
|
+
class Et extends oe {
|
1116
|
+
constructor(t, n) {
|
1117
|
+
super();
|
1118
|
+
f(this, "privateDoNotAccessOrElseWrappedStyleSheet");
|
1119
|
+
this.privateDoNotAccessOrElseWrappedStyleSheet = t;
|
1120
|
+
}
|
1121
|
+
toString() {
|
1122
|
+
return this.privateDoNotAccessOrElseWrappedStyleSheet;
|
1123
|
+
}
|
1124
|
+
}
|
1125
|
+
function St(i) {
|
1126
|
+
return new Et(i, P);
|
1127
|
+
}
|
1128
|
+
function bi(i) {
|
1129
|
+
return i instanceof Et;
|
1130
|
+
}
|
1131
|
+
function ae(i) {
|
1132
|
+
if (i instanceof Et)
|
1133
|
+
return i.privateDoNotAccessOrElseWrappedStyleSheet;
|
1134
|
+
{
|
1135
|
+
let e = "";
|
1136
|
+
throw new Error(e);
|
1137
|
+
}
|
1138
|
+
}
|
1139
|
+
const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1140
|
+
__proto__: null,
|
1141
|
+
SafeStyleSheet: oe,
|
1142
|
+
createStyleSheet: St,
|
1143
|
+
isStyleSheet: bi,
|
1144
|
+
unwrapStyleSheet: ae
|
1145
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
1146
|
+
/**
|
1147
|
+
* @license
|
1148
|
+
* SPDX-License-Identifier: Apache-2.0
|
1149
|
+
*/
|
1150
|
+
function Si(i) {
|
1151
|
+
const e = i[0];
|
1152
|
+
return St(e);
|
1153
|
+
}
|
1154
|
+
function Ci(i) {
|
1155
|
+
return St(i.map(ae).join(""));
|
1156
|
+
}
|
1157
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1158
|
+
__proto__: null,
|
1159
|
+
concatStyleSheets: Ci,
|
1160
|
+
safeStyleSheet: Si
|
1161
|
+
}, Symbol.toStringTag, { value: "Module" })), Ii = /* @__PURE__ */ y(wi), Ti = /* @__PURE__ */ y(ye), Ri = /* @__PURE__ */ y(Te), Oi = /* @__PURE__ */ y(De), Di = /* @__PURE__ */ y(Le), Ni = /* @__PURE__ */ y(Ke), Pi = /* @__PURE__ */ y(Ei);
|
1162
|
+
(function(i) {
|
1163
|
+
/**
|
1164
|
+
* @license
|
1165
|
+
* SPDX-License-Identifier: Apache-2.0
|
1166
|
+
*/
|
1167
|
+
Object.defineProperty(i, "__esModule", { value: !0 }), i.unwrapStyleSheet = i.SafeStyleSheet = i.isStyleSheet = i.unwrapStyle = i.SafeStyle = i.isStyle = i.unwrapScript = i.SafeScript = i.isScript = i.EMPTY_SCRIPT = i.unwrapResourceUrl = i.TrustedResourceUrl = i.isResourceUrl = i.unwrapHtml = i.SafeHtml = i.isHtml = i.EMPTY_HTML = i.unwrapAttributePrefix = i.SafeAttributePrefix = i.safeStyleSheet = i.concatStyleSheets = i.safeStyle = i.concatStyles = i.scriptFromJson = i.safeScriptWithArgs = i.safeScript = i.concatScripts = i.trustedResourceUrl = i.replaceFragment = i.blobUrlFromScript = i.appendParams = i.HtmlSanitizerBuilder = i.sanitizeHtmlToFragment = i.sanitizeHtmlAssertUnchanged = i.sanitizeHtml = i.htmlEscape = i.createScriptSrc = i.createScript = i.concatHtmls = i.safeAttrPrefix = void 0;
|
1168
|
+
var e = Ee;
|
1169
|
+
Object.defineProperty(i, "safeAttrPrefix", { enumerable: !0, get: function() {
|
1170
|
+
return e.safeAttrPrefix;
|
1171
|
+
} });
|
1172
|
+
var t = ke;
|
1173
|
+
Object.defineProperty(i, "concatHtmls", { enumerable: !0, get: function() {
|
1174
|
+
return t.concatHtmls;
|
1175
|
+
} }), Object.defineProperty(i, "createScript", { enumerable: !0, get: function() {
|
1176
|
+
return t.createScript;
|
1177
|
+
} }), Object.defineProperty(i, "createScriptSrc", { enumerable: !0, get: function() {
|
1178
|
+
return t.createScriptSrc;
|
1179
|
+
} }), Object.defineProperty(i, "htmlEscape", { enumerable: !0, get: function() {
|
1180
|
+
return t.htmlEscape;
|
1181
|
+
} });
|
1182
|
+
var n = ei;
|
1183
|
+
Object.defineProperty(i, "sanitizeHtml", { enumerable: !0, get: function() {
|
1184
|
+
return n.sanitizeHtml;
|
1185
|
+
} }), Object.defineProperty(i, "sanitizeHtmlAssertUnchanged", { enumerable: !0, get: function() {
|
1186
|
+
return n.sanitizeHtmlAssertUnchanged;
|
1187
|
+
} }), Object.defineProperty(i, "sanitizeHtmlToFragment", { enumerable: !0, get: function() {
|
1188
|
+
return n.sanitizeHtmlToFragment;
|
1189
|
+
} });
|
1190
|
+
var r = ri;
|
1191
|
+
Object.defineProperty(i, "HtmlSanitizerBuilder", { enumerable: !0, get: function() {
|
1192
|
+
return r.HtmlSanitizerBuilder;
|
1193
|
+
} });
|
1194
|
+
var o = di;
|
1195
|
+
Object.defineProperty(i, "appendParams", { enumerable: !0, get: function() {
|
1196
|
+
return o.appendParams;
|
1197
|
+
} }), Object.defineProperty(i, "blobUrlFromScript", { enumerable: !0, get: function() {
|
1198
|
+
return o.blobUrlFromScript;
|
1199
|
+
} }), Object.defineProperty(i, "replaceFragment", { enumerable: !0, get: function() {
|
1200
|
+
return o.replaceFragment;
|
1201
|
+
} }), Object.defineProperty(i, "trustedResourceUrl", { enumerable: !0, get: function() {
|
1202
|
+
return o.trustedResourceUrl;
|
1203
|
+
} });
|
1204
|
+
var a = vi;
|
1205
|
+
Object.defineProperty(i, "concatScripts", { enumerable: !0, get: function() {
|
1206
|
+
return a.concatScripts;
|
1207
|
+
} }), Object.defineProperty(i, "safeScript", { enumerable: !0, get: function() {
|
1208
|
+
return a.safeScript;
|
1209
|
+
} }), Object.defineProperty(i, "safeScriptWithArgs", { enumerable: !0, get: function() {
|
1210
|
+
return a.safeScriptWithArgs;
|
1211
|
+
} }), Object.defineProperty(i, "scriptFromJson", { enumerable: !0, get: function() {
|
1212
|
+
return a.scriptFromJson;
|
1213
|
+
} });
|
1214
|
+
var c = Ai;
|
1215
|
+
Object.defineProperty(i, "concatStyles", { enumerable: !0, get: function() {
|
1216
|
+
return c.concatStyles;
|
1217
|
+
} }), Object.defineProperty(i, "safeStyle", { enumerable: !0, get: function() {
|
1218
|
+
return c.safeStyle;
|
1219
|
+
} });
|
1220
|
+
var l = Ii;
|
1221
|
+
Object.defineProperty(i, "concatStyleSheets", { enumerable: !0, get: function() {
|
1222
|
+
return l.concatStyleSheets;
|
1223
|
+
} }), Object.defineProperty(i, "safeStyleSheet", { enumerable: !0, get: function() {
|
1224
|
+
return l.safeStyleSheet;
|
1225
|
+
} });
|
1226
|
+
var p = Ti;
|
1227
|
+
Object.defineProperty(i, "SafeAttributePrefix", { enumerable: !0, get: function() {
|
1228
|
+
return p.SafeAttributePrefix;
|
1229
|
+
} }), Object.defineProperty(i, "unwrapAttributePrefix", { enumerable: !0, get: function() {
|
1230
|
+
return p.unwrapAttributePrefix;
|
1231
|
+
} });
|
1232
|
+
var d = Ri;
|
1233
|
+
Object.defineProperty(i, "EMPTY_HTML", { enumerable: !0, get: function() {
|
1234
|
+
return d.EMPTY_HTML;
|
1235
|
+
} }), Object.defineProperty(i, "isHtml", { enumerable: !0, get: function() {
|
1236
|
+
return d.isHtml;
|
1237
|
+
} }), Object.defineProperty(i, "SafeHtml", { enumerable: !0, get: function() {
|
1238
|
+
return d.SafeHtml;
|
1239
|
+
} }), Object.defineProperty(i, "unwrapHtml", { enumerable: !0, get: function() {
|
1240
|
+
return d.unwrapHtml;
|
1241
|
+
} });
|
1242
|
+
var h = Oi;
|
1243
|
+
Object.defineProperty(i, "isResourceUrl", { enumerable: !0, get: function() {
|
1244
|
+
return h.isResourceUrl;
|
1245
|
+
} }), Object.defineProperty(i, "TrustedResourceUrl", { enumerable: !0, get: function() {
|
1246
|
+
return h.TrustedResourceUrl;
|
1247
|
+
} }), Object.defineProperty(i, "unwrapResourceUrl", { enumerable: !0, get: function() {
|
1248
|
+
return h.unwrapResourceUrl;
|
1249
|
+
} });
|
1250
|
+
var b = Di;
|
1251
|
+
Object.defineProperty(i, "EMPTY_SCRIPT", { enumerable: !0, get: function() {
|
1252
|
+
return b.EMPTY_SCRIPT;
|
1253
|
+
} }), Object.defineProperty(i, "isScript", { enumerable: !0, get: function() {
|
1254
|
+
return b.isScript;
|
1255
|
+
} }), Object.defineProperty(i, "SafeScript", { enumerable: !0, get: function() {
|
1256
|
+
return b.SafeScript;
|
1257
|
+
} }), Object.defineProperty(i, "unwrapScript", { enumerable: !0, get: function() {
|
1258
|
+
return b.unwrapScript;
|
1259
|
+
} });
|
1260
|
+
var O = Ni;
|
1261
|
+
Object.defineProperty(i, "isStyle", { enumerable: !0, get: function() {
|
1262
|
+
return O.isStyle;
|
1263
|
+
} }), Object.defineProperty(i, "SafeStyle", { enumerable: !0, get: function() {
|
1264
|
+
return O.SafeStyle;
|
1265
|
+
} }), Object.defineProperty(i, "unwrapStyle", { enumerable: !0, get: function() {
|
1266
|
+
return O.unwrapStyle;
|
1267
|
+
} });
|
1268
|
+
var W = Pi;
|
1269
|
+
Object.defineProperty(i, "isStyleSheet", { enumerable: !0, get: function() {
|
1270
|
+
return W.isStyleSheet;
|
1271
|
+
} }), Object.defineProperty(i, "SafeStyleSheet", { enumerable: !0, get: function() {
|
1272
|
+
return W.SafeStyleSheet;
|
1273
|
+
} }), Object.defineProperty(i, "unwrapStyleSheet", { enumerable: !0, get: function() {
|
1274
|
+
return W.unwrapStyleSheet;
|
1275
|
+
} });
|
1276
|
+
})(F);
|
1277
|
+
/**
|
1278
|
+
* @license
|
1279
|
+
* Copyright 2020 Google Inc.
|
1280
|
+
*
|
1281
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1282
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1283
|
+
* in the Software without restriction, including without limitation the rights
|
1284
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1285
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1286
|
+
* furnished to do so, subject to the following conditions:
|
1287
|
+
*
|
1288
|
+
* The above copyright notice and this permission notice shall be included in
|
1289
|
+
* all copies or substantial portions of the Software.
|
1290
|
+
*
|
1291
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1292
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1293
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1294
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1295
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1296
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1297
|
+
* THE SOFTWARE.
|
1298
|
+
*/
|
1299
|
+
var xi = (
|
1300
|
+
/** @class */
|
1301
|
+
function() {
|
1302
|
+
function i() {
|
1303
|
+
this.rafIDs = /* @__PURE__ */ new Map();
|
1304
|
+
}
|
1305
|
+
return i.prototype.request = function(e, t) {
|
1306
|
+
var n = this;
|
1307
|
+
this.cancel(e);
|
1308
|
+
var r = requestAnimationFrame(function(o) {
|
1309
|
+
n.rafIDs.delete(e), t(o);
|
1310
|
+
});
|
1311
|
+
this.rafIDs.set(e, r);
|
1312
|
+
}, i.prototype.cancel = function(e) {
|
1313
|
+
var t = this.rafIDs.get(e);
|
1314
|
+
t && (cancelAnimationFrame(t), this.rafIDs.delete(e));
|
1315
|
+
}, i.prototype.cancelAll = function() {
|
1316
|
+
var e = this;
|
1317
|
+
this.rafIDs.forEach(function(t, n) {
|
1318
|
+
e.cancel(n);
|
1319
|
+
});
|
1320
|
+
}, i.prototype.getQueue = function() {
|
1321
|
+
var e = [];
|
1322
|
+
return this.rafIDs.forEach(function(t, n) {
|
1323
|
+
e.push(n);
|
1324
|
+
}), e;
|
1325
|
+
}, i;
|
1326
|
+
}()
|
1327
|
+
);
|
1328
|
+
/**
|
1329
|
+
* @license
|
1330
|
+
* Copyright 2016 Google Inc.
|
1331
|
+
*
|
1332
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1333
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1334
|
+
* in the Software without restriction, including without limitation the rights
|
1335
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1336
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1337
|
+
* furnished to do so, subject to the following conditions:
|
1338
|
+
*
|
1339
|
+
* The above copyright notice and this permission notice shall be included in
|
1340
|
+
* all copies or substantial portions of the Software.
|
1341
|
+
*
|
1342
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1343
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1344
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1345
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1346
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1347
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1348
|
+
* THE SOFTWARE.
|
1349
|
+
*/
|
1350
|
+
var Q = (
|
1351
|
+
/** @class */
|
1352
|
+
function() {
|
1353
|
+
function i(e) {
|
1354
|
+
e === void 0 && (e = {}), this.adapter = e;
|
1355
|
+
}
|
1356
|
+
return Object.defineProperty(i, "cssClasses", {
|
1357
|
+
get: function() {
|
1358
|
+
return {};
|
1359
|
+
},
|
1360
|
+
enumerable: !1,
|
1361
|
+
configurable: !0
|
1362
|
+
}), Object.defineProperty(i, "strings", {
|
1363
|
+
get: function() {
|
1364
|
+
return {};
|
1365
|
+
},
|
1366
|
+
enumerable: !1,
|
1367
|
+
configurable: !0
|
1368
|
+
}), Object.defineProperty(i, "numbers", {
|
1369
|
+
get: function() {
|
1370
|
+
return {};
|
1371
|
+
},
|
1372
|
+
enumerable: !1,
|
1373
|
+
configurable: !0
|
1374
|
+
}), Object.defineProperty(i, "defaultAdapter", {
|
1375
|
+
get: function() {
|
1376
|
+
return {};
|
1377
|
+
},
|
1378
|
+
enumerable: !1,
|
1379
|
+
configurable: !0
|
1380
|
+
}), i.prototype.init = function() {
|
1381
|
+
}, i.prototype.destroy = function() {
|
1382
|
+
}, i;
|
1383
|
+
}()
|
1384
|
+
);
|
1385
|
+
/**
|
1386
|
+
* @license
|
1387
|
+
* Copyright 2020 Google Inc.
|
1388
|
+
*
|
1389
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1390
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1391
|
+
* in the Software without restriction, including without limitation the rights
|
1392
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1393
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1394
|
+
* furnished to do so, subject to the following conditions:
|
1395
|
+
*
|
1396
|
+
* The above copyright notice and this permission notice shall be included in
|
1397
|
+
* all copies or substantial portions of the Software.
|
1398
|
+
*
|
1399
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1400
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1401
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1402
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1403
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1404
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1405
|
+
* THE SOFTWARE.
|
1406
|
+
*/
|
1407
|
+
var s = {
|
1408
|
+
UNKNOWN: "Unknown",
|
1409
|
+
BACKSPACE: "Backspace",
|
1410
|
+
ENTER: "Enter",
|
1411
|
+
SPACEBAR: "Spacebar",
|
1412
|
+
PAGE_UP: "PageUp",
|
1413
|
+
PAGE_DOWN: "PageDown",
|
1414
|
+
END: "End",
|
1415
|
+
HOME: "Home",
|
1416
|
+
ARROW_LEFT: "ArrowLeft",
|
1417
|
+
ARROW_UP: "ArrowUp",
|
1418
|
+
ARROW_RIGHT: "ArrowRight",
|
1419
|
+
ARROW_DOWN: "ArrowDown",
|
1420
|
+
DELETE: "Delete",
|
1421
|
+
ESCAPE: "Escape",
|
1422
|
+
TAB: "Tab"
|
1423
|
+
}, g = /* @__PURE__ */ new Set();
|
1424
|
+
g.add(s.BACKSPACE);
|
1425
|
+
g.add(s.ENTER);
|
1426
|
+
g.add(s.SPACEBAR);
|
1427
|
+
g.add(s.PAGE_UP);
|
1428
|
+
g.add(s.PAGE_DOWN);
|
1429
|
+
g.add(s.END);
|
1430
|
+
g.add(s.HOME);
|
1431
|
+
g.add(s.ARROW_LEFT);
|
1432
|
+
g.add(s.ARROW_UP);
|
1433
|
+
g.add(s.ARROW_RIGHT);
|
1434
|
+
g.add(s.ARROW_DOWN);
|
1435
|
+
g.add(s.DELETE);
|
1436
|
+
g.add(s.ESCAPE);
|
1437
|
+
g.add(s.TAB);
|
1438
|
+
var A = {
|
1439
|
+
BACKSPACE: 8,
|
1440
|
+
ENTER: 13,
|
1441
|
+
SPACEBAR: 32,
|
1442
|
+
PAGE_UP: 33,
|
1443
|
+
PAGE_DOWN: 34,
|
1444
|
+
END: 35,
|
1445
|
+
HOME: 36,
|
1446
|
+
ARROW_LEFT: 37,
|
1447
|
+
ARROW_UP: 38,
|
1448
|
+
ARROW_RIGHT: 39,
|
1449
|
+
ARROW_DOWN: 40,
|
1450
|
+
DELETE: 46,
|
1451
|
+
ESCAPE: 27,
|
1452
|
+
TAB: 9
|
1453
|
+
}, _ = /* @__PURE__ */ new Map();
|
1454
|
+
_.set(A.BACKSPACE, s.BACKSPACE);
|
1455
|
+
_.set(A.ENTER, s.ENTER);
|
1456
|
+
_.set(A.SPACEBAR, s.SPACEBAR);
|
1457
|
+
_.set(A.PAGE_UP, s.PAGE_UP);
|
1458
|
+
_.set(A.PAGE_DOWN, s.PAGE_DOWN);
|
1459
|
+
_.set(A.END, s.END);
|
1460
|
+
_.set(A.HOME, s.HOME);
|
1461
|
+
_.set(A.ARROW_LEFT, s.ARROW_LEFT);
|
1462
|
+
_.set(A.ARROW_UP, s.ARROW_UP);
|
1463
|
+
_.set(A.ARROW_RIGHT, s.ARROW_RIGHT);
|
1464
|
+
_.set(A.ARROW_DOWN, s.ARROW_DOWN);
|
1465
|
+
_.set(A.DELETE, s.DELETE);
|
1466
|
+
_.set(A.ESCAPE, s.ESCAPE);
|
1467
|
+
_.set(A.TAB, s.TAB);
|
1468
|
+
var x = /* @__PURE__ */ new Set();
|
1469
|
+
x.add(s.PAGE_UP);
|
1470
|
+
x.add(s.PAGE_DOWN);
|
1471
|
+
x.add(s.END);
|
1472
|
+
x.add(s.HOME);
|
1473
|
+
x.add(s.ARROW_LEFT);
|
1474
|
+
x.add(s.ARROW_UP);
|
1475
|
+
x.add(s.ARROW_RIGHT);
|
1476
|
+
x.add(s.ARROW_DOWN);
|
1477
|
+
function ce(i) {
|
1478
|
+
var e = i.key;
|
1479
|
+
if (g.has(e))
|
1480
|
+
return e;
|
1481
|
+
var t = _.get(i.keyCode);
|
1482
|
+
return t || s.UNKNOWN;
|
1483
|
+
}
|
1484
|
+
function Li(i) {
|
1485
|
+
return x.has(ce(i));
|
1486
|
+
}
|
1487
|
+
/**
|
1488
|
+
* @license
|
1489
|
+
* Copyright 2020 Google Inc.
|
1490
|
+
*
|
1491
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1492
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1493
|
+
* in the Software without restriction, including without limitation the rights
|
1494
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1495
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1496
|
+
* furnished to do so, subject to the following conditions:
|
1497
|
+
*
|
1498
|
+
* The above copyright notice and this permission notice shall be included in
|
1499
|
+
* all copies or substantial portions of the Software.
|
1500
|
+
*
|
1501
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1502
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1503
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1504
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1505
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1506
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1507
|
+
* THE SOFTWARE.
|
1508
|
+
*/
|
1509
|
+
var Z;
|
1510
|
+
(function(i) {
|
1511
|
+
i.PRIMARY_ACTION = "mdc-evolution-chip__action--primary", i.TRAILING_ACTION = "mdc-evolution-chip__action--trailing", i.CHIP_ROOT = "mdc-evolution-chip";
|
1512
|
+
})(Z || (Z = {}));
|
1513
|
+
var N;
|
1514
|
+
(function(i) {
|
1515
|
+
i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.CLICK = 1] = "CLICK", i[i.BACKSPACE_KEY = 2] = "BACKSPACE_KEY", i[i.DELETE_KEY = 3] = "DELETE_KEY", i[i.SPACEBAR_KEY = 4] = "SPACEBAR_KEY", i[i.ENTER_KEY = 5] = "ENTER_KEY";
|
1516
|
+
})(N || (N = {}));
|
1517
|
+
var E;
|
1518
|
+
(function(i) {
|
1519
|
+
i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.PRIMARY = 1] = "PRIMARY", i[i.TRAILING = 2] = "TRAILING";
|
1520
|
+
})(E || (E = {}));
|
1521
|
+
var X;
|
1522
|
+
(function(i) {
|
1523
|
+
i.INTERACTION = "MDCChipAction:interaction", i.NAVIGATION = "MDCChipAction:navigation";
|
1524
|
+
})(X || (X = {}));
|
1525
|
+
var w;
|
1526
|
+
(function(i) {
|
1527
|
+
i[i.FOCUSABLE = 0] = "FOCUSABLE", i[i.FOCUSABLE_AND_FOCUSED = 1] = "FOCUSABLE_AND_FOCUSED", i[i.NOT_FOCUSABLE = 2] = "NOT_FOCUSABLE";
|
1528
|
+
})(w || (w = {}));
|
1529
|
+
var v;
|
1530
|
+
(function(i) {
|
1531
|
+
i.ARIA_DISABLED = "aria-disabled", i.ARIA_HIDDEN = "aria-hidden", i.ARIA_SELECTED = "aria-selected", i.DATA_DELETABLE = "data-mdc-deletable", i.DISABLED = "disabled", i.ROLE = "role", i.TAB_INDEX = "tabindex";
|
1532
|
+
})(v || (v = {}));
|
1533
|
+
/**
|
1534
|
+
* @license
|
1535
|
+
* Copyright 2016 Google Inc.
|
1536
|
+
*
|
1537
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1538
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1539
|
+
* in the Software without restriction, including without limitation the rights
|
1540
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1541
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1542
|
+
* furnished to do so, subject to the following conditions:
|
1543
|
+
*
|
1544
|
+
* The above copyright notice and this permission notice shall be included in
|
1545
|
+
* all copies or substantial portions of the Software.
|
1546
|
+
*
|
1547
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1548
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1549
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1550
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1551
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1552
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1553
|
+
* THE SOFTWARE.
|
1554
|
+
*/
|
1555
|
+
var m;
|
1556
|
+
(function(i) {
|
1557
|
+
i.SELECTING = "mdc-evolution-chip--selecting", i.DESELECTING = "mdc-evolution-chip--deselecting", i.SELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--selecting-with-primary-icon", i.DESELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--deselecting-with-primary-icon", i.DISABLED = "mdc-evolution-chip--disabled", i.ENTER = "mdc-evolution-chip--enter", i.EXIT = "mdc-evolution-chip--exit", i.SELECTED = "mdc-evolution-chip--selected", i.HIDDEN = "mdc-evolution-chip--hidden", i.WITH_PRIMARY_ICON = "mdc-evolution-chip--with-primary-icon";
|
1558
|
+
})(m || (m = {}));
|
1559
|
+
var S;
|
1560
|
+
(function(i) {
|
1561
|
+
i.INTERACTION = "MDCChip:interaction", i.NAVIGATION = "MDCChip:navigation", i.ANIMATION = "MDCChip:animation";
|
1562
|
+
})(S || (S = {}));
|
1563
|
+
var at;
|
1564
|
+
(function(i) {
|
1565
|
+
i.DATA_REMOVED_ANNOUNCEMENT = "data-mdc-removed-announcement", i.DATA_ADDED_ANNOUNCEMENT = "data-mdc-added-announcement";
|
1566
|
+
})(at || (at = {}));
|
1567
|
+
var C;
|
1568
|
+
(function(i) {
|
1569
|
+
i.ENTER = "mdc-evolution-chip-enter", i.EXIT = "mdc-evolution-chip-exit";
|
1570
|
+
})(C || (C = {}));
|
1571
|
+
/**
|
1572
|
+
* @license
|
1573
|
+
* Copyright 2020 Google Inc.
|
1574
|
+
*
|
1575
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1576
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1577
|
+
* in the Software without restriction, including without limitation the rights
|
1578
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1579
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1580
|
+
* furnished to do so, subject to the following conditions:
|
1581
|
+
*
|
1582
|
+
* The above copyright notice and this permission notice shall be included in
|
1583
|
+
* all copies or substantial portions of the Software.
|
1584
|
+
*
|
1585
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1586
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1587
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1588
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1589
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1590
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1591
|
+
* THE SOFTWARE.
|
1592
|
+
*/
|
1593
|
+
var k;
|
1594
|
+
(function(i) {
|
1595
|
+
i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.LEFT = 1] = "LEFT", i[i.RIGHT = 2] = "RIGHT";
|
1596
|
+
})(k || (k = {}));
|
1597
|
+
var D;
|
1598
|
+
(function(i) {
|
1599
|
+
i.SELECTION = "selection", i.EXIT = "exit";
|
1600
|
+
})(D || (D = {}));
|
1601
|
+
var Fi = (
|
1602
|
+
/** @class */
|
1603
|
+
function(i) {
|
1604
|
+
M(e, i);
|
1605
|
+
function e(t) {
|
1606
|
+
var n = i.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
1607
|
+
return n.animFrame = new xi(), n;
|
1608
|
+
}
|
1609
|
+
return Object.defineProperty(e, "defaultAdapter", {
|
1610
|
+
get: function() {
|
1611
|
+
return {
|
1612
|
+
addClass: function() {
|
1613
|
+
},
|
1614
|
+
emitEvent: function() {
|
1615
|
+
},
|
1616
|
+
getActions: function() {
|
1617
|
+
return [];
|
1618
|
+
},
|
1619
|
+
getAttribute: function() {
|
1620
|
+
return null;
|
1621
|
+
},
|
1622
|
+
getElementID: function() {
|
1623
|
+
return "";
|
1624
|
+
},
|
1625
|
+
getOffsetWidth: function() {
|
1626
|
+
return 0;
|
1627
|
+
},
|
1628
|
+
hasClass: function() {
|
1629
|
+
return !1;
|
1630
|
+
},
|
1631
|
+
isActionDisabled: function() {
|
1632
|
+
return !1;
|
1633
|
+
},
|
1634
|
+
isActionFocusable: function() {
|
1635
|
+
return !1;
|
1636
|
+
},
|
1637
|
+
isActionSelectable: function() {
|
1638
|
+
return !1;
|
1639
|
+
},
|
1640
|
+
isActionSelected: function() {
|
1641
|
+
return !1;
|
1642
|
+
},
|
1643
|
+
isRTL: function() {
|
1644
|
+
return !1;
|
1645
|
+
},
|
1646
|
+
removeClass: function() {
|
1647
|
+
},
|
1648
|
+
setActionDisabled: function() {
|
1649
|
+
},
|
1650
|
+
setActionFocus: function() {
|
1651
|
+
},
|
1652
|
+
setActionSelected: function() {
|
1653
|
+
},
|
1654
|
+
setStyleProperty: function() {
|
1655
|
+
}
|
1656
|
+
};
|
1657
|
+
},
|
1658
|
+
enumerable: !1,
|
1659
|
+
configurable: !0
|
1660
|
+
}), e.prototype.destroy = function() {
|
1661
|
+
this.animFrame.cancelAll();
|
1662
|
+
}, e.prototype.getElementID = function() {
|
1663
|
+
return this.adapter.getElementID();
|
1664
|
+
}, e.prototype.setDisabled = function(t) {
|
1665
|
+
var n, r, o = this.getActions();
|
1666
|
+
try {
|
1667
|
+
for (var a = I(o), c = a.next(); !c.done; c = a.next()) {
|
1668
|
+
var l = c.value;
|
1669
|
+
this.adapter.setActionDisabled(l, t);
|
1670
|
+
}
|
1671
|
+
} catch (p) {
|
1672
|
+
n = { error: p };
|
1673
|
+
} finally {
|
1674
|
+
try {
|
1675
|
+
c && !c.done && (r = a.return) && r.call(a);
|
1676
|
+
} finally {
|
1677
|
+
if (n)
|
1678
|
+
throw n.error;
|
1679
|
+
}
|
1680
|
+
}
|
1681
|
+
t ? this.adapter.addClass(m.DISABLED) : this.adapter.removeClass(m.DISABLED);
|
1682
|
+
}, e.prototype.isDisabled = function() {
|
1683
|
+
var t, n, r = this.getActions();
|
1684
|
+
try {
|
1685
|
+
for (var o = I(r), a = o.next(); !a.done; a = o.next()) {
|
1686
|
+
var c = a.value;
|
1687
|
+
if (this.adapter.isActionDisabled(c))
|
1688
|
+
return !0;
|
1689
|
+
}
|
1690
|
+
} catch (l) {
|
1691
|
+
t = { error: l };
|
1692
|
+
} finally {
|
1693
|
+
try {
|
1694
|
+
a && !a.done && (n = o.return) && n.call(o);
|
1695
|
+
} finally {
|
1696
|
+
if (t)
|
1697
|
+
throw t.error;
|
1698
|
+
}
|
1699
|
+
}
|
1700
|
+
return !1;
|
1701
|
+
}, e.prototype.getActions = function() {
|
1702
|
+
return this.adapter.getActions();
|
1703
|
+
}, e.prototype.isActionFocusable = function(t) {
|
1704
|
+
return this.adapter.isActionFocusable(t);
|
1705
|
+
}, e.prototype.isActionSelectable = function(t) {
|
1706
|
+
return this.adapter.isActionSelectable(t);
|
1707
|
+
}, e.prototype.isActionSelected = function(t) {
|
1708
|
+
return this.adapter.isActionSelected(t);
|
1709
|
+
}, e.prototype.setActionFocus = function(t, n) {
|
1710
|
+
this.adapter.setActionFocus(t, n);
|
1711
|
+
}, e.prototype.setActionSelected = function(t, n) {
|
1712
|
+
this.adapter.setActionSelected(t, n), this.animateSelection(n);
|
1713
|
+
}, e.prototype.startAnimation = function(t) {
|
1714
|
+
if (t === C.ENTER) {
|
1715
|
+
this.adapter.addClass(m.ENTER);
|
1716
|
+
return;
|
1717
|
+
}
|
1718
|
+
if (t === C.EXIT) {
|
1719
|
+
this.adapter.addClass(m.EXIT);
|
1720
|
+
return;
|
1721
|
+
}
|
1722
|
+
}, e.prototype.handleAnimationEnd = function(t) {
|
1723
|
+
var n = this, r = t.animationName;
|
1724
|
+
if (r === C.ENTER) {
|
1725
|
+
this.adapter.removeClass(m.ENTER), this.adapter.emitEvent(S.ANIMATION, {
|
1726
|
+
chipID: this.getElementID(),
|
1727
|
+
animation: C.ENTER,
|
1728
|
+
addedAnnouncement: this.getAddedAnnouncement(),
|
1729
|
+
isComplete: !0
|
1730
|
+
});
|
1731
|
+
return;
|
1732
|
+
}
|
1733
|
+
if (r === C.EXIT) {
|
1734
|
+
this.adapter.removeClass(m.EXIT), this.adapter.addClass(m.HIDDEN);
|
1735
|
+
var o = this.adapter.getOffsetWidth();
|
1736
|
+
this.adapter.setStyleProperty("width", o + "px"), this.animFrame.request(D.EXIT, function() {
|
1737
|
+
n.animFrame.request(D.EXIT, function() {
|
1738
|
+
n.adapter.setStyleProperty("width", "0");
|
1739
|
+
});
|
1740
|
+
});
|
1741
|
+
}
|
1742
|
+
}, e.prototype.handleTransitionEnd = function() {
|
1743
|
+
this.adapter.hasClass(m.HIDDEN) && this.adapter.emitEvent(S.ANIMATION, {
|
1744
|
+
chipID: this.getElementID(),
|
1745
|
+
animation: C.EXIT,
|
1746
|
+
removedAnnouncement: this.getRemovedAnnouncement(),
|
1747
|
+
isComplete: !0
|
1748
|
+
});
|
1749
|
+
}, e.prototype.handleActionInteraction = function(t) {
|
1750
|
+
var n = t.detail, r = n.source, o = n.actionID, a = this.adapter.isActionSelectable(r), c = this.adapter.isActionSelected(r);
|
1751
|
+
this.adapter.emitEvent(S.INTERACTION, {
|
1752
|
+
chipID: this.getElementID(),
|
1753
|
+
shouldRemove: this.shouldRemove(n),
|
1754
|
+
actionID: o,
|
1755
|
+
isSelectable: a,
|
1756
|
+
isSelected: c,
|
1757
|
+
source: r
|
1758
|
+
});
|
1759
|
+
}, e.prototype.handleActionNavigation = function(t) {
|
1760
|
+
var n = t.detail, r = n.source, o = n.key, a = this.adapter.isRTL(), c = this.adapter.isActionFocusable(E.TRAILING), l = this.adapter.isActionFocusable(E.PRIMARY), p = this.directionFromKey(o, a), d = r === E.PRIMARY && p === k.RIGHT && c, h = r === E.TRAILING && p === k.LEFT && l;
|
1761
|
+
if (d) {
|
1762
|
+
this.navigateActions({ from: r, to: E.TRAILING });
|
1763
|
+
return;
|
1764
|
+
}
|
1765
|
+
if (h) {
|
1766
|
+
this.navigateActions({ from: r, to: E.PRIMARY });
|
1767
|
+
return;
|
1768
|
+
}
|
1769
|
+
this.adapter.emitEvent(S.NAVIGATION, {
|
1770
|
+
chipID: this.getElementID(),
|
1771
|
+
isRTL: a,
|
1772
|
+
source: r,
|
1773
|
+
key: o
|
1774
|
+
});
|
1775
|
+
}, e.prototype.directionFromKey = function(t, n) {
|
1776
|
+
var r = t === s.ARROW_LEFT, o = t === s.ARROW_RIGHT;
|
1777
|
+
return !n && r || n && o ? k.LEFT : !n && o || n && r ? k.RIGHT : k.UNSPECIFIED;
|
1778
|
+
}, e.prototype.navigateActions = function(t) {
|
1779
|
+
this.adapter.setActionFocus(t.from, w.NOT_FOCUSABLE), this.adapter.setActionFocus(t.to, w.FOCUSABLE_AND_FOCUSED);
|
1780
|
+
}, e.prototype.shouldRemove = function(t) {
|
1781
|
+
var n = t.source, r = t.trigger;
|
1782
|
+
return r === N.BACKSPACE_KEY || r === N.DELETE_KEY ? !0 : n === E.TRAILING;
|
1783
|
+
}, e.prototype.getRemovedAnnouncement = function() {
|
1784
|
+
var t = this.adapter.getAttribute(at.DATA_REMOVED_ANNOUNCEMENT);
|
1785
|
+
return t || void 0;
|
1786
|
+
}, e.prototype.getAddedAnnouncement = function() {
|
1787
|
+
var t = this.adapter.getAttribute(at.DATA_ADDED_ANNOUNCEMENT);
|
1788
|
+
return t || void 0;
|
1789
|
+
}, e.prototype.animateSelection = function(t) {
|
1790
|
+
var n = this;
|
1791
|
+
this.resetAnimationStyles(), this.animFrame.request(D.SELECTION, function() {
|
1792
|
+
n.animFrame.request(D.SELECTION, function() {
|
1793
|
+
n.updateSelectionStyles(t);
|
1794
|
+
});
|
1795
|
+
});
|
1796
|
+
}, e.prototype.resetAnimationStyles = function() {
|
1797
|
+
this.adapter.removeClass(m.SELECTING), this.adapter.removeClass(m.DESELECTING), this.adapter.removeClass(m.SELECTING_WITH_PRIMARY_ICON), this.adapter.removeClass(m.DESELECTING_WITH_PRIMARY_ICON);
|
1798
|
+
}, e.prototype.updateSelectionStyles = function(t) {
|
1799
|
+
var n = this, r = this.adapter.hasClass(m.WITH_PRIMARY_ICON);
|
1800
|
+
if (r && t) {
|
1801
|
+
this.adapter.addClass(m.SELECTING_WITH_PRIMARY_ICON), this.animFrame.request(D.SELECTION, function() {
|
1802
|
+
n.adapter.addClass(m.SELECTED);
|
1803
|
+
});
|
1804
|
+
return;
|
1805
|
+
}
|
1806
|
+
if (r && !t) {
|
1807
|
+
this.adapter.addClass(m.DESELECTING_WITH_PRIMARY_ICON), this.animFrame.request(D.SELECTION, function() {
|
1808
|
+
n.adapter.removeClass(m.SELECTED);
|
1809
|
+
});
|
1810
|
+
return;
|
1811
|
+
}
|
1812
|
+
if (t) {
|
1813
|
+
this.adapter.addClass(m.SELECTING), this.animFrame.request(D.SELECTION, function() {
|
1814
|
+
n.adapter.addClass(m.SELECTED);
|
1815
|
+
});
|
1816
|
+
return;
|
1817
|
+
}
|
1818
|
+
if (!t) {
|
1819
|
+
this.adapter.addClass(m.DESELECTING), this.animFrame.request(D.SELECTION, function() {
|
1820
|
+
n.adapter.removeClass(m.SELECTED);
|
1821
|
+
});
|
1822
|
+
return;
|
1823
|
+
}
|
1824
|
+
}, e;
|
1825
|
+
}(Q)
|
1826
|
+
);
|
1827
|
+
/**
|
1828
|
+
* @license
|
1829
|
+
* Copyright 2016 Google Inc.
|
1830
|
+
*
|
1831
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1832
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1833
|
+
* in the Software without restriction, including without limitation the rights
|
1834
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1835
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1836
|
+
* furnished to do so, subject to the following conditions:
|
1837
|
+
*
|
1838
|
+
* The above copyright notice and this permission notice shall be included in
|
1839
|
+
* all copies or substantial portions of the Software.
|
1840
|
+
*
|
1841
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1842
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1843
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1844
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1845
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1846
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1847
|
+
* THE SOFTWARE.
|
1848
|
+
*/
|
1849
|
+
function Mi(i) {
|
1850
|
+
return String(i).replace(/\-([a-z])/g, function(e, t) {
|
1851
|
+
return t.toUpperCase();
|
1852
|
+
});
|
1853
|
+
}
|
1854
|
+
var le = (
|
1855
|
+
/** @class */
|
1856
|
+
function() {
|
1857
|
+
function i(e, t) {
|
1858
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
1859
|
+
n[r - 2] = arguments[r];
|
1860
|
+
this.root = e, this.initialize.apply(this, fe([], ve(n))), this.foundation = t === void 0 ? this.getDefaultFoundation() : t, this.foundation.init(), this.initialSyncWithDOM();
|
1861
|
+
}
|
1862
|
+
return i.attachTo = function(e) {
|
1863
|
+
return new i(e, new Q({}));
|
1864
|
+
}, i.prototype.initialize = function() {
|
1865
|
+
}, i.prototype.getDefaultFoundation = function() {
|
1866
|
+
throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
|
1867
|
+
}, i.prototype.initialSyncWithDOM = function() {
|
1868
|
+
}, i.prototype.destroy = function() {
|
1869
|
+
this.foundation.destroy();
|
1870
|
+
}, i.prototype.listen = function(e, t, n) {
|
1871
|
+
this.root.addEventListener(e, t, n);
|
1872
|
+
}, i.prototype.unlisten = function(e, t, n) {
|
1873
|
+
this.root.removeEventListener(e, t, n);
|
1874
|
+
}, i.prototype.emit = function(e, t, n) {
|
1875
|
+
n === void 0 && (n = !1);
|
1876
|
+
var r;
|
1877
|
+
typeof CustomEvent == "function" ? r = new CustomEvent(e, {
|
1878
|
+
bubbles: n,
|
1879
|
+
detail: t
|
1880
|
+
}) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(e, n, !1, t)), this.root.dispatchEvent(r);
|
1881
|
+
}, i.prototype.safeSetAttribute = function(e, t, n) {
|
1882
|
+
if (t.toLowerCase() === "tabindex")
|
1883
|
+
e.tabIndex = Number(n);
|
1884
|
+
else if (t.indexOf("data-") === 0) {
|
1885
|
+
var r = Mi(t.replace(/^data-/, ""));
|
1886
|
+
e.dataset[r] = n;
|
1887
|
+
} else
|
1888
|
+
ie([F.safeAttrPrefix(Tt || (Tt = H(["aria-"], ["aria-"]))), F.safeAttrPrefix(Rt || (Rt = H(["role"], ["role"])))], e, t, n);
|
1889
|
+
}, i;
|
1890
|
+
}()
|
1891
|
+
), Tt, Rt;
|
1892
|
+
/**
|
1893
|
+
* @license
|
1894
|
+
* Copyright 2018 Google Inc.
|
1895
|
+
*
|
1896
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1897
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1898
|
+
* in the Software without restriction, including without limitation the rights
|
1899
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1900
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1901
|
+
* furnished to do so, subject to the following conditions:
|
1902
|
+
*
|
1903
|
+
* The above copyright notice and this permission notice shall be included in
|
1904
|
+
* all copies or substantial portions of the Software.
|
1905
|
+
*
|
1906
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1907
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1908
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1909
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1910
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1911
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1912
|
+
* THE SOFTWARE.
|
1913
|
+
*/
|
1914
|
+
function Ui(i, e) {
|
1915
|
+
if (i.closest)
|
1916
|
+
return i.closest(e);
|
1917
|
+
for (var t = i; t; ) {
|
1918
|
+
if (se(t, e))
|
1919
|
+
return t;
|
1920
|
+
t = t.parentElement;
|
1921
|
+
}
|
1922
|
+
return null;
|
1923
|
+
}
|
1924
|
+
function se(i, e) {
|
1925
|
+
var t = i.matches || i.webkitMatchesSelector || i.msMatchesSelector;
|
1926
|
+
return t.call(i, e);
|
1927
|
+
}
|
1928
|
+
/**
|
1929
|
+
* @license
|
1930
|
+
* Copyright 2019 Google Inc.
|
1931
|
+
*
|
1932
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1933
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1934
|
+
* in the Software without restriction, including without limitation the rights
|
1935
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1936
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1937
|
+
* furnished to do so, subject to the following conditions:
|
1938
|
+
*
|
1939
|
+
* The above copyright notice and this permission notice shall be included in
|
1940
|
+
* all copies or substantial portions of the Software.
|
1941
|
+
*
|
1942
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1943
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1944
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1945
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1946
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1947
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1948
|
+
* THE SOFTWARE.
|
1949
|
+
*/
|
1950
|
+
function nt(i) {
|
1951
|
+
return i === void 0 && (i = window), zi(i) ? { passive: !0 } : !1;
|
1952
|
+
}
|
1953
|
+
function zi(i) {
|
1954
|
+
i === void 0 && (i = window);
|
1955
|
+
var e = !1;
|
1956
|
+
try {
|
1957
|
+
var t = {
|
1958
|
+
// This function will be called when the browser
|
1959
|
+
// attempts to access the passive property.
|
1960
|
+
get passive() {
|
1961
|
+
return e = !0, !1;
|
1962
|
+
}
|
1963
|
+
}, n = function() {
|
1964
|
+
};
|
1965
|
+
i.document.addEventListener("test", n, t), i.document.removeEventListener("test", n, t);
|
1966
|
+
} catch {
|
1967
|
+
e = !1;
|
1968
|
+
}
|
1969
|
+
return e;
|
1970
|
+
}
|
1971
|
+
/**
|
1972
|
+
* @license
|
1973
|
+
* Copyright 2016 Google Inc.
|
1974
|
+
*
|
1975
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1976
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1977
|
+
* in the Software without restriction, including without limitation the rights
|
1978
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1979
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1980
|
+
* furnished to do so, subject to the following conditions:
|
1981
|
+
*
|
1982
|
+
* The above copyright notice and this permission notice shall be included in
|
1983
|
+
* all copies or substantial portions of the Software.
|
1984
|
+
*
|
1985
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1986
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1987
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1988
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1989
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1990
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1991
|
+
* THE SOFTWARE.
|
1992
|
+
*/
|
1993
|
+
var Hi = {
|
1994
|
+
// Ripple is a special case where the "root" component is really a "mixin" of
|
1995
|
+
// sorts,
|
1996
|
+
// given that it's an 'upgrade' to an existing component. That being said it
|
1997
|
+
// is the root
|
1998
|
+
// CSS class that all other CSS classes derive from.
|
1999
|
+
BG_FOCUSED: "mdc-ripple-upgraded--background-focused",
|
2000
|
+
FG_ACTIVATION: "mdc-ripple-upgraded--foreground-activation",
|
2001
|
+
FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation",
|
2002
|
+
ROOT: "mdc-ripple-upgraded",
|
2003
|
+
UNBOUNDED: "mdc-ripple-upgraded--unbounded"
|
2004
|
+
}, ki = {
|
2005
|
+
VAR_FG_SCALE: "--mdc-ripple-fg-scale",
|
2006
|
+
VAR_FG_SIZE: "--mdc-ripple-fg-size",
|
2007
|
+
VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end",
|
2008
|
+
VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start",
|
2009
|
+
VAR_LEFT: "--mdc-ripple-left",
|
2010
|
+
VAR_TOP: "--mdc-ripple-top"
|
2011
|
+
}, Ot = {
|
2012
|
+
DEACTIVATION_TIMEOUT_MS: 225,
|
2013
|
+
// animation duration)
|
2014
|
+
FG_DEACTIVATION_MS: 150,
|
2015
|
+
// (i.e. deactivation animation duration)
|
2016
|
+
INITIAL_ORIGIN_SCALE: 0.6,
|
2017
|
+
PADDING: 10,
|
2018
|
+
TAP_DELAY_MS: 300
|
2019
|
+
// Delay between touch and simulated mouse events on touch devices
|
2020
|
+
}, rt;
|
2021
|
+
function Bi(i, e) {
|
2022
|
+
e === void 0 && (e = !1);
|
2023
|
+
var t = i.CSS, n = rt;
|
2024
|
+
if (typeof rt == "boolean" && !e)
|
2025
|
+
return rt;
|
2026
|
+
var r = t && typeof t.supports == "function";
|
2027
|
+
if (!r)
|
2028
|
+
return !1;
|
2029
|
+
var o = t.supports("--css-vars", "yes"), a = t.supports("(--css-vars: yes)") && t.supports("color", "#00000000");
|
2030
|
+
return n = o || a, e || (rt = n), n;
|
2031
|
+
}
|
2032
|
+
function Gi(i, e, t) {
|
2033
|
+
if (!i)
|
2034
|
+
return { x: 0, y: 0 };
|
2035
|
+
var n = e.x, r = e.y, o = n + t.left, a = r + t.top, c, l;
|
2036
|
+
if (i.type === "touchstart") {
|
2037
|
+
var p = i;
|
2038
|
+
c = p.changedTouches[0].pageX - o, l = p.changedTouches[0].pageY - a;
|
2039
|
+
} else {
|
2040
|
+
var d = i;
|
2041
|
+
c = d.pageX - o, l = d.pageY - a;
|
2042
|
+
}
|
2043
|
+
return { x: c, y: l };
|
2044
|
+
}
|
2045
|
+
/**
|
2046
|
+
* @license
|
2047
|
+
* Copyright 2016 Google Inc.
|
2048
|
+
*
|
2049
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2050
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2051
|
+
* in the Software without restriction, including without limitation the rights
|
2052
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2053
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2054
|
+
* furnished to do so, subject to the following conditions:
|
2055
|
+
*
|
2056
|
+
* The above copyright notice and this permission notice shall be included in
|
2057
|
+
* all copies or substantial portions of the Software.
|
2058
|
+
*
|
2059
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2060
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2061
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2062
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2063
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2064
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2065
|
+
* THE SOFTWARE.
|
2066
|
+
*/
|
2067
|
+
var Dt = [
|
2068
|
+
"touchstart",
|
2069
|
+
"pointerdown",
|
2070
|
+
"mousedown",
|
2071
|
+
"keydown"
|
2072
|
+
], Nt = [
|
2073
|
+
"touchend",
|
2074
|
+
"pointerup",
|
2075
|
+
"mouseup",
|
2076
|
+
"contextmenu"
|
2077
|
+
], ot = [], pe = (
|
2078
|
+
/** @class */
|
2079
|
+
function(i) {
|
2080
|
+
M(e, i);
|
2081
|
+
function e(t) {
|
2082
|
+
var n = i.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
2083
|
+
return n.activationAnimationHasEnded = !1, n.activationTimer = 0, n.fgDeactivationRemovalTimer = 0, n.fgScale = "0", n.frame = { width: 0, height: 0 }, n.initialSize = 0, n.layoutFrame = 0, n.maxRadius = 0, n.unboundedCoords = { left: 0, top: 0 }, n.activationState = n.defaultActivationState(), n.activationTimerCallback = function() {
|
2084
|
+
n.activationAnimationHasEnded = !0, n.runDeactivationUXLogicIfReady();
|
2085
|
+
}, n.activateHandler = function(r) {
|
2086
|
+
n.activateImpl(r);
|
2087
|
+
}, n.deactivateHandler = function() {
|
2088
|
+
n.deactivateImpl();
|
2089
|
+
}, n.focusHandler = function() {
|
2090
|
+
n.handleFocus();
|
2091
|
+
}, n.blurHandler = function() {
|
2092
|
+
n.handleBlur();
|
2093
|
+
}, n.resizeHandler = function() {
|
2094
|
+
n.layout();
|
2095
|
+
}, n;
|
2096
|
+
}
|
2097
|
+
return Object.defineProperty(e, "cssClasses", {
|
2098
|
+
get: function() {
|
2099
|
+
return Hi;
|
2100
|
+
},
|
2101
|
+
enumerable: !1,
|
2102
|
+
configurable: !0
|
2103
|
+
}), Object.defineProperty(e, "strings", {
|
2104
|
+
get: function() {
|
2105
|
+
return ki;
|
2106
|
+
},
|
2107
|
+
enumerable: !1,
|
2108
|
+
configurable: !0
|
2109
|
+
}), Object.defineProperty(e, "numbers", {
|
2110
|
+
get: function() {
|
2111
|
+
return Ot;
|
2112
|
+
},
|
2113
|
+
enumerable: !1,
|
2114
|
+
configurable: !0
|
2115
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
2116
|
+
get: function() {
|
2117
|
+
return {
|
2118
|
+
addClass: function() {
|
2119
|
+
},
|
2120
|
+
browserSupportsCssVars: function() {
|
2121
|
+
return !0;
|
2122
|
+
},
|
2123
|
+
computeBoundingRect: function() {
|
2124
|
+
return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
|
2125
|
+
},
|
2126
|
+
containsEventTarget: function() {
|
2127
|
+
return !0;
|
2128
|
+
},
|
2129
|
+
deregisterDocumentInteractionHandler: function() {
|
2130
|
+
},
|
2131
|
+
deregisterInteractionHandler: function() {
|
2132
|
+
},
|
2133
|
+
deregisterResizeHandler: function() {
|
2134
|
+
},
|
2135
|
+
getWindowPageOffset: function() {
|
2136
|
+
return { x: 0, y: 0 };
|
2137
|
+
},
|
2138
|
+
isSurfaceActive: function() {
|
2139
|
+
return !0;
|
2140
|
+
},
|
2141
|
+
isSurfaceDisabled: function() {
|
2142
|
+
return !0;
|
2143
|
+
},
|
2144
|
+
isUnbounded: function() {
|
2145
|
+
return !0;
|
2146
|
+
},
|
2147
|
+
registerDocumentInteractionHandler: function() {
|
2148
|
+
},
|
2149
|
+
registerInteractionHandler: function() {
|
2150
|
+
},
|
2151
|
+
registerResizeHandler: function() {
|
2152
|
+
},
|
2153
|
+
removeClass: function() {
|
2154
|
+
},
|
2155
|
+
updateCssVariable: function() {
|
2156
|
+
}
|
2157
|
+
};
|
2158
|
+
},
|
2159
|
+
enumerable: !1,
|
2160
|
+
configurable: !0
|
2161
|
+
}), e.prototype.init = function() {
|
2162
|
+
var t = this, n = this.supportsPressRipple();
|
2163
|
+
if (this.registerRootHandlers(n), n) {
|
2164
|
+
var r = e.cssClasses, o = r.ROOT, a = r.UNBOUNDED;
|
2165
|
+
requestAnimationFrame(function() {
|
2166
|
+
t.adapter.addClass(o), t.adapter.isUnbounded() && (t.adapter.addClass(a), t.layoutInternal());
|
2167
|
+
});
|
2168
|
+
}
|
2169
|
+
}, e.prototype.destroy = function() {
|
2170
|
+
var t = this;
|
2171
|
+
if (this.supportsPressRipple()) {
|
2172
|
+
this.activationTimer && (clearTimeout(this.activationTimer), this.activationTimer = 0, this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)), this.fgDeactivationRemovalTimer && (clearTimeout(this.fgDeactivationRemovalTimer), this.fgDeactivationRemovalTimer = 0, this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));
|
2173
|
+
var n = e.cssClasses, r = n.ROOT, o = n.UNBOUNDED;
|
2174
|
+
requestAnimationFrame(function() {
|
2175
|
+
t.adapter.removeClass(r), t.adapter.removeClass(o), t.removeCssVars();
|
2176
|
+
});
|
2177
|
+
}
|
2178
|
+
this.deregisterRootHandlers(), this.deregisterDeactivationHandlers();
|
2179
|
+
}, e.prototype.activate = function(t) {
|
2180
|
+
this.activateImpl(t);
|
2181
|
+
}, e.prototype.deactivate = function() {
|
2182
|
+
this.deactivateImpl();
|
2183
|
+
}, e.prototype.layout = function() {
|
2184
|
+
var t = this;
|
2185
|
+
this.layoutFrame && cancelAnimationFrame(this.layoutFrame), this.layoutFrame = requestAnimationFrame(function() {
|
2186
|
+
t.layoutInternal(), t.layoutFrame = 0;
|
2187
|
+
});
|
2188
|
+
}, e.prototype.setUnbounded = function(t) {
|
2189
|
+
var n = e.cssClasses.UNBOUNDED;
|
2190
|
+
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
2191
|
+
}, e.prototype.handleFocus = function() {
|
2192
|
+
var t = this;
|
2193
|
+
requestAnimationFrame(function() {
|
2194
|
+
t.adapter.addClass(e.cssClasses.BG_FOCUSED);
|
2195
|
+
});
|
2196
|
+
}, e.prototype.handleBlur = function() {
|
2197
|
+
var t = this;
|
2198
|
+
requestAnimationFrame(function() {
|
2199
|
+
t.adapter.removeClass(e.cssClasses.BG_FOCUSED);
|
2200
|
+
});
|
2201
|
+
}, e.prototype.supportsPressRipple = function() {
|
2202
|
+
return this.adapter.browserSupportsCssVars();
|
2203
|
+
}, e.prototype.defaultActivationState = function() {
|
2204
|
+
return {
|
2205
|
+
activationEvent: void 0,
|
2206
|
+
hasDeactivationUXRun: !1,
|
2207
|
+
isActivated: !1,
|
2208
|
+
isProgrammatic: !1,
|
2209
|
+
wasActivatedByPointer: !1,
|
2210
|
+
wasElementMadeActive: !1
|
2211
|
+
};
|
2212
|
+
}, e.prototype.registerRootHandlers = function(t) {
|
2213
|
+
var n, r;
|
2214
|
+
if (t) {
|
2215
|
+
try {
|
2216
|
+
for (var o = I(Dt), a = o.next(); !a.done; a = o.next()) {
|
2217
|
+
var c = a.value;
|
2218
|
+
this.adapter.registerInteractionHandler(c, this.activateHandler);
|
2219
|
+
}
|
2220
|
+
} catch (l) {
|
2221
|
+
n = { error: l };
|
2222
|
+
} finally {
|
2223
|
+
try {
|
2224
|
+
a && !a.done && (r = o.return) && r.call(o);
|
2225
|
+
} finally {
|
2226
|
+
if (n)
|
2227
|
+
throw n.error;
|
2228
|
+
}
|
2229
|
+
}
|
2230
|
+
this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler);
|
2231
|
+
}
|
2232
|
+
this.adapter.registerInteractionHandler("focus", this.focusHandler), this.adapter.registerInteractionHandler("blur", this.blurHandler);
|
2233
|
+
}, e.prototype.registerDeactivationHandlers = function(t) {
|
2234
|
+
var n, r;
|
2235
|
+
if (t.type === "keydown")
|
2236
|
+
this.adapter.registerInteractionHandler("keyup", this.deactivateHandler);
|
2237
|
+
else
|
2238
|
+
try {
|
2239
|
+
for (var o = I(Nt), a = o.next(); !a.done; a = o.next()) {
|
2240
|
+
var c = a.value;
|
2241
|
+
this.adapter.registerDocumentInteractionHandler(c, this.deactivateHandler);
|
2242
|
+
}
|
2243
|
+
} catch (l) {
|
2244
|
+
n = { error: l };
|
2245
|
+
} finally {
|
2246
|
+
try {
|
2247
|
+
a && !a.done && (r = o.return) && r.call(o);
|
2248
|
+
} finally {
|
2249
|
+
if (n)
|
2250
|
+
throw n.error;
|
2251
|
+
}
|
2252
|
+
}
|
2253
|
+
}, e.prototype.deregisterRootHandlers = function() {
|
2254
|
+
var t, n;
|
2255
|
+
try {
|
2256
|
+
for (var r = I(Dt), o = r.next(); !o.done; o = r.next()) {
|
2257
|
+
var a = o.value;
|
2258
|
+
this.adapter.deregisterInteractionHandler(a, this.activateHandler);
|
2259
|
+
}
|
2260
|
+
} catch (c) {
|
2261
|
+
t = { error: c };
|
2262
|
+
} finally {
|
2263
|
+
try {
|
2264
|
+
o && !o.done && (n = r.return) && n.call(r);
|
2265
|
+
} finally {
|
2266
|
+
if (t)
|
2267
|
+
throw t.error;
|
2268
|
+
}
|
2269
|
+
}
|
2270
|
+
this.adapter.deregisterInteractionHandler("focus", this.focusHandler), this.adapter.deregisterInteractionHandler("blur", this.blurHandler), this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler);
|
2271
|
+
}, e.prototype.deregisterDeactivationHandlers = function() {
|
2272
|
+
var t, n;
|
2273
|
+
this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler);
|
2274
|
+
try {
|
2275
|
+
for (var r = I(Nt), o = r.next(); !o.done; o = r.next()) {
|
2276
|
+
var a = o.value;
|
2277
|
+
this.adapter.deregisterDocumentInteractionHandler(a, this.deactivateHandler);
|
2278
|
+
}
|
2279
|
+
} catch (c) {
|
2280
|
+
t = { error: c };
|
2281
|
+
} finally {
|
2282
|
+
try {
|
2283
|
+
o && !o.done && (n = r.return) && n.call(r);
|
2284
|
+
} finally {
|
2285
|
+
if (t)
|
2286
|
+
throw t.error;
|
2287
|
+
}
|
2288
|
+
}
|
2289
|
+
}, e.prototype.removeCssVars = function() {
|
2290
|
+
var t = this, n = e.strings, r = Object.keys(n);
|
2291
|
+
r.forEach(function(o) {
|
2292
|
+
o.indexOf("VAR_") === 0 && t.adapter.updateCssVariable(n[o], null);
|
2293
|
+
});
|
2294
|
+
}, e.prototype.activateImpl = function(t) {
|
2295
|
+
var n = this;
|
2296
|
+
if (!this.adapter.isSurfaceDisabled()) {
|
2297
|
+
var r = this.activationState;
|
2298
|
+
if (!r.isActivated) {
|
2299
|
+
var o = this.previousActivationEvent, a = o && t !== void 0 && o.type !== t.type;
|
2300
|
+
if (!a) {
|
2301
|
+
r.isActivated = !0, r.isProgrammatic = t === void 0, r.activationEvent = t, r.wasActivatedByPointer = r.isProgrammatic ? !1 : t !== void 0 && (t.type === "mousedown" || t.type === "touchstart" || t.type === "pointerdown");
|
2302
|
+
var c = t !== void 0 && ot.length > 0 && ot.some(function(l) {
|
2303
|
+
return n.adapter.containsEventTarget(l);
|
2304
|
+
});
|
2305
|
+
if (c) {
|
2306
|
+
this.resetActivationState();
|
2307
|
+
return;
|
2308
|
+
}
|
2309
|
+
t !== void 0 && (ot.push(t.target), this.registerDeactivationHandlers(t)), r.wasElementMadeActive = this.checkElementMadeActive(t), r.wasElementMadeActive && this.animateActivation(), requestAnimationFrame(function() {
|
2310
|
+
ot = [], !r.wasElementMadeActive && t !== void 0 && (t.key === " " || t.keyCode === 32) && (r.wasElementMadeActive = n.checkElementMadeActive(t), r.wasElementMadeActive && n.animateActivation()), r.wasElementMadeActive || (n.activationState = n.defaultActivationState());
|
2311
|
+
});
|
2312
|
+
}
|
2313
|
+
}
|
2314
|
+
}
|
2315
|
+
}, e.prototype.checkElementMadeActive = function(t) {
|
2316
|
+
return t !== void 0 && t.type === "keydown" ? this.adapter.isSurfaceActive() : !0;
|
2317
|
+
}, e.prototype.animateActivation = function() {
|
2318
|
+
var t = this, n = e.strings, r = n.VAR_FG_TRANSLATE_START, o = n.VAR_FG_TRANSLATE_END, a = e.cssClasses, c = a.FG_DEACTIVATION, l = a.FG_ACTIVATION, p = e.numbers.DEACTIVATION_TIMEOUT_MS;
|
2319
|
+
this.layoutInternal();
|
2320
|
+
var d = "", h = "";
|
2321
|
+
if (!this.adapter.isUnbounded()) {
|
2322
|
+
var b = this.getFgTranslationCoordinates(), O = b.startPoint, W = b.endPoint;
|
2323
|
+
d = O.x + "px, " + O.y + "px", h = W.x + "px, " + W.y + "px";
|
2324
|
+
}
|
2325
|
+
this.adapter.updateCssVariable(r, d), this.adapter.updateCssVariable(o, h), clearTimeout(this.activationTimer), clearTimeout(this.fgDeactivationRemovalTimer), this.rmBoundedActivationClasses(), this.adapter.removeClass(c), this.adapter.computeBoundingRect(), this.adapter.addClass(l), this.activationTimer = setTimeout(function() {
|
2326
|
+
t.activationTimerCallback();
|
2327
|
+
}, p);
|
2328
|
+
}, e.prototype.getFgTranslationCoordinates = function() {
|
2329
|
+
var t = this.activationState, n = t.activationEvent, r = t.wasActivatedByPointer, o;
|
2330
|
+
r ? o = Gi(n, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : o = {
|
2331
|
+
x: this.frame.width / 2,
|
2332
|
+
y: this.frame.height / 2
|
2333
|
+
}, o = {
|
2334
|
+
x: o.x - this.initialSize / 2,
|
2335
|
+
y: o.y - this.initialSize / 2
|
2336
|
+
};
|
2337
|
+
var a = {
|
2338
|
+
x: this.frame.width / 2 - this.initialSize / 2,
|
2339
|
+
y: this.frame.height / 2 - this.initialSize / 2
|
2340
|
+
};
|
2341
|
+
return { startPoint: o, endPoint: a };
|
2342
|
+
}, e.prototype.runDeactivationUXLogicIfReady = function() {
|
2343
|
+
var t = this, n = e.cssClasses.FG_DEACTIVATION, r = this.activationState, o = r.hasDeactivationUXRun, a = r.isActivated, c = o || !a;
|
2344
|
+
c && this.activationAnimationHasEnded && (this.rmBoundedActivationClasses(), this.adapter.addClass(n), this.fgDeactivationRemovalTimer = setTimeout(function() {
|
2345
|
+
t.adapter.removeClass(n);
|
2346
|
+
}, Ot.FG_DEACTIVATION_MS));
|
2347
|
+
}, e.prototype.rmBoundedActivationClasses = function() {
|
2348
|
+
var t = e.cssClasses.FG_ACTIVATION;
|
2349
|
+
this.adapter.removeClass(t), this.activationAnimationHasEnded = !1, this.adapter.computeBoundingRect();
|
2350
|
+
}, e.prototype.resetActivationState = function() {
|
2351
|
+
var t = this;
|
2352
|
+
this.previousActivationEvent = this.activationState.activationEvent, this.activationState = this.defaultActivationState(), setTimeout(function() {
|
2353
|
+
return t.previousActivationEvent = void 0;
|
2354
|
+
}, e.numbers.TAP_DELAY_MS);
|
2355
|
+
}, e.prototype.deactivateImpl = function() {
|
2356
|
+
var t = this, n = this.activationState;
|
2357
|
+
if (n.isActivated) {
|
2358
|
+
var r = T({}, n);
|
2359
|
+
n.isProgrammatic ? (requestAnimationFrame(function() {
|
2360
|
+
t.animateDeactivation(r);
|
2361
|
+
}), this.resetActivationState()) : (this.deregisterDeactivationHandlers(), requestAnimationFrame(function() {
|
2362
|
+
t.activationState.hasDeactivationUXRun = !0, t.animateDeactivation(r), t.resetActivationState();
|
2363
|
+
}));
|
2364
|
+
}
|
2365
|
+
}, e.prototype.animateDeactivation = function(t) {
|
2366
|
+
var n = t.wasActivatedByPointer, r = t.wasElementMadeActive;
|
2367
|
+
(n || r) && this.runDeactivationUXLogicIfReady();
|
2368
|
+
}, e.prototype.layoutInternal = function() {
|
2369
|
+
var t = this;
|
2370
|
+
this.frame = this.adapter.computeBoundingRect();
|
2371
|
+
var n = Math.max(this.frame.height, this.frame.width), r = function() {
|
2372
|
+
var a = Math.sqrt(Math.pow(t.frame.width, 2) + Math.pow(t.frame.height, 2));
|
2373
|
+
return a + e.numbers.PADDING;
|
2374
|
+
};
|
2375
|
+
this.maxRadius = this.adapter.isUnbounded() ? n : r();
|
2376
|
+
var o = Math.floor(n * e.numbers.INITIAL_ORIGIN_SCALE);
|
2377
|
+
this.adapter.isUnbounded() && o % 2 !== 0 ? this.initialSize = o - 1 : this.initialSize = o, this.fgScale = "" + this.maxRadius / this.initialSize, this.updateLayoutCssVars();
|
2378
|
+
}, e.prototype.updateLayoutCssVars = function() {
|
2379
|
+
var t = e.strings, n = t.VAR_FG_SIZE, r = t.VAR_LEFT, o = t.VAR_TOP, a = t.VAR_FG_SCALE;
|
2380
|
+
this.adapter.updateCssVariable(n, this.initialSize + "px"), this.adapter.updateCssVariable(a, this.fgScale), this.adapter.isUnbounded() && (this.unboundedCoords = {
|
2381
|
+
left: Math.round(this.frame.width / 2 - this.initialSize / 2),
|
2382
|
+
top: Math.round(this.frame.height / 2 - this.initialSize / 2)
|
2383
|
+
}, this.adapter.updateCssVariable(r, this.unboundedCoords.left + "px"), this.adapter.updateCssVariable(o, this.unboundedCoords.top + "px"));
|
2384
|
+
}, e;
|
2385
|
+
}(Q)
|
2386
|
+
);
|
2387
|
+
/**
|
2388
|
+
* @license
|
2389
|
+
* Copyright 2016 Google Inc.
|
2390
|
+
*
|
2391
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2392
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2393
|
+
* in the Software without restriction, including without limitation the rights
|
2394
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2395
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2396
|
+
* furnished to do so, subject to the following conditions:
|
2397
|
+
*
|
2398
|
+
* The above copyright notice and this permission notice shall be included in
|
2399
|
+
* all copies or substantial portions of the Software.
|
2400
|
+
*
|
2401
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2402
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2403
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2404
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2405
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2406
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2407
|
+
* THE SOFTWARE.
|
2408
|
+
*/
|
2409
|
+
var Pt = (
|
2410
|
+
/** @class */
|
2411
|
+
function(i) {
|
2412
|
+
M(e, i);
|
2413
|
+
function e() {
|
2414
|
+
var t = i !== null && i.apply(this, arguments) || this;
|
2415
|
+
return t.disabled = !1, t;
|
2416
|
+
}
|
2417
|
+
return e.attachTo = function(t, n) {
|
2418
|
+
n === void 0 && (n = {
|
2419
|
+
isUnbounded: void 0
|
2420
|
+
});
|
2421
|
+
var r = new e(t);
|
2422
|
+
return n.isUnbounded !== void 0 && (r.unbounded = n.isUnbounded), r;
|
2423
|
+
}, e.createAdapter = function(t) {
|
2424
|
+
return {
|
2425
|
+
addClass: function(n) {
|
2426
|
+
t.root.classList.add(n);
|
2427
|
+
},
|
2428
|
+
browserSupportsCssVars: function() {
|
2429
|
+
return Bi(window);
|
2430
|
+
},
|
2431
|
+
computeBoundingRect: function() {
|
2432
|
+
return t.root.getBoundingClientRect();
|
2433
|
+
},
|
2434
|
+
containsEventTarget: function(n) {
|
2435
|
+
return t.root.contains(n);
|
2436
|
+
},
|
2437
|
+
deregisterDocumentInteractionHandler: function(n, r) {
|
2438
|
+
document.documentElement.removeEventListener(n, r, nt());
|
2439
|
+
},
|
2440
|
+
deregisterInteractionHandler: function(n, r) {
|
2441
|
+
t.root.removeEventListener(n, r, nt());
|
2442
|
+
},
|
2443
|
+
deregisterResizeHandler: function(n) {
|
2444
|
+
window.removeEventListener("resize", n);
|
2445
|
+
},
|
2446
|
+
getWindowPageOffset: function() {
|
2447
|
+
return { x: window.pageXOffset, y: window.pageYOffset };
|
2448
|
+
},
|
2449
|
+
isSurfaceActive: function() {
|
2450
|
+
return se(t.root, ":active");
|
2451
|
+
},
|
2452
|
+
isSurfaceDisabled: function() {
|
2453
|
+
return !!t.disabled;
|
2454
|
+
},
|
2455
|
+
isUnbounded: function() {
|
2456
|
+
return !!t.unbounded;
|
2457
|
+
},
|
2458
|
+
registerDocumentInteractionHandler: function(n, r) {
|
2459
|
+
document.documentElement.addEventListener(n, r, nt());
|
2460
|
+
},
|
2461
|
+
registerInteractionHandler: function(n, r) {
|
2462
|
+
t.root.addEventListener(n, r, nt());
|
2463
|
+
},
|
2464
|
+
registerResizeHandler: function(n) {
|
2465
|
+
window.addEventListener("resize", n);
|
2466
|
+
},
|
2467
|
+
removeClass: function(n) {
|
2468
|
+
t.root.classList.remove(n);
|
2469
|
+
},
|
2470
|
+
updateCssVariable: function(n, r) {
|
2471
|
+
t.root.style.setProperty(n, r);
|
2472
|
+
}
|
2473
|
+
};
|
2474
|
+
}, Object.defineProperty(e.prototype, "unbounded", {
|
2475
|
+
get: function() {
|
2476
|
+
return !!this.isUnbounded;
|
2477
|
+
},
|
2478
|
+
set: function(t) {
|
2479
|
+
this.isUnbounded = !!t, this.setUnbounded();
|
2480
|
+
},
|
2481
|
+
enumerable: !1,
|
2482
|
+
configurable: !0
|
2483
|
+
}), e.prototype.activate = function() {
|
2484
|
+
this.foundation.activate();
|
2485
|
+
}, e.prototype.deactivate = function() {
|
2486
|
+
this.foundation.deactivate();
|
2487
|
+
}, e.prototype.layout = function() {
|
2488
|
+
this.foundation.layout();
|
2489
|
+
}, e.prototype.getDefaultFoundation = function() {
|
2490
|
+
return new pe(e.createAdapter(this));
|
2491
|
+
}, e.prototype.initialSyncWithDOM = function() {
|
2492
|
+
var t = this.root;
|
2493
|
+
this.isUnbounded = "mdcRippleIsUnbounded" in t.dataset;
|
2494
|
+
}, e.prototype.setUnbounded = function() {
|
2495
|
+
this.foundation.setUnbounded(!!this.isUnbounded);
|
2496
|
+
}, e;
|
2497
|
+
}(le)
|
2498
|
+
);
|
2499
|
+
/**
|
2500
|
+
* @license
|
2501
|
+
* Copyright 2020 Google Inc.
|
2502
|
+
*
|
2503
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2504
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2505
|
+
* in the Software without restriction, including without limitation the rights
|
2506
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2507
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2508
|
+
* furnished to do so, subject to the following conditions:
|
2509
|
+
*
|
2510
|
+
* The above copyright notice and this permission notice shall be included in
|
2511
|
+
* all copies or substantial portions of the Software.
|
2512
|
+
*
|
2513
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2514
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2515
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2516
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2517
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2518
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2519
|
+
* THE SOFTWARE.
|
2520
|
+
*/
|
2521
|
+
function Wi(i, e) {
|
2522
|
+
var t = Number(e.replace("px", ""));
|
2523
|
+
return Number.isNaN(t) ? i : {
|
2524
|
+
width: i.width + t,
|
2525
|
+
height: i.height,
|
2526
|
+
top: i.top,
|
2527
|
+
right: i.right,
|
2528
|
+
bottom: i.bottom,
|
2529
|
+
left: i.left
|
2530
|
+
};
|
2531
|
+
}
|
2532
|
+
var ji = "--mdc-chip-graphic-selected-width";
|
2533
|
+
/**
|
2534
|
+
* @license
|
2535
|
+
* Copyright 2020 Google Inc.
|
2536
|
+
*
|
2537
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2538
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2539
|
+
* in the Software without restriction, including without limitation the rights
|
2540
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2541
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2542
|
+
* furnished to do so, subject to the following conditions:
|
2543
|
+
*
|
2544
|
+
* The above copyright notice and this permission notice shall be included in
|
2545
|
+
* all copies or substantial portions of the Software.
|
2546
|
+
*
|
2547
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2548
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2549
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2550
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2551
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2552
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2553
|
+
* THE SOFTWARE.
|
2554
|
+
*/
|
2555
|
+
var tt = /* @__PURE__ */ new Map();
|
2556
|
+
tt.set(s.SPACEBAR, N.SPACEBAR_KEY);
|
2557
|
+
tt.set(s.ENTER, N.ENTER_KEY);
|
2558
|
+
tt.set(s.DELETE, N.DELETE_KEY);
|
2559
|
+
tt.set(s.BACKSPACE, N.BACKSPACE_KEY);
|
2560
|
+
var de = (
|
2561
|
+
/** @class */
|
2562
|
+
function(i) {
|
2563
|
+
M(e, i);
|
2564
|
+
function e(t) {
|
2565
|
+
return i.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
2566
|
+
}
|
2567
|
+
return Object.defineProperty(e, "defaultAdapter", {
|
2568
|
+
get: function() {
|
2569
|
+
return {
|
2570
|
+
emitEvent: function() {
|
2571
|
+
},
|
2572
|
+
focus: function() {
|
2573
|
+
},
|
2574
|
+
getAttribute: function() {
|
2575
|
+
return null;
|
2576
|
+
},
|
2577
|
+
getElementID: function() {
|
2578
|
+
return "";
|
2579
|
+
},
|
2580
|
+
removeAttribute: function() {
|
2581
|
+
},
|
2582
|
+
setAttribute: function() {
|
2583
|
+
}
|
2584
|
+
};
|
2585
|
+
},
|
2586
|
+
enumerable: !1,
|
2587
|
+
configurable: !0
|
2588
|
+
}), e.prototype.handleClick = function() {
|
2589
|
+
this.isDisabled() || this.emitInteraction(N.CLICK);
|
2590
|
+
}, e.prototype.handleKeydown = function(t) {
|
2591
|
+
var n = ce(t);
|
2592
|
+
if (this.shouldNotifyInteractionFromKey(n)) {
|
2593
|
+
t.preventDefault(), this.emitInteraction(this.getTriggerFromKey(n));
|
2594
|
+
return;
|
2595
|
+
}
|
2596
|
+
if (Li(t)) {
|
2597
|
+
t.preventDefault(), this.emitNavigation(n);
|
2598
|
+
return;
|
2599
|
+
}
|
2600
|
+
return !0;
|
2601
|
+
}, e.prototype.setDisabled = function(t) {
|
2602
|
+
if (this.isSelectable()) {
|
2603
|
+
this.adapter.setAttribute(v.ARIA_DISABLED, "" + t);
|
2604
|
+
return;
|
2605
|
+
}
|
2606
|
+
t ? this.adapter.setAttribute(v.DISABLED, "true") : this.adapter.removeAttribute(v.DISABLED);
|
2607
|
+
}, e.prototype.isDisabled = function() {
|
2608
|
+
return this.adapter.getAttribute(v.ARIA_DISABLED) === "true" || this.adapter.getAttribute(v.DISABLED) !== null;
|
2609
|
+
}, e.prototype.setFocus = function(t) {
|
2610
|
+
if (this.isFocusable()) {
|
2611
|
+
if (t === w.FOCUSABLE_AND_FOCUSED) {
|
2612
|
+
this.adapter.setAttribute(v.TAB_INDEX, "0"), this.adapter.focus();
|
2613
|
+
return;
|
2614
|
+
}
|
2615
|
+
if (t === w.FOCUSABLE) {
|
2616
|
+
this.adapter.setAttribute(v.TAB_INDEX, "0");
|
2617
|
+
return;
|
2618
|
+
}
|
2619
|
+
if (t === w.NOT_FOCUSABLE) {
|
2620
|
+
this.adapter.setAttribute(v.TAB_INDEX, "-1");
|
2621
|
+
return;
|
2622
|
+
}
|
2623
|
+
}
|
2624
|
+
}, e.prototype.isFocusable = function() {
|
2625
|
+
return !(this.isDisabled() || this.adapter.getAttribute(v.ARIA_HIDDEN) === "true");
|
2626
|
+
}, e.prototype.setSelected = function(t) {
|
2627
|
+
this.isSelectable() && this.adapter.setAttribute(v.ARIA_SELECTED, "" + t);
|
2628
|
+
}, e.prototype.isSelected = function() {
|
2629
|
+
return this.adapter.getAttribute(v.ARIA_SELECTED) === "true";
|
2630
|
+
}, e.prototype.emitInteraction = function(t) {
|
2631
|
+
this.adapter.emitEvent(X.INTERACTION, {
|
2632
|
+
actionID: this.adapter.getElementID(),
|
2633
|
+
source: this.actionType(),
|
2634
|
+
trigger: t
|
2635
|
+
});
|
2636
|
+
}, e.prototype.emitNavigation = function(t) {
|
2637
|
+
this.adapter.emitEvent(X.NAVIGATION, {
|
2638
|
+
source: this.actionType(),
|
2639
|
+
key: t
|
2640
|
+
});
|
2641
|
+
}, e.prototype.shouldNotifyInteractionFromKey = function(t) {
|
2642
|
+
var n = t === s.ENTER || t === s.SPACEBAR, r = t === s.BACKSPACE || t === s.DELETE;
|
2643
|
+
return !!(n || r && this.shouldEmitInteractionOnRemoveKey());
|
2644
|
+
}, e.prototype.getTriggerFromKey = function(t) {
|
2645
|
+
var n = tt.get(t);
|
2646
|
+
return n || N.UNSPECIFIED;
|
2647
|
+
}, e;
|
2648
|
+
}(Q)
|
2649
|
+
);
|
2650
|
+
/**
|
2651
|
+
* @license
|
2652
|
+
* Copyright 2020 Google Inc.
|
2653
|
+
*
|
2654
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2655
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2656
|
+
* in the Software without restriction, including without limitation the rights
|
2657
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2658
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2659
|
+
* furnished to do so, subject to the following conditions:
|
2660
|
+
*
|
2661
|
+
* The above copyright notice and this permission notice shall be included in
|
2662
|
+
* all copies or substantial portions of the Software.
|
2663
|
+
*
|
2664
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2665
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2666
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2667
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2668
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2669
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2670
|
+
* THE SOFTWARE.
|
2671
|
+
*/
|
2672
|
+
var Ki = (
|
2673
|
+
/** @class */
|
2674
|
+
function(i) {
|
2675
|
+
M(e, i);
|
2676
|
+
function e() {
|
2677
|
+
return i !== null && i.apply(this, arguments) || this;
|
2678
|
+
}
|
2679
|
+
return e.prototype.isSelectable = function() {
|
2680
|
+
return this.adapter.getAttribute(v.ROLE) === "option";
|
2681
|
+
}, e.prototype.actionType = function() {
|
2682
|
+
return E.PRIMARY;
|
2683
|
+
}, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
|
2684
|
+
return this.adapter.getAttribute(v.DATA_DELETABLE) === "true";
|
2685
|
+
}, e;
|
2686
|
+
}(de)
|
2687
|
+
);
|
2688
|
+
/**
|
2689
|
+
* @license
|
2690
|
+
* Copyright 2020 Google Inc.
|
2691
|
+
*
|
2692
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2693
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2694
|
+
* in the Software without restriction, including without limitation the rights
|
2695
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2696
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2697
|
+
* furnished to do so, subject to the following conditions:
|
2698
|
+
*
|
2699
|
+
* The above copyright notice and this permission notice shall be included in
|
2700
|
+
* all copies or substantial portions of the Software.
|
2701
|
+
*
|
2702
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2703
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2704
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2705
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2706
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2707
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2708
|
+
* THE SOFTWARE.
|
2709
|
+
*/
|
2710
|
+
var $i = (
|
2711
|
+
/** @class */
|
2712
|
+
function(i) {
|
2713
|
+
M(e, i);
|
2714
|
+
function e() {
|
2715
|
+
return i !== null && i.apply(this, arguments) || this;
|
2716
|
+
}
|
2717
|
+
return e.prototype.isSelectable = function() {
|
2718
|
+
return !1;
|
2719
|
+
}, e.prototype.actionType = function() {
|
2720
|
+
return E.TRAILING;
|
2721
|
+
}, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
|
2722
|
+
return !0;
|
2723
|
+
}, e;
|
2724
|
+
}(de)
|
2725
|
+
);
|
2726
|
+
/**
|
2727
|
+
* @license
|
2728
|
+
* Copyright 2020 Google Inc.
|
2729
|
+
*
|
2730
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
2731
|
+
* of this software and associated documentation files (the "Software"), to deal
|
2732
|
+
* in the Software without restriction, including without limitation the rights
|
2733
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2734
|
+
* copies of the Software, and to permit persons to whom the Software is
|
2735
|
+
* furnished to do so, subject to the following conditions:
|
2736
|
+
*
|
2737
|
+
* The above copyright notice and this permission notice shall be included in
|
2738
|
+
* all copies or substantial portions of the Software.
|
2739
|
+
*
|
2740
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2741
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2742
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2743
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2744
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2745
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2746
|
+
* THE SOFTWARE.
|
2747
|
+
*/
|
2748
|
+
var qi = [
|
2749
|
+
F.safeAttrPrefix(xt || (xt = H(["aria-"], ["aria-"]))),
|
2750
|
+
F.safeAttrPrefix(Lt || (Lt = H(["data-"], ["data-"]))),
|
2751
|
+
F.safeAttrPrefix(Ft || (Ft = H(["disabled"], ["disabled"]))),
|
2752
|
+
F.safeAttrPrefix(Mt || (Mt = H(["role"], ["role"]))),
|
2753
|
+
F.safeAttrPrefix(Ut || (Ut = H(["tabindex"], ["tabindex"])))
|
2754
|
+
], Xi = (
|
2755
|
+
/** @class */
|
2756
|
+
function(i) {
|
2757
|
+
M(e, i);
|
2758
|
+
function e() {
|
2759
|
+
var t = i !== null && i.apply(this, arguments) || this;
|
2760
|
+
return t.rootHTML = t.root, t;
|
2761
|
+
}
|
2762
|
+
return e.attachTo = function(t) {
|
2763
|
+
return new e(t);
|
2764
|
+
}, Object.defineProperty(e.prototype, "ripple", {
|
2765
|
+
get: function() {
|
2766
|
+
return this.rippleInstance;
|
2767
|
+
},
|
2768
|
+
enumerable: !1,
|
2769
|
+
configurable: !0
|
2770
|
+
}), e.prototype.initialize = function(t) {
|
2771
|
+
var n = this;
|
2772
|
+
t === void 0 && (t = function(o, a) {
|
2773
|
+
return new Pt(o, a);
|
2774
|
+
});
|
2775
|
+
var r = T(T({}, Pt.createAdapter(this)), { computeBoundingRect: function() {
|
2776
|
+
return n.computeRippleClientRect();
|
2777
|
+
} });
|
2778
|
+
this.rippleInstance = t(this.root, new pe(r));
|
2779
|
+
}, e.prototype.initialSyncWithDOM = function() {
|
2780
|
+
var t = this;
|
2781
|
+
this.handleClick = function() {
|
2782
|
+
t.foundation.handleClick();
|
2783
|
+
}, this.handleKeydown = function(n) {
|
2784
|
+
t.foundation.handleKeydown(n);
|
2785
|
+
}, this.listen("click", this.handleClick), this.listen("keydown", this.handleKeydown);
|
2786
|
+
}, e.prototype.destroy = function() {
|
2787
|
+
this.ripple.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown), i.prototype.destroy.call(this);
|
2788
|
+
}, e.prototype.getDefaultFoundation = function() {
|
2789
|
+
var t = this, n = {
|
2790
|
+
emitEvent: function(r, o) {
|
2791
|
+
t.emit(
|
2792
|
+
r,
|
2793
|
+
o,
|
2794
|
+
!0
|
2795
|
+
/* shouldBubble */
|
2796
|
+
);
|
2797
|
+
},
|
2798
|
+
focus: function() {
|
2799
|
+
t.rootHTML.focus();
|
2800
|
+
},
|
2801
|
+
getAttribute: function(r) {
|
2802
|
+
return t.root.getAttribute(r);
|
2803
|
+
},
|
2804
|
+
getElementID: function() {
|
2805
|
+
return t.root.id;
|
2806
|
+
},
|
2807
|
+
removeAttribute: function(r) {
|
2808
|
+
t.root.removeAttribute(r);
|
2809
|
+
},
|
2810
|
+
setAttribute: function(r, o) {
|
2811
|
+
ie(qi, t.root, r, o);
|
2812
|
+
}
|
2813
|
+
};
|
2814
|
+
return this.root.classList.contains(Z.TRAILING_ACTION) ? new $i(n) : new Ki(n);
|
2815
|
+
}, e.prototype.setDisabled = function(t) {
|
2816
|
+
this.foundation.setDisabled(t);
|
2817
|
+
}, e.prototype.isDisabled = function() {
|
2818
|
+
return this.foundation.isDisabled();
|
2819
|
+
}, e.prototype.setFocus = function(t) {
|
2820
|
+
this.foundation.setFocus(t);
|
2821
|
+
}, e.prototype.isFocusable = function() {
|
2822
|
+
return this.foundation.isFocusable();
|
2823
|
+
}, e.prototype.setSelected = function(t) {
|
2824
|
+
this.foundation.setSelected(t);
|
2825
|
+
}, e.prototype.isSelected = function() {
|
2826
|
+
return this.foundation.isSelected();
|
2827
|
+
}, e.prototype.isSelectable = function() {
|
2828
|
+
return this.foundation.isSelectable();
|
2829
|
+
}, e.prototype.actionType = function() {
|
2830
|
+
return this.foundation.actionType();
|
2831
|
+
}, e.prototype.computeRippleClientRect = function() {
|
2832
|
+
if (this.root.classList.contains(Z.PRIMARY_ACTION)) {
|
2833
|
+
var t = Ui(this.root, "." + Z.CHIP_ROOT);
|
2834
|
+
if (!t)
|
2835
|
+
return this.root.getBoundingClientRect();
|
2836
|
+
var n = window.getComputedStyle(t).getPropertyValue(ji);
|
2837
|
+
return Wi(t.getBoundingClientRect(), n);
|
2838
|
+
}
|
2839
|
+
return this.root.getBoundingClientRect();
|
2840
|
+
}, e;
|
2841
|
+
}(le)
|
2842
|
+
), xt, Lt, Ft, Mt, Ut, Yi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, U = (i, e, t, n) => {
|
2843
|
+
for (var r = n > 1 ? void 0 : n ? Vi(e, t) : e, o = i.length - 1, a; o >= 0; o--)
|
2844
|
+
(a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
|
2845
|
+
return n && r && Yi(e, t, r), r;
|
2846
|
+
};
|
2847
|
+
let Zi = 0;
|
2848
|
+
class L extends Ht {
|
2849
|
+
constructor() {
|
2850
|
+
super(), this.mdcFoundationClass = Fi, this.label = "", this.icon = "", this.trailingIcon = !1, this.avatar = !1, this.disabled = !1, this.filter = !1, this.chipId = Zi++;
|
2851
|
+
}
|
2852
|
+
render() {
|
2853
|
+
const e = {
|
2854
|
+
"mdc-evolution-chip": !0,
|
2855
|
+
"mdc-evolution-chip--disabled": this.disabled,
|
2856
|
+
"mdc-evolution-chip--with-trailing-action": this.trailingIcon,
|
2857
|
+
"mdc-evolution-chip--with-primary-graphic": !this.trailingIcon && this.icon,
|
2858
|
+
"mdc-evolution-chip--with-primary-icon": this.icon && !this.filter,
|
2859
|
+
"mdc-evolution-chip--filter": this.filter,
|
2860
|
+
"mdc-evolution-chip--selectable": this.filter,
|
2861
|
+
"mdc-evolution-chip--with-avatar": this.avatar,
|
2862
|
+
secondary: this.state === "secondary",
|
2863
|
+
negative: this.state === "negative",
|
2864
|
+
caution: this.state === "caution"
|
2865
|
+
};
|
2866
|
+
return j`
|
2867
|
+
<span
|
2868
|
+
class="${ge(e)}"
|
2869
|
+
role="${this.filter ? "presentation" : "row"}"
|
2870
|
+
id="cv-chip-${this.chipId}"
|
2871
|
+
>
|
2872
|
+
<span
|
2873
|
+
class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary"
|
2874
|
+
role="${this.filter ? "presentation" : "gridcell"}"
|
2875
|
+
>
|
2876
|
+
<button
|
2877
|
+
class="mdc-evolution-chip__action mdc-evolution-chip__action--primary"
|
2878
|
+
role="${this.filter ? "option" : ""}"
|
2879
|
+
type="button"
|
2880
|
+
tabindex="-1"
|
2881
|
+
>
|
2882
|
+
<span
|
2883
|
+
class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--primary"
|
2884
|
+
></span>
|
2885
|
+
${!this.trailingIcon && this.icon || this.filter ? this.renderGraphic() : ""}
|
2886
|
+
<span class="mdc-evolution-chip__text-label">${this.label}</span>
|
2887
|
+
</button>
|
2888
|
+
</span>
|
2889
|
+
${this.trailingIcon ? this.renderTrailing() : ""}
|
2890
|
+
</span>
|
2891
|
+
`;
|
2892
|
+
}
|
2893
|
+
async firstUpdated() {
|
2894
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.actions = /* @__PURE__ */ new Map();
|
2895
|
+
const e = this.mdcRoot.querySelectorAll(
|
2896
|
+
".mdc-evolution-chip__action"
|
2897
|
+
);
|
2898
|
+
for (let t = 0; t < e.length; t++) {
|
2899
|
+
const n = new Xi(e[t]);
|
2900
|
+
this.actions.set(n.actionType(), n), e[t].addEventListener(
|
2901
|
+
X.INTERACTION,
|
2902
|
+
(r) => {
|
2903
|
+
var o;
|
2904
|
+
(o = this.mdcFoundation) == null || o.handleActionInteraction(r);
|
2905
|
+
}
|
2906
|
+
), e[t].addEventListener(X.NAVIGATION, (r) => {
|
2907
|
+
var o;
|
2908
|
+
(o = this.mdcFoundation) == null || o.handleActionNavigation(r);
|
2909
|
+
});
|
2910
|
+
}
|
2911
|
+
}
|
2912
|
+
renderGraphic() {
|
2913
|
+
const e = this.filter ? this.renderCheckMark() : this.renderIcon();
|
2914
|
+
return j`<span class="mdc-evolution-chip__graphic">
|
2915
|
+
${e}
|
2916
|
+
</span>`;
|
2917
|
+
}
|
2918
|
+
renderCheckMark() {
|
2919
|
+
return j` <span class="mdc-evolution-chip__checkmark">
|
2920
|
+
<svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
|
2921
|
+
<path
|
2922
|
+
class="mdc-evolution-chip__checkmark-path"
|
2923
|
+
fill="none"
|
2924
|
+
d="M1.73,12.91 8.1,19.28 22.79,4.59"
|
2925
|
+
/>
|
2926
|
+
</svg>
|
2927
|
+
</span>`;
|
2928
|
+
}
|
2929
|
+
renderIcon(e = !1) {
|
2930
|
+
return j` <span
|
2931
|
+
class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${e ? "trailing" : "primary"}"
|
2932
|
+
>
|
2933
|
+
${this.icon}
|
2934
|
+
</span>`;
|
2935
|
+
}
|
2936
|
+
renderTrailing() {
|
2937
|
+
return j` <span
|
2938
|
+
class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
|
2939
|
+
role="gridcell"
|
2940
|
+
>
|
2941
|
+
<button
|
2942
|
+
class="mdc-evolution-chip__action mdc-evolution-chip__action--trailing"
|
2943
|
+
type="button"
|
2944
|
+
tabindex="-1"
|
2945
|
+
data-mdc-deletable="true"
|
2946
|
+
aria-label="Remove ${this.label}"
|
2947
|
+
>
|
2948
|
+
<span
|
2949
|
+
class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--trailing"
|
2950
|
+
></span>
|
2951
|
+
${this.renderIcon(!0)}
|
2952
|
+
</button>
|
2953
|
+
</span>`;
|
2954
|
+
}
|
2955
|
+
createAdapter() {
|
2956
|
+
return {
|
2957
|
+
...me(this.mdcRoot),
|
2958
|
+
emitEvent: (e, t) => this.dispatchEvent(
|
2959
|
+
new CustomEvent(e, { bubbles: !0, detail: t })
|
2960
|
+
),
|
2961
|
+
/** Returns the child actions provided by the chip. */
|
2962
|
+
getActions: () => {
|
2963
|
+
const e = [];
|
2964
|
+
for (const [t] of this.actions)
|
2965
|
+
e.push(t);
|
2966
|
+
return e;
|
2967
|
+
},
|
2968
|
+
/** Returns the value for the given attribute, if it exists. */
|
2969
|
+
getAttribute: (e) => this.mdcRoot.getAttribute(e),
|
2970
|
+
/** Returns the ID of the root element. */
|
2971
|
+
getElementID: () => this.mdcRoot.getAttribute("id") ?? "",
|
2972
|
+
/** Returns the offset width of the root element. */
|
2973
|
+
getOffsetWidth: () => this.mdcRoot.offsetWidth,
|
2974
|
+
/** Returns true if the root element has the given class. */
|
2975
|
+
hasClass: (e) => this.mdcRoot.classList.contains(e),
|
2976
|
+
/** Proxies to the MDCChipAction#isSelectable method. */
|
2977
|
+
isActionSelectable: (e) => {
|
2978
|
+
var t;
|
2979
|
+
return ((t = this.actions.get(e)) == null ? void 0 : t.isSelectable()) ?? !0;
|
2980
|
+
},
|
2981
|
+
/** Proxies to the MDCChipAction#isSelected method. */
|
2982
|
+
isActionSelected: (e) => {
|
2983
|
+
var t;
|
2984
|
+
return ((t = this.actions.get(e)) == null ? void 0 : t.isSelected()) ?? !1;
|
2985
|
+
},
|
2986
|
+
/** Proxies to the MDCChipAction#isFocusable method. */
|
2987
|
+
isActionFocusable: (e) => {
|
2988
|
+
var t;
|
2989
|
+
return ((t = this.actions.get(e)) == null ? void 0 : t.isFocusable()) ?? !0;
|
2990
|
+
},
|
2991
|
+
/** Proxies to the MDCChipAction#isDisabled method. */
|
2992
|
+
isActionDisabled: (e) => {
|
2993
|
+
var t;
|
2994
|
+
return ((t = this.actions.get(e)) == null ? void 0 : t.isDisabled()) ?? !1;
|
2995
|
+
},
|
2996
|
+
/** Returns true if the text direction is right-to-left. */
|
2997
|
+
isRTL: () => window.getComputedStyle(this.mdcRoot).getPropertyValue("direction") === "rtl",
|
2998
|
+
/** Proxies to the MDCChipAction#setDisabled method. */
|
2999
|
+
setActionDisabled: (e, t) => {
|
3000
|
+
var n;
|
3001
|
+
return (n = this.actions.get(e)) == null ? void 0 : n.setDisabled(t);
|
3002
|
+
},
|
3003
|
+
/** Proxies to the MDCChipAction#setFocus method. */
|
3004
|
+
setActionFocus: (e, t) => {
|
3005
|
+
var n;
|
3006
|
+
return (n = this.actions.get(e)) == null ? void 0 : n.setFocus(t);
|
3007
|
+
},
|
3008
|
+
/** Proxies to the MDCChipAction#setSelected method. */
|
3009
|
+
setActionSelected: (e, t) => {
|
3010
|
+
var n;
|
3011
|
+
return (n = this.actions.get(e)) == null ? void 0 : n.setSelected(t);
|
3012
|
+
},
|
3013
|
+
/** Sets the style property to the given value. */
|
3014
|
+
setStyleProperty: (e, t) => this.mdcRoot.style.setProperty(e, t)
|
3015
|
+
};
|
3016
|
+
}
|
3017
|
+
getActions() {
|
3018
|
+
var e;
|
3019
|
+
return ((e = this.mdcFoundation) == null ? void 0 : e.getActions()) ?? [];
|
3020
|
+
}
|
3021
|
+
getElementID() {
|
3022
|
+
var e;
|
3023
|
+
return ((e = this.mdcFoundation) == null ? void 0 : e.getElementID()) ?? "";
|
3024
|
+
}
|
3025
|
+
isActionFocusable(e) {
|
3026
|
+
var t;
|
3027
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionFocusable(e)) ?? !1;
|
3028
|
+
}
|
3029
|
+
isActionSelectable(e) {
|
3030
|
+
var t;
|
3031
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelectable(e)) ?? !1;
|
3032
|
+
}
|
3033
|
+
isActionSelected(e) {
|
3034
|
+
var t;
|
3035
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelected(e)) ?? !1;
|
3036
|
+
}
|
3037
|
+
setActionFocus(e, t) {
|
3038
|
+
var n;
|
3039
|
+
return (n = this.mdcFoundation) == null ? void 0 : n.setActionFocus(e, t);
|
3040
|
+
}
|
3041
|
+
setActionSelected(e, t) {
|
3042
|
+
var n;
|
3043
|
+
return (n = this.mdcFoundation) == null ? void 0 : n.setActionSelected(e, t);
|
3044
|
+
}
|
3045
|
+
startAnimation(e) {
|
3046
|
+
var t;
|
3047
|
+
return (t = this.mdcFoundation) == null ? void 0 : t.startAnimation(e);
|
3048
|
+
}
|
3049
|
+
}
|
3050
|
+
U([
|
3051
|
+
Wt(".mdc-evolution-chip")
|
3052
|
+
], L.prototype, "mdcRoot", 2);
|
3053
|
+
U([
|
3054
|
+
R()
|
3055
|
+
], L.prototype, "label", 2);
|
3056
|
+
U([
|
3057
|
+
R({ type: String })
|
3058
|
+
], L.prototype, "icon", 2);
|
3059
|
+
U([
|
3060
|
+
R({ type: Boolean, reflect: !0 })
|
3061
|
+
], L.prototype, "trailingIcon", 2);
|
3062
|
+
U([
|
3063
|
+
R({ type: Boolean, reflect: !0 })
|
3064
|
+
], L.prototype, "avatar", 2);
|
3065
|
+
U([
|
3066
|
+
R({ type: Boolean, reflect: !0 })
|
3067
|
+
], L.prototype, "disabled", 2);
|
3068
|
+
U([
|
3069
|
+
R({ type: Boolean, reflect: !0 })
|
3070
|
+
], L.prototype, "filter", 2);
|
3071
|
+
U([
|
3072
|
+
R()
|
3073
|
+
], L.prototype, "state", 2);
|
3074
|
+
const Ji = `.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;-webkit-user-select:none;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width .15s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform .15s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 45ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width .1s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform .1s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%,-50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{0%{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter .1s 0ms cubic-bezier(0,0,.2,1)}@keyframes mdc-evolution-chip-exit{0%{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width .15s 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip{height:32px;border-radius:16px;background-color:#e0e0e0}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip .mdc-evolution-chip__text-label,.mdc-evolution-chip .mdc-evolution-chip__icon--primary,.mdc-evolution-chip .mdc-evolution-chip__checkmark,.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{color:#000000de}.mdc-evolution-chip .mdc-evolution-chip__text-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 20px}.mdc-evolution-chip .mdc-evolution-chip__graphic,.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-evolution-chip.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:Canvas}}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% - 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip--filter.mdc-evolution-chip--selected{background-color:#cecece}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--trailing:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__ripple--trailing{height:18px;width:18px}.mdc-evolution-chip__action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-evolution-chip__action.mdc-ripple-upgraded--unbounded .mdc-evolution-chip__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-activation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-evolution-chip__ripple{position:absolute;box-sizing:content-box;overflow:hidden;pointer-events:none}.mdc-evolution-chip__ripple--primary{height:100%;width:100%;top:0;left:0}.mdc-evolution-chip__ripple--trailing{top:50%;transform:translateY(-50%)}.mdc-evolution-chip{background-color:var(--mdc-theme-surface-neutral)}.mdc-evolution-chip .mdc-evolution-chip__text-label{color:var(--mdc-theme-text-primary-on-background)}.mdc-evolution-chip .mdc-evolution-chip__icon{font-family:var(--mdc-icon-font, "Material Symbols Rounded");color:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip .mdc-evolution-chip__checkmark-path{stroke:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip.mdc-evolution-chip--selected{background-color:var(--mdc-theme-surface-primary)}.mdc-evolution-chip.negative{background-color:var(--mdc-theme-surface-negative)}.mdc-evolution-chip.caution{background-color:var(--mdc-theme-surface-caution)}.mdc-evolution-chip.secondary{background-color:var(--mdc-theme-surface-secondary)}
|
3075
|
+
`;
|
3076
|
+
var Qi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, en = (i, e, t, n) => {
|
3077
|
+
for (var r = n > 1 ? void 0 : n ? tn(e, t) : e, o = i.length - 1, a; o >= 0; o--)
|
3078
|
+
(a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
|
3079
|
+
return n && r && Qi(e, t, r), r;
|
3080
|
+
};
|
3081
|
+
let ct = class extends L {
|
3082
|
+
};
|
3083
|
+
ct.styles = [
|
3084
|
+
kt`
|
3085
|
+
${Bt(Ji)}
|
3086
|
+
`
|
3087
|
+
];
|
3088
|
+
ct = en([
|
3089
|
+
Gt("cv-chip")
|
3090
|
+
], ct);
|
3091
|
+
/**
|
3092
|
+
* @license
|
3093
|
+
* Copyright 2016 Google Inc.
|
3094
|
+
*
|
3095
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
3096
|
+
* of this software and associated documentation files (the "Software"), to deal
|
3097
|
+
* in the Software without restriction, including without limitation the rights
|
3098
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
3099
|
+
* copies of the Software, and to permit persons to whom the Software is
|
3100
|
+
* furnished to do so, subject to the following conditions:
|
3101
|
+
*
|
3102
|
+
* The above copyright notice and this permission notice shall be included in
|
3103
|
+
* all copies or substantial portions of the Software.
|
3104
|
+
*
|
3105
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
3106
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
3107
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
3108
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
3109
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
3110
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
3111
|
+
* THE SOFTWARE.
|
3112
|
+
*/
|
3113
|
+
var pt;
|
3114
|
+
(function(i) {
|
3115
|
+
i.ARIA_MULTISELECTABLE = "aria-multiselectable";
|
3116
|
+
})(pt || (pt = {}));
|
3117
|
+
var zt;
|
3118
|
+
(function(i) {
|
3119
|
+
i.CHIP = "mdc-evolution-chip";
|
3120
|
+
})(zt || (zt = {}));
|
3121
|
+
var K;
|
3122
|
+
(function(i) {
|
3123
|
+
i.INTERACTION = "MDCChipSet:interaction", i.REMOVAL = "MDCChipSet:removal", i.SELECTION = "MDCChipSet:selection";
|
3124
|
+
})(K || (K = {}));
|
3125
|
+
/**
|
3126
|
+
* @license
|
3127
|
+
* Copyright 2020 Google Inc.
|
3128
|
+
*
|
3129
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
3130
|
+
* of this software and associated documentation files (the "Software"), to deal
|
3131
|
+
* in the Software without restriction, including without limitation the rights
|
3132
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
3133
|
+
* copies of the Software, and to permit persons to whom the Software is
|
3134
|
+
* furnished to do so, subject to the following conditions:
|
3135
|
+
*
|
3136
|
+
* The above copyright notice and this permission notice shall be included in
|
3137
|
+
* all copies or substantial portions of the Software.
|
3138
|
+
*
|
3139
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
3140
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
3141
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
3142
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
3143
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
3144
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
3145
|
+
* THE SOFTWARE.
|
3146
|
+
*/
|
3147
|
+
var B;
|
3148
|
+
(function(i) {
|
3149
|
+
i[i.INCREMENT = 0] = "INCREMENT", i[i.DECREMENT = 1] = "DECREMENT";
|
3150
|
+
})(B || (B = {}));
|
3151
|
+
var nn = (
|
3152
|
+
/** @class */
|
3153
|
+
function(i) {
|
3154
|
+
M(e, i);
|
3155
|
+
function e(t) {
|
3156
|
+
return i.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
3157
|
+
}
|
3158
|
+
return Object.defineProperty(e, "defaultAdapter", {
|
3159
|
+
get: function() {
|
3160
|
+
return {
|
3161
|
+
announceMessage: function() {
|
3162
|
+
},
|
3163
|
+
emitEvent: function() {
|
3164
|
+
},
|
3165
|
+
getAttribute: function() {
|
3166
|
+
return null;
|
3167
|
+
},
|
3168
|
+
getChipActionsAtIndex: function() {
|
3169
|
+
return [];
|
3170
|
+
},
|
3171
|
+
getChipCount: function() {
|
3172
|
+
return 0;
|
3173
|
+
},
|
3174
|
+
getChipIdAtIndex: function() {
|
3175
|
+
return "";
|
3176
|
+
},
|
3177
|
+
getChipIndexById: function() {
|
3178
|
+
return 0;
|
3179
|
+
},
|
3180
|
+
isChipFocusableAtIndex: function() {
|
3181
|
+
return !1;
|
3182
|
+
},
|
3183
|
+
isChipSelectableAtIndex: function() {
|
3184
|
+
return !1;
|
3185
|
+
},
|
3186
|
+
isChipSelectedAtIndex: function() {
|
3187
|
+
return !1;
|
3188
|
+
},
|
3189
|
+
removeChipAtIndex: function() {
|
3190
|
+
},
|
3191
|
+
setChipFocusAtIndex: function() {
|
3192
|
+
},
|
3193
|
+
setChipSelectedAtIndex: function() {
|
3194
|
+
},
|
3195
|
+
startChipAnimationAtIndex: function() {
|
3196
|
+
}
|
3197
|
+
};
|
3198
|
+
},
|
3199
|
+
enumerable: !1,
|
3200
|
+
configurable: !0
|
3201
|
+
}), e.prototype.handleChipAnimation = function(t) {
|
3202
|
+
var n = t.detail, r = n.chipID, o = n.animation, a = n.isComplete, c = n.addedAnnouncement, l = n.removedAnnouncement, p = this.adapter.getChipIndexById(r);
|
3203
|
+
if (o === C.EXIT && a) {
|
3204
|
+
l && this.adapter.announceMessage(l), this.removeAfterAnimation(p, r);
|
3205
|
+
return;
|
3206
|
+
}
|
3207
|
+
if (o === C.ENTER && a && c) {
|
3208
|
+
this.adapter.announceMessage(c);
|
3209
|
+
return;
|
3210
|
+
}
|
3211
|
+
}, e.prototype.handleChipInteraction = function(t) {
|
3212
|
+
var n = t.detail, r = n.source, o = n.chipID, a = n.isSelectable, c = n.isSelected, l = n.shouldRemove, p = this.adapter.getChipIndexById(o);
|
3213
|
+
if (l) {
|
3214
|
+
this.removeChip(p);
|
3215
|
+
return;
|
3216
|
+
}
|
3217
|
+
this.focusChip(p, r, w.FOCUSABLE), this.adapter.emitEvent(K.INTERACTION, {
|
3218
|
+
chipIndex: p,
|
3219
|
+
chipID: o
|
3220
|
+
}), a && this.setSelection(p, r, !c);
|
3221
|
+
}, e.prototype.handleChipNavigation = function(t) {
|
3222
|
+
var n = t.detail, r = n.chipID, o = n.key, a = n.isRTL, c = n.source, l = this.adapter.getChipIndexById(r), p = o === s.ARROW_RIGHT && !a || o === s.ARROW_LEFT && a;
|
3223
|
+
if (p) {
|
3224
|
+
this.focusNextChipFrom(l + 1);
|
3225
|
+
return;
|
3226
|
+
}
|
3227
|
+
var d = o === s.ARROW_LEFT && !a || o === s.ARROW_RIGHT && a;
|
3228
|
+
if (d) {
|
3229
|
+
this.focusPrevChipFrom(l - 1);
|
3230
|
+
return;
|
3231
|
+
}
|
3232
|
+
if (o === s.ARROW_DOWN) {
|
3233
|
+
this.focusNextChipFrom(l + 1, c);
|
3234
|
+
return;
|
3235
|
+
}
|
3236
|
+
if (o === s.ARROW_UP) {
|
3237
|
+
this.focusPrevChipFrom(l - 1, c);
|
3238
|
+
return;
|
3239
|
+
}
|
3240
|
+
if (o === s.HOME) {
|
3241
|
+
this.focusNextChipFrom(0, c);
|
3242
|
+
return;
|
3243
|
+
}
|
3244
|
+
if (o === s.END) {
|
3245
|
+
this.focusPrevChipFrom(this.adapter.getChipCount() - 1, c);
|
3246
|
+
return;
|
3247
|
+
}
|
3248
|
+
}, e.prototype.getSelectedChipIndexes = function() {
|
3249
|
+
for (var t, n, r = /* @__PURE__ */ new Set(), o = this.adapter.getChipCount(), a = 0; a < o; a++) {
|
3250
|
+
var c = this.adapter.getChipActionsAtIndex(a);
|
3251
|
+
try {
|
3252
|
+
for (var l = (t = void 0, I(c)), p = l.next(); !p.done; p = l.next()) {
|
3253
|
+
var d = p.value;
|
3254
|
+
this.adapter.isChipSelectedAtIndex(a, d) && r.add(a);
|
3255
|
+
}
|
3256
|
+
} catch (h) {
|
3257
|
+
t = { error: h };
|
3258
|
+
} finally {
|
3259
|
+
try {
|
3260
|
+
p && !p.done && (n = l.return) && n.call(l);
|
3261
|
+
} finally {
|
3262
|
+
if (t)
|
3263
|
+
throw t.error;
|
3264
|
+
}
|
3265
|
+
}
|
3266
|
+
}
|
3267
|
+
return r;
|
3268
|
+
}, e.prototype.setChipSelected = function(t, n, r) {
|
3269
|
+
this.adapter.isChipSelectableAtIndex(t, n) && this.setSelection(t, n, r);
|
3270
|
+
}, e.prototype.isChipSelected = function(t, n) {
|
3271
|
+
return this.adapter.isChipSelectedAtIndex(t, n);
|
3272
|
+
}, e.prototype.removeChip = function(t) {
|
3273
|
+
t >= this.adapter.getChipCount() || t < 0 || (this.adapter.startChipAnimationAtIndex(t, C.EXIT), this.adapter.emitEvent(K.REMOVAL, {
|
3274
|
+
chipID: this.adapter.getChipIdAtIndex(t),
|
3275
|
+
chipIndex: t,
|
3276
|
+
isComplete: !1
|
3277
|
+
}));
|
3278
|
+
}, e.prototype.addChip = function(t) {
|
3279
|
+
t >= this.adapter.getChipCount() || t < 0 || this.adapter.startChipAnimationAtIndex(t, C.ENTER);
|
3280
|
+
}, e.prototype.focusNextChipFrom = function(t, n) {
|
3281
|
+
for (var r = this.adapter.getChipCount(), o = t; o < r; o++) {
|
3282
|
+
var a = this.getFocusableAction(o, B.INCREMENT, n);
|
3283
|
+
if (a) {
|
3284
|
+
this.focusChip(o, a, w.FOCUSABLE_AND_FOCUSED);
|
3285
|
+
return;
|
3286
|
+
}
|
3287
|
+
}
|
3288
|
+
}, e.prototype.focusPrevChipFrom = function(t, n) {
|
3289
|
+
for (var r = t; r > -1; r--) {
|
3290
|
+
var o = this.getFocusableAction(r, B.DECREMENT, n);
|
3291
|
+
if (o) {
|
3292
|
+
this.focusChip(r, o, w.FOCUSABLE_AND_FOCUSED);
|
3293
|
+
return;
|
3294
|
+
}
|
3295
|
+
}
|
3296
|
+
}, e.prototype.getFocusableAction = function(t, n, r) {
|
3297
|
+
var o = this.adapter.getChipActionsAtIndex(t);
|
3298
|
+
return n === B.DECREMENT && o.reverse(), r ? this.getMatchingFocusableAction(t, o, r) : this.getFirstFocusableAction(t, o);
|
3299
|
+
}, e.prototype.getFirstFocusableAction = function(t, n) {
|
3300
|
+
var r, o;
|
3301
|
+
try {
|
3302
|
+
for (var a = I(n), c = a.next(); !c.done; c = a.next()) {
|
3303
|
+
var l = c.value;
|
3304
|
+
if (this.adapter.isChipFocusableAtIndex(t, l))
|
3305
|
+
return l;
|
3306
|
+
}
|
3307
|
+
} catch (p) {
|
3308
|
+
r = { error: p };
|
3309
|
+
} finally {
|
3310
|
+
try {
|
3311
|
+
c && !c.done && (o = a.return) && o.call(a);
|
3312
|
+
} finally {
|
3313
|
+
if (r)
|
3314
|
+
throw r.error;
|
3315
|
+
}
|
3316
|
+
}
|
3317
|
+
return null;
|
3318
|
+
}, e.prototype.getMatchingFocusableAction = function(t, n, r) {
|
3319
|
+
var o, a, c = null;
|
3320
|
+
try {
|
3321
|
+
for (var l = I(n), p = l.next(); !p.done; p = l.next()) {
|
3322
|
+
var d = p.value;
|
3323
|
+
if (this.adapter.isChipFocusableAtIndex(t, d) && (c = d), c === r)
|
3324
|
+
return c;
|
3325
|
+
}
|
3326
|
+
} catch (h) {
|
3327
|
+
o = { error: h };
|
3328
|
+
} finally {
|
3329
|
+
try {
|
3330
|
+
p && !p.done && (a = l.return) && a.call(l);
|
3331
|
+
} finally {
|
3332
|
+
if (o)
|
3333
|
+
throw o.error;
|
3334
|
+
}
|
3335
|
+
}
|
3336
|
+
return c;
|
3337
|
+
}, e.prototype.focusChip = function(t, n, r) {
|
3338
|
+
var o, a;
|
3339
|
+
this.adapter.setChipFocusAtIndex(t, n, r);
|
3340
|
+
for (var c = this.adapter.getChipCount(), l = 0; l < c; l++) {
|
3341
|
+
var p = this.adapter.getChipActionsAtIndex(l);
|
3342
|
+
try {
|
3343
|
+
for (var d = (o = void 0, I(p)), h = d.next(); !h.done; h = d.next()) {
|
3344
|
+
var b = h.value;
|
3345
|
+
b === n && l === t || this.adapter.setChipFocusAtIndex(l, b, w.NOT_FOCUSABLE);
|
3346
|
+
}
|
3347
|
+
} catch (O) {
|
3348
|
+
o = { error: O };
|
3349
|
+
} finally {
|
3350
|
+
try {
|
3351
|
+
h && !h.done && (a = d.return) && a.call(d);
|
3352
|
+
} finally {
|
3353
|
+
if (o)
|
3354
|
+
throw o.error;
|
3355
|
+
}
|
3356
|
+
}
|
3357
|
+
}
|
3358
|
+
}, e.prototype.supportsMultiSelect = function() {
|
3359
|
+
return this.adapter.getAttribute(pt.ARIA_MULTISELECTABLE) === "true";
|
3360
|
+
}, e.prototype.setSelection = function(t, n, r) {
|
3361
|
+
var o, a;
|
3362
|
+
if (this.adapter.setChipSelectedAtIndex(t, n, r), this.adapter.emitEvent(K.SELECTION, {
|
3363
|
+
chipID: this.adapter.getChipIdAtIndex(t),
|
3364
|
+
chipIndex: t,
|
3365
|
+
isSelected: r
|
3366
|
+
}), !this.supportsMultiSelect())
|
3367
|
+
for (var c = this.adapter.getChipCount(), l = 0; l < c; l++) {
|
3368
|
+
var p = this.adapter.getChipActionsAtIndex(l);
|
3369
|
+
try {
|
3370
|
+
for (var d = (o = void 0, I(p)), h = d.next(); !h.done; h = d.next()) {
|
3371
|
+
var b = h.value;
|
3372
|
+
b === n && l === t || this.adapter.setChipSelectedAtIndex(l, b, !1);
|
3373
|
+
}
|
3374
|
+
} catch (O) {
|
3375
|
+
o = { error: O };
|
3376
|
+
} finally {
|
3377
|
+
try {
|
3378
|
+
h && !h.done && (a = d.return) && a.call(d);
|
3379
|
+
} finally {
|
3380
|
+
if (o)
|
3381
|
+
throw o.error;
|
3382
|
+
}
|
3383
|
+
}
|
3384
|
+
}
|
3385
|
+
}, e.prototype.removeAfterAnimation = function(t, n) {
|
3386
|
+
this.adapter.removeChipAtIndex(t), this.adapter.emitEvent(K.REMOVAL, {
|
3387
|
+
chipIndex: t,
|
3388
|
+
isComplete: !0,
|
3389
|
+
chipID: n
|
3390
|
+
});
|
3391
|
+
var r = this.adapter.getChipCount();
|
3392
|
+
r <= 0 || this.focusNearestFocusableAction(t);
|
3393
|
+
}, e.prototype.focusNearestFocusableAction = function(t) {
|
3394
|
+
for (var n = this.adapter.getChipCount(), r = t, o = t; r > -1 || o < n; ) {
|
3395
|
+
var a = this.getNearestFocusableAction(r, o, E.TRAILING);
|
3396
|
+
if (a) {
|
3397
|
+
this.focusChip(a.index, a.action, w.FOCUSABLE_AND_FOCUSED);
|
3398
|
+
return;
|
3399
|
+
}
|
3400
|
+
r--, o++;
|
3401
|
+
}
|
3402
|
+
}, e.prototype.getNearestFocusableAction = function(t, n, r) {
|
3403
|
+
var o = this.getFocusableAction(t, B.DECREMENT, r);
|
3404
|
+
if (o)
|
3405
|
+
return {
|
3406
|
+
index: t,
|
3407
|
+
action: o
|
3408
|
+
};
|
3409
|
+
if (n === t)
|
3410
|
+
return null;
|
3411
|
+
var a = this.getFocusableAction(n, B.INCREMENT, r);
|
3412
|
+
return a ? {
|
3413
|
+
index: n,
|
3414
|
+
action: a
|
3415
|
+
} : null;
|
3416
|
+
}, e;
|
3417
|
+
}(Q)
|
3418
|
+
);
|
3419
|
+
/**
|
3420
|
+
* @license
|
3421
|
+
* Copyright 2020 Google Inc.
|
3422
|
+
*
|
3423
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
3424
|
+
* of this software and associated documentation files (the "Software"), to deal
|
3425
|
+
* in the Software without restriction, including without limitation the rights
|
3426
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
3427
|
+
* copies of the Software, and to permit persons to whom the Software is
|
3428
|
+
* furnished to do so, subject to the following conditions:
|
3429
|
+
*
|
3430
|
+
* The above copyright notice and this permission notice shall be included in
|
3431
|
+
* all copies or substantial portions of the Software.
|
3432
|
+
*
|
3433
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
3434
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
3435
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
3436
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
3437
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
3438
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
3439
|
+
* THE SOFTWARE.
|
3440
|
+
*/
|
3441
|
+
var dt;
|
3442
|
+
(function(i) {
|
3443
|
+
i.POLITE = "polite", i.ASSERTIVE = "assertive";
|
3444
|
+
})(dt || (dt = {}));
|
3445
|
+
var rn = "data-mdc-dom-announce";
|
3446
|
+
function on(i, e) {
|
3447
|
+
an.getInstance().say(i, e);
|
3448
|
+
}
|
3449
|
+
var an = (
|
3450
|
+
/** @class */
|
3451
|
+
function() {
|
3452
|
+
function i() {
|
3453
|
+
this.liveRegions = /* @__PURE__ */ new Map();
|
3454
|
+
}
|
3455
|
+
return i.getInstance = function() {
|
3456
|
+
return i.instance || (i.instance = new i()), i.instance;
|
3457
|
+
}, i.prototype.say = function(e, t) {
|
3458
|
+
var n, r, o = (n = t == null ? void 0 : t.priority) !== null && n !== void 0 ? n : dt.POLITE, a = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, c = this.getLiveRegion(o, a);
|
3459
|
+
c.textContent = "", setTimeout(function() {
|
3460
|
+
c.textContent = e, a.addEventListener("click", l);
|
3461
|
+
}, 1);
|
3462
|
+
function l() {
|
3463
|
+
c.textContent = "", a.removeEventListener("click", l);
|
3464
|
+
}
|
3465
|
+
}, i.prototype.getLiveRegion = function(e, t) {
|
3466
|
+
var n = this.liveRegions.get(t);
|
3467
|
+
n || (n = /* @__PURE__ */ new Map(), this.liveRegions.set(t, n));
|
3468
|
+
var r = n.get(e);
|
3469
|
+
if (r && t.body.contains(r))
|
3470
|
+
return r;
|
3471
|
+
var o = this.createLiveRegion(e, t);
|
3472
|
+
return n.set(e, o), o;
|
3473
|
+
}, i.prototype.createLiveRegion = function(e, t) {
|
3474
|
+
var n = t.createElement("div");
|
3475
|
+
return n.style.position = "absolute", n.style.top = "-9999px", n.style.left = "-9999px", n.style.height = "1px", n.style.overflow = "hidden", n.setAttribute("aria-atomic", "true"), n.setAttribute("aria-live", e), n.setAttribute(rn, "true"), t.body.appendChild(n), n;
|
3476
|
+
}, i;
|
3477
|
+
}()
|
3478
|
+
), cn = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, et = (i, e, t, n) => {
|
3479
|
+
for (var r = n > 1 ? void 0 : n ? ln(e, t) : e, o = i.length - 1, a; o >= 0; o--)
|
3480
|
+
(a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
|
3481
|
+
return n && r && cn(e, t, r), r;
|
3482
|
+
};
|
3483
|
+
class V extends Ht {
|
3484
|
+
constructor() {
|
3485
|
+
super(...arguments), this.selectable = !1, this.multi = !1, this.label = "", this.activeIndex = 0, this._previousActiveIndex = -1, this.chips = [];
|
3486
|
+
}
|
3487
|
+
render() {
|
3488
|
+
return j`<span
|
3489
|
+
class="mdc-evolution-chip-set"
|
3490
|
+
role="${this.selectable || this.multi ? "listbox" : "grid"}"
|
3491
|
+
aria-label="${this.label}"
|
3492
|
+
aria-multiselectable="${this.multi}"
|
3493
|
+
>
|
3494
|
+
<span class="mdc-evolution-chip-set__chips" role="presentation">
|
3495
|
+
<slot></slot>
|
3496
|
+
</span>
|
3497
|
+
</span>`;
|
3498
|
+
}
|
3499
|
+
async updated(e) {
|
3500
|
+
super.updated(e), await this.updateComplete, this.activeIndex != this._previousActiveIndex && this.mdcFoundation.setChipSelected(
|
3501
|
+
this.activeIndex,
|
3502
|
+
E.PRIMARY,
|
3503
|
+
!0
|
3504
|
+
);
|
3505
|
+
}
|
3506
|
+
firstUpdated(e) {
|
3507
|
+
var r;
|
3508
|
+
super.firstUpdated(e);
|
3509
|
+
const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), n = (t == null ? void 0 : t.assignedElements().filter((o) => o instanceof ct)) ?? [];
|
3510
|
+
for (let o = 0; o < n.length; o++) {
|
3511
|
+
const a = n[o];
|
3512
|
+
this.chips.push(a);
|
3513
|
+
}
|
3514
|
+
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new nn(this.createAdapter()), this.mdcFoundation.init();
|
3515
|
+
}
|
3516
|
+
connectedCallback() {
|
3517
|
+
super.connectedCallback(), this.addEventListener(S.ANIMATION, this._handleChipAnimation), this.addEventListener(
|
3518
|
+
S.INTERACTION,
|
3519
|
+
this._handleChipInteraction
|
3520
|
+
), this.addEventListener(S.NAVIGATION, this._handleChipNavigation);
|
3521
|
+
}
|
3522
|
+
disconnectedCallback() {
|
3523
|
+
super.disconnectedCallback(), this.removeEventListener(
|
3524
|
+
S.ANIMATION,
|
3525
|
+
this._handleChipAnimation
|
3526
|
+
), this.removeEventListener(
|
3527
|
+
S.INTERACTION,
|
3528
|
+
this._handleChipInteraction
|
3529
|
+
), this.removeEventListener(
|
3530
|
+
S.NAVIGATION,
|
3531
|
+
this._handleChipNavigation
|
3532
|
+
);
|
3533
|
+
}
|
3534
|
+
createAdapter() {
|
3535
|
+
return {
|
3536
|
+
/** Announces the message via an aria-live region */
|
3537
|
+
announceMessage: on,
|
3538
|
+
/** Emits the given event with the given detail. */
|
3539
|
+
emitEvent: (e, t) => this.dispatchEvent(
|
3540
|
+
new CustomEvent(e, { bubbles: !0, detail: t })
|
3541
|
+
),
|
3542
|
+
/** Returns the value for the given attribute, if it exists. */
|
3543
|
+
getAttribute: (e) => this.mdcRoot.getAttribute(e),
|
3544
|
+
/** Returns the actions provided by the child chip at the given index. */
|
3545
|
+
getChipActionsAtIndex: (e) => this.chips[e].getActions(),
|
3546
|
+
/** Returns the number of child chips. */
|
3547
|
+
getChipCount: () => this.chips.length,
|
3548
|
+
/** Returns the ID of the chip at the given index. */
|
3549
|
+
getChipIdAtIndex: (e) => this.chips[e].getElementID(),
|
3550
|
+
/** Returns the index of the child chip with the matching ID. */
|
3551
|
+
getChipIndexById: (e) => this.chips.findIndex((t) => t.getElementID() === e),
|
3552
|
+
/** Proxies to the MDCChip#isActionFocusable method. */
|
3553
|
+
isChipFocusableAtIndex: (e, t) => this.chips[e].isActionFocusable(t),
|
3554
|
+
/** Proxies to the MDCChip#isActionSelectable method. */
|
3555
|
+
isChipSelectableAtIndex: (e, t) => this.chips[e].isActionSelectable(t),
|
3556
|
+
/** Proxies to the MDCChip#isActionSelected method. */
|
3557
|
+
isChipSelectedAtIndex: (e, t) => this.chips[e].isActionSelected(t),
|
3558
|
+
/** Removes the chip at the given index. */
|
3559
|
+
removeChipAtIndex: (e) => this.chips[e].remove(),
|
3560
|
+
/** Proxies to the MDCChip#setActionFocus method. */
|
3561
|
+
setChipFocusAtIndex: (e, t, n) => this.chips[e].setActionFocus(t, n),
|
3562
|
+
/** Proxies to the MDCChip#setActionSelected method. */
|
3563
|
+
setChipSelectedAtIndex: (e, t, n) => this.chips[e].setActionSelected(t, n),
|
3564
|
+
/** Starts the chip animation at the given index. */
|
3565
|
+
startChipAnimationAtIndex: (e, t) => this.chips[e].startAnimation(t)
|
3566
|
+
};
|
3567
|
+
}
|
3568
|
+
_handleChipAnimation(e) {
|
3569
|
+
this.mdcFoundation.handleChipAnimation(e);
|
3570
|
+
}
|
3571
|
+
_handleChipInteraction(e) {
|
3572
|
+
this.mdcFoundation.handleChipInteraction(e);
|
3573
|
+
}
|
3574
|
+
_handleChipNavigation(e) {
|
3575
|
+
this.mdcFoundation.handleChipNavigation(e);
|
3576
|
+
}
|
3577
|
+
}
|
3578
|
+
et([
|
3579
|
+
Wt(".mdc-evolution-chip-set")
|
3580
|
+
], V.prototype, "mdcRoot", 2);
|
3581
|
+
et([
|
3582
|
+
R({ type: Boolean, reflect: !0 })
|
3583
|
+
], V.prototype, "selectable", 2);
|
3584
|
+
et([
|
3585
|
+
R({ type: Boolean, reflect: !0 })
|
3586
|
+
], V.prototype, "multi", 2);
|
3587
|
+
et([
|
3588
|
+
R()
|
3589
|
+
], V.prototype, "label", 2);
|
3590
|
+
et([
|
3591
|
+
R({ type: Number })
|
3592
|
+
], V.prototype, "activeIndex", 2);
|
3593
|
+
const sn = `.mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}
|
3594
|
+
`;
|
3595
|
+
var pn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, un = (i, e, t, n) => {
|
3596
|
+
for (var r = n > 1 ? void 0 : n ? dn(e, t) : e, o = i.length - 1, a; o >= 0; o--)
|
3597
|
+
(a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
|
3598
|
+
return n && r && pn(e, t, r), r;
|
3599
|
+
};
|
3600
|
+
let ut = class extends V {
|
3601
|
+
};
|
3602
|
+
ut.styles = [
|
3603
|
+
kt`
|
3604
|
+
${Bt(sn)}
|
3605
|
+
`
|
3606
|
+
];
|
3607
|
+
ut = un([
|
3608
|
+
Gt("cv-chip-set")
|
3609
|
+
], ut);
|
80
3610
|
export {
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
3611
|
+
Jn as CovalentActionRibbon,
|
3612
|
+
tr as CovalentAlert,
|
3613
|
+
ir as CovalentAppShell,
|
3614
|
+
rr as CovalentButton,
|
3615
|
+
lr as CovalentCard,
|
3616
|
+
Dr as CovalentCheckListItem,
|
3617
|
+
ar as CovalentCheckbox,
|
3618
|
+
ct as CovalentChip,
|
3619
|
+
ut as CovalentChipSet,
|
3620
|
+
ur as CovalentCircularProgress,
|
3621
|
+
pr as CovalentCodeSnippet,
|
3622
|
+
mr as CovalentDialog,
|
3623
|
+
vr as CovalentDrawer,
|
3624
|
+
_r as CovalentEmptyState,
|
3625
|
+
Ar as CovalentIcon,
|
3626
|
+
Er as CovalentIconButton,
|
3627
|
+
Cr as CovalentIconCheckToggle,
|
3628
|
+
Ir as CovalentIconRadioToggle,
|
3629
|
+
Rr as CovalentLinearProgress,
|
3630
|
+
Pr as CovalentList,
|
3631
|
+
Lr as CovalentListItem,
|
3632
|
+
kr as CovalentMenu,
|
3633
|
+
Mr as CovalentNavRailListItem,
|
3634
|
+
Gr as CovalentRadio,
|
3635
|
+
zr as CovalentRadioListItem,
|
3636
|
+
jr as CovalentSelect,
|
3637
|
+
$r as CovalentSideSheet,
|
3638
|
+
Xr as CovalentSlider,
|
3639
|
+
Vr as CovalentSliderRange,
|
3640
|
+
Jr as CovalentSnackbar,
|
3641
|
+
to as CovalentStatusHeader,
|
3642
|
+
io as CovalentStatusHeaderItem,
|
3643
|
+
ro as CovalentSwitch,
|
3644
|
+
ao as CovalentTab,
|
3645
|
+
lo as CovalentTabBar,
|
3646
|
+
po as CovalentTextArea,
|
3647
|
+
ho as CovalentTextField,
|
3648
|
+
fo as CovalentTextLockup,
|
3649
|
+
go as CovalentToolbar,
|
3650
|
+
yo as CovalentTooltip,
|
3651
|
+
bo as CovalentTopAppBar,
|
3652
|
+
So as CovalentTopAppBarFixed,
|
3653
|
+
wo as CovalentTreeList,
|
3654
|
+
To as CovalentTreeListItem,
|
3655
|
+
Oo as CovalentTypography
|
126
3656
|
};
|