@mantou/gem 2.0.0-alpha.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gem.es.js +694 -686
- package/dist/gem.umd.js +25 -25
- package/elements/base/modal-factory.d.ts +6 -3
- package/elements/base/modal-factory.d.ts.map +1 -1
- package/elements/base/route.d.ts.map +1 -1
- package/elements/base/route.js +17 -12
- package/elements/base/route.js.map +1 -1
- package/lib/decorators.d.ts +1 -0
- package/lib/decorators.d.ts.map +1 -1
- package/lib/decorators.js +6 -0
- package/lib/decorators.js.map +1 -1
- package/lib/element.d.ts +3 -2
- package/lib/element.d.ts.map +1 -1
- package/lib/element.js +6 -6
- package/lib/element.js.map +1 -1
- package/package.json +4 -4
- package/src/elements/base/route.ts +3 -5
- package/src/lib/decorators.ts +8 -1
- package/src/lib/element.ts +9 -7
package/dist/gem.es.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ka = Object.defineProperty;
|
|
2
|
+
var mi = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var T = (e, t, n) =>
|
|
7
|
-
var p = (e, t, n) => (
|
|
8
|
-
const
|
|
5
|
+
var xa = (e, t, n) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var T = (e, t, n) => xa(e, typeof t != "symbol" ? t + "" : t, n), Rn = (e, t, n) => t.has(e) || mi("Cannot " + n);
|
|
7
|
+
var p = (e, t, n) => (Rn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), b = (e, t, n) => t.has(e) ? mi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), x = (e, t, n, s) => (Rn(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Hn = (e, t, n) => (Rn(e, t, "access private method"), n);
|
|
8
|
+
const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9
9
|
__proto__: null,
|
|
10
10
|
get adoptedStyle() {
|
|
11
|
-
return
|
|
11
|
+
return Rs;
|
|
12
12
|
},
|
|
13
13
|
get aria() {
|
|
14
|
-
return
|
|
14
|
+
return Ln;
|
|
15
15
|
},
|
|
16
16
|
get async() {
|
|
17
|
-
return
|
|
17
|
+
return dc;
|
|
18
18
|
},
|
|
19
19
|
get attribute() {
|
|
20
|
-
return
|
|
20
|
+
return V;
|
|
21
21
|
},
|
|
22
22
|
get boolattribute() {
|
|
23
|
-
return
|
|
23
|
+
return Tn;
|
|
24
24
|
},
|
|
25
25
|
get connectStore() {
|
|
26
|
-
return
|
|
26
|
+
return Mn;
|
|
27
27
|
},
|
|
28
28
|
get customElement() {
|
|
29
|
-
return
|
|
29
|
+
return pc;
|
|
30
30
|
},
|
|
31
31
|
get effect() {
|
|
32
32
|
return $t;
|
|
@@ -35,22 +35,25 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
35
35
|
return ye;
|
|
36
36
|
},
|
|
37
37
|
get fallback() {
|
|
38
|
-
return
|
|
38
|
+
return cc;
|
|
39
39
|
},
|
|
40
40
|
get globalemitter() {
|
|
41
|
-
return
|
|
41
|
+
return uc;
|
|
42
|
+
},
|
|
43
|
+
get light() {
|
|
44
|
+
return Mr;
|
|
42
45
|
},
|
|
43
46
|
get memo() {
|
|
44
|
-
return
|
|
47
|
+
return Pr;
|
|
45
48
|
},
|
|
46
49
|
get mounted() {
|
|
47
50
|
return qe;
|
|
48
51
|
},
|
|
49
52
|
get numattribute() {
|
|
50
|
-
return
|
|
53
|
+
return oc;
|
|
51
54
|
},
|
|
52
55
|
get part() {
|
|
53
|
-
return
|
|
56
|
+
return Tr;
|
|
54
57
|
},
|
|
55
58
|
get property() {
|
|
56
59
|
return U;
|
|
@@ -59,19 +62,19 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
59
62
|
return Ht;
|
|
60
63
|
},
|
|
61
64
|
get slot() {
|
|
62
|
-
return
|
|
65
|
+
return hc;
|
|
63
66
|
},
|
|
64
67
|
get state() {
|
|
65
|
-
return
|
|
68
|
+
return On;
|
|
66
69
|
},
|
|
67
70
|
get template() {
|
|
68
|
-
return
|
|
71
|
+
return kr;
|
|
69
72
|
},
|
|
70
73
|
get unmounted() {
|
|
71
|
-
return
|
|
74
|
+
return ac;
|
|
72
75
|
},
|
|
73
76
|
get willMount() {
|
|
74
|
-
return
|
|
77
|
+
return Is;
|
|
75
78
|
}
|
|
76
79
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
77
80
|
/**
|
|
@@ -87,10 +90,10 @@ const Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
87
90
|
* subject to an additional IP rights grant found at
|
|
88
91
|
* http://polymer.github.io/PATENTS.txt
|
|
89
92
|
*/
|
|
90
|
-
const
|
|
93
|
+
const lr = /* @__PURE__ */ new WeakMap(), Sn = (e) => (...t) => {
|
|
91
94
|
const n = e(...t);
|
|
92
|
-
return
|
|
93
|
-
},
|
|
95
|
+
return lr.set(n, !0), n;
|
|
96
|
+
}, Ve = (e) => typeof e == "function" && lr.has(e);
|
|
94
97
|
/**
|
|
95
98
|
* @license
|
|
96
99
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -104,12 +107,12 @@ const ur = /* @__PURE__ */ new WeakMap(), Sn = (e) => (...t) => {
|
|
|
104
107
|
* subject to an additional IP rights grant found at
|
|
105
108
|
* http://polymer.github.io/PATENTS.txt
|
|
106
109
|
*/
|
|
107
|
-
const
|
|
110
|
+
const vi = typeof window < "u" && window.customElements != null && window.customElements.polyfillWrapFlushCallback !== void 0, hr = (e, t, n = null, s = null) => {
|
|
108
111
|
for (; t !== n; ) {
|
|
109
112
|
const i = t.nextSibling;
|
|
110
113
|
e.insertBefore(t, s), t = i;
|
|
111
114
|
}
|
|
112
|
-
},
|
|
115
|
+
}, $s = (e, t, n = null) => {
|
|
113
116
|
for (; t !== n; ) {
|
|
114
117
|
const s = t.nextSibling;
|
|
115
118
|
e.removeChild(t), t = s;
|
|
@@ -128,7 +131,7 @@ const yi = typeof window < "u" && window.customElements != null && window.custom
|
|
|
128
131
|
* subject to an additional IP rights grant found at
|
|
129
132
|
* http://polymer.github.io/PATENTS.txt
|
|
130
133
|
*/
|
|
131
|
-
const it = {},
|
|
134
|
+
const it = {}, wi = {};
|
|
132
135
|
/**
|
|
133
136
|
* @license
|
|
134
137
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -142,8 +145,8 @@ const it = {}, Si = {};
|
|
|
142
145
|
* subject to an additional IP rights grant found at
|
|
143
146
|
* http://polymer.github.io/PATENTS.txt
|
|
144
147
|
*/
|
|
145
|
-
const St = `{{lit-${String(Math.random()).slice(2)}}}`,
|
|
146
|
-
class
|
|
148
|
+
const St = `{{lit-${String(Math.random()).slice(2)}}}`, ur = `<!--${St}-->`, yi = new RegExp(`${St}|${ur}`), we = "$lit$";
|
|
149
|
+
class Oa {
|
|
147
150
|
constructor(t, n) {
|
|
148
151
|
this.parts = [], this.element = n;
|
|
149
152
|
const s = [], i = [], o = document.createTreeWalker(n.content, 133, null, !1);
|
|
@@ -160,11 +163,11 @@ class Ma {
|
|
|
160
163
|
const _ = r.attributes, { length: l } = _;
|
|
161
164
|
let g = 0;
|
|
162
165
|
for (let v = 0; v < l; v++)
|
|
163
|
-
|
|
166
|
+
Si(_[v].name, we) && g++;
|
|
164
167
|
for (; g-- > 0; ) {
|
|
165
|
-
const v = h[f], y =
|
|
168
|
+
const v = h[f], y = Jn.exec(v)[2], $ = y.toLowerCase() + we, d = r.getAttribute($);
|
|
166
169
|
r.removeAttribute($);
|
|
167
|
-
const S = d.split(
|
|
170
|
+
const S = d.split(yi);
|
|
168
171
|
this.parts.push({ type: "attribute", index: a, name: y, strings: S }), f += S.length - 1;
|
|
169
172
|
}
|
|
170
173
|
}
|
|
@@ -172,14 +175,14 @@ class Ma {
|
|
|
172
175
|
} else if (r.nodeType === 3) {
|
|
173
176
|
const _ = r.data;
|
|
174
177
|
if (_.indexOf(St) >= 0) {
|
|
175
|
-
const l = r.parentNode, g = _.split(
|
|
178
|
+
const l = r.parentNode, g = _.split(yi), v = g.length - 1;
|
|
176
179
|
for (let y = 0; y < v; y++) {
|
|
177
180
|
let $, d = g[y];
|
|
178
181
|
if (d === "")
|
|
179
182
|
$ = ot();
|
|
180
183
|
else {
|
|
181
|
-
const S =
|
|
182
|
-
S !== null &&
|
|
184
|
+
const S = Jn.exec(d);
|
|
185
|
+
S !== null && Si(S[2], we) && (d = d.slice(0, S.index) + S[1] + S[2].slice(0, -we.length) + S[3]), $ = document.createTextNode(d);
|
|
183
186
|
}
|
|
184
187
|
l.insertBefore($, r), this.parts.push({ type: "node", index: ++a });
|
|
185
188
|
}
|
|
@@ -199,10 +202,10 @@ class Ma {
|
|
|
199
202
|
r.parentNode.removeChild(r);
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
|
-
const
|
|
205
|
+
const Si = (e, t) => {
|
|
203
206
|
const n = e.length - t.length;
|
|
204
207
|
return n >= 0 && e.slice(n) === t;
|
|
205
|
-
},
|
|
208
|
+
}, Ma = (e) => e.index !== -1, ot = () => document.createComment(""), Jn = (
|
|
206
209
|
// eslint-disable-next-line no-control-regex
|
|
207
210
|
/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/
|
|
208
211
|
);
|
|
@@ -219,7 +222,7 @@ const Ei = (e, t) => {
|
|
|
219
222
|
* subject to an additional IP rights grant found at
|
|
220
223
|
* http://polymer.github.io/PATENTS.txt
|
|
221
224
|
*/
|
|
222
|
-
class
|
|
225
|
+
class $i {
|
|
223
226
|
constructor(t, n, s) {
|
|
224
227
|
this.__parts = [], this.template = t, this.processor = n, this.options = s;
|
|
225
228
|
}
|
|
@@ -231,10 +234,10 @@ class bi {
|
|
|
231
234
|
s !== void 0 && s.commit();
|
|
232
235
|
}
|
|
233
236
|
_clone() {
|
|
234
|
-
const t =
|
|
237
|
+
const t = vi ? this.template.element.content.cloneNode(!0) : document.importNode(this.template.element.content, !0), n = [], s = this.template.parts, i = document.createTreeWalker(t, 133, null, !1);
|
|
235
238
|
let o = 0, c = 0, a, f = i.nextNode();
|
|
236
239
|
for (; o < s.length; ) {
|
|
237
|
-
if (a = s[o], !
|
|
240
|
+
if (a = s[o], !Ma(a)) {
|
|
238
241
|
this.__parts.push(void 0), o++;
|
|
239
242
|
continue;
|
|
240
243
|
}
|
|
@@ -247,7 +250,7 @@ class bi {
|
|
|
247
250
|
this.__parts.push(...this.processor.handleAttributeExpressions(f, a.name, a.strings, this.options));
|
|
248
251
|
o++;
|
|
249
252
|
}
|
|
250
|
-
return
|
|
253
|
+
return vi && (document.adoptNode(t), customElements.upgrade(t)), t;
|
|
251
254
|
}
|
|
252
255
|
}
|
|
253
256
|
/**
|
|
@@ -263,7 +266,7 @@ class bi {
|
|
|
263
266
|
* subject to an additional IP rights grant found at
|
|
264
267
|
* http://polymer.github.io/PATENTS.txt
|
|
265
268
|
*/
|
|
266
|
-
const
|
|
269
|
+
const Ei = window.trustedTypes && trustedTypes.createPolicy("lit-html", { createHTML: (e) => e }), La = ` ${St} `;
|
|
267
270
|
class $n {
|
|
268
271
|
constructor(t, n, s, i) {
|
|
269
272
|
this.strings = t, this.values = n, this.type = s, this.processor = i;
|
|
@@ -277,24 +280,24 @@ class $n {
|
|
|
277
280
|
for (let i = 0; i < t; i++) {
|
|
278
281
|
const o = this.strings[i], c = o.lastIndexOf("<!--");
|
|
279
282
|
s = (c > -1 || s) && o.indexOf("-->", c + 1) === -1;
|
|
280
|
-
const a =
|
|
281
|
-
a === null ? n += o + (s ?
|
|
283
|
+
const a = Jn.exec(o);
|
|
284
|
+
a === null ? n += o + (s ? La : ur) : n += o.substr(0, a.index) + a[1] + a[2] + we + a[3] + St;
|
|
282
285
|
}
|
|
283
286
|
return n += this.strings[t], n;
|
|
284
287
|
}
|
|
285
288
|
getTemplateElement() {
|
|
286
289
|
const t = document.createElement("template");
|
|
287
290
|
let n = this.getHTML();
|
|
288
|
-
return
|
|
291
|
+
return Ei !== void 0 && (n = Ei.createHTML(n)), t.innerHTML = n, t;
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
|
-
class
|
|
294
|
+
class dr extends $n {
|
|
292
295
|
getHTML() {
|
|
293
296
|
return `<svg>${super.getHTML()}</svg>`;
|
|
294
297
|
}
|
|
295
298
|
getTemplateElement() {
|
|
296
299
|
const t = super.getTemplateElement(), n = t.content, s = n.firstChild;
|
|
297
|
-
return n.removeChild(s),
|
|
300
|
+
return n.removeChild(s), hr(n, s.firstChild), t;
|
|
298
301
|
}
|
|
299
302
|
}
|
|
300
303
|
/**
|
|
@@ -310,9 +313,9 @@ class fr extends $n {
|
|
|
310
313
|
* subject to an additional IP rights grant found at
|
|
311
314
|
* http://polymer.github.io/PATENTS.txt
|
|
312
315
|
*/
|
|
313
|
-
const
|
|
316
|
+
const Es = (e) => e === null || !(typeof e == "object" || typeof e == "function"), Yn = (e) => Array.isArray(e) || // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
314
317
|
!!(e && e[Symbol.iterator]);
|
|
315
|
-
class
|
|
318
|
+
class pr {
|
|
316
319
|
constructor(t, n, s) {
|
|
317
320
|
this.dirty = !0, this.element = t, this.name = n, this.strings = s, this.parts = [];
|
|
318
321
|
for (let i = 0; i < s.length - 1; i++)
|
|
@@ -322,7 +325,7 @@ class _r {
|
|
|
322
325
|
* Creates a single part. Override this to create a differnt type of part.
|
|
323
326
|
*/
|
|
324
327
|
_createPart() {
|
|
325
|
-
return new
|
|
328
|
+
return new bs(this);
|
|
326
329
|
}
|
|
327
330
|
_getValue() {
|
|
328
331
|
const t = this.strings, n = t.length - 1, s = this.parts;
|
|
@@ -330,7 +333,7 @@ class _r {
|
|
|
330
333
|
const o = s[0].value;
|
|
331
334
|
if (typeof o == "symbol")
|
|
332
335
|
return String(o);
|
|
333
|
-
if (typeof o == "string" || !
|
|
336
|
+
if (typeof o == "string" || !Yn(o))
|
|
334
337
|
return o;
|
|
335
338
|
}
|
|
336
339
|
let i = "";
|
|
@@ -339,7 +342,7 @@ class _r {
|
|
|
339
342
|
const c = s[o];
|
|
340
343
|
if (c !== void 0) {
|
|
341
344
|
const a = c.value;
|
|
342
|
-
if (
|
|
345
|
+
if (Es(a) || !Yn(a))
|
|
343
346
|
i += typeof a == "string" ? a : String(a);
|
|
344
347
|
else
|
|
345
348
|
for (const f of a)
|
|
@@ -352,15 +355,15 @@ class _r {
|
|
|
352
355
|
this.dirty && (this.dirty = !1, this.element.setAttribute(this.name, this._getValue()));
|
|
353
356
|
}
|
|
354
357
|
}
|
|
355
|
-
class
|
|
358
|
+
class bs {
|
|
356
359
|
constructor(t) {
|
|
357
360
|
this.value = void 0, this.committer = t;
|
|
358
361
|
}
|
|
359
362
|
setValue(t) {
|
|
360
|
-
t !== it && (!
|
|
363
|
+
t !== it && (!Es(t) || t !== this.value) && (this.value = t, Ve(t) || (this.committer.dirty = !0));
|
|
361
364
|
}
|
|
362
365
|
commit() {
|
|
363
|
-
for (;
|
|
366
|
+
for (; Ve(this.value); ) {
|
|
364
367
|
const t = this.value;
|
|
365
368
|
this.value = it, t(this);
|
|
366
369
|
}
|
|
@@ -411,12 +414,12 @@ class re {
|
|
|
411
414
|
commit() {
|
|
412
415
|
if (this.startNode.parentNode === null)
|
|
413
416
|
return;
|
|
414
|
-
for (;
|
|
417
|
+
for (; Ve(this.__pendingValue); ) {
|
|
415
418
|
const n = this.__pendingValue;
|
|
416
419
|
this.__pendingValue = it, n(this);
|
|
417
420
|
}
|
|
418
421
|
const t = this.__pendingValue;
|
|
419
|
-
t !== it && (
|
|
422
|
+
t !== it && (Es(t) ? t !== this.value && this.__commitText(t) : t instanceof $n ? this.__commitTemplateResult(t) : t instanceof Node ? this.__commitNode(t) : Yn(t) ? this.__commitIterable(t) : t === wi ? (this.value = wi, this.clear()) : this.__commitText(t));
|
|
420
423
|
}
|
|
421
424
|
__insert(t) {
|
|
422
425
|
this.endNode.parentNode.insertBefore(t, this.endNode);
|
|
@@ -432,10 +435,10 @@ class re {
|
|
|
432
435
|
}
|
|
433
436
|
__commitTemplateResult(t) {
|
|
434
437
|
const n = this.options.templateFactory(t);
|
|
435
|
-
if (this.value instanceof
|
|
438
|
+
if (this.value instanceof $i && this.value.template === n)
|
|
436
439
|
this.value.update(t.values);
|
|
437
440
|
else {
|
|
438
|
-
const s = new
|
|
441
|
+
const s = new $i(n, t.processor, this.options), i = s._clone();
|
|
439
442
|
s.update(t.values), this.__commitNode(i), this.value = s;
|
|
440
443
|
}
|
|
441
444
|
}
|
|
@@ -448,10 +451,10 @@ class re {
|
|
|
448
451
|
s < n.length && (n.length = s, this.clear(i && i.endNode));
|
|
449
452
|
}
|
|
450
453
|
clear(t = this.startNode) {
|
|
451
|
-
|
|
454
|
+
$s(this.startNode.parentNode, t.nextSibling, this.endNode);
|
|
452
455
|
}
|
|
453
456
|
}
|
|
454
|
-
class
|
|
457
|
+
class Na {
|
|
455
458
|
constructor(t, n, s) {
|
|
456
459
|
if (this.value = void 0, this.__pendingValue = void 0, s.length !== 2 || s[0] !== "" || s[1] !== "")
|
|
457
460
|
throw new Error("Boolean attributes can only contain a single expression");
|
|
@@ -461,7 +464,7 @@ class Aa {
|
|
|
461
464
|
this.__pendingValue = t;
|
|
462
465
|
}
|
|
463
466
|
commit() {
|
|
464
|
-
for (;
|
|
467
|
+
for (; Ve(this.__pendingValue); ) {
|
|
465
468
|
const n = this.__pendingValue;
|
|
466
469
|
this.__pendingValue = it, n(this);
|
|
467
470
|
}
|
|
@@ -471,12 +474,12 @@ class Aa {
|
|
|
471
474
|
this.value !== t && (t ? this.element.setAttribute(this.name, "") : this.element.removeAttribute(this.name), this.value = t), this.__pendingValue = it;
|
|
472
475
|
}
|
|
473
476
|
}
|
|
474
|
-
class
|
|
477
|
+
class Aa extends pr {
|
|
475
478
|
constructor(t, n, s) {
|
|
476
479
|
super(t, n, s), this.single = s.length === 2 && s[0] === "" && s[1] === "";
|
|
477
480
|
}
|
|
478
481
|
_createPart() {
|
|
479
|
-
return new
|
|
482
|
+
return new Ia(this);
|
|
480
483
|
}
|
|
481
484
|
_getValue() {
|
|
482
485
|
return this.single ? this.parts[0].value : super._getValue();
|
|
@@ -485,21 +488,21 @@ class Ia extends _r {
|
|
|
485
488
|
this.dirty && (this.dirty = !1, this.element[this.name] = this._getValue());
|
|
486
489
|
}
|
|
487
490
|
}
|
|
488
|
-
class
|
|
491
|
+
class Ia extends bs {
|
|
489
492
|
}
|
|
490
|
-
let
|
|
493
|
+
let fr = !1;
|
|
491
494
|
(() => {
|
|
492
495
|
try {
|
|
493
496
|
const e = {
|
|
494
497
|
get capture() {
|
|
495
|
-
return
|
|
498
|
+
return fr = !0, !1;
|
|
496
499
|
}
|
|
497
500
|
};
|
|
498
501
|
window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
|
|
499
502
|
} catch {
|
|
500
503
|
}
|
|
501
504
|
})();
|
|
502
|
-
class
|
|
505
|
+
class Ra {
|
|
503
506
|
constructor(t, n, s) {
|
|
504
507
|
this.value = void 0, this.__pendingValue = void 0, this.element = t, this.eventName = n, this.eventContext = s, this.__boundHandleEvent = (i) => this.handleEvent(i);
|
|
505
508
|
}
|
|
@@ -507,20 +510,20 @@ class Ha {
|
|
|
507
510
|
this.__pendingValue = t;
|
|
508
511
|
}
|
|
509
512
|
commit() {
|
|
510
|
-
for (;
|
|
513
|
+
for (; Ve(this.__pendingValue); ) {
|
|
511
514
|
const o = this.__pendingValue;
|
|
512
515
|
this.__pendingValue = it, o(this);
|
|
513
516
|
}
|
|
514
517
|
if (this.__pendingValue === it)
|
|
515
518
|
return;
|
|
516
519
|
const t = this.__pendingValue, n = this.value, s = t == null || n != null && (t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive), i = t != null && (n == null || s);
|
|
517
|
-
s && this.element.removeEventListener(this.eventName, this.__boundHandleEvent, this.__options), i && (this.__options =
|
|
520
|
+
s && this.element.removeEventListener(this.eventName, this.__boundHandleEvent, this.__options), i && (this.__options = Ha(t), this.element.addEventListener(this.eventName, this.__boundHandleEvent, this.__options)), this.value = t, this.__pendingValue = it;
|
|
518
521
|
}
|
|
519
522
|
handleEvent(t) {
|
|
520
523
|
typeof this.value == "function" ? this.value.call(this.eventContext || this.element, t) : this.value.handleEvent(t);
|
|
521
524
|
}
|
|
522
525
|
}
|
|
523
|
-
const
|
|
526
|
+
const Ha = (e) => e && (fr ? { capture: e.capture, passive: e.passive, once: e.once } : e.capture);
|
|
524
527
|
/**
|
|
525
528
|
* @license
|
|
526
529
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -534,7 +537,7 @@ const Wa = (e) => e && (gr ? { capture: e.capture, passive: e.passive, once: e.o
|
|
|
534
537
|
* subject to an additional IP rights grant found at
|
|
535
538
|
* http://polymer.github.io/PATENTS.txt
|
|
536
539
|
*/
|
|
537
|
-
class
|
|
540
|
+
class Wa {
|
|
538
541
|
/**
|
|
539
542
|
* Create parts for an attribute-position binding, given the event, attribute
|
|
540
543
|
* name, and string literals.
|
|
@@ -546,7 +549,7 @@ class za {
|
|
|
546
549
|
*/
|
|
547
550
|
handleAttributeExpressions(t, n, s, i) {
|
|
548
551
|
const o = n[0];
|
|
549
|
-
return o === "." ? new
|
|
552
|
+
return o === "." ? new Aa(t, n.slice(1), s).parts : o === "@" ? [new Ra(t, n.slice(1), i.eventContext)] : o === "?" ? [new Na(t, n.slice(1), s)] : new pr(t, n, s).parts;
|
|
550
553
|
}
|
|
551
554
|
/**
|
|
552
555
|
* Create parts for a text-position binding.
|
|
@@ -556,7 +559,7 @@ class za {
|
|
|
556
559
|
return new re(t);
|
|
557
560
|
}
|
|
558
561
|
}
|
|
559
|
-
const
|
|
562
|
+
const _r = new Wa();
|
|
560
563
|
/**
|
|
561
564
|
* @license
|
|
562
565
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -570,19 +573,19 @@ const mr = new za();
|
|
|
570
573
|
* subject to an additional IP rights grant found at
|
|
571
574
|
* http://polymer.github.io/PATENTS.txt
|
|
572
575
|
*/
|
|
573
|
-
function
|
|
574
|
-
let t =
|
|
576
|
+
function za(e) {
|
|
577
|
+
let t = bi.get(e.type);
|
|
575
578
|
t === void 0 && (t = {
|
|
576
579
|
stringsArray: /* @__PURE__ */ new WeakMap(),
|
|
577
580
|
keyString: /* @__PURE__ */ new Map()
|
|
578
|
-
},
|
|
581
|
+
}, bi.set(e.type, t));
|
|
579
582
|
let n = t.stringsArray.get(e.strings);
|
|
580
583
|
if (n !== void 0)
|
|
581
584
|
return n;
|
|
582
585
|
const s = e.strings.join(St);
|
|
583
|
-
return n = t.keyString.get(s), n === void 0 && (n = new
|
|
586
|
+
return n = t.keyString.get(s), n === void 0 && (n = new Oa(e, e.getTemplateElement()), t.keyString.set(s, n)), t.stringsArray.set(e.strings, n), n;
|
|
584
587
|
}
|
|
585
|
-
const
|
|
588
|
+
const bi = /* @__PURE__ */ new Map();
|
|
586
589
|
/**
|
|
587
590
|
* @license
|
|
588
591
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -596,9 +599,9 @@ const Pi = /* @__PURE__ */ new Map();
|
|
|
596
599
|
* subject to an additional IP rights grant found at
|
|
597
600
|
* http://polymer.github.io/PATENTS.txt
|
|
598
601
|
*/
|
|
599
|
-
const
|
|
600
|
-
let s =
|
|
601
|
-
s === void 0 && (
|
|
602
|
+
const Ci = /* @__PURE__ */ new WeakMap(), Cs = (e, t, n) => {
|
|
603
|
+
let s = Ci.get(t);
|
|
604
|
+
s === void 0 && ($s(t, t.firstChild), Ci.set(t, s = new re(Object.assign({ templateFactory: za }, n))), s.appendInto(t)), s.setValue(e), s.commit();
|
|
602
605
|
};
|
|
603
606
|
/**
|
|
604
607
|
* @license
|
|
@@ -614,7 +617,7 @@ const ki = /* @__PURE__ */ new WeakMap(), ks = (e, t, n) => {
|
|
|
614
617
|
* http://polymer.github.io/PATENTS.txt
|
|
615
618
|
*/
|
|
616
619
|
typeof window < "u" && (window.litHtmlVersions || (window.litHtmlVersions = [])).push("1.4.1");
|
|
617
|
-
const at = (e, ...t) => new $n(e, t, "html",
|
|
620
|
+
const at = (e, ...t) => new $n(e, t, "html", _r), Ga = (e, ...t) => new dr(e, t, "svg", _r);
|
|
618
621
|
let _e = /* @__PURE__ */ new Set();
|
|
619
622
|
function Ot(e) {
|
|
620
623
|
typeof e == "function" && (_e.size || globalThis.queueMicrotask(() => {
|
|
@@ -622,30 +625,30 @@ function Ot(e) {
|
|
|
622
625
|
_e = /* @__PURE__ */ new Set(), t.forEach((n) => n());
|
|
623
626
|
}), _e.delete(e), _e.add(e));
|
|
624
627
|
}
|
|
625
|
-
function
|
|
628
|
+
function gr(e = "", t = "") {
|
|
626
629
|
const { pathname: n, search: s, hash: i } = new URL(t, location.origin + e);
|
|
627
630
|
return n + s + decodeURIComponent(i);
|
|
628
631
|
}
|
|
629
|
-
function
|
|
632
|
+
function mr(e, t, n, s) {
|
|
630
633
|
return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
|
|
631
634
|
}
|
|
632
|
-
var
|
|
633
|
-
class
|
|
635
|
+
var vt, lt, wt, Ke, Qn;
|
|
636
|
+
class Va extends EventTarget {
|
|
634
637
|
constructor() {
|
|
635
638
|
super(...arguments);
|
|
636
639
|
b(this, Ke);
|
|
637
|
-
b(this,
|
|
640
|
+
b(this, vt, /* @__PURE__ */ new Map());
|
|
638
641
|
b(this, lt);
|
|
639
|
-
b(this,
|
|
642
|
+
b(this, wt);
|
|
640
643
|
}
|
|
641
644
|
get size() {
|
|
642
|
-
return p(this,
|
|
645
|
+
return p(this, vt).size;
|
|
643
646
|
}
|
|
644
647
|
get first() {
|
|
645
648
|
return p(this, lt);
|
|
646
649
|
}
|
|
647
650
|
get last() {
|
|
648
|
-
return p(this,
|
|
651
|
+
return p(this, wt);
|
|
649
652
|
}
|
|
650
653
|
isSuperLinkOf(n) {
|
|
651
654
|
let s = n.first;
|
|
@@ -658,18 +661,18 @@ class Da extends EventTarget {
|
|
|
658
661
|
return !1;
|
|
659
662
|
}
|
|
660
663
|
find(n) {
|
|
661
|
-
return p(this,
|
|
664
|
+
return p(this, vt).get(n);
|
|
662
665
|
}
|
|
663
666
|
// 添加到尾部,已存在时会删除老的项目
|
|
664
667
|
// 如果是添加第一个,start 事件会在添加前触发,避免处理事件重复的逻辑
|
|
665
668
|
add(n) {
|
|
666
|
-
p(this,
|
|
667
|
-
const s =
|
|
668
|
-
s.prev = p(this,
|
|
669
|
+
p(this, wt) || this.dispatchEvent(new CustomEvent("start"));
|
|
670
|
+
const s = Hn(this, Ke, Qn).call(this, n) || { value: n };
|
|
671
|
+
s.prev = p(this, wt), s.prev && (s.prev.next = s), s.next = void 0, x(this, wt, s), p(this, lt) || x(this, lt, s), p(this, vt).set(n, s);
|
|
669
672
|
}
|
|
670
673
|
// 删除这个元素后没有其他元素时立即出发 end 事件
|
|
671
674
|
delete(n) {
|
|
672
|
-
const s =
|
|
675
|
+
const s = Hn(this, Ke, Qn).call(this, n);
|
|
673
676
|
return p(this, lt) || this.dispatchEvent(new CustomEvent("end")), s;
|
|
674
677
|
}
|
|
675
678
|
// 获取头部元素
|
|
@@ -680,11 +683,11 @@ class Da extends EventTarget {
|
|
|
680
683
|
return this.delete(n.value), n.value;
|
|
681
684
|
}
|
|
682
685
|
}
|
|
683
|
-
|
|
684
|
-
const s = p(this,
|
|
685
|
-
return s && (s.prev ? s.prev.next = s.next : x(this, lt, s.next), s.next ? s.next.prev = s.prev : x(this,
|
|
686
|
+
vt = new WeakMap(), lt = new WeakMap(), wt = new WeakMap(), Ke = new WeakSet(), Qn = function(n) {
|
|
687
|
+
const s = p(this, vt).get(n);
|
|
688
|
+
return s && (s.prev ? s.prev.next = s.next : x(this, lt, s.next), s.next ? s.next.prev = s.prev : x(this, wt, s.prev), p(this, vt).delete(n)), s;
|
|
686
689
|
};
|
|
687
|
-
class
|
|
690
|
+
class Da extends WeakMap {
|
|
688
691
|
get(t) {
|
|
689
692
|
let n = super.get(t);
|
|
690
693
|
return n || (n = {}, this.set(t, n)), n;
|
|
@@ -734,22 +737,22 @@ class De extends URLSearchParams {
|
|
|
734
737
|
}
|
|
735
738
|
}
|
|
736
739
|
Bt = new WeakMap(), _n = new WeakMap();
|
|
737
|
-
function
|
|
740
|
+
function Ps(e, ...t) {
|
|
738
741
|
return e.reduce((n, s, i) => n + (t[i - 1] ?? "") + s);
|
|
739
742
|
}
|
|
740
|
-
const
|
|
743
|
+
const vr = Ps;
|
|
741
744
|
function En(e = 5) {
|
|
742
745
|
const t = Math.random().toString(36).slice(2, 2 + e);
|
|
743
746
|
return t.length < e ? t + En(e - t.length) : t;
|
|
744
747
|
}
|
|
745
|
-
const Wl = { class:
|
|
748
|
+
const Wl = { class: Ps };
|
|
746
749
|
function oe(e) {
|
|
747
750
|
return e.replace(/[A-Z]/g, (t) => "-" + t.toLowerCase());
|
|
748
751
|
}
|
|
749
752
|
function zl(e) {
|
|
750
753
|
return e.replace(/-(.)/g, (t, n) => n.toUpperCase());
|
|
751
754
|
}
|
|
752
|
-
function
|
|
755
|
+
function ks(e) {
|
|
753
756
|
return Object.keys(e).forEach((t) => {
|
|
754
757
|
delete e[t];
|
|
755
758
|
}), e;
|
|
@@ -759,14 +762,14 @@ class yt extends Error {
|
|
|
759
762
|
super(t), this.message = `gem: ${this.message}`;
|
|
760
763
|
}
|
|
761
764
|
}
|
|
762
|
-
function
|
|
765
|
+
function Fa(e, t) {
|
|
763
766
|
const n = e.length;
|
|
764
767
|
if (t.length !== n) return !0;
|
|
765
768
|
for (let s = 0; s < n; s++)
|
|
766
769
|
if (e[s] !== t[s]) return !0;
|
|
767
770
|
return !1;
|
|
768
771
|
}
|
|
769
|
-
function
|
|
772
|
+
function xs(e, t, n) {
|
|
770
773
|
let s = t;
|
|
771
774
|
for (const i in e) {
|
|
772
775
|
const o = n(i, e[i]);
|
|
@@ -774,19 +777,19 @@ function Os(e, t, n) {
|
|
|
774
777
|
}
|
|
775
778
|
return s;
|
|
776
779
|
}
|
|
777
|
-
function
|
|
778
|
-
return
|
|
780
|
+
function Gl(e) {
|
|
781
|
+
return xs(
|
|
779
782
|
e,
|
|
780
783
|
";",
|
|
781
784
|
(t, n) => n || n === 0 ? `${oe(t)}:${n}` : ""
|
|
782
785
|
);
|
|
783
786
|
}
|
|
784
|
-
function
|
|
785
|
-
return
|
|
787
|
+
function qa(e) {
|
|
788
|
+
return xs(e, " ", (t, n) => n ? t : "");
|
|
786
789
|
}
|
|
787
|
-
const
|
|
790
|
+
const Vl = qa;
|
|
788
791
|
function Dl(e) {
|
|
789
|
-
return
|
|
792
|
+
return xs(
|
|
790
793
|
e,
|
|
791
794
|
",",
|
|
792
795
|
(t, n) => n === !0 || t === n ? t : n ? `${t}:${n}` : ""
|
|
@@ -808,28 +811,28 @@ function Xe(e) {
|
|
|
808
811
|
const t = bn(e);
|
|
809
812
|
return [t, (n) => It(t, n)];
|
|
810
813
|
}
|
|
811
|
-
function
|
|
814
|
+
function ft(e, t) {
|
|
812
815
|
const n = ne.get(e);
|
|
813
816
|
return n == null || n.add(t), () => {
|
|
814
817
|
n == null || n.delete(t);
|
|
815
818
|
};
|
|
816
819
|
}
|
|
817
|
-
function
|
|
820
|
+
function Ua(e, t) {
|
|
818
821
|
const n = ne.get(e);
|
|
819
822
|
n == null || n.delete(t);
|
|
820
823
|
}
|
|
821
|
-
const
|
|
824
|
+
const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
822
825
|
__proto__: null,
|
|
823
826
|
StoreListenerMap: ne,
|
|
824
|
-
connect:
|
|
827
|
+
connect: ft,
|
|
825
828
|
createStore: bn,
|
|
826
|
-
disconnect:
|
|
829
|
+
disconnect: Ua,
|
|
827
830
|
updateStore: It,
|
|
828
831
|
useStore: Xe
|
|
829
|
-
}, Symbol.toStringTag, { value: "Module" })), { assign:
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
class
|
|
832
|
+
}, Symbol.toStringTag, { value: "Module" })), { assign: Wn, defineProperty: Ka, setPrototypeOf: ja } = Object;
|
|
833
|
+
Ka(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
|
|
834
|
+
const Ts = (e) => typeof e == "function" && e(), Rt = Symbol.for("gem@sheetToken"), Cn = Symbol.for("gem@update"), wr = "gem-style-boundary", Os = "gem@render-error", Ja = Cn, zn = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Pi = (e) => [...e.querySelectorAll("[data-gem-reflect]")].map((t) => t.target);
|
|
835
|
+
class Ya {
|
|
833
836
|
constructor(t) {
|
|
834
837
|
T(this, "refSelector");
|
|
835
838
|
T(this, "ele");
|
|
@@ -838,21 +841,21 @@ class Qa {
|
|
|
838
841
|
this.refSelector = `[ref=${n}]`, this.ele = t.internals.shadowRoot || t, this.ref = n;
|
|
839
842
|
}
|
|
840
843
|
get element() {
|
|
841
|
-
for (const t of [this.ele, ...
|
|
844
|
+
for (const t of [this.ele, ...Pi(this.ele)]) {
|
|
842
845
|
const n = t.querySelector(this.refSelector);
|
|
843
846
|
if (n) return n;
|
|
844
847
|
}
|
|
845
848
|
}
|
|
846
849
|
get elements() {
|
|
847
|
-
return [this.ele, ...
|
|
850
|
+
return [this.ele, ...Pi(this.ele)].map((t) => [...t.querySelectorAll(this.refSelector)]).flat();
|
|
848
851
|
}
|
|
849
852
|
toString() {
|
|
850
853
|
return this.ref;
|
|
851
854
|
}
|
|
852
855
|
}
|
|
853
|
-
let
|
|
856
|
+
let Sr;
|
|
854
857
|
var rt;
|
|
855
|
-
class
|
|
858
|
+
class Qa extends CSSStyleSheet {
|
|
856
859
|
constructor() {
|
|
857
860
|
super(...arguments);
|
|
858
861
|
b(this, rt);
|
|
@@ -867,7 +870,7 @@ class Xa extends CSSStyleSheet {
|
|
|
867
870
|
}
|
|
868
871
|
rt = new WeakMap();
|
|
869
872
|
var Mt, je, Kt, jt;
|
|
870
|
-
class
|
|
873
|
+
class Xa {
|
|
871
874
|
constructor(t = "") {
|
|
872
875
|
b(this, Mt, "");
|
|
873
876
|
b(this, je, "");
|
|
@@ -883,13 +886,13 @@ class Za {
|
|
|
883
886
|
var o;
|
|
884
887
|
const n = t && !((o = t.internals) != null && o.shadowRoot), s = n ? t.constructor : this;
|
|
885
888
|
if (!p(this, Kt).has(s)) {
|
|
886
|
-
const c = new
|
|
889
|
+
const c = new Qa({ media: p(this, je) });
|
|
887
890
|
p(this, Kt).set(s, c);
|
|
888
891
|
}
|
|
889
892
|
const i = p(this, Kt).get(s);
|
|
890
893
|
if (!p(this, jt).has(i)) {
|
|
891
894
|
let c = p(this, Mt), a = "";
|
|
892
|
-
n && (a = `@scope (${t.tagName}) to (:state(${
|
|
895
|
+
n && (a = `@scope (${t.tagName}) to (:state(${wr}) > *)`, c = `${a}{ ${c} }`), i.replaceSync(c), p(this, jt).set(i, a);
|
|
893
896
|
}
|
|
894
897
|
return i;
|
|
895
898
|
}
|
|
@@ -901,62 +904,62 @@ class Za {
|
|
|
901
904
|
}
|
|
902
905
|
}
|
|
903
906
|
Mt = new WeakMap(), je = new WeakMap(), Kt = new WeakMap(), jt = new WeakMap();
|
|
904
|
-
function
|
|
905
|
-
const n = t ? e : "", s = t || e, i = new
|
|
907
|
+
function Pn(e, t) {
|
|
908
|
+
const n = t ? e : "", s = t || e, i = new Xa(n), o = { [Rt]: i };
|
|
906
909
|
let c = "";
|
|
907
910
|
return typeof s == "string" ? c = s : Object.keys(s).forEach((a) => {
|
|
908
911
|
const f = a === "$";
|
|
909
912
|
o[a] = f || a.includes("-") ? a : `${a}-${En()}`, c += `${f ? ":scope,:host" : `.${o[a]}`} {${s[a]}}`;
|
|
910
913
|
}), i.setContent(c), o;
|
|
911
914
|
}
|
|
912
|
-
const
|
|
915
|
+
const ki = (e, t, n) => {
|
|
913
916
|
let s = !1;
|
|
914
917
|
t.forEach((i) => {
|
|
915
918
|
const o = e.get(i) || 0;
|
|
916
919
|
s || (s = n === 1 && o === 0 || n === -1 && o === 1), e.set(i, o + n);
|
|
917
|
-
}), s && Ot(
|
|
918
|
-
},
|
|
920
|
+
}), s && Ot(yr.get(e));
|
|
921
|
+
}, Za = (e, t) => {
|
|
919
922
|
const n = e.getRootNode();
|
|
920
|
-
if (!
|
|
923
|
+
if (!zn.has(n)) {
|
|
921
924
|
const i = /* @__PURE__ */ new Map();
|
|
922
|
-
|
|
925
|
+
zn.set(n, i), yr.set(i, () => {
|
|
923
926
|
const o = n.adoptedStyleSheets.filter((c) => !i.has(c));
|
|
924
927
|
i.forEach((c, a) => c && o.push(a)), n.adoptedStyleSheets = o.reverse();
|
|
925
928
|
});
|
|
926
929
|
}
|
|
927
|
-
const s =
|
|
928
|
-
return
|
|
930
|
+
const s = zn.get(n);
|
|
931
|
+
return ki(s, t, 1), () => ki(s, t, -1);
|
|
929
932
|
};
|
|
930
|
-
let
|
|
931
|
-
function
|
|
933
|
+
let Ms;
|
|
934
|
+
function xi(e) {
|
|
932
935
|
e == null || e.forEach((t) => {
|
|
933
936
|
const { callback: n, getDep: s, values: i, preCallback: o } = t, c = s == null ? void 0 : s();
|
|
934
|
-
(!s || !i ||
|
|
937
|
+
(!s || !i || Fa(i, c)) && (Ts(o), t.preCallback = n(c, i), t.values = c, t.initialized = !0);
|
|
935
938
|
});
|
|
936
939
|
}
|
|
937
|
-
function
|
|
938
|
-
return e.filter((t) => (
|
|
940
|
+
function Ti(e) {
|
|
941
|
+
return e.filter((t) => (Ts(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
|
|
939
942
|
}
|
|
940
|
-
let
|
|
941
|
-
const Ft = new
|
|
942
|
-
if (performance.now() > e + 16) return requestAnimationFrame(
|
|
943
|
+
let Ls;
|
|
944
|
+
const Ft = new Va(), Xn = (e = performance.now()) => {
|
|
945
|
+
if (performance.now() > e + 16) return requestAnimationFrame(Xn);
|
|
943
946
|
const t = Ft.get();
|
|
944
|
-
t && (t(),
|
|
947
|
+
t && (t(), Xn(e));
|
|
945
948
|
};
|
|
946
|
-
Ft.addEventListener("start", () => Ot(
|
|
947
|
-
let
|
|
948
|
-
var Jt, Yt,
|
|
949
|
+
Ft.addEventListener("start", () => Ot(Xn));
|
|
950
|
+
let Gn;
|
|
951
|
+
var Jt, Yt, j, ht, Lt, ut, Qt, dt, Xt, Zt, Je, st, Gt, Zn, gn, mn, Ye, te, Nt, vn, wn, yn, Qe, ee;
|
|
949
952
|
const qt = class qt extends HTMLElement {
|
|
950
953
|
constructor() {
|
|
951
954
|
super();
|
|
952
955
|
b(this, st);
|
|
953
956
|
b(this, Yt);
|
|
954
|
-
b(this,
|
|
957
|
+
b(this, j);
|
|
955
958
|
b(this, ht, []);
|
|
956
959
|
b(this, Lt, []);
|
|
957
|
-
b(this,
|
|
960
|
+
b(this, ut, []);
|
|
958
961
|
b(this, Qt);
|
|
959
|
-
b(this,
|
|
962
|
+
b(this, dt);
|
|
960
963
|
// not in constructor 的近似值
|
|
961
964
|
b(this, Xt);
|
|
962
965
|
b(this, Zt);
|
|
@@ -965,10 +968,10 @@ const qt = class qt extends HTMLElement {
|
|
|
965
968
|
* 每次更新完检查依赖,执行对应的副作用回调
|
|
966
969
|
* */
|
|
967
970
|
b(this, gn, () => {
|
|
968
|
-
|
|
971
|
+
xi(p(this, ht));
|
|
969
972
|
});
|
|
970
973
|
b(this, mn, () => {
|
|
971
|
-
|
|
974
|
+
xi(p(this, Lt));
|
|
972
975
|
});
|
|
973
976
|
/**
|
|
974
977
|
* - 条件渲染
|
|
@@ -981,25 +984,25 @@ const qt = class qt extends HTMLElement {
|
|
|
981
984
|
x(this, Zt, !0), p(this, mn).call(this);
|
|
982
985
|
const s = p(this, Yt) === this, i = n ? n.render() : s ? void 0 : at`<slot></slot>`;
|
|
983
986
|
if (x(this, Zt, !1), i === void 0) return;
|
|
984
|
-
|
|
987
|
+
Cs(i, p(this, Yt));
|
|
985
988
|
} catch (s) {
|
|
986
|
-
this.dispatchEvent(new CustomEvent(
|
|
989
|
+
this.dispatchEvent(new CustomEvent(Os, { bubbles: !0, composed: !0, detail: s }));
|
|
987
990
|
}
|
|
988
991
|
});
|
|
989
992
|
b(this, te, () => {
|
|
990
|
-
const n = p(this, st,
|
|
991
|
-
p(this,
|
|
992
|
-
(n || !p(this,
|
|
993
|
+
const n = p(this, st, Zn);
|
|
994
|
+
p(this, dt) && // 当有渲染函数,但是没一个符合条件时跳过
|
|
995
|
+
(n || !p(this, ut).length) && (p(this, Ye).call(this, n), Ot(p(this, gn)));
|
|
993
996
|
});
|
|
994
997
|
b(this, Nt, () => {
|
|
995
|
-
p(this, st,
|
|
998
|
+
p(this, st, Gt).noBlocking ? Ft.add(p(this, te)) : p(this, te).call(this);
|
|
996
999
|
});
|
|
997
1000
|
b(this, vn, () => {
|
|
998
|
-
const { adoptedStyleSheets: n = [] } = p(this, st,
|
|
1001
|
+
const { adoptedStyleSheets: n = [] } = p(this, st, Gt), { shadowRoot: s, sheets: i } = p(this, j), o = n.map((c) => c[Rt].getStyle(this));
|
|
999
1002
|
if (s)
|
|
1000
1003
|
s.adoptedStyleSheets = o.concat(i);
|
|
1001
1004
|
else
|
|
1002
|
-
return this.prepend(...i.map((c) => c.element)),
|
|
1005
|
+
return this.prepend(...i.map((c) => c.element)), Za(this, o);
|
|
1003
1006
|
});
|
|
1004
1007
|
/**
|
|
1005
1008
|
* 元素挂载后执行还未初始化的副作用
|
|
@@ -1016,7 +1019,7 @@ const qt = class qt extends HTMLElement {
|
|
|
1016
1019
|
this.willMount && this.memo(this.willMount.bind(this), () => []), this.mounted && this.effect(this.mounted.bind(this), () => []), this.updated && this.effect((s, i) => i && this.updated.apply(this)), this.unmounted && this.effect(
|
|
1017
1020
|
() => this.unmounted.bind(this),
|
|
1018
1021
|
() => []
|
|
1019
|
-
), !p(this,
|
|
1022
|
+
), !p(this, ut).length && this.render && p(this, ut).push({ render: this.render.bind(this), condition: (n = this.shouldUpdate) == null ? void 0 : n.bind(this) });
|
|
1020
1023
|
});
|
|
1021
1024
|
b(this, Qe);
|
|
1022
1025
|
b(this, ee, async () => {
|
|
@@ -1025,8 +1028,8 @@ const qt = class qt extends HTMLElement {
|
|
|
1025
1028
|
return;
|
|
1026
1029
|
}
|
|
1027
1030
|
p(this, yn).call(this);
|
|
1028
|
-
const { observedStores: n } = p(this, st,
|
|
1029
|
-
x(this, Xt, !0), x(this, Qe, n == null ? void 0 : n.map((
|
|
1031
|
+
const { observedStores: n, mode: s, penetrable: i } = p(this, st, Gt);
|
|
1032
|
+
!s && p(this, ut).length && !i && p(this, j).states.add(wr), x(this, Xt, !0), x(this, Qe, n == null ? void 0 : n.map((o) => ft(o, p(this, Nt)))), p(this, Ye).call(this, p(this, st, Zn)), x(this, dt, !0), x(this, Je, p(this, vn).call(this)), await Promise.resolve(), p(this, wn).call(this);
|
|
1030
1033
|
});
|
|
1031
1034
|
/**
|
|
1032
1035
|
* @helper
|
|
@@ -1046,10 +1049,10 @@ const qt = class qt extends HTMLElement {
|
|
|
1046
1049
|
const i = {
|
|
1047
1050
|
callback: n,
|
|
1048
1051
|
getDep: s,
|
|
1049
|
-
initialized: p(this,
|
|
1052
|
+
initialized: p(this, dt),
|
|
1050
1053
|
fixed: !p(this, Xt)
|
|
1051
1054
|
};
|
|
1052
|
-
p(this,
|
|
1055
|
+
p(this, dt) && (i.values = s == null ? void 0 : s(), i.preCallback = n(i.values)), p(this, ht).push(i);
|
|
1053
1056
|
});
|
|
1054
1057
|
/**
|
|
1055
1058
|
* @helper
|
|
@@ -1080,26 +1083,26 @@ const qt = class qt extends HTMLElement {
|
|
|
1080
1083
|
* async
|
|
1081
1084
|
*/
|
|
1082
1085
|
T(this, "update", () => Ot(p(this, Nt)));
|
|
1083
|
-
|
|
1084
|
-
const { mode: n, serializable: s, delegatesFocus: i, slotAssignment: o, aria: c } = p(this, st,
|
|
1085
|
-
x(this, Yt, n ? this.attachShadow({ mode: n, serializable: s, delegatesFocus: i, slotAssignment: o }) : this), x(this,
|
|
1086
|
+
Gn = this;
|
|
1087
|
+
const { mode: n, serializable: s, delegatesFocus: i, slotAssignment: o, aria: c } = p(this, st, Gt), { focusable: a, ...f } = c || {};
|
|
1088
|
+
x(this, Yt, n ? this.attachShadow({ mode: n, serializable: s, delegatesFocus: i, slotAssignment: o }) : this), x(this, j, this.attachInternals()), p(this, j).stateList = [], p(this, j).sheets = [], Wn(p(this, j), f);
|
|
1086
1089
|
let h;
|
|
1087
1090
|
p(this, ht).push({
|
|
1088
1091
|
fixed: !0,
|
|
1089
1092
|
getDep: () => [this.disabled],
|
|
1090
1093
|
callback: ([m = !1]) => {
|
|
1091
|
-
if (h === void 0 && (h = this.hasAttribute("tabindex")), p(this,
|
|
1092
|
-
return
|
|
1094
|
+
if (h === void 0 && (h = this.hasAttribute("tabindex")), p(this, j).ariaDisabled = String(m), a && !h && (this.tabIndex = -Number(m)), (a || i) && m)
|
|
1095
|
+
return mr(this, "click", (r) => r.isTrusted && r.stopImmediatePropagation(), {
|
|
1093
1096
|
capture: !0
|
|
1094
1097
|
});
|
|
1095
1098
|
}
|
|
1096
1099
|
});
|
|
1097
1100
|
}
|
|
1098
|
-
[
|
|
1099
|
-
p(this,
|
|
1101
|
+
[Ja]() {
|
|
1102
|
+
p(this, dt) && Ot(p(this, Nt));
|
|
1100
1103
|
}
|
|
1101
1104
|
get internals() {
|
|
1102
|
-
return p(this,
|
|
1105
|
+
return p(this, j);
|
|
1103
1106
|
}
|
|
1104
1107
|
/**
|
|
1105
1108
|
* @private
|
|
@@ -1107,7 +1110,7 @@ const qt = class qt extends HTMLElement {
|
|
|
1107
1110
|
* use `mounted`
|
|
1108
1111
|
*/
|
|
1109
1112
|
connectedCallback() {
|
|
1110
|
-
return p(this, st,
|
|
1113
|
+
return p(this, st, Gt).noBlocking ? Ft.add(p(this, ee)) : p(this, ee).call(this), p(qt, Jt);
|
|
1111
1114
|
}
|
|
1112
1115
|
/**
|
|
1113
1116
|
* @private
|
|
@@ -1127,140 +1130,139 @@ const qt = class qt extends HTMLElement {
|
|
|
1127
1130
|
x(this, Qt, !0);
|
|
1128
1131
|
return;
|
|
1129
1132
|
}
|
|
1130
|
-
return Ft.delete(p(this, ee)), Ft.delete(p(this, te)), x(this,
|
|
1133
|
+
return Ft.delete(p(this, ee)), Ft.delete(p(this, te)), x(this, dt, !1), (n = p(this, Qe)) == null || n.forEach((s) => s()), x(this, ht, Ti(p(this, ht))), x(this, Lt, Ti(p(this, Lt))), Ts(p(this, Je)), p(qt, Jt);
|
|
1131
1134
|
}
|
|
1132
1135
|
};
|
|
1133
|
-
Jt = new WeakMap(), Yt = new WeakMap(),
|
|
1136
|
+
Jt = new WeakMap(), Yt = new WeakMap(), j = new WeakMap(), ht = new WeakMap(), Lt = new WeakMap(), ut = new WeakMap(), Qt = new WeakMap(), dt = new WeakMap(), Xt = new WeakMap(), Zt = new WeakMap(), Je = new WeakMap(), st = new WeakSet(), Gt = function() {
|
|
1134
1137
|
return this.constructor[Symbol.metadata];
|
|
1135
|
-
},
|
|
1136
|
-
return p(this,
|
|
1138
|
+
}, Zn = function() {
|
|
1139
|
+
return p(this, ut).find((n) => !n.condition || n.condition());
|
|
1137
1140
|
}, gn = new WeakMap(), mn = new WeakMap(), Ye = new WeakMap(), te = new WeakMap(), Nt = new WeakMap(), vn = new WeakMap(), wn = new WeakMap(), yn = new WeakMap(), Qe = new WeakMap(), ee = new WeakMap(), // 禁止覆盖自定义元素原生生命周期方法
|
|
1138
1141
|
// https://github.com/microsoft/TypeScript/issues/21388#issuecomment-934345226
|
|
1139
|
-
b(qt, Jt, Symbol()),
|
|
1140
|
-
const s =
|
|
1141
|
-
|
|
1142
|
+
b(qt, Jt, Symbol()), Ms = (n) => {
|
|
1143
|
+
const s = Gn, i = (o) => {
|
|
1144
|
+
Wn(i, o), p(s, Zt) || Ot(p(s, Nt));
|
|
1142
1145
|
};
|
|
1143
|
-
return
|
|
1144
|
-
},
|
|
1146
|
+
return ja(i, null), delete i.name, delete i.length, p(s, j).stateList.push(i), Wn(i, n), i;
|
|
1147
|
+
}, Sr = () => new Ya(Gn), Ls = (n, s) => p(n, ut).push(s);
|
|
1145
1148
|
let B = qt;
|
|
1146
|
-
const
|
|
1149
|
+
const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1147
1150
|
__proto__: null,
|
|
1148
|
-
BoundaryCSSState: Pn,
|
|
1149
1151
|
GemElement: B,
|
|
1150
|
-
RenderErrorEvent:
|
|
1151
|
-
SVGTemplateResult:
|
|
1152
|
+
RenderErrorEvent: Os,
|
|
1153
|
+
SVGTemplateResult: dr,
|
|
1152
1154
|
SheetToken: Rt,
|
|
1153
1155
|
TemplateResult: $n,
|
|
1154
1156
|
UpdateToken: Cn,
|
|
1155
|
-
createCSSSheet:
|
|
1157
|
+
createCSSSheet: Pn,
|
|
1156
1158
|
get createRef() {
|
|
1157
|
-
return
|
|
1159
|
+
return Sr;
|
|
1158
1160
|
},
|
|
1159
1161
|
get createState() {
|
|
1160
|
-
return
|
|
1162
|
+
return Ms;
|
|
1161
1163
|
},
|
|
1162
1164
|
get createTemplate() {
|
|
1163
|
-
return
|
|
1165
|
+
return Ls;
|
|
1164
1166
|
},
|
|
1165
1167
|
directive: Sn,
|
|
1166
1168
|
html: at,
|
|
1167
|
-
render:
|
|
1169
|
+
render: Cs,
|
|
1168
1170
|
svg: Ga
|
|
1169
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1171
|
+
}, Symbol.toStringTag, { value: "Module" })), ec = "0.0.0", nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1170
1172
|
__proto__: null,
|
|
1171
|
-
version:
|
|
1172
|
-
}, Symbol.toStringTag, { value: "Module" })), { deleteProperty:
|
|
1173
|
+
version: ec
|
|
1174
|
+
}, Symbol.toStringTag, { value: "Module" })), { deleteProperty: sc, getOwnPropertyDescriptor: $r, defineProperty: kn } = Reflect, { getPrototypeOf: Pt, assign: Er } = Object, Oi = new Da();
|
|
1173
1175
|
function Et(e, t, n) {
|
|
1174
1176
|
const s = e.metadata;
|
|
1175
|
-
if (
|
|
1177
|
+
if (!$r(s, t)) {
|
|
1176
1178
|
const i = new Set(s[t]);
|
|
1177
|
-
i.delete(n),
|
|
1179
|
+
i.delete(n), kn(s, t, {
|
|
1178
1180
|
value: [...i]
|
|
1179
1181
|
});
|
|
1180
1182
|
}
|
|
1181
1183
|
s[t].push(n);
|
|
1182
1184
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const { value: n } =
|
|
1185
|
-
|
|
1185
|
+
function xn(e, t) {
|
|
1186
|
+
const { value: n } = $r(e, t);
|
|
1187
|
+
sc(e, t), e[t] = n;
|
|
1186
1188
|
}
|
|
1187
|
-
const Fe = /* @__PURE__ */ new WeakMap(), { setAttribute:
|
|
1189
|
+
const Fe = /* @__PURE__ */ new WeakMap(), { setAttribute: br, toggleAttribute: ic, removeAttribute: Cr } = Element.prototype;
|
|
1188
1190
|
B.prototype.setAttribute = function(e, t) {
|
|
1189
1191
|
var s;
|
|
1190
1192
|
const n = (s = Fe.get(Pt(this))) == null ? void 0 : s.get(e);
|
|
1191
|
-
if (!n) return
|
|
1193
|
+
if (!n) return br.call(this, e, t);
|
|
1192
1194
|
this[n] = t;
|
|
1193
1195
|
};
|
|
1194
1196
|
B.prototype.removeAttribute = function(e) {
|
|
1195
1197
|
var n;
|
|
1196
1198
|
const t = (n = Fe.get(Pt(this))) == null ? void 0 : n.get(e);
|
|
1197
|
-
if (!t) return
|
|
1199
|
+
if (!t) return Cr.call(this, e);
|
|
1198
1200
|
this[t] = null;
|
|
1199
1201
|
};
|
|
1200
1202
|
B.prototype.toggleAttribute = function(e, t) {
|
|
1201
1203
|
var s;
|
|
1202
1204
|
const n = (s = Fe.get(Pt(this))) == null ? void 0 : s.get(e);
|
|
1203
|
-
return n ? this[n] = t ?? !this.hasAttribute(e) :
|
|
1205
|
+
return n ? this[n] = t ?? !this.hasAttribute(e) : ic.call(this, e, t);
|
|
1204
1206
|
};
|
|
1205
|
-
function
|
|
1207
|
+
function rc() {
|
|
1206
1208
|
}
|
|
1207
|
-
const
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1209
|
+
const Mi = Symbol("event handle");
|
|
1210
|
+
function Ns(e, t, { attr: n, attrType: s, event: i, eventOptions: o } = {}) {
|
|
1211
|
+
kn(e, t, {
|
|
1210
1212
|
configurable: !0,
|
|
1211
1213
|
get() {
|
|
1212
|
-
const c =
|
|
1213
|
-
return i && !c ? (this[t] =
|
|
1214
|
+
const c = Oi.get(this)[t];
|
|
1215
|
+
return i && !c ? (this[t] = rc, this[t]) : c;
|
|
1214
1216
|
},
|
|
1215
1217
|
set(c) {
|
|
1216
|
-
const a = this, f =
|
|
1217
|
-
n && (c = s === Boolean && c === "" ? !0 : s(c || ""), c ?
|
|
1218
|
+
const a = this, f = Oi.get(a);
|
|
1219
|
+
n && (c = s === Boolean && c === "" ? !0 : s(c || ""), c ? br.call(this, n, s === Boolean ? "" : c) : Cr.call(this, n)), c !== f[t] && (i ? (f[t] = c != null && c[Mi] ? c : (h, m) => {
|
|
1218
1220
|
const r = new CustomEvent(i, { ...m, ...o, detail: h });
|
|
1219
1221
|
a.dispatchEvent(r), c(h, m);
|
|
1220
|
-
}, f[t][
|
|
1222
|
+
}, f[t][Mi] = !0) : (f[t] = c, this[Cn]()));
|
|
1221
1223
|
}
|
|
1222
1224
|
});
|
|
1223
1225
|
}
|
|
1224
|
-
function
|
|
1226
|
+
function As(e, t) {
|
|
1225
1227
|
const n = e.name, s = oe(n);
|
|
1226
1228
|
return e.addInitializer(function() {
|
|
1227
1229
|
const i = Pt(this);
|
|
1228
1230
|
if (!i.hasOwnProperty(n)) {
|
|
1229
|
-
Et(e, "observedAttributes", s),
|
|
1231
|
+
Et(e, "observedAttributes", s), Ns(i, n, { attr: s, attrType: t });
|
|
1230
1232
|
const o = Fe.get(i) || /* @__PURE__ */ new Map();
|
|
1231
1233
|
o.set(s, n), Fe.set(i, o);
|
|
1232
1234
|
}
|
|
1233
|
-
|
|
1235
|
+
xn(this, n);
|
|
1234
1236
|
}), function(i) {
|
|
1235
1237
|
return this.getAttribute(s) ?? i;
|
|
1236
1238
|
};
|
|
1237
1239
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1240
|
+
function V(e, t) {
|
|
1241
|
+
return As(t, String);
|
|
1240
1242
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1243
|
+
function Tn(e, t) {
|
|
1244
|
+
return As(t, Boolean);
|
|
1243
1245
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1246
|
+
function oc(e, t) {
|
|
1247
|
+
return As(t, Number);
|
|
1246
1248
|
}
|
|
1247
1249
|
function U(e, t) {
|
|
1248
1250
|
const n = t.name;
|
|
1249
1251
|
return t.addInitializer(function() {
|
|
1250
1252
|
const s = Pt(this);
|
|
1251
|
-
s.hasOwnProperty(n) || (Et(t, "observedProperties", n),
|
|
1253
|
+
s.hasOwnProperty(n) || (Et(t, "observedProperties", n), Ns(s, n)), xn(this, n);
|
|
1252
1254
|
}), function(s) {
|
|
1253
1255
|
return this[n] ?? s;
|
|
1254
1256
|
};
|
|
1255
1257
|
}
|
|
1256
|
-
function
|
|
1258
|
+
function Pr(e) {
|
|
1257
1259
|
return function(t, n) {
|
|
1258
1260
|
const { addInitializer: s, name: i, access: o, kind: c } = n;
|
|
1259
1261
|
s(function() {
|
|
1260
1262
|
const a = e && (() => e(this));
|
|
1261
1263
|
if (c === "getter") {
|
|
1262
1264
|
if (n.private) throw new yt("not support");
|
|
1263
|
-
this.memo(() =>
|
|
1265
|
+
this.memo(() => kn(this, i, { configurable: !0, value: o.get(this) }), a);
|
|
1264
1266
|
} else
|
|
1265
1267
|
this.memo(o.get(this).bind(this), a);
|
|
1266
1268
|
});
|
|
@@ -1273,7 +1275,7 @@ function $t(e) {
|
|
|
1273
1275
|
});
|
|
1274
1276
|
};
|
|
1275
1277
|
}
|
|
1276
|
-
function
|
|
1278
|
+
function ac() {
|
|
1277
1279
|
return function(e, { addInitializer: t, access: n }) {
|
|
1278
1280
|
t(function() {
|
|
1279
1281
|
this.effect(
|
|
@@ -1283,33 +1285,33 @@ function cc() {
|
|
|
1283
1285
|
});
|
|
1284
1286
|
};
|
|
1285
1287
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1288
|
+
function Is() {
|
|
1289
|
+
return Pr(() => []);
|
|
1288
1290
|
}
|
|
1289
1291
|
function qe() {
|
|
1290
1292
|
return $t(() => []);
|
|
1291
1293
|
}
|
|
1292
|
-
function
|
|
1294
|
+
function kr(e) {
|
|
1293
1295
|
return function(t, { addInitializer: n, access: s }) {
|
|
1294
1296
|
n(function() {
|
|
1295
|
-
|
|
1297
|
+
Ls(this, {
|
|
1296
1298
|
render: s.get(this).bind(this),
|
|
1297
1299
|
condition: e && (() => e(this))
|
|
1298
1300
|
});
|
|
1299
1301
|
});
|
|
1300
1302
|
};
|
|
1301
1303
|
}
|
|
1302
|
-
function
|
|
1304
|
+
function cc() {
|
|
1303
1305
|
return function(e, { addInitializer: t, access: n }) {
|
|
1304
1306
|
t(function() {
|
|
1305
|
-
this.addEventListener(
|
|
1306
|
-
|
|
1307
|
+
this.addEventListener(Os, ({ detail: s }) => {
|
|
1308
|
+
Cs(n.get(this).apply(this, [s]), this.internals.shadowRoot || this);
|
|
1307
1309
|
});
|
|
1308
1310
|
});
|
|
1309
1311
|
};
|
|
1310
1312
|
}
|
|
1311
|
-
function
|
|
1312
|
-
|
|
1313
|
+
function lc(e, t, n) {
|
|
1314
|
+
kn(e, t, {
|
|
1313
1315
|
configurable: !0,
|
|
1314
1316
|
get() {
|
|
1315
1317
|
const s = this, { states: i } = s.internals;
|
|
@@ -1321,17 +1323,17 @@ function hc(e, t, n) {
|
|
|
1321
1323
|
}
|
|
1322
1324
|
});
|
|
1323
1325
|
}
|
|
1324
|
-
function
|
|
1326
|
+
function On(e, t) {
|
|
1325
1327
|
t.addInitializer(function() {
|
|
1326
1328
|
const n = Pt(this), s = t.name;
|
|
1327
1329
|
if (!n.hasOwnProperty(s)) {
|
|
1328
1330
|
const i = oe(s);
|
|
1329
|
-
Et(t, "definedCSSStates", i),
|
|
1331
|
+
Et(t, "definedCSSStates", i), lc(n, s, i);
|
|
1330
1332
|
}
|
|
1331
|
-
|
|
1333
|
+
xn(this, s);
|
|
1332
1334
|
});
|
|
1333
1335
|
}
|
|
1334
|
-
function
|
|
1336
|
+
function xr(e, t, n, s) {
|
|
1335
1337
|
const i = e.name, o = oe(i);
|
|
1336
1338
|
if (e.static)
|
|
1337
1339
|
Et(e, n, o);
|
|
@@ -1341,40 +1343,40 @@ function Tr(e, t, n, s) {
|
|
|
1341
1343
|
}
|
|
1342
1344
|
return s || o;
|
|
1343
1345
|
}
|
|
1344
|
-
function
|
|
1346
|
+
function hc(e, t) {
|
|
1345
1347
|
return function(n) {
|
|
1346
|
-
return
|
|
1348
|
+
return xr(t, this, "definedSlots", n);
|
|
1347
1349
|
};
|
|
1348
1350
|
}
|
|
1349
|
-
function
|
|
1351
|
+
function Tr(e, t) {
|
|
1350
1352
|
return function(n) {
|
|
1351
|
-
return
|
|
1353
|
+
return xr(t, this, "definedParts", n);
|
|
1352
1354
|
};
|
|
1353
1355
|
}
|
|
1354
1356
|
function ye(e, t) {
|
|
1355
1357
|
t.addInitializer(function() {
|
|
1356
|
-
|
|
1358
|
+
Or(t, this, t.name);
|
|
1357
1359
|
});
|
|
1358
1360
|
}
|
|
1359
|
-
function
|
|
1361
|
+
function uc(e, t) {
|
|
1360
1362
|
t.addInitializer(function() {
|
|
1361
|
-
|
|
1363
|
+
Or(t, this, t.name, { bubbles: !0, composed: !0 });
|
|
1362
1364
|
});
|
|
1363
1365
|
}
|
|
1364
|
-
function
|
|
1366
|
+
function Or(e, t, n, s) {
|
|
1365
1367
|
const i = Pt(t);
|
|
1366
1368
|
if (!i.hasOwnProperty(n)) {
|
|
1367
1369
|
const o = oe(n);
|
|
1368
|
-
Et(e, "definedEvents", o),
|
|
1370
|
+
Et(e, "definedEvents", o), Ns(i, n, { event: o, eventOptions: s });
|
|
1369
1371
|
}
|
|
1370
|
-
|
|
1372
|
+
xn(t, n);
|
|
1371
1373
|
}
|
|
1372
|
-
function
|
|
1374
|
+
function Rs(e) {
|
|
1373
1375
|
return function(t, n) {
|
|
1374
1376
|
Et(n, "adoptedStyleSheets", e);
|
|
1375
1377
|
};
|
|
1376
1378
|
}
|
|
1377
|
-
function
|
|
1379
|
+
function Mn(e) {
|
|
1378
1380
|
return function(t, n) {
|
|
1379
1381
|
Et(n, "observedStores", e);
|
|
1380
1382
|
};
|
|
@@ -1387,37 +1389,43 @@ function Ht({
|
|
|
1387
1389
|
} = {}) {
|
|
1388
1390
|
return function(i, o) {
|
|
1389
1391
|
const c = o.metadata;
|
|
1390
|
-
|
|
1392
|
+
Er(c, { mode: e, serializable: t, delegatesFocus: n, slotAssignment: s });
|
|
1391
1393
|
};
|
|
1392
1394
|
}
|
|
1393
|
-
function
|
|
1395
|
+
function Mr({ penetrable: e }) {
|
|
1396
|
+
return function(t, n) {
|
|
1397
|
+
const s = n.metadata;
|
|
1398
|
+
s.penetrable = e;
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
function dc() {
|
|
1394
1402
|
return function(e, t) {
|
|
1395
1403
|
const n = t.metadata;
|
|
1396
1404
|
n.noBlocking = !0;
|
|
1397
1405
|
};
|
|
1398
1406
|
}
|
|
1399
|
-
function
|
|
1407
|
+
function Ln(e) {
|
|
1400
1408
|
return function(t, n) {
|
|
1401
1409
|
const s = n.metadata;
|
|
1402
1410
|
s.aria = { ...s.aria, ...e };
|
|
1403
1411
|
};
|
|
1404
1412
|
}
|
|
1405
|
-
function
|
|
1413
|
+
function pc(e) {
|
|
1406
1414
|
return function(t, { addInitializer: n }) {
|
|
1407
1415
|
n(function() {
|
|
1408
1416
|
customElements.define(e, t);
|
|
1409
1417
|
});
|
|
1410
1418
|
};
|
|
1411
1419
|
}
|
|
1412
|
-
window.__GEM_DEVTOOLS__HOOK__ && !window.__GEM_DEVTOOLS__HOOK__.GemElement &&
|
|
1413
|
-
...
|
|
1414
|
-
...
|
|
1415
|
-
...
|
|
1416
|
-
...
|
|
1420
|
+
window.__GEM_DEVTOOLS__HOOK__ && !window.__GEM_DEVTOOLS__HOOK__.GemElement && Er(window.__GEM_DEVTOOLS__HOOK__, {
|
|
1421
|
+
...tc,
|
|
1422
|
+
...Ta,
|
|
1423
|
+
...Ba,
|
|
1424
|
+
...nc
|
|
1417
1425
|
});
|
|
1418
|
-
const
|
|
1419
|
-
let
|
|
1420
|
-
const
|
|
1426
|
+
const J = window.history, Lr = J.pushState.bind(J), Nr = J.replaceState.bind(J);
|
|
1427
|
+
let fc = 0;
|
|
1428
|
+
const Hs = () => `${performance.now()}-${++fc}`, [R, Ut] = Xe({
|
|
1421
1429
|
$hasCloseHandle: !1,
|
|
1422
1430
|
$hasOpenHandle: !1,
|
|
1423
1431
|
$hasShouldCloseHandle: !1,
|
|
@@ -1425,7 +1433,7 @@ const Ws = () => `${performance.now()}-${++_c}`, [I, Ut] = Xe({
|
|
|
1425
1433
|
}), q = /* @__PURE__ */ new Map();
|
|
1426
1434
|
function Ar(e) {
|
|
1427
1435
|
const { $key: t, $hasCloseHandle: n, $hasOpenHandle: s, $hasShouldCloseHandle: i } = e || {};
|
|
1428
|
-
if (
|
|
1436
|
+
if (R.$key !== t) {
|
|
1429
1437
|
if (t) throw new yt("`$key` is not allowed");
|
|
1430
1438
|
if (n) throw new yt("`$hasCloseHandle` is not allowed");
|
|
1431
1439
|
if (s) throw new yt("`$hasOpenHandle` is not allowed");
|
|
@@ -1433,112 +1441,112 @@ function Ar(e) {
|
|
|
1433
1441
|
}
|
|
1434
1442
|
}
|
|
1435
1443
|
function Ir(e) {
|
|
1436
|
-
return
|
|
1444
|
+
return Y.basePath ? Y.basePath + e : e;
|
|
1437
1445
|
}
|
|
1438
|
-
function
|
|
1439
|
-
return e ===
|
|
1446
|
+
function ts(e) {
|
|
1447
|
+
return e === Y.basePath ? "/" : e.replace(new RegExp(`^${Y.basePath}/`), "/");
|
|
1440
1448
|
}
|
|
1441
|
-
function
|
|
1442
|
-
|
|
1449
|
+
function Ws() {
|
|
1450
|
+
Y.dispatchEvent(new CustomEvent("beforechange"));
|
|
1443
1451
|
}
|
|
1444
1452
|
function dn(e) {
|
|
1445
|
-
const t = q.get(
|
|
1453
|
+
const t = q.get(R.$key) || { path: ts(location.pathname), query: new De() }, n = e.path ? gr(t.path, e.path) : ts(location.pathname), s = new De(e.query ?? (e.path ? "" : location.search)), i = String(s) !== String(t.query), o = i ? s : t.query, c = n !== t.path || i, a = e.title || (c ? "" : document.title), f = e.close || e.data || e.open || e.shouldClose, h = decodeURIComponent(e.hash ?? (!c && f ? location.hash : ""));
|
|
1446
1454
|
return { ...e, title: a, path: n, query: o, hash: h };
|
|
1447
1455
|
}
|
|
1448
|
-
function
|
|
1456
|
+
function Li(e, t) {
|
|
1449
1457
|
Ar(e.data);
|
|
1450
1458
|
const n = dn(e), { title: s, path: i, query: o, hash: c, close: a, open: f, shouldClose: h, data: m } = n, r = {
|
|
1451
1459
|
$hasCloseHandle: !!a,
|
|
1452
1460
|
$hasOpenHandle: !!f,
|
|
1453
1461
|
$hasShouldCloseHandle: !!h,
|
|
1454
|
-
$key:
|
|
1462
|
+
$key: Hs(),
|
|
1455
1463
|
$title: s,
|
|
1456
1464
|
...m
|
|
1457
1465
|
};
|
|
1458
|
-
q.set(r.$key, n),
|
|
1466
|
+
q.set(r.$key, n), Ws(), ks(R), Ut(r);
|
|
1459
1467
|
const _ = Ir(i) + new De(o) + c, l = decodeURIComponent(location.hash);
|
|
1460
1468
|
t(r, s, _), l !== c && window.dispatchEvent(new CustomEvent("hashchange"));
|
|
1461
1469
|
}
|
|
1462
|
-
function
|
|
1470
|
+
function Ni(e, t, n, s) {
|
|
1463
1471
|
Ar(e);
|
|
1464
1472
|
const i = {
|
|
1465
|
-
$key:
|
|
1473
|
+
$key: Hs(),
|
|
1466
1474
|
$title: t,
|
|
1467
1475
|
...e || {}
|
|
1468
1476
|
}, { pathname: o, search: c, hash: a } = new URL(n, location.origin + location.pathname), f = dn({ path: o, query: new De(c), hash: a, title: t, data: e });
|
|
1469
|
-
q.set(i.$key, f),
|
|
1477
|
+
q.set(i.$key, f), Ws(), ks(R), Ut(i);
|
|
1470
1478
|
const h = Ir(o) + f.query + a, m = location.hash;
|
|
1471
1479
|
s(i, t, h), m !== a && window.dispatchEvent(new CustomEvent("hashchange"));
|
|
1472
1480
|
}
|
|
1473
|
-
const [Rr,
|
|
1481
|
+
const [Rr, _c] = Xe({
|
|
1474
1482
|
basePath: ""
|
|
1475
1483
|
});
|
|
1476
|
-
class
|
|
1484
|
+
class gc extends EventTarget {
|
|
1477
1485
|
get store() {
|
|
1478
|
-
return
|
|
1486
|
+
return R;
|
|
1479
1487
|
}
|
|
1480
1488
|
get currentKey() {
|
|
1481
|
-
return
|
|
1489
|
+
return R.$key;
|
|
1482
1490
|
}
|
|
1483
1491
|
get basePath() {
|
|
1484
1492
|
return Rr.basePath;
|
|
1485
1493
|
}
|
|
1486
1494
|
set basePath(t) {
|
|
1487
|
-
|
|
1495
|
+
_c({ basePath: t }), Object.assign(q.get(R.$key), { path: ts(location.pathname) });
|
|
1488
1496
|
}
|
|
1489
1497
|
getParams() {
|
|
1490
|
-
return q.get(
|
|
1498
|
+
return q.get(R.$key);
|
|
1491
1499
|
}
|
|
1492
1500
|
updateParams(t) {
|
|
1493
|
-
Object.assign(q.get(
|
|
1501
|
+
Object.assign(q.get(R.$key), t), Ut();
|
|
1494
1502
|
}
|
|
1495
1503
|
push(t) {
|
|
1496
|
-
|
|
1504
|
+
Li(t, Lr);
|
|
1497
1505
|
}
|
|
1498
1506
|
replace(t) {
|
|
1499
|
-
|
|
1507
|
+
Li(t, Nr);
|
|
1500
1508
|
}
|
|
1501
1509
|
pushIgnoreCloseHandle(t) {
|
|
1502
1510
|
var n, s;
|
|
1503
|
-
|
|
1511
|
+
R.$hasCloseHandle ? ((s = (n = q.get(R.$key)) == null ? void 0 : n.close) == null || s.call(n), this.replace(t)) : this.push(t);
|
|
1504
1512
|
}
|
|
1505
1513
|
forward() {
|
|
1506
|
-
|
|
1514
|
+
J.forward();
|
|
1507
1515
|
}
|
|
1508
1516
|
back() {
|
|
1509
|
-
|
|
1517
|
+
J.back();
|
|
1510
1518
|
}
|
|
1511
1519
|
}
|
|
1512
|
-
const
|
|
1520
|
+
const Y = new gc(), [rn, mc] = Xe({ defaultTitle: document.title, url: "", title: "" }), vc = { history: Y, titleStore: rn, basePathStore: Rr };
|
|
1513
1521
|
if (!window._GEMHISTORY) {
|
|
1514
|
-
if (window._GEMHISTORY =
|
|
1515
|
-
|
|
1516
|
-
},
|
|
1517
|
-
|
|
1522
|
+
if (window._GEMHISTORY = vc, J.pushState = function(t, n, s) {
|
|
1523
|
+
Ni(t, n, s, Lr);
|
|
1524
|
+
}, J.replaceState = function(t, n, s) {
|
|
1525
|
+
Ni(t, n, s, Nr);
|
|
1518
1526
|
}, window.addEventListener("hashchange", ({ isTrusted: t }) => {
|
|
1519
|
-
t &&
|
|
1520
|
-
}),
|
|
1521
|
-
if (
|
|
1522
|
-
Ut(
|
|
1527
|
+
t && Y.replace({ hash: location.hash });
|
|
1528
|
+
}), J.state)
|
|
1529
|
+
if (J.state.$hasCloseHandle) {
|
|
1530
|
+
Ut(J.state);
|
|
1523
1531
|
const t = dn({ title: document.title });
|
|
1524
|
-
q.set(
|
|
1532
|
+
q.set(R.$key, t), Y.back();
|
|
1525
1533
|
} else {
|
|
1526
1534
|
const t = dn({ title: document.title, hash: location.hash });
|
|
1527
1535
|
Ut({
|
|
1528
|
-
$key:
|
|
1529
|
-
...
|
|
1530
|
-
}), q.set(
|
|
1536
|
+
$key: Hs(),
|
|
1537
|
+
...J.state || {}
|
|
1538
|
+
}), q.set(R.$key, t);
|
|
1531
1539
|
}
|
|
1532
1540
|
else {
|
|
1533
1541
|
const { protocol: t, pathname: n, search: s, hash: i } = location;
|
|
1534
|
-
t.startsWith("http") &&
|
|
1542
|
+
t.startsWith("http") && Y.replace({ path: n, query: s, hash: i });
|
|
1535
1543
|
}
|
|
1536
|
-
|
|
1537
|
-
const t = q.get(
|
|
1544
|
+
ft(rn, () => {
|
|
1545
|
+
const t = q.get(R.$key);
|
|
1538
1546
|
t && (t.title = rn.title);
|
|
1539
|
-
}),
|
|
1540
|
-
const { title: t } =
|
|
1541
|
-
t !== rn.title &&
|
|
1547
|
+
}), ft(R, () => {
|
|
1548
|
+
const { title: t } = Y.getParams();
|
|
1549
|
+
t !== rn.title && mc({ title: t });
|
|
1542
1550
|
});
|
|
1543
1551
|
let e = !1;
|
|
1544
1552
|
window.addEventListener("popstate", (t) => {
|
|
@@ -1561,21 +1569,21 @@ if (!window._GEMHISTORY) {
|
|
|
1561
1569
|
data: n
|
|
1562
1570
|
});
|
|
1563
1571
|
}
|
|
1564
|
-
const s =
|
|
1572
|
+
const s = R;
|
|
1565
1573
|
if (parseFloat(n.$key) > parseFloat(s.$key) && n.$hasOpenHandle)
|
|
1566
1574
|
(c = (o = q.get(n.$key)) == null ? void 0 : o.open) == null || c.call(o);
|
|
1567
1575
|
else if (s.$hasCloseHandle) {
|
|
1568
1576
|
const a = q.get(s.$key), f = a == null ? void 0 : a.close, h = a == null ? void 0 : a.shouldClose;
|
|
1569
1577
|
if (h && !h()) {
|
|
1570
|
-
e = !0,
|
|
1578
|
+
e = !0, Y.forward();
|
|
1571
1579
|
return;
|
|
1572
1580
|
} else
|
|
1573
|
-
f ? f() : n.$hasCloseHandle && (e = !0,
|
|
1581
|
+
f ? f() : n.$hasCloseHandle && (e = !0, Y.back());
|
|
1574
1582
|
}
|
|
1575
|
-
|
|
1583
|
+
Ws(), ks(R), Ut(n);
|
|
1576
1584
|
});
|
|
1577
1585
|
}
|
|
1578
|
-
const { history: O, titleStore: At, basePathStore:
|
|
1586
|
+
const { history: O, titleStore: At, basePathStore: wc } = window._GEMHISTORY;
|
|
1579
1587
|
/**
|
|
1580
1588
|
* @license
|
|
1581
1589
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1589,27 +1597,27 @@ const { history: O, titleStore: At, basePathStore: yc } = window._GEMHISTORY;
|
|
|
1589
1597
|
* subject to an additional IP rights grant found at
|
|
1590
1598
|
* http://polymer.github.io/PATENTS.txt
|
|
1591
1599
|
*/
|
|
1592
|
-
const
|
|
1600
|
+
const Ai = (e, t) => {
|
|
1593
1601
|
const n = e.startNode.parentNode, s = t === void 0 ? e.endNode : t.startNode, i = n.insertBefore(ot(), s);
|
|
1594
1602
|
n.insertBefore(ot(), s);
|
|
1595
1603
|
const o = new re(e.options);
|
|
1596
1604
|
return o.insertAfterNode(i), o;
|
|
1597
|
-
}, kt = (e, t) => (e.setValue(t), e.commit(), e),
|
|
1605
|
+
}, kt = (e, t) => (e.setValue(t), e.commit(), e), Vn = (e, t, n) => {
|
|
1598
1606
|
const s = e.startNode.parentNode, i = n ? n.startNode : e.endNode, o = t.endNode.nextSibling;
|
|
1599
|
-
o !== i &&
|
|
1600
|
-
},
|
|
1601
|
-
|
|
1602
|
-
},
|
|
1607
|
+
o !== i && hr(s, t.startNode, o, i);
|
|
1608
|
+
}, Dn = (e) => {
|
|
1609
|
+
$s(e.startNode.parentNode, e.startNode, e.endNode.nextSibling);
|
|
1610
|
+
}, Ii = (e, t, n) => {
|
|
1603
1611
|
const s = /* @__PURE__ */ new Map();
|
|
1604
1612
|
for (let i = t; i <= n; i++)
|
|
1605
1613
|
s.set(e[i], i);
|
|
1606
1614
|
return s;
|
|
1607
|
-
},
|
|
1615
|
+
}, Ri = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Fl = Sn((e, t, n) => {
|
|
1608
1616
|
let s;
|
|
1609
1617
|
return n === void 0 ? n = t : t !== void 0 && (s = t), (i) => {
|
|
1610
1618
|
if (!(i instanceof re))
|
|
1611
1619
|
throw new Error("repeat can only be used in text bindings");
|
|
1612
|
-
const o =
|
|
1620
|
+
const o = Ri.get(i) || [], c = Hi.get(i) || [], a = [], f = [], h = [];
|
|
1613
1621
|
let m = 0;
|
|
1614
1622
|
for (const $ of e)
|
|
1615
1623
|
h[m] = s ? s($, m) : m, f[m] = n($, m), m++;
|
|
@@ -1624,31 +1632,31 @@ const Ri = (e, t) => {
|
|
|
1624
1632
|
else if (c[g] === h[y])
|
|
1625
1633
|
a[y] = kt(o[g], f[y]), g--, y--;
|
|
1626
1634
|
else if (c[l] === h[y])
|
|
1627
|
-
a[y] = kt(o[l], f[y]),
|
|
1635
|
+
a[y] = kt(o[l], f[y]), Vn(i, o[l], a[y + 1]), l++, y--;
|
|
1628
1636
|
else if (c[g] === h[v])
|
|
1629
|
-
a[v] = kt(o[g], f[v]),
|
|
1630
|
-
else if (r === void 0 && (r =
|
|
1631
|
-
|
|
1637
|
+
a[v] = kt(o[g], f[v]), Vn(i, o[g], o[l]), g--, v++;
|
|
1638
|
+
else if (r === void 0 && (r = Ii(h, v, y), _ = Ii(c, l, g)), !r.has(c[l]))
|
|
1639
|
+
Dn(o[l]), l++;
|
|
1632
1640
|
else if (!r.has(c[g]))
|
|
1633
|
-
|
|
1641
|
+
Dn(o[g]), g--;
|
|
1634
1642
|
else {
|
|
1635
1643
|
const $ = _.get(h[v]), d = $ !== void 0 ? o[$] : null;
|
|
1636
1644
|
if (d === null) {
|
|
1637
|
-
const S =
|
|
1645
|
+
const S = Ai(i, o[l]);
|
|
1638
1646
|
kt(S, f[v]), a[v] = S;
|
|
1639
1647
|
} else
|
|
1640
|
-
a[v] = kt(d, f[v]),
|
|
1648
|
+
a[v] = kt(d, f[v]), Vn(i, d, o[l]), o[$] = null;
|
|
1641
1649
|
v++;
|
|
1642
1650
|
}
|
|
1643
1651
|
for (; v <= y; ) {
|
|
1644
|
-
const $ =
|
|
1652
|
+
const $ = Ai(i, a[y + 1]);
|
|
1645
1653
|
kt($, f[v]), a[v++] = $;
|
|
1646
1654
|
}
|
|
1647
1655
|
for (; l <= g; ) {
|
|
1648
1656
|
const $ = o[l++];
|
|
1649
|
-
$ !== null &&
|
|
1657
|
+
$ !== null && Dn($);
|
|
1650
1658
|
}
|
|
1651
|
-
|
|
1659
|
+
Ri.set(i, a), Hi.set(i, h);
|
|
1652
1660
|
};
|
|
1653
1661
|
});
|
|
1654
1662
|
/**
|
|
@@ -1664,14 +1672,14 @@ const Ri = (e, t) => {
|
|
|
1664
1672
|
* subject to an additional IP rights grant found at
|
|
1665
1673
|
* http://polymer.github.io/PATENTS.txt
|
|
1666
1674
|
*/
|
|
1667
|
-
const
|
|
1668
|
-
const s =
|
|
1675
|
+
const Fn = /* @__PURE__ */ new WeakMap(), ql = Sn((e, t) => (n) => {
|
|
1676
|
+
const s = Fn.get(n);
|
|
1669
1677
|
if (Array.isArray(e)) {
|
|
1670
1678
|
if (Array.isArray(s) && s.length === e.length && e.every((i, o) => i === s[o]))
|
|
1671
1679
|
return;
|
|
1672
|
-
} else if (s === e && (e !== void 0 ||
|
|
1680
|
+
} else if (s === e && (e !== void 0 || Fn.has(n)))
|
|
1673
1681
|
return;
|
|
1674
|
-
n.setValue(t()),
|
|
1682
|
+
n.setValue(t()), Fn.set(n, Array.isArray(e) ? Array.from(e) : e);
|
|
1675
1683
|
});
|
|
1676
1684
|
/**
|
|
1677
1685
|
* @license
|
|
@@ -1686,42 +1694,42 @@ const Un = /* @__PURE__ */ new WeakMap(), ql = Sn((e, t) => (n) => {
|
|
|
1686
1694
|
* subject to an additional IP rights grant found at
|
|
1687
1695
|
* http://polymer.github.io/PATENTS.txt
|
|
1688
1696
|
*/
|
|
1689
|
-
const
|
|
1690
|
-
const n =
|
|
1691
|
-
if (e === void 0 && t instanceof
|
|
1692
|
-
if (n !== void 0 || !
|
|
1697
|
+
const qn = /* @__PURE__ */ new WeakMap(), yc = Sn((e) => (t) => {
|
|
1698
|
+
const n = qn.get(t);
|
|
1699
|
+
if (e === void 0 && t instanceof bs) {
|
|
1700
|
+
if (n !== void 0 || !qn.has(t)) {
|
|
1693
1701
|
const s = t.committer.name;
|
|
1694
1702
|
t.committer.element.removeAttribute(s);
|
|
1695
1703
|
}
|
|
1696
1704
|
} else e !== n && t.setValue(e);
|
|
1697
|
-
|
|
1705
|
+
qn.set(t, e);
|
|
1698
1706
|
});
|
|
1699
|
-
var
|
|
1707
|
+
var Sc = Object.create, zs = Object.defineProperty, $c = Object.getOwnPropertyDescriptor, Hr = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ae = (e) => {
|
|
1700
1708
|
throw TypeError(e);
|
|
1701
|
-
}, Wr = (e, t, n) => t in e ?
|
|
1709
|
+
}, Wr = (e, t, n) => t in e ? zs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wi = (e, t) => zs(e, "name", { value: t, configurable: !0 }), zr = (e) => [, , , Sc((e == null ? void 0 : e[Hr("metadata")]) ?? null)], Gr = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Se = (e) => e !== void 0 && typeof e != "function" ? ae("Function expected") : e, Ec = (e, t, n, s, i) => ({ kind: Gr[e], name: t, metadata: s, addInitializer: (o) => n._ ? ae("Already initialized") : i.push(Se(o || null)) }), bc = (e, t) => Wr(t, Hr("metadata"), e[3]), P = (e, t, n, s) => {
|
|
1702
1710
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
1703
1711
|
return s;
|
|
1704
|
-
},
|
|
1705
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
1706
|
-
return
|
|
1712
|
+
}, W = (e, t, n, s, i, o) => {
|
|
1713
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Gr[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && $c(r < 4 ? i : { get [n]() {
|
|
1714
|
+
return I(this, o);
|
|
1707
1715
|
}, set [n](u) {
|
|
1708
1716
|
return pn(this, o, u);
|
|
1709
1717
|
} }, n));
|
|
1710
|
-
r ? l && r < 4 &&
|
|
1718
|
+
r ? l && r < 4 && Wi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Wi(i, n);
|
|
1711
1719
|
for (var S = s.length - 1; S >= 0; S--)
|
|
1712
|
-
h =
|
|
1713
|
-
return r ||
|
|
1714
|
-
},
|
|
1715
|
-
const
|
|
1720
|
+
h = Ec(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Cc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? I : Pc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => pn(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Se(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ae("Object expected") : (Se(c = a.get) && (d.get = c), Se(c = a.set) && (d.set = c), Se(c = a.init) && y.unshift(c));
|
|
1721
|
+
return r || bc(e, i), d && zs(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
1722
|
+
}, z = (e, t, n) => Wr(e, typeof t != "symbol" ? t + "" : t, n), Gs = (e, t, n) => t.has(e) || ae("Cannot " + n), Cc = (e, t) => Object(t) !== t ? ae('Cannot use the "in" operator on this value') : e.has(t), I = (e, t, n) => (Gs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Z = (e, t, n) => t.has(e) ? ae("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), pn = (e, t, n, s) => (Gs(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Pc = (e, t, n) => (Gs(e, t, "access private method"), n), Vr, Dr, Fr, qr, Ur, Br, Kr, jr, Jr, Yr, Qr, Xr, Zr, to, eo, es, no, w, xt, Vt, $e, on, ns, Ee, an, Vs, Ds, ss, Fs, qs, so, Us, io;
|
|
1723
|
+
const ro = "_";
|
|
1716
1724
|
class kc extends RegExp {
|
|
1717
1725
|
constructor(t) {
|
|
1718
1726
|
let n = 0;
|
|
1719
1727
|
super(
|
|
1720
|
-
`^${t.replace(/((:[^/$]+)|(\*))/g, (s, i) => i === "*" ? `(?<${
|
|
1728
|
+
`^${t.replace(/((:[^/$]+)|(\*))/g, (s, i) => i === "*" ? `(?<${ro}${n++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
|
|
1721
1729
|
);
|
|
1722
1730
|
}
|
|
1723
1731
|
}
|
|
1724
|
-
function
|
|
1732
|
+
function oo(e, t) {
|
|
1725
1733
|
if (window.URLPattern) {
|
|
1726
1734
|
const o = new window.URLPattern({ pathname: e }), c = o.exec({ pathname: t }) || o.exec({ pathname: `${t}/` });
|
|
1727
1735
|
return c ? c.pathname.groups : null;
|
|
@@ -1730,10 +1738,10 @@ function ao(e, t) {
|
|
|
1730
1738
|
if (!s) return null;
|
|
1731
1739
|
const i = {};
|
|
1732
1740
|
return s.groups && Object.entries(s.groups).forEach(([o, c]) => {
|
|
1733
|
-
i[o.startsWith(
|
|
1741
|
+
i[o.startsWith(ro) ? o.slice(1) : o] = c;
|
|
1734
1742
|
}), i;
|
|
1735
1743
|
}
|
|
1736
|
-
function
|
|
1744
|
+
function Bs(e, t) {
|
|
1737
1745
|
let n = 0, s = e.pattern.replaceAll("*", () => `:${n++}`);
|
|
1738
1746
|
const i = t == null ? void 0 : t.params;
|
|
1739
1747
|
return i && Object.keys(i).forEach((o) => {
|
|
@@ -1742,17 +1750,18 @@ function js(e, t) {
|
|
|
1742
1750
|
}
|
|
1743
1751
|
function xc(e, t) {
|
|
1744
1752
|
return {
|
|
1745
|
-
path:
|
|
1753
|
+
path: Bs(e, t),
|
|
1746
1754
|
...t
|
|
1747
1755
|
};
|
|
1748
1756
|
}
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1757
|
+
const Un = at``, zi = /* @__PURE__ */ new Map();
|
|
1758
|
+
no = [Mr({ penetrable: !0 })];
|
|
1759
|
+
class N extends (es = B, eo = [Tn], to = [U], Zr = [U], Xr = [U], Qr = [ye], Yr = [ye], Jr = [ye], jr = [ye], Kr = [U], Br = [U], Ur = [U], qr = [$t((t) => [t.scrollContainer])], Fr = [$t((t) => [t.scrollContainer])], Dr = [$t((t) => {
|
|
1751
1760
|
var n;
|
|
1752
|
-
return
|
|
1753
|
-
})],
|
|
1761
|
+
return I(n = t, ss).call(n);
|
|
1762
|
+
})], Vr = [kr((t) => !t.inert)], es) {
|
|
1754
1763
|
constructor() {
|
|
1755
|
-
super(...arguments),
|
|
1764
|
+
super(...arguments), Z(this, xt), z(this, "transition", P(w, 8, this)), P(w, 11, this), z(this, "routes", P(w, 12, this)), P(w, 15, this), z(this, "locationStore", P(w, 16, this)), P(w, 19, this), z(this, "key", P(w, 20, this)), P(w, 23, this), z(this, "loading", P(w, 24, this)), P(w, 27, this), z(this, "beforeroutechange", P(w, 28, this)), P(w, 31, this), z(this, "routechange", P(w, 32, this)), P(w, 35, this), z(this, "error", P(w, 36, this)), P(w, 39, this), z(this, "scrollContainer", P(w, 40, this)), P(w, 43, this), z(this, "scrollIgnoreHash", P(w, 44, this)), P(w, 47, this), z(this, "trigger", P(w, 48, this, O)), P(w, 51, this), z(this, "currentRoute"), z(this, "currentParams", {}), Z(this, $e, Ms({ content: Un })), Z(this, on, () => {
|
|
1756
1765
|
if (!this.locationStore) return;
|
|
1757
1766
|
const { path: t, query: n, hash: s, data: i } = O.getParams();
|
|
1758
1767
|
It(this.locationStore, {
|
|
@@ -1762,34 +1771,34 @@ class z extends (ss = B, so = [On], no = [U], eo = [U], to = [U], Zr = [ye], Xr
|
|
|
1762
1771
|
hash: s,
|
|
1763
1772
|
data: i
|
|
1764
1773
|
});
|
|
1765
|
-
}),
|
|
1766
|
-
if (!
|
|
1767
|
-
const t =
|
|
1768
|
-
t ?
|
|
1769
|
-
}),
|
|
1774
|
+
}), Z(this, ns, () => {
|
|
1775
|
+
if (!I(this, xt, Vt)) return;
|
|
1776
|
+
const t = zi.get(O.currentKey);
|
|
1777
|
+
t ? I(this, xt, Vt).scroll(0, t) : (this.scrollIgnoreHash || !O.getParams().hash) && I(this, xt, Vt).scroll(0, 0);
|
|
1778
|
+
}), Z(this, Ee), Z(this, an, (t, n, s) => {
|
|
1770
1779
|
this.beforeroutechange(t), pn(this, Ee, void 0), this.currentRoute = t, this.currentParams = n;
|
|
1771
1780
|
const i = async () => {
|
|
1772
|
-
|
|
1781
|
+
I(this, $e).call(this, { content: s }), I(this, on).call(this), await Promise.resolve(), I(this, ns).call(this), this.routechange(this.currentRoute);
|
|
1773
1782
|
};
|
|
1774
1783
|
this.transition && "startViewTransition" in document ? document.startViewTransition(() => i()) : i();
|
|
1775
|
-
}),
|
|
1776
|
-
if (
|
|
1777
|
-
return
|
|
1784
|
+
}), Z(this, Vs, P(w, 52, this, () => {
|
|
1785
|
+
if (I(this, xt, Vt))
|
|
1786
|
+
return mr(
|
|
1778
1787
|
O,
|
|
1779
1788
|
"beforechange",
|
|
1780
|
-
() =>
|
|
1789
|
+
() => zi.set(O.currentKey, I(this, xt, Vt).scrollTop)
|
|
1781
1790
|
);
|
|
1782
|
-
})),
|
|
1791
|
+
})), P(w, 55, this), Z(this, Ds, P(w, 56, this, () => ft(this.trigger.store, () => I(this, $e).call(this, {})))), P(w, 59, this), Z(this, ss, () => {
|
|
1783
1792
|
const { path: t, query: n, hash: s } = this.trigger.getParams();
|
|
1784
1793
|
return [this.key, t, n, s];
|
|
1785
|
-
}),
|
|
1794
|
+
}), Z(this, Fs, P(w, 60, this, ([t, n], s) => {
|
|
1786
1795
|
if (s && t === s[0] && n === s[1]) {
|
|
1787
|
-
|
|
1796
|
+
I(this, on).call(this);
|
|
1788
1797
|
return;
|
|
1789
1798
|
}
|
|
1790
1799
|
this.update();
|
|
1791
|
-
})),
|
|
1792
|
-
const { content: t } =
|
|
1800
|
+
})), P(w, 63, this), Z(this, qs, P(w, 64, this, () => {
|
|
1801
|
+
const { content: t } = I(this, $e);
|
|
1793
1802
|
if (t !== void 0)
|
|
1794
1803
|
return this.shadowRoot ? at`
|
|
1795
1804
|
<style>
|
|
@@ -1798,13 +1807,13 @@ class z extends (ss = B, so = [On], no = [U], eo = [U], to = [U], Zr = [ye], Xr
|
|
|
1798
1807
|
display: contents;
|
|
1799
1808
|
}
|
|
1800
1809
|
</style>
|
|
1801
|
-
${t ===
|
|
1802
|
-
` : t ===
|
|
1803
|
-
})),
|
|
1810
|
+
${t === Un ? at`<slot></slot>` : t}
|
|
1811
|
+
` : t === Un ? void 0 : at`${t}`;
|
|
1812
|
+
})), P(w, 67, this), z(this, "update", () => {
|
|
1804
1813
|
const { path: t, hash: n, query: s } = this.trigger.getParams(), { route: i, params: o = {} } = Ue.findRoute(this.routes, t), { redirect: c, content: a, getContent: f } = i || {};
|
|
1805
1814
|
if (c) {
|
|
1806
1815
|
this.trigger.replace({
|
|
1807
|
-
path:
|
|
1816
|
+
path: Bs({ pattern: c }, { params: o }),
|
|
1808
1817
|
query: s,
|
|
1809
1818
|
hash: n
|
|
1810
1819
|
});
|
|
@@ -1814,94 +1823,93 @@ class z extends (ss = B, so = [On], no = [U], eo = [U], to = [U], Zr = [ye], Xr
|
|
|
1814
1823
|
const h = a || (f == null ? void 0 : f(o, this.shadowRoot || this));
|
|
1815
1824
|
if (this.loading(i), h instanceof Promise) {
|
|
1816
1825
|
pn(this, Ee, h);
|
|
1817
|
-
const m = () =>
|
|
1826
|
+
const m = () => I(this, Ee) === h;
|
|
1818
1827
|
h.then((r) => {
|
|
1819
|
-
m() &&
|
|
1828
|
+
m() && I(this, an).call(this, i, o, r);
|
|
1820
1829
|
}).catch((r) => {
|
|
1821
1830
|
m() && this.error(r);
|
|
1822
1831
|
});
|
|
1823
1832
|
return;
|
|
1824
1833
|
}
|
|
1825
|
-
|
|
1834
|
+
I(this, an).call(this, i, o, h);
|
|
1826
1835
|
});
|
|
1827
1836
|
}
|
|
1828
1837
|
}
|
|
1829
|
-
w = zr(
|
|
1838
|
+
w = zr(es);
|
|
1830
1839
|
xt = /* @__PURE__ */ new WeakSet();
|
|
1831
|
-
|
|
1840
|
+
Vt = function() {
|
|
1832
1841
|
return typeof this.scrollContainer == "function" ? this.scrollContainer() : this.scrollContainer;
|
|
1833
1842
|
};
|
|
1834
1843
|
$e = /* @__PURE__ */ new WeakMap();
|
|
1835
1844
|
on = /* @__PURE__ */ new WeakMap();
|
|
1836
|
-
|
|
1845
|
+
ns = /* @__PURE__ */ new WeakMap();
|
|
1837
1846
|
Ee = /* @__PURE__ */ new WeakMap();
|
|
1838
1847
|
an = /* @__PURE__ */ new WeakMap();
|
|
1848
|
+
Vs = /* @__PURE__ */ new WeakMap();
|
|
1839
1849
|
Ds = /* @__PURE__ */ new WeakMap();
|
|
1850
|
+
ss = /* @__PURE__ */ new WeakMap();
|
|
1840
1851
|
Fs = /* @__PURE__ */ new WeakMap();
|
|
1841
1852
|
qs = /* @__PURE__ */ new WeakMap();
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
H(w, 21, "#updateContent", Fr, Us);
|
|
1860
|
-
H(w, 21, "#content", Dr, Bs);
|
|
1861
|
-
Gr(w, z);
|
|
1862
|
-
W(z, "createLocationStore", () => {
|
|
1853
|
+
W(w, 5, "transition", eo, N);
|
|
1854
|
+
W(w, 5, "routes", to, N);
|
|
1855
|
+
W(w, 5, "locationStore", Zr, N);
|
|
1856
|
+
W(w, 5, "key", Xr, N);
|
|
1857
|
+
W(w, 5, "loading", Qr, N);
|
|
1858
|
+
W(w, 5, "beforeroutechange", Yr, N);
|
|
1859
|
+
W(w, 5, "routechange", Jr, N);
|
|
1860
|
+
W(w, 5, "error", jr, N);
|
|
1861
|
+
W(w, 5, "scrollContainer", Kr, N);
|
|
1862
|
+
W(w, 5, "scrollIgnoreHash", Br, N);
|
|
1863
|
+
W(w, 5, "trigger", Ur, N);
|
|
1864
|
+
W(w, 21, "#rememberScrollPosition", qr, Vs);
|
|
1865
|
+
W(w, 21, "#connectTriggerStore", Fr, Ds);
|
|
1866
|
+
W(w, 21, "#updateContent", Dr, Fs);
|
|
1867
|
+
W(w, 21, "#content", Vr, qs);
|
|
1868
|
+
N = W(w, 0, "GemLightRouteElement", no, N);
|
|
1869
|
+
z(N, "createLocationStore", () => {
|
|
1863
1870
|
const { path: e, query: t, hash: n, data: s } = O.getParams();
|
|
1864
1871
|
return bn({ path: e, query: t, hash: n, data: s, params: {} });
|
|
1865
1872
|
});
|
|
1866
|
-
|
|
1873
|
+
z(N, "findRoute", (e = [], t) => {
|
|
1867
1874
|
let n = null, s;
|
|
1868
1875
|
e instanceof Array ? s = e : s = Object.values(e);
|
|
1869
1876
|
for (const i of s)
|
|
1870
1877
|
if (i.pattern === "*")
|
|
1871
1878
|
n = i;
|
|
1872
1879
|
else {
|
|
1873
|
-
const o =
|
|
1880
|
+
const o = oo(i.pattern, t);
|
|
1874
1881
|
if (o)
|
|
1875
1882
|
return { route: i, params: o };
|
|
1876
1883
|
}
|
|
1877
1884
|
return { route: n };
|
|
1878
1885
|
});
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
+
P(w, 1, N);
|
|
1887
|
+
so = [Ht()];
|
|
1888
|
+
class Ue extends (io = N) {
|
|
1889
|
+
}
|
|
1890
|
+
Us = zr(io);
|
|
1891
|
+
Ue = W(Us, 0, "GemRouteElement", so, Ue);
|
|
1892
|
+
P(Us, 1, Ue);
|
|
1893
|
+
var Tc = Object.create, Ks = Object.defineProperty, Oc = Object.getOwnPropertyDescriptor, ao = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ce = (e) => {
|
|
1886
1894
|
throw TypeError(e);
|
|
1887
|
-
},
|
|
1895
|
+
}, co = (e, t, n) => t in e ? Ks(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Gi = (e, t) => Ks(e, "name", { value: t, configurable: !0 }), lo = (e) => [, , , Tc((e == null ? void 0 : e[ao("metadata")]) ?? null)], ho = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], be = (e) => e !== void 0 && typeof e != "function" ? ce("Function expected") : e, Mc = (e, t, n, s, i) => ({ kind: ho[e], name: t, metadata: s, addInitializer: (o) => n._ ? ce("Already initialized") : i.push(be(o || null)) }), Lc = (e, t) => co(t, ao("metadata"), e[3]), C = (e, t, n, s) => {
|
|
1888
1896
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
1889
1897
|
return s;
|
|
1890
|
-
},
|
|
1891
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
1898
|
+
}, A = (e, t, n, s, i, o) => {
|
|
1899
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = ho[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Oc(r < 4 ? i : { get [n]() {
|
|
1892
1900
|
return nt(this, o);
|
|
1893
1901
|
}, set [n](u) {
|
|
1894
|
-
return
|
|
1902
|
+
return Vi(this, o, u);
|
|
1895
1903
|
} }, n));
|
|
1896
|
-
r ? l && r < 4 &&
|
|
1904
|
+
r ? l && r < 4 && Gi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Gi(i, n);
|
|
1897
1905
|
for (var S = s.length - 1; S >= 0; S--)
|
|
1898
|
-
h = Mc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Nc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? nt : Ac)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) =>
|
|
1899
|
-
return r || Lc(e, i), d &&
|
|
1900
|
-
}, D = (e, t, n) =>
|
|
1901
|
-
function
|
|
1906
|
+
h = Mc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Nc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? nt : Ac)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Vi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? be(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ce("Object expected") : (be(c = a.get) && (d.get = c), be(c = a.set) && (d.set = c), be(c = a.init) && y.unshift(c));
|
|
1907
|
+
return r || Lc(e, i), d && Ks(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
1908
|
+
}, D = (e, t, n) => co(e, typeof t != "symbol" ? t + "" : t, n), js = (e, t, n) => t.has(e) || ce("Cannot " + n), Nc = (e, t) => Object(t) !== t ? ce('Cannot use the "in" operator on this value') : e.has(t), nt = (e, t, n) => (js(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Dt = (e, t, n) => t.has(e) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Vi = (e, t, n, s) => (js(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Ac = (e, t, n) => (js(e, t, "access private method"), n), uo, po, fo, _o, go, mo, vo, wo, yo, So, $o, Eo, bo, is, Co, E, gt, Ce, Po, Js, rs, os, Ys, as, ko, xo, To, cs, Oo, Q, Qs;
|
|
1909
|
+
function Di(e) {
|
|
1902
1910
|
return !e.startsWith("/");
|
|
1903
1911
|
}
|
|
1904
|
-
const Ic =
|
|
1912
|
+
const Ic = Pn(vr`
|
|
1905
1913
|
:host {
|
|
1906
1914
|
/* link default style */
|
|
1907
1915
|
cursor: pointer;
|
|
@@ -1916,14 +1924,14 @@ const Ic = kn(yr`
|
|
|
1916
1924
|
color: unset;
|
|
1917
1925
|
}
|
|
1918
1926
|
`);
|
|
1919
|
-
|
|
1920
|
-
class
|
|
1927
|
+
Co = [Mn(wc), Rs(Ic), Ht(), Ln({ focusable: !0 })];
|
|
1928
|
+
class H extends (is = B, bo = [V], Eo = [V], $o = [V], So = [V], yo = [V], wo = [V], vo = [Tn], mo = [U], go = [U], _o = [U], fo = [U], po = [Tr], uo = [qe()], is) {
|
|
1921
1929
|
constructor() {
|
|
1922
|
-
super(...arguments),
|
|
1930
|
+
super(...arguments), C(E, 5, this), Dt(this, gt), D(this, "href", C(E, 8, this)), C(E, 11, this), D(this, "target", C(E, 12, this)), C(E, 15, this), D(this, "path", C(E, 16, this)), C(E, 19, this), D(this, "query", C(E, 20, this)), C(E, 23, this), D(this, "hash", C(E, 24, this)), C(E, 27, this), D(this, "hint", C(E, 28, this)), C(E, 31, this), D(this, "preload", C(E, 32, this)), C(E, 35, this), D(this, "route", C(E, 36, this)), C(E, 39, this), D(this, "options", C(E, 40, this)), C(E, 43, this), D(this, "routeOptions", C(E, 44, this)), C(E, 47, this), D(this, "prepare", C(E, 48, this)), C(E, 51, this), D(this, "link", C(E, 52, this)), C(E, 55, this), Dt(this, Js, async () => {
|
|
1923
1931
|
var o;
|
|
1924
1932
|
const t = this.getLocationString();
|
|
1925
1933
|
if (!t) return;
|
|
1926
|
-
if (
|
|
1934
|
+
if (Di(t))
|
|
1927
1935
|
switch (this.target) {
|
|
1928
1936
|
case "_self":
|
|
1929
1937
|
window.location.href = t;
|
|
@@ -1941,7 +1949,7 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
|
|
|
1941
1949
|
const { path: n, query: s, hash: i } = O.getParams();
|
|
1942
1950
|
if (n + s + i !== t)
|
|
1943
1951
|
if (await ((o = this.prepare) == null ? void 0 : o.call(this)), this.route)
|
|
1944
|
-
O.pushIgnoreCloseHandle(xc(this.route, nt(this,
|
|
1952
|
+
O.pushIgnoreCloseHandle(xc(this.route, nt(this, gt, Ce)));
|
|
1945
1953
|
else if (this.href) {
|
|
1946
1954
|
const c = new URL(t, location.origin);
|
|
1947
1955
|
O.pushIgnoreCloseHandle({
|
|
@@ -1955,12 +1963,12 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
|
|
|
1955
1963
|
query: this.query,
|
|
1956
1964
|
hash: this.hash
|
|
1957
1965
|
});
|
|
1958
|
-
}), Dt(this,
|
|
1966
|
+
}), Dt(this, rs, (t) => {
|
|
1959
1967
|
t.preventDefault();
|
|
1960
|
-
}), Dt(this,
|
|
1968
|
+
}), Dt(this, os, () => {
|
|
1961
1969
|
const t = this.getLocationString();
|
|
1962
|
-
return
|
|
1963
|
-
}), Dt(this,
|
|
1970
|
+
return Di(t) ? t : new URL(O.basePath + t, location.origin).toString();
|
|
1971
|
+
}), Dt(this, Ys, () => {
|
|
1964
1972
|
var t, n, s;
|
|
1965
1973
|
(t = this.route) == null || t.content, (s = (n = this.route) == null ? void 0 : n.getContent) == null || s.call(n, {}, this.shadowRoot);
|
|
1966
1974
|
});
|
|
@@ -1969,8 +1977,8 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
|
|
|
1969
1977
|
return at`
|
|
1970
1978
|
<a
|
|
1971
1979
|
part=${this.link}
|
|
1972
|
-
@click=${nt(this,
|
|
1973
|
-
href=${
|
|
1980
|
+
@click=${nt(this, rs)}
|
|
1981
|
+
href=${yc(nt(this, gt, Po) === "off" ? void 0 : nt(this, os).call(this))}
|
|
1974
1982
|
tabindex="-1"
|
|
1975
1983
|
>
|
|
1976
1984
|
<slot></slot>
|
|
@@ -1983,93 +1991,93 @@ class R extends (os = B, Co = [G], bo = [G], Eo = [G], $o = [G], So = [G], yo =
|
|
|
1983
1991
|
getLocationString() {
|
|
1984
1992
|
var t, n;
|
|
1985
1993
|
if (this.route) {
|
|
1986
|
-
const s = ((t = nt(this,
|
|
1987
|
-
return
|
|
1994
|
+
const s = ((t = nt(this, gt, Ce)) == null ? void 0 : t.query) || "", i = ((n = nt(this, gt, Ce)) == null ? void 0 : n.hash) || "";
|
|
1995
|
+
return Bs(this.route, nt(this, gt, Ce)) + s + i;
|
|
1988
1996
|
} else {
|
|
1989
1997
|
const s = this.href || this.path + this.query + this.hash, { path: i, query: o } = O.getParams();
|
|
1990
|
-
return s.startsWith("#") ? `${i}${o}${s}` : s.startsWith("?") ? `${i}${s}` : s.startsWith(".") ?
|
|
1998
|
+
return s.startsWith("#") ? `${i}${o}${s}` : s.startsWith("?") ? `${i}${s}` : s.startsWith(".") ? gr(i, s) : s;
|
|
1991
1999
|
}
|
|
1992
2000
|
}
|
|
1993
2001
|
}
|
|
1994
|
-
E =
|
|
1995
|
-
|
|
2002
|
+
E = lo(is);
|
|
2003
|
+
gt = /* @__PURE__ */ new WeakSet();
|
|
1996
2004
|
Ce = function() {
|
|
1997
2005
|
return this.routeOptions || this.options;
|
|
1998
2006
|
};
|
|
1999
|
-
|
|
2007
|
+
Po = function() {
|
|
2000
2008
|
return this.hint || "on";
|
|
2001
2009
|
};
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
this.addEventListener("click", nt(this,
|
|
2010
|
+
Js = /* @__PURE__ */ new WeakMap();
|
|
2011
|
+
rs = /* @__PURE__ */ new WeakMap();
|
|
2012
|
+
os = /* @__PURE__ */ new WeakMap();
|
|
2013
|
+
Ys = /* @__PURE__ */ new WeakMap();
|
|
2014
|
+
as = function() {
|
|
2015
|
+
this.addEventListener("click", nt(this, Js)), this.addEventListener("pointerenter", nt(this, Ys));
|
|
2008
2016
|
};
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
class se extends (
|
|
2017
|
+
as = A(E, 17, "#init", uo, gt, as);
|
|
2018
|
+
A(E, 5, "href", bo, H);
|
|
2019
|
+
A(E, 5, "target", Eo, H);
|
|
2020
|
+
A(E, 5, "path", $o, H);
|
|
2021
|
+
A(E, 5, "query", So, H);
|
|
2022
|
+
A(E, 5, "hash", yo, H);
|
|
2023
|
+
A(E, 5, "hint", wo, H);
|
|
2024
|
+
A(E, 5, "preload", vo, H);
|
|
2025
|
+
A(E, 5, "route", mo, H);
|
|
2026
|
+
A(E, 5, "options", go, H);
|
|
2027
|
+
A(E, 5, "routeOptions", _o, H);
|
|
2028
|
+
A(E, 5, "prepare", fo, H);
|
|
2029
|
+
A(E, 5, "link", po, H);
|
|
2030
|
+
H = A(E, 0, "GemLinkElement", Co, H);
|
|
2031
|
+
C(E, 1, H);
|
|
2032
|
+
Oo = [Mn(O.store)];
|
|
2033
|
+
class se extends (cs = H, To = [V], xo = [On], ko = [$t()], cs) {
|
|
2026
2034
|
constructor() {
|
|
2027
|
-
super(...arguments), D(this, "pattern",
|
|
2028
|
-
const { path: t, query: n, hash: s } = O.getParams(), i = this.pattern &&
|
|
2035
|
+
super(...arguments), D(this, "pattern", C(Q, 8, this)), C(Q, 11, this), D(this, "active", C(Q, 12, this)), C(Q, 15, this), Dt(this, Qs, C(Q, 16, this, () => {
|
|
2036
|
+
const { path: t, query: n, hash: s } = O.getParams(), i = this.pattern && oo(this.pattern, t);
|
|
2029
2037
|
this.active = !!i || t + n + s === this.getLocationString();
|
|
2030
|
-
})),
|
|
2038
|
+
})), C(Q, 19, this);
|
|
2031
2039
|
}
|
|
2032
2040
|
}
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
se =
|
|
2039
|
-
|
|
2040
|
-
customElements.define("gem-link",
|
|
2041
|
+
Q = lo(cs);
|
|
2042
|
+
Qs = /* @__PURE__ */ new WeakMap();
|
|
2043
|
+
A(Q, 5, "pattern", To, se);
|
|
2044
|
+
A(Q, 5, "active", xo, se);
|
|
2045
|
+
A(Q, 21, "#updateState", ko, Qs);
|
|
2046
|
+
se = A(Q, 0, "GemActiveLinkElement", Oo, se);
|
|
2047
|
+
C(Q, 1, se);
|
|
2048
|
+
customElements.define("gem-link", H);
|
|
2041
2049
|
customElements.define("gem-active-link", se);
|
|
2042
2050
|
customElements.define("gem-route", Ue);
|
|
2043
|
-
customElements.define("gem-light-route",
|
|
2044
|
-
var Rc = Object.create,
|
|
2051
|
+
customElements.define("gem-light-route", N);
|
|
2052
|
+
var Rc = Object.create, Xs = Object.defineProperty, Hc = Object.getOwnPropertyDescriptor, Mo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), le = (e) => {
|
|
2045
2053
|
throw TypeError(e);
|
|
2046
|
-
},
|
|
2054
|
+
}, Lo = (e, t, n) => t in e ? Xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => Xs(e, "name", { value: t, configurable: !0 }), Wc = (e) => [, , , Rc((e == null ? void 0 : e[Mo("metadata")]) ?? null)], No = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Pe = (e) => e !== void 0 && typeof e != "function" ? le("Function expected") : e, zc = (e, t, n, s, i) => ({ kind: No[e], name: t, metadata: s, addInitializer: (o) => n._ ? le("Already initialized") : i.push(Pe(o || null)) }), Gc = (e, t) => Lo(t, Mo("metadata"), e[3]), tt = (e, t, n, s) => {
|
|
2047
2055
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2048
2056
|
return s;
|
|
2049
2057
|
}, he = (e, t, n, s, i, o) => {
|
|
2050
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2051
|
-
return
|
|
2058
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = No[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Hc(r < 4 ? i : { get [n]() {
|
|
2059
|
+
return ls(this, o);
|
|
2052
2060
|
}, set [n](u) {
|
|
2053
|
-
return
|
|
2061
|
+
return qi(this, o, u);
|
|
2054
2062
|
} }, n));
|
|
2055
|
-
r ? l && r < 4 &&
|
|
2063
|
+
r ? l && r < 4 && Fi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Fi(i, n);
|
|
2056
2064
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2057
|
-
h = zc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) =>
|
|
2058
|
-
return r ||
|
|
2059
|
-
}, ke = (e, t, n) =>
|
|
2060
|
-
let
|
|
2061
|
-
const
|
|
2062
|
-
clearTimeout(
|
|
2065
|
+
h = zc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Vc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? ls : Dc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => qi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Pe(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? le("Object expected") : (Pe(c = a.get) && (d.get = c), Pe(c = a.set) && (d.set = c), Pe(c = a.init) && y.unshift(c));
|
|
2066
|
+
return r || Gc(e, i), d && Xs(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2067
|
+
}, ke = (e, t, n) => Lo(e, typeof t != "symbol" ? t + "" : t, n), Zs = (e, t, n) => t.has(e) || le("Cannot " + n), Vc = (e, t) => Object(t) !== t ? le('Cannot use the "in" operator on this value') : e.has(t), ls = (e, t, n) => (Zs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Bn = (e, t, n) => t.has(e) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), qi = (e, t, n, s) => (Zs(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Dc = (e, t, n) => (Zs(e, t, "access private method"), n), Ao, Io, Ro, Ho, Wo, hs, zo, L, ti, us, ei;
|
|
2068
|
+
let Ui = 0;
|
|
2069
|
+
const Bi = (e) => {
|
|
2070
|
+
clearTimeout(Ui), Ui = window.setTimeout(() => document.title = e);
|
|
2063
2071
|
};
|
|
2064
2072
|
function Fc(e, t = "", n = "") {
|
|
2065
2073
|
const s = At.title || e;
|
|
2066
|
-
s && s !== At.defaultTitle ? (xe.title = s,
|
|
2074
|
+
s && s !== At.defaultTitle ? (xe.title = s, Bi(t + xe.title + n)) : (xe.title = At.defaultTitle, Bi(xe.title));
|
|
2067
2075
|
}
|
|
2068
|
-
|
|
2069
|
-
let bt = class Go extends (
|
|
2076
|
+
zo = [Ht()];
|
|
2077
|
+
let bt = class Go extends (hs = B, Wo = [V], Ho = [V], Ro = [Tn], Io = [$t((t) => [t.inert])], Ao = [qe()], hs) {
|
|
2070
2078
|
constructor() {
|
|
2071
|
-
super(...arguments), ke(this, "prefix", tt(L, 8, this)), tt(L, 11, this), ke(this, "suffix", tt(L, 12, this)), tt(L, 15, this), ke(this, "inert", tt(L, 16, this)), tt(L, 19, this),
|
|
2072
|
-
|
|
2079
|
+
super(...arguments), ke(this, "prefix", tt(L, 8, this)), tt(L, 11, this), ke(this, "suffix", tt(L, 12, this)), tt(L, 15, this), ke(this, "inert", tt(L, 16, this)), tt(L, 19, this), Bn(this, ti, tt(L, 20, this, () => !this.inert && ft(At, this.update))), tt(L, 23, this), Bn(this, us, new MutationObserver(() => this.update())), Bn(this, ei, tt(L, 24, this, () => {
|
|
2080
|
+
ls(this, us).observe(this, { characterData: !0, childList: !0, subtree: !0 });
|
|
2073
2081
|
})), tt(L, 27, this), ke(this, "render", () => {
|
|
2074
2082
|
var t;
|
|
2075
2083
|
return Fc((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), at`${Go.title}`;
|
|
@@ -2079,37 +2087,37 @@ let bt = class Go extends (ds = B, zo = [G], Wo = [G], Ho = [On], Ro = [$t((t) =
|
|
|
2079
2087
|
It(At, { title: t });
|
|
2080
2088
|
}
|
|
2081
2089
|
};
|
|
2082
|
-
L = Wc(
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
he(L, 5, "prefix",
|
|
2087
|
-
he(L, 5, "suffix",
|
|
2088
|
-
he(L, 5, "inert",
|
|
2089
|
-
he(L, 21, "#connectStore",
|
|
2090
|
-
he(L, 21, "#obTextContent",
|
|
2091
|
-
bt = he(L, 0, "GemTitleElement",
|
|
2090
|
+
L = Wc(hs);
|
|
2091
|
+
ti = /* @__PURE__ */ new WeakMap();
|
|
2092
|
+
us = /* @__PURE__ */ new WeakMap();
|
|
2093
|
+
ei = /* @__PURE__ */ new WeakMap();
|
|
2094
|
+
he(L, 5, "prefix", Wo, bt);
|
|
2095
|
+
he(L, 5, "suffix", Ho, bt);
|
|
2096
|
+
he(L, 5, "inert", Ro, bt);
|
|
2097
|
+
he(L, 21, "#connectStore", Io, ti);
|
|
2098
|
+
he(L, 21, "#obTextContent", Ao, ei);
|
|
2099
|
+
bt = he(L, 0, "GemTitleElement", zo, bt);
|
|
2092
2100
|
ke(bt, "title", document.title);
|
|
2093
2101
|
tt(L, 1, bt);
|
|
2094
2102
|
let xe = bt;
|
|
2095
2103
|
customElements.define("gem-title", xe);
|
|
2096
|
-
var qc = Object.create,
|
|
2104
|
+
var qc = Object.create, ni = Object.defineProperty, Uc = Object.getOwnPropertyDescriptor, Vo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ue = (e) => {
|
|
2097
2105
|
throw TypeError(e);
|
|
2098
|
-
},
|
|
2106
|
+
}, Do = (e, t, n) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => ni(e, "name", { value: t, configurable: !0 }), Bc = (e) => [, , , qc((e == null ? void 0 : e[Vo("metadata")]) ?? null)], Fo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Te = (e) => e !== void 0 && typeof e != "function" ? ue("Function expected") : e, Kc = (e, t, n, s, i) => ({ kind: Fo[e], name: t, metadata: s, addInitializer: (o) => n._ ? ue("Already initialized") : i.push(Te(o || null)) }), jc = (e, t) => Do(t, Vo("metadata"), e[3]), ct = (e, t, n, s) => {
|
|
2099
2107
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2100
2108
|
return s;
|
|
2101
2109
|
}, Ze = (e, t, n, s, i, o) => {
|
|
2102
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2103
|
-
return
|
|
2110
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Fo[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && Uc(r < 4 ? i : { get [n]() {
|
|
2111
|
+
return ds(this, o);
|
|
2104
2112
|
}, set [n](u) {
|
|
2105
|
-
return
|
|
2113
|
+
return ji(this, o, u);
|
|
2106
2114
|
} }, n));
|
|
2107
|
-
r ? l && r < 4 &&
|
|
2115
|
+
r ? l && r < 4 && Ki(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Ki(i, n);
|
|
2108
2116
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2109
|
-
h = Kc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Jc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ?
|
|
2110
|
-
return r || jc(e, i), d &&
|
|
2111
|
-
}, en = (e, t, n) =>
|
|
2112
|
-
const Xc =
|
|
2117
|
+
h = Kc(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Jc(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? ds : Qc)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => ji(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Te(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? ue("Object expected") : (Te(c = a.get) && (d.get = c), Te(c = a.set) && (d.set = c), Te(c = a.init) && y.unshift(c));
|
|
2118
|
+
return r || jc(e, i), d && ni(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2119
|
+
}, en = (e, t, n) => Do(e, typeof t != "symbol" ? t + "" : t, n), si = (e, t, n) => t.has(e) || ue("Cannot " + n), Jc = (e, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : e.has(t), ds = (e, t, n) => (si(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Yc = (e, t, n) => t.has(e) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), ji = (e, t, n, s) => (si(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), Qc = (e, t, n) => (si(e, t, "access private method"), n), qo, Uo, Bo, Ko, ps, jo, G, fs;
|
|
2120
|
+
const Xc = Pn(vr`
|
|
2113
2121
|
:host(:where(:not([hidden]))) {
|
|
2114
2122
|
position: relative;
|
|
2115
2123
|
display: inline-flex;
|
|
@@ -2119,57 +2127,57 @@ const Xc = kn(yr`
|
|
|
2119
2127
|
width: 100%;
|
|
2120
2128
|
height: 100%;
|
|
2121
2129
|
}
|
|
2122
|
-
`),
|
|
2123
|
-
|
|
2124
|
-
class Ct extends (
|
|
2130
|
+
`), Ji = /* @__PURE__ */ new Map();
|
|
2131
|
+
jo = [Ht(), Rs(Xc)];
|
|
2132
|
+
class Ct extends (ps = B, Ko = [V], Bo = [U], Uo = [U], qo = [On], ps) {
|
|
2125
2133
|
constructor() {
|
|
2126
|
-
super(...arguments), en(this, "selector", ct(
|
|
2134
|
+
super(...arguments), en(this, "selector", ct(G, 8, this)), ct(G, 11, this), en(this, "root", ct(G, 12, this)), ct(G, 15, this), en(this, "element", ct(G, 16, this)), ct(G, 19, this), en(this, "active", ct(G, 20, this)), ct(G, 23, this), Yc(this, fs, () => {
|
|
2127
2135
|
const t = this.element || (this.selector ? (this.root || document).querySelector(this.selector) : null);
|
|
2128
2136
|
if (typeof t == "string") {
|
|
2129
|
-
let n =
|
|
2130
|
-
return n || (n = document.createElement("template"), n.innerHTML = t,
|
|
2137
|
+
let n = Ji.get(t);
|
|
2138
|
+
return n || (n = document.createElement("template"), n.innerHTML = t, Ji.set(t, n)), n.content.cloneNode(!0);
|
|
2131
2139
|
} else return t instanceof HTMLTemplateElement ? t.content.cloneNode(!0) : t == null ? void 0 : t.cloneNode(!0);
|
|
2132
2140
|
});
|
|
2133
2141
|
}
|
|
2134
2142
|
render() {
|
|
2135
2143
|
return at`
|
|
2136
|
-
${
|
|
2144
|
+
${ds(this, fs).call(this)}
|
|
2137
2145
|
<slot></slot>
|
|
2138
2146
|
`;
|
|
2139
2147
|
}
|
|
2140
2148
|
}
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
Ze(
|
|
2144
|
-
Ze(
|
|
2145
|
-
Ze(
|
|
2146
|
-
Ze(
|
|
2147
|
-
Ct = Ze(
|
|
2148
|
-
ct(
|
|
2149
|
+
G = Bc(ps);
|
|
2150
|
+
fs = /* @__PURE__ */ new WeakMap();
|
|
2151
|
+
Ze(G, 5, "selector", Ko, Ct);
|
|
2152
|
+
Ze(G, 5, "root", Bo, Ct);
|
|
2153
|
+
Ze(G, 5, "element", Uo, Ct);
|
|
2154
|
+
Ze(G, 5, "active", qo, Ct);
|
|
2155
|
+
Ct = Ze(G, 0, "GemUseElement", jo, Ct);
|
|
2156
|
+
ct(G, 1, Ct);
|
|
2149
2157
|
customElements.define("gem-use", Ct);
|
|
2150
|
-
var Zc = Object.create,
|
|
2158
|
+
var Zc = Object.create, ii = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Jo = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), tn = (e) => {
|
|
2151
2159
|
throw TypeError(e);
|
|
2152
|
-
},
|
|
2160
|
+
}, Yo = (e, t, n) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yi = (e, t) => ii(e, "name", { value: t, configurable: !0 }), el = (e) => [, , , Zc((e == null ? void 0 : e[Jo("metadata")]) ?? null)], Qo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Oe = (e) => e !== void 0 && typeof e != "function" ? tn("Function expected") : e, nl = (e, t, n, s, i) => ({ kind: Qo[e], name: t, metadata: s, addInitializer: (o) => n._ ? tn("Already initialized") : i.push(Oe(o || null)) }), sl = (e, t) => Yo(t, Jo("metadata"), e[3]), Me = (e, t, n, s) => {
|
|
2153
2161
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2154
2162
|
return s;
|
|
2155
|
-
},
|
|
2156
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2157
|
-
return
|
|
2163
|
+
}, ri = (e, t, n, s, i, o) => {
|
|
2164
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = Qo[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && tl(r < 4 ? i : { get [n]() {
|
|
2165
|
+
return Xi(this, o);
|
|
2158
2166
|
}, set [n](u) {
|
|
2159
|
-
return
|
|
2167
|
+
return Zi(this, o, u);
|
|
2160
2168
|
} }, n));
|
|
2161
|
-
r ? l && r < 4 &&
|
|
2169
|
+
r ? l && r < 4 && Yi(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : Yi(i, n);
|
|
2162
2170
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2163
|
-
h = nl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => il(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ?
|
|
2164
|
-
return r || sl(e, i), d &&
|
|
2165
|
-
},
|
|
2166
|
-
|
|
2167
|
-
class ie extends (
|
|
2171
|
+
h = nl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => il(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? Xi : rl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Zi(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Oe(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? tn("Object expected") : (Oe(c = a.get) && (d.get = c), Oe(c = a.set) && (d.set = c), Oe(c = a.init) && y.unshift(c));
|
|
2172
|
+
return r || sl(e, i), d && ii(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2173
|
+
}, Qi = (e, t, n) => Yo(e, typeof t != "symbol" ? t + "" : t, n), oi = (e, t, n) => t.has(e) || tn("Cannot " + n), il = (e, t) => Object(t) !== t ? tn('Cannot use the "in" operator on this value') : e.has(t), Xi = (e, t, n) => (oi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Zi = (e, t, n, s) => (oi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), rl = (e, t, n) => (oi(e, t, "access private method"), n), Xo, Zo, _s, ta, pt;
|
|
2174
|
+
ta = [Ht()];
|
|
2175
|
+
class ie extends (_s = B, Zo = [V], Xo = [V], _s) {
|
|
2168
2176
|
constructor() {
|
|
2169
|
-
super(...arguments),
|
|
2177
|
+
super(...arguments), Qi(this, "content", Me(pt, 8, this)), Me(pt, 11, this), Qi(this, "contentcss", Me(pt, 12, this)), Me(pt, 15, this);
|
|
2170
2178
|
}
|
|
2171
2179
|
render() {
|
|
2172
|
-
this.shadowRoot.innerHTML =
|
|
2180
|
+
this.shadowRoot.innerHTML = Ps`
|
|
2173
2181
|
<style>
|
|
2174
2182
|
:host(:where(:not([hidden]))) {
|
|
2175
2183
|
display: contents;
|
|
@@ -2180,87 +2188,87 @@ class ie extends (ms = B, ta = [G], Zo = [G], ms) {
|
|
|
2180
2188
|
`;
|
|
2181
2189
|
}
|
|
2182
2190
|
}
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
ie =
|
|
2187
|
-
Me(
|
|
2191
|
+
pt = el(_s);
|
|
2192
|
+
ri(pt, 5, "content", Zo, ie);
|
|
2193
|
+
ri(pt, 5, "contentcss", Xo, ie);
|
|
2194
|
+
ie = ri(pt, 0, "GemUnsafeElement", ta, ie);
|
|
2195
|
+
Me(pt, 1, ie);
|
|
2188
2196
|
customElements.define("gem-unsafe", ie);
|
|
2189
|
-
var ol = Object.create,
|
|
2197
|
+
var ol = Object.create, ai = Object.defineProperty, al = Object.getOwnPropertyDescriptor, ea = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), de = (e) => {
|
|
2190
2198
|
throw TypeError(e);
|
|
2191
|
-
},
|
|
2199
|
+
}, na = (e, t, n) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, tr = (e, t) => ai(e, "name", { value: t, configurable: !0 }), cl = (e) => [, , , ol((e == null ? void 0 : e[ea("metadata")]) ?? null)], sa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Le = (e) => e !== void 0 && typeof e != "function" ? de("Function expected") : e, ll = (e, t, n, s, i) => ({ kind: sa[e], name: t, metadata: s, addInitializer: (o) => n._ ? de("Already initialized") : i.push(Le(o || null)) }), ia = (e, t) => na(t, ea("metadata"), e[3]), _t = (e, t, n, s) => {
|
|
2192
2200
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2193
2201
|
return s;
|
|
2194
|
-
},
|
|
2195
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2196
|
-
return
|
|
2202
|
+
}, Nn = (e, t, n, s, i, o) => {
|
|
2203
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = sa[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && al(r < 4 ? i : { get [n]() {
|
|
2204
|
+
return mt(this, o);
|
|
2197
2205
|
}, set [n](u) {
|
|
2198
|
-
return
|
|
2206
|
+
return gs(this, o, u);
|
|
2199
2207
|
} }, n));
|
|
2200
|
-
r ? l && r < 4 &&
|
|
2208
|
+
r ? l && r < 4 && tr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : tr(i, n);
|
|
2201
2209
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2202
|
-
h = ll(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => hl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ?
|
|
2203
|
-
return r ||
|
|
2204
|
-
},
|
|
2205
|
-
const dl = "gem-reflect-start",
|
|
2210
|
+
h = ll(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => hl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? mt : ul)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => gs(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Le(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? de("Object expected") : (Le(c = a.get) && (d.get = c), Le(c = a.set) && (d.set = c), Le(c = a.init) && y.unshift(c));
|
|
2211
|
+
return r || ia(e, i), d && ai(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2212
|
+
}, er = (e, t, n) => na(e, typeof t != "symbol" ? t + "" : t, n), ci = (e, t, n) => t.has(e) || de("Cannot " + n), hl = (e, t) => Object(t) !== t ? de('Cannot use the "in" operator on this value') : e.has(t), mt = (e, t, n) => (ci(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Wt = (e, t, n) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), gs = (e, t, n, s) => (ci(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), ul = (e, t, n) => (ci(e, t, "access private method"), n), ra, oa, aa, ca, ms, F, vs, la, li, cn, ws, Ne, hi;
|
|
2213
|
+
const dl = "gem-reflect-start", ha = "gem-reflect-end", nr = (e) => new Comment(e), pl = (e) => {
|
|
2206
2214
|
const t = [];
|
|
2207
2215
|
let n = e;
|
|
2208
|
-
for (; n && (t.push(n), n.nodeValue !==
|
|
2216
|
+
for (; n && (t.push(n), n.nodeValue !== ha); )
|
|
2209
2217
|
n = n.nextSibling;
|
|
2210
2218
|
return t;
|
|
2211
2219
|
};
|
|
2212
|
-
class
|
|
2220
|
+
class An extends (ms = B, ca = [V], aa = [U], oa = [Is()], ra = [$t((t) => [t.target])], ms) {
|
|
2213
2221
|
constructor() {
|
|
2214
|
-
super(...arguments), Wt(this,
|
|
2222
|
+
super(...arguments), Wt(this, vs), er(this, "method", _t(F, 8, this)), _t(F, 11, this), er(this, "target", _t(F, 12, this, document.head)), _t(F, 15, this), Wt(this, li, _t(F, 16, this, () => {
|
|
2215
2223
|
this.hidden = !0, this.dataset.gemReflect = "";
|
|
2216
|
-
})),
|
|
2224
|
+
})), _t(F, 19, this), Wt(this, cn, nr(dl)), Wt(this, ws, nr(ha)), Wt(this, Ne), Wt(this, hi, _t(F, 20, this, () => ((mt(this, Ne) || [mt(this, cn), ...this.childNodes, mt(this, ws)]).forEach((t, n, s) => {
|
|
2217
2225
|
const i = s[n - 1];
|
|
2218
|
-
i ? i.after(t) : this.target[
|
|
2226
|
+
i ? i.after(t) : this.target[mt(this, vs, la)](t);
|
|
2219
2227
|
}), () => {
|
|
2220
|
-
|
|
2221
|
-
}))),
|
|
2228
|
+
gs(this, Ne, pl(mt(this, cn))), mt(this, Ne).forEach((t) => t.remove());
|
|
2229
|
+
}))), _t(F, 23, this);
|
|
2222
2230
|
}
|
|
2223
2231
|
}
|
|
2224
|
-
F = cl(
|
|
2225
|
-
|
|
2226
|
-
|
|
2232
|
+
F = cl(ms);
|
|
2233
|
+
vs = /* @__PURE__ */ new WeakSet();
|
|
2234
|
+
la = function() {
|
|
2227
2235
|
return this.method || "append";
|
|
2228
2236
|
};
|
|
2229
|
-
|
|
2237
|
+
li = /* @__PURE__ */ new WeakMap();
|
|
2230
2238
|
cn = /* @__PURE__ */ new WeakMap();
|
|
2231
|
-
|
|
2239
|
+
ws = /* @__PURE__ */ new WeakMap();
|
|
2232
2240
|
Ne = /* @__PURE__ */ new WeakMap();
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
customElements.define("gem-reflect",
|
|
2240
|
-
var fl = Object.create,
|
|
2241
|
+
hi = /* @__PURE__ */ new WeakMap();
|
|
2242
|
+
Nn(F, 5, "method", ca, An);
|
|
2243
|
+
Nn(F, 5, "target", aa, An);
|
|
2244
|
+
Nn(F, 21, "#init", oa, li);
|
|
2245
|
+
Nn(F, 21, "#changeTarget", ra, hi);
|
|
2246
|
+
ia(F, An);
|
|
2247
|
+
customElements.define("gem-reflect", An);
|
|
2248
|
+
var fl = Object.create, ui = Object.defineProperty, _l = Object.getOwnPropertyDescriptor, ua = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), pe = (e) => {
|
|
2241
2249
|
throw TypeError(e);
|
|
2242
|
-
},
|
|
2250
|
+
}, da = (e, t, n) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sr = (e, t) => ui(e, "name", { value: t, configurable: !0 }), gl = (e) => [, , , fl((e == null ? void 0 : e[ua("metadata")]) ?? null)], pa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ae = (e) => e !== void 0 && typeof e != "function" ? pe("Function expected") : e, ml = (e, t, n, s, i) => ({ kind: pa[e], name: t, metadata: s, addInitializer: (o) => n._ ? pe("Already initialized") : i.push(Ae(o || null)) }), vl = (e, t) => da(t, ua("metadata"), e[3]), ge = (e, t, n, s) => {
|
|
2243
2251
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2244
2252
|
return s;
|
|
2245
|
-
},
|
|
2246
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2247
|
-
return
|
|
2253
|
+
}, Kn = (e, t, n, s, i, o) => {
|
|
2254
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = pa[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && _l(r < 4 ? i : { get [n]() {
|
|
2255
|
+
return ir(this, o);
|
|
2248
2256
|
}, set [n](u) {
|
|
2249
|
-
return
|
|
2257
|
+
return or(this, o, u);
|
|
2250
2258
|
} }, n));
|
|
2251
|
-
r ? l && r < 4 &&
|
|
2259
|
+
r ? l && r < 4 && sr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : sr(i, n);
|
|
2252
2260
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2253
|
-
h = ml(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => wl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ?
|
|
2254
|
-
return r || vl(e, i), d &&
|
|
2255
|
-
}, nn = (e, t, n) =>
|
|
2261
|
+
h = ml(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => wl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? ir : yl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => or(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Ae(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? pe("Object expected") : (Ae(c = a.get) && (d.get = c), Ae(c = a.set) && (d.set = c), Ae(c = a.init) && y.unshift(c));
|
|
2262
|
+
return r || vl(e, i), d && ui(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2263
|
+
}, nn = (e, t, n) => da(e, typeof t != "symbol" ? t + "" : t, n), di = (e, t, n) => t.has(e) || pe("Cannot " + n), wl = (e, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : e.has(t), ir = (e, t, n) => (di(e, t, "read from private field"), n ? n.call(e) : t.get(e)), rr = (e, t, n) => t.has(e) ? pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), or = (e, t, n, s) => (di(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), yl = (e, t, n) => (di(e, t, "access private method"), n);
|
|
2256
2264
|
const sn = Symbol("open mark");
|
|
2257
2265
|
function Ul(e) {
|
|
2258
2266
|
var t, n, s, i, o, c, a;
|
|
2259
2267
|
const f = Symbol();
|
|
2260
|
-
i = [Ht(),
|
|
2261
|
-
let h = class
|
|
2268
|
+
i = [Ht(), Ln({ role: "alertdialog", ariaModal: "true" })];
|
|
2269
|
+
let h = class fa extends (s = B, n = [qe()], t = [qe()], s) {
|
|
2262
2270
|
constructor() {
|
|
2263
|
-
super(...arguments), nn(this, "label", ""),
|
|
2271
|
+
super(...arguments), nn(this, "label", ""), rr(this, c, ge(o, 8, this, () => ft(O.store, this.update))), ge(o, 11, this), rr(this, a, ge(o, 12, this, () => ft(fa.store, this.update))), ge(o, 15, this);
|
|
2264
2272
|
}
|
|
2265
2273
|
/**@final */
|
|
2266
2274
|
static get isOpen() {
|
|
@@ -2306,62 +2314,62 @@ function Ul(e) {
|
|
|
2306
2314
|
return !0;
|
|
2307
2315
|
}
|
|
2308
2316
|
};
|
|
2309
|
-
return o = gl(s), c = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(),
|
|
2317
|
+
return o = gl(s), c = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), Kn(o, 21, "#connectHistory", n, c), Kn(o, 21, "#connectStore", t, a), h = Kn(o, 0, "ModalElement", i, h), nn(h, "inertStore", []), nn(h, "instance", null), nn(h, "store", bn({
|
|
2310
2318
|
[sn]: !1,
|
|
2311
2319
|
...e
|
|
2312
2320
|
})), ge(o, 1, h), h;
|
|
2313
2321
|
}
|
|
2314
|
-
var Sl = Object.create,
|
|
2322
|
+
var Sl = Object.create, pi = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, _a = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), fe = (e) => {
|
|
2315
2323
|
throw TypeError(e);
|
|
2316
|
-
},
|
|
2324
|
+
}, ga = (e, t, n) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ar = (e, t) => pi(e, "name", { value: t, configurable: !0 }), El = (e) => [, , , Sl((e == null ? void 0 : e[_a("metadata")]) ?? null)], ma = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ie = (e) => e !== void 0 && typeof e != "function" ? fe("Function expected") : e, bl = (e, t, n, s, i) => ({ kind: ma[e], name: t, metadata: s, addInitializer: (o) => n._ ? fe("Already initialized") : i.push(Ie(o || null)) }), Cl = (e, t) => ga(t, _a("metadata"), e[3]), Tt = (e, t, n, s) => {
|
|
2317
2325
|
for (var i = 0, o = e[t >> 1], c = o && o.length; i < c; i++) t & 1 ? o[i].call(n) : s = o[i].call(n, s);
|
|
2318
2326
|
return s;
|
|
2319
|
-
},
|
|
2320
|
-
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v =
|
|
2327
|
+
}, In = (e, t, n, s, i, o) => {
|
|
2328
|
+
var c, a, f, h, m, r = t & 7, _ = !!(t & 8), l = !!(t & 16), g = r > 3 ? e.length + 1 : r ? _ ? 1 : 2 : 0, v = ma[r + 5], y = r > 3 && (e[g - 1] = []), $ = e[g] || (e[g] = []), d = r && (!l && !_ && (i = i.prototype), r < 5 && (r > 3 || !l) && $l(r < 4 ? i : { get [n]() {
|
|
2321
2329
|
return et(this, o);
|
|
2322
2330
|
}, set [n](u) {
|
|
2323
|
-
return
|
|
2331
|
+
return Ge(this, o, u);
|
|
2324
2332
|
} }, n));
|
|
2325
|
-
r ? l && r < 4 &&
|
|
2333
|
+
r ? l && r < 4 && ar(o, (r > 2 ? "set " : r > 1 ? "get " : "") + n) : ar(i, n);
|
|
2326
2334
|
for (var S = s.length - 1; S >= 0; S--)
|
|
2327
|
-
h = bl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Pl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? et : kl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) =>
|
|
2328
|
-
return r || Cl(e, i), d &&
|
|
2329
|
-
}, me = (e, t, n) =>
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2332
|
-
class Be extends (
|
|
2335
|
+
h = bl(r, n, f = {}, e[3], $), r && (h.static = _, h.private = l, m = h.access = { has: l ? (u) => Pl(i, u) : (u) => n in u }, r ^ 3 && (m.get = l ? (u) => (r ^ 1 ? et : kl)(u, i, r ^ 4 ? o : d.get) : (u) => u[n]), r > 2 && (m.set = l ? (u, k) => Ge(u, i, k, r ^ 4 ? o : d.set) : (u, k) => u[n] = k)), a = (0, s[S])(r ? r < 4 ? l ? o : d[v] : r > 4 ? void 0 : { get: d.get, set: d.set } : i, h), f._ = 1, r ^ 4 || a === void 0 ? Ie(a) && (r > 4 ? y.unshift(a) : r ? l ? o = a : d[v] = a : i = a) : typeof a != "object" || a === null ? fe("Object expected") : (Ie(c = a.get) && (d.get = c), Ie(c = a.set) && (d.set = c), Ie(c = a.init) && y.unshift(c));
|
|
2336
|
+
return r || Cl(e, i), d && pi(i, n, d), l ? r ^ 4 ? o : d : i;
|
|
2337
|
+
}, me = (e, t, n) => ga(e, typeof t != "symbol" ? t + "" : t, n), fi = (e, t, n) => t.has(e) || fe("Cannot " + n), Pl = (e, t) => Object(t) !== t ? fe('Cannot use the "in" operator on this value') : e.has(t), et = (e, t, n) => (fi(e, t, "read from private field"), n ? n.call(e) : t.get(e)), zt = (e, t, n) => t.has(e) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ge = (e, t, n, s) => (fi(e, t, "write to private field"), s ? s.call(e, n) : t.set(e, n), n), kl = (e, t, n) => (fi(e, t, "access private method"), n), va, wa, ya, ys, Sa, X, Re, He, We, Ss, ln, _i;
|
|
2338
|
+
const jn = Symbol();
|
|
2339
|
+
Sa = [Mn(O.store), Ln({ role: "dialog", ariaModal: "true" })];
|
|
2340
|
+
class Be extends (ys = B, ya = [V], wa = [On], va = [Is()], ys) {
|
|
2333
2341
|
constructor() {
|
|
2334
|
-
super(...arguments), me(this, "label", Tt(
|
|
2342
|
+
super(...arguments), me(this, "label", Tt(X, 8, this)), Tt(X, 11, this), me(this, "opened", Tt(X, 12, this)), Tt(X, 15, this), zt(this, Re), zt(this, He), zt(this, We, []), zt(this, Ss, () => {
|
|
2335
2343
|
var t;
|
|
2336
2344
|
this.inert = !0, et(this, We).forEach((n) => n.inert = !1), et(this, Re) ? et(this, Re).before(this) : et(this, He) && ((t = et(this, He)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
|
|
2337
2345
|
}), zt(this, ln, () => {
|
|
2338
|
-
this.hidden = !1, this.inert = !1,
|
|
2339
|
-
}), zt(this,
|
|
2346
|
+
this.hidden = !1, this.inert = !1, Ge(this, Re, this.nextSibling), Ge(this, He, this.parentElement || this.getRootNode()), Ge(this, We, [...document.body.children].filter((t) => !t.inert)), et(this, We).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
|
|
2347
|
+
}), zt(this, _i, Tt(X, 16, this, () => this.inert = !0)), Tt(X, 19, this), me(this, "open", () => {
|
|
2340
2348
|
if (!this.opened)
|
|
2341
2349
|
return et(this, ln).call(this), O.push({
|
|
2342
2350
|
title: this.label,
|
|
2343
2351
|
open: et(this, ln),
|
|
2344
|
-
close: et(this,
|
|
2352
|
+
close: et(this, Ss),
|
|
2345
2353
|
shouldClose: this.shouldClose
|
|
2346
|
-
}),
|
|
2347
|
-
}), me(this, "close", () => (O.back(),
|
|
2354
|
+
}), jn;
|
|
2355
|
+
}), me(this, "close", () => (O.back(), jn)), me(this, "forceClose", () => (this.opened = !1, setTimeout(this.close, 100), jn));
|
|
2348
2356
|
}
|
|
2349
2357
|
shouldClose() {
|
|
2350
2358
|
return !0;
|
|
2351
2359
|
}
|
|
2352
2360
|
}
|
|
2353
|
-
|
|
2361
|
+
X = El(ys);
|
|
2354
2362
|
Re = /* @__PURE__ */ new WeakMap();
|
|
2355
2363
|
He = /* @__PURE__ */ new WeakMap();
|
|
2356
2364
|
We = /* @__PURE__ */ new WeakMap();
|
|
2357
|
-
|
|
2365
|
+
Ss = /* @__PURE__ */ new WeakMap();
|
|
2358
2366
|
ln = /* @__PURE__ */ new WeakMap();
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
Be =
|
|
2364
|
-
Tt(
|
|
2367
|
+
_i = /* @__PURE__ */ new WeakMap();
|
|
2368
|
+
In(X, 5, "label", ya, Be);
|
|
2369
|
+
In(X, 5, "opened", wa, Be);
|
|
2370
|
+
In(X, 21, "#init", va, _i);
|
|
2371
|
+
Be = In(X, 0, "GemDialogBaseElement", Sa, Be);
|
|
2372
|
+
Tt(X, 1, Be);
|
|
2365
2373
|
class xl {
|
|
2366
2374
|
constructor(t) {
|
|
2367
2375
|
T(this, "_type");
|
|
@@ -2388,8 +2396,8 @@ function Nl(e, ...t) {
|
|
|
2388
2396
|
return at(n, ...s);
|
|
2389
2397
|
}
|
|
2390
2398
|
const ve = /* @__PURE__ */ new Set();
|
|
2391
|
-
var M, hn,
|
|
2392
|
-
const
|
|
2399
|
+
var M, hn, $a, Ea, ze, un;
|
|
2400
|
+
const gi = class gi {
|
|
2393
2401
|
constructor(t) {
|
|
2394
2402
|
b(this, M);
|
|
2395
2403
|
T(this, "resources");
|
|
@@ -2406,7 +2414,7 @@ const vi = class vi {
|
|
|
2406
2414
|
if (!t.resources[t.fallbackLanguage])
|
|
2407
2415
|
throw new yt("i18n: fallbackLanguage invalid");
|
|
2408
2416
|
Object.assign(this, t);
|
|
2409
|
-
let n = p(this, M,
|
|
2417
|
+
let n = p(this, M, $a) || this.currentLanguage || p(this, M, Ea);
|
|
2410
2418
|
const s = document.querySelector(`[type*=${this.cachePrefix}]`);
|
|
2411
2419
|
if (s)
|
|
2412
2420
|
try {
|
|
@@ -2473,7 +2481,7 @@ const vi = class vi {
|
|
|
2473
2481
|
p(this, M, ze) && ve.forEach((t) => t.setCache()), localStorage.setItem(p(this, M, hn), this.currentLanguage);
|
|
2474
2482
|
}
|
|
2475
2483
|
createSubModule(t, n) {
|
|
2476
|
-
const s = new
|
|
2484
|
+
const s = new gi({
|
|
2477
2485
|
resources: n,
|
|
2478
2486
|
cachePrefix: `${this.cachePrefix}-${t}`,
|
|
2479
2487
|
currentLanguage: this.currentLanguage,
|
|
@@ -2500,7 +2508,7 @@ const vi = class vi {
|
|
|
2500
2508
|
};
|
|
2501
2509
|
M = new WeakSet(), hn = function() {
|
|
2502
2510
|
return `${this.cachePrefix}:current`;
|
|
2503
|
-
},
|
|
2511
|
+
}, $a = function() {
|
|
2504
2512
|
const { hostname: t, pathname: n, search: s } = location, i = t.split(".");
|
|
2505
2513
|
switch (this.urlParamsType) {
|
|
2506
2514
|
case "ccTLD":
|
|
@@ -2513,7 +2521,7 @@ M = new WeakSet(), hn = function() {
|
|
|
2513
2521
|
const o = this.urlParamsName && new URLSearchParams(s).get(this.urlParamsName) || "";
|
|
2514
2522
|
return o in this.resources ? o : "";
|
|
2515
2523
|
}
|
|
2516
|
-
},
|
|
2524
|
+
}, Ea = function() {
|
|
2517
2525
|
return this.cache && localStorage.getItem(p(this, M, hn)) || "";
|
|
2518
2526
|
}, ze = function() {
|
|
2519
2527
|
return !ve.has(this);
|
|
@@ -2521,7 +2529,7 @@ M = new WeakSet(), hn = function() {
|
|
|
2521
2529
|
var n;
|
|
2522
2530
|
p(this, M, ze) && (document.documentElement.lang = t), this.currentLanguage = t, (n = this.onChange) == null || n.call(this, t);
|
|
2523
2531
|
};
|
|
2524
|
-
let
|
|
2532
|
+
let cr = gi;
|
|
2525
2533
|
const K = (e) => window.matchMedia(e).matches, Bl = {
|
|
2526
2534
|
PRINT: "print",
|
|
2527
2535
|
get isPrint() {
|
|
@@ -2656,15 +2664,15 @@ function Il(e = {}) {
|
|
|
2656
2664
|
}
|
|
2657
2665
|
};
|
|
2658
2666
|
}
|
|
2659
|
-
const { request: Kl, del: jl, get: Jl, post: Yl, put: Ql } = Il(),
|
|
2667
|
+
const { request: Kl, del: jl, get: Jl, post: Yl, put: Ql } = Il(), ba = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap();
|
|
2660
2668
|
function Xl(e) {
|
|
2661
|
-
return
|
|
2669
|
+
return ba.get(e);
|
|
2662
2670
|
}
|
|
2663
|
-
function
|
|
2664
|
-
return
|
|
2671
|
+
function Pa(e) {
|
|
2672
|
+
return Ca.get(e);
|
|
2665
2673
|
}
|
|
2666
2674
|
function fn(e, t = {}) {
|
|
2667
|
-
const n = En(), s =
|
|
2675
|
+
const n = En(), s = Pn({})[Rt], [i, o] = Xe(e), c = new Proxy(
|
|
2668
2676
|
{ [Rt]: s },
|
|
2669
2677
|
{
|
|
2670
2678
|
get(f, h) {
|
|
@@ -2676,14 +2684,14 @@ function fn(e, t = {}) {
|
|
|
2676
2684
|
}
|
|
2677
2685
|
}
|
|
2678
2686
|
);
|
|
2679
|
-
|
|
2687
|
+
Ca.set(c, t), ba.set(c, i);
|
|
2680
2688
|
const a = () => {
|
|
2681
2689
|
let f = "";
|
|
2682
2690
|
Object.keys(i).forEach((h) => {
|
|
2683
2691
|
t[h] || (t[h] = `--${oe(h)}-${n}`, c[h] = `var(${t[h]})`), f += `${t[h]}:${i[h]};`;
|
|
2684
2692
|
}), s.setContent(`:scope,:host{${f}}`);
|
|
2685
2693
|
};
|
|
2686
|
-
return a(),
|
|
2694
|
+
return a(), ft(i, () => {
|
|
2687
2695
|
a(), s.updateStyle();
|
|
2688
2696
|
}), [c, o];
|
|
2689
2697
|
}
|
|
@@ -2695,10 +2703,10 @@ function Zl(e) {
|
|
|
2695
2703
|
return document.adoptedStyleSheets.push(t[0][Rt].getStyle()), t;
|
|
2696
2704
|
}
|
|
2697
2705
|
function th(e, t) {
|
|
2698
|
-
return fn(t,
|
|
2706
|
+
return fn(t, Pa(e));
|
|
2699
2707
|
}
|
|
2700
2708
|
function eh(e) {
|
|
2701
|
-
const [t] = fn(e), n =
|
|
2709
|
+
const [t] = fn(e), n = Pa(t);
|
|
2702
2710
|
return [t, (i) => (o, { addInitializer: c, access: a }) => {
|
|
2703
2711
|
c(function() {
|
|
2704
2712
|
const [f, h] = fn({ ...e }, n);
|
|
@@ -2707,104 +2715,104 @@ function eh(e) {
|
|
|
2707
2715
|
}];
|
|
2708
2716
|
}
|
|
2709
2717
|
export {
|
|
2710
|
-
Pn as BoundaryCSSState,
|
|
2711
2718
|
se as GemActiveLinkElement,
|
|
2712
2719
|
Be as GemDialogBaseElement,
|
|
2713
2720
|
B as GemElement,
|
|
2714
2721
|
yt as GemError,
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2722
|
+
N as GemLightRouteElement,
|
|
2723
|
+
H as GemLinkElement,
|
|
2724
|
+
An as GemReflectElement,
|
|
2718
2725
|
Ue as GemRouteElement,
|
|
2719
2726
|
xe as GemTitleElement,
|
|
2720
2727
|
ie as GemUnsafeElement,
|
|
2721
2728
|
Ct as GemUseElement,
|
|
2722
|
-
|
|
2723
|
-
|
|
2729
|
+
cr as I18n,
|
|
2730
|
+
Va as LinkedList,
|
|
2724
2731
|
xl as Logger,
|
|
2725
|
-
|
|
2732
|
+
Da as PropProxyMap,
|
|
2726
2733
|
De as QueryString,
|
|
2727
|
-
|
|
2728
|
-
|
|
2734
|
+
Os as RenderErrorEvent,
|
|
2735
|
+
dr as SVGTemplateResult,
|
|
2729
2736
|
Rt as SheetToken,
|
|
2730
2737
|
ne as StoreListenerMap,
|
|
2731
2738
|
$n as TemplateResult,
|
|
2732
2739
|
Cn as UpdateToken,
|
|
2733
|
-
|
|
2734
|
-
|
|
2740
|
+
gr as absoluteLocation,
|
|
2741
|
+
mr as addListener,
|
|
2735
2742
|
Ot as addMicrotask,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2743
|
+
Rs as adoptedStyle,
|
|
2744
|
+
Ln as aria,
|
|
2745
|
+
dc as async,
|
|
2746
|
+
V as attribute,
|
|
2747
|
+
wc as basePathStore,
|
|
2748
|
+
Tn as boolattribute,
|
|
2742
2749
|
oe as camelToKebabCase,
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2750
|
+
qa as classMap,
|
|
2751
|
+
ks as cleanObject,
|
|
2752
|
+
ft as connect,
|
|
2753
|
+
Mn as connectStore,
|
|
2754
|
+
Pn as createCSSSheet,
|
|
2748
2755
|
xc as createHistoryParams,
|
|
2749
2756
|
Ul as createModalClass,
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2757
|
+
Bs as createPath,
|
|
2758
|
+
Sr as createRef,
|
|
2759
|
+
Ms as createState,
|
|
2753
2760
|
bn as createStore,
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2761
|
+
Ls as createTemplate,
|
|
2762
|
+
vr as css,
|
|
2763
|
+
pc as customElement,
|
|
2757
2764
|
jl as del,
|
|
2758
2765
|
Sn as directive,
|
|
2759
|
-
|
|
2766
|
+
Ua as disconnect,
|
|
2760
2767
|
$t as effect,
|
|
2761
2768
|
ye as emitter,
|
|
2762
2769
|
Dl as exportPartsMap,
|
|
2763
|
-
|
|
2770
|
+
cc as fallback,
|
|
2764
2771
|
Jl as get,
|
|
2765
|
-
|
|
2772
|
+
Pa as getThemeProps,
|
|
2766
2773
|
Xl as getThemeStore,
|
|
2767
|
-
|
|
2774
|
+
uc as globalemitter,
|
|
2768
2775
|
ql as guard,
|
|
2769
2776
|
O as history,
|
|
2770
2777
|
at as html,
|
|
2771
|
-
|
|
2778
|
+
yc as ifDefined,
|
|
2772
2779
|
Il as initRequest,
|
|
2773
|
-
|
|
2780
|
+
Fa as isArrayChange,
|
|
2774
2781
|
zl as kebabToCamelCase,
|
|
2782
|
+
Mr as light,
|
|
2775
2783
|
Tl as logger,
|
|
2776
|
-
|
|
2784
|
+
oo as matchPath,
|
|
2777
2785
|
Bl as mediaQuery,
|
|
2778
|
-
|
|
2786
|
+
Pr as memo,
|
|
2779
2787
|
qe as mounted,
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2788
|
+
oc as numattribute,
|
|
2789
|
+
xs as objectMapToString,
|
|
2790
|
+
Tr as part,
|
|
2791
|
+
Vl as partMap,
|
|
2784
2792
|
Yl as post,
|
|
2785
2793
|
U as property,
|
|
2786
2794
|
Ql as put,
|
|
2787
2795
|
En as randomStr,
|
|
2788
|
-
|
|
2789
|
-
|
|
2796
|
+
Ps as raw,
|
|
2797
|
+
Cs as render,
|
|
2790
2798
|
Fl as repeat,
|
|
2791
2799
|
Kl as request,
|
|
2792
2800
|
Ht as shadow,
|
|
2793
|
-
|
|
2801
|
+
hc as slot,
|
|
2794
2802
|
Nl as splice,
|
|
2795
|
-
|
|
2796
|
-
|
|
2803
|
+
On as state,
|
|
2804
|
+
Gl as styleMap,
|
|
2797
2805
|
Wl as styled,
|
|
2798
2806
|
Ga as svg,
|
|
2799
|
-
|
|
2807
|
+
kr as template,
|
|
2800
2808
|
At as titleStore,
|
|
2801
|
-
|
|
2809
|
+
ac as unmounted,
|
|
2802
2810
|
It as updateStore,
|
|
2803
2811
|
eh as useDecoratorTheme,
|
|
2804
2812
|
th as useOverrideTheme,
|
|
2805
2813
|
Rl as useScopedTheme,
|
|
2806
2814
|
Xe as useStore,
|
|
2807
2815
|
Zl as useTheme,
|
|
2808
|
-
|
|
2809
|
-
|
|
2816
|
+
ec as version,
|
|
2817
|
+
Is as willMount
|
|
2810
2818
|
};
|