@everymatrix/casino-header-controller 1.56.3 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/components/{CasinoHamburgerMenu-D3IA0-Fr.js → CasinoHamburgerMenu-BG-4lbhJ.js} +800 -822
  2. package/components/CasinoHamburgerMenu-CvBpCdt_.cjs +21 -0
  3. package/components/{CasinoHamburgerMenu-DyL5A7W7.js → CasinoHamburgerMenu-Dw8i7ogu.js} +646 -668
  4. package/components/{CasinoHeaderController-DvsWYaqa.cjs → CasinoHeaderController-C8_nideH.cjs} +1 -1
  5. package/components/{CasinoHeaderController-BTxJdVzo.js → CasinoHeaderController-CCdVTXki.js} +87 -87
  6. package/components/{CasinoHeaderController-CIkYVsBL.js → CasinoHeaderController-D2rLQVZi.js} +85 -85
  7. package/components/{CasinoSlider-MTl32pNB.js → CasinoSlider-BGDn7LeB.js} +49 -49
  8. package/components/{CasinoSlider-E1mSYv_J.cjs → CasinoSlider-BSXhShrg.cjs} +1 -1
  9. package/components/{CasinoSlider-BiQpUhjL.js → CasinoSlider-BpPDoRFB.js} +50 -50
  10. package/components/PlayerAccountBalanceModal-CckEoZRk.js +1510 -0
  11. package/components/PlayerAccountBalanceModal-Ct7UUbnk.cjs +13 -0
  12. package/components/PlayerAccountBalanceModal-DiZBhm3s.js +1539 -0
  13. package/components/PlayerDeposit-BrNpbkaS.cjs +1 -0
  14. package/components/{PlayerDeposit-D1KSGzHW.js → PlayerDeposit-BsovN5ad.js} +65 -65
  15. package/components/{PlayerDeposit-OqZh5SL5.js → PlayerDeposit-DyYrLnnM.js} +65 -65
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/index-1ef3a64c-CsSXee6P.js +556 -0
  21. package/stencil/index-1ef3a64c-DRf7Ax9K.js +572 -0
  22. package/stencil/index-1ef3a64c-ImAoW8IW.cjs +1 -0
  23. package/stencil/{user-deposit-withdrawal-C72e1sSw.js → user-deposit-withdrawal-CJvV3hVH.js} +1 -1
  24. package/stencil/{user-deposit-withdrawal-CS-LZhcv.cjs → user-deposit-withdrawal-Ch6O_F-y.cjs} +1 -1
  25. package/stencil/{user-deposit-withdrawal-DfDiD6Lp.js → user-deposit-withdrawal-DAEhwyJf.js} +1 -1
  26. package/components/CasinoHamburgerMenu-DessG6uq.cjs +0 -21
  27. package/components/PlayerAccountBalanceModal-B9BkSlDU.cjs +0 -13
  28. package/components/PlayerAccountBalanceModal-CEo_b6Ks.js +0 -1510
  29. package/components/PlayerAccountBalanceModal-fP9D_Jz7.js +0 -1539
  30. package/components/PlayerDeposit-DNEPQuyW.cjs +0 -1
  31. package/stencil/index-1ef3a64c-6soTLew7.js +0 -556
  32. package/stencil/index-1ef3a64c-DkMoO-oa.js +0 -572
  33. package/stencil/index-1ef3a64c-DmmoSOho.cjs +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.56.3",
3
+ "version": "1.58.0",
4
4
  "type": "module",
5
5
  "main": "esnext/casino-header-controller.js",
6
6
  "module": "esnext/casino-header-controller.js",
