@everymatrix/player-account-gaming-limits-page-2-gmcore 1.77.20 → 1.77.22
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/{PlayerAccountGamingLimitsPage2Gmcore-CzPYh_JY.js → PlayerAccountGamingLimitsPage2Gmcore-DSV2gMJR.js} +1047 -1004
- package/components/PlayerAccountGamingLimitsPage2Gmcore-DzulpeoK.cjs +19 -0
- package/components/{PlayerAccountGamingLimitsPage2Gmcore-aPVEhVks.js → PlayerAccountGamingLimitsPage2Gmcore-GTUeBlHX.js} +1096 -1053
- package/es2015/player-account-gaming-limits-page-2-gmcore.cjs +1 -1
- package/es2015/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/esnext/player-account-gaming-limits-page-2-gmcore.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPage2Gmcore-C1GAiYFL.cjs +0 -19
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var hr = Object.defineProperty, fr = Object.defineProperties;
|
|
2
|
+
var mr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var St = Object.getOwnPropertySymbols;
|
|
4
|
+
var pr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Xe = (e, t, i) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, Pt = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var i of
|
|
10
|
-
|
|
7
|
+
pr.call(t, i) && Xe(e, i, t[i]);
|
|
8
|
+
if (St)
|
|
9
|
+
for (var i of St(t))
|
|
10
|
+
dr.call(t, i) && Xe(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var V = (e, t, i) => (
|
|
14
|
-
var
|
|
12
|
+
}, At = (e, t) => fr(e, mr(t));
|
|
13
|
+
var V = (e, t, i) => (Xe(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
14
|
+
var Bt = (e, t, i) => new Promise((r, n) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
a(i.next(c));
|
|
@@ -27,49 +27,49 @@ var Tt = (e, t, i) => new Promise((r, n) => {
|
|
|
27
27
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, s);
|
|
28
28
|
a((i = i.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function j() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function mi(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Nt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ie(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(mi);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function pi(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function br(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function di(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return j;
|
|
55
55
|
}
|
|
56
56
|
const i = e.subscribe(...t);
|
|
57
57
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function gr(e, t, i) {
|
|
60
|
+
e.$$.on_destroy.push(di(t, i));
|
|
61
61
|
}
|
|
62
62
|
function d(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function yr(e, t, i) {
|
|
66
|
+
const r = vr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const n = v("style");
|
|
69
|
-
n.id = t, n.textContent = i,
|
|
69
|
+
n.id = t, n.textContent = i, _r(r, n);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function vr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,61 +79,61 @@ function pr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function _r(e, t) {
|
|
83
83
|
return d(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function B(e, t, i) {
|
|
90
90
|
e.insertBefore(t, i || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function A(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function De(e, t) {
|
|
96
96
|
for (let i = 0; i < e.length; i += 1)
|
|
97
97
|
e[i] && e[i].d(t);
|
|
98
98
|
}
|
|
99
99
|
function v(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function de(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
105
|
function $(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function U() {
|
|
109
109
|
return $(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Er() {
|
|
112
112
|
return $("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function q(e, t, i, r) {
|
|
115
115
|
return e.addEventListener(t, i, r), () => e.removeEventListener(t, i, r);
|
|
116
116
|
}
|
|
117
117
|
function g(e, t, i) {
|
|
118
118
|
i == null ? e.removeAttribute(t) : e.getAttribute(t) !== i && e.setAttribute(t, i);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function bi(e) {
|
|
121
121
|
return e === "" ? null : +e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Lr(e) {
|
|
124
124
|
return Array.from(e.childNodes);
|
|
125
125
|
}
|
|
126
126
|
function W(e, t) {
|
|
127
127
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
128
128
|
t);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ye(e, t) {
|
|
131
131
|
e.value = t == null ? "" : t;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ze(e, t, i, r) {
|
|
134
134
|
i == null ? e.style.removeProperty(t) : e.style.setProperty(t, i, "");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Ie(e, t, i) {
|
|
137
137
|
for (let r = 0; r < e.options.length; r += 1) {
|
|
138
138
|
const n = e.options[r];
|
|
139
139
|
if (n.__value === t) {
|
|
@@ -143,11 +143,11 @@ function He(e, t, i) {
|
|
|
143
143
|
}
|
|
144
144
|
(!i || t !== void 0) && (e.selectedIndex = -1);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ot(e) {
|
|
147
147
|
const t = e.querySelector(":checked");
|
|
148
148
|
return t && t.__value;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function xr(e) {
|
|
151
151
|
const t = {};
|
|
152
152
|
return e.childNodes.forEach(
|
|
153
153
|
/** @param {Element} node */
|
|
@@ -156,98 +156,98 @@ function yr(e) {
|
|
|
156
156
|
}
|
|
157
157
|
), t;
|
|
158
158
|
}
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
|
|
159
|
+
let ve;
|
|
160
|
+
function ge(e) {
|
|
161
|
+
ve = e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
if (!
|
|
163
|
+
function Tr() {
|
|
164
|
+
if (!ve)
|
|
165
165
|
throw new Error("Function called outside component initialization");
|
|
166
|
-
return
|
|
166
|
+
return ve;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
168
|
+
function wr(e) {
|
|
169
|
+
Tr().$$.on_mount.push(e);
|
|
170
170
|
}
|
|
171
|
-
const se = [],
|
|
171
|
+
const se = [], He = [];
|
|
172
172
|
let ae = [];
|
|
173
|
-
const
|
|
174
|
-
let
|
|
175
|
-
function
|
|
176
|
-
|
|
173
|
+
const It = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
174
|
+
let rt = !1;
|
|
175
|
+
function Pr() {
|
|
176
|
+
rt || (rt = !0, Sr.then(X));
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function _e(e) {
|
|
179
179
|
ae.push(e);
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const Ye = /* @__PURE__ */ new Set();
|
|
182
182
|
let ne = 0;
|
|
183
183
|
function X() {
|
|
184
184
|
if (ne !== 0)
|
|
185
185
|
return;
|
|
186
|
-
const e =
|
|
186
|
+
const e = ve;
|
|
187
187
|
do {
|
|
188
188
|
try {
|
|
189
189
|
for (; ne < se.length; ) {
|
|
190
190
|
const t = se[ne];
|
|
191
|
-
ne++,
|
|
191
|
+
ne++, ge(t), Ar(t.$$);
|
|
192
192
|
}
|
|
193
193
|
} catch (t) {
|
|
194
194
|
throw se.length = 0, ne = 0, t;
|
|
195
195
|
}
|
|
196
|
-
for (
|
|
197
|
-
|
|
196
|
+
for (ge(null), se.length = 0, ne = 0; He.length; )
|
|
197
|
+
He.pop()();
|
|
198
198
|
for (let t = 0; t < ae.length; t += 1) {
|
|
199
199
|
const i = ae[t];
|
|
200
|
-
|
|
200
|
+
Ye.has(i) || (Ye.add(i), i());
|
|
201
201
|
}
|
|
202
202
|
ae.length = 0;
|
|
203
203
|
} while (se.length);
|
|
204
|
-
for (;
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
for (; It.length; )
|
|
205
|
+
It.pop()();
|
|
206
|
+
rt = !1, Ye.clear(), ge(e);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Ar(e) {
|
|
209
209
|
if (e.fragment !== null) {
|
|
210
210
|
e.update(), ie(e.before_update);
|
|
211
211
|
const t = e.dirty;
|
|
212
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
212
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Br(e) {
|
|
216
216
|
const t = [], i = [];
|
|
217
217
|
ae.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : i.push(r)), i.forEach((r) => r()), ae = t;
|
|
218
218
|
}
|
|
219
|
-
const
|
|
220
|
-
function
|
|
221
|
-
e && e.i && (
|
|
219
|
+
const Nr = /* @__PURE__ */ new Set();
|
|
220
|
+
function Or(e, t) {
|
|
221
|
+
e && e.i && (Nr.delete(e), e.i(t));
|
|
222
222
|
}
|
|
223
223
|
function te(e) {
|
|
224
224
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ir(e, t, i) {
|
|
227
227
|
const { fragment: r, after_update: n } = e.$$;
|
|
228
|
-
r && r.m(t, i),
|
|
229
|
-
const o = e.$$.on_mount.map(
|
|
228
|
+
r && r.m(t, i), _e(() => {
|
|
229
|
+
const o = e.$$.on_mount.map(mi).filter(vt);
|
|
230
230
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
231
|
-
}), n.forEach(
|
|
231
|
+
}), n.forEach(_e);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Hr(e, t) {
|
|
234
234
|
const i = e.$$;
|
|
235
|
-
i.fragment !== null && (
|
|
235
|
+
i.fragment !== null && (Br(i.after_update), ie(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
e.$$.dirty[0] === -1 && (se.push(e),
|
|
237
|
+
function Mr(e, t) {
|
|
238
|
+
e.$$.dirty[0] === -1 && (se.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
const c =
|
|
242
|
-
|
|
240
|
+
function kr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
241
|
+
const c = ve;
|
|
242
|
+
ge(e);
|
|
243
243
|
const u = e.$$ = {
|
|
244
244
|
fragment: null,
|
|
245
245
|
ctx: [],
|
|
246
246
|
// state
|
|
247
247
|
props: o,
|
|
248
|
-
update:
|
|
248
|
+
update: j,
|
|
249
249
|
not_equal: n,
|
|
250
|
-
bound:
|
|
250
|
+
bound: Nt(),
|
|
251
251
|
// lifecycle
|
|
252
252
|
on_mount: [],
|
|
253
253
|
on_destroy: [],
|
|
@@ -256,28 +256,28 @@ function Nr(e, t, i, r, n, o, s = null, a = [-1]) {
|
|
|
256
256
|
after_update: [],
|
|
257
257
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
258
258
|
// everything else
|
|
259
|
-
callbacks:
|
|
259
|
+
callbacks: Nt(),
|
|
260
260
|
dirty: a,
|
|
261
261
|
skip_bound: !1,
|
|
262
262
|
root: t.target || c.$$.root
|
|
263
263
|
};
|
|
264
264
|
s && s(u.root);
|
|
265
265
|
let l = !1;
|
|
266
|
-
if (u.ctx = i ? i(e, t.props || {}, (h,
|
|
267
|
-
const p =
|
|
268
|
-
return u.ctx && n(u.ctx[h], u.ctx[h] = p) && (!u.skip_bound && u.bound[h] && u.bound[h](p), l &&
|
|
266
|
+
if (u.ctx = i ? i(e, t.props || {}, (h, m, ...f) => {
|
|
267
|
+
const p = f.length ? f[0] : m;
|
|
268
|
+
return u.ctx && n(u.ctx[h], u.ctx[h] = p) && (!u.skip_bound && u.bound[h] && u.bound[h](p), l && Mr(e, h)), m;
|
|
269
269
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
270
270
|
if (t.hydrate) {
|
|
271
|
-
const h =
|
|
272
|
-
u.fragment && u.fragment.l(h), h.forEach(
|
|
271
|
+
const h = Lr(t.target);
|
|
272
|
+
u.fragment && u.fragment.l(h), h.forEach(A);
|
|
273
273
|
} else
|
|
274
274
|
u.fragment && u.fragment.c();
|
|
275
|
-
t.intro &&
|
|
275
|
+
t.intro && Or(e.$$.fragment), Ir(e, t.target, t.anchor), X();
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
ge(c);
|
|
278
278
|
}
|
|
279
|
-
let
|
|
280
|
-
typeof HTMLElement == "function" && (
|
|
279
|
+
let gi;
|
|
280
|
+
typeof HTMLElement == "function" && (gi = class extends HTMLElement {
|
|
281
281
|
constructor(t, i, r) {
|
|
282
282
|
super();
|
|
283
283
|
/** The Svelte component constructor */
|
|
@@ -314,7 +314,7 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
connectedCallback() {
|
|
317
|
-
return
|
|
317
|
+
return Bt(this, null, function* () {
|
|
318
318
|
if (this.$$cn = !0, !this.$$c) {
|
|
319
319
|
let t = function(o) {
|
|
320
320
|
return () => {
|
|
@@ -328,17 +328,17 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
328
328
|
* @param {HTMLElement} [anchor]
|
|
329
329
|
*/
|
|
330
330
|
m: function(u, l) {
|
|
331
|
-
|
|
331
|
+
B(u, s, l);
|
|
332
332
|
},
|
|
333
333
|
d: function(u) {
|
|
334
|
-
u &&
|
|
334
|
+
u && A(s);
|
|
335
335
|
}
|
|
336
336
|
};
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
339
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
340
340
|
return;
|
|
341
|
-
const i = {}, r =
|
|
341
|
+
const i = {}, r = xr(this);
|
|
342
342
|
for (const o of this.$$s)
|
|
343
343
|
o in r && (i[o] = [t(o)]);
|
|
344
344
|
for (const o of this.attributes) {
|
|
@@ -349,7 +349,7 @@ typeof HTMLElement == "function" && (mi = class extends HTMLElement {
|
|
|
349
349
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
350
350
|
this.$$c = new this.$$ctor({
|
|
351
351
|
target: this.shadowRoot || this,
|
|
352
|
-
props:
|
|
352
|
+
props: At(Pt({}, this.$$d), {
|
|
353
353
|
$$slots: i,
|
|
354
354
|
$$scope: {
|
|
355
355
|
ctx: []
|
|
@@ -427,8 +427,8 @@ function Ae(e, t, i, r) {
|
|
|
427
427
|
return t;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
let s = class extends
|
|
430
|
+
function Cr(e, t, i, r, n, o) {
|
|
431
|
+
let s = class extends gi {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(e, i, n), this.$$p_d = t;
|
|
434
434
|
}
|
|
@@ -458,7 +458,7 @@ function Ir(e, t, i, r, n, o) {
|
|
|
458
458
|
}), e.element = /** @type {any} */
|
|
459
459
|
s, s;
|
|
460
460
|
}
|
|
461
|
-
class
|
|
461
|
+
class Dr {
|
|
462
462
|
constructor() {
|
|
463
463
|
/**
|
|
464
464
|
* ### PRIVATE API
|
|
@@ -479,7 +479,7 @@ class Hr {
|
|
|
479
479
|
}
|
|
480
480
|
/** @returns {void} */
|
|
481
481
|
$destroy() {
|
|
482
|
-
|
|
482
|
+
Hr(this, 1), this.$destroy = j;
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
485
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -488,8 +488,8 @@ class Hr {
|
|
|
488
488
|
* @returns {() => void}
|
|
489
489
|
*/
|
|
490
490
|
$on(t, i) {
|
|
491
|
-
if (!
|
|
492
|
-
return
|
|
491
|
+
if (!vt(i))
|
|
492
|
+
return j;
|
|
493
493
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
494
494
|
return r.push(i), () => {
|
|
495
495
|
const n = r.indexOf(i);
|
|
@@ -501,11 +501,11 @@ class Hr {
|
|
|
501
501
|
* @returns {void}
|
|
502
502
|
*/
|
|
503
503
|
$set(t) {
|
|
504
|
-
this.$$set && !
|
|
504
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
507
|
+
const Rr = "4";
|
|
508
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rr);
|
|
509
509
|
const Z = {
|
|
510
510
|
deposit: {
|
|
511
511
|
title: "Deposit Limit",
|
|
@@ -532,16 +532,16 @@ const Z = {
|
|
|
532
532
|
periods: ["Monthly"]
|
|
533
533
|
}
|
|
534
534
|
}, oe = [];
|
|
535
|
-
function
|
|
535
|
+
function jr(e, t) {
|
|
536
536
|
return {
|
|
537
|
-
subscribe:
|
|
537
|
+
subscribe: Re(e, t).subscribe
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Re(e, t = j) {
|
|
541
541
|
let i;
|
|
542
542
|
const r = /* @__PURE__ */ new Set();
|
|
543
543
|
function n(a) {
|
|
544
|
-
if (
|
|
544
|
+
if (pi(e, a) && (e = a, i)) {
|
|
545
545
|
const c = !oe.length;
|
|
546
546
|
for (const u of r)
|
|
547
547
|
u[1](), oe.push(u, e);
|
|
@@ -555,9 +555,9 @@ function De(e, t = U) {
|
|
|
555
555
|
function o(a) {
|
|
556
556
|
n(a(e));
|
|
557
557
|
}
|
|
558
|
-
function s(a, c =
|
|
558
|
+
function s(a, c = j) {
|
|
559
559
|
const u = [a, c];
|
|
560
|
-
return r.add(u), r.size === 1 && (i = t(n, o) ||
|
|
560
|
+
return r.add(u), r.size === 1 && (i = t(n, o) || j), a(e), () => {
|
|
561
561
|
r.delete(u), r.size === 0 && i && (i(), i = null);
|
|
562
562
|
};
|
|
563
563
|
}
|
|
@@ -568,148 +568,134 @@ function fe(e, t, i) {
|
|
|
568
568
|
if (!n.every(Boolean))
|
|
569
569
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
570
570
|
const o = t.length < 2;
|
|
571
|
-
return
|
|
571
|
+
return jr(i, (s, a) => {
|
|
572
572
|
let c = !1;
|
|
573
573
|
const u = [];
|
|
574
|
-
let l = 0, h =
|
|
575
|
-
const
|
|
574
|
+
let l = 0, h = j;
|
|
575
|
+
const m = () => {
|
|
576
576
|
if (l)
|
|
577
577
|
return;
|
|
578
578
|
h();
|
|
579
579
|
const p = t(r ? u[0] : u, s, a);
|
|
580
|
-
o ? s(p) : h =
|
|
581
|
-
},
|
|
582
|
-
(p, _) =>
|
|
580
|
+
o ? s(p) : h = vt(p) ? p : j;
|
|
581
|
+
}, f = n.map(
|
|
582
|
+
(p, _) => di(
|
|
583
583
|
p,
|
|
584
584
|
(R) => {
|
|
585
|
-
u[_] = R, l &= ~(1 << _), c &&
|
|
585
|
+
u[_] = R, l &= ~(1 << _), c && m();
|
|
586
586
|
},
|
|
587
587
|
() => {
|
|
588
588
|
l |= 1 << _;
|
|
589
589
|
}
|
|
590
590
|
)
|
|
591
591
|
);
|
|
592
|
-
return c = !0,
|
|
593
|
-
ie(
|
|
592
|
+
return c = !0, m(), function() {
|
|
593
|
+
ie(f), h(), c = !1;
|
|
594
594
|
};
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Ur(e) {
|
|
598
598
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
599
599
|
}
|
|
600
|
-
var
|
|
601
|
-
return
|
|
600
|
+
var $r = function(t) {
|
|
601
|
+
return Fr(t) && !Gr(t);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function Fr(e) {
|
|
604
604
|
return !!e && typeof e == "object";
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Gr(e) {
|
|
607
607
|
var t = Object.prototype.toString.call(e);
|
|
608
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
608
|
+
return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
|
|
609
609
|
}
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
return e.$$typeof ===
|
|
610
|
+
var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
|
|
611
|
+
function Vr(e) {
|
|
612
|
+
return e.$$typeof === Wr;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Xr(e) {
|
|
615
615
|
return Array.isArray(e) ? [] : {};
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
617
|
+
function Ee(e, t) {
|
|
618
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ue(Xr(e), e, t) : e;
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Zr(e, t, i) {
|
|
621
621
|
return e.concat(t).map(function(r) {
|
|
622
|
-
return
|
|
622
|
+
return Ee(r, i);
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Yr(e, t) {
|
|
626
626
|
if (!t.customMerge)
|
|
627
|
-
return
|
|
627
|
+
return ue;
|
|
628
628
|
var i = t.customMerge(e);
|
|
629
|
-
return typeof i == "function" ? i :
|
|
629
|
+
return typeof i == "function" ? i : ue;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function qr(e) {
|
|
632
632
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
633
633
|
return Object.propertyIsEnumerable.call(e, t);
|
|
634
634
|
}) : [];
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return Object.keys(e).concat(
|
|
636
|
+
function Ht(e) {
|
|
637
|
+
return Object.keys(e).concat(qr(e));
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function yi(e, t) {
|
|
640
640
|
try {
|
|
641
641
|
return t in e;
|
|
642
642
|
} catch (i) {
|
|
643
643
|
return !1;
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
646
|
+
function Jr(e, t) {
|
|
647
|
+
return yi(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Qr(e, t, i) {
|
|
650
650
|
var r = {};
|
|
651
|
-
return i.isMergeableObject(e) &&
|
|
652
|
-
r[n] =
|
|
653
|
-
}),
|
|
654
|
-
|
|
651
|
+
return i.isMergeableObject(e) && Ht(e).forEach(function(n) {
|
|
652
|
+
r[n] = Ee(e[n], i);
|
|
653
|
+
}), Ht(t).forEach(function(n) {
|
|
654
|
+
Jr(e, n) || (yi(e, n) && i.isMergeableObject(t[n]) ? r[n] = Yr(n, i)(e[n], t[n], i) : r[n] = Ee(t[n], i));
|
|
655
655
|
}), r;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
i = i || {}, i.arrayMerge = i.arrayMerge ||
|
|
657
|
+
function ue(e, t, i) {
|
|
658
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || Zr, i.isMergeableObject = i.isMergeableObject || $r, i.cloneUnlessOtherwiseSpecified = Ee;
|
|
659
659
|
var r = Array.isArray(t), n = Array.isArray(e), o = r === n;
|
|
660
|
-
return o ? r ? i.arrayMerge(e, t, i) :
|
|
660
|
+
return o ? r ? i.arrayMerge(e, t, i) : Qr(e, t, i) : Ee(t, i);
|
|
661
661
|
}
|
|
662
|
-
|
|
662
|
+
ue.all = function(t, i) {
|
|
663
663
|
if (!Array.isArray(t))
|
|
664
664
|
throw new Error("first argument should be an array");
|
|
665
665
|
return t.reduce(function(r, n) {
|
|
666
|
-
return
|
|
666
|
+
return ue(r, n, i);
|
|
667
667
|
}, {});
|
|
668
668
|
};
|
|
669
|
-
var
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
675
|
-
purpose with or without fee is hereby granted.
|
|
676
|
-
|
|
677
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
678
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
679
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
680
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
681
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
682
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
683
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
684
|
-
***************************************************************************** */
|
|
685
|
-
var tt = function(e, t) {
|
|
686
|
-
return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
669
|
+
var Kr = ue, en = Kr;
|
|
670
|
+
const tn = /* @__PURE__ */ Ur(en);
|
|
671
|
+
var nt = function(e, t) {
|
|
672
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
687
673
|
i.__proto__ = r;
|
|
688
674
|
} || function(i, r) {
|
|
689
675
|
for (var n in r)
|
|
690
676
|
Object.prototype.hasOwnProperty.call(r, n) && (i[n] = r[n]);
|
|
691
|
-
},
|
|
677
|
+
}, nt(e, t);
|
|
692
678
|
};
|
|
693
|
-
function
|
|
679
|
+
function je(e, t) {
|
|
694
680
|
if (typeof t != "function" && t !== null)
|
|
695
681
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
696
|
-
|
|
682
|
+
nt(e, t);
|
|
697
683
|
function i() {
|
|
698
684
|
this.constructor = e;
|
|
699
685
|
}
|
|
700
686
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
701
687
|
}
|
|
702
|
-
var
|
|
703
|
-
return
|
|
688
|
+
var Y = function() {
|
|
689
|
+
return Y = Object.assign || function(t) {
|
|
704
690
|
for (var i, r = 1, n = arguments.length; r < n; r++) {
|
|
705
691
|
i = arguments[r];
|
|
706
692
|
for (var o in i)
|
|
707
693
|
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
708
694
|
}
|
|
709
695
|
return t;
|
|
710
|
-
},
|
|
696
|
+
}, Y.apply(this, arguments);
|
|
711
697
|
};
|
|
712
|
-
function
|
|
698
|
+
function rn(e, t) {
|
|
713
699
|
var i = {};
|
|
714
700
|
for (var r in e)
|
|
715
701
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
@@ -718,75 +704,43 @@ function Jr(e, t) {
|
|
|
718
704
|
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (i[r[n]] = e[r[n]]);
|
|
719
705
|
return i;
|
|
720
706
|
}
|
|
721
|
-
function
|
|
722
|
-
var t = typeof Symbol == "function" && Symbol.iterator, i = t && e[t], r = 0;
|
|
723
|
-
if (i)
|
|
724
|
-
return i.call(e);
|
|
725
|
-
if (e && typeof e.length == "number")
|
|
726
|
-
return {
|
|
727
|
-
next: function() {
|
|
728
|
-
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
729
|
-
}
|
|
730
|
-
};
|
|
731
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
732
|
-
}
|
|
733
|
-
function rt(e, t) {
|
|
734
|
-
var i = typeof Symbol == "function" && e[Symbol.iterator];
|
|
735
|
-
if (!i)
|
|
736
|
-
return e;
|
|
737
|
-
var r = i.call(e), n, o = [], s;
|
|
738
|
-
try {
|
|
739
|
-
for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
|
|
740
|
-
o.push(n.value);
|
|
741
|
-
} catch (a) {
|
|
742
|
-
s = { error: a };
|
|
743
|
-
} finally {
|
|
744
|
-
try {
|
|
745
|
-
n && !n.done && (i = r.return) && i.call(r);
|
|
746
|
-
} finally {
|
|
747
|
-
if (s)
|
|
748
|
-
throw s.error;
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return o;
|
|
752
|
-
}
|
|
753
|
-
function ue(e, t, i) {
|
|
707
|
+
function qe(e, t, i) {
|
|
754
708
|
if (i || arguments.length === 2)
|
|
755
709
|
for (var r = 0, n = t.length, o; r < n; r++)
|
|
756
710
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
757
|
-
return e.concat(o || t);
|
|
711
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
758
712
|
}
|
|
759
|
-
function
|
|
760
|
-
var i = t && t.cache ? t.cache :
|
|
713
|
+
function Je(e, t) {
|
|
714
|
+
var i = t && t.cache ? t.cache : cn, r = t && t.serializer ? t.serializer : un, n = t && t.strategy ? t.strategy : sn;
|
|
761
715
|
return n(e, {
|
|
762
716
|
cache: i,
|
|
763
717
|
serializer: r
|
|
764
718
|
});
|
|
765
719
|
}
|
|
766
|
-
function
|
|
720
|
+
function nn(e) {
|
|
767
721
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
768
722
|
}
|
|
769
|
-
function
|
|
770
|
-
var n =
|
|
723
|
+
function on(e, t, i, r) {
|
|
724
|
+
var n = nn(r) ? r : i(r), o = t.get(n);
|
|
771
725
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(n, o)), o;
|
|
772
726
|
}
|
|
773
|
-
function
|
|
727
|
+
function vi(e, t, i) {
|
|
774
728
|
var r = Array.prototype.slice.call(arguments, 3), n = i(r), o = t.get(n);
|
|
775
729
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(n, o)), o;
|
|
776
730
|
}
|
|
777
|
-
function
|
|
731
|
+
function _i(e, t, i, r, n) {
|
|
778
732
|
return i.bind(t, e, r, n);
|
|
779
733
|
}
|
|
780
|
-
function
|
|
781
|
-
var i = e.length === 1 ?
|
|
782
|
-
return
|
|
734
|
+
function sn(e, t) {
|
|
735
|
+
var i = e.length === 1 ? on : vi;
|
|
736
|
+
return _i(e, this, i, t.cache.create(), t.serializer);
|
|
783
737
|
}
|
|
784
|
-
function
|
|
785
|
-
return
|
|
738
|
+
function an(e, t) {
|
|
739
|
+
return _i(e, this, vi, t.cache.create(), t.serializer);
|
|
786
740
|
}
|
|
787
|
-
var
|
|
741
|
+
var un = function() {
|
|
788
742
|
return JSON.stringify(arguments);
|
|
789
|
-
},
|
|
743
|
+
}, ln = (
|
|
790
744
|
/** @class */
|
|
791
745
|
function() {
|
|
792
746
|
function e() {
|
|
@@ -798,61 +752,71 @@ var rn = function() {
|
|
|
798
752
|
this.cache[t] = i;
|
|
799
753
|
}, e;
|
|
800
754
|
}()
|
|
801
|
-
),
|
|
755
|
+
), cn = {
|
|
802
756
|
create: function() {
|
|
803
|
-
return new
|
|
757
|
+
return new ln();
|
|
804
758
|
}
|
|
805
|
-
},
|
|
806
|
-
variadic:
|
|
807
|
-
},
|
|
759
|
+
}, Qe = {
|
|
760
|
+
variadic: an
|
|
761
|
+
}, Me = function() {
|
|
762
|
+
return Me = Object.assign || function(t) {
|
|
763
|
+
for (var i, r = 1, n = arguments.length; r < n; r++) {
|
|
764
|
+
i = arguments[r];
|
|
765
|
+
for (var o in i)
|
|
766
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
767
|
+
}
|
|
768
|
+
return t;
|
|
769
|
+
}, Me.apply(this, arguments);
|
|
770
|
+
};
|
|
771
|
+
var x;
|
|
808
772
|
(function(e) {
|
|
809
773
|
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";
|
|
810
774
|
})(x || (x = {}));
|
|
811
|
-
var
|
|
775
|
+
var I;
|
|
812
776
|
(function(e) {
|
|
813
777
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
814
|
-
})(
|
|
815
|
-
var
|
|
778
|
+
})(I || (I = {}));
|
|
779
|
+
var le;
|
|
816
780
|
(function(e) {
|
|
817
781
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
818
|
-
})(
|
|
819
|
-
function
|
|
820
|
-
return e.type ===
|
|
782
|
+
})(le || (le = {}));
|
|
783
|
+
function Mt(e) {
|
|
784
|
+
return e.type === I.literal;
|
|
821
785
|
}
|
|
822
|
-
function
|
|
823
|
-
return e.type ===
|
|
786
|
+
function hn(e) {
|
|
787
|
+
return e.type === I.argument;
|
|
824
788
|
}
|
|
825
|
-
function
|
|
826
|
-
return e.type ===
|
|
789
|
+
function Ei(e) {
|
|
790
|
+
return e.type === I.number;
|
|
827
791
|
}
|
|
828
|
-
function
|
|
829
|
-
return e.type ===
|
|
792
|
+
function Li(e) {
|
|
793
|
+
return e.type === I.date;
|
|
830
794
|
}
|
|
831
|
-
function
|
|
832
|
-
return e.type ===
|
|
795
|
+
function xi(e) {
|
|
796
|
+
return e.type === I.time;
|
|
833
797
|
}
|
|
834
|
-
function
|
|
835
|
-
return e.type ===
|
|
798
|
+
function Ti(e) {
|
|
799
|
+
return e.type === I.select;
|
|
836
800
|
}
|
|
837
|
-
function
|
|
838
|
-
return e.type ===
|
|
801
|
+
function wi(e) {
|
|
802
|
+
return e.type === I.plural;
|
|
839
803
|
}
|
|
840
|
-
function
|
|
841
|
-
return e.type ===
|
|
804
|
+
function fn(e) {
|
|
805
|
+
return e.type === I.pound;
|
|
842
806
|
}
|
|
843
|
-
function
|
|
844
|
-
return e.type ===
|
|
807
|
+
function Si(e) {
|
|
808
|
+
return e.type === I.tag;
|
|
845
809
|
}
|
|
846
|
-
function
|
|
847
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
810
|
+
function Pi(e) {
|
|
811
|
+
return !!(e && typeof e == "object" && e.type === le.number);
|
|
848
812
|
}
|
|
849
|
-
function
|
|
850
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
813
|
+
function ot(e) {
|
|
814
|
+
return !!(e && typeof e == "object" && e.type === le.dateTime);
|
|
851
815
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
816
|
+
var Ai = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
|
|
817
|
+
function pn(e) {
|
|
854
818
|
var t = {};
|
|
855
|
-
return e.replace(
|
|
819
|
+
return e.replace(mn, function(i) {
|
|
856
820
|
var r = i.length;
|
|
857
821
|
switch (i[0]) {
|
|
858
822
|
case "G":
|
|
@@ -941,12 +905,22 @@ function ln(e) {
|
|
|
941
905
|
return "";
|
|
942
906
|
}), t;
|
|
943
907
|
}
|
|
944
|
-
var
|
|
945
|
-
function
|
|
908
|
+
var C = function() {
|
|
909
|
+
return C = Object.assign || function(t) {
|
|
910
|
+
for (var i, r = 1, n = arguments.length; r < n; r++) {
|
|
911
|
+
i = arguments[r];
|
|
912
|
+
for (var o in i)
|
|
913
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
914
|
+
}
|
|
915
|
+
return t;
|
|
916
|
+
}, C.apply(this, arguments);
|
|
917
|
+
};
|
|
918
|
+
var dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
919
|
+
function bn(e) {
|
|
946
920
|
if (e.length === 0)
|
|
947
921
|
throw new Error("Number skeleton cannot be empty");
|
|
948
|
-
for (var t = e.split(
|
|
949
|
-
return
|
|
922
|
+
for (var t = e.split(dn).filter(function(m) {
|
|
923
|
+
return m.length > 0;
|
|
950
924
|
}), i = [], r = 0, n = t; r < n.length; r++) {
|
|
951
925
|
var o = n[r], s = o.split("/");
|
|
952
926
|
if (s.length === 0)
|
|
@@ -960,17 +934,17 @@ function hn(e) {
|
|
|
960
934
|
}
|
|
961
935
|
return i;
|
|
962
936
|
}
|
|
963
|
-
function
|
|
937
|
+
function gn(e) {
|
|
964
938
|
return e.replace(/^(.*?)-/, "");
|
|
965
939
|
}
|
|
966
|
-
var
|
|
967
|
-
function
|
|
940
|
+
var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bi = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ni = /^(0+)$/;
|
|
941
|
+
function Ct(e) {
|
|
968
942
|
var t = {};
|
|
969
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
943
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Bi, function(i, r, n) {
|
|
970
944
|
return typeof n != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : n === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof n == "string" ? n.length : 0)), "";
|
|
971
945
|
}), t;
|
|
972
946
|
}
|
|
973
|
-
function
|
|
947
|
+
function Oi(e) {
|
|
974
948
|
switch (e) {
|
|
975
949
|
case "sign-auto":
|
|
976
950
|
return {
|
|
@@ -1010,7 +984,7 @@ function Si(e) {
|
|
|
1010
984
|
};
|
|
1011
985
|
}
|
|
1012
986
|
}
|
|
1013
|
-
function
|
|
987
|
+
function vn(e) {
|
|
1014
988
|
var t;
|
|
1015
989
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1016
990
|
notation: "engineering"
|
|
@@ -1018,17 +992,17 @@ function pn(e) {
|
|
|
1018
992
|
notation: "scientific"
|
|
1019
993
|
}, e = e.slice(1)), t) {
|
|
1020
994
|
var i = e.slice(0, 2);
|
|
1021
|
-
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
995
|
+
if (i === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : i === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ni.test(e))
|
|
1022
996
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1023
997
|
t.minimumIntegerDigits = e.length;
|
|
1024
998
|
}
|
|
1025
999
|
return t;
|
|
1026
1000
|
}
|
|
1027
|
-
function
|
|
1028
|
-
var t = {}, i =
|
|
1001
|
+
function Dt(e) {
|
|
1002
|
+
var t = {}, i = Oi(e);
|
|
1029
1003
|
return i || t;
|
|
1030
1004
|
}
|
|
1031
|
-
function
|
|
1005
|
+
function _n(e) {
|
|
1032
1006
|
for (var t = {}, i = 0, r = e; i < r.length; i++) {
|
|
1033
1007
|
var n = r[i];
|
|
1034
1008
|
switch (n.stem) {
|
|
@@ -1052,7 +1026,7 @@ function dn(e) {
|
|
|
1052
1026
|
continue;
|
|
1053
1027
|
case "measure-unit":
|
|
1054
1028
|
case "unit":
|
|
1055
|
-
t.style = "unit", t.unit =
|
|
1029
|
+
t.style = "unit", t.unit = gn(n.options[0]);
|
|
1056
1030
|
continue;
|
|
1057
1031
|
case "compact-short":
|
|
1058
1032
|
case "K":
|
|
@@ -1063,13 +1037,13 @@ function dn(e) {
|
|
|
1063
1037
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1064
1038
|
continue;
|
|
1065
1039
|
case "scientific":
|
|
1066
|
-
t =
|
|
1067
|
-
return
|
|
1040
|
+
t = C(C(C({}, t), { notation: "scientific" }), n.options.reduce(function(c, u) {
|
|
1041
|
+
return C(C({}, c), Dt(u));
|
|
1068
1042
|
}, {}));
|
|
1069
1043
|
continue;
|
|
1070
1044
|
case "engineering":
|
|
1071
|
-
t =
|
|
1072
|
-
return
|
|
1045
|
+
t = C(C(C({}, t), { notation: "engineering" }), n.options.reduce(function(c, u) {
|
|
1046
|
+
return C(C({}, c), Dt(u));
|
|
1073
1047
|
}, {}));
|
|
1074
1048
|
continue;
|
|
1075
1049
|
case "notation-simple":
|
|
@@ -1114,41 +1088,41 @@ function dn(e) {
|
|
|
1114
1088
|
case "integer-width":
|
|
1115
1089
|
if (n.options.length > 1)
|
|
1116
1090
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1117
|
-
n.options[0].replace(
|
|
1091
|
+
n.options[0].replace(yn, function(c, u, l, h, m, f) {
|
|
1118
1092
|
if (u)
|
|
1119
1093
|
t.minimumIntegerDigits = l.length;
|
|
1120
1094
|
else {
|
|
1121
|
-
if (h &&
|
|
1095
|
+
if (h && m)
|
|
1122
1096
|
throw new Error("We currently do not support maximum integer digits");
|
|
1123
|
-
if (
|
|
1097
|
+
if (f)
|
|
1124
1098
|
throw new Error("We currently do not support exact integer digits");
|
|
1125
1099
|
}
|
|
1126
1100
|
return "";
|
|
1127
1101
|
});
|
|
1128
1102
|
continue;
|
|
1129
1103
|
}
|
|
1130
|
-
if (
|
|
1104
|
+
if (Ni.test(n.stem)) {
|
|
1131
1105
|
t.minimumIntegerDigits = n.stem.length;
|
|
1132
1106
|
continue;
|
|
1133
1107
|
}
|
|
1134
|
-
if (
|
|
1108
|
+
if (kt.test(n.stem)) {
|
|
1135
1109
|
if (n.options.length > 1)
|
|
1136
1110
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1137
|
-
n.stem.replace(
|
|
1138
|
-
return l === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length :
|
|
1111
|
+
n.stem.replace(kt, function(c, u, l, h, m, f) {
|
|
1112
|
+
return l === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : m && f ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + f.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1139
1113
|
});
|
|
1140
1114
|
var o = n.options[0];
|
|
1141
|
-
o === "w" ? t =
|
|
1115
|
+
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), Ct(o)));
|
|
1142
1116
|
continue;
|
|
1143
1117
|
}
|
|
1144
|
-
if (
|
|
1145
|
-
t =
|
|
1118
|
+
if (Bi.test(n.stem)) {
|
|
1119
|
+
t = C(C({}, t), Ct(n.stem));
|
|
1146
1120
|
continue;
|
|
1147
1121
|
}
|
|
1148
|
-
var s =
|
|
1149
|
-
s && (t =
|
|
1150
|
-
var a =
|
|
1151
|
-
a && (t =
|
|
1122
|
+
var s = Oi(n.stem);
|
|
1123
|
+
s && (t = C(C({}, t), s));
|
|
1124
|
+
var a = vn(n.stem);
|
|
1125
|
+
a && (t = C(C({}, t), a));
|
|
1152
1126
|
}
|
|
1153
1127
|
return t;
|
|
1154
1128
|
}
|
|
@@ -2567,13 +2541,13 @@ var Se = {
|
|
|
2567
2541
|
"h"
|
|
2568
2542
|
]
|
|
2569
2543
|
};
|
|
2570
|
-
function
|
|
2544
|
+
function En(e, t) {
|
|
2571
2545
|
for (var i = "", r = 0; r < e.length; r++) {
|
|
2572
2546
|
var n = e.charAt(r);
|
|
2573
2547
|
if (n === "j") {
|
|
2574
2548
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === n; )
|
|
2575
2549
|
o++, r++;
|
|
2576
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u =
|
|
2550
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Ln(t);
|
|
2577
2551
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2578
2552
|
i += c;
|
|
2579
2553
|
for (; s-- > 0; )
|
|
@@ -2583,7 +2557,7 @@ function bn(e, t) {
|
|
|
2583
2557
|
}
|
|
2584
2558
|
return i;
|
|
2585
2559
|
}
|
|
2586
|
-
function
|
|
2560
|
+
function Ln(e) {
|
|
2587
2561
|
var t = e.hourCycle;
|
|
2588
2562
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2589
2563
|
e.hourCycles && // @ts-ignore
|
|
@@ -2605,20 +2579,20 @@ function gn(e) {
|
|
|
2605
2579
|
var n = Se[r || ""] || Se[i || ""] || Se["".concat(i, "-001")] || Se["001"];
|
|
2606
2580
|
return n[0];
|
|
2607
2581
|
}
|
|
2608
|
-
var
|
|
2582
|
+
var Ke, xn = new RegExp("^".concat(Ai.source, "*")), Tn = new RegExp("".concat(Ai.source, "*$"));
|
|
2609
2583
|
function T(e, t) {
|
|
2610
2584
|
return { start: e, end: t };
|
|
2611
2585
|
}
|
|
2612
|
-
var
|
|
2586
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sn = !!String.fromCodePoint, Pn = !!Object.fromEntries, An = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
2613
2587
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2614
|
-
},
|
|
2588
|
+
}, st = !0;
|
|
2615
2589
|
try {
|
|
2616
|
-
var
|
|
2617
|
-
|
|
2590
|
+
var Hn = Hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2591
|
+
st = ((Ke = Hn.exec("a")) === null || Ke === void 0 ? void 0 : Ke[0]) === "a";
|
|
2618
2592
|
} catch (e) {
|
|
2619
|
-
|
|
2593
|
+
st = !1;
|
|
2620
2594
|
}
|
|
2621
|
-
var
|
|
2595
|
+
var Rt = wn ? (
|
|
2622
2596
|
// Native
|
|
2623
2597
|
function(t, i, r) {
|
|
2624
2598
|
return t.startsWith(i, r);
|
|
@@ -2628,7 +2602,7 @@ var Ot = _n ? (
|
|
|
2628
2602
|
function(t, i, r) {
|
|
2629
2603
|
return t.slice(r, r + i.length) === i;
|
|
2630
2604
|
}
|
|
2631
|
-
),
|
|
2605
|
+
), at = Sn ? String.fromCodePoint : (
|
|
2632
2606
|
// IE11
|
|
2633
2607
|
function() {
|
|
2634
2608
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2640,9 +2614,9 @@ var Ot = _n ? (
|
|
|
2640
2614
|
}
|
|
2641
2615
|
return r;
|
|
2642
2616
|
}
|
|
2643
|
-
),
|
|
2617
|
+
), jt = (
|
|
2644
2618
|
// native
|
|
2645
|
-
|
|
2619
|
+
Pn ? Object.fromEntries : (
|
|
2646
2620
|
// Ponyfill
|
|
2647
2621
|
function(t) {
|
|
2648
2622
|
for (var i = {}, r = 0, n = t; r < n.length; r++) {
|
|
@@ -2652,7 +2626,7 @@ var Ot = _n ? (
|
|
|
2652
2626
|
return i;
|
|
2653
2627
|
}
|
|
2654
2628
|
)
|
|
2655
|
-
),
|
|
2629
|
+
), Ii = An ? (
|
|
2656
2630
|
// Native
|
|
2657
2631
|
function(t, i) {
|
|
2658
2632
|
return t.codePointAt(i);
|
|
@@ -2666,7 +2640,7 @@ var Ot = _n ? (
|
|
|
2666
2640
|
return n < 55296 || n > 56319 || i + 1 === r || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? n : (n - 55296 << 10) + (o - 56320) + 65536;
|
|
2667
2641
|
}
|
|
2668
2642
|
}
|
|
2669
|
-
),
|
|
2643
|
+
), Mn = Bn ? (
|
|
2670
2644
|
// Native
|
|
2671
2645
|
function(t) {
|
|
2672
2646
|
return t.trimStart();
|
|
@@ -2674,9 +2648,9 @@ var Ot = _n ? (
|
|
|
2674
2648
|
) : (
|
|
2675
2649
|
// Ponyfill
|
|
2676
2650
|
function(t) {
|
|
2677
|
-
return t.replace(
|
|
2651
|
+
return t.replace(xn, "");
|
|
2678
2652
|
}
|
|
2679
|
-
),
|
|
2653
|
+
), kn = Nn ? (
|
|
2680
2654
|
// Native
|
|
2681
2655
|
function(t) {
|
|
2682
2656
|
return t.trimEnd();
|
|
@@ -2684,32 +2658,32 @@ var Ot = _n ? (
|
|
|
2684
2658
|
) : (
|
|
2685
2659
|
// Ponyfill
|
|
2686
2660
|
function(t) {
|
|
2687
|
-
return t.replace(
|
|
2661
|
+
return t.replace(Tn, "");
|
|
2688
2662
|
}
|
|
2689
2663
|
);
|
|
2690
|
-
function
|
|
2664
|
+
function Hi(e, t) {
|
|
2691
2665
|
return new RegExp(e, t);
|
|
2692
2666
|
}
|
|
2693
|
-
var
|
|
2694
|
-
if (
|
|
2695
|
-
var
|
|
2696
|
-
|
|
2667
|
+
var ut;
|
|
2668
|
+
if (st) {
|
|
2669
|
+
var Ut = Hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2670
|
+
ut = function(t, i) {
|
|
2697
2671
|
var r;
|
|
2698
|
-
|
|
2699
|
-
var n =
|
|
2672
|
+
Ut.lastIndex = i;
|
|
2673
|
+
var n = Ut.exec(t);
|
|
2700
2674
|
return (r = n[1]) !== null && r !== void 0 ? r : "";
|
|
2701
2675
|
};
|
|
2702
2676
|
} else
|
|
2703
|
-
|
|
2677
|
+
ut = function(t, i) {
|
|
2704
2678
|
for (var r = []; ; ) {
|
|
2705
|
-
var n =
|
|
2706
|
-
if (n === void 0 ||
|
|
2679
|
+
var n = Ii(t, i);
|
|
2680
|
+
if (n === void 0 || Mi(n) || jn(n))
|
|
2707
2681
|
break;
|
|
2708
2682
|
r.push(n), i += n >= 65536 ? 2 : 1;
|
|
2709
2683
|
}
|
|
2710
|
-
return
|
|
2684
|
+
return at.apply(void 0, r);
|
|
2711
2685
|
};
|
|
2712
|
-
var
|
|
2686
|
+
var Cn = (
|
|
2713
2687
|
/** @class */
|
|
2714
2688
|
function() {
|
|
2715
2689
|
function e(t, i) {
|
|
@@ -2733,14 +2707,14 @@ var In = (
|
|
|
2733
2707
|
if (o === 35 && (i === "plural" || i === "selectordinal")) {
|
|
2734
2708
|
var a = this.clonePosition();
|
|
2735
2709
|
this.bump(), n.push({
|
|
2736
|
-
type:
|
|
2710
|
+
type: I.pound,
|
|
2737
2711
|
location: T(a, this.clonePosition())
|
|
2738
2712
|
});
|
|
2739
2713
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2740
2714
|
if (r)
|
|
2741
2715
|
break;
|
|
2742
2716
|
return this.error(x.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2743
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2717
|
+
} else if (o === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
|
|
2744
2718
|
var s = this.parseTag(t, i);
|
|
2745
2719
|
if (s.err)
|
|
2746
2720
|
return s;
|
|
@@ -2761,7 +2735,7 @@ var In = (
|
|
|
2761
2735
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2762
2736
|
return {
|
|
2763
2737
|
val: {
|
|
2764
|
-
type:
|
|
2738
|
+
type: I.literal,
|
|
2765
2739
|
value: "<".concat(n, "/>"),
|
|
2766
2740
|
location: T(r, this.clonePosition())
|
|
2767
2741
|
},
|
|
@@ -2773,12 +2747,12 @@ var In = (
|
|
|
2773
2747
|
return o;
|
|
2774
2748
|
var s = o.val, a = this.clonePosition();
|
|
2775
2749
|
if (this.bumpIf("</")) {
|
|
2776
|
-
if (this.isEOF() || !
|
|
2750
|
+
if (this.isEOF() || !lt(this.char()))
|
|
2777
2751
|
return this.error(x.INVALID_TAG, T(a, this.clonePosition()));
|
|
2778
2752
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2779
2753
|
return n !== u ? this.error(x.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2780
2754
|
val: {
|
|
2781
|
-
type:
|
|
2755
|
+
type: I.tag,
|
|
2782
2756
|
value: n,
|
|
2783
2757
|
children: s,
|
|
2784
2758
|
location: T(r, this.clonePosition())
|
|
@@ -2791,7 +2765,7 @@ var In = (
|
|
|
2791
2765
|
return this.error(x.INVALID_TAG, T(r, this.clonePosition()));
|
|
2792
2766
|
}, e.prototype.parseTagName = function() {
|
|
2793
2767
|
var t = this.offset();
|
|
2794
|
-
for (this.bump(); !this.isEOF() &&
|
|
2768
|
+
for (this.bump(); !this.isEOF() && Rn(this.char()); )
|
|
2795
2769
|
this.bump();
|
|
2796
2770
|
return this.message.slice(t, this.offset());
|
|
2797
2771
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2815,12 +2789,12 @@ var In = (
|
|
|
2815
2789
|
}
|
|
2816
2790
|
var c = T(r, this.clonePosition());
|
|
2817
2791
|
return {
|
|
2818
|
-
val: { type:
|
|
2792
|
+
val: { type: I.literal, value: n, location: c },
|
|
2819
2793
|
err: null
|
|
2820
2794
|
};
|
|
2821
2795
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2822
2796
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2823
|
-
!
|
|
2797
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2824
2798
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2825
2799
|
if (this.isEOF() || this.char() !== 39)
|
|
2826
2800
|
return null;
|
|
@@ -2854,12 +2828,12 @@ var In = (
|
|
|
2854
2828
|
i.push(r);
|
|
2855
2829
|
this.bump();
|
|
2856
2830
|
}
|
|
2857
|
-
return
|
|
2831
|
+
return at.apply(void 0, i);
|
|
2858
2832
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2859
2833
|
if (this.isEOF())
|
|
2860
2834
|
return null;
|
|
2861
2835
|
var r = this.char();
|
|
2862
|
-
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2836
|
+
return r === 60 || r === 123 || r === 35 && (i === "plural" || i === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), at(r));
|
|
2863
2837
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2864
2838
|
var r = this.clonePosition();
|
|
2865
2839
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2875,7 +2849,7 @@ var In = (
|
|
|
2875
2849
|
case 125:
|
|
2876
2850
|
return this.bump(), {
|
|
2877
2851
|
val: {
|
|
2878
|
-
type:
|
|
2852
|
+
type: I.argument,
|
|
2879
2853
|
// value does not include the opening and closing braces.
|
|
2880
2854
|
value: n,
|
|
2881
2855
|
location: T(r, this.clonePosition())
|
|
@@ -2888,7 +2862,7 @@ var In = (
|
|
|
2888
2862
|
return this.error(x.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2889
2863
|
}
|
|
2890
2864
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2891
|
-
var t = this.clonePosition(), i = this.offset(), r =
|
|
2865
|
+
var t = this.clonePosition(), i = this.offset(), r = ut(this.message, i), n = i + r.length;
|
|
2892
2866
|
this.bumpTo(n);
|
|
2893
2867
|
var o = this.clonePosition(), s = T(t, o);
|
|
2894
2868
|
return { value: r, location: s };
|
|
@@ -2907,44 +2881,44 @@ var In = (
|
|
|
2907
2881
|
var l = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
2908
2882
|
if (h.err)
|
|
2909
2883
|
return h;
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2884
|
+
var m = kn(h.val);
|
|
2885
|
+
if (m.length === 0)
|
|
2912
2886
|
return this.error(x.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2913
|
-
var
|
|
2914
|
-
u = { style:
|
|
2887
|
+
var f = T(l, this.clonePosition());
|
|
2888
|
+
u = { style: m, styleLocation: f };
|
|
2915
2889
|
}
|
|
2916
2890
|
var p = this.tryParseArgumentClose(n);
|
|
2917
2891
|
if (p.err)
|
|
2918
2892
|
return p;
|
|
2919
2893
|
var _ = T(n, this.clonePosition());
|
|
2920
|
-
if (u &&
|
|
2921
|
-
var R =
|
|
2894
|
+
if (u && Rt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2895
|
+
var R = Mn(u.style.slice(2));
|
|
2922
2896
|
if (a === "number") {
|
|
2923
2897
|
var h = this.parseNumberSkeletonFromString(R, u.styleLocation);
|
|
2924
2898
|
return h.err ? h : {
|
|
2925
|
-
val: { type:
|
|
2899
|
+
val: { type: I.number, value: r, location: _, style: h.val },
|
|
2926
2900
|
err: null
|
|
2927
2901
|
};
|
|
2928
2902
|
} else {
|
|
2929
2903
|
if (R.length === 0)
|
|
2930
2904
|
return this.error(x.EXPECT_DATE_TIME_SKELETON, _);
|
|
2931
|
-
var
|
|
2932
|
-
this.locale && (
|
|
2933
|
-
var
|
|
2934
|
-
type:
|
|
2935
|
-
pattern:
|
|
2905
|
+
var S = R;
|
|
2906
|
+
this.locale && (S = En(R, this.locale));
|
|
2907
|
+
var m = {
|
|
2908
|
+
type: le.dateTime,
|
|
2909
|
+
pattern: S,
|
|
2936
2910
|
location: u.styleLocation,
|
|
2937
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2938
|
-
}, L = a === "date" ?
|
|
2911
|
+
parsedOptions: this.shouldParseSkeletons ? pn(S) : {}
|
|
2912
|
+
}, L = a === "date" ? I.date : I.time;
|
|
2939
2913
|
return {
|
|
2940
|
-
val: { type: L, value: r, location: _, style:
|
|
2914
|
+
val: { type: L, value: r, location: _, style: m },
|
|
2941
2915
|
err: null
|
|
2942
2916
|
};
|
|
2943
2917
|
}
|
|
2944
2918
|
}
|
|
2945
2919
|
return {
|
|
2946
2920
|
val: {
|
|
2947
|
-
type: a === "number" ?
|
|
2921
|
+
type: a === "number" ? I.number : a === "date" ? I.date : I.time,
|
|
2948
2922
|
value: r,
|
|
2949
2923
|
location: _,
|
|
2950
2924
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -2957,39 +2931,39 @@ var In = (
|
|
|
2957
2931
|
case "select": {
|
|
2958
2932
|
var w = this.clonePosition();
|
|
2959
2933
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2960
|
-
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, T(w,
|
|
2934
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, T(w, Me({}, w)));
|
|
2961
2935
|
this.bumpSpace();
|
|
2962
|
-
var
|
|
2963
|
-
if (a !== "select" &&
|
|
2936
|
+
var O = this.parseIdentifierIfPossible(), P = 0;
|
|
2937
|
+
if (a !== "select" && O.value === "offset") {
|
|
2964
2938
|
if (!this.bumpIf(":"))
|
|
2965
2939
|
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2966
2940
|
this.bumpSpace();
|
|
2967
2941
|
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2968
2942
|
if (h.err)
|
|
2969
2943
|
return h;
|
|
2970
|
-
this.bumpSpace(),
|
|
2944
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), P = h.val;
|
|
2971
2945
|
}
|
|
2972
|
-
var
|
|
2973
|
-
if (
|
|
2974
|
-
return
|
|
2946
|
+
var H = this.tryParsePluralOrSelectOptions(t, a, i, O);
|
|
2947
|
+
if (H.err)
|
|
2948
|
+
return H;
|
|
2975
2949
|
var p = this.tryParseArgumentClose(n);
|
|
2976
2950
|
if (p.err)
|
|
2977
2951
|
return p;
|
|
2978
2952
|
var D = T(n, this.clonePosition());
|
|
2979
2953
|
return a === "select" ? {
|
|
2980
2954
|
val: {
|
|
2981
|
-
type:
|
|
2955
|
+
type: I.select,
|
|
2982
2956
|
value: r,
|
|
2983
|
-
options:
|
|
2957
|
+
options: jt(H.val),
|
|
2984
2958
|
location: D
|
|
2985
2959
|
},
|
|
2986
2960
|
err: null
|
|
2987
2961
|
} : {
|
|
2988
2962
|
val: {
|
|
2989
|
-
type:
|
|
2963
|
+
type: I.plural,
|
|
2990
2964
|
value: r,
|
|
2991
|
-
options:
|
|
2992
|
-
offset:
|
|
2965
|
+
options: jt(H.val),
|
|
2966
|
+
offset: P,
|
|
2993
2967
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2994
2968
|
location: D
|
|
2995
2969
|
},
|
|
@@ -3039,16 +3013,16 @@ var In = (
|
|
|
3039
3013
|
}, e.prototype.parseNumberSkeletonFromString = function(t, i) {
|
|
3040
3014
|
var r = [];
|
|
3041
3015
|
try {
|
|
3042
|
-
r =
|
|
3016
|
+
r = bn(t);
|
|
3043
3017
|
} catch (n) {
|
|
3044
3018
|
return this.error(x.INVALID_NUMBER_SKELETON, i);
|
|
3045
3019
|
}
|
|
3046
3020
|
return {
|
|
3047
3021
|
val: {
|
|
3048
|
-
type:
|
|
3022
|
+
type: le.number,
|
|
3049
3023
|
tokens: r,
|
|
3050
3024
|
location: i,
|
|
3051
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3025
|
+
parsedOptions: this.shouldParseSkeletons ? _n(r) : {}
|
|
3052
3026
|
},
|
|
3053
3027
|
err: null
|
|
3054
3028
|
};
|
|
@@ -3057,9 +3031,9 @@ var In = (
|
|
|
3057
3031
|
if (u.length === 0) {
|
|
3058
3032
|
var h = this.clonePosition();
|
|
3059
3033
|
if (i !== "select" && this.bumpIf("=")) {
|
|
3060
|
-
var
|
|
3061
|
-
if (
|
|
3062
|
-
return
|
|
3034
|
+
var m = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3035
|
+
if (m.err)
|
|
3036
|
+
return m;
|
|
3063
3037
|
l = T(h, this.clonePosition()), u = this.message.slice(h.offset, this.offset());
|
|
3064
3038
|
} else
|
|
3065
3039
|
break;
|
|
@@ -3067,20 +3041,20 @@ var In = (
|
|
|
3067
3041
|
if (c.has(u))
|
|
3068
3042
|
return this.error(i === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3069
3043
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3070
|
-
var
|
|
3044
|
+
var f = this.clonePosition();
|
|
3071
3045
|
if (!this.bumpIf("{"))
|
|
3072
3046
|
return this.error(i === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
3073
3047
|
var p = this.parseMessage(t + 1, i, r);
|
|
3074
3048
|
if (p.err)
|
|
3075
3049
|
return p;
|
|
3076
|
-
var _ = this.tryParseArgumentClose(
|
|
3050
|
+
var _ = this.tryParseArgumentClose(f);
|
|
3077
3051
|
if (_.err)
|
|
3078
3052
|
return _;
|
|
3079
3053
|
a.push([
|
|
3080
3054
|
u,
|
|
3081
3055
|
{
|
|
3082
3056
|
value: p.val,
|
|
3083
|
-
location: T(
|
|
3057
|
+
location: T(f, this.clonePosition())
|
|
3084
3058
|
}
|
|
3085
3059
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3086
3060
|
}
|
|
@@ -3096,7 +3070,7 @@ var In = (
|
|
|
3096
3070
|
break;
|
|
3097
3071
|
}
|
|
3098
3072
|
var c = T(n, this.clonePosition());
|
|
3099
|
-
return o ? (s *= r,
|
|
3073
|
+
return o ? (s *= r, In(s) ? { val: s, err: null } : this.error(i, c)) : this.error(t, c);
|
|
3100
3074
|
}, e.prototype.offset = function() {
|
|
3101
3075
|
return this.position.offset;
|
|
3102
3076
|
}, e.prototype.isEOF = function() {
|
|
@@ -3111,7 +3085,7 @@ var In = (
|
|
|
3111
3085
|
var t = this.position.offset;
|
|
3112
3086
|
if (t >= this.message.length)
|
|
3113
3087
|
throw Error("out of bound");
|
|
3114
|
-
var i =
|
|
3088
|
+
var i = Ii(this.message, t);
|
|
3115
3089
|
if (i === void 0)
|
|
3116
3090
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3117
3091
|
return i;
|
|
@@ -3130,7 +3104,7 @@ var In = (
|
|
|
3130
3104
|
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);
|
|
3131
3105
|
}
|
|
3132
3106
|
}, e.prototype.bumpIf = function(t) {
|
|
3133
|
-
if (
|
|
3107
|
+
if (Rt(this.message, t, this.offset())) {
|
|
3134
3108
|
for (var i = 0; i < t.length; i++)
|
|
3135
3109
|
this.bump();
|
|
3136
3110
|
return !0;
|
|
@@ -3152,7 +3126,7 @@ var In = (
|
|
|
3152
3126
|
break;
|
|
3153
3127
|
}
|
|
3154
3128
|
}, e.prototype.bumpSpace = function() {
|
|
3155
|
-
for (; !this.isEOF() &&
|
|
3129
|
+
for (; !this.isEOF() && Mi(this.char()); )
|
|
3156
3130
|
this.bump();
|
|
3157
3131
|
}, e.prototype.peek = function() {
|
|
3158
3132
|
if (this.isEOF())
|
|
@@ -3162,47 +3136,47 @@ var In = (
|
|
|
3162
3136
|
}, e;
|
|
3163
3137
|
}()
|
|
3164
3138
|
);
|
|
3165
|
-
function
|
|
3139
|
+
function lt(e) {
|
|
3166
3140
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3167
3141
|
}
|
|
3168
|
-
function
|
|
3169
|
-
return
|
|
3142
|
+
function Dn(e) {
|
|
3143
|
+
return lt(e) || e === 47;
|
|
3170
3144
|
}
|
|
3171
|
-
function
|
|
3145
|
+
function Rn(e) {
|
|
3172
3146
|
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;
|
|
3173
3147
|
}
|
|
3174
|
-
function
|
|
3148
|
+
function Mi(e) {
|
|
3175
3149
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3176
3150
|
}
|
|
3177
|
-
function
|
|
3151
|
+
function jn(e) {
|
|
3178
3152
|
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;
|
|
3179
3153
|
}
|
|
3180
|
-
function
|
|
3154
|
+
function ct(e) {
|
|
3181
3155
|
e.forEach(function(t) {
|
|
3182
|
-
if (delete t.location,
|
|
3156
|
+
if (delete t.location, Ti(t) || wi(t))
|
|
3183
3157
|
for (var i in t.options)
|
|
3184
|
-
delete t.options[i].location,
|
|
3158
|
+
delete t.options[i].location, ct(t.options[i].value);
|
|
3185
3159
|
else
|
|
3186
|
-
|
|
3160
|
+
Ei(t) && Pi(t.style) || (Li(t) || xi(t)) && ot(t.style) ? delete t.style.location : Si(t) && ct(t.children);
|
|
3187
3161
|
});
|
|
3188
3162
|
}
|
|
3189
|
-
function
|
|
3190
|
-
t === void 0 && (t = {}), t =
|
|
3191
|
-
var i = new
|
|
3163
|
+
function Un(e, t) {
|
|
3164
|
+
t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3165
|
+
var i = new Cn(e, t).parse();
|
|
3192
3166
|
if (i.err) {
|
|
3193
3167
|
var r = SyntaxError(x[i.err.kind]);
|
|
3194
3168
|
throw r.location = i.err.location, r.originalMessage = i.err.message, r;
|
|
3195
3169
|
}
|
|
3196
|
-
return t != null && t.captureLocation ||
|
|
3170
|
+
return t != null && t.captureLocation || ct(i.val), i.val;
|
|
3197
3171
|
}
|
|
3198
|
-
var
|
|
3172
|
+
var ce;
|
|
3199
3173
|
(function(e) {
|
|
3200
3174
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3201
|
-
})(
|
|
3202
|
-
var
|
|
3175
|
+
})(ce || (ce = {}));
|
|
3176
|
+
var Ue = (
|
|
3203
3177
|
/** @class */
|
|
3204
3178
|
function(e) {
|
|
3205
|
-
|
|
3179
|
+
je(t, e);
|
|
3206
3180
|
function t(i, r, n) {
|
|
3207
3181
|
var o = e.call(this, i) || this;
|
|
3208
3182
|
return o.code = r, o.originalMessage = n, o;
|
|
@@ -3211,48 +3185,48 @@ var Re = (
|
|
|
3211
3185
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3212
3186
|
}, t;
|
|
3213
3187
|
}(Error)
|
|
3214
|
-
),
|
|
3188
|
+
), $t = (
|
|
3215
3189
|
/** @class */
|
|
3216
3190
|
function(e) {
|
|
3217
|
-
|
|
3191
|
+
je(t, e);
|
|
3218
3192
|
function t(i, r, n, o) {
|
|
3219
|
-
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(r, '". Options are "').concat(Object.keys(n).join('", "'), '"'),
|
|
3193
|
+
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(r, '". Options are "').concat(Object.keys(n).join('", "'), '"'), ce.INVALID_VALUE, o) || this;
|
|
3220
3194
|
}
|
|
3221
3195
|
return t;
|
|
3222
|
-
}(
|
|
3223
|
-
),
|
|
3196
|
+
}(Ue)
|
|
3197
|
+
), $n = (
|
|
3224
3198
|
/** @class */
|
|
3225
3199
|
function(e) {
|
|
3226
|
-
|
|
3200
|
+
je(t, e);
|
|
3227
3201
|
function t(i, r, n) {
|
|
3228
|
-
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(r),
|
|
3202
|
+
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(r), ce.INVALID_VALUE, n) || this;
|
|
3229
3203
|
}
|
|
3230
3204
|
return t;
|
|
3231
|
-
}(
|
|
3232
|
-
),
|
|
3205
|
+
}(Ue)
|
|
3206
|
+
), Fn = (
|
|
3233
3207
|
/** @class */
|
|
3234
3208
|
function(e) {
|
|
3235
|
-
|
|
3209
|
+
je(t, e);
|
|
3236
3210
|
function t(i, r) {
|
|
3237
|
-
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(r, '"'),
|
|
3211
|
+
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(r, '"'), ce.MISSING_VALUE, r) || this;
|
|
3238
3212
|
}
|
|
3239
3213
|
return t;
|
|
3240
|
-
}(
|
|
3214
|
+
}(Ue)
|
|
3241
3215
|
), z;
|
|
3242
3216
|
(function(e) {
|
|
3243
3217
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3244
3218
|
})(z || (z = {}));
|
|
3245
|
-
function
|
|
3219
|
+
function Gn(e) {
|
|
3246
3220
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3247
3221
|
var r = t[t.length - 1];
|
|
3248
3222
|
return !r || r.type !== z.literal || i.type !== z.literal ? t.push(i) : r.value += i.value, t;
|
|
3249
3223
|
}, []);
|
|
3250
3224
|
}
|
|
3251
|
-
function
|
|
3225
|
+
function zn(e) {
|
|
3252
3226
|
return typeof e == "function";
|
|
3253
3227
|
}
|
|
3254
3228
|
function Be(e, t, i, r, n, o, s) {
|
|
3255
|
-
if (e.length === 1 &&
|
|
3229
|
+
if (e.length === 1 && Mt(e[0]))
|
|
3256
3230
|
return [
|
|
3257
3231
|
{
|
|
3258
3232
|
type: z.literal,
|
|
@@ -3261,14 +3235,14 @@ function Be(e, t, i, r, n, o, s) {
|
|
|
3261
3235
|
];
|
|
3262
3236
|
for (var a = [], c = 0, u = e; c < u.length; c++) {
|
|
3263
3237
|
var l = u[c];
|
|
3264
|
-
if (
|
|
3238
|
+
if (Mt(l)) {
|
|
3265
3239
|
a.push({
|
|
3266
3240
|
type: z.literal,
|
|
3267
3241
|
value: l.value
|
|
3268
3242
|
});
|
|
3269
3243
|
continue;
|
|
3270
3244
|
}
|
|
3271
|
-
if (
|
|
3245
|
+
if (fn(l)) {
|
|
3272
3246
|
typeof o == "number" && a.push({
|
|
3273
3247
|
type: z.literal,
|
|
3274
3248
|
value: i.getNumberFormat(t).format(o)
|
|
@@ -3277,89 +3251,89 @@ function Be(e, t, i, r, n, o, s) {
|
|
|
3277
3251
|
}
|
|
3278
3252
|
var h = l.value;
|
|
3279
3253
|
if (!(n && h in n))
|
|
3280
|
-
throw new
|
|
3281
|
-
var
|
|
3282
|
-
if (
|
|
3283
|
-
(!
|
|
3284
|
-
type: typeof
|
|
3285
|
-
value:
|
|
3254
|
+
throw new Fn(h, s);
|
|
3255
|
+
var m = n[h];
|
|
3256
|
+
if (hn(l)) {
|
|
3257
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3258
|
+
type: typeof m == "string" ? z.literal : z.object,
|
|
3259
|
+
value: m
|
|
3286
3260
|
});
|
|
3287
3261
|
continue;
|
|
3288
3262
|
}
|
|
3289
|
-
if (
|
|
3290
|
-
var
|
|
3263
|
+
if (Li(l)) {
|
|
3264
|
+
var f = typeof l.style == "string" ? r.date[l.style] : ot(l.style) ? l.style.parsedOptions : void 0;
|
|
3291
3265
|
a.push({
|
|
3292
3266
|
type: z.literal,
|
|
3293
|
-
value: i.getDateTimeFormat(t,
|
|
3267
|
+
value: i.getDateTimeFormat(t, f).format(m)
|
|
3294
3268
|
});
|
|
3295
3269
|
continue;
|
|
3296
3270
|
}
|
|
3297
|
-
if (
|
|
3298
|
-
var
|
|
3271
|
+
if (xi(l)) {
|
|
3272
|
+
var f = typeof l.style == "string" ? r.time[l.style] : ot(l.style) ? l.style.parsedOptions : r.time.medium;
|
|
3299
3273
|
a.push({
|
|
3300
3274
|
type: z.literal,
|
|
3301
|
-
value: i.getDateTimeFormat(t,
|
|
3275
|
+
value: i.getDateTimeFormat(t, f).format(m)
|
|
3302
3276
|
});
|
|
3303
3277
|
continue;
|
|
3304
3278
|
}
|
|
3305
|
-
if (
|
|
3306
|
-
var
|
|
3307
|
-
|
|
3279
|
+
if (Ei(l)) {
|
|
3280
|
+
var f = typeof l.style == "string" ? r.number[l.style] : Pi(l.style) ? l.style.parsedOptions : void 0;
|
|
3281
|
+
f && f.scale && (m = m * (f.scale || 1)), a.push({
|
|
3308
3282
|
type: z.literal,
|
|
3309
|
-
value: i.getNumberFormat(t,
|
|
3283
|
+
value: i.getNumberFormat(t, f).format(m)
|
|
3310
3284
|
});
|
|
3311
3285
|
continue;
|
|
3312
3286
|
}
|
|
3313
|
-
if (
|
|
3287
|
+
if (Si(l)) {
|
|
3314
3288
|
var p = l.children, _ = l.value, R = n[_];
|
|
3315
|
-
if (!
|
|
3316
|
-
throw new
|
|
3317
|
-
var
|
|
3318
|
-
return
|
|
3289
|
+
if (!zn(R))
|
|
3290
|
+
throw new $n(_, "function", s);
|
|
3291
|
+
var S = Be(p, t, i, r, n, o), L = R(S.map(function(P) {
|
|
3292
|
+
return P.value;
|
|
3319
3293
|
}));
|
|
3320
|
-
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(
|
|
3294
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(P) {
|
|
3321
3295
|
return {
|
|
3322
|
-
type: typeof
|
|
3323
|
-
value:
|
|
3296
|
+
type: typeof P == "string" ? z.literal : z.object,
|
|
3297
|
+
value: P
|
|
3324
3298
|
};
|
|
3325
3299
|
}));
|
|
3326
3300
|
}
|
|
3327
|
-
if (
|
|
3328
|
-
var w = l.options[
|
|
3301
|
+
if (Ti(l)) {
|
|
3302
|
+
var w = l.options[m] || l.options.other;
|
|
3329
3303
|
if (!w)
|
|
3330
|
-
throw new
|
|
3304
|
+
throw new $t(l.value, m, Object.keys(l.options), s);
|
|
3331
3305
|
a.push.apply(a, Be(w.value, t, i, r, n));
|
|
3332
3306
|
continue;
|
|
3333
3307
|
}
|
|
3334
|
-
if (
|
|
3335
|
-
var w = l.options["=".concat(
|
|
3308
|
+
if (wi(l)) {
|
|
3309
|
+
var w = l.options["=".concat(m)];
|
|
3336
3310
|
if (!w) {
|
|
3337
3311
|
if (!Intl.PluralRules)
|
|
3338
|
-
throw new
|
|
3312
|
+
throw new Ue(`Intl.PluralRules is not available in this environment.
|
|
3339
3313
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3340
|
-
`,
|
|
3341
|
-
var
|
|
3342
|
-
w = l.options[
|
|
3314
|
+
`, ce.MISSING_INTL_API, s);
|
|
3315
|
+
var O = i.getPluralRules(t, { type: l.pluralType }).select(m - (l.offset || 0));
|
|
3316
|
+
w = l.options[O] || l.options.other;
|
|
3343
3317
|
}
|
|
3344
3318
|
if (!w)
|
|
3345
|
-
throw new
|
|
3346
|
-
a.push.apply(a, Be(w.value, t, i, r, n,
|
|
3319
|
+
throw new $t(l.value, m, Object.keys(l.options), s);
|
|
3320
|
+
a.push.apply(a, Be(w.value, t, i, r, n, m - (l.offset || 0)));
|
|
3347
3321
|
continue;
|
|
3348
3322
|
}
|
|
3349
3323
|
}
|
|
3350
|
-
return
|
|
3324
|
+
return Gn(a);
|
|
3351
3325
|
}
|
|
3352
|
-
function
|
|
3353
|
-
return t ?
|
|
3354
|
-
return i[r] =
|
|
3326
|
+
function Wn(e, t) {
|
|
3327
|
+
return t ? Y(Y(Y({}, e || {}), t || {}), Object.keys(e).reduce(function(i, r) {
|
|
3328
|
+
return i[r] = Y(Y({}, e[r]), t[r] || {}), i;
|
|
3355
3329
|
}, {})) : e;
|
|
3356
3330
|
}
|
|
3357
|
-
function
|
|
3331
|
+
function Vn(e, t) {
|
|
3358
3332
|
return t ? Object.keys(e).reduce(function(i, r) {
|
|
3359
|
-
return i[r] =
|
|
3360
|
-
},
|
|
3333
|
+
return i[r] = Wn(e[r], t[r]), i;
|
|
3334
|
+
}, Y({}, e)) : e;
|
|
3361
3335
|
}
|
|
3362
|
-
function
|
|
3336
|
+
function et(e) {
|
|
3363
3337
|
return {
|
|
3364
3338
|
create: function() {
|
|
3365
3339
|
return {
|
|
@@ -3373,39 +3347,39 @@ function Je(e) {
|
|
|
3373
3347
|
}
|
|
3374
3348
|
};
|
|
3375
3349
|
}
|
|
3376
|
-
function
|
|
3350
|
+
function Xn(e) {
|
|
3377
3351
|
return e === void 0 && (e = {
|
|
3378
3352
|
number: {},
|
|
3379
3353
|
dateTime: {},
|
|
3380
3354
|
pluralRules: {}
|
|
3381
3355
|
}), {
|
|
3382
|
-
getNumberFormat:
|
|
3356
|
+
getNumberFormat: Je(function() {
|
|
3383
3357
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3384
3358
|
i[r] = arguments[r];
|
|
3385
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3359
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, qe([void 0], i, !1)))();
|
|
3386
3360
|
}, {
|
|
3387
|
-
cache:
|
|
3388
|
-
strategy:
|
|
3361
|
+
cache: et(e.number),
|
|
3362
|
+
strategy: Qe.variadic
|
|
3389
3363
|
}),
|
|
3390
|
-
getDateTimeFormat:
|
|
3364
|
+
getDateTimeFormat: Je(function() {
|
|
3391
3365
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3392
3366
|
i[r] = arguments[r];
|
|
3393
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3367
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, qe([void 0], i, !1)))();
|
|
3394
3368
|
}, {
|
|
3395
|
-
cache:
|
|
3396
|
-
strategy:
|
|
3369
|
+
cache: et(e.dateTime),
|
|
3370
|
+
strategy: Qe.variadic
|
|
3397
3371
|
}),
|
|
3398
|
-
getPluralRules:
|
|
3372
|
+
getPluralRules: Je(function() {
|
|
3399
3373
|
for (var t, i = [], r = 0; r < arguments.length; r++)
|
|
3400
3374
|
i[r] = arguments[r];
|
|
3401
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3375
|
+
return new ((t = Intl.PluralRules).bind.apply(t, qe([void 0], i, !1)))();
|
|
3402
3376
|
}, {
|
|
3403
|
-
cache:
|
|
3404
|
-
strategy:
|
|
3377
|
+
cache: et(e.pluralRules),
|
|
3378
|
+
strategy: Qe.variadic
|
|
3405
3379
|
})
|
|
3406
3380
|
};
|
|
3407
3381
|
}
|
|
3408
|
-
var
|
|
3382
|
+
var Zn = (
|
|
3409
3383
|
/** @class */
|
|
3410
3384
|
function() {
|
|
3411
3385
|
function e(t, i, r, n) {
|
|
@@ -3419,8 +3393,8 @@ var Gn = (
|
|
|
3419
3393
|
var u = o.formatToParts(c);
|
|
3420
3394
|
if (u.length === 1)
|
|
3421
3395
|
return u[0].value;
|
|
3422
|
-
var l = u.reduce(function(h,
|
|
3423
|
-
return !h.length ||
|
|
3396
|
+
var l = u.reduce(function(h, m) {
|
|
3397
|
+
return !h.length || m.type !== z.literal || typeof h[h.length - 1] != "string" ? h.push(m.value) : h[h.length - 1] += m.value, h;
|
|
3424
3398
|
}, []);
|
|
3425
3399
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3426
3400
|
}, this.formatToParts = function(c) {
|
|
@@ -3437,13 +3411,13 @@ var Gn = (
|
|
|
3437
3411
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3438
3412
|
var s = n || {};
|
|
3439
3413
|
s.formatters;
|
|
3440
|
-
var a =
|
|
3441
|
-
this.ast = e.__parse(t,
|
|
3414
|
+
var a = rn(s, ["formatters"]);
|
|
3415
|
+
this.ast = e.__parse(t, Y(Y({}, a), { locale: this.resolvedLocale }));
|
|
3442
3416
|
} else
|
|
3443
3417
|
this.ast = t;
|
|
3444
3418
|
if (!Array.isArray(this.ast))
|
|
3445
3419
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3446
|
-
this.formats =
|
|
3420
|
+
this.formats = Vn(e.formats, r), this.formatters = n && n.formatters || Xn(this.formatterCache);
|
|
3447
3421
|
}
|
|
3448
3422
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3449
3423
|
get: function() {
|
|
@@ -3456,7 +3430,7 @@ var Gn = (
|
|
|
3456
3430
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3457
3431
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3458
3432
|
}
|
|
3459
|
-
}, e.__parse =
|
|
3433
|
+
}, e.__parse = Un, e.formats = {
|
|
3460
3434
|
number: {
|
|
3461
3435
|
integer: {
|
|
3462
3436
|
maximumFractionDigits: 0
|
|
@@ -3517,7 +3491,7 @@ var Gn = (
|
|
|
3517
3491
|
}, e;
|
|
3518
3492
|
}()
|
|
3519
3493
|
);
|
|
3520
|
-
function
|
|
3494
|
+
function Yn(e, t) {
|
|
3521
3495
|
if (t == null)
|
|
3522
3496
|
return;
|
|
3523
3497
|
if (t in e)
|
|
@@ -3538,92 +3512,92 @@ function zn(e, t) {
|
|
|
3538
3512
|
r = void 0;
|
|
3539
3513
|
return r;
|
|
3540
3514
|
}
|
|
3541
|
-
const ee = {},
|
|
3515
|
+
const ee = {}, qn = (e, t, i) => i && (t in ee || (ee[t] = {}), e in ee[t] || (ee[t][e] = i), i), ki = (e, t) => {
|
|
3542
3516
|
if (t == null)
|
|
3543
3517
|
return;
|
|
3544
3518
|
if (t in ee && e in ee[t])
|
|
3545
3519
|
return ee[t][e];
|
|
3546
|
-
const i =
|
|
3520
|
+
const i = $e(t);
|
|
3547
3521
|
for (let r = 0; r < i.length; r++) {
|
|
3548
|
-
const n = i[r], o =
|
|
3522
|
+
const n = i[r], o = Qn(n, e);
|
|
3549
3523
|
if (o)
|
|
3550
|
-
return
|
|
3524
|
+
return qn(e, t, o);
|
|
3551
3525
|
}
|
|
3552
3526
|
};
|
|
3553
|
-
let
|
|
3554
|
-
const
|
|
3555
|
-
function
|
|
3556
|
-
return
|
|
3527
|
+
let _t;
|
|
3528
|
+
const xe = Re({});
|
|
3529
|
+
function Jn(e) {
|
|
3530
|
+
return _t[e] || null;
|
|
3557
3531
|
}
|
|
3558
|
-
function
|
|
3559
|
-
return e in
|
|
3532
|
+
function Ci(e) {
|
|
3533
|
+
return e in _t;
|
|
3560
3534
|
}
|
|
3561
|
-
function
|
|
3562
|
-
if (!
|
|
3535
|
+
function Qn(e, t) {
|
|
3536
|
+
if (!Ci(e))
|
|
3563
3537
|
return null;
|
|
3564
|
-
const i =
|
|
3565
|
-
return
|
|
3538
|
+
const i = Jn(e);
|
|
3539
|
+
return Yn(i, t);
|
|
3566
3540
|
}
|
|
3567
|
-
function
|
|
3541
|
+
function Kn(e) {
|
|
3568
3542
|
if (e == null)
|
|
3569
3543
|
return;
|
|
3570
|
-
const t =
|
|
3544
|
+
const t = $e(e);
|
|
3571
3545
|
for (let i = 0; i < t.length; i++) {
|
|
3572
3546
|
const r = t[i];
|
|
3573
|
-
if (
|
|
3547
|
+
if (Ci(r))
|
|
3574
3548
|
return r;
|
|
3575
3549
|
}
|
|
3576
3550
|
}
|
|
3577
|
-
function
|
|
3578
|
-
delete ee[e],
|
|
3551
|
+
function Di(e, ...t) {
|
|
3552
|
+
delete ee[e], xe.update((i) => (i[e] = tn.all([i[e] || {}, ...t]), i));
|
|
3579
3553
|
}
|
|
3580
3554
|
fe(
|
|
3581
|
-
[
|
|
3555
|
+
[xe],
|
|
3582
3556
|
([e]) => Object.keys(e)
|
|
3583
3557
|
);
|
|
3584
|
-
|
|
3558
|
+
xe.subscribe((e) => _t = e);
|
|
3585
3559
|
const Ne = {};
|
|
3586
|
-
function
|
|
3560
|
+
function eo(e, t) {
|
|
3587
3561
|
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
|
3588
3562
|
}
|
|
3589
|
-
function
|
|
3563
|
+
function Ri(e) {
|
|
3590
3564
|
return Ne[e];
|
|
3591
3565
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3594
|
-
const i =
|
|
3566
|
+
function to(e) {
|
|
3567
|
+
return $e(e).map((t) => {
|
|
3568
|
+
const i = Ri(t);
|
|
3595
3569
|
return [t, i ? [...i] : []];
|
|
3596
3570
|
}).filter(([, t]) => t.length > 0);
|
|
3597
3571
|
}
|
|
3598
|
-
function
|
|
3599
|
-
return e == null ? !1 :
|
|
3572
|
+
function ht(e) {
|
|
3573
|
+
return e == null ? !1 : $e(e).some(
|
|
3600
3574
|
(t) => {
|
|
3601
3575
|
var i;
|
|
3602
|
-
return (i =
|
|
3576
|
+
return (i = Ri(t)) == null ? void 0 : i.size;
|
|
3603
3577
|
}
|
|
3604
3578
|
);
|
|
3605
3579
|
}
|
|
3606
|
-
function
|
|
3580
|
+
function io(e, t) {
|
|
3607
3581
|
return Promise.all(
|
|
3608
|
-
t.map((r) => (
|
|
3609
|
-
).then((r) =>
|
|
3610
|
-
}
|
|
3611
|
-
const
|
|
3612
|
-
function
|
|
3613
|
-
if (!
|
|
3614
|
-
return e in
|
|
3615
|
-
const t =
|
|
3616
|
-
return
|
|
3582
|
+
t.map((r) => (eo(e, r), r().then((n) => n.default || n)))
|
|
3583
|
+
).then((r) => Di(e, ...r));
|
|
3584
|
+
}
|
|
3585
|
+
const be = {};
|
|
3586
|
+
function ji(e) {
|
|
3587
|
+
if (!ht(e))
|
|
3588
|
+
return e in be ? be[e] : Promise.resolve();
|
|
3589
|
+
const t = to(e);
|
|
3590
|
+
return be[e] = Promise.all(
|
|
3617
3591
|
t.map(
|
|
3618
|
-
([i, r]) =>
|
|
3592
|
+
([i, r]) => io(i, r)
|
|
3619
3593
|
)
|
|
3620
3594
|
).then(() => {
|
|
3621
|
-
if (
|
|
3622
|
-
return
|
|
3623
|
-
delete
|
|
3624
|
-
}),
|
|
3595
|
+
if (ht(e))
|
|
3596
|
+
return ji(e);
|
|
3597
|
+
delete be[e];
|
|
3598
|
+
}), be[e];
|
|
3625
3599
|
}
|
|
3626
|
-
const
|
|
3600
|
+
const ro = {
|
|
3627
3601
|
number: {
|
|
3628
3602
|
scientific: { notation: "scientific" },
|
|
3629
3603
|
engineering: { notation: "engineering" },
|
|
@@ -3652,135 +3626,135 @@ const Qn = {
|
|
|
3652
3626
|
timeZoneName: "short"
|
|
3653
3627
|
}
|
|
3654
3628
|
}
|
|
3655
|
-
},
|
|
3629
|
+
}, no = {
|
|
3656
3630
|
fallbackLocale: null,
|
|
3657
3631
|
loadingDelay: 200,
|
|
3658
|
-
formats:
|
|
3632
|
+
formats: ro,
|
|
3659
3633
|
warnOnMissingMessages: !0,
|
|
3660
3634
|
handleMissingMessage: void 0,
|
|
3661
3635
|
ignoreTag: !0
|
|
3662
|
-
},
|
|
3663
|
-
function
|
|
3664
|
-
return
|
|
3636
|
+
}, oo = no;
|
|
3637
|
+
function he() {
|
|
3638
|
+
return oo;
|
|
3665
3639
|
}
|
|
3666
|
-
const
|
|
3667
|
-
var
|
|
3640
|
+
const tt = Re(!1);
|
|
3641
|
+
var so = Object.defineProperty, ao = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, Ft = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, Gt = (e, t, i) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, ho = (e, t) => {
|
|
3668
3642
|
for (var i in t || (t = {}))
|
|
3669
|
-
|
|
3670
|
-
if (
|
|
3671
|
-
for (var i of
|
|
3672
|
-
|
|
3643
|
+
lo.call(t, i) && Gt(e, i, t[i]);
|
|
3644
|
+
if (Ft)
|
|
3645
|
+
for (var i of Ft(t))
|
|
3646
|
+
co.call(t, i) && Gt(e, i, t[i]);
|
|
3673
3647
|
return e;
|
|
3674
|
-
},
|
|
3675
|
-
let
|
|
3676
|
-
const
|
|
3677
|
-
function
|
|
3648
|
+
}, fo = (e, t) => ao(e, uo(t));
|
|
3649
|
+
let ft;
|
|
3650
|
+
const ke = Re(null);
|
|
3651
|
+
function zt(e) {
|
|
3678
3652
|
return e.split("-").map((t, i, r) => r.slice(0, i + 1).join("-")).reverse();
|
|
3679
3653
|
}
|
|
3680
|
-
function
|
|
3681
|
-
const i =
|
|
3682
|
-
return t ? [.../* @__PURE__ */ new Set([...i, ...
|
|
3654
|
+
function $e(e, t = he().fallbackLocale) {
|
|
3655
|
+
const i = zt(e);
|
|
3656
|
+
return t ? [.../* @__PURE__ */ new Set([...i, ...zt(t)])] : i;
|
|
3683
3657
|
}
|
|
3684
3658
|
function re() {
|
|
3685
|
-
return
|
|
3659
|
+
return ft != null ? ft : void 0;
|
|
3686
3660
|
}
|
|
3687
|
-
|
|
3688
|
-
|
|
3661
|
+
ke.subscribe((e) => {
|
|
3662
|
+
ft = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3689
3663
|
});
|
|
3690
|
-
const
|
|
3691
|
-
if (e &&
|
|
3692
|
-
const { loadingDelay: t } =
|
|
3664
|
+
const mo = (e) => {
|
|
3665
|
+
if (e && Kn(e) && ht(e)) {
|
|
3666
|
+
const { loadingDelay: t } = he();
|
|
3693
3667
|
let i;
|
|
3694
3668
|
return typeof window != "undefined" && re() != null && t ? i = window.setTimeout(
|
|
3695
|
-
() =>
|
|
3669
|
+
() => tt.set(!0),
|
|
3696
3670
|
t
|
|
3697
|
-
) :
|
|
3698
|
-
|
|
3671
|
+
) : tt.set(!0), ji(e).then(() => {
|
|
3672
|
+
ke.set(e);
|
|
3699
3673
|
}).finally(() => {
|
|
3700
|
-
clearTimeout(i),
|
|
3674
|
+
clearTimeout(i), tt.set(!1);
|
|
3701
3675
|
});
|
|
3702
3676
|
}
|
|
3703
|
-
return
|
|
3704
|
-
},
|
|
3705
|
-
set:
|
|
3706
|
-
}),
|
|
3677
|
+
return ke.set(e);
|
|
3678
|
+
}, me = fo(ho({}, ke), {
|
|
3679
|
+
set: mo
|
|
3680
|
+
}), Fe = (e) => {
|
|
3707
3681
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3708
3682
|
return (r) => {
|
|
3709
3683
|
const n = JSON.stringify(r);
|
|
3710
3684
|
return n in t ? t[n] : t[n] = e(r);
|
|
3711
3685
|
};
|
|
3712
3686
|
};
|
|
3713
|
-
var
|
|
3687
|
+
var po = Object.defineProperty, Ce = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, $i = Object.prototype.propertyIsEnumerable, Wt = (e, t, i) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, Et = (e, t) => {
|
|
3714
3688
|
for (var i in t || (t = {}))
|
|
3715
|
-
|
|
3716
|
-
if (
|
|
3717
|
-
for (var i of
|
|
3718
|
-
|
|
3689
|
+
Ui.call(t, i) && Wt(e, i, t[i]);
|
|
3690
|
+
if (Ce)
|
|
3691
|
+
for (var i of Ce(t))
|
|
3692
|
+
$i.call(t, i) && Wt(e, i, t[i]);
|
|
3719
3693
|
return e;
|
|
3720
|
-
},
|
|
3694
|
+
}, pe = (e, t) => {
|
|
3721
3695
|
var i = {};
|
|
3722
3696
|
for (var r in e)
|
|
3723
|
-
|
|
3724
|
-
if (e != null &&
|
|
3725
|
-
for (var r of
|
|
3726
|
-
t.indexOf(r) < 0 &&
|
|
3697
|
+
Ui.call(e, r) && t.indexOf(r) < 0 && (i[r] = e[r]);
|
|
3698
|
+
if (e != null && Ce)
|
|
3699
|
+
for (var r of Ce(e))
|
|
3700
|
+
t.indexOf(r) < 0 && $i.call(e, r) && (i[r] = e[r]);
|
|
3727
3701
|
return i;
|
|
3728
3702
|
};
|
|
3729
|
-
const
|
|
3730
|
-
const { formats: i } =
|
|
3703
|
+
const Le = (e, t) => {
|
|
3704
|
+
const { formats: i } = he();
|
|
3731
3705
|
if (e in i && t in i[e])
|
|
3732
3706
|
return i[e][t];
|
|
3733
3707
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3734
|
-
},
|
|
3708
|
+
}, bo = Fe(
|
|
3735
3709
|
(e) => {
|
|
3736
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3710
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3737
3711
|
if (i == null)
|
|
3738
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3739
|
-
return r && (n =
|
|
3713
|
+
return r && (n = Le("number", r)), new Intl.NumberFormat(i, n);
|
|
3740
3714
|
}
|
|
3741
|
-
),
|
|
3715
|
+
), go = Fe(
|
|
3742
3716
|
(e) => {
|
|
3743
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3717
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3744
3718
|
if (i == null)
|
|
3745
3719
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3746
|
-
return r ? n =
|
|
3720
|
+
return r ? n = Le("date", r) : Object.keys(n).length === 0 && (n = Le("date", "short")), new Intl.DateTimeFormat(i, n);
|
|
3747
3721
|
}
|
|
3748
|
-
),
|
|
3722
|
+
), yo = Fe(
|
|
3749
3723
|
(e) => {
|
|
3750
|
-
var t = e, { locale: i, format: r } = t, n =
|
|
3724
|
+
var t = e, { locale: i, format: r } = t, n = pe(t, ["locale", "format"]);
|
|
3751
3725
|
if (i == null)
|
|
3752
3726
|
throw new Error(
|
|
3753
3727
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3754
3728
|
);
|
|
3755
|
-
return r ? n =
|
|
3729
|
+
return r ? n = Le("time", r) : Object.keys(n).length === 0 && (n = Le("time", "short")), new Intl.DateTimeFormat(i, n);
|
|
3756
3730
|
}
|
|
3757
|
-
),
|
|
3731
|
+
), vo = (e = {}) => {
|
|
3758
3732
|
var t = e, {
|
|
3759
3733
|
locale: i = re()
|
|
3760
|
-
} = t, r =
|
|
3734
|
+
} = t, r = pe(t, [
|
|
3761
3735
|
"locale"
|
|
3762
3736
|
]);
|
|
3763
|
-
return
|
|
3764
|
-
},
|
|
3737
|
+
return bo(Et({ locale: i }, r));
|
|
3738
|
+
}, _o = (e = {}) => {
|
|
3765
3739
|
var t = e, {
|
|
3766
3740
|
locale: i = re()
|
|
3767
|
-
} = t, r =
|
|
3741
|
+
} = t, r = pe(t, [
|
|
3768
3742
|
"locale"
|
|
3769
3743
|
]);
|
|
3770
|
-
return
|
|
3771
|
-
},
|
|
3744
|
+
return go(Et({ locale: i }, r));
|
|
3745
|
+
}, Eo = (e = {}) => {
|
|
3772
3746
|
var t = e, {
|
|
3773
3747
|
locale: i = re()
|
|
3774
|
-
} = t, r =
|
|
3748
|
+
} = t, r = pe(t, [
|
|
3775
3749
|
"locale"
|
|
3776
3750
|
]);
|
|
3777
|
-
return
|
|
3778
|
-
},
|
|
3751
|
+
return yo(Et({ locale: i }, r));
|
|
3752
|
+
}, Lo = Fe(
|
|
3779
3753
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3780
|
-
(e, t = re()) => new
|
|
3781
|
-
ignoreTag:
|
|
3754
|
+
(e, t = re()) => new Zn(e, t, he().formats, {
|
|
3755
|
+
ignoreTag: he().ignoreTag
|
|
3782
3756
|
})
|
|
3783
|
-
),
|
|
3757
|
+
), xo = (e, t = {}) => {
|
|
3784
3758
|
var i, r, n, o;
|
|
3785
3759
|
let s = t;
|
|
3786
3760
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3793,9 +3767,9 @@ const xe = (e, t) => {
|
|
|
3793
3767
|
throw new Error(
|
|
3794
3768
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3795
3769
|
);
|
|
3796
|
-
let l =
|
|
3770
|
+
let l = ki(e, c);
|
|
3797
3771
|
if (!l)
|
|
3798
|
-
l = (o = (n = (r = (i =
|
|
3772
|
+
l = (o = (n = (r = (i = he()).handleMissingMessage) == null ? void 0 : r.call(i, { locale: c, id: e, defaultValue: u })) != null ? n : u) != null ? o : e;
|
|
3799
3773
|
else if (typeof l != "string")
|
|
3800
3774
|
return console.warn(
|
|
3801
3775
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3804,26 +3778,26 @@ const xe = (e, t) => {
|
|
|
3804
3778
|
return l;
|
|
3805
3779
|
let h = l;
|
|
3806
3780
|
try {
|
|
3807
|
-
h =
|
|
3808
|
-
} catch (
|
|
3809
|
-
|
|
3781
|
+
h = Lo(l, c).format(a);
|
|
3782
|
+
} catch (m) {
|
|
3783
|
+
m instanceof Error && console.warn(
|
|
3810
3784
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3811
|
-
|
|
3785
|
+
m.message
|
|
3812
3786
|
);
|
|
3813
3787
|
}
|
|
3814
3788
|
return h;
|
|
3815
|
-
},
|
|
3816
|
-
fe([
|
|
3817
|
-
fe([
|
|
3818
|
-
fe([
|
|
3819
|
-
fe([
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3822
|
-
}
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3825
|
-
}
|
|
3826
|
-
const
|
|
3789
|
+
}, To = (e, t) => Eo(t).format(e), wo = (e, t) => _o(t).format(e), So = (e, t) => vo(t).format(e), Po = (e, t = re()) => ki(e, t), Ao = fe([me, xe], () => xo);
|
|
3790
|
+
fe([me], () => To);
|
|
3791
|
+
fe([me], () => wo);
|
|
3792
|
+
fe([me], () => So);
|
|
3793
|
+
fe([me, xe], () => Po);
|
|
3794
|
+
function Vt(e, t) {
|
|
3795
|
+
Di(e, t);
|
|
3796
|
+
}
|
|
3797
|
+
function Bo(e) {
|
|
3798
|
+
me.set(e);
|
|
3799
|
+
}
|
|
3800
|
+
const Xt = {
|
|
3827
3801
|
en: {
|
|
3828
3802
|
loadingText: "Loading, please wait...",
|
|
3829
3803
|
Monthly: "per month",
|
|
@@ -4276,16 +4250,85 @@ const Ft = {
|
|
|
4276
4250
|
closeButton: "CLOSE"
|
|
4277
4251
|
}
|
|
4278
4252
|
};
|
|
4279
|
-
|
|
4253
|
+
/*! *****************************************************************************
|
|
4254
|
+
Copyright (c) Microsoft Corporation.
|
|
4255
|
+
|
|
4256
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4257
|
+
purpose with or without fee is hereby granted.
|
|
4258
|
+
|
|
4259
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4260
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4261
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4262
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4263
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4264
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4265
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
4266
|
+
***************************************************************************** */
|
|
4267
|
+
var mt = function(e, t) {
|
|
4268
|
+
return mt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
4269
|
+
i.__proto__ = r;
|
|
4270
|
+
} || function(i, r) {
|
|
4271
|
+
for (var n in r)
|
|
4272
|
+
Object.prototype.hasOwnProperty.call(r, n) && (i[n] = r[n]);
|
|
4273
|
+
}, mt(e, t);
|
|
4274
|
+
};
|
|
4275
|
+
function Te(e, t) {
|
|
4276
|
+
if (typeof t != "function" && t !== null)
|
|
4277
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4278
|
+
mt(e, t);
|
|
4279
|
+
function i() {
|
|
4280
|
+
this.constructor = e;
|
|
4281
|
+
}
|
|
4282
|
+
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
4283
|
+
}
|
|
4284
|
+
function pt(e) {
|
|
4285
|
+
var t = typeof Symbol == "function" && Symbol.iterator, i = t && e[t], r = 0;
|
|
4286
|
+
if (i)
|
|
4287
|
+
return i.call(e);
|
|
4288
|
+
if (e && typeof e.length == "number")
|
|
4289
|
+
return {
|
|
4290
|
+
next: function() {
|
|
4291
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
4292
|
+
}
|
|
4293
|
+
};
|
|
4294
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4295
|
+
}
|
|
4296
|
+
function dt(e, t) {
|
|
4297
|
+
var i = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4298
|
+
if (!i)
|
|
4299
|
+
return e;
|
|
4300
|
+
var r = i.call(e), n, o = [], s;
|
|
4301
|
+
try {
|
|
4302
|
+
for (; (t === void 0 || t-- > 0) && !(n = r.next()).done; )
|
|
4303
|
+
o.push(n.value);
|
|
4304
|
+
} catch (a) {
|
|
4305
|
+
s = { error: a };
|
|
4306
|
+
} finally {
|
|
4307
|
+
try {
|
|
4308
|
+
n && !n.done && (i = r.return) && i.call(r);
|
|
4309
|
+
} finally {
|
|
4310
|
+
if (s)
|
|
4311
|
+
throw s.error;
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
return o;
|
|
4315
|
+
}
|
|
4316
|
+
function bt(e, t, i) {
|
|
4317
|
+
if (arguments.length === 2)
|
|
4318
|
+
for (var r = 0, n = t.length, o; r < n; r++)
|
|
4319
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
4320
|
+
return e.concat(o || t);
|
|
4321
|
+
}
|
|
4322
|
+
function Q(e) {
|
|
4280
4323
|
return typeof e == "function";
|
|
4281
4324
|
}
|
|
4282
|
-
function
|
|
4325
|
+
function Fi(e) {
|
|
4283
4326
|
var t = function(r) {
|
|
4284
4327
|
Error.call(r), r.stack = new Error().stack;
|
|
4285
4328
|
}, i = e(t);
|
|
4286
4329
|
return i.prototype = Object.create(Error.prototype), i.prototype.constructor = i, i;
|
|
4287
4330
|
}
|
|
4288
|
-
var
|
|
4331
|
+
var it = Fi(function(e) {
|
|
4289
4332
|
return function(i) {
|
|
4290
4333
|
e(this), this.message = i ? i.length + ` errors occurred during unsubscription:
|
|
4291
4334
|
` + i.map(function(r, n) {
|
|
@@ -4294,13 +4337,13 @@ var Ke = Di(function(e) {
|
|
|
4294
4337
|
`) : "", this.name = "UnsubscriptionError", this.errors = i;
|
|
4295
4338
|
};
|
|
4296
4339
|
});
|
|
4297
|
-
function
|
|
4340
|
+
function gt(e, t) {
|
|
4298
4341
|
if (e) {
|
|
4299
4342
|
var i = e.indexOf(t);
|
|
4300
4343
|
0 <= i && e.splice(i, 1);
|
|
4301
4344
|
}
|
|
4302
4345
|
}
|
|
4303
|
-
var
|
|
4346
|
+
var Ge = function() {
|
|
4304
4347
|
function e(t) {
|
|
4305
4348
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4306
4349
|
}
|
|
@@ -4312,7 +4355,7 @@ var $e = function() {
|
|
|
4312
4355
|
if (s)
|
|
4313
4356
|
if (this._parentage = null, Array.isArray(s))
|
|
4314
4357
|
try {
|
|
4315
|
-
for (var a =
|
|
4358
|
+
for (var a = pt(s), c = a.next(); !c.done; c = a.next()) {
|
|
4316
4359
|
var u = c.value;
|
|
4317
4360
|
u.remove(this);
|
|
4318
4361
|
}
|
|
@@ -4329,29 +4372,29 @@ var $e = function() {
|
|
|
4329
4372
|
else
|
|
4330
4373
|
s.remove(this);
|
|
4331
4374
|
var l = this.initialTeardown;
|
|
4332
|
-
if (
|
|
4375
|
+
if (Q(l))
|
|
4333
4376
|
try {
|
|
4334
4377
|
l();
|
|
4335
4378
|
} catch (_) {
|
|
4336
|
-
o = _ instanceof
|
|
4379
|
+
o = _ instanceof it ? _.errors : [_];
|
|
4337
4380
|
}
|
|
4338
4381
|
var h = this._finalizers;
|
|
4339
4382
|
if (h) {
|
|
4340
4383
|
this._finalizers = null;
|
|
4341
4384
|
try {
|
|
4342
|
-
for (var
|
|
4343
|
-
var p =
|
|
4385
|
+
for (var m = pt(h), f = m.next(); !f.done; f = m.next()) {
|
|
4386
|
+
var p = f.value;
|
|
4344
4387
|
try {
|
|
4345
|
-
|
|
4388
|
+
Zt(p);
|
|
4346
4389
|
} catch (_) {
|
|
4347
|
-
o = o != null ? o : [], _ instanceof
|
|
4390
|
+
o = o != null ? o : [], _ instanceof it ? o = bt(bt([], dt(o)), dt(_.errors)) : o.push(_);
|
|
4348
4391
|
}
|
|
4349
4392
|
}
|
|
4350
4393
|
} catch (_) {
|
|
4351
4394
|
r = { error: _ };
|
|
4352
4395
|
} finally {
|
|
4353
4396
|
try {
|
|
4354
|
-
|
|
4397
|
+
f && !f.done && (n = m.return) && n.call(m);
|
|
4355
4398
|
} finally {
|
|
4356
4399
|
if (r)
|
|
4357
4400
|
throw r.error;
|
|
@@ -4359,13 +4402,13 @@ var $e = function() {
|
|
|
4359
4402
|
}
|
|
4360
4403
|
}
|
|
4361
4404
|
if (o)
|
|
4362
|
-
throw new
|
|
4405
|
+
throw new it(o);
|
|
4363
4406
|
}
|
|
4364
4407
|
}, e.prototype.add = function(t) {
|
|
4365
4408
|
var i;
|
|
4366
4409
|
if (t && t !== this)
|
|
4367
4410
|
if (this.closed)
|
|
4368
|
-
|
|
4411
|
+
Zt(t);
|
|
4369
4412
|
else {
|
|
4370
4413
|
if (t instanceof e) {
|
|
4371
4414
|
if (t.closed || t._hasParent(this))
|
|
@@ -4382,52 +4425,52 @@ var $e = function() {
|
|
|
4382
4425
|
this._parentage = Array.isArray(i) ? (i.push(t), i) : i ? [i, t] : t;
|
|
4383
4426
|
}, e.prototype._removeParent = function(t) {
|
|
4384
4427
|
var i = this._parentage;
|
|
4385
|
-
i === t ? this._parentage = null : Array.isArray(i) &&
|
|
4428
|
+
i === t ? this._parentage = null : Array.isArray(i) && gt(i, t);
|
|
4386
4429
|
}, e.prototype.remove = function(t) {
|
|
4387
4430
|
var i = this._finalizers;
|
|
4388
|
-
i &&
|
|
4431
|
+
i && gt(i, t), t instanceof e && t._removeParent(this);
|
|
4389
4432
|
}, e.EMPTY = function() {
|
|
4390
4433
|
var t = new e();
|
|
4391
4434
|
return t.closed = !0, t;
|
|
4392
4435
|
}(), e;
|
|
4393
|
-
}(),
|
|
4394
|
-
function
|
|
4395
|
-
return e instanceof
|
|
4436
|
+
}(), Gi = Ge.EMPTY;
|
|
4437
|
+
function zi(e) {
|
|
4438
|
+
return e instanceof Ge || e && "closed" in e && Q(e.remove) && Q(e.add) && Q(e.unsubscribe);
|
|
4396
4439
|
}
|
|
4397
|
-
function
|
|
4398
|
-
|
|
4440
|
+
function Zt(e) {
|
|
4441
|
+
Q(e) ? e() : e.unsubscribe();
|
|
4399
4442
|
}
|
|
4400
|
-
var
|
|
4443
|
+
var No = {
|
|
4401
4444
|
Promise: void 0
|
|
4402
|
-
},
|
|
4445
|
+
}, Oo = {
|
|
4403
4446
|
setTimeout: function(e, t) {
|
|
4404
4447
|
for (var i = [], r = 2; r < arguments.length; r++)
|
|
4405
4448
|
i[r - 2] = arguments[r];
|
|
4406
|
-
return setTimeout.apply(void 0,
|
|
4449
|
+
return setTimeout.apply(void 0, bt([e, t], dt(i)));
|
|
4407
4450
|
},
|
|
4408
4451
|
clearTimeout: function(e) {
|
|
4409
4452
|
return clearTimeout(e);
|
|
4410
4453
|
},
|
|
4411
4454
|
delegate: void 0
|
|
4412
4455
|
};
|
|
4413
|
-
function
|
|
4414
|
-
|
|
4456
|
+
function Io(e) {
|
|
4457
|
+
Oo.setTimeout(function() {
|
|
4415
4458
|
throw e;
|
|
4416
4459
|
});
|
|
4417
4460
|
}
|
|
4418
|
-
function
|
|
4461
|
+
function Yt() {
|
|
4419
4462
|
}
|
|
4420
|
-
function
|
|
4463
|
+
function Oe(e) {
|
|
4421
4464
|
e();
|
|
4422
4465
|
}
|
|
4423
|
-
var
|
|
4424
|
-
|
|
4466
|
+
var Wi = function(e) {
|
|
4467
|
+
Te(t, e);
|
|
4425
4468
|
function t(i) {
|
|
4426
4469
|
var r = e.call(this) || this;
|
|
4427
|
-
return r.isStopped = !1, i ? (r.destination = i,
|
|
4470
|
+
return r.isStopped = !1, i ? (r.destination = i, zi(i) && i.add(r)) : r.destination = ko, r;
|
|
4428
4471
|
}
|
|
4429
4472
|
return t.create = function(i, r, n) {
|
|
4430
|
-
return new
|
|
4473
|
+
return new yt(i, r, n);
|
|
4431
4474
|
}, t.prototype.next = function(i) {
|
|
4432
4475
|
this.isStopped || this._next(i);
|
|
4433
4476
|
}, t.prototype.error = function(i) {
|
|
@@ -4451,7 +4494,7 @@ var ji = function(e) {
|
|
|
4451
4494
|
this.unsubscribe();
|
|
4452
4495
|
}
|
|
4453
4496
|
}, t;
|
|
4454
|
-
}(
|
|
4497
|
+
}(Ge), Ho = function() {
|
|
4455
4498
|
function e(t) {
|
|
4456
4499
|
this.partialObserver = t;
|
|
4457
4500
|
}
|
|
@@ -4482,43 +4525,43 @@ var ji = function(e) {
|
|
|
4482
4525
|
Pe(i);
|
|
4483
4526
|
}
|
|
4484
4527
|
}, e;
|
|
4485
|
-
}(),
|
|
4486
|
-
|
|
4528
|
+
}(), yt = function(e) {
|
|
4529
|
+
Te(t, e);
|
|
4487
4530
|
function t(i, r, n) {
|
|
4488
4531
|
var o = e.call(this) || this, s;
|
|
4489
|
-
return
|
|
4532
|
+
return Q(i) || !i ? s = {
|
|
4490
4533
|
next: i != null ? i : void 0,
|
|
4491
4534
|
error: r != null ? r : void 0,
|
|
4492
4535
|
complete: n != null ? n : void 0
|
|
4493
|
-
} : s = i, o.destination = new
|
|
4536
|
+
} : s = i, o.destination = new Ho(s), o;
|
|
4494
4537
|
}
|
|
4495
4538
|
return t;
|
|
4496
|
-
}(
|
|
4539
|
+
}(Wi);
|
|
4497
4540
|
function Pe(e) {
|
|
4498
|
-
|
|
4541
|
+
Io(e);
|
|
4499
4542
|
}
|
|
4500
|
-
function
|
|
4543
|
+
function Mo(e) {
|
|
4501
4544
|
throw e;
|
|
4502
4545
|
}
|
|
4503
|
-
var
|
|
4546
|
+
var ko = {
|
|
4504
4547
|
closed: !0,
|
|
4505
|
-
next:
|
|
4506
|
-
error:
|
|
4507
|
-
complete:
|
|
4508
|
-
},
|
|
4548
|
+
next: Yt,
|
|
4549
|
+
error: Mo,
|
|
4550
|
+
complete: Yt
|
|
4551
|
+
}, Co = function() {
|
|
4509
4552
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4510
4553
|
}();
|
|
4511
|
-
function
|
|
4554
|
+
function Do(e) {
|
|
4512
4555
|
return e;
|
|
4513
4556
|
}
|
|
4514
|
-
function
|
|
4515
|
-
return e.length === 0 ?
|
|
4557
|
+
function Ro(e) {
|
|
4558
|
+
return e.length === 0 ? Do : e.length === 1 ? e[0] : function(i) {
|
|
4516
4559
|
return e.reduce(function(r, n) {
|
|
4517
4560
|
return n(r);
|
|
4518
4561
|
}, i);
|
|
4519
4562
|
};
|
|
4520
4563
|
}
|
|
4521
|
-
var
|
|
4564
|
+
var qt = function() {
|
|
4522
4565
|
function e(t) {
|
|
4523
4566
|
t && (this._subscribe = t);
|
|
4524
4567
|
}
|
|
@@ -4526,8 +4569,8 @@ var Wt = function() {
|
|
|
4526
4569
|
var i = new e();
|
|
4527
4570
|
return i.source = this, i.operator = t, i;
|
|
4528
4571
|
}, e.prototype.subscribe = function(t, i, r) {
|
|
4529
|
-
var n = this, o =
|
|
4530
|
-
return
|
|
4572
|
+
var n = this, o = Uo(t) ? t : new yt(t, i, r);
|
|
4573
|
+
return Oe(function() {
|
|
4531
4574
|
var s = n, a = s.operator, c = s.source;
|
|
4532
4575
|
o.add(a ? a.call(o, c) : c ? n._subscribe(o) : n._trySubscribe(o));
|
|
4533
4576
|
}), o;
|
|
@@ -4539,8 +4582,8 @@ var Wt = function() {
|
|
|
4539
4582
|
}
|
|
4540
4583
|
}, e.prototype.forEach = function(t, i) {
|
|
4541
4584
|
var r = this;
|
|
4542
|
-
return i =
|
|
4543
|
-
var s = new
|
|
4585
|
+
return i = Jt(i), new i(function(n, o) {
|
|
4586
|
+
var s = new yt({
|
|
4544
4587
|
next: function(a) {
|
|
4545
4588
|
try {
|
|
4546
4589
|
t(a);
|
|
@@ -4556,15 +4599,15 @@ var Wt = function() {
|
|
|
4556
4599
|
}, e.prototype._subscribe = function(t) {
|
|
4557
4600
|
var i;
|
|
4558
4601
|
return (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(t);
|
|
4559
|
-
}, e.prototype[
|
|
4602
|
+
}, e.prototype[Co] = function() {
|
|
4560
4603
|
return this;
|
|
4561
4604
|
}, e.prototype.pipe = function() {
|
|
4562
4605
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
4563
4606
|
t[i] = arguments[i];
|
|
4564
|
-
return
|
|
4607
|
+
return Ro(t)(this);
|
|
4565
4608
|
}, e.prototype.toPromise = function(t) {
|
|
4566
4609
|
var i = this;
|
|
4567
|
-
return t =
|
|
4610
|
+
return t = Jt(t), new t(function(r, n) {
|
|
4568
4611
|
var o;
|
|
4569
4612
|
i.subscribe(function(s) {
|
|
4570
4613
|
return o = s;
|
|
@@ -4578,40 +4621,40 @@ var Wt = function() {
|
|
|
4578
4621
|
return new e(t);
|
|
4579
4622
|
}, e;
|
|
4580
4623
|
}();
|
|
4581
|
-
function
|
|
4624
|
+
function Jt(e) {
|
|
4582
4625
|
var t;
|
|
4583
|
-
return (t = e != null ? e :
|
|
4626
|
+
return (t = e != null ? e : No.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4584
4627
|
}
|
|
4585
|
-
function
|
|
4586
|
-
return e &&
|
|
4628
|
+
function jo(e) {
|
|
4629
|
+
return e && Q(e.next) && Q(e.error) && Q(e.complete);
|
|
4587
4630
|
}
|
|
4588
|
-
function
|
|
4589
|
-
return e && e instanceof
|
|
4631
|
+
function Uo(e) {
|
|
4632
|
+
return e && e instanceof Wi || jo(e) && zi(e);
|
|
4590
4633
|
}
|
|
4591
|
-
var
|
|
4634
|
+
var $o = Fi(function(e) {
|
|
4592
4635
|
return function() {
|
|
4593
4636
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4594
4637
|
};
|
|
4595
|
-
}),
|
|
4596
|
-
|
|
4638
|
+
}), Vi = function(e) {
|
|
4639
|
+
Te(t, e);
|
|
4597
4640
|
function t() {
|
|
4598
4641
|
var i = e.call(this) || this;
|
|
4599
4642
|
return i.closed = !1, i.currentObservers = null, i.observers = [], i.isStopped = !1, i.hasError = !1, i.thrownError = null, i;
|
|
4600
4643
|
}
|
|
4601
4644
|
return t.prototype.lift = function(i) {
|
|
4602
|
-
var r = new
|
|
4645
|
+
var r = new Qt(this, this);
|
|
4603
4646
|
return r.operator = i, r;
|
|
4604
4647
|
}, t.prototype._throwIfClosed = function() {
|
|
4605
4648
|
if (this.closed)
|
|
4606
|
-
throw new
|
|
4649
|
+
throw new $o();
|
|
4607
4650
|
}, t.prototype.next = function(i) {
|
|
4608
4651
|
var r = this;
|
|
4609
|
-
|
|
4652
|
+
Oe(function() {
|
|
4610
4653
|
var n, o;
|
|
4611
4654
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4612
4655
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4613
4656
|
try {
|
|
4614
|
-
for (var s =
|
|
4657
|
+
for (var s = pt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4615
4658
|
var c = a.value;
|
|
4616
4659
|
c.next(i);
|
|
4617
4660
|
}
|
|
@@ -4629,7 +4672,7 @@ var Co = Di(function(e) {
|
|
|
4629
4672
|
});
|
|
4630
4673
|
}, t.prototype.error = function(i) {
|
|
4631
4674
|
var r = this;
|
|
4632
|
-
|
|
4675
|
+
Oe(function() {
|
|
4633
4676
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4634
4677
|
r.hasError = r.isStopped = !0, r.thrownError = i;
|
|
4635
4678
|
for (var n = r.observers; n.length; )
|
|
@@ -4638,7 +4681,7 @@ var Co = Di(function(e) {
|
|
|
4638
4681
|
});
|
|
4639
4682
|
}, t.prototype.complete = function() {
|
|
4640
4683
|
var i = this;
|
|
4641
|
-
|
|
4684
|
+
Oe(function() {
|
|
4642
4685
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
4643
4686
|
i.isStopped = !0;
|
|
4644
4687
|
for (var r = i.observers; r.length; )
|
|
@@ -4660,20 +4703,20 @@ var Co = Di(function(e) {
|
|
|
4660
4703
|
return this._throwIfClosed(), this._checkFinalizedStatuses(i), this._innerSubscribe(i);
|
|
4661
4704
|
}, t.prototype._innerSubscribe = function(i) {
|
|
4662
4705
|
var r = this, n = this, o = n.hasError, s = n.isStopped, a = n.observers;
|
|
4663
|
-
return o || s ?
|
|
4664
|
-
r.currentObservers = null,
|
|
4706
|
+
return o || s ? Gi : (this.currentObservers = null, a.push(i), new Ge(function() {
|
|
4707
|
+
r.currentObservers = null, gt(a, i);
|
|
4665
4708
|
}));
|
|
4666
4709
|
}, t.prototype._checkFinalizedStatuses = function(i) {
|
|
4667
4710
|
var r = this, n = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4668
4711
|
n ? i.error(o) : s && i.complete();
|
|
4669
4712
|
}, t.prototype.asObservable = function() {
|
|
4670
|
-
var i = new
|
|
4713
|
+
var i = new qt();
|
|
4671
4714
|
return i.source = this, i;
|
|
4672
4715
|
}, t.create = function(i, r) {
|
|
4673
|
-
return new
|
|
4716
|
+
return new Qt(i, r);
|
|
4674
4717
|
}, t;
|
|
4675
|
-
}(
|
|
4676
|
-
|
|
4718
|
+
}(qt), Qt = function(e) {
|
|
4719
|
+
Te(t, e);
|
|
4677
4720
|
function t(i, r) {
|
|
4678
4721
|
var n = e.call(this) || this;
|
|
4679
4722
|
return n.destination = i, n.source = r, n;
|
|
@@ -4689,17 +4732,17 @@ var Co = Di(function(e) {
|
|
|
4689
4732
|
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.complete) === null || r === void 0 || r.call(i);
|
|
4690
4733
|
}, t.prototype._subscribe = function(i) {
|
|
4691
4734
|
var r, n;
|
|
4692
|
-
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n :
|
|
4735
|
+
return (n = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(i)) !== null && n !== void 0 ? n : Gi;
|
|
4693
4736
|
}, t;
|
|
4694
|
-
}(
|
|
4737
|
+
}(Vi), Xi = {
|
|
4695
4738
|
now: function() {
|
|
4696
|
-
return (
|
|
4739
|
+
return (Xi.delegate || Date).now();
|
|
4697
4740
|
},
|
|
4698
4741
|
delegate: void 0
|
|
4699
|
-
},
|
|
4700
|
-
|
|
4742
|
+
}, Fo = function(e) {
|
|
4743
|
+
Te(t, e);
|
|
4701
4744
|
function t(i, r, n) {
|
|
4702
|
-
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n =
|
|
4745
|
+
i === void 0 && (i = 1 / 0), r === void 0 && (r = 1 / 0), n === void 0 && (n = Xi);
|
|
4703
4746
|
var o = e.call(this) || this;
|
|
4704
4747
|
return o._bufferSize = i, o._windowTime = r, o._timestampProvider = n, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, i), o._windowTime = Math.max(1, r), o;
|
|
4705
4748
|
}
|
|
@@ -4719,23 +4762,23 @@ var Co = Di(function(e) {
|
|
|
4719
4762
|
u && o.splice(0, u + 1);
|
|
4720
4763
|
}
|
|
4721
4764
|
}, t;
|
|
4722
|
-
}(
|
|
4723
|
-
const
|
|
4724
|
-
if (
|
|
4725
|
-
const i = new
|
|
4726
|
-
|
|
4765
|
+
}(Vi);
|
|
4766
|
+
const Kt = [], ei = {}, Go = (e, t = 0) => {
|
|
4767
|
+
if (Kt.indexOf(e) == -1) {
|
|
4768
|
+
const i = new Fo(t);
|
|
4769
|
+
ei[e] = i, Kt.push(e);
|
|
4727
4770
|
}
|
|
4728
|
-
return
|
|
4771
|
+
return ei[e];
|
|
4729
4772
|
};
|
|
4730
|
-
window.emWidgets = { topic:
|
|
4731
|
-
const
|
|
4732
|
-
function
|
|
4773
|
+
window.emWidgets = { topic: Go };
|
|
4774
|
+
const zo = (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));
|
|
4775
|
+
function Wo(e, t) {
|
|
4733
4776
|
if (e) {
|
|
4734
4777
|
const i = document.createElement("style");
|
|
4735
4778
|
i.innerHTML = t, e.appendChild(i);
|
|
4736
4779
|
}
|
|
4737
4780
|
}
|
|
4738
|
-
function
|
|
4781
|
+
function Vo(e, t) {
|
|
4739
4782
|
const i = new URL(t);
|
|
4740
4783
|
fetch(i.href).then((r) => r.text()).then((r) => {
|
|
4741
4784
|
const n = document.createElement("style");
|
|
@@ -4744,7 +4787,7 @@ function $o(e, t) {
|
|
|
4744
4787
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4745
4788
|
});
|
|
4746
4789
|
}
|
|
4747
|
-
function
|
|
4790
|
+
function Xo(e, t, i) {
|
|
4748
4791
|
if (window.emMessageBus) {
|
|
4749
4792
|
const r = document.createElement("style");
|
|
4750
4793
|
window.emMessageBus.subscribe(t, (n) => {
|
|
@@ -4752,31 +4795,31 @@ function Fo(e, t, i) {
|
|
|
4752
4795
|
});
|
|
4753
4796
|
}
|
|
4754
4797
|
}
|
|
4755
|
-
function
|
|
4756
|
-
|
|
4798
|
+
function Zo(e) {
|
|
4799
|
+
yr(e, "svelte-1uoztsw", ':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}input:focus,input :focus-within,input :focus-visible,input :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}select{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:4px;box-shadow:none;font-size:1.4rem;min-height:3.5rem;cursor:pointer;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF)}select:focus,select :focus-within,select :focus-visible,select :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A))}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:320px;padding:0 12px}.LimitsList.Desktop{display:flex;justify-content:space-between;margin:0 auto}.LimitWrapper{background:var(--emw--color-white, #fff);font-size:1.3rem;border:1px solid var(--emw--color-gray-300, #58586B);padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:var(--emw--color-valid, var(--emw--color-green, #48952a));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:1px solid var(--emw--color-gray-50, #F9F8F8)}.LimitDetailsTextWrapper{font-size:1.3rem;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.PendingLimit{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A))}.LimitTitle{font-size:1.5rem}.PopupOverlay{position:absolute;top:0;left:0;background-color:rgba(0, 0, 0, 0.5);height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:var(--emw--color-white, #FFFFFF);font-size:1rem;color:var(--emw--color-black, #000000);width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:1.3rem}.PopupTitleWrapper button{background:var(--emw--color-white, #FFFFFF);font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:1.3rem;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B);border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:var(--emw--color-gray-300, #58586B)}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px rgb(122, 195, 23);border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}');
|
|
4757
4800
|
}
|
|
4758
|
-
function
|
|
4801
|
+
function ti(e, t, i) {
|
|
4759
4802
|
const r = e.slice();
|
|
4760
4803
|
return r[50] = t[i], r;
|
|
4761
4804
|
}
|
|
4762
|
-
function
|
|
4805
|
+
function ii(e, t, i) {
|
|
4763
4806
|
const r = e.slice();
|
|
4764
4807
|
return r[53] = t[i], r;
|
|
4765
4808
|
}
|
|
4766
|
-
function
|
|
4809
|
+
function ri(e, t, i) {
|
|
4767
4810
|
const r = e.slice();
|
|
4768
4811
|
return r[53] = t[i], r;
|
|
4769
4812
|
}
|
|
4770
|
-
function
|
|
4813
|
+
function ni(e, t, i) {
|
|
4771
4814
|
const r = e.slice();
|
|
4772
4815
|
return r[58] = t[i], r;
|
|
4773
4816
|
}
|
|
4774
|
-
function
|
|
4817
|
+
function oi(e) {
|
|
4775
4818
|
let t, i;
|
|
4776
4819
|
function r(s, a) {
|
|
4777
4820
|
return (
|
|
4778
4821
|
/*popupReady*/
|
|
4779
|
-
s[11] ?
|
|
4822
|
+
s[11] ? Yo : qo
|
|
4780
4823
|
);
|
|
4781
4824
|
}
|
|
4782
4825
|
let n = r(e), o = n(e);
|
|
@@ -4786,38 +4829,38 @@ function ei(e) {
|
|
|
4786
4829
|
(e[14] ? "Desktop" : "")), g(t, "class", "PopupOverlay");
|
|
4787
4830
|
},
|
|
4788
4831
|
m(s, a) {
|
|
4789
|
-
|
|
4832
|
+
B(s, t, a), d(t, i), o.m(i, null);
|
|
4790
4833
|
},
|
|
4791
4834
|
p(s, a) {
|
|
4792
4835
|
n === (n = r(s)) && o ? o.p(s, a) : (o.d(1), o = n(s), o && (o.c(), o.m(i, null)));
|
|
4793
4836
|
},
|
|
4794
4837
|
d(s) {
|
|
4795
|
-
s &&
|
|
4838
|
+
s && A(t), o.d();
|
|
4796
4839
|
}
|
|
4797
4840
|
};
|
|
4798
4841
|
}
|
|
4799
|
-
function
|
|
4842
|
+
function Yo(e) {
|
|
4800
4843
|
let t, i, r = (
|
|
4801
4844
|
/*$_*/
|
|
4802
4845
|
e[13]("popupTitle") + ""
|
|
4803
|
-
), n, o, s, a, c, u, l, h,
|
|
4804
|
-
e[9] &&
|
|
4846
|
+
), n, o, s, a, c, u, l, h, m, f, p, _, R, S = !/*limitError*/
|
|
4847
|
+
e[9] && si(e);
|
|
4805
4848
|
return {
|
|
4806
4849
|
c() {
|
|
4807
|
-
t = v("div"), i = v("span"), n = $(r), o =
|
|
4850
|
+
t = v("div"), i = v("span"), n = $(r), o = U(), s = v("button"), s.textContent = "X", a = U(), c = v("div"), u = v("div"), S && S.c(), l = U(), h = v("p"), m = $(
|
|
4808
4851
|
/*popupContent*/
|
|
4809
4852
|
e[12]
|
|
4810
|
-
),
|
|
4853
|
+
), f = U(), p = v("button"), p.textContent = "OK", g(i, "class", "PopupTitle"), g(s, "class", "ClosePopup"), g(t, "class", "PopupTitleWrapper"), g(u, "class", "ResultIconWrapper"), g(h, "class", "DescriptionParagraph"), g(c, "class", "DescriptionWrapper"), g(p, "class", "ConfirmButton");
|
|
4811
4854
|
},
|
|
4812
4855
|
m(L, w) {
|
|
4813
|
-
|
|
4814
|
-
|
|
4856
|
+
B(L, t, w), d(t, i), d(i, n), d(t, o), d(t, s), B(L, a, w), B(L, c, w), d(c, u), S && S.m(u, null), d(c, l), d(c, h), d(h, m), B(L, f, w), B(L, p, w), _ || (R = [
|
|
4857
|
+
q(
|
|
4815
4858
|
s,
|
|
4816
4859
|
"click",
|
|
4817
4860
|
/*closePopup*/
|
|
4818
4861
|
e[20]
|
|
4819
4862
|
),
|
|
4820
|
-
|
|
4863
|
+
q(
|
|
4821
4864
|
p,
|
|
4822
4865
|
"click",
|
|
4823
4866
|
/*closePopup*/
|
|
@@ -4829,57 +4872,57 @@ function zo(e) {
|
|
|
4829
4872
|
w[0] & /*$_*/
|
|
4830
4873
|
8192 && r !== (r = /*$_*/
|
|
4831
4874
|
L[13]("popupTitle") + "") && W(n, r), /*limitError*/
|
|
4832
|
-
L[9] ?
|
|
4875
|
+
L[9] ? S && (S.d(1), S = null) : S ? S.p(L, w) : (S = si(L), S.c(), S.m(u, null)), w[0] & /*popupContent*/
|
|
4833
4876
|
4096 && W(
|
|
4834
|
-
|
|
4877
|
+
m,
|
|
4835
4878
|
/*popupContent*/
|
|
4836
4879
|
L[12]
|
|
4837
4880
|
);
|
|
4838
4881
|
},
|
|
4839
4882
|
d(L) {
|
|
4840
|
-
L && (
|
|
4883
|
+
L && (A(t), A(a), A(c), A(f), A(p)), S && S.d(), _ = !1, ie(R);
|
|
4841
4884
|
}
|
|
4842
4885
|
};
|
|
4843
4886
|
}
|
|
4844
|
-
function
|
|
4887
|
+
function qo(e) {
|
|
4845
4888
|
let t;
|
|
4846
4889
|
return {
|
|
4847
4890
|
c() {
|
|
4848
4891
|
t = v("div"), g(t, "class", "LoadingIndicator");
|
|
4849
4892
|
},
|
|
4850
4893
|
m(i, r) {
|
|
4851
|
-
|
|
4894
|
+
B(i, t, r);
|
|
4852
4895
|
},
|
|
4853
|
-
p:
|
|
4896
|
+
p: j,
|
|
4854
4897
|
d(i) {
|
|
4855
|
-
i &&
|
|
4898
|
+
i && A(t);
|
|
4856
4899
|
}
|
|
4857
4900
|
};
|
|
4858
4901
|
}
|
|
4859
|
-
function
|
|
4902
|
+
function si(e) {
|
|
4860
4903
|
let t, i, r, n, o, s, a, c, u = (
|
|
4861
4904
|
/*$_*/
|
|
4862
4905
|
e[13]("popupSuccess") + ""
|
|
4863
4906
|
), l;
|
|
4864
4907
|
return {
|
|
4865
4908
|
c() {
|
|
4866
|
-
t =
|
|
4867
|
-
`), o =
|
|
4909
|
+
t = de("svg"), i = de("defs"), r = de("style"), n = $(`.fil0 {fill:black;fill-rule:nonzero}
|
|
4910
|
+
`), o = de("g"), s = de("polygon"), a = U(), c = v("p"), l = $(u), g(r, "type", "text/css"), g(s, "class", "fil0"), g(s, "points", "0,38 10,25 36,47 78,0 90,11 37,69 "), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(t, "xmlns:xlink", "http://www.w3.org/1999/xlink"), g(t, "xml:space", "preserve"), g(t, "version", "1.1"), Ze(t, "shape-rendering", "geometricPrecision"), Ze(t, "text-rendering", "geometricPrecision"), Ze(t, "image-rendering", "optimizeQuality"), g(t, "viewBox", "0 0 90 69"), g(t, "x", "0px"), g(t, "y", "0px"), g(t, "fill-rule", "evenodd"), g(t, "clip-rule", "evenodd");
|
|
4868
4911
|
},
|
|
4869
|
-
m(h,
|
|
4870
|
-
|
|
4912
|
+
m(h, m) {
|
|
4913
|
+
B(h, t, m), d(t, i), d(i, r), d(r, n), d(t, o), d(o, s), B(h, a, m), B(h, c, m), d(c, l);
|
|
4871
4914
|
},
|
|
4872
|
-
p(h,
|
|
4873
|
-
|
|
4915
|
+
p(h, m) {
|
|
4916
|
+
m[0] & /*$_*/
|
|
4874
4917
|
8192 && u !== (u = /*$_*/
|
|
4875
4918
|
h[13]("popupSuccess") + "") && W(l, u);
|
|
4876
4919
|
},
|
|
4877
4920
|
d(h) {
|
|
4878
|
-
h && (
|
|
4921
|
+
h && (A(t), A(a), A(c));
|
|
4879
4922
|
}
|
|
4880
4923
|
};
|
|
4881
4924
|
}
|
|
4882
|
-
function
|
|
4925
|
+
function Jo(e) {
|
|
4883
4926
|
let t, i, r, n, o, s, a, c, u, l = (
|
|
4884
4927
|
/*multiplePeriods*/
|
|
4885
4928
|
e[6] ? `${/*$_*/
|
|
@@ -4888,59 +4931,59 @@ function Vo(e) {
|
|
|
4888
4931
|
e[13](`gamingLimits.${/*selectedPeriod*/
|
|
4889
4932
|
e[2]}`)} ${/*$_*/
|
|
4890
4933
|
e[13]("limit")}`
|
|
4891
|
-
), h,
|
|
4934
|
+
), h, m, f, p, _, R = (
|
|
4892
4935
|
/*$_*/
|
|
4893
4936
|
e[13]("setLimit") + ""
|
|
4894
|
-
),
|
|
4937
|
+
), S, L, w, O = te(
|
|
4895
4938
|
/*availableLimits*/
|
|
4896
4939
|
e[15]
|
|
4897
|
-
),
|
|
4898
|
-
for (let E = 0; E <
|
|
4899
|
-
|
|
4900
|
-
let
|
|
4940
|
+
), P = [];
|
|
4941
|
+
for (let E = 0; E < O.length; E += 1)
|
|
4942
|
+
P[E] = ui(ri(e, O, E));
|
|
4943
|
+
let H = (
|
|
4901
4944
|
/*multipleLimits*/
|
|
4902
|
-
e[5] &&
|
|
4945
|
+
e[5] && li(e)
|
|
4903
4946
|
), D = (
|
|
4904
4947
|
/*multiplePeriods*/
|
|
4905
|
-
e[6] &&
|
|
4948
|
+
e[6] && hi(e)
|
|
4906
4949
|
);
|
|
4907
4950
|
return {
|
|
4908
4951
|
c() {
|
|
4909
4952
|
t = v("div"), i = v("div"), r = v("div");
|
|
4910
|
-
for (let E = 0; E <
|
|
4911
|
-
|
|
4912
|
-
n =
|
|
4913
|
-
(e[14] ? "Desktop" : "")), g(u, "class", "LimitInputText"), g(c, "class", "LimitAmountInputWrapper"), g(
|
|
4953
|
+
for (let E = 0; E < P.length; E += 1)
|
|
4954
|
+
P[E].c();
|
|
4955
|
+
n = U(), o = v("form"), H && H.c(), s = U(), D && D.c(), a = U(), c = v("label"), u = v("span"), h = $(l), m = U(), f = v("input"), p = U(), _ = v("button"), S = $(R), g(r, "class", "LimitsList " + /*isDesktop*/
|
|
4956
|
+
(e[14] ? "Desktop" : "")), g(u, "class", "LimitInputText"), g(c, "class", "LimitAmountInputWrapper"), g(f, "type", "number"), g(f, "pattern", "[0-9]*"), g(_, "class", "LimitSubmitButton"), g(_, "type", "button"), _.disabled = !0, g(o, "class", "LimitsInteractionArea " + /*isDesktop*/
|
|
4914
4957
|
(e[14] ? "Desktop" : "")), g(i, "class", "LimitsPageContainer"), g(t, "class", "player-account-gaming-limits-page-2-gmcore");
|
|
4915
4958
|
},
|
|
4916
4959
|
m(E, G) {
|
|
4917
|
-
|
|
4918
|
-
for (let
|
|
4919
|
-
|
|
4920
|
-
d(i, n), d(i, o),
|
|
4921
|
-
|
|
4960
|
+
B(E, t, G), d(t, i), d(i, r);
|
|
4961
|
+
for (let M = 0; M < P.length; M += 1)
|
|
4962
|
+
P[M] && P[M].m(r, null);
|
|
4963
|
+
d(i, n), d(i, o), H && H.m(o, null), d(o, s), D && D.m(o, null), d(o, a), d(o, c), d(c, u), d(u, h), d(o, m), d(o, f), ye(
|
|
4964
|
+
f,
|
|
4922
4965
|
/*inputAmount*/
|
|
4923
4966
|
e[3]
|
|
4924
|
-
), d(o, p), d(o, _), d(_,
|
|
4925
|
-
|
|
4926
|
-
|
|
4967
|
+
), d(o, p), d(o, _), d(_, S), e[35](_), L || (w = [
|
|
4968
|
+
q(
|
|
4969
|
+
f,
|
|
4927
4970
|
"input",
|
|
4928
4971
|
/*input_input_handler*/
|
|
4929
4972
|
e[34]
|
|
4930
4973
|
),
|
|
4931
|
-
|
|
4932
|
-
|
|
4974
|
+
q(
|
|
4975
|
+
f,
|
|
4933
4976
|
"keyup",
|
|
4934
4977
|
/*updateInputValue*/
|
|
4935
4978
|
e[18]
|
|
4936
4979
|
),
|
|
4937
|
-
|
|
4980
|
+
q(
|
|
4938
4981
|
_,
|
|
4939
4982
|
"click",
|
|
4940
4983
|
/*updateLimits*/
|
|
4941
4984
|
e[17]
|
|
4942
4985
|
),
|
|
4943
|
-
|
|
4986
|
+
q(
|
|
4944
4987
|
o,
|
|
4945
4988
|
"submit",
|
|
4946
4989
|
/*updateLimits*/
|
|
@@ -4951,22 +4994,22 @@ function Vo(e) {
|
|
|
4951
4994
|
p(E, G) {
|
|
4952
4995
|
if (G[0] & /*isDesktop, availableLimits, removeLimit, $_*/
|
|
4953
4996
|
581632) {
|
|
4954
|
-
|
|
4997
|
+
O = te(
|
|
4955
4998
|
/*availableLimits*/
|
|
4956
4999
|
E[15]
|
|
4957
5000
|
);
|
|
4958
|
-
let
|
|
4959
|
-
for (
|
|
4960
|
-
const K =
|
|
4961
|
-
|
|
5001
|
+
let M;
|
|
5002
|
+
for (M = 0; M < O.length; M += 1) {
|
|
5003
|
+
const K = ri(E, O, M);
|
|
5004
|
+
P[M] ? P[M].p(K, G) : (P[M] = ui(K), P[M].c(), P[M].m(r, null));
|
|
4962
5005
|
}
|
|
4963
|
-
for (;
|
|
4964
|
-
|
|
4965
|
-
|
|
5006
|
+
for (; M < P.length; M += 1)
|
|
5007
|
+
P[M].d(1);
|
|
5008
|
+
P.length = O.length;
|
|
4966
5009
|
}
|
|
4967
5010
|
/*multipleLimits*/
|
|
4968
|
-
E[5] ?
|
|
4969
|
-
E[6] ? D ? D.p(E, G) : (D =
|
|
5011
|
+
E[5] ? H ? H.p(E, G) : (H = li(E), H.c(), H.m(o, s)) : H && (H.d(1), H = null), /*multiplePeriods*/
|
|
5012
|
+
E[6] ? D ? D.p(E, G) : (D = hi(E), D.c(), D.m(o, a)) : D && (D.d(1), D = null), G[0] & /*multiplePeriods, $_, selectedPeriod*/
|
|
4970
5013
|
8260 && l !== (l = /*multiplePeriods*/
|
|
4971
5014
|
E[6] ? `${/*$_*/
|
|
4972
5015
|
E[13]("amount")}` : `${/*$_*/
|
|
@@ -4974,54 +5017,54 @@ function Vo(e) {
|
|
|
4974
5017
|
E[13](`gamingLimits.${/*selectedPeriod*/
|
|
4975
5018
|
E[2]}`)} ${/*$_*/
|
|
4976
5019
|
E[13]("limit")}`) && W(h, l), G[0] & /*inputAmount*/
|
|
4977
|
-
8 &&
|
|
4978
|
-
E[3] &&
|
|
4979
|
-
|
|
5020
|
+
8 && bi(f.value) !== /*inputAmount*/
|
|
5021
|
+
E[3] && ye(
|
|
5022
|
+
f,
|
|
4980
5023
|
/*inputAmount*/
|
|
4981
5024
|
E[3]
|
|
4982
5025
|
), G[0] & /*$_*/
|
|
4983
5026
|
8192 && R !== (R = /*$_*/
|
|
4984
|
-
E[13]("setLimit") + "") && W(
|
|
5027
|
+
E[13]("setLimit") + "") && W(S, R);
|
|
4985
5028
|
},
|
|
4986
5029
|
d(E) {
|
|
4987
|
-
E &&
|
|
5030
|
+
E && A(t), De(P, E), H && H.d(), D && D.d(), e[35](null), L = !1, ie(w);
|
|
4988
5031
|
}
|
|
4989
5032
|
};
|
|
4990
5033
|
}
|
|
4991
|
-
function
|
|
5034
|
+
function Qo(e) {
|
|
4992
5035
|
let t;
|
|
4993
5036
|
return {
|
|
4994
5037
|
c() {
|
|
4995
5038
|
t = v("p"), t.textContent = "500 Server error";
|
|
4996
5039
|
},
|
|
4997
5040
|
m(i, r) {
|
|
4998
|
-
|
|
5041
|
+
B(i, t, r);
|
|
4999
5042
|
},
|
|
5000
|
-
p:
|
|
5043
|
+
p: j,
|
|
5001
5044
|
d(i) {
|
|
5002
|
-
i &&
|
|
5045
|
+
i && A(t);
|
|
5003
5046
|
}
|
|
5004
5047
|
};
|
|
5005
5048
|
}
|
|
5006
|
-
function
|
|
5007
|
-
return { c:
|
|
5049
|
+
function Ko(e) {
|
|
5050
|
+
return { c: j, m: j, p: j, d: j };
|
|
5008
5051
|
}
|
|
5009
|
-
function
|
|
5052
|
+
function es(e) {
|
|
5010
5053
|
let t;
|
|
5011
5054
|
return {
|
|
5012
5055
|
c() {
|
|
5013
5056
|
t = v("div"), g(t, "class", "LoadingIndicator");
|
|
5014
5057
|
},
|
|
5015
5058
|
m(i, r) {
|
|
5016
|
-
|
|
5059
|
+
B(i, t, r);
|
|
5017
5060
|
},
|
|
5018
|
-
p:
|
|
5061
|
+
p: j,
|
|
5019
5062
|
d(i) {
|
|
5020
|
-
i &&
|
|
5063
|
+
i && A(t);
|
|
5021
5064
|
}
|
|
5022
5065
|
};
|
|
5023
5066
|
}
|
|
5024
|
-
function
|
|
5067
|
+
function ts(e) {
|
|
5025
5068
|
let t, i, r, n = (
|
|
5026
5069
|
/*$_*/
|
|
5027
5070
|
e[13]("noLimitText") + ""
|
|
@@ -5031,7 +5074,7 @@ function qo(e) {
|
|
|
5031
5074
|
t = v("div"), i = v("div"), r = v("div"), o = $(n), g(r, "class", "LimitDetailsTextWrapper"), g(i, "class", "LimitDetailsWrapper"), g(t, "class", "LimitDetails");
|
|
5032
5075
|
},
|
|
5033
5076
|
m(s, a) {
|
|
5034
|
-
|
|
5077
|
+
B(s, t, a), d(t, i), d(i, r), d(r, o);
|
|
5035
5078
|
},
|
|
5036
5079
|
p(s, a) {
|
|
5037
5080
|
a[0] & /*$_*/
|
|
@@ -5039,27 +5082,27 @@ function qo(e) {
|
|
|
5039
5082
|
s[13]("noLimitText") + "") && W(o, n);
|
|
5040
5083
|
},
|
|
5041
5084
|
d(s) {
|
|
5042
|
-
s &&
|
|
5085
|
+
s && A(t);
|
|
5043
5086
|
}
|
|
5044
5087
|
};
|
|
5045
5088
|
}
|
|
5046
|
-
function
|
|
5089
|
+
function is(e) {
|
|
5047
5090
|
let t, i = te(
|
|
5048
5091
|
/*limit*/
|
|
5049
5092
|
e[53].currentLimits
|
|
5050
5093
|
), r = [];
|
|
5051
5094
|
for (let n = 0; n < i.length; n += 1)
|
|
5052
|
-
r[n] =
|
|
5095
|
+
r[n] = ai(ni(e, i, n));
|
|
5053
5096
|
return {
|
|
5054
5097
|
c() {
|
|
5055
5098
|
for (let n = 0; n < r.length; n += 1)
|
|
5056
5099
|
r[n].c();
|
|
5057
|
-
t =
|
|
5100
|
+
t = Er();
|
|
5058
5101
|
},
|
|
5059
5102
|
m(n, o) {
|
|
5060
5103
|
for (let s = 0; s < r.length; s += 1)
|
|
5061
5104
|
r[s] && r[s].m(n, o);
|
|
5062
|
-
|
|
5105
|
+
B(n, t, o);
|
|
5063
5106
|
},
|
|
5064
5107
|
p(n, o) {
|
|
5065
5108
|
if (o[0] & /*removeLimit, availableLimits, $_*/
|
|
@@ -5070,8 +5113,8 @@ function Jo(e) {
|
|
|
5070
5113
|
);
|
|
5071
5114
|
let s;
|
|
5072
5115
|
for (s = 0; s < i.length; s += 1) {
|
|
5073
|
-
const a =
|
|
5074
|
-
r[s] ? r[s].p(a, o) : (r[s] =
|
|
5116
|
+
const a = ni(n, i, s);
|
|
5117
|
+
r[s] ? r[s].p(a, o) : (r[s] = ai(a), r[s].c(), r[s].m(t.parentNode, t));
|
|
5075
5118
|
}
|
|
5076
5119
|
for (; s < r.length; s += 1)
|
|
5077
5120
|
r[s].d(1);
|
|
@@ -5079,11 +5122,11 @@ function Jo(e) {
|
|
|
5079
5122
|
}
|
|
5080
5123
|
},
|
|
5081
5124
|
d(n) {
|
|
5082
|
-
n &&
|
|
5125
|
+
n && A(t), De(r, n);
|
|
5083
5126
|
}
|
|
5084
5127
|
};
|
|
5085
5128
|
}
|
|
5086
|
-
function
|
|
5129
|
+
function rs(e) {
|
|
5087
5130
|
let t, i = `${/*$_*/
|
|
5088
5131
|
e[13]("removedLimitText")} ${/*currentLimit*/
|
|
5089
5132
|
e[58].expiryDate}`, r;
|
|
@@ -5092,7 +5135,7 @@ function Qo(e) {
|
|
|
5092
5135
|
t = v("div"), r = $(i), g(t, "class", "PendingLimit");
|
|
5093
5136
|
},
|
|
5094
5137
|
m(n, o) {
|
|
5095
|
-
|
|
5138
|
+
B(n, t, o), d(t, r);
|
|
5096
5139
|
},
|
|
5097
5140
|
p(n, o) {
|
|
5098
5141
|
o[0] & /*$_*/
|
|
@@ -5101,11 +5144,11 @@ function Qo(e) {
|
|
|
5101
5144
|
n[58].expiryDate}`) && W(r, i);
|
|
5102
5145
|
},
|
|
5103
5146
|
d(n) {
|
|
5104
|
-
n &&
|
|
5147
|
+
n && A(t);
|
|
5105
5148
|
}
|
|
5106
5149
|
};
|
|
5107
5150
|
}
|
|
5108
|
-
function
|
|
5151
|
+
function ns(e) {
|
|
5109
5152
|
let t, i = `${/*currentLimit*/
|
|
5110
5153
|
e[58].updateAmount}${/*currentLimit*/
|
|
5111
5154
|
e[58].currency} ${/*$_*/
|
|
@@ -5118,7 +5161,7 @@ function Ko(e) {
|
|
|
5118
5161
|
t = v("div"), r = $(i), g(t, "class", "PendingLimit");
|
|
5119
5162
|
},
|
|
5120
5163
|
m(n, o) {
|
|
5121
|
-
|
|
5164
|
+
B(n, t, o), d(t, r);
|
|
5122
5165
|
},
|
|
5123
5166
|
p(n, o) {
|
|
5124
5167
|
o[0] & /*$_*/
|
|
@@ -5131,11 +5174,11 @@ function Ko(e) {
|
|
|
5131
5174
|
n[58].expiryDate}`) && W(r, i);
|
|
5132
5175
|
},
|
|
5133
5176
|
d(n) {
|
|
5134
|
-
n &&
|
|
5177
|
+
n && A(t);
|
|
5135
5178
|
}
|
|
5136
5179
|
};
|
|
5137
5180
|
}
|
|
5138
|
-
function
|
|
5181
|
+
function os(e) {
|
|
5139
5182
|
let t, i = (
|
|
5140
5183
|
/*$_*/
|
|
5141
5184
|
e[13]("gamingLimits.removeLimit") + ""
|
|
@@ -5154,7 +5197,7 @@ function es(e) {
|
|
|
5154
5197
|
t = v("button"), r = $(i), g(t, "class", "RemoveLimitButton");
|
|
5155
5198
|
},
|
|
5156
5199
|
m(a, c) {
|
|
5157
|
-
|
|
5200
|
+
B(a, t, c), d(t, r), n || (o = q(t, "click", s), n = !0);
|
|
5158
5201
|
},
|
|
5159
5202
|
p(a, c) {
|
|
5160
5203
|
e = a, c[0] & /*$_*/
|
|
@@ -5162,53 +5205,53 @@ function es(e) {
|
|
|
5162
5205
|
e[13]("gamingLimits.removeLimit") + "") && W(r, i);
|
|
5163
5206
|
},
|
|
5164
5207
|
d(a) {
|
|
5165
|
-
a &&
|
|
5208
|
+
a && A(t), n = !1, o();
|
|
5166
5209
|
}
|
|
5167
5210
|
};
|
|
5168
5211
|
}
|
|
5169
|
-
function
|
|
5212
|
+
function ai(e) {
|
|
5170
5213
|
let t, i, r, n = `${/*currentLimit*/
|
|
5171
5214
|
e[58].amount}${/*currentLimit*/
|
|
5172
5215
|
e[58].currency} ${/*$_*/
|
|
5173
5216
|
e[13](`gamingLimits.${/*currentLimit*/
|
|
5174
5217
|
e[58].period}`)}`, o, s, a, c;
|
|
5175
|
-
function u(
|
|
5218
|
+
function u(f, p) {
|
|
5176
5219
|
if (
|
|
5177
5220
|
/*currentLimit*/
|
|
5178
|
-
|
|
5179
|
-
|
|
5221
|
+
f[58].isModified && /*currentLimit*/
|
|
5222
|
+
f[58].updateAmount != "-1"
|
|
5180
5223
|
)
|
|
5181
|
-
return
|
|
5224
|
+
return ns;
|
|
5182
5225
|
if (
|
|
5183
5226
|
/*currentLimit*/
|
|
5184
|
-
|
|
5227
|
+
f[58].isModified
|
|
5185
5228
|
)
|
|
5186
|
-
return
|
|
5229
|
+
return rs;
|
|
5187
5230
|
}
|
|
5188
|
-
let l = u(e), h = l && l(e),
|
|
5189
|
-
e[58].isModified &&
|
|
5231
|
+
let l = u(e), h = l && l(e), m = !/*currentLimit*/
|
|
5232
|
+
e[58].isModified && os(e);
|
|
5190
5233
|
return {
|
|
5191
5234
|
c() {
|
|
5192
|
-
t = v("div"), i = v("div"), r = v("div"), o = $(n), s =
|
|
5235
|
+
t = v("div"), i = v("div"), r = v("div"), o = $(n), s = U(), h && h.c(), a = U(), m && m.c(), c = U(), g(r, "class", "CurrentLimit"), g(i, "class", "LimitDetailsTextWrapper"), g(t, "class", "LimitDetails");
|
|
5193
5236
|
},
|
|
5194
|
-
m(
|
|
5195
|
-
|
|
5237
|
+
m(f, p) {
|
|
5238
|
+
B(f, t, p), d(t, i), d(i, r), d(r, o), d(i, s), h && h.m(i, null), d(t, a), m && m.m(t, null), d(t, c);
|
|
5196
5239
|
},
|
|
5197
|
-
p(
|
|
5240
|
+
p(f, p) {
|
|
5198
5241
|
p[0] & /*$_*/
|
|
5199
5242
|
8192 && n !== (n = `${/*currentLimit*/
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5243
|
+
f[58].amount}${/*currentLimit*/
|
|
5244
|
+
f[58].currency} ${/*$_*/
|
|
5245
|
+
f[13](`gamingLimits.${/*currentLimit*/
|
|
5246
|
+
f[58].period}`)}`) && W(o, n), h && h.p(f, p), /*currentLimit*/
|
|
5247
|
+
f[58].isModified || m.p(f, p);
|
|
5205
5248
|
},
|
|
5206
|
-
d(
|
|
5207
|
-
|
|
5249
|
+
d(f) {
|
|
5250
|
+
f && A(t), h && h.d(), m && m.d();
|
|
5208
5251
|
}
|
|
5209
5252
|
};
|
|
5210
5253
|
}
|
|
5211
|
-
function
|
|
5254
|
+
function ui(e) {
|
|
5212
5255
|
let t, i, r = (
|
|
5213
5256
|
/*$_*/
|
|
5214
5257
|
e[13](`gamingLimits.${/*limit*/
|
|
@@ -5217,17 +5260,17 @@ function ri(e) {
|
|
|
5217
5260
|
function a(l, h) {
|
|
5218
5261
|
return (
|
|
5219
5262
|
/*limit*/
|
|
5220
|
-
l[53].currentLimits.length > 0 ?
|
|
5263
|
+
l[53].currentLimits.length > 0 ? is : ts
|
|
5221
5264
|
);
|
|
5222
5265
|
}
|
|
5223
5266
|
let u = a(e)(e);
|
|
5224
5267
|
return {
|
|
5225
5268
|
c() {
|
|
5226
|
-
t = v("div"), i = v("p"), n = $(r), o =
|
|
5269
|
+
t = v("div"), i = v("p"), n = $(r), o = U(), u.c(), s = U(), g(i, "class", "LimitTitle"), g(t, "class", "LimitWrapper " + /*isDesktop*/
|
|
5227
5270
|
(e[14] ? "Desktop" : ""));
|
|
5228
5271
|
},
|
|
5229
5272
|
m(l, h) {
|
|
5230
|
-
|
|
5273
|
+
B(l, t, h), d(t, i), d(i, n), d(t, o), u.m(t, null), d(t, s);
|
|
5231
5274
|
},
|
|
5232
5275
|
p(l, h) {
|
|
5233
5276
|
h[0] & /*$_*/
|
|
@@ -5236,11 +5279,11 @@ function ri(e) {
|
|
|
5236
5279
|
l[53].value}`) + "") && W(n, r), u.p(l, h);
|
|
5237
5280
|
},
|
|
5238
5281
|
d(l) {
|
|
5239
|
-
l &&
|
|
5282
|
+
l && A(t), u.d();
|
|
5240
5283
|
}
|
|
5241
5284
|
};
|
|
5242
5285
|
}
|
|
5243
|
-
function
|
|
5286
|
+
function li(e) {
|
|
5244
5287
|
let t, i, r = (
|
|
5245
5288
|
/*$_*/
|
|
5246
5289
|
e[13]("limitType") + ""
|
|
@@ -5249,35 +5292,35 @@ function ni(e) {
|
|
|
5249
5292
|
e[15]
|
|
5250
5293
|
), l = [];
|
|
5251
5294
|
for (let h = 0; h < u.length; h += 1)
|
|
5252
|
-
l[h] =
|
|
5295
|
+
l[h] = ci(ii(e, u, h));
|
|
5253
5296
|
return {
|
|
5254
5297
|
c() {
|
|
5255
|
-
t = v("label"), i = v("span"), n = $(r), o =
|
|
5298
|
+
t = v("label"), i = v("span"), n = $(r), o = U(), s = v("select");
|
|
5256
5299
|
for (let h = 0; h < l.length; h += 1)
|
|
5257
5300
|
l[h].c();
|
|
5258
5301
|
g(i, "class", "LimitSelectText"), g(s, "name", ""), g(s, "id", ""), /*selectedLimit*/
|
|
5259
|
-
e[1] === void 0 &&
|
|
5302
|
+
e[1] === void 0 && _e(() => (
|
|
5260
5303
|
/*select_change_handler*/
|
|
5261
5304
|
e[32].call(s)
|
|
5262
5305
|
)), g(t, "class", "LimitTypeDropdownWrapper");
|
|
5263
5306
|
},
|
|
5264
|
-
m(h,
|
|
5265
|
-
|
|
5266
|
-
for (let
|
|
5267
|
-
l[
|
|
5268
|
-
|
|
5307
|
+
m(h, m) {
|
|
5308
|
+
B(h, t, m), d(t, i), d(i, n), d(t, o), d(t, s);
|
|
5309
|
+
for (let f = 0; f < l.length; f += 1)
|
|
5310
|
+
l[f] && l[f].m(s, null);
|
|
5311
|
+
Ie(
|
|
5269
5312
|
s,
|
|
5270
5313
|
/*selectedLimit*/
|
|
5271
5314
|
e[1],
|
|
5272
5315
|
!0
|
|
5273
5316
|
), a || (c = [
|
|
5274
|
-
|
|
5317
|
+
q(
|
|
5275
5318
|
s,
|
|
5276
5319
|
"change",
|
|
5277
5320
|
/*select_change_handler*/
|
|
5278
5321
|
e[32]
|
|
5279
5322
|
),
|
|
5280
|
-
|
|
5323
|
+
q(
|
|
5281
5324
|
s,
|
|
5282
5325
|
"change",
|
|
5283
5326
|
/*updateLimitSelection*/
|
|
@@ -5285,37 +5328,37 @@ function ni(e) {
|
|
|
5285
5328
|
)
|
|
5286
5329
|
], a = !0);
|
|
5287
5330
|
},
|
|
5288
|
-
p(h,
|
|
5289
|
-
if (
|
|
5331
|
+
p(h, m) {
|
|
5332
|
+
if (m[0] & /*$_*/
|
|
5290
5333
|
8192 && r !== (r = /*$_*/
|
|
5291
|
-
h[13]("limitType") + "") && W(n, r),
|
|
5334
|
+
h[13]("limitType") + "") && W(n, r), m[0] & /*availableLimits*/
|
|
5292
5335
|
32768) {
|
|
5293
5336
|
u = te(
|
|
5294
5337
|
/*availableLimits*/
|
|
5295
5338
|
h[15]
|
|
5296
5339
|
);
|
|
5297
|
-
let
|
|
5298
|
-
for (
|
|
5299
|
-
const p =
|
|
5300
|
-
l[
|
|
5340
|
+
let f;
|
|
5341
|
+
for (f = 0; f < u.length; f += 1) {
|
|
5342
|
+
const p = ii(h, u, f);
|
|
5343
|
+
l[f] ? l[f].p(p, m) : (l[f] = ci(p), l[f].c(), l[f].m(s, null));
|
|
5301
5344
|
}
|
|
5302
|
-
for (;
|
|
5303
|
-
l[
|
|
5345
|
+
for (; f < l.length; f += 1)
|
|
5346
|
+
l[f].d(1);
|
|
5304
5347
|
l.length = u.length;
|
|
5305
5348
|
}
|
|
5306
|
-
|
|
5307
|
-
32770 &&
|
|
5349
|
+
m[0] & /*selectedLimit, availableLimits*/
|
|
5350
|
+
32770 && Ie(
|
|
5308
5351
|
s,
|
|
5309
5352
|
/*selectedLimit*/
|
|
5310
5353
|
h[1]
|
|
5311
5354
|
);
|
|
5312
5355
|
},
|
|
5313
5356
|
d(h) {
|
|
5314
|
-
h &&
|
|
5357
|
+
h && A(t), De(l, h), a = !1, ie(c);
|
|
5315
5358
|
}
|
|
5316
5359
|
};
|
|
5317
5360
|
}
|
|
5318
|
-
function
|
|
5361
|
+
function ci(e) {
|
|
5319
5362
|
let t, i = (
|
|
5320
5363
|
/*limit*/
|
|
5321
5364
|
e[53].title + ""
|
|
@@ -5323,18 +5366,18 @@ function oi(e) {
|
|
|
5323
5366
|
return {
|
|
5324
5367
|
c() {
|
|
5325
5368
|
t = v("option"), r = $(i), t.__value = /*limit*/
|
|
5326
|
-
e[53].value,
|
|
5369
|
+
e[53].value, ye(t, t.__value);
|
|
5327
5370
|
},
|
|
5328
5371
|
m(n, o) {
|
|
5329
|
-
|
|
5372
|
+
B(n, t, o), d(t, r);
|
|
5330
5373
|
},
|
|
5331
|
-
p:
|
|
5374
|
+
p: j,
|
|
5332
5375
|
d(n) {
|
|
5333
|
-
n &&
|
|
5376
|
+
n && A(t);
|
|
5334
5377
|
}
|
|
5335
5378
|
};
|
|
5336
5379
|
}
|
|
5337
|
-
function
|
|
5380
|
+
function hi(e) {
|
|
5338
5381
|
let t, i, r = (
|
|
5339
5382
|
/*$_*/
|
|
5340
5383
|
e[13]("period") + ""
|
|
@@ -5343,65 +5386,65 @@ function si(e) {
|
|
|
5343
5386
|
e[1]
|
|
5344
5387
|
].periods), l = [];
|
|
5345
5388
|
for (let h = 0; h < u.length; h += 1)
|
|
5346
|
-
l[h] =
|
|
5389
|
+
l[h] = fi(ti(e, u, h));
|
|
5347
5390
|
return {
|
|
5348
5391
|
c() {
|
|
5349
|
-
t = v("label"), i = v("span"), n = $(r), o =
|
|
5392
|
+
t = v("label"), i = v("span"), n = $(r), o = U(), s = v("select");
|
|
5350
5393
|
for (let h = 0; h < l.length; h += 1)
|
|
5351
5394
|
l[h].c();
|
|
5352
5395
|
g(i, "class", "PeriodSelectText"), g(t, "class", "LimitPeriodDropdownWrapper"), g(s, "name", ""), g(s, "id", ""), /*selectedPeriod*/
|
|
5353
|
-
e[2] === void 0 &&
|
|
5396
|
+
e[2] === void 0 && _e(() => (
|
|
5354
5397
|
/*select_change_handler_1*/
|
|
5355
5398
|
e[33].call(s)
|
|
5356
5399
|
));
|
|
5357
5400
|
},
|
|
5358
|
-
m(h,
|
|
5359
|
-
|
|
5360
|
-
for (let
|
|
5361
|
-
l[
|
|
5362
|
-
|
|
5401
|
+
m(h, m) {
|
|
5402
|
+
B(h, t, m), d(t, i), d(i, n), B(h, o, m), B(h, s, m);
|
|
5403
|
+
for (let f = 0; f < l.length; f += 1)
|
|
5404
|
+
l[f] && l[f].m(s, null);
|
|
5405
|
+
Ie(
|
|
5363
5406
|
s,
|
|
5364
5407
|
/*selectedPeriod*/
|
|
5365
5408
|
e[2],
|
|
5366
5409
|
!0
|
|
5367
|
-
), a || (c =
|
|
5410
|
+
), a || (c = q(
|
|
5368
5411
|
s,
|
|
5369
5412
|
"change",
|
|
5370
5413
|
/*select_change_handler_1*/
|
|
5371
5414
|
e[33]
|
|
5372
5415
|
), a = !0);
|
|
5373
5416
|
},
|
|
5374
|
-
p(h,
|
|
5375
|
-
if (
|
|
5417
|
+
p(h, m) {
|
|
5418
|
+
if (m[0] & /*$_*/
|
|
5376
5419
|
8192 && r !== (r = /*$_*/
|
|
5377
|
-
h[13]("period") + "") && W(n, r),
|
|
5420
|
+
h[13]("period") + "") && W(n, r), m[0] & /*selectedLimit, $_*/
|
|
5378
5421
|
8194) {
|
|
5379
5422
|
u = te(Z[
|
|
5380
5423
|
/*selectedLimit*/
|
|
5381
5424
|
h[1]
|
|
5382
5425
|
].periods);
|
|
5383
|
-
let
|
|
5384
|
-
for (
|
|
5385
|
-
const p =
|
|
5386
|
-
l[
|
|
5426
|
+
let f;
|
|
5427
|
+
for (f = 0; f < u.length; f += 1) {
|
|
5428
|
+
const p = ti(h, u, f);
|
|
5429
|
+
l[f] ? l[f].p(p, m) : (l[f] = fi(p), l[f].c(), l[f].m(s, null));
|
|
5387
5430
|
}
|
|
5388
|
-
for (;
|
|
5389
|
-
l[
|
|
5431
|
+
for (; f < l.length; f += 1)
|
|
5432
|
+
l[f].d(1);
|
|
5390
5433
|
l.length = u.length;
|
|
5391
5434
|
}
|
|
5392
|
-
|
|
5393
|
-
6 &&
|
|
5435
|
+
m[0] & /*selectedPeriod, selectedLimit*/
|
|
5436
|
+
6 && Ie(
|
|
5394
5437
|
s,
|
|
5395
5438
|
/*selectedPeriod*/
|
|
5396
5439
|
h[2]
|
|
5397
5440
|
);
|
|
5398
5441
|
},
|
|
5399
5442
|
d(h) {
|
|
5400
|
-
h && (
|
|
5443
|
+
h && (A(t), A(o), A(s)), De(l, h), a = !1, c();
|
|
5401
5444
|
}
|
|
5402
5445
|
};
|
|
5403
5446
|
}
|
|
5404
|
-
function
|
|
5447
|
+
function fi(e) {
|
|
5405
5448
|
let t, i = (
|
|
5406
5449
|
/*$_*/
|
|
5407
5450
|
e[13](`gamingLimits.${/*period*/
|
|
@@ -5410,10 +5453,10 @@ function ai(e) {
|
|
|
5410
5453
|
return {
|
|
5411
5454
|
c() {
|
|
5412
5455
|
t = v("option"), r = $(i), t.__value = n = /*period*/
|
|
5413
|
-
e[50],
|
|
5456
|
+
e[50], ye(t, t.__value), t.selected = !0;
|
|
5414
5457
|
},
|
|
5415
5458
|
m(o, s) {
|
|
5416
|
-
|
|
5459
|
+
B(o, t, s), d(t, r);
|
|
5417
5460
|
},
|
|
5418
5461
|
p(o, s) {
|
|
5419
5462
|
s[0] & /*$_, selectedLimit*/
|
|
@@ -5421,27 +5464,27 @@ function ai(e) {
|
|
|
5421
5464
|
o[13](`gamingLimits.${/*period*/
|
|
5422
5465
|
o[50]}`) + "") && W(r, i), s[0] & /*selectedLimit, availableLimits*/
|
|
5423
5466
|
32770 && n !== (n = /*period*/
|
|
5424
|
-
o[50]) && (t.__value = n,
|
|
5467
|
+
o[50]) && (t.__value = n, ye(t, t.__value));
|
|
5425
5468
|
},
|
|
5426
5469
|
d(o) {
|
|
5427
|
-
o &&
|
|
5470
|
+
o && A(t);
|
|
5428
5471
|
}
|
|
5429
5472
|
};
|
|
5430
5473
|
}
|
|
5431
|
-
function
|
|
5474
|
+
function ss(e) {
|
|
5432
5475
|
let t, i, r = (
|
|
5433
5476
|
/*popupVisible*/
|
|
5434
|
-
e[10] &&
|
|
5477
|
+
e[10] && oi(e)
|
|
5435
5478
|
);
|
|
5436
5479
|
function n(a, c) {
|
|
5437
5480
|
return (
|
|
5438
5481
|
/*isLoading*/
|
|
5439
5482
|
a[7] && !/*popupVisible*/
|
|
5440
|
-
a[10] ?
|
|
5483
|
+
a[10] ? es : (
|
|
5441
5484
|
/*isLoading*/
|
|
5442
|
-
a[7] ?
|
|
5485
|
+
a[7] ? Ko : (
|
|
5443
5486
|
/*fetchError*/
|
|
5444
|
-
a[8] ?
|
|
5487
|
+
a[8] ? Qo : Jo
|
|
5445
5488
|
)
|
|
5446
5489
|
)
|
|
5447
5490
|
);
|
|
@@ -5449,48 +5492,48 @@ function ts(e) {
|
|
|
5449
5492
|
let o = n(e), s = o(e);
|
|
5450
5493
|
return {
|
|
5451
5494
|
c() {
|
|
5452
|
-
t = v("div"), r && r.c(), i =
|
|
5495
|
+
t = v("div"), r && r.c(), i = U(), s.c();
|
|
5453
5496
|
},
|
|
5454
5497
|
m(a, c) {
|
|
5455
|
-
|
|
5498
|
+
B(a, t, c), r && r.m(t, null), d(t, i), s.m(t, null), e[36](t);
|
|
5456
5499
|
},
|
|
5457
5500
|
p(a, c) {
|
|
5458
5501
|
/*popupVisible*/
|
|
5459
|
-
a[10] ? r ? r.p(a, c) : (r =
|
|
5502
|
+
a[10] ? r ? r.p(a, c) : (r = oi(a), r.c(), r.m(t, i)) : r && (r.d(1), r = null), o === (o = n(a)) && s ? s.p(a, c) : (s.d(1), s = o(a), s && (s.c(), s.m(t, null)));
|
|
5460
5503
|
},
|
|
5461
|
-
i:
|
|
5462
|
-
o:
|
|
5504
|
+
i: j,
|
|
5505
|
+
o: j,
|
|
5463
5506
|
d(a) {
|
|
5464
|
-
a &&
|
|
5507
|
+
a && A(t), r && r.d(), s.d(), e[36](null);
|
|
5465
5508
|
}
|
|
5466
5509
|
};
|
|
5467
5510
|
}
|
|
5468
|
-
function
|
|
5511
|
+
function as(e, t, i) {
|
|
5469
5512
|
let r;
|
|
5470
|
-
|
|
5471
|
-
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: c = "" } = t, { endpoint: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { translationurl:
|
|
5472
|
-
const
|
|
5513
|
+
gr(e, Ao, (b) => i(13, r = b));
|
|
5514
|
+
let { lang: n = "en" } = t, { currency: o = "" } = t, { limits: s = "" } = t, { session: a = "" } = t, { userid: c = "" } = t, { endpoint: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: m = "" } = t, { mbsource: f } = t, p, _ = window.navigator.userAgent, R = !zo(_), S = [], L = "", w = "", O, P, H = !1, D = !1, E = !0, G = !1, M = !1, K = !1, ze = !1, We = "", we;
|
|
5515
|
+
const Lt = { EUR: "€", RON: " lei" }, Zi = {
|
|
5473
5516
|
updatePendingError: ["SYS_1037", "SYS_1142", "SYS_1140"]
|
|
5474
|
-
},
|
|
5475
|
-
fetch(
|
|
5476
|
-
Object.keys(y).forEach((
|
|
5477
|
-
|
|
5517
|
+
}, Yi = () => {
|
|
5518
|
+
fetch(m).then((y) => y.json()).then((y) => {
|
|
5519
|
+
Object.keys(y).forEach((N) => {
|
|
5520
|
+
Vt(N, y[N]);
|
|
5478
5521
|
});
|
|
5479
5522
|
}).catch((y) => {
|
|
5480
5523
|
console.log(y);
|
|
5481
5524
|
});
|
|
5482
5525
|
};
|
|
5483
|
-
Object.keys(
|
|
5484
|
-
|
|
5526
|
+
Object.keys(Xt).forEach((b) => {
|
|
5527
|
+
Vt(b, Xt[b]);
|
|
5485
5528
|
});
|
|
5486
|
-
const
|
|
5529
|
+
const qi = () => {
|
|
5487
5530
|
s.split(" ").forEach((y) => {
|
|
5488
|
-
Z[y] ?
|
|
5489
|
-
}), i(1, L =
|
|
5490
|
-
},
|
|
5531
|
+
Z[y] ? S.push(Z[y]) : console.error(`Unknown limit: ${y}`);
|
|
5532
|
+
}), i(1, L = S[0].value), i(2, w = Z[L].periods[0]), i(5, H = S.length > 1), i(6, D = Z[L].periods.length > 1);
|
|
5533
|
+
}, Ji = () => {
|
|
5491
5534
|
i(2, w = Z[L].periods[0]), i(6, D = Z[L].periods.length > 1);
|
|
5492
|
-
},
|
|
5493
|
-
if (!(
|
|
5535
|
+
}, Qi = () => {
|
|
5536
|
+
if (!(O > 0))
|
|
5494
5537
|
return;
|
|
5495
5538
|
i(10, K = !0), i(7, E = !0);
|
|
5496
5539
|
let b = new URL(`/v2/player/${c}/limits`, u);
|
|
@@ -5498,11 +5541,11 @@ function is(e, t, i) {
|
|
|
5498
5541
|
y[Z[L].callValue] = [
|
|
5499
5542
|
{
|
|
5500
5543
|
period: w,
|
|
5501
|
-
amount:
|
|
5544
|
+
amount: O,
|
|
5502
5545
|
currency: o
|
|
5503
5546
|
}
|
|
5504
5547
|
];
|
|
5505
|
-
let
|
|
5548
|
+
let N = {
|
|
5506
5549
|
method: "PUT",
|
|
5507
5550
|
headers: {
|
|
5508
5551
|
"X-SessionID": a,
|
|
@@ -5511,20 +5554,20 @@ function is(e, t, i) {
|
|
|
5511
5554
|
},
|
|
5512
5555
|
body: JSON.stringify(y)
|
|
5513
5556
|
};
|
|
5514
|
-
fetch(b.href,
|
|
5515
|
-
|
|
5516
|
-
}).catch((
|
|
5517
|
-
console.log(
|
|
5557
|
+
fetch(b.href, N).then((k) => (k.status >= 300 && i(9, M = !0), k.json())).then((k) => {
|
|
5558
|
+
Ve(), M && Ki(k);
|
|
5559
|
+
}).catch((k) => {
|
|
5560
|
+
console.log(k), i(7, E = !1), i(8, G = !0);
|
|
5518
5561
|
});
|
|
5519
|
-
},
|
|
5562
|
+
}, Ki = (b) => {
|
|
5520
5563
|
const y = b.error.match(/errorCode:(.*)\)/)[1];
|
|
5521
5564
|
console.error(`API response error: ${y}`);
|
|
5522
|
-
let
|
|
5523
|
-
for (const [
|
|
5524
|
-
F.includes(y) && (
|
|
5525
|
-
|
|
5526
|
-
},
|
|
5527
|
-
let b = new URL(`/v2/player/${c}/limits`, u), y = !
|
|
5565
|
+
let N;
|
|
5566
|
+
for (const [k, F] of Object.entries(Zi))
|
|
5567
|
+
F.includes(y) && (N = r(`gamingLimits.${k}`));
|
|
5568
|
+
N = N != null ? N : r("gamingLimits.genericError"), xt(y, N);
|
|
5569
|
+
}, Ve = () => {
|
|
5570
|
+
let b = new URL(`/v2/player/${c}/limits`, u), y = !M, N = {
|
|
5528
5571
|
method: "GET",
|
|
5529
5572
|
headers: {
|
|
5530
5573
|
"X-SessionID": a,
|
|
@@ -5532,49 +5575,49 @@ function is(e, t, i) {
|
|
|
5532
5575
|
Accept: "application/json"
|
|
5533
5576
|
}
|
|
5534
5577
|
};
|
|
5535
|
-
fetch(b.href,
|
|
5536
|
-
if (
|
|
5578
|
+
fetch(b.href, N).then((k) => {
|
|
5579
|
+
if (k.status >= 300)
|
|
5537
5580
|
throw i(7, E = !1), i(8, G = !0), new Error("There was an error fetching the limits");
|
|
5538
|
-
return
|
|
5539
|
-
}).then((
|
|
5540
|
-
we =
|
|
5541
|
-
}).catch((
|
|
5542
|
-
console.log(
|
|
5581
|
+
return k.json();
|
|
5582
|
+
}).then((k) => {
|
|
5583
|
+
we = k, K && y && xt(), er(we), i(7, E = !1), i(3, O = null);
|
|
5584
|
+
}).catch((k) => {
|
|
5585
|
+
console.log(k), i(7, E = !1), i(8, G = !0);
|
|
5543
5586
|
});
|
|
5544
|
-
},
|
|
5545
|
-
|
|
5546
|
-
var
|
|
5547
|
-
y.currentLimits = [], (
|
|
5548
|
-
var
|
|
5549
|
-
const
|
|
5550
|
-
y.currentLimits.push({}), y.currentLimits[F].limitType = y.value, y.currentLimits[F].amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(
|
|
5551
|
-
}), y.currentLimits =
|
|
5587
|
+
}, er = (b) => {
|
|
5588
|
+
S.forEach((y) => {
|
|
5589
|
+
var N;
|
|
5590
|
+
y.currentLimits = [], (N = b[Z[y.value].callValue]) == null || N.forEach((k, F) => {
|
|
5591
|
+
var wt;
|
|
5592
|
+
const J = b[Z[y.value].callValue][F];
|
|
5593
|
+
y.currentLimits.push({}), y.currentLimits[F].limitType = y.value, y.currentLimits[F].amount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(J.amount), y.currentLimits[F].currency = (wt = Lt[J.currency]) != null ? wt : J.currency, y.currentLimits[F].period = J.period, y.currentLimits[F].updateAmount = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(J.updateAmount), y.currentLimits[F].isModified = J.isModified, y.currentLimits[F].expiryDate = `${new Date(J.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)`;
|
|
5594
|
+
}), y.currentLimits = tr(y.currentLimits);
|
|
5552
5595
|
});
|
|
5553
|
-
},
|
|
5596
|
+
}, tr = (b) => {
|
|
5554
5597
|
const y = { Daily: 0, Weekly: 1, Monthly: 2 };
|
|
5555
|
-
return b.sort((
|
|
5556
|
-
},
|
|
5557
|
-
|
|
5558
|
-
const y =
|
|
5559
|
-
|
|
5560
|
-
},
|
|
5598
|
+
return b.sort((N, k) => y[N.period] - y[k.period]), b;
|
|
5599
|
+
}, ir = () => {
|
|
5600
|
+
O > 999999999999999 && i(3, O = 999999999999999);
|
|
5601
|
+
const y = O - Math.floor(O) === 0;
|
|
5602
|
+
O > 0 && y ? P.removeAttribute("disabled") : P.setAttribute("disabled", "true");
|
|
5603
|
+
}, xt = (b, y) => {
|
|
5561
5604
|
if (b)
|
|
5562
|
-
i(12,
|
|
5605
|
+
i(12, We = y);
|
|
5563
5606
|
else if (we) {
|
|
5564
|
-
const
|
|
5565
|
-
let F = r("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}", r(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}",
|
|
5566
|
-
i(12,
|
|
5607
|
+
const N = we[Z[L].callValue].filter((J) => J.period === w)[0], k = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(N.amount);
|
|
5608
|
+
let F = r("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}", r(`gamingLimits.${L}`).toLowerCase()).replace("{updatedAmount}", k).replace("{currency}", Lt[N.currency] || N.currency).replace("{selectedPeriod}", r(`gamingLimits.${w}`).toLowerCase());
|
|
5609
|
+
i(12, We = N.isModified ? `${r("popupPendingUpdate")} ${new Date(N.expiryDate).toLocaleDateString("en-de", { hour: "numeric", minute: "numeric" }).replaceAll("/", ".")} (GMT)` : F);
|
|
5567
5610
|
} else
|
|
5568
5611
|
console.error("Couldn't populate popupContent");
|
|
5569
|
-
i(11,
|
|
5570
|
-
},
|
|
5612
|
+
i(11, ze = !0);
|
|
5613
|
+
}, Tt = (b) => {
|
|
5571
5614
|
const y = {
|
|
5572
5615
|
wager: "wagering",
|
|
5573
5616
|
loss: "loss",
|
|
5574
5617
|
deposit: "deposit"
|
|
5575
5618
|
};
|
|
5576
5619
|
i(10, K = !0), i(7, E = !0);
|
|
5577
|
-
let
|
|
5620
|
+
let N = new URL(`/v2/player/${c}/limits/${y[b.limitType]}?periods=${b.period}`, u), k = {
|
|
5578
5621
|
method: "DELETE",
|
|
5579
5622
|
headers: {
|
|
5580
5623
|
"X-SessionID": a,
|
|
@@ -5582,71 +5625,71 @@ function is(e, t, i) {
|
|
|
5582
5625
|
Accept: "application/json"
|
|
5583
5626
|
}
|
|
5584
5627
|
};
|
|
5585
|
-
fetch(
|
|
5586
|
-
|
|
5628
|
+
fetch(N.href, k).then((F) => F.json()).then((F) => {
|
|
5629
|
+
Ve();
|
|
5587
5630
|
}).catch((F) => {
|
|
5588
5631
|
console.log(F), i(7, E = !1), i(8, G = !0);
|
|
5589
5632
|
});
|
|
5590
|
-
},
|
|
5591
|
-
i(11,
|
|
5592
|
-
},
|
|
5593
|
-
|
|
5633
|
+
}, rr = () => {
|
|
5634
|
+
i(11, ze = i(10, K = !1));
|
|
5635
|
+
}, nr = () => {
|
|
5636
|
+
Bo(n);
|
|
5594
5637
|
};
|
|
5595
|
-
|
|
5638
|
+
wr(() => () => {
|
|
5596
5639
|
});
|
|
5597
|
-
const
|
|
5598
|
-
function
|
|
5599
|
-
L =
|
|
5640
|
+
const or = (b) => Tt(b);
|
|
5641
|
+
function sr() {
|
|
5642
|
+
L = Ot(this), i(1, L), i(15, S);
|
|
5600
5643
|
}
|
|
5601
|
-
function
|
|
5602
|
-
w =
|
|
5644
|
+
function ar() {
|
|
5645
|
+
w = Ot(this), i(2, w), i(1, L);
|
|
5603
5646
|
}
|
|
5604
|
-
function
|
|
5605
|
-
|
|
5647
|
+
function ur() {
|
|
5648
|
+
O = bi(this.value), i(3, O);
|
|
5606
5649
|
}
|
|
5607
|
-
function
|
|
5608
|
-
|
|
5609
|
-
|
|
5650
|
+
function lr(b) {
|
|
5651
|
+
He[b ? "unshift" : "push"](() => {
|
|
5652
|
+
P = b, i(4, P);
|
|
5610
5653
|
});
|
|
5611
5654
|
}
|
|
5612
|
-
function
|
|
5613
|
-
|
|
5655
|
+
function cr(b) {
|
|
5656
|
+
He[b ? "unshift" : "push"](() => {
|
|
5614
5657
|
p = b, i(0, p);
|
|
5615
5658
|
});
|
|
5616
5659
|
}
|
|
5617
5660
|
return e.$$set = (b) => {
|
|
5618
|
-
"lang" in b && i(21, n = b.lang), "currency" in b && i(22, o = b.currency), "limits" in b && i(23, s = b.limits), "session" in b && i(24, a = b.session), "userid" in b && i(25, c = b.userid), "endpoint" in b && i(26, u = b.endpoint), "clientstyling" in b && i(27, l = b.clientstyling), "clientstylingurl" in b && i(28, h = b.clientstylingurl), "translationurl" in b && i(29,
|
|
5661
|
+
"lang" in b && i(21, n = b.lang), "currency" in b && i(22, o = b.currency), "limits" in b && i(23, s = b.limits), "session" in b && i(24, a = b.session), "userid" in b && i(25, c = b.userid), "endpoint" in b && i(26, u = b.endpoint), "clientstyling" in b && i(27, l = b.clientstyling), "clientstylingurl" in b && i(28, h = b.clientstylingurl), "translationurl" in b && i(29, m = b.translationurl), "mbsource" in b && i(30, f = b.mbsource);
|
|
5619
5662
|
}, e.$$.update = () => {
|
|
5620
5663
|
e.$$.dirty[0] & /*limits*/
|
|
5621
|
-
8388608 && s &&
|
|
5622
|
-
2097152 && n &&
|
|
5623
|
-
117440512 && c && a && u &&
|
|
5624
|
-
134217729 && l && p &&
|
|
5625
|
-
268435457 && h && p &&
|
|
5626
|
-
1073741825 &&
|
|
5627
|
-
536870912 &&
|
|
5664
|
+
8388608 && s && qi(), e.$$.dirty[0] & /*lang*/
|
|
5665
|
+
2097152 && n && nr(), e.$$.dirty[0] & /*userid, session, endpoint*/
|
|
5666
|
+
117440512 && c && a && u && Ve(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5667
|
+
134217729 && l && p && Wo(p, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5668
|
+
268435457 && h && p && Vo(p, h), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5669
|
+
1073741825 && f && p && Xo(p, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5670
|
+
536870912 && m && Yi();
|
|
5628
5671
|
}, [
|
|
5629
5672
|
p,
|
|
5630
5673
|
L,
|
|
5631
5674
|
w,
|
|
5675
|
+
O,
|
|
5676
|
+
P,
|
|
5632
5677
|
H,
|
|
5633
|
-
A,
|
|
5634
|
-
M,
|
|
5635
5678
|
D,
|
|
5636
5679
|
E,
|
|
5637
5680
|
G,
|
|
5638
|
-
|
|
5681
|
+
M,
|
|
5639
5682
|
K,
|
|
5640
|
-
|
|
5641
|
-
|
|
5683
|
+
ze,
|
|
5684
|
+
We,
|
|
5642
5685
|
r,
|
|
5643
5686
|
R,
|
|
5644
|
-
|
|
5645
|
-
Vi,
|
|
5646
|
-
Xi,
|
|
5687
|
+
S,
|
|
5647
5688
|
Ji,
|
|
5648
|
-
vt,
|
|
5649
5689
|
Qi,
|
|
5690
|
+
ir,
|
|
5691
|
+
Tt,
|
|
5692
|
+
rr,
|
|
5650
5693
|
n,
|
|
5651
5694
|
o,
|
|
5652
5695
|
s,
|
|
@@ -5655,24 +5698,24 @@ function is(e, t, i) {
|
|
|
5655
5698
|
u,
|
|
5656
5699
|
l,
|
|
5657
5700
|
h,
|
|
5658
|
-
f,
|
|
5659
5701
|
m,
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5702
|
+
f,
|
|
5703
|
+
or,
|
|
5704
|
+
sr,
|
|
5705
|
+
ar,
|
|
5706
|
+
ur,
|
|
5707
|
+
lr,
|
|
5708
|
+
cr
|
|
5666
5709
|
];
|
|
5667
5710
|
}
|
|
5668
|
-
class
|
|
5711
|
+
class us extends Dr {
|
|
5669
5712
|
constructor(t) {
|
|
5670
|
-
super(),
|
|
5713
|
+
super(), kr(
|
|
5671
5714
|
this,
|
|
5672
5715
|
t,
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5716
|
+
as,
|
|
5717
|
+
ss,
|
|
5718
|
+
pi,
|
|
5676
5719
|
{
|
|
5677
5720
|
lang: 21,
|
|
5678
5721
|
currency: 22,
|
|
@@ -5685,7 +5728,7 @@ class rs extends Hr {
|
|
|
5685
5728
|
translationurl: 29,
|
|
5686
5729
|
mbsource: 30
|
|
5687
5730
|
},
|
|
5688
|
-
|
|
5731
|
+
Zo,
|
|
5689
5732
|
[-1, -1]
|
|
5690
5733
|
);
|
|
5691
5734
|
}
|
|
@@ -5750,7 +5793,7 @@ class rs extends Hr {
|
|
|
5750
5793
|
this.$$set({ mbsource: t }), X();
|
|
5751
5794
|
}
|
|
5752
5795
|
}
|
|
5753
|
-
|
|
5796
|
+
Cr(us, { lang: {}, currency: {}, limits: {}, session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
5754
5797
|
export {
|
|
5755
|
-
|
|
5798
|
+
us as default
|
|
5756
5799
|
};
|