@oslokommune/punkt-elements 11.12.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/LICENSE +21 -0
- package/dist/converters-01e4a1b1.cjs +5 -0
- package/dist/converters-92631e0d.js +105 -0
- package/dist/directive-6900e150.cjs +23 -0
- package/dist/directive-720b7cc8.js +606 -0
- package/dist/index-34184de4.js +173 -0
- package/dist/index-51027300.cjs +13 -0
- package/dist/pkt-el-calendar.cjs +60 -0
- package/dist/pkt-el-calendar.js +1504 -0
- package/dist/pkt-el-component-template.cjs +29 -0
- package/dist/pkt-el-component-template.js +100 -0
- package/dist/pkt-el-element.cjs +1 -0
- package/dist/pkt-el-element.js +5 -0
- package/dist/pkt-el-icon.cjs +9 -0
- package/dist/pkt-el-icon.js +103 -0
- package/dist/pkt-el-index.cjs +1 -0
- package/dist/pkt-el-index.js +12 -0
- package/dist/property-0378afc0.js +47 -0
- package/dist/property-e170cbca.cjs +9 -0
- package/dist/src/components/calendar/index.d.ts +60 -0
- package/dist/src/components/component-template/index.d.ts +35 -0
- package/dist/src/components/element/index.d.ts +25 -0
- package/dist/src/components/icon/index.d.ts +30 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/controllers/pkt-slot-controller.d.ts +12 -0
- package/dist/src/helpers/converters.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/translations/no.json.d.ts +43 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +61 -0
- package/src/components/calendar/index.ts +375 -0
- package/src/components/component-template/index.ts +113 -0
- package/src/components/element/index.ts +37 -0
- package/src/components/icon/index.ts +100 -0
- package/src/components/index.ts +3 -0
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const H = globalThis, D = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Q = Symbol(), z = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let nt = class {
|
|
8
|
+
constructor(t, e, s) {
|
|
9
|
+
if (this._$cssResult$ = !0, s !== Q)
|
|
10
|
+
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
|
+
this.cssText = t, this.t = e;
|
|
12
|
+
}
|
|
13
|
+
get styleSheet() {
|
|
14
|
+
let t = this.o;
|
|
15
|
+
const e = this.t;
|
|
16
|
+
if (D && t === void 0) {
|
|
17
|
+
const s = e !== void 0 && e.length === 1;
|
|
18
|
+
s && (t = z.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && z.set(e, t));
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
}
|
|
22
|
+
toString() {
|
|
23
|
+
return this.cssText;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const ot = (r) => new nt(typeof r == "string" ? r : r + "", void 0, Q), ht = (r, t) => {
|
|
27
|
+
if (D)
|
|
28
|
+
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
29
|
+
else
|
|
30
|
+
for (const e of t) {
|
|
31
|
+
const s = document.createElement("style"), i = H.litNonce;
|
|
32
|
+
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
33
|
+
}
|
|
34
|
+
}, j = D ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
35
|
+
let e = "";
|
|
36
|
+
for (const s of t.cssRules)
|
|
37
|
+
e += s.cssText;
|
|
38
|
+
return ot(e);
|
|
39
|
+
})(r) : r;
|
|
40
|
+
/**
|
|
41
|
+
* @license
|
|
42
|
+
* Copyright 2017 Google LLC
|
|
43
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
+
*/
|
|
45
|
+
const { is: at, defineProperty: lt, getOwnPropertyDescriptor: ct, getOwnPropertyNames: dt, getOwnPropertySymbols: pt, getPrototypeOf: $t } = Object, A = globalThis, W = A.trustedTypes, ut = W ? W.emptyScript : "", M = A.reactiveElementPolyfillSupport, b = (r, t) => r, B = { toAttribute(r, t) {
|
|
46
|
+
switch (t) {
|
|
47
|
+
case Boolean:
|
|
48
|
+
r = r ? ut : null;
|
|
49
|
+
break;
|
|
50
|
+
case Object:
|
|
51
|
+
case Array:
|
|
52
|
+
r = r == null ? r : JSON.stringify(r);
|
|
53
|
+
}
|
|
54
|
+
return r;
|
|
55
|
+
}, fromAttribute(r, t) {
|
|
56
|
+
let e = r;
|
|
57
|
+
switch (t) {
|
|
58
|
+
case Boolean:
|
|
59
|
+
e = r !== null;
|
|
60
|
+
break;
|
|
61
|
+
case Number:
|
|
62
|
+
e = r === null ? null : Number(r);
|
|
63
|
+
break;
|
|
64
|
+
case Object:
|
|
65
|
+
case Array:
|
|
66
|
+
try {
|
|
67
|
+
e = JSON.parse(r);
|
|
68
|
+
} catch {
|
|
69
|
+
e = null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return e;
|
|
73
|
+
} }, X = (r, t) => !at(r, t), V = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: X };
|
|
74
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A.litPropertyMetadata ?? (A.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
75
|
+
class y extends HTMLElement {
|
|
76
|
+
static addInitializer(t) {
|
|
77
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
78
|
+
}
|
|
79
|
+
static get observedAttributes() {
|
|
80
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
81
|
+
}
|
|
82
|
+
static createProperty(t, e = V) {
|
|
83
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
84
|
+
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
85
|
+
i !== void 0 && lt(this.prototype, t, i);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
static getPropertyDescriptor(t, e, s) {
|
|
89
|
+
const { get: i, set: o } = ct(this.prototype, t) ?? { get() {
|
|
90
|
+
return this[e];
|
|
91
|
+
}, set(n) {
|
|
92
|
+
this[e] = n;
|
|
93
|
+
} };
|
|
94
|
+
return { get() {
|
|
95
|
+
return i == null ? void 0 : i.call(this);
|
|
96
|
+
}, set(n) {
|
|
97
|
+
const l = i == null ? void 0 : i.call(this);
|
|
98
|
+
o.call(this, n), this.requestUpdate(t, l, s);
|
|
99
|
+
}, configurable: !0, enumerable: !0 };
|
|
100
|
+
}
|
|
101
|
+
static getPropertyOptions(t) {
|
|
102
|
+
return this.elementProperties.get(t) ?? V;
|
|
103
|
+
}
|
|
104
|
+
static _$Ei() {
|
|
105
|
+
if (this.hasOwnProperty(b("elementProperties")))
|
|
106
|
+
return;
|
|
107
|
+
const t = $t(this);
|
|
108
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
|
+
}
|
|
110
|
+
static finalize() {
|
|
111
|
+
if (this.hasOwnProperty(b("finalized")))
|
|
112
|
+
return;
|
|
113
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(b("properties"))) {
|
|
114
|
+
const e = this.properties, s = [...dt(e), ...pt(e)];
|
|
115
|
+
for (const i of s)
|
|
116
|
+
this.createProperty(i, e[i]);
|
|
117
|
+
}
|
|
118
|
+
const t = this[Symbol.metadata];
|
|
119
|
+
if (t !== null) {
|
|
120
|
+
const e = litPropertyMetadata.get(t);
|
|
121
|
+
if (e !== void 0)
|
|
122
|
+
for (const [s, i] of e)
|
|
123
|
+
this.elementProperties.set(s, i);
|
|
124
|
+
}
|
|
125
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
126
|
+
for (const [e, s] of this.elementProperties) {
|
|
127
|
+
const i = this._$Eu(e, s);
|
|
128
|
+
i !== void 0 && this._$Eh.set(i, e);
|
|
129
|
+
}
|
|
130
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
131
|
+
}
|
|
132
|
+
static finalizeStyles(t) {
|
|
133
|
+
const e = [];
|
|
134
|
+
if (Array.isArray(t)) {
|
|
135
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
136
|
+
for (const i of s)
|
|
137
|
+
e.unshift(j(i));
|
|
138
|
+
} else
|
|
139
|
+
t !== void 0 && e.push(j(t));
|
|
140
|
+
return e;
|
|
141
|
+
}
|
|
142
|
+
static _$Eu(t, e) {
|
|
143
|
+
const s = e.attribute;
|
|
144
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
145
|
+
}
|
|
146
|
+
constructor() {
|
|
147
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
148
|
+
}
|
|
149
|
+
_$Ev() {
|
|
150
|
+
var t;
|
|
151
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
152
|
+
}
|
|
153
|
+
addController(t) {
|
|
154
|
+
var e;
|
|
155
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
156
|
+
}
|
|
157
|
+
removeController(t) {
|
|
158
|
+
var e;
|
|
159
|
+
(e = this._$EO) == null || e.delete(t);
|
|
160
|
+
}
|
|
161
|
+
_$E_() {
|
|
162
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
163
|
+
for (const s of e.keys())
|
|
164
|
+
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
165
|
+
t.size > 0 && (this._$Ep = t);
|
|
166
|
+
}
|
|
167
|
+
createRenderRoot() {
|
|
168
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
169
|
+
return ht(t, this.constructor.elementStyles), t;
|
|
170
|
+
}
|
|
171
|
+
connectedCallback() {
|
|
172
|
+
var t;
|
|
173
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
174
|
+
var s;
|
|
175
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
enableUpdating(t) {
|
|
179
|
+
}
|
|
180
|
+
disconnectedCallback() {
|
|
181
|
+
var t;
|
|
182
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
|
183
|
+
var s;
|
|
184
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
attributeChangedCallback(t, e, s) {
|
|
188
|
+
this._$AK(t, s);
|
|
189
|
+
}
|
|
190
|
+
_$EC(t, e) {
|
|
191
|
+
var o;
|
|
192
|
+
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
193
|
+
if (i !== void 0 && s.reflect === !0) {
|
|
194
|
+
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : B).toAttribute(e, s.type);
|
|
195
|
+
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
_$AK(t, e) {
|
|
199
|
+
var o;
|
|
200
|
+
const s = this.constructor, i = s._$Eh.get(t);
|
|
201
|
+
if (i !== void 0 && this._$Em !== i) {
|
|
202
|
+
const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : B;
|
|
203
|
+
this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
requestUpdate(t, e, s) {
|
|
207
|
+
if (t !== void 0) {
|
|
208
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? X)(this[t], e))
|
|
209
|
+
return;
|
|
210
|
+
this.P(t, e, s);
|
|
211
|
+
}
|
|
212
|
+
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
213
|
+
}
|
|
214
|
+
P(t, e, s) {
|
|
215
|
+
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
216
|
+
}
|
|
217
|
+
async _$ET() {
|
|
218
|
+
this.isUpdatePending = !0;
|
|
219
|
+
try {
|
|
220
|
+
await this._$ES;
|
|
221
|
+
} catch (e) {
|
|
222
|
+
Promise.reject(e);
|
|
223
|
+
}
|
|
224
|
+
const t = this.scheduleUpdate();
|
|
225
|
+
return t != null && await t, !this.isUpdatePending;
|
|
226
|
+
}
|
|
227
|
+
scheduleUpdate() {
|
|
228
|
+
return this.performUpdate();
|
|
229
|
+
}
|
|
230
|
+
performUpdate() {
|
|
231
|
+
var s;
|
|
232
|
+
if (!this.isUpdatePending)
|
|
233
|
+
return;
|
|
234
|
+
if (!this.hasUpdated) {
|
|
235
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
236
|
+
for (const [o, n] of this._$Ep)
|
|
237
|
+
this[o] = n;
|
|
238
|
+
this._$Ep = void 0;
|
|
239
|
+
}
|
|
240
|
+
const i = this.constructor.elementProperties;
|
|
241
|
+
if (i.size > 0)
|
|
242
|
+
for (const [o, n] of i)
|
|
243
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
244
|
+
}
|
|
245
|
+
let t = !1;
|
|
246
|
+
const e = this._$AL;
|
|
247
|
+
try {
|
|
248
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
249
|
+
var o;
|
|
250
|
+
return (o = i.hostUpdate) == null ? void 0 : o.call(i);
|
|
251
|
+
}), this.update(e)) : this._$EU();
|
|
252
|
+
} catch (i) {
|
|
253
|
+
throw t = !1, this._$EU(), i;
|
|
254
|
+
}
|
|
255
|
+
t && this._$AE(e);
|
|
256
|
+
}
|
|
257
|
+
willUpdate(t) {
|
|
258
|
+
}
|
|
259
|
+
_$AE(t) {
|
|
260
|
+
var e;
|
|
261
|
+
(e = this._$EO) == null || e.forEach((s) => {
|
|
262
|
+
var i;
|
|
263
|
+
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
264
|
+
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
265
|
+
}
|
|
266
|
+
_$EU() {
|
|
267
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
268
|
+
}
|
|
269
|
+
get updateComplete() {
|
|
270
|
+
return this.getUpdateComplete();
|
|
271
|
+
}
|
|
272
|
+
getUpdateComplete() {
|
|
273
|
+
return this._$ES;
|
|
274
|
+
}
|
|
275
|
+
shouldUpdate(t) {
|
|
276
|
+
return !0;
|
|
277
|
+
}
|
|
278
|
+
update(t) {
|
|
279
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
280
|
+
}
|
|
281
|
+
updated(t) {
|
|
282
|
+
}
|
|
283
|
+
firstUpdated(t) {
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[b("elementProperties")] = /* @__PURE__ */ new Map(), y[b("finalized")] = /* @__PURE__ */ new Map(), M == null || M({ ReactiveElement: y }), (A.reactiveElementVersions ?? (A.reactiveElementVersions = [])).push("2.0.4");
|
|
287
|
+
/**
|
|
288
|
+
* @license
|
|
289
|
+
* Copyright 2017 Google LLC
|
|
290
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
291
|
+
*/
|
|
292
|
+
const C = globalThis, O = C.trustedTypes, q = O ? O.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, tt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, et = "?" + _, _t = `<${et}>`, m = document, w = () => m.createComment(""), P = (r) => r === null || typeof r != "object" && typeof r != "function", st = Array.isArray, At = (r) => st(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", k = `[
|
|
293
|
+
\f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J = /-->/g, K = />/g, f = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
|
|
294
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Y = /'/g, Z = /"/g, it = /^(?:script|style|textarea|title)$/i, ft = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), wt = ft(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), F = /* @__PURE__ */ new WeakMap(), g = m.createTreeWalker(m, 129);
|
|
295
|
+
function rt(r, t) {
|
|
296
|
+
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
|
297
|
+
throw Error("invalid template strings array");
|
|
298
|
+
return q !== void 0 ? q.createHTML(t) : t;
|
|
299
|
+
}
|
|
300
|
+
const gt = (r, t) => {
|
|
301
|
+
const e = r.length - 1, s = [];
|
|
302
|
+
let i, o = t === 2 ? "<svg>" : "", n = S;
|
|
303
|
+
for (let l = 0; l < e; l++) {
|
|
304
|
+
const h = r[l];
|
|
305
|
+
let c, p, a = -1, $ = 0;
|
|
306
|
+
for (; $ < h.length && (n.lastIndex = $, p = n.exec(h), p !== null); )
|
|
307
|
+
$ = n.lastIndex, n === S ? p[1] === "!--" ? n = J : p[1] !== void 0 ? n = K : p[2] !== void 0 ? (it.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = f) : p[3] !== void 0 && (n = f) : n === f ? p[0] === ">" ? (n = i ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? f : p[3] === '"' ? Z : Y) : n === Z || n === Y ? n = f : n === J || n === K ? n = S : (n = f, i = void 0);
|
|
308
|
+
const u = n === f && r[l + 1].startsWith("/>") ? " " : "";
|
|
309
|
+
o += n === S ? h + _t : a >= 0 ? (s.push(c), h.slice(0, a) + tt + h.slice(a) + _ + u) : h + _ + (a === -2 ? l : u);
|
|
310
|
+
}
|
|
311
|
+
return [rt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
312
|
+
};
|
|
313
|
+
class U {
|
|
314
|
+
constructor({ strings: t, _$litType$: e }, s) {
|
|
315
|
+
let i;
|
|
316
|
+
this.parts = [];
|
|
317
|
+
let o = 0, n = 0;
|
|
318
|
+
const l = t.length - 1, h = this.parts, [c, p] = gt(t, e);
|
|
319
|
+
if (this.el = U.createElement(c, s), g.currentNode = this.el.content, e === 2) {
|
|
320
|
+
const a = this.el.content.firstChild;
|
|
321
|
+
a.replaceWith(...a.childNodes);
|
|
322
|
+
}
|
|
323
|
+
for (; (i = g.nextNode()) !== null && h.length < l; ) {
|
|
324
|
+
if (i.nodeType === 1) {
|
|
325
|
+
if (i.hasAttributes())
|
|
326
|
+
for (const a of i.getAttributeNames())
|
|
327
|
+
if (a.endsWith(tt)) {
|
|
328
|
+
const $ = p[n++], u = i.getAttribute(a).split(_), x = /([.?@])?(.*)/.exec($);
|
|
329
|
+
h.push({ type: 1, index: o, name: x[2], strings: u, ctor: x[1] === "." ? yt : x[1] === "?" ? vt : x[1] === "@" ? Et : R }), i.removeAttribute(a);
|
|
330
|
+
} else
|
|
331
|
+
a.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(a));
|
|
332
|
+
if (it.test(i.tagName)) {
|
|
333
|
+
const a = i.textContent.split(_), $ = a.length - 1;
|
|
334
|
+
if ($ > 0) {
|
|
335
|
+
i.textContent = O ? O.emptyScript : "";
|
|
336
|
+
for (let u = 0; u < $; u++)
|
|
337
|
+
i.append(a[u], w()), g.nextNode(), h.push({ type: 2, index: ++o });
|
|
338
|
+
i.append(a[$], w());
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
} else if (i.nodeType === 8)
|
|
342
|
+
if (i.data === et)
|
|
343
|
+
h.push({ type: 2, index: o });
|
|
344
|
+
else {
|
|
345
|
+
let a = -1;
|
|
346
|
+
for (; (a = i.data.indexOf(_, a + 1)) !== -1; )
|
|
347
|
+
h.push({ type: 7, index: o }), a += _.length - 1;
|
|
348
|
+
}
|
|
349
|
+
o++;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
static createElement(t, e) {
|
|
353
|
+
const s = m.createElement("template");
|
|
354
|
+
return s.innerHTML = t, s;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function E(r, t, e = r, s) {
|
|
358
|
+
var n, l;
|
|
359
|
+
if (t === v)
|
|
360
|
+
return t;
|
|
361
|
+
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
|
362
|
+
const o = P(t) ? void 0 : t._$litDirective$;
|
|
363
|
+
return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(r, i._$AS(r, t.values), i, s)), t;
|
|
364
|
+
}
|
|
365
|
+
class mt {
|
|
366
|
+
constructor(t, e) {
|
|
367
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
368
|
+
}
|
|
369
|
+
get parentNode() {
|
|
370
|
+
return this._$AM.parentNode;
|
|
371
|
+
}
|
|
372
|
+
get _$AU() {
|
|
373
|
+
return this._$AM._$AU;
|
|
374
|
+
}
|
|
375
|
+
u(t) {
|
|
376
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? m).importNode(e, !0);
|
|
377
|
+
g.currentNode = i;
|
|
378
|
+
let o = g.nextNode(), n = 0, l = 0, h = s[0];
|
|
379
|
+
for (; h !== void 0; ) {
|
|
380
|
+
if (n === h.index) {
|
|
381
|
+
let c;
|
|
382
|
+
h.type === 2 ? c = new T(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++l];
|
|
383
|
+
}
|
|
384
|
+
n !== (h == null ? void 0 : h.index) && (o = g.nextNode(), n++);
|
|
385
|
+
}
|
|
386
|
+
return g.currentNode = m, i;
|
|
387
|
+
}
|
|
388
|
+
p(t) {
|
|
389
|
+
let e = 0;
|
|
390
|
+
for (const s of this._$AV)
|
|
391
|
+
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
class T {
|
|
395
|
+
get _$AU() {
|
|
396
|
+
var t;
|
|
397
|
+
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
398
|
+
}
|
|
399
|
+
constructor(t, e, s, i) {
|
|
400
|
+
this.type = 2, this._$AH = d, 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;
|
|
401
|
+
}
|
|
402
|
+
get parentNode() {
|
|
403
|
+
let t = this._$AA.parentNode;
|
|
404
|
+
const e = this._$AM;
|
|
405
|
+
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
|
406
|
+
}
|
|
407
|
+
get startNode() {
|
|
408
|
+
return this._$AA;
|
|
409
|
+
}
|
|
410
|
+
get endNode() {
|
|
411
|
+
return this._$AB;
|
|
412
|
+
}
|
|
413
|
+
_$AI(t, e = this) {
|
|
414
|
+
t = E(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : At(t) ? this.k(t) : this._(t);
|
|
415
|
+
}
|
|
416
|
+
S(t) {
|
|
417
|
+
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
418
|
+
}
|
|
419
|
+
T(t) {
|
|
420
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
421
|
+
}
|
|
422
|
+
_(t) {
|
|
423
|
+
this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t;
|
|
424
|
+
}
|
|
425
|
+
$(t) {
|
|
426
|
+
var o;
|
|
427
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(rt(s.h, s.h[0]), this.options)), s);
|
|
428
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
|
|
429
|
+
this._$AH.p(e);
|
|
430
|
+
else {
|
|
431
|
+
const n = new mt(i, this), l = n.u(this.options);
|
|
432
|
+
n.p(e), this.T(l), this._$AH = n;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
_$AC(t) {
|
|
436
|
+
let e = F.get(t.strings);
|
|
437
|
+
return e === void 0 && F.set(t.strings, e = new U(t)), e;
|
|
438
|
+
}
|
|
439
|
+
k(t) {
|
|
440
|
+
st(this._$AH) || (this._$AH = [], this._$AR());
|
|
441
|
+
const e = this._$AH;
|
|
442
|
+
let s, i = 0;
|
|
443
|
+
for (const o of t)
|
|
444
|
+
i === e.length ? e.push(s = new T(this.S(w()), this.S(w()), this, this.options)) : s = e[i], s._$AI(o), i++;
|
|
445
|
+
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
446
|
+
}
|
|
447
|
+
_$AR(t = this._$AA.nextSibling, e) {
|
|
448
|
+
var s;
|
|
449
|
+
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
|
450
|
+
const i = t.nextSibling;
|
|
451
|
+
t.remove(), t = i;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
setConnected(t) {
|
|
455
|
+
var e;
|
|
456
|
+
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
class R {
|
|
460
|
+
get tagName() {
|
|
461
|
+
return this.element.tagName;
|
|
462
|
+
}
|
|
463
|
+
get _$AU() {
|
|
464
|
+
return this._$AM._$AU;
|
|
465
|
+
}
|
|
466
|
+
constructor(t, e, s, i, o) {
|
|
467
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
|
|
468
|
+
}
|
|
469
|
+
_$AI(t, e = this, s, i) {
|
|
470
|
+
const o = this.strings;
|
|
471
|
+
let n = !1;
|
|
472
|
+
if (o === void 0)
|
|
473
|
+
t = E(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== v, n && (this._$AH = t);
|
|
474
|
+
else {
|
|
475
|
+
const l = t;
|
|
476
|
+
let h, c;
|
|
477
|
+
for (t = o[0], h = 0; h < o.length - 1; h++)
|
|
478
|
+
c = E(this, l[s + h], e, h), c === v && (c = this._$AH[h]), n || (n = !P(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
|
|
479
|
+
}
|
|
480
|
+
n && !i && this.j(t);
|
|
481
|
+
}
|
|
482
|
+
j(t) {
|
|
483
|
+
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
class yt extends R {
|
|
487
|
+
constructor() {
|
|
488
|
+
super(...arguments), this.type = 3;
|
|
489
|
+
}
|
|
490
|
+
j(t) {
|
|
491
|
+
this.element[this.name] = t === d ? void 0 : t;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
class vt extends R {
|
|
495
|
+
constructor() {
|
|
496
|
+
super(...arguments), this.type = 4;
|
|
497
|
+
}
|
|
498
|
+
j(t) {
|
|
499
|
+
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
class Et extends R {
|
|
503
|
+
constructor(t, e, s, i, o) {
|
|
504
|
+
super(t, e, s, i, o), this.type = 5;
|
|
505
|
+
}
|
|
506
|
+
_$AI(t, e = this) {
|
|
507
|
+
if ((t = E(this, t, e, 0) ?? d) === v)
|
|
508
|
+
return;
|
|
509
|
+
const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
|
|
510
|
+
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
511
|
+
}
|
|
512
|
+
handleEvent(t) {
|
|
513
|
+
var e;
|
|
514
|
+
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
class St {
|
|
518
|
+
constructor(t, e, s) {
|
|
519
|
+
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
520
|
+
}
|
|
521
|
+
get _$AU() {
|
|
522
|
+
return this._$AM._$AU;
|
|
523
|
+
}
|
|
524
|
+
_$AI(t) {
|
|
525
|
+
E(this, t);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
const L = C.litHtmlPolyfillSupport;
|
|
529
|
+
L == null || L(U, T), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.1.2");
|
|
530
|
+
const bt = (r, t, e) => {
|
|
531
|
+
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
532
|
+
let i = s._$litPart$;
|
|
533
|
+
if (i === void 0) {
|
|
534
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
535
|
+
s._$litPart$ = i = new T(t.insertBefore(w(), o), o, void 0, e ?? {});
|
|
536
|
+
}
|
|
537
|
+
return i._$AI(r), i;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* @license
|
|
541
|
+
* Copyright 2017 Google LLC
|
|
542
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
543
|
+
*/
|
|
544
|
+
class N extends y {
|
|
545
|
+
constructor() {
|
|
546
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
547
|
+
}
|
|
548
|
+
createRenderRoot() {
|
|
549
|
+
var e;
|
|
550
|
+
const t = super.createRenderRoot();
|
|
551
|
+
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
|
552
|
+
}
|
|
553
|
+
update(t) {
|
|
554
|
+
const e = this.render();
|
|
555
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = bt(e, this.renderRoot, this.renderOptions);
|
|
556
|
+
}
|
|
557
|
+
connectedCallback() {
|
|
558
|
+
var t;
|
|
559
|
+
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
|
560
|
+
}
|
|
561
|
+
disconnectedCallback() {
|
|
562
|
+
var t;
|
|
563
|
+
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
564
|
+
}
|
|
565
|
+
render() {
|
|
566
|
+
return v;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
var G;
|
|
570
|
+
N._$litElement$ = !0, N.finalized = !0, (G = globalThis.litElementHydrateSupport) == null || G.call(globalThis, { LitElement: N });
|
|
571
|
+
const I = globalThis.litElementPolyfillSupport;
|
|
572
|
+
I == null || I({ LitElement: N });
|
|
573
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
574
|
+
/**
|
|
575
|
+
* @license
|
|
576
|
+
* Copyright 2017 Google LLC
|
|
577
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
578
|
+
*/
|
|
579
|
+
const Pt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ut = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
|
580
|
+
class Tt {
|
|
581
|
+
constructor(t) {
|
|
582
|
+
}
|
|
583
|
+
get _$AU() {
|
|
584
|
+
return this._$AM._$AU;
|
|
585
|
+
}
|
|
586
|
+
_$AT(t, e, s) {
|
|
587
|
+
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
|
588
|
+
}
|
|
589
|
+
_$AS(t, e) {
|
|
590
|
+
return this.update(t, e);
|
|
591
|
+
}
|
|
592
|
+
update(t, e) {
|
|
593
|
+
return this.render(...e);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
export {
|
|
597
|
+
d as T,
|
|
598
|
+
Ut as e,
|
|
599
|
+
X as f,
|
|
600
|
+
Tt as i,
|
|
601
|
+
N as s,
|
|
602
|
+
Pt as t,
|
|
603
|
+
B as u,
|
|
604
|
+
v as w,
|
|
605
|
+
wt as x
|
|
606
|
+
};
|