@everymatrix/player-account-modal 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountModal-CPM7dPdd.js → PlayerAccountModal-B8N5Lw5C.js} +105 -86
- package/components/PlayerAccountModal-BzpJ3wWu.cjs +4 -0
- package/components/{PlayerAccountModal-yw79evC1.js → PlayerAccountModal-DgdFPk4n.js} +161 -142
- package/es2015/player-account-modal.cjs +1 -1
- package/es2015/player-account-modal.js +1 -1
- package/esnext/player-account-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountModal-D_UQLBx9.cjs +0 -4
|
@@ -2,7 +2,8 @@ function L() {
|
|
|
2
2
|
}
|
|
3
3
|
const st = (t) => t;
|
|
4
4
|
function dt(t, e) {
|
|
5
|
-
for (const n in e)
|
|
5
|
+
for (const n in e)
|
|
6
|
+
t[n] = e[n];
|
|
6
7
|
return (
|
|
7
8
|
/** @type {T & S} */
|
|
8
9
|
t
|
|
@@ -14,7 +15,7 @@ function rt(t) {
|
|
|
14
15
|
function Y() {
|
|
15
16
|
return /* @__PURE__ */ Object.create(null);
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function M(t) {
|
|
18
19
|
t.forEach(rt);
|
|
19
20
|
}
|
|
20
21
|
function G(t) {
|
|
@@ -36,12 +37,24 @@ function ot(t, e, n, i) {
|
|
|
36
37
|
return t[1] && i ? dt(n.ctx.slice(), t[1](i(e))) : n.ctx;
|
|
37
38
|
}
|
|
38
39
|
function mt(t, e, n, i) {
|
|
39
|
-
|
|
40
|
+
if (t[2] && i) {
|
|
41
|
+
const s = t[2](i(n));
|
|
42
|
+
if (e.dirty === void 0)
|
|
43
|
+
return s;
|
|
44
|
+
if (typeof s == "object") {
|
|
45
|
+
const o = [], u = Math.max(e.dirty.length, s.length);
|
|
46
|
+
for (let r = 0; r < u; r += 1)
|
|
47
|
+
o[r] = e.dirty[r] | s[r];
|
|
48
|
+
return o;
|
|
49
|
+
}
|
|
50
|
+
return e.dirty | s;
|
|
51
|
+
}
|
|
52
|
+
return e.dirty;
|
|
40
53
|
}
|
|
41
54
|
function gt(t, e, n, i, s, o) {
|
|
42
55
|
if (s) {
|
|
43
|
-
const
|
|
44
|
-
t.p(
|
|
56
|
+
const u = ot(e, n, i, o);
|
|
57
|
+
t.p(u, s);
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
function yt(t) {
|
|
@@ -83,7 +96,8 @@ function bt(t, e, n) {
|
|
|
83
96
|
}
|
|
84
97
|
}
|
|
85
98
|
function Q(t) {
|
|
86
|
-
if (!t)
|
|
99
|
+
if (!t)
|
|
100
|
+
return document;
|
|
87
101
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
88
102
|
return e && /** @type {ShadowRoot} */
|
|
89
103
|
e.host ? (
|
|
@@ -120,13 +134,13 @@ function Ct() {
|
|
|
120
134
|
function P(t, e, n) {
|
|
121
135
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
122
136
|
}
|
|
123
|
-
function
|
|
137
|
+
function Mt(t) {
|
|
124
138
|
return Array.from(t.childNodes);
|
|
125
139
|
}
|
|
126
|
-
function
|
|
140
|
+
function kt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
|
|
127
141
|
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
|
|
128
142
|
}
|
|
129
|
-
function
|
|
143
|
+
function vt(t) {
|
|
130
144
|
const e = {};
|
|
131
145
|
return t.childNodes.forEach(
|
|
132
146
|
/** @param {Element} node */
|
|
@@ -139,36 +153,37 @@ const T = /* @__PURE__ */ new Map();
|
|
|
139
153
|
let D = 0;
|
|
140
154
|
function St(t) {
|
|
141
155
|
let e = 5381, n = t.length;
|
|
142
|
-
for (; n--; )
|
|
156
|
+
for (; n--; )
|
|
157
|
+
e = (e << 5) - e ^ t.charCodeAt(n);
|
|
143
158
|
return e >>> 0;
|
|
144
159
|
}
|
|
145
160
|
function Lt(t, e) {
|
|
146
161
|
const n = { stylesheet: xt(e), rules: {} };
|
|
147
162
|
return T.set(t, n), n;
|
|
148
163
|
}
|
|
149
|
-
function Z(t, e, n, i, s, o,
|
|
164
|
+
function Z(t, e, n, i, s, o, u, r = 0) {
|
|
150
165
|
const c = 16.666 / i;
|
|
151
166
|
let l = `{
|
|
152
167
|
`;
|
|
153
|
-
for (let
|
|
154
|
-
const p = e + (n - e) * o(
|
|
155
|
-
l +=
|
|
168
|
+
for (let f = 0; f <= 1; f += c) {
|
|
169
|
+
const p = e + (n - e) * o(f);
|
|
170
|
+
l += f * 100 + `%{${u(p, 1 - p)}}
|
|
156
171
|
`;
|
|
157
172
|
}
|
|
158
|
-
const h = l + `100% {${
|
|
173
|
+
const h = l + `100% {${u(n, 1 - n)}}
|
|
159
174
|
}`, a = `__svelte_${St(h)}_${r}`, $ = Q(t), { stylesheet: m, rules: d } = T.get($) || Lt($, t);
|
|
160
175
|
d[a] || (d[a] = !0, m.insertRule(`@keyframes ${a} ${h}`, m.cssRules.length));
|
|
161
176
|
const _ = t.style.animation || "";
|
|
162
177
|
return t.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, D += 1, a;
|
|
163
178
|
}
|
|
164
|
-
function
|
|
179
|
+
function jt(t, e) {
|
|
165
180
|
const n = (t.style.animation || "").split(", "), i = n.filter(
|
|
166
181
|
e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
167
182
|
// remove all Svelte animations
|
|
168
183
|
), s = n.length - i.length;
|
|
169
|
-
s && (t.style.animation = i.join(", "), D -= s, D ||
|
|
184
|
+
s && (t.style.animation = i.join(", "), D -= s, D || Ot());
|
|
170
185
|
}
|
|
171
|
-
function
|
|
186
|
+
function Ot() {
|
|
172
187
|
K(() => {
|
|
173
188
|
D || (T.forEach((t) => {
|
|
174
189
|
const { ownerNode: e } = t.stylesheet;
|
|
@@ -176,13 +191,14 @@ function jt() {
|
|
|
176
191
|
}), T.clear());
|
|
177
192
|
});
|
|
178
193
|
}
|
|
179
|
-
let
|
|
180
|
-
function
|
|
181
|
-
|
|
194
|
+
let j;
|
|
195
|
+
function v(t) {
|
|
196
|
+
j = t;
|
|
182
197
|
}
|
|
183
198
|
function At() {
|
|
184
|
-
if (!
|
|
185
|
-
|
|
199
|
+
if (!j)
|
|
200
|
+
throw new Error("Function called outside component initialization");
|
|
201
|
+
return j;
|
|
186
202
|
}
|
|
187
203
|
function Nt(t) {
|
|
188
204
|
At().$$.on_mount.push(t);
|
|
@@ -194,7 +210,7 @@ let W = !1;
|
|
|
194
210
|
function Bt() {
|
|
195
211
|
W || (W = !0, Pt.then(y));
|
|
196
212
|
}
|
|
197
|
-
function
|
|
213
|
+
function O(t) {
|
|
198
214
|
C.push(t);
|
|
199
215
|
}
|
|
200
216
|
const I = /* @__PURE__ */ new Set();
|
|
@@ -202,17 +218,18 @@ let w = 0;
|
|
|
202
218
|
function y() {
|
|
203
219
|
if (w !== 0)
|
|
204
220
|
return;
|
|
205
|
-
const t =
|
|
221
|
+
const t = j;
|
|
206
222
|
do {
|
|
207
223
|
try {
|
|
208
224
|
for (; w < b.length; ) {
|
|
209
225
|
const e = b[w];
|
|
210
|
-
w++,
|
|
226
|
+
w++, v(e), Rt(e.$$);
|
|
211
227
|
}
|
|
212
228
|
} catch (e) {
|
|
213
229
|
throw b.length = 0, w = 0, e;
|
|
214
230
|
}
|
|
215
|
-
for (
|
|
231
|
+
for (v(null), b.length = 0, w = 0; H.length; )
|
|
232
|
+
H.pop()();
|
|
216
233
|
for (let e = 0; e < C.length; e += 1) {
|
|
217
234
|
const n = C[e];
|
|
218
235
|
I.has(n) || (I.add(n), n());
|
|
@@ -221,27 +238,27 @@ function y() {
|
|
|
221
238
|
} while (b.length);
|
|
222
239
|
for (; tt.length; )
|
|
223
240
|
tt.pop()();
|
|
224
|
-
W = !1, I.clear(),
|
|
241
|
+
W = !1, I.clear(), v(t);
|
|
225
242
|
}
|
|
226
243
|
function Rt(t) {
|
|
227
244
|
if (t.fragment !== null) {
|
|
228
|
-
t.update(),
|
|
245
|
+
t.update(), M(t.before_update);
|
|
229
246
|
const e = t.dirty;
|
|
230
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
247
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(O);
|
|
231
248
|
}
|
|
232
249
|
}
|
|
233
250
|
function Tt(t) {
|
|
234
251
|
const e = [], n = [];
|
|
235
252
|
C.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), C = e;
|
|
236
253
|
}
|
|
237
|
-
let
|
|
254
|
+
let k;
|
|
238
255
|
function Dt() {
|
|
239
|
-
return
|
|
240
|
-
|
|
241
|
-
})),
|
|
256
|
+
return k || (k = Promise.resolve(), k.then(() => {
|
|
257
|
+
k = null;
|
|
258
|
+
})), k;
|
|
242
259
|
}
|
|
243
260
|
function J(t, e, n) {
|
|
244
|
-
t.dispatchEvent(
|
|
261
|
+
t.dispatchEvent(kt(`${e ? "intro" : "outro"}${n}`));
|
|
245
262
|
}
|
|
246
263
|
const B = /* @__PURE__ */ new Set();
|
|
247
264
|
let g;
|
|
@@ -254,34 +271,36 @@ function Ht() {
|
|
|
254
271
|
};
|
|
255
272
|
}
|
|
256
273
|
function zt() {
|
|
257
|
-
g.r ||
|
|
274
|
+
g.r || M(g.c), g = g.p;
|
|
258
275
|
}
|
|
259
276
|
function S(t, e) {
|
|
260
277
|
t && t.i && (B.delete(t), t.i(e));
|
|
261
278
|
}
|
|
262
279
|
function q(t, e, n, i) {
|
|
263
280
|
if (t && t.o) {
|
|
264
|
-
if (B.has(t))
|
|
281
|
+
if (B.has(t))
|
|
282
|
+
return;
|
|
265
283
|
B.add(t), g.c.push(() => {
|
|
266
284
|
B.delete(t), i && (n && t.d(1), i());
|
|
267
285
|
}), t.o(e);
|
|
268
|
-
} else
|
|
286
|
+
} else
|
|
287
|
+
i && i();
|
|
269
288
|
}
|
|
270
289
|
const Ut = { duration: 0 };
|
|
271
290
|
function et(t, e, n, i) {
|
|
272
|
-
let o = e(t, n, { direction: "both" }),
|
|
291
|
+
let o = e(t, n, { direction: "both" }), u = i ? 0 : 1, r = null, c = null, l = null, h;
|
|
273
292
|
function a() {
|
|
274
|
-
l &&
|
|
293
|
+
l && jt(t, l);
|
|
275
294
|
}
|
|
276
295
|
function $(d, _) {
|
|
277
|
-
const
|
|
296
|
+
const f = (
|
|
278
297
|
/** @type {Program['d']} */
|
|
279
|
-
d.b -
|
|
298
|
+
d.b - u
|
|
280
299
|
);
|
|
281
|
-
return _ *= Math.abs(
|
|
282
|
-
a:
|
|
300
|
+
return _ *= Math.abs(f), {
|
|
301
|
+
a: u,
|
|
283
302
|
b: d.b,
|
|
284
|
-
d:
|
|
303
|
+
d: f,
|
|
285
304
|
duration: _,
|
|
286
305
|
start: d.start,
|
|
287
306
|
end: d.start + _,
|
|
@@ -291,7 +310,7 @@ function et(t, e, n, i) {
|
|
|
291
310
|
function m(d) {
|
|
292
311
|
const {
|
|
293
312
|
delay: _ = 0,
|
|
294
|
-
duration:
|
|
313
|
+
duration: f = 300,
|
|
295
314
|
easing: p = st,
|
|
296
315
|
tick: z = L,
|
|
297
316
|
css: U
|
|
@@ -300,10 +319,10 @@ function et(t, e, n, i) {
|
|
|
300
319
|
b: d
|
|
301
320
|
};
|
|
302
321
|
d || (F.group = g, g.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
|
|
303
|
-
t.inert, t.inert = !0)), r || c ? c = F : (U && (a(), l = Z(t,
|
|
304
|
-
if (c && N > c.start && (r = $(c,
|
|
322
|
+
t.inert, t.inert = !0)), r || c ? c = F : (U && (a(), l = Z(t, u, d, f, _, p, U)), d && z(0, 1), r = $(F, f), O(() => J(t, d, "start")), wt((N) => {
|
|
323
|
+
if (c && N > c.start && (r = $(c, f), c = null, J(t, r.b, "start"), U && (a(), l = Z(
|
|
305
324
|
t,
|
|
306
|
-
|
|
325
|
+
u,
|
|
307
326
|
r.b,
|
|
308
327
|
r.duration,
|
|
309
328
|
0,
|
|
@@ -311,10 +330,10 @@ function et(t, e, n, i) {
|
|
|
311
330
|
o.css
|
|
312
331
|
))), r) {
|
|
313
332
|
if (N >= r.end)
|
|
314
|
-
z(
|
|
333
|
+
z(u = r.b, 1 - u), J(t, r.b, "end"), c || (r.b ? a() : --r.group.r || M(r.group.c)), r = null;
|
|
315
334
|
else if (N >= r.start) {
|
|
316
335
|
const at = N - r.start;
|
|
317
|
-
|
|
336
|
+
u = r.a + r.d * p(at / r.duration), z(u, 1 - u);
|
|
318
337
|
}
|
|
319
338
|
}
|
|
320
339
|
return !!(r || c);
|
|
@@ -333,21 +352,21 @@ function et(t, e, n, i) {
|
|
|
333
352
|
}
|
|
334
353
|
function Ft(t, e, n) {
|
|
335
354
|
const { fragment: i, after_update: s } = t.$$;
|
|
336
|
-
i && i.m(e, n),
|
|
355
|
+
i && i.m(e, n), O(() => {
|
|
337
356
|
const o = t.$$.on_mount.map(rt).filter(G);
|
|
338
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...o) :
|
|
339
|
-
}), s.forEach(
|
|
357
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : M(o), t.$$.on_mount = [];
|
|
358
|
+
}), s.forEach(O);
|
|
340
359
|
}
|
|
341
360
|
function It(t, e) {
|
|
342
361
|
const n = t.$$;
|
|
343
|
-
n.fragment !== null && (Tt(n.after_update),
|
|
362
|
+
n.fragment !== null && (Tt(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
344
363
|
}
|
|
345
364
|
function Jt(t, e) {
|
|
346
365
|
t.$$.dirty[0] === -1 && (b.push(t), Bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
347
366
|
}
|
|
348
|
-
function Vt(t, e, n, i, s, o,
|
|
349
|
-
const c =
|
|
350
|
-
|
|
367
|
+
function Vt(t, e, n, i, s, o, u = null, r = [-1]) {
|
|
368
|
+
const c = j;
|
|
369
|
+
v(t);
|
|
351
370
|
const l = t.$$ = {
|
|
352
371
|
fragment: null,
|
|
353
372
|
ctx: [],
|
|
@@ -369,20 +388,20 @@ function Vt(t, e, n, i, s, o, f = null, r = [-1]) {
|
|
|
369
388
|
skip_bound: !1,
|
|
370
389
|
root: e.target || c.$$.root
|
|
371
390
|
};
|
|
372
|
-
|
|
391
|
+
u && u(l.root);
|
|
373
392
|
let h = !1;
|
|
374
393
|
if (l.ctx = n ? n(t, e.props || {}, (a, $, ...m) => {
|
|
375
394
|
const d = m.length ? m[0] : $;
|
|
376
395
|
return l.ctx && s(l.ctx[a], l.ctx[a] = d) && (!l.skip_bound && l.bound[a] && l.bound[a](d), h && Jt(t, a)), $;
|
|
377
|
-
}) : [], l.update(), h = !0,
|
|
396
|
+
}) : [], l.update(), h = !0, M(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
|
|
378
397
|
if (e.hydrate) {
|
|
379
|
-
const a =
|
|
398
|
+
const a = Mt(e.target);
|
|
380
399
|
l.fragment && l.fragment.l(a), a.forEach(A);
|
|
381
400
|
} else
|
|
382
401
|
l.fragment && l.fragment.c();
|
|
383
402
|
e.intro && S(t.$$.fragment), Ft(t, e.target, e.anchor), y();
|
|
384
403
|
}
|
|
385
|
-
|
|
404
|
+
v(c);
|
|
386
405
|
}
|
|
387
406
|
let ft;
|
|
388
407
|
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
@@ -444,7 +463,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
444
463
|
};
|
|
445
464
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
446
465
|
return;
|
|
447
|
-
const e = {}, n =
|
|
466
|
+
const e = {}, n = vt(this);
|
|
448
467
|
for (const s of this.$$s)
|
|
449
468
|
s in n && (e[s] = [t(s)]);
|
|
450
469
|
for (const s of this.attributes) {
|
|
@@ -480,8 +499,8 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
480
499
|
this.$$c.$$.after_update.push(i), i();
|
|
481
500
|
for (const s in this.$$l)
|
|
482
501
|
for (const o of this.$$l[s]) {
|
|
483
|
-
const
|
|
484
|
-
this.$$l_u.set(o,
|
|
502
|
+
const u = this.$$c.$on(s, o);
|
|
503
|
+
this.$$l_u.set(o, u);
|
|
485
504
|
}
|
|
486
505
|
this.$$l = {};
|
|
487
506
|
}
|
|
@@ -532,7 +551,7 @@ function R(t, e, n, i) {
|
|
|
532
551
|
}
|
|
533
552
|
}
|
|
534
553
|
function Wt(t, e, n, i, s, o) {
|
|
535
|
-
let
|
|
554
|
+
let u = class extends ft {
|
|
536
555
|
constructor() {
|
|
537
556
|
super(t, n, s), this.$$p_d = e;
|
|
538
557
|
}
|
|
@@ -543,7 +562,7 @@ function Wt(t, e, n, i, s, o) {
|
|
|
543
562
|
}
|
|
544
563
|
};
|
|
545
564
|
return Object.keys(e).forEach((r) => {
|
|
546
|
-
Object.defineProperty(
|
|
565
|
+
Object.defineProperty(u.prototype, r, {
|
|
547
566
|
get() {
|
|
548
567
|
return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
|
|
549
568
|
},
|
|
@@ -552,13 +571,13 @@ function Wt(t, e, n, i, s, o) {
|
|
|
552
571
|
}
|
|
553
572
|
});
|
|
554
573
|
}), i.forEach((r) => {
|
|
555
|
-
Object.defineProperty(
|
|
574
|
+
Object.defineProperty(u.prototype, r, {
|
|
556
575
|
get() {
|
|
557
576
|
return this.$$c?.[r];
|
|
558
577
|
}
|
|
559
578
|
});
|
|
560
579
|
}), t.element = /** @type {any} */
|
|
561
|
-
|
|
580
|
+
u, u;
|
|
562
581
|
}
|
|
563
582
|
class qt {
|
|
564
583
|
/**
|
|
@@ -643,11 +662,11 @@ function Yt(t) {
|
|
|
643
662
|
}
|
|
644
663
|
function it(t) {
|
|
645
664
|
let e, n, i, s, o;
|
|
646
|
-
const
|
|
665
|
+
const u = (
|
|
647
666
|
/*#slots*/
|
|
648
667
|
t[9].default
|
|
649
668
|
), r = _t(
|
|
650
|
-
|
|
669
|
+
u,
|
|
651
670
|
t,
|
|
652
671
|
/*$$scope*/
|
|
653
672
|
t[8],
|
|
@@ -664,12 +683,12 @@ function it(t) {
|
|
|
664
683
|
t = c, r && r.p && (!o || l & /*$$scope*/
|
|
665
684
|
256) && gt(
|
|
666
685
|
r,
|
|
667
|
-
|
|
686
|
+
u,
|
|
668
687
|
t,
|
|
669
688
|
/*$$scope*/
|
|
670
689
|
t[8],
|
|
671
690
|
o ? mt(
|
|
672
|
-
|
|
691
|
+
u,
|
|
673
692
|
/*$$scope*/
|
|
674
693
|
t[8],
|
|
675
694
|
l,
|
|
@@ -682,7 +701,7 @@ function it(t) {
|
|
|
682
701
|
);
|
|
683
702
|
},
|
|
684
703
|
i(c) {
|
|
685
|
-
o || (S(r, c), c &&
|
|
704
|
+
o || (S(r, c), c && O(() => {
|
|
686
705
|
o && (s || (s = et(n, nt, { transitionDuration: (
|
|
687
706
|
/*duration*/
|
|
688
707
|
t[1]
|
|
@@ -731,9 +750,9 @@ function Zt(t) {
|
|
|
731
750
|
};
|
|
732
751
|
}
|
|
733
752
|
function te(t, e, n) {
|
|
734
|
-
let { $$slots: i = {}, $$scope: s } = e, { show: o = !1 } = e, { duration:
|
|
735
|
-
const m = (
|
|
736
|
-
switch (
|
|
753
|
+
let { $$slots: i = {}, $$scope: s } = e, { show: o = !1 } = e, { duration: u = 350 } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { mbsource: l } = e, { showmodaleventname: h = "ShowLimitsConfirmationModal" } = e, a, $;
|
|
754
|
+
const m = (f) => {
|
|
755
|
+
switch (f.data.type) {
|
|
737
756
|
case "ModalClosed":
|
|
738
757
|
n(0, o = !1);
|
|
739
758
|
break;
|
|
@@ -745,18 +764,18 @@ function te(t, e, n) {
|
|
|
745
764
|
Nt(() => (window.addEventListener("message", m, !1), () => {
|
|
746
765
|
window.removeEventListener("message", m);
|
|
747
766
|
}));
|
|
748
|
-
function d(
|
|
749
|
-
H[
|
|
750
|
-
$ =
|
|
767
|
+
function d(f) {
|
|
768
|
+
H[f ? "unshift" : "push"](() => {
|
|
769
|
+
$ = f, n(3, $);
|
|
751
770
|
});
|
|
752
771
|
}
|
|
753
|
-
function _(
|
|
754
|
-
H[
|
|
755
|
-
a =
|
|
772
|
+
function _(f) {
|
|
773
|
+
H[f ? "unshift" : "push"](() => {
|
|
774
|
+
a = f, n(2, a);
|
|
756
775
|
});
|
|
757
776
|
}
|
|
758
|
-
return t.$$set = (
|
|
759
|
-
"show" in
|
|
777
|
+
return t.$$set = (f) => {
|
|
778
|
+
"show" in f && n(0, o = f.show), "duration" in f && n(1, u = f.duration), "clientstyling" in f && n(4, r = f.clientstyling), "clientstylingurl" in f && n(5, c = f.clientstylingurl), "mbsource" in f && n(6, l = f.mbsource), "showmodaleventname" in f && n(7, h = f.showmodaleventname), "$$scope" in f && n(8, s = f.$$scope);
|
|
760
779
|
}, t.$$.update = () => {
|
|
761
780
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
762
781
|
20 && r && a && Kt(a, r), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
@@ -764,7 +783,7 @@ function te(t, e, n) {
|
|
|
764
783
|
68 && l && a && Xt(a, `${l}.Style`);
|
|
765
784
|
}, [
|
|
766
785
|
o,
|
|
767
|
-
|
|
786
|
+
u,
|
|
768
787
|
a,
|
|
769
788
|
$,
|
|
770
789
|
r,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var pt=Object.defineProperty,bt=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&J(e,n,t[n]);if(tt)for(var n of tt(t))Et.call(t,n)&&J(e,n,t[n]);return e},nt=(e,t)=>bt(e,wt(t));var m=(e,t,n)=>(J(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,s)=>{var r=c=>{try{o(n.next(c))}catch(u){s(u)}},l=c=>{try{o(n.throw(c))}catch(u){s(u)}},o=c=>c.done?i(c.value):Promise.resolve(c.value).then(r,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}const ft=e=>e;function Mt(e,t){for(const n in t)e[n]=t[n];return e}function at(e){return e()}function st(){return Object.create(null)}function C(e){e.forEach(at)}function Q(e){return typeof e=="function"}function vt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Ct(e){return Object.keys(e).length===0}function St(e,t,n,i){if(e){const s=dt(e,t,n,i);return e[0](s)}}function dt(e,t,n,i){return e[1]&&i?Mt(n.ctx.slice(),e[1](i(t))):n.ctx}function kt(e,t,n,i){if(e[2]&&i){const s=e[2](i(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const r=[],l=Math.max(t.dirty.length,s.length);for(let o=0;o<l;o+=1)r[o]=t.dirty[o]|s[o];return r}return t.dirty|s}return t.dirty}function Lt(e,t,n,i,s,r){if(s){const l=dt(t,n,i,r);e.p(l,s)}}function jt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const ht=typeof window!="undefined";let Ot=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):j;const E=new Set;function $t(e){E.forEach(t=>{t.c(e)||(E.delete(t),t.f())}),E.size!==0&&X($t)}function At(e){let t;return E.size===0&&X($t),{promise:new Promise(n=>{E.add(t={c:e,f:n})}),abort(){E.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const s=M("style");s.id=t,s.textContent=n,_t(i,s)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pt(e){const t=M("style");return t.textContent="/* empty */",_t(Y(e),t),t.sheet}function _t(e,t){return q(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function Bt(e){return document.createTextNode(e)}function Rt(){return Bt("")}function B(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}function Dt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ht(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let H=0;function zt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ut(e,t){const n={stylesheet:Pt(t),rules:{}};return D.set(e,n),n}function rt(e,t,n,i,s,r,l,o=0){const c=16.666/i;let u=`{
|
|
2
|
+
`;for(let f=0;f<=1;f+=c){const b=t+(n-t)*r(f);u+=f*100+`%{${l(b,1-b)}}
|
|
3
|
+
`}const h=u+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,a=`__svelte_${zt(h)}_${o}`,$=Y(e),{stylesheet:g,rules:d}=D.get($)||Ut($,e);d[a]||(d[a]=!0,g.insertRule(`@keyframes ${a} ${h}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${a} ${i}ms linear ${s}ms 1 both`,H+=1,a}function Ft(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(e.style.animation=i.join(", "),H-=s,H||It())}function It(){X(()=>{H||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&N(t)}),D.clear())})}let O;function k(e){O=e}function Jt(){if(!O)throw new Error("Function called outside component initialization");return O}function Vt(e){Jt().$$.on_mount.push(e)}const x=[],z=[];let v=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(p))}function A(e){v.push(e)}const V=new Set;let w=0;function p(){if(w!==0)return;const e=O;do{try{for(;w<x.length;){const t=x[w];w++,k(t),Gt(t.$$)}}catch(t){throw x.length=0,w=0,t}for(k(null),x.length=0,w=0;z.length;)z.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];V.has(n)||(V.add(n),n())}v.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),k(e)}function Gt(e){if(e.fragment!==null){e.update(),C(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}function Kt(e){const t=[],n=[];v.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),v=t}let S;function Qt(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const R=new Set;let y;function Xt(){y={r:0,c:[],p:y}}function Yt(){y.r||C(y.c),y=y.p}function L(e,t){e&&e.i&&(R.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(R.has(e))return;R.add(e),y.c.push(()=>{R.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function ct(e,t,n,i){let r=t(e,n,{direction:"both"}),l=i?0:1,o=null,c=null,u=null,h;function a(){u&&Ft(e,u)}function $(d,_){const f=d.b-l;return _*=Math.abs(f),{a:l,b:d.b,d:f,duration:_,start:d.start,end:d.start+_,group:d.group}}function g(d){const{delay:_=0,duration:f=300,easing:b=ft,tick:U=j,css:F}=r||Zt,I={start:Ot()+_,b:d};d||(I.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=I:(F&&(a(),u=rt(e,l,d,f,_,b,F)),d&&U(0,1),o=$(I,f),A(()=>W(e,d,"start")),At(P=>{if(c&&P>c.start&&(o=$(c,f),c=null,W(e,o.b,"start"),F&&(a(),u=rt(e,l,o.b,o.duration,0,b,r.css))),o){if(P>=o.end)U(l=o.b,1-l),W(e,o.b,"end"),c||(o.b?a():--o.group.r||C(o.group.c)),o=null;else if(P>=o.start){const yt=P-o.start;l=o.a+o.d*b(yt/o.duration),U(l,1-l)}}return!!(o||c)}))}return{run(d){Q(r)?Qt().then(()=>{r=r({direction:d?"in":"out"}),g(d)}):g(d)},end(){a(),o=c=null}}}function te(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),A(()=>{const r=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...r):C(r),e.$$.on_mount=[]}),s.forEach(A)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),C(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){e.$$.dirty[0]===-1&&(x.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,s,r,l=null,o=[-1]){const c=O;k(e);const u=e.$$={fragment:null,ctx:[],props:r,update:j,not_equal:s,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(a,$,...g)=>{const d=g.length?g[0]:$;return u.ctx&&s(u.ctx[a],u.ctx[a]=d)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](d),h&&ne(e,a)),$}):[],u.update(),h=!0,C(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const a=Tt(t.target);u.fragment&&u.fragment.l(a),a.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),p()}k(c)}let mt;typeof HTMLElement=="function"&&(mt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let l;return{c:function(){l=M("slot"),r!=="default"&&B(l,"name",r)},m:function(u,h){Z(u,l,h)},d:function(u){u&&N(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ht(this);for(const r of this.$$s)r in i&&(n[r]=[t(r)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=T(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const l=T(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const l of this.$$l[r]){const o=this.$$c.$on(r,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=T(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function T(e,t,n,i){var r;const s=(r=n[e])==null?void 0:r.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function se(e,t,n,i,s,r){let l=class extends mt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var u;c=T(o,c,t),this.$$d[o]=c,(u=this.$$c)==null||u.$set({[o]:c})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=l,l}class re{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){ee(this,1),this.$destroy=j}$on(t,n){if(!Q(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!Ct(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oe);function lt(e,{delay:t=0,duration:n=400,easing:i=ft}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:r=>`opacity: ${r*s}`}}function ce(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,e&&e.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ue(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,e&&e.appendChild(i)})}}function fe(e){Nt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ut(e){let t,n,i,s,r;const l=e[9].default,o=St(l,e,e[8],null);return{c(){t=M("div"),n=M("div"),i=M("div"),o&&o.c(),B(i,"class","ModalContainer"),B(n,"class","ModalWindow"),B(n,"id","Modal")},m(c,u){Z(c,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[10](n),e[11](t),r=!0},p(c,u){e=c,o&&o.p&&(!r||u&256)&&Lt(o,l,e,e[8],r?kt(l,e[8],u,null):jt(e[8]),null)},i(c){r||(L(o,c),c&&A(()=>{r&&(s||(s=ct(n,lt,{transitionDuration:e[1]},!0)),s.run(1))}),r=!0)},o(c){K(o,c),c&&(s||(s=ct(n,lt,{transitionDuration:e[1]},!1)),s.run(0)),r=!1},d(c){c&&N(t),o&&o.d(c),e[10](null),c&&s&&s.end(),e[11](null)}}}function ae(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Rt()},m(s,r){i&&i.m(s,r),Z(s,t,r),n=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&L(i,1)):(i=ut(s),i.c(),L(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(s){n||(L(i),n=!0)},o(s){K(i),n=!1},d(s){s&&N(t),i&&i.d(s)}}}function de(e,t,n){let{$$slots:i={},$$scope:s}=t,{show:r=!1}=t,{duration:l=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:u}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,a,$;const g=f=>{switch(f.data.type){case"ModalClosed":n(0,r=!1);break;case h:n(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Vt(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function d(f){z[f?"unshift":"push"](()=>{$=f,n(3,$)})}function _(f){z[f?"unshift":"push"](()=>{a=f,n(2,a)})}return e.$$set=f=>{"show"in f&&n(0,r=f.show),"duration"in f&&n(1,l=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,c=f.clientstylingurl),"mbsource"in f&&n(6,u=f.mbsource),"showmodaleventname"in f&&n(7,h=f.showmodaleventname),"$$scope"in f&&n(8,s=f.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&a&&ce(a,o),e.$$.dirty&36&&c&&a&&le(a,c),e.$$.dirty&68&&u&&a&&ue(a,`${u}.Style`)},[r,l,a,$,o,c,u,h,s,i,d,_]}class gt extends re{constructor(t){super(),ie(this,t,de,ae,vt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},fe)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),p()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),p()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),p()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=gt;
|
|
@@ -10,28 +10,29 @@ var J = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writa
|
|
|
10
10
|
xt.call(t, n) && J(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, nt = (e, t) => pt(e, wt(t));
|
|
13
|
-
var m = (e, t, n) => J(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
-
var it = (e, t, n) => new Promise((i,
|
|
15
|
-
var
|
|
13
|
+
var m = (e, t, n) => (J(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var it = (e, t, n) => new Promise((i, s) => {
|
|
15
|
+
var r = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
o(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
|
-
|
|
19
|
+
s(u);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
o(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
|
-
|
|
25
|
+
s(u);
|
|
26
26
|
}
|
|
27
|
-
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(
|
|
27
|
+
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(r, l);
|
|
28
28
|
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function j() {
|
|
31
31
|
}
|
|
32
32
|
const ft = (e) => e;
|
|
33
33
|
function Et(e, t) {
|
|
34
|
-
for (const n in t)
|
|
34
|
+
for (const n in t)
|
|
35
|
+
e[n] = t[n];
|
|
35
36
|
return (
|
|
36
37
|
/** @type {T & S} */
|
|
37
38
|
e
|
|
@@ -43,7 +44,7 @@ function at(e) {
|
|
|
43
44
|
function st() {
|
|
44
45
|
return /* @__PURE__ */ Object.create(null);
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function k(e) {
|
|
47
48
|
e.forEach(at);
|
|
48
49
|
}
|
|
49
50
|
function Q(e) {
|
|
@@ -52,25 +53,37 @@ function Q(e) {
|
|
|
52
53
|
function Ct(e, t) {
|
|
53
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function Mt(e) {
|
|
56
57
|
return Object.keys(e).length === 0;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function kt(e, t, n, i) {
|
|
59
60
|
if (e) {
|
|
60
|
-
const
|
|
61
|
-
return e[0](
|
|
61
|
+
const s = dt(e, t, n, i);
|
|
62
|
+
return e[0](s);
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
function dt(e, t, n, i) {
|
|
65
66
|
return e[1] && i ? Et(n.ctx.slice(), e[1](i(t))) : n.ctx;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
68
|
+
function vt(e, t, n, i) {
|
|
69
|
+
if (e[2] && i) {
|
|
70
|
+
const s = e[2](i(n));
|
|
71
|
+
if (t.dirty === void 0)
|
|
72
|
+
return s;
|
|
73
|
+
if (typeof s == "object") {
|
|
74
|
+
const r = [], l = Math.max(t.dirty.length, s.length);
|
|
75
|
+
for (let o = 0; o < l; o += 1)
|
|
76
|
+
r[o] = t.dirty[o] | s[o];
|
|
77
|
+
return r;
|
|
78
|
+
}
|
|
79
|
+
return t.dirty | s;
|
|
80
|
+
}
|
|
81
|
+
return t.dirty;
|
|
69
82
|
}
|
|
70
|
-
function St(e, t, n, i,
|
|
71
|
-
if (
|
|
72
|
-
const l = dt(t, n, i,
|
|
73
|
-
e.p(l,
|
|
83
|
+
function St(e, t, n, i, s, r) {
|
|
84
|
+
if (s) {
|
|
85
|
+
const l = dt(t, n, i, r);
|
|
86
|
+
e.p(l, s);
|
|
74
87
|
}
|
|
75
88
|
}
|
|
76
89
|
function Lt(e) {
|
|
@@ -83,14 +96,14 @@ function Lt(e) {
|
|
|
83
96
|
return -1;
|
|
84
97
|
}
|
|
85
98
|
const ht = typeof window != "undefined";
|
|
86
|
-
let
|
|
99
|
+
let jt = ht ? () => window.performance.now() : () => Date.now(), X = ht ? (e) => requestAnimationFrame(e) : j;
|
|
87
100
|
const E = /* @__PURE__ */ new Set();
|
|
88
101
|
function $t(e) {
|
|
89
102
|
E.forEach((t) => {
|
|
90
103
|
t.c(e) || (E.delete(t), t.f());
|
|
91
104
|
}), E.size !== 0 && X($t);
|
|
92
105
|
}
|
|
93
|
-
function
|
|
106
|
+
function Ot(e) {
|
|
94
107
|
let t;
|
|
95
108
|
return E.size === 0 && X($t), {
|
|
96
109
|
promise: new Promise((n) => {
|
|
@@ -107,12 +120,13 @@ function q(e, t) {
|
|
|
107
120
|
function At(e, t, n) {
|
|
108
121
|
const i = Y(e);
|
|
109
122
|
if (!i.getElementById(t)) {
|
|
110
|
-
const
|
|
111
|
-
|
|
123
|
+
const s = C("style");
|
|
124
|
+
s.id = t, s.textContent = n, _t(i, s);
|
|
112
125
|
}
|
|
113
126
|
}
|
|
114
127
|
function Y(e) {
|
|
115
|
-
if (!e)
|
|
128
|
+
if (!e)
|
|
129
|
+
return document;
|
|
116
130
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
117
131
|
return t && /** @type {ShadowRoot} */
|
|
118
132
|
t.host ? (
|
|
@@ -168,19 +182,20 @@ const D = /* @__PURE__ */ new Map();
|
|
|
168
182
|
let H = 0;
|
|
169
183
|
function Ht(e) {
|
|
170
184
|
let t = 5381, n = e.length;
|
|
171
|
-
for (; n--; )
|
|
185
|
+
for (; n--; )
|
|
186
|
+
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
172
187
|
return t >>> 0;
|
|
173
188
|
}
|
|
174
189
|
function zt(e, t) {
|
|
175
190
|
const n = { stylesheet: Nt(t), rules: {} };
|
|
176
191
|
return D.set(e, n), n;
|
|
177
192
|
}
|
|
178
|
-
function rt(e, t, n, i,
|
|
193
|
+
function rt(e, t, n, i, s, r, l, o = 0) {
|
|
179
194
|
const c = 16.666 / i;
|
|
180
195
|
let u = `{
|
|
181
196
|
`;
|
|
182
197
|
for (let f = 0; f <= 1; f += c) {
|
|
183
|
-
const w = t + (n - t) *
|
|
198
|
+
const w = t + (n - t) * r(f);
|
|
184
199
|
u += f * 100 + `%{${l(w, 1 - w)}}
|
|
185
200
|
`;
|
|
186
201
|
}
|
|
@@ -188,14 +203,14 @@ function rt(e, t, n, i, r, s, l, o = 0) {
|
|
|
188
203
|
}`, a = `__svelte_${Ht(h)}_${o}`, $ = Y(e), { stylesheet: g, rules: d } = D.get($) || zt($, e);
|
|
189
204
|
d[a] || (d[a] = !0, g.insertRule(`@keyframes ${a} ${h}`, g.cssRules.length));
|
|
190
205
|
const _ = e.style.animation || "";
|
|
191
|
-
return e.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${
|
|
206
|
+
return e.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, H += 1, a;
|
|
192
207
|
}
|
|
193
208
|
function Ut(e, t) {
|
|
194
209
|
const n = (e.style.animation || "").split(", "), i = n.filter(
|
|
195
|
-
t ? (
|
|
210
|
+
t ? (r) => r.indexOf(t) < 0 : (r) => r.indexOf("__svelte") === -1
|
|
196
211
|
// remove all Svelte animations
|
|
197
|
-
),
|
|
198
|
-
|
|
212
|
+
), s = n.length - i.length;
|
|
213
|
+
s && (e.style.animation = i.join(", "), H -= s, H || Ft());
|
|
199
214
|
}
|
|
200
215
|
function Ft() {
|
|
201
216
|
X(() => {
|
|
@@ -205,33 +220,34 @@ function Ft() {
|
|
|
205
220
|
}), D.clear());
|
|
206
221
|
});
|
|
207
222
|
}
|
|
208
|
-
let
|
|
223
|
+
let O;
|
|
209
224
|
function S(e) {
|
|
210
|
-
|
|
225
|
+
O = e;
|
|
211
226
|
}
|
|
212
227
|
function It() {
|
|
213
|
-
if (!
|
|
214
|
-
|
|
228
|
+
if (!O)
|
|
229
|
+
throw new Error("Function called outside component initialization");
|
|
230
|
+
return O;
|
|
215
231
|
}
|
|
216
232
|
function Jt(e) {
|
|
217
233
|
It().$$.on_mount.push(e);
|
|
218
234
|
}
|
|
219
235
|
const x = [], z = [];
|
|
220
|
-
let
|
|
236
|
+
let M = [];
|
|
221
237
|
const ot = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
222
238
|
let G = !1;
|
|
223
239
|
function Wt() {
|
|
224
240
|
G || (G = !0, Vt.then(p));
|
|
225
241
|
}
|
|
226
242
|
function A(e) {
|
|
227
|
-
|
|
243
|
+
M.push(e);
|
|
228
244
|
}
|
|
229
245
|
const V = /* @__PURE__ */ new Set();
|
|
230
246
|
let b = 0;
|
|
231
247
|
function p() {
|
|
232
248
|
if (b !== 0)
|
|
233
249
|
return;
|
|
234
|
-
const e =
|
|
250
|
+
const e = O;
|
|
235
251
|
do {
|
|
236
252
|
try {
|
|
237
253
|
for (; b < x.length; ) {
|
|
@@ -241,12 +257,13 @@ function p() {
|
|
|
241
257
|
} catch (t) {
|
|
242
258
|
throw x.length = 0, b = 0, t;
|
|
243
259
|
}
|
|
244
|
-
for (S(null), x.length = 0, b = 0; z.length; )
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
for (S(null), x.length = 0, b = 0; z.length; )
|
|
261
|
+
z.pop()();
|
|
262
|
+
for (let t = 0; t < M.length; t += 1) {
|
|
263
|
+
const n = M[t];
|
|
247
264
|
V.has(n) || (V.add(n), n());
|
|
248
265
|
}
|
|
249
|
-
|
|
266
|
+
M.length = 0;
|
|
250
267
|
} while (x.length);
|
|
251
268
|
for (; ot.length; )
|
|
252
269
|
ot.pop()();
|
|
@@ -254,20 +271,20 @@ function p() {
|
|
|
254
271
|
}
|
|
255
272
|
function qt(e) {
|
|
256
273
|
if (e.fragment !== null) {
|
|
257
|
-
e.update(),
|
|
274
|
+
e.update(), k(e.before_update);
|
|
258
275
|
const t = e.dirty;
|
|
259
276
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(A);
|
|
260
277
|
}
|
|
261
278
|
}
|
|
262
279
|
function Gt(e) {
|
|
263
280
|
const t = [], n = [];
|
|
264
|
-
|
|
281
|
+
M.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), M = t;
|
|
265
282
|
}
|
|
266
|
-
let
|
|
283
|
+
let v;
|
|
267
284
|
function Kt() {
|
|
268
|
-
return
|
|
269
|
-
|
|
270
|
-
})),
|
|
285
|
+
return v || (v = Promise.resolve(), v.then(() => {
|
|
286
|
+
v = null;
|
|
287
|
+
})), v;
|
|
271
288
|
}
|
|
272
289
|
function W(e, t, n) {
|
|
273
290
|
e.dispatchEvent(Tt(`${t ? "intro" : "outro"}${n}`));
|
|
@@ -283,22 +300,24 @@ function Qt() {
|
|
|
283
300
|
};
|
|
284
301
|
}
|
|
285
302
|
function Xt() {
|
|
286
|
-
y.r ||
|
|
303
|
+
y.r || k(y.c), y = y.p;
|
|
287
304
|
}
|
|
288
305
|
function L(e, t) {
|
|
289
306
|
e && e.i && (R.delete(e), e.i(t));
|
|
290
307
|
}
|
|
291
308
|
function K(e, t, n, i) {
|
|
292
309
|
if (e && e.o) {
|
|
293
|
-
if (R.has(e))
|
|
310
|
+
if (R.has(e))
|
|
311
|
+
return;
|
|
294
312
|
R.add(e), y.c.push(() => {
|
|
295
313
|
R.delete(e), i && (n && e.d(1), i());
|
|
296
314
|
}), e.o(t);
|
|
297
|
-
} else
|
|
315
|
+
} else
|
|
316
|
+
i && i();
|
|
298
317
|
}
|
|
299
318
|
const Yt = { duration: 0 };
|
|
300
319
|
function ct(e, t, n, i) {
|
|
301
|
-
let
|
|
320
|
+
let r = t(e, n, { direction: "both" }), l = i ? 0 : 1, o = null, c = null, u = null, h;
|
|
302
321
|
function a() {
|
|
303
322
|
u && Ut(e, u);
|
|
304
323
|
}
|
|
@@ -322,14 +341,14 @@ function ct(e, t, n, i) {
|
|
|
322
341
|
delay: _ = 0,
|
|
323
342
|
duration: f = 300,
|
|
324
343
|
easing: w = ft,
|
|
325
|
-
tick: U =
|
|
344
|
+
tick: U = j,
|
|
326
345
|
css: F
|
|
327
|
-
} =
|
|
328
|
-
start:
|
|
346
|
+
} = r || Yt, I = {
|
|
347
|
+
start: jt() + _,
|
|
329
348
|
b: d
|
|
330
349
|
};
|
|
331
350
|
d || (I.group = y, y.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
332
|
-
e.inert, e.inert = !0)), o || c ? c = I : (F && (a(), u = rt(e, l, d, f, _, w, F)), d && U(0, 1), o = $(I, f), A(() => W(e, d, "start")),
|
|
351
|
+
e.inert, e.inert = !0)), o || c ? c = I : (F && (a(), u = rt(e, l, d, f, _, w, F)), d && U(0, 1), o = $(I, f), A(() => W(e, d, "start")), Ot((P) => {
|
|
333
352
|
if (c && P > c.start && (o = $(c, f), c = null, W(e, o.b, "start"), F && (a(), u = rt(
|
|
334
353
|
e,
|
|
335
354
|
l,
|
|
@@ -337,10 +356,10 @@ function ct(e, t, n, i) {
|
|
|
337
356
|
o.duration,
|
|
338
357
|
0,
|
|
339
358
|
w,
|
|
340
|
-
|
|
359
|
+
r.css
|
|
341
360
|
))), o) {
|
|
342
361
|
if (P >= o.end)
|
|
343
|
-
U(l = o.b, 1 - l), W(e, o.b, "end"), c || (o.b ? a() : --o.group.r ||
|
|
362
|
+
U(l = o.b, 1 - l), W(e, o.b, "end"), c || (o.b ? a() : --o.group.r || k(o.group.c)), o = null;
|
|
344
363
|
else if (P >= o.start) {
|
|
345
364
|
const gt = P - o.start;
|
|
346
365
|
l = o.a + o.d * w(gt / o.duration), U(l, 1 - l);
|
|
@@ -351,8 +370,8 @@ function ct(e, t, n, i) {
|
|
|
351
370
|
}
|
|
352
371
|
return {
|
|
353
372
|
run(d) {
|
|
354
|
-
Q(
|
|
355
|
-
|
|
373
|
+
Q(r) ? Kt().then(() => {
|
|
374
|
+
r = r({ direction: d ? "in" : "out" }), g(d);
|
|
356
375
|
}) : g(d);
|
|
357
376
|
},
|
|
358
377
|
end() {
|
|
@@ -361,29 +380,29 @@ function ct(e, t, n, i) {
|
|
|
361
380
|
};
|
|
362
381
|
}
|
|
363
382
|
function Zt(e, t, n) {
|
|
364
|
-
const { fragment: i, after_update:
|
|
383
|
+
const { fragment: i, after_update: s } = e.$$;
|
|
365
384
|
i && i.m(t, n), A(() => {
|
|
366
|
-
const
|
|
367
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
368
|
-
}),
|
|
385
|
+
const r = e.$$.on_mount.map(at).filter(Q);
|
|
386
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...r) : k(r), e.$$.on_mount = [];
|
|
387
|
+
}), s.forEach(A);
|
|
369
388
|
}
|
|
370
389
|
function te(e, t) {
|
|
371
390
|
const n = e.$$;
|
|
372
|
-
n.fragment !== null && (Gt(n.after_update),
|
|
391
|
+
n.fragment !== null && (Gt(n.after_update), k(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
373
392
|
}
|
|
374
393
|
function ee(e, t) {
|
|
375
394
|
e.$$.dirty[0] === -1 && (x.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
376
395
|
}
|
|
377
|
-
function ne(e, t, n, i,
|
|
378
|
-
const c =
|
|
396
|
+
function ne(e, t, n, i, s, r, l = null, o = [-1]) {
|
|
397
|
+
const c = O;
|
|
379
398
|
S(e);
|
|
380
399
|
const u = e.$$ = {
|
|
381
400
|
fragment: null,
|
|
382
401
|
ctx: [],
|
|
383
402
|
// state
|
|
384
|
-
props:
|
|
385
|
-
update:
|
|
386
|
-
not_equal:
|
|
403
|
+
props: r,
|
|
404
|
+
update: j,
|
|
405
|
+
not_equal: s,
|
|
387
406
|
bound: st(),
|
|
388
407
|
// lifecycle
|
|
389
408
|
on_mount: [],
|
|
@@ -402,8 +421,8 @@ function ne(e, t, n, i, r, s, l = null, o = [-1]) {
|
|
|
402
421
|
let h = !1;
|
|
403
422
|
if (u.ctx = n ? n(e, t.props || {}, (a, $, ...g) => {
|
|
404
423
|
const d = g.length ? g[0] : $;
|
|
405
|
-
return u.ctx &&
|
|
406
|
-
}) : [], u.update(), h = !0,
|
|
424
|
+
return u.ctx && s(u.ctx[a], u.ctx[a] = d) && (!u.skip_bound && u.bound[a] && u.bound[a](d), h && ee(e, a)), $;
|
|
425
|
+
}) : [], u.update(), h = !0, k(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
407
426
|
if (t.hydrate) {
|
|
408
427
|
const a = Rt(t.target);
|
|
409
428
|
u.fragment && u.fragment.l(a), a.forEach(N);
|
|
@@ -439,26 +458,26 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
439
458
|
}
|
|
440
459
|
addEventListener(t, n, i) {
|
|
441
460
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
442
|
-
const
|
|
443
|
-
this.$$l_u.set(n,
|
|
461
|
+
const s = this.$$c.$on(t, n);
|
|
462
|
+
this.$$l_u.set(n, s);
|
|
444
463
|
}
|
|
445
464
|
super.addEventListener(t, n, i);
|
|
446
465
|
}
|
|
447
466
|
removeEventListener(t, n, i) {
|
|
448
467
|
if (super.removeEventListener(t, n, i), this.$$c) {
|
|
449
|
-
const
|
|
450
|
-
|
|
468
|
+
const s = this.$$l_u.get(n);
|
|
469
|
+
s && (s(), this.$$l_u.delete(n));
|
|
451
470
|
}
|
|
452
471
|
}
|
|
453
472
|
connectedCallback() {
|
|
454
473
|
return it(this, null, function* () {
|
|
455
474
|
if (this.$$cn = !0, !this.$$c) {
|
|
456
|
-
let t = function(
|
|
475
|
+
let t = function(r) {
|
|
457
476
|
return () => {
|
|
458
477
|
let l;
|
|
459
478
|
return {
|
|
460
479
|
c: function() {
|
|
461
|
-
l = C("slot"),
|
|
480
|
+
l = C("slot"), r !== "default" && B(l, "name", r);
|
|
462
481
|
},
|
|
463
482
|
/**
|
|
464
483
|
* @param {HTMLElement} target
|
|
@@ -476,14 +495,14 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
476
495
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
477
496
|
return;
|
|
478
497
|
const n = {}, i = Dt(this);
|
|
479
|
-
for (const
|
|
480
|
-
|
|
481
|
-
for (const
|
|
482
|
-
const l = this.$$g_p(
|
|
483
|
-
l in this.$$d || (this.$$d[l] = T(l,
|
|
498
|
+
for (const r of this.$$s)
|
|
499
|
+
r in i && (n[r] = [t(r)]);
|
|
500
|
+
for (const r of this.attributes) {
|
|
501
|
+
const l = this.$$g_p(r.name);
|
|
502
|
+
l in this.$$d || (this.$$d[l] = T(l, r.value, this.$$p_d, "toProp"));
|
|
484
503
|
}
|
|
485
|
-
for (const
|
|
486
|
-
!(
|
|
504
|
+
for (const r in this.$$p_d)
|
|
505
|
+
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
487
506
|
this.$$c = new this.$$ctor({
|
|
488
507
|
target: this.shadowRoot || this,
|
|
489
508
|
props: nt(et({}, this.$$d), {
|
|
@@ -493,24 +512,24 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
493
512
|
}
|
|
494
513
|
})
|
|
495
514
|
});
|
|
496
|
-
const
|
|
515
|
+
const s = () => {
|
|
497
516
|
this.$$r = !0;
|
|
498
|
-
for (const
|
|
499
|
-
if (this.$$d[
|
|
517
|
+
for (const r in this.$$p_d)
|
|
518
|
+
if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
|
|
500
519
|
const l = T(
|
|
501
|
-
|
|
502
|
-
this.$$d[
|
|
520
|
+
r,
|
|
521
|
+
this.$$d[r],
|
|
503
522
|
this.$$p_d,
|
|
504
523
|
"toAttribute"
|
|
505
524
|
);
|
|
506
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
525
|
+
l == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, l);
|
|
507
526
|
}
|
|
508
527
|
this.$$r = !1;
|
|
509
528
|
};
|
|
510
|
-
this.$$c.$$.after_update.push(
|
|
511
|
-
for (const
|
|
512
|
-
for (const l of this.$$l[
|
|
513
|
-
const o = this.$$c.$on(
|
|
529
|
+
this.$$c.$$.after_update.push(s), s();
|
|
530
|
+
for (const r in this.$$l)
|
|
531
|
+
for (const l of this.$$l[r]) {
|
|
532
|
+
const o = this.$$c.$on(r, l);
|
|
514
533
|
this.$$l_u.set(l, o);
|
|
515
534
|
}
|
|
516
535
|
this.$$l = {};
|
|
@@ -520,8 +539,8 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
520
539
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
521
540
|
// and setting attributes through setAttribute etc, this is helpful
|
|
522
541
|
attributeChangedCallback(t, n, i) {
|
|
523
|
-
var
|
|
524
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = T(t, i, this.$$p_d, "toProp"), (
|
|
542
|
+
var s;
|
|
543
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = T(t, i, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
|
|
525
544
|
}
|
|
526
545
|
disconnectedCallback() {
|
|
527
546
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -535,12 +554,12 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
535
554
|
}
|
|
536
555
|
});
|
|
537
556
|
function T(e, t, n, i) {
|
|
538
|
-
var
|
|
539
|
-
const
|
|
540
|
-
if (t =
|
|
557
|
+
var r;
|
|
558
|
+
const s = (r = n[e]) == null ? void 0 : r.type;
|
|
559
|
+
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
|
|
541
560
|
return t;
|
|
542
561
|
if (i === "toAttribute")
|
|
543
|
-
switch (
|
|
562
|
+
switch (s) {
|
|
544
563
|
case "Object":
|
|
545
564
|
case "Array":
|
|
546
565
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -552,7 +571,7 @@ function T(e, t, n, i) {
|
|
|
552
571
|
return t;
|
|
553
572
|
}
|
|
554
573
|
else
|
|
555
|
-
switch (
|
|
574
|
+
switch (s) {
|
|
556
575
|
case "Object":
|
|
557
576
|
case "Array":
|
|
558
577
|
return t && JSON.parse(t);
|
|
@@ -564,10 +583,10 @@ function T(e, t, n, i) {
|
|
|
564
583
|
return t;
|
|
565
584
|
}
|
|
566
585
|
}
|
|
567
|
-
function ie(e, t, n, i,
|
|
586
|
+
function ie(e, t, n, i, s, r) {
|
|
568
587
|
let l = class extends mt {
|
|
569
588
|
constructor() {
|
|
570
|
-
super(e, n,
|
|
589
|
+
super(e, n, s), this.$$p_d = t;
|
|
571
590
|
}
|
|
572
591
|
static get observedAttributes() {
|
|
573
592
|
return Object.keys(t).map(
|
|
@@ -616,7 +635,7 @@ class se {
|
|
|
616
635
|
}
|
|
617
636
|
/** @returns {void} */
|
|
618
637
|
$destroy() {
|
|
619
|
-
te(this, 1), this.$destroy =
|
|
638
|
+
te(this, 1), this.$destroy = j;
|
|
620
639
|
}
|
|
621
640
|
/**
|
|
622
641
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -626,11 +645,11 @@ class se {
|
|
|
626
645
|
*/
|
|
627
646
|
$on(t, n) {
|
|
628
647
|
if (!Q(n))
|
|
629
|
-
return
|
|
648
|
+
return j;
|
|
630
649
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
631
650
|
return i.push(n), () => {
|
|
632
|
-
const
|
|
633
|
-
|
|
651
|
+
const s = i.indexOf(n);
|
|
652
|
+
s !== -1 && i.splice(s, 1);
|
|
634
653
|
};
|
|
635
654
|
}
|
|
636
655
|
/**
|
|
@@ -638,18 +657,18 @@ class se {
|
|
|
638
657
|
* @returns {void}
|
|
639
658
|
*/
|
|
640
659
|
$set(t) {
|
|
641
|
-
this.$$set && !
|
|
660
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
642
661
|
}
|
|
643
662
|
}
|
|
644
663
|
const re = "4";
|
|
645
664
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(re);
|
|
646
665
|
function lt(e, { delay: t = 0, duration: n = 400, easing: i = ft } = {}) {
|
|
647
|
-
const
|
|
666
|
+
const s = +getComputedStyle(e).opacity;
|
|
648
667
|
return {
|
|
649
668
|
delay: t,
|
|
650
669
|
duration: n,
|
|
651
670
|
easing: i,
|
|
652
|
-
css: (
|
|
671
|
+
css: (r) => `opacity: ${r * s}`
|
|
653
672
|
};
|
|
654
673
|
}
|
|
655
674
|
function oe(e, t) {
|
|
@@ -661,8 +680,8 @@ function oe(e, t) {
|
|
|
661
680
|
function ce(e, t) {
|
|
662
681
|
const n = new URL(t);
|
|
663
682
|
fetch(n.href).then((i) => i.text()).then((i) => {
|
|
664
|
-
const
|
|
665
|
-
|
|
683
|
+
const s = document.createElement("style");
|
|
684
|
+
s.innerHTML = i, e && e.appendChild(s);
|
|
666
685
|
}).catch((i) => {
|
|
667
686
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
668
687
|
});
|
|
@@ -670,8 +689,8 @@ function ce(e, t) {
|
|
|
670
689
|
function le(e, t, n) {
|
|
671
690
|
if (window.emMessageBus) {
|
|
672
691
|
const i = document.createElement("style");
|
|
673
|
-
window.emMessageBus.subscribe(t, (
|
|
674
|
-
i.innerHTML =
|
|
692
|
+
window.emMessageBus.subscribe(t, (s) => {
|
|
693
|
+
i.innerHTML = s, e && e.appendChild(i);
|
|
675
694
|
});
|
|
676
695
|
}
|
|
677
696
|
}
|
|
@@ -679,11 +698,11 @@ function ue(e) {
|
|
|
679
698
|
At(e, "svelte-126fglp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
|
|
680
699
|
}
|
|
681
700
|
function ut(e) {
|
|
682
|
-
let t, n, i,
|
|
701
|
+
let t, n, i, s, r;
|
|
683
702
|
const l = (
|
|
684
703
|
/*#slots*/
|
|
685
704
|
e[9].default
|
|
686
|
-
), o =
|
|
705
|
+
), o = kt(
|
|
687
706
|
l,
|
|
688
707
|
e,
|
|
689
708
|
/*$$scope*/
|
|
@@ -695,17 +714,17 @@ function ut(e) {
|
|
|
695
714
|
t = C("div"), n = C("div"), i = C("div"), o && o.c(), B(i, "class", "ModalContainer"), B(n, "class", "ModalWindow"), B(n, "id", "Modal");
|
|
696
715
|
},
|
|
697
716
|
m(c, u) {
|
|
698
|
-
Z(c, t, u), q(t, n), q(n, i), o && o.m(i, null), e[10](n), e[11](t),
|
|
717
|
+
Z(c, t, u), q(t, n), q(n, i), o && o.m(i, null), e[10](n), e[11](t), r = !0;
|
|
699
718
|
},
|
|
700
719
|
p(c, u) {
|
|
701
|
-
e = c, o && o.p && (!
|
|
720
|
+
e = c, o && o.p && (!r || u & /*$$scope*/
|
|
702
721
|
256) && St(
|
|
703
722
|
o,
|
|
704
723
|
l,
|
|
705
724
|
e,
|
|
706
725
|
/*$$scope*/
|
|
707
726
|
e[8],
|
|
708
|
-
|
|
727
|
+
r ? vt(
|
|
709
728
|
l,
|
|
710
729
|
/*$$scope*/
|
|
711
730
|
e[8],
|
|
@@ -719,21 +738,21 @@ function ut(e) {
|
|
|
719
738
|
);
|
|
720
739
|
},
|
|
721
740
|
i(c) {
|
|
722
|
-
|
|
723
|
-
|
|
741
|
+
r || (L(o, c), c && A(() => {
|
|
742
|
+
r && (s || (s = ct(n, lt, { transitionDuration: (
|
|
724
743
|
/*duration*/
|
|
725
744
|
e[1]
|
|
726
|
-
) }, !0)),
|
|
727
|
-
}),
|
|
745
|
+
) }, !0)), s.run(1));
|
|
746
|
+
}), r = !0);
|
|
728
747
|
},
|
|
729
748
|
o(c) {
|
|
730
|
-
K(o, c), c && (
|
|
749
|
+
K(o, c), c && (s || (s = ct(n, lt, { transitionDuration: (
|
|
731
750
|
/*duration*/
|
|
732
751
|
e[1]
|
|
733
|
-
) }, !1)),
|
|
752
|
+
) }, !1)), s.run(0)), r = !1;
|
|
734
753
|
},
|
|
735
754
|
d(c) {
|
|
736
|
-
c && N(t), o && o.d(c), e[10](null), c &&
|
|
755
|
+
c && N(t), o && o.d(c), e[10](null), c && s && s.end(), e[11](null);
|
|
737
756
|
}
|
|
738
757
|
};
|
|
739
758
|
}
|
|
@@ -746,36 +765,36 @@ function fe(e) {
|
|
|
746
765
|
c() {
|
|
747
766
|
i && i.c(), t = Bt();
|
|
748
767
|
},
|
|
749
|
-
m(
|
|
750
|
-
i && i.m(
|
|
768
|
+
m(s, r) {
|
|
769
|
+
i && i.m(s, r), Z(s, t, r), n = !0;
|
|
751
770
|
},
|
|
752
|
-
p(
|
|
771
|
+
p(s, [r]) {
|
|
753
772
|
/*show*/
|
|
754
|
-
|
|
755
|
-
1 && L(i, 1)) : (i = ut(
|
|
773
|
+
s[0] ? i ? (i.p(s, r), r & /*show*/
|
|
774
|
+
1 && L(i, 1)) : (i = ut(s), i.c(), L(i, 1), i.m(t.parentNode, t)) : i && (Qt(), K(i, 1, 1, () => {
|
|
756
775
|
i = null;
|
|
757
776
|
}), Xt());
|
|
758
777
|
},
|
|
759
|
-
i(
|
|
778
|
+
i(s) {
|
|
760
779
|
n || (L(i), n = !0);
|
|
761
780
|
},
|
|
762
|
-
o(
|
|
781
|
+
o(s) {
|
|
763
782
|
K(i), n = !1;
|
|
764
783
|
},
|
|
765
|
-
d(
|
|
766
|
-
|
|
784
|
+
d(s) {
|
|
785
|
+
s && N(t), i && i.d(s);
|
|
767
786
|
}
|
|
768
787
|
};
|
|
769
788
|
}
|
|
770
789
|
function ae(e, t, n) {
|
|
771
|
-
let { $$slots: i = {}, $$scope:
|
|
790
|
+
let { $$slots: i = {}, $$scope: s } = t, { show: r = !1 } = t, { duration: l = 350 } = t, { clientstyling: o = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: u } = t, { showmodaleventname: h = "ShowLimitsConfirmationModal" } = t, a, $;
|
|
772
791
|
const g = (f) => {
|
|
773
792
|
switch (f.data.type) {
|
|
774
793
|
case "ModalClosed":
|
|
775
|
-
n(0,
|
|
794
|
+
n(0, r = !1);
|
|
776
795
|
break;
|
|
777
796
|
case h:
|
|
778
|
-
n(0,
|
|
797
|
+
n(0, r = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
|
|
779
798
|
break;
|
|
780
799
|
}
|
|
781
800
|
};
|
|
@@ -793,14 +812,14 @@ function ae(e, t, n) {
|
|
|
793
812
|
});
|
|
794
813
|
}
|
|
795
814
|
return e.$$set = (f) => {
|
|
796
|
-
"show" in f && n(0,
|
|
815
|
+
"show" in f && n(0, r = f.show), "duration" in f && n(1, l = f.duration), "clientstyling" in f && n(4, o = f.clientstyling), "clientstylingurl" in f && n(5, c = f.clientstylingurl), "mbsource" in f && n(6, u = f.mbsource), "showmodaleventname" in f && n(7, h = f.showmodaleventname), "$$scope" in f && n(8, s = f.$$scope);
|
|
797
816
|
}, e.$$.update = () => {
|
|
798
817
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
799
818
|
20 && o && a && oe(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
800
819
|
36 && c && a && ce(a, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
801
820
|
68 && u && a && le(a, `${u}.Style`);
|
|
802
821
|
}, [
|
|
803
|
-
|
|
822
|
+
r,
|
|
804
823
|
l,
|
|
805
824
|
a,
|
|
806
825
|
$,
|
|
@@ -808,7 +827,7 @@ function ae(e, t, n) {
|
|
|
808
827
|
c,
|
|
809
828
|
u,
|
|
810
829
|
h,
|
|
811
|
-
|
|
830
|
+
s,
|
|
812
831
|
i,
|
|
813
832
|
d,
|
|
814
833
|
_
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountModal-BzpJ3wWu.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-DgdFPk4n.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-modal") && customElements.define("player-account-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var pt=Object.defineProperty,wt=Object.defineProperties;var bt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&J(e,n,t[n]);if(tt)for(var n of tt(t))Et.call(t,n)&&J(e,n,t[n]);return e},nt=(e,t)=>wt(e,bt(t));var m=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n);var it=(e,t,n)=>new Promise((i,r)=>{var s=c=>{try{o(n.next(c))}catch(u){r(u)}},l=c=>{try{o(n.throw(c))}catch(u){r(u)}},o=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function O(){}const ft=e=>e;function vt(e,t){for(const n in t)e[n]=t[n];return e}function at(e){return e()}function st(){return Object.create(null)}function M(e){e.forEach(at)}function Q(e){return typeof e=="function"}function Ct(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Mt(e){return Object.keys(e).length===0}function St(e,t,n,i){if(e){const r=dt(e,t,n,i);return e[0](r)}}function dt(e,t,n,i){return e[1]&&i?vt(n.ctx.slice(),e[1](i(t))):n.ctx}function kt(e,t,n,i){return e[2],t.dirty}function Lt(e,t,n,i,r,s){if(r){const l=dt(t,n,i,s);e.p(l,r)}}function Ot(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const ht=typeof window!="undefined";let jt=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):O;const E=new Set;function $t(e){E.forEach(t=>{t.c(e)||(E.delete(t),t.f())}),E.size!==0&&X($t)}function At(e){let t;return E.size===0&&X($t),{promise:new Promise(n=>{E.add(t={c:e,f:n})}),abort(){E.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=v("style");r.id=t,r.textContent=n,_t(i,r)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pt(e){const t=v("style");return t.textContent="/* empty */",_t(Y(e),t),t.sheet}function _t(e,t){return q(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function Bt(e){return document.createTextNode(e)}function Rt(){return Bt("")}function B(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}function Dt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ht(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let H=0;function zt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ut(e,t){const n={stylesheet:Pt(t),rules:{}};return D.set(e,n),n}function rt(e,t,n,i,r,s,l,o=0){const c=16.666/i;let u=`{
|
|
2
|
-
`;for(let f=0;f<=1;f+=c){const w=t+(n-t)*s(f);u+=f*100+`%{${l(w,1-w)}}
|
|
3
|
-
`}const h=u+`100% {${l(n,1-n)}}
|
|
4
|
-
}`,a=`__svelte_${zt(h)}_${o}`,$=Y(e),{stylesheet:g,rules:d}=D.get($)||Ut($,e);d[a]||(d[a]=!0,g.insertRule(`@keyframes ${a} ${h}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${a} ${i}ms linear ${r}ms 1 both`,H+=1,a}function Ft(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),H-=r,H||It())}function It(){X(()=>{H||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&N(t)}),D.clear())})}let j;function k(e){j=e}function Jt(){if(!j)throw new Error("Function called outside component initialization");return j}function Vt(e){Jt().$$.on_mount.push(e)}const x=[],z=[];let C=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(p))}function A(e){C.push(e)}const V=new Set;let b=0;function p(){if(b!==0)return;const e=j;do{try{for(;b<x.length;){const t=x[b];b++,k(t),Gt(t.$$)}}catch(t){throw x.length=0,b=0,t}for(k(null),x.length=0,b=0;z.length;)z.pop()();for(let t=0;t<C.length;t+=1){const n=C[t];V.has(n)||(V.add(n),n())}C.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),k(e)}function Gt(e){if(e.fragment!==null){e.update(),M(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}function Kt(e){const t=[],n=[];C.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),C=t}let S;function Qt(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const R=new Set;let y;function Xt(){y={r:0,c:[],p:y}}function Yt(){y.r||M(y.c),y=y.p}function L(e,t){e&&e.i&&(R.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(R.has(e))return;R.add(e),y.c.push(()=>{R.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function ct(e,t,n,i){let s=t(e,n,{direction:"both"}),l=i?0:1,o=null,c=null,u=null,h;function a(){u&&Ft(e,u)}function $(d,_){const f=d.b-l;return _*=Math.abs(f),{a:l,b:d.b,d:f,duration:_,start:d.start,end:d.start+_,group:d.group}}function g(d){const{delay:_=0,duration:f=300,easing:w=ft,tick:U=O,css:F}=s||Zt,I={start:jt()+_,b:d};d||(I.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=I:(F&&(a(),u=rt(e,l,d,f,_,w,F)),d&&U(0,1),o=$(I,f),A(()=>W(e,d,"start")),At(P=>{if(c&&P>c.start&&(o=$(c,f),c=null,W(e,o.b,"start"),F&&(a(),u=rt(e,l,o.b,o.duration,0,w,s.css))),o){if(P>=o.end)U(l=o.b,1-l),W(e,o.b,"end"),c||(o.b?a():--o.group.r||M(o.group.c)),o=null;else if(P>=o.start){const yt=P-o.start;l=o.a+o.d*w(yt/o.duration),U(l,1-l)}}return!!(o||c)}))}return{run(d){Q(s)?Qt().then(()=>{s=s({direction:d?"in":"out"}),g(d)}):g(d)},end(){a(),o=c=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),A(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):M(s),e.$$.on_mount=[]}),r.forEach(A)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),M(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){e.$$.dirty[0]===-1&&(x.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,s,l=null,o=[-1]){const c=j;k(e);const u=e.$$={fragment:null,ctx:[],props:s,update:O,not_equal:r,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(a,$,...g)=>{const d=g.length?g[0]:$;return u.ctx&&r(u.ctx[a],u.ctx[a]=d)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](d),h&&ne(e,a)),$}):[],u.update(),h=!0,M(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const a=Tt(t.target);u.fragment&&u.fragment.l(a),a.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),p()}k(c)}let mt;typeof HTMLElement=="function"&&(mt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=v("slot"),s!=="default"&&B(l,"name",s)},m:function(u,h){Z(u,l,h)},d:function(u){u&&N(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ht(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=T(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=T(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=T(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function T(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function se(e,t,n,i,r,s){let l=class extends mt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var u;c=T(o,c,t),this.$$d[o]=c,(u=this.$$c)==null||u.$set({[o]:c})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=l,l}class re{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){ee(this,1),this.$destroy=O}$on(t,n){if(!Q(n))return O;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!Mt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oe);function lt(e,{delay:t=0,duration:n=400,easing:i=ft}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function ce(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ue(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}function fe(e){Nt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ut(e){let t,n,i,r,s;const l=e[9].default,o=St(l,e,e[8],null);return{c(){t=v("div"),n=v("div"),i=v("div"),o&&o.c(),B(i,"class","ModalContainer"),B(n,"class","ModalWindow"),B(n,"id","Modal")},m(c,u){Z(c,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[10](n),e[11](t),s=!0},p(c,u){e=c,o&&o.p&&(!s||u&256)&&Lt(o,l,e,e[8],s?kt(l,e[8],u,null):Ot(e[8]),null)},i(c){s||(L(o,c),c&&A(()=>{s&&(r||(r=ct(n,lt,{transitionDuration:e[1]},!0)),r.run(1))}),s=!0)},o(c){K(o,c),c&&(r||(r=ct(n,lt,{transitionDuration:e[1]},!1)),r.run(0)),s=!1},d(c){c&&N(t),o&&o.d(c),e[10](null),c&&r&&r.end(),e[11](null)}}}function ae(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Rt()},m(r,s){i&&i.m(r,s),Z(r,t,s),n=!0},p(r,[s]){r[0]?i?(i.p(r,s),s&1&&L(i,1)):(i=ut(r),i.c(),L(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(r){n||(L(i),n=!0)},o(r){K(i),n=!1},d(r){r&&N(t),i&&i.d(r)}}}function de(e,t,n){let{$$slots:i={},$$scope:r}=t,{show:s=!1}=t,{duration:l=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:u}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,a,$;const g=f=>{switch(f.data.type){case"ModalClosed":n(0,s=!1);break;case h:n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Vt(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function d(f){z[f?"unshift":"push"](()=>{$=f,n(3,$)})}function _(f){z[f?"unshift":"push"](()=>{a=f,n(2,a)})}return e.$$set=f=>{"show"in f&&n(0,s=f.show),"duration"in f&&n(1,l=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,c=f.clientstylingurl),"mbsource"in f&&n(6,u=f.mbsource),"showmodaleventname"in f&&n(7,h=f.showmodaleventname),"$$scope"in f&&n(8,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&a&&ce(a,o),e.$$.dirty&36&&c&&a&&le(a,c),e.$$.dirty&68&&u&&a&&ue(a,`${u}.Style`)},[s,l,a,$,o,c,u,h,r,i,d,_]}class gt extends re{constructor(t){super(),ie(this,t,de,ae,Ct,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},fe)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),p()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),p()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),p()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=gt;
|