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