@decidables/decidables-elements 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/decidablesElements.esm.js +260 -567
- package/lib/decidablesElements.esm.js.map +1 -1
- package/lib/decidablesElements.esm.min.js +47 -54
- package/lib/decidablesElements.esm.min.js.map +1 -1
- package/lib/decidablesElements.umd.js +260 -567
- package/lib/decidablesElements.umd.js.map +1 -1
- package/lib/decidablesElements.umd.min.js +47 -54
- package/lib/decidablesElements.umd.min.js.map +1 -1
- package/package.json +5 -5
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
* Copyright 2019 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
const t$
|
|
13
|
-
e$
|
|
14
|
-
s$
|
|
15
|
-
n$
|
|
16
|
-
let o$
|
|
12
|
+
const t$2 = window,
|
|
13
|
+
e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
14
|
+
s$5 = Symbol(),
|
|
15
|
+
n$5 = new WeakMap();
|
|
16
|
+
let o$5 = class o {
|
|
17
17
|
constructor(t, e, n) {
|
|
18
|
-
if (this._$cssResult$ = !0, n !== s$
|
|
18
|
+
if (this._$cssResult$ = !0, n !== s$5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
19
19
|
this.cssText = t, this.t = e;
|
|
20
20
|
}
|
|
21
21
|
get styleSheet() {
|
|
22
22
|
let t = this.o;
|
|
23
23
|
const s = this.t;
|
|
24
|
-
if (e$
|
|
24
|
+
if (e$4 && void 0 === t) {
|
|
25
25
|
const e = void 0 !== s && 1 === s.length;
|
|
26
|
-
e && (t = n$
|
|
26
|
+
e && (t = n$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && n$5.set(s, t));
|
|
27
27
|
}
|
|
28
28
|
return t;
|
|
29
29
|
}
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
return this.cssText;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const r$
|
|
35
|
-
S$
|
|
36
|
-
e$
|
|
34
|
+
const r$4 = t => new o$5("string" == typeof t ? t : t + "", void 0, s$5),
|
|
35
|
+
S$2 = (s, n) => {
|
|
36
|
+
e$4 ? s.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(e => {
|
|
37
37
|
const n = document.createElement("style"),
|
|
38
|
-
o = t$
|
|
38
|
+
o = t$2.litNonce;
|
|
39
39
|
void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
|
|
40
40
|
});
|
|
41
41
|
},
|
|
42
|
-
c$
|
|
42
|
+
c$1 = e$4 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
43
43
|
let e = "";
|
|
44
44
|
for (const s of t.cssRules) e += s.cssText;
|
|
45
|
-
return r$
|
|
45
|
+
return r$4(e);
|
|
46
46
|
})(t) : t;
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
var s$
|
|
54
|
-
const e$
|
|
55
|
-
r$
|
|
56
|
-
h$
|
|
57
|
-
o$
|
|
58
|
-
n$
|
|
53
|
+
var s$4;
|
|
54
|
+
const e$3 = window,
|
|
55
|
+
r$3 = e$3.trustedTypes,
|
|
56
|
+
h$2 = r$3 ? r$3.emptyScript : "",
|
|
57
|
+
o$4 = e$3.reactiveElementPolyfillSupport,
|
|
58
|
+
n$4 = {
|
|
59
59
|
toAttribute(t, i) {
|
|
60
60
|
switch (i) {
|
|
61
61
|
case Boolean:
|
|
62
|
-
t = t ? h$
|
|
62
|
+
t = t ? h$2 : null;
|
|
63
63
|
break;
|
|
64
64
|
case Object:
|
|
65
65
|
case Array:
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
return s;
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
a$
|
|
91
|
-
l$
|
|
90
|
+
a$2 = (t, i) => i !== t && (i == i || t == t),
|
|
91
|
+
l$4 = {
|
|
92
92
|
attribute: !0,
|
|
93
93
|
type: String,
|
|
94
|
-
converter: n$
|
|
94
|
+
converter: n$4,
|
|
95
95
|
reflect: !1,
|
|
96
|
-
hasChanged: a$
|
|
96
|
+
hasChanged: a$2
|
|
97
97
|
};
|
|
98
|
-
let d$
|
|
98
|
+
let d$1 = class d extends HTMLElement {
|
|
99
99
|
constructor() {
|
|
100
100
|
super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
|
|
101
101
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
void 0 !== e && (this._$Ev.set(e, s), t.push(e));
|
|
112
112
|
}), t;
|
|
113
113
|
}
|
|
114
|
-
static createProperty(t, i = l$
|
|
114
|
+
static createProperty(t, i = l$4) {
|
|
115
115
|
if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
116
116
|
const s = "symbol" == typeof t ? Symbol() : "__" + t,
|
|
117
117
|
e = this.getPropertyDescriptor(t, s, i);
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
static getPropertyOptions(t) {
|
|
135
|
-
return this.elementProperties.get(t) || l$
|
|
135
|
+
return this.elementProperties.get(t) || l$4;
|
|
136
136
|
}
|
|
137
137
|
static finalize() {
|
|
138
138
|
if (this.hasOwnProperty("finalized")) return !1;
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
const s = [];
|
|
150
150
|
if (Array.isArray(i)) {
|
|
151
151
|
const e = new Set(i.flat(1 / 0).reverse());
|
|
152
|
-
for (const i of e) s.unshift(c$
|
|
153
|
-
} else void 0 !== i && s.push(c$
|
|
152
|
+
for (const i of e) s.unshift(c$1(i));
|
|
153
|
+
} else void 0 !== i && s.push(c$1(i));
|
|
154
154
|
return s;
|
|
155
155
|
}
|
|
156
156
|
static _$Ep(t, i) {
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
createRenderRoot() {
|
|
178
178
|
var t;
|
|
179
179
|
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
180
|
-
return S$
|
|
180
|
+
return S$2(s, this.constructor.elementStyles), s;
|
|
181
181
|
}
|
|
182
182
|
connectedCallback() {
|
|
183
183
|
var t;
|
|
@@ -197,11 +197,11 @@
|
|
|
197
197
|
attributeChangedCallback(t, i, s) {
|
|
198
198
|
this._$AK(t, s);
|
|
199
199
|
}
|
|
200
|
-
_$EO(t, i, s = l$
|
|
200
|
+
_$EO(t, i, s = l$4) {
|
|
201
201
|
var e;
|
|
202
202
|
const r = this.constructor._$Ep(t, s);
|
|
203
203
|
if (void 0 !== r && !0 === s.reflect) {
|
|
204
|
-
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$
|
|
204
|
+
const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$4).toAttribute(i, s.type);
|
|
205
205
|
this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -213,13 +213,13 @@
|
|
|
213
213
|
const t = e.getPropertyOptions(r),
|
|
214
214
|
h = "function" == typeof t.converter ? {
|
|
215
215
|
fromAttribute: t.converter
|
|
216
|
-
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$
|
|
216
|
+
} : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$4;
|
|
217
217
|
this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
requestUpdate(t, i, s) {
|
|
221
221
|
let e = !0;
|
|
222
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$
|
|
222
|
+
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$2)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
|
|
223
223
|
}
|
|
224
224
|
async _$Ej() {
|
|
225
225
|
this.isUpdatePending = !0;
|
|
@@ -276,140 +276,149 @@
|
|
|
276
276
|
updated(t) {}
|
|
277
277
|
firstUpdated(t) {}
|
|
278
278
|
};
|
|
279
|
-
d$
|
|
279
|
+
d$1.finalized = !0, d$1.elementProperties = new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = {
|
|
280
280
|
mode: "open"
|
|
281
|
-
}, null == o$
|
|
282
|
-
ReactiveElement: d$
|
|
283
|
-
}), (null !== (s$
|
|
281
|
+
}, null == o$4 || o$4({
|
|
282
|
+
ReactiveElement: d$1
|
|
283
|
+
}), (null !== (s$4 = e$3.reactiveElementVersions) && void 0 !== s$4 ? s$4 : e$3.reactiveElementVersions = []).push("1.6.1");
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* @license
|
|
287
287
|
* Copyright 2017 Google LLC
|
|
288
288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
289
|
*/
|
|
290
|
-
var t$
|
|
291
|
-
const i$
|
|
292
|
-
s$
|
|
293
|
-
e$
|
|
290
|
+
var t$1;
|
|
291
|
+
const i$1 = window,
|
|
292
|
+
s$3 = i$1.trustedTypes,
|
|
293
|
+
e$2 = s$3 ? s$3.createPolicy("lit-html", {
|
|
294
294
|
createHTML: t => t
|
|
295
295
|
}) : void 0,
|
|
296
|
-
o$
|
|
297
|
-
n$
|
|
298
|
-
l$
|
|
299
|
-
h$
|
|
300
|
-
r$
|
|
301
|
-
d
|
|
302
|
-
u
|
|
303
|
-
c
|
|
304
|
-
v
|
|
305
|
-
a$
|
|
306
|
-
f
|
|
307
|
-
_
|
|
308
|
-
m
|
|
309
|
-
p$1
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
296
|
+
o$3 = "$lit$",
|
|
297
|
+
n$3 = `lit$${(Math.random() + "").slice(9)}$`,
|
|
298
|
+
l$3 = "?" + n$3,
|
|
299
|
+
h$1 = `<${l$3}>`,
|
|
300
|
+
r$2 = document,
|
|
301
|
+
d = () => r$2.createComment(""),
|
|
302
|
+
u = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
303
|
+
c = Array.isArray,
|
|
304
|
+
v = t => c(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
|
|
305
|
+
a$1 = "[ \t\n\f\r]",
|
|
306
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
307
|
+
_ = /-->/g,
|
|
308
|
+
m = />/g,
|
|
309
|
+
p = RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
310
|
+
g = /'/g,
|
|
311
|
+
$ = /"/g,
|
|
312
|
+
y = /^(?:script|style|textarea|title)$/i,
|
|
313
|
+
w = t => (i, ...s) => ({
|
|
314
|
+
_$litType$: t,
|
|
315
|
+
strings: i,
|
|
316
|
+
values: s
|
|
317
|
+
}),
|
|
318
|
+
x = w(1),
|
|
319
|
+
b = w(2),
|
|
320
|
+
T = Symbol.for("lit-noChange"),
|
|
321
|
+
A = Symbol.for("lit-nothing"),
|
|
322
|
+
E = new WeakMap(),
|
|
323
|
+
C = r$2.createTreeWalker(r$2, 129, null, !1),
|
|
324
|
+
P = (t, i) => {
|
|
316
325
|
const s = t.length - 1,
|
|
317
|
-
|
|
318
|
-
let
|
|
319
|
-
|
|
320
|
-
|
|
326
|
+
l = [];
|
|
327
|
+
let r,
|
|
328
|
+
d = 2 === i ? "<svg>" : "",
|
|
329
|
+
u = f;
|
|
321
330
|
for (let i = 0; i < s; i++) {
|
|
322
331
|
const s = t[i];
|
|
323
332
|
let e,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
for (;
|
|
328
|
-
const
|
|
329
|
-
|
|
333
|
+
c,
|
|
334
|
+
v = -1,
|
|
335
|
+
a = 0;
|
|
336
|
+
for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f ? "!--" === c[1] ? u = _ : void 0 !== c[1] ? u = m : void 0 !== c[2] ? (y.test(c[2]) && (r = RegExp("</" + c[2], "g")), u = p) : void 0 !== c[3] && (u = p) : u === p ? ">" === c[0] ? (u = null != r ? r : f, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, e = c[1], u = void 0 === c[3] ? p : '"' === c[3] ? $ : g) : u === $ || u === g ? u = p : u === _ || u === m ? u = f : (u = p, r = void 0);
|
|
337
|
+
const w = u === p && t[i + 1].startsWith("/>") ? " " : "";
|
|
338
|
+
d += u === f ? s + h$1 : v >= 0 ? (l.push(e), s.slice(0, v) + o$3 + s.slice(v) + n$3 + w) : s + n$3 + (-2 === v ? (l.push(void 0), i) : w);
|
|
330
339
|
}
|
|
331
|
-
const
|
|
340
|
+
const c = d + (t[s] || "<?>") + (2 === i ? "</svg>" : "");
|
|
332
341
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
333
|
-
return [void 0 !== e$
|
|
342
|
+
return [void 0 !== e$2 ? e$2.createHTML(c) : c, l];
|
|
334
343
|
};
|
|
335
|
-
|
|
344
|
+
class V {
|
|
336
345
|
constructor({
|
|
337
346
|
strings: t,
|
|
338
347
|
_$litType$: i
|
|
339
348
|
}, e) {
|
|
340
|
-
let
|
|
349
|
+
let h;
|
|
341
350
|
this.parts = [];
|
|
342
|
-
let
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
[
|
|
347
|
-
if (this.el =
|
|
351
|
+
let r = 0,
|
|
352
|
+
u = 0;
|
|
353
|
+
const c = t.length - 1,
|
|
354
|
+
v = this.parts,
|
|
355
|
+
[a, f] = P(t, i);
|
|
356
|
+
if (this.el = V.createElement(a, e), C.currentNode = this.el.content, 2 === i) {
|
|
348
357
|
const t = this.el.content,
|
|
349
358
|
i = t.firstChild;
|
|
350
359
|
i.remove(), t.append(...i.childNodes);
|
|
351
360
|
}
|
|
352
|
-
for (; null !== (
|
|
353
|
-
if (1 ===
|
|
354
|
-
if (
|
|
361
|
+
for (; null !== (h = C.nextNode()) && v.length < c;) {
|
|
362
|
+
if (1 === h.nodeType) {
|
|
363
|
+
if (h.hasAttributes()) {
|
|
355
364
|
const t = [];
|
|
356
|
-
for (const i of
|
|
357
|
-
const s =
|
|
365
|
+
for (const i of h.getAttributeNames()) if (i.endsWith(o$3) || i.startsWith(n$3)) {
|
|
366
|
+
const s = f[u++];
|
|
358
367
|
if (t.push(i), void 0 !== s) {
|
|
359
|
-
const t =
|
|
368
|
+
const t = h.getAttribute(s.toLowerCase() + o$3).split(n$3),
|
|
360
369
|
i = /([.?@])?(.*)/.exec(s);
|
|
361
|
-
|
|
370
|
+
v.push({
|
|
362
371
|
type: 1,
|
|
363
|
-
index:
|
|
372
|
+
index: r,
|
|
364
373
|
name: i[2],
|
|
365
374
|
strings: t,
|
|
366
|
-
ctor: "." === i[1] ?
|
|
375
|
+
ctor: "." === i[1] ? k : "?" === i[1] ? I : "@" === i[1] ? L : R
|
|
367
376
|
});
|
|
368
|
-
} else
|
|
377
|
+
} else v.push({
|
|
369
378
|
type: 6,
|
|
370
|
-
index:
|
|
379
|
+
index: r
|
|
371
380
|
});
|
|
372
381
|
}
|
|
373
|
-
for (const i of t)
|
|
382
|
+
for (const i of t) h.removeAttribute(i);
|
|
374
383
|
}
|
|
375
|
-
if (
|
|
376
|
-
const t =
|
|
384
|
+
if (y.test(h.tagName)) {
|
|
385
|
+
const t = h.textContent.split(n$3),
|
|
377
386
|
i = t.length - 1;
|
|
378
387
|
if (i > 0) {
|
|
379
|
-
|
|
380
|
-
for (let s = 0; s < i; s++)
|
|
388
|
+
h.textContent = s$3 ? s$3.emptyScript : "";
|
|
389
|
+
for (let s = 0; s < i; s++) h.append(t[s], d()), C.nextNode(), v.push({
|
|
381
390
|
type: 2,
|
|
382
|
-
index: ++
|
|
391
|
+
index: ++r
|
|
383
392
|
});
|
|
384
|
-
|
|
393
|
+
h.append(t[i], d());
|
|
385
394
|
}
|
|
386
395
|
}
|
|
387
|
-
} else if (8 ===
|
|
396
|
+
} else if (8 === h.nodeType) if (h.data === l$3) v.push({
|
|
388
397
|
type: 2,
|
|
389
|
-
index:
|
|
398
|
+
index: r
|
|
390
399
|
});else {
|
|
391
400
|
let t = -1;
|
|
392
|
-
for (; -1 !== (t =
|
|
401
|
+
for (; -1 !== (t = h.data.indexOf(n$3, t + 1));) v.push({
|
|
393
402
|
type: 7,
|
|
394
|
-
index:
|
|
395
|
-
}), t +=
|
|
403
|
+
index: r
|
|
404
|
+
}), t += n$3.length - 1;
|
|
396
405
|
}
|
|
397
|
-
|
|
406
|
+
r++;
|
|
398
407
|
}
|
|
399
408
|
}
|
|
400
409
|
static createElement(t, i) {
|
|
401
|
-
const s =
|
|
410
|
+
const s = r$2.createElement("template");
|
|
402
411
|
return s.innerHTML = t, s;
|
|
403
412
|
}
|
|
404
|
-
}
|
|
405
|
-
function
|
|
413
|
+
}
|
|
414
|
+
function N(t, i, s = t, e) {
|
|
406
415
|
var o, n, l, h;
|
|
407
|
-
if (i ===
|
|
416
|
+
if (i === T) return i;
|
|
408
417
|
let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
|
|
409
|
-
const
|
|
410
|
-
return (null == r ? void 0 : r.constructor) !==
|
|
418
|
+
const d = u(i) ? void 0 : i._$litDirective$;
|
|
419
|
+
return (null == r ? void 0 : r.constructor) !== d && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === d ? r = void 0 : (r = new d(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = N(t, r._$AS(t, i.values), r, e)), i;
|
|
411
420
|
}
|
|
412
|
-
let
|
|
421
|
+
let S$1 = class S {
|
|
413
422
|
constructor(t, i) {
|
|
414
423
|
this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
415
424
|
}
|
|
@@ -427,18 +436,18 @@
|
|
|
427
436
|
},
|
|
428
437
|
parts: e
|
|
429
438
|
} = this._$AD,
|
|
430
|
-
o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i :
|
|
431
|
-
|
|
432
|
-
let n =
|
|
439
|
+
o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : r$2).importNode(s, !0);
|
|
440
|
+
C.currentNode = o;
|
|
441
|
+
let n = C.nextNode(),
|
|
433
442
|
l = 0,
|
|
434
|
-
|
|
443
|
+
h = 0,
|
|
435
444
|
d = e[0];
|
|
436
445
|
for (; void 0 !== d;) {
|
|
437
446
|
if (l === d.index) {
|
|
438
447
|
let i;
|
|
439
|
-
2 === d.type ? i = new
|
|
448
|
+
2 === d.type ? i = new M(n, n.nextSibling, this, t) : 1 === d.type ? i = new d.ctor(n, d.name, d.strings, this, t) : 6 === d.type && (i = new z(n, this, t)), this.u.push(i), d = e[++h];
|
|
440
449
|
}
|
|
441
|
-
l !== (null == d ? void 0 : d.index) && (n =
|
|
450
|
+
l !== (null == d ? void 0 : d.index) && (n = C.nextNode(), l++);
|
|
442
451
|
}
|
|
443
452
|
return o;
|
|
444
453
|
}
|
|
@@ -447,10 +456,10 @@
|
|
|
447
456
|
for (const s of this.u) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
448
457
|
}
|
|
449
458
|
};
|
|
450
|
-
|
|
459
|
+
class M {
|
|
451
460
|
constructor(t, i, s, e) {
|
|
452
461
|
var o;
|
|
453
|
-
this.type = 2, this._$AH =
|
|
462
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cm = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
|
|
454
463
|
}
|
|
455
464
|
get _$AU() {
|
|
456
465
|
var t, i;
|
|
@@ -459,7 +468,7 @@
|
|
|
459
468
|
get parentNode() {
|
|
460
469
|
let t = this._$AA.parentNode;
|
|
461
470
|
const i = this._$AM;
|
|
462
|
-
return void 0 !== i && 11 === t.nodeType && (t = i.parentNode), t;
|
|
471
|
+
return void 0 !== i && 11 === (null == t ? void 0 : t.nodeType) && (t = i.parentNode), t;
|
|
463
472
|
}
|
|
464
473
|
get startNode() {
|
|
465
474
|
return this._$AA;
|
|
@@ -468,16 +477,16 @@
|
|
|
468
477
|
return this._$AB;
|
|
469
478
|
}
|
|
470
479
|
_$AI(t, i = this) {
|
|
471
|
-
t =
|
|
480
|
+
t = N(this, t, i), u(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== T && this.g(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : v(t) ? this.k(t) : this.g(t);
|
|
472
481
|
}
|
|
473
|
-
|
|
474
|
-
return this._$AA.parentNode.insertBefore(t,
|
|
482
|
+
S(t) {
|
|
483
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
475
484
|
}
|
|
476
485
|
T(t) {
|
|
477
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
|
486
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
478
487
|
}
|
|
479
488
|
g(t) {
|
|
480
|
-
this._$AH !==
|
|
489
|
+
this._$AH !== A && u(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
481
490
|
}
|
|
482
491
|
$(t) {
|
|
483
492
|
var i;
|
|
@@ -485,23 +494,23 @@
|
|
|
485
494
|
values: s,
|
|
486
495
|
_$litType$: e
|
|
487
496
|
} = t,
|
|
488
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el =
|
|
497
|
+
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = V.createElement(e.h, this.options)), e);
|
|
489
498
|
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.p(s);else {
|
|
490
|
-
const t = new
|
|
499
|
+
const t = new S$1(o, this),
|
|
491
500
|
i = t.v(this.options);
|
|
492
501
|
t.p(s), this.T(i), this._$AH = t;
|
|
493
502
|
}
|
|
494
503
|
}
|
|
495
504
|
_$AC(t) {
|
|
496
|
-
let i =
|
|
497
|
-
return void 0 === i &&
|
|
505
|
+
let i = E.get(t.strings);
|
|
506
|
+
return void 0 === i && E.set(t.strings, i = new V(t)), i;
|
|
498
507
|
}
|
|
499
508
|
k(t) {
|
|
500
|
-
|
|
509
|
+
c(this._$AH) || (this._$AH = [], this._$AR());
|
|
501
510
|
const i = this._$AH;
|
|
502
511
|
let s,
|
|
503
512
|
e = 0;
|
|
504
|
-
for (const o of t) e === i.length ? i.push(s = new
|
|
513
|
+
for (const o of t) e === i.length ? i.push(s = new M(this.S(d()), this.S(d()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
505
514
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
506
515
|
}
|
|
507
516
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -515,10 +524,10 @@
|
|
|
515
524
|
var i;
|
|
516
525
|
void 0 === this._$AM && (this._$Cm = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
517
526
|
}
|
|
518
|
-
}
|
|
519
|
-
|
|
527
|
+
}
|
|
528
|
+
class R {
|
|
520
529
|
constructor(t, i, s, e, o) {
|
|
521
|
-
this.type = 1, this._$AH =
|
|
530
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = A;
|
|
522
531
|
}
|
|
523
532
|
get tagName() {
|
|
524
533
|
return this.element.tagName;
|
|
@@ -529,52 +538,52 @@
|
|
|
529
538
|
_$AI(t, i = this, s, e) {
|
|
530
539
|
const o = this.strings;
|
|
531
540
|
let n = !1;
|
|
532
|
-
if (void 0 === o) t =
|
|
541
|
+
if (void 0 === o) t = N(this, t, i, 0), n = !u(t) || t !== this._$AH && t !== T, n && (this._$AH = t);else {
|
|
533
542
|
const e = t;
|
|
534
543
|
let l, h;
|
|
535
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h =
|
|
544
|
+
for (t = o[0], l = 0; l < o.length - 1; l++) h = N(this, e[s + l], i, l), h === T && (h = this._$AH[l]), n || (n = !u(h) || h !== this._$AH[l]), h === A ? t = A : t !== A && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
536
545
|
}
|
|
537
546
|
n && !e && this.j(t);
|
|
538
547
|
}
|
|
539
548
|
j(t) {
|
|
540
|
-
t ===
|
|
549
|
+
t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
541
550
|
}
|
|
542
|
-
}
|
|
543
|
-
|
|
551
|
+
}
|
|
552
|
+
class k extends R {
|
|
544
553
|
constructor() {
|
|
545
554
|
super(...arguments), this.type = 3;
|
|
546
555
|
}
|
|
547
556
|
j(t) {
|
|
548
|
-
this.element[this.name] = t ===
|
|
557
|
+
this.element[this.name] = t === A ? void 0 : t;
|
|
549
558
|
}
|
|
550
|
-
}
|
|
551
|
-
const
|
|
552
|
-
|
|
559
|
+
}
|
|
560
|
+
const H = s$3 ? s$3.emptyScript : "";
|
|
561
|
+
class I extends R {
|
|
553
562
|
constructor() {
|
|
554
563
|
super(...arguments), this.type = 4;
|
|
555
564
|
}
|
|
556
565
|
j(t) {
|
|
557
|
-
t && t !==
|
|
566
|
+
t && t !== A ? this.element.setAttribute(this.name, H) : this.element.removeAttribute(this.name);
|
|
558
567
|
}
|
|
559
|
-
}
|
|
560
|
-
|
|
568
|
+
}
|
|
569
|
+
class L extends R {
|
|
561
570
|
constructor(t, i, s, e, o) {
|
|
562
571
|
super(t, i, s, e, o), this.type = 5;
|
|
563
572
|
}
|
|
564
573
|
_$AI(t, i = this) {
|
|
565
574
|
var s;
|
|
566
|
-
if ((t = null !== (s =
|
|
575
|
+
if ((t = null !== (s = N(this, t, i, 0)) && void 0 !== s ? s : A) === T) return;
|
|
567
576
|
const e = this._$AH,
|
|
568
|
-
o = t ===
|
|
569
|
-
n = t !==
|
|
577
|
+
o = t === A && e !== A || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
578
|
+
n = t !== A && (e === A || o);
|
|
570
579
|
o && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
571
580
|
}
|
|
572
581
|
handleEvent(t) {
|
|
573
582
|
var i, s;
|
|
574
583
|
"function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
575
584
|
}
|
|
576
|
-
}
|
|
577
|
-
|
|
585
|
+
}
|
|
586
|
+
class z {
|
|
578
587
|
constructor(t, i, s) {
|
|
579
588
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
580
589
|
}
|
|
@@ -582,53 +591,63 @@
|
|
|
582
591
|
return this._$AM._$AU;
|
|
583
592
|
}
|
|
584
593
|
_$AI(t) {
|
|
585
|
-
|
|
594
|
+
N(this, t);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
const j = i$1.litHtmlPolyfillSupport;
|
|
598
|
+
null == j || j(V, M), (null !== (t$1 = i$1.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$1.litHtmlVersions = []).push("2.7.0");
|
|
599
|
+
const B = (t, i, s) => {
|
|
600
|
+
var e, o;
|
|
601
|
+
const n = null !== (e = null == s ? void 0 : s.renderBefore) && void 0 !== e ? e : i;
|
|
602
|
+
let l = n._$litPart$;
|
|
603
|
+
if (void 0 === l) {
|
|
604
|
+
const t = null !== (o = null == s ? void 0 : s.renderBefore) && void 0 !== o ? o : null;
|
|
605
|
+
n._$litPart$ = l = new M(i.insertBefore(d(), t), t, void 0, null != s ? s : {});
|
|
586
606
|
}
|
|
607
|
+
return l._$AI(t), l;
|
|
587
608
|
};
|
|
588
|
-
const z$1 = i$2.litHtmlPolyfillSupport;
|
|
589
|
-
null == z$1 || z$1(C$1, N$1), (null !== (t$2 = i$2.litHtmlVersions) && void 0 !== t$2 ? t$2 : i$2.litHtmlVersions = []).push("2.5.0");
|
|
590
609
|
|
|
591
610
|
/**
|
|
592
611
|
* @license
|
|
593
612
|
* Copyright 2019 Google LLC
|
|
594
613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
595
614
|
*/
|
|
596
|
-
const t
|
|
597
|
-
e$
|
|
598
|
-
n$
|
|
599
|
-
let s$
|
|
615
|
+
const t = window.ShadowRoot && (void 0 === window.ShadyCSS || window.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
616
|
+
e$1 = Symbol(),
|
|
617
|
+
n$2 = new Map();
|
|
618
|
+
let s$2 = class s {
|
|
600
619
|
constructor(t, n) {
|
|
601
|
-
if (this._$cssResult$ = !0, n !== e$
|
|
620
|
+
if (this._$cssResult$ = !0, n !== e$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
602
621
|
this.cssText = t;
|
|
603
622
|
}
|
|
604
623
|
get styleSheet() {
|
|
605
|
-
let e = n$
|
|
606
|
-
return t
|
|
624
|
+
let e = n$2.get(this.cssText);
|
|
625
|
+
return t && void 0 === e && (n$2.set(this.cssText, e = new CSSStyleSheet()), e.replaceSync(this.cssText)), e;
|
|
607
626
|
}
|
|
608
627
|
toString() {
|
|
609
628
|
return this.cssText;
|
|
610
629
|
}
|
|
611
630
|
};
|
|
612
|
-
const o$
|
|
613
|
-
r$
|
|
631
|
+
const o$2 = t => new s$2("string" == typeof t ? t : t + "", e$1),
|
|
632
|
+
r$1 = (t, ...n) => {
|
|
614
633
|
const o = 1 === t.length ? t[0] : n.reduce((e, n, s) => e + (t => {
|
|
615
634
|
if (!0 === t._$cssResult$) return t.cssText;
|
|
616
635
|
if ("number" == typeof t) return t;
|
|
617
636
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
618
637
|
})(n) + t[s + 1], t[0]);
|
|
619
|
-
return new s$
|
|
638
|
+
return new s$2(o, e$1);
|
|
620
639
|
},
|
|
621
|
-
i
|
|
622
|
-
t
|
|
640
|
+
i = (e, n) => {
|
|
641
|
+
t ? e.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(t => {
|
|
623
642
|
const n = document.createElement("style"),
|
|
624
643
|
s = window.litNonce;
|
|
625
644
|
void 0 !== s && n.setAttribute("nonce", s), n.textContent = t.cssText, e.appendChild(n);
|
|
626
645
|
});
|
|
627
646
|
},
|
|
628
|
-
S
|
|
647
|
+
S = t ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
629
648
|
let e = "";
|
|
630
649
|
for (const n of t.cssRules) e += n.cssText;
|
|
631
|
-
return o$
|
|
650
|
+
return o$2(e);
|
|
632
651
|
})(t) : t;
|
|
633
652
|
|
|
634
653
|
/**
|
|
@@ -636,15 +655,15 @@
|
|
|
636
655
|
* Copyright 2017 Google LLC
|
|
637
656
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
657
|
*/
|
|
639
|
-
var s$
|
|
640
|
-
const e
|
|
641
|
-
r
|
|
642
|
-
h
|
|
643
|
-
o$
|
|
658
|
+
var s$1;
|
|
659
|
+
const e = window.trustedTypes,
|
|
660
|
+
r = e ? e.emptyScript : "",
|
|
661
|
+
h = window.reactiveElementPolyfillSupport,
|
|
662
|
+
o$1 = {
|
|
644
663
|
toAttribute(t, i) {
|
|
645
664
|
switch (i) {
|
|
646
665
|
case Boolean:
|
|
647
|
-
t = t ? r
|
|
666
|
+
t = t ? r : null;
|
|
648
667
|
break;
|
|
649
668
|
case Object:
|
|
650
669
|
case Array:
|
|
@@ -672,15 +691,15 @@
|
|
|
672
691
|
return s;
|
|
673
692
|
}
|
|
674
693
|
},
|
|
675
|
-
n$
|
|
676
|
-
l$
|
|
694
|
+
n$1 = (t, i) => i !== t && (i == i || t == t),
|
|
695
|
+
l$2 = {
|
|
677
696
|
attribute: !0,
|
|
678
697
|
type: String,
|
|
679
|
-
converter: o$
|
|
698
|
+
converter: o$1,
|
|
680
699
|
reflect: !1,
|
|
681
|
-
hasChanged: n$
|
|
700
|
+
hasChanged: n$1
|
|
682
701
|
};
|
|
683
|
-
|
|
702
|
+
class a extends HTMLElement {
|
|
684
703
|
constructor() {
|
|
685
704
|
super(), this._$Et = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$Ei = null, this.o();
|
|
686
705
|
}
|
|
@@ -696,7 +715,7 @@
|
|
|
696
715
|
void 0 !== e && (this._$Eu.set(e, s), t.push(e));
|
|
697
716
|
}), t;
|
|
698
717
|
}
|
|
699
|
-
static createProperty(t, i = l$
|
|
718
|
+
static createProperty(t, i = l$2) {
|
|
700
719
|
if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
701
720
|
const s = "symbol" == typeof t ? Symbol() : "__" + t,
|
|
702
721
|
e = this.getPropertyDescriptor(t, s, i);
|
|
@@ -717,7 +736,7 @@
|
|
|
717
736
|
};
|
|
718
737
|
}
|
|
719
738
|
static getPropertyOptions(t) {
|
|
720
|
-
return this.elementProperties.get(t) || l$
|
|
739
|
+
return this.elementProperties.get(t) || l$2;
|
|
721
740
|
}
|
|
722
741
|
static finalize() {
|
|
723
742
|
if (this.hasOwnProperty("finalized")) return !1;
|
|
@@ -734,8 +753,8 @@
|
|
|
734
753
|
const s = [];
|
|
735
754
|
if (Array.isArray(i)) {
|
|
736
755
|
const e = new Set(i.flat(1 / 0).reverse());
|
|
737
|
-
for (const i of e) s.unshift(S
|
|
738
|
-
} else void 0 !== i && s.push(S
|
|
756
|
+
for (const i of e) s.unshift(S(i));
|
|
757
|
+
} else void 0 !== i && s.push(S(i));
|
|
739
758
|
return s;
|
|
740
759
|
}
|
|
741
760
|
static _$Eh(t, i) {
|
|
@@ -762,7 +781,7 @@
|
|
|
762
781
|
createRenderRoot() {
|
|
763
782
|
var t;
|
|
764
783
|
const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
765
|
-
return i
|
|
784
|
+
return i(s, this.constructor.elementStyles), s;
|
|
766
785
|
}
|
|
767
786
|
connectedCallback() {
|
|
768
787
|
var t;
|
|
@@ -782,11 +801,11 @@
|
|
|
782
801
|
attributeChangedCallback(t, i, s) {
|
|
783
802
|
this._$AK(t, s);
|
|
784
803
|
}
|
|
785
|
-
_$ES(t, i, s = l$
|
|
804
|
+
_$ES(t, i, s = l$2) {
|
|
786
805
|
var e, r;
|
|
787
806
|
const h = this.constructor._$Eh(t, s);
|
|
788
807
|
if (void 0 !== h && !0 === s.reflect) {
|
|
789
|
-
const n = (null !== (r = null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) && void 0 !== r ? r : o$
|
|
808
|
+
const n = (null !== (r = null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) && void 0 !== r ? r : o$1.toAttribute)(i, s.type);
|
|
790
809
|
this._$Ei = t, null == n ? this.removeAttribute(h) : this.setAttribute(h, n), this._$Ei = null;
|
|
791
810
|
}
|
|
792
811
|
}
|
|
@@ -797,13 +816,13 @@
|
|
|
797
816
|
if (void 0 !== n && this._$Ei !== n) {
|
|
798
817
|
const t = h.getPropertyOptions(n),
|
|
799
818
|
l = t.converter,
|
|
800
|
-
a = null !== (r = null !== (e = null === (s = l) || void 0 === s ? void 0 : s.fromAttribute) && void 0 !== e ? e : "function" == typeof l ? l : null) && void 0 !== r ? r : o$
|
|
819
|
+
a = null !== (r = null !== (e = null === (s = l) || void 0 === s ? void 0 : s.fromAttribute) && void 0 !== e ? e : "function" == typeof l ? l : null) && void 0 !== r ? r : o$1.fromAttribute;
|
|
801
820
|
this._$Ei = n, this[n] = a(i, t.type), this._$Ei = null;
|
|
802
821
|
}
|
|
803
822
|
}
|
|
804
823
|
requestUpdate(t, i, s) {
|
|
805
824
|
let e = !0;
|
|
806
|
-
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || n$
|
|
825
|
+
void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || n$1)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$Ei !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$Ep = this._$E_());
|
|
807
826
|
}
|
|
808
827
|
async _$E_() {
|
|
809
828
|
this.isUpdatePending = !0;
|
|
@@ -859,337 +878,12 @@
|
|
|
859
878
|
}
|
|
860
879
|
updated(t) {}
|
|
861
880
|
firstUpdated(t) {}
|
|
862
|
-
};
|
|
863
|
-
a$1.finalized = !0, a$1.elementProperties = new Map(), a$1.elementStyles = [], a$1.shadowRootOptions = {
|
|
864
|
-
mode: "open"
|
|
865
|
-
}, null == h$1 || h$1({
|
|
866
|
-
ReactiveElement: a$1
|
|
867
|
-
}), (null !== (s$2 = globalThis.reactiveElementVersions) && void 0 !== s$2 ? s$2 : globalThis.reactiveElementVersions = []).push("1.3.1");
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* @license
|
|
871
|
-
* Copyright 2017 Google LLC
|
|
872
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
873
|
-
*/
|
|
874
|
-
var t;
|
|
875
|
-
const i = globalThis.trustedTypes,
|
|
876
|
-
s$1 = i ? i.createPolicy("lit-html", {
|
|
877
|
-
createHTML: t => t
|
|
878
|
-
}) : void 0,
|
|
879
|
-
e = `lit$${(Math.random() + "").slice(9)}$`,
|
|
880
|
-
o$1 = "?" + e,
|
|
881
|
-
n$1 = `<${o$1}>`,
|
|
882
|
-
l$2 = document,
|
|
883
|
-
h = (t = "") => l$2.createComment(t),
|
|
884
|
-
r = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
885
|
-
d = Array.isArray,
|
|
886
|
-
u = t => {
|
|
887
|
-
var i;
|
|
888
|
-
return d(t) || "function" == typeof (null === (i = t) || void 0 === i ? void 0 : i[Symbol.iterator]);
|
|
889
|
-
},
|
|
890
|
-
c = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
891
|
-
v = /-->/g,
|
|
892
|
-
a = />/g,
|
|
893
|
-
f = />|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,
|
|
894
|
-
_ = /'/g,
|
|
895
|
-
m = /"/g,
|
|
896
|
-
g = /^(?:script|style|textarea|title)$/i,
|
|
897
|
-
p = t => (i, ...s) => ({
|
|
898
|
-
_$litType$: t,
|
|
899
|
-
strings: i,
|
|
900
|
-
values: s
|
|
901
|
-
}),
|
|
902
|
-
$ = p(1),
|
|
903
|
-
y = p(2),
|
|
904
|
-
b = Symbol.for("lit-noChange"),
|
|
905
|
-
w = Symbol.for("lit-nothing"),
|
|
906
|
-
T = new WeakMap(),
|
|
907
|
-
x = (t, i, s) => {
|
|
908
|
-
var e, o;
|
|
909
|
-
const n = null !== (e = null == s ? void 0 : s.renderBefore) && void 0 !== e ? e : i;
|
|
910
|
-
let l = n._$litPart$;
|
|
911
|
-
if (void 0 === l) {
|
|
912
|
-
const t = null !== (o = null == s ? void 0 : s.renderBefore) && void 0 !== o ? o : null;
|
|
913
|
-
n._$litPart$ = l = new N(i.insertBefore(h(), t), t, void 0, null != s ? s : {});
|
|
914
|
-
}
|
|
915
|
-
return l._$AI(t), l;
|
|
916
|
-
},
|
|
917
|
-
A = l$2.createTreeWalker(l$2, 129, null, !1),
|
|
918
|
-
C = (t, i) => {
|
|
919
|
-
const o = t.length - 1,
|
|
920
|
-
l = [];
|
|
921
|
-
let h,
|
|
922
|
-
r = 2 === i ? "<svg>" : "",
|
|
923
|
-
d = c;
|
|
924
|
-
for (let i = 0; i < o; i++) {
|
|
925
|
-
const s = t[i];
|
|
926
|
-
let o,
|
|
927
|
-
u,
|
|
928
|
-
p = -1,
|
|
929
|
-
$ = 0;
|
|
930
|
-
for (; $ < s.length && (d.lastIndex = $, u = d.exec(s), null !== u);) $ = d.lastIndex, d === c ? "!--" === u[1] ? d = v : void 0 !== u[1] ? d = a : void 0 !== u[2] ? (g.test(u[2]) && (h = RegExp("</" + u[2], "g")), d = f) : void 0 !== u[3] && (d = f) : d === f ? ">" === u[0] ? (d = null != h ? h : c, p = -1) : void 0 === u[1] ? p = -2 : (p = d.lastIndex - u[2].length, o = u[1], d = void 0 === u[3] ? f : '"' === u[3] ? m : _) : d === m || d === _ ? d = f : d === v || d === a ? d = c : (d = f, h = void 0);
|
|
931
|
-
const y = d === f && t[i + 1].startsWith("/>") ? " " : "";
|
|
932
|
-
r += d === c ? s + n$1 : p >= 0 ? (l.push(o), s.slice(0, p) + "$lit$" + s.slice(p) + e + y) : s + e + (-2 === p ? (l.push(void 0), i) : y);
|
|
933
|
-
}
|
|
934
|
-
const u = r + (t[o] || "<?>") + (2 === i ? "</svg>" : "");
|
|
935
|
-
if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
936
|
-
return [void 0 !== s$1 ? s$1.createHTML(u) : u, l];
|
|
937
|
-
};
|
|
938
|
-
class E {
|
|
939
|
-
constructor({
|
|
940
|
-
strings: t,
|
|
941
|
-
_$litType$: s
|
|
942
|
-
}, n) {
|
|
943
|
-
let l;
|
|
944
|
-
this.parts = [];
|
|
945
|
-
let r = 0,
|
|
946
|
-
d = 0;
|
|
947
|
-
const u = t.length - 1,
|
|
948
|
-
c = this.parts,
|
|
949
|
-
[v, a] = C(t, s);
|
|
950
|
-
if (this.el = E.createElement(v, n), A.currentNode = this.el.content, 2 === s) {
|
|
951
|
-
const t = this.el.content,
|
|
952
|
-
i = t.firstChild;
|
|
953
|
-
i.remove(), t.append(...i.childNodes);
|
|
954
|
-
}
|
|
955
|
-
for (; null !== (l = A.nextNode()) && c.length < u;) {
|
|
956
|
-
if (1 === l.nodeType) {
|
|
957
|
-
if (l.hasAttributes()) {
|
|
958
|
-
const t = [];
|
|
959
|
-
for (const i of l.getAttributeNames()) if (i.endsWith("$lit$") || i.startsWith(e)) {
|
|
960
|
-
const s = a[d++];
|
|
961
|
-
if (t.push(i), void 0 !== s) {
|
|
962
|
-
const t = l.getAttribute(s.toLowerCase() + "$lit$").split(e),
|
|
963
|
-
i = /([.?@])?(.*)/.exec(s);
|
|
964
|
-
c.push({
|
|
965
|
-
type: 1,
|
|
966
|
-
index: r,
|
|
967
|
-
name: i[2],
|
|
968
|
-
strings: t,
|
|
969
|
-
ctor: "." === i[1] ? M : "?" === i[1] ? H : "@" === i[1] ? I : S
|
|
970
|
-
});
|
|
971
|
-
} else c.push({
|
|
972
|
-
type: 6,
|
|
973
|
-
index: r
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
for (const i of t) l.removeAttribute(i);
|
|
977
|
-
}
|
|
978
|
-
if (g.test(l.tagName)) {
|
|
979
|
-
const t = l.textContent.split(e),
|
|
980
|
-
s = t.length - 1;
|
|
981
|
-
if (s > 0) {
|
|
982
|
-
l.textContent = i ? i.emptyScript : "";
|
|
983
|
-
for (let i = 0; i < s; i++) l.append(t[i], h()), A.nextNode(), c.push({
|
|
984
|
-
type: 2,
|
|
985
|
-
index: ++r
|
|
986
|
-
});
|
|
987
|
-
l.append(t[s], h());
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
} else if (8 === l.nodeType) if (l.data === o$1) c.push({
|
|
991
|
-
type: 2,
|
|
992
|
-
index: r
|
|
993
|
-
});else {
|
|
994
|
-
let t = -1;
|
|
995
|
-
for (; -1 !== (t = l.data.indexOf(e, t + 1));) c.push({
|
|
996
|
-
type: 7,
|
|
997
|
-
index: r
|
|
998
|
-
}), t += e.length - 1;
|
|
999
|
-
}
|
|
1000
|
-
r++;
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
static createElement(t, i) {
|
|
1004
|
-
const s = l$2.createElement("template");
|
|
1005
|
-
return s.innerHTML = t, s;
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
function P(t, i, s = t, e) {
|
|
1009
|
-
var o, n, l, h;
|
|
1010
|
-
if (i === b) return i;
|
|
1011
|
-
let d = void 0 !== e ? null === (o = s._$Cl) || void 0 === o ? void 0 : o[e] : s._$Cu;
|
|
1012
|
-
const u = r(i) ? void 0 : i._$litDirective$;
|
|
1013
|
-
return (null == d ? void 0 : d.constructor) !== u && (null === (n = null == d ? void 0 : d._$AO) || void 0 === n || n.call(d, !1), void 0 === u ? d = void 0 : (d = new u(t), d._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Cl) && void 0 !== l ? l : h._$Cl = [])[e] = d : s._$Cu = d), void 0 !== d && (i = P(t, d._$AS(t, i.values), d, e)), i;
|
|
1014
|
-
}
|
|
1015
|
-
class V {
|
|
1016
|
-
constructor(t, i) {
|
|
1017
|
-
this.v = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
1018
|
-
}
|
|
1019
|
-
get parentNode() {
|
|
1020
|
-
return this._$AM.parentNode;
|
|
1021
|
-
}
|
|
1022
|
-
get _$AU() {
|
|
1023
|
-
return this._$AM._$AU;
|
|
1024
|
-
}
|
|
1025
|
-
p(t) {
|
|
1026
|
-
var i;
|
|
1027
|
-
const {
|
|
1028
|
-
el: {
|
|
1029
|
-
content: s
|
|
1030
|
-
},
|
|
1031
|
-
parts: e
|
|
1032
|
-
} = this._$AD,
|
|
1033
|
-
o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : l$2).importNode(s, !0);
|
|
1034
|
-
A.currentNode = o;
|
|
1035
|
-
let n = A.nextNode(),
|
|
1036
|
-
h = 0,
|
|
1037
|
-
r = 0,
|
|
1038
|
-
d = e[0];
|
|
1039
|
-
for (; void 0 !== d;) {
|
|
1040
|
-
if (h === d.index) {
|
|
1041
|
-
let i;
|
|
1042
|
-
2 === d.type ? i = new N(n, n.nextSibling, this, t) : 1 === d.type ? i = new d.ctor(n, d.name, d.strings, this, t) : 6 === d.type && (i = new L(n, this, t)), this.v.push(i), d = e[++r];
|
|
1043
|
-
}
|
|
1044
|
-
h !== (null == d ? void 0 : d.index) && (n = A.nextNode(), h++);
|
|
1045
|
-
}
|
|
1046
|
-
return o;
|
|
1047
|
-
}
|
|
1048
|
-
m(t) {
|
|
1049
|
-
let i = 0;
|
|
1050
|
-
for (const s of this.v) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
1051
|
-
}
|
|
1052
881
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
get _$AU() {
|
|
1059
|
-
var t, i;
|
|
1060
|
-
return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cg;
|
|
1061
|
-
}
|
|
1062
|
-
get parentNode() {
|
|
1063
|
-
let t = this._$AA.parentNode;
|
|
1064
|
-
const i = this._$AM;
|
|
1065
|
-
return void 0 !== i && 11 === t.nodeType && (t = i.parentNode), t;
|
|
1066
|
-
}
|
|
1067
|
-
get startNode() {
|
|
1068
|
-
return this._$AA;
|
|
1069
|
-
}
|
|
1070
|
-
get endNode() {
|
|
1071
|
-
return this._$AB;
|
|
1072
|
-
}
|
|
1073
|
-
_$AI(t, i = this) {
|
|
1074
|
-
t = P(this, t, i), r(t) ? t === w || null == t || "" === t ? (this._$AH !== w && this._$AR(), this._$AH = w) : t !== this._$AH && t !== b && this.$(t) : void 0 !== t._$litType$ ? this.T(t) : void 0 !== t.nodeType ? this.k(t) : u(t) ? this.S(t) : this.$(t);
|
|
1075
|
-
}
|
|
1076
|
-
A(t, i = this._$AB) {
|
|
1077
|
-
return this._$AA.parentNode.insertBefore(t, i);
|
|
1078
|
-
}
|
|
1079
|
-
k(t) {
|
|
1080
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.A(t));
|
|
1081
|
-
}
|
|
1082
|
-
$(t) {
|
|
1083
|
-
this._$AH !== w && r(this._$AH) ? this._$AA.nextSibling.data = t : this.k(l$2.createTextNode(t)), this._$AH = t;
|
|
1084
|
-
}
|
|
1085
|
-
T(t) {
|
|
1086
|
-
var i;
|
|
1087
|
-
const {
|
|
1088
|
-
values: s,
|
|
1089
|
-
_$litType$: e
|
|
1090
|
-
} = t,
|
|
1091
|
-
o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = E.createElement(e.h, this.options)), e);
|
|
1092
|
-
if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.m(s);else {
|
|
1093
|
-
const t = new V(o, this),
|
|
1094
|
-
i = t.p(this.options);
|
|
1095
|
-
t.m(s), this.k(i), this._$AH = t;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
_$AC(t) {
|
|
1099
|
-
let i = T.get(t.strings);
|
|
1100
|
-
return void 0 === i && T.set(t.strings, i = new E(t)), i;
|
|
1101
|
-
}
|
|
1102
|
-
S(t) {
|
|
1103
|
-
d(this._$AH) || (this._$AH = [], this._$AR());
|
|
1104
|
-
const i = this._$AH;
|
|
1105
|
-
let s,
|
|
1106
|
-
e = 0;
|
|
1107
|
-
for (const o of t) e === i.length ? i.push(s = new N(this.A(h()), this.A(h()), this, this.options)) : s = i[e], s._$AI(o), e++;
|
|
1108
|
-
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
1109
|
-
}
|
|
1110
|
-
_$AR(t = this._$AA.nextSibling, i) {
|
|
1111
|
-
var s;
|
|
1112
|
-
for (null === (s = this._$AP) || void 0 === s || s.call(this, !1, !0, i); t && t !== this._$AB;) {
|
|
1113
|
-
const i = t.nextSibling;
|
|
1114
|
-
t.remove(), t = i;
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
setConnected(t) {
|
|
1118
|
-
var i;
|
|
1119
|
-
void 0 === this._$AM && (this._$Cg = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
class S {
|
|
1123
|
-
constructor(t, i, s, e, o) {
|
|
1124
|
-
this.type = 1, this._$AH = w, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = w;
|
|
1125
|
-
}
|
|
1126
|
-
get tagName() {
|
|
1127
|
-
return this.element.tagName;
|
|
1128
|
-
}
|
|
1129
|
-
get _$AU() {
|
|
1130
|
-
return this._$AM._$AU;
|
|
1131
|
-
}
|
|
1132
|
-
_$AI(t, i = this, s, e) {
|
|
1133
|
-
const o = this.strings;
|
|
1134
|
-
let n = !1;
|
|
1135
|
-
if (void 0 === o) t = P(this, t, i, 0), n = !r(t) || t !== this._$AH && t !== b, n && (this._$AH = t);else {
|
|
1136
|
-
const e = t;
|
|
1137
|
-
let l, h;
|
|
1138
|
-
for (t = o[0], l = 0; l < o.length - 1; l++) h = P(this, e[s + l], i, l), h === b && (h = this._$AH[l]), n || (n = !r(h) || h !== this._$AH[l]), h === w ? t = w : t !== w && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
|
|
1139
|
-
}
|
|
1140
|
-
n && !e && this.C(t);
|
|
1141
|
-
}
|
|
1142
|
-
C(t) {
|
|
1143
|
-
t === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
class M extends S {
|
|
1147
|
-
constructor() {
|
|
1148
|
-
super(...arguments), this.type = 3;
|
|
1149
|
-
}
|
|
1150
|
-
C(t) {
|
|
1151
|
-
this.element[this.name] = t === w ? void 0 : t;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
const k = i ? i.emptyScript : "";
|
|
1155
|
-
class H extends S {
|
|
1156
|
-
constructor() {
|
|
1157
|
-
super(...arguments), this.type = 4;
|
|
1158
|
-
}
|
|
1159
|
-
C(t) {
|
|
1160
|
-
t && t !== w ? this.element.setAttribute(this.name, k) : this.element.removeAttribute(this.name);
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
class I extends S {
|
|
1164
|
-
constructor(t, i, s, e, o) {
|
|
1165
|
-
super(t, i, s, e, o), this.type = 5;
|
|
1166
|
-
}
|
|
1167
|
-
_$AI(t, i = this) {
|
|
1168
|
-
var s;
|
|
1169
|
-
if ((t = null !== (s = P(this, t, i, 0)) && void 0 !== s ? s : w) === b) return;
|
|
1170
|
-
const e = this._$AH,
|
|
1171
|
-
o = t === w && e !== w || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
|
|
1172
|
-
n = t !== w && (e === w || o);
|
|
1173
|
-
o && this.element.removeEventListener(this.name, this, e), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1174
|
-
}
|
|
1175
|
-
handleEvent(t) {
|
|
1176
|
-
var i, s;
|
|
1177
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
class L {
|
|
1181
|
-
constructor(t, i, s) {
|
|
1182
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
1183
|
-
}
|
|
1184
|
-
get _$AU() {
|
|
1185
|
-
return this._$AM._$AU;
|
|
1186
|
-
}
|
|
1187
|
-
_$AI(t) {
|
|
1188
|
-
P(this, t);
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
const z = window.litHtmlPolyfillSupport;
|
|
1192
|
-
null == z || z(E, N), (null !== (t = globalThis.litHtmlVersions) && void 0 !== t ? t : globalThis.litHtmlVersions = []).push("2.2.1");
|
|
882
|
+
a.finalized = !0, a.elementProperties = new Map(), a.elementStyles = [], a.shadowRootOptions = {
|
|
883
|
+
mode: "open"
|
|
884
|
+
}, null == h || h({
|
|
885
|
+
ReactiveElement: a
|
|
886
|
+
}), (null !== (s$1 = globalThis.reactiveElementVersions) && void 0 !== s$1 ? s$1 : globalThis.reactiveElementVersions = []).push("1.3.1");
|
|
1193
887
|
|
|
1194
888
|
/**
|
|
1195
889
|
* @license
|
|
@@ -1197,11 +891,11 @@
|
|
|
1197
891
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1198
892
|
*/
|
|
1199
893
|
var l$1, o;
|
|
1200
|
-
class s extends a
|
|
894
|
+
class s extends a {
|
|
1201
895
|
constructor() {
|
|
1202
896
|
super(...arguments), this.renderOptions = {
|
|
1203
897
|
host: this
|
|
1204
|
-
}, this._$
|
|
898
|
+
}, this._$Do = void 0;
|
|
1205
899
|
}
|
|
1206
900
|
createRenderRoot() {
|
|
1207
901
|
var t, e;
|
|
@@ -1210,18 +904,18 @@
|
|
|
1210
904
|
}
|
|
1211
905
|
update(t) {
|
|
1212
906
|
const i = this.render();
|
|
1213
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$
|
|
907
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(i, this.renderRoot, this.renderOptions);
|
|
1214
908
|
}
|
|
1215
909
|
connectedCallback() {
|
|
1216
910
|
var t;
|
|
1217
|
-
super.connectedCallback(), null === (t = this._$
|
|
911
|
+
super.connectedCallback(), null === (t = this._$Do) || void 0 === t || t.setConnected(!0);
|
|
1218
912
|
}
|
|
1219
913
|
disconnectedCallback() {
|
|
1220
914
|
var t;
|
|
1221
|
-
super.disconnectedCallback(), null === (t = this._$
|
|
915
|
+
super.disconnectedCallback(), null === (t = this._$Do) || void 0 === t || t.setConnected(!1);
|
|
1222
916
|
}
|
|
1223
917
|
render() {
|
|
1224
|
-
return
|
|
918
|
+
return T;
|
|
1225
919
|
}
|
|
1226
920
|
}
|
|
1227
921
|
s.finalized = !0, s._$litElement$ = !0, null === (l$1 = globalThis.litElementHydrateSupport) || void 0 === l$1 || l$1.call(globalThis, {
|
|
@@ -1231,7 +925,7 @@
|
|
|
1231
925
|
null == n || n({
|
|
1232
926
|
LitElement: s
|
|
1233
927
|
});
|
|
1234
|
-
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.
|
|
928
|
+
(null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.0");
|
|
1235
929
|
|
|
1236
930
|
var noop = {
|
|
1237
931
|
value: () => {}
|
|
@@ -3620,7 +3314,6 @@
|
|
|
3620
3314
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
3621
3315
|
}
|
|
3622
3316
|
};
|
|
3623
|
-
new Transform(1, 0, 0);
|
|
3624
3317
|
Transform.prototype;
|
|
3625
3318
|
|
|
3626
3319
|
/*
|
|
@@ -3798,7 +3491,7 @@
|
|
|
3798
3491
|
const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
|
|
3799
3492
|
|
|
3800
3493
|
const filters = shadows.elevations.map(z => {
|
|
3801
|
-
return
|
|
3494
|
+
return b`
|
|
3802
3495
|
<filter id=${`shadow-${z}`} x="-250%" y="-250%" width="600%" height="600%">
|
|
3803
3496
|
<feComponentTransfer in="SourceAlpha" result="solid">
|
|
3804
3497
|
<feFuncA type="table" tableValues="0 1 1"/>
|
|
@@ -3806,9 +3499,9 @@
|
|
|
3806
3499
|
<feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
|
|
3807
3500
|
<feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
|
|
3808
3501
|
<feOffset in="solid" result="offA" dx=${shadows.mapAmbient[z].y / 2} dy=${shadows.mapAmbient[z].y} />
|
|
3809
|
-
${shadows.mapUmbra[z].s === 0 ?
|
|
3810
|
-
${shadows.mapPenumbra[z].s === 0 ?
|
|
3811
|
-
${shadows.mapAmbient[z].s === 0 ?
|
|
3502
|
+
${shadows.mapUmbra[z].s === 0 ? b`` : b`<feMorphology in="offU" result="spreadU" operator=${shadows.mapUmbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapUmbra[z].s)} />`}
|
|
3503
|
+
${shadows.mapPenumbra[z].s === 0 ? b`` : b`<feMorphology in="offP" result="spreadP" operator=${shadows.mapPenumbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapPenumbra[z].s)} />`}
|
|
3504
|
+
${shadows.mapAmbient[z].s === 0 ? b`` : b`<feMorphology in="offA" result="spreadA" operator=${shadows.mapAmbient[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapAmbient[z].s)} />`}
|
|
3812
3505
|
<feGaussianBlur in=${shadows.mapUmbra[z].s === 0 ? 'offU' : 'spreadU'} result="blurU" stdDeviation=${shadows.mapUmbra[z].b / 2} />
|
|
3813
3506
|
<feGaussianBlur in=${shadows.mapPenumbra[z].s === 0 ? 'offP' : 'spreadP'} result="blurP" stdDeviation=${shadows.mapPenumbra[z].b / 2} />
|
|
3814
3507
|
<feGaussianBlur in=${shadows.mapAmbient[z].s === 0 ? 'offA' : 'spreadA'} result="blurA" stdDeviation=${shadows.mapAmbient[z].b / 2} />
|
|
@@ -3830,7 +3523,7 @@
|
|
|
3830
3523
|
</feMerge>
|
|
3831
3524
|
</filter>`;
|
|
3832
3525
|
});
|
|
3833
|
-
return
|
|
3526
|
+
return b`
|
|
3834
3527
|
<svg class="defs">
|
|
3835
3528
|
<defs>
|
|
3836
3529
|
${filters}
|
|
@@ -3839,24 +3532,24 @@
|
|
|
3839
3532
|
`;
|
|
3840
3533
|
}
|
|
3841
3534
|
static get styles() {
|
|
3842
|
-
return r$
|
|
3535
|
+
return r$1`
|
|
3843
3536
|
:host {
|
|
3844
|
-
---shadow-0: var(--shadow-0, ${o$
|
|
3845
|
-
---shadow-2: var(--shadow-2, ${o$
|
|
3846
|
-
---shadow-4: var(--shadow-4, ${o$
|
|
3847
|
-
---shadow-8: var(--shadow-8, ${o$
|
|
3848
|
-
|
|
3849
|
-
---color-background: var(--color-background, ${o$
|
|
3850
|
-
---color-border: var(--color-border, ${o$
|
|
3851
|
-
---color-text: var(--color-text, ${o$
|
|
3852
|
-
---color-text-inverse: var(--color-text-inverse, ${o$
|
|
3853
|
-
---color-link: var(--color-link, ${o$
|
|
3854
|
-
---color-element-background: var(--color-element-background, ${o$
|
|
3855
|
-
---color-element-disabled: var(--color-element-disabled, ${o$
|
|
3856
|
-
---color-element-enabled: var(--color-element-enabled, ${o$
|
|
3857
|
-
---color-element-selected: var(--color-element-selected, ${o$
|
|
3858
|
-
---color-element-border: var(--color-element-border, ${o$
|
|
3859
|
-
---color-element-emphasis: var(--color-element-emphasis, ${o$
|
|
3537
|
+
---shadow-0: var(--shadow-0, ${o$2(this.cssBoxShadow(0))});
|
|
3538
|
+
---shadow-2: var(--shadow-2, ${o$2(this.cssBoxShadow(2))});
|
|
3539
|
+
---shadow-4: var(--shadow-4, ${o$2(this.cssBoxShadow(4))});
|
|
3540
|
+
---shadow-8: var(--shadow-8, ${o$2(this.cssBoxShadow(8))});
|
|
3541
|
+
|
|
3542
|
+
---color-background: var(--color-background, ${o$2(this.greys.white)});
|
|
3543
|
+
---color-border: var(--color-border, ${o$2(this.greys.light75)});
|
|
3544
|
+
---color-text: var(--color-text, ${o$2(this.greys.dark75)});
|
|
3545
|
+
---color-text-inverse: var(--color-text-inverse, ${o$2(this.greys.white)});
|
|
3546
|
+
---color-link: var(--color-link, ${o$2(this.greys.dark25)});
|
|
3547
|
+
---color-element-background: var(--color-element-background, ${o$2(this.greys.light75)});
|
|
3548
|
+
---color-element-disabled: var(--color-element-disabled, ${o$2(this.greys.light50)});
|
|
3549
|
+
---color-element-enabled: var(--color-element-enabled, ${o$2(this.greys.dark25)});
|
|
3550
|
+
---color-element-selected: var(--color-element-selected, ${o$2(this.greys.grey)});
|
|
3551
|
+
---color-element-border: var(--color-element-border, ${o$2(this.greys.dark50)});
|
|
3552
|
+
---color-element-emphasis: var(--color-element-emphasis, ${o$2(this.greys.dark75)});
|
|
3860
3553
|
|
|
3861
3554
|
---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
|
|
3862
3555
|
---font-family-math: var(--font-family-math, "Source Serif", serif);
|
|
@@ -3917,7 +3610,7 @@
|
|
|
3917
3610
|
this.disabled = false;
|
|
3918
3611
|
}
|
|
3919
3612
|
static get styles() {
|
|
3920
|
-
return [super.styles, r$
|
|
3613
|
+
return [super.styles, r$1`
|
|
3921
3614
|
:host {
|
|
3922
3615
|
margin: 0.25rem;
|
|
3923
3616
|
}
|
|
@@ -3973,7 +3666,7 @@
|
|
|
3973
3666
|
`];
|
|
3974
3667
|
}
|
|
3975
3668
|
render() {
|
|
3976
|
-
return
|
|
3669
|
+
return x`
|
|
3977
3670
|
<button ?disabled=${this.disabled}>
|
|
3978
3671
|
<slot></slot>
|
|
3979
3672
|
</button>
|
|
@@ -3987,7 +3680,7 @@
|
|
|
3987
3680
|
* Copyright 2018 Google LLC
|
|
3988
3681
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3989
3682
|
*/
|
|
3990
|
-
const l = l => null != l ? l :
|
|
3683
|
+
const l = l => null != l ? l : A;
|
|
3991
3684
|
|
|
3992
3685
|
class DecidablesSlider extends DecidablesElement {
|
|
3993
3686
|
static get properties() {
|
|
@@ -4042,11 +3735,11 @@
|
|
|
4042
3735
|
this.value = event.target.value;
|
|
4043
3736
|
}
|
|
4044
3737
|
static get styles() {
|
|
4045
|
-
return [super.styles, r$
|
|
3738
|
+
return [super.styles, r$1`
|
|
4046
3739
|
:host {
|
|
4047
|
-
---shadow-2-rotate: var(--shadow-2-rotate, ${o$
|
|
4048
|
-
---shadow-4-rotate: var(--shadow-4-rotate, ${o$
|
|
4049
|
-
---shadow-8-rotate: var(--shadow-8-rotate, ${o$
|
|
3740
|
+
---shadow-2-rotate: var(--shadow-2-rotate, ${o$2(this.cssBoxShadow(2, true, false))});
|
|
3741
|
+
---shadow-4-rotate: var(--shadow-4-rotate, ${o$2(this.cssBoxShadow(4, true, false))});
|
|
3742
|
+
---shadow-8-rotate: var(--shadow-8-rotate, ${o$2(this.cssBoxShadow(8, true, false))});
|
|
4050
3743
|
|
|
4051
3744
|
display: flex;
|
|
4052
3745
|
|
|
@@ -4295,7 +3988,7 @@
|
|
|
4295
3988
|
`];
|
|
4296
3989
|
}
|
|
4297
3990
|
render() {
|
|
4298
|
-
return
|
|
3991
|
+
return x`
|
|
4299
3992
|
<label for="slider">
|
|
4300
3993
|
<slot></slot>
|
|
4301
3994
|
</label>
|
|
@@ -4352,7 +4045,7 @@
|
|
|
4352
4045
|
this.value = event.target.value;
|
|
4353
4046
|
}
|
|
4354
4047
|
static get styles() {
|
|
4355
|
-
return [super.styles, r$
|
|
4048
|
+
return [super.styles, r$1`
|
|
4356
4049
|
:host {
|
|
4357
4050
|
---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
|
|
4358
4051
|
---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
|
|
@@ -4434,7 +4127,7 @@
|
|
|
4434
4127
|
`];
|
|
4435
4128
|
}
|
|
4436
4129
|
render() {
|
|
4437
|
-
return
|
|
4130
|
+
return x`
|
|
4438
4131
|
<label>
|
|
4439
4132
|
<slot></slot>
|
|
4440
4133
|
<input ?disabled=${this.disabled} type="number" min=${l(this.min)} max=${l(this.max)} step=${l(this.step)} .value=${this.value} @input=${this.inputted.bind(this)}>
|
|
@@ -4476,7 +4169,7 @@
|
|
|
4476
4169
|
}));
|
|
4477
4170
|
}
|
|
4478
4171
|
static get styles() {
|
|
4479
|
-
return [super.styles, r$
|
|
4172
|
+
return [super.styles, r$1`
|
|
4480
4173
|
:host {
|
|
4481
4174
|
display: flex;
|
|
4482
4175
|
|
|
@@ -4598,7 +4291,7 @@
|
|
|
4598
4291
|
`];
|
|
4599
4292
|
}
|
|
4600
4293
|
render() {
|
|
4601
|
-
return
|
|
4294
|
+
return x`
|
|
4602
4295
|
<input type="checkbox" id="switch" ?checked=${this.checked} ?disabled=${this.disabled} @change=${this.changed.bind(this)}>
|
|
4603
4296
|
<label for="switch">
|
|
4604
4297
|
<slot name="off-label"></slot>
|
|
@@ -4628,7 +4321,7 @@
|
|
|
4628
4321
|
this.disabled = false;
|
|
4629
4322
|
}
|
|
4630
4323
|
static get styles() {
|
|
4631
|
-
return [super.styles, r$
|
|
4324
|
+
return [super.styles, r$1`
|
|
4632
4325
|
fieldset {
|
|
4633
4326
|
display: flex;
|
|
4634
4327
|
|
|
@@ -4648,7 +4341,7 @@
|
|
|
4648
4341
|
`];
|
|
4649
4342
|
}
|
|
4650
4343
|
render() {
|
|
4651
|
-
return
|
|
4344
|
+
return x`
|
|
4652
4345
|
<fieldset ?disabled=${this.disabled}>
|
|
4653
4346
|
<legend><slot name="label"></slot></legend>
|
|
4654
4347
|
<slot></slot>
|
|
@@ -4703,7 +4396,7 @@
|
|
|
4703
4396
|
}));
|
|
4704
4397
|
}
|
|
4705
4398
|
static get styles() {
|
|
4706
|
-
return [super.styles, r$
|
|
4399
|
+
return [super.styles, r$1`
|
|
4707
4400
|
:host {
|
|
4708
4401
|
display: flex;
|
|
4709
4402
|
}
|
|
@@ -4799,7 +4492,7 @@
|
|
|
4799
4492
|
`];
|
|
4800
4493
|
}
|
|
4801
4494
|
render() {
|
|
4802
|
-
return
|
|
4495
|
+
return x`
|
|
4803
4496
|
<input type="radio" id="toggle-option" name=${this.name} value=${this.value} .checked=${this.checked} @change=${this.changed.bind(this)}>
|
|
4804
4497
|
<label for="toggle-option">
|
|
4805
4498
|
<slot></slot>
|