@everymatrix/player-account-gaming-limits-info-card 1.87.26 → 1.87.28

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.
Files changed (30) hide show
  1. package/components/PlayerAccountGamingLimitsConfirmationModal-BYHSs6fR.cjs +1 -0
  2. package/components/PlayerAccountGamingLimitsConfirmationModal-CtIhJMaZ.js +306 -0
  3. package/components/PlayerAccountGamingLimitsConfirmationModal-D9vdZ_ZM.js +306 -0
  4. package/components/PlayerAccountGamingLimitsGroupEdit-9whpgWve.js +1568 -0
  5. package/components/PlayerAccountGamingLimitsGroupEdit-DDshAKn0.cjs +1 -0
  6. package/components/PlayerAccountGamingLimitsGroupEdit-ZOzNQ83F.js +1568 -0
  7. package/components/PlayerAccountGamingLimitsInfoCard-BfqHDlYw.cjs +21 -0
  8. package/components/PlayerAccountGamingLimitsInfoCard-C2dv23qd.js +7411 -0
  9. package/components/PlayerAccountGamingLimitsInfoCard-D_exrGvT.js +7453 -0
  10. package/components/{PlayerAccountGamingLimitsPopup-DHSJ1hpq.js → PlayerAccountGamingLimitsPopup-DG8wpexC.js} +54 -54
  11. package/components/{PlayerAccountGamingLimitsPopup-Ce55cV9R.js → PlayerAccountGamingLimitsPopup-DeXpcbYH.js} +55 -55
  12. package/components/PlayerAccountGamingLimitsPopup-k9o2qPBt.cjs +1 -0
  13. package/components/{PlayerAccountModal-AxHHIdPq.js → PlayerAccountModal-BY_l7Qz-.js} +30 -30
  14. package/components/{PlayerAccountModal-0pqyx-hh.js → PlayerAccountModal-DjywE99z.js} +29 -29
  15. package/components/PlayerAccountModal-ICYwhG76.cjs +1 -0
  16. package/es2015/player-account-gaming-limits-info-card.cjs +1 -1
  17. package/es2015/player-account-gaming-limits-info-card.js +7 -7
  18. package/esnext/player-account-gaming-limits-info-card.js +1 -1
  19. package/package.json +1 -1
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CPjx_DH_.js +0 -4890
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-Csrimoqp.js +0 -4853
  22. package/components/PlayerAccountGamingLimitsConfirmationModal-RcOa0NNg.cjs +0 -21
  23. package/components/PlayerAccountGamingLimitsGroupEdit-Ca1m5XU8.js +0 -2850
  24. package/components/PlayerAccountGamingLimitsGroupEdit-Cqs__n7J.cjs +0 -1
  25. package/components/PlayerAccountGamingLimitsGroupEdit-DSun0_Zz.js +0 -2850
  26. package/components/PlayerAccountGamingLimitsInfoCard-BQDa_Mg_.cjs +0 -1
  27. package/components/PlayerAccountGamingLimitsInfoCard-C88f1sX4.js +0 -1564
  28. package/components/PlayerAccountGamingLimitsInfoCard-DzK7V5Rg.js +0 -1564
  29. package/components/PlayerAccountGamingLimitsPopup-4zxoW8_v.cjs +0 -1
  30. package/components/PlayerAccountModal-DJEDpoZF.cjs +0 -1
