@everymatrix/player-account-gaming-limits-history-2 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.
- package/components/PlayerAccountGamingLimitsHistory2-DOYaXdup.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsHistory2-DNiWf7Z8.js → PlayerAccountGamingLimitsHistory2-DVffDqyI.js} +838 -809
- package/components/{PlayerAccountGamingLimitsHistory2-kolYKLqb.js → PlayerAccountGamingLimitsHistory2-byaiSBcl.js} +812 -784
- package/es2015/player-account-gaming-limits-history-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-history-2.js +1 -1
- package/esnext/player-account-gaming-limits-history-2.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsHistory2-BX_4Ee1b.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function kt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function yt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ce(e) {
|
|
10
|
+
e.forEach(kt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ft(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Vt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Mr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Wt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const i of t)
|
|
24
24
|
i(void 0);
|
|
@@ -27,23 +27,23 @@ function kt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Dr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Wt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function gt(e) {
|
|
34
34
|
return e ?? "";
|
|
35
35
|
}
|
|
36
36
|
function x(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const i =
|
|
39
|
+
function $r(e, t, r) {
|
|
40
|
+
const i = Ur(e);
|
|
41
41
|
if (!i.getElementById(t)) {
|
|
42
|
-
const n =
|
|
43
|
-
n.id = t, n.textContent = r,
|
|
42
|
+
const n = A("style");
|
|
43
|
+
n.id = t, n.textContent = r, Gr(i, n);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ur(e) {
|
|
47
47
|
if (!e)
|
|
48
48
|
return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -53,7 +53,7 @@ function Dr(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Gr(e, t) {
|
|
57
57
|
return x(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
@@ -66,39 +66,39 @@ function W(e, t, r) {
|
|
|
66
66
|
function k(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Fr(e, t) {
|
|
70
70
|
for (let r = 0; r < e.length; r += 1)
|
|
71
71
|
e[r] && e[r].d(t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function A(e) {
|
|
74
74
|
return document.createElement(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $e(e) {
|
|
77
77
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function $(e) {
|
|
80
80
|
return document.createTextNode(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Ze() {
|
|
83
|
+
return $(" ");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function jr(e, t, r, i) {
|
|
86
86
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
87
87
|
}
|
|
88
88
|
function E(e, t, r) {
|
|
89
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function kr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
94
|
function j(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function be(e, t, r) {
|
|
99
99
|
e.classList.toggle(t, !!r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Vr(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
@@ -107,90 +107,90 @@ function jr(e) {
|
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let ue;
|
|
111
|
+
function ae(e) {
|
|
112
|
+
ue = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
114
|
+
function Wr() {
|
|
115
|
+
if (!ue)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return ue;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Xr(e) {
|
|
120
|
+
Wr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const Q = [],
|
|
123
|
-
let
|
|
124
|
-
const
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
122
|
+
const Q = [], Le = [];
|
|
123
|
+
let J = [];
|
|
124
|
+
const bt = [], zr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let Qe = !1;
|
|
126
|
+
function Zr() {
|
|
127
|
+
Qe || (Qe = !0, zr.then(C));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Ye(e) {
|
|
130
|
+
J.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Ue = /* @__PURE__ */ new Set();
|
|
133
133
|
let z = 0;
|
|
134
|
-
function
|
|
134
|
+
function C() {
|
|
135
135
|
if (z !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = ue;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
140
|
for (; z < Q.length; ) {
|
|
141
141
|
const t = Q[z];
|
|
142
|
-
z++,
|
|
142
|
+
z++, ae(t), Qr(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
145
|
throw Q.length = 0, z = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const r =
|
|
151
|
-
|
|
147
|
+
for (ae(null), Q.length = 0, z = 0; Le.length; )
|
|
148
|
+
Le.pop()();
|
|
149
|
+
for (let t = 0; t < J.length; t += 1) {
|
|
150
|
+
const r = J[t];
|
|
151
|
+
Ue.has(r) || (Ue.add(r), r());
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
J.length = 0;
|
|
154
154
|
} while (Q.length);
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
for (; bt.length; )
|
|
156
|
+
bt.pop()();
|
|
157
|
+
Qe = !1, Ue.clear(), ae(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Qr(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), ce(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Yr(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
|
-
|
|
168
|
+
J.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), J = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const Jr = /* @__PURE__ */ new Set();
|
|
171
|
+
function qr(e, t) {
|
|
172
|
+
e && e.i && (Jr.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function vt(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Kr(e, t, r) {
|
|
178
178
|
const { fragment: i, after_update: n } = e.$$;
|
|
179
|
-
i && i.m(t, r),
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), n.forEach(
|
|
179
|
+
i && i.m(t, r), Ye(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(kt).filter(ft);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
182
|
+
}), n.forEach(Ye);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function ei(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (Yr(r.after_update), ce(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
188
|
+
function ti(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const h =
|
|
193
|
-
|
|
191
|
+
function ri(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
192
|
+
const h = ue;
|
|
193
|
+
ae(e);
|
|
194
194
|
const u = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
@@ -198,7 +198,7 @@ function ei(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
|
198
198
|
props: o,
|
|
199
199
|
update: I,
|
|
200
200
|
not_equal: n,
|
|
201
|
-
bound:
|
|
201
|
+
bound: yt(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,7 +207,7 @@ function ei(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: yt(),
|
|
211
211
|
dirty: s,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || h.$$.root
|
|
@@ -216,19 +216,19 @@ function ei(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
|
216
216
|
let l = !1;
|
|
217
217
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
218
218
|
const y = p.length ? p[0] : f;
|
|
219
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l &&
|
|
220
|
-
}) : [], u.update(), l = !0,
|
|
219
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && ti(e, c)), f;
|
|
220
|
+
}) : [], u.update(), l = !0, ce(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
222
|
+
const c = kr(t.target);
|
|
223
223
|
u.fragment && u.fragment.l(c), c.forEach(k);
|
|
224
224
|
} else
|
|
225
225
|
u.fragment && u.fragment.c();
|
|
226
|
-
t.intro &&
|
|
226
|
+
t.intro && qr(e.$$.fragment), Kr(e, t.target, t.anchor), C();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
ae(h);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let Xt;
|
|
231
|
+
typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -270,7 +270,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
270
270
|
let o;
|
|
271
271
|
return {
|
|
272
272
|
c: function() {
|
|
273
|
-
o =
|
|
273
|
+
o = A("slot"), n !== "default" && E(o, "name", n);
|
|
274
274
|
},
|
|
275
275
|
/**
|
|
276
276
|
* @param {HTMLElement} target
|
|
@@ -287,12 +287,12 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = Vr(this);
|
|
291
291
|
for (const n of this.$$s)
|
|
292
292
|
n in r && (t[n] = [e(n)]);
|
|
293
293
|
for (const n of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(n.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = Ee(o, n.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const n in this.$$p_d)
|
|
298
298
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const n in this.$$p_d)
|
|
312
312
|
if (this.$$d[n] = this.$$c.$$.ctx[this.$$c.$$.props[n]], this.$$p_d[n].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = Ee(
|
|
314
314
|
n,
|
|
315
315
|
this.$$d[n],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ee(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function Ee(e, t, r, i) {
|
|
349
349
|
const n = r[e]?.type;
|
|
350
350
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
351
351
|
return t;
|
|
@@ -374,8 +374,8 @@ function ve(e, t, r, i) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let a = class extends
|
|
377
|
+
function ii(e, t, r, i, n, o) {
|
|
378
|
+
let a = class extends Xt {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, n), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -391,7 +391,7 @@ function ti(e, t, r, i, n, o) {
|
|
|
391
391
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
392
392
|
},
|
|
393
393
|
set(h) {
|
|
394
|
-
h =
|
|
394
|
+
h = Ee(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), i.forEach((s) => {
|
|
@@ -403,7 +403,7 @@ function ti(e, t, r, i, n, o) {
|
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
a, a;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class ni {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class ri {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
ei(this, 1), this.$destroy = I;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,7 +431,7 @@ class ri {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!ft(r))
|
|
435
435
|
return I;
|
|
436
436
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return i.push(r), () => {
|
|
@@ -444,22 +444,22 @@ class ri {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !Mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
450
|
+
const oi = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(oi);
|
|
452
452
|
const Z = [];
|
|
453
|
-
function
|
|
453
|
+
function si(e, t) {
|
|
454
454
|
return {
|
|
455
|
-
subscribe:
|
|
455
|
+
subscribe: He(e, t).subscribe
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function He(e, t = I) {
|
|
459
459
|
let r;
|
|
460
460
|
const i = /* @__PURE__ */ new Set();
|
|
461
461
|
function n(s) {
|
|
462
|
-
if (
|
|
462
|
+
if (Vt(e, s) && (e = s, r)) {
|
|
463
463
|
const h = !Z.length;
|
|
464
464
|
for (const u of i)
|
|
465
465
|
u[1](), Z.push(u, e);
|
|
@@ -481,12 +481,12 @@ function Ae(e, t = I) {
|
|
|
481
481
|
}
|
|
482
482
|
return { set: n, update: o, subscribe: a };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function re(e, t, r) {
|
|
485
485
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
486
486
|
if (!n.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
488
488
|
const o = t.length < 2;
|
|
489
|
-
return
|
|
489
|
+
return si(r, (a, s) => {
|
|
490
490
|
let h = !1;
|
|
491
491
|
const u = [];
|
|
492
492
|
let l = 0, c = I;
|
|
@@ -495,9 +495,9 @@ function te(e, t, r) {
|
|
|
495
495
|
return;
|
|
496
496
|
c();
|
|
497
497
|
const y = t(i ? u[0] : u, a, s);
|
|
498
|
-
o ? a(y) : c =
|
|
498
|
+
o ? a(y) : c = ft(y) ? y : I;
|
|
499
499
|
}, p = n.map(
|
|
500
|
-
(y, d) =>
|
|
500
|
+
(y, d) => Wt(
|
|
501
501
|
y,
|
|
502
502
|
(v) => {
|
|
503
503
|
u[d] = v, l &= ~(1 << d), h && f();
|
|
@@ -508,112 +508,112 @@ function te(e, t, r) {
|
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
510
|
return h = !0, f(), function() {
|
|
511
|
-
|
|
511
|
+
ce(p), c(), h = !1;
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function ai(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var ui = function(t) {
|
|
519
|
+
return li(t) && !hi(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function li(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function hi(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
526
|
+
return t === "[object RegExp]" || t === "[object Date]" || mi(e);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
return e.$$typeof ===
|
|
528
|
+
var ci = typeof Symbol == "function" && Symbol.for, fi = ci ? Symbol.for("react.element") : 60103;
|
|
529
|
+
function mi(e) {
|
|
530
|
+
return e.$$typeof === fi;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function pi(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
535
|
+
function le(e, t) {
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(pi(e), e, t) : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function di(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(i) {
|
|
540
|
-
return
|
|
540
|
+
return le(i, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function yi(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
|
-
return
|
|
545
|
+
return q;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
|
-
return typeof r == "function" ? r :
|
|
547
|
+
return typeof r == "function" ? r : q;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function gi(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return Object.keys(e).concat(
|
|
554
|
+
function _t(e) {
|
|
555
|
+
return Object.keys(e).concat(gi(e));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function zt(e, t) {
|
|
558
558
|
try {
|
|
559
559
|
return t in e;
|
|
560
560
|
} catch {
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function bi(e, t) {
|
|
565
|
+
return zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function vi(e, t, r) {
|
|
568
568
|
var i = {};
|
|
569
|
-
return r.isMergeableObject(e) &&
|
|
570
|
-
i[n] =
|
|
571
|
-
}),
|
|
572
|
-
|
|
569
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(n) {
|
|
570
|
+
i[n] = le(e[n], r);
|
|
571
|
+
}), _t(t).forEach(function(n) {
|
|
572
|
+
bi(e, n) || (zt(e, n) && r.isMergeableObject(t[n]) ? i[n] = yi(n, r)(e[n], t[n], r) : i[n] = le(t[n], r));
|
|
573
573
|
}), i;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
575
|
+
function q(e, t, r) {
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || di, r.isMergeableObject = r.isMergeableObject || ui, r.cloneUnlessOtherwiseSpecified = le;
|
|
577
577
|
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
578
|
-
return o ? i ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return o ? i ? r.arrayMerge(e, t, r) : vi(e, t, r) : le(t, r);
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
q.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
582
582
|
throw new Error("first argument should be an array");
|
|
583
583
|
return t.reduce(function(i, n) {
|
|
584
|
-
return
|
|
584
|
+
return q(i, n, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
588
|
-
const
|
|
589
|
-
var
|
|
590
|
-
return
|
|
587
|
+
var _i = q, Ei = _i;
|
|
588
|
+
const xi = /* @__PURE__ */ ai(Ei);
|
|
589
|
+
var Je = function(e, t) {
|
|
590
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
591
591
|
r.__proto__ = i;
|
|
592
592
|
} || function(r, i) {
|
|
593
593
|
for (var n in i)
|
|
594
594
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
595
|
-
},
|
|
595
|
+
}, Je(e, t);
|
|
596
596
|
};
|
|
597
|
-
function
|
|
597
|
+
function Oe(e, t) {
|
|
598
598
|
if (typeof t != "function" && t !== null)
|
|
599
599
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
600
|
-
|
|
600
|
+
Je(e, t);
|
|
601
601
|
function r() {
|
|
602
602
|
this.constructor = e;
|
|
603
603
|
}
|
|
604
604
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
return
|
|
606
|
+
var M = function() {
|
|
607
|
+
return M = Object.assign || function(t) {
|
|
608
608
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
609
609
|
r = arguments[i];
|
|
610
610
|
for (var o in r)
|
|
611
611
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
612
612
|
}
|
|
613
613
|
return t;
|
|
614
|
-
},
|
|
614
|
+
}, M.apply(this, arguments);
|
|
615
615
|
};
|
|
616
|
-
function
|
|
616
|
+
function Si(e, t) {
|
|
617
617
|
var r = {};
|
|
618
618
|
for (var i in e)
|
|
619
619
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -622,43 +622,43 @@ function Ei(e, t) {
|
|
|
622
622
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
623
623
|
return r;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ge(e, t, r) {
|
|
626
626
|
if (r || arguments.length === 2)
|
|
627
627
|
for (var i = 0, n = t.length, o; i < n; i++)
|
|
628
628
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
629
629
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var r = t && t.cache ? t.cache :
|
|
631
|
+
function Fe(e, t) {
|
|
632
|
+
var r = t && t.cache ? t.cache : Oi, i = t && t.serializer ? t.serializer : Pi, n = t && t.strategy ? t.strategy : wi;
|
|
633
633
|
return n(e, {
|
|
634
634
|
cache: r,
|
|
635
635
|
serializer: i
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Ti(e) {
|
|
639
639
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
var n =
|
|
641
|
+
function Li(e, t, r, i) {
|
|
642
|
+
var n = Ti(i) ? i : r(i), o = t.get(n);
|
|
643
643
|
return typeof o > "u" && (o = e.call(this, i), t.set(n, o)), o;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Zt(e, t, r) {
|
|
646
646
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
647
647
|
return typeof o > "u" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Qt(e, t, r, i, n) {
|
|
650
650
|
return r.bind(t, e, i, n);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
var r = e.length === 1 ?
|
|
654
|
-
return
|
|
652
|
+
function wi(e, t) {
|
|
653
|
+
var r = e.length === 1 ? Li : Zt;
|
|
654
|
+
return Qt(e, this, r, t.cache.create(), t.serializer);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
656
|
+
function Ai(e, t) {
|
|
657
|
+
return Qt(e, this, Zt, t.cache.create(), t.serializer);
|
|
658
658
|
}
|
|
659
|
-
var
|
|
659
|
+
var Pi = function() {
|
|
660
660
|
return JSON.stringify(arguments);
|
|
661
|
-
},
|
|
661
|
+
}, Hi = (
|
|
662
662
|
/** @class */
|
|
663
663
|
function() {
|
|
664
664
|
function e() {
|
|
@@ -670,71 +670,71 @@ var wi = function() {
|
|
|
670
670
|
this.cache[t] = r;
|
|
671
671
|
}, e;
|
|
672
672
|
}()
|
|
673
|
-
),
|
|
673
|
+
), Oi = {
|
|
674
674
|
create: function() {
|
|
675
|
-
return new
|
|
675
|
+
return new Hi();
|
|
676
676
|
}
|
|
677
|
-
},
|
|
678
|
-
variadic:
|
|
679
|
-
},
|
|
680
|
-
return
|
|
677
|
+
}, je = {
|
|
678
|
+
variadic: Ai
|
|
679
|
+
}, we = function() {
|
|
680
|
+
return we = Object.assign || function(t) {
|
|
681
681
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
682
682
|
r = arguments[i];
|
|
683
683
|
for (var o in r)
|
|
684
684
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
685
685
|
}
|
|
686
686
|
return t;
|
|
687
|
-
},
|
|
687
|
+
}, we.apply(this, arguments);
|
|
688
688
|
};
|
|
689
689
|
var b;
|
|
690
690
|
(function(e) {
|
|
691
691
|
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";
|
|
692
692
|
})(b || (b = {}));
|
|
693
|
-
var
|
|
693
|
+
var T;
|
|
694
694
|
(function(e) {
|
|
695
695
|
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";
|
|
696
|
-
})(
|
|
697
|
-
var
|
|
696
|
+
})(T || (T = {}));
|
|
697
|
+
var K;
|
|
698
698
|
(function(e) {
|
|
699
699
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
700
|
-
})(
|
|
701
|
-
function
|
|
702
|
-
return e.type ===
|
|
703
|
-
}
|
|
704
|
-
function Hi(e) {
|
|
705
|
-
return e.type === L.argument;
|
|
706
|
-
}
|
|
707
|
-
function Zt(e) {
|
|
708
|
-
return e.type === L.number;
|
|
700
|
+
})(K || (K = {}));
|
|
701
|
+
function Et(e) {
|
|
702
|
+
return e.type === T.literal;
|
|
709
703
|
}
|
|
710
|
-
function
|
|
711
|
-
return e.type ===
|
|
704
|
+
function Ii(e) {
|
|
705
|
+
return e.type === T.argument;
|
|
712
706
|
}
|
|
713
707
|
function Yt(e) {
|
|
714
|
-
return e.type ===
|
|
708
|
+
return e.type === T.number;
|
|
715
709
|
}
|
|
716
710
|
function Jt(e) {
|
|
717
|
-
return e.type ===
|
|
711
|
+
return e.type === T.date;
|
|
718
712
|
}
|
|
719
713
|
function qt(e) {
|
|
720
|
-
return e.type ===
|
|
721
|
-
}
|
|
722
|
-
function Oi(e) {
|
|
723
|
-
return e.type === L.pound;
|
|
714
|
+
return e.type === T.time;
|
|
724
715
|
}
|
|
725
716
|
function Kt(e) {
|
|
726
|
-
return e.type ===
|
|
717
|
+
return e.type === T.select;
|
|
727
718
|
}
|
|
728
719
|
function er(e) {
|
|
729
|
-
return
|
|
730
|
-
}
|
|
731
|
-
function Ye(e) {
|
|
732
|
-
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
720
|
+
return e.type === T.plural;
|
|
733
721
|
}
|
|
734
|
-
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ii = /(?:[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;
|
|
735
722
|
function Bi(e) {
|
|
723
|
+
return e.type === T.pound;
|
|
724
|
+
}
|
|
725
|
+
function tr(e) {
|
|
726
|
+
return e.type === T.tag;
|
|
727
|
+
}
|
|
728
|
+
function rr(e) {
|
|
729
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
730
|
+
}
|
|
731
|
+
function qe(e) {
|
|
732
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
733
|
+
}
|
|
734
|
+
var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ci = /(?:[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;
|
|
735
|
+
function Ni(e) {
|
|
736
736
|
var t = {};
|
|
737
|
-
return e.replace(
|
|
737
|
+
return e.replace(Ci, function(r) {
|
|
738
738
|
var i = r.length;
|
|
739
739
|
switch (r[0]) {
|
|
740
740
|
case "G":
|
|
@@ -823,21 +823,21 @@ function Bi(e) {
|
|
|
823
823
|
return "";
|
|
824
824
|
}), t;
|
|
825
825
|
}
|
|
826
|
-
var
|
|
827
|
-
return
|
|
826
|
+
var L = function() {
|
|
827
|
+
return L = Object.assign || function(t) {
|
|
828
828
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
829
829
|
r = arguments[i];
|
|
830
830
|
for (var o in r)
|
|
831
831
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
832
832
|
}
|
|
833
833
|
return t;
|
|
834
|
-
},
|
|
834
|
+
}, L.apply(this, arguments);
|
|
835
835
|
};
|
|
836
|
-
var
|
|
837
|
-
function
|
|
836
|
+
var Ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
837
|
+
function Mi(e) {
|
|
838
838
|
if (e.length === 0)
|
|
839
839
|
throw new Error("Number skeleton cannot be empty");
|
|
840
|
-
for (var t = e.split(
|
|
840
|
+
for (var t = e.split(Ri).filter(function(f) {
|
|
841
841
|
return f.length > 0;
|
|
842
842
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
843
843
|
var o = n[i], a = o.split("/");
|
|
@@ -852,17 +852,17 @@ function Ni(e) {
|
|
|
852
852
|
}
|
|
853
853
|
return r;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Di(e) {
|
|
856
856
|
return e.replace(/^(.*?)-/, "");
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
858
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, $i = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
|
|
859
|
+
function St(e) {
|
|
860
860
|
var t = {};
|
|
861
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
861
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, i, n) {
|
|
862
862
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
863
863
|
}), t;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function sr(e) {
|
|
866
866
|
switch (e) {
|
|
867
867
|
case "sign-auto":
|
|
868
868
|
return {
|
|
@@ -902,7 +902,7 @@ function nr(e) {
|
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Ui(e) {
|
|
906
906
|
var t;
|
|
907
907
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
908
908
|
notation: "engineering"
|
|
@@ -910,17 +910,17 @@ function Di(e) {
|
|
|
910
910
|
notation: "scientific"
|
|
911
911
|
}, e = e.slice(1)), t) {
|
|
912
912
|
var r = e.slice(0, 2);
|
|
913
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
913
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
|
|
914
914
|
throw new Error("Malformed concise eng/scientific notation");
|
|
915
915
|
t.minimumIntegerDigits = e.length;
|
|
916
916
|
}
|
|
917
917
|
return t;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
var t = {}, r =
|
|
919
|
+
function Tt(e) {
|
|
920
|
+
var t = {}, r = sr(e);
|
|
921
921
|
return r || t;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Gi(e) {
|
|
924
924
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
925
925
|
var n = i[r];
|
|
926
926
|
switch (n.stem) {
|
|
@@ -944,7 +944,7 @@ function $i(e) {
|
|
|
944
944
|
continue;
|
|
945
945
|
case "measure-unit":
|
|
946
946
|
case "unit":
|
|
947
|
-
t.style = "unit", t.unit =
|
|
947
|
+
t.style = "unit", t.unit = Di(n.options[0]);
|
|
948
948
|
continue;
|
|
949
949
|
case "compact-short":
|
|
950
950
|
case "K":
|
|
@@ -955,13 +955,13 @@ function $i(e) {
|
|
|
955
955
|
t.notation = "compact", t.compactDisplay = "long";
|
|
956
956
|
continue;
|
|
957
957
|
case "scientific":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
958
|
+
t = L(L(L({}, t), { notation: "scientific" }), n.options.reduce(function(h, u) {
|
|
959
|
+
return L(L({}, h), Tt(u));
|
|
960
960
|
}, {}));
|
|
961
961
|
continue;
|
|
962
962
|
case "engineering":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
963
|
+
t = L(L(L({}, t), { notation: "engineering" }), n.options.reduce(function(h, u) {
|
|
964
|
+
return L(L({}, h), Tt(u));
|
|
965
965
|
}, {}));
|
|
966
966
|
continue;
|
|
967
967
|
case "notation-simple":
|
|
@@ -1006,7 +1006,7 @@ function $i(e) {
|
|
|
1006
1006
|
case "integer-width":
|
|
1007
1007
|
if (n.options.length > 1)
|
|
1008
1008
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1009
|
-
n.options[0].replace(
|
|
1009
|
+
n.options[0].replace($i, function(h, u, l, c, f, p) {
|
|
1010
1010
|
if (u)
|
|
1011
1011
|
t.minimumIntegerDigits = l.length;
|
|
1012
1012
|
else {
|
|
@@ -1019,32 +1019,32 @@ function $i(e) {
|
|
|
1019
1019
|
});
|
|
1020
1020
|
continue;
|
|
1021
1021
|
}
|
|
1022
|
-
if (
|
|
1022
|
+
if (or.test(n.stem)) {
|
|
1023
1023
|
t.minimumIntegerDigits = n.stem.length;
|
|
1024
1024
|
continue;
|
|
1025
1025
|
}
|
|
1026
|
-
if (
|
|
1026
|
+
if (xt.test(n.stem)) {
|
|
1027
1027
|
if (n.options.length > 1)
|
|
1028
1028
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1029
|
-
n.stem.replace(
|
|
1029
|
+
n.stem.replace(xt, function(h, u, l, c, f, p) {
|
|
1030
1030
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1031
1031
|
});
|
|
1032
1032
|
var o = n.options[0];
|
|
1033
|
-
o === "w" ? t =
|
|
1033
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), St(o)));
|
|
1034
1034
|
continue;
|
|
1035
1035
|
}
|
|
1036
|
-
if (
|
|
1037
|
-
t =
|
|
1036
|
+
if (nr.test(n.stem)) {
|
|
1037
|
+
t = L(L({}, t), St(n.stem));
|
|
1038
1038
|
continue;
|
|
1039
1039
|
}
|
|
1040
|
-
var a =
|
|
1041
|
-
a && (t =
|
|
1042
|
-
var s =
|
|
1043
|
-
s && (t =
|
|
1040
|
+
var a = sr(n.stem);
|
|
1041
|
+
a && (t = L(L({}, t), a));
|
|
1042
|
+
var s = Ui(n.stem);
|
|
1043
|
+
s && (t = L(L({}, t), s));
|
|
1044
1044
|
}
|
|
1045
1045
|
return t;
|
|
1046
1046
|
}
|
|
1047
|
-
var
|
|
1047
|
+
var ve = {
|
|
1048
1048
|
"001": [
|
|
1049
1049
|
"H",
|
|
1050
1050
|
"h"
|
|
@@ -2459,13 +2459,13 @@ var ge = {
|
|
|
2459
2459
|
"h"
|
|
2460
2460
|
]
|
|
2461
2461
|
};
|
|
2462
|
-
function
|
|
2462
|
+
function Fi(e, t) {
|
|
2463
2463
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2464
2464
|
var n = e.charAt(i);
|
|
2465
2465
|
if (n === "j") {
|
|
2466
2466
|
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2467
2467
|
o++, i++;
|
|
2468
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2468
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ji(t);
|
|
2469
2469
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2470
2470
|
r += h;
|
|
2471
2471
|
for (; a-- > 0; )
|
|
@@ -2475,7 +2475,7 @@ function Ui(e, t) {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
return r;
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function ji(e) {
|
|
2479
2479
|
var t = e.hourCycle;
|
|
2480
2480
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2481
2481
|
e.hourCycles && // @ts-ignore
|
|
@@ -2494,23 +2494,23 @@ function Gi(e) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
var r = e.language, i;
|
|
2496
2496
|
r !== "root" && (i = e.maximize().region);
|
|
2497
|
-
var n =
|
|
2497
|
+
var n = ve[i || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2498
2498
|
return n[0];
|
|
2499
2499
|
}
|
|
2500
|
-
var
|
|
2500
|
+
var ke, ki = new RegExp("^".concat(ir.source, "*")), Vi = new RegExp("".concat(ir.source, "*$"));
|
|
2501
2501
|
function _(e, t) {
|
|
2502
2502
|
return { start: e, end: t };
|
|
2503
2503
|
}
|
|
2504
|
-
var
|
|
2504
|
+
var Wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Xi = !!String.fromCodePoint, zi = !!Object.fromEntries, Zi = !!String.prototype.codePointAt, Qi = !!String.prototype.trimStart, Yi = !!String.prototype.trimEnd, Ji = !!Number.isSafeInteger, qi = Ji ? Number.isSafeInteger : function(e) {
|
|
2505
2505
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2506
|
-
},
|
|
2506
|
+
}, Ke = !0;
|
|
2507
2507
|
try {
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2508
|
+
var Ki = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2509
|
+
Ke = ((ke = Ki.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
|
|
2510
2510
|
} catch {
|
|
2511
|
-
|
|
2511
|
+
Ke = !1;
|
|
2512
2512
|
}
|
|
2513
|
-
var
|
|
2513
|
+
var Lt = Wi ? (
|
|
2514
2514
|
// Native
|
|
2515
2515
|
function(t, r, i) {
|
|
2516
2516
|
return t.startsWith(r, i);
|
|
@@ -2520,7 +2520,7 @@ var Tt = ki ? (
|
|
|
2520
2520
|
function(t, r, i) {
|
|
2521
2521
|
return t.slice(i, i + r.length) === r;
|
|
2522
2522
|
}
|
|
2523
|
-
),
|
|
2523
|
+
), et = Xi ? String.fromCodePoint : (
|
|
2524
2524
|
// IE11
|
|
2525
2525
|
function() {
|
|
2526
2526
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2532,9 +2532,9 @@ var Tt = ki ? (
|
|
|
2532
2532
|
}
|
|
2533
2533
|
return i;
|
|
2534
2534
|
}
|
|
2535
|
-
),
|
|
2535
|
+
), wt = (
|
|
2536
2536
|
// native
|
|
2537
|
-
|
|
2537
|
+
zi ? Object.fromEntries : (
|
|
2538
2538
|
// Ponyfill
|
|
2539
2539
|
function(t) {
|
|
2540
2540
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2544,7 +2544,7 @@ var Tt = ki ? (
|
|
|
2544
2544
|
return r;
|
|
2545
2545
|
}
|
|
2546
2546
|
)
|
|
2547
|
-
),
|
|
2547
|
+
), ar = Zi ? (
|
|
2548
2548
|
// Native
|
|
2549
2549
|
function(t, r) {
|
|
2550
2550
|
return t.codePointAt(r);
|
|
@@ -2558,7 +2558,7 @@ var Tt = ki ? (
|
|
|
2558
2558
|
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
),
|
|
2561
|
+
), en = Qi ? (
|
|
2562
2562
|
// Native
|
|
2563
2563
|
function(t) {
|
|
2564
2564
|
return t.trimStart();
|
|
@@ -2566,9 +2566,9 @@ var Tt = ki ? (
|
|
|
2566
2566
|
) : (
|
|
2567
2567
|
// Ponyfill
|
|
2568
2568
|
function(t) {
|
|
2569
|
-
return t.replace(
|
|
2569
|
+
return t.replace(ki, "");
|
|
2570
2570
|
}
|
|
2571
|
-
),
|
|
2571
|
+
), tn = Yi ? (
|
|
2572
2572
|
// Native
|
|
2573
2573
|
function(t) {
|
|
2574
2574
|
return t.trimEnd();
|
|
@@ -2576,32 +2576,32 @@ var Tt = ki ? (
|
|
|
2576
2576
|
) : (
|
|
2577
2577
|
// Ponyfill
|
|
2578
2578
|
function(t) {
|
|
2579
|
-
return t.replace(
|
|
2579
|
+
return t.replace(Vi, "");
|
|
2580
2580
|
}
|
|
2581
2581
|
);
|
|
2582
|
-
function
|
|
2582
|
+
function ur(e, t) {
|
|
2583
2583
|
return new RegExp(e, t);
|
|
2584
2584
|
}
|
|
2585
|
-
var
|
|
2586
|
-
if (
|
|
2587
|
-
var
|
|
2588
|
-
|
|
2585
|
+
var tt;
|
|
2586
|
+
if (Ke) {
|
|
2587
|
+
var At = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2588
|
+
tt = function(t, r) {
|
|
2589
2589
|
var i;
|
|
2590
|
-
|
|
2591
|
-
var n =
|
|
2590
|
+
At.lastIndex = r;
|
|
2591
|
+
var n = At.exec(t);
|
|
2592
2592
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2593
2593
|
};
|
|
2594
2594
|
} else
|
|
2595
|
-
|
|
2595
|
+
tt = function(t, r) {
|
|
2596
2596
|
for (var i = []; ; ) {
|
|
2597
|
-
var n =
|
|
2598
|
-
if (n === void 0 ||
|
|
2597
|
+
var n = ar(t, r);
|
|
2598
|
+
if (n === void 0 || lr(n) || sn(n))
|
|
2599
2599
|
break;
|
|
2600
2600
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2601
2601
|
}
|
|
2602
|
-
return
|
|
2602
|
+
return et.apply(void 0, i);
|
|
2603
2603
|
};
|
|
2604
|
-
var
|
|
2604
|
+
var rn = (
|
|
2605
2605
|
/** @class */
|
|
2606
2606
|
function() {
|
|
2607
2607
|
function e(t, r) {
|
|
@@ -2625,14 +2625,14 @@ var en = (
|
|
|
2625
2625
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2626
2626
|
var s = this.clonePosition();
|
|
2627
2627
|
this.bump(), n.push({
|
|
2628
|
-
type:
|
|
2628
|
+
type: T.pound,
|
|
2629
2629
|
location: _(s, this.clonePosition())
|
|
2630
2630
|
});
|
|
2631
2631
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2632
2632
|
if (i)
|
|
2633
2633
|
break;
|
|
2634
2634
|
return this.error(b.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2635
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2635
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
2636
2636
|
var a = this.parseTag(t, r);
|
|
2637
2637
|
if (a.err)
|
|
2638
2638
|
return a;
|
|
@@ -2653,7 +2653,7 @@ var en = (
|
|
|
2653
2653
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2654
2654
|
return {
|
|
2655
2655
|
val: {
|
|
2656
|
-
type:
|
|
2656
|
+
type: T.literal,
|
|
2657
2657
|
value: "<".concat(n, "/>"),
|
|
2658
2658
|
location: _(i, this.clonePosition())
|
|
2659
2659
|
},
|
|
@@ -2665,12 +2665,12 @@ var en = (
|
|
|
2665
2665
|
return o;
|
|
2666
2666
|
var a = o.val, s = this.clonePosition();
|
|
2667
2667
|
if (this.bumpIf("</")) {
|
|
2668
|
-
if (this.isEOF() || !
|
|
2668
|
+
if (this.isEOF() || !rt(this.char()))
|
|
2669
2669
|
return this.error(b.INVALID_TAG, _(s, this.clonePosition()));
|
|
2670
2670
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2671
2671
|
return n !== u ? this.error(b.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2672
2672
|
val: {
|
|
2673
|
-
type:
|
|
2673
|
+
type: T.tag,
|
|
2674
2674
|
value: n,
|
|
2675
2675
|
children: a,
|
|
2676
2676
|
location: _(i, this.clonePosition())
|
|
@@ -2683,7 +2683,7 @@ var en = (
|
|
|
2683
2683
|
return this.error(b.INVALID_TAG, _(i, this.clonePosition()));
|
|
2684
2684
|
}, e.prototype.parseTagName = function() {
|
|
2685
2685
|
var t = this.offset();
|
|
2686
|
-
for (this.bump(); !this.isEOF() &&
|
|
2686
|
+
for (this.bump(); !this.isEOF() && on(this.char()); )
|
|
2687
2687
|
this.bump();
|
|
2688
2688
|
return this.message.slice(t, this.offset());
|
|
2689
2689
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2707,12 +2707,12 @@ var en = (
|
|
|
2707
2707
|
}
|
|
2708
2708
|
var h = _(i, this.clonePosition());
|
|
2709
2709
|
return {
|
|
2710
|
-
val: { type:
|
|
2710
|
+
val: { type: T.literal, value: n, location: h },
|
|
2711
2711
|
err: null
|
|
2712
2712
|
};
|
|
2713
2713
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2714
2714
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2715
|
-
!
|
|
2715
|
+
!nn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2716
2716
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2717
2717
|
if (this.isEOF() || this.char() !== 39)
|
|
2718
2718
|
return null;
|
|
@@ -2746,12 +2746,12 @@ var en = (
|
|
|
2746
2746
|
r.push(i);
|
|
2747
2747
|
this.bump();
|
|
2748
2748
|
}
|
|
2749
|
-
return
|
|
2749
|
+
return et.apply(void 0, r);
|
|
2750
2750
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2751
2751
|
if (this.isEOF())
|
|
2752
2752
|
return null;
|
|
2753
2753
|
var i = this.char();
|
|
2754
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
2754
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), et(i));
|
|
2755
2755
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2756
2756
|
var i = this.clonePosition();
|
|
2757
2757
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2767,7 +2767,7 @@ var en = (
|
|
|
2767
2767
|
case 125:
|
|
2768
2768
|
return this.bump(), {
|
|
2769
2769
|
val: {
|
|
2770
|
-
type:
|
|
2770
|
+
type: T.argument,
|
|
2771
2771
|
// value does not include the opening and closing braces.
|
|
2772
2772
|
value: n,
|
|
2773
2773
|
location: _(i, this.clonePosition())
|
|
@@ -2780,7 +2780,7 @@ var en = (
|
|
|
2780
2780
|
return this.error(b.MALFORMED_ARGUMENT, _(i, this.clonePosition()));
|
|
2781
2781
|
}
|
|
2782
2782
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2783
|
-
var t = this.clonePosition(), r = this.offset(), i =
|
|
2783
|
+
var t = this.clonePosition(), r = this.offset(), i = tt(this.message, r), n = r + i.length;
|
|
2784
2784
|
this.bumpTo(n);
|
|
2785
2785
|
var o = this.clonePosition(), a = _(t, o);
|
|
2786
2786
|
return { value: i, location: a };
|
|
@@ -2799,7 +2799,7 @@ var en = (
|
|
|
2799
2799
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2800
2800
|
if (c.err)
|
|
2801
2801
|
return c;
|
|
2802
|
-
var f =
|
|
2802
|
+
var f = tn(c.val);
|
|
2803
2803
|
if (f.length === 0)
|
|
2804
2804
|
return this.error(b.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2805
2805
|
var p = _(l, this.clonePosition());
|
|
@@ -2809,25 +2809,25 @@ var en = (
|
|
|
2809
2809
|
if (y.err)
|
|
2810
2810
|
return y;
|
|
2811
2811
|
var d = _(n, this.clonePosition());
|
|
2812
|
-
if (u &&
|
|
2813
|
-
var v =
|
|
2812
|
+
if (u && Lt(u?.style, "::", 0)) {
|
|
2813
|
+
var v = en(u.style.slice(2));
|
|
2814
2814
|
if (s === "number") {
|
|
2815
2815
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2816
2816
|
return c.err ? c : {
|
|
2817
|
-
val: { type:
|
|
2817
|
+
val: { type: T.number, value: i, location: d, style: c.val },
|
|
2818
2818
|
err: null
|
|
2819
2819
|
};
|
|
2820
2820
|
} else {
|
|
2821
2821
|
if (v.length === 0)
|
|
2822
2822
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
2823
|
-
var
|
|
2824
|
-
this.locale && (
|
|
2823
|
+
var P = v;
|
|
2824
|
+
this.locale && (P = Fi(v, this.locale));
|
|
2825
2825
|
var f = {
|
|
2826
|
-
type:
|
|
2827
|
-
pattern:
|
|
2826
|
+
type: K.dateTime,
|
|
2827
|
+
pattern: P,
|
|
2828
2828
|
location: u.styleLocation,
|
|
2829
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2830
|
-
}, g = s === "date" ?
|
|
2829
|
+
parsedOptions: this.shouldParseSkeletons ? Ni(P) : {}
|
|
2830
|
+
}, g = s === "date" ? T.date : T.time;
|
|
2831
2831
|
return {
|
|
2832
2832
|
val: { type: g, value: i, location: d, style: f },
|
|
2833
2833
|
err: null
|
|
@@ -2836,7 +2836,7 @@ var en = (
|
|
|
2836
2836
|
}
|
|
2837
2837
|
return {
|
|
2838
2838
|
val: {
|
|
2839
|
-
type: s === "number" ?
|
|
2839
|
+
type: s === "number" ? T.number : s === "date" ? T.date : T.time,
|
|
2840
2840
|
value: i,
|
|
2841
2841
|
location: d,
|
|
2842
2842
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2847,41 +2847,41 @@ var en = (
|
|
|
2847
2847
|
case "plural":
|
|
2848
2848
|
case "selectordinal":
|
|
2849
2849
|
case "select": {
|
|
2850
|
-
var
|
|
2850
|
+
var H = this.clonePosition();
|
|
2851
2851
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2852
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2852
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, _(H, we({}, H)));
|
|
2853
2853
|
this.bumpSpace();
|
|
2854
|
-
var
|
|
2855
|
-
if (s !== "select" &&
|
|
2854
|
+
var B = this.parseIdentifierIfPossible(), R = 0;
|
|
2855
|
+
if (s !== "select" && B.value === "offset") {
|
|
2856
2856
|
if (!this.bumpIf(":"))
|
|
2857
2857
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2858
2858
|
this.bumpSpace();
|
|
2859
2859
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2860
2860
|
if (c.err)
|
|
2861
2861
|
return c;
|
|
2862
|
-
this.bumpSpace(),
|
|
2862
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), R = c.val;
|
|
2863
2863
|
}
|
|
2864
|
-
var
|
|
2865
|
-
if (
|
|
2866
|
-
return
|
|
2864
|
+
var G = this.tryParsePluralOrSelectOptions(t, s, r, B);
|
|
2865
|
+
if (G.err)
|
|
2866
|
+
return G;
|
|
2867
2867
|
var y = this.tryParseArgumentClose(n);
|
|
2868
2868
|
if (y.err)
|
|
2869
2869
|
return y;
|
|
2870
2870
|
var V = _(n, this.clonePosition());
|
|
2871
2871
|
return s === "select" ? {
|
|
2872
2872
|
val: {
|
|
2873
|
-
type:
|
|
2873
|
+
type: T.select,
|
|
2874
2874
|
value: i,
|
|
2875
|
-
options:
|
|
2875
|
+
options: wt(G.val),
|
|
2876
2876
|
location: V
|
|
2877
2877
|
},
|
|
2878
2878
|
err: null
|
|
2879
2879
|
} : {
|
|
2880
2880
|
val: {
|
|
2881
|
-
type:
|
|
2881
|
+
type: T.plural,
|
|
2882
2882
|
value: i,
|
|
2883
|
-
options:
|
|
2884
|
-
offset:
|
|
2883
|
+
options: wt(G.val),
|
|
2884
|
+
offset: R,
|
|
2885
2885
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2886
2886
|
location: V
|
|
2887
2887
|
},
|
|
@@ -2931,16 +2931,16 @@ var en = (
|
|
|
2931
2931
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2932
2932
|
var i = [];
|
|
2933
2933
|
try {
|
|
2934
|
-
i =
|
|
2934
|
+
i = Mi(t);
|
|
2935
2935
|
} catch {
|
|
2936
2936
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
2937
2937
|
}
|
|
2938
2938
|
return {
|
|
2939
2939
|
val: {
|
|
2940
|
-
type:
|
|
2940
|
+
type: K.number,
|
|
2941
2941
|
tokens: i,
|
|
2942
2942
|
location: r,
|
|
2943
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
+
parsedOptions: this.shouldParseSkeletons ? Gi(i) : {}
|
|
2944
2944
|
},
|
|
2945
2945
|
err: null
|
|
2946
2946
|
};
|
|
@@ -2988,7 +2988,7 @@ var en = (
|
|
|
2988
2988
|
break;
|
|
2989
2989
|
}
|
|
2990
2990
|
var h = _(n, this.clonePosition());
|
|
2991
|
-
return o ? (a *= i,
|
|
2991
|
+
return o ? (a *= i, qi(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2992
2992
|
}, e.prototype.offset = function() {
|
|
2993
2993
|
return this.position.offset;
|
|
2994
2994
|
}, e.prototype.isEOF = function() {
|
|
@@ -3003,7 +3003,7 @@ var en = (
|
|
|
3003
3003
|
var t = this.position.offset;
|
|
3004
3004
|
if (t >= this.message.length)
|
|
3005
3005
|
throw Error("out of bound");
|
|
3006
|
-
var r =
|
|
3006
|
+
var r = ar(this.message, t);
|
|
3007
3007
|
if (r === void 0)
|
|
3008
3008
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3009
3009
|
return r;
|
|
@@ -3022,7 +3022,7 @@ var en = (
|
|
|
3022
3022
|
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);
|
|
3023
3023
|
}
|
|
3024
3024
|
}, e.prototype.bumpIf = function(t) {
|
|
3025
|
-
if (
|
|
3025
|
+
if (Lt(this.message, t, this.offset())) {
|
|
3026
3026
|
for (var r = 0; r < t.length; r++)
|
|
3027
3027
|
this.bump();
|
|
3028
3028
|
return !0;
|
|
@@ -3044,7 +3044,7 @@ var en = (
|
|
|
3044
3044
|
break;
|
|
3045
3045
|
}
|
|
3046
3046
|
}, e.prototype.bumpSpace = function() {
|
|
3047
|
-
for (; !this.isEOF() &&
|
|
3047
|
+
for (; !this.isEOF() && lr(this.char()); )
|
|
3048
3048
|
this.bump();
|
|
3049
3049
|
}, e.prototype.peek = function() {
|
|
3050
3050
|
if (this.isEOF())
|
|
@@ -3054,47 +3054,47 @@ var en = (
|
|
|
3054
3054
|
}, e;
|
|
3055
3055
|
}()
|
|
3056
3056
|
);
|
|
3057
|
-
function
|
|
3057
|
+
function rt(e) {
|
|
3058
3058
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3061
|
-
return
|
|
3060
|
+
function nn(e) {
|
|
3061
|
+
return rt(e) || e === 47;
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function on(e) {
|
|
3064
3064
|
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;
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function lr(e) {
|
|
3067
3067
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function sn(e) {
|
|
3070
3070
|
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;
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function it(e) {
|
|
3073
3073
|
e.forEach(function(t) {
|
|
3074
|
-
if (delete t.location,
|
|
3074
|
+
if (delete t.location, Kt(t) || er(t))
|
|
3075
3075
|
for (var r in t.options)
|
|
3076
|
-
delete t.options[r].location,
|
|
3076
|
+
delete t.options[r].location, it(t.options[r].value);
|
|
3077
3077
|
else
|
|
3078
|
-
|
|
3078
|
+
Yt(t) && rr(t.style) || (Jt(t) || qt(t)) && qe(t.style) ? delete t.style.location : tr(t) && it(t.children);
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3082
|
-
t === void 0 && (t = {}), t =
|
|
3083
|
-
var r = new
|
|
3081
|
+
function an(e, t) {
|
|
3082
|
+
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3083
|
+
var r = new rn(e, t).parse();
|
|
3084
3084
|
if (r.err) {
|
|
3085
3085
|
var i = SyntaxError(b[r.err.kind]);
|
|
3086
3086
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3087
3087
|
}
|
|
3088
|
-
return t?.captureLocation ||
|
|
3088
|
+
return t?.captureLocation || it(r.val), r.val;
|
|
3089
3089
|
}
|
|
3090
|
-
var
|
|
3090
|
+
var ee;
|
|
3091
3091
|
(function(e) {
|
|
3092
3092
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3093
|
-
})(
|
|
3094
|
-
var
|
|
3093
|
+
})(ee || (ee = {}));
|
|
3094
|
+
var Ie = (
|
|
3095
3095
|
/** @class */
|
|
3096
3096
|
function(e) {
|
|
3097
|
-
|
|
3097
|
+
Oe(t, e);
|
|
3098
3098
|
function t(r, i, n) {
|
|
3099
3099
|
var o = e.call(this, r) || this;
|
|
3100
3100
|
return o.code = i, o.originalMessage = n, o;
|
|
@@ -3103,48 +3103,48 @@ var He = (
|
|
|
3103
3103
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3104
3104
|
}, t;
|
|
3105
3105
|
}(Error)
|
|
3106
|
-
),
|
|
3106
|
+
), Pt = (
|
|
3107
3107
|
/** @class */
|
|
3108
3108
|
function(e) {
|
|
3109
|
-
|
|
3109
|
+
Oe(t, e);
|
|
3110
3110
|
function t(r, i, n, o) {
|
|
3111
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3111
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
|
|
3112
3112
|
}
|
|
3113
3113
|
return t;
|
|
3114
|
-
}(
|
|
3115
|
-
),
|
|
3114
|
+
}(Ie)
|
|
3115
|
+
), un = (
|
|
3116
3116
|
/** @class */
|
|
3117
3117
|
function(e) {
|
|
3118
|
-
|
|
3118
|
+
Oe(t, e);
|
|
3119
3119
|
function t(r, i, n) {
|
|
3120
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i),
|
|
3120
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(i), ee.INVALID_VALUE, n) || this;
|
|
3121
3121
|
}
|
|
3122
3122
|
return t;
|
|
3123
|
-
}(
|
|
3124
|
-
),
|
|
3123
|
+
}(Ie)
|
|
3124
|
+
), ln = (
|
|
3125
3125
|
/** @class */
|
|
3126
3126
|
function(e) {
|
|
3127
|
-
|
|
3127
|
+
Oe(t, e);
|
|
3128
3128
|
function t(r, i) {
|
|
3129
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'),
|
|
3129
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(i, '"'), ee.MISSING_VALUE, i) || this;
|
|
3130
3130
|
}
|
|
3131
3131
|
return t;
|
|
3132
|
-
}(
|
|
3132
|
+
}(Ie)
|
|
3133
3133
|
), O;
|
|
3134
3134
|
(function(e) {
|
|
3135
3135
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3136
3136
|
})(O || (O = {}));
|
|
3137
|
-
function
|
|
3137
|
+
function hn(e) {
|
|
3138
3138
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3139
3139
|
var i = t[t.length - 1];
|
|
3140
3140
|
return !i || i.type !== O.literal || r.type !== O.literal ? t.push(r) : i.value += r.value, t;
|
|
3141
3141
|
}, []);
|
|
3142
3142
|
}
|
|
3143
|
-
function
|
|
3143
|
+
function cn(e) {
|
|
3144
3144
|
return typeof e == "function";
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3147
|
-
if (e.length === 1 &&
|
|
3146
|
+
function xe(e, t, r, i, n, o, a) {
|
|
3147
|
+
if (e.length === 1 && Et(e[0]))
|
|
3148
3148
|
return [
|
|
3149
3149
|
{
|
|
3150
3150
|
type: O.literal,
|
|
@@ -3153,14 +3153,14 @@ function _e(e, t, r, i, n, o, a) {
|
|
|
3153
3153
|
];
|
|
3154
3154
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3155
3155
|
var l = u[h];
|
|
3156
|
-
if (
|
|
3156
|
+
if (Et(l)) {
|
|
3157
3157
|
s.push({
|
|
3158
3158
|
type: O.literal,
|
|
3159
3159
|
value: l.value
|
|
3160
3160
|
});
|
|
3161
3161
|
continue;
|
|
3162
3162
|
}
|
|
3163
|
-
if (
|
|
3163
|
+
if (Bi(l)) {
|
|
3164
3164
|
typeof o == "number" && s.push({
|
|
3165
3165
|
type: O.literal,
|
|
3166
3166
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3169,89 +3169,89 @@ function _e(e, t, r, i, n, o, a) {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
var c = l.value;
|
|
3171
3171
|
if (!(n && c in n))
|
|
3172
|
-
throw new
|
|
3172
|
+
throw new ln(c, a);
|
|
3173
3173
|
var f = n[c];
|
|
3174
|
-
if (
|
|
3174
|
+
if (Ii(l)) {
|
|
3175
3175
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3176
3176
|
type: typeof f == "string" ? O.literal : O.object,
|
|
3177
3177
|
value: f
|
|
3178
3178
|
});
|
|
3179
3179
|
continue;
|
|
3180
3180
|
}
|
|
3181
|
-
if (
|
|
3182
|
-
var p = typeof l.style == "string" ? i.date[l.style] :
|
|
3181
|
+
if (Jt(l)) {
|
|
3182
|
+
var p = typeof l.style == "string" ? i.date[l.style] : qe(l.style) ? l.style.parsedOptions : void 0;
|
|
3183
3183
|
s.push({
|
|
3184
3184
|
type: O.literal,
|
|
3185
3185
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3186
3186
|
});
|
|
3187
3187
|
continue;
|
|
3188
3188
|
}
|
|
3189
|
-
if (
|
|
3190
|
-
var p = typeof l.style == "string" ? i.time[l.style] :
|
|
3189
|
+
if (qt(l)) {
|
|
3190
|
+
var p = typeof l.style == "string" ? i.time[l.style] : qe(l.style) ? l.style.parsedOptions : i.time.medium;
|
|
3191
3191
|
s.push({
|
|
3192
3192
|
type: O.literal,
|
|
3193
3193
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3194
3194
|
});
|
|
3195
3195
|
continue;
|
|
3196
3196
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
var p = typeof l.style == "string" ? i.number[l.style] :
|
|
3197
|
+
if (Yt(l)) {
|
|
3198
|
+
var p = typeof l.style == "string" ? i.number[l.style] : rr(l.style) ? l.style.parsedOptions : void 0;
|
|
3199
3199
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3200
3200
|
type: O.literal,
|
|
3201
3201
|
value: r.getNumberFormat(t, p).format(f)
|
|
3202
3202
|
});
|
|
3203
3203
|
continue;
|
|
3204
3204
|
}
|
|
3205
|
-
if (
|
|
3205
|
+
if (tr(l)) {
|
|
3206
3206
|
var y = l.children, d = l.value, v = n[d];
|
|
3207
|
-
if (!
|
|
3208
|
-
throw new
|
|
3209
|
-
var
|
|
3210
|
-
return
|
|
3207
|
+
if (!cn(v))
|
|
3208
|
+
throw new un(d, "function", a);
|
|
3209
|
+
var P = xe(y, t, r, i, n, o), g = v(P.map(function(R) {
|
|
3210
|
+
return R.value;
|
|
3211
3211
|
}));
|
|
3212
|
-
Array.isArray(g) || (g = [g]), s.push.apply(s, g.map(function(
|
|
3212
|
+
Array.isArray(g) || (g = [g]), s.push.apply(s, g.map(function(R) {
|
|
3213
3213
|
return {
|
|
3214
|
-
type: typeof
|
|
3215
|
-
value:
|
|
3214
|
+
type: typeof R == "string" ? O.literal : O.object,
|
|
3215
|
+
value: R
|
|
3216
3216
|
};
|
|
3217
3217
|
}));
|
|
3218
3218
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
var
|
|
3221
|
-
if (!
|
|
3222
|
-
throw new
|
|
3223
|
-
s.push.apply(s,
|
|
3219
|
+
if (Kt(l)) {
|
|
3220
|
+
var H = l.options[f] || l.options.other;
|
|
3221
|
+
if (!H)
|
|
3222
|
+
throw new Pt(l.value, f, Object.keys(l.options), a);
|
|
3223
|
+
s.push.apply(s, xe(H.value, t, r, i, n));
|
|
3224
3224
|
continue;
|
|
3225
3225
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3228
|
-
if (!
|
|
3226
|
+
if (er(l)) {
|
|
3227
|
+
var H = l.options["=".concat(f)];
|
|
3228
|
+
if (!H) {
|
|
3229
3229
|
if (!Intl.PluralRules)
|
|
3230
|
-
throw new
|
|
3230
|
+
throw new Ie(`Intl.PluralRules is not available in this environment.
|
|
3231
3231
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3232
|
-
`,
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3232
|
+
`, ee.MISSING_INTL_API, a);
|
|
3233
|
+
var B = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3234
|
+
H = l.options[B] || l.options.other;
|
|
3235
3235
|
}
|
|
3236
|
-
if (!
|
|
3237
|
-
throw new
|
|
3238
|
-
s.push.apply(s,
|
|
3236
|
+
if (!H)
|
|
3237
|
+
throw new Pt(l.value, f, Object.keys(l.options), a);
|
|
3238
|
+
s.push.apply(s, xe(H.value, t, r, i, n, f - (l.offset || 0)));
|
|
3239
3239
|
continue;
|
|
3240
3240
|
}
|
|
3241
3241
|
}
|
|
3242
|
-
return
|
|
3242
|
+
return hn(s);
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3245
|
-
return t ?
|
|
3246
|
-
return r[i] =
|
|
3244
|
+
function fn(e, t) {
|
|
3245
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3246
|
+
return r[i] = M(M({}, e[i]), t[i] || {}), r;
|
|
3247
3247
|
}, {})) : e;
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function mn(e, t) {
|
|
3250
3250
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3251
|
-
return r[i] =
|
|
3252
|
-
},
|
|
3251
|
+
return r[i] = fn(e[i], t[i]), r;
|
|
3252
|
+
}, M({}, e)) : e;
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3254
|
+
function Ve(e) {
|
|
3255
3255
|
return {
|
|
3256
3256
|
create: function() {
|
|
3257
3257
|
return {
|
|
@@ -3265,39 +3265,39 @@ function je(e) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
};
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function pn(e) {
|
|
3269
3269
|
return e === void 0 && (e = {
|
|
3270
3270
|
number: {},
|
|
3271
3271
|
dateTime: {},
|
|
3272
3272
|
pluralRules: {}
|
|
3273
3273
|
}), {
|
|
3274
|
-
getNumberFormat:
|
|
3274
|
+
getNumberFormat: Fe(function() {
|
|
3275
3275
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3276
3276
|
r[i] = arguments[i];
|
|
3277
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3277
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3278
3278
|
}, {
|
|
3279
|
-
cache:
|
|
3280
|
-
strategy:
|
|
3279
|
+
cache: Ve(e.number),
|
|
3280
|
+
strategy: je.variadic
|
|
3281
3281
|
}),
|
|
3282
|
-
getDateTimeFormat:
|
|
3282
|
+
getDateTimeFormat: Fe(function() {
|
|
3283
3283
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3284
3284
|
r[i] = arguments[i];
|
|
3285
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3285
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3286
3286
|
}, {
|
|
3287
|
-
cache:
|
|
3288
|
-
strategy:
|
|
3287
|
+
cache: Ve(e.dateTime),
|
|
3288
|
+
strategy: je.variadic
|
|
3289
3289
|
}),
|
|
3290
|
-
getPluralRules:
|
|
3290
|
+
getPluralRules: Fe(function() {
|
|
3291
3291
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3292
3292
|
r[i] = arguments[i];
|
|
3293
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3293
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3294
3294
|
}, {
|
|
3295
|
-
cache:
|
|
3296
|
-
strategy:
|
|
3295
|
+
cache: Ve(e.pluralRules),
|
|
3296
|
+
strategy: je.variadic
|
|
3297
3297
|
})
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
|
-
var
|
|
3300
|
+
var dn = (
|
|
3301
3301
|
/** @class */
|
|
3302
3302
|
function() {
|
|
3303
3303
|
function e(t, r, i, n) {
|
|
@@ -3316,7 +3316,7 @@ var mn = (
|
|
|
3316
3316
|
}, []);
|
|
3317
3317
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3318
3318
|
}, this.formatToParts = function(h) {
|
|
3319
|
-
return
|
|
3319
|
+
return xe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3320
3320
|
}, this.resolvedOptions = function() {
|
|
3321
3321
|
var h;
|
|
3322
3322
|
return {
|
|
@@ -3329,13 +3329,13 @@ var mn = (
|
|
|
3329
3329
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3330
3330
|
var a = n || {};
|
|
3331
3331
|
a.formatters;
|
|
3332
|
-
var s =
|
|
3333
|
-
this.ast = e.__parse(t,
|
|
3332
|
+
var s = Si(a, ["formatters"]);
|
|
3333
|
+
this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
|
|
3334
3334
|
} else
|
|
3335
3335
|
this.ast = t;
|
|
3336
3336
|
if (!Array.isArray(this.ast))
|
|
3337
3337
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3338
|
-
this.formats =
|
|
3338
|
+
this.formats = mn(e.formats, i), this.formatters = n && n.formatters || pn(this.formatterCache);
|
|
3339
3339
|
}
|
|
3340
3340
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3341
3341
|
get: function() {
|
|
@@ -3348,7 +3348,7 @@ var mn = (
|
|
|
3348
3348
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3349
3349
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3350
3350
|
}
|
|
3351
|
-
}, e.__parse =
|
|
3351
|
+
}, e.__parse = an, e.formats = {
|
|
3352
3352
|
number: {
|
|
3353
3353
|
integer: {
|
|
3354
3354
|
maximumFractionDigits: 0
|
|
@@ -3409,7 +3409,7 @@ var mn = (
|
|
|
3409
3409
|
}, e;
|
|
3410
3410
|
}()
|
|
3411
3411
|
);
|
|
3412
|
-
function
|
|
3412
|
+
function yn(e, t) {
|
|
3413
3413
|
if (t == null)
|
|
3414
3414
|
return;
|
|
3415
3415
|
if (t in e)
|
|
@@ -3430,92 +3430,92 @@ function pn(e, t) {
|
|
|
3430
3430
|
i = void 0;
|
|
3431
3431
|
return i;
|
|
3432
3432
|
}
|
|
3433
|
-
const F = {},
|
|
3433
|
+
const F = {}, gn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), hr = (e, t) => {
|
|
3434
3434
|
if (t == null)
|
|
3435
3435
|
return;
|
|
3436
3436
|
if (t in F && e in F[t])
|
|
3437
3437
|
return F[t][e];
|
|
3438
|
-
const r =
|
|
3438
|
+
const r = Be(t);
|
|
3439
3439
|
for (let i = 0; i < r.length; i++) {
|
|
3440
|
-
const n = r[i], o =
|
|
3440
|
+
const n = r[i], o = vn(n, e);
|
|
3441
3441
|
if (o)
|
|
3442
|
-
return
|
|
3442
|
+
return gn(e, t, o);
|
|
3443
3443
|
}
|
|
3444
3444
|
};
|
|
3445
|
-
let
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3448
|
-
return
|
|
3445
|
+
let mt;
|
|
3446
|
+
const fe = He({});
|
|
3447
|
+
function bn(e) {
|
|
3448
|
+
return mt[e] || null;
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3451
|
-
return e in
|
|
3450
|
+
function cr(e) {
|
|
3451
|
+
return e in mt;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3454
|
-
if (!
|
|
3453
|
+
function vn(e, t) {
|
|
3454
|
+
if (!cr(e))
|
|
3455
3455
|
return null;
|
|
3456
|
-
const r =
|
|
3457
|
-
return
|
|
3456
|
+
const r = bn(e);
|
|
3457
|
+
return yn(r, t);
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function _n(e) {
|
|
3460
3460
|
if (e == null)
|
|
3461
3461
|
return;
|
|
3462
|
-
const t =
|
|
3462
|
+
const t = Be(e);
|
|
3463
3463
|
for (let r = 0; r < t.length; r++) {
|
|
3464
3464
|
const i = t[r];
|
|
3465
|
-
if (
|
|
3465
|
+
if (cr(i))
|
|
3466
3466
|
return i;
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3470
|
-
delete F[e],
|
|
3469
|
+
function fr(e, ...t) {
|
|
3470
|
+
delete F[e], fe.update((r) => (r[e] = xi.all([r[e] || {}, ...t]), r));
|
|
3471
3471
|
}
|
|
3472
|
-
|
|
3473
|
-
[
|
|
3472
|
+
re(
|
|
3473
|
+
[fe],
|
|
3474
3474
|
([e]) => Object.keys(e)
|
|
3475
3475
|
);
|
|
3476
|
-
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3479
|
-
|
|
3476
|
+
fe.subscribe((e) => mt = e);
|
|
3477
|
+
const Se = {};
|
|
3478
|
+
function En(e, t) {
|
|
3479
|
+
Se[e].delete(t), Se[e].size === 0 && delete Se[e];
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3481
|
+
function mr(e) {
|
|
3482
|
+
return Se[e];
|
|
3483
3483
|
}
|
|
3484
|
-
function
|
|
3485
|
-
return
|
|
3486
|
-
const r =
|
|
3484
|
+
function xn(e) {
|
|
3485
|
+
return Be(e).map((t) => {
|
|
3486
|
+
const r = mr(t);
|
|
3487
3487
|
return [t, r ? [...r] : []];
|
|
3488
3488
|
}).filter(([, t]) => t.length > 0);
|
|
3489
3489
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return e == null ? !1 :
|
|
3490
|
+
function nt(e) {
|
|
3491
|
+
return e == null ? !1 : Be(e).some(
|
|
3492
3492
|
(t) => {
|
|
3493
3493
|
var r;
|
|
3494
|
-
return (r =
|
|
3494
|
+
return (r = mr(t)) == null ? void 0 : r.size;
|
|
3495
3495
|
}
|
|
3496
3496
|
);
|
|
3497
3497
|
}
|
|
3498
|
-
function
|
|
3498
|
+
function Sn(e, t) {
|
|
3499
3499
|
return Promise.all(
|
|
3500
|
-
t.map((i) => (
|
|
3501
|
-
).then((i) =>
|
|
3502
|
-
}
|
|
3503
|
-
const
|
|
3504
|
-
function
|
|
3505
|
-
if (!
|
|
3506
|
-
return e in
|
|
3507
|
-
const t =
|
|
3508
|
-
return
|
|
3500
|
+
t.map((i) => (En(e, i), i().then((n) => n.default || n)))
|
|
3501
|
+
).then((i) => fr(e, ...i));
|
|
3502
|
+
}
|
|
3503
|
+
const se = {};
|
|
3504
|
+
function pr(e) {
|
|
3505
|
+
if (!nt(e))
|
|
3506
|
+
return e in se ? se[e] : Promise.resolve();
|
|
3507
|
+
const t = xn(e);
|
|
3508
|
+
return se[e] = Promise.all(
|
|
3509
3509
|
t.map(
|
|
3510
|
-
([r, i]) =>
|
|
3510
|
+
([r, i]) => Sn(r, i)
|
|
3511
3511
|
)
|
|
3512
3512
|
).then(() => {
|
|
3513
|
-
if (
|
|
3514
|
-
return
|
|
3515
|
-
delete
|
|
3516
|
-
}),
|
|
3513
|
+
if (nt(e))
|
|
3514
|
+
return pr(e);
|
|
3515
|
+
delete se[e];
|
|
3516
|
+
}), se[e];
|
|
3517
3517
|
}
|
|
3518
|
-
const
|
|
3518
|
+
const Tn = {
|
|
3519
3519
|
number: {
|
|
3520
3520
|
scientific: { notation: "scientific" },
|
|
3521
3521
|
engineering: { notation: "engineering" },
|
|
@@ -3544,135 +3544,135 @@ const xn = {
|
|
|
3544
3544
|
timeZoneName: "short"
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
|
-
},
|
|
3547
|
+
}, Ln = {
|
|
3548
3548
|
fallbackLocale: null,
|
|
3549
3549
|
loadingDelay: 200,
|
|
3550
|
-
formats:
|
|
3550
|
+
formats: Tn,
|
|
3551
3551
|
warnOnMissingMessages: !0,
|
|
3552
3552
|
handleMissingMessage: void 0,
|
|
3553
3553
|
ignoreTag: !0
|
|
3554
|
-
},
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3554
|
+
}, wn = Ln;
|
|
3555
|
+
function te() {
|
|
3556
|
+
return wn;
|
|
3557
3557
|
}
|
|
3558
|
-
const
|
|
3559
|
-
var
|
|
3558
|
+
const We = He(!1);
|
|
3559
|
+
var An = Object.defineProperty, Pn = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, On = Object.prototype.hasOwnProperty, In = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? An(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
|
|
3560
3560
|
for (var r in t || (t = {}))
|
|
3561
|
-
|
|
3562
|
-
if (
|
|
3563
|
-
for (var r of
|
|
3564
|
-
|
|
3561
|
+
On.call(t, r) && Ot(e, r, t[r]);
|
|
3562
|
+
if (Ht)
|
|
3563
|
+
for (var r of Ht(t))
|
|
3564
|
+
In.call(t, r) && Ot(e, r, t[r]);
|
|
3565
3565
|
return e;
|
|
3566
|
-
},
|
|
3567
|
-
let
|
|
3568
|
-
const
|
|
3569
|
-
function
|
|
3566
|
+
}, Cn = (e, t) => Pn(e, Hn(t));
|
|
3567
|
+
let ot;
|
|
3568
|
+
const Ae = He(null);
|
|
3569
|
+
function It(e) {
|
|
3570
3570
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3573
|
-
const r =
|
|
3574
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3572
|
+
function Be(e, t = te().fallbackLocale) {
|
|
3573
|
+
const r = It(e);
|
|
3574
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
|
|
3575
3575
|
}
|
|
3576
3576
|
function X() {
|
|
3577
|
-
return
|
|
3577
|
+
return ot ?? void 0;
|
|
3578
3578
|
}
|
|
3579
|
-
|
|
3580
|
-
|
|
3579
|
+
Ae.subscribe((e) => {
|
|
3580
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3581
3581
|
});
|
|
3582
|
-
const
|
|
3583
|
-
if (e &&
|
|
3584
|
-
const { loadingDelay: t } =
|
|
3582
|
+
const Nn = (e) => {
|
|
3583
|
+
if (e && _n(e) && nt(e)) {
|
|
3584
|
+
const { loadingDelay: t } = te();
|
|
3585
3585
|
let r;
|
|
3586
3586
|
return typeof window < "u" && X() != null && t ? r = window.setTimeout(
|
|
3587
|
-
() =>
|
|
3587
|
+
() => We.set(!0),
|
|
3588
3588
|
t
|
|
3589
|
-
) :
|
|
3590
|
-
|
|
3589
|
+
) : We.set(!0), pr(e).then(() => {
|
|
3590
|
+
Ae.set(e);
|
|
3591
3591
|
}).finally(() => {
|
|
3592
|
-
clearTimeout(r),
|
|
3592
|
+
clearTimeout(r), We.set(!1);
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
|
-
return
|
|
3596
|
-
},
|
|
3597
|
-
set:
|
|
3598
|
-
}),
|
|
3595
|
+
return Ae.set(e);
|
|
3596
|
+
}, ie = Cn(Bn({}, Ae), {
|
|
3597
|
+
set: Nn
|
|
3598
|
+
}), Ce = (e) => {
|
|
3599
3599
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3600
3600
|
return (i) => {
|
|
3601
3601
|
const n = JSON.stringify(i);
|
|
3602
3602
|
return n in t ? t[n] : t[n] = e(i);
|
|
3603
3603
|
};
|
|
3604
3604
|
};
|
|
3605
|
-
var
|
|
3605
|
+
var Rn = Object.defineProperty, Pe = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
3606
3606
|
for (var r in t || (t = {}))
|
|
3607
|
-
|
|
3608
|
-
if (
|
|
3609
|
-
for (var r of
|
|
3610
|
-
|
|
3607
|
+
dr.call(t, r) && Bt(e, r, t[r]);
|
|
3608
|
+
if (Pe)
|
|
3609
|
+
for (var r of Pe(t))
|
|
3610
|
+
yr.call(t, r) && Bt(e, r, t[r]);
|
|
3611
3611
|
return e;
|
|
3612
|
-
},
|
|
3612
|
+
}, ne = (e, t) => {
|
|
3613
3613
|
var r = {};
|
|
3614
3614
|
for (var i in e)
|
|
3615
|
-
|
|
3616
|
-
if (e != null &&
|
|
3617
|
-
for (var i of
|
|
3618
|
-
t.indexOf(i) < 0 &&
|
|
3615
|
+
dr.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3616
|
+
if (e != null && Pe)
|
|
3617
|
+
for (var i of Pe(e))
|
|
3618
|
+
t.indexOf(i) < 0 && yr.call(e, i) && (r[i] = e[i]);
|
|
3619
3619
|
return r;
|
|
3620
3620
|
};
|
|
3621
|
-
const
|
|
3622
|
-
const { formats: r } =
|
|
3621
|
+
const he = (e, t) => {
|
|
3622
|
+
const { formats: r } = te();
|
|
3623
3623
|
if (e in r && t in r[e])
|
|
3624
3624
|
return r[e][t];
|
|
3625
3625
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3626
|
-
},
|
|
3626
|
+
}, Mn = Ce(
|
|
3627
3627
|
(e) => {
|
|
3628
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3628
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3629
3629
|
if (r == null)
|
|
3630
3630
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3631
|
-
return i && (n =
|
|
3631
|
+
return i && (n = he("number", i)), new Intl.NumberFormat(r, n);
|
|
3632
3632
|
}
|
|
3633
|
-
),
|
|
3633
|
+
), Dn = Ce(
|
|
3634
3634
|
(e) => {
|
|
3635
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3635
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3636
3636
|
if (r == null)
|
|
3637
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3638
|
-
return i ? n =
|
|
3638
|
+
return i ? n = he("date", i) : Object.keys(n).length === 0 && (n = he("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3639
3639
|
}
|
|
3640
|
-
),
|
|
3640
|
+
), $n = Ce(
|
|
3641
3641
|
(e) => {
|
|
3642
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3642
|
+
var t = e, { locale: r, format: i } = t, n = ne(t, ["locale", "format"]);
|
|
3643
3643
|
if (r == null)
|
|
3644
3644
|
throw new Error(
|
|
3645
3645
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3646
3646
|
);
|
|
3647
|
-
return i ? n =
|
|
3647
|
+
return i ? n = he("time", i) : Object.keys(n).length === 0 && (n = he("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3648
3648
|
}
|
|
3649
|
-
),
|
|
3649
|
+
), Un = (e = {}) => {
|
|
3650
3650
|
var t = e, {
|
|
3651
3651
|
locale: r = X()
|
|
3652
|
-
} = t, i =
|
|
3652
|
+
} = t, i = ne(t, [
|
|
3653
3653
|
"locale"
|
|
3654
3654
|
]);
|
|
3655
|
-
return
|
|
3656
|
-
},
|
|
3655
|
+
return Mn(pt({ locale: r }, i));
|
|
3656
|
+
}, Gn = (e = {}) => {
|
|
3657
3657
|
var t = e, {
|
|
3658
3658
|
locale: r = X()
|
|
3659
|
-
} = t, i =
|
|
3659
|
+
} = t, i = ne(t, [
|
|
3660
3660
|
"locale"
|
|
3661
3661
|
]);
|
|
3662
|
-
return
|
|
3663
|
-
},
|
|
3662
|
+
return Dn(pt({ locale: r }, i));
|
|
3663
|
+
}, Fn = (e = {}) => {
|
|
3664
3664
|
var t = e, {
|
|
3665
3665
|
locale: r = X()
|
|
3666
|
-
} = t, i =
|
|
3666
|
+
} = t, i = ne(t, [
|
|
3667
3667
|
"locale"
|
|
3668
3668
|
]);
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3669
|
+
return $n(pt({ locale: r }, i));
|
|
3670
|
+
}, jn = Ce(
|
|
3671
3671
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3672
|
-
(e, t = X()) => new
|
|
3673
|
-
ignoreTag:
|
|
3672
|
+
(e, t = X()) => new dn(e, t, te().formats, {
|
|
3673
|
+
ignoreTag: te().ignoreTag
|
|
3674
3674
|
})
|
|
3675
|
-
),
|
|
3675
|
+
), kn = (e, t = {}) => {
|
|
3676
3676
|
var r, i, n, o;
|
|
3677
3677
|
let a = t;
|
|
3678
3678
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3685,9 +3685,9 @@ const le = (e, t) => {
|
|
|
3685
3685
|
throw new Error(
|
|
3686
3686
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3687
3687
|
);
|
|
3688
|
-
let l =
|
|
3688
|
+
let l = hr(e, h);
|
|
3689
3689
|
if (!l)
|
|
3690
|
-
l = (o = (n = (i = (r =
|
|
3690
|
+
l = (o = (n = (i = (r = te()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: h, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
3691
3691
|
else if (typeof l != "string")
|
|
3692
3692
|
return console.warn(
|
|
3693
3693
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3696,7 +3696,7 @@ const le = (e, t) => {
|
|
|
3696
3696
|
return l;
|
|
3697
3697
|
let c = l;
|
|
3698
3698
|
try {
|
|
3699
|
-
c =
|
|
3699
|
+
c = jn(l, h).format(s);
|
|
3700
3700
|
} catch (f) {
|
|
3701
3701
|
f instanceof Error && console.warn(
|
|
3702
3702
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3704,18 +3704,18 @@ const le = (e, t) => {
|
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
3706
|
return c;
|
|
3707
|
-
},
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
function
|
|
3713
|
-
|
|
3714
|
-
}
|
|
3715
|
-
function
|
|
3716
|
-
|
|
3717
|
-
}
|
|
3718
|
-
const
|
|
3707
|
+
}, Vn = (e, t) => Fn(t).format(e), Wn = (e, t) => Gn(t).format(e), Xn = (e, t) => Un(t).format(e), zn = (e, t = X()) => hr(e, t), Zn = re([ie, fe], () => kn);
|
|
3708
|
+
re([ie], () => Vn);
|
|
3709
|
+
re([ie], () => Wn);
|
|
3710
|
+
re([ie], () => Xn);
|
|
3711
|
+
re([ie, fe], () => zn);
|
|
3712
|
+
function Ct(e, t) {
|
|
3713
|
+
fr(e, t);
|
|
3714
|
+
}
|
|
3715
|
+
function Qn(e) {
|
|
3716
|
+
ie.set(e);
|
|
3717
|
+
}
|
|
3718
|
+
const Xe = {
|
|
3719
3719
|
en: {
|
|
3720
3720
|
expandLimits: "LIMIT HISTORY",
|
|
3721
3721
|
daily: "per day",
|
|
@@ -3980,24 +3980,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3980
3980
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3981
3981
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3982
3982
|
***************************************************************************** */
|
|
3983
|
-
var
|
|
3984
|
-
return
|
|
3983
|
+
var st = function(e, t) {
|
|
3984
|
+
return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
3985
3985
|
r.__proto__ = i;
|
|
3986
3986
|
} || function(r, i) {
|
|
3987
3987
|
for (var n in i)
|
|
3988
3988
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
3989
|
-
},
|
|
3989
|
+
}, st(e, t);
|
|
3990
3990
|
};
|
|
3991
|
-
function
|
|
3991
|
+
function me(e, t) {
|
|
3992
3992
|
if (typeof t != "function" && t !== null)
|
|
3993
3993
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3994
|
-
|
|
3994
|
+
st(e, t);
|
|
3995
3995
|
function r() {
|
|
3996
3996
|
this.constructor = e;
|
|
3997
3997
|
}
|
|
3998
3998
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
3999
3999
|
}
|
|
4000
|
-
function
|
|
4000
|
+
function at(e) {
|
|
4001
4001
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
4002
4002
|
if (r)
|
|
4003
4003
|
return r.call(e);
|
|
@@ -4009,7 +4009,7 @@ function ot(e) {
|
|
|
4009
4009
|
};
|
|
4010
4010
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4011
4011
|
}
|
|
4012
|
-
function
|
|
4012
|
+
function ut(e, t) {
|
|
4013
4013
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4014
4014
|
if (!r)
|
|
4015
4015
|
return e;
|
|
@@ -4029,22 +4029,22 @@ function st(e, t) {
|
|
|
4029
4029
|
}
|
|
4030
4030
|
return o;
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4032
|
+
function lt(e, t, r) {
|
|
4033
4033
|
if (arguments.length === 2)
|
|
4034
4034
|
for (var i = 0, n = t.length, o; i < n; i++)
|
|
4035
4035
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
4036
4036
|
return e.concat(o || t);
|
|
4037
4037
|
}
|
|
4038
|
-
function
|
|
4038
|
+
function U(e) {
|
|
4039
4039
|
return typeof e == "function";
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function gr(e) {
|
|
4042
4042
|
var t = function(i) {
|
|
4043
4043
|
Error.call(i), i.stack = new Error().stack;
|
|
4044
4044
|
}, r = e(t);
|
|
4045
4045
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
4046
4046
|
}
|
|
4047
|
-
var
|
|
4047
|
+
var ze = gr(function(e) {
|
|
4048
4048
|
return function(r) {
|
|
4049
4049
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
4050
4050
|
` + r.map(function(i, n) {
|
|
@@ -4053,13 +4053,13 @@ var We = dr(function(e) {
|
|
|
4053
4053
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
4054
4054
|
};
|
|
4055
4055
|
});
|
|
4056
|
-
function
|
|
4056
|
+
function ht(e, t) {
|
|
4057
4057
|
if (e) {
|
|
4058
4058
|
var r = e.indexOf(t);
|
|
4059
4059
|
0 <= r && e.splice(r, 1);
|
|
4060
4060
|
}
|
|
4061
4061
|
}
|
|
4062
|
-
var
|
|
4062
|
+
var Ne = function() {
|
|
4063
4063
|
function e(t) {
|
|
4064
4064
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4065
4065
|
}
|
|
@@ -4071,7 +4071,7 @@ var Be = function() {
|
|
|
4071
4071
|
if (a)
|
|
4072
4072
|
if (this._parentage = null, Array.isArray(a))
|
|
4073
4073
|
try {
|
|
4074
|
-
for (var s =
|
|
4074
|
+
for (var s = at(a), h = s.next(); !h.done; h = s.next()) {
|
|
4075
4075
|
var u = h.value;
|
|
4076
4076
|
u.remove(this);
|
|
4077
4077
|
}
|
|
@@ -4088,22 +4088,22 @@ var Be = function() {
|
|
|
4088
4088
|
else
|
|
4089
4089
|
a.remove(this);
|
|
4090
4090
|
var l = this.initialTeardown;
|
|
4091
|
-
if (
|
|
4091
|
+
if (U(l))
|
|
4092
4092
|
try {
|
|
4093
4093
|
l();
|
|
4094
4094
|
} catch (d) {
|
|
4095
|
-
o = d instanceof
|
|
4095
|
+
o = d instanceof ze ? d.errors : [d];
|
|
4096
4096
|
}
|
|
4097
4097
|
var c = this._finalizers;
|
|
4098
4098
|
if (c) {
|
|
4099
4099
|
this._finalizers = null;
|
|
4100
4100
|
try {
|
|
4101
|
-
for (var f =
|
|
4101
|
+
for (var f = at(c), p = f.next(); !p.done; p = f.next()) {
|
|
4102
4102
|
var y = p.value;
|
|
4103
4103
|
try {
|
|
4104
|
-
|
|
4104
|
+
Nt(y);
|
|
4105
4105
|
} catch (d) {
|
|
4106
|
-
o = o ?? [], d instanceof
|
|
4106
|
+
o = o ?? [], d instanceof ze ? o = lt(lt([], ut(o)), ut(d.errors)) : o.push(d);
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
4109
4109
|
} catch (d) {
|
|
@@ -4118,13 +4118,13 @@ var Be = function() {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
}
|
|
4120
4120
|
if (o)
|
|
4121
|
-
throw new
|
|
4121
|
+
throw new ze(o);
|
|
4122
4122
|
}
|
|
4123
4123
|
}, e.prototype.add = function(t) {
|
|
4124
4124
|
var r;
|
|
4125
4125
|
if (t && t !== this)
|
|
4126
4126
|
if (this.closed)
|
|
4127
|
-
|
|
4127
|
+
Nt(t);
|
|
4128
4128
|
else {
|
|
4129
4129
|
if (t instanceof e) {
|
|
4130
4130
|
if (t.closed || t._hasParent(this))
|
|
@@ -4141,52 +4141,52 @@ var Be = function() {
|
|
|
4141
4141
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
4142
4142
|
}, e.prototype._removeParent = function(t) {
|
|
4143
4143
|
var r = this._parentage;
|
|
4144
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
4144
|
+
r === t ? this._parentage = null : Array.isArray(r) && ht(r, t);
|
|
4145
4145
|
}, e.prototype.remove = function(t) {
|
|
4146
4146
|
var r = this._finalizers;
|
|
4147
|
-
r &&
|
|
4147
|
+
r && ht(r, t), t instanceof e && t._removeParent(this);
|
|
4148
4148
|
}, e.EMPTY = function() {
|
|
4149
4149
|
var t = new e();
|
|
4150
4150
|
return t.closed = !0, t;
|
|
4151
4151
|
}(), e;
|
|
4152
|
-
}(),
|
|
4153
|
-
function
|
|
4154
|
-
return e instanceof
|
|
4152
|
+
}(), br = Ne.EMPTY;
|
|
4153
|
+
function vr(e) {
|
|
4154
|
+
return e instanceof Ne || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
|
|
4156
|
+
function Nt(e) {
|
|
4157
|
+
U(e) ? e() : e.unsubscribe();
|
|
4158
4158
|
}
|
|
4159
|
-
var
|
|
4159
|
+
var Yn = {
|
|
4160
4160
|
Promise: void 0
|
|
4161
|
-
},
|
|
4161
|
+
}, Jn = {
|
|
4162
4162
|
setTimeout: function(e, t) {
|
|
4163
4163
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
4164
4164
|
r[i - 2] = arguments[i];
|
|
4165
|
-
return setTimeout.apply(void 0,
|
|
4165
|
+
return setTimeout.apply(void 0, lt([e, t], ut(r)));
|
|
4166
4166
|
},
|
|
4167
4167
|
clearTimeout: function(e) {
|
|
4168
4168
|
return clearTimeout(e);
|
|
4169
4169
|
},
|
|
4170
4170
|
delegate: void 0
|
|
4171
4171
|
};
|
|
4172
|
-
function
|
|
4173
|
-
|
|
4172
|
+
function qn(e) {
|
|
4173
|
+
Jn.setTimeout(function() {
|
|
4174
4174
|
throw e;
|
|
4175
4175
|
});
|
|
4176
4176
|
}
|
|
4177
|
-
function
|
|
4177
|
+
function Rt() {
|
|
4178
4178
|
}
|
|
4179
|
-
function
|
|
4179
|
+
function Te(e) {
|
|
4180
4180
|
e();
|
|
4181
4181
|
}
|
|
4182
|
-
var
|
|
4183
|
-
|
|
4182
|
+
var _r = function(e) {
|
|
4183
|
+
me(t, e);
|
|
4184
4184
|
function t(r) {
|
|
4185
4185
|
var i = e.call(this) || this;
|
|
4186
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
4186
|
+
return i.isStopped = !1, r ? (i.destination = r, vr(r) && r.add(i)) : i.destination = to, i;
|
|
4187
4187
|
}
|
|
4188
4188
|
return t.create = function(r, i, n) {
|
|
4189
|
-
return new
|
|
4189
|
+
return new ct(r, i, n);
|
|
4190
4190
|
}, t.prototype.next = function(r) {
|
|
4191
4191
|
this.isStopped || this._next(r);
|
|
4192
4192
|
}, t.prototype.error = function(r) {
|
|
@@ -4210,7 +4210,7 @@ var br = function(e) {
|
|
|
4210
4210
|
this.unsubscribe();
|
|
4211
4211
|
}
|
|
4212
4212
|
}, t;
|
|
4213
|
-
}(
|
|
4213
|
+
}(Ne), Kn = function() {
|
|
4214
4214
|
function e(t) {
|
|
4215
4215
|
this.partialObserver = t;
|
|
4216
4216
|
}
|
|
@@ -4220,7 +4220,7 @@ var br = function(e) {
|
|
|
4220
4220
|
try {
|
|
4221
4221
|
r.next(t);
|
|
4222
4222
|
} catch (i) {
|
|
4223
|
-
|
|
4223
|
+
_e(i);
|
|
4224
4224
|
}
|
|
4225
4225
|
}, e.prototype.error = function(t) {
|
|
4226
4226
|
var r = this.partialObserver;
|
|
@@ -4228,56 +4228,56 @@ var br = function(e) {
|
|
|
4228
4228
|
try {
|
|
4229
4229
|
r.error(t);
|
|
4230
4230
|
} catch (i) {
|
|
4231
|
-
|
|
4231
|
+
_e(i);
|
|
4232
4232
|
}
|
|
4233
4233
|
else
|
|
4234
|
-
|
|
4234
|
+
_e(t);
|
|
4235
4235
|
}, e.prototype.complete = function() {
|
|
4236
4236
|
var t = this.partialObserver;
|
|
4237
4237
|
if (t.complete)
|
|
4238
4238
|
try {
|
|
4239
4239
|
t.complete();
|
|
4240
4240
|
} catch (r) {
|
|
4241
|
-
|
|
4241
|
+
_e(r);
|
|
4242
4242
|
}
|
|
4243
4243
|
}, e;
|
|
4244
|
-
}(),
|
|
4245
|
-
|
|
4244
|
+
}(), ct = function(e) {
|
|
4245
|
+
me(t, e);
|
|
4246
4246
|
function t(r, i, n) {
|
|
4247
4247
|
var o = e.call(this) || this, a;
|
|
4248
|
-
return
|
|
4248
|
+
return U(r) || !r ? a = {
|
|
4249
4249
|
next: r ?? void 0,
|
|
4250
4250
|
error: i ?? void 0,
|
|
4251
4251
|
complete: n ?? void 0
|
|
4252
|
-
} : a = r, o.destination = new
|
|
4252
|
+
} : a = r, o.destination = new Kn(a), o;
|
|
4253
4253
|
}
|
|
4254
4254
|
return t;
|
|
4255
|
-
}(
|
|
4256
|
-
function
|
|
4257
|
-
|
|
4255
|
+
}(_r);
|
|
4256
|
+
function _e(e) {
|
|
4257
|
+
qn(e);
|
|
4258
4258
|
}
|
|
4259
|
-
function
|
|
4259
|
+
function eo(e) {
|
|
4260
4260
|
throw e;
|
|
4261
4261
|
}
|
|
4262
|
-
var
|
|
4262
|
+
var to = {
|
|
4263
4263
|
closed: !0,
|
|
4264
|
-
next:
|
|
4265
|
-
error:
|
|
4266
|
-
complete:
|
|
4267
|
-
},
|
|
4264
|
+
next: Rt,
|
|
4265
|
+
error: eo,
|
|
4266
|
+
complete: Rt
|
|
4267
|
+
}, ro = function() {
|
|
4268
4268
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4269
4269
|
}();
|
|
4270
|
-
function
|
|
4270
|
+
function io(e) {
|
|
4271
4271
|
return e;
|
|
4272
4272
|
}
|
|
4273
|
-
function
|
|
4274
|
-
return e.length === 0 ?
|
|
4273
|
+
function no(e) {
|
|
4274
|
+
return e.length === 0 ? io : e.length === 1 ? e[0] : function(r) {
|
|
4275
4275
|
return e.reduce(function(i, n) {
|
|
4276
4276
|
return n(i);
|
|
4277
4277
|
}, r);
|
|
4278
4278
|
};
|
|
4279
4279
|
}
|
|
4280
|
-
var
|
|
4280
|
+
var Mt = function() {
|
|
4281
4281
|
function e(t) {
|
|
4282
4282
|
t && (this._subscribe = t);
|
|
4283
4283
|
}
|
|
@@ -4285,8 +4285,8 @@ var Nt = function() {
|
|
|
4285
4285
|
var r = new e();
|
|
4286
4286
|
return r.source = this, r.operator = t, r;
|
|
4287
4287
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
4288
|
-
var n = this, o =
|
|
4289
|
-
return
|
|
4288
|
+
var n = this, o = so(t) ? t : new ct(t, r, i);
|
|
4289
|
+
return Te(function() {
|
|
4290
4290
|
var a = n, s = a.operator, h = a.source;
|
|
4291
4291
|
o.add(s ? s.call(o, h) : h ? n._subscribe(o) : n._trySubscribe(o));
|
|
4292
4292
|
}), o;
|
|
@@ -4298,8 +4298,8 @@ var Nt = function() {
|
|
|
4298
4298
|
}
|
|
4299
4299
|
}, e.prototype.forEach = function(t, r) {
|
|
4300
4300
|
var i = this;
|
|
4301
|
-
return r =
|
|
4302
|
-
var a = new
|
|
4301
|
+
return r = Dt(r), new r(function(n, o) {
|
|
4302
|
+
var a = new ct({
|
|
4303
4303
|
next: function(s) {
|
|
4304
4304
|
try {
|
|
4305
4305
|
t(s);
|
|
@@ -4315,15 +4315,15 @@ var Nt = function() {
|
|
|
4315
4315
|
}, e.prototype._subscribe = function(t) {
|
|
4316
4316
|
var r;
|
|
4317
4317
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4318
|
-
}, e.prototype[
|
|
4318
|
+
}, e.prototype[ro] = function() {
|
|
4319
4319
|
return this;
|
|
4320
4320
|
}, e.prototype.pipe = function() {
|
|
4321
4321
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4322
4322
|
t[r] = arguments[r];
|
|
4323
|
-
return
|
|
4323
|
+
return no(t)(this);
|
|
4324
4324
|
}, e.prototype.toPromise = function(t) {
|
|
4325
4325
|
var r = this;
|
|
4326
|
-
return t =
|
|
4326
|
+
return t = Dt(t), new t(function(i, n) {
|
|
4327
4327
|
var o;
|
|
4328
4328
|
r.subscribe(function(a) {
|
|
4329
4329
|
return o = a;
|
|
@@ -4337,40 +4337,40 @@ var Nt = function() {
|
|
|
4337
4337
|
return new e(t);
|
|
4338
4338
|
}, e;
|
|
4339
4339
|
}();
|
|
4340
|
-
function
|
|
4340
|
+
function Dt(e) {
|
|
4341
4341
|
var t;
|
|
4342
|
-
return (t = e ??
|
|
4342
|
+
return (t = e ?? Yn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4343
4343
|
}
|
|
4344
|
-
function
|
|
4345
|
-
return e &&
|
|
4344
|
+
function oo(e) {
|
|
4345
|
+
return e && U(e.next) && U(e.error) && U(e.complete);
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4348
|
-
return e && e instanceof
|
|
4347
|
+
function so(e) {
|
|
4348
|
+
return e && e instanceof _r || oo(e) && vr(e);
|
|
4349
4349
|
}
|
|
4350
|
-
var
|
|
4350
|
+
var ao = gr(function(e) {
|
|
4351
4351
|
return function() {
|
|
4352
4352
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4353
4353
|
};
|
|
4354
|
-
}),
|
|
4355
|
-
|
|
4354
|
+
}), Er = function(e) {
|
|
4355
|
+
me(t, e);
|
|
4356
4356
|
function t() {
|
|
4357
4357
|
var r = e.call(this) || this;
|
|
4358
4358
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4359
4359
|
}
|
|
4360
4360
|
return t.prototype.lift = function(r) {
|
|
4361
|
-
var i = new
|
|
4361
|
+
var i = new $t(this, this);
|
|
4362
4362
|
return i.operator = r, i;
|
|
4363
4363
|
}, t.prototype._throwIfClosed = function() {
|
|
4364
4364
|
if (this.closed)
|
|
4365
|
-
throw new
|
|
4365
|
+
throw new ao();
|
|
4366
4366
|
}, t.prototype.next = function(r) {
|
|
4367
4367
|
var i = this;
|
|
4368
|
-
|
|
4368
|
+
Te(function() {
|
|
4369
4369
|
var n, o;
|
|
4370
4370
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4371
4371
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
4372
4372
|
try {
|
|
4373
|
-
for (var a =
|
|
4373
|
+
for (var a = at(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
4374
4374
|
var h = s.value;
|
|
4375
4375
|
h.next(r);
|
|
4376
4376
|
}
|
|
@@ -4388,7 +4388,7 @@ var oo = dr(function(e) {
|
|
|
4388
4388
|
});
|
|
4389
4389
|
}, t.prototype.error = function(r) {
|
|
4390
4390
|
var i = this;
|
|
4391
|
-
|
|
4391
|
+
Te(function() {
|
|
4392
4392
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4393
4393
|
i.hasError = i.isStopped = !0, i.thrownError = r;
|
|
4394
4394
|
for (var n = i.observers; n.length; )
|
|
@@ -4397,7 +4397,7 @@ var oo = dr(function(e) {
|
|
|
4397
4397
|
});
|
|
4398
4398
|
}, t.prototype.complete = function() {
|
|
4399
4399
|
var r = this;
|
|
4400
|
-
|
|
4400
|
+
Te(function() {
|
|
4401
4401
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4402
4402
|
r.isStopped = !0;
|
|
4403
4403
|
for (var i = r.observers; i.length; )
|
|
@@ -4419,20 +4419,20 @@ var oo = dr(function(e) {
|
|
|
4419
4419
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4420
4420
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4421
4421
|
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
4422
|
-
return o || a ?
|
|
4423
|
-
i.currentObservers = null,
|
|
4422
|
+
return o || a ? br : (this.currentObservers = null, s.push(r), new Ne(function() {
|
|
4423
|
+
i.currentObservers = null, ht(s, r);
|
|
4424
4424
|
}));
|
|
4425
4425
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4426
4426
|
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
4427
4427
|
n ? r.error(o) : a && r.complete();
|
|
4428
4428
|
}, t.prototype.asObservable = function() {
|
|
4429
|
-
var r = new
|
|
4429
|
+
var r = new Mt();
|
|
4430
4430
|
return r.source = this, r;
|
|
4431
4431
|
}, t.create = function(r, i) {
|
|
4432
|
-
return new
|
|
4432
|
+
return new $t(r, i);
|
|
4433
4433
|
}, t;
|
|
4434
|
-
}(
|
|
4435
|
-
|
|
4434
|
+
}(Mt), $t = function(e) {
|
|
4435
|
+
me(t, e);
|
|
4436
4436
|
function t(r, i) {
|
|
4437
4437
|
var n = e.call(this) || this;
|
|
4438
4438
|
return n.destination = r, n.source = i, n;
|
|
@@ -4448,17 +4448,17 @@ var oo = dr(function(e) {
|
|
|
4448
4448
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
4449
4449
|
}, t.prototype._subscribe = function(r) {
|
|
4450
4450
|
var i, n;
|
|
4451
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
4451
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : br;
|
|
4452
4452
|
}, t;
|
|
4453
|
-
}(
|
|
4453
|
+
}(Er), xr = {
|
|
4454
4454
|
now: function() {
|
|
4455
|
-
return (
|
|
4455
|
+
return (xr.delegate || Date).now();
|
|
4456
4456
|
},
|
|
4457
4457
|
delegate: void 0
|
|
4458
|
-
},
|
|
4459
|
-
|
|
4458
|
+
}, uo = function(e) {
|
|
4459
|
+
me(t, e);
|
|
4460
4460
|
function t(r, i, n) {
|
|
4461
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
4461
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = xr);
|
|
4462
4462
|
var o = e.call(this) || this;
|
|
4463
4463
|
return o._bufferSize = r, o._windowTime = i, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = i === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, i), o;
|
|
4464
4464
|
}
|
|
@@ -4478,24 +4478,25 @@ var oo = dr(function(e) {
|
|
|
4478
4478
|
u && o.splice(0, u + 1);
|
|
4479
4479
|
}
|
|
4480
4480
|
}, t;
|
|
4481
|
-
}(
|
|
4482
|
-
const
|
|
4483
|
-
if (
|
|
4484
|
-
const r = new
|
|
4485
|
-
|
|
4481
|
+
}(Er);
|
|
4482
|
+
const Ut = [], Gt = {}, lo = (e, t = 0) => {
|
|
4483
|
+
if (Ut.indexOf(e) == -1) {
|
|
4484
|
+
const r = new uo(t);
|
|
4485
|
+
Gt[e] = r, Ut.push(e);
|
|
4486
4486
|
}
|
|
4487
|
-
return
|
|
4487
|
+
return Gt[e];
|
|
4488
4488
|
};
|
|
4489
|
-
window.emWidgets = { topic:
|
|
4490
|
-
const
|
|
4489
|
+
window.emWidgets = { topic: lo };
|
|
4490
|
+
const ho = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4491
4491
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4492
|
-
|
|
4492
|
+
const Y = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4493
|
+
function co(e, t) {
|
|
4493
4494
|
if (e) {
|
|
4494
4495
|
const r = document.createElement("style");
|
|
4495
4496
|
r.innerHTML = t, e.appendChild(r);
|
|
4496
4497
|
}
|
|
4497
4498
|
}
|
|
4498
|
-
function
|
|
4499
|
+
function fo(e, t) {
|
|
4499
4500
|
if (!e || !t)
|
|
4500
4501
|
return;
|
|
4501
4502
|
const r = new URL(t);
|
|
@@ -4506,42 +4507,69 @@ function ho(e, t) {
|
|
|
4506
4507
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4507
4508
|
});
|
|
4508
4509
|
}
|
|
4509
|
-
function
|
|
4510
|
-
if (window.emMessageBus)
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4510
|
+
function mo(e, t, r, i = !1) {
|
|
4511
|
+
if (!window.emMessageBus)
|
|
4512
|
+
return;
|
|
4513
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !i)
|
|
4514
|
+
return r = po(e, t), r;
|
|
4515
|
+
window[Y] || (window[Y] = {}), r = yo(e, t);
|
|
4516
|
+
const o = r.unsubscribe.bind(r), a = () => {
|
|
4517
|
+
if (window[Y][t]) {
|
|
4518
|
+
const s = window[Y][t];
|
|
4519
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Y][t];
|
|
4520
|
+
}
|
|
4521
|
+
o();
|
|
4522
|
+
};
|
|
4523
|
+
return r.unsubscribe = a, r;
|
|
4524
|
+
}
|
|
4525
|
+
function po(e, t) {
|
|
4526
|
+
const r = document.createElement("style");
|
|
4527
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
4528
|
+
e && (r.innerHTML = i, e.appendChild(r));
|
|
4529
|
+
});
|
|
4530
|
+
}
|
|
4531
|
+
function yo(e, t) {
|
|
4532
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4533
|
+
if (!e)
|
|
4534
|
+
return;
|
|
4535
|
+
const i = e.getRootNode(), n = window[Y];
|
|
4536
|
+
let o = n[t]?.sheet;
|
|
4537
|
+
o ? n[t].refCount = n[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), n[t] = {
|
|
4538
|
+
sheet: o,
|
|
4539
|
+
refCount: 1
|
|
4514
4540
|
});
|
|
4515
|
-
|
|
4541
|
+
const a = i.adoptedStyleSheets || [];
|
|
4542
|
+
a.includes(o) || (i.adoptedStyleSheets = [...a, o]);
|
|
4543
|
+
});
|
|
4516
4544
|
}
|
|
4517
|
-
function
|
|
4518
|
-
|
|
4545
|
+
function go(e) {
|
|
4546
|
+
$r(e, "svelte-19ml84y", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}');
|
|
4519
4547
|
}
|
|
4520
|
-
function
|
|
4548
|
+
function Ft(e, t, r) {
|
|
4521
4549
|
const i = e.slice();
|
|
4522
4550
|
return i[37] = t[r], i[38] = t, i[39] = r, i;
|
|
4523
4551
|
}
|
|
4524
|
-
function
|
|
4552
|
+
function bo(e) {
|
|
4525
4553
|
let t, r, i, n = (
|
|
4526
4554
|
/*$_*/
|
|
4527
4555
|
e[9]("expandLimits") + ""
|
|
4528
|
-
), o, a, s, h, u, l, c, f, p, y =
|
|
4556
|
+
), o, a, s, h, u, l, c, f, p, y = vt(
|
|
4529
4557
|
/*lazyShowedHistoryArray*/
|
|
4530
4558
|
e[7]
|
|
4531
4559
|
), d = [];
|
|
4532
4560
|
for (let v = 0; v < y.length; v += 1)
|
|
4533
|
-
d[v] =
|
|
4561
|
+
d[v] = jt(Ft(e, y, v));
|
|
4534
4562
|
return {
|
|
4535
4563
|
c() {
|
|
4536
|
-
t =
|
|
4564
|
+
t = A("div"), r = A("div"), i = A("button"), o = $(n), a = Ze(), s = $e("svg"), h = $e("path"), u = $e("path"), l = Ze(), c = A("div");
|
|
4537
4565
|
for (let v = 0; v < d.length; v += 1)
|
|
4538
4566
|
d[v].c();
|
|
4539
|
-
E(h, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), E(h, "class", "svelte-19ml84y"), E(u, "d", "M0 0h36v36h-36z"), E(u, "fill", "none"), E(u, "class", "svelte-19ml84y"), E(s, "class", "ExpandArrow svelte-19ml84y"), E(s, "xmlns", "http://www.w3.org/2000/svg"), E(s, "width", "36"), E(s, "height", "36"), E(s, "viewBox", "0 0 36 36"), E(s, "fill", "#999"),
|
|
4567
|
+
E(h, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), E(h, "class", "svelte-19ml84y"), E(u, "d", "M0 0h36v36h-36z"), E(u, "fill", "none"), E(u, "class", "svelte-19ml84y"), E(s, "class", "ExpandArrow svelte-19ml84y"), E(s, "xmlns", "http://www.w3.org/2000/svg"), E(s, "width", "36"), E(s, "height", "36"), E(s, "viewBox", "0 0 36 36"), E(s, "fill", "#999"), be(
|
|
4540
4568
|
s,
|
|
4541
4569
|
"extended",
|
|
4542
4570
|
/*extended*/
|
|
4543
4571
|
e[8]
|
|
4544
|
-
), E(i, "class", "ExpandButton svelte-19ml84y"), E(c, "class", "HistoryDisplayArea svelte-19ml84y"),
|
|
4572
|
+
), E(i, "class", "ExpandButton svelte-19ml84y"), E(c, "class", "HistoryDisplayArea svelte-19ml84y"), be(
|
|
4545
4573
|
c,
|
|
4546
4574
|
"hidden",
|
|
4547
4575
|
/*hidden*/
|
|
@@ -4549,43 +4577,43 @@ function mo(e) {
|
|
|
4549
4577
|
), E(r, "class", "HistoryWrapper " + /*isDesktop*/
|
|
4550
4578
|
(e[10] ? "Desktop" : "") + " svelte-19ml84y"), E(t, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
|
|
4551
4579
|
},
|
|
4552
|
-
m(v,
|
|
4553
|
-
W(v, t,
|
|
4580
|
+
m(v, P) {
|
|
4581
|
+
W(v, t, P), x(t, r), x(r, i), x(i, o), x(i, a), x(i, s), x(s, h), x(s, u), x(r, l), x(r, c);
|
|
4554
4582
|
for (let g = 0; g < d.length; g += 1)
|
|
4555
4583
|
d[g] && d[g].m(c, null);
|
|
4556
|
-
f || (p =
|
|
4584
|
+
f || (p = jr(
|
|
4557
4585
|
i,
|
|
4558
4586
|
"click",
|
|
4559
4587
|
/*toggleHistoryDisplayArea*/
|
|
4560
4588
|
e[11]
|
|
4561
4589
|
), f = !0);
|
|
4562
4590
|
},
|
|
4563
|
-
p(v,
|
|
4564
|
-
if (
|
|
4591
|
+
p(v, P) {
|
|
4592
|
+
if (P[0] & /*$_*/
|
|
4565
4593
|
512 && n !== (n = /*$_*/
|
|
4566
|
-
v[9]("expandLimits") + "") && j(o, n),
|
|
4567
|
-
256 &&
|
|
4594
|
+
v[9]("expandLimits") + "") && j(o, n), P[0] & /*extended*/
|
|
4595
|
+
256 && be(
|
|
4568
4596
|
s,
|
|
4569
4597
|
"extended",
|
|
4570
4598
|
/*extended*/
|
|
4571
4599
|
v[8]
|
|
4572
|
-
),
|
|
4600
|
+
), P[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4573
4601
|
650) {
|
|
4574
|
-
y =
|
|
4602
|
+
y = vt(
|
|
4575
4603
|
/*lazyShowedHistoryArray*/
|
|
4576
4604
|
v[7]
|
|
4577
4605
|
);
|
|
4578
4606
|
let g;
|
|
4579
4607
|
for (g = 0; g < y.length; g += 1) {
|
|
4580
|
-
const
|
|
4581
|
-
d[g] ? d[g].p(
|
|
4608
|
+
const H = Ft(v, y, g);
|
|
4609
|
+
d[g] ? d[g].p(H, P) : (d[g] = jt(H), d[g].c(), d[g].m(c, null));
|
|
4582
4610
|
}
|
|
4583
4611
|
for (; g < d.length; g += 1)
|
|
4584
4612
|
d[g].d(1);
|
|
4585
4613
|
d.length = y.length;
|
|
4586
4614
|
}
|
|
4587
|
-
|
|
4588
|
-
32 &&
|
|
4615
|
+
P[0] & /*hidden*/
|
|
4616
|
+
32 && be(
|
|
4589
4617
|
c,
|
|
4590
4618
|
"hidden",
|
|
4591
4619
|
/*hidden*/
|
|
@@ -4593,14 +4621,14 @@ function mo(e) {
|
|
|
4593
4621
|
);
|
|
4594
4622
|
},
|
|
4595
4623
|
d(v) {
|
|
4596
|
-
v && k(t),
|
|
4624
|
+
v && k(t), Fr(d, v), f = !1, p();
|
|
4597
4625
|
}
|
|
4598
4626
|
};
|
|
4599
4627
|
}
|
|
4600
|
-
function
|
|
4628
|
+
function vo(e) {
|
|
4601
4629
|
return { c: I, m: I, p: I, d: I };
|
|
4602
4630
|
}
|
|
4603
|
-
function
|
|
4631
|
+
function _o(e) {
|
|
4604
4632
|
let t, r = (
|
|
4605
4633
|
/*lang*/
|
|
4606
4634
|
(e[0] ? (
|
|
@@ -4610,7 +4638,7 @@ function yo(e) {
|
|
|
4610
4638
|
), i;
|
|
4611
4639
|
return {
|
|
4612
4640
|
c() {
|
|
4613
|
-
t =
|
|
4641
|
+
t = A("p"), i = $(r), E(t, "class", "svelte-19ml84y");
|
|
4614
4642
|
},
|
|
4615
4643
|
m(n, o) {
|
|
4616
4644
|
W(n, t, o), x(t, i);
|
|
@@ -4628,7 +4656,7 @@ function yo(e) {
|
|
|
4628
4656
|
}
|
|
4629
4657
|
};
|
|
4630
4658
|
}
|
|
4631
|
-
function
|
|
4659
|
+
function Eo(e) {
|
|
4632
4660
|
let t, r, i, n = (
|
|
4633
4661
|
/*history*/
|
|
4634
4662
|
e[37].type + ""
|
|
@@ -4641,7 +4669,7 @@ function go(e) {
|
|
|
4641
4669
|
), c;
|
|
4642
4670
|
return {
|
|
4643
4671
|
c() {
|
|
4644
|
-
t =
|
|
4672
|
+
t = A("div"), r = A("span"), i = A("span"), o = $(n), a = A("span"), h = $(s), u = A("span"), c = $(l), E(i, "class", "LimitType svelte-19ml84y"), E(a, "class", "LimitAmountPeriod svelte-19ml84y"), E(r, "class", "GeneralLimitInformation svelte-19ml84y"), E(u, "class", "DateLimitInformation svelte-19ml84y"), E(t, "class", "HistoryRow svelte-19ml84y");
|
|
4645
4673
|
},
|
|
4646
4674
|
m(f, p) {
|
|
4647
4675
|
W(f, t, p), x(t, r), x(r, i), x(i, o), x(r, a), x(a, h), x(t, u), x(u, c);
|
|
@@ -4660,7 +4688,7 @@ function go(e) {
|
|
|
4660
4688
|
}
|
|
4661
4689
|
};
|
|
4662
4690
|
}
|
|
4663
|
-
function
|
|
4691
|
+
function xo(e) {
|
|
4664
4692
|
let t, r, i, n = (
|
|
4665
4693
|
/*history*/
|
|
4666
4694
|
e[37].type + ""
|
|
@@ -4673,7 +4701,7 @@ function bo(e) {
|
|
|
4673
4701
|
), c;
|
|
4674
4702
|
return {
|
|
4675
4703
|
c() {
|
|
4676
|
-
t =
|
|
4704
|
+
t = A("div"), r = A("span"), i = A("span"), o = $(n), a = A("span"), h = $(s), u = A("span"), c = $(l), E(i, "class", "LimitType svelte-19ml84y"), E(a, "class", "LimitAmountPeriod svelte-19ml84y"), E(r, "class", "GeneralLimitInformation svelte-19ml84y"), E(u, "class", "DateLimitInformation svelte-19ml84y"), E(t, "class", "HistoryRow svelte-19ml84y");
|
|
4677
4705
|
},
|
|
4678
4706
|
m(f, p) {
|
|
4679
4707
|
W(f, t, p), x(t, r), x(r, i), x(i, o), x(r, a), x(a, h), x(t, u), x(u, c);
|
|
@@ -4692,7 +4720,7 @@ function bo(e) {
|
|
|
4692
4720
|
}
|
|
4693
4721
|
};
|
|
4694
4722
|
}
|
|
4695
|
-
function
|
|
4723
|
+
function jt(e) {
|
|
4696
4724
|
let t, r, i, n = (
|
|
4697
4725
|
/*index*/
|
|
4698
4726
|
e[39]
|
|
@@ -4700,7 +4728,7 @@ function Gt(e) {
|
|
|
4700
4728
|
function o(l, c) {
|
|
4701
4729
|
return (
|
|
4702
4730
|
/*history*/
|
|
4703
|
-
l[37].removed ?
|
|
4731
|
+
l[37].removed ? xo : Eo
|
|
4704
4732
|
);
|
|
4705
4733
|
}
|
|
4706
4734
|
let a = o(e), s = a(e);
|
|
@@ -4713,7 +4741,7 @@ function Gt(e) {
|
|
|
4713
4741
|
);
|
|
4714
4742
|
return {
|
|
4715
4743
|
c() {
|
|
4716
|
-
t =
|
|
4744
|
+
t = A("div"), s.c(), r = Ze(), E(t, "class", i = gt(
|
|
4717
4745
|
/*index*/
|
|
4718
4746
|
e[39] > +/*numberofentries*/
|
|
4719
4747
|
e[1] ? "LimitContainer" : ""
|
|
@@ -4724,7 +4752,7 @@ function Gt(e) {
|
|
|
4724
4752
|
},
|
|
4725
4753
|
p(l, c) {
|
|
4726
4754
|
e = l, a === (a = o(e)) && s ? s.p(e, c) : (s.d(1), s = a(e), s && (s.c(), s.m(t, r))), c[0] & /*numberofentries*/
|
|
4727
|
-
2 && i !== (i =
|
|
4755
|
+
2 && i !== (i = gt(
|
|
4728
4756
|
/*index*/
|
|
4729
4757
|
e[39] > +/*numberofentries*/
|
|
4730
4758
|
e[1] ? "LimitContainer" : ""
|
|
@@ -4737,21 +4765,21 @@ function Gt(e) {
|
|
|
4737
4765
|
}
|
|
4738
4766
|
};
|
|
4739
4767
|
}
|
|
4740
|
-
function
|
|
4768
|
+
function So(e) {
|
|
4741
4769
|
let t;
|
|
4742
4770
|
function r(o, a) {
|
|
4743
4771
|
return (
|
|
4744
4772
|
/*hasErrors*/
|
|
4745
|
-
o[6] ?
|
|
4773
|
+
o[6] ? _o : (
|
|
4746
4774
|
/*isLoading*/
|
|
4747
|
-
o[4] ?
|
|
4775
|
+
o[4] ? vo : bo
|
|
4748
4776
|
)
|
|
4749
4777
|
);
|
|
4750
4778
|
}
|
|
4751
4779
|
let i = r(e), n = i(e);
|
|
4752
4780
|
return {
|
|
4753
4781
|
c() {
|
|
4754
|
-
t =
|
|
4782
|
+
t = A("div"), n.c(), E(t, "class", "svelte-19ml84y");
|
|
4755
4783
|
},
|
|
4756
4784
|
m(o, a) {
|
|
4757
4785
|
W(o, t, a), n.m(t, null), e[23](t);
|
|
@@ -4766,45 +4794,45 @@ function vo(e) {
|
|
|
4766
4794
|
}
|
|
4767
4795
|
};
|
|
4768
4796
|
}
|
|
4769
|
-
function
|
|
4797
|
+
function To(e, t, r) {
|
|
4770
4798
|
let i;
|
|
4771
|
-
|
|
4772
|
-
let n = window.navigator.userAgent, o = !
|
|
4773
|
-
const
|
|
4774
|
-
fetch(
|
|
4775
|
-
Object.keys(
|
|
4776
|
-
|
|
4799
|
+
Dr(e, Zn, (m) => r(9, i = m));
|
|
4800
|
+
let n = window.navigator.userAgent, o = !ho(n), { lang: a = "" } = t, { userid: s = "" } = t, { session: h = "" } = t, { endpoint: u = "" } = t, { apiversion: l = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: v } = t, { translationurl: P = "" } = t, g, H, B = new Array(), R = parseInt(c, 10), G = !1, V = !0, pe = [], de = [], ye = !0, Re = !1, oe = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4801
|
+
const Sr = () => {
|
|
4802
|
+
fetch(P).then((S) => S.json()).then((S) => {
|
|
4803
|
+
Object.keys(S).forEach((N) => {
|
|
4804
|
+
Ct(N, S[N]);
|
|
4777
4805
|
});
|
|
4778
|
-
}).catch((
|
|
4779
|
-
console.log(
|
|
4806
|
+
}).catch((S) => {
|
|
4807
|
+
console.log(S);
|
|
4780
4808
|
});
|
|
4781
4809
|
};
|
|
4782
|
-
Object.keys(
|
|
4783
|
-
|
|
4810
|
+
Object.keys(Xe).forEach((m) => {
|
|
4811
|
+
Ct(m, Xe[m]);
|
|
4784
4812
|
});
|
|
4785
|
-
const
|
|
4786
|
-
let m = l === "gmcore" ? `/v2/player/${s}/transactions/limit` : `/v1/player/${s}/limits/monetary/history`,
|
|
4787
|
-
|
|
4788
|
-
let
|
|
4813
|
+
const Tr = () => {
|
|
4814
|
+
let m = l === "gmcore" ? `/v2/player/${s}/transactions/limit` : `/v1/player/${s}/limits/monetary/history`, S = new URL(m, u);
|
|
4815
|
+
S.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), S.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), S.searchParams.append("limit", "10000");
|
|
4816
|
+
let N = {
|
|
4789
4817
|
method: "GET",
|
|
4790
4818
|
headers: { "X-SessionID": h }
|
|
4791
4819
|
};
|
|
4792
|
-
fetch(
|
|
4793
|
-
if (
|
|
4794
|
-
throw r(4,
|
|
4795
|
-
return
|
|
4820
|
+
fetch(S.href, N).then((w) => {
|
|
4821
|
+
if (w.status >= 300)
|
|
4822
|
+
throw r(4, V = !1), r(6, G = !0), new Error("There was an error fetching the limits");
|
|
4823
|
+
return w.json();
|
|
4796
4824
|
}).then(
|
|
4797
|
-
(
|
|
4798
|
-
|
|
4825
|
+
(w) => {
|
|
4826
|
+
w.length && (pe = Lr(w), r(7, de = pe.slice(0, R))), r(4, V = !1);
|
|
4799
4827
|
},
|
|
4800
|
-
(
|
|
4801
|
-
console.error("There was an error",
|
|
4828
|
+
(w) => {
|
|
4829
|
+
console.error("There was an error", w), r(6, G = !0);
|
|
4802
4830
|
}
|
|
4803
4831
|
);
|
|
4804
|
-
},
|
|
4805
|
-
const
|
|
4806
|
-
return m.map((
|
|
4807
|
-
let
|
|
4832
|
+
}, Lr = (m) => {
|
|
4833
|
+
const S = !!Xe[a];
|
|
4834
|
+
return m.map((w) => {
|
|
4835
|
+
let D = {
|
|
4808
4836
|
amount: "",
|
|
4809
4837
|
currency: "",
|
|
4810
4838
|
date: "",
|
|
@@ -4812,82 +4840,82 @@ function _o(e, t, r) {
|
|
|
4812
4840
|
type: "",
|
|
4813
4841
|
removed: !1
|
|
4814
4842
|
};
|
|
4815
|
-
return
|
|
4843
|
+
return D.amount = wr(w), D.currency = S ? oe[w.limitCurrencyCode] : w.limitCurrencyCode, D.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(w.limitDate)), D.period = i(`${w.limitPeriod.toLowerCase()}`), D.type = l === "gmcore" ? i(`historyLimitType${w.limitType.split(" ")[0]}`) : i(`historyLimitType${w.limitType.split(" ")[0]}`) + " " + i(`historyProductType${w.limitProductType}`), D.removed = w.limitAmount === -1, D;
|
|
4816
4844
|
});
|
|
4817
|
-
},
|
|
4818
|
-
let
|
|
4845
|
+
}, wr = (m) => {
|
|
4846
|
+
let S = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
4819
4847
|
if (!p) {
|
|
4820
|
-
let
|
|
4821
|
-
return `${
|
|
4848
|
+
let Rr = oe[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
4849
|
+
return `${S}${Rr}`;
|
|
4822
4850
|
}
|
|
4823
4851
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4824
|
-
const
|
|
4825
|
-
let
|
|
4826
|
-
const [
|
|
4827
|
-
let [
|
|
4828
|
-
return
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
),
|
|
4832
|
-
},
|
|
4833
|
-
r(5,
|
|
4852
|
+
const N = S.match(/\{(\d+)decimals\}/), w = N ? parseInt(N[1], 10) : 2, D = N ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4853
|
+
let ge = parseFloat(m.limitAmount).toFixed(w);
|
|
4854
|
+
const [Cr, Me] = p.includes(".") ? [",", "."] : [".", ","];
|
|
4855
|
+
let [De, Nr] = ge.split(".");
|
|
4856
|
+
return De = De.replace(/\B(?=(\d{3})+(?!\d))/g, Cr), ge = `${De}${Me}${Nr}`, S = S.replace("{currency}", oe[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", ge.split(Me)[0]).replace(
|
|
4857
|
+
D,
|
|
4858
|
+
ge.split(Me)[1]
|
|
4859
|
+
), S;
|
|
4860
|
+
}, Ar = () => {
|
|
4861
|
+
r(5, ye = !ye), r(8, Re = !Re);
|
|
4834
4862
|
};
|
|
4835
|
-
let
|
|
4836
|
-
m.forEach((
|
|
4837
|
-
|
|
4863
|
+
let dt = new IntersectionObserver((m) => {
|
|
4864
|
+
m.forEach((S) => {
|
|
4865
|
+
S.isIntersecting && (R += parseInt(c, 10) || 10, de.length < pe.length && r(7, de = pe.slice(0, R)));
|
|
4838
4866
|
});
|
|
4839
4867
|
});
|
|
4840
|
-
const
|
|
4841
|
-
|
|
4842
|
-
},
|
|
4868
|
+
const Pr = () => {
|
|
4869
|
+
dt.observe(B[B.length - 1]);
|
|
4870
|
+
}, Hr = () => {
|
|
4843
4871
|
if (!f)
|
|
4844
4872
|
return;
|
|
4845
4873
|
let m = {};
|
|
4846
|
-
f.split(",").forEach((
|
|
4847
|
-
let
|
|
4848
|
-
m[
|
|
4849
|
-
}),
|
|
4850
|
-
},
|
|
4851
|
-
|
|
4874
|
+
f.split(",").forEach((S) => {
|
|
4875
|
+
let N = S.split(":");
|
|
4876
|
+
m[N[0].trim()] = N[1].trim();
|
|
4877
|
+
}), oe = { ...oe, ...m };
|
|
4878
|
+
}, Or = () => {
|
|
4879
|
+
Qn(a);
|
|
4852
4880
|
};
|
|
4853
|
-
|
|
4854
|
-
|
|
4881
|
+
Xr(() => () => {
|
|
4882
|
+
dt.unobserve(B[B.length - 1]);
|
|
4855
4883
|
});
|
|
4856
|
-
function
|
|
4857
|
-
|
|
4858
|
-
S
|
|
4884
|
+
function Ir(m, S) {
|
|
4885
|
+
Le[m ? "unshift" : "push"](() => {
|
|
4886
|
+
B[S] = m, r(3, B);
|
|
4859
4887
|
});
|
|
4860
4888
|
}
|
|
4861
|
-
function
|
|
4862
|
-
|
|
4889
|
+
function Br(m) {
|
|
4890
|
+
Le[m ? "unshift" : "push"](() => {
|
|
4863
4891
|
g = m, r(2, g);
|
|
4864
4892
|
});
|
|
4865
4893
|
}
|
|
4866
4894
|
return e.$$set = (m) => {
|
|
4867
|
-
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13, h = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, l = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "mbsource" in m && r(20, v = m.mbsource), "translationurl" in m && r(21,
|
|
4895
|
+
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13, h = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, l = m.apiversion), "numberofentries" in m && r(1, c = m.numberofentries), "customcurrencysymbols" in m && r(16, f = m.customcurrencysymbols), "limitformat" in m && r(17, p = m.limitformat), "clientstyling" in m && r(18, y = m.clientstyling), "clientstylingurl" in m && r(19, d = m.clientstylingurl), "mbsource" in m && r(20, v = m.mbsource), "translationurl" in m && r(21, P = m.translationurl);
|
|
4868
4896
|
}, e.$$.update = () => {
|
|
4869
4897
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
4870
|
-
65536 && f &&
|
|
4871
|
-
61440 && u && s && h && l &&
|
|
4872
|
-
56 &&
|
|
4873
|
-
1 && a &&
|
|
4874
|
-
262148 && y && g &&
|
|
4875
|
-
524292 && d && g &&
|
|
4876
|
-
1048580 && v && g &&
|
|
4877
|
-
2097156 &&
|
|
4898
|
+
65536 && f && Hr(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
4899
|
+
61440 && u && s && h && l && Tr(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
4900
|
+
56 && B[0] && !V && !ye && Pr(), e.$$.dirty[0] & /*lang*/
|
|
4901
|
+
1 && a && Or(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4902
|
+
262148 && y && g && co(g, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4903
|
+
524292 && d && g && fo(g, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4904
|
+
1048580 && v && g && mo(g, `${v}.Style`, H), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
4905
|
+
2097156 && P && g && Sr();
|
|
4878
4906
|
}, [
|
|
4879
4907
|
a,
|
|
4880
4908
|
c,
|
|
4881
4909
|
g,
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4910
|
+
B,
|
|
4911
|
+
V,
|
|
4912
|
+
ye,
|
|
4913
|
+
G,
|
|
4914
|
+
de,
|
|
4915
|
+
Re,
|
|
4888
4916
|
i,
|
|
4889
4917
|
o,
|
|
4890
|
-
|
|
4918
|
+
Ar,
|
|
4891
4919
|
s,
|
|
4892
4920
|
h,
|
|
4893
4921
|
u,
|
|
@@ -4897,19 +4925,19 @@ function _o(e, t, r) {
|
|
|
4897
4925
|
y,
|
|
4898
4926
|
d,
|
|
4899
4927
|
v,
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4928
|
+
P,
|
|
4929
|
+
Ir,
|
|
4930
|
+
Br
|
|
4903
4931
|
];
|
|
4904
4932
|
}
|
|
4905
|
-
class
|
|
4933
|
+
class Lo extends ni {
|
|
4906
4934
|
constructor(t) {
|
|
4907
|
-
super(),
|
|
4935
|
+
super(), ri(
|
|
4908
4936
|
this,
|
|
4909
4937
|
t,
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4938
|
+
To,
|
|
4939
|
+
So,
|
|
4940
|
+
Vt,
|
|
4913
4941
|
{
|
|
4914
4942
|
lang: 0,
|
|
4915
4943
|
userid: 12,
|
|
@@ -4924,7 +4952,7 @@ class Eo extends ri {
|
|
|
4924
4952
|
mbsource: 20,
|
|
4925
4953
|
translationurl: 21
|
|
4926
4954
|
},
|
|
4927
|
-
|
|
4955
|
+
go,
|
|
4928
4956
|
[-1, -1]
|
|
4929
4957
|
);
|
|
4930
4958
|
}
|
|
@@ -4932,76 +4960,76 @@ class Eo extends ri {
|
|
|
4932
4960
|
return this.$$.ctx[0];
|
|
4933
4961
|
}
|
|
4934
4962
|
set lang(t) {
|
|
4935
|
-
this.$$set({ lang: t }),
|
|
4963
|
+
this.$$set({ lang: t }), C();
|
|
4936
4964
|
}
|
|
4937
4965
|
get userid() {
|
|
4938
4966
|
return this.$$.ctx[12];
|
|
4939
4967
|
}
|
|
4940
4968
|
set userid(t) {
|
|
4941
|
-
this.$$set({ userid: t }),
|
|
4969
|
+
this.$$set({ userid: t }), C();
|
|
4942
4970
|
}
|
|
4943
4971
|
get session() {
|
|
4944
4972
|
return this.$$.ctx[13];
|
|
4945
4973
|
}
|
|
4946
4974
|
set session(t) {
|
|
4947
|
-
this.$$set({ session: t }),
|
|
4975
|
+
this.$$set({ session: t }), C();
|
|
4948
4976
|
}
|
|
4949
4977
|
get endpoint() {
|
|
4950
4978
|
return this.$$.ctx[14];
|
|
4951
4979
|
}
|
|
4952
4980
|
set endpoint(t) {
|
|
4953
|
-
this.$$set({ endpoint: t }),
|
|
4981
|
+
this.$$set({ endpoint: t }), C();
|
|
4954
4982
|
}
|
|
4955
4983
|
get apiversion() {
|
|
4956
4984
|
return this.$$.ctx[15];
|
|
4957
4985
|
}
|
|
4958
4986
|
set apiversion(t) {
|
|
4959
|
-
this.$$set({ apiversion: t }),
|
|
4987
|
+
this.$$set({ apiversion: t }), C();
|
|
4960
4988
|
}
|
|
4961
4989
|
get numberofentries() {
|
|
4962
4990
|
return this.$$.ctx[1];
|
|
4963
4991
|
}
|
|
4964
4992
|
set numberofentries(t) {
|
|
4965
|
-
this.$$set({ numberofentries: t }),
|
|
4993
|
+
this.$$set({ numberofentries: t }), C();
|
|
4966
4994
|
}
|
|
4967
4995
|
get customcurrencysymbols() {
|
|
4968
4996
|
return this.$$.ctx[16];
|
|
4969
4997
|
}
|
|
4970
4998
|
set customcurrencysymbols(t) {
|
|
4971
|
-
this.$$set({ customcurrencysymbols: t }),
|
|
4999
|
+
this.$$set({ customcurrencysymbols: t }), C();
|
|
4972
5000
|
}
|
|
4973
5001
|
get limitformat() {
|
|
4974
5002
|
return this.$$.ctx[17];
|
|
4975
5003
|
}
|
|
4976
5004
|
set limitformat(t) {
|
|
4977
|
-
this.$$set({ limitformat: t }),
|
|
5005
|
+
this.$$set({ limitformat: t }), C();
|
|
4978
5006
|
}
|
|
4979
5007
|
get clientstyling() {
|
|
4980
5008
|
return this.$$.ctx[18];
|
|
4981
5009
|
}
|
|
4982
5010
|
set clientstyling(t) {
|
|
4983
|
-
this.$$set({ clientstyling: t }),
|
|
5011
|
+
this.$$set({ clientstyling: t }), C();
|
|
4984
5012
|
}
|
|
4985
5013
|
get clientstylingurl() {
|
|
4986
5014
|
return this.$$.ctx[19];
|
|
4987
5015
|
}
|
|
4988
5016
|
set clientstylingurl(t) {
|
|
4989
|
-
this.$$set({ clientstylingurl: t }),
|
|
5017
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4990
5018
|
}
|
|
4991
5019
|
get mbsource() {
|
|
4992
5020
|
return this.$$.ctx[20];
|
|
4993
5021
|
}
|
|
4994
5022
|
set mbsource(t) {
|
|
4995
|
-
this.$$set({ mbsource: t }),
|
|
5023
|
+
this.$$set({ mbsource: t }), C();
|
|
4996
5024
|
}
|
|
4997
5025
|
get translationurl() {
|
|
4998
5026
|
return this.$$.ctx[21];
|
|
4999
5027
|
}
|
|
5000
5028
|
set translationurl(t) {
|
|
5001
|
-
this.$$set({ translationurl: t }),
|
|
5029
|
+
this.$$set({ translationurl: t }), C();
|
|
5002
5030
|
}
|
|
5003
5031
|
}
|
|
5004
|
-
|
|
5032
|
+
ii(Lo, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5005
5033
|
export {
|
|
5006
|
-
|
|
5034
|
+
Lo as P
|
|
5007
5035
|
};
|