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

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