@everymatrix/player-email-verification 1.53.0 → 1.53.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,24 @@
1
- var wt = 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 ae = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Mt.call(t, r) && ae(e, r, t[r]);
8
- if (Le)
9
- for (var r of Le(t))
10
- Ct.call(t, r) && ae(e, r, t[r]);
11
- return e;
12
- }, Ce = (e, t) => $t(e, Lt(t));
13
- var v = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r);
14
- var Re = (e, t, r) => new Promise((n, i) => {
15
- var s = (u) => {
16
- try {
17
- h(r.next(u));
18
- } catch (a) {
19
- i(a);
20
- }
21
- }, o = (u) => {
22
- try {
23
- h(r.throw(u));
24
- } catch (a) {
25
- i(a);
26
- }
27
- }, h = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
28
- h((r = r.apply(e, t)).next());
29
- });
30
1
  function _() {
31
2
  }
32
- function rt(e) {
3
+ function Qe(e) {
33
4
  return e();
34
5
  }
35
- function Ue() {
6
+ function Ie() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function z(e) {
39
- e.forEach(rt);
9
+ function W(e) {
10
+ e.forEach(Qe);
40
11
  }
41
- function Be(e) {
12
+ function Te(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function nt(e, t) {
15
+ function Je(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- function Rt(e) {
18
+ function St(e) {
48
19
  return Object.keys(e).length === 0;
49
20
  }
50
- function it(e, ...t) {
21
+ function qe(e, ...t) {
51
22
  if (e == null) {
52
23
  for (const n of t)
53
24
  n(void 0);
@@ -56,25 +27,25 @@ function it(e, ...t) {
56
27
  const r = e.subscribe(...t);
57
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
29
  }
59
- function Ut(e, t, r) {
60
- e.$$.on_destroy.push(it(t, r));
30
+ function Bt(e, t, r) {
31
+ e.$$.on_destroy.push(qe(t, r));
61
32
  }
62
- function st(e, t, r) {
33
+ function Ye(e, t, r) {
63
34
  e.insertBefore(t, r || null);
64
35
  }
65
- function Ae(e) {
36
+ function Se(e) {
66
37
  e.parentNode && e.parentNode.removeChild(e);
67
38
  }
68
- function ot(e) {
39
+ function Ke(e) {
69
40
  return document.createElement(e);
70
41
  }
71
- function Gt(e, t, r) {
42
+ function At(e, t, r) {
72
43
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
73
44
  }
74
- function Dt(e) {
45
+ function Pt(e) {
75
46
  return Array.from(e.childNodes);
76
47
  }
77
- function Ft(e) {
48
+ function Nt(e) {
78
49
  const t = {};
79
50
  return e.childNodes.forEach(
80
51
  /** @param {Element} node */
@@ -83,78 +54,78 @@ function Ft(e) {
83
54
  }
84
55
  ), t;
85
56
  }
86
- let Pe;
87
- function k(e) {
88
- Pe = e;
57
+ let Be;
58
+ function V(e) {
59
+ Be = e;
89
60
  }
90
- const I = [], Ge = [];
91
- let $ = [];
92
- const De = [], jt = /* @__PURE__ */ Promise.resolve();
93
- let de = !1;
94
- function Vt() {
95
- de || (de = !0, jt.then(w));
61
+ const O = [], we = [];
62
+ let w = [];
63
+ const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
64
+ let me = !1;
65
+ function It() {
66
+ me || (me = !0, Ot.then(I));
96
67
  }
97
- function be(e) {
98
- $.push(e);
68
+ function pe(e) {
69
+ w.push(e);
99
70
  }
100
- const he = /* @__PURE__ */ new Set();
101
- let N = 0;
102
- function w() {
103
- if (N !== 0)
71
+ const oe = /* @__PURE__ */ new Set();
72
+ let P = 0;
73
+ function I() {
74
+ if (P !== 0)
104
75
  return;
105
- const e = Pe;
76
+ const e = Be;
106
77
  do {
107
78
  try {
108
- for (; N < I.length; ) {
109
- const t = I[N];
110
- N++, k(t), kt(t.$$);
79
+ for (; P < O.length; ) {
80
+ const t = O[P];
81
+ P++, V(t), wt(t.$$);
111
82
  }
112
83
  } catch (t) {
113
- throw I.length = 0, N = 0, t;
84
+ throw O.length = 0, P = 0, t;
114
85
  }
115
- for (k(null), I.length = 0, N = 0; Ge.length; ) Ge.pop()();
116
- for (let t = 0; t < $.length; t += 1) {
117
- const r = $[t];
118
- he.has(r) || (he.add(r), r());
86
+ for (V(null), O.length = 0, P = 0; we.length; ) we.pop()();
87
+ for (let t = 0; t < w.length; t += 1) {
88
+ const r = w[t];
89
+ oe.has(r) || (oe.add(r), r());
119
90
  }
120
- $.length = 0;
121
- } while (I.length);
122
- for (; De.length; )
123
- De.pop()();
124
- de = !1, he.clear(), k(e);
91
+ w.length = 0;
92
+ } while (O.length);
93
+ for (; $e.length; )
94
+ $e.pop()();
95
+ me = !1, oe.clear(), V(e);
125
96
  }
126
- function kt(e) {
97
+ function wt(e) {
127
98
  if (e.fragment !== null) {
128
- e.update(), z(e.before_update);
99
+ e.update(), W(e.before_update);
129
100
  const t = e.dirty;
130
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
101
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pe);
131
102
  }
132
103
  }
133
- function Xt(e) {
104
+ function $t(e) {
134
105
  const t = [], r = [];
135
- $.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
106
+ w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
136
107
  }
137
- const Wt = /* @__PURE__ */ new Set();
138
- function zt(e, t) {
139
- e && e.i && (Wt.delete(e), e.i(t));
108
+ const Lt = /* @__PURE__ */ new Set();
109
+ function Mt(e, t) {
110
+ e && e.i && (Lt.delete(e), e.i(t));
140
111
  }
141
- function Zt(e, t, r) {
112
+ function Ct(e, t, r) {
142
113
  const { fragment: n, after_update: i } = e.$$;
143
- n && n.m(t, r), be(() => {
144
- const s = e.$$.on_mount.map(rt).filter(Be);
145
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
146
- }), i.forEach(be);
114
+ n && n.m(t, r), pe(() => {
115
+ const s = e.$$.on_mount.map(Qe).filter(Te);
116
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
117
+ }), i.forEach(pe);
147
118
  }
148
- function Qt(e, t) {
119
+ function Rt(e, t) {
149
120
  const r = e.$$;
150
- 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 = []);
121
+ r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
151
122
  }
152
- function Jt(e, t) {
153
- e.$$.dirty[0] === -1 && (I.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
123
+ function Ut(e, t) {
124
+ e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
154
125
  }
155
- function qt(e, t, r, n, i, s, o = null, h = [-1]) {
156
- const u = Pe;
157
- k(e);
126
+ function Gt(e, t, r, n, i, s, u = null, o = [-1]) {
127
+ const f = Be;
128
+ V(e);
158
129
  const a = e.$$ = {
159
130
  fragment: null,
160
131
  ctx: [],
@@ -162,159 +133,155 @@ function qt(e, t, r, n, i, s, o = null, h = [-1]) {
162
133
  props: s,
163
134
  update: _,
164
135
  not_equal: i,
165
- bound: Ue(),
136
+ bound: Ie(),
166
137
  // lifecycle
167
138
  on_mount: [],
168
139
  on_destroy: [],
169
140
  on_disconnect: [],
170
141
  before_update: [],
171
142
  after_update: [],
172
- context: new Map(t.context || (u ? u.$$.context : [])),
143
+ context: new Map(t.context || (f ? f.$$.context : [])),
173
144
  // everything else
174
- callbacks: Ue(),
175
- dirty: h,
145
+ callbacks: Ie(),
146
+ dirty: o,
176
147
  skip_bound: !1,
177
- root: t.target || u.$$.root
148
+ root: t.target || f.$$.root
178
149
  };
179
- o && o(a.root);
180
- let l = !1;
181
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
150
+ u && u(a.root);
151
+ let h = !1;
152
+ if (a.ctx = r(e, t.props || {}, (l, c, ...b) => {
182
153
  const g = b.length ? b[0] : c;
183
- return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Jt(e, f)), c;
184
- }) : [], a.update(), l = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
154
+ return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), h && Ut(e, l)), c;
155
+ }), a.update(), h = !0, W(a.before_update), a.fragment = n(a.ctx), t.target) {
185
156
  if (t.hydrate) {
186
- const f = Dt(t.target);
187
- a.fragment && a.fragment.l(f), f.forEach(Ae);
157
+ const l = Pt(t.target);
158
+ a.fragment && a.fragment.l(l), l.forEach(Se);
188
159
  } else
189
160
  a.fragment && a.fragment.c();
190
- t.intro && zt(e.$$.fragment), Zt(e, t.target, t.anchor), w();
161
+ t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
191
162
  }
192
- k(u);
193
- }
194
- let at;
195
- typeof HTMLElement == "function" && (at = class extends HTMLElement {
196
- constructor(t, r, n) {
197
- super();
198
- /** The Svelte component constructor */
199
- v(this, "$$ctor");
200
- /** Slots */
201
- v(this, "$$s");
202
- /** The Svelte component instance */
203
- v(this, "$$c");
204
- /** Whether or not the custom element is connected */
205
- v(this, "$$cn", !1);
206
- /** Component props data */
207
- v(this, "$$d", {});
208
- /** `true` if currently in the process of reflecting component props back to attributes */
209
- v(this, "$$r", !1);
210
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
211
- v(this, "$$p_d", {});
212
- /** @type {Record<string, Function[]>} Event listeners */
213
- v(this, "$$l", {});
214
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
215
- v(this, "$$l_u", /* @__PURE__ */ new Map());
216
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
163
+ V(f);
164
+ }
165
+ let et;
166
+ typeof HTMLElement == "function" && (et = class extends HTMLElement {
167
+ /** The Svelte component constructor */
168
+ $$ctor;
169
+ /** Slots */
170
+ $$s;
171
+ /** The Svelte component instance */
172
+ $$c;
173
+ /** Whether or not the custom element is connected */
174
+ $$cn = !1;
175
+ /** Component props data */
176
+ $$d = {};
177
+ /** `true` if currently in the process of reflecting component props back to attributes */
178
+ $$r = !1;
179
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
180
+ $$p_d = {};
181
+ /** @type {Record<string, Function[]>} Event listeners */
182
+ $$l = {};
183
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
184
+ $$l_u = /* @__PURE__ */ new Map();
185
+ constructor(e, t, r) {
186
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
217
187
  }
218
- addEventListener(t, r, n) {
219
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
220
- const i = this.$$c.$on(t, r);
221
- this.$$l_u.set(r, i);
188
+ addEventListener(e, t, r) {
189
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
190
+ const n = this.$$c.$on(e, t);
191
+ this.$$l_u.set(t, n);
222
192
  }
223
- super.addEventListener(t, r, n);
193
+ super.addEventListener(e, t, r);
224
194
  }
225
- removeEventListener(t, r, n) {
226
- if (super.removeEventListener(t, r, n), this.$$c) {
227
- const i = this.$$l_u.get(r);
228
- i && (i(), this.$$l_u.delete(r));
195
+ removeEventListener(e, t, r) {
196
+ if (super.removeEventListener(e, t, r), this.$$c) {
197
+ const n = this.$$l_u.get(t);
198
+ n && (n(), this.$$l_u.delete(t));
229
199
  }
230
200
  }
231
- connectedCallback() {
232
- return Re(this, null, function* () {
233
- if (this.$$cn = !0, !this.$$c) {
234
- let t = function(s) {
235
- return () => {
236
- let o;
237
- return {
238
- c: function() {
239
- o = ot("slot"), s !== "default" && Gt(o, "name", s);
240
- },
241
- /**
242
- * @param {HTMLElement} target
243
- * @param {HTMLElement} [anchor]
244
- */
245
- m: function(a, l) {
246
- st(a, o, l);
247
- },
248
- d: function(a) {
249
- a && Ae(o);
250
- }
251
- };
201
+ async connectedCallback() {
202
+ if (this.$$cn = !0, !this.$$c) {
203
+ let e = function(i) {
204
+ return () => {
205
+ let s;
206
+ return {
207
+ c: function() {
208
+ s = Ke("slot"), i !== "default" && At(s, "name", i);
209
+ },
210
+ /**
211
+ * @param {HTMLElement} target
212
+ * @param {HTMLElement} [anchor]
213
+ */
214
+ m: function(f, a) {
215
+ Ye(f, s, a);
216
+ },
217
+ d: function(f) {
218
+ f && Se(s);
219
+ }
252
220
  };
253
221
  };
254
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
255
- return;
256
- const r = {}, n = Ft(this);
257
- for (const s of this.$$s)
258
- s in n && (r[s] = [t(s)]);
259
- for (const s of this.attributes) {
260
- const o = this.$$g_p(s.name);
261
- o in this.$$d || (this.$$d[o] = q(o, s.value, this.$$p_d, "toProp"));
222
+ };
223
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
224
+ return;
225
+ const t = {}, r = Nt(this);
226
+ for (const i of this.$$s)
227
+ i in r && (t[i] = [e(i)]);
228
+ for (const i of this.attributes) {
229
+ const s = this.$$g_p(i.name);
230
+ s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
231
+ }
232
+ for (const i in this.$$p_d)
233
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
234
+ this.$$c = new this.$$ctor({
235
+ target: this.shadowRoot || this,
236
+ props: {
237
+ ...this.$$d,
238
+ $$slots: t,
239
+ $$scope: {
240
+ ctx: []
241
+ }
262
242
  }
263
- for (const s in this.$$p_d)
264
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
265
- this.$$c = new this.$$ctor({
266
- target: this.shadowRoot || this,
267
- props: Ce(Me({}, this.$$d), {
268
- $$slots: r,
269
- $$scope: {
270
- ctx: []
271
- }
272
- })
273
- });
274
- const i = () => {
275
- this.$$r = !0;
276
- for (const s in this.$$p_d)
277
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
278
- const o = q(
279
- s,
280
- this.$$d[s],
281
- this.$$p_d,
282
- "toAttribute"
283
- );
284
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
285
- }
286
- this.$$r = !1;
287
- };
288
- this.$$c.$$.after_update.push(i), i();
289
- for (const s in this.$$l)
290
- for (const o of this.$$l[s]) {
291
- const h = this.$$c.$on(s, o);
292
- this.$$l_u.set(o, h);
243
+ });
244
+ const n = () => {
245
+ this.$$r = !0;
246
+ for (const i in this.$$p_d)
247
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
248
+ const s = J(
249
+ i,
250
+ this.$$d[i],
251
+ this.$$p_d,
252
+ "toAttribute"
253
+ );
254
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
293
255
  }
294
- this.$$l = {};
295
- }
296
- });
256
+ this.$$r = !1;
257
+ };
258
+ this.$$c.$$.after_update.push(n), n();
259
+ for (const i in this.$$l)
260
+ for (const s of this.$$l[i]) {
261
+ const u = this.$$c.$on(i, s);
262
+ this.$$l_u.set(s, u);
263
+ }
264
+ this.$$l = {};
265
+ }
297
266
  }
298
267
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
299
268
  // and setting attributes through setAttribute etc, this is helpful
300
- attributeChangedCallback(t, r, n) {
301
- var i;
302
- 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] }));
269
+ attributeChangedCallback(e, t, r) {
270
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
303
271
  }
304
272
  disconnectedCallback() {
305
273
  this.$$cn = !1, Promise.resolve().then(() => {
306
274
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
307
275
  });
308
276
  }
309
- $$g_p(t) {
277
+ $$g_p(e) {
310
278
  return Object.keys(this.$$p_d).find(
311
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
312
- ) || t;
279
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
280
+ ) || e;
313
281
  }
314
282
  });
315
- function q(e, t, r, n) {
316
- var s;
317
- const i = (s = r[e]) == null ? void 0 : s.type;
283
+ function J(e, t, r, n) {
284
+ const i = r[e]?.type;
318
285
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
319
286
  return t;
320
287
  if (n === "toAttribute")
@@ -325,7 +292,7 @@ function q(e, t, r, n) {
325
292
  case "Boolean":
326
293
  return t ? "" : null;
327
294
  case "Number":
328
- return t == null ? null : t;
295
+ return t ?? null;
329
296
  default:
330
297
  return t;
331
298
  }
@@ -342,59 +309,55 @@ function q(e, t, r, n) {
342
309
  return t;
343
310
  }
344
311
  }
345
- function Yt(e, t, r, n, i, s) {
346
- let o = class extends at {
312
+ function Dt(e, t, r, n, i, s) {
313
+ let u = class extends et {
347
314
  constructor() {
348
315
  super(e, r, i), this.$$p_d = t;
349
316
  }
350
317
  static get observedAttributes() {
351
318
  return Object.keys(t).map(
352
- (h) => (t[h].attribute || h).toLowerCase()
319
+ (o) => (t[o].attribute || o).toLowerCase()
353
320
  );
354
321
  }
355
322
  };
356
- return Object.keys(t).forEach((h) => {
357
- Object.defineProperty(o.prototype, h, {
323
+ return Object.keys(t).forEach((o) => {
324
+ Object.defineProperty(u.prototype, o, {
358
325
  get() {
359
- return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
326
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
360
327
  },
361
- set(u) {
362
- var a;
363
- u = q(h, u, t), this.$$d[h] = u, (a = this.$$c) == null || a.$set({ [h]: u });
328
+ set(f) {
329
+ f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
364
330
  }
365
331
  });
366
- }), n.forEach((h) => {
367
- Object.defineProperty(o.prototype, h, {
332
+ }), n.forEach((o) => {
333
+ Object.defineProperty(u.prototype, o, {
368
334
  get() {
369
- var u;
370
- return (u = this.$$c) == null ? void 0 : u[h];
335
+ return this.$$c?.[o];
371
336
  }
372
337
  });
373
338
  }), e.element = /** @type {any} */
374
- o, o;
375
- }
376
- class Kt {
377
- constructor() {
378
- /**
379
- * ### PRIVATE API
380
- *
381
- * Do not use, may change at any time
382
- *
383
- * @type {any}
384
- */
385
- v(this, "$$");
386
- /**
387
- * ### PRIVATE API
388
- *
389
- * Do not use, may change at any time
390
- *
391
- * @type {any}
392
- */
393
- v(this, "$$set");
394
- }
339
+ u, u;
340
+ }
341
+ class Ft {
342
+ /**
343
+ * ### PRIVATE API
344
+ *
345
+ * Do not use, may change at any time
346
+ *
347
+ * @type {any}
348
+ */
349
+ $$ = void 0;
350
+ /**
351
+ * ### PRIVATE API
352
+ *
353
+ * Do not use, may change at any time
354
+ *
355
+ * @type {any}
356
+ */
357
+ $$set = void 0;
395
358
  /** @returns {void} */
396
359
  $destroy() {
397
- Qt(this, 1), this.$destroy = _;
360
+ Rt(this, 1), this.$destroy = _;
398
361
  }
399
362
  /**
400
363
  * @template {Extract<keyof Events, string>} K
@@ -403,7 +366,7 @@ class Kt {
403
366
  * @returns {() => void}
404
367
  */
405
368
  $on(t, r) {
406
- if (!Be(r))
369
+ if (!Te(r))
407
370
  return _;
408
371
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
409
372
  return n.push(r), () => {
@@ -416,159 +379,159 @@ class Kt {
416
379
  * @returns {void}
417
380
  */
418
381
  $set(t) {
419
- this.$$set && !Rt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
382
+ this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
420
383
  }
421
384
  }
422
- const er = "4";
423
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
424
- const O = [];
425
- function tr(e, t) {
385
+ const jt = "4";
386
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
387
+ const N = [];
388
+ function Vt(e, t) {
426
389
  return {
427
- subscribe: re(e, t).subscribe
390
+ subscribe: te(e, t).subscribe
428
391
  };
429
392
  }
430
- function re(e, t = _) {
393
+ function te(e, t = _) {
431
394
  let r;
432
395
  const n = /* @__PURE__ */ new Set();
433
- function i(h) {
434
- if (nt(e, h) && (e = h, r)) {
435
- const u = !O.length;
396
+ function i(o) {
397
+ if (Je(e, o) && (e = o, r)) {
398
+ const f = !N.length;
436
399
  for (const a of n)
437
- a[1](), O.push(a, e);
438
- if (u) {
439
- for (let a = 0; a < O.length; a += 2)
440
- O[a][0](O[a + 1]);
441
- O.length = 0;
400
+ a[1](), N.push(a, e);
401
+ if (f) {
402
+ for (let a = 0; a < N.length; a += 2)
403
+ N[a][0](N[a + 1]);
404
+ N.length = 0;
442
405
  }
443
406
  }
444
407
  }
445
- function s(h) {
446
- i(h(e));
408
+ function s(o) {
409
+ i(o(e));
447
410
  }
448
- function o(h, u = _) {
449
- const a = [h, u];
450
- return n.add(a), n.size === 1 && (r = t(i, s) || _), h(e), () => {
411
+ function u(o, f = _) {
412
+ const a = [o, f];
413
+ return n.add(a), n.size === 1 && (r = t(i, s) || _), o(e), () => {
451
414
  n.delete(a), n.size === 0 && r && (r(), r = null);
452
415
  };
453
416
  }
454
- return { set: i, update: s, subscribe: o };
417
+ return { set: i, update: s, subscribe: u };
455
418
  }
456
- function U(e, t, r) {
419
+ function R(e, t, r) {
457
420
  const n = !Array.isArray(e), i = n ? [e] : e;
458
421
  if (!i.every(Boolean))
459
422
  throw new Error("derived() expects stores as input, got a falsy value");
460
423
  const s = t.length < 2;
461
- return tr(r, (o, h) => {
462
- let u = !1;
424
+ return Vt(r, (u, o) => {
425
+ let f = !1;
463
426
  const a = [];
464
- let l = 0, f = _;
427
+ let h = 0, l = _;
465
428
  const c = () => {
466
- if (l)
429
+ if (h)
467
430
  return;
468
- f();
469
- const g = t(n ? a[0] : a, o, h);
470
- s ? o(g) : f = Be(g) ? g : _;
431
+ l();
432
+ const g = t(n ? a[0] : a, u, o);
433
+ s ? u(g) : l = Te(g) ? g : _;
471
434
  }, b = i.map(
472
- (g, y) => it(
435
+ (g, y) => qe(
473
436
  g,
474
- (T) => {
475
- a[y] = T, l &= ~(1 << y), u && c();
437
+ (H) => {
438
+ a[y] = H, h &= ~(1 << y), f && c();
476
439
  },
477
440
  () => {
478
- l |= 1 << y;
441
+ h |= 1 << y;
479
442
  }
480
443
  )
481
444
  );
482
- return u = !0, c(), function() {
483
- z(b), f(), u = !1;
445
+ return f = !0, c(), function() {
446
+ W(b), l(), f = !1;
484
447
  };
485
448
  });
486
449
  }
487
- function rr(e) {
488
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
450
+ function kt(e) {
451
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
489
452
  }
490
- var nr = function(t) {
491
- return ir(t) && !sr(t);
453
+ var Xt = function(t) {
454
+ return Wt(t) && !zt(t);
492
455
  };
493
- function ir(e) {
456
+ function Wt(e) {
494
457
  return !!e && typeof e == "object";
495
458
  }
496
- function sr(e) {
459
+ function zt(e) {
497
460
  var t = Object.prototype.toString.call(e);
498
- return t === "[object RegExp]" || t === "[object Date]" || hr(e);
461
+ return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
499
462
  }
500
- var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
501
- function hr(e) {
502
- return e.$$typeof === ar;
463
+ var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
464
+ function Jt(e) {
465
+ return e.$$typeof === Qt;
503
466
  }
504
- function ur(e) {
467
+ function qt(e) {
505
468
  return Array.isArray(e) ? [] : {};
506
469
  }
507
- function X(e, t) {
508
- return t.clone !== !1 && t.isMergeableObject(e) ? L(ur(e), e, t) : e;
470
+ function k(e, t) {
471
+ return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
509
472
  }
510
- function lr(e, t, r) {
473
+ function Yt(e, t, r) {
511
474
  return e.concat(t).map(function(n) {
512
- return X(n, r);
475
+ return k(n, r);
513
476
  });
514
477
  }
515
- function fr(e, t) {
478
+ function Kt(e, t) {
516
479
  if (!t.customMerge)
517
- return L;
480
+ return $;
518
481
  var r = t.customMerge(e);
519
- return typeof r == "function" ? r : L;
482
+ return typeof r == "function" ? r : $;
520
483
  }
521
- function cr(e) {
484
+ function er(e) {
522
485
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
523
486
  return Object.propertyIsEnumerable.call(e, t);
524
487
  }) : [];
525
488
  }
526
- function Fe(e) {
527
- return Object.keys(e).concat(cr(e));
489
+ function Le(e) {
490
+ return Object.keys(e).concat(er(e));
528
491
  }
529
- function ht(e, t) {
492
+ function tt(e, t) {
530
493
  try {
531
494
  return t in e;
532
- } catch (r) {
495
+ } catch {
533
496
  return !1;
534
497
  }
535
498
  }
536
- function mr(e, t) {
537
- return ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
499
+ function tr(e, t) {
500
+ return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
538
501
  }
539
- function pr(e, t, r) {
502
+ function rr(e, t, r) {
540
503
  var n = {};
541
- return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
542
- n[i] = X(e[i], r);
543
- }), Fe(t).forEach(function(i) {
544
- mr(e, i) || (ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
504
+ return r.isMergeableObject(e) && Le(e).forEach(function(i) {
505
+ n[i] = k(e[i], r);
506
+ }), Le(t).forEach(function(i) {
507
+ tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
545
508
  }), n;
546
509
  }
547
- function L(e, t, r) {
548
- r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = X;
510
+ function $(e, t, r) {
511
+ r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
549
512
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
550
- return s ? n ? r.arrayMerge(e, t, r) : pr(e, t, r) : X(t, r);
513
+ return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
551
514
  }
552
- L.all = function(t, r) {
515
+ $.all = function(t, r) {
553
516
  if (!Array.isArray(t))
554
517
  throw new Error("first argument should be an array");
555
518
  return t.reduce(function(n, i) {
556
- return L(n, i, r);
519
+ return $(n, i, r);
557
520
  }, {});
558
521
  };
559
- var dr = L, br = dr;
560
- const gr = /* @__PURE__ */ rr(br);
561
- var ge = function(e, t) {
562
- return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
522
+ var nr = $, ir = nr;
523
+ const sr = /* @__PURE__ */ kt(ir);
524
+ var de = function(e, t) {
525
+ return de = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
563
526
  r.__proto__ = n;
564
527
  } || function(r, n) {
565
528
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
566
- }, ge(e, t);
529
+ }, de(e, t);
567
530
  };
568
- function ne(e, t) {
531
+ function re(e, t) {
569
532
  if (typeof t != "function" && t !== null)
570
533
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
571
- ge(e, t);
534
+ de(e, t);
572
535
  function r() {
573
536
  this.constructor = e;
574
537
  }
@@ -583,7 +546,7 @@ var d = function() {
583
546
  return t;
584
547
  }, d.apply(this, arguments);
585
548
  };
586
- function Er(e, t) {
549
+ function or(e, t) {
587
550
  var r = {};
588
551
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
589
552
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -591,61 +554,63 @@ function Er(e, t) {
591
554
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
592
555
  return r;
593
556
  }
594
- function ue(e, t, r) {
557
+ function ae(e, t, r) {
595
558
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
596
559
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
597
560
  return e.concat(s || Array.prototype.slice.call(t));
598
561
  }
599
- function le(e, t) {
600
- var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : yr;
562
+ function ue(e, t) {
563
+ var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
601
564
  return i(e, {
602
565
  cache: r,
603
566
  serializer: n
604
567
  });
605
568
  }
606
- function xr(e) {
569
+ function ar(e) {
607
570
  return e == null || typeof e == "number" || typeof e == "boolean";
608
571
  }
609
- function ut(e, t, r, n) {
610
- var i = xr(n) ? n : r(n), s = t.get(i);
611
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
572
+ function rt(e, t, r, n) {
573
+ var i = ar(n) ? n : r(n), s = t.get(i);
574
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
612
575
  }
613
- function lt(e, t, r) {
576
+ function nt(e, t, r) {
614
577
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
615
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
578
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
616
579
  }
617
- function Ne(e, t, r, n, i) {
580
+ function Ae(e, t, r, n, i) {
618
581
  return r.bind(t, e, n, i);
619
582
  }
620
- function yr(e, t) {
621
- var r = e.length === 1 ? ut : lt;
622
- return Ne(e, this, r, t.cache.create(), t.serializer);
583
+ function ur(e, t) {
584
+ var r = e.length === 1 ? rt : nt;
585
+ return Ae(e, this, r, t.cache.create(), t.serializer);
623
586
  }
624
- function vr(e, t) {
625
- return Ne(e, this, lt, t.cache.create(), t.serializer);
587
+ function hr(e, t) {
588
+ return Ae(e, this, nt, t.cache.create(), t.serializer);
626
589
  }
627
- function _r(e, t) {
628
- return Ne(e, this, ut, t.cache.create(), t.serializer);
590
+ function lr(e, t) {
591
+ return Ae(e, this, rt, t.cache.create(), t.serializer);
629
592
  }
630
- var Hr = function() {
593
+ var fr = function() {
631
594
  return JSON.stringify(arguments);
632
- };
633
- function Oe() {
634
- this.cache = /* @__PURE__ */ Object.create(null);
635
- }
636
- Oe.prototype.get = function(e) {
637
- return this.cache[e];
638
- };
639
- Oe.prototype.set = function(e, t) {
640
- this.cache[e] = t;
641
- };
642
- var Tr = {
595
+ }, cr = (
596
+ /** @class */
597
+ function() {
598
+ function e() {
599
+ this.cache = /* @__PURE__ */ Object.create(null);
600
+ }
601
+ return e.prototype.get = function(t) {
602
+ return this.cache[t];
603
+ }, e.prototype.set = function(t, r) {
604
+ this.cache[t] = r;
605
+ }, e;
606
+ }()
607
+ ), mr = {
643
608
  create: function() {
644
- return new Oe();
609
+ return new cr();
645
610
  }
646
- }, fe = {
647
- variadic: vr,
648
- monadic: _r
611
+ }, he = {
612
+ variadic: hr,
613
+ monadic: lr
649
614
  }, m;
650
615
  (function(e) {
651
616
  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";
@@ -654,47 +619,47 @@ var E;
654
619
  (function(e) {
655
620
  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";
656
621
  })(E || (E = {}));
657
- var M;
622
+ var L;
658
623
  (function(e) {
659
624
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
660
- })(M || (M = {}));
661
- function je(e) {
625
+ })(L || (L = {}));
626
+ function Me(e) {
662
627
  return e.type === E.literal;
663
628
  }
664
- function Sr(e) {
629
+ function pr(e) {
665
630
  return e.type === E.argument;
666
631
  }
667
- function ft(e) {
632
+ function it(e) {
668
633
  return e.type === E.number;
669
634
  }
670
- function ct(e) {
635
+ function st(e) {
671
636
  return e.type === E.date;
672
637
  }
673
- function mt(e) {
638
+ function ot(e) {
674
639
  return e.type === E.time;
675
640
  }
676
- function pt(e) {
641
+ function at(e) {
677
642
  return e.type === E.select;
678
643
  }
679
- function dt(e) {
644
+ function ut(e) {
680
645
  return e.type === E.plural;
681
646
  }
682
- function Br(e) {
647
+ function dr(e) {
683
648
  return e.type === E.pound;
684
649
  }
685
- function bt(e) {
650
+ function ht(e) {
686
651
  return e.type === E.tag;
687
652
  }
688
- function gt(e) {
689
- return !!(e && typeof e == "object" && e.type === M.number);
653
+ function lt(e) {
654
+ return !!(e && typeof e == "object" && e.type === L.number);
690
655
  }
691
- function Ee(e) {
692
- return !!(e && typeof e == "object" && e.type === M.dateTime);
656
+ function be(e) {
657
+ return !!(e && typeof e == "object" && e.type === L.dateTime);
693
658
  }
694
- var Et = /[ \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;
695
- function Pr(e) {
659
+ var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
660
+ function gr(e) {
696
661
  var t = {};
697
- return e.replace(Ar, function(r) {
662
+ return e.replace(br, function(r) {
698
663
  var n = r.length;
699
664
  switch (r[0]) {
700
665
  case "G":
@@ -783,36 +748,36 @@ function Pr(e) {
783
748
  return "";
784
749
  }), t;
785
750
  }
786
- var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
787
- function Or(e) {
751
+ var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
752
+ function xr(e) {
788
753
  if (e.length === 0)
789
754
  throw new Error("Number skeleton cannot be empty");
790
- for (var t = e.split(Nr).filter(function(c) {
755
+ for (var t = e.split(Er).filter(function(c) {
791
756
  return c.length > 0;
792
757
  }), r = [], n = 0, i = t; n < i.length; n++) {
793
- var s = i[n], o = s.split("/");
794
- if (o.length === 0)
758
+ var s = i[n], u = s.split("/");
759
+ if (u.length === 0)
795
760
  throw new Error("Invalid number skeleton");
796
- for (var h = o[0], u = o.slice(1), a = 0, l = u; a < l.length; a++) {
797
- var f = l[a];
798
- if (f.length === 0)
761
+ for (var o = u[0], f = u.slice(1), a = 0, h = f; a < h.length; a++) {
762
+ var l = h[a];
763
+ if (l.length === 0)
799
764
  throw new Error("Invalid number skeleton");
800
765
  }
801
- r.push({ stem: h, options: u });
766
+ r.push({ stem: o, options: f });
802
767
  }
803
768
  return r;
804
769
  }
805
- function Ir(e) {
770
+ function yr(e) {
806
771
  return e.replace(/^(.*?)-/, "");
807
772
  }
808
- var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
809
- function ke(e) {
773
+ var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
774
+ function Re(e) {
810
775
  var t = {};
811
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(r, n, i) {
776
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
812
777
  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)), "";
813
778
  }), t;
814
779
  }
815
- function vt(e) {
780
+ function pt(e) {
816
781
  switch (e) {
817
782
  case "sign-auto":
818
783
  return {
@@ -852,7 +817,7 @@ function vt(e) {
852
817
  };
853
818
  }
854
819
  }
855
- function $r(e) {
820
+ function vr(e) {
856
821
  var t;
857
822
  if (e[0] === "E" && e[1] === "E" ? (t = {
858
823
  notation: "engineering"
@@ -860,17 +825,17 @@ function $r(e) {
860
825
  notation: "scientific"
861
826
  }, e = e.slice(1)), t) {
862
827
  var r = e.slice(0, 2);
863
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yt.test(e))
828
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
864
829
  throw new Error("Malformed concise eng/scientific notation");
865
830
  t.minimumIntegerDigits = e.length;
866
831
  }
867
832
  return t;
868
833
  }
869
- function Xe(e) {
870
- var t = {}, r = vt(e);
834
+ function Ue(e) {
835
+ var t = {}, r = pt(e);
871
836
  return r || t;
872
837
  }
873
- function Lr(e) {
838
+ function Hr(e) {
874
839
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
875
840
  var i = n[r];
876
841
  switch (i.stem) {
@@ -894,7 +859,7 @@ function Lr(e) {
894
859
  continue;
895
860
  case "measure-unit":
896
861
  case "unit":
897
- t.style = "unit", t.unit = Ir(i.options[0]);
862
+ t.style = "unit", t.unit = yr(i.options[0]);
898
863
  continue;
899
864
  case "compact-short":
900
865
  case "K":
@@ -905,13 +870,13 @@ function Lr(e) {
905
870
  t.notation = "compact", t.compactDisplay = "long";
906
871
  continue;
907
872
  case "scientific":
908
- t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
909
- return d(d({}, u), Xe(a));
873
+ t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
874
+ return d(d({}, f), Ue(a));
910
875
  }, {}));
911
876
  continue;
912
877
  case "engineering":
913
- t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
914
- return d(d({}, u), Xe(a));
878
+ t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
879
+ return d(d({}, f), Ue(a));
915
880
  }, {}));
916
881
  continue;
917
882
  case "notation-simple":
@@ -956,11 +921,11 @@ function Lr(e) {
956
921
  case "integer-width":
957
922
  if (i.options.length > 1)
958
923
  throw new RangeError("integer-width stems only accept a single optional option");
959
- i.options[0].replace(wr, function(u, a, l, f, c, b) {
924
+ i.options[0].replace(_r, function(f, a, h, l, c, b) {
960
925
  if (a)
961
- t.minimumIntegerDigits = l.length;
926
+ t.minimumIntegerDigits = h.length;
962
927
  else {
963
- if (f && c)
928
+ if (l && c)
964
929
  throw new Error("We currently do not support maximum integer digits");
965
930
  if (b)
966
931
  throw new Error("We currently do not support exact integer digits");
@@ -969,32 +934,32 @@ function Lr(e) {
969
934
  });
970
935
  continue;
971
936
  }
972
- if (yt.test(i.stem)) {
937
+ if (mt.test(i.stem)) {
973
938
  t.minimumIntegerDigits = i.stem.length;
974
939
  continue;
975
940
  }
976
- if (Ve.test(i.stem)) {
941
+ if (Ce.test(i.stem)) {
977
942
  if (i.options.length > 1)
978
943
  throw new RangeError("Fraction-precision stems only accept a single optional option");
979
- i.stem.replace(Ve, function(u, a, l, f, c, b) {
980
- return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
944
+ i.stem.replace(Ce, function(f, a, h, l, c, b) {
945
+ return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
981
946
  });
982
947
  var s = i.options[0];
983
- s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
948
+ s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Re(s)));
984
949
  continue;
985
950
  }
986
- if (xt.test(i.stem)) {
987
- t = d(d({}, t), ke(i.stem));
951
+ if (ct.test(i.stem)) {
952
+ t = d(d({}, t), Re(i.stem));
988
953
  continue;
989
954
  }
990
- var o = vt(i.stem);
955
+ var u = pt(i.stem);
956
+ u && (t = d(d({}, t), u));
957
+ var o = vr(i.stem);
991
958
  o && (t = d(d({}, t), o));
992
- var h = $r(i.stem);
993
- h && (t = d(d({}, t), h));
994
959
  }
995
960
  return t;
996
961
  }
997
- var J = {
962
+ var Q = {
998
963
  "001": [
999
964
  "H",
1000
965
  "h"
@@ -2409,22 +2374,22 @@ var J = {
2409
2374
  "h"
2410
2375
  ]
2411
2376
  };
2412
- function Mr(e, t) {
2377
+ function Tr(e, t) {
2413
2378
  for (var r = "", n = 0; n < e.length; n++) {
2414
2379
  var i = e.charAt(n);
2415
2380
  if (i === "j") {
2416
2381
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2417
2382
  s++, n++;
2418
- var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a = Cr(t);
2419
- for ((a == "H" || a == "k") && (h = 0); h-- > 0; )
2420
- r += u;
2421
- for (; o-- > 0; )
2383
+ var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
2384
+ for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
2385
+ r += f;
2386
+ for (; u-- > 0; )
2422
2387
  r = a + r;
2423
2388
  } else i === "J" ? r += "H" : r += i;
2424
2389
  }
2425
2390
  return r;
2426
2391
  }
2427
- function Cr(e) {
2392
+ function Sr(e) {
2428
2393
  var t = e.hourCycle;
2429
2394
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2430
2395
  e.hourCycles && // @ts-ignore
@@ -2443,23 +2408,23 @@ function Cr(e) {
2443
2408
  }
2444
2409
  var r = e.language, n;
2445
2410
  r !== "root" && (n = e.maximize().region);
2446
- var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
2411
+ var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
2447
2412
  return i[0];
2448
2413
  }
2449
- var ce, Rr = new RegExp("^".concat(Et.source, "*")), Ur = new RegExp("".concat(Et.source, "*$"));
2414
+ var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
2450
2415
  function p(e, t) {
2451
2416
  return { start: e, end: t };
2452
2417
  }
2453
- 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) {
2418
+ var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
2454
2419
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2455
- }, xe = !0;
2420
+ }, ge = !0;
2456
2421
  try {
2457
- var zr = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2458
- xe = ((ce = zr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
2459
- } catch (e) {
2460
- xe = !1;
2422
+ var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2423
+ ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
2424
+ } catch {
2425
+ ge = !1;
2461
2426
  }
2462
- var We = Gr ? (
2427
+ var Ge = Pr ? (
2463
2428
  // Native
2464
2429
  function(t, r, n) {
2465
2430
  return t.startsWith(r, n);
@@ -2469,31 +2434,31 @@ var We = Gr ? (
2469
2434
  function(t, r, n) {
2470
2435
  return t.slice(n, n + r.length) === r;
2471
2436
  }
2472
- ), ye = Dr ? String.fromCodePoint : (
2437
+ ), Ee = Nr ? String.fromCodePoint : (
2473
2438
  // IE11
2474
2439
  function() {
2475
2440
  for (var t = [], r = 0; r < arguments.length; r++)
2476
2441
  t[r] = arguments[r];
2477
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
2478
- if (o = t[s++], o > 1114111)
2479
- throw RangeError(o + " is not a valid code point");
2480
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2442
+ for (var n = "", i = t.length, s = 0, u; i > s; ) {
2443
+ if (u = t[s++], u > 1114111)
2444
+ throw RangeError(u + " is not a valid code point");
2445
+ n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2481
2446
  }
2482
2447
  return n;
2483
2448
  }
2484
- ), ze = (
2449
+ ), De = (
2485
2450
  // native
2486
- Fr ? Object.fromEntries : (
2451
+ Or ? Object.fromEntries : (
2487
2452
  // Ponyfill
2488
2453
  function(t) {
2489
2454
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2490
- var s = i[n], o = s[0], h = s[1];
2491
- r[o] = h;
2455
+ var s = i[n], u = s[0], o = s[1];
2456
+ r[u] = o;
2492
2457
  }
2493
2458
  return r;
2494
2459
  }
2495
2460
  )
2496
- ), _t = jr ? (
2461
+ ), dt = Ir ? (
2497
2462
  // Native
2498
2463
  function(t, r) {
2499
2464
  return t.codePointAt(r);
@@ -2507,7 +2472,7 @@ var We = Gr ? (
2507
2472
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2508
2473
  }
2509
2474
  }
2510
- ), Zr = Vr ? (
2475
+ ), Rr = wr ? (
2511
2476
  // Native
2512
2477
  function(t) {
2513
2478
  return t.trimStart();
@@ -2515,9 +2480,9 @@ var We = Gr ? (
2515
2480
  ) : (
2516
2481
  // Ponyfill
2517
2482
  function(t) {
2518
- return t.replace(Rr, "");
2483
+ return t.replace(Br, "");
2519
2484
  }
2520
- ), Qr = kr ? (
2485
+ ), Ur = $r ? (
2521
2486
  // Native
2522
2487
  function(t) {
2523
2488
  return t.trimEnd();
@@ -2525,32 +2490,32 @@ var We = Gr ? (
2525
2490
  ) : (
2526
2491
  // Ponyfill
2527
2492
  function(t) {
2528
- return t.replace(Ur, "");
2493
+ return t.replace(Ar, "");
2529
2494
  }
2530
2495
  );
2531
- function Ht(e, t) {
2496
+ function bt(e, t) {
2532
2497
  return new RegExp(e, t);
2533
2498
  }
2534
- var ve;
2535
- if (xe) {
2536
- var Ze = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2537
- ve = function(t, r) {
2499
+ var xe;
2500
+ if (ge) {
2501
+ var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2502
+ xe = function(t, r) {
2538
2503
  var n;
2539
- Ze.lastIndex = r;
2540
- var i = Ze.exec(t);
2504
+ Fe.lastIndex = r;
2505
+ var i = Fe.exec(t);
2541
2506
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2542
2507
  };
2543
2508
  } else
2544
- ve = function(t, r) {
2509
+ xe = function(t, r) {
2545
2510
  for (var n = []; ; ) {
2546
- var i = _t(t, r);
2547
- if (i === void 0 || Tt(i) || Kr(i))
2511
+ var i = dt(t, r);
2512
+ if (i === void 0 || gt(i) || jr(i))
2548
2513
  break;
2549
2514
  n.push(i), r += i >= 65536 ? 2 : 1;
2550
2515
  }
2551
- return ye.apply(void 0, n);
2516
+ return Ee.apply(void 0, n);
2552
2517
  };
2553
- var Jr = (
2518
+ var Gr = (
2554
2519
  /** @class */
2555
2520
  function() {
2556
2521
  function e(t, r) {
@@ -2564,33 +2529,33 @@ var Jr = (
2564
2529
  for (var i = []; !this.isEOF(); ) {
2565
2530
  var s = this.char();
2566
2531
  if (s === 123) {
2567
- var o = this.parseArgument(t, n);
2568
- if (o.err)
2569
- return o;
2570
- i.push(o.val);
2532
+ var u = this.parseArgument(t, n);
2533
+ if (u.err)
2534
+ return u;
2535
+ i.push(u.val);
2571
2536
  } else {
2572
2537
  if (s === 125 && t > 0)
2573
2538
  break;
2574
2539
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2575
- var h = this.clonePosition();
2540
+ var o = this.clonePosition();
2576
2541
  this.bump(), i.push({
2577
2542
  type: E.pound,
2578
- location: p(h, this.clonePosition())
2543
+ location: p(o, this.clonePosition())
2579
2544
  });
2580
2545
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2581
2546
  if (n)
2582
2547
  break;
2583
2548
  return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2584
- } else if (s === 60 && !this.ignoreTag && _e(this.peek() || 0)) {
2585
- var o = this.parseTag(t, r);
2586
- if (o.err)
2587
- return o;
2588
- i.push(o.val);
2549
+ } else if (s === 60 && !this.ignoreTag && ye(this.peek() || 0)) {
2550
+ var u = this.parseTag(t, r);
2551
+ if (u.err)
2552
+ return u;
2553
+ i.push(u.val);
2589
2554
  } else {
2590
- var o = this.parseLiteral(t, r);
2591
- if (o.err)
2592
- return o;
2593
- i.push(o.val);
2555
+ var u = this.parseLiteral(t, r);
2556
+ if (u.err)
2557
+ return u;
2558
+ i.push(u.val);
2594
2559
  }
2595
2560
  }
2596
2561
  }
@@ -2612,27 +2577,27 @@ var Jr = (
2612
2577
  var s = this.parseMessage(t + 1, r, !0);
2613
2578
  if (s.err)
2614
2579
  return s;
2615
- var o = s.val, h = this.clonePosition();
2580
+ var u = s.val, o = this.clonePosition();
2616
2581
  if (this.bumpIf("</")) {
2617
- if (this.isEOF() || !_e(this.char()))
2618
- return this.error(m.INVALID_TAG, p(h, this.clonePosition()));
2619
- var u = this.clonePosition(), a = this.parseTagName();
2620
- return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2582
+ if (this.isEOF() || !ye(this.char()))
2583
+ return this.error(m.INVALID_TAG, p(o, this.clonePosition()));
2584
+ var f = this.clonePosition(), a = this.parseTagName();
2585
+ return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2621
2586
  val: {
2622
2587
  type: E.tag,
2623
2588
  value: i,
2624
- children: o,
2589
+ children: u,
2625
2590
  location: p(n, this.clonePosition())
2626
2591
  },
2627
2592
  err: null
2628
- } : this.error(m.INVALID_TAG, p(h, this.clonePosition())));
2593
+ } : this.error(m.INVALID_TAG, p(o, this.clonePosition())));
2629
2594
  } else
2630
2595
  return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2631
2596
  } else
2632
2597
  return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2633
2598
  }, e.prototype.parseTagName = function() {
2634
2599
  var t = this.offset();
2635
- for (this.bump(); !this.isEOF() && Yr(this.char()); )
2600
+ for (this.bump(); !this.isEOF() && Fr(this.char()); )
2636
2601
  this.bump();
2637
2602
  return this.message.slice(t, this.offset());
2638
2603
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2642,26 +2607,26 @@ var Jr = (
2642
2607
  i += s;
2643
2608
  continue;
2644
2609
  }
2645
- var o = this.tryParseUnquoted(t, r);
2646
- if (o) {
2647
- i += o;
2610
+ var u = this.tryParseUnquoted(t, r);
2611
+ if (u) {
2612
+ i += u;
2648
2613
  continue;
2649
2614
  }
2650
- var h = this.tryParseLeftAngleBracket();
2651
- if (h) {
2652
- i += h;
2615
+ var o = this.tryParseLeftAngleBracket();
2616
+ if (o) {
2617
+ i += o;
2653
2618
  continue;
2654
2619
  }
2655
2620
  break;
2656
2621
  }
2657
- var u = p(n, this.clonePosition());
2622
+ var f = p(n, this.clonePosition());
2658
2623
  return {
2659
- val: { type: E.literal, value: i, location: u },
2624
+ val: { type: E.literal, value: i, location: f },
2660
2625
  err: null
2661
2626
  };
2662
2627
  }, e.prototype.tryParseLeftAngleBracket = function() {
2663
2628
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2664
- !qr(this.peek() || 0)) ? (this.bump(), "<") : null;
2629
+ !Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
2665
2630
  }, e.prototype.tryParseQuote = function(t) {
2666
2631
  if (this.isEOF() || this.char() !== 39)
2667
2632
  return null;
@@ -2695,12 +2660,12 @@ var Jr = (
2695
2660
  r.push(n);
2696
2661
  this.bump();
2697
2662
  }
2698
- return ye.apply(void 0, r);
2663
+ return Ee.apply(void 0, r);
2699
2664
  }, e.prototype.tryParseUnquoted = function(t, r) {
2700
2665
  if (this.isEOF())
2701
2666
  return null;
2702
2667
  var n = this.char();
2703
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ye(n));
2668
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
2704
2669
  }, e.prototype.parseArgument = function(t, r) {
2705
2670
  var n = this.clonePosition();
2706
2671
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2729,15 +2694,15 @@ var Jr = (
2729
2694
  return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2730
2695
  }
2731
2696
  }, e.prototype.parseIdentifierIfPossible = function() {
2732
- var t = this.clonePosition(), r = this.offset(), n = ve(this.message, r), i = r + n.length;
2697
+ var t = this.clonePosition(), r = this.offset(), n = xe(this.message, r), i = r + n.length;
2733
2698
  this.bumpTo(i);
2734
- var s = this.clonePosition(), o = p(t, s);
2735
- return { value: n, location: o };
2699
+ var s = this.clonePosition(), u = p(t, s);
2700
+ return { value: n, location: u };
2736
2701
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2737
- var s, o = this.clonePosition(), h = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2738
- switch (h) {
2702
+ var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2703
+ switch (o) {
2739
2704
  case "":
2740
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, u));
2705
+ return this.error(m.EXPECT_ARGUMENT_TYPE, p(u, f));
2741
2706
  case "number":
2742
2707
  case "date":
2743
2708
  case "time": {
@@ -2745,50 +2710,50 @@ var Jr = (
2745
2710
  var a = null;
2746
2711
  if (this.bumpIf(",")) {
2747
2712
  this.bumpSpace();
2748
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2749
- if (f.err)
2750
- return f;
2751
- var c = Qr(f.val);
2713
+ var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
2714
+ if (l.err)
2715
+ return l;
2716
+ var c = Ur(l.val);
2752
2717
  if (c.length === 0)
2753
2718
  return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2754
- var b = p(l, this.clonePosition());
2719
+ var b = p(h, this.clonePosition());
2755
2720
  a = { style: c, styleLocation: b };
2756
2721
  }
2757
2722
  var g = this.tryParseArgumentClose(i);
2758
2723
  if (g.err)
2759
2724
  return g;
2760
2725
  var y = p(i, this.clonePosition());
2761
- if (a && We(a == null ? void 0 : a.style, "::", 0)) {
2762
- var T = Zr(a.style.slice(2));
2763
- if (h === "number") {
2764
- var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
2765
- return f.err ? f : {
2766
- val: { type: E.number, value: n, location: y, style: f.val },
2726
+ if (a && Ge(a?.style, "::", 0)) {
2727
+ var H = Rr(a.style.slice(2));
2728
+ if (o === "number") {
2729
+ var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
2730
+ return l.err ? l : {
2731
+ val: { type: E.number, value: n, location: y, style: l.val },
2767
2732
  err: null
2768
2733
  };
2769
2734
  } else {
2770
- if (T.length === 0)
2735
+ if (H.length === 0)
2771
2736
  return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
2772
- var F = T;
2773
- this.locale && (F = Mr(T, this.locale));
2737
+ var D = H;
2738
+ this.locale && (D = Tr(H, this.locale));
2774
2739
  var c = {
2775
- type: M.dateTime,
2776
- pattern: F,
2740
+ type: L.dateTime,
2741
+ pattern: D,
2777
2742
  location: a.styleLocation,
2778
- parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
2779
- }, P = h === "date" ? E.date : E.time;
2743
+ parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
2744
+ }, A = o === "date" ? E.date : E.time;
2780
2745
  return {
2781
- val: { type: P, value: n, location: y, style: c },
2746
+ val: { type: A, value: n, location: y, style: c },
2782
2747
  err: null
2783
2748
  };
2784
2749
  }
2785
2750
  }
2786
2751
  return {
2787
2752
  val: {
2788
- type: h === "number" ? E.number : h === "date" ? E.date : E.time,
2753
+ type: o === "number" ? E.number : o === "date" ? E.date : E.time,
2789
2754
  value: n,
2790
2755
  location: y,
2791
- style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2756
+ style: (s = a?.style) !== null && s !== void 0 ? s : null
2792
2757
  },
2793
2758
  err: null
2794
2759
  };
@@ -2796,49 +2761,49 @@ var Jr = (
2796
2761
  case "plural":
2797
2762
  case "selectordinal":
2798
2763
  case "select": {
2799
- var H = this.clonePosition();
2764
+ var v = this.clonePosition();
2800
2765
  if (this.bumpSpace(), !this.bumpIf(","))
2801
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, d({}, H)));
2766
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(v, d({}, v)));
2802
2767
  this.bumpSpace();
2803
- var j = this.parseIdentifierIfPossible(), B = 0;
2804
- if (h !== "select" && j.value === "offset") {
2768
+ var F = this.parseIdentifierIfPossible(), S = 0;
2769
+ if (o !== "select" && F.value === "offset") {
2805
2770
  if (!this.bumpIf(":"))
2806
2771
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2807
2772
  this.bumpSpace();
2808
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2809
- if (f.err)
2810
- return f;
2811
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
2773
+ var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2774
+ if (l.err)
2775
+ return l;
2776
+ this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
2812
2777
  }
2813
- var Q = this.tryParsePluralOrSelectOptions(t, h, r, j);
2814
- if (Q.err)
2815
- return Q;
2778
+ var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
2779
+ if (Z.err)
2780
+ return Z;
2816
2781
  var g = this.tryParseArgumentClose(i);
2817
2782
  if (g.err)
2818
2783
  return g;
2819
- var $e = p(i, this.clonePosition());
2820
- return h === "select" ? {
2784
+ var Oe = p(i, this.clonePosition());
2785
+ return o === "select" ? {
2821
2786
  val: {
2822
2787
  type: E.select,
2823
2788
  value: n,
2824
- options: ze(Q.val),
2825
- location: $e
2789
+ options: De(Z.val),
2790
+ location: Oe
2826
2791
  },
2827
2792
  err: null
2828
2793
  } : {
2829
2794
  val: {
2830
2795
  type: E.plural,
2831
2796
  value: n,
2832
- options: ze(Q.val),
2833
- offset: B,
2834
- pluralType: h === "plural" ? "cardinal" : "ordinal",
2835
- location: $e
2797
+ options: De(Z.val),
2798
+ offset: S,
2799
+ pluralType: o === "plural" ? "cardinal" : "ordinal",
2800
+ location: Oe
2836
2801
  },
2837
2802
  err: null
2838
2803
  };
2839
2804
  }
2840
2805
  default:
2841
- return this.error(m.INVALID_ARGUMENT_TYPE, p(o, u));
2806
+ return this.error(m.INVALID_ARGUMENT_TYPE, p(u, f));
2842
2807
  }
2843
2808
  }, e.prototype.tryParseArgumentClose = function(t) {
2844
2809
  return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2880,34 +2845,34 @@ var Jr = (
2880
2845
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2881
2846
  var n = [];
2882
2847
  try {
2883
- n = Or(t);
2884
- } catch (i) {
2848
+ n = xr(t);
2849
+ } catch {
2885
2850
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2886
2851
  }
2887
2852
  return {
2888
2853
  val: {
2889
- type: M.number,
2854
+ type: L.number,
2890
2855
  tokens: n,
2891
2856
  location: r,
2892
- parsedOptions: this.shouldParseSkeletons ? Lr(n) : {}
2857
+ parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
2893
2858
  },
2894
2859
  err: null
2895
2860
  };
2896
2861
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2897
- for (var s, o = !1, h = [], u = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2862
+ for (var s, u = !1, o = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2898
2863
  if (a.length === 0) {
2899
- var f = this.clonePosition();
2864
+ var l = this.clonePosition();
2900
2865
  if (r !== "select" && this.bumpIf("=")) {
2901
2866
  var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2902
2867
  if (c.err)
2903
2868
  return c;
2904
- l = p(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2869
+ h = p(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
2905
2870
  } else
2906
2871
  break;
2907
2872
  }
2908
- if (u.has(a))
2909
- return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2910
- a === "other" && (o = !0), this.bumpSpace();
2873
+ if (f.has(a))
2874
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2875
+ a === "other" && (u = !0), this.bumpSpace();
2911
2876
  var b = this.clonePosition();
2912
2877
  if (!this.bumpIf("{"))
2913
2878
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
@@ -2917,27 +2882,27 @@ var Jr = (
2917
2882
  var y = this.tryParseArgumentClose(b);
2918
2883
  if (y.err)
2919
2884
  return y;
2920
- h.push([
2885
+ o.push([
2921
2886
  a,
2922
2887
  {
2923
2888
  value: g.val,
2924
2889
  location: p(b, this.clonePosition())
2925
2890
  }
2926
- ]), u.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2891
+ ]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
2927
2892
  }
2928
- return h.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: h, err: null };
2893
+ return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2929
2894
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2930
2895
  var n = 1, i = this.clonePosition();
2931
2896
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2932
- for (var s = !1, o = 0; !this.isEOF(); ) {
2933
- var h = this.char();
2934
- if (h >= 48 && h <= 57)
2935
- s = !0, o = o * 10 + (h - 48), this.bump();
2897
+ for (var s = !1, u = 0; !this.isEOF(); ) {
2898
+ var o = this.char();
2899
+ if (o >= 48 && o <= 57)
2900
+ s = !0, u = u * 10 + (o - 48), this.bump();
2936
2901
  else
2937
2902
  break;
2938
2903
  }
2939
- var u = p(i, this.clonePosition());
2940
- return s ? (o *= n, Wr(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
2904
+ var f = p(i, this.clonePosition());
2905
+ return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
2941
2906
  }, e.prototype.offset = function() {
2942
2907
  return this.position.offset;
2943
2908
  }, e.prototype.isEOF = function() {
@@ -2952,7 +2917,7 @@ var Jr = (
2952
2917
  var t = this.position.offset;
2953
2918
  if (t >= this.message.length)
2954
2919
  throw Error("out of bound");
2955
- var r = _t(this.message, t);
2920
+ var r = dt(this.message, t);
2956
2921
  if (r === void 0)
2957
2922
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2958
2923
  return r;
@@ -2971,7 +2936,7 @@ var Jr = (
2971
2936
  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);
2972
2937
  }
2973
2938
  }, e.prototype.bumpIf = function(t) {
2974
- if (We(this.message, t, this.offset())) {
2939
+ if (Ge(this.message, t, this.offset())) {
2975
2940
  for (var r = 0; r < t.length; r++)
2976
2941
  this.bump();
2977
2942
  return !0;
@@ -2993,56 +2958,56 @@ var Jr = (
2993
2958
  break;
2994
2959
  }
2995
2960
  }, e.prototype.bumpSpace = function() {
2996
- for (; !this.isEOF() && Tt(this.char()); )
2961
+ for (; !this.isEOF() && gt(this.char()); )
2997
2962
  this.bump();
2998
2963
  }, e.prototype.peek = function() {
2999
2964
  if (this.isEOF())
3000
2965
  return null;
3001
2966
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3002
- return n != null ? n : null;
2967
+ return n ?? null;
3003
2968
  }, e;
3004
2969
  }()
3005
2970
  );
3006
- function _e(e) {
2971
+ function ye(e) {
3007
2972
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3008
2973
  }
3009
- function qr(e) {
3010
- return _e(e) || e === 47;
2974
+ function Dr(e) {
2975
+ return ye(e) || e === 47;
3011
2976
  }
3012
- function Yr(e) {
2977
+ function Fr(e) {
3013
2978
  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;
3014
2979
  }
3015
- function Tt(e) {
2980
+ function gt(e) {
3016
2981
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3017
2982
  }
3018
- function Kr(e) {
2983
+ function jr(e) {
3019
2984
  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;
3020
2985
  }
3021
- function He(e) {
2986
+ function _e(e) {
3022
2987
  e.forEach(function(t) {
3023
- if (delete t.location, pt(t) || dt(t))
2988
+ if (delete t.location, at(t) || ut(t))
3024
2989
  for (var r in t.options)
3025
- delete t.options[r].location, He(t.options[r].value);
3026
- else ft(t) && gt(t.style) || (ct(t) || mt(t)) && Ee(t.style) ? delete t.style.location : bt(t) && He(t.children);
2990
+ delete t.options[r].location, _e(t.options[r].value);
2991
+ else it(t) && lt(t.style) || (st(t) || ot(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
3027
2992
  });
3028
2993
  }
3029
- function en(e, t) {
2994
+ function Vr(e, t) {
3030
2995
  t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3031
- var r = new Jr(e, t).parse();
2996
+ var r = new Gr(e, t).parse();
3032
2997
  if (r.err) {
3033
2998
  var n = SyntaxError(m[r.err.kind]);
3034
2999
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3035
3000
  }
3036
- return t != null && t.captureLocation || He(r.val), r.val;
3001
+ return t?.captureLocation || _e(r.val), r.val;
3037
3002
  }
3038
- var C;
3003
+ var M;
3039
3004
  (function(e) {
3040
3005
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3041
- })(C || (C = {}));
3042
- var ie = (
3006
+ })(M || (M = {}));
3007
+ var ne = (
3043
3008
  /** @class */
3044
3009
  function(e) {
3045
- ne(t, e);
3010
+ re(t, e);
3046
3011
  function t(r, n, i) {
3047
3012
  var s = e.call(this, r) || this;
3048
3013
  return s.code = n, s.originalMessage = i, s;
@@ -3051,155 +3016,155 @@ var ie = (
3051
3016
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3052
3017
  }, t;
3053
3018
  }(Error)
3054
- ), Qe = (
3019
+ ), je = (
3055
3020
  /** @class */
3056
3021
  function(e) {
3057
- ne(t, e);
3022
+ re(t, e);
3058
3023
  function t(r, n, i, s) {
3059
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), C.INVALID_VALUE, s) || this;
3024
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
3060
3025
  }
3061
3026
  return t;
3062
- }(ie)
3063
- ), tn = (
3027
+ }(ne)
3028
+ ), kr = (
3064
3029
  /** @class */
3065
3030
  function(e) {
3066
- ne(t, e);
3031
+ re(t, e);
3067
3032
  function t(r, n, i) {
3068
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), C.INVALID_VALUE, i) || this;
3033
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
3069
3034
  }
3070
3035
  return t;
3071
- }(ie)
3072
- ), rn = (
3036
+ }(ne)
3037
+ ), Xr = (
3073
3038
  /** @class */
3074
3039
  function(e) {
3075
- ne(t, e);
3040
+ re(t, e);
3076
3041
  function t(r, n) {
3077
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), C.MISSING_VALUE, n) || this;
3042
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
3078
3043
  }
3079
3044
  return t;
3080
- }(ie)
3045
+ }(ne)
3081
3046
  ), x;
3082
3047
  (function(e) {
3083
3048
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3084
3049
  })(x || (x = {}));
3085
- function nn(e) {
3050
+ function Wr(e) {
3086
3051
  return e.length < 2 ? e : e.reduce(function(t, r) {
3087
3052
  var n = t[t.length - 1];
3088
3053
  return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3089
3054
  }, []);
3090
3055
  }
3091
- function sn(e) {
3056
+ function zr(e) {
3092
3057
  return typeof e == "function";
3093
3058
  }
3094
- function Y(e, t, r, n, i, s, o) {
3095
- if (e.length === 1 && je(e[0]))
3059
+ function q(e, t, r, n, i, s, u) {
3060
+ if (e.length === 1 && Me(e[0]))
3096
3061
  return [
3097
3062
  {
3098
3063
  type: x.literal,
3099
3064
  value: e[0].value
3100
3065
  }
3101
3066
  ];
3102
- for (var h = [], u = 0, a = e; u < a.length; u++) {
3103
- var l = a[u];
3104
- if (je(l)) {
3105
- h.push({
3067
+ for (var o = [], f = 0, a = e; f < a.length; f++) {
3068
+ var h = a[f];
3069
+ if (Me(h)) {
3070
+ o.push({
3106
3071
  type: x.literal,
3107
- value: l.value
3072
+ value: h.value
3108
3073
  });
3109
3074
  continue;
3110
3075
  }
3111
- if (Br(l)) {
3112
- typeof s == "number" && h.push({
3076
+ if (dr(h)) {
3077
+ typeof s == "number" && o.push({
3113
3078
  type: x.literal,
3114
3079
  value: r.getNumberFormat(t).format(s)
3115
3080
  });
3116
3081
  continue;
3117
3082
  }
3118
- var f = l.value;
3119
- if (!(i && f in i))
3120
- throw new rn(f, o);
3121
- var c = i[f];
3122
- if (Sr(l)) {
3123
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), h.push({
3083
+ var l = h.value;
3084
+ if (!(i && l in i))
3085
+ throw new Xr(l, u);
3086
+ var c = i[l];
3087
+ if (pr(h)) {
3088
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
3124
3089
  type: typeof c == "string" ? x.literal : x.object,
3125
3090
  value: c
3126
3091
  });
3127
3092
  continue;
3128
3093
  }
3129
- if (ct(l)) {
3130
- var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
3131
- h.push({
3094
+ if (st(h)) {
3095
+ var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
3096
+ o.push({
3132
3097
  type: x.literal,
3133
3098
  value: r.getDateTimeFormat(t, b).format(c)
3134
3099
  });
3135
3100
  continue;
3136
3101
  }
3137
- if (mt(l)) {
3138
- var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
3139
- h.push({
3102
+ if (ot(h)) {
3103
+ var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
3104
+ o.push({
3140
3105
  type: x.literal,
3141
3106
  value: r.getDateTimeFormat(t, b).format(c)
3142
3107
  });
3143
3108
  continue;
3144
3109
  }
3145
- if (ft(l)) {
3146
- var b = typeof l.style == "string" ? n.number[l.style] : gt(l.style) ? l.style.parsedOptions : void 0;
3147
- b && b.scale && (c = c * (b.scale || 1)), h.push({
3110
+ if (it(h)) {
3111
+ var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
3112
+ b && b.scale && (c = c * (b.scale || 1)), o.push({
3148
3113
  type: x.literal,
3149
3114
  value: r.getNumberFormat(t, b).format(c)
3150
3115
  });
3151
3116
  continue;
3152
3117
  }
3153
- if (bt(l)) {
3154
- var g = l.children, y = l.value, T = i[y];
3155
- if (!sn(T))
3156
- throw new tn(y, "function", o);
3157
- var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
3158
- return B.value;
3118
+ if (ht(h)) {
3119
+ var g = h.children, y = h.value, H = i[y];
3120
+ if (!zr(H))
3121
+ throw new kr(y, "function", u);
3122
+ var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
3123
+ return S.value;
3159
3124
  }));
3160
- Array.isArray(P) || (P = [P]), h.push.apply(h, P.map(function(B) {
3125
+ Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
3161
3126
  return {
3162
- type: typeof B == "string" ? x.literal : x.object,
3163
- value: B
3127
+ type: typeof S == "string" ? x.literal : x.object,
3128
+ value: S
3164
3129
  };
3165
3130
  }));
3166
3131
  }
3167
- if (pt(l)) {
3168
- var H = l.options[c] || l.options.other;
3169
- if (!H)
3170
- throw new Qe(l.value, c, Object.keys(l.options), o);
3171
- h.push.apply(h, Y(H.value, t, r, n, i));
3132
+ if (at(h)) {
3133
+ var v = h.options[c] || h.options.other;
3134
+ if (!v)
3135
+ throw new je(h.value, c, Object.keys(h.options), u);
3136
+ o.push.apply(o, q(v.value, t, r, n, i));
3172
3137
  continue;
3173
3138
  }
3174
- if (dt(l)) {
3175
- var H = l.options["=".concat(c)];
3176
- if (!H) {
3139
+ if (ut(h)) {
3140
+ var v = h.options["=".concat(c)];
3141
+ if (!v) {
3177
3142
  if (!Intl.PluralRules)
3178
- throw new ie(`Intl.PluralRules is not available in this environment.
3143
+ throw new ne(`Intl.PluralRules is not available in this environment.
3179
3144
  Try polyfilling it using "@formatjs/intl-pluralrules"
3180
- `, C.MISSING_INTL_API, o);
3181
- var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3182
- H = l.options[j] || l.options.other;
3145
+ `, M.MISSING_INTL_API, u);
3146
+ var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3147
+ v = h.options[F] || h.options.other;
3183
3148
  }
3184
- if (!H)
3185
- throw new Qe(l.value, c, Object.keys(l.options), o);
3186
- h.push.apply(h, Y(H.value, t, r, n, i, c - (l.offset || 0)));
3149
+ if (!v)
3150
+ throw new je(h.value, c, Object.keys(h.options), u);
3151
+ o.push.apply(o, q(v.value, t, r, n, i, c - (h.offset || 0)));
3187
3152
  continue;
3188
3153
  }
3189
3154
  }
3190
- return nn(h);
3155
+ return Wr(o);
3191
3156
  }
3192
- function on(e, t) {
3157
+ function Zr(e, t) {
3193
3158
  return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3194
3159
  return r[n] = d(d({}, e[n]), t[n] || {}), r;
3195
3160
  }, {})) : e;
3196
3161
  }
3197
- function an(e, t) {
3162
+ function Qr(e, t) {
3198
3163
  return t ? Object.keys(e).reduce(function(r, n) {
3199
- return r[n] = on(e[n], t[n]), r;
3164
+ return r[n] = Zr(e[n], t[n]), r;
3200
3165
  }, d({}, e)) : e;
3201
3166
  }
3202
- function me(e) {
3167
+ function fe(e) {
3203
3168
  return {
3204
3169
  create: function() {
3205
3170
  return {
@@ -3213,39 +3178,39 @@ function me(e) {
3213
3178
  }
3214
3179
  };
3215
3180
  }
3216
- function hn(e) {
3181
+ function Jr(e) {
3217
3182
  return e === void 0 && (e = {
3218
3183
  number: {},
3219
3184
  dateTime: {},
3220
3185
  pluralRules: {}
3221
3186
  }), {
3222
- getNumberFormat: le(function() {
3187
+ getNumberFormat: ue(function() {
3223
3188
  for (var t, r = [], n = 0; n < arguments.length; n++)
3224
3189
  r[n] = arguments[n];
3225
- return new ((t = Intl.NumberFormat).bind.apply(t, ue([void 0], r, !1)))();
3190
+ return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
3226
3191
  }, {
3227
- cache: me(e.number),
3228
- strategy: fe.variadic
3192
+ cache: fe(e.number),
3193
+ strategy: he.variadic
3229
3194
  }),
3230
- getDateTimeFormat: le(function() {
3195
+ getDateTimeFormat: ue(function() {
3231
3196
  for (var t, r = [], n = 0; n < arguments.length; n++)
3232
3197
  r[n] = arguments[n];
3233
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ue([void 0], r, !1)))();
3198
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
3234
3199
  }, {
3235
- cache: me(e.dateTime),
3236
- strategy: fe.variadic
3200
+ cache: fe(e.dateTime),
3201
+ strategy: he.variadic
3237
3202
  }),
3238
- getPluralRules: le(function() {
3203
+ getPluralRules: ue(function() {
3239
3204
  for (var t, r = [], n = 0; n < arguments.length; n++)
3240
3205
  r[n] = arguments[n];
3241
- return new ((t = Intl.PluralRules).bind.apply(t, ue([void 0], r, !1)))();
3206
+ return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
3242
3207
  }, {
3243
- cache: me(e.pluralRules),
3244
- strategy: fe.variadic
3208
+ cache: fe(e.pluralRules),
3209
+ strategy: he.variadic
3245
3210
  })
3246
3211
  };
3247
3212
  }
3248
- var un = (
3213
+ var qr = (
3249
3214
  /** @class */
3250
3215
  function() {
3251
3216
  function e(t, r, n, i) {
@@ -3255,35 +3220,35 @@ var un = (
3255
3220
  number: {},
3256
3221
  dateTime: {},
3257
3222
  pluralRules: {}
3258
- }, this.format = function(u) {
3259
- var a = s.formatToParts(u);
3223
+ }, this.format = function(f) {
3224
+ var a = s.formatToParts(f);
3260
3225
  if (a.length === 1)
3261
3226
  return a[0].value;
3262
- var l = a.reduce(function(f, c) {
3263
- return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3227
+ var h = a.reduce(function(l, c) {
3228
+ return !l.length || c.type !== x.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
3264
3229
  }, []);
3265
- return l.length <= 1 ? l[0] || "" : l;
3266
- }, this.formatToParts = function(u) {
3267
- return Y(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
3230
+ return h.length <= 1 ? h[0] || "" : h;
3231
+ }, this.formatToParts = function(f) {
3232
+ return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
3268
3233
  }, this.resolvedOptions = function() {
3269
- var u;
3234
+ var f;
3270
3235
  return {
3271
- locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3236
+ locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3272
3237
  };
3273
3238
  }, this.getAst = function() {
3274
3239
  return s.ast;
3275
3240
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3276
3241
  if (this.message = t, !e.__parse)
3277
3242
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3278
- var o = i || {};
3279
- o.formatters;
3280
- var h = Er(o, ["formatters"]);
3281
- this.ast = e.__parse(t, d(d({}, h), { locale: this.resolvedLocale }));
3243
+ var u = i || {};
3244
+ u.formatters;
3245
+ var o = or(u, ["formatters"]);
3246
+ this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
3282
3247
  } else
3283
3248
  this.ast = t;
3284
3249
  if (!Array.isArray(this.ast))
3285
3250
  throw new TypeError("A message must be provided as a String or AST.");
3286
- this.formats = an(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
3251
+ this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
3287
3252
  }
3288
3253
  return Object.defineProperty(e, "defaultLocale", {
3289
3254
  get: function() {
@@ -3292,11 +3257,11 @@ var un = (
3292
3257
  enumerable: !1,
3293
3258
  configurable: !0
3294
3259
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3295
- if (typeof Intl.Locale != "undefined") {
3260
+ if (!(typeof Intl.Locale > "u")) {
3296
3261
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3297
3262
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3298
3263
  }
3299
- }, e.__parse = en, e.formats = {
3264
+ }, e.__parse = Vr, e.formats = {
3300
3265
  number: {
3301
3266
  integer: {
3302
3267
  maximumFractionDigits: 0
@@ -3357,7 +3322,7 @@ var un = (
3357
3322
  }, e;
3358
3323
  }()
3359
3324
  );
3360
- function ln(e, t) {
3325
+ function Yr(e, t) {
3361
3326
  if (t == null)
3362
3327
  return;
3363
3328
  if (t in e)
@@ -3378,92 +3343,92 @@ function ln(e, t) {
3378
3343
  n = void 0;
3379
3344
  return n;
3380
3345
  }
3381
- const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), St = (e, t) => {
3346
+ const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
3382
3347
  if (t == null)
3383
3348
  return;
3384
- if (t in S && e in S[t])
3385
- return S[t][e];
3386
- const r = se(t);
3349
+ if (t in T && e in T[t])
3350
+ return T[t][e];
3351
+ const r = ie(t);
3387
3352
  for (let n = 0; n < r.length; n++) {
3388
- const i = r[n], s = mn(i, e);
3353
+ const i = r[n], s = tn(i, e);
3389
3354
  if (s)
3390
- return fn(e, t, s);
3355
+ return Kr(e, t, s);
3391
3356
  }
3392
3357
  };
3393
- let Ie;
3394
- const Z = re({});
3395
- function cn(e) {
3396
- return Ie[e] || null;
3358
+ let Pe;
3359
+ const z = te({});
3360
+ function en(e) {
3361
+ return Pe[e] || null;
3397
3362
  }
3398
- function Bt(e) {
3399
- return e in Ie;
3363
+ function xt(e) {
3364
+ return e in Pe;
3400
3365
  }
3401
- function mn(e, t) {
3402
- if (!Bt(e))
3366
+ function tn(e, t) {
3367
+ if (!xt(e))
3403
3368
  return null;
3404
- const r = cn(e);
3405
- return ln(r, t);
3369
+ const r = en(e);
3370
+ return Yr(r, t);
3406
3371
  }
3407
- function pn(e) {
3372
+ function rn(e) {
3408
3373
  if (e == null)
3409
3374
  return;
3410
- const t = se(e);
3375
+ const t = ie(e);
3411
3376
  for (let r = 0; r < t.length; r++) {
3412
3377
  const n = t[r];
3413
- if (Bt(n))
3378
+ if (xt(n))
3414
3379
  return n;
3415
3380
  }
3416
3381
  }
3417
- function At(e, ...t) {
3418
- delete S[e], Z.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
3382
+ function yt(e, ...t) {
3383
+ delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
3419
3384
  }
3420
- U(
3421
- [Z],
3385
+ R(
3386
+ [z],
3422
3387
  ([e]) => Object.keys(e)
3423
3388
  );
3424
- Z.subscribe((e) => Ie = e);
3425
- const K = {};
3426
- function dn(e, t) {
3427
- K[e].delete(t), K[e].size === 0 && delete K[e];
3389
+ z.subscribe((e) => Pe = e);
3390
+ const Y = {};
3391
+ function nn(e, t) {
3392
+ Y[e].delete(t), Y[e].size === 0 && delete Y[e];
3428
3393
  }
3429
- function Pt(e) {
3430
- return K[e];
3394
+ function _t(e) {
3395
+ return Y[e];
3431
3396
  }
3432
- function bn(e) {
3433
- return se(e).map((t) => {
3434
- const r = Pt(t);
3397
+ function sn(e) {
3398
+ return ie(e).map((t) => {
3399
+ const r = _t(t);
3435
3400
  return [t, r ? [...r] : []];
3436
3401
  }).filter(([, t]) => t.length > 0);
3437
3402
  }
3438
- function Te(e) {
3439
- return e == null ? !1 : se(e).some(
3403
+ function ve(e) {
3404
+ return e == null ? !1 : ie(e).some(
3440
3405
  (t) => {
3441
3406
  var r;
3442
- return (r = Pt(t)) == null ? void 0 : r.size;
3407
+ return (r = _t(t)) == null ? void 0 : r.size;
3443
3408
  }
3444
3409
  );
3445
3410
  }
3446
- function gn(e, t) {
3411
+ function on(e, t) {
3447
3412
  return Promise.all(
3448
- t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
3449
- ).then((n) => At(e, ...n));
3413
+ t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
3414
+ ).then((n) => yt(e, ...n));
3450
3415
  }
3451
- const V = {};
3452
- function Nt(e) {
3453
- if (!Te(e))
3454
- return e in V ? V[e] : Promise.resolve();
3455
- const t = bn(e);
3456
- return V[e] = Promise.all(
3416
+ const j = {};
3417
+ function vt(e) {
3418
+ if (!ve(e))
3419
+ return e in j ? j[e] : Promise.resolve();
3420
+ const t = sn(e);
3421
+ return j[e] = Promise.all(
3457
3422
  t.map(
3458
- ([r, n]) => gn(r, n)
3423
+ ([r, n]) => on(r, n)
3459
3424
  )
3460
3425
  ).then(() => {
3461
- if (Te(e))
3462
- return Nt(e);
3463
- delete V[e];
3464
- }), V[e];
3426
+ if (ve(e))
3427
+ return vt(e);
3428
+ delete j[e];
3429
+ }), j[e];
3465
3430
  }
3466
- const En = {
3431
+ const an = {
3467
3432
  number: {
3468
3433
  scientific: { notation: "scientific" },
3469
3434
  engineering: { notation: "engineering" },
@@ -3492,178 +3457,178 @@ const En = {
3492
3457
  timeZoneName: "short"
3493
3458
  }
3494
3459
  }
3495
- }, xn = {
3460
+ }, un = {
3496
3461
  fallbackLocale: null,
3497
3462
  loadingDelay: 200,
3498
- formats: En,
3463
+ formats: an,
3499
3464
  warnOnMissingMessages: !0,
3500
3465
  handleMissingMessage: void 0,
3501
3466
  ignoreTag: !0
3502
- }, yn = xn;
3503
- function R() {
3504
- return yn;
3505
- }
3506
- const pe = re(!1);
3507
- var vn = Object.defineProperty, _n = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
3508
- for (var r in t || (t = {}))
3509
- Tn.call(t, r) && qe(e, r, t[r]);
3510
- if (Je)
3511
- for (var r of Je(t))
3512
- Sn.call(t, r) && qe(e, r, t[r]);
3467
+ }, hn = un;
3468
+ function C() {
3469
+ return hn;
3470
+ }
3471
+ const ce = te(!1);
3472
+ var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dn = (e, t) => {
3473
+ for (var r in t)
3474
+ mn.call(t, r) && ke(e, r, t[r]);
3475
+ if (Ve)
3476
+ for (var r of Ve(t))
3477
+ pn.call(t, r) && ke(e, r, t[r]);
3513
3478
  return e;
3514
- }, An = (e, t) => _n(e, Hn(t));
3515
- let Se;
3516
- const ee = re(null);
3517
- function Ye(e) {
3479
+ }, bn = (e, t) => fn(e, cn(t));
3480
+ let He;
3481
+ const K = te(null);
3482
+ function Xe(e) {
3518
3483
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3519
3484
  }
3520
- function se(e, t = R().fallbackLocale) {
3521
- const r = Ye(e);
3522
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
3485
+ function ie(e, t = C().fallbackLocale) {
3486
+ const r = Xe(e);
3487
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
3523
3488
  }
3524
- function A() {
3525
- return Se != null ? Se : void 0;
3489
+ function B() {
3490
+ return He ?? void 0;
3526
3491
  }
3527
- ee.subscribe((e) => {
3528
- Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3492
+ K.subscribe((e) => {
3493
+ He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3529
3494
  });
3530
- const Pn = (e) => {
3531
- if (e && pn(e) && Te(e)) {
3532
- const { loadingDelay: t } = R();
3495
+ const gn = (e) => {
3496
+ if (e && rn(e) && ve(e)) {
3497
+ const { loadingDelay: t } = C();
3533
3498
  let r;
3534
- return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
3535
- () => pe.set(!0),
3499
+ return typeof window < "u" && B() != null && t ? r = window.setTimeout(
3500
+ () => ce.set(!0),
3536
3501
  t
3537
- ) : pe.set(!0), Nt(e).then(() => {
3538
- ee.set(e);
3502
+ ) : ce.set(!0), vt(e).then(() => {
3503
+ K.set(e);
3539
3504
  }).finally(() => {
3540
- clearTimeout(r), pe.set(!1);
3505
+ clearTimeout(r), ce.set(!1);
3541
3506
  });
3542
3507
  }
3543
- return ee.set(e);
3544
- }, G = An(Bn({}, ee), {
3545
- set: Pn
3546
- }), oe = (e) => {
3508
+ return K.set(e);
3509
+ }, U = bn(dn({}, K), {
3510
+ set: gn
3511
+ }), se = (e) => {
3547
3512
  const t = /* @__PURE__ */ Object.create(null);
3548
3513
  return (n) => {
3549
3514
  const i = JSON.stringify(n);
3550
3515
  return i in t ? t[i] : t[i] = e(n);
3551
3516
  };
3552
3517
  };
3553
- var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, we = (e, t) => {
3518
+ var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
3554
3519
  for (var r in t || (t = {}))
3555
- Ot.call(t, r) && Ke(e, r, t[r]);
3556
- if (te)
3557
- for (var r of te(t))
3558
- It.call(t, r) && Ke(e, r, t[r]);
3520
+ Ht.call(t, r) && We(e, r, t[r]);
3521
+ if (ee)
3522
+ for (var r of ee(t))
3523
+ Tt.call(t, r) && We(e, r, t[r]);
3559
3524
  return e;
3560
- }, D = (e, t) => {
3525
+ }, G = (e, t) => {
3561
3526
  var r = {};
3562
3527
  for (var n in e)
3563
- Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3564
- if (e != null && te)
3565
- for (var n of te(e))
3566
- t.indexOf(n) < 0 && It.call(e, n) && (r[n] = e[n]);
3528
+ Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3529
+ if (e != null && ee)
3530
+ for (var n of ee(e))
3531
+ t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
3567
3532
  return r;
3568
3533
  };
3569
- const W = (e, t) => {
3570
- const { formats: r } = R();
3534
+ const X = (e, t) => {
3535
+ const { formats: r } = C();
3571
3536
  if (e in r && t in r[e])
3572
3537
  return r[e][t];
3573
3538
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3574
- }, On = oe(
3539
+ }, xn = se(
3575
3540
  (e) => {
3576
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3541
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3577
3542
  if (r == null)
3578
3543
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3579
- return n && (i = W("number", n)), new Intl.NumberFormat(r, i);
3544
+ return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
3580
3545
  }
3581
- ), In = oe(
3546
+ ), yn = se(
3582
3547
  (e) => {
3583
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3548
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3584
3549
  if (r == null)
3585
3550
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3586
- return n ? i = W("date", n) : Object.keys(i).length === 0 && (i = W("date", "short")), new Intl.DateTimeFormat(r, i);
3551
+ return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
3587
3552
  }
3588
- ), wn = oe(
3553
+ ), _n = se(
3589
3554
  (e) => {
3590
- var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
3555
+ var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
3591
3556
  if (r == null)
3592
3557
  throw new Error(
3593
3558
  '[svelte-i18n] A "locale" must be set to format time values'
3594
3559
  );
3595
- return n ? i = W("time", n) : Object.keys(i).length === 0 && (i = W("time", "short")), new Intl.DateTimeFormat(r, i);
3560
+ return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
3596
3561
  }
3597
- ), $n = (e = {}) => {
3562
+ ), vn = (e = {}) => {
3598
3563
  var t = e, {
3599
- locale: r = A()
3600
- } = t, n = D(t, [
3564
+ locale: r = B()
3565
+ } = t, n = G(t, [
3601
3566
  "locale"
3602
3567
  ]);
3603
- return On(we({ locale: r }, n));
3604
- }, Ln = (e = {}) => {
3568
+ return xn(Ne({ locale: r }, n));
3569
+ }, Hn = (e = {}) => {
3605
3570
  var t = e, {
3606
- locale: r = A()
3607
- } = t, n = D(t, [
3571
+ locale: r = B()
3572
+ } = t, n = G(t, [
3608
3573
  "locale"
3609
3574
  ]);
3610
- return In(we({ locale: r }, n));
3611
- }, Mn = (e = {}) => {
3575
+ return yn(Ne({ locale: r }, n));
3576
+ }, Tn = (e = {}) => {
3612
3577
  var t = e, {
3613
- locale: r = A()
3614
- } = t, n = D(t, [
3578
+ locale: r = B()
3579
+ } = t, n = G(t, [
3615
3580
  "locale"
3616
3581
  ]);
3617
- return wn(we({ locale: r }, n));
3618
- }, Cn = oe(
3582
+ return _n(Ne({ locale: r }, n));
3583
+ }, Sn = se(
3619
3584
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3620
- (e, t = A()) => new un(e, t, R().formats, {
3621
- ignoreTag: R().ignoreTag
3585
+ (e, t = B()) => new qr(e, t, C().formats, {
3586
+ ignoreTag: C().ignoreTag
3622
3587
  })
3623
- ), Rn = (e, t = {}) => {
3588
+ ), Bn = (e, t = {}) => {
3624
3589
  var r, n, i, s;
3625
- let o = t;
3626
- typeof e == "object" && (o = e, e = o.id);
3590
+ let u = t;
3591
+ typeof e == "object" && (u = e, e = u.id);
3627
3592
  const {
3628
- values: h,
3629
- locale: u = A(),
3593
+ values: o,
3594
+ locale: f = B(),
3630
3595
  default: a
3631
- } = o;
3632
- if (u == null)
3596
+ } = u;
3597
+ if (f == null)
3633
3598
  throw new Error(
3634
3599
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3635
3600
  );
3636
- let l = St(e, u);
3637
- if (!l)
3638
- l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3639
- else if (typeof l != "string")
3640
- return console.warn(
3641
- `[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.`
3642
- ), l;
3601
+ let h = Et(e, f);
3643
3602
  if (!h)
3644
- return l;
3645
- let f = l;
3603
+ h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3604
+ else if (typeof h != "string")
3605
+ return console.warn(
3606
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3607
+ ), h;
3608
+ if (!o)
3609
+ return h;
3610
+ let l = h;
3646
3611
  try {
3647
- f = Cn(l, u).format(h);
3612
+ l = Sn(h, f).format(o);
3648
3613
  } catch (c) {
3649
3614
  c instanceof Error && console.warn(
3650
3615
  `[svelte-i18n] Message "${e}" has syntax error:`,
3651
3616
  c.message
3652
3617
  );
3653
3618
  }
3654
- return f;
3655
- }, 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()) => St(e, t), jn = U([G, Z], () => Rn);
3656
- U([G], () => Un);
3657
- U([G], () => Gn);
3658
- U([G], () => Dn);
3659
- U([G, Z], () => Fn);
3660
- function et(e, t) {
3661
- At(e, t);
3662
- }
3663
- function Vn(e) {
3664
- G.set(e);
3665
- }
3666
- const tt = {
3619
+ return l;
3620
+ }, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
3621
+ R([U], () => An);
3622
+ R([U], () => Pn);
3623
+ R([U], () => Nn);
3624
+ R([U, z], () => On);
3625
+ function ze(e, t) {
3626
+ yt(e, t);
3627
+ }
3628
+ function wn(e) {
3629
+ U.set(e);
3630
+ }
3631
+ const Ze = {
3667
3632
  en: {
3668
3633
  errServerUnavailable: "Server unavailable",
3669
3634
  errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
@@ -3677,51 +3642,51 @@ const tt = {
3677
3642
  msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
3678
3643
  }
3679
3644
  };
3680
- function kn(e) {
3645
+ function $n(e) {
3681
3646
  let t;
3682
3647
  return {
3683
3648
  c() {
3684
- t = ot("div");
3649
+ t = Ke("div");
3685
3650
  },
3686
3651
  m(r, n) {
3687
- st(r, t, n);
3652
+ Ye(r, t, n);
3688
3653
  },
3689
3654
  p: _,
3690
3655
  i: _,
3691
3656
  o: _,
3692
3657
  d(r) {
3693
- r && Ae(t);
3658
+ r && Se(t);
3694
3659
  }
3695
3660
  };
3696
3661
  }
3697
- function Xn(e, t, r) {
3662
+ function Ln(e, t, r) {
3698
3663
  let n;
3699
- Ut(e, jn, (f) => r(4, n = f));
3700
- let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: h = "" } = t;
3701
- const u = () => {
3702
- fetch(h).then((c) => c.json()).then((c) => {
3664
+ Bt(e, In, (l) => r(4, n = l));
3665
+ let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: o = "" } = t;
3666
+ const f = () => {
3667
+ fetch(o).then((c) => c.json()).then((c) => {
3703
3668
  Object.keys(c).forEach((b) => {
3704
- et(b, c[b]);
3669
+ ze(b, c[b]);
3705
3670
  });
3706
3671
  }).catch((c) => {
3707
3672
  console.log(c);
3708
3673
  });
3709
3674
  };
3710
- Object.keys(tt).forEach((f) => {
3711
- et(f, tt[f]);
3675
+ Object.keys(Ze).forEach((l) => {
3676
+ ze(l, Ze[l]);
3712
3677
  });
3713
3678
  const a = () => {
3714
- Vn(i);
3715
- }, l = () => {
3716
- let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3679
+ wn(i);
3680
+ }, h = () => {
3681
+ let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
3717
3682
  method: "POST",
3718
3683
  headers: {
3719
3684
  "Content-Type": "application/json",
3720
3685
  Accept: "application/json"
3721
3686
  },
3722
- body: JSON.stringify({ hashKey: o })
3687
+ body: JSON.stringify({ hashKey: u })
3723
3688
  };
3724
- fetch(f.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3689
+ fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
3725
3690
  {
3726
3691
  type: "WidgetNotification",
3727
3692
  data: {
@@ -3761,18 +3726,18 @@ function Xn(e, t, r) {
3761
3726
  );
3762
3727
  });
3763
3728
  };
3764
- return e.$$set = (f) => {
3765
- "lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, h = f.translationurl);
3729
+ return e.$$set = (l) => {
3730
+ "lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, u = l.key), "translationurl" in l && r(3, o = l.translationurl);
3766
3731
  }, e.$$.update = () => {
3767
3732
  e.$$.dirty & /*lang*/
3768
3733
  1 && i && a(), e.$$.dirty & /*translationurl*/
3769
- 8 && h && u(), e.$$.dirty & /*endpoint, key*/
3770
- 6 && s && o && l();
3771
- }, [i, s, o, h];
3734
+ 8 && o && f(), e.$$.dirty & /*endpoint, key*/
3735
+ 6 && s && u && h();
3736
+ }, [i, s, u, o];
3772
3737
  }
3773
- class Wn extends Kt {
3738
+ class Mn extends Ft {
3774
3739
  constructor(t) {
3775
- super(), qt(this, t, Xn, kn, nt, {
3740
+ super(), Gt(this, t, Ln, $n, Je, {
3776
3741
  lang: 0,
3777
3742
  endpoint: 1,
3778
3743
  key: 2,
@@ -3783,28 +3748,28 @@ class Wn extends Kt {
3783
3748
  return this.$$.ctx[0];
3784
3749
  }
3785
3750
  set lang(t) {
3786
- this.$$set({ lang: t }), w();
3751
+ this.$$set({ lang: t }), I();
3787
3752
  }
3788
3753
  get endpoint() {
3789
3754
  return this.$$.ctx[1];
3790
3755
  }
3791
3756
  set endpoint(t) {
3792
- this.$$set({ endpoint: t }), w();
3757
+ this.$$set({ endpoint: t }), I();
3793
3758
  }
3794
3759
  get key() {
3795
3760
  return this.$$.ctx[2];
3796
3761
  }
3797
3762
  set key(t) {
3798
- this.$$set({ key: t }), w();
3763
+ this.$$set({ key: t }), I();
3799
3764
  }
3800
3765
  get translationurl() {
3801
3766
  return this.$$.ctx[3];
3802
3767
  }
3803
3768
  set translationurl(t) {
3804
- this.$$set({ translationurl: t }), w();
3769
+ this.$$set({ translationurl: t }), I();
3805
3770
  }
3806
3771
  }
3807
- Yt(Wn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3772
+ Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
3808
3773
  export {
3809
- Wn as default
3774
+ Mn as P
3810
3775
  };