@everymatrix/player-account-balance-modal-nd 1.76.0 → 1.76.3
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/PlayerAccountBalanceModalNd-D5dg567p.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-pqPzOPTL.js → PlayerAccountBalanceModalNd-aF42S6lR.js} +1374 -1409
- package/components/{PlayerAccountBalanceModalNd-Dav9pAGk.js → PlayerAccountBalanceModalNd-lPXKhPip.js} +1461 -1496
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DmLIKkkM.cjs +0 -24
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
function ce() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Gn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ln() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ze(e) {
|
|
10
|
+
e.forEach(Gn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function rn(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function jn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function wr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function kn(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
|
-
for (const
|
|
24
|
-
|
|
23
|
+
for (const r of t)
|
|
24
|
+
r(void 0);
|
|
25
25
|
return ce;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
return
|
|
27
|
+
const n = e.subscribe(...t);
|
|
28
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Sr(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(kn(t, n));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function P(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent =
|
|
36
|
+
function Tr(e, t, n) {
|
|
37
|
+
const r = Br(e);
|
|
38
|
+
if (!r.getElementById(t)) {
|
|
39
|
+
const i = j("style");
|
|
40
|
+
i.id = t, i.textContent = n, Ar(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Br(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,83 +50,83 @@ function On(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Ar(e, t) {
|
|
54
|
+
return P(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
e.insertBefore(t,
|
|
60
|
+
function be(e, t, n) {
|
|
61
|
+
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
63
|
function de(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
for (let
|
|
68
|
-
e[
|
|
66
|
+
function $n(e, t) {
|
|
67
|
+
for (let n = 0; n < e.length; n += 1)
|
|
68
|
+
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function j(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function cn(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function xe(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function we() {
|
|
80
|
+
return xe(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Cr() {
|
|
83
|
+
return xe("");
|
|
84
84
|
}
|
|
85
|
-
function vt(e, t,
|
|
86
|
-
return e.addEventListener(t,
|
|
85
|
+
function vt(e, t, n, r) {
|
|
86
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
88
|
+
function M(e, t, n) {
|
|
89
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Hr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Me(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Or(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
102
|
-
(
|
|
103
|
-
t[
|
|
102
|
+
(n) => {
|
|
103
|
+
t[n.slot || "default"] = !0;
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
107
|
let rt;
|
|
108
|
-
function
|
|
108
|
+
function nt(e) {
|
|
109
109
|
rt = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Mr() {
|
|
112
112
|
if (!rt)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
114
|
return rt;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function Rr(e) {
|
|
117
|
+
Mr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const Fe = [],
|
|
119
|
+
const Fe = [], Gt = [];
|
|
120
120
|
let Ge = [];
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
121
|
+
const hn = [], Lr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let jt = !1;
|
|
123
|
+
function Pr() {
|
|
124
|
+
jt || (jt = !0, Lr.then(Q));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function kt(e) {
|
|
127
127
|
Ge.push(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
130
130
|
let De = 0;
|
|
131
131
|
function Q() {
|
|
132
132
|
if (De !== 0)
|
|
@@ -136,58 +136,58 @@ function Q() {
|
|
|
136
136
|
try {
|
|
137
137
|
for (; De < Fe.length; ) {
|
|
138
138
|
const t = Fe[De];
|
|
139
|
-
De++,
|
|
139
|
+
De++, nt(t), Nr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
142
|
throw Fe.length = 0, De = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
145
|
-
|
|
144
|
+
for (nt(null), Fe.length = 0, De = 0; Gt.length; )
|
|
145
|
+
Gt.pop()();
|
|
146
146
|
for (let t = 0; t < Ge.length; t += 1) {
|
|
147
|
-
const
|
|
148
|
-
|
|
147
|
+
const n = Ge[t];
|
|
148
|
+
Lt.has(n) || (Lt.add(n), n());
|
|
149
149
|
}
|
|
150
150
|
Ge.length = 0;
|
|
151
151
|
} while (Fe.length);
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
for (; hn.length; )
|
|
153
|
+
hn.pop()();
|
|
154
|
+
jt = !1, Lt.clear(), nt(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Nr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), ze(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
const t = [],
|
|
165
|
-
Ge.forEach((
|
|
163
|
+
function Ir(e) {
|
|
164
|
+
const t = [], n = [];
|
|
165
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Dr = /* @__PURE__ */ new Set();
|
|
168
|
+
function Ur(e, t) {
|
|
169
|
+
e && e.i && (Dr.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
171
|
function _t(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
const { fragment:
|
|
176
|
-
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
179
|
-
}), i.forEach(
|
|
174
|
+
function Fr(e, t, n) {
|
|
175
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
176
|
+
r && r.m(t, n), kt(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Gn).filter(rn);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach(kt);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const
|
|
183
|
-
|
|
181
|
+
function Gr(e, t) {
|
|
182
|
+
const n = e.$$;
|
|
183
|
+
n.fragment !== null && (Ir(n.after_update), ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
e.$$.dirty[0] === -1 && (Fe.push(e),
|
|
185
|
+
function jr(e, t) {
|
|
186
|
+
e.$$.dirty[0] === -1 && (Fe.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function kr(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
189
189
|
const l = rt;
|
|
190
|
-
|
|
190
|
+
nt(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
@@ -195,7 +195,7 @@ function zn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
195
195
|
props: o,
|
|
196
196
|
update: ce,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: ln(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
@@ -204,28 +204,28 @@ function zn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
after_update: [],
|
|
205
205
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: ln(),
|
|
208
208
|
dirty: a,
|
|
209
209
|
skip_bound: !1,
|
|
210
210
|
root: t.target || l.$$.root
|
|
211
211
|
};
|
|
212
212
|
s && s(u.root);
|
|
213
213
|
let f = !1;
|
|
214
|
-
if (u.ctx =
|
|
214
|
+
if (u.ctx = n(e, t.props || {}, (b, m, ...w) => {
|
|
215
215
|
const _ = w.length ? w[0] : m;
|
|
216
|
-
return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f &&
|
|
217
|
-
})
|
|
216
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && jr(e, b)), m;
|
|
217
|
+
}), u.update(), f = !0, ze(u.before_update), u.fragment = r(u.ctx), t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const b =
|
|
219
|
+
const b = Hr(t.target);
|
|
220
220
|
u.fragment && u.fragment.l(b), b.forEach(de);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), Q();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
nt(l);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Vn;
|
|
228
|
+
typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -244,20 +244,20 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
244
244
|
$$l = {};
|
|
245
245
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
246
246
|
$$l_u = /* @__PURE__ */ new Map();
|
|
247
|
-
constructor(e, t,
|
|
248
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
247
|
+
constructor(e, t, n) {
|
|
248
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
249
249
|
}
|
|
250
|
-
addEventListener(e, t,
|
|
250
|
+
addEventListener(e, t, n) {
|
|
251
251
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
252
|
-
const
|
|
253
|
-
this.$$l_u.set(t,
|
|
252
|
+
const r = this.$$c.$on(e, t);
|
|
253
|
+
this.$$l_u.set(t, r);
|
|
254
254
|
}
|
|
255
|
-
super.addEventListener(e, t,
|
|
255
|
+
super.addEventListener(e, t, n);
|
|
256
256
|
}
|
|
257
|
-
removeEventListener(e, t,
|
|
258
|
-
if (super.removeEventListener(e, t,
|
|
259
|
-
const
|
|
260
|
-
|
|
257
|
+
removeEventListener(e, t, n) {
|
|
258
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
259
|
+
const r = this.$$l_u.get(t);
|
|
260
|
+
r && (r(), this.$$l_u.delete(t));
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
async connectedCallback() {
|
|
@@ -267,14 +267,14 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
267
267
|
let o;
|
|
268
268
|
return {
|
|
269
269
|
c: function() {
|
|
270
|
-
o =
|
|
270
|
+
o = j("slot"), i !== "default" && M(o, "name", i);
|
|
271
271
|
},
|
|
272
272
|
/**
|
|
273
273
|
* @param {HTMLElement} target
|
|
274
274
|
* @param {HTMLElement} [anchor]
|
|
275
275
|
*/
|
|
276
276
|
m: function(l, u) {
|
|
277
|
-
|
|
277
|
+
be(l, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(l) {
|
|
280
280
|
l && de(o);
|
|
@@ -284,9 +284,9 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {},
|
|
287
|
+
const t = {}, n = Or(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
|
-
i in
|
|
289
|
+
i in n && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
291
291
|
const o = this.$$g_p(i.name);
|
|
292
292
|
o in this.$$d || (this.$$d[o] = mt(o, i.value, this.$$p_d, "toProp"));
|
|
@@ -303,7 +303,7 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
const
|
|
306
|
+
const r = () => {
|
|
307
307
|
this.$$r = !0;
|
|
308
308
|
for (const i in this.$$p_d)
|
|
309
309
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
317
317
|
}
|
|
318
318
|
this.$$r = !1;
|
|
319
319
|
};
|
|
320
|
-
this.$$c.$$.after_update.push(
|
|
320
|
+
this.$$c.$$.after_update.push(r), r();
|
|
321
321
|
for (const i in this.$$l)
|
|
322
322
|
for (const o of this.$$l[i]) {
|
|
323
323
|
const s = this.$$c.$on(i, o);
|
|
@@ -328,8 +328,8 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
328
328
|
}
|
|
329
329
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
330
330
|
// and setting attributes through setAttribute etc, this is helpful
|
|
331
|
-
attributeChangedCallback(e, t,
|
|
332
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e,
|
|
331
|
+
attributeChangedCallback(e, t, n) {
|
|
332
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
333
333
|
}
|
|
334
334
|
disconnectedCallback() {
|
|
335
335
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -342,11 +342,11 @@ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
|
|
|
342
342
|
) || e;
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
function mt(e, t,
|
|
346
|
-
const i =
|
|
347
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
345
|
+
function mt(e, t, n, r) {
|
|
346
|
+
const i = n[e]?.type;
|
|
347
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
348
348
|
return t;
|
|
349
|
-
if (
|
|
349
|
+
if (r === "toAttribute")
|
|
350
350
|
switch (i) {
|
|
351
351
|
case "Object":
|
|
352
352
|
case "Array":
|
|
@@ -371,10 +371,10 @@ function mt(e, t, r, n) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let s = class extends
|
|
374
|
+
function $r(e, t, n, r, i, o) {
|
|
375
|
+
let s = class extends Vn {
|
|
376
376
|
constructor() {
|
|
377
|
-
super(e,
|
|
377
|
+
super(e, n, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
379
379
|
static get observedAttributes() {
|
|
380
380
|
return Object.keys(t).map(
|
|
@@ -391,7 +391,7 @@ function Wn(e, t, r, n, i, o) {
|
|
|
391
391
|
l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
|
-
}),
|
|
394
|
+
}), r.forEach((a) => {
|
|
395
395
|
Object.defineProperty(s.prototype, a, {
|
|
396
396
|
get() {
|
|
397
397
|
return this.$$c?.[a];
|
|
@@ -400,7 +400,7 @@ function Wn(e, t, r, n, i, o) {
|
|
|
400
400
|
}), e.element = /** @type {any} */
|
|
401
401
|
s, s;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Vr {
|
|
404
404
|
/**
|
|
405
405
|
* ### PRIVATE API
|
|
406
406
|
*
|
|
@@ -419,7 +419,7 @@ class Zn {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
|
|
422
|
+
Gr(this, 1), this.$destroy = ce;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -427,13 +427,13 @@ class Zn {
|
|
|
427
427
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
|
-
$on(t,
|
|
431
|
-
if (!
|
|
430
|
+
$on(t, n) {
|
|
431
|
+
if (!rn(n))
|
|
432
432
|
return ce;
|
|
433
|
-
const
|
|
434
|
-
return
|
|
435
|
-
const i =
|
|
436
|
-
i !== -1 &&
|
|
433
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
|
+
return r.push(n), () => {
|
|
435
|
+
const i = r.indexOf(n);
|
|
436
|
+
i !== -1 && r.splice(i, 1);
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
/**
|
|
@@ -441,47 +441,47 @@ class Zn {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
449
|
-
function
|
|
447
|
+
const Xr = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
|
|
449
|
+
function zr(e, t) {
|
|
450
450
|
if (e) {
|
|
451
|
-
const
|
|
452
|
-
|
|
451
|
+
const n = document.createElement("style");
|
|
452
|
+
n.innerHTML = t, e.appendChild(n);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
const
|
|
457
|
-
fetch(
|
|
455
|
+
function Wr(e, t) {
|
|
456
|
+
const n = new URL(t);
|
|
457
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
458
458
|
const i = document.createElement("style");
|
|
459
|
-
i.innerHTML =
|
|
460
|
-
}).catch((
|
|
461
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
459
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
460
|
+
}).catch((r) => {
|
|
461
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Zr(e, t, n) {
|
|
465
465
|
if (window.emMessageBus) {
|
|
466
|
-
const
|
|
466
|
+
const r = document.createElement("style");
|
|
467
467
|
window.emMessageBus.subscribe(t, (i) => {
|
|
468
|
-
|
|
468
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
const Ue = [];
|
|
473
|
-
function
|
|
473
|
+
function qr(e, t) {
|
|
474
474
|
return {
|
|
475
|
-
subscribe:
|
|
475
|
+
subscribe: wt(e, t).subscribe
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
let
|
|
480
|
-
const
|
|
478
|
+
function wt(e, t = ce) {
|
|
479
|
+
let n;
|
|
480
|
+
const r = /* @__PURE__ */ new Set();
|
|
481
481
|
function i(a) {
|
|
482
|
-
if (
|
|
482
|
+
if (jn(e, a) && (e = a, n)) {
|
|
483
483
|
const l = !Ue.length;
|
|
484
|
-
for (const u of
|
|
484
|
+
for (const u of r)
|
|
485
485
|
u[1](), Ue.push(u, e);
|
|
486
486
|
if (l) {
|
|
487
487
|
for (let u = 0; u < Ue.length; u += 2)
|
|
@@ -495,18 +495,18 @@ function St(e, t = ce) {
|
|
|
495
495
|
}
|
|
496
496
|
function s(a, l = ce) {
|
|
497
497
|
const u = [a, l];
|
|
498
|
-
return
|
|
499
|
-
|
|
498
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || ce), a(e), () => {
|
|
499
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
return { set: i, update: o, subscribe: s };
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
const
|
|
504
|
+
function We(e, t, n) {
|
|
505
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
506
506
|
if (!i.every(Boolean))
|
|
507
507
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
508
508
|
const o = t.length < 2;
|
|
509
|
-
return
|
|
509
|
+
return qr(n, (s, a) => {
|
|
510
510
|
let l = !1;
|
|
511
511
|
const u = [];
|
|
512
512
|
let f = 0, b = ce;
|
|
@@ -514,13 +514,13 @@ function ze(e, t, r) {
|
|
|
514
514
|
if (f)
|
|
515
515
|
return;
|
|
516
516
|
b();
|
|
517
|
-
const _ = t(
|
|
518
|
-
o ? s(_) : b =
|
|
517
|
+
const _ = t(r ? u[0] : u, s, a);
|
|
518
|
+
o ? s(_) : b = rn(_) ? _ : ce;
|
|
519
519
|
}, w = i.map(
|
|
520
|
-
(_, A) =>
|
|
520
|
+
(_, A) => kn(
|
|
521
521
|
_,
|
|
522
|
-
(
|
|
523
|
-
u[A] =
|
|
522
|
+
(I) => {
|
|
523
|
+
u[A] = I, f &= ~(1 << A), l && m();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
526
|
f |= 1 << A;
|
|
@@ -528,158 +528,207 @@ function ze(e, t, r) {
|
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
530
|
return l = !0, m(), function() {
|
|
531
|
-
|
|
531
|
+
ze(w), b(), l = !1;
|
|
532
532
|
};
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
535
|
+
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
536
|
+
function Qr(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var Jr = function(t) {
|
|
540
|
+
return Kr(t) && !ei(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Kr(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ei(e) {
|
|
546
546
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || ri(e);
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
549
|
+
var ti = typeof Symbol == "function" && Symbol.for, ni = ti ? Symbol.for("react.element") : 60103;
|
|
550
|
+
function ri(e) {
|
|
551
|
+
return e.$$typeof === ni;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ii(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
556
|
+
function it(e, t) {
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ke(ii(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return e.concat(t).map(function(
|
|
561
|
-
return
|
|
559
|
+
function oi(e, t, n) {
|
|
560
|
+
return e.concat(t).map(function(r) {
|
|
561
|
+
return it(r, n);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function ai(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
567
|
-
var
|
|
568
|
-
return typeof
|
|
566
|
+
return ke;
|
|
567
|
+
var n = t.customMerge(e);
|
|
568
|
+
return typeof n == "function" ? n : ke;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function si(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
572
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
573
|
}) : [];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
575
|
+
function fn(e) {
|
|
576
|
+
return Object.keys(e).concat(si(e));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Xn(e, t) {
|
|
579
579
|
try {
|
|
580
580
|
return t in e;
|
|
581
581
|
} catch {
|
|
582
582
|
return !1;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function ui(e, t) {
|
|
586
|
+
return Xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
var
|
|
590
|
-
return
|
|
591
|
-
|
|
592
|
-
}),
|
|
593
|
-
|
|
594
|
-
}),
|
|
595
|
-
}
|
|
596
|
-
function
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
return o ?
|
|
600
|
-
}
|
|
601
|
-
|
|
588
|
+
function li(e, t, n) {
|
|
589
|
+
var r = {};
|
|
590
|
+
return n.isMergeableObject(e) && fn(e).forEach(function(i) {
|
|
591
|
+
r[i] = it(e[i], n);
|
|
592
|
+
}), fn(t).forEach(function(i) {
|
|
593
|
+
ui(e, i) || (Xn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
|
|
594
|
+
}), r;
|
|
595
|
+
}
|
|
596
|
+
function ke(e, t, n) {
|
|
597
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = it;
|
|
598
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
599
|
+
return o ? r ? n.arrayMerge(e, t, n) : li(e, t, n) : it(t, n);
|
|
600
|
+
}
|
|
601
|
+
ke.all = function(t, n) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
603
603
|
throw new Error("first argument should be an array");
|
|
604
|
-
return t.reduce(function(
|
|
605
|
-
return
|
|
604
|
+
return t.reduce(function(r, i) {
|
|
605
|
+
return ke(r, i, n);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
608
|
+
var ci = ke, hi = ci;
|
|
609
|
+
const fi = /* @__PURE__ */ Qr(hi);
|
|
610
|
+
/*! *****************************************************************************
|
|
611
|
+
Copyright (c) Microsoft Corporation.
|
|
612
|
+
|
|
613
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
614
|
+
purpose with or without fee is hereby granted.
|
|
615
|
+
|
|
616
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
617
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
618
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
619
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
620
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
621
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
622
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
623
|
+
***************************************************************************** */
|
|
624
|
+
var $t = function(e, t) {
|
|
625
|
+
return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
626
|
+
n.__proto__ = r;
|
|
627
|
+
} || function(n, r) {
|
|
628
|
+
for (var i in r)
|
|
629
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
630
|
+
}, $t(e, t);
|
|
617
631
|
};
|
|
618
|
-
function
|
|
632
|
+
function Te(e, t) {
|
|
619
633
|
if (typeof t != "function" && t !== null)
|
|
620
634
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
621
|
-
|
|
622
|
-
function
|
|
635
|
+
$t(e, t);
|
|
636
|
+
function n() {
|
|
623
637
|
this.constructor = e;
|
|
624
638
|
}
|
|
625
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
626
|
-
}
|
|
627
|
-
var
|
|
628
|
-
return
|
|
629
|
-
for (var
|
|
630
|
-
|
|
631
|
-
for (var o in
|
|
632
|
-
Object.prototype.hasOwnProperty.call(
|
|
639
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
640
|
+
}
|
|
641
|
+
var L = function() {
|
|
642
|
+
return L = Object.assign || function(t) {
|
|
643
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
644
|
+
n = arguments[r];
|
|
645
|
+
for (var o in n)
|
|
646
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
633
647
|
}
|
|
634
648
|
return t;
|
|
635
|
-
},
|
|
649
|
+
}, L.apply(this, arguments);
|
|
636
650
|
};
|
|
637
|
-
function
|
|
638
|
-
var
|
|
639
|
-
for (var
|
|
640
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
651
|
+
function di(e, t) {
|
|
652
|
+
var n = {};
|
|
653
|
+
for (var r in e)
|
|
654
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
641
655
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
642
|
-
for (var i = 0,
|
|
643
|
-
t.indexOf(
|
|
644
|
-
return
|
|
656
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
657
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
658
|
+
return n;
|
|
659
|
+
}
|
|
660
|
+
function Vt(e) {
|
|
661
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
662
|
+
if (n)
|
|
663
|
+
return n.call(e);
|
|
664
|
+
if (e && typeof e.length == "number")
|
|
665
|
+
return {
|
|
666
|
+
next: function() {
|
|
667
|
+
return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
671
|
+
}
|
|
672
|
+
function Xt(e, t) {
|
|
673
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
674
|
+
if (!n)
|
|
675
|
+
return e;
|
|
676
|
+
var r = n.call(e), i, o = [], s;
|
|
677
|
+
try {
|
|
678
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
679
|
+
o.push(i.value);
|
|
680
|
+
} catch (a) {
|
|
681
|
+
s = { error: a };
|
|
682
|
+
} finally {
|
|
683
|
+
try {
|
|
684
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
685
|
+
} finally {
|
|
686
|
+
if (s)
|
|
687
|
+
throw s.error;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return o;
|
|
645
691
|
}
|
|
646
|
-
function
|
|
647
|
-
if (
|
|
648
|
-
for (var
|
|
649
|
-
(o || !(
|
|
650
|
-
return e.concat(o ||
|
|
692
|
+
function je(e, t, n) {
|
|
693
|
+
if (n || arguments.length === 2)
|
|
694
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
695
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
696
|
+
return e.concat(o || t);
|
|
651
697
|
}
|
|
652
|
-
function
|
|
653
|
-
var
|
|
698
|
+
function Pt(e, t) {
|
|
699
|
+
var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : mi;
|
|
654
700
|
return i(e, {
|
|
655
|
-
cache:
|
|
656
|
-
serializer:
|
|
701
|
+
cache: n,
|
|
702
|
+
serializer: r
|
|
657
703
|
});
|
|
658
704
|
}
|
|
659
|
-
function
|
|
705
|
+
function pi(e) {
|
|
660
706
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
661
707
|
}
|
|
662
|
-
function
|
|
663
|
-
var i =
|
|
664
|
-
return typeof o > "u" && (o = e.call(this,
|
|
708
|
+
function zn(e, t, n, r) {
|
|
709
|
+
var i = pi(r) ? r : n(r), o = t.get(i);
|
|
710
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
665
711
|
}
|
|
666
|
-
function
|
|
667
|
-
var
|
|
668
|
-
return typeof o > "u" && (o = e.apply(this,
|
|
712
|
+
function Wn(e, t, n) {
|
|
713
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
714
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
669
715
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
716
|
+
function on(e, t, n, r, i) {
|
|
717
|
+
return n.bind(t, e, r, i);
|
|
672
718
|
}
|
|
673
|
-
function
|
|
674
|
-
var
|
|
675
|
-
return
|
|
719
|
+
function mi(e, t) {
|
|
720
|
+
var n = e.length === 1 ? zn : Wn;
|
|
721
|
+
return on(e, this, n, t.cache.create(), t.serializer);
|
|
676
722
|
}
|
|
677
|
-
function
|
|
678
|
-
return
|
|
723
|
+
function bi(e, t) {
|
|
724
|
+
return on(e, this, Wn, t.cache.create(), t.serializer);
|
|
679
725
|
}
|
|
680
|
-
|
|
726
|
+
function gi(e, t) {
|
|
727
|
+
return on(e, this, zn, t.cache.create(), t.serializer);
|
|
728
|
+
}
|
|
729
|
+
var yi = function() {
|
|
681
730
|
return JSON.stringify(arguments);
|
|
682
|
-
},
|
|
731
|
+
}, vi = (
|
|
683
732
|
/** @class */
|
|
684
733
|
function() {
|
|
685
734
|
function e() {
|
|
@@ -687,82 +736,73 @@ var xi = function() {
|
|
|
687
736
|
}
|
|
688
737
|
return e.prototype.get = function(t) {
|
|
689
738
|
return this.cache[t];
|
|
690
|
-
}, e.prototype.set = function(t,
|
|
691
|
-
this.cache[t] =
|
|
739
|
+
}, e.prototype.set = function(t, n) {
|
|
740
|
+
this.cache[t] = n;
|
|
692
741
|
}, e;
|
|
693
742
|
}()
|
|
694
|
-
),
|
|
743
|
+
), _i = {
|
|
695
744
|
create: function() {
|
|
696
|
-
return new
|
|
745
|
+
return new vi();
|
|
697
746
|
}
|
|
698
|
-
},
|
|
699
|
-
variadic:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
703
|
-
r = arguments[n];
|
|
704
|
-
for (var o in r)
|
|
705
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
706
|
-
}
|
|
707
|
-
return t;
|
|
708
|
-
}, Et.apply(this, arguments);
|
|
709
|
-
};
|
|
710
|
-
var H;
|
|
747
|
+
}, Nt = {
|
|
748
|
+
variadic: bi,
|
|
749
|
+
monadic: gi
|
|
750
|
+
}, H;
|
|
711
751
|
(function(e) {
|
|
712
752
|
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";
|
|
713
753
|
})(H || (H = {}));
|
|
714
|
-
var
|
|
754
|
+
var G;
|
|
715
755
|
(function(e) {
|
|
716
756
|
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";
|
|
717
|
-
})(
|
|
718
|
-
var
|
|
757
|
+
})(G || (G = {}));
|
|
758
|
+
var $e;
|
|
719
759
|
(function(e) {
|
|
720
760
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
721
|
-
})(
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
761
|
+
})($e || ($e = {}));
|
|
762
|
+
function dn(e) {
|
|
763
|
+
return e.type === G.literal;
|
|
724
764
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.type ===
|
|
765
|
+
function Ei(e) {
|
|
766
|
+
return e.type === G.argument;
|
|
727
767
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
768
|
+
function Zn(e) {
|
|
769
|
+
return e.type === G.number;
|
|
730
770
|
}
|
|
731
|
-
function
|
|
732
|
-
return e.type ===
|
|
771
|
+
function qn(e) {
|
|
772
|
+
return e.type === G.date;
|
|
733
773
|
}
|
|
734
|
-
function
|
|
735
|
-
return e.type ===
|
|
774
|
+
function Yn(e) {
|
|
775
|
+
return e.type === G.time;
|
|
736
776
|
}
|
|
737
|
-
function
|
|
738
|
-
return e.type ===
|
|
777
|
+
function Qn(e) {
|
|
778
|
+
return e.type === G.select;
|
|
739
779
|
}
|
|
740
|
-
function
|
|
741
|
-
return e.type ===
|
|
780
|
+
function Jn(e) {
|
|
781
|
+
return e.type === G.plural;
|
|
742
782
|
}
|
|
743
|
-
function
|
|
744
|
-
return e.type ===
|
|
783
|
+
function xi(e) {
|
|
784
|
+
return e.type === G.pound;
|
|
745
785
|
}
|
|
746
|
-
function
|
|
747
|
-
return e.type ===
|
|
786
|
+
function Kn(e) {
|
|
787
|
+
return e.type === G.tag;
|
|
748
788
|
}
|
|
749
|
-
function
|
|
750
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
789
|
+
function er(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
751
791
|
}
|
|
752
|
-
function
|
|
753
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
792
|
+
function zt(e) {
|
|
793
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
754
794
|
}
|
|
755
|
-
var
|
|
756
|
-
function
|
|
795
|
+
var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
796
|
+
function Si(e) {
|
|
757
797
|
var t = {};
|
|
758
|
-
return e.replace(
|
|
759
|
-
var
|
|
760
|
-
switch (
|
|
798
|
+
return e.replace(wi, function(n) {
|
|
799
|
+
var r = n.length;
|
|
800
|
+
switch (n[0]) {
|
|
761
801
|
case "G":
|
|
762
|
-
t.era =
|
|
802
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
763
803
|
break;
|
|
764
804
|
case "y":
|
|
765
|
-
t.year =
|
|
805
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
766
806
|
break;
|
|
767
807
|
case "Y":
|
|
768
808
|
case "u":
|
|
@@ -774,30 +814,30 @@ function Ci(e) {
|
|
|
774
814
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
775
815
|
case "M":
|
|
776
816
|
case "L":
|
|
777
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
817
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
778
818
|
break;
|
|
779
819
|
case "w":
|
|
780
820
|
case "W":
|
|
781
821
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
782
822
|
case "d":
|
|
783
|
-
t.day = ["numeric", "2-digit"][
|
|
823
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
784
824
|
break;
|
|
785
825
|
case "D":
|
|
786
826
|
case "F":
|
|
787
827
|
case "g":
|
|
788
828
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
789
829
|
case "E":
|
|
790
|
-
t.weekday =
|
|
830
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
791
831
|
break;
|
|
792
832
|
case "e":
|
|
793
|
-
if (
|
|
833
|
+
if (r < 4)
|
|
794
834
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
795
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
835
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
796
836
|
break;
|
|
797
837
|
case "c":
|
|
798
|
-
if (
|
|
838
|
+
if (r < 4)
|
|
799
839
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
800
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
840
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
801
841
|
break;
|
|
802
842
|
case "a":
|
|
803
843
|
t.hour12 = !0;
|
|
@@ -806,32 +846,32 @@ function Ci(e) {
|
|
|
806
846
|
case "B":
|
|
807
847
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
808
848
|
case "h":
|
|
809
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
849
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
810
850
|
break;
|
|
811
851
|
case "H":
|
|
812
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
852
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
813
853
|
break;
|
|
814
854
|
case "K":
|
|
815
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
855
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
816
856
|
break;
|
|
817
857
|
case "k":
|
|
818
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
858
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
819
859
|
break;
|
|
820
860
|
case "j":
|
|
821
861
|
case "J":
|
|
822
862
|
case "C":
|
|
823
863
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
824
864
|
case "m":
|
|
825
|
-
t.minute = ["numeric", "2-digit"][
|
|
865
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
826
866
|
break;
|
|
827
867
|
case "s":
|
|
828
|
-
t.second = ["numeric", "2-digit"][
|
|
868
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
829
869
|
break;
|
|
830
870
|
case "S":
|
|
831
871
|
case "A":
|
|
832
872
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
833
873
|
case "z":
|
|
834
|
-
t.timeZoneName =
|
|
874
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
835
875
|
break;
|
|
836
876
|
case "Z":
|
|
837
877
|
case "O":
|
|
@@ -844,24 +884,14 @@ function Ci(e) {
|
|
|
844
884
|
return "";
|
|
845
885
|
}), t;
|
|
846
886
|
}
|
|
847
|
-
var
|
|
848
|
-
|
|
849
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
850
|
-
r = arguments[n];
|
|
851
|
-
for (var o in r)
|
|
852
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
853
|
-
}
|
|
854
|
-
return t;
|
|
855
|
-
}, $.apply(this, arguments);
|
|
856
|
-
};
|
|
857
|
-
var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
858
|
-
function Oi(e) {
|
|
887
|
+
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
888
|
+
function Bi(e) {
|
|
859
889
|
if (e.length === 0)
|
|
860
890
|
throw new Error("Number skeleton cannot be empty");
|
|
861
|
-
for (var t = e.split(
|
|
891
|
+
for (var t = e.split(Ti).filter(function(m) {
|
|
862
892
|
return m.length > 0;
|
|
863
|
-
}),
|
|
864
|
-
var o = i[
|
|
893
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
894
|
+
var o = i[r], s = o.split("/");
|
|
865
895
|
if (s.length === 0)
|
|
866
896
|
throw new Error("Invalid number skeleton");
|
|
867
897
|
for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
|
|
@@ -869,21 +899,21 @@ function Oi(e) {
|
|
|
869
899
|
if (b.length === 0)
|
|
870
900
|
throw new Error("Invalid number skeleton");
|
|
871
901
|
}
|
|
872
|
-
|
|
902
|
+
n.push({ stem: a, options: l });
|
|
873
903
|
}
|
|
874
|
-
return
|
|
904
|
+
return n;
|
|
875
905
|
}
|
|
876
|
-
function
|
|
906
|
+
function Ai(e) {
|
|
877
907
|
return e.replace(/^(.*?)-/, "");
|
|
878
908
|
}
|
|
879
|
-
var
|
|
880
|
-
function
|
|
909
|
+
var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
910
|
+
function mn(e) {
|
|
881
911
|
var t = {};
|
|
882
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
883
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
912
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(n, r, i) {
|
|
913
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
884
914
|
}), t;
|
|
885
915
|
}
|
|
886
|
-
function
|
|
916
|
+
function ir(e) {
|
|
887
917
|
switch (e) {
|
|
888
918
|
case "sign-auto":
|
|
889
919
|
return {
|
|
@@ -923,27 +953,27 @@ function un(e) {
|
|
|
923
953
|
};
|
|
924
954
|
}
|
|
925
955
|
}
|
|
926
|
-
function
|
|
956
|
+
function Hi(e) {
|
|
927
957
|
var t;
|
|
928
958
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
929
959
|
notation: "engineering"
|
|
930
960
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
931
961
|
notation: "scientific"
|
|
932
962
|
}, e = e.slice(1)), t) {
|
|
933
|
-
var
|
|
934
|
-
if (
|
|
963
|
+
var n = e.slice(0, 2);
|
|
964
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
|
935
965
|
throw new Error("Malformed concise eng/scientific notation");
|
|
936
966
|
t.minimumIntegerDigits = e.length;
|
|
937
967
|
}
|
|
938
968
|
return t;
|
|
939
969
|
}
|
|
940
|
-
function
|
|
941
|
-
var t = {},
|
|
942
|
-
return
|
|
970
|
+
function bn(e) {
|
|
971
|
+
var t = {}, n = ir(e);
|
|
972
|
+
return n || t;
|
|
943
973
|
}
|
|
944
|
-
function
|
|
945
|
-
for (var t = {},
|
|
946
|
-
var i = n
|
|
974
|
+
function Oi(e) {
|
|
975
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
976
|
+
var i = r[n];
|
|
947
977
|
switch (i.stem) {
|
|
948
978
|
case "percent":
|
|
949
979
|
case "%":
|
|
@@ -965,7 +995,7 @@ function Li(e) {
|
|
|
965
995
|
continue;
|
|
966
996
|
case "measure-unit":
|
|
967
997
|
case "unit":
|
|
968
|
-
t.style = "unit", t.unit =
|
|
998
|
+
t.style = "unit", t.unit = Ai(i.options[0]);
|
|
969
999
|
continue;
|
|
970
1000
|
case "compact-short":
|
|
971
1001
|
case "K":
|
|
@@ -976,13 +1006,13 @@ function Li(e) {
|
|
|
976
1006
|
t.notation = "compact", t.compactDisplay = "long";
|
|
977
1007
|
continue;
|
|
978
1008
|
case "scientific":
|
|
979
|
-
t =
|
|
980
|
-
return
|
|
1009
|
+
t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1010
|
+
return L(L({}, l), bn(u));
|
|
981
1011
|
}, {}));
|
|
982
1012
|
continue;
|
|
983
1013
|
case "engineering":
|
|
984
|
-
t =
|
|
985
|
-
return
|
|
1014
|
+
t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1015
|
+
return L(L({}, l), bn(u));
|
|
986
1016
|
}, {}));
|
|
987
1017
|
continue;
|
|
988
1018
|
case "notation-simple":
|
|
@@ -1027,7 +1057,7 @@ function Li(e) {
|
|
|
1027
1057
|
case "integer-width":
|
|
1028
1058
|
if (i.options.length > 1)
|
|
1029
1059
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1030
|
-
i.options[0].replace(
|
|
1060
|
+
i.options[0].replace(Ci, function(l, u, f, b, m, w) {
|
|
1031
1061
|
if (u)
|
|
1032
1062
|
t.minimumIntegerDigits = f.length;
|
|
1033
1063
|
else {
|
|
@@ -1040,28 +1070,28 @@ function Li(e) {
|
|
|
1040
1070
|
});
|
|
1041
1071
|
continue;
|
|
1042
1072
|
}
|
|
1043
|
-
if (
|
|
1073
|
+
if (rr.test(i.stem)) {
|
|
1044
1074
|
t.minimumIntegerDigits = i.stem.length;
|
|
1045
1075
|
continue;
|
|
1046
1076
|
}
|
|
1047
|
-
if (
|
|
1077
|
+
if (pn.test(i.stem)) {
|
|
1048
1078
|
if (i.options.length > 1)
|
|
1049
1079
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1050
|
-
i.stem.replace(
|
|
1080
|
+
i.stem.replace(pn, function(l, u, f, b, m, w) {
|
|
1051
1081
|
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1052
1082
|
});
|
|
1053
1083
|
var o = i.options[0];
|
|
1054
|
-
o === "w" ? t =
|
|
1084
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), mn(o)));
|
|
1055
1085
|
continue;
|
|
1056
1086
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
t =
|
|
1087
|
+
if (nr.test(i.stem)) {
|
|
1088
|
+
t = L(L({}, t), mn(i.stem));
|
|
1059
1089
|
continue;
|
|
1060
1090
|
}
|
|
1061
|
-
var s =
|
|
1062
|
-
s && (t =
|
|
1063
|
-
var a =
|
|
1064
|
-
a && (t =
|
|
1091
|
+
var s = ir(i.stem);
|
|
1092
|
+
s && (t = L(L({}, t), s));
|
|
1093
|
+
var a = Hi(i.stem);
|
|
1094
|
+
a && (t = L(L({}, t), a));
|
|
1065
1095
|
}
|
|
1066
1096
|
return t;
|
|
1067
1097
|
}
|
|
@@ -2480,23 +2510,23 @@ var dt = {
|
|
|
2480
2510
|
"h"
|
|
2481
2511
|
]
|
|
2482
2512
|
};
|
|
2483
|
-
function
|
|
2484
|
-
for (var
|
|
2485
|
-
var i = e.charAt(
|
|
2513
|
+
function Mi(e, t) {
|
|
2514
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2515
|
+
var i = e.charAt(r);
|
|
2486
2516
|
if (i === "j") {
|
|
2487
|
-
for (var o = 0;
|
|
2488
|
-
o++,
|
|
2489
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2517
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2518
|
+
o++, r++;
|
|
2519
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
|
|
2490
2520
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2491
|
-
|
|
2521
|
+
n += l;
|
|
2492
2522
|
for (; s-- > 0; )
|
|
2493
|
-
|
|
2523
|
+
n = u + n;
|
|
2494
2524
|
} else
|
|
2495
|
-
i === "J" ?
|
|
2525
|
+
i === "J" ? n += "H" : n += i;
|
|
2496
2526
|
}
|
|
2497
|
-
return
|
|
2527
|
+
return n;
|
|
2498
2528
|
}
|
|
2499
|
-
function
|
|
2529
|
+
function Ri(e) {
|
|
2500
2530
|
var t = e.hourCycle;
|
|
2501
2531
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2502
2532
|
e.hourCycles && // @ts-ignore
|
|
@@ -2513,73 +2543,73 @@ function Ii(e) {
|
|
|
2513
2543
|
default:
|
|
2514
2544
|
throw new Error("Invalid hourCycle");
|
|
2515
2545
|
}
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2518
|
-
var i = dt[
|
|
2546
|
+
var n = e.language, r;
|
|
2547
|
+
n !== "root" && (r = e.maximize().region);
|
|
2548
|
+
var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
|
|
2519
2549
|
return i[0];
|
|
2520
2550
|
}
|
|
2521
|
-
var
|
|
2551
|
+
var It, Li = new RegExp("^".concat(tr.source, "*")), Pi = new RegExp("".concat(tr.source, "*$"));
|
|
2522
2552
|
function O(e, t) {
|
|
2523
2553
|
return { start: e, end: t };
|
|
2524
2554
|
}
|
|
2525
|
-
var
|
|
2555
|
+
var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Di = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, ki = ji ? Number.isSafeInteger : function(e) {
|
|
2526
2556
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2527
|
-
},
|
|
2557
|
+
}, Wt = !0;
|
|
2528
2558
|
try {
|
|
2529
|
-
var
|
|
2530
|
-
|
|
2559
|
+
var $i = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2560
|
+
Wt = ((It = $i.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
|
|
2531
2561
|
} catch {
|
|
2532
|
-
|
|
2562
|
+
Wt = !1;
|
|
2533
2563
|
}
|
|
2534
|
-
var
|
|
2564
|
+
var gn = Ni ? (
|
|
2535
2565
|
// Native
|
|
2536
|
-
function(t,
|
|
2537
|
-
return t.startsWith(
|
|
2566
|
+
function(t, n, r) {
|
|
2567
|
+
return t.startsWith(n, r);
|
|
2538
2568
|
}
|
|
2539
2569
|
) : (
|
|
2540
2570
|
// For IE11
|
|
2541
|
-
function(t,
|
|
2542
|
-
return t.slice(
|
|
2571
|
+
function(t, n, r) {
|
|
2572
|
+
return t.slice(r, r + n.length) === n;
|
|
2543
2573
|
}
|
|
2544
|
-
),
|
|
2574
|
+
), Zt = Ii ? String.fromCodePoint : (
|
|
2545
2575
|
// IE11
|
|
2546
2576
|
function() {
|
|
2547
|
-
for (var t = [],
|
|
2548
|
-
t[
|
|
2549
|
-
for (var
|
|
2577
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2578
|
+
t[n] = arguments[n];
|
|
2579
|
+
for (var r = "", i = t.length, o = 0, s; i > o; ) {
|
|
2550
2580
|
if (s = t[o++], s > 1114111)
|
|
2551
2581
|
throw RangeError(s + " is not a valid code point");
|
|
2552
|
-
|
|
2582
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2553
2583
|
}
|
|
2554
|
-
return
|
|
2584
|
+
return r;
|
|
2555
2585
|
}
|
|
2556
|
-
),
|
|
2586
|
+
), yn = (
|
|
2557
2587
|
// native
|
|
2558
|
-
|
|
2588
|
+
Di ? Object.fromEntries : (
|
|
2559
2589
|
// Ponyfill
|
|
2560
2590
|
function(t) {
|
|
2561
|
-
for (var
|
|
2562
|
-
var o = i[
|
|
2563
|
-
|
|
2591
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2592
|
+
var o = i[r], s = o[0], a = o[1];
|
|
2593
|
+
n[s] = a;
|
|
2564
2594
|
}
|
|
2565
|
-
return
|
|
2595
|
+
return n;
|
|
2566
2596
|
}
|
|
2567
2597
|
)
|
|
2568
|
-
),
|
|
2598
|
+
), or = Ui ? (
|
|
2569
2599
|
// Native
|
|
2570
|
-
function(t,
|
|
2571
|
-
return t.codePointAt(
|
|
2600
|
+
function(t, n) {
|
|
2601
|
+
return t.codePointAt(n);
|
|
2572
2602
|
}
|
|
2573
2603
|
) : (
|
|
2574
2604
|
// IE 11
|
|
2575
|
-
function(t,
|
|
2576
|
-
var
|
|
2577
|
-
if (!(
|
|
2578
|
-
var i = t.charCodeAt(
|
|
2579
|
-
return i < 55296 || i > 56319 ||
|
|
2605
|
+
function(t, n) {
|
|
2606
|
+
var r = t.length;
|
|
2607
|
+
if (!(n < 0 || n >= r)) {
|
|
2608
|
+
var i = t.charCodeAt(n), o;
|
|
2609
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2580
2610
|
}
|
|
2581
2611
|
}
|
|
2582
|
-
),
|
|
2612
|
+
), Vi = Fi ? (
|
|
2583
2613
|
// Native
|
|
2584
2614
|
function(t) {
|
|
2585
2615
|
return t.trimStart();
|
|
@@ -2587,9 +2617,9 @@ var _r = Fi ? (
|
|
|
2587
2617
|
) : (
|
|
2588
2618
|
// Ponyfill
|
|
2589
2619
|
function(t) {
|
|
2590
|
-
return t.replace(
|
|
2620
|
+
return t.replace(Li, "");
|
|
2591
2621
|
}
|
|
2592
|
-
),
|
|
2622
|
+
), Xi = Gi ? (
|
|
2593
2623
|
// Native
|
|
2594
2624
|
function(t) {
|
|
2595
2625
|
return t.trimEnd();
|
|
@@ -2597,69 +2627,69 @@ var _r = Fi ? (
|
|
|
2597
2627
|
) : (
|
|
2598
2628
|
// Ponyfill
|
|
2599
2629
|
function(t) {
|
|
2600
|
-
return t.replace(
|
|
2630
|
+
return t.replace(Pi, "");
|
|
2601
2631
|
}
|
|
2602
2632
|
);
|
|
2603
|
-
function
|
|
2633
|
+
function ar(e, t) {
|
|
2604
2634
|
return new RegExp(e, t);
|
|
2605
2635
|
}
|
|
2606
|
-
var
|
|
2607
|
-
if (
|
|
2608
|
-
var
|
|
2609
|
-
|
|
2610
|
-
var
|
|
2611
|
-
|
|
2612
|
-
var i =
|
|
2613
|
-
return (
|
|
2636
|
+
var qt;
|
|
2637
|
+
if (Wt) {
|
|
2638
|
+
var vn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2639
|
+
qt = function(t, n) {
|
|
2640
|
+
var r;
|
|
2641
|
+
vn.lastIndex = n;
|
|
2642
|
+
var i = vn.exec(t);
|
|
2643
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2614
2644
|
};
|
|
2615
2645
|
} else
|
|
2616
|
-
|
|
2617
|
-
for (var
|
|
2618
|
-
var i =
|
|
2619
|
-
if (i === void 0 ||
|
|
2646
|
+
qt = function(t, n) {
|
|
2647
|
+
for (var r = []; ; ) {
|
|
2648
|
+
var i = or(t, n);
|
|
2649
|
+
if (i === void 0 || sr(i) || qi(i))
|
|
2620
2650
|
break;
|
|
2621
|
-
|
|
2651
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2622
2652
|
}
|
|
2623
|
-
return
|
|
2653
|
+
return Zt.apply(void 0, r);
|
|
2624
2654
|
};
|
|
2625
|
-
var
|
|
2655
|
+
var zi = (
|
|
2626
2656
|
/** @class */
|
|
2627
2657
|
function() {
|
|
2628
|
-
function e(t,
|
|
2629
|
-
|
|
2658
|
+
function e(t, n) {
|
|
2659
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2630
2660
|
}
|
|
2631
2661
|
return e.prototype.parse = function() {
|
|
2632
2662
|
if (this.offset() !== 0)
|
|
2633
2663
|
throw Error("parser can only be used once");
|
|
2634
2664
|
return this.parseMessage(0, "", !1);
|
|
2635
|
-
}, e.prototype.parseMessage = function(t,
|
|
2665
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2636
2666
|
for (var i = []; !this.isEOF(); ) {
|
|
2637
2667
|
var o = this.char();
|
|
2638
2668
|
if (o === 123) {
|
|
2639
|
-
var s = this.parseArgument(t,
|
|
2669
|
+
var s = this.parseArgument(t, r);
|
|
2640
2670
|
if (s.err)
|
|
2641
2671
|
return s;
|
|
2642
2672
|
i.push(s.val);
|
|
2643
2673
|
} else {
|
|
2644
2674
|
if (o === 125 && t > 0)
|
|
2645
2675
|
break;
|
|
2646
|
-
if (o === 35 && (
|
|
2676
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2647
2677
|
var a = this.clonePosition();
|
|
2648
2678
|
this.bump(), i.push({
|
|
2649
|
-
type:
|
|
2679
|
+
type: G.pound,
|
|
2650
2680
|
location: O(a, this.clonePosition())
|
|
2651
2681
|
});
|
|
2652
2682
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2653
|
-
if (
|
|
2683
|
+
if (r)
|
|
2654
2684
|
break;
|
|
2655
2685
|
return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2656
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2657
|
-
var s = this.parseTag(t,
|
|
2686
|
+
} else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
|
|
2687
|
+
var s = this.parseTag(t, n);
|
|
2658
2688
|
if (s.err)
|
|
2659
2689
|
return s;
|
|
2660
2690
|
i.push(s.val);
|
|
2661
2691
|
} else {
|
|
2662
|
-
var s = this.parseLiteral(t,
|
|
2692
|
+
var s = this.parseLiteral(t, n);
|
|
2663
2693
|
if (s.err)
|
|
2664
2694
|
return s;
|
|
2665
2695
|
i.push(s.val);
|
|
@@ -2667,54 +2697,54 @@ var Yi = (
|
|
|
2667
2697
|
}
|
|
2668
2698
|
}
|
|
2669
2699
|
return { val: i, err: null };
|
|
2670
|
-
}, e.prototype.parseTag = function(t,
|
|
2671
|
-
var
|
|
2700
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2701
|
+
var r = this.clonePosition();
|
|
2672
2702
|
this.bump();
|
|
2673
2703
|
var i = this.parseTagName();
|
|
2674
2704
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2675
2705
|
return {
|
|
2676
2706
|
val: {
|
|
2677
|
-
type:
|
|
2707
|
+
type: G.literal,
|
|
2678
2708
|
value: "<".concat(i, "/>"),
|
|
2679
|
-
location: O(
|
|
2709
|
+
location: O(r, this.clonePosition())
|
|
2680
2710
|
},
|
|
2681
2711
|
err: null
|
|
2682
2712
|
};
|
|
2683
2713
|
if (this.bumpIf(">")) {
|
|
2684
|
-
var o = this.parseMessage(t + 1,
|
|
2714
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2685
2715
|
if (o.err)
|
|
2686
2716
|
return o;
|
|
2687
2717
|
var s = o.val, a = this.clonePosition();
|
|
2688
2718
|
if (this.bumpIf("</")) {
|
|
2689
|
-
if (this.isEOF() || !
|
|
2719
|
+
if (this.isEOF() || !Yt(this.char()))
|
|
2690
2720
|
return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
|
|
2691
2721
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2692
2722
|
return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2693
2723
|
val: {
|
|
2694
|
-
type:
|
|
2724
|
+
type: G.tag,
|
|
2695
2725
|
value: i,
|
|
2696
2726
|
children: s,
|
|
2697
|
-
location: O(
|
|
2727
|
+
location: O(r, this.clonePosition())
|
|
2698
2728
|
},
|
|
2699
2729
|
err: null
|
|
2700
2730
|
} : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
|
|
2701
2731
|
} else
|
|
2702
|
-
return this.error(H.UNCLOSED_TAG, O(
|
|
2732
|
+
return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
2703
2733
|
} else
|
|
2704
|
-
return this.error(H.INVALID_TAG, O(
|
|
2734
|
+
return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
|
|
2705
2735
|
}, e.prototype.parseTagName = function() {
|
|
2706
2736
|
var t = this.offset();
|
|
2707
|
-
for (this.bump(); !this.isEOF() &&
|
|
2737
|
+
for (this.bump(); !this.isEOF() && Zi(this.char()); )
|
|
2708
2738
|
this.bump();
|
|
2709
2739
|
return this.message.slice(t, this.offset());
|
|
2710
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2711
|
-
for (var
|
|
2712
|
-
var o = this.tryParseQuote(
|
|
2740
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2741
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2742
|
+
var o = this.tryParseQuote(n);
|
|
2713
2743
|
if (o) {
|
|
2714
2744
|
i += o;
|
|
2715
2745
|
continue;
|
|
2716
2746
|
}
|
|
2717
|
-
var s = this.tryParseUnquoted(t,
|
|
2747
|
+
var s = this.tryParseUnquoted(t, n);
|
|
2718
2748
|
if (s) {
|
|
2719
2749
|
i += s;
|
|
2720
2750
|
continue;
|
|
@@ -2726,14 +2756,14 @@ var Yi = (
|
|
|
2726
2756
|
}
|
|
2727
2757
|
break;
|
|
2728
2758
|
}
|
|
2729
|
-
var l = O(
|
|
2759
|
+
var l = O(r, this.clonePosition());
|
|
2730
2760
|
return {
|
|
2731
|
-
val: { type:
|
|
2761
|
+
val: { type: G.literal, value: i, location: l },
|
|
2732
2762
|
err: null
|
|
2733
2763
|
};
|
|
2734
2764
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2735
2765
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2736
|
-
!
|
|
2766
|
+
!Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2737
2767
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2738
2768
|
if (this.isEOF() || this.char() !== 39)
|
|
2739
2769
|
return null;
|
|
@@ -2753,59 +2783,59 @@ var Yi = (
|
|
|
2753
2783
|
return null;
|
|
2754
2784
|
}
|
|
2755
2785
|
this.bump();
|
|
2756
|
-
var
|
|
2786
|
+
var n = [this.char()];
|
|
2757
2787
|
for (this.bump(); !this.isEOF(); ) {
|
|
2758
|
-
var
|
|
2759
|
-
if (
|
|
2788
|
+
var r = this.char();
|
|
2789
|
+
if (r === 39)
|
|
2760
2790
|
if (this.peek() === 39)
|
|
2761
|
-
|
|
2791
|
+
n.push(39), this.bump();
|
|
2762
2792
|
else {
|
|
2763
2793
|
this.bump();
|
|
2764
2794
|
break;
|
|
2765
2795
|
}
|
|
2766
2796
|
else
|
|
2767
|
-
|
|
2797
|
+
n.push(r);
|
|
2768
2798
|
this.bump();
|
|
2769
2799
|
}
|
|
2770
|
-
return
|
|
2771
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2800
|
+
return Zt.apply(void 0, n);
|
|
2801
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2772
2802
|
if (this.isEOF())
|
|
2773
2803
|
return null;
|
|
2774
|
-
var
|
|
2775
|
-
return
|
|
2776
|
-
}, e.prototype.parseArgument = function(t,
|
|
2777
|
-
var
|
|
2804
|
+
var r = this.char();
|
|
2805
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
|
|
2806
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2807
|
+
var r = this.clonePosition();
|
|
2778
2808
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2779
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(
|
|
2809
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2780
2810
|
if (this.char() === 125)
|
|
2781
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT, O(
|
|
2811
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
|
|
2782
2812
|
var i = this.parseIdentifierIfPossible().value;
|
|
2783
2813
|
if (!i)
|
|
2784
|
-
return this.error(H.MALFORMED_ARGUMENT, O(
|
|
2814
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2785
2815
|
if (this.bumpSpace(), this.isEOF())
|
|
2786
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(
|
|
2816
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2787
2817
|
switch (this.char()) {
|
|
2788
2818
|
case 125:
|
|
2789
2819
|
return this.bump(), {
|
|
2790
2820
|
val: {
|
|
2791
|
-
type:
|
|
2821
|
+
type: G.argument,
|
|
2792
2822
|
// value does not include the opening and closing braces.
|
|
2793
2823
|
value: i,
|
|
2794
|
-
location: O(
|
|
2824
|
+
location: O(r, this.clonePosition())
|
|
2795
2825
|
},
|
|
2796
2826
|
err: null
|
|
2797
2827
|
};
|
|
2798
2828
|
case 44:
|
|
2799
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(
|
|
2829
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2800
2830
|
default:
|
|
2801
|
-
return this.error(H.MALFORMED_ARGUMENT, O(
|
|
2831
|
+
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2802
2832
|
}
|
|
2803
2833
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2804
|
-
var t = this.clonePosition(),
|
|
2834
|
+
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2805
2835
|
this.bumpTo(i);
|
|
2806
2836
|
var o = this.clonePosition(), s = O(t, o);
|
|
2807
|
-
return { value:
|
|
2808
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2837
|
+
return { value: r, location: s };
|
|
2838
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2809
2839
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2810
2840
|
switch (a) {
|
|
2811
2841
|
case "":
|
|
@@ -2820,7 +2850,7 @@ var Yi = (
|
|
|
2820
2850
|
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2821
2851
|
if (b.err)
|
|
2822
2852
|
return b;
|
|
2823
|
-
var m =
|
|
2853
|
+
var m = Xi(b.val);
|
|
2824
2854
|
if (m.length === 0)
|
|
2825
2855
|
return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2826
2856
|
var w = O(f, this.clonePosition());
|
|
@@ -2830,35 +2860,35 @@ var Yi = (
|
|
|
2830
2860
|
if (_.err)
|
|
2831
2861
|
return _;
|
|
2832
2862
|
var A = O(i, this.clonePosition());
|
|
2833
|
-
if (u &&
|
|
2834
|
-
var
|
|
2863
|
+
if (u && gn(u?.style, "::", 0)) {
|
|
2864
|
+
var I = Vi(u.style.slice(2));
|
|
2835
2865
|
if (a === "number") {
|
|
2836
|
-
var b = this.parseNumberSkeletonFromString(
|
|
2866
|
+
var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
|
|
2837
2867
|
return b.err ? b : {
|
|
2838
|
-
val: { type:
|
|
2868
|
+
val: { type: G.number, value: r, location: A, style: b.val },
|
|
2839
2869
|
err: null
|
|
2840
2870
|
};
|
|
2841
2871
|
} else {
|
|
2842
|
-
if (
|
|
2872
|
+
if (I.length === 0)
|
|
2843
2873
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
|
|
2844
|
-
var W =
|
|
2845
|
-
this.locale && (W =
|
|
2874
|
+
var W = I;
|
|
2875
|
+
this.locale && (W = Mi(I, this.locale));
|
|
2846
2876
|
var m = {
|
|
2847
|
-
type:
|
|
2877
|
+
type: $e.dateTime,
|
|
2848
2878
|
pattern: W,
|
|
2849
2879
|
location: u.styleLocation,
|
|
2850
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2851
|
-
}, V = a === "date" ?
|
|
2880
|
+
parsedOptions: this.shouldParseSkeletons ? Si(W) : {}
|
|
2881
|
+
}, V = a === "date" ? G.date : G.time;
|
|
2852
2882
|
return {
|
|
2853
|
-
val: { type: V, value:
|
|
2883
|
+
val: { type: V, value: r, location: A, style: m },
|
|
2854
2884
|
err: null
|
|
2855
2885
|
};
|
|
2856
2886
|
}
|
|
2857
2887
|
}
|
|
2858
2888
|
return {
|
|
2859
2889
|
val: {
|
|
2860
|
-
type: a === "number" ?
|
|
2861
|
-
value:
|
|
2890
|
+
type: a === "number" ? G.number : a === "date" ? G.date : G.time,
|
|
2891
|
+
value: r,
|
|
2862
2892
|
location: A,
|
|
2863
2893
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2864
2894
|
},
|
|
@@ -2870,19 +2900,19 @@ var Yi = (
|
|
|
2870
2900
|
case "select": {
|
|
2871
2901
|
var R = this.clonePosition();
|
|
2872
2902
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2873
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R,
|
|
2903
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
|
|
2874
2904
|
this.bumpSpace();
|
|
2875
|
-
var
|
|
2876
|
-
if (a !== "select" &&
|
|
2905
|
+
var D = this.parseIdentifierIfPossible(), k = 0;
|
|
2906
|
+
if (a !== "select" && D.value === "offset") {
|
|
2877
2907
|
if (!this.bumpIf(":"))
|
|
2878
2908
|
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2879
2909
|
this.bumpSpace();
|
|
2880
2910
|
var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
2911
|
if (b.err)
|
|
2882
2912
|
return b;
|
|
2883
|
-
this.bumpSpace(),
|
|
2913
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
|
|
2884
2914
|
}
|
|
2885
|
-
var oe = this.tryParsePluralOrSelectOptions(t, a,
|
|
2915
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, n, D);
|
|
2886
2916
|
if (oe.err)
|
|
2887
2917
|
return oe;
|
|
2888
2918
|
var _ = this.tryParseArgumentClose(i);
|
|
@@ -2891,18 +2921,18 @@ var Yi = (
|
|
|
2891
2921
|
var Z = O(i, this.clonePosition());
|
|
2892
2922
|
return a === "select" ? {
|
|
2893
2923
|
val: {
|
|
2894
|
-
type:
|
|
2895
|
-
value:
|
|
2896
|
-
options:
|
|
2924
|
+
type: G.select,
|
|
2925
|
+
value: r,
|
|
2926
|
+
options: yn(oe.val),
|
|
2897
2927
|
location: Z
|
|
2898
2928
|
},
|
|
2899
2929
|
err: null
|
|
2900
2930
|
} : {
|
|
2901
2931
|
val: {
|
|
2902
|
-
type:
|
|
2903
|
-
value:
|
|
2904
|
-
options:
|
|
2905
|
-
offset:
|
|
2932
|
+
type: G.plural,
|
|
2933
|
+
value: r,
|
|
2934
|
+
options: yn(oe.val),
|
|
2935
|
+
offset: k,
|
|
2906
2936
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2907
2937
|
location: Z
|
|
2908
2938
|
},
|
|
@@ -2915,9 +2945,9 @@ var Yi = (
|
|
|
2915
2945
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2916
2946
|
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2917
2947
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2918
|
-
for (var t = 0,
|
|
2919
|
-
var
|
|
2920
|
-
switch (
|
|
2948
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2949
|
+
var r = this.char();
|
|
2950
|
+
switch (r) {
|
|
2921
2951
|
case 39: {
|
|
2922
2952
|
this.bump();
|
|
2923
2953
|
var i = this.clonePosition();
|
|
@@ -2935,7 +2965,7 @@ var Yi = (
|
|
|
2935
2965
|
t -= 1;
|
|
2936
2966
|
else
|
|
2937
2967
|
return {
|
|
2938
|
-
val: this.message.slice(
|
|
2968
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2939
2969
|
err: null
|
|
2940
2970
|
};
|
|
2941
2971
|
break;
|
|
@@ -2946,30 +2976,30 @@ var Yi = (
|
|
|
2946
2976
|
}
|
|
2947
2977
|
}
|
|
2948
2978
|
return {
|
|
2949
|
-
val: this.message.slice(
|
|
2979
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2950
2980
|
err: null
|
|
2951
2981
|
};
|
|
2952
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2953
|
-
var
|
|
2982
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2983
|
+
var r = [];
|
|
2954
2984
|
try {
|
|
2955
|
-
|
|
2985
|
+
r = Bi(t);
|
|
2956
2986
|
} catch {
|
|
2957
|
-
return this.error(H.INVALID_NUMBER_SKELETON,
|
|
2987
|
+
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
2958
2988
|
}
|
|
2959
2989
|
return {
|
|
2960
2990
|
val: {
|
|
2961
|
-
type:
|
|
2962
|
-
tokens:
|
|
2963
|
-
location:
|
|
2964
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2991
|
+
type: $e.number,
|
|
2992
|
+
tokens: r,
|
|
2993
|
+
location: n,
|
|
2994
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(r) : {}
|
|
2965
2995
|
},
|
|
2966
2996
|
err: null
|
|
2967
2997
|
};
|
|
2968
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2998
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2969
2999
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
2970
3000
|
if (u.length === 0) {
|
|
2971
3001
|
var b = this.clonePosition();
|
|
2972
|
-
if (
|
|
3002
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
2973
3003
|
var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2974
3004
|
if (m.err)
|
|
2975
3005
|
return m;
|
|
@@ -2978,12 +3008,12 @@ var Yi = (
|
|
|
2978
3008
|
break;
|
|
2979
3009
|
}
|
|
2980
3010
|
if (l.has(u))
|
|
2981
|
-
return this.error(
|
|
3011
|
+
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
2982
3012
|
u === "other" && (s = !0), this.bumpSpace();
|
|
2983
3013
|
var w = this.clonePosition();
|
|
2984
3014
|
if (!this.bumpIf("{"))
|
|
2985
|
-
return this.error(
|
|
2986
|
-
var _ = this.parseMessage(t + 1,
|
|
3015
|
+
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
3016
|
+
var _ = this.parseMessage(t + 1, n, r);
|
|
2987
3017
|
if (_.err)
|
|
2988
3018
|
return _;
|
|
2989
3019
|
var A = this.tryParseArgumentClose(w);
|
|
@@ -2997,10 +3027,10 @@ var Yi = (
|
|
|
2997
3027
|
}
|
|
2998
3028
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
2999
3029
|
}
|
|
3000
|
-
return a.length === 0 ? this.error(
|
|
3001
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3002
|
-
var
|
|
3003
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3030
|
+
return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3031
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3032
|
+
var r = 1, i = this.clonePosition();
|
|
3033
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3004
3034
|
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3005
3035
|
var a = this.char();
|
|
3006
3036
|
if (a >= 48 && a <= 57)
|
|
@@ -3009,7 +3039,7 @@ var Yi = (
|
|
|
3009
3039
|
break;
|
|
3010
3040
|
}
|
|
3011
3041
|
var l = O(i, this.clonePosition());
|
|
3012
|
-
return o ? (s *=
|
|
3042
|
+
return o ? (s *= r, ki(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3013
3043
|
}, e.prototype.offset = function() {
|
|
3014
3044
|
return this.position.offset;
|
|
3015
3045
|
}, e.prototype.isEOF = function() {
|
|
@@ -3024,17 +3054,17 @@ var Yi = (
|
|
|
3024
3054
|
var t = this.position.offset;
|
|
3025
3055
|
if (t >= this.message.length)
|
|
3026
3056
|
throw Error("out of bound");
|
|
3027
|
-
var
|
|
3028
|
-
if (
|
|
3057
|
+
var n = or(this.message, t);
|
|
3058
|
+
if (n === void 0)
|
|
3029
3059
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3030
|
-
return
|
|
3031
|
-
}, e.prototype.error = function(t,
|
|
3060
|
+
return n;
|
|
3061
|
+
}, e.prototype.error = function(t, n) {
|
|
3032
3062
|
return {
|
|
3033
3063
|
val: null,
|
|
3034
3064
|
err: {
|
|
3035
3065
|
kind: t,
|
|
3036
3066
|
message: this.message,
|
|
3037
|
-
location:
|
|
3067
|
+
location: n
|
|
3038
3068
|
}
|
|
3039
3069
|
};
|
|
3040
3070
|
}, e.prototype.bump = function() {
|
|
@@ -3043,129 +3073,129 @@ var Yi = (
|
|
|
3043
3073
|
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);
|
|
3044
3074
|
}
|
|
3045
3075
|
}, e.prototype.bumpIf = function(t) {
|
|
3046
|
-
if (
|
|
3047
|
-
for (var
|
|
3076
|
+
if (gn(this.message, t, this.offset())) {
|
|
3077
|
+
for (var n = 0; n < t.length; n++)
|
|
3048
3078
|
this.bump();
|
|
3049
3079
|
return !0;
|
|
3050
3080
|
}
|
|
3051
3081
|
return !1;
|
|
3052
3082
|
}, e.prototype.bumpUntil = function(t) {
|
|
3053
|
-
var
|
|
3054
|
-
return
|
|
3083
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3084
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3055
3085
|
}, e.prototype.bumpTo = function(t) {
|
|
3056
3086
|
if (this.offset() > t)
|
|
3057
3087
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3058
3088
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3059
|
-
var
|
|
3060
|
-
if (
|
|
3089
|
+
var n = this.offset();
|
|
3090
|
+
if (n === t)
|
|
3061
3091
|
break;
|
|
3062
|
-
if (
|
|
3092
|
+
if (n > t)
|
|
3063
3093
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3064
3094
|
if (this.bump(), this.isEOF())
|
|
3065
3095
|
break;
|
|
3066
3096
|
}
|
|
3067
3097
|
}, e.prototype.bumpSpace = function() {
|
|
3068
|
-
for (; !this.isEOF() &&
|
|
3098
|
+
for (; !this.isEOF() && sr(this.char()); )
|
|
3069
3099
|
this.bump();
|
|
3070
3100
|
}, e.prototype.peek = function() {
|
|
3071
3101
|
if (this.isEOF())
|
|
3072
3102
|
return null;
|
|
3073
|
-
var t = this.char(),
|
|
3074
|
-
return
|
|
3103
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3104
|
+
return r ?? null;
|
|
3075
3105
|
}, e;
|
|
3076
3106
|
}()
|
|
3077
3107
|
);
|
|
3078
|
-
function
|
|
3108
|
+
function Yt(e) {
|
|
3079
3109
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3080
3110
|
}
|
|
3081
|
-
function
|
|
3082
|
-
return
|
|
3111
|
+
function Wi(e) {
|
|
3112
|
+
return Yt(e) || e === 47;
|
|
3083
3113
|
}
|
|
3084
|
-
function
|
|
3114
|
+
function Zi(e) {
|
|
3085
3115
|
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;
|
|
3086
3116
|
}
|
|
3087
|
-
function
|
|
3117
|
+
function sr(e) {
|
|
3088
3118
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3089
3119
|
}
|
|
3090
|
-
function
|
|
3120
|
+
function qi(e) {
|
|
3091
3121
|
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;
|
|
3092
3122
|
}
|
|
3093
|
-
function
|
|
3123
|
+
function Qt(e) {
|
|
3094
3124
|
e.forEach(function(t) {
|
|
3095
|
-
if (delete t.location,
|
|
3096
|
-
for (var
|
|
3097
|
-
delete t.options[
|
|
3125
|
+
if (delete t.location, Qn(t) || Jn(t))
|
|
3126
|
+
for (var n in t.options)
|
|
3127
|
+
delete t.options[n].location, Qt(t.options[n].value);
|
|
3098
3128
|
else
|
|
3099
|
-
|
|
3129
|
+
Zn(t) && er(t.style) || (qn(t) || Yn(t)) && zt(t.style) ? delete t.style.location : Kn(t) && Qt(t.children);
|
|
3100
3130
|
});
|
|
3101
3131
|
}
|
|
3102
|
-
function
|
|
3103
|
-
t === void 0 && (t = {}), t =
|
|
3104
|
-
var
|
|
3105
|
-
if (
|
|
3106
|
-
var
|
|
3107
|
-
throw
|
|
3132
|
+
function Yi(e, t) {
|
|
3133
|
+
t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3134
|
+
var n = new zi(e, t).parse();
|
|
3135
|
+
if (n.err) {
|
|
3136
|
+
var r = SyntaxError(H[n.err.kind]);
|
|
3137
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3108
3138
|
}
|
|
3109
|
-
return t?.captureLocation ||
|
|
3139
|
+
return t?.captureLocation || Qt(n.val), n.val;
|
|
3110
3140
|
}
|
|
3111
|
-
var
|
|
3141
|
+
var Ve;
|
|
3112
3142
|
(function(e) {
|
|
3113
3143
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3114
|
-
})(
|
|
3115
|
-
var
|
|
3144
|
+
})(Ve || (Ve = {}));
|
|
3145
|
+
var St = (
|
|
3116
3146
|
/** @class */
|
|
3117
3147
|
function(e) {
|
|
3118
|
-
|
|
3119
|
-
function t(
|
|
3120
|
-
var o = e.call(this,
|
|
3121
|
-
return o.code =
|
|
3148
|
+
Te(t, e);
|
|
3149
|
+
function t(n, r, i) {
|
|
3150
|
+
var o = e.call(this, n) || this;
|
|
3151
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3122
3152
|
}
|
|
3123
3153
|
return t.prototype.toString = function() {
|
|
3124
3154
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3125
3155
|
}, t;
|
|
3126
3156
|
}(Error)
|
|
3127
|
-
),
|
|
3157
|
+
), _n = (
|
|
3128
3158
|
/** @class */
|
|
3129
3159
|
function(e) {
|
|
3130
|
-
|
|
3131
|
-
function t(
|
|
3132
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3160
|
+
Te(t, e);
|
|
3161
|
+
function t(n, r, i, o) {
|
|
3162
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
|
|
3133
3163
|
}
|
|
3134
3164
|
return t;
|
|
3135
|
-
}(
|
|
3136
|
-
),
|
|
3165
|
+
}(St)
|
|
3166
|
+
), Qi = (
|
|
3137
3167
|
/** @class */
|
|
3138
3168
|
function(e) {
|
|
3139
|
-
|
|
3140
|
-
function t(
|
|
3141
|
-
return e.call(this, 'Value for "'.concat(
|
|
3169
|
+
Te(t, e);
|
|
3170
|
+
function t(n, r, i) {
|
|
3171
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
|
|
3142
3172
|
}
|
|
3143
3173
|
return t;
|
|
3144
|
-
}(
|
|
3145
|
-
),
|
|
3174
|
+
}(St)
|
|
3175
|
+
), Ji = (
|
|
3146
3176
|
/** @class */
|
|
3147
3177
|
function(e) {
|
|
3148
|
-
|
|
3149
|
-
function t(
|
|
3150
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3178
|
+
Te(t, e);
|
|
3179
|
+
function t(n, r) {
|
|
3180
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
|
|
3151
3181
|
}
|
|
3152
3182
|
return t;
|
|
3153
|
-
}(
|
|
3183
|
+
}(St)
|
|
3154
3184
|
), ie;
|
|
3155
3185
|
(function(e) {
|
|
3156
3186
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3157
3187
|
})(ie || (ie = {}));
|
|
3158
|
-
function
|
|
3159
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3160
|
-
var
|
|
3161
|
-
return !
|
|
3188
|
+
function Ki(e) {
|
|
3189
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3190
|
+
var r = t[t.length - 1];
|
|
3191
|
+
return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
|
|
3162
3192
|
}, []);
|
|
3163
3193
|
}
|
|
3164
|
-
function
|
|
3194
|
+
function eo(e) {
|
|
3165
3195
|
return typeof e == "function";
|
|
3166
3196
|
}
|
|
3167
|
-
function bt(e, t,
|
|
3168
|
-
if (e.length === 1 &&
|
|
3197
|
+
function bt(e, t, n, r, i, o, s) {
|
|
3198
|
+
if (e.length === 1 && dn(e[0]))
|
|
3169
3199
|
return [
|
|
3170
3200
|
{
|
|
3171
3201
|
type: ie.literal,
|
|
@@ -3174,155 +3204,155 @@ function bt(e, t, r, n, i, o, s) {
|
|
|
3174
3204
|
];
|
|
3175
3205
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3176
3206
|
var f = u[l];
|
|
3177
|
-
if (
|
|
3207
|
+
if (dn(f)) {
|
|
3178
3208
|
a.push({
|
|
3179
3209
|
type: ie.literal,
|
|
3180
3210
|
value: f.value
|
|
3181
3211
|
});
|
|
3182
3212
|
continue;
|
|
3183
3213
|
}
|
|
3184
|
-
if (
|
|
3214
|
+
if (xi(f)) {
|
|
3185
3215
|
typeof o == "number" && a.push({
|
|
3186
3216
|
type: ie.literal,
|
|
3187
|
-
value:
|
|
3217
|
+
value: n.getNumberFormat(t).format(o)
|
|
3188
3218
|
});
|
|
3189
3219
|
continue;
|
|
3190
3220
|
}
|
|
3191
3221
|
var b = f.value;
|
|
3192
3222
|
if (!(i && b in i))
|
|
3193
|
-
throw new
|
|
3223
|
+
throw new Ji(b, s);
|
|
3194
3224
|
var m = i[b];
|
|
3195
|
-
if (
|
|
3225
|
+
if (Ei(f)) {
|
|
3196
3226
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3197
3227
|
type: typeof m == "string" ? ie.literal : ie.object,
|
|
3198
3228
|
value: m
|
|
3199
3229
|
});
|
|
3200
3230
|
continue;
|
|
3201
3231
|
}
|
|
3202
|
-
if (
|
|
3203
|
-
var w = typeof f.style == "string" ?
|
|
3232
|
+
if (qn(f)) {
|
|
3233
|
+
var w = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
|
|
3204
3234
|
a.push({
|
|
3205
3235
|
type: ie.literal,
|
|
3206
|
-
value:
|
|
3236
|
+
value: n.getDateTimeFormat(t, w).format(m)
|
|
3207
3237
|
});
|
|
3208
3238
|
continue;
|
|
3209
3239
|
}
|
|
3210
|
-
if (
|
|
3211
|
-
var w = typeof f.style == "string" ?
|
|
3240
|
+
if (Yn(f)) {
|
|
3241
|
+
var w = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3212
3242
|
a.push({
|
|
3213
3243
|
type: ie.literal,
|
|
3214
|
-
value:
|
|
3244
|
+
value: n.getDateTimeFormat(t, w).format(m)
|
|
3215
3245
|
});
|
|
3216
3246
|
continue;
|
|
3217
3247
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
var w = typeof f.style == "string" ?
|
|
3248
|
+
if (Zn(f)) {
|
|
3249
|
+
var w = typeof f.style == "string" ? r.number[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
|
|
3220
3250
|
w && w.scale && (m = m * (w.scale || 1)), a.push({
|
|
3221
3251
|
type: ie.literal,
|
|
3222
|
-
value:
|
|
3252
|
+
value: n.getNumberFormat(t, w).format(m)
|
|
3223
3253
|
});
|
|
3224
3254
|
continue;
|
|
3225
3255
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var _ = f.children, A = f.value,
|
|
3228
|
-
if (!
|
|
3229
|
-
throw new
|
|
3230
|
-
var W = bt(_, t,
|
|
3231
|
-
return
|
|
3256
|
+
if (Kn(f)) {
|
|
3257
|
+
var _ = f.children, A = f.value, I = i[A];
|
|
3258
|
+
if (!eo(I))
|
|
3259
|
+
throw new Qi(A, "function", s);
|
|
3260
|
+
var W = bt(_, t, n, r, i, o), V = I(W.map(function(k) {
|
|
3261
|
+
return k.value;
|
|
3232
3262
|
}));
|
|
3233
|
-
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(
|
|
3263
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
|
|
3234
3264
|
return {
|
|
3235
|
-
type: typeof
|
|
3236
|
-
value:
|
|
3265
|
+
type: typeof k == "string" ? ie.literal : ie.object,
|
|
3266
|
+
value: k
|
|
3237
3267
|
};
|
|
3238
3268
|
}));
|
|
3239
3269
|
}
|
|
3240
|
-
if (
|
|
3270
|
+
if (Qn(f)) {
|
|
3241
3271
|
var R = f.options[m] || f.options.other;
|
|
3242
3272
|
if (!R)
|
|
3243
|
-
throw new
|
|
3244
|
-
a.push.apply(a, bt(R.value, t,
|
|
3273
|
+
throw new _n(f.value, m, Object.keys(f.options), s);
|
|
3274
|
+
a.push.apply(a, bt(R.value, t, n, r, i));
|
|
3245
3275
|
continue;
|
|
3246
3276
|
}
|
|
3247
|
-
if (
|
|
3277
|
+
if (Jn(f)) {
|
|
3248
3278
|
var R = f.options["=".concat(m)];
|
|
3249
3279
|
if (!R) {
|
|
3250
3280
|
if (!Intl.PluralRules)
|
|
3251
|
-
throw new
|
|
3281
|
+
throw new St(`Intl.PluralRules is not available in this environment.
|
|
3252
3282
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3253
|
-
`,
|
|
3254
|
-
var
|
|
3255
|
-
R = f.options[
|
|
3283
|
+
`, Ve.MISSING_INTL_API, s);
|
|
3284
|
+
var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
|
|
3285
|
+
R = f.options[D] || f.options.other;
|
|
3256
3286
|
}
|
|
3257
3287
|
if (!R)
|
|
3258
|
-
throw new
|
|
3259
|
-
a.push.apply(a, bt(R.value, t,
|
|
3288
|
+
throw new _n(f.value, m, Object.keys(f.options), s);
|
|
3289
|
+
a.push.apply(a, bt(R.value, t, n, r, i, m - (f.offset || 0)));
|
|
3260
3290
|
continue;
|
|
3261
3291
|
}
|
|
3262
3292
|
}
|
|
3263
|
-
return
|
|
3293
|
+
return Ki(a);
|
|
3264
3294
|
}
|
|
3265
|
-
function
|
|
3266
|
-
return t ?
|
|
3267
|
-
return r
|
|
3295
|
+
function to(e, t) {
|
|
3296
|
+
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3297
|
+
return n[r] = L(L({}, e[r]), t[r] || {}), n;
|
|
3268
3298
|
}, {})) : e;
|
|
3269
3299
|
}
|
|
3270
|
-
function
|
|
3271
|
-
return t ? Object.keys(e).reduce(function(
|
|
3272
|
-
return r
|
|
3273
|
-
},
|
|
3300
|
+
function no(e, t) {
|
|
3301
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3302
|
+
return n[r] = to(e[r], t[r]), n;
|
|
3303
|
+
}, L({}, e)) : e;
|
|
3274
3304
|
}
|
|
3275
|
-
function
|
|
3305
|
+
function Dt(e) {
|
|
3276
3306
|
return {
|
|
3277
3307
|
create: function() {
|
|
3278
3308
|
return {
|
|
3279
3309
|
get: function(t) {
|
|
3280
3310
|
return e[t];
|
|
3281
3311
|
},
|
|
3282
|
-
set: function(t,
|
|
3283
|
-
e[t] =
|
|
3312
|
+
set: function(t, n) {
|
|
3313
|
+
e[t] = n;
|
|
3284
3314
|
}
|
|
3285
3315
|
};
|
|
3286
3316
|
}
|
|
3287
3317
|
};
|
|
3288
3318
|
}
|
|
3289
|
-
function
|
|
3319
|
+
function ro(e) {
|
|
3290
3320
|
return e === void 0 && (e = {
|
|
3291
3321
|
number: {},
|
|
3292
3322
|
dateTime: {},
|
|
3293
3323
|
pluralRules: {}
|
|
3294
3324
|
}), {
|
|
3295
|
-
getNumberFormat:
|
|
3296
|
-
for (var t,
|
|
3297
|
-
r
|
|
3298
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3325
|
+
getNumberFormat: Pt(function() {
|
|
3326
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3327
|
+
n[r] = arguments[r];
|
|
3328
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3299
3329
|
}, {
|
|
3300
|
-
cache:
|
|
3301
|
-
strategy:
|
|
3330
|
+
cache: Dt(e.number),
|
|
3331
|
+
strategy: Nt.variadic
|
|
3302
3332
|
}),
|
|
3303
|
-
getDateTimeFormat:
|
|
3304
|
-
for (var t,
|
|
3305
|
-
r
|
|
3306
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3333
|
+
getDateTimeFormat: Pt(function() {
|
|
3334
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3335
|
+
n[r] = arguments[r];
|
|
3336
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3307
3337
|
}, {
|
|
3308
|
-
cache:
|
|
3309
|
-
strategy:
|
|
3338
|
+
cache: Dt(e.dateTime),
|
|
3339
|
+
strategy: Nt.variadic
|
|
3310
3340
|
}),
|
|
3311
|
-
getPluralRules:
|
|
3312
|
-
for (var t,
|
|
3313
|
-
r
|
|
3314
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3341
|
+
getPluralRules: Pt(function() {
|
|
3342
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3343
|
+
n[r] = arguments[r];
|
|
3344
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
|
|
3315
3345
|
}, {
|
|
3316
|
-
cache:
|
|
3317
|
-
strategy:
|
|
3346
|
+
cache: Dt(e.pluralRules),
|
|
3347
|
+
strategy: Nt.variadic
|
|
3318
3348
|
})
|
|
3319
3349
|
};
|
|
3320
3350
|
}
|
|
3321
|
-
var
|
|
3351
|
+
var io = (
|
|
3322
3352
|
/** @class */
|
|
3323
3353
|
function() {
|
|
3324
|
-
function e(t,
|
|
3325
|
-
|
|
3354
|
+
function e(t, n, r, i) {
|
|
3355
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3326
3356
|
var o = this;
|
|
3327
3357
|
if (this.formatterCache = {
|
|
3328
3358
|
number: {},
|
|
@@ -3345,18 +3375,18 @@ var uo = (
|
|
|
3345
3375
|
};
|
|
3346
3376
|
}, this.getAst = function() {
|
|
3347
3377
|
return o.ast;
|
|
3348
|
-
}, this.locales =
|
|
3378
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3349
3379
|
if (this.message = t, !e.__parse)
|
|
3350
3380
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3351
3381
|
var s = i || {};
|
|
3352
3382
|
s.formatters;
|
|
3353
|
-
var a =
|
|
3354
|
-
this.ast = e.__parse(t,
|
|
3383
|
+
var a = di(s, ["formatters"]);
|
|
3384
|
+
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3355
3385
|
} else
|
|
3356
3386
|
this.ast = t;
|
|
3357
3387
|
if (!Array.isArray(this.ast))
|
|
3358
3388
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3359
|
-
this.formats =
|
|
3389
|
+
this.formats = no(e.formats, r), this.formatters = i && i.formatters || ro(this.formatterCache);
|
|
3360
3390
|
}
|
|
3361
3391
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3362
3392
|
get: function() {
|
|
@@ -3366,10 +3396,10 @@ var uo = (
|
|
|
3366
3396
|
configurable: !0
|
|
3367
3397
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3368
3398
|
if (!(typeof Intl.Locale > "u")) {
|
|
3369
|
-
var
|
|
3370
|
-
return
|
|
3399
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3400
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3371
3401
|
}
|
|
3372
|
-
}, e.__parse =
|
|
3402
|
+
}, e.__parse = Yi, e.formats = {
|
|
3373
3403
|
number: {
|
|
3374
3404
|
integer: {
|
|
3375
3405
|
maximumFractionDigits: 0
|
|
@@ -3430,113 +3460,113 @@ var uo = (
|
|
|
3430
3460
|
}, e;
|
|
3431
3461
|
}()
|
|
3432
3462
|
);
|
|
3433
|
-
function
|
|
3463
|
+
function oo(e, t) {
|
|
3434
3464
|
if (t == null)
|
|
3435
3465
|
return;
|
|
3436
3466
|
if (t in e)
|
|
3437
3467
|
return e[t];
|
|
3438
|
-
const
|
|
3439
|
-
let
|
|
3440
|
-
for (let i = 0; i <
|
|
3441
|
-
if (typeof
|
|
3468
|
+
const n = t.split(".");
|
|
3469
|
+
let r = e;
|
|
3470
|
+
for (let i = 0; i < n.length; i++)
|
|
3471
|
+
if (typeof r == "object") {
|
|
3442
3472
|
if (i > 0) {
|
|
3443
|
-
const o =
|
|
3444
|
-
if (o in
|
|
3445
|
-
|
|
3473
|
+
const o = n.slice(i, n.length).join(".");
|
|
3474
|
+
if (o in r) {
|
|
3475
|
+
r = r[o];
|
|
3446
3476
|
break;
|
|
3447
3477
|
}
|
|
3448
3478
|
}
|
|
3449
|
-
|
|
3479
|
+
r = r[n[i]];
|
|
3450
3480
|
} else
|
|
3451
|
-
|
|
3452
|
-
return
|
|
3481
|
+
r = void 0;
|
|
3482
|
+
return r;
|
|
3453
3483
|
}
|
|
3454
|
-
const Ce = {},
|
|
3484
|
+
const Ce = {}, ao = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), ur = (e, t) => {
|
|
3455
3485
|
if (t == null)
|
|
3456
3486
|
return;
|
|
3457
3487
|
if (t in Ce && e in Ce[t])
|
|
3458
3488
|
return Ce[t][e];
|
|
3459
|
-
const
|
|
3460
|
-
for (let
|
|
3461
|
-
const i = r
|
|
3489
|
+
const n = Tt(t);
|
|
3490
|
+
for (let r = 0; r < n.length; r++) {
|
|
3491
|
+
const i = n[r], o = uo(i, e);
|
|
3462
3492
|
if (o)
|
|
3463
|
-
return
|
|
3493
|
+
return ao(e, t, o);
|
|
3464
3494
|
}
|
|
3465
3495
|
};
|
|
3466
|
-
let
|
|
3467
|
-
const
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3496
|
+
let an;
|
|
3497
|
+
const at = wt({});
|
|
3498
|
+
function so(e) {
|
|
3499
|
+
return an[e] || null;
|
|
3470
3500
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return e in
|
|
3501
|
+
function lr(e) {
|
|
3502
|
+
return e in an;
|
|
3473
3503
|
}
|
|
3474
|
-
function
|
|
3475
|
-
if (!
|
|
3504
|
+
function uo(e, t) {
|
|
3505
|
+
if (!lr(e))
|
|
3476
3506
|
return null;
|
|
3477
|
-
const
|
|
3478
|
-
return
|
|
3507
|
+
const n = so(e);
|
|
3508
|
+
return oo(n, t);
|
|
3479
3509
|
}
|
|
3480
|
-
function
|
|
3510
|
+
function lo(e) {
|
|
3481
3511
|
if (e == null)
|
|
3482
3512
|
return;
|
|
3483
|
-
const t =
|
|
3484
|
-
for (let
|
|
3485
|
-
const
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3513
|
+
const t = Tt(e);
|
|
3514
|
+
for (let n = 0; n < t.length; n++) {
|
|
3515
|
+
const r = t[n];
|
|
3516
|
+
if (lr(r))
|
|
3517
|
+
return r;
|
|
3488
3518
|
}
|
|
3489
3519
|
}
|
|
3490
|
-
function
|
|
3491
|
-
delete Ce[e],
|
|
3520
|
+
function cr(e, ...t) {
|
|
3521
|
+
delete Ce[e], at.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
|
|
3492
3522
|
}
|
|
3493
|
-
|
|
3494
|
-
[
|
|
3523
|
+
We(
|
|
3524
|
+
[at],
|
|
3495
3525
|
([e]) => Object.keys(e)
|
|
3496
3526
|
);
|
|
3497
|
-
|
|
3527
|
+
at.subscribe((e) => an = e);
|
|
3498
3528
|
const gt = {};
|
|
3499
|
-
function
|
|
3529
|
+
function co(e, t) {
|
|
3500
3530
|
gt[e].delete(t), gt[e].size === 0 && delete gt[e];
|
|
3501
3531
|
}
|
|
3502
|
-
function
|
|
3532
|
+
function hr(e) {
|
|
3503
3533
|
return gt[e];
|
|
3504
3534
|
}
|
|
3505
|
-
function
|
|
3506
|
-
return
|
|
3507
|
-
const
|
|
3508
|
-
return [t,
|
|
3535
|
+
function ho(e) {
|
|
3536
|
+
return Tt(e).map((t) => {
|
|
3537
|
+
const n = hr(t);
|
|
3538
|
+
return [t, n ? [...n] : []];
|
|
3509
3539
|
}).filter(([, t]) => t.length > 0);
|
|
3510
3540
|
}
|
|
3511
|
-
function
|
|
3512
|
-
return e == null ? !1 :
|
|
3541
|
+
function Jt(e) {
|
|
3542
|
+
return e == null ? !1 : Tt(e).some(
|
|
3513
3543
|
(t) => {
|
|
3514
|
-
var
|
|
3515
|
-
return (
|
|
3544
|
+
var n;
|
|
3545
|
+
return (n = hr(t)) == null ? void 0 : n.size;
|
|
3516
3546
|
}
|
|
3517
3547
|
);
|
|
3518
3548
|
}
|
|
3519
|
-
function
|
|
3549
|
+
function fo(e, t) {
|
|
3520
3550
|
return Promise.all(
|
|
3521
|
-
t.map((
|
|
3522
|
-
).then((
|
|
3523
|
-
}
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3526
|
-
if (!
|
|
3527
|
-
return e in
|
|
3528
|
-
const t =
|
|
3529
|
-
return
|
|
3551
|
+
t.map((r) => (co(e, r), r().then((i) => i.default || i)))
|
|
3552
|
+
).then((r) => cr(e, ...r));
|
|
3553
|
+
}
|
|
3554
|
+
const tt = {};
|
|
3555
|
+
function fr(e) {
|
|
3556
|
+
if (!Jt(e))
|
|
3557
|
+
return e in tt ? tt[e] : Promise.resolve();
|
|
3558
|
+
const t = ho(e);
|
|
3559
|
+
return tt[e] = Promise.all(
|
|
3530
3560
|
t.map(
|
|
3531
|
-
([
|
|
3561
|
+
([n, r]) => fo(n, r)
|
|
3532
3562
|
)
|
|
3533
3563
|
).then(() => {
|
|
3534
|
-
if (
|
|
3535
|
-
return
|
|
3536
|
-
delete
|
|
3537
|
-
}),
|
|
3564
|
+
if (Jt(e))
|
|
3565
|
+
return fr(e);
|
|
3566
|
+
delete tt[e];
|
|
3567
|
+
}), tt[e];
|
|
3538
3568
|
}
|
|
3539
|
-
const
|
|
3569
|
+
const po = {
|
|
3540
3570
|
number: {
|
|
3541
3571
|
scientific: { notation: "scientific" },
|
|
3542
3572
|
engineering: { notation: "engineering" },
|
|
@@ -3565,136 +3595,136 @@ const yo = {
|
|
|
3565
3595
|
timeZoneName: "short"
|
|
3566
3596
|
}
|
|
3567
3597
|
}
|
|
3568
|
-
},
|
|
3598
|
+
}, mo = {
|
|
3569
3599
|
fallbackLocale: null,
|
|
3570
3600
|
loadingDelay: 200,
|
|
3571
|
-
formats:
|
|
3601
|
+
formats: po,
|
|
3572
3602
|
warnOnMissingMessages: !0,
|
|
3573
3603
|
handleMissingMessage: void 0,
|
|
3574
3604
|
ignoreTag: !0
|
|
3575
|
-
},
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3578
|
-
}
|
|
3579
|
-
const
|
|
3580
|
-
var
|
|
3581
|
-
for (var
|
|
3582
|
-
|
|
3583
|
-
if (
|
|
3584
|
-
for (var
|
|
3585
|
-
|
|
3605
|
+
}, bo = mo;
|
|
3606
|
+
function Xe() {
|
|
3607
|
+
return bo;
|
|
3608
|
+
}
|
|
3609
|
+
const Ut = wt(!1);
|
|
3610
|
+
var go = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
|
|
3611
|
+
for (var n in t)
|
|
3612
|
+
_o.call(t, n) && xn(e, n, t[n]);
|
|
3613
|
+
if (En)
|
|
3614
|
+
for (var n of En(t))
|
|
3615
|
+
Eo.call(t, n) && xn(e, n, t[n]);
|
|
3586
3616
|
return e;
|
|
3587
|
-
},
|
|
3588
|
-
let
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3591
|
-
return e.split("-").map((t,
|
|
3617
|
+
}, wo = (e, t) => yo(e, vo(t));
|
|
3618
|
+
let Kt;
|
|
3619
|
+
const Et = wt(null);
|
|
3620
|
+
function wn(e) {
|
|
3621
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3592
3622
|
}
|
|
3593
|
-
function
|
|
3594
|
-
const
|
|
3595
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3623
|
+
function Tt(e, t = Xe().fallbackLocale) {
|
|
3624
|
+
const n = wn(e);
|
|
3625
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...wn(t)])] : n;
|
|
3596
3626
|
}
|
|
3597
3627
|
function Re() {
|
|
3598
|
-
return
|
|
3628
|
+
return Kt ?? void 0;
|
|
3599
3629
|
}
|
|
3600
|
-
|
|
3601
|
-
|
|
3630
|
+
Et.subscribe((e) => {
|
|
3631
|
+
Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3602
3632
|
});
|
|
3603
|
-
const
|
|
3604
|
-
if (e &&
|
|
3605
|
-
const { loadingDelay: t } =
|
|
3606
|
-
let
|
|
3607
|
-
return typeof window < "u" && Re() != null && t ?
|
|
3608
|
-
() =>
|
|
3633
|
+
const So = (e) => {
|
|
3634
|
+
if (e && lo(e) && Jt(e)) {
|
|
3635
|
+
const { loadingDelay: t } = Xe();
|
|
3636
|
+
let n;
|
|
3637
|
+
return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
|
|
3638
|
+
() => Ut.set(!0),
|
|
3609
3639
|
t
|
|
3610
|
-
) :
|
|
3611
|
-
|
|
3640
|
+
) : Ut.set(!0), fr(e).then(() => {
|
|
3641
|
+
Et.set(e);
|
|
3612
3642
|
}).finally(() => {
|
|
3613
|
-
clearTimeout(
|
|
3643
|
+
clearTimeout(n), Ut.set(!1);
|
|
3614
3644
|
});
|
|
3615
3645
|
}
|
|
3616
|
-
return
|
|
3617
|
-
},
|
|
3618
|
-
set:
|
|
3619
|
-
}),
|
|
3646
|
+
return Et.set(e);
|
|
3647
|
+
}, Ze = wo(xo({}, Et), {
|
|
3648
|
+
set: So
|
|
3649
|
+
}), Bt = (e) => {
|
|
3620
3650
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3621
|
-
return (
|
|
3622
|
-
const i = JSON.stringify(
|
|
3623
|
-
return i in t ? t[i] : t[i] = e(
|
|
3651
|
+
return (r) => {
|
|
3652
|
+
const i = JSON.stringify(r);
|
|
3653
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3624
3654
|
};
|
|
3625
3655
|
};
|
|
3626
|
-
var
|
|
3627
|
-
for (var
|
|
3628
|
-
|
|
3629
|
-
if (
|
|
3630
|
-
for (var
|
|
3631
|
-
|
|
3656
|
+
var To = Object.defineProperty, xt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sn = (e, t) => {
|
|
3657
|
+
for (var n in t || (t = {}))
|
|
3658
|
+
dr.call(t, n) && Sn(e, n, t[n]);
|
|
3659
|
+
if (xt)
|
|
3660
|
+
for (var n of xt(t))
|
|
3661
|
+
pr.call(t, n) && Sn(e, n, t[n]);
|
|
3632
3662
|
return e;
|
|
3633
|
-
},
|
|
3634
|
-
var
|
|
3635
|
-
for (var
|
|
3636
|
-
|
|
3637
|
-
if (e != null &&
|
|
3638
|
-
for (var
|
|
3639
|
-
t.indexOf(
|
|
3640
|
-
return
|
|
3663
|
+
}, qe = (e, t) => {
|
|
3664
|
+
var n = {};
|
|
3665
|
+
for (var r in e)
|
|
3666
|
+
dr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3667
|
+
if (e != null && xt)
|
|
3668
|
+
for (var r of xt(e))
|
|
3669
|
+
t.indexOf(r) < 0 && pr.call(e, r) && (n[r] = e[r]);
|
|
3670
|
+
return n;
|
|
3641
3671
|
};
|
|
3642
|
-
const
|
|
3643
|
-
const { formats:
|
|
3644
|
-
if (e in
|
|
3645
|
-
return
|
|
3672
|
+
const ot = (e, t) => {
|
|
3673
|
+
const { formats: n } = Xe();
|
|
3674
|
+
if (e in n && t in n[e])
|
|
3675
|
+
return n[e][t];
|
|
3646
3676
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3647
|
-
},
|
|
3677
|
+
}, Bo = Bt(
|
|
3648
3678
|
(e) => {
|
|
3649
|
-
var t = e, { locale:
|
|
3650
|
-
if (
|
|
3679
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3680
|
+
if (n == null)
|
|
3651
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3652
|
-
return
|
|
3682
|
+
return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
|
|
3653
3683
|
}
|
|
3654
|
-
),
|
|
3684
|
+
), Ao = Bt(
|
|
3655
3685
|
(e) => {
|
|
3656
|
-
var t = e, { locale:
|
|
3657
|
-
if (
|
|
3686
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3687
|
+
if (n == null)
|
|
3658
3688
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3659
|
-
return
|
|
3689
|
+
return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3660
3690
|
}
|
|
3661
|
-
),
|
|
3691
|
+
), Co = Bt(
|
|
3662
3692
|
(e) => {
|
|
3663
|
-
var t = e, { locale:
|
|
3664
|
-
if (
|
|
3693
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3694
|
+
if (n == null)
|
|
3665
3695
|
throw new Error(
|
|
3666
3696
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3667
3697
|
);
|
|
3668
|
-
return
|
|
3698
|
+
return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3669
3699
|
}
|
|
3670
|
-
),
|
|
3700
|
+
), Ho = (e = {}) => {
|
|
3671
3701
|
var t = e, {
|
|
3672
|
-
locale:
|
|
3673
|
-
} = t,
|
|
3702
|
+
locale: n = Re()
|
|
3703
|
+
} = t, r = qe(t, [
|
|
3674
3704
|
"locale"
|
|
3675
3705
|
]);
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3706
|
+
return Bo(sn({ locale: n }, r));
|
|
3707
|
+
}, Oo = (e = {}) => {
|
|
3678
3708
|
var t = e, {
|
|
3679
|
-
locale:
|
|
3680
|
-
} = t,
|
|
3709
|
+
locale: n = Re()
|
|
3710
|
+
} = t, r = qe(t, [
|
|
3681
3711
|
"locale"
|
|
3682
3712
|
]);
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3713
|
+
return Ao(sn({ locale: n }, r));
|
|
3714
|
+
}, Mo = (e = {}) => {
|
|
3685
3715
|
var t = e, {
|
|
3686
|
-
locale:
|
|
3687
|
-
} = t,
|
|
3716
|
+
locale: n = Re()
|
|
3717
|
+
} = t, r = qe(t, [
|
|
3688
3718
|
"locale"
|
|
3689
3719
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3720
|
+
return Co(sn({ locale: n }, r));
|
|
3721
|
+
}, Ro = Bt(
|
|
3692
3722
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3693
|
-
(e, t = Re()) => new
|
|
3694
|
-
ignoreTag:
|
|
3723
|
+
(e, t = Re()) => new io(e, t, Xe().formats, {
|
|
3724
|
+
ignoreTag: Xe().ignoreTag
|
|
3695
3725
|
})
|
|
3696
|
-
),
|
|
3697
|
-
var
|
|
3726
|
+
), Lo = (e, t = {}) => {
|
|
3727
|
+
var n, r, i, o;
|
|
3698
3728
|
let s = t;
|
|
3699
3729
|
typeof e == "object" && (s = e, e = s.id);
|
|
3700
3730
|
const {
|
|
@@ -3706,9 +3736,9 @@ const it = (e, t) => {
|
|
|
3706
3736
|
throw new Error(
|
|
3707
3737
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3708
3738
|
);
|
|
3709
|
-
let f =
|
|
3739
|
+
let f = ur(e, l);
|
|
3710
3740
|
if (!f)
|
|
3711
|
-
f = (o = (i = (
|
|
3741
|
+
f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3712
3742
|
else if (typeof f != "string")
|
|
3713
3743
|
return console.warn(
|
|
3714
3744
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3717,7 +3747,7 @@ const it = (e, t) => {
|
|
|
3717
3747
|
return f;
|
|
3718
3748
|
let b = f;
|
|
3719
3749
|
try {
|
|
3720
|
-
b =
|
|
3750
|
+
b = Ro(f, l).format(a);
|
|
3721
3751
|
} catch (m) {
|
|
3722
3752
|
m instanceof Error && console.warn(
|
|
3723
3753
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3725,18 +3755,18 @@ const it = (e, t) => {
|
|
|
3725
3755
|
);
|
|
3726
3756
|
}
|
|
3727
3757
|
return b;
|
|
3728
|
-
},
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
function
|
|
3734
|
-
|
|
3735
|
-
}
|
|
3736
|
-
function
|
|
3737
|
-
|
|
3738
|
-
}
|
|
3739
|
-
const
|
|
3758
|
+
}, Po = (e, t) => Mo(t).format(e), No = (e, t) => Oo(t).format(e), Io = (e, t) => Ho(t).format(e), Do = (e, t = Re()) => ur(e, t), Uo = We([Ze, at], () => Lo);
|
|
3759
|
+
We([Ze], () => Po);
|
|
3760
|
+
We([Ze], () => No);
|
|
3761
|
+
We([Ze], () => Io);
|
|
3762
|
+
We([Ze, at], () => Do);
|
|
3763
|
+
function Tn(e, t) {
|
|
3764
|
+
cr(e, t);
|
|
3765
|
+
}
|
|
3766
|
+
function Fo(e) {
|
|
3767
|
+
Ze.set(e);
|
|
3768
|
+
}
|
|
3769
|
+
const Bn = {
|
|
3740
3770
|
en: {
|
|
3741
3771
|
Title: "Your Balance",
|
|
3742
3772
|
Total: "Total Balance",
|
|
@@ -3936,15 +3966,15 @@ const Hr = {
|
|
|
3936
3966
|
Loading: "Loading ..."
|
|
3937
3967
|
}
|
|
3938
3968
|
};
|
|
3939
|
-
var
|
|
3969
|
+
var en = { exports: {} };
|
|
3940
3970
|
/** @license
|
|
3941
3971
|
* eventsource.js
|
|
3942
3972
|
* Available under MIT License (MIT)
|
|
3943
3973
|
* https://github.com/Yaffle/EventSource/
|
|
3944
3974
|
*/
|
|
3945
3975
|
(function(e, t) {
|
|
3946
|
-
(function(
|
|
3947
|
-
var
|
|
3976
|
+
(function(n) {
|
|
3977
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, w = n.TextDecoder, _ = n.TextEncoder, A = n.AbortController;
|
|
3948
3978
|
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3949
3979
|
u.readyState = "complete";
|
|
3950
3980
|
}, !1)), o == null && a != null && (o = function() {
|
|
@@ -3956,10 +3986,10 @@ var tr = { exports: {} };
|
|
|
3956
3986
|
}), Date.now || (Date.now = function() {
|
|
3957
3987
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3958
3988
|
}), A == null) {
|
|
3959
|
-
var
|
|
3989
|
+
var I = b;
|
|
3960
3990
|
b = function(h, y) {
|
|
3961
3991
|
var E = y.signal;
|
|
3962
|
-
return
|
|
3992
|
+
return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
|
|
3963
3993
|
var c = g.body.getReader();
|
|
3964
3994
|
return E._reader = c, E._aborted && E._reader.cancel(), {
|
|
3965
3995
|
status: g.status,
|
|
@@ -4020,10 +4050,10 @@ var tr = { exports: {} };
|
|
|
4020
4050
|
(w == null || _ == null || !V()) && (w = W);
|
|
4021
4051
|
var R = function() {
|
|
4022
4052
|
};
|
|
4023
|
-
function
|
|
4053
|
+
function D(h) {
|
|
4024
4054
|
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = R, this.onload = R, this.onerror = R, this.onreadystatechange = R, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = R;
|
|
4025
4055
|
}
|
|
4026
|
-
|
|
4056
|
+
D.prototype.open = function(h, y) {
|
|
4027
4057
|
this._abort(!0);
|
|
4028
4058
|
var E = this, g = this._xhr, c = 1, d = 0;
|
|
4029
4059
|
this._abort = function(B) {
|
|
@@ -4031,16 +4061,16 @@ var tr = { exports: {} };
|
|
|
4031
4061
|
};
|
|
4032
4062
|
var p = function() {
|
|
4033
4063
|
if (c === 1) {
|
|
4034
|
-
var B = 0,
|
|
4064
|
+
var B = 0, N = "", ee = void 0;
|
|
4035
4065
|
if ("contentType" in g)
|
|
4036
|
-
B = 200,
|
|
4066
|
+
B = 200, N = "OK", ee = g.contentType;
|
|
4037
4067
|
else
|
|
4038
4068
|
try {
|
|
4039
|
-
B = g.status,
|
|
4069
|
+
B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
|
|
4040
4070
|
} catch {
|
|
4041
|
-
B = 0,
|
|
4071
|
+
B = 0, N = "", ee = void 0;
|
|
4042
4072
|
}
|
|
4043
|
-
B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText =
|
|
4073
|
+
B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
|
|
4044
4074
|
}
|
|
4045
4075
|
}, v = function() {
|
|
4046
4076
|
if (p(), c === 2 || c === 3) {
|
|
@@ -4052,16 +4082,16 @@ var tr = { exports: {} };
|
|
|
4052
4082
|
}
|
|
4053
4083
|
E.readyState = 3, E.responseText = B, E.onprogress();
|
|
4054
4084
|
}
|
|
4055
|
-
}, T = function(B,
|
|
4056
|
-
if ((
|
|
4085
|
+
}, T = function(B, N) {
|
|
4086
|
+
if ((N == null || N.preventDefault == null) && (N = {
|
|
4057
4087
|
preventDefault: R
|
|
4058
4088
|
}), v(), c === 1 || c === 2 || c === 3) {
|
|
4059
4089
|
if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
|
|
4060
|
-
E.onload(
|
|
4090
|
+
E.onload(N);
|
|
4061
4091
|
else if (B === "error")
|
|
4062
|
-
E.onerror(
|
|
4092
|
+
E.onerror(N);
|
|
4063
4093
|
else if (B === "abort")
|
|
4064
|
-
E.onabort(
|
|
4094
|
+
E.onabort(N);
|
|
4065
4095
|
else
|
|
4066
4096
|
throw new TypeError();
|
|
4067
4097
|
E.onreadystatechange();
|
|
@@ -4069,7 +4099,7 @@ var tr = { exports: {} };
|
|
|
4069
4099
|
}, C = function(B) {
|
|
4070
4100
|
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || v() : g.readyState === 2 && p());
|
|
4071
4101
|
}, S = function() {
|
|
4072
|
-
d =
|
|
4102
|
+
d = r(function() {
|
|
4073
4103
|
S();
|
|
4074
4104
|
}, 500), g.readyState === 3 && v();
|
|
4075
4105
|
};
|
|
@@ -4081,22 +4111,22 @@ var tr = { exports: {} };
|
|
|
4081
4111
|
T("abort", B);
|
|
4082
4112
|
}), "onprogress" in g && (g.onprogress = v), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
|
|
4083
4113
|
C(B);
|
|
4084
|
-
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d =
|
|
4114
|
+
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
|
|
4085
4115
|
S();
|
|
4086
4116
|
}, 0));
|
|
4087
|
-
},
|
|
4117
|
+
}, D.prototype.abort = function() {
|
|
4088
4118
|
this._abort(!1);
|
|
4089
|
-
},
|
|
4119
|
+
}, D.prototype.getResponseHeader = function(h) {
|
|
4090
4120
|
return this._contentType;
|
|
4091
|
-
},
|
|
4121
|
+
}, D.prototype.setRequestHeader = function(h, y) {
|
|
4092
4122
|
var E = this._xhr;
|
|
4093
4123
|
"setRequestHeader" in E && E.setRequestHeader(h, y);
|
|
4094
|
-
},
|
|
4124
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4095
4125
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4096
|
-
},
|
|
4126
|
+
}, D.prototype.send = function() {
|
|
4097
4127
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4098
4128
|
var h = this;
|
|
4099
|
-
h._sendTimeout =
|
|
4129
|
+
h._sendTimeout = r(function() {
|
|
4100
4130
|
h._sendTimeout = 0, h.send();
|
|
4101
4131
|
}, 4);
|
|
4102
4132
|
return;
|
|
@@ -4109,7 +4139,7 @@ var tr = { exports: {} };
|
|
|
4109
4139
|
throw E;
|
|
4110
4140
|
}
|
|
4111
4141
|
};
|
|
4112
|
-
function
|
|
4142
|
+
function k(h) {
|
|
4113
4143
|
return h.replace(/[A-Z]/g, function(y) {
|
|
4114
4144
|
return String.fromCharCode(y.charCodeAt(0) + 32);
|
|
4115
4145
|
});
|
|
@@ -4118,12 +4148,12 @@ var tr = { exports: {} };
|
|
|
4118
4148
|
for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
|
|
4119
4149
|
`), g = 0; g < E.length; g += 1) {
|
|
4120
4150
|
var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
|
|
4121
|
-
y[
|
|
4151
|
+
y[k(p)] = v;
|
|
4122
4152
|
}
|
|
4123
4153
|
this._map = y;
|
|
4124
4154
|
}
|
|
4125
4155
|
oe.prototype.get = function(h) {
|
|
4126
|
-
return this._map[
|
|
4156
|
+
return this._map[k(h)];
|
|
4127
4157
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4128
4158
|
function Z() {
|
|
4129
4159
|
}
|
|
@@ -4141,23 +4171,23 @@ var tr = { exports: {} };
|
|
|
4141
4171
|
g(null);
|
|
4142
4172
|
}, h.onreadystatechange = function() {
|
|
4143
4173
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4144
|
-
var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"),
|
|
4145
|
-
y(C, S, B, new oe(
|
|
4174
|
+
var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
|
|
4175
|
+
y(C, S, B, new oe(N));
|
|
4146
4176
|
}
|
|
4147
4177
|
}, h.withCredentials = d;
|
|
4148
4178
|
for (var T in p)
|
|
4149
4179
|
Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
|
|
4150
4180
|
return h.send(), h;
|
|
4151
4181
|
};
|
|
4152
|
-
function
|
|
4182
|
+
function $(h) {
|
|
4153
4183
|
this._headers = h;
|
|
4154
4184
|
}
|
|
4155
|
-
|
|
4185
|
+
$.prototype.get = function(h) {
|
|
4156
4186
|
return this._headers.get(h);
|
|
4157
4187
|
};
|
|
4158
|
-
function
|
|
4188
|
+
function U() {
|
|
4159
4189
|
}
|
|
4160
|
-
|
|
4190
|
+
U.prototype.open = function(h, y, E, g, c, d, p) {
|
|
4161
4191
|
var v = null, T = new A(), C = T.signal, S = new w();
|
|
4162
4192
|
return b(c, {
|
|
4163
4193
|
headers: p,
|
|
@@ -4165,11 +4195,11 @@ var tr = { exports: {} };
|
|
|
4165
4195
|
signal: C,
|
|
4166
4196
|
cache: "no-store"
|
|
4167
4197
|
}).then(function(B) {
|
|
4168
|
-
return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new
|
|
4198
|
+
return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
|
|
4169
4199
|
var Ae = function() {
|
|
4170
4200
|
v.read().then(function(X) {
|
|
4171
4201
|
if (X.done)
|
|
4172
|
-
|
|
4202
|
+
N(void 0);
|
|
4173
4203
|
else {
|
|
4174
4204
|
var te = S.decode(X.value, { stream: !0 });
|
|
4175
4205
|
E(te), Ae();
|
|
@@ -4194,8 +4224,8 @@ var tr = { exports: {} };
|
|
|
4194
4224
|
function q() {
|
|
4195
4225
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4196
4226
|
}
|
|
4197
|
-
function
|
|
4198
|
-
|
|
4227
|
+
function F(h) {
|
|
4228
|
+
r(function() {
|
|
4199
4229
|
throw h;
|
|
4200
4230
|
}, 0);
|
|
4201
4231
|
}
|
|
@@ -4208,7 +4238,7 @@ var tr = { exports: {} };
|
|
|
4208
4238
|
try {
|
|
4209
4239
|
typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
|
|
4210
4240
|
} catch (d) {
|
|
4211
|
-
|
|
4241
|
+
F(d);
|
|
4212
4242
|
}
|
|
4213
4243
|
}
|
|
4214
4244
|
}, q.prototype.addEventListener = function(h, y) {
|
|
@@ -4234,138 +4264,138 @@ var tr = { exports: {} };
|
|
|
4234
4264
|
K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
|
|
4235
4265
|
}
|
|
4236
4266
|
he.prototype = Object.create(K.prototype);
|
|
4237
|
-
function
|
|
4267
|
+
function ge(h, y) {
|
|
4238
4268
|
K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
|
|
4239
4269
|
}
|
|
4240
|
-
|
|
4270
|
+
ge.prototype = Object.create(K.prototype);
|
|
4241
4271
|
function x(h, y) {
|
|
4242
4272
|
K.call(this, h), this.error = y.error;
|
|
4243
4273
|
}
|
|
4244
4274
|
x.prototype = Object.create(K.prototype);
|
|
4245
|
-
var
|
|
4275
|
+
var ye = -1, pe = 0, le = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ut = 18e6, Ke = function(h, y) {
|
|
4246
4276
|
var E = h == null ? y : parseInt(h, 10);
|
|
4247
|
-
return E !== E && (E = y),
|
|
4248
|
-
},
|
|
4249
|
-
return Math.min(Math.max(h,
|
|
4277
|
+
return E !== E && (E = y), Pe(E);
|
|
4278
|
+
}, Pe = function(h) {
|
|
4279
|
+
return Math.min(Math.max(h, Je), ut);
|
|
4250
4280
|
}, Be = function(h, y, E) {
|
|
4251
4281
|
try {
|
|
4252
4282
|
typeof y == "function" && y.call(h, E);
|
|
4253
4283
|
} catch (g) {
|
|
4254
|
-
|
|
4284
|
+
F(g);
|
|
4255
4285
|
}
|
|
4256
4286
|
};
|
|
4257
4287
|
function ae(h, y) {
|
|
4258
|
-
q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0,
|
|
4288
|
+
q.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ot(this, h, y);
|
|
4259
4289
|
}
|
|
4260
|
-
function
|
|
4290
|
+
function Ht() {
|
|
4261
4291
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4262
4292
|
}
|
|
4263
4293
|
var lt = b != null && m != null && "body" in m.prototype;
|
|
4264
|
-
function
|
|
4294
|
+
function Ot(h, y, E) {
|
|
4265
4295
|
y = String(y);
|
|
4266
|
-
var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d =
|
|
4296
|
+
var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Pe(1e3), p = Ke(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, N = E.Transport, ee = lt && N == null ? void 0 : new D(N != null ? new N() : Ht()), Ae = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, fe = ye, Ne = "", ht = "", ve = "", ft = "", ne = me, Mt = 0, Oe = 0, Er = function(Y, z, se, ue) {
|
|
4267
4297
|
if (fe === pe)
|
|
4268
|
-
if (Y === 200 && se != null &&
|
|
4298
|
+
if (Y === 200 && se != null && Ct.test(se)) {
|
|
4269
4299
|
fe = le, C = Date.now(), T = d, h.readyState = le;
|
|
4270
|
-
var
|
|
4300
|
+
var re = new ge("open", {
|
|
4271
4301
|
status: Y,
|
|
4272
4302
|
statusText: z,
|
|
4273
4303
|
headers: ue
|
|
4274
4304
|
});
|
|
4275
|
-
h.dispatchEvent(
|
|
4305
|
+
h.dispatchEvent(re), Be(h, h.onopen, re);
|
|
4276
4306
|
} else {
|
|
4277
4307
|
var J = "";
|
|
4278
|
-
Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.",
|
|
4279
|
-
var
|
|
4308
|
+
Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
|
|
4309
|
+
var re = new ge("error", {
|
|
4280
4310
|
status: Y,
|
|
4281
4311
|
statusText: z,
|
|
4282
4312
|
headers: ue
|
|
4283
4313
|
});
|
|
4284
|
-
h.dispatchEvent(
|
|
4314
|
+
h.dispatchEvent(re), Be(h, h.onerror, re), console.error(J);
|
|
4285
4315
|
}
|
|
4286
|
-
},
|
|
4316
|
+
}, xr = function(Y) {
|
|
4287
4317
|
if (fe === le) {
|
|
4288
4318
|
for (var z = -1, se = 0; se < Y.length; se += 1) {
|
|
4289
4319
|
var ue = Y.charCodeAt(se);
|
|
4290
4320
|
(ue === 10 || ue === 13) && (z = se);
|
|
4291
4321
|
}
|
|
4292
|
-
var
|
|
4322
|
+
var re = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
|
|
4293
4323
|
ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
|
|
4294
|
-
for (var J = 0; J <
|
|
4295
|
-
var ue =
|
|
4296
|
-
if (
|
|
4297
|
-
|
|
4298
|
-
else if (
|
|
4299
|
-
if (
|
|
4300
|
-
|
|
4301
|
-
var
|
|
4302
|
-
|
|
4303
|
-
`, Ne +=
|
|
4304
|
-
|
|
4324
|
+
for (var J = 0; J < re.length; J += 1) {
|
|
4325
|
+
var ue = re.charCodeAt(J);
|
|
4326
|
+
if (ne === Ye && ue === 10)
|
|
4327
|
+
ne = me;
|
|
4328
|
+
else if (ne === Ye && (ne = me), ue === 13 || ue === 10) {
|
|
4329
|
+
if (ne !== me) {
|
|
4330
|
+
ne === Qe && (Oe = J + 1);
|
|
4331
|
+
var _e = re.slice(Mt, Oe - 1), Ee = re.slice(Oe + (Oe < J && re.charCodeAt(Oe) === 32 ? 1 : 0), J);
|
|
4332
|
+
_e === "data" ? (Ne += `
|
|
4333
|
+
`, Ne += Ee) : _e === "id" ? ht = Ee : _e === "event" ? ve = Ee : _e === "retry" ? (d = Ke(Ee, d), T = d) : _e === "heartbeatTimeout" && (p = Ke(Ee, p), te !== 0 && (i(te), te = r(function() {
|
|
4334
|
+
et();
|
|
4305
4335
|
}, p)));
|
|
4306
4336
|
}
|
|
4307
|
-
if (
|
|
4337
|
+
if (ne === me) {
|
|
4308
4338
|
if (Ne !== "") {
|
|
4309
|
-
v = ht,
|
|
4310
|
-
var Ie = new he(
|
|
4339
|
+
v = ht, ve === "" && (ve = "message");
|
|
4340
|
+
var Ie = new he(ve, {
|
|
4311
4341
|
data: Ne.slice(1),
|
|
4312
4342
|
lastEventId: ht
|
|
4313
4343
|
});
|
|
4314
|
-
if (h.dispatchEvent(Ie),
|
|
4344
|
+
if (h.dispatchEvent(Ie), ve === "open" ? Be(h, h.onopen, Ie) : ve === "message" ? Be(h, h.onmessage, Ie) : ve === "error" && Be(h, h.onerror, Ie), fe === He)
|
|
4315
4345
|
return;
|
|
4316
4346
|
}
|
|
4317
|
-
Ne = "",
|
|
4347
|
+
Ne = "", ve = "";
|
|
4318
4348
|
}
|
|
4319
|
-
|
|
4349
|
+
ne = ue === 13 ? Ye : me;
|
|
4320
4350
|
} else
|
|
4321
|
-
|
|
4351
|
+
ne === me && (Mt = J, ne = Qe), ne === Qe ? ue === 58 && (Oe = J + 1, ne = Le) : ne === Le && (ne = st);
|
|
4322
4352
|
}
|
|
4323
4353
|
}
|
|
4324
|
-
},
|
|
4354
|
+
}, un = function(Y) {
|
|
4325
4355
|
if (fe === le || fe === pe) {
|
|
4326
|
-
fe =
|
|
4327
|
-
|
|
4328
|
-
}, T), T =
|
|
4356
|
+
fe = ye, te !== 0 && (i(te), te = 0), te = r(function() {
|
|
4357
|
+
et();
|
|
4358
|
+
}, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
|
|
4329
4359
|
var z = new x("error", { error: Y });
|
|
4330
4360
|
h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
|
|
4331
4361
|
}
|
|
4332
|
-
},
|
|
4362
|
+
}, Rt = function() {
|
|
4333
4363
|
fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
|
|
4334
|
-
},
|
|
4335
|
-
if (te = 0, fe !==
|
|
4364
|
+
}, et = function() {
|
|
4365
|
+
if (te = 0, fe !== ye) {
|
|
4336
4366
|
if (!C && X != null)
|
|
4337
|
-
|
|
4367
|
+
un(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
|
|
4338
4368
|
else {
|
|
4339
4369
|
var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
|
|
4340
|
-
C = !1, te =
|
|
4341
|
-
|
|
4370
|
+
C = !1, te = r(function() {
|
|
4371
|
+
et();
|
|
4342
4372
|
}, Y);
|
|
4343
4373
|
}
|
|
4344
4374
|
return;
|
|
4345
4375
|
}
|
|
4346
|
-
C = !1, S = 0, te =
|
|
4347
|
-
|
|
4348
|
-
}, p), fe = pe, Ne = "",
|
|
4376
|
+
C = !1, S = 0, te = r(function() {
|
|
4377
|
+
et();
|
|
4378
|
+
}, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Mt = 0, Oe = 0, ne = me;
|
|
4349
4379
|
var z = y;
|
|
4350
4380
|
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
|
|
4351
4381
|
var se = y.indexOf("?");
|
|
4352
|
-
z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
4353
|
-
return Ie === c ? "" :
|
|
4382
|
+
z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
|
|
4383
|
+
return Ie === c ? "" : Ee;
|
|
4354
4384
|
}), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
|
|
4355
4385
|
}
|
|
4356
|
-
var ue = h.withCredentials,
|
|
4357
|
-
|
|
4386
|
+
var ue = h.withCredentials, re = {};
|
|
4387
|
+
re.Accept = "text/event-stream";
|
|
4358
4388
|
var J = h.headers;
|
|
4359
4389
|
if (J != null)
|
|
4360
|
-
for (var
|
|
4361
|
-
Object.prototype.hasOwnProperty.call(J,
|
|
4390
|
+
for (var _e in J)
|
|
4391
|
+
Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
|
|
4362
4392
|
try {
|
|
4363
|
-
X = Ae.open(ee,
|
|
4364
|
-
} catch (
|
|
4365
|
-
throw
|
|
4393
|
+
X = Ae.open(ee, Er, xr, un, z, ue, re);
|
|
4394
|
+
} catch (Ee) {
|
|
4395
|
+
throw Rt(), Ee;
|
|
4366
4396
|
}
|
|
4367
4397
|
};
|
|
4368
|
-
h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close =
|
|
4398
|
+
h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Rt, et();
|
|
4369
4399
|
}
|
|
4370
4400
|
ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = pe, ae.prototype.OPEN = le, ae.prototype.CLOSED = He, ae.prototype.close = function() {
|
|
4371
4401
|
this._close();
|
|
@@ -4379,115 +4409,46 @@ var tr = { exports: {} };
|
|
|
4379
4409
|
}(function(h) {
|
|
4380
4410
|
h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ct;
|
|
4381
4411
|
});
|
|
4382
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4383
|
-
})(
|
|
4384
|
-
var
|
|
4385
|
-
|
|
4386
|
-
Copyright (c) Microsoft Corporation.
|
|
4387
|
-
|
|
4388
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4389
|
-
purpose with or without fee is hereby granted.
|
|
4390
|
-
|
|
4391
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4392
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4393
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4394
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4395
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4396
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4397
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4398
|
-
***************************************************************************** */
|
|
4399
|
-
var rr = function(e, t) {
|
|
4400
|
-
return rr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
4401
|
-
r.__proto__ = n;
|
|
4402
|
-
} || function(r, n) {
|
|
4403
|
-
for (var i in n)
|
|
4404
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
4405
|
-
}, rr(e, t);
|
|
4406
|
-
};
|
|
4407
|
-
function at(e, t) {
|
|
4408
|
-
if (typeof t != "function" && t !== null)
|
|
4409
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4410
|
-
rr(e, t);
|
|
4411
|
-
function r() {
|
|
4412
|
-
this.constructor = e;
|
|
4413
|
-
}
|
|
4414
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
4415
|
-
}
|
|
4416
|
-
function nr(e) {
|
|
4417
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
4418
|
-
if (r)
|
|
4419
|
-
return r.call(e);
|
|
4420
|
-
if (e && typeof e.length == "number")
|
|
4421
|
-
return {
|
|
4422
|
-
next: function() {
|
|
4423
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
4424
|
-
}
|
|
4425
|
-
};
|
|
4426
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4427
|
-
}
|
|
4428
|
-
function ir(e, t) {
|
|
4429
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4430
|
-
if (!r)
|
|
4431
|
-
return e;
|
|
4432
|
-
var n = r.call(e), i, o = [], s;
|
|
4433
|
-
try {
|
|
4434
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
4435
|
-
o.push(i.value);
|
|
4436
|
-
} catch (a) {
|
|
4437
|
-
s = { error: a };
|
|
4438
|
-
} finally {
|
|
4439
|
-
try {
|
|
4440
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
4441
|
-
} finally {
|
|
4442
|
-
if (s)
|
|
4443
|
-
throw s.error;
|
|
4444
|
-
}
|
|
4445
|
-
}
|
|
4446
|
-
return o;
|
|
4447
|
-
}
|
|
4448
|
-
function or(e, t, r) {
|
|
4449
|
-
if (arguments.length === 2)
|
|
4450
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
4451
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
4452
|
-
return e.concat(o || t);
|
|
4453
|
-
}
|
|
4454
|
-
function Te(e) {
|
|
4412
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Yr : globalThis);
|
|
4413
|
+
})(en, en.exports);
|
|
4414
|
+
var Go = en.exports;
|
|
4415
|
+
function Se(e) {
|
|
4455
4416
|
return typeof e == "function";
|
|
4456
4417
|
}
|
|
4457
|
-
function
|
|
4458
|
-
var t = function(
|
|
4459
|
-
Error.call(
|
|
4460
|
-
},
|
|
4461
|
-
return
|
|
4462
|
-
}
|
|
4463
|
-
var
|
|
4464
|
-
return function(
|
|
4465
|
-
e(this), this.message =
|
|
4466
|
-
` +
|
|
4467
|
-
return i + 1 + ") " +
|
|
4418
|
+
function mr(e) {
|
|
4419
|
+
var t = function(r) {
|
|
4420
|
+
Error.call(r), r.stack = new Error().stack;
|
|
4421
|
+
}, n = e(t);
|
|
4422
|
+
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
4423
|
+
}
|
|
4424
|
+
var Ft = mr(function(e) {
|
|
4425
|
+
return function(n) {
|
|
4426
|
+
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
4427
|
+
` + n.map(function(r, i) {
|
|
4428
|
+
return i + 1 + ") " + r.toString();
|
|
4468
4429
|
}).join(`
|
|
4469
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
4430
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
4470
4431
|
};
|
|
4471
4432
|
});
|
|
4472
|
-
function
|
|
4433
|
+
function tn(e, t) {
|
|
4473
4434
|
if (e) {
|
|
4474
|
-
var
|
|
4475
|
-
0 <=
|
|
4435
|
+
var n = e.indexOf(t);
|
|
4436
|
+
0 <= n && e.splice(n, 1);
|
|
4476
4437
|
}
|
|
4477
4438
|
}
|
|
4478
|
-
var
|
|
4439
|
+
var At = function() {
|
|
4479
4440
|
function e(t) {
|
|
4480
4441
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4481
4442
|
}
|
|
4482
4443
|
return e.prototype.unsubscribe = function() {
|
|
4483
|
-
var t,
|
|
4444
|
+
var t, n, r, i, o;
|
|
4484
4445
|
if (!this.closed) {
|
|
4485
4446
|
this.closed = !0;
|
|
4486
4447
|
var s = this._parentage;
|
|
4487
4448
|
if (s)
|
|
4488
4449
|
if (this._parentage = null, Array.isArray(s))
|
|
4489
4450
|
try {
|
|
4490
|
-
for (var a =
|
|
4451
|
+
for (var a = Vt(s), l = a.next(); !l.done; l = a.next()) {
|
|
4491
4452
|
var u = l.value;
|
|
4492
4453
|
u.remove(this);
|
|
4493
4454
|
}
|
|
@@ -4495,7 +4456,7 @@ var Ht = function() {
|
|
|
4495
4456
|
t = { error: A };
|
|
4496
4457
|
} finally {
|
|
4497
4458
|
try {
|
|
4498
|
-
l && !l.done && (
|
|
4459
|
+
l && !l.done && (n = a.return) && n.call(a);
|
|
4499
4460
|
} finally {
|
|
4500
4461
|
if (t)
|
|
4501
4462
|
throw t.error;
|
|
@@ -4504,118 +4465,122 @@ var Ht = function() {
|
|
|
4504
4465
|
else
|
|
4505
4466
|
s.remove(this);
|
|
4506
4467
|
var f = this.initialTeardown;
|
|
4507
|
-
if (
|
|
4468
|
+
if (Se(f))
|
|
4508
4469
|
try {
|
|
4509
4470
|
f();
|
|
4510
4471
|
} catch (A) {
|
|
4511
|
-
o = A instanceof
|
|
4472
|
+
o = A instanceof Ft ? A.errors : [A];
|
|
4512
4473
|
}
|
|
4513
4474
|
var b = this._finalizers;
|
|
4514
4475
|
if (b) {
|
|
4515
4476
|
this._finalizers = null;
|
|
4516
4477
|
try {
|
|
4517
|
-
for (var m =
|
|
4478
|
+
for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
|
|
4518
4479
|
var _ = w.value;
|
|
4519
4480
|
try {
|
|
4520
|
-
|
|
4481
|
+
An(_);
|
|
4521
4482
|
} catch (A) {
|
|
4522
|
-
o = o ?? [], A instanceof
|
|
4483
|
+
o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
|
|
4523
4484
|
}
|
|
4524
4485
|
}
|
|
4525
4486
|
} catch (A) {
|
|
4526
|
-
|
|
4487
|
+
r = { error: A };
|
|
4527
4488
|
} finally {
|
|
4528
4489
|
try {
|
|
4529
4490
|
w && !w.done && (i = m.return) && i.call(m);
|
|
4530
4491
|
} finally {
|
|
4531
|
-
if (
|
|
4532
|
-
throw
|
|
4492
|
+
if (r)
|
|
4493
|
+
throw r.error;
|
|
4533
4494
|
}
|
|
4534
4495
|
}
|
|
4535
4496
|
}
|
|
4536
4497
|
if (o)
|
|
4537
|
-
throw new
|
|
4498
|
+
throw new Ft(o);
|
|
4538
4499
|
}
|
|
4539
4500
|
}, e.prototype.add = function(t) {
|
|
4540
|
-
var
|
|
4501
|
+
var n;
|
|
4541
4502
|
if (t && t !== this)
|
|
4542
4503
|
if (this.closed)
|
|
4543
|
-
|
|
4504
|
+
An(t);
|
|
4544
4505
|
else {
|
|
4545
4506
|
if (t instanceof e) {
|
|
4546
4507
|
if (t.closed || t._hasParent(this))
|
|
4547
4508
|
return;
|
|
4548
4509
|
t._addParent(this);
|
|
4549
4510
|
}
|
|
4550
|
-
(this._finalizers = (
|
|
4511
|
+
(this._finalizers = (n = this._finalizers) !== null && n !== void 0 ? n : []).push(t);
|
|
4551
4512
|
}
|
|
4552
4513
|
}, e.prototype._hasParent = function(t) {
|
|
4553
|
-
var
|
|
4554
|
-
return
|
|
4514
|
+
var n = this._parentage;
|
|
4515
|
+
return n === t || Array.isArray(n) && n.includes(t);
|
|
4555
4516
|
}, e.prototype._addParent = function(t) {
|
|
4556
|
-
var
|
|
4557
|
-
this._parentage = Array.isArray(
|
|
4517
|
+
var n = this._parentage;
|
|
4518
|
+
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
4558
4519
|
}, e.prototype._removeParent = function(t) {
|
|
4559
|
-
var
|
|
4560
|
-
|
|
4520
|
+
var n = this._parentage;
|
|
4521
|
+
n === t ? this._parentage = null : Array.isArray(n) && tn(n, t);
|
|
4561
4522
|
}, e.prototype.remove = function(t) {
|
|
4562
|
-
var
|
|
4563
|
-
|
|
4523
|
+
var n = this._finalizers;
|
|
4524
|
+
n && tn(n, t), t instanceof e && t._removeParent(this);
|
|
4564
4525
|
}, e.EMPTY = function() {
|
|
4565
4526
|
var t = new e();
|
|
4566
4527
|
return t.closed = !0, t;
|
|
4567
4528
|
}(), e;
|
|
4568
|
-
}(),
|
|
4569
|
-
function
|
|
4570
|
-
return e instanceof
|
|
4529
|
+
}(), br = At.EMPTY;
|
|
4530
|
+
function gr(e) {
|
|
4531
|
+
return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
|
|
4571
4532
|
}
|
|
4572
|
-
function
|
|
4573
|
-
|
|
4574
|
-
}
|
|
4575
|
-
var
|
|
4576
|
-
|
|
4577
|
-
|
|
4533
|
+
function An(e) {
|
|
4534
|
+
Se(e) ? e() : e.unsubscribe();
|
|
4535
|
+
}
|
|
4536
|
+
var jo = {
|
|
4537
|
+
onUnhandledError: null,
|
|
4538
|
+
onStoppedNotification: null,
|
|
4539
|
+
Promise: void 0,
|
|
4540
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
4541
|
+
useDeprecatedNextContext: !1
|
|
4542
|
+
}, ko = {
|
|
4578
4543
|
setTimeout: function(e, t) {
|
|
4579
|
-
for (var
|
|
4580
|
-
r
|
|
4581
|
-
return setTimeout.apply(void 0,
|
|
4544
|
+
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4545
|
+
n[r - 2] = arguments[r];
|
|
4546
|
+
return setTimeout.apply(void 0, je([e, t], Xt(n)));
|
|
4582
4547
|
},
|
|
4583
4548
|
clearTimeout: function(e) {
|
|
4584
4549
|
return clearTimeout(e);
|
|
4585
4550
|
},
|
|
4586
4551
|
delegate: void 0
|
|
4587
4552
|
};
|
|
4588
|
-
function
|
|
4589
|
-
|
|
4553
|
+
function $o(e) {
|
|
4554
|
+
ko.setTimeout(function() {
|
|
4590
4555
|
throw e;
|
|
4591
4556
|
});
|
|
4592
4557
|
}
|
|
4593
|
-
function
|
|
4558
|
+
function Cn() {
|
|
4594
4559
|
}
|
|
4595
4560
|
function yt(e) {
|
|
4596
4561
|
e();
|
|
4597
4562
|
}
|
|
4598
|
-
var
|
|
4599
|
-
|
|
4600
|
-
function t(
|
|
4601
|
-
var
|
|
4602
|
-
return
|
|
4563
|
+
var yr = function(e) {
|
|
4564
|
+
Te(t, e);
|
|
4565
|
+
function t(n) {
|
|
4566
|
+
var r = e.call(this) || this;
|
|
4567
|
+
return r.isStopped = !1, n ? (r.destination = n, gr(n) && n.add(r)) : r.destination = zo, r;
|
|
4603
4568
|
}
|
|
4604
|
-
return t.create = function(
|
|
4605
|
-
return new
|
|
4606
|
-
}, t.prototype.next = function(
|
|
4607
|
-
this.isStopped || this._next(
|
|
4608
|
-
}, t.prototype.error = function(
|
|
4609
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
4569
|
+
return t.create = function(n, r, i) {
|
|
4570
|
+
return new nn(n, r, i);
|
|
4571
|
+
}, t.prototype.next = function(n) {
|
|
4572
|
+
this.isStopped || this._next(n);
|
|
4573
|
+
}, t.prototype.error = function(n) {
|
|
4574
|
+
this.isStopped || (this.isStopped = !0, this._error(n));
|
|
4610
4575
|
}, t.prototype.complete = function() {
|
|
4611
4576
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
4612
4577
|
}, t.prototype.unsubscribe = function() {
|
|
4613
4578
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
4614
|
-
}, t.prototype._next = function(
|
|
4615
|
-
this.destination.next(
|
|
4616
|
-
}, t.prototype._error = function(
|
|
4579
|
+
}, t.prototype._next = function(n) {
|
|
4580
|
+
this.destination.next(n);
|
|
4581
|
+
}, t.prototype._error = function(n) {
|
|
4617
4582
|
try {
|
|
4618
|
-
this.destination.error(
|
|
4583
|
+
this.destination.error(n);
|
|
4619
4584
|
} finally {
|
|
4620
4585
|
this.unsubscribe();
|
|
4621
4586
|
}
|
|
@@ -4626,25 +4591,25 @@ var xn = function(e) {
|
|
|
4626
4591
|
this.unsubscribe();
|
|
4627
4592
|
}
|
|
4628
4593
|
}, t;
|
|
4629
|
-
}(
|
|
4594
|
+
}(At), Vo = function() {
|
|
4630
4595
|
function e(t) {
|
|
4631
4596
|
this.partialObserver = t;
|
|
4632
4597
|
}
|
|
4633
4598
|
return e.prototype.next = function(t) {
|
|
4634
|
-
var
|
|
4635
|
-
if (
|
|
4599
|
+
var n = this.partialObserver;
|
|
4600
|
+
if (n.next)
|
|
4636
4601
|
try {
|
|
4637
|
-
|
|
4638
|
-
} catch (
|
|
4639
|
-
pt(
|
|
4602
|
+
n.next(t);
|
|
4603
|
+
} catch (r) {
|
|
4604
|
+
pt(r);
|
|
4640
4605
|
}
|
|
4641
4606
|
}, e.prototype.error = function(t) {
|
|
4642
|
-
var
|
|
4643
|
-
if (
|
|
4607
|
+
var n = this.partialObserver;
|
|
4608
|
+
if (n.error)
|
|
4644
4609
|
try {
|
|
4645
|
-
|
|
4646
|
-
} catch (
|
|
4647
|
-
pt(
|
|
4610
|
+
n.error(t);
|
|
4611
|
+
} catch (r) {
|
|
4612
|
+
pt(r);
|
|
4648
4613
|
}
|
|
4649
4614
|
else
|
|
4650
4615
|
pt(t);
|
|
@@ -4653,55 +4618,55 @@ var xn = function(e) {
|
|
|
4653
4618
|
if (t.complete)
|
|
4654
4619
|
try {
|
|
4655
4620
|
t.complete();
|
|
4656
|
-
} catch (
|
|
4657
|
-
pt(
|
|
4621
|
+
} catch (n) {
|
|
4622
|
+
pt(n);
|
|
4658
4623
|
}
|
|
4659
4624
|
}, e;
|
|
4660
|
-
}(),
|
|
4661
|
-
|
|
4662
|
-
function t(
|
|
4625
|
+
}(), nn = function(e) {
|
|
4626
|
+
Te(t, e);
|
|
4627
|
+
function t(n, r, i) {
|
|
4663
4628
|
var o = e.call(this) || this, s;
|
|
4664
|
-
return
|
|
4665
|
-
next:
|
|
4666
|
-
error:
|
|
4629
|
+
return Se(n) || !n ? s = {
|
|
4630
|
+
next: n ?? void 0,
|
|
4631
|
+
error: r ?? void 0,
|
|
4667
4632
|
complete: i ?? void 0
|
|
4668
|
-
} : s =
|
|
4633
|
+
} : s = n, o.destination = new Vo(s), o;
|
|
4669
4634
|
}
|
|
4670
4635
|
return t;
|
|
4671
|
-
}(
|
|
4636
|
+
}(yr);
|
|
4672
4637
|
function pt(e) {
|
|
4673
|
-
|
|
4638
|
+
$o(e);
|
|
4674
4639
|
}
|
|
4675
|
-
function
|
|
4640
|
+
function Xo(e) {
|
|
4676
4641
|
throw e;
|
|
4677
4642
|
}
|
|
4678
|
-
var
|
|
4643
|
+
var zo = {
|
|
4679
4644
|
closed: !0,
|
|
4680
|
-
next:
|
|
4681
|
-
error:
|
|
4682
|
-
complete:
|
|
4683
|
-
},
|
|
4645
|
+
next: Cn,
|
|
4646
|
+
error: Xo,
|
|
4647
|
+
complete: Cn
|
|
4648
|
+
}, Wo = function() {
|
|
4684
4649
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4685
4650
|
}();
|
|
4686
|
-
function
|
|
4651
|
+
function Zo(e) {
|
|
4687
4652
|
return e;
|
|
4688
4653
|
}
|
|
4689
|
-
function
|
|
4690
|
-
return e.length === 0 ?
|
|
4691
|
-
return e.reduce(function(
|
|
4692
|
-
return i(
|
|
4693
|
-
},
|
|
4654
|
+
function qo(e) {
|
|
4655
|
+
return e.length === 0 ? Zo : e.length === 1 ? e[0] : function(n) {
|
|
4656
|
+
return e.reduce(function(r, i) {
|
|
4657
|
+
return i(r);
|
|
4658
|
+
}, n);
|
|
4694
4659
|
};
|
|
4695
4660
|
}
|
|
4696
|
-
var
|
|
4661
|
+
var Hn = function() {
|
|
4697
4662
|
function e(t) {
|
|
4698
4663
|
t && (this._subscribe = t);
|
|
4699
4664
|
}
|
|
4700
4665
|
return e.prototype.lift = function(t) {
|
|
4701
|
-
var
|
|
4702
|
-
return
|
|
4703
|
-
}, e.prototype.subscribe = function(t,
|
|
4704
|
-
var i = this, o =
|
|
4666
|
+
var n = new e();
|
|
4667
|
+
return n.source = this, n.operator = t, n;
|
|
4668
|
+
}, e.prototype.subscribe = function(t, n, r) {
|
|
4669
|
+
var i = this, o = Qo(t) ? t : new nn(t, n, r);
|
|
4705
4670
|
return yt(function() {
|
|
4706
4671
|
var s = i, a = s.operator, l = s.source;
|
|
4707
4672
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4709,13 +4674,13 @@ var Rr = function() {
|
|
|
4709
4674
|
}, e.prototype._trySubscribe = function(t) {
|
|
4710
4675
|
try {
|
|
4711
4676
|
return this._subscribe(t);
|
|
4712
|
-
} catch (
|
|
4713
|
-
t.error(
|
|
4677
|
+
} catch (n) {
|
|
4678
|
+
t.error(n);
|
|
4714
4679
|
}
|
|
4715
|
-
}, e.prototype.forEach = function(t,
|
|
4716
|
-
var
|
|
4717
|
-
return
|
|
4718
|
-
var s = new
|
|
4680
|
+
}, e.prototype.forEach = function(t, n) {
|
|
4681
|
+
var r = this;
|
|
4682
|
+
return n = On(n), new n(function(i, o) {
|
|
4683
|
+
var s = new nn({
|
|
4719
4684
|
next: function(a) {
|
|
4720
4685
|
try {
|
|
4721
4686
|
t(a);
|
|
@@ -4726,69 +4691,69 @@ var Rr = function() {
|
|
|
4726
4691
|
error: o,
|
|
4727
4692
|
complete: i
|
|
4728
4693
|
});
|
|
4729
|
-
|
|
4694
|
+
r.subscribe(s);
|
|
4730
4695
|
});
|
|
4731
4696
|
}, e.prototype._subscribe = function(t) {
|
|
4732
|
-
var
|
|
4733
|
-
return (
|
|
4734
|
-
}, e.prototype[
|
|
4697
|
+
var n;
|
|
4698
|
+
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
4699
|
+
}, e.prototype[Wo] = function() {
|
|
4735
4700
|
return this;
|
|
4736
4701
|
}, e.prototype.pipe = function() {
|
|
4737
|
-
for (var t = [],
|
|
4738
|
-
t[
|
|
4739
|
-
return
|
|
4702
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
4703
|
+
t[n] = arguments[n];
|
|
4704
|
+
return qo(t)(this);
|
|
4740
4705
|
}, e.prototype.toPromise = function(t) {
|
|
4741
|
-
var
|
|
4742
|
-
return t =
|
|
4706
|
+
var n = this;
|
|
4707
|
+
return t = On(t), new t(function(r, i) {
|
|
4743
4708
|
var o;
|
|
4744
|
-
|
|
4709
|
+
n.subscribe(function(s) {
|
|
4745
4710
|
return o = s;
|
|
4746
4711
|
}, function(s) {
|
|
4747
4712
|
return i(s);
|
|
4748
4713
|
}, function() {
|
|
4749
|
-
return
|
|
4714
|
+
return r(o);
|
|
4750
4715
|
});
|
|
4751
4716
|
});
|
|
4752
4717
|
}, e.create = function(t) {
|
|
4753
4718
|
return new e(t);
|
|
4754
4719
|
}, e;
|
|
4755
4720
|
}();
|
|
4756
|
-
function
|
|
4721
|
+
function On(e) {
|
|
4757
4722
|
var t;
|
|
4758
|
-
return (t = e ??
|
|
4723
|
+
return (t = e ?? jo.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4759
4724
|
}
|
|
4760
|
-
function
|
|
4761
|
-
return e &&
|
|
4725
|
+
function Yo(e) {
|
|
4726
|
+
return e && Se(e.next) && Se(e.error) && Se(e.complete);
|
|
4762
4727
|
}
|
|
4763
|
-
function
|
|
4764
|
-
return e && e instanceof
|
|
4728
|
+
function Qo(e) {
|
|
4729
|
+
return e && e instanceof yr || Yo(e) && gr(e);
|
|
4765
4730
|
}
|
|
4766
|
-
var
|
|
4731
|
+
var Jo = mr(function(e) {
|
|
4767
4732
|
return function() {
|
|
4768
4733
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4769
4734
|
};
|
|
4770
|
-
}),
|
|
4771
|
-
|
|
4735
|
+
}), vr = function(e) {
|
|
4736
|
+
Te(t, e);
|
|
4772
4737
|
function t() {
|
|
4773
|
-
var
|
|
4774
|
-
return
|
|
4738
|
+
var n = e.call(this) || this;
|
|
4739
|
+
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
4775
4740
|
}
|
|
4776
|
-
return t.prototype.lift = function(
|
|
4777
|
-
var
|
|
4778
|
-
return
|
|
4741
|
+
return t.prototype.lift = function(n) {
|
|
4742
|
+
var r = new Mn(this, this);
|
|
4743
|
+
return r.operator = n, r;
|
|
4779
4744
|
}, t.prototype._throwIfClosed = function() {
|
|
4780
4745
|
if (this.closed)
|
|
4781
|
-
throw new
|
|
4782
|
-
}, t.prototype.next = function(
|
|
4783
|
-
var
|
|
4746
|
+
throw new Jo();
|
|
4747
|
+
}, t.prototype.next = function(n) {
|
|
4748
|
+
var r = this;
|
|
4784
4749
|
yt(function() {
|
|
4785
4750
|
var i, o;
|
|
4786
|
-
if (
|
|
4787
|
-
|
|
4751
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
4752
|
+
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4788
4753
|
try {
|
|
4789
|
-
for (var s =
|
|
4754
|
+
for (var s = Vt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4790
4755
|
var l = a.value;
|
|
4791
|
-
l.next(
|
|
4756
|
+
l.next(n);
|
|
4792
4757
|
}
|
|
4793
4758
|
} catch (u) {
|
|
4794
4759
|
i = { error: u };
|
|
@@ -4802,121 +4767,121 @@ var ra = vn(function(e) {
|
|
|
4802
4767
|
}
|
|
4803
4768
|
}
|
|
4804
4769
|
});
|
|
4805
|
-
}, t.prototype.error = function(
|
|
4806
|
-
var
|
|
4770
|
+
}, t.prototype.error = function(n) {
|
|
4771
|
+
var r = this;
|
|
4807
4772
|
yt(function() {
|
|
4808
|
-
if (
|
|
4809
|
-
|
|
4810
|
-
for (var i =
|
|
4811
|
-
i.shift().error(
|
|
4773
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
4774
|
+
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
4775
|
+
for (var i = r.observers; i.length; )
|
|
4776
|
+
i.shift().error(n);
|
|
4812
4777
|
}
|
|
4813
4778
|
});
|
|
4814
4779
|
}, t.prototype.complete = function() {
|
|
4815
|
-
var
|
|
4780
|
+
var n = this;
|
|
4816
4781
|
yt(function() {
|
|
4817
|
-
if (
|
|
4818
|
-
|
|
4819
|
-
for (var
|
|
4820
|
-
|
|
4782
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
4783
|
+
n.isStopped = !0;
|
|
4784
|
+
for (var r = n.observers; r.length; )
|
|
4785
|
+
r.shift().complete();
|
|
4821
4786
|
}
|
|
4822
4787
|
});
|
|
4823
4788
|
}, t.prototype.unsubscribe = function() {
|
|
4824
4789
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
4825
4790
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
4826
4791
|
get: function() {
|
|
4827
|
-
var
|
|
4828
|
-
return ((
|
|
4792
|
+
var n;
|
|
4793
|
+
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
4829
4794
|
},
|
|
4830
4795
|
enumerable: !1,
|
|
4831
4796
|
configurable: !0
|
|
4832
|
-
}), t.prototype._trySubscribe = function(
|
|
4833
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
4834
|
-
}, t.prototype._subscribe = function(
|
|
4835
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
4836
|
-
}, t.prototype._innerSubscribe = function(
|
|
4837
|
-
var
|
|
4838
|
-
return o || s ?
|
|
4839
|
-
|
|
4797
|
+
}), t.prototype._trySubscribe = function(n) {
|
|
4798
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
4799
|
+
}, t.prototype._subscribe = function(n) {
|
|
4800
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4801
|
+
}, t.prototype._innerSubscribe = function(n) {
|
|
4802
|
+
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4803
|
+
return o || s ? br : (this.currentObservers = null, a.push(n), new At(function() {
|
|
4804
|
+
r.currentObservers = null, tn(a, n);
|
|
4840
4805
|
}));
|
|
4841
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
4842
|
-
var
|
|
4843
|
-
i ?
|
|
4806
|
+
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
4807
|
+
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4808
|
+
i ? n.error(o) : s && n.complete();
|
|
4844
4809
|
}, t.prototype.asObservable = function() {
|
|
4845
|
-
var
|
|
4846
|
-
return
|
|
4847
|
-
}, t.create = function(
|
|
4848
|
-
return new
|
|
4810
|
+
var n = new Hn();
|
|
4811
|
+
return n.source = this, n;
|
|
4812
|
+
}, t.create = function(n, r) {
|
|
4813
|
+
return new Mn(n, r);
|
|
4849
4814
|
}, t;
|
|
4850
|
-
}(
|
|
4851
|
-
|
|
4852
|
-
function t(
|
|
4815
|
+
}(Hn), Mn = function(e) {
|
|
4816
|
+
Te(t, e);
|
|
4817
|
+
function t(n, r) {
|
|
4853
4818
|
var i = e.call(this) || this;
|
|
4854
|
-
return i.destination =
|
|
4819
|
+
return i.destination = n, i.source = r, i;
|
|
4855
4820
|
}
|
|
4856
|
-
return t.prototype.next = function(
|
|
4857
|
-
var
|
|
4858
|
-
(i = (
|
|
4859
|
-
}, t.prototype.error = function(
|
|
4860
|
-
var
|
|
4861
|
-
(i = (
|
|
4821
|
+
return t.prototype.next = function(n) {
|
|
4822
|
+
var r, i;
|
|
4823
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
4824
|
+
}, t.prototype.error = function(n) {
|
|
4825
|
+
var r, i;
|
|
4826
|
+
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
4862
4827
|
}, t.prototype.complete = function() {
|
|
4863
|
-
var
|
|
4864
|
-
(
|
|
4865
|
-
}, t.prototype._subscribe = function(
|
|
4866
|
-
var
|
|
4867
|
-
return (i = (
|
|
4828
|
+
var n, r;
|
|
4829
|
+
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
4830
|
+
}, t.prototype._subscribe = function(n) {
|
|
4831
|
+
var r, i;
|
|
4832
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
|
|
4868
4833
|
}, t;
|
|
4869
|
-
}(
|
|
4834
|
+
}(vr), _r = {
|
|
4870
4835
|
now: function() {
|
|
4871
|
-
return (
|
|
4836
|
+
return (_r.delegate || Date).now();
|
|
4872
4837
|
},
|
|
4873
4838
|
delegate: void 0
|
|
4874
|
-
},
|
|
4875
|
-
|
|
4876
|
-
function t(
|
|
4877
|
-
|
|
4839
|
+
}, Ko = function(e) {
|
|
4840
|
+
Te(t, e);
|
|
4841
|
+
function t(n, r, i) {
|
|
4842
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = _r);
|
|
4878
4843
|
var o = e.call(this) || this;
|
|
4879
|
-
return o._bufferSize =
|
|
4844
|
+
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
4880
4845
|
}
|
|
4881
|
-
return t.prototype.next = function(
|
|
4882
|
-
var
|
|
4883
|
-
i || (o.push(
|
|
4884
|
-
}, t.prototype._subscribe = function(
|
|
4846
|
+
return t.prototype.next = function(n) {
|
|
4847
|
+
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
|
|
4848
|
+
i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
4849
|
+
}, t.prototype._subscribe = function(n) {
|
|
4885
4850
|
this._throwIfClosed(), this._trimBuffer();
|
|
4886
|
-
for (var
|
|
4887
|
-
|
|
4888
|
-
return this._checkFinalizedStatuses(
|
|
4851
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
|
|
4852
|
+
n.next(a[l]);
|
|
4853
|
+
return this._checkFinalizedStatuses(n), r;
|
|
4889
4854
|
}, t.prototype._trimBuffer = function() {
|
|
4890
|
-
var
|
|
4891
|
-
if (
|
|
4855
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
4856
|
+
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
4892
4857
|
for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
|
|
4893
4858
|
u = f;
|
|
4894
4859
|
u && o.splice(0, u + 1);
|
|
4895
4860
|
}
|
|
4896
4861
|
}, t;
|
|
4897
|
-
}(
|
|
4898
|
-
const
|
|
4899
|
-
if (
|
|
4900
|
-
const
|
|
4901
|
-
|
|
4862
|
+
}(vr);
|
|
4863
|
+
const Rn = [], Ln = {}, ea = (e, t = 0) => {
|
|
4864
|
+
if (Rn.indexOf(e) == -1) {
|
|
4865
|
+
const n = new Ko(t);
|
|
4866
|
+
Ln[e] = n, Rn.push(e);
|
|
4902
4867
|
}
|
|
4903
|
-
return
|
|
4868
|
+
return Ln[e];
|
|
4904
4869
|
};
|
|
4905
|
-
window.emWidgets = { topic:
|
|
4906
|
-
const
|
|
4907
|
-
function
|
|
4908
|
-
|
|
4870
|
+
window.emWidgets = { topic: ea };
|
|
4871
|
+
const ta = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4872
|
+
function na(e) {
|
|
4873
|
+
Tr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4909
4874
|
}
|
|
4910
|
-
function
|
|
4911
|
-
const
|
|
4912
|
-
return
|
|
4875
|
+
function Pn(e, t, n) {
|
|
4876
|
+
const r = e.slice();
|
|
4877
|
+
return r[54] = t[n], r;
|
|
4913
4878
|
}
|
|
4914
|
-
function
|
|
4915
|
-
const
|
|
4916
|
-
return
|
|
4879
|
+
function Nn(e, t, n) {
|
|
4880
|
+
const r = e.slice();
|
|
4881
|
+
return r[57] = t[n], r;
|
|
4917
4882
|
}
|
|
4918
|
-
function
|
|
4919
|
-
let t,
|
|
4883
|
+
function ra(e) {
|
|
4884
|
+
let t, n, r = (
|
|
4920
4885
|
/*balances*/
|
|
4921
4886
|
(e[1].Total ? (
|
|
4922
4887
|
/*formatBalance*/
|
|
@@ -4927,93 +4892,93 @@ function sa(e) {
|
|
|
4927
4892
|
) : "0") + ""
|
|
4928
4893
|
), i, o, s, a, l, u, f, b, m, w, _ = (
|
|
4929
4894
|
/*showBalance*/
|
|
4930
|
-
e[4] &&
|
|
4895
|
+
e[4] && In(e)
|
|
4931
4896
|
);
|
|
4932
4897
|
return {
|
|
4933
4898
|
c() {
|
|
4934
|
-
t =
|
|
4935
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4899
|
+
t = j("button"), n = j("p"), i = xe(r), o = we(), s = j("span"), a = cn("svg"), l = cn("path"), f = we(), _ && _.c(), b = Cr(), M(l, "id", "arrow"), M(l, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(s, "class", u = /*isModalDisplayed*/
|
|
4900
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4936
4901
|
},
|
|
4937
|
-
m(A,
|
|
4938
|
-
|
|
4902
|
+
m(A, I) {
|
|
4903
|
+
be(A, t, I), P(t, n), P(n, i), P(t, o), P(t, s), P(s, a), P(a, l), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
|
|
4939
4904
|
t,
|
|
4940
4905
|
"click",
|
|
4941
4906
|
/*click_handler*/
|
|
4942
4907
|
e[26]
|
|
4943
4908
|
), m = !0);
|
|
4944
4909
|
},
|
|
4945
|
-
p(A,
|
|
4946
|
-
|
|
4947
|
-
2 &&
|
|
4910
|
+
p(A, I) {
|
|
4911
|
+
I[0] & /*balances*/
|
|
4912
|
+
2 && r !== (r = /*balances*/
|
|
4948
4913
|
(A[1].Total ? (
|
|
4949
4914
|
/*formatBalance*/
|
|
4950
4915
|
A[8](
|
|
4951
4916
|
/*balances*/
|
|
4952
4917
|
A[1].Total[0].amount
|
|
4953
4918
|
)
|
|
4954
|
-
) : "0") + "") &&
|
|
4919
|
+
) : "0") + "") && Me(i, r), I[0] & /*isModalDisplayed*/
|
|
4955
4920
|
8 && u !== (u = /*isModalDisplayed*/
|
|
4956
|
-
A[3] ? "TriangleActive" : "TriangleInactive") &&
|
|
4957
|
-
A[4] ? _ ? _.p(A,
|
|
4921
|
+
A[3] ? "TriangleActive" : "TriangleInactive") && M(s, "class", u), /*showBalance*/
|
|
4922
|
+
A[4] ? _ ? _.p(A, I) : (_ = In(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
|
|
4958
4923
|
},
|
|
4959
4924
|
d(A) {
|
|
4960
4925
|
A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
|
|
4961
4926
|
}
|
|
4962
4927
|
};
|
|
4963
4928
|
}
|
|
4964
|
-
function
|
|
4965
|
-
let t,
|
|
4929
|
+
function ia(e) {
|
|
4930
|
+
let t, n = (
|
|
4966
4931
|
/*$_*/
|
|
4967
4932
|
e[6]("Loading") + ""
|
|
4968
|
-
),
|
|
4933
|
+
), r;
|
|
4969
4934
|
return {
|
|
4970
4935
|
c() {
|
|
4971
|
-
t =
|
|
4936
|
+
t = j("p"), r = xe(n), M(t, "class", "Loading");
|
|
4972
4937
|
},
|
|
4973
4938
|
m(i, o) {
|
|
4974
|
-
|
|
4939
|
+
be(i, t, o), P(t, r);
|
|
4975
4940
|
},
|
|
4976
4941
|
p(i, o) {
|
|
4977
4942
|
o[0] & /*$_*/
|
|
4978
|
-
64 &&
|
|
4979
|
-
i[6]("Loading") + "") &&
|
|
4943
|
+
64 && n !== (n = /*$_*/
|
|
4944
|
+
i[6]("Loading") + "") && Me(r, n);
|
|
4980
4945
|
},
|
|
4981
4946
|
d(i) {
|
|
4982
4947
|
i && de(t);
|
|
4983
4948
|
}
|
|
4984
4949
|
};
|
|
4985
4950
|
}
|
|
4986
|
-
function
|
|
4987
|
-
let t,
|
|
4951
|
+
function In(e) {
|
|
4952
|
+
let t, n, r, i, o, s, a, l, u = (
|
|
4988
4953
|
/*$_*/
|
|
4989
4954
|
e[6]("Title") + ""
|
|
4990
|
-
), f, b, m, w, _, A,
|
|
4955
|
+
), f, b, m, w, _, A, I = (
|
|
4991
4956
|
/*$_*/
|
|
4992
4957
|
e[6]("DepositButton") + ""
|
|
4993
|
-
), W, V, R,
|
|
4958
|
+
), W, V, R, D, k, oe, Z = _t(Object.keys(
|
|
4994
4959
|
/*balances*/
|
|
4995
4960
|
e[1]
|
|
4996
|
-
)),
|
|
4997
|
-
for (let
|
|
4998
|
-
|
|
4961
|
+
)), $ = [];
|
|
4962
|
+
for (let U = 0; U < Z.length; U += 1)
|
|
4963
|
+
$[U] = Un(Pn(e, Z, U));
|
|
4999
4964
|
return {
|
|
5000
4965
|
c() {
|
|
5001
|
-
t =
|
|
5002
|
-
for (let
|
|
5003
|
-
|
|
5004
|
-
w =
|
|
5005
|
-
(e[3] ? "Open" : "")),
|
|
5006
|
-
(e[3] ? "Open" : "")),
|
|
5007
|
-
(e[3] ? "Open" : "")),
|
|
4966
|
+
t = j("div"), n = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), l = j("p"), f = xe(u), b = we(), m = j("div");
|
|
4967
|
+
for (let U = 0; U < $.length; U += 1)
|
|
4968
|
+
$[U].c();
|
|
4969
|
+
w = we(), _ = j("div"), A = j("button"), W = xe(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4970
|
+
(e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(s, "class", V = "ModalContent " + /*isModalDisplayed*/
|
|
4971
|
+
(e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
|
|
4972
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5008
4973
|
(e[3] ? "Open" : ""));
|
|
5009
4974
|
},
|
|
5010
|
-
m(
|
|
5011
|
-
|
|
5012
|
-
for (let
|
|
5013
|
-
|
|
5014
|
-
|
|
4975
|
+
m(U, q) {
|
|
4976
|
+
be(U, t, q), P(t, n), P(t, i), P(t, o), P(o, s), P(s, a), P(a, l), P(l, f), P(s, b), P(s, m);
|
|
4977
|
+
for (let F = 0; F < $.length; F += 1)
|
|
4978
|
+
$[F] && $[F].m(m, null);
|
|
4979
|
+
P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
|
|
5015
4980
|
vt(
|
|
5016
|
-
|
|
4981
|
+
n,
|
|
5017
4982
|
"click",
|
|
5018
4983
|
/*click_handler_1*/
|
|
5019
4984
|
e[27]
|
|
@@ -5024,45 +4989,45 @@ function Fr(e) {
|
|
|
5024
4989
|
/*click_handler_2*/
|
|
5025
4990
|
e[28]
|
|
5026
4991
|
)
|
|
5027
|
-
],
|
|
4992
|
+
], k = !0);
|
|
5028
4993
|
},
|
|
5029
|
-
p(
|
|
4994
|
+
p(U, q) {
|
|
5030
4995
|
if (q[0] & /*isModalDisplayed*/
|
|
5031
|
-
8 &&
|
|
5032
|
-
(
|
|
4996
|
+
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4997
|
+
(U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
|
|
5033
4998
|
64 && u !== (u = /*$_*/
|
|
5034
|
-
|
|
4999
|
+
U[6]("Title") + "") && Me(f, u), q[0] & /*balances, formatBalance, $_*/
|
|
5035
5000
|
322) {
|
|
5036
5001
|
Z = _t(Object.keys(
|
|
5037
5002
|
/*balances*/
|
|
5038
|
-
|
|
5003
|
+
U[1]
|
|
5039
5004
|
));
|
|
5040
|
-
let
|
|
5041
|
-
for (
|
|
5042
|
-
const K =
|
|
5043
|
-
|
|
5005
|
+
let F;
|
|
5006
|
+
for (F = 0; F < Z.length; F += 1) {
|
|
5007
|
+
const K = Pn(U, Z, F);
|
|
5008
|
+
$[F] ? $[F].p(K, q) : ($[F] = Un(K), $[F].c(), $[F].m(m, null));
|
|
5044
5009
|
}
|
|
5045
|
-
for (;
|
|
5046
|
-
|
|
5047
|
-
|
|
5010
|
+
for (; F < $.length; F += 1)
|
|
5011
|
+
$[F].d(1);
|
|
5012
|
+
$.length = Z.length;
|
|
5048
5013
|
}
|
|
5049
5014
|
q[0] & /*$_*/
|
|
5050
|
-
64 &&
|
|
5051
|
-
|
|
5015
|
+
64 && I !== (I = /*$_*/
|
|
5016
|
+
U[6]("DepositButton") + "") && Me(W, I), q[0] & /*isModalDisplayed*/
|
|
5052
5017
|
8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
|
|
5053
|
-
(
|
|
5018
|
+
(U[3] ? "Open" : "")) && M(s, "class", V), q[0] & /*isModalDisplayed*/
|
|
5054
5019
|
8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
|
|
5055
|
-
(
|
|
5056
|
-
8 &&
|
|
5057
|
-
(
|
|
5020
|
+
(U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
|
|
5021
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5022
|
+
(U[3] ? "Open" : "")) && M(t, "class", D);
|
|
5058
5023
|
},
|
|
5059
|
-
d(
|
|
5060
|
-
|
|
5024
|
+
d(U) {
|
|
5025
|
+
U && de(t), $n($, U), k = !1, ze(oe);
|
|
5061
5026
|
}
|
|
5062
5027
|
};
|
|
5063
5028
|
}
|
|
5064
|
-
function
|
|
5065
|
-
let t,
|
|
5029
|
+
function Dn(e) {
|
|
5030
|
+
let t, n, r = (
|
|
5066
5031
|
/*$_*/
|
|
5067
5032
|
e[6](
|
|
5068
5033
|
/*k*/
|
|
@@ -5086,18 +5051,18 @@ function Gr(e) {
|
|
|
5086
5051
|
), m;
|
|
5087
5052
|
return {
|
|
5088
5053
|
c() {
|
|
5089
|
-
t =
|
|
5054
|
+
t = j("div"), n = j("p"), i = xe(r), o = we(), a = xe(s), l = we(), u = j("p"), f = j("span"), m = xe(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
5090
5055
|
},
|
|
5091
5056
|
m(w, _) {
|
|
5092
|
-
|
|
5057
|
+
be(w, t, _), P(t, n), P(n, i), P(n, o), P(n, a), P(t, l), P(t, u), P(u, f), P(f, m);
|
|
5093
5058
|
},
|
|
5094
5059
|
p(w, _) {
|
|
5095
5060
|
_[0] & /*$_, balances*/
|
|
5096
|
-
66 &&
|
|
5061
|
+
66 && r !== (r = /*$_*/
|
|
5097
5062
|
w[6](
|
|
5098
5063
|
/*k*/
|
|
5099
5064
|
w[54]
|
|
5100
|
-
) + "") &&
|
|
5065
|
+
) + "") && Me(i, r), _[0] & /*balances, $_*/
|
|
5101
5066
|
66 && s !== (s = /*b*/
|
|
5102
5067
|
(w[57].productType ? (
|
|
5103
5068
|
/*$_*/
|
|
@@ -5105,45 +5070,45 @@ function Gr(e) {
|
|
|
5105
5070
|
/*b*/
|
|
5106
5071
|
w[57].productType
|
|
5107
5072
|
)
|
|
5108
|
-
) : "") + "") &&
|
|
5073
|
+
) : "") + "") && Me(a, s), _[0] & /*balances*/
|
|
5109
5074
|
2 && b !== (b = /*formatBalance*/
|
|
5110
5075
|
w[8](
|
|
5111
5076
|
/*b*/
|
|
5112
5077
|
w[57].amount
|
|
5113
|
-
) + "") &&
|
|
5078
|
+
) + "") && Me(m, b);
|
|
5114
5079
|
},
|
|
5115
5080
|
d(w) {
|
|
5116
5081
|
w && de(t);
|
|
5117
5082
|
}
|
|
5118
5083
|
};
|
|
5119
5084
|
}
|
|
5120
|
-
function
|
|
5121
|
-
let t,
|
|
5085
|
+
function Un(e) {
|
|
5086
|
+
let t, n, r = _t(
|
|
5122
5087
|
/*balances*/
|
|
5123
5088
|
e[1][
|
|
5124
5089
|
/*k*/
|
|
5125
5090
|
e[54]
|
|
5126
5091
|
]
|
|
5127
5092
|
), i = [];
|
|
5128
|
-
for (let o = 0; o <
|
|
5129
|
-
i[o] =
|
|
5093
|
+
for (let o = 0; o < r.length; o += 1)
|
|
5094
|
+
i[o] = Dn(Nn(e, r, o));
|
|
5130
5095
|
return {
|
|
5131
5096
|
c() {
|
|
5132
|
-
t =
|
|
5097
|
+
t = j("div");
|
|
5133
5098
|
for (let o = 0; o < i.length; o += 1)
|
|
5134
5099
|
i[o].c();
|
|
5135
|
-
|
|
5100
|
+
n = we(), M(t, "class", "BalanceModalRowBoth");
|
|
5136
5101
|
},
|
|
5137
5102
|
m(o, s) {
|
|
5138
|
-
|
|
5103
|
+
be(o, t, s);
|
|
5139
5104
|
for (let a = 0; a < i.length; a += 1)
|
|
5140
5105
|
i[a] && i[a].m(t, null);
|
|
5141
|
-
|
|
5106
|
+
P(t, n);
|
|
5142
5107
|
},
|
|
5143
5108
|
p(o, s) {
|
|
5144
5109
|
if (s[0] & /*formatBalance, balances, $_*/
|
|
5145
5110
|
322) {
|
|
5146
|
-
|
|
5111
|
+
r = _t(
|
|
5147
5112
|
/*balances*/
|
|
5148
5113
|
o[1][
|
|
5149
5114
|
/*k*/
|
|
@@ -5151,65 +5116,65 @@ function jr(e) {
|
|
|
5151
5116
|
]
|
|
5152
5117
|
);
|
|
5153
5118
|
let a;
|
|
5154
|
-
for (a = 0; a <
|
|
5155
|
-
const l =
|
|
5156
|
-
i[a] ? i[a].p(l, s) : (i[a] =
|
|
5119
|
+
for (a = 0; a < r.length; a += 1) {
|
|
5120
|
+
const l = Nn(o, r, a);
|
|
5121
|
+
i[a] ? i[a].p(l, s) : (i[a] = Dn(l), i[a].c(), i[a].m(t, n));
|
|
5157
5122
|
}
|
|
5158
5123
|
for (; a < i.length; a += 1)
|
|
5159
5124
|
i[a].d(1);
|
|
5160
|
-
i.length =
|
|
5125
|
+
i.length = r.length;
|
|
5161
5126
|
}
|
|
5162
5127
|
},
|
|
5163
5128
|
d(o) {
|
|
5164
|
-
o && de(t),
|
|
5129
|
+
o && de(t), $n(i, o);
|
|
5165
5130
|
}
|
|
5166
5131
|
};
|
|
5167
5132
|
}
|
|
5168
|
-
function
|
|
5169
|
-
let t,
|
|
5133
|
+
function Fn(e) {
|
|
5134
|
+
let t, n, r;
|
|
5170
5135
|
return {
|
|
5171
5136
|
c() {
|
|
5172
|
-
t =
|
|
5137
|
+
t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
5173
5138
|
},
|
|
5174
5139
|
m(i, o) {
|
|
5175
|
-
|
|
5140
|
+
be(i, t, o), n || (r = vt(
|
|
5176
5141
|
t,
|
|
5177
5142
|
"click",
|
|
5178
5143
|
/*click_handler_3*/
|
|
5179
5144
|
e[29]
|
|
5180
|
-
),
|
|
5145
|
+
), n = !0);
|
|
5181
5146
|
},
|
|
5182
5147
|
p: ce,
|
|
5183
5148
|
d(i) {
|
|
5184
|
-
i && de(t),
|
|
5149
|
+
i && de(t), n = !1, r();
|
|
5185
5150
|
}
|
|
5186
5151
|
};
|
|
5187
5152
|
}
|
|
5188
|
-
function
|
|
5189
|
-
let t,
|
|
5153
|
+
function oa(e) {
|
|
5154
|
+
let t, n, r, i;
|
|
5190
5155
|
function o(u, f) {
|
|
5191
5156
|
return (
|
|
5192
5157
|
/*isLoading*/
|
|
5193
|
-
u[2] ?
|
|
5158
|
+
u[2] ? ia : ra
|
|
5194
5159
|
);
|
|
5195
5160
|
}
|
|
5196
5161
|
let s = o(e), a = s(e), l = (
|
|
5197
5162
|
/*showBalance*/
|
|
5198
|
-
e[4] &&
|
|
5163
|
+
e[4] && Fn(e)
|
|
5199
5164
|
);
|
|
5200
5165
|
return {
|
|
5201
5166
|
c() {
|
|
5202
|
-
t =
|
|
5167
|
+
t = j("div"), n = j("div"), a.c(), i = we(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
|
|
5203
5168
|
(e[5] ? "Mobile" : ""));
|
|
5204
5169
|
},
|
|
5205
5170
|
m(u, f) {
|
|
5206
|
-
|
|
5171
|
+
be(u, t, f), P(t, n), a.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
|
|
5207
5172
|
},
|
|
5208
5173
|
p(u, f) {
|
|
5209
|
-
s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(
|
|
5210
|
-
32 &&
|
|
5211
|
-
(u[5] ? "Mobile" : "")) &&
|
|
5212
|
-
u[4] ? l ? l.p(u, f) : (l =
|
|
5174
|
+
s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
|
|
5175
|
+
32 && r !== (r = "ShowBalance " + /*mobileView*/
|
|
5176
|
+
(u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
|
|
5177
|
+
u[4] ? l ? l.p(u, f) : (l = Fn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
5213
5178
|
},
|
|
5214
5179
|
i: ce,
|
|
5215
5180
|
o: ce,
|
|
@@ -5218,14 +5183,14 @@ function la(e) {
|
|
|
5218
5183
|
}
|
|
5219
5184
|
};
|
|
5220
5185
|
}
|
|
5221
|
-
function
|
|
5222
|
-
let
|
|
5223
|
-
|
|
5224
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay:
|
|
5225
|
-
const x = {},
|
|
5226
|
-
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) =>
|
|
5186
|
+
function aa(e, t, n) {
|
|
5187
|
+
let r;
|
|
5188
|
+
Sr(e, Uo, (c) => n(6, r = c));
|
|
5189
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
|
|
5190
|
+
const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
|
|
5191
|
+
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Tn(d, c[d]))).catch((c) => console.log(c));
|
|
5227
5192
|
};
|
|
5228
|
-
Object.keys(
|
|
5193
|
+
Object.keys(Bn).forEach((c) => Tn(c, Bn[c]));
|
|
5229
5194
|
const le = (c) => {
|
|
5230
5195
|
switch (c) {
|
|
5231
5196
|
case "balance":
|
|
@@ -5235,10 +5200,10 @@ function ca(e, t, r) {
|
|
|
5235
5200
|
status: "open"
|
|
5236
5201
|
},
|
|
5237
5202
|
window.location.href
|
|
5238
|
-
),
|
|
5203
|
+
), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
|
|
5239
5204
|
break;
|
|
5240
5205
|
case "closebalance":
|
|
5241
|
-
|
|
5206
|
+
n(3, oe = !1), window.postMessage(
|
|
5242
5207
|
{
|
|
5243
5208
|
type: "BalanceModalStatus",
|
|
5244
5209
|
status: "close"
|
|
@@ -5246,7 +5211,7 @@ function ca(e, t, r) {
|
|
|
5246
5211
|
window.location.href
|
|
5247
5212
|
), setTimeout(
|
|
5248
5213
|
() => {
|
|
5249
|
-
|
|
5214
|
+
n(4, $ = !1);
|
|
5250
5215
|
},
|
|
5251
5216
|
150
|
|
5252
5217
|
);
|
|
@@ -5254,17 +5219,17 @@ function ca(e, t, r) {
|
|
|
5254
5219
|
}
|
|
5255
5220
|
}, He = (c) => {
|
|
5256
5221
|
if (R)
|
|
5257
|
-
return
|
|
5222
|
+
return Ye(c);
|
|
5258
5223
|
const d = A || a, p = {
|
|
5259
5224
|
style: "currency",
|
|
5260
5225
|
currency: K,
|
|
5261
5226
|
useGrouping: !0,
|
|
5262
|
-
currencyDisplay:
|
|
5227
|
+
currencyDisplay: I || "code",
|
|
5263
5228
|
maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
|
|
5264
5229
|
minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
|
|
5265
5230
|
};
|
|
5266
5231
|
return new Intl.NumberFormat(d, p).format(c);
|
|
5267
|
-
},
|
|
5232
|
+
}, Ye = (c) => {
|
|
5268
5233
|
const d = [];
|
|
5269
5234
|
let p = "";
|
|
5270
5235
|
for (const v of R)
|
|
@@ -5280,9 +5245,9 @@ function ca(e, t, r) {
|
|
|
5280
5245
|
if (p = "", T.toLowerCase() === "currency")
|
|
5281
5246
|
p = K;
|
|
5282
5247
|
else if (T.toLowerCase() === "amount") {
|
|
5283
|
-
let S = ",", B = ".",
|
|
5284
|
-
C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (
|
|
5285
|
-
let [ee, Ae] = String(Math.floor(c * 10 **
|
|
5248
|
+
let S = ",", B = ".", N = 2;
|
|
5249
|
+
C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
|
|
5250
|
+
let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
|
|
5286
5251
|
p += ee[0];
|
|
5287
5252
|
for (let X = 1; X < ee.length; ++X)
|
|
5288
5253
|
(ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
|
|
@@ -5293,7 +5258,7 @@ function ca(e, t, r) {
|
|
|
5293
5258
|
}
|
|
5294
5259
|
return d.push(p), d.join("");
|
|
5295
5260
|
}, me = async () => {
|
|
5296
|
-
|
|
5261
|
+
n(2, k = !0);
|
|
5297
5262
|
const c = new URL(`${s}/v1/player/${i}/account`);
|
|
5298
5263
|
try {
|
|
5299
5264
|
const d = await fetch(c, {
|
|
@@ -5301,7 +5266,7 @@ function ca(e, t, r) {
|
|
|
5301
5266
|
headers: { "X-SessionID": o }
|
|
5302
5267
|
}), p = await d.json();
|
|
5303
5268
|
if (d.ok)
|
|
5304
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency,
|
|
5269
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: p.totalAmount[K] }], x), n(
|
|
5305
5270
|
1,
|
|
5306
5271
|
x.Real = [
|
|
5307
5272
|
{
|
|
@@ -5309,7 +5274,7 @@ function ca(e, t, r) {
|
|
|
5309
5274
|
}
|
|
5310
5275
|
],
|
|
5311
5276
|
x
|
|
5312
|
-
),
|
|
5277
|
+
), n(
|
|
5313
5278
|
1,
|
|
5314
5279
|
x.Bonus = [
|
|
5315
5280
|
{
|
|
@@ -5323,36 +5288,36 @@ function ca(e, t, r) {
|
|
|
5323
5288
|
} catch (d) {
|
|
5324
5289
|
console.log("Balance error: ", d);
|
|
5325
5290
|
} finally {
|
|
5326
|
-
|
|
5291
|
+
n(2, k = !1);
|
|
5327
5292
|
}
|
|
5328
|
-
},
|
|
5329
|
-
|
|
5293
|
+
}, Qe = () => {
|
|
5294
|
+
n(2, k = !0);
|
|
5330
5295
|
const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
|
|
5331
5296
|
d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
|
|
5332
|
-
v[_] ||
|
|
5297
|
+
v[_] || n(10, _ = ye[0]);
|
|
5333
5298
|
const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
|
|
5334
|
-
if (K = T.currency, Z = !!T.productType,
|
|
5335
|
-
|
|
5299
|
+
if (K = T.currency, Z = !!T.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !Z) {
|
|
5300
|
+
ge = {
|
|
5336
5301
|
lastOrdinaryAfterAmount: 0,
|
|
5337
5302
|
showCreditLineAfterAmount: !1
|
|
5338
|
-
},
|
|
5303
|
+
}, n(1, x.Total[0].amount = v[_][K], x);
|
|
5339
5304
|
for (const S of v.items)
|
|
5340
5305
|
switch (S.type) {
|
|
5341
5306
|
case "Bonus":
|
|
5342
|
-
x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) :
|
|
5307
|
+
x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : n(1, x.Bonus[0].amount += S.amount, x);
|
|
5343
5308
|
break;
|
|
5344
5309
|
case "Real":
|
|
5345
5310
|
if (S.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: S.creditLine }), _ === "totalRealAmount")
|
|
5346
5311
|
continue;
|
|
5347
|
-
x.Real.length === 0 ? x.Real.push({ amount: S.amount }) :
|
|
5312
|
+
x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : n(1, x.Real[0].amount += S.amount, x);
|
|
5348
5313
|
break;
|
|
5349
5314
|
}
|
|
5350
5315
|
for (const [S, B] of Object.entries(x))
|
|
5351
5316
|
B.length < 1 && delete x[S];
|
|
5352
|
-
|
|
5317
|
+
n(2, k = !1);
|
|
5353
5318
|
return;
|
|
5354
5319
|
}
|
|
5355
|
-
|
|
5320
|
+
ge = {
|
|
5356
5321
|
Casino: {
|
|
5357
5322
|
lastOrdinaryAfterAmount: 0,
|
|
5358
5323
|
showCreditLineAfterAmount: !1
|
|
@@ -5368,7 +5333,7 @@ function ca(e, t, r) {
|
|
|
5368
5333
|
let B;
|
|
5369
5334
|
switch (S.type) {
|
|
5370
5335
|
case "Bonus":
|
|
5371
|
-
B = x.Bonus.findIndex((
|
|
5336
|
+
B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
|
|
5372
5337
|
amount: S.amount,
|
|
5373
5338
|
productType: S.productType
|
|
5374
5339
|
});
|
|
@@ -5377,7 +5342,7 @@ function ca(e, t, r) {
|
|
|
5377
5342
|
S.creditLine && x.Credit.push({
|
|
5378
5343
|
amount: S.creditLine,
|
|
5379
5344
|
productType: S.productType
|
|
5380
|
-
}), B = x.Real.findIndex((
|
|
5345
|
+
}), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Real[B].amount += S.amount, x) : x.Real.push({
|
|
5381
5346
|
amount: S.amount,
|
|
5382
5347
|
productType: S.productType
|
|
5383
5348
|
});
|
|
@@ -5387,27 +5352,27 @@ function ca(e, t, r) {
|
|
|
5387
5352
|
ut();
|
|
5388
5353
|
for (const [S, B] of Object.entries(x))
|
|
5389
5354
|
B.length < 1 && delete x[S];
|
|
5390
|
-
|
|
5355
|
+
n(2, k = !1);
|
|
5391
5356
|
}).catch((v) => {
|
|
5392
|
-
throw
|
|
5357
|
+
throw n(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
|
|
5393
5358
|
});
|
|
5394
|
-
},
|
|
5395
|
-
if (
|
|
5359
|
+
}, Le = () => {
|
|
5360
|
+
if (F && F.close(), o.length < 1)
|
|
5396
5361
|
return;
|
|
5397
5362
|
let c, d;
|
|
5398
5363
|
switch (m) {
|
|
5399
5364
|
case "gm16":
|
|
5400
|
-
c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) =>
|
|
5365
|
+
c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
|
|
5401
5366
|
break;
|
|
5402
5367
|
case "gmcore":
|
|
5403
|
-
c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) =>
|
|
5368
|
+
c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
|
|
5404
5369
|
break;
|
|
5405
5370
|
}
|
|
5406
5371
|
const p = {
|
|
5407
5372
|
accept: "text/event-stream",
|
|
5408
5373
|
"X-SessionId": o
|
|
5409
|
-
}, v = new
|
|
5410
|
-
|
|
5374
|
+
}, v = new Go.EventSourcePolyfill(c, { headers: p });
|
|
5375
|
+
F = v, v.addEventListener("message", d);
|
|
5411
5376
|
}, st = (c) => {
|
|
5412
5377
|
let d;
|
|
5413
5378
|
try {
|
|
@@ -5417,10 +5382,10 @@ function ca(e, t, r) {
|
|
|
5417
5382
|
return;
|
|
5418
5383
|
}
|
|
5419
5384
|
return d;
|
|
5420
|
-
},
|
|
5385
|
+
}, Ct = (c) => {
|
|
5421
5386
|
const d = st(c.data);
|
|
5422
5387
|
if (!d) {
|
|
5423
|
-
|
|
5388
|
+
Le();
|
|
5424
5389
|
return;
|
|
5425
5390
|
}
|
|
5426
5391
|
let p = "0";
|
|
@@ -5428,8 +5393,8 @@ function ca(e, t, r) {
|
|
|
5428
5393
|
he = he.map((T) => (v && v[T.id] && (T = {
|
|
5429
5394
|
...T,
|
|
5430
5395
|
balanceAmount: v[T.id].afterAmount
|
|
5431
|
-
}), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)),
|
|
5432
|
-
},
|
|
5396
|
+
}), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), n(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(p) }], x);
|
|
5397
|
+
}, Je = (c, d, p) => {
|
|
5433
5398
|
let v = null;
|
|
5434
5399
|
switch (p.walletAccountType) {
|
|
5435
5400
|
case "Ordinary":
|
|
@@ -5449,7 +5414,7 @@ function ca(e, t, r) {
|
|
|
5449
5414
|
for (const p of ["Real", "Bonus"])
|
|
5450
5415
|
for (const v of x[p])
|
|
5451
5416
|
c += Math.max(v.amount, 0);
|
|
5452
|
-
|
|
5417
|
+
n(1, x.Total[0].amount = c, x);
|
|
5453
5418
|
break;
|
|
5454
5419
|
case "totalRealAmount":
|
|
5455
5420
|
if (!Z)
|
|
@@ -5457,76 +5422,76 @@ function ca(e, t, r) {
|
|
|
5457
5422
|
let d = 0;
|
|
5458
5423
|
for (const p of x.Real)
|
|
5459
5424
|
d += p.amount;
|
|
5460
|
-
|
|
5425
|
+
n(1, x.Total[0].amount = d, x);
|
|
5461
5426
|
}
|
|
5462
|
-
},
|
|
5427
|
+
}, Ke = (c) => {
|
|
5463
5428
|
const d = st(c.data);
|
|
5464
5429
|
if (!d) {
|
|
5465
|
-
|
|
5430
|
+
Le();
|
|
5466
5431
|
return;
|
|
5467
5432
|
}
|
|
5468
5433
|
if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
|
|
5469
5434
|
return;
|
|
5470
5435
|
const p = d.body.balanceChange;
|
|
5471
5436
|
for (const [v, T] of Object.entries(p))
|
|
5472
|
-
if (_ === "totalRealAmount" && v === "Real" && !Z &&
|
|
5437
|
+
if (_ === "totalRealAmount" && v === "Real" && !Z && n(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
|
|
5473
5438
|
for (const C of x[v]) {
|
|
5474
5439
|
if (!Z) {
|
|
5475
|
-
C.amount = v === "Real" ?
|
|
5440
|
+
C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
|
|
5476
5441
|
continue;
|
|
5477
5442
|
}
|
|
5478
|
-
T.productType === C.productType && (C.amount = v === "Real" ?
|
|
5443
|
+
T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
|
|
5479
5444
|
}
|
|
5480
5445
|
ut();
|
|
5481
|
-
},
|
|
5446
|
+
}, Pe = () => {
|
|
5482
5447
|
le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5483
5448
|
}, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
|
|
5484
|
-
|
|
5485
|
-
},
|
|
5486
|
-
switch (
|
|
5449
|
+
ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, _ = ye[0]));
|
|
5450
|
+
}, Ht = () => {
|
|
5451
|
+
switch (Fo(a), ae(), m) {
|
|
5487
5452
|
case "gmcore":
|
|
5488
5453
|
me();
|
|
5489
5454
|
break;
|
|
5490
5455
|
case "gm16":
|
|
5491
|
-
|
|
5456
|
+
Qe();
|
|
5492
5457
|
break;
|
|
5493
5458
|
default:
|
|
5494
5459
|
throw Error(`Invalid apiversion attribute: ${m}`);
|
|
5495
5460
|
}
|
|
5496
|
-
}, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" &&
|
|
5461
|
+
}, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Ot = () => {
|
|
5497
5462
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5498
5463
|
};
|
|
5499
|
-
|
|
5500
|
-
window.removeEventListener("message", lt),
|
|
5464
|
+
Rr(() => (window.addEventListener("message", lt, !1), n(5, U = ta(q)), () => {
|
|
5465
|
+
window.removeEventListener("message", lt), F && F.close();
|
|
5501
5466
|
}));
|
|
5502
|
-
const ct = () => le("balance"), h = () => le("closebalance"), y = () =>
|
|
5467
|
+
const ct = () => le("balance"), h = () => le("closebalance"), y = () => Pe(), E = () => le("closebalance");
|
|
5503
5468
|
function g(c) {
|
|
5504
|
-
|
|
5505
|
-
|
|
5469
|
+
Gt[c ? "unshift" : "push"](() => {
|
|
5470
|
+
D = c, n(0, D);
|
|
5506
5471
|
});
|
|
5507
5472
|
}
|
|
5508
5473
|
return e.$$set = (c) => {
|
|
5509
|
-
"userid" in c &&
|
|
5474
|
+
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, w = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
|
|
5510
5475
|
}, e.$$.update = () => {
|
|
5511
5476
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5512
|
-
1603584 && s && i && o && a && m && w &&
|
|
5513
|
-
538624 && s && i && o && m &&
|
|
5477
|
+
1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5478
|
+
538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
|
|
5514
5479
|
262144 && b && pe(), e.$$.dirty[0] & /*balances*/
|
|
5515
|
-
2 && x.Total &&
|
|
5516
|
-
65537 && u &&
|
|
5517
|
-
131073 && f &&
|
|
5518
|
-
32769 && l &&
|
|
5480
|
+
2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5481
|
+
65537 && u && D && zr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5482
|
+
131073 && f && D && Wr(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5483
|
+
32769 && l && D && Zr(D, `${l}.Style`);
|
|
5519
5484
|
}, [
|
|
5520
|
-
|
|
5485
|
+
D,
|
|
5521
5486
|
x,
|
|
5522
|
-
j,
|
|
5523
|
-
oe,
|
|
5524
5487
|
k,
|
|
5525
|
-
|
|
5526
|
-
|
|
5488
|
+
oe,
|
|
5489
|
+
$,
|
|
5490
|
+
U,
|
|
5491
|
+
r,
|
|
5527
5492
|
le,
|
|
5528
5493
|
He,
|
|
5529
|
-
|
|
5494
|
+
Pe,
|
|
5530
5495
|
_,
|
|
5531
5496
|
i,
|
|
5532
5497
|
o,
|
|
@@ -5539,7 +5504,7 @@ function ca(e, t, r) {
|
|
|
5539
5504
|
m,
|
|
5540
5505
|
w,
|
|
5541
5506
|
A,
|
|
5542
|
-
|
|
5507
|
+
I,
|
|
5543
5508
|
W,
|
|
5544
5509
|
V,
|
|
5545
5510
|
R,
|
|
@@ -5550,14 +5515,14 @@ function ca(e, t, r) {
|
|
|
5550
5515
|
g
|
|
5551
5516
|
];
|
|
5552
5517
|
}
|
|
5553
|
-
class
|
|
5518
|
+
class sa extends Vr {
|
|
5554
5519
|
constructor(t) {
|
|
5555
|
-
super(),
|
|
5520
|
+
super(), kr(
|
|
5556
5521
|
this,
|
|
5557
5522
|
t,
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5523
|
+
aa,
|
|
5524
|
+
oa,
|
|
5525
|
+
jn,
|
|
5561
5526
|
{
|
|
5562
5527
|
userid: 11,
|
|
5563
5528
|
session: 12,
|
|
@@ -5576,7 +5541,7 @@ class ha extends Zn {
|
|
|
5576
5541
|
minimumfractiondigits: 24,
|
|
5577
5542
|
customdisplayformat: 25
|
|
5578
5543
|
},
|
|
5579
|
-
|
|
5544
|
+
na,
|
|
5580
5545
|
[-1, -1]
|
|
5581
5546
|
);
|
|
5582
5547
|
}
|
|
@@ -5677,7 +5642,7 @@ class ha extends Zn {
|
|
|
5677
5642
|
this.$$set({ customdisplayformat: t }), Q();
|
|
5678
5643
|
}
|
|
5679
5644
|
}
|
|
5680
|
-
|
|
5645
|
+
$r(sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5681
5646
|
export {
|
|
5682
|
-
|
|
5647
|
+
sa as P
|
|
5683
5648
|
};
|