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

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