@covalent/components 8.4.0 → 8.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +3 -3
- package/action-ribbon.mjs +25 -24
- package/alert.js +2 -2
- package/alert.mjs +21 -20
- package/{chip-d6f5c2bb.js → chip-21138b58.js} +53 -95
- package/{chip-9c846d01.mjs → chip-eb043df9.mjs} +1139 -1326
- package/chip-set.js +8 -8
- package/chip-set.mjs +17 -15
- package/chip.js +1 -1
- package/chip.mjs +5 -3
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-eff81c1e.mjs → foundation-b3e4efcd.mjs} +22 -78
- package/foundation-e830bd94.js +22 -0
- package/{foundation-786bf879.js → foundation-e980aa3d.js} +3 -24
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +99 -91
- package/keyboard-39125691.js +43 -0
- package/keyboard-983b121c.mjs +159 -0
- package/package.json +1 -1
- package/tooltip.js +10 -73
- package/tooltip.mjs +385 -590
@@ -1,403 +1,405 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
import { s as
|
5
|
-
import { a as
|
6
|
-
import {
|
7
|
-
import { n as
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
|
1
|
+
var Xt = Object.defineProperty;
|
2
|
+
var Yt = (e, i, t) => i in e ? Xt(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t;
|
3
|
+
var u = (e, i, t) => (Yt(e, typeof i != "symbol" ? i + "" : i, t), t);
|
4
|
+
import { s as Zt, x as j, i as Vt, r as Jt, e as Qt } from "./query-assigned-elements-4a39219d.mjs";
|
5
|
+
import { a as te } from "./utils-2932417c.mjs";
|
6
|
+
import { d as C, e as ee, f as ie, _ as N, a as b, c as U } from "./tslib.es6-226581a4.mjs";
|
7
|
+
import { A as ne, K as _, n as re, i as oe } from "./keyboard-983b121c.mjs";
|
8
|
+
import { M as Q } from "./foundation-2334d146.mjs";
|
9
|
+
import { n as L } from "./property-9b6ea53b.mjs";
|
10
|
+
import { i as ae } from "./query-d843aa92.mjs";
|
11
|
+
import { o as ce } from "./class-map-4b94b017.mjs";
|
12
|
+
import { g as m } from "./_commonjsHelpers-de2741aa.mjs";
|
13
|
+
var T = {};
|
12
14
|
/**
|
13
15
|
* @license
|
14
16
|
* SPDX-License-Identifier: Apache-2.0
|
15
17
|
*/
|
16
|
-
const
|
17
|
-
function
|
18
|
-
if (
|
18
|
+
const A = {};
|
19
|
+
function le(e) {
|
20
|
+
if (e !== A)
|
19
21
|
throw new Error("Bad secret");
|
20
22
|
}
|
21
23
|
/**
|
22
24
|
* @license
|
23
25
|
* SPDX-License-Identifier: Apache-2.0
|
24
26
|
*/
|
25
|
-
class
|
27
|
+
class Rt {
|
26
28
|
constructor() {
|
27
29
|
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
28
|
-
|
30
|
+
u(this, "brand");
|
29
31
|
}
|
30
32
|
// To prevent structural typing.
|
31
33
|
}
|
32
|
-
class
|
33
|
-
constructor(
|
34
|
+
class Dt extends Rt {
|
35
|
+
constructor(t, n) {
|
34
36
|
super();
|
35
|
-
|
36
|
-
this.privateDoNotAccessOrElseWrappedAttrPrefix =
|
37
|
+
u(this, "privateDoNotAccessOrElseWrappedAttrPrefix");
|
38
|
+
this.privateDoNotAccessOrElseWrappedAttrPrefix = t;
|
37
39
|
}
|
38
40
|
toString() {
|
39
41
|
return this.privateDoNotAccessOrElseWrappedAttrPrefix;
|
40
42
|
}
|
41
43
|
}
|
42
|
-
function
|
43
|
-
return new
|
44
|
+
function Ct(e) {
|
45
|
+
return new Dt(e, A);
|
44
46
|
}
|
45
|
-
function
|
46
|
-
if (
|
47
|
-
return
|
47
|
+
function Ot(e) {
|
48
|
+
if (e instanceof Dt)
|
49
|
+
return e.privateDoNotAccessOrElseWrappedAttrPrefix;
|
48
50
|
{
|
49
|
-
let
|
50
|
-
throw new Error(
|
51
|
+
let i = "";
|
52
|
+
throw new Error(i);
|
51
53
|
}
|
52
54
|
}
|
53
|
-
const
|
55
|
+
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
54
56
|
__proto__: null,
|
55
|
-
SafeAttributePrefix:
|
56
|
-
createAttributePrefix:
|
57
|
-
unwrapAttributePrefix:
|
57
|
+
SafeAttributePrefix: Rt,
|
58
|
+
createAttributePrefix: Ct,
|
59
|
+
unwrapAttributePrefix: Ot
|
58
60
|
}, Symbol.toStringTag, { value: "Module" }));
|
59
61
|
/**
|
60
62
|
* @license
|
61
63
|
* SPDX-License-Identifier: Apache-2.0
|
62
64
|
*/
|
63
|
-
function
|
64
|
-
const
|
65
|
-
return
|
65
|
+
function de(e) {
|
66
|
+
const i = e[0].toLowerCase();
|
67
|
+
return Ct(i);
|
66
68
|
}
|
67
|
-
const
|
69
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
68
70
|
__proto__: null,
|
69
|
-
safeAttrPrefix:
|
70
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
71
|
+
safeAttrPrefix: de
|
72
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ m(ue);
|
71
73
|
/**
|
72
74
|
* @license
|
73
75
|
* SPDX-License-Identifier: Apache-2.0
|
74
76
|
*/
|
75
|
-
let
|
76
|
-
function
|
77
|
+
let Pt = "google#safe";
|
78
|
+
function he() {
|
77
79
|
if (typeof window < "u")
|
78
80
|
return window.trustedTypes;
|
79
81
|
}
|
80
|
-
function
|
81
|
-
return
|
82
|
+
function G() {
|
83
|
+
return Pt !== "" ? he() ?? null : null;
|
82
84
|
}
|
83
|
-
let
|
84
|
-
function
|
85
|
-
var
|
86
|
-
if (
|
85
|
+
let q;
|
86
|
+
function it() {
|
87
|
+
var e;
|
88
|
+
if (q === void 0)
|
87
89
|
try {
|
88
|
-
|
89
|
-
createHTML: (
|
90
|
-
createScript: (
|
91
|
-
createScriptURL: (
|
90
|
+
q = ((e = G()) == null ? void 0 : e.createPolicy(Pt, {
|
91
|
+
createHTML: (i) => i,
|
92
|
+
createScript: (i) => i,
|
93
|
+
createScriptURL: (i) => i
|
92
94
|
})) ?? null;
|
93
95
|
} catch {
|
94
|
-
|
96
|
+
q = null;
|
95
97
|
}
|
96
|
-
return
|
98
|
+
return q;
|
97
99
|
}
|
98
100
|
/**
|
99
101
|
* @license
|
100
102
|
* SPDX-License-Identifier: Apache-2.0
|
101
103
|
*/
|
102
|
-
class
|
103
|
-
constructor(
|
104
|
-
|
105
|
-
this.privateDoNotAccessOrElseWrappedHtml =
|
104
|
+
class nt {
|
105
|
+
constructor(i, t) {
|
106
|
+
u(this, "privateDoNotAccessOrElseWrappedHtml");
|
107
|
+
this.privateDoNotAccessOrElseWrappedHtml = i;
|
106
108
|
}
|
107
109
|
toString() {
|
108
110
|
return this.privateDoNotAccessOrElseWrappedHtml.toString();
|
109
111
|
}
|
110
112
|
}
|
111
|
-
function
|
112
|
-
return
|
113
|
-
}
|
114
|
-
const ve = typeof window !== void 0 ? window.TrustedHTML : void 0, xt = ve ?? ct;
|
115
|
-
function H(t) {
|
116
|
-
var i;
|
117
|
-
const e = t;
|
118
|
-
return Ut(e, (i = at()) == null ? void 0 : i.createHTML(e));
|
113
|
+
function Nt(e, i) {
|
114
|
+
return i ?? new nt(e, A);
|
119
115
|
}
|
120
|
-
const
|
116
|
+
const me = typeof window !== void 0 ? window.TrustedHTML : void 0, Lt = me ?? nt;
|
117
|
+
function F(e) {
|
121
118
|
var t;
|
122
|
-
|
123
|
-
|
124
|
-
function _e(t) {
|
125
|
-
return t instanceof xt;
|
119
|
+
const i = e;
|
120
|
+
return Nt(i, (t = it()) == null ? void 0 : t.createHTML(i));
|
126
121
|
}
|
127
|
-
|
122
|
+
const fe = /* @__PURE__ */ (() => {
|
128
123
|
var e;
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
124
|
+
return Nt("", (e = G()) == null ? void 0 : e.emptyHTML);
|
125
|
+
})();
|
126
|
+
function ve(e) {
|
127
|
+
return e instanceof Lt;
|
128
|
+
}
|
129
|
+
function rt(e) {
|
130
|
+
var i;
|
131
|
+
if ((i = G()) != null && i.isHTML(e))
|
132
|
+
return e;
|
133
|
+
if (e instanceof nt)
|
134
|
+
return e.privateDoNotAccessOrElseWrappedHtml;
|
133
135
|
{
|
134
|
-
let
|
135
|
-
throw new Error(
|
136
|
+
let t = "";
|
137
|
+
throw new Error(t);
|
136
138
|
}
|
137
139
|
}
|
138
|
-
const
|
140
|
+
const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
139
141
|
__proto__: null,
|
140
|
-
EMPTY_HTML:
|
141
|
-
SafeHtml:
|
142
|
-
createHtml:
|
143
|
-
isHtml:
|
144
|
-
unwrapHtml:
|
142
|
+
EMPTY_HTML: fe,
|
143
|
+
SafeHtml: Lt,
|
144
|
+
createHtml: F,
|
145
|
+
isHtml: ve,
|
146
|
+
unwrapHtml: rt
|
145
147
|
}, Symbol.toStringTag, { value: "Module" }));
|
146
148
|
/**
|
147
149
|
* @license
|
148
150
|
* SPDX-License-Identifier: Apache-2.0
|
149
151
|
*/
|
150
|
-
class
|
151
|
-
constructor(
|
152
|
-
|
153
|
-
this.privateDoNotAccessOrElseWrappedResourceUrl =
|
152
|
+
class ot {
|
153
|
+
constructor(i, t) {
|
154
|
+
u(this, "privateDoNotAccessOrElseWrappedResourceUrl");
|
155
|
+
this.privateDoNotAccessOrElseWrappedResourceUrl = i;
|
154
156
|
}
|
155
157
|
toString() {
|
156
158
|
return this.privateDoNotAccessOrElseWrappedResourceUrl.toString();
|
157
159
|
}
|
158
160
|
}
|
159
|
-
const
|
160
|
-
function
|
161
|
+
const _e = typeof window !== void 0 ? window.TrustedScriptURL : void 0, Ft = _e ?? ot;
|
162
|
+
function k(e) {
|
161
163
|
var n;
|
162
|
-
const
|
163
|
-
return ((n =
|
164
|
+
const i = e;
|
165
|
+
return ((n = it()) == null ? void 0 : n.createScriptURL(i)) ?? new ot(i, A);
|
164
166
|
}
|
165
|
-
function
|
166
|
-
return
|
167
|
+
function ye(e) {
|
168
|
+
return e instanceof Ft;
|
167
169
|
}
|
168
|
-
function
|
169
|
-
var
|
170
|
-
if ((
|
171
|
-
return
|
172
|
-
if (
|
173
|
-
return
|
170
|
+
function tt(e) {
|
171
|
+
var i;
|
172
|
+
if ((i = G()) != null && i.isScriptURL(e))
|
173
|
+
return e;
|
174
|
+
if (e instanceof ot)
|
175
|
+
return e.privateDoNotAccessOrElseWrappedResourceUrl;
|
174
176
|
{
|
175
|
-
let
|
176
|
-
throw new Error(
|
177
|
+
let t = "";
|
178
|
+
throw new Error(t);
|
177
179
|
}
|
178
180
|
}
|
179
|
-
const
|
181
|
+
const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
180
182
|
__proto__: null,
|
181
|
-
TrustedResourceUrl:
|
182
|
-
createResourceUrl:
|
183
|
-
isResourceUrl:
|
184
|
-
unwrapResourceUrl:
|
183
|
+
TrustedResourceUrl: Ft,
|
184
|
+
createResourceUrl: k,
|
185
|
+
isResourceUrl: ye,
|
186
|
+
unwrapResourceUrl: tt
|
185
187
|
}, Symbol.toStringTag, { value: "Module" }));
|
186
188
|
/**
|
187
189
|
* @license
|
188
190
|
* SPDX-License-Identifier: Apache-2.0
|
189
191
|
*/
|
190
|
-
class
|
191
|
-
constructor(
|
192
|
-
|
193
|
-
this.privateDoNotAccessOrElseWrappedScript =
|
192
|
+
class at {
|
193
|
+
constructor(i, t) {
|
194
|
+
u(this, "privateDoNotAccessOrElseWrappedScript");
|
195
|
+
this.privateDoNotAccessOrElseWrappedScript = i;
|
194
196
|
}
|
195
197
|
toString() {
|
196
198
|
return this.privateDoNotAccessOrElseWrappedScript.toString();
|
197
199
|
}
|
198
200
|
}
|
199
|
-
function
|
200
|
-
return
|
201
|
-
}
|
202
|
-
const Se = typeof window !== void 0 ? window.TrustedScript : void 0, kt = Se ?? dt;
|
203
|
-
function Y(t) {
|
204
|
-
var i;
|
205
|
-
const e = t;
|
206
|
-
return Mt(e, (i = at()) == null ? void 0 : i.createScript(e));
|
201
|
+
function zt(e, i) {
|
202
|
+
return i ?? new at(e, A);
|
207
203
|
}
|
208
|
-
const
|
204
|
+
const Ae = typeof window !== void 0 ? window.TrustedScript : void 0, xt = Ae ?? at;
|
205
|
+
function $(e) {
|
209
206
|
var t;
|
210
|
-
|
211
|
-
|
212
|
-
function Te(t) {
|
213
|
-
return t instanceof kt;
|
207
|
+
const i = e;
|
208
|
+
return zt(i, (t = it()) == null ? void 0 : t.createScript(i));
|
214
209
|
}
|
215
|
-
|
210
|
+
const Ee = /* @__PURE__ */ (() => {
|
216
211
|
var e;
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
212
|
+
return zt("", (e = G()) == null ? void 0 : e.emptyScript);
|
213
|
+
})();
|
214
|
+
function Se(e) {
|
215
|
+
return e instanceof xt;
|
216
|
+
}
|
217
|
+
function et(e) {
|
218
|
+
var i;
|
219
|
+
if ((i = G()) != null && i.isScript(e))
|
220
|
+
return e;
|
221
|
+
if (e instanceof at)
|
222
|
+
return e.privateDoNotAccessOrElseWrappedScript;
|
221
223
|
{
|
222
|
-
let
|
223
|
-
throw new Error(
|
224
|
+
let t = "";
|
225
|
+
throw new Error(t);
|
224
226
|
}
|
225
227
|
}
|
226
|
-
const
|
228
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
227
229
|
__proto__: null,
|
228
|
-
EMPTY_SCRIPT:
|
229
|
-
SafeScript:
|
230
|
-
createScript:
|
231
|
-
isScript:
|
232
|
-
unwrapScript:
|
230
|
+
EMPTY_SCRIPT: Ee,
|
231
|
+
SafeScript: xt,
|
232
|
+
createScript: $,
|
233
|
+
isScript: Se,
|
234
|
+
unwrapScript: et
|
233
235
|
}, Symbol.toStringTag, { value: "Module" }));
|
234
236
|
/**
|
235
237
|
* @license
|
236
238
|
* SPDX-License-Identifier: Apache-2.0
|
237
239
|
*/
|
238
|
-
function
|
239
|
-
let
|
240
|
-
return
|
240
|
+
function Te(e, i = {}) {
|
241
|
+
let t = M(e);
|
242
|
+
return i.preserveSpaces && (t = t.replace(/(^|[\r\n\t ]) /g, "$1 ")), i.preserveNewlines && (t = t.replace(/(\r\n|\n|\r)/g, "<br>")), i.preserveTabs && (t = t.replace(/(\t+)/g, '<span style="white-space:pre">$1</span>')), F(t);
|
241
243
|
}
|
242
|
-
function
|
243
|
-
const
|
244
|
+
function Ie(e, i = {}) {
|
245
|
+
const t = et(e).toString();
|
244
246
|
let n = "<script";
|
245
|
-
return
|
247
|
+
return i.id && (n += ` id="${M(i.id)}"`), i.nonce && (n += ` nonce="${M(i.nonce)}"`), i.type && (n += ` type="${M(i.type)}"`), n += `>${t}<\/script>`, F(n);
|
246
248
|
}
|
247
|
-
function
|
248
|
-
const n =
|
249
|
-
let r = `<script src="${
|
250
|
-
return
|
249
|
+
function Re(e, i, t) {
|
250
|
+
const n = tt(e).toString();
|
251
|
+
let r = `<script src="${M(n)}"`;
|
252
|
+
return i && (r += " async"), t && (r += ` nonce="${M(t)}"`), r += "><\/script>", F(r);
|
251
253
|
}
|
252
|
-
function
|
253
|
-
return
|
254
|
+
function M(e) {
|
255
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
254
256
|
}
|
255
|
-
function
|
256
|
-
return
|
257
|
+
function De(e) {
|
258
|
+
return F(e.map(rt).join(""));
|
257
259
|
}
|
258
260
|
const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
259
261
|
__proto__: null,
|
260
|
-
concatHtmls:
|
261
|
-
createScript:
|
262
|
-
createScriptSrc:
|
263
|
-
htmlEscape:
|
264
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
262
|
+
concatHtmls: De,
|
263
|
+
createScript: Ie,
|
264
|
+
createScriptSrc: Re,
|
265
|
+
htmlEscape: Te
|
266
|
+
}, Symbol.toStringTag, { value: "Module" })), Oe = /* @__PURE__ */ m(Ce);
|
265
267
|
/**
|
266
268
|
* @license
|
267
269
|
* SPDX-License-Identifier: Apache-2.0
|
268
270
|
*/
|
269
|
-
function
|
270
|
-
let
|
271
|
+
function Pe(e) {
|
272
|
+
let i;
|
271
273
|
try {
|
272
|
-
|
274
|
+
i = new URL(e);
|
273
275
|
} catch {
|
274
276
|
return "https:";
|
275
277
|
}
|
276
|
-
return
|
278
|
+
return i.protocol;
|
277
279
|
}
|
278
|
-
const
|
279
|
-
function
|
280
|
-
const
|
281
|
-
return
|
280
|
+
const Ne = ["data:", "http:", "https:", "mailto:", "ftp:"];
|
281
|
+
function Le(e) {
|
282
|
+
const i = Pe(e);
|
283
|
+
return i !== void 0 && Ne.indexOf(i.toLowerCase()) !== -1 ? e : "about:invalid#zClosurez";
|
282
284
|
}
|
283
285
|
/**
|
284
286
|
* @license
|
285
287
|
* SPDX-License-Identifier: Apache-2.0
|
286
288
|
*/
|
287
|
-
class
|
289
|
+
class Ut {
|
288
290
|
constructor() {
|
289
291
|
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
290
|
-
|
292
|
+
u(this, "brand");
|
291
293
|
}
|
292
294
|
// To prevent structural typing.
|
293
295
|
}
|
294
|
-
class
|
295
|
-
constructor(
|
296
|
+
class ct extends Ut {
|
297
|
+
constructor(t, n) {
|
296
298
|
super();
|
297
|
-
|
298
|
-
this.privateDoNotAccessOrElseWrappedStyle =
|
299
|
+
u(this, "privateDoNotAccessOrElseWrappedStyle");
|
300
|
+
this.privateDoNotAccessOrElseWrappedStyle = t;
|
299
301
|
}
|
300
302
|
toString() {
|
301
303
|
return this.privateDoNotAccessOrElseWrappedStyle;
|
302
304
|
}
|
303
305
|
}
|
304
|
-
function
|
305
|
-
return new
|
306
|
+
function lt(e) {
|
307
|
+
return new ct(e, A);
|
306
308
|
}
|
307
|
-
function
|
308
|
-
return
|
309
|
+
function Fe(e) {
|
310
|
+
return e instanceof ct;
|
309
311
|
}
|
310
|
-
function
|
311
|
-
if (
|
312
|
-
return
|
312
|
+
function Ht(e) {
|
313
|
+
if (e instanceof ct)
|
314
|
+
return e.privateDoNotAccessOrElseWrappedStyle;
|
313
315
|
{
|
314
|
-
let
|
315
|
-
throw new Error(
|
316
|
+
let i = "";
|
317
|
+
throw new Error(i);
|
316
318
|
}
|
317
319
|
}
|
318
|
-
const
|
320
|
+
const ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
319
321
|
__proto__: null,
|
320
|
-
SafeStyle:
|
321
|
-
createStyle:
|
322
|
-
isStyle:
|
323
|
-
unwrapStyle:
|
322
|
+
SafeStyle: Ut,
|
323
|
+
createStyle: lt,
|
324
|
+
isStyle: Fe,
|
325
|
+
unwrapStyle: Ht
|
324
326
|
}, Symbol.toStringTag, { value: "Module" }));
|
325
327
|
/**
|
326
328
|
* @license
|
327
329
|
* SPDX-License-Identifier: Apache-2.0
|
328
330
|
*/
|
329
|
-
function
|
330
|
-
|
331
|
+
function xe(e, i) {
|
332
|
+
He(e) && Ue(e), e.innerHTML = rt(i);
|
331
333
|
}
|
332
|
-
function
|
333
|
-
if (
|
334
|
+
function Mt(e, i, t, n) {
|
335
|
+
if (e.length === 0)
|
334
336
|
throw new Error("No prefixes are provided");
|
335
|
-
const r =
|
337
|
+
const r = e.map((a) => Ot(a)), o = t.toLowerCase();
|
336
338
|
if (r.every((a) => o.indexOf(a) !== 0))
|
337
|
-
throw new Error(`Attribute "${
|
338
|
-
|
339
|
+
throw new Error(`Attribute "${t}" does not match any of the allowed prefixes.`);
|
340
|
+
i.setAttribute(t, n);
|
339
341
|
}
|
340
|
-
function
|
341
|
-
if (
|
342
|
+
function Ue(e) {
|
343
|
+
if (e.tagName.toLowerCase() === "script")
|
342
344
|
throw new Error("Use setTextContent with a SafeScript.");
|
343
|
-
if (
|
345
|
+
if (e.tagName.toLowerCase() === "style")
|
344
346
|
throw new Error("Use setTextContent with a SafeStyleSheet.");
|
345
347
|
}
|
346
|
-
function
|
347
|
-
return
|
348
|
+
function He(e) {
|
349
|
+
return e.tagName !== void 0;
|
348
350
|
}
|
349
351
|
/**
|
350
352
|
* @license
|
351
353
|
* SPDX-License-Identifier: Apache-2.0
|
352
354
|
*/
|
353
|
-
function
|
354
|
-
const
|
355
|
-
return
|
355
|
+
function Me(e) {
|
356
|
+
const i = document.createElement("template"), t = F(e);
|
357
|
+
return xe(i, t), i.content;
|
356
358
|
}
|
357
359
|
/**
|
358
360
|
* @license
|
359
361
|
* SPDX-License-Identifier: Apache-2.0
|
360
362
|
*/
|
361
|
-
function
|
362
|
-
const
|
363
|
-
return typeof
|
363
|
+
function ht(e) {
|
364
|
+
const i = e.nodeName;
|
365
|
+
return typeof i == "string" ? i : "FORM";
|
364
366
|
}
|
365
|
-
function
|
366
|
-
return
|
367
|
+
function mt(e) {
|
368
|
+
return e.nodeType === Node.TEXT_NODE;
|
367
369
|
}
|
368
|
-
function
|
369
|
-
const
|
370
|
-
return
|
370
|
+
function ft(e) {
|
371
|
+
const i = e.nodeType;
|
372
|
+
return i === Node.ELEMENT_NODE || typeof i != "number";
|
371
373
|
}
|
372
374
|
/**
|
373
375
|
* @license
|
374
376
|
* SPDX-License-Identifier: Apache-2.0
|
375
377
|
*/
|
376
|
-
class
|
377
|
-
constructor(
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
this.allowedElements =
|
378
|
+
class D {
|
379
|
+
constructor(i, t, n, r) {
|
380
|
+
u(this, "allowedElements");
|
381
|
+
u(this, "elementPolicies");
|
382
|
+
u(this, "allowedGlobalAttributes");
|
383
|
+
u(this, "globalAttributePolicies");
|
384
|
+
this.allowedElements = i, this.elementPolicies = t, this.allowedGlobalAttributes = n, this.globalAttributePolicies = r;
|
383
385
|
}
|
384
|
-
isAllowedElement(
|
385
|
-
return
|
386
|
+
isAllowedElement(i) {
|
387
|
+
return i.toLowerCase() !== "form" && (this.allowedElements.has(i) || this.elementPolicies.has(i));
|
386
388
|
}
|
387
|
-
getAttributePolicy(
|
388
|
-
const n = this.elementPolicies.get(
|
389
|
-
return n != null && n.has(
|
389
|
+
getAttributePolicy(i, t) {
|
390
|
+
const n = this.elementPolicies.get(t);
|
391
|
+
return n != null && n.has(i) ? n.get(i) : this.allowedGlobalAttributes.has(i) ? { policyAction: s.KEEP } : this.globalAttributePolicies.get(i) || { policyAction: s.DROP };
|
390
392
|
}
|
391
393
|
}
|
392
|
-
var
|
393
|
-
(function(
|
394
|
-
|
395
|
-
})(
|
394
|
+
var s;
|
395
|
+
(function(e) {
|
396
|
+
e[e.DROP = 0] = "DROP", e[e.KEEP = 1] = "KEEP", e[e.KEEP_AND_SANITIZE_URL = 2] = "KEEP_AND_SANITIZE_URL", e[e.KEEP_AND_NORMALIZE = 3] = "KEEP_AND_NORMALIZE", e[e.KEEP_AND_SANITIZE_STYLE = 4] = "KEEP_AND_SANITIZE_STYLE";
|
397
|
+
})(s || (s = {}));
|
396
398
|
/**
|
397
399
|
* @license
|
398
400
|
* SPDX-License-Identifier: Apache-2.0
|
399
401
|
*/
|
400
|
-
const
|
402
|
+
const kt = new D(/* @__PURE__ */ new Set([
|
401
403
|
"ARTICLE",
|
402
404
|
"SECTION",
|
403
405
|
"NAV",
|
@@ -493,13 +495,13 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
493
495
|
[
|
494
496
|
"A",
|
495
497
|
/* @__PURE__ */ new Map([
|
496
|
-
["href", { policyAction:
|
498
|
+
["href", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
497
499
|
])
|
498
500
|
],
|
499
501
|
[
|
500
502
|
"AREA",
|
501
503
|
/* @__PURE__ */ new Map([
|
502
|
-
["href", { policyAction:
|
504
|
+
["href", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
503
505
|
])
|
504
506
|
],
|
505
507
|
[
|
@@ -508,7 +510,7 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
508
510
|
[
|
509
511
|
"href",
|
510
512
|
{
|
511
|
-
policyAction:
|
513
|
+
policyAction: s.KEEP_AND_SANITIZE_URL,
|
512
514
|
conditions: /* @__PURE__ */ new Map([[
|
513
515
|
"rel",
|
514
516
|
/* @__PURE__ */ new Set([
|
@@ -538,25 +540,25 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
538
540
|
[
|
539
541
|
"SOURCE",
|
540
542
|
/* @__PURE__ */ new Map([
|
541
|
-
["src", { policyAction:
|
543
|
+
["src", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
542
544
|
])
|
543
545
|
],
|
544
546
|
[
|
545
547
|
"IMG",
|
546
548
|
/* @__PURE__ */ new Map([
|
547
|
-
["src", { policyAction:
|
549
|
+
["src", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
548
550
|
])
|
549
551
|
],
|
550
552
|
[
|
551
553
|
"VIDEO",
|
552
554
|
/* @__PURE__ */ new Map([
|
553
|
-
["src", { policyAction:
|
555
|
+
["src", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
554
556
|
])
|
555
557
|
],
|
556
558
|
[
|
557
559
|
"AUDIO",
|
558
560
|
/* @__PURE__ */ new Map([
|
559
|
-
["src", { policyAction:
|
561
|
+
["src", { policyAction: s.KEEP_AND_SANITIZE_URL }]
|
560
562
|
])
|
561
563
|
]
|
562
564
|
]), /* @__PURE__ */ new Set([
|
@@ -663,7 +665,7 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
663
665
|
[
|
664
666
|
"dir",
|
665
667
|
{
|
666
|
-
policyAction:
|
668
|
+
policyAction: s.KEEP_AND_NORMALIZE,
|
667
669
|
conditions: /* @__PURE__ */ new Map([[
|
668
670
|
"dir",
|
669
671
|
/* @__PURE__ */ new Set([
|
@@ -677,7 +679,7 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
677
679
|
[
|
678
680
|
"async",
|
679
681
|
{
|
680
|
-
policyAction:
|
682
|
+
policyAction: s.KEEP_AND_NORMALIZE,
|
681
683
|
conditions: /* @__PURE__ */ new Map([[
|
682
684
|
"async",
|
683
685
|
/* @__PURE__ */ new Set([
|
@@ -686,11 +688,11 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
686
688
|
]])
|
687
689
|
}
|
688
690
|
],
|
689
|
-
["cite", { policyAction:
|
691
|
+
["cite", { policyAction: s.KEEP_AND_SANITIZE_URL }],
|
690
692
|
[
|
691
693
|
"loading",
|
692
694
|
{
|
693
|
-
policyAction:
|
695
|
+
policyAction: s.KEEP_AND_NORMALIZE,
|
694
696
|
conditions: /* @__PURE__ */ new Map([[
|
695
697
|
"loading",
|
696
698
|
/* @__PURE__ */ new Set([
|
@@ -700,11 +702,11 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
700
702
|
]])
|
701
703
|
}
|
702
704
|
],
|
703
|
-
["poster", { policyAction:
|
705
|
+
["poster", { policyAction: s.KEEP_AND_SANITIZE_URL }],
|
704
706
|
[
|
705
707
|
"target",
|
706
708
|
{
|
707
|
-
policyAction:
|
709
|
+
policyAction: s.KEEP_AND_NORMALIZE,
|
708
710
|
conditions: /* @__PURE__ */ new Map([[
|
709
711
|
"target",
|
710
712
|
/* @__PURE__ */ new Set([
|
@@ -719,30 +721,30 @@ const Wt = new N(/* @__PURE__ */ new Set([
|
|
719
721
|
* @license
|
720
722
|
* SPDX-License-Identifier: Apache-2.0
|
721
723
|
*/
|
722
|
-
class
|
723
|
-
constructor(
|
724
|
-
|
725
|
-
|
726
|
-
this.sanitizerTable =
|
724
|
+
class st {
|
725
|
+
constructor(i, t) {
|
726
|
+
u(this, "sanitizerTable");
|
727
|
+
u(this, "changes", []);
|
728
|
+
this.sanitizerTable = i, le(t);
|
727
729
|
}
|
728
|
-
sanitizeAssertUnchanged(
|
730
|
+
sanitizeAssertUnchanged(i) {
|
729
731
|
this.changes = [];
|
730
|
-
const
|
732
|
+
const t = this.sanitize(i);
|
731
733
|
if (this.changes.length !== 0) {
|
732
734
|
let n = "";
|
733
735
|
throw new Error(n);
|
734
736
|
}
|
735
|
-
return
|
737
|
+
return t;
|
736
738
|
}
|
737
|
-
sanitize(
|
738
|
-
const
|
739
|
-
|
740
|
-
let n = new XMLSerializer().serializeToString(
|
741
|
-
return n = n.slice(n.indexOf(">") + 1, n.lastIndexOf("</")),
|
739
|
+
sanitize(i) {
|
740
|
+
const t = document.createElement("span");
|
741
|
+
t.appendChild(this.sanitizeToFragment(i));
|
742
|
+
let n = new XMLSerializer().serializeToString(t);
|
743
|
+
return n = n.slice(n.indexOf(">") + 1, n.lastIndexOf("</")), F(n);
|
742
744
|
}
|
743
|
-
sanitizeToFragment(
|
744
|
-
const
|
745
|
-
|
745
|
+
sanitizeToFragment(i) {
|
746
|
+
const t = Me(i), n = document.createTreeWalker(
|
747
|
+
t,
|
746
748
|
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
|
747
749
|
// IE10 and IE11 won't accept a proper `NodeFilter` interface, and
|
748
750
|
// expect the filtering function to be passed directly. It seems that
|
@@ -757,9 +759,9 @@ class ht {
|
|
757
759
|
let a = o;
|
758
760
|
for (; r !== null; ) {
|
759
761
|
let c;
|
760
|
-
if (
|
762
|
+
if (mt(r))
|
761
763
|
c = this.sanitizeTextNode(r);
|
762
|
-
else if (
|
764
|
+
else if (ft(r))
|
763
765
|
c = this.sanitizeElementNode(r);
|
764
766
|
else
|
765
767
|
throw new Error("Node is not of type text or element");
|
@@ -771,122 +773,122 @@ class ht {
|
|
771
773
|
}
|
772
774
|
return o;
|
773
775
|
}
|
774
|
-
sanitizeTextNode(
|
775
|
-
return document.createTextNode(
|
776
|
+
sanitizeTextNode(i) {
|
777
|
+
return document.createTextNode(i.data);
|
776
778
|
}
|
777
|
-
sanitizeElementNode(
|
778
|
-
const
|
779
|
+
sanitizeElementNode(i) {
|
780
|
+
const t = ht(i), n = document.createElement(t), r = i.attributes;
|
779
781
|
for (const { name: o, value: a } of r) {
|
780
|
-
const c = this.sanitizerTable.getAttributePolicy(o,
|
782
|
+
const c = this.sanitizerTable.getAttributePolicy(o, t);
|
781
783
|
if (!this.satisfiesAllConditions(c.conditions, r)) {
|
782
784
|
this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);
|
783
785
|
continue;
|
784
786
|
}
|
785
787
|
switch (c.policyAction) {
|
786
|
-
case
|
788
|
+
case s.KEEP:
|
787
789
|
n.setAttribute(o, a);
|
788
790
|
break;
|
789
|
-
case
|
790
|
-
const
|
791
|
-
|
791
|
+
case s.KEEP_AND_SANITIZE_URL:
|
792
|
+
const l = Le(a);
|
793
|
+
l !== a && this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${l}"`), n.setAttribute(o, l);
|
792
794
|
break;
|
793
|
-
case
|
795
|
+
case s.KEEP_AND_NORMALIZE:
|
794
796
|
n.setAttribute(o, a.toLowerCase());
|
795
797
|
break;
|
796
|
-
case
|
798
|
+
case s.KEEP_AND_SANITIZE_STYLE:
|
797
799
|
n.setAttribute(o, a);
|
798
800
|
break;
|
799
|
-
case
|
801
|
+
case s.DROP:
|
800
802
|
this.recordChange(`Attribute: ${o} was dropped`);
|
801
803
|
break;
|
802
804
|
default:
|
803
|
-
|
805
|
+
je(c.policyAction, "Unhandled AttributePolicyAction case");
|
804
806
|
}
|
805
807
|
}
|
806
808
|
return n;
|
807
809
|
}
|
808
|
-
nodeFilter(
|
809
|
-
if (
|
810
|
+
nodeFilter(i) {
|
811
|
+
if (mt(i))
|
810
812
|
return NodeFilter.FILTER_ACCEPT;
|
811
|
-
if (!
|
813
|
+
if (!ft(i))
|
812
814
|
return NodeFilter.FILTER_REJECT;
|
813
|
-
const
|
814
|
-
return
|
815
|
+
const t = ht(i);
|
816
|
+
return t === null ? (this.recordChange(`Node name was null for node: ${i}`), NodeFilter.FILTER_REJECT) : this.sanitizerTable.isAllowedElement(t) ? NodeFilter.FILTER_ACCEPT : (this.recordChange(`Element: ${t} was dropped`), NodeFilter.FILTER_REJECT);
|
815
817
|
}
|
816
|
-
recordChange(
|
818
|
+
recordChange(i) {
|
817
819
|
this.changes.length === 0 && this.changes.push("");
|
818
820
|
}
|
819
|
-
satisfiesAllConditions(
|
821
|
+
satisfiesAllConditions(i, t) {
|
820
822
|
var n;
|
821
|
-
if (!
|
823
|
+
if (!i)
|
822
824
|
return !0;
|
823
|
-
for (const [r, o] of
|
824
|
-
const a = (n =
|
825
|
+
for (const [r, o] of i) {
|
826
|
+
const a = (n = t.getNamedItem(r)) == null ? void 0 : n.value;
|
825
827
|
if (a && !o.has(a))
|
826
828
|
return !1;
|
827
829
|
}
|
828
830
|
return !0;
|
829
831
|
}
|
830
832
|
}
|
831
|
-
const
|
832
|
-
function
|
833
|
-
return
|
833
|
+
const dt = /* @__PURE__ */ (() => new st(kt, A))();
|
834
|
+
function ke(e) {
|
835
|
+
return dt.sanitize(e);
|
834
836
|
}
|
835
|
-
function
|
836
|
-
return
|
837
|
+
function Be(e) {
|
838
|
+
return dt.sanitizeAssertUnchanged(e);
|
837
839
|
}
|
838
|
-
function
|
839
|
-
return
|
840
|
+
function Ge(e) {
|
841
|
+
return dt.sanitizeToFragment(e);
|
840
842
|
}
|
841
|
-
function
|
842
|
-
throw new Error(
|
843
|
+
function je(e, i = `unexpected value ${e}!`) {
|
844
|
+
throw new Error(i);
|
843
845
|
}
|
844
|
-
const
|
846
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
845
847
|
__proto__: null,
|
846
|
-
HtmlSanitizerImpl:
|
847
|
-
sanitizeHtml:
|
848
|
-
sanitizeHtmlAssertUnchanged:
|
849
|
-
sanitizeHtmlToFragment:
|
850
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
848
|
+
HtmlSanitizerImpl: st,
|
849
|
+
sanitizeHtml: ke,
|
850
|
+
sanitizeHtmlAssertUnchanged: Be,
|
851
|
+
sanitizeHtmlToFragment: Ge
|
852
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ m(Ke);
|
851
853
|
/**
|
852
854
|
* @license
|
853
855
|
* SPDX-License-Identifier: Apache-2.0
|
854
856
|
*/
|
855
|
-
class
|
857
|
+
class We {
|
856
858
|
constructor() {
|
857
|
-
|
859
|
+
u(this, "sanitizerTable");
|
858
860
|
// To denote if the builder has called build() and therefore should make no
|
859
861
|
// further changes to the sanitizer table.
|
860
|
-
|
861
|
-
this.sanitizerTable =
|
862
|
+
u(this, "calledBuild", !1);
|
863
|
+
this.sanitizerTable = kt;
|
862
864
|
}
|
863
865
|
/** Builder option to restrict allowed elements to a smaller subset. */
|
864
|
-
onlyAllowElements(
|
865
|
-
const
|
866
|
-
for (let r of
|
866
|
+
onlyAllowElements(i) {
|
867
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
868
|
+
for (let r of i) {
|
867
869
|
if (r = r.toUpperCase(), !this.sanitizerTable.isAllowedElement(r))
|
868
870
|
throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);
|
869
871
|
const o = this.sanitizerTable.elementPolicies.get(r);
|
870
|
-
o !== void 0 ? n.set(r, o) :
|
872
|
+
o !== void 0 ? n.set(r, o) : t.add(r);
|
871
873
|
}
|
872
|
-
return this.sanitizerTable = new
|
874
|
+
return this.sanitizerTable = new D(t, n, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies), this;
|
873
875
|
}
|
874
876
|
/**
|
875
877
|
* Builder option to restrict allowed attributes to a smaller subset.
|
876
878
|
*
|
877
879
|
* If the attribute isn't currently allowed then it won't be added.
|
878
880
|
*/
|
879
|
-
onlyAllowAttributes(
|
880
|
-
const
|
881
|
-
for (const o of
|
882
|
-
this.sanitizerTable.allowedGlobalAttributes.has(o) &&
|
881
|
+
onlyAllowAttributes(i) {
|
882
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
883
|
+
for (const o of i)
|
884
|
+
this.sanitizerTable.allowedGlobalAttributes.has(o) && t.add(o), this.sanitizerTable.globalAttributePolicies.has(o) && n.set(o, this.sanitizerTable.globalAttributePolicies.get(o));
|
883
885
|
for (const [o, a] of this.sanitizerTable.elementPolicies.entries()) {
|
884
886
|
const c = /* @__PURE__ */ new Map();
|
885
|
-
for (const [
|
886
|
-
|
887
|
+
for (const [l, h] of a.entries())
|
888
|
+
i.has(l) && c.set(l, h);
|
887
889
|
r.set(o, c);
|
888
890
|
}
|
889
|
-
return this.sanitizerTable = new
|
891
|
+
return this.sanitizerTable = new D(this.sanitizerTable.allowedElements, r, t, n), this;
|
890
892
|
}
|
891
893
|
/**
|
892
894
|
* Allows the set of data attributes passed.
|
@@ -896,14 +898,14 @@ class Xe {
|
|
896
898
|
* If called with onlyAllowElements or onlyAllowAttributes, those methods must
|
897
899
|
* be called first.
|
898
900
|
*/
|
899
|
-
allowDataAttributes(
|
900
|
-
const
|
901
|
-
for (const n of
|
901
|
+
allowDataAttributes(i) {
|
902
|
+
const t = new Set(this.sanitizerTable.allowedGlobalAttributes);
|
903
|
+
for (const n of i) {
|
902
904
|
if (n.indexOf("data-") !== 0)
|
903
905
|
throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);
|
904
|
-
|
906
|
+
t.add(n);
|
905
907
|
}
|
906
|
-
return this.sanitizerTable = new
|
908
|
+
return this.sanitizerTable = new D(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, t, this.sanitizerTable.globalAttributePolicies), this;
|
907
909
|
}
|
908
910
|
/**
|
909
911
|
* Preserves style attributes. Note that the sanitizer won't parse and
|
@@ -913,8 +915,8 @@ class Xe {
|
|
913
915
|
* properties or functions defined by the application.
|
914
916
|
*/
|
915
917
|
allowStyleAttributes() {
|
916
|
-
const
|
917
|
-
return
|
918
|
+
const i = new Map(this.sanitizerTable.globalAttributePolicies);
|
919
|
+
return i.set("style", { policyAction: s.KEEP_AND_SANITIZE_STYLE }), this.sanitizerTable = new D(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, i), this;
|
918
920
|
}
|
919
921
|
/**
|
920
922
|
* Preserves the class attribute on all elements. This means contents can
|
@@ -922,337 +924,286 @@ class Xe {
|
|
922
924
|
* legitimate UI elements, which can lead to phishing.
|
923
925
|
*/
|
924
926
|
allowClassAttributes() {
|
925
|
-
const
|
926
|
-
return
|
927
|
+
const i = new Map(this.sanitizerTable.globalAttributePolicies);
|
928
|
+
return i.set("class", { policyAction: s.KEEP }), this.sanitizerTable = new D(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, i), this;
|
927
929
|
}
|
928
930
|
/**
|
929
931
|
* Preserves id attributes. This carries moderate risk as it allows an
|
930
932
|
* element to override other elements with the same ID.
|
931
933
|
*/
|
932
934
|
allowIdAttributes() {
|
933
|
-
const
|
934
|
-
return
|
935
|
+
const i = new Map(this.sanitizerTable.globalAttributePolicies);
|
936
|
+
return i.set("id", { policyAction: s.KEEP }), this.sanitizerTable = new D(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, i), this;
|
935
937
|
}
|
936
938
|
build() {
|
937
939
|
if (this.calledBuild)
|
938
940
|
throw new Error("this sanitizer has already called build");
|
939
|
-
return this.calledBuild = !0, new
|
941
|
+
return this.calledBuild = !0, new st(this.sanitizerTable, A);
|
940
942
|
}
|
941
943
|
}
|
942
|
-
const
|
944
|
+
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
943
945
|
__proto__: null,
|
944
|
-
HtmlSanitizerBuilder:
|
945
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
946
|
+
HtmlSanitizerBuilder: We
|
947
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = /* @__PURE__ */ m(qe);
|
946
948
|
/**
|
947
949
|
* @license
|
948
950
|
* SPDX-License-Identifier: Apache-2.0
|
949
951
|
*/
|
950
|
-
function
|
951
|
-
if (
|
952
|
-
return
|
953
|
-
|
954
|
-
const
|
955
|
-
for (let n = 0; n <
|
956
|
-
|
957
|
-
return
|
958
|
-
}
|
959
|
-
function
|
960
|
-
let
|
961
|
-
if (/#/.test(
|
952
|
+
function Ye(e, ...i) {
|
953
|
+
if (i.length === 0)
|
954
|
+
return k(e[0]);
|
955
|
+
e[0].toLowerCase();
|
956
|
+
const t = [e[0]];
|
957
|
+
for (let n = 0; n < i.length; n++)
|
958
|
+
t.push(encodeURIComponent(i[n])), t.push(e[n + 1]);
|
959
|
+
return k(t.join(""));
|
960
|
+
}
|
961
|
+
function Ze(e, i) {
|
962
|
+
let t = tt(e).toString();
|
963
|
+
if (/#/.test(t)) {
|
962
964
|
let r = "";
|
963
965
|
throw new Error(r);
|
964
966
|
}
|
965
|
-
let n = /\?/.test(
|
966
|
-
return
|
967
|
+
let n = /\?/.test(t) ? "&" : "?";
|
968
|
+
return i.forEach((r, o) => {
|
967
969
|
const a = r instanceof Array ? r : [r];
|
968
970
|
for (let c = 0; c < a.length; c++) {
|
969
|
-
const
|
970
|
-
|
971
|
+
const l = a[c];
|
972
|
+
l != null && (t += n + encodeURIComponent(o) + "=" + encodeURIComponent(String(l)), n = "&");
|
971
973
|
}
|
972
|
-
}),
|
974
|
+
}), k(t);
|
973
975
|
}
|
974
|
-
const
|
975
|
-
function
|
976
|
-
const
|
977
|
-
return
|
976
|
+
const Ve = /[^#]*/;
|
977
|
+
function Je(e, i) {
|
978
|
+
const t = tt(e).toString();
|
979
|
+
return k(Ve.exec(t)[0] + "#" + i);
|
978
980
|
}
|
979
|
-
function
|
980
|
-
const
|
981
|
-
return
|
981
|
+
function Qe(e) {
|
982
|
+
const i = et(e).toString(), t = new Blob([i], { type: "text/javascript" });
|
983
|
+
return k(URL.createObjectURL(t));
|
982
984
|
}
|
983
|
-
const
|
985
|
+
const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
984
986
|
__proto__: null,
|
985
|
-
appendParams:
|
986
|
-
blobUrlFromScript:
|
987
|
-
replaceFragment:
|
988
|
-
trustedResourceUrl:
|
989
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
987
|
+
appendParams: Ze,
|
988
|
+
blobUrlFromScript: Qe,
|
989
|
+
replaceFragment: Je,
|
990
|
+
trustedResourceUrl: Ye
|
991
|
+
}, Symbol.toStringTag, { value: "Module" })), ei = /* @__PURE__ */ m(ti);
|
990
992
|
/**
|
991
993
|
* @license
|
992
994
|
* SPDX-License-Identifier: Apache-2.0
|
993
995
|
*/
|
994
|
-
function
|
995
|
-
return
|
996
|
+
function ii(e) {
|
997
|
+
return $(e[0]);
|
996
998
|
}
|
997
|
-
function
|
998
|
-
return
|
999
|
+
function ni(e) {
|
1000
|
+
return $(e.map(et).join(""));
|
999
1001
|
}
|
1000
|
-
function
|
1001
|
-
return
|
1002
|
+
function Bt(e) {
|
1003
|
+
return $(JSON.stringify(e).replace(/</g, "\\x3c"));
|
1002
1004
|
}
|
1003
|
-
function
|
1004
|
-
return (...
|
1005
|
-
const n =
|
1006
|
-
return
|
1005
|
+
function ri(e, ...i) {
|
1006
|
+
return (...t) => {
|
1007
|
+
const n = t.map((r) => Bt(r).toString());
|
1008
|
+
return $(`(${e.join("")})(${n.join(",")})`);
|
1007
1009
|
};
|
1008
1010
|
}
|
1009
|
-
const
|
1011
|
+
const oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1010
1012
|
__proto__: null,
|
1011
|
-
concatScripts:
|
1012
|
-
safeScript:
|
1013
|
-
safeScriptWithArgs:
|
1014
|
-
scriptFromJson:
|
1015
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1013
|
+
concatScripts: ni,
|
1014
|
+
safeScript: ii,
|
1015
|
+
safeScriptWithArgs: ri,
|
1016
|
+
scriptFromJson: Bt
|
1017
|
+
}, Symbol.toStringTag, { value: "Module" })), ai = /* @__PURE__ */ m(oi);
|
1016
1018
|
/**
|
1017
1019
|
* @license
|
1018
1020
|
* SPDX-License-Identifier: Apache-2.0
|
1019
1021
|
*/
|
1020
|
-
function
|
1021
|
-
const
|
1022
|
-
return
|
1022
|
+
function ci(e) {
|
1023
|
+
const i = e[0];
|
1024
|
+
return lt(i);
|
1023
1025
|
}
|
1024
|
-
function
|
1025
|
-
return
|
1026
|
+
function li(e) {
|
1027
|
+
return lt(e.map(Ht).join(""));
|
1026
1028
|
}
|
1027
|
-
const
|
1029
|
+
const si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1028
1030
|
__proto__: null,
|
1029
|
-
concatStyles:
|
1030
|
-
safeStyle:
|
1031
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1031
|
+
concatStyles: li,
|
1032
|
+
safeStyle: ci
|
1033
|
+
}, Symbol.toStringTag, { value: "Module" })), di = /* @__PURE__ */ m(si);
|
1032
1034
|
/**
|
1033
1035
|
* @license
|
1034
1036
|
* SPDX-License-Identifier: Apache-2.0
|
1035
1037
|
*/
|
1036
|
-
class
|
1038
|
+
class Gt {
|
1037
1039
|
constructor() {
|
1038
1040
|
// @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
|
1039
|
-
|
1041
|
+
u(this, "brand");
|
1040
1042
|
}
|
1041
1043
|
// To prevent structural typing.
|
1042
1044
|
}
|
1043
|
-
class
|
1044
|
-
constructor(
|
1045
|
+
class ut extends Gt {
|
1046
|
+
constructor(t, n) {
|
1045
1047
|
super();
|
1046
|
-
|
1047
|
-
this.privateDoNotAccessOrElseWrappedStyleSheet =
|
1048
|
+
u(this, "privateDoNotAccessOrElseWrappedStyleSheet");
|
1049
|
+
this.privateDoNotAccessOrElseWrappedStyleSheet = t;
|
1048
1050
|
}
|
1049
1051
|
toString() {
|
1050
1052
|
return this.privateDoNotAccessOrElseWrappedStyleSheet;
|
1051
1053
|
}
|
1052
1054
|
}
|
1053
|
-
function
|
1054
|
-
return new
|
1055
|
+
function pt(e) {
|
1056
|
+
return new ut(e, A);
|
1055
1057
|
}
|
1056
|
-
function
|
1057
|
-
return
|
1058
|
+
function ui(e) {
|
1059
|
+
return e instanceof ut;
|
1058
1060
|
}
|
1059
|
-
function
|
1060
|
-
if (
|
1061
|
-
return
|
1061
|
+
function jt(e) {
|
1062
|
+
if (e instanceof ut)
|
1063
|
+
return e.privateDoNotAccessOrElseWrappedStyleSheet;
|
1062
1064
|
{
|
1063
|
-
let
|
1064
|
-
throw new Error(
|
1065
|
+
let i = "";
|
1066
|
+
throw new Error(i);
|
1065
1067
|
}
|
1066
1068
|
}
|
1067
|
-
const
|
1069
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1068
1070
|
__proto__: null,
|
1069
|
-
SafeStyleSheet:
|
1070
|
-
createStyleSheet:
|
1071
|
-
isStyleSheet:
|
1072
|
-
unwrapStyleSheet:
|
1071
|
+
SafeStyleSheet: Gt,
|
1072
|
+
createStyleSheet: pt,
|
1073
|
+
isStyleSheet: ui,
|
1074
|
+
unwrapStyleSheet: jt
|
1073
1075
|
}, Symbol.toStringTag, { value: "Module" }));
|
1074
1076
|
/**
|
1075
1077
|
* @license
|
1076
1078
|
* SPDX-License-Identifier: Apache-2.0
|
1077
1079
|
*/
|
1078
|
-
function
|
1079
|
-
const
|
1080
|
-
return
|
1080
|
+
function hi(e) {
|
1081
|
+
const i = e[0];
|
1082
|
+
return pt(i);
|
1081
1083
|
}
|
1082
|
-
function
|
1083
|
-
return
|
1084
|
+
function mi(e) {
|
1085
|
+
return pt(e.map(jt).join(""));
|
1084
1086
|
}
|
1085
|
-
const
|
1087
|
+
const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1086
1088
|
__proto__: null,
|
1087
|
-
concatStyleSheets:
|
1088
|
-
safeStyleSheet:
|
1089
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1090
|
-
(function(
|
1089
|
+
concatStyleSheets: mi,
|
1090
|
+
safeStyleSheet: hi
|
1091
|
+
}, Symbol.toStringTag, { value: "Module" })), vi = /* @__PURE__ */ m(fi), gi = /* @__PURE__ */ m(se), _i = /* @__PURE__ */ m(ge), yi = /* @__PURE__ */ m(be), bi = /* @__PURE__ */ m(we), Ai = /* @__PURE__ */ m(ze), Ei = /* @__PURE__ */ m(pi);
|
1092
|
+
(function(e) {
|
1091
1093
|
/**
|
1092
1094
|
* @license
|
1093
1095
|
* SPDX-License-Identifier: Apache-2.0
|
1094
1096
|
*/
|
1095
|
-
Object.defineProperty(
|
1096
|
-
var
|
1097
|
-
Object.defineProperty(
|
1098
|
-
return
|
1097
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.unwrapStyleSheet = e.SafeStyleSheet = e.isStyleSheet = e.unwrapStyle = e.SafeStyle = e.isStyle = e.unwrapScript = e.SafeScript = e.isScript = e.EMPTY_SCRIPT = e.unwrapResourceUrl = e.TrustedResourceUrl = e.isResourceUrl = e.unwrapHtml = e.SafeHtml = e.isHtml = e.EMPTY_HTML = e.unwrapAttributePrefix = e.SafeAttributePrefix = e.safeStyleSheet = e.concatStyleSheets = e.safeStyle = e.concatStyles = e.scriptFromJson = e.safeScriptWithArgs = e.safeScript = e.concatScripts = e.trustedResourceUrl = e.replaceFragment = e.blobUrlFromScript = e.appendParams = e.HtmlSanitizerBuilder = e.sanitizeHtmlToFragment = e.sanitizeHtmlAssertUnchanged = e.sanitizeHtml = e.htmlEscape = e.createScriptSrc = e.createScript = e.concatHtmls = e.safeAttrPrefix = void 0;
|
1098
|
+
var i = pe;
|
1099
|
+
Object.defineProperty(e, "safeAttrPrefix", { enumerable: !0, get: function() {
|
1100
|
+
return i.safeAttrPrefix;
|
1099
1101
|
} });
|
1100
|
-
var
|
1101
|
-
Object.defineProperty(
|
1102
|
-
return
|
1103
|
-
} }), Object.defineProperty(
|
1104
|
-
return
|
1105
|
-
} }), Object.defineProperty(
|
1106
|
-
return
|
1107
|
-
} }), Object.defineProperty(
|
1108
|
-
return
|
1102
|
+
var t = Oe;
|
1103
|
+
Object.defineProperty(e, "concatHtmls", { enumerable: !0, get: function() {
|
1104
|
+
return t.concatHtmls;
|
1105
|
+
} }), Object.defineProperty(e, "createScript", { enumerable: !0, get: function() {
|
1106
|
+
return t.createScript;
|
1107
|
+
} }), Object.defineProperty(e, "createScriptSrc", { enumerable: !0, get: function() {
|
1108
|
+
return t.createScriptSrc;
|
1109
|
+
} }), Object.defineProperty(e, "htmlEscape", { enumerable: !0, get: function() {
|
1110
|
+
return t.htmlEscape;
|
1109
1111
|
} });
|
1110
|
-
var n =
|
1111
|
-
Object.defineProperty(
|
1112
|
+
var n = $e;
|
1113
|
+
Object.defineProperty(e, "sanitizeHtml", { enumerable: !0, get: function() {
|
1112
1114
|
return n.sanitizeHtml;
|
1113
|
-
} }), Object.defineProperty(
|
1115
|
+
} }), Object.defineProperty(e, "sanitizeHtmlAssertUnchanged", { enumerable: !0, get: function() {
|
1114
1116
|
return n.sanitizeHtmlAssertUnchanged;
|
1115
|
-
} }), Object.defineProperty(
|
1117
|
+
} }), Object.defineProperty(e, "sanitizeHtmlToFragment", { enumerable: !0, get: function() {
|
1116
1118
|
return n.sanitizeHtmlToFragment;
|
1117
1119
|
} });
|
1118
|
-
var r =
|
1119
|
-
Object.defineProperty(
|
1120
|
+
var r = Xe;
|
1121
|
+
Object.defineProperty(e, "HtmlSanitizerBuilder", { enumerable: !0, get: function() {
|
1120
1122
|
return r.HtmlSanitizerBuilder;
|
1121
1123
|
} });
|
1122
|
-
var o =
|
1123
|
-
Object.defineProperty(
|
1124
|
+
var o = ei;
|
1125
|
+
Object.defineProperty(e, "appendParams", { enumerable: !0, get: function() {
|
1124
1126
|
return o.appendParams;
|
1125
|
-
} }), Object.defineProperty(
|
1127
|
+
} }), Object.defineProperty(e, "blobUrlFromScript", { enumerable: !0, get: function() {
|
1126
1128
|
return o.blobUrlFromScript;
|
1127
|
-
} }), Object.defineProperty(
|
1129
|
+
} }), Object.defineProperty(e, "replaceFragment", { enumerable: !0, get: function() {
|
1128
1130
|
return o.replaceFragment;
|
1129
|
-
} }), Object.defineProperty(
|
1131
|
+
} }), Object.defineProperty(e, "trustedResourceUrl", { enumerable: !0, get: function() {
|
1130
1132
|
return o.trustedResourceUrl;
|
1131
1133
|
} });
|
1132
|
-
var a =
|
1133
|
-
Object.defineProperty(
|
1134
|
+
var a = ai;
|
1135
|
+
Object.defineProperty(e, "concatScripts", { enumerable: !0, get: function() {
|
1134
1136
|
return a.concatScripts;
|
1135
|
-
} }), Object.defineProperty(
|
1137
|
+
} }), Object.defineProperty(e, "safeScript", { enumerable: !0, get: function() {
|
1136
1138
|
return a.safeScript;
|
1137
|
-
} }), Object.defineProperty(
|
1139
|
+
} }), Object.defineProperty(e, "safeScriptWithArgs", { enumerable: !0, get: function() {
|
1138
1140
|
return a.safeScriptWithArgs;
|
1139
|
-
} }), Object.defineProperty(
|
1141
|
+
} }), Object.defineProperty(e, "scriptFromJson", { enumerable: !0, get: function() {
|
1140
1142
|
return a.scriptFromJson;
|
1141
1143
|
} });
|
1142
|
-
var c =
|
1143
|
-
Object.defineProperty(
|
1144
|
+
var c = di;
|
1145
|
+
Object.defineProperty(e, "concatStyles", { enumerable: !0, get: function() {
|
1144
1146
|
return c.concatStyles;
|
1145
|
-
} }), Object.defineProperty(
|
1147
|
+
} }), Object.defineProperty(e, "safeStyle", { enumerable: !0, get: function() {
|
1146
1148
|
return c.safeStyle;
|
1147
1149
|
} });
|
1148
|
-
var
|
1149
|
-
Object.defineProperty(
|
1150
|
-
return
|
1151
|
-
} }), Object.defineProperty(
|
1152
|
-
return
|
1150
|
+
var l = vi;
|
1151
|
+
Object.defineProperty(e, "concatStyleSheets", { enumerable: !0, get: function() {
|
1152
|
+
return l.concatStyleSheets;
|
1153
|
+
} }), Object.defineProperty(e, "safeStyleSheet", { enumerable: !0, get: function() {
|
1154
|
+
return l.safeStyleSheet;
|
1153
1155
|
} });
|
1154
|
-
var
|
1155
|
-
Object.defineProperty(
|
1156
|
-
return
|
1157
|
-
} }), Object.defineProperty(
|
1158
|
-
return
|
1156
|
+
var h = gi;
|
1157
|
+
Object.defineProperty(e, "SafeAttributePrefix", { enumerable: !0, get: function() {
|
1158
|
+
return h.SafeAttributePrefix;
|
1159
|
+
} }), Object.defineProperty(e, "unwrapAttributePrefix", { enumerable: !0, get: function() {
|
1160
|
+
return h.unwrapAttributePrefix;
|
1159
1161
|
} });
|
1160
|
-
var
|
1161
|
-
Object.defineProperty(
|
1162
|
-
return
|
1163
|
-
} }), Object.defineProperty(
|
1164
|
-
return
|
1165
|
-
} }), Object.defineProperty(
|
1166
|
-
return
|
1167
|
-
} }), Object.defineProperty(
|
1168
|
-
return
|
1162
|
+
var f = _i;
|
1163
|
+
Object.defineProperty(e, "EMPTY_HTML", { enumerable: !0, get: function() {
|
1164
|
+
return f.EMPTY_HTML;
|
1165
|
+
} }), Object.defineProperty(e, "isHtml", { enumerable: !0, get: function() {
|
1166
|
+
return f.isHtml;
|
1167
|
+
} }), Object.defineProperty(e, "SafeHtml", { enumerable: !0, get: function() {
|
1168
|
+
return f.SafeHtml;
|
1169
|
+
} }), Object.defineProperty(e, "unwrapHtml", { enumerable: !0, get: function() {
|
1170
|
+
return f.unwrapHtml;
|
1169
1171
|
} });
|
1170
|
-
var
|
1171
|
-
Object.defineProperty(
|
1172
|
-
return
|
1173
|
-
} }), Object.defineProperty(
|
1174
|
-
return
|
1175
|
-
} }), Object.defineProperty(
|
1176
|
-
return
|
1172
|
+
var S = yi;
|
1173
|
+
Object.defineProperty(e, "isResourceUrl", { enumerable: !0, get: function() {
|
1174
|
+
return S.isResourceUrl;
|
1175
|
+
} }), Object.defineProperty(e, "TrustedResourceUrl", { enumerable: !0, get: function() {
|
1176
|
+
return S.TrustedResourceUrl;
|
1177
|
+
} }), Object.defineProperty(e, "unwrapResourceUrl", { enumerable: !0, get: function() {
|
1178
|
+
return S.unwrapResourceUrl;
|
1177
1179
|
} });
|
1178
|
-
var
|
1179
|
-
Object.defineProperty(
|
1180
|
-
return
|
1181
|
-
} }), Object.defineProperty(
|
1182
|
-
return
|
1183
|
-
} }), Object.defineProperty(
|
1184
|
-
return
|
1185
|
-
} }), Object.defineProperty(
|
1186
|
-
return
|
1180
|
+
var R = bi;
|
1181
|
+
Object.defineProperty(e, "EMPTY_SCRIPT", { enumerable: !0, get: function() {
|
1182
|
+
return R.EMPTY_SCRIPT;
|
1183
|
+
} }), Object.defineProperty(e, "isScript", { enumerable: !0, get: function() {
|
1184
|
+
return R.isScript;
|
1185
|
+
} }), Object.defineProperty(e, "SafeScript", { enumerable: !0, get: function() {
|
1186
|
+
return R.SafeScript;
|
1187
|
+
} }), Object.defineProperty(e, "unwrapScript", { enumerable: !0, get: function() {
|
1188
|
+
return R.unwrapScript;
|
1187
1189
|
} });
|
1188
|
-
var
|
1189
|
-
Object.defineProperty(
|
1190
|
-
return
|
1191
|
-
} }), Object.defineProperty(
|
1192
|
-
return
|
1193
|
-
} }), Object.defineProperty(
|
1194
|
-
return
|
1190
|
+
var z = Ai;
|
1191
|
+
Object.defineProperty(e, "isStyle", { enumerable: !0, get: function() {
|
1192
|
+
return z.isStyle;
|
1193
|
+
} }), Object.defineProperty(e, "SafeStyle", { enumerable: !0, get: function() {
|
1194
|
+
return z.SafeStyle;
|
1195
|
+
} }), Object.defineProperty(e, "unwrapStyle", { enumerable: !0, get: function() {
|
1196
|
+
return z.unwrapStyle;
|
1195
1197
|
} });
|
1196
|
-
var
|
1197
|
-
Object.defineProperty(
|
1198
|
-
return
|
1199
|
-
} }), Object.defineProperty(
|
1200
|
-
return
|
1201
|
-
} }), Object.defineProperty(
|
1202
|
-
return
|
1198
|
+
var x = Ei;
|
1199
|
+
Object.defineProperty(e, "isStyleSheet", { enumerable: !0, get: function() {
|
1200
|
+
return x.isStyleSheet;
|
1201
|
+
} }), Object.defineProperty(e, "SafeStyleSheet", { enumerable: !0, get: function() {
|
1202
|
+
return x.SafeStyleSheet;
|
1203
|
+
} }), Object.defineProperty(e, "unwrapStyleSheet", { enumerable: !0, get: function() {
|
1204
|
+
return x.unwrapStyleSheet;
|
1203
1205
|
} });
|
1204
|
-
})(
|
1205
|
-
/**
|
1206
|
-
* @license
|
1207
|
-
* Copyright 2020 Google Inc.
|
1208
|
-
*
|
1209
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1210
|
-
* of this software and associated documentation files (the "Software"), to deal
|
1211
|
-
* in the Software without restriction, including without limitation the rights
|
1212
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1213
|
-
* copies of the Software, and to permit persons to whom the Software is
|
1214
|
-
* furnished to do so, subject to the following conditions:
|
1215
|
-
*
|
1216
|
-
* The above copyright notice and this permission notice shall be included in
|
1217
|
-
* all copies or substantial portions of the Software.
|
1218
|
-
*
|
1219
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1220
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1221
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1222
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1223
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1224
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1225
|
-
* THE SOFTWARE.
|
1226
|
-
*/
|
1227
|
-
var Ti = (
|
1228
|
-
/** @class */
|
1229
|
-
function() {
|
1230
|
-
function t() {
|
1231
|
-
this.rafIDs = /* @__PURE__ */ new Map();
|
1232
|
-
}
|
1233
|
-
return t.prototype.request = function(e, i) {
|
1234
|
-
var n = this;
|
1235
|
-
this.cancel(e);
|
1236
|
-
var r = requestAnimationFrame(function(o) {
|
1237
|
-
n.rafIDs.delete(e), i(o);
|
1238
|
-
});
|
1239
|
-
this.rafIDs.set(e, r);
|
1240
|
-
}, t.prototype.cancel = function(e) {
|
1241
|
-
var i = this.rafIDs.get(e);
|
1242
|
-
i && (cancelAnimationFrame(i), this.rafIDs.delete(e));
|
1243
|
-
}, t.prototype.cancelAll = function() {
|
1244
|
-
var e = this;
|
1245
|
-
this.rafIDs.forEach(function(i, n) {
|
1246
|
-
e.cancel(n);
|
1247
|
-
});
|
1248
|
-
}, t.prototype.getQueue = function() {
|
1249
|
-
var e = [];
|
1250
|
-
return this.rafIDs.forEach(function(i, n) {
|
1251
|
-
e.push(n);
|
1252
|
-
}), e;
|
1253
|
-
}, t;
|
1254
|
-
}()
|
1255
|
-
);
|
1206
|
+
})(T);
|
1256
1207
|
/**
|
1257
1208
|
* @license
|
1258
1209
|
* Copyright 2016 Google Inc.
|
@@ -1275,44 +1226,52 @@ var Ti = (
|
|
1275
1226
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1276
1227
|
* THE SOFTWARE.
|
1277
1228
|
*/
|
1278
|
-
|
1229
|
+
function Si(e) {
|
1230
|
+
return String(e).replace(/\-([a-z])/g, function(i, t) {
|
1231
|
+
return t.toUpperCase();
|
1232
|
+
});
|
1233
|
+
}
|
1234
|
+
var Kt = (
|
1279
1235
|
/** @class */
|
1280
1236
|
function() {
|
1281
|
-
function t
|
1282
|
-
|
1237
|
+
function e(i, t) {
|
1238
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
1239
|
+
n[r - 2] = arguments[r];
|
1240
|
+
this.root = i, this.initialize.apply(this, ee([], ie(n))), this.foundation = t === void 0 ? this.getDefaultFoundation() : t, this.foundation.init(), this.initialSyncWithDOM();
|
1283
1241
|
}
|
1284
|
-
return
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
|
-
}
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
}
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1242
|
+
return e.attachTo = function(i) {
|
1243
|
+
return new e(i, new Q({}));
|
1244
|
+
}, e.prototype.initialize = function() {
|
1245
|
+
}, e.prototype.getDefaultFoundation = function() {
|
1246
|
+
throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
|
1247
|
+
}, e.prototype.initialSyncWithDOM = function() {
|
1248
|
+
}, e.prototype.destroy = function() {
|
1249
|
+
this.foundation.destroy();
|
1250
|
+
}, e.prototype.listen = function(i, t, n) {
|
1251
|
+
this.root.addEventListener(i, t, n);
|
1252
|
+
}, e.prototype.unlisten = function(i, t, n) {
|
1253
|
+
this.root.removeEventListener(i, t, n);
|
1254
|
+
}, e.prototype.emit = function(i, t, n) {
|
1255
|
+
n === void 0 && (n = !1);
|
1256
|
+
var r;
|
1257
|
+
typeof CustomEvent == "function" ? r = new CustomEvent(i, {
|
1258
|
+
bubbles: n,
|
1259
|
+
detail: t
|
1260
|
+
}) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(i, n, !1, t)), this.root.dispatchEvent(r);
|
1261
|
+
}, e.prototype.safeSetAttribute = function(i, t, n) {
|
1262
|
+
if (t.toLowerCase() === "tabindex")
|
1263
|
+
i.tabIndex = Number(n);
|
1264
|
+
else if (t.indexOf("data-") === 0) {
|
1265
|
+
var r = Si(t.replace(/^data-/, ""));
|
1266
|
+
i.dataset[r] = n;
|
1267
|
+
} else
|
1268
|
+
Mt([T.safeAttrPrefix(vt || (vt = C(["aria-"], ["aria-"]))), T.safeAttrPrefix(gt || (gt = C(["role"], ["role"])))], i, t, n);
|
1269
|
+
}, e;
|
1311
1270
|
}()
|
1312
|
-
);
|
1271
|
+
), vt, gt;
|
1313
1272
|
/**
|
1314
1273
|
* @license
|
1315
|
-
* Copyright
|
1274
|
+
* Copyright 2018 Google Inc.
|
1316
1275
|
*
|
1317
1276
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1318
1277
|
* of this software and associated documentation files (the "Software"), to deal
|
@@ -1332,85 +1291,19 @@ var ot = (
|
|
1332
1291
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1333
1292
|
* THE SOFTWARE.
|
1334
1293
|
*/
|
1335
|
-
|
1336
|
-
|
1337
|
-
|
1338
|
-
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
ARROW_LEFT: "ArrowLeft",
|
1345
|
-
ARROW_UP: "ArrowUp",
|
1346
|
-
ARROW_RIGHT: "ArrowRight",
|
1347
|
-
ARROW_DOWN: "ArrowDown",
|
1348
|
-
DELETE: "Delete",
|
1349
|
-
ESCAPE: "Escape",
|
1350
|
-
TAB: "Tab"
|
1351
|
-
}, m = /* @__PURE__ */ new Set();
|
1352
|
-
m.add(l.BACKSPACE);
|
1353
|
-
m.add(l.ENTER);
|
1354
|
-
m.add(l.SPACEBAR);
|
1355
|
-
m.add(l.PAGE_UP);
|
1356
|
-
m.add(l.PAGE_DOWN);
|
1357
|
-
m.add(l.END);
|
1358
|
-
m.add(l.HOME);
|
1359
|
-
m.add(l.ARROW_LEFT);
|
1360
|
-
m.add(l.ARROW_UP);
|
1361
|
-
m.add(l.ARROW_RIGHT);
|
1362
|
-
m.add(l.ARROW_DOWN);
|
1363
|
-
m.add(l.DELETE);
|
1364
|
-
m.add(l.ESCAPE);
|
1365
|
-
m.add(l.TAB);
|
1366
|
-
var _ = {
|
1367
|
-
BACKSPACE: 8,
|
1368
|
-
ENTER: 13,
|
1369
|
-
SPACEBAR: 32,
|
1370
|
-
PAGE_UP: 33,
|
1371
|
-
PAGE_DOWN: 34,
|
1372
|
-
END: 35,
|
1373
|
-
HOME: 36,
|
1374
|
-
ARROW_LEFT: 37,
|
1375
|
-
ARROW_UP: 38,
|
1376
|
-
ARROW_RIGHT: 39,
|
1377
|
-
ARROW_DOWN: 40,
|
1378
|
-
DELETE: 46,
|
1379
|
-
ESCAPE: 27,
|
1380
|
-
TAB: 9
|
1381
|
-
}, f = /* @__PURE__ */ new Map();
|
1382
|
-
f.set(_.BACKSPACE, l.BACKSPACE);
|
1383
|
-
f.set(_.ENTER, l.ENTER);
|
1384
|
-
f.set(_.SPACEBAR, l.SPACEBAR);
|
1385
|
-
f.set(_.PAGE_UP, l.PAGE_UP);
|
1386
|
-
f.set(_.PAGE_DOWN, l.PAGE_DOWN);
|
1387
|
-
f.set(_.END, l.END);
|
1388
|
-
f.set(_.HOME, l.HOME);
|
1389
|
-
f.set(_.ARROW_LEFT, l.ARROW_LEFT);
|
1390
|
-
f.set(_.ARROW_UP, l.ARROW_UP);
|
1391
|
-
f.set(_.ARROW_RIGHT, l.ARROW_RIGHT);
|
1392
|
-
f.set(_.ARROW_DOWN, l.ARROW_DOWN);
|
1393
|
-
f.set(_.DELETE, l.DELETE);
|
1394
|
-
f.set(_.ESCAPE, l.ESCAPE);
|
1395
|
-
f.set(_.TAB, l.TAB);
|
1396
|
-
var T = /* @__PURE__ */ new Set();
|
1397
|
-
T.add(l.PAGE_UP);
|
1398
|
-
T.add(l.PAGE_DOWN);
|
1399
|
-
T.add(l.END);
|
1400
|
-
T.add(l.HOME);
|
1401
|
-
T.add(l.ARROW_LEFT);
|
1402
|
-
T.add(l.ARROW_UP);
|
1403
|
-
T.add(l.ARROW_RIGHT);
|
1404
|
-
T.add(l.ARROW_DOWN);
|
1405
|
-
function Xt(t) {
|
1406
|
-
var e = t.key;
|
1407
|
-
if (m.has(e))
|
1408
|
-
return e;
|
1409
|
-
var i = f.get(t.keyCode);
|
1410
|
-
return i || l.UNKNOWN;
|
1294
|
+
function wi(e, i) {
|
1295
|
+
if (e.closest)
|
1296
|
+
return e.closest(i);
|
1297
|
+
for (var t = e; t; ) {
|
1298
|
+
if ($t(t, i))
|
1299
|
+
return t;
|
1300
|
+
t = t.parentElement;
|
1301
|
+
}
|
1302
|
+
return null;
|
1411
1303
|
}
|
1412
|
-
function
|
1413
|
-
|
1304
|
+
function $t(e, i) {
|
1305
|
+
var t = e.matches || e.webkitMatchesSelector || e.msMatchesSelector;
|
1306
|
+
return t.call(e, i);
|
1414
1307
|
}
|
1415
1308
|
/**
|
1416
1309
|
* @license
|
@@ -1434,30 +1327,30 @@ function Ri(t) {
|
|
1434
1327
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1435
1328
|
* THE SOFTWARE.
|
1436
1329
|
*/
|
1437
|
-
var X;
|
1438
|
-
(function(t) {
|
1439
|
-
t.PRIMARY_ACTION = "mdc-evolution-chip__action--primary", t.TRAILING_ACTION = "mdc-evolution-chip__action--trailing", t.CHIP_ROOT = "mdc-evolution-chip";
|
1440
|
-
})(X || (X = {}));
|
1441
|
-
var E;
|
1442
|
-
(function(t) {
|
1443
|
-
t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.CLICK = 1] = "CLICK", t[t.BACKSPACE_KEY = 2] = "BACKSPACE_KEY", t[t.DELETE_KEY = 3] = "DELETE_KEY", t[t.SPACEBAR_KEY = 4] = "SPACEBAR_KEY", t[t.ENTER_KEY = 5] = "ENTER_KEY";
|
1444
|
-
})(E || (E = {}));
|
1445
|
-
var b;
|
1446
|
-
(function(t) {
|
1447
|
-
t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.PRIMARY = 1] = "PRIMARY", t[t.TRAILING = 2] = "TRAILING";
|
1448
|
-
})(b || (b = {}));
|
1449
1330
|
var K;
|
1450
|
-
(function(
|
1451
|
-
|
1331
|
+
(function(e) {
|
1332
|
+
e.PRIMARY_ACTION = "mdc-evolution-chip__action--primary", e.TRAILING_ACTION = "mdc-evolution-chip__action--trailing", e.CHIP_ROOT = "mdc-evolution-chip";
|
1452
1333
|
})(K || (K = {}));
|
1453
|
-
var
|
1454
|
-
(function(
|
1455
|
-
|
1456
|
-
})(
|
1457
|
-
var
|
1458
|
-
(function(
|
1459
|
-
|
1460
|
-
})(
|
1334
|
+
var y;
|
1335
|
+
(function(e) {
|
1336
|
+
e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.CLICK = 1] = "CLICK", e[e.BACKSPACE_KEY = 2] = "BACKSPACE_KEY", e[e.DELETE_KEY = 3] = "DELETE_KEY", e[e.SPACEBAR_KEY = 4] = "SPACEBAR_KEY", e[e.ENTER_KEY = 5] = "ENTER_KEY";
|
1337
|
+
})(y || (y = {}));
|
1338
|
+
var v;
|
1339
|
+
(function(e) {
|
1340
|
+
e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.PRIMARY = 1] = "PRIMARY", e[e.TRAILING = 2] = "TRAILING";
|
1341
|
+
})(v || (v = {}));
|
1342
|
+
var B;
|
1343
|
+
(function(e) {
|
1344
|
+
e.INTERACTION = "MDCChipAction:interaction", e.NAVIGATION = "MDCChipAction:navigation";
|
1345
|
+
})(B || (B = {}));
|
1346
|
+
var P;
|
1347
|
+
(function(e) {
|
1348
|
+
e[e.FOCUSABLE = 0] = "FOCUSABLE", e[e.FOCUSABLE_AND_FOCUSED = 1] = "FOCUSABLE_AND_FOCUSED", e[e.NOT_FOCUSABLE = 2] = "NOT_FOCUSABLE";
|
1349
|
+
})(P || (P = {}));
|
1350
|
+
var p;
|
1351
|
+
(function(e) {
|
1352
|
+
e.ARIA_DISABLED = "aria-disabled", e.ARIA_HIDDEN = "aria-hidden", e.ARIA_SELECTED = "aria-selected", e.DATA_DELETABLE = "data-mdc-deletable", e.DISABLED = "disabled", e.ROLE = "role", e.TAB_INDEX = "tabindex";
|
1353
|
+
})(p || (p = {}));
|
1461
1354
|
/**
|
1462
1355
|
* @license
|
1463
1356
|
* Copyright 2016 Google Inc.
|
@@ -1480,22 +1373,22 @@ var h;
|
|
1480
1373
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1481
1374
|
* THE SOFTWARE.
|
1482
1375
|
*/
|
1483
|
-
var
|
1484
|
-
(function(
|
1485
|
-
|
1486
|
-
})(
|
1487
|
-
var
|
1488
|
-
(function(
|
1489
|
-
|
1490
|
-
})(
|
1491
|
-
var
|
1492
|
-
(function(
|
1493
|
-
|
1494
|
-
})(
|
1495
|
-
var
|
1496
|
-
(function(
|
1497
|
-
|
1498
|
-
})(
|
1376
|
+
var d;
|
1377
|
+
(function(e) {
|
1378
|
+
e.SELECTING = "mdc-evolution-chip--selecting", e.DESELECTING = "mdc-evolution-chip--deselecting", e.SELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--selecting-with-primary-icon", e.DESELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--deselecting-with-primary-icon", e.DISABLED = "mdc-evolution-chip--disabled", e.ENTER = "mdc-evolution-chip--enter", e.EXIT = "mdc-evolution-chip--exit", e.SELECTED = "mdc-evolution-chip--selected", e.HIDDEN = "mdc-evolution-chip--hidden", e.WITH_PRIMARY_ICON = "mdc-evolution-chip--with-primary-icon";
|
1379
|
+
})(d || (d = {}));
|
1380
|
+
var H;
|
1381
|
+
(function(e) {
|
1382
|
+
e.INTERACTION = "MDCChip:interaction", e.NAVIGATION = "MDCChip:navigation", e.ANIMATION = "MDCChip:animation";
|
1383
|
+
})(H || (H = {}));
|
1384
|
+
var V;
|
1385
|
+
(function(e) {
|
1386
|
+
e.DATA_REMOVED_ANNOUNCEMENT = "data-mdc-removed-announcement", e.DATA_ADDED_ANNOUNCEMENT = "data-mdc-added-announcement";
|
1387
|
+
})(V || (V = {}));
|
1388
|
+
var w;
|
1389
|
+
(function(e) {
|
1390
|
+
e.ENTER = "mdc-evolution-chip-enter", e.EXIT = "mdc-evolution-chip-exit";
|
1391
|
+
})(w || (w = {}));
|
1499
1392
|
/**
|
1500
1393
|
* @license
|
1501
1394
|
* Copyright 2020 Google Inc.
|
@@ -1518,23 +1411,23 @@ var O;
|
|
1518
1411
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1519
1412
|
* THE SOFTWARE.
|
1520
1413
|
*/
|
1521
|
-
var
|
1522
|
-
(function(
|
1523
|
-
|
1524
|
-
})(
|
1525
|
-
var
|
1526
|
-
(function(
|
1527
|
-
|
1528
|
-
})(
|
1529
|
-
var
|
1414
|
+
var O;
|
1415
|
+
(function(e) {
|
1416
|
+
e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT";
|
1417
|
+
})(O || (O = {}));
|
1418
|
+
var g;
|
1419
|
+
(function(e) {
|
1420
|
+
e.SELECTION = "selection", e.EXIT = "exit";
|
1421
|
+
})(g || (g = {}));
|
1422
|
+
var Ti = (
|
1530
1423
|
/** @class */
|
1531
|
-
function(
|
1532
|
-
|
1533
|
-
function
|
1534
|
-
var n =
|
1535
|
-
return n.animFrame = new
|
1424
|
+
function(e) {
|
1425
|
+
N(i, e);
|
1426
|
+
function i(t) {
|
1427
|
+
var n = e.call(this, b(b({}, i.defaultAdapter), t)) || this;
|
1428
|
+
return n.animFrame = new ne(), n;
|
1536
1429
|
}
|
1537
|
-
return Object.defineProperty(
|
1430
|
+
return Object.defineProperty(i, "defaultAdapter", {
|
1538
1431
|
get: function() {
|
1539
1432
|
return {
|
1540
1433
|
addClass: function() {
|
@@ -1585,19 +1478,19 @@ var Ii = (
|
|
1585
1478
|
},
|
1586
1479
|
enumerable: !1,
|
1587
1480
|
configurable: !0
|
1588
|
-
}),
|
1481
|
+
}), i.prototype.destroy = function() {
|
1589
1482
|
this.animFrame.cancelAll();
|
1590
|
-
},
|
1483
|
+
}, i.prototype.getElementID = function() {
|
1591
1484
|
return this.adapter.getElementID();
|
1592
|
-
},
|
1485
|
+
}, i.prototype.setDisabled = function(t) {
|
1593
1486
|
var n, r, o = this.getActions();
|
1594
1487
|
try {
|
1595
|
-
for (var a =
|
1596
|
-
var
|
1597
|
-
this.adapter.setActionDisabled(
|
1488
|
+
for (var a = U(o), c = a.next(); !c.done; c = a.next()) {
|
1489
|
+
var l = c.value;
|
1490
|
+
this.adapter.setActionDisabled(l, t);
|
1598
1491
|
}
|
1599
|
-
} catch (
|
1600
|
-
n = { error:
|
1492
|
+
} catch (h) {
|
1493
|
+
n = { error: h };
|
1601
1494
|
} finally {
|
1602
1495
|
try {
|
1603
1496
|
c && !c.done && (r = a.return) && r.call(a);
|
@@ -1606,77 +1499,77 @@ var Ii = (
|
|
1606
1499
|
throw n.error;
|
1607
1500
|
}
|
1608
1501
|
}
|
1609
|
-
|
1610
|
-
},
|
1611
|
-
var
|
1502
|
+
t ? this.adapter.addClass(d.DISABLED) : this.adapter.removeClass(d.DISABLED);
|
1503
|
+
}, i.prototype.isDisabled = function() {
|
1504
|
+
var t, n, r = this.getActions();
|
1612
1505
|
try {
|
1613
|
-
for (var o =
|
1506
|
+
for (var o = U(r), a = o.next(); !a.done; a = o.next()) {
|
1614
1507
|
var c = a.value;
|
1615
1508
|
if (this.adapter.isActionDisabled(c))
|
1616
1509
|
return !0;
|
1617
1510
|
}
|
1618
|
-
} catch (
|
1619
|
-
|
1511
|
+
} catch (l) {
|
1512
|
+
t = { error: l };
|
1620
1513
|
} finally {
|
1621
1514
|
try {
|
1622
1515
|
a && !a.done && (n = o.return) && n.call(o);
|
1623
1516
|
} finally {
|
1624
|
-
if (
|
1625
|
-
throw
|
1517
|
+
if (t)
|
1518
|
+
throw t.error;
|
1626
1519
|
}
|
1627
1520
|
}
|
1628
1521
|
return !1;
|
1629
|
-
},
|
1522
|
+
}, i.prototype.getActions = function() {
|
1630
1523
|
return this.adapter.getActions();
|
1631
|
-
},
|
1632
|
-
return this.adapter.isActionFocusable(
|
1633
|
-
},
|
1634
|
-
return this.adapter.isActionSelectable(
|
1635
|
-
},
|
1636
|
-
return this.adapter.isActionSelected(
|
1637
|
-
},
|
1638
|
-
this.adapter.setActionFocus(
|
1639
|
-
},
|
1640
|
-
this.adapter.setActionSelected(
|
1641
|
-
},
|
1642
|
-
if (
|
1643
|
-
this.adapter.addClass(
|
1524
|
+
}, i.prototype.isActionFocusable = function(t) {
|
1525
|
+
return this.adapter.isActionFocusable(t);
|
1526
|
+
}, i.prototype.isActionSelectable = function(t) {
|
1527
|
+
return this.adapter.isActionSelectable(t);
|
1528
|
+
}, i.prototype.isActionSelected = function(t) {
|
1529
|
+
return this.adapter.isActionSelected(t);
|
1530
|
+
}, i.prototype.setActionFocus = function(t, n) {
|
1531
|
+
this.adapter.setActionFocus(t, n);
|
1532
|
+
}, i.prototype.setActionSelected = function(t, n) {
|
1533
|
+
this.adapter.setActionSelected(t, n), this.animateSelection(n);
|
1534
|
+
}, i.prototype.startAnimation = function(t) {
|
1535
|
+
if (t === w.ENTER) {
|
1536
|
+
this.adapter.addClass(d.ENTER);
|
1644
1537
|
return;
|
1645
1538
|
}
|
1646
|
-
if (
|
1647
|
-
this.adapter.addClass(
|
1539
|
+
if (t === w.EXIT) {
|
1540
|
+
this.adapter.addClass(d.EXIT);
|
1648
1541
|
return;
|
1649
1542
|
}
|
1650
|
-
},
|
1651
|
-
var n = this, r =
|
1652
|
-
if (r ===
|
1653
|
-
this.adapter.removeClass(
|
1543
|
+
}, i.prototype.handleAnimationEnd = function(t) {
|
1544
|
+
var n = this, r = t.animationName;
|
1545
|
+
if (r === w.ENTER) {
|
1546
|
+
this.adapter.removeClass(d.ENTER), this.adapter.emitEvent(H.ANIMATION, {
|
1654
1547
|
chipID: this.getElementID(),
|
1655
|
-
animation:
|
1548
|
+
animation: w.ENTER,
|
1656
1549
|
addedAnnouncement: this.getAddedAnnouncement(),
|
1657
1550
|
isComplete: !0
|
1658
1551
|
});
|
1659
1552
|
return;
|
1660
1553
|
}
|
1661
|
-
if (r ===
|
1662
|
-
this.adapter.removeClass(
|
1554
|
+
if (r === w.EXIT) {
|
1555
|
+
this.adapter.removeClass(d.EXIT), this.adapter.addClass(d.HIDDEN);
|
1663
1556
|
var o = this.adapter.getOffsetWidth();
|
1664
|
-
this.adapter.setStyleProperty("width", o + "px"), this.animFrame.request(
|
1665
|
-
n.animFrame.request(
|
1557
|
+
this.adapter.setStyleProperty("width", o + "px"), this.animFrame.request(g.EXIT, function() {
|
1558
|
+
n.animFrame.request(g.EXIT, function() {
|
1666
1559
|
n.adapter.setStyleProperty("width", "0");
|
1667
1560
|
});
|
1668
1561
|
});
|
1669
1562
|
}
|
1670
|
-
},
|
1671
|
-
this.adapter.hasClass(
|
1563
|
+
}, i.prototype.handleTransitionEnd = function() {
|
1564
|
+
this.adapter.hasClass(d.HIDDEN) && this.adapter.emitEvent(H.ANIMATION, {
|
1672
1565
|
chipID: this.getElementID(),
|
1673
|
-
animation:
|
1566
|
+
animation: w.EXIT,
|
1674
1567
|
removedAnnouncement: this.getRemovedAnnouncement(),
|
1675
1568
|
isComplete: !0
|
1676
1569
|
});
|
1677
|
-
},
|
1678
|
-
var n =
|
1679
|
-
this.adapter.emitEvent(
|
1570
|
+
}, i.prototype.handleActionInteraction = function(t) {
|
1571
|
+
var n = t.detail, r = n.source, o = n.actionID, a = this.adapter.isActionSelectable(r), c = this.adapter.isActionSelected(r);
|
1572
|
+
this.adapter.emitEvent(H.INTERACTION, {
|
1680
1573
|
chipID: this.getElementID(),
|
1681
1574
|
shouldRemove: this.shouldRemove(n),
|
1682
1575
|
actionID: o,
|
@@ -1684,175 +1577,74 @@ var Ii = (
|
|
1684
1577
|
isSelected: c,
|
1685
1578
|
source: r
|
1686
1579
|
});
|
1687
|
-
},
|
1688
|
-
var n =
|
1689
|
-
if (
|
1690
|
-
this.navigateActions({ from: r, to:
|
1580
|
+
}, i.prototype.handleActionNavigation = function(t) {
|
1581
|
+
var n = t.detail, r = n.source, o = n.key, a = this.adapter.isRTL(), c = this.adapter.isActionFocusable(v.TRAILING), l = this.adapter.isActionFocusable(v.PRIMARY), h = this.directionFromKey(o, a), f = r === v.PRIMARY && h === O.RIGHT && c, S = r === v.TRAILING && h === O.LEFT && l;
|
1582
|
+
if (f) {
|
1583
|
+
this.navigateActions({ from: r, to: v.TRAILING });
|
1691
1584
|
return;
|
1692
1585
|
}
|
1693
|
-
if (
|
1694
|
-
this.navigateActions({ from: r, to:
|
1586
|
+
if (S) {
|
1587
|
+
this.navigateActions({ from: r, to: v.PRIMARY });
|
1695
1588
|
return;
|
1696
1589
|
}
|
1697
|
-
this.adapter.emitEvent(
|
1590
|
+
this.adapter.emitEvent(H.NAVIGATION, {
|
1698
1591
|
chipID: this.getElementID(),
|
1699
1592
|
isRTL: a,
|
1700
1593
|
source: r,
|
1701
1594
|
key: o
|
1702
1595
|
});
|
1703
|
-
},
|
1704
|
-
var r =
|
1705
|
-
return !n && r || n && o ?
|
1706
|
-
},
|
1707
|
-
this.adapter.setActionFocus(
|
1708
|
-
},
|
1709
|
-
var n =
|
1710
|
-
return r ===
|
1711
|
-
},
|
1712
|
-
var
|
1713
|
-
return
|
1714
|
-
},
|
1715
|
-
var
|
1716
|
-
return
|
1717
|
-
},
|
1596
|
+
}, i.prototype.directionFromKey = function(t, n) {
|
1597
|
+
var r = t === _.ARROW_LEFT, o = t === _.ARROW_RIGHT;
|
1598
|
+
return !n && r || n && o ? O.LEFT : !n && o || n && r ? O.RIGHT : O.UNSPECIFIED;
|
1599
|
+
}, i.prototype.navigateActions = function(t) {
|
1600
|
+
this.adapter.setActionFocus(t.from, P.NOT_FOCUSABLE), this.adapter.setActionFocus(t.to, P.FOCUSABLE_AND_FOCUSED);
|
1601
|
+
}, i.prototype.shouldRemove = function(t) {
|
1602
|
+
var n = t.source, r = t.trigger;
|
1603
|
+
return r === y.BACKSPACE_KEY || r === y.DELETE_KEY ? !0 : n === v.TRAILING;
|
1604
|
+
}, i.prototype.getRemovedAnnouncement = function() {
|
1605
|
+
var t = this.adapter.getAttribute(V.DATA_REMOVED_ANNOUNCEMENT);
|
1606
|
+
return t || void 0;
|
1607
|
+
}, i.prototype.getAddedAnnouncement = function() {
|
1608
|
+
var t = this.adapter.getAttribute(V.DATA_ADDED_ANNOUNCEMENT);
|
1609
|
+
return t || void 0;
|
1610
|
+
}, i.prototype.animateSelection = function(t) {
|
1718
1611
|
var n = this;
|
1719
|
-
this.resetAnimationStyles(), this.animFrame.request(
|
1720
|
-
n.animFrame.request(
|
1721
|
-
n.updateSelectionStyles(
|
1612
|
+
this.resetAnimationStyles(), this.animFrame.request(g.SELECTION, function() {
|
1613
|
+
n.animFrame.request(g.SELECTION, function() {
|
1614
|
+
n.updateSelectionStyles(t);
|
1722
1615
|
});
|
1723
1616
|
});
|
1724
|
-
},
|
1725
|
-
this.adapter.removeClass(
|
1726
|
-
},
|
1727
|
-
var n = this, r = this.adapter.hasClass(
|
1728
|
-
if (r &&
|
1729
|
-
this.adapter.addClass(
|
1730
|
-
n.adapter.addClass(
|
1617
|
+
}, i.prototype.resetAnimationStyles = function() {
|
1618
|
+
this.adapter.removeClass(d.SELECTING), this.adapter.removeClass(d.DESELECTING), this.adapter.removeClass(d.SELECTING_WITH_PRIMARY_ICON), this.adapter.removeClass(d.DESELECTING_WITH_PRIMARY_ICON);
|
1619
|
+
}, i.prototype.updateSelectionStyles = function(t) {
|
1620
|
+
var n = this, r = this.adapter.hasClass(d.WITH_PRIMARY_ICON);
|
1621
|
+
if (r && t) {
|
1622
|
+
this.adapter.addClass(d.SELECTING_WITH_PRIMARY_ICON), this.animFrame.request(g.SELECTION, function() {
|
1623
|
+
n.adapter.addClass(d.SELECTED);
|
1731
1624
|
});
|
1732
1625
|
return;
|
1733
1626
|
}
|
1734
|
-
if (r && !
|
1735
|
-
this.adapter.addClass(
|
1736
|
-
n.adapter.removeClass(
|
1627
|
+
if (r && !t) {
|
1628
|
+
this.adapter.addClass(d.DESELECTING_WITH_PRIMARY_ICON), this.animFrame.request(g.SELECTION, function() {
|
1629
|
+
n.adapter.removeClass(d.SELECTED);
|
1737
1630
|
});
|
1738
1631
|
return;
|
1739
1632
|
}
|
1740
|
-
if (
|
1741
|
-
this.adapter.addClass(
|
1742
|
-
n.adapter.addClass(
|
1633
|
+
if (t) {
|
1634
|
+
this.adapter.addClass(d.SELECTING), this.animFrame.request(g.SELECTION, function() {
|
1635
|
+
n.adapter.addClass(d.SELECTED);
|
1743
1636
|
});
|
1744
1637
|
return;
|
1745
1638
|
}
|
1746
|
-
if (!
|
1747
|
-
this.adapter.addClass(
|
1748
|
-
n.adapter.removeClass(
|
1639
|
+
if (!t) {
|
1640
|
+
this.adapter.addClass(d.DESELECTING), this.animFrame.request(g.SELECTION, function() {
|
1641
|
+
n.adapter.removeClass(d.SELECTED);
|
1749
1642
|
});
|
1750
1643
|
return;
|
1751
1644
|
}
|
1752
|
-
},
|
1753
|
-
}(
|
1645
|
+
}, i;
|
1646
|
+
}(Q)
|
1754
1647
|
);
|
1755
|
-
/**
|
1756
|
-
* @license
|
1757
|
-
* Copyright 2016 Google Inc.
|
1758
|
-
*
|
1759
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1760
|
-
* of this software and associated documentation files (the "Software"), to deal
|
1761
|
-
* in the Software without restriction, including without limitation the rights
|
1762
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1763
|
-
* copies of the Software, and to permit persons to whom the Software is
|
1764
|
-
* furnished to do so, subject to the following conditions:
|
1765
|
-
*
|
1766
|
-
* The above copyright notice and this permission notice shall be included in
|
1767
|
-
* all copies or substantial portions of the Software.
|
1768
|
-
*
|
1769
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1770
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1771
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1772
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1773
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1774
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1775
|
-
* THE SOFTWARE.
|
1776
|
-
*/
|
1777
|
-
function Oi(t) {
|
1778
|
-
return String(t).replace(/\-([a-z])/g, function(e, i) {
|
1779
|
-
return i.toUpperCase();
|
1780
|
-
});
|
1781
|
-
}
|
1782
|
-
var Yt = (
|
1783
|
-
/** @class */
|
1784
|
-
function() {
|
1785
|
-
function t(e, i) {
|
1786
|
-
for (var n = [], r = 2; r < arguments.length; r++)
|
1787
|
-
n[r - 2] = arguments[r];
|
1788
|
-
this.root = e, this.initialize.apply(this, ae([], ce(n))), this.foundation = i === void 0 ? this.getDefaultFoundation() : i, this.foundation.init(), this.initialSyncWithDOM();
|
1789
|
-
}
|
1790
|
-
return t.attachTo = function(e) {
|
1791
|
-
return new t(e, new ot({}));
|
1792
|
-
}, t.prototype.initialize = function() {
|
1793
|
-
}, t.prototype.getDefaultFoundation = function() {
|
1794
|
-
throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
|
1795
|
-
}, t.prototype.initialSyncWithDOM = function() {
|
1796
|
-
}, t.prototype.destroy = function() {
|
1797
|
-
this.foundation.destroy();
|
1798
|
-
}, t.prototype.listen = function(e, i, n) {
|
1799
|
-
this.root.addEventListener(e, i, n);
|
1800
|
-
}, t.prototype.unlisten = function(e, i, n) {
|
1801
|
-
this.root.removeEventListener(e, i, n);
|
1802
|
-
}, t.prototype.emit = function(e, i, n) {
|
1803
|
-
n === void 0 && (n = !1);
|
1804
|
-
var r;
|
1805
|
-
typeof CustomEvent == "function" ? r = new CustomEvent(e, {
|
1806
|
-
bubbles: n,
|
1807
|
-
detail: i
|
1808
|
-
}) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(e, n, !1, i)), this.root.dispatchEvent(r);
|
1809
|
-
}, t.prototype.safeSetAttribute = function(e, i, n) {
|
1810
|
-
if (i.toLowerCase() === "tabindex")
|
1811
|
-
e.tabIndex = Number(n);
|
1812
|
-
else if (i.indexOf("data-") === 0) {
|
1813
|
-
var r = Oi(i.replace(/^data-/, ""));
|
1814
|
-
e.dataset[r] = n;
|
1815
|
-
} else
|
1816
|
-
jt([D.safeAttrPrefix(bt || (bt = L(["aria-"], ["aria-"]))), D.safeAttrPrefix(At || (At = L(["role"], ["role"])))], e, i, n);
|
1817
|
-
}, t;
|
1818
|
-
}()
|
1819
|
-
), bt, At;
|
1820
|
-
/**
|
1821
|
-
* @license
|
1822
|
-
* Copyright 2018 Google Inc.
|
1823
|
-
*
|
1824
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1825
|
-
* of this software and associated documentation files (the "Software"), to deal
|
1826
|
-
* in the Software without restriction, including without limitation the rights
|
1827
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1828
|
-
* copies of the Software, and to permit persons to whom the Software is
|
1829
|
-
* furnished to do so, subject to the following conditions:
|
1830
|
-
*
|
1831
|
-
* The above copyright notice and this permission notice shall be included in
|
1832
|
-
* all copies or substantial portions of the Software.
|
1833
|
-
*
|
1834
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1835
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1836
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1837
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1838
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1839
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1840
|
-
* THE SOFTWARE.
|
1841
|
-
*/
|
1842
|
-
function Di(t, e) {
|
1843
|
-
if (t.closest)
|
1844
|
-
return t.closest(e);
|
1845
|
-
for (var i = t; i; ) {
|
1846
|
-
if (Zt(i, e))
|
1847
|
-
return i;
|
1848
|
-
i = i.parentElement;
|
1849
|
-
}
|
1850
|
-
return null;
|
1851
|
-
}
|
1852
|
-
function Zt(t, e) {
|
1853
|
-
var i = t.matches || t.webkitMatchesSelector || t.msMatchesSelector;
|
1854
|
-
return i.call(t, e);
|
1855
|
-
}
|
1856
1648
|
/**
|
1857
1649
|
* @license
|
1858
1650
|
* Copyright 2019 Google Inc.
|
@@ -1875,26 +1667,26 @@ function Zt(t, e) {
|
|
1875
1667
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1876
1668
|
* THE SOFTWARE.
|
1877
1669
|
*/
|
1878
|
-
function
|
1879
|
-
return
|
1670
|
+
function X(e) {
|
1671
|
+
return e === void 0 && (e = window), Ii(e) ? { passive: !0 } : !1;
|
1880
1672
|
}
|
1881
|
-
function
|
1882
|
-
|
1883
|
-
var
|
1673
|
+
function Ii(e) {
|
1674
|
+
e === void 0 && (e = window);
|
1675
|
+
var i = !1;
|
1884
1676
|
try {
|
1885
|
-
var
|
1677
|
+
var t = {
|
1886
1678
|
// This function will be called when the browser
|
1887
1679
|
// attempts to access the passive property.
|
1888
1680
|
get passive() {
|
1889
|
-
return
|
1681
|
+
return i = !0, !1;
|
1890
1682
|
}
|
1891
1683
|
}, n = function() {
|
1892
1684
|
};
|
1893
|
-
|
1685
|
+
e.document.addEventListener("test", n, t), e.document.removeEventListener("test", n, t);
|
1894
1686
|
} catch {
|
1895
|
-
|
1687
|
+
i = !1;
|
1896
1688
|
}
|
1897
|
-
return
|
1689
|
+
return i;
|
1898
1690
|
}
|
1899
1691
|
/**
|
1900
1692
|
* @license
|
@@ -1918,7 +1710,7 @@ function Pi(t) {
|
|
1918
1710
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1919
1711
|
* THE SOFTWARE.
|
1920
1712
|
*/
|
1921
|
-
var
|
1713
|
+
var Ri = {
|
1922
1714
|
// Ripple is a special case where the "root" component is really a "mixin" of
|
1923
1715
|
// sorts,
|
1924
1716
|
// given that it's an 'upgrade' to an existing component. That being said it
|
@@ -1929,14 +1721,14 @@ var Ci = {
|
|
1929
1721
|
FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation",
|
1930
1722
|
ROOT: "mdc-ripple-upgraded",
|
1931
1723
|
UNBOUNDED: "mdc-ripple-upgraded--unbounded"
|
1932
|
-
},
|
1724
|
+
}, Di = {
|
1933
1725
|
VAR_FG_SCALE: "--mdc-ripple-fg-scale",
|
1934
1726
|
VAR_FG_SIZE: "--mdc-ripple-fg-size",
|
1935
1727
|
VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end",
|
1936
1728
|
VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start",
|
1937
1729
|
VAR_LEFT: "--mdc-ripple-left",
|
1938
1730
|
VAR_TOP: "--mdc-ripple-top"
|
1939
|
-
},
|
1731
|
+
}, _t = {
|
1940
1732
|
DEACTIVATION_TIMEOUT_MS: 225,
|
1941
1733
|
// animation duration)
|
1942
1734
|
FG_DEACTIVATION_MS: 150,
|
@@ -1945,30 +1737,53 @@ var Ci = {
|
|
1945
1737
|
PADDING: 10,
|
1946
1738
|
TAP_DELAY_MS: 300
|
1947
1739
|
// Delay between touch and simulated mouse events on touch devices
|
1948
|
-
}
|
1949
|
-
|
1950
|
-
|
1951
|
-
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1740
|
+
};
|
1741
|
+
/**
|
1742
|
+
* @license
|
1743
|
+
* Copyright 2016 Google Inc.
|
1744
|
+
*
|
1745
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
1746
|
+
* of this software and associated documentation files (the "Software"), to deal
|
1747
|
+
* in the Software without restriction, including without limitation the rights
|
1748
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1749
|
+
* copies of the Software, and to permit persons to whom the Software is
|
1750
|
+
* furnished to do so, subject to the following conditions:
|
1751
|
+
*
|
1752
|
+
* The above copyright notice and this permission notice shall be included in
|
1753
|
+
* all copies or substantial portions of the Software.
|
1754
|
+
*
|
1755
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1756
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1757
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1758
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1759
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1760
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1761
|
+
* THE SOFTWARE.
|
1762
|
+
*/
|
1763
|
+
var Y;
|
1764
|
+
function Ci(e, i) {
|
1765
|
+
i === void 0 && (i = !1);
|
1766
|
+
var t = e.CSS, n = Y;
|
1767
|
+
if (typeof Y == "boolean" && !i)
|
1768
|
+
return Y;
|
1769
|
+
var r = t && typeof t.supports == "function";
|
1955
1770
|
if (!r)
|
1956
1771
|
return !1;
|
1957
|
-
var o =
|
1958
|
-
return n = o || a,
|
1772
|
+
var o = t.supports("--css-vars", "yes"), a = t.supports("(--css-vars: yes)") && t.supports("color", "#00000000");
|
1773
|
+
return n = o || a, i || (Y = n), n;
|
1959
1774
|
}
|
1960
|
-
function
|
1961
|
-
if (!
|
1775
|
+
function Oi(e, i, t) {
|
1776
|
+
if (!e)
|
1962
1777
|
return { x: 0, y: 0 };
|
1963
|
-
var n =
|
1964
|
-
if (
|
1965
|
-
var
|
1966
|
-
c =
|
1778
|
+
var n = i.x, r = i.y, o = n + t.left, a = r + t.top, c, l;
|
1779
|
+
if (e.type === "touchstart") {
|
1780
|
+
var h = e;
|
1781
|
+
c = h.changedTouches[0].pageX - o, l = h.changedTouches[0].pageY - a;
|
1967
1782
|
} else {
|
1968
|
-
var
|
1969
|
-
c =
|
1783
|
+
var f = e;
|
1784
|
+
c = f.pageX - o, l = f.pageY - a;
|
1970
1785
|
}
|
1971
|
-
return { x: c, y:
|
1786
|
+
return { x: c, y: l };
|
1972
1787
|
}
|
1973
1788
|
/**
|
1974
1789
|
* @license
|
@@ -1992,22 +1807,22 @@ function Fi(t, e, i) {
|
|
1992
1807
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1993
1808
|
* THE SOFTWARE.
|
1994
1809
|
*/
|
1995
|
-
var
|
1810
|
+
var yt = [
|
1996
1811
|
"touchstart",
|
1997
1812
|
"pointerdown",
|
1998
1813
|
"mousedown",
|
1999
1814
|
"keydown"
|
2000
|
-
],
|
1815
|
+
], bt = [
|
2001
1816
|
"touchend",
|
2002
1817
|
"pointerup",
|
2003
1818
|
"mouseup",
|
2004
1819
|
"contextmenu"
|
2005
|
-
],
|
1820
|
+
], Z = [], Wt = (
|
2006
1821
|
/** @class */
|
2007
|
-
function(
|
2008
|
-
|
2009
|
-
function
|
2010
|
-
var n =
|
1822
|
+
function(e) {
|
1823
|
+
N(i, e);
|
1824
|
+
function i(t) {
|
1825
|
+
var n = e.call(this, b(b({}, i.defaultAdapter), t)) || this;
|
2011
1826
|
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() {
|
2012
1827
|
n.activationAnimationHasEnded = !0, n.runDeactivationUXLogicIfReady();
|
2013
1828
|
}, n.activateHandler = function(r) {
|
@@ -2022,25 +1837,25 @@ var St = [
|
|
2022
1837
|
n.layout();
|
2023
1838
|
}, n;
|
2024
1839
|
}
|
2025
|
-
return Object.defineProperty(
|
1840
|
+
return Object.defineProperty(i, "cssClasses", {
|
2026
1841
|
get: function() {
|
2027
|
-
return
|
1842
|
+
return Ri;
|
2028
1843
|
},
|
2029
1844
|
enumerable: !1,
|
2030
1845
|
configurable: !0
|
2031
|
-
}), Object.defineProperty(
|
1846
|
+
}), Object.defineProperty(i, "strings", {
|
2032
1847
|
get: function() {
|
2033
|
-
return
|
1848
|
+
return Di;
|
2034
1849
|
},
|
2035
1850
|
enumerable: !1,
|
2036
1851
|
configurable: !0
|
2037
|
-
}), Object.defineProperty(
|
1852
|
+
}), Object.defineProperty(i, "numbers", {
|
2038
1853
|
get: function() {
|
2039
|
-
return
|
1854
|
+
return _t;
|
2040
1855
|
},
|
2041
1856
|
enumerable: !1,
|
2042
1857
|
configurable: !0
|
2043
|
-
}), Object.defineProperty(
|
1858
|
+
}), Object.defineProperty(i, "defaultAdapter", {
|
2044
1859
|
get: function() {
|
2045
1860
|
return {
|
2046
1861
|
addClass: function() {
|
@@ -2086,49 +1901,49 @@ var St = [
|
|
2086
1901
|
},
|
2087
1902
|
enumerable: !1,
|
2088
1903
|
configurable: !0
|
2089
|
-
}),
|
2090
|
-
var
|
1904
|
+
}), i.prototype.init = function() {
|
1905
|
+
var t = this, n = this.supportsPressRipple();
|
2091
1906
|
if (this.registerRootHandlers(n), n) {
|
2092
|
-
var r =
|
1907
|
+
var r = i.cssClasses, o = r.ROOT, a = r.UNBOUNDED;
|
2093
1908
|
requestAnimationFrame(function() {
|
2094
|
-
|
1909
|
+
t.adapter.addClass(o), t.adapter.isUnbounded() && (t.adapter.addClass(a), t.layoutInternal());
|
2095
1910
|
});
|
2096
1911
|
}
|
2097
|
-
},
|
2098
|
-
var
|
1912
|
+
}, i.prototype.destroy = function() {
|
1913
|
+
var t = this;
|
2099
1914
|
if (this.supportsPressRipple()) {
|
2100
|
-
this.activationTimer && (clearTimeout(this.activationTimer), this.activationTimer = 0, this.adapter.removeClass(
|
2101
|
-
var n =
|
1915
|
+
this.activationTimer && (clearTimeout(this.activationTimer), this.activationTimer = 0, this.adapter.removeClass(i.cssClasses.FG_ACTIVATION)), this.fgDeactivationRemovalTimer && (clearTimeout(this.fgDeactivationRemovalTimer), this.fgDeactivationRemovalTimer = 0, this.adapter.removeClass(i.cssClasses.FG_DEACTIVATION));
|
1916
|
+
var n = i.cssClasses, r = n.ROOT, o = n.UNBOUNDED;
|
2102
1917
|
requestAnimationFrame(function() {
|
2103
|
-
|
1918
|
+
t.adapter.removeClass(r), t.adapter.removeClass(o), t.removeCssVars();
|
2104
1919
|
});
|
2105
1920
|
}
|
2106
1921
|
this.deregisterRootHandlers(), this.deregisterDeactivationHandlers();
|
2107
|
-
},
|
2108
|
-
this.activateImpl(
|
2109
|
-
},
|
1922
|
+
}, i.prototype.activate = function(t) {
|
1923
|
+
this.activateImpl(t);
|
1924
|
+
}, i.prototype.deactivate = function() {
|
2110
1925
|
this.deactivateImpl();
|
2111
|
-
},
|
2112
|
-
var
|
1926
|
+
}, i.prototype.layout = function() {
|
1927
|
+
var t = this;
|
2113
1928
|
this.layoutFrame && cancelAnimationFrame(this.layoutFrame), this.layoutFrame = requestAnimationFrame(function() {
|
2114
|
-
|
1929
|
+
t.layoutInternal(), t.layoutFrame = 0;
|
2115
1930
|
});
|
2116
|
-
},
|
2117
|
-
var n =
|
2118
|
-
|
2119
|
-
},
|
2120
|
-
var
|
1931
|
+
}, i.prototype.setUnbounded = function(t) {
|
1932
|
+
var n = i.cssClasses.UNBOUNDED;
|
1933
|
+
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
1934
|
+
}, i.prototype.handleFocus = function() {
|
1935
|
+
var t = this;
|
2121
1936
|
requestAnimationFrame(function() {
|
2122
|
-
|
1937
|
+
t.adapter.addClass(i.cssClasses.BG_FOCUSED);
|
2123
1938
|
});
|
2124
|
-
},
|
2125
|
-
var
|
1939
|
+
}, i.prototype.handleBlur = function() {
|
1940
|
+
var t = this;
|
2126
1941
|
requestAnimationFrame(function() {
|
2127
|
-
|
1942
|
+
t.adapter.removeClass(i.cssClasses.BG_FOCUSED);
|
2128
1943
|
});
|
2129
|
-
},
|
1944
|
+
}, i.prototype.supportsPressRipple = function() {
|
2130
1945
|
return this.adapter.browserSupportsCssVars();
|
2131
|
-
},
|
1946
|
+
}, i.prototype.defaultActivationState = function() {
|
2132
1947
|
return {
|
2133
1948
|
activationEvent: void 0,
|
2134
1949
|
hasDeactivationUXRun: !1,
|
@@ -2137,16 +1952,16 @@ var St = [
|
|
2137
1952
|
wasActivatedByPointer: !1,
|
2138
1953
|
wasElementMadeActive: !1
|
2139
1954
|
};
|
2140
|
-
},
|
1955
|
+
}, i.prototype.registerRootHandlers = function(t) {
|
2141
1956
|
var n, r;
|
2142
|
-
if (
|
1957
|
+
if (t) {
|
2143
1958
|
try {
|
2144
|
-
for (var o =
|
1959
|
+
for (var o = U(yt), a = o.next(); !a.done; a = o.next()) {
|
2145
1960
|
var c = a.value;
|
2146
1961
|
this.adapter.registerInteractionHandler(c, this.activateHandler);
|
2147
1962
|
}
|
2148
|
-
} catch (
|
2149
|
-
n = { error:
|
1963
|
+
} catch (l) {
|
1964
|
+
n = { error: l };
|
2150
1965
|
} finally {
|
2151
1966
|
try {
|
2152
1967
|
a && !a.done && (r = o.return) && r.call(o);
|
@@ -2158,18 +1973,18 @@ var St = [
|
|
2158
1973
|
this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler);
|
2159
1974
|
}
|
2160
1975
|
this.adapter.registerInteractionHandler("focus", this.focusHandler), this.adapter.registerInteractionHandler("blur", this.blurHandler);
|
2161
|
-
},
|
1976
|
+
}, i.prototype.registerDeactivationHandlers = function(t) {
|
2162
1977
|
var n, r;
|
2163
|
-
if (
|
1978
|
+
if (t.type === "keydown")
|
2164
1979
|
this.adapter.registerInteractionHandler("keyup", this.deactivateHandler);
|
2165
1980
|
else
|
2166
1981
|
try {
|
2167
|
-
for (var o =
|
1982
|
+
for (var o = U(bt), a = o.next(); !a.done; a = o.next()) {
|
2168
1983
|
var c = a.value;
|
2169
1984
|
this.adapter.registerDocumentInteractionHandler(c, this.deactivateHandler);
|
2170
1985
|
}
|
2171
|
-
} catch (
|
2172
|
-
n = { error:
|
1986
|
+
} catch (l) {
|
1987
|
+
n = { error: l };
|
2173
1988
|
} finally {
|
2174
1989
|
try {
|
2175
1990
|
a && !a.done && (r = o.return) && r.call(o);
|
@@ -2178,84 +1993,84 @@ var St = [
|
|
2178
1993
|
throw n.error;
|
2179
1994
|
}
|
2180
1995
|
}
|
2181
|
-
},
|
2182
|
-
var
|
1996
|
+
}, i.prototype.deregisterRootHandlers = function() {
|
1997
|
+
var t, n;
|
2183
1998
|
try {
|
2184
|
-
for (var r =
|
1999
|
+
for (var r = U(yt), o = r.next(); !o.done; o = r.next()) {
|
2185
2000
|
var a = o.value;
|
2186
2001
|
this.adapter.deregisterInteractionHandler(a, this.activateHandler);
|
2187
2002
|
}
|
2188
2003
|
} catch (c) {
|
2189
|
-
|
2004
|
+
t = { error: c };
|
2190
2005
|
} finally {
|
2191
2006
|
try {
|
2192
2007
|
o && !o.done && (n = r.return) && n.call(r);
|
2193
2008
|
} finally {
|
2194
|
-
if (
|
2195
|
-
throw
|
2009
|
+
if (t)
|
2010
|
+
throw t.error;
|
2196
2011
|
}
|
2197
2012
|
}
|
2198
2013
|
this.adapter.deregisterInteractionHandler("focus", this.focusHandler), this.adapter.deregisterInteractionHandler("blur", this.blurHandler), this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler);
|
2199
|
-
},
|
2200
|
-
var
|
2014
|
+
}, i.prototype.deregisterDeactivationHandlers = function() {
|
2015
|
+
var t, n;
|
2201
2016
|
this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler);
|
2202
2017
|
try {
|
2203
|
-
for (var r =
|
2018
|
+
for (var r = U(bt), o = r.next(); !o.done; o = r.next()) {
|
2204
2019
|
var a = o.value;
|
2205
2020
|
this.adapter.deregisterDocumentInteractionHandler(a, this.deactivateHandler);
|
2206
2021
|
}
|
2207
2022
|
} catch (c) {
|
2208
|
-
|
2023
|
+
t = { error: c };
|
2209
2024
|
} finally {
|
2210
2025
|
try {
|
2211
2026
|
o && !o.done && (n = r.return) && n.call(r);
|
2212
2027
|
} finally {
|
2213
|
-
if (
|
2214
|
-
throw
|
2028
|
+
if (t)
|
2029
|
+
throw t.error;
|
2215
2030
|
}
|
2216
2031
|
}
|
2217
|
-
},
|
2218
|
-
var
|
2032
|
+
}, i.prototype.removeCssVars = function() {
|
2033
|
+
var t = this, n = i.strings, r = Object.keys(n);
|
2219
2034
|
r.forEach(function(o) {
|
2220
|
-
o.indexOf("VAR_") === 0 &&
|
2035
|
+
o.indexOf("VAR_") === 0 && t.adapter.updateCssVariable(n[o], null);
|
2221
2036
|
});
|
2222
|
-
},
|
2037
|
+
}, i.prototype.activateImpl = function(t) {
|
2223
2038
|
var n = this;
|
2224
2039
|
if (!this.adapter.isSurfaceDisabled()) {
|
2225
2040
|
var r = this.activationState;
|
2226
2041
|
if (!r.isActivated) {
|
2227
|
-
var o = this.previousActivationEvent, a = o &&
|
2042
|
+
var o = this.previousActivationEvent, a = o && t !== void 0 && o.type !== t.type;
|
2228
2043
|
if (!a) {
|
2229
|
-
r.isActivated = !0, r.isProgrammatic =
|
2230
|
-
var c =
|
2231
|
-
return n.adapter.containsEventTarget(
|
2044
|
+
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");
|
2045
|
+
var c = t !== void 0 && Z.length > 0 && Z.some(function(l) {
|
2046
|
+
return n.adapter.containsEventTarget(l);
|
2232
2047
|
});
|
2233
2048
|
if (c) {
|
2234
2049
|
this.resetActivationState();
|
2235
2050
|
return;
|
2236
2051
|
}
|
2237
|
-
|
2238
|
-
|
2052
|
+
t !== void 0 && (Z.push(t.target), this.registerDeactivationHandlers(t)), r.wasElementMadeActive = this.checkElementMadeActive(t), r.wasElementMadeActive && this.animateActivation(), requestAnimationFrame(function() {
|
2053
|
+
Z = [], !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());
|
2239
2054
|
});
|
2240
2055
|
}
|
2241
2056
|
}
|
2242
2057
|
}
|
2243
|
-
},
|
2244
|
-
return
|
2245
|
-
},
|
2246
|
-
var
|
2058
|
+
}, i.prototype.checkElementMadeActive = function(t) {
|
2059
|
+
return t !== void 0 && t.type === "keydown" ? this.adapter.isSurfaceActive() : !0;
|
2060
|
+
}, i.prototype.animateActivation = function() {
|
2061
|
+
var t = this, n = i.strings, r = n.VAR_FG_TRANSLATE_START, o = n.VAR_FG_TRANSLATE_END, a = i.cssClasses, c = a.FG_DEACTIVATION, l = a.FG_ACTIVATION, h = i.numbers.DEACTIVATION_TIMEOUT_MS;
|
2247
2062
|
this.layoutInternal();
|
2248
|
-
var
|
2063
|
+
var f = "", S = "";
|
2249
2064
|
if (!this.adapter.isUnbounded()) {
|
2250
|
-
var
|
2251
|
-
|
2065
|
+
var R = this.getFgTranslationCoordinates(), z = R.startPoint, x = R.endPoint;
|
2066
|
+
f = z.x + "px, " + z.y + "px", S = x.x + "px, " + x.y + "px";
|
2252
2067
|
}
|
2253
|
-
this.adapter.updateCssVariable(r,
|
2254
|
-
|
2255
|
-
},
|
2256
|
-
},
|
2257
|
-
var
|
2258
|
-
r ? o =
|
2068
|
+
this.adapter.updateCssVariable(r, f), this.adapter.updateCssVariable(o, S), clearTimeout(this.activationTimer), clearTimeout(this.fgDeactivationRemovalTimer), this.rmBoundedActivationClasses(), this.adapter.removeClass(c), this.adapter.computeBoundingRect(), this.adapter.addClass(l), this.activationTimer = setTimeout(function() {
|
2069
|
+
t.activationTimerCallback();
|
2070
|
+
}, h);
|
2071
|
+
}, i.prototype.getFgTranslationCoordinates = function() {
|
2072
|
+
var t = this.activationState, n = t.activationEvent, r = t.wasActivatedByPointer, o;
|
2073
|
+
r ? o = Oi(n, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : o = {
|
2259
2074
|
x: this.frame.width / 2,
|
2260
2075
|
y: this.frame.height / 2
|
2261
2076
|
}, o = {
|
@@ -2267,50 +2082,50 @@ var St = [
|
|
2267
2082
|
y: this.frame.height / 2 - this.initialSize / 2
|
2268
2083
|
};
|
2269
2084
|
return { startPoint: o, endPoint: a };
|
2270
|
-
},
|
2271
|
-
var
|
2085
|
+
}, i.prototype.runDeactivationUXLogicIfReady = function() {
|
2086
|
+
var t = this, n = i.cssClasses.FG_DEACTIVATION, r = this.activationState, o = r.hasDeactivationUXRun, a = r.isActivated, c = o || !a;
|
2272
2087
|
c && this.activationAnimationHasEnded && (this.rmBoundedActivationClasses(), this.adapter.addClass(n), this.fgDeactivationRemovalTimer = setTimeout(function() {
|
2273
|
-
|
2274
|
-
},
|
2275
|
-
},
|
2276
|
-
var
|
2277
|
-
this.adapter.removeClass(
|
2278
|
-
},
|
2279
|
-
var
|
2088
|
+
t.adapter.removeClass(n);
|
2089
|
+
}, _t.FG_DEACTIVATION_MS));
|
2090
|
+
}, i.prototype.rmBoundedActivationClasses = function() {
|
2091
|
+
var t = i.cssClasses.FG_ACTIVATION;
|
2092
|
+
this.adapter.removeClass(t), this.activationAnimationHasEnded = !1, this.adapter.computeBoundingRect();
|
2093
|
+
}, i.prototype.resetActivationState = function() {
|
2094
|
+
var t = this;
|
2280
2095
|
this.previousActivationEvent = this.activationState.activationEvent, this.activationState = this.defaultActivationState(), setTimeout(function() {
|
2281
|
-
return
|
2282
|
-
},
|
2283
|
-
},
|
2284
|
-
var
|
2096
|
+
return t.previousActivationEvent = void 0;
|
2097
|
+
}, i.numbers.TAP_DELAY_MS);
|
2098
|
+
}, i.prototype.deactivateImpl = function() {
|
2099
|
+
var t = this, n = this.activationState;
|
2285
2100
|
if (n.isActivated) {
|
2286
|
-
var r =
|
2101
|
+
var r = b({}, n);
|
2287
2102
|
n.isProgrammatic ? (requestAnimationFrame(function() {
|
2288
|
-
|
2103
|
+
t.animateDeactivation(r);
|
2289
2104
|
}), this.resetActivationState()) : (this.deregisterDeactivationHandlers(), requestAnimationFrame(function() {
|
2290
|
-
|
2105
|
+
t.activationState.hasDeactivationUXRun = !0, t.animateDeactivation(r), t.resetActivationState();
|
2291
2106
|
}));
|
2292
2107
|
}
|
2293
|
-
},
|
2294
|
-
var n =
|
2108
|
+
}, i.prototype.animateDeactivation = function(t) {
|
2109
|
+
var n = t.wasActivatedByPointer, r = t.wasElementMadeActive;
|
2295
2110
|
(n || r) && this.runDeactivationUXLogicIfReady();
|
2296
|
-
},
|
2297
|
-
var
|
2111
|
+
}, i.prototype.layoutInternal = function() {
|
2112
|
+
var t = this;
|
2298
2113
|
this.frame = this.adapter.computeBoundingRect();
|
2299
2114
|
var n = Math.max(this.frame.height, this.frame.width), r = function() {
|
2300
|
-
var a = Math.sqrt(Math.pow(
|
2301
|
-
return a +
|
2115
|
+
var a = Math.sqrt(Math.pow(t.frame.width, 2) + Math.pow(t.frame.height, 2));
|
2116
|
+
return a + i.numbers.PADDING;
|
2302
2117
|
};
|
2303
2118
|
this.maxRadius = this.adapter.isUnbounded() ? n : r();
|
2304
|
-
var o = Math.floor(n *
|
2119
|
+
var o = Math.floor(n * i.numbers.INITIAL_ORIGIN_SCALE);
|
2305
2120
|
this.adapter.isUnbounded() && o % 2 !== 0 ? this.initialSize = o - 1 : this.initialSize = o, this.fgScale = "" + this.maxRadius / this.initialSize, this.updateLayoutCssVars();
|
2306
|
-
},
|
2307
|
-
var
|
2121
|
+
}, i.prototype.updateLayoutCssVars = function() {
|
2122
|
+
var t = i.strings, n = t.VAR_FG_SIZE, r = t.VAR_LEFT, o = t.VAR_TOP, a = t.VAR_FG_SCALE;
|
2308
2123
|
this.adapter.updateCssVariable(n, this.initialSize + "px"), this.adapter.updateCssVariable(a, this.fgScale), this.adapter.isUnbounded() && (this.unboundedCoords = {
|
2309
2124
|
left: Math.round(this.frame.width / 2 - this.initialSize / 2),
|
2310
2125
|
top: Math.round(this.frame.height / 2 - this.initialSize / 2)
|
2311
2126
|
}, this.adapter.updateCssVariable(r, this.unboundedCoords.left + "px"), this.adapter.updateCssVariable(o, this.unboundedCoords.top + "px"));
|
2312
|
-
},
|
2313
|
-
}(
|
2127
|
+
}, i;
|
2128
|
+
}(Q)
|
2314
2129
|
);
|
2315
2130
|
/**
|
2316
2131
|
* @license
|
@@ -2334,39 +2149,39 @@ var St = [
|
|
2334
2149
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2335
2150
|
* THE SOFTWARE.
|
2336
2151
|
*/
|
2337
|
-
var
|
2152
|
+
var At = (
|
2338
2153
|
/** @class */
|
2339
|
-
function(
|
2340
|
-
|
2341
|
-
function
|
2342
|
-
var
|
2343
|
-
return
|
2154
|
+
function(e) {
|
2155
|
+
N(i, e);
|
2156
|
+
function i() {
|
2157
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
2158
|
+
return t.disabled = !1, t;
|
2344
2159
|
}
|
2345
|
-
return
|
2160
|
+
return i.attachTo = function(t, n) {
|
2346
2161
|
n === void 0 && (n = {
|
2347
2162
|
isUnbounded: void 0
|
2348
2163
|
});
|
2349
|
-
var r = new
|
2164
|
+
var r = new i(t);
|
2350
2165
|
return n.isUnbounded !== void 0 && (r.unbounded = n.isUnbounded), r;
|
2351
|
-
},
|
2166
|
+
}, i.createAdapter = function(t) {
|
2352
2167
|
return {
|
2353
2168
|
addClass: function(n) {
|
2354
|
-
|
2169
|
+
t.root.classList.add(n);
|
2355
2170
|
},
|
2356
2171
|
browserSupportsCssVars: function() {
|
2357
|
-
return
|
2172
|
+
return Ci(window);
|
2358
2173
|
},
|
2359
2174
|
computeBoundingRect: function() {
|
2360
|
-
return
|
2175
|
+
return t.root.getBoundingClientRect();
|
2361
2176
|
},
|
2362
2177
|
containsEventTarget: function(n) {
|
2363
|
-
return
|
2178
|
+
return t.root.contains(n);
|
2364
2179
|
},
|
2365
2180
|
deregisterDocumentInteractionHandler: function(n, r) {
|
2366
|
-
document.documentElement.removeEventListener(n, r,
|
2181
|
+
document.documentElement.removeEventListener(n, r, X());
|
2367
2182
|
},
|
2368
2183
|
deregisterInteractionHandler: function(n, r) {
|
2369
|
-
|
2184
|
+
t.root.removeEventListener(n, r, X());
|
2370
2185
|
},
|
2371
2186
|
deregisterResizeHandler: function(n) {
|
2372
2187
|
window.removeEventListener("resize", n);
|
@@ -2375,54 +2190,54 @@ var Tt = (
|
|
2375
2190
|
return { x: window.pageXOffset, y: window.pageYOffset };
|
2376
2191
|
},
|
2377
2192
|
isSurfaceActive: function() {
|
2378
|
-
return
|
2193
|
+
return $t(t.root, ":active");
|
2379
2194
|
},
|
2380
2195
|
isSurfaceDisabled: function() {
|
2381
|
-
return !!
|
2196
|
+
return !!t.disabled;
|
2382
2197
|
},
|
2383
2198
|
isUnbounded: function() {
|
2384
|
-
return !!
|
2199
|
+
return !!t.unbounded;
|
2385
2200
|
},
|
2386
2201
|
registerDocumentInteractionHandler: function(n, r) {
|
2387
|
-
document.documentElement.addEventListener(n, r,
|
2202
|
+
document.documentElement.addEventListener(n, r, X());
|
2388
2203
|
},
|
2389
2204
|
registerInteractionHandler: function(n, r) {
|
2390
|
-
|
2205
|
+
t.root.addEventListener(n, r, X());
|
2391
2206
|
},
|
2392
2207
|
registerResizeHandler: function(n) {
|
2393
2208
|
window.addEventListener("resize", n);
|
2394
2209
|
},
|
2395
2210
|
removeClass: function(n) {
|
2396
|
-
|
2211
|
+
t.root.classList.remove(n);
|
2397
2212
|
},
|
2398
2213
|
updateCssVariable: function(n, r) {
|
2399
|
-
|
2214
|
+
t.root.style.setProperty(n, r);
|
2400
2215
|
}
|
2401
2216
|
};
|
2402
|
-
}, Object.defineProperty(
|
2217
|
+
}, Object.defineProperty(i.prototype, "unbounded", {
|
2403
2218
|
get: function() {
|
2404
2219
|
return !!this.isUnbounded;
|
2405
2220
|
},
|
2406
|
-
set: function(
|
2407
|
-
this.isUnbounded = !!
|
2221
|
+
set: function(t) {
|
2222
|
+
this.isUnbounded = !!t, this.setUnbounded();
|
2408
2223
|
},
|
2409
2224
|
enumerable: !1,
|
2410
2225
|
configurable: !0
|
2411
|
-
}),
|
2226
|
+
}), i.prototype.activate = function() {
|
2412
2227
|
this.foundation.activate();
|
2413
|
-
},
|
2228
|
+
}, i.prototype.deactivate = function() {
|
2414
2229
|
this.foundation.deactivate();
|
2415
|
-
},
|
2230
|
+
}, i.prototype.layout = function() {
|
2416
2231
|
this.foundation.layout();
|
2417
|
-
},
|
2418
|
-
return new
|
2419
|
-
},
|
2420
|
-
var
|
2421
|
-
this.isUnbounded = "mdcRippleIsUnbounded" in
|
2422
|
-
},
|
2232
|
+
}, i.prototype.getDefaultFoundation = function() {
|
2233
|
+
return new Wt(i.createAdapter(this));
|
2234
|
+
}, i.prototype.initialSyncWithDOM = function() {
|
2235
|
+
var t = this.root;
|
2236
|
+
this.isUnbounded = "mdcRippleIsUnbounded" in t.dataset;
|
2237
|
+
}, i.prototype.setUnbounded = function() {
|
2423
2238
|
this.foundation.setUnbounded(!!this.isUnbounded);
|
2424
|
-
},
|
2425
|
-
}(
|
2239
|
+
}, i;
|
2240
|
+
}(Kt)
|
2426
2241
|
);
|
2427
2242
|
/**
|
2428
2243
|
* @license
|
@@ -2446,18 +2261,18 @@ var Tt = (
|
|
2446
2261
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2447
2262
|
* THE SOFTWARE.
|
2448
2263
|
*/
|
2449
|
-
function
|
2450
|
-
var
|
2451
|
-
return Number.isNaN(
|
2452
|
-
width:
|
2453
|
-
height:
|
2454
|
-
top:
|
2455
|
-
right:
|
2456
|
-
bottom:
|
2457
|
-
left:
|
2264
|
+
function Pi(e, i) {
|
2265
|
+
var t = Number(i.replace("px", ""));
|
2266
|
+
return Number.isNaN(t) ? e : {
|
2267
|
+
width: e.width + t,
|
2268
|
+
height: e.height,
|
2269
|
+
top: e.top,
|
2270
|
+
right: e.right,
|
2271
|
+
bottom: e.bottom,
|
2272
|
+
left: e.left
|
2458
2273
|
};
|
2459
2274
|
}
|
2460
|
-
var
|
2275
|
+
var Ni = "--mdc-chip-graphic-selected-width";
|
2461
2276
|
/**
|
2462
2277
|
* @license
|
2463
2278
|
* Copyright 2020 Google Inc.
|
@@ -2480,19 +2295,19 @@ var Ui = "--mdc-chip-graphic-selected-width";
|
|
2480
2295
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2481
2296
|
* THE SOFTWARE.
|
2482
2297
|
*/
|
2483
|
-
var
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2488
|
-
var
|
2298
|
+
var W = /* @__PURE__ */ new Map();
|
2299
|
+
W.set(_.SPACEBAR, y.SPACEBAR_KEY);
|
2300
|
+
W.set(_.ENTER, y.ENTER_KEY);
|
2301
|
+
W.set(_.DELETE, y.DELETE_KEY);
|
2302
|
+
W.set(_.BACKSPACE, y.BACKSPACE_KEY);
|
2303
|
+
var qt = (
|
2489
2304
|
/** @class */
|
2490
|
-
function(
|
2491
|
-
|
2492
|
-
function
|
2493
|
-
return
|
2305
|
+
function(e) {
|
2306
|
+
N(i, e);
|
2307
|
+
function i(t) {
|
2308
|
+
return e.call(this, b(b({}, i.defaultAdapter), t)) || this;
|
2494
2309
|
}
|
2495
|
-
return Object.defineProperty(
|
2310
|
+
return Object.defineProperty(i, "defaultAdapter", {
|
2496
2311
|
get: function() {
|
2497
2312
|
return {
|
2498
2313
|
emitEvent: function() {
|
@@ -2513,67 +2328,67 @@ var Jt = (
|
|
2513
2328
|
},
|
2514
2329
|
enumerable: !1,
|
2515
2330
|
configurable: !0
|
2516
|
-
}),
|
2517
|
-
this.isDisabled() || this.emitInteraction(
|
2518
|
-
},
|
2519
|
-
var n =
|
2331
|
+
}), i.prototype.handleClick = function() {
|
2332
|
+
this.isDisabled() || this.emitInteraction(y.CLICK);
|
2333
|
+
}, i.prototype.handleKeydown = function(t) {
|
2334
|
+
var n = re(t);
|
2520
2335
|
if (this.shouldNotifyInteractionFromKey(n)) {
|
2521
|
-
|
2336
|
+
t.preventDefault(), this.emitInteraction(this.getTriggerFromKey(n));
|
2522
2337
|
return;
|
2523
2338
|
}
|
2524
|
-
if (
|
2525
|
-
|
2339
|
+
if (oe(t)) {
|
2340
|
+
t.preventDefault(), this.emitNavigation(n);
|
2526
2341
|
return;
|
2527
2342
|
}
|
2528
2343
|
return !0;
|
2529
|
-
},
|
2344
|
+
}, i.prototype.setDisabled = function(t) {
|
2530
2345
|
if (this.isSelectable()) {
|
2531
|
-
this.adapter.setAttribute(
|
2346
|
+
this.adapter.setAttribute(p.ARIA_DISABLED, "" + t);
|
2532
2347
|
return;
|
2533
2348
|
}
|
2534
|
-
|
2535
|
-
},
|
2536
|
-
return this.adapter.getAttribute(
|
2537
|
-
},
|
2349
|
+
t ? this.adapter.setAttribute(p.DISABLED, "true") : this.adapter.removeAttribute(p.DISABLED);
|
2350
|
+
}, i.prototype.isDisabled = function() {
|
2351
|
+
return this.adapter.getAttribute(p.ARIA_DISABLED) === "true" || this.adapter.getAttribute(p.DISABLED) !== null;
|
2352
|
+
}, i.prototype.setFocus = function(t) {
|
2538
2353
|
if (this.isFocusable()) {
|
2539
|
-
if (
|
2540
|
-
this.adapter.setAttribute(
|
2354
|
+
if (t === P.FOCUSABLE_AND_FOCUSED) {
|
2355
|
+
this.adapter.setAttribute(p.TAB_INDEX, "0"), this.adapter.focus();
|
2541
2356
|
return;
|
2542
2357
|
}
|
2543
|
-
if (
|
2544
|
-
this.adapter.setAttribute(
|
2358
|
+
if (t === P.FOCUSABLE) {
|
2359
|
+
this.adapter.setAttribute(p.TAB_INDEX, "0");
|
2545
2360
|
return;
|
2546
2361
|
}
|
2547
|
-
if (
|
2548
|
-
this.adapter.setAttribute(
|
2362
|
+
if (t === P.NOT_FOCUSABLE) {
|
2363
|
+
this.adapter.setAttribute(p.TAB_INDEX, "-1");
|
2549
2364
|
return;
|
2550
2365
|
}
|
2551
2366
|
}
|
2552
|
-
},
|
2553
|
-
return !(this.isDisabled() || this.adapter.getAttribute(
|
2554
|
-
},
|
2555
|
-
this.isSelectable() && this.adapter.setAttribute(
|
2556
|
-
},
|
2557
|
-
return this.adapter.getAttribute(
|
2558
|
-
},
|
2559
|
-
this.adapter.emitEvent(
|
2367
|
+
}, i.prototype.isFocusable = function() {
|
2368
|
+
return !(this.isDisabled() || this.adapter.getAttribute(p.ARIA_HIDDEN) === "true");
|
2369
|
+
}, i.prototype.setSelected = function(t) {
|
2370
|
+
this.isSelectable() && this.adapter.setAttribute(p.ARIA_SELECTED, "" + t);
|
2371
|
+
}, i.prototype.isSelected = function() {
|
2372
|
+
return this.adapter.getAttribute(p.ARIA_SELECTED) === "true";
|
2373
|
+
}, i.prototype.emitInteraction = function(t) {
|
2374
|
+
this.adapter.emitEvent(B.INTERACTION, {
|
2560
2375
|
actionID: this.adapter.getElementID(),
|
2561
2376
|
source: this.actionType(),
|
2562
|
-
trigger:
|
2377
|
+
trigger: t
|
2563
2378
|
});
|
2564
|
-
},
|
2565
|
-
this.adapter.emitEvent(
|
2379
|
+
}, i.prototype.emitNavigation = function(t) {
|
2380
|
+
this.adapter.emitEvent(B.NAVIGATION, {
|
2566
2381
|
source: this.actionType(),
|
2567
|
-
key:
|
2382
|
+
key: t
|
2568
2383
|
});
|
2569
|
-
},
|
2570
|
-
var n =
|
2384
|
+
}, i.prototype.shouldNotifyInteractionFromKey = function(t) {
|
2385
|
+
var n = t === _.ENTER || t === _.SPACEBAR, r = t === _.BACKSPACE || t === _.DELETE;
|
2571
2386
|
return !!(n || r && this.shouldEmitInteractionOnRemoveKey());
|
2572
|
-
},
|
2573
|
-
var n =
|
2574
|
-
return n ||
|
2575
|
-
},
|
2576
|
-
}(
|
2387
|
+
}, i.prototype.getTriggerFromKey = function(t) {
|
2388
|
+
var n = W.get(t);
|
2389
|
+
return n || y.UNSPECIFIED;
|
2390
|
+
}, i;
|
2391
|
+
}(Q)
|
2577
2392
|
);
|
2578
2393
|
/**
|
2579
2394
|
* @license
|
@@ -2597,21 +2412,21 @@ var Jt = (
|
|
2597
2412
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2598
2413
|
* THE SOFTWARE.
|
2599
2414
|
*/
|
2600
|
-
var
|
2415
|
+
var Li = (
|
2601
2416
|
/** @class */
|
2602
|
-
function(
|
2603
|
-
|
2604
|
-
function
|
2605
|
-
return
|
2417
|
+
function(e) {
|
2418
|
+
N(i, e);
|
2419
|
+
function i() {
|
2420
|
+
return e !== null && e.apply(this, arguments) || this;
|
2606
2421
|
}
|
2607
|
-
return
|
2608
|
-
return this.adapter.getAttribute(
|
2609
|
-
},
|
2610
|
-
return
|
2611
|
-
},
|
2612
|
-
return this.adapter.getAttribute(
|
2613
|
-
},
|
2614
|
-
}(
|
2422
|
+
return i.prototype.isSelectable = function() {
|
2423
|
+
return this.adapter.getAttribute(p.ROLE) === "option";
|
2424
|
+
}, i.prototype.actionType = function() {
|
2425
|
+
return v.PRIMARY;
|
2426
|
+
}, i.prototype.shouldEmitInteractionOnRemoveKey = function() {
|
2427
|
+
return this.adapter.getAttribute(p.DATA_DELETABLE) === "true";
|
2428
|
+
}, i;
|
2429
|
+
}(qt)
|
2615
2430
|
);
|
2616
2431
|
/**
|
2617
2432
|
* @license
|
@@ -2635,21 +2450,21 @@ var xi = (
|
|
2635
2450
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2636
2451
|
* THE SOFTWARE.
|
2637
2452
|
*/
|
2638
|
-
var
|
2453
|
+
var Fi = (
|
2639
2454
|
/** @class */
|
2640
|
-
function(
|
2641
|
-
|
2642
|
-
function
|
2643
|
-
return
|
2455
|
+
function(e) {
|
2456
|
+
N(i, e);
|
2457
|
+
function i() {
|
2458
|
+
return e !== null && e.apply(this, arguments) || this;
|
2644
2459
|
}
|
2645
|
-
return
|
2460
|
+
return i.prototype.isSelectable = function() {
|
2646
2461
|
return !1;
|
2647
|
-
},
|
2648
|
-
return
|
2649
|
-
},
|
2462
|
+
}, i.prototype.actionType = function() {
|
2463
|
+
return v.TRAILING;
|
2464
|
+
}, i.prototype.shouldEmitInteractionOnRemoveKey = function() {
|
2650
2465
|
return !0;
|
2651
|
-
},
|
2652
|
-
}(
|
2466
|
+
}, i;
|
2467
|
+
}(qt)
|
2653
2468
|
);
|
2654
2469
|
/**
|
2655
2470
|
* @license
|
@@ -2673,50 +2488,50 @@ var Hi = (
|
|
2673
2488
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
2674
2489
|
* THE SOFTWARE.
|
2675
2490
|
*/
|
2676
|
-
var
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2682
|
-
],
|
2491
|
+
var zi = [
|
2492
|
+
T.safeAttrPrefix(Et || (Et = C(["aria-"], ["aria-"]))),
|
2493
|
+
T.safeAttrPrefix(St || (St = C(["data-"], ["data-"]))),
|
2494
|
+
T.safeAttrPrefix(wt || (wt = C(["disabled"], ["disabled"]))),
|
2495
|
+
T.safeAttrPrefix(Tt || (Tt = C(["role"], ["role"]))),
|
2496
|
+
T.safeAttrPrefix(It || (It = C(["tabindex"], ["tabindex"])))
|
2497
|
+
], xi = (
|
2683
2498
|
/** @class */
|
2684
|
-
function(
|
2685
|
-
|
2686
|
-
function
|
2687
|
-
var
|
2688
|
-
return
|
2499
|
+
function(e) {
|
2500
|
+
N(i, e);
|
2501
|
+
function i() {
|
2502
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
2503
|
+
return t.rootHTML = t.root, t;
|
2689
2504
|
}
|
2690
|
-
return
|
2691
|
-
return new
|
2692
|
-
}, Object.defineProperty(
|
2505
|
+
return i.attachTo = function(t) {
|
2506
|
+
return new i(t);
|
2507
|
+
}, Object.defineProperty(i.prototype, "ripple", {
|
2693
2508
|
get: function() {
|
2694
2509
|
return this.rippleInstance;
|
2695
2510
|
},
|
2696
2511
|
enumerable: !1,
|
2697
2512
|
configurable: !0
|
2698
|
-
}),
|
2513
|
+
}), i.prototype.initialize = function(t) {
|
2699
2514
|
var n = this;
|
2700
|
-
|
2701
|
-
return new
|
2515
|
+
t === void 0 && (t = function(o, a) {
|
2516
|
+
return new At(o, a);
|
2702
2517
|
});
|
2703
|
-
var r =
|
2518
|
+
var r = b(b({}, At.createAdapter(this)), { computeBoundingRect: function() {
|
2704
2519
|
return n.computeRippleClientRect();
|
2705
2520
|
} });
|
2706
|
-
this.rippleInstance =
|
2707
|
-
},
|
2708
|
-
var
|
2521
|
+
this.rippleInstance = t(this.root, new Wt(r));
|
2522
|
+
}, i.prototype.initialSyncWithDOM = function() {
|
2523
|
+
var t = this;
|
2709
2524
|
this.handleClick = function() {
|
2710
|
-
|
2525
|
+
t.foundation.handleClick();
|
2711
2526
|
}, this.handleKeydown = function(n) {
|
2712
|
-
|
2527
|
+
t.foundation.handleKeydown(n);
|
2713
2528
|
}, this.listen("click", this.handleClick), this.listen("keydown", this.handleKeydown);
|
2714
|
-
},
|
2715
|
-
this.ripple.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown),
|
2716
|
-
},
|
2717
|
-
var
|
2529
|
+
}, i.prototype.destroy = function() {
|
2530
|
+
this.ripple.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown), e.prototype.destroy.call(this);
|
2531
|
+
}, i.prototype.getDefaultFoundation = function() {
|
2532
|
+
var t = this, n = {
|
2718
2533
|
emitEvent: function(r, o) {
|
2719
|
-
|
2534
|
+
t.emit(
|
2720
2535
|
r,
|
2721
2536
|
o,
|
2722
2537
|
!0
|
@@ -2724,61 +2539,61 @@ var Mi = [
|
|
2724
2539
|
);
|
2725
2540
|
},
|
2726
2541
|
focus: function() {
|
2727
|
-
|
2542
|
+
t.rootHTML.focus();
|
2728
2543
|
},
|
2729
2544
|
getAttribute: function(r) {
|
2730
|
-
return
|
2545
|
+
return t.root.getAttribute(r);
|
2731
2546
|
},
|
2732
2547
|
getElementID: function() {
|
2733
|
-
return
|
2548
|
+
return t.root.id;
|
2734
2549
|
},
|
2735
2550
|
removeAttribute: function(r) {
|
2736
|
-
|
2551
|
+
t.root.removeAttribute(r);
|
2737
2552
|
},
|
2738
2553
|
setAttribute: function(r, o) {
|
2739
|
-
|
2554
|
+
Mt(zi, t.root, r, o);
|
2740
2555
|
}
|
2741
2556
|
};
|
2742
|
-
return this.root.classList.contains(
|
2743
|
-
},
|
2744
|
-
this.foundation.setDisabled(
|
2745
|
-
},
|
2557
|
+
return this.root.classList.contains(K.TRAILING_ACTION) ? new Fi(n) : new Li(n);
|
2558
|
+
}, i.prototype.setDisabled = function(t) {
|
2559
|
+
this.foundation.setDisabled(t);
|
2560
|
+
}, i.prototype.isDisabled = function() {
|
2746
2561
|
return this.foundation.isDisabled();
|
2747
|
-
},
|
2748
|
-
this.foundation.setFocus(
|
2749
|
-
},
|
2562
|
+
}, i.prototype.setFocus = function(t) {
|
2563
|
+
this.foundation.setFocus(t);
|
2564
|
+
}, i.prototype.isFocusable = function() {
|
2750
2565
|
return this.foundation.isFocusable();
|
2751
|
-
},
|
2752
|
-
this.foundation.setSelected(
|
2753
|
-
},
|
2566
|
+
}, i.prototype.setSelected = function(t) {
|
2567
|
+
this.foundation.setSelected(t);
|
2568
|
+
}, i.prototype.isSelected = function() {
|
2754
2569
|
return this.foundation.isSelected();
|
2755
|
-
},
|
2570
|
+
}, i.prototype.isSelectable = function() {
|
2756
2571
|
return this.foundation.isSelectable();
|
2757
|
-
},
|
2572
|
+
}, i.prototype.actionType = function() {
|
2758
2573
|
return this.foundation.actionType();
|
2759
|
-
},
|
2760
|
-
if (this.root.classList.contains(
|
2761
|
-
var
|
2762
|
-
if (!
|
2574
|
+
}, i.prototype.computeRippleClientRect = function() {
|
2575
|
+
if (this.root.classList.contains(K.PRIMARY_ACTION)) {
|
2576
|
+
var t = wi(this.root, "." + K.CHIP_ROOT);
|
2577
|
+
if (!t)
|
2763
2578
|
return this.root.getBoundingClientRect();
|
2764
|
-
var n = window.getComputedStyle(
|
2765
|
-
return
|
2579
|
+
var n = window.getComputedStyle(t).getPropertyValue(Ni);
|
2580
|
+
return Pi(t.getBoundingClientRect(), n);
|
2766
2581
|
}
|
2767
2582
|
return this.root.getBoundingClientRect();
|
2768
|
-
},
|
2769
|
-
}(
|
2770
|
-
),
|
2771
|
-
for (var r = n > 1 ? void 0 : n ?
|
2772
|
-
(a =
|
2773
|
-
return n && r &&
|
2583
|
+
}, i;
|
2584
|
+
}(Kt)
|
2585
|
+
), Et, St, wt, Tt, It, Ui = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, I = (e, i, t, n) => {
|
2586
|
+
for (var r = n > 1 ? void 0 : n ? Hi(i, t) : i, o = e.length - 1, a; o >= 0; o--)
|
2587
|
+
(a = e[o]) && (r = (n ? a(i, t, r) : a(r)) || r);
|
2588
|
+
return n && r && Ui(i, t, r), r;
|
2774
2589
|
};
|
2775
|
-
let
|
2776
|
-
class
|
2590
|
+
let Mi = 0;
|
2591
|
+
class E extends Zt {
|
2777
2592
|
constructor() {
|
2778
|
-
super(), this.mdcFoundationClass =
|
2593
|
+
super(), this.mdcFoundationClass = Ti, this.label = "", this.icon = "", this.trailingIcon = !1, this.avatar = !1, this.disabled = !1, this.filter = !1, this.chipId = Mi++;
|
2779
2594
|
}
|
2780
2595
|
render() {
|
2781
|
-
const
|
2596
|
+
const i = {
|
2782
2597
|
"mdc-evolution-chip": !0,
|
2783
2598
|
"mdc-evolution-chip--disabled": this.disabled,
|
2784
2599
|
"mdc-evolution-chip--with-trailing-action": this.trailingIcon,
|
@@ -2791,9 +2606,9 @@ class R extends ee {
|
|
2791
2606
|
negative: this.state === "negative",
|
2792
2607
|
caution: this.state === "caution"
|
2793
2608
|
};
|
2794
|
-
return
|
2609
|
+
return j`
|
2795
2610
|
<span
|
2796
|
-
class="${
|
2611
|
+
class="${ce(i)}"
|
2797
2612
|
role="${this.filter ? "presentation" : "row"}"
|
2798
2613
|
id="cv-chip-${this.chipId}"
|
2799
2614
|
>
|
@@ -2820,31 +2635,31 @@ class R extends ee {
|
|
2820
2635
|
}
|
2821
2636
|
async firstUpdated() {
|
2822
2637
|
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.actions = /* @__PURE__ */ new Map();
|
2823
|
-
const
|
2638
|
+
const i = this.mdcRoot.querySelectorAll(
|
2824
2639
|
".mdc-evolution-chip__action"
|
2825
2640
|
);
|
2826
|
-
for (let
|
2827
|
-
const n = new
|
2828
|
-
this.actions.set(n.actionType(), n),
|
2829
|
-
|
2641
|
+
for (let t = 0; t < i.length; t++) {
|
2642
|
+
const n = new xi(i[t]);
|
2643
|
+
this.actions.set(n.actionType(), n), i[t].addEventListener(
|
2644
|
+
B.INTERACTION,
|
2830
2645
|
(r) => {
|
2831
2646
|
var o;
|
2832
2647
|
(o = this.mdcFoundation) == null || o.handleActionInteraction(r);
|
2833
2648
|
}
|
2834
|
-
),
|
2649
|
+
), i[t].addEventListener(B.NAVIGATION, (r) => {
|
2835
2650
|
var o;
|
2836
2651
|
(o = this.mdcFoundation) == null || o.handleActionNavigation(r);
|
2837
2652
|
});
|
2838
2653
|
}
|
2839
2654
|
}
|
2840
2655
|
renderGraphic() {
|
2841
|
-
const
|
2842
|
-
return
|
2843
|
-
${
|
2656
|
+
const i = this.filter ? this.renderCheckMark() : this.renderIcon();
|
2657
|
+
return j`<span class="mdc-evolution-chip__graphic">
|
2658
|
+
${i}
|
2844
2659
|
</span>`;
|
2845
2660
|
}
|
2846
2661
|
renderCheckMark() {
|
2847
|
-
return
|
2662
|
+
return j` <span class="mdc-evolution-chip__checkmark">
|
2848
2663
|
<svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
|
2849
2664
|
<path
|
2850
2665
|
class="mdc-evolution-chip__checkmark-path"
|
@@ -2854,15 +2669,15 @@ class R extends ee {
|
|
2854
2669
|
</svg>
|
2855
2670
|
</span>`;
|
2856
2671
|
}
|
2857
|
-
renderIcon(
|
2858
|
-
return
|
2859
|
-
class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${
|
2672
|
+
renderIcon(i = !1) {
|
2673
|
+
return j` <span
|
2674
|
+
class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${i ? "trailing" : "primary"}"
|
2860
2675
|
>
|
2861
2676
|
${this.icon}
|
2862
2677
|
</span>`;
|
2863
2678
|
}
|
2864
2679
|
renderTrailing() {
|
2865
|
-
return
|
2680
|
+
return j` <span
|
2866
2681
|
class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
|
2867
2682
|
role="gridcell"
|
2868
2683
|
>
|
@@ -2882,148 +2697,146 @@ class R extends ee {
|
|
2882
2697
|
}
|
2883
2698
|
createAdapter() {
|
2884
2699
|
return {
|
2885
|
-
...
|
2886
|
-
emitEvent: (
|
2887
|
-
new CustomEvent(
|
2700
|
+
...te(this.mdcRoot),
|
2701
|
+
emitEvent: (i, t) => this.dispatchEvent(
|
2702
|
+
new CustomEvent(i, { bubbles: !0, detail: t })
|
2888
2703
|
),
|
2889
2704
|
/** Returns the child actions provided by the chip. */
|
2890
2705
|
getActions: () => {
|
2891
|
-
const
|
2892
|
-
for (const [
|
2893
|
-
|
2894
|
-
return
|
2706
|
+
const i = [];
|
2707
|
+
for (const [t] of this.actions)
|
2708
|
+
i.push(t);
|
2709
|
+
return i;
|
2895
2710
|
},
|
2896
2711
|
/** Returns the value for the given attribute, if it exists. */
|
2897
|
-
getAttribute: (
|
2712
|
+
getAttribute: (i) => this.mdcRoot.getAttribute(i),
|
2898
2713
|
/** Returns the ID of the root element. */
|
2899
2714
|
getElementID: () => this.mdcRoot.getAttribute("id") ?? "",
|
2900
2715
|
/** Returns the offset width of the root element. */
|
2901
2716
|
getOffsetWidth: () => this.mdcRoot.offsetWidth,
|
2902
2717
|
/** Returns true if the root element has the given class. */
|
2903
|
-
hasClass: (
|
2718
|
+
hasClass: (i) => this.mdcRoot.classList.contains(i),
|
2904
2719
|
/** Proxies to the MDCChipAction#isSelectable method. */
|
2905
|
-
isActionSelectable: (
|
2906
|
-
var
|
2907
|
-
return ((
|
2720
|
+
isActionSelectable: (i) => {
|
2721
|
+
var t;
|
2722
|
+
return ((t = this.actions.get(i)) == null ? void 0 : t.isSelectable()) ?? !0;
|
2908
2723
|
},
|
2909
2724
|
/** Proxies to the MDCChipAction#isSelected method. */
|
2910
|
-
isActionSelected: (
|
2911
|
-
var
|
2912
|
-
return ((
|
2725
|
+
isActionSelected: (i) => {
|
2726
|
+
var t;
|
2727
|
+
return ((t = this.actions.get(i)) == null ? void 0 : t.isSelected()) ?? !1;
|
2913
2728
|
},
|
2914
2729
|
/** Proxies to the MDCChipAction#isFocusable method. */
|
2915
|
-
isActionFocusable: (
|
2916
|
-
var
|
2917
|
-
return ((
|
2730
|
+
isActionFocusable: (i) => {
|
2731
|
+
var t;
|
2732
|
+
return ((t = this.actions.get(i)) == null ? void 0 : t.isFocusable()) ?? !0;
|
2918
2733
|
},
|
2919
2734
|
/** Proxies to the MDCChipAction#isDisabled method. */
|
2920
|
-
isActionDisabled: (
|
2921
|
-
var
|
2922
|
-
return ((
|
2735
|
+
isActionDisabled: (i) => {
|
2736
|
+
var t;
|
2737
|
+
return ((t = this.actions.get(i)) == null ? void 0 : t.isDisabled()) ?? !1;
|
2923
2738
|
},
|
2924
2739
|
/** Returns true if the text direction is right-to-left. */
|
2925
2740
|
isRTL: () => window.getComputedStyle(this.mdcRoot).getPropertyValue("direction") === "rtl",
|
2926
2741
|
/** Proxies to the MDCChipAction#setDisabled method. */
|
2927
|
-
setActionDisabled: (
|
2742
|
+
setActionDisabled: (i, t) => {
|
2928
2743
|
var n;
|
2929
|
-
return (n = this.actions.get(
|
2744
|
+
return (n = this.actions.get(i)) == null ? void 0 : n.setDisabled(t);
|
2930
2745
|
},
|
2931
2746
|
/** Proxies to the MDCChipAction#setFocus method. */
|
2932
|
-
setActionFocus: (
|
2747
|
+
setActionFocus: (i, t) => {
|
2933
2748
|
var n;
|
2934
|
-
return (n = this.actions.get(
|
2749
|
+
return (n = this.actions.get(i)) == null ? void 0 : n.setFocus(t);
|
2935
2750
|
},
|
2936
2751
|
/** Proxies to the MDCChipAction#setSelected method. */
|
2937
|
-
setActionSelected: (
|
2752
|
+
setActionSelected: (i, t) => {
|
2938
2753
|
var n;
|
2939
|
-
return (n = this.actions.get(
|
2754
|
+
return (n = this.actions.get(i)) == null ? void 0 : n.setSelected(t);
|
2940
2755
|
},
|
2941
2756
|
/** Sets the style property to the given value. */
|
2942
|
-
setStyleProperty: (
|
2757
|
+
setStyleProperty: (i, t) => this.mdcRoot.style.setProperty(i, t)
|
2943
2758
|
};
|
2944
2759
|
}
|
2945
2760
|
getActions() {
|
2946
|
-
var
|
2947
|
-
return ((
|
2761
|
+
var i;
|
2762
|
+
return ((i = this.mdcFoundation) == null ? void 0 : i.getActions()) ?? [];
|
2948
2763
|
}
|
2949
2764
|
getElementID() {
|
2950
|
-
var e;
|
2951
|
-
return ((e = this.mdcFoundation) == null ? void 0 : e.getElementID()) ?? "";
|
2952
|
-
}
|
2953
|
-
isActionFocusable(e) {
|
2954
2765
|
var i;
|
2955
|
-
return ((i = this.mdcFoundation) == null ? void 0 : i.
|
2766
|
+
return ((i = this.mdcFoundation) == null ? void 0 : i.getElementID()) ?? "";
|
2956
2767
|
}
|
2957
|
-
|
2958
|
-
var
|
2959
|
-
return ((
|
2768
|
+
isActionFocusable(i) {
|
2769
|
+
var t;
|
2770
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionFocusable(i)) ?? !1;
|
2960
2771
|
}
|
2961
|
-
|
2962
|
-
var
|
2963
|
-
return ((
|
2772
|
+
isActionSelectable(i) {
|
2773
|
+
var t;
|
2774
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelectable(i)) ?? !1;
|
2775
|
+
}
|
2776
|
+
isActionSelected(i) {
|
2777
|
+
var t;
|
2778
|
+
return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelected(i)) ?? !1;
|
2964
2779
|
}
|
2965
|
-
setActionFocus(
|
2780
|
+
setActionFocus(i, t) {
|
2966
2781
|
var n;
|
2967
|
-
return (n = this.mdcFoundation) == null ? void 0 : n.setActionFocus(
|
2782
|
+
return (n = this.mdcFoundation) == null ? void 0 : n.setActionFocus(i, t);
|
2968
2783
|
}
|
2969
|
-
setActionSelected(
|
2784
|
+
setActionSelected(i, t) {
|
2970
2785
|
var n;
|
2971
|
-
return (n = this.mdcFoundation) == null ? void 0 : n.setActionSelected(
|
2786
|
+
return (n = this.mdcFoundation) == null ? void 0 : n.setActionSelected(i, t);
|
2972
2787
|
}
|
2973
|
-
startAnimation(
|
2974
|
-
var
|
2975
|
-
return (
|
2788
|
+
startAnimation(i) {
|
2789
|
+
var t;
|
2790
|
+
return (t = this.mdcFoundation) == null ? void 0 : t.startAnimation(i);
|
2976
2791
|
}
|
2977
2792
|
}
|
2978
|
-
|
2979
|
-
|
2980
|
-
],
|
2981
|
-
|
2982
|
-
|
2983
|
-
],
|
2984
|
-
|
2985
|
-
|
2986
|
-
],
|
2987
|
-
|
2988
|
-
|
2989
|
-
],
|
2990
|
-
|
2991
|
-
|
2992
|
-
],
|
2993
|
-
|
2994
|
-
|
2995
|
-
],
|
2996
|
-
|
2997
|
-
|
2998
|
-
],
|
2999
|
-
|
3000
|
-
|
3001
|
-
],
|
3002
|
-
const Wi = `.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)}
|
2793
|
+
I([
|
2794
|
+
ae(".mdc-evolution-chip")
|
2795
|
+
], E.prototype, "mdcRoot", 2);
|
2796
|
+
I([
|
2797
|
+
L()
|
2798
|
+
], E.prototype, "label", 2);
|
2799
|
+
I([
|
2800
|
+
L({ type: String })
|
2801
|
+
], E.prototype, "icon", 2);
|
2802
|
+
I([
|
2803
|
+
L({ type: Boolean, reflect: !0 })
|
2804
|
+
], E.prototype, "trailingIcon", 2);
|
2805
|
+
I([
|
2806
|
+
L({ type: Boolean, reflect: !0 })
|
2807
|
+
], E.prototype, "avatar", 2);
|
2808
|
+
I([
|
2809
|
+
L({ type: Boolean, reflect: !0 })
|
2810
|
+
], E.prototype, "disabled", 2);
|
2811
|
+
I([
|
2812
|
+
L({ type: Boolean, reflect: !0 })
|
2813
|
+
], E.prototype, "filter", 2);
|
2814
|
+
I([
|
2815
|
+
L()
|
2816
|
+
], E.prototype, "state", 2);
|
2817
|
+
const ki = `.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)}
|
3003
2818
|
`;
|
3004
|
-
var
|
3005
|
-
for (var r = n > 1 ? void 0 : n ?
|
3006
|
-
(a =
|
3007
|
-
return n && r &&
|
2819
|
+
var Bi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, ji = (e, i, t, n) => {
|
2820
|
+
for (var r = n > 1 ? void 0 : n ? Gi(i, t) : i, o = e.length - 1, a; o >= 0; o--)
|
2821
|
+
(a = e[o]) && (r = (n ? a(i, t, r) : a(r)) || r);
|
2822
|
+
return n && r && Bi(i, t, r), r;
|
3008
2823
|
};
|
3009
|
-
let
|
2824
|
+
let J = class extends E {
|
3010
2825
|
};
|
3011
|
-
|
3012
|
-
|
3013
|
-
${
|
2826
|
+
J.styles = [
|
2827
|
+
Vt`
|
2828
|
+
${Jt(ki)}
|
3014
2829
|
`
|
3015
2830
|
];
|
3016
|
-
|
3017
|
-
|
3018
|
-
],
|
3019
|
-
const
|
2831
|
+
J = ji([
|
2832
|
+
Qt("cv-chip")
|
2833
|
+
], J);
|
2834
|
+
const tn = J;
|
3020
2835
|
export {
|
3021
|
-
|
3022
|
-
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3026
|
-
|
3027
|
-
G as d,
|
3028
|
-
nn as e
|
2836
|
+
J as C,
|
2837
|
+
w as M,
|
2838
|
+
P as a,
|
2839
|
+
v as b,
|
2840
|
+
H as c,
|
2841
|
+
tn as d
|
3029
2842
|
};
|