@mantou/gem 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/gem.es.js +1154 -1154
  2. package/dist/gem.umd.js +12 -15
  3. package/elements/base/gesture.d.ts +1 -0
  4. package/elements/base/gesture.d.ts.map +1 -1
  5. package/elements/base/gesture.js +3 -2
  6. package/elements/base/gesture.js.map +1 -1
  7. package/elements/base/link.d.ts +1 -1
  8. package/elements/base/link.d.ts.map +1 -1
  9. package/elements/base/link.js +13 -9
  10. package/elements/base/link.js.map +1 -1
  11. package/elements/base/modal-factory.d.ts +73 -48
  12. package/elements/base/modal-factory.d.ts.map +1 -1
  13. package/elements/base/modal-factory.js +12 -11
  14. package/elements/base/modal-factory.js.map +1 -1
  15. package/elements/base/route.d.ts +1 -1
  16. package/elements/base/route.d.ts.map +1 -1
  17. package/elements/base/route.js +11 -15
  18. package/elements/base/route.js.map +1 -1
  19. package/elements/base/title.d.ts.map +1 -1
  20. package/elements/base/title.js +2 -4
  21. package/elements/base/title.js.map +1 -1
  22. package/elements/base/unsafe.d.ts +3 -2
  23. package/elements/base/unsafe.d.ts.map +1 -1
  24. package/elements/base/unsafe.js +45 -24
  25. package/elements/base/unsafe.js.map +1 -1
  26. package/helper/i18n.d.ts.map +1 -1
  27. package/helper/logger.d.ts.map +1 -1
  28. package/helper/react-utils.d.ts.map +1 -1
  29. package/helper/react-utils.js +2 -6
  30. package/helper/react-utils.js.map +1 -1
  31. package/helper/request.d.ts +4 -4
  32. package/helper/request.d.ts.map +1 -1
  33. package/helper/request.js +14 -14
  34. package/helper/request.js.map +1 -1
  35. package/helper/ssr-shim.d.ts.map +1 -1
  36. package/helper/ssr-shim.js +0 -1
  37. package/helper/ssr-shim.js.map +1 -1
  38. package/helper/theme.d.ts +15 -3
  39. package/helper/theme.d.ts.map +1 -1
  40. package/helper/theme.js +22 -7
  41. package/helper/theme.js.map +1 -1
  42. package/lib/decorators.d.ts +50 -50
  43. package/lib/decorators.d.ts.map +1 -1
  44. package/lib/decorators.js +52 -51
  45. package/lib/decorators.js.map +1 -1
  46. package/lib/directive.d.ts.map +1 -1
  47. package/lib/element.d.ts.map +1 -1
  48. package/lib/element.js.map +1 -1
  49. package/lib/history.d.ts +1 -1
  50. package/lib/history.d.ts.map +1 -1
  51. package/lib/history.js +3 -3
  52. package/lib/history.js.map +1 -1
  53. package/lib/lit-html.d.ts +17 -9
  54. package/lib/lit-html.d.ts.map +1 -1
  55. package/lib/lit-html.js +6 -9
  56. package/lib/lit-html.js.map +1 -1
  57. package/lib/reactive.d.ts +18 -5
  58. package/lib/reactive.d.ts.map +1 -1
  59. package/lib/reactive.js +29 -22
  60. package/lib/reactive.js.map +1 -1
  61. package/lib/repeat.d.ts.map +1 -1
  62. package/lib/store.d.ts +2 -2
  63. package/lib/store.d.ts.map +1 -1
  64. package/lib/store.js +1 -0
  65. package/lib/store.js.map +1 -1
  66. package/lib/utils.d.ts +4 -1
  67. package/lib/utils.d.ts.map +1 -1
  68. package/lib/utils.js +11 -9
  69. package/lib/utils.js.map +1 -1
  70. package/lib/version.d.ts +1 -1
  71. package/lib/version.js +1 -1
  72. package/package.json +2 -2
  73. package/src/elements/base/gesture.ts +4 -2
  74. package/src/elements/base/link.ts +3 -3
  75. package/src/elements/base/modal-factory.ts +12 -11
  76. package/src/elements/base/route.ts +9 -15
  77. package/src/elements/base/title.ts +2 -4
  78. package/src/elements/base/unsafe.ts +33 -14
  79. package/src/helper/react-utils.ts +4 -12
  80. package/src/helper/request.ts +17 -17
  81. package/src/helper/ssr-shim.ts +0 -1
  82. package/src/helper/theme.ts +25 -10
  83. package/src/lib/decorators.ts +53 -56
  84. package/src/lib/element.ts +0 -1
  85. package/src/lib/history.ts +3 -4
  86. package/src/lib/lit-html.ts +13 -6
  87. package/src/lib/reactive.ts +66 -28
  88. package/src/lib/store.ts +3 -2
  89. package/src/lib/utils.ts +15 -8
  90. package/src/lib/version.ts +1 -1
  91. package/src/test/gem-element/advance.test.ts +1 -1
  92. package/src/test/gem-element/basic.test.ts +1 -2
  93. package/src/test/utils.test.ts +1 -1
