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