@everymatrix/player-withdrawal 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,79 +1,50 @@
1
- var yr = Object.defineProperty, gr = Object.defineProperties;
2
- var vr = Object.getOwnPropertyDescriptors;
3
- var nt = Object.getOwnPropertySymbols;
4
- var _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? yr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
6
- for (var r in t || (t = {}))
7
- _r.call(t, r) && Te(e, r, t[r]);
8
- if (nt)
9
- for (var r of nt(t))
10
- Er.call(t, r) && Te(e, r, t[r]);
11
- return e;
12
- }, ot = (e, t) => gr(e, vr(t));
13
- var B = (e, t, r) => Te(e, typeof t != "symbol" ? t + "" : t, r);
14
- var st = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
16
- try {
17
- a(r.next(h));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (h) => {
22
- try {
23
- a(r.throw(h));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function O() {
1
+ function A() {
31
2
  }
32
- function Nt(e) {
3
+ function St(e) {
33
4
  return e();
34
5
  }
35
- function at() {
6
+ function Ke() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ae(e) {
39
- e.forEach(Nt);
9
+ function se(e) {
10
+ e.forEach(St);
40
11
  }
41
- function qe(e) {
12
+ function Ze(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Ct(e, t) {
15
+ function Tt(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let ce;
48
- function ut(e, t) {
49
- return e === t ? !0 : (ce || (ce = document.createElement("a")), ce.href = t, e === ce.href);
18
+ let le;
19
+ function et(e, t) {
20
+ return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
50
21
  }
51
- function xr(e) {
22
+ function ur(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function Lt(e, ...t) {
25
+ function Ht(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return O;
29
+ return A;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function wr(e, t, r) {
64
- e.$$.on_destroy.push(Lt(t, r));
34
+ function hr(e, t, r) {
35
+ e.$$.on_destroy.push(Ht(t, r));
65
36
  }
66
37
  function x(e, t) {
67
38
  e.appendChild(t);
68
39
  }
69
- function Sr(e, t, r) {
70
- const n = Tr(e);
40
+ function lr(e, t, r) {
41
+ const n = fr(e);
71
42
  if (!n.getElementById(t)) {
72
- const i = M("style");
73
- i.id = t, i.textContent = r, Hr(n, i);
43
+ const i = L("style");
44
+ i.id = t, i.textContent = r, cr(n, i);
74
45
  }
75
46
  }
76
- function Tr(e) {
47
+ function fr(e) {
77
48
  if (!e) return document;
78
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
50
  return t && /** @type {ShadowRoot} */
@@ -82,45 +53,45 @@ function Tr(e) {
82
53
  t
83
54
  ) : e.ownerDocument;
84
55
  }
85
- function Hr(e, t) {
56
+ function cr(e, t) {
86
57
  return x(
87
58
  /** @type {Document} */
88
59
  e.head || e,
89
60
  t
90
61
  ), t.sheet;
91
62
  }
92
- function ue(e, t, r) {
63
+ function ae(e, t, r) {
93
64
  e.insertBefore(t, r || null);
94
65
  }
95
- function q(e) {
66
+ function J(e) {
96
67
  e.parentNode && e.parentNode.removeChild(e);
97
68
  }
98
- function M(e) {
69
+ function L(e) {
99
70
  return document.createElement(e);
100
71
  }
101
- function F(e) {
72
+ function G(e) {
102
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
74
  }
104
- function ne(e) {
75
+ function re(e) {
105
76
  return document.createTextNode(e);
106
77
  }
107
- function Le() {
108
- return ne(" ");
78
+ function Ie() {
79
+ return re(" ");
109
80
  }
110
- function Br(e, t, r, n) {
81
+ function dr(e, t, r, n) {
111
82
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
112
83
  }
113
84
  function E(e, t, r) {
114
85
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
115
86
  }
116
- function Pr(e) {
87
+ function pr(e) {
117
88
  return Array.from(e.childNodes);
118
89
  }
119
- function Ye(e, t) {
90
+ function Qe(e, t) {
120
91
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
121
92
  t);
122
93
  }
123
- function Ar(e) {
94
+ function mr(e) {
124
95
  const t = {};
125
96
  return e.childNodes.forEach(
126
97
  /** @param {Element} node */
@@ -129,245 +100,241 @@ function Ar(e) {
129
100
  }
130
101
  ), t;
131
102
  }
132
- let ie;
133
- function re(e) {
134
- ie = e;
103
+ let ne;
104
+ function te(e) {
105
+ ne = e;
135
106
  }
136
- function Or() {
137
- if (!ie) throw new Error("Function called outside component initialization");
138
- return ie;
107
+ function br() {
108
+ if (!ne) throw new Error("Function called outside component initialization");
109
+ return ne;
139
110
  }
140
- function Ir(e) {
141
- Or().$$.on_mount.push(e);
111
+ function yr(e) {
112
+ br().$$.on_mount.push(e);
142
113
  }
143
- const W = [], Me = [];
144
- let V = [];
145
- const ht = [], Nr = /* @__PURE__ */ Promise.resolve();
146
- let Re = !1;
147
- function Cr() {
148
- Re || (Re = !0, Nr.then(A));
114
+ const k = [], Ne = [];
115
+ let W = [];
116
+ const tt = [], gr = /* @__PURE__ */ Promise.resolve();
117
+ let Ce = !1;
118
+ function vr() {
119
+ Ce || (Ce = !0, gr.then(P));
149
120
  }
150
- function $e(e) {
151
- V.push(e);
121
+ function Le(e) {
122
+ W.push(e);
152
123
  }
153
- const He = /* @__PURE__ */ new Set();
154
- let j = 0;
155
- function A() {
156
- if (j !== 0)
124
+ const Se = /* @__PURE__ */ new Set();
125
+ let F = 0;
126
+ function P() {
127
+ if (F !== 0)
157
128
  return;
158
- const e = ie;
129
+ const e = ne;
159
130
  do {
160
131
  try {
161
- for (; j < W.length; ) {
162
- const t = W[j];
163
- j++, re(t), Lr(t.$$);
132
+ for (; F < k.length; ) {
133
+ const t = k[F];
134
+ F++, te(t), _r(t.$$);
164
135
  }
165
136
  } catch (t) {
166
- throw W.length = 0, j = 0, t;
137
+ throw k.length = 0, F = 0, t;
167
138
  }
168
- for (re(null), W.length = 0, j = 0; Me.length; ) Me.pop()();
169
- for (let t = 0; t < V.length; t += 1) {
170
- const r = V[t];
171
- He.has(r) || (He.add(r), r());
139
+ for (te(null), k.length = 0, F = 0; Ne.length; ) Ne.pop()();
140
+ for (let t = 0; t < W.length; t += 1) {
141
+ const r = W[t];
142
+ Se.has(r) || (Se.add(r), r());
172
143
  }
173
- V.length = 0;
174
- } while (W.length);
175
- for (; ht.length; )
176
- ht.pop()();
177
- Re = !1, He.clear(), re(e);
144
+ W.length = 0;
145
+ } while (k.length);
146
+ for (; tt.length; )
147
+ tt.pop()();
148
+ Ce = !1, Se.clear(), te(e);
178
149
  }
179
- function Lr(e) {
150
+ function _r(e) {
180
151
  if (e.fragment !== null) {
181
- e.update(), ae(e.before_update);
152
+ e.update(), se(e.before_update);
182
153
  const t = e.dirty;
183
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
154
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
184
155
  }
185
156
  }
186
- function Mr(e) {
157
+ function Er(e) {
187
158
  const t = [], r = [];
188
- V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
159
+ W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
189
160
  }
190
- const Rr = /* @__PURE__ */ new Set();
191
- function $r(e, t) {
192
- e && e.i && (Rr.delete(e), e.i(t));
161
+ const xr = /* @__PURE__ */ new Set();
162
+ function wr(e, t) {
163
+ e && e.i && (xr.delete(e), e.i(t));
193
164
  }
194
- function Ur(e, t, r) {
165
+ function Sr(e, t, r) {
195
166
  const { fragment: n, after_update: i } = e.$$;
196
- n && n.m(t, r), $e(() => {
197
- const o = e.$$.on_mount.map(Nt).filter(qe);
198
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
199
- }), i.forEach($e);
167
+ n && n.m(t, r), Le(() => {
168
+ const o = e.$$.on_mount.map(St).filter(Ze);
169
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
170
+ }), i.forEach(Le);
200
171
  }
201
- function Dr(e, t) {
172
+ function Tr(e, t) {
202
173
  const r = e.$$;
203
- r.fragment !== null && (Mr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
174
+ r.fragment !== null && (Er(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
204
175
  }
205
- function Gr(e, t) {
206
- e.$$.dirty[0] === -1 && (W.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ function Hr(e, t) {
177
+ e.$$.dirty[0] === -1 && (k.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
207
178
  }
208
- function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
209
- const h = ie;
210
- re(e);
179
+ function Br(e, t, r, n, i, o, a = null, s = [-1]) {
180
+ const l = ne;
181
+ te(e);
211
182
  const u = e.$$ = {
212
183
  fragment: null,
213
184
  ctx: [],
214
185
  // state
215
186
  props: o,
216
- update: O,
187
+ update: A,
217
188
  not_equal: i,
218
- bound: at(),
189
+ bound: Ke(),
219
190
  // lifecycle
220
191
  on_mount: [],
221
192
  on_destroy: [],
222
193
  on_disconnect: [],
223
194
  before_update: [],
224
195
  after_update: [],
225
- context: new Map(t.context || (h ? h.$$.context : [])),
196
+ context: new Map(t.context || (l ? l.$$.context : [])),
226
197
  // everything else
227
- callbacks: at(),
228
- dirty: a,
198
+ callbacks: Ke(),
199
+ dirty: s,
229
200
  skip_bound: !1,
230
- root: t.target || h.$$.root
201
+ root: t.target || l.$$.root
231
202
  };
232
- s && s(u.root);
233
- let l = !1;
234
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
235
- const v = p.length ? p[0] : f;
236
- return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && Gr(e, c)), f;
237
- }) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
203
+ a && a(u.root);
204
+ let h = !1;
205
+ if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
206
+ const v = d.length ? d[0] : c;
207
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && Hr(e, f)), c;
208
+ }), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
238
209
  if (t.hydrate) {
239
- const c = Pr(t.target);
240
- u.fragment && u.fragment.l(c), c.forEach(q);
210
+ const f = pr(t.target);
211
+ u.fragment && u.fragment.l(f), f.forEach(J);
241
212
  } else
242
213
  u.fragment && u.fragment.c();
243
- t.intro && $r(e.$$.fragment), Ur(e, t.target, t.anchor), A();
214
+ t.intro && wr(e.$$.fragment), Sr(e, t.target, t.anchor), P();
244
215
  }
245
- re(h);
246
- }
247
- let Mt;
248
- typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
249
- constructor(t, r, n) {
250
- super();
251
- /** The Svelte component constructor */
252
- B(this, "$$ctor");
253
- /** Slots */
254
- B(this, "$$s");
255
- /** The Svelte component instance */
256
- B(this, "$$c");
257
- /** Whether or not the custom element is connected */
258
- B(this, "$$cn", !1);
259
- /** Component props data */
260
- B(this, "$$d", {});
261
- /** `true` if currently in the process of reflecting component props back to attributes */
262
- B(this, "$$r", !1);
263
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
264
- B(this, "$$p_d", {});
265
- /** @type {Record<string, Function[]>} Event listeners */
266
- B(this, "$$l", {});
267
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
268
- B(this, "$$l_u", /* @__PURE__ */ new Map());
269
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
216
+ te(l);
217
+ }
218
+ let Bt;
219
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
220
+ /** The Svelte component constructor */
221
+ $$ctor;
222
+ /** Slots */
223
+ $$s;
224
+ /** The Svelte component instance */
225
+ $$c;
226
+ /** Whether or not the custom element is connected */
227
+ $$cn = !1;
228
+ /** Component props data */
229
+ $$d = {};
230
+ /** `true` if currently in the process of reflecting component props back to attributes */
231
+ $$r = !1;
232
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
233
+ $$p_d = {};
234
+ /** @type {Record<string, Function[]>} Event listeners */
235
+ $$l = {};
236
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
237
+ $$l_u = /* @__PURE__ */ new Map();
238
+ constructor(e, t, r) {
239
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
270
240
  }
271
- addEventListener(t, r, n) {
272
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
273
- const i = this.$$c.$on(t, r);
274
- this.$$l_u.set(r, i);
241
+ addEventListener(e, t, r) {
242
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
243
+ const n = this.$$c.$on(e, t);
244
+ this.$$l_u.set(t, n);
275
245
  }
276
- super.addEventListener(t, r, n);
246
+ super.addEventListener(e, t, r);
277
247
  }
278
- removeEventListener(t, r, n) {
279
- if (super.removeEventListener(t, r, n), this.$$c) {
280
- const i = this.$$l_u.get(r);
281
- i && (i(), this.$$l_u.delete(r));
248
+ removeEventListener(e, t, r) {
249
+ if (super.removeEventListener(e, t, r), this.$$c) {
250
+ const n = this.$$l_u.get(t);
251
+ n && (n(), this.$$l_u.delete(t));
282
252
  }
283
253
  }
284
- connectedCallback() {
285
- return st(this, null, function* () {
286
- if (this.$$cn = !0, !this.$$c) {
287
- let t = function(o) {
288
- return () => {
289
- let s;
290
- return {
291
- c: function() {
292
- s = M("slot"), o !== "default" && E(s, "name", o);
293
- },
294
- /**
295
- * @param {HTMLElement} target
296
- * @param {HTMLElement} [anchor]
297
- */
298
- m: function(u, l) {
299
- ue(u, s, l);
300
- },
301
- d: function(u) {
302
- u && q(s);
303
- }
304
- };
254
+ async connectedCallback() {
255
+ if (this.$$cn = !0, !this.$$c) {
256
+ let e = function(i) {
257
+ return () => {
258
+ let o;
259
+ return {
260
+ c: function() {
261
+ o = L("slot"), i !== "default" && E(o, "name", i);
262
+ },
263
+ /**
264
+ * @param {HTMLElement} target
265
+ * @param {HTMLElement} [anchor]
266
+ */
267
+ m: function(l, u) {
268
+ ae(l, o, u);
269
+ },
270
+ d: function(l) {
271
+ l && J(o);
272
+ }
305
273
  };
306
274
  };
307
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
308
- return;
309
- const r = {}, n = Ar(this);
310
- for (const o of this.$$s)
311
- o in n && (r[o] = [t(o)]);
312
- for (const o of this.attributes) {
313
- const s = this.$$g_p(o.name);
314
- s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
275
+ };
276
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
277
+ return;
278
+ const t = {}, r = mr(this);
279
+ for (const i of this.$$s)
280
+ i in r && (t[i] = [e(i)]);
281
+ for (const i of this.attributes) {
282
+ const o = this.$$g_p(i.name);
283
+ o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
284
+ }
285
+ for (const i in this.$$p_d)
286
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
287
+ this.$$c = new this.$$ctor({
288
+ target: this.shadowRoot || this,
289
+ props: {
290
+ ...this.$$d,
291
+ $$slots: t,
292
+ $$scope: {
293
+ ctx: []
294
+ }
315
295
  }
316
- for (const o in this.$$p_d)
317
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
318
- this.$$c = new this.$$ctor({
319
- target: this.shadowRoot || this,
320
- props: ot(it({}, this.$$d), {
321
- $$slots: r,
322
- $$scope: {
323
- ctx: []
324
- }
325
- })
326
- });
327
- const i = () => {
328
- this.$$r = !0;
329
- for (const o in this.$$p_d)
330
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
331
- const s = de(
332
- o,
333
- this.$$d[o],
334
- this.$$p_d,
335
- "toAttribute"
336
- );
337
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
338
- }
339
- this.$$r = !1;
340
- };
341
- this.$$c.$$.after_update.push(i), i();
342
- for (const o in this.$$l)
343
- for (const s of this.$$l[o]) {
344
- const a = this.$$c.$on(o, s);
345
- this.$$l_u.set(s, a);
296
+ });
297
+ const n = () => {
298
+ this.$$r = !0;
299
+ for (const i in this.$$p_d)
300
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
301
+ const o = de(
302
+ i,
303
+ this.$$d[i],
304
+ this.$$p_d,
305
+ "toAttribute"
306
+ );
307
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
346
308
  }
347
- this.$$l = {};
348
- }
349
- });
309
+ this.$$r = !1;
310
+ };
311
+ this.$$c.$$.after_update.push(n), n();
312
+ for (const i in this.$$l)
313
+ for (const o of this.$$l[i]) {
314
+ const a = this.$$c.$on(i, o);
315
+ this.$$l_u.set(o, a);
316
+ }
317
+ this.$$l = {};
318
+ }
350
319
  }
351
320
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
352
321
  // and setting attributes through setAttribute etc, this is helpful
353
- attributeChangedCallback(t, r, n) {
354
- var i;
355
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
322
+ attributeChangedCallback(e, t, r) {
323
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
356
324
  }
357
325
  disconnectedCallback() {
358
326
  this.$$cn = !1, Promise.resolve().then(() => {
359
327
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
360
328
  });
361
329
  }
362
- $$g_p(t) {
330
+ $$g_p(e) {
363
331
  return Object.keys(this.$$p_d).find(
364
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
365
- ) || t;
332
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
333
+ ) || e;
366
334
  }
367
335
  });
368
336
  function de(e, t, r, n) {
369
- var o;
370
- const i = (o = r[e]) == null ? void 0 : o.type;
337
+ const i = r[e]?.type;
371
338
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
372
339
  return t;
373
340
  if (n === "toAttribute")
@@ -378,7 +345,7 @@ function de(e, t, r, n) {
378
345
  case "Boolean":
379
346
  return t ? "" : null;
380
347
  case "Number":
381
- return t == null ? null : t;
348
+ return t ?? null;
382
349
  default:
383
350
  return t;
384
351
  }
@@ -395,59 +362,55 @@ function de(e, t, r, n) {
395
362
  return t;
396
363
  }
397
364
  }
398
- function jr(e, t, r, n, i, o) {
399
- let s = class extends Mt {
365
+ function Pr(e, t, r, n, i, o) {
366
+ let a = class extends Bt {
400
367
  constructor() {
401
368
  super(e, r, i), this.$$p_d = t;
402
369
  }
403
370
  static get observedAttributes() {
404
371
  return Object.keys(t).map(
405
- (a) => (t[a].attribute || a).toLowerCase()
372
+ (s) => (t[s].attribute || s).toLowerCase()
406
373
  );
407
374
  }
408
375
  };
409
- return Object.keys(t).forEach((a) => {
410
- Object.defineProperty(s.prototype, a, {
376
+ return Object.keys(t).forEach((s) => {
377
+ Object.defineProperty(a.prototype, s, {
411
378
  get() {
412
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
379
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
413
380
  },
414
- set(h) {
415
- var u;
416
- h = de(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
381
+ set(l) {
382
+ l = de(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
417
383
  }
418
384
  });
419
- }), n.forEach((a) => {
420
- Object.defineProperty(s.prototype, a, {
385
+ }), n.forEach((s) => {
386
+ Object.defineProperty(a.prototype, s, {
421
387
  get() {
422
- var h;
423
- return (h = this.$$c) == null ? void 0 : h[a];
388
+ return this.$$c?.[s];
424
389
  }
425
390
  });
426
391
  }), e.element = /** @type {any} */
427
- s, s;
428
- }
429
- class kr {
430
- constructor() {
431
- /**
432
- * ### PRIVATE API
433
- *
434
- * Do not use, may change at any time
435
- *
436
- * @type {any}
437
- */
438
- B(this, "$$");
439
- /**
440
- * ### PRIVATE API
441
- *
442
- * Do not use, may change at any time
443
- *
444
- * @type {any}
445
- */
446
- B(this, "$$set");
447
- }
392
+ a, a;
393
+ }
394
+ class Ar {
395
+ /**
396
+ * ### PRIVATE API
397
+ *
398
+ * Do not use, may change at any time
399
+ *
400
+ * @type {any}
401
+ */
402
+ $$ = void 0;
403
+ /**
404
+ * ### PRIVATE API
405
+ *
406
+ * Do not use, may change at any time
407
+ *
408
+ * @type {any}
409
+ */
410
+ $$set = void 0;
448
411
  /** @returns {void} */
449
412
  $destroy() {
450
- Dr(this, 1), this.$destroy = O;
413
+ Tr(this, 1), this.$destroy = A;
451
414
  }
452
415
  /**
453
416
  * @template {Extract<keyof Events, string>} K
@@ -456,8 +419,8 @@ class kr {
456
419
  * @returns {() => void}
457
420
  */
458
421
  $on(t, r) {
459
- if (!qe(r))
460
- return O;
422
+ if (!Ze(r))
423
+ return A;
461
424
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
462
425
  return n.push(r), () => {
463
426
  const i = n.indexOf(r);
@@ -469,22 +432,22 @@ class kr {
469
432
  * @returns {void}
470
433
  */
471
434
  $set(t) {
472
- this.$$set && !xr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
435
+ this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
473
436
  }
474
437
  }
475
- const Wr = "4";
476
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wr);
477
- var Ue = function(e, t) {
478
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
438
+ const Or = "4";
439
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
440
+ var Me = function(e, t) {
441
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
479
442
  r.__proto__ = n;
480
443
  } || function(r, n) {
481
444
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
482
- }, Ue(e, t);
445
+ }, Me(e, t);
483
446
  };
484
- function R(e, t) {
447
+ function M(e, t) {
485
448
  if (typeof t != "function" && t !== null)
486
449
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
487
- Ue(e, t);
450
+ Me(e, t);
488
451
  function r() {
489
452
  this.constructor = e;
490
453
  }
@@ -499,7 +462,7 @@ var g = function() {
499
462
  return t;
500
463
  }, g.apply(this, arguments);
501
464
  };
502
- function Vr(e, t) {
465
+ function Ir(e, t) {
503
466
  var r = {};
504
467
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
505
468
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -507,7 +470,7 @@ function Vr(e, t) {
507
470
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
508
471
  return r;
509
472
  }
510
- function De(e) {
473
+ function Re(e) {
511
474
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
512
475
  if (r) return r.call(e);
513
476
  if (e && typeof e.length == "number") return {
@@ -517,38 +480,38 @@ function De(e) {
517
480
  };
518
481
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
519
482
  }
520
- function Ge(e, t) {
483
+ function $e(e, t) {
521
484
  var r = typeof Symbol == "function" && e[Symbol.iterator];
522
485
  if (!r) return e;
523
- var n = r.call(e), i, o = [], s;
486
+ var n = r.call(e), i, o = [], a;
524
487
  try {
525
488
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
526
- } catch (a) {
527
- s = { error: a };
489
+ } catch (s) {
490
+ a = { error: s };
528
491
  } finally {
529
492
  try {
530
493
  i && !i.done && (r = n.return) && r.call(n);
531
494
  } finally {
532
- if (s) throw s.error;
495
+ if (a) throw a.error;
533
496
  }
534
497
  }
535
498
  return o;
536
499
  }
537
- function X(e, t, r) {
500
+ function V(e, t, r) {
538
501
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
539
502
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
540
503
  return e.concat(o || Array.prototype.slice.call(t));
541
504
  }
542
- function L(e) {
505
+ function C(e) {
543
506
  return typeof e == "function";
544
507
  }
545
- function Rt(e) {
508
+ function Pt(e) {
546
509
  var t = function(n) {
547
510
  Error.call(n), n.stack = new Error().stack;
548
511
  }, r = e(t);
549
512
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
550
513
  }
551
- var Be = Rt(function(e) {
514
+ var Te = Pt(function(e) {
552
515
  return function(r) {
553
516
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
554
517
  ` + r.map(function(n, i) {
@@ -557,13 +520,13 @@ var Be = Rt(function(e) {
557
520
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
558
521
  };
559
522
  });
560
- function Fe(e, t) {
523
+ function Ue(e, t) {
561
524
  if (e) {
562
525
  var r = e.indexOf(t);
563
526
  0 <= r && e.splice(r, 1);
564
527
  }
565
528
  }
566
- var _e = function() {
529
+ var ve = function() {
567
530
  function e(t) {
568
531
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
569
532
  }
@@ -571,62 +534,62 @@ var _e = function() {
571
534
  var t, r, n, i, o;
572
535
  if (!this.closed) {
573
536
  this.closed = !0;
574
- var s = this._parentage;
575
- if (s)
576
- if (this._parentage = null, Array.isArray(s))
537
+ var a = this._parentage;
538
+ if (a)
539
+ if (this._parentage = null, Array.isArray(a))
577
540
  try {
578
- for (var a = De(s), h = a.next(); !h.done; h = a.next()) {
579
- var u = h.value;
541
+ for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
542
+ var u = l.value;
580
543
  u.remove(this);
581
544
  }
582
545
  } catch (m) {
583
546
  t = { error: m };
584
547
  } finally {
585
548
  try {
586
- h && !h.done && (r = a.return) && r.call(a);
549
+ l && !l.done && (r = s.return) && r.call(s);
587
550
  } finally {
588
551
  if (t) throw t.error;
589
552
  }
590
553
  }
591
554
  else
592
- s.remove(this);
593
- var l = this.initialTeardown;
594
- if (L(l))
555
+ a.remove(this);
556
+ var h = this.initialTeardown;
557
+ if (C(h))
595
558
  try {
596
- l();
559
+ h();
597
560
  } catch (m) {
598
- o = m instanceof Be ? m.errors : [m];
561
+ o = m instanceof Te ? m.errors : [m];
599
562
  }
600
- var c = this._finalizers;
601
- if (c) {
563
+ var f = this._finalizers;
564
+ if (f) {
602
565
  this._finalizers = null;
603
566
  try {
604
- for (var f = De(c), p = f.next(); !p.done; p = f.next()) {
605
- var v = p.value;
567
+ for (var c = Re(f), d = c.next(); !d.done; d = c.next()) {
568
+ var v = d.value;
606
569
  try {
607
- lt(v);
570
+ rt(v);
608
571
  } catch (m) {
609
- o = o != null ? o : [], m instanceof Be ? o = X(X([], Ge(o)), Ge(m.errors)) : o.push(m);
572
+ o = o ?? [], m instanceof Te ? o = V(V([], $e(o)), $e(m.errors)) : o.push(m);
610
573
  }
611
574
  }
612
575
  } catch (m) {
613
576
  n = { error: m };
614
577
  } finally {
615
578
  try {
616
- p && !p.done && (i = f.return) && i.call(f);
579
+ d && !d.done && (i = c.return) && i.call(c);
617
580
  } finally {
618
581
  if (n) throw n.error;
619
582
  }
620
583
  }
621
584
  }
622
585
  if (o)
623
- throw new Be(o);
586
+ throw new Te(o);
624
587
  }
625
588
  }, e.prototype.add = function(t) {
626
589
  var r;
627
590
  if (t && t !== this)
628
591
  if (this.closed)
629
- lt(t);
592
+ rt(t);
630
593
  else {
631
594
  if (t instanceof e) {
632
595
  if (t.closed || t._hasParent(this))
@@ -643,56 +606,56 @@ var _e = function() {
643
606
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
644
607
  }, e.prototype._removeParent = function(t) {
645
608
  var r = this._parentage;
646
- r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
609
+ r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
647
610
  }, e.prototype.remove = function(t) {
648
611
  var r = this._finalizers;
649
- r && Fe(r, t), t instanceof e && t._removeParent(this);
612
+ r && Ue(r, t), t instanceof e && t._removeParent(this);
650
613
  }, e.EMPTY = function() {
651
614
  var t = new e();
652
615
  return t.closed = !0, t;
653
616
  }(), e;
654
- }(), $t = _e.EMPTY;
655
- function Ut(e) {
656
- return e instanceof _e || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
617
+ }(), At = ve.EMPTY;
618
+ function Ot(e) {
619
+ return e instanceof ve || e && "closed" in e && C(e.remove) && C(e.add) && C(e.unsubscribe);
657
620
  }
658
- function lt(e) {
659
- L(e) ? e() : e.unsubscribe();
621
+ function rt(e) {
622
+ C(e) ? e() : e.unsubscribe();
660
623
  }
661
- var Dt = {
624
+ var Nr = {
662
625
  onUnhandledError: null,
663
626
  onStoppedNotification: null,
664
627
  Promise: void 0,
665
628
  useDeprecatedSynchronousErrorHandling: !1,
666
629
  useDeprecatedNextContext: !1
667
- }, Xr = {
630
+ }, Cr = {
668
631
  setTimeout: function(e, t) {
669
632
  for (var r = [], n = 2; n < arguments.length; n++)
670
633
  r[n - 2] = arguments[n];
671
- return setTimeout.apply(void 0, X([e, t], Ge(r)));
634
+ return setTimeout.apply(void 0, V([e, t], $e(r)));
672
635
  },
673
636
  clearTimeout: function(e) {
674
637
  return clearTimeout(e);
675
638
  },
676
639
  delegate: void 0
677
640
  };
678
- function zr(e) {
679
- Xr.setTimeout(function() {
641
+ function Lr(e) {
642
+ Cr.setTimeout(function() {
680
643
  throw e;
681
644
  });
682
645
  }
683
- function ct() {
646
+ function nt() {
684
647
  }
685
- function me(e) {
648
+ function pe(e) {
686
649
  e();
687
650
  }
688
- var Gt = function(e) {
689
- R(t, e);
651
+ var It = function(e) {
652
+ M(t, e);
690
653
  function t(r) {
691
654
  var n = e.call(this) || this;
692
- return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = qr, n;
655
+ return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = $r, n;
693
656
  }
694
657
  return t.create = function(r, n, i) {
695
- return new je(r, n, i);
658
+ return new De(r, n, i);
696
659
  }, t.prototype.next = function(r) {
697
660
  this.isStopped || this._next(r);
698
661
  }, t.prototype.error = function(r) {
@@ -716,11 +679,7 @@ var Gt = function(e) {
716
679
  this.unsubscribe();
717
680
  }
718
681
  }, t;
719
- }(_e), Zr = Function.prototype.bind;
720
- function Pe(e, t) {
721
- return Zr.call(e, t);
722
- }
723
- var Qr = function() {
682
+ }(ve), Mr = function() {
724
683
  function e(t) {
725
684
  this.partialObserver = t;
726
685
  }
@@ -751,55 +710,43 @@ var Qr = function() {
751
710
  fe(r);
752
711
  }
753
712
  }, e;
754
- }(), je = function(e) {
755
- R(t, e);
713
+ }(), De = function(e) {
714
+ M(t, e);
756
715
  function t(r, n, i) {
757
- var o = e.call(this) || this, s;
758
- if (L(r) || !r)
759
- s = {
760
- next: r != null ? r : void 0,
761
- error: n != null ? n : void 0,
762
- complete: i != null ? i : void 0
763
- };
764
- else {
765
- var a;
766
- o && Dt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
767
- return o.unsubscribe();
768
- }, s = {
769
- next: r.next && Pe(r.next, a),
770
- error: r.error && Pe(r.error, a),
771
- complete: r.complete && Pe(r.complete, a)
772
- }) : s = r;
773
- }
774
- return o.destination = new Qr(s), o;
716
+ var o = e.call(this) || this, a;
717
+ return C(r) || !r ? a = {
718
+ next: r ?? void 0,
719
+ error: n ?? void 0,
720
+ complete: i ?? void 0
721
+ } : a = r, o.destination = new Mr(a), o;
775
722
  }
776
723
  return t;
777
- }(Gt);
724
+ }(It);
778
725
  function fe(e) {
779
- zr(e);
726
+ Lr(e);
780
727
  }
781
- function Jr(e) {
728
+ function Rr(e) {
782
729
  throw e;
783
730
  }
784
- var qr = {
731
+ var $r = {
785
732
  closed: !0,
786
- next: ct,
787
- error: Jr,
788
- complete: ct
789
- }, Yr = function() {
733
+ next: nt,
734
+ error: Rr,
735
+ complete: nt
736
+ }, Ur = function() {
790
737
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
791
738
  }();
792
- function Kr(e) {
739
+ function Dr(e) {
793
740
  return e;
794
741
  }
795
- function en(e) {
796
- return e.length === 0 ? Kr : e.length === 1 ? e[0] : function(r) {
742
+ function Gr(e) {
743
+ return e.length === 0 ? Dr : e.length === 1 ? e[0] : function(r) {
797
744
  return e.reduce(function(n, i) {
798
745
  return i(n);
799
746
  }, r);
800
747
  };
801
748
  }
802
- var ft = function() {
749
+ var it = function() {
803
750
  function e(t) {
804
751
  t && (this._subscribe = t);
805
752
  }
@@ -807,10 +754,10 @@ var ft = function() {
807
754
  var r = new e();
808
755
  return r.source = this, r.operator = t, r;
809
756
  }, e.prototype.subscribe = function(t, r, n) {
810
- var i = this, o = rn(t) ? t : new je(t, r, n);
811
- return me(function() {
812
- var s = i, a = s.operator, h = s.source;
813
- o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
757
+ var i = this, o = jr(t) ? t : new De(t, r, n);
758
+ return pe(function() {
759
+ var a = i, s = a.operator, l = a.source;
760
+ o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
814
761
  }), o;
815
762
  }, e.prototype._trySubscribe = function(t) {
816
763
  try {
@@ -820,37 +767,37 @@ var ft = function() {
820
767
  }
821
768
  }, e.prototype.forEach = function(t, r) {
822
769
  var n = this;
823
- return r = pt(r), new r(function(i, o) {
824
- var s = new je({
825
- next: function(a) {
770
+ return r = ot(r), new r(function(i, o) {
771
+ var a = new De({
772
+ next: function(s) {
826
773
  try {
827
- t(a);
828
- } catch (h) {
829
- o(h), s.unsubscribe();
774
+ t(s);
775
+ } catch (l) {
776
+ o(l), a.unsubscribe();
830
777
  }
831
778
  },
832
779
  error: o,
833
780
  complete: i
834
781
  });
835
- n.subscribe(s);
782
+ n.subscribe(a);
836
783
  });
837
784
  }, e.prototype._subscribe = function(t) {
838
785
  var r;
839
786
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
840
- }, e.prototype[Yr] = function() {
787
+ }, e.prototype[Ur] = function() {
841
788
  return this;
842
789
  }, e.prototype.pipe = function() {
843
790
  for (var t = [], r = 0; r < arguments.length; r++)
844
791
  t[r] = arguments[r];
845
- return en(t)(this);
792
+ return Gr(t)(this);
846
793
  }, e.prototype.toPromise = function(t) {
847
794
  var r = this;
848
- return t = pt(t), new t(function(n, i) {
795
+ return t = ot(t), new t(function(n, i) {
849
796
  var o;
850
- r.subscribe(function(s) {
851
- return o = s;
852
- }, function(s) {
853
- return i(s);
797
+ r.subscribe(function(a) {
798
+ return o = a;
799
+ }, function(a) {
800
+ return i(a);
854
801
  }, function() {
855
802
  return n(o);
856
803
  });
@@ -859,48 +806,48 @@ var ft = function() {
859
806
  return new e(t);
860
807
  }, e;
861
808
  }();
862
- function pt(e) {
809
+ function ot(e) {
863
810
  var t;
864
- return (t = e != null ? e : Dt.Promise) !== null && t !== void 0 ? t : Promise;
811
+ return (t = e ?? Nr.Promise) !== null && t !== void 0 ? t : Promise;
865
812
  }
866
- function tn(e) {
867
- return e && L(e.next) && L(e.error) && L(e.complete);
813
+ function Fr(e) {
814
+ return e && C(e.next) && C(e.error) && C(e.complete);
868
815
  }
869
- function rn(e) {
870
- return e && e instanceof Gt || tn(e) && Ut(e);
816
+ function jr(e) {
817
+ return e && e instanceof It || Fr(e) && Ot(e);
871
818
  }
872
- var nn = Rt(function(e) {
819
+ var kr = Pt(function(e) {
873
820
  return function() {
874
821
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
875
822
  };
876
- }), Ft = function(e) {
877
- R(t, e);
823
+ }), Nt = function(e) {
824
+ M(t, e);
878
825
  function t() {
879
826
  var r = e.call(this) || this;
880
827
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
881
828
  }
882
829
  return t.prototype.lift = function(r) {
883
- var n = new dt(this, this);
830
+ var n = new st(this, this);
884
831
  return n.operator = r, n;
885
832
  }, t.prototype._throwIfClosed = function() {
886
833
  if (this.closed)
887
- throw new nn();
834
+ throw new kr();
888
835
  }, t.prototype.next = function(r) {
889
836
  var n = this;
890
- me(function() {
837
+ pe(function() {
891
838
  var i, o;
892
839
  if (n._throwIfClosed(), !n.isStopped) {
893
840
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
894
841
  try {
895
- for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
896
- var h = a.value;
897
- h.next(r);
842
+ for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
843
+ var l = s.value;
844
+ l.next(r);
898
845
  }
899
846
  } catch (u) {
900
847
  i = { error: u };
901
848
  } finally {
902
849
  try {
903
- a && !a.done && (o = s.return) && o.call(s);
850
+ s && !s.done && (o = a.return) && o.call(a);
904
851
  } finally {
905
852
  if (i) throw i.error;
906
853
  }
@@ -909,7 +856,7 @@ var nn = Rt(function(e) {
909
856
  });
910
857
  }, t.prototype.error = function(r) {
911
858
  var n = this;
912
- me(function() {
859
+ pe(function() {
913
860
  if (n._throwIfClosed(), !n.isStopped) {
914
861
  n.hasError = n.isStopped = !0, n.thrownError = r;
915
862
  for (var i = n.observers; i.length; )
@@ -918,7 +865,7 @@ var nn = Rt(function(e) {
918
865
  });
919
866
  }, t.prototype.complete = function() {
920
867
  var r = this;
921
- me(function() {
868
+ pe(function() {
922
869
  if (r._throwIfClosed(), !r.isStopped) {
923
870
  r.isStopped = !0;
924
871
  for (var n = r.observers; n.length; )
@@ -939,21 +886,21 @@ var nn = Rt(function(e) {
939
886
  }, t.prototype._subscribe = function(r) {
940
887
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
941
888
  }, t.prototype._innerSubscribe = function(r) {
942
- var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
943
- return o || s ? $t : (this.currentObservers = null, a.push(r), new _e(function() {
944
- n.currentObservers = null, Fe(a, r);
889
+ var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
890
+ return o || a ? At : (this.currentObservers = null, s.push(r), new ve(function() {
891
+ n.currentObservers = null, Ue(s, r);
945
892
  }));
946
893
  }, t.prototype._checkFinalizedStatuses = function(r) {
947
- var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
948
- i ? r.error(o) : s && r.complete();
894
+ var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
895
+ i ? r.error(o) : a && r.complete();
949
896
  }, t.prototype.asObservable = function() {
950
- var r = new ft();
897
+ var r = new it();
951
898
  return r.source = this, r;
952
899
  }, t.create = function(r, n) {
953
- return new dt(r, n);
900
+ return new st(r, n);
954
901
  }, t;
955
- }(ft), dt = function(e) {
956
- R(t, e);
902
+ }(it), st = function(e) {
903
+ M(t, e);
957
904
  function t(r, n) {
958
905
  var i = e.call(this) || this;
959
906
  return i.destination = r, i.source = n, i;
@@ -969,230 +916,232 @@ var nn = Rt(function(e) {
969
916
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
970
917
  }, t.prototype._subscribe = function(r) {
971
918
  var n, i;
972
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
919
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
973
920
  }, t;
974
- }(Ft), jt = {
921
+ }(Nt), Ct = {
975
922
  now: function() {
976
- return (jt.delegate || Date).now();
923
+ return (Ct.delegate || Date).now();
977
924
  },
978
925
  delegate: void 0
979
- }, on = function(e) {
980
- R(t, e);
926
+ }, Wr = function(e) {
927
+ M(t, e);
981
928
  function t(r, n, i) {
982
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
929
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
983
930
  var o = e.call(this) || this;
984
931
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
985
932
  }
986
933
  return t.prototype.next = function(r) {
987
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
988
- i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
934
+ var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
935
+ i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
989
936
  }, t.prototype._subscribe = function(r) {
990
937
  this._throwIfClosed(), this._trimBuffer();
991
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
992
- r.next(a[h]);
938
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
939
+ r.next(s[l]);
993
940
  return this._checkFinalizedStatuses(r), n;
994
941
  }, t.prototype._trimBuffer = function() {
995
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
996
- if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
997
- for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
998
- u = l;
942
+ var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
943
+ if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
944
+ for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
945
+ u = h;
999
946
  u && o.splice(0, u + 1);
1000
947
  }
1001
948
  }, t;
1002
- }(Ft);
1003
- const mt = [], bt = {}, sn = (e, t = 0) => {
1004
- if (mt.indexOf(e) == -1) {
1005
- const r = new on(t);
1006
- bt[e] = r, mt.push(e);
949
+ }(Nt);
950
+ const at = [], ut = {}, Vr = (e, t = 0) => {
951
+ if (at.indexOf(e) == -1) {
952
+ const r = new Wr(t);
953
+ ut[e] = r, at.push(e);
1007
954
  }
1008
- return bt[e];
1009
- }, k = [];
1010
- function an(e, t) {
955
+ return ut[e];
956
+ }, j = [];
957
+ function Xr(e, t) {
1011
958
  return {
1012
- subscribe: Ee(e, t).subscribe
959
+ subscribe: _e(e, t).subscribe
1013
960
  };
1014
961
  }
1015
- function Ee(e, t = O) {
962
+ function _e(e, t = A) {
1016
963
  let r;
1017
964
  const n = /* @__PURE__ */ new Set();
1018
- function i(a) {
1019
- if (Ct(e, a) && (e = a, r)) {
1020
- const h = !k.length;
965
+ function i(s) {
966
+ if (Tt(e, s) && (e = s, r)) {
967
+ const l = !j.length;
1021
968
  for (const u of n)
1022
- u[1](), k.push(u, e);
1023
- if (h) {
1024
- for (let u = 0; u < k.length; u += 2)
1025
- k[u][0](k[u + 1]);
1026
- k.length = 0;
969
+ u[1](), j.push(u, e);
970
+ if (l) {
971
+ for (let u = 0; u < j.length; u += 2)
972
+ j[u][0](j[u + 1]);
973
+ j.length = 0;
1027
974
  }
1028
975
  }
1029
976
  }
1030
- function o(a) {
1031
- i(a(e));
977
+ function o(s) {
978
+ i(s(e));
1032
979
  }
1033
- function s(a, h = O) {
1034
- const u = [a, h];
1035
- return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
980
+ function a(s, l = A) {
981
+ const u = [s, l];
982
+ return n.add(u), n.size === 1 && (r = t(i, o) || A), s(e), () => {
1036
983
  n.delete(u), n.size === 0 && r && (r(), r = null);
1037
984
  };
1038
985
  }
1039
- return { set: i, update: o, subscribe: s };
986
+ return { set: i, update: o, subscribe: a };
1040
987
  }
1041
- function Y(e, t, r) {
988
+ function q(e, t, r) {
1042
989
  const n = !Array.isArray(e), i = n ? [e] : e;
1043
990
  if (!i.every(Boolean))
1044
991
  throw new Error("derived() expects stores as input, got a falsy value");
1045
992
  const o = t.length < 2;
1046
- return an(r, (s, a) => {
1047
- let h = !1;
993
+ return Xr(r, (a, s) => {
994
+ let l = !1;
1048
995
  const u = [];
1049
- let l = 0, c = O;
1050
- const f = () => {
1051
- if (l)
996
+ let h = 0, f = A;
997
+ const c = () => {
998
+ if (h)
1052
999
  return;
1053
- c();
1054
- const v = t(n ? u[0] : u, s, a);
1055
- o ? s(v) : c = qe(v) ? v : O;
1056
- }, p = i.map(
1057
- (v, m) => Lt(
1000
+ f();
1001
+ const v = t(n ? u[0] : u, a, s);
1002
+ o ? a(v) : f = Ze(v) ? v : A;
1003
+ }, d = i.map(
1004
+ (v, m) => Ht(
1058
1005
  v,
1059
1006
  (w) => {
1060
- u[m] = w, l &= ~(1 << m), h && f();
1007
+ u[m] = w, h &= ~(1 << m), l && c();
1061
1008
  },
1062
1009
  () => {
1063
- l |= 1 << m;
1010
+ h |= 1 << m;
1064
1011
  }
1065
1012
  )
1066
1013
  );
1067
- return h = !0, f(), function() {
1068
- ae(p), c(), h = !1;
1014
+ return l = !0, c(), function() {
1015
+ se(d), f(), l = !1;
1069
1016
  };
1070
1017
  });
1071
1018
  }
1072
- function un(e) {
1073
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1019
+ function zr(e) {
1020
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1074
1021
  }
1075
- var hn = function(t) {
1076
- return ln(t) && !cn(t);
1022
+ var Zr = function(t) {
1023
+ return Qr(t) && !Jr(t);
1077
1024
  };
1078
- function ln(e) {
1025
+ function Qr(e) {
1079
1026
  return !!e && typeof e == "object";
1080
1027
  }
1081
- function cn(e) {
1028
+ function Jr(e) {
1082
1029
  var t = Object.prototype.toString.call(e);
1083
- return t === "[object RegExp]" || t === "[object Date]" || dn(e);
1030
+ return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
1084
1031
  }
1085
- var fn = typeof Symbol == "function" && Symbol.for, pn = fn ? Symbol.for("react.element") : 60103;
1086
- function dn(e) {
1087
- return e.$$typeof === pn;
1032
+ var qr = typeof Symbol == "function" && Symbol.for, Yr = qr ? Symbol.for("react.element") : 60103;
1033
+ function Kr(e) {
1034
+ return e.$$typeof === Yr;
1088
1035
  }
1089
- function mn(e) {
1036
+ function en(e) {
1090
1037
  return Array.isArray(e) ? [] : {};
1091
1038
  }
1092
- function oe(e, t) {
1093
- return t.clone !== !1 && t.isMergeableObject(e) ? z(mn(e), e, t) : e;
1039
+ function ie(e, t) {
1040
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(en(e), e, t) : e;
1094
1041
  }
1095
- function bn(e, t, r) {
1042
+ function tn(e, t, r) {
1096
1043
  return e.concat(t).map(function(n) {
1097
- return oe(n, r);
1044
+ return ie(n, r);
1098
1045
  });
1099
1046
  }
1100
- function yn(e, t) {
1047
+ function rn(e, t) {
1101
1048
  if (!t.customMerge)
1102
- return z;
1049
+ return X;
1103
1050
  var r = t.customMerge(e);
1104
- return typeof r == "function" ? r : z;
1051
+ return typeof r == "function" ? r : X;
1105
1052
  }
1106
- function gn(e) {
1053
+ function nn(e) {
1107
1054
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1108
1055
  return Object.propertyIsEnumerable.call(e, t);
1109
1056
  }) : [];
1110
1057
  }
1111
- function yt(e) {
1112
- return Object.keys(e).concat(gn(e));
1058
+ function ht(e) {
1059
+ return Object.keys(e).concat(nn(e));
1113
1060
  }
1114
- function kt(e, t) {
1061
+ function Lt(e, t) {
1115
1062
  try {
1116
1063
  return t in e;
1117
- } catch (r) {
1064
+ } catch {
1118
1065
  return !1;
1119
1066
  }
1120
1067
  }
1121
- function vn(e, t) {
1122
- return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1068
+ function on(e, t) {
1069
+ return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1123
1070
  }
1124
- function _n(e, t, r) {
1071
+ function sn(e, t, r) {
1125
1072
  var n = {};
1126
- return r.isMergeableObject(e) && yt(e).forEach(function(i) {
1127
- n[i] = oe(e[i], r);
1128
- }), yt(t).forEach(function(i) {
1129
- vn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = yn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1073
+ return r.isMergeableObject(e) && ht(e).forEach(function(i) {
1074
+ n[i] = ie(e[i], r);
1075
+ }), ht(t).forEach(function(i) {
1076
+ on(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1130
1077
  }), n;
1131
1078
  }
1132
- function z(e, t, r) {
1133
- r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject || hn, r.cloneUnlessOtherwiseSpecified = oe;
1079
+ function X(e, t, r) {
1080
+ r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = ie;
1134
1081
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1135
- return o ? n ? r.arrayMerge(e, t, r) : _n(e, t, r) : oe(t, r);
1082
+ return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : ie(t, r);
1136
1083
  }
1137
- z.all = function(t, r) {
1084
+ X.all = function(t, r) {
1138
1085
  if (!Array.isArray(t))
1139
1086
  throw new Error("first argument should be an array");
1140
1087
  return t.reduce(function(n, i) {
1141
- return z(n, i, r);
1088
+ return X(n, i, r);
1142
1089
  }, {});
1143
1090
  };
1144
- var En = z, xn = En;
1145
- const wn = /* @__PURE__ */ un(xn);
1146
- function Ae(e, t) {
1147
- var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Pn, i = t && t.strategy ? t.strategy : Tn;
1091
+ var an = X, un = an;
1092
+ const hn = /* @__PURE__ */ zr(un);
1093
+ function He(e, t) {
1094
+ var r = t && t.cache ? t.cache : bn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : fn;
1148
1095
  return i(e, {
1149
1096
  cache: r,
1150
1097
  serializer: n
1151
1098
  });
1152
1099
  }
1153
- function Sn(e) {
1100
+ function ln(e) {
1154
1101
  return e == null || typeof e == "number" || typeof e == "boolean";
1155
1102
  }
1156
- function Wt(e, t, r, n) {
1157
- var i = Sn(n) ? n : r(n), o = t.get(i);
1158
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1103
+ function Mt(e, t, r, n) {
1104
+ var i = ln(n) ? n : r(n), o = t.get(i);
1105
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1159
1106
  }
1160
- function Vt(e, t, r) {
1107
+ function Rt(e, t, r) {
1161
1108
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1162
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1109
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1163
1110
  }
1164
- function Ke(e, t, r, n, i) {
1111
+ function Je(e, t, r, n, i) {
1165
1112
  return r.bind(t, e, n, i);
1166
1113
  }
1167
- function Tn(e, t) {
1168
- var r = e.length === 1 ? Wt : Vt;
1169
- return Ke(e, this, r, t.cache.create(), t.serializer);
1114
+ function fn(e, t) {
1115
+ var r = e.length === 1 ? Mt : Rt;
1116
+ return Je(e, this, r, t.cache.create(), t.serializer);
1170
1117
  }
1171
- function Hn(e, t) {
1172
- return Ke(e, this, Vt, t.cache.create(), t.serializer);
1118
+ function cn(e, t) {
1119
+ return Je(e, this, Rt, t.cache.create(), t.serializer);
1173
1120
  }
1174
- function Bn(e, t) {
1175
- return Ke(e, this, Wt, t.cache.create(), t.serializer);
1121
+ function dn(e, t) {
1122
+ return Je(e, this, Mt, t.cache.create(), t.serializer);
1176
1123
  }
1177
- var Pn = function() {
1124
+ var pn = function() {
1178
1125
  return JSON.stringify(arguments);
1179
- };
1180
- function et() {
1181
- this.cache = /* @__PURE__ */ Object.create(null);
1182
- }
1183
- et.prototype.get = function(e) {
1184
- return this.cache[e];
1185
- };
1186
- et.prototype.set = function(e, t) {
1187
- this.cache[e] = t;
1188
- };
1189
- var An = {
1126
+ }, mn = (
1127
+ /** @class */
1128
+ function() {
1129
+ function e() {
1130
+ this.cache = /* @__PURE__ */ Object.create(null);
1131
+ }
1132
+ return e.prototype.get = function(t) {
1133
+ return this.cache[t];
1134
+ }, e.prototype.set = function(t, r) {
1135
+ this.cache[t] = r;
1136
+ }, e;
1137
+ }()
1138
+ ), bn = {
1190
1139
  create: function() {
1191
- return new et();
1140
+ return new mn();
1192
1141
  }
1193
- }, Oe = {
1194
- variadic: Hn,
1195
- monadic: Bn
1142
+ }, Be = {
1143
+ variadic: cn,
1144
+ monadic: dn
1196
1145
  }, b;
1197
1146
  (function(e) {
1198
1147
  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";
@@ -1201,47 +1150,47 @@ var _;
1201
1150
  (function(e) {
1202
1151
  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";
1203
1152
  })(_ || (_ = {}));
1204
- var Z;
1153
+ var z;
1205
1154
  (function(e) {
1206
1155
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1207
- })(Z || (Z = {}));
1208
- function gt(e) {
1156
+ })(z || (z = {}));
1157
+ function lt(e) {
1209
1158
  return e.type === _.literal;
1210
1159
  }
1211
- function On(e) {
1160
+ function yn(e) {
1212
1161
  return e.type === _.argument;
1213
1162
  }
1214
- function Xt(e) {
1163
+ function $t(e) {
1215
1164
  return e.type === _.number;
1216
1165
  }
1217
- function zt(e) {
1166
+ function Ut(e) {
1218
1167
  return e.type === _.date;
1219
1168
  }
1220
- function Zt(e) {
1169
+ function Dt(e) {
1221
1170
  return e.type === _.time;
1222
1171
  }
1223
- function Qt(e) {
1172
+ function Gt(e) {
1224
1173
  return e.type === _.select;
1225
1174
  }
1226
- function Jt(e) {
1175
+ function Ft(e) {
1227
1176
  return e.type === _.plural;
1228
1177
  }
1229
- function In(e) {
1178
+ function gn(e) {
1230
1179
  return e.type === _.pound;
1231
1180
  }
1232
- function qt(e) {
1181
+ function jt(e) {
1233
1182
  return e.type === _.tag;
1234
1183
  }
1235
- function Yt(e) {
1236
- return !!(e && typeof e == "object" && e.type === Z.number);
1184
+ function kt(e) {
1185
+ return !!(e && typeof e == "object" && e.type === z.number);
1237
1186
  }
1238
- function ke(e) {
1239
- return !!(e && typeof e == "object" && e.type === Z.dateTime);
1187
+ function Ge(e) {
1188
+ return !!(e && typeof e == "object" && e.type === z.dateTime);
1240
1189
  }
1241
- var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Nn = /(?:[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;
1242
- function Cn(e) {
1190
+ var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, vn = /(?:[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;
1191
+ function _n(e) {
1243
1192
  var t = {};
1244
- return e.replace(Nn, function(r) {
1193
+ return e.replace(vn, function(r) {
1245
1194
  var n = r.length;
1246
1195
  switch (r[0]) {
1247
1196
  case "G":
@@ -1330,36 +1279,36 @@ function Cn(e) {
1330
1279
  return "";
1331
1280
  }), t;
1332
1281
  }
1333
- var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1334
- function Mn(e) {
1282
+ var En = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1283
+ function xn(e) {
1335
1284
  if (e.length === 0)
1336
1285
  throw new Error("Number skeleton cannot be empty");
1337
- for (var t = e.split(Ln).filter(function(f) {
1338
- return f.length > 0;
1286
+ for (var t = e.split(En).filter(function(c) {
1287
+ return c.length > 0;
1339
1288
  }), r = [], n = 0, i = t; n < i.length; n++) {
1340
- var o = i[n], s = o.split("/");
1341
- if (s.length === 0)
1289
+ var o = i[n], a = o.split("/");
1290
+ if (a.length === 0)
1342
1291
  throw new Error("Invalid number skeleton");
1343
- for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
1344
- var c = l[u];
1345
- if (c.length === 0)
1292
+ for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1293
+ var f = h[u];
1294
+ if (f.length === 0)
1346
1295
  throw new Error("Invalid number skeleton");
1347
1296
  }
1348
- r.push({ stem: a, options: h });
1297
+ r.push({ stem: s, options: l });
1349
1298
  }
1350
1299
  return r;
1351
1300
  }
1352
- function Rn(e) {
1301
+ function wn(e) {
1353
1302
  return e.replace(/^(.*?)-/, "");
1354
1303
  }
1355
- var vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, $n = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
1356
- function _t(e) {
1304
+ var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1305
+ function ct(e) {
1357
1306
  var t = {};
1358
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
1307
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1359
1308
  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)), "";
1360
1309
  }), t;
1361
1310
  }
1362
- function rr(e) {
1311
+ function zt(e) {
1363
1312
  switch (e) {
1364
1313
  case "sign-auto":
1365
1314
  return {
@@ -1399,7 +1348,7 @@ function rr(e) {
1399
1348
  };
1400
1349
  }
1401
1350
  }
1402
- function Un(e) {
1351
+ function Tn(e) {
1403
1352
  var t;
1404
1353
  if (e[0] === "E" && e[1] === "E" ? (t = {
1405
1354
  notation: "engineering"
@@ -1407,17 +1356,17 @@ function Un(e) {
1407
1356
  notation: "scientific"
1408
1357
  }, e = e.slice(1)), t) {
1409
1358
  var r = e.slice(0, 2);
1410
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
1359
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1411
1360
  throw new Error("Malformed concise eng/scientific notation");
1412
1361
  t.minimumIntegerDigits = e.length;
1413
1362
  }
1414
1363
  return t;
1415
1364
  }
1416
- function Et(e) {
1417
- var t = {}, r = rr(e);
1365
+ function dt(e) {
1366
+ var t = {}, r = zt(e);
1418
1367
  return r || t;
1419
1368
  }
1420
- function Dn(e) {
1369
+ function Hn(e) {
1421
1370
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1422
1371
  var i = n[r];
1423
1372
  switch (i.stem) {
@@ -1441,7 +1390,7 @@ function Dn(e) {
1441
1390
  continue;
1442
1391
  case "measure-unit":
1443
1392
  case "unit":
1444
- t.style = "unit", t.unit = Rn(i.options[0]);
1393
+ t.style = "unit", t.unit = wn(i.options[0]);
1445
1394
  continue;
1446
1395
  case "compact-short":
1447
1396
  case "K":
@@ -1452,13 +1401,13 @@ function Dn(e) {
1452
1401
  t.notation = "compact", t.compactDisplay = "long";
1453
1402
  continue;
1454
1403
  case "scientific":
1455
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1456
- return g(g({}, h), Et(u));
1404
+ t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1405
+ return g(g({}, l), dt(u));
1457
1406
  }, {}));
1458
1407
  continue;
1459
1408
  case "engineering":
1460
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1461
- return g(g({}, h), Et(u));
1409
+ t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1410
+ return g(g({}, l), dt(u));
1462
1411
  }, {}));
1463
1412
  continue;
1464
1413
  case "notation-simple":
@@ -1503,45 +1452,45 @@ function Dn(e) {
1503
1452
  case "integer-width":
1504
1453
  if (i.options.length > 1)
1505
1454
  throw new RangeError("integer-width stems only accept a single optional option");
1506
- i.options[0].replace($n, function(h, u, l, c, f, p) {
1455
+ i.options[0].replace(Sn, function(l, u, h, f, c, d) {
1507
1456
  if (u)
1508
- t.minimumIntegerDigits = l.length;
1457
+ t.minimumIntegerDigits = h.length;
1509
1458
  else {
1510
- if (c && f)
1459
+ if (f && c)
1511
1460
  throw new Error("We currently do not support maximum integer digits");
1512
- if (p)
1461
+ if (d)
1513
1462
  throw new Error("We currently do not support exact integer digits");
1514
1463
  }
1515
1464
  return "";
1516
1465
  });
1517
1466
  continue;
1518
1467
  }
1519
- if (tr.test(i.stem)) {
1468
+ if (Xt.test(i.stem)) {
1520
1469
  t.minimumIntegerDigits = i.stem.length;
1521
1470
  continue;
1522
1471
  }
1523
- if (vt.test(i.stem)) {
1472
+ if (ft.test(i.stem)) {
1524
1473
  if (i.options.length > 1)
1525
1474
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1526
- i.stem.replace(vt, function(h, u, l, c, f, p) {
1527
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1475
+ i.stem.replace(ft, function(l, u, h, f, c, d) {
1476
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1528
1477
  });
1529
1478
  var o = i.options[0];
1530
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), _t(o)));
1479
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ct(o)));
1531
1480
  continue;
1532
1481
  }
1533
- if (er.test(i.stem)) {
1534
- t = g(g({}, t), _t(i.stem));
1482
+ if (Vt.test(i.stem)) {
1483
+ t = g(g({}, t), ct(i.stem));
1535
1484
  continue;
1536
1485
  }
1537
- var s = rr(i.stem);
1538
- s && (t = g(g({}, t), s));
1539
- var a = Un(i.stem);
1486
+ var a = zt(i.stem);
1540
1487
  a && (t = g(g({}, t), a));
1488
+ var s = Tn(i.stem);
1489
+ s && (t = g(g({}, t), s));
1541
1490
  }
1542
1491
  return t;
1543
1492
  }
1544
- var pe = {
1493
+ var ce = {
1545
1494
  "001": [
1546
1495
  "H",
1547
1496
  "h"
@@ -2956,22 +2905,22 @@ var pe = {
2956
2905
  "h"
2957
2906
  ]
2958
2907
  };
2959
- function Gn(e, t) {
2908
+ function Bn(e, t) {
2960
2909
  for (var r = "", n = 0; n < e.length; n++) {
2961
2910
  var i = e.charAt(n);
2962
2911
  if (i === "j") {
2963
2912
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2964
2913
  o++, n++;
2965
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Fn(t);
2966
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2967
- r += h;
2968
- for (; s-- > 0; )
2914
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Pn(t);
2915
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2916
+ r += l;
2917
+ for (; a-- > 0; )
2969
2918
  r = u + r;
2970
2919
  } else i === "J" ? r += "H" : r += i;
2971
2920
  }
2972
2921
  return r;
2973
2922
  }
2974
- function Fn(e) {
2923
+ function Pn(e) {
2975
2924
  var t = e.hourCycle;
2976
2925
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2977
2926
  e.hourCycles && // @ts-ignore
@@ -2990,23 +2939,23 @@ function Fn(e) {
2990
2939
  }
2991
2940
  var r = e.language, n;
2992
2941
  r !== "root" && (n = e.maximize().region);
2993
- var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2942
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2994
2943
  return i[0];
2995
2944
  }
2996
- var Ie, jn = new RegExp("^".concat(Kt.source, "*")), kn = new RegExp("".concat(Kt.source, "*$"));
2945
+ var Pe, An = new RegExp("^".concat(Wt.source, "*")), On = new RegExp("".concat(Wt.source, "*$"));
2997
2946
  function y(e, t) {
2998
2947
  return { start: e, end: t };
2999
2948
  }
3000
- var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Vn = !!String.fromCodePoint, Xn = !!Object.fromEntries, zn = !!String.prototype.codePointAt, Zn = !!String.prototype.trimStart, Qn = !!String.prototype.trimEnd, Jn = !!Number.isSafeInteger, qn = Jn ? Number.isSafeInteger : function(e) {
2949
+ var In = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Cn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Un = $n ? Number.isSafeInteger : function(e) {
3001
2950
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3002
- }, We = !0;
2951
+ }, Fe = !0;
3003
2952
  try {
3004
- var Yn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3005
- We = ((Ie = Yn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
3006
- } catch (e) {
3007
- We = !1;
2953
+ var Dn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2954
+ Fe = ((Pe = Dn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
2955
+ } catch {
2956
+ Fe = !1;
3008
2957
  }
3009
- var xt = Wn ? (
2958
+ var pt = In ? (
3010
2959
  // Native
3011
2960
  function(t, r, n) {
3012
2961
  return t.startsWith(r, n);
@@ -3016,31 +2965,31 @@ var xt = Wn ? (
3016
2965
  function(t, r, n) {
3017
2966
  return t.slice(n, n + r.length) === r;
3018
2967
  }
3019
- ), Ve = Vn ? String.fromCodePoint : (
2968
+ ), je = Nn ? String.fromCodePoint : (
3020
2969
  // IE11
3021
2970
  function() {
3022
2971
  for (var t = [], r = 0; r < arguments.length; r++)
3023
2972
  t[r] = arguments[r];
3024
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
3025
- if (s = t[o++], s > 1114111)
3026
- throw RangeError(s + " is not a valid code point");
3027
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2973
+ for (var n = "", i = t.length, o = 0, a; i > o; ) {
2974
+ if (a = t[o++], a > 1114111)
2975
+ throw RangeError(a + " is not a valid code point");
2976
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3028
2977
  }
3029
2978
  return n;
3030
2979
  }
3031
- ), wt = (
2980
+ ), mt = (
3032
2981
  // native
3033
- Xn ? Object.fromEntries : (
2982
+ Cn ? Object.fromEntries : (
3034
2983
  // Ponyfill
3035
2984
  function(t) {
3036
2985
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3037
- var o = i[n], s = o[0], a = o[1];
3038
- r[s] = a;
2986
+ var o = i[n], a = o[0], s = o[1];
2987
+ r[a] = s;
3039
2988
  }
3040
2989
  return r;
3041
2990
  }
3042
2991
  )
3043
- ), nr = zn ? (
2992
+ ), Zt = Ln ? (
3044
2993
  // Native
3045
2994
  function(t, r) {
3046
2995
  return t.codePointAt(r);
@@ -3054,7 +3003,7 @@ var xt = Wn ? (
3054
3003
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3055
3004
  }
3056
3005
  }
3057
- ), Kn = Zn ? (
3006
+ ), Gn = Mn ? (
3058
3007
  // Native
3059
3008
  function(t) {
3060
3009
  return t.trimStart();
@@ -3062,9 +3011,9 @@ var xt = Wn ? (
3062
3011
  ) : (
3063
3012
  // Ponyfill
3064
3013
  function(t) {
3065
- return t.replace(jn, "");
3014
+ return t.replace(An, "");
3066
3015
  }
3067
- ), ei = Qn ? (
3016
+ ), Fn = Rn ? (
3068
3017
  // Native
3069
3018
  function(t) {
3070
3019
  return t.trimEnd();
@@ -3072,32 +3021,32 @@ var xt = Wn ? (
3072
3021
  ) : (
3073
3022
  // Ponyfill
3074
3023
  function(t) {
3075
- return t.replace(kn, "");
3024
+ return t.replace(On, "");
3076
3025
  }
3077
3026
  );
3078
- function ir(e, t) {
3027
+ function Qt(e, t) {
3079
3028
  return new RegExp(e, t);
3080
3029
  }
3081
- var Xe;
3082
- if (We) {
3083
- var St = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3084
- Xe = function(t, r) {
3030
+ var ke;
3031
+ if (Fe) {
3032
+ var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3033
+ ke = function(t, r) {
3085
3034
  var n;
3086
- St.lastIndex = r;
3087
- var i = St.exec(t);
3035
+ bt.lastIndex = r;
3036
+ var i = bt.exec(t);
3088
3037
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3089
3038
  };
3090
3039
  } else
3091
- Xe = function(t, r) {
3040
+ ke = function(t, r) {
3092
3041
  for (var n = []; ; ) {
3093
- var i = nr(t, r);
3094
- if (i === void 0 || or(i) || ii(i))
3042
+ var i = Zt(t, r);
3043
+ if (i === void 0 || Jt(i) || Vn(i))
3095
3044
  break;
3096
3045
  n.push(i), r += i >= 65536 ? 2 : 1;
3097
3046
  }
3098
- return Ve.apply(void 0, n);
3047
+ return je.apply(void 0, n);
3099
3048
  };
3100
- var ti = (
3049
+ var jn = (
3101
3050
  /** @class */
3102
3051
  function() {
3103
3052
  function e(t, r) {
@@ -3111,33 +3060,33 @@ var ti = (
3111
3060
  for (var i = []; !this.isEOF(); ) {
3112
3061
  var o = this.char();
3113
3062
  if (o === 123) {
3114
- var s = this.parseArgument(t, n);
3115
- if (s.err)
3116
- return s;
3117
- i.push(s.val);
3063
+ var a = this.parseArgument(t, n);
3064
+ if (a.err)
3065
+ return a;
3066
+ i.push(a.val);
3118
3067
  } else {
3119
3068
  if (o === 125 && t > 0)
3120
3069
  break;
3121
3070
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3122
- var a = this.clonePosition();
3071
+ var s = this.clonePosition();
3123
3072
  this.bump(), i.push({
3124
3073
  type: _.pound,
3125
- location: y(a, this.clonePosition())
3074
+ location: y(s, this.clonePosition())
3126
3075
  });
3127
3076
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3128
3077
  if (n)
3129
3078
  break;
3130
3079
  return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3131
- } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
3132
- var s = this.parseTag(t, r);
3133
- if (s.err)
3134
- return s;
3135
- i.push(s.val);
3080
+ } else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
3081
+ var a = this.parseTag(t, r);
3082
+ if (a.err)
3083
+ return a;
3084
+ i.push(a.val);
3136
3085
  } else {
3137
- var s = this.parseLiteral(t, r);
3138
- if (s.err)
3139
- return s;
3140
- i.push(s.val);
3086
+ var a = this.parseLiteral(t, r);
3087
+ if (a.err)
3088
+ return a;
3089
+ i.push(a.val);
3141
3090
  }
3142
3091
  }
3143
3092
  }
@@ -3159,27 +3108,27 @@ var ti = (
3159
3108
  var o = this.parseMessage(t + 1, r, !0);
3160
3109
  if (o.err)
3161
3110
  return o;
3162
- var s = o.val, a = this.clonePosition();
3111
+ var a = o.val, s = this.clonePosition();
3163
3112
  if (this.bumpIf("</")) {
3164
- if (this.isEOF() || !ze(this.char()))
3165
- return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
3166
- var h = this.clonePosition(), u = this.parseTagName();
3167
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3113
+ if (this.isEOF() || !We(this.char()))
3114
+ return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3115
+ var l = this.clonePosition(), u = this.parseTagName();
3116
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3168
3117
  val: {
3169
3118
  type: _.tag,
3170
3119
  value: i,
3171
- children: s,
3120
+ children: a,
3172
3121
  location: y(n, this.clonePosition())
3173
3122
  },
3174
3123
  err: null
3175
- } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
3124
+ } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
3176
3125
  } else
3177
3126
  return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3178
3127
  } else
3179
3128
  return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3180
3129
  }, e.prototype.parseTagName = function() {
3181
3130
  var t = this.offset();
3182
- for (this.bump(); !this.isEOF() && ni(this.char()); )
3131
+ for (this.bump(); !this.isEOF() && Wn(this.char()); )
3183
3132
  this.bump();
3184
3133
  return this.message.slice(t, this.offset());
3185
3134
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3189,26 +3138,26 @@ var ti = (
3189
3138
  i += o;
3190
3139
  continue;
3191
3140
  }
3192
- var s = this.tryParseUnquoted(t, r);
3193
- if (s) {
3194
- i += s;
3195
- continue;
3196
- }
3197
- var a = this.tryParseLeftAngleBracket();
3141
+ var a = this.tryParseUnquoted(t, r);
3198
3142
  if (a) {
3199
3143
  i += a;
3200
3144
  continue;
3201
3145
  }
3146
+ var s = this.tryParseLeftAngleBracket();
3147
+ if (s) {
3148
+ i += s;
3149
+ continue;
3150
+ }
3202
3151
  break;
3203
3152
  }
3204
- var h = y(n, this.clonePosition());
3153
+ var l = y(n, this.clonePosition());
3205
3154
  return {
3206
- val: { type: _.literal, value: i, location: h },
3155
+ val: { type: _.literal, value: i, location: l },
3207
3156
  err: null
3208
3157
  };
3209
3158
  }, e.prototype.tryParseLeftAngleBracket = function() {
3210
3159
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3211
- !ri(this.peek() || 0)) ? (this.bump(), "<") : null;
3160
+ !kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3212
3161
  }, e.prototype.tryParseQuote = function(t) {
3213
3162
  if (this.isEOF() || this.char() !== 39)
3214
3163
  return null;
@@ -3242,12 +3191,12 @@ var ti = (
3242
3191
  r.push(n);
3243
3192
  this.bump();
3244
3193
  }
3245
- return Ve.apply(void 0, r);
3194
+ return je.apply(void 0, r);
3246
3195
  }, e.prototype.tryParseUnquoted = function(t, r) {
3247
3196
  if (this.isEOF())
3248
3197
  return null;
3249
3198
  var n = this.char();
3250
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
3199
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
3251
3200
  }, e.prototype.parseArgument = function(t, r) {
3252
3201
  var n = this.clonePosition();
3253
3202
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3276,15 +3225,15 @@ var ti = (
3276
3225
  return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3277
3226
  }
3278
3227
  }, e.prototype.parseIdentifierIfPossible = function() {
3279
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
3228
+ var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
3280
3229
  this.bumpTo(i);
3281
- var o = this.clonePosition(), s = y(t, o);
3282
- return { value: n, location: s };
3230
+ var o = this.clonePosition(), a = y(t, o);
3231
+ return { value: n, location: a };
3283
3232
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3284
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3285
- switch (a) {
3233
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3234
+ switch (s) {
3286
3235
  case "":
3287
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(s, h));
3236
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
3288
3237
  case "number":
3289
3238
  case "date":
3290
3239
  case "time": {
@@ -3292,50 +3241,50 @@ var ti = (
3292
3241
  var u = null;
3293
3242
  if (this.bumpIf(",")) {
3294
3243
  this.bumpSpace();
3295
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3296
- if (c.err)
3297
- return c;
3298
- var f = ei(c.val);
3299
- if (f.length === 0)
3244
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3245
+ if (f.err)
3246
+ return f;
3247
+ var c = Fn(f.val);
3248
+ if (c.length === 0)
3300
3249
  return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3301
- var p = y(l, this.clonePosition());
3302
- u = { style: f, styleLocation: p };
3250
+ var d = y(h, this.clonePosition());
3251
+ u = { style: c, styleLocation: d };
3303
3252
  }
3304
3253
  var v = this.tryParseArgumentClose(i);
3305
3254
  if (v.err)
3306
3255
  return v;
3307
3256
  var m = y(i, this.clonePosition());
3308
- if (u && xt(u == null ? void 0 : u.style, "::", 0)) {
3309
- var w = Kn(u.style.slice(2));
3310
- if (a === "number") {
3311
- var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
3312
- return c.err ? c : {
3313
- val: { type: _.number, value: n, location: m, style: c.val },
3257
+ if (u && pt(u?.style, "::", 0)) {
3258
+ var w = Gn(u.style.slice(2));
3259
+ if (s === "number") {
3260
+ var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3261
+ return f.err ? f : {
3262
+ val: { type: _.number, value: n, location: m, style: f.val },
3314
3263
  err: null
3315
3264
  };
3316
3265
  } else {
3317
3266
  if (w.length === 0)
3318
3267
  return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3319
- var N = w;
3320
- this.locale && (N = Gn(w, this.locale));
3321
- var f = {
3322
- type: Z.dateTime,
3323
- pattern: N,
3268
+ var I = w;
3269
+ this.locale && (I = Bn(w, this.locale));
3270
+ var c = {
3271
+ type: z.dateTime,
3272
+ pattern: I,
3324
3273
  location: u.styleLocation,
3325
- parsedOptions: this.shouldParseSkeletons ? Cn(N) : {}
3326
- }, C = a === "date" ? _.date : _.time;
3274
+ parsedOptions: this.shouldParseSkeletons ? _n(I) : {}
3275
+ }, N = s === "date" ? _.date : _.time;
3327
3276
  return {
3328
- val: { type: C, value: n, location: m, style: f },
3277
+ val: { type: N, value: n, location: m, style: c },
3329
3278
  err: null
3330
3279
  };
3331
3280
  }
3332
3281
  }
3333
3282
  return {
3334
3283
  val: {
3335
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3284
+ type: s === "number" ? _.number : s === "date" ? _.date : _.time,
3336
3285
  value: n,
3337
3286
  location: m,
3338
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3287
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
3339
3288
  },
3340
3289
  err: null
3341
3290
  };
@@ -3347,45 +3296,45 @@ var ti = (
3347
3296
  if (this.bumpSpace(), !this.bumpIf(","))
3348
3297
  return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, g({}, T)));
3349
3298
  this.bumpSpace();
3350
- var $ = this.parseIdentifierIfPossible(), I = 0;
3351
- if (a !== "select" && $.value === "offset") {
3299
+ var R = this.parseIdentifierIfPossible(), O = 0;
3300
+ if (s !== "select" && R.value === "offset") {
3352
3301
  if (!this.bumpIf(":"))
3353
3302
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3354
3303
  this.bumpSpace();
3355
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3356
- if (c.err)
3357
- return c;
3358
- this.bumpSpace(), $ = this.parseIdentifierIfPossible(), I = c.val;
3304
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3305
+ if (f.err)
3306
+ return f;
3307
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = f.val;
3359
3308
  }
3360
- var G = this.tryParsePluralOrSelectOptions(t, a, r, $);
3361
- if (G.err)
3362
- return G;
3309
+ var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
3310
+ if (D.err)
3311
+ return D;
3363
3312
  var v = this.tryParseArgumentClose(i);
3364
3313
  if (v.err)
3365
3314
  return v;
3366
- var le = y(i, this.clonePosition());
3367
- return a === "select" ? {
3315
+ var he = y(i, this.clonePosition());
3316
+ return s === "select" ? {
3368
3317
  val: {
3369
3318
  type: _.select,
3370
3319
  value: n,
3371
- options: wt(G.val),
3372
- location: le
3320
+ options: mt(D.val),
3321
+ location: he
3373
3322
  },
3374
3323
  err: null
3375
3324
  } : {
3376
3325
  val: {
3377
3326
  type: _.plural,
3378
3327
  value: n,
3379
- options: wt(G.val),
3380
- offset: I,
3381
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3382
- location: le
3328
+ options: mt(D.val),
3329
+ offset: O,
3330
+ pluralType: s === "plural" ? "cardinal" : "ordinal",
3331
+ location: he
3383
3332
  },
3384
3333
  err: null
3385
3334
  };
3386
3335
  }
3387
3336
  default:
3388
- return this.error(b.INVALID_ARGUMENT_TYPE, y(s, h));
3337
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
3389
3338
  }
3390
3339
  }, e.prototype.tryParseArgumentClose = function(t) {
3391
3340
  return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3427,64 +3376,64 @@ var ti = (
3427
3376
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3428
3377
  var n = [];
3429
3378
  try {
3430
- n = Mn(t);
3431
- } catch (i) {
3379
+ n = xn(t);
3380
+ } catch {
3432
3381
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3433
3382
  }
3434
3383
  return {
3435
3384
  val: {
3436
- type: Z.number,
3385
+ type: z.number,
3437
3386
  tokens: n,
3438
3387
  location: r,
3439
- parsedOptions: this.shouldParseSkeletons ? Dn(n) : {}
3388
+ parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
3440
3389
  },
3441
3390
  err: null
3442
3391
  };
3443
3392
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3444
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3393
+ for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3445
3394
  if (u.length === 0) {
3446
- var c = this.clonePosition();
3395
+ var f = this.clonePosition();
3447
3396
  if (r !== "select" && this.bumpIf("=")) {
3448
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3449
- if (f.err)
3450
- return f;
3451
- l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3397
+ var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3398
+ if (c.err)
3399
+ return c;
3400
+ h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3452
3401
  } else
3453
3402
  break;
3454
3403
  }
3455
- if (h.has(u))
3456
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3457
- u === "other" && (s = !0), this.bumpSpace();
3458
- var p = this.clonePosition();
3404
+ if (l.has(u))
3405
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3406
+ u === "other" && (a = !0), this.bumpSpace();
3407
+ var d = this.clonePosition();
3459
3408
  if (!this.bumpIf("{"))
3460
3409
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3461
3410
  var v = this.parseMessage(t + 1, r, n);
3462
3411
  if (v.err)
3463
3412
  return v;
3464
- var m = this.tryParseArgumentClose(p);
3413
+ var m = this.tryParseArgumentClose(d);
3465
3414
  if (m.err)
3466
3415
  return m;
3467
- a.push([
3416
+ s.push([
3468
3417
  u,
3469
3418
  {
3470
3419
  value: v.val,
3471
- location: y(p, this.clonePosition())
3420
+ location: y(d, this.clonePosition())
3472
3421
  }
3473
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3422
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3474
3423
  }
3475
- return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3424
+ return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3476
3425
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3477
3426
  var n = 1, i = this.clonePosition();
3478
3427
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3479
- for (var o = !1, s = 0; !this.isEOF(); ) {
3480
- var a = this.char();
3481
- if (a >= 48 && a <= 57)
3482
- o = !0, s = s * 10 + (a - 48), this.bump();
3428
+ for (var o = !1, a = 0; !this.isEOF(); ) {
3429
+ var s = this.char();
3430
+ if (s >= 48 && s <= 57)
3431
+ o = !0, a = a * 10 + (s - 48), this.bump();
3483
3432
  else
3484
3433
  break;
3485
3434
  }
3486
- var h = y(i, this.clonePosition());
3487
- return o ? (s *= n, qn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3435
+ var l = y(i, this.clonePosition());
3436
+ return o ? (a *= n, Un(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3488
3437
  }, e.prototype.offset = function() {
3489
3438
  return this.position.offset;
3490
3439
  }, e.prototype.isEOF = function() {
@@ -3499,7 +3448,7 @@ var ti = (
3499
3448
  var t = this.position.offset;
3500
3449
  if (t >= this.message.length)
3501
3450
  throw Error("out of bound");
3502
- var r = nr(this.message, t);
3451
+ var r = Zt(this.message, t);
3503
3452
  if (r === void 0)
3504
3453
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3505
3454
  return r;
@@ -3518,7 +3467,7 @@ var ti = (
3518
3467
  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);
3519
3468
  }
3520
3469
  }, e.prototype.bumpIf = function(t) {
3521
- if (xt(this.message, t, this.offset())) {
3470
+ if (pt(this.message, t, this.offset())) {
3522
3471
  for (var r = 0; r < t.length; r++)
3523
3472
  this.bump();
3524
3473
  return !0;
@@ -3540,56 +3489,56 @@ var ti = (
3540
3489
  break;
3541
3490
  }
3542
3491
  }, e.prototype.bumpSpace = function() {
3543
- for (; !this.isEOF() && or(this.char()); )
3492
+ for (; !this.isEOF() && Jt(this.char()); )
3544
3493
  this.bump();
3545
3494
  }, e.prototype.peek = function() {
3546
3495
  if (this.isEOF())
3547
3496
  return null;
3548
3497
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3549
- return n != null ? n : null;
3498
+ return n ?? null;
3550
3499
  }, e;
3551
3500
  }()
3552
3501
  );
3553
- function ze(e) {
3502
+ function We(e) {
3554
3503
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3555
3504
  }
3556
- function ri(e) {
3557
- return ze(e) || e === 47;
3505
+ function kn(e) {
3506
+ return We(e) || e === 47;
3558
3507
  }
3559
- function ni(e) {
3508
+ function Wn(e) {
3560
3509
  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;
3561
3510
  }
3562
- function or(e) {
3511
+ function Jt(e) {
3563
3512
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3564
3513
  }
3565
- function ii(e) {
3514
+ function Vn(e) {
3566
3515
  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;
3567
3516
  }
3568
- function Ze(e) {
3517
+ function Ve(e) {
3569
3518
  e.forEach(function(t) {
3570
- if (delete t.location, Qt(t) || Jt(t))
3519
+ if (delete t.location, Gt(t) || Ft(t))
3571
3520
  for (var r in t.options)
3572
- delete t.options[r].location, Ze(t.options[r].value);
3573
- else Xt(t) && Yt(t.style) || (zt(t) || Zt(t)) && ke(t.style) ? delete t.style.location : qt(t) && Ze(t.children);
3521
+ delete t.options[r].location, Ve(t.options[r].value);
3522
+ else $t(t) && kt(t.style) || (Ut(t) || Dt(t)) && Ge(t.style) ? delete t.style.location : jt(t) && Ve(t.children);
3574
3523
  });
3575
3524
  }
3576
- function oi(e, t) {
3525
+ function Xn(e, t) {
3577
3526
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3578
- var r = new ti(e, t).parse();
3527
+ var r = new jn(e, t).parse();
3579
3528
  if (r.err) {
3580
3529
  var n = SyntaxError(b[r.err.kind]);
3581
3530
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3582
3531
  }
3583
- return t != null && t.captureLocation || Ze(r.val), r.val;
3532
+ return t?.captureLocation || Ve(r.val), r.val;
3584
3533
  }
3585
- var Q;
3534
+ var Z;
3586
3535
  (function(e) {
3587
3536
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3588
- })(Q || (Q = {}));
3589
- var xe = (
3537
+ })(Z || (Z = {}));
3538
+ var Ee = (
3590
3539
  /** @class */
3591
3540
  function(e) {
3592
- R(t, e);
3541
+ M(t, e);
3593
3542
  function t(r, n, i) {
3594
3543
  var o = e.call(this, r) || this;
3595
3544
  return o.code = n, o.originalMessage = i, o;
@@ -3598,155 +3547,155 @@ var xe = (
3598
3547
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3599
3548
  }, t;
3600
3549
  }(Error)
3601
- ), Tt = (
3550
+ ), yt = (
3602
3551
  /** @class */
3603
3552
  function(e) {
3604
- R(t, e);
3553
+ M(t, e);
3605
3554
  function t(r, n, i, o) {
3606
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
3555
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3607
3556
  }
3608
3557
  return t;
3609
- }(xe)
3610
- ), si = (
3558
+ }(Ee)
3559
+ ), zn = (
3611
3560
  /** @class */
3612
3561
  function(e) {
3613
- R(t, e);
3562
+ M(t, e);
3614
3563
  function t(r, n, i) {
3615
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
3564
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3616
3565
  }
3617
3566
  return t;
3618
- }(xe)
3619
- ), ai = (
3567
+ }(Ee)
3568
+ ), Zn = (
3620
3569
  /** @class */
3621
3570
  function(e) {
3622
- R(t, e);
3571
+ M(t, e);
3623
3572
  function t(r, n) {
3624
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
3573
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3625
3574
  }
3626
3575
  return t;
3627
- }(xe)
3576
+ }(Ee)
3628
3577
  ), S;
3629
3578
  (function(e) {
3630
3579
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3631
3580
  })(S || (S = {}));
3632
- function ui(e) {
3581
+ function Qn(e) {
3633
3582
  return e.length < 2 ? e : e.reduce(function(t, r) {
3634
3583
  var n = t[t.length - 1];
3635
3584
  return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3636
3585
  }, []);
3637
3586
  }
3638
- function hi(e) {
3587
+ function Jn(e) {
3639
3588
  return typeof e == "function";
3640
3589
  }
3641
- function be(e, t, r, n, i, o, s) {
3642
- if (e.length === 1 && gt(e[0]))
3590
+ function me(e, t, r, n, i, o, a) {
3591
+ if (e.length === 1 && lt(e[0]))
3643
3592
  return [
3644
3593
  {
3645
3594
  type: S.literal,
3646
3595
  value: e[0].value
3647
3596
  }
3648
3597
  ];
3649
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3650
- var l = u[h];
3651
- if (gt(l)) {
3652
- a.push({
3598
+ for (var s = [], l = 0, u = e; l < u.length; l++) {
3599
+ var h = u[l];
3600
+ if (lt(h)) {
3601
+ s.push({
3653
3602
  type: S.literal,
3654
- value: l.value
3603
+ value: h.value
3655
3604
  });
3656
3605
  continue;
3657
3606
  }
3658
- if (In(l)) {
3659
- typeof o == "number" && a.push({
3607
+ if (gn(h)) {
3608
+ typeof o == "number" && s.push({
3660
3609
  type: S.literal,
3661
3610
  value: r.getNumberFormat(t).format(o)
3662
3611
  });
3663
3612
  continue;
3664
3613
  }
3665
- var c = l.value;
3666
- if (!(i && c in i))
3667
- throw new ai(c, s);
3668
- var f = i[c];
3669
- if (On(l)) {
3670
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3671
- type: typeof f == "string" ? S.literal : S.object,
3672
- value: f
3614
+ var f = h.value;
3615
+ if (!(i && f in i))
3616
+ throw new Zn(f, a);
3617
+ var c = i[f];
3618
+ if (yn(h)) {
3619
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3620
+ type: typeof c == "string" ? S.literal : S.object,
3621
+ value: c
3673
3622
  });
3674
3623
  continue;
3675
3624
  }
3676
- if (zt(l)) {
3677
- var p = typeof l.style == "string" ? n.date[l.style] : ke(l.style) ? l.style.parsedOptions : void 0;
3678
- a.push({
3625
+ if (Ut(h)) {
3626
+ var d = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
3627
+ s.push({
3679
3628
  type: S.literal,
3680
- value: r.getDateTimeFormat(t, p).format(f)
3629
+ value: r.getDateTimeFormat(t, d).format(c)
3681
3630
  });
3682
3631
  continue;
3683
3632
  }
3684
- if (Zt(l)) {
3685
- var p = typeof l.style == "string" ? n.time[l.style] : ke(l.style) ? l.style.parsedOptions : n.time.medium;
3686
- a.push({
3633
+ if (Dt(h)) {
3634
+ var d = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
3635
+ s.push({
3687
3636
  type: S.literal,
3688
- value: r.getDateTimeFormat(t, p).format(f)
3637
+ value: r.getDateTimeFormat(t, d).format(c)
3689
3638
  });
3690
3639
  continue;
3691
3640
  }
3692
- if (Xt(l)) {
3693
- var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3694
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3641
+ if ($t(h)) {
3642
+ var d = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
3643
+ d && d.scale && (c = c * (d.scale || 1)), s.push({
3695
3644
  type: S.literal,
3696
- value: r.getNumberFormat(t, p).format(f)
3645
+ value: r.getNumberFormat(t, d).format(c)
3697
3646
  });
3698
3647
  continue;
3699
3648
  }
3700
- if (qt(l)) {
3701
- var v = l.children, m = l.value, w = i[m];
3702
- if (!hi(w))
3703
- throw new si(m, "function", s);
3704
- var N = be(v, t, r, n, i, o), C = w(N.map(function(I) {
3705
- return I.value;
3649
+ if (jt(h)) {
3650
+ var v = h.children, m = h.value, w = i[m];
3651
+ if (!Jn(w))
3652
+ throw new zn(m, "function", a);
3653
+ var I = me(v, t, r, n, i, o), N = w(I.map(function(O) {
3654
+ return O.value;
3706
3655
  }));
3707
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(I) {
3656
+ Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(O) {
3708
3657
  return {
3709
- type: typeof I == "string" ? S.literal : S.object,
3710
- value: I
3658
+ type: typeof O == "string" ? S.literal : S.object,
3659
+ value: O
3711
3660
  };
3712
3661
  }));
3713
3662
  }
3714
- if (Qt(l)) {
3715
- var T = l.options[f] || l.options.other;
3663
+ if (Gt(h)) {
3664
+ var T = h.options[c] || h.options.other;
3716
3665
  if (!T)
3717
- throw new Tt(l.value, f, Object.keys(l.options), s);
3718
- a.push.apply(a, be(T.value, t, r, n, i));
3666
+ throw new yt(h.value, c, Object.keys(h.options), a);
3667
+ s.push.apply(s, me(T.value, t, r, n, i));
3719
3668
  continue;
3720
3669
  }
3721
- if (Jt(l)) {
3722
- var T = l.options["=".concat(f)];
3670
+ if (Ft(h)) {
3671
+ var T = h.options["=".concat(c)];
3723
3672
  if (!T) {
3724
3673
  if (!Intl.PluralRules)
3725
- throw new xe(`Intl.PluralRules is not available in this environment.
3674
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3726
3675
  Try polyfilling it using "@formatjs/intl-pluralrules"
3727
- `, Q.MISSING_INTL_API, s);
3728
- var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3729
- T = l.options[$] || l.options.other;
3676
+ `, Z.MISSING_INTL_API, a);
3677
+ var R = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3678
+ T = h.options[R] || h.options.other;
3730
3679
  }
3731
3680
  if (!T)
3732
- throw new Tt(l.value, f, Object.keys(l.options), s);
3733
- a.push.apply(a, be(T.value, t, r, n, i, f - (l.offset || 0)));
3681
+ throw new yt(h.value, c, Object.keys(h.options), a);
3682
+ s.push.apply(s, me(T.value, t, r, n, i, c - (h.offset || 0)));
3734
3683
  continue;
3735
3684
  }
3736
3685
  }
3737
- return ui(a);
3686
+ return Qn(s);
3738
3687
  }
3739
- function li(e, t) {
3688
+ function qn(e, t) {
3740
3689
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3741
3690
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3742
3691
  }, {})) : e;
3743
3692
  }
3744
- function ci(e, t) {
3693
+ function Yn(e, t) {
3745
3694
  return t ? Object.keys(e).reduce(function(r, n) {
3746
- return r[n] = li(e[n], t[n]), r;
3695
+ return r[n] = qn(e[n], t[n]), r;
3747
3696
  }, g({}, e)) : e;
3748
3697
  }
3749
- function Ne(e) {
3698
+ function Ae(e) {
3750
3699
  return {
3751
3700
  create: function() {
3752
3701
  return {
@@ -3760,39 +3709,39 @@ function Ne(e) {
3760
3709
  }
3761
3710
  };
3762
3711
  }
3763
- function fi(e) {
3712
+ function Kn(e) {
3764
3713
  return e === void 0 && (e = {
3765
3714
  number: {},
3766
3715
  dateTime: {},
3767
3716
  pluralRules: {}
3768
3717
  }), {
3769
- getNumberFormat: Ae(function() {
3718
+ getNumberFormat: He(function() {
3770
3719
  for (var t, r = [], n = 0; n < arguments.length; n++)
3771
3720
  r[n] = arguments[n];
3772
- return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
3721
+ return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3773
3722
  }, {
3774
- cache: Ne(e.number),
3775
- strategy: Oe.variadic
3723
+ cache: Ae(e.number),
3724
+ strategy: Be.variadic
3776
3725
  }),
3777
- getDateTimeFormat: Ae(function() {
3726
+ getDateTimeFormat: He(function() {
3778
3727
  for (var t, r = [], n = 0; n < arguments.length; n++)
3779
3728
  r[n] = arguments[n];
3780
- return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
3729
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3781
3730
  }, {
3782
- cache: Ne(e.dateTime),
3783
- strategy: Oe.variadic
3731
+ cache: Ae(e.dateTime),
3732
+ strategy: Be.variadic
3784
3733
  }),
3785
- getPluralRules: Ae(function() {
3734
+ getPluralRules: He(function() {
3786
3735
  for (var t, r = [], n = 0; n < arguments.length; n++)
3787
3736
  r[n] = arguments[n];
3788
- return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
3737
+ return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3789
3738
  }, {
3790
- cache: Ne(e.pluralRules),
3791
- strategy: Oe.variadic
3739
+ cache: Ae(e.pluralRules),
3740
+ strategy: Be.variadic
3792
3741
  })
3793
3742
  };
3794
3743
  }
3795
- var pi = (
3744
+ var ei = (
3796
3745
  /** @class */
3797
3746
  function() {
3798
3747
  function e(t, r, n, i) {
@@ -3802,35 +3751,35 @@ var pi = (
3802
3751
  number: {},
3803
3752
  dateTime: {},
3804
3753
  pluralRules: {}
3805
- }, this.format = function(h) {
3806
- var u = o.formatToParts(h);
3754
+ }, this.format = function(l) {
3755
+ var u = o.formatToParts(l);
3807
3756
  if (u.length === 1)
3808
3757
  return u[0].value;
3809
- var l = u.reduce(function(c, f) {
3810
- return !c.length || f.type !== S.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3758
+ var h = u.reduce(function(f, c) {
3759
+ return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3811
3760
  }, []);
3812
- return l.length <= 1 ? l[0] || "" : l;
3813
- }, this.formatToParts = function(h) {
3814
- return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3761
+ return h.length <= 1 ? h[0] || "" : h;
3762
+ }, this.formatToParts = function(l) {
3763
+ return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3815
3764
  }, this.resolvedOptions = function() {
3816
- var h;
3765
+ var l;
3817
3766
  return {
3818
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3767
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3819
3768
  };
3820
3769
  }, this.getAst = function() {
3821
3770
  return o.ast;
3822
3771
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3823
3772
  if (this.message = t, !e.__parse)
3824
3773
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3825
- var s = i || {};
3826
- s.formatters;
3827
- var a = Vr(s, ["formatters"]);
3828
- this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3774
+ var a = i || {};
3775
+ a.formatters;
3776
+ var s = Ir(a, ["formatters"]);
3777
+ this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
3829
3778
  } else
3830
3779
  this.ast = t;
3831
3780
  if (!Array.isArray(this.ast))
3832
3781
  throw new TypeError("A message must be provided as a String or AST.");
3833
- this.formats = ci(e.formats, n), this.formatters = i && i.formatters || fi(this.formatterCache);
3782
+ this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || Kn(this.formatterCache);
3834
3783
  }
3835
3784
  return Object.defineProperty(e, "defaultLocale", {
3836
3785
  get: function() {
@@ -3839,11 +3788,11 @@ var pi = (
3839
3788
  enumerable: !1,
3840
3789
  configurable: !0
3841
3790
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3842
- if (typeof Intl.Locale != "undefined") {
3791
+ if (!(typeof Intl.Locale > "u")) {
3843
3792
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3844
3793
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3845
3794
  }
3846
- }, e.__parse = oi, e.formats = {
3795
+ }, e.__parse = Xn, e.formats = {
3847
3796
  number: {
3848
3797
  integer: {
3849
3798
  maximumFractionDigits: 0
@@ -3904,7 +3853,7 @@ var pi = (
3904
3853
  }, e;
3905
3854
  }()
3906
3855
  );
3907
- function di(e, t) {
3856
+ function ti(e, t) {
3908
3857
  if (t == null)
3909
3858
  return;
3910
3859
  if (t in e)
@@ -3925,92 +3874,92 @@ function di(e, t) {
3925
3874
  n = void 0;
3926
3875
  return n;
3927
3876
  }
3928
- const U = {}, mi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), sr = (e, t) => {
3877
+ const $ = {}, ri = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), qt = (e, t) => {
3929
3878
  if (t == null)
3930
3879
  return;
3931
- if (t in U && e in U[t])
3932
- return U[t][e];
3933
- const r = we(t);
3880
+ if (t in $ && e in $[t])
3881
+ return $[t][e];
3882
+ const r = xe(t);
3934
3883
  for (let n = 0; n < r.length; n++) {
3935
- const i = r[n], o = yi(i, e);
3884
+ const i = r[n], o = ii(i, e);
3936
3885
  if (o)
3937
- return mi(e, t, o);
3886
+ return ri(e, t, o);
3938
3887
  }
3939
3888
  };
3940
- let tt;
3941
- const he = Ee({});
3942
- function bi(e) {
3943
- return tt[e] || null;
3889
+ let qe;
3890
+ const ue = _e({});
3891
+ function ni(e) {
3892
+ return qe[e] || null;
3944
3893
  }
3945
- function ar(e) {
3946
- return e in tt;
3894
+ function Yt(e) {
3895
+ return e in qe;
3947
3896
  }
3948
- function yi(e, t) {
3949
- if (!ar(e))
3897
+ function ii(e, t) {
3898
+ if (!Yt(e))
3950
3899
  return null;
3951
- const r = bi(e);
3952
- return di(r, t);
3900
+ const r = ni(e);
3901
+ return ti(r, t);
3953
3902
  }
3954
- function gi(e) {
3903
+ function oi(e) {
3955
3904
  if (e == null)
3956
3905
  return;
3957
- const t = we(e);
3906
+ const t = xe(e);
3958
3907
  for (let r = 0; r < t.length; r++) {
3959
3908
  const n = t[r];
3960
- if (ar(n))
3909
+ if (Yt(n))
3961
3910
  return n;
3962
3911
  }
3963
3912
  }
3964
- function ur(e, ...t) {
3965
- delete U[e], he.update((r) => (r[e] = wn.all([r[e] || {}, ...t]), r));
3913
+ function Kt(e, ...t) {
3914
+ delete $[e], ue.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
3966
3915
  }
3967
- Y(
3968
- [he],
3916
+ q(
3917
+ [ue],
3969
3918
  ([e]) => Object.keys(e)
3970
3919
  );
3971
- he.subscribe((e) => tt = e);
3972
- const ye = {};
3973
- function vi(e, t) {
3974
- ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3920
+ ue.subscribe((e) => qe = e);
3921
+ const be = {};
3922
+ function si(e, t) {
3923
+ be[e].delete(t), be[e].size === 0 && delete be[e];
3975
3924
  }
3976
- function hr(e) {
3977
- return ye[e];
3925
+ function er(e) {
3926
+ return be[e];
3978
3927
  }
3979
- function _i(e) {
3980
- return we(e).map((t) => {
3981
- const r = hr(t);
3928
+ function ai(e) {
3929
+ return xe(e).map((t) => {
3930
+ const r = er(t);
3982
3931
  return [t, r ? [...r] : []];
3983
3932
  }).filter(([, t]) => t.length > 0);
3984
3933
  }
3985
- function Qe(e) {
3986
- return e == null ? !1 : we(e).some(
3934
+ function Xe(e) {
3935
+ return e == null ? !1 : xe(e).some(
3987
3936
  (t) => {
3988
3937
  var r;
3989
- return (r = hr(t)) == null ? void 0 : r.size;
3938
+ return (r = er(t)) == null ? void 0 : r.size;
3990
3939
  }
3991
3940
  );
3992
3941
  }
3993
- function Ei(e, t) {
3942
+ function ui(e, t) {
3994
3943
  return Promise.all(
3995
- t.map((n) => (vi(e, n), n().then((i) => i.default || i)))
3996
- ).then((n) => ur(e, ...n));
3997
- }
3998
- const te = {};
3999
- function lr(e) {
4000
- if (!Qe(e))
4001
- return e in te ? te[e] : Promise.resolve();
4002
- const t = _i(e);
4003
- return te[e] = Promise.all(
3944
+ t.map((n) => (si(e, n), n().then((i) => i.default || i)))
3945
+ ).then((n) => Kt(e, ...n));
3946
+ }
3947
+ const ee = {};
3948
+ function tr(e) {
3949
+ if (!Xe(e))
3950
+ return e in ee ? ee[e] : Promise.resolve();
3951
+ const t = ai(e);
3952
+ return ee[e] = Promise.all(
4004
3953
  t.map(
4005
- ([r, n]) => Ei(r, n)
3954
+ ([r, n]) => ui(r, n)
4006
3955
  )
4007
3956
  ).then(() => {
4008
- if (Qe(e))
4009
- return lr(e);
4010
- delete te[e];
4011
- }), te[e];
3957
+ if (Xe(e))
3958
+ return tr(e);
3959
+ delete ee[e];
3960
+ }), ee[e];
4012
3961
  }
4013
- const xi = {
3962
+ const hi = {
4014
3963
  number: {
4015
3964
  scientific: { notation: "scientific" },
4016
3965
  engineering: { notation: "engineering" },
@@ -4039,180 +3988,180 @@ const xi = {
4039
3988
  timeZoneName: "short"
4040
3989
  }
4041
3990
  }
4042
- }, wi = {
3991
+ }, li = {
4043
3992
  fallbackLocale: null,
4044
3993
  loadingDelay: 200,
4045
- formats: xi,
3994
+ formats: hi,
4046
3995
  warnOnMissingMessages: !0,
4047
3996
  handleMissingMessage: void 0,
4048
3997
  ignoreTag: !0
4049
- }, Si = wi;
4050
- function J() {
4051
- return Si;
4052
- }
4053
- const Ce = Ee(!1);
4054
- var Ti = Object.defineProperty, Hi = Object.defineProperties, Bi = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oi = (e, t) => {
4055
- for (var r in t || (t = {}))
4056
- Pi.call(t, r) && Bt(e, r, t[r]);
4057
- if (Ht)
4058
- for (var r of Ht(t))
4059
- Ai.call(t, r) && Bt(e, r, t[r]);
3998
+ }, fi = li;
3999
+ function Q() {
4000
+ return fi;
4001
+ }
4002
+ const Oe = _e(!1);
4003
+ var ci = Object.defineProperty, di = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
4004
+ for (var r in t)
4005
+ mi.call(t, r) && vt(e, r, t[r]);
4006
+ if (gt)
4007
+ for (var r of gt(t))
4008
+ bi.call(t, r) && vt(e, r, t[r]);
4060
4009
  return e;
4061
- }, Ii = (e, t) => Hi(e, Bi(t));
4062
- let Je;
4063
- const ge = Ee(null);
4064
- function Pt(e) {
4010
+ }, gi = (e, t) => di(e, pi(t));
4011
+ let ze;
4012
+ const ye = _e(null);
4013
+ function _t(e) {
4065
4014
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4066
4015
  }
4067
- function we(e, t = J().fallbackLocale) {
4068
- const r = Pt(e);
4069
- return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
4016
+ function xe(e, t = Q().fallbackLocale) {
4017
+ const r = _t(e);
4018
+ return t ? [.../* @__PURE__ */ new Set([...r, ..._t(t)])] : r;
4070
4019
  }
4071
- function D() {
4072
- return Je != null ? Je : void 0;
4020
+ function U() {
4021
+ return ze ?? void 0;
4073
4022
  }
4074
- ge.subscribe((e) => {
4075
- Je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4023
+ ye.subscribe((e) => {
4024
+ ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4076
4025
  });
4077
- const Ni = (e) => {
4078
- if (e && gi(e) && Qe(e)) {
4079
- const { loadingDelay: t } = J();
4026
+ const vi = (e) => {
4027
+ if (e && oi(e) && Xe(e)) {
4028
+ const { loadingDelay: t } = Q();
4080
4029
  let r;
4081
- return typeof window != "undefined" && D() != null && t ? r = window.setTimeout(
4082
- () => Ce.set(!0),
4030
+ return typeof window < "u" && U() != null && t ? r = window.setTimeout(
4031
+ () => Oe.set(!0),
4083
4032
  t
4084
- ) : Ce.set(!0), lr(e).then(() => {
4085
- ge.set(e);
4033
+ ) : Oe.set(!0), tr(e).then(() => {
4034
+ ye.set(e);
4086
4035
  }).finally(() => {
4087
- clearTimeout(r), Ce.set(!1);
4036
+ clearTimeout(r), Oe.set(!1);
4088
4037
  });
4089
4038
  }
4090
- return ge.set(e);
4091
- }, K = Ii(Oi({}, ge), {
4092
- set: Ni
4093
- }), Se = (e) => {
4039
+ return ye.set(e);
4040
+ }, Y = gi(yi({}, ye), {
4041
+ set: vi
4042
+ }), we = (e) => {
4094
4043
  const t = /* @__PURE__ */ Object.create(null);
4095
4044
  return (n) => {
4096
4045
  const i = JSON.stringify(n);
4097
4046
  return i in t ? t[i] : t[i] = e(n);
4098
4047
  };
4099
4048
  };
4100
- var Ci = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4049
+ var _i = Object.defineProperty, ge = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4101
4050
  for (var r in t || (t = {}))
4102
- cr.call(t, r) && At(e, r, t[r]);
4103
- if (ve)
4104
- for (var r of ve(t))
4105
- fr.call(t, r) && At(e, r, t[r]);
4051
+ rr.call(t, r) && Et(e, r, t[r]);
4052
+ if (ge)
4053
+ for (var r of ge(t))
4054
+ nr.call(t, r) && Et(e, r, t[r]);
4106
4055
  return e;
4107
- }, ee = (e, t) => {
4056
+ }, K = (e, t) => {
4108
4057
  var r = {};
4109
4058
  for (var n in e)
4110
- cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4111
- if (e != null && ve)
4112
- for (var n of ve(e))
4113
- t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
4059
+ rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4060
+ if (e != null && ge)
4061
+ for (var n of ge(e))
4062
+ t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
4114
4063
  return r;
4115
4064
  };
4116
- const se = (e, t) => {
4117
- const { formats: r } = J();
4065
+ const oe = (e, t) => {
4066
+ const { formats: r } = Q();
4118
4067
  if (e in r && t in r[e])
4119
4068
  return r[e][t];
4120
4069
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4121
- }, Li = Se(
4070
+ }, Ei = we(
4122
4071
  (e) => {
4123
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4072
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4124
4073
  if (r == null)
4125
4074
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4126
- return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4075
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4127
4076
  }
4128
- ), Mi = Se(
4077
+ ), xi = we(
4129
4078
  (e) => {
4130
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4079
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4131
4080
  if (r == null)
4132
4081
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4133
- return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4082
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4134
4083
  }
4135
- ), Ri = Se(
4084
+ ), wi = we(
4136
4085
  (e) => {
4137
- var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
4086
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4138
4087
  if (r == null)
4139
4088
  throw new Error(
4140
4089
  '[svelte-i18n] A "locale" must be set to format time values'
4141
4090
  );
4142
- return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4091
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4143
4092
  }
4144
- ), $i = (e = {}) => {
4093
+ ), Si = (e = {}) => {
4145
4094
  var t = e, {
4146
- locale: r = D()
4147
- } = t, n = ee(t, [
4095
+ locale: r = U()
4096
+ } = t, n = K(t, [
4148
4097
  "locale"
4149
4098
  ]);
4150
- return Li(rt({ locale: r }, n));
4151
- }, Ui = (e = {}) => {
4099
+ return Ei(Ye({ locale: r }, n));
4100
+ }, Ti = (e = {}) => {
4152
4101
  var t = e, {
4153
- locale: r = D()
4154
- } = t, n = ee(t, [
4102
+ locale: r = U()
4103
+ } = t, n = K(t, [
4155
4104
  "locale"
4156
4105
  ]);
4157
- return Mi(rt({ locale: r }, n));
4158
- }, Di = (e = {}) => {
4106
+ return xi(Ye({ locale: r }, n));
4107
+ }, Hi = (e = {}) => {
4159
4108
  var t = e, {
4160
- locale: r = D()
4161
- } = t, n = ee(t, [
4109
+ locale: r = U()
4110
+ } = t, n = K(t, [
4162
4111
  "locale"
4163
4112
  ]);
4164
- return Ri(rt({ locale: r }, n));
4165
- }, Gi = Se(
4113
+ return wi(Ye({ locale: r }, n));
4114
+ }, Bi = we(
4166
4115
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4167
- (e, t = D()) => new pi(e, t, J().formats, {
4168
- ignoreTag: J().ignoreTag
4116
+ (e, t = U()) => new ei(e, t, Q().formats, {
4117
+ ignoreTag: Q().ignoreTag
4169
4118
  })
4170
- ), Fi = (e, t = {}) => {
4119
+ ), Pi = (e, t = {}) => {
4171
4120
  var r, n, i, o;
4172
- let s = t;
4173
- typeof e == "object" && (s = e, e = s.id);
4121
+ let a = t;
4122
+ typeof e == "object" && (a = e, e = a.id);
4174
4123
  const {
4175
- values: a,
4176
- locale: h = D(),
4124
+ values: s,
4125
+ locale: l = U(),
4177
4126
  default: u
4178
- } = s;
4179
- if (h == null)
4127
+ } = a;
4128
+ if (l == null)
4180
4129
  throw new Error(
4181
4130
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4182
4131
  );
4183
- let l = sr(e, h);
4184
- if (!l)
4185
- l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4186
- else if (typeof l != "string")
4132
+ let h = qt(e, l);
4133
+ if (!h)
4134
+ h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4135
+ else if (typeof h != "string")
4187
4136
  return console.warn(
4188
- `[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.`
4189
- ), l;
4190
- if (!a)
4191
- return l;
4192
- let c = l;
4137
+ `[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.`
4138
+ ), h;
4139
+ if (!s)
4140
+ return h;
4141
+ let f = h;
4193
4142
  try {
4194
- c = Gi(l, h).format(a);
4195
- } catch (f) {
4196
- f instanceof Error && console.warn(
4143
+ f = Bi(h, l).format(s);
4144
+ } catch (c) {
4145
+ c instanceof Error && console.warn(
4197
4146
  `[svelte-i18n] Message "${e}" has syntax error:`,
4198
- f.message
4147
+ c.message
4199
4148
  );
4200
4149
  }
4201
- return c;
4202
- }, ji = (e, t) => Di(t).format(e), ki = (e, t) => Ui(t).format(e), Wi = (e, t) => $i(t).format(e), Vi = (e, t = D()) => sr(e, t), Xi = Y([K, he], () => Fi);
4203
- Y([K], () => ji);
4204
- Y([K], () => ki);
4205
- Y([K], () => Wi);
4206
- Y([K, he], () => Vi);
4207
- window.emWidgets = { topic: sn };
4208
- const zi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4209
- function Ot(e, t) {
4210
- ur(e, t);
4211
- }
4212
- function Zi(e) {
4213
- K.set(e);
4214
- }
4215
- const It = {
4150
+ return f;
4151
+ }, Ai = (e, t) => Hi(t).format(e), Oi = (e, t) => Ti(t).format(e), Ii = (e, t) => Si(t).format(e), Ni = (e, t = U()) => qt(e, t), Ci = q([Y, ue], () => Pi);
4152
+ q([Y], () => Ai);
4153
+ q([Y], () => Oi);
4154
+ q([Y], () => Ii);
4155
+ q([Y, ue], () => Ni);
4156
+ window.emWidgets = { topic: Vr };
4157
+ const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4158
+ function xt(e, t) {
4159
+ Kt(e, t);
4160
+ }
4161
+ function Mi(e) {
4162
+ Y.set(e);
4163
+ }
4164
+ const wt = {
4216
4165
  en: {
4217
4166
  titlePlayerWithdrawal: "Withdrawal",
4218
4167
  loading: "Loading, please wait ..."
@@ -4246,132 +4195,132 @@ const It = {
4246
4195
  loading: "Loading, please wait ..."
4247
4196
  }
4248
4197
  };
4249
- function Qi(e) {
4250
- Sr(e, "svelte-zw6451", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
4198
+ function Ri(e) {
4199
+ lr(e, "svelte-zw6451", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
4251
4200
  }
4252
- function Ji(e) {
4253
- let t, r, n, i, o, s, a, h, u, l, c = (
4201
+ function $i(e) {
4202
+ let t, r, n, i, o, a, s, l, u, h, f = (
4254
4203
  /*$_*/
4255
4204
  e[3]("titlePlayerWithdrawal") + ""
4256
- ), f, p, v;
4205
+ ), c, d, v;
4257
4206
  return {
4258
4207
  c() {
4259
- t = M("div"), r = F("svg"), n = F("defs"), i = F("style"), o = ne(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = F("g"), a = F("g"), h = F("path"), u = Le(), l = M("h2"), f = ne(c), E(h, "class", "aaa"), E(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(h, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(l, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
4208
+ t = L("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = L("h2"), c = re(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
4260
4209
  },
4261
4210
  m(m, w) {
4262
- ue(m, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, s), x(s, a), x(a, h), x(t, u), x(t, l), x(l, f), p || (v = Br(
4211
+ ae(m, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, c), d || (v = dr(
4263
4212
  t,
4264
4213
  "click",
4265
4214
  /*click_handler*/
4266
4215
  e[15]
4267
- ), p = !0);
4216
+ ), d = !0);
4268
4217
  },
4269
4218
  p(m, w) {
4270
4219
  w & /*$_*/
4271
- 8 && c !== (c = /*$_*/
4272
- m[3]("titlePlayerWithdrawal") + "") && Ye(f, c);
4220
+ 8 && f !== (f = /*$_*/
4221
+ m[3]("titlePlayerWithdrawal") + "") && Qe(c, f);
4273
4222
  },
4274
4223
  d(m) {
4275
- m && q(t), p = !1, v();
4224
+ m && J(t), d = !1, v();
4276
4225
  }
4277
4226
  };
4278
4227
  }
4279
- function qi(e) {
4228
+ function Ui(e) {
4280
4229
  let t, r, n;
4281
4230
  return {
4282
4231
  c() {
4283
- t = M("div"), r = M("iframe"), ut(r.src, n = /*iframeUrl*/
4232
+ t = L("div"), r = L("iframe"), et(r.src, n = /*iframeUrl*/
4284
4233
  e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
4285
4234
  },
4286
4235
  m(i, o) {
4287
- ue(i, t, o), x(t, r);
4236
+ ae(i, t, o), x(t, r);
4288
4237
  },
4289
4238
  p(i, o) {
4290
4239
  o & /*iframeUrl*/
4291
- 4 && !ut(r.src, n = /*iframeUrl*/
4240
+ 4 && !et(r.src, n = /*iframeUrl*/
4292
4241
  i[2]) && E(r, "src", n);
4293
4242
  },
4294
4243
  d(i) {
4295
- i && q(t);
4244
+ i && J(t);
4296
4245
  }
4297
4246
  };
4298
4247
  }
4299
- function Yi(e) {
4248
+ function Di(e) {
4300
4249
  let t, r = (
4301
4250
  /*$_*/
4302
4251
  e[3]("loading") + ""
4303
4252
  ), n;
4304
4253
  return {
4305
4254
  c() {
4306
- t = M("p"), n = ne(r);
4255
+ t = L("p"), n = re(r);
4307
4256
  },
4308
4257
  m(i, o) {
4309
- ue(i, t, o), x(t, n);
4258
+ ae(i, t, o), x(t, n);
4310
4259
  },
4311
4260
  p(i, o) {
4312
4261
  o & /*$_*/
4313
4262
  8 && r !== (r = /*$_*/
4314
- i[3]("loading") + "") && Ye(n, r);
4263
+ i[3]("loading") + "") && Qe(n, r);
4315
4264
  },
4316
4265
  d(i) {
4317
- i && q(t);
4266
+ i && J(t);
4318
4267
  }
4319
4268
  };
4320
4269
  }
4321
- function Ki(e) {
4270
+ function Gi(e) {
4322
4271
  let t, r, n, i = (
4323
4272
  /*$_*/
4324
4273
  e[3]("titlePlayerWithdrawal") + ""
4325
- ), o, s, a = (
4274
+ ), o, a, s = (
4326
4275
  /*isMobile*/
4327
- e[4] && Ji(e)
4276
+ e[4] && $i(e)
4328
4277
  );
4329
- function h(c, f) {
4278
+ function l(f, c) {
4330
4279
  return (
4331
4280
  /*isLoading*/
4332
- c[1] ? Yi : qi
4281
+ f[1] ? Di : Ui
4333
4282
  );
4334
4283
  }
4335
- let u = h(e), l = u(e);
4284
+ let u = l(e), h = u(e);
4336
4285
  return {
4337
4286
  c() {
4338
- t = M("div"), a && a.c(), r = Le(), n = M("h2"), o = ne(i), s = Le(), l.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4287
+ t = L("div"), s && s.c(), r = Ie(), n = L("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
4339
4288
  (e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
4340
4289
  (e[4] ? "WithdrawalWrapperMobile" : ""));
4341
4290
  },
4342
- m(c, f) {
4343
- ue(c, t, f), a && a.m(t, null), x(t, r), x(t, n), x(n, o), x(t, s), l.m(t, null), e[16](t);
4291
+ m(f, c) {
4292
+ ae(f, t, c), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[16](t);
4344
4293
  },
4345
- p(c, [f]) {
4294
+ p(f, [c]) {
4346
4295
  /*isMobile*/
4347
- c[4] && a.p(c, f), f & /*$_*/
4296
+ f[4] && s.p(f, c), c & /*$_*/
4348
4297
  8 && i !== (i = /*$_*/
4349
- c[3]("titlePlayerWithdrawal") + "") && Ye(o, i), u === (u = h(c)) && l ? l.p(c, f) : (l.d(1), l = u(c), l && (l.c(), l.m(t, null)));
4298
+ f[3]("titlePlayerWithdrawal") + "") && Qe(o, i), u === (u = l(f)) && h ? h.p(f, c) : (h.d(1), h = u(f), h && (h.c(), h.m(t, null)));
4350
4299
  },
4351
- i: O,
4352
- o: O,
4353
- d(c) {
4354
- c && q(t), a && a.d(), l.d(), e[16](null);
4300
+ i: A,
4301
+ o: A,
4302
+ d(f) {
4303
+ f && J(t), s && s.d(), h.d(), e[16](null);
4355
4304
  }
4356
4305
  };
4357
4306
  }
4358
- function eo(e, t, r) {
4307
+ function Fi(e, t, r) {
4359
4308
  let n;
4360
- wr(e, Xi, (d) => r(3, n = d));
4361
- let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: s = "" } = t, { lang: a = "en" } = t, { hasdefaultamount: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { playercurrency: f = "" } = t, p, v = window.navigator.userAgent, m = zi(v) !== "PC", w = !0, N = 0, C = "";
4309
+ hr(e, Ci, (p) => r(3, n = p));
4310
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { playercurrency: c = "" } = t, d, v = window.navigator.userAgent, m = Li(v) !== "PC", w = !0, I = 0, N = "";
4362
4311
  const T = () => {
4363
- fetch(c).then((P) => P.json()).then((P) => {
4364
- Object.keys(P).forEach((H) => {
4365
- Ot(H, P[H]);
4312
+ fetch(f).then((B) => B.json()).then((B) => {
4313
+ Object.keys(B).forEach((H) => {
4314
+ xt(H, B[H]);
4366
4315
  });
4367
- }).catch((P) => {
4368
- console.log(P);
4316
+ }).catch((B) => {
4317
+ console.log(B);
4369
4318
  });
4370
4319
  };
4371
- Object.keys(It).forEach((d) => {
4372
- Ot(d, It[d]);
4320
+ Object.keys(wt).forEach((p) => {
4321
+ xt(p, wt[p]);
4373
4322
  });
4374
- const $ = () => {
4323
+ const R = () => {
4375
4324
  window.postMessage(
4376
4325
  {
4377
4326
  type: "PlayerAccountMenuActive",
@@ -4379,14 +4328,14 @@ function eo(e, t, r) {
4379
4328
  },
4380
4329
  window.location.href
4381
4330
  );
4382
- }, I = (d) => {
4383
- if (d.data) {
4384
- switch (d.data.type) {
4331
+ }, O = (p) => {
4332
+ if (p.data) {
4333
+ switch (p.data.type) {
4385
4334
  case "ProfileDetailsData":
4386
- r(6, f = d.data.profileDetails.currency);
4335
+ r(6, c = p.data.profileDetails.currency);
4387
4336
  break;
4388
4337
  }
4389
- switch (d.data.redirect) {
4338
+ switch (p.data.redirect) {
4390
4339
  case "mm-hc-casino":
4391
4340
  window.postMessage({ type: "GoToCasino" }, window.location.href);
4392
4341
  break;
@@ -4409,98 +4358,98 @@ function eo(e, t, r) {
4409
4358
  break;
4410
4359
  }
4411
4360
  }
4412
- }, G = () => {
4413
- let d = new URL(`${i}/v1/player/${s}/hostedcashier/initializewithdraw`);
4414
- if (d.searchParams.append("language", a), h)
4415
- switch (f) {
4361
+ }, D = () => {
4362
+ let p = new URL(`${i}/v1/player/${a}/hostedcashier/initializewithdraw`);
4363
+ if (p.searchParams.append("language", s), l)
4364
+ switch (c) {
4416
4365
  case "USD":
4417
- N = 0.4;
4366
+ I = 0.4;
4418
4367
  break;
4419
4368
  case "CDF":
4420
- N = 1e3;
4369
+ I = 1e3;
4421
4370
  break;
4422
4371
  }
4423
- let P = {
4372
+ let B = {
4424
4373
  method: "POST",
4425
4374
  headers: {
4426
4375
  "X-SessionId": o,
4427
- currency: f || "EUR",
4428
- amount: N,
4376
+ currency: c || "EUR",
4377
+ amount: I,
4429
4378
  cashierMode: "Default",
4430
4379
  IsShortCashier: !1,
4431
4380
  accept: "application/json"
4432
4381
  }
4433
4382
  };
4434
- fetch(d.href, P).then((H) => H.json()).then(
4383
+ fetch(p.href, B).then((H) => H.json()).then(
4435
4384
  (H) => {
4436
- r(1, w = !1), r(2, C = H.CashierUrl);
4385
+ r(1, w = !1), r(2, N = H.CashierUrl);
4437
4386
  },
4438
4387
  (H) => {
4439
4388
  console.error(H);
4440
4389
  }
4441
4390
  );
4442
- }, le = () => {
4443
- Zi(a);
4444
- }, pr = () => {
4445
- let d = document.createElement("style");
4446
- d.innerHTML = u, p.appendChild(d);
4447
- }, dr = () => {
4448
- let d = new URL(l), P = document.createElement("style");
4449
- fetch(d.href).then((H) => H.text()).then((H) => {
4450
- P.innerHTML = H, setTimeout(
4391
+ }, he = () => {
4392
+ Mi(s);
4393
+ }, ir = () => {
4394
+ let p = document.createElement("style");
4395
+ p.innerHTML = u, d.appendChild(p);
4396
+ }, or = () => {
4397
+ let p = new URL(h), B = document.createElement("style");
4398
+ fetch(p.href).then((H) => H.text()).then((H) => {
4399
+ B.innerHTML = H, setTimeout(
4451
4400
  () => {
4452
- p.appendChild(P);
4401
+ d.appendChild(B);
4453
4402
  },
4454
4403
  1
4455
4404
  );
4456
4405
  });
4457
4406
  };
4458
- Ir(() => (window.addEventListener("message", I, !1), () => {
4459
- window.removeEventListener("message", I);
4407
+ yr(() => (window.addEventListener("message", O, !1), () => {
4408
+ window.removeEventListener("message", O);
4460
4409
  }));
4461
- const mr = () => $();
4462
- function br(d) {
4463
- Me[d ? "unshift" : "push"](() => {
4464
- p = d, r(0, p);
4410
+ const sr = () => R();
4411
+ function ar(p) {
4412
+ Ne[p ? "unshift" : "push"](() => {
4413
+ d = p, r(0, d);
4465
4414
  });
4466
4415
  }
4467
- return e.$$set = (d) => {
4468
- "endpoint" in d && r(7, i = d.endpoint), "session" in d && r(8, o = d.session), "playerid" in d && r(9, s = d.playerid), "lang" in d && r(10, a = d.lang), "hasdefaultamount" in d && r(11, h = d.hasdefaultamount), "clientstyling" in d && r(12, u = d.clientstyling), "clientstylingurl" in d && r(13, l = d.clientstylingurl), "translationurl" in d && r(14, c = d.translationurl), "playercurrency" in d && r(6, f = d.playercurrency);
4416
+ return e.$$set = (p) => {
4417
+ "endpoint" in p && r(7, i = p.endpoint), "session" in p && r(8, o = p.session), "playerid" in p && r(9, a = p.playerid), "lang" in p && r(10, s = p.lang), "hasdefaultamount" in p && r(11, l = p.hasdefaultamount), "clientstyling" in p && r(12, u = p.clientstyling), "clientstylingurl" in p && r(13, h = p.clientstylingurl), "translationurl" in p && r(14, f = p.translationurl), "playercurrency" in p && r(6, c = p.playercurrency);
4469
4418
  }, e.$$.update = () => {
4470
4419
  e.$$.dirty & /*lang*/
4471
- 1024 && a && le(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4472
- 8193 && l && p && dr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4473
- 4097 && u && p && pr(), e.$$.dirty & /*translationurl*/
4474
- 16384 && c && T(), e.$$.dirty & /*session, playerid, endpoint, playercurrency, lang*/
4475
- 1984 && o && s && i && f && a && G();
4420
+ 1024 && s && he(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4421
+ 8193 && h && d && or(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4422
+ 4097 && u && d && ir(), e.$$.dirty & /*translationurl*/
4423
+ 16384 && f && T(), e.$$.dirty & /*session, playerid, endpoint, playercurrency, lang*/
4424
+ 1984 && o && a && i && c && s && D();
4476
4425
  }, [
4477
- p,
4426
+ d,
4478
4427
  w,
4479
- C,
4428
+ N,
4480
4429
  n,
4481
4430
  m,
4482
- $,
4483
- f,
4431
+ R,
4432
+ c,
4484
4433
  i,
4485
4434
  o,
4486
- s,
4487
4435
  a,
4488
- h,
4489
- u,
4436
+ s,
4490
4437
  l,
4491
- c,
4492
- mr,
4493
- br
4438
+ u,
4439
+ h,
4440
+ f,
4441
+ sr,
4442
+ ar
4494
4443
  ];
4495
4444
  }
4496
- class to extends kr {
4445
+ class ji extends Ar {
4497
4446
  constructor(t) {
4498
- super(), Fr(
4447
+ super(), Br(
4499
4448
  this,
4500
4449
  t,
4501
- eo,
4502
- Ki,
4503
- Ct,
4450
+ Fi,
4451
+ Gi,
4452
+ Tt,
4504
4453
  {
4505
4454
  endpoint: 7,
4506
4455
  session: 8,
@@ -4512,65 +4461,65 @@ class to extends kr {
4512
4461
  translationurl: 14,
4513
4462
  playercurrency: 6
4514
4463
  },
4515
- Qi
4464
+ Ri
4516
4465
  );
4517
4466
  }
4518
4467
  get endpoint() {
4519
4468
  return this.$$.ctx[7];
4520
4469
  }
4521
4470
  set endpoint(t) {
4522
- this.$$set({ endpoint: t }), A();
4471
+ this.$$set({ endpoint: t }), P();
4523
4472
  }
4524
4473
  get session() {
4525
4474
  return this.$$.ctx[8];
4526
4475
  }
4527
4476
  set session(t) {
4528
- this.$$set({ session: t }), A();
4477
+ this.$$set({ session: t }), P();
4529
4478
  }
4530
4479
  get playerid() {
4531
4480
  return this.$$.ctx[9];
4532
4481
  }
4533
4482
  set playerid(t) {
4534
- this.$$set({ playerid: t }), A();
4483
+ this.$$set({ playerid: t }), P();
4535
4484
  }
4536
4485
  get lang() {
4537
4486
  return this.$$.ctx[10];
4538
4487
  }
4539
4488
  set lang(t) {
4540
- this.$$set({ lang: t }), A();
4489
+ this.$$set({ lang: t }), P();
4541
4490
  }
4542
4491
  get hasdefaultamount() {
4543
4492
  return this.$$.ctx[11];
4544
4493
  }
4545
4494
  set hasdefaultamount(t) {
4546
- this.$$set({ hasdefaultamount: t }), A();
4495
+ this.$$set({ hasdefaultamount: t }), P();
4547
4496
  }
4548
4497
  get clientstyling() {
4549
4498
  return this.$$.ctx[12];
4550
4499
  }
4551
4500
  set clientstyling(t) {
4552
- this.$$set({ clientstyling: t }), A();
4501
+ this.$$set({ clientstyling: t }), P();
4553
4502
  }
4554
4503
  get clientstylingurl() {
4555
4504
  return this.$$.ctx[13];
4556
4505
  }
4557
4506
  set clientstylingurl(t) {
4558
- this.$$set({ clientstylingurl: t }), A();
4507
+ this.$$set({ clientstylingurl: t }), P();
4559
4508
  }
4560
4509
  get translationurl() {
4561
4510
  return this.$$.ctx[14];
4562
4511
  }
4563
4512
  set translationurl(t) {
4564
- this.$$set({ translationurl: t }), A();
4513
+ this.$$set({ translationurl: t }), P();
4565
4514
  }
4566
4515
  get playercurrency() {
4567
4516
  return this.$$.ctx[6];
4568
4517
  }
4569
4518
  set playercurrency(t) {
4570
- this.$$set({ playercurrency: t }), A();
4519
+ this.$$set({ playercurrency: t }), P();
4571
4520
  }
4572
4521
  }
4573
- jr(to, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4522
+ Pr(ji, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4574
4523
  export {
4575
- to as default
4524
+ ji as P
4576
4525
  };