package/dist/gem.es.js CHANGED
@@ -1,46 +1,48 @@
1
- var Fa = Object.defineProperty;
2
- var xi = (s) => {
1
+ var Za = Object.defineProperty;
2
+ var Ri = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
- var qa = (s, t, e) => t in s ? Fa(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
6
- var v = (s, t, e) => qa(s, typeof t != "symbol" ? t + "" : t, e), js = (s, t, e) => t.has(s) || xi("Cannot " + e);
7
- var _ = (s, t, e) => (js(s, t, "read from private field"), e ? e.call(s) : t.get(s)), E = (s, t, e) => t.has(s) ? xi("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), M = (s, t, e, n) => (js(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Js = (s, t, e) => (js(s, t, "access private method"), e);
8
- const { assign: Ba, fromEntries: Ka, entries: ja, keys: Ja } = Object, Qs = /* @__PURE__ */ new Set();
9
- function gt(s, t) {
10
- if (Qs.has(s)) return;
11
- const e = () => {
12
- Qs.delete(s), s();
13
- };
14
- t ? process.nextTick(e) : Promise.resolve().then(e), Qs.add(s);
5
+ var Xa = (s, t, e) => t in s ? Za(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
6
+ var v = (s, t, e) => Xa(s, typeof t != "symbol" ? t + "" : t, e), Bs = (s, t, e) => t.has(s) || Ri("Cannot " + e);
7
+ var u = (s, t, e) => (Bs(s, t, "read from private field"), e ? e.call(s) : t.get(s)), E = (s, t, e) => t.has(s) ? Ri("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), M = (s, t, e, n) => (Bs(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Ks = (s, t, e) => (Bs(s, t, "access private method"), e);
8
+ const { assign: tc, fromEntries: ec, entries: sc, keys: nc } = Object;
9
+ function ic(s) {
10
+ Promise.resolve().then(s);
11
+ }
12
+ const js = /* @__PURE__ */ new Set();
13
+ function St(s, t = ic) {
14
+ js.has(s) || (t(() => {
15
+ js.delete(s), s();
16
+ }), js.add(s));
15
17
  }
16
18
  function xs(s, t) {
17
19
  const e = t;
18
- return delete e.name, delete e.length, Ba(e, s), e;
20
+ return delete e.name, delete e.length, tc(e, s), e;
19
21
  }
20
- function kr(s = "", t = "") {
22
+ function xr(s = "", t = "") {
21
23
  const { pathname: e, search: n, hash: i } = new URL(t, location.origin + s);
22
24
  return e + n + decodeURIComponent(i);
23
25
  }
24
- function Mr(s, t, e, n) {
26
+ function Lr(s, t, e, n) {
25
27
  return s.addEventListener(t, e, n), () => s.removeEventListener(t, e, n);
26
28
  }
27
- var $t, lt, St, Ye, rn;
28
- class Qa extends EventTarget {
29
+ var dt, at, ut, Je, nn;
30
+ class rc extends EventTarget {
29
31
  constructor() {
30
32
  super(...arguments);
31
- E(this, Ye);
32
- E(this, $t, /* @__PURE__ */ new Map());
33
- E(this, lt);
34
- E(this, St);
33
+ E(this, Je);
34
+ E(this, dt, /* @__PURE__ */ new Map());
35
+ E(this, at);
36
+ E(this, ut);
35
37
  }
36
38
  get size() {
37
- return _(this, $t).size;
39
+ return u(this, dt).size;
38
40
  }
39
41
  get first() {
40
- return _(this, lt);
42
+ return u(this, at);
41
43
  }
42
44
  get last() {
43
- return _(this, St);
45
+ return u(this, ut);
44
46
  }
45
47
  isSuperLinkOf(e) {
46
48
  let n = e.first;
@@ -53,41 +55,44 @@ class Qa extends EventTarget {
53
55
  return !1;
54
56
  }
55
57
  find(e) {
56
- return _(this, $t).get(e);
58
+ return u(this, dt).get(e);
57
59
  }
58
60
  /**
59
61
  * 添加到尾部,已存在时会删除老的项目
60
62
  * 如果是添加第一个,start 事件会在添加前触发,避免处理事件重复的逻辑
61
63
  */
62
64
  add(e) {
63
- _(this, St) || this.dispatchEvent(new CustomEvent("start"));
64
- const n = Js(this, Ye, rn).call(this, e) || { value: e };
65
- n.prev = _(this, St), n.prev && (n.prev.next = n), n.next = void 0, M(this, St, n), _(this, lt) || M(this, lt, n), _(this, $t).set(e, n);
65
+ u(this, ut) || this.dispatchEvent(new CustomEvent("start"));
66
+ const n = Ks(this, Je, nn).call(this, e) || { value: e };
67
+ n.prev = u(this, ut), n.prev && (n.prev.next = n), n.next = void 0, M(this, ut, n), u(this, at) || M(this, at, n), u(this, dt).set(e, n);
66
68
  }
67
69
  /** 删除这个元素后没有其他元素时立即出发 end 事件 */
68
70
  delete(e) {
69
- const n = Js(this, Ye, rn).call(this, e);
70
- return _(this, lt) || this.dispatchEvent(new CustomEvent("end")), n;
71
+ const n = Ks(this, Je, nn).call(this, e);
72
+ return u(this, at) || this.dispatchEvent(new CustomEvent("end")), n;
73
+ }
74
+ clear() {
75
+ u(this, dt).clear(), M(this, at, M(this, ut, void 0));
71
76
  }
72
77
  /** 获取头部元素,会从链表删除 */
73
78
  get() {
74
- const e = _(this, lt);
79
+ const e = u(this, at);
75
80
  if (e)
76
81
  return this.delete(e.value), e.value;
77
82
  }
78
83
  }
79
- $t = new WeakMap(), lt = new WeakMap(), St = new WeakMap(), Ye = new WeakSet(), rn = function(e) {
80
- const n = _(this, $t).get(e);
81
- return n && (n.prev ? n.prev.next = n.next : M(this, lt, n.next), n.next ? n.next.prev = n.prev : M(this, St, n.prev), _(this, $t).delete(e)), n;
84
+ dt = new WeakMap(), at = new WeakMap(), ut = new WeakMap(), Je = new WeakSet(), nn = function(e) {
85
+ const n = u(this, dt).get(e);
86
+ return n && (n.prev ? n.prev.next = n.next : M(this, at, n.next), n.next ? n.next.prev = n.prev : M(this, ut, n.prev), u(this, dt).delete(e)), n;
82
87
  };
83
- class Ya extends WeakMap {
88
+ class oc extends WeakMap {
84
89
  get(t) {
85
90
  let e = super.get(t);
86
91
  return e || (e = {}, this.set(t, e)), e;
87
92
  }
88
93
  }
89
94
  var Jt, Ts;
90
- class Be extends URLSearchParams {
95
+ class qe extends URLSearchParams {
91
96
  constructor() {
92
97
  super(...arguments);
93
98
  E(this, Jt, (e) => typeof e == "string" ? e : JSON.stringify(e));
@@ -103,15 +108,15 @@ class Be extends URLSearchParams {
103
108
  // support `{ key: ObjectValue }`
104
109
  concat(e) {
105
110
  let n;
106
- typeof e == "string" ? n = Ka(new URLSearchParams(e).entries()) : n = e, ja(n).forEach(([i, o]) => {
107
- this.append(i, _(this, Jt).call(this, o));
111
+ typeof e == "string" ? n = ec(new URLSearchParams(e).entries()) : n = e, sc(n).forEach(([i, r]) => {
112
+ this.append(i, u(this, Jt).call(this, r));
108
113
  });
109
114
  }
110
115
  setAny(e, n) {
111
116
  if (Array.isArray(n))
112
- this.delete(e), n.forEach((i) => this.append(e, _(this, Jt).call(this, i)));
117
+ this.delete(e), n.forEach((i) => this.append(e, u(this, Jt).call(this, i)));
113
118
  else {
114
- const i = _(this, Jt).call(this, n);
119
+ const i = u(this, Jt).call(this, n);
115
120
  i ? this.set(e, i) : this.delete(e);
116
121
  }
117
122
  }
@@ -119,7 +124,7 @@ class Be extends URLSearchParams {
119
124
  return this.getAnyAll(e)[0];
120
125
  }
121
126
  getAnyAll(e) {
122
- return this.getAll(e).filter((n) => n !== "").map((n) => _(this, Ts).call(this, n));
127
+ return this.getAll(e).filter((n) => n !== "").map((n) => u(this, Ts).call(this, n));
123
128
  }
124
129
  toString() {
125
130
  const e = super.toString();
@@ -130,209 +135,214 @@ class Be extends URLSearchParams {
130
135
  }
131
136
  }
132
137
  Jt = new WeakMap(), Ts = new WeakMap();
133
- function xn(s, ...t) {
138
+ function Nn(s, ...t) {
134
139
  return s.reduce((e, n, i) => e + (t[i - 1] ?? "") + n);
135
140
  }
136
- const Sl = xn;
137
- function An(s = 5) {
141
+ const xl = Nn;
142
+ function Rn(s = 5) {
138
143
  const t = Math.random().toString(36).slice(2, 2 + s);
139
- return t.length < s ? t + An(s - t.length) : t;
144
+ return t.length < s ? t + Rn(s - t.length) : t;
140
145
  }
141
146
  function he(s) {
142
147
  return s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
143
148
  }
144
- function yl(s) {
149
+ function Ll(s) {
145
150
  return s.replace(/-(.)/g, (t, e) => e.toUpperCase());
146
151
  }
147
- function Ln(s) {
148
- return Ja(s).forEach((t) => {
152
+ function In(s) {
153
+ return nc(s).forEach((t) => {
149
154
  delete s[t];
150
155
  }), s;
151
156
  }
152
- class yt extends Error {
157
+ class wt extends Error {
153
158
  constructor(t) {
154
159
  super(t), this.message = `gem: ${this.message}`;
155
160
  }
156
161
  }
157
- function Za(s, t) {
162
+ function ac(s, t) {
158
163
  const e = s.length;
159
164
  if (t.length !== e) return !0;
160
165
  for (let n = 0; n < e; n++)
161
166
  if (s[n] !== t[n]) return !0;
162
167
  return !1;
163
168
  }
164
- function Nn(s, t, e) {
169
+ function Hn(s, t, e) {
165
170
  let n = t;
166
171
  for (const i in s) {
167
- const o = e(i, s[i]);
168
- n += o ? o + t : "";
172
+ const r = e(i, s[i]);
173
+ n += r ? r + t : "";
169
174
  }
170
175
  return n;
171
176
  }
172
- function wl(s) {
173
- return Nn(
177
+ function Al(s) {
178
+ return Hn(
174
179
  s,
175
180
  ";",
176
181
  (t, e) => e || e === 0 ? `${he(t)}:${e}` : ""
177
182
  );
178
183
  }
179
- function Xa(s) {
180
- return Nn(s, " ", (t, e) => e ? t : "");
184
+ function cc(s) {
185
+ return Hn(s, " ", (t, e) => e ? t : "");
181
186
  }
182
- const El = Xa;
183
- function Cl(s) {
184
- return Nn(
187
+ const Nl = cc;
188
+ function Rl(s) {
189
+ return Hn(
185
190
  s,
186
191
  ",",
187
192
  (t, e) => e === !0 || t === e ? t : e ? `${t}:${e}` : ""
188
193
  );
189
194
  }
190
- const $s = /* @__PURE__ */ new WeakMap();
195
+ const vs = /* @__PURE__ */ new WeakMap();
191
196
  function zt(s) {
192
197
  const t = xs(s, (e) => {
193
198
  var n;
194
- Object.assign(t, e), (n = $s.get(t)) == null || n.forEach((i) => gt(i));
199
+ Object.assign(t, e), (n = vs.get(t)) == null || n.forEach((i) => St(i));
195
200
  });
196
- return $s.set(t, /* @__PURE__ */ new Set()), t;
201
+ return vs.set(t, /* @__PURE__ */ new Set()), t;
197
202
  }
198
- function _t(s, t) {
199
- const e = $s.get(s);
203
+ function mt(s, t) {
204
+ const e = vs.get(s);
200
205
  return e == null || e.add(t), () => e == null ? void 0 : e.delete(t);
201
206
  }
202
- const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
207
+ const hc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
203
208
  __proto__: null,
204
- _StoreListenerMap: $s,
205
- connect: _t,
209
+ _StoreListenerMap: vs,
210
+ connect: mt,
206
211
  createStore: zt
207
212
  }, Symbol.toStringTag, { value: "Module" }));
208
- let et = (s, ...t) => xn(s, ...t.map((e) => e instanceof Element ? e.outerHTML : e)), As = (s, t) => t.innerHTML = s;
209
- function Or(s, t) {
210
- et = s, As = t;
211
- }
212
- const { assign: Ai, defineProperty: ec } = Object;
213
- ec(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
214
- const xr = (s) => typeof s == "function" && s(), Ht = Symbol.for("gem@sheetToken"), Ls = Symbol.for("gem@update"), Ar = "gem-style-boundary", Rn = "gem@render-error", sc = Ls, Ys = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap();
215
- var dt;
216
- class nc extends CSSStyleSheet {
213
+ let ot = (s, ...t) => Nn(s, ...t.map((e) => e instanceof Element ? e.outerHTML : e)), Ls = (s, t) => t.innerHTML = s;
214
+ function Ar(s, t) {
215
+ ot = s, Ls = t;
216
+ }
217
+ let Nr = (s, t) => {
218
+ };
219
+ function lc(s) {
220
+ Nr = s;
221
+ }
222
+ const { assign: Ii, defineProperty: dc } = Object;
223
+ dc(Symbol, "metadata", { value: Symbol.for("Symbol.metadata") });
224
+ const Rr = (s) => typeof s == "function" && s(), rn = globalThis.nQM, Et = Symbol.for("gem@sheetToken"), As = Symbol.for("gem@update"), Ir = "gem-style-boundary", uc = "gem-element", Wn = "gem@render-error", _c = As, Qs = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap();
225
+ var _t;
226
+ class pc extends CSSStyleSheet {
217
227
  constructor() {
218
228
  super(...arguments);
219
- E(this, dt);
229
+ E(this, _t);
220
230
  v(this, "cssText", "");
221
231
  }
222
232
  get element() {
223
- return _(this, dt) || (M(this, dt, document.createElement("style")), _(this, dt).textContent = this.cssText), _(this, dt);
233
+ return u(this, _t) || (M(this, _t, document.createElement("style")), u(this, _t).textContent = this.cssText), u(this, _t);
224
234
  }
225
235
  replaceSync(e) {
226
- this.cssText = e, _(this, dt) && (_(this, dt).textContent = e), super.replaceSync(e);
236
+ this.cssText = e, u(this, _t) && (u(this, _t).textContent = e), super.replaceSync(e);
227
237
  }
228
238
  }
229
- dt = new WeakMap();
230
- var At, Ze, Qt, Yt;
231
- class ic {
239
+ _t = new WeakMap();
240
+ var Lt, Ye, Yt, Zt;
241
+ class fc {
232
242
  constructor(t = "") {
233
- E(this, At, "");
234
- E(this, Ze, "");
243
+ E(this, Lt, "");
244
+ E(this, Ye, "");
235
245
  // 不需要 GC
236
- E(this, Qt, /* @__PURE__ */ new Map());
237
246
  E(this, Yt, /* @__PURE__ */ new Map());
238
- M(this, Ze, t);
247
+ E(this, Zt, /* @__PURE__ */ new Map());
248
+ M(this, Ye, t);
239
249
  }
240
250
  setContent(t) {
241
- M(this, At, t);
242
- }
243
- getStyle(t) {
244
- var o;
245
- const e = t && !((o = t.internals) != null && o.shadowRoot), n = e ? t.constructor : this;
246
- if (!_(this, Qt).has(n)) {
247
- const a = new nc({ media: _(this, Ze) });
248
- _(this, Qt).set(n, a);
251
+ M(this, Lt, t);
252
+ }
253
+ getStyle(t, e) {
254
+ var a;
255
+ const n = t && !((a = t.internals) != null && a.shadowRoot), i = n ? t.constructor : this;
256
+ if (!u(this, Yt).has(i)) {
257
+ const c = new pc({ media: u(this, Ye) });
258
+ u(this, Yt).set(i, c);
249
259
  }
250
- const i = _(this, Qt).get(n);
251
- if (!_(this, Yt).has(i)) {
252
- let a = _(this, At), c = "";
253
- e && (c = `@scope (${t.tagName}) to (:state(${Ar}) > *)`, a = `${c}{ ${a} }`), i.replaceSync(a), _(this, Yt).set(i, c);
260
+ const r = u(this, Yt).get(i);
261
+ if (!u(this, Zt).has(r)) {
262
+ let c = u(this, Lt), l = "";
263
+ n && (l = e ? "@scope" : `@scope (${t.tagName}) to (:state(${Ir}) > *)`, c = `${l}{ ${c} }`), r.replaceSync(c), u(this, Zt).set(r, l);
254
264
  }
255
- return i;
265
+ return r;
256
266
  }
257
267
  // 一般用于主题更新
258
268
  updateStyle() {
259
- _(this, Yt).forEach((t, e) => {
260
- e.replaceSync(t ? `${t}{${_(this, At)}}` : _(this, At));
269
+ u(this, Zt).forEach((t, e) => {
270
+ e.replaceSync(t ? `${t}{${u(this, Lt)}}` : u(this, Lt));
261
271
  });
262
272
  }
263
273
  }
264
- At = new WeakMap(), Ze = new WeakMap(), Qt = new WeakMap(), Yt = new WeakMap();
265
- function is(s, ...t) {
274
+ Lt = new WeakMap(), Ye = new WeakMap(), Yt = new WeakMap(), Zt = new WeakMap();
275
+ function le(s, ...t) {
266
276
  let e = "", n = "";
267
277
  const i = t.at(0);
268
- Array.isArray(s) ? n = xn(s, ...t) : i !== void 0 ? (e = s, n = i) : n = s;
269
- const o = new ic(e), a = { [Ht]: o };
278
+ Array.isArray(s) ? n = Nn(s, ...t) : i !== void 0 ? (e = s, n = i) : n = s;
279
+ const r = new fc(e), a = { [Et]: r };
270
280
  let c = "";
271
- return typeof n == "string" ? c = n : Object.keys(n).forEach((d) => {
272
- const l = d === "$";
273
- a[d] = l || d.includes("-") ? d : `${d}-${An()}`, c += `${l ? ":where(:scope:not([hidden])),:host(:where(:not([hidden])))" : `.${a[d]}`} {${n[d]}}`;
274
- }), o.setContent(c), a;
281
+ return typeof n == "string" ? c = n : Object.keys(n).forEach((l) => {
282
+ const d = l === "$";
283
+ a[l] = d || l.includes("-") ? l : `${l}-${Rn()}`, c += `${d ? ":where(&:not([hidden])),:host(:where(:not([hidden])))" : `.${a[l]}`} {${n[l]}}`;
284
+ }), r.setContent(c), a;
275
285
  }
276
- const Nr = typeof process < "u", Li = (s, t, e) => {
286
+ const Hi = (s, t, e) => {
277
287
  let n = !1;
278
288
  t.forEach((i) => {
279
- const o = s.get(i) || 0;
280
- n || (n = e === 1 && o === 0 || e === -1 && o === 1), s.set(i, o + e);
281
- }), n && gt(Lr.get(s), Nr);
282
- }, rc = (s, t) => {
289
+ const r = s.get(i) || 0;
290
+ n || (n = e === 1 && r === 0 || e === -1 && r === 1), s.set(i, r + e);
291
+ }), n && St(Hr.get(s), rn);
292
+ }, mc = (s, t) => {
283
293
  const e = s.getRootNode();
284
- if (!Ys.has(e)) {
294
+ if (!Qs.has(e)) {
285
295
  const i = /* @__PURE__ */ new Map();
286
- Ys.set(e, i), Lr.set(i, () => {
287
- const o = e.adoptedStyleSheets.filter((a) => !i.has(a));
288
- i.forEach((a, c) => a && o.push(c)), e.adoptedStyleSheets = o.reverse();
296
+ Qs.set(e, i), Hr.set(i, () => {
297
+ const r = (e.adoptedStyleSheets || []).filter((a) => !i.has(a));
298
+ i.forEach((a, c) => a && r.push(c)), e.adoptedStyleSheets = r.reverse();
289
299
  });
290
300
  }
291
- const n = Ys.get(e);
292
- return Li(n, t, 1), () => Li(n, t, -1);
301
+ const n = Qs.get(e);
302
+ return Hi(n, t, 1), () => Hi(n, t, -1);
293
303
  };
294
- let In;
295
- function Ni(s) {
304
+ let zn;
305
+ function Wi(s) {
296
306
  s == null || s.forEach((t) => {
297
- const { callback: e, getDep: n, values: i, preCallback: o } = t, a = n == null ? void 0 : n();
298
- (!n || !i || Za(i, a)) && (xr(o), t.preCallback = e(a, i), t.values = a, t.initialized = !0);
307
+ const { callback: e, getDep: n, values: i, preCallback: r } = t, a = n == null ? void 0 : n();
308
+ (!n || !i || ac(i, a)) && (Rr(r), t.preCallback = e(a, i), t.values = a, t.initialized = !0);
299
309
  });
300
310
  }
301
- function Ri(s) {
302
- return s.filter((t) => (xr(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
311
+ function zi(s) {
312
+ return s.filter((t) => (Rr(t.preCallback), t.initialized = !1, t.values = void 0, t.fixed));
303
313
  }
304
- let Hn;
305
- const Kt = new Qa(), on = (s = performance.now()) => {
306
- if (performance.now() > s + 16) return requestAnimationFrame(on);
307
- const t = Kt.get();
314
+ let Vn;
315
+ const jt = new rc(), on = (s = performance.now()) => {
316
+ if (performance.now() > s + 50) return requestAnimationFrame(on);
317
+ const t = jt.get();
308
318
  t && (t(), on(s));
309
319
  };
310
- Kt.addEventListener("start", () => gt(on));
311
- let Ii;
312
- var Zt, J, ct, Lt, ut, Xt, ot, te, ee, Nt, at, Ft, an, Ps, ks, Xe, se, Rt, ts, Ms, Os, es, ne;
313
- class st extends HTMLElement {
320
+ jt.addEventListener("start", () => St(on));
321
+ let Vi;
322
+ var At, Q, ct, Nt, pt, Xt, it, te, ee, Rt, rt, Ft, an, ks, Ps, Ze, se, It, Xe, Ms, Os, ts, ne;
323
+ class tt extends HTMLElement {
314
324
  constructor() {
315
325
  super();
316
- E(this, at);
317
- E(this, Zt);
318
- E(this, J);
326
+ E(this, rt);
327
+ E(this, At);
328
+ E(this, Q);
319
329
  E(this, ct, []);
320
- E(this, Lt, []);
321
- E(this, ut, []);
330
+ E(this, Nt, []);
331
+ E(this, pt, []);
322
332
  E(this, Xt);
323
- E(this, ot);
333
+ E(this, it);
324
334
  // not in constructor 的近似值
325
335
  E(this, te);
326
336
  E(this, ee);
327
- E(this, Nt);
337
+ E(this, Rt);
328
338
  /**
329
339
  * 每次更新完检查依赖,执行对应的副作用回调
330
340
  * */
331
- E(this, Ps, () => {
332
- Ni(_(this, ct));
333
- });
334
341
  E(this, ks, () => {
335
- Ni(_(this, Lt));
342
+ Wi(u(this, ct));
343
+ });
344
+ E(this, Ps, () => {
345
+ Wi(u(this, Nt));
336
346
  });
337
347
  /**
338
348
  * - 条件渲染
@@ -341,50 +351,42 @@ class st extends HTMLElement {
341
351
  * - 返回 `null` 时渲染空内容
342
352
  * - 返回空的 TemplateResult 时渲染空的子内容
343
353
  * */
344
- E(this, Xe, (e) => {
354
+ E(this, Ze, (e) => {
345
355
  try {
346
- M(this, ee, !0), _(this, ks).call(this);
347
- const n = _(this, Zt) === this, i = e ? e.render() : n ? void 0 : et`<slot></slot>`;
356
+ M(this, ee, !0), u(this, Ps).call(this);
357
+ const n = u(this, At) === this, i = e ? e.render() : n ? void 0 : ot`<slot></slot>`;
348
358
  if (i === void 0) return;
349
- As(
350
- i !== null ? i : n ? (
351
- // prettier-ignore
352
- et`<style>@scope{:scope{display:none !important}}</style>`
353
- ) : (
354
- // prettier-ignore
355
- et`<style>:host{display:none !important}</style>`
356
- ),
357
- _(this, Zt)
358
- );
359
+ const r = i !== null ? i : ot`<style>${n ? "@scope" : ":host"}{&{display:none!important;}}</style>`;
360
+ Nr(r, u(this, At)) || Ls(r, u(this, At));
359
361
  } catch (n) {
360
- throw this.dispatchEvent(new CustomEvent(Rn, { bubbles: !0, composed: !0, detail: n })), n;
362
+ throw this.dispatchEvent(new CustomEvent(Wn, { bubbles: !0, composed: !0, detail: n })), n;
361
363
  } finally {
362
364
  M(this, ee, !1);
363
365
  }
364
366
  });
365
367
  E(this, se, () => {
366
- const e = _(this, at, an);
367
- _(this, ot) && // 当有渲染函数,但是没一个符合条件时跳过
368
- (e || !_(this, ut).length) && (_(this, Xe).call(this, e), gt(_(this, Ps)));
368
+ const e = u(this, rt, an);
369
+ u(this, it) && // 当有渲染函数,但是没一个符合条件时跳过
370
+ (e || !u(this, pt).length) && (u(this, Ze).call(this, e), St(u(this, ks)));
369
371
  });
370
- E(this, Rt, () => {
371
- _(this, at, Ft).noBlocking ? Kt.add(_(this, se)) : _(this, se).call(this);
372
+ E(this, It, () => {
373
+ u(this, rt, Ft).noBlocking ? jt.add(u(this, se)) : u(this, se).call(this);
372
374
  });
373
- E(this, ts, () => {
374
- const { adoptedStyleSheets: e = [] } = _(this, at, Ft), { shadowRoot: n, sheets: i } = _(this, J), o = e.map((a) => a[Ht].getStyle(this));
375
+ E(this, Xe, () => {
376
+ const { adoptedStyleSheets: e = [] } = u(this, rt, Ft), { shadowRoot: n, sheets: i } = u(this, Q), r = e.map((a) => a[Et].getStyle(this));
375
377
  if (n)
376
- n.adoptedStyleSheets = o.concat(i);
378
+ n.adoptedStyleSheets = r.concat(i);
377
379
  else
378
- return this.prepend(...i.map((a) => a.element)), rc(this, o);
380
+ return this.prepend(...i.map((a) => a.element)), mc(this, r);
379
381
  });
380
382
  /**
381
383
  * 元素挂载后执行还未初始化的副作用
382
384
  * */
383
385
  E(this, Ms, () => {
384
386
  var e;
385
- (e = _(this, ct)) == null || e.forEach((n) => {
386
- const { callback: i, getDep: o, initialized: a } = n;
387
- a || (n.values = o == null ? void 0 : o(), n.preCallback = i(n.values), n.initialized = !0);
387
+ (e = u(this, ct)) == null || e.forEach((n) => {
388
+ const { callback: i, getDep: r, initialized: a } = n;
389
+ a || (n.values = r == null ? void 0 : r(), n.preCallback = i(n.values), n.initialized = !0);
388
390
  });
389
391
  });
390
392
  E(this, Os, () => {
@@ -392,18 +394,18 @@ class st extends HTMLElement {
392
394
  this.willMount && this.memo(this.willMount.bind(this), () => []), this.mounted && this.effect(this.mounted.bind(this), () => []), this.updated && this.effect((n, i) => i && this.updated.apply(this)), this.unmounted && this.effect(
393
395
  () => this.unmounted.bind(this),
394
396
  () => []
395
- ), !_(this, ut).length && this.render && _(this, ut).push({ render: this.render.bind(this), condition: (e = this.shouldUpdate) == null ? void 0 : e.bind(this) });
397
+ ), !u(this, pt).length && this.render && u(this, pt).push({ render: this.render.bind(this), condition: (e = this.shouldUpdate) == null ? void 0 : e.bind(this) });
396
398
  });
397
- E(this, es);
399
+ E(this, ts);
398
400
  E(this, ne, async () => {
399
- var o;
400
- if (_(this, Xt)) {
401
- M(this, Xt, !1), (o = _(this, Nt)) == null || o.call(this), M(this, Nt, _(this, ts).call(this));
401
+ var r;
402
+ if (u(this, Xt)) {
403
+ M(this, Xt, !1), (r = u(this, Rt)) == null || r.call(this), M(this, Rt, u(this, Xe).call(this));
402
404
  return;
403
405
  }
404
- M(this, te, !0), _(this, Os).call(this);
405
- const { observedStores: e, mode: n, penetrable: i } = _(this, at, Ft);
406
- !n && _(this, ut).length && !i && _(this, J).states.add(Ar), M(this, es, e == null ? void 0 : e.map((a) => _t(a, _(this, Rt)))), _(this, Xe).call(this, _(this, at, an)), M(this, ot, !0), M(this, Nt, _(this, ts).call(this)), gt(_(this, Ms));
406
+ M(this, te, !0), u(this, Os).call(this);
407
+ const { observedStores: e, mode: n, penetrable: i } = u(this, rt, Ft);
408
+ u(this, Q).states.add(uc), !n && u(this, pt).length && !i && u(this, Q).states.add(Ir), M(this, ts, e == null ? void 0 : e.map((a) => mt(a, u(this, It)))), u(this, Ze).call(this, u(this, rt, an)), M(this, it, !0), M(this, Rt, u(this, Xe).call(this)), St(u(this, Ms));
407
409
  });
408
410
  /**
409
411
  * @helper
@@ -423,10 +425,10 @@ class st extends HTMLElement {
423
425
  const i = {
424
426
  callback: e,
425
427
  getDep: n,
426
- initialized: _(this, ot),
427
- fixed: !_(this, te)
428
+ initialized: u(this, it),
429
+ fixed: !u(this, te)
428
430
  };
429
- _(this, ot) && (i.values = n == null ? void 0 : n(), i.preCallback = e(i.values)), _(this, ct).push(i);
431
+ u(this, it) && (i.values = n == null ? void 0 : n(), i.preCallback = e(i.values)), u(this, ct).push(i);
430
432
  });
431
433
  /**
432
434
  * @helper
@@ -446,37 +448,37 @@ class st extends HTMLElement {
446
448
  * ```
447
449
  * */
448
450
  v(this, "memo", (e, n) => {
449
- _(this, Lt).push({
451
+ u(this, Nt).push({
450
452
  callback: e,
451
453
  getDep: n,
452
- fixed: !_(this, te)
454
+ fixed: !u(this, te)
453
455
  });
454
456
  });
455
457
  /**
456
458
  * @helper
457
459
  * async
458
460
  */
459
- v(this, "update", () => gt(_(this, Rt)));
460
- Ii = this;
461
- const { mode: e, serializable: n, delegatesFocus: i, slotAssignment: o, aria: a } = _(this, at, Ft), { focusable: c, ...d } = a || {};
462
- M(this, Zt, e ? this.attachShadow({ mode: e, serializable: n, delegatesFocus: i, slotAssignment: o }) : this), M(this, J, this.attachInternals()), _(this, J).stateList = [], _(this, J).sheets = [], Ai(_(this, J), d);
461
+ v(this, "update", () => St(u(this, It)));
462
+ Vi = this;
463
+ const { aria: e, mode: n, delegatesFocus: i, ...r } = u(this, rt, Ft), { focusable: a, ...c } = e || {};
464
+ M(this, At, n ? this.shadowRoot || this.attachShadow({ mode: n, delegatesFocus: i, ...r }) : this), M(this, Q, this.attachInternals()), u(this, Q).stateList = [], u(this, Q).sheets = [], Ii(u(this, Q), c);
463
465
  let l;
464
- _(this, ct).push({
466
+ u(this, ct).push({
465
467
  fixed: !0,
466
468
  getDep: () => [this.disabled],
467
- callback: ([f = !1]) => {
468
- if (l === void 0 && (l = this.hasAttribute("tabindex")), _(this, J).ariaDisabled = String(f), c && !l && (this.tabIndex = -Number(f)), (c || i) && f)
469
- return Mr(this, "click", (r) => r.isTrusted && r.stopImmediatePropagation(), {
469
+ callback: ([d = !1]) => {
470
+ if (l === void 0 && (l = this.hasAttribute("tabindex")), u(this, Q).ariaDisabled = String(d), a && !l && (this.tabIndex = -Number(d)), (a || i) && d)
471
+ return Lr(this, "click", (f) => f.isTrusted && f.stopImmediatePropagation(), {
470
472
  capture: !0
471
473
  });
472
474
  }
473
475
  });
474
476
  }
475
- [sc]() {
476
- _(this, ot) && gt(_(this, Rt));
477
+ [_c]() {
478
+ u(this, it) && St(u(this, It));
477
479
  }
478
480
  get internals() {
479
- return _(this, J);
481
+ return u(this, Q);
480
482
  }
481
483
  /**
482
484
  * @private
@@ -484,7 +486,7 @@ class st extends HTMLElement {
484
486
  * use `@mounted`
485
487
  */
486
488
  connectedCallback() {
487
- _(this, at, Ft).noBlocking ? Kt.add(_(this, ne)) : _(this, ne).call(this);
489
+ u(this, rt, Ft).noBlocking ? jt.add(u(this, ne)) : u(this, ne).call(this);
488
490
  }
489
491
  /**
490
492
  * @private
@@ -497,159 +499,159 @@ class st extends HTMLElement {
497
499
  M(this, Xt, !0);
498
500
  return;
499
501
  }
500
- Kt.delete(_(this, ne)), Kt.delete(_(this, se)), M(this, ot, !1), (e = _(this, es)) == null || e.forEach((i) => i()), M(this, ct, Ri(_(this, ct))), M(this, Lt, Ri(_(this, Lt))), (n = _(this, Nt)) == null || n.call(this);
502
+ jt.delete(u(this, ne)), jt.delete(u(this, se)), M(this, it, !1), (e = u(this, ts)) == null || e.forEach((i) => i()), M(this, ct, zi(u(this, ct))), M(this, Nt, zi(u(this, Nt))), (n = u(this, Rt)) == null || n.call(this);
501
503
  }
502
504
  }
503
- Zt = new WeakMap(), J = new WeakMap(), ct = new WeakMap(), Lt = new WeakMap(), ut = new WeakMap(), Xt = new WeakMap(), ot = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), Nt = new WeakMap(), at = new WeakSet(), Ft = function() {
505
+ At = new WeakMap(), Q = new WeakMap(), ct = new WeakMap(), Nt = new WeakMap(), pt = new WeakMap(), Xt = new WeakMap(), it = new WeakMap(), te = new WeakMap(), ee = new WeakMap(), Rt = new WeakMap(), rt = new WeakSet(), Ft = function() {
504
506
  return this.constructor[Symbol.metadata];
505
507
  }, an = function() {
506
- return _(this, ut).findLast((e) => !e.condition || e.condition());
507
- }, Ps = new WeakMap(), ks = new WeakMap(), Xe = new WeakMap(), se = new WeakMap(), Rt = new WeakMap(), ts = new WeakMap(), Ms = new WeakMap(), Os = new WeakMap(), es = new WeakMap(), ne = new WeakMap(), In = (e) => {
508
- const n = Ii, i = xs(e, (o) => {
509
- const a = _(n, ct).at(0);
510
- if (_(n, ot) && a && !a.initialized)
511
- throw new yt("Do't set state sync before insert the DOM");
512
- Ai(i, o), !_(n, ee) && _(n, ot) && gt(_(n, Rt));
508
+ return u(this, pt).findLast((e) => !e.condition || e.condition());
509
+ }, ks = new WeakMap(), Ps = new WeakMap(), Ze = new WeakMap(), se = new WeakMap(), It = new WeakMap(), Xe = new WeakMap(), Ms = new WeakMap(), Os = new WeakMap(), ts = new WeakMap(), ne = new WeakMap(), zn = (e) => {
510
+ const n = Vi, i = xs(e, (r) => {
511
+ const a = u(n, ct).at(0);
512
+ if (!rn && u(n, it) && a && !a.initialized)
513
+ throw new wt("Don't set state sync before insert the DOM");
514
+ Ii(i, r), !u(n, ee) && u(n, it) && St(u(n, It), rn);
513
515
  });
514
- return _(n, J).stateList.push(i), i;
515
- }, Hn = (e, n) => _(e, ut).push(n);
516
- const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
516
+ return u(n, Q).stateList.push(i), i;
517
+ }, Vn = (e, n) => u(e, pt).push(n);
518
+ const gc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
517
519
  __proto__: null,
518
- GemElement: st,
519
- SheetToken: Ht,
520
- UpdateToken: Ls,
521
- _RenderErrorEvent: Rn,
520
+ GemElement: tt,
521
+ SheetToken: Et,
522
+ UpdateToken: As,
523
+ _RenderErrorEvent: Wn,
522
524
  get _createTemplate() {
523
- return Hn;
525
+ return Vn;
524
526
  },
525
527
  get createState() {
526
- return In;
528
+ return zn;
527
529
  },
528
- css: is,
530
+ css: le,
529
531
  get html() {
530
- return et;
532
+ return ot;
531
533
  },
532
- isSSR: Nr,
533
534
  get render() {
534
- return As;
535
+ return Ls;
535
536
  },
536
- setEngine: Or
537
- }, Symbol.toStringTag, { value: "Module" })), { deleteProperty: ac, getOwnPropertyDescriptor: Wn, defineProperty: Ns } = Reflect, { getPrototypeOf: Rs, assign: cc, hasOwn: Is } = Object, Hi = new Ya();
538
- function Et(s, t, e) {
537
+ setEngine: Ar,
538
+ setHydrationEngine: lc
539
+ }, Symbol.toStringTag, { value: "Module" })), { deleteProperty: vc, getOwnPropertyDescriptor: Gn, defineProperty: Ns } = Reflect, { getPrototypeOf: Rs, assign: $c, hasOwn: Is } = Object, Gi = new oc();
540
+ function Ct(s, t, e) {
539
541
  var i;
540
542
  const n = s.metadata;
541
- Wn(n, t) || Ns(n, t, {
542
- value: ((i = n[t]) == null ? void 0 : i.filter((o) => o !== e)) || []
543
+ Gn(n, t) || Ns(n, t, {
544
+ value: ((i = n[t]) == null ? void 0 : i.filter((r) => r !== e)) || []
543
545
  }), n[t].push(e);
544
546
  }
545
547
  function Hs(s, t) {
546
- const { value: e } = Wn(s, t) || {};
547
- ac(s, t), s[t] = e;
548
+ const { value: e } = Gn(s, t) || {};
549
+ vc(s, t), s[t] = e;
548
550
  }
549
- const cn = /* @__PURE__ */ new WeakMap(), { setAttribute: Rr, toggleAttribute: hc, removeAttribute: Ir } = Element.prototype, zn = (s, t) => {
551
+ const cn = /* @__PURE__ */ new WeakMap(), { setAttribute: Wr, toggleAttribute: Sc, removeAttribute: zr } = Element.prototype, Dn = (s, t) => {
550
552
  var e;
551
553
  return (e = cn.get(Rs(s))) == null ? void 0 : e.get(t);
552
554
  };
553
- st.prototype.setAttribute = function(s, t) {
554
- const e = zn(this, s);
555
- if (!e) return Rr.call(this, s, t);
555
+ tt.prototype.setAttribute = function(s, t) {
556
+ const e = Dn(this, s);
557
+ if (!e) return Wr.call(this, s, t);
556
558
  this[e] = t;
557
559
  };
558
- st.prototype.removeAttribute = function(s) {
559
- const t = zn(this, s);
560
- if (!t) return Ir.call(this, s);
560
+ tt.prototype.removeAttribute = function(s) {
561
+ const t = Dn(this, s);
562
+ if (!t) return zr.call(this, s);
561
563
  this[t] = null;
562
564
  };
563
- st.prototype.toggleAttribute = function(s, t) {
564
- const e = zn(this, s);
565
- return e ? this[e] = t ?? !this.hasAttribute(s) : hc.call(this, s, t);
565
+ tt.prototype.toggleAttribute = function(s, t) {
566
+ const e = Dn(this, s);
567
+ return e ? this[e] = t ?? !this.hasAttribute(s) : Sc.call(this, s, t);
566
568
  };
567
- function lc() {
569
+ function yc() {
568
570
  }
569
- const Wi = Symbol("event handle");
570
- function Vn(s, t, { attr: e, attrType: n, event: i, eventOptions: o } = {}) {
571
+ const Di = Symbol("event handle");
572
+ function Un(s, t, { attr: e, attrType: n, event: i, eventOptions: r } = {}) {
571
573
  Ns(s, t, {
572
574
  configurable: !0,
573
575
  get() {
574
- const a = Hi.get(this)[t];
575
- return i && !a ? (this[t] = lc, this[t]) : a;
576
+ const a = Gi.get(this)[t];
577
+ return i && !a ? (this[t] = yc, this[t]) : a;
576
578
  },
577
579
  set(a) {
578
- const c = this, d = Hi.get(c);
579
- e && (a = n === Boolean && a === "" ? !0 : n(a || ""), a ? Rr.call(this, e, n === Boolean ? "" : a) : Ir.call(this, e)), a !== d[t] && (i ? (d[t] = a != null && a[Wi] ? a : async (l, f) => {
580
+ const c = this, l = Gi.get(c);
581
+ e && (a = n === Boolean && a === "" ? !0 : n(a || ""), a ? Wr.call(this, e, n === Boolean ? "" : a) : zr.call(this, e)), a !== l[t] && (i ? (l[t] = a != null && a[Di] ? a : async (d, f) => {
580
582
  await Promise.resolve();
581
- const r = new CustomEvent(i, { ...f, ...o, detail: l });
582
- c.dispatchEvent(r), await a(l, f);
583
- }, d[t][Wi] = !0) : (d[t] = a, this[Ls]()));
583
+ const o = new CustomEvent(i, { ...f, ...r, detail: d });
584
+ c.dispatchEvent(o), await a(d, f);
585
+ }, l[t][Di] = !0) : (l[t] = a, this[As]()));
584
586
  }
585
587
  });
586
588
  }
587
- const zi = /* @__PURE__ */ new WeakMap();
588
- function rs(s, { metadata: t }) {
589
- const e = zi.get(t);
589
+ const Ui = /* @__PURE__ */ new WeakMap();
590
+ function ns(s, { metadata: t }) {
591
+ const e = Ui.get(t);
590
592
  if (e) return e;
591
593
  let n = s;
592
594
  do
593
595
  n = Rs(n);
594
596
  while (n.constructor[Symbol.metadata] !== t);
595
- return zi.set(t, n), n;
597
+ return Ui.set(t, n), n;
596
598
  }
597
- function Gn(s, t) {
599
+ function Fn(s, t) {
598
600
  const e = s.name, n = he(e);
599
601
  return s.addInitializer(function() {
600
- const i = rs(this, s);
601
- Is(i, e) || (Et(s, "observedAttributes", n), Vn(i, e, { attr: n, attrType: t })), Hs(this, e);
602
- const o = Rs(this), a = cn.get(o) || /* @__PURE__ */ new Map();
603
- a.set(n, e), cn.set(o, a);
602
+ const i = ns(this, s);
603
+ Is(i, e) || (Ct(s, "observedAttributes", n), Un(i, e, { attr: n, attrType: t })), Hs(this, e);
604
+ const r = Rs(this), a = cn.get(r) || /* @__PURE__ */ new Map();
605
+ a.set(n, e), cn.set(r, a);
604
606
  }), function(i) {
605
607
  return this.getAttribute(n) ?? i;
606
608
  };
607
609
  }
608
- function D(s, t) {
609
- return Gn(t, String);
610
+ function B(s, t) {
611
+ return Fn(t, String);
610
612
  }
611
613
  function Ws(s, t) {
612
- return Gn(t, Boolean);
614
+ return Fn(t, Boolean);
613
615
  }
614
- function dc(s, t) {
615
- return Gn(t, Number);
616
+ function wc(s, t) {
617
+ return Fn(t, Number);
616
618
  }
617
- function B(s, t) {
619
+ function D(s, t) {
618
620
  const e = t.name;
619
621
  return t.addInitializer(function() {
620
- const n = rs(this, t);
621
- Is(n, e) || (Et(t, "observedProperties", e), Vn(n, e)), Hs(this, e);
622
+ const n = ns(this, t);
623
+ Is(n, e) || (Ct(t, "observedProperties", e), Un(n, e)), Hs(this, e);
622
624
  }), function(n) {
623
625
  return this[e] ?? n;
624
626
  };
625
627
  }
626
- function Hr(s) {
628
+ function Vr(s) {
627
629
  return (t, e) => {
628
- const { addInitializer: n, name: i, access: o, kind: a } = e;
630
+ const { addInitializer: n, name: i, access: r, kind: a } = e;
629
631
  n(function() {
630
632
  const c = s && (() => s(this));
631
633
  if (a === "getter") {
632
- if (e.private) throw new yt("not support");
633
- const d = rs(this, e), l = Wn(d, i).get.bind(this);
634
+ if (e.private) throw new wt("not support");
635
+ const l = ns(this, e), d = Gn(l, i).get.bind(this);
634
636
  this.memo(() => {
635
637
  Ns(this, i, {
636
638
  configurable: !0,
637
- value: l()
639
+ value: d()
638
640
  });
639
641
  }, c);
640
642
  } else
641
- this.memo(o.get.call(this, this).bind(this), c);
643
+ this.memo(r.get.call(this, this).bind(this), c);
642
644
  });
643
645
  };
644
646
  }
645
- function wt(s) {
647
+ function ft(s) {
646
648
  return (t, { addInitializer: e, access: n }) => {
647
649
  e(function() {
648
650
  this.effect(n.get.call(this, this).bind(this), s && (() => s(this)));
649
651
  });
650
652
  };
651
653
  }
652
- function uc() {
654
+ function Ec() {
653
655
  return (s, { addInitializer: t, access: e }) => {
654
656
  t(function() {
655
657
  this.effect(
@@ -659,32 +661,32 @@ function uc() {
659
661
  });
660
662
  };
661
663
  }
662
- function Dn() {
663
- return Hr(() => []);
664
+ function qn() {
665
+ return Vr(() => []);
664
666
  }
665
- function Ke() {
666
- return wt(() => []);
667
+ function Be() {
668
+ return ft(() => []);
667
669
  }
668
- function le(s) {
670
+ function de(s) {
669
671
  return (t, { addInitializer: e, access: n }) => {
670
672
  e(function() {
671
- Hn(this, {
673
+ Vn(this, {
672
674
  render: n.get.call(this, this).bind(this),
673
675
  condition: s && (() => s(this))
674
676
  });
675
677
  });
676
678
  };
677
679
  }
678
- function _c() {
680
+ function Cc() {
679
681
  return (s, { addInitializer: t, access: e }) => {
680
682
  t(function() {
681
- this.addEventListener(Rn, ({ detail: n }) => {
682
- As(e.get.call(this, this).apply(this, [n]), this.internals.shadowRoot || this);
683
+ this.addEventListener(Wn, ({ detail: n }) => {
684
+ Ls(e.get.call(this, this).apply(this, [n]), this.internals.shadowRoot || this);
683
685
  });
684
686
  });
685
687
  };
686
688
  }
687
- function pc(s, t, e) {
689
+ function bc(s, t, e) {
688
690
  Ns(s, t, {
689
691
  configurable: !0,
690
692
  get() {
@@ -692,135 +694,130 @@ function pc(s, t, e) {
692
694
  return i == null ? void 0 : i.has(e);
693
695
  },
694
696
  set(n) {
695
- const i = this, { states: o } = i.internals;
696
- n ? o == null || o.add(e) : o == null || o.delete(e);
697
+ const i = this, { states: r } = i.internals;
698
+ n ? r == null || r.add(e) : r == null || r.delete(e);
697
699
  }
698
700
  });
699
701
  }
700
702
  function zs(s, t) {
701
703
  const e = t.name, n = he(e);
702
704
  t.addInitializer(function() {
703
- const i = rs(this, t);
704
- Is(i, e) || (Et(t, "definedCSSStates", n), pc(i, e, n)), Hs(this, e);
705
+ const i = ns(this, t);
706
+ Is(i, e) || (Ct(t, "definedCSSStates", n), bc(i, e, n)), Hs(this, e);
705
707
  });
706
708
  }
707
- function Wr(s, t, e, n) {
708
- const i = s.name, o = he(i);
709
+ function Gr(s, t, e, n) {
710
+ const i = s.name, r = he(i);
709
711
  if (s.static)
710
- Et(s, e, o);
712
+ Ct(s, e, r);
711
713
  else {
712
714
  const a = Rs(t);
713
- a[i] || (a[i] = o, Et(s, e, o));
715
+ a[i] || (a[i] = r, Ct(s, e, r));
714
716
  }
715
- return n || o;
717
+ return n || r;
716
718
  }
717
- function fc(s, t) {
719
+ function Tc(s, t) {
718
720
  return function(e) {
719
- return Wr(t, this, "definedSlots", e);
721
+ return Gr(t, this, "definedSlots", e);
720
722
  };
721
723
  }
722
- function zr(s, t) {
724
+ function Dr(s, t) {
723
725
  return function(e) {
724
- return Wr(t, this, "definedParts", e);
726
+ return Gr(t, this, "definedParts", e);
725
727
  };
726
728
  }
727
- function be(s, t) {
728
- Vr(t);
729
+ function Te(s, t) {
730
+ Ur(t);
729
731
  }
730
- function mc(s, t) {
731
- Vr(t, { bubbles: !0, composed: !0 });
732
+ function kc(s, t) {
733
+ Ur(t, { bubbles: !0, composed: !0 });
732
734
  }
733
- function Vr(s, t) {
735
+ function Ur(s, t) {
734
736
  const e = s.name, n = he(e);
735
737
  s.addInitializer(function() {
736
- const i = rs(this, s);
737
- Is(i, e) || (Et(s, "definedEvents", n), Vn(i, e, { event: n, eventOptions: t })), Hs(this, e);
738
+ const i = ns(this, s);
739
+ Is(i, e) || (Ct(s, "definedEvents", n), Un(i, e, { event: n, eventOptions: t })), Hs(this, e);
738
740
  });
739
741
  }
740
- function Vs(s) {
742
+ function is(s) {
741
743
  return (t, e) => {
742
- Et(e, "adoptedStyleSheets", s);
744
+ Ct(e, "adoptedStyleSheets", s);
743
745
  };
744
746
  }
745
- function Gs(s) {
747
+ function Vs(s) {
746
748
  return (t, e) => {
747
- Et(e, "observedStores", s);
749
+ Ct(e, "observedStores", s);
748
750
  };
749
751
  }
750
- function Vt({
751
- mode: s = "open",
752
- serializable: t = !0,
753
- delegatesFocus: e,
754
- slotAssignment: n
755
- } = {}) {
756
- return (i, o) => {
757
- const a = o.metadata;
758
- cc(a, { mode: s, serializable: t, delegatesFocus: e, slotAssignment: n });
752
+ function Vt({ mode: s = "open", serializable: t = !0, ...e } = {}) {
753
+ return (n, i) => {
754
+ const r = i.metadata;
755
+ $c(r, { mode: s, serializable: t, ...e });
759
756
  };
760
757
  }
761
- function Gr({ penetrable: s }) {
758
+ function Fr({ penetrable: s }) {
762
759
  return (t, e) => {
763
760
  const n = e.metadata;
764
761
  n.penetrable = s;
765
762
  };
766
763
  }
767
- function gc() {
764
+ function Pc() {
768
765
  return (s, t) => {
769
766
  const e = t.metadata;
770
767
  e.noBlocking = !0;
771
768
  };
772
769
  }
773
- function Ds(s) {
770
+ function Gs(s) {
774
771
  return (t, e) => {
775
772
  const n = e.metadata;
776
773
  n.aria = { ...n.aria, ...s };
777
774
  };
778
775
  }
779
- function vc(s) {
776
+ function Mc(s) {
780
777
  return (t, { addInitializer: e }) => {
781
778
  e(() => {
782
779
  customElements.define(s, t);
783
780
  });
784
781
  };
785
782
  }
786
- const $c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
783
+ const Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
787
784
  __proto__: null,
788
- adoptedStyle: Vs,
789
- aria: Ds,
790
- async: gc,
791
- attribute: D,
785
+ adoptedStyle: is,
786
+ aria: Gs,
787
+ async: Pc,
788
+ attribute: B,
792
789
  boolattribute: Ws,
793
- connectStore: Gs,
794
- customElement: vc,
795
- effect: wt,
796
- emitter: be,
797
- fallback: _c,
798
- globalemitter: mc,
799
- light: Gr,
800
- memo: Hr,
801
- mounted: Ke,
802
- numattribute: dc,
803
- part: zr,
804
- property: B,
790
+ connectStore: Vs,
791
+ customElement: Mc,
792
+ effect: ft,
793
+ emitter: Te,
794
+ fallback: Cc,
795
+ globalemitter: kc,
796
+ light: Fr,
797
+ memo: Vr,
798
+ mounted: Be,
799
+ numattribute: wc,
800
+ part: Dr,
801
+ property: D,
805
802
  shadow: Vt,
806
- slot: fc,
803
+ slot: Tc,
807
804
  state: zs,
808
- template: le,
809
- unmounted: uc,
810
- willMount: Dn
805
+ template: de,
806
+ unmounted: Ec,
807
+ willMount: qn
811
808
  }, Symbol.toStringTag, { value: "Module" }));
812
809
  /**
813
810
  * @license
814
811
  * Copyright 2017 Google LLC
815
812
  * SPDX-License-Identifier: BSD-3-Clause
816
813
  */
817
- const Sc = globalThis, Fe = Sc.trustedTypes, Vi = Fe == null ? void 0 : Fe.createPolicy("lit-html", { createHTML: (s) => s }), Dr = "$lit$", vt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ur = "?" + vt, yc = `<${Ur}>`, Wt = document, re = () => Wt.createComment(""), je = (s) => s === null || typeof s != "object" && typeof s != "function", jt = (s) => s == null, wc = (s) => Symbol.iterator in s, Zs = `[
818
- \f\r]`, Ec = `[^
819
- \f\r"'\`<>=]`, Cc = `[^\\s"'>=/]`, Se = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gi = 1, Xs = 2, bc = 3, Di = /-->/g, Ui = />/g, Tt = new RegExp(
820
- `>|${Zs}(?:(${Cc}+)(${Zs}*=${Zs}*(?:${Ec}|("|')|))|$)`,
814
+ const xc = globalThis, Ue = xc.trustedTypes, Fi = Ue == null ? void 0 : Ue.createPolicy("lit-html", { createHTML: (s) => s }), qr = "$lit$", yt = `lit$${Math.random().toFixed(9).slice(2)}$`, Br = "?" + yt, Lc = `<${Br}>`, Wt = document, re = () => Wt.createComment(""), Ke = (s) => s === null || typeof s != "object" && typeof s != "function", Qt = (s) => s == null, Ac = (s) => Symbol.iterator in s, Js = `[
815
+ \f\r]`, Nc = `[^
816
+ \f\r"'\`<>=]`, Rc = `[^\\s"'>=/]`, ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qi = 1, Ys = 2, Ic = 3, Bi = /-->/g, Ki = />/g, kt = new RegExp(
817
+ `>|${Js}(?:(${Rc}+)(${Js}*=${Js}*(?:${Nc}|("|')|))|$)`,
821
818
  "g"
822
- ), Tc = 0, Fi = 1, Pc = 2, qi = 3, Bi = /'/g, Ki = /"/g, Fr = /^(?:script|style|textarea|title)$/i, kc = 1, Ss = 2, ys = 3, Un = 1, ws = 2, Mc = 3, Oc = 4, xc = 5, Fn = 6, Ac = 7, ji = "v-if", Ji = "v-else-if", Qi = "v-else";
823
- class qr {
819
+ ), Hc = 0, ji = 1, Wc = 2, Qi = 3, Ji = /'/g, Yi = /"/g, Kr = /^(?:script|style|textarea|title)$/i, zc = 1, $s = 2, Ss = 3, Bn = 1, ys = 2, Vc = 3, Gc = 4, Dc = 5, Kn = 6, Uc = 7, Zi = "v-if", Xi = "v-else-if", tr = "v-else";
820
+ class jr {
824
821
  constructor(t, e, n) {
825
822
  v(this, "type");
826
823
  v(this, "strings");
@@ -828,75 +825,75 @@ class qr {
828
825
  this.type = t, this.strings = e, this.values = n;
829
826
  }
830
827
  }
831
- const qn = (s) => (t, ...e) => new qr(s, t, e), Lc = qn(kc), bl = qn(Ss), Tl = qn(ys), Bn = Symbol.for("lit-noChange"), Yi = /* @__PURE__ */ new WeakMap(), xt = Wt.createTreeWalker(
828
+ const jn = (s) => (t, ...e) => new jr(s, t, e), Fc = jn(zc), Il = jn($s), Hl = jn(Ss), Qn = Symbol.for("lit-noChange"), er = /* @__PURE__ */ new WeakMap(), xt = Wt.createTreeWalker(
832
829
  Wt,
833
830
  129
834
831
  /* NodeFilter.SHOW_{ELEMENT|COMMENT} */
835
832
  );
836
- function Nc(s, t) {
833
+ function qc(s, t) {
837
834
  if (!Array.isArray(s)) throw new Error("invalid template");
838
- return Vi !== void 0 ? Vi.createHTML(t) : t;
835
+ return Fi !== void 0 ? Fi.createHTML(t) : t;
839
836
  }
840
- const Rc = (s, t) => {
837
+ const Bc = (s, t) => {
841
838
  const e = s.length - 1, n = [];
842
- let i = t === Ss ? "<svg>" : t === ys ? "<math>" : "", o, a = Se;
843
- for (let d = 0; d < e; d++) {
844
- const l = s[d];
845
- let f = -1, r, m = 0, h;
846
- for (; m < l.length && (a.lastIndex = m, h = a.exec(l), h !== null); )
847
- m = a.lastIndex, a === Se ? h[Gi] === "!--" ? a = Di : h[Gi] !== void 0 ? a = Ui : h[Xs] !== void 0 ? (Fr.test(h[Xs]) && (o = new RegExp(`</${h[Xs]}`, "g")), a = Tt) : h[bc] !== void 0 && (a = Tt) : a === Tt ? h[Tc] === ">" ? (a = o ?? Se, f = -1) : h[Fi] === void 0 ? f = -2 : (f = a.lastIndex - h[Pc].length, r = h[Fi], a = h[qi] === void 0 ? Tt : h[qi] === '"' ? Ki : Bi) : a === Ki || a === Bi ? a = Tt : a === Di || a === Ui ? a = Se : (a = Tt, o = void 0);
848
- const g = a === Tt && s[d + 1].startsWith("/>") ? " " : "";
849
- i += a === Se ? l + yc : f >= 0 ? (n.push(r), l.slice(0, f) + Dr + l.slice(f) + vt + g) : l + vt + (f === -2 ? d : g);
850
- }
851
- const c = i + (s[e] || "<?>") + (t === Ss ? "</svg>" : t === ys ? "</math>" : "");
852
- return [Nc(s, c), n];
839
+ let i = t === $s ? "<svg>" : t === Ss ? "<math>" : "", r, a = ye;
840
+ for (let l = 0; l < e; l++) {
841
+ const d = s[l];
842
+ let f = -1, o, m = 0, h;
843
+ for (; m < d.length && (a.lastIndex = m, h = a.exec(d), h !== null); )
844
+ m = a.lastIndex, a === ye ? h[qi] === "!--" ? a = Bi : h[qi] !== void 0 ? a = Ki : h[Ys] !== void 0 ? (Kr.test(h[Ys]) && (r = new RegExp(`</${h[Ys]}`, "g")), a = kt) : h[Ic] !== void 0 && (a = kt) : a === kt ? h[Hc] === ">" ? (a = r ?? ye, f = -1) : h[ji] === void 0 ? f = -2 : (f = a.lastIndex - h[Wc].length, o = h[ji], a = h[Qi] === void 0 ? kt : h[Qi] === '"' ? Yi : Ji) : a === Yi || a === Ji ? a = kt : a === Bi || a === Ki ? a = ye : (a = kt, r = void 0);
845
+ const g = a === kt && s[l + 1].startsWith("/>") ? " " : "";
846
+ i += a === ye ? d + Lc : f >= 0 ? (n.push(o), d.slice(0, f) + qr + d.slice(f) + yt + g) : d + yt + (f === -2 ? l : g);
847
+ }
848
+ const c = i + (s[e] || "<?>") + (t === $s ? "</svg>" : t === Ss ? "</math>" : "");
849
+ return [qc(s, c), n];
853
850
  };
854
- class Kn {
851
+ class Jn {
855
852
  constructor({ strings: t, type: e }, n) {
856
853
  /** @internal */
857
854
  v(this, "el");
858
855
  v(this, "parts", []);
859
- let i, o = 0, a = 0;
860
- const c = t.length - 1, d = this.parts, [l, f] = Rc(t, e);
861
- if (this.el = Kn.createElement(l, n), xt.currentNode = this.el.content, e === Ss || e === ys) {
862
- const r = this.el.content.firstChild;
863
- r.replaceWith(...r.childNodes);
856
+ let i, r = 0, a = 0;
857
+ const c = t.length - 1, l = this.parts, [d, f] = Bc(t, e);
858
+ if (this.el = Jn.createElement(d, n), xt.currentNode = this.el.content, e === $s || e === Ss) {
859
+ const o = this.el.content.firstChild;
860
+ o.replaceWith(...o.childNodes);
864
861
  }
865
- for (; (i = xt.nextNode()) !== null && d.length < c; ) {
862
+ for (; (i = xt.nextNode()) !== null && l.length < c; ) {
866
863
  if (i.nodeType === 1) {
867
864
  if (i.hasAttributes())
868
- for (const r of i.getAttributeNames())
869
- if (r.endsWith(Dr)) {
870
- const m = f[a++], g = i.getAttribute(r).split(vt), $ = /([.?@])?(.*)/.exec(m);
871
- d.push({
872
- type: Un,
873
- index: o,
865
+ for (const o of i.getAttributeNames())
866
+ if (o.endsWith(qr)) {
867
+ const m = f[a++], g = i.getAttribute(o).split(yt), $ = /([.?@])?(.*)/.exec(m);
868
+ l.push({
869
+ type: Bn,
870
+ index: r,
874
871
  name: $[2],
875
872
  strings: g,
876
- ctor: $[1] === "." ? Wc : $[1] === "?" ? zc : $[1] === "@" ? Vc : Us
877
- }), i.removeAttribute(r);
878
- } else r.startsWith(vt) && (d.push({
879
- type: Fn,
880
- index: o
881
- }), i.removeAttribute(r));
882
- if (Fr.test(i.tagName)) {
883
- const r = i.textContent.split(vt), m = r.length - 1;
873
+ ctor: $[1] === "." ? Qc : $[1] === "?" ? Jc : $[1] === "@" ? Yc : Ds
874
+ }), i.removeAttribute(o);
875
+ } else o.startsWith(yt) && (l.push({
876
+ type: Kn,
877
+ index: r
878
+ }), i.removeAttribute(o));
879
+ if (Kr.test(i.tagName)) {
880
+ const o = i.textContent.split(yt), m = o.length - 1;
884
881
  if (m > 0) {
885
- i.textContent = Fe ? Fe.emptyScript : "";
882
+ i.textContent = Ue ? Ue.emptyScript : "";
886
883
  for (let h = 0; h < m; h++)
887
- i.append(r[h], re()), xt.nextNode(), d.push({ type: ws, index: ++o });
888
- i.append(r[m], re());
884
+ i.append(o[h], re()), xt.nextNode(), l.push({ type: ys, index: ++r });
885
+ i.append(o[m], re());
889
886
  }
890
887
  }
891
888
  } else if (i.nodeType === 8)
892
- if (i.data === Ur)
893
- d.push({ type: ws, index: o });
889
+ if (i.data === Br)
890
+ l.push({ type: ys, index: r });
894
891
  else {
895
892
  let m = -1;
896
- for (; (m = i.data.indexOf(vt, m + 1)) !== -1; )
897
- d.push({ type: Ac, index: o }), m += vt.length - 1;
893
+ for (; (m = i.data.indexOf(yt, m + 1)) !== -1; )
894
+ l.push({ type: Uc, index: r }), m += yt.length - 1;
898
895
  }
899
- o++;
896
+ r++;
900
897
  }
901
898
  }
902
899
  // Overridden via `litHtmlPolyfillSupport` to provide platform support.
@@ -908,25 +905,24 @@ class Kn {
908
905
  }
909
906
  function oe(s, t, e = s, n) {
910
907
  var a, c;
911
- if (t === Bn)
908
+ if (t === Qn)
912
909
  return t;
913
910
  let i = n !== void 0 ? (a = e.__directives) == null ? void 0 : a[n] : e.__directive;
914
- const o = je(t) ? void 0 : (
911
+ const r = Ke(t) ? void 0 : (
915
912
  // This property needs to remain unminified.
916
913
  t._$litDirective$
917
914
  );
918
- return (i == null ? void 0 : i.constructor) !== o && ((c = i == null ? void 0 : i._$notifyDirectiveConnectionChanged) == null || c.call(i, !1), o === void 0 ? i = void 0 : (i = new o(s), i._$initialize(s, e, n)), n !== void 0 ? (e.__directives ?? (e.__directives = []))[n] = i : e.__directive = i), i !== void 0 && (t = oe(
915
+ return (i == null ? void 0 : i.constructor) !== r && ((c = i == null ? void 0 : i._$notifyDirectiveConnectionChanged) == null || c.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$initialize(s, e, n)), n !== void 0 ? (e.__directives ?? (e.__directives = []))[n] = i : e.__directive = i), i !== void 0 && (t = oe(
919
916
  s,
920
917
  i._$resolve(s, t.values),
921
918
  i,
922
919
  n
923
920
  )), t;
924
921
  }
925
- class Ic {
922
+ class Kc {
926
923
  constructor(t, e) {
927
924
  v(this, "_$template");
928
925
  v(this, "_$parts", []);
929
- /** @internal */
930
926
  v(this, "_$conditions", []);
931
927
  /** @internal */
932
928
  v(this, "_$parent");
@@ -948,22 +944,22 @@ class Ic {
948
944
  const {
949
945
  el: { content: e },
950
946
  parts: n
951
- } = this._$template, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = ((t == null ? void 0 : t.creationScope) ?? Wt).importNode(e, !0);
947
+ } = this._$template, i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), a = ((t == null ? void 0 : t.creationScope) ?? Wt).importNode(e, !0);
952
948
  xt.currentNode = a;
953
- let c = xt.nextNode(), d = 0, l = 0, f = n[0];
949
+ let c = xt.nextNode(), l = 0, d = 0, f = n[0];
954
950
  for (; f !== void 0; ) {
955
- if (d === f.index) {
956
- let r;
957
- f.type === ws ? r = new os(c, c.nextSibling, this, t) : f.type === Un ? (f.name === ji && i.set(c, l), f.name === Ji && o.set(c, l), r = new f.ctor(c, f.name, f.strings, this, t)) : f.type === Fn && (r = new Gc(c, this, t)), this._$parts.push(r), f = n[++l];
951
+ if (l === f.index) {
952
+ let o;
953
+ f.type === ys ? o = new rs(c, c.nextSibling, this, t) : f.type === Bn ? (f.name === Zi && i.set(c, d), f.name === Xi && r.set(c, d), o = new f.ctor(c, f.name, f.strings, this, t)) : f.type === Kn && (o = new Zc(c, this, t)), this._$parts.push(o), f = n[++d];
958
954
  }
959
- d !== (f == null ? void 0 : f.index) && (c = xt.nextNode(), d++);
955
+ l !== (f == null ? void 0 : f.index) && (c = xt.nextNode(), l++);
960
956
  }
961
- return i.forEach((r, m) => {
962
- const h = new Hc(m, r);
957
+ return i.forEach((o, m) => {
958
+ const h = new jc(m, o);
963
959
  this._$conditions.push(h);
964
960
  let g = m;
965
961
  for (; g = g.nextElementSibling; ) {
966
- const $ = o.get(g);
962
+ const $ = r.get(g);
967
963
  if ($ === void 0) break;
968
964
  h.push(g, $);
969
965
  }
@@ -972,16 +968,16 @@ class Ic {
972
968
  _update(t) {
973
969
  let e = 0;
974
970
  for (const n of this._$parts)
975
- n !== void 0 && (n.strings !== void 0 ? (n._$setValue(t, n, e), e += n.strings.length - 2) : n.name === ji || n.name === Ji || n._$setValue(t[e])), e++;
971
+ n !== void 0 && (n.strings !== void 0 ? (n._$setValue(t, n, e), e += n.strings.length - 2) : n.name === Zi || n.name === Xi || n._$setValue(t[e])), e++;
976
972
  this._$conditions.forEach((n) => n.update(t));
977
973
  }
978
974
  }
979
- class Hc {
975
+ class jc {
980
976
  constructor(t, e) {
981
977
  v(this, "mark");
982
978
  v(this, "list");
983
979
  const n = re();
984
- t.before(n), this.mark = n, this.list = [{ ele: t, idx: e }], this.check();
980
+ n._$chain = this, t.before(n), this.mark = n, this.list = [{ ele: t, idx: e }], this.check();
985
981
  }
986
982
  get next() {
987
983
  return this.list.at(-1).ele.nextElementSibling;
@@ -991,16 +987,16 @@ class Hc {
991
987
  }
992
988
  check() {
993
989
  const t = this.next;
994
- t != null && t.attributes.getNamedItem(Qi) && (this.list.push({ ele: t }), t.removeAttribute(Qi));
990
+ t != null && t.attributes.getNamedItem(tr) && (this.list.push({ ele: t }), t.removeAttribute(tr));
995
991
  }
996
992
  update(t) {
997
- const { mark: e, list: n } = this, i = n.find(({ idx: o }) => o === void 0 || !!t[o]);
998
- i && !i.ele.parentNode && e.after(i.ele), n.forEach(({ ele: o }) => (!i || o !== i.ele) && o.remove());
993
+ const { mark: e, list: n } = this, i = n.find(({ idx: r }) => r === void 0 || !!t[r]);
994
+ i && !i.ele.parentNode && e.after(i.ele), n.forEach(({ ele: r }) => (!i || r !== i.ele) && r.remove());
999
995
  }
1000
996
  }
1001
- class os {
997
+ class rs {
1002
998
  constructor(t, e, n, i) {
1003
- v(this, "type", ws);
999
+ v(this, "type", ys);
1004
1000
  v(this, "options");
1005
1001
  v(this, "_$committedValue");
1006
1002
  /** @internal */
@@ -1069,7 +1065,7 @@ class os {
1069
1065
  return this._$endNode;
1070
1066
  }
1071
1067
  _$setValue(t, e = this) {
1072
- this.parentNode && (t = oe(this, t, e), je(t) ? jt(t) || t === "" ? (jt(this._$committedValue) || this._$clear(), this._$committedValue = void 0) : t !== this._$committedValue && t !== Bn && this._commitText(t) : t instanceof qr ? this._commitTemplateResult(t) : t.nodeType !== void 0 ? this._commitNode(t) : wc(t) ? this._commitIterable(t) : this._commitText(t));
1068
+ this.parentNode && (t = oe(this, t, e), Ke(t) ? Qt(t) || t === "" ? (Qt(this._$committedValue) || this._$clear(), this._$committedValue = void 0) : t !== this._$committedValue && t !== Qn && this._commitText(t) : t instanceof jr ? this._commitTemplateResult(t) : t.nodeType !== void 0 ? this._commitNode(t) : Ac(t) ? this._commitIterable(t) : this._commitText(t));
1073
1069
  }
1074
1070
  _insert(t) {
1075
1071
  return this._$startNode.parentNode.insertBefore(t, this._$endNode);
@@ -1078,7 +1074,7 @@ class os {
1078
1074
  this._$committedValue !== t && (this._$clear(), this._$committedValue = this._insert(t));
1079
1075
  }
1080
1076
  _commitText(t) {
1081
- if (!jt(this._$committedValue) && je(this._$committedValue)) {
1077
+ if (!Qt(this._$committedValue) && Ke(this._$committedValue)) {
1082
1078
  const e = this._$startNode.nextSibling;
1083
1079
  e.data = t;
1084
1080
  } else
@@ -1091,24 +1087,24 @@ class os {
1091
1087
  if (((i = this._$committedValue) == null ? void 0 : i._$template) === n)
1092
1088
  this._$committedValue._update(e);
1093
1089
  else {
1094
- const o = new Ic(n, this), a = o._clone(this.options);
1095
- o._update(e), this._commitNode(a), this._$committedValue = o;
1090
+ const r = new Kc(n, this), a = r._clone(this.options);
1091
+ r._update(e), this._commitNode(a), this._$committedValue = r;
1096
1092
  }
1097
1093
  }
1098
1094
  // Overridden via `litHtmlPolyfillSupport` to provide platform support.
1099
1095
  /** @internal */
1100
1096
  _$getTemplate(t) {
1101
- let e = Yi.get(t.strings);
1102
- return e === void 0 && Yi.set(t.strings, e = new Kn(t)), e;
1097
+ let e = er.get(t.strings);
1098
+ return e === void 0 && er.set(t.strings, e = new Jn(t)), e;
1103
1099
  }
1104
1100
  _commitIterable(t) {
1105
1101
  Array.isArray(this._$committedValue) || (this._$committedValue = [], this._$clear());
1106
1102
  const e = this._$committedValue;
1107
1103
  let n = 0, i;
1108
- for (const o of t)
1104
+ for (const r of t)
1109
1105
  n === e.length ? e.push(
1110
- i = new os(this._insert(re()), this._insert(re()), this, this.options)
1111
- ) : i = e[n], i._$setValue(o), n++;
1106
+ i = new rs(this._insert(re()), this._insert(re()), this, this.options)
1107
+ ) : i = e[n], i._$setValue(r), n++;
1112
1108
  n < e.length && (this._$clear(i && i._$endNode.nextSibling, n), e.length = n);
1113
1109
  }
1114
1110
  /**
@@ -1141,9 +1137,9 @@ class os {
1141
1137
  this._$parent === void 0 && (this.__isConnected = t, (e = this._$notifyConnectionChanged) == null || e.call(this, t));
1142
1138
  }
1143
1139
  }
1144
- class Us {
1145
- constructor(t, e, n, i, o) {
1146
- v(this, "type", Un);
1140
+ class Ds {
1141
+ constructor(t, e, n, i, r) {
1142
+ v(this, "type", Bn);
1147
1143
  v(this, "element");
1148
1144
  v(this, "name");
1149
1145
  v(this, "options");
@@ -1161,7 +1157,7 @@ class Us {
1161
1157
  v(this, "_$parent");
1162
1158
  /** @internal */
1163
1159
  v(this, "_$disconnectableChildren");
1164
- this.element = t, this.name = e, this._$parent = i, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$committedValue = new Array(n.length - 1).fill(new String()), this.strings = n) : this._$committedValue = void 0;
1160
+ this.element = t, this.name = e, this._$parent = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$committedValue = new Array(n.length - 1).fill(new String()), this.strings = n) : this._$committedValue = void 0;
1165
1161
  }
1166
1162
  get tagName() {
1167
1163
  return this.element.tagName;
@@ -1193,63 +1189,63 @@ class Us {
1193
1189
  * @internal
1194
1190
  */
1195
1191
  _$setValue(t, e = this, n, i) {
1196
- const o = this.strings;
1192
+ const r = this.strings;
1197
1193
  let a = !1;
1198
- if (o === void 0)
1199
- t = oe(this, t, e, 0), a = !je(t) || t !== this._$committedValue, a && (this._$committedValue = t);
1194
+ if (r === void 0)
1195
+ t = oe(this, t, e, 0), a = !Ke(t) || t !== this._$committedValue, a && (this._$committedValue = t);
1200
1196
  else {
1201
1197
  const c = t;
1202
- t = o[0];
1203
- let d, l;
1204
- for (d = 0; d < o.length - 1; d++)
1205
- l = oe(this, c[n + d], e, d), a || (a = !je(l) || l !== this._$committedValue[d]), jt(l) ? t = void 0 : jt(t) || (t += l + o[d + 1]), this._$committedValue[d] = l;
1198
+ t = r[0];
1199
+ let l, d;
1200
+ for (l = 0; l < r.length - 1; l++)
1201
+ d = oe(this, c[n + l], e, l), a || (a = !Ke(d) || d !== this._$committedValue[l]), Qt(d) ? t = void 0 : Qt(t) || (t += d + r[l + 1]), this._$committedValue[l] = d;
1206
1202
  }
1207
1203
  a && !i && this._commitValue(t);
1208
1204
  }
1209
1205
  /** @internal */
1210
1206
  _commitValue(t) {
1211
- jt(t) ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t);
1207
+ Qt(t) ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t);
1212
1208
  }
1213
1209
  }
1214
- class Wc extends Us {
1210
+ class Qc extends Ds {
1215
1211
  constructor() {
1216
1212
  super(...arguments);
1217
- v(this, "type", Mc);
1213
+ v(this, "type", Vc);
1218
1214
  }
1219
1215
  /** @internal */
1220
1216
  _commitValue(e) {
1221
1217
  this.element[this.name] = e;
1222
1218
  }
1223
1219
  }
1224
- class zc extends Us {
1220
+ class Jc extends Ds {
1225
1221
  constructor() {
1226
1222
  super(...arguments);
1227
- v(this, "type", Oc);
1223
+ v(this, "type", Gc);
1228
1224
  }
1229
1225
  /** @internal */
1230
1226
  _commitValue(e) {
1231
1227
  this.element.toggleAttribute(this.name, !!e);
1232
1228
  }
1233
1229
  }
1234
- class Vc extends Us {
1230
+ class Yc extends Ds {
1235
1231
  constructor() {
1236
1232
  super(...arguments);
1237
- v(this, "type", xc);
1233
+ v(this, "type", Dc);
1238
1234
  }
1239
1235
  /** @internal */
1240
1236
  _$setValue(e, n = this) {
1241
1237
  e = oe(this, e, n, 0);
1242
- const i = this._$committedValue, o = i && (!e || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive), a = e && (!i || o);
1243
- o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$committedValue = e;
1238
+ const i = this._$committedValue, r = i && (!e || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive), a = e && (!i || r);
1239
+ r && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$committedValue = e;
1244
1240
  }
1245
1241
  handleEvent(e) {
1246
1242
  var n;
1247
1243
  typeof this._$committedValue == "function" ? this._$committedValue.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, e) : this._$committedValue.handleEvent(e);
1248
1244
  }
1249
1245
  }
1250
- class Gc {
1246
+ class Zc {
1251
1247
  constructor(t, e, n) {
1252
- v(this, "type", Fn);
1248
+ v(this, "type", Kn);
1253
1249
  /** @internal */
1254
1250
  v(this, "__directive");
1255
1251
  // This is to ensure that every Part has a _$committedValue
@@ -1268,7 +1264,7 @@ class Gc {
1268
1264
  }
1269
1265
  _$setValue(t) {
1270
1266
  if (t)
1271
- if (t instanceof Br)
1267
+ if (t instanceof Qr)
1272
1268
  t.value = this.element;
1273
1269
  else if (t._$litDirective$)
1274
1270
  oe(this, t);
@@ -1280,47 +1276,42 @@ class Gc {
1280
1276
  }
1281
1277
  }
1282
1278
  }
1283
- const Pl = () => new Br();
1284
- class Br {
1279
+ const Wl = () => new Qr();
1280
+ class Qr {
1285
1281
  constructor() {
1286
1282
  v(this, "value");
1287
1283
  }
1288
1284
  }
1289
- const Dc = (s, t, e) => {
1285
+ const Xc = (s, t, e) => {
1290
1286
  const n = (e == null ? void 0 : e.renderBefore) ?? t;
1291
1287
  let i = n._$litPart$;
1292
1288
  if (i === void 0) {
1293
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
1294
- n._$litPart$ = i = new os(
1295
- t.insertBefore(re(), o),
1296
- o,
1289
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
1290
+ n._$litPart$ = i = new rs(
1291
+ t.insertBefore(re(), r),
1292
+ r,
1297
1293
  void 0,
1298
1294
  e ?? {}
1299
1295
  );
1300
1296
  }
1301
1297
  return i._$setValue(s), i;
1302
- }, Uc = "2.2.1", Fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1298
+ }, th = "2.2.3", eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1303
1299
  __proto__: null,
1304
- version: Uc
1300
+ version: th
1305
1301
  }, Symbol.toStringTag, { value: "Module" }));
1306
1302
  /**
1307
1303
  * @license
1308
1304
  * Copyright 2017 Google LLC
1309
1305
  * SPDX-License-Identifier: BSD-3-Clause
1310
1306
  */
1311
- const qc = {
1312
- ATTRIBUTE: 1,
1313
- CHILD: 2,
1314
- PROPERTY: 3,
1315
- BOOLEAN_ATTRIBUTE: 4,
1316
- EVENT: 5,
1317
- ELEMENT: 6
1318
- }, Bc = (s) => (...t) => ({
1307
+ const sh = {
1308
+ CHILD: 2
1309
+ }, nh = (s) => (...t) => ({
1319
1310
  // This property needs to remain unminified.
1320
1311
  _$litDirective$: s,
1321
1312
  values: t
1322
1313
  });
1323
- class Kc {
1314
+ class ih {
1324
1315
  constructor() {
1325
1316
  //@internal
1326
1317
  v(this, "__part");
@@ -1350,29 +1341,29 @@ class Kc {
1350
1341
  return this.render(...e);
1351
1342
  }
1352
1343
  }
1353
- const Zi = () => document.createComment(""), ye = (s, t, e) => {
1354
- var o;
1344
+ const sr = () => document.createComment(""), we = (s, t, e) => {
1345
+ var r;
1355
1346
  const n = s._$startNode.parentNode, i = t === void 0 ? s._$endNode : t._$startNode;
1356
1347
  if (e === void 0) {
1357
- const a = n.insertBefore(Zi(), i), c = n.insertBefore(Zi(), i);
1358
- e = new os(a, c, s, s.options);
1348
+ const a = n.insertBefore(sr(), i), c = n.insertBefore(sr(), i);
1349
+ e = new rs(a, c, s, s.options);
1359
1350
  } else {
1360
- const a = e._$endNode.nextSibling, c = e._$parent, d = c !== s;
1361
- if (d) {
1362
- (o = e._$reparentDisconnectables) == null || o.call(e, s), e._$parent = s;
1363
- let l;
1364
- e._$notifyConnectionChanged !== void 0 && (l = s._$isConnected) !== c._$isConnected && e._$notifyConnectionChanged(l);
1351
+ const a = e._$endNode.nextSibling, c = e._$parent, l = c !== s;
1352
+ if (l) {
1353
+ (r = e._$reparentDisconnectables) == null || r.call(e, s), e._$parent = s;
1354
+ let d;
1355
+ e._$notifyConnectionChanged !== void 0 && (d = s._$isConnected) !== c._$isConnected && e._$notifyConnectionChanged(d);
1365
1356
  }
1366
- if (a !== i || d) {
1367
- let l = e._$startNode;
1368
- for (; l !== a; ) {
1369
- const f = l.nextSibling;
1370
- n.insertBefore(l, i), l = f;
1357
+ if (a !== i || l) {
1358
+ let d = e._$startNode;
1359
+ for (; d !== a; ) {
1360
+ const f = d.nextSibling;
1361
+ n.insertBefore(d, i), d = f;
1371
1362
  }
1372
1363
  }
1373
1364
  }
1374
1365
  return e;
1375
- }, Pt = (s, t, e = s) => (s._$setValue(t, e), s), jc = {}, Jc = (s, t = jc) => s._$committedValue = t, Qc = (s) => s._$committedValue, tn = (s) => {
1366
+ }, Pt = (s, t, e = s) => (s._$setValue(t, e), s), rh = {}, oh = (s, t = rh) => s._$committedValue = t, ah = (s) => s._$committedValue, Zs = (s) => {
1376
1367
  var n;
1377
1368
  (n = s._$notifyConnectionChanged) == null || n.call(s, !1, !0);
1378
1369
  let t = s._$startNode;
@@ -1381,26 +1372,26 @@ const Zi = () => document.createComment(""), ye = (s, t, e) => {
1381
1372
  const i = t.nextSibling;
1382
1373
  t.remove(), t = i;
1383
1374
  }
1384
- }, Xi = (s, t, e) => {
1375
+ }, nr = (s, t, e) => {
1385
1376
  const n = /* @__PURE__ */ new Map();
1386
1377
  for (let i = t; i <= e; i++)
1387
1378
  n.set(s[i], i);
1388
1379
  return n;
1389
1380
  };
1390
- class Yc extends Kc {
1381
+ class ch extends ih {
1391
1382
  constructor(e) {
1392
1383
  super();
1393
1384
  v(this, "_itemKeys");
1394
- if (e.type !== qc.CHILD)
1385
+ if (e.type !== sh.CHILD)
1395
1386
  throw new Error("repeat() can only be used in text expressions");
1396
1387
  }
1397
1388
  _getValuesAndKeys(e, n, i) {
1398
- let o;
1399
- i === void 0 ? i = n : n !== void 0 && (o = n);
1389
+ let r;
1390
+ i === void 0 ? i = n : n !== void 0 && (r = n);
1400
1391
  const a = [], c = [];
1401
- let d = 0;
1402
- for (const l of e)
1403
- a[d] = o ? o(l, d) : d, c[d] = i(l, d), d++;
1392
+ let l = 0;
1393
+ for (const d of e)
1394
+ a[l] = r ? r(d, l) : l, c[l] = i(d, l), l++;
1404
1395
  return {
1405
1396
  values: c,
1406
1397
  keys: a
@@ -1409,116 +1400,116 @@ class Yc extends Kc {
1409
1400
  render(e, n, i) {
1410
1401
  return this._getValuesAndKeys(e, n, i).values;
1411
1402
  }
1412
- update(e, [n, i, o]) {
1413
- const a = Qc(e), { values: c, keys: d } = this._getValuesAndKeys(n, i, o);
1403
+ update(e, [n, i, r]) {
1404
+ const a = ah(e), { values: c, keys: l } = this._getValuesAndKeys(n, i, r);
1414
1405
  if (!Array.isArray(a))
1415
- return this._itemKeys = d, c;
1416
- const l = this._itemKeys ?? (this._itemKeys = []), f = [];
1417
- let r, m, h = 0, g = a.length - 1, $ = 0, w = c.length - 1;
1406
+ return this._itemKeys = l, c;
1407
+ const d = this._itemKeys ?? (this._itemKeys = []), f = [];
1408
+ let o, m, h = 0, g = a.length - 1, $ = 0, w = c.length - 1;
1418
1409
  for (; h <= g && $ <= w; )
1419
1410
  if (a[h] === null)
1420
1411
  h++;
1421
1412
  else if (a[g] === null)
1422
1413
  g--;
1423
- else if (l[h] === d[$])
1414
+ else if (d[h] === l[$])
1424
1415
  f[$] = Pt(a[h], c[$]), h++, $++;
1425
- else if (l[g] === d[w])
1416
+ else if (d[g] === l[w])
1426
1417
  f[w] = Pt(a[g], c[w]), g--, w--;
1427
- else if (l[h] === d[w])
1428
- f[w] = Pt(a[h], c[w]), ye(e, f[w + 1], a[h]), h++, w--;
1429
- else if (l[g] === d[$])
1430
- f[$] = Pt(a[g], c[$]), ye(e, a[h], a[g]), g--, $++;
1431
- else if (r === void 0 && (r = Xi(d, $, w), m = Xi(l, h, g)), !r.has(l[h]))
1432
- tn(a[h]), h++;
1433
- else if (!r.has(l[g]))
1434
- tn(a[g]), g--;
1418
+ else if (d[h] === l[w])
1419
+ f[w] = Pt(a[h], c[w]), we(e, f[w + 1], a[h]), h++, w--;
1420
+ else if (d[g] === l[$])
1421
+ f[$] = Pt(a[g], c[$]), we(e, a[h], a[g]), g--, $++;
1422
+ else if (o === void 0 && (o = nr(l, $, w), m = nr(d, h, g)), !o.has(d[h]))
1423
+ Zs(a[h]), h++;
1424
+ else if (!o.has(d[g]))
1425
+ Zs(a[g]), g--;
1435
1426
  else {
1436
- const P = m.get(d[$]), p = P !== void 0 ? a[P] : null;
1427
+ const k = m.get(l[$]), p = k !== void 0 ? a[k] : null;
1437
1428
  if (p === null) {
1438
- const b = ye(e, a[h]);
1429
+ const b = we(e, a[h]);
1439
1430
  Pt(b, c[$]), f[$] = b;
1440
1431
  } else
1441
- f[$] = Pt(p, c[$]), ye(e, a[h], p), a[P] = null;
1432
+ f[$] = Pt(p, c[$]), we(e, a[h], p), a[k] = null;
1442
1433
  $++;
1443
1434
  }
1444
1435
  for (; $ <= w; ) {
1445
- const P = ye(e, f[w + 1]);
1446
- Pt(P, c[$]), f[$++] = P;
1436
+ const k = we(e, f[w + 1]);
1437
+ Pt(k, c[$]), f[$++] = k;
1447
1438
  }
1448
1439
  for (; h <= g; ) {
1449
- const P = a[h++];
1450
- P !== null && tn(P);
1440
+ const k = a[h++];
1441
+ k !== null && Zs(k);
1451
1442
  }
1452
- return this._itemKeys = d, Jc(e, f), Bn;
1443
+ return this._itemKeys = l, oh(e, f), Qn;
1453
1444
  }
1454
1445
  }
1455
- const kl = Bc(Yc);
1456
- Or(Lc, Dc);
1446
+ const zl = nh(ch);
1447
+ Ar(Fc, Xc);
1457
1448
  globalThis.__GEM_DEVTOOLS__HOOK__ && !globalThis.__GEM_DEVTOOLS__HOOK__.GemElement && Object.assign(globalThis.__GEM_DEVTOOLS__HOOK__, {
1458
- ...oc,
1459
- ...$c,
1460
- ...tc,
1461
- ...Fc
1449
+ ...gc,
1450
+ ...Oc,
1451
+ ...hc,
1452
+ ...eh
1462
1453
  });
1463
- const Q = globalThis.history, Kr = Q.pushState.bind(Q), jr = Q.replaceState.bind(Q);
1464
- let Zc = 0;
1465
- const jn = () => `${performance.now()}-${++Zc}`, O = zt({
1454
+ const J = globalThis.history, Jr = J.pushState.bind(J), Yr = J.replaceState.bind(J);
1455
+ let hh = 0;
1456
+ const Yn = () => `${performance.now()}-${++hh}`, O = zt({
1466
1457
  $hasCloseHandle: !1,
1467
1458
  $hasOpenHandle: !1,
1468
1459
  $hasShouldCloseHandle: !1,
1469
1460
  $key: ""
1470
1461
  }), q = /* @__PURE__ */ new Map();
1471
- function Jr(s) {
1462
+ function Zr(s) {
1472
1463
  const { $key: t, $hasCloseHandle: e, $hasOpenHandle: n, $hasShouldCloseHandle: i } = s || {};
1473
1464
  if (O.$key !== t) {
1474
- if (t) throw new yt("`$key` is not allowed");
1475
- if (e) throw new yt("`$hasCloseHandle` is not allowed");
1476
- if (n) throw new yt("`$hasOpenHandle` is not allowed");
1477
- if (i) throw new yt("`$hasShouldCloseHandle` is not allowed");
1465
+ if (t) throw new wt("`$key` is not allowed");
1466
+ if (e) throw new wt("`$hasCloseHandle` is not allowed");
1467
+ if (n) throw new wt("`$hasOpenHandle` is not allowed");
1468
+ if (i) throw new wt("`$hasShouldCloseHandle` is not allowed");
1478
1469
  }
1479
1470
  }
1480
- function Qr(s) {
1471
+ function Xr(s) {
1481
1472
  return Y.basePath ? Y.basePath + s : s;
1482
1473
  }
1483
- function hn(s) {
1474
+ function ws(s) {
1484
1475
  return s === Y.basePath ? "/" : s.replace(new RegExp(`^${Y.basePath}/`), "/");
1485
1476
  }
1486
- function Jn() {
1477
+ function Zn() {
1487
1478
  Y.dispatchEvent(new CustomEvent("beforechange"));
1488
1479
  }
1489
1480
  function Es(s) {
1490
- const t = q.get(O.$key) || { path: hn(location.pathname), query: new Be() }, e = s.path ? kr(t.path, s.path) : hn(location.pathname), n = new Be(s.query ?? (s.path ? "" : location.search)), i = String(n) !== String(t.query), o = i ? n : t.query, a = e !== t.path || i, c = s.title || (a ? "" : document.title), d = s.close || s.data || s.open || s.shouldClose, l = decodeURIComponent(s.hash ?? (!a && d ? location.hash : ""));
1491
- return { ...s, title: c, path: e, query: o, hash: l };
1481
+ const t = q.get(O.$key) || { path: ws(location.pathname), query: new qe() }, e = s.path ? xr(t.path, s.path) : ws(location.pathname), n = new qe(s.query ?? (s.path ? "" : location.search)), i = String(n) !== String(t.query), r = i ? n : t.query, a = e !== t.path || i, c = s.title || (a ? "" : document.title), l = s.close || s.data || s.open || s.shouldClose, d = decodeURIComponent(s.hash ?? (!a && l ? location.hash : ""));
1482
+ return { ...s, title: c, path: e, query: r, hash: d };
1492
1483
  }
1493
- function tr(s, t) {
1494
- Jr(s.data);
1495
- const e = Es(s), { title: n, path: i, query: o, hash: a, close: c, open: d, shouldClose: l, data: f } = e, r = {
1484
+ function ir(s, t) {
1485
+ Zr(s.data);
1486
+ const e = Es(s), { title: n, path: i, query: r, hash: a, close: c, open: l, shouldClose: d, data: f } = e, o = {
1496
1487
  $hasCloseHandle: !!c,
1497
- $hasOpenHandle: !!d,
1498
- $hasShouldCloseHandle: !!l,
1499
- $key: jn(),
1488
+ $hasOpenHandle: !!l,
1489
+ $hasShouldCloseHandle: !!d,
1490
+ $key: Yn(),
1500
1491
  $title: n,
1501
1492
  ...f
1502
1493
  };
1503
- q.set(r.$key, e), Jn(), Ln(O), O(r);
1504
- const m = Qr(i) + new Be(o) + a, h = decodeURIComponent(location.hash);
1505
- t(r, n, m), h !== a && dispatchEvent(new CustomEvent("hashchange"));
1494
+ q.set(o.$key, e), Zn(), In(O), O(o);
1495
+ const m = Xr(i) + new qe(r) + a, h = decodeURIComponent(location.hash);
1496
+ t(o, n, m), h !== a && dispatchEvent(new CustomEvent("hashchange"));
1506
1497
  }
1507
- function er(s, t, e, n) {
1508
- Jr(s);
1498
+ function rr(s, t, e, n) {
1499
+ Zr(s);
1509
1500
  const i = {
1510
- $key: jn(),
1501
+ $key: Yn(),
1511
1502
  $title: t,
1512
1503
  ...s || {}
1513
- }, { pathname: o, search: a, hash: c } = new URL(e, location.origin + location.pathname), d = Es({ path: o, query: new Be(a), hash: c, title: t, data: s });
1514
- q.set(i.$key, d), Jn(), Ln(O), O(i);
1515
- const l = Qr(o) + d.query + c, f = location.hash;
1516
- n(i, t, l), f !== c && dispatchEvent(new CustomEvent("hashchange"));
1504
+ }, { pathname: r, search: a, hash: c } = new URL(e, location.origin + location.pathname), l = Es({ path: r, query: new qe(a), hash: c, title: t, data: s });
1505
+ q.set(i.$key, l), Zn(), In(O), O(i);
1506
+ const d = Xr(r) + l.query + c, f = location.hash;
1507
+ n(i, t, d), f !== c && dispatchEvent(new CustomEvent("hashchange"));
1517
1508
  }
1518
- const ln = zt({
1509
+ const hn = zt({
1519
1510
  basePath: ""
1520
1511
  });
1521
- class Xc extends EventTarget {
1512
+ class lh extends EventTarget {
1522
1513
  get store() {
1523
1514
  return O;
1524
1515
  }
@@ -1526,10 +1517,10 @@ class Xc extends EventTarget {
1526
1517
  return O.$key;
1527
1518
  }
1528
1519
  get basePath() {
1529
- return ln.basePath;
1520
+ return hn.basePath;
1530
1521
  }
1531
1522
  set basePath(t) {
1532
- ln({ basePath: t }), Object.assign(q.get(O.$key), { path: hn(location.pathname) });
1523
+ hn({ basePath: t }), Object.assign(q.get(O.$key), { path: ws(location.pathname) });
1533
1524
  }
1534
1525
  getParams() {
1535
1526
  return q.get(O.$key);
@@ -1538,56 +1529,56 @@ class Xc extends EventTarget {
1538
1529
  Object.assign(q.get(O.$key), t), O();
1539
1530
  }
1540
1531
  push(t) {
1541
- tr(t, Kr);
1532
+ ir(t, Jr);
1542
1533
  }
1543
1534
  replace(t) {
1544
- tr(t, jr);
1535
+ ir(t, Yr);
1545
1536
  }
1546
1537
  pushIgnoreCloseHandle(t) {
1547
1538
  var e, n;
1548
1539
  O.$hasCloseHandle ? ((n = (e = q.get(O.$key)) == null ? void 0 : e.close) == null || n.call(e), this.replace(t)) : this.push(t);
1549
1540
  }
1550
1541
  forward() {
1551
- Q.forward();
1542
+ J.forward();
1552
1543
  }
1553
1544
  back() {
1554
- Q.back();
1545
+ J.back();
1555
1546
  }
1556
1547
  }
1557
- const Y = new Xc(), Te = zt({ defaultTitle: document.title, url: "", title: "" }), th = { history: Y, titleStore: Te, basePathStore: ln };
1548
+ const Y = new lh(), qt = zt({ defaultTitle: document.title, url: "", title: "" }), dh = { history: Y, titleStore: qt, basePathStore: hn };
1558
1549
  if (!globalThis._GEMHISTORY) {
1559
- if (globalThis._GEMHISTORY = th, Q.pushState = (t, e, n) => {
1560
- er(t, e, n, Kr);
1561
- }, Q.replaceState = (t, e, n) => {
1562
- er(t, e, n, jr);
1550
+ if (globalThis._GEMHISTORY = dh, J.pushState = (t, e, n) => {
1551
+ rr(t, e, n, Jr);
1552
+ }, J.replaceState = (t, e, n) => {
1553
+ rr(t, e, n, Yr);
1563
1554
  }, addEventListener("hashchange", ({ isTrusted: t }) => {
1564
1555
  t && Y.replace({ hash: location.hash });
1565
- }), Q.state)
1566
- if (Q.state.$hasCloseHandle) {
1567
- O(Q.state);
1556
+ }), J.state)
1557
+ if (J.state.$hasCloseHandle) {
1558
+ O(J.state);
1568
1559
  const t = Es({ title: document.title });
1569
1560
  q.set(O.$key, t), Y.back();
1570
1561
  } else {
1571
1562
  const t = Es({ title: document.title, hash: location.hash });
1572
1563
  O({
1573
- $key: jn(),
1574
- ...Q.state || {}
1564
+ $key: Yn(),
1565
+ ...J.state || {}
1575
1566
  }), q.set(O.$key, t);
1576
1567
  }
1577
1568
  else {
1578
1569
  const { protocol: t, pathname: e, search: n, hash: i } = location;
1579
1570
  t.startsWith("http") && Y.replace({ path: e, query: n, hash: i });
1580
1571
  }
1581
- _t(Te, () => {
1572
+ mt(qt, () => {
1582
1573
  const t = q.get(O.$key);
1583
- t && (t.title = Te.title);
1584
- }), _t(O, () => {
1574
+ t && (t.title = qt.title);
1575
+ }), mt(O, () => {
1585
1576
  const { title: t } = Y.getParams();
1586
- t !== Te.title && Te({ title: t });
1577
+ t !== qt.title && qt({ title: t });
1587
1578
  });
1588
1579
  let s = !1;
1589
1580
  addEventListener("popstate", (t) => {
1590
- var o, a;
1581
+ var r, a;
1591
1582
  const e = t.state;
1592
1583
  if (!(e != null && e.$key))
1593
1584
  return;
@@ -1596,110 +1587,110 @@ if (!globalThis._GEMHISTORY) {
1596
1587
  return;
1597
1588
  }
1598
1589
  if (!q.has(e.$key)) {
1599
- const { pathname: c, search: d, hash: l } = location;
1590
+ const { pathname: c, search: l, hash: d } = location;
1600
1591
  q.set(e.$key, {
1601
- path: c,
1602
- query: new Be(d),
1603
- hash: decodeURIComponent(l),
1604
- title: e.$title,
1592
+ path: ws(c),
1593
+ query: new qe(l),
1594
+ hash: decodeURIComponent(d),
1595
+ title: qt.title || e.$title,
1605
1596
  // document.title 是导航前的
1606
1597
  data: e
1607
1598
  });
1608
1599
  }
1609
1600
  const n = O;
1610
1601
  if (parseFloat(e.$key) > parseFloat(n.$key) && e.$hasOpenHandle)
1611
- (a = (o = q.get(e.$key)) == null ? void 0 : o.open) == null || a.call(o);
1602
+ (a = (r = q.get(e.$key)) == null ? void 0 : r.open) == null || a.call(r);
1612
1603
  else if (n.$hasCloseHandle) {
1613
- const c = q.get(n.$key), d = c == null ? void 0 : c.close, l = c == null ? void 0 : c.shouldClose;
1614
- if (l && !l()) {
1604
+ const c = q.get(n.$key), l = c == null ? void 0 : c.close, d = c == null ? void 0 : c.shouldClose;
1605
+ if (d && !d()) {
1615
1606
  s = !0, Y.forward();
1616
1607
  return;
1617
1608
  } else
1618
- d ? d() : e.$hasCloseHandle && (s = !0, Y.back());
1609
+ l ? l() : e.$hasCloseHandle && (s = !0, Y.back());
1619
1610
  }
1620
- Jn(), Ln(O), O(e);
1611
+ Zn(), In(O), O(e);
1621
1612
  });
1622
1613
  }
1623
- const { history: x, titleStore: It, basePathStore: eh } = globalThis._GEMHISTORY;
1624
- var sh = Object.create, Qn = Object.defineProperty, nh = Object.getOwnPropertyDescriptor, Yr = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), de = (s) => {
1614
+ const { history: x, titleStore: Ht, basePathStore: uh } = globalThis._GEMHISTORY;
1615
+ var _h = Object.create, Xn = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, to = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ue = (s) => {
1625
1616
  throw TypeError(s);
1626
- }, Zr = (s, t, e) => t in s ? Qn(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, sr = (s, t) => Qn(s, "name", { value: t, configurable: !0 }), ih = (s) => [, , , sh((s == null ? void 0 : s[Yr("metadata")]) ?? null)], Xr = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Pe = (s) => s !== void 0 && typeof s != "function" ? de("Function expected") : s, rh = (s, t, e, n, i) => ({ kind: Xr[s], name: t, metadata: n, addInitializer: (o) => e._ ? de("Already initialized") : i.push(Pe(o || null)) }), oh = (s, t) => Zr(t, Yr("metadata"), s[3]), kt = (s, t, e, n) => {
1627
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
1617
+ }, eo = (s, t, e) => t in s ? Xn(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, or = (s, t) => Xn(s, "name", { value: t, configurable: !0 }), fh = (s) => [, , , _h((s == null ? void 0 : s[to("metadata")]) ?? null)], so = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ke = (s) => s !== void 0 && typeof s != "function" ? ue("Function expected") : s, mh = (s, t, e, n, i) => ({ kind: so[s], name: t, metadata: n, addInitializer: (r) => e._ ? ue("Already initialized") : i.push(ke(r || null)) }), gh = (s, t) => eo(t, to("metadata"), s[3]), Mt = (s, t, e, n) => {
1618
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
1628
1619
  return n;
1629
- }, Fs = (s, t, e, n, i, o) => {
1630
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = Xr[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && nh(r < 4 ? i : { get [e]() {
1631
- return rt(this, o);
1632
- }, set [e](u) {
1633
- return qe(this, o, u);
1620
+ }, Us = (s, t, e, n, i, r) => {
1621
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = so[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && ph(o < 4 ? i : { get [e]() {
1622
+ return nt(this, r);
1623
+ }, set [e](_) {
1624
+ return Fe(this, r, _);
1634
1625
  } }, e));
1635
- r ? h && r < 4 && sr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : sr(i, e);
1626
+ o ? h && o < 4 && or(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : or(i, e);
1636
1627
  for (var b = n.length - 1; b >= 0; b--)
1637
- l = rh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => ah(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? rt : ch)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => qe(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? Pe(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? de("Object expected") : (Pe(a = c.get) && (p.get = a), Pe(a = c.set) && (p.set = a), Pe(a = c.init) && w.unshift(a));
1638
- return r || oh(s, i), p && Qn(i, e, p), h ? r ^ 4 ? o : p : i;
1639
- }, we = (s, t, e) => Zr(s, typeof t != "symbol" ? t + "" : t, e), Yn = (s, t, e) => t.has(s) || de("Cannot " + e), ah = (s, t) => Object(t) !== t ? de('Cannot use the "in" operator on this value') : s.has(t), rt = (s, t, e) => (Yn(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Dt = (s, t, e) => t.has(s) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), qe = (s, t, e, n) => (Yn(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), ch = (s, t, e) => (Yn(s, t, "access private method"), e), to, eo, so, dn, no, Z, ke, Me, Oe, un, ds, Zn;
1640
- const en = Symbol();
1641
- no = [Gs(x.store), Ds({ role: "dialog", ariaModal: "true" })];
1642
- class Je extends (dn = st, so = [D], eo = [zs], to = [Dn()], dn) {
1628
+ d = mh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => vh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? nt : $h)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Fe(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? ke(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ue("Object expected") : (ke(a = c.get) && (p.get = a), ke(a = c.set) && (p.set = a), ke(a = c.init) && w.unshift(a));
1629
+ return o || gh(s, i), p && Xn(i, e, p), h ? o ^ 4 ? r : p : i;
1630
+ }, Ee = (s, t, e) => eo(s, typeof t != "symbol" ? t + "" : t, e), ti = (s, t, e) => t.has(s) || ue("Cannot " + e), vh = (s, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : s.has(t), nt = (s, t, e) => (ti(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Dt = (s, t, e) => t.has(s) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Fe = (s, t, e, n) => (ti(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), $h = (s, t, e) => (ti(s, t, "access private method"), e), no, io, ro, ln, oo, Z, Pe, Me, Oe, dn, ds, ei;
1631
+ const Xs = Symbol();
1632
+ oo = [Vs(x.store), Gs({ role: "dialog", ariaModal: "true" })];
1633
+ class je extends (ln = tt, ro = [B], io = [zs], no = [qn()], ln) {
1643
1634
  constructor() {
1644
- super(...arguments), we(this, "label", kt(Z, 8, this)), kt(Z, 11, this), we(this, "opened", kt(Z, 12, this)), kt(Z, 15, this), Dt(this, ke), Dt(this, Me), Dt(this, Oe, []), Dt(this, un, () => {
1635
+ super(...arguments), Ee(this, "label", Mt(Z, 8, this)), Mt(Z, 11, this), Ee(this, "opened", Mt(Z, 12, this)), Mt(Z, 15, this), Dt(this, Pe), Dt(this, Me), Dt(this, Oe, []), Dt(this, dn, () => {
1645
1636
  var t;
1646
- this.inert = !0, rt(this, Oe).forEach((e) => e.inert = !1), rt(this, ke) ? rt(this, ke).before(this) : rt(this, Me) && ((t = rt(this, Me)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
1637
+ this.inert = !0, nt(this, Oe).forEach((e) => e.inert = !1), nt(this, Pe) ? nt(this, Pe).before(this) : nt(this, Me) && ((t = nt(this, Me)) == null || t.appendChild(this)), this.dispatchEvent(new CustomEvent("close")), this.opened = !1;
1647
1638
  }), Dt(this, ds, () => {
1648
- this.hidden = !1, this.inert = !1, qe(this, ke, this.nextSibling), qe(this, Me, this.parentElement || this.getRootNode()), qe(this, Oe, [...document.body.children].filter((t) => !t.inert)), rt(this, Oe).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
1649
- }), Dt(this, Zn, kt(Z, 16, this, () => this.inert = !0)), kt(Z, 19, this), we(this, "open", () => {
1639
+ this.hidden = !1, this.inert = !1, Fe(this, Pe, this.nextSibling), Fe(this, Me, this.parentElement || this.getRootNode()), Fe(this, Oe, [...document.body.children].filter((t) => !t.inert)), nt(this, Oe).forEach((t) => t.inert = !0), document.body.append(this), this.dispatchEvent(new CustomEvent("open")), this.opened = !0;
1640
+ }), Dt(this, ei, Mt(Z, 16, this, () => this.inert = !0)), Mt(Z, 19, this), Ee(this, "open", () => {
1650
1641
  if (!this.opened)
1651
- return rt(this, ds).call(this), x.push({
1642
+ return nt(this, ds).call(this), x.push({
1652
1643
  title: this.label,
1653
- open: rt(this, ds),
1654
- close: rt(this, un),
1644
+ open: nt(this, ds),
1645
+ close: nt(this, dn),
1655
1646
  shouldClose: this.shouldClose
1656
- }), en;
1657
- }), we(this, "close", () => (x.back(), en)), we(this, "forceClose", () => (this.opened = !1, setTimeout(this.close, 100), en));
1647
+ }), Xs;
1648
+ }), Ee(this, "close", () => (x.back(), Xs)), Ee(this, "forceClose", () => (this.opened = !1, setTimeout(this.close, 100), Xs));
1658
1649
  }
1659
1650
  shouldClose() {
1660
1651
  return !0;
1661
1652
  }
1662
1653
  }
1663
- Z = ih(dn);
1664
- ke = /* @__PURE__ */ new WeakMap();
1654
+ Z = fh(ln);
1655
+ Pe = /* @__PURE__ */ new WeakMap();
1665
1656
  Me = /* @__PURE__ */ new WeakMap();
1666
1657
  Oe = /* @__PURE__ */ new WeakMap();
1667
- un = /* @__PURE__ */ new WeakMap();
1658
+ dn = /* @__PURE__ */ new WeakMap();
1668
1659
  ds = /* @__PURE__ */ new WeakMap();
1669
- Zn = /* @__PURE__ */ new WeakMap();
1670
- Fs(Z, 5, "label", so, Je);
1671
- Fs(Z, 5, "opened", eo, Je);
1672
- Fs(Z, 21, "#init", to, Zn);
1673
- Je = Fs(Z, 0, "GemDialogBaseElement", no, Je);
1674
- kt(Z, 1, Je);
1675
- var hh = Object.create, Xn = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, io = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ue = (s) => {
1660
+ ei = /* @__PURE__ */ new WeakMap();
1661
+ Us(Z, 5, "label", ro, je);
1662
+ Us(Z, 5, "opened", io, je);
1663
+ Us(Z, 21, "#init", no, ei);
1664
+ je = Us(Z, 0, "GemDialogBaseElement", oo, je);
1665
+ Mt(Z, 1, je);
1666
+ var Sh = Object.create, si = Object.defineProperty, yh = Object.getOwnPropertyDescriptor, ao = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), _e = (s) => {
1676
1667
  throw TypeError(s);
1677
- }, ro = (s, t, e) => t in s ? Xn(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, nr = (s, t) => Xn(s, "name", { value: t, configurable: !0 }), dh = (s) => [, , , hh((s == null ? void 0 : s[io("metadata")]) ?? null)], oo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], xe = (s) => s !== void 0 && typeof s != "function" ? ue("Function expected") : s, uh = (s, t, e, n, i) => ({ kind: oo[s], name: t, metadata: n, addInitializer: (o) => e._ ? ue("Already initialized") : i.push(xe(o || null)) }), _h = (s, t) => ro(t, io("metadata"), s[3]), Ee = (s, t, e, n) => {
1678
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
1668
+ }, co = (s, t, e) => t in s ? si(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ar = (s, t) => si(s, "name", { value: t, configurable: !0 }), wh = (s) => [, , , Sh((s == null ? void 0 : s[ao("metadata")]) ?? null)], ho = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], xe = (s) => s !== void 0 && typeof s != "function" ? _e("Function expected") : s, Eh = (s, t, e, n, i) => ({ kind: ho[s], name: t, metadata: n, addInitializer: (r) => e._ ? _e("Already initialized") : i.push(xe(r || null)) }), Ch = (s, t) => co(t, ao("metadata"), s[3]), Ce = (s, t, e, n) => {
1669
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
1679
1670
  return n;
1680
- }, sn = (s, t, e, n, i, o) => {
1681
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = oo[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && lh(r < 4 ? i : { get [e]() {
1682
- return ir(this, o);
1683
- }, set [e](u) {
1684
- return or(this, o, u);
1671
+ }, tn = (s, t, e, n, i, r) => {
1672
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = ho[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && yh(o < 4 ? i : { get [e]() {
1673
+ return cr(this, r);
1674
+ }, set [e](_) {
1675
+ return lr(this, r, _);
1685
1676
  } }, e));
1686
- r ? h && r < 4 && nr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : nr(i, e);
1677
+ o ? h && o < 4 && ar(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : ar(i, e);
1687
1678
  for (var b = n.length - 1; b >= 0; b--)
1688
- l = uh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => ph(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? ir : fh)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => or(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? xe(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ue("Object expected") : (xe(a = c.get) && (p.get = a), xe(a = c.set) && (p.set = a), xe(a = c.init) && w.unshift(a));
1689
- return r || _h(s, i), p && Xn(i, e, p), h ? r ^ 4 ? o : p : i;
1690
- }, as = (s, t, e) => ro(s, typeof t != "symbol" ? t + "" : t, e), ti = (s, t, e) => t.has(s) || ue("Cannot " + e), ph = (s, t) => Object(t) !== t ? ue('Cannot use the "in" operator on this value') : s.has(t), ir = (s, t, e) => (ti(s, t, "read from private field"), e ? e.call(s) : t.get(s)), rr = (s, t, e) => t.has(s) ? ue("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), or = (s, t, e, n) => (ti(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), fh = (s, t, e) => (ti(s, t, "access private method"), e);
1679
+ d = Eh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => bh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? cr : Th)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => lr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? xe(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? _e("Object expected") : (xe(a = c.get) && (p.get = a), xe(a = c.set) && (p.set = a), xe(a = c.init) && w.unshift(a));
1680
+ return o || Ch(s, i), p && si(i, e, p), h ? o ^ 4 ? r : p : i;
1681
+ }, as = (s, t, e) => co(s, typeof t != "symbol" ? t + "" : t, e), ni = (s, t, e) => t.has(s) || _e("Cannot " + e), bh = (s, t) => Object(t) !== t ? _e('Cannot use the "in" operator on this value') : s.has(t), cr = (s, t, e) => (ni(s, t, "read from private field"), e ? e.call(s) : t.get(s)), hr = (s, t, e) => t.has(s) ? _e("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), lr = (s, t, e, n) => (ni(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Th = (s, t, e) => (ni(s, t, "access private method"), e);
1691
1682
  const cs = Symbol("open mark");
1692
- function Ml(s) {
1693
- var t, e, n, i, o, a, c;
1694
- const d = Symbol();
1695
- i = [Vt(), Ds({ role: "alertdialog", ariaModal: "true" })];
1696
- let l = class G extends (n = st, e = [Ke()], t = [Ke()], n) {
1683
+ function Vl(s) {
1684
+ var t, e, n, i, r, a, c;
1685
+ const l = Symbol();
1686
+ i = [Vt(), Gs({ role: "alertdialog", ariaModal: "true" })];
1687
+ let d = class lo extends (n = tt, e = [Be()], t = [Be()], n) {
1697
1688
  constructor() {
1698
- super(...arguments), as(this, "label", ""), rr(this, a, Ee(o, 8, this, () => _t(x.store, this.update))), Ee(o, 11, this), rr(this, c, Ee(o, 12, this, () => _t(G.store, this.update))), Ee(o, 15, this);
1689
+ super(...arguments), as(this, "label", ""), hr(this, a, Ce(r, 8, this, () => mt(x.store, this.update))), Ce(r, 11, this), hr(this, c, Ce(r, 12, this, () => mt(lo.store, this.update))), Ce(r, 15, this);
1699
1690
  }
1700
1691
  /**@final */
1701
1692
  static get isOpen() {
1702
- return G.store[cs];
1693
+ return this.store[cs];
1703
1694
  }
1704
1695
  /**
1705
1696
  * @final
@@ -1707,24 +1698,24 @@ function Ml(s) {
1707
1698
  * 浏览器 history 为异步 API,需要设置较长延迟;
1708
1699
  */
1709
1700
  static open(m) {
1710
- const h = new G();
1711
- G.instance = h, G.inertStore = [...document.body.children].filter(($) => !$.inert), G.inertStore.forEach(($) => $.inert = !0), document.body.append(h);
1712
- const g = () => G.store({ [cs]: !0, ...m });
1701
+ const h = new this();
1702
+ this.instance = h, this.inertStore = [...document.body.children].filter(($) => !$.inert), this.inertStore.forEach(($) => $.inert = !0), document.body.append(h);
1703
+ const g = () => this.store({ [cs]: !0, ...m });
1713
1704
  return setTimeout(() => {
1714
1705
  g(), x.push({
1715
1706
  title: h.label,
1716
1707
  open: g,
1717
- close: G.closeHandle.bind(G),
1718
- shouldClose: G.shouldClose.bind(G)
1708
+ close: this.closeHandle.bind(this),
1709
+ shouldClose: this.shouldClose.bind(this)
1719
1710
  });
1720
- }, 100), d;
1711
+ }, 100), l;
1721
1712
  }
1722
1713
  /**
1723
1714
  * @final
1724
1715
  * UI 中执行关闭
1725
1716
  */
1726
1717
  static close() {
1727
- return x.back(), d;
1718
+ return x.back(), l;
1728
1719
  }
1729
1720
  /**
1730
1721
  * @final
@@ -1732,7 +1723,7 @@ function Ml(s) {
1732
1723
  */
1733
1724
  static closeHandle() {
1734
1725
  var m;
1735
- return G.inertStore.forEach((h) => h.inert = !1), (m = G.instance) == null || m.remove(), G.store({ [cs]: !1, ...s }), d;
1726
+ return this.inertStore.forEach((h) => h.inert = !1), (m = this.instance) == null || m.remove(), this.store({ [cs]: !1, ...s }), l;
1736
1727
  }
1737
1728
  /**
1738
1729
  * 由于要操作浏览器历史记录,所以没有设计为 Promise;
@@ -1741,69 +1732,69 @@ function Ml(s) {
1741
1732
  return !0;
1742
1733
  }
1743
1734
  };
1744
- return o = dh(n), a = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), sn(o, 21, "#connectHistory", e, a), sn(o, 21, "#connectStore", t, c), l = sn(o, 0, "ModalElement", i, l), as(l, "inertStore", []), as(l, "instance", null), as(l, "store", zt({
1735
+ return r = wh(n), a = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), tn(r, 21, "#connectHistory", e, a), tn(r, 21, "#connectStore", t, c), d = tn(r, 0, "ModalElement", i, d), as(d, "inertStore", []), as(d, "instance", null), as(d, "store", zt({
1745
1736
  [cs]: !1,
1746
1737
  ...s
1747
- })), Ee(o, 1, l), l;
1738
+ })), Ce(r, 1, d), d;
1748
1739
  }
1749
- var mh = Object.create, ei = Object.defineProperty, gh = Object.getOwnPropertyDescriptor, ao = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), _e = (s) => {
1740
+ var kh = Object.create, ii = Object.defineProperty, Ph = Object.getOwnPropertyDescriptor, uo = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), pe = (s) => {
1750
1741
  throw TypeError(s);
1751
- }, co = (s, t, e) => t in s ? ei(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ar = (s, t) => ei(s, "name", { value: t, configurable: !0 }), ho = (s) => [, , , mh((s == null ? void 0 : s[ao("metadata")]) ?? null)], lo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ae = (s) => s !== void 0 && typeof s != "function" ? _e("Function expected") : s, vh = (s, t, e, n, i) => ({ kind: lo[s], name: t, metadata: n, addInitializer: (o) => e._ ? _e("Already initialized") : i.push(Ae(o || null)) }), $h = (s, t) => co(t, ao("metadata"), s[3]), T = (s, t, e, n) => {
1752
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
1742
+ }, _o = (s, t, e) => t in s ? ii(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, dr = (s, t) => ii(s, "name", { value: t, configurable: !0 }), po = (s) => [, , , kh((s == null ? void 0 : s[uo("metadata")]) ?? null)], fo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Le = (s) => s !== void 0 && typeof s != "function" ? pe("Function expected") : s, Mh = (s, t, e, n, i) => ({ kind: fo[s], name: t, metadata: n, addInitializer: (r) => e._ ? pe("Already initialized") : i.push(Le(r || null)) }), Oh = (s, t) => _o(t, uo("metadata"), s[3]), T = (s, t, e, n) => {
1743
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
1753
1744
  return n;
1754
- }, z = (s, t, e, n, i, o) => {
1755
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = lo[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && gh(r < 4 ? i : { get [e]() {
1756
- return H(this, o);
1757
- }, set [e](u) {
1758
- return Cs(this, o, u);
1745
+ }, W = (s, t, e, n, i, r) => {
1746
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = fo[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Ph(o < 4 ? i : { get [e]() {
1747
+ return V(this, r);
1748
+ }, set [e](_) {
1749
+ return Cs(this, r, _);
1759
1750
  } }, e));
1760
- r ? h && r < 4 && ar(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : ar(i, e);
1751
+ o ? h && o < 4 && dr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : dr(i, e);
1761
1752
  for (var b = n.length - 1; b >= 0; b--)
1762
- l = vh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => Sh(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? H : yh)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => Cs(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? Ae(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? _e("Object expected") : (Ae(a = c.get) && (p.get = a), Ae(a = c.set) && (p.set = a), Ae(a = c.init) && w.unshift(a));
1763
- return r || $h(s, i), p && ei(i, e, p), h ? r ^ 4 ? o : p : i;
1764
- }, V = (s, t, e) => co(s, typeof t != "symbol" ? t + "" : t, e), si = (s, t, e) => t.has(s) || _e("Cannot " + e), Sh = (s, t) => Object(t) !== t ? _e('Cannot use the "in" operator on this value') : s.has(t), H = (s, t, e) => (si(s, t, "read from private field"), e ? e.call(s) : t.get(s)), nt = (s, t, e) => t.has(s) ? _e("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Cs = (s, t, e, n) => (si(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), yh = (s, t, e) => (si(s, t, "access private method"), e), uo, _o, po, fo, mo, go, vo, $o, So, yo, wo, Eo, Co, bo, To, _n, Po, S, Mt, qt, Le, us, pn, Ne, _s, ni, ii, fn, ri, oi, ko, ai, Mo;
1765
- const Oo = "_";
1766
- class wh extends RegExp {
1753
+ d = Mh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => xh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? V : Lh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Cs(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Le(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? pe("Object expected") : (Le(a = c.get) && (p.get = a), Le(a = c.set) && (p.set = a), Le(a = c.init) && w.unshift(a));
1754
+ return o || Oh(s, i), p && ii(i, e, p), h ? o ^ 4 ? r : p : i;
1755
+ }, z = (s, t, e) => _o(s, typeof t != "symbol" ? t + "" : t, e), ri = (s, t, e) => t.has(s) || pe("Cannot " + e), xh = (s, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : s.has(t), V = (s, t, e) => (ri(s, t, "read from private field"), e ? e.call(s) : t.get(s)), et = (s, t, e) => t.has(s) ? pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Cs = (s, t, e, n) => (ri(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Lh = (s, t, e) => (ri(s, t, "access private method"), e), mo, go, vo, $o, So, yo, wo, Eo, Co, bo, To, ko, Po, Mo, Oo, un, xo, S, Ot, Bt, Ae, us, _n, Ne, pn, oi, ai, fn, ci, hi, Lo, li, Ao;
1756
+ const No = "_";
1757
+ class Ah extends RegExp {
1767
1758
  constructor(t) {
1768
1759
  let e = 0;
1769
1760
  super(
1770
- `^${t.replace(/((:[^/$]+)|(\*))/g, (n, i) => i === "*" ? `(?<${Oo}${e++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
1761
+ `^${t.replace(/((:[^/$]+)|(\*))/g, (n, i) => i === "*" ? `(?<${No}${e++}>.*)` : `(?<${i.slice(1)}>[^/]+)`)}$`
1771
1762
  );
1772
1763
  }
1773
1764
  }
1774
- function xo(s, t) {
1765
+ function Ro(s, t) {
1775
1766
  if (globalThis.URLPattern) {
1776
- const o = new URLPattern({ pathname: s }), a = o.exec({ pathname: t }) || o.exec({ pathname: `${t}/` });
1767
+ const r = new URLPattern({ pathname: s }), a = r.exec({ pathname: t }) || r.exec({ pathname: `${t}/` });
1777
1768
  return a ? a.pathname.groups : null;
1778
1769
  }
1779
- const e = new wh(s), n = t.match(e) || `${t}/`.match(e);
1770
+ const e = new Ah(s), n = t.match(e) || `${t}/`.match(e);
1780
1771
  if (!n) return null;
1781
1772
  const i = {};
1782
- return n.groups && Object.entries(n.groups).forEach(([o, a]) => {
1783
- i[o.startsWith(Oo) ? o.slice(1) : o] = a;
1773
+ return n.groups && Object.entries(n.groups).forEach(([r, a]) => {
1774
+ i[r.startsWith(No) ? r.slice(1) : r] = a;
1784
1775
  }), i;
1785
1776
  }
1786
- function ci(s, t) {
1777
+ function di(s, t) {
1787
1778
  let e = 0, n = s.pattern.replaceAll("*", () => `:${e++}`);
1788
1779
  const i = t == null ? void 0 : t.params;
1789
- return i && Object.keys(i).forEach((o) => {
1790
- n = n.replace(new RegExp(`:${o}`, "g"), i[o]);
1780
+ return i && Object.keys(i).forEach((r) => {
1781
+ n = n.replace(new RegExp(`:${r}`, "g"), i[r]);
1791
1782
  }), n;
1792
1783
  }
1793
- function Eh(s, t) {
1784
+ function Nh(s, t) {
1794
1785
  return {
1795
- path: ci(s, t),
1786
+ path: di(s, t),
1796
1787
  ...t
1797
1788
  };
1798
1789
  }
1799
- const nn = et``, cr = /* @__PURE__ */ new Map();
1800
- Po = [Gr({ penetrable: !0 })];
1801
- class I extends (_n = st, To = [Ws], bo = [B], Co = [B], Eo = [B], wo = [be], yo = [be], So = [be], $o = [be], vo = [B], go = [B], mo = [B], fo = [wt((t) => [t.scrollContainer])], po = [wt((t) => [t.scrollContainer])], _o = [wt((t) => {
1790
+ const en = ot``, ur = /* @__PURE__ */ new Map();
1791
+ xo = [Fr({ penetrable: !0 })];
1792
+ class H extends (un = tt, Oo = [Ws], Mo = [D], Po = [D], ko = [D], To = [Te], bo = [Te], Co = [Te], Eo = [Te], wo = [D], yo = [D], So = [D], $o = [ft((t) => [t.scrollContainer])], vo = [ft((t) => [t.scrollContainer])], go = [ft((t) => {
1802
1793
  var e;
1803
- return H(e = t, fn).call(e);
1804
- })], uo = [le((t) => !t.inert)], _n) {
1794
+ return V(e = t, fn).call(e);
1795
+ })], mo = [de((t) => !t.inert)], un) {
1805
1796
  constructor() {
1806
- super(...arguments), nt(this, Mt), V(this, "transition", T(S, 8, this)), T(S, 11, this), V(this, "routes", T(S, 12, this)), T(S, 15, this), V(this, "locationStore", T(S, 16, this)), T(S, 19, this), V(this, "key", T(S, 20, this)), T(S, 23, this), V(this, "loading", T(S, 24, this)), T(S, 27, this), V(this, "beforeroutechange", T(S, 28, this)), T(S, 31, this), V(this, "routechange", T(S, 32, this)), T(S, 35, this), V(this, "error", T(S, 36, this)), T(S, 39, this), V(this, "scrollContainer", T(S, 40, this)), T(S, 43, this), V(this, "scrollIgnoreHash", T(S, 44, this)), T(S, 47, this), V(this, "trigger", T(S, 48, this, x)), T(S, 51, this), V(this, "currentRoute"), V(this, "currentParams", {}), nt(this, Le, In({ content: nn })), nt(this, us, () => {
1797
+ super(...arguments), et(this, Ot), z(this, "transition", T(S, 8, this)), T(S, 11, this), z(this, "routes", T(S, 12, this)), T(S, 15, this), z(this, "locationStore", T(S, 16, this)), T(S, 19, this), z(this, "key", T(S, 20, this)), T(S, 23, this), z(this, "loading", T(S, 24, this)), T(S, 27, this), z(this, "beforeroutechange", T(S, 28, this)), T(S, 31, this), z(this, "routechange", T(S, 32, this)), T(S, 35, this), z(this, "error", T(S, 36, this)), T(S, 39, this), z(this, "scrollContainer", T(S, 40, this)), T(S, 43, this), z(this, "scrollIgnoreHash", T(S, 44, this)), T(S, 47, this), z(this, "trigger", T(S, 48, this, x)), T(S, 51, this), z(this, "currentRoute"), z(this, "currentParams", {}), et(this, Ae, zn({ content: en })), et(this, us, () => {
1807
1798
  if (!this.locationStore) return;
1808
1799
  const { path: t, query: e, hash: n, data: i } = x.getParams();
1809
1800
  this.locationStore({
@@ -1813,143 +1804,140 @@ class I extends (_n = st, To = [Ws], bo = [B], Co = [B], Eo = [B], wo = [be], yo
1813
1804
  hash: n,
1814
1805
  data: i
1815
1806
  });
1816
- }), nt(this, pn, () => {
1817
- if (!H(this, Mt, qt)) return;
1818
- const t = cr.get(x.currentKey);
1819
- t ? H(this, Mt, qt).scroll(0, t) : (this.scrollIgnoreHash || !x.getParams().hash) && H(this, Mt, qt).scroll(0, 0);
1820
- }), nt(this, Ne), nt(this, _s, (t, e, n) => {
1807
+ }), et(this, _n, () => {
1808
+ if (!V(this, Ot, Bt)) return;
1809
+ const t = ur.get(x.currentKey);
1810
+ t ? V(this, Ot, Bt).scroll(0, t) : (this.scrollIgnoreHash || !x.getParams().hash) && V(this, Ot, Bt).scroll(0, 0);
1811
+ }), et(this, Ne), et(this, pn, (t, e, n) => {
1821
1812
  this.beforeroutechange(t), Cs(this, Ne, void 0), this.currentRoute = t, this.currentParams = e;
1822
1813
  const i = async () => {
1823
- H(this, Le).call(this, { content: n }), H(this, us).call(this), await Promise.resolve(), H(this, pn).call(this), this.routechange(this.currentRoute);
1814
+ V(this, Ae).call(this, { content: n }), V(this, us).call(this), await Promise.resolve(), V(this, _n).call(this), this.routechange(this.currentRoute);
1824
1815
  };
1825
1816
  this.transition && "startViewTransition" in document ? document.startViewTransition(() => i()) : i();
1826
- }), nt(this, ni, T(S, 52, this, () => {
1827
- if (H(this, Mt, qt))
1828
- return Mr(
1817
+ }), et(this, oi, T(S, 52, this, () => {
1818
+ if (V(this, Ot, Bt))
1819
+ return Lr(
1829
1820
  x,
1830
1821
  "beforechange",
1831
- () => cr.set(x.currentKey, H(this, Mt, qt).scrollTop)
1822
+ () => ur.set(x.currentKey, V(this, Ot, Bt).scrollTop)
1832
1823
  );
1833
- })), T(S, 55, this), nt(this, ii, T(S, 56, this, () => this.trigger.store && _t(this.trigger.store, () => H(this, Le).call(this)))), T(S, 59, this), nt(this, fn, () => {
1824
+ })), T(S, 55, this), et(this, ai, T(S, 56, this, () => this.trigger.store && mt(this.trigger.store, () => V(this, Ae).call(this)))), T(S, 59, this), et(this, fn, () => {
1834
1825
  const { path: t, query: e, hash: n } = this.trigger.getParams();
1835
1826
  return [this.key, t, e, n];
1836
- }), nt(this, ri, T(S, 60, this, ([t, e], n) => {
1827
+ }), et(this, ci, T(S, 60, this, ([t, e], n) => {
1837
1828
  if (n && t === n[0] && e === n[1]) {
1838
- H(this, us).call(this);
1829
+ V(this, us).call(this);
1839
1830
  return;
1840
1831
  }
1841
1832
  this.update();
1842
- })), T(S, 63, this), nt(this, oi, T(S, 64, this, () => {
1843
- const { content: t } = H(this, Le);
1833
+ })), T(S, 63, this), et(this, hi, T(S, 64, this, () => {
1834
+ const { content: t } = V(this, Ae);
1844
1835
  if (t !== void 0)
1845
- return this.shadowRoot ? t === nn ? et`<slot></slot>` : t : t === nn ? void 0 : et`${t}`;
1846
- })), T(S, 67, this), V(this, "update", () => {
1847
- const { path: t, hash: e, query: n } = this.trigger.getParams(), { route: i, params: o = {} } = Qe.findRoute(this.routes, t), { redirect: a, content: c, getContent: d } = i || {};
1836
+ return this.shadowRoot ? t === en ? ot`<slot></slot>` : t : t === en ? void 0 : ot`${t}`;
1837
+ })), T(S, 67, this), z(this, "update", async () => {
1838
+ const { path: t, hash: e, query: n } = this.trigger.getParams(), { route: i, params: r = {} } = Qe.findRoute(this.routes, t), { redirect: a, content: c, getContent: l } = i || {};
1848
1839
  if (a) {
1849
1840
  this.trigger.replace({
1850
- path: ci({ pattern: a }, { params: o }),
1841
+ path: di({ pattern: a }, { params: r }),
1851
1842
  query: n,
1852
1843
  hash: e
1853
1844
  });
1854
1845
  return;
1855
1846
  }
1856
- this.trigger === x && (location.href !== It.url || i != null && i.title) && It({ url: location.href, title: i == null ? void 0 : i.title });
1857
- const l = c || (d == null ? void 0 : d(o, this.shadowRoot || this));
1858
- if (this.loading(i), l instanceof Promise) {
1859
- Cs(this, Ne, l);
1860
- const f = () => H(this, Ne) === l;
1861
- l.then((r) => {
1862
- f() && H(this, _s).call(this, i, o, r);
1863
- }).catch((r) => {
1864
- f() && this.error(r);
1865
- });
1866
- return;
1847
+ this.trigger === x && (location.href !== Ht.url || i != null && i.title) && Ht({ url: location.href, title: i == null ? void 0 : i.title });
1848
+ const d = c || (l == null ? void 0 : l(r, this.shadowRoot || this));
1849
+ this.loading(i), Cs(this, Ne, d);
1850
+ const f = () => V(this, Ne) === d;
1851
+ try {
1852
+ const o = await d;
1853
+ f() && V(this, pn).call(this, i, r, o);
1854
+ } catch (o) {
1855
+ f() && this.error(o);
1867
1856
  }
1868
- H(this, _s).call(this, i, o, l);
1869
1857
  });
1870
1858
  }
1871
1859
  }
1872
- S = ho(_n);
1873
- Mt = /* @__PURE__ */ new WeakSet();
1874
- qt = function() {
1860
+ S = po(un);
1861
+ Ot = /* @__PURE__ */ new WeakSet();
1862
+ Bt = function() {
1875
1863
  return typeof this.scrollContainer == "function" ? this.scrollContainer() : this.scrollContainer;
1876
1864
  };
1877
- Le = /* @__PURE__ */ new WeakMap();
1865
+ Ae = /* @__PURE__ */ new WeakMap();
1878
1866
  us = /* @__PURE__ */ new WeakMap();
1879
- pn = /* @__PURE__ */ new WeakMap();
1867
+ _n = /* @__PURE__ */ new WeakMap();
1880
1868
  Ne = /* @__PURE__ */ new WeakMap();
1881
- _s = /* @__PURE__ */ new WeakMap();
1882
- ni = /* @__PURE__ */ new WeakMap();
1883
- ii = /* @__PURE__ */ new WeakMap();
1884
- fn = /* @__PURE__ */ new WeakMap();
1885
- ri = /* @__PURE__ */ new WeakMap();
1869
+ pn = /* @__PURE__ */ new WeakMap();
1886
1870
  oi = /* @__PURE__ */ new WeakMap();
1887
- z(S, 5, "transition", To, I);
1888
- z(S, 5, "routes", bo, I);
1889
- z(S, 5, "locationStore", Co, I);
1890
- z(S, 5, "key", Eo, I);
1891
- z(S, 5, "loading", wo, I);
1892
- z(S, 5, "beforeroutechange", yo, I);
1893
- z(S, 5, "routechange", So, I);
1894
- z(S, 5, "error", $o, I);
1895
- z(S, 5, "scrollContainer", vo, I);
1896
- z(S, 5, "scrollIgnoreHash", go, I);
1897
- z(S, 5, "trigger", mo, I);
1898
- z(S, 21, "#rememberScrollPosition", fo, ni);
1899
- z(S, 21, "#connectTriggerStore", po, ii);
1900
- z(S, 21, "#updateContent", _o, ri);
1901
- z(S, 21, "#content", uo, oi);
1902
- I = z(S, 0, "GemLightRouteElement", Po, I);
1903
- V(I, "createLocationStore", () => {
1871
+ ai = /* @__PURE__ */ new WeakMap();
1872
+ fn = /* @__PURE__ */ new WeakMap();
1873
+ ci = /* @__PURE__ */ new WeakMap();
1874
+ hi = /* @__PURE__ */ new WeakMap();
1875
+ W(S, 5, "transition", Oo, H);
1876
+ W(S, 5, "routes", Mo, H);
1877
+ W(S, 5, "locationStore", Po, H);
1878
+ W(S, 5, "key", ko, H);
1879
+ W(S, 5, "loading", To, H);
1880
+ W(S, 5, "beforeroutechange", bo, H);
1881
+ W(S, 5, "routechange", Co, H);
1882
+ W(S, 5, "error", Eo, H);
1883
+ W(S, 5, "scrollContainer", wo, H);
1884
+ W(S, 5, "scrollIgnoreHash", yo, H);
1885
+ W(S, 5, "trigger", So, H);
1886
+ W(S, 21, "#rememberScrollPosition", $o, oi);
1887
+ W(S, 21, "#connectTriggerStore", vo, ai);
1888
+ W(S, 21, "#updateContent", go, ci);
1889
+ W(S, 21, "#content", mo, hi);
1890
+ H = W(S, 0, "GemLightRouteElement", xo, H);
1891
+ z(H, "createLocationStore", () => {
1904
1892
  const { path: s, query: t, hash: e, data: n } = x.getParams();
1905
1893
  return zt({ path: s, query: t, hash: e, data: n, params: {} });
1906
1894
  });
1907
- V(I, "findRoute", (s = [], t) => {
1895
+ z(H, "findRoute", (s = [], t) => {
1908
1896
  let e = null, n;
1909
1897
  Array.isArray(s) ? n = s : n = Object.values(s);
1910
1898
  for (const i of n)
1911
1899
  if (i.pattern === "*")
1912
1900
  e = i;
1913
1901
  else {
1914
- const o = xo(i.pattern, t);
1915
- if (o)
1916
- return { route: i, params: o };
1902
+ const r = Ro(i.pattern, t);
1903
+ if (r)
1904
+ return { route: i, params: r };
1917
1905
  }
1918
1906
  return { route: e };
1919
1907
  });
1920
- T(S, 1, I);
1921
- const Ch = is`
1908
+ T(S, 1, H);
1909
+ const Rh = le`
1922
1910
  :host(:where(:not([hidden]))),
1923
1911
  :not(:defined) {
1924
1912
  display: contents;
1925
1913
  }
1926
1914
  `;
1927
- ko = [Vt(), Vs(Ch)];
1928
- class Qe extends (Mo = I) {
1915
+ Lo = [Vt(), is(Rh)];
1916
+ class Qe extends (Ao = H) {
1929
1917
  }
1930
- ai = ho(Mo);
1931
- Qe = z(ai, 0, "GemRouteElement", ko, Qe);
1932
- T(ai, 1, Qe);
1933
- var bh = Object.create, hi = Object.defineProperty, Th = Object.getOwnPropertyDescriptor, Ao = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), pe = (s) => {
1918
+ li = po(Ao);
1919
+ Qe = W(li, 0, "GemRouteElement", Lo, Qe);
1920
+ T(li, 1, Qe);
1921
+ var Ih = Object.create, ui = Object.defineProperty, Hh = Object.getOwnPropertyDescriptor, Io = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), fe = (s) => {
1934
1922
  throw TypeError(s);
1935
- }, Lo = (s, t, e) => t in s ? hi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, hr = (s, t) => hi(s, "name", { value: t, configurable: !0 }), No = (s) => [, , , bh((s == null ? void 0 : s[Ao("metadata")]) ?? null)], Ro = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Re = (s) => s !== void 0 && typeof s != "function" ? pe("Function expected") : s, Ph = (s, t, e, n, i) => ({ kind: Ro[s], name: t, metadata: n, addInitializer: (o) => e._ ? pe("Already initialized") : i.push(Re(o || null)) }), kh = (s, t) => Lo(t, Ao("metadata"), s[3]), C = (s, t, e, n) => {
1936
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
1923
+ }, Ho = (s, t, e) => t in s ? ui(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, _r = (s, t) => ui(s, "name", { value: t, configurable: !0 }), Wo = (s) => [, , , Ih((s == null ? void 0 : s[Io("metadata")]) ?? null)], zo = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Re = (s) => s !== void 0 && typeof s != "function" ? fe("Function expected") : s, Wh = (s, t, e, n, i) => ({ kind: zo[s], name: t, metadata: n, addInitializer: (r) => e._ ? fe("Already initialized") : i.push(Re(r || null)) }), zh = (s, t) => Ho(t, Io("metadata"), s[3]), C = (s, t, e, n) => {
1924
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
1937
1925
  return n;
1938
- }, N = (s, t, e, n, i, o) => {
1939
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = Ro[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && Th(r < 4 ? i : { get [e]() {
1940
- return ht(this, o);
1941
- }, set [e](u) {
1942
- return lr(this, o, u);
1926
+ }, R = (s, t, e, n, i, r) => {
1927
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = zo[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Hh(o < 4 ? i : { get [e]() {
1928
+ return ht(this, r);
1929
+ }, set [e](_) {
1930
+ return pr(this, r, _);
1943
1931
  } }, e));
1944
- r ? h && r < 4 && hr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : hr(i, e);
1932
+ o ? h && o < 4 && _r(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : _r(i, e);
1945
1933
  for (var b = n.length - 1; b >= 0; b--)
1946
- l = Ph(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => Mh(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? ht : Oh)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => lr(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? Re(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? pe("Object expected") : (Re(a = c.get) && (p.get = a), Re(a = c.set) && (p.set = a), Re(a = c.init) && w.unshift(a));
1947
- return r || kh(s, i), p && hi(i, e, p), h ? r ^ 4 ? o : p : i;
1948
- }, U = (s, t, e) => Lo(s, typeof t != "symbol" ? t + "" : t, e), li = (s, t, e) => t.has(s) || pe("Cannot " + e), Mh = (s, t) => Object(t) !== t ? pe('Cannot use the "in" operator on this value') : s.has(t), ht = (s, t, e) => (li(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Bt = (s, t, e) => t.has(s) ? pe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), lr = (s, t, e, n) => (li(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Oh = (s, t, e) => (li(s, t, "access private method"), e), Io, Ho, Wo, zo, Vo, Go, Do, Uo, Fo, qo, Bo, Ko, jo, Jo, mn, Qo, y, ft, Ie, Yo, di, gn, ui, vn, _i, Zo, Xo, ta, $n, ea, X, pi;
1949
- function dr(s) {
1934
+ d = Wh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => Vh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? ht : Gh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => pr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Re(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? fe("Object expected") : (Re(a = c.get) && (p.get = a), Re(a = c.set) && (p.set = a), Re(a = c.init) && w.unshift(a));
1935
+ return o || zh(s, i), p && ui(i, e, p), h ? o ^ 4 ? r : p : i;
1936
+ }, U = (s, t, e) => Ho(s, typeof t != "symbol" ? t + "" : t, e), _i = (s, t, e) => t.has(s) || fe("Cannot " + e), Vh = (s, t) => Object(t) !== t ? fe('Cannot use the "in" operator on this value') : s.has(t), ht = (s, t, e) => (_i(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Kt = (s, t, e) => t.has(s) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), pr = (s, t, e, n) => (_i(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Gh = (s, t, e) => (_i(s, t, "access private method"), e), Vo, Go, Do, Uo, Fo, qo, Bo, Ko, jo, Qo, Jo, Yo, Zo, Xo, mn, ta, y, vt, Ie, ea, pi, gn, fi, vn, mi, sa, na, ia, $n, ra, X, gi;
1937
+ function fr(s) {
1950
1938
  return !s.startsWith("/");
1951
1939
  }
1952
- const xh = is`
1940
+ const Dh = le`
1953
1941
  :host {
1954
1942
  /* link default style */
1955
1943
  cursor: pointer;
@@ -1964,15 +1952,15 @@ const xh = is`
1964
1952
  color: unset;
1965
1953
  }
1966
1954
  `;
1967
- Qo = [Gs(eh), Vs(xh), Vt(), Ds({ focusable: !0 })];
1968
- class W extends (mn = st, Jo = [D], jo = [D], Ko = [D], Bo = [D], qo = [D], Fo = [D], Uo = [Ws], Do = [B], Go = [B], Vo = [B], zo = [B], Wo = [zr], Ho = [Ke()], Io = [le()], mn) {
1955
+ ta = [Vs(uh), is(Dh), Vt(), Gs({ focusable: !0 })];
1956
+ let N = class oa extends (mn = tt, Xo = [Dr], Zo = [B], Yo = [B], Jo = [B], Qo = [B], jo = [B], Ko = [B], Bo = [Ws], qo = [D], Fo = [D], Uo = [D], Do = [D], Go = [Be()], Vo = [de()], mn) {
1969
1957
  constructor() {
1970
- super(...arguments), C(y, 5, this), Bt(this, ft), U(this, "href", C(y, 8, this)), C(y, 11, this), U(this, "target", C(y, 12, this)), C(y, 15, this), U(this, "path", C(y, 16, this)), C(y, 19, this), U(this, "query", C(y, 20, this)), C(y, 23, this), U(this, "hash", C(y, 24, this)), C(y, 27, this), U(this, "hint", C(y, 28, this)), C(y, 31, this), U(this, "preload", C(y, 32, this)), C(y, 35, this), U(this, "route", C(y, 36, this)), C(y, 39, this), U(this, "options", C(y, 40, this)), C(y, 43, this), U(this, "routeOptions", C(y, 44, this)), C(y, 47, this), U(this, "prepare", C(y, 48, this)), C(y, 51, this), U(this, "link", C(y, 52, this)), C(y, 55, this), Bt(this, di, async (t) => {
1958
+ super(...arguments), C(y, 5, this), Kt(this, vt), U(this, "href", C(y, 12, this)), C(y, 15, this), U(this, "target", C(y, 16, this)), C(y, 19, this), U(this, "path", C(y, 20, this)), C(y, 23, this), U(this, "query", C(y, 24, this)), C(y, 27, this), U(this, "hash", C(y, 28, this)), C(y, 31, this), U(this, "hint", C(y, 32, this)), C(y, 35, this), U(this, "preload", C(y, 36, this)), C(y, 39, this), U(this, "route", C(y, 40, this)), C(y, 43, this), U(this, "options", C(y, 44, this)), C(y, 47, this), U(this, "routeOptions", C(y, 48, this)), C(y, 51, this), U(this, "prepare", C(y, 52, this)), C(y, 55, this), Kt(this, pi, async (t) => {
1971
1959
  var a;
1972
1960
  t.preventDefault();
1973
1961
  const e = this._getLocationString();
1974
1962
  if (!e) return;
1975
- if (dr(e))
1963
+ if (fr(e))
1976
1964
  switch (this.target) {
1977
1965
  case "_self":
1978
1966
  window.location.href = e;
@@ -1987,10 +1975,10 @@ class W extends (mn = st, Jo = [D], jo = [D], Ko = [D], Bo = [D], qo = [D], Fo =
1987
1975
  window.open(e);
1988
1976
  return;
1989
1977
  }
1990
- const { path: n, query: i, hash: o } = x.getParams();
1991
- if (n + i + o !== e)
1978
+ const { path: n, query: i, hash: r } = x.getParams();
1979
+ if (n + i + r !== e)
1992
1980
  if (await ((a = this.prepare) == null ? void 0 : a.call(this)), this.route)
1993
- x.pushIgnoreCloseHandle(Eh(this.route, ht(this, ft, Ie)));
1981
+ x.pushIgnoreCloseHandle(Nh(this.route, ht(this, vt, Ie)));
1994
1982
  else if (this.href) {
1995
1983
  const c = new URL(e, location.origin);
1996
1984
  x.pushIgnoreCloseHandle({
@@ -2004,15 +1992,15 @@ class W extends (mn = st, Jo = [D], jo = [D], Ko = [D], Bo = [D], qo = [D], Fo =
2004
1992
  query: this.query,
2005
1993
  hash: this.hash
2006
1994
  });
2007
- }), Bt(this, gn, () => {
1995
+ }), Kt(this, gn, () => {
2008
1996
  const t = this._getLocationString();
2009
- return dr(t) ? t : new URL(x.basePath + t, location.origin).toString();
2010
- }), Bt(this, ui, () => {
1997
+ return fr(t) ? t : new URL(x.basePath + t, location.origin).toString();
1998
+ }), Kt(this, fi, () => {
2011
1999
  var t, e, n;
2012
2000
  (t = this.route) == null || t.content, (n = (e = this.route) == null ? void 0 : e.getContent) == null || n.call(e, {}, this.shadowRoot);
2013
- }), Bt(this, _i, C(y, 56, this, () => {
2014
- const t = ht(this, ft, Yo) === "off" ? null : ht(this, gn).call(this);
2015
- return et`<a part=${this.link} href=${t} tabindex="-1"><slot></slot></a>`;
2001
+ }), Kt(this, mi, C(y, 56, this, () => {
2002
+ const t = ht(this, vt, ea) === "off" ? null : ht(this, gn).call(this);
2003
+ return ot`<a part=${oa.link} href=${t} tabindex="-1"><slot></slot></a>`;
2016
2004
  })), C(y, 59, this);
2017
2005
  }
2018
2006
  /**
@@ -2021,230 +2009,242 @@ class W extends (mn = st, Jo = [D], jo = [D], Ko = [D], Bo = [D], qo = [D], Fo =
2021
2009
  _getLocationString() {
2022
2010
  var t, e;
2023
2011
  if (this.route) {
2024
- const n = ((t = ht(this, ft, Ie)) == null ? void 0 : t.query) || "", i = ((e = ht(this, ft, Ie)) == null ? void 0 : e.hash) || "";
2025
- return ci(this.route, ht(this, ft, Ie)) + n + i;
2012
+ const n = ((t = ht(this, vt, Ie)) == null ? void 0 : t.query) || "", i = ((e = ht(this, vt, Ie)) == null ? void 0 : e.hash) || "";
2013
+ return di(this.route, ht(this, vt, Ie)) + n + i;
2026
2014
  } else {
2027
- const n = this.href || this.path + this.query + this.hash, { path: i, query: o } = x.getParams();
2028
- return n.startsWith("#") ? `${i}${o}${n}` : n.startsWith("?") ? `${i}${n}` : n.startsWith(".") ? kr(i, n) : n;
2015
+ const n = this.href || this.path + this.query + this.hash, { path: i, query: r } = x.getParams();
2016
+ return n.startsWith("#") ? `${i}${r}${n}` : n.startsWith("?") ? `${i}${n}` : n.startsWith(".") ? xr(i, n) : n;
2029
2017
  }
2030
2018
  }
2031
- }
2032
- y = No(mn);
2033
- ft = /* @__PURE__ */ new WeakSet();
2019
+ };
2020
+ y = Wo(mn);
2021
+ vt = /* @__PURE__ */ new WeakSet();
2034
2022
  Ie = function() {
2035
2023
  return this.routeOptions || this.options;
2036
2024
  };
2037
- Yo = function() {
2025
+ ea = function() {
2038
2026
  return this.hint || "on";
2039
2027
  };
2040
- di = /* @__PURE__ */ new WeakMap();
2028
+ pi = /* @__PURE__ */ new WeakMap();
2041
2029
  gn = /* @__PURE__ */ new WeakMap();
2042
- ui = /* @__PURE__ */ new WeakMap();
2030
+ fi = /* @__PURE__ */ new WeakMap();
2043
2031
  vn = function() {
2044
- this.addEventListener("click", ht(this, di)), this.addEventListener("pointerenter", ht(this, ui));
2032
+ this.addEventListener("click", ht(this, pi)), this.addEventListener("pointerenter", ht(this, fi));
2045
2033
  };
2046
- _i = /* @__PURE__ */ new WeakMap();
2047
- vn = N(y, 17, "#init", Ho, ft, vn);
2048
- N(y, 5, "href", Jo, W);
2049
- N(y, 5, "target", jo, W);
2050
- N(y, 5, "path", Ko, W);
2051
- N(y, 5, "query", Bo, W);
2052
- N(y, 5, "hash", qo, W);
2053
- N(y, 5, "hint", Fo, W);
2054
- N(y, 5, "preload", Uo, W);
2055
- N(y, 5, "route", Do, W);
2056
- N(y, 5, "options", Go, W);
2057
- N(y, 5, "routeOptions", Vo, W);
2058
- N(y, 5, "prepare", zo, W);
2059
- N(y, 5, "link", Wo, W);
2060
- N(y, 21, "#content", Io, _i);
2061
- W = N(y, 0, "GemLinkElement", Qo, W);
2062
- C(y, 1, W);
2063
- ea = [Gs(x.store)];
2064
- class ae extends ($n = W, ta = [D], Xo = [zs], Zo = [wt()], $n) {
2034
+ mi = /* @__PURE__ */ new WeakMap();
2035
+ vn = R(y, 17, "#init", Go, vt, vn);
2036
+ R(y, 13, "link", Xo, N);
2037
+ R(y, 5, "href", Zo, N);
2038
+ R(y, 5, "target", Yo, N);
2039
+ R(y, 5, "path", Jo, N);
2040
+ R(y, 5, "query", Qo, N);
2041
+ R(y, 5, "hash", jo, N);
2042
+ R(y, 5, "hint", Ko, N);
2043
+ R(y, 5, "preload", Bo, N);
2044
+ R(y, 5, "route", qo, N);
2045
+ R(y, 5, "options", Fo, N);
2046
+ R(y, 5, "routeOptions", Uo, N);
2047
+ R(y, 5, "prepare", Do, N);
2048
+ R(y, 21, "#content", Vo, mi);
2049
+ N = R(y, 0, "GemLinkElement", ta, N);
2050
+ U(N, "link", C(y, 8, N)), C(y, 11, N);
2051
+ C(y, 1, N);
2052
+ let aa = N;
2053
+ ra = [Vs(x.store)];
2054
+ class ae extends ($n = aa, ia = [B], na = [zs], sa = [ft()], $n) {
2065
2055
  constructor() {
2066
- super(...arguments), U(this, "pattern", C(X, 8, this)), C(X, 11, this), U(this, "active", C(X, 12, this)), C(X, 15, this), Bt(this, pi, C(X, 16, this, () => {
2067
- const { path: t, query: e, hash: n } = x.getParams(), i = this.pattern && xo(this.pattern, t);
2056
+ super(...arguments), U(this, "pattern", C(X, 8, this)), C(X, 11, this), U(this, "active", C(X, 12, this)), C(X, 15, this), Kt(this, gi, C(X, 16, this, () => {
2057
+ const { path: t, query: e, hash: n } = x.getParams(), i = this.pattern && Ro(this.pattern, t);
2068
2058
  this.active = !!i || t + e + n === this._getLocationString();
2069
2059
  })), C(X, 19, this);
2070
2060
  }
2071
2061
  }
2072
- X = No($n);
2073
- pi = /* @__PURE__ */ new WeakMap();
2074
- N(X, 5, "pattern", ta, ae);
2075
- N(X, 5, "active", Xo, ae);
2076
- N(X, 21, "#updateState", Zo, pi);
2077
- ae = N(X, 0, "GemActiveLinkElement", ea, ae);
2062
+ X = Wo($n);
2063
+ gi = /* @__PURE__ */ new WeakMap();
2064
+ R(X, 5, "pattern", ia, ae);
2065
+ R(X, 5, "active", na, ae);
2066
+ R(X, 21, "#updateState", sa, gi);
2067
+ ae = R(X, 0, "GemActiveLinkElement", ra, ae);
2078
2068
  C(X, 1, ae);
2079
- customElements.define("gem-link", W);
2069
+ customElements.define("gem-link", aa);
2080
2070
  customElements.define("gem-active-link", ae);
2081
- var Ah = Object.create, fi = Object.defineProperty, Lh = Object.getOwnPropertyDescriptor, sa = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), fe = (s) => {
2071
+ var Uh = Object.create, vi = Object.defineProperty, Fh = Object.getOwnPropertyDescriptor, ca = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), me = (s) => {
2082
2072
  throw TypeError(s);
2083
- }, na = (s, t, e) => t in s ? fi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, ur = (s, t) => fi(s, "name", { value: t, configurable: !0 }), Nh = (s) => [, , , Ah((s == null ? void 0 : s[sa("metadata")]) ?? null)], ia = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], He = (s) => s !== void 0 && typeof s != "function" ? fe("Function expected") : s, Rh = (s, t, e, n, i) => ({ kind: ia[s], name: t, metadata: n, addInitializer: (o) => e._ ? fe("Already initialized") : i.push(He(o || null)) }), ra = (s, t) => na(t, sa("metadata"), s[3]), pt = (s, t, e, n) => {
2084
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
2073
+ }, ha = (s, t, e) => t in s ? vi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, mr = (s, t) => vi(s, "name", { value: t, configurable: !0 }), qh = (s) => [, , , Uh((s == null ? void 0 : s[ca("metadata")]) ?? null)], la = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], He = (s) => s !== void 0 && typeof s != "function" ? me("Function expected") : s, Bh = (s, t, e, n, i) => ({ kind: la[s], name: t, metadata: n, addInitializer: (r) => e._ ? me("Already initialized") : i.push(He(r || null)) }), da = (s, t) => ha(t, ca("metadata"), s[3]), gt = (s, t, e, n) => {
2074
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
2085
2075
  return n;
2086
- }, qs = (s, t, e, n, i, o) => {
2087
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = ia[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && Lh(r < 4 ? i : { get [e]() {
2088
- return mt(this, o);
2089
- }, set [e](u) {
2090
- return Sn(this, o, u);
2076
+ }, Fs = (s, t, e, n, i, r) => {
2077
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = la[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Fh(o < 4 ? i : { get [e]() {
2078
+ return $t(this, r);
2079
+ }, set [e](_) {
2080
+ return Sn(this, r, _);
2091
2081
  } }, e));
2092
- r ? h && r < 4 && ur(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : ur(i, e);
2082
+ o ? h && o < 4 && mr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : mr(i, e);
2093
2083
  for (var b = n.length - 1; b >= 0; b--)
2094
- l = Rh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => Ih(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? mt : Hh)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => Sn(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? He(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? fe("Object expected") : (He(a = c.get) && (p.get = a), He(a = c.set) && (p.set = a), He(a = c.init) && w.unshift(a));
2095
- return r || ra(s, i), p && fi(i, e, p), h ? r ^ 4 ? o : p : i;
2096
- }, _r = (s, t, e) => na(s, typeof t != "symbol" ? t + "" : t, e), mi = (s, t, e) => t.has(s) || fe("Cannot " + e), Ih = (s, t) => Object(t) !== t ? fe('Cannot use the "in" operator on this value') : s.has(t), mt = (s, t, e) => (mi(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Ut = (s, t, e) => t.has(s) ? fe("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Sn = (s, t, e, n) => (mi(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Hh = (s, t, e) => (mi(s, t, "access private method"), e), oa, aa, ca, ha, yn, F, wn, la, gi, ps, En, We, vi;
2097
- const Wh = "gem-reflect-start", da = "gem-reflect-end", pr = (s) => new Comment(s), zh = (s) => {
2084
+ d = Bh(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => Kh(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? $t : jh)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Sn(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? He(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? me("Object expected") : (He(a = c.get) && (p.get = a), He(a = c.set) && (p.set = a), He(a = c.init) && w.unshift(a));
2085
+ return o || da(s, i), p && vi(i, e, p), h ? o ^ 4 ? r : p : i;
2086
+ }, gr = (s, t, e) => ha(s, typeof t != "symbol" ? t + "" : t, e), $i = (s, t, e) => t.has(s) || me("Cannot " + e), Kh = (s, t) => Object(t) !== t ? me('Cannot use the "in" operator on this value') : s.has(t), $t = (s, t, e) => ($i(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Ut = (s, t, e) => t.has(s) ? me("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Sn = (s, t, e, n) => ($i(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), jh = (s, t, e) => ($i(s, t, "access private method"), e), ua, _a, pa, fa, yn, F, wn, ma, Si, _s, En, We, yi;
2087
+ const Qh = "gem-reflect-start", ga = "gem-reflect-end", vr = (s) => new Comment(s), Jh = (s) => {
2098
2088
  const t = [];
2099
2089
  let e = s;
2100
- for (; e && (t.push(e), e.nodeValue !== da); )
2090
+ for (; e && (t.push(e), e.nodeValue !== ga); )
2101
2091
  e = e.nextSibling;
2102
2092
  return t;
2103
2093
  };
2104
- class Bs extends (yn = st, ha = [D], ca = [B], aa = [Dn()], oa = [wt((t) => [t.target])], yn) {
2094
+ class qs extends (yn = tt, fa = [B], pa = [D], _a = [qn()], ua = [ft((t) => [t.target])], yn) {
2105
2095
  constructor() {
2106
- super(...arguments), Ut(this, wn), _r(this, "method", pt(F, 8, this)), pt(F, 11, this), _r(this, "target", pt(F, 12, this, document.head)), pt(F, 15, this), Ut(this, gi, pt(F, 16, this, () => {
2096
+ super(...arguments), Ut(this, wn), gr(this, "method", gt(F, 8, this)), gt(F, 11, this), gr(this, "target", gt(F, 12, this, document.head)), gt(F, 15, this), Ut(this, Si, gt(F, 16, this, () => {
2107
2097
  this.hidden = !0;
2108
- })), pt(F, 19, this), Ut(this, ps, pr(Wh)), Ut(this, En, pr(da)), Ut(this, We), Ut(this, vi, pt(F, 20, this, () => ((mt(this, We) || [mt(this, ps), ...this.childNodes, mt(this, En)]).forEach((t, e, n) => {
2098
+ })), gt(F, 19, this), Ut(this, _s, vr(Qh)), Ut(this, En, vr(ga)), Ut(this, We), Ut(this, yi, gt(F, 20, this, () => (($t(this, We) || [$t(this, _s), ...this.childNodes, $t(this, En)]).forEach((t, e, n) => {
2109
2099
  const i = n[e - 1];
2110
- i ? i.after(t) : this.target[mt(this, wn, la)](t);
2100
+ i ? i.after(t) : this.target[$t(this, wn, ma)](t);
2111
2101
  }), () => {
2112
- Sn(this, We, zh(mt(this, ps))), mt(this, We).forEach((t) => t.remove());
2113
- }))), pt(F, 23, this);
2102
+ Sn(this, We, Jh($t(this, _s))), $t(this, We).forEach((t) => t.remove());
2103
+ }))), gt(F, 23, this);
2114
2104
  }
2115
2105
  }
2116
- F = Nh(yn);
2106
+ F = qh(yn);
2117
2107
  wn = /* @__PURE__ */ new WeakSet();
2118
- la = function() {
2108
+ ma = function() {
2119
2109
  return this.method || "append";
2120
2110
  };
2121
- gi = /* @__PURE__ */ new WeakMap();
2122
- ps = /* @__PURE__ */ new WeakMap();
2111
+ Si = /* @__PURE__ */ new WeakMap();
2112
+ _s = /* @__PURE__ */ new WeakMap();
2123
2113
  En = /* @__PURE__ */ new WeakMap();
2124
2114
  We = /* @__PURE__ */ new WeakMap();
2125
- vi = /* @__PURE__ */ new WeakMap();
2126
- qs(F, 5, "method", ha, Bs);
2127
- qs(F, 5, "target", ca, Bs);
2128
- qs(F, 21, "#init", aa, gi);
2129
- qs(F, 21, "#changeTarget", oa, vi);
2130
- ra(F, Bs);
2131
- customElements.define("gem-reflect", Bs);
2115
+ yi = /* @__PURE__ */ new WeakMap();
2116
+ Fs(F, 5, "method", fa, qs);
2117
+ Fs(F, 5, "target", pa, qs);
2118
+ Fs(F, 21, "#init", _a, Si);
2119
+ Fs(F, 21, "#changeTarget", ua, yi);
2120
+ da(F, qs);
2121
+ customElements.define("gem-reflect", qs);
2132
2122
  customElements.define("gem-route", Qe);
2133
- customElements.define("gem-light-route", I);
2134
- var Vh = Object.create, $i = Object.defineProperty, Gh = Object.getOwnPropertyDescriptor, ua = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), me = (s) => {
2123
+ customElements.define("gem-light-route", H);
2124
+ var Yh = Object.create, wi = Object.defineProperty, Zh = Object.getOwnPropertyDescriptor, va = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ge = (s) => {
2135
2125
  throw TypeError(s);
2136
- }, _a = (s, t, e) => t in s ? $i(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, fr = (s, t) => $i(s, "name", { value: t, configurable: !0 }), Dh = (s) => [, , , Vh((s == null ? void 0 : s[ua("metadata")]) ?? null)], pa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ze = (s) => s !== void 0 && typeof s != "function" ? me("Function expected") : s, Uh = (s, t, e, n, i) => ({ kind: pa[s], name: t, metadata: n, addInitializer: (o) => e._ ? me("Already initialized") : i.push(ze(o || null)) }), Fh = (s, t) => _a(t, ua("metadata"), s[3]), j = (s, t, e, n) => {
2137
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
2126
+ }, $a = (s, t, e) => t in s ? wi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, $r = (s, t) => wi(s, "name", { value: t, configurable: !0 }), Xh = (s) => [, , , Yh((s == null ? void 0 : s[va("metadata")]) ?? null)], Sa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ze = (s) => s !== void 0 && typeof s != "function" ? ge("Function expected") : s, tl = (s, t, e, n, i) => ({ kind: Sa[s], name: t, metadata: n, addInitializer: (r) => e._ ? ge("Already initialized") : i.push(ze(r || null)) }), el = (s, t) => $a(t, va("metadata"), s[3]), j = (s, t, e, n) => {
2127
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
2138
2128
  return n;
2139
- }, Gt = (s, t, e, n, i, o) => {
2140
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = pa[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && Gh(r < 4 ? i : { get [e]() {
2141
- return Cn(this, o);
2142
- }, set [e](u) {
2143
- return mr(this, o, u);
2129
+ }, Gt = (s, t, e, n, i, r) => {
2130
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = Sa[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && Zh(o < 4 ? i : { get [e]() {
2131
+ return Cn(this, r);
2132
+ }, set [e](_) {
2133
+ return Sr(this, r, _);
2144
2134
  } }, e));
2145
- r ? h && r < 4 && fr(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : fr(i, e);
2135
+ o ? h && o < 4 && $r(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : $r(i, e);
2146
2136
  for (var b = n.length - 1; b >= 0; b--)
2147
- l = Uh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => qh(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? Cn : Bh)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => mr(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? ze(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? me("Object expected") : (ze(a = c.get) && (p.get = a), ze(a = c.set) && (p.set = a), ze(a = c.init) && w.unshift(a));
2148
- return r || Fh(s, i), p && $i(i, e, p), h ? r ^ 4 ? o : p : i;
2149
- }, fs = (s, t, e) => _a(s, typeof t != "symbol" ? t + "" : t, e), Si = (s, t, e) => t.has(s) || me("Cannot " + e), qh = (s, t) => Object(t) !== t ? me('Cannot use the "in" operator on this value') : s.has(t), Cn = (s, t, e) => (Si(s, t, "read from private field"), e ? e.call(s) : t.get(s)), hs = (s, t, e) => t.has(s) ? me("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), mr = (s, t, e, n) => (Si(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), Bh = (s, t, e) => (Si(s, t, "access private method"), e), fa, ma, ga, va, $a, Sa, bn, ya, A, yi, Tn, wi, Ei;
2150
- let gr = 0;
2151
- const vr = (s) => {
2152
- clearTimeout(gr), gr = setTimeout(() => document.title = s);
2137
+ d = tl(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => sl(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? Cn : nl)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Sr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? ze(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ge("Object expected") : (ze(a = c.get) && (p.get = a), ze(a = c.set) && (p.set = a), ze(a = c.init) && w.unshift(a));
2138
+ return o || el(s, i), p && wi(i, e, p), h ? o ^ 4 ? r : p : i;
2139
+ }, ps = (s, t, e) => $a(s, typeof t != "symbol" ? t + "" : t, e), Ei = (s, t, e) => t.has(s) || ge("Cannot " + e), sl = (s, t) => Object(t) !== t ? ge('Cannot use the "in" operator on this value') : s.has(t), Cn = (s, t, e) => (Ei(s, t, "read from private field"), e ? e.call(s) : t.get(s)), hs = (s, t, e) => t.has(s) ? ge("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Sr = (s, t, e, n) => (Ei(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), nl = (s, t, e) => (Ei(s, t, "access private method"), e), ya, wa, Ea, Ca, ba, Ta, bn, ka, L, Ci, Tn, bi, Ti;
2140
+ let yr = 0;
2141
+ const wr = (s) => {
2142
+ clearTimeout(yr), yr = setTimeout(() => document.title = s);
2153
2143
  };
2154
- function Kh(s, t = "", e = "") {
2155
- const n = It.title || s;
2156
- n && n !== It.defaultTitle ? (Ve.title = n, vr(t + Ve.title + e)) : (Ve.title = It.defaultTitle, vr(Ve.title));
2144
+ function il(s, t = "", e = "") {
2145
+ const n = Ht.title || s;
2146
+ n && n !== Ht.defaultTitle ? wr(t + (kn.title = n) + e) : wr(kn.title = Ht.defaultTitle);
2157
2147
  }
2158
- ya = [Vt()];
2159
- let Ct = class wa extends (bn = st, Sa = [D], $a = [D], va = [Ws], ga = [wt((t) => [t.inert])], ma = [Ke()], fa = [le()], bn) {
2148
+ ka = [Vt()];
2149
+ let bt = class Pa extends (bn = tt, Ta = [B], ba = [B], Ca = [Ws], Ea = [ft((t) => [t.inert])], wa = [Be()], ya = [de()], bn) {
2160
2150
  constructor() {
2161
- super(...arguments), fs(this, "prefix", j(A, 8, this)), j(A, 11, this), fs(this, "suffix", j(A, 12, this)), j(A, 15, this), fs(this, "inert", j(A, 16, this)), j(A, 19, this), hs(this, yi, j(A, 20, this, () => !this.inert && _t(It, this.update))), j(A, 23, this), hs(this, Tn, new MutationObserver(() => this.update())), hs(this, wi, j(A, 24, this, () => {
2151
+ super(...arguments), ps(this, "prefix", j(L, 8, this)), j(L, 11, this), ps(this, "suffix", j(L, 12, this)), j(L, 15, this), ps(this, "inert", j(L, 16, this)), j(L, 19, this), hs(this, Ci, j(L, 20, this, () => !this.inert && mt(Ht, this.update))), j(L, 23, this), hs(this, Tn, new MutationObserver(() => this.update())), hs(this, bi, j(L, 24, this, () => {
2162
2152
  Cn(this, Tn).observe(this, { characterData: !0, childList: !0, subtree: !0 });
2163
- })), j(A, 27, this), hs(this, Ei, j(A, 28, this, () => {
2153
+ })), j(L, 27, this), hs(this, Ti, j(L, 28, this, () => {
2164
2154
  var t;
2165
- return Kh((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), et`${wa.title}`;
2166
- })), j(A, 31, this);
2155
+ return il((t = this.textContent) == null ? void 0 : t.trim(), this.prefix, this.suffix), ot`${Pa.title}`;
2156
+ })), j(L, 31, this);
2167
2157
  }
2168
2158
  static setTitle(t) {
2169
- It({ title: t });
2159
+ Ht({ title: t });
2170
2160
  }
2171
2161
  };
2172
- A = Dh(bn);
2173
- yi = /* @__PURE__ */ new WeakMap();
2162
+ L = Xh(bn);
2163
+ Ci = /* @__PURE__ */ new WeakMap();
2174
2164
  Tn = /* @__PURE__ */ new WeakMap();
2175
- wi = /* @__PURE__ */ new WeakMap();
2176
- Ei = /* @__PURE__ */ new WeakMap();
2177
- Gt(A, 5, "prefix", Sa, Ct);
2178
- Gt(A, 5, "suffix", $a, Ct);
2179
- Gt(A, 5, "inert", va, Ct);
2180
- Gt(A, 21, "#connectStore", ga, yi);
2181
- Gt(A, 21, "#obTextContent", ma, wi);
2182
- Gt(A, 21, "#content", fa, Ei);
2183
- Ct = Gt(A, 0, "GemTitleElement", ya, Ct);
2184
- fs(Ct, "title", document.title);
2185
- j(A, 1, Ct);
2186
- let Ve = Ct;
2187
- customElements.define("gem-title", Ve);
2188
- var jh = Object.create, Ci = Object.defineProperty, Jh = Object.getOwnPropertyDescriptor, Ea = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ge = (s) => {
2165
+ bi = /* @__PURE__ */ new WeakMap();
2166
+ Ti = /* @__PURE__ */ new WeakMap();
2167
+ Gt(L, 5, "prefix", Ta, bt);
2168
+ Gt(L, 5, "suffix", ba, bt);
2169
+ Gt(L, 5, "inert", Ca, bt);
2170
+ Gt(L, 21, "#connectStore", Ea, Ci);
2171
+ Gt(L, 21, "#obTextContent", wa, bi);
2172
+ Gt(L, 21, "#content", ya, Ti);
2173
+ bt = Gt(L, 0, "GemTitleElement", ka, bt);
2174
+ ps(bt, "title", document.title);
2175
+ j(L, 1, bt);
2176
+ let kn = bt;
2177
+ customElements.define("gem-title", kn);
2178
+ var rl = Object.create, ki = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, Ma = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ve = (s) => {
2189
2179
  throw TypeError(s);
2190
- }, Ca = (s, t, e) => t in s ? Ci(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, $r = (s, t) => Ci(s, "name", { value: t, configurable: !0 }), Qh = (s) => [, , , jh((s == null ? void 0 : s[Ea("metadata")]) ?? null)], ba = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ge = (s) => s !== void 0 && typeof s != "function" ? ge("Function expected") : s, Yh = (s, t, e, n, i) => ({ kind: ba[s], name: t, metadata: n, addInitializer: (o) => e._ ? ge("Already initialized") : i.push(Ge(o || null)) }), Zh = (s, t) => Ca(t, Ea("metadata"), s[3]), Ot = (s, t, e, n) => {
2191
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
2180
+ }, Oa = (s, t, e) => t in s ? ki(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Er = (s, t) => ki(s, "name", { value: t, configurable: !0 }), al = (s) => [, , , rl((s == null ? void 0 : s[Ma("metadata")]) ?? null)], xa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ve = (s) => s !== void 0 && typeof s != "function" ? ve("Function expected") : s, cl = (s, t, e, n, i) => ({ kind: xa[s], name: t, metadata: n, addInitializer: (r) => e._ ? ve("Already initialized") : i.push(Ve(r || null)) }), hl = (s, t) => Oa(t, Ma("metadata"), s[3]), lt = (s, t, e, n) => {
2181
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
2192
2182
  return n;
2193
- }, Ks = (s, t, e, n, i, o) => {
2194
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = ba[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && Jh(r < 4 ? i : { get [e]() {
2195
- return yr(this, o);
2196
- }, set [e](u) {
2197
- return wr(this, o, u);
2183
+ }, os = (s, t, e, n, i, r) => {
2184
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = xa[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && ol(o < 4 ? i : { get [e]() {
2185
+ return Pn(this, r);
2186
+ }, set [e](_) {
2187
+ return br(this, r, _);
2198
2188
  } }, e));
2199
- r ? h && r < 4 && $r(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : $r(i, e);
2189
+ o ? h && o < 4 && Er(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : Er(i, e);
2200
2190
  for (var b = n.length - 1; b >= 0; b--)
2201
- l = Yh(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => Xh(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? yr : el)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => wr(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? Ge(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ge("Object expected") : (Ge(a = c.get) && (p.get = a), Ge(a = c.set) && (p.set = a), Ge(a = c.init) && w.unshift(a));
2202
- return r || Zh(s, i), p && Ci(i, e, p), h ? r ^ 4 ? o : p : i;
2203
- }, Sr = (s, t, e) => Ca(s, typeof t != "symbol" ? t + "" : t, e), bi = (s, t, e) => t.has(s) || ge("Cannot " + e), Xh = (s, t) => Object(t) !== t ? ge('Cannot use the "in" operator on this value') : s.has(t), yr = (s, t, e) => (bi(s, t, "read from private field"), e ? e.call(s) : t.get(s)), tl = (s, t, e) => t.has(s) ? ge("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), wr = (s, t, e, n) => (bi(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), el = (s, t, e) => (bi(s, t, "access private method"), e), Ta, Pa, ka, Pn, Ma, tt, Ti;
2204
- Ma = [Vt()];
2205
- class ce extends (Pn = st, ka = [D], Pa = [D], Ta = [le()], Pn) {
2206
- constructor() {
2207
- super(...arguments), Sr(this, "content", Ot(tt, 8, this)), Ot(tt, 11, this), Sr(this, "contentcss", Ot(tt, 12, this)), Ot(tt, 15, this), tl(this, Ti, Ot(tt, 16, this, () => {
2208
- const t = (
2209
- /*html*/
2210
- `
2211
- <style>
2212
- :host(:where(:not([hidden]))) {
2213
- display: contents;
2214
- }
2215
- ${this.contentcss}
2216
- </style>
2217
- `
2218
- );
2219
- this.shadowRoot.innerHTML = this.content + t.trim();
2220
- })), Ot(tt, 19, this);
2191
+ d = cl(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => ll(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? Pn : dl)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => br(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Ve(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ve("Object expected") : (Ve(a = c.get) && (p.get = a), Ve(a = c.set) && (p.set = a), Ve(a = c.init) && w.unshift(a));
2192
+ return o || hl(s, i), p && ki(i, e, p), h ? o ^ 4 ? r : p : i;
2193
+ }, Cr = (s, t, e) => Oa(s, typeof t != "symbol" ? t + "" : t, e), Pi = (s, t, e) => t.has(s) || ve("Cannot " + e), ll = (s, t) => Object(t) !== t ? ve('Cannot use the "in" operator on this value') : s.has(t), Pn = (s, t, e) => (Pi(s, t, "read from private field"), e ? e.call(s) : t.get(s)), sn = (s, t, e) => t.has(s) ? ve("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), br = (s, t, e, n) => (Pi(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), dl = (s, t, e) => (Pi(s, t, "access private method"), e), La, Aa, Na, Ra, Mn, Ia, G, On, Ha, Mi, Oi;
2194
+ const ul = le`
2195
+ :host(:where(:not([hidden]))) {
2196
+ display: contents;
2221
2197
  }
2222
- }
2223
- tt = Qh(Pn);
2224
- Ti = /* @__PURE__ */ new WeakMap();
2225
- Ks(tt, 5, "content", ka, ce);
2226
- Ks(tt, 5, "contentcss", Pa, ce);
2227
- Ks(tt, 21, "#content", Ta, Ti);
2228
- ce = Ks(tt, 0, "GemUnsafeElement", Ma, ce);
2229
- Ot(tt, 1, ce);
2198
+ `;
2199
+ Ia = [Vt(), is(ul)];
2200
+ class ce extends (Mn = tt, Ra = [B], Na = [D], Aa = [ft()], La = [de()], Mn) {
2201
+ constructor() {
2202
+ super(...arguments), sn(this, On), Cr(this, "html", lt(G, 8, this)), lt(G, 11, this), Cr(this, "styles", lt(G, 12, this)), lt(G, 15, this), sn(this, Mi, lt(G, 16, this, () => {
2203
+ const t = this.shadowRoot.adoptedStyleSheets;
2204
+ return this.shadowRoot.adoptedStyleSheets = t.concat(Pn(this, On, Ha)), () => {
2205
+ this.shadowRoot.adoptedStyleSheets = t;
2206
+ };
2207
+ })), lt(G, 19, this), sn(this, Oi, lt(G, 20, this, () => {
2208
+ this.shadowRoot.innerHTML = this.html;
2209
+ })), lt(G, 23, this);
2210
+ }
2211
+ }
2212
+ G = al(Mn);
2213
+ On = /* @__PURE__ */ new WeakSet();
2214
+ Ha = function() {
2215
+ if (!this.styles) return [];
2216
+ if (typeof this.styles == "string") {
2217
+ const s = new CSSStyleSheet();
2218
+ return s.replaceSync(this.styles), [s];
2219
+ } else
2220
+ return [this.styles].flat().map((s) => s[Et].getStyle());
2221
+ };
2222
+ Mi = /* @__PURE__ */ new WeakMap();
2223
+ Oi = /* @__PURE__ */ new WeakMap();
2224
+ os(G, 5, "html", Ra, ce);
2225
+ os(G, 5, "styles", Na, ce);
2226
+ os(G, 21, "#adoptStyles", Aa, Mi);
2227
+ os(G, 21, "#content", La, Oi);
2228
+ ce = os(G, 0, "GemUnsafeElement", Ia, ce);
2229
+ lt(G, 1, ce);
2230
2230
  customElements.define("gem-unsafe", ce);
2231
- var sl = Object.create, Pi = Object.defineProperty, nl = Object.getOwnPropertyDescriptor, Oa = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), ve = (s) => {
2231
+ var _l = Object.create, xi = Object.defineProperty, pl = Object.getOwnPropertyDescriptor, Wa = (s, t) => (t = Symbol[s]) ? t : Symbol.for("Symbol." + s), $e = (s) => {
2232
2232
  throw TypeError(s);
2233
- }, xa = (s, t, e) => t in s ? Pi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Er = (s, t) => Pi(s, "name", { value: t, configurable: !0 }), il = (s) => [, , , sl((s == null ? void 0 : s[Oa("metadata")]) ?? null)], Aa = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], De = (s) => s !== void 0 && typeof s != "function" ? ve("Function expected") : s, rl = (s, t, e, n, i) => ({ kind: Aa[s], name: t, metadata: n, addInitializer: (o) => e._ ? ve("Already initialized") : i.push(De(o || null)) }), ol = (s, t) => xa(t, Oa("metadata"), s[3]), it = (s, t, e, n) => {
2234
- for (var i = 0, o = s[t >> 1], a = o && o.length; i < a; i++) t & 1 ? o[i].call(e) : n = o[i].call(e, n);
2233
+ }, za = (s, t, e) => t in s ? xi(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, Tr = (s, t) => xi(s, "name", { value: t, configurable: !0 }), fl = (s) => [, , , _l((s == null ? void 0 : s[Wa("metadata")]) ?? null)], Va = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ge = (s) => s !== void 0 && typeof s != "function" ? $e("Function expected") : s, ml = (s, t, e, n, i) => ({ kind: Va[s], name: t, metadata: n, addInitializer: (r) => e._ ? $e("Already initialized") : i.push(Ge(r || null)) }), gl = (s, t) => za(t, Wa("metadata"), s[3]), st = (s, t, e, n) => {
2234
+ for (var i = 0, r = s[t >> 1], a = r && r.length; i < a; i++) t & 1 ? r[i].call(e) : n = r[i].call(e, n);
2235
2235
  return n;
2236
- }, $e = (s, t, e, n, i, o) => {
2237
- var a, c, d, l, f, r = t & 7, m = !!(t & 8), h = !!(t & 16), g = r > 3 ? s.length + 1 : r ? m ? 1 : 2 : 0, $ = Aa[r + 5], w = r > 3 && (s[g - 1] = []), P = s[g] || (s[g] = []), p = r && (!h && !m && (i = i.prototype), r < 5 && (r > 3 || !h) && nl(r < 4 ? i : { get [e]() {
2238
- return kn(this, o);
2239
- }, set [e](u) {
2240
- return br(this, o, u);
2236
+ }, Se = (s, t, e, n, i, r) => {
2237
+ var a, c, l, d, f, o = t & 7, m = !!(t & 8), h = !!(t & 16), g = o > 3 ? s.length + 1 : o ? m ? 1 : 2 : 0, $ = Va[o + 5], w = o > 3 && (s[g - 1] = []), k = s[g] || (s[g] = []), p = o && (!h && !m && (i = i.prototype), o < 5 && (o > 3 || !h) && pl(o < 4 ? i : { get [e]() {
2238
+ return xn(this, r);
2239
+ }, set [e](_) {
2240
+ return Pr(this, r, _);
2241
2241
  } }, e));
2242
- r ? h && r < 4 && Er(o, (r > 2 ? "set " : r > 1 ? "get " : "") + e) : Er(i, e);
2242
+ o ? h && o < 4 && Tr(r, (o > 2 ? "set " : o > 1 ? "get " : "") + e) : Tr(i, e);
2243
2243
  for (var b = n.length - 1; b >= 0; b--)
2244
- l = rl(r, e, d = {}, s[3], P), r && (l.static = m, l.private = h, f = l.access = { has: h ? (u) => al(i, u) : (u) => e in u }, r ^ 3 && (f.get = h ? (u) => (r ^ 1 ? kn : cl)(u, i, r ^ 4 ? o : p.get) : (u) => u[e]), r > 2 && (f.set = h ? (u, k) => br(u, i, k, r ^ 4 ? o : p.set) : (u, k) => u[e] = k)), c = (0, n[b])(r ? r < 4 ? h ? o : p[$] : r > 4 ? void 0 : { get: p.get, set: p.set } : i, l), d._ = 1, r ^ 4 || c === void 0 ? De(c) && (r > 4 ? w.unshift(c) : r ? h ? o = c : p[$] = c : i = c) : typeof c != "object" || c === null ? ve("Object expected") : (De(a = c.get) && (p.get = a), De(a = c.set) && (p.set = a), De(a = c.init) && w.unshift(a));
2245
- return r || ol(s, i), p && Pi(i, e, p), h ? r ^ 4 ? o : p : i;
2246
- }, ls = (s, t, e) => xa(s, typeof t != "symbol" ? t + "" : t, e), ki = (s, t, e) => t.has(s) || ve("Cannot " + e), al = (s, t) => Object(t) !== t ? ve('Cannot use the "in" operator on this value') : s.has(t), kn = (s, t, e) => (ki(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Cr = (s, t, e) => t.has(s) ? ve("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), br = (s, t, e, n) => (ki(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), cl = (s, t, e) => (ki(s, t, "access private method"), e), La, Na, Ra, Ia, Ha, Mn, Wa, R, On, Mi;
2247
- const hl = is`
2244
+ d = ml(o, e, l = {}, s[3], k), o && (d.static = m, d.private = h, f = d.access = { has: h ? (_) => vl(i, _) : (_) => e in _ }, o ^ 3 && (f.get = h ? (_) => (o ^ 1 ? xn : $l)(_, i, o ^ 4 ? r : p.get) : (_) => _[e]), o > 2 && (f.set = h ? (_, P) => Pr(_, i, P, o ^ 4 ? r : p.set) : (_, P) => _[e] = P)), c = (0, n[b])(o ? o < 4 ? h ? r : p[$] : o > 4 ? void 0 : { get: p.get, set: p.set } : i, d), l._ = 1, o ^ 4 || c === void 0 ? Ge(c) && (o > 4 ? w.unshift(c) : o ? h ? r = c : p[$] = c : i = c) : typeof c != "object" || c === null ? $e("Object expected") : (Ge(a = c.get) && (p.get = a), Ge(a = c.set) && (p.set = a), Ge(a = c.init) && w.unshift(a));
2245
+ return o || gl(s, i), p && xi(i, e, p), h ? o ^ 4 ? r : p : i;
2246
+ }, ls = (s, t, e) => za(s, typeof t != "symbol" ? t + "" : t, e), Li = (s, t, e) => t.has(s) || $e("Cannot " + e), vl = (s, t) => Object(t) !== t ? $e('Cannot use the "in" operator on this value') : s.has(t), xn = (s, t, e) => (Li(s, t, "read from private field"), e ? e.call(s) : t.get(s)), kr = (s, t, e) => t.has(s) ? $e("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), Pr = (s, t, e, n) => (Li(s, t, "write to private field"), n ? n.call(s, e) : t.set(s, e), e), $l = (s, t, e) => (Li(s, t, "access private method"), e), Ga, Da, Ua, Fa, qa, Ln, Ba, I, An, Ai;
2247
+ const Sl = le`
2248
2248
  :host(:where(:not([hidden]))) {
2249
2249
  position: relative;
2250
2250
  display: inline-flex;
@@ -2254,65 +2254,65 @@ const hl = is`
2254
2254
  width: 100%;
2255
2255
  height: 100%;
2256
2256
  }
2257
- `, Tr = /* @__PURE__ */ new Map();
2258
- Wa = [Vt(), Vs(hl)];
2259
- class bt extends (Mn = st, Ha = [D], Ia = [B], Ra = [B], Na = [zs], La = [le()], Mn) {
2257
+ `, Mr = /* @__PURE__ */ new Map();
2258
+ Ba = [Vt(), is(Sl)];
2259
+ class Tt extends (Ln = tt, qa = [B], Fa = [D], Ua = [D], Da = [zs], Ga = [de()], Ln) {
2260
2260
  constructor() {
2261
- super(...arguments), ls(this, "selector", it(R, 8, this)), it(R, 11, this), ls(this, "root", it(R, 12, this)), it(R, 15, this), ls(this, "element", it(R, 16, this)), it(R, 19, this), ls(this, "active", it(R, 20, this)), it(R, 23, this), Cr(this, On, () => {
2261
+ super(...arguments), ls(this, "selector", st(I, 8, this)), st(I, 11, this), ls(this, "root", st(I, 12, this)), st(I, 15, this), ls(this, "element", st(I, 16, this)), st(I, 19, this), ls(this, "active", st(I, 20, this)), st(I, 23, this), kr(this, An, () => {
2262
2262
  const t = this.element || (this.selector ? (this.root || document).querySelector(this.selector) : null);
2263
2263
  if (typeof t == "string") {
2264
- let e = Tr.get(t);
2265
- return e || (e = document.createElement("template"), e.innerHTML = t, Tr.set(t, e)), e.content.cloneNode(!0);
2264
+ let e = Mr.get(t);
2265
+ return e || (e = document.createElement("template"), e.innerHTML = t, Mr.set(t, e)), e.content.cloneNode(!0);
2266
2266
  } else return t instanceof HTMLTemplateElement ? t.content.cloneNode(!0) : t == null ? void 0 : t.cloneNode(!0);
2267
- }), Cr(this, Mi, it(R, 24, this, () => et`${kn(this, On).call(this)}<slot></slot>`)), it(R, 27, this);
2268
- }
2269
- }
2270
- R = il(Mn);
2271
- On = /* @__PURE__ */ new WeakMap();
2272
- Mi = /* @__PURE__ */ new WeakMap();
2273
- $e(R, 5, "selector", Ha, bt);
2274
- $e(R, 5, "root", Ia, bt);
2275
- $e(R, 5, "element", Ra, bt);
2276
- $e(R, 5, "active", Na, bt);
2277
- $e(R, 21, "#content", La, Mi);
2278
- bt = $e(R, 0, "GemUseElement", Wa, bt);
2279
- it(R, 1, bt);
2280
- customElements.define("gem-use", bt);
2281
- var ss, ie, ms;
2282
- class ll {
2267
+ }), kr(this, Ai, st(I, 24, this, () => ot`${xn(this, An).call(this)}<slot></slot>`)), st(I, 27, this);
2268
+ }
2269
+ }
2270
+ I = fl(Ln);
2271
+ An = /* @__PURE__ */ new WeakMap();
2272
+ Ai = /* @__PURE__ */ new WeakMap();
2273
+ Se(I, 5, "selector", qa, Tt);
2274
+ Se(I, 5, "root", Fa, Tt);
2275
+ Se(I, 5, "element", Ua, Tt);
2276
+ Se(I, 5, "active", Da, Tt);
2277
+ Se(I, 21, "#content", Ga, Ai);
2278
+ Tt = Se(I, 0, "GemUseElement", Ba, Tt);
2279
+ st(I, 1, Tt);
2280
+ customElements.define("gem-use", Tt);
2281
+ var es, ie, fs;
2282
+ class yl {
2283
2283
  constructor(t) {
2284
2284
  E(this, ie);
2285
- E(this, ss);
2285
+ E(this, es);
2286
2286
  v(this, "info", (...t) => {
2287
- console.log(_(this, ie, ms), ...t);
2287
+ console.log(u(this, ie, fs), ...t);
2288
2288
  });
2289
2289
  v(this, "warn", (...t) => {
2290
- console.warn(_(this, ie, ms), ...t);
2290
+ console.warn(u(this, ie, fs), ...t);
2291
2291
  });
2292
2292
  v(this, "error", (...t) => {
2293
- console.error(_(this, ie, ms), ...t);
2293
+ console.error(u(this, ie, fs), ...t);
2294
2294
  });
2295
- M(this, ss, t);
2295
+ M(this, es, t);
2296
2296
  }
2297
2297
  }
2298
- ss = new WeakMap(), ie = new WeakSet(), ms = function() {
2299
- return `[${_(this, ss)}]`;
2298
+ es = new WeakMap(), ie = new WeakSet(), fs = function() {
2299
+ return `[${u(this, es)}]`;
2300
2300
  };
2301
- const dl = new ll("GEM"), ul = /\$\d(?:<[^>]*>)?/, _l = /\$(\d)(<([^>]*)>)?/g, pl = 3;
2302
- function fl(s, ...t) {
2303
- const e = s.split(ul), n = [];
2301
+ const wl = new yl("GEM"), El = /\$\d(?:<[^>]*>)?/, Cl = /\$(\d)(<([^>]*)>)?/g, bl = 3;
2302
+ function Tl(s, ...t) {
2303
+ const e = s.split(El), n = [];
2304
2304
  let i;
2305
- for (; i = _l.exec(s); ) {
2306
- const o = i[pl], a = Number(i[1]) - 1, c = t[a];
2307
- n.push(typeof c == "function" ? c(o) : c);
2305
+ for (; i = Cl.exec(s); ) {
2306
+ const r = i[bl], a = Number(i[1]) - 1, c = t[a];
2307
+ n.push(typeof c == "function" ? c(r) : c);
2308
2308
  }
2309
- return et(e, ...n);
2309
+ return ot(e, ...n);
2310
2310
  }
2311
- const Ce = /* @__PURE__ */ new Set();
2312
- var L, gs, za, Va, Ue, vs, ns;
2313
- const Oi = class Oi {
2311
+ const be = /* @__PURE__ */ new Set();
2312
+ var A, ms, Ka, ja, De, gs, ss;
2313
+ const Ni = class Ni {
2314
2314
  constructor(t) {
2315
- E(this, L);
2315
+ E(this, A);
2316
2316
  v(this, "resources");
2317
2317
  v(this, "fallbackLanguage");
2318
2318
  v(this, "currentLanguage");
@@ -2324,11 +2324,11 @@ const Oi = class Oi {
2324
2324
  // 兼容 `<gem-route>`
2325
2325
  v(this, "replace", ({ path: t }) => this.setLanguage(t));
2326
2326
  v(this, "getParams", () => ({ path: this.currentLanguage }));
2327
- E(this, ns, !0);
2327
+ E(this, ss, !0);
2328
2328
  if (!t.resources[t.fallbackLanguage])
2329
- throw new yt("i18n: fallbackLanguage invalid");
2329
+ throw new wt("i18n: fallbackLanguage invalid");
2330
2330
  Object.assign(this, t);
2331
- let e = _(this, L, za) || this.currentLanguage || _(this, L, Va);
2331
+ let e = u(this, A, Ka) || this.currentLanguage || u(this, A, ja);
2332
2332
  const n = document.querySelector(`[type*=${this.cachePrefix}]`);
2333
2333
  if (n)
2334
2334
  try {
@@ -2336,74 +2336,74 @@ const Oi = class Oi {
2336
2336
  e = i.currentLanguage, this.resources[i.currentLanguage] = i.currentLanguagePack;
2337
2337
  } catch {
2338
2338
  }
2339
- e ? (M(this, L, e, vs), this.setLanguage(e)) : this.resetLanguage(), M(this, ns, !1);
2339
+ e ? (M(this, A, e, gs), this.setLanguage(e)) : this.resetLanguage(), M(this, ss, !1);
2340
2340
  }
2341
2341
  get(t, ...e) {
2342
- const n = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage], o = n[t] || i[t], a = (o == null ? void 0 : o.message) || o || `[${t}]`;
2343
- return e.length ? fl(a, ...e) : a;
2342
+ const n = this.resources[this.currentLanguage], i = this.resources[this.fallbackLanguage], r = n[t] || i[t], a = (r == null ? void 0 : r.message) || r || `[${t}]`;
2343
+ return e.length ? Tl(a, ...e) : a;
2344
2344
  }
2345
2345
  detectLanguage() {
2346
2346
  const t = Object.keys(this.resources), e = navigator.languages.map((n) => n.replace(/-(.*)/, (i) => i.toUpperCase()));
2347
2347
  for (const n of e) {
2348
- const i = t.find((o) => o === n || n.startsWith(`${o}-`));
2348
+ const i = t.find((r) => r === n || n.startsWith(`${r}-`));
2349
2349
  if (i) return i;
2350
2350
  }
2351
2351
  return this.fallbackLanguage;
2352
2352
  }
2353
2353
  async setLanguage(t) {
2354
- var i, o;
2355
- _(this, L, Ue) && Ce.forEach(async (a) => await a.setLanguage(t));
2354
+ var i, r;
2355
+ u(this, A, De) && be.forEach(async (a) => await a.setLanguage(t));
2356
2356
  let e;
2357
2357
  const n = this.resources[t];
2358
2358
  if (!n)
2359
- return dl.warn(`${this.cachePrefix}: not found \`${t}\``), this.resetLanguage();
2359
+ return wl.warn(`${this.cachePrefix}: not found \`${t}\``), this.resetLanguage();
2360
2360
  if (typeof n == "string") {
2361
- const a = `${this.cachePrefix}:`, c = `${a}${n}`, d = localStorage.getItem(c), l = async () => {
2361
+ const a = `${this.cachePrefix}:`, c = `${a}${n}`, l = localStorage.getItem(c), d = async () => {
2362
2362
  const f = await (await fetch(n)).json();
2363
2363
  if (this.cache) {
2364
- for (let r = 0; r < localStorage.length; r++) {
2365
- const m = localStorage.key(r);
2364
+ for (let o = 0; o < localStorage.length; o++) {
2365
+ const m = localStorage.key(o);
2366
2366
  m.startsWith(a) && localStorage.removeItem(m);
2367
2367
  }
2368
2368
  localStorage.setItem(c, JSON.stringify(f));
2369
2369
  }
2370
2370
  return f;
2371
2371
  };
2372
- if (d)
2372
+ if (l)
2373
2373
  try {
2374
- e = JSON.parse(d);
2374
+ e = JSON.parse(l);
2375
2375
  } catch {
2376
- e = await l();
2376
+ e = await d();
2377
2377
  }
2378
2378
  else
2379
- e = await l();
2379
+ e = await d();
2380
2380
  } else
2381
2381
  e = n;
2382
- if (this.resources[t] = e, !_(this, ns)) {
2382
+ if (this.resources[t] = e, !u(this, ss)) {
2383
2383
  const a = [document.documentElement];
2384
2384
  for (; a.length; ) {
2385
2385
  const c = a.pop();
2386
- (i = c[Ls]) == null || i.call(c), a.push(...[...c.children, ...((o = c.shadowRoot) == null ? void 0 : o.children) || []].reverse());
2386
+ (i = c[As]) == null || i.call(c), a.push(...[...c.children, ...((r = c.shadowRoot) == null ? void 0 : r.children) || []].reverse());
2387
2387
  }
2388
2388
  }
2389
- return t !== this.currentLanguage && M(this, L, t, vs), this.cache === !0 && this.setCache(), t;
2389
+ return t !== this.currentLanguage && M(this, A, t, gs), this.cache === !0 && this.setCache(), t;
2390
2390
  }
2391
2391
  resetLanguage() {
2392
- return _(this, L, Ue) && Ce.forEach((t) => t.resetLanguage()), M(this, L, this.fallbackLanguage, vs), this.cache && localStorage.removeItem(_(this, L, gs)), this.setLanguage(this.detectLanguage());
2392
+ return u(this, A, De) && be.forEach((t) => t.resetLanguage()), M(this, A, this.fallbackLanguage, gs), this.cache && localStorage.removeItem(u(this, A, ms)), this.setLanguage(this.detectLanguage());
2393
2393
  }
2394
2394
  // 一般用在 `onChange` 中
2395
2395
  setCache() {
2396
- _(this, L, Ue) && Ce.forEach((t) => t.setCache()), localStorage.setItem(_(this, L, gs), this.currentLanguage);
2396
+ u(this, A, De) && be.forEach((t) => t.setCache()), localStorage.setItem(u(this, A, ms), this.currentLanguage);
2397
2397
  }
2398
2398
  createSubModule(t, e) {
2399
- const n = new Oi({
2399
+ const n = new Ni({
2400
2400
  resources: e,
2401
2401
  cachePrefix: `${this.cachePrefix}-${t}`,
2402
2402
  currentLanguage: this.currentLanguage,
2403
2403
  fallbackLanguage: this.fallbackLanguage,
2404
2404
  cache: this.cache
2405
2405
  });
2406
- return Ce.add(n), n;
2406
+ return be.add(n), n;
2407
2407
  }
2408
2408
  /**
2409
2409
  * @example
@@ -2421,9 +2421,9 @@ const Oi = class Oi {
2421
2421
  };
2422
2422
  }
2423
2423
  };
2424
- L = new WeakSet(), gs = function() {
2424
+ A = new WeakSet(), ms = function() {
2425
2425
  return `${this.cachePrefix}:current`;
2426
- }, za = function() {
2426
+ }, Ka = function() {
2427
2427
  const { hostname: t, pathname: e, search: n } = location, i = t.split(".");
2428
2428
  switch (this.urlParamsType) {
2429
2429
  case "ccTLD":
@@ -2433,20 +2433,20 @@ L = new WeakSet(), gs = function() {
2433
2433
  case "path":
2434
2434
  return e.split("/")[1];
2435
2435
  default: {
2436
- const o = this.urlParamsName && new URLSearchParams(n).get(this.urlParamsName) || "";
2437
- return o in this.resources ? o : "";
2436
+ const r = this.urlParamsName && new URLSearchParams(n).get(this.urlParamsName) || "";
2437
+ return r in this.resources ? r : "";
2438
2438
  }
2439
2439
  }
2440
- }, Va = function() {
2441
- return this.cache && localStorage.getItem(_(this, L, gs)) || "";
2442
- }, Ue = function() {
2443
- return !Ce.has(this);
2444
- }, vs = function(t) {
2440
+ }, ja = function() {
2441
+ return this.cache && localStorage.getItem(u(this, A, ms)) || "";
2442
+ }, De = function() {
2443
+ return !be.has(this);
2444
+ }, gs = function(t) {
2445
2445
  var e;
2446
- _(this, L, Ue) && (document.documentElement.lang = t), this.currentLanguage = t, (e = this.onChange) == null || e.call(this, t);
2447
- }, ns = new WeakMap();
2448
- let Pr = Oi;
2449
- const K = (s) => matchMedia(s).matches, Ol = {
2446
+ u(this, A, De) && (document.documentElement.lang = t), this.currentLanguage = t, (e = this.onChange) == null || e.call(this, t);
2447
+ }, ss = new WeakMap();
2448
+ let Or = Ni;
2449
+ const K = (s) => matchMedia(s).matches, Gl = {
2450
2450
  PRINT: "print",
2451
2451
  get isPrint() {
2452
2452
  return K(this.PRINT);
@@ -2506,226 +2506,226 @@ const K = (s) => matchMedia(s).matches, Ol = {
2506
2506
  get isWidthScreen() {
2507
2507
  return K(this.WIDTHSCREEN);
2508
2508
  }
2509
- }, ml = Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())).constructor;
2510
- function gl(s = {}) {
2509
+ }, kl = Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array())).constructor;
2510
+ function Pl(s = {}) {
2511
2511
  const {
2512
2512
  origin: t = location.origin,
2513
2513
  base: e = "",
2514
2514
  appendHeaders: n = () => ({}),
2515
- transformInput: i = (r) => r,
2516
- transformOutput: o = (r) => r,
2515
+ transformInput: i = (o) => o,
2516
+ transformOutput: r = (o) => o,
2517
2517
  ...a
2518
- } = s, c = (r) => r instanceof FormData || r instanceof Blob || r instanceof ml || r instanceof URLSearchParams || r instanceof ReadableStream || r instanceof ArrayBuffer ? r : typeof r == "object" ? JSON.stringify(r) : r, d = (r, m) => {
2519
- if (new URL(r, location.origin).pathname !== r)
2520
- throw new yt("`path` format is incorrect");
2518
+ } = s, c = (o) => o instanceof FormData || o instanceof Blob || o instanceof kl || o instanceof URLSearchParams || o instanceof ReadableStream || o instanceof ArrayBuffer ? o : typeof o == "object" ? JSON.stringify(o) : o, l = (o, m) => {
2519
+ if (new URL(o, location.origin).pathname !== o)
2520
+ throw new wt("`path` format is incorrect");
2521
2521
  const h = new URLSearchParams(m).toString();
2522
- return `${t}${e}${r}${h ? "?" : ""}${h}`;
2523
- }, l = (r) => {
2524
- if (!r) return {};
2525
- if (r instanceof Headers) return Object.fromEntries(r);
2526
- const m = Array.isArray(r) ? r : Object.entries(r);
2522
+ return `${t}${e}${o}${h ? "?" : ""}${h}`;
2523
+ }, d = (o) => {
2524
+ if (!o) return {};
2525
+ if (o instanceof Headers) return Object.fromEntries(o);
2526
+ const m = Array.isArray(o) ? o : Object.entries(o);
2527
2527
  return Object.fromEntries(m.map(([h, g]) => [h.toLowerCase(), g]));
2528
- }, f = async (r, m = {}) => {
2529
- const h = new Request(r, {
2528
+ }, f = async (o, m = {}) => {
2529
+ const h = new Request(o, {
2530
2530
  ...a,
2531
2531
  ...m,
2532
2532
  headers: new Headers({
2533
2533
  "content-type": "application/json",
2534
- ...l(a.headers),
2535
- ...l(m.headers)
2534
+ ...d(a.headers),
2535
+ ...d(m.headers)
2536
2536
  })
2537
2537
  }), g = await fetch(h);
2538
2538
  if (g.status === 0) throw new Error("Request fail");
2539
2539
  if (g.status >= 500) throw new Error(g.statusText);
2540
2540
  const $ = h.headers.get("content-type"), w = g.status >= 400;
2541
2541
  try {
2542
- let P;
2543
- if ($.includes("json") ? P = await g.json() : $.includes("octet-stream") ? P = await g.arrayBuffer() : P = await g.text(), w) throw new Error(g.statusText, { cause: P });
2544
- return o(P, h);
2542
+ let k;
2543
+ if ($.includes("json") ? k = await g.json() : $.includes("octet-stream") ? k = await g.arrayBuffer() : k = await g.text(), w) throw new Error(g.statusText, { cause: k });
2544
+ return await r(k, h);
2545
2545
  } catch {
2546
2546
  throw new Error("Parse error");
2547
2547
  }
2548
2548
  };
2549
2549
  return {
2550
2550
  request: f,
2551
- get(r, m) {
2552
- const h = i(m);
2553
- return f(d(r, h), {
2551
+ async get(o, m) {
2552
+ const h = await i(m);
2553
+ return f(l(o, h), {
2554
2554
  method: "GET",
2555
- headers: n(h)
2555
+ headers: await n(h)
2556
2556
  });
2557
2557
  },
2558
- del(r, m) {
2559
- const h = i(m);
2560
- return f(d(r, h), {
2558
+ async del(o, m) {
2559
+ const h = await i(m);
2560
+ return f(l(o, h), {
2561
2561
  method: "DELETE",
2562
- headers: n(h)
2562
+ headers: await n(h)
2563
2563
  });
2564
2564
  },
2565
- put(r, m) {
2566
- const h = i(m);
2567
- return f(d(r), {
2565
+ async put(o, m) {
2566
+ const h = await i(m);
2567
+ return f(l(o), {
2568
2568
  method: "PUT",
2569
- headers: n(h),
2569
+ headers: await n(h),
2570
2570
  body: c(h)
2571
2571
  });
2572
2572
  },
2573
- post(r, m) {
2574
- const h = i(m);
2575
- return f(d(r), {
2573
+ async post(o, m) {
2574
+ const h = await i(m);
2575
+ return f(l(o), {
2576
2576
  method: "POST",
2577
- headers: n(h),
2577
+ headers: await n(h),
2578
2578
  body: c(h)
2579
2579
  });
2580
2580
  }
2581
2581
  };
2582
2582
  }
2583
- const { request: xl, del: Al, get: Ll, post: Nl, put: Rl } = gl(), Ga = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap();
2584
- function Il(s) {
2585
- return Ga.get(s);
2583
+ const { request: Dl, del: Ul, get: Fl, post: ql, put: Bl } = Pl(), Qa = /* @__PURE__ */ new WeakMap(), Ja = /* @__PURE__ */ new WeakMap();
2584
+ function Kl(s) {
2585
+ return Qa.get(s);
2586
2586
  }
2587
- function Ua(s) {
2588
- return Da.get(s);
2587
+ function Ya(s) {
2588
+ return Ja.get(s);
2589
2589
  }
2590
2590
  function bs(s, t = {}) {
2591
- const e = An(), n = is({})[Ht], i = zt(s), o = new Proxy(
2592
- xs({ [Ht]: n }, (c) => i(c)),
2591
+ const e = Rn(), n = le({})[Et], i = zt(s), r = new Proxy(
2592
+ xs({ [Et]: n }, (c) => i(c)),
2593
2593
  {
2594
- get(c, d) {
2595
- if (!c[d]) {
2596
- const [l, f, r] = d.match(/^(\w*Color)(\d+)$/) || [];
2597
- f && (c[d] = `oklch(from ${c[f]} calc(l - ${(Number(r) - 400) / 1e3}) c h)`);
2594
+ get(c, l) {
2595
+ if (!c[l]) {
2596
+ const [d, f, o] = l.match(/^(\w*Color)(\d+)$/) || [];
2597
+ f && (c[l] = `oklch(from ${c[f]} calc(l - ${(Number(o) - 400) / 1e3}) c h)`);
2598
2598
  }
2599
- return c[d];
2599
+ return c[l];
2600
2600
  }
2601
2601
  }
2602
2602
  );
2603
- Da.set(o, t), Ga.set(o, i);
2603
+ Ja.set(r, t), Qa.set(r, i);
2604
2604
  const a = () => {
2605
2605
  let c = "";
2606
- Object.keys(i).forEach((d) => {
2607
- t[d] || (t[d] = `--${he(d)}-${e}`, o[d] = `var(${t[d]})`), c += `${t[d]}:${i[d]};`;
2608
- }), n.setContent(`:scope,:host{${c}}`);
2606
+ Object.keys(i).forEach((l) => {
2607
+ t[l] || (t[l] = `--${he(l)}-${e}`, r[l] = `var(${t[l]})`), c += `${t[l]}:${i[l]};`;
2608
+ }), n.setContent(`&,:host{${c}}`);
2609
2609
  };
2610
- return a(), _t(i, () => {
2610
+ return a(), mt(i, () => {
2611
2611
  a(), n.updateStyle();
2612
- }), o;
2612
+ }), r;
2613
2613
  }
2614
- function vl(s) {
2614
+ function Ml(s) {
2615
2615
  return bs(s);
2616
2616
  }
2617
- function Hl(s) {
2618
- const t = vl(s);
2619
- return document.adoptedStyleSheets.push(t[Ht].getStyle()), t;
2617
+ function jl(s) {
2618
+ const t = Ml(s);
2619
+ return document.adoptedStyleSheets.push(t[Et].getStyle()), t;
2620
2620
  }
2621
- function Wl(s, t) {
2622
- return bs(t, Ua(s));
2621
+ function Ql(s, t) {
2622
+ return bs(t, Ya(s));
2623
2623
  }
2624
- function zl(s) {
2625
- const t = bs(s), e = Ua(t);
2626
- return xs(t, (i) => (o, { addInitializer: a, access: c }) => {
2624
+ function Jl(s) {
2625
+ const t = bs(s), e = Ya(t);
2626
+ return xs(t, (i) => (r, { addInitializer: a, access: c }) => {
2627
2627
  a(function() {
2628
- const d = bs({ ...s }, e);
2629
- this.internals.sheets.push(d[Ht].getStyle(this)), this.memo(() => d(c.get(this).apply(this)), i && (() => i(this)));
2628
+ const l = bs({ ...s }, e);
2629
+ this.internals.sheets.push(l[Et].getStyle(this, !0)), this.memo(() => l(c.get(this).apply(this)), i && (() => i(this)));
2630
2630
  });
2631
2631
  });
2632
2632
  }
2633
2633
  export {
2634
2634
  ae as GemActiveLinkElement,
2635
- Je as GemDialogBaseElement,
2636
- st as GemElement,
2637
- yt as GemError,
2638
- I as GemLightRouteElement,
2639
- W as GemLinkElement,
2640
- Bs as GemReflectElement,
2635
+ je as GemDialogBaseElement,
2636
+ tt as GemElement,
2637
+ wt as GemError,
2638
+ H as GemLightRouteElement,
2639
+ aa as GemLinkElement,
2640
+ qs as GemReflectElement,
2641
2641
  Qe as GemRouteElement,
2642
- Ve as GemTitleElement,
2642
+ kn as GemTitleElement,
2643
2643
  ce as GemUnsafeElement,
2644
- bt as GemUseElement,
2645
- Pr as I18n,
2646
- Qa as LinkedList,
2647
- ll as Logger,
2648
- Ya as PropProxyMap,
2649
- Be as QueryString,
2650
- Ht as SheetToken,
2651
- qr as TemplateResult,
2652
- Ls as UpdateToken,
2653
- Rn as _RenderErrorEvent,
2654
- $s as _StoreListenerMap,
2655
- Hn as _createTemplate,
2656
- kr as absoluteLocation,
2657
- Mr as addListener,
2658
- gt as addMicrotask,
2659
- Vs as adoptedStyle,
2660
- Ds as aria,
2661
- gc as async,
2662
- D as attribute,
2663
- eh as basePathStore,
2644
+ Tt as GemUseElement,
2645
+ Or as I18n,
2646
+ rc as LinkedList,
2647
+ yl as Logger,
2648
+ oc as PropProxyMap,
2649
+ qe as QueryString,
2650
+ Et as SheetToken,
2651
+ jr as TemplateResult,
2652
+ As as UpdateToken,
2653
+ Wn as _RenderErrorEvent,
2654
+ vs as _StoreListenerMap,
2655
+ Vn as _createTemplate,
2656
+ xr as absoluteLocation,
2657
+ Lr as addListener,
2658
+ St as addMicrotask,
2659
+ is as adoptedStyle,
2660
+ Gs as aria,
2661
+ Pc as async,
2662
+ B as attribute,
2663
+ uh as basePathStore,
2664
2664
  Ws as boolattribute,
2665
2665
  he as camelToKebabCase,
2666
- Xa as classMap,
2667
- Ln as cleanObject,
2668
- _t as connect,
2669
- Gs as connectStore,
2670
- zl as createDecoratorTheme,
2671
- Eh as createHistoryParams,
2672
- Ml as createModalClass,
2673
- Wl as createOverrideTheme,
2674
- ci as createPath,
2675
- Pl as createRef,
2676
- vl as createScopedTheme,
2677
- In as createState,
2666
+ cc as classMap,
2667
+ In as cleanObject,
2668
+ mt as connect,
2669
+ Vs as connectStore,
2670
+ Jl as createDecoratorTheme,
2671
+ Nh as createHistoryParams,
2672
+ Vl as createModalClass,
2673
+ Ql as createOverrideTheme,
2674
+ di as createPath,
2675
+ Wl as createRef,
2676
+ Ml as createScopedTheme,
2677
+ zn as createState,
2678
2678
  zt as createStore,
2679
- Hl as createTheme,
2679
+ jl as createTheme,
2680
2680
  xs as createUpdater,
2681
- is as css,
2682
- vc as customElement,
2683
- Al as del,
2684
- Bc as directive,
2685
- wt as effect,
2686
- be as emitter,
2687
- Cl as exportPartsMap,
2688
- _c as fallback,
2689
- Ll as get,
2690
- Ua as getThemeProps,
2691
- Il as getThemeStore,
2692
- mc as globalemitter,
2681
+ le as css,
2682
+ Mc as customElement,
2683
+ Ul as del,
2684
+ nh as directive,
2685
+ ft as effect,
2686
+ Te as emitter,
2687
+ Rl as exportPartsMap,
2688
+ Cc as fallback,
2689
+ Fl as get,
2690
+ Ya as getThemeProps,
2691
+ Kl as getThemeStore,
2692
+ kc as globalemitter,
2693
2693
  x as history,
2694
- et as html,
2695
- gl as initRequest,
2696
- Za as isArrayChange,
2697
- Nr as isSSR,
2698
- yl as kebabToCamelCase,
2699
- Gr as light,
2700
- dl as logger,
2701
- xo as matchPath,
2702
- Tl as mathml,
2703
- Ol as mediaQuery,
2704
- Hr as memo,
2705
- Ke as mounted,
2706
- dc as numattribute,
2707
- Nn as objectMapToString,
2708
- zr as part,
2709
- El as partMap,
2710
- Nl as post,
2711
- B as property,
2712
- Rl as put,
2713
- An as randomStr,
2714
- xn as raw,
2715
- As as render,
2716
- kl as repeat,
2717
- xl as request,
2718
- Or as setEngine,
2694
+ ot as html,
2695
+ Pl as initRequest,
2696
+ ac as isArrayChange,
2697
+ Ll as kebabToCamelCase,
2698
+ Fr as light,
2699
+ wl as logger,
2700
+ Ro as matchPath,
2701
+ Hl as mathml,
2702
+ Gl as mediaQuery,
2703
+ Vr as memo,
2704
+ Be as mounted,
2705
+ wc as numattribute,
2706
+ Hn as objectMapToString,
2707
+ Dr as part,
2708
+ Nl as partMap,
2709
+ ql as post,
2710
+ D as property,
2711
+ Bl as put,
2712
+ Rn as randomStr,
2713
+ Nn as raw,
2714
+ Ls as render,
2715
+ zl as repeat,
2716
+ Dl as request,
2717
+ Ar as setEngine,
2718
+ lc as setHydrationEngine,
2719
2719
  Vt as shadow,
2720
- fc as slot,
2721
- fl as splice,
2720
+ Tc as slot,
2721
+ Tl as splice,
2722
2722
  zs as state,
2723
- wl as styleMap,
2724
- Sl as styled,
2725
- bl as svg,
2726
- le as template,
2727
- It as titleStore,
2728
- uc as unmounted,
2729
- Uc as version,
2730
- Dn as willMount
2723
+ Al as styleMap,
2724
+ xl as styled,
2725
+ Il as svg,
2726
+ de as template,
2727
+ Ht as titleStore,
2728
+ Ec as unmounted,
2729
+ th as version,
2730
+ qn as willMount
2731
2731
  };