@covalent/components 8.3.0 → 8.4.0-beta.2

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.
Files changed (92) hide show
  1. package/_commonjsHelpers-2367a3a2.js +1 -0
  2. package/_commonjsHelpers-de2741aa.mjs +28 -0
  3. package/action-ribbon.mjs +2 -2
  4. package/alert.mjs +2 -2
  5. package/app-shell/app-shell.d.ts +6 -0
  6. package/app-shell/app-shell.d.ts.map +1 -1
  7. package/app-shell.js +10 -10
  8. package/app-shell.mjs +45 -38
  9. package/button.mjs +3 -3
  10. package/card.js +1 -1
  11. package/card.mjs +14 -14
  12. package/check-list-item.js +1 -1
  13. package/check-list-item.mjs +6 -6
  14. package/checkbox.mjs +4 -4
  15. package/chip-9c846d01.mjs +3029 -0
  16. package/chip-d6f5c2bb.js +485 -0
  17. package/chip-set.js +76 -0
  18. package/chip-set.mjs +532 -0
  19. package/chip.js +1 -0
  20. package/chip.mjs +12 -0
  21. package/circular-progress.mjs +1 -1
  22. package/code-snippet.js +13 -1
  23. package/code-snippet.mjs +12252 -7
  24. package/{dialog-3ca1b701.mjs → dialog-3444dd4d.mjs} +8 -8
  25. package/dialog.mjs +2 -2
  26. package/drawer.mjs +2 -2
  27. package/empty-state.mjs +2 -2
  28. package/expansion-panel-item.js +25 -0
  29. package/expansion-panel-item.mjs +107 -0
  30. package/expansion-panel.js +7 -0
  31. package/expansion-panel.mjs +59 -0
  32. package/{form-element-ffcf59ff.mjs → form-element-7353b3c4.mjs} +1 -1
  33. package/formfield.js +80 -0
  34. package/formfield.mjs +277 -0
  35. package/{foundation-39dc72d2.mjs → foundation-eff81c1e.mjs} +1 -1
  36. package/icon-button.mjs +2 -2
  37. package/icon-check-toggle.mjs +4 -4
  38. package/icon-radio-toggle.mjs +4 -4
  39. package/icon.mjs +2 -2
  40. package/index.js +1 -560
  41. package/index.mjs +113 -3641
  42. package/linear-progress.mjs +4 -4
  43. package/list/nav-list-item.d.ts +1 -0
  44. package/list/nav-list-item.d.ts.map +1 -1
  45. package/{list-item-1fc0d619.mjs → list-item-098c7f47.mjs} +1 -1
  46. package/{list-item-209613bf.js → list-item-de5f96d8.js} +1 -1
  47. package/list-item.js +1 -1
  48. package/list-item.mjs +4 -4
  49. package/list.js +2 -2
  50. package/list.mjs +16 -16
  51. package/menu.mjs +5 -5
  52. package/{mwc-checkbox-base-f10fd709.mjs → mwc-checkbox-base-afeeff16.mjs} +3 -3
  53. package/{mwc-drawer-base-135de8a5.mjs → mwc-drawer-base-0c2b4060.mjs} +1 -1
  54. package/{mwc-icon-bf656cf5.mjs → mwc-icon-28b10c70.mjs} +1 -1
  55. package/{mwc-line-ripple-directive-b24a914e.mjs → mwc-line-ripple-directive-315e996d.mjs} +1 -1
  56. package/{mwc-list-base-76e37212.mjs → mwc-list-base-8aa5bfd8.mjs} +2 -2
  57. package/{mwc-list-item-base-fe4398c3.mjs → mwc-list-item-base-bf1a075b.mjs} +2 -2
  58. package/{mwc-menu-base-c4bc88ea.mjs → mwc-menu-base-872420a4.mjs} +2 -2
  59. package/{mwc-radio-base-a374fbd9.mjs → mwc-radio-base-18a887dd.mjs} +3 -3
  60. package/{mwc-slider.css-8b6f275c.mjs → mwc-slider.css-03537082.mjs} +3 -3
  61. package/{mwc-tab-base-be0c887f.mjs → mwc-tab-base-cd1570e4.mjs} +2 -2
  62. package/{mwc-top-app-bar-base-55da3fe4.mjs → mwc-top-app-bar-base-c7380903.mjs} +1 -1
  63. package/nav-list-item.js +10 -5
  64. package/nav-list-item.mjs +45 -36
  65. package/package.json +1 -1
  66. package/radio-list-item.js +1 -1
  67. package/radio-list-item.mjs +6 -6
  68. package/radio.mjs +4 -4
  69. package/{ripple-handlers-f37f21cf.mjs → ripple-handlers-38a43e50.mjs} +1 -1
  70. package/select.mjs +8 -8
  71. package/side-sheet.mjs +2 -2
  72. package/slider-range.mjs +4 -4
  73. package/slider.mjs +8 -8
  74. package/snackbar.mjs +1 -1
  75. package/style.css +1 -1
  76. package/switch.mjs +3 -3
  77. package/tab-bar.mjs +3 -3
  78. package/tab.mjs +3 -3
  79. package/textarea.js +1 -1
  80. package/textarea.mjs +4 -4
  81. package/{textfield-62e16cc2.js → textfield-11525c88.js} +1 -1
  82. package/{textfield-63d1859a.mjs → textfield-1792a6a8.mjs} +4 -4
  83. package/textfield.js +1 -1
  84. package/textfield.mjs +4 -4
  85. package/toolbar.mjs +2 -2
  86. package/tooltip.mjs +1 -1
  87. package/top-app-bar-fixed.mjs +2 -2
  88. package/top-app-bar.mjs +2 -2
  89. package/tree-list-item.mjs +2 -2
  90. package/{tslib.es6-f3e988cd.mjs → tslib.es6-226581a4.mjs} +5 -5
  91. package/code-snippet-2137b11c.js +0 -13
  92. package/code-snippet-ccca324f.mjs +0 -12278
