@everymatrix/player-account-modal 1.45.0 → 1.45.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.
@@ -1,16 +1,16 @@
1
- var gt = Object.defineProperty, pt = Object.defineProperties;
1
+ var yt = Object.defineProperty, pt = Object.defineProperties;
2
2
  var bt = Object.getOwnPropertyDescriptors;
3
3
  var tt = Object.getOwnPropertySymbols;
4
4
  var wt = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable;
5
- var U = (e, t, n) => t in e ? gt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, et = (e, t) => {
5
+ var J = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, et = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- wt.call(t, n) && U(e, n, t[n]);
7
+ wt.call(t, n) && J(e, n, t[n]);
8
8
  if (tt)
9
9
  for (var n of tt(t))
10
- xt.call(t, n) && U(e, n, t[n]);
10
+ xt.call(t, n) && J(e, n, t[n]);
11
11
  return e;
12
12
  }, nt = (e, t) => pt(e, bt(t));
13
- var _ = (e, t, n) => U(e, typeof t != "symbol" ? t + "" : t, n);
13
+ var _ = (e, t, n) => J(e, typeof t != "symbol" ? t + "" : t, n);
14
14
  var it = (e, t, n) => new Promise((i, r) => {
15
15
  var s = (l) => {
16
16
  try {
@@ -27,10 +27,10 @@ var it = (e, t, n) => new Promise((i, r) => {
27
27
  }, o = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(s, c);
28
28
  o((n = n.apply(e, t)).next());
29
29
  });
30
- function A() {
30
+ function v() {
31
31
  }
32
32
  const ft = (e) => e;
33
- function jt(e, t) {
33
+ function Et(e, t) {
34
34
  for (const n in t) e[n] = t[n];
35
35
  return (
36
36
  /** @type {T & S} */
@@ -43,28 +43,28 @@ function at(e) {
43
43
  function st() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function k(e) {
46
+ function j(e) {
47
47
  e.forEach(at);
48
48
  }
49
49
  function Q(e) {
50
50
  return typeof e == "function";
51
51
  }
52
- function Et(e, t) {
52
+ function Ct(e, t) {
53
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
54
  }
55
- function Ct(e) {
55
+ function kt(e) {
56
56
  return Object.keys(e).length === 0;
57
57
  }
58
- function vt(e, t, n, i) {
58
+ function Mt(e, t, n, i) {
59
59
  if (e) {
60
60
  const r = dt(e, t, n, i);
61
61
  return e[0](r);
62
62
  }
63
63
  }
64
64
  function dt(e, t, n, i) {
65
- return e[1] && i ? jt(n.ctx.slice(), e[1](i(t))) : n.ctx;
65
+ return e[1] && i ? Et(n.ctx.slice(), e[1](i(t))) : n.ctx;
66
66
  }
67
- function kt(e, t, n, i) {
67
+ function jt(e, t, n, i) {
68
68
  if (e[2] && i) {
69
69
  const r = e[2](i(n));
70
70
  if (t.dirty === void 0)
@@ -79,13 +79,13 @@ function kt(e, t, n, i) {
79
79
  }
80
80
  return t.dirty;
81
81
  }
82
- function Mt(e, t, n, i, r, s) {
82
+ function Lt(e, t, n, i, r, s) {
83
83
  if (r) {
84
84
  const c = dt(t, n, i, s);
85
85
  e.p(c, r);
86
86
  }
87
87
  }
88
- function Lt(e) {
88
+ function Ot(e) {
89
89
  if (e.ctx.length > 32) {
90
90
  const t = [], n = e.ctx.length / 32;
91
91
  for (let i = 0; i < n; i++)
@@ -95,31 +95,31 @@ function Lt(e) {
95
95
  return -1;
96
96
  }
97
97
  const ht = typeof window != "undefined";
98
- let Ot = ht ? () => window.performance.now() : () => Date.now(), X = ht ? (e) => requestAnimationFrame(e) : A;
99
- const E = /* @__PURE__ */ new Set();
98
+ let St = ht ? () => window.performance.now() : () => Date.now(), X = ht ? (e) => requestAnimationFrame(e) : v;
99
+ const C = /* @__PURE__ */ new Set();
100
100
  function $t(e) {
101
- E.forEach((t) => {
102
- t.c(e) || (E.delete(t), t.f());
103
- }), E.size !== 0 && X($t);
101
+ C.forEach((t) => {
102
+ t.c(e) || (C.delete(t), t.f());
103
+ }), C.size !== 0 && X($t);
104
104
  }
105
- function St(e) {
105
+ function vt(e) {
106
106
  let t;
107
- return E.size === 0 && X($t), {
107
+ return C.size === 0 && X($t), {
108
108
  promise: new Promise((n) => {
109
- E.add(t = { c: e, f: n });
109
+ C.add(t = { c: e, f: n });
110
110
  }),
111
111
  abort() {
112
- E.delete(t);
112
+ C.delete(t);
113
113
  }
114
114
  };
115
115
  }
116
- function W(e, t) {
116
+ function q(e, t) {
117
117
  e.appendChild(t);
118
118
  }
119
119
  function At(e, t, n) {
120
120
  const i = Y(e);
121
121
  if (!i.getElementById(t)) {
122
- const r = C("style");
122
+ const r = k("style");
123
123
  r.id = t, r.textContent = n, _t(i, r);
124
124
  }
125
125
  }
@@ -133,11 +133,11 @@ function Y(e) {
133
133
  ) : e.ownerDocument;
134
134
  }
135
135
  function Nt(e) {
136
- const t = C("style");
136
+ const t = k("style");
137
137
  return t.textContent = "/* empty */", _t(Y(e), t), t.sheet;
138
138
  }
139
139
  function _t(e, t) {
140
- return W(
140
+ return q(
141
141
  /** @type {Document} */
142
142
  e.head || e,
143
143
  t
@@ -146,28 +146,28 @@ function _t(e, t) {
146
146
  function Z(e, t, n) {
147
147
  e.insertBefore(t, n || null);
148
148
  }
149
- function q(e) {
149
+ function P(e) {
150
150
  e.parentNode && e.parentNode.removeChild(e);
151
151
  }
152
- function C(e) {
152
+ function k(e) {
153
153
  return document.createElement(e);
154
154
  }
155
155
  function Pt(e) {
156
156
  return document.createTextNode(e);
157
157
  }
158
- function qt() {
158
+ function Rt() {
159
159
  return Pt("");
160
160
  }
161
- function L(e, t, n) {
161
+ function B(e, t, n) {
162
162
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
163
163
  }
164
- function Rt(e) {
164
+ function Bt(e) {
165
165
  return Array.from(e.childNodes);
166
166
  }
167
- function Bt(e, t, { bubbles: n = !1, cancelable: i = !1 } = {}) {
167
+ function Dt(e, t, { bubbles: n = !1, cancelable: i = !1 } = {}) {
168
168
  return new CustomEvent(e, { detail: t, bubbles: n, cancelable: i });
169
169
  }
170
- function Dt(e) {
170
+ function Tt(e) {
171
171
  const t = {};
172
172
  return e.childNodes.forEach(
173
173
  /** @param {Element} node */
@@ -176,115 +176,115 @@ function Dt(e) {
176
176
  }
177
177
  ), t;
178
178
  }
179
- const T = /* @__PURE__ */ new Map();
180
- let z = 0;
181
- function Tt(e) {
179
+ const z = /* @__PURE__ */ new Map();
180
+ let H = 0;
181
+ function zt(e) {
182
182
  let t = 5381, n = e.length;
183
183
  for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
184
184
  return t >>> 0;
185
185
  }
186
- function zt(e, t) {
186
+ function Ht(e, t) {
187
187
  const n = { stylesheet: Nt(t), rules: {} };
188
- return T.set(e, n), n;
188
+ return z.set(e, n), n;
189
189
  }
190
190
  function rt(e, t, n, i, r, s, c, o = 0) {
191
191
  const l = 16.666 / i;
192
192
  let u = `{
193
193
  `;
194
194
  for (let f = 0; f <= 1; f += l) {
195
- const g = t + (n - t) * s(f);
196
- u += f * 100 + `%{${c(g, 1 - g)}}
195
+ const y = t + (n - t) * s(f);
196
+ u += f * 100 + `%{${c(y, 1 - y)}}
197
197
  `;
198
198
  }
199
199
  const h = u + `100% {${c(n, 1 - n)}}
200
- }`, d = `__svelte_${Tt(h)}_${o}`, m = Y(e), { stylesheet: y, rules: a } = T.get(m) || zt(m, e);
201
- a[d] || (a[d] = !0, y.insertRule(`@keyframes ${d} ${h}`, y.cssRules.length));
200
+ }`, d = `__svelte_${zt(h)}_${o}`, g = Y(e), { stylesheet: m, rules: a } = z.get(g) || Ht(g, e);
201
+ a[d] || (a[d] = !0, m.insertRule(`@keyframes ${d} ${h}`, m.cssRules.length));
202
202
  const $ = e.style.animation || "";
203
- return e.style.animation = `${$ ? `${$}, ` : ""}${d} ${i}ms linear ${r}ms 1 both`, z += 1, d;
203
+ return e.style.animation = `${$ ? `${$}, ` : ""}${d} ${i}ms linear ${r}ms 1 both`, H += 1, d;
204
204
  }
205
- function Ht(e, t) {
205
+ function Ft(e, t) {
206
206
  const n = (e.style.animation || "").split(", "), i = n.filter(
207
207
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
208
208
  // remove all Svelte animations
209
209
  ), r = n.length - i.length;
210
- r && (e.style.animation = i.join(", "), z -= r, z || Ft());
210
+ r && (e.style.animation = i.join(", "), H -= r, H || It());
211
211
  }
212
- function Ft() {
212
+ function It() {
213
213
  X(() => {
214
- z || (T.forEach((e) => {
214
+ H || (z.forEach((e) => {
215
215
  const { ownerNode: t } = e.stylesheet;
216
- t && q(t);
217
- }), T.clear());
216
+ t && P(t);
217
+ }), z.clear());
218
218
  });
219
219
  }
220
- let N;
220
+ let A;
221
221
  function O(e) {
222
- N = e;
222
+ A = e;
223
223
  }
224
- function It() {
225
- if (!N) throw new Error("Function called outside component initialization");
226
- return N;
224
+ function Ut() {
225
+ if (!A) throw new Error("Function called outside component initialization");
226
+ return A;
227
227
  }
228
- function Ut(e) {
229
- It().$$.on_mount.push(e);
228
+ function Jt(e) {
229
+ Ut().$$.on_mount.push(e);
230
230
  }
231
- const x = [], H = [];
232
- let v = [];
233
- const ot = [], Jt = /* @__PURE__ */ Promise.resolve();
231
+ const x = [], F = [];
232
+ let M = [];
233
+ const ot = [], Vt = /* @__PURE__ */ Promise.resolve();
234
234
  let G = !1;
235
- function Vt() {
236
- G || (G = !0, Jt.then(j));
235
+ function Wt() {
236
+ G || (G = !0, Vt.then(E));
237
237
  }
238
- function P(e) {
239
- v.push(e);
238
+ function N(e) {
239
+ M.push(e);
240
240
  }
241
- const J = /* @__PURE__ */ new Set();
241
+ const V = /* @__PURE__ */ new Set();
242
242
  let w = 0;
243
- function j() {
243
+ function E() {
244
244
  if (w !== 0)
245
245
  return;
246
- const e = N;
246
+ const e = A;
247
247
  do {
248
248
  try {
249
249
  for (; w < x.length; ) {
250
250
  const t = x[w];
251
- w++, O(t), Wt(t.$$);
251
+ w++, O(t), qt(t.$$);
252
252
  }
253
253
  } catch (t) {
254
254
  throw x.length = 0, w = 0, t;
255
255
  }
256
- for (O(null), x.length = 0, w = 0; H.length; ) H.pop()();
257
- for (let t = 0; t < v.length; t += 1) {
258
- const n = v[t];
259
- J.has(n) || (J.add(n), n());
256
+ for (O(null), x.length = 0, w = 0; F.length; ) F.pop()();
257
+ for (let t = 0; t < M.length; t += 1) {
258
+ const n = M[t];
259
+ V.has(n) || (V.add(n), n());
260
260
  }
261
- v.length = 0;
261
+ M.length = 0;
262
262
  } while (x.length);
263
263
  for (; ot.length; )
264
264
  ot.pop()();
265
- G = !1, J.clear(), O(e);
265
+ G = !1, V.clear(), O(e);
266
266
  }
267
- function Wt(e) {
267
+ function qt(e) {
268
268
  if (e.fragment !== null) {
269
- e.update(), k(e.before_update);
269
+ e.update(), j(e.before_update);
270
270
  const t = e.dirty;
271
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(P);
271
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(N);
272
272
  }
273
273
  }
274
274
  function Gt(e) {
275
275
  const t = [], n = [];
276
- v.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), v = t;
276
+ M.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), M = t;
277
277
  }
278
- let M;
278
+ let L;
279
279
  function Kt() {
280
- return M || (M = Promise.resolve(), M.then(() => {
281
- M = null;
282
- })), M;
280
+ return L || (L = Promise.resolve(), L.then(() => {
281
+ L = null;
282
+ })), L;
283
283
  }
284
- function V(e, t, n) {
285
- e.dispatchEvent(Bt(`${t ? "intro" : "outro"}${n}`));
284
+ function W(e, t, n) {
285
+ e.dispatchEvent(Dt(`${t ? "intro" : "outro"}${n}`));
286
286
  }
287
- const B = /* @__PURE__ */ new Set();
287
+ const D = /* @__PURE__ */ new Set();
288
288
  let p;
289
289
  function Qt() {
290
290
  p = {
@@ -295,16 +295,16 @@ function Qt() {
295
295
  };
296
296
  }
297
297
  function Xt() {
298
- p.r || k(p.c), p = p.p;
298
+ p.r || j(p.c), p = p.p;
299
299
  }
300
300
  function S(e, t) {
301
- e && e.i && (B.delete(e), e.i(t));
301
+ e && e.i && (D.delete(e), e.i(t));
302
302
  }
303
303
  function K(e, t, n, i) {
304
304
  if (e && e.o) {
305
- if (B.has(e)) return;
306
- B.add(e), p.c.push(() => {
307
- B.delete(e), i && (n && e.d(1), i());
305
+ if (D.has(e)) return;
306
+ D.add(e), p.c.push(() => {
307
+ D.delete(e), i && (n && e.d(1), i());
308
308
  }), e.o(t);
309
309
  } else i && i();
310
310
  }
@@ -312,9 +312,9 @@ const Yt = { duration: 0 };
312
312
  function lt(e, t, n, i) {
313
313
  let s = t(e, n, { direction: "both" }), c = i ? 0 : 1, o = null, l = null, u = null, h;
314
314
  function d() {
315
- u && Ht(e, u);
315
+ u && Ft(e, u);
316
316
  }
317
- function m(a, $) {
317
+ function g(a, $) {
318
318
  const f = (
319
319
  /** @type {Program['d']} */
320
320
  a.b - c
@@ -329,33 +329,33 @@ function lt(e, t, n, i) {
329
329
  group: a.group
330
330
  };
331
331
  }
332
- function y(a) {
332
+ function m(a) {
333
333
  const {
334
334
  delay: $ = 0,
335
335
  duration: f = 300,
336
- easing: g = ft,
337
- tick: b = A,
338
- css: F
339
- } = s || Yt, I = {
340
- start: Ot() + $,
336
+ easing: y = ft,
337
+ tick: b = v,
338
+ css: I
339
+ } = s || Yt, U = {
340
+ start: St() + $,
341
341
  b: a
342
342
  };
343
- a || (I.group = p, p.r += 1), "inert" in e && (a ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
344
- e.inert, e.inert = !0)), o || l ? l = I : (F && (d(), u = rt(e, c, a, f, $, g, F)), a && b(0, 1), o = m(I, f), P(() => V(e, a, "start")), St((R) => {
345
- if (l && R > l.start && (o = m(l, f), l = null, V(e, o.b, "start"), F && (d(), u = rt(
343
+ a || (U.group = p, p.r += 1), "inert" in e && (a ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
344
+ e.inert, e.inert = !0)), o || l ? l = U : (I && (d(), u = rt(e, c, a, f, $, y, I)), a && b(0, 1), o = g(U, f), N(() => W(e, a, "start")), vt((R) => {
345
+ if (l && R > l.start && (o = g(l, f), l = null, W(e, o.b, "start"), I && (d(), u = rt(
346
346
  e,
347
347
  c,
348
348
  o.b,
349
349
  o.duration,
350
350
  0,
351
- g,
351
+ y,
352
352
  s.css
353
353
  ))), o) {
354
354
  if (R >= o.end)
355
- b(c = o.b, 1 - c), V(e, o.b, "end"), l || (o.b ? d() : --o.group.r || k(o.group.c)), o = null;
355
+ b(c = o.b, 1 - c), W(e, o.b, "end"), l || (o.b ? d() : --o.group.r || j(o.group.c)), o = null;
356
356
  else if (R >= o.start) {
357
- const yt = R - o.start;
358
- c = o.a + o.d * g(yt / o.duration), b(c, 1 - c);
357
+ const mt = R - o.start;
358
+ c = o.a + o.d * y(mt / o.duration), b(c, 1 - c);
359
359
  }
360
360
  }
361
361
  return !!(o || l);
@@ -364,8 +364,8 @@ function lt(e, t, n, i) {
364
364
  return {
365
365
  run(a) {
366
366
  Q(s) ? Kt().then(() => {
367
- s = s({ direction: a ? "in" : "out" }), y(a);
368
- }) : y(a);
367
+ s = s({ direction: a ? "in" : "out" }), m(a);
368
+ }) : m(a);
369
369
  },
370
370
  end() {
371
371
  d(), o = l = null;
@@ -374,27 +374,27 @@ function lt(e, t, n, i) {
374
374
  }
375
375
  function Zt(e, t, n) {
376
376
  const { fragment: i, after_update: r } = e.$$;
377
- i && i.m(t, n), P(() => {
377
+ i && i.m(t, n), N(() => {
378
378
  const s = e.$$.on_mount.map(at).filter(Q);
379
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : k(s), e.$$.on_mount = [];
380
- }), r.forEach(P);
379
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : j(s), e.$$.on_mount = [];
380
+ }), r.forEach(N);
381
381
  }
382
382
  function te(e, t) {
383
383
  const n = e.$$;
384
- 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 = []);
384
+ n.fragment !== null && (Gt(n.after_update), j(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
385
385
  }
386
386
  function ee(e, t) {
387
- e.$$.dirty[0] === -1 && (x.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
387
+ e.$$.dirty[0] === -1 && (x.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
388
388
  }
389
389
  function ne(e, t, n, i, r, s, c = null, o = [-1]) {
390
- const l = N;
390
+ const l = A;
391
391
  O(e);
392
392
  const u = e.$$ = {
393
393
  fragment: null,
394
394
  ctx: [],
395
395
  // state
396
396
  props: s,
397
- update: A,
397
+ update: v,
398
398
  not_equal: r,
399
399
  bound: st(),
400
400
  // lifecycle
@@ -412,21 +412,21 @@ function ne(e, t, n, i, r, s, c = null, o = [-1]) {
412
412
  };
413
413
  c && c(u.root);
414
414
  let h = !1;
415
- if (u.ctx = n ? n(e, t.props || {}, (d, m, ...y) => {
416
- const a = y.length ? y[0] : m;
417
- return u.ctx && r(u.ctx[d], u.ctx[d] = a) && (!u.skip_bound && u.bound[d] && u.bound[d](a), h && ee(e, d)), m;
418
- }) : [], u.update(), h = !0, k(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
415
+ if (u.ctx = n ? n(e, t.props || {}, (d, g, ...m) => {
416
+ const a = m.length ? m[0] : g;
417
+ return u.ctx && r(u.ctx[d], u.ctx[d] = a) && (!u.skip_bound && u.bound[d] && u.bound[d](a), h && ee(e, d)), g;
418
+ }) : [], u.update(), h = !0, j(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
419
419
  if (t.hydrate) {
420
- const d = Rt(t.target);
421
- u.fragment && u.fragment.l(d), d.forEach(q);
420
+ const d = Bt(t.target);
421
+ u.fragment && u.fragment.l(d), d.forEach(P);
422
422
  } else
423
423
  u.fragment && u.fragment.c();
424
- t.intro && S(e.$$.fragment), Zt(e, t.target, t.anchor), j();
424
+ t.intro && S(e.$$.fragment), Zt(e, t.target, t.anchor), E();
425
425
  }
426
426
  O(l);
427
427
  }
428
- let mt;
429
- typeof HTMLElement == "function" && (mt = class extends HTMLElement {
428
+ let gt;
429
+ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
430
430
  constructor(t, n, i) {
431
431
  super();
432
432
  /** The Svelte component constructor */
@@ -470,7 +470,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
470
470
  let c;
471
471
  return {
472
472
  c: function() {
473
- c = C("slot"), s !== "default" && L(c, "name", s);
473
+ c = k("slot"), s !== "default" && B(c, "name", s);
474
474
  },
475
475
  /**
476
476
  * @param {HTMLElement} target
@@ -480,19 +480,19 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
480
480
  Z(u, c, h);
481
481
  },
482
482
  d: function(u) {
483
- u && q(c);
483
+ u && P(c);
484
484
  }
485
485
  };
486
486
  };
487
487
  };
488
488
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
489
489
  return;
490
- const n = {}, i = Dt(this);
490
+ const n = {}, i = Tt(this);
491
491
  for (const s of this.$$s)
492
492
  s in i && (n[s] = [t(s)]);
493
493
  for (const s of this.attributes) {
494
494
  const c = this.$$g_p(s.name);
495
- c in this.$$d || (this.$$d[c] = D(c, s.value, this.$$p_d, "toProp"));
495
+ c in this.$$d || (this.$$d[c] = T(c, s.value, this.$$p_d, "toProp"));
496
496
  }
497
497
  for (const s in this.$$p_d)
498
498
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -509,7 +509,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
509
509
  this.$$r = !0;
510
510
  for (const s in this.$$p_d)
511
511
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
512
- const c = D(
512
+ const c = T(
513
513
  s,
514
514
  this.$$d[s],
515
515
  this.$$p_d,
@@ -533,7 +533,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
533
533
  // and setting attributes through setAttribute etc, this is helpful
534
534
  attributeChangedCallback(t, n, i) {
535
535
  var r;
536
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = D(t, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
536
+ 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] }));
537
537
  }
538
538
  disconnectedCallback() {
539
539
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -546,7 +546,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
546
546
  ) || t;
547
547
  }
548
548
  });
549
- function D(e, t, n, i) {
549
+ function T(e, t, n, i) {
550
550
  var s;
551
551
  const r = (s = n[e]) == null ? void 0 : s.type;
552
552
  if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
@@ -577,7 +577,7 @@ function D(e, t, n, i) {
577
577
  }
578
578
  }
579
579
  function ie(e, t, n, i, r, s) {
580
- let c = class extends mt {
580
+ let c = class extends gt {
581
581
  constructor() {
582
582
  super(e, n, r), this.$$p_d = t;
583
583
  }
@@ -594,7 +594,7 @@ function ie(e, t, n, i, r, s) {
594
594
  },
595
595
  set(l) {
596
596
  var u;
597
- l = D(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
597
+ l = T(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
598
598
  }
599
599
  });
600
600
  }), i.forEach((o) => {
@@ -628,7 +628,7 @@ class se {
628
628
  }
629
629
  /** @returns {void} */
630
630
  $destroy() {
631
- te(this, 1), this.$destroy = A;
631
+ te(this, 1), this.$destroy = v;
632
632
  }
633
633
  /**
634
634
  * @template {Extract<keyof Events, string>} K
@@ -638,7 +638,7 @@ class se {
638
638
  */
639
639
  $on(t, n) {
640
640
  if (!Q(n))
641
- return A;
641
+ return v;
642
642
  const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
643
643
  return i.push(n), () => {
644
644
  const r = i.indexOf(n);
@@ -650,7 +650,7 @@ class se {
650
650
  * @returns {void}
651
651
  */
652
652
  $set(t) {
653
- this.$$set && !Ct(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
653
+ this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
654
654
  }
655
655
  }
656
656
  const re = "4";
@@ -665,14 +665,14 @@ function ct(e, { delay: t = 0, duration: n = 400, easing: i = ft } = {}) {
665
665
  };
666
666
  }
667
667
  function oe(e) {
668
- At(e, "svelte-jyjq1x", ".svelte-jyjq1x,.svelte-jyjq1x::before,.svelte-jyjq1x::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-jyjq1x{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
668
+ 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}");
669
669
  }
670
670
  function ut(e) {
671
671
  let t, n, i, r, s;
672
672
  const c = (
673
673
  /*#slots*/
674
674
  e[7].default
675
- ), o = vt(
675
+ ), o = Mt(
676
676
  c,
677
677
  e,
678
678
  /*$$scope*/
@@ -681,26 +681,26 @@ function ut(e) {
681
681
  );
682
682
  return {
683
683
  c() {
684
- t = C("div"), n = C("div"), i = C("div"), o && o.c(), L(i, "class", "ModalContainer svelte-jyjq1x"), L(n, "class", "ModalWindow svelte-jyjq1x"), L(n, "id", "Modal"), L(t, "class", "svelte-jyjq1x");
684
+ t = k("div"), n = k("div"), i = k("div"), o && o.c(), B(i, "class", "ModalContainer"), B(n, "class", "ModalWindow"), B(n, "id", "Modal");
685
685
  },
686
686
  m(l, u) {
687
- Z(l, t, u), W(t, n), W(n, i), o && o.m(i, null), e[8](n), e[9](t), s = !0;
687
+ Z(l, t, u), q(t, n), q(n, i), o && o.m(i, null), e[8](n), e[9](t), s = !0;
688
688
  },
689
689
  p(l, u) {
690
690
  e = l, o && o.p && (!s || u & /*$$scope*/
691
- 64) && Mt(
691
+ 64) && Lt(
692
692
  o,
693
693
  c,
694
694
  e,
695
695
  /*$$scope*/
696
696
  e[6],
697
- s ? kt(
697
+ s ? jt(
698
698
  c,
699
699
  /*$$scope*/
700
700
  e[6],
701
701
  u,
702
702
  null
703
- ) : Lt(
703
+ ) : Ot(
704
704
  /*$$scope*/
705
705
  e[6]
706
706
  ),
@@ -708,7 +708,7 @@ function ut(e) {
708
708
  );
709
709
  },
710
710
  i(l) {
711
- s || (S(o, l), l && P(() => {
711
+ s || (S(o, l), l && N(() => {
712
712
  s && (r || (r = lt(n, ct, { transitionDuration: (
713
713
  /*duration*/
714
714
  e[1]
@@ -722,7 +722,7 @@ function ut(e) {
722
722
  ) }, !1)), r.run(0)), s = !1;
723
723
  },
724
724
  d(l) {
725
- l && q(t), o && o.d(l), e[8](null), l && r && r.end(), e[9](null);
725
+ l && P(t), o && o.d(l), e[8](null), l && r && r.end(), e[9](null);
726
726
  }
727
727
  };
728
728
  }
@@ -733,7 +733,7 @@ function le(e) {
733
733
  );
734
734
  return {
735
735
  c() {
736
- i && i.c(), t = qt();
736
+ i && i.c(), t = Rt();
737
737
  },
738
738
  m(r, s) {
739
739
  i && i.m(r, s), Z(r, t, s), n = !0;
@@ -752,7 +752,7 @@ function le(e) {
752
752
  K(i), n = !1;
753
753
  },
754
754
  d(r) {
755
- r && q(t), i && i.d(r);
755
+ r && P(t), i && i.d(r);
756
756
  }
757
757
  };
758
758
  }
@@ -760,30 +760,30 @@ function ce(e, t, n) {
760
760
  let { $$slots: i = {}, $$scope: r } = t, { show: s = !1 } = t, { duration: c = 350 } = t, { clientstyling: o = "" } = t, { clientstylingurl: l = "" } = t, u, h;
761
761
  const d = (f) => {
762
762
  f.data.type == "ModalClosed" && n(0, s = !1), f.data.type === "ShowLimitsConfirmationModal" && (n(0, s = !0), window.postMessage({ type: "DisableScroll" }, window.location.href));
763
- }, m = () => {
763
+ }, g = () => {
764
764
  let f = document.createElement("style");
765
765
  f.innerHTML = o, u.appendChild(f);
766
- }, y = () => {
767
- let f = new URL(l), g = document.createElement("style");
766
+ }, m = () => {
767
+ let f = new URL(l), y = document.createElement("style");
768
768
  fetch(f.href).then((b) => b.text()).then((b) => {
769
- g.innerHTML = b, setTimeout(
769
+ y.innerHTML = b, setTimeout(
770
770
  () => {
771
- u.appendChild(g);
771
+ u.appendChild(y);
772
772
  },
773
773
  1
774
774
  );
775
775
  });
776
776
  };
777
- Ut(() => (window.addEventListener("message", d, !1), () => {
777
+ Jt(() => (window.addEventListener("message", d, !1), () => {
778
778
  window.removeEventListener("message", d);
779
779
  }));
780
780
  function a(f) {
781
- H[f ? "unshift" : "push"](() => {
781
+ F[f ? "unshift" : "push"](() => {
782
782
  h = f, n(3, h);
783
783
  });
784
784
  }
785
785
  function $(f) {
786
- H[f ? "unshift" : "push"](() => {
786
+ F[f ? "unshift" : "push"](() => {
787
787
  u = f, n(2, u);
788
788
  });
789
789
  }
@@ -791,8 +791,8 @@ function ce(e, t, n) {
791
791
  "show" in f && n(0, s = f.show), "duration" in f && n(1, c = f.duration), "clientstyling" in f && n(4, o = f.clientstyling), "clientstylingurl" in f && n(5, l = f.clientstylingurl), "$$scope" in f && n(6, r = f.$$scope);
792
792
  }, e.$$.update = () => {
793
793
  e.$$.dirty & /*clientstylingurl, customStylingContainer*/
794
- 36 && l && u && y(), e.$$.dirty & /*clientstyling, customStylingContainer*/
795
- 20 && o && u && m();
794
+ 36 && l && u && m(), e.$$.dirty & /*clientstyling, customStylingContainer*/
795
+ 20 && o && u && g();
796
796
  }, [
797
797
  s,
798
798
  c,
@@ -813,7 +813,7 @@ class ue extends se {
813
813
  t,
814
814
  ce,
815
815
  le,
816
- Et,
816
+ Ct,
817
817
  {
818
818
  show: 0,
819
819
  duration: 1,
@@ -827,25 +827,25 @@ class ue extends se {
827
827
  return this.$$.ctx[0];
828
828
  }
829
829
  set show(t) {
830
- this.$$set({ show: t }), j();
830
+ this.$$set({ show: t }), E();
831
831
  }
832
832
  get duration() {
833
833
  return this.$$.ctx[1];
834
834
  }
835
835
  set duration(t) {
836
- this.$$set({ duration: t }), j();
836
+ this.$$set({ duration: t }), E();
837
837
  }
838
838
  get clientstyling() {
839
839
  return this.$$.ctx[4];
840
840
  }
841
841
  set clientstyling(t) {
842
- this.$$set({ clientstyling: t }), j();
842
+ this.$$set({ clientstyling: t }), E();
843
843
  }
844
844
  get clientstylingurl() {
845
845
  return this.$$.ctx[5];
846
846
  }
847
847
  set clientstylingurl(t) {
848
- this.$$set({ clientstylingurl: t }), j();
848
+ this.$$set({ clientstylingurl: t }), E();
849
849
  }
850
850
  }
851
851
  ie(ue, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {} }, ["default"], [], !0);
@@ -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 _=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n);var it=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{o(n.next(l))}catch(u){r(u)}},c=l=>{try{o(n.throw(l))}catch(u){r(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function L(){}const ft=e=>e;function Ct(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 S(e){e.forEach(at)}function Q(e){return typeof e=="function"}function Mt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function kt(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?Ct(n.ctx.slice(),e[1](i(t))):n.ctx}function jt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(t.dirty.length,r.length);for(let o=0;o<c;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function Ot(e,t,n,i,r,s){if(r){const c=dt(t,n,i,s);e.p(c,r)}}function vt(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 Lt=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):L;const C=new Set;function $t(e){C.forEach(t=>{t.c(e)||(C.delete(t),t.f())}),C.size!==0&&X($t)}function At(e){let t;return C.size===0&&X($t),{promise:new Promise(n=>{C.add(t={c:e,f:n})}),abort(){C.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=M("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=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 P(e){e.parentNode&&e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function Rt(e){return document.createTextNode(e)}function Bt(){return Rt("")}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 zt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const z=new Map;let H=0;function Ht(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ft(e,t){const n={stylesheet:Pt(t),rules:{}};return z.set(e,n),n}function rt(e,t,n,i,r,s,c,o=0){const l=16.666/i;let u=`{
2
+ `;for(let f=0;f<=1;f+=l){const y=t+(n-t)*s(f);u+=f*100+`%{${c(y,1-y)}}
3
+ `}const h=u+`100% {${c(n,1-n)}}
4
+ }`,d=`__svelte_${Ht(h)}_${o}`,g=Y(e),{stylesheet:m,rules:a}=z.get(g)||Ft(g,e);a[d]||(a[d]=!0,m.insertRule(`@keyframes ${d} ${h}`,m.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${d} ${i}ms linear ${r}ms 1 both`,H+=1,d}function It(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||Ut())}function Ut(){X(()=>{H||(z.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&P(t)}),z.clear())})}let A;function O(e){A=e}function Jt(){if(!A)throw new Error("Function called outside component initialization");return A}function Vt(e){Jt().$$.on_mount.push(e)}const x=[],F=[];let k=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(E))}function N(e){k.push(e)}const V=new Set;let w=0;function E(){if(w!==0)return;const e=A;do{try{for(;w<x.length;){const t=x[w];w++,O(t),Gt(t.$$)}}catch(t){throw x.length=0,w=0,t}for(O(null),x.length=0,w=0;F.length;)F.pop()();for(let t=0;t<k.length;t+=1){const n=k[t];V.has(n)||(V.add(n),n())}k.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),O(e)}function Gt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}function Kt(e){const t=[],n=[];k.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),k=t}let j;function Qt(){return j||(j=Promise.resolve(),j.then(()=>{j=null})),j}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const T=new Set;let p;function Xt(){p={r:0,c:[],p}}function Yt(){p.r||S(p.c),p=p.p}function v(e,t){e&&e.i&&(T.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(T.has(e))return;T.add(e),p.c.push(()=>{T.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function lt(e,t,n,i){let s=t(e,n,{direction:"both"}),c=i?0:1,o=null,l=null,u=null,h;function d(){u&&It(e,u)}function g(a,$){const f=a.b-c;return $*=Math.abs(f),{a:c,b:a.b,d:f,duration:$,start:a.start,end:a.start+$,group:a.group}}function m(a){const{delay:$=0,duration:f=300,easing:y=ft,tick:b=L,css:I}=s||Zt,U={start:Lt()+$,b:a};a||(U.group=p,p.r+=1),"inert"in e&&(a?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||l?l=U:(I&&(d(),u=rt(e,c,a,f,$,y,I)),a&&b(0,1),o=g(U,f),N(()=>W(e,a,"start")),At(R=>{if(l&&R>l.start&&(o=g(l,f),l=null,W(e,o.b,"start"),I&&(d(),u=rt(e,c,o.b,o.duration,0,y,s.css))),o){if(R>=o.end)b(c=o.b,1-c),W(e,o.b,"end"),l||(o.b?d():--o.group.r||S(o.group.c)),o=null;else if(R>=o.start){const yt=R-o.start;c=o.a+o.d*y(yt/o.duration),b(c,1-c)}}return!!(o||l)}))}return{run(a){Q(s)?Qt().then(()=>{s=s({direction:a?"in":"out"}),m(a)}):m(a)},end(){d(),o=l=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),N(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):S(s),e.$$.on_mount=[]}),r.forEach(N)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),S(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,c=null,o=[-1]){const l=A;O(e);const u=e.$$={fragment:null,ctx:[],props:s,update:L,not_equal:r,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};c&&c(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(d,g,...m)=>{const a=m.length?m[0]:g;return u.ctx&&r(u.ctx[d],u.ctx[d]=a)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](a),h&&ne(e,d)),g}):[],u.update(),h=!0,S(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const d=Tt(t.target);u.fragment&&u.fragment.l(d),d.forEach(P)}else u.fragment&&u.fragment.c();t.intro&&v(e.$$.fragment),te(e,t.target,t.anchor),E()}O(l)}let gt;typeof HTMLElement=="function"&&(gt=class extends HTMLElement{constructor(t,n,i){super();_(this,"$$ctor");_(this,"$$s");_(this,"$$c");_(this,"$$cn",!1);_(this,"$$d",{});_(this,"$$r",!1);_(this,"$$p_d",{});_(this,"$$l",{});_(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 c;return{c:function(){c=M("slot"),s!=="default"&&B(c,"name",s)},m:function(u,h){Z(u,c,h)},d:function(u){u&&P(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=zt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=D(c,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 c=D(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const o=this.$$c.$on(s,c);this.$$l_u.set(c,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(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 D(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 c=class extends gt{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(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=D(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=c,c}class re{constructor(){_(this,"$$");_(this,"$$set")}$destroy(){ee(this,1),this.$destroy=L}$on(t,n){if(!Q(n))return L;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&&!kt(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 ct(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 le(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 c=e[7].default,o=St(c,e,e[6],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(l,u){Z(l,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[8](n),e[9](t),s=!0},p(l,u){e=l,o&&o.p&&(!s||u&64)&&Ot(o,c,e,e[6],s?jt(c,e[6],u,null):vt(e[6]),null)},i(l){s||(v(o,l),l&&N(()=>{s&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!0)),r.run(1))}),s=!0)},o(l){K(o,l),l&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!1)),r.run(0)),s=!1},d(l){l&&P(t),o&&o.d(l),e[8](null),l&&r&&r.end(),e[9](null)}}}function ce(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Bt()},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&&v(i,1)):(i=ut(r),i.c(),v(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(r){n||(v(i),n=!0)},o(r){K(i),n=!1},d(r){r&&P(t),i&&i.d(r)}}}function ue(e,t,n){let{$$slots:i={},$$scope:r}=t,{show:s=!1}=t,{duration:c=350}=t,{clientstyling:o=""}=t,{clientstylingurl:l=""}=t,u,h;const d=f=>{f.data.type=="ModalClosed"&&n(0,s=!1),f.data.type==="ShowLimitsConfirmationModal"&&(n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href))},g=()=>{let f=document.createElement("style");f.innerHTML=o,u.appendChild(f)},m=()=>{let f=new URL(l),y=document.createElement("style");fetch(f.href).then(b=>b.text()).then(b=>{y.innerHTML=b,setTimeout(()=>{u.appendChild(y)},1)})};Vt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function a(f){F[f?"unshift":"push"](()=>{h=f,n(3,h)})}function $(f){F[f?"unshift":"push"](()=>{u=f,n(2,u)})}return e.$$set=f=>{"show"in f&&n(0,s=f.show),"duration"in f&&n(1,c=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,l=f.clientstylingurl),"$$scope"in f&&n(6,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&36&&l&&u&&m(),e.$$.dirty&20&&o&&u&&g()},[s,c,u,h,o,l,r,i,a,$]}class mt extends re{constructor(t){super(),ie(this,t,ue,ce,Mt,{show:0,duration:1,clientstyling:4,clientstylingurl:5},le)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),E()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),E()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}}se(mt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=mt;
@@ -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-rCcGWoBO.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}
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-ME2WDwsY.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-hfcIB80I.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountModal-Hn2F0I_Q.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-modal",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-modal.cjs",
6
6
  "module": "es2015/player-account-modal.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/player-account-modal.cjs": "./es2015/player-account-modal.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],
@@ -1,4 +0,0 @@
1
- "use strict";var pt=Object.defineProperty,bt=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable;var U=(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)&&U(e,n,t[n]);if(tt)for(var n of tt(t))jt.call(t,n)&&U(e,n,t[n]);return e},nt=(e,t)=>bt(e,wt(t));var _=(e,t,n)=>U(e,typeof t!="symbol"?t+"":t,n);var it=(e,t,n)=>new Promise((i,r)=>{var s=l=>{try{o(n.next(l))}catch(u){r(u)}},c=l=>{try{o(n.throw(l))}catch(u){r(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(s,c);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function A(){}const ft=e=>e;function Et(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 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 Mt(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?Et(n.ctx.slice(),e[1](i(t))):n.ctx}function kt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],c=Math.max(t.dirty.length,r.length);for(let o=0;o<c;o+=1)s[o]=t.dirty[o]|r[o];return s}return t.dirty|r}return t.dirty}function St(e,t,n,i,r,s){if(r){const c=dt(t,n,i,s);e.p(c,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 Lt=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):A;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 W(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 W(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function q(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function qt(e){return document.createTextNode(e)}function Rt(){return qt("")}function S(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Bt(e){return Array.from(e.childNodes)}function Tt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Dt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let z=0;function zt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ht(e,t){const n={stylesheet:Pt(t),rules:{}};return D.set(e,n),n}function rt(e,t,n,i,r,s,c,o=0){const l=16.666/i;let u=`{
2
- `;for(let f=0;f<=1;f+=l){const m=t+(n-t)*s(f);u+=f*100+`%{${c(m,1-m)}}
3
- `}const h=u+`100% {${c(n,1-n)}}
4
- }`,d=`__svelte_${zt(h)}_${o}`,y=Y(e),{stylesheet:g,rules:a}=D.get(y)||Ht(y,e);a[d]||(a[d]=!0,g.insertRule(`@keyframes ${d} ${h}`,g.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${d} ${i}ms linear ${r}ms 1 both`,z+=1,d}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(", "),z-=r,z||It())}function It(){X(()=>{z||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&q(t)}),D.clear())})}let N;function O(e){N=e}function Ut(){if(!N)throw new Error("Function called outside component initialization");return N}function Jt(e){Ut().$$.on_mount.push(e)}const x=[],H=[];let C=[];const ot=[],Vt=Promise.resolve();let G=!1;function Wt(){G||(G=!0,Vt.then(j))}function P(e){C.push(e)}const J=new Set;let w=0;function j(){if(w!==0)return;const e=N;do{try{for(;w<x.length;){const t=x[w];w++,O(t),Gt(t.$$)}}catch(t){throw x.length=0,w=0,t}for(O(null),x.length=0,w=0;H.length;)H.pop()();for(let t=0;t<C.length;t+=1){const n=C[t];J.has(n)||(J.add(n),n())}C.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,J.clear(),O(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(P)}}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 k;function Qt(){return k||(k=Promise.resolve(),k.then(()=>{k=null})),k}function V(e,t,n){e.dispatchEvent(Tt(`${t?"intro":"outro"}${n}`))}const B=new Set;let p;function Xt(){p={r:0,c:[],p}}function Yt(){p.r||M(p.c),p=p.p}function L(e,t){e&&e.i&&(B.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(B.has(e))return;B.add(e),p.c.push(()=>{B.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function lt(e,t,n,i){let s=t(e,n,{direction:"both"}),c=i?0:1,o=null,l=null,u=null,h;function d(){u&&Ft(e,u)}function y(a,$){const f=a.b-c;return $*=Math.abs(f),{a:c,b:a.b,d:f,duration:$,start:a.start,end:a.start+$,group:a.group}}function g(a){const{delay:$=0,duration:f=300,easing:m=ft,tick:b=A,css:F}=s||Zt,I={start:Lt()+$,b:a};a||(I.group=p,p.r+=1),"inert"in e&&(a?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||l?l=I:(F&&(d(),u=rt(e,c,a,f,$,m,F)),a&&b(0,1),o=y(I,f),P(()=>V(e,a,"start")),At(R=>{if(l&&R>l.start&&(o=y(l,f),l=null,V(e,o.b,"start"),F&&(d(),u=rt(e,c,o.b,o.duration,0,m,s.css))),o){if(R>=o.end)b(c=o.b,1-c),V(e,o.b,"end"),l||(o.b?d():--o.group.r||M(o.group.c)),o=null;else if(R>=o.start){const mt=R-o.start;c=o.a+o.d*m(mt/o.duration),b(c,1-c)}}return!!(o||l)}))}return{run(a){Q(s)?Qt().then(()=>{s=s({direction:a?"in":"out"}),g(a)}):g(a)},end(){d(),o=l=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),P(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):M(s),e.$$.on_mount=[]}),r.forEach(P)}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),Wt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,s,c=null,o=[-1]){const l=N;O(e);const u=e.$$={fragment:null,ctx:[],props:s,update:A,not_equal:r,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||l.$$.root};c&&c(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(d,y,...g)=>{const a=g.length?g[0]:y;return u.ctx&&r(u.ctx[d],u.ctx[d]=a)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](a),h&&ne(e,d)),y}):[],u.update(),h=!0,M(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const d=Bt(t.target);u.fragment&&u.fragment.l(d),d.forEach(q)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),j()}O(l)}let yt;typeof HTMLElement=="function"&&(yt=class extends HTMLElement{constructor(t,n,i){super();_(this,"$$ctor");_(this,"$$s");_(this,"$$c");_(this,"$$cn",!1);_(this,"$$d",{});_(this,"$$r",!1);_(this,"$$p_d",{});_(this,"$$l",{});_(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 c;return{c:function(){c=v("slot"),s!=="default"&&S(c,"name",s)},m:function(u,h){Z(u,c,h)},d:function(u){u&&q(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Dt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=T(c,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 c=T(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const o=this.$$c.$on(s,c);this.$$l_u.set(c,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 c=class extends yt{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(c.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var u;l=T(o,l,t),this.$$d[o]=l,(u=this.$$c)==null||u.$set({[o]:l})}})}),i.forEach(o=>{Object.defineProperty(c.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=c,c}class re{constructor(){_(this,"$$");_(this,"$$set")}$destroy(){ee(this,1),this.$destroy=A}$on(t,n){if(!Q(n))return A;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&&!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 ct(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 le(e){Nt(e,"svelte-jyjq1x",".svelte-jyjq1x,.svelte-jyjq1x::before,.svelte-jyjq1x::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-jyjq1x{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 c=e[7].default,o=Mt(c,e,e[6],null);return{c(){t=v("div"),n=v("div"),i=v("div"),o&&o.c(),S(i,"class","ModalContainer svelte-jyjq1x"),S(n,"class","ModalWindow svelte-jyjq1x"),S(n,"id","Modal"),S(t,"class","svelte-jyjq1x")},m(l,u){Z(l,t,u),W(t,n),W(n,i),o&&o.m(i,null),e[8](n),e[9](t),s=!0},p(l,u){e=l,o&&o.p&&(!s||u&64)&&St(o,c,e,e[6],s?kt(c,e[6],u,null):Ot(e[6]),null)},i(l){s||(L(o,l),l&&P(()=>{s&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!0)),r.run(1))}),s=!0)},o(l){K(o,l),l&&(r||(r=lt(n,ct,{transitionDuration:e[1]},!1)),r.run(0)),s=!1},d(l){l&&q(t),o&&o.d(l),e[8](null),l&&r&&r.end(),e[9](null)}}}function ce(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&&q(t),i&&i.d(r)}}}function ue(e,t,n){let{$$slots:i={},$$scope:r}=t,{show:s=!1}=t,{duration:c=350}=t,{clientstyling:o=""}=t,{clientstylingurl:l=""}=t,u,h;const d=f=>{f.data.type=="ModalClosed"&&n(0,s=!1),f.data.type==="ShowLimitsConfirmationModal"&&(n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href))},y=()=>{let f=document.createElement("style");f.innerHTML=o,u.appendChild(f)},g=()=>{let f=new URL(l),m=document.createElement("style");fetch(f.href).then(b=>b.text()).then(b=>{m.innerHTML=b,setTimeout(()=>{u.appendChild(m)},1)})};Jt(()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d)}));function a(f){H[f?"unshift":"push"](()=>{h=f,n(3,h)})}function $(f){H[f?"unshift":"push"](()=>{u=f,n(2,u)})}return e.$$set=f=>{"show"in f&&n(0,s=f.show),"duration"in f&&n(1,c=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,l=f.clientstylingurl),"$$scope"in f&&n(6,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&36&&l&&u&&g(),e.$$.dirty&20&&o&&u&&y()},[s,c,u,h,o,l,r,i,a,$]}class gt extends re{constructor(t){super(),ie(this,t,ue,ce,vt,{show:0,duration:1,clientstyling:4,clientstylingurl:5},le)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),j()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),j()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),j()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),j()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=gt;