@@ -0,0 +1,556 @@
1
+ const ve = "user-deposit-withdrawal", ge = (
2
+ /* user-deposit-withdrawal */
3
+ { hydratedSelectorName: "hydrated" }
4
+ );
5
+ var pe = Object.defineProperty, he = (e, t) => {
6
+ for (var r in t)
7
+ pe(e, r, { get: t[r], enumerable: !0 });
8
+ }, C = /* @__PURE__ */ new WeakMap(), w = (e) => C.get(e), nt = (e, t) => C.set(t.$lazyInstance$ = e, t), ye = (e, t) => {
9
+ const r = {
10
+ $flags$: 0,
11
+ $hostElement$: e,
12
+ $cmpMeta$: t,
13
+ $instanceValues$: /* @__PURE__ */ new Map()
14
+ };
15
+ return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], C.set(e, r);
16
+ }, F = (e, t) => t in e, b = (e, t) => (0, console.error)(e, t), I = /* @__PURE__ */ new Map(), me = (e, t, r) => {
17
+ const s = e.$tagName$.replace(/-/g, "_"), n = e.$lazyBundleId$;
18
+ if (!n)
19
+ return;
20
+ const i = I.get(n);
21
+ if (i)
22
+ return i[s];
23
+ {
24
+ const l = (o) => (I.set(n, o), o[s]);
25
+ switch (n) {
26
+ case "user-deposit-withdrawal":
27
+ return import(
28
+ /* webpackMode: "lazy" */
29
+ "./user-deposit-withdrawal-CJvV3hVH.js"
30
+ ).then(l, b);
31
+ }
32
+ }
33
+ return import(
34
+ /* @vite-ignore */
35
+ /* webpackInclude: /\.entry\.js$/ */
36
+ /* webpackExclude: /\.system\.entry\.js$/ */
37
+ /* webpackMode: "lazy" */
38
+ `./${n}.entry.js`
39
+ ).then((l) => (I.set(n, l), l[s]), b);
40
+ }, L = /* @__PURE__ */ new Map(), Se = "{visibility:hidden}.hydrated{visibility:inherit}", V = "slot-fb{display:contents}slot-fb[hidden]{display:none}", O = typeof window < "u" ? window : {}, S = O.document || { head: {} }, p = {
41
+ $flags$: 0,
42
+ $resourcesUrl$: "",
43
+ jmp: (e) => e(),
44
+ raf: (e) => requestAnimationFrame(e),
45
+ ael: (e, t, r, s) => e.addEventListener(t, r, s),
46
+ rel: (e, t, r, s) => e.removeEventListener(t, r, s),
47
+ ce: (e, t) => new CustomEvent(e, t)
48
+ }, Ee = (e) => Promise.resolve(e), ke = /* @__PURE__ */ (() => {
49
+ try {
50
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
51
+ } catch {
52
+ }
53
+ return !1;
54
+ })(), U = !1, G = [], ee = [], we = (e, t) => (r) => {
55
+ e.push(r), U || (U = !0, p.$flags$ & 4 ? q(H) : p.raf(H));
56
+ }, X = (e) => {
57
+ for (let t = 0; t < e.length; t++)
58
+ try {
59
+ e[t](performance.now());
60
+ } catch (r) {
61
+ b(r);
62
+ }
63
+ e.length = 0;
64
+ }, H = () => {
65
+ X(G), X(ee), (U = G.length > 0) && p.raf(H);
66
+ }, q = (e) => Ee().then(e), be = /* @__PURE__ */ we(ee), Y = {}, xe = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml", Pe = (e) => e != null, R = (e) => (e = typeof e, e === "object" || e === "function");
67
+ function te(e) {
68
+ var t, r, s;
69
+ return (s = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? s : void 0;
70
+ }
71
+ var _e = {};
72
+ he(_e, {
73
+ err: () => se,
74
+ map: () => Ae,
75
+ ok: () => z,
76
+ unwrap: () => Le,
77
+ unwrapErr: () => je
78
+ });
79
+ var z = (e) => ({
80
+ isOk: !0,
81
+ isErr: !1,
82
+ value: e
83
+ }), se = (e) => ({
84
+ isOk: !1,
85
+ isErr: !0,
86
+ value: e
87
+ });
88
+ function Ae(e, t) {
89
+ if (e.isOk) {
90
+ const r = t(e.value);
91
+ return r instanceof Promise ? r.then((s) => z(s)) : z(r);
92
+ }
93
+ if (e.isErr) {
94
+ const r = e.value;
95
+ return se(r);
96
+ }
97
+ throw "should never get here";
98
+ }
99
+ var Le = (e) => {
100
+ if (e.isOk)
101
+ return e.value;
102
+ throw e.value;
103
+ }, je = (e) => {
104
+ if (e.isErr)
105
+ return e.value;
106
+ throw e.value;
107
+ }, E = (e, t = "") => () => {
108
+ }, Oe = (e, t) => () => {
109
+ }, Ie = (e, t, ...r) => {
110
+ let s = null, n = null, i = !1, l = !1;
111
+ const o = [], a = (c) => {
112
+ for (let f = 0; f < c.length; f++)
113
+ s = c[f], Array.isArray(s) ? a(s) : s != null && typeof s != "boolean" && ((i = typeof e != "function" && !R(s)) && (s = String(s)), i && l ? o[o.length - 1].$text$ += s : o.push(i ? B(null, s) : s), l = i);
114
+ };
115
+ if (a(r), t) {
116
+ t.key && (n = t.key);
117
+ {
118
+ const c = t.className || t.class;
119
+ c && (t.class = typeof c != "object" ? c : Object.keys(c).filter((f) => c[f]).join(" "));
120
+ }
121
+ }
122
+ const $ = B(e, null);
123
+ return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = n, $;
124
+ }, B = (e, t) => {
125
+ const r = {
126
+ $flags$: 0,
127
+ $tag$: e,
128
+ $text$: t,
129
+ $elm$: null,
130
+ $children$: null
131
+ };
132
+ return r.$attrs$ = null, r.$key$ = null, r;
133
+ }, Ue = {}, He = (e) => e && e.$tag$ === Ue, ze = (e, t) => e != null && !R(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 1 ? String(e) : e : e, Be = (e, t, r) => {
134
+ const s = p.ce(t, r);
135
+ return e.dispatchEvent(s), s;
136
+ }, J = /* @__PURE__ */ new WeakMap(), Ce = (e, t, r) => {
137
+ let s = L.get(e);
138
+ ke && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, L.set(e, s);
139
+ }, qe = (e, t, r) => {
140
+ var s;
141
+ const n = ne(t), i = L.get(n);
142
+ if (e = e.nodeType === 11 ? e : S, i)
143
+ if (typeof i == "string") {
144
+ e = e.head || e;
145
+ let l = J.get(e), o;
146
+ if (l || J.set(e, l = /* @__PURE__ */ new Set()), !l.has(n)) {
147
+ {
148
+ o = S.createElement("style"), o.innerHTML = i;
149
+ const a = (s = p.$nonce$) != null ? s : te(S);
150
+ a != null && o.setAttribute("nonce", a), e.insertBefore(o, e.querySelector("link"));
151
+ }
152
+ t.$flags$ & 4 && (o.innerHTML += V), l && l.add(n);
153
+ }
154
+ } else
155
+ e.adoptedStyleSheets.includes(i) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, i]);
156
+ return n;
157
+ }, Re = (e) => {
158
+ const t = e.$cmpMeta$, r = e.$hostElement$, s = t.$flags$, n = E("attachStyles", t.$tagName$), i = qe(
159
+ r.shadowRoot ? r.shadowRoot : r.getRootNode(),
160
+ t
161
+ );
162
+ s & 10 && (r["s-sc"] = i, r.classList.add(i + "-h")), n();
163
+ }, ne = (e, t) => "sc-" + e.$tagName$, K = (e, t, r, s, n, i) => {
164
+ if (r !== s) {
165
+ let l = F(e, t), o = t.toLowerCase();
166
+ if (t === "class") {
167
+ const a = e.classList, $ = Q(r), c = Q(s);
168
+ a.remove(...$.filter((f) => f && !c.includes(f))), a.add(...c.filter((f) => f && !$.includes(f)));
169
+ } else if (t === "style") {
170
+ for (const a in r)
171
+ (!s || s[a] == null) && (a.includes("-") ? e.style.removeProperty(a) : e.style[a] = "");
172
+ for (const a in s)
173
+ (!r || s[a] !== r[a]) && (a.includes("-") ? e.style.setProperty(a, s[a]) : e.style[a] = s[a]);
174
+ } else if (t !== "key")
175
+ if (t === "ref")
176
+ s && s(e);
177
+ else if (!l && t[0] === "o" && t[1] === "n") {
178
+ if (t[2] === "-" ? t = t.slice(3) : F(O, o) ? t = o.slice(2) : t = o[2] + t.slice(3), r || s) {
179
+ const a = t.endsWith(re);
180
+ t = t.replace(De, ""), r && p.rel(e, t, r, a), s && p.ael(e, t, s, a);
181
+ }
182
+ } else {
183
+ const a = R(s);
184
+ if ((l || a && s !== null) && !n)
185
+ try {
186
+ if (e.tagName.includes("-"))
187
+ e[t] = s;
188
+ else {
189
+ const $ = s ?? "";
190
+ t === "list" ? l = !1 : (r == null || e[t] != $) && (e[t] = $);
191
+ }
192
+ } catch {
193
+ }
194
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || n) && !a && (s = s === !0 ? "" : s, e.setAttribute(t, s));
195
+ }
196
+ }
197
+ }, Me = /\s/, Q = (e) => e ? e.split(Me) : [], re = "Capture", De = new RegExp(re + "$"), le = (e, t, r) => {
198
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, n = e && e.$attrs$ || Y, i = t.$attrs$ || Y;
199
+ for (const l of Z(Object.keys(n)))
200
+ l in i || K(s, l, n[l], void 0, r, t.$flags$);
201
+ for (const l of Z(Object.keys(i)))
202
+ K(s, l, n[l], i[l], r, t.$flags$);
203
+ };
204
+ function Z(e) {
205
+ return e.includes("ref") ? (
206
+ // we need to sort these to ensure that `'ref'` is the last attr
207
+ [...e.filter((t) => t !== "ref"), "ref"]
208
+ ) : (
209
+ // no need to sort, return the original array
210
+ e
211
+ );
212
+ }
213
+ var _, M, y = !1, j = (e, t, r, s) => {
214
+ const n = t.$children$[r];
215
+ let i = 0, l, o;
216
+ if (n.$text$ !== null)
217
+ l = n.$elm$ = S.createTextNode(n.$text$);
218
+ else {
219
+ if (y || (y = n.$tag$ === "svg"), l = n.$elm$ = S.createElementNS(
220
+ y ? xe : Te,
221
+ n.$tag$
222
+ ), y && n.$tag$ === "foreignObject" && (y = !1), le(null, n, y), Pe(_) && l["s-si"] !== _ && l.classList.add(l["s-si"] = _), n.$children$)
223
+ for (i = 0; i < n.$children$.length; ++i)
224
+ o = j(e, n, i), o && l.appendChild(o);
225
+ n.$tag$ === "svg" ? y = !1 : l.tagName === "foreignObject" && (y = !0);
226
+ }
227
+ return l["s-hn"] = M, l;
228
+ }, ae = (e, t, r, s, n, i) => {
229
+ let l = e, o;
230
+ for (l.shadowRoot && l.tagName === M && (l = l.shadowRoot); n <= i; ++n)
231
+ s[n] && (o = j(null, r, n), o && (s[n].$elm$ = o, A(l, o, t)));
232
+ }, ie = (e, t, r) => {
233
+ for (let s = t; s <= r; ++s) {
234
+ const n = e[s];
235
+ if (n) {
236
+ const i = n.$elm$;
237
+ oe(n), i && i.remove();
238
+ }
239
+ }
240
+ }, We = (e, t, r, s, n = !1) => {
241
+ let i = 0, l = 0, o = 0, a = 0, $ = t.length - 1, c = t[0], f = t[$], d = s.length - 1, u = s[0], v = s[d], g, m;
242
+ for (; i <= $ && l <= d; )
243
+ if (c == null)
244
+ c = t[++i];
245
+ else if (f == null)
246
+ f = t[--$];
247
+ else if (u == null)
248
+ u = s[++l];
249
+ else if (v == null)
250
+ v = s[--d];
251
+ else if (P(c, u, n))
252
+ x(c, u, n), c = t[++i], u = s[++l];
253
+ else if (P(f, v, n))
254
+ x(f, v, n), f = t[--$], v = s[--d];
255
+ else if (P(c, v, n))
256
+ x(c, v, n), A(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], v = s[--d];
257
+ else if (P(f, u, n))
258
+ x(f, u, n), A(e, f.$elm$, c.$elm$), f = t[--$], u = s[++l];
259
+ else {
260
+ for (o = -1, a = i; a <= $; ++a)
261
+ if (t[a] && t[a].$key$ !== null && t[a].$key$ === u.$key$) {
262
+ o = a;
263
+ break;
264
+ }
265
+ o >= 0 ? (m = t[o], m.$tag$ !== u.$tag$ ? g = j(t && t[l], r, o) : (x(m, u, n), t[o] = void 0, g = m.$elm$), u = s[++l]) : (g = j(t && t[l], r, l), u = s[++l]), g && A(c.$elm$.parentNode, g, c.$elm$);
266
+ }
267
+ i > $ ? ae(
268
+ e,
269
+ s[d + 1] == null ? null : s[d + 1].$elm$,
270
+ r,
271
+ s,
272
+ l,
273
+ d
274
+ ) : l > d && ie(t, i, $);
275
+ }, P = (e, t, r = !1) => e.$tag$ === t.$tag$ ? r ? !0 : e.$key$ === t.$key$ : !1, x = (e, t, r = !1) => {
276
+ const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, l = t.$tag$, o = t.$text$;
277
+ o === null ? (y = l === "svg" ? !0 : l === "foreignObject" ? !1 : y, le(e, t, y), n !== null && i !== null ? We(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), ae(s, null, t, i, 0, i.length - 1)) : n !== null && ie(n, 0, n.length - 1), y && l === "svg" && (y = !1)) : e.$text$ !== o && (s.data = o);
278
+ }, oe = (e) => {
279
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(oe);
280
+ }, A = (e, t, r) => e?.insertBefore(t, r), Fe = (e, t, r = !1) => {
281
+ const s = e.$hostElement$, n = e.$cmpMeta$, i = e.$vnode$ || B(null, null), l = He(t) ? t : Ie(null, null, t);
282
+ if (M = s.tagName, n.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, n.$attrsToReflect$.map(
283
+ ([o, a]) => l.$attrs$[a] = s[o]
284
+ )), r && l.$attrs$)
285
+ for (const o of Object.keys(l.$attrs$))
286
+ s.hasAttribute(o) && !["key", "ref", "style", "class"].includes(o) && (l.$attrs$[o] = s[o]);
287
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = i.$elm$ = s.shadowRoot || s, _ = s["s-sc"], n.$flags$ & 1, x(i, l, r);
288
+ }, $e = (e, t) => {
289
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
290
+ }, D = (e, t) => {
291
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
292
+ e.$flags$ |= 512;
293
+ return;
294
+ }
295
+ return $e(e, e.$ancestorComponent$), be(() => Ge(e, t));
296
+ }, Ge = (e, t) => {
297
+ const r = e.$hostElement$, s = E("scheduleUpdate", e.$cmpMeta$.$tagName$), n = e.$lazyInstance$;
298
+ if (!n)
299
+ throw new Error(
300
+ `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
301
+ );
302
+ let i;
303
+ return t && (i = W(n, "componentWillLoad")), s(), Xe(i, () => Je(e, n, t));
304
+ }, Xe = (e, t) => Ye(e) ? e.then(t).catch((r) => {
305
+ console.error(r), t();
306
+ }) : t(), Ye = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Je = async (e, t, r) => {
307
+ var s;
308
+ const n = e.$hostElement$, i = E("update", e.$cmpMeta$.$tagName$), l = n["s-rc"];
309
+ r && Re(e);
310
+ const o = E("render", e.$cmpMeta$.$tagName$);
311
+ Ke(e, t, n, r), l && (l.map((a) => a()), n["s-rc"] = void 0), o(), i();
312
+ {
313
+ const a = (s = n["s-p"]) != null ? s : [], $ = () => Qe(e);
314
+ a.length === 0 ? $() : (Promise.all(a).then($), e.$flags$ |= 4, a.length = 0);
315
+ }
316
+ }, Ke = (e, t, r, s) => {
317
+ try {
318
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Fe(e, t, s);
319
+ } catch (n) {
320
+ b(n, e.$hostElement$);
321
+ }
322
+ return null;
323
+ }, Qe = (e) => {
324
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = E("postUpdate", t), n = e.$lazyInstance$, i = e.$ancestorComponent$;
325
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, fe(r), W(n, "componentDidLoad"), s(), e.$onReadyResolve$(r), i || ce()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && q(() => D(e, !1)), e.$flags$ &= -517;
326
+ }, ce = (e) => {
327
+ fe(S.documentElement), q(() => Be(O, "appload", { detail: { namespace: ve } }));
328
+ }, W = (e, t, r) => {
329
+ if (e && e[t])
330
+ try {
331
+ return e[t](r);
332
+ } catch (s) {
333
+ b(s);
334
+ }
335
+ }, fe = (e) => {
336
+ var t;
337
+ return e.classList.add((t = ge.hydratedSelectorName) != null ? t : "hydrated");
338
+ }, Ze = (e, t) => w(e).$instanceValues$.get(t), Ne = (e, t, r, s) => {
339
+ const n = w(e);
340
+ if (!n)
341
+ throw new Error(
342
+ `Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
343
+ );
344
+ const i = n.$hostElement$, l = n.$instanceValues$.get(t), o = n.$flags$, a = n.$lazyInstance$;
345
+ r = ze(r, s.$members$[t][0]);
346
+ const $ = Number.isNaN(l) && Number.isNaN(r), c = r !== l && !$;
347
+ if ((!(o & 8) || l === void 0) && c && (n.$instanceValues$.set(t, r), a)) {
348
+ if (s.$watchers$ && o & 128) {
349
+ const f = s.$watchers$[t];
350
+ f && f.map((d) => {
351
+ try {
352
+ a[d](r, l, t);
353
+ } catch (u) {
354
+ b(u, i);
355
+ }
356
+ });
357
+ }
358
+ (o & 18) === 2 && D(n, !1);
359
+ }
360
+ }, de = (e, t, r) => {
361
+ var s, n;
362
+ const i = e.prototype;
363
+ if (t.$members$ || t.$watchers$ || e.watchers) {
364
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
365
+ const l = Object.entries((s = t.$members$) != null ? s : {});
366
+ if (l.map(([o, [a]]) => {
367
+ (a & 31 || r & 2 && a & 32) && Object.defineProperty(i, o, {
368
+ get() {
369
+ return Ze(this, o);
370
+ },
371
+ set($) {
372
+ Ne(this, o, $, t);
373
+ },
374
+ configurable: !0,
375
+ enumerable: !0
376
+ });
377
+ }), r & 1) {
378
+ const o = /* @__PURE__ */ new Map();
379
+ i.attributeChangedCallback = function(a, $, c) {
380
+ p.jmp(() => {
381
+ var f;
382
+ const d = o.get(a);
383
+ if (this.hasOwnProperty(d))
384
+ c = this[d], delete this[d];
385
+ else {
386
+ if (i.hasOwnProperty(d) && typeof this[d] == "number" && this[d] == c)
387
+ return;
388
+ if (d == null) {
389
+ const u = w(this), v = u?.$flags$;
390
+ if (v && !(v & 8) && v & 128 && c !== $) {
391
+ const g = u.$lazyInstance$, m = (f = t.$watchers$) == null ? void 0 : f[a];
392
+ m?.forEach((h) => {
393
+ g[h] != null && g[h].call(g, c, $, a);
394
+ });
395
+ }
396
+ return;
397
+ }
398
+ }
399
+ this[d] = c === null && typeof this[d] == "boolean" ? !1 : c;
400
+ });
401
+ }, e.observedAttributes = Array.from(
402
+ /* @__PURE__ */ new Set([
403
+ ...Object.keys((n = t.$watchers$) != null ? n : {}),
404
+ ...l.filter(
405
+ ([a, $]) => $[0] & 15
406
+ /* HasAttribute */
407
+ ).map(([a, $]) => {
408
+ var c;
409
+ const f = $[1] || a;
410
+ return o.set(f, a), $[0] & 512 && ((c = t.$attrsToReflect$) == null || c.push([a, f])), f;
411
+ })
412
+ ])
413
+ );
414
+ }
415
+ }
416
+ return e;
417
+ }, Ve = async (e, t, r, s) => {
418
+ let n;
419
+ if (!(t.$flags$ & 32)) {
420
+ if (t.$flags$ |= 32, r.$lazyBundleId$) {
421
+ const a = me(r);
422
+ if (a && "then" in a) {
423
+ const c = Oe();
424
+ n = await a, c();
425
+ } else
426
+ n = a;
427
+ if (!n)
428
+ throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);
429
+ n.isProxied || (r.$watchers$ = n.watchers, de(
430
+ n,
431
+ r,
432
+ 2
433
+ /* proxyState */
434
+ ), n.isProxied = !0);
435
+ const $ = E("createInstance", r.$tagName$);
436
+ t.$flags$ |= 8;
437
+ try {
438
+ new n(t);
439
+ } catch (c) {
440
+ b(c);
441
+ }
442
+ t.$flags$ &= -9, t.$flags$ |= 128, $();
443
+ } else {
444
+ n = e.constructor;
445
+ const a = e.localName;
446
+ customElements.whenDefined(a).then(
447
+ () => t.$flags$ |= 128
448
+ /* isWatchReady */
449
+ );
450
+ }
451
+ if (n && n.style) {
452
+ let a;
453
+ typeof n.style == "string" && (a = n.style);
454
+ const $ = ne(r);
455
+ if (!L.has($)) {
456
+ const c = E("registerStyles", r.$tagName$);
457
+ Ce($, a, !!(r.$flags$ & 1)), c();
458
+ }
459
+ }
460
+ }
461
+ const i = t.$ancestorComponent$, l = () => D(t, !0);
462
+ i && i["s-rc"] ? i["s-rc"].push(l) : l();
463
+ }, et = (e) => {
464
+ }, tt = (e) => {
465
+ if (!(p.$flags$ & 1)) {
466
+ const t = w(e), r = t.$cmpMeta$, s = E("connectedCallback", r.$tagName$);
467
+ if (t.$flags$ & 1)
468
+ t?.$lazyInstance$ || t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => et());
469
+ else {
470
+ t.$flags$ |= 1;
471
+ {
472
+ let n = e;
473
+ for (; n = n.parentNode || n.host; )
474
+ if (n["s-p"]) {
475
+ $e(t, t.$ancestorComponent$ = n);
476
+ break;
477
+ }
478
+ }
479
+ r.$members$ && Object.entries(r.$members$).map(([n, [i]]) => {
480
+ if (i & 31 && e.hasOwnProperty(n)) {
481
+ const l = e[n];
482
+ delete e[n], e[n] = l;
483
+ }
484
+ }), Ve(e, t, r);
485
+ }
486
+ s();
487
+ }
488
+ }, N = (e) => {
489
+ W(e, "disconnectedCallback");
490
+ }, st = async (e) => {
491
+ if (!(p.$flags$ & 1)) {
492
+ const t = w(e);
493
+ t?.$lazyInstance$ ? N(t.$lazyInstance$) : t?.$onReadyPromise$ && t.$onReadyPromise$.then(() => N(t.$lazyInstance$));
494
+ }
495
+ }, rt = (e, t = {}) => {
496
+ var r;
497
+ const s = E(), n = [], i = t.exclude || [], l = O.customElements, o = S.head, a = /* @__PURE__ */ o.querySelector("meta[charset]"), $ = /* @__PURE__ */ S.createElement("style"), c = [];
498
+ let f, d = !0;
499
+ Object.assign(p, t), p.$resourcesUrl$ = new URL(t.resourcesUrl || "./", S.baseURI).href;
500
+ let u = !1;
501
+ if (e.map((v) => {
502
+ v[1].map((g) => {
503
+ var m;
504
+ const h = {
505
+ $flags$: g[0],
506
+ $tagName$: g[1],
507
+ $members$: g[2],
508
+ $listeners$: g[3]
509
+ };
510
+ h.$flags$ & 4 && (u = !0), h.$members$ = g[2], h.$attrsToReflect$ = [], h.$watchers$ = (m = g[4]) != null ? m : {};
511
+ const T = h.$tagName$, ue = class extends HTMLElement {
512
+ // StencilLazyHost
513
+ constructor(k) {
514
+ if (super(k), this.hasRegisteredEventListeners = !1, k = this, ye(k, h), h.$flags$ & 1) {
515
+ if (!k.shadowRoot)
516
+ k.attachShadow({ mode: "open" });
517
+ else if (k.shadowRoot.mode !== "open")
518
+ throw new Error(
519
+ `Unable to re-use existing shadow root for ${h.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`
520
+ );
521
+ }
522
+ }
523
+ connectedCallback() {
524
+ w(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? c.push(this) : p.jmp(() => tt(this));
525
+ }
526
+ disconnectedCallback() {
527
+ p.jmp(() => st(this));
528
+ }
529
+ componentOnReady() {
530
+ return w(this).$onReadyPromise$;
531
+ }
532
+ };
533
+ h.$lazyBundleId$ = v[0], !i.includes(T) && !l.get(T) && (n.push(T), l.define(
534
+ T,
535
+ de(
536
+ ue,
537
+ h,
538
+ 1
539
+ /* isElementConstructor */
540
+ )
541
+ ));
542
+ });
543
+ }), n.length > 0 && (u && ($.textContent += V), $.textContent += n.sort() + Se, $.innerHTML.length)) {
544
+ $.setAttribute("data-styles", "");
545
+ const v = (r = p.$nonce$) != null ? r : te(S);
546
+ v != null && $.setAttribute("nonce", v), o.insertBefore($, a ? a.nextSibling : o.firstChild);
547
+ }
548
+ d = !1, c.length ? c.map((v) => v.connectedCallback()) : p.jmp(() => f = setTimeout(ce, 30)), s();
549
+ };
550
+ export {
551
+ Ue as H,
552
+ rt as b,
553
+ Ie as h,
554
+ Ee as p,
555
+ nt as r
556
+ };