@@ -0,0 +1,3029 @@
1
+ var Qt = Object.defineProperty;
2
+ var te = (t, e, i) => e in t ? Qt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
+ var p = (t, e, i) => (te(t, typeof e != "symbol" ? e + "" : e, i), i);
4
+ import { s as ee, x as q, i as ie, r as ne, e as re } from "./query-assigned-elements-4a39219d.mjs";
5
+ import { a as oe } from "./utils-2932417c.mjs";
6
+ import { _ as U, a as S, c as B, d as L, e as ae, f as ce } from "./tslib.es6-226581a4.mjs";
7
+ import { n as x } from "./property-9b6ea53b.mjs";
8
+ import { i as le } from "./query-d843aa92.mjs";
9
+ import { o as se } from "./class-map-4b94b017.mjs";
10
+ import { g } from "./_commonjsHelpers-de2741aa.mjs";
11
+ var D = {};
12
+ /**
13
+ * @license
14
+ * SPDX-License-Identifier: Apache-2.0
15
+ */
16
+ const w = {};
17
+ function de(t) {
18
+ if (t !== w)
19
+ throw new Error("Bad secret");
20
+ }
21
+ /**
22
+ * @license
23
+ * SPDX-License-Identifier: Apache-2.0
24
+ */
25
+ class Ct {
26
+ constructor() {
27
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
28
+ p(this, "brand");
29
+ }
30
+ // To prevent structural typing.
31
+ }
32
+ class Nt extends Ct {
33
+ constructor(i, n) {
34
+ super();
35
+ p(this, "privateDoNotAccessOrElseWrappedAttrPrefix");
36
+ this.privateDoNotAccessOrElseWrappedAttrPrefix = i;
37
+ }
38
+ toString() {
39
+ return this.privateDoNotAccessOrElseWrappedAttrPrefix;
40
+ }
41
+ }
42
+ function Lt(t) {
43
+ return new Nt(t, w);
44
+ }
45
+ function Ft(t) {
46
+ if (t instanceof Nt)
47
+ return t.privateDoNotAccessOrElseWrappedAttrPrefix;
48
+ {
49
+ let e = "";
50
+ throw new Error(e);
51
+ }
52
+ }
53
+ const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
54
+ __proto__: null,
55
+ SafeAttributePrefix: Ct,
56
+ createAttributePrefix: Lt,
57
+ unwrapAttributePrefix: Ft
58
+ }, Symbol.toStringTag, { value: "Module" }));
59
+ /**
60
+ * @license
61
+ * SPDX-License-Identifier: Apache-2.0
62
+ */
63
+ function pe(t) {
64
+ const e = t[0].toLowerCase();
65
+ return Lt(e);
66
+ }
67
+ const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
68
+ __proto__: null,
69
+ safeAttrPrefix: pe
70
+ }, Symbol.toStringTag, { value: "Module" })), me = /* @__PURE__ */ g(he);
71
+ /**
72
+ * @license
73
+ * SPDX-License-Identifier: Apache-2.0
74
+ */
75
+ let zt = "google#safe";
76
+ function fe() {
77
+ if (typeof window < "u")
78
+ return window.trustedTypes;
79
+ }
80
+ function $() {
81
+ return zt !== "" ? fe() ?? null : null;
82
+ }
83
+ let V;
84
+ function at() {
85
+ var t;
86
+ if (V === void 0)
87
+ try {
88
+ V = ((t = $()) == null ? void 0 : t.createPolicy(zt, {
89
+ createHTML: (e) => e,
90
+ createScript: (e) => e,
91
+ createScriptURL: (e) => e
92
+ })) ?? null;
93
+ } catch {
94
+ V = null;
95
+ }
96
+ return V;
97
+ }
98
+ /**
99
+ * @license
100
+ * SPDX-License-Identifier: Apache-2.0
101
+ */
102
+ class ct {
103
+ constructor(e, i) {
104
+ p(this, "privateDoNotAccessOrElseWrappedHtml");
105
+ this.privateDoNotAccessOrElseWrappedHtml = e;
106
+ }
107
+ toString() {
108
+ return this.privateDoNotAccessOrElseWrappedHtml.toString();
109
+ }
110
+ }
111
+ function Ut(t, e) {
112
+ return e ?? new ct(t, w);
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));
119
+ }
120
+ const ge = /* @__PURE__ */ (() => {
121
+ var t;
122
+ return Ut("", (t = $()) == null ? void 0 : t.emptyHTML);
123
+ })();
124
+ function _e(t) {
125
+ return t instanceof xt;
126
+ }
127
+ function lt(t) {
128
+ var e;
129
+ if ((e = $()) != null && e.isHTML(t))
130
+ return t;
131
+ if (t instanceof ct)
132
+ return t.privateDoNotAccessOrElseWrappedHtml;
133
+ {
134
+ let i = "";
135
+ throw new Error(i);
136
+ }
137
+ }
138
+ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
139
+ __proto__: null,
140
+ EMPTY_HTML: ge,
141
+ SafeHtml: xt,
142
+ createHtml: H,
143
+ isHtml: _e,
144
+ unwrapHtml: lt
145
+ }, Symbol.toStringTag, { value: "Module" }));
146
+ /**
147
+ * @license
148
+ * SPDX-License-Identifier: Apache-2.0
149
+ */
150
+ class st {
151
+ constructor(e, i) {
152
+ p(this, "privateDoNotAccessOrElseWrappedResourceUrl");
153
+ this.privateDoNotAccessOrElseWrappedResourceUrl = e;
154
+ }
155
+ toString() {
156
+ return this.privateDoNotAccessOrElseWrappedResourceUrl.toString();
157
+ }
158
+ }
159
+ const be = typeof window !== void 0 ? window.TrustedScriptURL : void 0, Ht = be ?? st;
160
+ function W(t) {
161
+ var n;
162
+ const e = t;
163
+ return ((n = at()) == null ? void 0 : n.createScriptURL(e)) ?? new st(e, w);
164
+ }
165
+ function Ae(t) {
166
+ return t instanceof Ht;
167
+ }
168
+ function nt(t) {
169
+ var e;
170
+ if ((e = $()) != null && e.isScriptURL(t))
171
+ return t;
172
+ if (t instanceof st)
173
+ return t.privateDoNotAccessOrElseWrappedResourceUrl;
174
+ {
175
+ let i = "";
176
+ throw new Error(i);
177
+ }
178
+ }
179
+ const Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
180
+ __proto__: null,
181
+ TrustedResourceUrl: Ht,
182
+ createResourceUrl: W,
183
+ isResourceUrl: Ae,
184
+ unwrapResourceUrl: nt
185
+ }, Symbol.toStringTag, { value: "Module" }));
186
+ /**
187
+ * @license
188
+ * SPDX-License-Identifier: Apache-2.0
189
+ */
190
+ class dt {
191
+ constructor(e, i) {
192
+ p(this, "privateDoNotAccessOrElseWrappedScript");
193
+ this.privateDoNotAccessOrElseWrappedScript = e;
194
+ }
195
+ toString() {
196
+ return this.privateDoNotAccessOrElseWrappedScript.toString();
197
+ }
198
+ }
199
+ function Mt(t, e) {
200
+ return e ?? new dt(t, w);
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));
207
+ }
208
+ const we = /* @__PURE__ */ (() => {
209
+ var t;
210
+ return Mt("", (t = $()) == null ? void 0 : t.emptyScript);
211
+ })();
212
+ function Te(t) {
213
+ return t instanceof kt;
214
+ }
215
+ function rt(t) {
216
+ var e;
217
+ if ((e = $()) != null && e.isScript(t))
218
+ return t;
219
+ if (t instanceof dt)
220
+ return t.privateDoNotAccessOrElseWrappedScript;
221
+ {
222
+ let i = "";
223
+ throw new Error(i);
224
+ }
225
+ }
226
+ const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
227
+ __proto__: null,
228
+ EMPTY_SCRIPT: we,
229
+ SafeScript: kt,
230
+ createScript: Y,
231
+ isScript: Te,
232
+ unwrapScript: rt
233
+ }, Symbol.toStringTag, { value: "Module" }));
234
+ /**
235
+ * @license
236
+ * SPDX-License-Identifier: Apache-2.0
237
+ */
238
+ function Ie(t, e = {}) {
239
+ let i = j(t);
240
+ return e.preserveSpaces && (i = i.replace(/(^|[\r\n\t ]) /g, "$1&#160;")), e.preserveNewlines && (i = i.replace(/(\r\n|\n|\r)/g, "<br>")), e.preserveTabs && (i = i.replace(/(\t+)/g, '<span style="white-space:pre">$1</span>')), H(i);
241
+ }
242
+ function Oe(t, e = {}) {
243
+ const i = rt(t).toString();
244
+ let n = "<script";
245
+ return e.id && (n += ` id="${j(e.id)}"`), e.nonce && (n += ` nonce="${j(e.nonce)}"`), e.type && (n += ` type="${j(e.type)}"`), n += `>${i}<\/script>`, H(n);
246
+ }
247
+ function De(t, e, i) {
248
+ const n = nt(t).toString();
249
+ let r = `<script src="${j(n)}"`;
250
+ return e && (r += " async"), i && (r += ` nonce="${j(i)}"`), r += "><\/script>", H(r);
251
+ }
252
+ function j(t) {
253
+ return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
254
+ }
255
+ function Pe(t) {
256
+ return H(t.map(lt).join(""));
257
+ }
258
+ const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
259
+ __proto__: null,
260
+ concatHtmls: Pe,
261
+ createScript: Oe,
262
+ createScriptSrc: De,
263
+ htmlEscape: Ie
264
+ }, Symbol.toStringTag, { value: "Module" })), Ne = /* @__PURE__ */ g(Ce);
265
+ /**
266
+ * @license
267
+ * SPDX-License-Identifier: Apache-2.0
268
+ */
269
+ function Le(t) {
270
+ let e;
271
+ try {
272
+ e = new URL(t);
273
+ } catch {
274
+ return "https:";
275
+ }
276
+ return e.protocol;
277
+ }
278
+ const Fe = ["data:", "http:", "https:", "mailto:", "ftp:"];
279
+ function ze(t) {
280
+ const e = Le(t);
281
+ return e !== void 0 && Fe.indexOf(e.toLowerCase()) !== -1 ? t : "about:invalid#zClosurez";
282
+ }
283
+ /**
284
+ * @license
285
+ * SPDX-License-Identifier: Apache-2.0
286
+ */
287
+ class Bt {
288
+ constructor() {
289
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
290
+ p(this, "brand");
291
+ }
292
+ // To prevent structural typing.
293
+ }
294
+ class ut extends Bt {
295
+ constructor(i, n) {
296
+ super();
297
+ p(this, "privateDoNotAccessOrElseWrappedStyle");
298
+ this.privateDoNotAccessOrElseWrappedStyle = i;
299
+ }
300
+ toString() {
301
+ return this.privateDoNotAccessOrElseWrappedStyle;
302
+ }
303
+ }
304
+ function pt(t) {
305
+ return new ut(t, w);
306
+ }
307
+ function Ue(t) {
308
+ return t instanceof ut;
309
+ }
310
+ function Gt(t) {
311
+ if (t instanceof ut)
312
+ return t.privateDoNotAccessOrElseWrappedStyle;
313
+ {
314
+ let e = "";
315
+ throw new Error(e);
316
+ }
317
+ }
318
+ const xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
319
+ __proto__: null,
320
+ SafeStyle: Bt,
321
+ createStyle: pt,
322
+ isStyle: Ue,
323
+ unwrapStyle: Gt
324
+ }, Symbol.toStringTag, { value: "Module" }));
325
+ /**
326
+ * @license
327
+ * SPDX-License-Identifier: Apache-2.0
328
+ */
329
+ function He(t, e) {
330
+ ke(t) && Me(t), t.innerHTML = lt(e);
331
+ }
332
+ function jt(t, e, i, n) {
333
+ if (t.length === 0)
334
+ throw new Error("No prefixes are provided");
335
+ const r = t.map((a) => Ft(a)), o = i.toLowerCase();
336
+ if (r.every((a) => o.indexOf(a) !== 0))
337
+ throw new Error(`Attribute "${i}" does not match any of the allowed prefixes.`);
338
+ e.setAttribute(i, n);
339
+ }
340
+ function Me(t) {
341
+ if (t.tagName.toLowerCase() === "script")
342
+ throw new Error("Use setTextContent with a SafeScript.");
343
+ if (t.tagName.toLowerCase() === "style")
344
+ throw new Error("Use setTextContent with a SafeStyleSheet.");
345
+ }
346
+ function ke(t) {
347
+ return t.tagName !== void 0;
348
+ }
349
+ /**
350
+ * @license
351
+ * SPDX-License-Identifier: Apache-2.0
352
+ */
353
+ function Be(t) {
354
+ const e = document.createElement("template"), i = H(t);
355
+ return He(e, i), e.content;
356
+ }
357
+ /**
358
+ * @license
359
+ * SPDX-License-Identifier: Apache-2.0
360
+ */
361
+ function gt(t) {
362
+ const e = t.nodeName;
363
+ return typeof e == "string" ? e : "FORM";
364
+ }
365
+ function _t(t) {
366
+ return t.nodeType === Node.TEXT_NODE;
367
+ }
368
+ function yt(t) {
369
+ const e = t.nodeType;
370
+ return e === Node.ELEMENT_NODE || typeof e != "number";
371
+ }
372
+ /**
373
+ * @license
374
+ * SPDX-License-Identifier: Apache-2.0
375
+ */
376
+ class N {
377
+ constructor(e, i, n, r) {
378
+ p(this, "allowedElements");
379
+ p(this, "elementPolicies");
380
+ p(this, "allowedGlobalAttributes");
381
+ p(this, "globalAttributePolicies");
382
+ this.allowedElements = e, this.elementPolicies = i, this.allowedGlobalAttributes = n, this.globalAttributePolicies = r;
383
+ }
384
+ isAllowedElement(e) {
385
+ return e.toLowerCase() !== "form" && (this.allowedElements.has(e) || this.elementPolicies.has(e));
386
+ }
387
+ getAttributePolicy(e, i) {
388
+ const n = this.elementPolicies.get(i);
389
+ return n != null && n.has(e) ? n.get(e) : this.allowedGlobalAttributes.has(e) ? { policyAction: d.KEEP } : this.globalAttributePolicies.get(e) || { policyAction: d.DROP };
390
+ }
391
+ }
392
+ var d;
393
+ (function(t) {
394
+ t[t.DROP = 0] = "DROP", t[t.KEEP = 1] = "KEEP", t[t.KEEP_AND_SANITIZE_URL = 2] = "KEEP_AND_SANITIZE_URL", t[t.KEEP_AND_NORMALIZE = 3] = "KEEP_AND_NORMALIZE", t[t.KEEP_AND_SANITIZE_STYLE = 4] = "KEEP_AND_SANITIZE_STYLE";
395
+ })(d || (d = {}));
396
+ /**
397
+ * @license
398
+ * SPDX-License-Identifier: Apache-2.0
399
+ */
400
+ const Wt = new N(/* @__PURE__ */ new Set([
401
+ "ARTICLE",
402
+ "SECTION",
403
+ "NAV",
404
+ "ASIDE",
405
+ "H1",
406
+ "H2",
407
+ "H3",
408
+ "H4",
409
+ "H5",
410
+ "H6",
411
+ "HEADER",
412
+ "FOOTER",
413
+ "ADDRESS",
414
+ "P",
415
+ "HR",
416
+ "PRE",
417
+ "BLOCKQUOTE",
418
+ "OL",
419
+ "UL",
420
+ "LH",
421
+ "LI",
422
+ "DL",
423
+ "DT",
424
+ "DD",
425
+ "FIGURE",
426
+ "FIGCAPTION",
427
+ "MAIN",
428
+ "DIV",
429
+ "EM",
430
+ "STRONG",
431
+ "SMALL",
432
+ "S",
433
+ "CITE",
434
+ "Q",
435
+ "DFN",
436
+ "ABBR",
437
+ "RUBY",
438
+ "RB",
439
+ "RT",
440
+ "RTC",
441
+ "RP",
442
+ "DATA",
443
+ "TIME",
444
+ "CODE",
445
+ "VAR",
446
+ "SAMP",
447
+ "KBD",
448
+ "SUB",
449
+ "SUP",
450
+ "I",
451
+ "B",
452
+ "U",
453
+ "MARK",
454
+ "BDI",
455
+ "BDO",
456
+ "SPAN",
457
+ "BR",
458
+ "WBR",
459
+ "INS",
460
+ "DEL",
461
+ "PICTURE",
462
+ "PARAM",
463
+ "TRACK",
464
+ "MAP",
465
+ "TABLE",
466
+ "CAPTION",
467
+ "COLGROUP",
468
+ "COL",
469
+ "TBODY",
470
+ "THEAD",
471
+ "TFOOT",
472
+ "TR",
473
+ "TD",
474
+ "TH",
475
+ "SELECT",
476
+ "DATALIST",
477
+ "OPTGROUP",
478
+ "OPTION",
479
+ "OUTPUT",
480
+ "PROGRESS",
481
+ "METER",
482
+ "FIELDSET",
483
+ "LEGEND",
484
+ "DETAILS",
485
+ "SUMMARY",
486
+ "MENU",
487
+ "DIALOG",
488
+ "SLOT",
489
+ "CANVAS",
490
+ "FONT",
491
+ "CENTER"
492
+ ]), /* @__PURE__ */ new Map([
493
+ [
494
+ "A",
495
+ /* @__PURE__ */ new Map([
496
+ ["href", { policyAction: d.KEEP_AND_SANITIZE_URL }]
497
+ ])
498
+ ],
499
+ [
500
+ "AREA",
501
+ /* @__PURE__ */ new Map([
502
+ ["href", { policyAction: d.KEEP_AND_SANITIZE_URL }]
503
+ ])
504
+ ],
505
+ [
506
+ "LINK",
507
+ /* @__PURE__ */ new Map([
508
+ [
509
+ "href",
510
+ {
511
+ policyAction: d.KEEP_AND_SANITIZE_URL,
512
+ conditions: /* @__PURE__ */ new Map([[
513
+ "rel",
514
+ /* @__PURE__ */ new Set([
515
+ "alternate",
516
+ "author",
517
+ "bookmark",
518
+ "canonical",
519
+ "cite",
520
+ "help",
521
+ "icon",
522
+ "license",
523
+ "next",
524
+ "prefetch",
525
+ "dns-prefetch",
526
+ "prerender",
527
+ "preconnect",
528
+ "preload",
529
+ "prev",
530
+ "search",
531
+ "subresource"
532
+ ])
533
+ ]])
534
+ }
535
+ ]
536
+ ])
537
+ ],
538
+ [
539
+ "SOURCE",
540
+ /* @__PURE__ */ new Map([
541
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
542
+ ])
543
+ ],
544
+ [
545
+ "IMG",
546
+ /* @__PURE__ */ new Map([
547
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
548
+ ])
549
+ ],
550
+ [
551
+ "VIDEO",
552
+ /* @__PURE__ */ new Map([
553
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
554
+ ])
555
+ ],
556
+ [
557
+ "AUDIO",
558
+ /* @__PURE__ */ new Map([
559
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
560
+ ])
561
+ ]
562
+ ]), /* @__PURE__ */ new Set([
563
+ "title",
564
+ "aria-atomic",
565
+ "aria-autocomplete",
566
+ "aria-busy",
567
+ "aria-checked",
568
+ "aria-current",
569
+ "aria-disabled",
570
+ "aria-dropeffect",
571
+ "aria-expanded",
572
+ "aria-haspopup",
573
+ "aria-hidden",
574
+ "aria-invalid",
575
+ "aria-label",
576
+ "aria-level",
577
+ "aria-live",
578
+ "aria-multiline",
579
+ "aria-multiselectable",
580
+ "aria-orientation",
581
+ "aria-posinset",
582
+ "aria-pressed",
583
+ "aria-readonly",
584
+ "aria-relevant",
585
+ "aria-required",
586
+ "aria-selected",
587
+ "aria-setsize",
588
+ "aria-sort",
589
+ "aria-valuemax",
590
+ "aria-valuemin",
591
+ "aria-valuenow",
592
+ "aria-valuetext",
593
+ "alt",
594
+ "align",
595
+ "autocapitalize",
596
+ "autocomplete",
597
+ "autocorrect",
598
+ "autofocus",
599
+ "autoplay",
600
+ "bgcolor",
601
+ "border",
602
+ "cellpadding",
603
+ "cellspacing",
604
+ "checked",
605
+ "color",
606
+ "cols",
607
+ "colspan",
608
+ "controls",
609
+ "datetime",
610
+ "disabled",
611
+ "download",
612
+ "draggable",
613
+ "enctype",
614
+ "face",
615
+ "formenctype",
616
+ "frameborder",
617
+ "height",
618
+ "hreflang",
619
+ "hidden",
620
+ "ismap",
621
+ "label",
622
+ "lang",
623
+ "loop",
624
+ "max",
625
+ "maxlength",
626
+ "media",
627
+ "minlength",
628
+ "min",
629
+ "multiple",
630
+ "muted",
631
+ "nonce",
632
+ "open",
633
+ "placeholder",
634
+ "preload",
635
+ "rel",
636
+ "required",
637
+ "reversed",
638
+ "role",
639
+ "rows",
640
+ "rowspan",
641
+ "selected",
642
+ "shape",
643
+ "size",
644
+ "sizes",
645
+ "slot",
646
+ "span",
647
+ "spellcheck",
648
+ "start",
649
+ "step",
650
+ "summary",
651
+ "translate",
652
+ "type",
653
+ "valign",
654
+ "value",
655
+ "width",
656
+ "wrap",
657
+ "itemscope",
658
+ "itemtype",
659
+ "itemid",
660
+ "itemprop",
661
+ "itemref"
662
+ ]), /* @__PURE__ */ new Map([
663
+ [
664
+ "dir",
665
+ {
666
+ policyAction: d.KEEP_AND_NORMALIZE,
667
+ conditions: /* @__PURE__ */ new Map([[
668
+ "dir",
669
+ /* @__PURE__ */ new Set([
670
+ "auto",
671
+ "ltr",
672
+ "rtl"
673
+ ])
674
+ ]])
675
+ }
676
+ ],
677
+ [
678
+ "async",
679
+ {
680
+ policyAction: d.KEEP_AND_NORMALIZE,
681
+ conditions: /* @__PURE__ */ new Map([[
682
+ "async",
683
+ /* @__PURE__ */ new Set([
684
+ "async"
685
+ ])
686
+ ]])
687
+ }
688
+ ],
689
+ ["cite", { policyAction: d.KEEP_AND_SANITIZE_URL }],
690
+ [
691
+ "loading",
692
+ {
693
+ policyAction: d.KEEP_AND_NORMALIZE,
694
+ conditions: /* @__PURE__ */ new Map([[
695
+ "loading",
696
+ /* @__PURE__ */ new Set([
697
+ "eager",
698
+ "lazy"
699
+ ])
700
+ ]])
701
+ }
702
+ ],
703
+ ["poster", { policyAction: d.KEEP_AND_SANITIZE_URL }],
704
+ [
705
+ "target",
706
+ {
707
+ policyAction: d.KEEP_AND_NORMALIZE,
708
+ conditions: /* @__PURE__ */ new Map([[
709
+ "target",
710
+ /* @__PURE__ */ new Set([
711
+ "_self",
712
+ "_blank"
713
+ ])
714
+ ]])
715
+ }
716
+ ]
717
+ ]));
718
+ /**
719
+ * @license
720
+ * SPDX-License-Identifier: Apache-2.0
721
+ */
722
+ class ht {
723
+ constructor(e, i) {
724
+ p(this, "sanitizerTable");
725
+ p(this, "changes", []);
726
+ this.sanitizerTable = e, de(i);
727
+ }
728
+ sanitizeAssertUnchanged(e) {
729
+ this.changes = [];
730
+ const i = this.sanitize(e);
731
+ if (this.changes.length !== 0) {
732
+ let n = "";
733
+ throw new Error(n);
734
+ }
735
+ return i;
736
+ }
737
+ sanitize(e) {
738
+ const i = document.createElement("span");
739
+ i.appendChild(this.sanitizeToFragment(e));
740
+ let n = new XMLSerializer().serializeToString(i);
741
+ return n = n.slice(n.indexOf(">") + 1, n.lastIndexOf("</")), H(n);
742
+ }
743
+ sanitizeToFragment(e) {
744
+ const i = Be(e), n = document.createTreeWalker(
745
+ i,
746
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
747
+ // IE10 and IE11 won't accept a proper `NodeFilter` interface, and
748
+ // expect the filtering function to be passed directly. It seems that
749
+ // other browsers also do not mind getting the function directly. see
750
+ // https://stackoverflow.com/q/38245898
751
+ (c) => this.nodeFilter(c),
752
+ // @ts-ignore: error TS2554: Expected 1-3 arguments, but got 4.
753
+ !1
754
+ );
755
+ let r = n.nextNode();
756
+ const o = document.createDocumentFragment();
757
+ let a = o;
758
+ for (; r !== null; ) {
759
+ let c;
760
+ if (_t(r))
761
+ c = this.sanitizeTextNode(r);
762
+ else if (yt(r))
763
+ c = this.sanitizeElementNode(r);
764
+ else
765
+ throw new Error("Node is not of type text or element");
766
+ if (a.appendChild(c), r = n.firstChild(), r)
767
+ a = c;
768
+ else
769
+ for (; !(r = n.nextSibling()) && (r = n.parentNode()); )
770
+ a = a.parentNode;
771
+ }
772
+ return o;
773
+ }
774
+ sanitizeTextNode(e) {
775
+ return document.createTextNode(e.data);
776
+ }
777
+ sanitizeElementNode(e) {
778
+ const i = gt(e), n = document.createElement(i), r = e.attributes;
779
+ for (const { name: o, value: a } of r) {
780
+ const c = this.sanitizerTable.getAttributePolicy(o, i);
781
+ if (!this.satisfiesAllConditions(c.conditions, r)) {
782
+ this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);
783
+ continue;
784
+ }
785
+ switch (c.policyAction) {
786
+ case d.KEEP:
787
+ n.setAttribute(o, a);
788
+ break;
789
+ case d.KEEP_AND_SANITIZE_URL:
790
+ const s = ze(a);
791
+ s !== a && this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${s}"`), n.setAttribute(o, s);
792
+ break;
793
+ case d.KEEP_AND_NORMALIZE:
794
+ n.setAttribute(o, a.toLowerCase());
795
+ break;
796
+ case d.KEEP_AND_SANITIZE_STYLE:
797
+ n.setAttribute(o, a);
798
+ break;
799
+ case d.DROP:
800
+ this.recordChange(`Attribute: ${o} was dropped`);
801
+ break;
802
+ default:
803
+ Ke(c.policyAction, "Unhandled AttributePolicyAction case");
804
+ }
805
+ }
806
+ return n;
807
+ }
808
+ nodeFilter(e) {
809
+ if (_t(e))
810
+ return NodeFilter.FILTER_ACCEPT;
811
+ if (!yt(e))
812
+ return NodeFilter.FILTER_REJECT;
813
+ const i = gt(e);
814
+ return i === null ? (this.recordChange(`Node name was null for node: ${e}`), NodeFilter.FILTER_REJECT) : this.sanitizerTable.isAllowedElement(i) ? NodeFilter.FILTER_ACCEPT : (this.recordChange(`Element: ${i} was dropped`), NodeFilter.FILTER_REJECT);
815
+ }
816
+ recordChange(e) {
817
+ this.changes.length === 0 && this.changes.push("");
818
+ }
819
+ satisfiesAllConditions(e, i) {
820
+ var n;
821
+ if (!e)
822
+ return !0;
823
+ for (const [r, o] of e) {
824
+ const a = (n = i.getNamedItem(r)) == null ? void 0 : n.value;
825
+ if (a && !o.has(a))
826
+ return !1;
827
+ }
828
+ return !0;
829
+ }
830
+ }
831
+ const mt = /* @__PURE__ */ (() => new ht(Wt, w))();
832
+ function Ge(t) {
833
+ return mt.sanitize(t);
834
+ }
835
+ function je(t) {
836
+ return mt.sanitizeAssertUnchanged(t);
837
+ }
838
+ function We(t) {
839
+ return mt.sanitizeToFragment(t);
840
+ }
841
+ function Ke(t, e = `unexpected value ${t}!`) {
842
+ throw new Error(e);
843
+ }
844
+ const $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
845
+ __proto__: null,
846
+ HtmlSanitizerImpl: ht,
847
+ sanitizeHtml: Ge,
848
+ sanitizeHtmlAssertUnchanged: je,
849
+ sanitizeHtmlToFragment: We
850
+ }, Symbol.toStringTag, { value: "Module" })), qe = /* @__PURE__ */ g($e);
851
+ /**
852
+ * @license
853
+ * SPDX-License-Identifier: Apache-2.0
854
+ */
855
+ class Xe {
856
+ constructor() {
857
+ p(this, "sanitizerTable");
858
+ // To denote if the builder has called build() and therefore should make no
859
+ // further changes to the sanitizer table.
860
+ p(this, "calledBuild", !1);
861
+ this.sanitizerTable = Wt;
862
+ }
863
+ /** Builder option to restrict allowed elements to a smaller subset. */
864
+ onlyAllowElements(e) {
865
+ const i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
866
+ for (let r of e) {
867
+ if (r = r.toUpperCase(), !this.sanitizerTable.isAllowedElement(r))
868
+ throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);
869
+ const o = this.sanitizerTable.elementPolicies.get(r);
870
+ o !== void 0 ? n.set(r, o) : i.add(r);
871
+ }
872
+ return this.sanitizerTable = new N(i, n, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies), this;
873
+ }
874
+ /**
875
+ * Builder option to restrict allowed attributes to a smaller subset.
876
+ *
877
+ * If the attribute isn't currently allowed then it won't be added.
878
+ */
879
+ onlyAllowAttributes(e) {
880
+ const i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
881
+ for (const o of e)
882
+ this.sanitizerTable.allowedGlobalAttributes.has(o) && i.add(o), this.sanitizerTable.globalAttributePolicies.has(o) && n.set(o, this.sanitizerTable.globalAttributePolicies.get(o));
883
+ for (const [o, a] of this.sanitizerTable.elementPolicies.entries()) {
884
+ const c = /* @__PURE__ */ new Map();
885
+ for (const [s, v] of a.entries())
886
+ e.has(s) && c.set(s, v);
887
+ r.set(o, c);
888
+ }
889
+ return this.sanitizerTable = new N(this.sanitizerTable.allowedElements, r, i, n), this;
890
+ }
891
+ /**
892
+ * Allows the set of data attributes passed.
893
+ *
894
+ * These values must be prefixed with "data-"
895
+ *
896
+ * If called with onlyAllowElements or onlyAllowAttributes, those methods must
897
+ * be called first.
898
+ */
899
+ allowDataAttributes(e) {
900
+ const i = new Set(this.sanitizerTable.allowedGlobalAttributes);
901
+ for (const n of e) {
902
+ if (n.indexOf("data-") !== 0)
903
+ throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);
904
+ i.add(n);
905
+ }
906
+ return this.sanitizerTable = new N(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, i, this.sanitizerTable.globalAttributePolicies), this;
907
+ }
908
+ /**
909
+ * Preserves style attributes. Note that the sanitizer won't parse and
910
+ * sanitize the values but keep them as they are. In particular this means
911
+ * that the code will be able to call functions that could do undesirable
912
+ * things (e.g. `url` to trigger a network request), as well as any custom
913
+ * properties or functions defined by the application.
914
+ */
915
+ allowStyleAttributes() {
916
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
917
+ return e.set("style", { policyAction: d.KEEP_AND_SANITIZE_STYLE }), this.sanitizerTable = new N(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
918
+ }
919
+ /**
920
+ * Preserves the class attribute on all elements. This means contents can
921
+ * adopt CSS styles from other page elements and possibly mask themselves as
922
+ * legitimate UI elements, which can lead to phishing.
923
+ */
924
+ allowClassAttributes() {
925
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
926
+ return e.set("class", { policyAction: d.KEEP }), this.sanitizerTable = new N(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
927
+ }
928
+ /**
929
+ * Preserves id attributes. This carries moderate risk as it allows an
930
+ * element to override other elements with the same ID.
931
+ */
932
+ allowIdAttributes() {
933
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
934
+ return e.set("id", { policyAction: d.KEEP }), this.sanitizerTable = new N(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
935
+ }
936
+ build() {
937
+ if (this.calledBuild)
938
+ throw new Error("this sanitizer has already called build");
939
+ return this.calledBuild = !0, new ht(this.sanitizerTable, w);
940
+ }
941
+ }
942
+ const Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
943
+ __proto__: null,
944
+ HtmlSanitizerBuilder: Xe
945
+ }, Symbol.toStringTag, { value: "Module" })), Ze = /* @__PURE__ */ g(Ye);
946
+ /**
947
+ * @license
948
+ * SPDX-License-Identifier: Apache-2.0
949
+ */
950
+ function Ve(t, ...e) {
951
+ if (e.length === 0)
952
+ return W(t[0]);
953
+ t[0].toLowerCase();
954
+ const i = [t[0]];
955
+ for (let n = 0; n < e.length; n++)
956
+ i.push(encodeURIComponent(e[n])), i.push(t[n + 1]);
957
+ return W(i.join(""));
958
+ }
959
+ function Je(t, e) {
960
+ let i = nt(t).toString();
961
+ if (/#/.test(i)) {
962
+ let r = "";
963
+ throw new Error(r);
964
+ }
965
+ let n = /\?/.test(i) ? "&" : "?";
966
+ return e.forEach((r, o) => {
967
+ const a = r instanceof Array ? r : [r];
968
+ for (let c = 0; c < a.length; c++) {
969
+ const s = a[c];
970
+ s != null && (i += n + encodeURIComponent(o) + "=" + encodeURIComponent(String(s)), n = "&");
971
+ }
972
+ }), W(i);
973
+ }
974
+ const Qe = /[^#]*/;
975
+ function ti(t, e) {
976
+ const i = nt(t).toString();
977
+ return W(Qe.exec(i)[0] + "#" + e);
978
+ }
979
+ function ei(t) {
980
+ const e = rt(t).toString(), i = new Blob([e], { type: "text/javascript" });
981
+ return W(URL.createObjectURL(i));
982
+ }
983
+ const ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
984
+ __proto__: null,
985
+ appendParams: Je,
986
+ blobUrlFromScript: ei,
987
+ replaceFragment: ti,
988
+ trustedResourceUrl: Ve
989
+ }, Symbol.toStringTag, { value: "Module" })), ni = /* @__PURE__ */ g(ii);
990
+ /**
991
+ * @license
992
+ * SPDX-License-Identifier: Apache-2.0
993
+ */
994
+ function ri(t) {
995
+ return Y(t[0]);
996
+ }
997
+ function oi(t) {
998
+ return Y(t.map(rt).join(""));
999
+ }
1000
+ function Kt(t) {
1001
+ return Y(JSON.stringify(t).replace(/</g, "\\x3c"));
1002
+ }
1003
+ function ai(t, ...e) {
1004
+ return (...i) => {
1005
+ const n = i.map((r) => Kt(r).toString());
1006
+ return Y(`(${t.join("")})(${n.join(",")})`);
1007
+ };
1008
+ }
1009
+ const ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1010
+ __proto__: null,
1011
+ concatScripts: oi,
1012
+ safeScript: ri,
1013
+ safeScriptWithArgs: ai,
1014
+ scriptFromJson: Kt
1015
+ }, Symbol.toStringTag, { value: "Module" })), li = /* @__PURE__ */ g(ci);
1016
+ /**
1017
+ * @license
1018
+ * SPDX-License-Identifier: Apache-2.0
1019
+ */
1020
+ function si(t) {
1021
+ const e = t[0];
1022
+ return pt(e);
1023
+ }
1024
+ function di(t) {
1025
+ return pt(t.map(Gt).join(""));
1026
+ }
1027
+ const ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1028
+ __proto__: null,
1029
+ concatStyles: di,
1030
+ safeStyle: si
1031
+ }, Symbol.toStringTag, { value: "Module" })), pi = /* @__PURE__ */ g(ui);
1032
+ /**
1033
+ * @license
1034
+ * SPDX-License-Identifier: Apache-2.0
1035
+ */
1036
+ class $t {
1037
+ constructor() {
1038
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
1039
+ p(this, "brand");
1040
+ }
1041
+ // To prevent structural typing.
1042
+ }
1043
+ class ft extends $t {
1044
+ constructor(i, n) {
1045
+ super();
1046
+ p(this, "privateDoNotAccessOrElseWrappedStyleSheet");
1047
+ this.privateDoNotAccessOrElseWrappedStyleSheet = i;
1048
+ }
1049
+ toString() {
1050
+ return this.privateDoNotAccessOrElseWrappedStyleSheet;
1051
+ }
1052
+ }
1053
+ function vt(t) {
1054
+ return new ft(t, w);
1055
+ }
1056
+ function hi(t) {
1057
+ return t instanceof ft;
1058
+ }
1059
+ function qt(t) {
1060
+ if (t instanceof ft)
1061
+ return t.privateDoNotAccessOrElseWrappedStyleSheet;
1062
+ {
1063
+ let e = "";
1064
+ throw new Error(e);
1065
+ }
1066
+ }
1067
+ const mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1068
+ __proto__: null,
1069
+ SafeStyleSheet: $t,
1070
+ createStyleSheet: vt,
1071
+ isStyleSheet: hi,
1072
+ unwrapStyleSheet: qt
1073
+ }, Symbol.toStringTag, { value: "Module" }));
1074
+ /**
1075
+ * @license
1076
+ * SPDX-License-Identifier: Apache-2.0
1077
+ */
1078
+ function fi(t) {
1079
+ const e = t[0];
1080
+ return vt(e);
1081
+ }
1082
+ function vi(t) {
1083
+ return vt(t.map(qt).join(""));
1084
+ }
1085
+ const gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1086
+ __proto__: null,
1087
+ concatStyleSheets: vi,
1088
+ safeStyleSheet: fi
1089
+ }, Symbol.toStringTag, { value: "Module" })), _i = /* @__PURE__ */ g(gi), yi = /* @__PURE__ */ g(ue), bi = /* @__PURE__ */ g(ye), Ai = /* @__PURE__ */ g(Ee), Ei = /* @__PURE__ */ g(Re), Si = /* @__PURE__ */ g(xe), wi = /* @__PURE__ */ g(mi);
1090
+ (function(t) {
1091
+ /**
1092
+ * @license
1093
+ * SPDX-License-Identifier: Apache-2.0
1094
+ */
1095
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.unwrapStyleSheet = t.SafeStyleSheet = t.isStyleSheet = t.unwrapStyle = t.SafeStyle = t.isStyle = t.unwrapScript = t.SafeScript = t.isScript = t.EMPTY_SCRIPT = t.unwrapResourceUrl = t.TrustedResourceUrl = t.isResourceUrl = t.unwrapHtml = t.SafeHtml = t.isHtml = t.EMPTY_HTML = t.unwrapAttributePrefix = t.SafeAttributePrefix = t.safeStyleSheet = t.concatStyleSheets = t.safeStyle = t.concatStyles = t.scriptFromJson = t.safeScriptWithArgs = t.safeScript = t.concatScripts = t.trustedResourceUrl = t.replaceFragment = t.blobUrlFromScript = t.appendParams = t.HtmlSanitizerBuilder = t.sanitizeHtmlToFragment = t.sanitizeHtmlAssertUnchanged = t.sanitizeHtml = t.htmlEscape = t.createScriptSrc = t.createScript = t.concatHtmls = t.safeAttrPrefix = void 0;
1096
+ var e = me;
1097
+ Object.defineProperty(t, "safeAttrPrefix", { enumerable: !0, get: function() {
1098
+ return e.safeAttrPrefix;
1099
+ } });
1100
+ var i = Ne;
1101
+ Object.defineProperty(t, "concatHtmls", { enumerable: !0, get: function() {
1102
+ return i.concatHtmls;
1103
+ } }), Object.defineProperty(t, "createScript", { enumerable: !0, get: function() {
1104
+ return i.createScript;
1105
+ } }), Object.defineProperty(t, "createScriptSrc", { enumerable: !0, get: function() {
1106
+ return i.createScriptSrc;
1107
+ } }), Object.defineProperty(t, "htmlEscape", { enumerable: !0, get: function() {
1108
+ return i.htmlEscape;
1109
+ } });
1110
+ var n = qe;
1111
+ Object.defineProperty(t, "sanitizeHtml", { enumerable: !0, get: function() {
1112
+ return n.sanitizeHtml;
1113
+ } }), Object.defineProperty(t, "sanitizeHtmlAssertUnchanged", { enumerable: !0, get: function() {
1114
+ return n.sanitizeHtmlAssertUnchanged;
1115
+ } }), Object.defineProperty(t, "sanitizeHtmlToFragment", { enumerable: !0, get: function() {
1116
+ return n.sanitizeHtmlToFragment;
1117
+ } });
1118
+ var r = Ze;
1119
+ Object.defineProperty(t, "HtmlSanitizerBuilder", { enumerable: !0, get: function() {
1120
+ return r.HtmlSanitizerBuilder;
1121
+ } });
1122
+ var o = ni;
1123
+ Object.defineProperty(t, "appendParams", { enumerable: !0, get: function() {
1124
+ return o.appendParams;
1125
+ } }), Object.defineProperty(t, "blobUrlFromScript", { enumerable: !0, get: function() {
1126
+ return o.blobUrlFromScript;
1127
+ } }), Object.defineProperty(t, "replaceFragment", { enumerable: !0, get: function() {
1128
+ return o.replaceFragment;
1129
+ } }), Object.defineProperty(t, "trustedResourceUrl", { enumerable: !0, get: function() {
1130
+ return o.trustedResourceUrl;
1131
+ } });
1132
+ var a = li;
1133
+ Object.defineProperty(t, "concatScripts", { enumerable: !0, get: function() {
1134
+ return a.concatScripts;
1135
+ } }), Object.defineProperty(t, "safeScript", { enumerable: !0, get: function() {
1136
+ return a.safeScript;
1137
+ } }), Object.defineProperty(t, "safeScriptWithArgs", { enumerable: !0, get: function() {
1138
+ return a.safeScriptWithArgs;
1139
+ } }), Object.defineProperty(t, "scriptFromJson", { enumerable: !0, get: function() {
1140
+ return a.scriptFromJson;
1141
+ } });
1142
+ var c = pi;
1143
+ Object.defineProperty(t, "concatStyles", { enumerable: !0, get: function() {
1144
+ return c.concatStyles;
1145
+ } }), Object.defineProperty(t, "safeStyle", { enumerable: !0, get: function() {
1146
+ return c.safeStyle;
1147
+ } });
1148
+ var s = _i;
1149
+ Object.defineProperty(t, "concatStyleSheets", { enumerable: !0, get: function() {
1150
+ return s.concatStyleSheets;
1151
+ } }), Object.defineProperty(t, "safeStyleSheet", { enumerable: !0, get: function() {
1152
+ return s.safeStyleSheet;
1153
+ } });
1154
+ var v = yi;
1155
+ Object.defineProperty(t, "SafeAttributePrefix", { enumerable: !0, get: function() {
1156
+ return v.SafeAttributePrefix;
1157
+ } }), Object.defineProperty(t, "unwrapAttributePrefix", { enumerable: !0, get: function() {
1158
+ return v.unwrapAttributePrefix;
1159
+ } });
1160
+ var y = bi;
1161
+ Object.defineProperty(t, "EMPTY_HTML", { enumerable: !0, get: function() {
1162
+ return y.EMPTY_HTML;
1163
+ } }), Object.defineProperty(t, "isHtml", { enumerable: !0, get: function() {
1164
+ return y.isHtml;
1165
+ } }), Object.defineProperty(t, "SafeHtml", { enumerable: !0, get: function() {
1166
+ return y.SafeHtml;
1167
+ } }), Object.defineProperty(t, "unwrapHtml", { enumerable: !0, get: function() {
1168
+ return y.unwrapHtml;
1169
+ } });
1170
+ var I = Ai;
1171
+ Object.defineProperty(t, "isResourceUrl", { enumerable: !0, get: function() {
1172
+ return I.isResourceUrl;
1173
+ } }), Object.defineProperty(t, "TrustedResourceUrl", { enumerable: !0, get: function() {
1174
+ return I.TrustedResourceUrl;
1175
+ } }), Object.defineProperty(t, "unwrapResourceUrl", { enumerable: !0, get: function() {
1176
+ return I.unwrapResourceUrl;
1177
+ } });
1178
+ var C = Ei;
1179
+ Object.defineProperty(t, "EMPTY_SCRIPT", { enumerable: !0, get: function() {
1180
+ return C.EMPTY_SCRIPT;
1181
+ } }), Object.defineProperty(t, "isScript", { enumerable: !0, get: function() {
1182
+ return C.isScript;
1183
+ } }), Object.defineProperty(t, "SafeScript", { enumerable: !0, get: function() {
1184
+ return C.SafeScript;
1185
+ } }), Object.defineProperty(t, "unwrapScript", { enumerable: !0, get: function() {
1186
+ return C.unwrapScript;
1187
+ } });
1188
+ var M = Si;
1189
+ Object.defineProperty(t, "isStyle", { enumerable: !0, get: function() {
1190
+ return M.isStyle;
1191
+ } }), Object.defineProperty(t, "SafeStyle", { enumerable: !0, get: function() {
1192
+ return M.SafeStyle;
1193
+ } }), Object.defineProperty(t, "unwrapStyle", { enumerable: !0, get: function() {
1194
+ return M.unwrapStyle;
1195
+ } });
1196
+ var k = wi;
1197
+ Object.defineProperty(t, "isStyleSheet", { enumerable: !0, get: function() {
1198
+ return k.isStyleSheet;
1199
+ } }), Object.defineProperty(t, "SafeStyleSheet", { enumerable: !0, get: function() {
1200
+ return k.SafeStyleSheet;
1201
+ } }), Object.defineProperty(t, "unwrapStyleSheet", { enumerable: !0, get: function() {
1202
+ return k.unwrapStyleSheet;
1203
+ } });
1204
+ })(D);
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
+ );
1256
+ /**
1257
+ * @license
1258
+ * Copyright 2016 Google Inc.
1259
+ *
1260
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1261
+ * of this software and associated documentation files (the "Software"), to deal
1262
+ * in the Software without restriction, including without limitation the rights
1263
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1264
+ * copies of the Software, and to permit persons to whom the Software is
1265
+ * furnished to do so, subject to the following conditions:
1266
+ *
1267
+ * The above copyright notice and this permission notice shall be included in
1268
+ * all copies or substantial portions of the Software.
1269
+ *
1270
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1271
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1272
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1273
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1274
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1275
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1276
+ * THE SOFTWARE.
1277
+ */
1278
+ var ot = (
1279
+ /** @class */
1280
+ function() {
1281
+ function t(e) {
1282
+ e === void 0 && (e = {}), this.adapter = e;
1283
+ }
1284
+ return Object.defineProperty(t, "cssClasses", {
1285
+ get: function() {
1286
+ return {};
1287
+ },
1288
+ enumerable: !1,
1289
+ configurable: !0
1290
+ }), Object.defineProperty(t, "strings", {
1291
+ get: function() {
1292
+ return {};
1293
+ },
1294
+ enumerable: !1,
1295
+ configurable: !0
1296
+ }), Object.defineProperty(t, "numbers", {
1297
+ get: function() {
1298
+ return {};
1299
+ },
1300
+ enumerable: !1,
1301
+ configurable: !0
1302
+ }), Object.defineProperty(t, "defaultAdapter", {
1303
+ get: function() {
1304
+ return {};
1305
+ },
1306
+ enumerable: !1,
1307
+ configurable: !0
1308
+ }), t.prototype.init = function() {
1309
+ }, t.prototype.destroy = function() {
1310
+ }, t;
1311
+ }()
1312
+ );
1313
+ /**
1314
+ * @license
1315
+ * Copyright 2020 Google Inc.
1316
+ *
1317
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1318
+ * of this software and associated documentation files (the "Software"), to deal
1319
+ * in the Software without restriction, including without limitation the rights
1320
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1321
+ * copies of the Software, and to permit persons to whom the Software is
1322
+ * furnished to do so, subject to the following conditions:
1323
+ *
1324
+ * The above copyright notice and this permission notice shall be included in
1325
+ * all copies or substantial portions of the Software.
1326
+ *
1327
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1328
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1329
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1330
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1331
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1332
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1333
+ * THE SOFTWARE.
1334
+ */
1335
+ var l = {
1336
+ UNKNOWN: "Unknown",
1337
+ BACKSPACE: "Backspace",
1338
+ ENTER: "Enter",
1339
+ SPACEBAR: "Spacebar",
1340
+ PAGE_UP: "PageUp",
1341
+ PAGE_DOWN: "PageDown",
1342
+ END: "End",
1343
+ HOME: "Home",
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;
1411
+ }
1412
+ function Ri(t) {
1413
+ return T.has(Xt(t));
1414
+ }
1415
+ /**
1416
+ * @license
1417
+ * Copyright 2020 Google Inc.
1418
+ *
1419
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1420
+ * of this software and associated documentation files (the "Software"), to deal
1421
+ * in the Software without restriction, including without limitation the rights
1422
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1423
+ * copies of the Software, and to permit persons to whom the Software is
1424
+ * furnished to do so, subject to the following conditions:
1425
+ *
1426
+ * The above copyright notice and this permission notice shall be included in
1427
+ * all copies or substantial portions of the Software.
1428
+ *
1429
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1430
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1431
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1432
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1433
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1434
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1435
+ * THE SOFTWARE.
1436
+ */
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
+ var K;
1450
+ (function(t) {
1451
+ t.INTERACTION = "MDCChipAction:interaction", t.NAVIGATION = "MDCChipAction:navigation";
1452
+ })(K || (K = {}));
1453
+ var z;
1454
+ (function(t) {
1455
+ t[t.FOCUSABLE = 0] = "FOCUSABLE", t[t.FOCUSABLE_AND_FOCUSED = 1] = "FOCUSABLE_AND_FOCUSED", t[t.NOT_FOCUSABLE = 2] = "NOT_FOCUSABLE";
1456
+ })(z || (z = {}));
1457
+ var h;
1458
+ (function(t) {
1459
+ t.ARIA_DISABLED = "aria-disabled", t.ARIA_HIDDEN = "aria-hidden", t.ARIA_SELECTED = "aria-selected", t.DATA_DELETABLE = "data-mdc-deletable", t.DISABLED = "disabled", t.ROLE = "role", t.TAB_INDEX = "tabindex";
1460
+ })(h || (h = {}));
1461
+ /**
1462
+ * @license
1463
+ * Copyright 2016 Google Inc.
1464
+ *
1465
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1466
+ * of this software and associated documentation files (the "Software"), to deal
1467
+ * in the Software without restriction, including without limitation the rights
1468
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1469
+ * copies of the Software, and to permit persons to whom the Software is
1470
+ * furnished to do so, subject to the following conditions:
1471
+ *
1472
+ * The above copyright notice and this permission notice shall be included in
1473
+ * all copies or substantial portions of the Software.
1474
+ *
1475
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1476
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1477
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1478
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1479
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1480
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1481
+ * THE SOFTWARE.
1482
+ */
1483
+ var u;
1484
+ (function(t) {
1485
+ t.SELECTING = "mdc-evolution-chip--selecting", t.DESELECTING = "mdc-evolution-chip--deselecting", t.SELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--selecting-with-primary-icon", t.DESELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--deselecting-with-primary-icon", t.DISABLED = "mdc-evolution-chip--disabled", t.ENTER = "mdc-evolution-chip--enter", t.EXIT = "mdc-evolution-chip--exit", t.SELECTED = "mdc-evolution-chip--selected", t.HIDDEN = "mdc-evolution-chip--hidden", t.WITH_PRIMARY_ICON = "mdc-evolution-chip--with-primary-icon";
1486
+ })(u || (u = {}));
1487
+ var G;
1488
+ (function(t) {
1489
+ t.INTERACTION = "MDCChip:interaction", t.NAVIGATION = "MDCChip:navigation", t.ANIMATION = "MDCChip:animation";
1490
+ })(G || (G = {}));
1491
+ var et;
1492
+ (function(t) {
1493
+ t.DATA_REMOVED_ANNOUNCEMENT = "data-mdc-removed-announcement", t.DATA_ADDED_ANNOUNCEMENT = "data-mdc-added-announcement";
1494
+ })(et || (et = {}));
1495
+ var O;
1496
+ (function(t) {
1497
+ t.ENTER = "mdc-evolution-chip-enter", t.EXIT = "mdc-evolution-chip-exit";
1498
+ })(O || (O = {}));
1499
+ /**
1500
+ * @license
1501
+ * Copyright 2020 Google Inc.
1502
+ *
1503
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1504
+ * of this software and associated documentation files (the "Software"), to deal
1505
+ * in the Software without restriction, including without limitation the rights
1506
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1507
+ * copies of the Software, and to permit persons to whom the Software is
1508
+ * furnished to do so, subject to the following conditions:
1509
+ *
1510
+ * The above copyright notice and this permission notice shall be included in
1511
+ * all copies or substantial portions of the Software.
1512
+ *
1513
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1514
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1515
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1516
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1517
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1518
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1519
+ * THE SOFTWARE.
1520
+ */
1521
+ var F;
1522
+ (function(t) {
1523
+ t[t.UNSPECIFIED = 0] = "UNSPECIFIED", t[t.LEFT = 1] = "LEFT", t[t.RIGHT = 2] = "RIGHT";
1524
+ })(F || (F = {}));
1525
+ var A;
1526
+ (function(t) {
1527
+ t.SELECTION = "selection", t.EXIT = "exit";
1528
+ })(A || (A = {}));
1529
+ var Ii = (
1530
+ /** @class */
1531
+ function(t) {
1532
+ U(e, t);
1533
+ function e(i) {
1534
+ var n = t.call(this, S(S({}, e.defaultAdapter), i)) || this;
1535
+ return n.animFrame = new Ti(), n;
1536
+ }
1537
+ return Object.defineProperty(e, "defaultAdapter", {
1538
+ get: function() {
1539
+ return {
1540
+ addClass: function() {
1541
+ },
1542
+ emitEvent: function() {
1543
+ },
1544
+ getActions: function() {
1545
+ return [];
1546
+ },
1547
+ getAttribute: function() {
1548
+ return null;
1549
+ },
1550
+ getElementID: function() {
1551
+ return "";
1552
+ },
1553
+ getOffsetWidth: function() {
1554
+ return 0;
1555
+ },
1556
+ hasClass: function() {
1557
+ return !1;
1558
+ },
1559
+ isActionDisabled: function() {
1560
+ return !1;
1561
+ },
1562
+ isActionFocusable: function() {
1563
+ return !1;
1564
+ },
1565
+ isActionSelectable: function() {
1566
+ return !1;
1567
+ },
1568
+ isActionSelected: function() {
1569
+ return !1;
1570
+ },
1571
+ isRTL: function() {
1572
+ return !1;
1573
+ },
1574
+ removeClass: function() {
1575
+ },
1576
+ setActionDisabled: function() {
1577
+ },
1578
+ setActionFocus: function() {
1579
+ },
1580
+ setActionSelected: function() {
1581
+ },
1582
+ setStyleProperty: function() {
1583
+ }
1584
+ };
1585
+ },
1586
+ enumerable: !1,
1587
+ configurable: !0
1588
+ }), e.prototype.destroy = function() {
1589
+ this.animFrame.cancelAll();
1590
+ }, e.prototype.getElementID = function() {
1591
+ return this.adapter.getElementID();
1592
+ }, e.prototype.setDisabled = function(i) {
1593
+ var n, r, o = this.getActions();
1594
+ try {
1595
+ for (var a = B(o), c = a.next(); !c.done; c = a.next()) {
1596
+ var s = c.value;
1597
+ this.adapter.setActionDisabled(s, i);
1598
+ }
1599
+ } catch (v) {
1600
+ n = { error: v };
1601
+ } finally {
1602
+ try {
1603
+ c && !c.done && (r = a.return) && r.call(a);
1604
+ } finally {
1605
+ if (n)
1606
+ throw n.error;
1607
+ }
1608
+ }
1609
+ i ? this.adapter.addClass(u.DISABLED) : this.adapter.removeClass(u.DISABLED);
1610
+ }, e.prototype.isDisabled = function() {
1611
+ var i, n, r = this.getActions();
1612
+ try {
1613
+ for (var o = B(r), a = o.next(); !a.done; a = o.next()) {
1614
+ var c = a.value;
1615
+ if (this.adapter.isActionDisabled(c))
1616
+ return !0;
1617
+ }
1618
+ } catch (s) {
1619
+ i = { error: s };
1620
+ } finally {
1621
+ try {
1622
+ a && !a.done && (n = o.return) && n.call(o);
1623
+ } finally {
1624
+ if (i)
1625
+ throw i.error;
1626
+ }
1627
+ }
1628
+ return !1;
1629
+ }, e.prototype.getActions = function() {
1630
+ return this.adapter.getActions();
1631
+ }, e.prototype.isActionFocusable = function(i) {
1632
+ return this.adapter.isActionFocusable(i);
1633
+ }, e.prototype.isActionSelectable = function(i) {
1634
+ return this.adapter.isActionSelectable(i);
1635
+ }, e.prototype.isActionSelected = function(i) {
1636
+ return this.adapter.isActionSelected(i);
1637
+ }, e.prototype.setActionFocus = function(i, n) {
1638
+ this.adapter.setActionFocus(i, n);
1639
+ }, e.prototype.setActionSelected = function(i, n) {
1640
+ this.adapter.setActionSelected(i, n), this.animateSelection(n);
1641
+ }, e.prototype.startAnimation = function(i) {
1642
+ if (i === O.ENTER) {
1643
+ this.adapter.addClass(u.ENTER);
1644
+ return;
1645
+ }
1646
+ if (i === O.EXIT) {
1647
+ this.adapter.addClass(u.EXIT);
1648
+ return;
1649
+ }
1650
+ }, e.prototype.handleAnimationEnd = function(i) {
1651
+ var n = this, r = i.animationName;
1652
+ if (r === O.ENTER) {
1653
+ this.adapter.removeClass(u.ENTER), this.adapter.emitEvent(G.ANIMATION, {
1654
+ chipID: this.getElementID(),
1655
+ animation: O.ENTER,
1656
+ addedAnnouncement: this.getAddedAnnouncement(),
1657
+ isComplete: !0
1658
+ });
1659
+ return;
1660
+ }
1661
+ if (r === O.EXIT) {
1662
+ this.adapter.removeClass(u.EXIT), this.adapter.addClass(u.HIDDEN);
1663
+ var o = this.adapter.getOffsetWidth();
1664
+ this.adapter.setStyleProperty("width", o + "px"), this.animFrame.request(A.EXIT, function() {
1665
+ n.animFrame.request(A.EXIT, function() {
1666
+ n.adapter.setStyleProperty("width", "0");
1667
+ });
1668
+ });
1669
+ }
1670
+ }, e.prototype.handleTransitionEnd = function() {
1671
+ this.adapter.hasClass(u.HIDDEN) && this.adapter.emitEvent(G.ANIMATION, {
1672
+ chipID: this.getElementID(),
1673
+ animation: O.EXIT,
1674
+ removedAnnouncement: this.getRemovedAnnouncement(),
1675
+ isComplete: !0
1676
+ });
1677
+ }, e.prototype.handleActionInteraction = function(i) {
1678
+ var n = i.detail, r = n.source, o = n.actionID, a = this.adapter.isActionSelectable(r), c = this.adapter.isActionSelected(r);
1679
+ this.adapter.emitEvent(G.INTERACTION, {
1680
+ chipID: this.getElementID(),
1681
+ shouldRemove: this.shouldRemove(n),
1682
+ actionID: o,
1683
+ isSelectable: a,
1684
+ isSelected: c,
1685
+ source: r
1686
+ });
1687
+ }, e.prototype.handleActionNavigation = function(i) {
1688
+ var n = i.detail, r = n.source, o = n.key, a = this.adapter.isRTL(), c = this.adapter.isActionFocusable(b.TRAILING), s = this.adapter.isActionFocusable(b.PRIMARY), v = this.directionFromKey(o, a), y = r === b.PRIMARY && v === F.RIGHT && c, I = r === b.TRAILING && v === F.LEFT && s;
1689
+ if (y) {
1690
+ this.navigateActions({ from: r, to: b.TRAILING });
1691
+ return;
1692
+ }
1693
+ if (I) {
1694
+ this.navigateActions({ from: r, to: b.PRIMARY });
1695
+ return;
1696
+ }
1697
+ this.adapter.emitEvent(G.NAVIGATION, {
1698
+ chipID: this.getElementID(),
1699
+ isRTL: a,
1700
+ source: r,
1701
+ key: o
1702
+ });
1703
+ }, e.prototype.directionFromKey = function(i, n) {
1704
+ var r = i === l.ARROW_LEFT, o = i === l.ARROW_RIGHT;
1705
+ return !n && r || n && o ? F.LEFT : !n && o || n && r ? F.RIGHT : F.UNSPECIFIED;
1706
+ }, e.prototype.navigateActions = function(i) {
1707
+ this.adapter.setActionFocus(i.from, z.NOT_FOCUSABLE), this.adapter.setActionFocus(i.to, z.FOCUSABLE_AND_FOCUSED);
1708
+ }, e.prototype.shouldRemove = function(i) {
1709
+ var n = i.source, r = i.trigger;
1710
+ return r === E.BACKSPACE_KEY || r === E.DELETE_KEY ? !0 : n === b.TRAILING;
1711
+ }, e.prototype.getRemovedAnnouncement = function() {
1712
+ var i = this.adapter.getAttribute(et.DATA_REMOVED_ANNOUNCEMENT);
1713
+ return i || void 0;
1714
+ }, e.prototype.getAddedAnnouncement = function() {
1715
+ var i = this.adapter.getAttribute(et.DATA_ADDED_ANNOUNCEMENT);
1716
+ return i || void 0;
1717
+ }, e.prototype.animateSelection = function(i) {
1718
+ var n = this;
1719
+ this.resetAnimationStyles(), this.animFrame.request(A.SELECTION, function() {
1720
+ n.animFrame.request(A.SELECTION, function() {
1721
+ n.updateSelectionStyles(i);
1722
+ });
1723
+ });
1724
+ }, e.prototype.resetAnimationStyles = function() {
1725
+ this.adapter.removeClass(u.SELECTING), this.adapter.removeClass(u.DESELECTING), this.adapter.removeClass(u.SELECTING_WITH_PRIMARY_ICON), this.adapter.removeClass(u.DESELECTING_WITH_PRIMARY_ICON);
1726
+ }, e.prototype.updateSelectionStyles = function(i) {
1727
+ var n = this, r = this.adapter.hasClass(u.WITH_PRIMARY_ICON);
1728
+ if (r && i) {
1729
+ this.adapter.addClass(u.SELECTING_WITH_PRIMARY_ICON), this.animFrame.request(A.SELECTION, function() {
1730
+ n.adapter.addClass(u.SELECTED);
1731
+ });
1732
+ return;
1733
+ }
1734
+ if (r && !i) {
1735
+ this.adapter.addClass(u.DESELECTING_WITH_PRIMARY_ICON), this.animFrame.request(A.SELECTION, function() {
1736
+ n.adapter.removeClass(u.SELECTED);
1737
+ });
1738
+ return;
1739
+ }
1740
+ if (i) {
1741
+ this.adapter.addClass(u.SELECTING), this.animFrame.request(A.SELECTION, function() {
1742
+ n.adapter.addClass(u.SELECTED);
1743
+ });
1744
+ return;
1745
+ }
1746
+ if (!i) {
1747
+ this.adapter.addClass(u.DESELECTING), this.animFrame.request(A.SELECTION, function() {
1748
+ n.adapter.removeClass(u.SELECTED);
1749
+ });
1750
+ return;
1751
+ }
1752
+ }, e;
1753
+ }(ot)
1754
+ );
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
+ /**
1857
+ * @license
1858
+ * Copyright 2019 Google Inc.
1859
+ *
1860
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1861
+ * of this software and associated documentation files (the "Software"), to deal
1862
+ * in the Software without restriction, including without limitation the rights
1863
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1864
+ * copies of the Software, and to permit persons to whom the Software is
1865
+ * furnished to do so, subject to the following conditions:
1866
+ *
1867
+ * The above copyright notice and this permission notice shall be included in
1868
+ * all copies or substantial portions of the Software.
1869
+ *
1870
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1871
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1872
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1873
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1874
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1875
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1876
+ * THE SOFTWARE.
1877
+ */
1878
+ function J(t) {
1879
+ return t === void 0 && (t = window), Pi(t) ? { passive: !0 } : !1;
1880
+ }
1881
+ function Pi(t) {
1882
+ t === void 0 && (t = window);
1883
+ var e = !1;
1884
+ try {
1885
+ var i = {
1886
+ // This function will be called when the browser
1887
+ // attempts to access the passive property.
1888
+ get passive() {
1889
+ return e = !0, !1;
1890
+ }
1891
+ }, n = function() {
1892
+ };
1893
+ t.document.addEventListener("test", n, i), t.document.removeEventListener("test", n, i);
1894
+ } catch {
1895
+ e = !1;
1896
+ }
1897
+ return e;
1898
+ }
1899
+ /**
1900
+ * @license
1901
+ * Copyright 2016 Google Inc.
1902
+ *
1903
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1904
+ * of this software and associated documentation files (the "Software"), to deal
1905
+ * in the Software without restriction, including without limitation the rights
1906
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1907
+ * copies of the Software, and to permit persons to whom the Software is
1908
+ * furnished to do so, subject to the following conditions:
1909
+ *
1910
+ * The above copyright notice and this permission notice shall be included in
1911
+ * all copies or substantial portions of the Software.
1912
+ *
1913
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1914
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1915
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1916
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1917
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1918
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
+ * THE SOFTWARE.
1920
+ */
1921
+ var Ci = {
1922
+ // Ripple is a special case where the "root" component is really a "mixin" of
1923
+ // sorts,
1924
+ // given that it's an 'upgrade' to an existing component. That being said it
1925
+ // is the root
1926
+ // CSS class that all other CSS classes derive from.
1927
+ BG_FOCUSED: "mdc-ripple-upgraded--background-focused",
1928
+ FG_ACTIVATION: "mdc-ripple-upgraded--foreground-activation",
1929
+ FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation",
1930
+ ROOT: "mdc-ripple-upgraded",
1931
+ UNBOUNDED: "mdc-ripple-upgraded--unbounded"
1932
+ }, Ni = {
1933
+ VAR_FG_SCALE: "--mdc-ripple-fg-scale",
1934
+ VAR_FG_SIZE: "--mdc-ripple-fg-size",
1935
+ VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end",
1936
+ VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start",
1937
+ VAR_LEFT: "--mdc-ripple-left",
1938
+ VAR_TOP: "--mdc-ripple-top"
1939
+ }, Et = {
1940
+ DEACTIVATION_TIMEOUT_MS: 225,
1941
+ // animation duration)
1942
+ FG_DEACTIVATION_MS: 150,
1943
+ // (i.e. deactivation animation duration)
1944
+ INITIAL_ORIGIN_SCALE: 0.6,
1945
+ PADDING: 10,
1946
+ TAP_DELAY_MS: 300
1947
+ // Delay between touch and simulated mouse events on touch devices
1948
+ }, Q;
1949
+ function Li(t, e) {
1950
+ e === void 0 && (e = !1);
1951
+ var i = t.CSS, n = Q;
1952
+ if (typeof Q == "boolean" && !e)
1953
+ return Q;
1954
+ var r = i && typeof i.supports == "function";
1955
+ if (!r)
1956
+ return !1;
1957
+ var o = i.supports("--css-vars", "yes"), a = i.supports("(--css-vars: yes)") && i.supports("color", "#00000000");
1958
+ return n = o || a, e || (Q = n), n;
1959
+ }
1960
+ function Fi(t, e, i) {
1961
+ if (!t)
1962
+ return { x: 0, y: 0 };
1963
+ var n = e.x, r = e.y, o = n + i.left, a = r + i.top, c, s;
1964
+ if (t.type === "touchstart") {
1965
+ var v = t;
1966
+ c = v.changedTouches[0].pageX - o, s = v.changedTouches[0].pageY - a;
1967
+ } else {
1968
+ var y = t;
1969
+ c = y.pageX - o, s = y.pageY - a;
1970
+ }
1971
+ return { x: c, y: s };
1972
+ }
1973
+ /**
1974
+ * @license
1975
+ * Copyright 2016 Google Inc.
1976
+ *
1977
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1978
+ * of this software and associated documentation files (the "Software"), to deal
1979
+ * in the Software without restriction, including without limitation the rights
1980
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1981
+ * copies of the Software, and to permit persons to whom the Software is
1982
+ * furnished to do so, subject to the following conditions:
1983
+ *
1984
+ * The above copyright notice and this permission notice shall be included in
1985
+ * all copies or substantial portions of the Software.
1986
+ *
1987
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1988
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1989
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1990
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1991
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1992
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1993
+ * THE SOFTWARE.
1994
+ */
1995
+ var St = [
1996
+ "touchstart",
1997
+ "pointerdown",
1998
+ "mousedown",
1999
+ "keydown"
2000
+ ], wt = [
2001
+ "touchend",
2002
+ "pointerup",
2003
+ "mouseup",
2004
+ "contextmenu"
2005
+ ], tt = [], Vt = (
2006
+ /** @class */
2007
+ function(t) {
2008
+ U(e, t);
2009
+ function e(i) {
2010
+ var n = t.call(this, S(S({}, e.defaultAdapter), i)) || this;
2011
+ 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
+ n.activationAnimationHasEnded = !0, n.runDeactivationUXLogicIfReady();
2013
+ }, n.activateHandler = function(r) {
2014
+ n.activateImpl(r);
2015
+ }, n.deactivateHandler = function() {
2016
+ n.deactivateImpl();
2017
+ }, n.focusHandler = function() {
2018
+ n.handleFocus();
2019
+ }, n.blurHandler = function() {
2020
+ n.handleBlur();
2021
+ }, n.resizeHandler = function() {
2022
+ n.layout();
2023
+ }, n;
2024
+ }
2025
+ return Object.defineProperty(e, "cssClasses", {
2026
+ get: function() {
2027
+ return Ci;
2028
+ },
2029
+ enumerable: !1,
2030
+ configurable: !0
2031
+ }), Object.defineProperty(e, "strings", {
2032
+ get: function() {
2033
+ return Ni;
2034
+ },
2035
+ enumerable: !1,
2036
+ configurable: !0
2037
+ }), Object.defineProperty(e, "numbers", {
2038
+ get: function() {
2039
+ return Et;
2040
+ },
2041
+ enumerable: !1,
2042
+ configurable: !0
2043
+ }), Object.defineProperty(e, "defaultAdapter", {
2044
+ get: function() {
2045
+ return {
2046
+ addClass: function() {
2047
+ },
2048
+ browserSupportsCssVars: function() {
2049
+ return !0;
2050
+ },
2051
+ computeBoundingRect: function() {
2052
+ return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
2053
+ },
2054
+ containsEventTarget: function() {
2055
+ return !0;
2056
+ },
2057
+ deregisterDocumentInteractionHandler: function() {
2058
+ },
2059
+ deregisterInteractionHandler: function() {
2060
+ },
2061
+ deregisterResizeHandler: function() {
2062
+ },
2063
+ getWindowPageOffset: function() {
2064
+ return { x: 0, y: 0 };
2065
+ },
2066
+ isSurfaceActive: function() {
2067
+ return !0;
2068
+ },
2069
+ isSurfaceDisabled: function() {
2070
+ return !0;
2071
+ },
2072
+ isUnbounded: function() {
2073
+ return !0;
2074
+ },
2075
+ registerDocumentInteractionHandler: function() {
2076
+ },
2077
+ registerInteractionHandler: function() {
2078
+ },
2079
+ registerResizeHandler: function() {
2080
+ },
2081
+ removeClass: function() {
2082
+ },
2083
+ updateCssVariable: function() {
2084
+ }
2085
+ };
2086
+ },
2087
+ enumerable: !1,
2088
+ configurable: !0
2089
+ }), e.prototype.init = function() {
2090
+ var i = this, n = this.supportsPressRipple();
2091
+ if (this.registerRootHandlers(n), n) {
2092
+ var r = e.cssClasses, o = r.ROOT, a = r.UNBOUNDED;
2093
+ requestAnimationFrame(function() {
2094
+ i.adapter.addClass(o), i.adapter.isUnbounded() && (i.adapter.addClass(a), i.layoutInternal());
2095
+ });
2096
+ }
2097
+ }, e.prototype.destroy = function() {
2098
+ var i = this;
2099
+ if (this.supportsPressRipple()) {
2100
+ this.activationTimer && (clearTimeout(this.activationTimer), this.activationTimer = 0, this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)), this.fgDeactivationRemovalTimer && (clearTimeout(this.fgDeactivationRemovalTimer), this.fgDeactivationRemovalTimer = 0, this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));
2101
+ var n = e.cssClasses, r = n.ROOT, o = n.UNBOUNDED;
2102
+ requestAnimationFrame(function() {
2103
+ i.adapter.removeClass(r), i.adapter.removeClass(o), i.removeCssVars();
2104
+ });
2105
+ }
2106
+ this.deregisterRootHandlers(), this.deregisterDeactivationHandlers();
2107
+ }, e.prototype.activate = function(i) {
2108
+ this.activateImpl(i);
2109
+ }, e.prototype.deactivate = function() {
2110
+ this.deactivateImpl();
2111
+ }, e.prototype.layout = function() {
2112
+ var i = this;
2113
+ this.layoutFrame && cancelAnimationFrame(this.layoutFrame), this.layoutFrame = requestAnimationFrame(function() {
2114
+ i.layoutInternal(), i.layoutFrame = 0;
2115
+ });
2116
+ }, e.prototype.setUnbounded = function(i) {
2117
+ var n = e.cssClasses.UNBOUNDED;
2118
+ i ? this.adapter.addClass(n) : this.adapter.removeClass(n);
2119
+ }, e.prototype.handleFocus = function() {
2120
+ var i = this;
2121
+ requestAnimationFrame(function() {
2122
+ i.adapter.addClass(e.cssClasses.BG_FOCUSED);
2123
+ });
2124
+ }, e.prototype.handleBlur = function() {
2125
+ var i = this;
2126
+ requestAnimationFrame(function() {
2127
+ i.adapter.removeClass(e.cssClasses.BG_FOCUSED);
2128
+ });
2129
+ }, e.prototype.supportsPressRipple = function() {
2130
+ return this.adapter.browserSupportsCssVars();
2131
+ }, e.prototype.defaultActivationState = function() {
2132
+ return {
2133
+ activationEvent: void 0,
2134
+ hasDeactivationUXRun: !1,
2135
+ isActivated: !1,
2136
+ isProgrammatic: !1,
2137
+ wasActivatedByPointer: !1,
2138
+ wasElementMadeActive: !1
2139
+ };
2140
+ }, e.prototype.registerRootHandlers = function(i) {
2141
+ var n, r;
2142
+ if (i) {
2143
+ try {
2144
+ for (var o = B(St), a = o.next(); !a.done; a = o.next()) {
2145
+ var c = a.value;
2146
+ this.adapter.registerInteractionHandler(c, this.activateHandler);
2147
+ }
2148
+ } catch (s) {
2149
+ n = { error: s };
2150
+ } finally {
2151
+ try {
2152
+ a && !a.done && (r = o.return) && r.call(o);
2153
+ } finally {
2154
+ if (n)
2155
+ throw n.error;
2156
+ }
2157
+ }
2158
+ this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler);
2159
+ }
2160
+ this.adapter.registerInteractionHandler("focus", this.focusHandler), this.adapter.registerInteractionHandler("blur", this.blurHandler);
2161
+ }, e.prototype.registerDeactivationHandlers = function(i) {
2162
+ var n, r;
2163
+ if (i.type === "keydown")
2164
+ this.adapter.registerInteractionHandler("keyup", this.deactivateHandler);
2165
+ else
2166
+ try {
2167
+ for (var o = B(wt), a = o.next(); !a.done; a = o.next()) {
2168
+ var c = a.value;
2169
+ this.adapter.registerDocumentInteractionHandler(c, this.deactivateHandler);
2170
+ }
2171
+ } catch (s) {
2172
+ n = { error: s };
2173
+ } finally {
2174
+ try {
2175
+ a && !a.done && (r = o.return) && r.call(o);
2176
+ } finally {
2177
+ if (n)
2178
+ throw n.error;
2179
+ }
2180
+ }
2181
+ }, e.prototype.deregisterRootHandlers = function() {
2182
+ var i, n;
2183
+ try {
2184
+ for (var r = B(St), o = r.next(); !o.done; o = r.next()) {
2185
+ var a = o.value;
2186
+ this.adapter.deregisterInteractionHandler(a, this.activateHandler);
2187
+ }
2188
+ } catch (c) {
2189
+ i = { error: c };
2190
+ } finally {
2191
+ try {
2192
+ o && !o.done && (n = r.return) && n.call(r);
2193
+ } finally {
2194
+ if (i)
2195
+ throw i.error;
2196
+ }
2197
+ }
2198
+ this.adapter.deregisterInteractionHandler("focus", this.focusHandler), this.adapter.deregisterInteractionHandler("blur", this.blurHandler), this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler);
2199
+ }, e.prototype.deregisterDeactivationHandlers = function() {
2200
+ var i, n;
2201
+ this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler);
2202
+ try {
2203
+ for (var r = B(wt), o = r.next(); !o.done; o = r.next()) {
2204
+ var a = o.value;
2205
+ this.adapter.deregisterDocumentInteractionHandler(a, this.deactivateHandler);
2206
+ }
2207
+ } catch (c) {
2208
+ i = { error: c };
2209
+ } finally {
2210
+ try {
2211
+ o && !o.done && (n = r.return) && n.call(r);
2212
+ } finally {
2213
+ if (i)
2214
+ throw i.error;
2215
+ }
2216
+ }
2217
+ }, e.prototype.removeCssVars = function() {
2218
+ var i = this, n = e.strings, r = Object.keys(n);
2219
+ r.forEach(function(o) {
2220
+ o.indexOf("VAR_") === 0 && i.adapter.updateCssVariable(n[o], null);
2221
+ });
2222
+ }, e.prototype.activateImpl = function(i) {
2223
+ var n = this;
2224
+ if (!this.adapter.isSurfaceDisabled()) {
2225
+ var r = this.activationState;
2226
+ if (!r.isActivated) {
2227
+ var o = this.previousActivationEvent, a = o && i !== void 0 && o.type !== i.type;
2228
+ if (!a) {
2229
+ r.isActivated = !0, r.isProgrammatic = i === void 0, r.activationEvent = i, r.wasActivatedByPointer = r.isProgrammatic ? !1 : i !== void 0 && (i.type === "mousedown" || i.type === "touchstart" || i.type === "pointerdown");
2230
+ var c = i !== void 0 && tt.length > 0 && tt.some(function(s) {
2231
+ return n.adapter.containsEventTarget(s);
2232
+ });
2233
+ if (c) {
2234
+ this.resetActivationState();
2235
+ return;
2236
+ }
2237
+ i !== void 0 && (tt.push(i.target), this.registerDeactivationHandlers(i)), r.wasElementMadeActive = this.checkElementMadeActive(i), r.wasElementMadeActive && this.animateActivation(), requestAnimationFrame(function() {
2238
+ tt = [], !r.wasElementMadeActive && i !== void 0 && (i.key === " " || i.keyCode === 32) && (r.wasElementMadeActive = n.checkElementMadeActive(i), r.wasElementMadeActive && n.animateActivation()), r.wasElementMadeActive || (n.activationState = n.defaultActivationState());
2239
+ });
2240
+ }
2241
+ }
2242
+ }
2243
+ }, e.prototype.checkElementMadeActive = function(i) {
2244
+ return i !== void 0 && i.type === "keydown" ? this.adapter.isSurfaceActive() : !0;
2245
+ }, e.prototype.animateActivation = function() {
2246
+ var i = this, n = e.strings, r = n.VAR_FG_TRANSLATE_START, o = n.VAR_FG_TRANSLATE_END, a = e.cssClasses, c = a.FG_DEACTIVATION, s = a.FG_ACTIVATION, v = e.numbers.DEACTIVATION_TIMEOUT_MS;
2247
+ this.layoutInternal();
2248
+ var y = "", I = "";
2249
+ if (!this.adapter.isUnbounded()) {
2250
+ var C = this.getFgTranslationCoordinates(), M = C.startPoint, k = C.endPoint;
2251
+ y = M.x + "px, " + M.y + "px", I = k.x + "px, " + k.y + "px";
2252
+ }
2253
+ this.adapter.updateCssVariable(r, y), this.adapter.updateCssVariable(o, I), clearTimeout(this.activationTimer), clearTimeout(this.fgDeactivationRemovalTimer), this.rmBoundedActivationClasses(), this.adapter.removeClass(c), this.adapter.computeBoundingRect(), this.adapter.addClass(s), this.activationTimer = setTimeout(function() {
2254
+ i.activationTimerCallback();
2255
+ }, v);
2256
+ }, e.prototype.getFgTranslationCoordinates = function() {
2257
+ var i = this.activationState, n = i.activationEvent, r = i.wasActivatedByPointer, o;
2258
+ r ? o = Fi(n, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : o = {
2259
+ x: this.frame.width / 2,
2260
+ y: this.frame.height / 2
2261
+ }, o = {
2262
+ x: o.x - this.initialSize / 2,
2263
+ y: o.y - this.initialSize / 2
2264
+ };
2265
+ var a = {
2266
+ x: this.frame.width / 2 - this.initialSize / 2,
2267
+ y: this.frame.height / 2 - this.initialSize / 2
2268
+ };
2269
+ return { startPoint: o, endPoint: a };
2270
+ }, e.prototype.runDeactivationUXLogicIfReady = function() {
2271
+ var i = this, n = e.cssClasses.FG_DEACTIVATION, r = this.activationState, o = r.hasDeactivationUXRun, a = r.isActivated, c = o || !a;
2272
+ c && this.activationAnimationHasEnded && (this.rmBoundedActivationClasses(), this.adapter.addClass(n), this.fgDeactivationRemovalTimer = setTimeout(function() {
2273
+ i.adapter.removeClass(n);
2274
+ }, Et.FG_DEACTIVATION_MS));
2275
+ }, e.prototype.rmBoundedActivationClasses = function() {
2276
+ var i = e.cssClasses.FG_ACTIVATION;
2277
+ this.adapter.removeClass(i), this.activationAnimationHasEnded = !1, this.adapter.computeBoundingRect();
2278
+ }, e.prototype.resetActivationState = function() {
2279
+ var i = this;
2280
+ this.previousActivationEvent = this.activationState.activationEvent, this.activationState = this.defaultActivationState(), setTimeout(function() {
2281
+ return i.previousActivationEvent = void 0;
2282
+ }, e.numbers.TAP_DELAY_MS);
2283
+ }, e.prototype.deactivateImpl = function() {
2284
+ var i = this, n = this.activationState;
2285
+ if (n.isActivated) {
2286
+ var r = S({}, n);
2287
+ n.isProgrammatic ? (requestAnimationFrame(function() {
2288
+ i.animateDeactivation(r);
2289
+ }), this.resetActivationState()) : (this.deregisterDeactivationHandlers(), requestAnimationFrame(function() {
2290
+ i.activationState.hasDeactivationUXRun = !0, i.animateDeactivation(r), i.resetActivationState();
2291
+ }));
2292
+ }
2293
+ }, e.prototype.animateDeactivation = function(i) {
2294
+ var n = i.wasActivatedByPointer, r = i.wasElementMadeActive;
2295
+ (n || r) && this.runDeactivationUXLogicIfReady();
2296
+ }, e.prototype.layoutInternal = function() {
2297
+ var i = this;
2298
+ this.frame = this.adapter.computeBoundingRect();
2299
+ var n = Math.max(this.frame.height, this.frame.width), r = function() {
2300
+ var a = Math.sqrt(Math.pow(i.frame.width, 2) + Math.pow(i.frame.height, 2));
2301
+ return a + e.numbers.PADDING;
2302
+ };
2303
+ this.maxRadius = this.adapter.isUnbounded() ? n : r();
2304
+ var o = Math.floor(n * e.numbers.INITIAL_ORIGIN_SCALE);
2305
+ this.adapter.isUnbounded() && o % 2 !== 0 ? this.initialSize = o - 1 : this.initialSize = o, this.fgScale = "" + this.maxRadius / this.initialSize, this.updateLayoutCssVars();
2306
+ }, e.prototype.updateLayoutCssVars = function() {
2307
+ var i = e.strings, n = i.VAR_FG_SIZE, r = i.VAR_LEFT, o = i.VAR_TOP, a = i.VAR_FG_SCALE;
2308
+ this.adapter.updateCssVariable(n, this.initialSize + "px"), this.adapter.updateCssVariable(a, this.fgScale), this.adapter.isUnbounded() && (this.unboundedCoords = {
2309
+ left: Math.round(this.frame.width / 2 - this.initialSize / 2),
2310
+ top: Math.round(this.frame.height / 2 - this.initialSize / 2)
2311
+ }, this.adapter.updateCssVariable(r, this.unboundedCoords.left + "px"), this.adapter.updateCssVariable(o, this.unboundedCoords.top + "px"));
2312
+ }, e;
2313
+ }(ot)
2314
+ );
2315
+ /**
2316
+ * @license
2317
+ * Copyright 2016 Google Inc.
2318
+ *
2319
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2320
+ * of this software and associated documentation files (the "Software"), to deal
2321
+ * in the Software without restriction, including without limitation the rights
2322
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2323
+ * copies of the Software, and to permit persons to whom the Software is
2324
+ * furnished to do so, subject to the following conditions:
2325
+ *
2326
+ * The above copyright notice and this permission notice shall be included in
2327
+ * all copies or substantial portions of the Software.
2328
+ *
2329
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2330
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2331
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2332
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2333
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2334
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2335
+ * THE SOFTWARE.
2336
+ */
2337
+ var Tt = (
2338
+ /** @class */
2339
+ function(t) {
2340
+ U(e, t);
2341
+ function e() {
2342
+ var i = t !== null && t.apply(this, arguments) || this;
2343
+ return i.disabled = !1, i;
2344
+ }
2345
+ return e.attachTo = function(i, n) {
2346
+ n === void 0 && (n = {
2347
+ isUnbounded: void 0
2348
+ });
2349
+ var r = new e(i);
2350
+ return n.isUnbounded !== void 0 && (r.unbounded = n.isUnbounded), r;
2351
+ }, e.createAdapter = function(i) {
2352
+ return {
2353
+ addClass: function(n) {
2354
+ i.root.classList.add(n);
2355
+ },
2356
+ browserSupportsCssVars: function() {
2357
+ return Li(window);
2358
+ },
2359
+ computeBoundingRect: function() {
2360
+ return i.root.getBoundingClientRect();
2361
+ },
2362
+ containsEventTarget: function(n) {
2363
+ return i.root.contains(n);
2364
+ },
2365
+ deregisterDocumentInteractionHandler: function(n, r) {
2366
+ document.documentElement.removeEventListener(n, r, J());
2367
+ },
2368
+ deregisterInteractionHandler: function(n, r) {
2369
+ i.root.removeEventListener(n, r, J());
2370
+ },
2371
+ deregisterResizeHandler: function(n) {
2372
+ window.removeEventListener("resize", n);
2373
+ },
2374
+ getWindowPageOffset: function() {
2375
+ return { x: window.pageXOffset, y: window.pageYOffset };
2376
+ },
2377
+ isSurfaceActive: function() {
2378
+ return Zt(i.root, ":active");
2379
+ },
2380
+ isSurfaceDisabled: function() {
2381
+ return !!i.disabled;
2382
+ },
2383
+ isUnbounded: function() {
2384
+ return !!i.unbounded;
2385
+ },
2386
+ registerDocumentInteractionHandler: function(n, r) {
2387
+ document.documentElement.addEventListener(n, r, J());
2388
+ },
2389
+ registerInteractionHandler: function(n, r) {
2390
+ i.root.addEventListener(n, r, J());
2391
+ },
2392
+ registerResizeHandler: function(n) {
2393
+ window.addEventListener("resize", n);
2394
+ },
2395
+ removeClass: function(n) {
2396
+ i.root.classList.remove(n);
2397
+ },
2398
+ updateCssVariable: function(n, r) {
2399
+ i.root.style.setProperty(n, r);
2400
+ }
2401
+ };
2402
+ }, Object.defineProperty(e.prototype, "unbounded", {
2403
+ get: function() {
2404
+ return !!this.isUnbounded;
2405
+ },
2406
+ set: function(i) {
2407
+ this.isUnbounded = !!i, this.setUnbounded();
2408
+ },
2409
+ enumerable: !1,
2410
+ configurable: !0
2411
+ }), e.prototype.activate = function() {
2412
+ this.foundation.activate();
2413
+ }, e.prototype.deactivate = function() {
2414
+ this.foundation.deactivate();
2415
+ }, e.prototype.layout = function() {
2416
+ this.foundation.layout();
2417
+ }, e.prototype.getDefaultFoundation = function() {
2418
+ return new Vt(e.createAdapter(this));
2419
+ }, e.prototype.initialSyncWithDOM = function() {
2420
+ var i = this.root;
2421
+ this.isUnbounded = "mdcRippleIsUnbounded" in i.dataset;
2422
+ }, e.prototype.setUnbounded = function() {
2423
+ this.foundation.setUnbounded(!!this.isUnbounded);
2424
+ }, e;
2425
+ }(Yt)
2426
+ );
2427
+ /**
2428
+ * @license
2429
+ * Copyright 2020 Google Inc.
2430
+ *
2431
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2432
+ * of this software and associated documentation files (the "Software"), to deal
2433
+ * in the Software without restriction, including without limitation the rights
2434
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2435
+ * copies of the Software, and to permit persons to whom the Software is
2436
+ * furnished to do so, subject to the following conditions:
2437
+ *
2438
+ * The above copyright notice and this permission notice shall be included in
2439
+ * all copies or substantial portions of the Software.
2440
+ *
2441
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2442
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2443
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2444
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2445
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2446
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2447
+ * THE SOFTWARE.
2448
+ */
2449
+ function zi(t, e) {
2450
+ var i = Number(e.replace("px", ""));
2451
+ return Number.isNaN(i) ? t : {
2452
+ width: t.width + i,
2453
+ height: t.height,
2454
+ top: t.top,
2455
+ right: t.right,
2456
+ bottom: t.bottom,
2457
+ left: t.left
2458
+ };
2459
+ }
2460
+ var Ui = "--mdc-chip-graphic-selected-width";
2461
+ /**
2462
+ * @license
2463
+ * Copyright 2020 Google Inc.
2464
+ *
2465
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2466
+ * of this software and associated documentation files (the "Software"), to deal
2467
+ * in the Software without restriction, including without limitation the rights
2468
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2469
+ * copies of the Software, and to permit persons to whom the Software is
2470
+ * furnished to do so, subject to the following conditions:
2471
+ *
2472
+ * The above copyright notice and this permission notice shall be included in
2473
+ * all copies or substantial portions of the Software.
2474
+ *
2475
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2476
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2477
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2478
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2479
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2480
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2481
+ * THE SOFTWARE.
2482
+ */
2483
+ var Z = /* @__PURE__ */ new Map();
2484
+ Z.set(l.SPACEBAR, E.SPACEBAR_KEY);
2485
+ Z.set(l.ENTER, E.ENTER_KEY);
2486
+ Z.set(l.DELETE, E.DELETE_KEY);
2487
+ Z.set(l.BACKSPACE, E.BACKSPACE_KEY);
2488
+ var Jt = (
2489
+ /** @class */
2490
+ function(t) {
2491
+ U(e, t);
2492
+ function e(i) {
2493
+ return t.call(this, S(S({}, e.defaultAdapter), i)) || this;
2494
+ }
2495
+ return Object.defineProperty(e, "defaultAdapter", {
2496
+ get: function() {
2497
+ return {
2498
+ emitEvent: function() {
2499
+ },
2500
+ focus: function() {
2501
+ },
2502
+ getAttribute: function() {
2503
+ return null;
2504
+ },
2505
+ getElementID: function() {
2506
+ return "";
2507
+ },
2508
+ removeAttribute: function() {
2509
+ },
2510
+ setAttribute: function() {
2511
+ }
2512
+ };
2513
+ },
2514
+ enumerable: !1,
2515
+ configurable: !0
2516
+ }), e.prototype.handleClick = function() {
2517
+ this.isDisabled() || this.emitInteraction(E.CLICK);
2518
+ }, e.prototype.handleKeydown = function(i) {
2519
+ var n = Xt(i);
2520
+ if (this.shouldNotifyInteractionFromKey(n)) {
2521
+ i.preventDefault(), this.emitInteraction(this.getTriggerFromKey(n));
2522
+ return;
2523
+ }
2524
+ if (Ri(i)) {
2525
+ i.preventDefault(), this.emitNavigation(n);
2526
+ return;
2527
+ }
2528
+ return !0;
2529
+ }, e.prototype.setDisabled = function(i) {
2530
+ if (this.isSelectable()) {
2531
+ this.adapter.setAttribute(h.ARIA_DISABLED, "" + i);
2532
+ return;
2533
+ }
2534
+ i ? this.adapter.setAttribute(h.DISABLED, "true") : this.adapter.removeAttribute(h.DISABLED);
2535
+ }, e.prototype.isDisabled = function() {
2536
+ return this.adapter.getAttribute(h.ARIA_DISABLED) === "true" || this.adapter.getAttribute(h.DISABLED) !== null;
2537
+ }, e.prototype.setFocus = function(i) {
2538
+ if (this.isFocusable()) {
2539
+ if (i === z.FOCUSABLE_AND_FOCUSED) {
2540
+ this.adapter.setAttribute(h.TAB_INDEX, "0"), this.adapter.focus();
2541
+ return;
2542
+ }
2543
+ if (i === z.FOCUSABLE) {
2544
+ this.adapter.setAttribute(h.TAB_INDEX, "0");
2545
+ return;
2546
+ }
2547
+ if (i === z.NOT_FOCUSABLE) {
2548
+ this.adapter.setAttribute(h.TAB_INDEX, "-1");
2549
+ return;
2550
+ }
2551
+ }
2552
+ }, e.prototype.isFocusable = function() {
2553
+ return !(this.isDisabled() || this.adapter.getAttribute(h.ARIA_HIDDEN) === "true");
2554
+ }, e.prototype.setSelected = function(i) {
2555
+ this.isSelectable() && this.adapter.setAttribute(h.ARIA_SELECTED, "" + i);
2556
+ }, e.prototype.isSelected = function() {
2557
+ return this.adapter.getAttribute(h.ARIA_SELECTED) === "true";
2558
+ }, e.prototype.emitInteraction = function(i) {
2559
+ this.adapter.emitEvent(K.INTERACTION, {
2560
+ actionID: this.adapter.getElementID(),
2561
+ source: this.actionType(),
2562
+ trigger: i
2563
+ });
2564
+ }, e.prototype.emitNavigation = function(i) {
2565
+ this.adapter.emitEvent(K.NAVIGATION, {
2566
+ source: this.actionType(),
2567
+ key: i
2568
+ });
2569
+ }, e.prototype.shouldNotifyInteractionFromKey = function(i) {
2570
+ var n = i === l.ENTER || i === l.SPACEBAR, r = i === l.BACKSPACE || i === l.DELETE;
2571
+ return !!(n || r && this.shouldEmitInteractionOnRemoveKey());
2572
+ }, e.prototype.getTriggerFromKey = function(i) {
2573
+ var n = Z.get(i);
2574
+ return n || E.UNSPECIFIED;
2575
+ }, e;
2576
+ }(ot)
2577
+ );
2578
+ /**
2579
+ * @license
2580
+ * Copyright 2020 Google Inc.
2581
+ *
2582
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2583
+ * of this software and associated documentation files (the "Software"), to deal
2584
+ * in the Software without restriction, including without limitation the rights
2585
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2586
+ * copies of the Software, and to permit persons to whom the Software is
2587
+ * furnished to do so, subject to the following conditions:
2588
+ *
2589
+ * The above copyright notice and this permission notice shall be included in
2590
+ * all copies or substantial portions of the Software.
2591
+ *
2592
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2593
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2594
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2595
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2596
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2597
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2598
+ * THE SOFTWARE.
2599
+ */
2600
+ var xi = (
2601
+ /** @class */
2602
+ function(t) {
2603
+ U(e, t);
2604
+ function e() {
2605
+ return t !== null && t.apply(this, arguments) || this;
2606
+ }
2607
+ return e.prototype.isSelectable = function() {
2608
+ return this.adapter.getAttribute(h.ROLE) === "option";
2609
+ }, e.prototype.actionType = function() {
2610
+ return b.PRIMARY;
2611
+ }, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
2612
+ return this.adapter.getAttribute(h.DATA_DELETABLE) === "true";
2613
+ }, e;
2614
+ }(Jt)
2615
+ );
2616
+ /**
2617
+ * @license
2618
+ * Copyright 2020 Google Inc.
2619
+ *
2620
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2621
+ * of this software and associated documentation files (the "Software"), to deal
2622
+ * in the Software without restriction, including without limitation the rights
2623
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2624
+ * copies of the Software, and to permit persons to whom the Software is
2625
+ * furnished to do so, subject to the following conditions:
2626
+ *
2627
+ * The above copyright notice and this permission notice shall be included in
2628
+ * all copies or substantial portions of the Software.
2629
+ *
2630
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2631
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2632
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2633
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2634
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2635
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2636
+ * THE SOFTWARE.
2637
+ */
2638
+ var Hi = (
2639
+ /** @class */
2640
+ function(t) {
2641
+ U(e, t);
2642
+ function e() {
2643
+ return t !== null && t.apply(this, arguments) || this;
2644
+ }
2645
+ return e.prototype.isSelectable = function() {
2646
+ return !1;
2647
+ }, e.prototype.actionType = function() {
2648
+ return b.TRAILING;
2649
+ }, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
2650
+ return !0;
2651
+ }, e;
2652
+ }(Jt)
2653
+ );
2654
+ /**
2655
+ * @license
2656
+ * Copyright 2020 Google Inc.
2657
+ *
2658
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2659
+ * of this software and associated documentation files (the "Software"), to deal
2660
+ * in the Software without restriction, including without limitation the rights
2661
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2662
+ * copies of the Software, and to permit persons to whom the Software is
2663
+ * furnished to do so, subject to the following conditions:
2664
+ *
2665
+ * The above copyright notice and this permission notice shall be included in
2666
+ * all copies or substantial portions of the Software.
2667
+ *
2668
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2669
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2670
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2671
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2672
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2673
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2674
+ * THE SOFTWARE.
2675
+ */
2676
+ var Mi = [
2677
+ D.safeAttrPrefix(Rt || (Rt = L(["aria-"], ["aria-"]))),
2678
+ D.safeAttrPrefix(It || (It = L(["data-"], ["data-"]))),
2679
+ D.safeAttrPrefix(Ot || (Ot = L(["disabled"], ["disabled"]))),
2680
+ D.safeAttrPrefix(Dt || (Dt = L(["role"], ["role"]))),
2681
+ D.safeAttrPrefix(Pt || (Pt = L(["tabindex"], ["tabindex"])))
2682
+ ], ki = (
2683
+ /** @class */
2684
+ function(t) {
2685
+ U(e, t);
2686
+ function e() {
2687
+ var i = t !== null && t.apply(this, arguments) || this;
2688
+ return i.rootHTML = i.root, i;
2689
+ }
2690
+ return e.attachTo = function(i) {
2691
+ return new e(i);
2692
+ }, Object.defineProperty(e.prototype, "ripple", {
2693
+ get: function() {
2694
+ return this.rippleInstance;
2695
+ },
2696
+ enumerable: !1,
2697
+ configurable: !0
2698
+ }), e.prototype.initialize = function(i) {
2699
+ var n = this;
2700
+ i === void 0 && (i = function(o, a) {
2701
+ return new Tt(o, a);
2702
+ });
2703
+ var r = S(S({}, Tt.createAdapter(this)), { computeBoundingRect: function() {
2704
+ return n.computeRippleClientRect();
2705
+ } });
2706
+ this.rippleInstance = i(this.root, new Vt(r));
2707
+ }, e.prototype.initialSyncWithDOM = function() {
2708
+ var i = this;
2709
+ this.handleClick = function() {
2710
+ i.foundation.handleClick();
2711
+ }, this.handleKeydown = function(n) {
2712
+ i.foundation.handleKeydown(n);
2713
+ }, this.listen("click", this.handleClick), this.listen("keydown", this.handleKeydown);
2714
+ }, e.prototype.destroy = function() {
2715
+ this.ripple.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown), t.prototype.destroy.call(this);
2716
+ }, e.prototype.getDefaultFoundation = function() {
2717
+ var i = this, n = {
2718
+ emitEvent: function(r, o) {
2719
+ i.emit(
2720
+ r,
2721
+ o,
2722
+ !0
2723
+ /* shouldBubble */
2724
+ );
2725
+ },
2726
+ focus: function() {
2727
+ i.rootHTML.focus();
2728
+ },
2729
+ getAttribute: function(r) {
2730
+ return i.root.getAttribute(r);
2731
+ },
2732
+ getElementID: function() {
2733
+ return i.root.id;
2734
+ },
2735
+ removeAttribute: function(r) {
2736
+ i.root.removeAttribute(r);
2737
+ },
2738
+ setAttribute: function(r, o) {
2739
+ jt(Mi, i.root, r, o);
2740
+ }
2741
+ };
2742
+ return this.root.classList.contains(X.TRAILING_ACTION) ? new Hi(n) : new xi(n);
2743
+ }, e.prototype.setDisabled = function(i) {
2744
+ this.foundation.setDisabled(i);
2745
+ }, e.prototype.isDisabled = function() {
2746
+ return this.foundation.isDisabled();
2747
+ }, e.prototype.setFocus = function(i) {
2748
+ this.foundation.setFocus(i);
2749
+ }, e.prototype.isFocusable = function() {
2750
+ return this.foundation.isFocusable();
2751
+ }, e.prototype.setSelected = function(i) {
2752
+ this.foundation.setSelected(i);
2753
+ }, e.prototype.isSelected = function() {
2754
+ return this.foundation.isSelected();
2755
+ }, e.prototype.isSelectable = function() {
2756
+ return this.foundation.isSelectable();
2757
+ }, e.prototype.actionType = function() {
2758
+ return this.foundation.actionType();
2759
+ }, e.prototype.computeRippleClientRect = function() {
2760
+ if (this.root.classList.contains(X.PRIMARY_ACTION)) {
2761
+ var i = Di(this.root, "." + X.CHIP_ROOT);
2762
+ if (!i)
2763
+ return this.root.getBoundingClientRect();
2764
+ var n = window.getComputedStyle(i).getPropertyValue(Ui);
2765
+ return zi(i.getBoundingClientRect(), n);
2766
+ }
2767
+ return this.root.getBoundingClientRect();
2768
+ }, e;
2769
+ }(Yt)
2770
+ ), Rt, It, Ot, Dt, Pt, Bi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, P = (t, e, i, n) => {
2771
+ for (var r = n > 1 ? void 0 : n ? Gi(e, i) : e, o = t.length - 1, a; o >= 0; o--)
2772
+ (a = t[o]) && (r = (n ? a(e, i, r) : a(r)) || r);
2773
+ return n && r && Bi(e, i, r), r;
2774
+ };
2775
+ let ji = 0;
2776
+ class R extends ee {
2777
+ constructor() {
2778
+ super(), this.mdcFoundationClass = Ii, this.label = "", this.icon = "", this.trailingIcon = !1, this.avatar = !1, this.disabled = !1, this.filter = !1, this.chipId = ji++;
2779
+ }
2780
+ render() {
2781
+ const e = {
2782
+ "mdc-evolution-chip": !0,
2783
+ "mdc-evolution-chip--disabled": this.disabled,
2784
+ "mdc-evolution-chip--with-trailing-action": this.trailingIcon,
2785
+ "mdc-evolution-chip--with-primary-graphic": !this.trailingIcon && this.icon,
2786
+ "mdc-evolution-chip--with-primary-icon": this.icon && !this.filter,
2787
+ "mdc-evolution-chip--filter": this.filter,
2788
+ "mdc-evolution-chip--selectable": this.filter,
2789
+ "mdc-evolution-chip--with-avatar": this.avatar,
2790
+ secondary: this.state === "secondary",
2791
+ negative: this.state === "negative",
2792
+ caution: this.state === "caution"
2793
+ };
2794
+ return q`
2795
+ <span
2796
+ class="${se(e)}"
2797
+ role="${this.filter ? "presentation" : "row"}"
2798
+ id="cv-chip-${this.chipId}"
2799
+ >
2800
+ <span
2801
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary"
2802
+ role="${this.filter ? "presentation" : "gridcell"}"
2803
+ >
2804
+ <button
2805
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--primary"
2806
+ role="${this.filter ? "option" : ""}"
2807
+ type="button"
2808
+ tabindex="-1"
2809
+ >
2810
+ <span
2811
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--primary"
2812
+ ></span>
2813
+ ${!this.trailingIcon && this.icon || this.filter ? this.renderGraphic() : ""}
2814
+ <span class="mdc-evolution-chip__text-label">${this.label}</span>
2815
+ </button>
2816
+ </span>
2817
+ ${this.trailingIcon ? this.renderTrailing() : ""}
2818
+ </span>
2819
+ `;
2820
+ }
2821
+ async firstUpdated() {
2822
+ this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.actions = /* @__PURE__ */ new Map();
2823
+ const e = this.mdcRoot.querySelectorAll(
2824
+ ".mdc-evolution-chip__action"
2825
+ );
2826
+ for (let i = 0; i < e.length; i++) {
2827
+ const n = new ki(e[i]);
2828
+ this.actions.set(n.actionType(), n), e[i].addEventListener(
2829
+ K.INTERACTION,
2830
+ (r) => {
2831
+ var o;
2832
+ (o = this.mdcFoundation) == null || o.handleActionInteraction(r);
2833
+ }
2834
+ ), e[i].addEventListener(K.NAVIGATION, (r) => {
2835
+ var o;
2836
+ (o = this.mdcFoundation) == null || o.handleActionNavigation(r);
2837
+ });
2838
+ }
2839
+ }
2840
+ renderGraphic() {
2841
+ const e = this.filter ? this.renderCheckMark() : this.renderIcon();
2842
+ return q`<span class="mdc-evolution-chip__graphic">
2843
+ ${e}
2844
+ </span>`;
2845
+ }
2846
+ renderCheckMark() {
2847
+ return q` <span class="mdc-evolution-chip__checkmark">
2848
+ <svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
2849
+ <path
2850
+ class="mdc-evolution-chip__checkmark-path"
2851
+ fill="none"
2852
+ d="M1.73,12.91 8.1,19.28 22.79,4.59"
2853
+ />
2854
+ </svg>
2855
+ </span>`;
2856
+ }
2857
+ renderIcon(e = !1) {
2858
+ return q` <span
2859
+ class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${e ? "trailing" : "primary"}"
2860
+ >
2861
+ ${this.icon}
2862
+ </span>`;
2863
+ }
2864
+ renderTrailing() {
2865
+ return q` <span
2866
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
2867
+ role="gridcell"
2868
+ >
2869
+ <button
2870
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--trailing"
2871
+ type="button"
2872
+ tabindex="-1"
2873
+ data-mdc-deletable="true"
2874
+ aria-label="Remove ${this.label}"
2875
+ >
2876
+ <span
2877
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--trailing"
2878
+ ></span>
2879
+ ${this.renderIcon(!0)}
2880
+ </button>
2881
+ </span>`;
2882
+ }
2883
+ createAdapter() {
2884
+ return {
2885
+ ...oe(this.mdcRoot),
2886
+ emitEvent: (e, i) => this.dispatchEvent(
2887
+ new CustomEvent(e, { bubbles: !0, detail: i })
2888
+ ),
2889
+ /** Returns the child actions provided by the chip. */
2890
+ getActions: () => {
2891
+ const e = [];
2892
+ for (const [i] of this.actions)
2893
+ e.push(i);
2894
+ return e;
2895
+ },
2896
+ /** Returns the value for the given attribute, if it exists. */
2897
+ getAttribute: (e) => this.mdcRoot.getAttribute(e),
2898
+ /** Returns the ID of the root element. */
2899
+ getElementID: () => this.mdcRoot.getAttribute("id") ?? "",
2900
+ /** Returns the offset width of the root element. */
2901
+ getOffsetWidth: () => this.mdcRoot.offsetWidth,
2902
+ /** Returns true if the root element has the given class. */
2903
+ hasClass: (e) => this.mdcRoot.classList.contains(e),
2904
+ /** Proxies to the MDCChipAction#isSelectable method. */
2905
+ isActionSelectable: (e) => {
2906
+ var i;
2907
+ return ((i = this.actions.get(e)) == null ? void 0 : i.isSelectable()) ?? !0;
2908
+ },
2909
+ /** Proxies to the MDCChipAction#isSelected method. */
2910
+ isActionSelected: (e) => {
2911
+ var i;
2912
+ return ((i = this.actions.get(e)) == null ? void 0 : i.isSelected()) ?? !1;
2913
+ },
2914
+ /** Proxies to the MDCChipAction#isFocusable method. */
2915
+ isActionFocusable: (e) => {
2916
+ var i;
2917
+ return ((i = this.actions.get(e)) == null ? void 0 : i.isFocusable()) ?? !0;
2918
+ },
2919
+ /** Proxies to the MDCChipAction#isDisabled method. */
2920
+ isActionDisabled: (e) => {
2921
+ var i;
2922
+ return ((i = this.actions.get(e)) == null ? void 0 : i.isDisabled()) ?? !1;
2923
+ },
2924
+ /** Returns true if the text direction is right-to-left. */
2925
+ isRTL: () => window.getComputedStyle(this.mdcRoot).getPropertyValue("direction") === "rtl",
2926
+ /** Proxies to the MDCChipAction#setDisabled method. */
2927
+ setActionDisabled: (e, i) => {
2928
+ var n;
2929
+ return (n = this.actions.get(e)) == null ? void 0 : n.setDisabled(i);
2930
+ },
2931
+ /** Proxies to the MDCChipAction#setFocus method. */
2932
+ setActionFocus: (e, i) => {
2933
+ var n;
2934
+ return (n = this.actions.get(e)) == null ? void 0 : n.setFocus(i);
2935
+ },
2936
+ /** Proxies to the MDCChipAction#setSelected method. */
2937
+ setActionSelected: (e, i) => {
2938
+ var n;
2939
+ return (n = this.actions.get(e)) == null ? void 0 : n.setSelected(i);
2940
+ },
2941
+ /** Sets the style property to the given value. */
2942
+ setStyleProperty: (e, i) => this.mdcRoot.style.setProperty(e, i)
2943
+ };
2944
+ }
2945
+ getActions() {
2946
+ var e;
2947
+ return ((e = this.mdcFoundation) == null ? void 0 : e.getActions()) ?? [];
2948
+ }
2949
+ getElementID() {
2950
+ var e;
2951
+ return ((e = this.mdcFoundation) == null ? void 0 : e.getElementID()) ?? "";
2952
+ }
2953
+ isActionFocusable(e) {
2954
+ var i;
2955
+ return ((i = this.mdcFoundation) == null ? void 0 : i.isActionFocusable(e)) ?? !1;
2956
+ }
2957
+ isActionSelectable(e) {
2958
+ var i;
2959
+ return ((i = this.mdcFoundation) == null ? void 0 : i.isActionSelectable(e)) ?? !1;
2960
+ }
2961
+ isActionSelected(e) {
2962
+ var i;
2963
+ return ((i = this.mdcFoundation) == null ? void 0 : i.isActionSelected(e)) ?? !1;
2964
+ }
2965
+ setActionFocus(e, i) {
2966
+ var n;
2967
+ return (n = this.mdcFoundation) == null ? void 0 : n.setActionFocus(e, i);
2968
+ }
2969
+ setActionSelected(e, i) {
2970
+ var n;
2971
+ return (n = this.mdcFoundation) == null ? void 0 : n.setActionSelected(e, i);
2972
+ }
2973
+ startAnimation(e) {
2974
+ var i;
2975
+ return (i = this.mdcFoundation) == null ? void 0 : i.startAnimation(e);
2976
+ }
2977
+ }
2978
+ P([
2979
+ le(".mdc-evolution-chip")
2980
+ ], R.prototype, "mdcRoot", 2);
2981
+ P([
2982
+ x()
2983
+ ], R.prototype, "label", 2);
2984
+ P([
2985
+ x({ type: String })
2986
+ ], R.prototype, "icon", 2);
2987
+ P([
2988
+ x({ type: Boolean, reflect: !0 })
2989
+ ], R.prototype, "trailingIcon", 2);
2990
+ P([
2991
+ x({ type: Boolean, reflect: !0 })
2992
+ ], R.prototype, "avatar", 2);
2993
+ P([
2994
+ x({ type: Boolean, reflect: !0 })
2995
+ ], R.prototype, "disabled", 2);
2996
+ P([
2997
+ x({ type: Boolean, reflect: !0 })
2998
+ ], R.prototype, "filter", 2);
2999
+ P([
3000
+ x()
3001
+ ], R.prototype, "state", 2);
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)}
3003
+ `;
3004
+ var Ki = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, qi = (t, e, i, n) => {
3005
+ for (var r = n > 1 ? void 0 : n ? $i(e, i) : e, o = t.length - 1, a; o >= 0; o--)
3006
+ (a = t[o]) && (r = (n ? a(e, i, r) : a(r)) || r);
3007
+ return n && r && Ki(e, i, r), r;
3008
+ };
3009
+ let it = class extends R {
3010
+ };
3011
+ it.styles = [
3012
+ ie`
3013
+ ${ne(Wi)}
3014
+ `
3015
+ ];
3016
+ it = qi([
3017
+ re("cv-chip")
3018
+ ], it);
3019
+ const nn = it;
3020
+ export {
3021
+ it as C,
3022
+ l as K,
3023
+ O as M,
3024
+ z as a,
3025
+ b,
3026
+ ot as c,
3027
+ G as d,
3028
+ nn as e
3029
+ };