@everymatrix/player-email-verification 1.77.20 → 1.77.22

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,53 +1,53 @@
1
- var Ot = Object.defineProperty, It = Object.defineProperties;
2
- var wt = Object.getOwnPropertyDescriptors;
3
- var we = Object.getOwnPropertySymbols;
4
- var $t = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable;
5
- var ae = (e, t, r) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
1
+ var It = Object.defineProperty, $t = Object.defineProperties;
2
+ var Lt = Object.getOwnPropertyDescriptors;
3
+ var Le = Object.getOwnPropertySymbols;
4
+ var Mt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
5
+ var he = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- $t.call(t, r) && ae(e, r, t[r]);
8
- if (we)
9
- for (var r of we(t))
10
- Lt.call(t, r) && ae(e, r, t[r]);
7
+ Mt.call(t, r) && he(e, r, t[r]);
8
+ if (Le)
9
+ for (var r of Le(t))
10
+ Ct.call(t, r) && he(e, r, t[r]);
11
11
  return e;
12
- }, Le = (e, t) => It(e, wt(t));
13
- var v = (e, t, r) => (ae(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Me = (e, t, r) => new Promise((n, i) => {
15
- var s = (u) => {
12
+ }, Ce = (e, t) => $t(e, Lt(t));
13
+ var v = (e, t, r) => (he(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var Re = (e, t, r) => new Promise((n, i) => {
15
+ var s = (h) => {
16
16
  try {
17
- h(r.next(u));
17
+ u(r.next(h));
18
18
  } catch (a) {
19
19
  i(a);
20
20
  }
21
- }, o = (u) => {
21
+ }, o = (h) => {
22
22
  try {
23
- h(r.throw(u));
23
+ u(r.throw(h));
24
24
  } catch (a) {
25
25
  i(a);
26
26
  }
27
- }, h = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
28
- h((r = r.apply(e, t)).next());
27
+ }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
+ u((r = r.apply(e, t)).next());
29
29
  });
30
30
  function _() {
31
31
  }
32
- function et(e) {
32
+ function rt(e) {
33
33
  return e();
34
34
  }
35
- function Ce() {
35
+ function Ue() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function z(e) {
39
- e.forEach(et);
38
+ function Z(e) {
39
+ e.forEach(rt);
40
40
  }
41
- function Be(e) {
41
+ function Pe(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function tt(e, t) {
44
+ function nt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function Mt(e) {
47
+ function Rt(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function rt(e, ...t) {
50
+ function it(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,25 +56,25 @@ function rt(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function Ct(e, t, r) {
60
- e.$$.on_destroy.push(rt(t, r));
59
+ function Ut(e, t, r) {
60
+ e.$$.on_destroy.push(it(t, r));
61
61
  }
62
- function nt(e, t, r) {
62
+ function st(e, t, r) {
63
63
  e.insertBefore(t, r || null);
64
64
  }
65
- function Ae(e) {
65
+ function Oe(e) {
66
66
  e.parentNode && e.parentNode.removeChild(e);
67
67
  }
68
- function it(e) {
68
+ function ot(e) {
69
69
  return document.createElement(e);
70
70
  }
71
- function Rt(e, t, r) {
71
+ function Gt(e, t, r) {
72
72
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
73
73
  }
74
- function Ut(e) {
74
+ function Dt(e) {
75
75
  return Array.from(e.childNodes);
76
76
  }
77
- function Gt(e) {
77
+ function Ft(e) {
78
78
  const t = {};
79
79
  return e.childNodes.forEach(
80
80
  /** @param {Element} node */
@@ -83,79 +83,79 @@ function Gt(e) {
83
83
  }
84
84
  ), t;
85
85
  }
86
- let Pe;
87
- function k(e) {
88
- Pe = e;
86
+ let Ne;
87
+ function X(e) {
88
+ Ne = e;
89
89
  }
90
- const I = [], Re = [];
91
- let $ = [];
92
- const Ue = [], Dt = /* @__PURE__ */ Promise.resolve();
93
- let de = !1;
94
- function Ft() {
95
- de || (de = !0, Dt.then(w));
90
+ const I = [], Ge = [];
91
+ let L = [];
92
+ const De = [], jt = /* @__PURE__ */ Promise.resolve();
93
+ let ge = !1;
94
+ function Vt() {
95
+ ge || (ge = !0, jt.then($));
96
96
  }
97
- function be(e) {
98
- $.push(e);
97
+ function Ee(e) {
98
+ L.push(e);
99
99
  }
100
- const he = /* @__PURE__ */ new Set();
100
+ const le = /* @__PURE__ */ new Set();
101
101
  let N = 0;
102
- function w() {
102
+ function $() {
103
103
  if (N !== 0)
104
104
  return;
105
- const e = Pe;
105
+ const e = Ne;
106
106
  do {
107
107
  try {
108
108
  for (; N < I.length; ) {
109
109
  const t = I[N];
110
- N++, k(t), jt(t.$$);
110
+ N++, X(t), kt(t.$$);
111
111
  }
112
112
  } catch (t) {
113
113
  throw I.length = 0, N = 0, t;
114
114
  }
115
- for (k(null), I.length = 0, N = 0; Re.length; )
116
- Re.pop()();
117
- for (let t = 0; t < $.length; t += 1) {
118
- const r = $[t];
119
- he.has(r) || (he.add(r), r());
115
+ for (X(null), I.length = 0, N = 0; Ge.length; )
116
+ Ge.pop()();
117
+ for (let t = 0; t < L.length; t += 1) {
118
+ const r = L[t];
119
+ le.has(r) || (le.add(r), r());
120
120
  }
121
- $.length = 0;
121
+ L.length = 0;
122
122
  } while (I.length);
123
- for (; Ue.length; )
124
- Ue.pop()();
125
- de = !1, he.clear(), k(e);
123
+ for (; De.length; )
124
+ De.pop()();
125
+ ge = !1, le.clear(), X(e);
126
126
  }
127
- function jt(e) {
127
+ function kt(e) {
128
128
  if (e.fragment !== null) {
129
- e.update(), z(e.before_update);
129
+ e.update(), Z(e.before_update);
130
130
  const t = e.dirty;
131
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
131
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ee);
132
132
  }
133
133
  }
134
- function Vt(e) {
134
+ function Xt(e) {
135
135
  const t = [], r = [];
136
- $.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
136
+ L.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), L = t;
137
137
  }
138
- const kt = /* @__PURE__ */ new Set();
139
- function Xt(e, t) {
140
- e && e.i && (kt.delete(e), e.i(t));
138
+ const Wt = /* @__PURE__ */ new Set();
139
+ function zt(e, t) {
140
+ e && e.i && (Wt.delete(e), e.i(t));
141
141
  }
142
- function Wt(e, t, r) {
142
+ function Zt(e, t, r) {
143
143
  const { fragment: n, after_update: i } = e.$$;
144
- n && n.m(t, r), be(() => {
145
- const s = e.$$.on_mount.map(et).filter(Be);
146
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
147
- }), i.forEach(be);
144
+ n && n.m(t, r), Ee(() => {
145
+ const s = e.$$.on_mount.map(rt).filter(Pe);
146
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Z(s), e.$$.on_mount = [];
147
+ }), i.forEach(Ee);
148
148
  }
149
- function zt(e, t) {
149
+ function Qt(e, t) {
150
150
  const r = e.$$;
151
- r.fragment !== null && (Vt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
151
+ r.fragment !== null && (Xt(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
152
152
  }
153
- function Zt(e, t) {
154
- e.$$.dirty[0] === -1 && (I.push(e), Ft(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
153
+ function Jt(e, t) {
154
+ e.$$.dirty[0] === -1 && (I.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
155
155
  }
156
- function Qt(e, t, r, n, i, s, o = null, h = [-1]) {
157
- const u = Pe;
158
- k(e);
156
+ function qt(e, t, r, n, i, s, o = null, u = [-1]) {
157
+ const h = Ne;
158
+ X(e);
159
159
  const a = e.$$ = {
160
160
  fragment: null,
161
161
  ctx: [],
@@ -163,37 +163,37 @@ function Qt(e, t, r, n, i, s, o = null, h = [-1]) {
163
163
  props: s,
164
164
  update: _,
165
165
  not_equal: i,
166
- bound: Ce(),
166
+ bound: Ue(),
167
167
  // lifecycle
168
168
  on_mount: [],
169
169
  on_destroy: [],
170
170
  on_disconnect: [],
171
171
  before_update: [],
172
172
  after_update: [],
173
- context: new Map(t.context || (u ? u.$$.context : [])),
173
+ context: new Map(t.context || (h ? h.$$.context : [])),
174
174
  // everything else
175
- callbacks: Ce(),
176
- dirty: h,
175
+ callbacks: Ue(),
176
+ dirty: u,
177
177
  skip_bound: !1,
178
- root: t.target || u.$$.root
178
+ root: t.target || h.$$.root
179
179
  };
180
180
  o && o(a.root);
181
181
  let l = !1;
182
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
183
- const g = b.length ? b[0] : c;
184
- return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Zt(e, f)), c;
185
- }) : [], a.update(), l = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
182
+ if (a.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
183
+ const b = d.length ? d[0] : c;
184
+ return a.ctx && i(a.ctx[f], a.ctx[f] = b) && (!a.skip_bound && a.bound[f] && a.bound[f](b), l && Jt(e, f)), c;
185
+ }) : [], a.update(), l = !0, Z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
186
186
  if (t.hydrate) {
187
- const f = Ut(t.target);
188
- a.fragment && a.fragment.l(f), f.forEach(Ae);
187
+ const f = Dt(t.target);
188
+ a.fragment && a.fragment.l(f), f.forEach(Oe);
189
189
  } else
190
190
  a.fragment && a.fragment.c();
191
- t.intro && Xt(e.$$.fragment), Wt(e, t.target, t.anchor), w();
191
+ t.intro && zt(e.$$.fragment), Zt(e, t.target, t.anchor), $();
192
192
  }
193
- k(u);
193
+ X(h);
194
194
  }
195
- let st;
196
- typeof HTMLElement == "function" && (st = class extends HTMLElement {
195
+ let at;
196
+ typeof HTMLElement == "function" && (at = class extends HTMLElement {
197
197
  constructor(t, r, n) {
198
198
  super();
199
199
  /** The Svelte component constructor */
@@ -230,42 +230,42 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
230
230
  }
231
231
  }
232
232
  connectedCallback() {
233
- return Me(this, null, function* () {
233
+ return Re(this, null, function* () {
234
234
  if (this.$$cn = !0, !this.$$c) {
235
235
  let t = function(s) {
236
236
  return () => {
237
237
  let o;
238
238
  return {
239
239
  c: function() {
240
- o = it("slot"), s !== "default" && Rt(o, "name", s);
240
+ o = ot("slot"), s !== "default" && Gt(o, "name", s);
241
241
  },
242
242
  /**
243
243
  * @param {HTMLElement} target
244
244
  * @param {HTMLElement} [anchor]
245
245
  */
246
246
  m: function(a, l) {
247
- nt(a, o, l);
247
+ st(a, o, l);
248
248
  },
249
249
  d: function(a) {
250
- a && Ae(o);
250
+ a && Oe(o);
251
251
  }
252
252
  };
253
253
  };
254
254
  };
255
255
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
256
256
  return;
257
- const r = {}, n = Gt(this);
257
+ const r = {}, n = Ft(this);
258
258
  for (const s of this.$$s)
259
259
  s in n && (r[s] = [t(s)]);
260
260
  for (const s of this.attributes) {
261
261
  const o = this.$$g_p(s.name);
262
- o in this.$$d || (this.$$d[o] = q(o, s.value, this.$$p_d, "toProp"));
262
+ o in this.$$d || (this.$$d[o] = Y(o, s.value, this.$$p_d, "toProp"));
263
263
  }
264
264
  for (const s in this.$$p_d)
265
265
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
266
266
  this.$$c = new this.$$ctor({
267
267
  target: this.shadowRoot || this,
268
- props: Le($e({}, this.$$d), {
268
+ props: Ce(Me({}, this.$$d), {
269
269
  $$slots: r,
270
270
  $$scope: {
271
271
  ctx: []
@@ -276,7 +276,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
276
276
  this.$$r = !0;
277
277
  for (const s in this.$$p_d)
278
278
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
279
- const o = q(
279
+ const o = Y(
280
280
  s,
281
281
  this.$$d[s],
282
282
  this.$$p_d,
@@ -289,8 +289,8 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
289
289
  this.$$c.$$.after_update.push(i), i();
290
290
  for (const s in this.$$l)
291
291
  for (const o of this.$$l[s]) {
292
- const h = this.$$c.$on(s, o);
293
- this.$$l_u.set(o, h);
292
+ const u = this.$$c.$on(s, o);
293
+ this.$$l_u.set(o, u);
294
294
  }
295
295
  this.$$l = {};
296
296
  }
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
300
300
  // and setting attributes through setAttribute etc, this is helpful
301
301
  attributeChangedCallback(t, r, n) {
302
302
  var i;
303
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = q(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
303
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Y(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
304
304
  }
305
305
  disconnectedCallback() {
306
306
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
313
313
  ) || t;
314
314
  }
315
315
  });
316
- function q(e, t, r, n) {
316
+ function Y(e, t, r, n) {
317
317
  var s;
318
318
  const i = (s = r[e]) == null ? void 0 : s.type;
319
319
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -343,38 +343,38 @@ function q(e, t, r, n) {
343
343
  return t;
344
344
  }
345
345
  }
346
- function Jt(e, t, r, n, i, s) {
347
- let o = class extends st {
346
+ function Yt(e, t, r, n, i, s) {
347
+ let o = class extends at {
348
348
  constructor() {
349
349
  super(e, r, i), this.$$p_d = t;
350
350
  }
351
351
  static get observedAttributes() {
352
352
  return Object.keys(t).map(
353
- (h) => (t[h].attribute || h).toLowerCase()
353
+ (u) => (t[u].attribute || u).toLowerCase()
354
354
  );
355
355
  }
356
356
  };
357
- return Object.keys(t).forEach((h) => {
358
- Object.defineProperty(o.prototype, h, {
357
+ return Object.keys(t).forEach((u) => {
358
+ Object.defineProperty(o.prototype, u, {
359
359
  get() {
360
- return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
360
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
361
361
  },
362
- set(u) {
362
+ set(h) {
363
363
  var a;
364
- u = q(h, u, t), this.$$d[h] = u, (a = this.$$c) == null || a.$set({ [h]: u });
364
+ h = Y(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
365
365
  }
366
366
  });
367
- }), n.forEach((h) => {
368
- Object.defineProperty(o.prototype, h, {
367
+ }), n.forEach((u) => {
368
+ Object.defineProperty(o.prototype, u, {
369
369
  get() {
370
- var u;
371
- return (u = this.$$c) == null ? void 0 : u[h];
370
+ var h;
371
+ return (h = this.$$c) == null ? void 0 : h[u];
372
372
  }
373
373
  });
374
374
  }), e.element = /** @type {any} */
375
375
  o, o;
376
376
  }
377
- class qt {
377
+ class Kt {
378
378
  constructor() {
379
379
  /**
380
380
  * ### PRIVATE API
@@ -395,7 +395,7 @@ class qt {
395
395
  }
396
396
  /** @returns {void} */
397
397
  $destroy() {
398
- zt(this, 1), this.$destroy = _;
398
+ Qt(this, 1), this.$destroy = _;
399
399
  }
400
400
  /**
401
401
  * @template {Extract<keyof Events, string>} K
@@ -404,7 +404,7 @@ class qt {
404
404
  * @returns {() => void}
405
405
  */
406
406
  $on(t, r) {
407
- if (!Be(r))
407
+ if (!Pe(r))
408
408
  return _;
409
409
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
410
410
  return n.push(r), () => {
@@ -417,190 +417,176 @@ class qt {
417
417
  * @returns {void}
418
418
  */
419
419
  $set(t) {
420
- this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
420
+ this.$$set && !Rt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
421
421
  }
422
422
  }
423
- const Yt = "4";
424
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yt);
425
- const O = [];
426
- function Kt(e, t) {
423
+ const er = "4";
424
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
425
+ const w = [];
426
+ function tr(e, t) {
427
427
  return {
428
- subscribe: re(e, t).subscribe
428
+ subscribe: ie(e, t).subscribe
429
429
  };
430
430
  }
431
- function re(e, t = _) {
431
+ function ie(e, t = _) {
432
432
  let r;
433
433
  const n = /* @__PURE__ */ new Set();
434
- function i(h) {
435
- if (tt(e, h) && (e = h, r)) {
436
- const u = !O.length;
434
+ function i(u) {
435
+ if (nt(e, u) && (e = u, r)) {
436
+ const h = !w.length;
437
437
  for (const a of n)
438
- a[1](), O.push(a, e);
439
- if (u) {
440
- for (let a = 0; a < O.length; a += 2)
441
- O[a][0](O[a + 1]);
442
- O.length = 0;
438
+ a[1](), w.push(a, e);
439
+ if (h) {
440
+ for (let a = 0; a < w.length; a += 2)
441
+ w[a][0](w[a + 1]);
442
+ w.length = 0;
443
443
  }
444
444
  }
445
445
  }
446
- function s(h) {
447
- i(h(e));
446
+ function s(u) {
447
+ i(u(e));
448
448
  }
449
- function o(h, u = _) {
450
- const a = [h, u];
451
- return n.add(a), n.size === 1 && (r = t(i, s) || _), h(e), () => {
449
+ function o(u, h = _) {
450
+ const a = [u, h];
451
+ return n.add(a), n.size === 1 && (r = t(i, s) || _), u(e), () => {
452
452
  n.delete(a), n.size === 0 && r && (r(), r = null);
453
453
  };
454
454
  }
455
455
  return { set: i, update: s, subscribe: o };
456
456
  }
457
- function U(e, t, r) {
457
+ function G(e, t, r) {
458
458
  const n = !Array.isArray(e), i = n ? [e] : e;
459
459
  if (!i.every(Boolean))
460
460
  throw new Error("derived() expects stores as input, got a falsy value");
461
461
  const s = t.length < 2;
462
- return Kt(r, (o, h) => {
463
- let u = !1;
462
+ return tr(r, (o, u) => {
463
+ let h = !1;
464
464
  const a = [];
465
465
  let l = 0, f = _;
466
466
  const c = () => {
467
467
  if (l)
468
468
  return;
469
469
  f();
470
- const g = t(n ? a[0] : a, o, h);
471
- s ? o(g) : f = Be(g) ? g : _;
472
- }, b = i.map(
473
- (g, x) => rt(
474
- g,
470
+ const b = t(n ? a[0] : a, o, u);
471
+ s ? o(b) : f = Pe(b) ? b : _;
472
+ }, d = i.map(
473
+ (b, x) => it(
474
+ b,
475
475
  (T) => {
476
- a[x] = T, l &= ~(1 << x), u && c();
476
+ a[x] = T, l &= ~(1 << x), h && c();
477
477
  },
478
478
  () => {
479
479
  l |= 1 << x;
480
480
  }
481
481
  )
482
482
  );
483
- return u = !0, c(), function() {
484
- z(b), f(), u = !1;
483
+ return h = !0, c(), function() {
484
+ Z(d), f(), h = !1;
485
485
  };
486
486
  });
487
487
  }
488
- function er(e) {
488
+ function rr(e) {
489
489
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
490
490
  }
491
- var tr = function(t) {
492
- return rr(t) && !nr(t);
491
+ var nr = function(t) {
492
+ return ir(t) && !sr(t);
493
493
  };
494
- function rr(e) {
494
+ function ir(e) {
495
495
  return !!e && typeof e == "object";
496
496
  }
497
- function nr(e) {
497
+ function sr(e) {
498
498
  var t = Object.prototype.toString.call(e);
499
- return t === "[object RegExp]" || t === "[object Date]" || or(e);
499
+ return t === "[object RegExp]" || t === "[object Date]" || ur(e);
500
500
  }
501
- var ir = typeof Symbol == "function" && Symbol.for, sr = ir ? Symbol.for("react.element") : 60103;
502
- function or(e) {
503
- return e.$$typeof === sr;
501
+ var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
502
+ function ur(e) {
503
+ return e.$$typeof === ar;
504
504
  }
505
- function ar(e) {
505
+ function hr(e) {
506
506
  return Array.isArray(e) ? [] : {};
507
507
  }
508
- function X(e, t) {
509
- return t.clone !== !1 && t.isMergeableObject(e) ? L(ar(e), e, t) : e;
508
+ function W(e, t) {
509
+ return t.clone !== !1 && t.isMergeableObject(e) ? M(hr(e), e, t) : e;
510
510
  }
511
- function hr(e, t, r) {
511
+ function lr(e, t, r) {
512
512
  return e.concat(t).map(function(n) {
513
- return X(n, r);
513
+ return W(n, r);
514
514
  });
515
515
  }
516
- function ur(e, t) {
516
+ function fr(e, t) {
517
517
  if (!t.customMerge)
518
- return L;
518
+ return M;
519
519
  var r = t.customMerge(e);
520
- return typeof r == "function" ? r : L;
520
+ return typeof r == "function" ? r : M;
521
521
  }
522
- function lr(e) {
522
+ function cr(e) {
523
523
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
524
524
  return Object.propertyIsEnumerable.call(e, t);
525
525
  }) : [];
526
526
  }
527
- function Ge(e) {
528
- return Object.keys(e).concat(lr(e));
527
+ function Fe(e) {
528
+ return Object.keys(e).concat(cr(e));
529
529
  }
530
- function ot(e, t) {
530
+ function ut(e, t) {
531
531
  try {
532
532
  return t in e;
533
533
  } catch (r) {
534
534
  return !1;
535
535
  }
536
536
  }
537
- function fr(e, t) {
538
- return ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
537
+ function mr(e, t) {
538
+ return ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
539
539
  }
540
- function cr(e, t, r) {
540
+ function pr(e, t, r) {
541
541
  var n = {};
542
- return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
543
- n[i] = X(e[i], r);
544
- }), Ge(t).forEach(function(i) {
545
- fr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = ur(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
542
+ return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
543
+ n[i] = W(e[i], r);
544
+ }), Fe(t).forEach(function(i) {
545
+ mr(e, i) || (ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = W(t[i], r));
546
546
  }), n;
547
547
  }
548
- function L(e, t, r) {
549
- r = r || {}, r.arrayMerge = r.arrayMerge || hr, r.isMergeableObject = r.isMergeableObject || tr, r.cloneUnlessOtherwiseSpecified = X;
548
+ function M(e, t, r) {
549
+ r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = W;
550
550
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
551
- return s ? n ? r.arrayMerge(e, t, r) : cr(e, t, r) : X(t, r);
551
+ return s ? n ? r.arrayMerge(e, t, r) : pr(e, t, r) : W(t, r);
552
552
  }
553
- L.all = function(t, r) {
553
+ M.all = function(t, r) {
554
554
  if (!Array.isArray(t))
555
555
  throw new Error("first argument should be an array");
556
556
  return t.reduce(function(n, i) {
557
- return L(n, i, r);
557
+ return M(n, i, r);
558
558
  }, {});
559
559
  };
560
- var mr = L, pr = mr;
561
- const dr = /* @__PURE__ */ er(pr);
562
- /*! *****************************************************************************
563
- Copyright (c) Microsoft Corporation.
564
-
565
- Permission to use, copy, modify, and/or distribute this software for any
566
- purpose with or without fee is hereby granted.
567
-
568
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
569
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
570
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
571
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
572
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
573
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
574
- PERFORMANCE OF THIS SOFTWARE.
575
- ***************************************************************************** */
576
- var ge = function(e, t) {
577
- return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
560
+ var dr = M, br = dr;
561
+ const gr = /* @__PURE__ */ rr(br);
562
+ var ye = function(e, t) {
563
+ return ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
578
564
  r.__proto__ = n;
579
565
  } || function(r, n) {
580
566
  for (var i in n)
581
567
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
582
- }, ge(e, t);
568
+ }, ye(e, t);
583
569
  };
584
- function ne(e, t) {
570
+ function se(e, t) {
585
571
  if (typeof t != "function" && t !== null)
586
572
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
587
- ge(e, t);
573
+ ye(e, t);
588
574
  function r() {
589
575
  this.constructor = e;
590
576
  }
591
577
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
592
578
  }
593
- var d = function() {
594
- return d = Object.assign || function(t) {
579
+ var S = function() {
580
+ return S = Object.assign || function(t) {
595
581
  for (var r, n = 1, i = arguments.length; n < i; n++) {
596
582
  r = arguments[n];
597
583
  for (var s in r)
598
584
  Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
599
585
  }
600
586
  return t;
601
- }, d.apply(this, arguments);
587
+ }, S.apply(this, arguments);
602
588
  };
603
- function br(e, t) {
589
+ function Er(e, t) {
604
590
  var r = {};
605
591
  for (var n in e)
606
592
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -609,43 +595,43 @@ function br(e, t) {
609
595
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
610
596
  return r;
611
597
  }
612
- function ue(e, t, r) {
613
- if (arguments.length === 2)
598
+ function fe(e, t, r) {
599
+ if (r || arguments.length === 2)
614
600
  for (var n = 0, i = t.length, s; n < i; n++)
615
601
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
616
- return e.concat(s || t);
602
+ return e.concat(s || Array.prototype.slice.call(t));
617
603
  }
618
- function le(e, t) {
619
- var r = t && t.cache ? t.cache : Hr, n = t && t.serializer ? t.serializer : vr, i = t && t.strategy ? t.strategy : yr;
604
+ function ce(e, t) {
605
+ var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : vr;
620
606
  return i(e, {
621
607
  cache: r,
622
608
  serializer: n
623
609
  });
624
610
  }
625
- function gr(e) {
611
+ function yr(e) {
626
612
  return e == null || typeof e == "number" || typeof e == "boolean";
627
613
  }
628
- function Er(e, t, r, n) {
629
- var i = gr(n) ? n : r(n), s = t.get(i);
614
+ function xr(e, t, r, n) {
615
+ var i = yr(n) ? n : r(n), s = t.get(i);
630
616
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
631
617
  }
632
- function at(e, t, r) {
618
+ function ht(e, t, r) {
633
619
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
634
620
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
635
621
  }
636
- function ht(e, t, r, n, i) {
622
+ function lt(e, t, r, n, i) {
637
623
  return r.bind(t, e, n, i);
638
624
  }
639
- function yr(e, t) {
640
- var r = e.length === 1 ? Er : at;
641
- return ht(e, this, r, t.cache.create(), t.serializer);
625
+ function vr(e, t) {
626
+ var r = e.length === 1 ? xr : ht;
627
+ return lt(e, this, r, t.cache.create(), t.serializer);
642
628
  }
643
- function xr(e, t) {
644
- return ht(e, this, at, t.cache.create(), t.serializer);
629
+ function _r(e, t) {
630
+ return lt(e, this, ht, t.cache.create(), t.serializer);
645
631
  }
646
- var vr = function() {
632
+ var Hr = function() {
647
633
  return JSON.stringify(arguments);
648
- }, _r = (
634
+ }, Sr = (
649
635
  /** @class */
650
636
  function() {
651
637
  function e() {
@@ -657,61 +643,71 @@ var vr = function() {
657
643
  this.cache[t] = r;
658
644
  }, e;
659
645
  }()
660
- ), Hr = {
646
+ ), Tr = {
661
647
  create: function() {
662
- return new _r();
648
+ return new Sr();
663
649
  }
664
- }, fe = {
665
- variadic: xr
666
- }, m;
650
+ }, me = {
651
+ variadic: _r
652
+ }, te = function() {
653
+ return te = Object.assign || function(t) {
654
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
655
+ r = arguments[n];
656
+ for (var s in r)
657
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
658
+ }
659
+ return t;
660
+ }, te.apply(this, arguments);
661
+ };
662
+ var m;
667
663
  (function(e) {
668
664
  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";
669
665
  })(m || (m = {}));
670
- var E;
666
+ var g;
671
667
  (function(e) {
672
668
  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";
673
- })(E || (E = {}));
674
- var M;
669
+ })(g || (g = {}));
670
+ var C;
675
671
  (function(e) {
676
672
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
677
- })(M || (M = {}));
678
- function De(e) {
679
- return e.type === E.literal;
680
- }
681
- function Tr(e) {
682
- return e.type === E.argument;
683
- }
684
- function ut(e) {
685
- return e.type === E.number;
673
+ })(C || (C = {}));
674
+ function je(e) {
675
+ return e.type === g.literal;
686
676
  }
687
- function lt(e) {
688
- return e.type === E.date;
677
+ function Br(e) {
678
+ return e.type === g.argument;
689
679
  }
690
680
  function ft(e) {
691
- return e.type === E.time;
681
+ return e.type === g.number;
692
682
  }
693
683
  function ct(e) {
694
- return e.type === E.select;
684
+ return e.type === g.date;
695
685
  }
696
686
  function mt(e) {
697
- return e.type === E.plural;
698
- }
699
- function Sr(e) {
700
- return e.type === E.pound;
687
+ return e.type === g.time;
701
688
  }
702
689
  function pt(e) {
703
- return e.type === E.tag;
690
+ return e.type === g.select;
704
691
  }
705
692
  function dt(e) {
706
- return !!(e && typeof e == "object" && e.type === M.number);
693
+ return e.type === g.plural;
707
694
  }
708
- function Ee(e) {
709
- return !!(e && typeof e == "object" && e.type === M.dateTime);
710
- }
711
- var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Br = /(?:[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;
712
695
  function Ar(e) {
696
+ return e.type === g.pound;
697
+ }
698
+ function bt(e) {
699
+ return e.type === g.tag;
700
+ }
701
+ function gt(e) {
702
+ return !!(e && typeof e == "object" && e.type === C.number);
703
+ }
704
+ function xe(e) {
705
+ return !!(e && typeof e == "object" && e.type === C.dateTime);
706
+ }
707
+ var Et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
708
+ function Or(e) {
713
709
  var t = {};
714
- return e.replace(Br, function(r) {
710
+ return e.replace(Pr, function(r) {
715
711
  var n = r.length;
716
712
  switch (r[0]) {
717
713
  case "G":
@@ -800,36 +796,46 @@ function Ar(e) {
800
796
  return "";
801
797
  }), t;
802
798
  }
803
- var Pr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
804
- function Nr(e) {
799
+ var E = function() {
800
+ return E = Object.assign || function(t) {
801
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
802
+ r = arguments[n];
803
+ for (var s in r)
804
+ Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
805
+ }
806
+ return t;
807
+ }, E.apply(this, arguments);
808
+ };
809
+ var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
810
+ function wr(e) {
805
811
  if (e.length === 0)
806
812
  throw new Error("Number skeleton cannot be empty");
807
- for (var t = e.split(Pr).filter(function(c) {
813
+ for (var t = e.split(Nr).filter(function(c) {
808
814
  return c.length > 0;
809
815
  }), r = [], n = 0, i = t; n < i.length; n++) {
810
816
  var s = i[n], o = s.split("/");
811
817
  if (o.length === 0)
812
818
  throw new Error("Invalid number skeleton");
813
- for (var h = o[0], u = o.slice(1), a = 0, l = u; a < l.length; a++) {
819
+ for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
814
820
  var f = l[a];
815
821
  if (f.length === 0)
816
822
  throw new Error("Invalid number skeleton");
817
823
  }
818
- r.push({ stem: h, options: u });
824
+ r.push({ stem: u, options: h });
819
825
  }
820
826
  return r;
821
827
  }
822
- function Or(e) {
828
+ function Ir(e) {
823
829
  return e.replace(/^(.*?)-/, "");
824
830
  }
825
- var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gt = /^(@+)?(\+|#+)?[rs]?$/g, Ir = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
826
- function je(e) {
831
+ var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yt = /^(@+)?(\+|#+)?[rs]?$/g, $r = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
832
+ function ke(e) {
827
833
  var t = {};
828
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gt, function(r, n, i) {
834
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yt, function(r, n, i) {
829
835
  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)), "";
830
836
  }), t;
831
837
  }
832
- function yt(e) {
838
+ function vt(e) {
833
839
  switch (e) {
834
840
  case "sign-auto":
835
841
  return {
@@ -869,7 +875,7 @@ function yt(e) {
869
875
  };
870
876
  }
871
877
  }
872
- function wr(e) {
878
+ function Lr(e) {
873
879
  var t;
874
880
  if (e[0] === "E" && e[1] === "E" ? (t = {
875
881
  notation: "engineering"
@@ -877,17 +883,17 @@ function wr(e) {
877
883
  notation: "scientific"
878
884
  }, e = e.slice(1)), t) {
879
885
  var r = e.slice(0, 2);
880
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
886
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xt.test(e))
881
887
  throw new Error("Malformed concise eng/scientific notation");
882
888
  t.minimumIntegerDigits = e.length;
883
889
  }
884
890
  return t;
885
891
  }
886
- function Ve(e) {
887
- var t = {}, r = yt(e);
892
+ function Xe(e) {
893
+ var t = {}, r = vt(e);
888
894
  return r || t;
889
895
  }
890
- function $r(e) {
896
+ function Mr(e) {
891
897
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
892
898
  var i = n[r];
893
899
  switch (i.stem) {
@@ -911,7 +917,7 @@ function $r(e) {
911
917
  continue;
912
918
  case "measure-unit":
913
919
  case "unit":
914
- t.style = "unit", t.unit = Or(i.options[0]);
920
+ t.style = "unit", t.unit = Ir(i.options[0]);
915
921
  continue;
916
922
  case "compact-short":
917
923
  case "K":
@@ -922,13 +928,13 @@ function $r(e) {
922
928
  t.notation = "compact", t.compactDisplay = "long";
923
929
  continue;
924
930
  case "scientific":
925
- t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
926
- return d(d({}, u), Ve(a));
931
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
932
+ return E(E({}, h), Xe(a));
927
933
  }, {}));
928
934
  continue;
929
935
  case "engineering":
930
- t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
931
- return d(d({}, u), Ve(a));
936
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
937
+ return E(E({}, h), Xe(a));
932
938
  }, {}));
933
939
  continue;
934
940
  case "notation-simple":
@@ -973,45 +979,45 @@ function $r(e) {
973
979
  case "integer-width":
974
980
  if (i.options.length > 1)
975
981
  throw new RangeError("integer-width stems only accept a single optional option");
976
- i.options[0].replace(Ir, function(u, a, l, f, c, b) {
982
+ i.options[0].replace($r, function(h, a, l, f, c, d) {
977
983
  if (a)
978
984
  t.minimumIntegerDigits = l.length;
979
985
  else {
980
986
  if (f && c)
981
987
  throw new Error("We currently do not support maximum integer digits");
982
- if (b)
988
+ if (d)
983
989
  throw new Error("We currently do not support exact integer digits");
984
990
  }
985
991
  return "";
986
992
  });
987
993
  continue;
988
994
  }
989
- if (Et.test(i.stem)) {
995
+ if (xt.test(i.stem)) {
990
996
  t.minimumIntegerDigits = i.stem.length;
991
997
  continue;
992
998
  }
993
- if (Fe.test(i.stem)) {
999
+ if (Ve.test(i.stem)) {
994
1000
  if (i.options.length > 1)
995
1001
  throw new RangeError("Fraction-precision stems only accept a single optional option");
996
- i.stem.replace(Fe, function(u, a, l, f, c, b) {
997
- return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1002
+ i.stem.replace(Ve, function(h, a, l, f, c, d) {
1003
+ return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
998
1004
  });
999
1005
  var s = i.options[0];
1000
- s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
1006
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ke(s)));
1001
1007
  continue;
1002
1008
  }
1003
- if (gt.test(i.stem)) {
1004
- t = d(d({}, t), je(i.stem));
1009
+ if (yt.test(i.stem)) {
1010
+ t = E(E({}, t), ke(i.stem));
1005
1011
  continue;
1006
1012
  }
1007
- var o = yt(i.stem);
1008
- o && (t = d(d({}, t), o));
1009
- var h = wr(i.stem);
1010
- h && (t = d(d({}, t), h));
1013
+ var o = vt(i.stem);
1014
+ o && (t = E(E({}, t), o));
1015
+ var u = Lr(i.stem);
1016
+ u && (t = E(E({}, t), u));
1011
1017
  }
1012
1018
  return t;
1013
1019
  }
1014
- var J = {
1020
+ var q = {
1015
1021
  "001": [
1016
1022
  "H",
1017
1023
  "h"
@@ -2426,15 +2432,15 @@ var J = {
2426
2432
  "h"
2427
2433
  ]
2428
2434
  };
2429
- function Lr(e, t) {
2435
+ function Cr(e, t) {
2430
2436
  for (var r = "", n = 0; n < e.length; n++) {
2431
2437
  var i = e.charAt(n);
2432
2438
  if (i === "j") {
2433
2439
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2434
2440
  s++, n++;
2435
- var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a = Mr(t);
2436
- for ((a == "H" || a == "k") && (h = 0); h-- > 0; )
2437
- r += u;
2441
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = Rr(t);
2442
+ for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2443
+ r += h;
2438
2444
  for (; o-- > 0; )
2439
2445
  r = a + r;
2440
2446
  } else
@@ -2442,7 +2448,7 @@ function Lr(e, t) {
2442
2448
  }
2443
2449
  return r;
2444
2450
  }
2445
- function Mr(e) {
2451
+ function Rr(e) {
2446
2452
  var t = e.hourCycle;
2447
2453
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2448
2454
  e.hourCycles && // @ts-ignore
@@ -2461,23 +2467,23 @@ function Mr(e) {
2461
2467
  }
2462
2468
  var r = e.language, n;
2463
2469
  r !== "root" && (n = e.maximize().region);
2464
- var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
2470
+ var i = q[n || ""] || q[r || ""] || q["".concat(r, "-001")] || q["001"];
2465
2471
  return i[0];
2466
2472
  }
2467
- var ce, Cr = new RegExp("^".concat(bt.source, "*")), Rr = new RegExp("".concat(bt.source, "*$"));
2473
+ var pe, Ur = new RegExp("^".concat(Et.source, "*")), Gr = new RegExp("".concat(Et.source, "*$"));
2468
2474
  function p(e, t) {
2469
2475
  return { start: e, end: t };
2470
2476
  }
2471
- var Ur = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gr = !!String.fromCodePoint, Dr = !!Object.fromEntries, Fr = !!String.prototype.codePointAt, jr = !!String.prototype.trimStart, Vr = !!String.prototype.trimEnd, kr = !!Number.isSafeInteger, Xr = kr ? Number.isSafeInteger : function(e) {
2477
+ var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, zr = Wr ? Number.isSafeInteger : function(e) {
2472
2478
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2473
- }, ye = !0;
2479
+ }, ve = !0;
2474
2480
  try {
2475
- var Wr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2476
- ye = ((ce = Wr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
2481
+ var Zr = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2482
+ ve = ((pe = Zr.exec("a")) === null || pe === void 0 ? void 0 : pe[0]) === "a";
2477
2483
  } catch (e) {
2478
- ye = !1;
2484
+ ve = !1;
2479
2485
  }
2480
- var ke = Ur ? (
2486
+ var We = Dr ? (
2481
2487
  // Native
2482
2488
  function(t, r, n) {
2483
2489
  return t.startsWith(r, n);
@@ -2487,7 +2493,7 @@ var ke = Ur ? (
2487
2493
  function(t, r, n) {
2488
2494
  return t.slice(n, n + r.length) === r;
2489
2495
  }
2490
- ), xe = Gr ? String.fromCodePoint : (
2496
+ ), _e = Fr ? String.fromCodePoint : (
2491
2497
  // IE11
2492
2498
  function() {
2493
2499
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2499,19 +2505,19 @@ var ke = Ur ? (
2499
2505
  }
2500
2506
  return n;
2501
2507
  }
2502
- ), Xe = (
2508
+ ), ze = (
2503
2509
  // native
2504
- Dr ? Object.fromEntries : (
2510
+ jr ? Object.fromEntries : (
2505
2511
  // Ponyfill
2506
2512
  function(t) {
2507
2513
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2508
- var s = i[n], o = s[0], h = s[1];
2509
- r[o] = h;
2514
+ var s = i[n], o = s[0], u = s[1];
2515
+ r[o] = u;
2510
2516
  }
2511
2517
  return r;
2512
2518
  }
2513
2519
  )
2514
- ), xt = Fr ? (
2520
+ ), _t = Vr ? (
2515
2521
  // Native
2516
2522
  function(t, r) {
2517
2523
  return t.codePointAt(r);
@@ -2525,7 +2531,7 @@ var ke = Ur ? (
2525
2531
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2526
2532
  }
2527
2533
  }
2528
- ), zr = jr ? (
2534
+ ), Qr = kr ? (
2529
2535
  // Native
2530
2536
  function(t) {
2531
2537
  return t.trimStart();
@@ -2533,9 +2539,9 @@ var ke = Ur ? (
2533
2539
  ) : (
2534
2540
  // Ponyfill
2535
2541
  function(t) {
2536
- return t.replace(Cr, "");
2542
+ return t.replace(Ur, "");
2537
2543
  }
2538
- ), Zr = Vr ? (
2544
+ ), Jr = Xr ? (
2539
2545
  // Native
2540
2546
  function(t) {
2541
2547
  return t.trimEnd();
@@ -2543,32 +2549,32 @@ var ke = Ur ? (
2543
2549
  ) : (
2544
2550
  // Ponyfill
2545
2551
  function(t) {
2546
- return t.replace(Rr, "");
2552
+ return t.replace(Gr, "");
2547
2553
  }
2548
2554
  );
2549
- function vt(e, t) {
2555
+ function Ht(e, t) {
2550
2556
  return new RegExp(e, t);
2551
2557
  }
2552
- var ve;
2553
- if (ye) {
2554
- var We = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2555
- ve = function(t, r) {
2558
+ var He;
2559
+ if (ve) {
2560
+ var Ze = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2561
+ He = function(t, r) {
2556
2562
  var n;
2557
- We.lastIndex = r;
2558
- var i = We.exec(t);
2563
+ Ze.lastIndex = r;
2564
+ var i = Ze.exec(t);
2559
2565
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2560
2566
  };
2561
2567
  } else
2562
- ve = function(t, r) {
2568
+ He = function(t, r) {
2563
2569
  for (var n = []; ; ) {
2564
- var i = xt(t, r);
2565
- if (i === void 0 || _t(i) || Yr(i))
2570
+ var i = _t(t, r);
2571
+ if (i === void 0 || St(i) || en(i))
2566
2572
  break;
2567
2573
  n.push(i), r += i >= 65536 ? 2 : 1;
2568
2574
  }
2569
- return xe.apply(void 0, n);
2575
+ return _e.apply(void 0, n);
2570
2576
  };
2571
- var Qr = (
2577
+ var qr = (
2572
2578
  /** @class */
2573
2579
  function() {
2574
2580
  function e(t, r) {
@@ -2590,16 +2596,16 @@ var Qr = (
2590
2596
  if (s === 125 && t > 0)
2591
2597
  break;
2592
2598
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2593
- var h = this.clonePosition();
2599
+ var u = this.clonePosition();
2594
2600
  this.bump(), i.push({
2595
- type: E.pound,
2596
- location: p(h, this.clonePosition())
2601
+ type: g.pound,
2602
+ location: p(u, this.clonePosition())
2597
2603
  });
2598
2604
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2599
2605
  if (n)
2600
2606
  break;
2601
2607
  return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2602
- } else if (s === 60 && !this.ignoreTag && _e(this.peek() || 0)) {
2608
+ } else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
2603
2609
  var o = this.parseTag(t, r);
2604
2610
  if (o.err)
2605
2611
  return o;
@@ -2620,7 +2626,7 @@ var Qr = (
2620
2626
  if (this.bumpSpace(), this.bumpIf("/>"))
2621
2627
  return {
2622
2628
  val: {
2623
- type: E.literal,
2629
+ type: g.literal,
2624
2630
  value: "<".concat(i, "/>"),
2625
2631
  location: p(n, this.clonePosition())
2626
2632
  },
@@ -2630,27 +2636,27 @@ var Qr = (
2630
2636
  var s = this.parseMessage(t + 1, r, !0);
2631
2637
  if (s.err)
2632
2638
  return s;
2633
- var o = s.val, h = this.clonePosition();
2639
+ var o = s.val, u = this.clonePosition();
2634
2640
  if (this.bumpIf("</")) {
2635
- if (this.isEOF() || !_e(this.char()))
2636
- return this.error(m.INVALID_TAG, p(h, this.clonePosition()));
2637
- var u = this.clonePosition(), a = this.parseTagName();
2638
- return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2641
+ if (this.isEOF() || !Se(this.char()))
2642
+ return this.error(m.INVALID_TAG, p(u, this.clonePosition()));
2643
+ var h = this.clonePosition(), a = this.parseTagName();
2644
+ return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2639
2645
  val: {
2640
- type: E.tag,
2646
+ type: g.tag,
2641
2647
  value: i,
2642
2648
  children: o,
2643
2649
  location: p(n, this.clonePosition())
2644
2650
  },
2645
2651
  err: null
2646
- } : this.error(m.INVALID_TAG, p(h, this.clonePosition())));
2652
+ } : this.error(m.INVALID_TAG, p(u, this.clonePosition())));
2647
2653
  } else
2648
2654
  return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2649
2655
  } else
2650
2656
  return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2651
2657
  }, e.prototype.parseTagName = function() {
2652
2658
  var t = this.offset();
2653
- for (this.bump(); !this.isEOF() && qr(this.char()); )
2659
+ for (this.bump(); !this.isEOF() && Kr(this.char()); )
2654
2660
  this.bump();
2655
2661
  return this.message.slice(t, this.offset());
2656
2662
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2665,21 +2671,21 @@ var Qr = (
2665
2671
  i += o;
2666
2672
  continue;
2667
2673
  }
2668
- var h = this.tryParseLeftAngleBracket();
2669
- if (h) {
2670
- i += h;
2674
+ var u = this.tryParseLeftAngleBracket();
2675
+ if (u) {
2676
+ i += u;
2671
2677
  continue;
2672
2678
  }
2673
2679
  break;
2674
2680
  }
2675
- var u = p(n, this.clonePosition());
2681
+ var h = p(n, this.clonePosition());
2676
2682
  return {
2677
- val: { type: E.literal, value: i, location: u },
2683
+ val: { type: g.literal, value: i, location: h },
2678
2684
  err: null
2679
2685
  };
2680
2686
  }, e.prototype.tryParseLeftAngleBracket = function() {
2681
2687
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2682
- !Jr(this.peek() || 0)) ? (this.bump(), "<") : null;
2688
+ !Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
2683
2689
  }, e.prototype.tryParseQuote = function(t) {
2684
2690
  if (this.isEOF() || this.char() !== 39)
2685
2691
  return null;
@@ -2713,12 +2719,12 @@ var Qr = (
2713
2719
  r.push(n);
2714
2720
  this.bump();
2715
2721
  }
2716
- return xe.apply(void 0, r);
2722
+ return _e.apply(void 0, r);
2717
2723
  }, e.prototype.tryParseUnquoted = function(t, r) {
2718
2724
  if (this.isEOF())
2719
2725
  return null;
2720
2726
  var n = this.char();
2721
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), xe(n));
2727
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), _e(n));
2722
2728
  }, e.prototype.parseArgument = function(t, r) {
2723
2729
  var n = this.clonePosition();
2724
2730
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2734,7 +2740,7 @@ var Qr = (
2734
2740
  case 125:
2735
2741
  return this.bump(), {
2736
2742
  val: {
2737
- type: E.argument,
2743
+ type: g.argument,
2738
2744
  // value does not include the opening and closing braces.
2739
2745
  value: i,
2740
2746
  location: p(n, this.clonePosition())
@@ -2747,15 +2753,15 @@ var Qr = (
2747
2753
  return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2748
2754
  }
2749
2755
  }, e.prototype.parseIdentifierIfPossible = function() {
2750
- var t = this.clonePosition(), r = this.offset(), n = ve(this.message, r), i = r + n.length;
2756
+ var t = this.clonePosition(), r = this.offset(), n = He(this.message, r), i = r + n.length;
2751
2757
  this.bumpTo(i);
2752
2758
  var s = this.clonePosition(), o = p(t, s);
2753
2759
  return { value: n, location: o };
2754
2760
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2755
- var s, o = this.clonePosition(), h = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2756
- switch (h) {
2761
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2762
+ switch (u) {
2757
2763
  case "":
2758
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, u));
2764
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, h));
2759
2765
  case "number":
2760
2766
  case "date":
2761
2767
  case "time": {
@@ -2766,44 +2772,44 @@ var Qr = (
2766
2772
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2767
2773
  if (f.err)
2768
2774
  return f;
2769
- var c = Zr(f.val);
2775
+ var c = Jr(f.val);
2770
2776
  if (c.length === 0)
2771
2777
  return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2772
- var b = p(l, this.clonePosition());
2773
- a = { style: c, styleLocation: b };
2778
+ var d = p(l, this.clonePosition());
2779
+ a = { style: c, styleLocation: d };
2774
2780
  }
2775
- var g = this.tryParseArgumentClose(i);
2776
- if (g.err)
2777
- return g;
2781
+ var b = this.tryParseArgumentClose(i);
2782
+ if (b.err)
2783
+ return b;
2778
2784
  var x = p(i, this.clonePosition());
2779
- if (a && ke(a == null ? void 0 : a.style, "::", 0)) {
2780
- var T = zr(a.style.slice(2));
2781
- if (h === "number") {
2785
+ if (a && We(a == null ? void 0 : a.style, "::", 0)) {
2786
+ var T = Qr(a.style.slice(2));
2787
+ if (u === "number") {
2782
2788
  var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
2783
2789
  return f.err ? f : {
2784
- val: { type: E.number, value: n, location: x, style: f.val },
2790
+ val: { type: g.number, value: n, location: x, style: f.val },
2785
2791
  err: null
2786
2792
  };
2787
2793
  } else {
2788
2794
  if (T.length === 0)
2789
2795
  return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
2790
- var F = T;
2791
- this.locale && (F = Lr(T, this.locale));
2796
+ var j = T;
2797
+ this.locale && (j = Cr(T, this.locale));
2792
2798
  var c = {
2793
- type: M.dateTime,
2794
- pattern: F,
2799
+ type: C.dateTime,
2800
+ pattern: j,
2795
2801
  location: a.styleLocation,
2796
- parsedOptions: this.shouldParseSkeletons ? Ar(F) : {}
2797
- }, P = h === "date" ? E.date : E.time;
2802
+ parsedOptions: this.shouldParseSkeletons ? Or(j) : {}
2803
+ }, O = u === "date" ? g.date : g.time;
2798
2804
  return {
2799
- val: { type: P, value: n, location: x, style: c },
2805
+ val: { type: O, value: n, location: x, style: c },
2800
2806
  err: null
2801
2807
  };
2802
2808
  }
2803
2809
  }
2804
2810
  return {
2805
2811
  val: {
2806
- type: h === "number" ? E.number : h === "date" ? E.date : E.time,
2812
+ type: u === "number" ? g.number : u === "date" ? g.date : g.time,
2807
2813
  value: n,
2808
2814
  location: x,
2809
2815
  style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
@@ -2816,47 +2822,47 @@ var Qr = (
2816
2822
  case "select": {
2817
2823
  var H = this.clonePosition();
2818
2824
  if (this.bumpSpace(), !this.bumpIf(","))
2819
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, d({}, H)));
2825
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, te({}, H)));
2820
2826
  this.bumpSpace();
2821
- var j = this.parseIdentifierIfPossible(), B = 0;
2822
- if (h !== "select" && j.value === "offset") {
2827
+ var V = this.parseIdentifierIfPossible(), A = 0;
2828
+ if (u !== "select" && V.value === "offset") {
2823
2829
  if (!this.bumpIf(":"))
2824
2830
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2825
2831
  this.bumpSpace();
2826
2832
  var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2827
2833
  if (f.err)
2828
2834
  return f;
2829
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
2835
+ this.bumpSpace(), V = this.parseIdentifierIfPossible(), A = f.val;
2830
2836
  }
2831
- var Q = this.tryParsePluralOrSelectOptions(t, h, r, j);
2832
- if (Q.err)
2833
- return Q;
2834
- var g = this.tryParseArgumentClose(i);
2835
- if (g.err)
2836
- return g;
2837
- var Ie = p(i, this.clonePosition());
2838
- return h === "select" ? {
2837
+ var J = this.tryParsePluralOrSelectOptions(t, u, r, V);
2838
+ if (J.err)
2839
+ return J;
2840
+ var b = this.tryParseArgumentClose(i);
2841
+ if (b.err)
2842
+ return b;
2843
+ var $e = p(i, this.clonePosition());
2844
+ return u === "select" ? {
2839
2845
  val: {
2840
- type: E.select,
2846
+ type: g.select,
2841
2847
  value: n,
2842
- options: Xe(Q.val),
2843
- location: Ie
2848
+ options: ze(J.val),
2849
+ location: $e
2844
2850
  },
2845
2851
  err: null
2846
2852
  } : {
2847
2853
  val: {
2848
- type: E.plural,
2854
+ type: g.plural,
2849
2855
  value: n,
2850
- options: Xe(Q.val),
2851
- offset: B,
2852
- pluralType: h === "plural" ? "cardinal" : "ordinal",
2853
- location: Ie
2856
+ options: ze(J.val),
2857
+ offset: A,
2858
+ pluralType: u === "plural" ? "cardinal" : "ordinal",
2859
+ location: $e
2854
2860
  },
2855
2861
  err: null
2856
2862
  };
2857
2863
  }
2858
2864
  default:
2859
- return this.error(m.INVALID_ARGUMENT_TYPE, p(o, u));
2865
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(o, h));
2860
2866
  }
2861
2867
  }, e.prototype.tryParseArgumentClose = function(t) {
2862
2868
  return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2898,21 +2904,21 @@ var Qr = (
2898
2904
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2899
2905
  var n = [];
2900
2906
  try {
2901
- n = Nr(t);
2907
+ n = wr(t);
2902
2908
  } catch (i) {
2903
2909
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2904
2910
  }
2905
2911
  return {
2906
2912
  val: {
2907
- type: M.number,
2913
+ type: C.number,
2908
2914
  tokens: n,
2909
2915
  location: r,
2910
- parsedOptions: this.shouldParseSkeletons ? $r(n) : {}
2916
+ parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
2911
2917
  },
2912
2918
  err: null
2913
2919
  };
2914
2920
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2915
- for (var s, o = !1, h = [], u = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2921
+ for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2916
2922
  if (a.length === 0) {
2917
2923
  var f = this.clonePosition();
2918
2924
  if (r !== "select" && this.bumpIf("=")) {
@@ -2923,39 +2929,39 @@ var Qr = (
2923
2929
  } else
2924
2930
  break;
2925
2931
  }
2926
- if (u.has(a))
2932
+ if (h.has(a))
2927
2933
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2928
2934
  a === "other" && (o = !0), this.bumpSpace();
2929
- var b = this.clonePosition();
2935
+ var d = this.clonePosition();
2930
2936
  if (!this.bumpIf("{"))
2931
2937
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2932
- var g = this.parseMessage(t + 1, r, n);
2933
- if (g.err)
2934
- return g;
2935
- var x = this.tryParseArgumentClose(b);
2938
+ var b = this.parseMessage(t + 1, r, n);
2939
+ if (b.err)
2940
+ return b;
2941
+ var x = this.tryParseArgumentClose(d);
2936
2942
  if (x.err)
2937
2943
  return x;
2938
- h.push([
2944
+ u.push([
2939
2945
  a,
2940
2946
  {
2941
- value: g.val,
2942
- location: p(b, this.clonePosition())
2947
+ value: b.val,
2948
+ location: p(d, this.clonePosition())
2943
2949
  }
2944
- ]), u.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2950
+ ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2945
2951
  }
2946
- return h.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: h, err: null };
2952
+ return u.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2947
2953
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2948
2954
  var n = 1, i = this.clonePosition();
2949
2955
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2950
2956
  for (var s = !1, o = 0; !this.isEOF(); ) {
2951
- var h = this.char();
2952
- if (h >= 48 && h <= 57)
2953
- s = !0, o = o * 10 + (h - 48), this.bump();
2957
+ var u = this.char();
2958
+ if (u >= 48 && u <= 57)
2959
+ s = !0, o = o * 10 + (u - 48), this.bump();
2954
2960
  else
2955
2961
  break;
2956
2962
  }
2957
- var u = p(i, this.clonePosition());
2958
- return s ? (o *= n, Xr(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
2963
+ var h = p(i, this.clonePosition());
2964
+ return s ? (o *= n, zr(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
2959
2965
  }, e.prototype.offset = function() {
2960
2966
  return this.position.offset;
2961
2967
  }, e.prototype.isEOF = function() {
@@ -2970,7 +2976,7 @@ var Qr = (
2970
2976
  var t = this.position.offset;
2971
2977
  if (t >= this.message.length)
2972
2978
  throw Error("out of bound");
2973
- var r = xt(this.message, t);
2979
+ var r = _t(this.message, t);
2974
2980
  if (r === void 0)
2975
2981
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2976
2982
  return r;
@@ -2989,7 +2995,7 @@ var Qr = (
2989
2995
  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);
2990
2996
  }
2991
2997
  }, e.prototype.bumpIf = function(t) {
2992
- if (ke(this.message, t, this.offset())) {
2998
+ if (We(this.message, t, this.offset())) {
2993
2999
  for (var r = 0; r < t.length; r++)
2994
3000
  this.bump();
2995
3001
  return !0;
@@ -3011,7 +3017,7 @@ var Qr = (
3011
3017
  break;
3012
3018
  }
3013
3019
  }, e.prototype.bumpSpace = function() {
3014
- for (; !this.isEOF() && _t(this.char()); )
3020
+ for (; !this.isEOF() && St(this.char()); )
3015
3021
  this.bump();
3016
3022
  }, e.prototype.peek = function() {
3017
3023
  if (this.isEOF())
@@ -3021,47 +3027,47 @@ var Qr = (
3021
3027
  }, e;
3022
3028
  }()
3023
3029
  );
3024
- function _e(e) {
3030
+ function Se(e) {
3025
3031
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3026
3032
  }
3027
- function Jr(e) {
3028
- return _e(e) || e === 47;
3033
+ function Yr(e) {
3034
+ return Se(e) || e === 47;
3029
3035
  }
3030
- function qr(e) {
3036
+ function Kr(e) {
3031
3037
  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;
3032
3038
  }
3033
- function _t(e) {
3039
+ function St(e) {
3034
3040
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3035
3041
  }
3036
- function Yr(e) {
3042
+ function en(e) {
3037
3043
  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;
3038
3044
  }
3039
- function He(e) {
3045
+ function Te(e) {
3040
3046
  e.forEach(function(t) {
3041
- if (delete t.location, ct(t) || mt(t))
3047
+ if (delete t.location, pt(t) || dt(t))
3042
3048
  for (var r in t.options)
3043
- delete t.options[r].location, He(t.options[r].value);
3049
+ delete t.options[r].location, Te(t.options[r].value);
3044
3050
  else
3045
- ut(t) && dt(t.style) || (lt(t) || ft(t)) && Ee(t.style) ? delete t.style.location : pt(t) && He(t.children);
3051
+ ft(t) && gt(t.style) || (ct(t) || mt(t)) && xe(t.style) ? delete t.style.location : bt(t) && Te(t.children);
3046
3052
  });
3047
3053
  }
3048
- function Kr(e, t) {
3049
- t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3050
- var r = new Qr(e, t).parse();
3054
+ function tn(e, t) {
3055
+ t === void 0 && (t = {}), t = te({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3056
+ var r = new qr(e, t).parse();
3051
3057
  if (r.err) {
3052
3058
  var n = SyntaxError(m[r.err.kind]);
3053
3059
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3054
3060
  }
3055
- return t != null && t.captureLocation || He(r.val), r.val;
3061
+ return t != null && t.captureLocation || Te(r.val), r.val;
3056
3062
  }
3057
- var C;
3063
+ var R;
3058
3064
  (function(e) {
3059
3065
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3060
- })(C || (C = {}));
3061
- var ie = (
3066
+ })(R || (R = {}));
3067
+ var oe = (
3062
3068
  /** @class */
3063
3069
  function(e) {
3064
- ne(t, e);
3070
+ se(t, e);
3065
3071
  function t(r, n, i) {
3066
3072
  var s = e.call(this, r) || this;
3067
3073
  return s.code = n, s.originalMessage = i, s;
@@ -3070,65 +3076,65 @@ var ie = (
3070
3076
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3071
3077
  }, t;
3072
3078
  }(Error)
3073
- ), ze = (
3079
+ ), Qe = (
3074
3080
  /** @class */
3075
3081
  function(e) {
3076
- ne(t, e);
3082
+ se(t, e);
3077
3083
  function t(r, n, i, s) {
3078
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), C.INVALID_VALUE, s) || this;
3084
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), R.INVALID_VALUE, s) || this;
3079
3085
  }
3080
3086
  return t;
3081
- }(ie)
3082
- ), en = (
3087
+ }(oe)
3088
+ ), rn = (
3083
3089
  /** @class */
3084
3090
  function(e) {
3085
- ne(t, e);
3091
+ se(t, e);
3086
3092
  function t(r, n, i) {
3087
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), C.INVALID_VALUE, i) || this;
3093
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), R.INVALID_VALUE, i) || this;
3088
3094
  }
3089
3095
  return t;
3090
- }(ie)
3091
- ), tn = (
3096
+ }(oe)
3097
+ ), nn = (
3092
3098
  /** @class */
3093
3099
  function(e) {
3094
- ne(t, e);
3100
+ se(t, e);
3095
3101
  function t(r, n) {
3096
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), C.MISSING_VALUE, n) || this;
3102
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), R.MISSING_VALUE, n) || this;
3097
3103
  }
3098
3104
  return t;
3099
- }(ie)
3105
+ }(oe)
3100
3106
  ), y;
3101
3107
  (function(e) {
3102
3108
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3103
3109
  })(y || (y = {}));
3104
- function rn(e) {
3110
+ function sn(e) {
3105
3111
  return e.length < 2 ? e : e.reduce(function(t, r) {
3106
3112
  var n = t[t.length - 1];
3107
3113
  return !n || n.type !== y.literal || r.type !== y.literal ? t.push(r) : n.value += r.value, t;
3108
3114
  }, []);
3109
3115
  }
3110
- function nn(e) {
3116
+ function on(e) {
3111
3117
  return typeof e == "function";
3112
3118
  }
3113
- function Y(e, t, r, n, i, s, o) {
3114
- if (e.length === 1 && De(e[0]))
3119
+ function K(e, t, r, n, i, s, o) {
3120
+ if (e.length === 1 && je(e[0]))
3115
3121
  return [
3116
3122
  {
3117
3123
  type: y.literal,
3118
3124
  value: e[0].value
3119
3125
  }
3120
3126
  ];
3121
- for (var h = [], u = 0, a = e; u < a.length; u++) {
3122
- var l = a[u];
3123
- if (De(l)) {
3124
- h.push({
3127
+ for (var u = [], h = 0, a = e; h < a.length; h++) {
3128
+ var l = a[h];
3129
+ if (je(l)) {
3130
+ u.push({
3125
3131
  type: y.literal,
3126
3132
  value: l.value
3127
3133
  });
3128
3134
  continue;
3129
3135
  }
3130
- if (Sr(l)) {
3131
- typeof s == "number" && h.push({
3136
+ if (Ar(l)) {
3137
+ typeof s == "number" && u.push({
3132
3138
  type: y.literal,
3133
3139
  value: r.getNumberFormat(t).format(s)
3134
3140
  });
@@ -3136,89 +3142,89 @@ function Y(e, t, r, n, i, s, o) {
3136
3142
  }
3137
3143
  var f = l.value;
3138
3144
  if (!(i && f in i))
3139
- throw new tn(f, o);
3145
+ throw new nn(f, o);
3140
3146
  var c = i[f];
3141
- if (Tr(l)) {
3142
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), h.push({
3147
+ if (Br(l)) {
3148
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3143
3149
  type: typeof c == "string" ? y.literal : y.object,
3144
3150
  value: c
3145
3151
  });
3146
3152
  continue;
3147
3153
  }
3148
- if (lt(l)) {
3149
- var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
3150
- h.push({
3154
+ if (ct(l)) {
3155
+ var d = typeof l.style == "string" ? n.date[l.style] : xe(l.style) ? l.style.parsedOptions : void 0;
3156
+ u.push({
3151
3157
  type: y.literal,
3152
- value: r.getDateTimeFormat(t, b).format(c)
3158
+ value: r.getDateTimeFormat(t, d).format(c)
3153
3159
  });
3154
3160
  continue;
3155
3161
  }
3156
- if (ft(l)) {
3157
- var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
3158
- h.push({
3162
+ if (mt(l)) {
3163
+ var d = typeof l.style == "string" ? n.time[l.style] : xe(l.style) ? l.style.parsedOptions : n.time.medium;
3164
+ u.push({
3159
3165
  type: y.literal,
3160
- value: r.getDateTimeFormat(t, b).format(c)
3166
+ value: r.getDateTimeFormat(t, d).format(c)
3161
3167
  });
3162
3168
  continue;
3163
3169
  }
3164
- if (ut(l)) {
3165
- var b = typeof l.style == "string" ? n.number[l.style] : dt(l.style) ? l.style.parsedOptions : void 0;
3166
- b && b.scale && (c = c * (b.scale || 1)), h.push({
3170
+ if (ft(l)) {
3171
+ var d = typeof l.style == "string" ? n.number[l.style] : gt(l.style) ? l.style.parsedOptions : void 0;
3172
+ d && d.scale && (c = c * (d.scale || 1)), u.push({
3167
3173
  type: y.literal,
3168
- value: r.getNumberFormat(t, b).format(c)
3174
+ value: r.getNumberFormat(t, d).format(c)
3169
3175
  });
3170
3176
  continue;
3171
3177
  }
3172
- if (pt(l)) {
3173
- var g = l.children, x = l.value, T = i[x];
3174
- if (!nn(T))
3175
- throw new en(x, "function", o);
3176
- var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
3177
- return B.value;
3178
+ if (bt(l)) {
3179
+ var b = l.children, x = l.value, T = i[x];
3180
+ if (!on(T))
3181
+ throw new rn(x, "function", o);
3182
+ var j = K(b, t, r, n, i, s), O = T(j.map(function(A) {
3183
+ return A.value;
3178
3184
  }));
3179
- Array.isArray(P) || (P = [P]), h.push.apply(h, P.map(function(B) {
3185
+ Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(A) {
3180
3186
  return {
3181
- type: typeof B == "string" ? y.literal : y.object,
3182
- value: B
3187
+ type: typeof A == "string" ? y.literal : y.object,
3188
+ value: A
3183
3189
  };
3184
3190
  }));
3185
3191
  }
3186
- if (ct(l)) {
3192
+ if (pt(l)) {
3187
3193
  var H = l.options[c] || l.options.other;
3188
3194
  if (!H)
3189
- throw new ze(l.value, c, Object.keys(l.options), o);
3190
- h.push.apply(h, Y(H.value, t, r, n, i));
3195
+ throw new Qe(l.value, c, Object.keys(l.options), o);
3196
+ u.push.apply(u, K(H.value, t, r, n, i));
3191
3197
  continue;
3192
3198
  }
3193
- if (mt(l)) {
3199
+ if (dt(l)) {
3194
3200
  var H = l.options["=".concat(c)];
3195
3201
  if (!H) {
3196
3202
  if (!Intl.PluralRules)
3197
- throw new ie(`Intl.PluralRules is not available in this environment.
3203
+ throw new oe(`Intl.PluralRules is not available in this environment.
3198
3204
  Try polyfilling it using "@formatjs/intl-pluralrules"
3199
- `, C.MISSING_INTL_API, o);
3200
- var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3201
- H = l.options[j] || l.options.other;
3205
+ `, R.MISSING_INTL_API, o);
3206
+ var V = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3207
+ H = l.options[V] || l.options.other;
3202
3208
  }
3203
3209
  if (!H)
3204
- throw new ze(l.value, c, Object.keys(l.options), o);
3205
- h.push.apply(h, Y(H.value, t, r, n, i, c - (l.offset || 0)));
3210
+ throw new Qe(l.value, c, Object.keys(l.options), o);
3211
+ u.push.apply(u, K(H.value, t, r, n, i, c - (l.offset || 0)));
3206
3212
  continue;
3207
3213
  }
3208
3214
  }
3209
- return rn(h);
3215
+ return sn(u);
3210
3216
  }
3211
- function sn(e, t) {
3212
- return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3213
- return r[n] = d(d({}, e[n]), t[n] || {}), r;
3217
+ function an(e, t) {
3218
+ return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3219
+ return r[n] = S(S({}, e[n]), t[n] || {}), r;
3214
3220
  }, {})) : e;
3215
3221
  }
3216
- function on(e, t) {
3222
+ function un(e, t) {
3217
3223
  return t ? Object.keys(e).reduce(function(r, n) {
3218
- return r[n] = sn(e[n], t[n]), r;
3219
- }, d({}, e)) : e;
3224
+ return r[n] = an(e[n], t[n]), r;
3225
+ }, S({}, e)) : e;
3220
3226
  }
3221
- function me(e) {
3227
+ function de(e) {
3222
3228
  return {
3223
3229
  create: function() {
3224
3230
  return {
@@ -3232,39 +3238,39 @@ function me(e) {
3232
3238
  }
3233
3239
  };
3234
3240
  }
3235
- function an(e) {
3241
+ function hn(e) {
3236
3242
  return e === void 0 && (e = {
3237
3243
  number: {},
3238
3244
  dateTime: {},
3239
3245
  pluralRules: {}
3240
3246
  }), {
3241
- getNumberFormat: le(function() {
3247
+ getNumberFormat: ce(function() {
3242
3248
  for (var t, r = [], n = 0; n < arguments.length; n++)
3243
3249
  r[n] = arguments[n];
3244
- return new ((t = Intl.NumberFormat).bind.apply(t, ue([void 0], r, !1)))();
3250
+ return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
3245
3251
  }, {
3246
- cache: me(e.number),
3247
- strategy: fe.variadic
3252
+ cache: de(e.number),
3253
+ strategy: me.variadic
3248
3254
  }),
3249
- getDateTimeFormat: le(function() {
3255
+ getDateTimeFormat: ce(function() {
3250
3256
  for (var t, r = [], n = 0; n < arguments.length; n++)
3251
3257
  r[n] = arguments[n];
3252
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ue([void 0], r, !1)))();
3258
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
3253
3259
  }, {
3254
- cache: me(e.dateTime),
3255
- strategy: fe.variadic
3260
+ cache: de(e.dateTime),
3261
+ strategy: me.variadic
3256
3262
  }),
3257
- getPluralRules: le(function() {
3263
+ getPluralRules: ce(function() {
3258
3264
  for (var t, r = [], n = 0; n < arguments.length; n++)
3259
3265
  r[n] = arguments[n];
3260
- return new ((t = Intl.PluralRules).bind.apply(t, ue([void 0], r, !1)))();
3266
+ return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
3261
3267
  }, {
3262
- cache: me(e.pluralRules),
3263
- strategy: fe.variadic
3268
+ cache: de(e.pluralRules),
3269
+ strategy: me.variadic
3264
3270
  })
3265
3271
  };
3266
3272
  }
3267
- var hn = (
3273
+ var ln = (
3268
3274
  /** @class */
3269
3275
  function() {
3270
3276
  function e(t, r, n, i) {
@@ -3274,20 +3280,20 @@ var hn = (
3274
3280
  number: {},
3275
3281
  dateTime: {},
3276
3282
  pluralRules: {}
3277
- }, this.format = function(u) {
3278
- var a = s.formatToParts(u);
3283
+ }, this.format = function(h) {
3284
+ var a = s.formatToParts(h);
3279
3285
  if (a.length === 1)
3280
3286
  return a[0].value;
3281
3287
  var l = a.reduce(function(f, c) {
3282
3288
  return !f.length || c.type !== y.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3283
3289
  }, []);
3284
3290
  return l.length <= 1 ? l[0] || "" : l;
3285
- }, this.formatToParts = function(u) {
3286
- return Y(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
3291
+ }, this.formatToParts = function(h) {
3292
+ return K(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3287
3293
  }, this.resolvedOptions = function() {
3288
- var u;
3294
+ var h;
3289
3295
  return {
3290
- locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3296
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3291
3297
  };
3292
3298
  }, this.getAst = function() {
3293
3299
  return s.ast;
@@ -3296,13 +3302,13 @@ var hn = (
3296
3302
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3297
3303
  var o = i || {};
3298
3304
  o.formatters;
3299
- var h = br(o, ["formatters"]);
3300
- this.ast = e.__parse(t, d(d({}, h), { locale: this.resolvedLocale }));
3305
+ var u = Er(o, ["formatters"]);
3306
+ this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
3301
3307
  } else
3302
3308
  this.ast = t;
3303
3309
  if (!Array.isArray(this.ast))
3304
3310
  throw new TypeError("A message must be provided as a String or AST.");
3305
- this.formats = on(e.formats, n), this.formatters = i && i.formatters || an(this.formatterCache);
3311
+ this.formats = un(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
3306
3312
  }
3307
3313
  return Object.defineProperty(e, "defaultLocale", {
3308
3314
  get: function() {
@@ -3315,7 +3321,7 @@ var hn = (
3315
3321
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3316
3322
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3317
3323
  }
3318
- }, e.__parse = Kr, e.formats = {
3324
+ }, e.__parse = tn, e.formats = {
3319
3325
  number: {
3320
3326
  integer: {
3321
3327
  maximumFractionDigits: 0
@@ -3376,7 +3382,7 @@ var hn = (
3376
3382
  }, e;
3377
3383
  }()
3378
3384
  );
3379
- function un(e, t) {
3385
+ function fn(e, t) {
3380
3386
  if (t == null)
3381
3387
  return;
3382
3388
  if (t in e)
@@ -3397,92 +3403,92 @@ function un(e, t) {
3397
3403
  n = void 0;
3398
3404
  return n;
3399
3405
  }
3400
- const S = {}, ln = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), Ht = (e, t) => {
3406
+ const B = {}, cn = (e, t, r) => r && (t in B || (B[t] = {}), e in B[t] || (B[t][e] = r), r), Tt = (e, t) => {
3401
3407
  if (t == null)
3402
3408
  return;
3403
- if (t in S && e in S[t])
3404
- return S[t][e];
3405
- const r = se(t);
3409
+ if (t in B && e in B[t])
3410
+ return B[t][e];
3411
+ const r = ae(t);
3406
3412
  for (let n = 0; n < r.length; n++) {
3407
- const i = r[n], s = cn(i, e);
3413
+ const i = r[n], s = pn(i, e);
3408
3414
  if (s)
3409
- return ln(e, t, s);
3415
+ return cn(e, t, s);
3410
3416
  }
3411
3417
  };
3412
- let Ne;
3413
- const Z = re({});
3414
- function fn(e) {
3415
- return Ne[e] || null;
3418
+ let we;
3419
+ const Q = ie({});
3420
+ function mn(e) {
3421
+ return we[e] || null;
3416
3422
  }
3417
- function Tt(e) {
3418
- return e in Ne;
3423
+ function Bt(e) {
3424
+ return e in we;
3419
3425
  }
3420
- function cn(e, t) {
3421
- if (!Tt(e))
3426
+ function pn(e, t) {
3427
+ if (!Bt(e))
3422
3428
  return null;
3423
- const r = fn(e);
3424
- return un(r, t);
3429
+ const r = mn(e);
3430
+ return fn(r, t);
3425
3431
  }
3426
- function mn(e) {
3432
+ function dn(e) {
3427
3433
  if (e == null)
3428
3434
  return;
3429
- const t = se(e);
3435
+ const t = ae(e);
3430
3436
  for (let r = 0; r < t.length; r++) {
3431
3437
  const n = t[r];
3432
- if (Tt(n))
3438
+ if (Bt(n))
3433
3439
  return n;
3434
3440
  }
3435
3441
  }
3436
- function St(e, ...t) {
3437
- delete S[e], Z.update((r) => (r[e] = dr.all([r[e] || {}, ...t]), r));
3442
+ function At(e, ...t) {
3443
+ delete B[e], Q.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
3438
3444
  }
3439
- U(
3440
- [Z],
3445
+ G(
3446
+ [Q],
3441
3447
  ([e]) => Object.keys(e)
3442
3448
  );
3443
- Z.subscribe((e) => Ne = e);
3444
- const K = {};
3445
- function pn(e, t) {
3446
- K[e].delete(t), K[e].size === 0 && delete K[e];
3449
+ Q.subscribe((e) => we = e);
3450
+ const ee = {};
3451
+ function bn(e, t) {
3452
+ ee[e].delete(t), ee[e].size === 0 && delete ee[e];
3447
3453
  }
3448
- function Bt(e) {
3449
- return K[e];
3454
+ function Pt(e) {
3455
+ return ee[e];
3450
3456
  }
3451
- function dn(e) {
3452
- return se(e).map((t) => {
3453
- const r = Bt(t);
3457
+ function gn(e) {
3458
+ return ae(e).map((t) => {
3459
+ const r = Pt(t);
3454
3460
  return [t, r ? [...r] : []];
3455
3461
  }).filter(([, t]) => t.length > 0);
3456
3462
  }
3457
- function Te(e) {
3458
- return e == null ? !1 : se(e).some(
3463
+ function Be(e) {
3464
+ return e == null ? !1 : ae(e).some(
3459
3465
  (t) => {
3460
3466
  var r;
3461
- return (r = Bt(t)) == null ? void 0 : r.size;
3467
+ return (r = Pt(t)) == null ? void 0 : r.size;
3462
3468
  }
3463
3469
  );
3464
3470
  }
3465
- function bn(e, t) {
3471
+ function En(e, t) {
3466
3472
  return Promise.all(
3467
- t.map((n) => (pn(e, n), n().then((i) => i.default || i)))
3468
- ).then((n) => St(e, ...n));
3469
- }
3470
- const V = {};
3471
- function At(e) {
3472
- if (!Te(e))
3473
- return e in V ? V[e] : Promise.resolve();
3474
- const t = dn(e);
3475
- return V[e] = Promise.all(
3473
+ t.map((n) => (bn(e, n), n().then((i) => i.default || i)))
3474
+ ).then((n) => At(e, ...n));
3475
+ }
3476
+ const k = {};
3477
+ function Ot(e) {
3478
+ if (!Be(e))
3479
+ return e in k ? k[e] : Promise.resolve();
3480
+ const t = gn(e);
3481
+ return k[e] = Promise.all(
3476
3482
  t.map(
3477
- ([r, n]) => bn(r, n)
3483
+ ([r, n]) => En(r, n)
3478
3484
  )
3479
3485
  ).then(() => {
3480
- if (Te(e))
3481
- return At(e);
3482
- delete V[e];
3483
- }), V[e];
3486
+ if (Be(e))
3487
+ return Ot(e);
3488
+ delete k[e];
3489
+ }), k[e];
3484
3490
  }
3485
- const gn = {
3491
+ const yn = {
3486
3492
  number: {
3487
3493
  scientific: { notation: "scientific" },
3488
3494
  engineering: { notation: "engineering" },
@@ -3511,159 +3517,159 @@ const gn = {
3511
3517
  timeZoneName: "short"
3512
3518
  }
3513
3519
  }
3514
- }, En = {
3520
+ }, xn = {
3515
3521
  fallbackLocale: null,
3516
3522
  loadingDelay: 200,
3517
- formats: gn,
3523
+ formats: yn,
3518
3524
  warnOnMissingMessages: !0,
3519
3525
  handleMissingMessage: void 0,
3520
3526
  ignoreTag: !0
3521
- }, yn = En;
3522
- function R() {
3523
- return yn;
3527
+ }, vn = xn;
3528
+ function U() {
3529
+ return vn;
3524
3530
  }
3525
- const pe = re(!1);
3526
- var xn = Object.defineProperty, vn = Object.defineProperties, _n = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Hn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
3531
+ const be = ie(!1);
3532
+ var _n = Object.defineProperty, Hn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
3527
3533
  for (var r in t || (t = {}))
3528
- Hn.call(t, r) && Qe(e, r, t[r]);
3529
- if (Ze)
3530
- for (var r of Ze(t))
3531
- Tn.call(t, r) && Qe(e, r, t[r]);
3534
+ Tn.call(t, r) && qe(e, r, t[r]);
3535
+ if (Je)
3536
+ for (var r of Je(t))
3537
+ Bn.call(t, r) && qe(e, r, t[r]);
3532
3538
  return e;
3533
- }, Bn = (e, t) => vn(e, _n(t));
3534
- let Se;
3535
- const ee = re(null);
3536
- function Je(e) {
3539
+ }, Pn = (e, t) => Hn(e, Sn(t));
3540
+ let Ae;
3541
+ const re = ie(null);
3542
+ function Ye(e) {
3537
3543
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3538
3544
  }
3539
- function se(e, t = R().fallbackLocale) {
3540
- const r = Je(e);
3541
- return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
3545
+ function ae(e, t = U().fallbackLocale) {
3546
+ const r = Ye(e);
3547
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
3542
3548
  }
3543
- function A() {
3544
- return Se != null ? Se : void 0;
3549
+ function P() {
3550
+ return Ae != null ? Ae : void 0;
3545
3551
  }
3546
- ee.subscribe((e) => {
3547
- Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3552
+ re.subscribe((e) => {
3553
+ Ae = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3548
3554
  });
3549
- const An = (e) => {
3550
- if (e && mn(e) && Te(e)) {
3551
- const { loadingDelay: t } = R();
3555
+ const On = (e) => {
3556
+ if (e && dn(e) && Be(e)) {
3557
+ const { loadingDelay: t } = U();
3552
3558
  let r;
3553
- return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
3554
- () => pe.set(!0),
3559
+ return typeof window != "undefined" && P() != null && t ? r = window.setTimeout(
3560
+ () => be.set(!0),
3555
3561
  t
3556
- ) : pe.set(!0), At(e).then(() => {
3557
- ee.set(e);
3562
+ ) : be.set(!0), Ot(e).then(() => {
3563
+ re.set(e);
3558
3564
  }).finally(() => {
3559
- clearTimeout(r), pe.set(!1);
3565
+ clearTimeout(r), be.set(!1);
3560
3566
  });
3561
3567
  }
3562
- return ee.set(e);
3563
- }, G = Bn(Sn({}, ee), {
3564
- set: An
3565
- }), oe = (e) => {
3568
+ return re.set(e);
3569
+ }, D = Pn(An({}, re), {
3570
+ set: On
3571
+ }), ue = (e) => {
3566
3572
  const t = /* @__PURE__ */ Object.create(null);
3567
3573
  return (n) => {
3568
3574
  const i = JSON.stringify(n);
3569
3575
  return i in t ? t[i] : t[i] = e(n);
3570
3576
  };
3571
3577
  };
3572
- var Pn = Object.defineProperty, te = Object.getOwnPropertySymbols, Pt = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oe = (e, t) => {
3578
+ var Nn = Object.defineProperty, ne = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (e, t) => {
3573
3579
  for (var r in t || (t = {}))
3574
- Pt.call(t, r) && qe(e, r, t[r]);
3575
- if (te)
3576
- for (var r of te(t))
3577
- Nt.call(t, r) && qe(e, r, t[r]);
3580
+ Nt.call(t, r) && Ke(e, r, t[r]);
3581
+ if (ne)
3582
+ for (var r of ne(t))
3583
+ wt.call(t, r) && Ke(e, r, t[r]);
3578
3584
  return e;
3579
- }, D = (e, t) => {
3585
+ }, F = (e, t) => {
3580
3586
  var r = {};
3581
3587
  for (var n in e)
3582
- Pt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3583
- if (e != null && te)
3584
- for (var n of te(e))
3585
- t.indexOf(n) < 0 && Nt.call(e, n) && (r[n] = e[n]);
3588
+ Nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3589
+ if (e != null && ne)
3590
+ for (var n of ne(e))
3591
+ t.indexOf(n) < 0 && wt.call(e, n) && (r[n] = e[n]);
3586
3592
  return r;
3587
3593
  };
3588
- const W = (e, t) => {
3589
- const { formats: r } = R();
3594
+ const z = (e, t) => {
3595
+ const { formats: r } = U();
3590
3596
  if (e in r && t in r[e])
3591
3597
  return r[e][t];
3592
3598
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3593
- }, Nn = oe(
3599
+ }, wn = ue(
3594
3600
  (e) => {
3595
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3601
+ var t = e, { locale: r, format: n } = t, i = F(t, ["locale", "format"]);
3596
3602
  if (r == null)
3597
3603
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3598
- return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
3604
+ return n && (i = z("number", n)), new Intl.NumberFormat(r, i);
3599
3605
  }
3600
- ), On = oe(
3606
+ ), In = ue(
3601
3607
  (e) => {
3602
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3608
+ var t = e, { locale: r, format: n } = t, i = F(t, ["locale", "format"]);
3603
3609
  if (r == null)
3604
3610
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3605
- return n ? i = W("date", n) : Object.keys(i).length === 0 && (i = W("date", "short")), new Intl.DateTimeFormat(r, i);
3611
+ return n ? i = z("date", n) : Object.keys(i).length === 0 && (i = z("date", "short")), new Intl.DateTimeFormat(r, i);
3606
3612
  }
3607
- ), In = oe(
3613
+ ), $n = ue(
3608
3614
  (e) => {
3609
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3615
+ var t = e, { locale: r, format: n } = t, i = F(t, ["locale", "format"]);
3610
3616
  if (r == null)
3611
3617
  throw new Error(
3612
3618
  '[svelte-i18n] A "locale" must be set to format time values'
3613
3619
  );
3614
- return n ? i = W("time", n) : Object.keys(i).length === 0 && (i = W("time", "short")), new Intl.DateTimeFormat(r, i);
3620
+ return n ? i = z("time", n) : Object.keys(i).length === 0 && (i = z("time", "short")), new Intl.DateTimeFormat(r, i);
3615
3621
  }
3616
- ), wn = (e = {}) => {
3622
+ ), Ln = (e = {}) => {
3617
3623
  var t = e, {
3618
- locale: r = A()
3619
- } = t, n = D(t, [
3624
+ locale: r = P()
3625
+ } = t, n = F(t, [
3620
3626
  "locale"
3621
3627
  ]);
3622
- return Nn(Oe({ locale: r }, n));
3623
- }, $n = (e = {}) => {
3628
+ return wn(Ie({ locale: r }, n));
3629
+ }, Mn = (e = {}) => {
3624
3630
  var t = e, {
3625
- locale: r = A()
3626
- } = t, n = D(t, [
3631
+ locale: r = P()
3632
+ } = t, n = F(t, [
3627
3633
  "locale"
3628
3634
  ]);
3629
- return On(Oe({ locale: r }, n));
3630
- }, Ln = (e = {}) => {
3635
+ return In(Ie({ locale: r }, n));
3636
+ }, Cn = (e = {}) => {
3631
3637
  var t = e, {
3632
- locale: r = A()
3633
- } = t, n = D(t, [
3638
+ locale: r = P()
3639
+ } = t, n = F(t, [
3634
3640
  "locale"
3635
3641
  ]);
3636
- return In(Oe({ locale: r }, n));
3637
- }, Mn = oe(
3642
+ return $n(Ie({ locale: r }, n));
3643
+ }, Rn = ue(
3638
3644
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3639
- (e, t = A()) => new hn(e, t, R().formats, {
3640
- ignoreTag: R().ignoreTag
3645
+ (e, t = P()) => new ln(e, t, U().formats, {
3646
+ ignoreTag: U().ignoreTag
3641
3647
  })
3642
- ), Cn = (e, t = {}) => {
3648
+ ), Un = (e, t = {}) => {
3643
3649
  var r, n, i, s;
3644
3650
  let o = t;
3645
3651
  typeof e == "object" && (o = e, e = o.id);
3646
3652
  const {
3647
- values: h,
3648
- locale: u = A(),
3653
+ values: u,
3654
+ locale: h = P(),
3649
3655
  default: a
3650
3656
  } = o;
3651
- if (u == null)
3657
+ if (h == null)
3652
3658
  throw new Error(
3653
3659
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3654
3660
  );
3655
- let l = Ht(e, u);
3661
+ let l = Tt(e, h);
3656
3662
  if (!l)
3657
- l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3663
+ l = (s = (i = (n = (r = U()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3658
3664
  else if (typeof l != "string")
3659
3665
  return console.warn(
3660
3666
  `[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.`
3661
3667
  ), l;
3662
- if (!h)
3668
+ if (!u)
3663
3669
  return l;
3664
3670
  let f = l;
3665
3671
  try {
3666
- f = Mn(l, u).format(h);
3672
+ f = Rn(l, h).format(u);
3667
3673
  } catch (c) {
3668
3674
  c instanceof Error && console.warn(
3669
3675
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3671,18 +3677,18 @@ const W = (e, t) => {
3671
3677
  );
3672
3678
  }
3673
3679
  return f;
3674
- }, Rn = (e, t) => Ln(t).format(e), Un = (e, t) => $n(t).format(e), Gn = (e, t) => wn(t).format(e), Dn = (e, t = A()) => Ht(e, t), Fn = U([G, Z], () => Cn);
3675
- U([G], () => Rn);
3676
- U([G], () => Un);
3677
- U([G], () => Gn);
3678
- U([G, Z], () => Dn);
3679
- function Ye(e, t) {
3680
- St(e, t);
3681
- }
3682
- function jn(e) {
3683
- G.set(e);
3684
- }
3685
- const Ke = {
3680
+ }, Gn = (e, t) => Cn(t).format(e), Dn = (e, t) => Mn(t).format(e), Fn = (e, t) => Ln(t).format(e), jn = (e, t = P()) => Tt(e, t), Vn = G([D, Q], () => Un);
3681
+ G([D], () => Gn);
3682
+ G([D], () => Dn);
3683
+ G([D], () => Fn);
3684
+ G([D, Q], () => jn);
3685
+ function et(e, t) {
3686
+ At(e, t);
3687
+ }
3688
+ function kn(e) {
3689
+ D.set(e);
3690
+ }
3691
+ const tt = {
3686
3692
  en: {
3687
3693
  errServerUnavailable: "Server unavailable",
3688
3694
  errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
@@ -3702,43 +3708,43 @@ const Ke = {
3702
3708
  msgEmailVerificationSuccess: "Başarılı! E-posta adresiniz başarıyla doğrulandı"
3703
3709
  }
3704
3710
  };
3705
- function Vn(e) {
3711
+ function Xn(e) {
3706
3712
  let t;
3707
3713
  return {
3708
3714
  c() {
3709
- t = it("div");
3715
+ t = ot("div");
3710
3716
  },
3711
3717
  m(r, n) {
3712
- nt(r, t, n);
3718
+ st(r, t, n);
3713
3719
  },
3714
3720
  p: _,
3715
3721
  i: _,
3716
3722
  o: _,
3717
3723
  d(r) {
3718
- r && Ae(t);
3724
+ r && Oe(t);
3719
3725
  }
3720
3726
  };
3721
3727
  }
3722
- function kn(e, t, r) {
3728
+ function Wn(e, t, r) {
3723
3729
  let n;
3724
- Ct(e, Fn, (f) => r(4, n = f));
3725
- let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: h = "" } = t;
3726
- const u = () => {
3727
- fetch(h).then((c) => c.json()).then((c) => {
3728
- Object.keys(c).forEach((b) => {
3729
- Ye(b, c[b]);
3730
+ Ut(e, Vn, (f) => r(4, n = f));
3731
+ let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: u = "" } = t;
3732
+ const h = () => {
3733
+ fetch(u).then((c) => c.json()).then((c) => {
3734
+ Object.keys(c).forEach((d) => {
3735
+ et(d, c[d]);
3730
3736
  });
3731
3737
  }).catch((c) => {
3732
3738
  console.log(c);
3733
3739
  });
3734
3740
  };
3735
- Object.keys(Ke).forEach((f) => {
3736
- Ye(f, Ke[f]);
3741
+ Object.keys(tt).forEach((f) => {
3742
+ et(f, tt[f]);
3737
3743
  });
3738
3744
  const a = () => {
3739
- jn(i);
3745
+ kn(i);
3740
3746
  }, l = () => {
3741
- let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3747
+ let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), d = {
3742
3748
  method: "POST",
3743
3749
  headers: {
3744
3750
  "Content-Type": "application/json",
@@ -3746,7 +3752,7 @@ function kn(e, t, r) {
3746
3752
  },
3747
3753
  body: JSON.stringify({ hashKey: o })
3748
3754
  };
3749
- fetch(f.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3755
+ fetch(f.href, d).then((b) => (b.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3750
3756
  {
3751
3757
  type: "WidgetNotification",
3752
3758
  data: {
@@ -3755,8 +3761,8 @@ function kn(e, t, r) {
3755
3761
  }
3756
3762
  },
3757
3763
  window.location.href
3758
- )), g.json())).then((g) => {
3759
- window.postMessage({ type: "ActivatePlayerResponse", data: g }, window.location.href), g.error && (window.postMessage(
3764
+ )), b.json())).then((b) => {
3765
+ window.postMessage({ type: "ActivatePlayerResponse", data: b }, window.location.href), b.error && (window.postMessage(
3760
3766
  {
3761
3767
  type: "WidgetNotification",
3762
3768
  data: {
@@ -3774,7 +3780,7 @@ function kn(e, t, r) {
3774
3780
  }
3775
3781
  },
3776
3782
  window.location.href
3777
- )), g.SESSION_ID && window.postMessage(
3783
+ )), b.SESSION_ID && window.postMessage(
3778
3784
  {
3779
3785
  type: "WidgetNotification",
3780
3786
  data: {
@@ -3787,17 +3793,17 @@ function kn(e, t, r) {
3787
3793
  });
3788
3794
  };
3789
3795
  return e.$$set = (f) => {
3790
- "lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, h = f.translationurl);
3796
+ "lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, u = f.translationurl);
3791
3797
  }, e.$$.update = () => {
3792
3798
  e.$$.dirty & /*lang*/
3793
3799
  1 && i && a(), e.$$.dirty & /*translationurl*/
3794
- 8 && h && u(), e.$$.dirty & /*endpoint, key*/
3800
+ 8 && u && h(), e.$$.dirty & /*endpoint, key*/
3795
3801
  6 && s && o && l();
3796
- }, [i, s, o, h];
3802
+ }, [i, s, o, u];
3797
3803
  }
3798
- class Xn extends qt {
3804
+ class zn extends Kt {
3799
3805
  constructor(t) {
3800
- super(), Qt(this, t, kn, Vn, tt, {
3806
+ super(), qt(this, t, Wn, Xn, nt, {
3801
3807
  lang: 0,
3802
3808
  endpoint: 1,
3803
3809
  key: 2,
@@ -3808,28 +3814,28 @@ class Xn extends qt {
3808
3814
  return this.$$.ctx[0];
3809
3815
  }
3810
3816
  set lang(t) {
3811
- this.$$set({ lang: t }), w();
3817
+ this.$$set({ lang: t }), $();
3812
3818
  }
3813
3819
  get endpoint() {
3814
3820
  return this.$$.ctx[1];
3815
3821
  }
3816
3822
  set endpoint(t) {
3817
- this.$$set({ endpoint: t }), w();
3823
+ this.$$set({ endpoint: t }), $();
3818
3824
  }
3819
3825
  get key() {
3820
3826
  return this.$$.ctx[2];
3821
3827
  }
3822
3828
  set key(t) {
3823
- this.$$set({ key: t }), w();
3829
+ this.$$set({ key: t }), $();
3824
3830
  }
3825
3831
  get translationurl() {
3826
3832
  return this.$$.ctx[3];
3827
3833
  }
3828
3834
  set translationurl(t) {
3829
- this.$$set({ translationurl: t }), w();
3835
+ this.$$set({ translationurl: t }), $();
3830
3836
  }
3831
3837
  }
3832
- Jt(Xn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3838
+ Yt(zn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3833
3839
  export {
3834
- Xn as default
3840
+ zn as default
3835
3841
  };