@@ -1,4853 +0,0 @@
1
- function L() {
2
- }
3
- const Hr = (e) => e;
4
- function Cr(e, t) {
5
- for (const r in t)
6
- e[r] = t[r];
7
- return (
8
- /** @type {T & S} */
9
- e
10
- );
11
- }
12
- function Gt(e) {
13
- return e();
14
- }
15
- function ct() {
16
- return /* @__PURE__ */ Object.create(null);
17
- }
18
- function U(e) {
19
- e.forEach(Gt);
20
- }
21
- function we(e) {
22
- return typeof e == "function";
23
- }
24
- function Ut(e, t) {
25
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
- }
27
- function Ar(e) {
28
- return Object.keys(e).length === 0;
29
- }
30
- function Dt(e, ...t) {
31
- if (e == null) {
32
- for (const n of t)
33
- n(void 0);
34
- return L;
35
- }
36
- const r = e.subscribe(...t);
37
- return r.unsubscribe ? () => r.unsubscribe() : r;
38
- }
39
- function Br(e, t, r) {
40
- e.$$.on_destroy.push(Dt(t, r));
41
- }
42
- function Pr(e, t, r, n) {
43
- if (e) {
44
- const i = Ft(e, t, r, n);
45
- return e[0](i);
46
- }
47
- }
48
- function Ft(e, t, r, n) {
49
- return e[1] && n ? Cr(r.ctx.slice(), e[1](n(t))) : r.ctx;
50
- }
51
- function Or(e, t, r, n) {
52
- if (e[2] && n) {
53
- const i = e[2](n(r));
54
- if (t.dirty === void 0)
55
- return i;
56
- if (typeof i == "object") {
57
- const o = [], a = Math.max(t.dirty.length, i.length);
58
- for (let s = 0; s < a; s += 1)
59
- o[s] = t.dirty[s] | i[s];
60
- return o;
61
- }
62
- return t.dirty | i;
63
- }
64
- return t.dirty;
65
- }
66
- function Lr(e, t, r, n, i, o) {
67
- if (i) {
68
- const a = Ft(t, r, n, o);
69
- e.p(a, i);
70
- }
71
- }
72
- function Ir(e) {
73
- if (e.ctx.length > 32) {
74
- const t = [], r = e.ctx.length / 32;
75
- for (let n = 0; n < r; n++)
76
- t[n] = -1;
77
- return t;
78
- }
79
- return -1;
80
- }
81
- const jt = typeof window < "u";
82
- let Mr = jt ? () => window.performance.now() : () => Date.now(), ot = jt ? (e) => requestAnimationFrame(e) : L;
83
- const X = /* @__PURE__ */ new Set();
84
- function kt(e) {
85
- X.forEach((t) => {
86
- t.c(e) || (X.delete(t), t.f());
87
- }), X.size !== 0 && ot(kt);
88
- }
89
- function Nr(e) {
90
- let t;
91
- return X.size === 0 && ot(kt), {
92
- promise: new Promise((r) => {
93
- X.add(t = { c: e, f: r });
94
- }),
95
- abort() {
96
- X.delete(t);
97
- }
98
- };
99
- }
100
- function P(e, t) {
101
- e.appendChild(t);
102
- }
103
- function $r(e, t, r) {
104
- const n = st(e);
105
- if (!n.getElementById(t)) {
106
- const i = I("style");
107
- i.id = t, i.textContent = r, Vt(n, i);
108
- }
109
- }
110
- function st(e) {
111
- if (!e)
112
- return document;
113
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
114
- return t && /** @type {ShadowRoot} */
115
- t.host ? (
116
- /** @type {ShadowRoot} */
117
- t
118
- ) : e.ownerDocument;
119
- }
120
- function Rr(e) {
121
- const t = I("style");
122
- return t.textContent = "/* empty */", Vt(st(e), t), t.sheet;
123
- }
124
- function Vt(e, t) {
125
- return P(
126
- /** @type {Document} */
127
- e.head || e,
128
- t
129
- ), t.sheet;
130
- }
131
- function at(e, t, r) {
132
- e.insertBefore(t, r || null);
133
- }
134
- function ae(e) {
135
- e.parentNode && e.parentNode.removeChild(e);
136
- }
137
- function xo(e, t) {
138
- for (let r = 0; r < e.length; r += 1)
139
- e[r] && e[r].d(t);
140
- }
141
- function I(e) {
142
- return document.createElement(e);
143
- }
144
- function ft(e) {
145
- return document.createElementNS("http://www.w3.org/2000/svg", e);
146
- }
147
- function re(e) {
148
- return document.createTextNode(e);
149
- }
150
- function Pe() {
151
- return re(" ");
152
- }
153
- function Eo() {
154
- return re("");
155
- }
156
- function Oe(e, t, r, n) {
157
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
158
- }
159
- function wo(e) {
160
- return function(t) {
161
- return t.preventDefault(), e.call(this, t);
162
- };
163
- }
164
- function H(e, t, r) {
165
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
166
- }
167
- function So(e, t, r) {
168
- const n = t.toLowerCase();
169
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
170
- }
171
- function To(e) {
172
- return e === "" ? null : +e;
173
- }
174
- function Gr(e) {
175
- return Array.from(e.childNodes);
176
- }
177
- function Le(e, t) {
178
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
179
- t);
180
- }
181
- function Ho(e, t) {
182
- e.value = t ?? "";
183
- }
184
- function Co(e, t, r) {
185
- for (let n = 0; n < e.options.length; n += 1) {
186
- const i = e.options[n];
187
- if (i.__value === t) {
188
- i.selected = !0;
189
- return;
190
- }
191
- }
192
- (!r || t !== void 0) && (e.selectedIndex = -1);
193
- }
194
- function Ao(e) {
195
- const t = e.querySelector(":checked");
196
- return t && t.__value;
197
- }
198
- function Ur(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
199
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
200
- }
201
- function Dr(e) {
202
- const t = {};
203
- return e.childNodes.forEach(
204
- /** @param {Element} node */
205
- (r) => {
206
- t[r.slot || "default"] = !0;
207
- }
208
- ), t;
209
- }
210
- const ge = /* @__PURE__ */ new Map();
211
- let ye = 0;
212
- function Fr(e) {
213
- let t = 5381, r = e.length;
214
- for (; r--; )
215
- t = (t << 5) - t ^ e.charCodeAt(r);
216
- return t >>> 0;
217
- }
218
- function jr(e, t) {
219
- const r = { stylesheet: Rr(t), rules: {} };
220
- return ge.set(e, r), r;
221
- }
222
- function mt(e, t, r, n, i, o, a, s = 0) {
223
- const l = 16.666 / n;
224
- let u = `{
225
- `;
226
- for (let v = 0; v <= 1; v += l) {
227
- const T = t + (r - t) * o(v);
228
- u += v * 100 + `%{${a(T, 1 - T)}}
229
- `;
230
- }
231
- const h = u + `100% {${a(r, 1 - r)}}
232
- }`, c = `__svelte_${Fr(h)}_${s}`, f = st(e), { stylesheet: p, rules: m } = ge.get(f) || jr(f, e);
233
- m[c] || (m[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
234
- const d = e.style.animation || "";
235
- return e.style.animation = `${d ? `${d}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, ye += 1, c;
236
- }
237
- function kr(e, t) {
238
- const r = (e.style.animation || "").split(", "), n = r.filter(
239
- t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
240
- // remove all Svelte animations
241
- ), i = r.length - n.length;
242
- i && (e.style.animation = n.join(", "), ye -= i, ye || Vr());
243
- }
244
- function Vr() {
245
- ot(() => {
246
- ye || (ge.forEach((e) => {
247
- const { ownerNode: t } = e.stylesheet;
248
- t && ae(t);
249
- }), ge.clear());
250
- });
251
- }
252
- let ie;
253
- function ne(e) {
254
- ie = e;
255
- }
256
- function Xr() {
257
- if (!ie)
258
- throw new Error("Function called outside component initialization");
259
- return ie;
260
- }
261
- function zr(e) {
262
- Xr().$$.on_mount.push(e);
263
- }
264
- const V = [], je = [];
265
- let z = [];
266
- const pt = [], Wr = /* @__PURE__ */ Promise.resolve();
267
- let ke = !1;
268
- function Zr() {
269
- ke || (ke = !0, Wr.then(N));
270
- }
271
- function ve(e) {
272
- z.push(e);
273
- }
274
- const Ie = /* @__PURE__ */ new Set();
275
- let j = 0;
276
- function N() {
277
- if (j !== 0)
278
- return;
279
- const e = ie;
280
- do {
281
- try {
282
- for (; j < V.length; ) {
283
- const t = V[j];
284
- j++, ne(t), Qr(t.$$);
285
- }
286
- } catch (t) {
287
- throw V.length = 0, j = 0, t;
288
- }
289
- for (ne(null), V.length = 0, j = 0; je.length; )
290
- je.pop()();
291
- for (let t = 0; t < z.length; t += 1) {
292
- const r = z[t];
293
- Ie.has(r) || (Ie.add(r), r());
294
- }
295
- z.length = 0;
296
- } while (V.length);
297
- for (; pt.length; )
298
- pt.pop()();
299
- ke = !1, Ie.clear(), ne(e);
300
- }
301
- function Qr(e) {
302
- if (e.fragment !== null) {
303
- e.update(), U(e.before_update);
304
- const t = e.dirty;
305
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ve);
306
- }
307
- }
308
- function Jr(e) {
309
- const t = [], r = [];
310
- z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
311
- }
312
- let ee;
313
- function qr() {
314
- return ee || (ee = Promise.resolve(), ee.then(() => {
315
- ee = null;
316
- })), ee;
317
- }
318
- function Me(e, t, r) {
319
- e.dispatchEvent(Ur(`${t ? "intro" : "outro"}${r}`));
320
- }
321
- const fe = /* @__PURE__ */ new Set();
322
- let $;
323
- function Bo() {
324
- $ = {
325
- r: 0,
326
- c: [],
327
- p: $
328
- // parent group
329
- };
330
- }
331
- function Po() {
332
- $.r || U($.c), $ = $.p;
333
- }
334
- function Xt(e, t) {
335
- e && e.i && (fe.delete(e), e.i(t));
336
- }
337
- function Yr(e, t, r, n) {
338
- if (e && e.o) {
339
- if (fe.has(e))
340
- return;
341
- fe.add(e), $.c.push(() => {
342
- fe.delete(e), n && (r && e.d(1), n());
343
- }), e.o(t);
344
- } else
345
- n && n();
346
- }
347
- const Kr = { duration: 0 };
348
- function Oo(e, t, r, n) {
349
- let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
350
- function c() {
351
- u && kr(e, u);
352
- }
353
- function f(m, d) {
354
- const v = (
355
- /** @type {Program['d']} */
356
- m.b - a
357
- );
358
- return d *= Math.abs(v), {
359
- a,
360
- b: m.b,
361
- d: v,
362
- duration: d,
363
- start: m.start,
364
- end: m.start + d,
365
- group: m.group
366
- };
367
- }
368
- function p(m) {
369
- const {
370
- delay: d = 0,
371
- duration: v = 300,
372
- easing: T = Hr,
373
- tick: C = L,
374
- css: S
375
- } = o || Kr, A = {
376
- start: Mr() + d,
377
- b: m
378
- };
379
- m || (A.group = $, $.r += 1), "inert" in e && (m ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
380
- e.inert, e.inert = !0)), s || l ? l = A : (S && (c(), u = mt(e, a, m, v, d, T, S)), m && C(0, 1), s = f(A, v), ve(() => Me(e, m, "start")), Nr((E) => {
381
- if (l && E > l.start && (s = f(l, v), l = null, Me(e, s.b, "start"), S && (c(), u = mt(
382
- e,
383
- a,
384
- s.b,
385
- s.duration,
386
- 0,
387
- T,
388
- o.css
389
- ))), s) {
390
- if (E >= s.end)
391
- C(a = s.b, 1 - a), Me(e, s.b, "end"), l || (s.b ? c() : --s.group.r || U(s.group.c)), s = null;
392
- else if (E >= s.start) {
393
- const _ = E - s.start;
394
- a = s.a + s.d * T(_ / s.duration), C(a, 1 - a);
395
- }
396
- }
397
- return !!(s || l);
398
- }));
399
- }
400
- return {
401
- run(m) {
402
- we(o) ? qr().then(() => {
403
- o = o({ direction: m ? "in" : "out" }), p(m);
404
- }) : p(m);
405
- },
406
- end() {
407
- c(), s = l = null;
408
- }
409
- };
410
- }
411
- function Lo(e) {
412
- return e?.length !== void 0 ? e : Array.from(e);
413
- }
414
- function en(e, t, r) {
415
- const { fragment: n, after_update: i } = e.$$;
416
- n && n.m(t, r), ve(() => {
417
- const o = e.$$.on_mount.map(Gt).filter(we);
418
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
419
- }), i.forEach(ve);
420
- }
421
- function tn(e, t) {
422
- const r = e.$$;
423
- r.fragment !== null && (Jr(r.after_update), U(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
424
- }
425
- function rn(e, t) {
426
- e.$$.dirty[0] === -1 && (V.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
427
- }
428
- function nn(e, t, r, n, i, o, a = null, s = [-1]) {
429
- const l = ie;
430
- ne(e);
431
- const u = e.$$ = {
432
- fragment: null,
433
- ctx: [],
434
- // state
435
- props: o,
436
- update: L,
437
- not_equal: i,
438
- bound: ct(),
439
- // lifecycle
440
- on_mount: [],
441
- on_destroy: [],
442
- on_disconnect: [],
443
- before_update: [],
444
- after_update: [],
445
- context: new Map(t.context || (l ? l.$$.context : [])),
446
- // everything else
447
- callbacks: ct(),
448
- dirty: s,
449
- skip_bound: !1,
450
- root: t.target || l.$$.root
451
- };
452
- a && a(u.root);
453
- let h = !1;
454
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
455
- const m = p.length ? p[0] : f;
456
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && rn(e, c)), f;
457
- }) : [], u.update(), h = !0, U(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
458
- if (t.hydrate) {
459
- const c = Gr(t.target);
460
- u.fragment && u.fragment.l(c), c.forEach(ae);
461
- } else
462
- u.fragment && u.fragment.c();
463
- t.intro && Xt(e.$$.fragment), en(e, t.target, t.anchor), N();
464
- }
465
- ne(l);
466
- }
467
- let zt;
468
- typeof HTMLElement == "function" && (zt = class extends HTMLElement {
469
- /** The Svelte component constructor */
470
- $$ctor;
471
- /** Slots */
472
- $$s;
473
- /** The Svelte component instance */
474
- $$c;
475
- /** Whether or not the custom element is connected */
476
- $$cn = !1;
477
- /** Component props data */
478
- $$d = {};
479
- /** `true` if currently in the process of reflecting component props back to attributes */
480
- $$r = !1;
481
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
482
- $$p_d = {};
483
- /** @type {Record<string, Function[]>} Event listeners */
484
- $$l = {};
485
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
486
- $$l_u = /* @__PURE__ */ new Map();
487
- constructor(e, t, r) {
488
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
489
- }
490
- addEventListener(e, t, r) {
491
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
492
- const n = this.$$c.$on(e, t);
493
- this.$$l_u.set(t, n);
494
- }
495
- super.addEventListener(e, t, r);
496
- }
497
- removeEventListener(e, t, r) {
498
- if (super.removeEventListener(e, t, r), this.$$c) {
499
- const n = this.$$l_u.get(t);
500
- n && (n(), this.$$l_u.delete(t));
501
- }
502
- }
503
- async connectedCallback() {
504
- if (this.$$cn = !0, !this.$$c) {
505
- let e = function(i) {
506
- return () => {
507
- let o;
508
- return {
509
- c: function() {
510
- o = I("slot"), i !== "default" && H(o, "name", i);
511
- },
512
- /**
513
- * @param {HTMLElement} target
514
- * @param {HTMLElement} [anchor]
515
- */
516
- m: function(l, u) {
517
- at(l, o, u);
518
- },
519
- d: function(l) {
520
- l && ae(o);
521
- }
522
- };
523
- };
524
- };
525
- if (await Promise.resolve(), !this.$$cn || this.$$c)
526
- return;
527
- const t = {}, r = Dr(this);
528
- for (const i of this.$$s)
529
- i in r && (t[i] = [e(i)]);
530
- for (const i of this.attributes) {
531
- const o = this.$$g_p(i.name);
532
- o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
533
- }
534
- for (const i in this.$$p_d)
535
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
536
- this.$$c = new this.$$ctor({
537
- target: this.shadowRoot || this,
538
- props: {
539
- ...this.$$d,
540
- $$slots: t,
541
- $$scope: {
542
- ctx: []
543
- }
544
- }
545
- });
546
- const n = () => {
547
- this.$$r = !0;
548
- for (const i in this.$$p_d)
549
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
550
- const o = me(
551
- i,
552
- this.$$d[i],
553
- this.$$p_d,
554
- "toAttribute"
555
- );
556
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
557
- }
558
- this.$$r = !1;
559
- };
560
- this.$$c.$$.after_update.push(n), n();
561
- for (const i in this.$$l)
562
- for (const o of this.$$l[i]) {
563
- const a = this.$$c.$on(i, o);
564
- this.$$l_u.set(o, a);
565
- }
566
- this.$$l = {};
567
- }
568
- }
569
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
570
- // and setting attributes through setAttribute etc, this is helpful
571
- attributeChangedCallback(e, t, r) {
572
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
573
- }
574
- disconnectedCallback() {
575
- this.$$cn = !1, Promise.resolve().then(() => {
576
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
577
- });
578
- }
579
- $$g_p(e) {
580
- return Object.keys(this.$$p_d).find(
581
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
582
- ) || e;
583
- }
584
- });
585
- function me(e, t, r, n) {
586
- const i = r[e]?.type;
587
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
588
- return t;
589
- if (n === "toAttribute")
590
- switch (i) {
591
- case "Object":
592
- case "Array":
593
- return t == null ? null : JSON.stringify(t);
594
- case "Boolean":
595
- return t ? "" : null;
596
- case "Number":
597
- return t ?? null;
598
- default:
599
- return t;
600
- }
601
- else
602
- switch (i) {
603
- case "Object":
604
- case "Array":
605
- return t && JSON.parse(t);
606
- case "Boolean":
607
- return t;
608
- case "Number":
609
- return t != null ? +t : t;
610
- default:
611
- return t;
612
- }
613
- }
614
- function on(e, t, r, n, i, o) {
615
- let a = class extends zt {
616
- constructor() {
617
- super(e, r, i), this.$$p_d = t;
618
- }
619
- static get observedAttributes() {
620
- return Object.keys(t).map(
621
- (s) => (t[s].attribute || s).toLowerCase()
622
- );
623
- }
624
- };
625
- return Object.keys(t).forEach((s) => {
626
- Object.defineProperty(a.prototype, s, {
627
- get() {
628
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
629
- },
630
- set(l) {
631
- l = me(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
632
- }
633
- });
634
- }), n.forEach((s) => {
635
- Object.defineProperty(a.prototype, s, {
636
- get() {
637
- return this.$$c?.[s];
638
- }
639
- });
640
- }), e.element = /** @type {any} */
641
- a, a;
642
- }
643
- class sn {
644
- /**
645
- * ### PRIVATE API
646
- *
647
- * Do not use, may change at any time
648
- *
649
- * @type {any}
650
- */
651
- $$ = void 0;
652
- /**
653
- * ### PRIVATE API
654
- *
655
- * Do not use, may change at any time
656
- *
657
- * @type {any}
658
- */
659
- $$set = void 0;
660
- /** @returns {void} */
661
- $destroy() {
662
- tn(this, 1), this.$destroy = L;
663
- }
664
- /**
665
- * @template {Extract<keyof Events, string>} K
666
- * @param {K} type
667
- * @param {((e: Events[K]) => void) | null | undefined} callback
668
- * @returns {() => void}
669
- */
670
- $on(t, r) {
671
- if (!we(r))
672
- return L;
673
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
674
- return n.push(r), () => {
675
- const i = n.indexOf(r);
676
- i !== -1 && n.splice(i, 1);
677
- };
678
- }
679
- /**
680
- * @param {Partial<Props>} props
681
- * @returns {void}
682
- */
683
- $set(t) {
684
- this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
685
- }
686
- }
687
- const an = "4";
688
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(an);
689
- function un(e, t) {
690
- if (e) {
691
- const r = document.createElement("style");
692
- r.innerHTML = t, e.appendChild(r);
693
- }
694
- }
695
- function ln(e, t) {
696
- if (!e || !t)
697
- return;
698
- const r = new URL(t);
699
- fetch(r.href).then((n) => n.text()).then((n) => {
700
- const i = document.createElement("style");
701
- i.innerHTML = n, e && e.appendChild(i);
702
- }).catch((n) => {
703
- console.error("There was an error while trying to load client styling from URL", n);
704
- });
705
- }
706
- function hn(e, t, r) {
707
- if (window.emMessageBus) {
708
- const n = document.createElement("style");
709
- window.emMessageBus.subscribe(t, (i) => {
710
- n.innerHTML = i, e && e.appendChild(n);
711
- });
712
- }
713
- }
714
- /*! *****************************************************************************
715
- Copyright (c) Microsoft Corporation.
716
-
717
- Permission to use, copy, modify, and/or distribute this software for any
718
- purpose with or without fee is hereby granted.
719
-
720
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
721
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
722
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
723
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
724
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
725
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
726
- PERFORMANCE OF THIS SOFTWARE.
727
- ***************************************************************************** */
728
- var Ve = function(e, t) {
729
- return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
730
- r.__proto__ = n;
731
- } || function(r, n) {
732
- for (var i in n)
733
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
734
- }, Ve(e, t);
735
- };
736
- function ue(e, t) {
737
- if (typeof t != "function" && t !== null)
738
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
739
- Ve(e, t);
740
- function r() {
741
- this.constructor = e;
742
- }
743
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
744
- }
745
- function Xe(e) {
746
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
747
- if (r)
748
- return r.call(e);
749
- if (e && typeof e.length == "number")
750
- return {
751
- next: function() {
752
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
753
- }
754
- };
755
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
756
- }
757
- function ze(e, t) {
758
- var r = typeof Symbol == "function" && e[Symbol.iterator];
759
- if (!r)
760
- return e;
761
- var n = r.call(e), i, o = [], a;
762
- try {
763
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
764
- o.push(i.value);
765
- } catch (s) {
766
- a = { error: s };
767
- } finally {
768
- try {
769
- i && !i.done && (r = n.return) && r.call(n);
770
- } finally {
771
- if (a)
772
- throw a.error;
773
- }
774
- }
775
- return o;
776
- }
777
- function We(e, t, r) {
778
- if (arguments.length === 2)
779
- for (var n = 0, i = t.length, o; n < i; n++)
780
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
781
- return e.concat(o || t);
782
- }
783
- function R(e) {
784
- return typeof e == "function";
785
- }
786
- function Wt(e) {
787
- var t = function(n) {
788
- Error.call(n), n.stack = new Error().stack;
789
- }, r = e(t);
790
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
791
- }
792
- var Ne = Wt(function(e) {
793
- return function(r) {
794
- e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
795
- ` + r.map(function(n, i) {
796
- return i + 1 + ") " + n.toString();
797
- }).join(`
798
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
799
- };
800
- });
801
- function Ze(e, t) {
802
- if (e) {
803
- var r = e.indexOf(t);
804
- 0 <= r && e.splice(r, 1);
805
- }
806
- }
807
- var Se = function() {
808
- function e(t) {
809
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
810
- }
811
- return e.prototype.unsubscribe = function() {
812
- var t, r, n, i, o;
813
- if (!this.closed) {
814
- this.closed = !0;
815
- var a = this._parentage;
816
- if (a)
817
- if (this._parentage = null, Array.isArray(a))
818
- try {
819
- for (var s = Xe(a), l = s.next(); !l.done; l = s.next()) {
820
- var u = l.value;
821
- u.remove(this);
822
- }
823
- } catch (d) {
824
- t = { error: d };
825
- } finally {
826
- try {
827
- l && !l.done && (r = s.return) && r.call(s);
828
- } finally {
829
- if (t)
830
- throw t.error;
831
- }
832
- }
833
- else
834
- a.remove(this);
835
- var h = this.initialTeardown;
836
- if (R(h))
837
- try {
838
- h();
839
- } catch (d) {
840
- o = d instanceof Ne ? d.errors : [d];
841
- }
842
- var c = this._finalizers;
843
- if (c) {
844
- this._finalizers = null;
845
- try {
846
- for (var f = Xe(c), p = f.next(); !p.done; p = f.next()) {
847
- var m = p.value;
848
- try {
849
- dt(m);
850
- } catch (d) {
851
- o = o ?? [], d instanceof Ne ? o = We(We([], ze(o)), ze(d.errors)) : o.push(d);
852
- }
853
- }
854
- } catch (d) {
855
- n = { error: d };
856
- } finally {
857
- try {
858
- p && !p.done && (i = f.return) && i.call(f);
859
- } finally {
860
- if (n)
861
- throw n.error;
862
- }
863
- }
864
- }
865
- if (o)
866
- throw new Ne(o);
867
- }
868
- }, e.prototype.add = function(t) {
869
- var r;
870
- if (t && t !== this)
871
- if (this.closed)
872
- dt(t);
873
- else {
874
- if (t instanceof e) {
875
- if (t.closed || t._hasParent(this))
876
- return;
877
- t._addParent(this);
878
- }
879
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
880
- }
881
- }, e.prototype._hasParent = function(t) {
882
- var r = this._parentage;
883
- return r === t || Array.isArray(r) && r.includes(t);
884
- }, e.prototype._addParent = function(t) {
885
- var r = this._parentage;
886
- this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
887
- }, e.prototype._removeParent = function(t) {
888
- var r = this._parentage;
889
- r === t ? this._parentage = null : Array.isArray(r) && Ze(r, t);
890
- }, e.prototype.remove = function(t) {
891
- var r = this._finalizers;
892
- r && Ze(r, t), t instanceof e && t._removeParent(this);
893
- }, e.EMPTY = function() {
894
- var t = new e();
895
- return t.closed = !0, t;
896
- }(), e;
897
- }(), Zt = Se.EMPTY;
898
- function Qt(e) {
899
- return e instanceof Se || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
900
- }
901
- function dt(e) {
902
- R(e) ? e() : e.unsubscribe();
903
- }
904
- var cn = {
905
- Promise: void 0
906
- }, fn = {
907
- setTimeout: function(e, t) {
908
- for (var r = [], n = 2; n < arguments.length; n++)
909
- r[n - 2] = arguments[n];
910
- return setTimeout.apply(void 0, We([e, t], ze(r)));
911
- },
912
- clearTimeout: function(e) {
913
- return clearTimeout(e);
914
- },
915
- delegate: void 0
916
- };
917
- function mn(e) {
918
- fn.setTimeout(function() {
919
- throw e;
920
- });
921
- }
922
- function bt() {
923
- }
924
- function pe(e) {
925
- e();
926
- }
927
- var Jt = function(e) {
928
- ue(t, e);
929
- function t(r) {
930
- var n = e.call(this) || this;
931
- return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = bn, n;
932
- }
933
- return t.create = function(r, n, i) {
934
- return new Qe(r, n, i);
935
- }, t.prototype.next = function(r) {
936
- this.isStopped || this._next(r);
937
- }, t.prototype.error = function(r) {
938
- this.isStopped || (this.isStopped = !0, this._error(r));
939
- }, t.prototype.complete = function() {
940
- this.isStopped || (this.isStopped = !0, this._complete());
941
- }, t.prototype.unsubscribe = function() {
942
- this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
943
- }, t.prototype._next = function(r) {
944
- this.destination.next(r);
945
- }, t.prototype._error = function(r) {
946
- try {
947
- this.destination.error(r);
948
- } finally {
949
- this.unsubscribe();
950
- }
951
- }, t.prototype._complete = function() {
952
- try {
953
- this.destination.complete();
954
- } finally {
955
- this.unsubscribe();
956
- }
957
- }, t;
958
- }(Se), pn = function() {
959
- function e(t) {
960
- this.partialObserver = t;
961
- }
962
- return e.prototype.next = function(t) {
963
- var r = this.partialObserver;
964
- if (r.next)
965
- try {
966
- r.next(t);
967
- } catch (n) {
968
- he(n);
969
- }
970
- }, e.prototype.error = function(t) {
971
- var r = this.partialObserver;
972
- if (r.error)
973
- try {
974
- r.error(t);
975
- } catch (n) {
976
- he(n);
977
- }
978
- else
979
- he(t);
980
- }, e.prototype.complete = function() {
981
- var t = this.partialObserver;
982
- if (t.complete)
983
- try {
984
- t.complete();
985
- } catch (r) {
986
- he(r);
987
- }
988
- }, e;
989
- }(), Qe = function(e) {
990
- ue(t, e);
991
- function t(r, n, i) {
992
- var o = e.call(this) || this, a;
993
- return R(r) || !r ? a = {
994
- next: r ?? void 0,
995
- error: n ?? void 0,
996
- complete: i ?? void 0
997
- } : a = r, o.destination = new pn(a), o;
998
- }
999
- return t;
1000
- }(Jt);
1001
- function he(e) {
1002
- mn(e);
1003
- }
1004
- function dn(e) {
1005
- throw e;
1006
- }
1007
- var bn = {
1008
- closed: !0,
1009
- next: bt,
1010
- error: dn,
1011
- complete: bt
1012
- }, gn = function() {
1013
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
1014
- }();
1015
- function yn(e) {
1016
- return e;
1017
- }
1018
- function vn(e) {
1019
- return e.length === 0 ? yn : e.length === 1 ? e[0] : function(r) {
1020
- return e.reduce(function(n, i) {
1021
- return i(n);
1022
- }, r);
1023
- };
1024
- }
1025
- var gt = function() {
1026
- function e(t) {
1027
- t && (this._subscribe = t);
1028
- }
1029
- return e.prototype.lift = function(t) {
1030
- var r = new e();
1031
- return r.source = this, r.operator = t, r;
1032
- }, e.prototype.subscribe = function(t, r, n) {
1033
- var i = this, o = xn(t) ? t : new Qe(t, r, n);
1034
- return pe(function() {
1035
- var a = i, s = a.operator, l = a.source;
1036
- o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
1037
- }), o;
1038
- }, e.prototype._trySubscribe = function(t) {
1039
- try {
1040
- return this._subscribe(t);
1041
- } catch (r) {
1042
- t.error(r);
1043
- }
1044
- }, e.prototype.forEach = function(t, r) {
1045
- var n = this;
1046
- return r = yt(r), new r(function(i, o) {
1047
- var a = new Qe({
1048
- next: function(s) {
1049
- try {
1050
- t(s);
1051
- } catch (l) {
1052
- o(l), a.unsubscribe();
1053
- }
1054
- },
1055
- error: o,
1056
- complete: i
1057
- });
1058
- n.subscribe(a);
1059
- });
1060
- }, e.prototype._subscribe = function(t) {
1061
- var r;
1062
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1063
- }, e.prototype[gn] = function() {
1064
- return this;
1065
- }, e.prototype.pipe = function() {
1066
- for (var t = [], r = 0; r < arguments.length; r++)
1067
- t[r] = arguments[r];
1068
- return vn(t)(this);
1069
- }, e.prototype.toPromise = function(t) {
1070
- var r = this;
1071
- return t = yt(t), new t(function(n, i) {
1072
- var o;
1073
- r.subscribe(function(a) {
1074
- return o = a;
1075
- }, function(a) {
1076
- return i(a);
1077
- }, function() {
1078
- return n(o);
1079
- });
1080
- });
1081
- }, e.create = function(t) {
1082
- return new e(t);
1083
- }, e;
1084
- }();
1085
- function yt(e) {
1086
- var t;
1087
- return (t = e ?? cn.Promise) !== null && t !== void 0 ? t : Promise;
1088
- }
1089
- function _n(e) {
1090
- return e && R(e.next) && R(e.error) && R(e.complete);
1091
- }
1092
- function xn(e) {
1093
- return e && e instanceof Jt || _n(e) && Qt(e);
1094
- }
1095
- var En = Wt(function(e) {
1096
- return function() {
1097
- e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1098
- };
1099
- }), qt = function(e) {
1100
- ue(t, e);
1101
- function t() {
1102
- var r = e.call(this) || this;
1103
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1104
- }
1105
- return t.prototype.lift = function(r) {
1106
- var n = new vt(this, this);
1107
- return n.operator = r, n;
1108
- }, t.prototype._throwIfClosed = function() {
1109
- if (this.closed)
1110
- throw new En();
1111
- }, t.prototype.next = function(r) {
1112
- var n = this;
1113
- pe(function() {
1114
- var i, o;
1115
- if (n._throwIfClosed(), !n.isStopped) {
1116
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
1117
- try {
1118
- for (var a = Xe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
1119
- var l = s.value;
1120
- l.next(r);
1121
- }
1122
- } catch (u) {
1123
- i = { error: u };
1124
- } finally {
1125
- try {
1126
- s && !s.done && (o = a.return) && o.call(a);
1127
- } finally {
1128
- if (i)
1129
- throw i.error;
1130
- }
1131
- }
1132
- }
1133
- });
1134
- }, t.prototype.error = function(r) {
1135
- var n = this;
1136
- pe(function() {
1137
- if (n._throwIfClosed(), !n.isStopped) {
1138
- n.hasError = n.isStopped = !0, n.thrownError = r;
1139
- for (var i = n.observers; i.length; )
1140
- i.shift().error(r);
1141
- }
1142
- });
1143
- }, t.prototype.complete = function() {
1144
- var r = this;
1145
- pe(function() {
1146
- if (r._throwIfClosed(), !r.isStopped) {
1147
- r.isStopped = !0;
1148
- for (var n = r.observers; n.length; )
1149
- n.shift().complete();
1150
- }
1151
- });
1152
- }, t.prototype.unsubscribe = function() {
1153
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1154
- }, Object.defineProperty(t.prototype, "observed", {
1155
- get: function() {
1156
- var r;
1157
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1158
- },
1159
- enumerable: !1,
1160
- configurable: !0
1161
- }), t.prototype._trySubscribe = function(r) {
1162
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1163
- }, t.prototype._subscribe = function(r) {
1164
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1165
- }, t.prototype._innerSubscribe = function(r) {
1166
- var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1167
- return o || a ? Zt : (this.currentObservers = null, s.push(r), new Se(function() {
1168
- n.currentObservers = null, Ze(s, r);
1169
- }));
1170
- }, t.prototype._checkFinalizedStatuses = function(r) {
1171
- var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1172
- i ? r.error(o) : a && r.complete();
1173
- }, t.prototype.asObservable = function() {
1174
- var r = new gt();
1175
- return r.source = this, r;
1176
- }, t.create = function(r, n) {
1177
- return new vt(r, n);
1178
- }, t;
1179
- }(gt), vt = function(e) {
1180
- ue(t, e);
1181
- function t(r, n) {
1182
- var i = e.call(this) || this;
1183
- return i.destination = r, i.source = n, i;
1184
- }
1185
- return t.prototype.next = function(r) {
1186
- var n, i;
1187
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1188
- }, t.prototype.error = function(r) {
1189
- var n, i;
1190
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1191
- }, t.prototype.complete = function() {
1192
- var r, n;
1193
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1194
- }, t.prototype._subscribe = function(r) {
1195
- var n, i;
1196
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
1197
- }, t;
1198
- }(qt), Yt = {
1199
- now: function() {
1200
- return (Yt.delegate || Date).now();
1201
- },
1202
- delegate: void 0
1203
- }, wn = function(e) {
1204
- ue(t, e);
1205
- function t(r, n, i) {
1206
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
1207
- var o = e.call(this) || this;
1208
- 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;
1209
- }
1210
- return t.prototype.next = function(r) {
1211
- var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
1212
- i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1213
- }, t.prototype._subscribe = function(r) {
1214
- this._throwIfClosed(), this._trimBuffer();
1215
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
1216
- r.next(s[l]);
1217
- return this._checkFinalizedStatuses(r), n;
1218
- }, t.prototype._trimBuffer = function() {
1219
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1220
- if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1221
- for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
1222
- u = h;
1223
- u && o.splice(0, u + 1);
1224
- }
1225
- }, t;
1226
- }(qt);
1227
- const _t = [], xt = {}, Sn = (e, t = 0) => {
1228
- if (_t.indexOf(e) == -1) {
1229
- const r = new wn(t);
1230
- xt[e] = r, _t.push(e);
1231
- }
1232
- return xt[e];
1233
- }, k = [];
1234
- function Tn(e, t) {
1235
- return {
1236
- subscribe: Te(e, t).subscribe
1237
- };
1238
- }
1239
- function Te(e, t = L) {
1240
- let r;
1241
- const n = /* @__PURE__ */ new Set();
1242
- function i(s) {
1243
- if (Ut(e, s) && (e = s, r)) {
1244
- const l = !k.length;
1245
- for (const u of n)
1246
- u[1](), k.push(u, e);
1247
- if (l) {
1248
- for (let u = 0; u < k.length; u += 2)
1249
- k[u][0](k[u + 1]);
1250
- k.length = 0;
1251
- }
1252
- }
1253
- }
1254
- function o(s) {
1255
- i(s(e));
1256
- }
1257
- function a(s, l = L) {
1258
- const u = [s, l];
1259
- return n.add(u), n.size === 1 && (r = t(i, o) || L), s(e), () => {
1260
- n.delete(u), n.size === 0 && r && (r(), r = null);
1261
- };
1262
- }
1263
- return { set: i, update: o, subscribe: a };
1264
- }
1265
- function q(e, t, r) {
1266
- const n = !Array.isArray(e), i = n ? [e] : e;
1267
- if (!i.every(Boolean))
1268
- throw new Error("derived() expects stores as input, got a falsy value");
1269
- const o = t.length < 2;
1270
- return Tn(r, (a, s) => {
1271
- let l = !1;
1272
- const u = [];
1273
- let h = 0, c = L;
1274
- const f = () => {
1275
- if (h)
1276
- return;
1277
- c();
1278
- const m = t(n ? u[0] : u, a, s);
1279
- o ? a(m) : c = we(m) ? m : L;
1280
- }, p = i.map(
1281
- (m, d) => Dt(
1282
- m,
1283
- (v) => {
1284
- u[d] = v, h &= ~(1 << d), l && f();
1285
- },
1286
- () => {
1287
- h |= 1 << d;
1288
- }
1289
- )
1290
- );
1291
- return l = !0, f(), function() {
1292
- U(p), c(), l = !1;
1293
- };
1294
- });
1295
- }
1296
- function Hn(e) {
1297
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1298
- }
1299
- var Cn = function(t) {
1300
- return An(t) && !Bn(t);
1301
- };
1302
- function An(e) {
1303
- return !!e && typeof e == "object";
1304
- }
1305
- function Bn(e) {
1306
- var t = Object.prototype.toString.call(e);
1307
- return t === "[object RegExp]" || t === "[object Date]" || Ln(e);
1308
- }
1309
- var Pn = typeof Symbol == "function" && Symbol.for, On = Pn ? Symbol.for("react.element") : 60103;
1310
- function Ln(e) {
1311
- return e.$$typeof === On;
1312
- }
1313
- function In(e) {
1314
- return Array.isArray(e) ? [] : {};
1315
- }
1316
- function oe(e, t) {
1317
- return t.clone !== !1 && t.isMergeableObject(e) ? W(In(e), e, t) : e;
1318
- }
1319
- function Mn(e, t, r) {
1320
- return e.concat(t).map(function(n) {
1321
- return oe(n, r);
1322
- });
1323
- }
1324
- function Nn(e, t) {
1325
- if (!t.customMerge)
1326
- return W;
1327
- var r = t.customMerge(e);
1328
- return typeof r == "function" ? r : W;
1329
- }
1330
- function $n(e) {
1331
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1332
- return Object.propertyIsEnumerable.call(e, t);
1333
- }) : [];
1334
- }
1335
- function Et(e) {
1336
- return Object.keys(e).concat($n(e));
1337
- }
1338
- function Kt(e, t) {
1339
- try {
1340
- return t in e;
1341
- } catch {
1342
- return !1;
1343
- }
1344
- }
1345
- function Rn(e, t) {
1346
- return Kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1347
- }
1348
- function Gn(e, t, r) {
1349
- var n = {};
1350
- return r.isMergeableObject(e) && Et(e).forEach(function(i) {
1351
- n[i] = oe(e[i], r);
1352
- }), Et(t).forEach(function(i) {
1353
- Rn(e, i) || (Kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1354
- }), n;
1355
- }
1356
- function W(e, t, r) {
1357
- r = r || {}, r.arrayMerge = r.arrayMerge || Mn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = oe;
1358
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1359
- return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : oe(t, r);
1360
- }
1361
- W.all = function(t, r) {
1362
- if (!Array.isArray(t))
1363
- throw new Error("first argument should be an array");
1364
- return t.reduce(function(n, i) {
1365
- return W(n, i, r);
1366
- }, {});
1367
- };
1368
- var Un = W, Dn = Un;
1369
- const Fn = /* @__PURE__ */ Hn(Dn);
1370
- var Je = function(e, t) {
1371
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1372
- r.__proto__ = n;
1373
- } || function(r, n) {
1374
- for (var i in n)
1375
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1376
- }, Je(e, t);
1377
- };
1378
- function He(e, t) {
1379
- if (typeof t != "function" && t !== null)
1380
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1381
- Je(e, t);
1382
- function r() {
1383
- this.constructor = e;
1384
- }
1385
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1386
- }
1387
- var M = function() {
1388
- return M = Object.assign || function(t) {
1389
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1390
- r = arguments[n];
1391
- for (var o in r)
1392
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1393
- }
1394
- return t;
1395
- }, M.apply(this, arguments);
1396
- };
1397
- function jn(e, t) {
1398
- var r = {};
1399
- for (var n in e)
1400
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1401
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1402
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1403
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1404
- return r;
1405
- }
1406
- function $e(e, t, r) {
1407
- if (r || arguments.length === 2)
1408
- for (var n = 0, i = t.length, o; n < i; n++)
1409
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1410
- return e.concat(o || Array.prototype.slice.call(t));
1411
- }
1412
- function Re(e, t) {
1413
- var r = t && t.cache ? t.cache : Qn, n = t && t.serializer ? t.serializer : Wn, i = t && t.strategy ? t.strategy : Xn;
1414
- return i(e, {
1415
- cache: r,
1416
- serializer: n
1417
- });
1418
- }
1419
- function kn(e) {
1420
- return e == null || typeof e == "number" || typeof e == "boolean";
1421
- }
1422
- function Vn(e, t, r, n) {
1423
- var i = kn(n) ? n : r(n), o = t.get(i);
1424
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1425
- }
1426
- function er(e, t, r) {
1427
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1428
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1429
- }
1430
- function tr(e, t, r, n, i) {
1431
- return r.bind(t, e, n, i);
1432
- }
1433
- function Xn(e, t) {
1434
- var r = e.length === 1 ? Vn : er;
1435
- return tr(e, this, r, t.cache.create(), t.serializer);
1436
- }
1437
- function zn(e, t) {
1438
- return tr(e, this, er, t.cache.create(), t.serializer);
1439
- }
1440
- var Wn = function() {
1441
- return JSON.stringify(arguments);
1442
- }, Zn = (
1443
- /** @class */
1444
- function() {
1445
- function e() {
1446
- this.cache = /* @__PURE__ */ Object.create(null);
1447
- }
1448
- return e.prototype.get = function(t) {
1449
- return this.cache[t];
1450
- }, e.prototype.set = function(t, r) {
1451
- this.cache[t] = r;
1452
- }, e;
1453
- }()
1454
- ), Qn = {
1455
- create: function() {
1456
- return new Zn();
1457
- }
1458
- }, Ge = {
1459
- variadic: zn
1460
- }, _e = function() {
1461
- return _e = Object.assign || function(t) {
1462
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1463
- r = arguments[n];
1464
- for (var o in r)
1465
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1466
- }
1467
- return t;
1468
- }, _e.apply(this, arguments);
1469
- };
1470
- var b;
1471
- (function(e) {
1472
- 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";
1473
- })(b || (b = {}));
1474
- var x;
1475
- (function(e) {
1476
- 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";
1477
- })(x || (x = {}));
1478
- var Z;
1479
- (function(e) {
1480
- e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1481
- })(Z || (Z = {}));
1482
- function wt(e) {
1483
- return e.type === x.literal;
1484
- }
1485
- function Jn(e) {
1486
- return e.type === x.argument;
1487
- }
1488
- function rr(e) {
1489
- return e.type === x.number;
1490
- }
1491
- function nr(e) {
1492
- return e.type === x.date;
1493
- }
1494
- function ir(e) {
1495
- return e.type === x.time;
1496
- }
1497
- function or(e) {
1498
- return e.type === x.select;
1499
- }
1500
- function sr(e) {
1501
- return e.type === x.plural;
1502
- }
1503
- function qn(e) {
1504
- return e.type === x.pound;
1505
- }
1506
- function ar(e) {
1507
- return e.type === x.tag;
1508
- }
1509
- function ur(e) {
1510
- return !!(e && typeof e == "object" && e.type === Z.number);
1511
- }
1512
- function qe(e) {
1513
- return !!(e && typeof e == "object" && e.type === Z.dateTime);
1514
- }
1515
- var lr = /[ \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;
1516
- function Kn(e) {
1517
- var t = {};
1518
- return e.replace(Yn, function(r) {
1519
- var n = r.length;
1520
- switch (r[0]) {
1521
- case "G":
1522
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1523
- break;
1524
- case "y":
1525
- t.year = n === 2 ? "2-digit" : "numeric";
1526
- break;
1527
- case "Y":
1528
- case "u":
1529
- case "U":
1530
- case "r":
1531
- throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1532
- case "q":
1533
- case "Q":
1534
- throw new RangeError("`q/Q` (quarter) patterns are not supported");
1535
- case "M":
1536
- case "L":
1537
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1538
- break;
1539
- case "w":
1540
- case "W":
1541
- throw new RangeError("`w/W` (week) patterns are not supported");
1542
- case "d":
1543
- t.day = ["numeric", "2-digit"][n - 1];
1544
- break;
1545
- case "D":
1546
- case "F":
1547
- case "g":
1548
- throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1549
- case "E":
1550
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1551
- break;
1552
- case "e":
1553
- if (n < 4)
1554
- throw new RangeError("`e..eee` (weekday) patterns are not supported");
1555
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1556
- break;
1557
- case "c":
1558
- if (n < 4)
1559
- throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1560
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1561
- break;
1562
- case "a":
1563
- t.hour12 = !0;
1564
- break;
1565
- case "b":
1566
- case "B":
1567
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1568
- case "h":
1569
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1570
- break;
1571
- case "H":
1572
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1573
- break;
1574
- case "K":
1575
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1576
- break;
1577
- case "k":
1578
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1579
- break;
1580
- case "j":
1581
- case "J":
1582
- case "C":
1583
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1584
- case "m":
1585
- t.minute = ["numeric", "2-digit"][n - 1];
1586
- break;
1587
- case "s":
1588
- t.second = ["numeric", "2-digit"][n - 1];
1589
- break;
1590
- case "S":
1591
- case "A":
1592
- throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1593
- case "z":
1594
- t.timeZoneName = n < 4 ? "short" : "long";
1595
- break;
1596
- case "Z":
1597
- case "O":
1598
- case "v":
1599
- case "V":
1600
- case "X":
1601
- case "x":
1602
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1603
- }
1604
- return "";
1605
- }), t;
1606
- }
1607
- var w = function() {
1608
- return w = Object.assign || function(t) {
1609
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1610
- r = arguments[n];
1611
- for (var o in r)
1612
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1613
- }
1614
- return t;
1615
- }, w.apply(this, arguments);
1616
- };
1617
- var ei = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1618
- function ti(e) {
1619
- if (e.length === 0)
1620
- throw new Error("Number skeleton cannot be empty");
1621
- for (var t = e.split(ei).filter(function(f) {
1622
- return f.length > 0;
1623
- }), r = [], n = 0, i = t; n < i.length; n++) {
1624
- var o = i[n], a = o.split("/");
1625
- if (a.length === 0)
1626
- throw new Error("Invalid number skeleton");
1627
- for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1628
- var c = h[u];
1629
- if (c.length === 0)
1630
- throw new Error("Invalid number skeleton");
1631
- }
1632
- r.push({ stem: s, options: l });
1633
- }
1634
- return r;
1635
- }
1636
- function ri(e) {
1637
- return e.replace(/^(.*?)-/, "");
1638
- }
1639
- var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, ni = /(\*)(0+)|(#+)(0+)|(0+)/g, cr = /^(0+)$/;
1640
- function Tt(e) {
1641
- var t = {};
1642
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(r, n, i) {
1643
- 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)), "";
1644
- }), t;
1645
- }
1646
- function fr(e) {
1647
- switch (e) {
1648
- case "sign-auto":
1649
- return {
1650
- signDisplay: "auto"
1651
- };
1652
- case "sign-accounting":
1653
- case "()":
1654
- return {
1655
- currencySign: "accounting"
1656
- };
1657
- case "sign-always":
1658
- case "+!":
1659
- return {
1660
- signDisplay: "always"
1661
- };
1662
- case "sign-accounting-always":
1663
- case "()!":
1664
- return {
1665
- signDisplay: "always",
1666
- currencySign: "accounting"
1667
- };
1668
- case "sign-except-zero":
1669
- case "+?":
1670
- return {
1671
- signDisplay: "exceptZero"
1672
- };
1673
- case "sign-accounting-except-zero":
1674
- case "()?":
1675
- return {
1676
- signDisplay: "exceptZero",
1677
- currencySign: "accounting"
1678
- };
1679
- case "sign-never":
1680
- case "+_":
1681
- return {
1682
- signDisplay: "never"
1683
- };
1684
- }
1685
- }
1686
- function ii(e) {
1687
- var t;
1688
- if (e[0] === "E" && e[1] === "E" ? (t = {
1689
- notation: "engineering"
1690
- }, e = e.slice(2)) : e[0] === "E" && (t = {
1691
- notation: "scientific"
1692
- }, e = e.slice(1)), t) {
1693
- var r = e.slice(0, 2);
1694
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !cr.test(e))
1695
- throw new Error("Malformed concise eng/scientific notation");
1696
- t.minimumIntegerDigits = e.length;
1697
- }
1698
- return t;
1699
- }
1700
- function Ht(e) {
1701
- var t = {}, r = fr(e);
1702
- return r || t;
1703
- }
1704
- function oi(e) {
1705
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1706
- var i = n[r];
1707
- switch (i.stem) {
1708
- case "percent":
1709
- case "%":
1710
- t.style = "percent";
1711
- continue;
1712
- case "%x100":
1713
- t.style = "percent", t.scale = 100;
1714
- continue;
1715
- case "currency":
1716
- t.style = "currency", t.currency = i.options[0];
1717
- continue;
1718
- case "group-off":
1719
- case ",_":
1720
- t.useGrouping = !1;
1721
- continue;
1722
- case "precision-integer":
1723
- case ".":
1724
- t.maximumFractionDigits = 0;
1725
- continue;
1726
- case "measure-unit":
1727
- case "unit":
1728
- t.style = "unit", t.unit = ri(i.options[0]);
1729
- continue;
1730
- case "compact-short":
1731
- case "K":
1732
- t.notation = "compact", t.compactDisplay = "short";
1733
- continue;
1734
- case "compact-long":
1735
- case "KK":
1736
- t.notation = "compact", t.compactDisplay = "long";
1737
- continue;
1738
- case "scientific":
1739
- t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1740
- return w(w({}, l), Ht(u));
1741
- }, {}));
1742
- continue;
1743
- case "engineering":
1744
- t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1745
- return w(w({}, l), Ht(u));
1746
- }, {}));
1747
- continue;
1748
- case "notation-simple":
1749
- t.notation = "standard";
1750
- continue;
1751
- case "unit-width-narrow":
1752
- t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1753
- continue;
1754
- case "unit-width-short":
1755
- t.currencyDisplay = "code", t.unitDisplay = "short";
1756
- continue;
1757
- case "unit-width-full-name":
1758
- t.currencyDisplay = "name", t.unitDisplay = "long";
1759
- continue;
1760
- case "unit-width-iso-code":
1761
- t.currencyDisplay = "symbol";
1762
- continue;
1763
- case "scale":
1764
- t.scale = parseFloat(i.options[0]);
1765
- continue;
1766
- case "rounding-mode-floor":
1767
- t.roundingMode = "floor";
1768
- continue;
1769
- case "rounding-mode-ceiling":
1770
- t.roundingMode = "ceil";
1771
- continue;
1772
- case "rounding-mode-down":
1773
- t.roundingMode = "trunc";
1774
- continue;
1775
- case "rounding-mode-up":
1776
- t.roundingMode = "expand";
1777
- continue;
1778
- case "rounding-mode-half-even":
1779
- t.roundingMode = "halfEven";
1780
- continue;
1781
- case "rounding-mode-half-down":
1782
- t.roundingMode = "halfTrunc";
1783
- continue;
1784
- case "rounding-mode-half-up":
1785
- t.roundingMode = "halfExpand";
1786
- continue;
1787
- case "integer-width":
1788
- if (i.options.length > 1)
1789
- throw new RangeError("integer-width stems only accept a single optional option");
1790
- i.options[0].replace(ni, function(l, u, h, c, f, p) {
1791
- if (u)
1792
- t.minimumIntegerDigits = h.length;
1793
- else {
1794
- if (c && f)
1795
- throw new Error("We currently do not support maximum integer digits");
1796
- if (p)
1797
- throw new Error("We currently do not support exact integer digits");
1798
- }
1799
- return "";
1800
- });
1801
- continue;
1802
- }
1803
- if (cr.test(i.stem)) {
1804
- t.minimumIntegerDigits = i.stem.length;
1805
- continue;
1806
- }
1807
- if (St.test(i.stem)) {
1808
- if (i.options.length > 1)
1809
- throw new RangeError("Fraction-precision stems only accept a single optional option");
1810
- i.stem.replace(St, function(l, u, h, c, f, p) {
1811
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1812
- });
1813
- var o = i.options[0];
1814
- o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), Tt(o)));
1815
- continue;
1816
- }
1817
- if (hr.test(i.stem)) {
1818
- t = w(w({}, t), Tt(i.stem));
1819
- continue;
1820
- }
1821
- var a = fr(i.stem);
1822
- a && (t = w(w({}, t), a));
1823
- var s = ii(i.stem);
1824
- s && (t = w(w({}, t), s));
1825
- }
1826
- return t;
1827
- }
1828
- var ce = {
1829
- "001": [
1830
- "H",
1831
- "h"
1832
- ],
1833
- 419: [
1834
- "h",
1835
- "H",
1836
- "hB",
1837
- "hb"
1838
- ],
1839
- AC: [
1840
- "H",
1841
- "h",
1842
- "hb",
1843
- "hB"
1844
- ],
1845
- AD: [
1846
- "H",
1847
- "hB"
1848
- ],
1849
- AE: [
1850
- "h",
1851
- "hB",
1852
- "hb",
1853
- "H"
1854
- ],
1855
- AF: [
1856
- "H",
1857
- "hb",
1858
- "hB",
1859
- "h"
1860
- ],
1861
- AG: [
1862
- "h",
1863
- "hb",
1864
- "H",
1865
- "hB"
1866
- ],
1867
- AI: [
1868
- "H",
1869
- "h",
1870
- "hb",
1871
- "hB"
1872
- ],
1873
- AL: [
1874
- "h",
1875
- "H",
1876
- "hB"
1877
- ],
1878
- AM: [
1879
- "H",
1880
- "hB"
1881
- ],
1882
- AO: [
1883
- "H",
1884
- "hB"
1885
- ],
1886
- AR: [
1887
- "h",
1888
- "H",
1889
- "hB",
1890
- "hb"
1891
- ],
1892
- AS: [
1893
- "h",
1894
- "H"
1895
- ],
1896
- AT: [
1897
- "H",
1898
- "hB"
1899
- ],
1900
- AU: [
1901
- "h",
1902
- "hb",
1903
- "H",
1904
- "hB"
1905
- ],
1906
- AW: [
1907
- "H",
1908
- "hB"
1909
- ],
1910
- AX: [
1911
- "H"
1912
- ],
1913
- AZ: [
1914
- "H",
1915
- "hB",
1916
- "h"
1917
- ],
1918
- BA: [
1919
- "H",
1920
- "hB",
1921
- "h"
1922
- ],
1923
- BB: [
1924
- "h",
1925
- "hb",
1926
- "H",
1927
- "hB"
1928
- ],
1929
- BD: [
1930
- "h",
1931
- "hB",
1932
- "H"
1933
- ],
1934
- BE: [
1935
- "H",
1936
- "hB"
1937
- ],
1938
- BF: [
1939
- "H",
1940
- "hB"
1941
- ],
1942
- BG: [
1943
- "H",
1944
- "hB",
1945
- "h"
1946
- ],
1947
- BH: [
1948
- "h",
1949
- "hB",
1950
- "hb",
1951
- "H"
1952
- ],
1953
- BI: [
1954
- "H",
1955
- "h"
1956
- ],
1957
- BJ: [
1958
- "H",
1959
- "hB"
1960
- ],
1961
- BL: [
1962
- "H",
1963
- "hB"
1964
- ],
1965
- BM: [
1966
- "h",
1967
- "hb",
1968
- "H",
1969
- "hB"
1970
- ],
1971
- BN: [
1972
- "hb",
1973
- "hB",
1974
- "h",
1975
- "H"
1976
- ],
1977
- BO: [
1978
- "h",
1979
- "H",
1980
- "hB",
1981
- "hb"
1982
- ],
1983
- BQ: [
1984
- "H"
1985
- ],
1986
- BR: [
1987
- "H",
1988
- "hB"
1989
- ],
1990
- BS: [
1991
- "h",
1992
- "hb",
1993
- "H",
1994
- "hB"
1995
- ],
1996
- BT: [
1997
- "h",
1998
- "H"
1999
- ],
2000
- BW: [
2001
- "H",
2002
- "h",
2003
- "hb",
2004
- "hB"
2005
- ],
2006
- BY: [
2007
- "H",
2008
- "h"
2009
- ],
2010
- BZ: [
2011
- "H",
2012
- "h",
2013
- "hb",
2014
- "hB"
2015
- ],
2016
- CA: [
2017
- "h",
2018
- "hb",
2019
- "H",
2020
- "hB"
2021
- ],
2022
- CC: [
2023
- "H",
2024
- "h",
2025
- "hb",
2026
- "hB"
2027
- ],
2028
- CD: [
2029
- "hB",
2030
- "H"
2031
- ],
2032
- CF: [
2033
- "H",
2034
- "h",
2035
- "hB"
2036
- ],
2037
- CG: [
2038
- "H",
2039
- "hB"
2040
- ],
2041
- CH: [
2042
- "H",
2043
- "hB",
2044
- "h"
2045
- ],
2046
- CI: [
2047
- "H",
2048
- "hB"
2049
- ],
2050
- CK: [
2051
- "H",
2052
- "h",
2053
- "hb",
2054
- "hB"
2055
- ],
2056
- CL: [
2057
- "h",
2058
- "H",
2059
- "hB",
2060
- "hb"
2061
- ],
2062
- CM: [
2063
- "H",
2064
- "h",
2065
- "hB"
2066
- ],
2067
- CN: [
2068
- "H",
2069
- "hB",
2070
- "hb",
2071
- "h"
2072
- ],
2073
- CO: [
2074
- "h",
2075
- "H",
2076
- "hB",
2077
- "hb"
2078
- ],
2079
- CP: [
2080
- "H"
2081
- ],
2082
- CR: [
2083
- "h",
2084
- "H",
2085
- "hB",
2086
- "hb"
2087
- ],
2088
- CU: [
2089
- "h",
2090
- "H",
2091
- "hB",
2092
- "hb"
2093
- ],
2094
- CV: [
2095
- "H",
2096
- "hB"
2097
- ],
2098
- CW: [
2099
- "H",
2100
- "hB"
2101
- ],
2102
- CX: [
2103
- "H",
2104
- "h",
2105
- "hb",
2106
- "hB"
2107
- ],
2108
- CY: [
2109
- "h",
2110
- "H",
2111
- "hb",
2112
- "hB"
2113
- ],
2114
- CZ: [
2115
- "H"
2116
- ],
2117
- DE: [
2118
- "H",
2119
- "hB"
2120
- ],
2121
- DG: [
2122
- "H",
2123
- "h",
2124
- "hb",
2125
- "hB"
2126
- ],
2127
- DJ: [
2128
- "h",
2129
- "H"
2130
- ],
2131
- DK: [
2132
- "H"
2133
- ],
2134
- DM: [
2135
- "h",
2136
- "hb",
2137
- "H",
2138
- "hB"
2139
- ],
2140
- DO: [
2141
- "h",
2142
- "H",
2143
- "hB",
2144
- "hb"
2145
- ],
2146
- DZ: [
2147
- "h",
2148
- "hB",
2149
- "hb",
2150
- "H"
2151
- ],
2152
- EA: [
2153
- "H",
2154
- "h",
2155
- "hB",
2156
- "hb"
2157
- ],
2158
- EC: [
2159
- "h",
2160
- "H",
2161
- "hB",
2162
- "hb"
2163
- ],
2164
- EE: [
2165
- "H",
2166
- "hB"
2167
- ],
2168
- EG: [
2169
- "h",
2170
- "hB",
2171
- "hb",
2172
- "H"
2173
- ],
2174
- EH: [
2175
- "h",
2176
- "hB",
2177
- "hb",
2178
- "H"
2179
- ],
2180
- ER: [
2181
- "h",
2182
- "H"
2183
- ],
2184
- ES: [
2185
- "H",
2186
- "hB",
2187
- "h",
2188
- "hb"
2189
- ],
2190
- ET: [
2191
- "hB",
2192
- "hb",
2193
- "h",
2194
- "H"
2195
- ],
2196
- FI: [
2197
- "H"
2198
- ],
2199
- FJ: [
2200
- "h",
2201
- "hb",
2202
- "H",
2203
- "hB"
2204
- ],
2205
- FK: [
2206
- "H",
2207
- "h",
2208
- "hb",
2209
- "hB"
2210
- ],
2211
- FM: [
2212
- "h",
2213
- "hb",
2214
- "H",
2215
- "hB"
2216
- ],
2217
- FO: [
2218
- "H",
2219
- "h"
2220
- ],
2221
- FR: [
2222
- "H",
2223
- "hB"
2224
- ],
2225
- GA: [
2226
- "H",
2227
- "hB"
2228
- ],
2229
- GB: [
2230
- "H",
2231
- "h",
2232
- "hb",
2233
- "hB"
2234
- ],
2235
- GD: [
2236
- "h",
2237
- "hb",
2238
- "H",
2239
- "hB"
2240
- ],
2241
- GE: [
2242
- "H",
2243
- "hB",
2244
- "h"
2245
- ],
2246
- GF: [
2247
- "H",
2248
- "hB"
2249
- ],
2250
- GG: [
2251
- "H",
2252
- "h",
2253
- "hb",
2254
- "hB"
2255
- ],
2256
- GH: [
2257
- "h",
2258
- "H"
2259
- ],
2260
- GI: [
2261
- "H",
2262
- "h",
2263
- "hb",
2264
- "hB"
2265
- ],
2266
- GL: [
2267
- "H",
2268
- "h"
2269
- ],
2270
- GM: [
2271
- "h",
2272
- "hb",
2273
- "H",
2274
- "hB"
2275
- ],
2276
- GN: [
2277
- "H",
2278
- "hB"
2279
- ],
2280
- GP: [
2281
- "H",
2282
- "hB"
2283
- ],
2284
- GQ: [
2285
- "H",
2286
- "hB",
2287
- "h",
2288
- "hb"
2289
- ],
2290
- GR: [
2291
- "h",
2292
- "H",
2293
- "hb",
2294
- "hB"
2295
- ],
2296
- GT: [
2297
- "h",
2298
- "H",
2299
- "hB",
2300
- "hb"
2301
- ],
2302
- GU: [
2303
- "h",
2304
- "hb",
2305
- "H",
2306
- "hB"
2307
- ],
2308
- GW: [
2309
- "H",
2310
- "hB"
2311
- ],
2312
- GY: [
2313
- "h",
2314
- "hb",
2315
- "H",
2316
- "hB"
2317
- ],
2318
- HK: [
2319
- "h",
2320
- "hB",
2321
- "hb",
2322
- "H"
2323
- ],
2324
- HN: [
2325
- "h",
2326
- "H",
2327
- "hB",
2328
- "hb"
2329
- ],
2330
- HR: [
2331
- "H",
2332
- "hB"
2333
- ],
2334
- HU: [
2335
- "H",
2336
- "h"
2337
- ],
2338
- IC: [
2339
- "H",
2340
- "h",
2341
- "hB",
2342
- "hb"
2343
- ],
2344
- ID: [
2345
- "H"
2346
- ],
2347
- IE: [
2348
- "H",
2349
- "h",
2350
- "hb",
2351
- "hB"
2352
- ],
2353
- IL: [
2354
- "H",
2355
- "hB"
2356
- ],
2357
- IM: [
2358
- "H",
2359
- "h",
2360
- "hb",
2361
- "hB"
2362
- ],
2363
- IN: [
2364
- "h",
2365
- "H"
2366
- ],
2367
- IO: [
2368
- "H",
2369
- "h",
2370
- "hb",
2371
- "hB"
2372
- ],
2373
- IQ: [
2374
- "h",
2375
- "hB",
2376
- "hb",
2377
- "H"
2378
- ],
2379
- IR: [
2380
- "hB",
2381
- "H"
2382
- ],
2383
- IS: [
2384
- "H"
2385
- ],
2386
- IT: [
2387
- "H",
2388
- "hB"
2389
- ],
2390
- JE: [
2391
- "H",
2392
- "h",
2393
- "hb",
2394
- "hB"
2395
- ],
2396
- JM: [
2397
- "h",
2398
- "hb",
2399
- "H",
2400
- "hB"
2401
- ],
2402
- JO: [
2403
- "h",
2404
- "hB",
2405
- "hb",
2406
- "H"
2407
- ],
2408
- JP: [
2409
- "H",
2410
- "K",
2411
- "h"
2412
- ],
2413
- KE: [
2414
- "hB",
2415
- "hb",
2416
- "H",
2417
- "h"
2418
- ],
2419
- KG: [
2420
- "H",
2421
- "h",
2422
- "hB",
2423
- "hb"
2424
- ],
2425
- KH: [
2426
- "hB",
2427
- "h",
2428
- "H",
2429
- "hb"
2430
- ],
2431
- KI: [
2432
- "h",
2433
- "hb",
2434
- "H",
2435
- "hB"
2436
- ],
2437
- KM: [
2438
- "H",
2439
- "h",
2440
- "hB",
2441
- "hb"
2442
- ],
2443
- KN: [
2444
- "h",
2445
- "hb",
2446
- "H",
2447
- "hB"
2448
- ],
2449
- KP: [
2450
- "h",
2451
- "H",
2452
- "hB",
2453
- "hb"
2454
- ],
2455
- KR: [
2456
- "h",
2457
- "H",
2458
- "hB",
2459
- "hb"
2460
- ],
2461
- KW: [
2462
- "h",
2463
- "hB",
2464
- "hb",
2465
- "H"
2466
- ],
2467
- KY: [
2468
- "h",
2469
- "hb",
2470
- "H",
2471
- "hB"
2472
- ],
2473
- KZ: [
2474
- "H",
2475
- "hB"
2476
- ],
2477
- LA: [
2478
- "H",
2479
- "hb",
2480
- "hB",
2481
- "h"
2482
- ],
2483
- LB: [
2484
- "h",
2485
- "hB",
2486
- "hb",
2487
- "H"
2488
- ],
2489
- LC: [
2490
- "h",
2491
- "hb",
2492
- "H",
2493
- "hB"
2494
- ],
2495
- LI: [
2496
- "H",
2497
- "hB",
2498
- "h"
2499
- ],
2500
- LK: [
2501
- "H",
2502
- "h",
2503
- "hB",
2504
- "hb"
2505
- ],
2506
- LR: [
2507
- "h",
2508
- "hb",
2509
- "H",
2510
- "hB"
2511
- ],
2512
- LS: [
2513
- "h",
2514
- "H"
2515
- ],
2516
- LT: [
2517
- "H",
2518
- "h",
2519
- "hb",
2520
- "hB"
2521
- ],
2522
- LU: [
2523
- "H",
2524
- "h",
2525
- "hB"
2526
- ],
2527
- LV: [
2528
- "H",
2529
- "hB",
2530
- "hb",
2531
- "h"
2532
- ],
2533
- LY: [
2534
- "h",
2535
- "hB",
2536
- "hb",
2537
- "H"
2538
- ],
2539
- MA: [
2540
- "H",
2541
- "h",
2542
- "hB",
2543
- "hb"
2544
- ],
2545
- MC: [
2546
- "H",
2547
- "hB"
2548
- ],
2549
- MD: [
2550
- "H",
2551
- "hB"
2552
- ],
2553
- ME: [
2554
- "H",
2555
- "hB",
2556
- "h"
2557
- ],
2558
- MF: [
2559
- "H",
2560
- "hB"
2561
- ],
2562
- MG: [
2563
- "H",
2564
- "h"
2565
- ],
2566
- MH: [
2567
- "h",
2568
- "hb",
2569
- "H",
2570
- "hB"
2571
- ],
2572
- MK: [
2573
- "H",
2574
- "h",
2575
- "hb",
2576
- "hB"
2577
- ],
2578
- ML: [
2579
- "H"
2580
- ],
2581
- MM: [
2582
- "hB",
2583
- "hb",
2584
- "H",
2585
- "h"
2586
- ],
2587
- MN: [
2588
- "H",
2589
- "h",
2590
- "hb",
2591
- "hB"
2592
- ],
2593
- MO: [
2594
- "h",
2595
- "hB",
2596
- "hb",
2597
- "H"
2598
- ],
2599
- MP: [
2600
- "h",
2601
- "hb",
2602
- "H",
2603
- "hB"
2604
- ],
2605
- MQ: [
2606
- "H",
2607
- "hB"
2608
- ],
2609
- MR: [
2610
- "h",
2611
- "hB",
2612
- "hb",
2613
- "H"
2614
- ],
2615
- MS: [
2616
- "H",
2617
- "h",
2618
- "hb",
2619
- "hB"
2620
- ],
2621
- MT: [
2622
- "H",
2623
- "h"
2624
- ],
2625
- MU: [
2626
- "H",
2627
- "h"
2628
- ],
2629
- MV: [
2630
- "H",
2631
- "h"
2632
- ],
2633
- MW: [
2634
- "h",
2635
- "hb",
2636
- "H",
2637
- "hB"
2638
- ],
2639
- MX: [
2640
- "h",
2641
- "H",
2642
- "hB",
2643
- "hb"
2644
- ],
2645
- MY: [
2646
- "hb",
2647
- "hB",
2648
- "h",
2649
- "H"
2650
- ],
2651
- MZ: [
2652
- "H",
2653
- "hB"
2654
- ],
2655
- NA: [
2656
- "h",
2657
- "H",
2658
- "hB",
2659
- "hb"
2660
- ],
2661
- NC: [
2662
- "H",
2663
- "hB"
2664
- ],
2665
- NE: [
2666
- "H"
2667
- ],
2668
- NF: [
2669
- "H",
2670
- "h",
2671
- "hb",
2672
- "hB"
2673
- ],
2674
- NG: [
2675
- "H",
2676
- "h",
2677
- "hb",
2678
- "hB"
2679
- ],
2680
- NI: [
2681
- "h",
2682
- "H",
2683
- "hB",
2684
- "hb"
2685
- ],
2686
- NL: [
2687
- "H",
2688
- "hB"
2689
- ],
2690
- NO: [
2691
- "H",
2692
- "h"
2693
- ],
2694
- NP: [
2695
- "H",
2696
- "h",
2697
- "hB"
2698
- ],
2699
- NR: [
2700
- "H",
2701
- "h",
2702
- "hb",
2703
- "hB"
2704
- ],
2705
- NU: [
2706
- "H",
2707
- "h",
2708
- "hb",
2709
- "hB"
2710
- ],
2711
- NZ: [
2712
- "h",
2713
- "hb",
2714
- "H",
2715
- "hB"
2716
- ],
2717
- OM: [
2718
- "h",
2719
- "hB",
2720
- "hb",
2721
- "H"
2722
- ],
2723
- PA: [
2724
- "h",
2725
- "H",
2726
- "hB",
2727
- "hb"
2728
- ],
2729
- PE: [
2730
- "h",
2731
- "H",
2732
- "hB",
2733
- "hb"
2734
- ],
2735
- PF: [
2736
- "H",
2737
- "h",
2738
- "hB"
2739
- ],
2740
- PG: [
2741
- "h",
2742
- "H"
2743
- ],
2744
- PH: [
2745
- "h",
2746
- "hB",
2747
- "hb",
2748
- "H"
2749
- ],
2750
- PK: [
2751
- "h",
2752
- "hB",
2753
- "H"
2754
- ],
2755
- PL: [
2756
- "H",
2757
- "h"
2758
- ],
2759
- PM: [
2760
- "H",
2761
- "hB"
2762
- ],
2763
- PN: [
2764
- "H",
2765
- "h",
2766
- "hb",
2767
- "hB"
2768
- ],
2769
- PR: [
2770
- "h",
2771
- "H",
2772
- "hB",
2773
- "hb"
2774
- ],
2775
- PS: [
2776
- "h",
2777
- "hB",
2778
- "hb",
2779
- "H"
2780
- ],
2781
- PT: [
2782
- "H",
2783
- "hB"
2784
- ],
2785
- PW: [
2786
- "h",
2787
- "H"
2788
- ],
2789
- PY: [
2790
- "h",
2791
- "H",
2792
- "hB",
2793
- "hb"
2794
- ],
2795
- QA: [
2796
- "h",
2797
- "hB",
2798
- "hb",
2799
- "H"
2800
- ],
2801
- RE: [
2802
- "H",
2803
- "hB"
2804
- ],
2805
- RO: [
2806
- "H",
2807
- "hB"
2808
- ],
2809
- RS: [
2810
- "H",
2811
- "hB",
2812
- "h"
2813
- ],
2814
- RU: [
2815
- "H"
2816
- ],
2817
- RW: [
2818
- "H",
2819
- "h"
2820
- ],
2821
- SA: [
2822
- "h",
2823
- "hB",
2824
- "hb",
2825
- "H"
2826
- ],
2827
- SB: [
2828
- "h",
2829
- "hb",
2830
- "H",
2831
- "hB"
2832
- ],
2833
- SC: [
2834
- "H",
2835
- "h",
2836
- "hB"
2837
- ],
2838
- SD: [
2839
- "h",
2840
- "hB",
2841
- "hb",
2842
- "H"
2843
- ],
2844
- SE: [
2845
- "H"
2846
- ],
2847
- SG: [
2848
- "h",
2849
- "hb",
2850
- "H",
2851
- "hB"
2852
- ],
2853
- SH: [
2854
- "H",
2855
- "h",
2856
- "hb",
2857
- "hB"
2858
- ],
2859
- SI: [
2860
- "H",
2861
- "hB"
2862
- ],
2863
- SJ: [
2864
- "H"
2865
- ],
2866
- SK: [
2867
- "H"
2868
- ],
2869
- SL: [
2870
- "h",
2871
- "hb",
2872
- "H",
2873
- "hB"
2874
- ],
2875
- SM: [
2876
- "H",
2877
- "h",
2878
- "hB"
2879
- ],
2880
- SN: [
2881
- "H",
2882
- "h",
2883
- "hB"
2884
- ],
2885
- SO: [
2886
- "h",
2887
- "H"
2888
- ],
2889
- SR: [
2890
- "H",
2891
- "hB"
2892
- ],
2893
- SS: [
2894
- "h",
2895
- "hb",
2896
- "H",
2897
- "hB"
2898
- ],
2899
- ST: [
2900
- "H",
2901
- "hB"
2902
- ],
2903
- SV: [
2904
- "h",
2905
- "H",
2906
- "hB",
2907
- "hb"
2908
- ],
2909
- SX: [
2910
- "H",
2911
- "h",
2912
- "hb",
2913
- "hB"
2914
- ],
2915
- SY: [
2916
- "h",
2917
- "hB",
2918
- "hb",
2919
- "H"
2920
- ],
2921
- SZ: [
2922
- "h",
2923
- "hb",
2924
- "H",
2925
- "hB"
2926
- ],
2927
- TA: [
2928
- "H",
2929
- "h",
2930
- "hb",
2931
- "hB"
2932
- ],
2933
- TC: [
2934
- "h",
2935
- "hb",
2936
- "H",
2937
- "hB"
2938
- ],
2939
- TD: [
2940
- "h",
2941
- "H",
2942
- "hB"
2943
- ],
2944
- TF: [
2945
- "H",
2946
- "h",
2947
- "hB"
2948
- ],
2949
- TG: [
2950
- "H",
2951
- "hB"
2952
- ],
2953
- TH: [
2954
- "H",
2955
- "h"
2956
- ],
2957
- TJ: [
2958
- "H",
2959
- "h"
2960
- ],
2961
- TL: [
2962
- "H",
2963
- "hB",
2964
- "hb",
2965
- "h"
2966
- ],
2967
- TM: [
2968
- "H",
2969
- "h"
2970
- ],
2971
- TN: [
2972
- "h",
2973
- "hB",
2974
- "hb",
2975
- "H"
2976
- ],
2977
- TO: [
2978
- "h",
2979
- "H"
2980
- ],
2981
- TR: [
2982
- "H",
2983
- "hB"
2984
- ],
2985
- TT: [
2986
- "h",
2987
- "hb",
2988
- "H",
2989
- "hB"
2990
- ],
2991
- TW: [
2992
- "hB",
2993
- "hb",
2994
- "h",
2995
- "H"
2996
- ],
2997
- TZ: [
2998
- "hB",
2999
- "hb",
3000
- "H",
3001
- "h"
3002
- ],
3003
- UA: [
3004
- "H",
3005
- "hB",
3006
- "h"
3007
- ],
3008
- UG: [
3009
- "hB",
3010
- "hb",
3011
- "H",
3012
- "h"
3013
- ],
3014
- UM: [
3015
- "h",
3016
- "hb",
3017
- "H",
3018
- "hB"
3019
- ],
3020
- US: [
3021
- "h",
3022
- "hb",
3023
- "H",
3024
- "hB"
3025
- ],
3026
- UY: [
3027
- "h",
3028
- "H",
3029
- "hB",
3030
- "hb"
3031
- ],
3032
- UZ: [
3033
- "H",
3034
- "hB",
3035
- "h"
3036
- ],
3037
- VA: [
3038
- "H",
3039
- "h",
3040
- "hB"
3041
- ],
3042
- VC: [
3043
- "h",
3044
- "hb",
3045
- "H",
3046
- "hB"
3047
- ],
3048
- VE: [
3049
- "h",
3050
- "H",
3051
- "hB",
3052
- "hb"
3053
- ],
3054
- VG: [
3055
- "h",
3056
- "hb",
3057
- "H",
3058
- "hB"
3059
- ],
3060
- VI: [
3061
- "h",
3062
- "hb",
3063
- "H",
3064
- "hB"
3065
- ],
3066
- VN: [
3067
- "H",
3068
- "h"
3069
- ],
3070
- VU: [
3071
- "h",
3072
- "H"
3073
- ],
3074
- WF: [
3075
- "H",
3076
- "hB"
3077
- ],
3078
- WS: [
3079
- "h",
3080
- "H"
3081
- ],
3082
- XK: [
3083
- "H",
3084
- "hB",
3085
- "h"
3086
- ],
3087
- YE: [
3088
- "h",
3089
- "hB",
3090
- "hb",
3091
- "H"
3092
- ],
3093
- YT: [
3094
- "H",
3095
- "hB"
3096
- ],
3097
- ZA: [
3098
- "H",
3099
- "h",
3100
- "hb",
3101
- "hB"
3102
- ],
3103
- ZM: [
3104
- "h",
3105
- "hb",
3106
- "H",
3107
- "hB"
3108
- ],
3109
- ZW: [
3110
- "H",
3111
- "h"
3112
- ],
3113
- "af-ZA": [
3114
- "H",
3115
- "h",
3116
- "hB",
3117
- "hb"
3118
- ],
3119
- "ar-001": [
3120
- "h",
3121
- "hB",
3122
- "hb",
3123
- "H"
3124
- ],
3125
- "ca-ES": [
3126
- "H",
3127
- "h",
3128
- "hB"
3129
- ],
3130
- "en-001": [
3131
- "h",
3132
- "hb",
3133
- "H",
3134
- "hB"
3135
- ],
3136
- "en-HK": [
3137
- "h",
3138
- "hb",
3139
- "H",
3140
- "hB"
3141
- ],
3142
- "en-IL": [
3143
- "H",
3144
- "h",
3145
- "hb",
3146
- "hB"
3147
- ],
3148
- "en-MY": [
3149
- "h",
3150
- "hb",
3151
- "H",
3152
- "hB"
3153
- ],
3154
- "es-BR": [
3155
- "H",
3156
- "h",
3157
- "hB",
3158
- "hb"
3159
- ],
3160
- "es-ES": [
3161
- "H",
3162
- "h",
3163
- "hB",
3164
- "hb"
3165
- ],
3166
- "es-GQ": [
3167
- "H",
3168
- "h",
3169
- "hB",
3170
- "hb"
3171
- ],
3172
- "fr-CA": [
3173
- "H",
3174
- "h",
3175
- "hB"
3176
- ],
3177
- "gl-ES": [
3178
- "H",
3179
- "h",
3180
- "hB"
3181
- ],
3182
- "gu-IN": [
3183
- "hB",
3184
- "hb",
3185
- "h",
3186
- "H"
3187
- ],
3188
- "hi-IN": [
3189
- "hB",
3190
- "h",
3191
- "H"
3192
- ],
3193
- "it-CH": [
3194
- "H",
3195
- "h",
3196
- "hB"
3197
- ],
3198
- "it-IT": [
3199
- "H",
3200
- "h",
3201
- "hB"
3202
- ],
3203
- "kn-IN": [
3204
- "hB",
3205
- "h",
3206
- "H"
3207
- ],
3208
- "ml-IN": [
3209
- "hB",
3210
- "h",
3211
- "H"
3212
- ],
3213
- "mr-IN": [
3214
- "hB",
3215
- "hb",
3216
- "h",
3217
- "H"
3218
- ],
3219
- "pa-IN": [
3220
- "hB",
3221
- "hb",
3222
- "h",
3223
- "H"
3224
- ],
3225
- "ta-IN": [
3226
- "hB",
3227
- "h",
3228
- "hb",
3229
- "H"
3230
- ],
3231
- "te-IN": [
3232
- "hB",
3233
- "h",
3234
- "H"
3235
- ],
3236
- "zu-ZA": [
3237
- "H",
3238
- "hB",
3239
- "hb",
3240
- "h"
3241
- ]
3242
- };
3243
- function si(e, t) {
3244
- for (var r = "", n = 0; n < e.length; n++) {
3245
- var i = e.charAt(n);
3246
- if (i === "j") {
3247
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3248
- o++, n++;
3249
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ai(t);
3250
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
3251
- r += l;
3252
- for (; a-- > 0; )
3253
- r = u + r;
3254
- } else
3255
- i === "J" ? r += "H" : r += i;
3256
- }
3257
- return r;
3258
- }
3259
- function ai(e) {
3260
- var t = e.hourCycle;
3261
- if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3262
- e.hourCycles && // @ts-ignore
3263
- e.hourCycles.length && (t = e.hourCycles[0]), t)
3264
- switch (t) {
3265
- case "h24":
3266
- return "k";
3267
- case "h23":
3268
- return "H";
3269
- case "h12":
3270
- return "h";
3271
- case "h11":
3272
- return "K";
3273
- default:
3274
- throw new Error("Invalid hourCycle");
3275
- }
3276
- var r = e.language, n;
3277
- r !== "root" && (n = e.maximize().region);
3278
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
3279
- return i[0];
3280
- }
3281
- var Ue, ui = new RegExp("^".concat(lr.source, "*")), li = new RegExp("".concat(lr.source, "*$"));
3282
- function y(e, t) {
3283
- return { start: e, end: t };
3284
- }
3285
- var hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ci = !!String.fromCodePoint, fi = !!Object.fromEntries, mi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, bi = !!Number.isSafeInteger, gi = bi ? Number.isSafeInteger : function(e) {
3286
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3287
- }, Ye = !0;
3288
- try {
3289
- var yi = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3290
- Ye = ((Ue = yi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
3291
- } catch {
3292
- Ye = !1;
3293
- }
3294
- var Ct = hi ? (
3295
- // Native
3296
- function(t, r, n) {
3297
- return t.startsWith(r, n);
3298
- }
3299
- ) : (
3300
- // For IE11
3301
- function(t, r, n) {
3302
- return t.slice(n, n + r.length) === r;
3303
- }
3304
- ), Ke = ci ? String.fromCodePoint : (
3305
- // IE11
3306
- function() {
3307
- for (var t = [], r = 0; r < arguments.length; r++)
3308
- t[r] = arguments[r];
3309
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
3310
- if (a = t[o++], a > 1114111)
3311
- throw RangeError(a + " is not a valid code point");
3312
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3313
- }
3314
- return n;
3315
- }
3316
- ), At = (
3317
- // native
3318
- fi ? Object.fromEntries : (
3319
- // Ponyfill
3320
- function(t) {
3321
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
3322
- var o = i[n], a = o[0], s = o[1];
3323
- r[a] = s;
3324
- }
3325
- return r;
3326
- }
3327
- )
3328
- ), mr = mi ? (
3329
- // Native
3330
- function(t, r) {
3331
- return t.codePointAt(r);
3332
- }
3333
- ) : (
3334
- // IE 11
3335
- function(t, r) {
3336
- var n = t.length;
3337
- if (!(r < 0 || r >= n)) {
3338
- var i = t.charCodeAt(r), o;
3339
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3340
- }
3341
- }
3342
- ), vi = pi ? (
3343
- // Native
3344
- function(t) {
3345
- return t.trimStart();
3346
- }
3347
- ) : (
3348
- // Ponyfill
3349
- function(t) {
3350
- return t.replace(ui, "");
3351
- }
3352
- ), _i = di ? (
3353
- // Native
3354
- function(t) {
3355
- return t.trimEnd();
3356
- }
3357
- ) : (
3358
- // Ponyfill
3359
- function(t) {
3360
- return t.replace(li, "");
3361
- }
3362
- );
3363
- function pr(e, t) {
3364
- return new RegExp(e, t);
3365
- }
3366
- var et;
3367
- if (Ye) {
3368
- var Bt = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3369
- et = function(t, r) {
3370
- var n;
3371
- Bt.lastIndex = r;
3372
- var i = Bt.exec(t);
3373
- return (n = i[1]) !== null && n !== void 0 ? n : "";
3374
- };
3375
- } else
3376
- et = function(t, r) {
3377
- for (var n = []; ; ) {
3378
- var i = mr(t, r);
3379
- if (i === void 0 || dr(i) || Si(i))
3380
- break;
3381
- n.push(i), r += i >= 65536 ? 2 : 1;
3382
- }
3383
- return Ke.apply(void 0, n);
3384
- };
3385
- var xi = (
3386
- /** @class */
3387
- function() {
3388
- function e(t, r) {
3389
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3390
- }
3391
- return e.prototype.parse = function() {
3392
- if (this.offset() !== 0)
3393
- throw Error("parser can only be used once");
3394
- return this.parseMessage(0, "", !1);
3395
- }, e.prototype.parseMessage = function(t, r, n) {
3396
- for (var i = []; !this.isEOF(); ) {
3397
- var o = this.char();
3398
- if (o === 123) {
3399
- var a = this.parseArgument(t, n);
3400
- if (a.err)
3401
- return a;
3402
- i.push(a.val);
3403
- } else {
3404
- if (o === 125 && t > 0)
3405
- break;
3406
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
3407
- var s = this.clonePosition();
3408
- this.bump(), i.push({
3409
- type: x.pound,
3410
- location: y(s, this.clonePosition())
3411
- });
3412
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3413
- if (n)
3414
- break;
3415
- return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3416
- } else if (o === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
3417
- var a = this.parseTag(t, r);
3418
- if (a.err)
3419
- return a;
3420
- i.push(a.val);
3421
- } else {
3422
- var a = this.parseLiteral(t, r);
3423
- if (a.err)
3424
- return a;
3425
- i.push(a.val);
3426
- }
3427
- }
3428
- }
3429
- return { val: i, err: null };
3430
- }, e.prototype.parseTag = function(t, r) {
3431
- var n = this.clonePosition();
3432
- this.bump();
3433
- var i = this.parseTagName();
3434
- if (this.bumpSpace(), this.bumpIf("/>"))
3435
- return {
3436
- val: {
3437
- type: x.literal,
3438
- value: "<".concat(i, "/>"),
3439
- location: y(n, this.clonePosition())
3440
- },
3441
- err: null
3442
- };
3443
- if (this.bumpIf(">")) {
3444
- var o = this.parseMessage(t + 1, r, !0);
3445
- if (o.err)
3446
- return o;
3447
- var a = o.val, s = this.clonePosition();
3448
- if (this.bumpIf("</")) {
3449
- if (this.isEOF() || !tt(this.char()))
3450
- return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3451
- var l = this.clonePosition(), u = this.parseTagName();
3452
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3453
- val: {
3454
- type: x.tag,
3455
- value: i,
3456
- children: a,
3457
- location: y(n, this.clonePosition())
3458
- },
3459
- err: null
3460
- } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
3461
- } else
3462
- return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3463
- } else
3464
- return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3465
- }, e.prototype.parseTagName = function() {
3466
- var t = this.offset();
3467
- for (this.bump(); !this.isEOF() && wi(this.char()); )
3468
- this.bump();
3469
- return this.message.slice(t, this.offset());
3470
- }, e.prototype.parseLiteral = function(t, r) {
3471
- for (var n = this.clonePosition(), i = ""; ; ) {
3472
- var o = this.tryParseQuote(r);
3473
- if (o) {
3474
- i += o;
3475
- continue;
3476
- }
3477
- var a = this.tryParseUnquoted(t, r);
3478
- if (a) {
3479
- i += a;
3480
- continue;
3481
- }
3482
- var s = this.tryParseLeftAngleBracket();
3483
- if (s) {
3484
- i += s;
3485
- continue;
3486
- }
3487
- break;
3488
- }
3489
- var l = y(n, this.clonePosition());
3490
- return {
3491
- val: { type: x.literal, value: i, location: l },
3492
- err: null
3493
- };
3494
- }, e.prototype.tryParseLeftAngleBracket = function() {
3495
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3496
- !Ei(this.peek() || 0)) ? (this.bump(), "<") : null;
3497
- }, e.prototype.tryParseQuote = function(t) {
3498
- if (this.isEOF() || this.char() !== 39)
3499
- return null;
3500
- switch (this.peek()) {
3501
- case 39:
3502
- return this.bump(), this.bump(), "'";
3503
- case 123:
3504
- case 60:
3505
- case 62:
3506
- case 125:
3507
- break;
3508
- case 35:
3509
- if (t === "plural" || t === "selectordinal")
3510
- break;
3511
- return null;
3512
- default:
3513
- return null;
3514
- }
3515
- this.bump();
3516
- var r = [this.char()];
3517
- for (this.bump(); !this.isEOF(); ) {
3518
- var n = this.char();
3519
- if (n === 39)
3520
- if (this.peek() === 39)
3521
- r.push(39), this.bump();
3522
- else {
3523
- this.bump();
3524
- break;
3525
- }
3526
- else
3527
- r.push(n);
3528
- this.bump();
3529
- }
3530
- return Ke.apply(void 0, r);
3531
- }, e.prototype.tryParseUnquoted = function(t, r) {
3532
- if (this.isEOF())
3533
- return null;
3534
- var n = this.char();
3535
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
3536
- }, e.prototype.parseArgument = function(t, r) {
3537
- var n = this.clonePosition();
3538
- if (this.bump(), this.bumpSpace(), this.isEOF())
3539
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3540
- if (this.char() === 125)
3541
- return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3542
- var i = this.parseIdentifierIfPossible().value;
3543
- if (!i)
3544
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3545
- if (this.bumpSpace(), this.isEOF())
3546
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3547
- switch (this.char()) {
3548
- case 125:
3549
- return this.bump(), {
3550
- val: {
3551
- type: x.argument,
3552
- // value does not include the opening and closing braces.
3553
- value: i,
3554
- location: y(n, this.clonePosition())
3555
- },
3556
- err: null
3557
- };
3558
- case 44:
3559
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3560
- default:
3561
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3562
- }
3563
- }, e.prototype.parseIdentifierIfPossible = function() {
3564
- var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
3565
- this.bumpTo(i);
3566
- var o = this.clonePosition(), a = y(t, o);
3567
- return { value: n, location: a };
3568
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3569
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3570
- switch (s) {
3571
- case "":
3572
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
3573
- case "number":
3574
- case "date":
3575
- case "time": {
3576
- this.bumpSpace();
3577
- var u = null;
3578
- if (this.bumpIf(",")) {
3579
- this.bumpSpace();
3580
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3581
- if (c.err)
3582
- return c;
3583
- var f = _i(c.val);
3584
- if (f.length === 0)
3585
- return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3586
- var p = y(h, this.clonePosition());
3587
- u = { style: f, styleLocation: p };
3588
- }
3589
- var m = this.tryParseArgumentClose(i);
3590
- if (m.err)
3591
- return m;
3592
- var d = y(i, this.clonePosition());
3593
- if (u && Ct(u?.style, "::", 0)) {
3594
- var v = vi(u.style.slice(2));
3595
- if (s === "number") {
3596
- var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
3597
- return c.err ? c : {
3598
- val: { type: x.number, value: n, location: d, style: c.val },
3599
- err: null
3600
- };
3601
- } else {
3602
- if (v.length === 0)
3603
- return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
3604
- var T = v;
3605
- this.locale && (T = si(v, this.locale));
3606
- var f = {
3607
- type: Z.dateTime,
3608
- pattern: T,
3609
- location: u.styleLocation,
3610
- parsedOptions: this.shouldParseSkeletons ? Kn(T) : {}
3611
- }, C = s === "date" ? x.date : x.time;
3612
- return {
3613
- val: { type: C, value: n, location: d, style: f },
3614
- err: null
3615
- };
3616
- }
3617
- }
3618
- return {
3619
- val: {
3620
- type: s === "number" ? x.number : s === "date" ? x.date : x.time,
3621
- value: n,
3622
- location: d,
3623
- style: (o = u?.style) !== null && o !== void 0 ? o : null
3624
- },
3625
- err: null
3626
- };
3627
- }
3628
- case "plural":
3629
- case "selectordinal":
3630
- case "select": {
3631
- var S = this.clonePosition();
3632
- if (this.bumpSpace(), !this.bumpIf(","))
3633
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, _e({}, S)));
3634
- this.bumpSpace();
3635
- var A = this.parseIdentifierIfPossible(), E = 0;
3636
- if (s !== "select" && A.value === "offset") {
3637
- if (!this.bumpIf(":"))
3638
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3639
- this.bumpSpace();
3640
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3641
- if (c.err)
3642
- return c;
3643
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), E = c.val;
3644
- }
3645
- var _ = this.tryParsePluralOrSelectOptions(t, s, r, A);
3646
- if (_.err)
3647
- return _;
3648
- var m = this.tryParseArgumentClose(i);
3649
- if (m.err)
3650
- return m;
3651
- var O = y(i, this.clonePosition());
3652
- return s === "select" ? {
3653
- val: {
3654
- type: x.select,
3655
- value: n,
3656
- options: At(_.val),
3657
- location: O
3658
- },
3659
- err: null
3660
- } : {
3661
- val: {
3662
- type: x.plural,
3663
- value: n,
3664
- options: At(_.val),
3665
- offset: E,
3666
- pluralType: s === "plural" ? "cardinal" : "ordinal",
3667
- location: O
3668
- },
3669
- err: null
3670
- };
3671
- }
3672
- default:
3673
- return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
3674
- }
3675
- }, e.prototype.tryParseArgumentClose = function(t) {
3676
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3677
- }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3678
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3679
- var n = this.char();
3680
- switch (n) {
3681
- case 39: {
3682
- this.bump();
3683
- var i = this.clonePosition();
3684
- if (!this.bumpUntil("'"))
3685
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3686
- this.bump();
3687
- break;
3688
- }
3689
- case 123: {
3690
- t += 1, this.bump();
3691
- break;
3692
- }
3693
- case 125: {
3694
- if (t > 0)
3695
- t -= 1;
3696
- else
3697
- return {
3698
- val: this.message.slice(r.offset, this.offset()),
3699
- err: null
3700
- };
3701
- break;
3702
- }
3703
- default:
3704
- this.bump();
3705
- break;
3706
- }
3707
- }
3708
- return {
3709
- val: this.message.slice(r.offset, this.offset()),
3710
- err: null
3711
- };
3712
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3713
- var n = [];
3714
- try {
3715
- n = ti(t);
3716
- } catch {
3717
- return this.error(b.INVALID_NUMBER_SKELETON, r);
3718
- }
3719
- return {
3720
- val: {
3721
- type: Z.number,
3722
- tokens: n,
3723
- location: r,
3724
- parsedOptions: this.shouldParseSkeletons ? oi(n) : {}
3725
- },
3726
- err: null
3727
- };
3728
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3729
- for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3730
- if (u.length === 0) {
3731
- var c = this.clonePosition();
3732
- if (r !== "select" && this.bumpIf("=")) {
3733
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3734
- if (f.err)
3735
- return f;
3736
- h = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3737
- } else
3738
- break;
3739
- }
3740
- if (l.has(u))
3741
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3742
- u === "other" && (a = !0), this.bumpSpace();
3743
- var p = this.clonePosition();
3744
- if (!this.bumpIf("{"))
3745
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3746
- var m = this.parseMessage(t + 1, r, n);
3747
- if (m.err)
3748
- return m;
3749
- var d = this.tryParseArgumentClose(p);
3750
- if (d.err)
3751
- return d;
3752
- s.push([
3753
- u,
3754
- {
3755
- value: m.val,
3756
- location: y(p, this.clonePosition())
3757
- }
3758
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3759
- }
3760
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3761
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3762
- var n = 1, i = this.clonePosition();
3763
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3764
- for (var o = !1, a = 0; !this.isEOF(); ) {
3765
- var s = this.char();
3766
- if (s >= 48 && s <= 57)
3767
- o = !0, a = a * 10 + (s - 48), this.bump();
3768
- else
3769
- break;
3770
- }
3771
- var l = y(i, this.clonePosition());
3772
- return o ? (a *= n, gi(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3773
- }, e.prototype.offset = function() {
3774
- return this.position.offset;
3775
- }, e.prototype.isEOF = function() {
3776
- return this.offset() === this.message.length;
3777
- }, e.prototype.clonePosition = function() {
3778
- return {
3779
- offset: this.position.offset,
3780
- line: this.position.line,
3781
- column: this.position.column
3782
- };
3783
- }, e.prototype.char = function() {
3784
- var t = this.position.offset;
3785
- if (t >= this.message.length)
3786
- throw Error("out of bound");
3787
- var r = mr(this.message, t);
3788
- if (r === void 0)
3789
- throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3790
- return r;
3791
- }, e.prototype.error = function(t, r) {
3792
- return {
3793
- val: null,
3794
- err: {
3795
- kind: t,
3796
- message: this.message,
3797
- location: r
3798
- }
3799
- };
3800
- }, e.prototype.bump = function() {
3801
- if (!this.isEOF()) {
3802
- var t = this.char();
3803
- 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);
3804
- }
3805
- }, e.prototype.bumpIf = function(t) {
3806
- if (Ct(this.message, t, this.offset())) {
3807
- for (var r = 0; r < t.length; r++)
3808
- this.bump();
3809
- return !0;
3810
- }
3811
- return !1;
3812
- }, e.prototype.bumpUntil = function(t) {
3813
- var r = this.offset(), n = this.message.indexOf(t, r);
3814
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3815
- }, e.prototype.bumpTo = function(t) {
3816
- if (this.offset() > t)
3817
- throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3818
- for (t = Math.min(t, this.message.length); ; ) {
3819
- var r = this.offset();
3820
- if (r === t)
3821
- break;
3822
- if (r > t)
3823
- throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3824
- if (this.bump(), this.isEOF())
3825
- break;
3826
- }
3827
- }, e.prototype.bumpSpace = function() {
3828
- for (; !this.isEOF() && dr(this.char()); )
3829
- this.bump();
3830
- }, e.prototype.peek = function() {
3831
- if (this.isEOF())
3832
- return null;
3833
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3834
- return n ?? null;
3835
- }, e;
3836
- }()
3837
- );
3838
- function tt(e) {
3839
- return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3840
- }
3841
- function Ei(e) {
3842
- return tt(e) || e === 47;
3843
- }
3844
- function wi(e) {
3845
- 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;
3846
- }
3847
- function dr(e) {
3848
- return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3849
- }
3850
- function Si(e) {
3851
- 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;
3852
- }
3853
- function rt(e) {
3854
- e.forEach(function(t) {
3855
- if (delete t.location, or(t) || sr(t))
3856
- for (var r in t.options)
3857
- delete t.options[r].location, rt(t.options[r].value);
3858
- else
3859
- rr(t) && ur(t.style) || (nr(t) || ir(t)) && qe(t.style) ? delete t.style.location : ar(t) && rt(t.children);
3860
- });
3861
- }
3862
- function Ti(e, t) {
3863
- t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3864
- var r = new xi(e, t).parse();
3865
- if (r.err) {
3866
- var n = SyntaxError(b[r.err.kind]);
3867
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3868
- }
3869
- return t?.captureLocation || rt(r.val), r.val;
3870
- }
3871
- var Q;
3872
- (function(e) {
3873
- e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3874
- })(Q || (Q = {}));
3875
- var Ce = (
3876
- /** @class */
3877
- function(e) {
3878
- He(t, e);
3879
- function t(r, n, i) {
3880
- var o = e.call(this, r) || this;
3881
- return o.code = n, o.originalMessage = i, o;
3882
- }
3883
- return t.prototype.toString = function() {
3884
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3885
- }, t;
3886
- }(Error)
3887
- ), Pt = (
3888
- /** @class */
3889
- function(e) {
3890
- He(t, e);
3891
- function t(r, n, i, o) {
3892
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
3893
- }
3894
- return t;
3895
- }(Ce)
3896
- ), Hi = (
3897
- /** @class */
3898
- function(e) {
3899
- He(t, e);
3900
- function t(r, n, i) {
3901
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
3902
- }
3903
- return t;
3904
- }(Ce)
3905
- ), Ci = (
3906
- /** @class */
3907
- function(e) {
3908
- He(t, e);
3909
- function t(r, n) {
3910
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
3911
- }
3912
- return t;
3913
- }(Ce)
3914
- ), B;
3915
- (function(e) {
3916
- e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3917
- })(B || (B = {}));
3918
- function Ai(e) {
3919
- return e.length < 2 ? e : e.reduce(function(t, r) {
3920
- var n = t[t.length - 1];
3921
- return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3922
- }, []);
3923
- }
3924
- function Bi(e) {
3925
- return typeof e == "function";
3926
- }
3927
- function de(e, t, r, n, i, o, a) {
3928
- if (e.length === 1 && wt(e[0]))
3929
- return [
3930
- {
3931
- type: B.literal,
3932
- value: e[0].value
3933
- }
3934
- ];
3935
- for (var s = [], l = 0, u = e; l < u.length; l++) {
3936
- var h = u[l];
3937
- if (wt(h)) {
3938
- s.push({
3939
- type: B.literal,
3940
- value: h.value
3941
- });
3942
- continue;
3943
- }
3944
- if (qn(h)) {
3945
- typeof o == "number" && s.push({
3946
- type: B.literal,
3947
- value: r.getNumberFormat(t).format(o)
3948
- });
3949
- continue;
3950
- }
3951
- var c = h.value;
3952
- if (!(i && c in i))
3953
- throw new Ci(c, a);
3954
- var f = i[c];
3955
- if (Jn(h)) {
3956
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3957
- type: typeof f == "string" ? B.literal : B.object,
3958
- value: f
3959
- });
3960
- continue;
3961
- }
3962
- if (nr(h)) {
3963
- var p = typeof h.style == "string" ? n.date[h.style] : qe(h.style) ? h.style.parsedOptions : void 0;
3964
- s.push({
3965
- type: B.literal,
3966
- value: r.getDateTimeFormat(t, p).format(f)
3967
- });
3968
- continue;
3969
- }
3970
- if (ir(h)) {
3971
- var p = typeof h.style == "string" ? n.time[h.style] : qe(h.style) ? h.style.parsedOptions : n.time.medium;
3972
- s.push({
3973
- type: B.literal,
3974
- value: r.getDateTimeFormat(t, p).format(f)
3975
- });
3976
- continue;
3977
- }
3978
- if (rr(h)) {
3979
- var p = typeof h.style == "string" ? n.number[h.style] : ur(h.style) ? h.style.parsedOptions : void 0;
3980
- p && p.scale && (f = f * (p.scale || 1)), s.push({
3981
- type: B.literal,
3982
- value: r.getNumberFormat(t, p).format(f)
3983
- });
3984
- continue;
3985
- }
3986
- if (ar(h)) {
3987
- var m = h.children, d = h.value, v = i[d];
3988
- if (!Bi(v))
3989
- throw new Hi(d, "function", a);
3990
- var T = de(m, t, r, n, i, o), C = v(T.map(function(E) {
3991
- return E.value;
3992
- }));
3993
- Array.isArray(C) || (C = [C]), s.push.apply(s, C.map(function(E) {
3994
- return {
3995
- type: typeof E == "string" ? B.literal : B.object,
3996
- value: E
3997
- };
3998
- }));
3999
- }
4000
- if (or(h)) {
4001
- var S = h.options[f] || h.options.other;
4002
- if (!S)
4003
- throw new Pt(h.value, f, Object.keys(h.options), a);
4004
- s.push.apply(s, de(S.value, t, r, n, i));
4005
- continue;
4006
- }
4007
- if (sr(h)) {
4008
- var S = h.options["=".concat(f)];
4009
- if (!S) {
4010
- if (!Intl.PluralRules)
4011
- throw new Ce(`Intl.PluralRules is not available in this environment.
4012
- Try polyfilling it using "@formatjs/intl-pluralrules"
4013
- `, Q.MISSING_INTL_API, a);
4014
- var A = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
4015
- S = h.options[A] || h.options.other;
4016
- }
4017
- if (!S)
4018
- throw new Pt(h.value, f, Object.keys(h.options), a);
4019
- s.push.apply(s, de(S.value, t, r, n, i, f - (h.offset || 0)));
4020
- continue;
4021
- }
4022
- }
4023
- return Ai(s);
4024
- }
4025
- function Pi(e, t) {
4026
- return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4027
- return r[n] = M(M({}, e[n]), t[n] || {}), r;
4028
- }, {})) : e;
4029
- }
4030
- function Oi(e, t) {
4031
- return t ? Object.keys(e).reduce(function(r, n) {
4032
- return r[n] = Pi(e[n], t[n]), r;
4033
- }, M({}, e)) : e;
4034
- }
4035
- function De(e) {
4036
- return {
4037
- create: function() {
4038
- return {
4039
- get: function(t) {
4040
- return e[t];
4041
- },
4042
- set: function(t, r) {
4043
- e[t] = r;
4044
- }
4045
- };
4046
- }
4047
- };
4048
- }
4049
- function Li(e) {
4050
- return e === void 0 && (e = {
4051
- number: {},
4052
- dateTime: {},
4053
- pluralRules: {}
4054
- }), {
4055
- getNumberFormat: Re(function() {
4056
- for (var t, r = [], n = 0; n < arguments.length; n++)
4057
- r[n] = arguments[n];
4058
- return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
4059
- }, {
4060
- cache: De(e.number),
4061
- strategy: Ge.variadic
4062
- }),
4063
- getDateTimeFormat: Re(function() {
4064
- for (var t, r = [], n = 0; n < arguments.length; n++)
4065
- r[n] = arguments[n];
4066
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
4067
- }, {
4068
- cache: De(e.dateTime),
4069
- strategy: Ge.variadic
4070
- }),
4071
- getPluralRules: Re(function() {
4072
- for (var t, r = [], n = 0; n < arguments.length; n++)
4073
- r[n] = arguments[n];
4074
- return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
4075
- }, {
4076
- cache: De(e.pluralRules),
4077
- strategy: Ge.variadic
4078
- })
4079
- };
4080
- }
4081
- var Ii = (
4082
- /** @class */
4083
- function() {
4084
- function e(t, r, n, i) {
4085
- r === void 0 && (r = e.defaultLocale);
4086
- var o = this;
4087
- if (this.formatterCache = {
4088
- number: {},
4089
- dateTime: {},
4090
- pluralRules: {}
4091
- }, this.format = function(l) {
4092
- var u = o.formatToParts(l);
4093
- if (u.length === 1)
4094
- return u[0].value;
4095
- var h = u.reduce(function(c, f) {
4096
- return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4097
- }, []);
4098
- return h.length <= 1 ? h[0] || "" : h;
4099
- }, this.formatToParts = function(l) {
4100
- return de(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
4101
- }, this.resolvedOptions = function() {
4102
- var l;
4103
- return {
4104
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4105
- };
4106
- }, this.getAst = function() {
4107
- return o.ast;
4108
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4109
- if (this.message = t, !e.__parse)
4110
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4111
- var a = i || {};
4112
- a.formatters;
4113
- var s = jn(a, ["formatters"]);
4114
- this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
4115
- } else
4116
- this.ast = t;
4117
- if (!Array.isArray(this.ast))
4118
- throw new TypeError("A message must be provided as a String or AST.");
4119
- this.formats = Oi(e.formats, n), this.formatters = i && i.formatters || Li(this.formatterCache);
4120
- }
4121
- return Object.defineProperty(e, "defaultLocale", {
4122
- get: function() {
4123
- return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4124
- },
4125
- enumerable: !1,
4126
- configurable: !0
4127
- }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4128
- if (!(typeof Intl.Locale > "u")) {
4129
- var r = Intl.NumberFormat.supportedLocalesOf(t);
4130
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4131
- }
4132
- }, e.__parse = Ti, e.formats = {
4133
- number: {
4134
- integer: {
4135
- maximumFractionDigits: 0
4136
- },
4137
- currency: {
4138
- style: "currency"
4139
- },
4140
- percent: {
4141
- style: "percent"
4142
- }
4143
- },
4144
- date: {
4145
- short: {
4146
- month: "numeric",
4147
- day: "numeric",
4148
- year: "2-digit"
4149
- },
4150
- medium: {
4151
- month: "short",
4152
- day: "numeric",
4153
- year: "numeric"
4154
- },
4155
- long: {
4156
- month: "long",
4157
- day: "numeric",
4158
- year: "numeric"
4159
- },
4160
- full: {
4161
- weekday: "long",
4162
- month: "long",
4163
- day: "numeric",
4164
- year: "numeric"
4165
- }
4166
- },
4167
- time: {
4168
- short: {
4169
- hour: "numeric",
4170
- minute: "numeric"
4171
- },
4172
- medium: {
4173
- hour: "numeric",
4174
- minute: "numeric",
4175
- second: "numeric"
4176
- },
4177
- long: {
4178
- hour: "numeric",
4179
- minute: "numeric",
4180
- second: "numeric",
4181
- timeZoneName: "short"
4182
- },
4183
- full: {
4184
- hour: "numeric",
4185
- minute: "numeric",
4186
- second: "numeric",
4187
- timeZoneName: "short"
4188
- }
4189
- }
4190
- }, e;
4191
- }()
4192
- );
4193
- function Mi(e, t) {
4194
- if (t == null)
4195
- return;
4196
- if (t in e)
4197
- return e[t];
4198
- const r = t.split(".");
4199
- let n = e;
4200
- for (let i = 0; i < r.length; i++)
4201
- if (typeof n == "object") {
4202
- if (i > 0) {
4203
- const o = r.slice(i, r.length).join(".");
4204
- if (o in n) {
4205
- n = n[o];
4206
- break;
4207
- }
4208
- }
4209
- n = n[r[i]];
4210
- } else
4211
- n = void 0;
4212
- return n;
4213
- }
4214
- const G = {}, Ni = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), br = (e, t) => {
4215
- if (t == null)
4216
- return;
4217
- if (t in G && e in G[t])
4218
- return G[t][e];
4219
- const r = Ae(t);
4220
- for (let n = 0; n < r.length; n++) {
4221
- const i = r[n], o = Ri(i, e);
4222
- if (o)
4223
- return Ni(e, t, o);
4224
- }
4225
- };
4226
- let ut;
4227
- const le = Te({});
4228
- function $i(e) {
4229
- return ut[e] || null;
4230
- }
4231
- function gr(e) {
4232
- return e in ut;
4233
- }
4234
- function Ri(e, t) {
4235
- if (!gr(e))
4236
- return null;
4237
- const r = $i(e);
4238
- return Mi(r, t);
4239
- }
4240
- function Gi(e) {
4241
- if (e == null)
4242
- return;
4243
- const t = Ae(e);
4244
- for (let r = 0; r < t.length; r++) {
4245
- const n = t[r];
4246
- if (gr(n))
4247
- return n;
4248
- }
4249
- }
4250
- function yr(e, ...t) {
4251
- delete G[e], le.update((r) => (r[e] = Fn.all([r[e] || {}, ...t]), r));
4252
- }
4253
- q(
4254
- [le],
4255
- ([e]) => Object.keys(e)
4256
- );
4257
- le.subscribe((e) => ut = e);
4258
- const be = {};
4259
- function Ui(e, t) {
4260
- be[e].delete(t), be[e].size === 0 && delete be[e];
4261
- }
4262
- function vr(e) {
4263
- return be[e];
4264
- }
4265
- function Di(e) {
4266
- return Ae(e).map((t) => {
4267
- const r = vr(t);
4268
- return [t, r ? [...r] : []];
4269
- }).filter(([, t]) => t.length > 0);
4270
- }
4271
- function nt(e) {
4272
- return e == null ? !1 : Ae(e).some(
4273
- (t) => {
4274
- var r;
4275
- return (r = vr(t)) == null ? void 0 : r.size;
4276
- }
4277
- );
4278
- }
4279
- function Fi(e, t) {
4280
- return Promise.all(
4281
- t.map((n) => (Ui(e, n), n().then((i) => i.default || i)))
4282
- ).then((n) => yr(e, ...n));
4283
- }
4284
- const te = {};
4285
- function _r(e) {
4286
- if (!nt(e))
4287
- return e in te ? te[e] : Promise.resolve();
4288
- const t = Di(e);
4289
- return te[e] = Promise.all(
4290
- t.map(
4291
- ([r, n]) => Fi(r, n)
4292
- )
4293
- ).then(() => {
4294
- if (nt(e))
4295
- return _r(e);
4296
- delete te[e];
4297
- }), te[e];
4298
- }
4299
- const ji = {
4300
- number: {
4301
- scientific: { notation: "scientific" },
4302
- engineering: { notation: "engineering" },
4303
- compactLong: { notation: "compact", compactDisplay: "long" },
4304
- compactShort: { notation: "compact", compactDisplay: "short" }
4305
- },
4306
- date: {
4307
- short: { month: "numeric", day: "numeric", year: "2-digit" },
4308
- medium: { month: "short", day: "numeric", year: "numeric" },
4309
- long: { month: "long", day: "numeric", year: "numeric" },
4310
- full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4311
- },
4312
- time: {
4313
- short: { hour: "numeric", minute: "numeric" },
4314
- medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4315
- long: {
4316
- hour: "numeric",
4317
- minute: "numeric",
4318
- second: "numeric",
4319
- timeZoneName: "short"
4320
- },
4321
- full: {
4322
- hour: "numeric",
4323
- minute: "numeric",
4324
- second: "numeric",
4325
- timeZoneName: "short"
4326
- }
4327
- }
4328
- }, ki = {
4329
- fallbackLocale: null,
4330
- loadingDelay: 200,
4331
- formats: ji,
4332
- warnOnMissingMessages: !0,
4333
- handleMissingMessage: void 0,
4334
- ignoreTag: !0
4335
- }, Vi = ki;
4336
- function J() {
4337
- return Vi;
4338
- }
4339
- const Fe = Te(!1);
4340
- var Xi = Object.defineProperty, zi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, Ot = Object.getOwnPropertySymbols, Zi = Object.prototype.hasOwnProperty, Qi = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ji = (e, t) => {
4341
- for (var r in t || (t = {}))
4342
- Zi.call(t, r) && Lt(e, r, t[r]);
4343
- if (Ot)
4344
- for (var r of Ot(t))
4345
- Qi.call(t, r) && Lt(e, r, t[r]);
4346
- return e;
4347
- }, qi = (e, t) => zi(e, Wi(t));
4348
- let it;
4349
- const xe = Te(null);
4350
- function It(e) {
4351
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4352
- }
4353
- function Ae(e, t = J().fallbackLocale) {
4354
- const r = It(e);
4355
- return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
4356
- }
4357
- function D() {
4358
- return it ?? void 0;
4359
- }
4360
- xe.subscribe((e) => {
4361
- it = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4362
- });
4363
- const Yi = (e) => {
4364
- if (e && Gi(e) && nt(e)) {
4365
- const { loadingDelay: t } = J();
4366
- let r;
4367
- return typeof window < "u" && D() != null && t ? r = window.setTimeout(
4368
- () => Fe.set(!0),
4369
- t
4370
- ) : Fe.set(!0), _r(e).then(() => {
4371
- xe.set(e);
4372
- }).finally(() => {
4373
- clearTimeout(r), Fe.set(!1);
4374
- });
4375
- }
4376
- return xe.set(e);
4377
- }, Y = qi(Ji({}, xe), {
4378
- set: Yi
4379
- }), Be = (e) => {
4380
- const t = /* @__PURE__ */ Object.create(null);
4381
- return (n) => {
4382
- const i = JSON.stringify(n);
4383
- return i in t ? t[i] : t[i] = e(n);
4384
- };
4385
- };
4386
- var Ki = Object.defineProperty, Ee = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4387
- for (var r in t || (t = {}))
4388
- xr.call(t, r) && Mt(e, r, t[r]);
4389
- if (Ee)
4390
- for (var r of Ee(t))
4391
- Er.call(t, r) && Mt(e, r, t[r]);
4392
- return e;
4393
- }, K = (e, t) => {
4394
- var r = {};
4395
- for (var n in e)
4396
- xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4397
- if (e != null && Ee)
4398
- for (var n of Ee(e))
4399
- t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
4400
- return r;
4401
- };
4402
- const se = (e, t) => {
4403
- const { formats: r } = J();
4404
- if (e in r && t in r[e])
4405
- return r[e][t];
4406
- throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4407
- }, eo = Be(
4408
- (e) => {
4409
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4410
- if (r == null)
4411
- throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4412
- return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4413
- }
4414
- ), to = Be(
4415
- (e) => {
4416
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4417
- if (r == null)
4418
- throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4419
- return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4420
- }
4421
- ), ro = Be(
4422
- (e) => {
4423
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4424
- if (r == null)
4425
- throw new Error(
4426
- '[svelte-i18n] A "locale" must be set to format time values'
4427
- );
4428
- return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4429
- }
4430
- ), no = (e = {}) => {
4431
- var t = e, {
4432
- locale: r = D()
4433
- } = t, n = K(t, [
4434
- "locale"
4435
- ]);
4436
- return eo(lt({ locale: r }, n));
4437
- }, io = (e = {}) => {
4438
- var t = e, {
4439
- locale: r = D()
4440
- } = t, n = K(t, [
4441
- "locale"
4442
- ]);
4443
- return to(lt({ locale: r }, n));
4444
- }, oo = (e = {}) => {
4445
- var t = e, {
4446
- locale: r = D()
4447
- } = t, n = K(t, [
4448
- "locale"
4449
- ]);
4450
- return ro(lt({ locale: r }, n));
4451
- }, so = Be(
4452
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4453
- (e, t = D()) => new Ii(e, t, J().formats, {
4454
- ignoreTag: J().ignoreTag
4455
- })
4456
- ), ao = (e, t = {}) => {
4457
- var r, n, i, o;
4458
- let a = t;
4459
- typeof e == "object" && (a = e, e = a.id);
4460
- const {
4461
- values: s,
4462
- locale: l = D(),
4463
- default: u
4464
- } = a;
4465
- if (l == null)
4466
- throw new Error(
4467
- "[svelte-i18n] Cannot format a message without first setting the initial locale."
4468
- );
4469
- let h = br(e, l);
4470
- if (!h)
4471
- h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4472
- else if (typeof h != "string")
4473
- return console.warn(
4474
- `[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.`
4475
- ), h;
4476
- if (!s)
4477
- return h;
4478
- let c = h;
4479
- try {
4480
- c = so(h, l).format(s);
4481
- } catch (f) {
4482
- f instanceof Error && console.warn(
4483
- `[svelte-i18n] Message "${e}" has syntax error:`,
4484
- f.message
4485
- );
4486
- }
4487
- return c;
4488
- }, uo = (e, t) => oo(t).format(e), lo = (e, t) => io(t).format(e), ho = (e, t) => no(t).format(e), co = (e, t = D()) => br(e, t), fo = q([Y, le], () => ao);
4489
- q([Y], () => uo);
4490
- q([Y], () => lo);
4491
- q([Y], () => ho);
4492
- q([Y, le], () => co);
4493
- window.emWidgets = { topic: Sn };
4494
- const mo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4495
- String(Number.MAX_SAFE_INTEGER).length;
4496
- function Nt(e, t) {
4497
- yr(e, t);
4498
- }
4499
- function po(e) {
4500
- Y.set(e);
4501
- }
4502
- const $t = {
4503
- en: {
4504
- cancel: "Cancel",
4505
- confirm: "Confirm"
4506
- },
4507
- fr: {
4508
- cancel: "Annuler",
4509
- confirm: "Confirmer"
4510
- },
4511
- ro: {
4512
- cancel: "Anulează",
4513
- confirm: "Confirmă"
4514
- },
4515
- es: {
4516
- cancel: "Cancelar",
4517
- confirm: "Confirmar"
4518
- },
4519
- pt: {
4520
- cancel: "Cancelar",
4521
- confirm: "Confirmar"
4522
- },
4523
- "zh-hk": {
4524
- cancel: "取消",
4525
- confirm: "確認"
4526
- },
4527
- hr: {
4528
- cancel: "Otkaži",
4529
- confirm: "Potvrdi"
4530
- },
4531
- "pt-br": {
4532
- cancel: "Cancelar",
4533
- confirm: "confirme"
4534
- },
4535
- "es-mx": {
4536
- cancel: "Cancelar",
4537
- confirm: "Confirmar"
4538
- },
4539
- tr: {
4540
- cancel: "İptal etmek",
4541
- confirm: "Onaylamak"
4542
- },
4543
- "en-us": {
4544
- cancel: "Cancel",
4545
- confirm: "Confirm"
4546
- }
4547
- };
4548
- function bo(e) {
4549
- $r(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
4550
- }
4551
- const go = (e) => ({}), Rt = (e) => ({});
4552
- function yo(e) {
4553
- let t, r;
4554
- return {
4555
- c() {
4556
- t = ft("svg"), r = ft("path"), H(r, "stroke-linecap", "round"), H(r, "stroke-linejoin", "round"), H(r, "stroke-width", "2"), H(r, "d", "M6 18L18 6M6 6l12 12"), H(t, "class", "w-6 h-6"), H(t, "fill", "none"), H(t, "stroke", "currentColor"), H(t, "viewBox", "0 0 24 24"), H(t, "xmlns", "http://www.w3.org/2000/svg");
4557
- },
4558
- m(n, i) {
4559
- at(n, t, i), P(t, r);
4560
- },
4561
- p: L,
4562
- d(n) {
4563
- n && ae(t);
4564
- }
4565
- };
4566
- }
4567
- function vo(e) {
4568
- let t, r, n, i, o, a, s, l, u, h = (
4569
- /*$_*/
4570
- e[2]("cancel") + ""
4571
- ), c, f, p, m = (
4572
- /*$_*/
4573
- e[2]("confirm") + ""
4574
- ), d, v, T, C;
4575
- const S = (
4576
- /*#slots*/
4577
- e[14].close
4578
- ), A = Pr(
4579
- S,
4580
- e,
4581
- /*$$scope*/
4582
- e[13],
4583
- Rt
4584
- ), E = A || yo();
4585
- return {
4586
- c() {
4587
- t = I("div"), r = I("div"), n = I("span"), E && E.c(), i = Pe(), o = I("div"), a = re(
4588
- /*modaltext*/
4589
- e[0]
4590
- ), s = Pe(), l = I("div"), u = I("button"), c = re(h), f = Pe(), p = I("button"), d = re(m), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(o, "class", "GamingLimitsConfirmationContent"), H(u, "class", "GamingLimitsCancelButton"), H(p, "class", "GamingLimitsConfirmButton"), H(l, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
4591
- (e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), H(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
4592
- (e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), H(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
4593
- (e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
4594
- },
4595
- m(_, O) {
4596
- at(_, t, O), P(t, r), P(r, n), E && E.m(n, null), P(r, i), P(r, o), P(o, a), P(r, s), P(r, l), P(l, u), P(u, c), P(l, f), P(l, p), P(p, d), e[15](t), v = !0, T || (C = [
4597
- Oe(
4598
- n,
4599
- "click",
4600
- /*close*/
4601
- e[4]
4602
- ),
4603
- Oe(
4604
- u,
4605
- "click",
4606
- /*cancelChanges*/
4607
- e[6]
4608
- ),
4609
- Oe(
4610
- p,
4611
- "click",
4612
- /*confirmChanges*/
4613
- e[5]
4614
- )
4615
- ], T = !0);
4616
- },
4617
- p(_, [O]) {
4618
- A && A.p && (!v || O & /*$$scope*/
4619
- 8192) && Lr(
4620
- A,
4621
- S,
4622
- _,
4623
- /*$$scope*/
4624
- _[13],
4625
- v ? Or(
4626
- S,
4627
- /*$$scope*/
4628
- _[13],
4629
- O,
4630
- go
4631
- ) : Ir(
4632
- /*$$scope*/
4633
- _[13]
4634
- ),
4635
- Rt
4636
- ), (!v || O & /*modaltext*/
4637
- 1) && Le(
4638
- a,
4639
- /*modaltext*/
4640
- _[0]
4641
- ), (!v || O & /*$_*/
4642
- 4) && h !== (h = /*$_*/
4643
- _[2]("cancel") + "") && Le(c, h), (!v || O & /*$_*/
4644
- 4) && m !== (m = /*$_*/
4645
- _[2]("confirm") + "") && Le(d, m);
4646
- },
4647
- i(_) {
4648
- v || (Xt(E, _), v = !0);
4649
- },
4650
- o(_) {
4651
- Yr(E, _), v = !1;
4652
- },
4653
- d(_) {
4654
- _ && ae(t), E && E.d(_), e[15](null), T = !1, U(C);
4655
- }
4656
- };
4657
- }
4658
- function _o(e, t, r) {
4659
- let n;
4660
- Br(e, fo, (g) => r(2, n = g));
4661
- let { $$slots: i = {}, $$scope: o } = t, { modaltext: a = "Are you sure that you want to perform this action?" } = t, { modalsource: s = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
4662
- const p = () => {
4663
- fetch(f).then((F) => F.json()).then((F) => {
4664
- Object.keys(F).forEach((ht) => {
4665
- Nt(ht, F[ht]);
4666
- });
4667
- }).catch((F) => {
4668
- console.log(F);
4669
- });
4670
- };
4671
- Object.keys($t).forEach((g) => {
4672
- Nt(g, $t[g]);
4673
- });
4674
- let m, d = window.navigator.userAgent, v = mo(d) !== "PC", T = {}, C = "";
4675
- const S = () => {
4676
- window.postMessage({ type: "ModalClosed" }, window.location.href);
4677
- }, A = () => {
4678
- s === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : s === "infoCard" && window.postMessage(
4679
- {
4680
- type: "PlayerAccountGamingLimitDelete",
4681
- limit: T,
4682
- name: C
4683
- },
4684
- window.location.href
4685
- ), window.postMessage({ type: "ModalClosed" }, window.location.href);
4686
- }, E = () => {
4687
- s === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : s === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
4688
- }, _ = (g) => g === "Time Limit" ? "cumulativeSessionLimits" : g === "Deposit Limit" ? "depositLimits" : g === "Wagering Limit" ? "wageringLimit" : "lossLimit", O = (g) => {
4689
- if (g.data)
4690
- switch (g.data.type) {
4691
- case "DeleteLimitsItem":
4692
- T = g.data.removeData, C = _(g.data.removeName);
4693
- break;
4694
- }
4695
- }, Sr = () => {
4696
- po(l);
4697
- };
4698
- zr(() => (window.addEventListener("message", O, !1), () => {
4699
- window.removeEventListener("message", O);
4700
- }));
4701
- function Tr(g) {
4702
- je[g ? "unshift" : "push"](() => {
4703
- m = g, r(1, m);
4704
- });
4705
- }
4706
- return e.$$set = (g) => {
4707
- "modaltext" in g && r(0, a = g.modaltext), "modalsource" in g && r(7, s = g.modalsource), "lang" in g && r(8, l = g.lang), "clientstyling" in g && r(9, u = g.clientstyling), "clientstylingurl" in g && r(10, h = g.clientstylingurl), "mbsource" in g && r(11, c = g.mbsource), "translationurl" in g && r(12, f = g.translationurl), "$$scope" in g && r(13, o = g.$$scope);
4708
- }, e.$$.update = () => {
4709
- e.$$.dirty & /*modaltext, modalsource, lang*/
4710
- 385 && a && s && l && Sr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4711
- 514 && u && m && un(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4712
- 1026 && h && m && ln(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4713
- 2050 && c && m && hn(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
4714
- 4096 && f && p();
4715
- }, [
4716
- a,
4717
- m,
4718
- n,
4719
- v,
4720
- S,
4721
- A,
4722
- E,
4723
- s,
4724
- l,
4725
- u,
4726
- h,
4727
- c,
4728
- f,
4729
- o,
4730
- i,
4731
- Tr
4732
- ];
4733
- }
4734
- class wr extends sn {
4735
- constructor(t) {
4736
- super(), nn(
4737
- this,
4738
- t,
4739
- _o,
4740
- vo,
4741
- Ut,
4742
- {
4743
- modaltext: 0,
4744
- modalsource: 7,
4745
- lang: 8,
4746
- clientstyling: 9,
4747
- clientstylingurl: 10,
4748
- mbsource: 11,
4749
- translationurl: 12
4750
- },
4751
- bo
4752
- );
4753
- }
4754
- get modaltext() {
4755
- return this.$$.ctx[0];
4756
- }
4757
- set modaltext(t) {
4758
- this.$$set({ modaltext: t }), N();
4759
- }
4760
- get modalsource() {
4761
- return this.$$.ctx[7];
4762
- }
4763
- set modalsource(t) {
4764
- this.$$set({ modalsource: t }), N();
4765
- }
4766
- get lang() {
4767
- return this.$$.ctx[8];
4768
- }
4769
- set lang(t) {
4770
- this.$$set({ lang: t }), N();
4771
- }
4772
- get clientstyling() {
4773
- return this.$$.ctx[9];
4774
- }
4775
- set clientstyling(t) {
4776
- this.$$set({ clientstyling: t }), N();
4777
- }
4778
- get clientstylingurl() {
4779
- return this.$$.ctx[10];
4780
- }
4781
- set clientstylingurl(t) {
4782
- this.$$set({ clientstylingurl: t }), N();
4783
- }
4784
- get mbsource() {
4785
- return this.$$.ctx[11];
4786
- }
4787
- set mbsource(t) {
4788
- this.$$set({ mbsource: t }), N();
4789
- }
4790
- get translationurl() {
4791
- return this.$$.ctx[12];
4792
- }
4793
- set translationurl(t) {
4794
- this.$$set({ translationurl: t }), N();
4795
- }
4796
- }
4797
- on(wr, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
4798
- const Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4799
- __proto__: null,
4800
- default: wr
4801
- }, Symbol.toStringTag, { value: "Module" }));
4802
- export {
4803
- Y as $,
4804
- je as A,
4805
- Eo as B,
4806
- Co as C,
4807
- we as D,
4808
- Ho as E,
4809
- ve as F,
4810
- un as G,
4811
- ln as H,
4812
- hn as I,
4813
- on as J,
4814
- fo as K,
4815
- Hr as L,
4816
- Yr as M,
4817
- Xt as N,
4818
- Po as O,
4819
- Pr as P,
4820
- Oo as Q,
4821
- Lr as R,
4822
- sn as S,
4823
- Ir as T,
4824
- Or as U,
4825
- Bo as V,
4826
- Io as W,
4827
- yr as a,
4828
- $r as b,
4829
- Le as c,
4830
- ae as d,
4831
- So as e,
4832
- N as f,
4833
- H as g,
4834
- at as h,
4835
- nn as i,
4836
- P as j,
4837
- I as k,
4838
- Oe as l,
4839
- Pe as m,
4840
- L as n,
4841
- ft as o,
4842
- wo as p,
4843
- Br as q,
4844
- U as r,
4845
- Ut as s,
4846
- re as t,
4847
- mo as u,
4848
- zr as v,
4849
- Lo as w,
4850
- xo as x,
4851
- Ao as y,
4852
- To as z
4853
- };