@everymatrix/general-player-sms-verification-form 1.54.0 → 1.54.4

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,75 +1,46 @@
1
- var Yt = Object.defineProperty, Kt = Object.defineProperties;
2
- var er = Object.getOwnPropertyDescriptors;
3
- var et = Object.getOwnPropertySymbols;
4
- var tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
6
- for (var r in t || (t = {}))
7
- tr.call(t, r) && Ce(e, r, t[r]);
8
- if (et)
9
- for (var r of et(t))
10
- rr.call(t, r) && Ce(e, r, t[r]);
11
- return e;
12
- }, rt = (e, t) => Kt(e, er(t));
13
- var $ = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ge = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function U() {
1
+ function $() {
31
2
  }
32
- function Tt(e) {
3
+ function vt(e) {
33
4
  return e();
34
5
  }
35
- function nt() {
6
+ function qe() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function se(e) {
39
- e.forEach(Tt);
9
+ function oe(e) {
10
+ e.forEach(vt);
40
11
  }
41
- function Qe(e) {
12
+ function We(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Ht(e, t) {
15
+ function yt(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function nr(e) {
18
+ function zt(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function At(e, ...t) {
21
+ function Et(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
54
- return U;
25
+ return $;
55
26
  }
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function ir(e, t, r) {
60
- e.$$.on_destroy.push(At(t, r));
30
+ function Wt(e, t, r) {
31
+ e.$$.on_destroy.push(Et(t, r));
61
32
  }
62
33
  function E(e, t) {
63
34
  e.appendChild(t);
64
35
  }
65
- function or(e, t, r) {
66
- const n = sr(e);
36
+ function Zt(e, t, r) {
37
+ const n = Jt(e);
67
38
  if (!n.getElementById(t)) {
68
39
  const i = M("style");
69
- i.id = t, i.textContent = r, ar(n, i);
40
+ i.id = t, i.textContent = r, Qt(n, i);
70
41
  }
71
42
  }
72
- function sr(e) {
43
+ function Jt(e) {
73
44
  if (!e) return document;
74
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
46
  return t && /** @type {ShadowRoot} */
@@ -78,17 +49,17 @@ function sr(e) {
78
49
  t
79
50
  ) : e.ownerDocument;
80
51
  }
81
- function ar(e, t) {
52
+ function Qt(e, t) {
82
53
  return E(
83
54
  /** @type {Document} */
84
55
  e.head || e,
85
56
  t
86
57
  ), t.sheet;
87
58
  }
88
- function Z(e, t, r) {
59
+ function W(e, t, r) {
89
60
  e.insertBefore(t, r || null);
90
61
  }
91
- function j(e) {
62
+ function k(e) {
92
63
  e.parentNode && e.parentNode.removeChild(e);
93
64
  }
94
65
  function M(e) {
@@ -97,26 +68,26 @@ function M(e) {
97
68
  function L(e) {
98
69
  return document.createTextNode(e);
99
70
  }
100
- function z() {
71
+ function X() {
101
72
  return L(" ");
102
73
  }
103
- function ve(e, t, r, n) {
74
+ function be(e, t, r, n) {
104
75
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
105
76
  }
106
77
  function A(e, t, r) {
107
78
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
108
79
  }
109
- function ur(e) {
80
+ function qt(e) {
110
81
  return Array.from(e.childNodes);
111
82
  }
112
- function G(e, t) {
83
+ function F(e, t) {
113
84
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
114
85
  t);
115
86
  }
116
- function it(e, t) {
117
- e.value = t == null ? "" : t;
87
+ function Ye(e, t) {
88
+ e.value = t ?? "";
118
89
  }
119
- function lr(e) {
90
+ function Yt(e) {
120
91
  const t = {};
121
92
  return e.childNodes.forEach(
122
93
  /** @param {Element} node */
@@ -125,245 +96,241 @@ function lr(e) {
125
96
  }
126
97
  ), t;
127
98
  }
128
- let fe;
129
- function ce(e) {
130
- fe = e;
99
+ let ce;
100
+ function he(e) {
101
+ ce = e;
131
102
  }
132
- function hr() {
133
- if (!fe) throw new Error("Function called outside component initialization");
134
- return fe;
103
+ function Kt() {
104
+ if (!ce) throw new Error("Function called outside component initialization");
105
+ return ce;
135
106
  }
136
- function cr(e) {
137
- hr().$$.on_mount.push(e);
107
+ function er(e) {
108
+ Kt().$$.on_mount.push(e);
138
109
  }
139
- const ee = [], Ue = [];
140
- let te = [];
141
- const ot = [], fr = /* @__PURE__ */ Promise.resolve();
142
- let De = !1;
143
- function dr() {
144
- De || (De = !0, fr.then(F));
110
+ const K = [], Le = [];
111
+ let ee = [];
112
+ const Ke = [], tr = /* @__PURE__ */ Promise.resolve();
113
+ let Re = !1;
114
+ function rr() {
115
+ Re || (Re = !0, tr.then(D));
145
116
  }
146
- function Fe(e) {
147
- te.push(e);
117
+ function $e(e) {
118
+ ee.push(e);
148
119
  }
149
- const Ie = /* @__PURE__ */ new Set();
150
- let Y = 0;
151
- function F() {
152
- if (Y !== 0)
120
+ const we = /* @__PURE__ */ new Set();
121
+ let q = 0;
122
+ function D() {
123
+ if (q !== 0)
153
124
  return;
154
- const e = fe;
125
+ const e = ce;
155
126
  do {
156
127
  try {
157
- for (; Y < ee.length; ) {
158
- const t = ee[Y];
159
- Y++, ce(t), mr(t.$$);
128
+ for (; q < K.length; ) {
129
+ const t = K[q];
130
+ q++, he(t), nr(t.$$);
160
131
  }
161
132
  } catch (t) {
162
- throw ee.length = 0, Y = 0, t;
133
+ throw K.length = 0, q = 0, t;
163
134
  }
164
- for (ce(null), ee.length = 0, Y = 0; Ue.length; ) Ue.pop()();
165
- for (let t = 0; t < te.length; t += 1) {
166
- const r = te[t];
167
- Ie.has(r) || (Ie.add(r), r());
135
+ for (he(null), K.length = 0, q = 0; Le.length; ) Le.pop()();
136
+ for (let t = 0; t < ee.length; t += 1) {
137
+ const r = ee[t];
138
+ we.has(r) || (we.add(r), r());
168
139
  }
169
- te.length = 0;
170
- } while (ee.length);
171
- for (; ot.length; )
172
- ot.pop()();
173
- De = !1, Ie.clear(), ce(e);
140
+ ee.length = 0;
141
+ } while (K.length);
142
+ for (; Ke.length; )
143
+ Ke.pop()();
144
+ Re = !1, we.clear(), he(e);
174
145
  }
175
- function mr(e) {
146
+ function nr(e) {
176
147
  if (e.fragment !== null) {
177
- e.update(), se(e.before_update);
148
+ e.update(), oe(e.before_update);
178
149
  const t = e.dirty;
179
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
150
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
180
151
  }
181
152
  }
182
- function pr(e) {
153
+ function ir(e) {
183
154
  const t = [], r = [];
184
- te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
155
+ ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
185
156
  }
186
- const br = /* @__PURE__ */ new Set();
187
- function gr(e, t) {
188
- e && e.i && (br.delete(e), e.i(t));
157
+ const or = /* @__PURE__ */ new Set();
158
+ function sr(e, t) {
159
+ e && e.i && (or.delete(e), e.i(t));
189
160
  }
190
- function vr(e, t, r) {
161
+ function ar(e, t, r) {
191
162
  const { fragment: n, after_update: i } = e.$$;
192
- n && n.m(t, r), Fe(() => {
193
- const o = e.$$.on_mount.map(Tt).filter(Qe);
194
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
195
- }), i.forEach(Fe);
163
+ n && n.m(t, r), $e(() => {
164
+ const o = e.$$.on_mount.map(vt).filter(We);
165
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
166
+ }), i.forEach($e);
196
167
  }
197
- function yr(e, t) {
168
+ function ur(e, t) {
198
169
  const r = e.$$;
199
- r.fragment !== null && (pr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
170
+ r.fragment !== null && (ir(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
200
171
  }
201
- function Er(e, t) {
202
- e.$$.dirty[0] === -1 && (ee.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
172
+ function lr(e, t) {
173
+ e.$$.dirty[0] === -1 && (K.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
174
  }
204
- function xr(e, t, r, n, i, o, s = null, a = [-1]) {
205
- const l = fe;
206
- ce(e);
175
+ function hr(e, t, r, n, i, o, a = null, s = [-1]) {
176
+ const h = ce;
177
+ he(e);
207
178
  const u = e.$$ = {
208
179
  fragment: null,
209
180
  ctx: [],
210
181
  // state
211
182
  props: o,
212
- update: U,
183
+ update: $,
213
184
  not_equal: i,
214
- bound: nt(),
185
+ bound: qe(),
215
186
  // lifecycle
216
187
  on_mount: [],
217
188
  on_destroy: [],
218
189
  on_disconnect: [],
219
190
  before_update: [],
220
191
  after_update: [],
221
- context: new Map(t.context || (l ? l.$$.context : [])),
192
+ context: new Map(t.context || (h ? h.$$.context : [])),
222
193
  // everything else
223
- callbacks: nt(),
224
- dirty: a,
194
+ callbacks: qe(),
195
+ dirty: s,
225
196
  skip_bound: !1,
226
- root: t.target || l.$$.root
197
+ root: t.target || h.$$.root
227
198
  };
228
- s && s(u.root);
229
- let h = !1;
199
+ a && a(u.root);
200
+ let l = !1;
230
201
  if (u.ctx = r(e, t.props || {}, (f, d, ...b) => {
231
202
  const v = b.length ? b[0] : d;
232
- return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && Er(e, f)), d;
233
- }), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
203
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && lr(e, f)), d;
204
+ }), u.update(), l = !0, oe(u.before_update), u.fragment = n(u.ctx), t.target) {
234
205
  if (t.hydrate) {
235
- const f = ur(t.target);
236
- u.fragment && u.fragment.l(f), f.forEach(j);
206
+ const f = qt(t.target);
207
+ u.fragment && u.fragment.l(f), f.forEach(k);
237
208
  } else
238
209
  u.fragment && u.fragment.c();
239
- t.intro && gr(e.$$.fragment), vr(e, t.target, t.anchor), F();
210
+ t.intro && sr(e.$$.fragment), ar(e, t.target, t.anchor), D();
240
211
  }
241
- ce(l);
242
- }
243
- let Bt;
244
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
245
- constructor(t, r, n) {
246
- super();
247
- /** The Svelte component constructor */
248
- $(this, "$$ctor");
249
- /** Slots */
250
- $(this, "$$s");
251
- /** The Svelte component instance */
252
- $(this, "$$c");
253
- /** Whether or not the custom element is connected */
254
- $(this, "$$cn", !1);
255
- /** Component props data */
256
- $(this, "$$d", {});
257
- /** `true` if currently in the process of reflecting component props back to attributes */
258
- $(this, "$$r", !1);
259
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
260
- $(this, "$$p_d", {});
261
- /** @type {Record<string, Function[]>} Event listeners */
262
- $(this, "$$l", {});
263
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
264
- $(this, "$$l_u", /* @__PURE__ */ new Map());
265
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
212
+ he(h);
213
+ }
214
+ let xt;
215
+ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
216
+ /** The Svelte component constructor */
217
+ $$ctor;
218
+ /** Slots */
219
+ $$s;
220
+ /** The Svelte component instance */
221
+ $$c;
222
+ /** Whether or not the custom element is connected */
223
+ $$cn = !1;
224
+ /** Component props data */
225
+ $$d = {};
226
+ /** `true` if currently in the process of reflecting component props back to attributes */
227
+ $$r = !1;
228
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
229
+ $$p_d = {};
230
+ /** @type {Record<string, Function[]>} Event listeners */
231
+ $$l = {};
232
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
233
+ $$l_u = /* @__PURE__ */ new Map();
234
+ constructor(e, t, r) {
235
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
266
236
  }
267
- addEventListener(t, r, n) {
268
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
269
- const i = this.$$c.$on(t, r);
270
- this.$$l_u.set(r, i);
237
+ addEventListener(e, t, r) {
238
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
239
+ const n = this.$$c.$on(e, t);
240
+ this.$$l_u.set(t, n);
271
241
  }
272
- super.addEventListener(t, r, n);
242
+ super.addEventListener(e, t, r);
273
243
  }
274
- removeEventListener(t, r, n) {
275
- if (super.removeEventListener(t, r, n), this.$$c) {
276
- const i = this.$$l_u.get(r);
277
- i && (i(), this.$$l_u.delete(r));
244
+ removeEventListener(e, t, r) {
245
+ if (super.removeEventListener(e, t, r), this.$$c) {
246
+ const n = this.$$l_u.get(t);
247
+ n && (n(), this.$$l_u.delete(t));
278
248
  }
279
249
  }
280
- connectedCallback() {
281
- return ge(this, null, function* () {
282
- if (this.$$cn = !0, !this.$$c) {
283
- let t = function(o) {
284
- return () => {
285
- let s;
286
- return {
287
- c: function() {
288
- s = M("slot"), o !== "default" && A(s, "name", o);
289
- },
290
- /**
291
- * @param {HTMLElement} target
292
- * @param {HTMLElement} [anchor]
293
- */
294
- m: function(u, h) {
295
- Z(u, s, h);
296
- },
297
- d: function(u) {
298
- u && j(s);
299
- }
300
- };
250
+ async connectedCallback() {
251
+ if (this.$$cn = !0, !this.$$c) {
252
+ let e = function(i) {
253
+ return () => {
254
+ let o;
255
+ return {
256
+ c: function() {
257
+ o = M("slot"), i !== "default" && A(o, "name", i);
258
+ },
259
+ /**
260
+ * @param {HTMLElement} target
261
+ * @param {HTMLElement} [anchor]
262
+ */
263
+ m: function(h, u) {
264
+ W(h, o, u);
265
+ },
266
+ d: function(h) {
267
+ h && k(o);
268
+ }
301
269
  };
302
270
  };
303
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
304
- return;
305
- const r = {}, n = lr(this);
306
- for (const o of this.$$s)
307
- o in n && (r[o] = [t(o)]);
308
- for (const o of this.attributes) {
309
- const s = this.$$g_p(o.name);
310
- s in this.$$d || (this.$$d[s] = Ee(s, o.value, this.$$p_d, "toProp"));
271
+ };
272
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
273
+ return;
274
+ const t = {}, r = Yt(this);
275
+ for (const i of this.$$s)
276
+ i in r && (t[i] = [e(i)]);
277
+ for (const i of this.attributes) {
278
+ const o = this.$$g_p(i.name);
279
+ o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
280
+ }
281
+ for (const i in this.$$p_d)
282
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
283
+ this.$$c = new this.$$ctor({
284
+ target: this.shadowRoot || this,
285
+ props: {
286
+ ...this.$$d,
287
+ $$slots: t,
288
+ $$scope: {
289
+ ctx: []
290
+ }
311
291
  }
312
- for (const o in this.$$p_d)
313
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
314
- this.$$c = new this.$$ctor({
315
- target: this.shadowRoot || this,
316
- props: rt(tt({}, this.$$d), {
317
- $$slots: r,
318
- $$scope: {
319
- ctx: []
320
- }
321
- })
322
- });
323
- const i = () => {
324
- this.$$r = !0;
325
- for (const o in this.$$p_d)
326
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
327
- const s = Ee(
328
- o,
329
- this.$$d[o],
330
- this.$$p_d,
331
- "toAttribute"
332
- );
333
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
334
- }
335
- this.$$r = !1;
336
- };
337
- this.$$c.$$.after_update.push(i), i();
338
- for (const o in this.$$l)
339
- for (const s of this.$$l[o]) {
340
- const a = this.$$c.$on(o, s);
341
- this.$$l_u.set(s, a);
292
+ });
293
+ const n = () => {
294
+ this.$$r = !0;
295
+ for (const i in this.$$p_d)
296
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
297
+ const o = ve(
298
+ i,
299
+ this.$$d[i],
300
+ this.$$p_d,
301
+ "toAttribute"
302
+ );
303
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
342
304
  }
343
- this.$$l = {};
344
- }
345
- });
305
+ this.$$r = !1;
306
+ };
307
+ this.$$c.$$.after_update.push(n), n();
308
+ for (const i in this.$$l)
309
+ for (const o of this.$$l[i]) {
310
+ const a = this.$$c.$on(i, o);
311
+ this.$$l_u.set(o, a);
312
+ }
313
+ this.$$l = {};
314
+ }
346
315
  }
347
316
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
348
317
  // and setting attributes through setAttribute etc, this is helpful
349
- attributeChangedCallback(t, r, n) {
350
- var i;
351
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
318
+ attributeChangedCallback(e, t, r) {
319
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
352
320
  }
353
321
  disconnectedCallback() {
354
322
  this.$$cn = !1, Promise.resolve().then(() => {
355
323
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
356
324
  });
357
325
  }
358
- $$g_p(t) {
326
+ $$g_p(e) {
359
327
  return Object.keys(this.$$p_d).find(
360
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
361
- ) || t;
328
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
329
+ ) || e;
362
330
  }
363
331
  });
364
- function Ee(e, t, r, n) {
365
- var o;
366
- const i = (o = r[e]) == null ? void 0 : o.type;
332
+ function ve(e, t, r, n) {
333
+ const i = r[e]?.type;
367
334
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
368
335
  return t;
369
336
  if (n === "toAttribute")
@@ -374,7 +341,7 @@ function Ee(e, t, r, n) {
374
341
  case "Boolean":
375
342
  return t ? "" : null;
376
343
  case "Number":
377
- return t == null ? null : t;
344
+ return t ?? null;
378
345
  default:
379
346
  return t;
380
347
  }
@@ -391,59 +358,55 @@ function Ee(e, t, r, n) {
391
358
  return t;
392
359
  }
393
360
  }
394
- function _r(e, t, r, n, i, o) {
395
- let s = class extends Bt {
361
+ function cr(e, t, r, n, i, o) {
362
+ let a = class extends xt {
396
363
  constructor() {
397
364
  super(e, r, i), this.$$p_d = t;
398
365
  }
399
366
  static get observedAttributes() {
400
367
  return Object.keys(t).map(
401
- (a) => (t[a].attribute || a).toLowerCase()
368
+ (s) => (t[s].attribute || s).toLowerCase()
402
369
  );
403
370
  }
404
371
  };
405
- return Object.keys(t).forEach((a) => {
406
- Object.defineProperty(s.prototype, a, {
372
+ return Object.keys(t).forEach((s) => {
373
+ Object.defineProperty(a.prototype, s, {
407
374
  get() {
408
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
375
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
409
376
  },
410
- set(l) {
411
- var u;
412
- l = Ee(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
377
+ set(h) {
378
+ h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
413
379
  }
414
380
  });
415
- }), n.forEach((a) => {
416
- Object.defineProperty(s.prototype, a, {
381
+ }), n.forEach((s) => {
382
+ Object.defineProperty(a.prototype, s, {
417
383
  get() {
418
- var l;
419
- return (l = this.$$c) == null ? void 0 : l[a];
384
+ return this.$$c?.[s];
420
385
  }
421
386
  });
422
387
  }), e.element = /** @type {any} */
423
- s, s;
424
- }
425
- class Sr {
426
- constructor() {
427
- /**
428
- * ### PRIVATE API
429
- *
430
- * Do not use, may change at any time
431
- *
432
- * @type {any}
433
- */
434
- $(this, "$$");
435
- /**
436
- * ### PRIVATE API
437
- *
438
- * Do not use, may change at any time
439
- *
440
- * @type {any}
441
- */
442
- $(this, "$$set");
443
- }
388
+ a, a;
389
+ }
390
+ class fr {
391
+ /**
392
+ * ### PRIVATE API
393
+ *
394
+ * Do not use, may change at any time
395
+ *
396
+ * @type {any}
397
+ */
398
+ $$ = void 0;
399
+ /**
400
+ * ### PRIVATE API
401
+ *
402
+ * Do not use, may change at any time
403
+ *
404
+ * @type {any}
405
+ */
406
+ $$set = void 0;
444
407
  /** @returns {void} */
445
408
  $destroy() {
446
- yr(this, 1), this.$destroy = U;
409
+ ur(this, 1), this.$destroy = $;
447
410
  }
448
411
  /**
449
412
  * @template {Extract<keyof Events, string>} K
@@ -452,8 +415,8 @@ class Sr {
452
415
  * @returns {() => void}
453
416
  */
454
417
  $on(t, r) {
455
- if (!Qe(r))
456
- return U;
418
+ if (!We(r))
419
+ return $;
457
420
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
458
421
  return n.push(r), () => {
459
422
  const i = n.indexOf(r);
@@ -465,159 +428,159 @@ class Sr {
465
428
  * @returns {void}
466
429
  */
467
430
  $set(t) {
468
- this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
431
+ this.$$set && !zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
469
432
  }
470
433
  }
471
- const Tr = "4";
472
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
473
- const K = [];
474
- function Hr(e, t) {
434
+ const dr = "4";
435
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
436
+ const Y = [];
437
+ function mr(e, t) {
475
438
  return {
476
- subscribe: He(e, t).subscribe
439
+ subscribe: Se(e, t).subscribe
477
440
  };
478
441
  }
479
- function He(e, t = U) {
442
+ function Se(e, t = $) {
480
443
  let r;
481
444
  const n = /* @__PURE__ */ new Set();
482
- function i(a) {
483
- if (Ht(e, a) && (e = a, r)) {
484
- const l = !K.length;
445
+ function i(s) {
446
+ if (yt(e, s) && (e = s, r)) {
447
+ const h = !Y.length;
485
448
  for (const u of n)
486
- u[1](), K.push(u, e);
487
- if (l) {
488
- for (let u = 0; u < K.length; u += 2)
489
- K[u][0](K[u + 1]);
490
- K.length = 0;
449
+ u[1](), Y.push(u, e);
450
+ if (h) {
451
+ for (let u = 0; u < Y.length; u += 2)
452
+ Y[u][0](Y[u + 1]);
453
+ Y.length = 0;
491
454
  }
492
455
  }
493
456
  }
494
- function o(a) {
495
- i(a(e));
457
+ function o(s) {
458
+ i(s(e));
496
459
  }
497
- function s(a, l = U) {
498
- const u = [a, l];
499
- return n.add(u), n.size === 1 && (r = t(i, o) || U), a(e), () => {
460
+ function a(s, h = $) {
461
+ const u = [s, h];
462
+ return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
500
463
  n.delete(u), n.size === 0 && r && (r(), r = null);
501
464
  };
502
465
  }
503
- return { set: i, update: o, subscribe: s };
466
+ return { set: i, update: o, subscribe: a };
504
467
  }
505
- function ae(e, t, r) {
468
+ function se(e, t, r) {
506
469
  const n = !Array.isArray(e), i = n ? [e] : e;
507
470
  if (!i.every(Boolean))
508
471
  throw new Error("derived() expects stores as input, got a falsy value");
509
472
  const o = t.length < 2;
510
- return Hr(r, (s, a) => {
511
- let l = !1;
473
+ return mr(r, (a, s) => {
474
+ let h = !1;
512
475
  const u = [];
513
- let h = 0, f = U;
476
+ let l = 0, f = $;
514
477
  const d = () => {
515
- if (h)
478
+ if (l)
516
479
  return;
517
480
  f();
518
- const v = t(n ? u[0] : u, s, a);
519
- o ? s(v) : f = Qe(v) ? v : U;
481
+ const v = t(n ? u[0] : u, a, s);
482
+ o ? a(v) : f = We(v) ? v : $;
520
483
  }, b = i.map(
521
- (v, _) => At(
484
+ (v, _) => Et(
522
485
  v,
523
486
  (S) => {
524
- u[_] = S, h &= ~(1 << _), l && d();
487
+ u[_] = S, l &= ~(1 << _), h && d();
525
488
  },
526
489
  () => {
527
- h |= 1 << _;
490
+ l |= 1 << _;
528
491
  }
529
492
  )
530
493
  );
531
- return l = !0, d(), function() {
532
- se(b), f(), l = !1;
494
+ return h = !0, d(), function() {
495
+ oe(b), f(), h = !1;
533
496
  };
534
497
  });
535
498
  }
536
- function Ar(e) {
499
+ function pr(e) {
537
500
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
501
  }
539
- var Br = function(t) {
540
- return wr(t) && !Pr(t);
502
+ var br = function(t) {
503
+ return gr(t) && !vr(t);
541
504
  };
542
- function wr(e) {
505
+ function gr(e) {
543
506
  return !!e && typeof e == "object";
544
507
  }
545
- function Pr(e) {
508
+ function vr(e) {
546
509
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || Nr(e);
510
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
548
511
  }
549
- var Cr = typeof Symbol == "function" && Symbol.for, Ir = Cr ? Symbol.for("react.element") : 60103;
550
- function Nr(e) {
551
- return e.$$typeof === Ir;
512
+ var yr = typeof Symbol == "function" && Symbol.for, Er = yr ? Symbol.for("react.element") : 60103;
513
+ function xr(e) {
514
+ return e.$$typeof === Er;
552
515
  }
553
- function Or(e) {
516
+ function _r(e) {
554
517
  return Array.isArray(e) ? [] : {};
555
518
  }
556
- function de(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? re(Or(e), e, t) : e;
519
+ function fe(e, t) {
520
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(_r(e), e, t) : e;
558
521
  }
559
- function Mr(e, t, r) {
522
+ function Sr(e, t, r) {
560
523
  return e.concat(t).map(function(n) {
561
- return de(n, r);
524
+ return fe(n, r);
562
525
  });
563
526
  }
564
- function Lr(e, t) {
527
+ function Tr(e, t) {
565
528
  if (!t.customMerge)
566
- return re;
529
+ return te;
567
530
  var r = t.customMerge(e);
568
- return typeof r == "function" ? r : re;
531
+ return typeof r == "function" ? r : te;
569
532
  }
570
- function Rr(e) {
533
+ function Hr(e) {
571
534
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
535
  return Object.propertyIsEnumerable.call(e, t);
573
536
  }) : [];
574
537
  }
575
- function st(e) {
576
- return Object.keys(e).concat(Rr(e));
538
+ function et(e) {
539
+ return Object.keys(e).concat(Hr(e));
577
540
  }
578
- function wt(e, t) {
541
+ function _t(e, t) {
579
542
  try {
580
543
  return t in e;
581
- } catch (r) {
544
+ } catch {
582
545
  return !1;
583
546
  }
584
547
  }
585
- function $r(e, t) {
586
- return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
548
+ function Ar(e, t) {
549
+ return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
550
  }
588
- function Ur(e, t, r) {
551
+ function Br(e, t, r) {
589
552
  var n = {};
590
- return r.isMergeableObject(e) && st(e).forEach(function(i) {
591
- n[i] = de(e[i], r);
592
- }), st(t).forEach(function(i) {
593
- $r(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Lr(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
553
+ return r.isMergeableObject(e) && et(e).forEach(function(i) {
554
+ n[i] = fe(e[i], r);
555
+ }), et(t).forEach(function(i) {
556
+ Ar(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
594
557
  }), n;
595
558
  }
596
- function re(e, t, r) {
597
- r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = de;
559
+ function te(e, t, r) {
560
+ r = r || {}, r.arrayMerge = r.arrayMerge || Sr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = fe;
598
561
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
- return o ? n ? r.arrayMerge(e, t, r) : Ur(e, t, r) : de(t, r);
562
+ return o ? n ? r.arrayMerge(e, t, r) : Br(e, t, r) : fe(t, r);
600
563
  }
601
- re.all = function(t, r) {
564
+ te.all = function(t, r) {
602
565
  if (!Array.isArray(t))
603
566
  throw new Error("first argument should be an array");
604
567
  return t.reduce(function(n, i) {
605
- return re(n, i, r);
568
+ return te(n, i, r);
606
569
  }, {});
607
570
  };
608
- var Dr = re, Fr = Dr;
609
- const Gr = /* @__PURE__ */ Ar(Fr);
610
- var Ge = function(e, t) {
611
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
571
+ var wr = te, Pr = wr;
572
+ const Cr = /* @__PURE__ */ pr(Pr);
573
+ var Ue = function(e, t) {
574
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
612
575
  r.__proto__ = n;
613
576
  } || function(r, n) {
614
577
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
615
- }, Ge(e, t);
578
+ }, Ue(e, t);
616
579
  };
617
- function Ae(e, t) {
580
+ function Te(e, t) {
618
581
  if (typeof t != "function" && t !== null)
619
582
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
620
- Ge(e, t);
583
+ Ue(e, t);
621
584
  function r() {
622
585
  this.constructor = e;
623
586
  }
@@ -632,7 +595,7 @@ var g = function() {
632
595
  return t;
633
596
  }, g.apply(this, arguments);
634
597
  };
635
- function kr(e, t) {
598
+ function Ir(e, t) {
636
599
  var r = {};
637
600
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
638
601
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -640,45 +603,45 @@ function kr(e, t) {
640
603
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
641
604
  return r;
642
605
  }
643
- function Ne(e, t, r) {
606
+ function Pe(e, t, r) {
644
607
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
645
608
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
646
609
  return e.concat(o || Array.prototype.slice.call(t));
647
610
  }
648
- function Oe(e, t) {
649
- var r = t && t.cache ? t.cache : Jr, n = t && t.serializer ? t.serializer : Wr, i = t && t.strategy ? t.strategy : Vr;
611
+ function Ce(e, t) {
612
+ var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Or;
650
613
  return i(e, {
651
614
  cache: r,
652
615
  serializer: n
653
616
  });
654
617
  }
655
- function jr(e) {
618
+ function Nr(e) {
656
619
  return e == null || typeof e == "number" || typeof e == "boolean";
657
620
  }
658
- function Pt(e, t, r, n) {
659
- var i = jr(n) ? n : r(n), o = t.get(i);
660
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
621
+ function St(e, t, r, n) {
622
+ var i = Nr(n) ? n : r(n), o = t.get(i);
623
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
661
624
  }
662
- function Ct(e, t, r) {
625
+ function Tt(e, t, r) {
663
626
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
664
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
627
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
665
628
  }
666
- function qe(e, t, r, n, i) {
629
+ function Ze(e, t, r, n, i) {
667
630
  return r.bind(t, e, n, i);
668
631
  }
669
- function Vr(e, t) {
670
- var r = e.length === 1 ? Pt : Ct;
671
- return qe(e, this, r, t.cache.create(), t.serializer);
632
+ function Or(e, t) {
633
+ var r = e.length === 1 ? St : Tt;
634
+ return Ze(e, this, r, t.cache.create(), t.serializer);
672
635
  }
673
- function Xr(e, t) {
674
- return qe(e, this, Ct, t.cache.create(), t.serializer);
636
+ function Mr(e, t) {
637
+ return Ze(e, this, Tt, t.cache.create(), t.serializer);
675
638
  }
676
- function zr(e, t) {
677
- return qe(e, this, Pt, t.cache.create(), t.serializer);
639
+ function Lr(e, t) {
640
+ return Ze(e, this, St, t.cache.create(), t.serializer);
678
641
  }
679
- var Wr = function() {
642
+ var Rr = function() {
680
643
  return JSON.stringify(arguments);
681
- }, Zr = (
644
+ }, $r = (
682
645
  /** @class */
683
646
  function() {
684
647
  function e() {
@@ -690,13 +653,13 @@ var Wr = function() {
690
653
  this.cache[t] = r;
691
654
  }, e;
692
655
  }()
693
- ), Jr = {
656
+ ), Ur = {
694
657
  create: function() {
695
- return new Zr();
658
+ return new $r();
696
659
  }
697
- }, Me = {
698
- variadic: Xr,
699
- monadic: zr
660
+ }, Ie = {
661
+ variadic: Mr,
662
+ monadic: Lr
700
663
  }, m;
701
664
  (function(e) {
702
665
  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";
@@ -705,47 +668,47 @@ var x;
705
668
  (function(e) {
706
669
  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";
707
670
  })(x || (x = {}));
708
- var ne;
671
+ var re;
709
672
  (function(e) {
710
673
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
711
- })(ne || (ne = {}));
712
- function at(e) {
674
+ })(re || (re = {}));
675
+ function tt(e) {
713
676
  return e.type === x.literal;
714
677
  }
715
- function Qr(e) {
678
+ function Dr(e) {
716
679
  return e.type === x.argument;
717
680
  }
718
- function It(e) {
681
+ function Ht(e) {
719
682
  return e.type === x.number;
720
683
  }
721
- function Nt(e) {
684
+ function At(e) {
722
685
  return e.type === x.date;
723
686
  }
724
- function Ot(e) {
687
+ function Bt(e) {
725
688
  return e.type === x.time;
726
689
  }
727
- function Mt(e) {
690
+ function wt(e) {
728
691
  return e.type === x.select;
729
692
  }
730
- function Lt(e) {
693
+ function Pt(e) {
731
694
  return e.type === x.plural;
732
695
  }
733
- function qr(e) {
696
+ function Fr(e) {
734
697
  return e.type === x.pound;
735
698
  }
736
- function Rt(e) {
699
+ function Ct(e) {
737
700
  return e.type === x.tag;
738
701
  }
739
- function $t(e) {
740
- return !!(e && typeof e == "object" && e.type === ne.number);
702
+ function It(e) {
703
+ return !!(e && typeof e == "object" && e.type === re.number);
741
704
  }
742
- function ke(e) {
743
- return !!(e && typeof e == "object" && e.type === ne.dateTime);
705
+ function De(e) {
706
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
744
707
  }
745
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
746
- function Kr(e) {
708
+ var Nt = /[ \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;
709
+ function kr(e) {
747
710
  var t = {};
748
- return e.replace(Yr, function(r) {
711
+ return e.replace(Gr, function(r) {
749
712
  var n = r.length;
750
713
  switch (r[0]) {
751
714
  case "G":
@@ -834,36 +797,36 @@ function Kr(e) {
834
797
  return "";
835
798
  }), t;
836
799
  }
837
- var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
838
- function tn(e) {
800
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
801
+ function Vr(e) {
839
802
  if (e.length === 0)
840
803
  throw new Error("Number skeleton cannot be empty");
841
- for (var t = e.split(en).filter(function(d) {
804
+ for (var t = e.split(jr).filter(function(d) {
842
805
  return d.length > 0;
843
806
  }), r = [], n = 0, i = t; n < i.length; n++) {
844
- var o = i[n], s = o.split("/");
845
- if (s.length === 0)
807
+ var o = i[n], a = o.split("/");
808
+ if (a.length === 0)
846
809
  throw new Error("Invalid number skeleton");
847
- for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
848
- var f = h[u];
810
+ for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
811
+ var f = l[u];
849
812
  if (f.length === 0)
850
813
  throw new Error("Invalid number skeleton");
851
814
  }
852
- r.push({ stem: a, options: l });
815
+ r.push({ stem: s, options: h });
853
816
  }
854
817
  return r;
855
818
  }
856
- function rn(e) {
819
+ function Xr(e) {
857
820
  return e.replace(/^(.*?)-/, "");
858
821
  }
859
- var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Dt = /^(@+)?(\+|#+)?[rs]?$/g, nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ft = /^(0+)$/;
860
- function lt(e) {
822
+ var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ot = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
823
+ function nt(e) {
861
824
  var t = {};
862
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Dt, function(r, n, i) {
825
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ot, function(r, n, i) {
863
826
  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)), "";
864
827
  }), t;
865
828
  }
866
- function Gt(e) {
829
+ function Lt(e) {
867
830
  switch (e) {
868
831
  case "sign-auto":
869
832
  return {
@@ -903,7 +866,7 @@ function Gt(e) {
903
866
  };
904
867
  }
905
868
  }
906
- function on(e) {
869
+ function Wr(e) {
907
870
  var t;
908
871
  if (e[0] === "E" && e[1] === "E" ? (t = {
909
872
  notation: "engineering"
@@ -911,17 +874,17 @@ function on(e) {
911
874
  notation: "scientific"
912
875
  }, e = e.slice(1)), t) {
913
876
  var r = e.slice(0, 2);
914
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ft.test(e))
877
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
915
878
  throw new Error("Malformed concise eng/scientific notation");
916
879
  t.minimumIntegerDigits = e.length;
917
880
  }
918
881
  return t;
919
882
  }
920
- function ht(e) {
921
- var t = {}, r = Gt(e);
883
+ function it(e) {
884
+ var t = {}, r = Lt(e);
922
885
  return r || t;
923
886
  }
924
- function sn(e) {
887
+ function Zr(e) {
925
888
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
926
889
  var i = n[r];
927
890
  switch (i.stem) {
@@ -945,7 +908,7 @@ function sn(e) {
945
908
  continue;
946
909
  case "measure-unit":
947
910
  case "unit":
948
- t.style = "unit", t.unit = rn(i.options[0]);
911
+ t.style = "unit", t.unit = Xr(i.options[0]);
949
912
  continue;
950
913
  case "compact-short":
951
914
  case "K":
@@ -956,13 +919,13 @@ function sn(e) {
956
919
  t.notation = "compact", t.compactDisplay = "long";
957
920
  continue;
958
921
  case "scientific":
959
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
960
- return g(g({}, l), ht(u));
922
+ t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
923
+ return g(g({}, h), it(u));
961
924
  }, {}));
962
925
  continue;
963
926
  case "engineering":
964
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
965
- return g(g({}, l), ht(u));
927
+ t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
928
+ return g(g({}, h), it(u));
966
929
  }, {}));
967
930
  continue;
968
931
  case "notation-simple":
@@ -1007,9 +970,9 @@ function sn(e) {
1007
970
  case "integer-width":
1008
971
  if (i.options.length > 1)
1009
972
  throw new RangeError("integer-width stems only accept a single optional option");
1010
- i.options[0].replace(nn, function(l, u, h, f, d, b) {
973
+ i.options[0].replace(zr, function(h, u, l, f, d, b) {
1011
974
  if (u)
1012
- t.minimumIntegerDigits = h.length;
975
+ t.minimumIntegerDigits = l.length;
1013
976
  else {
1014
977
  if (f && d)
1015
978
  throw new Error("We currently do not support maximum integer digits");
@@ -1020,32 +983,32 @@ function sn(e) {
1020
983
  });
1021
984
  continue;
1022
985
  }
1023
- if (Ft.test(i.stem)) {
986
+ if (Mt.test(i.stem)) {
1024
987
  t.minimumIntegerDigits = i.stem.length;
1025
988
  continue;
1026
989
  }
1027
- if (ut.test(i.stem)) {
990
+ if (rt.test(i.stem)) {
1028
991
  if (i.options.length > 1)
1029
992
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1030
- i.stem.replace(ut, function(l, u, h, f, d, b) {
1031
- return h === "*" ? 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), "";
993
+ i.stem.replace(rt, function(h, u, l, f, d, b) {
994
+ 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), "";
1032
995
  });
1033
996
  var o = i.options[0];
1034
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), lt(o)));
997
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), nt(o)));
1035
998
  continue;
1036
999
  }
1037
- if (Dt.test(i.stem)) {
1038
- t = g(g({}, t), lt(i.stem));
1000
+ if (Ot.test(i.stem)) {
1001
+ t = g(g({}, t), nt(i.stem));
1039
1002
  continue;
1040
1003
  }
1041
- var s = Gt(i.stem);
1042
- s && (t = g(g({}, t), s));
1043
- var a = on(i.stem);
1004
+ var a = Lt(i.stem);
1044
1005
  a && (t = g(g({}, t), a));
1006
+ var s = Wr(i.stem);
1007
+ s && (t = g(g({}, t), s));
1045
1008
  }
1046
1009
  return t;
1047
1010
  }
1048
- var ye = {
1011
+ var ge = {
1049
1012
  "001": [
1050
1013
  "H",
1051
1014
  "h"
@@ -2460,22 +2423,22 @@ var ye = {
2460
2423
  "h"
2461
2424
  ]
2462
2425
  };
2463
- function an(e, t) {
2426
+ function Jr(e, t) {
2464
2427
  for (var r = "", n = 0; n < e.length; n++) {
2465
2428
  var i = e.charAt(n);
2466
2429
  if (i === "j") {
2467
2430
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2468
2431
  o++, n++;
2469
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = un(t);
2470
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2471
- r += l;
2472
- for (; s-- > 0; )
2432
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
2433
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2434
+ r += h;
2435
+ for (; a-- > 0; )
2473
2436
  r = u + r;
2474
2437
  } else i === "J" ? r += "H" : r += i;
2475
2438
  }
2476
2439
  return r;
2477
2440
  }
2478
- function un(e) {
2441
+ function Qr(e) {
2479
2442
  var t = e.hourCycle;
2480
2443
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2481
2444
  e.hourCycles && // @ts-ignore
@@ -2494,23 +2457,23 @@ function un(e) {
2494
2457
  }
2495
2458
  var r = e.language, n;
2496
2459
  r !== "root" && (n = e.maximize().region);
2497
- var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
2460
+ var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2498
2461
  return i[0];
2499
2462
  }
2500
- var Le, ln = new RegExp("^".concat(Ut.source, "*")), hn = new RegExp("".concat(Ut.source, "*$"));
2463
+ var Ne, qr = new RegExp("^".concat(Nt.source, "*")), Yr = new RegExp("".concat(Nt.source, "*$"));
2501
2464
  function p(e, t) {
2502
2465
  return { start: e, end: t };
2503
2466
  }
2504
- var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), fn = !!String.fromCodePoint, dn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, vn = gn ? Number.isSafeInteger : function(e) {
2467
+ 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) {
2505
2468
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2506
- }, je = !0;
2469
+ }, Fe = !0;
2507
2470
  try {
2508
- var yn = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2509
- je = ((Le = yn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
2510
- } catch (e) {
2511
- je = !1;
2471
+ var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2472
+ Fe = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2473
+ } catch {
2474
+ Fe = !1;
2512
2475
  }
2513
- var ct = cn ? (
2476
+ var ot = Kr ? (
2514
2477
  // Native
2515
2478
  function(t, r, n) {
2516
2479
  return t.startsWith(r, n);
@@ -2520,31 +2483,31 @@ var ct = cn ? (
2520
2483
  function(t, r, n) {
2521
2484
  return t.slice(n, n + r.length) === r;
2522
2485
  }
2523
- ), Ve = fn ? String.fromCodePoint : (
2486
+ ), Ge = en ? String.fromCodePoint : (
2524
2487
  // IE11
2525
2488
  function() {
2526
2489
  for (var t = [], r = 0; r < arguments.length; r++)
2527
2490
  t[r] = arguments[r];
2528
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2529
- if (s = t[o++], s > 1114111)
2530
- throw RangeError(s + " is not a valid code point");
2531
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2491
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
2492
+ if (a = t[o++], a > 1114111)
2493
+ throw RangeError(a + " is not a valid code point");
2494
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2532
2495
  }
2533
2496
  return n;
2534
2497
  }
2535
- ), ft = (
2498
+ ), st = (
2536
2499
  // native
2537
- dn ? Object.fromEntries : (
2500
+ tn ? Object.fromEntries : (
2538
2501
  // Ponyfill
2539
2502
  function(t) {
2540
2503
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2541
- var o = i[n], s = o[0], a = o[1];
2542
- r[s] = a;
2504
+ var o = i[n], a = o[0], s = o[1];
2505
+ r[a] = s;
2543
2506
  }
2544
2507
  return r;
2545
2508
  }
2546
2509
  )
2547
- ), kt = mn ? (
2510
+ ), Rt = rn ? (
2548
2511
  // Native
2549
2512
  function(t, r) {
2550
2513
  return t.codePointAt(r);
@@ -2558,7 +2521,7 @@ var ct = cn ? (
2558
2521
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2559
2522
  }
2560
2523
  }
2561
- ), En = pn ? (
2524
+ ), ln = nn ? (
2562
2525
  // Native
2563
2526
  function(t) {
2564
2527
  return t.trimStart();
@@ -2566,9 +2529,9 @@ var ct = cn ? (
2566
2529
  ) : (
2567
2530
  // Ponyfill
2568
2531
  function(t) {
2569
- return t.replace(ln, "");
2532
+ return t.replace(qr, "");
2570
2533
  }
2571
- ), xn = bn ? (
2534
+ ), hn = on ? (
2572
2535
  // Native
2573
2536
  function(t) {
2574
2537
  return t.trimEnd();
@@ -2576,32 +2539,32 @@ var ct = cn ? (
2576
2539
  ) : (
2577
2540
  // Ponyfill
2578
2541
  function(t) {
2579
- return t.replace(hn, "");
2542
+ return t.replace(Yr, "");
2580
2543
  }
2581
2544
  );
2582
- function jt(e, t) {
2545
+ function $t(e, t) {
2583
2546
  return new RegExp(e, t);
2584
2547
  }
2585
- var Xe;
2586
- if (je) {
2587
- var dt = jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2588
- Xe = function(t, r) {
2548
+ var ke;
2549
+ if (Fe) {
2550
+ var at = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2551
+ ke = function(t, r) {
2589
2552
  var n;
2590
- dt.lastIndex = r;
2591
- var i = dt.exec(t);
2553
+ at.lastIndex = r;
2554
+ var i = at.exec(t);
2592
2555
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2593
2556
  };
2594
2557
  } else
2595
- Xe = function(t, r) {
2558
+ ke = function(t, r) {
2596
2559
  for (var n = []; ; ) {
2597
- var i = kt(t, r);
2598
- if (i === void 0 || Vt(i) || Hn(i))
2560
+ var i = Rt(t, r);
2561
+ if (i === void 0 || Ut(i) || mn(i))
2599
2562
  break;
2600
2563
  n.push(i), r += i >= 65536 ? 2 : 1;
2601
2564
  }
2602
- return Ve.apply(void 0, n);
2565
+ return Ge.apply(void 0, n);
2603
2566
  };
2604
- var _n = (
2567
+ var cn = (
2605
2568
  /** @class */
2606
2569
  function() {
2607
2570
  function e(t, r) {
@@ -2615,33 +2578,33 @@ var _n = (
2615
2578
  for (var i = []; !this.isEOF(); ) {
2616
2579
  var o = this.char();
2617
2580
  if (o === 123) {
2618
- var s = this.parseArgument(t, n);
2619
- if (s.err)
2620
- return s;
2621
- i.push(s.val);
2581
+ var a = this.parseArgument(t, n);
2582
+ if (a.err)
2583
+ return a;
2584
+ i.push(a.val);
2622
2585
  } else {
2623
2586
  if (o === 125 && t > 0)
2624
2587
  break;
2625
2588
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2626
- var a = this.clonePosition();
2589
+ var s = this.clonePosition();
2627
2590
  this.bump(), i.push({
2628
2591
  type: x.pound,
2629
- location: p(a, this.clonePosition())
2592
+ location: p(s, this.clonePosition())
2630
2593
  });
2631
2594
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2632
2595
  if (n)
2633
2596
  break;
2634
2597
  return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2635
- } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
2636
- var s = this.parseTag(t, r);
2637
- if (s.err)
2638
- return s;
2639
- i.push(s.val);
2598
+ } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2599
+ var a = this.parseTag(t, r);
2600
+ if (a.err)
2601
+ return a;
2602
+ i.push(a.val);
2640
2603
  } else {
2641
- var s = this.parseLiteral(t, r);
2642
- if (s.err)
2643
- return s;
2644
- i.push(s.val);
2604
+ var a = this.parseLiteral(t, r);
2605
+ if (a.err)
2606
+ return a;
2607
+ i.push(a.val);
2645
2608
  }
2646
2609
  }
2647
2610
  }
@@ -2663,27 +2626,27 @@ var _n = (
2663
2626
  var o = this.parseMessage(t + 1, r, !0);
2664
2627
  if (o.err)
2665
2628
  return o;
2666
- var s = o.val, a = this.clonePosition();
2629
+ var a = o.val, s = this.clonePosition();
2667
2630
  if (this.bumpIf("</")) {
2668
- if (this.isEOF() || !ze(this.char()))
2669
- return this.error(m.INVALID_TAG, p(a, this.clonePosition()));
2670
- var l = this.clonePosition(), u = this.parseTagName();
2671
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2631
+ if (this.isEOF() || !je(this.char()))
2632
+ return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
2633
+ var h = this.clonePosition(), u = this.parseTagName();
2634
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2672
2635
  val: {
2673
2636
  type: x.tag,
2674
2637
  value: i,
2675
- children: s,
2638
+ children: a,
2676
2639
  location: p(n, this.clonePosition())
2677
2640
  },
2678
2641
  err: null
2679
- } : this.error(m.INVALID_TAG, p(a, this.clonePosition())));
2642
+ } : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
2680
2643
  } else
2681
2644
  return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2682
2645
  } else
2683
2646
  return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2684
2647
  }, e.prototype.parseTagName = function() {
2685
2648
  var t = this.offset();
2686
- for (this.bump(); !this.isEOF() && Tn(this.char()); )
2649
+ for (this.bump(); !this.isEOF() && dn(this.char()); )
2687
2650
  this.bump();
2688
2651
  return this.message.slice(t, this.offset());
2689
2652
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2693,26 +2656,26 @@ var _n = (
2693
2656
  i += o;
2694
2657
  continue;
2695
2658
  }
2696
- var s = this.tryParseUnquoted(t, r);
2697
- if (s) {
2698
- i += s;
2699
- continue;
2700
- }
2701
- var a = this.tryParseLeftAngleBracket();
2659
+ var a = this.tryParseUnquoted(t, r);
2702
2660
  if (a) {
2703
2661
  i += a;
2704
2662
  continue;
2705
2663
  }
2664
+ var s = this.tryParseLeftAngleBracket();
2665
+ if (s) {
2666
+ i += s;
2667
+ continue;
2668
+ }
2706
2669
  break;
2707
2670
  }
2708
- var l = p(n, this.clonePosition());
2671
+ var h = p(n, this.clonePosition());
2709
2672
  return {
2710
- val: { type: x.literal, value: i, location: l },
2673
+ val: { type: x.literal, value: i, location: h },
2711
2674
  err: null
2712
2675
  };
2713
2676
  }, e.prototype.tryParseLeftAngleBracket = function() {
2714
2677
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2715
- !Sn(this.peek() || 0)) ? (this.bump(), "<") : null;
2678
+ !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2716
2679
  }, e.prototype.tryParseQuote = function(t) {
2717
2680
  if (this.isEOF() || this.char() !== 39)
2718
2681
  return null;
@@ -2746,12 +2709,12 @@ var _n = (
2746
2709
  r.push(n);
2747
2710
  this.bump();
2748
2711
  }
2749
- return Ve.apply(void 0, r);
2712
+ return Ge.apply(void 0, r);
2750
2713
  }, e.prototype.tryParseUnquoted = function(t, r) {
2751
2714
  if (this.isEOF())
2752
2715
  return null;
2753
2716
  var n = this.char();
2754
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
2717
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2755
2718
  }, e.prototype.parseArgument = function(t, r) {
2756
2719
  var n = this.clonePosition();
2757
2720
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2780,15 +2743,15 @@ var _n = (
2780
2743
  return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2781
2744
  }
2782
2745
  }, e.prototype.parseIdentifierIfPossible = function() {
2783
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
2746
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2784
2747
  this.bumpTo(i);
2785
- var o = this.clonePosition(), s = p(t, o);
2786
- return { value: n, location: s };
2748
+ var o = this.clonePosition(), a = p(t, o);
2749
+ return { value: n, location: a };
2787
2750
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2788
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2789
- switch (a) {
2751
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2752
+ switch (s) {
2790
2753
  case "":
2791
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(s, l));
2754
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
2792
2755
  case "number":
2793
2756
  case "date":
2794
2757
  case "time": {
@@ -2796,22 +2759,22 @@ var _n = (
2796
2759
  var u = null;
2797
2760
  if (this.bumpIf(",")) {
2798
2761
  this.bumpSpace();
2799
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2762
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2800
2763
  if (f.err)
2801
2764
  return f;
2802
- var d = xn(f.val);
2765
+ var d = hn(f.val);
2803
2766
  if (d.length === 0)
2804
2767
  return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2805
- var b = p(h, this.clonePosition());
2768
+ var b = p(l, this.clonePosition());
2806
2769
  u = { style: d, styleLocation: b };
2807
2770
  }
2808
2771
  var v = this.tryParseArgumentClose(i);
2809
2772
  if (v.err)
2810
2773
  return v;
2811
2774
  var _ = p(i, this.clonePosition());
2812
- if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
2813
- var S = En(u.style.slice(2));
2814
- if (a === "number") {
2775
+ if (u && ot(u?.style, "::", 0)) {
2776
+ var S = ln(u.style.slice(2));
2777
+ if (s === "number") {
2815
2778
  var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2816
2779
  return f.err ? f : {
2817
2780
  val: { type: x.number, value: n, location: _, style: f.val },
@@ -2821,13 +2784,13 @@ var _n = (
2821
2784
  if (S.length === 0)
2822
2785
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2823
2786
  var R = S;
2824
- this.locale && (R = an(S, this.locale));
2787
+ this.locale && (R = Jr(S, this.locale));
2825
2788
  var d = {
2826
- type: ne.dateTime,
2789
+ type: re.dateTime,
2827
2790
  pattern: R,
2828
2791
  location: u.styleLocation,
2829
- parsedOptions: this.shouldParseSkeletons ? Kr(R) : {}
2830
- }, N = a === "date" ? x.date : x.time;
2792
+ parsedOptions: this.shouldParseSkeletons ? kr(R) : {}
2793
+ }, N = s === "date" ? x.date : x.time;
2831
2794
  return {
2832
2795
  val: { type: N, value: n, location: _, style: d },
2833
2796
  err: null
@@ -2836,10 +2799,10 @@ var _n = (
2836
2799
  }
2837
2800
  return {
2838
2801
  val: {
2839
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2802
+ type: s === "number" ? x.number : s === "date" ? x.date : x.time,
2840
2803
  value: n,
2841
2804
  location: _,
2842
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2805
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2843
2806
  },
2844
2807
  err: null
2845
2808
  };
@@ -2852,7 +2815,7 @@ var _n = (
2852
2815
  return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2853
2816
  this.bumpSpace();
2854
2817
  var H = this.parseIdentifierIfPossible(), I = 0;
2855
- if (a !== "select" && H.value === "offset") {
2818
+ if (s !== "select" && H.value === "offset") {
2856
2819
  if (!this.bumpIf(":"))
2857
2820
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2858
2821
  this.bumpSpace();
@@ -2861,35 +2824,35 @@ var _n = (
2861
2824
  return f;
2862
2825
  this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
2863
2826
  }
2864
- var D = this.tryParsePluralOrSelectOptions(t, a, r, H);
2865
- if (D.err)
2866
- return D;
2827
+ var U = this.tryParsePluralOrSelectOptions(t, s, r, H);
2828
+ if (U.err)
2829
+ return U;
2867
2830
  var v = this.tryParseArgumentClose(i);
2868
2831
  if (v.err)
2869
2832
  return v;
2870
- var V = p(i, this.clonePosition());
2871
- return a === "select" ? {
2833
+ var j = p(i, this.clonePosition());
2834
+ return s === "select" ? {
2872
2835
  val: {
2873
2836
  type: x.select,
2874
2837
  value: n,
2875
- options: ft(D.val),
2876
- location: V
2838
+ options: st(U.val),
2839
+ location: j
2877
2840
  },
2878
2841
  err: null
2879
2842
  } : {
2880
2843
  val: {
2881
2844
  type: x.plural,
2882
2845
  value: n,
2883
- options: ft(D.val),
2846
+ options: st(U.val),
2884
2847
  offset: I,
2885
- pluralType: a === "plural" ? "cardinal" : "ordinal",
2886
- location: V
2848
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
2849
+ location: j
2887
2850
  },
2888
2851
  err: null
2889
2852
  };
2890
2853
  }
2891
2854
  default:
2892
- return this.error(m.INVALID_ARGUMENT_TYPE, p(s, l));
2855
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
2893
2856
  }
2894
2857
  }, e.prototype.tryParseArgumentClose = function(t) {
2895
2858
  return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2931,34 +2894,34 @@ var _n = (
2931
2894
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2932
2895
  var n = [];
2933
2896
  try {
2934
- n = tn(t);
2935
- } catch (i) {
2897
+ n = Vr(t);
2898
+ } catch {
2936
2899
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2937
2900
  }
2938
2901
  return {
2939
2902
  val: {
2940
- type: ne.number,
2903
+ type: re.number,
2941
2904
  tokens: n,
2942
2905
  location: r,
2943
- parsedOptions: this.shouldParseSkeletons ? sn(n) : {}
2906
+ parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2944
2907
  },
2945
2908
  err: null
2946
2909
  };
2947
2910
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2948
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
2911
+ for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2949
2912
  if (u.length === 0) {
2950
2913
  var f = this.clonePosition();
2951
2914
  if (r !== "select" && this.bumpIf("=")) {
2952
2915
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2953
2916
  if (d.err)
2954
2917
  return d;
2955
- h = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2918
+ l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2956
2919
  } else
2957
2920
  break;
2958
2921
  }
2959
- if (l.has(u))
2960
- return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2961
- u === "other" && (s = !0), this.bumpSpace();
2922
+ if (h.has(u))
2923
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2924
+ u === "other" && (a = !0), this.bumpSpace();
2962
2925
  var b = this.clonePosition();
2963
2926
  if (!this.bumpIf("{"))
2964
2927
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
@@ -2968,27 +2931,27 @@ var _n = (
2968
2931
  var _ = this.tryParseArgumentClose(b);
2969
2932
  if (_.err)
2970
2933
  return _;
2971
- a.push([
2934
+ s.push([
2972
2935
  u,
2973
2936
  {
2974
2937
  value: v.val,
2975
2938
  location: p(b, this.clonePosition())
2976
2939
  }
2977
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
2940
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2978
2941
  }
2979
- return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2942
+ 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 };
2980
2943
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2981
2944
  var n = 1, i = this.clonePosition();
2982
2945
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2983
- for (var o = !1, s = 0; !this.isEOF(); ) {
2984
- var a = this.char();
2985
- if (a >= 48 && a <= 57)
2986
- o = !0, s = s * 10 + (a - 48), this.bump();
2946
+ for (var o = !1, a = 0; !this.isEOF(); ) {
2947
+ var s = this.char();
2948
+ if (s >= 48 && s <= 57)
2949
+ o = !0, a = a * 10 + (s - 48), this.bump();
2987
2950
  else
2988
2951
  break;
2989
2952
  }
2990
- var l = p(i, this.clonePosition());
2991
- return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2953
+ var h = p(i, this.clonePosition());
2954
+ return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2992
2955
  }, e.prototype.offset = function() {
2993
2956
  return this.position.offset;
2994
2957
  }, e.prototype.isEOF = function() {
@@ -3003,7 +2966,7 @@ var _n = (
3003
2966
  var t = this.position.offset;
3004
2967
  if (t >= this.message.length)
3005
2968
  throw Error("out of bound");
3006
- var r = kt(this.message, t);
2969
+ var r = Rt(this.message, t);
3007
2970
  if (r === void 0)
3008
2971
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3009
2972
  return r;
@@ -3022,7 +2985,7 @@ var _n = (
3022
2985
  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);
3023
2986
  }
3024
2987
  }, e.prototype.bumpIf = function(t) {
3025
- if (ct(this.message, t, this.offset())) {
2988
+ if (ot(this.message, t, this.offset())) {
3026
2989
  for (var r = 0; r < t.length; r++)
3027
2990
  this.bump();
3028
2991
  return !0;
@@ -3044,56 +3007,56 @@ var _n = (
3044
3007
  break;
3045
3008
  }
3046
3009
  }, e.prototype.bumpSpace = function() {
3047
- for (; !this.isEOF() && Vt(this.char()); )
3010
+ for (; !this.isEOF() && Ut(this.char()); )
3048
3011
  this.bump();
3049
3012
  }, e.prototype.peek = function() {
3050
3013
  if (this.isEOF())
3051
3014
  return null;
3052
3015
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3053
- return n != null ? n : null;
3016
+ return n ?? null;
3054
3017
  }, e;
3055
3018
  }()
3056
3019
  );
3057
- function ze(e) {
3020
+ function je(e) {
3058
3021
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3059
3022
  }
3060
- function Sn(e) {
3061
- return ze(e) || e === 47;
3023
+ function fn(e) {
3024
+ return je(e) || e === 47;
3062
3025
  }
3063
- function Tn(e) {
3026
+ function dn(e) {
3064
3027
  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;
3065
3028
  }
3066
- function Vt(e) {
3029
+ function Ut(e) {
3067
3030
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3068
3031
  }
3069
- function Hn(e) {
3032
+ function mn(e) {
3070
3033
  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;
3071
3034
  }
3072
- function We(e) {
3035
+ function Ve(e) {
3073
3036
  e.forEach(function(t) {
3074
- if (delete t.location, Mt(t) || Lt(t))
3037
+ if (delete t.location, wt(t) || Pt(t))
3075
3038
  for (var r in t.options)
3076
- delete t.options[r].location, We(t.options[r].value);
3077
- else It(t) && $t(t.style) || (Nt(t) || Ot(t)) && ke(t.style) ? delete t.style.location : Rt(t) && We(t.children);
3039
+ delete t.options[r].location, Ve(t.options[r].value);
3040
+ else Ht(t) && It(t.style) || (At(t) || Bt(t)) && De(t.style) ? delete t.style.location : Ct(t) && Ve(t.children);
3078
3041
  });
3079
3042
  }
3080
- function An(e, t) {
3043
+ function pn(e, t) {
3081
3044
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3082
- var r = new _n(e, t).parse();
3045
+ var r = new cn(e, t).parse();
3083
3046
  if (r.err) {
3084
3047
  var n = SyntaxError(m[r.err.kind]);
3085
3048
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3086
3049
  }
3087
- return t != null && t.captureLocation || We(r.val), r.val;
3050
+ return t?.captureLocation || Ve(r.val), r.val;
3088
3051
  }
3089
- var ie;
3052
+ var ne;
3090
3053
  (function(e) {
3091
3054
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3092
- })(ie || (ie = {}));
3093
- var Be = (
3055
+ })(ne || (ne = {}));
3056
+ var He = (
3094
3057
  /** @class */
3095
3058
  function(e) {
3096
- Ae(t, e);
3059
+ Te(t, e);
3097
3060
  function t(r, n, i) {
3098
3061
  var o = e.call(this, r) || this;
3099
3062
  return o.code = n, o.originalMessage = i, o;
@@ -3102,155 +3065,155 @@ var Be = (
3102
3065
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3103
3066
  }, t;
3104
3067
  }(Error)
3105
- ), mt = (
3068
+ ), ut = (
3106
3069
  /** @class */
3107
3070
  function(e) {
3108
- Ae(t, e);
3071
+ Te(t, e);
3109
3072
  function t(r, n, i, o) {
3110
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, o) || this;
3073
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3111
3074
  }
3112
3075
  return t;
3113
- }(Be)
3114
- ), Bn = (
3076
+ }(He)
3077
+ ), bn = (
3115
3078
  /** @class */
3116
3079
  function(e) {
3117
- Ae(t, e);
3080
+ Te(t, e);
3118
3081
  function t(r, n, i) {
3119
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3082
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3120
3083
  }
3121
3084
  return t;
3122
- }(Be)
3123
- ), wn = (
3085
+ }(He)
3086
+ ), gn = (
3124
3087
  /** @class */
3125
3088
  function(e) {
3126
- Ae(t, e);
3089
+ Te(t, e);
3127
3090
  function t(r, n) {
3128
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3091
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3129
3092
  }
3130
3093
  return t;
3131
- }(Be)
3094
+ }(He)
3132
3095
  ), C;
3133
3096
  (function(e) {
3134
3097
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3135
3098
  })(C || (C = {}));
3136
- function Pn(e) {
3099
+ function vn(e) {
3137
3100
  return e.length < 2 ? e : e.reduce(function(t, r) {
3138
3101
  var n = t[t.length - 1];
3139
3102
  return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3140
3103
  }, []);
3141
3104
  }
3142
- function Cn(e) {
3105
+ function yn(e) {
3143
3106
  return typeof e == "function";
3144
3107
  }
3145
- function xe(e, t, r, n, i, o, s) {
3146
- if (e.length === 1 && at(e[0]))
3108
+ function ye(e, t, r, n, i, o, a) {
3109
+ if (e.length === 1 && tt(e[0]))
3147
3110
  return [
3148
3111
  {
3149
3112
  type: C.literal,
3150
3113
  value: e[0].value
3151
3114
  }
3152
3115
  ];
3153
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3154
- var h = u[l];
3155
- if (at(h)) {
3156
- a.push({
3116
+ for (var s = [], h = 0, u = e; h < u.length; h++) {
3117
+ var l = u[h];
3118
+ if (tt(l)) {
3119
+ s.push({
3157
3120
  type: C.literal,
3158
- value: h.value
3121
+ value: l.value
3159
3122
  });
3160
3123
  continue;
3161
3124
  }
3162
- if (qr(h)) {
3163
- typeof o == "number" && a.push({
3125
+ if (Fr(l)) {
3126
+ typeof o == "number" && s.push({
3164
3127
  type: C.literal,
3165
3128
  value: r.getNumberFormat(t).format(o)
3166
3129
  });
3167
3130
  continue;
3168
3131
  }
3169
- var f = h.value;
3132
+ var f = l.value;
3170
3133
  if (!(i && f in i))
3171
- throw new wn(f, s);
3134
+ throw new gn(f, a);
3172
3135
  var d = i[f];
3173
- if (Qr(h)) {
3174
- (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3136
+ if (Dr(l)) {
3137
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3175
3138
  type: typeof d == "string" ? C.literal : C.object,
3176
3139
  value: d
3177
3140
  });
3178
3141
  continue;
3179
3142
  }
3180
- if (Nt(h)) {
3181
- var b = typeof h.style == "string" ? n.date[h.style] : ke(h.style) ? h.style.parsedOptions : void 0;
3182
- a.push({
3143
+ if (At(l)) {
3144
+ var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3145
+ s.push({
3183
3146
  type: C.literal,
3184
3147
  value: r.getDateTimeFormat(t, b).format(d)
3185
3148
  });
3186
3149
  continue;
3187
3150
  }
3188
- if (Ot(h)) {
3189
- var b = typeof h.style == "string" ? n.time[h.style] : ke(h.style) ? h.style.parsedOptions : n.time.medium;
3190
- a.push({
3151
+ if (Bt(l)) {
3152
+ var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3153
+ s.push({
3191
3154
  type: C.literal,
3192
3155
  value: r.getDateTimeFormat(t, b).format(d)
3193
3156
  });
3194
3157
  continue;
3195
3158
  }
3196
- if (It(h)) {
3197
- var b = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
3198
- b && b.scale && (d = d * (b.scale || 1)), a.push({
3159
+ if (Ht(l)) {
3160
+ var b = typeof l.style == "string" ? n.number[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
3161
+ b && b.scale && (d = d * (b.scale || 1)), s.push({
3199
3162
  type: C.literal,
3200
3163
  value: r.getNumberFormat(t, b).format(d)
3201
3164
  });
3202
3165
  continue;
3203
3166
  }
3204
- if (Rt(h)) {
3205
- var v = h.children, _ = h.value, S = i[_];
3206
- if (!Cn(S))
3207
- throw new Bn(_, "function", s);
3208
- var R = xe(v, t, r, n, i, o), N = S(R.map(function(I) {
3167
+ if (Ct(l)) {
3168
+ var v = l.children, _ = l.value, S = i[_];
3169
+ if (!yn(S))
3170
+ throw new bn(_, "function", a);
3171
+ var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
3209
3172
  return I.value;
3210
3173
  }));
3211
- Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(I) {
3174
+ Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(I) {
3212
3175
  return {
3213
3176
  type: typeof I == "string" ? C.literal : C.object,
3214
3177
  value: I
3215
3178
  };
3216
3179
  }));
3217
3180
  }
3218
- if (Mt(h)) {
3219
- var T = h.options[d] || h.options.other;
3181
+ if (wt(l)) {
3182
+ var T = l.options[d] || l.options.other;
3220
3183
  if (!T)
3221
- throw new mt(h.value, d, Object.keys(h.options), s);
3222
- a.push.apply(a, xe(T.value, t, r, n, i));
3184
+ throw new ut(l.value, d, Object.keys(l.options), a);
3185
+ s.push.apply(s, ye(T.value, t, r, n, i));
3223
3186
  continue;
3224
3187
  }
3225
- if (Lt(h)) {
3226
- var T = h.options["=".concat(d)];
3188
+ if (Pt(l)) {
3189
+ var T = l.options["=".concat(d)];
3227
3190
  if (!T) {
3228
3191
  if (!Intl.PluralRules)
3229
- throw new Be(`Intl.PluralRules is not available in this environment.
3192
+ throw new He(`Intl.PluralRules is not available in this environment.
3230
3193
  Try polyfilling it using "@formatjs/intl-pluralrules"
3231
- `, ie.MISSING_INTL_API, s);
3232
- var H = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
3233
- T = h.options[H] || h.options.other;
3194
+ `, ne.MISSING_INTL_API, a);
3195
+ var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3196
+ T = l.options[H] || l.options.other;
3234
3197
  }
3235
3198
  if (!T)
3236
- throw new mt(h.value, d, Object.keys(h.options), s);
3237
- a.push.apply(a, xe(T.value, t, r, n, i, d - (h.offset || 0)));
3199
+ throw new ut(l.value, d, Object.keys(l.options), a);
3200
+ s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
3238
3201
  continue;
3239
3202
  }
3240
3203
  }
3241
- return Pn(a);
3204
+ return vn(s);
3242
3205
  }
3243
- function In(e, t) {
3206
+ function En(e, t) {
3244
3207
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3245
3208
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3246
3209
  }, {})) : e;
3247
3210
  }
3248
- function Nn(e, t) {
3211
+ function xn(e, t) {
3249
3212
  return t ? Object.keys(e).reduce(function(r, n) {
3250
- return r[n] = In(e[n], t[n]), r;
3213
+ return r[n] = En(e[n], t[n]), r;
3251
3214
  }, g({}, e)) : e;
3252
3215
  }
3253
- function Re(e) {
3216
+ function Oe(e) {
3254
3217
  return {
3255
3218
  create: function() {
3256
3219
  return {
@@ -3264,39 +3227,39 @@ function Re(e) {
3264
3227
  }
3265
3228
  };
3266
3229
  }
3267
- function On(e) {
3230
+ function _n(e) {
3268
3231
  return e === void 0 && (e = {
3269
3232
  number: {},
3270
3233
  dateTime: {},
3271
3234
  pluralRules: {}
3272
3235
  }), {
3273
- getNumberFormat: Oe(function() {
3236
+ getNumberFormat: Ce(function() {
3274
3237
  for (var t, r = [], n = 0; n < arguments.length; n++)
3275
3238
  r[n] = arguments[n];
3276
- return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
3239
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3277
3240
  }, {
3278
- cache: Re(e.number),
3279
- strategy: Me.variadic
3241
+ cache: Oe(e.number),
3242
+ strategy: Ie.variadic
3280
3243
  }),
3281
- getDateTimeFormat: Oe(function() {
3244
+ getDateTimeFormat: Ce(function() {
3282
3245
  for (var t, r = [], n = 0; n < arguments.length; n++)
3283
3246
  r[n] = arguments[n];
3284
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
3247
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3285
3248
  }, {
3286
- cache: Re(e.dateTime),
3287
- strategy: Me.variadic
3249
+ cache: Oe(e.dateTime),
3250
+ strategy: Ie.variadic
3288
3251
  }),
3289
- getPluralRules: Oe(function() {
3252
+ getPluralRules: Ce(function() {
3290
3253
  for (var t, r = [], n = 0; n < arguments.length; n++)
3291
3254
  r[n] = arguments[n];
3292
- return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
3255
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3293
3256
  }, {
3294
- cache: Re(e.pluralRules),
3295
- strategy: Me.variadic
3257
+ cache: Oe(e.pluralRules),
3258
+ strategy: Ie.variadic
3296
3259
  })
3297
3260
  };
3298
3261
  }
3299
- var Mn = (
3262
+ var Sn = (
3300
3263
  /** @class */
3301
3264
  function() {
3302
3265
  function e(t, r, n, i) {
@@ -3306,35 +3269,35 @@ var Mn = (
3306
3269
  number: {},
3307
3270
  dateTime: {},
3308
3271
  pluralRules: {}
3309
- }, this.format = function(l) {
3310
- var u = o.formatToParts(l);
3272
+ }, this.format = function(h) {
3273
+ var u = o.formatToParts(h);
3311
3274
  if (u.length === 1)
3312
3275
  return u[0].value;
3313
- var h = u.reduce(function(f, d) {
3276
+ var l = u.reduce(function(f, d) {
3314
3277
  return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3315
3278
  }, []);
3316
- return h.length <= 1 ? h[0] || "" : h;
3317
- }, this.formatToParts = function(l) {
3318
- return xe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3279
+ return l.length <= 1 ? l[0] || "" : l;
3280
+ }, this.formatToParts = function(h) {
3281
+ return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3319
3282
  }, this.resolvedOptions = function() {
3320
- var l;
3283
+ var h;
3321
3284
  return {
3322
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3285
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3323
3286
  };
3324
3287
  }, this.getAst = function() {
3325
3288
  return o.ast;
3326
3289
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3327
3290
  if (this.message = t, !e.__parse)
3328
3291
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3329
- var s = i || {};
3330
- s.formatters;
3331
- var a = kr(s, ["formatters"]);
3332
- this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3292
+ var a = i || {};
3293
+ a.formatters;
3294
+ var s = Ir(a, ["formatters"]);
3295
+ this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
3333
3296
  } else
3334
3297
  this.ast = t;
3335
3298
  if (!Array.isArray(this.ast))
3336
3299
  throw new TypeError("A message must be provided as a String or AST.");
3337
- this.formats = Nn(e.formats, n), this.formatters = i && i.formatters || On(this.formatterCache);
3300
+ this.formats = xn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
3338
3301
  }
3339
3302
  return Object.defineProperty(e, "defaultLocale", {
3340
3303
  get: function() {
@@ -3343,11 +3306,11 @@ var Mn = (
3343
3306
  enumerable: !1,
3344
3307
  configurable: !0
3345
3308
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3346
- if (typeof Intl.Locale != "undefined") {
3309
+ if (!(typeof Intl.Locale > "u")) {
3347
3310
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3348
3311
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3349
3312
  }
3350
- }, e.__parse = An, e.formats = {
3313
+ }, e.__parse = pn, e.formats = {
3351
3314
  number: {
3352
3315
  integer: {
3353
3316
  maximumFractionDigits: 0
@@ -3408,7 +3371,7 @@ var Mn = (
3408
3371
  }, e;
3409
3372
  }()
3410
3373
  );
3411
- function Ln(e, t) {
3374
+ function Tn(e, t) {
3412
3375
  if (t == null)
3413
3376
  return;
3414
3377
  if (t in e)
@@ -3429,92 +3392,92 @@ function Ln(e, t) {
3429
3392
  n = void 0;
3430
3393
  return n;
3431
3394
  }
3432
- const k = {}, Rn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Xt = (e, t) => {
3395
+ const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Dt = (e, t) => {
3433
3396
  if (t == null)
3434
3397
  return;
3435
- if (t in k && e in k[t])
3436
- return k[t][e];
3437
- const r = we(t);
3398
+ if (t in G && e in G[t])
3399
+ return G[t][e];
3400
+ const r = Ae(t);
3438
3401
  for (let n = 0; n < r.length; n++) {
3439
- const i = r[n], o = Un(i, e);
3402
+ const i = r[n], o = Bn(i, e);
3440
3403
  if (o)
3441
- return Rn(e, t, o);
3404
+ return Hn(e, t, o);
3442
3405
  }
3443
3406
  };
3444
- let Ye;
3445
- const ue = He({});
3446
- function $n(e) {
3447
- return Ye[e] || null;
3407
+ let Je;
3408
+ const ae = Se({});
3409
+ function An(e) {
3410
+ return Je[e] || null;
3448
3411
  }
3449
- function zt(e) {
3450
- return e in Ye;
3412
+ function Ft(e) {
3413
+ return e in Je;
3451
3414
  }
3452
- function Un(e, t) {
3453
- if (!zt(e))
3415
+ function Bn(e, t) {
3416
+ if (!Ft(e))
3454
3417
  return null;
3455
- const r = $n(e);
3456
- return Ln(r, t);
3418
+ const r = An(e);
3419
+ return Tn(r, t);
3457
3420
  }
3458
- function Dn(e) {
3421
+ function wn(e) {
3459
3422
  if (e == null)
3460
3423
  return;
3461
- const t = we(e);
3424
+ const t = Ae(e);
3462
3425
  for (let r = 0; r < t.length; r++) {
3463
3426
  const n = t[r];
3464
- if (zt(n))
3427
+ if (Ft(n))
3465
3428
  return n;
3466
3429
  }
3467
3430
  }
3468
- function Wt(e, ...t) {
3469
- delete k[e], ue.update((r) => (r[e] = Gr.all([r[e] || {}, ...t]), r));
3431
+ function Gt(e, ...t) {
3432
+ delete G[e], ae.update((r) => (r[e] = Cr.all([r[e] || {}, ...t]), r));
3470
3433
  }
3471
- ae(
3472
- [ue],
3434
+ se(
3435
+ [ae],
3473
3436
  ([e]) => Object.keys(e)
3474
3437
  );
3475
- ue.subscribe((e) => Ye = e);
3476
- const _e = {};
3477
- function Fn(e, t) {
3478
- _e[e].delete(t), _e[e].size === 0 && delete _e[e];
3438
+ ae.subscribe((e) => Je = e);
3439
+ const Ee = {};
3440
+ function Pn(e, t) {
3441
+ Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3479
3442
  }
3480
- function Zt(e) {
3481
- return _e[e];
3443
+ function kt(e) {
3444
+ return Ee[e];
3482
3445
  }
3483
- function Gn(e) {
3484
- return we(e).map((t) => {
3485
- const r = Zt(t);
3446
+ function Cn(e) {
3447
+ return Ae(e).map((t) => {
3448
+ const r = kt(t);
3486
3449
  return [t, r ? [...r] : []];
3487
3450
  }).filter(([, t]) => t.length > 0);
3488
3451
  }
3489
- function Ze(e) {
3490
- return e == null ? !1 : we(e).some(
3452
+ function Xe(e) {
3453
+ return e == null ? !1 : Ae(e).some(
3491
3454
  (t) => {
3492
3455
  var r;
3493
- return (r = Zt(t)) == null ? void 0 : r.size;
3456
+ return (r = kt(t)) == null ? void 0 : r.size;
3494
3457
  }
3495
3458
  );
3496
3459
  }
3497
- function kn(e, t) {
3460
+ function In(e, t) {
3498
3461
  return Promise.all(
3499
- t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3500
- ).then((n) => Wt(e, ...n));
3501
- }
3502
- const he = {};
3503
- function Jt(e) {
3504
- if (!Ze(e))
3505
- return e in he ? he[e] : Promise.resolve();
3506
- const t = Gn(e);
3507
- return he[e] = Promise.all(
3462
+ t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
3463
+ ).then((n) => Gt(e, ...n));
3464
+ }
3465
+ const le = {};
3466
+ function jt(e) {
3467
+ if (!Xe(e))
3468
+ return e in le ? le[e] : Promise.resolve();
3469
+ const t = Cn(e);
3470
+ return le[e] = Promise.all(
3508
3471
  t.map(
3509
- ([r, n]) => kn(r, n)
3472
+ ([r, n]) => In(r, n)
3510
3473
  )
3511
3474
  ).then(() => {
3512
- if (Ze(e))
3513
- return Jt(e);
3514
- delete he[e];
3515
- }), he[e];
3475
+ if (Xe(e))
3476
+ return jt(e);
3477
+ delete le[e];
3478
+ }), le[e];
3516
3479
  }
3517
- const jn = {
3480
+ const Nn = {
3518
3481
  number: {
3519
3482
  scientific: { notation: "scientific" },
3520
3483
  engineering: { notation: "engineering" },
@@ -3543,159 +3506,159 @@ const jn = {
3543
3506
  timeZoneName: "short"
3544
3507
  }
3545
3508
  }
3546
- }, Vn = {
3509
+ }, On = {
3547
3510
  fallbackLocale: null,
3548
3511
  loadingDelay: 200,
3549
- formats: jn,
3512
+ formats: Nn,
3550
3513
  warnOnMissingMessages: !0,
3551
3514
  handleMissingMessage: void 0,
3552
3515
  ignoreTag: !0
3553
- }, Xn = Vn;
3554
- function oe() {
3555
- return Xn;
3516
+ }, Mn = On;
3517
+ function ie() {
3518
+ return Mn;
3556
3519
  }
3557
- const $e = He(!1);
3558
- var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3520
+ const Me = Se(!1);
3521
+ 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) => {
3559
3522
  for (var r in t)
3560
- Jn.call(t, r) && bt(e, r, t[r]);
3561
- if (pt)
3562
- for (var r of pt(t))
3563
- Qn.call(t, r) && bt(e, r, t[r]);
3523
+ Un.call(t, r) && ht(e, r, t[r]);
3524
+ if (lt)
3525
+ for (var r of lt(t))
3526
+ Dn.call(t, r) && ht(e, r, t[r]);
3564
3527
  return e;
3565
- }, Yn = (e, t) => Wn(e, Zn(t));
3566
- let Je;
3567
- const Se = He(null);
3568
- function gt(e) {
3528
+ }, Gn = (e, t) => Rn(e, $n(t));
3529
+ let ze;
3530
+ const xe = Se(null);
3531
+ function ct(e) {
3569
3532
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3570
3533
  }
3571
- function we(e, t = oe().fallbackLocale) {
3572
- const r = gt(e);
3573
- return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3534
+ function Ae(e, t = ie().fallbackLocale) {
3535
+ const r = ct(e);
3536
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
3574
3537
  }
3575
- function J() {
3576
- return Je != null ? Je : void 0;
3538
+ function Z() {
3539
+ return ze ?? void 0;
3577
3540
  }
3578
- Se.subscribe((e) => {
3579
- Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3541
+ xe.subscribe((e) => {
3542
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3580
3543
  });
3581
- const Kn = (e) => {
3582
- if (e && Dn(e) && Ze(e)) {
3583
- const { loadingDelay: t } = oe();
3544
+ const kn = (e) => {
3545
+ if (e && wn(e) && Xe(e)) {
3546
+ const { loadingDelay: t } = ie();
3584
3547
  let r;
3585
- return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
3586
- () => $e.set(!0),
3548
+ return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
3549
+ () => Me.set(!0),
3587
3550
  t
3588
- ) : $e.set(!0), Jt(e).then(() => {
3589
- Se.set(e);
3551
+ ) : Me.set(!0), jt(e).then(() => {
3552
+ xe.set(e);
3590
3553
  }).finally(() => {
3591
- clearTimeout(r), $e.set(!1);
3554
+ clearTimeout(r), Me.set(!1);
3592
3555
  });
3593
3556
  }
3594
- return Se.set(e);
3595
- }, W = Yn(qn({}, Se), {
3596
- set: Kn
3597
- }), Pe = (e) => {
3557
+ return xe.set(e);
3558
+ }, z = Gn(Fn({}, xe), {
3559
+ set: kn
3560
+ }), Be = (e) => {
3598
3561
  const t = /* @__PURE__ */ Object.create(null);
3599
3562
  return (n) => {
3600
3563
  const i = JSON.stringify(n);
3601
3564
  return i in t ? t[i] : t[i] = e(n);
3602
3565
  };
3603
3566
  };
3604
- var ei = Object.defineProperty, Te = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
3567
+ var jn = Object.defineProperty, _e = 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) => {
3605
3568
  for (var r in t || (t = {}))
3606
- Qt.call(t, r) && vt(e, r, t[r]);
3607
- if (Te)
3608
- for (var r of Te(t))
3609
- qt.call(t, r) && vt(e, r, t[r]);
3569
+ Vt.call(t, r) && ft(e, r, t[r]);
3570
+ if (_e)
3571
+ for (var r of _e(t))
3572
+ Xt.call(t, r) && ft(e, r, t[r]);
3610
3573
  return e;
3611
- }, le = (e, t) => {
3574
+ }, ue = (e, t) => {
3612
3575
  var r = {};
3613
3576
  for (var n in e)
3614
- Qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3615
- if (e != null && Te)
3616
- for (var n of Te(e))
3617
- t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
3577
+ Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3578
+ if (e != null && _e)
3579
+ for (var n of _e(e))
3580
+ t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
3618
3581
  return r;
3619
3582
  };
3620
- const me = (e, t) => {
3621
- const { formats: r } = oe();
3583
+ const de = (e, t) => {
3584
+ const { formats: r } = ie();
3622
3585
  if (e in r && t in r[e])
3623
3586
  return r[e][t];
3624
3587
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3625
- }, ti = Pe(
3588
+ }, Vn = Be(
3626
3589
  (e) => {
3627
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3590
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3628
3591
  if (r == null)
3629
3592
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3630
- return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3593
+ return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
3631
3594
  }
3632
- ), ri = Pe(
3595
+ ), Xn = Be(
3633
3596
  (e) => {
3634
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3597
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3635
3598
  if (r == null)
3636
3599
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3637
- return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3600
+ return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
3638
3601
  }
3639
- ), ni = Pe(
3602
+ ), zn = Be(
3640
3603
  (e) => {
3641
- var t = e, { locale: r, format: n } = t, i = le(t, ["locale", "format"]);
3604
+ var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3642
3605
  if (r == null)
3643
3606
  throw new Error(
3644
3607
  '[svelte-i18n] A "locale" must be set to format time values'
3645
3608
  );
3646
- return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3609
+ return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
3647
3610
  }
3648
- ), ii = (e = {}) => {
3611
+ ), Wn = (e = {}) => {
3649
3612
  var t = e, {
3650
- locale: r = J()
3651
- } = t, n = le(t, [
3613
+ locale: r = Z()
3614
+ } = t, n = ue(t, [
3652
3615
  "locale"
3653
3616
  ]);
3654
- return ti(Ke({ locale: r }, n));
3655
- }, oi = (e = {}) => {
3617
+ return Vn(Qe({ locale: r }, n));
3618
+ }, Zn = (e = {}) => {
3656
3619
  var t = e, {
3657
- locale: r = J()
3658
- } = t, n = le(t, [
3620
+ locale: r = Z()
3621
+ } = t, n = ue(t, [
3659
3622
  "locale"
3660
3623
  ]);
3661
- return ri(Ke({ locale: r }, n));
3662
- }, si = (e = {}) => {
3624
+ return Xn(Qe({ locale: r }, n));
3625
+ }, Jn = (e = {}) => {
3663
3626
  var t = e, {
3664
- locale: r = J()
3665
- } = t, n = le(t, [
3627
+ locale: r = Z()
3628
+ } = t, n = ue(t, [
3666
3629
  "locale"
3667
3630
  ]);
3668
- return ni(Ke({ locale: r }, n));
3669
- }, ai = Pe(
3631
+ return zn(Qe({ locale: r }, n));
3632
+ }, Qn = Be(
3670
3633
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3671
- (e, t = J()) => new Mn(e, t, oe().formats, {
3672
- ignoreTag: oe().ignoreTag
3634
+ (e, t = Z()) => new Sn(e, t, ie().formats, {
3635
+ ignoreTag: ie().ignoreTag
3673
3636
  })
3674
- ), ui = (e, t = {}) => {
3637
+ ), qn = (e, t = {}) => {
3675
3638
  var r, n, i, o;
3676
- let s = t;
3677
- typeof e == "object" && (s = e, e = s.id);
3639
+ let a = t;
3640
+ typeof e == "object" && (a = e, e = a.id);
3678
3641
  const {
3679
- values: a,
3680
- locale: l = J(),
3642
+ values: s,
3643
+ locale: h = Z(),
3681
3644
  default: u
3682
- } = s;
3683
- if (l == null)
3645
+ } = a;
3646
+ if (h == null)
3684
3647
  throw new Error(
3685
3648
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3686
3649
  );
3687
- let h = Xt(e, l);
3688
- if (!h)
3689
- h = (o = (i = (n = (r = oe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3690
- else if (typeof h != "string")
3650
+ let l = Dt(e, h);
3651
+ if (!l)
3652
+ 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;
3653
+ else if (typeof l != "string")
3691
3654
  return console.warn(
3692
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3693
- ), h;
3694
- if (!a)
3695
- return h;
3696
- let f = h;
3655
+ `[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.`
3656
+ ), l;
3657
+ if (!s)
3658
+ return l;
3659
+ let f = l;
3697
3660
  try {
3698
- f = ai(h, l).format(a);
3661
+ f = Qn(l, h).format(s);
3699
3662
  } catch (d) {
3700
3663
  d instanceof Error && console.warn(
3701
3664
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3703,20 +3666,20 @@ const me = (e, t) => {
3703
3666
  );
3704
3667
  }
3705
3668
  return f;
3706
- }, li = (e, t) => si(t).format(e), hi = (e, t) => oi(t).format(e), ci = (e, t) => ii(t).format(e), fi = (e, t = J()) => Xt(e, t), di = ae([W, ue], () => ui);
3707
- ae([W], () => li);
3708
- ae([W], () => hi);
3709
- ae([W], () => ci);
3710
- ae([W, ue], () => fi);
3711
- function mi({ withLocale: e, translations: t }) {
3712
- W.subscribe((r) => {
3713
- r == null && (ue.set(t), W.set(e));
3669
+ }, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = Z()) => Dt(e, t), ri = se([z, ae], () => qn);
3670
+ se([z], () => Yn);
3671
+ se([z], () => Kn);
3672
+ se([z], () => ei);
3673
+ se([z, ae], () => ti);
3674
+ function ni({ withLocale: e, translations: t }) {
3675
+ z.subscribe((r) => {
3676
+ r == null && (ae.set(t), z.set(e));
3714
3677
  });
3715
3678
  }
3716
- function yt(e, t) {
3717
- Wt(e, t);
3679
+ function dt(e, t) {
3680
+ Gt(e, t);
3718
3681
  }
3719
- const Et = {
3682
+ const mt = {
3720
3683
  en: {
3721
3684
  title: "Please enter the verification code you received on your number",
3722
3685
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3823,10 +3786,10 @@ const Et = {
3823
3786
  loginSMSHint: "A new verification code has been sent to your phone number"
3824
3787
  }
3825
3788
  };
3826
- function pi(e) {
3827
- or(e, "svelte-uutjwi", "*,*::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, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));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))}");
3789
+ function ii(e) {
3790
+ Zt(e, "svelte-uutjwi", "*,*::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, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));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))}");
3828
3791
  }
3829
- function bi(e) {
3792
+ function oi(e) {
3830
3793
  let t = (
3831
3794
  /*$_*/
3832
3795
  e[5]("errorTitle") + ""
@@ -3836,19 +3799,19 @@ function bi(e) {
3836
3799
  r = L(t);
3837
3800
  },
3838
3801
  m(n, i) {
3839
- Z(n, r, i);
3802
+ W(n, r, i);
3840
3803
  },
3841
3804
  p(n, i) {
3842
3805
  i & /*$_*/
3843
3806
  32 && t !== (t = /*$_*/
3844
- n[5]("errorTitle") + "") && G(r, t);
3807
+ n[5]("errorTitle") + "") && F(r, t);
3845
3808
  },
3846
3809
  d(n) {
3847
- n && j(r);
3810
+ n && k(r);
3848
3811
  }
3849
3812
  };
3850
3813
  }
3851
- function gi(e) {
3814
+ function si(e) {
3852
3815
  let t = (
3853
3816
  /*$_*/
3854
3817
  e[5]("title") + ""
@@ -3858,19 +3821,19 @@ function gi(e) {
3858
3821
  r = L(t);
3859
3822
  },
3860
3823
  m(n, i) {
3861
- Z(n, r, i);
3824
+ W(n, r, i);
3862
3825
  },
3863
3826
  p(n, i) {
3864
3827
  i & /*$_*/
3865
3828
  32 && t !== (t = /*$_*/
3866
- n[5]("title") + "") && G(r, t);
3829
+ n[5]("title") + "") && F(r, t);
3867
3830
  },
3868
3831
  d(n) {
3869
- n && j(r);
3832
+ n && k(r);
3870
3833
  }
3871
3834
  };
3872
3835
  }
3873
- function xt(e) {
3836
+ function pt(e) {
3874
3837
  let t, r = (
3875
3838
  /*$_*/
3876
3839
  e[5]("smsCodeError") + ""
@@ -3880,19 +3843,19 @@ function xt(e) {
3880
3843
  t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3881
3844
  },
3882
3845
  m(i, o) {
3883
- Z(i, t, o), E(t, n);
3846
+ W(i, t, o), E(t, n);
3884
3847
  },
3885
3848
  p(i, o) {
3886
3849
  o & /*$_*/
3887
3850
  32 && r !== (r = /*$_*/
3888
- i[5]("smsCodeError") + "") && G(n, r);
3851
+ i[5]("smsCodeError") + "") && F(n, r);
3889
3852
  },
3890
3853
  d(i) {
3891
- i && j(t);
3854
+ i && k(t);
3892
3855
  }
3893
3856
  };
3894
3857
  }
3895
- function _t(e) {
3858
+ function bt(e) {
3896
3859
  let t, r = (
3897
3860
  /*$_*/
3898
3861
  e[5]("resendMessage") + ""
@@ -3902,161 +3865,161 @@ function _t(e) {
3902
3865
  t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3903
3866
  },
3904
3867
  m(i, o) {
3905
- Z(i, t, o), E(t, n);
3868
+ W(i, t, o), E(t, n);
3906
3869
  },
3907
3870
  p(i, o) {
3908
3871
  o & /*$_*/
3909
3872
  32 && r !== (r = /*$_*/
3910
- i[5]("resendMessage") + "") && G(n, r);
3873
+ i[5]("resendMessage") + "") && F(n, r);
3911
3874
  },
3912
3875
  d(i) {
3913
- i && j(t);
3876
+ i && k(t);
3914
3877
  }
3915
3878
  };
3916
3879
  }
3917
- function St(e) {
3880
+ function gt(e) {
3918
3881
  let t, r, n = (
3919
3882
  /*secondsLeft*/
3920
3883
  e[4] < 10 ? "0" : ""
3921
- ), i, o, s;
3884
+ ), i, o, a;
3922
3885
  return {
3923
3886
  c() {
3924
3887
  t = M("span"), r = L("(0:"), i = L(n), o = L(
3925
3888
  /*secondsLeft*/
3926
3889
  e[4]
3927
- ), s = L(")"), A(t, "class", "SmsVerificationResendTimer");
3890
+ ), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
3928
3891
  },
3929
- m(a, l) {
3930
- Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
3892
+ m(s, h) {
3893
+ W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
3931
3894
  },
3932
- p(a, l) {
3933
- l & /*secondsLeft*/
3895
+ p(s, h) {
3896
+ h & /*secondsLeft*/
3934
3897
  16 && n !== (n = /*secondsLeft*/
3935
- a[4] < 10 ? "0" : "") && G(i, n), l & /*secondsLeft*/
3936
- 16 && G(
3898
+ s[4] < 10 ? "0" : "") && F(i, n), h & /*secondsLeft*/
3899
+ 16 && F(
3937
3900
  o,
3938
3901
  /*secondsLeft*/
3939
- a[4]
3902
+ s[4]
3940
3903
  );
3941
3904
  },
3942
- d(a) {
3943
- a && j(t);
3905
+ d(s) {
3906
+ s && k(t);
3944
3907
  }
3945
3908
  };
3946
3909
  }
3947
- function vi(e) {
3948
- let t, r, n, i, o, s = (
3910
+ function ai(e) {
3911
+ let t, r, n, i, o, a = (
3949
3912
  /*$_*/
3950
3913
  e[5]("code") + ""
3951
- ), a, l, u, h, f, d, b, v, _, S, R = (
3914
+ ), s, h, u, l, f, d, b, v, _, S, R = (
3952
3915
  /*$_*/
3953
3916
  e[5]("activate") + ""
3954
3917
  ), N, T, H, I = (
3955
3918
  /*$_*/
3956
3919
  e[5]("resend") + ""
3957
- ), D, V, Q, pe;
3958
- function be(c, y) {
3920
+ ), U, j, J, me;
3921
+ function pe(c, y) {
3959
3922
  return (
3960
3923
  /*isSmsValid*/
3961
- c[2] ? gi : bi
3924
+ c[2] ? si : oi
3962
3925
  );
3963
3926
  }
3964
- let X = be(e), O = X(e), B = !/*isSmsValid*/
3965
- e[2] && xt(e), w = (
3927
+ let V = pe(e), O = V(e), B = !/*isSmsValid*/
3928
+ e[2] && pt(e), w = (
3966
3929
  /*timer*/
3967
- e[3] && _t(e)
3930
+ e[3] && bt(e)
3968
3931
  ), P = (
3969
3932
  /*timer*/
3970
- e[3] && St(e)
3933
+ e[3] && gt(e)
3971
3934
  );
3972
3935
  return {
3973
3936
  c() {
3974
- t = M("div"), r = M("h3"), O.c(), n = z(), i = M("div"), o = M("label"), a = L(s), l = L(":"), u = M("span"), u.textContent = "*", h = z(), f = M("input"), d = z(), B && B.c(), v = z(), w && w.c(), _ = z(), S = M("button"), N = L(R), T = z(), H = M("button"), D = L(I), V = z(), P && P.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*/
3937
+ t = M("div"), r = M("h3"), O.c(), n = X(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = X(), f = M("input"), d = X(), B && B.c(), v = X(), w && w.c(), _ = X(), S = M("button"), N = L(R), T = X(), H = M("button"), U = L(I), j = X(), P && P.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*/
3975
3938
  e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3976
3939
  e[3], A(t, "class", "Container SmsVerificationContainer");
3977
3940
  },
3978
3941
  m(c, y) {
3979
- Z(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, f), it(
3942
+ W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), Ye(
3980
3943
  f,
3981
3944
  /*smsCode*/
3982
3945
  e[1]
3983
- ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, D), E(H, V), P && P.m(H, null), e[19](t), Q || (pe = [
3984
- ve(
3946
+ ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, U), E(H, j), P && P.m(H, null), e[19](t), J || (me = [
3947
+ be(
3985
3948
  f,
3986
3949
  "input",
3987
3950
  /*input_input_handler*/
3988
3951
  e[17]
3989
3952
  ),
3990
- ve(
3953
+ be(
3991
3954
  f,
3992
3955
  "keydown",
3993
3956
  /*keydown_handler*/
3994
3957
  e[18]
3995
3958
  ),
3996
- ve(
3959
+ be(
3997
3960
  S,
3998
3961
  "click",
3999
3962
  /*activateUser*/
4000
3963
  e[6]
4001
3964
  ),
4002
- ve(
3965
+ be(
4003
3966
  H,
4004
3967
  "click",
4005
3968
  /*resendCode*/
4006
3969
  e[7]
4007
3970
  )
4008
- ], Q = !0);
3971
+ ], J = !0);
4009
3972
  },
4010
3973
  p(c, [y]) {
4011
- X === (X = be(c)) && O ? O.p(c, y) : (O.d(1), O = X(c), O && (O.c(), O.m(r, null))), y & /*$_*/
4012
- 32 && s !== (s = /*$_*/
4013
- c[5]("code") + "") && G(a, s), y & /*smsCode*/
3974
+ V === (V = pe(c)) && O ? O.p(c, y) : (O.d(1), O = V(c), O && (O.c(), O.m(r, null))), y & /*$_*/
3975
+ 32 && a !== (a = /*$_*/
3976
+ c[5]("code") + "") && F(s, a), y & /*smsCode*/
4014
3977
  2 && f.value !== /*smsCode*/
4015
- c[1] && it(
3978
+ c[1] && Ye(
4016
3979
  f,
4017
3980
  /*smsCode*/
4018
3981
  c[1]
4019
3982
  ), /*isSmsValid*/
4020
- c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = xt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
3983
+ c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = pt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
4021
3984
  4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
4022
3985
  c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
4023
- c[3] ? w ? w.p(c, y) : (w = _t(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
3986
+ c[3] ? w ? w.p(c, y) : (w = bt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
4024
3987
  32 && R !== (R = /*$_*/
4025
- c[5]("activate") + "") && G(N, R), y & /*$_*/
3988
+ c[5]("activate") + "") && F(N, R), y & /*$_*/
4026
3989
  32 && I !== (I = /*$_*/
4027
- c[5]("resend") + "") && G(D, I), /*timer*/
4028
- c[3] ? P ? P.p(c, y) : (P = St(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
3990
+ c[5]("resend") + "") && F(U, I), /*timer*/
3991
+ c[3] ? P ? P.p(c, y) : (P = gt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
4029
3992
  8 && (H.disabled = /*timer*/
4030
3993
  c[3]);
4031
3994
  },
4032
- i: U,
4033
- o: U,
3995
+ i: $,
3996
+ o: $,
4034
3997
  d(c) {
4035
- c && j(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), Q = !1, se(pe);
3998
+ c && k(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), J = !1, oe(me);
4036
3999
  }
4037
4000
  };
4038
4001
  }
4039
- function yi(e, t, r) {
4002
+ function ui(e, t, r) {
4040
4003
  let n;
4041
- ir(e, di, (c) => r(5, n = c));
4042
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4004
+ Wt(e, ri, (c) => r(5, n = c));
4005
+ 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, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4043
4006
  const H = { numeric: /^[0-9]{0,6}$/ };
4044
- mi({ withLocale: "en", translations: {} });
4007
+ ni({ withLocale: "en", translations: {} });
4045
4008
  const I = () => {
4046
4009
  fetch(f).then((y) => y.json()).then((y) => {
4047
- Object.keys(y).forEach((q) => {
4048
- yt(q, y[q]);
4010
+ Object.keys(y).forEach((Q) => {
4011
+ dt(Q, y[Q]);
4049
4012
  });
4050
4013
  }).catch((y) => {
4051
4014
  console.log(y);
4052
4015
  });
4053
4016
  };
4054
- Object.keys(Et).forEach((c) => {
4055
- yt(c, Et[c]);
4017
+ Object.keys(mt).forEach((c) => {
4018
+ dt(c, mt[c]);
4056
4019
  });
4057
- const D = () => ge(this, null, function* () {
4020
+ const U = async () => {
4058
4021
  try {
4059
- if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4022
+ if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4060
4023
  headers: {
4061
4024
  "Content-Type": "application/json",
4062
4025
  accept: "application/json"
@@ -4077,37 +4040,37 @@ function yi(e, t, r) {
4077
4040
  } catch (c) {
4078
4041
  console.log(c);
4079
4042
  }
4080
- }), V = () => ge(this, null, function* () {
4081
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), X();
4043
+ }, j = async () => {
4044
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), V();
4082
4045
  try {
4083
- const c = yield fetch(`${i}/v1/player/sms/token`, {
4046
+ const c = await fetch(`${i}/v1/player/sms/token`, {
4084
4047
  method: "POST",
4085
4048
  headers: {
4086
4049
  "Content-Type": "application/json",
4087
4050
  accept: "application/json"
4088
4051
  },
4089
4052
  body: JSON.stringify({
4090
- userId: s,
4091
- messageTemplate: a,
4092
- destination: l
4053
+ userId: a,
4054
+ messageTemplate: s,
4055
+ destination: h
4093
4056
  })
4094
- }), y = yield c.json();
4057
+ }), y = await c.json();
4095
4058
  if (c.ok)
4096
- r(9, o = y.id), v = !1, Q();
4059
+ r(9, o = y.id), v = !1, J();
4097
4060
  else
4098
4061
  throw v = !0, new Error("Failed to fetch");
4099
4062
  } catch (c) {
4100
4063
  v = !0, console.error(c);
4101
4064
  }
4102
- }), Q = () => {
4065
+ }, J = () => {
4103
4066
  T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4104
- }, pe = () => {
4067
+ }, me = () => {
4105
4068
  let c = document.createElement("style");
4106
4069
  c.innerHTML = u, S.appendChild(c);
4107
- }, be = () => {
4108
- let c = new URL(h), y = document.createElement("style");
4109
- fetch(c.href).then((q) => q.text()).then((q) => {
4110
- y.innerHTML = q, setTimeout(
4070
+ }, pe = () => {
4071
+ let c = new URL(l), y = document.createElement("style");
4072
+ fetch(c.href).then((Q) => Q.text()).then((Q) => {
4073
+ y.innerHTML = Q, setTimeout(
4111
4074
  () => {
4112
4075
  S.appendChild(y);
4113
4076
  },
@@ -4118,39 +4081,39 @@ function yi(e, t, r) {
4118
4081
  500
4119
4082
  );
4120
4083
  });
4121
- }, X = () => {
4084
+ }, V = () => {
4122
4085
  N < 60 && r(3, _ = setInterval(
4123
4086
  () => {
4124
- Q();
4087
+ J();
4125
4088
  },
4126
4089
  1e3
4127
4090
  ));
4128
4091
  }, O = (c) => {
4129
4092
  !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4130
4093
  };
4131
- cr(() => {
4132
- if (!s || !l) {
4094
+ er(() => {
4095
+ if (!a || !h) {
4133
4096
  let c = JSON.parse(localStorage.getItem("playerData"));
4134
- r(10, s = c.playerid), r(11, l = c.number);
4097
+ r(10, a = c.playerid), r(11, h = c.number);
4135
4098
  }
4136
- X();
4099
+ V();
4137
4100
  });
4138
4101
  function B() {
4139
4102
  d = this.value, r(1, d);
4140
4103
  }
4141
4104
  const w = (c) => O(c);
4142
4105
  function P(c) {
4143
- Ue[c ? "unshift" : "push"](() => {
4106
+ Le[c ? "unshift" : "push"](() => {
4144
4107
  S = c, r(0, S);
4145
4108
  });
4146
4109
  }
4147
4110
  return e.$$set = (c) => {
4148
- "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, s = c.playerid), "smstemplate" in c && r(13, a = c.smstemplate), "number" in c && r(11, l = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, h = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4111
+ "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), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, l = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4149
4112
  }, e.$$.update = () => {
4150
4113
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4151
4114
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4152
- 16385 && u && S && pe(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4153
- 32769 && h && S && be(), e.$$.dirty & /*translationurl*/
4115
+ 16385 && u && S && me(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4116
+ 32769 && l && S && pe(), e.$$.dirty & /*translationurl*/
4154
4117
  65536 && f && I();
4155
4118
  }, [
4156
4119
  S,
@@ -4159,30 +4122,30 @@ function yi(e, t, r) {
4159
4122
  _,
4160
4123
  T,
4161
4124
  n,
4162
- D,
4163
- V,
4125
+ U,
4126
+ j,
4164
4127
  O,
4165
4128
  o,
4166
- s,
4167
- l,
4168
- i,
4169
4129
  a,
4170
- u,
4171
4130
  h,
4131
+ i,
4132
+ s,
4133
+ u,
4134
+ l,
4172
4135
  f,
4173
4136
  B,
4174
4137
  w,
4175
4138
  P
4176
4139
  ];
4177
4140
  }
4178
- class Ei extends Sr {
4141
+ class li extends fr {
4179
4142
  constructor(t) {
4180
- super(), xr(
4143
+ super(), hr(
4181
4144
  this,
4182
4145
  t,
4183
- yi,
4184
- vi,
4185
- Ht,
4146
+ ui,
4147
+ ai,
4148
+ yt,
4186
4149
  {
4187
4150
  endpoint: 12,
4188
4151
  tokenid: 9,
@@ -4193,59 +4156,59 @@ class Ei extends Sr {
4193
4156
  clientstylingurl: 15,
4194
4157
  translationurl: 16
4195
4158
  },
4196
- pi
4159
+ ii
4197
4160
  );
4198
4161
  }
4199
4162
  get endpoint() {
4200
4163
  return this.$$.ctx[12];
4201
4164
  }
4202
4165
  set endpoint(t) {
4203
- this.$$set({ endpoint: t }), F();
4166
+ this.$$set({ endpoint: t }), D();
4204
4167
  }
4205
4168
  get tokenid() {
4206
4169
  return this.$$.ctx[9];
4207
4170
  }
4208
4171
  set tokenid(t) {
4209
- this.$$set({ tokenid: t }), F();
4172
+ this.$$set({ tokenid: t }), D();
4210
4173
  }
4211
4174
  get playerid() {
4212
4175
  return this.$$.ctx[10];
4213
4176
  }
4214
4177
  set playerid(t) {
4215
- this.$$set({ playerid: t }), F();
4178
+ this.$$set({ playerid: t }), D();
4216
4179
  }
4217
4180
  get smstemplate() {
4218
4181
  return this.$$.ctx[13];
4219
4182
  }
4220
4183
  set smstemplate(t) {
4221
- this.$$set({ smstemplate: t }), F();
4184
+ this.$$set({ smstemplate: t }), D();
4222
4185
  }
4223
4186
  get number() {
4224
4187
  return this.$$.ctx[11];
4225
4188
  }
4226
4189
  set number(t) {
4227
- this.$$set({ number: t }), F();
4190
+ this.$$set({ number: t }), D();
4228
4191
  }
4229
4192
  get clientstyling() {
4230
4193
  return this.$$.ctx[14];
4231
4194
  }
4232
4195
  set clientstyling(t) {
4233
- this.$$set({ clientstyling: t }), F();
4196
+ this.$$set({ clientstyling: t }), D();
4234
4197
  }
4235
4198
  get clientstylingurl() {
4236
4199
  return this.$$.ctx[15];
4237
4200
  }
4238
4201
  set clientstylingurl(t) {
4239
- this.$$set({ clientstylingurl: t }), F();
4202
+ this.$$set({ clientstylingurl: t }), D();
4240
4203
  }
4241
4204
  get translationurl() {
4242
4205
  return this.$$.ctx[16];
4243
4206
  }
4244
4207
  set translationurl(t) {
4245
- this.$$set({ translationurl: t }), F();
4208
+ this.$$set({ translationurl: t }), D();
4246
4209
  }
4247
4210
  }
4248
- _r(Ei, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4211
+ cr(li, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4249
4212
  export {
4250
- Ei as default
4213
+ li as G
4251
4214
  };