ma-icons 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ma-icons.es.js +229 -169
- package/dist/ma-icons.iife.js +22 -14
- package/package.json +1 -1
package/dist/ma-icons.es.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const z = globalThis,
|
|
6
|
+
const z = globalThis, V = z.ShadowRoot && (z.ShadyCSS === void 0 || z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), K = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
let ot = class {
|
|
8
8
|
constructor(t, e, s) {
|
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
|
9
|
+
if (this._$cssResult$ = !0, s !== Z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (V && t === void 0) {
|
|
16
16
|
const s = e !== void 0 && e.length === 1;
|
|
17
|
-
s && (t =
|
|
17
|
+
s && (t = K.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && K.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let ot = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
const e = r.length === 1 ? r[0] : t.reduce((s, i,
|
|
27
|
-
if (
|
|
28
|
-
if (typeof
|
|
29
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
30
|
-
})(i) + r[
|
|
31
|
-
return new ot(e, r,
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
25
|
+
const pt = (r) => new ot(typeof r == "string" ? r : r + "", void 0, Z), ut = (r, ...t) => {
|
|
26
|
+
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
|
27
|
+
if (o._$cssResult$ === !0) return o.cssText;
|
|
28
|
+
if (typeof o == "number") return o;
|
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
+
})(i) + r[n + 1], r[0]);
|
|
31
|
+
return new ot(e, r, Z);
|
|
32
|
+
}, $t = (r, t) => {
|
|
33
|
+
if (V) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
35
|
const s = document.createElement("style"), i = z.litNonce;
|
|
36
36
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
37
37
|
}
|
|
38
|
-
}, G =
|
|
38
|
+
}, G = V ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const s of t.cssRules) e += s.cssText;
|
|
41
|
-
return
|
|
41
|
+
return pt(e);
|
|
42
42
|
})(r) : r;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: ft, defineProperty: _t, getOwnPropertyDescriptor: mt, getOwnPropertyNames: yt, getOwnPropertySymbols: gt, getPrototypeOf: At } = Object, y = globalThis, Q = y.trustedTypes, vt = Q ? Q.emptyScript : "", I = y.reactiveElementPolyfillSupport, U = (r, t) => r, D = { toAttribute(r, t) {
|
|
49
49
|
switch (t) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
r = r ?
|
|
51
|
+
r = r ? vt : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,9 +73,9 @@ const { is: $t, defineProperty: ft, getOwnPropertyDescriptor: _t, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
77
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
78
|
-
let
|
|
76
|
+
} }, F = (r, t) => !ft(r, t), X = { attribute: !0, type: String, converter: D, reflect: !1, useDefault: !1, hasChanged: F };
|
|
77
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
|
+
let C = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
80
80
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
81
81
|
}
|
|
@@ -85,32 +85,32 @@ let w = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(t, e = X) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && _t(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, s) {
|
|
92
|
-
const { get: i, set:
|
|
92
|
+
const { get: i, set: n } = mt(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
|
-
}, set(
|
|
95
|
-
this[e] =
|
|
94
|
+
}, set(o) {
|
|
95
|
+
this[e] = o;
|
|
96
96
|
} };
|
|
97
|
-
return { get: i, set(
|
|
97
|
+
return { get: i, set(o) {
|
|
98
98
|
const a = i == null ? void 0 : i.call(this);
|
|
99
|
-
|
|
99
|
+
n == null || n.call(this, o), this.requestUpdate(t, a, s);
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
103
|
return this.elementProperties.get(t) ?? X;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(U("elementProperties"))) return;
|
|
107
|
+
const t = At(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties, s = [...
|
|
111
|
+
if (this.hasOwnProperty(U("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
|
|
113
|
+
const e = this.properties, s = [...yt(e), ...gt(e)];
|
|
114
114
|
for (const i of s) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -159,7 +159,7 @@ let w = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return $t(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -181,32 +181,32 @@ let w = class extends HTMLElement {
|
|
|
181
181
|
this._$AK(t, s);
|
|
182
182
|
}
|
|
183
183
|
_$ET(t, e) {
|
|
184
|
-
var
|
|
184
|
+
var n;
|
|
185
185
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
186
186
|
if (i !== void 0 && s.reflect === !0) {
|
|
187
|
-
const
|
|
188
|
-
this._$Em = t,
|
|
187
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : D).toAttribute(e, s.type);
|
|
188
|
+
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
_$AK(t, e) {
|
|
192
|
-
var
|
|
192
|
+
var n, o;
|
|
193
193
|
const s = this.constructor, i = s._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((
|
|
196
|
-
this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((
|
|
195
|
+
const a = s.getPropertyOptions(i), h = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((n = a.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? a.converter : D;
|
|
196
|
+
this._$Em = i, this[i] = h.fromAttribute(e, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? null, this._$Em = null;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
requestUpdate(t, e, s) {
|
|
200
200
|
var i;
|
|
201
201
|
if (t !== void 0) {
|
|
202
|
-
const
|
|
203
|
-
if (s ?? (s =
|
|
202
|
+
const n = this.constructor, o = this[t];
|
|
203
|
+
if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? F)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
|
|
204
204
|
this.C(t, e, s);
|
|
205
205
|
}
|
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
207
207
|
}
|
|
208
|
-
C(t, e, { useDefault: s, reflect: i, wrapped:
|
|
209
|
-
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t,
|
|
208
|
+
C(t, e, { useDefault: s, reflect: i, wrapped: n }, o) {
|
|
209
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
210
210
|
}
|
|
211
211
|
async _$EP() {
|
|
212
212
|
this.isUpdatePending = !0;
|
|
@@ -226,21 +226,21 @@ let w = class extends HTMLElement {
|
|
|
226
226
|
if (!this.isUpdatePending) return;
|
|
227
227
|
if (!this.hasUpdated) {
|
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
229
|
-
for (const [
|
|
229
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
|
230
230
|
this._$Ep = void 0;
|
|
231
231
|
}
|
|
232
232
|
const i = this.constructor.elementProperties;
|
|
233
|
-
if (i.size > 0) for (const [
|
|
234
|
-
const { wrapped: a } =
|
|
235
|
-
a !== !0 || this._$AL.has(
|
|
233
|
+
if (i.size > 0) for (const [n, o] of i) {
|
|
234
|
+
const { wrapped: a } = o, h = this[n];
|
|
235
|
+
a !== !0 || this._$AL.has(n) || h === void 0 || this.C(n, void 0, o, h);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
let t = !1;
|
|
239
239
|
const e = this._$AL;
|
|
240
240
|
try {
|
|
241
241
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
242
|
+
var n;
|
|
243
|
+
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
|
244
244
|
}), this.update(e)) : this._$EM();
|
|
245
245
|
} catch (i) {
|
|
246
246
|
throw t = !1, this._$EM(), i;
|
|
@@ -276,76 +276,76 @@ let w = class extends HTMLElement {
|
|
|
276
276
|
firstUpdated(t) {
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), I == null || I({ ReactiveElement: C }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.1.0");
|
|
280
280
|
/**
|
|
281
281
|
* @license
|
|
282
282
|
* Copyright 2017 Google LLC
|
|
283
283
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
284
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), st = /'/g, it = /"/g, lt = /^(?:script|style|textarea|title)$/i,
|
|
285
|
+
const O = globalThis, j = O.trustedTypes, Y = j ? j.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ht = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, at = "?" + m, bt = `<${at}>`, S = document, M = () => S.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", J = Array.isArray, St = (r) => J(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", B = `[
|
|
286
|
+
\f\r]`, x = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, tt = /-->/g, et = />/g, A = RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^
|
|
287
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), st = /'/g, it = /"/g, lt = /^(?:script|style|textarea|title)$/i, Et = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), w = Et(1), E = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), rt = /* @__PURE__ */ new WeakMap(), v = S.createTreeWalker(S, 129);
|
|
288
288
|
function ct(r, t) {
|
|
289
|
-
if (!
|
|
289
|
+
if (!J(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
290
290
|
return Y !== void 0 ? Y.createHTML(t) : t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const wt = (r, t) => {
|
|
293
293
|
const e = r.length - 1, s = [];
|
|
294
|
-
let i,
|
|
294
|
+
let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = x;
|
|
295
295
|
for (let a = 0; a < e; a++) {
|
|
296
296
|
const h = r[a];
|
|
297
297
|
let c, p, l = -1, $ = 0;
|
|
298
|
-
for (; $ < h.length && (
|
|
299
|
-
const
|
|
300
|
-
|
|
298
|
+
for (; $ < h.length && (o.lastIndex = $, p = o.exec(h), p !== null); ) $ = o.lastIndex, o === x ? p[1] === "!--" ? o = tt : p[1] !== void 0 ? o = et : p[2] !== void 0 ? (lt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = A) : p[3] !== void 0 && (o = A) : o === A ? p[0] === ">" ? (o = i ?? x, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? A : p[3] === '"' ? it : st) : o === it || o === st ? o = A : o === tt || o === et ? o = x : (o = A, i = void 0);
|
|
299
|
+
const _ = o === A && r[a + 1].startsWith("/>") ? " " : "";
|
|
300
|
+
n += o === x ? h + bt : l >= 0 ? (s.push(c), h.slice(0, l) + ht + h.slice(l) + m + _) : h + m + (l === -2 ? a : _);
|
|
301
301
|
}
|
|
302
|
-
return [ct(r,
|
|
302
|
+
return [ct(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
|
|
303
303
|
};
|
|
304
304
|
class N {
|
|
305
305
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
306
306
|
let i;
|
|
307
307
|
this.parts = [];
|
|
308
|
-
let
|
|
309
|
-
const a = t.length - 1, h = this.parts, [c, p] =
|
|
310
|
-
if (this.el = N.createElement(c, s),
|
|
308
|
+
let n = 0, o = 0;
|
|
309
|
+
const a = t.length - 1, h = this.parts, [c, p] = wt(t, e);
|
|
310
|
+
if (this.el = N.createElement(c, s), v.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
311
|
const l = this.el.content.firstChild;
|
|
312
312
|
l.replaceWith(...l.childNodes);
|
|
313
313
|
}
|
|
314
|
-
for (; (i =
|
|
314
|
+
for (; (i = v.nextNode()) !== null && h.length < a; ) {
|
|
315
315
|
if (i.nodeType === 1) {
|
|
316
316
|
if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(ht)) {
|
|
317
|
-
const $ = p[
|
|
318
|
-
h.push({ type: 1, index:
|
|
319
|
-
} else l.startsWith(
|
|
317
|
+
const $ = p[o++], _ = i.getAttribute(l).split(m), k = /([.?@])?(.*)/.exec($);
|
|
318
|
+
h.push({ type: 1, index: n, name: k[2], strings: _, ctor: k[1] === "." ? Pt : k[1] === "?" ? xt : k[1] === "@" ? Ut : L }), i.removeAttribute(l);
|
|
319
|
+
} else l.startsWith(m) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
|
|
320
320
|
if (lt.test(i.tagName)) {
|
|
321
|
-
const l = i.textContent.split(
|
|
321
|
+
const l = i.textContent.split(m), $ = l.length - 1;
|
|
322
322
|
if ($ > 0) {
|
|
323
323
|
i.textContent = j ? j.emptyScript : "";
|
|
324
|
-
for (let
|
|
325
|
-
i.append(l[$],
|
|
324
|
+
for (let _ = 0; _ < $; _++) i.append(l[_], M()), v.nextNode(), h.push({ type: 2, index: ++n });
|
|
325
|
+
i.append(l[$], M());
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
} else if (i.nodeType === 8) if (i.data === at) h.push({ type: 2, index:
|
|
328
|
+
} else if (i.nodeType === 8) if (i.data === at) h.push({ type: 2, index: n });
|
|
329
329
|
else {
|
|
330
330
|
let l = -1;
|
|
331
|
-
for (; (l = i.data.indexOf(
|
|
331
|
+
for (; (l = i.data.indexOf(m, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += m.length - 1;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
n++;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
static createElement(t, e) {
|
|
337
|
-
const s =
|
|
337
|
+
const s = S.createElement("template");
|
|
338
338
|
return s.innerHTML = t, s;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
var
|
|
343
|
-
if (t ===
|
|
344
|
-
let i = s !== void 0 ? (
|
|
345
|
-
const
|
|
346
|
-
return (i == null ? void 0 : i.constructor) !==
|
|
341
|
+
function P(r, t, e = r, s) {
|
|
342
|
+
var o, a;
|
|
343
|
+
if (t === E) return t;
|
|
344
|
+
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
|
345
|
+
const n = H(t) ? void 0 : t._$litDirective$;
|
|
346
|
+
return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = P(r, i._$AS(r, t.values), i, s)), t;
|
|
347
347
|
}
|
|
348
|
-
class
|
|
348
|
+
class Ct {
|
|
349
349
|
constructor(t, e) {
|
|
350
350
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
351
|
}
|
|
@@ -356,17 +356,17 @@ class wt {
|
|
|
356
356
|
return this._$AM._$AU;
|
|
357
357
|
}
|
|
358
358
|
u(t) {
|
|
359
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
|
360
|
-
|
|
361
|
-
let
|
|
359
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
|
360
|
+
v.currentNode = i;
|
|
361
|
+
let n = v.nextNode(), o = 0, a = 0, h = s[0];
|
|
362
362
|
for (; h !== void 0; ) {
|
|
363
|
-
if (
|
|
363
|
+
if (o === h.index) {
|
|
364
364
|
let c;
|
|
365
|
-
h.type === 2 ? c = new R(
|
|
365
|
+
h.type === 2 ? c = new R(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Ot(n, this, t)), this._$AV.push(c), h = s[++a];
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
o !== (h == null ? void 0 : h.index) && (n = v.nextNode(), o++);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return v.currentNode = S, i;
|
|
370
370
|
}
|
|
371
371
|
p(t) {
|
|
372
372
|
let e = 0;
|
|
@@ -393,7 +393,7 @@ class R {
|
|
|
393
393
|
return this._$AB;
|
|
394
394
|
}
|
|
395
395
|
_$AI(t, e = this) {
|
|
396
|
-
t =
|
|
396
|
+
t = P(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : St(t) ? this.k(t) : this._(t);
|
|
397
397
|
}
|
|
398
398
|
O(t) {
|
|
399
399
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -402,15 +402,15 @@ class R {
|
|
|
402
402
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
403
403
|
}
|
|
404
404
|
_(t) {
|
|
405
|
-
this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(
|
|
405
|
+
this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
|
406
406
|
}
|
|
407
407
|
$(t) {
|
|
408
|
-
var
|
|
408
|
+
var n;
|
|
409
409
|
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = N.createElement(ct(s.h, s.h[0]), this.options)), s);
|
|
410
|
-
if (((
|
|
410
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
|
|
411
411
|
else {
|
|
412
|
-
const
|
|
413
|
-
|
|
412
|
+
const o = new Ct(i, this), a = o.u(this.options);
|
|
413
|
+
o.p(e), this.T(a), this._$AH = o;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
_$AC(t) {
|
|
@@ -418,10 +418,10 @@ class R {
|
|
|
418
418
|
return e === void 0 && rt.set(t.strings, e = new N(t)), e;
|
|
419
419
|
}
|
|
420
420
|
k(t) {
|
|
421
|
-
|
|
421
|
+
J(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
422
|
const e = this._$AH;
|
|
423
423
|
let s, i = 0;
|
|
424
|
-
for (const
|
|
424
|
+
for (const n of t) i === e.length ? e.push(s = new R(this.O(M()), this.O(M()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
425
425
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
426
426
|
}
|
|
427
427
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -443,19 +443,19 @@ class L {
|
|
|
443
443
|
get _$AU() {
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
|
-
constructor(t, e, s, i,
|
|
447
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options =
|
|
446
|
+
constructor(t, e, s, i, n) {
|
|
447
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
448
448
|
}
|
|
449
449
|
_$AI(t, e = this, s, i) {
|
|
450
|
-
const
|
|
451
|
-
let
|
|
452
|
-
if (
|
|
450
|
+
const n = this.strings;
|
|
451
|
+
let o = !1;
|
|
452
|
+
if (n === void 0) t = P(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const a = t;
|
|
455
455
|
let h, c;
|
|
456
|
-
for (t =
|
|
456
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) c = P(this, a[s + h], e, h), c === E && (c = this._$AH[h]), o || (o = !H(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
|
|
457
457
|
}
|
|
458
|
-
|
|
458
|
+
o && !i && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
@@ -469,7 +469,7 @@ class Pt extends L {
|
|
|
469
469
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class xt extends L {
|
|
473
473
|
constructor() {
|
|
474
474
|
super(...arguments), this.type = 4;
|
|
475
475
|
}
|
|
@@ -477,14 +477,14 @@ class Ct extends L {
|
|
|
477
477
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
class
|
|
481
|
-
constructor(t, e, s, i,
|
|
482
|
-
super(t, e, s, i,
|
|
480
|
+
class Ut extends L {
|
|
481
|
+
constructor(t, e, s, i, n) {
|
|
482
|
+
super(t, e, s, i, n), this.type = 5;
|
|
483
483
|
}
|
|
484
484
|
_$AI(t, e = this) {
|
|
485
|
-
if ((t =
|
|
486
|
-
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
487
|
-
i && this.element.removeEventListener(this.name, this, s),
|
|
485
|
+
if ((t = P(this, t, e, 0) ?? d) === E) return;
|
|
486
|
+
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
|
|
487
|
+
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
488
488
|
}
|
|
489
489
|
handleEvent(t) {
|
|
490
490
|
var e;
|
|
@@ -499,17 +499,17 @@ class Ot {
|
|
|
499
499
|
return this._$AM._$AU;
|
|
500
500
|
}
|
|
501
501
|
_$AI(t) {
|
|
502
|
-
|
|
502
|
+
P(this, t);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const q =
|
|
506
|
-
q == null || q(N, R), (
|
|
507
|
-
const
|
|
505
|
+
const q = O.litHtmlPolyfillSupport;
|
|
506
|
+
q == null || q(N, R), (O.litHtmlVersions ?? (O.litHtmlVersions = [])).push("3.3.0");
|
|
507
|
+
const Tt = (r, t, e) => {
|
|
508
508
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
509
|
let i = s._$litPart$;
|
|
510
510
|
if (i === void 0) {
|
|
511
|
-
const
|
|
512
|
-
s._$litPart$ = i = new R(t.insertBefore(
|
|
511
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
+
s._$litPart$ = i = new R(t.insertBefore(M(), n), n, void 0, e ?? {});
|
|
513
513
|
}
|
|
514
514
|
return i._$AI(r), i;
|
|
515
515
|
};
|
|
@@ -518,8 +518,8 @@ const Ut = (r, t, e) => {
|
|
|
518
518
|
* Copyright 2017 Google LLC
|
|
519
519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
520
520
|
*/
|
|
521
|
-
const
|
|
522
|
-
class
|
|
521
|
+
const b = globalThis;
|
|
522
|
+
let T = class extends C {
|
|
523
523
|
constructor() {
|
|
524
524
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
525
525
|
}
|
|
@@ -530,7 +530,7 @@ class M extends w {
|
|
|
530
530
|
}
|
|
531
531
|
update(t) {
|
|
532
532
|
const e = this.render();
|
|
533
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
533
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Tt(e, this.renderRoot, this.renderOptions);
|
|
534
534
|
}
|
|
535
535
|
connectedCallback() {
|
|
536
536
|
var t;
|
|
@@ -541,14 +541,14 @@ class M extends w {
|
|
|
541
541
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
542
542
|
}
|
|
543
543
|
render() {
|
|
544
|
-
return
|
|
544
|
+
return E;
|
|
545
545
|
}
|
|
546
|
-
}
|
|
546
|
+
};
|
|
547
547
|
var nt;
|
|
548
|
-
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
(
|
|
548
|
+
T._$litElement$ = !0, T.finalized = !0, (nt = b.litElementHydrateSupport) == null || nt.call(b, { LitElement: T });
|
|
549
|
+
const W = b.litElementPolyfillSupport;
|
|
550
|
+
W == null || W({ LitElement: T });
|
|
551
|
+
(b.litElementVersions ?? (b.litElementVersions = [])).push("4.2.0");
|
|
552
552
|
/**
|
|
553
553
|
* @license
|
|
554
554
|
* Copyright 2017 Google LLC
|
|
@@ -564,31 +564,31 @@ const Mt = (r) => (t, e) => {
|
|
|
564
564
|
* Copyright 2017 Google LLC
|
|
565
565
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
566
566
|
*/
|
|
567
|
-
const
|
|
567
|
+
const Ht = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: F }, Nt = (r = Ht, t, e) => {
|
|
568
568
|
const { kind: s, metadata: i } = e;
|
|
569
|
-
let
|
|
570
|
-
if (
|
|
571
|
-
const { name:
|
|
569
|
+
let n = globalThis.litPropertyMetadata.get(i);
|
|
570
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), s === "setter" && ((r = Object.create(r)).wrapped = !0), n.set(e.name, r), s === "accessor") {
|
|
571
|
+
const { name: o } = e;
|
|
572
572
|
return { set(a) {
|
|
573
573
|
const h = t.get.call(this);
|
|
574
|
-
t.set.call(this, a), this.requestUpdate(
|
|
574
|
+
t.set.call(this, a), this.requestUpdate(o, h, r);
|
|
575
575
|
}, init(a) {
|
|
576
|
-
return a !== void 0 && this.C(
|
|
576
|
+
return a !== void 0 && this.C(o, void 0, r, a), a;
|
|
577
577
|
} };
|
|
578
578
|
}
|
|
579
579
|
if (s === "setter") {
|
|
580
|
-
const { name:
|
|
580
|
+
const { name: o } = e;
|
|
581
581
|
return function(a) {
|
|
582
|
-
const h = this[
|
|
583
|
-
t.call(this, a), this.requestUpdate(
|
|
582
|
+
const h = this[o];
|
|
583
|
+
t.call(this, a), this.requestUpdate(o, h, r);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
throw Error("Unsupported decorator location: " + s);
|
|
587
587
|
};
|
|
588
|
-
function
|
|
589
|
-
return (t, e) => typeof e == "object" ?
|
|
590
|
-
const
|
|
591
|
-
return i.constructor.createProperty(
|
|
588
|
+
function g(r) {
|
|
589
|
+
return (t, e) => typeof e == "object" ? Nt(r, t, e) : ((s, i, n) => {
|
|
590
|
+
const o = i.hasOwnProperty(n);
|
|
591
|
+
return i.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
592
592
|
})(r, t, e);
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
@@ -596,28 +596,85 @@ function S(r) {
|
|
|
596
596
|
* Copyright 2017 Google LLC
|
|
597
597
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
598
598
|
*/
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function Rt(r) {
|
|
600
|
+
return g({ ...r, state: !0, attribute: !1 });
|
|
601
601
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
602
|
+
/**
|
|
603
|
+
* @license
|
|
604
|
+
* Copyright 2017 Google LLC
|
|
605
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
606
|
+
*/
|
|
607
|
+
const kt = { ATTRIBUTE: 1 }, zt = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
|
608
|
+
let Dt = class {
|
|
609
|
+
constructor(t) {
|
|
610
|
+
}
|
|
611
|
+
get _$AU() {
|
|
612
|
+
return this._$AM._$AU;
|
|
613
|
+
}
|
|
614
|
+
_$AT(t, e, s) {
|
|
615
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
|
616
|
+
}
|
|
617
|
+
_$AS(t, e) {
|
|
618
|
+
return this.update(t, e);
|
|
619
|
+
}
|
|
620
|
+
update(t, e) {
|
|
621
|
+
return this.render(...e);
|
|
622
|
+
}
|
|
606
623
|
};
|
|
607
|
-
|
|
624
|
+
/**
|
|
625
|
+
* @license
|
|
626
|
+
* Copyright 2018 Google LLC
|
|
627
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
628
|
+
*/
|
|
629
|
+
const dt = "important", jt = " !" + dt, Lt = zt(class extends Dt {
|
|
630
|
+
constructor(r) {
|
|
631
|
+
var t;
|
|
632
|
+
if (super(r), r.type !== kt.ATTRIBUTE || r.name !== "style" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
|
|
633
|
+
}
|
|
634
|
+
render(r) {
|
|
635
|
+
return Object.keys(r).reduce((t, e) => {
|
|
636
|
+
const s = r[e];
|
|
637
|
+
return s == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s};`;
|
|
638
|
+
}, "");
|
|
639
|
+
}
|
|
640
|
+
update(r, [t]) {
|
|
641
|
+
const { style: e } = r.element;
|
|
642
|
+
if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
|
|
643
|
+
for (const s of this.ft) t[s] == null && (this.ft.delete(s), s.includes("-") ? e.removeProperty(s) : e[s] = null);
|
|
644
|
+
for (const s in t) {
|
|
645
|
+
const i = t[s];
|
|
646
|
+
if (i != null) {
|
|
647
|
+
this.ft.add(s);
|
|
648
|
+
const n = typeof i == "string" && i.endsWith(jt);
|
|
649
|
+
s.includes("-") || n ? e.setProperty(s, n ? i.slice(0, -11) : i, n ? dt : "") : e[s] = i;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return E;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
var It = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, f = (r, t, e, s) => {
|
|
656
|
+
for (var i = s > 1 ? void 0 : s ? Bt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
|
657
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
|
658
|
+
return s && i && It(t, e, i), i;
|
|
659
|
+
};
|
|
660
|
+
let u = class extends T {
|
|
608
661
|
constructor() {
|
|
609
|
-
super(...arguments), this.leading = !1, this.name = "top-right", this.size = "16", this.weight = "5", this.color = "hsl(0deg 0% 0%)", this.svg = null;
|
|
662
|
+
super(...arguments), this.styled = !1, this.leading = !1, this.name = "top-right", this.size = "16", this.weight = "5", this.color = "hsl(0deg 0% 0%)", this.svg = null;
|
|
610
663
|
}
|
|
611
664
|
updated(r) {
|
|
612
665
|
super.updated(r), r.has("name") && this.modifySvg();
|
|
613
666
|
}
|
|
614
667
|
render() {
|
|
615
|
-
const r = this.svg ?
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
668
|
+
const r = this.svg ? w`<span .innerHTML=${this.svg}></span>` : w``;
|
|
669
|
+
if (this.href != null) {
|
|
670
|
+
const t = this.styled ? { opacity: "75%" } : {};
|
|
671
|
+
return w`
|
|
672
|
+
<a style=${Lt(t)} href=${this.href}>
|
|
673
|
+
${this.leading ? w`${r} ` : ""}<slot></slot>${this.leading ? "" : w` ${r}`}
|
|
619
674
|
</a>
|
|
620
|
-
|
|
675
|
+
`;
|
|
676
|
+
}
|
|
677
|
+
return w`${r}`;
|
|
621
678
|
}
|
|
622
679
|
async modifySvg() {
|
|
623
680
|
const t = await (await fetch("https://raw.githubusercontent.com/taavirubenhagen/ma-icons/main/icons/" + this.name + ".svg")).text(), e = new DOMParser().parseFromString(t, "image/svg+xml"), s = e.querySelector("svg");
|
|
@@ -625,11 +682,11 @@ let u = class extends M {
|
|
|
625
682
|
s == null || s.setAttribute("width", this.size), s == null || s.setAttribute("height", this.size), s == null || s.setAttribute("fill", "none"), e.querySelectorAll("[stroke]").forEach((i) => i.setAttribute("stroke", this.color)), e.querySelectorAll("[stroke-width]").forEach((i) => i.setAttribute("stroke-width", this.weight)), this.svg = s == null ? void 0 : s.outerHTML;
|
|
626
683
|
}
|
|
627
684
|
};
|
|
628
|
-
u.styles =
|
|
685
|
+
u.styles = ut`
|
|
629
686
|
svg {
|
|
630
687
|
display: block;
|
|
631
688
|
}
|
|
632
|
-
|
|
689
|
+
a {
|
|
633
690
|
display: inline-flex;
|
|
634
691
|
align-items: center;
|
|
635
692
|
color: inherit;
|
|
@@ -638,31 +695,34 @@ u.styles = pt`
|
|
|
638
695
|
font-size: inherit;
|
|
639
696
|
}
|
|
640
697
|
`;
|
|
641
|
-
|
|
642
|
-
|
|
698
|
+
f([
|
|
699
|
+
g()
|
|
700
|
+
], u.prototype, "styled", 2);
|
|
701
|
+
f([
|
|
702
|
+
g()
|
|
643
703
|
], u.prototype, "href", 2);
|
|
644
|
-
|
|
645
|
-
|
|
704
|
+
f([
|
|
705
|
+
g()
|
|
646
706
|
], u.prototype, "leading", 2);
|
|
647
|
-
|
|
648
|
-
|
|
707
|
+
f([
|
|
708
|
+
g()
|
|
649
709
|
], u.prototype, "name", 2);
|
|
650
|
-
|
|
651
|
-
|
|
710
|
+
f([
|
|
711
|
+
g()
|
|
652
712
|
], u.prototype, "size", 2);
|
|
653
|
-
|
|
654
|
-
|
|
713
|
+
f([
|
|
714
|
+
g()
|
|
655
715
|
], u.prototype, "weight", 2);
|
|
656
|
-
|
|
657
|
-
|
|
716
|
+
f([
|
|
717
|
+
g()
|
|
658
718
|
], u.prototype, "color", 2);
|
|
659
|
-
|
|
660
|
-
|
|
719
|
+
f([
|
|
720
|
+
Rt()
|
|
661
721
|
], u.prototype, "svg", 2);
|
|
662
|
-
u =
|
|
722
|
+
u = f([
|
|
663
723
|
Mt("ma-icon")
|
|
664
724
|
], u);
|
|
665
|
-
const
|
|
725
|
+
const Ft = [
|
|
666
726
|
"add-circle",
|
|
667
727
|
"bottom-left",
|
|
668
728
|
"bottom-right",
|
|
@@ -710,5 +770,5 @@ const jt = [
|
|
|
710
770
|
"youtube"
|
|
711
771
|
];
|
|
712
772
|
export {
|
|
713
|
-
|
|
773
|
+
Ft as names
|
|
714
774
|
};
|
package/dist/ma-icons.iife.js
CHANGED
|
@@ -2,41 +2,49 @@ var MaIcons=function(I){"use strict";/**
|
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var ut;const k=globalThis,B=k.ShadowRoot&&(k.ShadyCSS===void 0||k.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,q=Symbol(),G=new WeakMap;let Q=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(B&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=G.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&G.set(e,t))}return t}toString(){return this.cssText}};const pt=r=>new Q(typeof r=="string"?r:r+"",void 0,q),$t=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new Q(e,r,q)},ft=(r,t)=>{if(B)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=k.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},X=B?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return pt(e)})(r):r;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:_t,defineProperty:mt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:gt,getOwnPropertySymbols:At,getPrototypeOf:vt}=Object,_=globalThis,Y=_.trustedTypes,bt=Y?Y.emptyScript:"",W=_.reactiveElementPolyfillSupport,x=(r,t)=>r,z={toAttribute(r,t){switch(t){case Boolean:r=r?bt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},V=(r,t)=>!_t(r,t),tt={attribute:!0,type:String,converter:z,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=tt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&mt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=yt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??tt}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=vt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const e=this.properties,s=[...gt(e),...At(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(X(i))}else t!==void 0&&e.push(X(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ft(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:z).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=s.getPropertyOptions(i),h=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:z;this._$Em=i,this[i]=h.fromAttribute(e,a.type)??((o=this._$Ej)==null?void 0:o.get(i))??null,this._$Em=null}}requestUpdate(t,e,s){var i;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??V)(o,e)||s.useDefault&&s.reflect&&o===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i){const{wrapped:a}=o,h=this[n];a!==!0||this._$AL.has(n)||h===void 0||this.C(n,void 0,o,h)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[x("elementProperties")]=new Map,w[x("finalized")]=new Map,W==null||W({ReactiveElement:w}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.1.0");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const O=globalThis,
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,
|
|
13
|
+
*/const O=globalThis,j=O.trustedTypes,et=j?j.createPolicy("lit-html",{createHTML:r=>r}):void 0,st="$lit$",m=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+m,St=`<${it}>`,A=document,U=()=>A.createComment(""),T=r=>r===null||typeof r!="object"&&typeof r!="function",Z=Array.isArray,Et=r=>Z(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",F=`[
|
|
14
|
+
\f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,nt=/>/g,v=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,ht=/"/g,at=/^(?:script|style|textarea|title)$/i,wt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),P=wt(1),b=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),lt=new WeakMap,S=A.createTreeWalker(A,129);function ct(r,t){if(!Z(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return et!==void 0?et.createHTML(t):t}const Pt=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":t===3?"<math>":"",o=M;for(let a=0;a<e;a++){const h=r[a];let d,u,l=-1,f=0;for(;f<h.length&&(o.lastIndex=f,u=o.exec(h),u!==null);)f=o.lastIndex,o===M?u[1]==="!--"?o=rt:u[1]!==void 0?o=nt:u[2]!==void 0?(at.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=v):u[3]!==void 0&&(o=v):o===v?u[0]===">"?(o=i??M,l=-1):u[1]===void 0?l=-2:(l=o.lastIndex-u[2].length,d=u[1],o=u[3]===void 0?v:u[3]==='"'?ht:ot):o===ht||o===ot?o=v:o===rt||o===nt?o=M:(o=v,i=void 0);const g=o===v&&r[a+1].startsWith("/>")?" ":"";n+=o===M?h+St:l>=0?(s.push(d),h.slice(0,l)+st+h.slice(l)+m+g):h+m+(l===-2?a:g)}return[ct(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const a=t.length-1,h=this.parts,[d,u]=Pt(t,e);if(this.el=H.createElement(d,s),S.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=S.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(st)){const f=u[o++],g=i.getAttribute(l).split(m),L=/([.?@])?(.*)/.exec(f);h.push({type:1,index:n,name:L[2],strings:g,ctor:L[1]==="."?xt:L[1]==="?"?Ot:L[1]==="@"?Ut:D}),i.removeAttribute(l)}else l.startsWith(m)&&(h.push({type:6,index:n}),i.removeAttribute(l));if(at.test(i.tagName)){const l=i.textContent.split(m),f=l.length-1;if(f>0){i.textContent=j?j.emptyScript:"";for(let g=0;g<f;g++)i.append(l[g],U()),S.nextNode(),h.push({type:2,index:++n});i.append(l[f],U())}}}else if(i.nodeType===8)if(i.data===it)h.push({type:2,index:n});else{let l=-1;for(;(l=i.data.indexOf(m,l+1))!==-1;)h.push({type:7,index:n}),l+=m.length-1}n++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function C(r,t,e=r,s){var o,a;if(t===b)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=T(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=C(r,i._$AS(r,t.values),i,s)),t}class Ct{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??A).importNode(e,!0);S.currentNode=i;let n=S.nextNode(),o=0,a=0,h=s[0];for(;h!==void 0;){if(o===h.index){let d;h.type===2?d=new N(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new Tt(n,this,t)),this._$AV.push(d),h=s[++a]}o!==(h==null?void 0:h.index)&&(n=S.nextNode(),o++)}return S.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class N{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),T(t)?t===c||t==null||t===""?(this._$AH!==c&&this._$AR(),this._$AH=c):t!==this._$AH&&t!==b&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Et(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==c&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(ct(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Ct(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=lt.get(t.strings);return e===void 0&<.set(t.strings,e=new H(t)),e}k(t){Z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new N(this.O(U()),this.O(U()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=c}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!T(t)||t!==this._$AH&&t!==b,o&&(this._$AH=t);else{const a=t;let h,d;for(t=n[0],h=0;h<n.length-1;h++)d=C(this,a[s+h],e,h),d===b&&(d=this._$AH[h]),o||(o=!T(d)||d!==this._$AH[h]),d===c?t=c:t!==c&&(t+=(d??"")+n[h+1]),this._$AH[h]=d}o&&!i&&this.j(t)}j(t){t===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===c?void 0:t}}class Ot extends D{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==c)}}class Ut extends D{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??c)===b)return;const s=this._$AH,i=t===c&&s!==c||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==c&&(s===c||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Tt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const J=O.litHtmlPolyfillSupport;J==null||J(H,N),(O.litHtmlVersions??(O.litHtmlVersions=[])).push("3.3.0");const Mt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new N(t.insertBefore(U(),n),n,void 0,e??{})}return i._$AI(r),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const
|
|
19
|
+
*/const E=globalThis;let R=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return b}};R._$litElement$=!0,R.finalized=!0,(ut=E.litElementHydrateSupport)==null||ut.call(E,{LitElement:R});const K=E.litElementPolyfillSupport;K==null||K({LitElement:R}),(E.litElementVersions??(E.litElementVersions=[])).push("4.2.0");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const
|
|
23
|
+
*/const Ht=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const
|
|
27
|
+
*/const Nt={attribute:!0,type:String,converter:z,reflect:!1,hasChanged:V},Rt=(r=Nt,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(a){const h=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,h,r)},init(a){return a!==void 0&&this.C(o,void 0,r,a),a}}}if(s==="setter"){const{name:o}=e;return function(a){const h=this[o];t.call(this,a),this.requestUpdate(o,h,r)}}throw Error("Unsupported decorator location: "+s)};function y(r){return(t,e)=>typeof e=="object"?Rt(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
*/function kt(r){return y({...r,state:!0,attribute:!1})}/**
|
|
32
|
+
* @license
|
|
33
|
+
* Copyright 2017 Google LLC
|
|
34
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
+
*/const zt={ATTRIBUTE:1},jt=r=>(...t)=>({_$litDirective$:r,values:t});let Dt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
|
|
36
|
+
* @license
|
|
37
|
+
* Copyright 2018 Google LLC
|
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
+
*/const dt="important",Lt=" !"+dt,It=jt(class extends Dt{constructor(r){var t;if(super(r),r.type!==zt.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{const s=r[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(r,[t]){const{style:e}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(const s in t){const i=t[s];if(i!=null){this.ft.add(s);const n=typeof i=="string"&&i.endsWith(Lt);s.includes("-")||n?e.setProperty(s,n?i.slice(0,-11):i,n?dt:""):e[s]=i}}return b}});var Bt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,$=(r,t,e,s)=>{for(var i=s>1?void 0:s?qt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&Bt(t,e,i),i};let p=class extends R{constructor(){super(...arguments),this.styled=!1,this.leading=!1,this.name="top-right",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(r){super.updated(r),r.has("name")&&this.modifySvg()}render(){const r=this.svg?P`<span .innerHTML=${this.svg}></span>`:P``;if(this.href!=null){const t=this.styled?{opacity:"75%"}:{};return P`
|
|
40
|
+
<a style=${It(t)} href=${this.href}>
|
|
41
|
+
${this.leading?P`${r} `:""}<slot></slot>${this.leading?"":P` ${r}`}
|
|
34
42
|
</a>
|
|
35
|
-
|
|
43
|
+
`}return P`${r}`}async modifySvg(){const t=await(await fetch("https://raw.githubusercontent.com/taavirubenhagen/ma-icons/main/icons/"+this.name+".svg")).text(),e=new DOMParser().parseFromString(t,"image/svg+xml"),s=e.querySelector("svg");if(!s)return"";s==null||s.setAttribute("width",this.size),s==null||s.setAttribute("height",this.size),s==null||s.setAttribute("fill","none"),e.querySelectorAll("[stroke]").forEach(i=>i.setAttribute("stroke",this.color)),e.querySelectorAll("[stroke-width]").forEach(i=>i.setAttribute("stroke-width",this.weight)),this.svg=s==null?void 0:s.outerHTML}};p.styles=$t`
|
|
36
44
|
svg {
|
|
37
45
|
display: block;
|
|
38
46
|
}
|
|
39
|
-
|
|
47
|
+
a {
|
|
40
48
|
display: inline-flex;
|
|
41
49
|
align-items: center;
|
|
42
50
|
color: inherit;
|
|
@@ -44,4 +52,4 @@ var MaIcons=function(I){"use strict";/**
|
|
|
44
52
|
font-family: inherit;
|
|
45
53
|
font-size: inherit;
|
|
46
54
|
}
|
|
47
|
-
|
|
55
|
+
`,$([y()],p.prototype,"styled",2),$([y()],p.prototype,"href",2),$([y()],p.prototype,"leading",2),$([y()],p.prototype,"name",2),$([y()],p.prototype,"size",2),$([y()],p.prototype,"weight",2),$([y()],p.prototype,"color",2),$([kt()],p.prototype,"svg",2),p=$([Ht("ma-icon")],p);const Wt=["add-circle","bottom-left","bottom-right","camera","camera-video","cmd","code","down","download","edit","explore","external-2","fullscreen","fullscreen-exit","github","heart","heart-filled","home","info","input","instagram","left","lock","lock-closed","lock-open","login","ma","ma-2","menu","options","pants","pause","person","play","remove-circle","right","search","send","settings","tiktok","top-left","top-right","trash","up","youtube"];return I.names=Wt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),I}({});
|