@everymatrix/player-account-gaming-limits-wrapper-2 1.74.3 → 1.74.4
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-CJC7ow27.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsHistory2-D18-oBtE.js → PlayerAccountGamingLimitsHistory2-IzKR8ALi.js} +916 -902
- package/components/{PlayerAccountGamingLimitsHistory2-D0vDUU9k.js → PlayerAccountGamingLimitsHistory2-fnp_hf0j.js} +848 -834
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CTGEioJz.js → PlayerAccountGamingLimitsPage2Gm16-BPo5joen.js} +28 -28
- package/components/{PlayerAccountGamingLimitsPage2Gm16-D1HmEdWc.cjs → PlayerAccountGamingLimitsPage2Gm16-Bnkpdvk9.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Bj0JWzFU.js → PlayerAccountGamingLimitsPage2Gm16-DfTXIKEb.js} +39 -39
- package/components/{PlayerAccountGamingLimitsWrapper2-Bthc83mu.js → PlayerAccountGamingLimitsWrapper2-C2QBpZYS.js} +6 -6
- package/components/{PlayerAccountGamingLimitsWrapper2-M0gzGy0a.js → PlayerAccountGamingLimitsWrapper2-Ci-VYOja.js} +6 -6
- package/components/{PlayerAccountGamingLimitsWrapper2-DbUC6xSX.cjs → PlayerAccountGamingLimitsWrapper2-Dd5nJ0ng.cjs} +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-wrapper-2.js +1 -1
- package/esnext/player-account-gaming-limits-wrapper-2.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-b2193545-BbCeNxUG.js → index-b2193545-BtPvM93e.js} +176 -176
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/{index-b2193545-C9PH-6qK.js → index-b2193545-D_KBbaD-.js} +169 -169
- package/stencil/{ui-skeleton-bhljBTS7.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-CJbkvgG7.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-BKDs0-7H.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CXlvqczG.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-ZB0isFAq.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-gun6WX2F.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/PlayerAccountGamingLimitsHistory2-CTnjW3xp.cjs +0 -18
- package/stencil/index-b2193545-D-u-gzj3.cjs +0 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var $e = (e, t, r) => t in e ?
|
|
1
|
+
var kr = Object.defineProperty, Vr = Object.defineProperties;
|
|
2
|
+
var Wr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Xr = Object.prototype.hasOwnProperty, zr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $e = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, be = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Xr.call(t, r) && $e(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
zr.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, bt = (e, t) => Vr(e, Wr(t));
|
|
13
13
|
var I = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
15
|
-
var
|
|
14
|
+
var vt = (e, t, r) => new Promise((i, n) => {
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
n(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
n(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Zr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,25 +37,25 @@ function Wr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function zt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function _t() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function ne(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(zt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ct(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Zt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Qr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Qt(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const i of t)
|
|
61
61
|
i(void 0);
|
|
@@ -64,40 +64,40 @@ function zt(e, ...t) {
|
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function Yr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(Qt(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Mo(e, t, r, i) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const n =
|
|
72
|
+
const n = Yt(e, t, r, i);
|
|
73
73
|
return e[0](n);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && i ?
|
|
76
|
+
function Yt(e, t, r, i) {
|
|
77
|
+
return e[1] && i ? Zr(r.ctx.slice(), e[1](i(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ro(e, t, r, i) {
|
|
80
80
|
if (e[2] && i) {
|
|
81
81
|
const n = e[2](i(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
83
83
|
return n;
|
|
84
84
|
if (typeof n == "object") {
|
|
85
|
-
const
|
|
86
|
-
for (let
|
|
87
|
-
s
|
|
88
|
-
return
|
|
85
|
+
const o = [], a = Math.max(t.dirty.length, n.length);
|
|
86
|
+
for (let s = 0; s < a; s += 1)
|
|
87
|
+
o[s] = t.dirty[s] | n[s];
|
|
88
|
+
return o;
|
|
89
89
|
}
|
|
90
90
|
return t.dirty | n;
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Do(e, t, r, i, n, o) {
|
|
95
95
|
if (n) {
|
|
96
|
-
const
|
|
97
|
-
e.p(
|
|
96
|
+
const a = Yt(t, r, i, o);
|
|
97
|
+
e.p(a, n);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Uo(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let i = 0; i < r; i++)
|
|
@@ -106,20 +106,20 @@ function Ms(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Et(e) {
|
|
110
110
|
return e == null ? "" : e;
|
|
111
111
|
}
|
|
112
112
|
function T(e, t) {
|
|
113
113
|
e.appendChild(t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const i =
|
|
115
|
+
function Jr(e, t, r) {
|
|
116
|
+
const i = qr(e);
|
|
117
117
|
if (!i.getElementById(t)) {
|
|
118
118
|
const n = A("style");
|
|
119
|
-
n.id = t, n.textContent = r,
|
|
119
|
+
n.id = t, n.textContent = r, Kr(i, n);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function qr(e) {
|
|
123
123
|
if (!e)
|
|
124
124
|
return document;
|
|
125
125
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -129,7 +129,7 @@ function Qr(e) {
|
|
|
129
129
|
t
|
|
130
130
|
) : e.ownerDocument;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Kr(e, t) {
|
|
133
133
|
return T(
|
|
134
134
|
/** @type {Document} */
|
|
135
135
|
e.head || e,
|
|
@@ -142,7 +142,7 @@ function W(e, t, r) {
|
|
|
142
142
|
function F(e) {
|
|
143
143
|
e.parentNode && e.parentNode.removeChild(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ei(e, t) {
|
|
146
146
|
for (let r = 0; r < e.length; r += 1)
|
|
147
147
|
e[r] && e[r].d(t);
|
|
148
148
|
}
|
|
@@ -155,39 +155,39 @@ function xe(e) {
|
|
|
155
155
|
function R(e) {
|
|
156
156
|
return document.createTextNode(e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Qe() {
|
|
159
159
|
return R(" ");
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function $o() {
|
|
162
162
|
return R("");
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ti(e, t, r, i) {
|
|
165
165
|
return e.addEventListener(t, r, i), () => e.removeEventListener(t, r, i);
|
|
166
166
|
}
|
|
167
167
|
function x(e, t, r) {
|
|
168
168
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Go(e, t, r) {
|
|
171
171
|
const i = t.toLowerCase();
|
|
172
172
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : x(e, t, r);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Fo(e) {
|
|
175
175
|
return e === "" ? null : +e;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ri(e) {
|
|
178
178
|
return Array.from(e.childNodes);
|
|
179
179
|
}
|
|
180
180
|
function V(e, t) {
|
|
181
181
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
182
182
|
t);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function jo(e, t) {
|
|
185
185
|
e.value = t == null ? "" : t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function ko(e, t, r, i) {
|
|
188
188
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Vo(e, t, r) {
|
|
191
191
|
for (let i = 0; i < e.options.length; i += 1) {
|
|
192
192
|
const n = e.options[i];
|
|
193
193
|
if (n.__value === t) {
|
|
@@ -197,14 +197,14 @@ function Fs(e, t, r) {
|
|
|
197
197
|
}
|
|
198
198
|
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Wo(e) {
|
|
201
201
|
const t = e.querySelector(":checked");
|
|
202
202
|
return t && t.__value;
|
|
203
203
|
}
|
|
204
204
|
function ve(e, t, r) {
|
|
205
205
|
e.classList.toggle(t, !!r);
|
|
206
206
|
}
|
|
207
|
-
class
|
|
207
|
+
class Xo {
|
|
208
208
|
constructor(t = !1) {
|
|
209
209
|
/**
|
|
210
210
|
* @private
|
|
@@ -274,7 +274,7 @@ class ks {
|
|
|
274
274
|
this.n.forEach(F);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function ii(e) {
|
|
278
278
|
const t = {};
|
|
279
279
|
return e.childNodes.forEach(
|
|
280
280
|
/** @param {Element} node */
|
|
@@ -287,22 +287,22 @@ let ce;
|
|
|
287
287
|
function he(e) {
|
|
288
288
|
ce = e;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function ni() {
|
|
291
291
|
if (!ce)
|
|
292
292
|
throw new Error("Function called outside component initialization");
|
|
293
293
|
return ce;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
295
|
+
function oi(e) {
|
|
296
|
+
ni().$$.on_mount.push(e);
|
|
297
297
|
}
|
|
298
298
|
const J = [], Pe = [];
|
|
299
299
|
let q = [];
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
function
|
|
303
|
-
|
|
300
|
+
const xt = [], si = /* @__PURE__ */ Promise.resolve();
|
|
301
|
+
let Ye = !1;
|
|
302
|
+
function ai() {
|
|
303
|
+
Ye || (Ye = !0, si.then(C));
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Je(e) {
|
|
306
306
|
q.push(e);
|
|
307
307
|
}
|
|
308
308
|
const Ge = /* @__PURE__ */ new Set();
|
|
@@ -315,7 +315,7 @@ function C() {
|
|
|
315
315
|
try {
|
|
316
316
|
for (; Q < J.length; ) {
|
|
317
317
|
const t = J[Q];
|
|
318
|
-
Q++, he(t),
|
|
318
|
+
Q++, he(t), ui(t.$$);
|
|
319
319
|
}
|
|
320
320
|
} catch (t) {
|
|
321
321
|
throw J.length = 0, Q = 0, t;
|
|
@@ -328,24 +328,24 @@ function C() {
|
|
|
328
328
|
}
|
|
329
329
|
q.length = 0;
|
|
330
330
|
} while (J.length);
|
|
331
|
-
for (;
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
for (; xt.length; )
|
|
332
|
+
xt.pop()();
|
|
333
|
+
Ye = !1, Ge.clear(), he(e);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function ui(e) {
|
|
336
336
|
if (e.fragment !== null) {
|
|
337
337
|
e.update(), ne(e.before_update);
|
|
338
338
|
const t = e.dirty;
|
|
339
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
339
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function li(e) {
|
|
343
343
|
const t = [], r = [];
|
|
344
344
|
q.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), q = t;
|
|
345
345
|
}
|
|
346
346
|
const Te = /* @__PURE__ */ new Set();
|
|
347
347
|
let z;
|
|
348
|
-
function
|
|
348
|
+
function zo() {
|
|
349
349
|
z = {
|
|
350
350
|
r: 0,
|
|
351
351
|
c: [],
|
|
@@ -353,13 +353,13 @@ function Vs() {
|
|
|
353
353
|
// parent group
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Zo() {
|
|
357
357
|
z.r || ne(z.c), z = z.p;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function hi(e, t) {
|
|
360
360
|
e && e.i && (Te.delete(e), e.i(t));
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Qo(e, t, r, i) {
|
|
363
363
|
if (e && e.o) {
|
|
364
364
|
if (Te.has(e))
|
|
365
365
|
return;
|
|
@@ -369,34 +369,34 @@ function Xs(e, t, r, i) {
|
|
|
369
369
|
} else
|
|
370
370
|
i && i();
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Tt(e) {
|
|
373
373
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function ci(e, t, r) {
|
|
376
376
|
const { fragment: i, after_update: n } = e.$$;
|
|
377
|
-
i && i.m(t, r),
|
|
378
|
-
const
|
|
379
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
380
|
-
}), n.forEach(
|
|
377
|
+
i && i.m(t, r), Je(() => {
|
|
378
|
+
const o = e.$$.on_mount.map(zt).filter(ct);
|
|
379
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
380
|
+
}), n.forEach(Je);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function fi(e, t) {
|
|
383
383
|
const r = e.$$;
|
|
384
|
-
r.fragment !== null && (
|
|
384
|
+
r.fragment !== null && (li(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
e.$$.dirty[0] === -1 && (J.push(e),
|
|
386
|
+
function mi(e, t) {
|
|
387
|
+
e.$$.dirty[0] === -1 && (J.push(e), ai(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function pi(e, t, r, i, n, o, a = null, s = [-1]) {
|
|
390
390
|
const l = ce;
|
|
391
391
|
he(e);
|
|
392
392
|
const u = e.$$ = {
|
|
393
393
|
fragment: null,
|
|
394
394
|
ctx: [],
|
|
395
395
|
// state
|
|
396
|
-
props:
|
|
396
|
+
props: o,
|
|
397
397
|
update: O,
|
|
398
398
|
not_equal: n,
|
|
399
|
-
bound:
|
|
399
|
+
bound: _t(),
|
|
400
400
|
// lifecycle
|
|
401
401
|
on_mount: [],
|
|
402
402
|
on_destroy: [],
|
|
@@ -405,28 +405,28 @@ function ci(e, t, r, i, n, s, o = null, a = [-1]) {
|
|
|
405
405
|
after_update: [],
|
|
406
406
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
407
407
|
// everything else
|
|
408
|
-
callbacks:
|
|
409
|
-
dirty:
|
|
408
|
+
callbacks: _t(),
|
|
409
|
+
dirty: s,
|
|
410
410
|
skip_bound: !1,
|
|
411
411
|
root: t.target || l.$$.root
|
|
412
412
|
};
|
|
413
|
-
|
|
413
|
+
a && a(u.root);
|
|
414
414
|
let h = !1;
|
|
415
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
416
|
-
const y =
|
|
417
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h &&
|
|
415
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
416
|
+
const y = p.length ? p[0] : f;
|
|
417
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && mi(e, c)), f;
|
|
418
418
|
}) : [], u.update(), h = !0, ne(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
419
419
|
if (t.hydrate) {
|
|
420
|
-
const c =
|
|
420
|
+
const c = ri(t.target);
|
|
421
421
|
u.fragment && u.fragment.l(c), c.forEach(F);
|
|
422
422
|
} else
|
|
423
423
|
u.fragment && u.fragment.c();
|
|
424
|
-
t.intro &&
|
|
424
|
+
t.intro && hi(e.$$.fragment), ci(e, t.target, t.anchor), C();
|
|
425
425
|
}
|
|
426
426
|
he(l);
|
|
427
427
|
}
|
|
428
|
-
let
|
|
429
|
-
typeof HTMLElement == "function" && (
|
|
428
|
+
let Jt;
|
|
429
|
+
typeof HTMLElement == "function" && (Jt = class extends HTMLElement {
|
|
430
430
|
constructor(t, r, i) {
|
|
431
431
|
super();
|
|
432
432
|
/** The Svelte component constructor */
|
|
@@ -463,42 +463,42 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
connectedCallback() {
|
|
466
|
-
return
|
|
466
|
+
return vt(this, null, function* () {
|
|
467
467
|
if (this.$$cn = !0, !this.$$c) {
|
|
468
|
-
let t = function(
|
|
468
|
+
let t = function(o) {
|
|
469
469
|
return () => {
|
|
470
|
-
let
|
|
470
|
+
let a;
|
|
471
471
|
return {
|
|
472
472
|
c: function() {
|
|
473
|
-
|
|
473
|
+
a = A("slot"), o !== "default" && x(a, "name", o);
|
|
474
474
|
},
|
|
475
475
|
/**
|
|
476
476
|
* @param {HTMLElement} target
|
|
477
477
|
* @param {HTMLElement} [anchor]
|
|
478
478
|
*/
|
|
479
479
|
m: function(u, h) {
|
|
480
|
-
W(u,
|
|
480
|
+
W(u, a, h);
|
|
481
481
|
},
|
|
482
482
|
d: function(u) {
|
|
483
|
-
u && F(
|
|
483
|
+
u && F(a);
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
488
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
489
489
|
return;
|
|
490
|
-
const r = {}, i =
|
|
491
|
-
for (const
|
|
492
|
-
|
|
493
|
-
for (const
|
|
494
|
-
const
|
|
495
|
-
|
|
490
|
+
const r = {}, i = ii(this);
|
|
491
|
+
for (const o of this.$$s)
|
|
492
|
+
o in i && (r[o] = [t(o)]);
|
|
493
|
+
for (const o of this.attributes) {
|
|
494
|
+
const a = this.$$g_p(o.name);
|
|
495
|
+
a in this.$$d || (this.$$d[a] = Le(a, o.value, this.$$p_d, "toProp"));
|
|
496
496
|
}
|
|
497
|
-
for (const
|
|
498
|
-
!(
|
|
497
|
+
for (const o in this.$$p_d)
|
|
498
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
499
499
|
this.$$c = new this.$$ctor({
|
|
500
500
|
target: this.shadowRoot || this,
|
|
501
|
-
props:
|
|
501
|
+
props: bt(be({}, this.$$d), {
|
|
502
502
|
$$slots: r,
|
|
503
503
|
$$scope: {
|
|
504
504
|
ctx: []
|
|
@@ -507,23 +507,23 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
507
507
|
});
|
|
508
508
|
const n = () => {
|
|
509
509
|
this.$$r = !0;
|
|
510
|
-
for (const
|
|
511
|
-
if (this.$$d[
|
|
512
|
-
const
|
|
513
|
-
|
|
514
|
-
this.$$d[
|
|
510
|
+
for (const o in this.$$p_d)
|
|
511
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
512
|
+
const a = Le(
|
|
513
|
+
o,
|
|
514
|
+
this.$$d[o],
|
|
515
515
|
this.$$p_d,
|
|
516
516
|
"toAttribute"
|
|
517
517
|
);
|
|
518
|
-
|
|
518
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
519
519
|
}
|
|
520
520
|
this.$$r = !1;
|
|
521
521
|
};
|
|
522
522
|
this.$$c.$$.after_update.push(n), n();
|
|
523
|
-
for (const
|
|
524
|
-
for (const
|
|
525
|
-
const
|
|
526
|
-
this.$$l_u.set(
|
|
523
|
+
for (const o in this.$$l)
|
|
524
|
+
for (const a of this.$$l[o]) {
|
|
525
|
+
const s = this.$$c.$on(o, a);
|
|
526
|
+
this.$$l_u.set(a, s);
|
|
527
527
|
}
|
|
528
528
|
this.$$l = {};
|
|
529
529
|
}
|
|
@@ -547,8 +547,8 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
function Le(e, t, r, i) {
|
|
550
|
-
var
|
|
551
|
-
const n = (
|
|
550
|
+
var o;
|
|
551
|
+
const n = (o = r[e]) == null ? void 0 : o.type;
|
|
552
552
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
553
553
|
return t;
|
|
554
554
|
if (i === "toAttribute")
|
|
@@ -576,38 +576,38 @@ function Le(e, t, r, i) {
|
|
|
576
576
|
return t;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
let
|
|
579
|
+
function di(e, t, r, i, n, o) {
|
|
580
|
+
let a = class extends Jt {
|
|
581
581
|
constructor() {
|
|
582
582
|
super(e, r, n), this.$$p_d = t;
|
|
583
583
|
}
|
|
584
584
|
static get observedAttributes() {
|
|
585
585
|
return Object.keys(t).map(
|
|
586
|
-
(
|
|
586
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
587
587
|
);
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
-
return Object.keys(t).forEach((
|
|
591
|
-
Object.defineProperty(
|
|
590
|
+
return Object.keys(t).forEach((s) => {
|
|
591
|
+
Object.defineProperty(a.prototype, s, {
|
|
592
592
|
get() {
|
|
593
|
-
return this.$$c &&
|
|
593
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
594
594
|
},
|
|
595
595
|
set(l) {
|
|
596
596
|
var u;
|
|
597
|
-
l = Le(
|
|
597
|
+
l = Le(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
|
-
}), i.forEach((
|
|
601
|
-
Object.defineProperty(
|
|
600
|
+
}), i.forEach((s) => {
|
|
601
|
+
Object.defineProperty(a.prototype, s, {
|
|
602
602
|
get() {
|
|
603
603
|
var l;
|
|
604
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
604
|
+
return (l = this.$$c) == null ? void 0 : l[s];
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
607
|
}), e.element = /** @type {any} */
|
|
608
|
-
|
|
608
|
+
a, a;
|
|
609
609
|
}
|
|
610
|
-
class
|
|
610
|
+
class yi {
|
|
611
611
|
constructor() {
|
|
612
612
|
/**
|
|
613
613
|
* ### PRIVATE API
|
|
@@ -628,7 +628,7 @@ class mi {
|
|
|
628
628
|
}
|
|
629
629
|
/** @returns {void} */
|
|
630
630
|
$destroy() {
|
|
631
|
-
|
|
631
|
+
fi(this, 1), this.$destroy = O;
|
|
632
632
|
}
|
|
633
633
|
/**
|
|
634
634
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -637,7 +637,7 @@ class mi {
|
|
|
637
637
|
* @returns {() => void}
|
|
638
638
|
*/
|
|
639
639
|
$on(t, r) {
|
|
640
|
-
if (!
|
|
640
|
+
if (!ct(r))
|
|
641
641
|
return O;
|
|
642
642
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
643
643
|
return i.push(r), () => {
|
|
@@ -650,11 +650,11 @@ class mi {
|
|
|
650
650
|
* @returns {void}
|
|
651
651
|
*/
|
|
652
652
|
$set(t) {
|
|
653
|
-
this.$$set && !
|
|
653
|
+
this.$$set && !Qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
const
|
|
657
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
656
|
+
const gi = "4";
|
|
657
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gi);
|
|
658
658
|
/*! *****************************************************************************
|
|
659
659
|
Copyright (c) Microsoft Corporation.
|
|
660
660
|
|
|
@@ -669,18 +669,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
669
669
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
670
670
|
PERFORMANCE OF THIS SOFTWARE.
|
|
671
671
|
***************************************************************************** */
|
|
672
|
-
var
|
|
673
|
-
return
|
|
672
|
+
var qe = function(e, t) {
|
|
673
|
+
return qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
|
|
674
674
|
r.__proto__ = i;
|
|
675
675
|
} || function(r, i) {
|
|
676
676
|
for (var n in i)
|
|
677
677
|
Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
|
|
678
|
-
},
|
|
678
|
+
}, qe(e, t);
|
|
679
679
|
};
|
|
680
680
|
function j(e, t) {
|
|
681
681
|
if (typeof t != "function" && t !== null)
|
|
682
682
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
683
|
-
|
|
683
|
+
qe(e, t);
|
|
684
684
|
function r() {
|
|
685
685
|
this.constructor = e;
|
|
686
686
|
}
|
|
@@ -690,13 +690,13 @@ var E = function() {
|
|
|
690
690
|
return E = Object.assign || function(t) {
|
|
691
691
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
692
692
|
r = arguments[i];
|
|
693
|
-
for (var
|
|
694
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
693
|
+
for (var o in r)
|
|
694
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
695
695
|
}
|
|
696
696
|
return t;
|
|
697
697
|
}, E.apply(this, arguments);
|
|
698
698
|
};
|
|
699
|
-
function
|
|
699
|
+
function bi(e, t) {
|
|
700
700
|
var r = {};
|
|
701
701
|
for (var i in e)
|
|
702
702
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -705,7 +705,7 @@ function pi(e, t) {
|
|
|
705
705
|
t.indexOf(i[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[n]) && (r[i[n]] = e[i[n]]);
|
|
706
706
|
return r;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Ke(e) {
|
|
709
709
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], i = 0;
|
|
710
710
|
if (r)
|
|
711
711
|
return r.call(e);
|
|
@@ -717,42 +717,42 @@ function qe(e) {
|
|
|
717
717
|
};
|
|
718
718
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function et(e, t) {
|
|
721
721
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
722
722
|
if (!r)
|
|
723
723
|
return e;
|
|
724
|
-
var i = r.call(e), n,
|
|
724
|
+
var i = r.call(e), n, o = [], a;
|
|
725
725
|
try {
|
|
726
726
|
for (; (t === void 0 || t-- > 0) && !(n = i.next()).done; )
|
|
727
|
-
|
|
728
|
-
} catch (
|
|
729
|
-
|
|
727
|
+
o.push(n.value);
|
|
728
|
+
} catch (s) {
|
|
729
|
+
a = { error: s };
|
|
730
730
|
} finally {
|
|
731
731
|
try {
|
|
732
732
|
n && !n.done && (r = i.return) && r.call(i);
|
|
733
733
|
} finally {
|
|
734
|
-
if (
|
|
735
|
-
throw
|
|
734
|
+
if (a)
|
|
735
|
+
throw a.error;
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
return
|
|
738
|
+
return o;
|
|
739
739
|
}
|
|
740
740
|
function K(e, t, r) {
|
|
741
741
|
if (r || arguments.length === 2)
|
|
742
|
-
for (var i = 0, n = t.length,
|
|
743
|
-
(
|
|
744
|
-
return e.concat(
|
|
742
|
+
for (var i = 0, n = t.length, o; i < n; i++)
|
|
743
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
744
|
+
return e.concat(o || t);
|
|
745
745
|
}
|
|
746
746
|
function G(e) {
|
|
747
747
|
return typeof e == "function";
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function qt(e) {
|
|
750
750
|
var t = function(i) {
|
|
751
751
|
Error.call(i), i.stack = new Error().stack;
|
|
752
752
|
}, r = e(t);
|
|
753
753
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
754
754
|
}
|
|
755
|
-
var Fe =
|
|
755
|
+
var Fe = qt(function(e) {
|
|
756
756
|
return function(r) {
|
|
757
757
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
758
758
|
` + r.map(function(i, n) {
|
|
@@ -761,7 +761,7 @@ var Fe = Yt(function(e) {
|
|
|
761
761
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
762
762
|
};
|
|
763
763
|
});
|
|
764
|
-
function
|
|
764
|
+
function tt(e, t) {
|
|
765
765
|
if (e) {
|
|
766
766
|
var r = e.indexOf(t);
|
|
767
767
|
0 <= r && e.splice(r, 1);
|
|
@@ -772,67 +772,67 @@ var Be = function() {
|
|
|
772
772
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
773
773
|
}
|
|
774
774
|
return e.prototype.unsubscribe = function() {
|
|
775
|
-
var t, r, i, n,
|
|
775
|
+
var t, r, i, n, o;
|
|
776
776
|
if (!this.closed) {
|
|
777
777
|
this.closed = !0;
|
|
778
|
-
var
|
|
779
|
-
if (
|
|
780
|
-
if (this._parentage = null, Array.isArray(
|
|
778
|
+
var a = this._parentage;
|
|
779
|
+
if (a)
|
|
780
|
+
if (this._parentage = null, Array.isArray(a))
|
|
781
781
|
try {
|
|
782
|
-
for (var
|
|
782
|
+
for (var s = Ke(a), l = s.next(); !l.done; l = s.next()) {
|
|
783
783
|
var u = l.value;
|
|
784
784
|
u.remove(this);
|
|
785
785
|
}
|
|
786
|
-
} catch (
|
|
787
|
-
t = { error:
|
|
786
|
+
} catch (d) {
|
|
787
|
+
t = { error: d };
|
|
788
788
|
} finally {
|
|
789
789
|
try {
|
|
790
|
-
l && !l.done && (r =
|
|
790
|
+
l && !l.done && (r = s.return) && r.call(s);
|
|
791
791
|
} finally {
|
|
792
792
|
if (t)
|
|
793
793
|
throw t.error;
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
else
|
|
797
|
-
|
|
797
|
+
a.remove(this);
|
|
798
798
|
var h = this.initialTeardown;
|
|
799
799
|
if (G(h))
|
|
800
800
|
try {
|
|
801
801
|
h();
|
|
802
|
-
} catch (
|
|
803
|
-
|
|
802
|
+
} catch (d) {
|
|
803
|
+
o = d instanceof Fe ? d.errors : [d];
|
|
804
804
|
}
|
|
805
805
|
var c = this._finalizers;
|
|
806
806
|
if (c) {
|
|
807
807
|
this._finalizers = null;
|
|
808
808
|
try {
|
|
809
|
-
for (var f =
|
|
810
|
-
var y =
|
|
809
|
+
for (var f = Ke(c), p = f.next(); !p.done; p = f.next()) {
|
|
810
|
+
var y = p.value;
|
|
811
811
|
try {
|
|
812
|
-
|
|
813
|
-
} catch (
|
|
814
|
-
|
|
812
|
+
Lt(y);
|
|
813
|
+
} catch (d) {
|
|
814
|
+
o = o != null ? o : [], d instanceof Fe ? o = K(K([], et(o)), et(d.errors)) : o.push(d);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
} catch (
|
|
818
|
-
i = { error:
|
|
817
|
+
} catch (d) {
|
|
818
|
+
i = { error: d };
|
|
819
819
|
} finally {
|
|
820
820
|
try {
|
|
821
|
-
|
|
821
|
+
p && !p.done && (n = f.return) && n.call(f);
|
|
822
822
|
} finally {
|
|
823
823
|
if (i)
|
|
824
824
|
throw i.error;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
if (
|
|
829
|
-
throw new Fe(
|
|
828
|
+
if (o)
|
|
829
|
+
throw new Fe(o);
|
|
830
830
|
}
|
|
831
831
|
}, e.prototype.add = function(t) {
|
|
832
832
|
var r;
|
|
833
833
|
if (t && t !== this)
|
|
834
834
|
if (this.closed)
|
|
835
|
-
|
|
835
|
+
Lt(t);
|
|
836
836
|
else {
|
|
837
837
|
if (t instanceof e) {
|
|
838
838
|
if (t.closed || t._hasParent(this))
|
|
@@ -849,56 +849,56 @@ var Be = function() {
|
|
|
849
849
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
850
850
|
}, e.prototype._removeParent = function(t) {
|
|
851
851
|
var r = this._parentage;
|
|
852
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
852
|
+
r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
|
|
853
853
|
}, e.prototype.remove = function(t) {
|
|
854
854
|
var r = this._finalizers;
|
|
855
|
-
r &&
|
|
855
|
+
r && tt(r, t), t instanceof e && t._removeParent(this);
|
|
856
856
|
}, e.EMPTY = function() {
|
|
857
857
|
var t = new e();
|
|
858
858
|
return t.closed = !0, t;
|
|
859
859
|
}(), e;
|
|
860
|
-
}(),
|
|
861
|
-
function
|
|
860
|
+
}(), Kt = Be.EMPTY;
|
|
861
|
+
function er(e) {
|
|
862
862
|
return e instanceof Be || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Lt(e) {
|
|
865
865
|
G(e) ? e() : e.unsubscribe();
|
|
866
866
|
}
|
|
867
|
-
var
|
|
867
|
+
var tr = {
|
|
868
868
|
onUnhandledError: null,
|
|
869
869
|
onStoppedNotification: null,
|
|
870
870
|
Promise: void 0,
|
|
871
871
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
872
872
|
useDeprecatedNextContext: !1
|
|
873
|
-
},
|
|
873
|
+
}, vi = {
|
|
874
874
|
setTimeout: function(e, t) {
|
|
875
875
|
for (var r = [], i = 2; i < arguments.length; i++)
|
|
876
876
|
r[i - 2] = arguments[i];
|
|
877
|
-
return setTimeout.apply(void 0, K([e, t],
|
|
877
|
+
return setTimeout.apply(void 0, K([e, t], et(r)));
|
|
878
878
|
},
|
|
879
879
|
clearTimeout: function(e) {
|
|
880
880
|
return clearTimeout(e);
|
|
881
881
|
},
|
|
882
882
|
delegate: void 0
|
|
883
883
|
};
|
|
884
|
-
function
|
|
885
|
-
|
|
884
|
+
function _i(e) {
|
|
885
|
+
vi.setTimeout(function() {
|
|
886
886
|
throw e;
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function St() {
|
|
890
890
|
}
|
|
891
891
|
function Se(e) {
|
|
892
892
|
e();
|
|
893
893
|
}
|
|
894
|
-
var
|
|
894
|
+
var rr = function(e) {
|
|
895
895
|
j(t, e);
|
|
896
896
|
function t(r) {
|
|
897
897
|
var i = e.call(this) || this;
|
|
898
|
-
return i.isStopped = !1, r ? (i.destination = r,
|
|
898
|
+
return i.isStopped = !1, r ? (i.destination = r, er(r) && r.add(i)) : i.destination = Li, i;
|
|
899
899
|
}
|
|
900
900
|
return t.create = function(r, i, n) {
|
|
901
|
-
return new
|
|
901
|
+
return new rt(r, i, n);
|
|
902
902
|
}, t.prototype.next = function(r) {
|
|
903
903
|
this.isStopped || this._next(r);
|
|
904
904
|
}, t.prototype.error = function(r) {
|
|
@@ -922,7 +922,11 @@ var Kt = function(e) {
|
|
|
922
922
|
this.unsubscribe();
|
|
923
923
|
}
|
|
924
924
|
}, t;
|
|
925
|
-
}(Be),
|
|
925
|
+
}(Be), Ei = Function.prototype.bind;
|
|
926
|
+
function je(e, t) {
|
|
927
|
+
return Ei.call(e, t);
|
|
928
|
+
}
|
|
929
|
+
var xi = function() {
|
|
926
930
|
function e(t) {
|
|
927
931
|
this.partialObserver = t;
|
|
928
932
|
}
|
|
@@ -953,43 +957,55 @@ var Kt = function(e) {
|
|
|
953
957
|
_e(r);
|
|
954
958
|
}
|
|
955
959
|
}, e;
|
|
956
|
-
}(),
|
|
960
|
+
}(), rt = function(e) {
|
|
957
961
|
j(t, e);
|
|
958
962
|
function t(r, i, n) {
|
|
959
|
-
var
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
963
|
+
var o = e.call(this) || this, a;
|
|
964
|
+
if (G(r) || !r)
|
|
965
|
+
a = {
|
|
966
|
+
next: r != null ? r : void 0,
|
|
967
|
+
error: i != null ? i : void 0,
|
|
968
|
+
complete: n != null ? n : void 0
|
|
969
|
+
};
|
|
970
|
+
else {
|
|
971
|
+
var s;
|
|
972
|
+
o && tr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
973
|
+
return o.unsubscribe();
|
|
974
|
+
}, a = {
|
|
975
|
+
next: r.next && je(r.next, s),
|
|
976
|
+
error: r.error && je(r.error, s),
|
|
977
|
+
complete: r.complete && je(r.complete, s)
|
|
978
|
+
}) : a = r;
|
|
979
|
+
}
|
|
980
|
+
return o.destination = new xi(a), o;
|
|
965
981
|
}
|
|
966
982
|
return t;
|
|
967
|
-
}(
|
|
983
|
+
}(rr);
|
|
968
984
|
function _e(e) {
|
|
969
|
-
|
|
985
|
+
_i(e);
|
|
970
986
|
}
|
|
971
|
-
function
|
|
987
|
+
function Ti(e) {
|
|
972
988
|
throw e;
|
|
973
989
|
}
|
|
974
|
-
var
|
|
990
|
+
var Li = {
|
|
975
991
|
closed: !0,
|
|
976
|
-
next:
|
|
977
|
-
error:
|
|
978
|
-
complete:
|
|
979
|
-
},
|
|
992
|
+
next: St,
|
|
993
|
+
error: Ti,
|
|
994
|
+
complete: St
|
|
995
|
+
}, Si = function() {
|
|
980
996
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
981
997
|
}();
|
|
982
|
-
function
|
|
998
|
+
function wi(e) {
|
|
983
999
|
return e;
|
|
984
1000
|
}
|
|
985
|
-
function
|
|
986
|
-
return e.length === 0 ?
|
|
1001
|
+
function Ai(e) {
|
|
1002
|
+
return e.length === 0 ? wi : e.length === 1 ? e[0] : function(r) {
|
|
987
1003
|
return e.reduce(function(i, n) {
|
|
988
1004
|
return n(i);
|
|
989
1005
|
}, r);
|
|
990
1006
|
};
|
|
991
1007
|
}
|
|
992
|
-
var
|
|
1008
|
+
var wt = function() {
|
|
993
1009
|
function e(t) {
|
|
994
1010
|
t && (this._subscribe = t);
|
|
995
1011
|
}
|
|
@@ -997,11 +1013,11 @@ var Lt = function() {
|
|
|
997
1013
|
var r = new e();
|
|
998
1014
|
return r.source = this, r.operator = t, r;
|
|
999
1015
|
}, e.prototype.subscribe = function(t, r, i) {
|
|
1000
|
-
var n = this,
|
|
1016
|
+
var n = this, o = Hi(t) ? t : new rt(t, r, i);
|
|
1001
1017
|
return Se(function() {
|
|
1002
|
-
var
|
|
1003
|
-
|
|
1004
|
-
}),
|
|
1018
|
+
var a = n, s = a.operator, l = a.source;
|
|
1019
|
+
o.add(s ? s.call(o, l) : l ? n._subscribe(o) : n._trySubscribe(o));
|
|
1020
|
+
}), o;
|
|
1005
1021
|
}, e.prototype._trySubscribe = function(t) {
|
|
1006
1022
|
try {
|
|
1007
1023
|
return this._subscribe(t);
|
|
@@ -1010,87 +1026,87 @@ var Lt = function() {
|
|
|
1010
1026
|
}
|
|
1011
1027
|
}, e.prototype.forEach = function(t, r) {
|
|
1012
1028
|
var i = this;
|
|
1013
|
-
return r =
|
|
1014
|
-
var
|
|
1015
|
-
next: function(
|
|
1029
|
+
return r = At(r), new r(function(n, o) {
|
|
1030
|
+
var a = new rt({
|
|
1031
|
+
next: function(s) {
|
|
1016
1032
|
try {
|
|
1017
|
-
t(
|
|
1033
|
+
t(s);
|
|
1018
1034
|
} catch (l) {
|
|
1019
|
-
|
|
1035
|
+
o(l), a.unsubscribe();
|
|
1020
1036
|
}
|
|
1021
1037
|
},
|
|
1022
|
-
error:
|
|
1038
|
+
error: o,
|
|
1023
1039
|
complete: n
|
|
1024
1040
|
});
|
|
1025
|
-
i.subscribe(
|
|
1041
|
+
i.subscribe(a);
|
|
1026
1042
|
});
|
|
1027
1043
|
}, e.prototype._subscribe = function(t) {
|
|
1028
1044
|
var r;
|
|
1029
1045
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
1030
|
-
}, e.prototype[
|
|
1046
|
+
}, e.prototype[Si] = function() {
|
|
1031
1047
|
return this;
|
|
1032
1048
|
}, e.prototype.pipe = function() {
|
|
1033
1049
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
1034
1050
|
t[r] = arguments[r];
|
|
1035
|
-
return
|
|
1051
|
+
return Ai(t)(this);
|
|
1036
1052
|
}, e.prototype.toPromise = function(t) {
|
|
1037
1053
|
var r = this;
|
|
1038
|
-
return t =
|
|
1039
|
-
var
|
|
1040
|
-
r.subscribe(function(
|
|
1041
|
-
return
|
|
1042
|
-
}, function(
|
|
1043
|
-
return n(
|
|
1054
|
+
return t = At(t), new t(function(i, n) {
|
|
1055
|
+
var o;
|
|
1056
|
+
r.subscribe(function(a) {
|
|
1057
|
+
return o = a;
|
|
1058
|
+
}, function(a) {
|
|
1059
|
+
return n(a);
|
|
1044
1060
|
}, function() {
|
|
1045
|
-
return i(
|
|
1061
|
+
return i(o);
|
|
1046
1062
|
});
|
|
1047
1063
|
});
|
|
1048
1064
|
}, e.create = function(t) {
|
|
1049
1065
|
return new e(t);
|
|
1050
1066
|
}, e;
|
|
1051
1067
|
}();
|
|
1052
|
-
function
|
|
1068
|
+
function At(e) {
|
|
1053
1069
|
var t;
|
|
1054
|
-
return (t = e != null ? e :
|
|
1070
|
+
return (t = e != null ? e : tr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
1055
1071
|
}
|
|
1056
|
-
function
|
|
1072
|
+
function Pi(e) {
|
|
1057
1073
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
1058
1074
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return e && e instanceof
|
|
1075
|
+
function Hi(e) {
|
|
1076
|
+
return e && e instanceof rr || Pi(e) && er(e);
|
|
1061
1077
|
}
|
|
1062
|
-
var
|
|
1078
|
+
var Ii = qt(function(e) {
|
|
1063
1079
|
return function() {
|
|
1064
1080
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1065
1081
|
};
|
|
1066
|
-
}),
|
|
1082
|
+
}), ir = function(e) {
|
|
1067
1083
|
j(t, e);
|
|
1068
1084
|
function t() {
|
|
1069
1085
|
var r = e.call(this) || this;
|
|
1070
1086
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
1071
1087
|
}
|
|
1072
1088
|
return t.prototype.lift = function(r) {
|
|
1073
|
-
var i = new
|
|
1089
|
+
var i = new Pt(this, this);
|
|
1074
1090
|
return i.operator = r, i;
|
|
1075
1091
|
}, t.prototype._throwIfClosed = function() {
|
|
1076
1092
|
if (this.closed)
|
|
1077
|
-
throw new
|
|
1093
|
+
throw new Ii();
|
|
1078
1094
|
}, t.prototype.next = function(r) {
|
|
1079
1095
|
var i = this;
|
|
1080
1096
|
Se(function() {
|
|
1081
|
-
var n,
|
|
1097
|
+
var n, o;
|
|
1082
1098
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
1083
1099
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
1084
1100
|
try {
|
|
1085
|
-
for (var
|
|
1086
|
-
var l =
|
|
1101
|
+
for (var a = Ke(i.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1102
|
+
var l = s.value;
|
|
1087
1103
|
l.next(r);
|
|
1088
1104
|
}
|
|
1089
1105
|
} catch (u) {
|
|
1090
1106
|
n = { error: u };
|
|
1091
1107
|
} finally {
|
|
1092
1108
|
try {
|
|
1093
|
-
|
|
1109
|
+
s && !s.done && (o = a.return) && o.call(a);
|
|
1094
1110
|
} finally {
|
|
1095
1111
|
if (n)
|
|
1096
1112
|
throw n.error;
|
|
@@ -1130,20 +1146,20 @@ var Ai = Yt(function(e) {
|
|
|
1130
1146
|
}, t.prototype._subscribe = function(r) {
|
|
1131
1147
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1132
1148
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1133
|
-
var i = this, n = this,
|
|
1134
|
-
return
|
|
1135
|
-
i.currentObservers = null,
|
|
1149
|
+
var i = this, n = this, o = n.hasError, a = n.isStopped, s = n.observers;
|
|
1150
|
+
return o || a ? Kt : (this.currentObservers = null, s.push(r), new Be(function() {
|
|
1151
|
+
i.currentObservers = null, tt(s, r);
|
|
1136
1152
|
}));
|
|
1137
1153
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1138
|
-
var i = this, n = i.hasError,
|
|
1139
|
-
n ? r.error(
|
|
1154
|
+
var i = this, n = i.hasError, o = i.thrownError, a = i.isStopped;
|
|
1155
|
+
n ? r.error(o) : a && r.complete();
|
|
1140
1156
|
}, t.prototype.asObservable = function() {
|
|
1141
|
-
var r = new
|
|
1157
|
+
var r = new wt();
|
|
1142
1158
|
return r.source = this, r;
|
|
1143
1159
|
}, t.create = function(r, i) {
|
|
1144
|
-
return new
|
|
1160
|
+
return new Pt(r, i);
|
|
1145
1161
|
}, t;
|
|
1146
|
-
}(
|
|
1162
|
+
}(wt), Pt = function(e) {
|
|
1147
1163
|
j(t, e);
|
|
1148
1164
|
function t(r, i) {
|
|
1149
1165
|
var n = e.call(this) || this;
|
|
@@ -1160,45 +1176,45 @@ var Ai = Yt(function(e) {
|
|
|
1160
1176
|
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || i === void 0 || i.call(r);
|
|
1161
1177
|
}, t.prototype._subscribe = function(r) {
|
|
1162
1178
|
var i, n;
|
|
1163
|
-
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n :
|
|
1179
|
+
return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(r)) !== null && n !== void 0 ? n : Kt;
|
|
1164
1180
|
}, t;
|
|
1165
|
-
}(
|
|
1181
|
+
}(ir), nr = {
|
|
1166
1182
|
now: function() {
|
|
1167
|
-
return (
|
|
1183
|
+
return (nr.delegate || Date).now();
|
|
1168
1184
|
},
|
|
1169
1185
|
delegate: void 0
|
|
1170
|
-
},
|
|
1186
|
+
}, Bi = function(e) {
|
|
1171
1187
|
j(t, e);
|
|
1172
1188
|
function t(r, i, n) {
|
|
1173
|
-
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n =
|
|
1174
|
-
var
|
|
1175
|
-
return
|
|
1189
|
+
r === void 0 && (r = 1 / 0), i === void 0 && (i = 1 / 0), n === void 0 && (n = nr);
|
|
1190
|
+
var o = e.call(this) || this;
|
|
1191
|
+
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;
|
|
1176
1192
|
}
|
|
1177
1193
|
return t.prototype.next = function(r) {
|
|
1178
|
-
var i = this, n = i.isStopped,
|
|
1179
|
-
n || (
|
|
1194
|
+
var i = this, n = i.isStopped, o = i._buffer, a = i._infiniteTimeWindow, s = i._timestampProvider, l = i._windowTime;
|
|
1195
|
+
n || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
1180
1196
|
}, t.prototype._subscribe = function(r) {
|
|
1181
1197
|
this._throwIfClosed(), this._trimBuffer();
|
|
1182
|
-
for (var i = this._innerSubscribe(r), n = this,
|
|
1183
|
-
r.next(
|
|
1198
|
+
for (var i = this._innerSubscribe(r), n = this, o = n._infiniteTimeWindow, a = n._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
|
|
1199
|
+
r.next(s[l]);
|
|
1184
1200
|
return this._checkFinalizedStatuses(r), i;
|
|
1185
1201
|
}, t.prototype._trimBuffer = function() {
|
|
1186
|
-
var r = this, i = r._bufferSize, n = r._timestampProvider,
|
|
1187
|
-
if (i < 1 / 0 &&
|
|
1188
|
-
for (var l = n.now(), u = 0, h = 1; h <
|
|
1202
|
+
var r = this, i = r._bufferSize, n = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * i;
|
|
1203
|
+
if (i < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
1204
|
+
for (var l = n.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
|
|
1189
1205
|
u = h;
|
|
1190
|
-
u &&
|
|
1206
|
+
u && o.splice(0, u + 1);
|
|
1191
1207
|
}
|
|
1192
1208
|
}, t;
|
|
1193
|
-
}(
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
const r = new
|
|
1197
|
-
|
|
1209
|
+
}(ir);
|
|
1210
|
+
const Ht = [], It = {}, Oi = (e, t = 0) => {
|
|
1211
|
+
if (Ht.indexOf(e) == -1) {
|
|
1212
|
+
const r = new Bi(t);
|
|
1213
|
+
It[e] = r, Ht.push(e);
|
|
1198
1214
|
}
|
|
1199
|
-
return
|
|
1215
|
+
return It[e];
|
|
1200
1216
|
}, Y = [];
|
|
1201
|
-
function
|
|
1217
|
+
function Ci(e, t) {
|
|
1202
1218
|
return {
|
|
1203
1219
|
subscribe: Oe(e, t).subscribe
|
|
1204
1220
|
};
|
|
@@ -1206,8 +1222,8 @@ function Ii(e, t) {
|
|
|
1206
1222
|
function Oe(e, t = O) {
|
|
1207
1223
|
let r;
|
|
1208
1224
|
const i = /* @__PURE__ */ new Set();
|
|
1209
|
-
function n(
|
|
1210
|
-
if (
|
|
1225
|
+
function n(s) {
|
|
1226
|
+
if (Zt(e, s) && (e = s, r)) {
|
|
1211
1227
|
const l = !Y.length;
|
|
1212
1228
|
for (const u of i)
|
|
1213
1229
|
u[1](), Y.push(u, e);
|
|
@@ -1218,23 +1234,23 @@ function Oe(e, t = O) {
|
|
|
1218
1234
|
}
|
|
1219
1235
|
}
|
|
1220
1236
|
}
|
|
1221
|
-
function s
|
|
1222
|
-
n(
|
|
1237
|
+
function o(s) {
|
|
1238
|
+
n(s(e));
|
|
1223
1239
|
}
|
|
1224
|
-
function
|
|
1225
|
-
const u = [
|
|
1226
|
-
return i.add(u), i.size === 1 && (r = t(n,
|
|
1240
|
+
function a(s, l = O) {
|
|
1241
|
+
const u = [s, l];
|
|
1242
|
+
return i.add(u), i.size === 1 && (r = t(n, o) || O), s(e), () => {
|
|
1227
1243
|
i.delete(u), i.size === 0 && r && (r(), r = null);
|
|
1228
1244
|
};
|
|
1229
1245
|
}
|
|
1230
|
-
return { set: n, update:
|
|
1246
|
+
return { set: n, update: o, subscribe: a };
|
|
1231
1247
|
}
|
|
1232
|
-
function
|
|
1248
|
+
function oe(e, t, r) {
|
|
1233
1249
|
const i = !Array.isArray(e), n = i ? [e] : e;
|
|
1234
1250
|
if (!n.every(Boolean))
|
|
1235
1251
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1236
|
-
const
|
|
1237
|
-
return
|
|
1252
|
+
const o = t.length < 2;
|
|
1253
|
+
return Ci(r, (a, s) => {
|
|
1238
1254
|
let l = !1;
|
|
1239
1255
|
const u = [];
|
|
1240
1256
|
let h = 0, c = O;
|
|
@@ -1242,88 +1258,88 @@ function se(e, t, r) {
|
|
|
1242
1258
|
if (h)
|
|
1243
1259
|
return;
|
|
1244
1260
|
c();
|
|
1245
|
-
const y = t(i ? u[0] : u,
|
|
1246
|
-
|
|
1247
|
-
},
|
|
1248
|
-
(y,
|
|
1261
|
+
const y = t(i ? u[0] : u, a, s);
|
|
1262
|
+
o ? a(y) : c = ct(y) ? y : O;
|
|
1263
|
+
}, p = n.map(
|
|
1264
|
+
(y, d) => Qt(
|
|
1249
1265
|
y,
|
|
1250
1266
|
(v) => {
|
|
1251
|
-
u[
|
|
1267
|
+
u[d] = v, h &= ~(1 << d), l && f();
|
|
1252
1268
|
},
|
|
1253
1269
|
() => {
|
|
1254
|
-
h |= 1 <<
|
|
1270
|
+
h |= 1 << d;
|
|
1255
1271
|
}
|
|
1256
1272
|
)
|
|
1257
1273
|
);
|
|
1258
1274
|
return l = !0, f(), function() {
|
|
1259
|
-
ne(
|
|
1275
|
+
ne(p), c(), l = !1;
|
|
1260
1276
|
};
|
|
1261
1277
|
});
|
|
1262
1278
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1279
|
+
function Ni(e) {
|
|
1280
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1265
1281
|
}
|
|
1266
|
-
var
|
|
1267
|
-
return
|
|
1282
|
+
var Mi = function(t) {
|
|
1283
|
+
return Ri(t) && !Di(t);
|
|
1268
1284
|
};
|
|
1269
|
-
function
|
|
1285
|
+
function Ri(e) {
|
|
1270
1286
|
return !!e && typeof e == "object";
|
|
1271
1287
|
}
|
|
1272
|
-
function
|
|
1288
|
+
function Di(e) {
|
|
1273
1289
|
var t = Object.prototype.toString.call(e);
|
|
1274
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1290
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gi(e);
|
|
1275
1291
|
}
|
|
1276
|
-
var
|
|
1277
|
-
function
|
|
1278
|
-
return e.$$typeof ===
|
|
1292
|
+
var Ui = typeof Symbol == "function" && Symbol.for, $i = Ui ? Symbol.for("react.element") : 60103;
|
|
1293
|
+
function Gi(e) {
|
|
1294
|
+
return e.$$typeof === $i;
|
|
1279
1295
|
}
|
|
1280
|
-
function
|
|
1296
|
+
function Fi(e) {
|
|
1281
1297
|
return Array.isArray(e) ? [] : {};
|
|
1282
1298
|
}
|
|
1283
1299
|
function fe(e, t) {
|
|
1284
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? ee(
|
|
1300
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Fi(e), e, t) : e;
|
|
1285
1301
|
}
|
|
1286
|
-
function
|
|
1302
|
+
function ji(e, t, r) {
|
|
1287
1303
|
return e.concat(t).map(function(i) {
|
|
1288
1304
|
return fe(i, r);
|
|
1289
1305
|
});
|
|
1290
1306
|
}
|
|
1291
|
-
function
|
|
1307
|
+
function ki(e, t) {
|
|
1292
1308
|
if (!t.customMerge)
|
|
1293
1309
|
return ee;
|
|
1294
1310
|
var r = t.customMerge(e);
|
|
1295
1311
|
return typeof r == "function" ? r : ee;
|
|
1296
1312
|
}
|
|
1297
|
-
function
|
|
1313
|
+
function Vi(e) {
|
|
1298
1314
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1299
1315
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1300
1316
|
}) : [];
|
|
1301
1317
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return Object.keys(e).concat(
|
|
1318
|
+
function Bt(e) {
|
|
1319
|
+
return Object.keys(e).concat(Vi(e));
|
|
1304
1320
|
}
|
|
1305
|
-
function
|
|
1321
|
+
function or(e, t) {
|
|
1306
1322
|
try {
|
|
1307
1323
|
return t in e;
|
|
1308
1324
|
} catch (r) {
|
|
1309
1325
|
return !1;
|
|
1310
1326
|
}
|
|
1311
1327
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1328
|
+
function Wi(e, t) {
|
|
1329
|
+
return or(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1314
1330
|
}
|
|
1315
|
-
function
|
|
1331
|
+
function Xi(e, t, r) {
|
|
1316
1332
|
var i = {};
|
|
1317
|
-
return r.isMergeableObject(e) &&
|
|
1333
|
+
return r.isMergeableObject(e) && Bt(e).forEach(function(n) {
|
|
1318
1334
|
i[n] = fe(e[n], r);
|
|
1319
|
-
}),
|
|
1320
|
-
|
|
1335
|
+
}), Bt(t).forEach(function(n) {
|
|
1336
|
+
Wi(e, n) || (or(e, n) && r.isMergeableObject(t[n]) ? i[n] = ki(n, r)(e[n], t[n], r) : i[n] = fe(t[n], r));
|
|
1321
1337
|
}), i;
|
|
1322
1338
|
}
|
|
1323
1339
|
function ee(e, t, r) {
|
|
1324
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1325
|
-
var i = Array.isArray(t), n = Array.isArray(e),
|
|
1326
|
-
return
|
|
1340
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ji, r.isMergeableObject = r.isMergeableObject || Mi, r.cloneUnlessOtherwiseSpecified = fe;
|
|
1341
|
+
var i = Array.isArray(t), n = Array.isArray(e), o = i === n;
|
|
1342
|
+
return o ? i ? r.arrayMerge(e, t, r) : Xi(e, t, r) : fe(t, r);
|
|
1327
1343
|
}
|
|
1328
1344
|
ee.all = function(t, r) {
|
|
1329
1345
|
if (!Array.isArray(t))
|
|
@@ -1332,60 +1348,58 @@ ee.all = function(t, r) {
|
|
|
1332
1348
|
return ee(i, n, r);
|
|
1333
1349
|
}, {});
|
|
1334
1350
|
};
|
|
1335
|
-
var
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1338
|
-
var r = t && t.cache ? t.cache :
|
|
1351
|
+
var zi = ee, Zi = zi;
|
|
1352
|
+
const Qi = /* @__PURE__ */ Ni(Zi);
|
|
1353
|
+
function ke(e, t) {
|
|
1354
|
+
var r = t && t.cache ? t.cache : tn, i = t && t.serializer ? t.serializer : en, n = t && t.strategy ? t.strategy : Ji;
|
|
1339
1355
|
return n(e, {
|
|
1340
1356
|
cache: r,
|
|
1341
1357
|
serializer: i
|
|
1342
1358
|
});
|
|
1343
1359
|
}
|
|
1344
|
-
function
|
|
1360
|
+
function Yi(e) {
|
|
1345
1361
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1346
1362
|
}
|
|
1347
|
-
function
|
|
1348
|
-
var n =
|
|
1349
|
-
return typeof
|
|
1363
|
+
function sr(e, t, r, i) {
|
|
1364
|
+
var n = Yi(i) ? i : r(i), o = t.get(n);
|
|
1365
|
+
return typeof o == "undefined" && (o = e.call(this, i), t.set(n, o)), o;
|
|
1350
1366
|
}
|
|
1351
|
-
function
|
|
1352
|
-
var i = Array.prototype.slice.call(arguments, 3), n = r(i),
|
|
1353
|
-
return typeof
|
|
1367
|
+
function ar(e, t, r) {
|
|
1368
|
+
var i = Array.prototype.slice.call(arguments, 3), n = r(i), o = t.get(n);
|
|
1369
|
+
return typeof o == "undefined" && (o = e.apply(this, i), t.set(n, o)), o;
|
|
1354
1370
|
}
|
|
1355
|
-
function
|
|
1371
|
+
function ft(e, t, r, i, n) {
|
|
1356
1372
|
return r.bind(t, e, i, n);
|
|
1357
1373
|
}
|
|
1358
|
-
function
|
|
1359
|
-
var r = e.length === 1 ?
|
|
1360
|
-
return
|
|
1374
|
+
function Ji(e, t) {
|
|
1375
|
+
var r = e.length === 1 ? sr : ar;
|
|
1376
|
+
return ft(e, this, r, t.cache.create(), t.serializer);
|
|
1361
1377
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1378
|
+
function qi(e, t) {
|
|
1379
|
+
return ft(e, this, ar, t.cache.create(), t.serializer);
|
|
1364
1380
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1381
|
+
function Ki(e, t) {
|
|
1382
|
+
return ft(e, this, sr, t.cache.create(), t.serializer);
|
|
1367
1383
|
}
|
|
1368
|
-
var
|
|
1384
|
+
var en = function() {
|
|
1369
1385
|
return JSON.stringify(arguments);
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
}()
|
|
1382
|
-
), Ki = {
|
|
1386
|
+
};
|
|
1387
|
+
function mt() {
|
|
1388
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1389
|
+
}
|
|
1390
|
+
mt.prototype.get = function(e) {
|
|
1391
|
+
return this.cache[e];
|
|
1392
|
+
};
|
|
1393
|
+
mt.prototype.set = function(e, t) {
|
|
1394
|
+
this.cache[e] = t;
|
|
1395
|
+
};
|
|
1396
|
+
var tn = {
|
|
1383
1397
|
create: function() {
|
|
1384
|
-
return new
|
|
1398
|
+
return new mt();
|
|
1385
1399
|
}
|
|
1386
|
-
},
|
|
1387
|
-
variadic:
|
|
1388
|
-
monadic:
|
|
1400
|
+
}, Ve = {
|
|
1401
|
+
variadic: qi,
|
|
1402
|
+
monadic: Ki
|
|
1389
1403
|
}, b;
|
|
1390
1404
|
(function(e) {
|
|
1391
1405
|
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";
|
|
@@ -1398,43 +1412,43 @@ var te;
|
|
|
1398
1412
|
(function(e) {
|
|
1399
1413
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1400
1414
|
})(te || (te = {}));
|
|
1401
|
-
function
|
|
1415
|
+
function Ot(e) {
|
|
1402
1416
|
return e.type === S.literal;
|
|
1403
1417
|
}
|
|
1404
|
-
function
|
|
1418
|
+
function rn(e) {
|
|
1405
1419
|
return e.type === S.argument;
|
|
1406
1420
|
}
|
|
1407
|
-
function
|
|
1421
|
+
function ur(e) {
|
|
1408
1422
|
return e.type === S.number;
|
|
1409
1423
|
}
|
|
1410
|
-
function
|
|
1424
|
+
function lr(e) {
|
|
1411
1425
|
return e.type === S.date;
|
|
1412
1426
|
}
|
|
1413
|
-
function
|
|
1427
|
+
function hr(e) {
|
|
1414
1428
|
return e.type === S.time;
|
|
1415
1429
|
}
|
|
1416
|
-
function
|
|
1430
|
+
function cr(e) {
|
|
1417
1431
|
return e.type === S.select;
|
|
1418
1432
|
}
|
|
1419
|
-
function
|
|
1433
|
+
function fr(e) {
|
|
1420
1434
|
return e.type === S.plural;
|
|
1421
1435
|
}
|
|
1422
|
-
function
|
|
1436
|
+
function nn(e) {
|
|
1423
1437
|
return e.type === S.pound;
|
|
1424
1438
|
}
|
|
1425
|
-
function
|
|
1439
|
+
function mr(e) {
|
|
1426
1440
|
return e.type === S.tag;
|
|
1427
1441
|
}
|
|
1428
|
-
function
|
|
1442
|
+
function pr(e) {
|
|
1429
1443
|
return !!(e && typeof e == "object" && e.type === te.number);
|
|
1430
1444
|
}
|
|
1431
|
-
function
|
|
1445
|
+
function it(e) {
|
|
1432
1446
|
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
1433
1447
|
}
|
|
1434
|
-
var
|
|
1435
|
-
function
|
|
1448
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
1449
|
+
function sn(e) {
|
|
1436
1450
|
var t = {};
|
|
1437
|
-
return e.replace(
|
|
1451
|
+
return e.replace(on, function(r) {
|
|
1438
1452
|
var i = r.length;
|
|
1439
1453
|
switch (r[0]) {
|
|
1440
1454
|
case "G":
|
|
@@ -1523,36 +1537,36 @@ function nn(e) {
|
|
|
1523
1537
|
return "";
|
|
1524
1538
|
}), t;
|
|
1525
1539
|
}
|
|
1526
|
-
var
|
|
1527
|
-
function
|
|
1540
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1541
|
+
function un(e) {
|
|
1528
1542
|
if (e.length === 0)
|
|
1529
1543
|
throw new Error("Number skeleton cannot be empty");
|
|
1530
|
-
for (var t = e.split(
|
|
1544
|
+
for (var t = e.split(an).filter(function(f) {
|
|
1531
1545
|
return f.length > 0;
|
|
1532
1546
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
1533
|
-
var
|
|
1534
|
-
if (
|
|
1547
|
+
var o = n[i], a = o.split("/");
|
|
1548
|
+
if (a.length === 0)
|
|
1535
1549
|
throw new Error("Invalid number skeleton");
|
|
1536
|
-
for (var
|
|
1550
|
+
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1537
1551
|
var c = h[u];
|
|
1538
1552
|
if (c.length === 0)
|
|
1539
1553
|
throw new Error("Invalid number skeleton");
|
|
1540
1554
|
}
|
|
1541
|
-
r.push({ stem:
|
|
1555
|
+
r.push({ stem: s, options: l });
|
|
1542
1556
|
}
|
|
1543
1557
|
return r;
|
|
1544
1558
|
}
|
|
1545
|
-
function
|
|
1559
|
+
function ln(e) {
|
|
1546
1560
|
return e.replace(/^(.*?)-/, "");
|
|
1547
1561
|
}
|
|
1548
|
-
var
|
|
1549
|
-
function
|
|
1562
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yr = /^(@+)?(\+|#+)?[rs]?$/g, hn = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
|
1563
|
+
function Nt(e) {
|
|
1550
1564
|
var t = {};
|
|
1551
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1565
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yr, function(r, i, n) {
|
|
1552
1566
|
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)), "";
|
|
1553
1567
|
}), t;
|
|
1554
1568
|
}
|
|
1555
|
-
function
|
|
1569
|
+
function br(e) {
|
|
1556
1570
|
switch (e) {
|
|
1557
1571
|
case "sign-auto":
|
|
1558
1572
|
return {
|
|
@@ -1592,7 +1606,7 @@ function pr(e) {
|
|
|
1592
1606
|
};
|
|
1593
1607
|
}
|
|
1594
1608
|
}
|
|
1595
|
-
function
|
|
1609
|
+
function cn(e) {
|
|
1596
1610
|
var t;
|
|
1597
1611
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1598
1612
|
notation: "engineering"
|
|
@@ -1600,17 +1614,17 @@ function ln(e) {
|
|
|
1600
1614
|
notation: "scientific"
|
|
1601
1615
|
}, e = e.slice(1)), t) {
|
|
1602
1616
|
var r = e.slice(0, 2);
|
|
1603
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1617
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
|
1604
1618
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1605
1619
|
t.minimumIntegerDigits = e.length;
|
|
1606
1620
|
}
|
|
1607
1621
|
return t;
|
|
1608
1622
|
}
|
|
1609
|
-
function
|
|
1610
|
-
var t = {}, r =
|
|
1623
|
+
function Mt(e) {
|
|
1624
|
+
var t = {}, r = br(e);
|
|
1611
1625
|
return r || t;
|
|
1612
1626
|
}
|
|
1613
|
-
function
|
|
1627
|
+
function fn(e) {
|
|
1614
1628
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
1615
1629
|
var n = i[r];
|
|
1616
1630
|
switch (n.stem) {
|
|
@@ -1634,7 +1648,7 @@ function hn(e) {
|
|
|
1634
1648
|
continue;
|
|
1635
1649
|
case "measure-unit":
|
|
1636
1650
|
case "unit":
|
|
1637
|
-
t.style = "unit", t.unit =
|
|
1651
|
+
t.style = "unit", t.unit = ln(n.options[0]);
|
|
1638
1652
|
continue;
|
|
1639
1653
|
case "compact-short":
|
|
1640
1654
|
case "K":
|
|
@@ -1646,12 +1660,12 @@ function hn(e) {
|
|
|
1646
1660
|
continue;
|
|
1647
1661
|
case "scientific":
|
|
1648
1662
|
t = E(E(E({}, t), { notation: "scientific" }), n.options.reduce(function(l, u) {
|
|
1649
|
-
return E(E({}, l),
|
|
1663
|
+
return E(E({}, l), Mt(u));
|
|
1650
1664
|
}, {}));
|
|
1651
1665
|
continue;
|
|
1652
1666
|
case "engineering":
|
|
1653
1667
|
t = E(E(E({}, t), { notation: "engineering" }), n.options.reduce(function(l, u) {
|
|
1654
|
-
return E(E({}, l),
|
|
1668
|
+
return E(E({}, l), Mt(u));
|
|
1655
1669
|
}, {}));
|
|
1656
1670
|
continue;
|
|
1657
1671
|
case "notation-simple":
|
|
@@ -1696,41 +1710,41 @@ function hn(e) {
|
|
|
1696
1710
|
case "integer-width":
|
|
1697
1711
|
if (n.options.length > 1)
|
|
1698
1712
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1699
|
-
n.options[0].replace(
|
|
1713
|
+
n.options[0].replace(hn, function(l, u, h, c, f, p) {
|
|
1700
1714
|
if (u)
|
|
1701
1715
|
t.minimumIntegerDigits = h.length;
|
|
1702
1716
|
else {
|
|
1703
1717
|
if (c && f)
|
|
1704
1718
|
throw new Error("We currently do not support maximum integer digits");
|
|
1705
|
-
if (
|
|
1719
|
+
if (p)
|
|
1706
1720
|
throw new Error("We currently do not support exact integer digits");
|
|
1707
1721
|
}
|
|
1708
1722
|
return "";
|
|
1709
1723
|
});
|
|
1710
1724
|
continue;
|
|
1711
1725
|
}
|
|
1712
|
-
if (
|
|
1726
|
+
if (gr.test(n.stem)) {
|
|
1713
1727
|
t.minimumIntegerDigits = n.stem.length;
|
|
1714
1728
|
continue;
|
|
1715
1729
|
}
|
|
1716
|
-
if (
|
|
1730
|
+
if (Ct.test(n.stem)) {
|
|
1717
1731
|
if (n.options.length > 1)
|
|
1718
1732
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1719
|
-
n.stem.replace(
|
|
1720
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1733
|
+
n.stem.replace(Ct, function(l, u, h, c, f, p) {
|
|
1734
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1721
1735
|
});
|
|
1722
|
-
var
|
|
1723
|
-
|
|
1736
|
+
var o = n.options[0];
|
|
1737
|
+
o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), Nt(o)));
|
|
1724
1738
|
continue;
|
|
1725
1739
|
}
|
|
1726
|
-
if (
|
|
1727
|
-
t = E(E({}, t),
|
|
1740
|
+
if (yr.test(n.stem)) {
|
|
1741
|
+
t = E(E({}, t), Nt(n.stem));
|
|
1728
1742
|
continue;
|
|
1729
1743
|
}
|
|
1730
|
-
var
|
|
1731
|
-
o && (t = E(E({}, t), o));
|
|
1732
|
-
var a = ln(n.stem);
|
|
1744
|
+
var a = br(n.stem);
|
|
1733
1745
|
a && (t = E(E({}, t), a));
|
|
1746
|
+
var s = cn(n.stem);
|
|
1747
|
+
s && (t = E(E({}, t), s));
|
|
1734
1748
|
}
|
|
1735
1749
|
return t;
|
|
1736
1750
|
}
|
|
@@ -3149,23 +3163,23 @@ var Ee = {
|
|
|
3149
3163
|
"h"
|
|
3150
3164
|
]
|
|
3151
3165
|
};
|
|
3152
|
-
function
|
|
3166
|
+
function mn(e, t) {
|
|
3153
3167
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
3154
3168
|
var n = e.charAt(i);
|
|
3155
3169
|
if (n === "j") {
|
|
3156
|
-
for (var
|
|
3157
|
-
|
|
3158
|
-
var
|
|
3159
|
-
for ((u == "H" || u == "k") && (
|
|
3170
|
+
for (var o = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
3171
|
+
o++, i++;
|
|
3172
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pn(t);
|
|
3173
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
3160
3174
|
r += l;
|
|
3161
|
-
for (;
|
|
3175
|
+
for (; a-- > 0; )
|
|
3162
3176
|
r = u + r;
|
|
3163
3177
|
} else
|
|
3164
3178
|
n === "J" ? r += "H" : r += n;
|
|
3165
3179
|
}
|
|
3166
3180
|
return r;
|
|
3167
3181
|
}
|
|
3168
|
-
function
|
|
3182
|
+
function pn(e) {
|
|
3169
3183
|
var t = e.hourCycle;
|
|
3170
3184
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3171
3185
|
e.hourCycles && // @ts-ignore
|
|
@@ -3187,20 +3201,20 @@ function fn(e) {
|
|
|
3187
3201
|
var n = Ee[i || ""] || Ee[r || ""] || Ee["".concat(r, "-001")] || Ee["001"];
|
|
3188
3202
|
return n[0];
|
|
3189
3203
|
}
|
|
3190
|
-
var
|
|
3204
|
+
var We, dn = new RegExp("^".concat(dr.source, "*")), yn = new RegExp("".concat(dr.source, "*$"));
|
|
3191
3205
|
function _(e, t) {
|
|
3192
3206
|
return { start: e, end: t };
|
|
3193
3207
|
}
|
|
3194
|
-
var
|
|
3208
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), bn = !!String.fromCodePoint, vn = !!Object.fromEntries, _n = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, xn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, Ln = Tn ? Number.isSafeInteger : function(e) {
|
|
3195
3209
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3196
|
-
},
|
|
3210
|
+
}, nt = !0;
|
|
3197
3211
|
try {
|
|
3198
|
-
var
|
|
3199
|
-
|
|
3212
|
+
var Sn = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3213
|
+
nt = ((We = Sn.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
|
|
3200
3214
|
} catch (e) {
|
|
3201
|
-
|
|
3215
|
+
nt = !1;
|
|
3202
3216
|
}
|
|
3203
|
-
var
|
|
3217
|
+
var Rt = gn ? (
|
|
3204
3218
|
// Native
|
|
3205
3219
|
function(t, r, i) {
|
|
3206
3220
|
return t.startsWith(r, i);
|
|
@@ -3210,31 +3224,31 @@ var Nt = pn ? (
|
|
|
3210
3224
|
function(t, r, i) {
|
|
3211
3225
|
return t.slice(i, i + r.length) === r;
|
|
3212
3226
|
}
|
|
3213
|
-
),
|
|
3227
|
+
), ot = bn ? String.fromCodePoint : (
|
|
3214
3228
|
// IE11
|
|
3215
3229
|
function() {
|
|
3216
3230
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
3217
3231
|
t[r] = arguments[r];
|
|
3218
|
-
for (var i = "", n = t.length,
|
|
3219
|
-
if (
|
|
3220
|
-
throw RangeError(
|
|
3221
|
-
i +=
|
|
3232
|
+
for (var i = "", n = t.length, o = 0, a; n > o; ) {
|
|
3233
|
+
if (a = t[o++], a > 1114111)
|
|
3234
|
+
throw RangeError(a + " is not a valid code point");
|
|
3235
|
+
i += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
3222
3236
|
}
|
|
3223
3237
|
return i;
|
|
3224
3238
|
}
|
|
3225
|
-
),
|
|
3239
|
+
), Dt = (
|
|
3226
3240
|
// native
|
|
3227
|
-
|
|
3241
|
+
vn ? Object.fromEntries : (
|
|
3228
3242
|
// Ponyfill
|
|
3229
3243
|
function(t) {
|
|
3230
3244
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
3231
|
-
var
|
|
3232
|
-
r[
|
|
3245
|
+
var o = n[i], a = o[0], s = o[1];
|
|
3246
|
+
r[a] = s;
|
|
3233
3247
|
}
|
|
3234
3248
|
return r;
|
|
3235
3249
|
}
|
|
3236
3250
|
)
|
|
3237
|
-
),
|
|
3251
|
+
), vr = _n ? (
|
|
3238
3252
|
// Native
|
|
3239
3253
|
function(t, r) {
|
|
3240
3254
|
return t.codePointAt(r);
|
|
@@ -3244,11 +3258,11 @@ var Nt = pn ? (
|
|
|
3244
3258
|
function(t, r) {
|
|
3245
3259
|
var i = t.length;
|
|
3246
3260
|
if (!(r < 0 || r >= i)) {
|
|
3247
|
-
var n = t.charCodeAt(r),
|
|
3248
|
-
return n < 55296 || n > 56319 || r + 1 === i || (
|
|
3261
|
+
var n = t.charCodeAt(r), o;
|
|
3262
|
+
return n < 55296 || n > 56319 || r + 1 === i || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
3249
3263
|
}
|
|
3250
3264
|
}
|
|
3251
|
-
),
|
|
3265
|
+
), wn = En ? (
|
|
3252
3266
|
// Native
|
|
3253
3267
|
function(t) {
|
|
3254
3268
|
return t.trimStart();
|
|
@@ -3256,9 +3270,9 @@ var Nt = pn ? (
|
|
|
3256
3270
|
) : (
|
|
3257
3271
|
// Ponyfill
|
|
3258
3272
|
function(t) {
|
|
3259
|
-
return t.replace(
|
|
3273
|
+
return t.replace(dn, "");
|
|
3260
3274
|
}
|
|
3261
|
-
),
|
|
3275
|
+
), An = xn ? (
|
|
3262
3276
|
// Native
|
|
3263
3277
|
function(t) {
|
|
3264
3278
|
return t.trimEnd();
|
|
@@ -3266,32 +3280,32 @@ var Nt = pn ? (
|
|
|
3266
3280
|
) : (
|
|
3267
3281
|
// Ponyfill
|
|
3268
3282
|
function(t) {
|
|
3269
|
-
return t.replace(
|
|
3283
|
+
return t.replace(yn, "");
|
|
3270
3284
|
}
|
|
3271
3285
|
);
|
|
3272
|
-
function
|
|
3286
|
+
function _r(e, t) {
|
|
3273
3287
|
return new RegExp(e, t);
|
|
3274
3288
|
}
|
|
3275
3289
|
var st;
|
|
3276
|
-
if (
|
|
3277
|
-
var
|
|
3290
|
+
if (nt) {
|
|
3291
|
+
var Ut = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3278
3292
|
st = function(t, r) {
|
|
3279
3293
|
var i;
|
|
3280
|
-
|
|
3281
|
-
var n =
|
|
3294
|
+
Ut.lastIndex = r;
|
|
3295
|
+
var n = Ut.exec(t);
|
|
3282
3296
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
3283
3297
|
};
|
|
3284
3298
|
} else
|
|
3285
3299
|
st = function(t, r) {
|
|
3286
3300
|
for (var i = []; ; ) {
|
|
3287
|
-
var n =
|
|
3288
|
-
if (n === void 0 ||
|
|
3301
|
+
var n = vr(t, r);
|
|
3302
|
+
if (n === void 0 || Er(n) || Bn(n))
|
|
3289
3303
|
break;
|
|
3290
3304
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
3291
3305
|
}
|
|
3292
|
-
return
|
|
3306
|
+
return ot.apply(void 0, i);
|
|
3293
3307
|
};
|
|
3294
|
-
var
|
|
3308
|
+
var Pn = (
|
|
3295
3309
|
/** @class */
|
|
3296
3310
|
function() {
|
|
3297
3311
|
function e(t, r) {
|
|
@@ -3303,35 +3317,35 @@ var wn = (
|
|
|
3303
3317
|
return this.parseMessage(0, "", !1);
|
|
3304
3318
|
}, e.prototype.parseMessage = function(t, r, i) {
|
|
3305
3319
|
for (var n = []; !this.isEOF(); ) {
|
|
3306
|
-
var
|
|
3307
|
-
if (
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3310
|
-
return
|
|
3311
|
-
n.push(
|
|
3320
|
+
var o = this.char();
|
|
3321
|
+
if (o === 123) {
|
|
3322
|
+
var a = this.parseArgument(t, i);
|
|
3323
|
+
if (a.err)
|
|
3324
|
+
return a;
|
|
3325
|
+
n.push(a.val);
|
|
3312
3326
|
} else {
|
|
3313
|
-
if (
|
|
3327
|
+
if (o === 125 && t > 0)
|
|
3314
3328
|
break;
|
|
3315
|
-
if (
|
|
3316
|
-
var
|
|
3329
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3330
|
+
var s = this.clonePosition();
|
|
3317
3331
|
this.bump(), n.push({
|
|
3318
3332
|
type: S.pound,
|
|
3319
|
-
location: _(
|
|
3333
|
+
location: _(s, this.clonePosition())
|
|
3320
3334
|
});
|
|
3321
|
-
} else if (
|
|
3335
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3322
3336
|
if (i)
|
|
3323
3337
|
break;
|
|
3324
3338
|
return this.error(b.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
3325
|
-
} else if (
|
|
3326
|
-
var
|
|
3327
|
-
if (
|
|
3328
|
-
return
|
|
3329
|
-
n.push(
|
|
3339
|
+
} else if (o === 60 && !this.ignoreTag && at(this.peek() || 0)) {
|
|
3340
|
+
var a = this.parseTag(t, r);
|
|
3341
|
+
if (a.err)
|
|
3342
|
+
return a;
|
|
3343
|
+
n.push(a.val);
|
|
3330
3344
|
} else {
|
|
3331
|
-
var
|
|
3332
|
-
if (
|
|
3333
|
-
return
|
|
3334
|
-
n.push(
|
|
3345
|
+
var a = this.parseLiteral(t, r);
|
|
3346
|
+
if (a.err)
|
|
3347
|
+
return a;
|
|
3348
|
+
n.push(a.val);
|
|
3335
3349
|
}
|
|
3336
3350
|
}
|
|
3337
3351
|
}
|
|
@@ -3350,49 +3364,49 @@ var wn = (
|
|
|
3350
3364
|
err: null
|
|
3351
3365
|
};
|
|
3352
3366
|
if (this.bumpIf(">")) {
|
|
3353
|
-
var
|
|
3354
|
-
if (
|
|
3355
|
-
return
|
|
3356
|
-
var
|
|
3367
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
3368
|
+
if (o.err)
|
|
3369
|
+
return o;
|
|
3370
|
+
var a = o.val, s = this.clonePosition();
|
|
3357
3371
|
if (this.bumpIf("</")) {
|
|
3358
|
-
if (this.isEOF() || !
|
|
3359
|
-
return this.error(b.INVALID_TAG, _(
|
|
3372
|
+
if (this.isEOF() || !at(this.char()))
|
|
3373
|
+
return this.error(b.INVALID_TAG, _(s, this.clonePosition()));
|
|
3360
3374
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3361
3375
|
return n !== u ? this.error(b.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3362
3376
|
val: {
|
|
3363
3377
|
type: S.tag,
|
|
3364
3378
|
value: n,
|
|
3365
|
-
children:
|
|
3379
|
+
children: a,
|
|
3366
3380
|
location: _(i, this.clonePosition())
|
|
3367
3381
|
},
|
|
3368
3382
|
err: null
|
|
3369
|
-
} : this.error(b.INVALID_TAG, _(
|
|
3383
|
+
} : this.error(b.INVALID_TAG, _(s, this.clonePosition())));
|
|
3370
3384
|
} else
|
|
3371
3385
|
return this.error(b.UNCLOSED_TAG, _(i, this.clonePosition()));
|
|
3372
3386
|
} else
|
|
3373
3387
|
return this.error(b.INVALID_TAG, _(i, this.clonePosition()));
|
|
3374
3388
|
}, e.prototype.parseTagName = function() {
|
|
3375
3389
|
var t = this.offset();
|
|
3376
|
-
for (this.bump(); !this.isEOF() &&
|
|
3390
|
+
for (this.bump(); !this.isEOF() && In(this.char()); )
|
|
3377
3391
|
this.bump();
|
|
3378
3392
|
return this.message.slice(t, this.offset());
|
|
3379
3393
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
3380
3394
|
for (var i = this.clonePosition(), n = ""; ; ) {
|
|
3381
|
-
var
|
|
3382
|
-
if (s) {
|
|
3383
|
-
n += s;
|
|
3384
|
-
continue;
|
|
3385
|
-
}
|
|
3386
|
-
var o = this.tryParseUnquoted(t, r);
|
|
3395
|
+
var o = this.tryParseQuote(r);
|
|
3387
3396
|
if (o) {
|
|
3388
3397
|
n += o;
|
|
3389
3398
|
continue;
|
|
3390
3399
|
}
|
|
3391
|
-
var a = this.
|
|
3400
|
+
var a = this.tryParseUnquoted(t, r);
|
|
3392
3401
|
if (a) {
|
|
3393
3402
|
n += a;
|
|
3394
3403
|
continue;
|
|
3395
3404
|
}
|
|
3405
|
+
var s = this.tryParseLeftAngleBracket();
|
|
3406
|
+
if (s) {
|
|
3407
|
+
n += s;
|
|
3408
|
+
continue;
|
|
3409
|
+
}
|
|
3396
3410
|
break;
|
|
3397
3411
|
}
|
|
3398
3412
|
var l = _(i, this.clonePosition());
|
|
@@ -3402,7 +3416,7 @@ var wn = (
|
|
|
3402
3416
|
};
|
|
3403
3417
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3404
3418
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3405
|
-
!
|
|
3419
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3406
3420
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3407
3421
|
if (this.isEOF() || this.char() !== 39)
|
|
3408
3422
|
return null;
|
|
@@ -3436,12 +3450,12 @@ var wn = (
|
|
|
3436
3450
|
r.push(i);
|
|
3437
3451
|
this.bump();
|
|
3438
3452
|
}
|
|
3439
|
-
return
|
|
3453
|
+
return ot.apply(void 0, r);
|
|
3440
3454
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3441
3455
|
if (this.isEOF())
|
|
3442
3456
|
return null;
|
|
3443
3457
|
var i = this.char();
|
|
3444
|
-
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(),
|
|
3458
|
+
return i === 60 || i === 123 || i === 35 && (r === "plural" || r === "selectordinal") || i === 125 && t > 0 ? null : (this.bump(), ot(i));
|
|
3445
3459
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3446
3460
|
var i = this.clonePosition();
|
|
3447
3461
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3472,13 +3486,13 @@ var wn = (
|
|
|
3472
3486
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3473
3487
|
var t = this.clonePosition(), r = this.offset(), i = st(this.message, r), n = r + i.length;
|
|
3474
3488
|
this.bumpTo(n);
|
|
3475
|
-
var
|
|
3476
|
-
return { value: i, location:
|
|
3489
|
+
var o = this.clonePosition(), a = _(t, o);
|
|
3490
|
+
return { value: i, location: a };
|
|
3477
3491
|
}, e.prototype.parseArgumentOptions = function(t, r, i, n) {
|
|
3478
|
-
var
|
|
3479
|
-
switch (
|
|
3492
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3493
|
+
switch (s) {
|
|
3480
3494
|
case "":
|
|
3481
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE, _(
|
|
3495
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, _(a, l));
|
|
3482
3496
|
case "number":
|
|
3483
3497
|
case "date":
|
|
3484
3498
|
case "time": {
|
|
@@ -3489,47 +3503,47 @@ var wn = (
|
|
|
3489
3503
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3490
3504
|
if (c.err)
|
|
3491
3505
|
return c;
|
|
3492
|
-
var f =
|
|
3506
|
+
var f = An(c.val);
|
|
3493
3507
|
if (f.length === 0)
|
|
3494
3508
|
return this.error(b.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
3495
|
-
var
|
|
3496
|
-
u = { style: f, styleLocation:
|
|
3509
|
+
var p = _(h, this.clonePosition());
|
|
3510
|
+
u = { style: f, styleLocation: p };
|
|
3497
3511
|
}
|
|
3498
3512
|
var y = this.tryParseArgumentClose(n);
|
|
3499
3513
|
if (y.err)
|
|
3500
3514
|
return y;
|
|
3501
|
-
var
|
|
3502
|
-
if (u &&
|
|
3503
|
-
var v =
|
|
3504
|
-
if (
|
|
3515
|
+
var d = _(n, this.clonePosition());
|
|
3516
|
+
if (u && Rt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3517
|
+
var v = wn(u.style.slice(2));
|
|
3518
|
+
if (s === "number") {
|
|
3505
3519
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
3506
3520
|
return c.err ? c : {
|
|
3507
|
-
val: { type: S.number, value: i, location:
|
|
3521
|
+
val: { type: S.number, value: i, location: d, style: c.val },
|
|
3508
3522
|
err: null
|
|
3509
3523
|
};
|
|
3510
3524
|
} else {
|
|
3511
3525
|
if (v.length === 0)
|
|
3512
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3526
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3513
3527
|
var H = v;
|
|
3514
|
-
this.locale && (H =
|
|
3528
|
+
this.locale && (H = mn(v, this.locale));
|
|
3515
3529
|
var f = {
|
|
3516
3530
|
type: te.dateTime,
|
|
3517
3531
|
pattern: H,
|
|
3518
3532
|
location: u.styleLocation,
|
|
3519
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3520
|
-
}, g =
|
|
3533
|
+
parsedOptions: this.shouldParseSkeletons ? sn(H) : {}
|
|
3534
|
+
}, g = s === "date" ? S.date : S.time;
|
|
3521
3535
|
return {
|
|
3522
|
-
val: { type: g, value: i, location:
|
|
3536
|
+
val: { type: g, value: i, location: d, style: f },
|
|
3523
3537
|
err: null
|
|
3524
3538
|
};
|
|
3525
3539
|
}
|
|
3526
3540
|
}
|
|
3527
3541
|
return {
|
|
3528
3542
|
val: {
|
|
3529
|
-
type:
|
|
3543
|
+
type: s === "number" ? S.number : s === "date" ? S.date : S.time,
|
|
3530
3544
|
value: i,
|
|
3531
|
-
location:
|
|
3532
|
-
style: (
|
|
3545
|
+
location: d,
|
|
3546
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3533
3547
|
},
|
|
3534
3548
|
err: null
|
|
3535
3549
|
};
|
|
@@ -3542,7 +3556,7 @@ var wn = (
|
|
|
3542
3556
|
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, _(w, E({}, w)));
|
|
3543
3557
|
this.bumpSpace();
|
|
3544
3558
|
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
3545
|
-
if (
|
|
3559
|
+
if (s !== "select" && D.value === "offset") {
|
|
3546
3560
|
if (!this.bumpIf(":"))
|
|
3547
3561
|
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
3548
3562
|
this.bumpSpace();
|
|
@@ -3551,18 +3565,18 @@ var wn = (
|
|
|
3551
3565
|
return c;
|
|
3552
3566
|
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
|
|
3553
3567
|
}
|
|
3554
|
-
var U = this.tryParsePluralOrSelectOptions(t,
|
|
3568
|
+
var U = this.tryParsePluralOrSelectOptions(t, s, r, D);
|
|
3555
3569
|
if (U.err)
|
|
3556
3570
|
return U;
|
|
3557
3571
|
var y = this.tryParseArgumentClose(n);
|
|
3558
3572
|
if (y.err)
|
|
3559
3573
|
return y;
|
|
3560
3574
|
var X = _(n, this.clonePosition());
|
|
3561
|
-
return
|
|
3575
|
+
return s === "select" ? {
|
|
3562
3576
|
val: {
|
|
3563
3577
|
type: S.select,
|
|
3564
3578
|
value: i,
|
|
3565
|
-
options:
|
|
3579
|
+
options: Dt(U.val),
|
|
3566
3580
|
location: X
|
|
3567
3581
|
},
|
|
3568
3582
|
err: null
|
|
@@ -3570,16 +3584,16 @@ var wn = (
|
|
|
3570
3584
|
val: {
|
|
3571
3585
|
type: S.plural,
|
|
3572
3586
|
value: i,
|
|
3573
|
-
options:
|
|
3587
|
+
options: Dt(U.val),
|
|
3574
3588
|
offset: M,
|
|
3575
|
-
pluralType:
|
|
3589
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3576
3590
|
location: X
|
|
3577
3591
|
},
|
|
3578
3592
|
err: null
|
|
3579
3593
|
};
|
|
3580
3594
|
}
|
|
3581
3595
|
default:
|
|
3582
|
-
return this.error(b.INVALID_ARGUMENT_TYPE, _(
|
|
3596
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, _(a, l));
|
|
3583
3597
|
}
|
|
3584
3598
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3585
3599
|
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -3621,7 +3635,7 @@ var wn = (
|
|
|
3621
3635
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3622
3636
|
var i = [];
|
|
3623
3637
|
try {
|
|
3624
|
-
i =
|
|
3638
|
+
i = un(t);
|
|
3625
3639
|
} catch (n) {
|
|
3626
3640
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3627
3641
|
}
|
|
@@ -3630,12 +3644,12 @@ var wn = (
|
|
|
3630
3644
|
type: te.number,
|
|
3631
3645
|
tokens: i,
|
|
3632
3646
|
location: r,
|
|
3633
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3647
|
+
parsedOptions: this.shouldParseSkeletons ? fn(i) : {}
|
|
3634
3648
|
},
|
|
3635
3649
|
err: null
|
|
3636
3650
|
};
|
|
3637
3651
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, i, n) {
|
|
3638
|
-
for (var
|
|
3652
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = n.value, h = n.location; ; ) {
|
|
3639
3653
|
if (u.length === 0) {
|
|
3640
3654
|
var c = this.clonePosition();
|
|
3641
3655
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -3648,37 +3662,37 @@ var wn = (
|
|
|
3648
3662
|
}
|
|
3649
3663
|
if (l.has(u))
|
|
3650
3664
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3651
|
-
u === "other" && (
|
|
3652
|
-
var
|
|
3665
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3666
|
+
var p = this.clonePosition();
|
|
3653
3667
|
if (!this.bumpIf("{"))
|
|
3654
3668
|
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
3655
3669
|
var y = this.parseMessage(t + 1, r, i);
|
|
3656
3670
|
if (y.err)
|
|
3657
3671
|
return y;
|
|
3658
|
-
var
|
|
3659
|
-
if (
|
|
3660
|
-
return
|
|
3661
|
-
|
|
3672
|
+
var d = this.tryParseArgumentClose(p);
|
|
3673
|
+
if (d.err)
|
|
3674
|
+
return d;
|
|
3675
|
+
s.push([
|
|
3662
3676
|
u,
|
|
3663
3677
|
{
|
|
3664
3678
|
value: y.val,
|
|
3665
|
-
location: _(
|
|
3679
|
+
location: _(p, this.clonePosition())
|
|
3666
3680
|
}
|
|
3667
|
-
]), l.add(u), this.bumpSpace(),
|
|
3681
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3668
3682
|
}
|
|
3669
|
-
return
|
|
3683
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3670
3684
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3671
3685
|
var i = 1, n = this.clonePosition();
|
|
3672
3686
|
this.bumpIf("+") || this.bumpIf("-") && (i = -1);
|
|
3673
|
-
for (var
|
|
3674
|
-
var
|
|
3675
|
-
if (
|
|
3676
|
-
|
|
3687
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3688
|
+
var s = this.char();
|
|
3689
|
+
if (s >= 48 && s <= 57)
|
|
3690
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3677
3691
|
else
|
|
3678
3692
|
break;
|
|
3679
3693
|
}
|
|
3680
3694
|
var l = _(n, this.clonePosition());
|
|
3681
|
-
return
|
|
3695
|
+
return o ? (a *= i, Ln(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3682
3696
|
}, e.prototype.offset = function() {
|
|
3683
3697
|
return this.position.offset;
|
|
3684
3698
|
}, e.prototype.isEOF = function() {
|
|
@@ -3693,7 +3707,7 @@ var wn = (
|
|
|
3693
3707
|
var t = this.position.offset;
|
|
3694
3708
|
if (t >= this.message.length)
|
|
3695
3709
|
throw Error("out of bound");
|
|
3696
|
-
var r =
|
|
3710
|
+
var r = vr(this.message, t);
|
|
3697
3711
|
if (r === void 0)
|
|
3698
3712
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3699
3713
|
return r;
|
|
@@ -3712,7 +3726,7 @@ var wn = (
|
|
|
3712
3726
|
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);
|
|
3713
3727
|
}
|
|
3714
3728
|
}, e.prototype.bumpIf = function(t) {
|
|
3715
|
-
if (
|
|
3729
|
+
if (Rt(this.message, t, this.offset())) {
|
|
3716
3730
|
for (var r = 0; r < t.length; r++)
|
|
3717
3731
|
this.bump();
|
|
3718
3732
|
return !0;
|
|
@@ -3734,7 +3748,7 @@ var wn = (
|
|
|
3734
3748
|
break;
|
|
3735
3749
|
}
|
|
3736
3750
|
}, e.prototype.bumpSpace = function() {
|
|
3737
|
-
for (; !this.isEOF() &&
|
|
3751
|
+
for (; !this.isEOF() && Er(this.char()); )
|
|
3738
3752
|
this.bump();
|
|
3739
3753
|
}, e.prototype.peek = function() {
|
|
3740
3754
|
if (this.isEOF())
|
|
@@ -3744,38 +3758,38 @@ var wn = (
|
|
|
3744
3758
|
}, e;
|
|
3745
3759
|
}()
|
|
3746
3760
|
);
|
|
3747
|
-
function
|
|
3761
|
+
function at(e) {
|
|
3748
3762
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3749
3763
|
}
|
|
3750
|
-
function
|
|
3751
|
-
return
|
|
3764
|
+
function Hn(e) {
|
|
3765
|
+
return at(e) || e === 47;
|
|
3752
3766
|
}
|
|
3753
|
-
function
|
|
3767
|
+
function In(e) {
|
|
3754
3768
|
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;
|
|
3755
3769
|
}
|
|
3756
|
-
function
|
|
3770
|
+
function Er(e) {
|
|
3757
3771
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3758
3772
|
}
|
|
3759
|
-
function
|
|
3773
|
+
function Bn(e) {
|
|
3760
3774
|
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;
|
|
3761
3775
|
}
|
|
3762
|
-
function
|
|
3776
|
+
function ut(e) {
|
|
3763
3777
|
e.forEach(function(t) {
|
|
3764
|
-
if (delete t.location,
|
|
3778
|
+
if (delete t.location, cr(t) || fr(t))
|
|
3765
3779
|
for (var r in t.options)
|
|
3766
|
-
delete t.options[r].location,
|
|
3780
|
+
delete t.options[r].location, ut(t.options[r].value);
|
|
3767
3781
|
else
|
|
3768
|
-
|
|
3782
|
+
ur(t) && pr(t.style) || (lr(t) || hr(t)) && it(t.style) ? delete t.style.location : mr(t) && ut(t.children);
|
|
3769
3783
|
});
|
|
3770
3784
|
}
|
|
3771
|
-
function
|
|
3785
|
+
function On(e, t) {
|
|
3772
3786
|
t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3773
|
-
var r = new
|
|
3787
|
+
var r = new Pn(e, t).parse();
|
|
3774
3788
|
if (r.err) {
|
|
3775
3789
|
var i = SyntaxError(b[r.err.kind]);
|
|
3776
3790
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
3777
3791
|
}
|
|
3778
|
-
return t != null && t.captureLocation ||
|
|
3792
|
+
return t != null && t.captureLocation || ut(r.val), r.val;
|
|
3779
3793
|
}
|
|
3780
3794
|
var re;
|
|
3781
3795
|
(function(e) {
|
|
@@ -3786,23 +3800,23 @@ var Ce = (
|
|
|
3786
3800
|
function(e) {
|
|
3787
3801
|
j(t, e);
|
|
3788
3802
|
function t(r, i, n) {
|
|
3789
|
-
var
|
|
3790
|
-
return
|
|
3803
|
+
var o = e.call(this, r) || this;
|
|
3804
|
+
return o.code = i, o.originalMessage = n, o;
|
|
3791
3805
|
}
|
|
3792
3806
|
return t.prototype.toString = function() {
|
|
3793
3807
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3794
3808
|
}, t;
|
|
3795
3809
|
}(Error)
|
|
3796
|
-
),
|
|
3810
|
+
), $t = (
|
|
3797
3811
|
/** @class */
|
|
3798
3812
|
function(e) {
|
|
3799
3813
|
j(t, e);
|
|
3800
|
-
function t(r, i, n,
|
|
3801
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), re.INVALID_VALUE,
|
|
3814
|
+
function t(r, i, n, o) {
|
|
3815
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(i, '". Options are "').concat(Object.keys(n).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3802
3816
|
}
|
|
3803
3817
|
return t;
|
|
3804
3818
|
}(Ce)
|
|
3805
|
-
),
|
|
3819
|
+
), Cn = (
|
|
3806
3820
|
/** @class */
|
|
3807
3821
|
function(e) {
|
|
3808
3822
|
j(t, e);
|
|
@@ -3811,7 +3825,7 @@ var Ce = (
|
|
|
3811
3825
|
}
|
|
3812
3826
|
return t;
|
|
3813
3827
|
}(Ce)
|
|
3814
|
-
),
|
|
3828
|
+
), Nn = (
|
|
3815
3829
|
/** @class */
|
|
3816
3830
|
function(e) {
|
|
3817
3831
|
j(t, e);
|
|
@@ -3824,124 +3838,124 @@ var Ce = (
|
|
|
3824
3838
|
(function(e) {
|
|
3825
3839
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3826
3840
|
})(B || (B = {}));
|
|
3827
|
-
function
|
|
3841
|
+
function Mn(e) {
|
|
3828
3842
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3829
3843
|
var i = t[t.length - 1];
|
|
3830
3844
|
return !i || i.type !== B.literal || r.type !== B.literal ? t.push(r) : i.value += r.value, t;
|
|
3831
3845
|
}, []);
|
|
3832
3846
|
}
|
|
3833
|
-
function
|
|
3847
|
+
function Rn(e) {
|
|
3834
3848
|
return typeof e == "function";
|
|
3835
3849
|
}
|
|
3836
|
-
function we(e, t, r, i, n,
|
|
3837
|
-
if (e.length === 1 &&
|
|
3850
|
+
function we(e, t, r, i, n, o, a) {
|
|
3851
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3838
3852
|
return [
|
|
3839
3853
|
{
|
|
3840
3854
|
type: B.literal,
|
|
3841
3855
|
value: e[0].value
|
|
3842
3856
|
}
|
|
3843
3857
|
];
|
|
3844
|
-
for (var
|
|
3858
|
+
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3845
3859
|
var h = u[l];
|
|
3846
|
-
if (
|
|
3847
|
-
|
|
3860
|
+
if (Ot(h)) {
|
|
3861
|
+
s.push({
|
|
3848
3862
|
type: B.literal,
|
|
3849
3863
|
value: h.value
|
|
3850
3864
|
});
|
|
3851
3865
|
continue;
|
|
3852
3866
|
}
|
|
3853
|
-
if (
|
|
3854
|
-
typeof
|
|
3867
|
+
if (nn(h)) {
|
|
3868
|
+
typeof o == "number" && s.push({
|
|
3855
3869
|
type: B.literal,
|
|
3856
|
-
value: r.getNumberFormat(t).format(
|
|
3870
|
+
value: r.getNumberFormat(t).format(o)
|
|
3857
3871
|
});
|
|
3858
3872
|
continue;
|
|
3859
3873
|
}
|
|
3860
3874
|
var c = h.value;
|
|
3861
3875
|
if (!(n && c in n))
|
|
3862
|
-
throw new
|
|
3876
|
+
throw new Nn(c, a);
|
|
3863
3877
|
var f = n[c];
|
|
3864
|
-
if (
|
|
3865
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3878
|
+
if (rn(h)) {
|
|
3879
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3866
3880
|
type: typeof f == "string" ? B.literal : B.object,
|
|
3867
3881
|
value: f
|
|
3868
3882
|
});
|
|
3869
3883
|
continue;
|
|
3870
3884
|
}
|
|
3871
|
-
if (
|
|
3872
|
-
var
|
|
3873
|
-
|
|
3885
|
+
if (lr(h)) {
|
|
3886
|
+
var p = typeof h.style == "string" ? i.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
|
|
3887
|
+
s.push({
|
|
3874
3888
|
type: B.literal,
|
|
3875
|
-
value: r.getDateTimeFormat(t,
|
|
3889
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3876
3890
|
});
|
|
3877
3891
|
continue;
|
|
3878
3892
|
}
|
|
3879
|
-
if (
|
|
3880
|
-
var
|
|
3881
|
-
|
|
3893
|
+
if (hr(h)) {
|
|
3894
|
+
var p = typeof h.style == "string" ? i.time[h.style] : it(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3895
|
+
s.push({
|
|
3882
3896
|
type: B.literal,
|
|
3883
|
-
value: r.getDateTimeFormat(t,
|
|
3897
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3884
3898
|
});
|
|
3885
3899
|
continue;
|
|
3886
3900
|
}
|
|
3887
|
-
if (
|
|
3888
|
-
var
|
|
3889
|
-
|
|
3901
|
+
if (ur(h)) {
|
|
3902
|
+
var p = typeof h.style == "string" ? i.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3903
|
+
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3890
3904
|
type: B.literal,
|
|
3891
|
-
value: r.getNumberFormat(t,
|
|
3905
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3892
3906
|
});
|
|
3893
3907
|
continue;
|
|
3894
3908
|
}
|
|
3895
|
-
if (
|
|
3896
|
-
var y = h.children,
|
|
3897
|
-
if (!
|
|
3898
|
-
throw new
|
|
3899
|
-
var H = we(y, t, r, i, n,
|
|
3909
|
+
if (mr(h)) {
|
|
3910
|
+
var y = h.children, d = h.value, v = n[d];
|
|
3911
|
+
if (!Rn(v))
|
|
3912
|
+
throw new Cn(d, "function", a);
|
|
3913
|
+
var H = we(y, t, r, i, n, o), g = v(H.map(function(M) {
|
|
3900
3914
|
return M.value;
|
|
3901
3915
|
}));
|
|
3902
|
-
Array.isArray(g) || (g = [g]),
|
|
3916
|
+
Array.isArray(g) || (g = [g]), s.push.apply(s, g.map(function(M) {
|
|
3903
3917
|
return {
|
|
3904
3918
|
type: typeof M == "string" ? B.literal : B.object,
|
|
3905
3919
|
value: M
|
|
3906
3920
|
};
|
|
3907
3921
|
}));
|
|
3908
3922
|
}
|
|
3909
|
-
if (
|
|
3923
|
+
if (cr(h)) {
|
|
3910
3924
|
var w = h.options[f] || h.options.other;
|
|
3911
3925
|
if (!w)
|
|
3912
|
-
throw new
|
|
3913
|
-
|
|
3926
|
+
throw new $t(h.value, f, Object.keys(h.options), a);
|
|
3927
|
+
s.push.apply(s, we(w.value, t, r, i, n));
|
|
3914
3928
|
continue;
|
|
3915
3929
|
}
|
|
3916
|
-
if (
|
|
3930
|
+
if (fr(h)) {
|
|
3917
3931
|
var w = h.options["=".concat(f)];
|
|
3918
3932
|
if (!w) {
|
|
3919
3933
|
if (!Intl.PluralRules)
|
|
3920
3934
|
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3921
3935
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3922
|
-
`, re.MISSING_INTL_API,
|
|
3936
|
+
`, re.MISSING_INTL_API, a);
|
|
3923
3937
|
var D = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3924
3938
|
w = h.options[D] || h.options.other;
|
|
3925
3939
|
}
|
|
3926
3940
|
if (!w)
|
|
3927
|
-
throw new
|
|
3928
|
-
|
|
3941
|
+
throw new $t(h.value, f, Object.keys(h.options), a);
|
|
3942
|
+
s.push.apply(s, we(w.value, t, r, i, n, f - (h.offset || 0)));
|
|
3929
3943
|
continue;
|
|
3930
3944
|
}
|
|
3931
3945
|
}
|
|
3932
|
-
return
|
|
3946
|
+
return Mn(s);
|
|
3933
3947
|
}
|
|
3934
|
-
function
|
|
3948
|
+
function Dn(e, t) {
|
|
3935
3949
|
return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3936
3950
|
return r[i] = E(E({}, e[i]), t[i] || {}), r;
|
|
3937
3951
|
}, {})) : e;
|
|
3938
3952
|
}
|
|
3939
|
-
function
|
|
3953
|
+
function Un(e, t) {
|
|
3940
3954
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3941
|
-
return r[i] =
|
|
3955
|
+
return r[i] = Dn(e[i], t[i]), r;
|
|
3942
3956
|
}, E({}, e)) : e;
|
|
3943
3957
|
}
|
|
3944
|
-
function
|
|
3958
|
+
function Xe(e) {
|
|
3945
3959
|
return {
|
|
3946
3960
|
create: function() {
|
|
3947
3961
|
return {
|
|
@@ -3955,50 +3969,50 @@ function We(e) {
|
|
|
3955
3969
|
}
|
|
3956
3970
|
};
|
|
3957
3971
|
}
|
|
3958
|
-
function
|
|
3972
|
+
function $n(e) {
|
|
3959
3973
|
return e === void 0 && (e = {
|
|
3960
3974
|
number: {},
|
|
3961
3975
|
dateTime: {},
|
|
3962
3976
|
pluralRules: {}
|
|
3963
3977
|
}), {
|
|
3964
|
-
getNumberFormat:
|
|
3978
|
+
getNumberFormat: ke(function() {
|
|
3965
3979
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3966
3980
|
r[i] = arguments[i];
|
|
3967
3981
|
return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
3968
3982
|
}, {
|
|
3969
|
-
cache:
|
|
3970
|
-
strategy:
|
|
3983
|
+
cache: Xe(e.number),
|
|
3984
|
+
strategy: Ve.variadic
|
|
3971
3985
|
}),
|
|
3972
|
-
getDateTimeFormat:
|
|
3986
|
+
getDateTimeFormat: ke(function() {
|
|
3973
3987
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3974
3988
|
r[i] = arguments[i];
|
|
3975
3989
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
|
|
3976
3990
|
}, {
|
|
3977
|
-
cache:
|
|
3978
|
-
strategy:
|
|
3991
|
+
cache: Xe(e.dateTime),
|
|
3992
|
+
strategy: Ve.variadic
|
|
3979
3993
|
}),
|
|
3980
|
-
getPluralRules:
|
|
3994
|
+
getPluralRules: ke(function() {
|
|
3981
3995
|
for (var t, r = [], i = 0; i < arguments.length; i++)
|
|
3982
3996
|
r[i] = arguments[i];
|
|
3983
3997
|
return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
|
|
3984
3998
|
}, {
|
|
3985
|
-
cache:
|
|
3986
|
-
strategy:
|
|
3999
|
+
cache: Xe(e.pluralRules),
|
|
4000
|
+
strategy: Ve.variadic
|
|
3987
4001
|
})
|
|
3988
4002
|
};
|
|
3989
4003
|
}
|
|
3990
|
-
var
|
|
4004
|
+
var Gn = (
|
|
3991
4005
|
/** @class */
|
|
3992
4006
|
function() {
|
|
3993
4007
|
function e(t, r, i, n) {
|
|
3994
4008
|
r === void 0 && (r = e.defaultLocale);
|
|
3995
|
-
var
|
|
4009
|
+
var o = this;
|
|
3996
4010
|
if (this.formatterCache = {
|
|
3997
4011
|
number: {},
|
|
3998
4012
|
dateTime: {},
|
|
3999
4013
|
pluralRules: {}
|
|
4000
4014
|
}, this.format = function(l) {
|
|
4001
|
-
var u =
|
|
4015
|
+
var u = o.formatToParts(l);
|
|
4002
4016
|
if (u.length === 1)
|
|
4003
4017
|
return u[0].value;
|
|
4004
4018
|
var h = u.reduce(function(c, f) {
|
|
@@ -4006,26 +4020,26 @@ var Un = (
|
|
|
4006
4020
|
}, []);
|
|
4007
4021
|
return h.length <= 1 ? h[0] || "" : h;
|
|
4008
4022
|
}, this.formatToParts = function(l) {
|
|
4009
|
-
return we(
|
|
4023
|
+
return we(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
4010
4024
|
}, this.resolvedOptions = function() {
|
|
4011
4025
|
var l;
|
|
4012
4026
|
return {
|
|
4013
|
-
locale: ((l =
|
|
4027
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
4014
4028
|
};
|
|
4015
4029
|
}, this.getAst = function() {
|
|
4016
|
-
return
|
|
4030
|
+
return o.ast;
|
|
4017
4031
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
4018
4032
|
if (this.message = t, !e.__parse)
|
|
4019
4033
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
4020
|
-
var
|
|
4021
|
-
|
|
4022
|
-
var
|
|
4023
|
-
this.ast = e.__parse(t, E(E({},
|
|
4034
|
+
var a = n || {};
|
|
4035
|
+
a.formatters;
|
|
4036
|
+
var s = bi(a, ["formatters"]);
|
|
4037
|
+
this.ast = e.__parse(t, E(E({}, s), { locale: this.resolvedLocale }));
|
|
4024
4038
|
} else
|
|
4025
4039
|
this.ast = t;
|
|
4026
4040
|
if (!Array.isArray(this.ast))
|
|
4027
4041
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
4028
|
-
this.formats =
|
|
4042
|
+
this.formats = Un(e.formats, i), this.formatters = n && n.formatters || $n(this.formatterCache);
|
|
4029
4043
|
}
|
|
4030
4044
|
return Object.defineProperty(e, "defaultLocale", {
|
|
4031
4045
|
get: function() {
|
|
@@ -4038,7 +4052,7 @@ var Un = (
|
|
|
4038
4052
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
4039
4053
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
4040
4054
|
}
|
|
4041
|
-
}, e.__parse =
|
|
4055
|
+
}, e.__parse = On, e.formats = {
|
|
4042
4056
|
number: {
|
|
4043
4057
|
integer: {
|
|
4044
4058
|
maximumFractionDigits: 0
|
|
@@ -4099,7 +4113,7 @@ var Un = (
|
|
|
4099
4113
|
}, e;
|
|
4100
4114
|
}()
|
|
4101
4115
|
);
|
|
4102
|
-
function
|
|
4116
|
+
function Fn(e, t) {
|
|
4103
4117
|
if (t == null)
|
|
4104
4118
|
return;
|
|
4105
4119
|
if (t in e)
|
|
@@ -4109,9 +4123,9 @@ function $n(e, t) {
|
|
|
4109
4123
|
for (let n = 0; n < r.length; n++)
|
|
4110
4124
|
if (typeof i == "object") {
|
|
4111
4125
|
if (n > 0) {
|
|
4112
|
-
const
|
|
4113
|
-
if (
|
|
4114
|
-
i = i[
|
|
4126
|
+
const o = r.slice(n, r.length).join(".");
|
|
4127
|
+
if (o in i) {
|
|
4128
|
+
i = i[o];
|
|
4115
4129
|
break;
|
|
4116
4130
|
}
|
|
4117
4131
|
}
|
|
@@ -4120,92 +4134,92 @@ function $n(e, t) {
|
|
|
4120
4134
|
i = void 0;
|
|
4121
4135
|
return i;
|
|
4122
4136
|
}
|
|
4123
|
-
const k = {},
|
|
4137
|
+
const k = {}, jn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), xr = (e, t) => {
|
|
4124
4138
|
if (t == null)
|
|
4125
4139
|
return;
|
|
4126
4140
|
if (t in k && e in k[t])
|
|
4127
4141
|
return k[t][e];
|
|
4128
4142
|
const r = Ne(t);
|
|
4129
4143
|
for (let i = 0; i < r.length; i++) {
|
|
4130
|
-
const n = r[i],
|
|
4131
|
-
if (
|
|
4132
|
-
return
|
|
4144
|
+
const n = r[i], o = Vn(n, e);
|
|
4145
|
+
if (o)
|
|
4146
|
+
return jn(e, t, o);
|
|
4133
4147
|
}
|
|
4134
4148
|
};
|
|
4135
|
-
let
|
|
4136
|
-
const
|
|
4137
|
-
function
|
|
4138
|
-
return
|
|
4149
|
+
let pt;
|
|
4150
|
+
const pe = Oe({});
|
|
4151
|
+
function kn(e) {
|
|
4152
|
+
return pt[e] || null;
|
|
4139
4153
|
}
|
|
4140
|
-
function
|
|
4141
|
-
return e in
|
|
4154
|
+
function Tr(e) {
|
|
4155
|
+
return e in pt;
|
|
4142
4156
|
}
|
|
4143
|
-
function
|
|
4144
|
-
if (!
|
|
4157
|
+
function Vn(e, t) {
|
|
4158
|
+
if (!Tr(e))
|
|
4145
4159
|
return null;
|
|
4146
|
-
const r =
|
|
4147
|
-
return
|
|
4160
|
+
const r = kn(e);
|
|
4161
|
+
return Fn(r, t);
|
|
4148
4162
|
}
|
|
4149
|
-
function
|
|
4163
|
+
function Wn(e) {
|
|
4150
4164
|
if (e == null)
|
|
4151
4165
|
return;
|
|
4152
4166
|
const t = Ne(e);
|
|
4153
4167
|
for (let r = 0; r < t.length; r++) {
|
|
4154
4168
|
const i = t[r];
|
|
4155
|
-
if (
|
|
4169
|
+
if (Tr(i))
|
|
4156
4170
|
return i;
|
|
4157
4171
|
}
|
|
4158
4172
|
}
|
|
4159
|
-
function
|
|
4160
|
-
delete k[e],
|
|
4173
|
+
function Lr(e, ...t) {
|
|
4174
|
+
delete k[e], pe.update((r) => (r[e] = Qi.all([r[e] || {}, ...t]), r));
|
|
4161
4175
|
}
|
|
4162
|
-
|
|
4163
|
-
[
|
|
4176
|
+
oe(
|
|
4177
|
+
[pe],
|
|
4164
4178
|
([e]) => Object.keys(e)
|
|
4165
4179
|
);
|
|
4166
|
-
|
|
4180
|
+
pe.subscribe((e) => pt = e);
|
|
4167
4181
|
const Ae = {};
|
|
4168
|
-
function
|
|
4182
|
+
function Xn(e, t) {
|
|
4169
4183
|
Ae[e].delete(t), Ae[e].size === 0 && delete Ae[e];
|
|
4170
4184
|
}
|
|
4171
|
-
function
|
|
4185
|
+
function Sr(e) {
|
|
4172
4186
|
return Ae[e];
|
|
4173
4187
|
}
|
|
4174
|
-
function
|
|
4188
|
+
function zn(e) {
|
|
4175
4189
|
return Ne(e).map((t) => {
|
|
4176
|
-
const r =
|
|
4190
|
+
const r = Sr(t);
|
|
4177
4191
|
return [t, r ? [...r] : []];
|
|
4178
4192
|
}).filter(([, t]) => t.length > 0);
|
|
4179
4193
|
}
|
|
4180
|
-
function
|
|
4194
|
+
function lt(e) {
|
|
4181
4195
|
return e == null ? !1 : Ne(e).some(
|
|
4182
4196
|
(t) => {
|
|
4183
4197
|
var r;
|
|
4184
|
-
return (r =
|
|
4198
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
4185
4199
|
}
|
|
4186
4200
|
);
|
|
4187
4201
|
}
|
|
4188
|
-
function
|
|
4202
|
+
function Zn(e, t) {
|
|
4189
4203
|
return Promise.all(
|
|
4190
|
-
t.map((i) => (
|
|
4191
|
-
).then((i) =>
|
|
4204
|
+
t.map((i) => (Xn(e, i), i().then((n) => n.default || n)))
|
|
4205
|
+
).then((i) => Lr(e, ...i));
|
|
4192
4206
|
}
|
|
4193
4207
|
const le = {};
|
|
4194
|
-
function
|
|
4195
|
-
if (!
|
|
4208
|
+
function wr(e) {
|
|
4209
|
+
if (!lt(e))
|
|
4196
4210
|
return e in le ? le[e] : Promise.resolve();
|
|
4197
|
-
const t =
|
|
4211
|
+
const t = zn(e);
|
|
4198
4212
|
return le[e] = Promise.all(
|
|
4199
4213
|
t.map(
|
|
4200
|
-
([r, i]) =>
|
|
4214
|
+
([r, i]) => Zn(r, i)
|
|
4201
4215
|
)
|
|
4202
4216
|
).then(() => {
|
|
4203
|
-
if (
|
|
4204
|
-
return
|
|
4217
|
+
if (lt(e))
|
|
4218
|
+
return wr(e);
|
|
4205
4219
|
delete le[e];
|
|
4206
4220
|
}), le[e];
|
|
4207
4221
|
}
|
|
4208
|
-
const
|
|
4222
|
+
const Qn = {
|
|
4209
4223
|
number: {
|
|
4210
4224
|
scientific: { notation: "scientific" },
|
|
4211
4225
|
engineering: { notation: "engineering" },
|
|
@@ -4234,57 +4248,57 @@ const zn = {
|
|
|
4234
4248
|
timeZoneName: "short"
|
|
4235
4249
|
}
|
|
4236
4250
|
}
|
|
4237
|
-
},
|
|
4251
|
+
}, Yn = {
|
|
4238
4252
|
fallbackLocale: null,
|
|
4239
4253
|
loadingDelay: 200,
|
|
4240
|
-
formats:
|
|
4254
|
+
formats: Qn,
|
|
4241
4255
|
warnOnMissingMessages: !0,
|
|
4242
4256
|
handleMissingMessage: void 0,
|
|
4243
4257
|
ignoreTag: !0
|
|
4244
|
-
},
|
|
4258
|
+
}, Jn = Yn;
|
|
4245
4259
|
function ie() {
|
|
4246
|
-
return
|
|
4247
|
-
}
|
|
4248
|
-
const
|
|
4249
|
-
var
|
|
4250
|
-
for (var r in t)
|
|
4251
|
-
|
|
4252
|
-
if (
|
|
4253
|
-
for (var r of
|
|
4254
|
-
|
|
4260
|
+
return Jn;
|
|
4261
|
+
}
|
|
4262
|
+
const ze = Oe(!1);
|
|
4263
|
+
var qn = Object.defineProperty, Kn = Object.defineProperties, eo = Object.getOwnPropertyDescriptors, Gt = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, io = (e, t) => {
|
|
4264
|
+
for (var r in t || (t = {}))
|
|
4265
|
+
to.call(t, r) && Ft(e, r, t[r]);
|
|
4266
|
+
if (Gt)
|
|
4267
|
+
for (var r of Gt(t))
|
|
4268
|
+
ro.call(t, r) && Ft(e, r, t[r]);
|
|
4255
4269
|
return e;
|
|
4256
|
-
},
|
|
4257
|
-
let
|
|
4270
|
+
}, no = (e, t) => Kn(e, eo(t));
|
|
4271
|
+
let ht;
|
|
4258
4272
|
const He = Oe(null);
|
|
4259
|
-
function
|
|
4273
|
+
function jt(e) {
|
|
4260
4274
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
4261
4275
|
}
|
|
4262
4276
|
function Ne(e, t = ie().fallbackLocale) {
|
|
4263
|
-
const r =
|
|
4264
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4277
|
+
const r = jt(e);
|
|
4278
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...jt(t)])] : r;
|
|
4265
4279
|
}
|
|
4266
4280
|
function Z() {
|
|
4267
|
-
return
|
|
4281
|
+
return ht != null ? ht : void 0;
|
|
4268
4282
|
}
|
|
4269
4283
|
He.subscribe((e) => {
|
|
4270
|
-
|
|
4284
|
+
ht = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4271
4285
|
});
|
|
4272
|
-
const
|
|
4273
|
-
if (e &&
|
|
4286
|
+
const oo = (e) => {
|
|
4287
|
+
if (e && Wn(e) && lt(e)) {
|
|
4274
4288
|
const { loadingDelay: t } = ie();
|
|
4275
4289
|
let r;
|
|
4276
4290
|
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4277
|
-
() =>
|
|
4291
|
+
() => ze.set(!0),
|
|
4278
4292
|
t
|
|
4279
|
-
) :
|
|
4293
|
+
) : ze.set(!0), wr(e).then(() => {
|
|
4280
4294
|
He.set(e);
|
|
4281
4295
|
}).finally(() => {
|
|
4282
|
-
clearTimeout(r),
|
|
4296
|
+
clearTimeout(r), ze.set(!1);
|
|
4283
4297
|
});
|
|
4284
4298
|
}
|
|
4285
4299
|
return He.set(e);
|
|
4286
|
-
},
|
|
4287
|
-
set:
|
|
4300
|
+
}, se = no(io({}, He), {
|
|
4301
|
+
set: oo
|
|
4288
4302
|
}), Me = (e) => {
|
|
4289
4303
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4290
4304
|
return (i) => {
|
|
@@ -4292,20 +4306,20 @@ const is = (e) => {
|
|
|
4292
4306
|
return n in t ? t[n] : t[n] = e(i);
|
|
4293
4307
|
};
|
|
4294
4308
|
};
|
|
4295
|
-
var
|
|
4309
|
+
var so = Object.defineProperty, Ie = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
|
|
4296
4310
|
for (var r in t || (t = {}))
|
|
4297
|
-
|
|
4311
|
+
Ar.call(t, r) && kt(e, r, t[r]);
|
|
4298
4312
|
if (Ie)
|
|
4299
4313
|
for (var r of Ie(t))
|
|
4300
|
-
|
|
4314
|
+
Pr.call(t, r) && kt(e, r, t[r]);
|
|
4301
4315
|
return e;
|
|
4302
4316
|
}, ae = (e, t) => {
|
|
4303
4317
|
var r = {};
|
|
4304
4318
|
for (var i in e)
|
|
4305
|
-
|
|
4319
|
+
Ar.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
4306
4320
|
if (e != null && Ie)
|
|
4307
4321
|
for (var i of Ie(e))
|
|
4308
|
-
t.indexOf(i) < 0 &&
|
|
4322
|
+
t.indexOf(i) < 0 && Pr.call(e, i) && (r[i] = e[i]);
|
|
4309
4323
|
return r;
|
|
4310
4324
|
};
|
|
4311
4325
|
const me = (e, t) => {
|
|
@@ -4313,21 +4327,21 @@ const me = (e, t) => {
|
|
|
4313
4327
|
if (e in r && t in r[e])
|
|
4314
4328
|
return r[e][t];
|
|
4315
4329
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4316
|
-
},
|
|
4330
|
+
}, ao = Me(
|
|
4317
4331
|
(e) => {
|
|
4318
4332
|
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4319
4333
|
if (r == null)
|
|
4320
4334
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4321
4335
|
return i && (n = me("number", i)), new Intl.NumberFormat(r, n);
|
|
4322
4336
|
}
|
|
4323
|
-
),
|
|
4337
|
+
), uo = Me(
|
|
4324
4338
|
(e) => {
|
|
4325
4339
|
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4326
4340
|
if (r == null)
|
|
4327
4341
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4328
4342
|
return i ? n = me("date", i) : Object.keys(n).length === 0 && (n = me("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
4329
4343
|
}
|
|
4330
|
-
),
|
|
4344
|
+
), lo = Me(
|
|
4331
4345
|
(e) => {
|
|
4332
4346
|
var t = e, { locale: r, format: i } = t, n = ae(t, ["locale", "format"]);
|
|
4333
4347
|
if (r == null)
|
|
@@ -4336,57 +4350,57 @@ const me = (e, t) => {
|
|
|
4336
4350
|
);
|
|
4337
4351
|
return i ? n = me("time", i) : Object.keys(n).length === 0 && (n = me("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
4338
4352
|
}
|
|
4339
|
-
),
|
|
4353
|
+
), ho = (e = {}) => {
|
|
4340
4354
|
var t = e, {
|
|
4341
4355
|
locale: r = Z()
|
|
4342
4356
|
} = t, i = ae(t, [
|
|
4343
4357
|
"locale"
|
|
4344
4358
|
]);
|
|
4345
|
-
return
|
|
4346
|
-
},
|
|
4359
|
+
return ao(dt({ locale: r }, i));
|
|
4360
|
+
}, co = (e = {}) => {
|
|
4347
4361
|
var t = e, {
|
|
4348
4362
|
locale: r = Z()
|
|
4349
4363
|
} = t, i = ae(t, [
|
|
4350
4364
|
"locale"
|
|
4351
4365
|
]);
|
|
4352
|
-
return
|
|
4353
|
-
},
|
|
4366
|
+
return uo(dt({ locale: r }, i));
|
|
4367
|
+
}, fo = (e = {}) => {
|
|
4354
4368
|
var t = e, {
|
|
4355
4369
|
locale: r = Z()
|
|
4356
4370
|
} = t, i = ae(t, [
|
|
4357
4371
|
"locale"
|
|
4358
4372
|
]);
|
|
4359
|
-
return
|
|
4360
|
-
},
|
|
4373
|
+
return lo(dt({ locale: r }, i));
|
|
4374
|
+
}, mo = Me(
|
|
4361
4375
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4362
|
-
(e, t = Z()) => new
|
|
4376
|
+
(e, t = Z()) => new Gn(e, t, ie().formats, {
|
|
4363
4377
|
ignoreTag: ie().ignoreTag
|
|
4364
4378
|
})
|
|
4365
|
-
),
|
|
4366
|
-
var r, i, n,
|
|
4367
|
-
let
|
|
4368
|
-
typeof e == "object" && (
|
|
4379
|
+
), po = (e, t = {}) => {
|
|
4380
|
+
var r, i, n, o;
|
|
4381
|
+
let a = t;
|
|
4382
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
4369
4383
|
const {
|
|
4370
|
-
values:
|
|
4384
|
+
values: s,
|
|
4371
4385
|
locale: l = Z(),
|
|
4372
4386
|
default: u
|
|
4373
|
-
} =
|
|
4387
|
+
} = a;
|
|
4374
4388
|
if (l == null)
|
|
4375
4389
|
throw new Error(
|
|
4376
4390
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4377
4391
|
);
|
|
4378
|
-
let h =
|
|
4392
|
+
let h = xr(e, l);
|
|
4379
4393
|
if (!h)
|
|
4380
|
-
h = (
|
|
4394
|
+
h = (o = (n = (i = (r = ie()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: l, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
4381
4395
|
else if (typeof h != "string")
|
|
4382
4396
|
return console.warn(
|
|
4383
4397
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4384
4398
|
), h;
|
|
4385
|
-
if (!
|
|
4399
|
+
if (!s)
|
|
4386
4400
|
return h;
|
|
4387
4401
|
let c = h;
|
|
4388
4402
|
try {
|
|
4389
|
-
c =
|
|
4403
|
+
c = mo(h, l).format(s);
|
|
4390
4404
|
} catch (f) {
|
|
4391
4405
|
f instanceof Error && console.warn(
|
|
4392
4406
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4394,20 +4408,20 @@ const me = (e, t) => {
|
|
|
4394
4408
|
);
|
|
4395
4409
|
}
|
|
4396
4410
|
return c;
|
|
4397
|
-
},
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
window.emWidgets = { topic:
|
|
4403
|
-
const
|
|
4404
|
-
function
|
|
4411
|
+
}, yo = (e, t) => fo(t).format(e), go = (e, t) => co(t).format(e), bo = (e, t) => ho(t).format(e), vo = (e, t = Z()) => xr(e, t), _o = oe([se, pe], () => po);
|
|
4412
|
+
oe([se], () => yo);
|
|
4413
|
+
oe([se], () => go);
|
|
4414
|
+
oe([se], () => bo);
|
|
4415
|
+
oe([se, pe], () => vo);
|
|
4416
|
+
window.emWidgets = { topic: Oi };
|
|
4417
|
+
const Eo = (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)), Yo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4418
|
+
function xo(e, t) {
|
|
4405
4419
|
if (e) {
|
|
4406
4420
|
const r = document.createElement("style");
|
|
4407
4421
|
r.innerHTML = t, e.appendChild(r);
|
|
4408
4422
|
}
|
|
4409
4423
|
}
|
|
4410
|
-
function
|
|
4424
|
+
function To(e, t) {
|
|
4411
4425
|
const r = new URL(t);
|
|
4412
4426
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4413
4427
|
const n = document.createElement("style");
|
|
@@ -4416,7 +4430,7 @@ function _s(e, t) {
|
|
|
4416
4430
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
4417
4431
|
});
|
|
4418
4432
|
}
|
|
4419
|
-
function
|
|
4433
|
+
function Lo(e, t, r) {
|
|
4420
4434
|
if (window.emMessageBus) {
|
|
4421
4435
|
const i = document.createElement("style");
|
|
4422
4436
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4424,13 +4438,13 @@ function Es(e, t, r) {
|
|
|
4424
4438
|
});
|
|
4425
4439
|
}
|
|
4426
4440
|
}
|
|
4427
|
-
function
|
|
4428
|
-
|
|
4441
|
+
function Vt(e, t) {
|
|
4442
|
+
Lr(e, t);
|
|
4429
4443
|
}
|
|
4430
|
-
function
|
|
4431
|
-
|
|
4444
|
+
function So(e) {
|
|
4445
|
+
se.set(e);
|
|
4432
4446
|
}
|
|
4433
|
-
const
|
|
4447
|
+
const Ze = {
|
|
4434
4448
|
en: {
|
|
4435
4449
|
expandLimits: "LIMIT HISTORY",
|
|
4436
4450
|
daily: "per day",
|
|
@@ -4681,30 +4695,30 @@ const ze = {
|
|
|
4681
4695
|
historyLimitTypeLoss: "Loss Limit"
|
|
4682
4696
|
}
|
|
4683
4697
|
};
|
|
4684
|
-
function
|
|
4685
|
-
|
|
4698
|
+
function wo(e) {
|
|
4699
|
+
Jr(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)}}');
|
|
4686
4700
|
}
|
|
4687
|
-
function
|
|
4701
|
+
function Wt(e, t, r) {
|
|
4688
4702
|
const i = e.slice();
|
|
4689
4703
|
return i[37] = t[r], i[38] = t, i[39] = r, i;
|
|
4690
4704
|
}
|
|
4691
|
-
function
|
|
4705
|
+
function Ao(e) {
|
|
4692
4706
|
let t, r, i, n = (
|
|
4693
4707
|
/*$_*/
|
|
4694
4708
|
e[9]("expandLimits") + ""
|
|
4695
|
-
),
|
|
4709
|
+
), o, a, s, l, u, h, c, f, p, y = Tt(
|
|
4696
4710
|
/*lazyShowedHistoryArray*/
|
|
4697
4711
|
e[7]
|
|
4698
|
-
),
|
|
4712
|
+
), d = [];
|
|
4699
4713
|
for (let v = 0; v < y.length; v += 1)
|
|
4700
|
-
|
|
4714
|
+
d[v] = Xt(Wt(e, y, v));
|
|
4701
4715
|
return {
|
|
4702
4716
|
c() {
|
|
4703
|
-
t = A("div"), r = A("div"), i = A("button"),
|
|
4704
|
-
for (let v = 0; v <
|
|
4705
|
-
|
|
4706
|
-
x(l, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), x(l, "class", "svelte-19ml84y"), x(u, "d", "M0 0h36v36h-36z"), x(u, "fill", "none"), x(u, "class", "svelte-19ml84y"), x(
|
|
4707
|
-
|
|
4717
|
+
t = A("div"), r = A("div"), i = A("button"), o = R(n), a = Qe(), s = xe("svg"), l = xe("path"), u = xe("path"), h = Qe(), c = A("div");
|
|
4718
|
+
for (let v = 0; v < d.length; v += 1)
|
|
4719
|
+
d[v].c();
|
|
4720
|
+
x(l, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), x(l, "class", "svelte-19ml84y"), x(u, "d", "M0 0h36v36h-36z"), x(u, "fill", "none"), x(u, "class", "svelte-19ml84y"), x(s, "class", "ExpandArrow svelte-19ml84y"), x(s, "xmlns", "http://www.w3.org/2000/svg"), x(s, "width", "36"), x(s, "height", "36"), x(s, "viewBox", "0 0 36 36"), x(s, "fill", "#999"), ve(
|
|
4721
|
+
s,
|
|
4708
4722
|
"extended",
|
|
4709
4723
|
/*extended*/
|
|
4710
4724
|
e[8]
|
|
@@ -4717,10 +4731,10 @@ function Ls(e) {
|
|
|
4717
4731
|
(e[10] ? "Desktop" : "") + " svelte-19ml84y"), x(t, "class", "player-account-gaming-limits-history-2 svelte-19ml84y");
|
|
4718
4732
|
},
|
|
4719
4733
|
m(v, H) {
|
|
4720
|
-
W(v, t, H), T(t, r), T(r, i), T(i,
|
|
4721
|
-
for (let g = 0; g <
|
|
4722
|
-
|
|
4723
|
-
f || (
|
|
4734
|
+
W(v, t, H), T(t, r), T(r, i), T(i, o), T(i, a), T(i, s), T(s, l), T(s, u), T(r, h), T(r, c);
|
|
4735
|
+
for (let g = 0; g < d.length; g += 1)
|
|
4736
|
+
d[g] && d[g].m(c, null);
|
|
4737
|
+
f || (p = ti(
|
|
4724
4738
|
i,
|
|
4725
4739
|
"click",
|
|
4726
4740
|
/*toggleHistoryDisplayArea*/
|
|
@@ -4730,26 +4744,26 @@ function Ls(e) {
|
|
|
4730
4744
|
p(v, H) {
|
|
4731
4745
|
if (H[0] & /*$_*/
|
|
4732
4746
|
512 && n !== (n = /*$_*/
|
|
4733
|
-
v[9]("expandLimits") + "") && V(
|
|
4747
|
+
v[9]("expandLimits") + "") && V(o, n), H[0] & /*extended*/
|
|
4734
4748
|
256 && ve(
|
|
4735
|
-
|
|
4749
|
+
s,
|
|
4736
4750
|
"extended",
|
|
4737
4751
|
/*extended*/
|
|
4738
4752
|
v[8]
|
|
4739
4753
|
), H[0] & /*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/
|
|
4740
4754
|
650) {
|
|
4741
|
-
y =
|
|
4755
|
+
y = Tt(
|
|
4742
4756
|
/*lazyShowedHistoryArray*/
|
|
4743
4757
|
v[7]
|
|
4744
4758
|
);
|
|
4745
4759
|
let g;
|
|
4746
4760
|
for (g = 0; g < y.length; g += 1) {
|
|
4747
|
-
const w =
|
|
4748
|
-
|
|
4761
|
+
const w = Wt(v, y, g);
|
|
4762
|
+
d[g] ? d[g].p(w, H) : (d[g] = Xt(w), d[g].c(), d[g].m(c, null));
|
|
4749
4763
|
}
|
|
4750
|
-
for (; g <
|
|
4751
|
-
|
|
4752
|
-
|
|
4764
|
+
for (; g < d.length; g += 1)
|
|
4765
|
+
d[g].d(1);
|
|
4766
|
+
d.length = y.length;
|
|
4753
4767
|
}
|
|
4754
4768
|
H[0] & /*hidden*/
|
|
4755
4769
|
32 && ve(
|
|
@@ -4760,14 +4774,14 @@ function Ls(e) {
|
|
|
4760
4774
|
);
|
|
4761
4775
|
},
|
|
4762
4776
|
d(v) {
|
|
4763
|
-
v && F(t),
|
|
4777
|
+
v && F(t), ei(d, v), f = !1, p();
|
|
4764
4778
|
}
|
|
4765
4779
|
};
|
|
4766
4780
|
}
|
|
4767
|
-
function
|
|
4781
|
+
function Po(e) {
|
|
4768
4782
|
return { c: O, m: O, p: O, d: O };
|
|
4769
4783
|
}
|
|
4770
|
-
function
|
|
4784
|
+
function Ho(e) {
|
|
4771
4785
|
let t, r = (
|
|
4772
4786
|
/*lang*/
|
|
4773
4787
|
(e[0] ? (
|
|
@@ -4779,11 +4793,11 @@ function ws(e) {
|
|
|
4779
4793
|
c() {
|
|
4780
4794
|
t = A("p"), i = R(r), x(t, "class", "svelte-19ml84y");
|
|
4781
4795
|
},
|
|
4782
|
-
m(n,
|
|
4783
|
-
W(n, t,
|
|
4796
|
+
m(n, o) {
|
|
4797
|
+
W(n, t, o), T(t, i);
|
|
4784
4798
|
},
|
|
4785
|
-
p(n,
|
|
4786
|
-
|
|
4799
|
+
p(n, o) {
|
|
4800
|
+
o[0] & /*lang, $_*/
|
|
4787
4801
|
513 && r !== (r = /*lang*/
|
|
4788
4802
|
(n[0] ? (
|
|
4789
4803
|
/*$_*/
|
|
@@ -4795,11 +4809,11 @@ function ws(e) {
|
|
|
4795
4809
|
}
|
|
4796
4810
|
};
|
|
4797
4811
|
}
|
|
4798
|
-
function
|
|
4812
|
+
function Io(e) {
|
|
4799
4813
|
let t, r, i, n = (
|
|
4800
4814
|
/*history*/
|
|
4801
4815
|
e[37].type + ""
|
|
4802
|
-
),
|
|
4816
|
+
), o, a, s = (
|
|
4803
4817
|
/*history*/
|
|
4804
4818
|
e[37].amount + ""
|
|
4805
4819
|
), l, u, h = (
|
|
@@ -4808,17 +4822,17 @@ function As(e) {
|
|
|
4808
4822
|
), c;
|
|
4809
4823
|
return {
|
|
4810
4824
|
c() {
|
|
4811
|
-
t = A("div"), r = A("span"), i = A("span"),
|
|
4825
|
+
t = A("div"), r = A("span"), i = A("span"), o = R(n), a = A("span"), l = R(s), u = A("span"), c = R(h), x(i, "class", "LimitType svelte-19ml84y"), x(a, "class", "LimitAmountPeriod svelte-19ml84y"), x(r, "class", "GeneralLimitInformation svelte-19ml84y"), x(u, "class", "DateLimitInformation svelte-19ml84y"), x(t, "class", "HistoryRow svelte-19ml84y");
|
|
4812
4826
|
},
|
|
4813
|
-
m(f,
|
|
4814
|
-
W(f, t,
|
|
4827
|
+
m(f, p) {
|
|
4828
|
+
W(f, t, p), T(t, r), T(r, i), T(i, o), T(r, a), T(a, l), T(t, u), T(u, c);
|
|
4815
4829
|
},
|
|
4816
|
-
p(f,
|
|
4817
|
-
|
|
4830
|
+
p(f, p) {
|
|
4831
|
+
p[0] & /*lazyShowedHistoryArray*/
|
|
4818
4832
|
128 && n !== (n = /*history*/
|
|
4819
|
-
f[37].type + "") && V(
|
|
4820
|
-
128 &&
|
|
4821
|
-
f[37].amount + "") && V(l,
|
|
4833
|
+
f[37].type + "") && V(o, n), p[0] & /*lazyShowedHistoryArray*/
|
|
4834
|
+
128 && s !== (s = /*history*/
|
|
4835
|
+
f[37].amount + "") && V(l, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4822
4836
|
128 && h !== (h = /*history*/
|
|
4823
4837
|
f[37].date + "") && V(c, h);
|
|
4824
4838
|
},
|
|
@@ -4827,11 +4841,11 @@ function As(e) {
|
|
|
4827
4841
|
}
|
|
4828
4842
|
};
|
|
4829
4843
|
}
|
|
4830
|
-
function
|
|
4844
|
+
function Bo(e) {
|
|
4831
4845
|
let t, r, i, n = (
|
|
4832
4846
|
/*history*/
|
|
4833
4847
|
e[37].type + ""
|
|
4834
|
-
),
|
|
4848
|
+
), o, a, s = (
|
|
4835
4849
|
/*$_*/
|
|
4836
4850
|
e[9]("limitRemoved") + ""
|
|
4837
4851
|
), l, u, h = (
|
|
@@ -4840,17 +4854,17 @@ function Ps(e) {
|
|
|
4840
4854
|
), c;
|
|
4841
4855
|
return {
|
|
4842
4856
|
c() {
|
|
4843
|
-
t = A("div"), r = A("span"), i = A("span"),
|
|
4857
|
+
t = A("div"), r = A("span"), i = A("span"), o = R(n), a = A("span"), l = R(s), u = A("span"), c = R(h), x(i, "class", "LimitType svelte-19ml84y"), x(a, "class", "LimitAmountPeriod svelte-19ml84y"), x(r, "class", "GeneralLimitInformation svelte-19ml84y"), x(u, "class", "DateLimitInformation svelte-19ml84y"), x(t, "class", "HistoryRow svelte-19ml84y");
|
|
4844
4858
|
},
|
|
4845
|
-
m(f,
|
|
4846
|
-
W(f, t,
|
|
4859
|
+
m(f, p) {
|
|
4860
|
+
W(f, t, p), T(t, r), T(r, i), T(i, o), T(r, a), T(a, l), T(t, u), T(u, c);
|
|
4847
4861
|
},
|
|
4848
|
-
p(f,
|
|
4849
|
-
|
|
4862
|
+
p(f, p) {
|
|
4863
|
+
p[0] & /*lazyShowedHistoryArray*/
|
|
4850
4864
|
128 && n !== (n = /*history*/
|
|
4851
|
-
f[37].type + "") && V(
|
|
4852
|
-
512 &&
|
|
4853
|
-
f[9]("limitRemoved") + "") && V(l,
|
|
4865
|
+
f[37].type + "") && V(o, n), p[0] & /*$_*/
|
|
4866
|
+
512 && s !== (s = /*$_*/
|
|
4867
|
+
f[9]("limitRemoved") + "") && V(l, s), p[0] & /*lazyShowedHistoryArray*/
|
|
4854
4868
|
128 && h !== (h = /*history*/
|
|
4855
4869
|
f[37].date + "") && V(c, h);
|
|
4856
4870
|
},
|
|
@@ -4859,18 +4873,18 @@ function Ps(e) {
|
|
|
4859
4873
|
}
|
|
4860
4874
|
};
|
|
4861
4875
|
}
|
|
4862
|
-
function
|
|
4876
|
+
function Xt(e) {
|
|
4863
4877
|
let t, r, i, n = (
|
|
4864
4878
|
/*index*/
|
|
4865
4879
|
e[39]
|
|
4866
4880
|
);
|
|
4867
|
-
function
|
|
4881
|
+
function o(h, c) {
|
|
4868
4882
|
return (
|
|
4869
4883
|
/*history*/
|
|
4870
|
-
h[37].removed ?
|
|
4884
|
+
h[37].removed ? Bo : Io
|
|
4871
4885
|
);
|
|
4872
4886
|
}
|
|
4873
|
-
let
|
|
4887
|
+
let a = o(e), s = a(e);
|
|
4874
4888
|
const l = () => (
|
|
4875
4889
|
/*div_binding*/
|
|
4876
4890
|
e[22](t, n)
|
|
@@ -4880,18 +4894,18 @@ function Vt(e) {
|
|
|
4880
4894
|
);
|
|
4881
4895
|
return {
|
|
4882
4896
|
c() {
|
|
4883
|
-
t = A("div"),
|
|
4897
|
+
t = A("div"), s.c(), r = Qe(), x(t, "class", i = Et(
|
|
4884
4898
|
/*index*/
|
|
4885
4899
|
e[39] > +/*numberofentries*/
|
|
4886
4900
|
e[1] ? "LimitContainer" : ""
|
|
4887
4901
|
) + " svelte-19ml84y");
|
|
4888
4902
|
},
|
|
4889
4903
|
m(h, c) {
|
|
4890
|
-
W(h, t, c),
|
|
4904
|
+
W(h, t, c), s.m(t, null), T(t, r), l();
|
|
4891
4905
|
},
|
|
4892
4906
|
p(h, c) {
|
|
4893
|
-
e = h,
|
|
4894
|
-
2 && i !== (i =
|
|
4907
|
+
e = h, 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*/
|
|
4908
|
+
2 && i !== (i = Et(
|
|
4895
4909
|
/*index*/
|
|
4896
4910
|
e[39] > +/*numberofentries*/
|
|
4897
4911
|
e[1] ? "LimitContainer" : ""
|
|
@@ -4900,18 +4914,18 @@ function Vt(e) {
|
|
|
4900
4914
|
e[39], l());
|
|
4901
4915
|
},
|
|
4902
4916
|
d(h) {
|
|
4903
|
-
h && F(t),
|
|
4917
|
+
h && F(t), s.d(), u();
|
|
4904
4918
|
}
|
|
4905
4919
|
};
|
|
4906
4920
|
}
|
|
4907
|
-
function
|
|
4921
|
+
function Oo(e) {
|
|
4908
4922
|
let t;
|
|
4909
|
-
function r(
|
|
4923
|
+
function r(o, a) {
|
|
4910
4924
|
return (
|
|
4911
4925
|
/*hasErrors*/
|
|
4912
|
-
|
|
4926
|
+
o[6] ? Ho : (
|
|
4913
4927
|
/*isLoading*/
|
|
4914
|
-
|
|
4928
|
+
o[4] ? Po : Ao
|
|
4915
4929
|
)
|
|
4916
4930
|
);
|
|
4917
4931
|
}
|
|
@@ -4920,37 +4934,37 @@ function Hs(e) {
|
|
|
4920
4934
|
c() {
|
|
4921
4935
|
t = A("div"), n.c(), x(t, "class", "svelte-19ml84y");
|
|
4922
4936
|
},
|
|
4923
|
-
m(
|
|
4924
|
-
W(
|
|
4937
|
+
m(o, a) {
|
|
4938
|
+
W(o, t, a), n.m(t, null), e[23](t);
|
|
4925
4939
|
},
|
|
4926
|
-
p(
|
|
4927
|
-
i === (i = r(
|
|
4940
|
+
p(o, a) {
|
|
4941
|
+
i === (i = r(o)) && n ? n.p(o, a) : (n.d(1), n = i(o), n && (n.c(), n.m(t, null)));
|
|
4928
4942
|
},
|
|
4929
4943
|
i: O,
|
|
4930
4944
|
o: O,
|
|
4931
|
-
d(
|
|
4932
|
-
|
|
4945
|
+
d(o) {
|
|
4946
|
+
o && F(t), n.d(), e[23](null);
|
|
4933
4947
|
}
|
|
4934
4948
|
};
|
|
4935
4949
|
}
|
|
4936
|
-
function
|
|
4950
|
+
function Co(e, t, r) {
|
|
4937
4951
|
let i;
|
|
4938
|
-
|
|
4939
|
-
let n = window.navigator.userAgent,
|
|
4940
|
-
const
|
|
4952
|
+
Yr(e, _o, (m) => r(9, i = m));
|
|
4953
|
+
let n = window.navigator.userAgent, o = !Eo(n), { lang: a = "" } = t, { userid: s = "" } = t, { session: l = "" } = t, { endpoint: u = "" } = t, { apiversion: h = "" } = t, { numberofentries: c = "10" } = t, { customcurrencysymbols: f = "" } = t, { limitformat: p = "" } = t, { clientstyling: y = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: v } = t, { translationurl: H = "" } = t, g, w = new Array(), D = parseInt(c, 10), M = !1, U = !0, X = [], de = [], ye = !0, Re = !1, ue = { EUR: "€", RON: "lei", TRY: "₺" };
|
|
4954
|
+
const Ir = () => {
|
|
4941
4955
|
fetch(H).then((L) => L.json()).then((L) => {
|
|
4942
4956
|
Object.keys(L).forEach((N) => {
|
|
4943
|
-
|
|
4957
|
+
Vt(N, L[N]);
|
|
4944
4958
|
});
|
|
4945
4959
|
}).catch((L) => {
|
|
4946
4960
|
console.log(L);
|
|
4947
4961
|
});
|
|
4948
4962
|
};
|
|
4949
|
-
Object.keys(
|
|
4950
|
-
|
|
4963
|
+
Object.keys(Ze).forEach((m) => {
|
|
4964
|
+
Vt(m, Ze[m]);
|
|
4951
4965
|
});
|
|
4952
|
-
const
|
|
4953
|
-
let m = h === "gmcore" ? `/v2/player/${
|
|
4966
|
+
const Br = () => {
|
|
4967
|
+
let m = h === "gmcore" ? `/v2/player/${s}/transactions/limit` : `/v1/player/${s}/limits/monetary/history`, L = new URL(m, u);
|
|
4954
4968
|
L.searchParams.append("startDate", `${(/* @__PURE__ */ new Date("2022")).toISOString()}`), L.searchParams.append("endDate", `${(/* @__PURE__ */ new Date("2099")).toISOString()}`), L.searchParams.append("limit", "10000");
|
|
4955
4969
|
let N = {
|
|
4956
4970
|
method: "GET",
|
|
@@ -4962,14 +4976,14 @@ function Is(e, t, r) {
|
|
|
4962
4976
|
return P.json();
|
|
4963
4977
|
}).then(
|
|
4964
4978
|
(P) => {
|
|
4965
|
-
P.length && (X =
|
|
4979
|
+
P.length && (X = Or(P), r(7, de = X.slice(0, D))), r(4, U = !1);
|
|
4966
4980
|
},
|
|
4967
4981
|
(P) => {
|
|
4968
4982
|
console.error("There was an error", P), r(6, M = !0);
|
|
4969
4983
|
}
|
|
4970
4984
|
);
|
|
4971
|
-
},
|
|
4972
|
-
const L = !!
|
|
4985
|
+
}, Or = (m) => {
|
|
4986
|
+
const L = !!Ze[a];
|
|
4973
4987
|
return m.map((P) => {
|
|
4974
4988
|
let $ = {
|
|
4975
4989
|
amount: "",
|
|
@@ -4979,34 +4993,34 @@ function Is(e, t, r) {
|
|
|
4979
4993
|
type: "",
|
|
4980
4994
|
removed: !1
|
|
4981
4995
|
};
|
|
4982
|
-
return $.amount =
|
|
4996
|
+
return $.amount = Cr(P), $.currency = L ? ue[P.limitCurrencyCode] : P.limitCurrencyCode, $.date = new Intl.DateTimeFormat("de", { dateStyle: "medium" }).format(new Date(P.limitDate)), $.period = i(`${P.limitPeriod.toLowerCase()}`), $.type = h === "gmcore" ? i(`historyLimitType${P.limitType.split(" ")[0]}`) : i(`historyLimitType${P.limitType.split(" ")[0]}`) + " " + i(`historyProductType${P.limitProductType}`), $.removed = P.limitAmount === -1, $;
|
|
4983
4997
|
});
|
|
4984
|
-
},
|
|
4985
|
-
let L =
|
|
4986
|
-
if (!
|
|
4987
|
-
let
|
|
4988
|
-
return `${L}${
|
|
4998
|
+
}, Cr = (m) => {
|
|
4999
|
+
let L = p || Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(m.limitAmount);
|
|
5000
|
+
if (!p) {
|
|
5001
|
+
let jr = ue[m.limitCurrencyCode] || m.limitCurrencyCode;
|
|
5002
|
+
return `${L}${jr}`;
|
|
4989
5003
|
}
|
|
4990
5004
|
typeof m.limitAmount == "string" && m.limitAmount.includes(",") && (m.limitAmount = m.limitAmount.replaceAll(",", ""));
|
|
4991
5005
|
const N = L.match(/\{(\d+)decimals\}/), P = N ? parseInt(N[1], 10) : 2, $ = N ? new RegExp("\\{\\d+decimals\\}", "g") : "{decimals}";
|
|
4992
5006
|
let ge = parseFloat(m.limitAmount).toFixed(P);
|
|
4993
|
-
const [
|
|
4994
|
-
let [Ue,
|
|
4995
|
-
return Ue = Ue.replace(/\B(?=(\d{3})+(?!\d))/g,
|
|
5007
|
+
const [Gr, De] = p.includes(".") ? [",", "."] : [".", ","];
|
|
5008
|
+
let [Ue, Fr] = ge.split(".");
|
|
5009
|
+
return Ue = Ue.replace(/\B(?=(\d{3})+(?!\d))/g, Gr), ge = `${Ue}${De}${Fr}`, L = L.replace("{currency}", ue[m.limitCurrencyCode] || m.limitCurrencyCode).replace("{amount}", ge.split(De)[0]).replace(
|
|
4996
5010
|
$,
|
|
4997
5011
|
ge.split(De)[1]
|
|
4998
5012
|
), L;
|
|
4999
|
-
},
|
|
5013
|
+
}, Nr = () => {
|
|
5000
5014
|
r(5, ye = !ye), r(8, Re = !Re);
|
|
5001
5015
|
};
|
|
5002
|
-
let
|
|
5016
|
+
let yt = new IntersectionObserver((m) => {
|
|
5003
5017
|
m.forEach((L) => {
|
|
5004
|
-
L.isIntersecting && (D += parseInt(c, 10) || 10,
|
|
5018
|
+
L.isIntersecting && (D += parseInt(c, 10) || 10, de.length < X.length && r(7, de = X.slice(0, D)));
|
|
5005
5019
|
});
|
|
5006
5020
|
});
|
|
5007
|
-
const
|
|
5008
|
-
|
|
5009
|
-
},
|
|
5021
|
+
const Mr = () => {
|
|
5022
|
+
yt.observe(w[w.length - 1]);
|
|
5023
|
+
}, Rr = () => {
|
|
5010
5024
|
if (!f)
|
|
5011
5025
|
return;
|
|
5012
5026
|
let m = {};
|
|
@@ -5014,69 +5028,69 @@ function Is(e, t, r) {
|
|
|
5014
5028
|
let N = L.split(":");
|
|
5015
5029
|
m[N[0].trim()] = N[1].trim();
|
|
5016
5030
|
}), ue = be(be({}, ue), m);
|
|
5017
|
-
},
|
|
5018
|
-
|
|
5031
|
+
}, Dr = () => {
|
|
5032
|
+
So(a);
|
|
5019
5033
|
};
|
|
5020
|
-
|
|
5021
|
-
|
|
5034
|
+
oi(() => () => {
|
|
5035
|
+
yt.unobserve(w[w.length - 1]);
|
|
5022
5036
|
});
|
|
5023
|
-
function
|
|
5037
|
+
function Ur(m, L) {
|
|
5024
5038
|
Pe[m ? "unshift" : "push"](() => {
|
|
5025
5039
|
w[L] = m, r(3, w);
|
|
5026
5040
|
});
|
|
5027
5041
|
}
|
|
5028
|
-
function
|
|
5042
|
+
function $r(m) {
|
|
5029
5043
|
Pe[m ? "unshift" : "push"](() => {
|
|
5030
5044
|
g = m, r(2, g);
|
|
5031
5045
|
});
|
|
5032
5046
|
}
|
|
5033
5047
|
return e.$$set = (m) => {
|
|
5034
|
-
"lang" in m && r(0,
|
|
5048
|
+
"lang" in m && r(0, a = m.lang), "userid" in m && r(12, s = m.userid), "session" in m && r(13, l = m.session), "endpoint" in m && r(14, u = m.endpoint), "apiversion" in m && r(15, h = 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, H = m.translationurl);
|
|
5035
5049
|
}, e.$$.update = () => {
|
|
5036
5050
|
e.$$.dirty[0] & /*customcurrencysymbols*/
|
|
5037
|
-
65536 && f &&
|
|
5038
|
-
61440 && u &&
|
|
5039
|
-
56 && w[0] && !U && !ye &&
|
|
5040
|
-
1 &&
|
|
5041
|
-
262148 && y && g &&
|
|
5042
|
-
524292 &&
|
|
5043
|
-
1048580 && v && g &&
|
|
5044
|
-
2097156 && H && g &&
|
|
5051
|
+
65536 && f && Rr(), e.$$.dirty[0] & /*endpoint, userid, session, apiversion*/
|
|
5052
|
+
61440 && u && s && l && h && Br(), e.$$.dirty[0] & /*limitContainer, isLoading, hidden*/
|
|
5053
|
+
56 && w[0] && !U && !ye && Mr(), e.$$.dirty[0] & /*lang*/
|
|
5054
|
+
1 && a && Dr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5055
|
+
262148 && y && g && xo(g, y), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5056
|
+
524292 && d && g && To(g, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5057
|
+
1048580 && v && g && Lo(g, `${v}.Style`), e.$$.dirty[0] & /*translationurl, customStylingContainer*/
|
|
5058
|
+
2097156 && H && g && Ir();
|
|
5045
5059
|
}, [
|
|
5046
|
-
|
|
5060
|
+
a,
|
|
5047
5061
|
c,
|
|
5048
5062
|
g,
|
|
5049
5063
|
w,
|
|
5050
5064
|
U,
|
|
5051
5065
|
ye,
|
|
5052
5066
|
M,
|
|
5053
|
-
|
|
5067
|
+
de,
|
|
5054
5068
|
Re,
|
|
5055
5069
|
i,
|
|
5070
|
+
o,
|
|
5071
|
+
Nr,
|
|
5056
5072
|
s,
|
|
5057
|
-
Br,
|
|
5058
|
-
a,
|
|
5059
5073
|
l,
|
|
5060
5074
|
u,
|
|
5061
5075
|
h,
|
|
5062
5076
|
f,
|
|
5063
|
-
d,
|
|
5064
|
-
y,
|
|
5065
5077
|
p,
|
|
5078
|
+
y,
|
|
5079
|
+
d,
|
|
5066
5080
|
v,
|
|
5067
5081
|
H,
|
|
5068
|
-
|
|
5069
|
-
|
|
5082
|
+
Ur,
|
|
5083
|
+
$r
|
|
5070
5084
|
];
|
|
5071
5085
|
}
|
|
5072
|
-
class
|
|
5086
|
+
class Hr extends yi {
|
|
5073
5087
|
constructor(t) {
|
|
5074
|
-
super(),
|
|
5088
|
+
super(), pi(
|
|
5075
5089
|
this,
|
|
5076
5090
|
t,
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5091
|
+
Co,
|
|
5092
|
+
Oo,
|
|
5093
|
+
Zt,
|
|
5080
5094
|
{
|
|
5081
5095
|
lang: 0,
|
|
5082
5096
|
userid: 12,
|
|
@@ -5091,7 +5105,7 @@ class wr extends mi {
|
|
|
5091
5105
|
mbsource: 20,
|
|
5092
5106
|
translationurl: 21
|
|
5093
5107
|
},
|
|
5094
|
-
|
|
5108
|
+
wo,
|
|
5095
5109
|
[-1, -1]
|
|
5096
5110
|
);
|
|
5097
5111
|
}
|
|
@@ -5168,59 +5182,59 @@ class wr extends mi {
|
|
|
5168
5182
|
this.$$set({ translationurl: t }), C();
|
|
5169
5183
|
}
|
|
5170
5184
|
}
|
|
5171
|
-
|
|
5172
|
-
const
|
|
5185
|
+
di(Hr, { lang: {}, userid: {}, session: {}, endpoint: {}, apiversion: {}, numberofentries: {}, customcurrencysymbols: {}, limitformat: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
5186
|
+
const Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5173
5187
|
__proto__: null,
|
|
5174
|
-
default:
|
|
5188
|
+
default: Hr
|
|
5175
5189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5176
5190
|
export {
|
|
5177
|
-
|
|
5178
|
-
|
|
5191
|
+
se as $,
|
|
5192
|
+
ko as A,
|
|
5179
5193
|
ne as B,
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5194
|
+
Tt as C,
|
|
5195
|
+
jo as D,
|
|
5196
|
+
ei as E,
|
|
5197
|
+
Je as F,
|
|
5198
|
+
Vo as G,
|
|
5199
|
+
_o as H,
|
|
5186
5200
|
xe as I,
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5201
|
+
Qo as J,
|
|
5202
|
+
Zo as K,
|
|
5203
|
+
hi as L,
|
|
5204
|
+
Yo as M,
|
|
5205
|
+
zo as N,
|
|
5206
|
+
Go as O,
|
|
5207
|
+
Xo as P,
|
|
5208
|
+
Mo as Q,
|
|
5209
|
+
Do as R,
|
|
5210
|
+
yi as S,
|
|
5211
|
+
Uo as T,
|
|
5212
|
+
Ro as U,
|
|
5213
|
+
Jo as V,
|
|
5214
|
+
Lr as a,
|
|
5215
|
+
Jr as b,
|
|
5216
|
+
di as c,
|
|
5217
|
+
Qe as d,
|
|
5204
5218
|
A as e,
|
|
5205
5219
|
C as f,
|
|
5206
5220
|
W as g,
|
|
5207
5221
|
T as h,
|
|
5208
|
-
|
|
5222
|
+
pi as i,
|
|
5209
5223
|
F as j,
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5224
|
+
Yr as k,
|
|
5225
|
+
Eo as l,
|
|
5226
|
+
To as m,
|
|
5213
5227
|
O as n,
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5228
|
+
oi as o,
|
|
5229
|
+
Lo as p,
|
|
5230
|
+
x as q,
|
|
5231
|
+
Wo as r,
|
|
5232
|
+
Zt as s,
|
|
5233
|
+
Fo as t,
|
|
5234
|
+
Pe as u,
|
|
5235
|
+
xo as v,
|
|
5222
5236
|
R as w,
|
|
5223
|
-
|
|
5224
|
-
|
|
5237
|
+
$o as x,
|
|
5238
|
+
ti as y,
|
|
5225
5239
|
V as z
|
|
5226
5240
|
};
|