@mantou/gem 2.1.0 → 2.1.1

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