@everymatrix/general-player-register-form-nd 1.54.0 → 1.54.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,57 +1,28 @@
1
- var on = Object.defineProperty, an = Object.defineProperties;
2
- var un = Object.getOwnPropertyDescriptors;
3
- var Ct = Object.getOwnPropertySymbols;
4
- var ln = Object.prototype.hasOwnProperty, hn = Object.prototype.propertyIsEnumerable;
5
- var $e = (e, t, r) => t in e ? on(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, It = (e, t) => {
6
- for (var r in t || (t = {}))
7
- ln.call(t, r) && $e(e, r, t[r]);
8
- if (Ct)
9
- for (var r of Ct(t))
10
- hn.call(t, r) && $e(e, r, t[r]);
11
- return e;
12
- }, Rt = (e, t) => an(e, un(t));
13
- var F = (e, t, r) => $e(e, typeof t != "symbol" ? t + "" : t, r);
14
- var we = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, o = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
- a((r = r.apply(e, t)).next());
29
- });
30
1
  function k() {
31
2
  }
32
- function hr(e) {
3
+ function ir(e) {
33
4
  return e();
34
5
  }
35
- function Lt() {
6
+ function At() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ge(e) {
39
- e.forEach(hr);
9
+ function pe(e) {
10
+ e.forEach(ir);
40
11
  }
41
- function ct(e) {
12
+ function lt(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function fr(e, t) {
15
+ function sr(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let xe;
48
- function qs(e, t) {
49
- return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
18
+ let Ee;
19
+ function Fs(e, t) {
20
+ return e === t ? !0 : (Ee || (Ee = document.createElement("a")), Ee.href = t, e === Ee.href);
50
21
  }
51
- function fn(e) {
22
+ function Yr(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function cr(e, ...t) {
25
+ function or(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
@@ -60,24 +31,24 @@ function cr(e, ...t) {
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function cn(e, t, r) {
64
- e.$$.on_destroy.push(cr(t, r));
34
+ function Kr(e, t, r) {
35
+ e.$$.on_destroy.push(or(t, r));
65
36
  }
66
- const Qs = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
37
+ const Us = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
67
38
  // @ts-ignore Node typings have this
68
39
  global
69
40
  );
70
41
  function E(e, t) {
71
42
  e.appendChild(t);
72
43
  }
73
- function dn(e, t, r) {
74
- const n = mn(e);
44
+ function en(e, t, r) {
45
+ const n = tn(e);
75
46
  if (!n.getElementById(t)) {
76
47
  const i = B("style");
77
- i.id = t, i.textContent = r, pn(n, i);
48
+ i.id = t, i.textContent = r, rn(n, i);
78
49
  }
79
50
  }
80
- function mn(e) {
51
+ function tn(e) {
81
52
  if (!e) return document;
82
53
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
83
54
  return t && /** @type {ShadowRoot} */
@@ -86,39 +57,39 @@ function mn(e) {
86
57
  t
87
58
  ) : e.ownerDocument;
88
59
  }
89
- function pn(e, t) {
60
+ function rn(e, t) {
90
61
  return E(
91
62
  /** @type {Document} */
92
63
  e.head || e,
93
64
  t
94
65
  ), t.sheet;
95
66
  }
96
- function U(e, t, r) {
67
+ function F(e, t, r) {
97
68
  e.insertBefore(t, r || null);
98
69
  }
99
70
  function M(e) {
100
71
  e.parentNode && e.parentNode.removeChild(e);
101
72
  }
102
- function Ys(e, t) {
73
+ function ks(e, t) {
103
74
  for (let r = 0; r < e.length; r += 1)
104
75
  e[r] && e[r].d(t);
105
76
  }
106
77
  function B(e) {
107
78
  return document.createElement(e);
108
79
  }
109
- function Se(e) {
80
+ function we(e) {
110
81
  return document.createElementNS("http://www.w3.org/2000/svg", e);
111
82
  }
112
- function $(e) {
83
+ function j(e) {
113
84
  return document.createTextNode(e);
114
85
  }
115
- function G() {
116
- return $(" ");
86
+ function U() {
87
+ return j(" ");
117
88
  }
118
- function gn() {
119
- return $("");
89
+ function nn() {
90
+ return j("");
120
91
  }
121
- function bn(e, t, r, n) {
92
+ function sn(e, t, r, n) {
122
93
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
123
94
  }
124
95
  function T(e, t, r) {
@@ -128,17 +99,17 @@ function d(e, t, r) {
128
99
  const n = t.toLowerCase();
129
100
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
130
101
  }
131
- function yn(e) {
102
+ function on(e) {
132
103
  return Array.from(e.childNodes);
133
104
  }
134
- function K(e, t) {
105
+ function Y(e, t) {
135
106
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
136
107
  t);
137
108
  }
138
- function Ks(e, t) {
139
- e.value = t == null ? "" : t;
109
+ function Gs(e, t) {
110
+ e.value = t ?? "";
140
111
  }
141
- function eo(e, t, r) {
112
+ function js(e, t, r) {
142
113
  for (let n = 0; n < e.options.length; n += 1) {
143
114
  const i = e.options[n];
144
115
  if (i.__value === t) {
@@ -148,11 +119,11 @@ function eo(e, t, r) {
148
119
  }
149
120
  (!r || t !== void 0) && (e.selectedIndex = -1);
150
121
  }
151
- function to(e) {
122
+ function $s(e) {
152
123
  const t = e.querySelector(":checked");
153
124
  return t && t.__value;
154
125
  }
155
- function vn(e) {
126
+ function an(e) {
156
127
  const t = {};
157
128
  return e.childNodes.forEach(
158
129
  /** @param {Element} node */
@@ -161,248 +132,244 @@ function vn(e) {
161
132
  }
162
133
  ), t;
163
134
  }
164
- let de;
165
- function ce(e) {
166
- de = e;
135
+ let ce;
136
+ function fe(e) {
137
+ ce = e;
167
138
  }
168
- function _n() {
169
- if (!de) throw new Error("Function called outside component initialization");
170
- return de;
139
+ function un() {
140
+ if (!ce) throw new Error("Function called outside component initialization");
141
+ return ce;
171
142
  }
172
- function En(e) {
173
- _n().$$.on_mount.push(e);
143
+ function ln(e) {
144
+ un().$$.on_mount.push(e);
174
145
  }
175
- const Y = [], Ce = [];
176
- let ee = [];
177
- const Nt = [], wn = /* @__PURE__ */ Promise.resolve();
178
- let Qe = !1;
179
- function xn() {
180
- Qe || (Qe = !0, wn.then(P));
146
+ const Q = [], Pe = [];
147
+ let K = [];
148
+ const Pt = [], hn = /* @__PURE__ */ Promise.resolve();
149
+ let Ze = !1;
150
+ function fn() {
151
+ Ze || (Ze = !0, hn.then(A));
181
152
  }
182
- function Ye(e) {
183
- ee.push(e);
153
+ function Je(e) {
154
+ K.push(e);
184
155
  }
185
- const Ve = /* @__PURE__ */ new Set();
186
- let q = 0;
187
- function P() {
188
- if (q !== 0)
156
+ const Ge = /* @__PURE__ */ new Set();
157
+ let J = 0;
158
+ function A() {
159
+ if (J !== 0)
189
160
  return;
190
- const e = de;
161
+ const e = ce;
191
162
  do {
192
163
  try {
193
- for (; q < Y.length; ) {
194
- const t = Y[q];
195
- q++, ce(t), Sn(t.$$);
164
+ for (; J < Q.length; ) {
165
+ const t = Q[J];
166
+ J++, fe(t), cn(t.$$);
196
167
  }
197
168
  } catch (t) {
198
- throw Y.length = 0, q = 0, t;
169
+ throw Q.length = 0, J = 0, t;
199
170
  }
200
- for (ce(null), Y.length = 0, q = 0; Ce.length; ) Ce.pop()();
201
- for (let t = 0; t < ee.length; t += 1) {
202
- const r = ee[t];
203
- Ve.has(r) || (Ve.add(r), r());
171
+ for (fe(null), Q.length = 0, J = 0; Pe.length; ) Pe.pop()();
172
+ for (let t = 0; t < K.length; t += 1) {
173
+ const r = K[t];
174
+ Ge.has(r) || (Ge.add(r), r());
204
175
  }
205
- ee.length = 0;
206
- } while (Y.length);
207
- for (; Nt.length; )
208
- Nt.pop()();
209
- Qe = !1, Ve.clear(), ce(e);
176
+ K.length = 0;
177
+ } while (Q.length);
178
+ for (; Pt.length; )
179
+ Pt.pop()();
180
+ Ze = !1, Ge.clear(), fe(e);
210
181
  }
211
- function Sn(e) {
182
+ function cn(e) {
212
183
  if (e.fragment !== null) {
213
- e.update(), ge(e.before_update);
184
+ e.update(), pe(e.before_update);
214
185
  const t = e.dirty;
215
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
186
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
216
187
  }
217
188
  }
218
- function Tn(e) {
189
+ function dn(e) {
219
190
  const t = [], r = [];
220
- ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
191
+ K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
221
192
  }
222
- const Hn = /* @__PURE__ */ new Set();
223
- function Bn(e, t) {
224
- e && e.i && (Hn.delete(e), e.i(t));
193
+ const mn = /* @__PURE__ */ new Set();
194
+ function pn(e, t) {
195
+ e && e.i && (mn.delete(e), e.i(t));
225
196
  }
226
- function ro(e) {
227
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
197
+ function Vs(e) {
198
+ return e?.length !== void 0 ? e : Array.from(e);
228
199
  }
229
- function Pn(e, t, r) {
200
+ function gn(e, t, r) {
230
201
  const { fragment: n, after_update: i } = e.$$;
231
- n && n.m(t, r), Ye(() => {
232
- const s = e.$$.on_mount.map(hr).filter(ct);
233
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ge(s), e.$$.on_mount = [];
234
- }), i.forEach(Ye);
202
+ n && n.m(t, r), Je(() => {
203
+ const s = e.$$.on_mount.map(ir).filter(lt);
204
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : pe(s), e.$$.on_mount = [];
205
+ }), i.forEach(Je);
235
206
  }
236
- function An(e, t) {
207
+ function bn(e, t) {
237
208
  const r = e.$$;
238
- r.fragment !== null && (Tn(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
209
+ r.fragment !== null && (dn(r.after_update), pe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
210
  }
240
- function On(e, t) {
241
- e.$$.dirty[0] === -1 && (Y.push(e), xn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
+ function yn(e, t) {
212
+ e.$$.dirty[0] === -1 && (Q.push(e), fn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
213
  }
243
- function Cn(e, t, r, n, i, s, o = null, a = [-1]) {
244
- const l = de;
245
- ce(e);
246
- const u = e.$$ = {
214
+ function vn(e, t, r, n, i, s, o = null, a = [-1]) {
215
+ const h = ce;
216
+ fe(e);
217
+ const l = e.$$ = {
247
218
  fragment: null,
248
219
  ctx: [],
249
220
  // state
250
221
  props: s,
251
222
  update: k,
252
223
  not_equal: i,
253
- bound: Lt(),
224
+ bound: At(),
254
225
  // lifecycle
255
226
  on_mount: [],
256
227
  on_destroy: [],
257
228
  on_disconnect: [],
258
229
  before_update: [],
259
230
  after_update: [],
260
- context: new Map(t.context || (l ? l.$$.context : [])),
231
+ context: new Map(t.context || (h ? h.$$.context : [])),
261
232
  // everything else
262
- callbacks: Lt(),
233
+ callbacks: At(),
263
234
  dirty: a,
264
235
  skip_bound: !1,
265
- root: t.target || l.$$.root
236
+ root: t.target || h.$$.root
266
237
  };
267
- o && o(u.root);
268
- let h = !1;
269
- if (u.ctx = r ? r(e, t.props || {}, (c, m, ...y) => {
238
+ o && o(l.root);
239
+ let u = !1;
240
+ if (l.ctx = r ? r(e, t.props || {}, (c, m, ...y) => {
270
241
  const g = y.length ? y[0] : m;
271
- return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && On(e, c)), m;
272
- }) : [], u.update(), h = !0, ge(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
242
+ return l.ctx && i(l.ctx[c], l.ctx[c] = g) && (!l.skip_bound && l.bound[c] && l.bound[c](g), u && yn(e, c)), m;
243
+ }) : [], l.update(), u = !0, pe(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
273
244
  if (t.hydrate) {
274
- const c = yn(t.target);
275
- u.fragment && u.fragment.l(c), c.forEach(M);
245
+ const c = on(t.target);
246
+ l.fragment && l.fragment.l(c), c.forEach(M);
276
247
  } else
277
- u.fragment && u.fragment.c();
278
- t.intro && Bn(e.$$.fragment), Pn(e, t.target, t.anchor), P();
248
+ l.fragment && l.fragment.c();
249
+ t.intro && pn(e.$$.fragment), gn(e, t.target, t.anchor), A();
279
250
  }
280
- ce(l);
281
- }
282
- let dr;
283
- typeof HTMLElement == "function" && (dr = class extends HTMLElement {
284
- constructor(t, r, n) {
285
- super();
286
- /** The Svelte component constructor */
287
- F(this, "$$ctor");
288
- /** Slots */
289
- F(this, "$$s");
290
- /** The Svelte component instance */
291
- F(this, "$$c");
292
- /** Whether or not the custom element is connected */
293
- F(this, "$$cn", !1);
294
- /** Component props data */
295
- F(this, "$$d", {});
296
- /** `true` if currently in the process of reflecting component props back to attributes */
297
- F(this, "$$r", !1);
298
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
299
- F(this, "$$p_d", {});
300
- /** @type {Record<string, Function[]>} Event listeners */
301
- F(this, "$$l", {});
302
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
303
- F(this, "$$l_u", /* @__PURE__ */ new Map());
304
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
251
+ fe(h);
252
+ }
253
+ let ar;
254
+ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
255
+ /** The Svelte component constructor */
256
+ $$ctor;
257
+ /** Slots */
258
+ $$s;
259
+ /** The Svelte component instance */
260
+ $$c;
261
+ /** Whether or not the custom element is connected */
262
+ $$cn = !1;
263
+ /** Component props data */
264
+ $$d = {};
265
+ /** `true` if currently in the process of reflecting component props back to attributes */
266
+ $$r = !1;
267
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
268
+ $$p_d = {};
269
+ /** @type {Record<string, Function[]>} Event listeners */
270
+ $$l = {};
271
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
272
+ $$l_u = /* @__PURE__ */ new Map();
273
+ constructor(e, t, r) {
274
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
305
275
  }
306
- addEventListener(t, r, n) {
307
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
308
- const i = this.$$c.$on(t, r);
309
- this.$$l_u.set(r, i);
276
+ addEventListener(e, t, r) {
277
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
278
+ const n = this.$$c.$on(e, t);
279
+ this.$$l_u.set(t, n);
310
280
  }
311
- super.addEventListener(t, r, n);
281
+ super.addEventListener(e, t, r);
312
282
  }
313
- removeEventListener(t, r, n) {
314
- if (super.removeEventListener(t, r, n), this.$$c) {
315
- const i = this.$$l_u.get(r);
316
- i && (i(), this.$$l_u.delete(r));
283
+ removeEventListener(e, t, r) {
284
+ if (super.removeEventListener(e, t, r), this.$$c) {
285
+ const n = this.$$l_u.get(t);
286
+ n && (n(), this.$$l_u.delete(t));
317
287
  }
318
288
  }
319
- connectedCallback() {
320
- return we(this, null, function* () {
321
- if (this.$$cn = !0, !this.$$c) {
322
- let t = function(s) {
323
- return () => {
324
- let o;
325
- return {
326
- c: function() {
327
- o = B("slot"), s !== "default" && T(o, "name", s);
328
- },
329
- /**
330
- * @param {HTMLElement} target
331
- * @param {HTMLElement} [anchor]
332
- */
333
- m: function(u, h) {
334
- U(u, o, h);
335
- },
336
- d: function(u) {
337
- u && M(o);
338
- }
339
- };
289
+ async connectedCallback() {
290
+ if (this.$$cn = !0, !this.$$c) {
291
+ let e = function(i) {
292
+ return () => {
293
+ let s;
294
+ return {
295
+ c: function() {
296
+ s = B("slot"), i !== "default" && T(s, "name", i);
297
+ },
298
+ /**
299
+ * @param {HTMLElement} target
300
+ * @param {HTMLElement} [anchor]
301
+ */
302
+ m: function(h, l) {
303
+ F(h, s, l);
304
+ },
305
+ d: function(h) {
306
+ h && M(s);
307
+ }
340
308
  };
341
309
  };
342
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
343
- return;
344
- const r = {}, n = vn(this);
345
- for (const s of this.$$s)
346
- s in n && (r[s] = [t(s)]);
347
- for (const s of this.attributes) {
348
- const o = this.$$g_p(s.name);
349
- o in this.$$d || (this.$$d[o] = Be(o, s.value, this.$$p_d, "toProp"));
310
+ };
311
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
312
+ return;
313
+ const t = {}, r = an(this);
314
+ for (const i of this.$$s)
315
+ i in r && (t[i] = [e(i)]);
316
+ for (const i of this.attributes) {
317
+ const s = this.$$g_p(i.name);
318
+ s in this.$$d || (this.$$d[s] = Te(s, i.value, this.$$p_d, "toProp"));
319
+ }
320
+ for (const i in this.$$p_d)
321
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
322
+ this.$$c = new this.$$ctor({
323
+ target: this.shadowRoot || this,
324
+ props: {
325
+ ...this.$$d,
326
+ $$slots: t,
327
+ $$scope: {
328
+ ctx: []
329
+ }
350
330
  }
351
- for (const s in this.$$p_d)
352
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
353
- this.$$c = new this.$$ctor({
354
- target: this.shadowRoot || this,
355
- props: Rt(It({}, this.$$d), {
356
- $$slots: r,
357
- $$scope: {
358
- ctx: []
359
- }
360
- })
361
- });
362
- const i = () => {
363
- this.$$r = !0;
364
- for (const s in this.$$p_d)
365
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
366
- const o = Be(
367
- s,
368
- this.$$d[s],
369
- this.$$p_d,
370
- "toAttribute"
371
- );
372
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
373
- }
374
- this.$$r = !1;
375
- };
376
- this.$$c.$$.after_update.push(i), i();
377
- for (const s in this.$$l)
378
- for (const o of this.$$l[s]) {
379
- const a = this.$$c.$on(s, o);
380
- this.$$l_u.set(o, a);
331
+ });
332
+ const n = () => {
333
+ this.$$r = !0;
334
+ for (const i in this.$$p_d)
335
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
336
+ const s = Te(
337
+ i,
338
+ this.$$d[i],
339
+ this.$$p_d,
340
+ "toAttribute"
341
+ );
342
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
381
343
  }
382
- this.$$l = {};
383
- }
384
- });
344
+ this.$$r = !1;
345
+ };
346
+ this.$$c.$$.after_update.push(n), n();
347
+ for (const i in this.$$l)
348
+ for (const s of this.$$l[i]) {
349
+ const o = this.$$c.$on(i, s);
350
+ this.$$l_u.set(s, o);
351
+ }
352
+ this.$$l = {};
353
+ }
385
354
  }
386
355
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
387
356
  // and setting attributes through setAttribute etc, this is helpful
388
- attributeChangedCallback(t, r, n) {
389
- var i;
390
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Be(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
357
+ attributeChangedCallback(e, t, r) {
358
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Te(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
391
359
  }
392
360
  disconnectedCallback() {
393
361
  this.$$cn = !1, Promise.resolve().then(() => {
394
362
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
395
363
  });
396
364
  }
397
- $$g_p(t) {
365
+ $$g_p(e) {
398
366
  return Object.keys(this.$$p_d).find(
399
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
400
- ) || t;
367
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
368
+ ) || e;
401
369
  }
402
370
  });
403
- function Be(e, t, r, n) {
404
- var s;
405
- const i = (s = r[e]) == null ? void 0 : s.type;
371
+ function Te(e, t, r, n) {
372
+ const i = r[e]?.type;
406
373
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
407
374
  return t;
408
375
  if (n === "toAttribute")
@@ -413,7 +380,7 @@ function Be(e, t, r, n) {
413
380
  case "Boolean":
414
381
  return t ? "" : null;
415
382
  case "Number":
416
- return t == null ? null : t;
383
+ return t ?? null;
417
384
  default:
418
385
  return t;
419
386
  }
@@ -430,8 +397,8 @@ function Be(e, t, r, n) {
430
397
  return t;
431
398
  }
432
399
  }
433
- function In(e, t, r, n, i, s) {
434
- let o = class extends dr {
400
+ function _n(e, t, r, n, i, s) {
401
+ let o = class extends ar {
435
402
  constructor() {
436
403
  super(e, r, i), this.$$p_d = t;
437
404
  }
@@ -446,43 +413,39 @@ function In(e, t, r, n, i, s) {
446
413
  get() {
447
414
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
448
415
  },
449
- set(l) {
450
- var u;
451
- l = Be(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
416
+ set(h) {
417
+ h = Te(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
452
418
  }
453
419
  });
454
420
  }), n.forEach((a) => {
455
421
  Object.defineProperty(o.prototype, a, {
456
422
  get() {
457
- var l;
458
- return (l = this.$$c) == null ? void 0 : l[a];
423
+ return this.$$c?.[a];
459
424
  }
460
425
  });
461
426
  }), e.element = /** @type {any} */
462
427
  o, o;
463
428
  }
464
- class Rn {
465
- constructor() {
466
- /**
467
- * ### PRIVATE API
468
- *
469
- * Do not use, may change at any time
470
- *
471
- * @type {any}
472
- */
473
- F(this, "$$");
474
- /**
475
- * ### PRIVATE API
476
- *
477
- * Do not use, may change at any time
478
- *
479
- * @type {any}
480
- */
481
- F(this, "$$set");
482
- }
429
+ class En {
430
+ /**
431
+ * ### PRIVATE API
432
+ *
433
+ * Do not use, may change at any time
434
+ *
435
+ * @type {any}
436
+ */
437
+ $$ = void 0;
438
+ /**
439
+ * ### PRIVATE API
440
+ *
441
+ * Do not use, may change at any time
442
+ *
443
+ * @type {any}
444
+ */
445
+ $$set = void 0;
483
446
  /** @returns {void} */
484
447
  $destroy() {
485
- An(this, 1), this.$destroy = k;
448
+ bn(this, 1), this.$destroy = k;
486
449
  }
487
450
  /**
488
451
  * @template {Extract<keyof Events, string>} K
@@ -491,7 +454,7 @@ class Rn {
491
454
  * @returns {() => void}
492
455
  */
493
456
  $on(t, r) {
494
- if (!ct(r))
457
+ if (!lt(r))
495
458
  return k;
496
459
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
460
  return n.push(r), () => {
@@ -504,22 +467,22 @@ class Rn {
504
467
  * @returns {void}
505
468
  */
506
469
  $set(t) {
507
- this.$$set && !fn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
470
+ this.$$set && !Yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
508
471
  }
509
472
  }
510
- const Ln = "4";
511
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
512
- var Ke = function(e, t) {
513
- return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
473
+ const wn = "4";
474
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wn);
475
+ var qe = function(e, t) {
476
+ return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
514
477
  r.__proto__ = n;
515
478
  } || function(r, n) {
516
479
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
517
- }, Ke(e, t);
480
+ }, qe(e, t);
518
481
  };
519
- function X(e, t) {
482
+ function V(e, t) {
520
483
  if (typeof t != "function" && t !== null)
521
484
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
522
- Ke(e, t);
485
+ qe(e, t);
523
486
  function r() {
524
487
  this.constructor = e;
525
488
  }
@@ -534,7 +497,7 @@ var w = function() {
534
497
  return t;
535
498
  }, w.apply(this, arguments);
536
499
  };
537
- function Nn(e, t) {
500
+ function xn(e, t) {
538
501
  var r = {};
539
502
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
540
503
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -542,7 +505,7 @@ function Nn(e, t) {
542
505
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
543
506
  return r;
544
507
  }
545
- function et(e) {
508
+ function Qe(e) {
546
509
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
547
510
  if (r) return r.call(e);
548
511
  if (e && typeof e.length == "number") return {
@@ -552,7 +515,7 @@ function et(e) {
552
515
  };
553
516
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
554
517
  }
555
- function tt(e, t) {
518
+ function Ye(e, t) {
556
519
  var r = typeof Symbol == "function" && e[Symbol.iterator];
557
520
  if (!r) return e;
558
521
  var n = r.call(e), i, s = [], o;
@@ -569,21 +532,21 @@ function tt(e, t) {
569
532
  }
570
533
  return s;
571
534
  }
572
- function te(e, t, r) {
535
+ function ee(e, t, r) {
573
536
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
574
537
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
575
538
  return e.concat(s || Array.prototype.slice.call(t));
576
539
  }
577
- function V(e) {
540
+ function $(e) {
578
541
  return typeof e == "function";
579
542
  }
580
- function mr(e) {
543
+ function ur(e) {
581
544
  var t = function(n) {
582
545
  Error.call(n), n.stack = new Error().stack;
583
546
  }, r = e(t);
584
547
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
585
548
  }
586
- var Xe = mr(function(e) {
549
+ var je = ur(function(e) {
587
550
  return function(r) {
588
551
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
589
552
  ` + r.map(function(n, i) {
@@ -592,13 +555,13 @@ var Xe = mr(function(e) {
592
555
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
593
556
  };
594
557
  });
595
- function rt(e, t) {
558
+ function Ke(e, t) {
596
559
  if (e) {
597
560
  var r = e.indexOf(t);
598
561
  0 <= r && e.splice(r, 1);
599
562
  }
600
563
  }
601
- var Le = function() {
564
+ var Ie = function() {
602
565
  function e(t) {
603
566
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
604
567
  }
@@ -610,38 +573,38 @@ var Le = function() {
610
573
  if (o)
611
574
  if (this._parentage = null, Array.isArray(o))
612
575
  try {
613
- for (var a = et(o), l = a.next(); !l.done; l = a.next()) {
614
- var u = l.value;
615
- u.remove(this);
576
+ for (var a = Qe(o), h = a.next(); !h.done; h = a.next()) {
577
+ var l = h.value;
578
+ l.remove(this);
616
579
  }
617
580
  } catch (p) {
618
581
  t = { error: p };
619
582
  } finally {
620
583
  try {
621
- l && !l.done && (r = a.return) && r.call(a);
584
+ h && !h.done && (r = a.return) && r.call(a);
622
585
  } finally {
623
586
  if (t) throw t.error;
624
587
  }
625
588
  }
626
589
  else
627
590
  o.remove(this);
628
- var h = this.initialTeardown;
629
- if (V(h))
591
+ var u = this.initialTeardown;
592
+ if ($(u))
630
593
  try {
631
- h();
594
+ u();
632
595
  } catch (p) {
633
- s = p instanceof Xe ? p.errors : [p];
596
+ s = p instanceof je ? p.errors : [p];
634
597
  }
635
598
  var c = this._finalizers;
636
599
  if (c) {
637
600
  this._finalizers = null;
638
601
  try {
639
- for (var m = et(c), y = m.next(); !y.done; y = m.next()) {
602
+ for (var m = Qe(c), y = m.next(); !y.done; y = m.next()) {
640
603
  var g = y.value;
641
604
  try {
642
- Mt(g);
605
+ Ot(g);
643
606
  } catch (p) {
644
- s = s != null ? s : [], p instanceof Xe ? s = te(te([], tt(s)), tt(p.errors)) : s.push(p);
607
+ s = s ?? [], p instanceof je ? s = ee(ee([], Ye(s)), Ye(p.errors)) : s.push(p);
645
608
  }
646
609
  }
647
610
  } catch (p) {
@@ -655,13 +618,13 @@ var Le = function() {
655
618
  }
656
619
  }
657
620
  if (s)
658
- throw new Xe(s);
621
+ throw new je(s);
659
622
  }
660
623
  }, e.prototype.add = function(t) {
661
624
  var r;
662
625
  if (t && t !== this)
663
626
  if (this.closed)
664
- Mt(t);
627
+ Ot(t);
665
628
  else {
666
629
  if (t instanceof e) {
667
630
  if (t.closed || t._hasParent(this))
@@ -678,56 +641,56 @@ var Le = function() {
678
641
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
679
642
  }, e.prototype._removeParent = function(t) {
680
643
  var r = this._parentage;
681
- r === t ? this._parentage = null : Array.isArray(r) && rt(r, t);
644
+ r === t ? this._parentage = null : Array.isArray(r) && Ke(r, t);
682
645
  }, e.prototype.remove = function(t) {
683
646
  var r = this._finalizers;
684
- r && rt(r, t), t instanceof e && t._removeParent(this);
647
+ r && Ke(r, t), t instanceof e && t._removeParent(this);
685
648
  }, e.EMPTY = function() {
686
649
  var t = new e();
687
650
  return t.closed = !0, t;
688
651
  }(), e;
689
- }(), pr = Le.EMPTY;
690
- function gr(e) {
691
- return e instanceof Le || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
652
+ }(), lr = Ie.EMPTY;
653
+ function hr(e) {
654
+ return e instanceof Ie || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
692
655
  }
693
- function Mt(e) {
694
- V(e) ? e() : e.unsubscribe();
656
+ function Ot(e) {
657
+ $(e) ? e() : e.unsubscribe();
695
658
  }
696
- var Mn = {
659
+ var Sn = {
697
660
  onUnhandledError: null,
698
661
  onStoppedNotification: null,
699
662
  Promise: void 0,
700
663
  useDeprecatedSynchronousErrorHandling: !1,
701
664
  useDeprecatedNextContext: !1
702
- }, Dn = {
665
+ }, Tn = {
703
666
  setTimeout: function(e, t) {
704
667
  for (var r = [], n = 2; n < arguments.length; n++)
705
668
  r[n - 2] = arguments[n];
706
- return setTimeout.apply(void 0, te([e, t], tt(r)));
669
+ return setTimeout.apply(void 0, ee([e, t], Ye(r)));
707
670
  },
708
671
  clearTimeout: function(e) {
709
672
  return clearTimeout(e);
710
673
  },
711
674
  delegate: void 0
712
675
  };
713
- function Fn(e) {
714
- Dn.setTimeout(function() {
676
+ function Hn(e) {
677
+ Tn.setTimeout(function() {
715
678
  throw e;
716
679
  });
717
680
  }
718
- function Dt() {
681
+ function Ct() {
719
682
  }
720
- function Pe(e) {
683
+ function He(e) {
721
684
  e();
722
685
  }
723
- var br = function(e) {
724
- X(t, e);
686
+ var fr = function(e) {
687
+ V(t, e);
725
688
  function t(r) {
726
689
  var n = e.call(this) || this;
727
- return n.isStopped = !1, r ? (n.destination = r, gr(r) && r.add(n)) : n.destination = kn, n;
690
+ return n.isStopped = !1, r ? (n.destination = r, hr(r) && r.add(n)) : n.destination = Pn, n;
728
691
  }
729
692
  return t.create = function(r, n, i) {
730
- return new nt(r, n, i);
693
+ return new et(r, n, i);
731
694
  }, t.prototype.next = function(r) {
732
695
  this.isStopped || this._next(r);
733
696
  }, t.prototype.error = function(r) {
@@ -751,7 +714,7 @@ var br = function(e) {
751
714
  this.unsubscribe();
752
715
  }
753
716
  }, t;
754
- }(Le), Un = function() {
717
+ }(Ie), Bn = function() {
755
718
  function e(t) {
756
719
  this.partialObserver = t;
757
720
  }
@@ -761,7 +724,7 @@ var br = function(e) {
761
724
  try {
762
725
  r.next(t);
763
726
  } catch (n) {
764
- Te(n);
727
+ xe(n);
765
728
  }
766
729
  }, e.prototype.error = function(t) {
767
730
  var r = this.partialObserver;
@@ -769,56 +732,56 @@ var br = function(e) {
769
732
  try {
770
733
  r.error(t);
771
734
  } catch (n) {
772
- Te(n);
735
+ xe(n);
773
736
  }
774
737
  else
775
- Te(t);
738
+ xe(t);
776
739
  }, e.prototype.complete = function() {
777
740
  var t = this.partialObserver;
778
741
  if (t.complete)
779
742
  try {
780
743
  t.complete();
781
744
  } catch (r) {
782
- Te(r);
745
+ xe(r);
783
746
  }
784
747
  }, e;
785
- }(), nt = function(e) {
786
- X(t, e);
748
+ }(), et = function(e) {
749
+ V(t, e);
787
750
  function t(r, n, i) {
788
751
  var s = e.call(this) || this, o;
789
- return V(r) || !r ? o = {
790
- next: r != null ? r : void 0,
791
- error: n != null ? n : void 0,
792
- complete: i != null ? i : void 0
793
- } : o = r, s.destination = new Un(o), s;
752
+ return $(r) || !r ? o = {
753
+ next: r ?? void 0,
754
+ error: n ?? void 0,
755
+ complete: i ?? void 0
756
+ } : o = r, s.destination = new Bn(o), s;
794
757
  }
795
758
  return t;
796
- }(br);
797
- function Te(e) {
798
- Fn(e);
759
+ }(fr);
760
+ function xe(e) {
761
+ Hn(e);
799
762
  }
800
- function Gn(e) {
763
+ function An(e) {
801
764
  throw e;
802
765
  }
803
- var kn = {
766
+ var Pn = {
804
767
  closed: !0,
805
- next: Dt,
806
- error: Gn,
807
- complete: Dt
808
- }, jn = function() {
768
+ next: Ct,
769
+ error: An,
770
+ complete: Ct
771
+ }, On = function() {
809
772
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
810
773
  }();
811
- function $n(e) {
774
+ function Cn(e) {
812
775
  return e;
813
776
  }
814
- function Vn(e) {
815
- return e.length === 0 ? $n : e.length === 1 ? e[0] : function(r) {
777
+ function In(e) {
778
+ return e.length === 0 ? Cn : e.length === 1 ? e[0] : function(r) {
816
779
  return e.reduce(function(n, i) {
817
780
  return i(n);
818
781
  }, r);
819
782
  };
820
783
  }
821
- var Ft = function() {
784
+ var It = function() {
822
785
  function e(t) {
823
786
  t && (this._subscribe = t);
824
787
  }
@@ -826,10 +789,10 @@ var Ft = function() {
826
789
  var r = new e();
827
790
  return r.source = this, r.operator = t, r;
828
791
  }, e.prototype.subscribe = function(t, r, n) {
829
- var i = this, s = Wn(t) ? t : new nt(t, r, n);
830
- return Pe(function() {
831
- var o = i, a = o.operator, l = o.source;
832
- s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
792
+ var i = this, s = Ln(t) ? t : new et(t, r, n);
793
+ return He(function() {
794
+ var o = i, a = o.operator, h = o.source;
795
+ s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
833
796
  }), s;
834
797
  }, e.prototype._trySubscribe = function(t) {
835
798
  try {
@@ -839,13 +802,13 @@ var Ft = function() {
839
802
  }
840
803
  }, e.prototype.forEach = function(t, r) {
841
804
  var n = this;
842
- return r = Ut(r), new r(function(i, s) {
843
- var o = new nt({
805
+ return r = Rt(r), new r(function(i, s) {
806
+ var o = new et({
844
807
  next: function(a) {
845
808
  try {
846
809
  t(a);
847
- } catch (l) {
848
- s(l), o.unsubscribe();
810
+ } catch (h) {
811
+ s(h), o.unsubscribe();
849
812
  }
850
813
  },
851
814
  error: s,
@@ -856,15 +819,15 @@ var Ft = function() {
856
819
  }, e.prototype._subscribe = function(t) {
857
820
  var r;
858
821
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
859
- }, e.prototype[jn] = function() {
822
+ }, e.prototype[On] = function() {
860
823
  return this;
861
824
  }, e.prototype.pipe = function() {
862
825
  for (var t = [], r = 0; r < arguments.length; r++)
863
826
  t[r] = arguments[r];
864
- return Vn(t)(this);
827
+ return In(t)(this);
865
828
  }, e.prototype.toPromise = function(t) {
866
829
  var r = this;
867
- return t = Ut(t), new t(function(n, i) {
830
+ return t = Rt(t), new t(function(n, i) {
868
831
  var s;
869
832
  r.subscribe(function(o) {
870
833
  return s = o;
@@ -878,45 +841,45 @@ var Ft = function() {
878
841
  return new e(t);
879
842
  }, e;
880
843
  }();
881
- function Ut(e) {
844
+ function Rt(e) {
882
845
  var t;
883
- return (t = e != null ? e : Mn.Promise) !== null && t !== void 0 ? t : Promise;
846
+ return (t = e ?? Sn.Promise) !== null && t !== void 0 ? t : Promise;
884
847
  }
885
- function Xn(e) {
886
- return e && V(e.next) && V(e.error) && V(e.complete);
848
+ function Rn(e) {
849
+ return e && $(e.next) && $(e.error) && $(e.complete);
887
850
  }
888
- function Wn(e) {
889
- return e && e instanceof br || Xn(e) && gr(e);
851
+ function Ln(e) {
852
+ return e && e instanceof fr || Rn(e) && hr(e);
890
853
  }
891
- var zn = mr(function(e) {
854
+ var Nn = ur(function(e) {
892
855
  return function() {
893
856
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
894
857
  };
895
- }), yr = function(e) {
896
- X(t, e);
858
+ }), cr = function(e) {
859
+ V(t, e);
897
860
  function t() {
898
861
  var r = e.call(this) || this;
899
862
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
900
863
  }
901
864
  return t.prototype.lift = function(r) {
902
- var n = new Gt(this, this);
865
+ var n = new Lt(this, this);
903
866
  return n.operator = r, n;
904
867
  }, t.prototype._throwIfClosed = function() {
905
868
  if (this.closed)
906
- throw new zn();
869
+ throw new Nn();
907
870
  }, t.prototype.next = function(r) {
908
871
  var n = this;
909
- Pe(function() {
872
+ He(function() {
910
873
  var i, s;
911
874
  if (n._throwIfClosed(), !n.isStopped) {
912
875
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
913
876
  try {
914
- for (var o = et(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
915
- var l = a.value;
916
- l.next(r);
877
+ for (var o = Qe(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
878
+ var h = a.value;
879
+ h.next(r);
917
880
  }
918
- } catch (u) {
919
- i = { error: u };
881
+ } catch (l) {
882
+ i = { error: l };
920
883
  } finally {
921
884
  try {
922
885
  a && !a.done && (s = o.return) && s.call(o);
@@ -928,7 +891,7 @@ var zn = mr(function(e) {
928
891
  });
929
892
  }, t.prototype.error = function(r) {
930
893
  var n = this;
931
- Pe(function() {
894
+ He(function() {
932
895
  if (n._throwIfClosed(), !n.isStopped) {
933
896
  n.hasError = n.isStopped = !0, n.thrownError = r;
934
897
  for (var i = n.observers; i.length; )
@@ -937,7 +900,7 @@ var zn = mr(function(e) {
937
900
  });
938
901
  }, t.prototype.complete = function() {
939
902
  var r = this;
940
- Pe(function() {
903
+ He(function() {
941
904
  if (r._throwIfClosed(), !r.isStopped) {
942
905
  r.isStopped = !0;
943
906
  for (var n = r.observers; n.length; )
@@ -959,20 +922,20 @@ var zn = mr(function(e) {
959
922
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
960
923
  }, t.prototype._innerSubscribe = function(r) {
961
924
  var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
962
- return s || o ? pr : (this.currentObservers = null, a.push(r), new Le(function() {
963
- n.currentObservers = null, rt(a, r);
925
+ return s || o ? lr : (this.currentObservers = null, a.push(r), new Ie(function() {
926
+ n.currentObservers = null, Ke(a, r);
964
927
  }));
965
928
  }, t.prototype._checkFinalizedStatuses = function(r) {
966
929
  var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
967
930
  i ? r.error(s) : o && r.complete();
968
931
  }, t.prototype.asObservable = function() {
969
- var r = new Ft();
932
+ var r = new It();
970
933
  return r.source = this, r;
971
934
  }, t.create = function(r, n) {
972
- return new Gt(r, n);
935
+ return new Lt(r, n);
973
936
  }, t;
974
- }(Ft), Gt = function(e) {
975
- X(t, e);
937
+ }(It), Lt = function(e) {
938
+ V(t, e);
976
939
  function t(r, n) {
977
940
  var i = e.call(this) || this;
978
941
  return i.destination = r, i.source = n, i;
@@ -988,214 +951,214 @@ var zn = mr(function(e) {
988
951
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
989
952
  }, t.prototype._subscribe = function(r) {
990
953
  var n, i;
991
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : pr;
954
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : lr;
992
955
  }, t;
993
- }(yr), vr = {
956
+ }(cr), dr = {
994
957
  now: function() {
995
- return (vr.delegate || Date).now();
958
+ return (dr.delegate || Date).now();
996
959
  },
997
960
  delegate: void 0
998
- }, Zn = function(e) {
999
- X(t, e);
961
+ }, Mn = function(e) {
962
+ V(t, e);
1000
963
  function t(r, n, i) {
1001
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = vr);
964
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = dr);
1002
965
  var s = e.call(this) || this;
1003
966
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1004
967
  }
1005
968
  return t.prototype.next = function(r) {
1006
- var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1007
- i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
969
+ var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
970
+ i || (s.push(r), !o && s.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
1008
971
  }, t.prototype._subscribe = function(r) {
1009
972
  this._throwIfClosed(), this._trimBuffer();
1010
- for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
1011
- r.next(a[l]);
973
+ for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), h = 0; h < a.length && !r.closed; h += s ? 1 : 2)
974
+ r.next(a[h]);
1012
975
  return this._checkFinalizedStatuses(r), n;
1013
976
  }, t.prototype._trimBuffer = function() {
1014
977
  var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
1015
978
  if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
1016
- for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
1017
- u = h;
1018
- u && s.splice(0, u + 1);
979
+ for (var h = i.now(), l = 0, u = 1; u < s.length && s[u] <= h; u += 2)
980
+ l = u;
981
+ l && s.splice(0, l + 1);
1019
982
  }
1020
983
  }, t;
1021
- }(yr);
1022
- const kt = [], jt = {}, Jn = (e, t = 0) => {
1023
- if (kt.indexOf(e) == -1) {
1024
- const r = new Zn(t);
1025
- jt[e] = r, kt.push(e);
984
+ }(cr);
985
+ const Nt = [], Mt = {}, Dn = (e, t = 0) => {
986
+ if (Nt.indexOf(e) == -1) {
987
+ const r = new Mn(t);
988
+ Mt[e] = r, Nt.push(e);
1026
989
  }
1027
- return jt[e];
1028
- }, Q = [];
1029
- function qn(e, t) {
990
+ return Mt[e];
991
+ }, q = [];
992
+ function Fn(e, t) {
1030
993
  return {
1031
- subscribe: Ne(e, t).subscribe
994
+ subscribe: Re(e, t).subscribe
1032
995
  };
1033
996
  }
1034
- function Ne(e, t = k) {
997
+ function Re(e, t = k) {
1035
998
  let r;
1036
999
  const n = /* @__PURE__ */ new Set();
1037
1000
  function i(a) {
1038
- if (fr(e, a) && (e = a, r)) {
1039
- const l = !Q.length;
1040
- for (const u of n)
1041
- u[1](), Q.push(u, e);
1042
- if (l) {
1043
- for (let u = 0; u < Q.length; u += 2)
1044
- Q[u][0](Q[u + 1]);
1045
- Q.length = 0;
1001
+ if (sr(e, a) && (e = a, r)) {
1002
+ const h = !q.length;
1003
+ for (const l of n)
1004
+ l[1](), q.push(l, e);
1005
+ if (h) {
1006
+ for (let l = 0; l < q.length; l += 2)
1007
+ q[l][0](q[l + 1]);
1008
+ q.length = 0;
1046
1009
  }
1047
1010
  }
1048
1011
  }
1049
1012
  function s(a) {
1050
1013
  i(a(e));
1051
1014
  }
1052
- function o(a, l = k) {
1053
- const u = [a, l];
1054
- return n.add(u), n.size === 1 && (r = t(i, s) || k), a(e), () => {
1055
- n.delete(u), n.size === 0 && r && (r(), r = null);
1015
+ function o(a, h = k) {
1016
+ const l = [a, h];
1017
+ return n.add(l), n.size === 1 && (r = t(i, s) || k), a(e), () => {
1018
+ n.delete(l), n.size === 0 && r && (r(), r = null);
1056
1019
  };
1057
1020
  }
1058
1021
  return { set: i, update: s, subscribe: o };
1059
1022
  }
1060
- function oe(e, t, r) {
1023
+ function se(e, t, r) {
1061
1024
  const n = !Array.isArray(e), i = n ? [e] : e;
1062
1025
  if (!i.every(Boolean))
1063
1026
  throw new Error("derived() expects stores as input, got a falsy value");
1064
1027
  const s = t.length < 2;
1065
- return qn(r, (o, a) => {
1066
- let l = !1;
1067
- const u = [];
1068
- let h = 0, c = k;
1028
+ return Fn(r, (o, a) => {
1029
+ let h = !1;
1030
+ const l = [];
1031
+ let u = 0, c = k;
1069
1032
  const m = () => {
1070
- if (h)
1033
+ if (u)
1071
1034
  return;
1072
1035
  c();
1073
- const g = t(n ? u[0] : u, o, a);
1074
- s ? o(g) : c = ct(g) ? g : k;
1036
+ const g = t(n ? l[0] : l, o, a);
1037
+ s ? o(g) : c = lt(g) ? g : k;
1075
1038
  }, y = i.map(
1076
- (g, p) => cr(
1039
+ (g, p) => or(
1077
1040
  g,
1078
1041
  (b) => {
1079
- u[p] = b, h &= ~(1 << p), l && m();
1042
+ l[p] = b, u &= ~(1 << p), h && m();
1080
1043
  },
1081
1044
  () => {
1082
- h |= 1 << p;
1045
+ u |= 1 << p;
1083
1046
  }
1084
1047
  )
1085
1048
  );
1086
- return l = !0, m(), function() {
1087
- ge(y), c(), l = !1;
1049
+ return h = !0, m(), function() {
1050
+ pe(y), c(), h = !1;
1088
1051
  };
1089
1052
  });
1090
1053
  }
1091
- function Qn(e) {
1054
+ function Un(e) {
1092
1055
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1093
1056
  }
1094
- var Yn = function(t) {
1095
- return Kn(t) && !ei(t);
1057
+ var kn = function(t) {
1058
+ return Gn(t) && !jn(t);
1096
1059
  };
1097
- function Kn(e) {
1060
+ function Gn(e) {
1098
1061
  return !!e && typeof e == "object";
1099
1062
  }
1100
- function ei(e) {
1063
+ function jn(e) {
1101
1064
  var t = Object.prototype.toString.call(e);
1102
- return t === "[object RegExp]" || t === "[object Date]" || ni(e);
1065
+ return t === "[object RegExp]" || t === "[object Date]" || Xn(e);
1103
1066
  }
1104
- var ti = typeof Symbol == "function" && Symbol.for, ri = ti ? Symbol.for("react.element") : 60103;
1105
- function ni(e) {
1106
- return e.$$typeof === ri;
1067
+ var $n = typeof Symbol == "function" && Symbol.for, Vn = $n ? Symbol.for("react.element") : 60103;
1068
+ function Xn(e) {
1069
+ return e.$$typeof === Vn;
1107
1070
  }
1108
- function ii(e) {
1071
+ function Wn(e) {
1109
1072
  return Array.isArray(e) ? [] : {};
1110
1073
  }
1111
- function me(e, t) {
1112
- return t.clone !== !1 && t.isMergeableObject(e) ? re(ii(e), e, t) : e;
1074
+ function de(e, t) {
1075
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(Wn(e), e, t) : e;
1113
1076
  }
1114
- function si(e, t, r) {
1077
+ function zn(e, t, r) {
1115
1078
  return e.concat(t).map(function(n) {
1116
- return me(n, r);
1079
+ return de(n, r);
1117
1080
  });
1118
1081
  }
1119
- function oi(e, t) {
1082
+ function Zn(e, t) {
1120
1083
  if (!t.customMerge)
1121
- return re;
1084
+ return te;
1122
1085
  var r = t.customMerge(e);
1123
- return typeof r == "function" ? r : re;
1086
+ return typeof r == "function" ? r : te;
1124
1087
  }
1125
- function ai(e) {
1088
+ function Jn(e) {
1126
1089
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1127
1090
  return Object.propertyIsEnumerable.call(e, t);
1128
1091
  }) : [];
1129
1092
  }
1130
- function $t(e) {
1131
- return Object.keys(e).concat(ai(e));
1093
+ function Dt(e) {
1094
+ return Object.keys(e).concat(Jn(e));
1132
1095
  }
1133
- function _r(e, t) {
1096
+ function mr(e, t) {
1134
1097
  try {
1135
1098
  return t in e;
1136
- } catch (r) {
1099
+ } catch {
1137
1100
  return !1;
1138
1101
  }
1139
1102
  }
1140
- function ui(e, t) {
1141
- return _r(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1103
+ function qn(e, t) {
1104
+ return mr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1142
1105
  }
1143
- function li(e, t, r) {
1106
+ function Qn(e, t, r) {
1144
1107
  var n = {};
1145
- return r.isMergeableObject(e) && $t(e).forEach(function(i) {
1146
- n[i] = me(e[i], r);
1147
- }), $t(t).forEach(function(i) {
1148
- ui(e, i) || (_r(e, i) && r.isMergeableObject(t[i]) ? n[i] = oi(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1108
+ return r.isMergeableObject(e) && Dt(e).forEach(function(i) {
1109
+ n[i] = de(e[i], r);
1110
+ }), Dt(t).forEach(function(i) {
1111
+ qn(e, i) || (mr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
1149
1112
  }), n;
1150
1113
  }
1151
- function re(e, t, r) {
1152
- r = r || {}, r.arrayMerge = r.arrayMerge || si, r.isMergeableObject = r.isMergeableObject || Yn, r.cloneUnlessOtherwiseSpecified = me;
1114
+ function te(e, t, r) {
1115
+ r = r || {}, r.arrayMerge = r.arrayMerge || zn, r.isMergeableObject = r.isMergeableObject || kn, r.cloneUnlessOtherwiseSpecified = de;
1153
1116
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1154
- return s ? n ? r.arrayMerge(e, t, r) : li(e, t, r) : me(t, r);
1117
+ return s ? n ? r.arrayMerge(e, t, r) : Qn(e, t, r) : de(t, r);
1155
1118
  }
1156
- re.all = function(t, r) {
1119
+ te.all = function(t, r) {
1157
1120
  if (!Array.isArray(t))
1158
1121
  throw new Error("first argument should be an array");
1159
1122
  return t.reduce(function(n, i) {
1160
- return re(n, i, r);
1123
+ return te(n, i, r);
1161
1124
  }, {});
1162
1125
  };
1163
- var hi = re, fi = hi;
1164
- const ci = /* @__PURE__ */ Qn(fi);
1165
- function We(e, t) {
1166
- var r = t && t.cache ? t.cache : vi, n = t && t.serializer ? t.serializer : bi, i = t && t.strategy ? t.strategy : mi;
1126
+ var Yn = te, Kn = Yn;
1127
+ const ei = /* @__PURE__ */ Un(Kn);
1128
+ function $e(e, t) {
1129
+ var r = t && t.cache ? t.cache : ai, n = t && t.serializer ? t.serializer : si, i = t && t.strategy ? t.strategy : ri;
1167
1130
  return i(e, {
1168
1131
  cache: r,
1169
1132
  serializer: n
1170
1133
  });
1171
1134
  }
1172
- function di(e) {
1135
+ function ti(e) {
1173
1136
  return e == null || typeof e == "number" || typeof e == "boolean";
1174
1137
  }
1175
- function Er(e, t, r, n) {
1176
- var i = di(n) ? n : r(n), s = t.get(i);
1177
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1138
+ function pr(e, t, r, n) {
1139
+ var i = ti(n) ? n : r(n), s = t.get(i);
1140
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1178
1141
  }
1179
- function wr(e, t, r) {
1142
+ function gr(e, t, r) {
1180
1143
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1181
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1144
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1182
1145
  }
1183
- function dt(e, t, r, n, i) {
1146
+ function ht(e, t, r, n, i) {
1184
1147
  return r.bind(t, e, n, i);
1185
1148
  }
1186
- function mi(e, t) {
1187
- var r = e.length === 1 ? Er : wr;
1188
- return dt(e, this, r, t.cache.create(), t.serializer);
1149
+ function ri(e, t) {
1150
+ var r = e.length === 1 ? pr : gr;
1151
+ return ht(e, this, r, t.cache.create(), t.serializer);
1189
1152
  }
1190
- function pi(e, t) {
1191
- return dt(e, this, wr, t.cache.create(), t.serializer);
1153
+ function ni(e, t) {
1154
+ return ht(e, this, gr, t.cache.create(), t.serializer);
1192
1155
  }
1193
- function gi(e, t) {
1194
- return dt(e, this, Er, t.cache.create(), t.serializer);
1156
+ function ii(e, t) {
1157
+ return ht(e, this, pr, t.cache.create(), t.serializer);
1195
1158
  }
1196
- var bi = function() {
1159
+ var si = function() {
1197
1160
  return JSON.stringify(arguments);
1198
- }, yi = (
1161
+ }, oi = (
1199
1162
  /** @class */
1200
1163
  function() {
1201
1164
  function e() {
@@ -1207,13 +1170,13 @@ var bi = function() {
1207
1170
  this.cache[t] = r;
1208
1171
  }, e;
1209
1172
  }()
1210
- ), vi = {
1173
+ ), ai = {
1211
1174
  create: function() {
1212
- return new yi();
1175
+ return new oi();
1213
1176
  }
1214
- }, ze = {
1215
- variadic: pi,
1216
- monadic: gi
1177
+ }, Ve = {
1178
+ variadic: ni,
1179
+ monadic: ii
1217
1180
  }, v;
1218
1181
  (function(e) {
1219
1182
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
@@ -1222,47 +1185,47 @@ var H;
1222
1185
  (function(e) {
1223
1186
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1224
1187
  })(H || (H = {}));
1225
- var ne;
1188
+ var re;
1226
1189
  (function(e) {
1227
1190
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1228
- })(ne || (ne = {}));
1229
- function Vt(e) {
1191
+ })(re || (re = {}));
1192
+ function Ft(e) {
1230
1193
  return e.type === H.literal;
1231
1194
  }
1232
- function _i(e) {
1195
+ function ui(e) {
1233
1196
  return e.type === H.argument;
1234
1197
  }
1235
- function xr(e) {
1198
+ function br(e) {
1236
1199
  return e.type === H.number;
1237
1200
  }
1238
- function Sr(e) {
1201
+ function yr(e) {
1239
1202
  return e.type === H.date;
1240
1203
  }
1241
- function Tr(e) {
1204
+ function vr(e) {
1242
1205
  return e.type === H.time;
1243
1206
  }
1244
- function Hr(e) {
1207
+ function _r(e) {
1245
1208
  return e.type === H.select;
1246
1209
  }
1247
- function Br(e) {
1210
+ function Er(e) {
1248
1211
  return e.type === H.plural;
1249
1212
  }
1250
- function Ei(e) {
1213
+ function li(e) {
1251
1214
  return e.type === H.pound;
1252
1215
  }
1253
- function Pr(e) {
1216
+ function wr(e) {
1254
1217
  return e.type === H.tag;
1255
1218
  }
1256
- function Ar(e) {
1257
- return !!(e && typeof e == "object" && e.type === ne.number);
1219
+ function xr(e) {
1220
+ return !!(e && typeof e == "object" && e.type === re.number);
1258
1221
  }
1259
- function it(e) {
1260
- return !!(e && typeof e == "object" && e.type === ne.dateTime);
1222
+ function tt(e) {
1223
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
1261
1224
  }
1262
- var Or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1263
- function xi(e) {
1225
+ var Sr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1226
+ function fi(e) {
1264
1227
  var t = {};
1265
- return e.replace(wi, function(r) {
1228
+ return e.replace(hi, function(r) {
1266
1229
  var n = r.length;
1267
1230
  switch (r[0]) {
1268
1231
  case "G":
@@ -1351,36 +1314,36 @@ function xi(e) {
1351
1314
  return "";
1352
1315
  }), t;
1353
1316
  }
1354
- var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1355
- function Ti(e) {
1317
+ var ci = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1318
+ function di(e) {
1356
1319
  if (e.length === 0)
1357
1320
  throw new Error("Number skeleton cannot be empty");
1358
- for (var t = e.split(Si).filter(function(m) {
1321
+ for (var t = e.split(ci).filter(function(m) {
1359
1322
  return m.length > 0;
1360
1323
  }), r = [], n = 0, i = t; n < i.length; n++) {
1361
1324
  var s = i[n], o = s.split("/");
1362
1325
  if (o.length === 0)
1363
1326
  throw new Error("Invalid number skeleton");
1364
- for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
1365
- var c = h[u];
1327
+ for (var a = o[0], h = o.slice(1), l = 0, u = h; l < u.length; l++) {
1328
+ var c = u[l];
1366
1329
  if (c.length === 0)
1367
1330
  throw new Error("Invalid number skeleton");
1368
1331
  }
1369
- r.push({ stem: a, options: l });
1332
+ r.push({ stem: a, options: h });
1370
1333
  }
1371
1334
  return r;
1372
1335
  }
1373
- function Hi(e) {
1336
+ function mi(e) {
1374
1337
  return e.replace(/^(.*?)-/, "");
1375
1338
  }
1376
- var Xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, Bi = /(\*)(0+)|(#+)(0+)|(0+)/g, Ir = /^(0+)$/;
1377
- function Wt(e) {
1339
+ var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Hr = /^(0+)$/;
1340
+ function kt(e) {
1378
1341
  var t = {};
1379
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
1342
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(r, n, i) {
1380
1343
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1381
1344
  }), t;
1382
1345
  }
1383
- function Rr(e) {
1346
+ function Br(e) {
1384
1347
  switch (e) {
1385
1348
  case "sign-auto":
1386
1349
  return {
@@ -1420,7 +1383,7 @@ function Rr(e) {
1420
1383
  };
1421
1384
  }
1422
1385
  }
1423
- function Pi(e) {
1386
+ function gi(e) {
1424
1387
  var t;
1425
1388
  if (e[0] === "E" && e[1] === "E" ? (t = {
1426
1389
  notation: "engineering"
@@ -1428,17 +1391,17 @@ function Pi(e) {
1428
1391
  notation: "scientific"
1429
1392
  }, e = e.slice(1)), t) {
1430
1393
  var r = e.slice(0, 2);
1431
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ir.test(e))
1394
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Hr.test(e))
1432
1395
  throw new Error("Malformed concise eng/scientific notation");
1433
1396
  t.minimumIntegerDigits = e.length;
1434
1397
  }
1435
1398
  return t;
1436
1399
  }
1437
- function zt(e) {
1438
- var t = {}, r = Rr(e);
1400
+ function Gt(e) {
1401
+ var t = {}, r = Br(e);
1439
1402
  return r || t;
1440
1403
  }
1441
- function Ai(e) {
1404
+ function bi(e) {
1442
1405
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1443
1406
  var i = n[r];
1444
1407
  switch (i.stem) {
@@ -1462,7 +1425,7 @@ function Ai(e) {
1462
1425
  continue;
1463
1426
  case "measure-unit":
1464
1427
  case "unit":
1465
- t.style = "unit", t.unit = Hi(i.options[0]);
1428
+ t.style = "unit", t.unit = mi(i.options[0]);
1466
1429
  continue;
1467
1430
  case "compact-short":
1468
1431
  case "K":
@@ -1473,13 +1436,13 @@ function Ai(e) {
1473
1436
  t.notation = "compact", t.compactDisplay = "long";
1474
1437
  continue;
1475
1438
  case "scientific":
1476
- t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1477
- return w(w({}, l), zt(u));
1439
+ t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1440
+ return w(w({}, h), Gt(l));
1478
1441
  }, {}));
1479
1442
  continue;
1480
1443
  case "engineering":
1481
- t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1482
- return w(w({}, l), zt(u));
1444
+ t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1445
+ return w(w({}, h), Gt(l));
1483
1446
  }, {}));
1484
1447
  continue;
1485
1448
  case "notation-simple":
@@ -1524,9 +1487,9 @@ function Ai(e) {
1524
1487
  case "integer-width":
1525
1488
  if (i.options.length > 1)
1526
1489
  throw new RangeError("integer-width stems only accept a single optional option");
1527
- i.options[0].replace(Bi, function(l, u, h, c, m, y) {
1528
- if (u)
1529
- t.minimumIntegerDigits = h.length;
1490
+ i.options[0].replace(pi, function(h, l, u, c, m, y) {
1491
+ if (l)
1492
+ t.minimumIntegerDigits = u.length;
1530
1493
  else {
1531
1494
  if (c && m)
1532
1495
  throw new Error("We currently do not support maximum integer digits");
@@ -1537,32 +1500,32 @@ function Ai(e) {
1537
1500
  });
1538
1501
  continue;
1539
1502
  }
1540
- if (Ir.test(i.stem)) {
1503
+ if (Hr.test(i.stem)) {
1541
1504
  t.minimumIntegerDigits = i.stem.length;
1542
1505
  continue;
1543
1506
  }
1544
- if (Xt.test(i.stem)) {
1507
+ if (Ut.test(i.stem)) {
1545
1508
  if (i.options.length > 1)
1546
1509
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1547
- i.stem.replace(Xt, function(l, u, h, c, m, y) {
1548
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1510
+ i.stem.replace(Ut, function(h, l, u, c, m, y) {
1511
+ return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1549
1512
  });
1550
1513
  var s = i.options[0];
1551
- s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), Wt(s)));
1514
+ s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), kt(s)));
1552
1515
  continue;
1553
1516
  }
1554
- if (Cr.test(i.stem)) {
1555
- t = w(w({}, t), Wt(i.stem));
1517
+ if (Tr.test(i.stem)) {
1518
+ t = w(w({}, t), kt(i.stem));
1556
1519
  continue;
1557
1520
  }
1558
- var o = Rr(i.stem);
1521
+ var o = Br(i.stem);
1559
1522
  o && (t = w(w({}, t), o));
1560
- var a = Pi(i.stem);
1523
+ var a = gi(i.stem);
1561
1524
  a && (t = w(w({}, t), a));
1562
1525
  }
1563
1526
  return t;
1564
1527
  }
1565
- var He = {
1528
+ var Se = {
1566
1529
  "001": [
1567
1530
  "H",
1568
1531
  "h"
@@ -2977,22 +2940,22 @@ var He = {
2977
2940
  "h"
2978
2941
  ]
2979
2942
  };
2980
- function Oi(e, t) {
2943
+ function yi(e, t) {
2981
2944
  for (var r = "", n = 0; n < e.length; n++) {
2982
2945
  var i = e.charAt(n);
2983
2946
  if (i === "j") {
2984
2947
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2985
2948
  s++, n++;
2986
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ci(t);
2987
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2988
- r += l;
2949
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = vi(t);
2950
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2951
+ r += h;
2989
2952
  for (; o-- > 0; )
2990
- r = u + r;
2953
+ r = l + r;
2991
2954
  } else i === "J" ? r += "H" : r += i;
2992
2955
  }
2993
2956
  return r;
2994
2957
  }
2995
- function Ci(e) {
2958
+ function vi(e) {
2996
2959
  var t = e.hourCycle;
2997
2960
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2998
2961
  e.hourCycles && // @ts-ignore
@@ -3011,23 +2974,23 @@ function Ci(e) {
3011
2974
  }
3012
2975
  var r = e.language, n;
3013
2976
  r !== "root" && (n = e.maximize().region);
3014
- var i = He[n || ""] || He[r || ""] || He["".concat(r, "-001")] || He["001"];
2977
+ var i = Se[n || ""] || Se[r || ""] || Se["".concat(r, "-001")] || Se["001"];
3015
2978
  return i[0];
3016
2979
  }
3017
- var Ze, Ii = new RegExp("^".concat(Or.source, "*")), Ri = new RegExp("".concat(Or.source, "*$"));
2980
+ var Xe, _i = new RegExp("^".concat(Sr.source, "*")), Ei = new RegExp("".concat(Sr.source, "*$"));
3018
2981
  function _(e, t) {
3019
2982
  return { start: e, end: t };
3020
2983
  }
3021
- var Li = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ni = !!String.fromCodePoint, Mi = !!Object.fromEntries, Di = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Ui = !!String.prototype.trimEnd, Gi = !!Number.isSafeInteger, ki = Gi ? Number.isSafeInteger : function(e) {
2984
+ var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), xi = !!String.fromCodePoint, Si = !!Object.fromEntries, Ti = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ai = !!Number.isSafeInteger, Pi = Ai ? Number.isSafeInteger : function(e) {
3022
2985
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3023
- }, st = !0;
2986
+ }, rt = !0;
3024
2987
  try {
3025
- var ji = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3026
- st = ((Ze = ji.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
3027
- } catch (e) {
3028
- st = !1;
2988
+ var Oi = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2989
+ rt = ((Xe = Oi.exec("a")) === null || Xe === void 0 ? void 0 : Xe[0]) === "a";
2990
+ } catch {
2991
+ rt = !1;
3029
2992
  }
3030
- var Zt = Li ? (
2993
+ var jt = wi ? (
3031
2994
  // Native
3032
2995
  function(t, r, n) {
3033
2996
  return t.startsWith(r, n);
@@ -3037,7 +3000,7 @@ var Zt = Li ? (
3037
3000
  function(t, r, n) {
3038
3001
  return t.slice(n, n + r.length) === r;
3039
3002
  }
3040
- ), ot = Ni ? String.fromCodePoint : (
3003
+ ), nt = xi ? String.fromCodePoint : (
3041
3004
  // IE11
3042
3005
  function() {
3043
3006
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3049,9 +3012,9 @@ var Zt = Li ? (
3049
3012
  }
3050
3013
  return n;
3051
3014
  }
3052
- ), Jt = (
3015
+ ), $t = (
3053
3016
  // native
3054
- Mi ? Object.fromEntries : (
3017
+ Si ? Object.fromEntries : (
3055
3018
  // Ponyfill
3056
3019
  function(t) {
3057
3020
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3061,7 +3024,7 @@ var Zt = Li ? (
3061
3024
  return r;
3062
3025
  }
3063
3026
  )
3064
- ), Lr = Di ? (
3027
+ ), Ar = Ti ? (
3065
3028
  // Native
3066
3029
  function(t, r) {
3067
3030
  return t.codePointAt(r);
@@ -3075,7 +3038,7 @@ var Zt = Li ? (
3075
3038
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3076
3039
  }
3077
3040
  }
3078
- ), $i = Fi ? (
3041
+ ), Ci = Hi ? (
3079
3042
  // Native
3080
3043
  function(t) {
3081
3044
  return t.trimStart();
@@ -3083,9 +3046,9 @@ var Zt = Li ? (
3083
3046
  ) : (
3084
3047
  // Ponyfill
3085
3048
  function(t) {
3086
- return t.replace(Ii, "");
3049
+ return t.replace(_i, "");
3087
3050
  }
3088
- ), Vi = Ui ? (
3051
+ ), Ii = Bi ? (
3089
3052
  // Native
3090
3053
  function(t) {
3091
3054
  return t.trimEnd();
@@ -3093,32 +3056,32 @@ var Zt = Li ? (
3093
3056
  ) : (
3094
3057
  // Ponyfill
3095
3058
  function(t) {
3096
- return t.replace(Ri, "");
3059
+ return t.replace(Ei, "");
3097
3060
  }
3098
3061
  );
3099
- function Nr(e, t) {
3062
+ function Pr(e, t) {
3100
3063
  return new RegExp(e, t);
3101
3064
  }
3102
- var at;
3103
- if (st) {
3104
- var qt = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3105
- at = function(t, r) {
3065
+ var it;
3066
+ if (rt) {
3067
+ var Vt = Pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3068
+ it = function(t, r) {
3106
3069
  var n;
3107
- qt.lastIndex = r;
3108
- var i = qt.exec(t);
3070
+ Vt.lastIndex = r;
3071
+ var i = Vt.exec(t);
3109
3072
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3110
3073
  };
3111
3074
  } else
3112
- at = function(t, r) {
3075
+ it = function(t, r) {
3113
3076
  for (var n = []; ; ) {
3114
- var i = Lr(t, r);
3115
- if (i === void 0 || Mr(i) || Zi(i))
3077
+ var i = Ar(t, r);
3078
+ if (i === void 0 || Or(i) || Mi(i))
3116
3079
  break;
3117
3080
  n.push(i), r += i >= 65536 ? 2 : 1;
3118
3081
  }
3119
- return ot.apply(void 0, n);
3082
+ return nt.apply(void 0, n);
3120
3083
  };
3121
- var Xi = (
3084
+ var Ri = (
3122
3085
  /** @class */
3123
3086
  function() {
3124
3087
  function e(t, r) {
@@ -3149,7 +3112,7 @@ var Xi = (
3149
3112
  if (n)
3150
3113
  break;
3151
3114
  return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3152
- } else if (s === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
3115
+ } else if (s === 60 && !this.ignoreTag && st(this.peek() || 0)) {
3153
3116
  var o = this.parseTag(t, r);
3154
3117
  if (o.err)
3155
3118
  return o;
@@ -3182,10 +3145,10 @@ var Xi = (
3182
3145
  return s;
3183
3146
  var o = s.val, a = this.clonePosition();
3184
3147
  if (this.bumpIf("</")) {
3185
- if (this.isEOF() || !ut(this.char()))
3148
+ if (this.isEOF() || !st(this.char()))
3186
3149
  return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3187
- var l = this.clonePosition(), u = this.parseTagName();
3188
- return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3150
+ var h = this.clonePosition(), l = this.parseTagName();
3151
+ return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3189
3152
  val: {
3190
3153
  type: H.tag,
3191
3154
  value: i,
@@ -3200,7 +3163,7 @@ var Xi = (
3200
3163
  return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3201
3164
  }, e.prototype.parseTagName = function() {
3202
3165
  var t = this.offset();
3203
- for (this.bump(); !this.isEOF() && zi(this.char()); )
3166
+ for (this.bump(); !this.isEOF() && Ni(this.char()); )
3204
3167
  this.bump();
3205
3168
  return this.message.slice(t, this.offset());
3206
3169
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3222,14 +3185,14 @@ var Xi = (
3222
3185
  }
3223
3186
  break;
3224
3187
  }
3225
- var l = _(n, this.clonePosition());
3188
+ var h = _(n, this.clonePosition());
3226
3189
  return {
3227
- val: { type: H.literal, value: i, location: l },
3190
+ val: { type: H.literal, value: i, location: h },
3228
3191
  err: null
3229
3192
  };
3230
3193
  }, e.prototype.tryParseLeftAngleBracket = function() {
3231
3194
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3232
- !Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
3195
+ !Li(this.peek() || 0)) ? (this.bump(), "<") : null;
3233
3196
  }, e.prototype.tryParseQuote = function(t) {
3234
3197
  if (this.isEOF() || this.char() !== 39)
3235
3198
  return null;
@@ -3263,12 +3226,12 @@ var Xi = (
3263
3226
  r.push(n);
3264
3227
  this.bump();
3265
3228
  }
3266
- return ot.apply(void 0, r);
3229
+ return nt.apply(void 0, r);
3267
3230
  }, e.prototype.tryParseUnquoted = function(t, r) {
3268
3231
  if (this.isEOF())
3269
3232
  return null;
3270
3233
  var n = this.char();
3271
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ot(n));
3234
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), nt(n));
3272
3235
  }, e.prototype.parseArgument = function(t, r) {
3273
3236
  var n = this.clonePosition();
3274
3237
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3297,39 +3260,39 @@ var Xi = (
3297
3260
  return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3298
3261
  }
3299
3262
  }, e.prototype.parseIdentifierIfPossible = function() {
3300
- var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
3263
+ var t = this.clonePosition(), r = this.offset(), n = it(this.message, r), i = r + n.length;
3301
3264
  this.bumpTo(i);
3302
3265
  var s = this.clonePosition(), o = _(t, s);
3303
3266
  return { value: n, location: o };
3304
3267
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3305
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3268
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3306
3269
  switch (a) {
3307
3270
  case "":
3308
- return this.error(v.EXPECT_ARGUMENT_TYPE, _(o, l));
3271
+ return this.error(v.EXPECT_ARGUMENT_TYPE, _(o, h));
3309
3272
  case "number":
3310
3273
  case "date":
3311
3274
  case "time": {
3312
3275
  this.bumpSpace();
3313
- var u = null;
3276
+ var l = null;
3314
3277
  if (this.bumpIf(",")) {
3315
3278
  this.bumpSpace();
3316
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3279
+ var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3317
3280
  if (c.err)
3318
3281
  return c;
3319
- var m = Vi(c.val);
3282
+ var m = Ii(c.val);
3320
3283
  if (m.length === 0)
3321
3284
  return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3322
- var y = _(h, this.clonePosition());
3323
- u = { style: m, styleLocation: y };
3285
+ var y = _(u, this.clonePosition());
3286
+ l = { style: m, styleLocation: y };
3324
3287
  }
3325
3288
  var g = this.tryParseArgumentClose(i);
3326
3289
  if (g.err)
3327
3290
  return g;
3328
3291
  var p = _(i, this.clonePosition());
3329
- if (u && Zt(u == null ? void 0 : u.style, "::", 0)) {
3330
- var b = $i(u.style.slice(2));
3292
+ if (l && jt(l?.style, "::", 0)) {
3293
+ var b = Ci(l.style.slice(2));
3331
3294
  if (a === "number") {
3332
- var c = this.parseNumberSkeletonFromString(b, u.styleLocation);
3295
+ var c = this.parseNumberSkeletonFromString(b, l.styleLocation);
3333
3296
  return c.err ? c : {
3334
3297
  val: { type: H.number, value: n, location: p, style: c.val },
3335
3298
  err: null
@@ -3338,12 +3301,12 @@ var Xi = (
3338
3301
  if (b.length === 0)
3339
3302
  return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
3340
3303
  var x = b;
3341
- this.locale && (x = Oi(b, this.locale));
3304
+ this.locale && (x = yi(b, this.locale));
3342
3305
  var m = {
3343
- type: ne.dateTime,
3306
+ type: re.dateTime,
3344
3307
  pattern: x,
3345
- location: u.styleLocation,
3346
- parsedOptions: this.shouldParseSkeletons ? xi(x) : {}
3308
+ location: l.styleLocation,
3309
+ parsedOptions: this.shouldParseSkeletons ? fi(x) : {}
3347
3310
  }, I = a === "date" ? H.date : H.time;
3348
3311
  return {
3349
3312
  val: { type: I, value: n, location: p, style: m },
@@ -3356,7 +3319,7 @@ var Xi = (
3356
3319
  type: a === "number" ? H.number : a === "date" ? H.date : H.time,
3357
3320
  value: n,
3358
3321
  location: p,
3359
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3322
+ style: (s = l?.style) !== null && s !== void 0 ? s : null
3360
3323
  },
3361
3324
  err: null
3362
3325
  };
@@ -3389,7 +3352,7 @@ var Xi = (
3389
3352
  val: {
3390
3353
  type: H.select,
3391
3354
  value: n,
3392
- options: Jt(R.val),
3355
+ options: $t(R.val),
3393
3356
  location: C
3394
3357
  },
3395
3358
  err: null
@@ -3397,7 +3360,7 @@ var Xi = (
3397
3360
  val: {
3398
3361
  type: H.plural,
3399
3362
  value: n,
3400
- options: Jt(R.val),
3363
+ options: $t(R.val),
3401
3364
  offset: N,
3402
3365
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3403
3366
  location: C
@@ -3406,7 +3369,7 @@ var Xi = (
3406
3369
  };
3407
3370
  }
3408
3371
  default:
3409
- return this.error(v.INVALID_ARGUMENT_TYPE, _(o, l));
3372
+ return this.error(v.INVALID_ARGUMENT_TYPE, _(o, h));
3410
3373
  }
3411
3374
  }, e.prototype.tryParseArgumentClose = function(t) {
3412
3375
  return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3448,34 +3411,34 @@ var Xi = (
3448
3411
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3449
3412
  var n = [];
3450
3413
  try {
3451
- n = Ti(t);
3452
- } catch (i) {
3414
+ n = di(t);
3415
+ } catch {
3453
3416
  return this.error(v.INVALID_NUMBER_SKELETON, r);
3454
3417
  }
3455
3418
  return {
3456
3419
  val: {
3457
- type: ne.number,
3420
+ type: re.number,
3458
3421
  tokens: n,
3459
3422
  location: r,
3460
- parsedOptions: this.shouldParseSkeletons ? Ai(n) : {}
3423
+ parsedOptions: this.shouldParseSkeletons ? bi(n) : {}
3461
3424
  },
3462
3425
  err: null
3463
3426
  };
3464
3427
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3465
- for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3466
- if (u.length === 0) {
3428
+ for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
3429
+ if (l.length === 0) {
3467
3430
  var c = this.clonePosition();
3468
3431
  if (r !== "select" && this.bumpIf("=")) {
3469
3432
  var m = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3470
3433
  if (m.err)
3471
3434
  return m;
3472
- h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3435
+ u = _(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
3473
3436
  } else
3474
3437
  break;
3475
3438
  }
3476
- if (l.has(u))
3477
- return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3478
- u === "other" && (o = !0), this.bumpSpace();
3439
+ if (h.has(l))
3440
+ return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3441
+ l === "other" && (o = !0), this.bumpSpace();
3479
3442
  var y = this.clonePosition();
3480
3443
  if (!this.bumpIf("{"))
3481
3444
  return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
@@ -3486,12 +3449,12 @@ var Xi = (
3486
3449
  if (p.err)
3487
3450
  return p;
3488
3451
  a.push([
3489
- u,
3452
+ l,
3490
3453
  {
3491
3454
  value: g.val,
3492
3455
  location: _(y, this.clonePosition())
3493
3456
  }
3494
- ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3457
+ ]), h.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, u = s.location;
3495
3458
  }
3496
3459
  return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(v.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3497
3460
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3504,8 +3467,8 @@ var Xi = (
3504
3467
  else
3505
3468
  break;
3506
3469
  }
3507
- var l = _(i, this.clonePosition());
3508
- return s ? (o *= n, ki(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3470
+ var h = _(i, this.clonePosition());
3471
+ return s ? (o *= n, Pi(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3509
3472
  }, e.prototype.offset = function() {
3510
3473
  return this.position.offset;
3511
3474
  }, e.prototype.isEOF = function() {
@@ -3520,7 +3483,7 @@ var Xi = (
3520
3483
  var t = this.position.offset;
3521
3484
  if (t >= this.message.length)
3522
3485
  throw Error("out of bound");
3523
- var r = Lr(this.message, t);
3486
+ var r = Ar(this.message, t);
3524
3487
  if (r === void 0)
3525
3488
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3526
3489
  return r;
@@ -3539,7 +3502,7 @@ var Xi = (
3539
3502
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3540
3503
  }
3541
3504
  }, e.prototype.bumpIf = function(t) {
3542
- if (Zt(this.message, t, this.offset())) {
3505
+ if (jt(this.message, t, this.offset())) {
3543
3506
  for (var r = 0; r < t.length; r++)
3544
3507
  this.bump();
3545
3508
  return !0;
@@ -3561,56 +3524,56 @@ var Xi = (
3561
3524
  break;
3562
3525
  }
3563
3526
  }, e.prototype.bumpSpace = function() {
3564
- for (; !this.isEOF() && Mr(this.char()); )
3527
+ for (; !this.isEOF() && Or(this.char()); )
3565
3528
  this.bump();
3566
3529
  }, e.prototype.peek = function() {
3567
3530
  if (this.isEOF())
3568
3531
  return null;
3569
3532
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3570
- return n != null ? n : null;
3533
+ return n ?? null;
3571
3534
  }, e;
3572
3535
  }()
3573
3536
  );
3574
- function ut(e) {
3537
+ function st(e) {
3575
3538
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3576
3539
  }
3577
- function Wi(e) {
3578
- return ut(e) || e === 47;
3540
+ function Li(e) {
3541
+ return st(e) || e === 47;
3579
3542
  }
3580
- function zi(e) {
3543
+ function Ni(e) {
3581
3544
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3582
3545
  }
3583
- function Mr(e) {
3546
+ function Or(e) {
3584
3547
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3585
3548
  }
3586
- function Zi(e) {
3549
+ function Mi(e) {
3587
3550
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3588
3551
  }
3589
- function lt(e) {
3552
+ function ot(e) {
3590
3553
  e.forEach(function(t) {
3591
- if (delete t.location, Hr(t) || Br(t))
3554
+ if (delete t.location, _r(t) || Er(t))
3592
3555
  for (var r in t.options)
3593
- delete t.options[r].location, lt(t.options[r].value);
3594
- else xr(t) && Ar(t.style) || (Sr(t) || Tr(t)) && it(t.style) ? delete t.style.location : Pr(t) && lt(t.children);
3556
+ delete t.options[r].location, ot(t.options[r].value);
3557
+ else br(t) && xr(t.style) || (yr(t) || vr(t)) && tt(t.style) ? delete t.style.location : wr(t) && ot(t.children);
3595
3558
  });
3596
3559
  }
3597
- function Ji(e, t) {
3560
+ function Di(e, t) {
3598
3561
  t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3599
- var r = new Xi(e, t).parse();
3562
+ var r = new Ri(e, t).parse();
3600
3563
  if (r.err) {
3601
3564
  var n = SyntaxError(v[r.err.kind]);
3602
3565
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3603
3566
  }
3604
- return t != null && t.captureLocation || lt(r.val), r.val;
3567
+ return t?.captureLocation || ot(r.val), r.val;
3605
3568
  }
3606
- var ie;
3569
+ var ne;
3607
3570
  (function(e) {
3608
3571
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3609
- })(ie || (ie = {}));
3610
- var Me = (
3572
+ })(ne || (ne = {}));
3573
+ var Le = (
3611
3574
  /** @class */
3612
3575
  function(e) {
3613
- X(t, e);
3576
+ V(t, e);
3614
3577
  function t(r, n, i) {
3615
3578
  var s = e.call(this, r) || this;
3616
3579
  return s.code = n, s.originalMessage = i, s;
@@ -3619,110 +3582,110 @@ var Me = (
3619
3582
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3620
3583
  }, t;
3621
3584
  }(Error)
3622
- ), Qt = (
3585
+ ), Xt = (
3623
3586
  /** @class */
3624
3587
  function(e) {
3625
- X(t, e);
3588
+ V(t, e);
3626
3589
  function t(r, n, i, s) {
3627
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
3590
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, s) || this;
3628
3591
  }
3629
3592
  return t;
3630
- }(Me)
3631
- ), qi = (
3593
+ }(Le)
3594
+ ), Fi = (
3632
3595
  /** @class */
3633
3596
  function(e) {
3634
- X(t, e);
3597
+ V(t, e);
3635
3598
  function t(r, n, i) {
3636
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3599
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3637
3600
  }
3638
3601
  return t;
3639
- }(Me)
3640
- ), Qi = (
3602
+ }(Le)
3603
+ ), Ui = (
3641
3604
  /** @class */
3642
3605
  function(e) {
3643
- X(t, e);
3606
+ V(t, e);
3644
3607
  function t(r, n) {
3645
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3608
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3646
3609
  }
3647
3610
  return t;
3648
- }(Me)
3611
+ }(Le)
3649
3612
  ), L;
3650
3613
  (function(e) {
3651
3614
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3652
3615
  })(L || (L = {}));
3653
- function Yi(e) {
3616
+ function ki(e) {
3654
3617
  return e.length < 2 ? e : e.reduce(function(t, r) {
3655
3618
  var n = t[t.length - 1];
3656
3619
  return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
3657
3620
  }, []);
3658
3621
  }
3659
- function Ki(e) {
3622
+ function Gi(e) {
3660
3623
  return typeof e == "function";
3661
3624
  }
3662
- function Ae(e, t, r, n, i, s, o) {
3663
- if (e.length === 1 && Vt(e[0]))
3625
+ function Be(e, t, r, n, i, s, o) {
3626
+ if (e.length === 1 && Ft(e[0]))
3664
3627
  return [
3665
3628
  {
3666
3629
  type: L.literal,
3667
3630
  value: e[0].value
3668
3631
  }
3669
3632
  ];
3670
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3671
- var h = u[l];
3672
- if (Vt(h)) {
3633
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3634
+ var u = l[h];
3635
+ if (Ft(u)) {
3673
3636
  a.push({
3674
3637
  type: L.literal,
3675
- value: h.value
3638
+ value: u.value
3676
3639
  });
3677
3640
  continue;
3678
3641
  }
3679
- if (Ei(h)) {
3642
+ if (li(u)) {
3680
3643
  typeof s == "number" && a.push({
3681
3644
  type: L.literal,
3682
3645
  value: r.getNumberFormat(t).format(s)
3683
3646
  });
3684
3647
  continue;
3685
3648
  }
3686
- var c = h.value;
3649
+ var c = u.value;
3687
3650
  if (!(i && c in i))
3688
- throw new Qi(c, o);
3651
+ throw new Ui(c, o);
3689
3652
  var m = i[c];
3690
- if (_i(h)) {
3653
+ if (ui(u)) {
3691
3654
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3692
3655
  type: typeof m == "string" ? L.literal : L.object,
3693
3656
  value: m
3694
3657
  });
3695
3658
  continue;
3696
3659
  }
3697
- if (Sr(h)) {
3698
- var y = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
3660
+ if (yr(u)) {
3661
+ var y = typeof u.style == "string" ? n.date[u.style] : tt(u.style) ? u.style.parsedOptions : void 0;
3699
3662
  a.push({
3700
3663
  type: L.literal,
3701
3664
  value: r.getDateTimeFormat(t, y).format(m)
3702
3665
  });
3703
3666
  continue;
3704
3667
  }
3705
- if (Tr(h)) {
3706
- var y = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
3668
+ if (vr(u)) {
3669
+ var y = typeof u.style == "string" ? n.time[u.style] : tt(u.style) ? u.style.parsedOptions : n.time.medium;
3707
3670
  a.push({
3708
3671
  type: L.literal,
3709
3672
  value: r.getDateTimeFormat(t, y).format(m)
3710
3673
  });
3711
3674
  continue;
3712
3675
  }
3713
- if (xr(h)) {
3714
- var y = typeof h.style == "string" ? n.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
3676
+ if (br(u)) {
3677
+ var y = typeof u.style == "string" ? n.number[u.style] : xr(u.style) ? u.style.parsedOptions : void 0;
3715
3678
  y && y.scale && (m = m * (y.scale || 1)), a.push({
3716
3679
  type: L.literal,
3717
3680
  value: r.getNumberFormat(t, y).format(m)
3718
3681
  });
3719
3682
  continue;
3720
3683
  }
3721
- if (Pr(h)) {
3722
- var g = h.children, p = h.value, b = i[p];
3723
- if (!Ki(b))
3724
- throw new qi(p, "function", o);
3725
- var x = Ae(g, t, r, n, i, s), I = b(x.map(function(N) {
3684
+ if (wr(u)) {
3685
+ var g = u.children, p = u.value, b = i[p];
3686
+ if (!Gi(b))
3687
+ throw new Fi(p, "function", o);
3688
+ var x = Be(g, t, r, n, i, s), I = b(x.map(function(N) {
3726
3689
  return N.value;
3727
3690
  }));
3728
3691
  Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(N) {
@@ -3732,42 +3695,42 @@ function Ae(e, t, r, n, i, s, o) {
3732
3695
  };
3733
3696
  }));
3734
3697
  }
3735
- if (Hr(h)) {
3736
- var O = h.options[m] || h.options.other;
3698
+ if (_r(u)) {
3699
+ var O = u.options[m] || u.options.other;
3737
3700
  if (!O)
3738
- throw new Qt(h.value, m, Object.keys(h.options), o);
3739
- a.push.apply(a, Ae(O.value, t, r, n, i));
3701
+ throw new Xt(u.value, m, Object.keys(u.options), o);
3702
+ a.push.apply(a, Be(O.value, t, r, n, i));
3740
3703
  continue;
3741
3704
  }
3742
- if (Br(h)) {
3743
- var O = h.options["=".concat(m)];
3705
+ if (Er(u)) {
3706
+ var O = u.options["=".concat(m)];
3744
3707
  if (!O) {
3745
3708
  if (!Intl.PluralRules)
3746
- throw new Me(`Intl.PluralRules is not available in this environment.
3709
+ throw new Le(`Intl.PluralRules is not available in this environment.
3747
3710
  Try polyfilling it using "@formatjs/intl-pluralrules"
3748
- `, ie.MISSING_INTL_API, o);
3749
- var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3750
- O = h.options[D] || h.options.other;
3711
+ `, ne.MISSING_INTL_API, o);
3712
+ var D = r.getPluralRules(t, { type: u.pluralType }).select(m - (u.offset || 0));
3713
+ O = u.options[D] || u.options.other;
3751
3714
  }
3752
3715
  if (!O)
3753
- throw new Qt(h.value, m, Object.keys(h.options), o);
3754
- a.push.apply(a, Ae(O.value, t, r, n, i, m - (h.offset || 0)));
3716
+ throw new Xt(u.value, m, Object.keys(u.options), o);
3717
+ a.push.apply(a, Be(O.value, t, r, n, i, m - (u.offset || 0)));
3755
3718
  continue;
3756
3719
  }
3757
3720
  }
3758
- return Yi(a);
3721
+ return ki(a);
3759
3722
  }
3760
- function es(e, t) {
3723
+ function ji(e, t) {
3761
3724
  return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3762
3725
  return r[n] = w(w({}, e[n]), t[n] || {}), r;
3763
3726
  }, {})) : e;
3764
3727
  }
3765
- function ts(e, t) {
3728
+ function $i(e, t) {
3766
3729
  return t ? Object.keys(e).reduce(function(r, n) {
3767
- return r[n] = es(e[n], t[n]), r;
3730
+ return r[n] = ji(e[n], t[n]), r;
3768
3731
  }, w({}, e)) : e;
3769
3732
  }
3770
- function Je(e) {
3733
+ function We(e) {
3771
3734
  return {
3772
3735
  create: function() {
3773
3736
  return {
@@ -3781,39 +3744,39 @@ function Je(e) {
3781
3744
  }
3782
3745
  };
3783
3746
  }
3784
- function rs(e) {
3747
+ function Vi(e) {
3785
3748
  return e === void 0 && (e = {
3786
3749
  number: {},
3787
3750
  dateTime: {},
3788
3751
  pluralRules: {}
3789
3752
  }), {
3790
- getNumberFormat: We(function() {
3753
+ getNumberFormat: $e(function() {
3791
3754
  for (var t, r = [], n = 0; n < arguments.length; n++)
3792
3755
  r[n] = arguments[n];
3793
- return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
3756
+ return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], r, !1)))();
3794
3757
  }, {
3795
- cache: Je(e.number),
3796
- strategy: ze.variadic
3758
+ cache: We(e.number),
3759
+ strategy: Ve.variadic
3797
3760
  }),
3798
- getDateTimeFormat: We(function() {
3761
+ getDateTimeFormat: $e(function() {
3799
3762
  for (var t, r = [], n = 0; n < arguments.length; n++)
3800
3763
  r[n] = arguments[n];
3801
- return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
3764
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], r, !1)))();
3802
3765
  }, {
3803
- cache: Je(e.dateTime),
3804
- strategy: ze.variadic
3766
+ cache: We(e.dateTime),
3767
+ strategy: Ve.variadic
3805
3768
  }),
3806
- getPluralRules: We(function() {
3769
+ getPluralRules: $e(function() {
3807
3770
  for (var t, r = [], n = 0; n < arguments.length; n++)
3808
3771
  r[n] = arguments[n];
3809
- return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
3772
+ return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], r, !1)))();
3810
3773
  }, {
3811
- cache: Je(e.pluralRules),
3812
- strategy: ze.variadic
3774
+ cache: We(e.pluralRules),
3775
+ strategy: Ve.variadic
3813
3776
  })
3814
3777
  };
3815
3778
  }
3816
- var ns = (
3779
+ var Xi = (
3817
3780
  /** @class */
3818
3781
  function() {
3819
3782
  function e(t, r, n, i) {
@@ -3823,20 +3786,20 @@ var ns = (
3823
3786
  number: {},
3824
3787
  dateTime: {},
3825
3788
  pluralRules: {}
3826
- }, this.format = function(l) {
3827
- var u = s.formatToParts(l);
3828
- if (u.length === 1)
3829
- return u[0].value;
3830
- var h = u.reduce(function(c, m) {
3789
+ }, this.format = function(h) {
3790
+ var l = s.formatToParts(h);
3791
+ if (l.length === 1)
3792
+ return l[0].value;
3793
+ var u = l.reduce(function(c, m) {
3831
3794
  return !c.length || m.type !== L.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
3832
3795
  }, []);
3833
- return h.length <= 1 ? h[0] || "" : h;
3834
- }, this.formatToParts = function(l) {
3835
- return Ae(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3796
+ return u.length <= 1 ? u[0] || "" : u;
3797
+ }, this.formatToParts = function(h) {
3798
+ return Be(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3836
3799
  }, this.resolvedOptions = function() {
3837
- var l;
3800
+ var h;
3838
3801
  return {
3839
- locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3802
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3840
3803
  };
3841
3804
  }, this.getAst = function() {
3842
3805
  return s.ast;
@@ -3845,13 +3808,13 @@ var ns = (
3845
3808
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3846
3809
  var o = i || {};
3847
3810
  o.formatters;
3848
- var a = Nn(o, ["formatters"]);
3811
+ var a = xn(o, ["formatters"]);
3849
3812
  this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
3850
3813
  } else
3851
3814
  this.ast = t;
3852
3815
  if (!Array.isArray(this.ast))
3853
3816
  throw new TypeError("A message must be provided as a String or AST.");
3854
- this.formats = ts(e.formats, n), this.formatters = i && i.formatters || rs(this.formatterCache);
3817
+ this.formats = $i(e.formats, n), this.formatters = i && i.formatters || Vi(this.formatterCache);
3855
3818
  }
3856
3819
  return Object.defineProperty(e, "defaultLocale", {
3857
3820
  get: function() {
@@ -3860,11 +3823,11 @@ var ns = (
3860
3823
  enumerable: !1,
3861
3824
  configurable: !0
3862
3825
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3863
- if (typeof Intl.Locale != "undefined") {
3826
+ if (!(typeof Intl.Locale > "u")) {
3864
3827
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3865
3828
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3866
3829
  }
3867
- }, e.__parse = Ji, e.formats = {
3830
+ }, e.__parse = Di, e.formats = {
3868
3831
  number: {
3869
3832
  integer: {
3870
3833
  maximumFractionDigits: 0
@@ -3925,7 +3888,7 @@ var ns = (
3925
3888
  }, e;
3926
3889
  }()
3927
3890
  );
3928
- function is(e, t) {
3891
+ function Wi(e, t) {
3929
3892
  if (t == null)
3930
3893
  return;
3931
3894
  if (t in e)
@@ -3946,92 +3909,92 @@ function is(e, t) {
3946
3909
  n = void 0;
3947
3910
  return n;
3948
3911
  }
3949
- const z = {}, ss = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Dr = (e, t) => {
3912
+ const W = {}, zi = (e, t, r) => r && (t in W || (W[t] = {}), e in W[t] || (W[t][e] = r), r), Cr = (e, t) => {
3950
3913
  if (t == null)
3951
3914
  return;
3952
- if (t in z && e in z[t])
3953
- return z[t][e];
3954
- const r = De(t);
3915
+ if (t in W && e in W[t])
3916
+ return W[t][e];
3917
+ const r = Ne(t);
3955
3918
  for (let n = 0; n < r.length; n++) {
3956
- const i = r[n], s = as(i, e);
3919
+ const i = r[n], s = Ji(i, e);
3957
3920
  if (s)
3958
- return ss(e, t, s);
3921
+ return zi(e, t, s);
3959
3922
  }
3960
3923
  };
3961
- let mt;
3962
- const ae = Ne({});
3963
- function os(e) {
3964
- return mt[e] || null;
3924
+ let ft;
3925
+ const oe = Re({});
3926
+ function Zi(e) {
3927
+ return ft[e] || null;
3965
3928
  }
3966
- function Fr(e) {
3967
- return e in mt;
3929
+ function Ir(e) {
3930
+ return e in ft;
3968
3931
  }
3969
- function as(e, t) {
3970
- if (!Fr(e))
3932
+ function Ji(e, t) {
3933
+ if (!Ir(e))
3971
3934
  return null;
3972
- const r = os(e);
3973
- return is(r, t);
3935
+ const r = Zi(e);
3936
+ return Wi(r, t);
3974
3937
  }
3975
- function us(e) {
3938
+ function qi(e) {
3976
3939
  if (e == null)
3977
3940
  return;
3978
- const t = De(e);
3941
+ const t = Ne(e);
3979
3942
  for (let r = 0; r < t.length; r++) {
3980
3943
  const n = t[r];
3981
- if (Fr(n))
3944
+ if (Ir(n))
3982
3945
  return n;
3983
3946
  }
3984
3947
  }
3985
- function Ur(e, ...t) {
3986
- delete z[e], ae.update((r) => (r[e] = ci.all([r[e] || {}, ...t]), r));
3948
+ function Rr(e, ...t) {
3949
+ delete W[e], oe.update((r) => (r[e] = ei.all([r[e] || {}, ...t]), r));
3987
3950
  }
3988
- oe(
3989
- [ae],
3951
+ se(
3952
+ [oe],
3990
3953
  ([e]) => Object.keys(e)
3991
3954
  );
3992
- ae.subscribe((e) => mt = e);
3993
- const Oe = {};
3994
- function ls(e, t) {
3995
- Oe[e].delete(t), Oe[e].size === 0 && delete Oe[e];
3955
+ oe.subscribe((e) => ft = e);
3956
+ const Ae = {};
3957
+ function Qi(e, t) {
3958
+ Ae[e].delete(t), Ae[e].size === 0 && delete Ae[e];
3996
3959
  }
3997
- function Gr(e) {
3998
- return Oe[e];
3960
+ function Lr(e) {
3961
+ return Ae[e];
3999
3962
  }
4000
- function hs(e) {
4001
- return De(e).map((t) => {
4002
- const r = Gr(t);
3963
+ function Yi(e) {
3964
+ return Ne(e).map((t) => {
3965
+ const r = Lr(t);
4003
3966
  return [t, r ? [...r] : []];
4004
3967
  }).filter(([, t]) => t.length > 0);
4005
3968
  }
4006
- function ht(e) {
4007
- return e == null ? !1 : De(e).some(
3969
+ function at(e) {
3970
+ return e == null ? !1 : Ne(e).some(
4008
3971
  (t) => {
4009
3972
  var r;
4010
- return (r = Gr(t)) == null ? void 0 : r.size;
3973
+ return (r = Lr(t)) == null ? void 0 : r.size;
4011
3974
  }
4012
3975
  );
4013
3976
  }
4014
- function fs(e, t) {
3977
+ function Ki(e, t) {
4015
3978
  return Promise.all(
4016
- t.map((n) => (ls(e, n), n().then((i) => i.default || i)))
4017
- ).then((n) => Ur(e, ...n));
4018
- }
4019
- const fe = {};
4020
- function kr(e) {
4021
- if (!ht(e))
4022
- return e in fe ? fe[e] : Promise.resolve();
4023
- const t = hs(e);
4024
- return fe[e] = Promise.all(
3979
+ t.map((n) => (Qi(e, n), n().then((i) => i.default || i)))
3980
+ ).then((n) => Rr(e, ...n));
3981
+ }
3982
+ const he = {};
3983
+ function Nr(e) {
3984
+ if (!at(e))
3985
+ return e in he ? he[e] : Promise.resolve();
3986
+ const t = Yi(e);
3987
+ return he[e] = Promise.all(
4025
3988
  t.map(
4026
- ([r, n]) => fs(r, n)
3989
+ ([r, n]) => Ki(r, n)
4027
3990
  )
4028
3991
  ).then(() => {
4029
- if (ht(e))
4030
- return kr(e);
4031
- delete fe[e];
4032
- }), fe[e];
3992
+ if (at(e))
3993
+ return Nr(e);
3994
+ delete he[e];
3995
+ }), he[e];
4033
3996
  }
4034
- const cs = {
3997
+ const es = {
4035
3998
  number: {
4036
3999
  scientific: { notation: "scientific" },
4037
4000
  engineering: { notation: "engineering" },
@@ -4060,159 +4023,159 @@ const cs = {
4060
4023
  timeZoneName: "short"
4061
4024
  }
4062
4025
  }
4063
- }, ds = {
4026
+ }, ts = {
4064
4027
  fallbackLocale: null,
4065
4028
  loadingDelay: 200,
4066
- formats: cs,
4029
+ formats: es,
4067
4030
  warnOnMissingMessages: !0,
4068
4031
  handleMissingMessage: void 0,
4069
4032
  ignoreTag: !0
4070
- }, ms = ds;
4071
- function se() {
4072
- return ms;
4033
+ }, rs = ts;
4034
+ function ie() {
4035
+ return rs;
4073
4036
  }
4074
- const qe = Ne(!1);
4075
- var ps = Object.defineProperty, gs = Object.defineProperties, bs = Object.getOwnPropertyDescriptors, Yt = Object.getOwnPropertySymbols, ys = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, Kt = (e, t, r) => t in e ? ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _s = (e, t) => {
4037
+ const ze = Re(!1);
4038
+ var ns = Object.defineProperty, is = Object.defineProperties, ss = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, os = Object.prototype.hasOwnProperty, as = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, us = (e, t) => {
4076
4039
  for (var r in t)
4077
- ys.call(t, r) && Kt(e, r, t[r]);
4078
- if (Yt)
4079
- for (var r of Yt(t))
4080
- vs.call(t, r) && Kt(e, r, t[r]);
4040
+ os.call(t, r) && zt(e, r, t[r]);
4041
+ if (Wt)
4042
+ for (var r of Wt(t))
4043
+ as.call(t, r) && zt(e, r, t[r]);
4081
4044
  return e;
4082
- }, Es = (e, t) => gs(e, bs(t));
4083
- let ft;
4084
- const Ie = Ne(null);
4085
- function er(e) {
4045
+ }, ls = (e, t) => is(e, ss(t));
4046
+ let ut;
4047
+ const Oe = Re(null);
4048
+ function Zt(e) {
4086
4049
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4087
4050
  }
4088
- function De(e, t = se().fallbackLocale) {
4089
- const r = er(e);
4090
- return t ? [.../* @__PURE__ */ new Set([...r, ...er(t)])] : r;
4051
+ function Ne(e, t = ie().fallbackLocale) {
4052
+ const r = Zt(e);
4053
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Zt(t)])] : r;
4091
4054
  }
4092
- function J() {
4093
- return ft != null ? ft : void 0;
4055
+ function Z() {
4056
+ return ut ?? void 0;
4094
4057
  }
4095
- Ie.subscribe((e) => {
4096
- ft = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4058
+ Oe.subscribe((e) => {
4059
+ ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4097
4060
  });
4098
- const ws = (e) => {
4099
- if (e && us(e) && ht(e)) {
4100
- const { loadingDelay: t } = se();
4061
+ const hs = (e) => {
4062
+ if (e && qi(e) && at(e)) {
4063
+ const { loadingDelay: t } = ie();
4101
4064
  let r;
4102
- return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
4103
- () => qe.set(!0),
4065
+ return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
4066
+ () => ze.set(!0),
4104
4067
  t
4105
- ) : qe.set(!0), kr(e).then(() => {
4106
- Ie.set(e);
4068
+ ) : ze.set(!0), Nr(e).then(() => {
4069
+ Oe.set(e);
4107
4070
  }).finally(() => {
4108
- clearTimeout(r), qe.set(!1);
4071
+ clearTimeout(r), ze.set(!1);
4109
4072
  });
4110
4073
  }
4111
- return Ie.set(e);
4112
- }, Z = Es(_s({}, Ie), {
4113
- set: ws
4114
- }), Fe = (e) => {
4074
+ return Oe.set(e);
4075
+ }, z = ls(us({}, Oe), {
4076
+ set: hs
4077
+ }), Me = (e) => {
4115
4078
  const t = /* @__PURE__ */ Object.create(null);
4116
4079
  return (n) => {
4117
4080
  const i = JSON.stringify(n);
4118
4081
  return i in t ? t[i] : t[i] = e(n);
4119
4082
  };
4120
4083
  };
4121
- var xs = Object.defineProperty, Re = Object.getOwnPropertySymbols, jr = Object.prototype.hasOwnProperty, $r = Object.prototype.propertyIsEnumerable, tr = (e, t, r) => t in e ? xs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
4084
+ var fs = Object.defineProperty, Ce = Object.getOwnPropertySymbols, Mr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Jt = (e, t, r) => t in e ? fs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
4122
4085
  for (var r in t || (t = {}))
4123
- jr.call(t, r) && tr(e, r, t[r]);
4124
- if (Re)
4125
- for (var r of Re(t))
4126
- $r.call(t, r) && tr(e, r, t[r]);
4086
+ Mr.call(t, r) && Jt(e, r, t[r]);
4087
+ if (Ce)
4088
+ for (var r of Ce(t))
4089
+ Dr.call(t, r) && Jt(e, r, t[r]);
4127
4090
  return e;
4128
- }, ue = (e, t) => {
4091
+ }, ae = (e, t) => {
4129
4092
  var r = {};
4130
4093
  for (var n in e)
4131
- jr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4132
- if (e != null && Re)
4133
- for (var n of Re(e))
4134
- t.indexOf(n) < 0 && $r.call(e, n) && (r[n] = e[n]);
4094
+ Mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4095
+ if (e != null && Ce)
4096
+ for (var n of Ce(e))
4097
+ t.indexOf(n) < 0 && Dr.call(e, n) && (r[n] = e[n]);
4135
4098
  return r;
4136
4099
  };
4137
- const pe = (e, t) => {
4138
- const { formats: r } = se();
4100
+ const me = (e, t) => {
4101
+ const { formats: r } = ie();
4139
4102
  if (e in r && t in r[e])
4140
4103
  return r[e][t];
4141
4104
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4142
- }, Ss = Fe(
4105
+ }, cs = Me(
4143
4106
  (e) => {
4144
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4107
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4145
4108
  if (r == null)
4146
4109
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4147
- return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
4110
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
4148
4111
  }
4149
- ), Ts = Fe(
4112
+ ), ds = Me(
4150
4113
  (e) => {
4151
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4114
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4152
4115
  if (r == null)
4153
4116
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4154
- return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
4117
+ return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
4155
4118
  }
4156
- ), Hs = Fe(
4119
+ ), ms = Me(
4157
4120
  (e) => {
4158
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4121
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4159
4122
  if (r == null)
4160
4123
  throw new Error(
4161
4124
  '[svelte-i18n] A "locale" must be set to format time values'
4162
4125
  );
4163
- return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
4126
+ return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
4164
4127
  }
4165
- ), Bs = (e = {}) => {
4128
+ ), ps = (e = {}) => {
4166
4129
  var t = e, {
4167
- locale: r = J()
4168
- } = t, n = ue(t, [
4130
+ locale: r = Z()
4131
+ } = t, n = ae(t, [
4169
4132
  "locale"
4170
4133
  ]);
4171
- return Ss(pt({ locale: r }, n));
4172
- }, Ps = (e = {}) => {
4134
+ return cs(ct({ locale: r }, n));
4135
+ }, gs = (e = {}) => {
4173
4136
  var t = e, {
4174
- locale: r = J()
4175
- } = t, n = ue(t, [
4137
+ locale: r = Z()
4138
+ } = t, n = ae(t, [
4176
4139
  "locale"
4177
4140
  ]);
4178
- return Ts(pt({ locale: r }, n));
4179
- }, As = (e = {}) => {
4141
+ return ds(ct({ locale: r }, n));
4142
+ }, bs = (e = {}) => {
4180
4143
  var t = e, {
4181
- locale: r = J()
4182
- } = t, n = ue(t, [
4144
+ locale: r = Z()
4145
+ } = t, n = ae(t, [
4183
4146
  "locale"
4184
4147
  ]);
4185
- return Hs(pt({ locale: r }, n));
4186
- }, Os = Fe(
4148
+ return ms(ct({ locale: r }, n));
4149
+ }, ys = Me(
4187
4150
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4188
- (e, t = J()) => new ns(e, t, se().formats, {
4189
- ignoreTag: se().ignoreTag
4151
+ (e, t = Z()) => new Xi(e, t, ie().formats, {
4152
+ ignoreTag: ie().ignoreTag
4190
4153
  })
4191
- ), Cs = (e, t = {}) => {
4154
+ ), vs = (e, t = {}) => {
4192
4155
  var r, n, i, s;
4193
4156
  let o = t;
4194
4157
  typeof e == "object" && (o = e, e = o.id);
4195
4158
  const {
4196
4159
  values: a,
4197
- locale: l = J(),
4198
- default: u
4160
+ locale: h = Z(),
4161
+ default: l
4199
4162
  } = o;
4200
- if (l == null)
4163
+ if (h == null)
4201
4164
  throw new Error(
4202
4165
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4203
4166
  );
4204
- let h = Dr(e, l);
4205
- if (!h)
4206
- h = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4207
- else if (typeof h != "string")
4167
+ let u = Cr(e, h);
4168
+ if (!u)
4169
+ u = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
4170
+ else if (typeof u != "string")
4208
4171
  return console.warn(
4209
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4210
- ), h;
4172
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4173
+ ), u;
4211
4174
  if (!a)
4212
- return h;
4213
- let c = h;
4175
+ return u;
4176
+ let c = u;
4214
4177
  try {
4215
- c = Os(h, l).format(a);
4178
+ c = ys(u, h).format(a);
4216
4179
  } catch (m) {
4217
4180
  m instanceof Error && console.warn(
4218
4181
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4220,25 +4183,25 @@ const pe = (e, t) => {
4220
4183
  );
4221
4184
  }
4222
4185
  return c;
4223
- }, Is = (e, t) => As(t).format(e), Rs = (e, t) => Ps(t).format(e), Ls = (e, t) => Bs(t).format(e), Ns = (e, t = J()) => Dr(e, t), Ms = oe([Z, ae], () => Cs);
4224
- oe([Z], () => Is);
4225
- oe([Z], () => Rs);
4226
- oe([Z], () => Ls);
4227
- oe([Z, ae], () => Ns);
4228
- window.emWidgets = { topic: Jn };
4229
- const rr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4230
- function Ds({ withLocale: e, translations: t }) {
4231
- Z.subscribe((r) => {
4232
- r == null && (ae.set(t), Z.set(e));
4186
+ }, _s = (e, t) => bs(t).format(e), Es = (e, t) => gs(t).format(e), ws = (e, t) => ps(t).format(e), xs = (e, t = Z()) => Cr(e, t), Ss = se([z, oe], () => vs);
4187
+ se([z], () => _s);
4188
+ se([z], () => Es);
4189
+ se([z], () => ws);
4190
+ se([z, oe], () => xs);
4191
+ window.emWidgets = { topic: Dn };
4192
+ const qt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4193
+ function Ts({ withLocale: e, translations: t }) {
4194
+ z.subscribe((r) => {
4195
+ r == null && (oe.set(t), z.set(e));
4233
4196
  });
4234
4197
  }
4235
- function nr(e, t) {
4236
- Ur(e, t);
4198
+ function Qt(e, t) {
4199
+ Rr(e, t);
4237
4200
  }
4238
- function Fs(e) {
4239
- Z.set(e);
4201
+ function Hs(e) {
4202
+ z.set(e);
4240
4203
  }
4241
- const ir = {
4204
+ const Yt = {
4242
4205
  en: {
4243
4206
  goToLoginButton: "Go To Login",
4244
4207
  error: "We encountered an issue. Please go to Login to receive your SMS code."
@@ -4284,7 +4247,7 @@ const ir = {
4284
4247
  error: "We encountered an issue. Please go to Login to receive your SMS code."
4285
4248
  }
4286
4249
  };
4287
- if (typeof window != "undefined") {
4250
+ if (typeof window < "u") {
4288
4251
  let e = function(t) {
4289
4252
  return function(...r) {
4290
4253
  try {
@@ -4296,11 +4259,11 @@ if (typeof window != "undefined") {
4296
4259
  }
4297
4260
  };
4298
4261
  };
4299
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-BqGTYtUY.js").then(({ default: t }) => {
4262
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-Cn9y1f5F.js").then(({ default: t }) => {
4300
4263
  !customElements.get("general-player-register-form-step1") && customElements.define("general-player-register-form-step1", t.element);
4301
4264
  });
4302
4265
  }
4303
- if (typeof window != "undefined") {
4266
+ if (typeof window < "u") {
4304
4267
  let e = function(t) {
4305
4268
  return function(...r) {
4306
4269
  try {
@@ -4312,11 +4275,11 @@ if (typeof window != "undefined") {
4312
4275
  }
4313
4276
  };
4314
4277
  };
4315
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-C0B9JWRl.js").then(({ default: t }) => {
4278
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-B5z6NS4S.js").then(({ default: t }) => {
4316
4279
  !customElements.get("general-player-register-form-step2") && customElements.define("general-player-register-form-step2", t.element);
4317
4280
  });
4318
4281
  }
4319
- if (typeof window != "undefined") {
4282
+ if (typeof window < "u") {
4320
4283
  let e = function(t) {
4321
4284
  return function(...r) {
4322
4285
  try {
@@ -4328,11 +4291,11 @@ if (typeof window != "undefined") {
4328
4291
  }
4329
4292
  };
4330
4293
  };
4331
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-673g9fRb.js").then(({ default: t }) => {
4294
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-A2gOkjqF.js").then(({ default: t }) => {
4332
4295
  !customElements.get("general-player-register-form-step3") && customElements.define("general-player-register-form-step3", t.element);
4333
4296
  });
4334
4297
  }
4335
- if (typeof window != "undefined") {
4298
+ if (typeof window < "u") {
4336
4299
  let e = function(t) {
4337
4300
  return function(...r) {
4338
4301
  try {
@@ -4344,72 +4307,72 @@ if (typeof window != "undefined") {
4344
4307
  }
4345
4308
  };
4346
4309
  };
4347
- customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-s6mw60Ru.js").then(({ default: t }) => {
4310
+ customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-D0xFmf31.js").then(({ default: t }) => {
4348
4311
  !customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
4349
4312
  });
4350
4313
  }
4351
- function Us(e) {
4352
- dn(e, "svelte-1ybwcf6", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));border-radius:15px}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:24px;font-weight:var(--emw--font-weight-normal, 400);text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:22px}.RegisterConfirmationGoToLogin{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}");
4314
+ function Bs(e) {
4315
+ en(e, "svelte-1ybwcf6", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));border-radius:15px}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.RegisterStepNext{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-valid, #48952a));font-size:24px;font-weight:var(--emw--font-weight-normal, 400);text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-medium, 16px);line-height:22px}.RegisterConfirmationGoToLogin{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer;margin-top:24px}");
4353
4316
  }
4354
- function Gs(e) {
4355
- let t, r, n, i, s, o, a, l = (
4317
+ function As(e) {
4318
+ let t, r, n, i, s, o, a, h = (
4356
4319
  /*showRegisterStepOne*/
4357
4320
  (e[17] || /*showRegisterStepTwo*/
4358
4321
  e[18] || /*showRegisterStepThree*/
4359
- e[19]) && sr(e)
4360
- ), u = (
4322
+ e[19]) && Kt(e)
4323
+ ), l = (
4361
4324
  /*showRegisterStepOne*/
4362
- e[17] && or(e)
4363
- ), h = (
4325
+ e[17] && er(e)
4326
+ ), u = (
4364
4327
  /*showRegisterStepTwo*/
4365
- e[18] && ar(e)
4328
+ e[18] && tr(e)
4366
4329
  ), c = (
4367
4330
  /*showRegisterStepThree*/
4368
- e[19] && ur(e)
4331
+ e[19] && rr(e)
4369
4332
  );
4370
4333
  function m(b, x) {
4371
4334
  if (
4372
4335
  /*smsverification*/
4373
4336
  b[7] && /*showSmsVerification*/
4374
4337
  b[20]
4375
- ) return js;
4338
+ ) return Os;
4376
4339
  if (
4377
4340
  /*smsSendApiFailed*/
4378
4341
  b[30]
4379
- ) return ks;
4342
+ ) return Ps;
4380
4343
  }
4381
4344
  let y = m(e), g = y && y(e), p = (
4382
4345
  /*showConfirmation*/
4383
- e[21] && lr(e)
4346
+ e[21] && nr(e)
4384
4347
  );
4385
4348
  return {
4386
4349
  c() {
4387
- t = B("div"), r = B("div"), l && l.c(), n = G(), u && u.c(), i = G(), h && h.c(), s = G(), c && c.c(), o = G(), g && g.c(), a = G(), p && p.c(), T(r, "class", "RegisterFormContainer " + /*isMobile*/
4350
+ t = B("div"), r = B("div"), h && h.c(), n = U(), l && l.c(), i = U(), u && u.c(), s = U(), c && c.c(), o = U(), g && g.c(), a = U(), p && p.c(), T(r, "class", "RegisterFormContainer " + /*isMobile*/
4388
4351
  (e[34] ? "RegisterFormContainerMobile" : "")), T(t, "class", "RegisterFormWrapper");
4389
4352
  },
4390
4353
  m(b, x) {
4391
- U(b, t, x), E(t, r), l && l.m(r, null), E(r, n), u && u.m(r, null), E(r, i), h && h.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a), p && p.m(r, null);
4354
+ F(b, t, x), E(t, r), h && h.m(r, null), E(r, n), l && l.m(r, null), E(r, i), u && u.m(r, null), E(r, s), c && c.m(r, null), E(r, o), g && g.m(r, null), E(r, a), p && p.m(r, null);
4392
4355
  },
4393
4356
  p(b, x) {
4394
4357
  /*showRegisterStepOne*/
4395
4358
  b[17] || /*showRegisterStepTwo*/
4396
4359
  b[18] || /*showRegisterStepThree*/
4397
- b[19] ? l ? l.p(b, x) : (l = sr(b), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showRegisterStepOne*/
4398
- b[17] ? u ? u.p(b, x) : (u = or(b), u.c(), u.m(r, i)) : u && (u.d(1), u = null), /*showRegisterStepTwo*/
4399
- b[18] ? h ? h.p(b, x) : (h = ar(b), h.c(), h.m(r, s)) : h && (h.d(1), h = null), /*showRegisterStepThree*/
4400
- b[19] ? c ? c.p(b, x) : (c = ur(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = m(b)) && g ? g.p(b, x) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
4401
- b[21] ? p ? p.p(b, x) : (p = lr(b), p.c(), p.m(r, null)) : p && (p.d(1), p = null);
4360
+ b[19] ? h ? h.p(b, x) : (h = Kt(b), h.c(), h.m(r, n)) : h && (h.d(1), h = null), /*showRegisterStepOne*/
4361
+ b[17] ? l ? l.p(b, x) : (l = er(b), l.c(), l.m(r, i)) : l && (l.d(1), l = null), /*showRegisterStepTwo*/
4362
+ b[18] ? u ? u.p(b, x) : (u = tr(b), u.c(), u.m(r, s)) : u && (u.d(1), u = null), /*showRegisterStepThree*/
4363
+ b[19] ? c ? c.p(b, x) : (c = rr(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = m(b)) && g ? g.p(b, x) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
4364
+ b[21] ? p ? p.p(b, x) : (p = nr(b), p.c(), p.m(r, null)) : p && (p.d(1), p = null);
4402
4365
  },
4403
4366
  d(b) {
4404
- b && M(t), l && l.d(), u && u.d(), h && h.d(), c && c.d(), g && g.d(), p && p.d();
4367
+ b && M(t), h && h.d(), l && l.d(), u && u.d(), c && c.d(), g && g.d(), p && p.d();
4405
4368
  }
4406
4369
  };
4407
4370
  }
4408
- function sr(e) {
4409
- let t, r, n, i, s, o, a, l, u;
4371
+ function Kt(e) {
4372
+ let t, r, n, i, s, o, a, h, l;
4410
4373
  return {
4411
4374
  c() {
4412
- t = B("div"), r = B("div"), i = G(), s = B("div"), a = G(), l = B("div"), T(r, "class", n = "RegisterFirstStepDash " + /*showRegisterStepOne*/
4375
+ t = B("div"), r = B("div"), i = U(), s = B("div"), a = U(), h = B("div"), T(r, "class", n = "RegisterFirstStepDash " + /*showRegisterStepOne*/
4413
4376
  (e[17] || !/*showRegisterStepOne*/
4414
4377
  e[17] && /*showRegisterStepTwo*/
4415
4378
  e[18] || !/*showRegisterStepOne*/
@@ -4419,35 +4382,35 @@ function sr(e) {
4419
4382
  (e[18] || !/*showRegisterStepOne*/
4420
4383
  e[17] && !/*showRegisterStepTwo*/
4421
4384
  e[18] && /*showRegisterStepThree*/
4422
- e[19] ? "RegisterStepDashColor" : "")), T(l, "class", u = "RegisterThirdStepDash " + /*showRegisterStepThree*/
4385
+ e[19] ? "RegisterStepDashColor" : "")), T(h, "class", l = "RegisterThirdStepDash " + /*showRegisterStepThree*/
4423
4386
  (e[19] ? "RegisterStepDashColor" : "")), T(t, "class", "RegisterSteps");
4424
4387
  },
4425
- m(h, c) {
4426
- U(h, t, c), E(t, r), E(t, i), E(t, s), E(t, a), E(t, l), e[40](t);
4388
+ m(u, c) {
4389
+ F(u, t, c), E(t, r), E(t, i), E(t, s), E(t, a), E(t, h), e[40](t);
4427
4390
  },
4428
- p(h, c) {
4391
+ p(u, c) {
4429
4392
  c[0] & /*showRegisterStepOne, showRegisterStepTwo, showRegisterStepThree*/
4430
4393
  917504 && n !== (n = "RegisterFirstStepDash " + /*showRegisterStepOne*/
4431
- (h[17] || !/*showRegisterStepOne*/
4432
- h[17] && /*showRegisterStepTwo*/
4433
- h[18] || !/*showRegisterStepOne*/
4434
- h[17] && !/*showRegisterStepTwo*/
4435
- h[18] && /*showRegisterStepThree*/
4436
- h[19] ? "RegisterStepDashColor" : "")) && T(r, "class", n), c[0] & /*showRegisterStepTwo, showRegisterStepOne, showRegisterStepThree*/
4394
+ (u[17] || !/*showRegisterStepOne*/
4395
+ u[17] && /*showRegisterStepTwo*/
4396
+ u[18] || !/*showRegisterStepOne*/
4397
+ u[17] && !/*showRegisterStepTwo*/
4398
+ u[18] && /*showRegisterStepThree*/
4399
+ u[19] ? "RegisterStepDashColor" : "")) && T(r, "class", n), c[0] & /*showRegisterStepTwo, showRegisterStepOne, showRegisterStepThree*/
4437
4400
  917504 && o !== (o = "RegisterSecondStepDash " + /*showRegisterStepTwo*/
4438
- (h[18] || !/*showRegisterStepOne*/
4439
- h[17] && !/*showRegisterStepTwo*/
4440
- h[18] && /*showRegisterStepThree*/
4441
- h[19] ? "RegisterStepDashColor" : "")) && T(s, "class", o), c[0] & /*showRegisterStepThree*/
4442
- 524288 && u !== (u = "RegisterThirdStepDash " + /*showRegisterStepThree*/
4443
- (h[19] ? "RegisterStepDashColor" : "")) && T(l, "class", u);
4401
+ (u[18] || !/*showRegisterStepOne*/
4402
+ u[17] && !/*showRegisterStepTwo*/
4403
+ u[18] && /*showRegisterStepThree*/
4404
+ u[19] ? "RegisterStepDashColor" : "")) && T(s, "class", o), c[0] & /*showRegisterStepThree*/
4405
+ 524288 && l !== (l = "RegisterThirdStepDash " + /*showRegisterStepThree*/
4406
+ (u[19] ? "RegisterStepDashColor" : "")) && T(h, "class", l);
4444
4407
  },
4445
- d(h) {
4446
- h && M(t), e[40](null);
4408
+ d(u) {
4409
+ u && M(t), e[40](null);
4447
4410
  }
4448
4411
  };
4449
4412
  }
4450
- function or(e) {
4413
+ function er(e) {
4451
4414
  let t, r;
4452
4415
  return {
4453
4416
  c() {
@@ -4499,7 +4462,7 @@ function or(e) {
4499
4462
  ), T(t, "class", "RegisterFormStep1");
4500
4463
  },
4501
4464
  m(n, i) {
4502
- U(n, t, i), E(t, r);
4465
+ F(n, t, i), E(t, r);
4503
4466
  },
4504
4467
  p(n, i) {
4505
4468
  i[0] & /*lang*/
@@ -4563,7 +4526,7 @@ function or(e) {
4563
4526
  }
4564
4527
  };
4565
4528
  }
4566
- function ar(e) {
4529
+ function tr(e) {
4567
4530
  let t, r;
4568
4531
  return {
4569
4532
  c() {
@@ -4615,7 +4578,7 @@ function ar(e) {
4615
4578
  ), T(t, "class", "RegisterFormStep2");
4616
4579
  },
4617
4580
  m(n, i) {
4618
- U(n, t, i), E(t, r);
4581
+ F(n, t, i), E(t, r);
4619
4582
  },
4620
4583
  p(n, i) {
4621
4584
  i[0] & /*endpoint*/
@@ -4679,7 +4642,7 @@ function ar(e) {
4679
4642
  }
4680
4643
  };
4681
4644
  }
4682
- function ur(e) {
4645
+ function rr(e) {
4683
4646
  let t, r;
4684
4647
  return {
4685
4648
  c() {
@@ -4746,7 +4709,7 @@ function ur(e) {
4746
4709
  ), T(t, "class", "RegisterFormStep3");
4747
4710
  },
4748
4711
  m(n, i) {
4749
- U(n, t, i), E(t, r);
4712
+ F(n, t, i), E(t, r);
4750
4713
  },
4751
4714
  p(n, i) {
4752
4715
  i[0] & /*userconsentsexist*/
@@ -4828,43 +4791,43 @@ function ur(e) {
4828
4791
  }
4829
4792
  };
4830
4793
  }
4831
- function ks(e) {
4794
+ function Ps(e) {
4832
4795
  let t, r = (
4833
4796
  /*$_*/
4834
4797
  e[33]("error") + ""
4835
4798
  ), n;
4836
4799
  return {
4837
4800
  c() {
4838
- t = B("p"), n = $(r), T(t, "class", "SMSErrorText");
4801
+ t = B("p"), n = j(r), T(t, "class", "SMSErrorText");
4839
4802
  },
4840
4803
  m(i, s) {
4841
- U(i, t, s), E(t, n);
4804
+ F(i, t, s), E(t, n);
4842
4805
  },
4843
4806
  p(i, s) {
4844
4807
  s[1] & /*$_*/
4845
4808
  4 && r !== (r = /*$_*/
4846
- i[33]("error") + "") && K(n, r);
4809
+ i[33]("error") + "") && Y(n, r);
4847
4810
  },
4848
4811
  d(i) {
4849
4812
  i && M(t);
4850
4813
  }
4851
4814
  };
4852
4815
  }
4853
- function js(e) {
4816
+ function Os(e) {
4854
4817
  let t;
4855
4818
  function r(s, o) {
4856
4819
  return (
4857
4820
  /*smsSendApiFailed*/
4858
- s[30] ? $s : Vs
4821
+ s[30] ? Cs : Is
4859
4822
  );
4860
4823
  }
4861
4824
  let n = r(e), i = n(e);
4862
4825
  return {
4863
4826
  c() {
4864
- i.c(), t = gn();
4827
+ i.c(), t = nn();
4865
4828
  },
4866
4829
  m(s, o) {
4867
- i.m(s, o), U(s, t, o);
4830
+ i.m(s, o), F(s, t, o);
4868
4831
  },
4869
4832
  p(s, o) {
4870
4833
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
@@ -4874,29 +4837,29 @@ function js(e) {
4874
4837
  }
4875
4838
  };
4876
4839
  }
4877
- function $s(e) {
4840
+ function Cs(e) {
4878
4841
  let t, r = (
4879
4842
  /*$_*/
4880
4843
  e[33]("error") + ""
4881
4844
  ), n;
4882
4845
  return {
4883
4846
  c() {
4884
- t = B("p"), n = $(r), T(t, "class", "SMSErrorText");
4847
+ t = B("p"), n = j(r), T(t, "class", "SMSErrorText");
4885
4848
  },
4886
4849
  m(i, s) {
4887
- U(i, t, s), E(t, n);
4850
+ F(i, t, s), E(t, n);
4888
4851
  },
4889
4852
  p(i, s) {
4890
4853
  s[1] & /*$_*/
4891
4854
  4 && r !== (r = /*$_*/
4892
- i[33]("error") + "") && K(n, r);
4855
+ i[33]("error") + "") && Y(n, r);
4893
4856
  },
4894
4857
  d(i) {
4895
4858
  i && M(t);
4896
4859
  }
4897
4860
  };
4898
4861
  }
4899
- function Vs(e) {
4862
+ function Is(e) {
4900
4863
  let t;
4901
4864
  return {
4902
4865
  c() {
@@ -4938,7 +4901,7 @@ function Vs(e) {
4938
4901
  );
4939
4902
  },
4940
4903
  m(r, n) {
4941
- U(r, t, n);
4904
+ F(r, t, n);
4942
4905
  },
4943
4906
  p(r, n) {
4944
4907
  n[0] & /*endpoint*/
@@ -4990,26 +4953,26 @@ function Vs(e) {
4990
4953
  }
4991
4954
  };
4992
4955
  }
4993
- function lr(e) {
4994
- let t, r, n, i, s, o, a, l, u, h, c, m, y, g, p, b, x, I = (
4956
+ function nr(e) {
4957
+ let t, r, n, i, s, o, a, h, l, u, c, m, y, g, p, b, x, I = (
4995
4958
  /*$_*/
4996
4959
  e[33]("goToLoginButton") + ""
4997
4960
  ), O, D, N;
4998
4961
  return {
4999
4962
  c() {
5000
- t = B("div"), r = Se("svg"), n = Se("defs"), i = Se("style"), s = $(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = Se("path"), a = G(), l = B("h2"), u = $(
4963
+ t = B("div"), r = we("svg"), n = we("defs"), i = we("style"), s = j(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = we("path"), a = U(), h = B("h2"), l = j(
5001
4964
  /*accountCreationTitle*/
5002
4965
  e[22]
5003
- ), h = G(), c = B("p"), m = $(
4966
+ ), u = U(), c = B("p"), m = j(
5004
4967
  /*accountCreationSubTitle*/
5005
4968
  e[23]
5006
- ), y = G(), g = B("p"), p = $(
4969
+ ), y = U(), g = B("p"), p = j(
5007
4970
  /*accountCreationMessage*/
5008
4971
  e[24]
5009
- ), b = G(), x = B("button"), O = $(I), T(o, "class", "a"), T(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "viewBox", "0 0 73.95 51"), T(l, "class", "RegisterConfirmationTitle"), T(c, "class", "RegisterConfirmationSubtitle"), T(g, "class", "RegisterConfirmationNote"), T(x, "class", "RegisterConfirmationGoToLogin"), T(t, "class", "RegisterConfirmation");
4972
+ ), b = U(), x = B("button"), O = j(I), T(o, "class", "a"), T(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "viewBox", "0 0 73.95 51"), T(h, "class", "RegisterConfirmationTitle"), T(c, "class", "RegisterConfirmationSubtitle"), T(g, "class", "RegisterConfirmationNote"), T(x, "class", "RegisterConfirmationGoToLogin"), T(t, "class", "RegisterConfirmation");
5010
4973
  },
5011
4974
  m(R, C) {
5012
- U(R, t, C), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c, m), E(t, y), E(t, g), E(g, p), E(t, b), E(t, x), E(x, O), D || (N = bn(
4975
+ F(R, t, C), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, h), E(h, l), E(t, u), E(t, c), E(c, m), E(t, y), E(t, g), E(g, p), E(t, b), E(t, x), E(x, O), D || (N = sn(
5013
4976
  x,
5014
4977
  "click",
5015
4978
  /*switchToLogin*/
@@ -5018,33 +4981,33 @@ function lr(e) {
5018
4981
  },
5019
4982
  p(R, C) {
5020
4983
  C[0] & /*accountCreationTitle*/
5021
- 4194304 && K(
5022
- u,
4984
+ 4194304 && Y(
4985
+ l,
5023
4986
  /*accountCreationTitle*/
5024
4987
  R[22]
5025
4988
  ), C[0] & /*accountCreationSubTitle*/
5026
- 8388608 && K(
4989
+ 8388608 && Y(
5027
4990
  m,
5028
4991
  /*accountCreationSubTitle*/
5029
4992
  R[23]
5030
4993
  ), C[0] & /*accountCreationMessage*/
5031
- 16777216 && K(
4994
+ 16777216 && Y(
5032
4995
  p,
5033
4996
  /*accountCreationMessage*/
5034
4997
  R[24]
5035
4998
  ), C[1] & /*$_*/
5036
4999
  4 && I !== (I = /*$_*/
5037
- R[33]("goToLoginButton") + "") && K(O, I);
5000
+ R[33]("goToLoginButton") + "") && Y(O, I);
5038
5001
  },
5039
5002
  d(R) {
5040
5003
  R && M(t), D = !1, N();
5041
5004
  }
5042
5005
  };
5043
5006
  }
5044
- function Xs(e) {
5007
+ function Rs(e) {
5045
5008
  let t;
5046
5009
  function r(s, o) {
5047
- return Gs;
5010
+ return As;
5048
5011
  }
5049
5012
  let i = r()(e);
5050
5013
  return {
@@ -5052,7 +5015,7 @@ function Xs(e) {
5052
5015
  t = B("div"), i.c();
5053
5016
  },
5054
5017
  m(s, o) {
5055
- U(s, t, o), i.m(t, null), e[41](t);
5018
+ F(s, t, o), i.m(t, null), e[41](t);
5056
5019
  },
5057
5020
  p(s, o) {
5058
5021
  i.p(s, o);
@@ -5064,79 +5027,79 @@ function Xs(e) {
5064
5027
  }
5065
5028
  };
5066
5029
  }
5067
- let Ws = "Please use this code {0} to activate your account";
5068
- function zs(e, t, r) {
5030
+ let Ls = "Please use this code {0} to activate your account";
5031
+ function Ns(e, t, r) {
5069
5032
  let n;
5070
- cn(e, Ms, (f) => r(33, n = f));
5071
- let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: p = "false" } = t, { userroles: b = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: O = "" } = t, { savecredentials: D = "" } = t, { custominputtextswitch: N = "false" } = t, { personalidlength: R = "13" } = t, C, gt = "", Ue = !0, le = !1, be = !1, Ge = !1, ke = !1, ye, bt = !1, yt = "", vt = "", _t = "", Et = window.navigator.userAgent, Xr = rr(Et) !== "PC", j = {}, wt = !1, xt = !1, je = "false", St = "false", Tt = "false", Ht = "false", Bt = "", Pt, ve = !1, At, _e;
5072
- Ds({ withLocale: "en", translations: {} });
5073
- const Wr = () => {
5033
+ Kr(e, Ss, (f) => r(33, n = f));
5034
+ let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: h = "" } = t, { captchakey: l = "" } = t, { lang: u = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: p = "false" } = t, { userroles: b = "" } = t, { clientstyling: x = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: O = "" } = t, { savecredentials: D = "" } = t, { custominputtextswitch: N = "false" } = t, { personalidlength: R = "13" } = t, C, dt = "", De = !0, ue = !1, ge = !1, Fe = !1, Ue = !1, be, mt = !1, pt = "", gt = "", bt = "", yt = window.navigator.userAgent, Fr = qt(yt) !== "PC", G = {}, vt = !1, _t = !1, ke = "false", Et = "false", wt = "false", xt = "false", St = "", Tt, ye = !1, Ht, ve;
5035
+ Ts({ withLocale: "en", translations: {} });
5036
+ const Ur = () => {
5074
5037
  fetch(O).then((S) => S.json()).then((S) => {
5075
- Object.keys(S).forEach((A) => {
5076
- nr(A, S[A]);
5038
+ Object.keys(S).forEach((P) => {
5039
+ Qt(P, S[P]);
5077
5040
  });
5078
5041
  }).catch((S) => {
5079
5042
  console.log(S);
5080
5043
  });
5081
5044
  };
5082
- Object.keys(ir).forEach((f) => {
5083
- nr(f, ir[f]);
5045
+ Object.keys(Yt).forEach((f) => {
5046
+ Qt(f, Yt[f]);
5084
5047
  });
5085
- const zr = () => {
5048
+ const kr = () => {
5086
5049
  fetch(`${i}/v1/player/consentRequirements`).then((f) => f.json()).then((f) => {
5087
- f.items.length > 0 ? (r(25, je = "true"), f.items.forEach((S) => {
5050
+ f.items.length > 0 ? (r(25, ke = "true"), f.items.forEach((S) => {
5088
5051
  switch (S.tagCode) {
5089
5052
  case "termsandconditions":
5090
- r(26, St = "true");
5053
+ r(26, Et = "true");
5091
5054
  break;
5092
5055
  case "sms":
5093
- r(27, Tt = "true");
5056
+ r(27, wt = "true");
5094
5057
  break;
5095
5058
  case "emailmarketing":
5096
- r(28, Ht = "true");
5059
+ r(28, xt = "true");
5097
5060
  break;
5098
5061
  }
5099
- })) : r(25, je = "false");
5062
+ })) : r(25, ke = "false");
5100
5063
  });
5101
- }, Zr = () => {
5102
- let f = new URL(`${s}/${h}/login-register-content?env=${o}`), S = rr(Et);
5103
- S && (S === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((A) => A.json()).then((A) => {
5104
- ye = A.registerData, r(22, yt = ye.title), r(23, vt = ye.subtitle), r(24, _t = ye.content);
5105
- }).catch((A) => {
5106
- console.error(A);
5064
+ }, Gr = () => {
5065
+ let f = new URL(`${s}/${u}/login-register-content?env=${o}`), S = qt(yt);
5066
+ S && (S === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((P) => P.json()).then((P) => {
5067
+ be = P.registerData, r(22, pt = be.title), r(23, gt = be.subtitle), r(24, bt = be.content);
5068
+ }).catch((P) => {
5069
+ console.error(P);
5107
5070
  });
5108
- }, Ee = () => {
5109
- _e.scrollIntoView();
5110
- }, he = (f) => {
5071
+ }, _e = () => {
5072
+ ve.scrollIntoView();
5073
+ }, le = (f) => {
5111
5074
  for (const S in f)
5112
- j[S] = f[S], S === "mobile" && r(31, At = `${f[S].prefix}${f[S].number}`);
5113
- j.affiliateMarker = j.promoCode ? j.promoCode : l != null ? l : "";
5114
- }, Ot = (f) => {
5075
+ G[S] = f[S], S === "mobile" && r(31, Ht = `${f[S].prefix}${f[S].number}`);
5076
+ G.affiliateMarker = G.promoCode ? G.promoCode : h ?? "";
5077
+ }, Bt = (f) => {
5115
5078
  if (f.data)
5116
5079
  switch (f.data.type) {
5117
5080
  case "RegisterStepOne":
5118
- he(f.data.registerStepOneData), Ee(), r(17, Ue = !1), r(18, le = !0), wt == !1 ? wt = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: j }, window.location.href);
5081
+ le(f.data.registerStepOneData), _e(), r(17, De = !1), r(18, ue = !0), vt == !1 ? vt = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: G }, window.location.href);
5119
5082
  break;
5120
5083
  case "RegisterStepTwo":
5121
- he(f.data.registerStepTwoData), Ee(), r(18, le = !1), r(19, be = !0), xt == !1 ? xt = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: j }, window.location.href);
5084
+ le(f.data.registerStepTwoData), _e(), r(18, ue = !1), r(19, ge = !0), _t == !1 ? _t = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: G }, window.location.href);
5122
5085
  break;
5123
5086
  case "RegisterStepThree":
5124
- he(f.data.registerStepThreeData), qr(j);
5087
+ le(f.data.registerStepThreeData), $r(G);
5125
5088
  break;
5126
5089
  case "SmsHasBeenValidated":
5127
- r(21, ke = !0), r(20, Ge = !1);
5090
+ r(21, Ue = !0), r(20, Fe = !1);
5128
5091
  break;
5129
5092
  case "GoBackStepTwo":
5130
- he(f.data.registerStepTwoData), Ee(), r(17, Ue = !0), r(18, le = !1), window.postMessage({ type: "StepOneDataBackup", userData: j }, window.location.href);
5093
+ le(f.data.registerStepTwoData), _e(), r(17, De = !0), r(18, ue = !1), window.postMessage({ type: "StepOneDataBackup", userData: G }, window.location.href);
5131
5094
  break;
5132
5095
  case "GoBackStepThree":
5133
- he(f.data.registerStepThreeData), Ee(), r(18, le = !0), r(19, be = !1), window.postMessage({ type: "StepTwoDataBackup", userData: j }, window.location.href);
5096
+ le(f.data.registerStepThreeData), _e(), r(18, ue = !0), r(19, ge = !1), window.postMessage({ type: "StepTwoDataBackup", userData: G }, window.location.href);
5134
5097
  break;
5135
5098
  }
5136
- }, Jr = () => {
5099
+ }, jr = () => {
5137
5100
  typeof gtag == "function" && gtag("event", "Register", { context: "GeneralPlayerRegisterForm" });
5138
- }, qr = (f) => we(this, null, function* () {
5139
- f.language = h;
5101
+ }, $r = async (f) => {
5102
+ f.language = u;
5140
5103
  let S = {
5141
5104
  method: "PUT",
5142
5105
  headers: {
@@ -5145,19 +5108,19 @@ function zs(e, t, r) {
5145
5108
  Accept: "application/json"
5146
5109
  },
5147
5110
  body: JSON.stringify(f)
5148
- }, A = yield fetch(`${i}/v1/player/register`, S), W = yield A.json();
5149
- A.ok ? (r(19, be = !1), g === "false" ? r(21, ke = !0) : (r(16, gt = W.id), Qr(f, W.id)), f.username, f.password, Jr()) : (Bt = W.error.substring(W.error.indexOf("errorMessage") + 13, W.error.length), bt = !0, window.postMessage(
5111
+ }, P = await fetch(`${i}/v1/player/register`, S), X = await P.json();
5112
+ P.ok ? (r(19, ge = !1), g === "false" ? r(21, Ue = !0) : (r(16, dt = X.id), Vr(f, X.id)), f.username, f.password, jr()) : (St = X.error.substring(X.error.indexOf("errorMessage") + 13, X.error.length), mt = !0, window.postMessage(
5150
5113
  {
5151
5114
  type: "ShowRegistrationError",
5152
- showError: bt,
5153
- error: Bt
5115
+ showError: mt,
5116
+ error: St
5154
5117
  },
5155
5118
  window.location.href
5156
5119
  ));
5157
- }), Qr = (f, S) => we(this, null, function* () {
5120
+ }, Vr = async (f, S) => {
5158
5121
  localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
5159
5122
  try {
5160
- const A = yield fetch(`${i}/v1/player/sms/token`, {
5123
+ const P = await fetch(`${i}/v1/player/sms/token`, {
5161
5124
  method: "POST",
5162
5125
  headers: {
5163
5126
  "Content-Type": "application/json",
@@ -5165,32 +5128,32 @@ function zs(e, t, r) {
5165
5128
  },
5166
5129
  body: JSON.stringify({
5167
5130
  userId: S,
5168
- messageTemplate: Ws,
5131
+ messageTemplate: Ls,
5169
5132
  destination: `${f.mobile.prefix}${f.mobile.number}`
5170
5133
  })
5171
- }), W = yield A.json();
5172
- if (A.ok) {
5173
- r(29, Pt = W.id);
5174
- let Zs = W.maxValidationAttempts;
5175
- r(20, Ge = !0), r(30, ve = !1);
5134
+ }), X = await P.json();
5135
+ if (P.ok) {
5136
+ r(29, Tt = X.id);
5137
+ let Ds = X.maxValidationAttempts;
5138
+ r(20, Fe = !0), r(30, ye = !1);
5176
5139
  } else
5177
- throw r(30, ve = !0), new Error("Failed to fetch");
5178
- } catch (A) {
5179
- r(30, ve = !0), console.error(A);
5140
+ throw r(30, ye = !0), new Error("Failed to fetch");
5141
+ } catch (P) {
5142
+ r(30, ye = !0), console.error(P);
5180
5143
  }
5181
- }), Yr = () => {
5144
+ }, Xr = () => {
5182
5145
  m.split(",");
5183
- }, Kr = () => {
5146
+ }, Wr = () => {
5184
5147
  window.postMessage({ type: "ToLogin" }, window.location.href);
5185
- }, en = () => {
5186
- Fs(h);
5187
- }, tn = () => {
5148
+ }, zr = () => {
5149
+ Hs(u);
5150
+ }, Zr = () => {
5188
5151
  let f = document.createElement("style");
5189
5152
  f.innerHTML = x, C.appendChild(f);
5190
- }, rn = () => {
5153
+ }, Jr = () => {
5191
5154
  let f = new URL(I), S = document.createElement("style");
5192
- fetch(f.href).then((A) => A.text()).then((A) => {
5193
- S.innerHTML = A, setTimeout(
5155
+ fetch(f.href).then((P) => P.text()).then((P) => {
5156
+ S.innerHTML = P, setTimeout(
5194
5157
  () => {
5195
5158
  C.appendChild(S);
5196
5159
  },
@@ -5202,37 +5165,37 @@ function zs(e, t, r) {
5202
5165
  );
5203
5166
  });
5204
5167
  };
5205
- En(() => (window.addEventListener("message", Ot, !1), () => {
5206
- window.removeEventListener("message", Ot);
5168
+ ln(() => (window.addEventListener("message", Bt, !1), () => {
5169
+ window.removeEventListener("message", Bt);
5207
5170
  }));
5208
- function nn(f) {
5209
- Ce[f ? "unshift" : "push"](() => {
5210
- _e = f, r(32, _e);
5171
+ function qr(f) {
5172
+ Pe[f ? "unshift" : "push"](() => {
5173
+ ve = f, r(32, ve);
5211
5174
  });
5212
5175
  }
5213
- function sn(f) {
5214
- Ce[f ? "unshift" : "push"](() => {
5176
+ function Qr(f) {
5177
+ Pe[f ? "unshift" : "push"](() => {
5215
5178
  C = f, r(15, C);
5216
5179
  });
5217
5180
  }
5218
5181
  return e.$$set = (f) => {
5219
- "endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(36, s = f.cmsendpoint), "env" in f && r(37, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(38, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, p = f.simplepasswordvalidation), "userroles" in f && r(39, b = f.userroles), "clientstyling" in f && r(9, x = f.clientstyling), "clientstylingurl" in f && r(10, I = f.clientstylingurl), "translationurl" in f && r(11, O = f.translationurl), "savecredentials" in f && r(12, D = f.savecredentials), "custominputtextswitch" in f && r(13, N = f.custominputtextswitch), "personalidlength" in f && r(14, R = f.personalidlength);
5182
+ "endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(36, s = f.cmsendpoint), "env" in f && r(37, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(38, h = f.trackedanalyticsdata), "captchakey" in f && r(2, l = f.captchakey), "lang" in f && r(3, u = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, p = f.simplepasswordvalidation), "userroles" in f && r(39, b = f.userroles), "clientstyling" in f && r(9, x = f.clientstyling), "clientstylingurl" in f && r(10, I = f.clientstylingurl), "translationurl" in f && r(11, O = f.translationurl), "savecredentials" in f && r(12, D = f.savecredentials), "custominputtextswitch" in f && r(13, N = f.custominputtextswitch), "personalidlength" in f && r(14, R = f.personalidlength);
5220
5183
  }, e.$$.update = () => {
5221
5184
  e.$$.dirty[0] & /*endpoint*/
5222
- 1 && i && zr(), e.$$.dirty[0] & /*lang*/
5185
+ 1 && i && kr(), e.$$.dirty[0] & /*lang*/
5223
5186
  8 | e.$$.dirty[1] & /*cmsendpoint, env, userroles*/
5224
- 352 && s && h && o && b && Zr(), e.$$.dirty[0] & /*playerid, session*/
5187
+ 352 && s && u && o && b && Gr(), e.$$.dirty[0] & /*playerid, session*/
5225
5188
  65538, e.$$.dirty[0] & /*lang*/
5226
- 8 && h && en(), e.$$.dirty[0] & /*disabledfields*/
5227
- 32 && m && Yr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5228
- 33280 && x && C && tn(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5229
- 33792 && I && C && rn(), e.$$.dirty[0] & /*translationurl*/
5230
- 2048 && O && Wr();
5189
+ 8 && u && zr(), e.$$.dirty[0] & /*disabledfields*/
5190
+ 32 && m && Xr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5191
+ 33280 && x && C && Zr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5192
+ 33792 && I && C && Jr(), e.$$.dirty[0] & /*translationurl*/
5193
+ 2048 && O && Ur();
5231
5194
  }, [
5232
5195
  i,
5233
5196
  a,
5197
+ l,
5234
5198
  u,
5235
- h,
5236
5199
  c,
5237
5200
  m,
5238
5201
  y,
@@ -5245,42 +5208,42 @@ function zs(e, t, r) {
5245
5208
  N,
5246
5209
  R,
5247
5210
  C,
5248
- gt,
5211
+ dt,
5212
+ De,
5213
+ ue,
5214
+ ge,
5215
+ Fe,
5249
5216
  Ue,
5250
- le,
5251
- be,
5252
- Ge,
5217
+ pt,
5218
+ gt,
5219
+ bt,
5253
5220
  ke,
5254
- yt,
5255
- vt,
5256
- _t,
5257
- je,
5258
- St,
5221
+ Et,
5222
+ wt,
5223
+ xt,
5259
5224
  Tt,
5225
+ ye,
5260
5226
  Ht,
5261
- Pt,
5262
5227
  ve,
5263
- At,
5264
- _e,
5265
5228
  n,
5266
- Xr,
5267
- Kr,
5229
+ Fr,
5230
+ Wr,
5268
5231
  s,
5269
5232
  o,
5270
- l,
5233
+ h,
5271
5234
  b,
5272
- nn,
5273
- sn
5235
+ qr,
5236
+ Qr
5274
5237
  ];
5275
5238
  }
5276
- class Vr extends Rn {
5239
+ class Ms extends En {
5277
5240
  constructor(t) {
5278
- super(), Cn(
5241
+ super(), vn(
5279
5242
  this,
5280
5243
  t,
5281
- zs,
5282
- Xs,
5283
- fr,
5244
+ Ns,
5245
+ Rs,
5246
+ sr,
5284
5247
  {
5285
5248
  endpoint: 0,
5286
5249
  cmsendpoint: 36,
@@ -5302,7 +5265,7 @@ class Vr extends Rn {
5302
5265
  custominputtextswitch: 13,
5303
5266
  personalidlength: 14
5304
5267
  },
5305
- Us,
5268
+ Bs,
5306
5269
  [-1, -1, -1]
5307
5270
  );
5308
5271
  }
@@ -5310,156 +5273,152 @@ class Vr extends Rn {
5310
5273
  return this.$$.ctx[0];
5311
5274
  }
5312
5275
  set endpoint(t) {
5313
- this.$$set({ endpoint: t }), P();
5276
+ this.$$set({ endpoint: t }), A();
5314
5277
  }
5315
5278
  get cmsendpoint() {
5316
5279
  return this.$$.ctx[36];
5317
5280
  }
5318
5281
  set cmsendpoint(t) {
5319
- this.$$set({ cmsendpoint: t }), P();
5282
+ this.$$set({ cmsendpoint: t }), A();
5320
5283
  }
5321
5284
  get env() {
5322
5285
  return this.$$.ctx[37];
5323
5286
  }
5324
5287
  set env(t) {
5325
- this.$$set({ env: t }), P();
5288
+ this.$$set({ env: t }), A();
5326
5289
  }
5327
5290
  get session() {
5328
5291
  return this.$$.ctx[1];
5329
5292
  }
5330
5293
  set session(t) {
5331
- this.$$set({ session: t }), P();
5294
+ this.$$set({ session: t }), A();
5332
5295
  }
5333
5296
  get trackedanalyticsdata() {
5334
5297
  return this.$$.ctx[38];
5335
5298
  }
5336
5299
  set trackedanalyticsdata(t) {
5337
- this.$$set({ trackedanalyticsdata: t }), P();
5300
+ this.$$set({ trackedanalyticsdata: t }), A();
5338
5301
  }
5339
5302
  get captchakey() {
5340
5303
  return this.$$.ctx[2];
5341
5304
  }
5342
5305
  set captchakey(t) {
5343
- this.$$set({ captchakey: t }), P();
5306
+ this.$$set({ captchakey: t }), A();
5344
5307
  }
5345
5308
  get lang() {
5346
5309
  return this.$$.ctx[3];
5347
5310
  }
5348
5311
  set lang(t) {
5349
- this.$$set({ lang: t }), P();
5312
+ this.$$set({ lang: t }), A();
5350
5313
  }
5351
5314
  get licenseyears() {
5352
5315
  return this.$$.ctx[4];
5353
5316
  }
5354
5317
  set licenseyears(t) {
5355
- this.$$set({ licenseyears: t }), P();
5318
+ this.$$set({ licenseyears: t }), A();
5356
5319
  }
5357
5320
  get disabledfields() {
5358
5321
  return this.$$.ctx[5];
5359
5322
  }
5360
5323
  set disabledfields(t) {
5361
- this.$$set({ disabledfields: t }), P();
5324
+ this.$$set({ disabledfields: t }), A();
5362
5325
  }
5363
5326
  get defaultoptions() {
5364
5327
  return this.$$.ctx[6];
5365
5328
  }
5366
5329
  set defaultoptions(t) {
5367
- this.$$set({ defaultoptions: t }), P();
5330
+ this.$$set({ defaultoptions: t }), A();
5368
5331
  }
5369
5332
  get smsverification() {
5370
5333
  return this.$$.ctx[7];
5371
5334
  }
5372
5335
  set smsverification(t) {
5373
- this.$$set({ smsverification: t }), P();
5336
+ this.$$set({ smsverification: t }), A();
5374
5337
  }
5375
5338
  get simplepasswordvalidation() {
5376
5339
  return this.$$.ctx[8];
5377
5340
  }
5378
5341
  set simplepasswordvalidation(t) {
5379
- this.$$set({ simplepasswordvalidation: t }), P();
5342
+ this.$$set({ simplepasswordvalidation: t }), A();
5380
5343
  }
5381
5344
  get userroles() {
5382
5345
  return this.$$.ctx[39];
5383
5346
  }
5384
5347
  set userroles(t) {
5385
- this.$$set({ userroles: t }), P();
5348
+ this.$$set({ userroles: t }), A();
5386
5349
  }
5387
5350
  get clientstyling() {
5388
5351
  return this.$$.ctx[9];
5389
5352
  }
5390
5353
  set clientstyling(t) {
5391
- this.$$set({ clientstyling: t }), P();
5354
+ this.$$set({ clientstyling: t }), A();
5392
5355
  }
5393
5356
  get clientstylingurl() {
5394
5357
  return this.$$.ctx[10];
5395
5358
  }
5396
5359
  set clientstylingurl(t) {
5397
- this.$$set({ clientstylingurl: t }), P();
5360
+ this.$$set({ clientstylingurl: t }), A();
5398
5361
  }
5399
5362
  get translationurl() {
5400
5363
  return this.$$.ctx[11];
5401
5364
  }
5402
5365
  set translationurl(t) {
5403
- this.$$set({ translationurl: t }), P();
5366
+ this.$$set({ translationurl: t }), A();
5404
5367
  }
5405
5368
  get savecredentials() {
5406
5369
  return this.$$.ctx[12];
5407
5370
  }
5408
5371
  set savecredentials(t) {
5409
- this.$$set({ savecredentials: t }), P();
5372
+ this.$$set({ savecredentials: t }), A();
5410
5373
  }
5411
5374
  get custominputtextswitch() {
5412
5375
  return this.$$.ctx[13];
5413
5376
  }
5414
5377
  set custominputtextswitch(t) {
5415
- this.$$set({ custominputtextswitch: t }), P();
5378
+ this.$$set({ custominputtextswitch: t }), A();
5416
5379
  }
5417
5380
  get personalidlength() {
5418
5381
  return this.$$.ctx[14];
5419
5382
  }
5420
5383
  set personalidlength(t) {
5421
- this.$$set({ personalidlength: t }), P();
5384
+ this.$$set({ personalidlength: t }), A();
5422
5385
  }
5423
5386
  }
5424
- In(Vr, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
5425
- const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5426
- __proto__: null,
5427
- default: Vr
5428
- }, Symbol.toStringTag, { value: "Module" }));
5387
+ _n(Ms, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
5429
5388
  export {
5430
- Z as $,
5431
- Ys as A,
5432
- gn as B,
5433
- to as C,
5434
- ae as D,
5435
- Qs as E,
5436
- qs as F,
5437
- no as G,
5438
- Rn as S,
5439
- Ur as a,
5440
- dn as b,
5441
- In as c,
5442
- G as d,
5389
+ z as $,
5390
+ ks as A,
5391
+ nn as B,
5392
+ $s as C,
5393
+ oe as D,
5394
+ Us as E,
5395
+ Fs as F,
5396
+ Ms as G,
5397
+ En as S,
5398
+ Rr as a,
5399
+ en as b,
5400
+ _n as c,
5401
+ U as d,
5443
5402
  B as e,
5444
- P as f,
5403
+ A as f,
5445
5404
  T as g,
5446
- U as h,
5447
- Cn as i,
5405
+ F as h,
5406
+ vn as i,
5448
5407
  E as j,
5449
- Ks as k,
5450
- bn as l,
5451
- K as m,
5408
+ Gs as k,
5409
+ sn as l,
5410
+ Y as m,
5452
5411
  k as n,
5453
5412
  M as o,
5454
- cn as p,
5455
- En as q,
5456
- ge as r,
5457
- fr as s,
5458
- $ as t,
5459
- Ce as u,
5460
- Se as v,
5461
- Ms as w,
5462
- Ye as x,
5463
- eo as y,
5464
- ro as z
5413
+ Kr as p,
5414
+ ln as q,
5415
+ pe as r,
5416
+ sr as s,
5417
+ j as t,
5418
+ Pe as u,
5419
+ we as v,
5420
+ Ss as w,
5421
+ Je as x,
5422
+ js as y,
5423
+ Vs as z
5465
5424
  };