@everymatrix/general-player-sms-verification-form 1.87.25 → 1.87.27

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,24 +1,24 @@
1
1
  function U() {
2
2
  }
3
- function vt(e) {
3
+ function Et(e) {
4
4
  return e();
5
5
  }
6
- function qe() {
6
+ function Ke() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ie(e) {
10
- e.forEach(vt);
9
+ function oe(e) {
10
+ e.forEach(Et);
11
11
  }
12
- function Ze(e) {
12
+ function Je(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function yt(e, t) {
15
+ function _t(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function zt(e) {
18
+ function Zt(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Et(e, ...t) {
21
+ function xt(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
@@ -27,20 +27,20 @@ function Et(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function Wt(e, t, r) {
31
- e.$$.on_destroy.push(Et(t, r));
30
+ function Jt(e, t, r) {
31
+ e.$$.on_destroy.push(xt(t, r));
32
32
  }
33
- function y(e, t) {
33
+ function v(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Zt(e, t, r) {
37
- const n = Jt(e);
36
+ function Qt(e, t, r) {
37
+ const n = qt(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = N("style");
40
- i.id = t, i.textContent = r, Qt(n, i);
39
+ const i = M("style");
40
+ i.id = t, i.textContent = r, Yt(n, i);
41
41
  }
42
42
  }
43
- function Jt(e) {
43
+ function qt(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,8 +50,8 @@ function Jt(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Qt(e, t) {
54
- return y(
53
+ function Yt(e, t) {
54
+ return v(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
@@ -63,32 +63,32 @@ function Z(e, t, r) {
63
63
  function j(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function N(e) {
66
+ function M(e) {
67
67
  return document.createElement(e);
68
68
  }
69
- function M(e) {
69
+ function L(e) {
70
70
  return document.createTextNode(e);
71
71
  }
72
72
  function z() {
73
- return M(" ");
73
+ return L(" ");
74
74
  }
75
- function be(e, t, r, n) {
75
+ function ge(e, t, r, n) {
76
76
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
77
77
  }
78
78
  function A(e, t, r) {
79
79
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
80
80
  }
81
- function qt(e) {
81
+ function Kt(e) {
82
82
  return Array.from(e.childNodes);
83
83
  }
84
- function G(e, t) {
84
+ function F(e, t) {
85
85
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
86
86
  t);
87
87
  }
88
- function Ye(e, t) {
88
+ function et(e, t) {
89
89
  e.value = t ?? "";
90
90
  }
91
- function Yt(e) {
91
+ function er(e) {
92
92
  const t = {};
93
93
  return e.childNodes.forEach(
94
94
  /** @param {Element} node */
@@ -101,25 +101,25 @@ let de;
101
101
  function fe(e) {
102
102
  de = e;
103
103
  }
104
- function Kt() {
104
+ function tr() {
105
105
  if (!de)
106
106
  throw new Error("Function called outside component initialization");
107
107
  return de;
108
108
  }
109
- function er(e) {
110
- Kt().$$.on_mount.push(e);
109
+ function rr(e) {
110
+ tr().$$.on_mount.push(e);
111
111
  }
112
- const Y = [], Re = [];
113
- let K = [];
114
- const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
115
- let $e = !1;
116
- function rr() {
117
- $e || ($e = !0, tr.then($));
112
+ const Y = [], $e = [];
113
+ let ee = [];
114
+ const tt = [], nr = /* @__PURE__ */ Promise.resolve();
115
+ let Ue = !1;
116
+ function ir() {
117
+ Ue || (Ue = !0, nr.then($));
118
118
  }
119
- function Ue(e) {
120
- K.push(e);
119
+ function De(e) {
120
+ ee.push(e);
121
121
  }
122
- const Pe = /* @__PURE__ */ new Set();
122
+ const Ce = /* @__PURE__ */ new Set();
123
123
  let Q = 0;
124
124
  function $() {
125
125
  if (Q !== 0)
@@ -129,53 +129,53 @@ function $() {
129
129
  try {
130
130
  for (; Q < Y.length; ) {
131
131
  const t = Y[Q];
132
- Q++, fe(t), nr(t.$$);
132
+ Q++, fe(t), or(t.$$);
133
133
  }
134
134
  } catch (t) {
135
135
  throw Y.length = 0, Q = 0, t;
136
136
  }
137
- for (fe(null), Y.length = 0, Q = 0; Re.length; )
138
- Re.pop()();
139
- for (let t = 0; t < K.length; t += 1) {
140
- const r = K[t];
141
- Pe.has(r) || (Pe.add(r), r());
137
+ for (fe(null), Y.length = 0, Q = 0; $e.length; )
138
+ $e.pop()();
139
+ for (let t = 0; t < ee.length; t += 1) {
140
+ const r = ee[t];
141
+ Ce.has(r) || (Ce.add(r), r());
142
142
  }
143
- K.length = 0;
143
+ ee.length = 0;
144
144
  } while (Y.length);
145
- for (; Ke.length; )
146
- Ke.pop()();
147
- $e = !1, Pe.clear(), fe(e);
145
+ for (; tt.length; )
146
+ tt.pop()();
147
+ Ue = !1, Ce.clear(), fe(e);
148
148
  }
149
- function nr(e) {
149
+ function or(e) {
150
150
  if (e.fragment !== null) {
151
- e.update(), ie(e.before_update);
151
+ e.update(), oe(e.before_update);
152
152
  const t = e.dirty;
153
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
153
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
154
154
  }
155
155
  }
156
- function ir(e) {
156
+ function sr(e) {
157
157
  const t = [], r = [];
158
- K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
158
+ ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
159
159
  }
160
- const or = /* @__PURE__ */ new Set();
161
- function sr(e, t) {
162
- e && e.i && (or.delete(e), e.i(t));
160
+ const ar = /* @__PURE__ */ new Set();
161
+ function ur(e, t) {
162
+ e && e.i && (ar.delete(e), e.i(t));
163
163
  }
164
- function ar(e, t, r) {
164
+ function lr(e, t, r) {
165
165
  const { fragment: n, after_update: i } = e.$$;
166
- n && n.m(t, r), Ue(() => {
167
- const o = e.$$.on_mount.map(vt).filter(Ze);
168
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
169
- }), i.forEach(Ue);
166
+ n && n.m(t, r), De(() => {
167
+ const o = e.$$.on_mount.map(Et).filter(Je);
168
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
169
+ }), i.forEach(De);
170
170
  }
171
- function ur(e, t) {
171
+ function hr(e, t) {
172
172
  const r = e.$$;
173
- r.fragment !== null && (ir(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
173
+ r.fragment !== null && (sr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
174
174
  }
175
- function lr(e, t) {
176
- e.$$.dirty[0] === -1 && (Y.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
175
+ function cr(e, t) {
176
+ e.$$.dirty[0] === -1 && (Y.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
177
177
  }
178
- function hr(e, t, r, n, i, o, a = null, s = [-1]) {
178
+ function fr(e, t, r, n, i, o, a = null, s = [-1]) {
179
179
  const h = de;
180
180
  fe(e);
181
181
  const u = e.$$ = {
@@ -185,7 +185,7 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
185
185
  props: o,
186
186
  update: U,
187
187
  not_equal: i,
188
- bound: qe(),
188
+ bound: Ke(),
189
189
  // lifecycle
190
190
  on_mount: [],
191
191
  on_destroy: [],
@@ -194,28 +194,28 @@ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
194
194
  after_update: [],
195
195
  context: new Map(t.context || (h ? h.$$.context : [])),
196
196
  // everything else
197
- callbacks: qe(),
197
+ callbacks: Ke(),
198
198
  dirty: s,
199
199
  skip_bound: !1,
200
200
  root: t.target || h.$$.root
201
201
  };
202
202
  a && a(u.root);
203
203
  let l = !1;
204
- if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
205
- const v = g.length ? g[0] : d;
206
- return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && lr(e, c)), d;
207
- }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
204
+ if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
205
+ const g = b.length ? b[0] : d;
206
+ return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), l && cr(e, f)), d;
207
+ }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
208
208
  if (t.hydrate) {
209
- const c = qt(t.target);
210
- u.fragment && u.fragment.l(c), c.forEach(j);
209
+ const f = Kt(t.target);
210
+ u.fragment && u.fragment.l(f), f.forEach(j);
211
211
  } else
212
212
  u.fragment && u.fragment.c();
213
- t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), $();
213
+ t.intro && ur(e.$$.fragment), lr(e, t.target, t.anchor), $();
214
214
  }
215
215
  fe(h);
216
216
  }
217
- let _t;
218
- typeof HTMLElement == "function" && (_t = class extends HTMLElement {
217
+ let St;
218
+ typeof HTMLElement == "function" && (St = class extends HTMLElement {
219
219
  /** The Svelte component constructor */
220
220
  $$ctor;
221
221
  /** Slots */
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
257
257
  let o;
258
258
  return {
259
259
  c: function() {
260
- o = N("slot"), i !== "default" && A(o, "name", i);
260
+ o = M("slot"), i !== "default" && A(o, "name", i);
261
261
  },
262
262
  /**
263
263
  * @param {HTMLElement} target
@@ -274,12 +274,12 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
274
274
  };
275
275
  if (await Promise.resolve(), !this.$$cn || this.$$c)
276
276
  return;
277
- const t = {}, r = Yt(this);
277
+ const t = {}, r = er(this);
278
278
  for (const i of this.$$s)
279
279
  i in r && (t[i] = [e(i)]);
280
280
  for (const i of this.attributes) {
281
281
  const o = this.$$g_p(i.name);
282
- o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
282
+ o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
283
283
  }
284
284
  for (const i in this.$$p_d)
285
285
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
297
297
  this.$$r = !0;
298
298
  for (const i in this.$$p_d)
299
299
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
300
- const o = ve(
300
+ const o = ye(
301
301
  i,
302
302
  this.$$d[i],
303
303
  this.$$p_d,
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
319
319
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
320
320
  // and setting attributes through setAttribute etc, this is helpful
321
321
  attributeChangedCallback(e, t, r) {
322
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
322
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
323
323
  }
324
324
  disconnectedCallback() {
325
325
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
332
332
  ) || e;
333
333
  }
334
334
  });
335
- function ve(e, t, r, n) {
335
+ function ye(e, t, r, n) {
336
336
  const i = r[e]?.type;
337
337
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
338
338
  return t;
@@ -361,8 +361,8 @@ function ve(e, t, r, n) {
361
361
  return t;
362
362
  }
363
363
  }
364
- function cr(e, t, r, n, i, o) {
365
- let a = class extends _t {
364
+ function dr(e, t, r, n, i, o) {
365
+ let a = class extends St {
366
366
  constructor() {
367
367
  super(e, r, i), this.$$p_d = t;
368
368
  }
@@ -378,7 +378,7 @@ function cr(e, t, r, n, i, o) {
378
378
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
379
379
  },
380
380
  set(h) {
381
- h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
381
+ h = ye(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
382
382
  }
383
383
  });
384
384
  }), n.forEach((s) => {
@@ -390,7 +390,7 @@ function cr(e, t, r, n, i, o) {
390
390
  }), e.element = /** @type {any} */
391
391
  a, a;
392
392
  }
393
- class fr {
393
+ class mr {
394
394
  /**
395
395
  * ### PRIVATE API
396
396
  *
@@ -409,7 +409,7 @@ class fr {
409
409
  $$set = void 0;
410
410
  /** @returns {void} */
411
411
  $destroy() {
412
- ur(this, 1), this.$destroy = U;
412
+ hr(this, 1), this.$destroy = U;
413
413
  }
414
414
  /**
415
415
  * @template {Extract<keyof Events, string>} K
@@ -418,7 +418,7 @@ class fr {
418
418
  * @returns {() => void}
419
419
  */
420
420
  $on(t, r) {
421
- if (!Ze(r))
421
+ if (!Je(r))
422
422
  return U;
423
423
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
424
424
  return n.push(r), () => {
@@ -431,22 +431,22 @@ class fr {
431
431
  * @returns {void}
432
432
  */
433
433
  $set(t) {
434
- this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
434
+ this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
435
435
  }
436
436
  }
437
- const dr = "4";
438
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
437
+ const pr = "4";
438
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
439
439
  const q = [];
440
- function mr(e, t) {
440
+ function br(e, t) {
441
441
  return {
442
- subscribe: Te(e, t).subscribe
442
+ subscribe: He(e, t).subscribe
443
443
  };
444
444
  }
445
- function Te(e, t = U) {
445
+ function He(e, t = U) {
446
446
  let r;
447
447
  const n = /* @__PURE__ */ new Set();
448
448
  function i(s) {
449
- if (yt(e, s) && (e = s, r)) {
449
+ if (_t(e, s) && (e = s, r)) {
450
450
  const h = !q.length;
451
451
  for (const u of n)
452
452
  u[1](), q.push(u, e);
@@ -468,139 +468,139 @@ function Te(e, t = U) {
468
468
  }
469
469
  return { set: i, update: o, subscribe: a };
470
470
  }
471
- function oe(e, t, r) {
471
+ function se(e, t, r) {
472
472
  const n = !Array.isArray(e), i = n ? [e] : e;
473
473
  if (!i.every(Boolean))
474
474
  throw new Error("derived() expects stores as input, got a falsy value");
475
475
  const o = t.length < 2;
476
- return mr(r, (a, s) => {
476
+ return br(r, (a, s) => {
477
477
  let h = !1;
478
478
  const u = [];
479
- let l = 0, c = U;
479
+ let l = 0, f = U;
480
480
  const d = () => {
481
481
  if (l)
482
482
  return;
483
- c();
484
- const v = t(n ? u[0] : u, a, s);
485
- o ? a(v) : c = Ze(v) ? v : U;
486
- }, g = i.map(
487
- (v, _) => Et(
488
- v,
489
- (T) => {
490
- u[_] = T, l &= ~(1 << _), h && d();
483
+ f();
484
+ const g = t(n ? u[0] : u, a, s);
485
+ o ? a(g) : f = Je(g) ? g : U;
486
+ }, b = i.map(
487
+ (g, E) => xt(
488
+ g,
489
+ (S) => {
490
+ u[E] = S, l &= ~(1 << E), h && d();
491
491
  },
492
492
  () => {
493
- l |= 1 << _;
493
+ l |= 1 << E;
494
494
  }
495
495
  )
496
496
  );
497
497
  return h = !0, d(), function() {
498
- ie(g), c(), h = !1;
498
+ oe(b), f(), h = !1;
499
499
  };
500
500
  });
501
501
  }
502
- function pr(e) {
502
+ function gr(e) {
503
503
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
504
504
  }
505
- var br = function(t) {
506
- return gr(t) && !vr(t);
505
+ var vr = function(t) {
506
+ return yr(t) && !Er(t);
507
507
  };
508
- function gr(e) {
508
+ function yr(e) {
509
509
  return !!e && typeof e == "object";
510
510
  }
511
- function vr(e) {
511
+ function Er(e) {
512
512
  var t = Object.prototype.toString.call(e);
513
- return t === "[object RegExp]" || t === "[object Date]" || _r(e);
513
+ return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
514
514
  }
515
- var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
516
- function _r(e) {
517
- return e.$$typeof === Er;
515
+ var _r = typeof Symbol == "function" && Symbol.for, xr = _r ? Symbol.for("react.element") : 60103;
516
+ function Sr(e) {
517
+ return e.$$typeof === xr;
518
518
  }
519
- function xr(e) {
519
+ function Tr(e) {
520
520
  return Array.isArray(e) ? [] : {};
521
521
  }
522
522
  function me(e, t) {
523
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(xr(e), e, t) : e;
523
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(Tr(e), e, t) : e;
524
524
  }
525
- function Sr(e, t, r) {
525
+ function Hr(e, t, r) {
526
526
  return e.concat(t).map(function(n) {
527
527
  return me(n, r);
528
528
  });
529
529
  }
530
- function Tr(e, t) {
530
+ function wr(e, t) {
531
531
  if (!t.customMerge)
532
- return ee;
532
+ return te;
533
533
  var r = t.customMerge(e);
534
- return typeof r == "function" ? r : ee;
534
+ return typeof r == "function" ? r : te;
535
535
  }
536
- function Hr(e) {
536
+ function Ar(e) {
537
537
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
538
538
  return Object.propertyIsEnumerable.call(e, t);
539
539
  }) : [];
540
540
  }
541
- function et(e) {
542
- return Object.keys(e).concat(Hr(e));
541
+ function rt(e) {
542
+ return Object.keys(e).concat(Ar(e));
543
543
  }
544
- function xt(e, t) {
544
+ function Tt(e, t) {
545
545
  try {
546
546
  return t in e;
547
547
  } catch {
548
548
  return !1;
549
549
  }
550
550
  }
551
- function Ar(e, t) {
552
- return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
551
+ function Br(e, t) {
552
+ return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
553
553
  }
554
- function Br(e, t, r) {
554
+ function Pr(e, t, r) {
555
555
  var n = {};
556
- return r.isMergeableObject(e) && et(e).forEach(function(i) {
556
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
557
557
  n[i] = me(e[i], r);
558
- }), et(t).forEach(function(i) {
559
- Ar(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
558
+ }), rt(t).forEach(function(i) {
559
+ Br(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = wr(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
560
560
  }), n;
561
561
  }
562
- function ee(e, t, r) {
563
- r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = me;
562
+ function te(e, t, r) {
563
+ r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || vr, r.cloneUnlessOtherwiseSpecified = me;
564
564
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
565
- return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : me(t, r);
565
+ return o ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : me(t, r);
566
566
  }
567
- ee.all = function(t, r) {
567
+ te.all = function(t, r) {
568
568
  if (!Array.isArray(t))
569
569
  throw new Error("first argument should be an array");
570
570
  return t.reduce(function(n, i) {
571
- return ee(n, i, r);
571
+ return te(n, i, r);
572
572
  }, {});
573
573
  };
574
- var wr = ee, Pr = wr;
575
- const Ir = /* @__PURE__ */ pr(Pr);
576
- var De = function(e, t) {
577
- return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
574
+ var Cr = te, Or = Cr;
575
+ const Ir = /* @__PURE__ */ gr(Or);
576
+ var Ge = function(e, t) {
577
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
578
578
  r.__proto__ = n;
579
579
  } || function(r, n) {
580
580
  for (var i in n)
581
581
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
582
- }, De(e, t);
582
+ }, Ge(e, t);
583
583
  };
584
- function He(e, t) {
584
+ function we(e, t) {
585
585
  if (typeof t != "function" && t !== null)
586
586
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
587
- De(e, t);
587
+ Ge(e, t);
588
588
  function r() {
589
589
  this.constructor = e;
590
590
  }
591
591
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
592
592
  }
593
- var F = function() {
594
- return F = Object.assign || function(t) {
593
+ var G = function() {
594
+ return G = Object.assign || function(t) {
595
595
  for (var r, n = 1, i = arguments.length; n < i; n++) {
596
596
  r = arguments[n];
597
597
  for (var o in r)
598
598
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
599
599
  }
600
600
  return t;
601
- }, F.apply(this, arguments);
601
+ }, G.apply(this, arguments);
602
602
  };
603
- function Or(e, t) {
603
+ function Nr(e, t) {
604
604
  var r = {};
605
605
  for (var n in e)
606
606
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -609,43 +609,43 @@ function Or(e, t) {
609
609
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
610
610
  return r;
611
611
  }
612
- function Ie(e, t, r) {
612
+ function Oe(e, t, r) {
613
613
  if (r || arguments.length === 2)
614
614
  for (var n = 0, i = t.length, o; n < i; n++)
615
615
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
616
616
  return e.concat(o || Array.prototype.slice.call(t));
617
617
  }
618
- function Oe(e, t) {
619
- var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Mr;
618
+ function Ie(e, t) {
619
+ var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Rr;
620
620
  return i(e, {
621
621
  cache: r,
622
622
  serializer: n
623
623
  });
624
624
  }
625
- function Cr(e) {
625
+ function Mr(e) {
626
626
  return e == null || typeof e == "number" || typeof e == "boolean";
627
627
  }
628
- function Nr(e, t, r, n) {
629
- var i = Cr(n) ? n : r(n), o = t.get(i);
628
+ function Lr(e, t, r, n) {
629
+ var i = Mr(n) ? n : r(n), o = t.get(i);
630
630
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
631
631
  }
632
- function St(e, t, r) {
632
+ function Ht(e, t, r) {
633
633
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
634
634
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
635
635
  }
636
- function Tt(e, t, r, n, i) {
636
+ function wt(e, t, r, n, i) {
637
637
  return r.bind(t, e, n, i);
638
638
  }
639
- function Mr(e, t) {
640
- var r = e.length === 1 ? Nr : St;
641
- return Tt(e, this, r, t.cache.create(), t.serializer);
639
+ function Rr(e, t) {
640
+ var r = e.length === 1 ? Lr : Ht;
641
+ return wt(e, this, r, t.cache.create(), t.serializer);
642
642
  }
643
- function Lr(e, t) {
644
- return Tt(e, this, St, t.cache.create(), t.serializer);
643
+ function $r(e, t) {
644
+ return wt(e, this, Ht, t.cache.create(), t.serializer);
645
645
  }
646
- var Rr = function() {
646
+ var Ur = function() {
647
647
  return JSON.stringify(arguments);
648
- }, $r = (
648
+ }, Dr = (
649
649
  /** @class */
650
650
  function() {
651
651
  function e() {
@@ -657,71 +657,71 @@ var Rr = function() {
657
657
  this.cache[t] = r;
658
658
  }, e;
659
659
  }()
660
- ), Ur = {
660
+ ), Gr = {
661
661
  create: function() {
662
- return new $r();
662
+ return new Dr();
663
663
  }
664
- }, Ce = {
665
- variadic: Lr
666
- }, _e = function() {
667
- return _e = Object.assign || function(t) {
664
+ }, Ne = {
665
+ variadic: $r
666
+ }, xe = function() {
667
+ return xe = Object.assign || function(t) {
668
668
  for (var r, n = 1, i = arguments.length; n < i; n++) {
669
669
  r = arguments[n];
670
670
  for (var o in r)
671
671
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
672
672
  }
673
673
  return t;
674
- }, _e.apply(this, arguments);
674
+ }, xe.apply(this, arguments);
675
675
  };
676
676
  var m;
677
677
  (function(e) {
678
678
  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";
679
679
  })(m || (m = {}));
680
- var E;
680
+ var y;
681
681
  (function(e) {
682
682
  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";
683
- })(E || (E = {}));
684
- var te;
683
+ })(y || (y = {}));
684
+ var re;
685
685
  (function(e) {
686
686
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
687
- })(te || (te = {}));
688
- function tt(e) {
689
- return e.type === E.literal;
690
- }
691
- function Dr(e) {
692
- return e.type === E.argument;
687
+ })(re || (re = {}));
688
+ function nt(e) {
689
+ return e.type === y.literal;
693
690
  }
694
- function Ht(e) {
695
- return e.type === E.number;
691
+ function Fr(e) {
692
+ return e.type === y.argument;
696
693
  }
697
694
  function At(e) {
698
- return e.type === E.date;
695
+ return e.type === y.number;
699
696
  }
700
697
  function Bt(e) {
701
- return e.type === E.time;
702
- }
703
- function wt(e) {
704
- return e.type === E.select;
698
+ return e.type === y.date;
705
699
  }
706
700
  function Pt(e) {
707
- return e.type === E.plural;
701
+ return e.type === y.time;
708
702
  }
709
- function Fr(e) {
710
- return e.type === E.pound;
703
+ function Ct(e) {
704
+ return e.type === y.select;
705
+ }
706
+ function Ot(e) {
707
+ return e.type === y.plural;
708
+ }
709
+ function kr(e) {
710
+ return e.type === y.pound;
711
711
  }
712
712
  function It(e) {
713
- return e.type === E.tag;
713
+ return e.type === y.tag;
714
714
  }
715
- function Ot(e) {
716
- return !!(e && typeof e == "object" && e.type === te.number);
715
+ function Nt(e) {
716
+ return !!(e && typeof e == "object" && e.type === re.number);
717
717
  }
718
718
  function Fe(e) {
719
- return !!(e && typeof e == "object" && e.type === te.dateTime);
719
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
720
720
  }
721
- var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
722
- function kr(e) {
721
+ var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[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;
722
+ function Vr(e) {
723
723
  var t = {};
724
- return e.replace(Gr, function(r) {
724
+ return e.replace(jr, function(r) {
725
725
  var n = r.length;
726
726
  switch (r[0]) {
727
727
  case "G":
@@ -810,46 +810,46 @@ function kr(e) {
810
810
  return "";
811
811
  }), t;
812
812
  }
813
- var S = function() {
814
- return S = Object.assign || function(t) {
813
+ var x = function() {
814
+ return x = Object.assign || function(t) {
815
815
  for (var r, n = 1, i = arguments.length; n < i; n++) {
816
816
  r = arguments[n];
817
817
  for (var o in r)
818
818
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
819
819
  }
820
820
  return t;
821
- }, S.apply(this, arguments);
821
+ }, x.apply(this, arguments);
822
822
  };
823
- var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
824
- function Vr(e) {
823
+ var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
824
+ function zr(e) {
825
825
  if (e.length === 0)
826
826
  throw new Error("Number skeleton cannot be empty");
827
- for (var t = e.split(jr).filter(function(d) {
827
+ for (var t = e.split(Xr).filter(function(d) {
828
828
  return d.length > 0;
829
829
  }), r = [], n = 0, i = t; n < i.length; n++) {
830
830
  var o = i[n], a = o.split("/");
831
831
  if (a.length === 0)
832
832
  throw new Error("Invalid number skeleton");
833
833
  for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
834
- var c = l[u];
835
- if (c.length === 0)
834
+ var f = l[u];
835
+ if (f.length === 0)
836
836
  throw new Error("Invalid number skeleton");
837
837
  }
838
838
  r.push({ stem: s, options: h });
839
839
  }
840
840
  return r;
841
841
  }
842
- function Xr(e) {
842
+ function Wr(e) {
843
843
  return e.replace(/^(.*?)-/, "");
844
844
  }
845
- var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
846
- function nt(e) {
845
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
846
+ function ot(e) {
847
847
  var t = {};
848
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
848
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
849
849
  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)), "";
850
850
  }), t;
851
851
  }
852
- function Lt(e) {
852
+ function $t(e) {
853
853
  switch (e) {
854
854
  case "sign-auto":
855
855
  return {
@@ -889,7 +889,7 @@ function Lt(e) {
889
889
  };
890
890
  }
891
891
  }
892
- function Wr(e) {
892
+ function Jr(e) {
893
893
  var t;
894
894
  if (e[0] === "E" && e[1] === "E" ? (t = {
895
895
  notation: "engineering"
@@ -897,17 +897,17 @@ function Wr(e) {
897
897
  notation: "scientific"
898
898
  }, e = e.slice(1)), t) {
899
899
  var r = e.slice(0, 2);
900
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
900
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
901
901
  throw new Error("Malformed concise eng/scientific notation");
902
902
  t.minimumIntegerDigits = e.length;
903
903
  }
904
904
  return t;
905
905
  }
906
- function it(e) {
907
- var t = {}, r = Lt(e);
906
+ function st(e) {
907
+ var t = {}, r = $t(e);
908
908
  return r || t;
909
909
  }
910
- function Zr(e) {
910
+ function Qr(e) {
911
911
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
912
912
  var i = n[r];
913
913
  switch (i.stem) {
@@ -931,7 +931,7 @@ function Zr(e) {
931
931
  continue;
932
932
  case "measure-unit":
933
933
  case "unit":
934
- t.style = "unit", t.unit = Xr(i.options[0]);
934
+ t.style = "unit", t.unit = Wr(i.options[0]);
935
935
  continue;
936
936
  case "compact-short":
937
937
  case "K":
@@ -942,13 +942,13 @@ function Zr(e) {
942
942
  t.notation = "compact", t.compactDisplay = "long";
943
943
  continue;
944
944
  case "scientific":
945
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
946
- return S(S({}, h), it(u));
945
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
946
+ return x(x({}, h), st(u));
947
947
  }, {}));
948
948
  continue;
949
949
  case "engineering":
950
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
951
- return S(S({}, h), it(u));
950
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
951
+ return x(x({}, h), st(u));
952
952
  }, {}));
953
953
  continue;
954
954
  case "notation-simple":
@@ -993,45 +993,45 @@ function Zr(e) {
993
993
  case "integer-width":
994
994
  if (i.options.length > 1)
995
995
  throw new RangeError("integer-width stems only accept a single optional option");
996
- i.options[0].replace(zr, function(h, u, l, c, d, g) {
996
+ i.options[0].replace(Zr, function(h, u, l, f, d, b) {
997
997
  if (u)
998
998
  t.minimumIntegerDigits = l.length;
999
999
  else {
1000
- if (c && d)
1000
+ if (f && d)
1001
1001
  throw new Error("We currently do not support maximum integer digits");
1002
- if (g)
1002
+ if (b)
1003
1003
  throw new Error("We currently do not support exact integer digits");
1004
1004
  }
1005
1005
  return "";
1006
1006
  });
1007
1007
  continue;
1008
1008
  }
1009
- if (Mt.test(i.stem)) {
1009
+ if (Rt.test(i.stem)) {
1010
1010
  t.minimumIntegerDigits = i.stem.length;
1011
1011
  continue;
1012
1012
  }
1013
- if (rt.test(i.stem)) {
1013
+ if (it.test(i.stem)) {
1014
1014
  if (i.options.length > 1)
1015
1015
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1016
- i.stem.replace(rt, function(h, u, l, c, d, g) {
1017
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1016
+ i.stem.replace(it, function(h, u, l, f, d, b) {
1017
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1018
1018
  });
1019
1019
  var o = i.options[0];
1020
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), nt(o)));
1020
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ot(o)));
1021
1021
  continue;
1022
1022
  }
1023
- if (Nt.test(i.stem)) {
1024
- t = S(S({}, t), nt(i.stem));
1023
+ if (Lt.test(i.stem)) {
1024
+ t = x(x({}, t), ot(i.stem));
1025
1025
  continue;
1026
1026
  }
1027
- var a = Lt(i.stem);
1028
- a && (t = S(S({}, t), a));
1029
- var s = Wr(i.stem);
1030
- s && (t = S(S({}, t), s));
1027
+ var a = $t(i.stem);
1028
+ a && (t = x(x({}, t), a));
1029
+ var s = Jr(i.stem);
1030
+ s && (t = x(x({}, t), s));
1031
1031
  }
1032
1032
  return t;
1033
1033
  }
1034
- var ge = {
1034
+ var ve = {
1035
1035
  "001": [
1036
1036
  "H",
1037
1037
  "h"
@@ -2446,13 +2446,13 @@ var ge = {
2446
2446
  "h"
2447
2447
  ]
2448
2448
  };
2449
- function Jr(e, t) {
2449
+ function qr(e, t) {
2450
2450
  for (var r = "", n = 0; n < e.length; n++) {
2451
2451
  var i = e.charAt(n);
2452
2452
  if (i === "j") {
2453
2453
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2454
2454
  o++, n++;
2455
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
2455
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Yr(t);
2456
2456
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2457
2457
  r += h;
2458
2458
  for (; a-- > 0; )
@@ -2462,7 +2462,7 @@ function Jr(e, t) {
2462
2462
  }
2463
2463
  return r;
2464
2464
  }
2465
- function Qr(e) {
2465
+ function Yr(e) {
2466
2466
  var t = e.hourCycle;
2467
2467
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2468
2468
  e.hourCycles && // @ts-ignore
@@ -2481,23 +2481,23 @@ function Qr(e) {
2481
2481
  }
2482
2482
  var r = e.language, n;
2483
2483
  r !== "root" && (n = e.maximize().region);
2484
- var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2484
+ var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
2485
2485
  return i[0];
2486
2486
  }
2487
- var Ne, qr = new RegExp("^".concat(Ct.source, "*")), Yr = new RegExp("".concat(Ct.source, "*$"));
2488
- function b(e, t) {
2487
+ var Me, Kr = new RegExp("^".concat(Mt.source, "*")), en = new RegExp("".concat(Mt.source, "*$"));
2488
+ function p(e, t) {
2489
2489
  return { start: e, end: t };
2490
2490
  }
2491
- var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
2491
+ var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, on = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, un = !!Number.isSafeInteger, ln = un ? Number.isSafeInteger : function(e) {
2492
2492
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2493
- }, Ge = !0;
2493
+ }, ke = !0;
2494
2494
  try {
2495
- var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2496
- Ge = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2495
+ var hn = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2496
+ ke = ((Me = hn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
2497
2497
  } catch {
2498
- Ge = !1;
2498
+ ke = !1;
2499
2499
  }
2500
- var ot = Kr ? (
2500
+ var at = tn ? (
2501
2501
  // Native
2502
2502
  function(t, r, n) {
2503
2503
  return t.startsWith(r, n);
@@ -2507,7 +2507,7 @@ var ot = Kr ? (
2507
2507
  function(t, r, n) {
2508
2508
  return t.slice(n, n + r.length) === r;
2509
2509
  }
2510
- ), ke = en ? String.fromCodePoint : (
2510
+ ), je = rn ? String.fromCodePoint : (
2511
2511
  // IE11
2512
2512
  function() {
2513
2513
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2519,9 +2519,9 @@ var ot = Kr ? (
2519
2519
  }
2520
2520
  return n;
2521
2521
  }
2522
- ), st = (
2522
+ ), ut = (
2523
2523
  // native
2524
- tn ? Object.fromEntries : (
2524
+ nn ? Object.fromEntries : (
2525
2525
  // Ponyfill
2526
2526
  function(t) {
2527
2527
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2531,7 +2531,7 @@ var ot = Kr ? (
2531
2531
  return r;
2532
2532
  }
2533
2533
  )
2534
- ), Rt = rn ? (
2534
+ ), Ut = on ? (
2535
2535
  // Native
2536
2536
  function(t, r) {
2537
2537
  return t.codePointAt(r);
@@ -2545,7 +2545,7 @@ var ot = Kr ? (
2545
2545
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2546
2546
  }
2547
2547
  }
2548
- ), ln = nn ? (
2548
+ ), cn = sn ? (
2549
2549
  // Native
2550
2550
  function(t) {
2551
2551
  return t.trimStart();
@@ -2553,9 +2553,9 @@ var ot = Kr ? (
2553
2553
  ) : (
2554
2554
  // Ponyfill
2555
2555
  function(t) {
2556
- return t.replace(qr, "");
2556
+ return t.replace(Kr, "");
2557
2557
  }
2558
- ), hn = on ? (
2558
+ ), fn = an ? (
2559
2559
  // Native
2560
2560
  function(t) {
2561
2561
  return t.trimEnd();
@@ -2563,32 +2563,32 @@ var ot = Kr ? (
2563
2563
  ) : (
2564
2564
  // Ponyfill
2565
2565
  function(t) {
2566
- return t.replace(Yr, "");
2566
+ return t.replace(en, "");
2567
2567
  }
2568
2568
  );
2569
- function $t(e, t) {
2569
+ function Dt(e, t) {
2570
2570
  return new RegExp(e, t);
2571
2571
  }
2572
- var je;
2573
- if (Ge) {
2574
- var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2575
- je = function(t, r) {
2572
+ var Ve;
2573
+ if (ke) {
2574
+ var lt = Dt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2575
+ Ve = function(t, r) {
2576
2576
  var n;
2577
- at.lastIndex = r;
2578
- var i = at.exec(t);
2577
+ lt.lastIndex = r;
2578
+ var i = lt.exec(t);
2579
2579
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2580
2580
  };
2581
2581
  } else
2582
- je = function(t, r) {
2582
+ Ve = function(t, r) {
2583
2583
  for (var n = []; ; ) {
2584
- var i = Rt(t, r);
2585
- if (i === void 0 || Ut(i) || mn(i))
2584
+ var i = Ut(t, r);
2585
+ if (i === void 0 || Gt(i) || bn(i))
2586
2586
  break;
2587
2587
  n.push(i), r += i >= 65536 ? 2 : 1;
2588
2588
  }
2589
- return ke.apply(void 0, n);
2589
+ return je.apply(void 0, n);
2590
2590
  };
2591
- var cn = (
2591
+ var dn = (
2592
2592
  /** @class */
2593
2593
  function() {
2594
2594
  function e(t, r) {
@@ -2612,14 +2612,14 @@ var cn = (
2612
2612
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2613
2613
  var s = this.clonePosition();
2614
2614
  this.bump(), i.push({
2615
- type: E.pound,
2616
- location: b(s, this.clonePosition())
2615
+ type: y.pound,
2616
+ location: p(s, this.clonePosition())
2617
2617
  });
2618
2618
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2619
2619
  if (n)
2620
2620
  break;
2621
- return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2622
- } else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
2621
+ return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2622
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
2623
2623
  var a = this.parseTag(t, r);
2624
2624
  if (a.err)
2625
2625
  return a;
@@ -2640,9 +2640,9 @@ var cn = (
2640
2640
  if (this.bumpSpace(), this.bumpIf("/>"))
2641
2641
  return {
2642
2642
  val: {
2643
- type: E.literal,
2643
+ type: y.literal,
2644
2644
  value: "<".concat(i, "/>"),
2645
- location: b(n, this.clonePosition())
2645
+ location: p(n, this.clonePosition())
2646
2646
  },
2647
2647
  err: null
2648
2648
  };
@@ -2652,25 +2652,25 @@ var cn = (
2652
2652
  return o;
2653
2653
  var a = o.val, s = this.clonePosition();
2654
2654
  if (this.bumpIf("</")) {
2655
- if (this.isEOF() || !Ve(this.char()))
2656
- return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
2655
+ if (this.isEOF() || !Xe(this.char()))
2656
+ return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
2657
2657
  var h = this.clonePosition(), u = this.parseTagName();
2658
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2658
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2659
2659
  val: {
2660
- type: E.tag,
2660
+ type: y.tag,
2661
2661
  value: i,
2662
2662
  children: a,
2663
- location: b(n, this.clonePosition())
2663
+ location: p(n, this.clonePosition())
2664
2664
  },
2665
2665
  err: null
2666
- } : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
2666
+ } : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
2667
2667
  } else
2668
- return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
2668
+ return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2669
2669
  } else
2670
- return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
2670
+ return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2671
2671
  }, e.prototype.parseTagName = function() {
2672
2672
  var t = this.offset();
2673
- for (this.bump(); !this.isEOF() && dn(this.char()); )
2673
+ for (this.bump(); !this.isEOF() && pn(this.char()); )
2674
2674
  this.bump();
2675
2675
  return this.message.slice(t, this.offset());
2676
2676
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2692,14 +2692,14 @@ var cn = (
2692
2692
  }
2693
2693
  break;
2694
2694
  }
2695
- var h = b(n, this.clonePosition());
2695
+ var h = p(n, this.clonePosition());
2696
2696
  return {
2697
- val: { type: E.literal, value: i, location: h },
2697
+ val: { type: y.literal, value: i, location: h },
2698
2698
  err: null
2699
2699
  };
2700
2700
  }, e.prototype.tryParseLeftAngleBracket = function() {
2701
2701
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2702
- !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2702
+ !mn(this.peek() || 0)) ? (this.bump(), "<") : null;
2703
2703
  }, e.prototype.tryParseQuote = function(t) {
2704
2704
  if (this.isEOF() || this.char() !== 39)
2705
2705
  return null;
@@ -2733,49 +2733,49 @@ var cn = (
2733
2733
  r.push(n);
2734
2734
  this.bump();
2735
2735
  }
2736
- return ke.apply(void 0, r);
2736
+ return je.apply(void 0, r);
2737
2737
  }, e.prototype.tryParseUnquoted = function(t, r) {
2738
2738
  if (this.isEOF())
2739
2739
  return null;
2740
2740
  var n = this.char();
2741
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
2741
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
2742
2742
  }, e.prototype.parseArgument = function(t, r) {
2743
2743
  var n = this.clonePosition();
2744
2744
  if (this.bump(), this.bumpSpace(), this.isEOF())
2745
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2745
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2746
2746
  if (this.char() === 125)
2747
- return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2747
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2748
2748
  var i = this.parseIdentifierIfPossible().value;
2749
2749
  if (!i)
2750
- return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2750
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2751
2751
  if (this.bumpSpace(), this.isEOF())
2752
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2752
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2753
2753
  switch (this.char()) {
2754
2754
  case 125:
2755
2755
  return this.bump(), {
2756
2756
  val: {
2757
- type: E.argument,
2757
+ type: y.argument,
2758
2758
  // value does not include the opening and closing braces.
2759
2759
  value: i,
2760
- location: b(n, this.clonePosition())
2760
+ location: p(n, this.clonePosition())
2761
2761
  },
2762
2762
  err: null
2763
2763
  };
2764
2764
  case 44:
2765
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2765
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2766
2766
  default:
2767
- return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2767
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2768
2768
  }
2769
2769
  }, e.prototype.parseIdentifierIfPossible = function() {
2770
- var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
2770
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
2771
2771
  this.bumpTo(i);
2772
- var o = this.clonePosition(), a = b(t, o);
2772
+ var o = this.clonePosition(), a = p(t, o);
2773
2773
  return { value: n, location: a };
2774
2774
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2775
2775
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2776
2776
  switch (s) {
2777
2777
  case "":
2778
- return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, h));
2778
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
2779
2779
  case "number":
2780
2780
  case "date":
2781
2781
  case "time": {
@@ -2783,49 +2783,49 @@ var cn = (
2783
2783
  var u = null;
2784
2784
  if (this.bumpIf(",")) {
2785
2785
  this.bumpSpace();
2786
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2787
- if (c.err)
2788
- return c;
2789
- var d = hn(c.val);
2786
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2787
+ if (f.err)
2788
+ return f;
2789
+ var d = fn(f.val);
2790
2790
  if (d.length === 0)
2791
- return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2792
- var g = b(l, this.clonePosition());
2793
- u = { style: d, styleLocation: g };
2791
+ return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2792
+ var b = p(l, this.clonePosition());
2793
+ u = { style: d, styleLocation: b };
2794
2794
  }
2795
- var v = this.tryParseArgumentClose(i);
2796
- if (v.err)
2797
- return v;
2798
- var _ = b(i, this.clonePosition());
2799
- if (u && ot(u?.style, "::", 0)) {
2800
- var T = ln(u.style.slice(2));
2795
+ var g = this.tryParseArgumentClose(i);
2796
+ if (g.err)
2797
+ return g;
2798
+ var E = p(i, this.clonePosition());
2799
+ if (u && at(u?.style, "::", 0)) {
2800
+ var S = cn(u.style.slice(2));
2801
2801
  if (s === "number") {
2802
- var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2803
- return c.err ? c : {
2804
- val: { type: E.number, value: n, location: _, style: c.val },
2802
+ var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2803
+ return f.err ? f : {
2804
+ val: { type: y.number, value: n, location: E, style: f.val },
2805
2805
  err: null
2806
2806
  };
2807
2807
  } else {
2808
- if (T.length === 0)
2809
- return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2810
- var H = T;
2811
- this.locale && (H = Jr(T, this.locale));
2808
+ if (S.length === 0)
2809
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, E);
2810
+ var T = S;
2811
+ this.locale && (T = qr(S, this.locale));
2812
2812
  var d = {
2813
- type: te.dateTime,
2814
- pattern: H,
2813
+ type: re.dateTime,
2814
+ pattern: T,
2815
2815
  location: u.styleLocation,
2816
- parsedOptions: this.shouldParseSkeletons ? kr(H) : {}
2817
- }, L = s === "date" ? E.date : E.time;
2816
+ parsedOptions: this.shouldParseSkeletons ? Vr(T) : {}
2817
+ }, R = s === "date" ? y.date : y.time;
2818
2818
  return {
2819
- val: { type: L, value: n, location: _, style: d },
2819
+ val: { type: R, value: n, location: E, style: d },
2820
2820
  err: null
2821
2821
  };
2822
2822
  }
2823
2823
  }
2824
2824
  return {
2825
2825
  val: {
2826
- type: s === "number" ? E.number : s === "date" ? E.date : E.time,
2826
+ type: s === "number" ? y.number : s === "date" ? y.date : y.time,
2827
2827
  value: n,
2828
- location: _,
2828
+ location: E,
2829
2829
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2830
2830
  },
2831
2831
  err: null
@@ -2834,41 +2834,41 @@ var cn = (
2834
2834
  case "plural":
2835
2835
  case "selectordinal":
2836
2836
  case "select": {
2837
- var B = this.clonePosition();
2837
+ var O = this.clonePosition();
2838
2838
  if (this.bumpSpace(), !this.bumpIf(","))
2839
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, _e({}, B)));
2839
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(O, xe({}, O)));
2840
2840
  this.bumpSpace();
2841
- var x = this.parseIdentifierIfPossible(), C = 0;
2842
- if (s !== "select" && x.value === "offset") {
2841
+ var H = this.parseIdentifierIfPossible(), w = 0;
2842
+ if (s !== "select" && H.value === "offset") {
2843
2843
  if (!this.bumpIf(":"))
2844
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2844
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2845
2845
  this.bumpSpace();
2846
- var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2847
- if (c.err)
2848
- return c;
2849
- this.bumpSpace(), x = this.parseIdentifierIfPossible(), C = c.val;
2846
+ var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2847
+ if (f.err)
2848
+ return f;
2849
+ this.bumpSpace(), H = this.parseIdentifierIfPossible(), w = f.val;
2850
2850
  }
2851
- var D = this.tryParsePluralOrSelectOptions(t, s, r, x);
2851
+ var D = this.tryParsePluralOrSelectOptions(t, s, r, H);
2852
2852
  if (D.err)
2853
2853
  return D;
2854
- var v = this.tryParseArgumentClose(i);
2855
- if (v.err)
2856
- return v;
2857
- var V = b(i, this.clonePosition());
2854
+ var g = this.tryParseArgumentClose(i);
2855
+ if (g.err)
2856
+ return g;
2857
+ var V = p(i, this.clonePosition());
2858
2858
  return s === "select" ? {
2859
2859
  val: {
2860
- type: E.select,
2860
+ type: y.select,
2861
2861
  value: n,
2862
- options: st(D.val),
2862
+ options: ut(D.val),
2863
2863
  location: V
2864
2864
  },
2865
2865
  err: null
2866
2866
  } : {
2867
2867
  val: {
2868
- type: E.plural,
2868
+ type: y.plural,
2869
2869
  value: n,
2870
- options: st(D.val),
2871
- offset: C,
2870
+ options: ut(D.val),
2871
+ offset: w,
2872
2872
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2873
2873
  location: V
2874
2874
  },
@@ -2876,10 +2876,10 @@ var cn = (
2876
2876
  };
2877
2877
  }
2878
2878
  default:
2879
- return this.error(m.INVALID_ARGUMENT_TYPE, b(a, h));
2879
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
2880
2880
  }
2881
2881
  }, e.prototype.tryParseArgumentClose = function(t) {
2882
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2882
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2883
2883
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2884
2884
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2885
2885
  var n = this.char();
@@ -2888,7 +2888,7 @@ var cn = (
2888
2888
  this.bump();
2889
2889
  var i = this.clonePosition();
2890
2890
  if (!this.bumpUntil("'"))
2891
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2891
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2892
2892
  this.bump();
2893
2893
  break;
2894
2894
  }
@@ -2918,52 +2918,52 @@ var cn = (
2918
2918
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2919
2919
  var n = [];
2920
2920
  try {
2921
- n = Vr(t);
2921
+ n = zr(t);
2922
2922
  } catch {
2923
2923
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2924
2924
  }
2925
2925
  return {
2926
2926
  val: {
2927
- type: te.number,
2927
+ type: re.number,
2928
2928
  tokens: n,
2929
2929
  location: r,
2930
- parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2930
+ parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
2931
2931
  },
2932
2932
  err: null
2933
2933
  };
2934
2934
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2935
2935
  for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2936
2936
  if (u.length === 0) {
2937
- var c = this.clonePosition();
2937
+ var f = this.clonePosition();
2938
2938
  if (r !== "select" && this.bumpIf("=")) {
2939
2939
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2940
2940
  if (d.err)
2941
2941
  return d;
2942
- l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2942
+ l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2943
2943
  } else
2944
2944
  break;
2945
2945
  }
2946
2946
  if (h.has(u))
2947
2947
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2948
2948
  u === "other" && (a = !0), this.bumpSpace();
2949
- var g = this.clonePosition();
2949
+ var b = this.clonePosition();
2950
2950
  if (!this.bumpIf("{"))
2951
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2952
- var v = this.parseMessage(t + 1, r, n);
2953
- if (v.err)
2954
- return v;
2955
- var _ = this.tryParseArgumentClose(g);
2956
- if (_.err)
2957
- return _;
2951
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2952
+ var g = this.parseMessage(t + 1, r, n);
2953
+ if (g.err)
2954
+ return g;
2955
+ var E = this.tryParseArgumentClose(b);
2956
+ if (E.err)
2957
+ return E;
2958
2958
  s.push([
2959
2959
  u,
2960
2960
  {
2961
- value: v.val,
2962
- location: b(g, this.clonePosition())
2961
+ value: g.val,
2962
+ location: p(b, this.clonePosition())
2963
2963
  }
2964
2964
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2965
2965
  }
2966
- return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2966
+ return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2967
2967
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2968
2968
  var n = 1, i = this.clonePosition();
2969
2969
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2974,8 +2974,8 @@ var cn = (
2974
2974
  else
2975
2975
  break;
2976
2976
  }
2977
- var h = b(i, this.clonePosition());
2978
- return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2977
+ var h = p(i, this.clonePosition());
2978
+ return o ? (a *= n, ln(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2979
2979
  }, e.prototype.offset = function() {
2980
2980
  return this.position.offset;
2981
2981
  }, e.prototype.isEOF = function() {
@@ -2990,7 +2990,7 @@ var cn = (
2990
2990
  var t = this.position.offset;
2991
2991
  if (t >= this.message.length)
2992
2992
  throw Error("out of bound");
2993
- var r = Rt(this.message, t);
2993
+ var r = Ut(this.message, t);
2994
2994
  if (r === void 0)
2995
2995
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2996
2996
  return r;
@@ -3009,7 +3009,7 @@ var cn = (
3009
3009
  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);
3010
3010
  }
3011
3011
  }, e.prototype.bumpIf = function(t) {
3012
- if (ot(this.message, t, this.offset())) {
3012
+ if (at(this.message, t, this.offset())) {
3013
3013
  for (var r = 0; r < t.length; r++)
3014
3014
  this.bump();
3015
3015
  return !0;
@@ -3031,7 +3031,7 @@ var cn = (
3031
3031
  break;
3032
3032
  }
3033
3033
  }, e.prototype.bumpSpace = function() {
3034
- for (; !this.isEOF() && Ut(this.char()); )
3034
+ for (; !this.isEOF() && Gt(this.char()); )
3035
3035
  this.bump();
3036
3036
  }, e.prototype.peek = function() {
3037
3037
  if (this.isEOF())
@@ -3041,47 +3041,47 @@ var cn = (
3041
3041
  }, e;
3042
3042
  }()
3043
3043
  );
3044
- function Ve(e) {
3044
+ function Xe(e) {
3045
3045
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3046
3046
  }
3047
- function fn(e) {
3048
- return Ve(e) || e === 47;
3047
+ function mn(e) {
3048
+ return Xe(e) || e === 47;
3049
3049
  }
3050
- function dn(e) {
3050
+ function pn(e) {
3051
3051
  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;
3052
3052
  }
3053
- function Ut(e) {
3053
+ function Gt(e) {
3054
3054
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3055
3055
  }
3056
- function mn(e) {
3056
+ function bn(e) {
3057
3057
  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;
3058
3058
  }
3059
- function Xe(e) {
3059
+ function ze(e) {
3060
3060
  e.forEach(function(t) {
3061
- if (delete t.location, wt(t) || Pt(t))
3061
+ if (delete t.location, Ct(t) || Ot(t))
3062
3062
  for (var r in t.options)
3063
- delete t.options[r].location, Xe(t.options[r].value);
3063
+ delete t.options[r].location, ze(t.options[r].value);
3064
3064
  else
3065
- Ht(t) && Ot(t.style) || (At(t) || Bt(t)) && Fe(t.style) ? delete t.style.location : It(t) && Xe(t.children);
3065
+ At(t) && Nt(t.style) || (Bt(t) || Pt(t)) && Fe(t.style) ? delete t.style.location : It(t) && ze(t.children);
3066
3066
  });
3067
3067
  }
3068
- function pn(e, t) {
3069
- t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3070
- var r = new cn(e, t).parse();
3068
+ function gn(e, t) {
3069
+ t === void 0 && (t = {}), t = xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3070
+ var r = new dn(e, t).parse();
3071
3071
  if (r.err) {
3072
3072
  var n = SyntaxError(m[r.err.kind]);
3073
3073
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3074
3074
  }
3075
- return t?.captureLocation || Xe(r.val), r.val;
3075
+ return t?.captureLocation || ze(r.val), r.val;
3076
3076
  }
3077
- var re;
3077
+ var ne;
3078
3078
  (function(e) {
3079
3079
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3080
- })(re || (re = {}));
3080
+ })(ne || (ne = {}));
3081
3081
  var Ae = (
3082
3082
  /** @class */
3083
3083
  function(e) {
3084
- He(t, e);
3084
+ we(t, e);
3085
3085
  function t(r, n, i) {
3086
3086
  var o = e.call(this, r) || this;
3087
3087
  return o.code = n, o.originalMessage = i, o;
@@ -3090,155 +3090,155 @@ var Ae = (
3090
3090
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3091
3091
  }, t;
3092
3092
  }(Error)
3093
- ), ut = (
3093
+ ), ht = (
3094
3094
  /** @class */
3095
3095
  function(e) {
3096
- He(t, e);
3096
+ we(t, e);
3097
3097
  function t(r, n, i, o) {
3098
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
3098
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3099
3099
  }
3100
3100
  return t;
3101
3101
  }(Ae)
3102
- ), bn = (
3102
+ ), vn = (
3103
3103
  /** @class */
3104
3104
  function(e) {
3105
- He(t, e);
3105
+ we(t, e);
3106
3106
  function t(r, n, i) {
3107
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3107
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3108
3108
  }
3109
3109
  return t;
3110
3110
  }(Ae)
3111
- ), gn = (
3111
+ ), yn = (
3112
3112
  /** @class */
3113
3113
  function(e) {
3114
- He(t, e);
3114
+ we(t, e);
3115
3115
  function t(r, n) {
3116
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3116
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3117
3117
  }
3118
3118
  return t;
3119
3119
  }(Ae)
3120
- ), O;
3120
+ ), I;
3121
3121
  (function(e) {
3122
3122
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3123
- })(O || (O = {}));
3124
- function vn(e) {
3123
+ })(I || (I = {}));
3124
+ function En(e) {
3125
3125
  return e.length < 2 ? e : e.reduce(function(t, r) {
3126
3126
  var n = t[t.length - 1];
3127
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3127
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3128
3128
  }, []);
3129
3129
  }
3130
- function yn(e) {
3130
+ function _n(e) {
3131
3131
  return typeof e == "function";
3132
3132
  }
3133
- function ye(e, t, r, n, i, o, a) {
3134
- if (e.length === 1 && tt(e[0]))
3133
+ function Ee(e, t, r, n, i, o, a) {
3134
+ if (e.length === 1 && nt(e[0]))
3135
3135
  return [
3136
3136
  {
3137
- type: O.literal,
3137
+ type: I.literal,
3138
3138
  value: e[0].value
3139
3139
  }
3140
3140
  ];
3141
3141
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3142
3142
  var l = u[h];
3143
- if (tt(l)) {
3143
+ if (nt(l)) {
3144
3144
  s.push({
3145
- type: O.literal,
3145
+ type: I.literal,
3146
3146
  value: l.value
3147
3147
  });
3148
3148
  continue;
3149
3149
  }
3150
- if (Fr(l)) {
3150
+ if (kr(l)) {
3151
3151
  typeof o == "number" && s.push({
3152
- type: O.literal,
3152
+ type: I.literal,
3153
3153
  value: r.getNumberFormat(t).format(o)
3154
3154
  });
3155
3155
  continue;
3156
3156
  }
3157
- var c = l.value;
3158
- if (!(i && c in i))
3159
- throw new gn(c, a);
3160
- var d = i[c];
3161
- if (Dr(l)) {
3157
+ var f = l.value;
3158
+ if (!(i && f in i))
3159
+ throw new yn(f, a);
3160
+ var d = i[f];
3161
+ if (Fr(l)) {
3162
3162
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3163
- type: typeof d == "string" ? O.literal : O.object,
3163
+ type: typeof d == "string" ? I.literal : I.object,
3164
3164
  value: d
3165
3165
  });
3166
3166
  continue;
3167
3167
  }
3168
- if (At(l)) {
3169
- var g = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3168
+ if (Bt(l)) {
3169
+ var b = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3170
3170
  s.push({
3171
- type: O.literal,
3172
- value: r.getDateTimeFormat(t, g).format(d)
3171
+ type: I.literal,
3172
+ value: r.getDateTimeFormat(t, b).format(d)
3173
3173
  });
3174
3174
  continue;
3175
3175
  }
3176
- if (Bt(l)) {
3177
- var g = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3176
+ if (Pt(l)) {
3177
+ var b = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3178
3178
  s.push({
3179
- type: O.literal,
3180
- value: r.getDateTimeFormat(t, g).format(d)
3179
+ type: I.literal,
3180
+ value: r.getDateTimeFormat(t, b).format(d)
3181
3181
  });
3182
3182
  continue;
3183
3183
  }
3184
- if (Ht(l)) {
3185
- var g = typeof l.style == "string" ? n.number[l.style] : Ot(l.style) ? l.style.parsedOptions : void 0;
3186
- g && g.scale && (d = d * (g.scale || 1)), s.push({
3187
- type: O.literal,
3188
- value: r.getNumberFormat(t, g).format(d)
3184
+ if (At(l)) {
3185
+ var b = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
3186
+ b && b.scale && (d = d * (b.scale || 1)), s.push({
3187
+ type: I.literal,
3188
+ value: r.getNumberFormat(t, b).format(d)
3189
3189
  });
3190
3190
  continue;
3191
3191
  }
3192
3192
  if (It(l)) {
3193
- var v = l.children, _ = l.value, T = i[_];
3194
- if (!yn(T))
3195
- throw new bn(_, "function", a);
3196
- var H = ye(v, t, r, n, i, o), L = T(H.map(function(C) {
3197
- return C.value;
3193
+ var g = l.children, E = l.value, S = i[E];
3194
+ if (!_n(S))
3195
+ throw new vn(E, "function", a);
3196
+ var T = Ee(g, t, r, n, i, o), R = S(T.map(function(w) {
3197
+ return w.value;
3198
3198
  }));
3199
- Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(C) {
3199
+ Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(w) {
3200
3200
  return {
3201
- type: typeof C == "string" ? O.literal : O.object,
3202
- value: C
3201
+ type: typeof w == "string" ? I.literal : I.object,
3202
+ value: w
3203
3203
  };
3204
3204
  }));
3205
3205
  }
3206
- if (wt(l)) {
3207
- var B = l.options[d] || l.options.other;
3208
- if (!B)
3209
- throw new ut(l.value, d, Object.keys(l.options), a);
3210
- s.push.apply(s, ye(B.value, t, r, n, i));
3206
+ if (Ct(l)) {
3207
+ var O = l.options[d] || l.options.other;
3208
+ if (!O)
3209
+ throw new ht(l.value, d, Object.keys(l.options), a);
3210
+ s.push.apply(s, Ee(O.value, t, r, n, i));
3211
3211
  continue;
3212
3212
  }
3213
- if (Pt(l)) {
3214
- var B = l.options["=".concat(d)];
3215
- if (!B) {
3213
+ if (Ot(l)) {
3214
+ var O = l.options["=".concat(d)];
3215
+ if (!O) {
3216
3216
  if (!Intl.PluralRules)
3217
3217
  throw new Ae(`Intl.PluralRules is not available in this environment.
3218
3218
  Try polyfilling it using "@formatjs/intl-pluralrules"
3219
- `, re.MISSING_INTL_API, a);
3220
- var x = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3221
- B = l.options[x] || l.options.other;
3219
+ `, ne.MISSING_INTL_API, a);
3220
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3221
+ O = l.options[H] || l.options.other;
3222
3222
  }
3223
- if (!B)
3224
- throw new ut(l.value, d, Object.keys(l.options), a);
3225
- s.push.apply(s, ye(B.value, t, r, n, i, d - (l.offset || 0)));
3223
+ if (!O)
3224
+ throw new ht(l.value, d, Object.keys(l.options), a);
3225
+ s.push.apply(s, Ee(O.value, t, r, n, i, d - (l.offset || 0)));
3226
3226
  continue;
3227
3227
  }
3228
3228
  }
3229
- return vn(s);
3229
+ return En(s);
3230
3230
  }
3231
- function En(e, t) {
3232
- return t ? F(F(F({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3233
- return r[n] = F(F({}, e[n]), t[n] || {}), r;
3231
+ function xn(e, t) {
3232
+ return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3233
+ return r[n] = G(G({}, e[n]), t[n] || {}), r;
3234
3234
  }, {})) : e;
3235
3235
  }
3236
- function _n(e, t) {
3236
+ function Sn(e, t) {
3237
3237
  return t ? Object.keys(e).reduce(function(r, n) {
3238
- return r[n] = En(e[n], t[n]), r;
3239
- }, F({}, e)) : e;
3238
+ return r[n] = xn(e[n], t[n]), r;
3239
+ }, G({}, e)) : e;
3240
3240
  }
3241
- function Me(e) {
3241
+ function Le(e) {
3242
3242
  return {
3243
3243
  create: function() {
3244
3244
  return {
@@ -3252,39 +3252,39 @@ function Me(e) {
3252
3252
  }
3253
3253
  };
3254
3254
  }
3255
- function xn(e) {
3255
+ function Tn(e) {
3256
3256
  return e === void 0 && (e = {
3257
3257
  number: {},
3258
3258
  dateTime: {},
3259
3259
  pluralRules: {}
3260
3260
  }), {
3261
- getNumberFormat: Oe(function() {
3261
+ getNumberFormat: Ie(function() {
3262
3262
  for (var t, r = [], n = 0; n < arguments.length; n++)
3263
3263
  r[n] = arguments[n];
3264
- return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
3264
+ return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3265
3265
  }, {
3266
- cache: Me(e.number),
3267
- strategy: Ce.variadic
3266
+ cache: Le(e.number),
3267
+ strategy: Ne.variadic
3268
3268
  }),
3269
- getDateTimeFormat: Oe(function() {
3269
+ getDateTimeFormat: Ie(function() {
3270
3270
  for (var t, r = [], n = 0; n < arguments.length; n++)
3271
3271
  r[n] = arguments[n];
3272
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
3272
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3273
3273
  }, {
3274
- cache: Me(e.dateTime),
3275
- strategy: Ce.variadic
3274
+ cache: Le(e.dateTime),
3275
+ strategy: Ne.variadic
3276
3276
  }),
3277
- getPluralRules: Oe(function() {
3277
+ getPluralRules: Ie(function() {
3278
3278
  for (var t, r = [], n = 0; n < arguments.length; n++)
3279
3279
  r[n] = arguments[n];
3280
- return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
3280
+ return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3281
3281
  }, {
3282
- cache: Me(e.pluralRules),
3283
- strategy: Ce.variadic
3282
+ cache: Le(e.pluralRules),
3283
+ strategy: Ne.variadic
3284
3284
  })
3285
3285
  };
3286
3286
  }
3287
- var Sn = (
3287
+ var Hn = (
3288
3288
  /** @class */
3289
3289
  function() {
3290
3290
  function e(t, r, n, i) {
@@ -3298,12 +3298,12 @@ var Sn = (
3298
3298
  var u = o.formatToParts(h);
3299
3299
  if (u.length === 1)
3300
3300
  return u[0].value;
3301
- var l = u.reduce(function(c, d) {
3302
- return !c.length || d.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3301
+ var l = u.reduce(function(f, d) {
3302
+ return !f.length || d.type !== I.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3303
3303
  }, []);
3304
3304
  return l.length <= 1 ? l[0] || "" : l;
3305
3305
  }, this.formatToParts = function(h) {
3306
- return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3306
+ return Ee(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3307
3307
  }, this.resolvedOptions = function() {
3308
3308
  var h;
3309
3309
  return {
@@ -3316,13 +3316,13 @@ var Sn = (
3316
3316
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3317
3317
  var a = i || {};
3318
3318
  a.formatters;
3319
- var s = Or(a, ["formatters"]);
3320
- this.ast = e.__parse(t, F(F({}, s), { locale: this.resolvedLocale }));
3319
+ var s = Nr(a, ["formatters"]);
3320
+ this.ast = e.__parse(t, G(G({}, s), { locale: this.resolvedLocale }));
3321
3321
  } else
3322
3322
  this.ast = t;
3323
3323
  if (!Array.isArray(this.ast))
3324
3324
  throw new TypeError("A message must be provided as a String or AST.");
3325
- this.formats = _n(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3325
+ this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
3326
3326
  }
3327
3327
  return Object.defineProperty(e, "defaultLocale", {
3328
3328
  get: function() {
@@ -3335,7 +3335,7 @@ var Sn = (
3335
3335
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3336
3336
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3337
3337
  }
3338
- }, e.__parse = pn, e.formats = {
3338
+ }, e.__parse = gn, e.formats = {
3339
3339
  number: {
3340
3340
  integer: {
3341
3341
  maximumFractionDigits: 0
@@ -3396,7 +3396,7 @@ var Sn = (
3396
3396
  }, e;
3397
3397
  }()
3398
3398
  );
3399
- function Tn(e, t) {
3399
+ function wn(e, t) {
3400
3400
  if (t == null)
3401
3401
  return;
3402
3402
  if (t in e)
@@ -3417,92 +3417,92 @@ function Tn(e, t) {
3417
3417
  n = void 0;
3418
3418
  return n;
3419
3419
  }
3420
- const k = {}, Hn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Dt = (e, t) => {
3420
+ const k = {}, An = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Ft = (e, t) => {
3421
3421
  if (t == null)
3422
3422
  return;
3423
3423
  if (t in k && e in k[t])
3424
3424
  return k[t][e];
3425
3425
  const r = Be(t);
3426
3426
  for (let n = 0; n < r.length; n++) {
3427
- const i = r[n], o = Bn(i, e);
3427
+ const i = r[n], o = Pn(i, e);
3428
3428
  if (o)
3429
- return Hn(e, t, o);
3429
+ return An(e, t, o);
3430
3430
  }
3431
3431
  };
3432
- let Je;
3433
- const se = Te({});
3434
- function An(e) {
3435
- return Je[e] || null;
3432
+ let Qe;
3433
+ const ae = He({});
3434
+ function Bn(e) {
3435
+ return Qe[e] || null;
3436
3436
  }
3437
- function Ft(e) {
3438
- return e in Je;
3437
+ function kt(e) {
3438
+ return e in Qe;
3439
3439
  }
3440
- function Bn(e, t) {
3441
- if (!Ft(e))
3440
+ function Pn(e, t) {
3441
+ if (!kt(e))
3442
3442
  return null;
3443
- const r = An(e);
3444
- return Tn(r, t);
3443
+ const r = Bn(e);
3444
+ return wn(r, t);
3445
3445
  }
3446
- function wn(e) {
3446
+ function Cn(e) {
3447
3447
  if (e == null)
3448
3448
  return;
3449
3449
  const t = Be(e);
3450
3450
  for (let r = 0; r < t.length; r++) {
3451
3451
  const n = t[r];
3452
- if (Ft(n))
3452
+ if (kt(n))
3453
3453
  return n;
3454
3454
  }
3455
3455
  }
3456
- function Gt(e, ...t) {
3457
- delete k[e], se.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
3456
+ function jt(e, ...t) {
3457
+ delete k[e], ae.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
3458
3458
  }
3459
- oe(
3460
- [se],
3459
+ se(
3460
+ [ae],
3461
3461
  ([e]) => Object.keys(e)
3462
3462
  );
3463
- se.subscribe((e) => Je = e);
3464
- const Ee = {};
3465
- function Pn(e, t) {
3466
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3463
+ ae.subscribe((e) => Qe = e);
3464
+ const _e = {};
3465
+ function On(e, t) {
3466
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3467
3467
  }
3468
- function kt(e) {
3469
- return Ee[e];
3468
+ function Vt(e) {
3469
+ return _e[e];
3470
3470
  }
3471
3471
  function In(e) {
3472
3472
  return Be(e).map((t) => {
3473
- const r = kt(t);
3473
+ const r = Vt(t);
3474
3474
  return [t, r ? [...r] : []];
3475
3475
  }).filter(([, t]) => t.length > 0);
3476
3476
  }
3477
- function ze(e) {
3477
+ function We(e) {
3478
3478
  return e == null ? !1 : Be(e).some(
3479
3479
  (t) => {
3480
3480
  var r;
3481
- return (r = kt(t)) == null ? void 0 : r.size;
3481
+ return (r = Vt(t)) == null ? void 0 : r.size;
3482
3482
  }
3483
3483
  );
3484
3484
  }
3485
- function On(e, t) {
3485
+ function Nn(e, t) {
3486
3486
  return Promise.all(
3487
- t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3488
- ).then((n) => Gt(e, ...n));
3487
+ t.map((n) => (On(e, n), n().then((i) => i.default || i)))
3488
+ ).then((n) => jt(e, ...n));
3489
3489
  }
3490
3490
  const ce = {};
3491
- function jt(e) {
3492
- if (!ze(e))
3491
+ function Xt(e) {
3492
+ if (!We(e))
3493
3493
  return e in ce ? ce[e] : Promise.resolve();
3494
3494
  const t = In(e);
3495
3495
  return ce[e] = Promise.all(
3496
3496
  t.map(
3497
- ([r, n]) => On(r, n)
3497
+ ([r, n]) => Nn(r, n)
3498
3498
  )
3499
3499
  ).then(() => {
3500
- if (ze(e))
3501
- return jt(e);
3500
+ if (We(e))
3501
+ return Xt(e);
3502
3502
  delete ce[e];
3503
3503
  }), ce[e];
3504
3504
  }
3505
- const Cn = {
3505
+ const Mn = {
3506
3506
  number: {
3507
3507
  scientific: { notation: "scientific" },
3508
3508
  engineering: { notation: "engineering" },
@@ -3531,135 +3531,135 @@ const Cn = {
3531
3531
  timeZoneName: "short"
3532
3532
  }
3533
3533
  }
3534
- }, Nn = {
3534
+ }, Ln = {
3535
3535
  fallbackLocale: null,
3536
3536
  loadingDelay: 200,
3537
- formats: Cn,
3537
+ formats: Mn,
3538
3538
  warnOnMissingMessages: !0,
3539
3539
  handleMissingMessage: void 0,
3540
3540
  ignoreTag: !0
3541
- }, Mn = Nn;
3542
- function ne() {
3543
- return Mn;
3541
+ }, Rn = Ln;
3542
+ function ie() {
3543
+ return Rn;
3544
3544
  }
3545
- const Le = Te(!1);
3546
- var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
3545
+ const Re = He(!1);
3546
+ var $n = Object.defineProperty, Un = Object.defineProperties, Dn = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kn = (e, t) => {
3547
3547
  for (var r in t || (t = {}))
3548
- Un.call(t, r) && ht(e, r, t[r]);
3549
- if (lt)
3550
- for (var r of lt(t))
3551
- Dn.call(t, r) && ht(e, r, t[r]);
3548
+ Gn.call(t, r) && ft(e, r, t[r]);
3549
+ if (ct)
3550
+ for (var r of ct(t))
3551
+ Fn.call(t, r) && ft(e, r, t[r]);
3552
3552
  return e;
3553
- }, Gn = (e, t) => Rn(e, $n(t));
3554
- let We;
3555
- const xe = Te(null);
3556
- function ct(e) {
3553
+ }, jn = (e, t) => Un(e, Dn(t));
3554
+ let Ze;
3555
+ const Se = He(null);
3556
+ function dt(e) {
3557
3557
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3558
3558
  }
3559
- function Be(e, t = ne().fallbackLocale) {
3560
- const r = ct(e);
3561
- return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3559
+ function Be(e, t = ie().fallbackLocale) {
3560
+ const r = dt(e);
3561
+ return t ? [.../* @__PURE__ */ new Set([...r, ...dt(t)])] : r;
3562
3562
  }
3563
3563
  function J() {
3564
- return We ?? void 0;
3564
+ return Ze ?? void 0;
3565
3565
  }
3566
- xe.subscribe((e) => {
3567
- We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3566
+ Se.subscribe((e) => {
3567
+ Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3568
3568
  });
3569
- const kn = (e) => {
3570
- if (e && wn(e) && ze(e)) {
3571
- const { loadingDelay: t } = ne();
3569
+ const Vn = (e) => {
3570
+ if (e && Cn(e) && We(e)) {
3571
+ const { loadingDelay: t } = ie();
3572
3572
  let r;
3573
3573
  return typeof window < "u" && J() != null && t ? r = window.setTimeout(
3574
- () => Le.set(!0),
3574
+ () => Re.set(!0),
3575
3575
  t
3576
- ) : Le.set(!0), jt(e).then(() => {
3577
- xe.set(e);
3576
+ ) : Re.set(!0), Xt(e).then(() => {
3577
+ Se.set(e);
3578
3578
  }).finally(() => {
3579
- clearTimeout(r), Le.set(!1);
3579
+ clearTimeout(r), Re.set(!1);
3580
3580
  });
3581
3581
  }
3582
- return xe.set(e);
3583
- }, W = Gn(Fn({}, xe), {
3584
- set: kn
3585
- }), we = (e) => {
3582
+ return Se.set(e);
3583
+ }, W = jn(kn({}, Se), {
3584
+ set: Vn
3585
+ }), Pe = (e) => {
3586
3586
  const t = /* @__PURE__ */ Object.create(null);
3587
3587
  return (n) => {
3588
3588
  const i = JSON.stringify(n);
3589
3589
  return i in t ? t[i] : t[i] = e(n);
3590
3590
  };
3591
3591
  };
3592
- var jn = Object.defineProperty, Se = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
3592
+ var Xn = Object.defineProperty, Te = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
3593
3593
  for (var r in t || (t = {}))
3594
- Vt.call(t, r) && ft(e, r, t[r]);
3595
- if (Se)
3596
- for (var r of Se(t))
3597
- Xt.call(t, r) && ft(e, r, t[r]);
3594
+ zt.call(t, r) && mt(e, r, t[r]);
3595
+ if (Te)
3596
+ for (var r of Te(t))
3597
+ Wt.call(t, r) && mt(e, r, t[r]);
3598
3598
  return e;
3599
- }, ae = (e, t) => {
3599
+ }, ue = (e, t) => {
3600
3600
  var r = {};
3601
3601
  for (var n in e)
3602
- Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3603
- if (e != null && Se)
3604
- for (var n of Se(e))
3605
- t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3602
+ zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3603
+ if (e != null && Te)
3604
+ for (var n of Te(e))
3605
+ t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
3606
3606
  return r;
3607
3607
  };
3608
3608
  const pe = (e, t) => {
3609
- const { formats: r } = ne();
3609
+ const { formats: r } = ie();
3610
3610
  if (e in r && t in r[e])
3611
3611
  return r[e][t];
3612
3612
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3613
- }, Vn = we(
3613
+ }, zn = Pe(
3614
3614
  (e) => {
3615
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3615
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3616
3616
  if (r == null)
3617
3617
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3618
3618
  return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3619
3619
  }
3620
- ), Xn = we(
3620
+ ), Wn = Pe(
3621
3621
  (e) => {
3622
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3622
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3623
3623
  if (r == null)
3624
3624
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3625
3625
  return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
3626
3626
  }
3627
- ), zn = we(
3627
+ ), Zn = Pe(
3628
3628
  (e) => {
3629
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3629
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3630
3630
  if (r == null)
3631
3631
  throw new Error(
3632
3632
  '[svelte-i18n] A "locale" must be set to format time values'
3633
3633
  );
3634
3634
  return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
3635
3635
  }
3636
- ), Wn = (e = {}) => {
3636
+ ), Jn = (e = {}) => {
3637
3637
  var t = e, {
3638
3638
  locale: r = J()
3639
- } = t, n = ae(t, [
3639
+ } = t, n = ue(t, [
3640
3640
  "locale"
3641
3641
  ]);
3642
- return Vn(Qe({ locale: r }, n));
3643
- }, Zn = (e = {}) => {
3642
+ return zn(qe({ locale: r }, n));
3643
+ }, Qn = (e = {}) => {
3644
3644
  var t = e, {
3645
3645
  locale: r = J()
3646
- } = t, n = ae(t, [
3646
+ } = t, n = ue(t, [
3647
3647
  "locale"
3648
3648
  ]);
3649
- return Xn(Qe({ locale: r }, n));
3650
- }, Jn = (e = {}) => {
3649
+ return Wn(qe({ locale: r }, n));
3650
+ }, qn = (e = {}) => {
3651
3651
  var t = e, {
3652
3652
  locale: r = J()
3653
- } = t, n = ae(t, [
3653
+ } = t, n = ue(t, [
3654
3654
  "locale"
3655
3655
  ]);
3656
- return zn(Qe({ locale: r }, n));
3657
- }, Qn = we(
3656
+ return Zn(qe({ locale: r }, n));
3657
+ }, Yn = Pe(
3658
3658
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3659
- (e, t = J()) => new Sn(e, t, ne().formats, {
3660
- ignoreTag: ne().ignoreTag
3659
+ (e, t = J()) => new Hn(e, t, ie().formats, {
3660
+ ignoreTag: ie().ignoreTag
3661
3661
  })
3662
- ), qn = (e, t = {}) => {
3662
+ ), Kn = (e, t = {}) => {
3663
3663
  var r, n, i, o;
3664
3664
  let a = t;
3665
3665
  typeof e == "object" && (a = e, e = a.id);
@@ -3672,39 +3672,39 @@ const pe = (e, t) => {
3672
3672
  throw new Error(
3673
3673
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3674
3674
  );
3675
- let l = Dt(e, h);
3675
+ let l = Ft(e, h);
3676
3676
  if (!l)
3677
- l = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3677
+ l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3678
3678
  else if (typeof l != "string")
3679
3679
  return console.warn(
3680
3680
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3681
3681
  ), l;
3682
3682
  if (!s)
3683
3683
  return l;
3684
- let c = l;
3684
+ let f = l;
3685
3685
  try {
3686
- c = Qn(l, h).format(s);
3686
+ f = Yn(l, h).format(s);
3687
3687
  } catch (d) {
3688
3688
  d instanceof Error && console.warn(
3689
3689
  `[svelte-i18n] Message "${e}" has syntax error:`,
3690
3690
  d.message
3691
3691
  );
3692
3692
  }
3693
- return c;
3694
- }, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = J()) => Dt(e, t), ri = oe([W, se], () => qn);
3695
- oe([W], () => Yn);
3696
- oe([W], () => Kn);
3697
- oe([W], () => ei);
3698
- oe([W, se], () => ti);
3699
- function ni({ withLocale: e, translations: t }) {
3693
+ return f;
3694
+ }, ei = (e, t) => qn(t).format(e), ti = (e, t) => Qn(t).format(e), ri = (e, t) => Jn(t).format(e), ni = (e, t = J()) => Ft(e, t), ii = se([W, ae], () => Kn);
3695
+ se([W], () => ei);
3696
+ se([W], () => ti);
3697
+ se([W], () => ri);
3698
+ se([W, ae], () => ni);
3699
+ function oi({ withLocale: e, translations: t }) {
3700
3700
  W.subscribe((r) => {
3701
- r == null && (se.set(t), W.set(e));
3701
+ r == null && (ae.set(t), W.set(e));
3702
3702
  });
3703
3703
  }
3704
- function dt(e, t) {
3705
- Gt(e, t);
3704
+ function pt(e, t) {
3705
+ jt(e, t);
3706
3706
  }
3707
- const mt = {
3707
+ const bt = {
3708
3708
  en: {
3709
3709
  title: "Please enter the verification code you received on your number",
3710
3710
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3810,14 +3810,14 @@ const mt = {
3810
3810
  resend: "Resend",
3811
3811
  loginSMSHint: "A new verification code has been sent to your phone number"
3812
3812
  }
3813
- };
3814
- function ii(e, t) {
3813
+ }, K = "__WIDGET_GLOBAL_STYLE_CACHE__";
3814
+ function si(e, t) {
3815
3815
  if (e) {
3816
3816
  const r = document.createElement("style");
3817
3817
  r.innerHTML = t, e.appendChild(r);
3818
3818
  }
3819
3819
  }
3820
- function oi(e, t) {
3820
+ function ai(e, t) {
3821
3821
  if (!e || !t)
3822
3822
  return;
3823
3823
  const r = new URL(t);
@@ -3828,25 +3828,52 @@ function oi(e, t) {
3828
3828
  console.error("There was an error while trying to load client styling from URL", n);
3829
3829
  });
3830
3830
  }
3831
- function si(e, t, r) {
3832
- if (window.emMessageBus) {
3833
- const n = document.createElement("style");
3834
- window.emMessageBus.subscribe(t, (i) => {
3835
- n.innerHTML = i, e && e.appendChild(n);
3831
+ function ui(e, t, r, n = !1) {
3832
+ if (!window.emMessageBus)
3833
+ return;
3834
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
3835
+ return r = li(e, t), r;
3836
+ window[K] || (window[K] = {}), r = hi(e, t);
3837
+ const o = r.unsubscribe.bind(r), a = () => {
3838
+ if (window[K][t]) {
3839
+ const s = window[K][t];
3840
+ s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[K][t];
3841
+ }
3842
+ o();
3843
+ };
3844
+ return r.unsubscribe = a, r;
3845
+ }
3846
+ function li(e, t) {
3847
+ const r = document.createElement("style");
3848
+ return window.emMessageBus.subscribe(t, (n) => {
3849
+ e && (r.innerHTML = n, e.appendChild(r));
3850
+ });
3851
+ }
3852
+ function hi(e, t) {
3853
+ return window.emMessageBus.subscribe(t, (r) => {
3854
+ if (!e)
3855
+ return;
3856
+ const n = e.getRootNode(), i = window[K];
3857
+ let o = i[t]?.sheet;
3858
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
3859
+ sheet: o,
3860
+ refCount: 1
3836
3861
  });
3837
- }
3862
+ const a = n.adoptedStyleSheets || [];
3863
+ a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
3864
+ });
3838
3865
  }
3839
- function ai(e) {
3840
- Zt(e, "svelte-c25n4u", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3866
+ function ci(e) {
3867
+ Qt(e, "svelte-c25n4u", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3841
3868
  }
3842
- function ui(e) {
3869
+ function fi(e) {
3843
3870
  let t = (
3844
3871
  /*$_*/
3845
3872
  e[5]("errorTitle") + ""
3846
3873
  ), r;
3847
3874
  return {
3848
3875
  c() {
3849
- r = M(t);
3876
+ r = L(t);
3850
3877
  },
3851
3878
  m(n, i) {
3852
3879
  Z(n, r, i);
@@ -3854,21 +3881,21 @@ function ui(e) {
3854
3881
  p(n, i) {
3855
3882
  i & /*$_*/
3856
3883
  32 && t !== (t = /*$_*/
3857
- n[5]("errorTitle") + "") && G(r, t);
3884
+ n[5]("errorTitle") + "") && F(r, t);
3858
3885
  },
3859
3886
  d(n) {
3860
3887
  n && j(r);
3861
3888
  }
3862
3889
  };
3863
3890
  }
3864
- function li(e) {
3891
+ function di(e) {
3865
3892
  let t = (
3866
3893
  /*$_*/
3867
3894
  e[5]("title") + ""
3868
3895
  ), r;
3869
3896
  return {
3870
3897
  c() {
3871
- r = M(t);
3898
+ r = L(t);
3872
3899
  },
3873
3900
  m(n, i) {
3874
3901
  Z(n, r, i);
@@ -3876,77 +3903,77 @@ function li(e) {
3876
3903
  p(n, i) {
3877
3904
  i & /*$_*/
3878
3905
  32 && t !== (t = /*$_*/
3879
- n[5]("title") + "") && G(r, t);
3906
+ n[5]("title") + "") && F(r, t);
3880
3907
  },
3881
3908
  d(n) {
3882
3909
  n && j(r);
3883
3910
  }
3884
3911
  };
3885
3912
  }
3886
- function pt(e) {
3913
+ function gt(e) {
3887
3914
  let t, r = (
3888
3915
  /*$_*/
3889
3916
  e[5]("smsCodeError") + ""
3890
3917
  ), n;
3891
3918
  return {
3892
3919
  c() {
3893
- t = N("p"), n = M(r), A(t, "class", "InvalidInput");
3920
+ t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3894
3921
  },
3895
3922
  m(i, o) {
3896
- Z(i, t, o), y(t, n);
3923
+ Z(i, t, o), v(t, n);
3897
3924
  },
3898
3925
  p(i, o) {
3899
3926
  o & /*$_*/
3900
3927
  32 && r !== (r = /*$_*/
3901
- i[5]("smsCodeError") + "") && G(n, r);
3928
+ i[5]("smsCodeError") + "") && F(n, r);
3902
3929
  },
3903
3930
  d(i) {
3904
3931
  i && j(t);
3905
3932
  }
3906
3933
  };
3907
3934
  }
3908
- function bt(e) {
3935
+ function vt(e) {
3909
3936
  let t, r = (
3910
3937
  /*$_*/
3911
3938
  e[5]("resendMessage") + ""
3912
3939
  ), n;
3913
3940
  return {
3914
3941
  c() {
3915
- t = N("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
3942
+ t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3916
3943
  },
3917
3944
  m(i, o) {
3918
- Z(i, t, o), y(t, n);
3945
+ Z(i, t, o), v(t, n);
3919
3946
  },
3920
3947
  p(i, o) {
3921
3948
  o & /*$_*/
3922
3949
  32 && r !== (r = /*$_*/
3923
- i[5]("resendMessage") + "") && G(n, r);
3950
+ i[5]("resendMessage") + "") && F(n, r);
3924
3951
  },
3925
3952
  d(i) {
3926
3953
  i && j(t);
3927
3954
  }
3928
3955
  };
3929
3956
  }
3930
- function gt(e) {
3957
+ function yt(e) {
3931
3958
  let t, r, n = (
3932
3959
  /*secondsLeft*/
3933
3960
  e[4] < 10 ? "0" : ""
3934
3961
  ), i, o, a;
3935
3962
  return {
3936
3963
  c() {
3937
- t = N("span"), r = M("(0:"), i = M(n), o = M(
3964
+ t = M("span"), r = L("(0:"), i = L(n), o = L(
3938
3965
  /*secondsLeft*/
3939
3966
  e[4]
3940
- ), a = M(")"), A(t, "class", "SmsVerificationResendTimer");
3967
+ ), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
3941
3968
  },
3942
3969
  m(s, h) {
3943
- Z(s, t, h), y(t, r), y(t, i), y(t, o), y(t, a);
3970
+ Z(s, t, h), v(t, r), v(t, i), v(t, o), v(t, a);
3944
3971
  },
3945
3972
  p(s, h) {
3946
3973
  h & /*secondsLeft*/
3947
3974
  16 && n !== (n = /*secondsLeft*/
3948
- s[4] < 10 ? "0" : "") && G(i, n), h & /*secondsLeft*/
3949
- 16 && G(
3975
+ s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
3976
+ 16 && F(
3950
3977
  o,
3951
3978
  /*secondsLeft*/
3952
3979
  s[4]
@@ -3957,125 +3984,125 @@ function gt(e) {
3957
3984
  }
3958
3985
  };
3959
3986
  }
3960
- function hi(e) {
3987
+ function mi(e) {
3961
3988
  let t, r, n, i, o, a = (
3962
3989
  /*$_*/
3963
3990
  e[5]("code") + ""
3964
- ), s, h, u, l, c, d, g, v, _, T, H = (
3991
+ ), s, h, u, l, f, d, b, g, E, S, T = (
3965
3992
  /*$_*/
3966
3993
  e[5]("activate") + ""
3967
- ), L, B, x, C = (
3994
+ ), R, O, H, w = (
3968
3995
  /*$_*/
3969
3996
  e[5]("resend") + ""
3970
- ), D, V, ue, le;
3971
- function he(p, I) {
3997
+ ), D, V, le, be;
3998
+ function he(c, _) {
3972
3999
  return (
3973
4000
  /*isSmsValid*/
3974
- p[2] ? li : ui
4001
+ c[2] ? di : fi
3975
4002
  );
3976
4003
  }
3977
- let X = he(e), R = X(e), w = !/*isSmsValid*/
3978
- e[2] && pt(e), P = (
4004
+ let X = he(e), N = X(e), B = !/*isSmsValid*/
4005
+ e[2] && gt(e), P = (
3979
4006
  /*timer*/
3980
- e[3] && bt(e)
3981
- ), f = (
4007
+ e[3] && vt(e)
4008
+ ), C = (
3982
4009
  /*timer*/
3983
- e[3] && gt(e)
4010
+ e[3] && yt(e)
3984
4011
  );
3985
4012
  return {
3986
4013
  c() {
3987
- t = N("div"), r = N("h3"), R.c(), n = z(), i = N("div"), o = N("label"), s = M(a), h = M(":"), u = N("span"), u.textContent = "*", l = z(), c = N("input"), d = z(), w && w.c(), v = z(), P && P.c(), _ = z(), T = N("button"), L = M(H), B = z(), x = N("button"), D = M(C), V = z(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
3988
- e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(x, "class", "Button SmsVerificationResend"), x.disabled = /*timer*/
4014
+ t = M("div"), r = M("h3"), N.c(), n = z(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = z(), f = M("input"), d = z(), B && B.c(), g = z(), P && P.c(), E = z(), S = M("button"), R = L(T), O = z(), H = M("button"), D = L(w), V = z(), C && C.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
4015
+ e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3989
4016
  e[3], A(t, "class", "Container SmsVerificationContainer");
3990
4017
  },
3991
- m(p, I) {
3992
- Z(p, t, I), y(t, r), R.m(r, null), y(t, n), y(t, i), y(i, o), y(o, s), y(o, h), y(o, u), y(i, l), y(i, c), Ye(
3993
- c,
4018
+ m(c, _) {
4019
+ Z(c, t, _), v(t, r), N.m(r, null), v(t, n), v(t, i), v(i, o), v(o, s), v(o, h), v(o, u), v(i, l), v(i, f), et(
4020
+ f,
3994
4021
  /*smsCode*/
3995
4022
  e[1]
3996
- ), y(i, d), w && w.m(i, null), y(t, v), P && P.m(t, null), y(t, _), y(t, T), y(T, L), y(t, B), y(t, x), y(x, D), y(x, V), f && f.m(x, null), e[20](t), ue || (le = [
3997
- be(
3998
- c,
4023
+ ), v(i, d), B && B.m(i, null), v(t, g), P && P.m(t, null), v(t, E), v(t, S), v(S, R), v(t, O), v(t, H), v(H, D), v(H, V), C && C.m(H, null), e[20](t), le || (be = [
4024
+ ge(
4025
+ f,
3999
4026
  "input",
4000
4027
  /*input_input_handler*/
4001
4028
  e[18]
4002
4029
  ),
4003
- be(
4004
- c,
4030
+ ge(
4031
+ f,
4005
4032
  "keydown",
4006
4033
  /*keydown_handler*/
4007
4034
  e[19]
4008
4035
  ),
4009
- be(
4010
- T,
4036
+ ge(
4037
+ S,
4011
4038
  "click",
4012
4039
  /*activateUser*/
4013
4040
  e[6]
4014
4041
  ),
4015
- be(
4016
- x,
4042
+ ge(
4043
+ H,
4017
4044
  "click",
4018
4045
  /*resendCode*/
4019
4046
  e[7]
4020
4047
  )
4021
- ], ue = !0);
4048
+ ], le = !0);
4022
4049
  },
4023
- p(p, [I]) {
4024
- X === (X = he(p)) && R ? R.p(p, I) : (R.d(1), R = X(p), R && (R.c(), R.m(r, null))), I & /*$_*/
4050
+ p(c, [_]) {
4051
+ X === (X = he(c)) && N ? N.p(c, _) : (N.d(1), N = X(c), N && (N.c(), N.m(r, null))), _ & /*$_*/
4025
4052
  32 && a !== (a = /*$_*/
4026
- p[5]("code") + "") && G(s, a), I & /*smsCode*/
4027
- 2 && c.value !== /*smsCode*/
4028
- p[1] && Ye(
4029
- c,
4053
+ c[5]("code") + "") && F(s, a), _ & /*smsCode*/
4054
+ 2 && f.value !== /*smsCode*/
4055
+ c[1] && et(
4056
+ f,
4030
4057
  /*smsCode*/
4031
- p[1]
4058
+ c[1]
4032
4059
  ), /*isSmsValid*/
4033
- p[2] ? w && (w.d(1), w = null) : w ? w.p(p, I) : (w = pt(p), w.c(), w.m(i, null)), I & /*isSmsValid*/
4034
- 4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4035
- p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4036
- p[3] ? P ? P.p(p, I) : (P = bt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), I & /*$_*/
4037
- 32 && H !== (H = /*$_*/
4038
- p[5]("activate") + "") && G(L, H), I & /*$_*/
4039
- 32 && C !== (C = /*$_*/
4040
- p[5]("resend") + "") && G(D, C), /*timer*/
4041
- p[3] ? f ? f.p(p, I) : (f = gt(p), f.c(), f.m(x, null)) : f && (f.d(1), f = null), I & /*timer*/
4042
- 8 && (x.disabled = /*timer*/
4043
- p[3]);
4060
+ c[2] ? B && (B.d(1), B = null) : B ? B.p(c, _) : (B = gt(c), B.c(), B.m(i, null)), _ & /*isSmsValid*/
4061
+ 4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
4062
+ c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
4063
+ c[3] ? P ? P.p(c, _) : (P = vt(c), P.c(), P.m(t, E)) : P && (P.d(1), P = null), _ & /*$_*/
4064
+ 32 && T !== (T = /*$_*/
4065
+ c[5]("activate") + "") && F(R, T), _ & /*$_*/
4066
+ 32 && w !== (w = /*$_*/
4067
+ c[5]("resend") + "") && F(D, w), /*timer*/
4068
+ c[3] ? C ? C.p(c, _) : (C = yt(c), C.c(), C.m(H, null)) : C && (C.d(1), C = null), _ & /*timer*/
4069
+ 8 && (H.disabled = /*timer*/
4070
+ c[3]);
4044
4071
  },
4045
4072
  i: U,
4046
4073
  o: U,
4047
- d(p) {
4048
- p && j(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ue = !1, ie(le);
4074
+ d(c) {
4075
+ c && j(t), N.d(), B && B.d(), P && P.d(), C && C.d(), e[20](null), le = !1, oe(be);
4049
4076
  }
4050
4077
  };
4051
4078
  }
4052
- function ci(e, t, r) {
4079
+ function pi(e, t, r) {
4053
4080
  let n;
4054
- Wt(e, ri, (f) => r(5, n = f));
4055
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, v = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, x = 60 - Math.floor(B);
4056
- const C = { numeric: /^[0-9]{0,6}$/ };
4057
- ni({ withLocale: "en", translations: {} });
4058
- const D = () => {
4059
- fetch(d).then((p) => p.json()).then((p) => {
4060
- Object.keys(p).forEach((I) => {
4061
- dt(I, p[I]);
4081
+ Jt(e, ii, (c) => r(5, n = c));
4082
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, b, g = !0, E = !1, S, T, R, O = +localStorage.getItem("smsTimer") || 0, H = Date.now() / 1e3 - O, w = 60 - Math.floor(H);
4083
+ const D = { numeric: /^[0-9]{0,6}$/ };
4084
+ oi({ withLocale: "en", translations: {} });
4085
+ const V = () => {
4086
+ fetch(d).then((_) => _.json()).then((_) => {
4087
+ Object.keys(_).forEach((Ye) => {
4088
+ pt(Ye, _[Ye]);
4062
4089
  });
4063
- }).catch((p) => {
4064
- console.log(p);
4090
+ }).catch((_) => {
4091
+ console.log(_);
4065
4092
  });
4066
4093
  };
4067
- Object.keys(mt).forEach((f) => {
4068
- dt(f, mt[f]);
4094
+ Object.keys(bt).forEach((c) => {
4095
+ pt(c, bt[c]);
4069
4096
  });
4070
- const V = async () => {
4097
+ const le = async () => {
4071
4098
  try {
4072
- if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
4099
+ if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${b}`, {
4073
4100
  headers: {
4074
4101
  "Content-Type": "application/json",
4075
4102
  accept: "application/json"
4076
4103
  }
4077
4104
  })).ok)
4078
- r(2, v = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4105
+ r(2, g = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4079
4106
  else
4080
4107
  throw window.postMessage(
4081
4108
  {
@@ -4086,14 +4113,14 @@ function ci(e, t, r) {
4086
4113
  }
4087
4114
  },
4088
4115
  window.location.href
4089
- ), r(2, v = !1), new Error("Could not activate user");
4090
- } catch (f) {
4091
- console.log(f);
4116
+ ), r(2, g = !1), new Error("Could not activate user");
4117
+ } catch (c) {
4118
+ console.log(c);
4092
4119
  }
4093
- }, ue = async () => {
4094
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), he();
4120
+ }, be = async () => {
4121
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), X();
4095
4122
  try {
4096
- const f = await fetch(`${i}/v1/player/sms/token`, {
4123
+ const c = await fetch(`${i}/v1/player/sms/token`, {
4097
4124
  method: "POST",
4098
4125
  headers: {
4099
4126
  "Content-Type": "application/json",
@@ -4104,62 +4131,62 @@ function ci(e, t, r) {
4104
4131
  messageTemplate: s,
4105
4132
  destination: h
4106
4133
  })
4107
- }), p = await f.json();
4108
- if (f.ok)
4109
- r(9, o = p.id), _ = !1, le();
4134
+ }), _ = await c.json();
4135
+ if (c.ok)
4136
+ r(9, o = _.id), E = !1, he();
4110
4137
  else
4111
- throw _ = !0, new Error("Failed to fetch");
4112
- } catch (f) {
4113
- _ = !0, console.error(f);
4138
+ throw E = !0, new Error("Failed to fetch");
4139
+ } catch (c) {
4140
+ E = !0, console.error(c);
4114
4141
  }
4115
- }, le = () => {
4116
- x > 0 ? r(4, x--, x) : (clearInterval(T), r(3, T = !1), r(4, x = 60));
4117
4142
  }, he = () => {
4118
- B < 60 && r(3, T = setInterval(
4143
+ w > 0 ? r(4, w--, w) : (clearInterval(S), r(3, S = !1), r(4, w = 60));
4144
+ }, X = () => {
4145
+ H < 60 && r(3, S = setInterval(
4119
4146
  () => {
4120
- le();
4147
+ he();
4121
4148
  },
4122
4149
  1e3
4123
4150
  ));
4124
- }, X = (f) => {
4125
- !C.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4151
+ }, N = (c) => {
4152
+ !D.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4126
4153
  };
4127
- er(() => {
4154
+ rr(() => {
4128
4155
  if (!a || !h) {
4129
- let f = JSON.parse(localStorage.getItem("playerData"));
4130
- r(10, a = f.playerid), r(11, h = f.number);
4156
+ let c = JSON.parse(localStorage.getItem("playerData"));
4157
+ r(10, a = c.playerid), r(11, h = c.number);
4131
4158
  }
4132
- return he(), () => {
4159
+ return X(), () => {
4133
4160
  };
4134
4161
  });
4135
- function R() {
4136
- g = this.value, r(1, g);
4162
+ function B() {
4163
+ b = this.value, r(1, b);
4137
4164
  }
4138
- const w = (f) => X(f);
4139
- function P(f) {
4140
- Re[f ? "unshift" : "push"](() => {
4141
- H = f, r(0, H);
4165
+ const P = (c) => N(c);
4166
+ function C(c) {
4167
+ $e[c ? "unshift" : "push"](() => {
4168
+ T = c, r(0, T);
4142
4169
  });
4143
4170
  }
4144
- return e.$$set = (f) => {
4145
- "endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, a = f.playerid), "smstemplate" in f && r(13, s = f.smstemplate), "number" in f && r(11, h = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, l = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
4171
+ return e.$$set = (c) => {
4172
+ "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, a = c.playerid), "smstemplate" in c && r(13, s = c.smstemplate), "number" in c && r(11, h = c.number), "mbsource" in c && r(14, u = c.mbsource), "clientstyling" in c && r(15, l = c.clientstyling), "clientstylingurl" in c && r(16, f = c.clientstylingurl), "translationurl" in c && r(17, d = c.translationurl);
4146
4173
  }, e.$$.update = () => {
4147
4174
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4148
4175
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4149
- 32769 && l && H && ii(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4150
- 65537 && c && H && oi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4151
- 16385 && u && H && si(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
4152
- 131072 && d && D();
4176
+ 32769 && l && T && si(T, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4177
+ 65537 && f && T && ai(T, f), e.$$.dirty & /*mbsource, customStylingContainer*/
4178
+ 16385 && u && T && ui(T, `${u}.Style`, R), e.$$.dirty & /*translationurl*/
4179
+ 131072 && d && V();
4153
4180
  }, [
4154
- H,
4155
- g,
4156
- v,
4157
4181
  T,
4158
- x,
4182
+ b,
4183
+ g,
4184
+ S,
4185
+ w,
4159
4186
  n,
4160
- V,
4161
- ue,
4162
- X,
4187
+ le,
4188
+ be,
4189
+ N,
4163
4190
  o,
4164
4191
  a,
4165
4192
  h,
@@ -4167,21 +4194,21 @@ function ci(e, t, r) {
4167
4194
  s,
4168
4195
  u,
4169
4196
  l,
4170
- c,
4197
+ f,
4171
4198
  d,
4172
- R,
4173
- w,
4174
- P
4199
+ B,
4200
+ P,
4201
+ C
4175
4202
  ];
4176
4203
  }
4177
- class fi extends fr {
4204
+ class bi extends mr {
4178
4205
  constructor(t) {
4179
- super(), hr(
4206
+ super(), fr(
4180
4207
  this,
4181
4208
  t,
4182
- ci,
4183
- hi,
4184
- yt,
4209
+ pi,
4210
+ mi,
4211
+ _t,
4185
4212
  {
4186
4213
  endpoint: 12,
4187
4214
  tokenid: 9,
@@ -4193,7 +4220,7 @@ class fi extends fr {
4193
4220
  clientstylingurl: 16,
4194
4221
  translationurl: 17
4195
4222
  },
4196
- ai
4223
+ ci
4197
4224
  );
4198
4225
  }
4199
4226
  get endpoint() {
@@ -4251,7 +4278,7 @@ class fi extends fr {
4251
4278
  this.$$set({ translationurl: t }), $();
4252
4279
  }
4253
4280
  }
4254
- cr(fi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4281
+ dr(bi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4255
4282
  export {
4256
- fi as G
4283
+ bi as G
4257
4284
  };