@everymatrix/player-account-gaming-limits-popup 1.76.3 → 1.76.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/{PlayerAccountGamingLimitsPopup-BVsV4GvF.js → PlayerAccountGamingLimitsPopup-CYnRGI3F.js} +852 -817
- package/components/PlayerAccountGamingLimitsPopup-D98UfAyc.cjs +18 -0
- package/components/{PlayerAccountGamingLimitsPopup-C9Es2Ap8.js → PlayerAccountGamingLimitsPopup-yCPQoeP2.js} +839 -804
- package/es2015/player-account-gaming-limits-popup.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup.js +1 -1
- package/esnext/player-account-gaming-limits-popup.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup-C_SvM-tc.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ee = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
pr.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var I = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => hr(e, cr(t));
|
|
13
|
+
var I = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(l));
|
|
@@ -29,25 +29,25 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function O() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Bt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function re(e) {
|
|
39
|
+
e.forEach(Bt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ye(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ct(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function dr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function At(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,20 +56,20 @@ function Ht(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function mr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(At(t, r));
|
|
61
61
|
}
|
|
62
62
|
function P(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function br(e, t, r) {
|
|
66
|
+
const n = vr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = A("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function vr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,35 +79,35 @@ function dr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function yr(e, t) {
|
|
83
83
|
return P(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ne(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function W(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function A(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ie(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
101
|
+
function Te() {
|
|
102
|
+
return ie(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function gr() {
|
|
105
|
+
return ie("");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function xr(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _r(e) {
|
|
111
111
|
return function(t) {
|
|
112
112
|
return t.preventDefault(), e.call(this, t);
|
|
113
113
|
};
|
|
@@ -115,14 +115,14 @@ function gr(e) {
|
|
|
115
115
|
function C(e, t, r) {
|
|
116
116
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Er(e) {
|
|
119
119
|
return Array.from(e.childNodes);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Qe(e, t) {
|
|
122
122
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
123
123
|
t);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Tr(e) {
|
|
126
126
|
const t = {};
|
|
127
127
|
return e.childNodes.forEach(
|
|
128
128
|
/** @param {Element} node */
|
|
@@ -131,87 +131,87 @@ function vr(e) {
|
|
|
131
131
|
}
|
|
132
132
|
), t;
|
|
133
133
|
}
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
|
|
134
|
+
let K;
|
|
135
|
+
function J(e) {
|
|
136
|
+
K = e;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
if (!
|
|
138
|
+
function Sr() {
|
|
139
|
+
if (!K)
|
|
140
140
|
throw new Error("Function called outside component initialization");
|
|
141
|
-
return
|
|
141
|
+
return K;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function wr(e) {
|
|
144
|
+
Sr().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const D = [],
|
|
146
|
+
const D = [], Oe = [];
|
|
147
147
|
let F = [];
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
function
|
|
151
|
-
|
|
148
|
+
const ot = [], Pr = /* @__PURE__ */ Promise.resolve();
|
|
149
|
+
let Le = !1;
|
|
150
|
+
function Hr() {
|
|
151
|
+
Le || (Le = !0, Pr.then(L));
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Me(e) {
|
|
154
154
|
F.push(e);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const Se = /* @__PURE__ */ new Set();
|
|
157
157
|
let U = 0;
|
|
158
158
|
function L() {
|
|
159
159
|
if (U !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = K;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
164
|
for (; U < D.length; ) {
|
|
165
165
|
const t = D[U];
|
|
166
|
-
U++,
|
|
166
|
+
U++, J(t), Ir(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
169
|
throw D.length = 0, U = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
|
|
171
|
+
for (J(null), D.length = 0, U = 0; Oe.length; )
|
|
172
|
+
Oe.pop()();
|
|
173
173
|
for (let t = 0; t < F.length; t += 1) {
|
|
174
174
|
const r = F[t];
|
|
175
|
-
|
|
175
|
+
Se.has(r) || (Se.add(r), r());
|
|
176
176
|
}
|
|
177
177
|
F.length = 0;
|
|
178
178
|
} while (D.length);
|
|
179
|
-
for (;
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
for (; ot.length; )
|
|
180
|
+
ot.pop()();
|
|
181
|
+
Le = !1, Se.clear(), J(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ir(e) {
|
|
184
184
|
if (e.fragment !== null) {
|
|
185
|
-
e.update(),
|
|
185
|
+
e.update(), re(e.before_update);
|
|
186
186
|
const t = e.dirty;
|
|
187
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
187
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Br(e) {
|
|
191
191
|
const t = [], r = [];
|
|
192
192
|
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
196
|
-
e && e.i && (
|
|
194
|
+
const Cr = /* @__PURE__ */ new Set();
|
|
195
|
+
function Ar(e, t) {
|
|
196
|
+
e && e.i && (Cr.delete(e), e.i(t));
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Or(e, t, r) {
|
|
199
199
|
const { fragment: n, after_update: i } = e.$$;
|
|
200
|
-
n && n.m(t, r),
|
|
201
|
-
const o = e.$$.on_mount.map(
|
|
202
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
203
|
-
}), i.forEach(
|
|
200
|
+
n && n.m(t, r), Me(() => {
|
|
201
|
+
const o = e.$$.on_mount.map(Bt).filter(Ye);
|
|
202
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
203
|
+
}), i.forEach(Me);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Lr(e, t) {
|
|
206
206
|
const r = e.$$;
|
|
207
|
-
r.fragment !== null && (
|
|
207
|
+
r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
209
|
+
function Mr(e, t) {
|
|
210
|
+
e.$$.dirty[0] === -1 && (D.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const l =
|
|
214
|
-
|
|
212
|
+
function Nr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
213
|
+
const l = K;
|
|
214
|
+
J(e);
|
|
215
215
|
const u = e.$$ = {
|
|
216
216
|
fragment: null,
|
|
217
217
|
ctx: [],
|
|
@@ -219,7 +219,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
219
219
|
props: o,
|
|
220
220
|
update: O,
|
|
221
221
|
not_equal: i,
|
|
222
|
-
bound:
|
|
222
|
+
bound: it(),
|
|
223
223
|
// lifecycle
|
|
224
224
|
on_mount: [],
|
|
225
225
|
on_destroy: [],
|
|
@@ -228,28 +228,28 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
228
228
|
after_update: [],
|
|
229
229
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
230
230
|
// everything else
|
|
231
|
-
callbacks:
|
|
231
|
+
callbacks: it(),
|
|
232
232
|
dirty: s,
|
|
233
233
|
skip_bound: !1,
|
|
234
234
|
root: t.target || l.$$.root
|
|
235
235
|
};
|
|
236
236
|
a && a(u.root);
|
|
237
237
|
let h = !1;
|
|
238
|
-
if (u.ctx = r(e, t.props || {}, (
|
|
239
|
-
const
|
|
240
|
-
return u.ctx && i(u.ctx[
|
|
241
|
-
}), u.update(), h = !0,
|
|
238
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
239
|
+
const d = p.length ? p[0] : c;
|
|
240
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && Mr(e, f)), c;
|
|
241
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
242
242
|
if (t.hydrate) {
|
|
243
|
-
const
|
|
244
|
-
u.fragment && u.fragment.l(
|
|
243
|
+
const f = Er(t.target);
|
|
244
|
+
u.fragment && u.fragment.l(f), f.forEach(W);
|
|
245
245
|
} else
|
|
246
246
|
u.fragment && u.fragment.c();
|
|
247
|
-
t.intro &&
|
|
247
|
+
t.intro && Ar(e.$$.fragment), Or(e, t.target, t.anchor), L();
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
J(l);
|
|
250
250
|
}
|
|
251
|
-
let
|
|
252
|
-
typeof HTMLElement == "function" && (
|
|
251
|
+
let Ot;
|
|
252
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
253
253
|
constructor(t, r, n) {
|
|
254
254
|
super();
|
|
255
255
|
/** The Svelte component constructor */
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
connectedCallback() {
|
|
289
|
-
return
|
|
289
|
+
return nt(this, null, function* () {
|
|
290
290
|
if (this.$$cn = !0, !this.$$c) {
|
|
291
291
|
let t = function(o) {
|
|
292
292
|
return () => {
|
|
@@ -300,17 +300,17 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
300
300
|
* @param {HTMLElement} [anchor]
|
|
301
301
|
*/
|
|
302
302
|
m: function(u, h) {
|
|
303
|
-
|
|
303
|
+
ne(u, a, h);
|
|
304
304
|
},
|
|
305
305
|
d: function(u) {
|
|
306
|
-
u &&
|
|
306
|
+
u && W(a);
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
};
|
|
311
311
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
312
312
|
return;
|
|
313
|
-
const r = {}, n =
|
|
313
|
+
const r = {}, n = Tr(this);
|
|
314
314
|
for (const o of this.$$s)
|
|
315
315
|
o in n && (r[o] = [t(o)]);
|
|
316
316
|
for (const o of this.attributes) {
|
|
@@ -321,7 +321,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
321
321
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
322
322
|
this.$$c = new this.$$ctor({
|
|
323
323
|
target: this.shadowRoot || this,
|
|
324
|
-
props:
|
|
324
|
+
props: rt(tt({}, this.$$d), {
|
|
325
325
|
$$slots: r,
|
|
326
326
|
$$scope: {
|
|
327
327
|
ctx: []
|
|
@@ -399,8 +399,8 @@ function le(e, t, r, n) {
|
|
|
399
399
|
return t;
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let a = class extends
|
|
402
|
+
function $r(e, t, r, n, i, o) {
|
|
403
|
+
let a = class extends Ot {
|
|
404
404
|
constructor() {
|
|
405
405
|
super(e, r, i), this.$$p_d = t;
|
|
406
406
|
}
|
|
@@ -430,7 +430,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
430
430
|
}), e.element = /** @type {any} */
|
|
431
431
|
a, a;
|
|
432
432
|
}
|
|
433
|
-
class
|
|
433
|
+
class Rr {
|
|
434
434
|
constructor() {
|
|
435
435
|
/**
|
|
436
436
|
* ### PRIVATE API
|
|
@@ -451,7 +451,7 @@ class Lr {
|
|
|
451
451
|
}
|
|
452
452
|
/** @returns {void} */
|
|
453
453
|
$destroy() {
|
|
454
|
-
|
|
454
|
+
Lr(this, 1), this.$destroy = O;
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
457
457
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,7 +460,7 @@ class Lr {
|
|
|
460
460
|
* @returns {() => void}
|
|
461
461
|
*/
|
|
462
462
|
$on(t, r) {
|
|
463
|
-
if (!
|
|
463
|
+
if (!Ye(r))
|
|
464
464
|
return O;
|
|
465
465
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
466
466
|
return n.push(r), () => {
|
|
@@ -473,11 +473,11 @@ class Lr {
|
|
|
473
473
|
* @returns {void}
|
|
474
474
|
*/
|
|
475
475
|
$set(t) {
|
|
476
|
-
this.$$set && !
|
|
476
|
+
this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
const
|
|
480
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
+
const Ur = "4";
|
|
480
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
481
481
|
/*! *****************************************************************************
|
|
482
482
|
Copyright (c) Microsoft Corporation.
|
|
483
483
|
|
|
@@ -492,43 +492,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
492
492
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
493
493
|
PERFORMANCE OF THIS SOFTWARE.
|
|
494
494
|
***************************************************************************** */
|
|
495
|
-
var
|
|
496
|
-
return
|
|
495
|
+
var Ne = function(e, t) {
|
|
496
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
497
497
|
r.__proto__ = n;
|
|
498
498
|
} || function(r, n) {
|
|
499
499
|
for (var i in n)
|
|
500
500
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
501
|
-
},
|
|
501
|
+
}, Ne(e, t);
|
|
502
502
|
};
|
|
503
|
-
function
|
|
503
|
+
function oe(e, t) {
|
|
504
504
|
if (typeof t != "function" && t !== null)
|
|
505
505
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
506
|
-
|
|
506
|
+
Ne(e, t);
|
|
507
507
|
function r() {
|
|
508
508
|
this.constructor = e;
|
|
509
509
|
}
|
|
510
510
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
511
511
|
}
|
|
512
|
-
|
|
513
|
-
return y = Object.assign || function(t) {
|
|
514
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
515
|
-
r = arguments[n];
|
|
516
|
-
for (var o in r)
|
|
517
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
518
|
-
}
|
|
519
|
-
return t;
|
|
520
|
-
}, y.apply(this, arguments);
|
|
521
|
-
};
|
|
522
|
-
function Nr(e, t) {
|
|
523
|
-
var r = {};
|
|
524
|
-
for (var n in e)
|
|
525
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
526
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
527
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
528
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
529
|
-
return r;
|
|
530
|
-
}
|
|
531
|
-
function Le(e) {
|
|
512
|
+
function $e(e) {
|
|
532
513
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
533
514
|
if (r)
|
|
534
515
|
return r.call(e);
|
|
@@ -540,7 +521,7 @@ function Le(e) {
|
|
|
540
521
|
};
|
|
541
522
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
542
523
|
}
|
|
543
|
-
function
|
|
524
|
+
function Re(e, t) {
|
|
544
525
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
545
526
|
if (!r)
|
|
546
527
|
return e;
|
|
@@ -560,22 +541,22 @@ function Me(e, t) {
|
|
|
560
541
|
}
|
|
561
542
|
return o;
|
|
562
543
|
}
|
|
563
|
-
function
|
|
564
|
-
if (
|
|
544
|
+
function Ue(e, t, r) {
|
|
545
|
+
if (arguments.length === 2)
|
|
565
546
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
566
547
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
567
548
|
return e.concat(o || t);
|
|
568
549
|
}
|
|
569
|
-
function
|
|
550
|
+
function N(e) {
|
|
570
551
|
return typeof e == "function";
|
|
571
552
|
}
|
|
572
|
-
function
|
|
553
|
+
function Lt(e) {
|
|
573
554
|
var t = function(n) {
|
|
574
555
|
Error.call(n), n.stack = new Error().stack;
|
|
575
556
|
}, r = e(t);
|
|
576
557
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
577
558
|
}
|
|
578
|
-
var
|
|
559
|
+
var we = Lt(function(e) {
|
|
579
560
|
return function(r) {
|
|
580
561
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
581
562
|
` + r.map(function(n, i) {
|
|
@@ -584,13 +565,13 @@ var Te = Bt(function(e) {
|
|
|
584
565
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
585
566
|
};
|
|
586
567
|
});
|
|
587
|
-
function
|
|
568
|
+
function Ge(e, t) {
|
|
588
569
|
if (e) {
|
|
589
570
|
var r = e.indexOf(t);
|
|
590
571
|
0 <= r && e.splice(r, 1);
|
|
591
572
|
}
|
|
592
573
|
}
|
|
593
|
-
var
|
|
574
|
+
var be = function() {
|
|
594
575
|
function e(t) {
|
|
595
576
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
596
577
|
}
|
|
@@ -602,12 +583,12 @@ var me = function() {
|
|
|
602
583
|
if (a)
|
|
603
584
|
if (this._parentage = null, Array.isArray(a))
|
|
604
585
|
try {
|
|
605
|
-
for (var s =
|
|
586
|
+
for (var s = $e(a), l = s.next(); !l.done; l = s.next()) {
|
|
606
587
|
var u = l.value;
|
|
607
588
|
u.remove(this);
|
|
608
589
|
}
|
|
609
|
-
} catch (
|
|
610
|
-
t = { error:
|
|
590
|
+
} catch (y) {
|
|
591
|
+
t = { error: y };
|
|
611
592
|
} finally {
|
|
612
593
|
try {
|
|
613
594
|
l && !l.done && (r = s.return) && r.call(s);
|
|
@@ -619,29 +600,29 @@ var me = function() {
|
|
|
619
600
|
else
|
|
620
601
|
a.remove(this);
|
|
621
602
|
var h = this.initialTeardown;
|
|
622
|
-
if (
|
|
603
|
+
if (N(h))
|
|
623
604
|
try {
|
|
624
605
|
h();
|
|
625
|
-
} catch (
|
|
626
|
-
o =
|
|
606
|
+
} catch (y) {
|
|
607
|
+
o = y instanceof we ? y.errors : [y];
|
|
627
608
|
}
|
|
628
|
-
var
|
|
629
|
-
if (
|
|
609
|
+
var f = this._finalizers;
|
|
610
|
+
if (f) {
|
|
630
611
|
this._finalizers = null;
|
|
631
612
|
try {
|
|
632
|
-
for (var
|
|
633
|
-
var
|
|
613
|
+
for (var c = $e(f), p = c.next(); !p.done; p = c.next()) {
|
|
614
|
+
var d = p.value;
|
|
634
615
|
try {
|
|
635
|
-
|
|
636
|
-
} catch (
|
|
637
|
-
o = o != null ? o : [],
|
|
616
|
+
at(d);
|
|
617
|
+
} catch (y) {
|
|
618
|
+
o = o != null ? o : [], y instanceof we ? o = Ue(Ue([], Re(o)), Re(y.errors)) : o.push(y);
|
|
638
619
|
}
|
|
639
620
|
}
|
|
640
|
-
} catch (
|
|
641
|
-
n = { error:
|
|
621
|
+
} catch (y) {
|
|
622
|
+
n = { error: y };
|
|
642
623
|
} finally {
|
|
643
624
|
try {
|
|
644
|
-
|
|
625
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
645
626
|
} finally {
|
|
646
627
|
if (n)
|
|
647
628
|
throw n.error;
|
|
@@ -649,13 +630,13 @@ var me = function() {
|
|
|
649
630
|
}
|
|
650
631
|
}
|
|
651
632
|
if (o)
|
|
652
|
-
throw new
|
|
633
|
+
throw new we(o);
|
|
653
634
|
}
|
|
654
635
|
}, e.prototype.add = function(t) {
|
|
655
636
|
var r;
|
|
656
637
|
if (t && t !== this)
|
|
657
638
|
if (this.closed)
|
|
658
|
-
|
|
639
|
+
at(t);
|
|
659
640
|
else {
|
|
660
641
|
if (t instanceof e) {
|
|
661
642
|
if (t.closed || t._hasParent(this))
|
|
@@ -672,56 +653,52 @@ var me = function() {
|
|
|
672
653
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
673
654
|
}, e.prototype._removeParent = function(t) {
|
|
674
655
|
var r = this._parentage;
|
|
675
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
656
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
|
|
676
657
|
}, e.prototype.remove = function(t) {
|
|
677
658
|
var r = this._finalizers;
|
|
678
|
-
r &&
|
|
659
|
+
r && Ge(r, t), t instanceof e && t._removeParent(this);
|
|
679
660
|
}, e.EMPTY = function() {
|
|
680
661
|
var t = new e();
|
|
681
662
|
return t.closed = !0, t;
|
|
682
663
|
}(), e;
|
|
683
|
-
}(),
|
|
684
|
-
function
|
|
685
|
-
return e instanceof
|
|
686
|
-
}
|
|
687
|
-
function
|
|
688
|
-
|
|
689
|
-
}
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
Promise: void 0,
|
|
694
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
695
|
-
useDeprecatedNextContext: !1
|
|
696
|
-
}, $r = {
|
|
664
|
+
}(), Mt = be.EMPTY;
|
|
665
|
+
function Nt(e) {
|
|
666
|
+
return e instanceof be || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
667
|
+
}
|
|
668
|
+
function at(e) {
|
|
669
|
+
N(e) ? e() : e.unsubscribe();
|
|
670
|
+
}
|
|
671
|
+
var Gr = {
|
|
672
|
+
Promise: void 0
|
|
673
|
+
}, Dr = {
|
|
697
674
|
setTimeout: function(e, t) {
|
|
698
675
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
699
676
|
r[n - 2] = arguments[n];
|
|
700
|
-
return setTimeout.apply(void 0,
|
|
677
|
+
return setTimeout.apply(void 0, Ue([e, t], Re(r)));
|
|
701
678
|
},
|
|
702
679
|
clearTimeout: function(e) {
|
|
703
680
|
return clearTimeout(e);
|
|
704
681
|
},
|
|
705
682
|
delegate: void 0
|
|
706
683
|
};
|
|
707
|
-
function
|
|
708
|
-
|
|
684
|
+
function Fr(e) {
|
|
685
|
+
Dr.setTimeout(function() {
|
|
709
686
|
throw e;
|
|
710
687
|
});
|
|
711
688
|
}
|
|
712
|
-
function
|
|
689
|
+
function st() {
|
|
713
690
|
}
|
|
714
691
|
function he(e) {
|
|
715
692
|
e();
|
|
716
693
|
}
|
|
717
|
-
var
|
|
718
|
-
|
|
694
|
+
var $t = function(e) {
|
|
695
|
+
oe(t, e);
|
|
719
696
|
function t(r) {
|
|
720
697
|
var n = e.call(this) || this;
|
|
721
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
698
|
+
return n.isStopped = !1, r ? (n.destination = r, Nt(r) && r.add(n)) : n.destination = Vr, n;
|
|
722
699
|
}
|
|
723
700
|
return t.create = function(r, n, i) {
|
|
724
|
-
return new
|
|
701
|
+
return new De(r, n, i);
|
|
725
702
|
}, t.prototype.next = function(r) {
|
|
726
703
|
this.isStopped || this._next(r);
|
|
727
704
|
}, t.prototype.error = function(r) {
|
|
@@ -745,7 +722,7 @@ var Ot = function(e) {
|
|
|
745
722
|
this.unsubscribe();
|
|
746
723
|
}
|
|
747
724
|
}, t;
|
|
748
|
-
}(
|
|
725
|
+
}(be), jr = function() {
|
|
749
726
|
function e(t) {
|
|
750
727
|
this.partialObserver = t;
|
|
751
728
|
}
|
|
@@ -776,43 +753,43 @@ var Ot = function(e) {
|
|
|
776
753
|
se(r);
|
|
777
754
|
}
|
|
778
755
|
}, e;
|
|
779
|
-
}(),
|
|
780
|
-
|
|
756
|
+
}(), De = function(e) {
|
|
757
|
+
oe(t, e);
|
|
781
758
|
function t(r, n, i) {
|
|
782
759
|
var o = e.call(this) || this, a;
|
|
783
|
-
return
|
|
760
|
+
return N(r) || !r ? a = {
|
|
784
761
|
next: r != null ? r : void 0,
|
|
785
762
|
error: n != null ? n : void 0,
|
|
786
763
|
complete: i != null ? i : void 0
|
|
787
|
-
} : a = r, o.destination = new
|
|
764
|
+
} : a = r, o.destination = new jr(a), o;
|
|
788
765
|
}
|
|
789
766
|
return t;
|
|
790
|
-
}(
|
|
767
|
+
}($t);
|
|
791
768
|
function se(e) {
|
|
792
|
-
|
|
769
|
+
Fr(e);
|
|
793
770
|
}
|
|
794
|
-
function
|
|
771
|
+
function kr(e) {
|
|
795
772
|
throw e;
|
|
796
773
|
}
|
|
797
|
-
var
|
|
774
|
+
var Vr = {
|
|
798
775
|
closed: !0,
|
|
799
|
-
next:
|
|
800
|
-
error:
|
|
801
|
-
complete:
|
|
802
|
-
},
|
|
776
|
+
next: st,
|
|
777
|
+
error: kr,
|
|
778
|
+
complete: st
|
|
779
|
+
}, zr = function() {
|
|
803
780
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
804
781
|
}();
|
|
805
|
-
function
|
|
782
|
+
function Wr(e) {
|
|
806
783
|
return e;
|
|
807
784
|
}
|
|
808
|
-
function
|
|
809
|
-
return e.length === 0 ?
|
|
785
|
+
function Xr(e) {
|
|
786
|
+
return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
|
|
810
787
|
return e.reduce(function(n, i) {
|
|
811
788
|
return i(n);
|
|
812
789
|
}, r);
|
|
813
790
|
};
|
|
814
791
|
}
|
|
815
|
-
var
|
|
792
|
+
var ut = function() {
|
|
816
793
|
function e(t) {
|
|
817
794
|
t && (this._subscribe = t);
|
|
818
795
|
}
|
|
@@ -820,7 +797,7 @@ var it = function() {
|
|
|
820
797
|
var r = new e();
|
|
821
798
|
return r.source = this, r.operator = t, r;
|
|
822
799
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
823
|
-
var i = this, o =
|
|
800
|
+
var i = this, o = Zr(t) ? t : new De(t, r, n);
|
|
824
801
|
return he(function() {
|
|
825
802
|
var a = i, s = a.operator, l = a.source;
|
|
826
803
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -833,8 +810,8 @@ var it = function() {
|
|
|
833
810
|
}
|
|
834
811
|
}, e.prototype.forEach = function(t, r) {
|
|
835
812
|
var n = this;
|
|
836
|
-
return r =
|
|
837
|
-
var a = new
|
|
813
|
+
return r = lt(r), new r(function(i, o) {
|
|
814
|
+
var a = new De({
|
|
838
815
|
next: function(s) {
|
|
839
816
|
try {
|
|
840
817
|
t(s);
|
|
@@ -850,15 +827,15 @@ var it = function() {
|
|
|
850
827
|
}, e.prototype._subscribe = function(t) {
|
|
851
828
|
var r;
|
|
852
829
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
853
|
-
}, e.prototype[
|
|
830
|
+
}, e.prototype[zr] = function() {
|
|
854
831
|
return this;
|
|
855
832
|
}, e.prototype.pipe = function() {
|
|
856
833
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
857
834
|
t[r] = arguments[r];
|
|
858
|
-
return
|
|
835
|
+
return Xr(t)(this);
|
|
859
836
|
}, e.prototype.toPromise = function(t) {
|
|
860
837
|
var r = this;
|
|
861
|
-
return t =
|
|
838
|
+
return t = lt(t), new t(function(n, i) {
|
|
862
839
|
var o;
|
|
863
840
|
r.subscribe(function(a) {
|
|
864
841
|
return o = a;
|
|
@@ -872,32 +849,32 @@ var it = function() {
|
|
|
872
849
|
return new e(t);
|
|
873
850
|
}, e;
|
|
874
851
|
}();
|
|
875
|
-
function
|
|
852
|
+
function lt(e) {
|
|
876
853
|
var t;
|
|
877
|
-
return (t = e != null ? e :
|
|
854
|
+
return (t = e != null ? e : Gr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
878
855
|
}
|
|
879
|
-
function
|
|
880
|
-
return e &&
|
|
856
|
+
function qr(e) {
|
|
857
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
881
858
|
}
|
|
882
|
-
function
|
|
883
|
-
return e && e instanceof
|
|
859
|
+
function Zr(e) {
|
|
860
|
+
return e && e instanceof $t || qr(e) && Nt(e);
|
|
884
861
|
}
|
|
885
|
-
var
|
|
862
|
+
var Yr = Lt(function(e) {
|
|
886
863
|
return function() {
|
|
887
864
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
888
865
|
};
|
|
889
|
-
}),
|
|
890
|
-
|
|
866
|
+
}), Rt = function(e) {
|
|
867
|
+
oe(t, e);
|
|
891
868
|
function t() {
|
|
892
869
|
var r = e.call(this) || this;
|
|
893
870
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
894
871
|
}
|
|
895
872
|
return t.prototype.lift = function(r) {
|
|
896
|
-
var n = new
|
|
873
|
+
var n = new ht(this, this);
|
|
897
874
|
return n.operator = r, n;
|
|
898
875
|
}, t.prototype._throwIfClosed = function() {
|
|
899
876
|
if (this.closed)
|
|
900
|
-
throw new
|
|
877
|
+
throw new Yr();
|
|
901
878
|
}, t.prototype.next = function(r) {
|
|
902
879
|
var n = this;
|
|
903
880
|
he(function() {
|
|
@@ -905,7 +882,7 @@ var Xr = Bt(function(e) {
|
|
|
905
882
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
906
883
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
907
884
|
try {
|
|
908
|
-
for (var a =
|
|
885
|
+
for (var a = $e(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
909
886
|
var l = s.value;
|
|
910
887
|
l.next(r);
|
|
911
888
|
}
|
|
@@ -954,20 +931,20 @@ var Xr = Bt(function(e) {
|
|
|
954
931
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
955
932
|
}, t.prototype._innerSubscribe = function(r) {
|
|
956
933
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
957
|
-
return o || a ?
|
|
958
|
-
n.currentObservers = null,
|
|
934
|
+
return o || a ? Mt : (this.currentObservers = null, s.push(r), new be(function() {
|
|
935
|
+
n.currentObservers = null, Ge(s, r);
|
|
959
936
|
}));
|
|
960
937
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
961
938
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
962
939
|
i ? r.error(o) : a && r.complete();
|
|
963
940
|
}, t.prototype.asObservable = function() {
|
|
964
|
-
var r = new
|
|
941
|
+
var r = new ut();
|
|
965
942
|
return r.source = this, r;
|
|
966
943
|
}, t.create = function(r, n) {
|
|
967
|
-
return new
|
|
944
|
+
return new ht(r, n);
|
|
968
945
|
}, t;
|
|
969
|
-
}(
|
|
970
|
-
|
|
946
|
+
}(ut), ht = function(e) {
|
|
947
|
+
oe(t, e);
|
|
971
948
|
function t(r, n) {
|
|
972
949
|
var i = e.call(this) || this;
|
|
973
950
|
return i.destination = r, i.source = n, i;
|
|
@@ -983,17 +960,17 @@ var Xr = Bt(function(e) {
|
|
|
983
960
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
984
961
|
}, t.prototype._subscribe = function(r) {
|
|
985
962
|
var n, i;
|
|
986
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
963
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
|
|
987
964
|
}, t;
|
|
988
|
-
}(
|
|
965
|
+
}(Rt), Ut = {
|
|
989
966
|
now: function() {
|
|
990
|
-
return (
|
|
967
|
+
return (Ut.delegate || Date).now();
|
|
991
968
|
},
|
|
992
969
|
delegate: void 0
|
|
993
|
-
},
|
|
994
|
-
|
|
970
|
+
}, Qr = function(e) {
|
|
971
|
+
oe(t, e);
|
|
995
972
|
function t(r, n, i) {
|
|
996
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
973
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
|
|
997
974
|
var o = e.call(this) || this;
|
|
998
975
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
999
976
|
}
|
|
@@ -1013,24 +990,24 @@ var Xr = Bt(function(e) {
|
|
|
1013
990
|
u && o.splice(0, u + 1);
|
|
1014
991
|
}
|
|
1015
992
|
}, t;
|
|
1016
|
-
}(
|
|
1017
|
-
const
|
|
1018
|
-
if (
|
|
1019
|
-
const r = new
|
|
1020
|
-
|
|
993
|
+
}(Rt);
|
|
994
|
+
const ct = [], ft = {}, Jr = (e, t = 0) => {
|
|
995
|
+
if (ct.indexOf(e) == -1) {
|
|
996
|
+
const r = new Qr(t);
|
|
997
|
+
ft[e] = r, ct.push(e);
|
|
1021
998
|
}
|
|
1022
|
-
return
|
|
999
|
+
return ft[e];
|
|
1023
1000
|
}, G = [];
|
|
1024
|
-
function
|
|
1001
|
+
function Kr(e, t) {
|
|
1025
1002
|
return {
|
|
1026
|
-
subscribe:
|
|
1003
|
+
subscribe: ve(e, t).subscribe
|
|
1027
1004
|
};
|
|
1028
1005
|
}
|
|
1029
|
-
function
|
|
1006
|
+
function ve(e, t = O) {
|
|
1030
1007
|
let r;
|
|
1031
1008
|
const n = /* @__PURE__ */ new Set();
|
|
1032
1009
|
function i(s) {
|
|
1033
|
-
if (
|
|
1010
|
+
if (Ct(e, s) && (e = s, r)) {
|
|
1034
1011
|
const l = !G.length;
|
|
1035
1012
|
for (const u of n)
|
|
1036
1013
|
u[1](), G.push(u, e);
|
|
@@ -1052,145 +1029,184 @@ function be(e, t = O) {
|
|
|
1052
1029
|
}
|
|
1053
1030
|
return { set: i, update: o, subscribe: a };
|
|
1054
1031
|
}
|
|
1055
|
-
function
|
|
1032
|
+
function X(e, t, r) {
|
|
1056
1033
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1057
1034
|
if (!i.every(Boolean))
|
|
1058
1035
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1059
1036
|
const o = t.length < 2;
|
|
1060
|
-
return
|
|
1037
|
+
return Kr(r, (a, s) => {
|
|
1061
1038
|
let l = !1;
|
|
1062
1039
|
const u = [];
|
|
1063
|
-
let h = 0,
|
|
1064
|
-
const
|
|
1040
|
+
let h = 0, f = O;
|
|
1041
|
+
const c = () => {
|
|
1065
1042
|
if (h)
|
|
1066
1043
|
return;
|
|
1067
|
-
|
|
1068
|
-
const
|
|
1069
|
-
o ? a(
|
|
1070
|
-
},
|
|
1071
|
-
(
|
|
1072
|
-
|
|
1044
|
+
f();
|
|
1045
|
+
const d = t(n ? u[0] : u, a, s);
|
|
1046
|
+
o ? a(d) : f = Ye(d) ? d : O;
|
|
1047
|
+
}, p = i.map(
|
|
1048
|
+
(d, y) => At(
|
|
1049
|
+
d,
|
|
1073
1050
|
(S) => {
|
|
1074
|
-
u[
|
|
1051
|
+
u[y] = S, h &= ~(1 << y), l && c();
|
|
1075
1052
|
},
|
|
1076
1053
|
() => {
|
|
1077
|
-
h |= 1 <<
|
|
1054
|
+
h |= 1 << y;
|
|
1078
1055
|
}
|
|
1079
1056
|
)
|
|
1080
1057
|
);
|
|
1081
|
-
return l = !0,
|
|
1082
|
-
|
|
1058
|
+
return l = !0, c(), function() {
|
|
1059
|
+
re(p), f(), l = !1;
|
|
1083
1060
|
};
|
|
1084
1061
|
});
|
|
1085
1062
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1063
|
+
function en(e) {
|
|
1064
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1088
1065
|
}
|
|
1089
|
-
var
|
|
1090
|
-
return
|
|
1066
|
+
var tn = function(t) {
|
|
1067
|
+
return rn(t) && !nn(t);
|
|
1091
1068
|
};
|
|
1092
|
-
function
|
|
1069
|
+
function rn(e) {
|
|
1093
1070
|
return !!e && typeof e == "object";
|
|
1094
1071
|
}
|
|
1095
|
-
function
|
|
1072
|
+
function nn(e) {
|
|
1096
1073
|
var t = Object.prototype.toString.call(e);
|
|
1097
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1074
|
+
return t === "[object RegExp]" || t === "[object Date]" || sn(e);
|
|
1098
1075
|
}
|
|
1099
|
-
var
|
|
1100
|
-
function
|
|
1101
|
-
return e.$$typeof ===
|
|
1076
|
+
var on = typeof Symbol == "function" && Symbol.for, an = on ? Symbol.for("react.element") : 60103;
|
|
1077
|
+
function sn(e) {
|
|
1078
|
+
return e.$$typeof === an;
|
|
1102
1079
|
}
|
|
1103
|
-
function
|
|
1080
|
+
function un(e) {
|
|
1104
1081
|
return Array.isArray(e) ? [] : {};
|
|
1105
1082
|
}
|
|
1106
|
-
function
|
|
1107
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1083
|
+
function ee(e, t) {
|
|
1084
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(un(e), e, t) : e;
|
|
1108
1085
|
}
|
|
1109
|
-
function
|
|
1086
|
+
function ln(e, t, r) {
|
|
1110
1087
|
return e.concat(t).map(function(n) {
|
|
1111
|
-
return
|
|
1088
|
+
return ee(n, r);
|
|
1112
1089
|
});
|
|
1113
1090
|
}
|
|
1114
|
-
function
|
|
1091
|
+
function hn(e, t) {
|
|
1115
1092
|
if (!t.customMerge)
|
|
1116
|
-
return
|
|
1093
|
+
return j;
|
|
1117
1094
|
var r = t.customMerge(e);
|
|
1118
|
-
return typeof r == "function" ? r :
|
|
1095
|
+
return typeof r == "function" ? r : j;
|
|
1119
1096
|
}
|
|
1120
|
-
function
|
|
1097
|
+
function cn(e) {
|
|
1121
1098
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1122
1099
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1123
1100
|
}) : [];
|
|
1124
1101
|
}
|
|
1125
|
-
function
|
|
1126
|
-
return Object.keys(e).concat(
|
|
1102
|
+
function pt(e) {
|
|
1103
|
+
return Object.keys(e).concat(cn(e));
|
|
1127
1104
|
}
|
|
1128
|
-
function
|
|
1105
|
+
function Gt(e, t) {
|
|
1129
1106
|
try {
|
|
1130
1107
|
return t in e;
|
|
1131
1108
|
} catch (r) {
|
|
1132
1109
|
return !1;
|
|
1133
1110
|
}
|
|
1134
1111
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1112
|
+
function fn(e, t) {
|
|
1113
|
+
return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1137
1114
|
}
|
|
1138
|
-
function
|
|
1115
|
+
function pn(e, t, r) {
|
|
1139
1116
|
var n = {};
|
|
1140
|
-
return r.isMergeableObject(e) &&
|
|
1141
|
-
n[i] =
|
|
1142
|
-
}),
|
|
1143
|
-
|
|
1117
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1118
|
+
n[i] = ee(e[i], r);
|
|
1119
|
+
}), pt(t).forEach(function(i) {
|
|
1120
|
+
fn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1144
1121
|
}), n;
|
|
1145
1122
|
}
|
|
1146
|
-
function
|
|
1147
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1123
|
+
function j(e, t, r) {
|
|
1124
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1148
1125
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1149
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1126
|
+
return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ee(t, r);
|
|
1150
1127
|
}
|
|
1151
|
-
|
|
1128
|
+
j.all = function(t, r) {
|
|
1152
1129
|
if (!Array.isArray(t))
|
|
1153
1130
|
throw new Error("first argument should be an array");
|
|
1154
1131
|
return t.reduce(function(n, i) {
|
|
1155
|
-
return
|
|
1132
|
+
return j(n, i, r);
|
|
1156
1133
|
}, {});
|
|
1157
1134
|
};
|
|
1158
|
-
var
|
|
1159
|
-
const
|
|
1160
|
-
function
|
|
1161
|
-
|
|
1135
|
+
var dn = j, mn = dn;
|
|
1136
|
+
const bn = /* @__PURE__ */ en(mn);
|
|
1137
|
+
var Fe = function(e, t) {
|
|
1138
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1139
|
+
r.__proto__ = n;
|
|
1140
|
+
} || function(r, n) {
|
|
1141
|
+
for (var i in n)
|
|
1142
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1143
|
+
}, Fe(e, t);
|
|
1144
|
+
};
|
|
1145
|
+
function ye(e, t) {
|
|
1146
|
+
if (typeof t != "function" && t !== null)
|
|
1147
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1148
|
+
Fe(e, t);
|
|
1149
|
+
function r() {
|
|
1150
|
+
this.constructor = e;
|
|
1151
|
+
}
|
|
1152
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1153
|
+
}
|
|
1154
|
+
var M = function() {
|
|
1155
|
+
return M = Object.assign || function(t) {
|
|
1156
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1157
|
+
r = arguments[n];
|
|
1158
|
+
for (var o in r)
|
|
1159
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1160
|
+
}
|
|
1161
|
+
return t;
|
|
1162
|
+
}, M.apply(this, arguments);
|
|
1163
|
+
};
|
|
1164
|
+
function vn(e, t) {
|
|
1165
|
+
var r = {};
|
|
1166
|
+
for (var n in e)
|
|
1167
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1168
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1169
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1170
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1171
|
+
return r;
|
|
1172
|
+
}
|
|
1173
|
+
function Pe(e, t, r) {
|
|
1174
|
+
if (r || arguments.length === 2)
|
|
1175
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1176
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1177
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1178
|
+
}
|
|
1179
|
+
function He(e, t) {
|
|
1180
|
+
var r = t && t.cache ? t.cache : Sn, n = t && t.serializer ? t.serializer : En, i = t && t.strategy ? t.strategy : xn;
|
|
1162
1181
|
return i(e, {
|
|
1163
1182
|
cache: r,
|
|
1164
1183
|
serializer: n
|
|
1165
1184
|
});
|
|
1166
1185
|
}
|
|
1167
|
-
function
|
|
1186
|
+
function yn(e) {
|
|
1168
1187
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1169
1188
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var i =
|
|
1189
|
+
function gn(e, t, r, n) {
|
|
1190
|
+
var i = yn(n) ? n : r(n), o = t.get(i);
|
|
1172
1191
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1173
1192
|
}
|
|
1174
|
-
function
|
|
1193
|
+
function Dt(e, t, r) {
|
|
1175
1194
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1176
1195
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1177
1196
|
}
|
|
1178
|
-
function
|
|
1197
|
+
function Ft(e, t, r, n, i) {
|
|
1179
1198
|
return r.bind(t, e, n, i);
|
|
1180
1199
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var r = e.length === 1 ?
|
|
1183
|
-
return
|
|
1200
|
+
function xn(e, t) {
|
|
1201
|
+
var r = e.length === 1 ? gn : Dt;
|
|
1202
|
+
return Ft(e, this, r, t.cache.create(), t.serializer);
|
|
1184
1203
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1204
|
+
function _n(e, t) {
|
|
1205
|
+
return Ft(e, this, Dt, t.cache.create(), t.serializer);
|
|
1187
1206
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return Xe(e, this, Rt, t.cache.create(), t.serializer);
|
|
1190
|
-
}
|
|
1191
|
-
var yn = function() {
|
|
1207
|
+
var En = function() {
|
|
1192
1208
|
return JSON.stringify(arguments);
|
|
1193
|
-
},
|
|
1209
|
+
}, Tn = (
|
|
1194
1210
|
/** @class */
|
|
1195
1211
|
function() {
|
|
1196
1212
|
function e() {
|
|
@@ -1202,62 +1218,71 @@ var yn = function() {
|
|
|
1202
1218
|
this.cache[t] = r;
|
|
1203
1219
|
}, e;
|
|
1204
1220
|
}()
|
|
1205
|
-
),
|
|
1221
|
+
), Sn = {
|
|
1206
1222
|
create: function() {
|
|
1207
|
-
return new
|
|
1223
|
+
return new Tn();
|
|
1208
1224
|
}
|
|
1209
|
-
},
|
|
1210
|
-
variadic:
|
|
1211
|
-
|
|
1212
|
-
|
|
1225
|
+
}, Ie = {
|
|
1226
|
+
variadic: _n
|
|
1227
|
+
}, pe = function() {
|
|
1228
|
+
return pe = Object.assign || function(t) {
|
|
1229
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1230
|
+
r = arguments[n];
|
|
1231
|
+
for (var o in r)
|
|
1232
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1233
|
+
}
|
|
1234
|
+
return t;
|
|
1235
|
+
}, pe.apply(this, arguments);
|
|
1236
|
+
};
|
|
1237
|
+
var b;
|
|
1213
1238
|
(function(e) {
|
|
1214
1239
|
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";
|
|
1215
1240
|
})(b || (b = {}));
|
|
1216
|
-
var
|
|
1241
|
+
var x;
|
|
1217
1242
|
(function(e) {
|
|
1218
1243
|
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";
|
|
1219
|
-
})(
|
|
1220
|
-
var
|
|
1244
|
+
})(x || (x = {}));
|
|
1245
|
+
var k;
|
|
1221
1246
|
(function(e) {
|
|
1222
1247
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1223
|
-
})(
|
|
1224
|
-
function
|
|
1225
|
-
return e.type ===
|
|
1248
|
+
})(k || (k = {}));
|
|
1249
|
+
function dt(e) {
|
|
1250
|
+
return e.type === x.literal;
|
|
1226
1251
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return e.type ===
|
|
1252
|
+
function wn(e) {
|
|
1253
|
+
return e.type === x.argument;
|
|
1229
1254
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return e.type ===
|
|
1255
|
+
function jt(e) {
|
|
1256
|
+
return e.type === x.number;
|
|
1232
1257
|
}
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1258
|
+
function kt(e) {
|
|
1259
|
+
return e.type === x.date;
|
|
1235
1260
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1261
|
+
function Vt(e) {
|
|
1262
|
+
return e.type === x.time;
|
|
1238
1263
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1264
|
+
function zt(e) {
|
|
1265
|
+
return e.type === x.select;
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1267
|
+
function Wt(e) {
|
|
1268
|
+
return e.type === x.plural;
|
|
1244
1269
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1270
|
+
function Pn(e) {
|
|
1271
|
+
return e.type === x.pound;
|
|
1247
1272
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1273
|
+
function Xt(e) {
|
|
1274
|
+
return e.type === x.tag;
|
|
1250
1275
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1276
|
+
function qt(e) {
|
|
1277
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
1253
1278
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1279
|
+
function je(e) {
|
|
1280
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
1256
1281
|
}
|
|
1257
|
-
var
|
|
1258
|
-
function
|
|
1282
|
+
var Zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Hn = /(?:[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;
|
|
1283
|
+
function In(e) {
|
|
1259
1284
|
var t = {};
|
|
1260
|
-
return e.replace(
|
|
1285
|
+
return e.replace(Hn, function(r) {
|
|
1261
1286
|
var n = r.length;
|
|
1262
1287
|
switch (r[0]) {
|
|
1263
1288
|
case "G":
|
|
@@ -1346,36 +1371,46 @@ function Sn(e) {
|
|
|
1346
1371
|
return "";
|
|
1347
1372
|
}), t;
|
|
1348
1373
|
}
|
|
1349
|
-
var
|
|
1350
|
-
function
|
|
1374
|
+
var _ = function() {
|
|
1375
|
+
return _ = Object.assign || function(t) {
|
|
1376
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1377
|
+
r = arguments[n];
|
|
1378
|
+
for (var o in r)
|
|
1379
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1380
|
+
}
|
|
1381
|
+
return t;
|
|
1382
|
+
}, _.apply(this, arguments);
|
|
1383
|
+
};
|
|
1384
|
+
var Bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1385
|
+
function Cn(e) {
|
|
1351
1386
|
if (e.length === 0)
|
|
1352
1387
|
throw new Error("Number skeleton cannot be empty");
|
|
1353
|
-
for (var t = e.split(
|
|
1354
|
-
return
|
|
1388
|
+
for (var t = e.split(Bn).filter(function(c) {
|
|
1389
|
+
return c.length > 0;
|
|
1355
1390
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1356
1391
|
var o = i[n], a = o.split("/");
|
|
1357
1392
|
if (a.length === 0)
|
|
1358
1393
|
throw new Error("Invalid number skeleton");
|
|
1359
1394
|
for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
1360
|
-
var
|
|
1361
|
-
if (
|
|
1395
|
+
var f = h[u];
|
|
1396
|
+
if (f.length === 0)
|
|
1362
1397
|
throw new Error("Invalid number skeleton");
|
|
1363
1398
|
}
|
|
1364
1399
|
r.push({ stem: s, options: l });
|
|
1365
1400
|
}
|
|
1366
1401
|
return r;
|
|
1367
1402
|
}
|
|
1368
|
-
function
|
|
1403
|
+
function An(e) {
|
|
1369
1404
|
return e.replace(/^(.*?)-/, "");
|
|
1370
1405
|
}
|
|
1371
|
-
var
|
|
1372
|
-
function
|
|
1406
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Yt = /^(@+)?(\+|#+)?[rs]?$/g, On = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1407
|
+
function bt(e) {
|
|
1373
1408
|
var t = {};
|
|
1374
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1409
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Yt, function(r, n, i) {
|
|
1375
1410
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1376
1411
|
}), t;
|
|
1377
1412
|
}
|
|
1378
|
-
function
|
|
1413
|
+
function Jt(e) {
|
|
1379
1414
|
switch (e) {
|
|
1380
1415
|
case "sign-auto":
|
|
1381
1416
|
return {
|
|
@@ -1415,7 +1450,7 @@ function qt(e) {
|
|
|
1415
1450
|
};
|
|
1416
1451
|
}
|
|
1417
1452
|
}
|
|
1418
|
-
function
|
|
1453
|
+
function Ln(e) {
|
|
1419
1454
|
var t;
|
|
1420
1455
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1421
1456
|
notation: "engineering"
|
|
@@ -1423,17 +1458,17 @@ function Bn(e) {
|
|
|
1423
1458
|
notation: "scientific"
|
|
1424
1459
|
}, e = e.slice(1)), t) {
|
|
1425
1460
|
var r = e.slice(0, 2);
|
|
1426
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1461
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1427
1462
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1428
1463
|
t.minimumIntegerDigits = e.length;
|
|
1429
1464
|
}
|
|
1430
1465
|
return t;
|
|
1431
1466
|
}
|
|
1432
|
-
function
|
|
1433
|
-
var t = {}, r =
|
|
1467
|
+
function vt(e) {
|
|
1468
|
+
var t = {}, r = Jt(e);
|
|
1434
1469
|
return r || t;
|
|
1435
1470
|
}
|
|
1436
|
-
function
|
|
1471
|
+
function Mn(e) {
|
|
1437
1472
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1438
1473
|
var i = n[r];
|
|
1439
1474
|
switch (i.stem) {
|
|
@@ -1457,7 +1492,7 @@ function Cn(e) {
|
|
|
1457
1492
|
continue;
|
|
1458
1493
|
case "measure-unit":
|
|
1459
1494
|
case "unit":
|
|
1460
|
-
t.style = "unit", t.unit =
|
|
1495
|
+
t.style = "unit", t.unit = An(i.options[0]);
|
|
1461
1496
|
continue;
|
|
1462
1497
|
case "compact-short":
|
|
1463
1498
|
case "K":
|
|
@@ -1468,13 +1503,13 @@ function Cn(e) {
|
|
|
1468
1503
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1469
1504
|
continue;
|
|
1470
1505
|
case "scientific":
|
|
1471
|
-
t =
|
|
1472
|
-
return
|
|
1506
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1507
|
+
return _(_({}, l), vt(u));
|
|
1473
1508
|
}, {}));
|
|
1474
1509
|
continue;
|
|
1475
1510
|
case "engineering":
|
|
1476
|
-
t =
|
|
1477
|
-
return
|
|
1511
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1512
|
+
return _(_({}, l), vt(u));
|
|
1478
1513
|
}, {}));
|
|
1479
1514
|
continue;
|
|
1480
1515
|
case "notation-simple":
|
|
@@ -1519,41 +1554,41 @@ function Cn(e) {
|
|
|
1519
1554
|
case "integer-width":
|
|
1520
1555
|
if (i.options.length > 1)
|
|
1521
1556
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1522
|
-
i.options[0].replace(
|
|
1557
|
+
i.options[0].replace(On, function(l, u, h, f, c, p) {
|
|
1523
1558
|
if (u)
|
|
1524
1559
|
t.minimumIntegerDigits = h.length;
|
|
1525
1560
|
else {
|
|
1526
|
-
if (
|
|
1561
|
+
if (f && c)
|
|
1527
1562
|
throw new Error("We currently do not support maximum integer digits");
|
|
1528
|
-
if (
|
|
1563
|
+
if (p)
|
|
1529
1564
|
throw new Error("We currently do not support exact integer digits");
|
|
1530
1565
|
}
|
|
1531
1566
|
return "";
|
|
1532
1567
|
});
|
|
1533
1568
|
continue;
|
|
1534
1569
|
}
|
|
1535
|
-
if (
|
|
1570
|
+
if (Qt.test(i.stem)) {
|
|
1536
1571
|
t.minimumIntegerDigits = i.stem.length;
|
|
1537
1572
|
continue;
|
|
1538
1573
|
}
|
|
1539
|
-
if (
|
|
1574
|
+
if (mt.test(i.stem)) {
|
|
1540
1575
|
if (i.options.length > 1)
|
|
1541
1576
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1542
|
-
i.stem.replace(
|
|
1543
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1577
|
+
i.stem.replace(mt, function(l, u, h, f, c, p) {
|
|
1578
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1544
1579
|
});
|
|
1545
1580
|
var o = i.options[0];
|
|
1546
|
-
o === "w" ? t =
|
|
1581
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
|
|
1547
1582
|
continue;
|
|
1548
1583
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
t =
|
|
1584
|
+
if (Yt.test(i.stem)) {
|
|
1585
|
+
t = _(_({}, t), bt(i.stem));
|
|
1551
1586
|
continue;
|
|
1552
1587
|
}
|
|
1553
|
-
var a =
|
|
1554
|
-
a && (t =
|
|
1555
|
-
var s =
|
|
1556
|
-
s && (t =
|
|
1588
|
+
var a = Jt(i.stem);
|
|
1589
|
+
a && (t = _(_({}, t), a));
|
|
1590
|
+
var s = Ln(i.stem);
|
|
1591
|
+
s && (t = _(_({}, t), s));
|
|
1557
1592
|
}
|
|
1558
1593
|
return t;
|
|
1559
1594
|
}
|
|
@@ -2972,13 +3007,13 @@ var ue = {
|
|
|
2972
3007
|
"h"
|
|
2973
3008
|
]
|
|
2974
3009
|
};
|
|
2975
|
-
function
|
|
3010
|
+
function Nn(e, t) {
|
|
2976
3011
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2977
3012
|
var i = e.charAt(n);
|
|
2978
3013
|
if (i === "j") {
|
|
2979
3014
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2980
3015
|
o++, n++;
|
|
2981
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3016
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
|
|
2982
3017
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2983
3018
|
r += l;
|
|
2984
3019
|
for (; a-- > 0; )
|
|
@@ -2988,7 +3023,7 @@ function An(e, t) {
|
|
|
2988
3023
|
}
|
|
2989
3024
|
return r;
|
|
2990
3025
|
}
|
|
2991
|
-
function
|
|
3026
|
+
function $n(e) {
|
|
2992
3027
|
var t = e.hourCycle;
|
|
2993
3028
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2994
3029
|
e.hourCycles && // @ts-ignore
|
|
@@ -3010,20 +3045,20 @@ function On(e) {
|
|
|
3010
3045
|
var i = ue[n || ""] || ue[r || ""] || ue["".concat(r, "-001")] || ue["001"];
|
|
3011
3046
|
return i[0];
|
|
3012
3047
|
}
|
|
3013
|
-
var
|
|
3014
|
-
function
|
|
3048
|
+
var Be, Rn = new RegExp("^".concat(Zt.source, "*")), Un = new RegExp("".concat(Zt.source, "*$"));
|
|
3049
|
+
function v(e, t) {
|
|
3015
3050
|
return { start: e, end: t };
|
|
3016
3051
|
}
|
|
3017
|
-
var
|
|
3052
|
+
var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Wn = zn ? Number.isSafeInteger : function(e) {
|
|
3018
3053
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3019
|
-
},
|
|
3054
|
+
}, ke = !0;
|
|
3020
3055
|
try {
|
|
3021
|
-
var
|
|
3022
|
-
|
|
3056
|
+
var Xn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3057
|
+
ke = ((Be = Xn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
3023
3058
|
} catch (e) {
|
|
3024
|
-
|
|
3059
|
+
ke = !1;
|
|
3025
3060
|
}
|
|
3026
|
-
var
|
|
3061
|
+
var yt = Gn ? (
|
|
3027
3062
|
// Native
|
|
3028
3063
|
function(t, r, n) {
|
|
3029
3064
|
return t.startsWith(r, n);
|
|
@@ -3033,7 +3068,7 @@ var pt = Nn ? (
|
|
|
3033
3068
|
function(t, r, n) {
|
|
3034
3069
|
return t.slice(n, n + r.length) === r;
|
|
3035
3070
|
}
|
|
3036
|
-
),
|
|
3071
|
+
), Ve = Dn ? String.fromCodePoint : (
|
|
3037
3072
|
// IE11
|
|
3038
3073
|
function() {
|
|
3039
3074
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3045,9 +3080,9 @@ var pt = Nn ? (
|
|
|
3045
3080
|
}
|
|
3046
3081
|
return n;
|
|
3047
3082
|
}
|
|
3048
|
-
),
|
|
3083
|
+
), gt = (
|
|
3049
3084
|
// native
|
|
3050
|
-
|
|
3085
|
+
Fn ? Object.fromEntries : (
|
|
3051
3086
|
// Ponyfill
|
|
3052
3087
|
function(t) {
|
|
3053
3088
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3057,7 +3092,7 @@ var pt = Nn ? (
|
|
|
3057
3092
|
return r;
|
|
3058
3093
|
}
|
|
3059
3094
|
)
|
|
3060
|
-
),
|
|
3095
|
+
), Kt = jn ? (
|
|
3061
3096
|
// Native
|
|
3062
3097
|
function(t, r) {
|
|
3063
3098
|
return t.codePointAt(r);
|
|
@@ -3071,7 +3106,7 @@ var pt = Nn ? (
|
|
|
3071
3106
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3072
3107
|
}
|
|
3073
3108
|
}
|
|
3074
|
-
),
|
|
3109
|
+
), qn = kn ? (
|
|
3075
3110
|
// Native
|
|
3076
3111
|
function(t) {
|
|
3077
3112
|
return t.trimStart();
|
|
@@ -3079,9 +3114,9 @@ var pt = Nn ? (
|
|
|
3079
3114
|
) : (
|
|
3080
3115
|
// Ponyfill
|
|
3081
3116
|
function(t) {
|
|
3082
|
-
return t.replace(
|
|
3117
|
+
return t.replace(Rn, "");
|
|
3083
3118
|
}
|
|
3084
|
-
),
|
|
3119
|
+
), Zn = Vn ? (
|
|
3085
3120
|
// Native
|
|
3086
3121
|
function(t) {
|
|
3087
3122
|
return t.trimEnd();
|
|
@@ -3089,32 +3124,32 @@ var pt = Nn ? (
|
|
|
3089
3124
|
) : (
|
|
3090
3125
|
// Ponyfill
|
|
3091
3126
|
function(t) {
|
|
3092
|
-
return t.replace(
|
|
3127
|
+
return t.replace(Un, "");
|
|
3093
3128
|
}
|
|
3094
3129
|
);
|
|
3095
|
-
function
|
|
3130
|
+
function er(e, t) {
|
|
3096
3131
|
return new RegExp(e, t);
|
|
3097
3132
|
}
|
|
3098
|
-
var
|
|
3099
|
-
if (
|
|
3100
|
-
var
|
|
3101
|
-
|
|
3133
|
+
var ze;
|
|
3134
|
+
if (ke) {
|
|
3135
|
+
var xt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3136
|
+
ze = function(t, r) {
|
|
3102
3137
|
var n;
|
|
3103
|
-
|
|
3104
|
-
var i =
|
|
3138
|
+
xt.lastIndex = r;
|
|
3139
|
+
var i = xt.exec(t);
|
|
3105
3140
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3106
3141
|
};
|
|
3107
3142
|
} else
|
|
3108
|
-
|
|
3143
|
+
ze = function(t, r) {
|
|
3109
3144
|
for (var n = []; ; ) {
|
|
3110
|
-
var i =
|
|
3111
|
-
if (i === void 0 ||
|
|
3145
|
+
var i = Kt(t, r);
|
|
3146
|
+
if (i === void 0 || tr(i) || Kn(i))
|
|
3112
3147
|
break;
|
|
3113
3148
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3114
3149
|
}
|
|
3115
|
-
return
|
|
3150
|
+
return Ve.apply(void 0, n);
|
|
3116
3151
|
};
|
|
3117
|
-
var
|
|
3152
|
+
var Yn = (
|
|
3118
3153
|
/** @class */
|
|
3119
3154
|
function() {
|
|
3120
3155
|
function e(t, r) {
|
|
@@ -3138,14 +3173,14 @@ var Wn = (
|
|
|
3138
3173
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3139
3174
|
var s = this.clonePosition();
|
|
3140
3175
|
this.bump(), i.push({
|
|
3141
|
-
type:
|
|
3142
|
-
location:
|
|
3176
|
+
type: x.pound,
|
|
3177
|
+
location: v(s, this.clonePosition())
|
|
3143
3178
|
});
|
|
3144
3179
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3145
3180
|
if (n)
|
|
3146
3181
|
break;
|
|
3147
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3148
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3182
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3183
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3149
3184
|
var a = this.parseTag(t, r);
|
|
3150
3185
|
if (a.err)
|
|
3151
3186
|
return a;
|
|
@@ -3166,9 +3201,9 @@ var Wn = (
|
|
|
3166
3201
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3167
3202
|
return {
|
|
3168
3203
|
val: {
|
|
3169
|
-
type:
|
|
3204
|
+
type: x.literal,
|
|
3170
3205
|
value: "<".concat(i, "/>"),
|
|
3171
|
-
location:
|
|
3206
|
+
location: v(n, this.clonePosition())
|
|
3172
3207
|
},
|
|
3173
3208
|
err: null
|
|
3174
3209
|
};
|
|
@@ -3178,25 +3213,25 @@ var Wn = (
|
|
|
3178
3213
|
return o;
|
|
3179
3214
|
var a = o.val, s = this.clonePosition();
|
|
3180
3215
|
if (this.bumpIf("</")) {
|
|
3181
|
-
if (this.isEOF() || !
|
|
3182
|
-
return this.error(b.INVALID_TAG,
|
|
3216
|
+
if (this.isEOF() || !We(this.char()))
|
|
3217
|
+
return this.error(b.INVALID_TAG, v(s, this.clonePosition()));
|
|
3183
3218
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3184
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3219
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3185
3220
|
val: {
|
|
3186
|
-
type:
|
|
3221
|
+
type: x.tag,
|
|
3187
3222
|
value: i,
|
|
3188
3223
|
children: a,
|
|
3189
|
-
location:
|
|
3224
|
+
location: v(n, this.clonePosition())
|
|
3190
3225
|
},
|
|
3191
3226
|
err: null
|
|
3192
|
-
} : this.error(b.INVALID_TAG,
|
|
3227
|
+
} : this.error(b.INVALID_TAG, v(s, this.clonePosition())));
|
|
3193
3228
|
} else
|
|
3194
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3229
|
+
return this.error(b.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3195
3230
|
} else
|
|
3196
|
-
return this.error(b.INVALID_TAG,
|
|
3231
|
+
return this.error(b.INVALID_TAG, v(n, this.clonePosition()));
|
|
3197
3232
|
}, e.prototype.parseTagName = function() {
|
|
3198
3233
|
var t = this.offset();
|
|
3199
|
-
for (this.bump(); !this.isEOF() &&
|
|
3234
|
+
for (this.bump(); !this.isEOF() && Jn(this.char()); )
|
|
3200
3235
|
this.bump();
|
|
3201
3236
|
return this.message.slice(t, this.offset());
|
|
3202
3237
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3218,14 +3253,14 @@ var Wn = (
|
|
|
3218
3253
|
}
|
|
3219
3254
|
break;
|
|
3220
3255
|
}
|
|
3221
|
-
var l =
|
|
3256
|
+
var l = v(n, this.clonePosition());
|
|
3222
3257
|
return {
|
|
3223
|
-
val: { type:
|
|
3258
|
+
val: { type: x.literal, value: i, location: l },
|
|
3224
3259
|
err: null
|
|
3225
3260
|
};
|
|
3226
3261
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3227
3262
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3228
|
-
!
|
|
3263
|
+
!Qn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3229
3264
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3230
3265
|
if (this.isEOF() || this.char() !== 39)
|
|
3231
3266
|
return null;
|
|
@@ -3259,49 +3294,49 @@ var Wn = (
|
|
|
3259
3294
|
r.push(n);
|
|
3260
3295
|
this.bump();
|
|
3261
3296
|
}
|
|
3262
|
-
return
|
|
3297
|
+
return Ve.apply(void 0, r);
|
|
3263
3298
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3264
3299
|
if (this.isEOF())
|
|
3265
3300
|
return null;
|
|
3266
3301
|
var n = this.char();
|
|
3267
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3302
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
|
|
3268
3303
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3269
3304
|
var n = this.clonePosition();
|
|
3270
3305
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3306
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3272
3307
|
if (this.char() === 125)
|
|
3273
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3308
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3274
3309
|
var i = this.parseIdentifierIfPossible().value;
|
|
3275
3310
|
if (!i)
|
|
3276
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3311
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3277
3312
|
if (this.bumpSpace(), this.isEOF())
|
|
3278
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3313
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3279
3314
|
switch (this.char()) {
|
|
3280
3315
|
case 125:
|
|
3281
3316
|
return this.bump(), {
|
|
3282
3317
|
val: {
|
|
3283
|
-
type:
|
|
3318
|
+
type: x.argument,
|
|
3284
3319
|
// value does not include the opening and closing braces.
|
|
3285
3320
|
value: i,
|
|
3286
|
-
location:
|
|
3321
|
+
location: v(n, this.clonePosition())
|
|
3287
3322
|
},
|
|
3288
3323
|
err: null
|
|
3289
3324
|
};
|
|
3290
3325
|
case 44:
|
|
3291
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3326
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3292
3327
|
default:
|
|
3293
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3328
|
+
return this.error(b.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3294
3329
|
}
|
|
3295
3330
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3296
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3331
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3297
3332
|
this.bumpTo(i);
|
|
3298
|
-
var o = this.clonePosition(), a =
|
|
3333
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3299
3334
|
return { value: n, location: a };
|
|
3300
3335
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3301
3336
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3302
3337
|
switch (s) {
|
|
3303
3338
|
case "":
|
|
3304
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3339
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, v(a, l));
|
|
3305
3340
|
case "number":
|
|
3306
3341
|
case "date":
|
|
3307
3342
|
case "time": {
|
|
@@ -3309,49 +3344,49 @@ var Wn = (
|
|
|
3309
3344
|
var u = null;
|
|
3310
3345
|
if (this.bumpIf(",")) {
|
|
3311
3346
|
this.bumpSpace();
|
|
3312
|
-
var h = this.clonePosition(),
|
|
3313
|
-
if (
|
|
3314
|
-
return
|
|
3315
|
-
var
|
|
3316
|
-
if (
|
|
3317
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3318
|
-
var
|
|
3319
|
-
u = { style:
|
|
3347
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3348
|
+
if (f.err)
|
|
3349
|
+
return f;
|
|
3350
|
+
var c = Zn(f.val);
|
|
3351
|
+
if (c.length === 0)
|
|
3352
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3353
|
+
var p = v(h, this.clonePosition());
|
|
3354
|
+
u = { style: c, styleLocation: p };
|
|
3320
3355
|
}
|
|
3321
|
-
var
|
|
3322
|
-
if (
|
|
3323
|
-
return
|
|
3324
|
-
var
|
|
3325
|
-
if (u &&
|
|
3326
|
-
var S =
|
|
3356
|
+
var d = this.tryParseArgumentClose(i);
|
|
3357
|
+
if (d.err)
|
|
3358
|
+
return d;
|
|
3359
|
+
var y = v(i, this.clonePosition());
|
|
3360
|
+
if (u && yt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3361
|
+
var S = qn(u.style.slice(2));
|
|
3327
3362
|
if (s === "number") {
|
|
3328
|
-
var
|
|
3329
|
-
return
|
|
3330
|
-
val: { type:
|
|
3363
|
+
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3364
|
+
return f.err ? f : {
|
|
3365
|
+
val: { type: x.number, value: n, location: y, style: f.val },
|
|
3331
3366
|
err: null
|
|
3332
3367
|
};
|
|
3333
3368
|
} else {
|
|
3334
3369
|
if (S.length === 0)
|
|
3335
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3370
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, y);
|
|
3336
3371
|
var H = S;
|
|
3337
|
-
this.locale && (H =
|
|
3338
|
-
var
|
|
3339
|
-
type:
|
|
3372
|
+
this.locale && (H = Nn(S, this.locale));
|
|
3373
|
+
var c = {
|
|
3374
|
+
type: k.dateTime,
|
|
3340
3375
|
pattern: H,
|
|
3341
3376
|
location: u.styleLocation,
|
|
3342
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3343
|
-
}, E = s === "date" ?
|
|
3377
|
+
parsedOptions: this.shouldParseSkeletons ? In(H) : {}
|
|
3378
|
+
}, E = s === "date" ? x.date : x.time;
|
|
3344
3379
|
return {
|
|
3345
|
-
val: { type: E, value: n, location:
|
|
3380
|
+
val: { type: E, value: n, location: y, style: c },
|
|
3346
3381
|
err: null
|
|
3347
3382
|
};
|
|
3348
3383
|
}
|
|
3349
3384
|
}
|
|
3350
3385
|
return {
|
|
3351
3386
|
val: {
|
|
3352
|
-
type: s === "number" ?
|
|
3387
|
+
type: s === "number" ? x.number : s === "date" ? x.date : x.time,
|
|
3353
3388
|
value: n,
|
|
3354
|
-
location:
|
|
3389
|
+
location: y,
|
|
3355
3390
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3356
3391
|
},
|
|
3357
3392
|
err: null
|
|
@@ -3360,52 +3395,52 @@ var Wn = (
|
|
|
3360
3395
|
case "plural":
|
|
3361
3396
|
case "selectordinal":
|
|
3362
3397
|
case "select": {
|
|
3363
|
-
var
|
|
3398
|
+
var g = this.clonePosition();
|
|
3364
3399
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3365
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g
|
|
3400
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, v(g, pe({}, g)));
|
|
3366
3401
|
this.bumpSpace();
|
|
3367
3402
|
var w = this.parseIdentifierIfPossible(), m = 0;
|
|
3368
3403
|
if (s !== "select" && w.value === "offset") {
|
|
3369
3404
|
if (!this.bumpIf(":"))
|
|
3370
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3405
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3371
3406
|
this.bumpSpace();
|
|
3372
|
-
var
|
|
3373
|
-
if (
|
|
3374
|
-
return
|
|
3375
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(), m =
|
|
3407
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3408
|
+
if (f.err)
|
|
3409
|
+
return f;
|
|
3410
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), m = f.val;
|
|
3376
3411
|
}
|
|
3377
3412
|
var B = this.tryParsePluralOrSelectOptions(t, s, r, w);
|
|
3378
3413
|
if (B.err)
|
|
3379
3414
|
return B;
|
|
3380
|
-
var
|
|
3381
|
-
if (
|
|
3382
|
-
return
|
|
3383
|
-
var
|
|
3415
|
+
var d = this.tryParseArgumentClose(i);
|
|
3416
|
+
if (d.err)
|
|
3417
|
+
return d;
|
|
3418
|
+
var Y = v(i, this.clonePosition());
|
|
3384
3419
|
return s === "select" ? {
|
|
3385
3420
|
val: {
|
|
3386
|
-
type:
|
|
3421
|
+
type: x.select,
|
|
3387
3422
|
value: n,
|
|
3388
|
-
options:
|
|
3389
|
-
location:
|
|
3423
|
+
options: gt(B.val),
|
|
3424
|
+
location: Y
|
|
3390
3425
|
},
|
|
3391
3426
|
err: null
|
|
3392
3427
|
} : {
|
|
3393
3428
|
val: {
|
|
3394
|
-
type:
|
|
3429
|
+
type: x.plural,
|
|
3395
3430
|
value: n,
|
|
3396
|
-
options:
|
|
3431
|
+
options: gt(B.val),
|
|
3397
3432
|
offset: m,
|
|
3398
3433
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3399
|
-
location:
|
|
3434
|
+
location: Y
|
|
3400
3435
|
},
|
|
3401
3436
|
err: null
|
|
3402
3437
|
};
|
|
3403
3438
|
}
|
|
3404
3439
|
default:
|
|
3405
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3440
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, v(a, l));
|
|
3406
3441
|
}
|
|
3407
3442
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3408
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3443
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3409
3444
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3410
3445
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3411
3446
|
var n = this.char();
|
|
@@ -3414,7 +3449,7 @@ var Wn = (
|
|
|
3414
3449
|
this.bump();
|
|
3415
3450
|
var i = this.clonePosition();
|
|
3416
3451
|
if (!this.bumpUntil("'"))
|
|
3417
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3452
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3418
3453
|
this.bump();
|
|
3419
3454
|
break;
|
|
3420
3455
|
}
|
|
@@ -3444,52 +3479,52 @@ var Wn = (
|
|
|
3444
3479
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3445
3480
|
var n = [];
|
|
3446
3481
|
try {
|
|
3447
|
-
n =
|
|
3482
|
+
n = Cn(t);
|
|
3448
3483
|
} catch (i) {
|
|
3449
3484
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3450
3485
|
}
|
|
3451
3486
|
return {
|
|
3452
3487
|
val: {
|
|
3453
|
-
type:
|
|
3488
|
+
type: k.number,
|
|
3454
3489
|
tokens: n,
|
|
3455
3490
|
location: r,
|
|
3456
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3491
|
+
parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
|
|
3457
3492
|
},
|
|
3458
3493
|
err: null
|
|
3459
3494
|
};
|
|
3460
3495
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3461
3496
|
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3462
3497
|
if (u.length === 0) {
|
|
3463
|
-
var
|
|
3498
|
+
var f = this.clonePosition();
|
|
3464
3499
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3465
|
-
var
|
|
3466
|
-
if (
|
|
3467
|
-
return
|
|
3468
|
-
h =
|
|
3500
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3501
|
+
if (c.err)
|
|
3502
|
+
return c;
|
|
3503
|
+
h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3469
3504
|
} else
|
|
3470
3505
|
break;
|
|
3471
3506
|
}
|
|
3472
3507
|
if (l.has(u))
|
|
3473
3508
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3474
3509
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3475
|
-
var
|
|
3510
|
+
var p = this.clonePosition();
|
|
3476
3511
|
if (!this.bumpIf("{"))
|
|
3477
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3478
|
-
var
|
|
3479
|
-
if (
|
|
3480
|
-
return
|
|
3481
|
-
var
|
|
3482
|
-
if (
|
|
3483
|
-
return
|
|
3512
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3513
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3514
|
+
if (d.err)
|
|
3515
|
+
return d;
|
|
3516
|
+
var y = this.tryParseArgumentClose(p);
|
|
3517
|
+
if (y.err)
|
|
3518
|
+
return y;
|
|
3484
3519
|
s.push([
|
|
3485
3520
|
u,
|
|
3486
3521
|
{
|
|
3487
|
-
value:
|
|
3488
|
-
location:
|
|
3522
|
+
value: d.val,
|
|
3523
|
+
location: v(p, this.clonePosition())
|
|
3489
3524
|
}
|
|
3490
3525
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3491
3526
|
}
|
|
3492
|
-
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3527
|
+
return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3493
3528
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3494
3529
|
var n = 1, i = this.clonePosition();
|
|
3495
3530
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3500,8 +3535,8 @@ var Wn = (
|
|
|
3500
3535
|
else
|
|
3501
3536
|
break;
|
|
3502
3537
|
}
|
|
3503
|
-
var l =
|
|
3504
|
-
return o ? (a *= n,
|
|
3538
|
+
var l = v(i, this.clonePosition());
|
|
3539
|
+
return o ? (a *= n, Wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3505
3540
|
}, e.prototype.offset = function() {
|
|
3506
3541
|
return this.position.offset;
|
|
3507
3542
|
}, e.prototype.isEOF = function() {
|
|
@@ -3516,7 +3551,7 @@ var Wn = (
|
|
|
3516
3551
|
var t = this.position.offset;
|
|
3517
3552
|
if (t >= this.message.length)
|
|
3518
3553
|
throw Error("out of bound");
|
|
3519
|
-
var r =
|
|
3554
|
+
var r = Kt(this.message, t);
|
|
3520
3555
|
if (r === void 0)
|
|
3521
3556
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3522
3557
|
return r;
|
|
@@ -3535,7 +3570,7 @@ var Wn = (
|
|
|
3535
3570
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3536
3571
|
}
|
|
3537
3572
|
}, e.prototype.bumpIf = function(t) {
|
|
3538
|
-
if (
|
|
3573
|
+
if (yt(this.message, t, this.offset())) {
|
|
3539
3574
|
for (var r = 0; r < t.length; r++)
|
|
3540
3575
|
this.bump();
|
|
3541
3576
|
return !0;
|
|
@@ -3557,7 +3592,7 @@ var Wn = (
|
|
|
3557
3592
|
break;
|
|
3558
3593
|
}
|
|
3559
3594
|
}, e.prototype.bumpSpace = function() {
|
|
3560
|
-
for (; !this.isEOF() &&
|
|
3595
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3561
3596
|
this.bump();
|
|
3562
3597
|
}, e.prototype.peek = function() {
|
|
3563
3598
|
if (this.isEOF())
|
|
@@ -3567,47 +3602,47 @@ var Wn = (
|
|
|
3567
3602
|
}, e;
|
|
3568
3603
|
}()
|
|
3569
3604
|
);
|
|
3570
|
-
function
|
|
3605
|
+
function We(e) {
|
|
3571
3606
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3572
3607
|
}
|
|
3573
|
-
function
|
|
3574
|
-
return
|
|
3608
|
+
function Qn(e) {
|
|
3609
|
+
return We(e) || e === 47;
|
|
3575
3610
|
}
|
|
3576
|
-
function
|
|
3611
|
+
function Jn(e) {
|
|
3577
3612
|
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;
|
|
3578
3613
|
}
|
|
3579
|
-
function
|
|
3614
|
+
function tr(e) {
|
|
3580
3615
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3581
3616
|
}
|
|
3582
|
-
function
|
|
3617
|
+
function Kn(e) {
|
|
3583
3618
|
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;
|
|
3584
3619
|
}
|
|
3585
|
-
function
|
|
3620
|
+
function Xe(e) {
|
|
3586
3621
|
e.forEach(function(t) {
|
|
3587
|
-
if (delete t.location,
|
|
3622
|
+
if (delete t.location, zt(t) || Wt(t))
|
|
3588
3623
|
for (var r in t.options)
|
|
3589
|
-
delete t.options[r].location,
|
|
3624
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3590
3625
|
else
|
|
3591
|
-
|
|
3626
|
+
jt(t) && qt(t.style) || (kt(t) || Vt(t)) && je(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
|
|
3592
3627
|
});
|
|
3593
3628
|
}
|
|
3594
|
-
function
|
|
3595
|
-
t === void 0 && (t = {}), t =
|
|
3596
|
-
var r = new
|
|
3629
|
+
function ei(e, t) {
|
|
3630
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3631
|
+
var r = new Yn(e, t).parse();
|
|
3597
3632
|
if (r.err) {
|
|
3598
3633
|
var n = SyntaxError(b[r.err.kind]);
|
|
3599
3634
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3600
3635
|
}
|
|
3601
|
-
return t != null && t.captureLocation ||
|
|
3636
|
+
return t != null && t.captureLocation || Xe(r.val), r.val;
|
|
3602
3637
|
}
|
|
3603
|
-
var
|
|
3638
|
+
var V;
|
|
3604
3639
|
(function(e) {
|
|
3605
3640
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3606
|
-
})(
|
|
3641
|
+
})(V || (V = {}));
|
|
3607
3642
|
var ge = (
|
|
3608
3643
|
/** @class */
|
|
3609
3644
|
function(e) {
|
|
3610
|
-
|
|
3645
|
+
ye(t, e);
|
|
3611
3646
|
function t(r, n, i) {
|
|
3612
3647
|
var o = e.call(this, r) || this;
|
|
3613
3648
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3616,30 +3651,30 @@ var ge = (
|
|
|
3616
3651
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3617
3652
|
}, t;
|
|
3618
3653
|
}(Error)
|
|
3619
|
-
),
|
|
3654
|
+
), _t = (
|
|
3620
3655
|
/** @class */
|
|
3621
3656
|
function(e) {
|
|
3622
|
-
|
|
3657
|
+
ye(t, e);
|
|
3623
3658
|
function t(r, n, i, o) {
|
|
3624
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3659
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3625
3660
|
}
|
|
3626
3661
|
return t;
|
|
3627
3662
|
}(ge)
|
|
3628
|
-
),
|
|
3663
|
+
), ti = (
|
|
3629
3664
|
/** @class */
|
|
3630
3665
|
function(e) {
|
|
3631
|
-
|
|
3666
|
+
ye(t, e);
|
|
3632
3667
|
function t(r, n, i) {
|
|
3633
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3668
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3634
3669
|
}
|
|
3635
3670
|
return t;
|
|
3636
3671
|
}(ge)
|
|
3637
|
-
),
|
|
3672
|
+
), ri = (
|
|
3638
3673
|
/** @class */
|
|
3639
3674
|
function(e) {
|
|
3640
|
-
|
|
3675
|
+
ye(t, e);
|
|
3641
3676
|
function t(r, n) {
|
|
3642
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3677
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3643
3678
|
}
|
|
3644
3679
|
return t;
|
|
3645
3680
|
}(ge)
|
|
@@ -3647,17 +3682,17 @@ var ge = (
|
|
|
3647
3682
|
(function(e) {
|
|
3648
3683
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3649
3684
|
})(T || (T = {}));
|
|
3650
|
-
function
|
|
3685
|
+
function ni(e) {
|
|
3651
3686
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3652
3687
|
var n = t[t.length - 1];
|
|
3653
3688
|
return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
|
|
3654
3689
|
}, []);
|
|
3655
3690
|
}
|
|
3656
|
-
function
|
|
3691
|
+
function ii(e) {
|
|
3657
3692
|
return typeof e == "function";
|
|
3658
3693
|
}
|
|
3659
|
-
function
|
|
3660
|
-
if (e.length === 1 &&
|
|
3694
|
+
function ce(e, t, r, n, i, o, a) {
|
|
3695
|
+
if (e.length === 1 && dt(e[0]))
|
|
3661
3696
|
return [
|
|
3662
3697
|
{
|
|
3663
3698
|
type: T.literal,
|
|
@@ -3666,60 +3701,60 @@ function fe(e, t, r, n, i, o, a) {
|
|
|
3666
3701
|
];
|
|
3667
3702
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3668
3703
|
var h = u[l];
|
|
3669
|
-
if (
|
|
3704
|
+
if (dt(h)) {
|
|
3670
3705
|
s.push({
|
|
3671
3706
|
type: T.literal,
|
|
3672
3707
|
value: h.value
|
|
3673
3708
|
});
|
|
3674
3709
|
continue;
|
|
3675
3710
|
}
|
|
3676
|
-
if (
|
|
3711
|
+
if (Pn(h)) {
|
|
3677
3712
|
typeof o == "number" && s.push({
|
|
3678
3713
|
type: T.literal,
|
|
3679
3714
|
value: r.getNumberFormat(t).format(o)
|
|
3680
3715
|
});
|
|
3681
3716
|
continue;
|
|
3682
3717
|
}
|
|
3683
|
-
var
|
|
3684
|
-
if (!(i &&
|
|
3685
|
-
throw new
|
|
3686
|
-
var
|
|
3687
|
-
if (
|
|
3688
|
-
(!
|
|
3689
|
-
type: typeof
|
|
3690
|
-
value:
|
|
3718
|
+
var f = h.value;
|
|
3719
|
+
if (!(i && f in i))
|
|
3720
|
+
throw new ri(f, a);
|
|
3721
|
+
var c = i[f];
|
|
3722
|
+
if (wn(h)) {
|
|
3723
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3724
|
+
type: typeof c == "string" ? T.literal : T.object,
|
|
3725
|
+
value: c
|
|
3691
3726
|
});
|
|
3692
3727
|
continue;
|
|
3693
3728
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3729
|
+
if (kt(h)) {
|
|
3730
|
+
var p = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
|
|
3696
3731
|
s.push({
|
|
3697
3732
|
type: T.literal,
|
|
3698
|
-
value: r.getDateTimeFormat(t,
|
|
3733
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3699
3734
|
});
|
|
3700
3735
|
continue;
|
|
3701
3736
|
}
|
|
3702
|
-
if (
|
|
3703
|
-
var
|
|
3737
|
+
if (Vt(h)) {
|
|
3738
|
+
var p = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3704
3739
|
s.push({
|
|
3705
3740
|
type: T.literal,
|
|
3706
|
-
value: r.getDateTimeFormat(t,
|
|
3741
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3707
3742
|
});
|
|
3708
3743
|
continue;
|
|
3709
3744
|
}
|
|
3710
|
-
if (
|
|
3711
|
-
var
|
|
3712
|
-
|
|
3745
|
+
if (jt(h)) {
|
|
3746
|
+
var p = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3747
|
+
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3713
3748
|
type: T.literal,
|
|
3714
|
-
value: r.getNumberFormat(t,
|
|
3749
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3715
3750
|
});
|
|
3716
3751
|
continue;
|
|
3717
3752
|
}
|
|
3718
|
-
if (
|
|
3719
|
-
var
|
|
3720
|
-
if (!
|
|
3721
|
-
throw new
|
|
3722
|
-
var H =
|
|
3753
|
+
if (Xt(h)) {
|
|
3754
|
+
var d = h.children, y = h.value, S = i[y];
|
|
3755
|
+
if (!ii(S))
|
|
3756
|
+
throw new ti(y, "function", a);
|
|
3757
|
+
var H = ce(d, t, r, n, i, o), E = S(H.map(function(m) {
|
|
3723
3758
|
return m.value;
|
|
3724
3759
|
}));
|
|
3725
3760
|
Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(m) {
|
|
@@ -3729,42 +3764,42 @@ function fe(e, t, r, n, i, o, a) {
|
|
|
3729
3764
|
};
|
|
3730
3765
|
}));
|
|
3731
3766
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3735
|
-
throw new
|
|
3736
|
-
s.push.apply(s,
|
|
3767
|
+
if (zt(h)) {
|
|
3768
|
+
var g = h.options[c] || h.options.other;
|
|
3769
|
+
if (!g)
|
|
3770
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3771
|
+
s.push.apply(s, ce(g.value, t, r, n, i));
|
|
3737
3772
|
continue;
|
|
3738
3773
|
}
|
|
3739
|
-
if (
|
|
3740
|
-
var
|
|
3741
|
-
if (!
|
|
3774
|
+
if (Wt(h)) {
|
|
3775
|
+
var g = h.options["=".concat(c)];
|
|
3776
|
+
if (!g) {
|
|
3742
3777
|
if (!Intl.PluralRules)
|
|
3743
3778
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3744
3779
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3745
|
-
`,
|
|
3746
|
-
var w = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3747
|
-
|
|
3780
|
+
`, V.MISSING_INTL_API, a);
|
|
3781
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3782
|
+
g = h.options[w] || h.options.other;
|
|
3748
3783
|
}
|
|
3749
|
-
if (!
|
|
3750
|
-
throw new
|
|
3751
|
-
s.push.apply(s,
|
|
3784
|
+
if (!g)
|
|
3785
|
+
throw new _t(h.value, c, Object.keys(h.options), a);
|
|
3786
|
+
s.push.apply(s, ce(g.value, t, r, n, i, c - (h.offset || 0)));
|
|
3752
3787
|
continue;
|
|
3753
3788
|
}
|
|
3754
3789
|
}
|
|
3755
|
-
return
|
|
3790
|
+
return ni(s);
|
|
3756
3791
|
}
|
|
3757
|
-
function
|
|
3758
|
-
return t ?
|
|
3759
|
-
return r[n] =
|
|
3792
|
+
function oi(e, t) {
|
|
3793
|
+
return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3794
|
+
return r[n] = M(M({}, e[n]), t[n] || {}), r;
|
|
3760
3795
|
}, {})) : e;
|
|
3761
3796
|
}
|
|
3762
|
-
function
|
|
3797
|
+
function ai(e, t) {
|
|
3763
3798
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3764
|
-
return r[n] =
|
|
3765
|
-
},
|
|
3799
|
+
return r[n] = oi(e[n], t[n]), r;
|
|
3800
|
+
}, M({}, e)) : e;
|
|
3766
3801
|
}
|
|
3767
|
-
function
|
|
3802
|
+
function Ce(e) {
|
|
3768
3803
|
return {
|
|
3769
3804
|
create: function() {
|
|
3770
3805
|
return {
|
|
@@ -3778,39 +3813,39 @@ function He(e) {
|
|
|
3778
3813
|
}
|
|
3779
3814
|
};
|
|
3780
3815
|
}
|
|
3781
|
-
function
|
|
3816
|
+
function si(e) {
|
|
3782
3817
|
return e === void 0 && (e = {
|
|
3783
3818
|
number: {},
|
|
3784
3819
|
dateTime: {},
|
|
3785
3820
|
pluralRules: {}
|
|
3786
3821
|
}), {
|
|
3787
|
-
getNumberFormat:
|
|
3822
|
+
getNumberFormat: He(function() {
|
|
3788
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3789
3824
|
r[n] = arguments[n];
|
|
3790
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3791
3826
|
}, {
|
|
3792
|
-
cache:
|
|
3793
|
-
strategy:
|
|
3827
|
+
cache: Ce(e.number),
|
|
3828
|
+
strategy: Ie.variadic
|
|
3794
3829
|
}),
|
|
3795
|
-
getDateTimeFormat:
|
|
3830
|
+
getDateTimeFormat: He(function() {
|
|
3796
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3797
3832
|
r[n] = arguments[n];
|
|
3798
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3799
3834
|
}, {
|
|
3800
|
-
cache:
|
|
3801
|
-
strategy:
|
|
3835
|
+
cache: Ce(e.dateTime),
|
|
3836
|
+
strategy: Ie.variadic
|
|
3802
3837
|
}),
|
|
3803
|
-
getPluralRules:
|
|
3838
|
+
getPluralRules: He(function() {
|
|
3804
3839
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3805
3840
|
r[n] = arguments[n];
|
|
3806
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3841
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3807
3842
|
}, {
|
|
3808
|
-
cache:
|
|
3809
|
-
strategy:
|
|
3843
|
+
cache: Ce(e.pluralRules),
|
|
3844
|
+
strategy: Ie.variadic
|
|
3810
3845
|
})
|
|
3811
3846
|
};
|
|
3812
3847
|
}
|
|
3813
|
-
var
|
|
3848
|
+
var ui = (
|
|
3814
3849
|
/** @class */
|
|
3815
3850
|
function() {
|
|
3816
3851
|
function e(t, r, n, i) {
|
|
@@ -3824,12 +3859,12 @@ var ii = (
|
|
|
3824
3859
|
var u = o.formatToParts(l);
|
|
3825
3860
|
if (u.length === 1)
|
|
3826
3861
|
return u[0].value;
|
|
3827
|
-
var h = u.reduce(function(
|
|
3828
|
-
return !
|
|
3862
|
+
var h = u.reduce(function(f, c) {
|
|
3863
|
+
return !f.length || c.type !== T.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3829
3864
|
}, []);
|
|
3830
3865
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3831
3866
|
}, this.formatToParts = function(l) {
|
|
3832
|
-
return
|
|
3867
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3833
3868
|
}, this.resolvedOptions = function() {
|
|
3834
3869
|
var l;
|
|
3835
3870
|
return {
|
|
@@ -3842,13 +3877,13 @@ var ii = (
|
|
|
3842
3877
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3843
3878
|
var a = i || {};
|
|
3844
3879
|
a.formatters;
|
|
3845
|
-
var s =
|
|
3846
|
-
this.ast = e.__parse(t,
|
|
3880
|
+
var s = vn(a, ["formatters"]);
|
|
3881
|
+
this.ast = e.__parse(t, M(M({}, s), { locale: this.resolvedLocale }));
|
|
3847
3882
|
} else
|
|
3848
3883
|
this.ast = t;
|
|
3849
3884
|
if (!Array.isArray(this.ast))
|
|
3850
3885
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3851
|
-
this.formats =
|
|
3886
|
+
this.formats = ai(e.formats, n), this.formatters = i && i.formatters || si(this.formatterCache);
|
|
3852
3887
|
}
|
|
3853
3888
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3854
3889
|
get: function() {
|
|
@@ -3861,7 +3896,7 @@ var ii = (
|
|
|
3861
3896
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3862
3897
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3863
3898
|
}
|
|
3864
|
-
}, e.__parse =
|
|
3899
|
+
}, e.__parse = ei, e.formats = {
|
|
3865
3900
|
number: {
|
|
3866
3901
|
integer: {
|
|
3867
3902
|
maximumFractionDigits: 0
|
|
@@ -3922,7 +3957,7 @@ var ii = (
|
|
|
3922
3957
|
}, e;
|
|
3923
3958
|
}()
|
|
3924
3959
|
);
|
|
3925
|
-
function
|
|
3960
|
+
function li(e, t) {
|
|
3926
3961
|
if (t == null)
|
|
3927
3962
|
return;
|
|
3928
3963
|
if (t in e)
|
|
@@ -3943,92 +3978,92 @@ function oi(e, t) {
|
|
|
3943
3978
|
n = void 0;
|
|
3944
3979
|
return n;
|
|
3945
3980
|
}
|
|
3946
|
-
const
|
|
3981
|
+
const $ = {}, hi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), rr = (e, t) => {
|
|
3947
3982
|
if (t == null)
|
|
3948
3983
|
return;
|
|
3949
|
-
if (t in
|
|
3950
|
-
return
|
|
3951
|
-
const r =
|
|
3984
|
+
if (t in $ && e in $[t])
|
|
3985
|
+
return $[t][e];
|
|
3986
|
+
const r = xe(t);
|
|
3952
3987
|
for (let n = 0; n < r.length; n++) {
|
|
3953
|
-
const i = r[n], o =
|
|
3988
|
+
const i = r[n], o = fi(i, e);
|
|
3954
3989
|
if (o)
|
|
3955
|
-
return
|
|
3990
|
+
return hi(e, t, o);
|
|
3956
3991
|
}
|
|
3957
3992
|
};
|
|
3958
|
-
let
|
|
3959
|
-
const ae =
|
|
3960
|
-
function
|
|
3961
|
-
return
|
|
3993
|
+
let Je;
|
|
3994
|
+
const ae = ve({});
|
|
3995
|
+
function ci(e) {
|
|
3996
|
+
return Je[e] || null;
|
|
3962
3997
|
}
|
|
3963
|
-
function
|
|
3964
|
-
return e in
|
|
3998
|
+
function nr(e) {
|
|
3999
|
+
return e in Je;
|
|
3965
4000
|
}
|
|
3966
|
-
function
|
|
3967
|
-
if (!
|
|
4001
|
+
function fi(e, t) {
|
|
4002
|
+
if (!nr(e))
|
|
3968
4003
|
return null;
|
|
3969
|
-
const r =
|
|
3970
|
-
return
|
|
4004
|
+
const r = ci(e);
|
|
4005
|
+
return li(r, t);
|
|
3971
4006
|
}
|
|
3972
|
-
function
|
|
4007
|
+
function pi(e) {
|
|
3973
4008
|
if (e == null)
|
|
3974
4009
|
return;
|
|
3975
|
-
const t =
|
|
4010
|
+
const t = xe(e);
|
|
3976
4011
|
for (let r = 0; r < t.length; r++) {
|
|
3977
4012
|
const n = t[r];
|
|
3978
|
-
if (
|
|
4013
|
+
if (nr(n))
|
|
3979
4014
|
return n;
|
|
3980
4015
|
}
|
|
3981
4016
|
}
|
|
3982
|
-
function
|
|
3983
|
-
delete
|
|
4017
|
+
function ir(e, ...t) {
|
|
4018
|
+
delete $[e], ae.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
|
|
3984
4019
|
}
|
|
3985
|
-
|
|
4020
|
+
X(
|
|
3986
4021
|
[ae],
|
|
3987
4022
|
([e]) => Object.keys(e)
|
|
3988
4023
|
);
|
|
3989
|
-
ae.subscribe((e) =>
|
|
3990
|
-
const
|
|
3991
|
-
function
|
|
3992
|
-
|
|
4024
|
+
ae.subscribe((e) => Je = e);
|
|
4025
|
+
const fe = {};
|
|
4026
|
+
function di(e, t) {
|
|
4027
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3993
4028
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return
|
|
4029
|
+
function or(e) {
|
|
4030
|
+
return fe[e];
|
|
3996
4031
|
}
|
|
3997
|
-
function
|
|
3998
|
-
return
|
|
3999
|
-
const r =
|
|
4032
|
+
function mi(e) {
|
|
4033
|
+
return xe(e).map((t) => {
|
|
4034
|
+
const r = or(t);
|
|
4000
4035
|
return [t, r ? [...r] : []];
|
|
4001
4036
|
}).filter(([, t]) => t.length > 0);
|
|
4002
4037
|
}
|
|
4003
|
-
function
|
|
4004
|
-
return e == null ? !1 :
|
|
4038
|
+
function qe(e) {
|
|
4039
|
+
return e == null ? !1 : xe(e).some(
|
|
4005
4040
|
(t) => {
|
|
4006
4041
|
var r;
|
|
4007
|
-
return (r =
|
|
4042
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4008
4043
|
}
|
|
4009
4044
|
);
|
|
4010
4045
|
}
|
|
4011
|
-
function
|
|
4046
|
+
function bi(e, t) {
|
|
4012
4047
|
return Promise.all(
|
|
4013
|
-
t.map((n) => (
|
|
4014
|
-
).then((n) =>
|
|
4015
|
-
}
|
|
4016
|
-
const
|
|
4017
|
-
function
|
|
4018
|
-
if (!
|
|
4019
|
-
return e in
|
|
4020
|
-
const t =
|
|
4021
|
-
return
|
|
4048
|
+
t.map((n) => (di(e, n), n().then((i) => i.default || i)))
|
|
4049
|
+
).then((n) => ir(e, ...n));
|
|
4050
|
+
}
|
|
4051
|
+
const Q = {};
|
|
4052
|
+
function ar(e) {
|
|
4053
|
+
if (!qe(e))
|
|
4054
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4055
|
+
const t = mi(e);
|
|
4056
|
+
return Q[e] = Promise.all(
|
|
4022
4057
|
t.map(
|
|
4023
|
-
([r, n]) =>
|
|
4058
|
+
([r, n]) => bi(r, n)
|
|
4024
4059
|
)
|
|
4025
4060
|
).then(() => {
|
|
4026
|
-
if (
|
|
4027
|
-
return
|
|
4028
|
-
delete
|
|
4029
|
-
}),
|
|
4061
|
+
if (qe(e))
|
|
4062
|
+
return ar(e);
|
|
4063
|
+
delete Q[e];
|
|
4064
|
+
}), Q[e];
|
|
4030
4065
|
}
|
|
4031
|
-
const
|
|
4066
|
+
const vi = {
|
|
4032
4067
|
number: {
|
|
4033
4068
|
scientific: { notation: "scientific" },
|
|
4034
4069
|
engineering: { notation: "engineering" },
|
|
@@ -4057,180 +4092,180 @@ const di = {
|
|
|
4057
4092
|
timeZoneName: "short"
|
|
4058
4093
|
}
|
|
4059
4094
|
}
|
|
4060
|
-
},
|
|
4095
|
+
}, yi = {
|
|
4061
4096
|
fallbackLocale: null,
|
|
4062
4097
|
loadingDelay: 200,
|
|
4063
|
-
formats:
|
|
4098
|
+
formats: vi,
|
|
4064
4099
|
warnOnMissingMessages: !0,
|
|
4065
4100
|
handleMissingMessage: void 0,
|
|
4066
4101
|
ignoreTag: !0
|
|
4067
|
-
},
|
|
4068
|
-
function
|
|
4069
|
-
return
|
|
4070
|
-
}
|
|
4071
|
-
const
|
|
4072
|
-
var
|
|
4073
|
-
for (var r in t)
|
|
4074
|
-
|
|
4075
|
-
if (
|
|
4076
|
-
for (var r of
|
|
4077
|
-
|
|
4102
|
+
}, gi = yi;
|
|
4103
|
+
function z() {
|
|
4104
|
+
return gi;
|
|
4105
|
+
}
|
|
4106
|
+
const Ae = ve(!1);
|
|
4107
|
+
var xi = Object.defineProperty, _i = Object.defineProperties, Ei = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
|
|
4108
|
+
for (var r in t || (t = {}))
|
|
4109
|
+
Ti.call(t, r) && Tt(e, r, t[r]);
|
|
4110
|
+
if (Et)
|
|
4111
|
+
for (var r of Et(t))
|
|
4112
|
+
Si.call(t, r) && Tt(e, r, t[r]);
|
|
4078
4113
|
return e;
|
|
4079
|
-
},
|
|
4080
|
-
let
|
|
4081
|
-
const de =
|
|
4082
|
-
function
|
|
4114
|
+
}, Pi = (e, t) => _i(e, Ei(t));
|
|
4115
|
+
let Ze;
|
|
4116
|
+
const de = ve(null);
|
|
4117
|
+
function St(e) {
|
|
4083
4118
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4084
4119
|
}
|
|
4085
|
-
function
|
|
4086
|
-
const r =
|
|
4087
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4120
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4121
|
+
const r = St(e);
|
|
4122
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
4088
4123
|
}
|
|
4089
|
-
function
|
|
4090
|
-
return
|
|
4124
|
+
function R() {
|
|
4125
|
+
return Ze != null ? Ze : void 0;
|
|
4091
4126
|
}
|
|
4092
4127
|
de.subscribe((e) => {
|
|
4093
|
-
|
|
4128
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4094
4129
|
});
|
|
4095
|
-
const
|
|
4096
|
-
if (e &&
|
|
4097
|
-
const { loadingDelay: t } =
|
|
4130
|
+
const Hi = (e) => {
|
|
4131
|
+
if (e && pi(e) && qe(e)) {
|
|
4132
|
+
const { loadingDelay: t } = z();
|
|
4098
4133
|
let r;
|
|
4099
|
-
return typeof window != "undefined" &&
|
|
4100
|
-
() =>
|
|
4134
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
|
4135
|
+
() => Ae.set(!0),
|
|
4101
4136
|
t
|
|
4102
|
-
) :
|
|
4137
|
+
) : Ae.set(!0), ar(e).then(() => {
|
|
4103
4138
|
de.set(e);
|
|
4104
4139
|
}).finally(() => {
|
|
4105
|
-
clearTimeout(r),
|
|
4140
|
+
clearTimeout(r), Ae.set(!1);
|
|
4106
4141
|
});
|
|
4107
4142
|
}
|
|
4108
4143
|
return de.set(e);
|
|
4109
|
-
},
|
|
4110
|
-
set:
|
|
4111
|
-
}),
|
|
4144
|
+
}, q = Pi(wi({}, de), {
|
|
4145
|
+
set: Hi
|
|
4146
|
+
}), _e = (e) => {
|
|
4112
4147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4113
4148
|
return (n) => {
|
|
4114
4149
|
const i = JSON.stringify(n);
|
|
4115
4150
|
return i in t ? t[i] : t[i] = e(n);
|
|
4116
4151
|
};
|
|
4117
4152
|
};
|
|
4118
|
-
var
|
|
4153
|
+
var Ii = Object.defineProperty, me = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
4119
4154
|
for (var r in t || (t = {}))
|
|
4120
|
-
|
|
4121
|
-
if (
|
|
4122
|
-
for (var r of
|
|
4123
|
-
|
|
4155
|
+
sr.call(t, r) && wt(e, r, t[r]);
|
|
4156
|
+
if (me)
|
|
4157
|
+
for (var r of me(t))
|
|
4158
|
+
ur.call(t, r) && wt(e, r, t[r]);
|
|
4124
4159
|
return e;
|
|
4125
|
-
},
|
|
4160
|
+
}, Z = (e, t) => {
|
|
4126
4161
|
var r = {};
|
|
4127
4162
|
for (var n in e)
|
|
4128
|
-
|
|
4129
|
-
if (e != null &&
|
|
4130
|
-
for (var n of
|
|
4131
|
-
t.indexOf(n) < 0 &&
|
|
4163
|
+
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4164
|
+
if (e != null && me)
|
|
4165
|
+
for (var n of me(e))
|
|
4166
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4132
4167
|
return r;
|
|
4133
4168
|
};
|
|
4134
|
-
const
|
|
4135
|
-
const { formats: r } =
|
|
4169
|
+
const te = (e, t) => {
|
|
4170
|
+
const { formats: r } = z();
|
|
4136
4171
|
if (e in r && t in r[e])
|
|
4137
4172
|
return r[e][t];
|
|
4138
4173
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4139
|
-
},
|
|
4174
|
+
}, Bi = _e(
|
|
4140
4175
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4142
4177
|
if (r == null)
|
|
4143
4178
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4144
|
-
return n && (i =
|
|
4179
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4145
4180
|
}
|
|
4146
|
-
),
|
|
4181
|
+
), Ci = _e(
|
|
4147
4182
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4183
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4149
4184
|
if (r == null)
|
|
4150
4185
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4151
|
-
return n ? i =
|
|
4186
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4152
4187
|
}
|
|
4153
|
-
),
|
|
4188
|
+
), Ai = _e(
|
|
4154
4189
|
(e) => {
|
|
4155
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4190
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
4156
4191
|
if (r == null)
|
|
4157
4192
|
throw new Error(
|
|
4158
4193
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4159
4194
|
);
|
|
4160
|
-
return n ? i =
|
|
4195
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4161
4196
|
}
|
|
4162
|
-
),
|
|
4197
|
+
), Oi = (e = {}) => {
|
|
4163
4198
|
var t = e, {
|
|
4164
|
-
locale: r =
|
|
4165
|
-
} = t, n =
|
|
4199
|
+
locale: r = R()
|
|
4200
|
+
} = t, n = Z(t, [
|
|
4166
4201
|
"locale"
|
|
4167
4202
|
]);
|
|
4168
|
-
return
|
|
4169
|
-
},
|
|
4203
|
+
return Bi(Ke({ locale: r }, n));
|
|
4204
|
+
}, Li = (e = {}) => {
|
|
4170
4205
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4172
|
-
} = t, n =
|
|
4206
|
+
locale: r = R()
|
|
4207
|
+
} = t, n = Z(t, [
|
|
4173
4208
|
"locale"
|
|
4174
4209
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4210
|
+
return Ci(Ke({ locale: r }, n));
|
|
4211
|
+
}, Mi = (e = {}) => {
|
|
4177
4212
|
var t = e, {
|
|
4178
|
-
locale: r =
|
|
4179
|
-
} = t, n =
|
|
4213
|
+
locale: r = R()
|
|
4214
|
+
} = t, n = Z(t, [
|
|
4180
4215
|
"locale"
|
|
4181
4216
|
]);
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4217
|
+
return Ai(Ke({ locale: r }, n));
|
|
4218
|
+
}, Ni = _e(
|
|
4184
4219
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4185
|
-
(e, t =
|
|
4186
|
-
ignoreTag:
|
|
4220
|
+
(e, t = R()) => new ui(e, t, z().formats, {
|
|
4221
|
+
ignoreTag: z().ignoreTag
|
|
4187
4222
|
})
|
|
4188
|
-
),
|
|
4223
|
+
), $i = (e, t = {}) => {
|
|
4189
4224
|
var r, n, i, o;
|
|
4190
4225
|
let a = t;
|
|
4191
4226
|
typeof e == "object" && (a = e, e = a.id);
|
|
4192
4227
|
const {
|
|
4193
4228
|
values: s,
|
|
4194
|
-
locale: l =
|
|
4229
|
+
locale: l = R(),
|
|
4195
4230
|
default: u
|
|
4196
4231
|
} = a;
|
|
4197
4232
|
if (l == null)
|
|
4198
4233
|
throw new Error(
|
|
4199
4234
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4200
4235
|
);
|
|
4201
|
-
let h =
|
|
4236
|
+
let h = rr(e, l);
|
|
4202
4237
|
if (!h)
|
|
4203
|
-
h = (o = (i = (n = (r =
|
|
4238
|
+
h = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4204
4239
|
else if (typeof h != "string")
|
|
4205
4240
|
return console.warn(
|
|
4206
4241
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
4207
4242
|
), h;
|
|
4208
4243
|
if (!s)
|
|
4209
4244
|
return h;
|
|
4210
|
-
let
|
|
4245
|
+
let f = h;
|
|
4211
4246
|
try {
|
|
4212
|
-
|
|
4213
|
-
} catch (
|
|
4214
|
-
|
|
4247
|
+
f = Ni(h, l).format(s);
|
|
4248
|
+
} catch (c) {
|
|
4249
|
+
c instanceof Error && console.warn(
|
|
4215
4250
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4216
|
-
|
|
4251
|
+
c.message
|
|
4217
4252
|
);
|
|
4218
4253
|
}
|
|
4219
|
-
return
|
|
4220
|
-
},
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
window.emWidgets = { topic:
|
|
4226
|
-
const
|
|
4227
|
-
function
|
|
4228
|
-
|
|
4229
|
-
}
|
|
4230
|
-
function
|
|
4231
|
-
|
|
4232
|
-
}
|
|
4233
|
-
const
|
|
4254
|
+
return f;
|
|
4255
|
+
}, Ri = (e, t) => Mi(t).format(e), Ui = (e, t) => Li(t).format(e), Gi = (e, t) => Oi(t).format(e), Di = (e, t = R()) => rr(e, t), Fi = X([q, ae], () => $i);
|
|
4256
|
+
X([q], () => Ri);
|
|
4257
|
+
X([q], () => Ui);
|
|
4258
|
+
X([q], () => Gi);
|
|
4259
|
+
X([q, ae], () => Di);
|
|
4260
|
+
window.emWidgets = { topic: Jr };
|
|
4261
|
+
const ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4262
|
+
function Pt(e, t) {
|
|
4263
|
+
ir(e, t);
|
|
4264
|
+
}
|
|
4265
|
+
function ki(e) {
|
|
4266
|
+
q.set(e);
|
|
4267
|
+
}
|
|
4268
|
+
const Ht = {
|
|
4234
4269
|
en: {
|
|
4235
4270
|
name: "Info",
|
|
4236
4271
|
amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
|
|
@@ -4292,13 +4327,13 @@ const Tt = {
|
|
|
4292
4327
|
defaultText: "When you set a game limit, it takes effect from the moment you activate it and lasts until the end of the selected period. Therefore, if you set a daily limit at 14.00, the 24-hour period that counts is from its activation until 00:00 GMT. The limit is then valid for 24 days. you can lower a limit at any time with immediate effect. however, increasing or removing a limit will not apply until the current limit expires."
|
|
4293
4328
|
}
|
|
4294
4329
|
};
|
|
4295
|
-
function
|
|
4330
|
+
function Vi(e, t) {
|
|
4296
4331
|
if (e) {
|
|
4297
4332
|
const r = document.createElement("style");
|
|
4298
4333
|
r.innerHTML = t, e.appendChild(r);
|
|
4299
4334
|
}
|
|
4300
4335
|
}
|
|
4301
|
-
function
|
|
4336
|
+
function zi(e, t) {
|
|
4302
4337
|
const r = new URL(t);
|
|
4303
4338
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4304
4339
|
const i = document.createElement("style");
|
|
@@ -4307,7 +4342,7 @@ function Fi(e, t) {
|
|
|
4307
4342
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4308
4343
|
});
|
|
4309
4344
|
}
|
|
4310
|
-
function
|
|
4345
|
+
function Wi(e, t, r) {
|
|
4311
4346
|
if (window.emMessageBus) {
|
|
4312
4347
|
const n = document.createElement("style");
|
|
4313
4348
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4315,24 +4350,24 @@ function ji(e, t, r) {
|
|
|
4315
4350
|
});
|
|
4316
4351
|
}
|
|
4317
4352
|
}
|
|
4318
|
-
function
|
|
4319
|
-
|
|
4353
|
+
function Xi(e) {
|
|
4354
|
+
br(e, "svelte-11p58yq", '.InfoCardPopupMobileModal:after{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);z-index:101;content:""}.InfoCardPopupLimitChanged{background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardPopupWrapper{width:200px;padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 4px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:var(--emw--color-white, #FFFFFF) transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:300}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid var(--emw--color-black, #000000);align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));fill:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:32px;right:32px;padding:16px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px;fill:var(--emw--color-black, #000000)}');
|
|
4320
4355
|
}
|
|
4321
|
-
function
|
|
4356
|
+
function It(e) {
|
|
4322
4357
|
let t, r, n, i, o, a, s = (
|
|
4323
4358
|
/*$_*/
|
|
4324
4359
|
e[4]("name") + ""
|
|
4325
|
-
), l, u, h, c,
|
|
4326
|
-
function S(
|
|
4360
|
+
), l, u, h, f, c, p, d, y;
|
|
4361
|
+
function S(g, w) {
|
|
4327
4362
|
return (
|
|
4328
4363
|
/*iteminfoamount*/
|
|
4329
|
-
|
|
4364
|
+
g[0] ? Zi : qi
|
|
4330
4365
|
);
|
|
4331
4366
|
}
|
|
4332
4367
|
let H = S(e), E = H(e);
|
|
4333
4368
|
return {
|
|
4334
4369
|
c() {
|
|
4335
|
-
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o =
|
|
4370
|
+
t = A("section"), r = A("div"), n = A("div"), i = A("div"), i.textContent = "i", o = Te(), a = A("div"), l = ie(s), u = Te(), h = A("div"), h.innerHTML = '<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>', f = Te(), c = A("div"), E.c(), C(i, "class", "InfoCardPopupIcon"), C(a, "class", "InfoCardPopupTitle"), C(h, "class", "InfoCardPopupCloseButton"), C(n, "class", "InfoCardPopupHeader"), C(c, "class", "InfoCardPopupContentArea"), C(r, "class", p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4336
4371
|
(e[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4337
4372
|
(e[0] ? "InfoCardPopupLimitChanged" : "")), C(
|
|
4338
4373
|
t,
|
|
@@ -4341,48 +4376,48 @@ function St(e) {
|
|
|
4341
4376
|
e[5] ? "InfoCardPopupMobileModal" : ""
|
|
4342
4377
|
);
|
|
4343
4378
|
},
|
|
4344
|
-
m(
|
|
4345
|
-
|
|
4379
|
+
m(g, w) {
|
|
4380
|
+
ne(g, t, w), P(t, r), P(r, n), P(n, i), P(n, o), P(n, a), P(a, l), P(n, u), P(n, h), P(r, f), P(r, c), E.m(c, null), e[13](t), d || (y = xr(h, "click", _r(
|
|
4346
4381
|
/*closeInfoPopup*/
|
|
4347
4382
|
e[6]
|
|
4348
|
-
)),
|
|
4383
|
+
)), d = !0);
|
|
4349
4384
|
},
|
|
4350
|
-
p(
|
|
4385
|
+
p(g, w) {
|
|
4351
4386
|
w & /*$_*/
|
|
4352
4387
|
16 && s !== (s = /*$_*/
|
|
4353
|
-
|
|
4354
|
-
1 &&
|
|
4355
|
-
(
|
|
4356
|
-
(
|
|
4388
|
+
g[4]("name") + "") && Qe(l, s), H === (H = S(g)) && E ? E.p(g, w) : (E.d(1), E = H(g), E && (E.c(), E.m(c, null))), w & /*iteminfoamount*/
|
|
4389
|
+
1 && p !== (p = "InfoCardPopupWrapper " + /*isMobile*/
|
|
4390
|
+
(g[5] ? "InfoCardPopupMobileWrapper" : "") + " " + /*iteminfoamount*/
|
|
4391
|
+
(g[0] ? "InfoCardPopupLimitChanged" : "")) && C(r, "class", p);
|
|
4357
4392
|
},
|
|
4358
|
-
d(
|
|
4359
|
-
|
|
4393
|
+
d(g) {
|
|
4394
|
+
g && W(t), E.d(), e[13](null), d = !1, y();
|
|
4360
4395
|
}
|
|
4361
4396
|
};
|
|
4362
4397
|
}
|
|
4363
|
-
function
|
|
4398
|
+
function qi(e) {
|
|
4364
4399
|
let t, r = (
|
|
4365
4400
|
/*$_*/
|
|
4366
4401
|
e[4]("defaultText") + ""
|
|
4367
4402
|
), n;
|
|
4368
4403
|
return {
|
|
4369
4404
|
c() {
|
|
4370
|
-
t = A("p"), n =
|
|
4405
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4371
4406
|
},
|
|
4372
4407
|
m(i, o) {
|
|
4373
|
-
|
|
4408
|
+
ne(i, t, o), P(t, n);
|
|
4374
4409
|
},
|
|
4375
4410
|
p(i, o) {
|
|
4376
4411
|
o & /*$_*/
|
|
4377
4412
|
16 && r !== (r = /*$_*/
|
|
4378
|
-
i[4]("defaultText") + "") &&
|
|
4413
|
+
i[4]("defaultText") + "") && Qe(n, r);
|
|
4379
4414
|
},
|
|
4380
4415
|
d(i) {
|
|
4381
|
-
i &&
|
|
4416
|
+
i && W(t);
|
|
4382
4417
|
}
|
|
4383
4418
|
};
|
|
4384
4419
|
}
|
|
4385
|
-
function
|
|
4420
|
+
function Zi(e) {
|
|
4386
4421
|
let t, r = (
|
|
4387
4422
|
/*$_*/
|
|
4388
4423
|
e[4]("amountChanged", {
|
|
@@ -4400,10 +4435,10 @@ function zi(e) {
|
|
|
4400
4435
|
), n;
|
|
4401
4436
|
return {
|
|
4402
4437
|
c() {
|
|
4403
|
-
t = A("p"), n =
|
|
4438
|
+
t = A("p"), n = ie(r), C(t, "class", "InfoCardPopupContent");
|
|
4404
4439
|
},
|
|
4405
4440
|
m(i, o) {
|
|
4406
|
-
|
|
4441
|
+
ne(i, t, o), P(t, n);
|
|
4407
4442
|
},
|
|
4408
4443
|
p(i, o) {
|
|
4409
4444
|
o & /*$_, iteminfoamount, currency*/
|
|
@@ -4419,87 +4454,87 @@ function zi(e) {
|
|
|
4419
4454
|
i[1]
|
|
4420
4455
|
)
|
|
4421
4456
|
}
|
|
4422
|
-
}) + "") &&
|
|
4457
|
+
}) + "") && Qe(n, r);
|
|
4423
4458
|
},
|
|
4424
4459
|
d(i) {
|
|
4425
|
-
i &&
|
|
4460
|
+
i && W(t);
|
|
4426
4461
|
}
|
|
4427
4462
|
};
|
|
4428
4463
|
}
|
|
4429
|
-
function
|
|
4464
|
+
function Yi(e) {
|
|
4430
4465
|
let t, r = (
|
|
4431
4466
|
/*showPopup*/
|
|
4432
|
-
e[3] &&
|
|
4467
|
+
e[3] && It(e)
|
|
4433
4468
|
);
|
|
4434
4469
|
return {
|
|
4435
4470
|
c() {
|
|
4436
|
-
r && r.c(), t =
|
|
4471
|
+
r && r.c(), t = gr();
|
|
4437
4472
|
},
|
|
4438
4473
|
m(n, i) {
|
|
4439
|
-
r && r.m(n, i),
|
|
4474
|
+
r && r.m(n, i), ne(n, t, i);
|
|
4440
4475
|
},
|
|
4441
4476
|
p(n, [i]) {
|
|
4442
4477
|
/*showPopup*/
|
|
4443
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4478
|
+
n[3] ? r ? r.p(n, i) : (r = It(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4444
4479
|
},
|
|
4445
4480
|
i: O,
|
|
4446
4481
|
o: O,
|
|
4447
4482
|
d(n) {
|
|
4448
|
-
n &&
|
|
4483
|
+
n && W(t), r && r.d(n);
|
|
4449
4484
|
}
|
|
4450
4485
|
};
|
|
4451
4486
|
}
|
|
4452
|
-
function
|
|
4487
|
+
function Qi(e, t, r) {
|
|
4453
4488
|
let n;
|
|
4454
|
-
|
|
4455
|
-
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { currency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource:
|
|
4456
|
-
const
|
|
4489
|
+
mr(e, Fi, (m) => r(4, n = m));
|
|
4490
|
+
let { showpopup: i = "" } = t, { iteminfoamount: o = "" } = t, { lang: a = "en" } = t, { currency: s = "USD" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h = "" } = t, { mbsource: f } = t;
|
|
4491
|
+
const c = () => {
|
|
4457
4492
|
fetch(h).then((B) => B.json()).then((B) => {
|
|
4458
|
-
Object.keys(B).forEach((
|
|
4459
|
-
|
|
4493
|
+
Object.keys(B).forEach((Y) => {
|
|
4494
|
+
Pt(Y, B[Y]);
|
|
4460
4495
|
});
|
|
4461
4496
|
}).catch((B) => {
|
|
4462
4497
|
console.log(B);
|
|
4463
4498
|
});
|
|
4464
4499
|
};
|
|
4465
|
-
Object.keys(
|
|
4466
|
-
|
|
4500
|
+
Object.keys(Ht).forEach((m) => {
|
|
4501
|
+
Pt(m, Ht[m]);
|
|
4467
4502
|
});
|
|
4468
|
-
let
|
|
4503
|
+
let p = !1, d, y = window.navigator.userAgent, S = ji(y) !== "PC";
|
|
4469
4504
|
const H = () => {
|
|
4470
|
-
r(3,
|
|
4505
|
+
r(3, p = !1), window.postMessage(
|
|
4471
4506
|
{
|
|
4472
4507
|
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4473
4508
|
},
|
|
4474
4509
|
window.location.href
|
|
4475
4510
|
);
|
|
4476
4511
|
}, E = (m) => {
|
|
4477
|
-
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3,
|
|
4478
|
-
},
|
|
4479
|
-
|
|
4512
|
+
m.data && m.data.type == "ClosePlayerAccountGamingLimitsPopup" && r(3, p = !1);
|
|
4513
|
+
}, g = () => {
|
|
4514
|
+
ki(a), o < 0 && r(0, o = "0"), r(3, p = i);
|
|
4480
4515
|
};
|
|
4481
|
-
|
|
4516
|
+
wr(() => (window.addEventListener("message", E, !1), () => {
|
|
4482
4517
|
window.removeEventListener("message", E);
|
|
4483
4518
|
}));
|
|
4484
4519
|
function w(m) {
|
|
4485
|
-
|
|
4486
|
-
|
|
4520
|
+
Oe[m ? "unshift" : "push"](() => {
|
|
4521
|
+
d = m, r(2, d);
|
|
4487
4522
|
});
|
|
4488
4523
|
}
|
|
4489
4524
|
return e.$$set = (m) => {
|
|
4490
|
-
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12,
|
|
4525
|
+
"showpopup" in m && r(7, i = m.showpopup), "iteminfoamount" in m && r(0, o = m.iteminfoamount), "lang" in m && r(8, a = m.lang), "currency" in m && r(1, s = m.currency), "clientstyling" in m && r(9, l = m.clientstyling), "clientstylingurl" in m && r(10, u = m.clientstylingurl), "translationurl" in m && r(11, h = m.translationurl), "mbsource" in m && r(12, f = m.mbsource);
|
|
4491
4526
|
}, e.$$.update = () => {
|
|
4492
4527
|
e.$$.dirty & /*showpopup, lang*/
|
|
4493
|
-
384 && i && a &&
|
|
4494
|
-
516 && l &&
|
|
4495
|
-
1028 && u &&
|
|
4496
|
-
4100 &&
|
|
4497
|
-
2048 && h &&
|
|
4528
|
+
384 && i && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4529
|
+
516 && l && d && Vi(d, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4530
|
+
1028 && u && d && zi(d, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4531
|
+
4100 && f && d && Wi(d, `${f}.Style`), e.$$.dirty & /*translationurl*/
|
|
4532
|
+
2048 && h && c();
|
|
4498
4533
|
}, [
|
|
4499
4534
|
o,
|
|
4500
4535
|
s,
|
|
4501
|
-
p,
|
|
4502
4536
|
d,
|
|
4537
|
+
p,
|
|
4503
4538
|
n,
|
|
4504
4539
|
S,
|
|
4505
4540
|
H,
|
|
@@ -4508,18 +4543,18 @@ function Xi(e, t, r) {
|
|
|
4508
4543
|
l,
|
|
4509
4544
|
u,
|
|
4510
4545
|
h,
|
|
4511
|
-
|
|
4546
|
+
f,
|
|
4512
4547
|
w
|
|
4513
4548
|
];
|
|
4514
4549
|
}
|
|
4515
|
-
class
|
|
4550
|
+
class Ji extends Rr {
|
|
4516
4551
|
constructor(t) {
|
|
4517
|
-
super(),
|
|
4552
|
+
super(), Nr(
|
|
4518
4553
|
this,
|
|
4519
4554
|
t,
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4555
|
+
Qi,
|
|
4556
|
+
Yi,
|
|
4557
|
+
Ct,
|
|
4523
4558
|
{
|
|
4524
4559
|
showpopup: 7,
|
|
4525
4560
|
iteminfoamount: 0,
|
|
@@ -4530,7 +4565,7 @@ class qi extends Lr {
|
|
|
4530
4565
|
translationurl: 11,
|
|
4531
4566
|
mbsource: 12
|
|
4532
4567
|
},
|
|
4533
|
-
|
|
4568
|
+
Xi
|
|
4534
4569
|
);
|
|
4535
4570
|
}
|
|
4536
4571
|
get showpopup() {
|
|
@@ -4582,7 +4617,7 @@ class qi extends Lr {
|
|
|
4582
4617
|
this.$$set({ mbsource: t }), L();
|
|
4583
4618
|
}
|
|
4584
4619
|
}
|
|
4585
|
-
|
|
4620
|
+
$r(Ji, { showpopup: {}, iteminfoamount: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4586
4621
|
export {
|
|
4587
|
-
|
|
4622
|
+
Ji as default
|
|
4588
4623
|
};
|