@everymatrix/player-email-verification 1.76.3 → 1.76.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,80 +1,80 @@
1
- var It = Object.defineProperty, wt = Object.defineProperties;
2
- var $t = Object.getOwnPropertyDescriptors;
3
- var $e = Object.getOwnPropertySymbols;
4
- var Lt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
5
- var oe = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Le = (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
- Lt.call(t, r) && oe(e, r, t[r]);
8
- if ($e)
9
- for (var r of $e(t))
10
- Mt.call(t, r) && oe(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
- }, Me = (e, t) => wt(e, $t(t));
13
- var _ = (e, t, r) => (oe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var Ce = (e, t, r) => new Promise((n, i) => {
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
15
  var s = (h) => {
16
16
  try {
17
17
  u(r.next(h));
18
- } catch (o) {
19
- i(o);
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
- }, a = (h) => {
21
+ }, o = (h) => {
22
22
  try {
23
23
  u(r.throw(h));
24
- } catch (o) {
25
- i(o);
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
- }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, a);
27
+ }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
28
  u((r = r.apply(e, t)).next());
29
29
  });
30
- function v() {
30
+ function _() {
31
31
  }
32
- function tt(e) {
32
+ function rt(e) {
33
33
  return e();
34
34
  }
35
- function Re() {
35
+ function Ue() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function z(e) {
39
- e.forEach(tt);
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 rt(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 Ct(e) {
47
+ function Rt(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function nt(e, ...t) {
50
+ function it(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
54
- return v;
54
+ return _;
55
55
  }
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function Rt(e, t, r) {
60
- e.$$.on_destroy.push(nt(t, r));
59
+ function Ut(e, t, r) {
60
+ e.$$.on_destroy.push(it(t, r));
61
61
  }
62
- function it(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 st(e) {
68
+ function ot(e) {
69
69
  return document.createElement(e);
70
70
  }
71
- function Ut(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 Gt(e) {
74
+ function Dt(e) {
75
75
  return Array.from(e.childNodes);
76
76
  }
77
- function Dt(e) {
77
+ function Ft(e) {
78
78
  const t = {};
79
79
  return e.childNodes.forEach(
80
80
  /** @param {Element} node */
@@ -83,87 +83,87 @@ function Dt(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 = [], Ue = [];
91
- let $ = [];
92
- const Ge = [], Ft = /* @__PURE__ */ Promise.resolve();
93
- let pe = !1;
94
- function jt() {
95
- pe || (pe = !0, Ft.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 ue = /* @__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), Vt(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; Ue.length; )
116
- Ue.pop()();
117
- for (let t = 0; t < $.length; t += 1) {
118
- const r = $[t];
119
- ue.has(r) || (ue.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 (; Ge.length; )
124
- Ge.pop()();
125
- pe = !1, ue.clear(), k(e);
123
+ for (; De.length; )
124
+ De.pop()();
125
+ ge = !1, le.clear(), X(e);
126
126
  }
127
- function Vt(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 kt(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 Xt = /* @__PURE__ */ new Set();
139
- function Wt(e, t) {
140
- e && e.i && (Xt.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 zt(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(tt).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 && (kt(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 Qt(e, t) {
154
- e.$$.dirty[0] === -1 && (I.push(e), jt(), 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 Jt(e, t, r, n, i, s, a = null, u = [-1]) {
157
- const h = Pe;
158
- k(e);
159
- const o = e.$$ = {
156
+ function qt(e, t, r, n, i, s, o = null, u = [-1]) {
157
+ const h = Ne;
158
+ X(e);
159
+ const a = e.$$ = {
160
160
  fragment: null,
161
161
  ctx: [],
162
162
  // state
163
163
  props: s,
164
- update: v,
164
+ update: _,
165
165
  not_equal: i,
166
- bound: Re(),
166
+ bound: Ue(),
167
167
  // lifecycle
168
168
  on_mount: [],
169
169
  on_destroy: [],
@@ -172,48 +172,48 @@ function Jt(e, t, r, n, i, s, a = null, u = [-1]) {
172
172
  after_update: [],
173
173
  context: new Map(t.context || (h ? h.$$.context : [])),
174
174
  // everything else
175
- callbacks: Re(),
175
+ callbacks: Ue(),
176
176
  dirty: u,
177
177
  skip_bound: !1,
178
178
  root: t.target || h.$$.root
179
179
  };
180
- a && a(o.root);
180
+ o && o(a.root);
181
181
  let l = !1;
182
- if (o.ctx = r(e, t.props || {}, (f, c, ...b) => {
183
- const g = b.length ? b[0] : c;
184
- return o.ctx && i(o.ctx[f], o.ctx[f] = g) && (!o.skip_bound && o.bound[f] && o.bound[f](g), l && Qt(e, f)), c;
185
- }), o.update(), l = !0, z(o.before_update), o.fragment = n(o.ctx), 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 = Gt(t.target);
188
- o.fragment && o.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
- o.fragment && o.fragment.c();
191
- t.intro && Wt(e.$$.fragment), zt(e, t.target, t.anchor), w();
190
+ a.fragment && a.fragment.c();
191
+ t.intro && zt(e.$$.fragment), Zt(e, t.target, t.anchor), $();
192
192
  }
193
- k(h);
193
+ X(h);
194
194
  }
195
195
  let at;
196
196
  typeof HTMLElement == "function" && (at = class extends HTMLElement {
197
197
  constructor(t, r, n) {
198
198
  super();
199
199
  /** The Svelte component constructor */
200
- _(this, "$$ctor");
200
+ v(this, "$$ctor");
201
201
  /** Slots */
202
- _(this, "$$s");
202
+ v(this, "$$s");
203
203
  /** The Svelte component instance */
204
- _(this, "$$c");
204
+ v(this, "$$c");
205
205
  /** Whether or not the custom element is connected */
206
- _(this, "$$cn", !1);
206
+ v(this, "$$cn", !1);
207
207
  /** Component props data */
208
- _(this, "$$d", {});
208
+ v(this, "$$d", {});
209
209
  /** `true` if currently in the process of reflecting component props back to attributes */
210
- _(this, "$$r", !1);
210
+ v(this, "$$r", !1);
211
211
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
212
- _(this, "$$p_d", {});
212
+ v(this, "$$p_d", {});
213
213
  /** @type {Record<string, Function[]>} Event listeners */
214
- _(this, "$$l", {});
214
+ v(this, "$$l", {});
215
215
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
216
- _(this, "$$l_u", /* @__PURE__ */ new Map());
216
+ v(this, "$$l_u", /* @__PURE__ */ new Map());
217
217
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
218
218
  }
219
219
  addEventListener(t, r, n) {
@@ -230,42 +230,42 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
230
230
  }
231
231
  }
232
232
  connectedCallback() {
233
- return Ce(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
- let a;
237
+ let o;
238
238
  return {
239
239
  c: function() {
240
- a = st("slot"), s !== "default" && Ut(a, "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
- m: function(o, l) {
247
- it(o, a, l);
246
+ m: function(a, l) {
247
+ st(a, o, l);
248
248
  },
249
- d: function(o) {
250
- o && Ae(a);
249
+ d: function(a) {
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 = Dt(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
- const a = this.$$g_p(s.name);
262
- a in this.$$d || (this.$$d[a] = q(a, s.value, this.$$p_d, "toProp"));
261
+ const o = this.$$g_p(s.name);
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: Me(Le({}, this.$$d), {
268
+ props: Ce(Me({}, this.$$d), {
269
269
  $$slots: r,
270
270
  $$scope: {
271
271
  ctx: []
@@ -276,21 +276,21 @@ typeof HTMLElement == "function" && (at = 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 a = q(
279
+ const o = Y(
280
280
  s,
281
281
  this.$$d[s],
282
282
  this.$$p_d,
283
283
  "toAttribute"
284
284
  );
285
- a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
285
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
286
286
  }
287
287
  this.$$r = !1;
288
288
  };
289
289
  this.$$c.$$.after_update.push(i), i();
290
290
  for (const s in this.$$l)
291
- for (const a of this.$$l[s]) {
292
- const u = this.$$c.$on(s, a);
293
- this.$$l_u.set(a, u);
291
+ for (const o of this.$$l[s]) {
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" && (at = 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" && (at = 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,8 +343,8 @@ function q(e, t, r, n) {
343
343
  return t;
344
344
  }
345
345
  }
346
- function qt(e, t, r, n, i, s) {
347
- let a = class extends at {
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
  }
@@ -355,26 +355,26 @@ function qt(e, t, r, n, i, s) {
355
355
  }
356
356
  };
357
357
  return Object.keys(t).forEach((u) => {
358
- Object.defineProperty(a.prototype, u, {
358
+ Object.defineProperty(o.prototype, u, {
359
359
  get() {
360
360
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
361
361
  },
362
362
  set(h) {
363
- var o;
364
- h = q(u, h, t), this.$$d[u] = h, (o = this.$$c) == null || o.$set({ [u]: h });
363
+ var a;
364
+ h = Y(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
365
365
  }
366
366
  });
367
367
  }), n.forEach((u) => {
368
- Object.defineProperty(a.prototype, u, {
368
+ Object.defineProperty(o.prototype, u, {
369
369
  get() {
370
370
  var h;
371
371
  return (h = this.$$c) == null ? void 0 : h[u];
372
372
  }
373
373
  });
374
374
  }), e.element = /** @type {any} */
375
- a, a;
375
+ o, o;
376
376
  }
377
- class Yt {
377
+ class Kt {
378
378
  constructor() {
379
379
  /**
380
380
  * ### PRIVATE API
@@ -383,7 +383,7 @@ class Yt {
383
383
  *
384
384
  * @type {any}
385
385
  */
386
- _(this, "$$");
386
+ v(this, "$$");
387
387
  /**
388
388
  * ### PRIVATE API
389
389
  *
@@ -391,11 +391,11 @@ class Yt {
391
391
  *
392
392
  * @type {any}
393
393
  */
394
- _(this, "$$set");
394
+ v(this, "$$set");
395
395
  }
396
396
  /** @returns {void} */
397
397
  $destroy() {
398
- Zt(this, 1), this.$destroy = v;
398
+ Qt(this, 1), this.$destroy = _;
399
399
  }
400
400
  /**
401
401
  * @template {Extract<keyof Events, string>} K
@@ -404,8 +404,8 @@ class Yt {
404
404
  * @returns {() => void}
405
405
  */
406
406
  $on(t, r) {
407
- if (!Be(r))
408
- return v;
407
+ if (!Pe(r))
408
+ return _;
409
409
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
410
410
  return n.push(r), () => {
411
411
  const i = n.indexOf(r);
@@ -417,63 +417,63 @@ class Yt {
417
417
  * @returns {void}
418
418
  */
419
419
  $set(t) {
420
- this.$$set && !Ct(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 Kt = "4";
424
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Kt);
425
- const O = [];
426
- function er(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 = v) {
431
+ function ie(e, t = _) {
432
432
  let r;
433
433
  const n = /* @__PURE__ */ new Set();
434
434
  function i(u) {
435
- if (rt(e, u) && (e = u, r)) {
436
- const h = !O.length;
437
- for (const o of n)
438
- o[1](), O.push(o, e);
435
+ if (nt(e, u) && (e = u, r)) {
436
+ const h = !w.length;
437
+ for (const a of n)
438
+ a[1](), w.push(a, e);
439
439
  if (h) {
440
- for (let o = 0; o < O.length; o += 2)
441
- O[o][0](O[o + 1]);
442
- O.length = 0;
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
446
  function s(u) {
447
447
  i(u(e));
448
448
  }
449
- function a(u, h = v) {
450
- const o = [u, h];
451
- return n.add(o), n.size === 1 && (r = t(i, s) || v), u(e), () => {
452
- n.delete(o), n.size === 0 && r && (r(), r = null);
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
+ n.delete(a), n.size === 0 && r && (r(), r = null);
453
453
  };
454
454
  }
455
- return { set: i, update: s, subscribe: a };
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 er(r, (a, u) => {
462
+ return tr(r, (o, u) => {
463
463
  let h = !1;
464
- const o = [];
465
- let l = 0, f = v;
464
+ const a = [];
465
+ let l = 0, f = _;
466
466
  const c = () => {
467
467
  if (l)
468
468
  return;
469
469
  f();
470
- const g = t(n ? o[0] : o, a, u);
471
- s ? a(g) : f = Be(g) ? g : v;
472
- }, b = i.map(
473
- (g, x) => nt(
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
- o[x] = T, l &= ~(1 << x), h && c();
476
+ a[x] = T, l &= ~(1 << x), h && c();
477
477
  },
478
478
  () => {
479
479
  l |= 1 << x;
@@ -481,126 +481,112 @@ function U(e, t, r) {
481
481
  )
482
482
  );
483
483
  return h = !0, c(), function() {
484
- z(b), f(), h = !1;
484
+ Z(d), f(), h = !1;
485
485
  };
486
486
  });
487
487
  }
488
- function tr(e) {
489
- return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
488
+ function rr(e) {
489
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
490
490
  }
491
- var rr = function(t) {
492
- return nr(t) && !ir(t);
491
+ var nr = function(t) {
492
+ return ir(t) && !sr(t);
493
493
  };
494
- function nr(e) {
494
+ function ir(e) {
495
495
  return !!e && typeof e == "object";
496
496
  }
497
- function ir(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 sr = typeof Symbol == "function" && Symbol.for, ar = sr ? Symbol.for("react.element") : 60103;
502
- function or(e) {
501
+ var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
502
+ function ur(e) {
503
503
  return e.$$typeof === ar;
504
504
  }
505
- function ur(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(ur(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 lr(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 fr(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 De(e) {
528
- return Object.keys(e).concat(fr(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 cr(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 mr(e, t, r) {
540
+ function pr(e, t, r) {
541
541
  var n = {};
542
- return r.isMergeableObject(e) && De(e).forEach(function(i) {
543
- n[i] = X(e[i], r);
544
- }), De(t).forEach(function(i) {
545
- cr(e, i) || (ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = lr(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 || rr, 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) : mr(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 dr = L, pr = dr;
561
- const br = /* @__PURE__ */ tr(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 p = function() {
594
- return p = 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
- }, p.apply(this, arguments);
587
+ }, S.apply(this, arguments);
602
588
  };
603
- function gr(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,46 +595,43 @@ function gr(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 he(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 : Tr, 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 Er(e) {
611
+ function yr(e) {
626
612
  return e == null || typeof e == "number" || typeof e == "boolean";
627
613
  }
628
- function ut(e, t, r, n) {
629
- var i = Er(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
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 Ne(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 ? ut : ht;
641
- return Ne(e, this, r, t.cache.create(), t.serializer);
642
- }
643
- function xr(e, t) {
644
- return Ne(e, this, ht, 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);
645
628
  }
646
629
  function _r(e, t) {
647
- return Ne(e, this, ut, t.cache.create(), t.serializer);
630
+ return lt(e, this, ht, t.cache.create(), t.serializer);
648
631
  }
649
- var vr = function() {
632
+ var Hr = function() {
650
633
  return JSON.stringify(arguments);
651
- }, Hr = (
634
+ }, Sr = (
652
635
  /** @class */
653
636
  function() {
654
637
  function e() {
@@ -662,60 +645,69 @@ var vr = function() {
662
645
  }()
663
646
  ), Tr = {
664
647
  create: function() {
665
- return new Hr();
648
+ return new Sr();
666
649
  }
667
- }, fe = {
668
- variadic: xr,
669
- monadic: _r
670
- }, 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;
671
663
  (function(e) {
672
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";
673
665
  })(m || (m = {}));
674
- var E;
666
+ var g;
675
667
  (function(e) {
676
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";
677
- })(E || (E = {}));
678
- var M;
669
+ })(g || (g = {}));
670
+ var C;
679
671
  (function(e) {
680
672
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
681
- })(M || (M = {}));
682
- function Fe(e) {
683
- return e.type === E.literal;
684
- }
685
- function Sr(e) {
686
- return e.type === E.argument;
673
+ })(C || (C = {}));
674
+ function je(e) {
675
+ return e.type === g.literal;
687
676
  }
688
- function lt(e) {
689
- return e.type === E.number;
677
+ function Br(e) {
678
+ return e.type === g.argument;
690
679
  }
691
680
  function ft(e) {
692
- return e.type === E.date;
681
+ return e.type === g.number;
693
682
  }
694
683
  function ct(e) {
695
- return e.type === E.time;
684
+ return e.type === g.date;
696
685
  }
697
686
  function mt(e) {
698
- return e.type === E.select;
687
+ return e.type === g.time;
699
688
  }
700
- function dt(e) {
701
- return e.type === E.plural;
689
+ function pt(e) {
690
+ return e.type === g.select;
702
691
  }
703
- function Br(e) {
704
- return e.type === E.pound;
692
+ function dt(e) {
693
+ return e.type === g.plural;
705
694
  }
706
- function pt(e) {
707
- return e.type === E.tag;
695
+ function Ar(e) {
696
+ return e.type === g.pound;
708
697
  }
709
698
  function bt(e) {
710
- return !!(e && typeof e == "object" && e.type === M.number);
699
+ return e.type === g.tag;
711
700
  }
712
- function Ee(e) {
713
- return !!(e && typeof e == "object" && e.type === M.dateTime);
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);
714
706
  }
715
- var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
716
- function Pr(e) {
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) {
717
709
  var t = {};
718
- return e.replace(Ar, function(r) {
710
+ return e.replace(Pr, function(r) {
719
711
  var n = r.length;
720
712
  switch (r[0]) {
721
713
  case "G":
@@ -804,18 +796,28 @@ function Pr(e) {
804
796
  return "";
805
797
  }), t;
806
798
  }
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
+ };
807
809
  var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
808
- function Or(e) {
810
+ function wr(e) {
809
811
  if (e.length === 0)
810
812
  throw new Error("Number skeleton cannot be empty");
811
813
  for (var t = e.split(Nr).filter(function(c) {
812
814
  return c.length > 0;
813
815
  }), r = [], n = 0, i = t; n < i.length; n++) {
814
- var s = i[n], a = s.split("/");
815
- if (a.length === 0)
816
+ var s = i[n], o = s.split("/");
817
+ if (o.length === 0)
816
818
  throw new Error("Invalid number skeleton");
817
- for (var u = a[0], h = a.slice(1), o = 0, l = h; o < l.length; o++) {
818
- var f = l[o];
819
+ for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
820
+ var f = l[a];
819
821
  if (f.length === 0)
820
822
  throw new Error("Invalid number skeleton");
821
823
  }
@@ -826,14 +828,14 @@ function Or(e) {
826
828
  function Ir(e) {
827
829
  return e.replace(/^(.*?)-/, "");
828
830
  }
829
- var je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Et = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
830
- function Ve(e) {
831
+ var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yt = /^(@+)?(\+|#+)?[rs]?$/g, $r = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
832
+ function ke(e) {
831
833
  var t = {};
832
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Et, 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) {
833
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)), "";
834
836
  }), t;
835
837
  }
836
- function xt(e) {
838
+ function vt(e) {
837
839
  switch (e) {
838
840
  case "sign-auto":
839
841
  return {
@@ -873,7 +875,7 @@ function xt(e) {
873
875
  };
874
876
  }
875
877
  }
876
- function $r(e) {
878
+ function Lr(e) {
877
879
  var t;
878
880
  if (e[0] === "E" && e[1] === "E" ? (t = {
879
881
  notation: "engineering"
@@ -881,17 +883,17 @@ function $r(e) {
881
883
  notation: "scientific"
882
884
  }, e = e.slice(1)), t) {
883
885
  var r = e.slice(0, 2);
884
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yt.test(e))
886
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !xt.test(e))
885
887
  throw new Error("Malformed concise eng/scientific notation");
886
888
  t.minimumIntegerDigits = e.length;
887
889
  }
888
890
  return t;
889
891
  }
890
- function ke(e) {
891
- var t = {}, r = xt(e);
892
+ function Xe(e) {
893
+ var t = {}, r = vt(e);
892
894
  return r || t;
893
895
  }
894
- function Lr(e) {
896
+ function Mr(e) {
895
897
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
896
898
  var i = n[r];
897
899
  switch (i.stem) {
@@ -926,13 +928,13 @@ function Lr(e) {
926
928
  t.notation = "compact", t.compactDisplay = "long";
927
929
  continue;
928
930
  case "scientific":
929
- t = p(p(p({}, t), { notation: "scientific" }), i.options.reduce(function(h, o) {
930
- return p(p({}, h), ke(o));
931
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
932
+ return E(E({}, h), Xe(a));
931
933
  }, {}));
932
934
  continue;
933
935
  case "engineering":
934
- t = p(p(p({}, t), { notation: "engineering" }), i.options.reduce(function(h, o) {
935
- return p(p({}, h), ke(o));
936
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
937
+ return E(E({}, h), Xe(a));
936
938
  }, {}));
937
939
  continue;
938
940
  case "notation-simple":
@@ -977,45 +979,45 @@ function Lr(e) {
977
979
  case "integer-width":
978
980
  if (i.options.length > 1)
979
981
  throw new RangeError("integer-width stems only accept a single optional option");
980
- i.options[0].replace(wr, function(h, o, l, f, c, b) {
981
- if (o)
982
+ i.options[0].replace($r, function(h, a, l, f, c, d) {
983
+ if (a)
982
984
  t.minimumIntegerDigits = l.length;
983
985
  else {
984
986
  if (f && c)
985
987
  throw new Error("We currently do not support maximum integer digits");
986
- if (b)
988
+ if (d)
987
989
  throw new Error("We currently do not support exact integer digits");
988
990
  }
989
991
  return "";
990
992
  });
991
993
  continue;
992
994
  }
993
- if (yt.test(i.stem)) {
995
+ if (xt.test(i.stem)) {
994
996
  t.minimumIntegerDigits = i.stem.length;
995
997
  continue;
996
998
  }
997
- if (je.test(i.stem)) {
999
+ if (Ve.test(i.stem)) {
998
1000
  if (i.options.length > 1)
999
1001
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1000
- i.stem.replace(je, function(h, o, l, f, c, b) {
1001
- return l === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.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), "";
1002
1004
  });
1003
1005
  var s = i.options[0];
1004
- s === "w" ? t = p(p({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = p(p({}, t), Ve(s)));
1006
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), ke(s)));
1005
1007
  continue;
1006
1008
  }
1007
- if (Et.test(i.stem)) {
1008
- t = p(p({}, t), Ve(i.stem));
1009
+ if (yt.test(i.stem)) {
1010
+ t = E(E({}, t), ke(i.stem));
1009
1011
  continue;
1010
1012
  }
1011
- var a = xt(i.stem);
1012
- a && (t = p(p({}, t), a));
1013
- var u = $r(i.stem);
1014
- u && (t = p(p({}, t), u));
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));
1015
1017
  }
1016
1018
  return t;
1017
1019
  }
1018
- var J = {
1020
+ var q = {
1019
1021
  "001": [
1020
1022
  "H",
1021
1023
  "h"
@@ -2430,23 +2432,23 @@ var J = {
2430
2432
  "h"
2431
2433
  ]
2432
2434
  };
2433
- function Mr(e, t) {
2435
+ function Cr(e, t) {
2434
2436
  for (var r = "", n = 0; n < e.length; n++) {
2435
2437
  var i = e.charAt(n);
2436
2438
  if (i === "j") {
2437
2439
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2438
2440
  s++, n++;
2439
- var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o = Cr(t);
2440
- for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
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; )
2441
2443
  r += h;
2442
- for (; a-- > 0; )
2443
- r = o + r;
2444
+ for (; o-- > 0; )
2445
+ r = a + r;
2444
2446
  } else
2445
2447
  i === "J" ? r += "H" : r += i;
2446
2448
  }
2447
2449
  return r;
2448
2450
  }
2449
- function Cr(e) {
2451
+ function Rr(e) {
2450
2452
  var t = e.hourCycle;
2451
2453
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2452
2454
  e.hourCycles && // @ts-ignore
@@ -2465,23 +2467,23 @@ function Cr(e) {
2465
2467
  }
2466
2468
  var r = e.language, n;
2467
2469
  r !== "root" && (n = e.maximize().region);
2468
- 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"];
2469
2471
  return i[0];
2470
2472
  }
2471
- var ce, Rr = new RegExp("^".concat(gt.source, "*")), Ur = new RegExp("".concat(gt.source, "*$"));
2472
- function d(e, t) {
2473
+ var pe, Ur = new RegExp("^".concat(Et.source, "*")), Gr = new RegExp("".concat(Et.source, "*$"));
2474
+ function p(e, t) {
2473
2475
  return { start: e, end: t };
2474
2476
  }
2475
- var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? 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) {
2476
2478
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2477
- }, ye = !0;
2479
+ }, ve = !0;
2478
2480
  try {
2479
- var zr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2480
- ye = ((ce = zr.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";
2481
2483
  } catch (e) {
2482
- ye = !1;
2484
+ ve = !1;
2483
2485
  }
2484
- var Xe = Gr ? (
2486
+ var We = Dr ? (
2485
2487
  // Native
2486
2488
  function(t, r, n) {
2487
2489
  return t.startsWith(r, n);
@@ -2491,31 +2493,31 @@ var Xe = Gr ? (
2491
2493
  function(t, r, n) {
2492
2494
  return t.slice(n, n + r.length) === r;
2493
2495
  }
2494
- ), xe = Dr ? String.fromCodePoint : (
2496
+ ), _e = Fr ? String.fromCodePoint : (
2495
2497
  // IE11
2496
2498
  function() {
2497
2499
  for (var t = [], r = 0; r < arguments.length; r++)
2498
2500
  t[r] = arguments[r];
2499
- for (var n = "", i = t.length, s = 0, a; i > s; ) {
2500
- if (a = t[s++], a > 1114111)
2501
- throw RangeError(a + " is not a valid code point");
2502
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
2501
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2502
+ if (o = t[s++], o > 1114111)
2503
+ throw RangeError(o + " is not a valid code point");
2504
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2503
2505
  }
2504
2506
  return n;
2505
2507
  }
2506
- ), We = (
2508
+ ), ze = (
2507
2509
  // native
2508
- Fr ? Object.fromEntries : (
2510
+ jr ? Object.fromEntries : (
2509
2511
  // Ponyfill
2510
2512
  function(t) {
2511
2513
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2512
- var s = i[n], a = s[0], u = s[1];
2513
- r[a] = u;
2514
+ var s = i[n], o = s[0], u = s[1];
2515
+ r[o] = u;
2514
2516
  }
2515
2517
  return r;
2516
2518
  }
2517
2519
  )
2518
- ), _t = jr ? (
2520
+ ), _t = Vr ? (
2519
2521
  // Native
2520
2522
  function(t, r) {
2521
2523
  return t.codePointAt(r);
@@ -2529,7 +2531,7 @@ var Xe = Gr ? (
2529
2531
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2530
2532
  }
2531
2533
  }
2532
- ), Zr = Vr ? (
2534
+ ), Qr = kr ? (
2533
2535
  // Native
2534
2536
  function(t) {
2535
2537
  return t.trimStart();
@@ -2537,9 +2539,9 @@ var Xe = Gr ? (
2537
2539
  ) : (
2538
2540
  // Ponyfill
2539
2541
  function(t) {
2540
- return t.replace(Rr, "");
2542
+ return t.replace(Ur, "");
2541
2543
  }
2542
- ), Qr = kr ? (
2544
+ ), Jr = Xr ? (
2543
2545
  // Native
2544
2546
  function(t) {
2545
2547
  return t.trimEnd();
@@ -2547,32 +2549,32 @@ var Xe = Gr ? (
2547
2549
  ) : (
2548
2550
  // Ponyfill
2549
2551
  function(t) {
2550
- return t.replace(Ur, "");
2552
+ return t.replace(Gr, "");
2551
2553
  }
2552
2554
  );
2553
- function vt(e, t) {
2555
+ function Ht(e, t) {
2554
2556
  return new RegExp(e, t);
2555
2557
  }
2556
- var _e;
2557
- if (ye) {
2558
- var ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2559
- _e = 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) {
2560
2562
  var n;
2561
- ze.lastIndex = r;
2562
- var i = ze.exec(t);
2563
+ Ze.lastIndex = r;
2564
+ var i = Ze.exec(t);
2563
2565
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2564
2566
  };
2565
2567
  } else
2566
- _e = function(t, r) {
2568
+ He = function(t, r) {
2567
2569
  for (var n = []; ; ) {
2568
2570
  var i = _t(t, r);
2569
- if (i === void 0 || Ht(i) || Kr(i))
2571
+ if (i === void 0 || St(i) || en(i))
2570
2572
  break;
2571
2573
  n.push(i), r += i >= 65536 ? 2 : 1;
2572
2574
  }
2573
- return xe.apply(void 0, n);
2575
+ return _e.apply(void 0, n);
2574
2576
  };
2575
- var Jr = (
2577
+ var qr = (
2576
2578
  /** @class */
2577
2579
  function() {
2578
2580
  function e(t, r) {
@@ -2586,33 +2588,33 @@ var Jr = (
2586
2588
  for (var i = []; !this.isEOF(); ) {
2587
2589
  var s = this.char();
2588
2590
  if (s === 123) {
2589
- var a = this.parseArgument(t, n);
2590
- if (a.err)
2591
- return a;
2592
- i.push(a.val);
2591
+ var o = this.parseArgument(t, n);
2592
+ if (o.err)
2593
+ return o;
2594
+ i.push(o.val);
2593
2595
  } else {
2594
2596
  if (s === 125 && t > 0)
2595
2597
  break;
2596
2598
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2597
2599
  var u = this.clonePosition();
2598
2600
  this.bump(), i.push({
2599
- type: E.pound,
2600
- location: d(u, this.clonePosition())
2601
+ type: g.pound,
2602
+ location: p(u, this.clonePosition())
2601
2603
  });
2602
2604
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2603
2605
  if (n)
2604
2606
  break;
2605
- return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
2606
- } else if (s === 60 && !this.ignoreTag && ve(this.peek() || 0)) {
2607
- var a = this.parseTag(t, r);
2608
- if (a.err)
2609
- return a;
2610
- i.push(a.val);
2607
+ return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2608
+ } else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
2609
+ var o = this.parseTag(t, r);
2610
+ if (o.err)
2611
+ return o;
2612
+ i.push(o.val);
2611
2613
  } else {
2612
- var a = this.parseLiteral(t, r);
2613
- if (a.err)
2614
- return a;
2615
- i.push(a.val);
2614
+ var o = this.parseLiteral(t, r);
2615
+ if (o.err)
2616
+ return o;
2617
+ i.push(o.val);
2616
2618
  }
2617
2619
  }
2618
2620
  }
@@ -2624,9 +2626,9 @@ var Jr = (
2624
2626
  if (this.bumpSpace(), this.bumpIf("/>"))
2625
2627
  return {
2626
2628
  val: {
2627
- type: E.literal,
2629
+ type: g.literal,
2628
2630
  value: "<".concat(i, "/>"),
2629
- location: d(n, this.clonePosition())
2631
+ location: p(n, this.clonePosition())
2630
2632
  },
2631
2633
  err: null
2632
2634
  };
@@ -2634,27 +2636,27 @@ var Jr = (
2634
2636
  var s = this.parseMessage(t + 1, r, !0);
2635
2637
  if (s.err)
2636
2638
  return s;
2637
- var a = s.val, u = this.clonePosition();
2639
+ var o = s.val, u = this.clonePosition();
2638
2640
  if (this.bumpIf("</")) {
2639
- if (this.isEOF() || !ve(this.char()))
2640
- return this.error(m.INVALID_TAG, d(u, this.clonePosition()));
2641
- var h = this.clonePosition(), o = this.parseTagName();
2642
- return i !== o ? this.error(m.UNMATCHED_CLOSING_TAG, d(h, 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(">") ? {
2643
2645
  val: {
2644
- type: E.tag,
2646
+ type: g.tag,
2645
2647
  value: i,
2646
- children: a,
2647
- location: d(n, this.clonePosition())
2648
+ children: o,
2649
+ location: p(n, this.clonePosition())
2648
2650
  },
2649
2651
  err: null
2650
- } : this.error(m.INVALID_TAG, d(u, this.clonePosition())));
2652
+ } : this.error(m.INVALID_TAG, p(u, this.clonePosition())));
2651
2653
  } else
2652
- return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
2654
+ return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2653
2655
  } else
2654
- return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
2656
+ return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2655
2657
  }, e.prototype.parseTagName = function() {
2656
2658
  var t = this.offset();
2657
- for (this.bump(); !this.isEOF() && Yr(this.char()); )
2659
+ for (this.bump(); !this.isEOF() && Kr(this.char()); )
2658
2660
  this.bump();
2659
2661
  return this.message.slice(t, this.offset());
2660
2662
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2664,9 +2666,9 @@ var Jr = (
2664
2666
  i += s;
2665
2667
  continue;
2666
2668
  }
2667
- var a = this.tryParseUnquoted(t, r);
2668
- if (a) {
2669
- i += a;
2669
+ var o = this.tryParseUnquoted(t, r);
2670
+ if (o) {
2671
+ i += o;
2670
2672
  continue;
2671
2673
  }
2672
2674
  var u = this.tryParseLeftAngleBracket();
@@ -2676,14 +2678,14 @@ var Jr = (
2676
2678
  }
2677
2679
  break;
2678
2680
  }
2679
- var h = d(n, this.clonePosition());
2681
+ var h = p(n, this.clonePosition());
2680
2682
  return {
2681
- val: { type: E.literal, value: i, location: h },
2683
+ val: { type: g.literal, value: i, location: h },
2682
2684
  err: null
2683
2685
  };
2684
2686
  }, e.prototype.tryParseLeftAngleBracket = function() {
2685
2687
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2686
- !qr(this.peek() || 0)) ? (this.bump(), "<") : null;
2688
+ !Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
2687
2689
  }, e.prototype.tryParseQuote = function(t) {
2688
2690
  if (this.isEOF() || this.char() !== 39)
2689
2691
  return null;
@@ -2717,100 +2719,100 @@ var Jr = (
2717
2719
  r.push(n);
2718
2720
  this.bump();
2719
2721
  }
2720
- return xe.apply(void 0, r);
2722
+ return _e.apply(void 0, r);
2721
2723
  }, e.prototype.tryParseUnquoted = function(t, r) {
2722
2724
  if (this.isEOF())
2723
2725
  return null;
2724
2726
  var n = this.char();
2725
- 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));
2726
2728
  }, e.prototype.parseArgument = function(t, r) {
2727
2729
  var n = this.clonePosition();
2728
2730
  if (this.bump(), this.bumpSpace(), this.isEOF())
2729
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
2731
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2730
2732
  if (this.char() === 125)
2731
- return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
2733
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2732
2734
  var i = this.parseIdentifierIfPossible().value;
2733
2735
  if (!i)
2734
- return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
2736
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2735
2737
  if (this.bumpSpace(), this.isEOF())
2736
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
2738
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2737
2739
  switch (this.char()) {
2738
2740
  case 125:
2739
2741
  return this.bump(), {
2740
2742
  val: {
2741
- type: E.argument,
2743
+ type: g.argument,
2742
2744
  // value does not include the opening and closing braces.
2743
2745
  value: i,
2744
- location: d(n, this.clonePosition())
2746
+ location: p(n, this.clonePosition())
2745
2747
  },
2746
2748
  err: null
2747
2749
  };
2748
2750
  case 44:
2749
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2751
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2750
2752
  default:
2751
- return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
2753
+ return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2752
2754
  }
2753
2755
  }, e.prototype.parseIdentifierIfPossible = function() {
2754
- var t = this.clonePosition(), r = this.offset(), n = _e(this.message, r), i = r + n.length;
2756
+ var t = this.clonePosition(), r = this.offset(), n = He(this.message, r), i = r + n.length;
2755
2757
  this.bumpTo(i);
2756
- var s = this.clonePosition(), a = d(t, s);
2757
- return { value: n, location: a };
2758
+ var s = this.clonePosition(), o = p(t, s);
2759
+ return { value: n, location: o };
2758
2760
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2759
- var s, a = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2761
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2760
2762
  switch (u) {
2761
2763
  case "":
2762
- return this.error(m.EXPECT_ARGUMENT_TYPE, d(a, h));
2764
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, h));
2763
2765
  case "number":
2764
2766
  case "date":
2765
2767
  case "time": {
2766
2768
  this.bumpSpace();
2767
- var o = null;
2769
+ var a = null;
2768
2770
  if (this.bumpIf(",")) {
2769
2771
  this.bumpSpace();
2770
2772
  var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2771
2773
  if (f.err)
2772
2774
  return f;
2773
- var c = Qr(f.val);
2775
+ var c = Jr(f.val);
2774
2776
  if (c.length === 0)
2775
- return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
2776
- var b = d(l, this.clonePosition());
2777
- o = { style: c, styleLocation: b };
2777
+ return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2778
+ var d = p(l, this.clonePosition());
2779
+ a = { style: c, styleLocation: d };
2778
2780
  }
2779
- var g = this.tryParseArgumentClose(i);
2780
- if (g.err)
2781
- return g;
2782
- var x = d(i, this.clonePosition());
2783
- if (o && Xe(o == null ? void 0 : o.style, "::", 0)) {
2784
- var T = Zr(o.style.slice(2));
2781
+ var b = this.tryParseArgumentClose(i);
2782
+ if (b.err)
2783
+ return b;
2784
+ var x = p(i, this.clonePosition());
2785
+ if (a && We(a == null ? void 0 : a.style, "::", 0)) {
2786
+ var T = Qr(a.style.slice(2));
2785
2787
  if (u === "number") {
2786
- var f = this.parseNumberSkeletonFromString(T, o.styleLocation);
2788
+ var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
2787
2789
  return f.err ? f : {
2788
- val: { type: E.number, value: n, location: x, style: f.val },
2790
+ val: { type: g.number, value: n, location: x, style: f.val },
2789
2791
  err: null
2790
2792
  };
2791
2793
  } else {
2792
2794
  if (T.length === 0)
2793
2795
  return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
2794
- var F = T;
2795
- this.locale && (F = Mr(T, this.locale));
2796
+ var j = T;
2797
+ this.locale && (j = Cr(T, this.locale));
2796
2798
  var c = {
2797
- type: M.dateTime,
2798
- pattern: F,
2799
- location: o.styleLocation,
2800
- parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
2801
- }, P = u === "date" ? E.date : E.time;
2799
+ type: C.dateTime,
2800
+ pattern: j,
2801
+ location: a.styleLocation,
2802
+ parsedOptions: this.shouldParseSkeletons ? Or(j) : {}
2803
+ }, O = u === "date" ? g.date : g.time;
2802
2804
  return {
2803
- val: { type: P, value: n, location: x, style: c },
2805
+ val: { type: O, value: n, location: x, style: c },
2804
2806
  err: null
2805
2807
  };
2806
2808
  }
2807
2809
  }
2808
2810
  return {
2809
2811
  val: {
2810
- type: u === "number" ? E.number : u === "date" ? E.date : E.time,
2812
+ type: u === "number" ? g.number : u === "date" ? g.date : g.time,
2811
2813
  value: n,
2812
2814
  location: x,
2813
- style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
2815
+ style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2814
2816
  },
2815
2817
  err: null
2816
2818
  };
@@ -2820,50 +2822,50 @@ var Jr = (
2820
2822
  case "select": {
2821
2823
  var H = this.clonePosition();
2822
2824
  if (this.bumpSpace(), !this.bumpIf(","))
2823
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(H, p({}, H)));
2825
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, te({}, H)));
2824
2826
  this.bumpSpace();
2825
- var j = this.parseIdentifierIfPossible(), B = 0;
2826
- if (u !== "select" && j.value === "offset") {
2827
+ var V = this.parseIdentifierIfPossible(), A = 0;
2828
+ if (u !== "select" && V.value === "offset") {
2827
2829
  if (!this.bumpIf(":"))
2828
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
2830
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2829
2831
  this.bumpSpace();
2830
2832
  var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2831
2833
  if (f.err)
2832
2834
  return f;
2833
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
2835
+ this.bumpSpace(), V = this.parseIdentifierIfPossible(), A = f.val;
2834
2836
  }
2835
- var Q = this.tryParsePluralOrSelectOptions(t, u, r, j);
2836
- if (Q.err)
2837
- return Q;
2838
- var g = this.tryParseArgumentClose(i);
2839
- if (g.err)
2840
- return g;
2841
- var we = d(i, this.clonePosition());
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());
2842
2844
  return u === "select" ? {
2843
2845
  val: {
2844
- type: E.select,
2846
+ type: g.select,
2845
2847
  value: n,
2846
- options: We(Q.val),
2847
- location: we
2848
+ options: ze(J.val),
2849
+ location: $e
2848
2850
  },
2849
2851
  err: null
2850
2852
  } : {
2851
2853
  val: {
2852
- type: E.plural,
2854
+ type: g.plural,
2853
2855
  value: n,
2854
- options: We(Q.val),
2855
- offset: B,
2856
+ options: ze(J.val),
2857
+ offset: A,
2856
2858
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2857
- location: we
2859
+ location: $e
2858
2860
  },
2859
2861
  err: null
2860
2862
  };
2861
2863
  }
2862
2864
  default:
2863
- return this.error(m.INVALID_ARGUMENT_TYPE, d(a, h));
2865
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(o, h));
2864
2866
  }
2865
2867
  }, e.prototype.tryParseArgumentClose = function(t) {
2866
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2868
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2867
2869
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2868
2870
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2869
2871
  var n = this.char();
@@ -2872,7 +2874,7 @@ var Jr = (
2872
2874
  this.bump();
2873
2875
  var i = this.clonePosition();
2874
2876
  if (!this.bumpUntil("'"))
2875
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
2877
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2876
2878
  this.bump();
2877
2879
  break;
2878
2880
  }
@@ -2902,64 +2904,64 @@ var Jr = (
2902
2904
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2903
2905
  var n = [];
2904
2906
  try {
2905
- n = Or(t);
2907
+ n = wr(t);
2906
2908
  } catch (i) {
2907
2909
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2908
2910
  }
2909
2911
  return {
2910
2912
  val: {
2911
- type: M.number,
2913
+ type: C.number,
2912
2914
  tokens: n,
2913
2915
  location: r,
2914
- parsedOptions: this.shouldParseSkeletons ? Lr(n) : {}
2916
+ parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
2915
2917
  },
2916
2918
  err: null
2917
2919
  };
2918
2920
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2919
- for (var s, a = !1, u = [], h = /* @__PURE__ */ new Set(), o = i.value, l = i.location; ; ) {
2920
- if (o.length === 0) {
2921
+ for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2922
+ if (a.length === 0) {
2921
2923
  var f = this.clonePosition();
2922
2924
  if (r !== "select" && this.bumpIf("=")) {
2923
2925
  var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2924
2926
  if (c.err)
2925
2927
  return c;
2926
- l = d(f, this.clonePosition()), o = this.message.slice(f.offset, this.offset());
2928
+ l = p(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2927
2929
  } else
2928
2930
  break;
2929
2931
  }
2930
- if (h.has(o))
2932
+ if (h.has(a))
2931
2933
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2932
- o === "other" && (a = !0), this.bumpSpace();
2933
- var b = this.clonePosition();
2934
+ a === "other" && (o = !0), this.bumpSpace();
2935
+ var d = this.clonePosition();
2934
2936
  if (!this.bumpIf("{"))
2935
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
2936
- var g = this.parseMessage(t + 1, r, n);
2937
- if (g.err)
2938
- return g;
2939
- var x = this.tryParseArgumentClose(b);
2937
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2938
+ var b = this.parseMessage(t + 1, r, n);
2939
+ if (b.err)
2940
+ return b;
2941
+ var x = this.tryParseArgumentClose(d);
2940
2942
  if (x.err)
2941
2943
  return x;
2942
2944
  u.push([
2943
- o,
2945
+ a,
2944
2946
  {
2945
- value: g.val,
2946
- location: d(b, this.clonePosition())
2947
+ value: b.val,
2948
+ location: p(d, this.clonePosition())
2947
2949
  }
2948
- ]), h.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, l = s.location;
2950
+ ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2949
2951
  }
2950
- return u.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: u, 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 };
2951
2953
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2952
2954
  var n = 1, i = this.clonePosition();
2953
2955
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2954
- for (var s = !1, a = 0; !this.isEOF(); ) {
2956
+ for (var s = !1, o = 0; !this.isEOF(); ) {
2955
2957
  var u = this.char();
2956
2958
  if (u >= 48 && u <= 57)
2957
- s = !0, a = a * 10 + (u - 48), this.bump();
2959
+ s = !0, o = o * 10 + (u - 48), this.bump();
2958
2960
  else
2959
2961
  break;
2960
2962
  }
2961
- var h = d(i, this.clonePosition());
2962
- return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
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);
2963
2965
  }, e.prototype.offset = function() {
2964
2966
  return this.position.offset;
2965
2967
  }, e.prototype.isEOF = function() {
@@ -2993,7 +2995,7 @@ var Jr = (
2993
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);
2994
2996
  }
2995
2997
  }, e.prototype.bumpIf = function(t) {
2996
- if (Xe(this.message, t, this.offset())) {
2998
+ if (We(this.message, t, this.offset())) {
2997
2999
  for (var r = 0; r < t.length; r++)
2998
3000
  this.bump();
2999
3001
  return !0;
@@ -3015,7 +3017,7 @@ var Jr = (
3015
3017
  break;
3016
3018
  }
3017
3019
  }, e.prototype.bumpSpace = function() {
3018
- for (; !this.isEOF() && Ht(this.char()); )
3020
+ for (; !this.isEOF() && St(this.char()); )
3019
3021
  this.bump();
3020
3022
  }, e.prototype.peek = function() {
3021
3023
  if (this.isEOF())
@@ -3025,47 +3027,47 @@ var Jr = (
3025
3027
  }, e;
3026
3028
  }()
3027
3029
  );
3028
- function ve(e) {
3030
+ function Se(e) {
3029
3031
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3030
3032
  }
3031
- function qr(e) {
3032
- return ve(e) || e === 47;
3033
- }
3034
3033
  function Yr(e) {
3034
+ return Se(e) || e === 47;
3035
+ }
3036
+ function Kr(e) {
3035
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;
3036
3038
  }
3037
- function Ht(e) {
3039
+ function St(e) {
3038
3040
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3039
3041
  }
3040
- function Kr(e) {
3042
+ function en(e) {
3041
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;
3042
3044
  }
3043
- function He(e) {
3045
+ function Te(e) {
3044
3046
  e.forEach(function(t) {
3045
- if (delete t.location, mt(t) || dt(t))
3047
+ if (delete t.location, pt(t) || dt(t))
3046
3048
  for (var r in t.options)
3047
- delete t.options[r].location, He(t.options[r].value);
3049
+ delete t.options[r].location, Te(t.options[r].value);
3048
3050
  else
3049
- lt(t) && bt(t.style) || (ft(t) || ct(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);
3050
3052
  });
3051
3053
  }
3052
- function en(e, t) {
3053
- t === void 0 && (t = {}), t = p({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3054
- var r = new Jr(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();
3055
3057
  if (r.err) {
3056
3058
  var n = SyntaxError(m[r.err.kind]);
3057
3059
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3058
3060
  }
3059
- return t != null && t.captureLocation || He(r.val), r.val;
3061
+ return t != null && t.captureLocation || Te(r.val), r.val;
3060
3062
  }
3061
- var C;
3063
+ var R;
3062
3064
  (function(e) {
3063
3065
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3064
- })(C || (C = {}));
3065
- var ie = (
3066
+ })(R || (R = {}));
3067
+ var oe = (
3066
3068
  /** @class */
3067
3069
  function(e) {
3068
- ne(t, e);
3070
+ se(t, e);
3069
3071
  function t(r, n, i) {
3070
3072
  var s = e.call(this, r) || this;
3071
3073
  return s.code = n, s.originalMessage = i, s;
@@ -3074,64 +3076,64 @@ var ie = (
3074
3076
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3075
3077
  }, t;
3076
3078
  }(Error)
3077
- ), Ze = (
3079
+ ), Qe = (
3078
3080
  /** @class */
3079
3081
  function(e) {
3080
- ne(t, e);
3082
+ se(t, e);
3081
3083
  function t(r, n, i, s) {
3082
- 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;
3083
3085
  }
3084
3086
  return t;
3085
- }(ie)
3086
- ), tn = (
3087
+ }(oe)
3088
+ ), rn = (
3087
3089
  /** @class */
3088
3090
  function(e) {
3089
- ne(t, e);
3091
+ se(t, e);
3090
3092
  function t(r, n, i) {
3091
- 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;
3092
3094
  }
3093
3095
  return t;
3094
- }(ie)
3095
- ), rn = (
3096
+ }(oe)
3097
+ ), nn = (
3096
3098
  /** @class */
3097
3099
  function(e) {
3098
- ne(t, e);
3100
+ se(t, e);
3099
3101
  function t(r, n) {
3100
- 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;
3101
3103
  }
3102
3104
  return t;
3103
- }(ie)
3105
+ }(oe)
3104
3106
  ), y;
3105
3107
  (function(e) {
3106
3108
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3107
3109
  })(y || (y = {}));
3108
- function nn(e) {
3110
+ function sn(e) {
3109
3111
  return e.length < 2 ? e : e.reduce(function(t, r) {
3110
3112
  var n = t[t.length - 1];
3111
3113
  return !n || n.type !== y.literal || r.type !== y.literal ? t.push(r) : n.value += r.value, t;
3112
3114
  }, []);
3113
3115
  }
3114
- function sn(e) {
3116
+ function on(e) {
3115
3117
  return typeof e == "function";
3116
3118
  }
3117
- function Y(e, t, r, n, i, s, a) {
3118
- if (e.length === 1 && Fe(e[0]))
3119
+ function K(e, t, r, n, i, s, o) {
3120
+ if (e.length === 1 && je(e[0]))
3119
3121
  return [
3120
3122
  {
3121
3123
  type: y.literal,
3122
3124
  value: e[0].value
3123
3125
  }
3124
3126
  ];
3125
- for (var u = [], h = 0, o = e; h < o.length; h++) {
3126
- var l = o[h];
3127
- if (Fe(l)) {
3127
+ for (var u = [], h = 0, a = e; h < a.length; h++) {
3128
+ var l = a[h];
3129
+ if (je(l)) {
3128
3130
  u.push({
3129
3131
  type: y.literal,
3130
3132
  value: l.value
3131
3133
  });
3132
3134
  continue;
3133
3135
  }
3134
- if (Br(l)) {
3136
+ if (Ar(l)) {
3135
3137
  typeof s == "number" && u.push({
3136
3138
  type: y.literal,
3137
3139
  value: r.getNumberFormat(t).format(s)
@@ -3140,89 +3142,89 @@ function Y(e, t, r, n, i, s, a) {
3140
3142
  }
3141
3143
  var f = l.value;
3142
3144
  if (!(i && f in i))
3143
- throw new rn(f, a);
3145
+ throw new nn(f, o);
3144
3146
  var c = i[f];
3145
- if (Sr(l)) {
3147
+ if (Br(l)) {
3146
3148
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3147
3149
  type: typeof c == "string" ? y.literal : y.object,
3148
3150
  value: c
3149
3151
  });
3150
3152
  continue;
3151
3153
  }
3152
- if (ft(l)) {
3153
- var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
3154
+ if (ct(l)) {
3155
+ var d = typeof l.style == "string" ? n.date[l.style] : xe(l.style) ? l.style.parsedOptions : void 0;
3154
3156
  u.push({
3155
3157
  type: y.literal,
3156
- value: r.getDateTimeFormat(t, b).format(c)
3158
+ value: r.getDateTimeFormat(t, d).format(c)
3157
3159
  });
3158
3160
  continue;
3159
3161
  }
3160
- if (ct(l)) {
3161
- var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
3162
+ if (mt(l)) {
3163
+ var d = typeof l.style == "string" ? n.time[l.style] : xe(l.style) ? l.style.parsedOptions : n.time.medium;
3162
3164
  u.push({
3163
3165
  type: y.literal,
3164
- value: r.getDateTimeFormat(t, b).format(c)
3166
+ value: r.getDateTimeFormat(t, d).format(c)
3165
3167
  });
3166
3168
  continue;
3167
3169
  }
3168
- if (lt(l)) {
3169
- var b = typeof l.style == "string" ? n.number[l.style] : bt(l.style) ? l.style.parsedOptions : void 0;
3170
- b && b.scale && (c = c * (b.scale || 1)), u.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({
3171
3173
  type: y.literal,
3172
- value: r.getNumberFormat(t, b).format(c)
3174
+ value: r.getNumberFormat(t, d).format(c)
3173
3175
  });
3174
3176
  continue;
3175
3177
  }
3176
- if (pt(l)) {
3177
- var g = l.children, x = l.value, T = i[x];
3178
- if (!sn(T))
3179
- throw new tn(x, "function", a);
3180
- var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
3181
- 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;
3182
3184
  }));
3183
- Array.isArray(P) || (P = [P]), u.push.apply(u, P.map(function(B) {
3185
+ Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(A) {
3184
3186
  return {
3185
- type: typeof B == "string" ? y.literal : y.object,
3186
- value: B
3187
+ type: typeof A == "string" ? y.literal : y.object,
3188
+ value: A
3187
3189
  };
3188
3190
  }));
3189
3191
  }
3190
- if (mt(l)) {
3192
+ if (pt(l)) {
3191
3193
  var H = l.options[c] || l.options.other;
3192
3194
  if (!H)
3193
- throw new Ze(l.value, c, Object.keys(l.options), a);
3194
- u.push.apply(u, 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));
3195
3197
  continue;
3196
3198
  }
3197
3199
  if (dt(l)) {
3198
3200
  var H = l.options["=".concat(c)];
3199
3201
  if (!H) {
3200
3202
  if (!Intl.PluralRules)
3201
- throw new ie(`Intl.PluralRules is not available in this environment.
3203
+ throw new oe(`Intl.PluralRules is not available in this environment.
3202
3204
  Try polyfilling it using "@formatjs/intl-pluralrules"
3203
- `, C.MISSING_INTL_API, a);
3204
- var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3205
- 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;
3206
3208
  }
3207
3209
  if (!H)
3208
- throw new Ze(l.value, c, Object.keys(l.options), a);
3209
- u.push.apply(u, 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)));
3210
3212
  continue;
3211
3213
  }
3212
3214
  }
3213
- return nn(u);
3215
+ return sn(u);
3214
3216
  }
3215
3217
  function an(e, t) {
3216
- return t ? p(p(p({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3217
- return r[n] = p(p({}, e[n]), t[n] || {}), r;
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;
3218
3220
  }, {})) : e;
3219
3221
  }
3220
- function on(e, t) {
3222
+ function un(e, t) {
3221
3223
  return t ? Object.keys(e).reduce(function(r, n) {
3222
3224
  return r[n] = an(e[n], t[n]), r;
3223
- }, p({}, e)) : e;
3225
+ }, S({}, e)) : e;
3224
3226
  }
3225
- function me(e) {
3227
+ function de(e) {
3226
3228
  return {
3227
3229
  create: function() {
3228
3230
  return {
@@ -3236,39 +3238,39 @@ function me(e) {
3236
3238
  }
3237
3239
  };
3238
3240
  }
3239
- function un(e) {
3241
+ function hn(e) {
3240
3242
  return e === void 0 && (e = {
3241
3243
  number: {},
3242
3244
  dateTime: {},
3243
3245
  pluralRules: {}
3244
3246
  }), {
3245
- getNumberFormat: le(function() {
3247
+ getNumberFormat: ce(function() {
3246
3248
  for (var t, r = [], n = 0; n < arguments.length; n++)
3247
3249
  r[n] = arguments[n];
3248
- return new ((t = Intl.NumberFormat).bind.apply(t, he([void 0], r, !1)))();
3250
+ return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
3249
3251
  }, {
3250
- cache: me(e.number),
3251
- strategy: fe.variadic
3252
+ cache: de(e.number),
3253
+ strategy: me.variadic
3252
3254
  }),
3253
- getDateTimeFormat: le(function() {
3255
+ getDateTimeFormat: ce(function() {
3254
3256
  for (var t, r = [], n = 0; n < arguments.length; n++)
3255
3257
  r[n] = arguments[n];
3256
- return new ((t = Intl.DateTimeFormat).bind.apply(t, he([void 0], r, !1)))();
3258
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
3257
3259
  }, {
3258
- cache: me(e.dateTime),
3259
- strategy: fe.variadic
3260
+ cache: de(e.dateTime),
3261
+ strategy: me.variadic
3260
3262
  }),
3261
- getPluralRules: le(function() {
3263
+ getPluralRules: ce(function() {
3262
3264
  for (var t, r = [], n = 0; n < arguments.length; n++)
3263
3265
  r[n] = arguments[n];
3264
- return new ((t = Intl.PluralRules).bind.apply(t, he([void 0], r, !1)))();
3266
+ return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
3265
3267
  }, {
3266
- cache: me(e.pluralRules),
3267
- strategy: fe.variadic
3268
+ cache: de(e.pluralRules),
3269
+ strategy: me.variadic
3268
3270
  })
3269
3271
  };
3270
3272
  }
3271
- var hn = (
3273
+ var ln = (
3272
3274
  /** @class */
3273
3275
  function() {
3274
3276
  function e(t, r, n, i) {
@@ -3279,15 +3281,15 @@ var hn = (
3279
3281
  dateTime: {},
3280
3282
  pluralRules: {}
3281
3283
  }, this.format = function(h) {
3282
- var o = s.formatToParts(h);
3283
- if (o.length === 1)
3284
- return o[0].value;
3285
- var l = o.reduce(function(f, c) {
3284
+ var a = s.formatToParts(h);
3285
+ if (a.length === 1)
3286
+ return a[0].value;
3287
+ var l = a.reduce(function(f, c) {
3286
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;
3287
3289
  }, []);
3288
3290
  return l.length <= 1 ? l[0] || "" : l;
3289
3291
  }, this.formatToParts = function(h) {
3290
- return Y(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3292
+ return K(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3291
3293
  }, this.resolvedOptions = function() {
3292
3294
  var h;
3293
3295
  return {
@@ -3298,15 +3300,15 @@ var hn = (
3298
3300
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3299
3301
  if (this.message = t, !e.__parse)
3300
3302
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3301
- var a = i || {};
3302
- a.formatters;
3303
- var u = gr(a, ["formatters"]);
3304
- this.ast = e.__parse(t, p(p({}, u), { locale: this.resolvedLocale }));
3303
+ var o = i || {};
3304
+ o.formatters;
3305
+ var u = Er(o, ["formatters"]);
3306
+ this.ast = e.__parse(t, S(S({}, u), { locale: this.resolvedLocale }));
3305
3307
  } else
3306
3308
  this.ast = t;
3307
3309
  if (!Array.isArray(this.ast))
3308
3310
  throw new TypeError("A message must be provided as a String or AST.");
3309
- this.formats = on(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
3311
+ this.formats = un(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
3310
3312
  }
3311
3313
  return Object.defineProperty(e, "defaultLocale", {
3312
3314
  get: function() {
@@ -3319,7 +3321,7 @@ var hn = (
3319
3321
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3320
3322
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3321
3323
  }
3322
- }, e.__parse = en, e.formats = {
3324
+ }, e.__parse = tn, e.formats = {
3323
3325
  number: {
3324
3326
  integer: {
3325
3327
  maximumFractionDigits: 0
@@ -3380,7 +3382,7 @@ var hn = (
3380
3382
  }, e;
3381
3383
  }()
3382
3384
  );
3383
- function ln(e, t) {
3385
+ function fn(e, t) {
3384
3386
  if (t == null)
3385
3387
  return;
3386
3388
  if (t in e)
@@ -3401,92 +3403,92 @@ function ln(e, t) {
3401
3403
  n = void 0;
3402
3404
  return n;
3403
3405
  }
3404
- const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), Tt = (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) => {
3405
3407
  if (t == null)
3406
3408
  return;
3407
- if (t in S && e in S[t])
3408
- return S[t][e];
3409
- const r = se(t);
3409
+ if (t in B && e in B[t])
3410
+ return B[t][e];
3411
+ const r = ae(t);
3410
3412
  for (let n = 0; n < r.length; n++) {
3411
- const i = r[n], s = mn(i, e);
3413
+ const i = r[n], s = pn(i, e);
3412
3414
  if (s)
3413
- return fn(e, t, s);
3415
+ return cn(e, t, s);
3414
3416
  }
3415
3417
  };
3416
- let Oe;
3417
- const Z = re({});
3418
- function cn(e) {
3419
- return Oe[e] || null;
3418
+ let we;
3419
+ const Q = ie({});
3420
+ function mn(e) {
3421
+ return we[e] || null;
3420
3422
  }
3421
- function St(e) {
3422
- return e in Oe;
3423
+ function Bt(e) {
3424
+ return e in we;
3423
3425
  }
3424
- function mn(e, t) {
3425
- if (!St(e))
3426
+ function pn(e, t) {
3427
+ if (!Bt(e))
3426
3428
  return null;
3427
- const r = cn(e);
3428
- return ln(r, t);
3429
+ const r = mn(e);
3430
+ return fn(r, t);
3429
3431
  }
3430
3432
  function dn(e) {
3431
3433
  if (e == null)
3432
3434
  return;
3433
- const t = se(e);
3435
+ const t = ae(e);
3434
3436
  for (let r = 0; r < t.length; r++) {
3435
3437
  const n = t[r];
3436
- if (St(n))
3438
+ if (Bt(n))
3437
3439
  return n;
3438
3440
  }
3439
3441
  }
3440
- function Bt(e, ...t) {
3441
- delete S[e], Z.update((r) => (r[e] = br.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));
3442
3444
  }
3443
- U(
3444
- [Z],
3445
+ G(
3446
+ [Q],
3445
3447
  ([e]) => Object.keys(e)
3446
3448
  );
3447
- Z.subscribe((e) => Oe = e);
3448
- const K = {};
3449
- function pn(e, t) {
3450
- 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];
3451
3453
  }
3452
- function At(e) {
3453
- return K[e];
3454
+ function Pt(e) {
3455
+ return ee[e];
3454
3456
  }
3455
- function bn(e) {
3456
- return se(e).map((t) => {
3457
- const r = At(t);
3457
+ function gn(e) {
3458
+ return ae(e).map((t) => {
3459
+ const r = Pt(t);
3458
3460
  return [t, r ? [...r] : []];
3459
3461
  }).filter(([, t]) => t.length > 0);
3460
3462
  }
3461
- function Te(e) {
3462
- return e == null ? !1 : se(e).some(
3463
+ function Be(e) {
3464
+ return e == null ? !1 : ae(e).some(
3463
3465
  (t) => {
3464
3466
  var r;
3465
- return (r = At(t)) == null ? void 0 : r.size;
3467
+ return (r = Pt(t)) == null ? void 0 : r.size;
3466
3468
  }
3467
3469
  );
3468
3470
  }
3469
- function gn(e, t) {
3471
+ function En(e, t) {
3470
3472
  return Promise.all(
3471
- t.map((n) => (pn(e, n), n().then((i) => i.default || i)))
3472
- ).then((n) => Bt(e, ...n));
3473
- }
3474
- const V = {};
3475
- function Pt(e) {
3476
- if (!Te(e))
3477
- return e in V ? V[e] : Promise.resolve();
3478
- const t = bn(e);
3479
- 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(
3480
3482
  t.map(
3481
- ([r, n]) => gn(r, n)
3483
+ ([r, n]) => En(r, n)
3482
3484
  )
3483
3485
  ).then(() => {
3484
- if (Te(e))
3485
- return Pt(e);
3486
- delete V[e];
3487
- }), V[e];
3486
+ if (Be(e))
3487
+ return Ot(e);
3488
+ delete k[e];
3489
+ }), k[e];
3488
3490
  }
3489
- const En = {
3491
+ const yn = {
3490
3492
  number: {
3491
3493
  scientific: { notation: "scientific" },
3492
3494
  engineering: { notation: "engineering" },
@@ -3515,150 +3517,150 @@ const En = {
3515
3517
  timeZoneName: "short"
3516
3518
  }
3517
3519
  }
3518
- }, yn = {
3520
+ }, xn = {
3519
3521
  fallbackLocale: null,
3520
3522
  loadingDelay: 200,
3521
- formats: En,
3523
+ formats: yn,
3522
3524
  warnOnMissingMessages: !0,
3523
3525
  handleMissingMessage: void 0,
3524
3526
  ignoreTag: !0
3525
- }, xn = yn;
3526
- function R() {
3527
- return xn;
3528
- }
3529
- const de = re(!1);
3530
- var _n = Object.defineProperty, vn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Qe = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Je = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
3531
- for (var r in t)
3532
- Tn.call(t, r) && Je(e, r, t[r]);
3533
- if (Qe)
3534
- for (var r of Qe(t))
3535
- Sn.call(t, r) && Je(e, r, t[r]);
3527
+ }, vn = xn;
3528
+ function U() {
3529
+ return vn;
3530
+ }
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) => {
3533
+ for (var r in t || (t = {}))
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]);
3536
3538
  return e;
3537
- }, An = (e, t) => vn(e, Hn(t));
3538
- let Se;
3539
- const ee = re(null);
3540
- function qe(e) {
3539
+ }, Pn = (e, t) => Hn(e, Sn(t));
3540
+ let Ae;
3541
+ const re = ie(null);
3542
+ function Ye(e) {
3541
3543
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3542
3544
  }
3543
- function se(e, t = R().fallbackLocale) {
3544
- const r = qe(e);
3545
- return t ? [.../* @__PURE__ */ new Set([...r, ...qe(t)])] : r;
3545
+ function ae(e, t = U().fallbackLocale) {
3546
+ const r = Ye(e);
3547
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
3546
3548
  }
3547
- function A() {
3548
- return Se != null ? Se : void 0;
3549
+ function P() {
3550
+ return Ae != null ? Ae : void 0;
3549
3551
  }
3550
- ee.subscribe((e) => {
3551
- 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);
3552
3554
  });
3553
- const Pn = (e) => {
3554
- if (e && dn(e) && Te(e)) {
3555
- const { loadingDelay: t } = R();
3555
+ const On = (e) => {
3556
+ if (e && dn(e) && Be(e)) {
3557
+ const { loadingDelay: t } = U();
3556
3558
  let r;
3557
- return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
3558
- () => de.set(!0),
3559
+ return typeof window != "undefined" && P() != null && t ? r = window.setTimeout(
3560
+ () => be.set(!0),
3559
3561
  t
3560
- ) : de.set(!0), Pt(e).then(() => {
3561
- ee.set(e);
3562
+ ) : be.set(!0), Ot(e).then(() => {
3563
+ re.set(e);
3562
3564
  }).finally(() => {
3563
- clearTimeout(r), de.set(!1);
3565
+ clearTimeout(r), be.set(!1);
3564
3566
  });
3565
3567
  }
3566
- return ee.set(e);
3567
- }, G = An(Bn({}, ee), {
3568
- set: Pn
3569
- }), ae = (e) => {
3568
+ return re.set(e);
3569
+ }, D = Pn(An({}, re), {
3570
+ set: On
3571
+ }), ue = (e) => {
3570
3572
  const t = /* @__PURE__ */ Object.create(null);
3571
3573
  return (n) => {
3572
3574
  const i = JSON.stringify(n);
3573
3575
  return i in t ? t[i] : t[i] = e(n);
3574
3576
  };
3575
3577
  };
3576
- var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Ye = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ie = (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) => {
3577
3579
  for (var r in t || (t = {}))
3578
- Nt.call(t, r) && Ye(e, r, t[r]);
3579
- if (te)
3580
- for (var r of te(t))
3581
- Ot.call(t, r) && Ye(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]);
3582
3584
  return e;
3583
- }, D = (e, t) => {
3585
+ }, F = (e, t) => {
3584
3586
  var r = {};
3585
3587
  for (var n in e)
3586
3588
  Nt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3587
- if (e != null && te)
3588
- for (var n of te(e))
3589
- t.indexOf(n) < 0 && Ot.call(e, n) && (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]);
3590
3592
  return r;
3591
3593
  };
3592
- const W = (e, t) => {
3593
- const { formats: r } = R();
3594
+ const z = (e, t) => {
3595
+ const { formats: r } = U();
3594
3596
  if (e in r && t in r[e])
3595
3597
  return r[e][t];
3596
3598
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3597
- }, On = ae(
3599
+ }, wn = ue(
3598
3600
  (e) => {
3599
- 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"]);
3600
3602
  if (r == null)
3601
3603
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3602
- return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
3604
+ return n && (i = z("number", n)), new Intl.NumberFormat(r, i);
3603
3605
  }
3604
- ), In = ae(
3606
+ ), In = ue(
3605
3607
  (e) => {
3606
- 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"]);
3607
3609
  if (r == null)
3608
3610
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3609
- 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);
3610
3612
  }
3611
- ), wn = ae(
3613
+ ), $n = ue(
3612
3614
  (e) => {
3613
- 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"]);
3614
3616
  if (r == null)
3615
3617
  throw new Error(
3616
3618
  '[svelte-i18n] A "locale" must be set to format time values'
3617
3619
  );
3618
- 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);
3619
3621
  }
3620
- ), $n = (e = {}) => {
3622
+ ), Ln = (e = {}) => {
3621
3623
  var t = e, {
3622
- locale: r = A()
3623
- } = t, n = D(t, [
3624
+ locale: r = P()
3625
+ } = t, n = F(t, [
3624
3626
  "locale"
3625
3627
  ]);
3626
- return On(Ie({ locale: r }, n));
3627
- }, Ln = (e = {}) => {
3628
+ return wn(Ie({ locale: r }, n));
3629
+ }, Mn = (e = {}) => {
3628
3630
  var t = e, {
3629
- locale: r = A()
3630
- } = t, n = D(t, [
3631
+ locale: r = P()
3632
+ } = t, n = F(t, [
3631
3633
  "locale"
3632
3634
  ]);
3633
3635
  return In(Ie({ locale: r }, n));
3634
- }, Mn = (e = {}) => {
3636
+ }, Cn = (e = {}) => {
3635
3637
  var t = e, {
3636
- locale: r = A()
3637
- } = t, n = D(t, [
3638
+ locale: r = P()
3639
+ } = t, n = F(t, [
3638
3640
  "locale"
3639
3641
  ]);
3640
- return wn(Ie({ locale: r }, n));
3641
- }, Cn = ae(
3642
+ return $n(Ie({ locale: r }, n));
3643
+ }, Rn = ue(
3642
3644
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3643
- (e, t = A()) => new hn(e, t, R().formats, {
3644
- ignoreTag: R().ignoreTag
3645
+ (e, t = P()) => new ln(e, t, U().formats, {
3646
+ ignoreTag: U().ignoreTag
3645
3647
  })
3646
- ), Rn = (e, t = {}) => {
3648
+ ), Un = (e, t = {}) => {
3647
3649
  var r, n, i, s;
3648
- let a = t;
3649
- typeof e == "object" && (a = e, e = a.id);
3650
+ let o = t;
3651
+ typeof e == "object" && (o = e, e = o.id);
3650
3652
  const {
3651
3653
  values: u,
3652
- locale: h = A(),
3653
- default: o
3654
- } = a;
3654
+ locale: h = P(),
3655
+ default: a
3656
+ } = o;
3655
3657
  if (h == null)
3656
3658
  throw new Error(
3657
3659
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3658
3660
  );
3659
3661
  let l = Tt(e, h);
3660
3662
  if (!l)
3661
- l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: o })) != null ? i : o) != 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;
3662
3664
  else if (typeof l != "string")
3663
3665
  return console.warn(
3664
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.`
@@ -3667,7 +3669,7 @@ const W = (e, t) => {
3667
3669
  return l;
3668
3670
  let f = l;
3669
3671
  try {
3670
- f = Cn(l, h).format(u);
3672
+ f = Rn(l, h).format(u);
3671
3673
  } catch (c) {
3672
3674
  c instanceof Error && console.warn(
3673
3675
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3675,18 +3677,18 @@ const W = (e, t) => {
3675
3677
  );
3676
3678
  }
3677
3679
  return f;
3678
- }, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) => Tt(e, t), jn = U([G, Z], () => Rn);
3679
- U([G], () => Un);
3680
- U([G], () => Gn);
3681
- U([G], () => Dn);
3682
- U([G, Z], () => Fn);
3683
- function Ke(e, t) {
3684
- Bt(e, t);
3685
- }
3686
- function Vn(e) {
3687
- G.set(e);
3688
- }
3689
- const et = {
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 = {
3690
3692
  en: {
3691
3693
  errServerUnavailable: "Server unavailable",
3692
3694
  errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
@@ -3706,51 +3708,51 @@ const et = {
3706
3708
  msgEmailVerificationSuccess: "Başarılı! E-posta adresiniz başarıyla doğrulandı"
3707
3709
  }
3708
3710
  };
3709
- function kn(e) {
3711
+ function Xn(e) {
3710
3712
  let t;
3711
3713
  return {
3712
3714
  c() {
3713
- t = st("div");
3715
+ t = ot("div");
3714
3716
  },
3715
3717
  m(r, n) {
3716
- it(r, t, n);
3718
+ st(r, t, n);
3717
3719
  },
3718
- p: v,
3719
- i: v,
3720
- o: v,
3720
+ p: _,
3721
+ i: _,
3722
+ o: _,
3721
3723
  d(r) {
3722
- r && Ae(t);
3724
+ r && Oe(t);
3723
3725
  }
3724
3726
  };
3725
3727
  }
3726
- function Xn(e, t, r) {
3728
+ function Wn(e, t, r) {
3727
3729
  let n;
3728
- Rt(e, jn, (f) => r(4, n = f));
3729
- let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: a = "" } = t, { translationurl: u = "" } = t;
3730
+ Ut(e, Vn, (f) => r(4, n = f));
3731
+ let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: u = "" } = t;
3730
3732
  const h = () => {
3731
3733
  fetch(u).then((c) => c.json()).then((c) => {
3732
- Object.keys(c).forEach((b) => {
3733
- Ke(b, c[b]);
3734
+ Object.keys(c).forEach((d) => {
3735
+ et(d, c[d]);
3734
3736
  });
3735
3737
  }).catch((c) => {
3736
3738
  console.log(c);
3737
3739
  });
3738
3740
  };
3739
- Object.keys(et).forEach((f) => {
3740
- Ke(f, et[f]);
3741
+ Object.keys(tt).forEach((f) => {
3742
+ et(f, tt[f]);
3741
3743
  });
3742
- const o = () => {
3743
- Vn(i);
3744
+ const a = () => {
3745
+ kn(i);
3744
3746
  }, l = () => {
3745
- let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3747
+ let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), d = {
3746
3748
  method: "POST",
3747
3749
  headers: {
3748
3750
  "Content-Type": "application/json",
3749
3751
  Accept: "application/json"
3750
3752
  },
3751
- body: JSON.stringify({ hashKey: a })
3753
+ body: JSON.stringify({ hashKey: o })
3752
3754
  };
3753
- 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(
3754
3756
  {
3755
3757
  type: "WidgetNotification",
3756
3758
  data: {
@@ -3759,8 +3761,8 @@ function Xn(e, t, r) {
3759
3761
  }
3760
3762
  },
3761
3763
  window.location.href
3762
- )), g.json())).then((g) => {
3763
- 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(
3764
3766
  {
3765
3767
  type: "WidgetNotification",
3766
3768
  data: {
@@ -3778,7 +3780,7 @@ function Xn(e, t, r) {
3778
3780
  }
3779
3781
  },
3780
3782
  window.location.href
3781
- )), g.SESSION_ID && window.postMessage(
3783
+ )), b.SESSION_ID && window.postMessage(
3782
3784
  {
3783
3785
  type: "WidgetNotification",
3784
3786
  data: {
@@ -3791,17 +3793,17 @@ function Xn(e, t, r) {
3791
3793
  });
3792
3794
  };
3793
3795
  return e.$$set = (f) => {
3794
- "lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, a = f.key), "translationurl" in f && r(3, u = 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);
3795
3797
  }, e.$$.update = () => {
3796
3798
  e.$$.dirty & /*lang*/
3797
- 1 && i && o(), e.$$.dirty & /*translationurl*/
3799
+ 1 && i && a(), e.$$.dirty & /*translationurl*/
3798
3800
  8 && u && h(), e.$$.dirty & /*endpoint, key*/
3799
- 6 && s && a && l();
3800
- }, [i, s, a, u];
3801
+ 6 && s && o && l();
3802
+ }, [i, s, o, u];
3801
3803
  }
3802
- class Wn extends Yt {
3804
+ class zn extends Kt {
3803
3805
  constructor(t) {
3804
- super(), Jt(this, t, Xn, kn, rt, {
3806
+ super(), qt(this, t, Wn, Xn, nt, {
3805
3807
  lang: 0,
3806
3808
  endpoint: 1,
3807
3809
  key: 2,
@@ -3812,28 +3814,28 @@ class Wn extends Yt {
3812
3814
  return this.$$.ctx[0];
3813
3815
  }
3814
3816
  set lang(t) {
3815
- this.$$set({ lang: t }), w();
3817
+ this.$$set({ lang: t }), $();
3816
3818
  }
3817
3819
  get endpoint() {
3818
3820
  return this.$$.ctx[1];
3819
3821
  }
3820
3822
  set endpoint(t) {
3821
- this.$$set({ endpoint: t }), w();
3823
+ this.$$set({ endpoint: t }), $();
3822
3824
  }
3823
3825
  get key() {
3824
3826
  return this.$$.ctx[2];
3825
3827
  }
3826
3828
  set key(t) {
3827
- this.$$set({ key: t }), w();
3829
+ this.$$set({ key: t }), $();
3828
3830
  }
3829
3831
  get translationurl() {
3830
3832
  return this.$$.ctx[3];
3831
3833
  }
3832
3834
  set translationurl(t) {
3833
- this.$$set({ translationurl: t }), w();
3835
+ this.$$set({ translationurl: t }), $();
3834
3836
  }
3835
3837
  }
3836
- qt(Wn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3838
+ Yt(zn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3837
3839
  export {
3838
- Wn as default
3840
+ zn as default
3839
3841
  };