@everymatrix/player-account-gaming-limits-popup-2 1.86.2 → 1.86.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountGamingLimitsPopup2-bF0YcIxH.js → PlayerAccountGamingLimitsPopup2-Dv2BBTn-.js} +731 -735
- package/components/{PlayerAccountGamingLimitsPopup2-CwinXA-j.js → PlayerAccountGamingLimitsPopup2-l4Z65x4q.js} +733 -737
- package/components/PlayerAccountGamingLimitsPopup2-mQizhkln.cjs +23 -0
- package/es2015/player-account-gaming-limits-popup-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup-2.js +1 -1
- package/esnext/player-account-gaming-limits-popup-2.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup2-D_kAGu6b.cjs +0 -10
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Pi = Object.defineProperty, wi = Object.defineProperties;
|
|
2
2
|
var Bi = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Lt = Object.getOwnPropertySymbols;
|
|
4
|
-
var Li = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
4
|
+
var Li = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var tt = (e, t, i) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, At = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
Li.call(t, i) &&
|
|
7
|
+
Li.call(t, i) && tt(e, i, t[i]);
|
|
8
8
|
if (Lt)
|
|
9
9
|
for (var i of Lt(t))
|
|
10
|
-
|
|
10
|
+
Ai.call(t, i) && tt(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var Q = (e, t, i) => (
|
|
12
|
+
}, St = (e, t) => wi(e, Bi(t));
|
|
13
|
+
var Q = (e, t, i) => (tt(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
14
14
|
var It = (e, t, i) => new Promise((n, r) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
@@ -35,16 +35,16 @@ function Zt(e) {
|
|
|
35
35
|
function kt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ue(e) {
|
|
39
39
|
e.forEach(Zt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Et(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Yt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Si(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function Jt(e, ...t) {
|
|
@@ -65,7 +65,7 @@ function f(e, t) {
|
|
|
65
65
|
function ki(e, t, i) {
|
|
66
66
|
const n = Hi(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const r =
|
|
68
|
+
const r = g("style");
|
|
69
69
|
r.id = t, r.textContent = i, Ci(n, r);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -92,7 +92,7 @@ function T(e, t, i) {
|
|
|
92
92
|
function x(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function g(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
98
|
function Y(e) {
|
|
@@ -101,7 +101,7 @@ function Y(e) {
|
|
|
101
101
|
function L(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function O() {
|
|
105
105
|
return L(" ");
|
|
106
106
|
}
|
|
107
107
|
function Z(e, t, i, n) {
|
|
@@ -116,17 +116,17 @@ function Qt(e) {
|
|
|
116
116
|
function Ni(e) {
|
|
117
117
|
return Array.from(e.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function H(e, t) {
|
|
120
120
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
121
|
t);
|
|
122
122
|
}
|
|
123
123
|
function Ht(e, t) {
|
|
124
124
|
e.value = t == null ? "" : t;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function He(e, t, i, n) {
|
|
127
127
|
i == null ? e.style.removeProperty(t) : e.style.setProperty(t, i, "");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ge(e, t, i) {
|
|
130
130
|
e.classList.toggle(t, !!i);
|
|
131
131
|
}
|
|
132
132
|
function Oi(e) {
|
|
@@ -138,65 +138,65 @@ function Oi(e) {
|
|
|
138
138
|
}
|
|
139
139
|
), t;
|
|
140
140
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
let Ne;
|
|
142
|
+
function Ce(e) {
|
|
143
|
+
Ne = e;
|
|
144
144
|
}
|
|
145
145
|
function Mi() {
|
|
146
|
-
if (!
|
|
146
|
+
if (!Ne)
|
|
147
147
|
throw new Error("Function called outside component initialization");
|
|
148
|
-
return
|
|
148
|
+
return Ne;
|
|
149
149
|
}
|
|
150
150
|
function Di(e) {
|
|
151
151
|
Mi().$$.on_mount.push(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
let
|
|
153
|
+
const ge = [], ye = [];
|
|
154
|
+
let ve = [];
|
|
155
155
|
const Ct = [], Ri = /* @__PURE__ */ Promise.resolve();
|
|
156
|
-
let
|
|
156
|
+
let ut = !1;
|
|
157
157
|
function Ui() {
|
|
158
|
-
|
|
158
|
+
ut || (ut = !0, Ri.then(te));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
160
|
+
function ct(e) {
|
|
161
|
+
ve.push(e);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
let
|
|
163
|
+
const it = /* @__PURE__ */ new Set();
|
|
164
|
+
let de = 0;
|
|
165
165
|
function te() {
|
|
166
|
-
if (
|
|
166
|
+
if (de !== 0)
|
|
167
167
|
return;
|
|
168
|
-
const e =
|
|
168
|
+
const e = Ne;
|
|
169
169
|
do {
|
|
170
170
|
try {
|
|
171
|
-
for (;
|
|
172
|
-
const t =
|
|
173
|
-
|
|
171
|
+
for (; de < ge.length; ) {
|
|
172
|
+
const t = ge[de];
|
|
173
|
+
de++, Ce(t), ji(t.$$);
|
|
174
174
|
}
|
|
175
175
|
} catch (t) {
|
|
176
|
-
throw
|
|
176
|
+
throw ge.length = 0, de = 0, t;
|
|
177
177
|
}
|
|
178
|
-
for (
|
|
179
|
-
|
|
180
|
-
for (let t = 0; t <
|
|
181
|
-
const i =
|
|
182
|
-
|
|
178
|
+
for (Ce(null), ge.length = 0, de = 0; ye.length; )
|
|
179
|
+
ye.pop()();
|
|
180
|
+
for (let t = 0; t < ve.length; t += 1) {
|
|
181
|
+
const i = ve[t];
|
|
182
|
+
it.has(i) || (it.add(i), i());
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
184
|
+
ve.length = 0;
|
|
185
|
+
} while (ge.length);
|
|
186
186
|
for (; Ct.length; )
|
|
187
187
|
Ct.pop()();
|
|
188
|
-
|
|
188
|
+
ut = !1, it.clear(), Ce(e);
|
|
189
189
|
}
|
|
190
190
|
function ji(e) {
|
|
191
191
|
if (e.fragment !== null) {
|
|
192
|
-
e.update(),
|
|
192
|
+
e.update(), ue(e.before_update);
|
|
193
193
|
const t = e.dirty;
|
|
194
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
194
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ct);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
function Gi(e) {
|
|
198
198
|
const t = [], i = [];
|
|
199
|
-
|
|
199
|
+
ve.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : i.push(n)), i.forEach((n) => n()), ve = t;
|
|
200
200
|
}
|
|
201
201
|
const $i = /* @__PURE__ */ new Set();
|
|
202
202
|
function zi(e, t) {
|
|
@@ -204,21 +204,21 @@ function zi(e, t) {
|
|
|
204
204
|
}
|
|
205
205
|
function Fi(e, t, i) {
|
|
206
206
|
const { fragment: n, after_update: r } = e.$$;
|
|
207
|
-
n && n.m(t, i),
|
|
208
|
-
const o = e.$$.on_mount.map(Zt).filter(
|
|
209
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
210
|
-
}), r.forEach(
|
|
207
|
+
n && n.m(t, i), ct(() => {
|
|
208
|
+
const o = e.$$.on_mount.map(Zt).filter(Et);
|
|
209
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
210
|
+
}), r.forEach(ct);
|
|
211
211
|
}
|
|
212
212
|
function Vi(e, t) {
|
|
213
213
|
const i = e.$$;
|
|
214
|
-
i.fragment !== null && (Gi(i.after_update),
|
|
214
|
+
i.fragment !== null && (Gi(i.after_update), ue(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
215
215
|
}
|
|
216
216
|
function Xi(e, t) {
|
|
217
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
e.$$.dirty[0] === -1 && (ge.push(e), Ui(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
218
218
|
}
|
|
219
219
|
function qi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
220
|
-
const u =
|
|
221
|
-
|
|
220
|
+
const u = Ne;
|
|
221
|
+
Ce(e);
|
|
222
222
|
const l = e.$$ = {
|
|
223
223
|
fragment: null,
|
|
224
224
|
ctx: [],
|
|
@@ -242,18 +242,18 @@ function qi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
|
242
242
|
};
|
|
243
243
|
a && a(l.root);
|
|
244
244
|
let c = !1;
|
|
245
|
-
if (l.ctx = i ? i(e, t.props || {}, (
|
|
246
|
-
const E = d.length ? d[0] :
|
|
247
|
-
return l.ctx && r(l.ctx[
|
|
248
|
-
}) : [], l.update(), c = !0,
|
|
245
|
+
if (l.ctx = i ? i(e, t.props || {}, (m, p, ...d) => {
|
|
246
|
+
const E = d.length ? d[0] : p;
|
|
247
|
+
return l.ctx && r(l.ctx[m], l.ctx[m] = E) && (!l.skip_bound && l.bound[m] && l.bound[m](E), c && Xi(e, m)), p;
|
|
248
|
+
}) : [], l.update(), c = !0, ue(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
249
249
|
if (t.hydrate) {
|
|
250
|
-
const
|
|
251
|
-
l.fragment && l.fragment.l(
|
|
250
|
+
const m = Ni(t.target);
|
|
251
|
+
l.fragment && l.fragment.l(m), m.forEach(x);
|
|
252
252
|
} else
|
|
253
253
|
l.fragment && l.fragment.c();
|
|
254
254
|
t.intro && zi(e.$$.fragment), Fi(e, t.target, t.anchor), te();
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
Ce(u);
|
|
257
257
|
}
|
|
258
258
|
let Kt;
|
|
259
259
|
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
300
300
|
let a;
|
|
301
301
|
return {
|
|
302
302
|
c: function() {
|
|
303
|
-
a =
|
|
303
|
+
a = g("slot"), o !== "default" && h(a, "name", o);
|
|
304
304
|
},
|
|
305
305
|
/**
|
|
306
306
|
* @param {HTMLElement} target
|
|
@@ -322,13 +322,13 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
322
322
|
o in n && (i[o] = [t(o)]);
|
|
323
323
|
for (const o of this.attributes) {
|
|
324
324
|
const a = this.$$g_p(o.name);
|
|
325
|
-
a in this.$$d || (this.$$d[a] =
|
|
325
|
+
a in this.$$d || (this.$$d[a] = ze(a, o.value, this.$$p_d, "toProp"));
|
|
326
326
|
}
|
|
327
327
|
for (const o in this.$$p_d)
|
|
328
328
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
329
329
|
this.$$c = new this.$$ctor({
|
|
330
330
|
target: this.shadowRoot || this,
|
|
331
|
-
props: At(
|
|
331
|
+
props: St(At({}, this.$$d), {
|
|
332
332
|
$$slots: i,
|
|
333
333
|
$$scope: {
|
|
334
334
|
ctx: []
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
339
339
|
this.$$r = !0;
|
|
340
340
|
for (const o in this.$$p_d)
|
|
341
341
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
342
|
-
const a =
|
|
342
|
+
const a = ze(
|
|
343
343
|
o,
|
|
344
344
|
this.$$d[o],
|
|
345
345
|
this.$$p_d,
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
363
363
|
// and setting attributes through setAttribute etc, this is helpful
|
|
364
364
|
attributeChangedCallback(t, i, n) {
|
|
365
365
|
var r;
|
|
366
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
366
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ze(t, n, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
|
|
367
367
|
}
|
|
368
368
|
disconnectedCallback() {
|
|
369
369
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
376
376
|
) || t;
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
|
-
function
|
|
379
|
+
function ze(e, t, i, n) {
|
|
380
380
|
var o;
|
|
381
381
|
const r = (o = i[e]) == null ? void 0 : o.type;
|
|
382
382
|
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !i[e])
|
|
@@ -424,7 +424,7 @@ function Wi(e, t, i, n, r, o) {
|
|
|
424
424
|
},
|
|
425
425
|
set(u) {
|
|
426
426
|
var l;
|
|
427
|
-
u =
|
|
427
|
+
u = ze(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}), n.forEach((s) => {
|
|
@@ -467,7 +467,7 @@ class Zi {
|
|
|
467
467
|
* @returns {() => void}
|
|
468
468
|
*/
|
|
469
469
|
$on(t, i) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!Et(i))
|
|
471
471
|
return ie;
|
|
472
472
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
473
473
|
return n.push(i), () => {
|
|
@@ -480,7 +480,7 @@ class Zi {
|
|
|
480
480
|
* @returns {void}
|
|
481
481
|
*/
|
|
482
482
|
$set(t) {
|
|
483
|
-
this.$$set && !
|
|
483
|
+
this.$$set && !Si(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
const Yi = "4";
|
|
@@ -488,10 +488,10 @@ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @
|
|
|
488
488
|
const be = [];
|
|
489
489
|
function Ji(e, t) {
|
|
490
490
|
return {
|
|
491
|
-
subscribe:
|
|
491
|
+
subscribe: We(e, t).subscribe
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function We(e, t = ie) {
|
|
495
495
|
let i;
|
|
496
496
|
const n = /* @__PURE__ */ new Set();
|
|
497
497
|
function r(s) {
|
|
@@ -517,7 +517,7 @@ function Ye(e, t = ie) {
|
|
|
517
517
|
}
|
|
518
518
|
return { set: r, update: o, subscribe: a };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Pe(e, t, i) {
|
|
521
521
|
const n = !Array.isArray(e), r = n ? [e] : e;
|
|
522
522
|
if (!r.every(Boolean))
|
|
523
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -525,26 +525,26 @@ function we(e, t, i) {
|
|
|
525
525
|
return Ji(i, (a, s) => {
|
|
526
526
|
let u = !1;
|
|
527
527
|
const l = [];
|
|
528
|
-
let c = 0,
|
|
529
|
-
const
|
|
528
|
+
let c = 0, m = ie;
|
|
529
|
+
const p = () => {
|
|
530
530
|
if (c)
|
|
531
531
|
return;
|
|
532
|
-
|
|
532
|
+
m();
|
|
533
533
|
const E = t(n ? l[0] : l, a, s);
|
|
534
|
-
o ? a(E) :
|
|
534
|
+
o ? a(E) : m = Et(E) ? E : ie;
|
|
535
535
|
}, d = r.map(
|
|
536
536
|
(E, _) => Jt(
|
|
537
537
|
E,
|
|
538
538
|
(y) => {
|
|
539
|
-
l[_] = y, c &= ~(1 << _), u &&
|
|
539
|
+
l[_] = y, c &= ~(1 << _), u && p();
|
|
540
540
|
},
|
|
541
541
|
() => {
|
|
542
542
|
c |= 1 << _;
|
|
543
543
|
}
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
|
-
return u = !0,
|
|
547
|
-
|
|
546
|
+
return u = !0, p(), function() {
|
|
547
|
+
ue(d), m(), u = !1;
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
550
|
}
|
|
@@ -568,19 +568,19 @@ function on(e) {
|
|
|
568
568
|
function sn(e) {
|
|
569
569
|
return Array.isArray(e) ? [] : {};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
571
|
+
function Oe(e, t) {
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ee(sn(e), e, t) : e;
|
|
573
573
|
}
|
|
574
574
|
function an(e, t, i) {
|
|
575
575
|
return e.concat(t).map(function(n) {
|
|
576
|
-
return
|
|
576
|
+
return Oe(n, i);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
function ln(e, t) {
|
|
580
580
|
if (!t.customMerge)
|
|
581
|
-
return
|
|
581
|
+
return Ee;
|
|
582
582
|
var i = t.customMerge(e);
|
|
583
|
-
return typeof i == "function" ? i :
|
|
583
|
+
return typeof i == "function" ? i : Ee;
|
|
584
584
|
}
|
|
585
585
|
function un(e) {
|
|
586
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -603,51 +603,65 @@ function cn(e, t) {
|
|
|
603
603
|
function hn(e, t, i) {
|
|
604
604
|
var n = {};
|
|
605
605
|
return i.isMergeableObject(e) && Nt(e).forEach(function(r) {
|
|
606
|
-
n[r] =
|
|
606
|
+
n[r] = Oe(e[r], i);
|
|
607
607
|
}), Nt(t).forEach(function(r) {
|
|
608
|
-
cn(e, r) || (ei(e, r) && i.isMergeableObject(t[r]) ? n[r] = ln(r, i)(e[r], t[r], i) : n[r] =
|
|
608
|
+
cn(e, r) || (ei(e, r) && i.isMergeableObject(t[r]) ? n[r] = ln(r, i)(e[r], t[r], i) : n[r] = Oe(t[r], i));
|
|
609
609
|
}), n;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
i = i || {}, i.arrayMerge = i.arrayMerge || an, i.isMergeableObject = i.isMergeableObject || Ki, i.cloneUnlessOtherwiseSpecified =
|
|
611
|
+
function Ee(e, t, i) {
|
|
612
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || an, i.isMergeableObject = i.isMergeableObject || Ki, i.cloneUnlessOtherwiseSpecified = Oe;
|
|
613
613
|
var n = Array.isArray(t), r = Array.isArray(e), o = n === r;
|
|
614
|
-
return o ? n ? i.arrayMerge(e, t, i) : hn(e, t, i) :
|
|
614
|
+
return o ? n ? i.arrayMerge(e, t, i) : hn(e, t, i) : Oe(t, i);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
Ee.all = function(t, i) {
|
|
617
617
|
if (!Array.isArray(t))
|
|
618
618
|
throw new Error("first argument should be an array");
|
|
619
619
|
return t.reduce(function(n, r) {
|
|
620
|
-
return
|
|
620
|
+
return Ee(n, r, i);
|
|
621
621
|
}, {});
|
|
622
622
|
};
|
|
623
|
-
var fn =
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
623
|
+
var fn = Ee, mn = fn;
|
|
624
|
+
const pn = /* @__PURE__ */ Qi(mn);
|
|
625
|
+
/*! *****************************************************************************
|
|
626
|
+
Copyright (c) Microsoft Corporation.
|
|
627
|
+
|
|
628
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
629
|
+
purpose with or without fee is hereby granted.
|
|
630
|
+
|
|
631
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
632
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
633
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
634
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
635
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
636
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
637
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
638
|
+
***************************************************************************** */
|
|
639
|
+
var ht = function(e, t) {
|
|
640
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
627
641
|
i.__proto__ = n;
|
|
628
642
|
} || function(i, n) {
|
|
629
643
|
for (var r in n)
|
|
630
644
|
Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
|
|
631
|
-
},
|
|
645
|
+
}, ht(e, t);
|
|
632
646
|
};
|
|
633
|
-
function
|
|
647
|
+
function Ze(e, t) {
|
|
634
648
|
if (typeof t != "function" && t !== null)
|
|
635
649
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
636
|
-
|
|
650
|
+
ht(e, t);
|
|
637
651
|
function i() {
|
|
638
652
|
this.constructor = e;
|
|
639
653
|
}
|
|
640
654
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
641
655
|
}
|
|
642
|
-
var
|
|
643
|
-
return
|
|
656
|
+
var k = function() {
|
|
657
|
+
return k = Object.assign || function(t) {
|
|
644
658
|
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
645
659
|
i = arguments[n];
|
|
646
660
|
for (var o in i)
|
|
647
661
|
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
648
662
|
}
|
|
649
663
|
return t;
|
|
650
|
-
},
|
|
664
|
+
}, k.apply(this, arguments);
|
|
651
665
|
};
|
|
652
666
|
function dn(e, t) {
|
|
653
667
|
var i = {};
|
|
@@ -658,119 +672,111 @@ function dn(e, t) {
|
|
|
658
672
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
659
673
|
return i;
|
|
660
674
|
}
|
|
661
|
-
function
|
|
662
|
-
if (
|
|
675
|
+
function nt(e, t, i) {
|
|
676
|
+
if (arguments.length === 2)
|
|
663
677
|
for (var n = 0, r = t.length, o; n < r; n++)
|
|
664
678
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
665
|
-
return e.concat(o ||
|
|
679
|
+
return e.concat(o || t);
|
|
666
680
|
}
|
|
667
|
-
function
|
|
668
|
-
var i = t && t.cache ? t.cache :
|
|
681
|
+
function rt(e, t) {
|
|
682
|
+
var i = t && t.cache ? t.cache : _n, n = t && t.serializer ? t.serializer : En, r = t && t.strategy ? t.strategy : gn;
|
|
669
683
|
return r(e, {
|
|
670
684
|
cache: i,
|
|
671
685
|
serializer: n
|
|
672
686
|
});
|
|
673
687
|
}
|
|
674
|
-
function
|
|
688
|
+
function bn(e) {
|
|
675
689
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
676
690
|
}
|
|
677
|
-
function
|
|
678
|
-
var r =
|
|
691
|
+
function ti(e, t, i, n) {
|
|
692
|
+
var r = bn(n) ? n : i(n), o = t.get(r);
|
|
679
693
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(r, o)), o;
|
|
680
694
|
}
|
|
681
|
-
function
|
|
695
|
+
function ii(e, t, i) {
|
|
682
696
|
var n = Array.prototype.slice.call(arguments, 3), r = i(n), o = t.get(r);
|
|
683
697
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(r, o)), o;
|
|
684
698
|
}
|
|
685
|
-
function
|
|
699
|
+
function _t(e, t, i, n, r) {
|
|
686
700
|
return i.bind(t, e, n, r);
|
|
687
701
|
}
|
|
702
|
+
function gn(e, t) {
|
|
703
|
+
var i = e.length === 1 ? ti : ii;
|
|
704
|
+
return _t(e, this, i, t.cache.create(), t.serializer);
|
|
705
|
+
}
|
|
688
706
|
function yn(e, t) {
|
|
689
|
-
|
|
690
|
-
return ii(e, this, i, t.cache.create(), t.serializer);
|
|
707
|
+
return _t(e, this, ii, t.cache.create(), t.serializer);
|
|
691
708
|
}
|
|
692
709
|
function vn(e, t) {
|
|
693
|
-
return
|
|
710
|
+
return _t(e, this, ti, t.cache.create(), t.serializer);
|
|
694
711
|
}
|
|
695
712
|
var En = function() {
|
|
696
713
|
return JSON.stringify(arguments);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}()
|
|
709
|
-
), xn = {
|
|
714
|
+
};
|
|
715
|
+
function xt() {
|
|
716
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
717
|
+
}
|
|
718
|
+
xt.prototype.get = function(e) {
|
|
719
|
+
return this.cache[e];
|
|
720
|
+
};
|
|
721
|
+
xt.prototype.set = function(e, t) {
|
|
722
|
+
this.cache[e] = t;
|
|
723
|
+
};
|
|
724
|
+
var _n = {
|
|
710
725
|
create: function() {
|
|
711
|
-
return new
|
|
726
|
+
return new xt();
|
|
712
727
|
}
|
|
713
|
-
},
|
|
714
|
-
variadic:
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
718
|
-
i = arguments[n];
|
|
719
|
-
for (var o in i)
|
|
720
|
-
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
721
|
-
}
|
|
722
|
-
return t;
|
|
723
|
-
}, qe.apply(this, arguments);
|
|
724
|
-
};
|
|
725
|
-
var B;
|
|
728
|
+
}, ot = {
|
|
729
|
+
variadic: yn,
|
|
730
|
+
monadic: vn
|
|
731
|
+
}, B;
|
|
726
732
|
(function(e) {
|
|
727
733
|
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";
|
|
728
734
|
})(B || (B = {}));
|
|
729
|
-
var
|
|
735
|
+
var z;
|
|
730
736
|
(function(e) {
|
|
731
737
|
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";
|
|
732
|
-
})(
|
|
733
|
-
var
|
|
738
|
+
})(z || (z = {}));
|
|
739
|
+
var _e;
|
|
734
740
|
(function(e) {
|
|
735
741
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
736
|
-
})(
|
|
742
|
+
})(_e || (_e = {}));
|
|
737
743
|
function Ot(e) {
|
|
738
|
-
return e.type ===
|
|
744
|
+
return e.type === z.literal;
|
|
739
745
|
}
|
|
740
|
-
function
|
|
741
|
-
return e.type ===
|
|
746
|
+
function xn(e) {
|
|
747
|
+
return e.type === z.argument;
|
|
742
748
|
}
|
|
743
749
|
function ni(e) {
|
|
744
|
-
return e.type ===
|
|
750
|
+
return e.type === z.number;
|
|
745
751
|
}
|
|
746
752
|
function ri(e) {
|
|
747
|
-
return e.type ===
|
|
753
|
+
return e.type === z.date;
|
|
748
754
|
}
|
|
749
755
|
function oi(e) {
|
|
750
|
-
return e.type ===
|
|
756
|
+
return e.type === z.time;
|
|
751
757
|
}
|
|
752
758
|
function si(e) {
|
|
753
|
-
return e.type ===
|
|
759
|
+
return e.type === z.select;
|
|
754
760
|
}
|
|
755
761
|
function ai(e) {
|
|
756
|
-
return e.type ===
|
|
762
|
+
return e.type === z.plural;
|
|
757
763
|
}
|
|
758
|
-
function
|
|
759
|
-
return e.type ===
|
|
764
|
+
function Tn(e) {
|
|
765
|
+
return e.type === z.pound;
|
|
760
766
|
}
|
|
761
767
|
function li(e) {
|
|
762
|
-
return e.type ===
|
|
768
|
+
return e.type === z.tag;
|
|
763
769
|
}
|
|
764
770
|
function ui(e) {
|
|
765
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
771
|
+
return !!(e && typeof e == "object" && e.type === _e.number);
|
|
766
772
|
}
|
|
767
|
-
function
|
|
768
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
function ft(e) {
|
|
774
|
+
return !!(e && typeof e == "object" && e.type === _e.dateTime);
|
|
769
775
|
}
|
|
770
|
-
var ci = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
771
|
-
function
|
|
776
|
+
var ci = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
777
|
+
function wn(e) {
|
|
772
778
|
var t = {};
|
|
773
|
-
return e.replace(
|
|
779
|
+
return e.replace(Pn, function(i) {
|
|
774
780
|
var n = i.length;
|
|
775
781
|
switch (i[0]) {
|
|
776
782
|
case "G":
|
|
@@ -859,29 +865,19 @@ function Bn(e) {
|
|
|
859
865
|
return "";
|
|
860
866
|
}), t;
|
|
861
867
|
}
|
|
862
|
-
var
|
|
863
|
-
|
|
864
|
-
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
865
|
-
i = arguments[n];
|
|
866
|
-
for (var o in i)
|
|
867
|
-
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
868
|
-
}
|
|
869
|
-
return t;
|
|
870
|
-
}, V.apply(this, arguments);
|
|
871
|
-
};
|
|
872
|
-
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
873
|
-
function Sn(e) {
|
|
868
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
869
|
+
function Ln(e) {
|
|
874
870
|
if (e.length === 0)
|
|
875
871
|
throw new Error("Number skeleton cannot be empty");
|
|
876
|
-
for (var t = e.split(
|
|
877
|
-
return
|
|
872
|
+
for (var t = e.split(Bn).filter(function(p) {
|
|
873
|
+
return p.length > 0;
|
|
878
874
|
}), i = [], n = 0, r = t; n < r.length; n++) {
|
|
879
875
|
var o = r[n], a = o.split("/");
|
|
880
876
|
if (a.length === 0)
|
|
881
877
|
throw new Error("Invalid number skeleton");
|
|
882
878
|
for (var s = a[0], u = a.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
883
|
-
var
|
|
884
|
-
if (
|
|
879
|
+
var m = c[l];
|
|
880
|
+
if (m.length === 0)
|
|
885
881
|
throw new Error("Invalid number skeleton");
|
|
886
882
|
}
|
|
887
883
|
i.push({ stem: s, options: u });
|
|
@@ -891,14 +887,14 @@ function Sn(e) {
|
|
|
891
887
|
function An(e) {
|
|
892
888
|
return e.replace(/^(.*?)-/, "");
|
|
893
889
|
}
|
|
894
|
-
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
890
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hi = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, fi = /^(0+)$/;
|
|
895
891
|
function Dt(e) {
|
|
896
892
|
var t = {};
|
|
897
893
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hi, function(i, n, r) {
|
|
898
894
|
return typeof r != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)), "";
|
|
899
895
|
}), t;
|
|
900
896
|
}
|
|
901
|
-
function
|
|
897
|
+
function mi(e) {
|
|
902
898
|
switch (e) {
|
|
903
899
|
case "sign-auto":
|
|
904
900
|
return {
|
|
@@ -938,7 +934,7 @@ function pi(e) {
|
|
|
938
934
|
};
|
|
939
935
|
}
|
|
940
936
|
}
|
|
941
|
-
function
|
|
937
|
+
function In(e) {
|
|
942
938
|
var t;
|
|
943
939
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
944
940
|
notation: "engineering"
|
|
@@ -953,10 +949,10 @@ function kn(e) {
|
|
|
953
949
|
return t;
|
|
954
950
|
}
|
|
955
951
|
function Rt(e) {
|
|
956
|
-
var t = {}, i =
|
|
952
|
+
var t = {}, i = mi(e);
|
|
957
953
|
return i || t;
|
|
958
954
|
}
|
|
959
|
-
function
|
|
955
|
+
function kn(e) {
|
|
960
956
|
for (var t = {}, i = 0, n = e; i < n.length; i++) {
|
|
961
957
|
var r = n[i];
|
|
962
958
|
switch (r.stem) {
|
|
@@ -991,13 +987,13 @@ function Hn(e) {
|
|
|
991
987
|
t.notation = "compact", t.compactDisplay = "long";
|
|
992
988
|
continue;
|
|
993
989
|
case "scientific":
|
|
994
|
-
t =
|
|
995
|
-
return
|
|
990
|
+
t = k(k(k({}, t), { notation: "scientific" }), r.options.reduce(function(u, l) {
|
|
991
|
+
return k(k({}, u), Rt(l));
|
|
996
992
|
}, {}));
|
|
997
993
|
continue;
|
|
998
994
|
case "engineering":
|
|
999
|
-
t =
|
|
1000
|
-
return
|
|
995
|
+
t = k(k(k({}, t), { notation: "engineering" }), r.options.reduce(function(u, l) {
|
|
996
|
+
return k(k({}, u), Rt(l));
|
|
1001
997
|
}, {}));
|
|
1002
998
|
continue;
|
|
1003
999
|
case "notation-simple":
|
|
@@ -1042,11 +1038,11 @@ function Hn(e) {
|
|
|
1042
1038
|
case "integer-width":
|
|
1043
1039
|
if (r.options.length > 1)
|
|
1044
1040
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1045
|
-
r.options[0].replace(
|
|
1041
|
+
r.options[0].replace(Sn, function(u, l, c, m, p, d) {
|
|
1046
1042
|
if (l)
|
|
1047
1043
|
t.minimumIntegerDigits = c.length;
|
|
1048
1044
|
else {
|
|
1049
|
-
if (
|
|
1045
|
+
if (m && p)
|
|
1050
1046
|
throw new Error("We currently do not support maximum integer digits");
|
|
1051
1047
|
if (d)
|
|
1052
1048
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1062,25 +1058,25 @@ function Hn(e) {
|
|
|
1062
1058
|
if (Mt.test(r.stem)) {
|
|
1063
1059
|
if (r.options.length > 1)
|
|
1064
1060
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1065
|
-
r.stem.replace(Mt, function(u, l, c,
|
|
1066
|
-
return c === "*" ? t.minimumFractionDigits = l.length :
|
|
1061
|
+
r.stem.replace(Mt, function(u, l, c, m, p, d) {
|
|
1062
|
+
return c === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : p && d ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1067
1063
|
});
|
|
1068
1064
|
var o = r.options[0];
|
|
1069
|
-
o === "w" ? t =
|
|
1065
|
+
o === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = k(k({}, t), Dt(o)));
|
|
1070
1066
|
continue;
|
|
1071
1067
|
}
|
|
1072
1068
|
if (hi.test(r.stem)) {
|
|
1073
|
-
t =
|
|
1069
|
+
t = k(k({}, t), Dt(r.stem));
|
|
1074
1070
|
continue;
|
|
1075
1071
|
}
|
|
1076
|
-
var a =
|
|
1077
|
-
a && (t =
|
|
1078
|
-
var s =
|
|
1079
|
-
s && (t =
|
|
1072
|
+
var a = mi(r.stem);
|
|
1073
|
+
a && (t = k(k({}, t), a));
|
|
1074
|
+
var s = In(r.stem);
|
|
1075
|
+
s && (t = k(k({}, t), s));
|
|
1080
1076
|
}
|
|
1081
1077
|
return t;
|
|
1082
1078
|
}
|
|
1083
|
-
var
|
|
1079
|
+
var $e = {
|
|
1084
1080
|
"001": [
|
|
1085
1081
|
"H",
|
|
1086
1082
|
"h"
|
|
@@ -2495,13 +2491,13 @@ var ze = {
|
|
|
2495
2491
|
"h"
|
|
2496
2492
|
]
|
|
2497
2493
|
};
|
|
2498
|
-
function
|
|
2494
|
+
function Hn(e, t) {
|
|
2499
2495
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
2500
2496
|
var r = e.charAt(n);
|
|
2501
2497
|
if (r === "j") {
|
|
2502
2498
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === r; )
|
|
2503
2499
|
o++, n++;
|
|
2504
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2500
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Cn(t);
|
|
2505
2501
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2506
2502
|
i += u;
|
|
2507
2503
|
for (; a-- > 0; )
|
|
@@ -2511,7 +2507,7 @@ function Cn(e, t) {
|
|
|
2511
2507
|
}
|
|
2512
2508
|
return i;
|
|
2513
2509
|
}
|
|
2514
|
-
function
|
|
2510
|
+
function Cn(e) {
|
|
2515
2511
|
var t = e.hourCycle;
|
|
2516
2512
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2517
2513
|
e.hourCycles && // @ts-ignore
|
|
@@ -2530,23 +2526,23 @@ function Nn(e) {
|
|
|
2530
2526
|
}
|
|
2531
2527
|
var i = e.language, n;
|
|
2532
2528
|
i !== "root" && (n = e.maximize().region);
|
|
2533
|
-
var r =
|
|
2529
|
+
var r = $e[n || ""] || $e[i || ""] || $e["".concat(i, "-001")] || $e["001"];
|
|
2534
2530
|
return r[0];
|
|
2535
2531
|
}
|
|
2536
|
-
var
|
|
2537
|
-
function
|
|
2532
|
+
var st, Nn = new RegExp("^".concat(ci.source, "*")), On = new RegExp("".concat(ci.source, "*$"));
|
|
2533
|
+
function S(e, t) {
|
|
2538
2534
|
return { start: e, end: t };
|
|
2539
2535
|
}
|
|
2540
|
-
var
|
|
2536
|
+
var Mn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Rn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, jn = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, zn = $n ? Number.isSafeInteger : function(e) {
|
|
2541
2537
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2542
|
-
},
|
|
2538
|
+
}, mt = !0;
|
|
2543
2539
|
try {
|
|
2544
|
-
var
|
|
2545
|
-
|
|
2540
|
+
var Fn = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2541
|
+
mt = ((st = Fn.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
|
|
2546
2542
|
} catch (e) {
|
|
2547
|
-
|
|
2543
|
+
mt = !1;
|
|
2548
2544
|
}
|
|
2549
|
-
var Ut =
|
|
2545
|
+
var Ut = Mn ? (
|
|
2550
2546
|
// Native
|
|
2551
2547
|
function(t, i, n) {
|
|
2552
2548
|
return t.startsWith(i, n);
|
|
@@ -2556,7 +2552,7 @@ var Ut = Dn ? (
|
|
|
2556
2552
|
function(t, i, n) {
|
|
2557
2553
|
return t.slice(n, n + i.length) === i;
|
|
2558
2554
|
}
|
|
2559
|
-
),
|
|
2555
|
+
), pt = Dn ? String.fromCodePoint : (
|
|
2560
2556
|
// IE11
|
|
2561
2557
|
function() {
|
|
2562
2558
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2570,7 +2566,7 @@ var Ut = Dn ? (
|
|
|
2570
2566
|
}
|
|
2571
2567
|
), jt = (
|
|
2572
2568
|
// native
|
|
2573
|
-
|
|
2569
|
+
Rn ? Object.fromEntries : (
|
|
2574
2570
|
// Ponyfill
|
|
2575
2571
|
function(t) {
|
|
2576
2572
|
for (var i = {}, n = 0, r = t; n < r.length; n++) {
|
|
@@ -2580,7 +2576,7 @@ var Ut = Dn ? (
|
|
|
2580
2576
|
return i;
|
|
2581
2577
|
}
|
|
2582
2578
|
)
|
|
2583
|
-
),
|
|
2579
|
+
), pi = Un ? (
|
|
2584
2580
|
// Native
|
|
2585
2581
|
function(t, i) {
|
|
2586
2582
|
return t.codePointAt(i);
|
|
@@ -2594,7 +2590,7 @@ var Ut = Dn ? (
|
|
|
2594
2590
|
return r < 55296 || r > 56319 || i + 1 === n || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? r : (r - 55296 << 10) + (o - 56320) + 65536;
|
|
2595
2591
|
}
|
|
2596
2592
|
}
|
|
2597
|
-
),
|
|
2593
|
+
), Vn = jn ? (
|
|
2598
2594
|
// Native
|
|
2599
2595
|
function(t) {
|
|
2600
2596
|
return t.trimStart();
|
|
@@ -2602,9 +2598,9 @@ var Ut = Dn ? (
|
|
|
2602
2598
|
) : (
|
|
2603
2599
|
// Ponyfill
|
|
2604
2600
|
function(t) {
|
|
2605
|
-
return t.replace(
|
|
2601
|
+
return t.replace(Nn, "");
|
|
2606
2602
|
}
|
|
2607
|
-
),
|
|
2603
|
+
), Xn = Gn ? (
|
|
2608
2604
|
// Native
|
|
2609
2605
|
function(t) {
|
|
2610
2606
|
return t.trimEnd();
|
|
@@ -2612,32 +2608,32 @@ var Ut = Dn ? (
|
|
|
2612
2608
|
) : (
|
|
2613
2609
|
// Ponyfill
|
|
2614
2610
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2611
|
+
return t.replace(On, "");
|
|
2616
2612
|
}
|
|
2617
2613
|
);
|
|
2618
2614
|
function di(e, t) {
|
|
2619
2615
|
return new RegExp(e, t);
|
|
2620
2616
|
}
|
|
2621
|
-
var
|
|
2622
|
-
if (
|
|
2617
|
+
var dt;
|
|
2618
|
+
if (mt) {
|
|
2623
2619
|
var Gt = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2624
|
-
|
|
2620
|
+
dt = function(t, i) {
|
|
2625
2621
|
var n;
|
|
2626
2622
|
Gt.lastIndex = i;
|
|
2627
2623
|
var r = Gt.exec(t);
|
|
2628
2624
|
return (n = r[1]) !== null && n !== void 0 ? n : "";
|
|
2629
2625
|
};
|
|
2630
2626
|
} else
|
|
2631
|
-
|
|
2627
|
+
dt = function(t, i) {
|
|
2632
2628
|
for (var n = []; ; ) {
|
|
2633
|
-
var r =
|
|
2634
|
-
if (r === void 0 ||
|
|
2629
|
+
var r = pi(t, i);
|
|
2630
|
+
if (r === void 0 || bi(r) || Yn(r))
|
|
2635
2631
|
break;
|
|
2636
2632
|
n.push(r), i += r >= 65536 ? 2 : 1;
|
|
2637
2633
|
}
|
|
2638
|
-
return
|
|
2634
|
+
return pt.apply(void 0, n);
|
|
2639
2635
|
};
|
|
2640
|
-
var
|
|
2636
|
+
var qn = (
|
|
2641
2637
|
/** @class */
|
|
2642
2638
|
function() {
|
|
2643
2639
|
function e(t, i) {
|
|
@@ -2661,14 +2657,14 @@ var Wn = (
|
|
|
2661
2657
|
if (o === 35 && (i === "plural" || i === "selectordinal")) {
|
|
2662
2658
|
var s = this.clonePosition();
|
|
2663
2659
|
this.bump(), r.push({
|
|
2664
|
-
type:
|
|
2665
|
-
location:
|
|
2660
|
+
type: z.pound,
|
|
2661
|
+
location: S(s, this.clonePosition())
|
|
2666
2662
|
});
|
|
2667
2663
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2668
2664
|
if (n)
|
|
2669
2665
|
break;
|
|
2670
|
-
return this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2671
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2666
|
+
return this.error(B.UNMATCHED_CLOSING_TAG, S(this.clonePosition(), this.clonePosition()));
|
|
2667
|
+
} else if (o === 60 && !this.ignoreTag && bt(this.peek() || 0)) {
|
|
2672
2668
|
var a = this.parseTag(t, i);
|
|
2673
2669
|
if (a.err)
|
|
2674
2670
|
return a;
|
|
@@ -2689,9 +2685,9 @@ var Wn = (
|
|
|
2689
2685
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2690
2686
|
return {
|
|
2691
2687
|
val: {
|
|
2692
|
-
type:
|
|
2688
|
+
type: z.literal,
|
|
2693
2689
|
value: "<".concat(r, "/>"),
|
|
2694
|
-
location:
|
|
2690
|
+
location: S(n, this.clonePosition())
|
|
2695
2691
|
},
|
|
2696
2692
|
err: null
|
|
2697
2693
|
};
|
|
@@ -2701,25 +2697,25 @@ var Wn = (
|
|
|
2701
2697
|
return o;
|
|
2702
2698
|
var a = o.val, s = this.clonePosition();
|
|
2703
2699
|
if (this.bumpIf("</")) {
|
|
2704
|
-
if (this.isEOF() || !
|
|
2705
|
-
return this.error(B.INVALID_TAG,
|
|
2700
|
+
if (this.isEOF() || !bt(this.char()))
|
|
2701
|
+
return this.error(B.INVALID_TAG, S(s, this.clonePosition()));
|
|
2706
2702
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2707
|
-
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2703
|
+
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG, S(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2708
2704
|
val: {
|
|
2709
|
-
type:
|
|
2705
|
+
type: z.tag,
|
|
2710
2706
|
value: r,
|
|
2711
2707
|
children: a,
|
|
2712
|
-
location:
|
|
2708
|
+
location: S(n, this.clonePosition())
|
|
2713
2709
|
},
|
|
2714
2710
|
err: null
|
|
2715
|
-
} : this.error(B.INVALID_TAG,
|
|
2711
|
+
} : this.error(B.INVALID_TAG, S(s, this.clonePosition())));
|
|
2716
2712
|
} else
|
|
2717
|
-
return this.error(B.UNCLOSED_TAG,
|
|
2713
|
+
return this.error(B.UNCLOSED_TAG, S(n, this.clonePosition()));
|
|
2718
2714
|
} else
|
|
2719
|
-
return this.error(B.INVALID_TAG,
|
|
2715
|
+
return this.error(B.INVALID_TAG, S(n, this.clonePosition()));
|
|
2720
2716
|
}, e.prototype.parseTagName = function() {
|
|
2721
2717
|
var t = this.offset();
|
|
2722
|
-
for (this.bump(); !this.isEOF() &&
|
|
2718
|
+
for (this.bump(); !this.isEOF() && Zn(this.char()); )
|
|
2723
2719
|
this.bump();
|
|
2724
2720
|
return this.message.slice(t, this.offset());
|
|
2725
2721
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2741,14 +2737,14 @@ var Wn = (
|
|
|
2741
2737
|
}
|
|
2742
2738
|
break;
|
|
2743
2739
|
}
|
|
2744
|
-
var u =
|
|
2740
|
+
var u = S(n, this.clonePosition());
|
|
2745
2741
|
return {
|
|
2746
|
-
val: { type:
|
|
2742
|
+
val: { type: z.literal, value: r, location: u },
|
|
2747
2743
|
err: null
|
|
2748
2744
|
};
|
|
2749
2745
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2750
2746
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2751
|
-
!
|
|
2747
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2752
2748
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2753
2749
|
if (this.isEOF() || this.char() !== 39)
|
|
2754
2750
|
return null;
|
|
@@ -2782,49 +2778,49 @@ var Wn = (
|
|
|
2782
2778
|
i.push(n);
|
|
2783
2779
|
this.bump();
|
|
2784
2780
|
}
|
|
2785
|
-
return
|
|
2781
|
+
return pt.apply(void 0, i);
|
|
2786
2782
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2787
2783
|
if (this.isEOF())
|
|
2788
2784
|
return null;
|
|
2789
2785
|
var n = this.char();
|
|
2790
|
-
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2786
|
+
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), pt(n));
|
|
2791
2787
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2792
2788
|
var n = this.clonePosition();
|
|
2793
2789
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2794
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2790
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
2795
2791
|
if (this.char() === 125)
|
|
2796
|
-
return this.bump(), this.error(B.EMPTY_ARGUMENT,
|
|
2792
|
+
return this.bump(), this.error(B.EMPTY_ARGUMENT, S(n, this.clonePosition()));
|
|
2797
2793
|
var r = this.parseIdentifierIfPossible().value;
|
|
2798
2794
|
if (!r)
|
|
2799
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2795
|
+
return this.error(B.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
2800
2796
|
if (this.bumpSpace(), this.isEOF())
|
|
2801
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2797
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition()));
|
|
2802
2798
|
switch (this.char()) {
|
|
2803
2799
|
case 125:
|
|
2804
2800
|
return this.bump(), {
|
|
2805
2801
|
val: {
|
|
2806
|
-
type:
|
|
2802
|
+
type: z.argument,
|
|
2807
2803
|
// value does not include the opening and closing braces.
|
|
2808
2804
|
value: r,
|
|
2809
|
-
location:
|
|
2805
|
+
location: S(n, this.clonePosition())
|
|
2810
2806
|
},
|
|
2811
2807
|
err: null
|
|
2812
2808
|
};
|
|
2813
2809
|
case 44:
|
|
2814
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2810
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, S(n, this.clonePosition())) : this.parseArgumentOptions(t, i, r, n);
|
|
2815
2811
|
default:
|
|
2816
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2812
|
+
return this.error(B.MALFORMED_ARGUMENT, S(n, this.clonePosition()));
|
|
2817
2813
|
}
|
|
2818
2814
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2819
|
-
var t = this.clonePosition(), i = this.offset(), n =
|
|
2815
|
+
var t = this.clonePosition(), i = this.offset(), n = dt(this.message, i), r = i + n.length;
|
|
2820
2816
|
this.bumpTo(r);
|
|
2821
|
-
var o = this.clonePosition(), a =
|
|
2817
|
+
var o = this.clonePosition(), a = S(t, o);
|
|
2822
2818
|
return { value: n, location: a };
|
|
2823
2819
|
}, e.prototype.parseArgumentOptions = function(t, i, n, r) {
|
|
2824
2820
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2825
2821
|
switch (s) {
|
|
2826
2822
|
case "":
|
|
2827
|
-
return this.error(B.EXPECT_ARGUMENT_TYPE,
|
|
2823
|
+
return this.error(B.EXPECT_ARGUMENT_TYPE, S(a, u));
|
|
2828
2824
|
case "number":
|
|
2829
2825
|
case "date":
|
|
2830
2826
|
case "time": {
|
|
@@ -2832,47 +2828,47 @@ var Wn = (
|
|
|
2832
2828
|
var l = null;
|
|
2833
2829
|
if (this.bumpIf(",")) {
|
|
2834
2830
|
this.bumpSpace();
|
|
2835
|
-
var c = this.clonePosition(),
|
|
2836
|
-
if (
|
|
2837
|
-
return
|
|
2838
|
-
var
|
|
2839
|
-
if (
|
|
2840
|
-
return this.error(B.EXPECT_ARGUMENT_STYLE,
|
|
2841
|
-
var d =
|
|
2842
|
-
l = { style:
|
|
2831
|
+
var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2832
|
+
if (m.err)
|
|
2833
|
+
return m;
|
|
2834
|
+
var p = Xn(m.val);
|
|
2835
|
+
if (p.length === 0)
|
|
2836
|
+
return this.error(B.EXPECT_ARGUMENT_STYLE, S(this.clonePosition(), this.clonePosition()));
|
|
2837
|
+
var d = S(c, this.clonePosition());
|
|
2838
|
+
l = { style: p, styleLocation: d };
|
|
2843
2839
|
}
|
|
2844
2840
|
var E = this.tryParseArgumentClose(r);
|
|
2845
2841
|
if (E.err)
|
|
2846
2842
|
return E;
|
|
2847
|
-
var _ =
|
|
2843
|
+
var _ = S(r, this.clonePosition());
|
|
2848
2844
|
if (l && Ut(l == null ? void 0 : l.style, "::", 0)) {
|
|
2849
|
-
var y =
|
|
2845
|
+
var y = Vn(l.style.slice(2));
|
|
2850
2846
|
if (s === "number") {
|
|
2851
|
-
var
|
|
2852
|
-
return
|
|
2853
|
-
val: { type:
|
|
2847
|
+
var m = this.parseNumberSkeletonFromString(y, l.styleLocation);
|
|
2848
|
+
return m.err ? m : {
|
|
2849
|
+
val: { type: z.number, value: n, location: _, style: m.val },
|
|
2854
2850
|
err: null
|
|
2855
2851
|
};
|
|
2856
2852
|
} else {
|
|
2857
2853
|
if (y.length === 0)
|
|
2858
2854
|
return this.error(B.EXPECT_DATE_TIME_SKELETON, _);
|
|
2859
2855
|
var v = y;
|
|
2860
|
-
this.locale && (v =
|
|
2861
|
-
var
|
|
2862
|
-
type:
|
|
2856
|
+
this.locale && (v = Hn(y, this.locale));
|
|
2857
|
+
var p = {
|
|
2858
|
+
type: _e.dateTime,
|
|
2863
2859
|
pattern: v,
|
|
2864
2860
|
location: l.styleLocation,
|
|
2865
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2866
|
-
},
|
|
2861
|
+
parsedOptions: this.shouldParseSkeletons ? wn(v) : {}
|
|
2862
|
+
}, M = s === "date" ? z.date : z.time;
|
|
2867
2863
|
return {
|
|
2868
|
-
val: { type:
|
|
2864
|
+
val: { type: M, value: n, location: _, style: p },
|
|
2869
2865
|
err: null
|
|
2870
2866
|
};
|
|
2871
2867
|
}
|
|
2872
2868
|
}
|
|
2873
2869
|
return {
|
|
2874
2870
|
val: {
|
|
2875
|
-
type: s === "number" ?
|
|
2871
|
+
type: s === "number" ? z.number : s === "date" ? z.date : z.time,
|
|
2876
2872
|
value: n,
|
|
2877
2873
|
location: _,
|
|
2878
2874
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -2885,50 +2881,50 @@ var Wn = (
|
|
|
2885
2881
|
case "select": {
|
|
2886
2882
|
var w = this.clonePosition();
|
|
2887
2883
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2888
|
-
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2884
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, S(w, k({}, w)));
|
|
2889
2885
|
this.bumpSpace();
|
|
2890
|
-
var
|
|
2891
|
-
if (s !== "select" &&
|
|
2886
|
+
var D = this.parseIdentifierIfPossible(), A = 0;
|
|
2887
|
+
if (s !== "select" && D.value === "offset") {
|
|
2892
2888
|
if (!this.bumpIf(":"))
|
|
2893
|
-
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2889
|
+
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S(this.clonePosition(), this.clonePosition()));
|
|
2894
2890
|
this.bumpSpace();
|
|
2895
|
-
var
|
|
2896
|
-
if (
|
|
2897
|
-
return
|
|
2898
|
-
this.bumpSpace(),
|
|
2891
|
+
var m = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2892
|
+
if (m.err)
|
|
2893
|
+
return m;
|
|
2894
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), A = m.val;
|
|
2899
2895
|
}
|
|
2900
|
-
var
|
|
2901
|
-
if (
|
|
2902
|
-
return
|
|
2896
|
+
var R = this.tryParsePluralOrSelectOptions(t, s, i, D);
|
|
2897
|
+
if (R.err)
|
|
2898
|
+
return R;
|
|
2903
2899
|
var E = this.tryParseArgumentClose(r);
|
|
2904
2900
|
if (E.err)
|
|
2905
2901
|
return E;
|
|
2906
|
-
var
|
|
2902
|
+
var F = S(r, this.clonePosition());
|
|
2907
2903
|
return s === "select" ? {
|
|
2908
2904
|
val: {
|
|
2909
|
-
type:
|
|
2905
|
+
type: z.select,
|
|
2910
2906
|
value: n,
|
|
2911
|
-
options: jt(
|
|
2912
|
-
location:
|
|
2907
|
+
options: jt(R.val),
|
|
2908
|
+
location: F
|
|
2913
2909
|
},
|
|
2914
2910
|
err: null
|
|
2915
2911
|
} : {
|
|
2916
2912
|
val: {
|
|
2917
|
-
type:
|
|
2913
|
+
type: z.plural,
|
|
2918
2914
|
value: n,
|
|
2919
|
-
options: jt(
|
|
2920
|
-
offset:
|
|
2915
|
+
options: jt(R.val),
|
|
2916
|
+
offset: A,
|
|
2921
2917
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2922
|
-
location:
|
|
2918
|
+
location: F
|
|
2923
2919
|
},
|
|
2924
2920
|
err: null
|
|
2925
2921
|
};
|
|
2926
2922
|
}
|
|
2927
2923
|
default:
|
|
2928
|
-
return this.error(B.INVALID_ARGUMENT_TYPE,
|
|
2924
|
+
return this.error(B.INVALID_ARGUMENT_TYPE, S(a, u));
|
|
2929
2925
|
}
|
|
2930
2926
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2931
|
-
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2927
|
+
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, S(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2932
2928
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2933
2929
|
for (var t = 0, i = this.clonePosition(); !this.isEOF(); ) {
|
|
2934
2930
|
var n = this.char();
|
|
@@ -2937,7 +2933,7 @@ var Wn = (
|
|
|
2937
2933
|
this.bump();
|
|
2938
2934
|
var r = this.clonePosition();
|
|
2939
2935
|
if (!this.bumpUntil("'"))
|
|
2940
|
-
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2936
|
+
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, S(r, this.clonePosition()));
|
|
2941
2937
|
this.bump();
|
|
2942
2938
|
break;
|
|
2943
2939
|
}
|
|
@@ -2967,28 +2963,28 @@ var Wn = (
|
|
|
2967
2963
|
}, e.prototype.parseNumberSkeletonFromString = function(t, i) {
|
|
2968
2964
|
var n = [];
|
|
2969
2965
|
try {
|
|
2970
|
-
n =
|
|
2966
|
+
n = Ln(t);
|
|
2971
2967
|
} catch (r) {
|
|
2972
2968
|
return this.error(B.INVALID_NUMBER_SKELETON, i);
|
|
2973
2969
|
}
|
|
2974
2970
|
return {
|
|
2975
2971
|
val: {
|
|
2976
|
-
type:
|
|
2972
|
+
type: _e.number,
|
|
2977
2973
|
tokens: n,
|
|
2978
2974
|
location: i,
|
|
2979
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2975
|
+
parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
|
|
2980
2976
|
},
|
|
2981
2977
|
err: null
|
|
2982
2978
|
};
|
|
2983
2979
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, i, n, r) {
|
|
2984
2980
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = r.value, c = r.location; ; ) {
|
|
2985
2981
|
if (l.length === 0) {
|
|
2986
|
-
var
|
|
2982
|
+
var m = this.clonePosition();
|
|
2987
2983
|
if (i !== "select" && this.bumpIf("=")) {
|
|
2988
|
-
var
|
|
2989
|
-
if (
|
|
2990
|
-
return
|
|
2991
|
-
c =
|
|
2984
|
+
var p = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2985
|
+
if (p.err)
|
|
2986
|
+
return p;
|
|
2987
|
+
c = S(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
|
|
2992
2988
|
} else
|
|
2993
2989
|
break;
|
|
2994
2990
|
}
|
|
@@ -2997,7 +2993,7 @@ var Wn = (
|
|
|
2997
2993
|
l === "other" && (a = !0), this.bumpSpace();
|
|
2998
2994
|
var d = this.clonePosition();
|
|
2999
2995
|
if (!this.bumpIf("{"))
|
|
3000
|
-
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2996
|
+
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, S(this.clonePosition(), this.clonePosition()));
|
|
3001
2997
|
var E = this.parseMessage(t + 1, i, n);
|
|
3002
2998
|
if (E.err)
|
|
3003
2999
|
return E;
|
|
@@ -3008,11 +3004,11 @@ var Wn = (
|
|
|
3008
3004
|
l,
|
|
3009
3005
|
{
|
|
3010
3006
|
value: E.val,
|
|
3011
|
-
location:
|
|
3007
|
+
location: S(d, this.clonePosition())
|
|
3012
3008
|
}
|
|
3013
3009
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3014
3010
|
}
|
|
3015
|
-
return s.length === 0 ? this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3011
|
+
return s.length === 0 ? this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, S(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(B.MISSING_OTHER_CLAUSE, S(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3016
3012
|
}, e.prototype.tryParseDecimalInteger = function(t, i) {
|
|
3017
3013
|
var n = 1, r = this.clonePosition();
|
|
3018
3014
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3023,8 +3019,8 @@ var Wn = (
|
|
|
3023
3019
|
else
|
|
3024
3020
|
break;
|
|
3025
3021
|
}
|
|
3026
|
-
var u =
|
|
3027
|
-
return o ? (a *= n,
|
|
3022
|
+
var u = S(r, this.clonePosition());
|
|
3023
|
+
return o ? (a *= n, zn(a) ? { val: a, err: null } : this.error(i, u)) : this.error(t, u);
|
|
3028
3024
|
}, e.prototype.offset = function() {
|
|
3029
3025
|
return this.position.offset;
|
|
3030
3026
|
}, e.prototype.isEOF = function() {
|
|
@@ -3039,7 +3035,7 @@ var Wn = (
|
|
|
3039
3035
|
var t = this.position.offset;
|
|
3040
3036
|
if (t >= this.message.length)
|
|
3041
3037
|
throw Error("out of bound");
|
|
3042
|
-
var i =
|
|
3038
|
+
var i = pi(this.message, t);
|
|
3043
3039
|
if (i === void 0)
|
|
3044
3040
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3045
3041
|
return i;
|
|
@@ -3080,7 +3076,7 @@ var Wn = (
|
|
|
3080
3076
|
break;
|
|
3081
3077
|
}
|
|
3082
3078
|
}, e.prototype.bumpSpace = function() {
|
|
3083
|
-
for (; !this.isEOF() &&
|
|
3079
|
+
for (; !this.isEOF() && bi(this.char()); )
|
|
3084
3080
|
this.bump();
|
|
3085
3081
|
}, e.prototype.peek = function() {
|
|
3086
3082
|
if (this.isEOF())
|
|
@@ -3090,47 +3086,47 @@ var Wn = (
|
|
|
3090
3086
|
}, e;
|
|
3091
3087
|
}()
|
|
3092
3088
|
);
|
|
3093
|
-
function
|
|
3089
|
+
function bt(e) {
|
|
3094
3090
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3095
3091
|
}
|
|
3096
|
-
function
|
|
3097
|
-
return
|
|
3092
|
+
function Wn(e) {
|
|
3093
|
+
return bt(e) || e === 47;
|
|
3098
3094
|
}
|
|
3099
|
-
function
|
|
3095
|
+
function Zn(e) {
|
|
3100
3096
|
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;
|
|
3101
3097
|
}
|
|
3102
|
-
function
|
|
3098
|
+
function bi(e) {
|
|
3103
3099
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3104
3100
|
}
|
|
3105
|
-
function
|
|
3101
|
+
function Yn(e) {
|
|
3106
3102
|
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;
|
|
3107
3103
|
}
|
|
3108
|
-
function
|
|
3104
|
+
function gt(e) {
|
|
3109
3105
|
e.forEach(function(t) {
|
|
3110
3106
|
if (delete t.location, si(t) || ai(t))
|
|
3111
3107
|
for (var i in t.options)
|
|
3112
|
-
delete t.options[i].location,
|
|
3108
|
+
delete t.options[i].location, gt(t.options[i].value);
|
|
3113
3109
|
else
|
|
3114
|
-
ni(t) && ui(t.style) || (ri(t) || oi(t)) &&
|
|
3110
|
+
ni(t) && ui(t.style) || (ri(t) || oi(t)) && ft(t.style) ? delete t.style.location : li(t) && gt(t.children);
|
|
3115
3111
|
});
|
|
3116
3112
|
}
|
|
3117
|
-
function
|
|
3118
|
-
t === void 0 && (t = {}), t =
|
|
3119
|
-
var i = new
|
|
3113
|
+
function Jn(e, t) {
|
|
3114
|
+
t === void 0 && (t = {}), t = k({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3115
|
+
var i = new qn(e, t).parse();
|
|
3120
3116
|
if (i.err) {
|
|
3121
3117
|
var n = SyntaxError(B[i.err.kind]);
|
|
3122
3118
|
throw n.location = i.err.location, n.originalMessage = i.err.message, n;
|
|
3123
3119
|
}
|
|
3124
|
-
return t != null && t.captureLocation ||
|
|
3120
|
+
return t != null && t.captureLocation || gt(i.val), i.val;
|
|
3125
3121
|
}
|
|
3126
|
-
var
|
|
3122
|
+
var xe;
|
|
3127
3123
|
(function(e) {
|
|
3128
3124
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3129
|
-
})(
|
|
3130
|
-
var
|
|
3125
|
+
})(xe || (xe = {}));
|
|
3126
|
+
var Ye = (
|
|
3131
3127
|
/** @class */
|
|
3132
3128
|
function(e) {
|
|
3133
|
-
|
|
3129
|
+
Ze(t, e);
|
|
3134
3130
|
function t(i, n, r) {
|
|
3135
3131
|
var o = e.call(this, i) || this;
|
|
3136
3132
|
return o.code = n, o.originalMessage = r, o;
|
|
@@ -3142,44 +3138,44 @@ var Qe = (
|
|
|
3142
3138
|
), $t = (
|
|
3143
3139
|
/** @class */
|
|
3144
3140
|
function(e) {
|
|
3145
|
-
|
|
3141
|
+
Ze(t, e);
|
|
3146
3142
|
function t(i, n, r, o) {
|
|
3147
|
-
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'),
|
|
3143
|
+
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'), xe.INVALID_VALUE, o) || this;
|
|
3148
3144
|
}
|
|
3149
3145
|
return t;
|
|
3150
|
-
}(
|
|
3151
|
-
),
|
|
3146
|
+
}(Ye)
|
|
3147
|
+
), Qn = (
|
|
3152
3148
|
/** @class */
|
|
3153
3149
|
function(e) {
|
|
3154
|
-
|
|
3150
|
+
Ze(t, e);
|
|
3155
3151
|
function t(i, n, r) {
|
|
3156
|
-
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n),
|
|
3152
|
+
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n), xe.INVALID_VALUE, r) || this;
|
|
3157
3153
|
}
|
|
3158
3154
|
return t;
|
|
3159
|
-
}(
|
|
3160
|
-
),
|
|
3155
|
+
}(Ye)
|
|
3156
|
+
), Kn = (
|
|
3161
3157
|
/** @class */
|
|
3162
3158
|
function(e) {
|
|
3163
|
-
|
|
3159
|
+
Ze(t, e);
|
|
3164
3160
|
function t(i, n) {
|
|
3165
|
-
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'),
|
|
3161
|
+
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'), xe.MISSING_VALUE, n) || this;
|
|
3166
3162
|
}
|
|
3167
3163
|
return t;
|
|
3168
|
-
}(
|
|
3164
|
+
}(Ye)
|
|
3169
3165
|
), W;
|
|
3170
3166
|
(function(e) {
|
|
3171
3167
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3172
3168
|
})(W || (W = {}));
|
|
3173
|
-
function
|
|
3169
|
+
function er(e) {
|
|
3174
3170
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3175
3171
|
var n = t[t.length - 1];
|
|
3176
3172
|
return !n || n.type !== W.literal || i.type !== W.literal ? t.push(i) : n.value += i.value, t;
|
|
3177
3173
|
}, []);
|
|
3178
3174
|
}
|
|
3179
|
-
function
|
|
3175
|
+
function tr(e) {
|
|
3180
3176
|
return typeof e == "function";
|
|
3181
3177
|
}
|
|
3182
|
-
function
|
|
3178
|
+
function Fe(e, t, i, n, r, o, a) {
|
|
3183
3179
|
if (e.length === 1 && Ot(e[0]))
|
|
3184
3180
|
return [
|
|
3185
3181
|
{
|
|
@@ -3196,98 +3192,98 @@ function Ve(e, t, i, n, r, o, a) {
|
|
|
3196
3192
|
});
|
|
3197
3193
|
continue;
|
|
3198
3194
|
}
|
|
3199
|
-
if (
|
|
3195
|
+
if (Tn(c)) {
|
|
3200
3196
|
typeof o == "number" && s.push({
|
|
3201
3197
|
type: W.literal,
|
|
3202
3198
|
value: i.getNumberFormat(t).format(o)
|
|
3203
3199
|
});
|
|
3204
3200
|
continue;
|
|
3205
3201
|
}
|
|
3206
|
-
var
|
|
3207
|
-
if (!(r &&
|
|
3208
|
-
throw new
|
|
3209
|
-
var
|
|
3210
|
-
if (
|
|
3211
|
-
(!
|
|
3212
|
-
type: typeof
|
|
3213
|
-
value:
|
|
3202
|
+
var m = c.value;
|
|
3203
|
+
if (!(r && m in r))
|
|
3204
|
+
throw new Kn(m, a);
|
|
3205
|
+
var p = r[m];
|
|
3206
|
+
if (xn(c)) {
|
|
3207
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
|
|
3208
|
+
type: typeof p == "string" ? W.literal : W.object,
|
|
3209
|
+
value: p
|
|
3214
3210
|
});
|
|
3215
3211
|
continue;
|
|
3216
3212
|
}
|
|
3217
3213
|
if (ri(c)) {
|
|
3218
|
-
var d = typeof c.style == "string" ? n.date[c.style] :
|
|
3214
|
+
var d = typeof c.style == "string" ? n.date[c.style] : ft(c.style) ? c.style.parsedOptions : void 0;
|
|
3219
3215
|
s.push({
|
|
3220
3216
|
type: W.literal,
|
|
3221
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3217
|
+
value: i.getDateTimeFormat(t, d).format(p)
|
|
3222
3218
|
});
|
|
3223
3219
|
continue;
|
|
3224
3220
|
}
|
|
3225
3221
|
if (oi(c)) {
|
|
3226
|
-
var d = typeof c.style == "string" ? n.time[c.style] :
|
|
3222
|
+
var d = typeof c.style == "string" ? n.time[c.style] : ft(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3227
3223
|
s.push({
|
|
3228
3224
|
type: W.literal,
|
|
3229
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3225
|
+
value: i.getDateTimeFormat(t, d).format(p)
|
|
3230
3226
|
});
|
|
3231
3227
|
continue;
|
|
3232
3228
|
}
|
|
3233
3229
|
if (ni(c)) {
|
|
3234
3230
|
var d = typeof c.style == "string" ? n.number[c.style] : ui(c.style) ? c.style.parsedOptions : void 0;
|
|
3235
|
-
d && d.scale && (
|
|
3231
|
+
d && d.scale && (p = p * (d.scale || 1)), s.push({
|
|
3236
3232
|
type: W.literal,
|
|
3237
|
-
value: i.getNumberFormat(t, d).format(
|
|
3233
|
+
value: i.getNumberFormat(t, d).format(p)
|
|
3238
3234
|
});
|
|
3239
3235
|
continue;
|
|
3240
3236
|
}
|
|
3241
3237
|
if (li(c)) {
|
|
3242
3238
|
var E = c.children, _ = c.value, y = r[_];
|
|
3243
|
-
if (!
|
|
3244
|
-
throw new
|
|
3245
|
-
var v =
|
|
3246
|
-
return
|
|
3239
|
+
if (!tr(y))
|
|
3240
|
+
throw new Qn(_, "function", a);
|
|
3241
|
+
var v = Fe(E, t, i, n, r, o), M = y(v.map(function(A) {
|
|
3242
|
+
return A.value;
|
|
3247
3243
|
}));
|
|
3248
|
-
Array.isArray(
|
|
3244
|
+
Array.isArray(M) || (M = [M]), s.push.apply(s, M.map(function(A) {
|
|
3249
3245
|
return {
|
|
3250
|
-
type: typeof
|
|
3251
|
-
value:
|
|
3246
|
+
type: typeof A == "string" ? W.literal : W.object,
|
|
3247
|
+
value: A
|
|
3252
3248
|
};
|
|
3253
3249
|
}));
|
|
3254
3250
|
}
|
|
3255
3251
|
if (si(c)) {
|
|
3256
|
-
var w = c.options[
|
|
3252
|
+
var w = c.options[p] || c.options.other;
|
|
3257
3253
|
if (!w)
|
|
3258
|
-
throw new $t(c.value,
|
|
3259
|
-
s.push.apply(s,
|
|
3254
|
+
throw new $t(c.value, p, Object.keys(c.options), a);
|
|
3255
|
+
s.push.apply(s, Fe(w.value, t, i, n, r));
|
|
3260
3256
|
continue;
|
|
3261
3257
|
}
|
|
3262
3258
|
if (ai(c)) {
|
|
3263
|
-
var w = c.options["=".concat(
|
|
3259
|
+
var w = c.options["=".concat(p)];
|
|
3264
3260
|
if (!w) {
|
|
3265
3261
|
if (!Intl.PluralRules)
|
|
3266
|
-
throw new
|
|
3262
|
+
throw new Ye(`Intl.PluralRules is not available in this environment.
|
|
3267
3263
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3268
|
-
`,
|
|
3269
|
-
var
|
|
3270
|
-
w = c.options[
|
|
3264
|
+
`, xe.MISSING_INTL_API, a);
|
|
3265
|
+
var D = i.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
|
|
3266
|
+
w = c.options[D] || c.options.other;
|
|
3271
3267
|
}
|
|
3272
3268
|
if (!w)
|
|
3273
|
-
throw new $t(c.value,
|
|
3274
|
-
s.push.apply(s,
|
|
3269
|
+
throw new $t(c.value, p, Object.keys(c.options), a);
|
|
3270
|
+
s.push.apply(s, Fe(w.value, t, i, n, r, p - (c.offset || 0)));
|
|
3275
3271
|
continue;
|
|
3276
3272
|
}
|
|
3277
3273
|
}
|
|
3278
|
-
return
|
|
3274
|
+
return er(s);
|
|
3279
3275
|
}
|
|
3280
|
-
function
|
|
3281
|
-
return t ?
|
|
3282
|
-
return i[n] =
|
|
3276
|
+
function ir(e, t) {
|
|
3277
|
+
return t ? k(k(k({}, e || {}), t || {}), Object.keys(e).reduce(function(i, n) {
|
|
3278
|
+
return i[n] = k(k({}, e[n]), t[n] || {}), i;
|
|
3283
3279
|
}, {})) : e;
|
|
3284
3280
|
}
|
|
3285
|
-
function
|
|
3281
|
+
function nr(e, t) {
|
|
3286
3282
|
return t ? Object.keys(e).reduce(function(i, n) {
|
|
3287
|
-
return i[n] =
|
|
3288
|
-
},
|
|
3283
|
+
return i[n] = ir(e[n], t[n]), i;
|
|
3284
|
+
}, k({}, e)) : e;
|
|
3289
3285
|
}
|
|
3290
|
-
function
|
|
3286
|
+
function at(e) {
|
|
3291
3287
|
return {
|
|
3292
3288
|
create: function() {
|
|
3293
3289
|
return {
|
|
@@ -3301,39 +3297,39 @@ function ut(e) {
|
|
|
3301
3297
|
}
|
|
3302
3298
|
};
|
|
3303
3299
|
}
|
|
3304
|
-
function
|
|
3300
|
+
function rr(e) {
|
|
3305
3301
|
return e === void 0 && (e = {
|
|
3306
3302
|
number: {},
|
|
3307
3303
|
dateTime: {},
|
|
3308
3304
|
pluralRules: {}
|
|
3309
3305
|
}), {
|
|
3310
|
-
getNumberFormat:
|
|
3306
|
+
getNumberFormat: rt(function() {
|
|
3311
3307
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3312
3308
|
i[n] = arguments[n];
|
|
3313
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3309
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, nt([void 0], i, !1)))();
|
|
3314
3310
|
}, {
|
|
3315
|
-
cache:
|
|
3316
|
-
strategy:
|
|
3311
|
+
cache: at(e.number),
|
|
3312
|
+
strategy: ot.variadic
|
|
3317
3313
|
}),
|
|
3318
|
-
getDateTimeFormat:
|
|
3314
|
+
getDateTimeFormat: rt(function() {
|
|
3319
3315
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3320
3316
|
i[n] = arguments[n];
|
|
3321
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3317
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, nt([void 0], i, !1)))();
|
|
3322
3318
|
}, {
|
|
3323
|
-
cache:
|
|
3324
|
-
strategy:
|
|
3319
|
+
cache: at(e.dateTime),
|
|
3320
|
+
strategy: ot.variadic
|
|
3325
3321
|
}),
|
|
3326
|
-
getPluralRules:
|
|
3322
|
+
getPluralRules: rt(function() {
|
|
3327
3323
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3328
3324
|
i[n] = arguments[n];
|
|
3329
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3325
|
+
return new ((t = Intl.PluralRules).bind.apply(t, nt([void 0], i, !1)))();
|
|
3330
3326
|
}, {
|
|
3331
|
-
cache:
|
|
3332
|
-
strategy:
|
|
3327
|
+
cache: at(e.pluralRules),
|
|
3328
|
+
strategy: ot.variadic
|
|
3333
3329
|
})
|
|
3334
3330
|
};
|
|
3335
3331
|
}
|
|
3336
|
-
var
|
|
3332
|
+
var or = (
|
|
3337
3333
|
/** @class */
|
|
3338
3334
|
function() {
|
|
3339
3335
|
function e(t, i, n, r) {
|
|
@@ -3347,12 +3343,12 @@ var sr = (
|
|
|
3347
3343
|
var l = o.formatToParts(u);
|
|
3348
3344
|
if (l.length === 1)
|
|
3349
3345
|
return l[0].value;
|
|
3350
|
-
var c = l.reduce(function(
|
|
3351
|
-
return !
|
|
3346
|
+
var c = l.reduce(function(m, p) {
|
|
3347
|
+
return !m.length || p.type !== W.literal || typeof m[m.length - 1] != "string" ? m.push(p.value) : m[m.length - 1] += p.value, m;
|
|
3352
3348
|
}, []);
|
|
3353
3349
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3354
3350
|
}, this.formatToParts = function(u) {
|
|
3355
|
-
return
|
|
3351
|
+
return Fe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3356
3352
|
}, this.resolvedOptions = function() {
|
|
3357
3353
|
var u;
|
|
3358
3354
|
return {
|
|
@@ -3366,12 +3362,12 @@ var sr = (
|
|
|
3366
3362
|
var a = r || {};
|
|
3367
3363
|
a.formatters;
|
|
3368
3364
|
var s = dn(a, ["formatters"]);
|
|
3369
|
-
this.ast = e.__parse(t,
|
|
3365
|
+
this.ast = e.__parse(t, k(k({}, s), { locale: this.resolvedLocale }));
|
|
3370
3366
|
} else
|
|
3371
3367
|
this.ast = t;
|
|
3372
3368
|
if (!Array.isArray(this.ast))
|
|
3373
3369
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3374
|
-
this.formats =
|
|
3370
|
+
this.formats = nr(e.formats, n), this.formatters = r && r.formatters || rr(this.formatterCache);
|
|
3375
3371
|
}
|
|
3376
3372
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3377
3373
|
get: function() {
|
|
@@ -3384,7 +3380,7 @@ var sr = (
|
|
|
3384
3380
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3385
3381
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3386
3382
|
}
|
|
3387
|
-
}, e.__parse =
|
|
3383
|
+
}, e.__parse = Jn, e.formats = {
|
|
3388
3384
|
number: {
|
|
3389
3385
|
integer: {
|
|
3390
3386
|
maximumFractionDigits: 0
|
|
@@ -3445,7 +3441,7 @@ var sr = (
|
|
|
3445
3441
|
}, e;
|
|
3446
3442
|
}()
|
|
3447
3443
|
);
|
|
3448
|
-
function
|
|
3444
|
+
function sr(e, t) {
|
|
3449
3445
|
if (t == null)
|
|
3450
3446
|
return;
|
|
3451
3447
|
if (t in e)
|
|
@@ -3466,36 +3462,36 @@ function ar(e, t) {
|
|
|
3466
3462
|
n = void 0;
|
|
3467
3463
|
return n;
|
|
3468
3464
|
}
|
|
3469
|
-
const
|
|
3465
|
+
const le = {}, ar = (e, t, i) => i && (t in le || (le[t] = {}), e in le[t] || (le[t][e] = i), i), gi = (e, t) => {
|
|
3470
3466
|
if (t == null)
|
|
3471
3467
|
return;
|
|
3472
|
-
if (t in
|
|
3473
|
-
return
|
|
3474
|
-
const i =
|
|
3468
|
+
if (t in le && e in le[t])
|
|
3469
|
+
return le[t][e];
|
|
3470
|
+
const i = Je(t);
|
|
3475
3471
|
for (let n = 0; n < i.length; n++) {
|
|
3476
|
-
const r = i[n], o =
|
|
3472
|
+
const r = i[n], o = ur(r, e);
|
|
3477
3473
|
if (o)
|
|
3478
|
-
return
|
|
3474
|
+
return ar(e, t, o);
|
|
3479
3475
|
}
|
|
3480
3476
|
};
|
|
3481
3477
|
let Tt;
|
|
3482
|
-
const
|
|
3483
|
-
function
|
|
3478
|
+
const De = We({});
|
|
3479
|
+
function lr(e) {
|
|
3484
3480
|
return Tt[e] || null;
|
|
3485
3481
|
}
|
|
3486
3482
|
function yi(e) {
|
|
3487
3483
|
return e in Tt;
|
|
3488
3484
|
}
|
|
3489
|
-
function
|
|
3485
|
+
function ur(e, t) {
|
|
3490
3486
|
if (!yi(e))
|
|
3491
3487
|
return null;
|
|
3492
|
-
const i =
|
|
3493
|
-
return
|
|
3488
|
+
const i = lr(e);
|
|
3489
|
+
return sr(i, t);
|
|
3494
3490
|
}
|
|
3495
|
-
function
|
|
3491
|
+
function cr(e) {
|
|
3496
3492
|
if (e == null)
|
|
3497
3493
|
return;
|
|
3498
|
-
const t =
|
|
3494
|
+
const t = Je(e);
|
|
3499
3495
|
for (let i = 0; i < t.length; i++) {
|
|
3500
3496
|
const n = t[i];
|
|
3501
3497
|
if (yi(n))
|
|
@@ -3503,28 +3499,28 @@ function hr(e) {
|
|
|
3503
3499
|
}
|
|
3504
3500
|
}
|
|
3505
3501
|
function vi(e, ...t) {
|
|
3506
|
-
delete
|
|
3502
|
+
delete le[e], De.update((i) => (i[e] = pn.all([i[e] || {}, ...t]), i));
|
|
3507
3503
|
}
|
|
3508
|
-
|
|
3509
|
-
[
|
|
3504
|
+
Pe(
|
|
3505
|
+
[De],
|
|
3510
3506
|
([e]) => Object.keys(e)
|
|
3511
3507
|
);
|
|
3512
|
-
|
|
3513
|
-
const
|
|
3514
|
-
function
|
|
3515
|
-
|
|
3508
|
+
De.subscribe((e) => Tt = e);
|
|
3509
|
+
const Ve = {};
|
|
3510
|
+
function hr(e, t) {
|
|
3511
|
+
Ve[e].delete(t), Ve[e].size === 0 && delete Ve[e];
|
|
3516
3512
|
}
|
|
3517
3513
|
function Ei(e) {
|
|
3518
|
-
return
|
|
3514
|
+
return Ve[e];
|
|
3519
3515
|
}
|
|
3520
|
-
function
|
|
3521
|
-
return
|
|
3516
|
+
function fr(e) {
|
|
3517
|
+
return Je(e).map((t) => {
|
|
3522
3518
|
const i = Ei(t);
|
|
3523
3519
|
return [t, i ? [...i] : []];
|
|
3524
3520
|
}).filter(([, t]) => t.length > 0);
|
|
3525
3521
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return e == null ? !1 :
|
|
3522
|
+
function yt(e) {
|
|
3523
|
+
return e == null ? !1 : Je(e).some(
|
|
3528
3524
|
(t) => {
|
|
3529
3525
|
var i;
|
|
3530
3526
|
return (i = Ei(t)) == null ? void 0 : i.size;
|
|
@@ -3533,25 +3529,25 @@ function Et(e) {
|
|
|
3533
3529
|
}
|
|
3534
3530
|
function mr(e, t) {
|
|
3535
3531
|
return Promise.all(
|
|
3536
|
-
t.map((n) => (
|
|
3532
|
+
t.map((n) => (hr(e, n), n().then((r) => r.default || r)))
|
|
3537
3533
|
).then((n) => vi(e, ...n));
|
|
3538
3534
|
}
|
|
3539
|
-
const
|
|
3535
|
+
const ke = {};
|
|
3540
3536
|
function _i(e) {
|
|
3541
|
-
if (!
|
|
3542
|
-
return e in
|
|
3543
|
-
const t =
|
|
3544
|
-
return
|
|
3537
|
+
if (!yt(e))
|
|
3538
|
+
return e in ke ? ke[e] : Promise.resolve();
|
|
3539
|
+
const t = fr(e);
|
|
3540
|
+
return ke[e] = Promise.all(
|
|
3545
3541
|
t.map(
|
|
3546
3542
|
([i, n]) => mr(i, n)
|
|
3547
3543
|
)
|
|
3548
3544
|
).then(() => {
|
|
3549
|
-
if (
|
|
3545
|
+
if (yt(e))
|
|
3550
3546
|
return _i(e);
|
|
3551
|
-
delete
|
|
3552
|
-
}),
|
|
3547
|
+
delete ke[e];
|
|
3548
|
+
}), ke[e];
|
|
3553
3549
|
}
|
|
3554
|
-
const
|
|
3550
|
+
const pr = {
|
|
3555
3551
|
number: {
|
|
3556
3552
|
scientific: { notation: "scientific" },
|
|
3557
3553
|
engineering: { notation: "engineering" },
|
|
@@ -3580,176 +3576,176 @@ const dr = {
|
|
|
3580
3576
|
timeZoneName: "short"
|
|
3581
3577
|
}
|
|
3582
3578
|
}
|
|
3583
|
-
},
|
|
3579
|
+
}, dr = {
|
|
3584
3580
|
fallbackLocale: null,
|
|
3585
3581
|
loadingDelay: 200,
|
|
3586
|
-
formats:
|
|
3582
|
+
formats: pr,
|
|
3587
3583
|
warnOnMissingMessages: !0,
|
|
3588
3584
|
handleMissingMessage: void 0,
|
|
3589
3585
|
ignoreTag: !0
|
|
3590
|
-
}, br =
|
|
3591
|
-
function
|
|
3586
|
+
}, br = dr;
|
|
3587
|
+
function Te() {
|
|
3592
3588
|
return br;
|
|
3593
3589
|
}
|
|
3594
|
-
const
|
|
3595
|
-
var
|
|
3590
|
+
const lt = We(!1);
|
|
3591
|
+
var gr = Object.defineProperty, yr = Object.defineProperties, vr = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, Er = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Ft = (e, t, i) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, xr = (e, t) => {
|
|
3596
3592
|
for (var i in t || (t = {}))
|
|
3597
|
-
|
|
3593
|
+
Er.call(t, i) && Ft(e, i, t[i]);
|
|
3598
3594
|
if (zt)
|
|
3599
3595
|
for (var i of zt(t))
|
|
3600
|
-
|
|
3596
|
+
_r.call(t, i) && Ft(e, i, t[i]);
|
|
3601
3597
|
return e;
|
|
3602
|
-
},
|
|
3603
|
-
let
|
|
3604
|
-
const
|
|
3598
|
+
}, Tr = (e, t) => yr(e, vr(t));
|
|
3599
|
+
let vt;
|
|
3600
|
+
const Xe = We(null);
|
|
3605
3601
|
function Vt(e) {
|
|
3606
3602
|
return e.split("-").map((t, i, n) => n.slice(0, i + 1).join("-")).reverse();
|
|
3607
3603
|
}
|
|
3608
|
-
function
|
|
3604
|
+
function Je(e, t = Te().fallbackLocale) {
|
|
3609
3605
|
const i = Vt(e);
|
|
3610
3606
|
return t ? [.../* @__PURE__ */ new Set([...i, ...Vt(t)])] : i;
|
|
3611
3607
|
}
|
|
3612
|
-
function
|
|
3613
|
-
return
|
|
3608
|
+
function he() {
|
|
3609
|
+
return vt != null ? vt : void 0;
|
|
3614
3610
|
}
|
|
3615
|
-
|
|
3616
|
-
|
|
3611
|
+
Xe.subscribe((e) => {
|
|
3612
|
+
vt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3617
3613
|
});
|
|
3618
|
-
const
|
|
3619
|
-
if (e &&
|
|
3620
|
-
const { loadingDelay: t } =
|
|
3614
|
+
const Pr = (e) => {
|
|
3615
|
+
if (e && cr(e) && yt(e)) {
|
|
3616
|
+
const { loadingDelay: t } = Te();
|
|
3621
3617
|
let i;
|
|
3622
|
-
return typeof window != "undefined" &&
|
|
3623
|
-
() =>
|
|
3618
|
+
return typeof window != "undefined" && he() != null && t ? i = window.setTimeout(
|
|
3619
|
+
() => lt.set(!0),
|
|
3624
3620
|
t
|
|
3625
|
-
) :
|
|
3626
|
-
|
|
3621
|
+
) : lt.set(!0), _i(e).then(() => {
|
|
3622
|
+
Xe.set(e);
|
|
3627
3623
|
}).finally(() => {
|
|
3628
|
-
clearTimeout(i),
|
|
3624
|
+
clearTimeout(i), lt.set(!1);
|
|
3629
3625
|
});
|
|
3630
3626
|
}
|
|
3631
|
-
return
|
|
3632
|
-
},
|
|
3633
|
-
set:
|
|
3634
|
-
}),
|
|
3627
|
+
return Xe.set(e);
|
|
3628
|
+
}, we = Tr(xr({}, Xe), {
|
|
3629
|
+
set: Pr
|
|
3630
|
+
}), Qe = (e) => {
|
|
3635
3631
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3636
3632
|
return (n) => {
|
|
3637
3633
|
const r = JSON.stringify(n);
|
|
3638
3634
|
return r in t ? t[r] : t[r] = e(n);
|
|
3639
3635
|
};
|
|
3640
3636
|
};
|
|
3641
|
-
var
|
|
3637
|
+
var wr = Object.defineProperty, qe = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, Xt = (e, t, i) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, Pt = (e, t) => {
|
|
3642
3638
|
for (var i in t || (t = {}))
|
|
3643
3639
|
xi.call(t, i) && Xt(e, i, t[i]);
|
|
3644
|
-
if (
|
|
3645
|
-
for (var i of
|
|
3640
|
+
if (qe)
|
|
3641
|
+
for (var i of qe(t))
|
|
3646
3642
|
Ti.call(t, i) && Xt(e, i, t[i]);
|
|
3647
3643
|
return e;
|
|
3648
|
-
},
|
|
3644
|
+
}, Be = (e, t) => {
|
|
3649
3645
|
var i = {};
|
|
3650
3646
|
for (var n in e)
|
|
3651
3647
|
xi.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
3652
|
-
if (e != null &&
|
|
3653
|
-
for (var n of
|
|
3648
|
+
if (e != null && qe)
|
|
3649
|
+
for (var n of qe(e))
|
|
3654
3650
|
t.indexOf(n) < 0 && Ti.call(e, n) && (i[n] = e[n]);
|
|
3655
3651
|
return i;
|
|
3656
3652
|
};
|
|
3657
|
-
const
|
|
3658
|
-
const { formats: i } =
|
|
3653
|
+
const Me = (e, t) => {
|
|
3654
|
+
const { formats: i } = Te();
|
|
3659
3655
|
if (e in i && t in i[e])
|
|
3660
3656
|
return i[e][t];
|
|
3661
3657
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3662
|
-
},
|
|
3658
|
+
}, Br = Qe(
|
|
3663
3659
|
(e) => {
|
|
3664
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3660
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3665
3661
|
if (i == null)
|
|
3666
3662
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3667
|
-
return n && (r =
|
|
3663
|
+
return n && (r = Me("number", n)), new Intl.NumberFormat(i, r);
|
|
3668
3664
|
}
|
|
3669
|
-
),
|
|
3665
|
+
), Lr = Qe(
|
|
3670
3666
|
(e) => {
|
|
3671
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3667
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3672
3668
|
if (i == null)
|
|
3673
3669
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3674
|
-
return n ? r =
|
|
3670
|
+
return n ? r = Me("date", n) : Object.keys(r).length === 0 && (r = Me("date", "short")), new Intl.DateTimeFormat(i, r);
|
|
3675
3671
|
}
|
|
3676
|
-
), Ar =
|
|
3672
|
+
), Ar = Qe(
|
|
3677
3673
|
(e) => {
|
|
3678
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3674
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3679
3675
|
if (i == null)
|
|
3680
3676
|
throw new Error(
|
|
3681
3677
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3682
3678
|
);
|
|
3683
|
-
return n ? r =
|
|
3679
|
+
return n ? r = Me("time", n) : Object.keys(r).length === 0 && (r = Me("time", "short")), new Intl.DateTimeFormat(i, r);
|
|
3684
3680
|
}
|
|
3685
|
-
),
|
|
3681
|
+
), Sr = (e = {}) => {
|
|
3686
3682
|
var t = e, {
|
|
3687
|
-
locale: i =
|
|
3688
|
-
} = t, n =
|
|
3683
|
+
locale: i = he()
|
|
3684
|
+
} = t, n = Be(t, [
|
|
3689
3685
|
"locale"
|
|
3690
3686
|
]);
|
|
3691
|
-
return
|
|
3692
|
-
},
|
|
3687
|
+
return Br(Pt({ locale: i }, n));
|
|
3688
|
+
}, Ir = (e = {}) => {
|
|
3693
3689
|
var t = e, {
|
|
3694
|
-
locale: i =
|
|
3695
|
-
} = t, n =
|
|
3690
|
+
locale: i = he()
|
|
3691
|
+
} = t, n = Be(t, [
|
|
3696
3692
|
"locale"
|
|
3697
3693
|
]);
|
|
3698
|
-
return
|
|
3699
|
-
},
|
|
3694
|
+
return Lr(Pt({ locale: i }, n));
|
|
3695
|
+
}, kr = (e = {}) => {
|
|
3700
3696
|
var t = e, {
|
|
3701
|
-
locale: i =
|
|
3702
|
-
} = t, n =
|
|
3697
|
+
locale: i = he()
|
|
3698
|
+
} = t, n = Be(t, [
|
|
3703
3699
|
"locale"
|
|
3704
3700
|
]);
|
|
3705
3701
|
return Ar(Pt({ locale: i }, n));
|
|
3706
|
-
},
|
|
3702
|
+
}, Hr = Qe(
|
|
3707
3703
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3708
|
-
(e, t =
|
|
3709
|
-
ignoreTag:
|
|
3704
|
+
(e, t = he()) => new or(e, t, Te().formats, {
|
|
3705
|
+
ignoreTag: Te().ignoreTag
|
|
3710
3706
|
})
|
|
3711
|
-
),
|
|
3707
|
+
), Cr = (e, t = {}) => {
|
|
3712
3708
|
var i, n, r, o;
|
|
3713
3709
|
let a = t;
|
|
3714
3710
|
typeof e == "object" && (a = e, e = a.id);
|
|
3715
3711
|
const {
|
|
3716
3712
|
values: s,
|
|
3717
|
-
locale: u =
|
|
3713
|
+
locale: u = he(),
|
|
3718
3714
|
default: l
|
|
3719
3715
|
} = a;
|
|
3720
3716
|
if (u == null)
|
|
3721
3717
|
throw new Error(
|
|
3722
3718
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3723
3719
|
);
|
|
3724
|
-
let c =
|
|
3720
|
+
let c = gi(e, u);
|
|
3725
3721
|
if (!c)
|
|
3726
|
-
c = (o = (r = (n = (i =
|
|
3722
|
+
c = (o = (r = (n = (i = Te()).handleMissingMessage) == null ? void 0 : n.call(i, { locale: u, id: e, defaultValue: l })) != null ? r : l) != null ? o : e;
|
|
3727
3723
|
else if (typeof c != "string")
|
|
3728
3724
|
return console.warn(
|
|
3729
3725
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3730
3726
|
), c;
|
|
3731
3727
|
if (!s)
|
|
3732
3728
|
return c;
|
|
3733
|
-
let
|
|
3729
|
+
let m = c;
|
|
3734
3730
|
try {
|
|
3735
|
-
|
|
3736
|
-
} catch (
|
|
3737
|
-
|
|
3731
|
+
m = Hr(c, u).format(s);
|
|
3732
|
+
} catch (p) {
|
|
3733
|
+
p instanceof Error && console.warn(
|
|
3738
3734
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3739
|
-
|
|
3735
|
+
p.message
|
|
3740
3736
|
);
|
|
3741
3737
|
}
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3738
|
+
return m;
|
|
3739
|
+
}, Nr = (e, t) => kr(t).format(e), Or = (e, t) => Ir(t).format(e), Mr = (e, t) => Sr(t).format(e), Dr = (e, t = he()) => gi(e, t), Rr = Pe([we, De], () => Cr);
|
|
3740
|
+
Pe([we], () => Nr);
|
|
3741
|
+
Pe([we], () => Or);
|
|
3742
|
+
Pe([we], () => Mr);
|
|
3743
|
+
Pe([we, De], () => Dr);
|
|
3748
3744
|
function qt(e, t) {
|
|
3749
3745
|
vi(e, t);
|
|
3750
3746
|
}
|
|
3751
|
-
function
|
|
3752
|
-
|
|
3747
|
+
function Ur(e) {
|
|
3748
|
+
we.set(e);
|
|
3753
3749
|
}
|
|
3754
3750
|
const Wt = {
|
|
3755
3751
|
en: {
|
|
@@ -4012,13 +4008,13 @@ const Wt = {
|
|
|
4012
4008
|
kyc2: "For the selected limit, we require documents that show your financial situation. Please upload your last payslip as well as a current bank statement, that shows the account balance as well as that you received the salary payment."
|
|
4013
4009
|
}
|
|
4014
4010
|
};
|
|
4015
|
-
function
|
|
4011
|
+
function jr(e, t) {
|
|
4016
4012
|
if (e) {
|
|
4017
4013
|
const i = document.createElement("style");
|
|
4018
4014
|
i.innerHTML = t, e.appendChild(i);
|
|
4019
4015
|
}
|
|
4020
4016
|
}
|
|
4021
|
-
function
|
|
4017
|
+
function Gr(e, t) {
|
|
4022
4018
|
if (!e || !t)
|
|
4023
4019
|
return;
|
|
4024
4020
|
const i = new URL(t);
|
|
@@ -4029,7 +4025,7 @@ function $r(e, t) {
|
|
|
4029
4025
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4030
4026
|
});
|
|
4031
4027
|
}
|
|
4032
|
-
function
|
|
4028
|
+
function $r(e, t, i) {
|
|
4033
4029
|
if (window.emMessageBus) {
|
|
4034
4030
|
const n = document.createElement("style");
|
|
4035
4031
|
window.emMessageBus.subscribe(t, (r) => {
|
|
@@ -4037,42 +4033,42 @@ function zr(e, t, i) {
|
|
|
4037
4033
|
});
|
|
4038
4034
|
}
|
|
4039
4035
|
}
|
|
4040
|
-
function
|
|
4036
|
+
function zr(e) {
|
|
4041
4037
|
ki(e, "svelte-1a4l86f", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}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-popup-2{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:rgb(122, 195, 23)}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-decoration:underline;background-color:rgba(0, 0, 0, 0)}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:320px;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:var(--emw--color-white, #FFFFFF);border:0;padding:0;margin-top:-10px;color:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B)}.Hidden{display:none}.Extended{transform:rotate(180deg)}');
|
|
4042
4038
|
}
|
|
4043
|
-
function
|
|
4039
|
+
function Fr(e) {
|
|
4044
4040
|
let t;
|
|
4045
4041
|
function i(o, a) {
|
|
4046
4042
|
if (
|
|
4047
4043
|
/*popupState*/
|
|
4048
4044
|
o[10] === "initial"
|
|
4049
4045
|
)
|
|
4050
|
-
return
|
|
4046
|
+
return Yr;
|
|
4051
4047
|
if (
|
|
4052
4048
|
/*popupState*/
|
|
4053
4049
|
o[10] === "successful"
|
|
4054
4050
|
)
|
|
4055
|
-
return
|
|
4051
|
+
return Zr;
|
|
4056
4052
|
if (
|
|
4057
4053
|
/*popupState*/
|
|
4058
4054
|
o[10] === "KYC"
|
|
4059
4055
|
)
|
|
4060
|
-
return
|
|
4056
|
+
return Wr;
|
|
4061
4057
|
if (
|
|
4062
4058
|
/*popupState*/
|
|
4063
4059
|
o[10] === "KYC2"
|
|
4064
4060
|
)
|
|
4065
|
-
return
|
|
4061
|
+
return qr;
|
|
4066
4062
|
if (
|
|
4067
4063
|
/*popupState*/
|
|
4068
4064
|
o[10] === "error"
|
|
4069
4065
|
)
|
|
4070
|
-
return
|
|
4066
|
+
return Xr;
|
|
4071
4067
|
}
|
|
4072
4068
|
let n = i(e), r = n && n(e);
|
|
4073
4069
|
return {
|
|
4074
4070
|
c() {
|
|
4075
|
-
t =
|
|
4071
|
+
t = g("div"), r && r.c(), h(t, "class", "InitialWrapper");
|
|
4076
4072
|
},
|
|
4077
4073
|
m(o, a) {
|
|
4078
4074
|
T(o, t, a), r && r.m(t, null);
|
|
@@ -4085,14 +4081,14 @@ function Vr(e) {
|
|
|
4085
4081
|
}
|
|
4086
4082
|
};
|
|
4087
4083
|
}
|
|
4088
|
-
function
|
|
4084
|
+
function Vr(e) {
|
|
4089
4085
|
let t, i = (
|
|
4090
4086
|
/*$_*/
|
|
4091
4087
|
e[12]("loading") + ""
|
|
4092
4088
|
), n;
|
|
4093
4089
|
return {
|
|
4094
4090
|
c() {
|
|
4095
|
-
t =
|
|
4091
|
+
t = g("p"), n = L(i);
|
|
4096
4092
|
},
|
|
4097
4093
|
m(r, o) {
|
|
4098
4094
|
T(r, t, o), f(t, n);
|
|
@@ -4100,31 +4096,31 @@ function Xr(e) {
|
|
|
4100
4096
|
p(r, o) {
|
|
4101
4097
|
o[0] & /*$_*/
|
|
4102
4098
|
4096 && i !== (i = /*$_*/
|
|
4103
|
-
r[12]("loading") + "") &&
|
|
4099
|
+
r[12]("loading") + "") && H(n, i);
|
|
4104
4100
|
},
|
|
4105
4101
|
d(r) {
|
|
4106
4102
|
r && x(t);
|
|
4107
4103
|
}
|
|
4108
4104
|
};
|
|
4109
4105
|
}
|
|
4110
|
-
function
|
|
4106
|
+
function Xr(e) {
|
|
4111
4107
|
let t, i = (
|
|
4112
4108
|
/*$_*/
|
|
4113
4109
|
e[12]("depositError") + ""
|
|
4114
4110
|
), n, r, o, a, s, u = (
|
|
4115
4111
|
/*$_*/
|
|
4116
4112
|
e[12]("errorDescription") + ""
|
|
4117
|
-
), l, c,
|
|
4113
|
+
), l, c, m, p = (
|
|
4118
4114
|
/*$_*/
|
|
4119
4115
|
e[12]("closeButton") + ""
|
|
4120
4116
|
), d, E, _;
|
|
4121
4117
|
return {
|
|
4122
4118
|
c() {
|
|
4123
|
-
t =
|
|
4119
|
+
t = g("p"), n = L(i), r = O(), o = g("div"), o.innerHTML = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve"><metadata>Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata><g><path d="M500,100.9c220,0,399.1,179,399.1,399.1S720.1,899.1,500,899.1c-220.1,0-399.1-179-399.1-399.1C100.9,279.9,279.9,100.9,500,100.9 M500,10C229.4,10,10,229.4,10,500c0,270.6,219.4,490,490,490c270.6,0,490-219.4,490-490C990,229.4,770.6,10,500,10L500,10z"></path><path d="M658.7,734.5L272.2,348l75-75l386.4,386.4L658.7,734.5z"></path><path d="M347.2,734.5l-75-75L658.7,273l75,75L347.2,734.5z"></path></g></svg>', a = O(), s = g("p"), l = L(u), c = O(), m = g("button"), d = L(p), h(t, "class", "Title"), h(o, "class", "ResultIconWrapper"), h(s, "class", "Description CenterAlign"), h(m, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4124
4120
|
},
|
|
4125
4121
|
m(y, v) {
|
|
4126
|
-
T(y, t, v), f(t, n), T(y, r, v), T(y, o, v), T(y, a, v), T(y, s, v), f(s, l), T(y, c, v), T(y,
|
|
4127
|
-
|
|
4122
|
+
T(y, t, v), f(t, n), T(y, r, v), T(y, o, v), T(y, a, v), T(y, s, v), f(s, l), T(y, c, v), T(y, m, v), f(m, d), E || (_ = Z(
|
|
4123
|
+
m,
|
|
4128
4124
|
"click",
|
|
4129
4125
|
/*click_handler_10*/
|
|
4130
4126
|
e[37]
|
|
@@ -4133,43 +4129,43 @@ function qr(e) {
|
|
|
4133
4129
|
p(y, v) {
|
|
4134
4130
|
v[0] & /*$_*/
|
|
4135
4131
|
4096 && i !== (i = /*$_*/
|
|
4136
|
-
y[12]("depositError") + "") &&
|
|
4132
|
+
y[12]("depositError") + "") && H(n, i), v[0] & /*$_*/
|
|
4137
4133
|
4096 && u !== (u = /*$_*/
|
|
4138
|
-
y[12]("errorDescription") + "") &&
|
|
4139
|
-
4096 &&
|
|
4140
|
-
y[12]("closeButton") + "") &&
|
|
4134
|
+
y[12]("errorDescription") + "") && H(l, u), v[0] & /*$_*/
|
|
4135
|
+
4096 && p !== (p = /*$_*/
|
|
4136
|
+
y[12]("closeButton") + "") && H(d, p);
|
|
4141
4137
|
},
|
|
4142
4138
|
d(y) {
|
|
4143
|
-
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(
|
|
4139
|
+
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(m)), E = !1, _();
|
|
4144
4140
|
}
|
|
4145
4141
|
};
|
|
4146
4142
|
}
|
|
4147
|
-
function
|
|
4143
|
+
function qr(e) {
|
|
4148
4144
|
let t, i = (
|
|
4149
4145
|
/*$_*/
|
|
4150
4146
|
e[12]("docsRequired") + ""
|
|
4151
|
-
), n, r, o, a, s, u, l, c,
|
|
4147
|
+
), n, r, o, a, s, u, l, c, m, p = (
|
|
4152
4148
|
/*$_*/
|
|
4153
4149
|
e[12]("docsRequired") + ""
|
|
4154
4150
|
), d, E, _, y = (
|
|
4155
4151
|
/*$_*/
|
|
4156
4152
|
e[12]("kyc2") + ""
|
|
4157
|
-
), v,
|
|
4153
|
+
), v, M, w, D = (
|
|
4158
4154
|
/*$_*/
|
|
4159
4155
|
e[12]("kycButton") + ""
|
|
4160
|
-
),
|
|
4156
|
+
), A, R, F, C = (
|
|
4161
4157
|
/*$_*/
|
|
4162
4158
|
e[12]("closeButton") + ""
|
|
4163
|
-
),
|
|
4159
|
+
), U, $, X;
|
|
4164
4160
|
return {
|
|
4165
4161
|
c() {
|
|
4166
|
-
t =
|
|
4162
|
+
t = g("p"), n = L(i), r = O(), o = g("div"), a = g("div"), s = Y("svg"), u = Y("g"), l = Y("path"), c = O(), m = g("p"), d = L(p), E = O(), _ = g("p"), v = L(y), M = O(), w = g("button"), A = L(D), R = O(), F = g("button"), U = L(C), h(t, "class", "Title"), h(l, "id", "XMLID_6_"), h(l, "d", `M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360
|
|
4167
4163
|
c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55
|
|
4168
4164
|
c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1
|
|
4169
|
-
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"),
|
|
4165
|
+
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"), He(s, "enable-background", "new 0 0 512 512"), h(s, "xml:space", "preserve"), h(a, "class", "ResultIconWrapper"), h(_, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(w, "class", "KycButton PrimaryButtonStyle"), h(F, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4170
4166
|
},
|
|
4171
|
-
m(P,
|
|
4172
|
-
T(P, t,
|
|
4167
|
+
m(P, j) {
|
|
4168
|
+
T(P, t, j), f(t, n), T(P, r, j), T(P, o, j), f(o, a), f(a, s), f(s, u), f(u, l), f(a, c), f(a, m), f(m, d), f(o, E), f(o, _), f(_, v), T(P, M, j), T(P, w, j), f(w, A), T(P, R, j), T(P, F, j), f(F, U), $ || (X = [
|
|
4173
4169
|
Z(
|
|
4174
4170
|
w,
|
|
4175
4171
|
"click",
|
|
@@ -4177,68 +4173,68 @@ function Wr(e) {
|
|
|
4177
4173
|
e[35]
|
|
4178
4174
|
),
|
|
4179
4175
|
Z(
|
|
4180
|
-
|
|
4176
|
+
F,
|
|
4181
4177
|
"click",
|
|
4182
4178
|
/*click_handler_9*/
|
|
4183
4179
|
e[36]
|
|
4184
4180
|
)
|
|
4185
|
-
],
|
|
4181
|
+
], $ = !0);
|
|
4186
4182
|
},
|
|
4187
|
-
p(P,
|
|
4188
|
-
|
|
4183
|
+
p(P, j) {
|
|
4184
|
+
j[0] & /*$_*/
|
|
4189
4185
|
4096 && i !== (i = /*$_*/
|
|
4190
|
-
P[12]("docsRequired") + "") &&
|
|
4191
|
-
4096 &&
|
|
4192
|
-
P[12]("docsRequired") + "") &&
|
|
4186
|
+
P[12]("docsRequired") + "") && H(n, i), j[0] & /*$_*/
|
|
4187
|
+
4096 && p !== (p = /*$_*/
|
|
4188
|
+
P[12]("docsRequired") + "") && H(d, p), j[0] & /*$_*/
|
|
4193
4189
|
4096 && y !== (y = /*$_*/
|
|
4194
|
-
P[12]("kyc2") + "") &&
|
|
4195
|
-
4096 &&
|
|
4196
|
-
P[12]("kycButton") + "") &&
|
|
4197
|
-
4096 &&
|
|
4198
|
-
P[12]("closeButton") + "") &&
|
|
4190
|
+
P[12]("kyc2") + "") && H(v, y), j[0] & /*$_*/
|
|
4191
|
+
4096 && D !== (D = /*$_*/
|
|
4192
|
+
P[12]("kycButton") + "") && H(A, D), j[0] & /*$_*/
|
|
4193
|
+
4096 && C !== (C = /*$_*/
|
|
4194
|
+
P[12]("closeButton") + "") && H(U, C);
|
|
4199
4195
|
},
|
|
4200
4196
|
d(P) {
|
|
4201
|
-
P && (x(t), x(r), x(o), x(
|
|
4197
|
+
P && (x(t), x(r), x(o), x(M), x(w), x(R), x(F)), $ = !1, ue(X);
|
|
4202
4198
|
}
|
|
4203
4199
|
};
|
|
4204
4200
|
}
|
|
4205
|
-
function
|
|
4201
|
+
function Wr(e) {
|
|
4206
4202
|
let t, i = (
|
|
4207
4203
|
/*$_*/
|
|
4208
4204
|
e[12]("depositLimit") + ""
|
|
4209
|
-
), n, r, o, a, s, u, l, c,
|
|
4205
|
+
), n, r, o, a, s, u, l, c, m, p = (
|
|
4210
4206
|
/*$_*/
|
|
4211
4207
|
e[12]("successful") + ""
|
|
4212
4208
|
), d, E, _, y = (
|
|
4213
4209
|
/*$_*/
|
|
4214
4210
|
e[12]("kyc1Part1") + ""
|
|
4215
|
-
), v,
|
|
4211
|
+
), v, M, w, D, A = (
|
|
4216
4212
|
/*$_*/
|
|
4217
4213
|
e[12]("kyc1Part2") + ""
|
|
4218
|
-
),
|
|
4214
|
+
), R, F, C, U = (
|
|
4219
4215
|
/*$_*/
|
|
4220
4216
|
e[12]("kycButton") + ""
|
|
4221
|
-
),
|
|
4217
|
+
), $, X, P, j = (
|
|
4222
4218
|
/*$_*/
|
|
4223
4219
|
e[12]("closeButton") + ""
|
|
4224
|
-
), ne, re,
|
|
4220
|
+
), ne, re, ae;
|
|
4225
4221
|
return {
|
|
4226
4222
|
c() {
|
|
4227
|
-
t =
|
|
4223
|
+
t = g("p"), n = L(i), r = O(), o = g("div"), a = g("div"), s = Y("svg"), u = Y("g"), l = Y("path"), c = O(), m = g("p"), d = L(p), E = O(), _ = g("p"), v = L(y), M = L(
|
|
4228
4224
|
/*legislatorLimitValue*/
|
|
4229
4225
|
e[11]
|
|
4230
|
-
), w =
|
|
4226
|
+
), w = O(), D = L(
|
|
4231
4227
|
/*currency*/
|
|
4232
4228
|
e[0]
|
|
4233
|
-
),
|
|
4229
|
+
), R = L(A), F = O(), C = g("button"), $ = L(U), X = O(), P = g("button"), ne = L(j), h(t, "class", "Title"), h(l, "id", "XMLID_6_"), h(l, "d", `M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360
|
|
4234
4230
|
c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55
|
|
4235
4231
|
c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1
|
|
4236
|
-
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"),
|
|
4232
|
+
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"), He(s, "enable-background", "new 0 0 512 512"), h(s, "xml:space", "preserve"), h(a, "class", "ResultIconWrapper"), h(_, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(C, "class", "KycButton PrimaryButtonStyle"), h(P, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4237
4233
|
},
|
|
4238
|
-
m(
|
|
4239
|
-
T(
|
|
4234
|
+
m(V, G) {
|
|
4235
|
+
T(V, t, G), f(t, n), T(V, r, G), T(V, o, G), f(o, a), f(a, s), f(s, u), f(u, l), f(a, c), f(a, m), f(m, d), f(o, E), f(o, _), f(_, v), f(_, M), f(_, w), f(_, D), f(_, R), T(V, F, G), T(V, C, G), f(C, $), T(V, X, G), T(V, P, G), f(P, ne), re || (ae = [
|
|
4240
4236
|
Z(
|
|
4241
|
-
|
|
4237
|
+
C,
|
|
4242
4238
|
"click",
|
|
4243
4239
|
/*click_handler_6*/
|
|
4244
4240
|
e[33]
|
|
@@ -4251,75 +4247,75 @@ function Zr(e) {
|
|
|
4251
4247
|
)
|
|
4252
4248
|
], re = !0);
|
|
4253
4249
|
},
|
|
4254
|
-
p(
|
|
4255
|
-
|
|
4250
|
+
p(V, G) {
|
|
4251
|
+
G[0] & /*$_*/
|
|
4256
4252
|
4096 && i !== (i = /*$_*/
|
|
4257
|
-
|
|
4258
|
-
4096 &&
|
|
4259
|
-
|
|
4253
|
+
V[12]("depositLimit") + "") && H(n, i), G[0] & /*$_*/
|
|
4254
|
+
4096 && p !== (p = /*$_*/
|
|
4255
|
+
V[12]("successful") + "") && H(d, p), G[0] & /*$_*/
|
|
4260
4256
|
4096 && y !== (y = /*$_*/
|
|
4261
|
-
|
|
4262
|
-
2048 &&
|
|
4263
|
-
O,
|
|
4264
|
-
/*legislatorLimitValue*/
|
|
4265
|
-
F[11]
|
|
4266
|
-
), j[0] & /*currency*/
|
|
4267
|
-
1 && k(
|
|
4257
|
+
V[12]("kyc1Part1") + "") && H(v, y), G[0] & /*legislatorLimitValue*/
|
|
4258
|
+
2048 && H(
|
|
4268
4259
|
M,
|
|
4260
|
+
/*legislatorLimitValue*/
|
|
4261
|
+
V[11]
|
|
4262
|
+
), G[0] & /*currency*/
|
|
4263
|
+
1 && H(
|
|
4264
|
+
D,
|
|
4269
4265
|
/*currency*/
|
|
4270
|
-
|
|
4271
|
-
),
|
|
4272
|
-
4096 &&
|
|
4273
|
-
|
|
4274
|
-
4096 && R !== (R = /*$_*/
|
|
4275
|
-
F[12]("kycButton") + "") && k(G, R), j[0] & /*$_*/
|
|
4266
|
+
V[0]
|
|
4267
|
+
), G[0] & /*$_*/
|
|
4268
|
+
4096 && A !== (A = /*$_*/
|
|
4269
|
+
V[12]("kyc1Part2") + "") && H(R, A), G[0] & /*$_*/
|
|
4276
4270
|
4096 && U !== (U = /*$_*/
|
|
4277
|
-
|
|
4271
|
+
V[12]("kycButton") + "") && H($, U), G[0] & /*$_*/
|
|
4272
|
+
4096 && j !== (j = /*$_*/
|
|
4273
|
+
V[12]("closeButton") + "") && H(ne, j);
|
|
4278
4274
|
},
|
|
4279
|
-
d(
|
|
4280
|
-
|
|
4275
|
+
d(V) {
|
|
4276
|
+
V && (x(t), x(r), x(o), x(F), x(C), x(X), x(P)), re = !1, ue(ae);
|
|
4281
4277
|
}
|
|
4282
4278
|
};
|
|
4283
4279
|
}
|
|
4284
|
-
function
|
|
4280
|
+
function Zr(e) {
|
|
4285
4281
|
let t, i = (
|
|
4286
4282
|
/*$_*/
|
|
4287
4283
|
e[12]("depositLimit") + ""
|
|
4288
|
-
), n, r, o, a, s, u, l, c,
|
|
4284
|
+
), n, r, o, a, s, u, l, c, m, p, d, E, _ = (
|
|
4289
4285
|
/*$_*/
|
|
4290
4286
|
e[12]("successful") + ""
|
|
4291
|
-
), y, v,
|
|
4287
|
+
), y, v, M, w = (
|
|
4292
4288
|
/*$_*/
|
|
4293
4289
|
e[12]("successDescription") + ""
|
|
4294
|
-
),
|
|
4290
|
+
), D, A, R, F, C;
|
|
4295
4291
|
return {
|
|
4296
4292
|
c() {
|
|
4297
|
-
t =
|
|
4298
|
-
`),
|
|
4293
|
+
t = g("p"), n = L(i), r = O(), o = g("div"), a = g("div"), s = Y("svg"), u = Y("defs"), l = Y("style"), c = L(`.fil0 {fill:black;fill-rule:nonzero}
|
|
4294
|
+
`), m = Y("g"), p = Y("polygon"), d = O(), E = g("p"), y = L(_), v = O(), M = g("p"), D = L(w), A = O(), R = g("button"), R.textContent = "OK", h(t, "class", "Title"), h(l, "type", "text/css"), h(p, "class", "fil0"), h(p, "points", "0,38 10,25 36,47 78,0 90,11 37,69 "), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "xml:space", "preserve"), h(s, "version", "1.1"), He(s, "shape-rendering", "geometricPrecision"), He(s, "text-rendering", "geometricPrecision"), He(s, "image-rendering", "optimizeQuality"), h(s, "viewBox", "0 0 90 69"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "fill-rule", "evenodd"), h(s, "clip-rule", "evenodd"), h(a, "class", "ResultIconWrapper"), h(M, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(R, "class", "ConfirmButton PrimaryButtonStyle");
|
|
4299
4295
|
},
|
|
4300
|
-
m(
|
|
4301
|
-
T(
|
|
4302
|
-
|
|
4296
|
+
m(U, $) {
|
|
4297
|
+
T(U, t, $), f(t, n), T(U, r, $), T(U, o, $), f(o, a), f(a, s), f(s, u), f(u, l), f(l, c), f(s, m), f(m, p), f(a, d), f(a, E), f(E, y), f(o, v), f(o, M), f(M, D), T(U, A, $), T(U, R, $), F || (C = Z(
|
|
4298
|
+
R,
|
|
4303
4299
|
"click",
|
|
4304
4300
|
/*click_handler_5*/
|
|
4305
4301
|
e[32]
|
|
4306
|
-
),
|
|
4302
|
+
), F = !0);
|
|
4307
4303
|
},
|
|
4308
|
-
p(
|
|
4309
|
-
|
|
4304
|
+
p(U, $) {
|
|
4305
|
+
$[0] & /*$_*/
|
|
4310
4306
|
4096 && i !== (i = /*$_*/
|
|
4311
|
-
|
|
4307
|
+
U[12]("depositLimit") + "") && H(n, i), $[0] & /*$_*/
|
|
4312
4308
|
4096 && _ !== (_ = /*$_*/
|
|
4313
|
-
|
|
4309
|
+
U[12]("successful") + "") && H(y, _), $[0] & /*$_*/
|
|
4314
4310
|
4096 && w !== (w = /*$_*/
|
|
4315
|
-
|
|
4311
|
+
U[12]("successDescription") + "") && H(D, w);
|
|
4316
4312
|
},
|
|
4317
|
-
d(
|
|
4318
|
-
|
|
4313
|
+
d(U) {
|
|
4314
|
+
U && (x(t), x(r), x(o), x(A), x(R)), F = !1, C();
|
|
4319
4315
|
}
|
|
4320
4316
|
};
|
|
4321
4317
|
}
|
|
4322
|
-
function
|
|
4318
|
+
function Yr(e) {
|
|
4323
4319
|
let t, i = (
|
|
4324
4320
|
/*$_*/
|
|
4325
4321
|
e[12]("setLimit") + ""
|
|
@@ -4329,54 +4325,54 @@ function Jr(e) {
|
|
|
4329
4325
|
), s, u, l, c = (
|
|
4330
4326
|
/*$_*/
|
|
4331
4327
|
e[12]("lugasInfo1") + ""
|
|
4332
|
-
),
|
|
4328
|
+
), m, p, d, E = (
|
|
4333
4329
|
/*$_*/
|
|
4334
4330
|
e[12]("lugasInfo2") + ""
|
|
4335
|
-
), _, y, v,
|
|
4331
|
+
), _, y, v, M = (
|
|
4336
4332
|
/*$_*/
|
|
4337
4333
|
e[12]("keepCurrentLimit") + ""
|
|
4338
|
-
), w,
|
|
4334
|
+
), w, D, A, R = (
|
|
4339
4335
|
/*$_*/
|
|
4340
4336
|
e[12]("keepCurrentLimitButton") + ""
|
|
4341
|
-
),
|
|
4337
|
+
), F, C, U, $, X, P, j, ne, re = (
|
|
4342
4338
|
/*$_*/
|
|
4343
4339
|
e[12]("depositPeriod") + ""
|
|
4344
|
-
),
|
|
4340
|
+
), ae, V, G, K, Re, oe, fe = (
|
|
4345
4341
|
/*$_*/
|
|
4346
4342
|
e[12]("applyButton") + ""
|
|
4347
|
-
),
|
|
4343
|
+
), Le, Ae, J, me = (
|
|
4348
4344
|
/*$_*/
|
|
4349
4345
|
e[12]("TCpart1") + ""
|
|
4350
|
-
),
|
|
4346
|
+
), Se, ce, pe = (
|
|
4351
4347
|
/*$_*/
|
|
4352
4348
|
e[12]("TClink") + ""
|
|
4353
|
-
),
|
|
4349
|
+
), Ie, b, q = (
|
|
4354
4350
|
/*$_*/
|
|
4355
4351
|
e[12]("TCpart2") + ""
|
|
4356
|
-
),
|
|
4352
|
+
), se, Ue, ee, je = (
|
|
4357
4353
|
/*$_*/
|
|
4358
4354
|
e[12]("PPlink") + ""
|
|
4359
|
-
),
|
|
4355
|
+
), Ke, wt, et, Bt;
|
|
4360
4356
|
return {
|
|
4361
4357
|
c() {
|
|
4362
|
-
t =
|
|
4363
|
-
|
|
4358
|
+
t = g("p"), n = L(i), r = O(), o = g("p"), s = L(a), u = O(), l = g("p"), m = L(c), p = O(), d = g("button"), _ = L(E), y = O(), v = g("button"), w = L(M), D = O(), A = g("button"), F = L(R), C = Y("svg"), U = Y("path"), $ = Y("path"), X = O(), P = g("div"), j = g("div"), ne = g("span"), ae = L(re), V = O(), G = g("div"), K = g("input"), Re = O(), oe = g("button"), Le = L(fe), Ae = O(), J = g("p"), Se = L(me), ce = g("button"), Ie = L(pe), b = O(), se = L(q), Ue = O(), ee = g("button"), Ke = L(je), wt = L("."), h(t, "class", "Title"), h(o, "class", "Description LeftAlign"), h(d, "class", "LinkButton"), h(l, "class", "AdditionalInformation"), h(v, "class", "KeepCurrentButton PrimaryButtonStyle"), h(U, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), h($, "d", "M0 0h36v36h-36z"), h($, "fill", "none"), h(C, "class", "ExpandArrow"), h(C, "xmlns", "http://www.w3.org/2000/svg"), h(C, "width", "36"), h(C, "height", "36"), h(C, "viewBox", "0 0 36 36"), h(C, "fill", "#999"), Ge(
|
|
4359
|
+
C,
|
|
4364
4360
|
"Extended",
|
|
4365
4361
|
/*extended*/
|
|
4366
4362
|
e[5]
|
|
4367
|
-
), h(
|
|
4363
|
+
), h(A, "class", "ExpandButton"), h(ne, "class", "DepositPeriodText"), h(j, "class", "DepositTextSection"), h(K, "type", "number"), h(K, "class", "DepositInput"), h(oe, "type", "submit"), h(oe, "class", "SubmitDepositButton PrimaryButtonStyle"), oe.disabled = !0, h(G, "class", "DepositInputSection"), h(P, "class", "SetLimitSection"), Ge(
|
|
4368
4364
|
P,
|
|
4369
4365
|
"Hidden",
|
|
4370
4366
|
/*hidden*/
|
|
4371
4367
|
e[4]
|
|
4372
|
-
), h(
|
|
4368
|
+
), h(ce, "class", "LinkButton"), h(ee, "class", "LinkButton"), h(J, "class", "TermsConditions");
|
|
4373
4369
|
},
|
|
4374
|
-
m(I,
|
|
4375
|
-
T(I, t,
|
|
4370
|
+
m(I, N) {
|
|
4371
|
+
T(I, t, N), f(t, n), T(I, r, N), T(I, o, N), f(o, s), T(I, u, N), T(I, l, N), f(l, m), f(l, p), f(l, d), f(d, _), T(I, y, N), T(I, v, N), f(v, w), T(I, D, N), T(I, A, N), f(A, F), f(A, C), f(C, U), f(C, $), e[26](C), T(I, X, N), T(I, P, N), f(P, j), f(j, ne), f(ne, ae), f(P, V), f(P, G), f(G, K), Ht(
|
|
4376
4372
|
K,
|
|
4377
4373
|
/*inputAmount*/
|
|
4378
4374
|
e[6]
|
|
4379
|
-
), f(
|
|
4375
|
+
), f(G, Re), f(G, oe), f(oe, Le), e[28](oe), T(I, Ae, N), T(I, J, N), f(J, Se), f(J, ce), f(ce, Ie), f(J, b), f(J, se), f(J, Ue), f(J, ee), f(ee, Ke), f(J, wt), et || (Bt = [
|
|
4380
4376
|
Z(
|
|
4381
4377
|
d,
|
|
4382
4378
|
"click",
|
|
@@ -4390,7 +4386,7 @@ function Jr(e) {
|
|
|
4390
4386
|
e[25]
|
|
4391
4387
|
),
|
|
4392
4388
|
Z(
|
|
4393
|
-
|
|
4389
|
+
A,
|
|
4394
4390
|
"click",
|
|
4395
4391
|
/*toggleNewLimitArea*/
|
|
4396
4392
|
e[13]
|
|
@@ -4414,7 +4410,7 @@ function Jr(e) {
|
|
|
4414
4410
|
e[29]
|
|
4415
4411
|
),
|
|
4416
4412
|
Z(
|
|
4417
|
-
|
|
4413
|
+
ce,
|
|
4418
4414
|
"click",
|
|
4419
4415
|
/*click_handler_3*/
|
|
4420
4416
|
e[30]
|
|
@@ -4425,76 +4421,76 @@ function Jr(e) {
|
|
|
4425
4421
|
/*click_handler_4*/
|
|
4426
4422
|
e[31]
|
|
4427
4423
|
)
|
|
4428
|
-
],
|
|
4424
|
+
], et = !0);
|
|
4429
4425
|
},
|
|
4430
|
-
p(I,
|
|
4431
|
-
|
|
4426
|
+
p(I, N) {
|
|
4427
|
+
N[0] & /*$_*/
|
|
4432
4428
|
4096 && i !== (i = /*$_*/
|
|
4433
|
-
I[12]("setLimit") + "") &&
|
|
4429
|
+
I[12]("setLimit") + "") && H(n, i), N[0] & /*$_*/
|
|
4434
4430
|
4096 && a !== (a = /*$_*/
|
|
4435
|
-
I[12]("setLimitDescription") + "") &&
|
|
4431
|
+
I[12]("setLimitDescription") + "") && H(s, a), N[0] & /*$_*/
|
|
4436
4432
|
4096 && c !== (c = /*$_*/
|
|
4437
|
-
I[12]("lugasInfo1") + "") &&
|
|
4433
|
+
I[12]("lugasInfo1") + "") && H(m, c), N[0] & /*$_*/
|
|
4438
4434
|
4096 && E !== (E = /*$_*/
|
|
4439
|
-
I[12]("lugasInfo2") + "") &&
|
|
4440
|
-
4096 &&
|
|
4441
|
-
I[12]("keepCurrentLimit") + "") &&
|
|
4442
|
-
4096 &&
|
|
4443
|
-
I[12]("keepCurrentLimitButton") + "") &&
|
|
4444
|
-
32 &&
|
|
4445
|
-
|
|
4435
|
+
I[12]("lugasInfo2") + "") && H(_, E), N[0] & /*$_*/
|
|
4436
|
+
4096 && M !== (M = /*$_*/
|
|
4437
|
+
I[12]("keepCurrentLimit") + "") && H(w, M), N[0] & /*$_*/
|
|
4438
|
+
4096 && R !== (R = /*$_*/
|
|
4439
|
+
I[12]("keepCurrentLimitButton") + "") && H(F, R), N[0] & /*extended*/
|
|
4440
|
+
32 && Ge(
|
|
4441
|
+
C,
|
|
4446
4442
|
"Extended",
|
|
4447
4443
|
/*extended*/
|
|
4448
4444
|
I[5]
|
|
4449
|
-
),
|
|
4445
|
+
), N[0] & /*$_*/
|
|
4450
4446
|
4096 && re !== (re = /*$_*/
|
|
4451
|
-
I[12]("depositPeriod") + "") &&
|
|
4447
|
+
I[12]("depositPeriod") + "") && H(ae, re), N[0] & /*inputAmount*/
|
|
4452
4448
|
64 && Qt(K.value) !== /*inputAmount*/
|
|
4453
4449
|
I[6] && Ht(
|
|
4454
4450
|
K,
|
|
4455
4451
|
/*inputAmount*/
|
|
4456
4452
|
I[6]
|
|
4457
|
-
),
|
|
4458
|
-
4096 &&
|
|
4459
|
-
I[12]("applyButton") + "") &&
|
|
4460
|
-
16 &&
|
|
4453
|
+
), N[0] & /*$_*/
|
|
4454
|
+
4096 && fe !== (fe = /*$_*/
|
|
4455
|
+
I[12]("applyButton") + "") && H(Le, fe), N[0] & /*hidden*/
|
|
4456
|
+
16 && Ge(
|
|
4461
4457
|
P,
|
|
4462
4458
|
"Hidden",
|
|
4463
4459
|
/*hidden*/
|
|
4464
4460
|
I[4]
|
|
4465
|
-
),
|
|
4461
|
+
), N[0] & /*$_*/
|
|
4466
4462
|
4096 && me !== (me = /*$_*/
|
|
4467
|
-
I[12]("TCpart1") + "") &&
|
|
4468
|
-
4096 &&
|
|
4469
|
-
I[12]("TClink") + "") &&
|
|
4463
|
+
I[12]("TCpart1") + "") && H(Se, me), N[0] & /*$_*/
|
|
4464
|
+
4096 && pe !== (pe = /*$_*/
|
|
4465
|
+
I[12]("TClink") + "") && H(Ie, pe), N[0] & /*$_*/
|
|
4470
4466
|
4096 && q !== (q = /*$_*/
|
|
4471
|
-
I[12]("TCpart2") + "") &&
|
|
4472
|
-
4096 &&
|
|
4473
|
-
I[12]("PPlink") + "") &&
|
|
4467
|
+
I[12]("TCpart2") + "") && H(se, q), N[0] & /*$_*/
|
|
4468
|
+
4096 && je !== (je = /*$_*/
|
|
4469
|
+
I[12]("PPlink") + "") && H(Ke, je);
|
|
4474
4470
|
},
|
|
4475
4471
|
d(I) {
|
|
4476
|
-
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(
|
|
4472
|
+
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(D), x(A), x(X), x(P), x(Ae), x(J)), e[26](null), e[28](null), et = !1, ue(Bt);
|
|
4477
4473
|
}
|
|
4478
4474
|
};
|
|
4479
4475
|
}
|
|
4480
|
-
function
|
|
4476
|
+
function Jr(e) {
|
|
4481
4477
|
let t, i, n, r;
|
|
4482
4478
|
function o(u, l) {
|
|
4483
4479
|
if (
|
|
4484
4480
|
/*isLoading*/
|
|
4485
4481
|
u[7]
|
|
4486
4482
|
)
|
|
4487
|
-
return
|
|
4483
|
+
return Vr;
|
|
4488
4484
|
if (
|
|
4489
4485
|
/*lang*/
|
|
4490
4486
|
u[1]
|
|
4491
4487
|
)
|
|
4492
|
-
return
|
|
4488
|
+
return Fr;
|
|
4493
4489
|
}
|
|
4494
4490
|
let a = o(e), s = a && a(e);
|
|
4495
4491
|
return {
|
|
4496
4492
|
c() {
|
|
4497
|
-
t =
|
|
4493
|
+
t = g("div"), i = g("div"), n = g("div"), r = g("div"), s && s.c(), h(r, "class", "ModalContainer"), h(n, "class", "Overlay"), h(i, "class", "player-account-gaming-limits-popup-2");
|
|
4498
4494
|
},
|
|
4499
4495
|
m(u, l) {
|
|
4500
4496
|
T(u, t, l), f(t, i), f(i, n), f(n, r), s && s.m(r, null), e[38](i), e[39](t);
|
|
@@ -4509,111 +4505,111 @@ function Qr(e) {
|
|
|
4509
4505
|
}
|
|
4510
4506
|
};
|
|
4511
4507
|
}
|
|
4512
|
-
function
|
|
4508
|
+
function Qr(e, t, i) {
|
|
4513
4509
|
let n;
|
|
4514
|
-
Ii(e,
|
|
4515
|
-
let { userid: r = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { translationurl: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl:
|
|
4516
|
-
const
|
|
4510
|
+
Ii(e, Rr, (b) => i(12, n = b));
|
|
4511
|
+
let { userid: r = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { translationurl: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: m = "" } = t, { mbsource: p } = t, d, E, _ = !0, y = !1, v, M = !1, w, D, A = "initial", R;
|
|
4512
|
+
const F = () => {
|
|
4517
4513
|
fetch(l).then((q) => q.json()).then((q) => {
|
|
4518
|
-
Object.keys(q).forEach((
|
|
4519
|
-
qt(
|
|
4514
|
+
Object.keys(q).forEach((se) => {
|
|
4515
|
+
qt(se, q[se]);
|
|
4520
4516
|
});
|
|
4521
4517
|
}).catch((q) => {
|
|
4522
4518
|
console.log(q);
|
|
4523
4519
|
});
|
|
4524
4520
|
};
|
|
4525
|
-
Object.keys(Wt).forEach((
|
|
4526
|
-
qt(
|
|
4521
|
+
Object.keys(Wt).forEach((b) => {
|
|
4522
|
+
qt(b, Wt[b]);
|
|
4527
4523
|
});
|
|
4528
|
-
const
|
|
4524
|
+
const C = () => {
|
|
4529
4525
|
i(5, y = !y), i(4, _ = !_);
|
|
4530
|
-
},
|
|
4531
|
-
|
|
4532
|
-
},
|
|
4526
|
+
}, U = () => {
|
|
4527
|
+
D.parentNode.removeChild(D);
|
|
4528
|
+
}, $ = () => {
|
|
4533
4529
|
v > 999999999999999 && i(6, v = 999999999999999);
|
|
4534
4530
|
const q = v - Math.floor(v) === 0;
|
|
4535
4531
|
v > 0 && q ? w.removeAttribute("disabled") : w.setAttribute("disabled", "true");
|
|
4536
|
-
}, X = (
|
|
4537
|
-
switch (window.postMessage({ type:
|
|
4532
|
+
}, X = (b) => {
|
|
4533
|
+
switch (window.postMessage({ type: b }, window.location.href), b) {
|
|
4538
4534
|
case "closePopup":
|
|
4539
4535
|
case "uploadDocuments":
|
|
4540
|
-
|
|
4536
|
+
U();
|
|
4541
4537
|
break;
|
|
4542
4538
|
}
|
|
4543
|
-
}, P = (
|
|
4539
|
+
}, P = (b) => {
|
|
4544
4540
|
const q = new URL(`/v1/player/${r}/limit/lugas`, a);
|
|
4545
|
-
let
|
|
4546
|
-
i(7,
|
|
4547
|
-
let
|
|
4541
|
+
let se = {};
|
|
4542
|
+
i(7, M = !0), se = b === "custom" ? { amount: v } : {};
|
|
4543
|
+
let Ue = {
|
|
4548
4544
|
method: "POST",
|
|
4549
4545
|
headers: {
|
|
4550
4546
|
"X-SessionID": o,
|
|
4551
4547
|
"Content-Type": "application/json",
|
|
4552
4548
|
Accept: "application/json"
|
|
4553
4549
|
},
|
|
4554
|
-
body: JSON.stringify(
|
|
4550
|
+
body: JSON.stringify(se)
|
|
4555
4551
|
};
|
|
4556
|
-
fetch(q.href,
|
|
4557
|
-
|
|
4552
|
+
fetch(q.href, Ue).then((ee) => ee.json()).then((ee) => {
|
|
4553
|
+
j(ee);
|
|
4558
4554
|
}).catch((ee) => {
|
|
4559
4555
|
console.log(ee);
|
|
4560
4556
|
}).finally(() => {
|
|
4561
|
-
i(7,
|
|
4557
|
+
i(7, M = !1);
|
|
4562
4558
|
});
|
|
4563
|
-
},
|
|
4564
|
-
if (
|
|
4565
|
-
switch (
|
|
4559
|
+
}, j = (b) => {
|
|
4560
|
+
if (b.hasOwnProperty("kycNeeded"))
|
|
4561
|
+
switch (b.popup) {
|
|
4566
4562
|
case 1:
|
|
4567
|
-
i(10,
|
|
4563
|
+
i(10, A = "KYC"), i(11, R = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(b.operatorDepositLimitAmount));
|
|
4568
4564
|
break;
|
|
4569
4565
|
case 2:
|
|
4570
|
-
i(10,
|
|
4566
|
+
i(10, A = "successful");
|
|
4571
4567
|
break;
|
|
4572
4568
|
case 3:
|
|
4573
|
-
i(10,
|
|
4569
|
+
i(10, A = "KYC2");
|
|
4574
4570
|
break;
|
|
4575
4571
|
}
|
|
4576
4572
|
else
|
|
4577
|
-
i(10,
|
|
4573
|
+
i(10, A = "error");
|
|
4578
4574
|
}, ne = () => {
|
|
4579
|
-
|
|
4575
|
+
Ur(u);
|
|
4580
4576
|
};
|
|
4581
4577
|
Di(() => () => {
|
|
4582
4578
|
});
|
|
4583
|
-
const re = () => X("lugasInformation"),
|
|
4584
|
-
function
|
|
4585
|
-
|
|
4586
|
-
E =
|
|
4579
|
+
const re = () => X("lugasInformation"), ae = () => P("default");
|
|
4580
|
+
function V(b) {
|
|
4581
|
+
ye[b ? "unshift" : "push"](() => {
|
|
4582
|
+
E = b, i(3, E);
|
|
4587
4583
|
});
|
|
4588
4584
|
}
|
|
4589
|
-
function
|
|
4585
|
+
function G() {
|
|
4590
4586
|
v = Qt(this.value), i(6, v);
|
|
4591
4587
|
}
|
|
4592
|
-
function K(
|
|
4593
|
-
|
|
4594
|
-
w =
|
|
4588
|
+
function K(b) {
|
|
4589
|
+
ye[b ? "unshift" : "push"](() => {
|
|
4590
|
+
w = b, i(8, w);
|
|
4595
4591
|
});
|
|
4596
4592
|
}
|
|
4597
|
-
const
|
|
4598
|
-
function
|
|
4599
|
-
|
|
4600
|
-
|
|
4593
|
+
const Re = () => P("custom"), oe = () => X("termsConditions"), fe = () => X("privacyPolicy"), Le = () => X("closePopup"), Ae = () => X("uploadDocuments"), J = () => X("closePopup"), me = () => X("uploadDocuments"), Se = () => X("closePopup"), ce = () => X("closePopup");
|
|
4594
|
+
function pe(b) {
|
|
4595
|
+
ye[b ? "unshift" : "push"](() => {
|
|
4596
|
+
D = b, i(9, D);
|
|
4601
4597
|
});
|
|
4602
4598
|
}
|
|
4603
|
-
function
|
|
4604
|
-
|
|
4605
|
-
d =
|
|
4599
|
+
function Ie(b) {
|
|
4600
|
+
ye[b ? "unshift" : "push"](() => {
|
|
4601
|
+
d = b, i(2, d);
|
|
4606
4602
|
});
|
|
4607
4603
|
}
|
|
4608
|
-
return e.$$set = (
|
|
4609
|
-
"userid" in
|
|
4604
|
+
return e.$$set = (b) => {
|
|
4605
|
+
"userid" in b && i(17, r = b.userid), "session" in b && i(18, o = b.session), "endpoint" in b && i(19, a = b.endpoint), "currency" in b && i(0, s = b.currency), "lang" in b && i(1, u = b.lang), "translationurl" in b && i(20, l = b.translationurl), "clientstyling" in b && i(21, c = b.clientstyling), "clientstylingurl" in b && i(22, m = b.clientstylingurl), "mbsource" in b && i(23, p = b.mbsource);
|
|
4610
4606
|
}, e.$$.update = () => {
|
|
4611
4607
|
e.$$.dirty[0] & /*lang*/
|
|
4612
4608
|
2 && u && ne(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4613
|
-
2097156 && c && d &&
|
|
4614
|
-
4194308 &&
|
|
4615
|
-
8388612 &&
|
|
4616
|
-
1048576 && l &&
|
|
4609
|
+
2097156 && c && d && jr(d, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4610
|
+
4194308 && m && d && Gr(d, m), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4611
|
+
8388612 && p && d && $r(d, `${p}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4612
|
+
1048576 && l && F();
|
|
4617
4613
|
}, [
|
|
4618
4614
|
s,
|
|
4619
4615
|
u,
|
|
@@ -4622,14 +4618,14 @@ function Kr(e, t, i) {
|
|
|
4622
4618
|
_,
|
|
4623
4619
|
y,
|
|
4624
4620
|
v,
|
|
4625
|
-
O,
|
|
4626
|
-
w,
|
|
4627
4621
|
M,
|
|
4628
|
-
|
|
4622
|
+
w,
|
|
4629
4623
|
D,
|
|
4624
|
+
A,
|
|
4625
|
+
R,
|
|
4630
4626
|
n,
|
|
4631
|
-
|
|
4632
|
-
|
|
4627
|
+
C,
|
|
4628
|
+
$,
|
|
4633
4629
|
X,
|
|
4634
4630
|
P,
|
|
4635
4631
|
r,
|
|
@@ -4637,33 +4633,33 @@ function Kr(e, t, i) {
|
|
|
4637
4633
|
a,
|
|
4638
4634
|
l,
|
|
4639
4635
|
c,
|
|
4640
|
-
p,
|
|
4641
4636
|
m,
|
|
4637
|
+
p,
|
|
4642
4638
|
re,
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4639
|
+
ae,
|
|
4640
|
+
V,
|
|
4641
|
+
G,
|
|
4646
4642
|
K,
|
|
4647
|
-
|
|
4643
|
+
Re,
|
|
4648
4644
|
oe,
|
|
4649
|
-
|
|
4650
|
-
|
|
4645
|
+
fe,
|
|
4646
|
+
Le,
|
|
4651
4647
|
Ae,
|
|
4652
4648
|
J,
|
|
4653
4649
|
me,
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4650
|
+
Se,
|
|
4651
|
+
ce,
|
|
4652
|
+
pe,
|
|
4653
|
+
Ie
|
|
4658
4654
|
];
|
|
4659
4655
|
}
|
|
4660
|
-
class
|
|
4656
|
+
class Kr extends Zi {
|
|
4661
4657
|
constructor(t) {
|
|
4662
4658
|
super(), qi(
|
|
4663
4659
|
this,
|
|
4664
4660
|
t,
|
|
4665
|
-
Kr,
|
|
4666
4661
|
Qr,
|
|
4662
|
+
Jr,
|
|
4667
4663
|
Yt,
|
|
4668
4664
|
{
|
|
4669
4665
|
userid: 17,
|
|
@@ -4676,7 +4672,7 @@ class eo extends Zi {
|
|
|
4676
4672
|
clientstylingurl: 22,
|
|
4677
4673
|
mbsource: 23
|
|
4678
4674
|
},
|
|
4679
|
-
|
|
4675
|
+
zr,
|
|
4680
4676
|
[-1, -1]
|
|
4681
4677
|
);
|
|
4682
4678
|
}
|
|
@@ -4735,7 +4731,7 @@ class eo extends Zi {
|
|
|
4735
4731
|
this.$$set({ mbsource: t }), te();
|
|
4736
4732
|
}
|
|
4737
4733
|
}
|
|
4738
|
-
Wi(
|
|
4734
|
+
Wi(Kr, { userid: {}, session: {}, endpoint: {}, currency: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4739
4735
|
export {
|
|
4740
|
-
|
|
4736
|
+
Kr as default
|
|
4741
4737
|
};
|